Merge remote-tracking branch 'origin/new/bug_8268'
authorPaul Poulain <paul.poulain@biblibre.com>
Mon, 23 Jul 2012 08:41:05 +0000 (10:41 +0200)
committerPaul Poulain <paul.poulain@biblibre.com>
Mon, 23 Jul 2012 08:41:05 +0000 (10:41 +0200)
370 files changed:
C4/AuthoritiesMarc.pm
C4/Circulation.pm
C4/Creators.pm
C4/Creators/Profile.pm
C4/Creators/Template.pm
C4/Installer.pm
C4/Installer/PerlDependencies.pm
C4/Labels.pm
C4/Letters.pm
C4/Patroncards.pm
C4/Patroncards/Patroncard.pm
C4/Search.pm
Koha/Calendar.pm
Koha/DateUtils.pm
acqui/pdfformat/layout2pages.pm
acqui/pdfformat/layout3pages.pm
authorities/authorities.pl
circ/overdue.pl
circ/returns.pl
koha-tmpl/intranet-tmpl/prog/en/css/staff-global.css
koha-tmpl/intranet-tmpl/prog/en/js/pages/batchMod.js
koha-tmpl/intranet-tmpl/prog/en/lib/yui/assets/skins/sam/ajax-loader.gif [deleted file]
koha-tmpl/intranet-tmpl/prog/en/lib/yui/assets/skins/sam/asc.gif [deleted file]
koha-tmpl/intranet-tmpl/prog/en/lib/yui/assets/skins/sam/autocomplete.css [deleted file]
koha-tmpl/intranet-tmpl/prog/en/lib/yui/assets/skins/sam/back-h.png [deleted file]
koha-tmpl/intranet-tmpl/prog/en/lib/yui/assets/skins/sam/back-v.png [deleted file]
koha-tmpl/intranet-tmpl/prog/en/lib/yui/assets/skins/sam/bar-h.png [deleted file]
koha-tmpl/intranet-tmpl/prog/en/lib/yui/assets/skins/sam/bar-v.png [deleted file]
koha-tmpl/intranet-tmpl/prog/en/lib/yui/assets/skins/sam/bg-h.gif [deleted file]
koha-tmpl/intranet-tmpl/prog/en/lib/yui/assets/skins/sam/bg-v.gif [deleted file]
koha-tmpl/intranet-tmpl/prog/en/lib/yui/assets/skins/sam/blankimage.png [deleted file]
koha-tmpl/intranet-tmpl/prog/en/lib/yui/assets/skins/sam/button.css [deleted file]
koha-tmpl/intranet-tmpl/prog/en/lib/yui/assets/skins/sam/calendar.css [deleted file]
koha-tmpl/intranet-tmpl/prog/en/lib/yui/assets/skins/sam/carousel.css [deleted file]
koha-tmpl/intranet-tmpl/prog/en/lib/yui/assets/skins/sam/check0.gif [deleted file]
koha-tmpl/intranet-tmpl/prog/en/lib/yui/assets/skins/sam/check1.gif [deleted file]
koha-tmpl/intranet-tmpl/prog/en/lib/yui/assets/skins/sam/check2.gif [deleted file]
koha-tmpl/intranet-tmpl/prog/en/lib/yui/assets/skins/sam/colorpicker.css [deleted file]
koha-tmpl/intranet-tmpl/prog/en/lib/yui/assets/skins/sam/container.css [deleted file]
koha-tmpl/intranet-tmpl/prog/en/lib/yui/assets/skins/sam/datatable.css [deleted file]
koha-tmpl/intranet-tmpl/prog/en/lib/yui/assets/skins/sam/desc.gif [deleted file]
koha-tmpl/intranet-tmpl/prog/en/lib/yui/assets/skins/sam/dt-arrow-dn.png [deleted file]
koha-tmpl/intranet-tmpl/prog/en/lib/yui/assets/skins/sam/dt-arrow-up.png [deleted file]
koha-tmpl/intranet-tmpl/prog/en/lib/yui/assets/skins/sam/editor-knob.gif [deleted file]
koha-tmpl/intranet-tmpl/prog/en/lib/yui/assets/skins/sam/editor-sprite-active.gif [deleted file]
koha-tmpl/intranet-tmpl/prog/en/lib/yui/assets/skins/sam/editor-sprite.gif [deleted file]
koha-tmpl/intranet-tmpl/prog/en/lib/yui/assets/skins/sam/editor.css [deleted file]
koha-tmpl/intranet-tmpl/prog/en/lib/yui/assets/skins/sam/header_background.png [deleted file]
koha-tmpl/intranet-tmpl/prog/en/lib/yui/assets/skins/sam/hue_bg.png [deleted file]
koha-tmpl/intranet-tmpl/prog/en/lib/yui/assets/skins/sam/imagecropper.css [deleted file]
koha-tmpl/intranet-tmpl/prog/en/lib/yui/assets/skins/sam/layout.css [deleted file]
koha-tmpl/intranet-tmpl/prog/en/lib/yui/assets/skins/sam/layout_sprite.png [deleted file]
koha-tmpl/intranet-tmpl/prog/en/lib/yui/assets/skins/sam/loading.gif [deleted file]
koha-tmpl/intranet-tmpl/prog/en/lib/yui/assets/skins/sam/logger.css [deleted file]
koha-tmpl/intranet-tmpl/prog/en/lib/yui/assets/skins/sam/menu-button-arrow-disabled.png [deleted file]
koha-tmpl/intranet-tmpl/prog/en/lib/yui/assets/skins/sam/menu-button-arrow.png [deleted file]
koha-tmpl/intranet-tmpl/prog/en/lib/yui/assets/skins/sam/menu.css [deleted file]
koha-tmpl/intranet-tmpl/prog/en/lib/yui/assets/skins/sam/menubaritem_submenuindicator.png [deleted file]
koha-tmpl/intranet-tmpl/prog/en/lib/yui/assets/skins/sam/menubaritem_submenuindicator_disabled.png [deleted file]
koha-tmpl/intranet-tmpl/prog/en/lib/yui/assets/skins/sam/menuitem_checkbox.png [deleted file]
koha-tmpl/intranet-tmpl/prog/en/lib/yui/assets/skins/sam/menuitem_checkbox_disabled.png [deleted file]
koha-tmpl/intranet-tmpl/prog/en/lib/yui/assets/skins/sam/menuitem_submenuindicator.png [deleted file]
koha-tmpl/intranet-tmpl/prog/en/lib/yui/assets/skins/sam/menuitem_submenuindicator_disabled.png [deleted file]
koha-tmpl/intranet-tmpl/prog/en/lib/yui/assets/skins/sam/paginator.css [deleted file]
koha-tmpl/intranet-tmpl/prog/en/lib/yui/assets/skins/sam/picker_mask.png [deleted file]
koha-tmpl/intranet-tmpl/prog/en/lib/yui/assets/skins/sam/profilerviewer.css [deleted file]
koha-tmpl/intranet-tmpl/prog/en/lib/yui/assets/skins/sam/progressbar.css [deleted file]
koha-tmpl/intranet-tmpl/prog/en/lib/yui/assets/skins/sam/resize.css [deleted file]
koha-tmpl/intranet-tmpl/prog/en/lib/yui/assets/skins/sam/simpleeditor.css [deleted file]
koha-tmpl/intranet-tmpl/prog/en/lib/yui/assets/skins/sam/skin.css [deleted file]
koha-tmpl/intranet-tmpl/prog/en/lib/yui/assets/skins/sam/slider.css [deleted file]
koha-tmpl/intranet-tmpl/prog/en/lib/yui/assets/skins/sam/split-button-arrow-active.png [deleted file]
koha-tmpl/intranet-tmpl/prog/en/lib/yui/assets/skins/sam/split-button-arrow-disabled.png [deleted file]
koha-tmpl/intranet-tmpl/prog/en/lib/yui/assets/skins/sam/split-button-arrow-focus.png [deleted file]
koha-tmpl/intranet-tmpl/prog/en/lib/yui/assets/skins/sam/split-button-arrow-hover.png [deleted file]
koha-tmpl/intranet-tmpl/prog/en/lib/yui/assets/skins/sam/split-button-arrow.png [deleted file]
koha-tmpl/intranet-tmpl/prog/en/lib/yui/assets/skins/sam/sprite.png [deleted file]
koha-tmpl/intranet-tmpl/prog/en/lib/yui/assets/skins/sam/sprite.psd [deleted file]
koha-tmpl/intranet-tmpl/prog/en/lib/yui/assets/skins/sam/tabview.css [deleted file]
koha-tmpl/intranet-tmpl/prog/en/lib/yui/assets/skins/sam/treeview-loading.gif [deleted file]
koha-tmpl/intranet-tmpl/prog/en/lib/yui/assets/skins/sam/treeview-sprite.gif [deleted file]
koha-tmpl/intranet-tmpl/prog/en/lib/yui/assets/skins/sam/treeview.css [deleted file]
koha-tmpl/intranet-tmpl/prog/en/lib/yui/assets/skins/sam/wait.gif [deleted file]
koha-tmpl/intranet-tmpl/prog/en/lib/yui/assets/skins/sam/yuitest.css [deleted file]
koha-tmpl/intranet-tmpl/prog/en/lib/yui/base/base-min.css [deleted file]
koha-tmpl/intranet-tmpl/prog/en/lib/yui/base/base.css [deleted file]
koha-tmpl/intranet-tmpl/prog/en/lib/yui/calendar/assets/calendar-core.css [deleted file]
koha-tmpl/intranet-tmpl/prog/en/lib/yui/calendar/assets/calendar.css [deleted file]
koha-tmpl/intranet-tmpl/prog/en/lib/yui/calendar/assets/calgrad.png [deleted file]
koha-tmpl/intranet-tmpl/prog/en/lib/yui/calendar/assets/callt.gif [deleted file]
koha-tmpl/intranet-tmpl/prog/en/lib/yui/calendar/assets/calrt.gif [deleted file]
koha-tmpl/intranet-tmpl/prog/en/lib/yui/calendar/assets/calx.gif [deleted file]
koha-tmpl/intranet-tmpl/prog/en/lib/yui/calendar/assets/skins/sam/calendar-skin.css [deleted file]
koha-tmpl/intranet-tmpl/prog/en/lib/yui/calendar/assets/skins/sam/calendar.css [deleted file]
koha-tmpl/intranet-tmpl/prog/en/lib/yui/calendar/calendar-debug.js [deleted file]
koha-tmpl/intranet-tmpl/prog/en/lib/yui/calendar/calendar-min.js [deleted file]
koha-tmpl/intranet-tmpl/prog/en/lib/yui/calendar/calendar.js [deleted file]
koha-tmpl/intranet-tmpl/prog/en/lib/yui/carousel/assets/ajax-loader.gif [deleted file]
koha-tmpl/intranet-tmpl/prog/en/lib/yui/carousel/assets/carousel-core.css [deleted file]
koha-tmpl/intranet-tmpl/prog/en/lib/yui/carousel/assets/skins/sam/ajax-loader.gif [deleted file]
koha-tmpl/intranet-tmpl/prog/en/lib/yui/carousel/assets/skins/sam/carousel-skin.css [deleted file]
koha-tmpl/intranet-tmpl/prog/en/lib/yui/carousel/assets/skins/sam/carousel.css [deleted file]
koha-tmpl/intranet-tmpl/prog/en/lib/yui/carousel/carousel-debug.js [deleted file]
koha-tmpl/intranet-tmpl/prog/en/lib/yui/carousel/carousel-min.js [deleted file]
koha-tmpl/intranet-tmpl/prog/en/lib/yui/carousel/carousel.js [deleted file]
koha-tmpl/intranet-tmpl/prog/en/lib/yui/charts/assets/charts.swf [deleted file]
koha-tmpl/intranet-tmpl/prog/en/lib/yui/charts/charts-debug.js [deleted file]
koha-tmpl/intranet-tmpl/prog/en/lib/yui/charts/charts-min.js [deleted file]
koha-tmpl/intranet-tmpl/prog/en/lib/yui/charts/charts.js [deleted file]
koha-tmpl/intranet-tmpl/prog/en/lib/yui/colorpicker/assets/colorpicker-core.css [deleted file]
koha-tmpl/intranet-tmpl/prog/en/lib/yui/colorpicker/assets/hue_thumb.png [deleted file]
koha-tmpl/intranet-tmpl/prog/en/lib/yui/colorpicker/assets/picker_mask.png [deleted file]
koha-tmpl/intranet-tmpl/prog/en/lib/yui/colorpicker/assets/picker_thumb.png [deleted file]
koha-tmpl/intranet-tmpl/prog/en/lib/yui/colorpicker/assets/skins/sam/colorpicker-skin.css [deleted file]
koha-tmpl/intranet-tmpl/prog/en/lib/yui/colorpicker/assets/skins/sam/colorpicker.css [deleted file]
koha-tmpl/intranet-tmpl/prog/en/lib/yui/colorpicker/assets/skins/sam/hue_bg.png [deleted file]
koha-tmpl/intranet-tmpl/prog/en/lib/yui/colorpicker/assets/skins/sam/picker_mask.png [deleted file]
koha-tmpl/intranet-tmpl/prog/en/lib/yui/colorpicker/colorpicker-debug.js [deleted file]
koha-tmpl/intranet-tmpl/prog/en/lib/yui/colorpicker/colorpicker-min.js [deleted file]
koha-tmpl/intranet-tmpl/prog/en/lib/yui/colorpicker/colorpicker.js [deleted file]
koha-tmpl/intranet-tmpl/prog/en/lib/yui/connection/connection-debug.js [deleted file]
koha-tmpl/intranet-tmpl/prog/en/lib/yui/connection/connection-min.js [deleted file]
koha-tmpl/intranet-tmpl/prog/en/lib/yui/connection/connection.js [deleted file]
koha-tmpl/intranet-tmpl/prog/en/lib/yui/connection/connection.swf [deleted file]
koha-tmpl/intranet-tmpl/prog/en/lib/yui/connection/connection_core-debug.js [deleted file]
koha-tmpl/intranet-tmpl/prog/en/lib/yui/connection/connection_core-min.js [deleted file]
koha-tmpl/intranet-tmpl/prog/en/lib/yui/connection/connection_core.js [deleted file]
koha-tmpl/intranet-tmpl/prog/en/lib/yui/cookie/cookie-debug.js [deleted file]
koha-tmpl/intranet-tmpl/prog/en/lib/yui/cookie/cookie-min.js [deleted file]
koha-tmpl/intranet-tmpl/prog/en/lib/yui/cookie/cookie.js [deleted file]
koha-tmpl/intranet-tmpl/prog/en/lib/yui/datatable/assets/datatable-core.css [deleted file]
koha-tmpl/intranet-tmpl/prog/en/lib/yui/datatable/assets/datatable.css [deleted file]
koha-tmpl/intranet-tmpl/prog/en/lib/yui/datatable/assets/skins/sam/datatable-skin.css [deleted file]
koha-tmpl/intranet-tmpl/prog/en/lib/yui/datatable/assets/skins/sam/datatable.css [deleted file]
koha-tmpl/intranet-tmpl/prog/en/lib/yui/datatable/assets/skins/sam/dt-arrow-dn.png [deleted file]
koha-tmpl/intranet-tmpl/prog/en/lib/yui/datatable/assets/skins/sam/dt-arrow-up.png [deleted file]
koha-tmpl/intranet-tmpl/prog/en/lib/yui/datatable/datatable-debug.js [deleted file]
koha-tmpl/intranet-tmpl/prog/en/lib/yui/datatable/datatable-min.js [deleted file]
koha-tmpl/intranet-tmpl/prog/en/lib/yui/datatable/datatable.js [deleted file]
koha-tmpl/intranet-tmpl/prog/en/lib/yui/datemath/datemath-debug.js [deleted file]
koha-tmpl/intranet-tmpl/prog/en/lib/yui/datemath/datemath-min.js [deleted file]
koha-tmpl/intranet-tmpl/prog/en/lib/yui/datemath/datemath.js [deleted file]
koha-tmpl/intranet-tmpl/prog/en/lib/yui/dom/dom-debug.js [deleted file]
koha-tmpl/intranet-tmpl/prog/en/lib/yui/dom/dom-min.js [deleted file]
koha-tmpl/intranet-tmpl/prog/en/lib/yui/dom/dom.js [deleted file]
koha-tmpl/intranet-tmpl/prog/en/lib/yui/editor/assets/editor-core.css [deleted file]
koha-tmpl/intranet-tmpl/prog/en/lib/yui/editor/assets/simpleeditor-core.css [deleted file]
koha-tmpl/intranet-tmpl/prog/en/lib/yui/editor/assets/skins/sam/blankimage.png [deleted file]
koha-tmpl/intranet-tmpl/prog/en/lib/yui/editor/assets/skins/sam/editor-knob.gif [deleted file]
koha-tmpl/intranet-tmpl/prog/en/lib/yui/editor/assets/skins/sam/editor-skin.css [deleted file]
koha-tmpl/intranet-tmpl/prog/en/lib/yui/editor/assets/skins/sam/editor-sprite-active.gif [deleted file]
koha-tmpl/intranet-tmpl/prog/en/lib/yui/editor/assets/skins/sam/editor-sprite.gif [deleted file]
koha-tmpl/intranet-tmpl/prog/en/lib/yui/editor/assets/skins/sam/editor.css [deleted file]
koha-tmpl/intranet-tmpl/prog/en/lib/yui/editor/assets/skins/sam/simpleeditor-skin.css [deleted file]
koha-tmpl/intranet-tmpl/prog/en/lib/yui/editor/assets/skins/sam/simpleeditor.css [deleted file]
koha-tmpl/intranet-tmpl/prog/en/lib/yui/editor/editor-debug.js [deleted file]
koha-tmpl/intranet-tmpl/prog/en/lib/yui/editor/editor-min.js [deleted file]
koha-tmpl/intranet-tmpl/prog/en/lib/yui/editor/editor.js [deleted file]
koha-tmpl/intranet-tmpl/prog/en/lib/yui/editor/simpleeditor-debug.js [deleted file]
koha-tmpl/intranet-tmpl/prog/en/lib/yui/editor/simpleeditor-min.js [deleted file]
koha-tmpl/intranet-tmpl/prog/en/lib/yui/editor/simpleeditor.js [deleted file]
koha-tmpl/intranet-tmpl/prog/en/lib/yui/element-delegate/element-delegate-debug.js [deleted file]
koha-tmpl/intranet-tmpl/prog/en/lib/yui/element-delegate/element-delegate-min.js [deleted file]
koha-tmpl/intranet-tmpl/prog/en/lib/yui/element-delegate/element-delegate.js [deleted file]
koha-tmpl/intranet-tmpl/prog/en/lib/yui/event-delegate/event-delegate-debug.js [deleted file]
koha-tmpl/intranet-tmpl/prog/en/lib/yui/event-delegate/event-delegate-min.js [deleted file]
koha-tmpl/intranet-tmpl/prog/en/lib/yui/event-delegate/event-delegate.js [deleted file]
koha-tmpl/intranet-tmpl/prog/en/lib/yui/event-mouseenter/event-mouseenter-debug.js [deleted file]
koha-tmpl/intranet-tmpl/prog/en/lib/yui/event-mouseenter/event-mouseenter-min.js [deleted file]
koha-tmpl/intranet-tmpl/prog/en/lib/yui/event-mouseenter/event-mouseenter.js [deleted file]
koha-tmpl/intranet-tmpl/prog/en/lib/yui/event-simulate/event-simulate-debug.js [deleted file]
koha-tmpl/intranet-tmpl/prog/en/lib/yui/event-simulate/event-simulate-min.js [deleted file]
koha-tmpl/intranet-tmpl/prog/en/lib/yui/event-simulate/event-simulate.js [deleted file]
koha-tmpl/intranet-tmpl/prog/en/lib/yui/event/event-debug.js [deleted file]
koha-tmpl/intranet-tmpl/prog/en/lib/yui/event/event-min.js [deleted file]
koha-tmpl/intranet-tmpl/prog/en/lib/yui/event/event.js [deleted file]
koha-tmpl/intranet-tmpl/prog/en/lib/yui/fonts/fonts-min.css [deleted file]
koha-tmpl/intranet-tmpl/prog/en/lib/yui/fonts/fonts.css [deleted file]
koha-tmpl/intranet-tmpl/prog/en/lib/yui/get/get-debug.js [deleted file]
koha-tmpl/intranet-tmpl/prog/en/lib/yui/get/get-min.js [deleted file]
koha-tmpl/intranet-tmpl/prog/en/lib/yui/get/get.js [deleted file]
koha-tmpl/intranet-tmpl/prog/en/lib/yui/grids/grids-min.css [deleted file]
koha-tmpl/intranet-tmpl/prog/en/lib/yui/grids/grids.css [deleted file]
koha-tmpl/intranet-tmpl/prog/en/lib/yui/history/assets/blank.html [deleted file]
koha-tmpl/intranet-tmpl/prog/en/lib/yui/history/history-debug.js [deleted file]
koha-tmpl/intranet-tmpl/prog/en/lib/yui/history/history-min.js [deleted file]
koha-tmpl/intranet-tmpl/prog/en/lib/yui/history/history.js [deleted file]
koha-tmpl/intranet-tmpl/prog/en/lib/yui/imagecropper/assets/imagecropper-core.css [deleted file]
koha-tmpl/intranet-tmpl/prog/en/lib/yui/imagecropper/assets/skins/sam/imagecropper-skin.css [deleted file]
koha-tmpl/intranet-tmpl/prog/en/lib/yui/imagecropper/assets/skins/sam/imagecropper.css [deleted file]
koha-tmpl/intranet-tmpl/prog/en/lib/yui/imagecropper/imagecropper-debug.js [deleted file]
koha-tmpl/intranet-tmpl/prog/en/lib/yui/imagecropper/imagecropper-min.js [deleted file]
koha-tmpl/intranet-tmpl/prog/en/lib/yui/imagecropper/imagecropper.js [deleted file]
koha-tmpl/intranet-tmpl/prog/en/lib/yui/imageloader/imageloader-debug.js [deleted file]
koha-tmpl/intranet-tmpl/prog/en/lib/yui/imageloader/imageloader-min.js [deleted file]
koha-tmpl/intranet-tmpl/prog/en/lib/yui/imageloader/imageloader.js [deleted file]
koha-tmpl/intranet-tmpl/prog/en/lib/yui/layout/assets/layout-core.css [deleted file]
koha-tmpl/intranet-tmpl/prog/en/lib/yui/layout/assets/skins/sam/layout-skin.css [deleted file]
koha-tmpl/intranet-tmpl/prog/en/lib/yui/layout/assets/skins/sam/layout.css [deleted file]
koha-tmpl/intranet-tmpl/prog/en/lib/yui/layout/assets/skins/sam/layout_sprite.png [deleted file]
koha-tmpl/intranet-tmpl/prog/en/lib/yui/layout/layout-debug.js [deleted file]
koha-tmpl/intranet-tmpl/prog/en/lib/yui/layout/layout-min.js [deleted file]
koha-tmpl/intranet-tmpl/prog/en/lib/yui/layout/layout.js [deleted file]
koha-tmpl/intranet-tmpl/prog/en/lib/yui/logger/assets/logger-core.css [deleted file]
koha-tmpl/intranet-tmpl/prog/en/lib/yui/logger/assets/logger.css [deleted file]
koha-tmpl/intranet-tmpl/prog/en/lib/yui/logger/assets/skins/sam/logger-skin.css [deleted file]
koha-tmpl/intranet-tmpl/prog/en/lib/yui/logger/assets/skins/sam/logger.css [deleted file]
koha-tmpl/intranet-tmpl/prog/en/lib/yui/logger/logger-debug.js [deleted file]
koha-tmpl/intranet-tmpl/prog/en/lib/yui/logger/logger-min.js [deleted file]
koha-tmpl/intranet-tmpl/prog/en/lib/yui/logger/logger.js [deleted file]
koha-tmpl/intranet-tmpl/prog/en/lib/yui/paginator/assets/paginator-core.css [deleted file]
koha-tmpl/intranet-tmpl/prog/en/lib/yui/paginator/assets/skins/sam/paginator-skin.css [deleted file]
koha-tmpl/intranet-tmpl/prog/en/lib/yui/paginator/assets/skins/sam/paginator.css [deleted file]
koha-tmpl/intranet-tmpl/prog/en/lib/yui/paginator/paginator-debug.js [deleted file]
koha-tmpl/intranet-tmpl/prog/en/lib/yui/paginator/paginator-min.js [deleted file]
koha-tmpl/intranet-tmpl/prog/en/lib/yui/paginator/paginator.js [deleted file]
koha-tmpl/intranet-tmpl/prog/en/lib/yui/profiler/profiler-debug.js [deleted file]
koha-tmpl/intranet-tmpl/prog/en/lib/yui/profiler/profiler-min.js [deleted file]
koha-tmpl/intranet-tmpl/prog/en/lib/yui/profiler/profiler.js [deleted file]
koha-tmpl/intranet-tmpl/prog/en/lib/yui/profilerviewer/assets/profilerviewer-core.css [deleted file]
koha-tmpl/intranet-tmpl/prog/en/lib/yui/profilerviewer/assets/skins/sam/asc.gif [deleted file]
koha-tmpl/intranet-tmpl/prog/en/lib/yui/profilerviewer/assets/skins/sam/desc.gif [deleted file]
koha-tmpl/intranet-tmpl/prog/en/lib/yui/profilerviewer/assets/skins/sam/header_background.png [deleted file]
koha-tmpl/intranet-tmpl/prog/en/lib/yui/profilerviewer/assets/skins/sam/profilerviewer-skin.css [deleted file]
koha-tmpl/intranet-tmpl/prog/en/lib/yui/profilerviewer/assets/skins/sam/profilerviewer.css [deleted file]
koha-tmpl/intranet-tmpl/prog/en/lib/yui/profilerviewer/assets/skins/sam/wait.gif [deleted file]
koha-tmpl/intranet-tmpl/prog/en/lib/yui/profilerviewer/profilerviewer-debug.js [deleted file]
koha-tmpl/intranet-tmpl/prog/en/lib/yui/profilerviewer/profilerviewer-min.js [deleted file]
koha-tmpl/intranet-tmpl/prog/en/lib/yui/profilerviewer/profilerviewer.js [deleted file]
koha-tmpl/intranet-tmpl/prog/en/lib/yui/progressbar/assets/progressbar-core.css [deleted file]
koha-tmpl/intranet-tmpl/prog/en/lib/yui/progressbar/assets/skins/sam/back-h.png [deleted file]
koha-tmpl/intranet-tmpl/prog/en/lib/yui/progressbar/assets/skins/sam/back-v.png [deleted file]
koha-tmpl/intranet-tmpl/prog/en/lib/yui/progressbar/assets/skins/sam/bar-h.png [deleted file]
koha-tmpl/intranet-tmpl/prog/en/lib/yui/progressbar/assets/skins/sam/bar-v.png [deleted file]
koha-tmpl/intranet-tmpl/prog/en/lib/yui/progressbar/assets/skins/sam/progressbar-skin.css [deleted file]
koha-tmpl/intranet-tmpl/prog/en/lib/yui/progressbar/assets/skins/sam/progressbar.css [deleted file]
koha-tmpl/intranet-tmpl/prog/en/lib/yui/progressbar/progressbar-debug.js [deleted file]
koha-tmpl/intranet-tmpl/prog/en/lib/yui/progressbar/progressbar-min.js [deleted file]
koha-tmpl/intranet-tmpl/prog/en/lib/yui/progressbar/progressbar.js [deleted file]
koha-tmpl/intranet-tmpl/prog/en/lib/yui/reset-fonts-grids/reset-fonts-grids.css [deleted file]
koha-tmpl/intranet-tmpl/prog/en/lib/yui/reset-fonts/reset-fonts.css [deleted file]
koha-tmpl/intranet-tmpl/prog/en/lib/yui/reset/reset-min.css [deleted file]
koha-tmpl/intranet-tmpl/prog/en/lib/yui/reset/reset.css [deleted file]
koha-tmpl/intranet-tmpl/prog/en/lib/yui/resize/assets/resize-core.css [deleted file]
koha-tmpl/intranet-tmpl/prog/en/lib/yui/resize/assets/skins/sam/layout_sprite.png [deleted file]
koha-tmpl/intranet-tmpl/prog/en/lib/yui/resize/assets/skins/sam/resize-skin.css [deleted file]
koha-tmpl/intranet-tmpl/prog/en/lib/yui/resize/assets/skins/sam/resize.css [deleted file]
koha-tmpl/intranet-tmpl/prog/en/lib/yui/resize/resize-debug.js [deleted file]
koha-tmpl/intranet-tmpl/prog/en/lib/yui/resize/resize-min.js [deleted file]
koha-tmpl/intranet-tmpl/prog/en/lib/yui/resize/resize.js [deleted file]
koha-tmpl/intranet-tmpl/prog/en/lib/yui/selector/selector-debug.js [deleted file]
koha-tmpl/intranet-tmpl/prog/en/lib/yui/selector/selector-min.js [deleted file]
koha-tmpl/intranet-tmpl/prog/en/lib/yui/selector/selector.js [deleted file]
koha-tmpl/intranet-tmpl/prog/en/lib/yui/slider/assets/bg-fader.gif [deleted file]
koha-tmpl/intranet-tmpl/prog/en/lib/yui/slider/assets/bg-h.gif [deleted file]
koha-tmpl/intranet-tmpl/prog/en/lib/yui/slider/assets/bg-v-e.gif [deleted file]
koha-tmpl/intranet-tmpl/prog/en/lib/yui/slider/assets/bg-v.gif [deleted file]
koha-tmpl/intranet-tmpl/prog/en/lib/yui/slider/assets/left-thumb.png [deleted file]
koha-tmpl/intranet-tmpl/prog/en/lib/yui/slider/assets/right-thumb.png [deleted file]
koha-tmpl/intranet-tmpl/prog/en/lib/yui/slider/assets/skins/sam/bg-h.gif [deleted file]
koha-tmpl/intranet-tmpl/prog/en/lib/yui/slider/assets/skins/sam/bg-v.gif [deleted file]
koha-tmpl/intranet-tmpl/prog/en/lib/yui/slider/assets/skins/sam/slider-skin.css [deleted file]
koha-tmpl/intranet-tmpl/prog/en/lib/yui/slider/assets/skins/sam/slider.css [deleted file]
koha-tmpl/intranet-tmpl/prog/en/lib/yui/slider/assets/slider-core.css [deleted file]
koha-tmpl/intranet-tmpl/prog/en/lib/yui/slider/assets/slider-skin.css [deleted file]
koha-tmpl/intranet-tmpl/prog/en/lib/yui/slider/assets/thumb-bar.gif [deleted file]
koha-tmpl/intranet-tmpl/prog/en/lib/yui/slider/assets/thumb-e.gif [deleted file]
koha-tmpl/intranet-tmpl/prog/en/lib/yui/slider/assets/thumb-fader.gif [deleted file]
koha-tmpl/intranet-tmpl/prog/en/lib/yui/slider/assets/thumb-n.gif [deleted file]
koha-tmpl/intranet-tmpl/prog/en/lib/yui/slider/assets/thumb-s.gif [deleted file]
koha-tmpl/intranet-tmpl/prog/en/lib/yui/slider/assets/thumb-w.gif [deleted file]
koha-tmpl/intranet-tmpl/prog/en/lib/yui/slider/slider-debug.js [deleted file]
koha-tmpl/intranet-tmpl/prog/en/lib/yui/slider/slider-min.js [deleted file]
koha-tmpl/intranet-tmpl/prog/en/lib/yui/slider/slider.js [deleted file]
koha-tmpl/intranet-tmpl/prog/en/lib/yui/storage/storage-debug.js [deleted file]
koha-tmpl/intranet-tmpl/prog/en/lib/yui/storage/storage-min.js [deleted file]
koha-tmpl/intranet-tmpl/prog/en/lib/yui/storage/storage.js [deleted file]
koha-tmpl/intranet-tmpl/prog/en/lib/yui/stylesheet/stylesheet-debug.js [deleted file]
koha-tmpl/intranet-tmpl/prog/en/lib/yui/stylesheet/stylesheet-min.js [deleted file]
koha-tmpl/intranet-tmpl/prog/en/lib/yui/stylesheet/stylesheet.js [deleted file]
koha-tmpl/intranet-tmpl/prog/en/lib/yui/swf/swf-debug.js [deleted file]
koha-tmpl/intranet-tmpl/prog/en/lib/yui/swf/swf-min.js [deleted file]
koha-tmpl/intranet-tmpl/prog/en/lib/yui/swf/swf.js [deleted file]
koha-tmpl/intranet-tmpl/prog/en/lib/yui/swfdetect/swfdetect-debug.js [deleted file]
koha-tmpl/intranet-tmpl/prog/en/lib/yui/swfdetect/swfdetect-min.js [deleted file]
koha-tmpl/intranet-tmpl/prog/en/lib/yui/swfdetect/swfdetect.js [deleted file]
koha-tmpl/intranet-tmpl/prog/en/lib/yui/swfstore/swf.js [deleted file]
koha-tmpl/intranet-tmpl/prog/en/lib/yui/swfstore/swfstore-debug.js [deleted file]
koha-tmpl/intranet-tmpl/prog/en/lib/yui/swfstore/swfstore-min.js [deleted file]
koha-tmpl/intranet-tmpl/prog/en/lib/yui/swfstore/swfstore.js [deleted file]
koha-tmpl/intranet-tmpl/prog/en/lib/yui/swfstore/swfstore.swf [deleted file]
koha-tmpl/intranet-tmpl/prog/en/lib/yui/tabview/assets/border_tabs.css [deleted file]
koha-tmpl/intranet-tmpl/prog/en/lib/yui/tabview/assets/loading.gif [deleted file]
koha-tmpl/intranet-tmpl/prog/en/lib/yui/tabview/assets/skin-sam.css [deleted file]
koha-tmpl/intranet-tmpl/prog/en/lib/yui/tabview/assets/skins/sam/tabview-skin.css [deleted file]
koha-tmpl/intranet-tmpl/prog/en/lib/yui/tabview/assets/skins/sam/tabview.css [deleted file]
koha-tmpl/intranet-tmpl/prog/en/lib/yui/tabview/assets/tabview-core.css [deleted file]
koha-tmpl/intranet-tmpl/prog/en/lib/yui/tabview/assets/tabview.css [deleted file]
koha-tmpl/intranet-tmpl/prog/en/lib/yui/tabview/tabview-debug.js [deleted file]
koha-tmpl/intranet-tmpl/prog/en/lib/yui/tabview/tabview-min.js [deleted file]
koha-tmpl/intranet-tmpl/prog/en/lib/yui/tabview/tabview.js [deleted file]
koha-tmpl/intranet-tmpl/prog/en/lib/yui/treeview/assets/skins/sam/check0.gif [deleted file]
koha-tmpl/intranet-tmpl/prog/en/lib/yui/treeview/assets/skins/sam/check1.gif [deleted file]
koha-tmpl/intranet-tmpl/prog/en/lib/yui/treeview/assets/skins/sam/check2.gif [deleted file]
koha-tmpl/intranet-tmpl/prog/en/lib/yui/treeview/assets/skins/sam/loading.gif [deleted file]
koha-tmpl/intranet-tmpl/prog/en/lib/yui/treeview/assets/skins/sam/treeview-loading.gif [deleted file]
koha-tmpl/intranet-tmpl/prog/en/lib/yui/treeview/assets/skins/sam/treeview-skin.css [deleted file]
koha-tmpl/intranet-tmpl/prog/en/lib/yui/treeview/assets/skins/sam/treeview-sprite.gif [deleted file]
koha-tmpl/intranet-tmpl/prog/en/lib/yui/treeview/assets/skins/sam/treeview.css [deleted file]
koha-tmpl/intranet-tmpl/prog/en/lib/yui/treeview/assets/treeview-core.css [deleted file]
koha-tmpl/intranet-tmpl/prog/en/lib/yui/treeview/treeview-debug.js [deleted file]
koha-tmpl/intranet-tmpl/prog/en/lib/yui/treeview/treeview-min.js [deleted file]
koha-tmpl/intranet-tmpl/prog/en/lib/yui/treeview/treeview.js [deleted file]
koha-tmpl/intranet-tmpl/prog/en/lib/yui/uploader/assets/uploader.swf [deleted file]
koha-tmpl/intranet-tmpl/prog/en/lib/yui/uploader/uploader-debug.js [deleted file]
koha-tmpl/intranet-tmpl/prog/en/lib/yui/uploader/uploader-min.js [deleted file]
koha-tmpl/intranet-tmpl/prog/en/lib/yui/uploader/uploader.js [deleted file]
koha-tmpl/intranet-tmpl/prog/en/lib/yui/yahoo/yahoo-debug.js [deleted file]
koha-tmpl/intranet-tmpl/prog/en/lib/yui/yahoo/yahoo-min.js [deleted file]
koha-tmpl/intranet-tmpl/prog/en/lib/yui/yahoo/yahoo.js [deleted file]
koha-tmpl/intranet-tmpl/prog/en/lib/yui/yuiloader-dom-event/yuiloader-dom-event.js [deleted file]
koha-tmpl/intranet-tmpl/prog/en/lib/yui/yuiloader/yuiloader-debug.js [deleted file]
koha-tmpl/intranet-tmpl/prog/en/lib/yui/yuiloader/yuiloader-min.js [deleted file]
koha-tmpl/intranet-tmpl/prog/en/lib/yui/yuiloader/yuiloader.js [deleted file]
koha-tmpl/intranet-tmpl/prog/en/lib/yui/yuitest/assets/skins/sam/yuitest-skin.css [deleted file]
koha-tmpl/intranet-tmpl/prog/en/lib/yui/yuitest/assets/skins/sam/yuitest.css [deleted file]
koha-tmpl/intranet-tmpl/prog/en/lib/yui/yuitest/assets/testlogger.css [deleted file]
koha-tmpl/intranet-tmpl/prog/en/lib/yui/yuitest/assets/yuitest-core.css [deleted file]
koha-tmpl/intranet-tmpl/prog/en/lib/yui/yuitest/yuitest-debug.js [deleted file]
koha-tmpl/intranet-tmpl/prog/en/lib/yui/yuitest/yuitest-min.js [deleted file]
koha-tmpl/intranet-tmpl/prog/en/lib/yui/yuitest/yuitest.js [deleted file]
koha-tmpl/intranet-tmpl/prog/en/lib/yui/yuitest/yuitest_core-debug.js [deleted file]
koha-tmpl/intranet-tmpl/prog/en/lib/yui/yuitest/yuitest_core-min.js [deleted file]
koha-tmpl/intranet-tmpl/prog/en/lib/yui/yuitest/yuitest_core.js [deleted file]
koha-tmpl/intranet-tmpl/prog/en/modules/circ/circulation.tt
koha-tmpl/intranet-tmpl/prog/en/modules/tools/batchMod-del.tt
koha-tmpl/intranet-tmpl/prog/en/modules/tools/batchMod-edit.tt
koha-tmpl/intranet-tmpl/prog/en/modules/tools/inventory.tt
koha-tmpl/intranet-tmpl/prog/en/modules/tools/manage-marc-import.tt
koha-tmpl/intranet-tmpl/prog/en/xslt/MARC21slimUtils.xsl
koha-tmpl/opac-tmpl/prog/en/modules/opac-authoritiessearchresultlist.tt
koha-tmpl/opac-tmpl/prog/en/xslt/MARC21slimUtils.xsl
labels/label-create-csv.pl
labels/label-create-pdf.pl
labels/label-create-xml.pl
labels/label-edit-batch.pl
labels/label-edit-layout.pl
labels/label-edit-profile.pl
labels/label-edit-template.pl
labels/label-manage.pl
labels/label-print.pl
members/moremember.pl
misc/cronjobs/gather_print_notices.pl
misc/maintenance/check_sysprefs.sh [new file with mode: 0755]
opac/opac-search.pl
patroncards/card-print.pl
patroncards/create-pdf.pl
patroncards/edit-batch.pl
patroncards/edit-layout.pl
patroncards/edit-profile.pl
patroncards/edit-template.pl
patroncards/image-manage.pl
patroncards/manage.pl
patroncards/print.pl
svc/new_bib
t/Kalendar.t
t/db_dependent/check_sysprefs.t [new file with mode: 0755]
tags/list.pl
tags/review.pl
tools/manage-marc-import.pl

index c92c319..ece46a3 100644 (file)
@@ -351,6 +351,10 @@ sub SearchAuthorities {
                         $reported_tag .= '$' . $_->[0] . $_->[1];
                     }
                 }
+                my $thisauthtype = GetAuthType(GetAuthTypeCode($authid));
+                $newline{authtype}     = defined ($thisauthtype) ?
+                                            $thisauthtype->{'authtypetext'} :
+                                            GetAuthType($authtypecode)->{'authtypetext'};
                 $newline{summary}      = $summary;
                 $newline{even}         = $counter % 2;
                 $newline{reported_tag} = $reported_tag;
index efb720b..9508c78 100644 (file)
@@ -701,7 +701,7 @@ sub CanBookBeIssued {
     }
     if ($duedate) {
         my $today = $now->clone();
-        $today->truncate( to => 'minutes');
+        $today->truncate( to => 'minute');
         if (DateTime->compare($duedate,$today) == -1 ) { # duedate cannot be before now
             $needsconfirmation{INVALID_DATE} = output_pref($duedate);
         }
@@ -738,8 +738,8 @@ sub CanBookBeIssued {
                 day   => $d,
                 time_zone => C4::Context->tz,
             );
-            $expiry_dt->truncate( to => 'days');
-            my $today = $now->clone()->truncate(to => 'days');
+            $expiry_dt->truncate( to => 'day');
+            my $today = $now->clone()->truncate(to => 'day');
             if (DateTime->compare($today, $expiry_dt) == 1) {
                 $issuingimpossible{EXPIRED} = 1;
             }
@@ -1051,7 +1051,7 @@ sub AddIssue {
             $datedue = CalcDateDue( $issuedate, $itype, $branch, $borrower );
 
         }
-        $datedue->truncate( to => 'minutes');
+        $datedue->truncate( to => 'minute');
         $sth->execute(
             $borrower->{'borrowernumber'},      # borrowernumber
             $item->{'itemnumber'},              # itemnumber
@@ -2084,10 +2084,10 @@ sub GetItemIssue {
     my $data = $sth->fetchrow_hashref;
     return unless $data;
     $data->{issuedate} = dt_from_string($data->{issuedate}, 'sql');
-    $data->{issuedate}->truncate(to => 'minutes');
+    $data->{issuedate}->truncate(to => 'minute');
     $data->{date_due} = dt_from_string($data->{date_due}, 'sql');
-    $data->{date_due}->truncate(to => 'minutes');
-    my $dt = DateTime->now( time_zone => C4::Context->tz)->truncate( to => 'minutes');
+    $data->{date_due}->truncate(to => 'minute');
+    my $dt = DateTime->now( time_zone => C4::Context->tz)->truncate( to => 'minute');
     $data->{'overdue'} = DateTime->compare($data->{'date_due'}, $dt ) == -1 ? 1 : 0;
     return $data;
 }
@@ -2132,7 +2132,7 @@ sub GetItemIssues {
     my ( $itemnumber, $history ) = @_;
     
     my $today = DateTime->now( time_zome => C4::Context->tz);  # get today date
-    $today->truncate( to => 'minutes' );
+    $today->truncate( to => 'minute' );
     my $sql = "SELECT * FROM issues
               JOIN borrowers USING (borrowernumber)
               JOIN items     USING (itemnumber)
@@ -2154,7 +2154,7 @@ sub GetItemIssues {
     my $results = $sth->fetchall_arrayref({});
     foreach (@$results) {
         my $date_due = dt_from_string($_->{date_due},'sql');
-        $date_due->truncate( to => 'minutes' );
+        $date_due->truncate( to => 'minute' );
 
         $_->{overdue} = (DateTime->compare($date_due, $today) == -1) ? 1 : 0;
     }
index e9e4dac..693dd84 100644 (file)
@@ -38,8 +38,8 @@ BEGIN {
                      get_unit_values
                      html_table
     );
-    use C4::Creators::Lib 1.000000;
-    use C4::Creators::PDF 1.000000;
+    use C4::Creators::Lib;
+    use C4::Creators::PDF;
 }
 
 1;
index c94a219..a063aaf 100644 (file)
@@ -7,7 +7,7 @@ use autouse 'Data::Dumper' => qw(Dumper);
 
 use C4::Context;
 use C4::Debug;
-use C4::Creators::Lib 1.000000 qw(get_unit_values);
+use C4::Creators::Lib qw(get_unit_values);
 
 BEGIN {
     use version; our $VERSION = qv('3.07.00.049');
index d80100e..b0b7da0 100644 (file)
@@ -7,8 +7,8 @@ use autouse 'Data::Dumper' => qw(Dumper);
 
 use C4::Context;
 use C4::Debug;
-use C4::Creators::Profile 1.000000;
-use C4::Creators::Lib 1.000000 qw(get_unit_values);
+use C4::Creators::Profile;
+use C4::Creators::Lib qw(get_unit_values);
 
 BEGIN {
     use version; our $VERSION = qv('3.07.00.049');
index ccacd8e..c1f356f 100644 (file)
@@ -22,7 +22,7 @@ use strict;
 
 our $VERSION = 3.07.00.049;
 use C4::Context;
-use C4::Installer::PerlModules 1.000000;
+use C4::Installer::PerlModules;
 
 =head1 NAME
 
index cc10c9a..d5e9326 100644 (file)
@@ -577,6 +577,11 @@ our $PERL_DEPS = {
     'Test::Strict' => {
         'usage'    => 'Core',
         'required' => '0.14',
+    },
+    'Text::Unaccent' => {
+        'usage'    => 'Core',
+        'required' => '1',
+        'min_ver'  => '1.08',
     }
 };
 
index 6462ed8..b4a5e36 100644 (file)
@@ -3,11 +3,11 @@ package C4::Labels;
 BEGIN {
     use version; our $VERSION = qv('3.07.00.049');
 
-    use C4::Labels::Batch 1.000000;
-    use C4::Labels::Label 1.000000;
-    use C4::Labels::Layout 1.000000;
-    use C4::Labels::Profile 1.000000;
-    use C4::Labels::Template 1.000000;
+    use C4::Labels::Batch;
+    use C4::Labels::Label;
+    use C4::Labels::Layout;
+    use C4::Labels::Profile;
+    use C4::Labels::Template;
 }
 
 1;
index 893419c..b366fbc 100644 (file)
@@ -93,7 +93,7 @@ $template->param(LETTERLOOP => \@letterloop);
 
 =cut
 
-sub GetLetters (;$) {
+sub GetLetters {
 
     # returns a reference to a hash of references to ALL letters...
     my $cat = shift;
@@ -117,7 +117,7 @@ sub GetLetters (;$) {
 }
 
 my %letter;
-sub getletter ($$$) {
+sub getletter {
     my ( $module, $code, $branchcode ) = @_;
 
     if (C4::Context->preference('IndependantBranches') && $branchcode){
@@ -149,7 +149,7 @@ sub getletter ($$$) {
 
 =cut
 
-sub addalert ($$$) {
+sub addalert {
     my ( $borrowernumber, $type, $externalid ) = @_;
     my $dbh = C4::Context->dbh;
     my $sth =
@@ -170,7 +170,7 @@ sub addalert ($$$) {
 
 =cut
 
-sub delalert ($) {
+sub delalert {
     my $alertid = shift or die "delalert() called without valid argument (alertid)";    # it's gonna die anyway.
     $debug and warn "delalert: deleting alertid $alertid";
     my $sth = C4::Context->dbh->prepare("delete from alert where alertid=?");
@@ -187,7 +187,7 @@ sub delalert ($) {
 
 =cut
 
-sub getalert (;$$$) {
+sub getalert {
     my ( $borrowernumber, $type, $externalid ) = @_;
     my $dbh   = C4::Context->dbh;
     my $query = "SELECT a.*, b.branchcode FROM alert a JOIN borrowers b USING(borrowernumber) WHERE";
@@ -224,16 +224,16 @@ sub getalert (;$$$) {
 # outmoded POD:
 # When type=virtual, the id is related to a virtual shelf and this sub returns the name of the sub
 
-sub findrelatedto ($$) {
-    my $type       = shift or return undef;
-    my $externalid = shift or return undef;
+sub findrelatedto {
+    my $type       = shift or return;
+    my $externalid = shift or return;
     my $q = ($type eq 'issue'   ) ?
 "select title as result from subscription left join biblio on subscription.biblionumber=biblio.biblionumber where subscriptionid=?" :
             ($type eq 'borrower') ?
 "select concat(firstname,' ',surname) from borrowers where borrowernumber=?" : undef;
     unless ($q) {
         warn "findrelatedto(): Illegal type '$type'";
-        return undef;
+        return;
     }
     my $sth = C4::Context->dbh->prepare($q);
     $sth->execute($externalid);
@@ -666,8 +666,8 @@ return message_id on success
 
 =cut
 
-sub EnqueueLetter ($) {
-    my $params = shift or return undef;
+sub EnqueueLetter {
+    my $params = shift or return;
 
     return unless exists $params->{'letter'};
     return unless exists $params->{'borrowernumber'};
@@ -724,7 +724,7 @@ returns number of messages sent.
 
 =cut
 
-sub SendQueuedMessages (;$) {
+sub SendQueuedMessages {
     my $params = shift;
 
     my $unsent_messages = _get_unsent_messages();
@@ -779,7 +779,8 @@ sub GetPrintMessages {
     my $params = shift || {};
     
     return _get_unsent_messages( { message_transport_type => 'print',
-                                   borrowernumber         => $params->{'borrowernumber'}, } );
+                                   borrowernumber         => $params->{'borrowernumber'},
+                                 } );
 }
 
 =head2 GetQueuedMessages ([$hashref])
@@ -869,13 +870,14 @@ sub _add_attachments {
 
 }
 
-sub _get_unsent_messages (;$) {
+sub _get_unsent_messages {
     my $params = shift;
 
     my $dbh = C4::Context->dbh();
     my $statement = << 'ENDSQL';
-SELECT message_id, borrowernumber, subject, content, message_transport_type, status, time_queued, from_address, to_address, content_type
-  FROM message_queue
+SELECT mq.message_id, mq.borrowernumber, mq.subject, mq.content, mq.message_transport_type, mq.status, mq.time_queued, mq.from_address, mq.to_address, mq.content_type, b.branchcode
+  FROM message_queue mq
+  LEFT JOIN borrowers b ON b.borrowernumber = mq.borrowernumber
  WHERE status = ?
 ENDSQL
 
@@ -894,6 +896,7 @@ ENDSQL
             push @query_params, $params->{'limit'};
         }
     }
+
     $debug and warn "_get_unsent_messages SQL: $statement";
     $debug and warn "_get_unsent_messages params: " . join(',',@query_params);
     my $sth = $dbh->prepare( $statement );
@@ -901,7 +904,7 @@ ENDSQL
     return $sth->fetchall_arrayref({});
 }
 
-sub _send_message_by_email ($;$$$) {
+sub _send_message_by_email {
     my $message = shift or return;
     my ($username, $password, $method) = @_;
 
@@ -983,8 +986,8 @@ $content
 EOS
 }
 
-sub _send_message_by_sms ($) {
-    my $message = shift or return undef;
+sub _send_message_by_sms {
+    my $message = shift or return;
     my $member = C4::Members::GetMember( 'borrowernumber' => $message->{'borrowernumber'} );
     return unless $member->{'smsalertnumber'};
 
@@ -1002,11 +1005,11 @@ sub _update_message_to_address {
     $dbh->do('UPDATE message_queue SET to_address=? WHERE message_id=?',undef,($to,$id));
 }
 
-sub _set_message_status ($) {
-    my $params = shift or return undef;
+sub _set_message_status {
+    my $params = shift or return;
 
     foreach my $required_parameter ( qw( message_id status ) ) {
-        return undef unless exists $params->{ $required_parameter };
+        return unless exists $params->{ $required_parameter };
     }
 
     my $dbh = C4::Context->dbh();
index 748243d..b41986c 100644 (file)
@@ -13,12 +13,12 @@ BEGIN {
                      get_image
                      rm_image
     );
-    use C4::Patroncards::Batch 1.000000;
-    use C4::Patroncards::Layout 1.000000;
-    use C4::Patroncards::Lib 1.000000;
-    use C4::Patroncards::Patroncard 1.000000;
-    use C4::Patroncards::Profile 1.000000;
-    use C4::Patroncards::Template 1.000000;
+    use C4::Patroncards::Batch;
+    use C4::Patroncards::Layout;
+    use C4::Patroncards::Lib;
+    use C4::Patroncards::Patroncard;
+    use C4::Patroncards::Profile;
+    use C4::Patroncards::Template;
 }
 
 1;
index 440a05c..339b969 100644 (file)
@@ -24,9 +24,9 @@ use autouse 'Data::Dumper' => qw(Dumper);
 use Text::Wrap qw(wrap);
 #use Font::TTFMetrics;
 
-use C4::Creators::Lib 1.000000 qw(get_font_types);
-use C4::Creators::PDF 1.000000 qw(StrWidth);
-use C4::Patroncards::Lib 1.000000 qw(unpack_UTF8 text_alignment leading box get_borrower_attributes);
+use C4::Creators::Lib qw(get_font_types);
+use C4::Creators::PDF qw(StrWidth);
+use C4::Patroncards::Lib qw(unpack_UTF8 text_alignment leading box get_borrower_attributes);
 
 BEGIN {
     use version; our $VERSION = qv('3.07.00.049');
index 4f61661..fd81610 100644 (file)
@@ -732,7 +732,7 @@ sub _detect_truncation {
 sub _build_stemmed_operand {
     my ($operand,$lang) = @_;
     require Lingua::Stem::Snowball ;
-    my $stemmed_operand;
+    my $stemmed_operand=q{};
 
     # If operand contains a digit, it is almost certainly an identifier, and should
     # not be stemmed.  This is particularly relevant for ISBNs and ISSNs, which
index dc132cd..495f8ce 100644 (file)
@@ -93,7 +93,7 @@ sub addDate {
     Readonly::Scalar my $return_by_hour => 10;
     my $day_dur = DateTime::Duration->new( days => 1 );
     if ( $add_duration->is_negative() ) {
-        $day_dur->inverse();
+        $day_dur = DateTime::Duration->new( days => -1 );
     }
     if ( $days_mode eq 'Datedue' ) {
 
@@ -147,7 +147,7 @@ sub is_holiday {
     if ( $self->{weekly_closed_days}->[$dow] == 1 ) {
         return 1;
     }
-    $dt->truncate( to => 'days' );
+    $dt->truncate( to => 'day' );
     my $day   = $dt->day;
     my $month = $dt->month;
     if ( exists $self->{day_month_closed_days}->{$month}->{$day} ) {
@@ -189,8 +189,8 @@ sub days_between {
 sub hours_between {
     my ($self, $start_dt, $end_dt) = @_;
     my $duration = $end_dt->delta_ms($start_dt);
-    $start_dt->truncate( to => 'days' );
-    $end_dt->truncate( to => 'days' );
+    $start_dt->truncate( to => 'day' );
+    $end_dt->truncate( to => 'day' );
     # NB this is a kludge in that it assumes all days are 24 hours
     # However for hourly loans the logic should be expanded to
     # take into account open/close times then it would be a duration
index e2e92bd..a1fd088 100644 (file)
@@ -158,7 +158,7 @@ sub format_sqldatetime {
     my $force_pref = shift;    # if testing we want to override Context
     if ( defined $str && $str =~ m/^\d{4}-\d{2}-\d{2}/ ) {
         my $dt = dt_from_string( $str, 'sql' );
-        $dt->truncate( to => 'minutes' );
+        $dt->truncate( to => 'minute' );
         return output_pref( $dt, $force_pref );
     }
     return q{};
@@ -178,7 +178,7 @@ sub format_sqlduedatetime {
     my $force_pref = shift;    # if testing we want to override Context
     if ( defined $str && $str =~ m/^\d{4}-\d{2}-\d{2}/ ) {
         my $dt = dt_from_string( $str, 'sql' );
-        $dt->truncate( to => 'minutes' );
+        $dt->truncate( to => 'minute' );
         return output_pref_due( $dt, $force_pref );
     }
     return q{};
index 148394a..6d5925e 100644 (file)
@@ -93,7 +93,7 @@ sub printorders {
             $arrbasket = undef;
             push( @$arrbasket, 
                 $basket->{basketno}, 
-                @$line[3]." / ".@$line[2].(@$line[0]?" ISBN : ".@$line[0]:'').(@$line[10]?" EN : ".@$line[10]:'').", ".@$line[1].(@$line[4]?' publié par '.@$line[4]:''), 
+                @$line[3]." / ".@$line[2].(@$line[0]?" ISBN : ".@$line[0]:'').(@$line[10]?" EN : ".@$line[10]:'').", ".@$line[1].(@$line[4]?' published by '.@$line[4]:''),
                 @$line[5],
                 $num->format_price(@$line[6]),
                 $num->format_price(@$line[8]).'%',
index 7dab18f..324b88e 100644 (file)
@@ -104,7 +104,7 @@ sub printorders {
 #         @{$orders->{$basket->{basketno}}});
         foreach my $line (@{$orders->{$basket->{basketno}}}) {
             $arrbasket = undef;
-            push(@$arrbasket, @$line[3]." / ".@$line[2].(@$line[0]?" ISBN : ".@$line[0]:'').(@$line[10]?" EN : ".@$line[10]:'').", ".@$line[1].(@$line[4]?' publié par '.@$line[4]:''), @$line[5],$num->format_price(@$line[6]),$num->format_price(@$line[8]).'%',$num->format_price(@$line[7]/(1+@$line[9]/100)),$num->format_price(@$line[9]).'%',$num->format_price($num->round(@$line[7])*@$line[5]));
+            push(@$arrbasket, @$line[3]." / ".@$line[2].(@$line[0]?" ISBN : ".@$line[0]:'').(@$line[10]?" EN : ".@$line[10]:'').", ".@$line[1].(@$line[4]?' published by '.@$line[4]:''), @$line[5],$num->format_price(@$line[6]),$num->format_price(@$line[8]).'%',$num->format_price(@$line[7]/(1+@$line[9]/100)),$num->format_price(@$line[9]).'%',$num->format_price($num->round(@$line[7])*@$line[5]));
             push(@$abaskets, $arrbasket);
         }
         
index 23653f6..5774e6f 100755 (executable)
@@ -612,7 +612,7 @@ if ($op eq "add") {
         build_hidden_data;
         $template->param(authid =>$authid,
                         duplicateauthid     => $duplicateauthid,
-                        duplicateauthvalue  => $duplicateauthvalue,
+                        duplicateauthvalue  => $duplicateauthvalue->{authorized}->[0],
                         );
     }
 } elsif ($op eq "delete") {
index 56e0941..e44e792 100755 (executable)
@@ -239,7 +239,7 @@ if ($noreport) {
 
 
     my $today_dt = DateTime->now(time_zone => C4::Context->tz);
-    $today_dt->truncate(to => 'minutes');
+    $today_dt->truncate(to => 'minute');
     my $todaysdate = $today_dt->strftime('%Y-%m-%d %H:%M');
 
     $bornamefilter =~s/\*/\%/g;
index 38e9887..b9127da 100755 (executable)
@@ -250,7 +250,7 @@ if ($barcode) {
     );
 
     if ($returned) {
-        my $time_now = DateTime->now( time_zone => C4::Context->tz )->truncate( to => 'minutes');
+        my $time_now = DateTime->now( time_zone => C4::Context->tz )->truncate( to => 'minute');
         my $duedate = $issueinformation->{date_due}->strftime('%Y-%m-%d %H:%M');
         $returneditems{0}      = $barcode;
         $riborrowernumber{0}   = $borrower->{'borrowernumber'};
index 0cfcdf7..ad00807 100644 (file)
@@ -1161,6 +1161,7 @@ td input.approve {
 
 div.dialog {
        border: 1px solid #bcbcbc;
+    text-align : center;
 }
 
 div.alert {
@@ -1180,13 +1181,8 @@ div.alert strong {
        color : #900;
 }
 
-div.dialog {
-  background : #FFC url(../../img/dialog-bg.gif) repeat-x left 0;
-  text-align : center;
-}
-
 .dialog li {
- list-style-position:inside;
   list-style-position:inside;
 }
 
 a.document {
index b01552c..ed0d92f 100644 (file)
@@ -5,13 +5,12 @@
 
 
 function hideColumns(){
-  valCookie = YAHOO.util.Cookie.get("showColumns", function(stringValue){
-    return stringValue.split("/");
-  });
+  valCookie = $.cookie("showColumns");
   if(valCookie){
+    valCookie = valCookie.split("/");
     $("#showall").removeAttr("checked").parent().removeClass("selected");
     for( i=0; i<valCookie.length; i++ ){
-      if(valCookie[i] != ''){
+      if(valCookie[i] !== ''){
         index = valCookie[i] - 2;
         $("#itemst td:nth-child("+valCookie[i]+"),#itemst th:nth-child("+valCookie[i]+")").toggle();
         $("#checkheader"+index).removeAttr("checked").parent().removeClass("selected");
@@ -22,9 +21,7 @@ function hideColumns(){
 
 function hideColumn(num) {
   $("#hideall,#showall").removeAttr("checked").parent().removeClass("selected");
-  valCookie = YAHOO.util.Cookie.get("showColumns", function(stringValue){
-    return stringValue.split("/");
-  });
+  valCookie = $.cookie("showColumns");
   // set the index of the table column to hide
   $("#"+num).parent().removeClass("selected");
   var hide = Number(num.replace("checkheader","")) + 2;
@@ -32,6 +29,7 @@ function hideColumn(num) {
   $("#itemst td:nth-child("+hide+"),#itemst th:nth-child("+hide+")").toggle();
   // set or modify cookie with the hidden column's index
   if(valCookie){
+    valCookie = valCookie.split("/");
     var found = false;
     for( $i=0; $i<valCookie.length; $i++ ){
         if (hide == valCookie[i]) {
@@ -42,14 +40,10 @@ function hideColumn(num) {
     if( !found ){
         valCookie.push(hide);
         var cookieString = valCookie.join("/");
-        YAHOO.util.Cookie.set("showColumns", cookieString, {
-          expires: date
-        });
+        $.cookie("showColumns", cookieString, { expires : date });
     }
   } else {
-        YAHOO.util.Cookie.set("showColumns", hide, {
-          expires: date
-        });
+        $.cookie("showColumns", hide, { expires : date });
   }
 }
 
@@ -64,15 +58,14 @@ Array.prototype.remove = function(from, to) {
 function showColumn(num){
   $("#hideall").removeAttr("checked").parent().removeClass("selected");
   $("#"+num).parent().addClass("selected");
-  valCookie = YAHOO.util.Cookie.get("showColumns", function(stringValue){
-    return stringValue.split("/");
-  });
+  valCookie = $.cookie("showColumns");
   // set the index of the table column to hide
   show = Number(num.replace("checkheader","")) + 2;
   // hide header and cells matching the index
   $("#itemst td:nth-child("+show+"),#itemst th:nth-child("+show+")").toggle();
   // set or modify cookie with the hidden column's index
   if(valCookie){
+    valCookie = valCookie.split("/");
     var found = false;
     for( i=0; i<valCookie.length; i++ ){
         if (show == valCookie[i]) {
@@ -82,9 +75,7 @@ function showColumn(num){
     }
     if( found ){
         var cookieString = valCookie.join("/");
-        YAHOO.util.Cookie.set("showColumns", cookieString, {
-          expires: date
-        });
+        $.cookie("showColumns", cookieString, { expires : date });
     }
   }
 }
@@ -92,7 +83,7 @@ function showAllColumns(){
     $("#selections").checkCheckboxes();
     $("#selections span").addClass("selected");
     $("#itemst td:nth-child(2),#itemst tr th:nth-child(2)").nextAll().show();
-    YAHOO.util.Cookie.remove("showColumns");
+    $.cookie("showColumns",null);
     $("#hideall").removeAttr("checked").parent().removeClass("selected");
 }
 function hideAllColumns(){
@@ -101,9 +92,7 @@ function hideAllColumns(){
     $("#itemst td:nth-child(2),#itemst th:nth-child(2)").nextAll().hide();
     $("#hideall").attr("checked","checked").parent().addClass("selected");
     var cookieString = allColumns.join("/");
-    YAHOO.util.Cookie.set("showColumns", cookieString, {
-      expires: date
-    });
+    $.cookie("showColumns", cookieString, { expires : date });
 }
 
   $(document).ready(function() {
diff --git a/koha-tmpl/intranet-tmpl/prog/en/lib/yui/assets/skins/sam/ajax-loader.gif b/koha-tmpl/intranet-tmpl/prog/en/lib/yui/assets/skins/sam/ajax-loader.gif
deleted file mode 100644 (file)
index fe2cd23..0000000
Binary files a/koha-tmpl/intranet-tmpl/prog/en/lib/yui/assets/skins/sam/ajax-loader.gif and /dev/null differ
diff --git a/koha-tmpl/intranet-tmpl/prog/en/lib/yui/assets/skins/sam/asc.gif b/koha-tmpl/intranet-tmpl/prog/en/lib/yui/assets/skins/sam/asc.gif
deleted file mode 100644 (file)
index a1fe738..0000000
Binary files a/koha-tmpl/intranet-tmpl/prog/en/lib/yui/assets/skins/sam/asc.gif and /dev/null differ
diff --git a/koha-tmpl/intranet-tmpl/prog/en/lib/yui/assets/skins/sam/autocomplete.css b/koha-tmpl/intranet-tmpl/prog/en/lib/yui/assets/skins/sam/autocomplete.css
deleted file mode 100644 (file)
index 07fc030..0000000
+++ /dev/null
@@ -1,7 +0,0 @@
-/*
-Copyright (c) 2009, Yahoo! Inc. All rights reserved.
-Code licensed under the BSD License:
-http://developer.yahoo.net/yui/license.txt
-version: 2.8.0r4
-*/
-.yui-skin-sam .yui-ac{position:relative;font-family:arial;font-size:100%;}.yui-skin-sam .yui-ac-input{position:absolute;width:100%;}.yui-skin-sam .yui-ac-container{position:absolute;top:1.6em;width:100%;}.yui-skin-sam .yui-ac-content{position:absolute;width:100%;border:1px solid #808080;background:#fff;overflow:hidden;z-index:9050;}.yui-skin-sam .yui-ac-shadow{position:absolute;margin:.3em;width:100%;background:#000;-moz-opacity:.10;opacity:.10;filter:alpha(opacity=10);z-index:9049;}.yui-skin-sam .yui-ac iframe{opacity:0;filter:alpha(opacity=0);padding-right:.3em;padding-bottom:.3em;}.yui-skin-sam .yui-ac-content ul{margin:0;padding:0;width:100%;}.yui-skin-sam .yui-ac-content li{margin:0;padding:2px 5px;cursor:default;white-space:nowrap;list-style:none;zoom:1;}.yui-skin-sam .yui-ac-content li.yui-ac-prehighlight{background:#B3D4FF;}.yui-skin-sam .yui-ac-content li.yui-ac-highlight{background:#426FD9;color:#FFF;}
diff --git a/koha-tmpl/intranet-tmpl/prog/en/lib/yui/assets/skins/sam/back-h.png b/koha-tmpl/intranet-tmpl/prog/en/lib/yui/assets/skins/sam/back-h.png
deleted file mode 100644 (file)
index 5f69f4e..0000000
Binary files a/koha-tmpl/intranet-tmpl/prog/en/lib/yui/assets/skins/sam/back-h.png and /dev/null differ
diff --git a/koha-tmpl/intranet-tmpl/prog/en/lib/yui/assets/skins/sam/back-v.png b/koha-tmpl/intranet-tmpl/prog/en/lib/yui/assets/skins/sam/back-v.png
deleted file mode 100644 (file)
index 658574a..0000000
Binary files a/koha-tmpl/intranet-tmpl/prog/en/lib/yui/assets/skins/sam/back-v.png and /dev/null differ
diff --git a/koha-tmpl/intranet-tmpl/prog/en/lib/yui/assets/skins/sam/bar-h.png b/koha-tmpl/intranet-tmpl/prog/en/lib/yui/assets/skins/sam/bar-h.png
deleted file mode 100644 (file)
index fea13b1..0000000
Binary files a/koha-tmpl/intranet-tmpl/prog/en/lib/yui/assets/skins/sam/bar-h.png and /dev/null differ
diff --git a/koha-tmpl/intranet-tmpl/prog/en/lib/yui/assets/skins/sam/bar-v.png b/koha-tmpl/intranet-tmpl/prog/en/lib/yui/assets/skins/sam/bar-v.png
deleted file mode 100644 (file)
index 2efd664..0000000
Binary files a/koha-tmpl/intranet-tmpl/prog/en/lib/yui/assets/skins/sam/bar-v.png and /dev/null differ
diff --git a/koha-tmpl/intranet-tmpl/prog/en/lib/yui/assets/skins/sam/bg-h.gif b/koha-tmpl/intranet-tmpl/prog/en/lib/yui/assets/skins/sam/bg-h.gif
deleted file mode 100644 (file)
index 9962889..0000000
Binary files a/koha-tmpl/intranet-tmpl/prog/en/lib/yui/assets/skins/sam/bg-h.gif and /dev/null differ
diff --git a/koha-tmpl/intranet-tmpl/prog/en/lib/yui/assets/skins/sam/bg-v.gif b/koha-tmpl/intranet-tmpl/prog/en/lib/yui/assets/skins/sam/bg-v.gif
deleted file mode 100644 (file)
index 8e287cd..0000000
Binary files a/koha-tmpl/intranet-tmpl/prog/en/lib/yui/assets/skins/sam/bg-v.gif and /dev/null differ
diff --git a/koha-tmpl/intranet-tmpl/prog/en/lib/yui/assets/skins/sam/blankimage.png b/koha-tmpl/intranet-tmpl/prog/en/lib/yui/assets/skins/sam/blankimage.png
deleted file mode 100644 (file)
index b87bb24..0000000
Binary files a/koha-tmpl/intranet-tmpl/prog/en/lib/yui/assets/skins/sam/blankimage.png and /dev/null differ
diff --git a/koha-tmpl/intranet-tmpl/prog/en/lib/yui/assets/skins/sam/button.css b/koha-tmpl/intranet-tmpl/prog/en/lib/yui/assets/skins/sam/button.css
deleted file mode 100644 (file)
index 9d63c61..0000000
+++ /dev/null
@@ -1,7 +0,0 @@
-/*
-Copyright (c) 2009, Yahoo! Inc. All rights reserved.
-Code licensed under the BSD License:
-http://developer.yahoo.net/yui/license.txt
-version: 2.8.0r4
-*/
-.yui-button{display:-moz-inline-box;display:inline-block;vertical-align:text-bottom;}.yui-button .first-child{display:block;*display:inline-block;}.yui-button button,.yui-button a{display:block;*display:inline-block;border:none;margin:0;}.yui-button button{background-color:transparent;*overflow:visible;cursor:pointer;}.yui-button a{text-decoration:none;}.yui-skin-sam .yui-button{border-width:1px 0;border-style:solid;border-color:#808080;background:url(sprite.png) repeat-x 0 0;margin:auto .25em;}.yui-skin-sam .yui-button .first-child{border-width:0 1px;border-style:solid;border-color:#808080;margin:0 -1px;_margin:0;}.yui-skin-sam .yui-button button,.yui-skin-sam .yui-button a,.yui-skin-sam .yui-button a:visited{padding:0 10px;font-size:93%;line-height:2;*line-height:1.7;min-height:2em;*min-height:auto;color:#000;}.yui-skin-sam .yui-button a{*line-height:1.875;*padding-bottom:1px;}.yui-skin-sam .yui-split-button button,.yui-skin-sam .yui-menu-button button{padding-right:20px;background-position:right center;background-repeat:no-repeat;}.yui-skin-sam .yui-menu-button button{background-image:url(menu-button-arrow.png);}.yui-skin-sam .yui-split-button button{background-image:url(split-button-arrow.png);}.yui-skin-sam .yui-button-focus{border-color:#7D98B8;background-position:0 -1300px;}.yui-skin-sam .yui-button-focus .first-child{border-color:#7D98B8;}.yui-skin-sam .yui-split-button-focus button{background-image:url(split-button-arrow-focus.png);}.yui-skin-sam .yui-button-hover{border-color:#7D98B8;background-position:0 -1300px;}.yui-skin-sam .yui-button-hover .first-child{border-color:#7D98B8;}.yui-skin-sam .yui-split-button-hover button{background-image:url(split-button-arrow-hover.png);}.yui-skin-sam .yui-button-active{border-color:#7D98B8;background-position:0 -1700px;}.yui-skin-sam .yui-button-active .first-child{border-color:#7D98B8;}.yui-skin-sam .yui-split-button-activeoption{border-color:#808080;background-position:0 0;}.yui-skin-sam .yui-split-button-activeoption .first-child{border-color:#808080;}.yui-skin-sam .yui-split-button-activeoption button{background-image:url(split-button-arrow-active.png);}.yui-skin-sam .yui-radio-button-checked,.yui-skin-sam .yui-checkbox-button-checked{border-color:#304369;background-position:0 -1400px;}.yui-skin-sam .yui-radio-button-checked .first-child,.yui-skin-sam .yui-checkbox-button-checked .first-child{border-color:#304369;}.yui-skin-sam .yui-radio-button-checked button,.yui-skin-sam .yui-checkbox-button-checked button{color:#fff;}.yui-skin-sam .yui-button-disabled{border-color:#ccc;background-position:0 -1500px;}.yui-skin-sam .yui-button-disabled .first-child{border-color:#ccc;}.yui-skin-sam .yui-button-disabled button,.yui-skin-sam .yui-button-disabled a,.yui-skin-sam .yui-button-disabled a:visited{color:#A6A6A6;cursor:default;}.yui-skin-sam .yui-menu-button-disabled button{background-image:url(menu-button-arrow-disabled.png);}.yui-skin-sam .yui-split-button-disabled button{background-image:url(split-button-arrow-disabled.png);}
diff --git a/koha-tmpl/intranet-tmpl/prog/en/lib/yui/assets/skins/sam/calendar.css b/koha-tmpl/intranet-tmpl/prog/en/lib/yui/assets/skins/sam/calendar.css
deleted file mode 100644 (file)
index b01c7e6..0000000
+++ /dev/null
@@ -1,8 +0,0 @@
-/*
-Copyright (c) 2009, Yahoo! Inc. All rights reserved.
-Code licensed under the BSD License:
-http://developer.yahoo.net/yui/license.txt
-version: 2.8.0r4
-*/
-.yui-calcontainer{position:relative;float:left;_overflow:hidden;}.yui-calcontainer iframe{position:absolute;border:none;margin:0;padding:0;z-index:0;width:100%;height:100%;left:0;top:0;}.yui-calcontainer iframe.fixedsize{width:50em;height:50em;top:-1px;left:-1px;}.yui-calcontainer.multi .groupcal{z-index:1;float:left;position:relative;}.yui-calcontainer .title{position:relative;z-index:1;}.yui-calcontainer .close-icon{position:absolute;z-index:1;text-indent:-10000em;overflow:hidden;}.yui-calendar{position:relative;}.yui-calendar .calnavleft{position:absolute;z-index:1;text-indent:-10000em;overflow:hidden;}.yui-calendar .calnavright{position:absolute;z-index:1;text-indent:-10000em;overflow:hidden;}.yui-calendar .calheader{position:relative;width:100%;text-align:center;}.yui-calcontainer .yui-cal-nav-mask{position:absolute;z-index:2;margin:0;padding:0;width:100%;height:100%;_width:0;_height:0;left:0;top:0;display:none;}.yui-calcontainer .yui-cal-nav{position:absolute;z-index:3;top:0;display:none;}.yui-calcontainer .yui-cal-nav .yui-cal-nav-btn{display:-moz-inline-box;display:inline-block;}.yui-calcontainer .yui-cal-nav .yui-cal-nav-btn button{display:block;*display:inline-block;*overflow:visible;border:none;background-color:transparent;cursor:pointer;}.yui-calendar .calbody a:hover{background:inherit;}p#clear{clear:left;padding-top:10px;}.yui-skin-sam .yui-calcontainer{background-color:#f2f2f2;border:1px solid #808080;padding:10px;}.yui-skin-sam .yui-calcontainer.multi{padding:0 5px 0 5px;}.yui-skin-sam .yui-calcontainer.multi .groupcal{background-color:transparent;border:none;padding:10px 5px 10px 5px;margin:0;}.yui-skin-sam .yui-calcontainer .title{background:url(sprite.png) repeat-x 0 0;border-bottom:1px solid #ccc;font:100% sans-serif;color:#000;font-weight:bold;height:auto;padding:.4em;margin:0 -10px 10px -10px;top:0;left:0;text-align:left;}.yui-skin-sam .yui-calcontainer.multi .title{margin:0 -5px 0 -5px;}.yui-skin-sam .yui-calcontainer.withtitle{padding-top:0;}.yui-skin-sam .yui-calcontainer .calclose{background:url(sprite.png) no-repeat 0 -300px;width:25px;height:15px;top:.4em;right:.4em;cursor:pointer;}.yui-skin-sam .yui-calendar{border-spacing:0;border-collapse:collapse;font:100% sans-serif;text-align:center;margin:0;}.yui-skin-sam .yui-calendar .calhead{background:transparent;border:none;vertical-align:middle;padding:0;}.yui-skin-sam .yui-calendar .calheader{background:transparent;font-weight:bold;padding:0 0 .6em 0;text-align:center;}.yui-skin-sam .yui-calendar .calheader img{border:none;}.yui-skin-sam .yui-calendar .calnavleft{background:url(sprite.png) no-repeat 0 -450px;width:25px;height:15px;top:0;bottom:0;left:-10px;margin-left:.4em;cursor:pointer;}.yui-skin-sam .yui-calendar .calnavright{background:url(sprite.png) no-repeat 0 -500px;width:25px;height:15px;top:0;bottom:0;right:-10px;margin-right:.4em;cursor:pointer;}.yui-skin-sam .yui-calendar .calweekdayrow{height:2em;}.yui-skin-sam .yui-calendar .calweekdayrow th{padding:0;border:none;}.yui-skin-sam .yui-calendar .calweekdaycell{color:#000;font-weight:bold;text-align:center;width:2em;}.yui-skin-sam .yui-calendar .calfoot{background-color:#f2f2f2;}.yui-skin-sam .yui-calendar .calrowhead,.yui-skin-sam .yui-calendar .calrowfoot{color:#a6a6a6;font-size:85%;font-style:normal;font-weight:normal;border:none;}.yui-skin-sam .yui-calendar .calrowhead{text-align:right;padding:0 2px 0 0;}.yui-skin-sam .yui-calendar .calrowfoot{text-align:left;padding:0 0 0 2px;}.yui-skin-sam .yui-calendar td.calcell{border:1px solid #ccc;background:#fff;padding:1px;height:1.6em;line-height:1.6em;text-align:center;white-space:nowrap;}.yui-skin-sam .yui-calendar td.calcell a{color:#06c;display:block;height:100%;text-decoration:none;}.yui-skin-sam .yui-calendar td.calcell.today{background-color:#000;}.yui-skin-sam .yui-calendar td.calcell.today a{background-color:#fff;}.yui-skin-sam .yui-calendar td.calcell.oom{background-color:#ccc;color:#a6a6a6;cursor:default;}.yui-skin-sam .yui-calendar td.calcell.selected{background-color:#fff;color:#000;}.yui-skin-sam .yui-calendar td.calcell.selected a{background-color:#b3d4ff;color:#000;}.yui-skin-sam .yui-calendar td.calcell.calcellhover{background-color:#426fd9;color:#fff;cursor:pointer;}.yui-skin-sam .yui-calendar td.calcell.calcellhover a{background-color:#426fd9;color:#fff;}.yui-skin-sam .yui-calendar td.calcell.previous{color:#e0e0e0;}.yui-skin-sam .yui-calendar td.calcell.restricted{text-decoration:line-through;}.yui-skin-sam .yui-calendar td.calcell.highlight1{background-color:#cf9;}.yui-skin-sam .yui-calendar td.calcell.highlight2{background-color:#9cf;}.yui-skin-sam .yui-calendar td.calcell.highlight3{background-color:#fcc;}.yui-skin-sam .yui-calendar td.calcell.highlight4{background-color:#cf9;}.yui-skin-sam .yui-calendar a.calnav{border:1px solid #f2f2f2;padding:0 4px;text-decoration:none;color:#000;zoom:1;}.yui-skin-sam .yui-calendar a.calnav:hover{background:url(sprite.png) repeat-x 0 0;border-color:#A0A0A0;cursor:pointer;}.yui-skin-sam .yui-calcontainer .yui-cal-nav-mask{background-color:#000;opacity:.25;filter:alpha(opacity=25);}.yui-skin-sam .yui-calcontainer .yui-cal-nav{font-family:arial,helvetica,clean,sans-serif;font-size:93%;border:1px solid #808080;left:50%;margin-left:-7em;width:14em;padding:0;top:2.5em;background-color:#f2f2f2;}.yui-skin-sam .yui-calcontainer.withtitle .yui-cal-nav{top:4.5em;}.yui-skin-sam .yui-calcontainer.multi .yui-cal-nav{width:16em;margin-left:-8em;}.yui-skin-sam .yui-calcontainer .yui-cal-nav-y,.yui-skin-sam .yui-calcontainer .yui-cal-nav-m,.yui-skin-sam .yui-calcontainer .yui-cal-nav-b{padding:5px 10px 5px 10px;}.yui-skin-sam .yui-calcontainer .yui-cal-nav-b{text-align:center;}.yui-skin-sam .yui-calcontainer .yui-cal-nav-e{margin-top:5px;padding:5px;background-color:#EDF5FF;border-top:1px solid black;display:none;}.yui-skin-sam .yui-calcontainer .yui-cal-nav label{display:block;font-weight:bold;}
-.yui-skin-sam .yui-calcontainer .yui-cal-nav-mc{width:100%;_width:auto;}.yui-skin-sam .yui-calcontainer .yui-cal-nav-y input.yui-invalid{background-color:#FFEE69;border:1px solid #000;}.yui-skin-sam .yui-calcontainer .yui-cal-nav-yc{width:4em;}.yui-skin-sam .yui-calcontainer .yui-cal-nav .yui-cal-nav-btn{border:1px solid #808080;background:url(sprite.png) repeat-x 0 0;background-color:#ccc;margin:auto .15em;}.yui-skin-sam .yui-calcontainer .yui-cal-nav .yui-cal-nav-btn button{padding:0 8px;font-size:93%;line-height:2;*line-height:1.7;min-height:2em;*min-height:auto;color:#000;}.yui-skin-sam .yui-calcontainer .yui-cal-nav .yui-cal-nav-btn.yui-default{border:1px solid #304369;background-color:#426fd9;background:url(sprite.png) repeat-x 0 -1400px;}.yui-skin-sam .yui-calcontainer .yui-cal-nav .yui-cal-nav-btn.yui-default button{color:#fff;}
diff --git a/koha-tmpl/intranet-tmpl/prog/en/lib/yui/assets/skins/sam/carousel.css b/koha-tmpl/intranet-tmpl/prog/en/lib/yui/assets/skins/sam/carousel.css
deleted file mode 100644 (file)
index dc1f978..0000000
+++ /dev/null
@@ -1,7 +0,0 @@
-/*
-Copyright (c) 2009, Yahoo! Inc. All rights reserved.
-Code licensed under the BSD License:
-http://developer.yahoo.net/yui/license.txt
-version: 2.8.0r4
-*/
-.yui-carousel{visibility:hidden;overflow:hidden;position:relative;text-align:left;zoom:1;}.yui-carousel.yui-carousel-visible{visibility:visible;}.yui-carousel-content{overflow:hidden;position:relative;text-align:center;}.yui-carousel-element li{border:1px solid #ccc;list-style:none;margin:1px;overflow:hidden;padding:0;position:absolute;text-align:center;}.yui-carousel-vertical .yui-carousel-element li{display:block;float:none;}.yui-log .carousel{background:#f2e886;}.yui-carousel-nav{zoom:1;}.yui-carousel-nav:after{content:".";display:block;height:0;clear:both;visibility:hidden;}.yui-carousel-button-focus{outline:1px dotted #000;}.yui-carousel-min-width{min-width:115px;}.yui-carousel-element{overflow:hidden;position:relative;margin:0 auto;padding:0;text-align:left;*margin:0;}.yui-carousel-horizontal .yui-carousel-element{width:320000px;}.yui-carousel-vertical .yui-carousel-element{height:320000px;}.yui-skin-sam .yui-carousel-nav select{position:static;}.yui-carousel .yui-carousel-item-selected{border:1px dashed #000;margin:1px;}.yui-skin-sam .yui-carousel,.yui-skin-sam .yui-carousel-vertical{border:1px solid #808080;}.yui-skin-sam .yui-carousel-nav{background:url(sprite.png) repeat-x 0 0;padding:3px;text-align:right;}.yui-skin-sam .yui-carousel-button{background:url(sprite.png) no-repeat 0 -600px;float:right;height:19px;margin:5px;overflow:hidden;width:40px;}.yui-skin-sam .yui-carousel-vertical .yui-carousel-button{background-position:0 -800px;}.yui-skin-sam .yui-carousel-button-disabled{background-position:0 -2000px;}.yui-skin-sam .yui-carousel-vertical .yui-carousel-button-disabled{background-position:0 -2100px;}.yui-skin-sam .yui-carousel-button input,.yui-skin-sam .yui-carousel-button button{background-color:transparent;border:0;cursor:pointer;display:block;height:44px;margin:-2px 0 0 -2px;padding:0 0 0 50px;}.yui-skin-sam span.yui-carousel-first-button{background-position:0 -550px;margin-left:-100px;margin-right:50px;*margin:5px 5px 5px -90px;}.yui-skin-sam .yui-carousel-vertical span.yui-carousel-first-button{background-position:0 -750px;}.yui-skin-sam span.yui-carousel-first-button-disabled{background-position:0 -1950px;}.yui-skin-sam .yui-carousel-vertical span.yui-carousel-first-button-disabled{background-position:0 -2050px;}.yui-skin-sam .yui-carousel-nav ul{float:right;height:19px;margin:0;margin-left:-220px;margin-right:100px;*margin-left:-160px;*margin-right:0;padding:0;}.yui-skin-sam .yui-carousel-min-width .yui-carousel-nav ul{*margin-left:-170px;}.yui-skin-sam .yui-carousel-nav select{position:relative;*right:50px;top:4px;}.yui-skin-sam .yui-carousel-vertical .yui-carousel-nav select{position:static;}.yui-skin-sam .yui-carousel-vertical .yui-carousel-nav ul,.yui-skin-sam .yui-carousel-vertical .yui-carousel-nav select{float:none;margin:0;*zoom:1;}.yui-skin-sam .yui-carousel-nav ul li{background:url(sprite.png) no-repeat 0 -650px;cursor:pointer;float:left;height:9px;list-style:none;margin:10px 0 0 5px;overflow:hidden;padding:0;width:9px;}.yui-skin-sam .yui-carousel-nav ul:after{content:".";display:block;height:0;clear:both;visibility:hidden;}.yui-skin-sam .yui-carousel-nav ul li a{display:block;width:100%;height:100%;text-indent:-10000px;text-align:left;overflow:hidden;}.yui-skin-sam .yui-carousel-nav ul li.yui-carousel-nav-page-focus{outline:1px dotted #000;}.yui-skin-sam .yui-carousel-nav ul li.yui-carousel-nav-page-selected{background-position:0 -700px;}.yui-skin-sam .yui-carousel-item-loading{background:url(ajax-loader.gif) no-repeat 50% 50%;position:absolute;text-indent:-150px;}
diff --git a/koha-tmpl/intranet-tmpl/prog/en/lib/yui/assets/skins/sam/check0.gif b/koha-tmpl/intranet-tmpl/prog/en/lib/yui/assets/skins/sam/check0.gif
deleted file mode 100644 (file)
index 193028b..0000000
Binary files a/koha-tmpl/intranet-tmpl/prog/en/lib/yui/assets/skins/sam/check0.gif and /dev/null differ
diff --git a/koha-tmpl/intranet-tmpl/prog/en/lib/yui/assets/skins/sam/check1.gif b/koha-tmpl/intranet-tmpl/prog/en/lib/yui/assets/skins/sam/check1.gif
deleted file mode 100644 (file)
index 7d9ceba..0000000
Binary files a/koha-tmpl/intranet-tmpl/prog/en/lib/yui/assets/skins/sam/check1.gif and /dev/null differ
diff --git a/koha-tmpl/intranet-tmpl/prog/en/lib/yui/assets/skins/sam/check2.gif b/koha-tmpl/intranet-tmpl/prog/en/lib/yui/assets/skins/sam/check2.gif
deleted file mode 100644 (file)
index 1813175..0000000
Binary files a/koha-tmpl/intranet-tmpl/prog/en/lib/yui/assets/skins/sam/check2.gif and /dev/null differ
diff --git a/koha-tmpl/intranet-tmpl/prog/en/lib/yui/assets/skins/sam/colorpicker.css b/koha-tmpl/intranet-tmpl/prog/en/lib/yui/assets/skins/sam/colorpicker.css
deleted file mode 100644 (file)
index aaec21a..0000000
+++ /dev/null
@@ -1,7 +0,0 @@
-/*
-Copyright (c) 2009, Yahoo! Inc. All rights reserved.
-Code licensed under the BSD License:
-http://developer.yahoo.net/yui/license.txt
-version: 2.8.0r4
-*/
-.yui-picker-panel{background:#e3e3e3;border-color:#888;}.yui-picker-panel .hd{background-color:#ccc;font-size:100%;line-height:100%;border:1px solid #e3e3e3;font-weight:bold;overflow:hidden;padding:6px;color:#000;}.yui-picker-panel .bd{background:#e8e8e8;margin:1px;height:200px;}.yui-picker-panel .ft{background:#e8e8e8;margin:1px;padding:1px;}.yui-picker{position:relative;}.yui-picker-hue-thumb{cursor:default;width:18px;height:18px;top:-8px;left:-2px;z-index:9;position:absolute;}.yui-picker-hue-bg{-moz-outline:none;outline:0 none;position:absolute;left:200px;height:183px;width:14px;background:url(hue_bg.png) no-repeat;top:4px;}.yui-picker-bg{-moz-outline:none;outline:0 none;position:absolute;top:4px;left:4px;height:182px;width:182px;background-color:#F00;background-image:url(picker_mask.png);}*html .yui-picker-bg{background-image:none;filter:progid:DXImageTransform.Microsoft.AlphaImageLoader(src='../../build/colorpicker/assets/picker_mask.png',sizingMethod='scale');}.yui-picker-mask{position:absolute;z-index:1;top:0;left:0;}.yui-picker-thumb{cursor:default;width:11px;height:11px;z-index:9;position:absolute;top:-4px;left:-4px;}.yui-picker-swatch{position:absolute;left:240px;top:4px;height:60px;width:55px;border:1px solid #888;}.yui-picker-websafe-swatch{position:absolute;left:304px;top:4px;height:24px;width:24px;border:1px solid #888;}.yui-picker-controls{position:absolute;top:72px;left:226px;font:1em monospace;}.yui-picker-controls .hd{background:transparent;border-width:0!important;}.yui-picker-controls .bd{height:100px;border-width:0!important;}.yui-picker-controls ul{float:left;padding:0 2px 0 0;margin:0;}.yui-picker-controls li{padding:2px;list-style:none;margin:0;}.yui-picker-controls input{font-size:.85em;width:2.4em;}.yui-picker-hex-controls{clear:both;padding:2px;}.yui-picker-hex-controls input{width:4.6em;}.yui-picker-controls a{font:1em arial,helvetica,clean,sans-serif;display:block;*display:inline-block;padding:0;color:#000;}
diff --git a/koha-tmpl/intranet-tmpl/prog/en/lib/yui/assets/skins/sam/container.css b/koha-tmpl/intranet-tmpl/prog/en/lib/yui/assets/skins/sam/container.css
deleted file mode 100644 (file)
index 89e708c..0000000
+++ /dev/null
@@ -1,7 +0,0 @@
-/*
-Copyright (c) 2009, Yahoo! Inc. All rights reserved.
-Code licensed under the BSD License:
-http://developer.yahoo.net/yui/license.txt
-version: 2.8.0r4
-*/
-.yui-overlay,.yui-panel-container{visibility:hidden;position:absolute;z-index:2;}.yui-panel{position:relative;}.yui-panel-container form{margin:0;}.mask{z-index:1;display:none;position:absolute;top:0;left:0;right:0;bottom:0;}.mask.block-scrollbars{overflow:auto;}.masked select,.drag select,.hide-select select{_visibility:hidden;}.yui-panel-container select{_visibility:inherit;}.hide-scrollbars,.hide-scrollbars *{overflow:hidden;}.hide-scrollbars select{display:none;}.show-scrollbars{overflow:auto;}.yui-panel-container.show-scrollbars,.yui-tt.show-scrollbars{overflow:visible;}.yui-panel-container.show-scrollbars .underlay,.yui-tt.show-scrollbars .yui-tt-shadow{overflow:auto;}.yui-panel-container.shadow .underlay.yui-force-redraw{padding-bottom:1px;}.yui-effect-fade .underlay,.yui-effect-fade .yui-tt-shadow{display:none;}.yui-tt-shadow{position:absolute;}.yui-override-padding{padding:0!important;}.yui-panel-container .container-close{overflow:hidden;text-indent:-10000em;text-decoration:none;}.yui-overlay.yui-force-redraw,.yui-panel-container.yui-force-redraw{margin-bottom:1px;}.yui-skin-sam .mask{background-color:#000;opacity:.25;filter:alpha(opacity=25);}.yui-skin-sam .yui-panel-container{padding:0 1px;*padding:2px;}.yui-skin-sam .yui-panel{position:relative;left:0;top:0;border-style:solid;border-width:1px 0;border-color:#808080;z-index:1;*border-width:1px;*zoom:1;_zoom:normal;}.yui-skin-sam .yui-panel .hd,.yui-skin-sam .yui-panel .bd,.yui-skin-sam .yui-panel .ft{border-style:solid;border-width:0 1px;border-color:#808080;margin:0 -1px;*margin:0;*border:0;}.yui-skin-sam .yui-panel .hd{border-bottom:solid 1px #ccc;}.yui-skin-sam .yui-panel .bd,.yui-skin-sam .yui-panel .ft{background-color:#F2F2F2;}.yui-skin-sam .yui-panel .hd{padding:0 10px;font-size:93%;line-height:2;*line-height:1.9;font-weight:bold;color:#000;background:url(sprite.png) repeat-x 0 -200px;}.yui-skin-sam .yui-panel .bd{padding:10px;}.yui-skin-sam .yui-panel .ft{border-top:solid 1px #808080;padding:5px 10px;font-size:77%;}.yui-skin-sam .container-close{position:absolute;top:5px;right:6px;width:25px;height:15px;background:url(sprite.png) no-repeat 0 -300px;cursor:pointer;}.yui-skin-sam .yui-panel-container .underlay{right:-1px;left:-1px;}.yui-skin-sam .yui-panel-container.matte{padding:9px 10px;background-color:#fff;}.yui-skin-sam .yui-panel-container.shadow{_padding:2px 4px 0 2px;}.yui-skin-sam .yui-panel-container.shadow .underlay{position:absolute;top:2px;left:-3px;right:-3px;bottom:-3px;*top:4px;*left:-1px;*right:-1px;*bottom:-1px;_top:0;_left:0;_right:0;_bottom:0;_margin-top:3px;_margin-left:-1px;background-color:#000;opacity:.12;filter:alpha(opacity=12);}.yui-skin-sam .yui-dialog .ft{border-top:none;padding:0 10px 10px 10px;font-size:100%;}.yui-skin-sam .yui-dialog .ft .button-group{display:block;text-align:right;}.yui-skin-sam .yui-dialog .ft button.default{font-weight:bold;}.yui-skin-sam .yui-dialog .ft span.default{border-color:#304369;background-position:0 -1400px;}.yui-skin-sam .yui-dialog .ft span.default .first-child{border-color:#304369;}.yui-skin-sam .yui-dialog .ft span.default button{color:#fff;}.yui-skin-sam .yui-dialog .ft span.yui-button-disabled{background-position:0 -1500px;border-color:#ccc;}.yui-skin-sam .yui-dialog .ft span.yui-button-disabled .first-child{border-color:#ccc;}.yui-skin-sam .yui-dialog .ft span.yui-button-disabled button{color:#a6a6a6;}.yui-skin-sam .yui-simple-dialog .bd .yui-icon{background:url(sprite.png) no-repeat 0 0;width:16px;height:16px;margin-right:10px;float:left;}.yui-skin-sam .yui-simple-dialog .bd span.blckicon{background-position:0 -1100px;}.yui-skin-sam .yui-simple-dialog .bd span.alrticon{background-position:0 -1050px;}.yui-skin-sam .yui-simple-dialog .bd span.hlpicon{background-position:0 -1150px;}.yui-skin-sam .yui-simple-dialog .bd span.infoicon{background-position:0 -1200px;}.yui-skin-sam .yui-simple-dialog .bd span.warnicon{background-position:0 -1900px;}.yui-skin-sam .yui-simple-dialog .bd span.tipicon{background-position:0 -1250px;}.yui-skin-sam .yui-tt .bd{position:relative;top:0;left:0;z-index:1;color:#000;padding:2px 5px;border-color:#D4C237 #A6982B #A6982B #A6982B;border-width:1px;border-style:solid;background-color:#FFEE69;}.yui-skin-sam .yui-tt.show-scrollbars .bd{overflow:auto;}.yui-skin-sam .yui-tt-shadow{top:2px;right:-3px;left:-3px;bottom:-3px;background-color:#000;}.yui-skin-sam .yui-tt-shadow-visible{opacity:.12;filter:alpha(opacity=12);}
diff --git a/koha-tmpl/intranet-tmpl/prog/en/lib/yui/assets/skins/sam/datatable.css b/koha-tmpl/intranet-tmpl/prog/en/lib/yui/assets/skins/sam/datatable.css
deleted file mode 100644 (file)
index eb5a314..0000000
+++ /dev/null
@@ -1,8 +0,0 @@
-/*
-Copyright (c) 2009, Yahoo! Inc. All rights reserved.
-Code licensed under the BSD License:
-http://developer.yahoo.net/yui/license.txt
-version: 2.8.0r4
-*/
-.yui-skin-sam .yui-dt-mask{position:absolute;z-index:9500;}.yui-dt-tmp{position:absolute;left:-9000px;}.yui-dt-scrollable .yui-dt-bd{overflow:auto;}.yui-dt-scrollable .yui-dt-hd{overflow:hidden;position:relative;}.yui-dt-scrollable .yui-dt-bd thead tr,.yui-dt-scrollable .yui-dt-bd thead th{position:absolute;left:-1500px;}.yui-dt-scrollable tbody{-moz-outline:none;}.yui-skin-sam thead .yui-dt-sortable{cursor:pointer;}.yui-skin-sam thead .yui-dt-draggable{cursor:move;}.yui-dt-coltarget{position:absolute;z-index:999;}.yui-dt-hd{zoom:1;}th.yui-dt-resizeable .yui-dt-resizerliner{position:relative;}.yui-dt-resizer{position:absolute;right:0;bottom:0;height:100%;cursor:e-resize;cursor:col-resize;background-color:#CCC;opacity:0;filter:alpha(opacity=0);}.yui-dt-resizerproxy{visibility:hidden;position:absolute;z-index:9000;background-color:#CCC;opacity:0;filter:alpha(opacity=0);}th.yui-dt-hidden .yui-dt-liner,td.yui-dt-hidden .yui-dt-liner,th.yui-dt-hidden .yui-dt-resizer{display:none;}.yui-dt-editor{position:absolute;z-index:9000;}.yui-skin-sam .yui-dt table{margin:0;padding:0;font-family:arial;font-size:inherit;border-collapse:separate;*border-collapse:collapse;border-spacing:0;border:1px solid #7F7F7F;}.yui-skin-sam .yui-dt thead{border-spacing:0;}.yui-skin-sam .yui-dt caption{color:#000;font-size:85%;font-weight:normal;font-style:italic;line-height:1;padding:1em 0;text-align:center;}.yui-skin-sam .yui-dt th{background:#D8D8DA url(sprite.png) repeat-x 0 0;}.yui-skin-sam .yui-dt th,.yui-skin-sam .yui-dt th a{font-weight:normal;text-decoration:none;color:#000;vertical-align:bottom;}.yui-skin-sam .yui-dt th{margin:0;padding:0;border:none;border-right:1px solid #CBCBCB;}.yui-skin-sam .yui-dt tr.yui-dt-first td{border-top:1px solid #7F7F7F;}.yui-skin-sam .yui-dt th .yui-dt-liner{white-space:nowrap;}.yui-skin-sam .yui-dt-liner{margin:0;padding:0;padding:4px 10px 4px 10px;}.yui-skin-sam .yui-dt-coltarget{width:5px;background-color:red;}.yui-skin-sam .yui-dt td{margin:0;padding:0;border:none;border-right:1px solid #CBCBCB;text-align:left;}.yui-skin-sam .yui-dt-list td{border-right:none;}.yui-skin-sam .yui-dt-resizer{width:6px;}.yui-skin-sam .yui-dt-mask{background-color:#000;opacity:.25;filter:alpha(opacity=25);}.yui-skin-sam .yui-dt-message{background-color:#FFF;}.yui-skin-sam .yui-dt-scrollable table{border:none;}.yui-skin-sam .yui-dt-scrollable .yui-dt-hd{border-left:1px solid #7F7F7F;border-top:1px solid #7F7F7F;border-right:1px solid #7F7F7F;}.yui-skin-sam .yui-dt-scrollable .yui-dt-bd{border-left:1px solid #7F7F7F;border-bottom:1px solid #7F7F7F;border-right:1px solid #7F7F7F;background-color:#FFF;}.yui-skin-sam .yui-dt-scrollable .yui-dt-data tr.yui-dt-last td{border-bottom:1px solid #7F7F7F;}.yui-skin-sam th.yui-dt-asc,.yui-skin-sam th.yui-dt-desc{background:url(sprite.png) repeat-x 0 -100px;}.yui-skin-sam th.yui-dt-sortable .yui-dt-label{margin-right:10px;}.yui-skin-sam th.yui-dt-asc .yui-dt-liner{background:url(dt-arrow-up.png) no-repeat right;}.yui-skin-sam th.yui-dt-desc .yui-dt-liner{background:url(dt-arrow-dn.png) no-repeat right;}tbody .yui-dt-editable{cursor:pointer;}.yui-dt-editor{text-align:left;background-color:#F2F2F2;border:1px solid #808080;padding:6px;}.yui-dt-editor label{padding-left:4px;padding-right:6px;}.yui-dt-editor .yui-dt-button{padding-top:6px;text-align:right;}.yui-dt-editor .yui-dt-button button{background:url(sprite.png) repeat-x 0 0;border:1px solid #999;width:4em;height:1.8em;margin-left:6px;}.yui-dt-editor .yui-dt-button button.yui-dt-default{background:url(sprite.png) repeat-x 0 -1400px;background-color:#5584E0;border:1px solid #304369;color:#FFF;}.yui-dt-editor .yui-dt-button button:hover{background:url(sprite.png) repeat-x 0 -1300px;color:#000;}.yui-dt-editor .yui-dt-button button:active{background:url(sprite.png) repeat-x 0 -1700px;color:#000;}.yui-skin-sam tr.yui-dt-even{background-color:#FFF;}.yui-skin-sam tr.yui-dt-odd{background-color:#EDF5FF;}.yui-skin-sam tr.yui-dt-even td.yui-dt-asc,.yui-skin-sam tr.yui-dt-even td.yui-dt-desc{background-color:#EDF5FF;}.yui-skin-sam tr.yui-dt-odd td.yui-dt-asc,.yui-skin-sam tr.yui-dt-odd td.yui-dt-desc{background-color:#DBEAFF;}.yui-skin-sam .yui-dt-list tr.yui-dt-even{background-color:#FFF;}.yui-skin-sam .yui-dt-list tr.yui-dt-odd{background-color:#FFF;}.yui-skin-sam .yui-dt-list tr.yui-dt-even td.yui-dt-asc,.yui-skin-sam .yui-dt-list tr.yui-dt-even td.yui-dt-desc{background-color:#EDF5FF;}.yui-skin-sam .yui-dt-list tr.yui-dt-odd td.yui-dt-asc,.yui-skin-sam .yui-dt-list tr.yui-dt-odd td.yui-dt-desc{background-color:#EDF5FF;}.yui-skin-sam th.yui-dt-highlighted,.yui-skin-sam th.yui-dt-highlighted a{background-color:#B2D2FF;}.yui-skin-sam tr.yui-dt-highlighted,.yui-skin-sam tr.yui-dt-highlighted td.yui-dt-asc,.yui-skin-sam tr.yui-dt-highlighted td.yui-dt-desc,.yui-skin-sam tr.yui-dt-even td.yui-dt-highlighted,.yui-skin-sam tr.yui-dt-odd td.yui-dt-highlighted{cursor:pointer;background-color:#B2D2FF;}.yui-skin-sam .yui-dt-list th.yui-dt-highlighted,.yui-skin-sam .yui-dt-list th.yui-dt-highlighted a{background-color:#B2D2FF;}.yui-skin-sam .yui-dt-list tr.yui-dt-highlighted,.yui-skin-sam .yui-dt-list tr.yui-dt-highlighted td.yui-dt-asc,.yui-skin-sam .yui-dt-list tr.yui-dt-highlighted td.yui-dt-desc,.yui-skin-sam .yui-dt-list tr.yui-dt-even td.yui-dt-highlighted,.yui-skin-sam .yui-dt-list tr.yui-dt-odd td.yui-dt-highlighted{cursor:pointer;background-color:#B2D2FF;}.yui-skin-sam th.yui-dt-selected,.yui-skin-sam th.yui-dt-selected a{background-color:#446CD7;}.yui-skin-sam tr.yui-dt-selected td,.yui-skin-sam tr.yui-dt-selected td.yui-dt-asc,.yui-skin-sam tr.yui-dt-selected td.yui-dt-desc{background-color:#426FD9;color:#FFF;}.yui-skin-sam tr.yui-dt-even td.yui-dt-selected,.yui-skin-sam tr.yui-dt-odd td.yui-dt-selected{background-color:#446CD7;color:#FFF;}.yui-skin-sam .yui-dt-list th.yui-dt-selected,.yui-skin-sam .yui-dt-list th.yui-dt-selected a{background-color:#446CD7;}
-.yui-skin-sam .yui-dt-list tr.yui-dt-selected td,.yui-skin-sam .yui-dt-list tr.yui-dt-selected td.yui-dt-asc,.yui-skin-sam .yui-dt-list tr.yui-dt-selected td.yui-dt-desc{background-color:#426FD9;color:#FFF;}.yui-skin-sam .yui-dt-list tr.yui-dt-even td.yui-dt-selected,.yui-skin-sam .yui-dt-list tr.yui-dt-odd td.yui-dt-selected{background-color:#446CD7;color:#FFF;}.yui-skin-sam .yui-dt-paginator{display:block;margin:6px 0;white-space:nowrap;}.yui-skin-sam .yui-dt-paginator .yui-dt-first,.yui-skin-sam .yui-dt-paginator .yui-dt-last,.yui-skin-sam .yui-dt-paginator .yui-dt-selected{padding:2px 6px;}.yui-skin-sam .yui-dt-paginator a.yui-dt-first,.yui-skin-sam .yui-dt-paginator a.yui-dt-last{text-decoration:none;}.yui-skin-sam .yui-dt-paginator .yui-dt-previous,.yui-skin-sam .yui-dt-paginator .yui-dt-next{display:none;}.yui-skin-sam a.yui-dt-page{border:1px solid #CBCBCB;padding:2px 6px;text-decoration:none;background-color:#fff;}.yui-skin-sam .yui-dt-selected{border:1px solid #fff;background-color:#fff;}
diff --git a/koha-tmpl/intranet-tmpl/prog/en/lib/yui/assets/skins/sam/desc.gif b/koha-tmpl/intranet-tmpl/prog/en/lib/yui/assets/skins/sam/desc.gif
deleted file mode 100644 (file)
index c114f29..0000000
Binary files a/koha-tmpl/intranet-tmpl/prog/en/lib/yui/assets/skins/sam/desc.gif and /dev/null differ
diff --git a/koha-tmpl/intranet-tmpl/prog/en/lib/yui/assets/skins/sam/dt-arrow-dn.png b/koha-tmpl/intranet-tmpl/prog/en/lib/yui/assets/skins/sam/dt-arrow-dn.png
deleted file mode 100644 (file)
index 85fda0b..0000000
Binary files a/koha-tmpl/intranet-tmpl/prog/en/lib/yui/assets/skins/sam/dt-arrow-dn.png and /dev/null differ
diff --git a/koha-tmpl/intranet-tmpl/prog/en/lib/yui/assets/skins/sam/dt-arrow-up.png b/koha-tmpl/intranet-tmpl/prog/en/lib/yui/assets/skins/sam/dt-arrow-up.png
deleted file mode 100644 (file)
index 1c67431..0000000
Binary files a/koha-tmpl/intranet-tmpl/prog/en/lib/yui/assets/skins/sam/dt-arrow-up.png and /dev/null differ
diff --git a/koha-tmpl/intranet-tmpl/prog/en/lib/yui/assets/skins/sam/editor-knob.gif b/koha-tmpl/intranet-tmpl/prog/en/lib/yui/assets/skins/sam/editor-knob.gif
deleted file mode 100644 (file)
index 03feab3..0000000
Binary files a/koha-tmpl/intranet-tmpl/prog/en/lib/yui/assets/skins/sam/editor-knob.gif and /dev/null differ
diff --git a/koha-tmpl/intranet-tmpl/prog/en/lib/yui/assets/skins/sam/editor-sprite-active.gif b/koha-tmpl/intranet-tmpl/prog/en/lib/yui/assets/skins/sam/editor-sprite-active.gif
deleted file mode 100644 (file)
index 3e9d420..0000000
Binary files a/koha-tmpl/intranet-tmpl/prog/en/lib/yui/assets/skins/sam/editor-sprite-active.gif and /dev/null differ
diff --git a/koha-tmpl/intranet-tmpl/prog/en/lib/yui/assets/skins/sam/editor-sprite.gif b/koha-tmpl/intranet-tmpl/prog/en/lib/yui/assets/skins/sam/editor-sprite.gif
deleted file mode 100644 (file)
index 02042fa..0000000
Binary files a/koha-tmpl/intranet-tmpl/prog/en/lib/yui/assets/skins/sam/editor-sprite.gif and /dev/null differ
diff --git a/koha-tmpl/intranet-tmpl/prog/en/lib/yui/assets/skins/sam/editor.css b/koha-tmpl/intranet-tmpl/prog/en/lib/yui/assets/skins/sam/editor.css
deleted file mode 100644 (file)
index 00451d8..0000000
+++ /dev/null
@@ -1,10 +0,0 @@
-/*
-Copyright (c) 2009, Yahoo! Inc. All rights reserved.
-Code licensed under the BSD License:
-http://developer.yahoo.net/yui/license.txt
-version: 2.8.0r4
-*/
-.yui-busy{cursor:wait!important;}.yui-toolbar-container fieldset,.yui-editor-container fieldset{padding:0;margin:0;border:0;}.yui-toolbar-container legend{display:none;}.yui-skin-sam .yui-toolbar-container .yui-button button,.yui-skin-sam .yui-toolbar-container .yui-button a,.yui-skin-sam .yui-toolbar-container .yui-button a:visited{font-size:0;}.yui-skin-sam .yui-toolbar-container .yui-toolbar-select button,.yui-skin-sam .yui-toolbar-container .yui-toolbar-select a,.yui-skin-sam .yui-toolbar-container .yui-toolbar-select a:visited,.yui-skin-sam .yui-toolbar-container .yui-toolbar-spinbutton button,.yui-skin-sam .yui-toolbar-container .yui-toolbar-spinbutton a,.yui-skin-sam .yui-toolbar-container .yui-toolbar-spinbutton a:visited{font-size:12px;}.yui-skin-sam .yui-toolbar-container .yui-toolbar-spinbutton a.up,.yui-skin-sam .yui-toolbar-container .yui-toolbar-spinbutton a.down{font-size:0;line-height:0;padding:0;}.yui-toolbar-container .yui-toolbar-subcont{padding:.25em 0;zoom:1;}.yui-toolbar-container-collapsed .yui-toolbar-subcont{display:none;}.yui-toolbar-container .yui-toolbar-subcont:after{display:block;clear:both;visibility:hidden;content:'.';height:0;}.yui-toolbar-container span.yui-toolbar-draghandle{cursor:move;border-left:1px solid #999;border-right:1px solid #999;overflow:hidden;text-indent:77777px;width:2px;height:20px;display:block;clear:none;float:left;margin:0 0 0 .2em;}.yui-toolbar-container .yui-toolbar-titlebar.draggable{cursor:move;}.yui-toolbar-container .yui-toolbar-titlebar{position:relative;}.yui-toolbar-container .yui-toolbar-titlebar h2{font-weight:bold;letter-spacing:0;border:none;color:#000;margin:0;padding:.2em;}.yui-toolbar-container .yui-toolbar-titlebar h2 a{text-decoration:none;color:#000;cursor:default;}.yui-toolbar-container.yui-toolbar-grouped span.yui-toolbar-draghandle{height:40px;}.yui-toolbar-container .yui-toolbar-group{float:left;margin-right:.5em;zoom:1;}.yui-toolbar-container .yui-toolbar-group:after{display:block;clear:both;visibility:hidden;content:'.';height:0;}.yui-toolbar-container .yui-toolbar-group h3{font-size:75%;padding:0 0 0 .25em;margin:0;}.yui-toolbar-container span.yui-toolbar-separator{width:2px;padding:0;height:18px;margin:.2em 0 .2em .1em;display:none;float:left;}.yui-toolbar-container.yui-toolbar-grouped span.yui-toolbar-separator{height:45px;*height:50px;}.yui-toolbar-container.yui-toolbar-grouped .yui-toolbar-group span.yui-toolbar-separator{height:18px;display:block;}.yui-toolbar-container ul li{margin:0;padding:0;list-style-type:none;}.yui-toolbar-container .yui-toolbar-nogrouplabels h3{display:none;}.yui-toolbar-container .yui-push-button,.yui-toolbar-container .yui-color-button,.yui-toolbar-container .yui-menu-button{position:relative;cursor:pointer;}.yui-toolbar-container .yui-button .first-child,.yui-toolbar-container .yui-button .first-child a{height:100%;width:100%;overflow:hidden;font-size:0;}.yui-toolbar-container .yui-button-disabled{cursor:default;}.yui-toolbar-container .yui-button-disabled .yui-toolbar-icon{opacity:.5;filter:alpha(opacity=50);}.yui-toolbar-container .yui-button-disabled .up,.yui-toolbar-container .yui-button-disabled .down{opacity:.5;filter:alpha(opacity=50);}.yui-toolbar-container .yui-button a{overflow:hidden;}.yui-toolbar-container .yui-toolbar-select .first-child a{cursor:pointer;}.yui-toolbar-fontname-arial{font-family:Arial;}.yui-toolbar-fontname-arial-black{font-family:Arial Black;}.yui-toolbar-fontname-comic-sans-ms{font-family:Comic Sans MS;}.yui-toolbar-fontname-courier-new{font-family:Courier New;}.yui-toolbar-fontname-times-new-roman{font-family:Times New Roman;}.yui-toolbar-fontname-verdana{font-family:Verdana;}.yui-toolbar-fontname-impact{font-family:Impact;}.yui-toolbar-fontname-lucida-console{font-family:Lucida Console;}.yui-toolbar-fontname-tahoma{font-family:Tahoma;}.yui-toolbar-fontname-trebuchet-ms{font-family:Trebuchet MS;}.yui-toolbar-container .yui-toolbar-spinbutton{position:relative;}.yui-toolbar-container .yui-toolbar-spinbutton .first-child a{z-index:0;opacity:1;}.yui-toolbar-container .yui-toolbar-spinbutton a.up,.yui-toolbar-container .yui-toolbar-spinbutton a.down{position:absolute;display:block;right:0;cursor:pointer;z-index:1;padding:0;margin:0;}.yui-toolbar-container .yui-overlay{position:absolute;}.yui-toolbar-container .yui-overlay ul li{margin:0;list-style-type:none;}.yui-toolbar-container{z-index:1;}.yui-editor-container .yui-editor-editable-container{position:relative;z-index:0;width:100%;}.yui-editor-container .yui-editor-masked{background-color:#CCC;height:100%;width:100%;position:absolute;top:0;left:0;opacity:.5;filter:alpha(opacity=50);}.yui-editor-container iframe{border:0;padding:0;margin:0;zoom:1;display:block;}.yui-editor-container .yui-editor-editable{padding:0;margin:0;}.yui-editor-container .dompath{font-size:85%;}.yui-editor-panel .hd{text-align:left;position:relative;}.yui-editor-panel .hd h3{font-weight:bold;padding:.25em 0 .25em .25em;margin:0;}.yui-editor-panel .bd{width:100%;zoom:1;position:relative;}.yui-editor-panel .bd div.yui-editor-body-cont{padding:.25em .1em;zoom:1;}.yui-editor-panel .bd .gecko form{overflow:auto;}.yui-editor-panel .bd div.yui-editor-body-cont:after{display:block;clear:both;visibility:hidden;content:'.';height:0;}.yui-editor-panel .ft{text-align:right;width:99%;float:left;clear:both;}.yui-editor-panel .ft span.tip{display:block;position:relative;padding:.5em .5em .5em 23px;text-align:left;zoom:1;}.yui-editor-panel label{clear:both;float:left;padding:0;width:100%;text-align:left;zoom:1;}.yui-editor-panel .gecko label{overflow:auto;}.yui-editor-panel label strong{float:left;width:6em;}.yui-editor-panel .removeLink{width:80%;text-align:right;}.yui-editor-panel label input{margin-left:.25em;float:left;}.yui-editor-panel .yui-toolbar-group{margin-bottom:.75em;}.yui-editor-panel .height-width{float:left;}.yui-editor-panel .height-width span{font-style:italic;display:block;float:left;overflow:visible;}.yui-editor-panel .height-width span.info{font-size:70%;margin-top:3px;float:none;}
-.yui-editor-panel .yui-toolbar-bordersize,.yui-editor-panel .yui-toolbar-bordertype{font-size:75%;}.yui-editor-panel .yui-toolbar-container span.yui-toolbar-separator{border:none;}.yui-editor-panel .yui-toolbar-bordersize span a span,.yui-editor-panel .yui-toolbar-bordertype span a span{display:block;height:8px;left:4px;position:absolute;top:3px;_top:-5px;width:24px;text-indent:52px;font-size:0;}.yui-editor-panel .yui-toolbar-bordertype span a span.yui-toolbar-bordertype-solid{border-bottom:1px solid black;}.yui-editor-panel .yui-toolbar-bordertype span a span.yui-toolbar-bordertype-dotted{border-bottom:1px dotted black;}.yui-editor-panel .yui-toolbar-bordertype span a span.yui-toolbar-bordertype-dashed{border-bottom:1px dashed black;}.yui-editor-panel .yui-toolbar-bordersize span a span.yui-toolbar-bordersize-0{*top:0;text-indent:0;font-size:75%;}.yui-editor-panel .yui-toolbar-bordersize span a span.yui-toolbar-bordersize-1{border-bottom:1px solid black;}.yui-editor-panel .yui-toolbar-bordersize span a span.yui-toolbar-bordersize-2{border-bottom:2px solid black;}.yui-editor-panel .yui-toolbar-bordersize span a span.yui-toolbar-bordersize-3{top:2px;*top:-5px;border-bottom:3px solid black;}.yui-editor-panel .yui-toolbar-bordersize span a span.yui-toolbar-bordersize-4{top:1px;*top:-5px;border-bottom:4px solid black;}.yui-editor-panel .yui-toolbar-bordersize span a span.yui-toolbar-bordersize-5{top:1px;*top:-5px;border-bottom:5px solid black;}.yui-toolbar-container .yui-toolbar-bordersize-menu,.yui-toolbar-container .yui-toolbar-bordertype-menu{width:95px!important;}.yui-toolbar-bordersize-menu .yuimenuitemlabel,.yui-toolbar-bordertype-menu .yuimenuitemlabel,.yui-toolbar-bordersize-menu .yuimenuitemlabel,.yui-toolbar-bordertype-menu .yuimenuitemlabel:hover{margin:0 3px 7px 17px;}.yui-toolbar-bordersize-menu .yuimenuitemlabel .checkedindicator,.yui-toolbar-bordertype-menu .yuimenuitemlabel .checkedindicator{position:absolute;left:-12px;*top:14px;*left:0;}.yui-toolbar-bordersize-menu li.yui-toolbar-bordersize-1 a{border-bottom:1px solid black;height:14px;}.yui-toolbar-bordersize-menu li.yui-toolbar-bordersize-2 a{border-bottom:2px solid black;height:14px;}.yui-toolbar-bordersize-menu li.yui-toolbar-bordersize-3 a{border-bottom:3px solid black;height:14px;}.yui-toolbar-bordersize-menu li.yui-toolbar-bordersize-4 a{border-bottom:4px solid black;height:14px;}.yui-toolbar-bordersize-menu li.yui-toolbar-bordersize-5 a{border-bottom:5px solid black;height:14px;}.yui-toolbar-bordertype-menu li.yui-toolbar-bordertype-solid a{border-bottom:1px solid black;height:14px;}.yui-toolbar-bordertype-menu li.yui-toolbar-bordertype-dashed a{border-bottom:1px dashed black;height:14px;}.yui-toolbar-bordertype-menu li.yui-toolbar-bordertype-dotted a{border-bottom:1px dotted black;height:14px;}h2.yui-editor-skipheader,h3.yui-editor-skipheader{height:0;margin:0;padding:0;border:none;width:0;overflow:hidden;position:absolute;}.yui-toolbar-colors{width:133px;zoom:1;display:none;z-index:100;overflow:hidden;}.yui-toolbar-colors:after{display:block;clear:both;visibility:hidden;content:'.';height:0;}.yui-toolbar-colors a{height:9px;width:9px;float:left;display:block;overflow:hidden;text-indent:999px;margin:0;cursor:pointer;border:1px solid #F6F7EE;}.yui-toolbar-colors a:hover{border:1px solid black;}.yui-color-button-menu{overflow:visible;background-color:transparent;}.yui-toolbar-colors span{position:relative;display:block;padding:3px;overflow:hidden;float:left;width:100%;zoom:1;}.yui-toolbar-colors span:after{display:block;clear:both;visibility:hidden;content:'.';height:0;}.yui-toolbar-colors span em{height:35px;width:30px;float:left;display:block;overflow:hidden;text-indent:999px;margin:.75px;border:1px solid black;}.yui-toolbar-colors span strong{font-weight:normal;padding-left:3px;display:block;font-size:85%;float:left;width:65%;}.yui-toolbar-group-undoredo h3,.yui-toolbar-group-insertitem h3,.yui-toolbar-group-indentlist h3{width:68px;}.yui-toolbar-group-indentlist2 h3{width:122px;}.yui-toolbar-group-alignment h3{width:130px;}.yui-skin-sam .yui-editor-container{border:1px solid #808080;}.yui-skin-sam .yui-toolbar-container{zoom:1;}.yui-skin-sam .yui-toolbar-container .yui-toolbar-titlebar{background:url(sprite.png) repeat-x 0 -200px;position:relative;}.yui-skin-sam .yui-editor-container .draggable .yui-toolbar-titlebar{cursor:move;}.yui-skin-sam .yui-toolbar-container .yui-toolbar-titlebar h2{color:#000;font-weight:bold;margin:0;padding:.3em 1em;font-size:100%;text-align:left;}.yui-skin-sam .yui-toolbar-container .yui-toolbar-group h3{color:#808080;font-size:75%;margin:1em 0 0;padding-bottom:0;padding-left:.25em;text-align:left;}.yui-toolbar-container span.yui-toolbar-separator{border:none;text-indent:33px;overflow:hidden;margin:0 .25em;}.yui-skin-sam .yui-toolbar-container{background-color:#F2F2F2;}.yui-skin-sam .yui-toolbar-container .yui-toolbar-subcont{padding:0 1em .35em;border-bottom:1px solid #808080;}.yui-skin-sam .yui-toolbar-container-collapsed .yui-toolbar-titlebar{border-bottom:1px solid #808080;}.yui-skin-sam .yui-editor-container .visible .yui-menu-shadow,.yui-skin-sam .yui-editor-panel .visible .yui-menu-shadow{display:none;}.yui-skin-sam .yui-editor-container ul{list-style-type:none;margin:0;padding:0;}.yui-skin-sam .yui-editor-container ul li{list-style-type:none;margin:0;padding:0;}.yui-skin-sam .yui-toolbar-group ul li.yui-toolbar-groupitem{float:left;}.yui-skin-sam .yui-editor-container .dompath{background-color:#F2F2F2;border-top:1px solid #808080;color:#999;text-align:left;padding:.25em;}.yui-skin-sam .yui-toolbar-container .collapse{background:url(sprite.png) no-repeat 0 -400px;}.yui-skin-sam .yui-toolbar-container .collapsed{background:url(sprite.png) no-repeat 0 -350px;}.yui-skin-sam .yui-toolbar-container .yui-toolbar-titlebar span.collapse{cursor:pointer;position:absolute;top:4px;right:2px;display:block;overflow:hidden;height:15px;width:15px;text-indent:9999px;}
-.yui-skin-sam .yui-toolbar-container .yui-push-button,.yui-skin-sam .yui-toolbar-container .yui-color-button,.yui-skin-sam .yui-toolbar-container .yui-menu-button{background:url(sprite.png) repeat-x 0 0;position:relative;display:block;height:22px;width:30px;_font-size:0;margin:0;border-color:#808080;color:#f2f2f2;border-style:solid;border-width:1px 0;zoom:1;}.yui-skin-sam .yui-toolbar-container .yui-push-button a,.yui-skin-sam .yui-toolbar-container .yui-color-button a,.yui-skin-sam .yui-toolbar-container .yui-menu-button a{padding-left:35px;height:20px;text-decoration:none;font-size:0;line-height:2;display:block;color:#000;overflow:hidden;white-space:nowrap;}.yui-skin-sam .yui-toolbar-container .yui-toolbar-spinbutton a,.yui-skin-sam .yui-toolbar-container .yui-toolbar-select a{font-size:12px;}.yui-skin-sam .yui-toolbar-container .yui-push-button .first-child,.yui-skin-sam .yui-toolbar-container .yui-color-button .first-child,.yui-skin-sam .yui-toolbar-container .yui-menu-button .first-child{border-color:#808080;border-style:solid;border-width:0 1px;margin:0 -1px;display:block;position:relative;}.yui-skin-sam .yui-toolbar-container .yui-push-button-disabled .first-child,.yui-skin-sam .yui-toolbar-container .yui-color-button-disabled .first-child,.yui-skin-sam .yui-toolbar-container .yui-menu-button-disabled .first-child{border-color:#ccc;}.yui-skin-sam .yui-toolbar-container .yui-push-button-disabled a,.yui-skin-sam .yui-toolbar-container .yui-color-button-disabled a,.yui-skin-sam .yui-toolbar-container .yui-menu-button-disabled a{color:#A6A6A6;cursor:default;}.yui-skin-sam .yui-toolbar-container .yui-push-button-disabled,.yui-skin-sam .yui-toolbar-container .yui-color-button-disabled,.yui-skin-sam .yui-toolbar-container .yui-menu-button-disabled{border-color:#ccc;}.yui-skin-sam .yui-toolbar-container .yui-button .first-child{*left:0;}.yui-skin-sam .yui-toolbar-container .yui-toolbar-fontname{width:135px;}.yui-skin-sam .yui-toolbar-container .yui-toolbar-heading{width:92px;}.yui-skin-sam .yui-toolbar-container .yui-button-hover{background:url(sprite.png) repeat-x 0 -1300px;border-color:#808080;}.yui-skin-sam .yui-toolbar-container .yui-button-selected{background:url(sprite.png) repeat-x 0 -1700px;border-color:#808080;}.yui-skin-sam .yui-toolbar-container .yui-toolbar-nogrouplabels h3{display:none;}.yui-skin-sam .yui-toolbar-container .yui-toolbar-nogrouplabels .yui-toolbar-group{margin-top:.75em;}.yui-skin-sam .yui-toolbar-container .yui-push-button span.yui-toolbar-icon,.yui-skin-sam .yui-toolbar-container .yui-color-button span.yui-toolbar-icon,.yui-skin-sam .yui-toolbar-container .yui-menu-button span.yui-toolbar-icon{display:block;position:absolute;top:2px;height:18px;width:18px;overflow:hidden;background:url(editor-sprite.gif) no-repeat 30px 30px;}.yui-skin-sam .yui-toolbar-container .yui-button-selected span.yui-toolbar-icon,.yui-skin-sam .yui-toolbar-container .yui-button-hover span.yui-toolbar-icon{background-image:url(editor-sprite-active.gif);}.yui-skin-sam .yui-toolbar-container .visible .yuimenuitemlabel{cursor:pointer;color:#000;*position:relative;}.yui-skin-sam .yui-toolbar-container .yui-button-menu{background-color:#fff;}.yui-skin-sam .yui-toolbar-container .yui-button-menu .yui-menu-body-scrolled{position:relative;}.yui-skin-sam div.yuimenu li.selected{background-color:#B3D4FF;}.yui-skin-sam div.yuimenu li.selected a.selected{color:#000;}.yui-skin-sam .yui-toolbar-container .yui-toolbar-bold span.yui-toolbar-icon{background-position:0 0;left:5px;}.yui-skin-sam .yui-toolbar-container .yui-toolbar-strikethrough span.yui-toolbar-icon{background-position:0 -108px;left:5px;}.yui-skin-sam .yui-toolbar-container .yui-toolbar-italic span.yui-toolbar-icon{background-position:0 -36px;left:5px;}.yui-skin-sam .yui-toolbar-container .yui-toolbar-undo span.yui-toolbar-icon{background-position:0 -1326px;left:5px;}.yui-skin-sam .yui-toolbar-container .yui-toolbar-redo span.yui-toolbar-icon{background-position:0 -1355px;left:5px;}.yui-skin-sam .yui-toolbar-container .yui-toolbar-underline span.yui-toolbar-icon{background-position:0 -72px;left:5px;}.yui-skin-sam .yui-toolbar-container .yui-toolbar-subscript span.yui-toolbar-icon{background-position:0 -180px;left:5px;}.yui-skin-sam .yui-toolbar-container .yui-toolbar-superscript span.yui-toolbar-icon{background-position:0 -144px;left:5px;}.yui-skin-sam .yui-toolbar-container .yui-toolbar-forecolor span.yui-toolbar-icon{background-position:0 -216px;left:5px;}.yui-skin-sam .yui-toolbar-container .yui-toolbar-backcolor span.yui-toolbar-icon{background-position:0 -288px;left:5px;}.yui-skin-sam .yui-toolbar-container .yui-toolbar-justifyleft span.yui-toolbar-icon{background-position:0 -324px;left:5px;}.yui-skin-sam .yui-toolbar-container .yui-toolbar-justifycenter span.yui-toolbar-icon{background-position:0 -360px;left:5px;}.yui-skin-sam .yui-toolbar-container .yui-toolbar-justifyright span.yui-toolbar-icon{background-position:0 -396px;left:5px;}.yui-skin-sam .yui-toolbar-container .yui-toolbar-justifyfull span.yui-toolbar-icon{background-position:0 -432px;left:5px;}.yui-skin-sam .yui-toolbar-container .yui-toolbar-indent span.yui-toolbar-icon{background-position:0 -720px;left:5px;}.yui-skin-sam .yui-toolbar-container .yui-toolbar-outdent span.yui-toolbar-icon{background-position:0 -684px;left:5px;}.yui-skin-sam .yui-toolbar-container .yui-toolbar-createlink span.yui-toolbar-icon{background-position:0 -792px;left:5px;}.yui-skin-sam .yui-toolbar-container .yui-toolbar-insertimage span.yui-toolbar-icon{background-position:1px -756px;left:5px;}.yui-skin-sam .yui-toolbar-container .yui-toolbar-left span.yui-toolbar-icon{background-position:0 -972px;left:5px;}.yui-skin-sam .yui-toolbar-container .yui-toolbar-right span.yui-toolbar-icon{background-position:0 -936px;left:5px;}.yui-skin-sam .yui-toolbar-container .yui-toolbar-inline span.yui-toolbar-icon{background-position:0 -900px;left:5px;}
-.yui-skin-sam .yui-toolbar-container .yui-toolbar-block span.yui-toolbar-icon{background-position:0 -864px;left:5px;}.yui-skin-sam .yui-toolbar-container .yui-toolbar-bordercolor span.yui-toolbar-icon{background-position:0 -252px;left:5px;}.yui-skin-sam .yui-toolbar-container .yui-toolbar-removeformat span.yui-toolbar-icon{background-position:0 -1080px;left:5px;}.yui-skin-sam .yui-toolbar-container .yui-toolbar-hiddenelements span.yui-toolbar-icon{background-position:0 -1044px;left:5px;}.yui-skin-sam .yui-toolbar-container .yui-toolbar-insertunorderedlist span.yui-toolbar-icon{background-position:0 -468px;left:5px;}.yui-skin-sam .yui-toolbar-container .yui-toolbar-insertorderedlist span.yui-toolbar-icon{background-position:0 -504px;left:5px;}.yui-skin-sam .yui-toolbar-container .yui-toolbar-spinbutton,.yui-skin-sam .yui-toolbar-container .yui-toolbar-spinbutton .first-child{width:35px;}.yui-skin-sam .yui-toolbar-container .yui-toolbar-spinbutton .first-child a{padding-left:2px;text-align:left;}.yui-skin-sam .yui-toolbar-container .yui-toolbar-spinbutton span.yui-toolbar-icon{display:none;}.yui-skin-sam .yui-toolbar-container .yui-toolbar-spinbutton a.up,.yui-skin-sam .yui-toolbar-container .yui-toolbar-spinbutton a.down{right:2px;background:url(editor-sprite.gif) no-repeat 0 -1222px;overflow:hidden;height:6px;width:7px;min-height:0;padding:0;}.yui-skin-sam .yui-toolbar-container .yui-toolbar-spinbutton a.up{top:2px;background-position:0 -1222px;}.yui-skin-sam .yui-toolbar-container .yui-toolbar-spinbutton a.down{bottom:2px;background-position:0 -1187px;}.yui-skin-sam .yui-toolbar-container select{height:22px;border:1px solid #808080;}.yui-skin-sam .yui-toolbar-container .yui-toolbar-select .first-child a{padding-left:5px;text-align:left;}.yui-skin-sam .yui-toolbar-container .yui-toolbar-select span.yui-toolbar-icon{background:url(editor-sprite.gif) no-repeat 0 -1144px;overflow:hidden;right:-2px;top:0;height:20px;}.yui-skin-sam .yui-editor-panel .yui-color-button-menu .bd{background-color:transparent;border:none;width:135px;}.yui-skin-sam .yui-color-button-menu .yui-toolbar-colors{border:1px solid #808080;}.yui-skin-sam .yui-editor-panel{padding:0;margin:0;border:none;background-color:transparent;overflow:visible;position:absolute;}.yui-skin-sam .yui-editor-panel .hd{margin:10px 0 0;padding:0;border:none;}.yui-skin-sam .yui-editor-panel .hd h3{color:#000;border:1px solid #808080;background:url(sprite.png) repeat-x 0 -200px;width:99%;position:relative;margin:0;padding:3px 0 0 0;font-size:93%;text-indent:5px;height:20px;}.yui-skin-sam .yui-editor-panel .bd{background-color:#F2F2F2;border-left:1px solid #808080;border-right:1px solid #808080;width:99%;margin:0;padding:0;overflow:visible;}.yui-skin-sam .yui-editor-panel ul{list-style-type:none;margin:0;padding:0;}.yui-skin-sam .yui-editor-panel ul li{margin:0;padding:0;}.yui-skin-sam .yui-editor-panel .yui-toolbar-container .yui-toolbar-subcont{padding:0;border:none;margin-top:.35em;}.yui-skin-sam .yui-editor-panel .yui-toolbar-bordersize,.yui-skin-sam .yui-editor-panel .yui-toolbar-bordertype{width:50px;}.yui-skin-sam .yui-editor-panel label{display:block;float:none;padding:4px 0;margin-bottom:7px;}.yui-skin-sam .yui-editor-panel label strong{font-weight:normal;font-size:93%;text-align:right;padding-top:2px;}.yui-skin-sam .yui-editor-panel label input{width:75%;}.yui-skin-sam .yui-editor-panel .createlink_target,.yui-skin-sam .yui-editor-panel .insertimage_target{width:auto;margin-right:5px;}.yui-skin-sam .yui-editor-panel .removeLink{width:98%;}.yui-skin-sam .yui-editor-panel label input.warning{background-color:#FFEE69;}.yui-skin-sam .yui-editor-panel .yui-toolbar-group h3{color:#000;float:left;font-weight:normal;font-size:93%;margin:5px 0 0 0;padding:0 3px 0 0;text-align:right;}.yui-skin-sam .yui-editor-panel .height-width h3{margin:3px 0 0 10px;}.yui-skin-sam .yui-editor-panel .height-width{margin:3px 0 0 35px;*margin-left:14px;width:42%;*width:44%;}.yui-skin-sam .yui-editor-panel .yui-toolbar-group-border{width:190px;}.yui-skin-sam .yui-editor-panel .no-button .yui-toolbar-group-border{width:210px;}.yui-skin-sam .yui-editor-panel .yui-toolbar-group-padding{width:203px;_width:198px;}.yui-skin-sam .yui-editor-panel .no-button .yui-toolbar-group-padding{width:172px;}.yui-skin-sam .yui-editor-panel .yui-toolbar-group-padding h3{margin-left:25px;*margin-left:12px;}.yui-skin-sam .yui-editor-panel .yui-toolbar-group-textflow{width:182px;}.yui-skin-sam .yui-editor-panel .hd{background:none;}.yui-skin-sam .yui-editor-panel .ft{background-color:#F2F2F2;border:1px solid #808080;border-top:none;padding:0;margin:0 0 2px 0;}.yui-skin-sam .yui-editor-panel .hd span.close{background:url(sprite.png) no-repeat 0 -300px;cursor:pointer;display:block;height:16px;overflow:hidden;position:absolute;right:5px;text-indent:500px;top:2px;width:26px;}.yui-skin-sam .yui-editor-panel .ft span.tip{background-color:#EDF5FF;border-top:1px solid #808080;font-size:85%;}.yui-skin-sam .yui-editor-panel .ft span.tip strong{display:block;float:left;margin:0 2px 8px 0;}.yui-skin-sam .yui-editor-panel .ft span.tip span.icon{background:url(editor-sprite.gif) no-repeat 0 -1260px;display:block;height:20px;left:2px;position:absolute;top:8px;width:20px;}.yui-skin-sam .yui-editor-panel .ft span.tip span.icon-info{background-position:2px -1260px;}.yui-skin-sam .yui-editor-panel .ft span.tip span.icon-warn{background-position:2px -1296px;}.yui-skin-sam .yui-editor-panel .hd span.knob{position:absolute;height:10px;width:28px;top:-10px;left:25px;text-indent:9999px;overflow:hidden;background:url(editor-knob.gif) no-repeat 0 0;}.yui-skin-sam .yui-editor-panel .yui-toolbar-container{float:left;width:100%;background-image:none;border:none;}.yui-skin-sam .yui-editor-panel .yui-toolbar-container .bd{background-color:#fff;}.yui-editor-blankimage{background-image:url(blankimage.png);}.yui-skin-sam .yui-editor-container .yui-resize-handle-br{height:11px;width:11px;background-position:-20px -60px;background-color:transparent;}
diff --git a/koha-tmpl/intranet-tmpl/prog/en/lib/yui/assets/skins/sam/header_background.png b/koha-tmpl/intranet-tmpl/prog/en/lib/yui/assets/skins/sam/header_background.png
deleted file mode 100644 (file)
index 3ef7909..0000000
Binary files a/koha-tmpl/intranet-tmpl/prog/en/lib/yui/assets/skins/sam/header_background.png and /dev/null differ
diff --git a/koha-tmpl/intranet-tmpl/prog/en/lib/yui/assets/skins/sam/hue_bg.png b/koha-tmpl/intranet-tmpl/prog/en/lib/yui/assets/skins/sam/hue_bg.png
deleted file mode 100644 (file)
index d9bcdeb..0000000
Binary files a/koha-tmpl/intranet-tmpl/prog/en/lib/yui/assets/skins/sam/hue_bg.png and /dev/null differ
diff --git a/koha-tmpl/intranet-tmpl/prog/en/lib/yui/assets/skins/sam/imagecropper.css b/koha-tmpl/intranet-tmpl/prog/en/lib/yui/assets/skins/sam/imagecropper.css
deleted file mode 100644 (file)
index 0e8d36f..0000000
+++ /dev/null
@@ -1,7 +0,0 @@
-/*
-Copyright (c) 2009, Yahoo! Inc. All rights reserved.
-Code licensed under the BSD License:
-http://developer.yahoo.net/yui/license.txt
-version: 2.8.0r4
-*/
-.yui-crop{position:relative;}.yui-crop .yui-crop-mask{position:absolute;top:0;left:0;height:100%;width:100%;}.yui-crop .yui-resize{position:absolute;top:10px;left:10px;border:0;}.yui-crop .yui-crop-resize-mask{position:absolute;top:0;left:0;height:100%;width:100%;background-position:-10px -10px;overflow:hidden;}.yui-skin-sam .yui-crop .yui-crop-mask{background-color:#000;opacity:.5;filter:alpha(opacity=50);}.yui-skin-sam .yui-crop .yui-resize{border:1px dashed #fff;}
diff --git a/koha-tmpl/intranet-tmpl/prog/en/lib/yui/assets/skins/sam/layout.css b/koha-tmpl/intranet-tmpl/prog/en/lib/yui/assets/skins/sam/layout.css
deleted file mode 100644 (file)
index aa5545f..0000000
+++ /dev/null
@@ -1,7 +0,0 @@
-/*
-Copyright (c) 2009, Yahoo! Inc. All rights reserved.
-Code licensed under the BSD License:
-http://developer.yahoo.net/yui/license.txt
-version: 2.8.0r4
-*/
-.yui-layout-loading{visibility:hidden;}body.yui-layout{overflow:hidden;position:relative;padding:0;margin:0;}.yui-layout-doc{position:relative;overflow:hidden;padding:0;margin:0;}.yui-layout-unit{height:50px;width:50px;padding:0;margin:0;float:none;z-index:0;}.yui-layout-unit-top{position:absolute;top:0;left:0;width:100%;}.yui-layout-unit-left{position:absolute;top:0;left:0;}.yui-layout-unit-right{position:absolute;top:0;right:0;}.yui-layout-unit-bottom{position:absolute;bottom:0;left:0;width:100%;}.yui-layout-unit-center{position:absolute;top:0;left:0;width:100%;}.yui-layout div.yui-layout-hd{position:absolute;top:0;left:0;zoom:1;width:100%;}.yui-layout div.yui-layout-bd{position:absolute;top:0;left:0;zoom:1;width:100%;}.yui-layout .yui-layout-noscroll div.yui-layout-bd{overflow:hidden;}.yui-layout .yui-layout-scroll div.yui-layout-bd{overflow:auto;}.yui-layout div.yui-layout-ft{position:absolute;bottom:0;left:0;width:100%;zoom:1;}.yui-layout .yui-layout-unit div.yui-layout-hd h2{text-align:left;}.yui-layout .yui-layout-unit div.yui-layout-hd .collapse{cursor:pointer;height:13px;position:absolute;right:2px;top:2px;width:17px;font-size:0;}.yui-layout .yui-layout-unit div.yui-layout-hd .close{cursor:pointer;height:13px;position:absolute;right:2px;top:2px;width:17px;font-size:0;}.yui-layout .yui-layout-unit div.yui-layout-hd .collapse-close{right:25px;}.yui-layout .yui-layout-clip{position:absolute;height:20px;background-color:#c0c0c0;display:none;}.yui-layout .yui-layout-clip .collapse{cursor:pointer;height:13px;position:absolute;right:2px;top:2px;width:17px;font-size:0;}.yui-layout .yui-layout-wrap{height:100%;width:100%;position:absolute;left:0;}.yui-skin-sam .yui-layout .yui-resize-proxy{border:none;font-size:0;margin:0;padding:0;}.yui-skin-sam .yui-layout .yui-resize-resizing .yui-resize-handle{display:none;zoom:1;}.yui-skin-sam .yui-layout .yui-resize-proxy div{position:absolute;border:1px solid #808080;background-color:#EDF5FF;}.yui-skin-sam .yui-layout .yui-resize .yui-resize-handle-active{zoom:1;}.yui-skin-sam .yui-layout .yui-resize-proxy .yui-layout-handle-l{width:5px;height:100%;top:0;left:0;zoom:1;}.yui-skin-sam .yui-layout .yui-resize-proxy .yui-layout-handle-r{width:5px;top:0;right:0;height:100%;position:absolute;zoom:1;}.yui-skin-sam .yui-layout .yui-resize-proxy .yui-layout-handle-b{width:100%;bottom:0;left:0;height:5px;}.yui-skin-sam .yui-layout .yui-resize-proxy .yui-layout-handle-t{width:100%;top:0;left:0;height:5px;}.yui-skin-sam .yui-layout .yui-layout-unit-left div.yui-layout-hd .collapse{background:transparent url(layout_sprite.png) no-repeat -20px -160px;border:1px solid #808080;}.yui-skin-sam .yui-layout .yui-layout-clip-left .collapse{background:transparent url(layout_sprite.png) no-repeat -20px -140px;border:1px solid #808080;}.yui-skin-sam .yui-layout .yui-layout-unit-right div.yui-layout-hd .collapse{background:transparent url(layout_sprite.png) no-repeat -20px -200px;border:1px solid #808080;}.yui-skin-sam .yui-layout .yui-layout-clip-right .collapse{background:transparent url(layout_sprite.png) no-repeat -20px -120px;border:1px solid #808080;}.yui-skin-sam .yui-layout .yui-layout-unit-top div.yui-layout-hd .collapse{background:transparent url(layout_sprite.png) no-repeat -20px -220px;border:1px solid #808080;}.yui-skin-sam .yui-layout .yui-layout-clip-top .collapse{background:transparent url(layout_sprite.png) no-repeat -20px -240px;border:1px solid #808080;}.yui-skin-sam .yui-layout .yui-layout-unit-bottom div.yui-layout-hd .collapse{background:transparent url(layout_sprite.png) no-repeat -20px -260px;border:1px solid #808080;}.yui-skin-sam .yui-layout .yui-layout-clip-bottom .collapse{background:transparent url(layout_sprite.png) no-repeat -20px -180px;border:1px solid #808080;}.yui-skin-sam .yui-layout .yui-layout-unit div.yui-layout-hd .close{background:transparent url(layout_sprite.png) no-repeat -20px -100px;border:1px solid #808080;}.yui-skin-sam .yui-layout .yui-layout-hd{background:url(sprite.png) repeat-x 0 -1400px;border:1px solid #808080;}.yui-skin-sam .yui-layout{background-color:#EDF5FF;}.yui-skin-sam .yui-layout .yui-layout-unit div.yui-layout-hd h2{font-weight:bold;color:#fff;padding:3px;margin:0;}.yui-skin-sam .yui-layout .yui-layout-unit div.yui-layout-bd{border:1px solid #808080;border-bottom:none;border-top:none;*border-bottom-width:0;*border-top-width:0;background-color:#f2f2f2;text-align:left;}.yui-skin-sam .yui-layout .yui-layout-unit div.yui-layout-bd-noft{border-bottom:1px solid #808080;}.yui-skin-sam .yui-layout .yui-layout-unit div.yui-layout-bd-nohd{border-top:1px solid #808080;}.yui-skin-sam .yui-layout .yui-layout-clip{position:absolute;height:20px;background-color:#EDF5FF;display:none;border:1px solid #808080;}.yui-skin-sam .yui-layout div.yui-layout-ft{border:1px solid #808080;border-top:none;*border-top-width:0;background-color:#f2f2f2;}.yui-skin-sam .yui-layout-unit .yui-resize-handle{background-color:transparent;zoom:1;}.yui-skin-sam .yui-layout-unit .yui-resize-handle-r{right:0;top:0;background-image:none;zoom:1;}.yui-skin-sam .yui-layout-unit .yui-resize-handle-l{left:0;top:0;background-image:none;zoom:1;}.yui-skin-sam .yui-layout-unit .yui-resize-handle-b{right:0;bottom:0;background-image:none;}.yui-skin-sam .yui-layout-unit .yui-resize-handle-t{right:0;top:0;background-image:none;}.yui-skin-sam .yui-layout-unit .yui-resize-handle-r .yui-layout-resize-knob,.yui-skin-sam .yui-layout-unit .yui-resize-handle-l .yui-layout-resize-knob{position:absolute;height:16px;width:6px;top:45%;left:0;display:block;background:transparent url(layout_sprite.png) no-repeat 0 -5px;}.yui-skin-sam .yui-layout-unit .yui-resize-handle-t .yui-layout-resize-knob,.yui-skin-sam .yui-layout-unit .yui-resize-handle-b .yui-layout-resize-knob{position:absolute;height:6px;width:16px;left:45%;background:transparent url(layout_sprite.png) no-repeat -20px 0;zoom:1;}
diff --git a/koha-tmpl/intranet-tmpl/prog/en/lib/yui/assets/skins/sam/layout_sprite.png b/koha-tmpl/intranet-tmpl/prog/en/lib/yui/assets/skins/sam/layout_sprite.png
deleted file mode 100644 (file)
index d6fce3c..0000000
Binary files a/koha-tmpl/intranet-tmpl/prog/en/lib/yui/assets/skins/sam/layout_sprite.png and /dev/null differ
diff --git a/koha-tmpl/intranet-tmpl/prog/en/lib/yui/assets/skins/sam/loading.gif b/koha-tmpl/intranet-tmpl/prog/en/lib/yui/assets/skins/sam/loading.gif
deleted file mode 100644 (file)
index 0bbf3bc..0000000
Binary files a/koha-tmpl/intranet-tmpl/prog/en/lib/yui/assets/skins/sam/loading.gif and /dev/null differ
diff --git a/koha-tmpl/intranet-tmpl/prog/en/lib/yui/assets/skins/sam/logger.css b/koha-tmpl/intranet-tmpl/prog/en/lib/yui/assets/skins/sam/logger.css
deleted file mode 100644 (file)
index 491b9c0..0000000
+++ /dev/null
@@ -1,7 +0,0 @@
-/*
-Copyright (c) 2009, Yahoo! Inc. All rights reserved.
-Code licensed under the BSD License:
-http://developer.yahoo.net/yui/license.txt
-version: 2.8.0r4
-*/
-.yui-skin-sam .yui-log{padding:1em;width:31em;background-color:#AAA;color:#000;border:1px solid black;font-family:monospace;font-size:77%;text-align:left;z-index:9000;}.yui-skin-sam .yui-log-container{position:absolute;top:1em;right:1em;}.yui-skin-sam .yui-log input{margin:0;padding:0;font-family:arial;font-size:100%;font-weight:normal;}.yui-skin-sam .yui-log .yui-log-btns{position:relative;float:right;bottom:.25em;}.yui-skin-sam .yui-log .yui-log-hd{margin-top:1em;padding:.5em;background-color:#575757;}.yui-skin-sam .yui-log .yui-log-hd h4{margin:0;padding:0;font-size:108%;font-weight:bold;color:#FFF;}.yui-skin-sam .yui-log .yui-log-bd{width:100%;height:20em;background-color:#FFF;border:1px solid gray;overflow:auto;}.yui-skin-sam .yui-log p{margin:1px;padding:.1em;}.yui-skin-sam .yui-log pre{margin:0;padding:0;}.yui-skin-sam .yui-log pre.yui-log-verbose{white-space:pre-wrap;white-space:-moz-pre-wrap!important;white-space:-pre-wrap;white-space:-o-pre-wrap;word-wrap:break-word;}.yui-skin-sam .yui-log .yui-log-ft{margin-top:.5em;}.yui-skin-sam .yui-log .yui-log-ft .yui-log-sourcefilters{width:100%;border-top:1px solid #575757;margin-top:.75em;padding-top:.75em;}.yui-skin-sam .yui-log .yui-log-filtergrp{margin-right:.5em;}.yui-skin-sam .yui-log .info{background-color:#A7CC25;}.yui-skin-sam .yui-log .warn{background-color:#F58516;}.yui-skin-sam .yui-log .error{background-color:#E32F0B;}.yui-skin-sam .yui-log .time{background-color:#A6C9D7;}.yui-skin-sam .yui-log .window{background-color:#F2E886;}
diff --git a/koha-tmpl/intranet-tmpl/prog/en/lib/yui/assets/skins/sam/menu-button-arrow-disabled.png b/koha-tmpl/intranet-tmpl/prog/en/lib/yui/assets/skins/sam/menu-button-arrow-disabled.png
deleted file mode 100644 (file)
index 8cef2ab..0000000
Binary files a/koha-tmpl/intranet-tmpl/prog/en/lib/yui/assets/skins/sam/menu-button-arrow-disabled.png and /dev/null differ
diff --git a/koha-tmpl/intranet-tmpl/prog/en/lib/yui/assets/skins/sam/menu-button-arrow.png b/koha-tmpl/intranet-tmpl/prog/en/lib/yui/assets/skins/sam/menu-button-arrow.png
deleted file mode 100644 (file)
index f03dfee..0000000
Binary files a/koha-tmpl/intranet-tmpl/prog/en/lib/yui/assets/skins/sam/menu-button-arrow.png and /dev/null differ
diff --git a/koha-tmpl/intranet-tmpl/prog/en/lib/yui/assets/skins/sam/menu.css b/koha-tmpl/intranet-tmpl/prog/en/lib/yui/assets/skins/sam/menu.css
deleted file mode 100644 (file)
index 7ff03a1..0000000
+++ /dev/null
@@ -1,7 +0,0 @@
-/*
-Copyright (c) 2009, Yahoo! Inc. All rights reserved.
-Code licensed under the BSD License:
-http://developer.yahoo.net/yui/license.txt
-version: 2.8.0r4
-*/
-.yuimenu{top:-999em;left:-999em;}.yuimenubar{position:static;}.yuimenu .yuimenu,.yuimenubar .yuimenu{position:absolute;}.yuimenubar li,.yuimenu li{list-style-type:none;}.yuimenubar ul,.yuimenu ul,.yuimenubar li,.yuimenu li,.yuimenu h6,.yuimenubar h6{margin:0;padding:0;}.yuimenuitemlabel,.yuimenubaritemlabel{text-align:left;white-space:nowrap;}.yuimenubar ul{*zoom:1;}.yuimenubar .yuimenu ul{*zoom:normal;}.yuimenubar>.bd>ul:after{content:".";display:block;clear:both;visibility:hidden;height:0;line-height:0;}.yuimenubaritem{float:left;}.yuimenubaritemlabel,.yuimenuitemlabel{display:block;}.yuimenuitemlabel .helptext{font-style:normal;display:block;margin:-1em 0 0 10em;}.yui-menu-shadow{position:absolute;visibility:hidden;z-index:-1;}.yui-menu-shadow-visible{top:2px;right:-3px;left:-3px;bottom:-3px;visibility:visible;}.hide-scrollbars *{overflow:hidden;}.hide-scrollbars select{display:none;}.yuimenu.show-scrollbars,.yuimenubar.show-scrollbars{overflow:visible;}.yuimenu.hide-scrollbars .yui-menu-shadow,.yuimenubar.hide-scrollbars .yui-menu-shadow{overflow:hidden;}.yuimenu.show-scrollbars .yui-menu-shadow,.yuimenubar.show-scrollbars .yui-menu-shadow{overflow:auto;}.yui-overlay.yui-force-redraw{margin-bottom:1px;}.yui-skin-sam .yuimenubar{font-size:93%;line-height:2;*line-height:1.9;border:solid 1px #808080;background:url(sprite.png) repeat-x 0 0;}.yui-skin-sam .yuimenubarnav .yuimenubaritem{border-right:solid 1px #ccc;}.yui-skin-sam .yuimenubaritemlabel{padding:0 10px;color:#000;text-decoration:none;cursor:default;border-style:solid;border-color:#808080;border-width:1px 0;*position:relative;margin:-1px 0;}.yui-skin-sam .yuimenubaritemlabel:visited{color:#000;}.yui-skin-sam .yuimenubarnav .yuimenubaritemlabel{padding-right:20px;*display:inline-block;}.yui-skin-sam .yuimenubarnav .yuimenubaritemlabel-hassubmenu{background:url(menubaritem_submenuindicator.png) right center no-repeat;}.yui-skin-sam .yuimenubaritem-selected{background:url(sprite.png) repeat-x 0 -1700px;}.yui-skin-sam .yuimenubaritemlabel-selected{border-color:#7D98B8;}.yui-skin-sam .yuimenubarnav .yuimenubaritemlabel-selected{border-left-width:1px;margin-left:-1px;*left:-1px;}.yui-skin-sam .yuimenubaritemlabel-disabled,.yui-skin-sam .yuimenubaritemlabel-disabled:visited{cursor:default;color:#A6A6A6;}.yui-skin-sam .yuimenubarnav .yuimenubaritemlabel-hassubmenu-disabled{background-image:url(menubaritem_submenuindicator_disabled.png);}.yui-skin-sam .yuimenu{font-size:93%;line-height:1.5;*line-height:1.45;}.yui-skin-sam .yuimenubar .yuimenu,.yui-skin-sam .yuimenu .yuimenu{font-size:100%;}.yui-skin-sam .yuimenu .bd{*zoom:1;_zoom:normal;border:solid 1px #808080;background-color:#fff;}.yui-skin-sam .yuimenu .yuimenu .bd{*zoom:normal;}.yui-skin-sam .yuimenu ul{padding:3px 0;border-width:1px 0 0 0;border-color:#ccc;border-style:solid;}.yui-skin-sam .yuimenu ul.first-of-type{border-width:0;}.yui-skin-sam .yuimenu h6{font-weight:bold;border-style:solid;border-color:#ccc;border-width:1px 0 0 0;color:#a4a4a4;padding:3px 10px 0 10px;}.yui-skin-sam .yuimenu ul.hastitle,.yui-skin-sam .yuimenu h6.first-of-type{border-width:0;}.yui-skin-sam .yuimenu .yui-menu-body-scrolled{border-color:#ccc #808080;overflow:hidden;}.yui-skin-sam .yuimenu .topscrollbar,.yui-skin-sam .yuimenu .bottomscrollbar{height:16px;border:solid 1px #808080;background:#fff url(sprite.png) no-repeat 0 0;}.yui-skin-sam .yuimenu .topscrollbar{border-bottom-width:0;background-position:center -950px;}.yui-skin-sam .yuimenu .topscrollbar_disabled{background-position:center -975px;}.yui-skin-sam .yuimenu .bottomscrollbar{border-top-width:0;background-position:center -850px;}.yui-skin-sam .yuimenu .bottomscrollbar_disabled{background-position:center -875px;}.yui-skin-sam .yuimenuitem{_border-bottom:solid 1px #fff;}.yui-skin-sam .yuimenuitemlabel{padding:0 20px;color:#000;text-decoration:none;cursor:default;}.yui-skin-sam .yuimenuitemlabel:visited{color:#000;}.yui-skin-sam .yuimenuitemlabel .helptext{margin-top:-1.5em;*margin-top:-1.45em;}.yui-skin-sam .yuimenuitem-hassubmenu{background-image:url(menuitem_submenuindicator.png);background-position:right center;background-repeat:no-repeat;}.yui-skin-sam .yuimenuitem-checked{background-image:url(menuitem_checkbox.png);background-position:left center;background-repeat:no-repeat;}.yui-skin-sam .yui-menu-shadow-visible{background-color:#000;opacity:.12;filter:alpha(opacity=12);}.yui-skin-sam .yuimenuitem-selected{background-color:#B3D4FF;}.yui-skin-sam .yuimenuitemlabel-disabled,.yui-skin-sam .yuimenuitemlabel-disabled:visited{cursor:default;color:#A6A6A6;}.yui-skin-sam .yuimenuitem-hassubmenu-disabled{background-image:url(menuitem_submenuindicator_disabled.png);}.yui-skin-sam .yuimenuitem-checked-disabled{background-image:url(menuitem_checkbox_disabled.png);}
diff --git a/koha-tmpl/intranet-tmpl/prog/en/lib/yui/assets/skins/sam/menubaritem_submenuindicator.png b/koha-tmpl/intranet-tmpl/prog/en/lib/yui/assets/skins/sam/menubaritem_submenuindicator.png
deleted file mode 100644 (file)
index 030941c..0000000
Binary files a/koha-tmpl/intranet-tmpl/prog/en/lib/yui/assets/skins/sam/menubaritem_submenuindicator.png and /dev/null differ
diff --git a/koha-tmpl/intranet-tmpl/prog/en/lib/yui/assets/skins/sam/menubaritem_submenuindicator_disabled.png b/koha-tmpl/intranet-tmpl/prog/en/lib/yui/assets/skins/sam/menubaritem_submenuindicator_disabled.png
deleted file mode 100644 (file)
index 6c16122..0000000
Binary files a/koha-tmpl/intranet-tmpl/prog/en/lib/yui/assets/skins/sam/menubaritem_submenuindicator_disabled.png and /dev/null differ
diff --git a/koha-tmpl/intranet-tmpl/prog/en/lib/yui/assets/skins/sam/menuitem_checkbox.png b/koha-tmpl/intranet-tmpl/prog/en/lib/yui/assets/skins/sam/menuitem_checkbox.png
deleted file mode 100644 (file)
index 1437a4f..0000000
Binary files a/koha-tmpl/intranet-tmpl/prog/en/lib/yui/assets/skins/sam/menuitem_checkbox.png and /dev/null differ
diff --git a/koha-tmpl/intranet-tmpl/prog/en/lib/yui/assets/skins/sam/menuitem_checkbox_disabled.png b/koha-tmpl/intranet-tmpl/prog/en/lib/yui/assets/skins/sam/menuitem_checkbox_disabled.png
deleted file mode 100644 (file)
index 5d5b998..0000000
Binary files a/koha-tmpl/intranet-tmpl/prog/en/lib/yui/assets/skins/sam/menuitem_checkbox_disabled.png and /dev/null differ
diff --git a/koha-tmpl/intranet-tmpl/prog/en/lib/yui/assets/skins/sam/menuitem_submenuindicator.png b/koha-tmpl/intranet-tmpl/prog/en/lib/yui/assets/skins/sam/menuitem_submenuindicator.png
deleted file mode 100644 (file)
index ea4f660..0000000
Binary files a/koha-tmpl/intranet-tmpl/prog/en/lib/yui/assets/skins/sam/menuitem_submenuindicator.png and /dev/null differ
diff --git a/koha-tmpl/intranet-tmpl/prog/en/lib/yui/assets/skins/sam/menuitem_submenuindicator_disabled.png b/koha-tmpl/intranet-tmpl/prog/en/lib/yui/assets/skins/sam/menuitem_submenuindicator_disabled.png
deleted file mode 100644 (file)
index 427d60a..0000000
Binary files a/koha-tmpl/intranet-tmpl/prog/en/lib/yui/assets/skins/sam/menuitem_submenuindicator_disabled.png and /dev/null differ
diff --git a/koha-tmpl/intranet-tmpl/prog/en/lib/yui/assets/skins/sam/paginator.css b/koha-tmpl/intranet-tmpl/prog/en/lib/yui/assets/skins/sam/paginator.css
deleted file mode 100644 (file)
index 31f0d33..0000000
+++ /dev/null
@@ -1,7 +0,0 @@
-/*
-Copyright (c) 2009, Yahoo! Inc. All rights reserved.
-Code licensed under the BSD License:
-http://developer.yahoo.net/yui/license.txt
-version: 2.8.0r4
-*/
-.yui-skin-sam .yui-pg-container{display:block;margin:6px 0;white-space:nowrap;}.yui-skin-sam .yui-pg-first,.yui-skin-sam .yui-pg-previous,.yui-skin-sam .yui-pg-next,.yui-skin-sam .yui-pg-last,.yui-skin-sam .yui-pg-current,.yui-skin-sam .yui-pg-pages,.yui-skin-sam .yui-pg-page{display:inline-block;font-family:arial,helvetica,clean,sans-serif;padding:3px 6px;zoom:1;}.yui-skin-sam .yui-pg-pages{padding:0;}.yui-skin-sam .yui-pg-current{padding:3px 0;}.yui-skin-sam a.yui-pg-first:link,.yui-skin-sam a.yui-pg-first:visited,.yui-skin-sam a.yui-pg-first:active,.yui-skin-sam a.yui-pg-first:hover,.yui-skin-sam a.yui-pg-previous:link,.yui-skin-sam a.yui-pg-previous:visited,.yui-skin-sam a.yui-pg-previous:active,.yui-skin-sam a.yui-pg-previous:hover,.yui-skin-sam a.yui-pg-next:link,.yui-skin-sam a.yui-pg-next:visited,.yui-skin-sam a.yui-pg-next:active,.yui-skin-sam a.yui-pg-next:hover,.yui-skin-sam a.yui-pg-last:link,.yui-skin-sam a.yui-pg-last:visited,.yui-skin-sam a.yui-pg-last:active,.yui-skin-sam a.yui-pg-last:hover,.yui-skin-sam a.yui-pg-page:link,.yui-skin-sam a.yui-pg-page:visited,.yui-skin-sam a.yui-pg-page:active,.yui-skin-sam a.yui-pg-page:hover{color:#06c;text-decoration:underline;outline:0;}.yui-skin-sam span.yui-pg-first,.yui-skin-sam span.yui-pg-previous,.yui-skin-sam span.yui-pg-next,.yui-skin-sam span.yui-pg-last{color:#a6a6a6;}.yui-skin-sam .yui-pg-page{background-color:#fff;border:1px solid #CBCBCB;padding:2px 6px;text-decoration:none;}.yui-skin-sam .yui-pg-current-page{background-color:transparent;border:none;font-weight:bold;padding:3px 6px;}.yui-skin-sam .yui-pg-page{margin-left:1px;margin-right:1px;}.yui-skin-sam .yui-pg-first,.yui-skin-sam .yui-pg-previous{padding-left:0;}.yui-skin-sam .yui-pg-next,.yui-skin-sam .yui-pg-last{padding-right:0;}.yui-skin-sam .yui-pg-current,.yui-skin-sam .yui-pg-rpp-options{margin-left:1em;margin-right:1em;}
diff --git a/koha-tmpl/intranet-tmpl/prog/en/lib/yui/assets/skins/sam/picker_mask.png b/koha-tmpl/intranet-tmpl/prog/en/lib/yui/assets/skins/sam/picker_mask.png
deleted file mode 100644 (file)
index f8d9193..0000000
Binary files a/koha-tmpl/intranet-tmpl/prog/en/lib/yui/assets/skins/sam/picker_mask.png and /dev/null differ
diff --git a/koha-tmpl/intranet-tmpl/prog/en/lib/yui/assets/skins/sam/profilerviewer.css b/koha-tmpl/intranet-tmpl/prog/en/lib/yui/assets/skins/sam/profilerviewer.css
deleted file mode 100644 (file)
index d1e7832..0000000
+++ /dev/null
@@ -1,7 +0,0 @@
-/*
-Copyright (c) 2009, Yahoo! Inc. All rights reserved.
-Code licensed under the BSD License:
-http://developer.yahoo.net/yui/license.txt
-version: 2.8.0r4
-*/
-.yui-skin-sam .yui-pv{background-color:#4a4a4a;font:arial;position:relative;width:99%;z-index:1000;margin-bottom:1em;overflow:hidden;}.yui-skin-sam .yui-pv .hd{background:url(header_background.png) repeat-x;min-height:30px;overflow:hidden;zoom:1;padding:2px 0;}.yui-skin-sam .yui-pv .hd h4{padding:8px 10px;margin:0;font:bold 14px arial;color:#fff;}.yui-skin-sam .yui-pv .hd a{background:#3f6bc3;font:bold 11px arial;color:#fff;padding:4px;margin:3px 10px 0 0;border:1px solid #3f567d;cursor:pointer;display:block;float:right;}.yui-skin-sam .yui-pv .hd span{display:none;}.yui-skin-sam .yui-pv .hd span.yui-pv-busy{height:18px;width:18px;background:url(wait.gif) no-repeat;overflow:hidden;display:block;float:right;margin:4px 10px 0 0;}.yui-skin-sam .yui-pv .hd:after,.yui-pv .bd:after,.yui-skin-sam .yui-pv-chartlegend dl:after{content:'.';visibility:hidden;clear:left;height:0;display:block;}.yui-skin-sam .yui-pv .bd{position:relative;zoom:1;overflow-x:auto;overflow-y:hidden;}.yui-skin-sam .yui-pv .yui-pv-table{padding:0 10px;margin:5px 0 10px 0;}.yui-skin-sam .yui-pv .yui-pv-table .yui-dt-bd td{color:#eeee5c;font:12px arial;}.yui-skin-sam .yui-pv .yui-pv-table tr.yui-dt-odd{background:#929292;}.yui-skin-sam .yui-pv .yui-pv-table tr.yui-dt-even{background:#58637a;}.yui-skin-sam .yui-pv .yui-pv-table tr.yui-dt-even td.yui-dt-asc,.yui-skin-sam .yui-pv .yui-pv-table tr.yui-dt-even td.yui-dt-desc{background:#384970;}.yui-skin-sam .yui-pv .yui-pv-table tr.yui-dt-odd td.yui-dt-asc,.yui-skin-sam .yui-pv .yui-pv-table tr.yui-dt-odd td.yui-dt-desc{background:#6F6E6E;}.yui-skin-sam .yui-pv .yui-pv-table .yui-dt-hd th{background-image:none;background:#2E2D2D;}.yui-skin-sam .yui-pv th.yui-dt-asc .yui-dt-liner{background:transparent url(asc.gif) no-repeat scroll right center;}.yui-skin-sam .yui-pv th.yui-dt-desc .yui-dt-liner{background:transparent url(desc.gif) no-repeat scroll right center;}.yui-skin-sam .yui-pv .yui-pv-table .yui-dt-hd th a{color:#fff;font:bold 12px arial;}.yui-skin-sam .yui-pv .yui-pv-table .yui-dt-hd th.yui-dt-asc,.yui-skin-sam .yui-pv .yui-pv-table .yui-dt-hd th.yui-dt-desc{background:#333;}.yui-skin-sam .yui-pv-chartcontainer{padding:0 10px;}.yui-skin-sam .yui-pv-chart{height:250px;clear:right;margin:5px 0 0 0;color:#fff;}.yui-skin-sam .yui-pv-chartlegend div{float:right;margin:0 0 0 10px;_width:250px;}.yui-skin-sam .yui-pv-chartlegend dl{border:1px solid #999;padding:.2em 0 .2em .5em;zoom:1;margin:5px 0;}.yui-skin-sam .yui-pv-chartlegend dt{float:left;display:block;height:.7em;width:.7em;padding:0;}.yui-skin-sam .yui-pv-chartlegend dd{float:left;display:block;color:#fff;margin:0 1em 0 .5em;padding:0;font:11px arial;}.yui-skin-sam .yui-pv-minimized{height:35px;}.yui-skin-sam .yui-pv-minimized .bd{top:-3000px;}.yui-skin-sam .yui-pv-minimized .hd a.yui-pv-refresh{display:none;}
diff --git a/koha-tmpl/intranet-tmpl/prog/en/lib/yui/assets/skins/sam/progressbar.css b/koha-tmpl/intranet-tmpl/prog/en/lib/yui/assets/skins/sam/progressbar.css
deleted file mode 100644 (file)
index d71e6e8..0000000
+++ /dev/null
@@ -1,7 +0,0 @@
-/*
-Copyright (c) 2009, Yahoo! Inc. All rights reserved.
-Code licensed under the BSD License:
-http://developer.yahoo.net/yui/license.txt
-version: 2.8.0r4
-*/
-.yui-pb-bar,.yui-pb-mask{width:100%;height:100%;}.yui-pb{position:relative;top:0;left:0;width:200px;height:20px;padding:0;border:none;margin:0;text-align:left;}.yui-pb-mask{position:absolute;top:0;left:0;z-index:2;}.yui-pb-mask div{width:50%;height:50%;background-repeat:no-repeat;padding:0;position:absolute;}.yui-pb-tl{background-position:top left;}.yui-pb-tr{background-position:top right;left:50%;}.yui-pb-bl{background-position:bottom left;top:50%;}.yui-pb-br{background-position:bottom right;left:50%;top:50%;}.yui-pb-bar{margin:0;position:absolute;left:0;top:0;z-index:1;}.yui-pb-ltr .yui-pb-bar{_position:static;}.yui-pb-rtl .yui-pb-bar{background-position:right;}.yui-pb-btt .yui-pb-bar{background-position:left bottom;}.yui-pb-bar{background-color:blue;}.yui-pb{border:thin solid #808080;}.yui-skin-sam .yui-pb{background-color:transparent;border:solid #808080;border-width:1px 0;}.yui-skin-sam .yui-pb-rtl,.yui-skin-sam .yui-pb-ltr{background-image:url(back-h.png);background-repeat:repeat-x;}.yui-skin-sam .yui-pb-ttb,.yui-skin-sam .yui-pb-btt{background-image:url(back-v.png);background-repeat:repeat-y;}.yui-skin-sam .yui-pb-bar{background-color:transparent;}.yui-skin-sam .yui-pb-ltr .yui-pb-bar,.yui-skin-sam .yui-pb-rtl .yui-pb-bar{background-image:url(bar-h.png);background-repeat:repeat-x;}.yui-skin-sam .yui-pb-ttb .yui-pb-bar,.yui-skin-sam .yui-pb-btt .yui-pb-bar{background-image:url(bar-v.png);background-repeat:repeat-y;}.yui-skin-sam .yui-pb-mask{border:solid #808080;border-width:0 1px;margin:0 -1px;}.yui-skin-sam .yui-pb-caption{color:#000;text-align:center;margin:0 auto;}.yui-skin-sam .yui-pb-range{color:#a6a6a6;}
diff --git a/koha-tmpl/intranet-tmpl/prog/en/lib/yui/assets/skins/sam/resize.css b/koha-tmpl/intranet-tmpl/prog/en/lib/yui/assets/skins/sam/resize.css
deleted file mode 100644 (file)
index 941361c..0000000
+++ /dev/null
@@ -1,7 +0,0 @@
-/*
-Copyright (c) 2009, Yahoo! Inc. All rights reserved.
-Code licensed under the BSD License:
-http://developer.yahoo.net/yui/license.txt
-version: 2.8.0r4
-*/
-.yui-resize{position:relative;zoom:1;z-index:0;}.yui-resize-wrap{zoom:1;}.yui-draggable{cursor:move;}.yui-resize .yui-resize-handle{position:absolute;z-index:1;font-size:0;margin:0;padding:0;zoom:1;height:1px;width:1px;}.yui-resize .yui-resize-handle-br{height:5px;width:5px;bottom:0;right:0;cursor:se-resize;z-index:2;zoom:1;}.yui-resize .yui-resize-handle-bl{height:5px;width:5px;bottom:0;left:0;cursor:sw-resize;z-index:2;zoom:1;}.yui-resize .yui-resize-handle-tl{height:5px;width:5px;top:0;left:0;cursor:nw-resize;z-index:2;zoom:1;}.yui-resize .yui-resize-handle-tr{height:5px;width:5px;top:0;right:0;cursor:ne-resize;z-index:2;zoom:1;}.yui-resize .yui-resize-handle-r{width:5px;height:100%;top:0;right:0;cursor:e-resize;zoom:1;}.yui-resize .yui-resize-handle-l{height:100%;width:5px;top:0;left:0;cursor:w-resize;zoom:1;}.yui-resize .yui-resize-handle-b{width:100%;height:5px;bottom:0;right:0;cursor:s-resize;zoom:1;}.yui-resize .yui-resize-handle-t{width:100%;height:5px;top:0;right:0;cursor:n-resize;zoom:1;}.yui-resize-proxy{position:absolute;border:1px dashed #000;visibility:hidden;z-index:1000;}.yui-resize-hover .yui-resize-handle,.yui-resize-hidden .yui-resize-handle{opacity:0;filter:alpha(opacity=0);}.yui-resize-ghost{opacity:.5;filter:alpha(opacity=50);}.yui-resize-knob .yui-resize-handle{height:6px;width:6px;}.yui-resize-knob .yui-resize-handle-tr{right:-3px;top:-3px;}.yui-resize-knob .yui-resize-handle-tl{left:-3px;top:-3px;}.yui-resize-knob .yui-resize-handle-bl{left:-3px;bottom:-3px;}.yui-resize-knob .yui-resize-handle-br{right:-3px;bottom:-3px;}.yui-resize-knob .yui-resize-handle-t{left:45%;top:-3px;}.yui-resize-knob .yui-resize-handle-r{right:-3px;top:45%;}.yui-resize-knob .yui-resize-handle-l{left:-3px;top:45%;}.yui-resize-knob .yui-resize-handle-b{left:45%;bottom:-3px;}.yui-resize-status{position:absolute;top:-999px;left:-999px;padding:2px;font-size:80%;display:none;zoom:1;z-index:9999;}.yui-resize-status strong,.yui-resize-status em{font-weight:normal;font-style:normal;padding:1px;zoom:1;}.yui-skin-sam .yui-resize .yui-resize-handle{background-color:#F2F2F2;zoom:1;}.yui-skin-sam .yui-resize .yui-resize-handle-active{background-color:#7D98B8;zoom:1;}.yui-skin-sam .yui-resize .yui-resize-handle-l,.yui-skin-sam .yui-resize .yui-resize-handle-r,.yui-skin-sam .yui-resize .yui-resize-handle-l-active,.yui-skin-sam .yui-resize .yui-resize-handle-r-active{height:100%;zoom:1;}.yui-skin-sam .yui-resize-knob .yui-resize-handle{border:1px solid #808080;}.yui-skin-sam .yui-resize-hover .yui-resize-handle-active{opacity:1;filter:alpha(opacity=100);}.yui-skin-sam .yui-resize-proxy{border:1px dashed #426FD9;}.yui-skin-sam .yui-resize-status{border:1px solid #A6982B;border-top:1px solid #D4C237;background-color:#FFEE69;color:#000;}.yui-skin-sam .yui-resize-status strong,.yui-skin-sam .yui-resize-status em{float:left;display:block;clear:both;padding:1px;text-align:center;}.yui-skin-sam .yui-resize .yui-resize-handle-inner-r,.yui-skin-sam .yui-resize .yui-resize-handle-inner-l{background:transparent url(layout_sprite.png) no-repeat 0 -5px;height:16px;width:5px;position:absolute;top:45%;}.yui-skin-sam .yui-resize .yui-resize-handle-inner-t,.yui-skin-sam .yui-resize .yui-resize-handle-inner-b{background:transparent url(layout_sprite.png) no-repeat -20px 0;height:5px;width:16px;position:absolute;left:50%;}.yui-skin-sam .yui-resize .yui-resize-handle-br{background-image:url(layout_sprite.png);background-repeat:no-repeat;background-position:-22px -62px;}.yui-skin-sam .yui-resize .yui-resize-handle-tr{background-image:url(layout_sprite.png);background-repeat:no-repeat;background-position:-22px -42px;}.yui-skin-sam .yui-resize .yui-resize-handle-tl{background-image:url(layout_sprite.png);background-repeat:no-repeat;background-position:-22px -82px;}.yui-skin-sam .yui-resize .yui-resize-handle-bl{background-image:url(layout_sprite.png);background-repeat:no-repeat;background-position:-22px -23px;}.yui-skin-sam .yui-resize-knob .yui-resize-handle-t,.yui-skin-sam .yui-resize-knob .yui-resize-handle-r,.yui-skin-sam .yui-resize-knob .yui-resize-handle-b,.yui-skin-sam .yui-resize-knob .yui-resize-handle-l,.yui-skin-sam .yui-resize-knob .yui-resize-handle-tl,.yui-skin-sam .yui-resize-knob .yui-resize-handle-tr,.yui-skin-sam .yui-resize-knob .yui-resize-handle-bl,.yui-skin-sam .yui-resize-knob .yui-resize-handle-br,.yui-skin-sam .yui-resize-knob .yui-resize-handle-inner-t,.yui-skin-sam .yui-resize-knob .yui-resize-handle-inner-r,.yui-skin-sam .yui-resize-knob .yui-resize-handle-inner-b,.yui-skin-sam .yui-resize-knob .yui-resize-handle-inner-l,.yui-skin-sam .yui-resize-knob .yui-resize-handle-inner-tl,.yui-skin-sam .yui-resize-knob .yui-resize-handle-inner-tr,.yui-skin-sam .yui-resize-knob .yui-resize-handle-inner-bl,.yui-skin-sam .yui-resize-knob .yui-resize-handle-inner-br{background-image:none;}.yui-skin-sam .yui-resize-knob .yui-resize-handle-l,.yui-skin-sam .yui-resize-knob .yui-resize-handle-r,.yui-skin-sam .yui-resize-knob .yui-resize-handle-l-active,.yui-skin-sam .yui-resize-knob .yui-resize-handle-r-active{height:6px;width:6px;}.yui-skin-sam .yui-resize-textarea .yui-resize-handle-r{right:-8px;}.yui-skin-sam .yui-resize-textarea .yui-resize-handle-b{bottom:-8px;}.yui-skin-sam .yui-resize-textarea .yui-resize-handle-br{right:-8px;bottom:-8px;}
diff --git a/koha-tmpl/intranet-tmpl/prog/en/lib/yui/assets/skins/sam/simpleeditor.css b/koha-tmpl/intranet-tmpl/prog/en/lib/yui/assets/skins/sam/simpleeditor.css
deleted file mode 100644 (file)
index 00451d8..0000000
+++ /dev/null
@@ -1,10 +0,0 @@
-/*
-Copyright (c) 2009, Yahoo! Inc. All rights reserved.
-Code licensed under the BSD License:
-http://developer.yahoo.net/yui/license.txt
-version: 2.8.0r4
-*/
-.yui-busy{cursor:wait!important;}.yui-toolbar-container fieldset,.yui-editor-container fieldset{padding:0;margin:0;border:0;}.yui-toolbar-container legend{display:none;}.yui-skin-sam .yui-toolbar-container .yui-button button,.yui-skin-sam .yui-toolbar-container .yui-button a,.yui-skin-sam .yui-toolbar-container .yui-button a:visited{font-size:0;}.yui-skin-sam .yui-toolbar-container .yui-toolbar-select button,.yui-skin-sam .yui-toolbar-container .yui-toolbar-select a,.yui-skin-sam .yui-toolbar-container .yui-toolbar-select a:visited,.yui-skin-sam .yui-toolbar-container .yui-toolbar-spinbutton button,.yui-skin-sam .yui-toolbar-container .yui-toolbar-spinbutton a,.yui-skin-sam .yui-toolbar-container .yui-toolbar-spinbutton a:visited{font-size:12px;}.yui-skin-sam .yui-toolbar-container .yui-toolbar-spinbutton a.up,.yui-skin-sam .yui-toolbar-container .yui-toolbar-spinbutton a.down{font-size:0;line-height:0;padding:0;}.yui-toolbar-container .yui-toolbar-subcont{padding:.25em 0;zoom:1;}.yui-toolbar-container-collapsed .yui-toolbar-subcont{display:none;}.yui-toolbar-container .yui-toolbar-subcont:after{display:block;clear:both;visibility:hidden;content:'.';height:0;}.yui-toolbar-container span.yui-toolbar-draghandle{cursor:move;border-left:1px solid #999;border-right:1px solid #999;overflow:hidden;text-indent:77777px;width:2px;height:20px;display:block;clear:none;float:left;margin:0 0 0 .2em;}.yui-toolbar-container .yui-toolbar-titlebar.draggable{cursor:move;}.yui-toolbar-container .yui-toolbar-titlebar{position:relative;}.yui-toolbar-container .yui-toolbar-titlebar h2{font-weight:bold;letter-spacing:0;border:none;color:#000;margin:0;padding:.2em;}.yui-toolbar-container .yui-toolbar-titlebar h2 a{text-decoration:none;color:#000;cursor:default;}.yui-toolbar-container.yui-toolbar-grouped span.yui-toolbar-draghandle{height:40px;}.yui-toolbar-container .yui-toolbar-group{float:left;margin-right:.5em;zoom:1;}.yui-toolbar-container .yui-toolbar-group:after{display:block;clear:both;visibility:hidden;content:'.';height:0;}.yui-toolbar-container .yui-toolbar-group h3{font-size:75%;padding:0 0 0 .25em;margin:0;}.yui-toolbar-container span.yui-toolbar-separator{width:2px;padding:0;height:18px;margin:.2em 0 .2em .1em;display:none;float:left;}.yui-toolbar-container.yui-toolbar-grouped span.yui-toolbar-separator{height:45px;*height:50px;}.yui-toolbar-container.yui-toolbar-grouped .yui-toolbar-group span.yui-toolbar-separator{height:18px;display:block;}.yui-toolbar-container ul li{margin:0;padding:0;list-style-type:none;}.yui-toolbar-container .yui-toolbar-nogrouplabels h3{display:none;}.yui-toolbar-container .yui-push-button,.yui-toolbar-container .yui-color-button,.yui-toolbar-container .yui-menu-button{position:relative;cursor:pointer;}.yui-toolbar-container .yui-button .first-child,.yui-toolbar-container .yui-button .first-child a{height:100%;width:100%;overflow:hidden;font-size:0;}.yui-toolbar-container .yui-button-disabled{cursor:default;}.yui-toolbar-container .yui-button-disabled .yui-toolbar-icon{opacity:.5;filter:alpha(opacity=50);}.yui-toolbar-container .yui-button-disabled .up,.yui-toolbar-container .yui-button-disabled .down{opacity:.5;filter:alpha(opacity=50);}.yui-toolbar-container .yui-button a{overflow:hidden;}.yui-toolbar-container .yui-toolbar-select .first-child a{cursor:pointer;}.yui-toolbar-fontname-arial{font-family:Arial;}.yui-toolbar-fontname-arial-black{font-family:Arial Black;}.yui-toolbar-fontname-comic-sans-ms{font-family:Comic Sans MS;}.yui-toolbar-fontname-courier-new{font-family:Courier New;}.yui-toolbar-fontname-times-new-roman{font-family:Times New Roman;}.yui-toolbar-fontname-verdana{font-family:Verdana;}.yui-toolbar-fontname-impact{font-family:Impact;}.yui-toolbar-fontname-lucida-console{font-family:Lucida Console;}.yui-toolbar-fontname-tahoma{font-family:Tahoma;}.yui-toolbar-fontname-trebuchet-ms{font-family:Trebuchet MS;}.yui-toolbar-container .yui-toolbar-spinbutton{position:relative;}.yui-toolbar-container .yui-toolbar-spinbutton .first-child a{z-index:0;opacity:1;}.yui-toolbar-container .yui-toolbar-spinbutton a.up,.yui-toolbar-container .yui-toolbar-spinbutton a.down{position:absolute;display:block;right:0;cursor:pointer;z-index:1;padding:0;margin:0;}.yui-toolbar-container .yui-overlay{position:absolute;}.yui-toolbar-container .yui-overlay ul li{margin:0;list-style-type:none;}.yui-toolbar-container{z-index:1;}.yui-editor-container .yui-editor-editable-container{position:relative;z-index:0;width:100%;}.yui-editor-container .yui-editor-masked{background-color:#CCC;height:100%;width:100%;position:absolute;top:0;left:0;opacity:.5;filter:alpha(opacity=50);}.yui-editor-container iframe{border:0;padding:0;margin:0;zoom:1;display:block;}.yui-editor-container .yui-editor-editable{padding:0;margin:0;}.yui-editor-container .dompath{font-size:85%;}.yui-editor-panel .hd{text-align:left;position:relative;}.yui-editor-panel .hd h3{font-weight:bold;padding:.25em 0 .25em .25em;margin:0;}.yui-editor-panel .bd{width:100%;zoom:1;position:relative;}.yui-editor-panel .bd div.yui-editor-body-cont{padding:.25em .1em;zoom:1;}.yui-editor-panel .bd .gecko form{overflow:auto;}.yui-editor-panel .bd div.yui-editor-body-cont:after{display:block;clear:both;visibility:hidden;content:'.';height:0;}.yui-editor-panel .ft{text-align:right;width:99%;float:left;clear:both;}.yui-editor-panel .ft span.tip{display:block;position:relative;padding:.5em .5em .5em 23px;text-align:left;zoom:1;}.yui-editor-panel label{clear:both;float:left;padding:0;width:100%;text-align:left;zoom:1;}.yui-editor-panel .gecko label{overflow:auto;}.yui-editor-panel label strong{float:left;width:6em;}.yui-editor-panel .removeLink{width:80%;text-align:right;}.yui-editor-panel label input{margin-left:.25em;float:left;}.yui-editor-panel .yui-toolbar-group{margin-bottom:.75em;}.yui-editor-panel .height-width{float:left;}.yui-editor-panel .height-width span{font-style:italic;display:block;float:left;overflow:visible;}.yui-editor-panel .height-width span.info{font-size:70%;margin-top:3px;float:none;}
-.yui-editor-panel .yui-toolbar-bordersize,.yui-editor-panel .yui-toolbar-bordertype{font-size:75%;}.yui-editor-panel .yui-toolbar-container span.yui-toolbar-separator{border:none;}.yui-editor-panel .yui-toolbar-bordersize span a span,.yui-editor-panel .yui-toolbar-bordertype span a span{display:block;height:8px;left:4px;position:absolute;top:3px;_top:-5px;width:24px;text-indent:52px;font-size:0;}.yui-editor-panel .yui-toolbar-bordertype span a span.yui-toolbar-bordertype-solid{border-bottom:1px solid black;}.yui-editor-panel .yui-toolbar-bordertype span a span.yui-toolbar-bordertype-dotted{border-bottom:1px dotted black;}.yui-editor-panel .yui-toolbar-bordertype span a span.yui-toolbar-bordertype-dashed{border-bottom:1px dashed black;}.yui-editor-panel .yui-toolbar-bordersize span a span.yui-toolbar-bordersize-0{*top:0;text-indent:0;font-size:75%;}.yui-editor-panel .yui-toolbar-bordersize span a span.yui-toolbar-bordersize-1{border-bottom:1px solid black;}.yui-editor-panel .yui-toolbar-bordersize span a span.yui-toolbar-bordersize-2{border-bottom:2px solid black;}.yui-editor-panel .yui-toolbar-bordersize span a span.yui-toolbar-bordersize-3{top:2px;*top:-5px;border-bottom:3px solid black;}.yui-editor-panel .yui-toolbar-bordersize span a span.yui-toolbar-bordersize-4{top:1px;*top:-5px;border-bottom:4px solid black;}.yui-editor-panel .yui-toolbar-bordersize span a span.yui-toolbar-bordersize-5{top:1px;*top:-5px;border-bottom:5px solid black;}.yui-toolbar-container .yui-toolbar-bordersize-menu,.yui-toolbar-container .yui-toolbar-bordertype-menu{width:95px!important;}.yui-toolbar-bordersize-menu .yuimenuitemlabel,.yui-toolbar-bordertype-menu .yuimenuitemlabel,.yui-toolbar-bordersize-menu .yuimenuitemlabel,.yui-toolbar-bordertype-menu .yuimenuitemlabel:hover{margin:0 3px 7px 17px;}.yui-toolbar-bordersize-menu .yuimenuitemlabel .checkedindicator,.yui-toolbar-bordertype-menu .yuimenuitemlabel .checkedindicator{position:absolute;left:-12px;*top:14px;*left:0;}.yui-toolbar-bordersize-menu li.yui-toolbar-bordersize-1 a{border-bottom:1px solid black;height:14px;}.yui-toolbar-bordersize-menu li.yui-toolbar-bordersize-2 a{border-bottom:2px solid black;height:14px;}.yui-toolbar-bordersize-menu li.yui-toolbar-bordersize-3 a{border-bottom:3px solid black;height:14px;}.yui-toolbar-bordersize-menu li.yui-toolbar-bordersize-4 a{border-bottom:4px solid black;height:14px;}.yui-toolbar-bordersize-menu li.yui-toolbar-bordersize-5 a{border-bottom:5px solid black;height:14px;}.yui-toolbar-bordertype-menu li.yui-toolbar-bordertype-solid a{border-bottom:1px solid black;height:14px;}.yui-toolbar-bordertype-menu li.yui-toolbar-bordertype-dashed a{border-bottom:1px dashed black;height:14px;}.yui-toolbar-bordertype-menu li.yui-toolbar-bordertype-dotted a{border-bottom:1px dotted black;height:14px;}h2.yui-editor-skipheader,h3.yui-editor-skipheader{height:0;margin:0;padding:0;border:none;width:0;overflow:hidden;position:absolute;}.yui-toolbar-colors{width:133px;zoom:1;display:none;z-index:100;overflow:hidden;}.yui-toolbar-colors:after{display:block;clear:both;visibility:hidden;content:'.';height:0;}.yui-toolbar-colors a{height:9px;width:9px;float:left;display:block;overflow:hidden;text-indent:999px;margin:0;cursor:pointer;border:1px solid #F6F7EE;}.yui-toolbar-colors a:hover{border:1px solid black;}.yui-color-button-menu{overflow:visible;background-color:transparent;}.yui-toolbar-colors span{position:relative;display:block;padding:3px;overflow:hidden;float:left;width:100%;zoom:1;}.yui-toolbar-colors span:after{display:block;clear:both;visibility:hidden;content:'.';height:0;}.yui-toolbar-colors span em{height:35px;width:30px;float:left;display:block;overflow:hidden;text-indent:999px;margin:.75px;border:1px solid black;}.yui-toolbar-colors span strong{font-weight:normal;padding-left:3px;display:block;font-size:85%;float:left;width:65%;}.yui-toolbar-group-undoredo h3,.yui-toolbar-group-insertitem h3,.yui-toolbar-group-indentlist h3{width:68px;}.yui-toolbar-group-indentlist2 h3{width:122px;}.yui-toolbar-group-alignment h3{width:130px;}.yui-skin-sam .yui-editor-container{border:1px solid #808080;}.yui-skin-sam .yui-toolbar-container{zoom:1;}.yui-skin-sam .yui-toolbar-container .yui-toolbar-titlebar{background:url(sprite.png) repeat-x 0 -200px;position:relative;}.yui-skin-sam .yui-editor-container .draggable .yui-toolbar-titlebar{cursor:move;}.yui-skin-sam .yui-toolbar-container .yui-toolbar-titlebar h2{color:#000;font-weight:bold;margin:0;padding:.3em 1em;font-size:100%;text-align:left;}.yui-skin-sam .yui-toolbar-container .yui-toolbar-group h3{color:#808080;font-size:75%;margin:1em 0 0;padding-bottom:0;padding-left:.25em;text-align:left;}.yui-toolbar-container span.yui-toolbar-separator{border:none;text-indent:33px;overflow:hidden;margin:0 .25em;}.yui-skin-sam .yui-toolbar-container{background-color:#F2F2F2;}.yui-skin-sam .yui-toolbar-container .yui-toolbar-subcont{padding:0 1em .35em;border-bottom:1px solid #808080;}.yui-skin-sam .yui-toolbar-container-collapsed .yui-toolbar-titlebar{border-bottom:1px solid #808080;}.yui-skin-sam .yui-editor-container .visible .yui-menu-shadow,.yui-skin-sam .yui-editor-panel .visible .yui-menu-shadow{display:none;}.yui-skin-sam .yui-editor-container ul{list-style-type:none;margin:0;padding:0;}.yui-skin-sam .yui-editor-container ul li{list-style-type:none;margin:0;padding:0;}.yui-skin-sam .yui-toolbar-group ul li.yui-toolbar-groupitem{float:left;}.yui-skin-sam .yui-editor-container .dompath{background-color:#F2F2F2;border-top:1px solid #808080;color:#999;text-align:left;padding:.25em;}.yui-skin-sam .yui-toolbar-container .collapse{background:url(sprite.png) no-repeat 0 -400px;}.yui-skin-sam .yui-toolbar-container .collapsed{background:url(sprite.png) no-repeat 0 -350px;}.yui-skin-sam .yui-toolbar-container .yui-toolbar-titlebar span.collapse{cursor:pointer;position:absolute;top:4px;right:2px;display:block;overflow:hidden;height:15px;width:15px;text-indent:9999px;}
-.yui-skin-sam .yui-toolbar-container .yui-push-button,.yui-skin-sam .yui-toolbar-container .yui-color-button,.yui-skin-sam .yui-toolbar-container .yui-menu-button{background:url(sprite.png) repeat-x 0 0;position:relative;display:block;height:22px;width:30px;_font-size:0;margin:0;border-color:#808080;color:#f2f2f2;border-style:solid;border-width:1px 0;zoom:1;}.yui-skin-sam .yui-toolbar-container .yui-push-button a,.yui-skin-sam .yui-toolbar-container .yui-color-button a,.yui-skin-sam .yui-toolbar-container .yui-menu-button a{padding-left:35px;height:20px;text-decoration:none;font-size:0;line-height:2;display:block;color:#000;overflow:hidden;white-space:nowrap;}.yui-skin-sam .yui-toolbar-container .yui-toolbar-spinbutton a,.yui-skin-sam .yui-toolbar-container .yui-toolbar-select a{font-size:12px;}.yui-skin-sam .yui-toolbar-container .yui-push-button .first-child,.yui-skin-sam .yui-toolbar-container .yui-color-button .first-child,.yui-skin-sam .yui-toolbar-container .yui-menu-button .first-child{border-color:#808080;border-style:solid;border-width:0 1px;margin:0 -1px;display:block;position:relative;}.yui-skin-sam .yui-toolbar-container .yui-push-button-disabled .first-child,.yui-skin-sam .yui-toolbar-container .yui-color-button-disabled .first-child,.yui-skin-sam .yui-toolbar-container .yui-menu-button-disabled .first-child{border-color:#ccc;}.yui-skin-sam .yui-toolbar-container .yui-push-button-disabled a,.yui-skin-sam .yui-toolbar-container .yui-color-button-disabled a,.yui-skin-sam .yui-toolbar-container .yui-menu-button-disabled a{color:#A6A6A6;cursor:default;}.yui-skin-sam .yui-toolbar-container .yui-push-button-disabled,.yui-skin-sam .yui-toolbar-container .yui-color-button-disabled,.yui-skin-sam .yui-toolbar-container .yui-menu-button-disabled{border-color:#ccc;}.yui-skin-sam .yui-toolbar-container .yui-button .first-child{*left:0;}.yui-skin-sam .yui-toolbar-container .yui-toolbar-fontname{width:135px;}.yui-skin-sam .yui-toolbar-container .yui-toolbar-heading{width:92px;}.yui-skin-sam .yui-toolbar-container .yui-button-hover{background:url(sprite.png) repeat-x 0 -1300px;border-color:#808080;}.yui-skin-sam .yui-toolbar-container .yui-button-selected{background:url(sprite.png) repeat-x 0 -1700px;border-color:#808080;}.yui-skin-sam .yui-toolbar-container .yui-toolbar-nogrouplabels h3{display:none;}.yui-skin-sam .yui-toolbar-container .yui-toolbar-nogrouplabels .yui-toolbar-group{margin-top:.75em;}.yui-skin-sam .yui-toolbar-container .yui-push-button span.yui-toolbar-icon,.yui-skin-sam .yui-toolbar-container .yui-color-button span.yui-toolbar-icon,.yui-skin-sam .yui-toolbar-container .yui-menu-button span.yui-toolbar-icon{display:block;position:absolute;top:2px;height:18px;width:18px;overflow:hidden;background:url(editor-sprite.gif) no-repeat 30px 30px;}.yui-skin-sam .yui-toolbar-container .yui-button-selected span.yui-toolbar-icon,.yui-skin-sam .yui-toolbar-container .yui-button-hover span.yui-toolbar-icon{background-image:url(editor-sprite-active.gif);}.yui-skin-sam .yui-toolbar-container .visible .yuimenuitemlabel{cursor:pointer;color:#000;*position:relative;}.yui-skin-sam .yui-toolbar-container .yui-button-menu{background-color:#fff;}.yui-skin-sam .yui-toolbar-container .yui-button-menu .yui-menu-body-scrolled{position:relative;}.yui-skin-sam div.yuimenu li.selected{background-color:#B3D4FF;}.yui-skin-sam div.yuimenu li.selected a.selected{color:#000;}.yui-skin-sam .yui-toolbar-container .yui-toolbar-bold span.yui-toolbar-icon{background-position:0 0;left:5px;}.yui-skin-sam .yui-toolbar-container .yui-toolbar-strikethrough span.yui-toolbar-icon{background-position:0 -108px;left:5px;}.yui-skin-sam .yui-toolbar-container .yui-toolbar-italic span.yui-toolbar-icon{background-position:0 -36px;left:5px;}.yui-skin-sam .yui-toolbar-container .yui-toolbar-undo span.yui-toolbar-icon{background-position:0 -1326px;left:5px;}.yui-skin-sam .yui-toolbar-container .yui-toolbar-redo span.yui-toolbar-icon{background-position:0 -1355px;left:5px;}.yui-skin-sam .yui-toolbar-container .yui-toolbar-underline span.yui-toolbar-icon{background-position:0 -72px;left:5px;}.yui-skin-sam .yui-toolbar-container .yui-toolbar-subscript span.yui-toolbar-icon{background-position:0 -180px;left:5px;}.yui-skin-sam .yui-toolbar-container .yui-toolbar-superscript span.yui-toolbar-icon{background-position:0 -144px;left:5px;}.yui-skin-sam .yui-toolbar-container .yui-toolbar-forecolor span.yui-toolbar-icon{background-position:0 -216px;left:5px;}.yui-skin-sam .yui-toolbar-container .yui-toolbar-backcolor span.yui-toolbar-icon{background-position:0 -288px;left:5px;}.yui-skin-sam .yui-toolbar-container .yui-toolbar-justifyleft span.yui-toolbar-icon{background-position:0 -324px;left:5px;}.yui-skin-sam .yui-toolbar-container .yui-toolbar-justifycenter span.yui-toolbar-icon{background-position:0 -360px;left:5px;}.yui-skin-sam .yui-toolbar-container .yui-toolbar-justifyright span.yui-toolbar-icon{background-position:0 -396px;left:5px;}.yui-skin-sam .yui-toolbar-container .yui-toolbar-justifyfull span.yui-toolbar-icon{background-position:0 -432px;left:5px;}.yui-skin-sam .yui-toolbar-container .yui-toolbar-indent span.yui-toolbar-icon{background-position:0 -720px;left:5px;}.yui-skin-sam .yui-toolbar-container .yui-toolbar-outdent span.yui-toolbar-icon{background-position:0 -684px;left:5px;}.yui-skin-sam .yui-toolbar-container .yui-toolbar-createlink span.yui-toolbar-icon{background-position:0 -792px;left:5px;}.yui-skin-sam .yui-toolbar-container .yui-toolbar-insertimage span.yui-toolbar-icon{background-position:1px -756px;left:5px;}.yui-skin-sam .yui-toolbar-container .yui-toolbar-left span.yui-toolbar-icon{background-position:0 -972px;left:5px;}.yui-skin-sam .yui-toolbar-container .yui-toolbar-right span.yui-toolbar-icon{background-position:0 -936px;left:5px;}.yui-skin-sam .yui-toolbar-container .yui-toolbar-inline span.yui-toolbar-icon{background-position:0 -900px;left:5px;}
-.yui-skin-sam .yui-toolbar-container .yui-toolbar-block span.yui-toolbar-icon{background-position:0 -864px;left:5px;}.yui-skin-sam .yui-toolbar-container .yui-toolbar-bordercolor span.yui-toolbar-icon{background-position:0 -252px;left:5px;}.yui-skin-sam .yui-toolbar-container .yui-toolbar-removeformat span.yui-toolbar-icon{background-position:0 -1080px;left:5px;}.yui-skin-sam .yui-toolbar-container .yui-toolbar-hiddenelements span.yui-toolbar-icon{background-position:0 -1044px;left:5px;}.yui-skin-sam .yui-toolbar-container .yui-toolbar-insertunorderedlist span.yui-toolbar-icon{background-position:0 -468px;left:5px;}.yui-skin-sam .yui-toolbar-container .yui-toolbar-insertorderedlist span.yui-toolbar-icon{background-position:0 -504px;left:5px;}.yui-skin-sam .yui-toolbar-container .yui-toolbar-spinbutton,.yui-skin-sam .yui-toolbar-container .yui-toolbar-spinbutton .first-child{width:35px;}.yui-skin-sam .yui-toolbar-container .yui-toolbar-spinbutton .first-child a{padding-left:2px;text-align:left;}.yui-skin-sam .yui-toolbar-container .yui-toolbar-spinbutton span.yui-toolbar-icon{display:none;}.yui-skin-sam .yui-toolbar-container .yui-toolbar-spinbutton a.up,.yui-skin-sam .yui-toolbar-container .yui-toolbar-spinbutton a.down{right:2px;background:url(editor-sprite.gif) no-repeat 0 -1222px;overflow:hidden;height:6px;width:7px;min-height:0;padding:0;}.yui-skin-sam .yui-toolbar-container .yui-toolbar-spinbutton a.up{top:2px;background-position:0 -1222px;}.yui-skin-sam .yui-toolbar-container .yui-toolbar-spinbutton a.down{bottom:2px;background-position:0 -1187px;}.yui-skin-sam .yui-toolbar-container select{height:22px;border:1px solid #808080;}.yui-skin-sam .yui-toolbar-container .yui-toolbar-select .first-child a{padding-left:5px;text-align:left;}.yui-skin-sam .yui-toolbar-container .yui-toolbar-select span.yui-toolbar-icon{background:url(editor-sprite.gif) no-repeat 0 -1144px;overflow:hidden;right:-2px;top:0;height:20px;}.yui-skin-sam .yui-editor-panel .yui-color-button-menu .bd{background-color:transparent;border:none;width:135px;}.yui-skin-sam .yui-color-button-menu .yui-toolbar-colors{border:1px solid #808080;}.yui-skin-sam .yui-editor-panel{padding:0;margin:0;border:none;background-color:transparent;overflow:visible;position:absolute;}.yui-skin-sam .yui-editor-panel .hd{margin:10px 0 0;padding:0;border:none;}.yui-skin-sam .yui-editor-panel .hd h3{color:#000;border:1px solid #808080;background:url(sprite.png) repeat-x 0 -200px;width:99%;position:relative;margin:0;padding:3px 0 0 0;font-size:93%;text-indent:5px;height:20px;}.yui-skin-sam .yui-editor-panel .bd{background-color:#F2F2F2;border-left:1px solid #808080;border-right:1px solid #808080;width:99%;margin:0;padding:0;overflow:visible;}.yui-skin-sam .yui-editor-panel ul{list-style-type:none;margin:0;padding:0;}.yui-skin-sam .yui-editor-panel ul li{margin:0;padding:0;}.yui-skin-sam .yui-editor-panel .yui-toolbar-container .yui-toolbar-subcont{padding:0;border:none;margin-top:.35em;}.yui-skin-sam .yui-editor-panel .yui-toolbar-bordersize,.yui-skin-sam .yui-editor-panel .yui-toolbar-bordertype{width:50px;}.yui-skin-sam .yui-editor-panel label{display:block;float:none;padding:4px 0;margin-bottom:7px;}.yui-skin-sam .yui-editor-panel label strong{font-weight:normal;font-size:93%;text-align:right;padding-top:2px;}.yui-skin-sam .yui-editor-panel label input{width:75%;}.yui-skin-sam .yui-editor-panel .createlink_target,.yui-skin-sam .yui-editor-panel .insertimage_target{width:auto;margin-right:5px;}.yui-skin-sam .yui-editor-panel .removeLink{width:98%;}.yui-skin-sam .yui-editor-panel label input.warning{background-color:#FFEE69;}.yui-skin-sam .yui-editor-panel .yui-toolbar-group h3{color:#000;float:left;font-weight:normal;font-size:93%;margin:5px 0 0 0;padding:0 3px 0 0;text-align:right;}.yui-skin-sam .yui-editor-panel .height-width h3{margin:3px 0 0 10px;}.yui-skin-sam .yui-editor-panel .height-width{margin:3px 0 0 35px;*margin-left:14px;width:42%;*width:44%;}.yui-skin-sam .yui-editor-panel .yui-toolbar-group-border{width:190px;}.yui-skin-sam .yui-editor-panel .no-button .yui-toolbar-group-border{width:210px;}.yui-skin-sam .yui-editor-panel .yui-toolbar-group-padding{width:203px;_width:198px;}.yui-skin-sam .yui-editor-panel .no-button .yui-toolbar-group-padding{width:172px;}.yui-skin-sam .yui-editor-panel .yui-toolbar-group-padding h3{margin-left:25px;*margin-left:12px;}.yui-skin-sam .yui-editor-panel .yui-toolbar-group-textflow{width:182px;}.yui-skin-sam .yui-editor-panel .hd{background:none;}.yui-skin-sam .yui-editor-panel .ft{background-color:#F2F2F2;border:1px solid #808080;border-top:none;padding:0;margin:0 0 2px 0;}.yui-skin-sam .yui-editor-panel .hd span.close{background:url(sprite.png) no-repeat 0 -300px;cursor:pointer;display:block;height:16px;overflow:hidden;position:absolute;right:5px;text-indent:500px;top:2px;width:26px;}.yui-skin-sam .yui-editor-panel .ft span.tip{background-color:#EDF5FF;border-top:1px solid #808080;font-size:85%;}.yui-skin-sam .yui-editor-panel .ft span.tip strong{display:block;float:left;margin:0 2px 8px 0;}.yui-skin-sam .yui-editor-panel .ft span.tip span.icon{background:url(editor-sprite.gif) no-repeat 0 -1260px;display:block;height:20px;left:2px;position:absolute;top:8px;width:20px;}.yui-skin-sam .yui-editor-panel .ft span.tip span.icon-info{background-position:2px -1260px;}.yui-skin-sam .yui-editor-panel .ft span.tip span.icon-warn{background-position:2px -1296px;}.yui-skin-sam .yui-editor-panel .hd span.knob{position:absolute;height:10px;width:28px;top:-10px;left:25px;text-indent:9999px;overflow:hidden;background:url(editor-knob.gif) no-repeat 0 0;}.yui-skin-sam .yui-editor-panel .yui-toolbar-container{float:left;width:100%;background-image:none;border:none;}.yui-skin-sam .yui-editor-panel .yui-toolbar-container .bd{background-color:#fff;}.yui-editor-blankimage{background-image:url(blankimage.png);}.yui-skin-sam .yui-editor-container .yui-resize-handle-br{height:11px;width:11px;background-position:-20px -60px;background-color:transparent;}
diff --git a/koha-tmpl/intranet-tmpl/prog/en/lib/yui/assets/skins/sam/skin.css b/koha-tmpl/intranet-tmpl/prog/en/lib/yui/assets/skins/sam/skin.css
deleted file mode 100644 (file)
index 5d546a6..0000000
+++ /dev/null
@@ -1,36 +0,0 @@
-/*
-Copyright (c) 2009, Yahoo! Inc. All rights reserved.
-Code licensed under the BSD License:
-http://developer.yahoo.net/yui/license.txt
-version: 2.8.0r4
-*/
-.yui-skin-sam .yui-ac{position:relative;font-family:arial;font-size:100%;}.yui-skin-sam .yui-ac-input{position:absolute;width:100%;}.yui-skin-sam .yui-ac-container{position:absolute;top:1.6em;width:100%;}.yui-skin-sam .yui-ac-content{position:absolute;width:100%;border:1px solid #808080;background:#fff;overflow:hidden;z-index:9050;}.yui-skin-sam .yui-ac-shadow{position:absolute;margin:.3em;width:100%;background:#000;-moz-opacity:.10;opacity:.10;filter:alpha(opacity=10);z-index:9049;}.yui-skin-sam .yui-ac iframe{opacity:0;filter:alpha(opacity=0);padding-right:.3em;padding-bottom:.3em;}.yui-skin-sam .yui-ac-content ul{margin:0;padding:0;width:100%;}.yui-skin-sam .yui-ac-content li{margin:0;padding:2px 5px;cursor:default;white-space:nowrap;list-style:none;zoom:1;}.yui-skin-sam .yui-ac-content li.yui-ac-prehighlight{background:#B3D4FF;}.yui-skin-sam .yui-ac-content li.yui-ac-highlight{background:#426FD9;color:#FFF;}
-.yui-button{display:-moz-inline-box;display:inline-block;vertical-align:text-bottom;}.yui-button .first-child{display:block;*display:inline-block;}.yui-button button,.yui-button a{display:block;*display:inline-block;border:none;margin:0;}.yui-button button{background-color:transparent;*overflow:visible;cursor:pointer;}.yui-button a{text-decoration:none;}.yui-skin-sam .yui-button{border-width:1px 0;border-style:solid;border-color:#808080;background:url(sprite.png) repeat-x 0 0;margin:auto .25em;}.yui-skin-sam .yui-button .first-child{border-width:0 1px;border-style:solid;border-color:#808080;margin:0 -1px;_margin:0;}.yui-skin-sam .yui-button button,.yui-skin-sam .yui-button a,.yui-skin-sam .yui-button a:visited{padding:0 10px;font-size:93%;line-height:2;*line-height:1.7;min-height:2em;*min-height:auto;color:#000;}.yui-skin-sam .yui-button a{*line-height:1.875;*padding-bottom:1px;}.yui-skin-sam .yui-split-button button,.yui-skin-sam .yui-menu-button button{padding-right:20px;background-position:right center;background-repeat:no-repeat;}.yui-skin-sam .yui-menu-button button{background-image:url(menu-button-arrow.png);}.yui-skin-sam .yui-split-button button{background-image:url(split-button-arrow.png);}.yui-skin-sam .yui-button-focus{border-color:#7D98B8;background-position:0 -1300px;}.yui-skin-sam .yui-button-focus .first-child{border-color:#7D98B8;}.yui-skin-sam .yui-split-button-focus button{background-image:url(split-button-arrow-focus.png);}.yui-skin-sam .yui-button-hover{border-color:#7D98B8;background-position:0 -1300px;}.yui-skin-sam .yui-button-hover .first-child{border-color:#7D98B8;}.yui-skin-sam .yui-split-button-hover button{background-image:url(split-button-arrow-hover.png);}.yui-skin-sam .yui-button-active{border-color:#7D98B8;background-position:0 -1700px;}.yui-skin-sam .yui-button-active .first-child{border-color:#7D98B8;}.yui-skin-sam .yui-split-button-activeoption{border-color:#808080;background-position:0 0;}.yui-skin-sam .yui-split-button-activeoption .first-child{border-color:#808080;}.yui-skin-sam .yui-split-button-activeoption button{background-image:url(split-button-arrow-active.png);}.yui-skin-sam .yui-radio-button-checked,.yui-skin-sam .yui-checkbox-button-checked{border-color:#304369;background-position:0 -1400px;}.yui-skin-sam .yui-radio-button-checked .first-child,.yui-skin-sam .yui-checkbox-button-checked .first-child{border-color:#304369;}.yui-skin-sam .yui-radio-button-checked button,.yui-skin-sam .yui-checkbox-button-checked button{color:#fff;}.yui-skin-sam .yui-button-disabled{border-color:#ccc;background-position:0 -1500px;}.yui-skin-sam .yui-button-disabled .first-child{border-color:#ccc;}.yui-skin-sam .yui-button-disabled button,.yui-skin-sam .yui-button-disabled a,.yui-skin-sam .yui-button-disabled a:visited{color:#A6A6A6;cursor:default;}.yui-skin-sam .yui-menu-button-disabled button{background-image:url(menu-button-arrow-disabled.png);}.yui-skin-sam .yui-split-button-disabled button{background-image:url(split-button-arrow-disabled.png);}
-.yui-calcontainer{position:relative;float:left;_overflow:hidden;}.yui-calcontainer iframe{position:absolute;border:none;margin:0;padding:0;z-index:0;width:100%;height:100%;left:0;top:0;}.yui-calcontainer iframe.fixedsize{width:50em;height:50em;top:-1px;left:-1px;}.yui-calcontainer.multi .groupcal{z-index:1;float:left;position:relative;}.yui-calcontainer .title{position:relative;z-index:1;}.yui-calcontainer .close-icon{position:absolute;z-index:1;text-indent:-10000em;overflow:hidden;}.yui-calendar{position:relative;}.yui-calendar .calnavleft{position:absolute;z-index:1;text-indent:-10000em;overflow:hidden;}.yui-calendar .calnavright{position:absolute;z-index:1;text-indent:-10000em;overflow:hidden;}.yui-calendar .calheader{position:relative;width:100%;text-align:center;}.yui-calcontainer .yui-cal-nav-mask{position:absolute;z-index:2;margin:0;padding:0;width:100%;height:100%;_width:0;_height:0;left:0;top:0;display:none;}.yui-calcontainer .yui-cal-nav{position:absolute;z-index:3;top:0;display:none;}.yui-calcontainer .yui-cal-nav .yui-cal-nav-btn{display:-moz-inline-box;display:inline-block;}.yui-calcontainer .yui-cal-nav .yui-cal-nav-btn button{display:block;*display:inline-block;*overflow:visible;border:none;background-color:transparent;cursor:pointer;}.yui-calendar .calbody a:hover{background:inherit;}p#clear{clear:left;padding-top:10px;}.yui-skin-sam .yui-calcontainer{background-color:#f2f2f2;border:1px solid #808080;padding:10px;}.yui-skin-sam .yui-calcontainer.multi{padding:0 5px 0 5px;}.yui-skin-sam .yui-calcontainer.multi .groupcal{background-color:transparent;border:none;padding:10px 5px 10px 5px;margin:0;}.yui-skin-sam .yui-calcontainer .title{background:url(sprite.png) repeat-x 0 0;border-bottom:1px solid #ccc;font:100% sans-serif;color:#000;font-weight:bold;height:auto;padding:.4em;margin:0 -10px 10px -10px;top:0;left:0;text-align:left;}.yui-skin-sam .yui-calcontainer.multi .title{margin:0 -5px 0 -5px;}.yui-skin-sam .yui-calcontainer.withtitle{padding-top:0;}.yui-skin-sam .yui-calcontainer .calclose{background:url(sprite.png) no-repeat 0 -300px;width:25px;height:15px;top:.4em;right:.4em;cursor:pointer;}.yui-skin-sam .yui-calendar{border-spacing:0;border-collapse:collapse;font:100% sans-serif;text-align:center;margin:0;}.yui-skin-sam .yui-calendar .calhead{background:transparent;border:none;vertical-align:middle;padding:0;}.yui-skin-sam .yui-calendar .calheader{background:transparent;font-weight:bold;padding:0 0 .6em 0;text-align:center;}.yui-skin-sam .yui-calendar .calheader img{border:none;}.yui-skin-sam .yui-calendar .calnavleft{background:url(sprite.png) no-repeat 0 -450px;width:25px;height:15px;top:0;bottom:0;left:-10px;margin-left:.4em;cursor:pointer;}.yui-skin-sam .yui-calendar .calnavright{background:url(sprite.png) no-repeat 0 -500px;width:25px;height:15px;top:0;bottom:0;right:-10px;margin-right:.4em;cursor:pointer;}.yui-skin-sam .yui-calendar .calweekdayrow{height:2em;}.yui-skin-sam .yui-calendar .calweekdayrow th{padding:0;border:none;}.yui-skin-sam .yui-calendar .calweekdaycell{color:#000;font-weight:bold;text-align:center;width:2em;}.yui-skin-sam .yui-calendar .calfoot{background-color:#f2f2f2;}.yui-skin-sam .yui-calendar .calrowhead,.yui-skin-sam .yui-calendar .calrowfoot{color:#a6a6a6;font-size:85%;font-style:normal;font-weight:normal;border:none;}.yui-skin-sam .yui-calendar .calrowhead{text-align:right;padding:0 2px 0 0;}.yui-skin-sam .yui-calendar .calrowfoot{text-align:left;padding:0 0 0 2px;}.yui-skin-sam .yui-calendar td.calcell{border:1px solid #ccc;background:#fff;padding:1px;height:1.6em;line-height:1.6em;text-align:center;white-space:nowrap;}.yui-skin-sam .yui-calendar td.calcell a{color:#06c;display:block;height:100%;text-decoration:none;}.yui-skin-sam .yui-calendar td.calcell.today{background-color:#000;}.yui-skin-sam .yui-calendar td.calcell.today a{background-color:#fff;}.yui-skin-sam .yui-calendar td.calcell.oom{background-color:#ccc;color:#a6a6a6;cursor:default;}.yui-skin-sam .yui-calendar td.calcell.selected{background-color:#fff;color:#000;}.yui-skin-sam .yui-calendar td.calcell.selected a{background-color:#b3d4ff;color:#000;}.yui-skin-sam .yui-calendar td.calcell.calcellhover{background-color:#426fd9;color:#fff;cursor:pointer;}.yui-skin-sam .yui-calendar td.calcell.calcellhover a{background-color:#426fd9;color:#fff;}.yui-skin-sam .yui-calendar td.calcell.previous{color:#e0e0e0;}.yui-skin-sam .yui-calendar td.calcell.restricted{text-decoration:line-through;}.yui-skin-sam .yui-calendar td.calcell.highlight1{background-color:#cf9;}.yui-skin-sam .yui-calendar td.calcell.highlight2{background-color:#9cf;}.yui-skin-sam .yui-calendar td.calcell.highlight3{background-color:#fcc;}.yui-skin-sam .yui-calendar td.calcell.highlight4{background-color:#cf9;}.yui-skin-sam .yui-calendar a.calnav{border:1px solid #f2f2f2;padding:0 4px;text-decoration:none;color:#000;zoom:1;}.yui-skin-sam .yui-calendar a.calnav:hover{background:url(sprite.png) repeat-x 0 0;border-color:#A0A0A0;cursor:pointer;}.yui-skin-sam .yui-calcontainer .yui-cal-nav-mask{background-color:#000;opacity:.25;filter:alpha(opacity=25);}.yui-skin-sam .yui-calcontainer .yui-cal-nav{font-family:arial,helvetica,clean,sans-serif;font-size:93%;border:1px solid #808080;left:50%;margin-left:-7em;width:14em;padding:0;top:2.5em;background-color:#f2f2f2;}.yui-skin-sam .yui-calcontainer.withtitle .yui-cal-nav{top:4.5em;}.yui-skin-sam .yui-calcontainer.multi .yui-cal-nav{width:16em;margin-left:-8em;}.yui-skin-sam .yui-calcontainer .yui-cal-nav-y,.yui-skin-sam .yui-calcontainer .yui-cal-nav-m,.yui-skin-sam .yui-calcontainer .yui-cal-nav-b{padding:5px 10px 5px 10px;}.yui-skin-sam .yui-calcontainer .yui-cal-nav-b{text-align:center;}.yui-skin-sam .yui-calcontainer .yui-cal-nav-e{margin-top:5px;padding:5px;background-color:#EDF5FF;border-top:1px solid black;display:none;}.yui-skin-sam .yui-calcontainer .yui-cal-nav label{display:block;font-weight:bold;}
-.yui-skin-sam .yui-calcontainer .yui-cal-nav-mc{width:100%;_width:auto;}.yui-skin-sam .yui-calcontainer .yui-cal-nav-y input.yui-invalid{background-color:#FFEE69;border:1px solid #000;}.yui-skin-sam .yui-calcontainer .yui-cal-nav-yc{width:4em;}.yui-skin-sam .yui-calcontainer .yui-cal-nav .yui-cal-nav-btn{border:1px solid #808080;background:url(sprite.png) repeat-x 0 0;background-color:#ccc;margin:auto .15em;}.yui-skin-sam .yui-calcontainer .yui-cal-nav .yui-cal-nav-btn button{padding:0 8px;font-size:93%;line-height:2;*line-height:1.7;min-height:2em;*min-height:auto;color:#000;}.yui-skin-sam .yui-calcontainer .yui-cal-nav .yui-cal-nav-btn.yui-default{border:1px solid #304369;background-color:#426fd9;background:url(sprite.png) repeat-x 0 -1400px;}.yui-skin-sam .yui-calcontainer .yui-cal-nav .yui-cal-nav-btn.yui-default button{color:#fff;}
-.yui-carousel{visibility:hidden;overflow:hidden;position:relative;text-align:left;zoom:1;}.yui-carousel.yui-carousel-visible{visibility:visible;}.yui-carousel-content{overflow:hidden;position:relative;text-align:center;}.yui-carousel-element li{border:1px solid #ccc;list-style:none;margin:1px;overflow:hidden;padding:0;position:absolute;text-align:center;}.yui-carousel-vertical .yui-carousel-element li{display:block;float:none;}.yui-log .carousel{background:#f2e886;}.yui-carousel-nav{zoom:1;}.yui-carousel-nav:after{content:".";display:block;height:0;clear:both;visibility:hidden;}.yui-carousel-button-focus{outline:1px dotted #000;}.yui-carousel-min-width{min-width:115px;}.yui-carousel-element{overflow:hidden;position:relative;margin:0 auto;padding:0;text-align:left;*margin:0;}.yui-carousel-horizontal .yui-carousel-element{width:320000px;}.yui-carousel-vertical .yui-carousel-element{height:320000px;}.yui-skin-sam .yui-carousel-nav select{position:static;}.yui-carousel .yui-carousel-item-selected{border:1px dashed #000;margin:1px;}.yui-skin-sam .yui-carousel,.yui-skin-sam .yui-carousel-vertical{border:1px solid #808080;}.yui-skin-sam .yui-carousel-nav{background:url(sprite.png) repeat-x 0 0;padding:3px;text-align:right;}.yui-skin-sam .yui-carousel-button{background:url(sprite.png) no-repeat 0 -600px;float:right;height:19px;margin:5px;overflow:hidden;width:40px;}.yui-skin-sam .yui-carousel-vertical .yui-carousel-button{background-position:0 -800px;}.yui-skin-sam .yui-carousel-button-disabled{background-position:0 -2000px;}.yui-skin-sam .yui-carousel-vertical .yui-carousel-button-disabled{background-position:0 -2100px;}.yui-skin-sam .yui-carousel-button input,.yui-skin-sam .yui-carousel-button button{background-color:transparent;border:0;cursor:pointer;display:block;height:44px;margin:-2px 0 0 -2px;padding:0 0 0 50px;}.yui-skin-sam span.yui-carousel-first-button{background-position:0 -550px;margin-left:-100px;margin-right:50px;*margin:5px 5px 5px -90px;}.yui-skin-sam .yui-carousel-vertical span.yui-carousel-first-button{background-position:0 -750px;}.yui-skin-sam span.yui-carousel-first-button-disabled{background-position:0 -1950px;}.yui-skin-sam .yui-carousel-vertical span.yui-carousel-first-button-disabled{background-position:0 -2050px;}.yui-skin-sam .yui-carousel-nav ul{float:right;height:19px;margin:0;margin-left:-220px;margin-right:100px;*margin-left:-160px;*margin-right:0;padding:0;}.yui-skin-sam .yui-carousel-min-width .yui-carousel-nav ul{*margin-left:-170px;}.yui-skin-sam .yui-carousel-nav select{position:relative;*right:50px;top:4px;}.yui-skin-sam .yui-carousel-vertical .yui-carousel-nav select{position:static;}.yui-skin-sam .yui-carousel-vertical .yui-carousel-nav ul,.yui-skin-sam .yui-carousel-vertical .yui-carousel-nav select{float:none;margin:0;*zoom:1;}.yui-skin-sam .yui-carousel-nav ul li{background:url(sprite.png) no-repeat 0 -650px;cursor:pointer;float:left;height:9px;list-style:none;margin:10px 0 0 5px;overflow:hidden;padding:0;width:9px;}.yui-skin-sam .yui-carousel-nav ul:after{content:".";display:block;height:0;clear:both;visibility:hidden;}.yui-skin-sam .yui-carousel-nav ul li a{display:block;width:100%;height:100%;text-indent:-10000px;text-align:left;overflow:hidden;}.yui-skin-sam .yui-carousel-nav ul li.yui-carousel-nav-page-focus{outline:1px dotted #000;}.yui-skin-sam .yui-carousel-nav ul li.yui-carousel-nav-page-selected{background-position:0 -700px;}.yui-skin-sam .yui-carousel-item-loading{background:url(ajax-loader.gif) no-repeat 50% 50%;position:absolute;text-indent:-150px;}
-.yui-picker-panel{background:#e3e3e3;border-color:#888;}.yui-picker-panel .hd{background-color:#ccc;font-size:100%;line-height:100%;border:1px solid #e3e3e3;font-weight:bold;overflow:hidden;padding:6px;color:#000;}.yui-picker-panel .bd{background:#e8e8e8;margin:1px;height:200px;}.yui-picker-panel .ft{background:#e8e8e8;margin:1px;padding:1px;}.yui-picker{position:relative;}.yui-picker-hue-thumb{cursor:default;width:18px;height:18px;top:-8px;left:-2px;z-index:9;position:absolute;}.yui-picker-hue-bg{-moz-outline:none;outline:0 none;position:absolute;left:200px;height:183px;width:14px;background:url(hue_bg.png) no-repeat;top:4px;}.yui-picker-bg{-moz-outline:none;outline:0 none;position:absolute;top:4px;left:4px;height:182px;width:182px;background-color:#F00;background-image:url(picker_mask.png);}*html .yui-picker-bg{background-image:none;filter:progid:DXImageTransform.Microsoft.AlphaImageLoader(src='../../build/colorpicker/assets/picker_mask.png',sizingMethod='scale');}.yui-picker-mask{position:absolute;z-index:1;top:0;left:0;}.yui-picker-thumb{cursor:default;width:11px;height:11px;z-index:9;position:absolute;top:-4px;left:-4px;}.yui-picker-swatch{position:absolute;left:240px;top:4px;height:60px;width:55px;border:1px solid #888;}.yui-picker-websafe-swatch{position:absolute;left:304px;top:4px;height:24px;width:24px;border:1px solid #888;}.yui-picker-controls{position:absolute;top:72px;left:226px;font:1em monospace;}.yui-picker-controls .hd{background:transparent;border-width:0!important;}.yui-picker-controls .bd{height:100px;border-width:0!important;}.yui-picker-controls ul{float:left;padding:0 2px 0 0;margin:0;}.yui-picker-controls li{padding:2px;list-style:none;margin:0;}.yui-picker-controls input{font-size:.85em;width:2.4em;}.yui-picker-hex-controls{clear:both;padding:2px;}.yui-picker-hex-controls input{width:4.6em;}.yui-picker-controls a{font:1em arial,helvetica,clean,sans-serif;display:block;*display:inline-block;padding:0;color:#000;}
-.yui-overlay,.yui-panel-container{visibility:hidden;position:absolute;z-index:2;}.yui-panel{position:relative;}.yui-panel-container form{margin:0;}.mask{z-index:1;display:none;position:absolute;top:0;left:0;right:0;bottom:0;}.mask.block-scrollbars{overflow:auto;}.masked select,.drag select,.hide-select select{_visibility:hidden;}.yui-panel-container select{_visibility:inherit;}.hide-scrollbars,.hide-scrollbars *{overflow:hidden;}.hide-scrollbars select{display:none;}.show-scrollbars{overflow:auto;}.yui-panel-container.show-scrollbars,.yui-tt.show-scrollbars{overflow:visible;}.yui-panel-container.show-scrollbars .underlay,.yui-tt.show-scrollbars .yui-tt-shadow{overflow:auto;}.yui-panel-container.shadow .underlay.yui-force-redraw{padding-bottom:1px;}.yui-effect-fade .underlay,.yui-effect-fade .yui-tt-shadow{display:none;}.yui-tt-shadow{position:absolute;}.yui-override-padding{padding:0!important;}.yui-panel-container .container-close{overflow:hidden;text-indent:-10000em;text-decoration:none;}.yui-overlay.yui-force-redraw,.yui-panel-container.yui-force-redraw{margin-bottom:1px;}.yui-skin-sam .mask{background-color:#000;opacity:.25;filter:alpha(opacity=25);}.yui-skin-sam .yui-panel-container{padding:0 1px;*padding:2px;}.yui-skin-sam .yui-panel{position:relative;left:0;top:0;border-style:solid;border-width:1px 0;border-color:#808080;z-index:1;*border-width:1px;*zoom:1;_zoom:normal;}.yui-skin-sam .yui-panel .hd,.yui-skin-sam .yui-panel .bd,.yui-skin-sam .yui-panel .ft{border-style:solid;border-width:0 1px;border-color:#808080;margin:0 -1px;*margin:0;*border:0;}.yui-skin-sam .yui-panel .hd{border-bottom:solid 1px #ccc;}.yui-skin-sam .yui-panel .bd,.yui-skin-sam .yui-panel .ft{background-color:#F2F2F2;}.yui-skin-sam .yui-panel .hd{padding:0 10px;font-size:93%;line-height:2;*line-height:1.9;font-weight:bold;color:#000;background:url(sprite.png) repeat-x 0 -200px;}.yui-skin-sam .yui-panel .bd{padding:10px;}.yui-skin-sam .yui-panel .ft{border-top:solid 1px #808080;padding:5px 10px;font-size:77%;}.yui-skin-sam .container-close{position:absolute;top:5px;right:6px;width:25px;height:15px;background:url(sprite.png) no-repeat 0 -300px;cursor:pointer;}.yui-skin-sam .yui-panel-container .underlay{right:-1px;left:-1px;}.yui-skin-sam .yui-panel-container.matte{padding:9px 10px;background-color:#fff;}.yui-skin-sam .yui-panel-container.shadow{_padding:2px 4px 0 2px;}.yui-skin-sam .yui-panel-container.shadow .underlay{position:absolute;top:2px;left:-3px;right:-3px;bottom:-3px;*top:4px;*left:-1px;*right:-1px;*bottom:-1px;_top:0;_left:0;_right:0;_bottom:0;_margin-top:3px;_margin-left:-1px;background-color:#000;opacity:.12;filter:alpha(opacity=12);}.yui-skin-sam .yui-dialog .ft{border-top:none;padding:0 10px 10px 10px;font-size:100%;}.yui-skin-sam .yui-dialog .ft .button-group{display:block;text-align:right;}.yui-skin-sam .yui-dialog .ft button.default{font-weight:bold;}.yui-skin-sam .yui-dialog .ft span.default{border-color:#304369;background-position:0 -1400px;}.yui-skin-sam .yui-dialog .ft span.default .first-child{border-color:#304369;}.yui-skin-sam .yui-dialog .ft span.default button{color:#fff;}.yui-skin-sam .yui-dialog .ft span.yui-button-disabled{background-position:0 -1500px;border-color:#ccc;}.yui-skin-sam .yui-dialog .ft span.yui-button-disabled .first-child{border-color:#ccc;}.yui-skin-sam .yui-dialog .ft span.yui-button-disabled button{color:#a6a6a6;}.yui-skin-sam .yui-simple-dialog .bd .yui-icon{background:url(sprite.png) no-repeat 0 0;width:16px;height:16px;margin-right:10px;float:left;}.yui-skin-sam .yui-simple-dialog .bd span.blckicon{background-position:0 -1100px;}.yui-skin-sam .yui-simple-dialog .bd span.alrticon{background-position:0 -1050px;}.yui-skin-sam .yui-simple-dialog .bd span.hlpicon{background-position:0 -1150px;}.yui-skin-sam .yui-simple-dialog .bd span.infoicon{background-position:0 -1200px;}.yui-skin-sam .yui-simple-dialog .bd span.warnicon{background-position:0 -1900px;}.yui-skin-sam .yui-simple-dialog .bd span.tipicon{background-position:0 -1250px;}.yui-skin-sam .yui-tt .bd{position:relative;top:0;left:0;z-index:1;color:#000;padding:2px 5px;border-color:#D4C237 #A6982B #A6982B #A6982B;border-width:1px;border-style:solid;background-color:#FFEE69;}.yui-skin-sam .yui-tt.show-scrollbars .bd{overflow:auto;}.yui-skin-sam .yui-tt-shadow{top:2px;right:-3px;left:-3px;bottom:-3px;background-color:#000;}.yui-skin-sam .yui-tt-shadow-visible{opacity:.12;filter:alpha(opacity=12);}
-.yui-skin-sam .yui-dt-mask{position:absolute;z-index:9500;}.yui-dt-tmp{position:absolute;left:-9000px;}.yui-dt-scrollable .yui-dt-bd{overflow:auto;}.yui-dt-scrollable .yui-dt-hd{overflow:hidden;position:relative;}.yui-dt-scrollable .yui-dt-bd thead tr,.yui-dt-scrollable .yui-dt-bd thead th{position:absolute;left:-1500px;}.yui-dt-scrollable tbody{-moz-outline:none;}.yui-skin-sam thead .yui-dt-sortable{cursor:pointer;}.yui-skin-sam thead .yui-dt-draggable{cursor:move;}.yui-dt-coltarget{position:absolute;z-index:999;}.yui-dt-hd{zoom:1;}th.yui-dt-resizeable .yui-dt-resizerliner{position:relative;}.yui-dt-resizer{position:absolute;right:0;bottom:0;height:100%;cursor:e-resize;cursor:col-resize;background-color:#CCC;opacity:0;filter:alpha(opacity=0);}.yui-dt-resizerproxy{visibility:hidden;position:absolute;z-index:9000;background-color:#CCC;opacity:0;filter:alpha(opacity=0);}th.yui-dt-hidden .yui-dt-liner,td.yui-dt-hidden .yui-dt-liner,th.yui-dt-hidden .yui-dt-resizer{display:none;}.yui-dt-editor{position:absolute;z-index:9000;}.yui-skin-sam .yui-dt table{margin:0;padding:0;font-family:arial;font-size:inherit;border-collapse:separate;*border-collapse:collapse;border-spacing:0;border:1px solid #7F7F7F;}.yui-skin-sam .yui-dt thead{border-spacing:0;}.yui-skin-sam .yui-dt caption{color:#000;font-size:85%;font-weight:normal;font-style:italic;line-height:1;padding:1em 0;text-align:center;}.yui-skin-sam .yui-dt th{background:#D8D8DA url(sprite.png) repeat-x 0 0;}.yui-skin-sam .yui-dt th,.yui-skin-sam .yui-dt th a{font-weight:normal;text-decoration:none;color:#000;vertical-align:bottom;}.yui-skin-sam .yui-dt th{margin:0;padding:0;border:none;border-right:1px solid #CBCBCB;}.yui-skin-sam .yui-dt tr.yui-dt-first td{border-top:1px solid #7F7F7F;}.yui-skin-sam .yui-dt th .yui-dt-liner{white-space:nowrap;}.yui-skin-sam .yui-dt-liner{margin:0;padding:0;padding:4px 10px 4px 10px;}.yui-skin-sam .yui-dt-coltarget{width:5px;background-color:red;}.yui-skin-sam .yui-dt td{margin:0;padding:0;border:none;border-right:1px solid #CBCBCB;text-align:left;}.yui-skin-sam .yui-dt-list td{border-right:none;}.yui-skin-sam .yui-dt-resizer{width:6px;}.yui-skin-sam .yui-dt-mask{background-color:#000;opacity:.25;filter:alpha(opacity=25);}.yui-skin-sam .yui-dt-message{background-color:#FFF;}.yui-skin-sam .yui-dt-scrollable table{border:none;}.yui-skin-sam .yui-dt-scrollable .yui-dt-hd{border-left:1px solid #7F7F7F;border-top:1px solid #7F7F7F;border-right:1px solid #7F7F7F;}.yui-skin-sam .yui-dt-scrollable .yui-dt-bd{border-left:1px solid #7F7F7F;border-bottom:1px solid #7F7F7F;border-right:1px solid #7F7F7F;background-color:#FFF;}.yui-skin-sam .yui-dt-scrollable .yui-dt-data tr.yui-dt-last td{border-bottom:1px solid #7F7F7F;}.yui-skin-sam th.yui-dt-asc,.yui-skin-sam th.yui-dt-desc{background:url(sprite.png) repeat-x 0 -100px;}.yui-skin-sam th.yui-dt-sortable .yui-dt-label{margin-right:10px;}.yui-skin-sam th.yui-dt-asc .yui-dt-liner{background:url(dt-arrow-up.png) no-repeat right;}.yui-skin-sam th.yui-dt-desc .yui-dt-liner{background:url(dt-arrow-dn.png) no-repeat right;}tbody .yui-dt-editable{cursor:pointer;}.yui-dt-editor{text-align:left;background-color:#F2F2F2;border:1px solid #808080;padding:6px;}.yui-dt-editor label{padding-left:4px;padding-right:6px;}.yui-dt-editor .yui-dt-button{padding-top:6px;text-align:right;}.yui-dt-editor .yui-dt-button button{background:url(sprite.png) repeat-x 0 0;border:1px solid #999;width:4em;height:1.8em;margin-left:6px;}.yui-dt-editor .yui-dt-button button.yui-dt-default{background:url(sprite.png) repeat-x 0 -1400px;background-color:#5584E0;border:1px solid #304369;color:#FFF;}.yui-dt-editor .yui-dt-button button:hover{background:url(sprite.png) repeat-x 0 -1300px;color:#000;}.yui-dt-editor .yui-dt-button button:active{background:url(sprite.png) repeat-x 0 -1700px;color:#000;}.yui-skin-sam tr.yui-dt-even{background-color:#FFF;}.yui-skin-sam tr.yui-dt-odd{background-color:#EDF5FF;}.yui-skin-sam tr.yui-dt-even td.yui-dt-asc,.yui-skin-sam tr.yui-dt-even td.yui-dt-desc{background-color:#EDF5FF;}.yui-skin-sam tr.yui-dt-odd td.yui-dt-asc,.yui-skin-sam tr.yui-dt-odd td.yui-dt-desc{background-color:#DBEAFF;}.yui-skin-sam .yui-dt-list tr.yui-dt-even{background-color:#FFF;}.yui-skin-sam .yui-dt-list tr.yui-dt-odd{background-color:#FFF;}.yui-skin-sam .yui-dt-list tr.yui-dt-even td.yui-dt-asc,.yui-skin-sam .yui-dt-list tr.yui-dt-even td.yui-dt-desc{background-color:#EDF5FF;}.yui-skin-sam .yui-dt-list tr.yui-dt-odd td.yui-dt-asc,.yui-skin-sam .yui-dt-list tr.yui-dt-odd td.yui-dt-desc{background-color:#EDF5FF;}.yui-skin-sam th.yui-dt-highlighted,.yui-skin-sam th.yui-dt-highlighted a{background-color:#B2D2FF;}.yui-skin-sam tr.yui-dt-highlighted,.yui-skin-sam tr.yui-dt-highlighted td.yui-dt-asc,.yui-skin-sam tr.yui-dt-highlighted td.yui-dt-desc,.yui-skin-sam tr.yui-dt-even td.yui-dt-highlighted,.yui-skin-sam tr.yui-dt-odd td.yui-dt-highlighted{cursor:pointer;background-color:#B2D2FF;}.yui-skin-sam .yui-dt-list th.yui-dt-highlighted,.yui-skin-sam .yui-dt-list th.yui-dt-highlighted a{background-color:#B2D2FF;}.yui-skin-sam .yui-dt-list tr.yui-dt-highlighted,.yui-skin-sam .yui-dt-list tr.yui-dt-highlighted td.yui-dt-asc,.yui-skin-sam .yui-dt-list tr.yui-dt-highlighted td.yui-dt-desc,.yui-skin-sam .yui-dt-list tr.yui-dt-even td.yui-dt-highlighted,.yui-skin-sam .yui-dt-list tr.yui-dt-odd td.yui-dt-highlighted{cursor:pointer;background-color:#B2D2FF;}.yui-skin-sam th.yui-dt-selected,.yui-skin-sam th.yui-dt-selected a{background-color:#446CD7;}.yui-skin-sam tr.yui-dt-selected td,.yui-skin-sam tr.yui-dt-selected td.yui-dt-asc,.yui-skin-sam tr.yui-dt-selected td.yui-dt-desc{background-color:#426FD9;color:#FFF;}.yui-skin-sam tr.yui-dt-even td.yui-dt-selected,.yui-skin-sam tr.yui-dt-odd td.yui-dt-selected{background-color:#446CD7;color:#FFF;}.yui-skin-sam .yui-dt-list th.yui-dt-selected,.yui-skin-sam .yui-dt-list th.yui-dt-selected a{background-color:#446CD7;}
-.yui-skin-sam .yui-dt-list tr.yui-dt-selected td,.yui-skin-sam .yui-dt-list tr.yui-dt-selected td.yui-dt-asc,.yui-skin-sam .yui-dt-list tr.yui-dt-selected td.yui-dt-desc{background-color:#426FD9;color:#FFF;}.yui-skin-sam .yui-dt-list tr.yui-dt-even td.yui-dt-selected,.yui-skin-sam .yui-dt-list tr.yui-dt-odd td.yui-dt-selected{background-color:#446CD7;color:#FFF;}.yui-skin-sam .yui-dt-paginator{display:block;margin:6px 0;white-space:nowrap;}.yui-skin-sam .yui-dt-paginator .yui-dt-first,.yui-skin-sam .yui-dt-paginator .yui-dt-last,.yui-skin-sam .yui-dt-paginator .yui-dt-selected{padding:2px 6px;}.yui-skin-sam .yui-dt-paginator a.yui-dt-first,.yui-skin-sam .yui-dt-paginator a.yui-dt-last{text-decoration:none;}.yui-skin-sam .yui-dt-paginator .yui-dt-previous,.yui-skin-sam .yui-dt-paginator .yui-dt-next{display:none;}.yui-skin-sam a.yui-dt-page{border:1px solid #CBCBCB;padding:2px 6px;text-decoration:none;background-color:#fff;}.yui-skin-sam .yui-dt-selected{border:1px solid #fff;background-color:#fff;}
-.yui-busy{cursor:wait!important;}.yui-toolbar-container fieldset,.yui-editor-container fieldset{padding:0;margin:0;border:0;}.yui-toolbar-container legend{display:none;}.yui-skin-sam .yui-toolbar-container .yui-button button,.yui-skin-sam .yui-toolbar-container .yui-button a,.yui-skin-sam .yui-toolbar-container .yui-button a:visited{font-size:0;}.yui-skin-sam .yui-toolbar-container .yui-toolbar-select button,.yui-skin-sam .yui-toolbar-container .yui-toolbar-select a,.yui-skin-sam .yui-toolbar-container .yui-toolbar-select a:visited,.yui-skin-sam .yui-toolbar-container .yui-toolbar-spinbutton button,.yui-skin-sam .yui-toolbar-container .yui-toolbar-spinbutton a,.yui-skin-sam .yui-toolbar-container .yui-toolbar-spinbutton a:visited{font-size:12px;}.yui-skin-sam .yui-toolbar-container .yui-toolbar-spinbutton a.up,.yui-skin-sam .yui-toolbar-container .yui-toolbar-spinbutton a.down{font-size:0;line-height:0;padding:0;}.yui-toolbar-container .yui-toolbar-subcont{padding:.25em 0;zoom:1;}.yui-toolbar-container-collapsed .yui-toolbar-subcont{display:none;}.yui-toolbar-container .yui-toolbar-subcont:after{display:block;clear:both;visibility:hidden;content:'.';height:0;}.yui-toolbar-container span.yui-toolbar-draghandle{cursor:move;border-left:1px solid #999;border-right:1px solid #999;overflow:hidden;text-indent:77777px;width:2px;height:20px;display:block;clear:none;float:left;margin:0 0 0 .2em;}.yui-toolbar-container .yui-toolbar-titlebar.draggable{cursor:move;}.yui-toolbar-container .yui-toolbar-titlebar{position:relative;}.yui-toolbar-container .yui-toolbar-titlebar h2{font-weight:bold;letter-spacing:0;border:none;color:#000;margin:0;padding:.2em;}.yui-toolbar-container .yui-toolbar-titlebar h2 a{text-decoration:none;color:#000;cursor:default;}.yui-toolbar-container.yui-toolbar-grouped span.yui-toolbar-draghandle{height:40px;}.yui-toolbar-container .yui-toolbar-group{float:left;margin-right:.5em;zoom:1;}.yui-toolbar-container .yui-toolbar-group:after{display:block;clear:both;visibility:hidden;content:'.';height:0;}.yui-toolbar-container .yui-toolbar-group h3{font-size:75%;padding:0 0 0 .25em;margin:0;}.yui-toolbar-container span.yui-toolbar-separator{width:2px;padding:0;height:18px;margin:.2em 0 .2em .1em;display:none;float:left;}.yui-toolbar-container.yui-toolbar-grouped span.yui-toolbar-separator{height:45px;*height:50px;}.yui-toolbar-container.yui-toolbar-grouped .yui-toolbar-group span.yui-toolbar-separator{height:18px;display:block;}.yui-toolbar-container ul li{margin:0;padding:0;list-style-type:none;}.yui-toolbar-container .yui-toolbar-nogrouplabels h3{display:none;}.yui-toolbar-container .yui-push-button,.yui-toolbar-container .yui-color-button,.yui-toolbar-container .yui-menu-button{position:relative;cursor:pointer;}.yui-toolbar-container .yui-button .first-child,.yui-toolbar-container .yui-button .first-child a{height:100%;width:100%;overflow:hidden;font-size:0;}.yui-toolbar-container .yui-button-disabled{cursor:default;}.yui-toolbar-container .yui-button-disabled .yui-toolbar-icon{opacity:.5;filter:alpha(opacity=50);}.yui-toolbar-container .yui-button-disabled .up,.yui-toolbar-container .yui-button-disabled .down{opacity:.5;filter:alpha(opacity=50);}.yui-toolbar-container .yui-button a{overflow:hidden;}.yui-toolbar-container .yui-toolbar-select .first-child a{cursor:pointer;}.yui-toolbar-fontname-arial{font-family:Arial;}.yui-toolbar-fontname-arial-black{font-family:Arial Black;}.yui-toolbar-fontname-comic-sans-ms{font-family:Comic Sans MS;}.yui-toolbar-fontname-courier-new{font-family:Courier New;}.yui-toolbar-fontname-times-new-roman{font-family:Times New Roman;}.yui-toolbar-fontname-verdana{font-family:Verdana;}.yui-toolbar-fontname-impact{font-family:Impact;}.yui-toolbar-fontname-lucida-console{font-family:Lucida Console;}.yui-toolbar-fontname-tahoma{font-family:Tahoma;}.yui-toolbar-fontname-trebuchet-ms{font-family:Trebuchet MS;}.yui-toolbar-container .yui-toolbar-spinbutton{position:relative;}.yui-toolbar-container .yui-toolbar-spinbutton .first-child a{z-index:0;opacity:1;}.yui-toolbar-container .yui-toolbar-spinbutton a.up,.yui-toolbar-container .yui-toolbar-spinbutton a.down{position:absolute;display:block;right:0;cursor:pointer;z-index:1;padding:0;margin:0;}.yui-toolbar-container .yui-overlay{position:absolute;}.yui-toolbar-container .yui-overlay ul li{margin:0;list-style-type:none;}.yui-toolbar-container{z-index:1;}.yui-editor-container .yui-editor-editable-container{position:relative;z-index:0;width:100%;}.yui-editor-container .yui-editor-masked{background-color:#CCC;height:100%;width:100%;position:absolute;top:0;left:0;opacity:.5;filter:alpha(opacity=50);}.yui-editor-container iframe{border:0;padding:0;margin:0;zoom:1;display:block;}.yui-editor-container .yui-editor-editable{padding:0;margin:0;}.yui-editor-container .dompath{font-size:85%;}.yui-editor-panel .hd{text-align:left;position:relative;}.yui-editor-panel .hd h3{font-weight:bold;padding:.25em 0 .25em .25em;margin:0;}.yui-editor-panel .bd{width:100%;zoom:1;position:relative;}.yui-editor-panel .bd div.yui-editor-body-cont{padding:.25em .1em;zoom:1;}.yui-editor-panel .bd .gecko form{overflow:auto;}.yui-editor-panel .bd div.yui-editor-body-cont:after{display:block;clear:both;visibility:hidden;content:'.';height:0;}.yui-editor-panel .ft{text-align:right;width:99%;float:left;clear:both;}.yui-editor-panel .ft span.tip{display:block;position:relative;padding:.5em .5em .5em 23px;text-align:left;zoom:1;}.yui-editor-panel label{clear:both;float:left;padding:0;width:100%;text-align:left;zoom:1;}.yui-editor-panel .gecko label{overflow:auto;}.yui-editor-panel label strong{float:left;width:6em;}.yui-editor-panel .removeLink{width:80%;text-align:right;}.yui-editor-panel label input{margin-left:.25em;float:left;}.yui-editor-panel .yui-toolbar-group{margin-bottom:.75em;}.yui-editor-panel .height-width{float:left;}.yui-editor-panel .height-width span{font-style:italic;display:block;float:left;overflow:visible;}.yui-editor-panel .height-width span.info{font-size:70%;margin-top:3px;float:none;}
-.yui-editor-panel .yui-toolbar-bordersize,.yui-editor-panel .yui-toolbar-bordertype{font-size:75%;}.yui-editor-panel .yui-toolbar-container span.yui-toolbar-separator{border:none;}.yui-editor-panel .yui-toolbar-bordersize span a span,.yui-editor-panel .yui-toolbar-bordertype span a span{display:block;height:8px;left:4px;position:absolute;top:3px;_top:-5px;width:24px;text-indent:52px;font-size:0;}.yui-editor-panel .yui-toolbar-bordertype span a span.yui-toolbar-bordertype-solid{border-bottom:1px solid black;}.yui-editor-panel .yui-toolbar-bordertype span a span.yui-toolbar-bordertype-dotted{border-bottom:1px dotted black;}.yui-editor-panel .yui-toolbar-bordertype span a span.yui-toolbar-bordertype-dashed{border-bottom:1px dashed black;}.yui-editor-panel .yui-toolbar-bordersize span a span.yui-toolbar-bordersize-0{*top:0;text-indent:0;font-size:75%;}.yui-editor-panel .yui-toolbar-bordersize span a span.yui-toolbar-bordersize-1{border-bottom:1px solid black;}.yui-editor-panel .yui-toolbar-bordersize span a span.yui-toolbar-bordersize-2{border-bottom:2px solid black;}.yui-editor-panel .yui-toolbar-bordersize span a span.yui-toolbar-bordersize-3{top:2px;*top:-5px;border-bottom:3px solid black;}.yui-editor-panel .yui-toolbar-bordersize span a span.yui-toolbar-bordersize-4{top:1px;*top:-5px;border-bottom:4px solid black;}.yui-editor-panel .yui-toolbar-bordersize span a span.yui-toolbar-bordersize-5{top:1px;*top:-5px;border-bottom:5px solid black;}.yui-toolbar-container .yui-toolbar-bordersize-menu,.yui-toolbar-container .yui-toolbar-bordertype-menu{width:95px!important;}.yui-toolbar-bordersize-menu .yuimenuitemlabel,.yui-toolbar-bordertype-menu .yuimenuitemlabel,.yui-toolbar-bordersize-menu .yuimenuitemlabel,.yui-toolbar-bordertype-menu .yuimenuitemlabel:hover{margin:0 3px 7px 17px;}.yui-toolbar-bordersize-menu .yuimenuitemlabel .checkedindicator,.yui-toolbar-bordertype-menu .yuimenuitemlabel .checkedindicator{position:absolute;left:-12px;*top:14px;*left:0;}.yui-toolbar-bordersize-menu li.yui-toolbar-bordersize-1 a{border-bottom:1px solid black;height:14px;}.yui-toolbar-bordersize-menu li.yui-toolbar-bordersize-2 a{border-bottom:2px solid black;height:14px;}.yui-toolbar-bordersize-menu li.yui-toolbar-bordersize-3 a{border-bottom:3px solid black;height:14px;}.yui-toolbar-bordersize-menu li.yui-toolbar-bordersize-4 a{border-bottom:4px solid black;height:14px;}.yui-toolbar-bordersize-menu li.yui-toolbar-bordersize-5 a{border-bottom:5px solid black;height:14px;}.yui-toolbar-bordertype-menu li.yui-toolbar-bordertype-solid a{border-bottom:1px solid black;height:14px;}.yui-toolbar-bordertype-menu li.yui-toolbar-bordertype-dashed a{border-bottom:1px dashed black;height:14px;}.yui-toolbar-bordertype-menu li.yui-toolbar-bordertype-dotted a{border-bottom:1px dotted black;height:14px;}h2.yui-editor-skipheader,h3.yui-editor-skipheader{height:0;margin:0;padding:0;border:none;width:0;overflow:hidden;position:absolute;}.yui-toolbar-colors{width:133px;zoom:1;display:none;z-index:100;overflow:hidden;}.yui-toolbar-colors:after{display:block;clear:both;visibility:hidden;content:'.';height:0;}.yui-toolbar-colors a{height:9px;width:9px;float:left;display:block;overflow:hidden;text-indent:999px;margin:0;cursor:pointer;border:1px solid #F6F7EE;}.yui-toolbar-colors a:hover{border:1px solid black;}.yui-color-button-menu{overflow:visible;background-color:transparent;}.yui-toolbar-colors span{position:relative;display:block;padding:3px;overflow:hidden;float:left;width:100%;zoom:1;}.yui-toolbar-colors span:after{display:block;clear:both;visibility:hidden;content:'.';height:0;}.yui-toolbar-colors span em{height:35px;width:30px;float:left;display:block;overflow:hidden;text-indent:999px;margin:.75px;border:1px solid black;}.yui-toolbar-colors span strong{font-weight:normal;padding-left:3px;display:block;font-size:85%;float:left;width:65%;}.yui-toolbar-group-undoredo h3,.yui-toolbar-group-insertitem h3,.yui-toolbar-group-indentlist h3{width:68px;}.yui-toolbar-group-indentlist2 h3{width:122px;}.yui-toolbar-group-alignment h3{width:130px;}.yui-skin-sam .yui-editor-container{border:1px solid #808080;}.yui-skin-sam .yui-toolbar-container{zoom:1;}.yui-skin-sam .yui-toolbar-container .yui-toolbar-titlebar{background:url(sprite.png) repeat-x 0 -200px;position:relative;}.yui-skin-sam .yui-editor-container .draggable .yui-toolbar-titlebar{cursor:move;}.yui-skin-sam .yui-toolbar-container .yui-toolbar-titlebar h2{color:#000;font-weight:bold;margin:0;padding:.3em 1em;font-size:100%;text-align:left;}.yui-skin-sam .yui-toolbar-container .yui-toolbar-group h3{color:#808080;font-size:75%;margin:1em 0 0;padding-bottom:0;padding-left:.25em;text-align:left;}.yui-toolbar-container span.yui-toolbar-separator{border:none;text-indent:33px;overflow:hidden;margin:0 .25em;}.yui-skin-sam .yui-toolbar-container{background-color:#F2F2F2;}.yui-skin-sam .yui-toolbar-container .yui-toolbar-subcont{padding:0 1em .35em;border-bottom:1px solid #808080;}.yui-skin-sam .yui-toolbar-container-collapsed .yui-toolbar-titlebar{border-bottom:1px solid #808080;}.yui-skin-sam .yui-editor-container .visible .yui-menu-shadow,.yui-skin-sam .yui-editor-panel .visible .yui-menu-shadow{display:none;}.yui-skin-sam .yui-editor-container ul{list-style-type:none;margin:0;padding:0;}.yui-skin-sam .yui-editor-container ul li{list-style-type:none;margin:0;padding:0;}.yui-skin-sam .yui-toolbar-group ul li.yui-toolbar-groupitem{float:left;}.yui-skin-sam .yui-editor-container .dompath{background-color:#F2F2F2;border-top:1px solid #808080;color:#999;text-align:left;padding:.25em;}.yui-skin-sam .yui-toolbar-container .collapse{background:url(sprite.png) no-repeat 0 -400px;}.yui-skin-sam .yui-toolbar-container .collapsed{background:url(sprite.png) no-repeat 0 -350px;}.yui-skin-sam .yui-toolbar-container .yui-toolbar-titlebar span.collapse{cursor:pointer;position:absolute;top:4px;right:2px;display:block;overflow:hidden;height:15px;width:15px;text-indent:9999px;}
-.yui-skin-sam .yui-toolbar-container .yui-push-button,.yui-skin-sam .yui-toolbar-container .yui-color-button,.yui-skin-sam .yui-toolbar-container .yui-menu-button{background:url(sprite.png) repeat-x 0 0;position:relative;display:block;height:22px;width:30px;_font-size:0;margin:0;border-color:#808080;color:#f2f2f2;border-style:solid;border-width:1px 0;zoom:1;}.yui-skin-sam .yui-toolbar-container .yui-push-button a,.yui-skin-sam .yui-toolbar-container .yui-color-button a,.yui-skin-sam .yui-toolbar-container .yui-menu-button a{padding-left:35px;height:20px;text-decoration:none;font-size:0;line-height:2;display:block;color:#000;overflow:hidden;white-space:nowrap;}.yui-skin-sam .yui-toolbar-container .yui-toolbar-spinbutton a,.yui-skin-sam .yui-toolbar-container .yui-toolbar-select a{font-size:12px;}.yui-skin-sam .yui-toolbar-container .yui-push-button .first-child,.yui-skin-sam .yui-toolbar-container .yui-color-button .first-child,.yui-skin-sam .yui-toolbar-container .yui-menu-button .first-child{border-color:#808080;border-style:solid;border-width:0 1px;margin:0 -1px;display:block;position:relative;}.yui-skin-sam .yui-toolbar-container .yui-push-button-disabled .first-child,.yui-skin-sam .yui-toolbar-container .yui-color-button-disabled .first-child,.yui-skin-sam .yui-toolbar-container .yui-menu-button-disabled .first-child{border-color:#ccc;}.yui-skin-sam .yui-toolbar-container .yui-push-button-disabled a,.yui-skin-sam .yui-toolbar-container .yui-color-button-disabled a,.yui-skin-sam .yui-toolbar-container .yui-menu-button-disabled a{color:#A6A6A6;cursor:default;}.yui-skin-sam .yui-toolbar-container .yui-push-button-disabled,.yui-skin-sam .yui-toolbar-container .yui-color-button-disabled,.yui-skin-sam .yui-toolbar-container .yui-menu-button-disabled{border-color:#ccc;}.yui-skin-sam .yui-toolbar-container .yui-button .first-child{*left:0;}.yui-skin-sam .yui-toolbar-container .yui-toolbar-fontname{width:135px;}.yui-skin-sam .yui-toolbar-container .yui-toolbar-heading{width:92px;}.yui-skin-sam .yui-toolbar-container .yui-button-hover{background:url(sprite.png) repeat-x 0 -1300px;border-color:#808080;}.yui-skin-sam .yui-toolbar-container .yui-button-selected{background:url(sprite.png) repeat-x 0 -1700px;border-color:#808080;}.yui-skin-sam .yui-toolbar-container .yui-toolbar-nogrouplabels h3{display:none;}.yui-skin-sam .yui-toolbar-container .yui-toolbar-nogrouplabels .yui-toolbar-group{margin-top:.75em;}.yui-skin-sam .yui-toolbar-container .yui-push-button span.yui-toolbar-icon,.yui-skin-sam .yui-toolbar-container .yui-color-button span.yui-toolbar-icon,.yui-skin-sam .yui-toolbar-container .yui-menu-button span.yui-toolbar-icon{display:block;position:absolute;top:2px;height:18px;width:18px;overflow:hidden;background:url(editor-sprite.gif) no-repeat 30px 30px;}.yui-skin-sam .yui-toolbar-container .yui-button-selected span.yui-toolbar-icon,.yui-skin-sam .yui-toolbar-container .yui-button-hover span.yui-toolbar-icon{background-image:url(editor-sprite-active.gif);}.yui-skin-sam .yui-toolbar-container .visible .yuimenuitemlabel{cursor:pointer;color:#000;*position:relative;}.yui-skin-sam .yui-toolbar-container .yui-button-menu{background-color:#fff;}.yui-skin-sam .yui-toolbar-container .yui-button-menu .yui-menu-body-scrolled{position:relative;}.yui-skin-sam div.yuimenu li.selected{background-color:#B3D4FF;}.yui-skin-sam div.yuimenu li.selected a.selected{color:#000;}.yui-skin-sam .yui-toolbar-container .yui-toolbar-bold span.yui-toolbar-icon{background-position:0 0;left:5px;}.yui-skin-sam .yui-toolbar-container .yui-toolbar-strikethrough span.yui-toolbar-icon{background-position:0 -108px;left:5px;}.yui-skin-sam .yui-toolbar-container .yui-toolbar-italic span.yui-toolbar-icon{background-position:0 -36px;left:5px;}.yui-skin-sam .yui-toolbar-container .yui-toolbar-undo span.yui-toolbar-icon{background-position:0 -1326px;left:5px;}.yui-skin-sam .yui-toolbar-container .yui-toolbar-redo span.yui-toolbar-icon{background-position:0 -1355px;left:5px;}.yui-skin-sam .yui-toolbar-container .yui-toolbar-underline span.yui-toolbar-icon{background-position:0 -72px;left:5px;}.yui-skin-sam .yui-toolbar-container .yui-toolbar-subscript span.yui-toolbar-icon{background-position:0 -180px;left:5px;}.yui-skin-sam .yui-toolbar-container .yui-toolbar-superscript span.yui-toolbar-icon{background-position:0 -144px;left:5px;}.yui-skin-sam .yui-toolbar-container .yui-toolbar-forecolor span.yui-toolbar-icon{background-position:0 -216px;left:5px;}.yui-skin-sam .yui-toolbar-container .yui-toolbar-backcolor span.yui-toolbar-icon{background-position:0 -288px;left:5px;}.yui-skin-sam .yui-toolbar-container .yui-toolbar-justifyleft span.yui-toolbar-icon{background-position:0 -324px;left:5px;}.yui-skin-sam .yui-toolbar-container .yui-toolbar-justifycenter span.yui-toolbar-icon{background-position:0 -360px;left:5px;}.yui-skin-sam .yui-toolbar-container .yui-toolbar-justifyright span.yui-toolbar-icon{background-position:0 -396px;left:5px;}.yui-skin-sam .yui-toolbar-container .yui-toolbar-justifyfull span.yui-toolbar-icon{background-position:0 -432px;left:5px;}.yui-skin-sam .yui-toolbar-container .yui-toolbar-indent span.yui-toolbar-icon{background-position:0 -720px;left:5px;}.yui-skin-sam .yui-toolbar-container .yui-toolbar-outdent span.yui-toolbar-icon{background-position:0 -684px;left:5px;}.yui-skin-sam .yui-toolbar-container .yui-toolbar-createlink span.yui-toolbar-icon{background-position:0 -792px;left:5px;}.yui-skin-sam .yui-toolbar-container .yui-toolbar-insertimage span.yui-toolbar-icon{background-position:1px -756px;left:5px;}.yui-skin-sam .yui-toolbar-container .yui-toolbar-left span.yui-toolbar-icon{background-position:0 -972px;left:5px;}.yui-skin-sam .yui-toolbar-container .yui-toolbar-right span.yui-toolbar-icon{background-position:0 -936px;left:5px;}.yui-skin-sam .yui-toolbar-container .yui-toolbar-inline span.yui-toolbar-icon{background-position:0 -900px;left:5px;}
-.yui-skin-sam .yui-toolbar-container .yui-toolbar-block span.yui-toolbar-icon{background-position:0 -864px;left:5px;}.yui-skin-sam .yui-toolbar-container .yui-toolbar-bordercolor span.yui-toolbar-icon{background-position:0 -252px;left:5px;}.yui-skin-sam .yui-toolbar-container .yui-toolbar-removeformat span.yui-toolbar-icon{background-position:0 -1080px;left:5px;}.yui-skin-sam .yui-toolbar-container .yui-toolbar-hiddenelements span.yui-toolbar-icon{background-position:0 -1044px;left:5px;}.yui-skin-sam .yui-toolbar-container .yui-toolbar-insertunorderedlist span.yui-toolbar-icon{background-position:0 -468px;left:5px;}.yui-skin-sam .yui-toolbar-container .yui-toolbar-insertorderedlist span.yui-toolbar-icon{background-position:0 -504px;left:5px;}.yui-skin-sam .yui-toolbar-container .yui-toolbar-spinbutton,.yui-skin-sam .yui-toolbar-container .yui-toolbar-spinbutton .first-child{width:35px;}.yui-skin-sam .yui-toolbar-container .yui-toolbar-spinbutton .first-child a{padding-left:2px;text-align:left;}.yui-skin-sam .yui-toolbar-container .yui-toolbar-spinbutton span.yui-toolbar-icon{display:none;}.yui-skin-sam .yui-toolbar-container .yui-toolbar-spinbutton a.up,.yui-skin-sam .yui-toolbar-container .yui-toolbar-spinbutton a.down{right:2px;background:url(editor-sprite.gif) no-repeat 0 -1222px;overflow:hidden;height:6px;width:7px;min-height:0;padding:0;}.yui-skin-sam .yui-toolbar-container .yui-toolbar-spinbutton a.up{top:2px;background-position:0 -1222px;}.yui-skin-sam .yui-toolbar-container .yui-toolbar-spinbutton a.down{bottom:2px;background-position:0 -1187px;}.yui-skin-sam .yui-toolbar-container select{height:22px;border:1px solid #808080;}.yui-skin-sam .yui-toolbar-container .yui-toolbar-select .first-child a{padding-left:5px;text-align:left;}.yui-skin-sam .yui-toolbar-container .yui-toolbar-select span.yui-toolbar-icon{background:url(editor-sprite.gif) no-repeat 0 -1144px;overflow:hidden;right:-2px;top:0;height:20px;}.yui-skin-sam .yui-editor-panel .yui-color-button-menu .bd{background-color:transparent;border:none;width:135px;}.yui-skin-sam .yui-color-button-menu .yui-toolbar-colors{border:1px solid #808080;}.yui-skin-sam .yui-editor-panel{padding:0;margin:0;border:none;background-color:transparent;overflow:visible;position:absolute;}.yui-skin-sam .yui-editor-panel .hd{margin:10px 0 0;padding:0;border:none;}.yui-skin-sam .yui-editor-panel .hd h3{color:#000;border:1px solid #808080;background:url(sprite.png) repeat-x 0 -200px;width:99%;position:relative;margin:0;padding:3px 0 0 0;font-size:93%;text-indent:5px;height:20px;}.yui-skin-sam .yui-editor-panel .bd{background-color:#F2F2F2;border-left:1px solid #808080;border-right:1px solid #808080;width:99%;margin:0;padding:0;overflow:visible;}.yui-skin-sam .yui-editor-panel ul{list-style-type:none;margin:0;padding:0;}.yui-skin-sam .yui-editor-panel ul li{margin:0;padding:0;}.yui-skin-sam .yui-editor-panel .yui-toolbar-container .yui-toolbar-subcont{padding:0;border:none;margin-top:.35em;}.yui-skin-sam .yui-editor-panel .yui-toolbar-bordersize,.yui-skin-sam .yui-editor-panel .yui-toolbar-bordertype{width:50px;}.yui-skin-sam .yui-editor-panel label{display:block;float:none;padding:4px 0;margin-bottom:7px;}.yui-skin-sam .yui-editor-panel label strong{font-weight:normal;font-size:93%;text-align:right;padding-top:2px;}.yui-skin-sam .yui-editor-panel label input{width:75%;}.yui-skin-sam .yui-editor-panel .createlink_target,.yui-skin-sam .yui-editor-panel .insertimage_target{width:auto;margin-right:5px;}.yui-skin-sam .yui-editor-panel .removeLink{width:98%;}.yui-skin-sam .yui-editor-panel label input.warning{background-color:#FFEE69;}.yui-skin-sam .yui-editor-panel .yui-toolbar-group h3{color:#000;float:left;font-weight:normal;font-size:93%;margin:5px 0 0 0;padding:0 3px 0 0;text-align:right;}.yui-skin-sam .yui-editor-panel .height-width h3{margin:3px 0 0 10px;}.yui-skin-sam .yui-editor-panel .height-width{margin:3px 0 0 35px;*margin-left:14px;width:42%;*width:44%;}.yui-skin-sam .yui-editor-panel .yui-toolbar-group-border{width:190px;}.yui-skin-sam .yui-editor-panel .no-button .yui-toolbar-group-border{width:210px;}.yui-skin-sam .yui-editor-panel .yui-toolbar-group-padding{width:203px;_width:198px;}.yui-skin-sam .yui-editor-panel .no-button .yui-toolbar-group-padding{width:172px;}.yui-skin-sam .yui-editor-panel .yui-toolbar-group-padding h3{margin-left:25px;*margin-left:12px;}.yui-skin-sam .yui-editor-panel .yui-toolbar-group-textflow{width:182px;}.yui-skin-sam .yui-editor-panel .hd{background:none;}.yui-skin-sam .yui-editor-panel .ft{background-color:#F2F2F2;border:1px solid #808080;border-top:none;padding:0;margin:0 0 2px 0;}.yui-skin-sam .yui-editor-panel .hd span.close{background:url(sprite.png) no-repeat 0 -300px;cursor:pointer;display:block;height:16px;overflow:hidden;position:absolute;right:5px;text-indent:500px;top:2px;width:26px;}.yui-skin-sam .yui-editor-panel .ft span.tip{background-color:#EDF5FF;border-top:1px solid #808080;font-size:85%;}.yui-skin-sam .yui-editor-panel .ft span.tip strong{display:block;float:left;margin:0 2px 8px 0;}.yui-skin-sam .yui-editor-panel .ft span.tip span.icon{background:url(editor-sprite.gif) no-repeat 0 -1260px;display:block;height:20px;left:2px;position:absolute;top:8px;width:20px;}.yui-skin-sam .yui-editor-panel .ft span.tip span.icon-info{background-position:2px -1260px;}.yui-skin-sam .yui-editor-panel .ft span.tip span.icon-warn{background-position:2px -1296px;}.yui-skin-sam .yui-editor-panel .hd span.knob{position:absolute;height:10px;width:28px;top:-10px;left:25px;text-indent:9999px;overflow:hidden;background:url(editor-knob.gif) no-repeat 0 0;}.yui-skin-sam .yui-editor-panel .yui-toolbar-container{float:left;width:100%;background-image:none;border:none;}.yui-skin-sam .yui-editor-panel .yui-toolbar-container .bd{background-color:#fff;}.yui-editor-blankimage{background-image:url(blankimage.png);}.yui-skin-sam .yui-editor-container .yui-resize-handle-br{height:11px;width:11px;background-position:-20px -60px;background-color:transparent;}
-.yui-crop{position:relative;}.yui-crop .yui-crop-mask{position:absolute;top:0;left:0;height:100%;width:100%;}.yui-crop .yui-resize{position:absolute;top:10px;left:10px;border:0;}.yui-crop .yui-crop-resize-mask{position:absolute;top:0;left:0;height:100%;width:100%;background-position:-10px -10px;overflow:hidden;}.yui-skin-sam .yui-crop .yui-crop-mask{background-color:#000;opacity:.5;filter:alpha(opacity=50);}.yui-skin-sam .yui-crop .yui-resize{border:1px dashed #fff;}
-.yui-layout-loading{visibility:hidden;}body.yui-layout{overflow:hidden;position:relative;padding:0;margin:0;}.yui-layout-doc{position:relative;overflow:hidden;padding:0;margin:0;}.yui-layout-unit{height:50px;width:50px;padding:0;margin:0;float:none;z-index:0;}.yui-layout-unit-top{position:absolute;top:0;left:0;width:100%;}.yui-layout-unit-left{position:absolute;top:0;left:0;}.yui-layout-unit-right{position:absolute;top:0;right:0;}.yui-layout-unit-bottom{position:absolute;bottom:0;left:0;width:100%;}.yui-layout-unit-center{position:absolute;top:0;left:0;width:100%;}.yui-layout div.yui-layout-hd{position:absolute;top:0;left:0;zoom:1;width:100%;}.yui-layout div.yui-layout-bd{position:absolute;top:0;left:0;zoom:1;width:100%;}.yui-layout .yui-layout-noscroll div.yui-layout-bd{overflow:hidden;}.yui-layout .yui-layout-scroll div.yui-layout-bd{overflow:auto;}.yui-layout div.yui-layout-ft{position:absolute;bottom:0;left:0;width:100%;zoom:1;}.yui-layout .yui-layout-unit div.yui-layout-hd h2{text-align:left;}.yui-layout .yui-layout-unit div.yui-layout-hd .collapse{cursor:pointer;height:13px;position:absolute;right:2px;top:2px;width:17px;font-size:0;}.yui-layout .yui-layout-unit div.yui-layout-hd .close{cursor:pointer;height:13px;position:absolute;right:2px;top:2px;width:17px;font-size:0;}.yui-layout .yui-layout-unit div.yui-layout-hd .collapse-close{right:25px;}.yui-layout .yui-layout-clip{position:absolute;height:20px;background-color:#c0c0c0;display:none;}.yui-layout .yui-layout-clip .collapse{cursor:pointer;height:13px;position:absolute;right:2px;top:2px;width:17px;font-size:0;}.yui-layout .yui-layout-wrap{height:100%;width:100%;position:absolute;left:0;}.yui-skin-sam .yui-layout .yui-resize-proxy{border:none;font-size:0;margin:0;padding:0;}.yui-skin-sam .yui-layout .yui-resize-resizing .yui-resize-handle{display:none;zoom:1;}.yui-skin-sam .yui-layout .yui-resize-proxy div{position:absolute;border:1px solid #808080;background-color:#EDF5FF;}.yui-skin-sam .yui-layout .yui-resize .yui-resize-handle-active{zoom:1;}.yui-skin-sam .yui-layout .yui-resize-proxy .yui-layout-handle-l{width:5px;height:100%;top:0;left:0;zoom:1;}.yui-skin-sam .yui-layout .yui-resize-proxy .yui-layout-handle-r{width:5px;top:0;right:0;height:100%;position:absolute;zoom:1;}.yui-skin-sam .yui-layout .yui-resize-proxy .yui-layout-handle-b{width:100%;bottom:0;left:0;height:5px;}.yui-skin-sam .yui-layout .yui-resize-proxy .yui-layout-handle-t{width:100%;top:0;left:0;height:5px;}.yui-skin-sam .yui-layout .yui-layout-unit-left div.yui-layout-hd .collapse{background:transparent url(layout_sprite.png) no-repeat -20px -160px;border:1px solid #808080;}.yui-skin-sam .yui-layout .yui-layout-clip-left .collapse{background:transparent url(layout_sprite.png) no-repeat -20px -140px;border:1px solid #808080;}.yui-skin-sam .yui-layout .yui-layout-unit-right div.yui-layout-hd .collapse{background:transparent url(layout_sprite.png) no-repeat -20px -200px;border:1px solid #808080;}.yui-skin-sam .yui-layout .yui-layout-clip-right .collapse{background:transparent url(layout_sprite.png) no-repeat -20px -120px;border:1px solid #808080;}.yui-skin-sam .yui-layout .yui-layout-unit-top div.yui-layout-hd .collapse{background:transparent url(layout_sprite.png) no-repeat -20px -220px;border:1px solid #808080;}.yui-skin-sam .yui-layout .yui-layout-clip-top .collapse{background:transparent url(layout_sprite.png) no-repeat -20px -240px;border:1px solid #808080;}.yui-skin-sam .yui-layout .yui-layout-unit-bottom div.yui-layout-hd .collapse{background:transparent url(layout_sprite.png) no-repeat -20px -260px;border:1px solid #808080;}.yui-skin-sam .yui-layout .yui-layout-clip-bottom .collapse{background:transparent url(layout_sprite.png) no-repeat -20px -180px;border:1px solid #808080;}.yui-skin-sam .yui-layout .yui-layout-unit div.yui-layout-hd .close{background:transparent url(layout_sprite.png) no-repeat -20px -100px;border:1px solid #808080;}.yui-skin-sam .yui-layout .yui-layout-hd{background:url(sprite.png) repeat-x 0 -1400px;border:1px solid #808080;}.yui-skin-sam .yui-layout{background-color:#EDF5FF;}.yui-skin-sam .yui-layout .yui-layout-unit div.yui-layout-hd h2{font-weight:bold;color:#fff;padding:3px;margin:0;}.yui-skin-sam .yui-layout .yui-layout-unit div.yui-layout-bd{border:1px solid #808080;border-bottom:none;border-top:none;*border-bottom-width:0;*border-top-width:0;background-color:#f2f2f2;text-align:left;}.yui-skin-sam .yui-layout .yui-layout-unit div.yui-layout-bd-noft{border-bottom:1px solid #808080;}.yui-skin-sam .yui-layout .yui-layout-unit div.yui-layout-bd-nohd{border-top:1px solid #808080;}.yui-skin-sam .yui-layout .yui-layout-clip{position:absolute;height:20px;background-color:#EDF5FF;display:none;border:1px solid #808080;}.yui-skin-sam .yui-layout div.yui-layout-ft{border:1px solid #808080;border-top:none;*border-top-width:0;background-color:#f2f2f2;}.yui-skin-sam .yui-layout-unit .yui-resize-handle{background-color:transparent;zoom:1;}.yui-skin-sam .yui-layout-unit .yui-resize-handle-r{right:0;top:0;background-image:none;zoom:1;}.yui-skin-sam .yui-layout-unit .yui-resize-handle-l{left:0;top:0;background-image:none;zoom:1;}.yui-skin-sam .yui-layout-unit .yui-resize-handle-b{right:0;bottom:0;background-image:none;}.yui-skin-sam .yui-layout-unit .yui-resize-handle-t{right:0;top:0;background-image:none;}.yui-skin-sam .yui-layout-unit .yui-resize-handle-r .yui-layout-resize-knob,.yui-skin-sam .yui-layout-unit .yui-resize-handle-l .yui-layout-resize-knob{position:absolute;height:16px;width:6px;top:45%;left:0;display:block;background:transparent url(layout_sprite.png) no-repeat 0 -5px;}.yui-skin-sam .yui-layout-unit .yui-resize-handle-t .yui-layout-resize-knob,.yui-skin-sam .yui-layout-unit .yui-resize-handle-b .yui-layout-resize-knob{position:absolute;height:6px;width:16px;left:45%;background:transparent url(layout_sprite.png) no-repeat -20px 0;zoom:1;}
-.yui-skin-sam .yui-log{padding:1em;width:31em;background-color:#AAA;color:#000;border:1px solid black;font-family:monospace;font-size:77%;text-align:left;z-index:9000;}.yui-skin-sam .yui-log-container{position:absolute;top:1em;right:1em;}.yui-skin-sam .yui-log input{margin:0;padding:0;font-family:arial;font-size:100%;font-weight:normal;}.yui-skin-sam .yui-log .yui-log-btns{position:relative;float:right;bottom:.25em;}.yui-skin-sam .yui-log .yui-log-hd{margin-top:1em;padding:.5em;background-color:#575757;}.yui-skin-sam .yui-log .yui-log-hd h4{margin:0;padding:0;font-size:108%;font-weight:bold;color:#FFF;}.yui-skin-sam .yui-log .yui-log-bd{width:100%;height:20em;background-color:#FFF;border:1px solid gray;overflow:auto;}.yui-skin-sam .yui-log p{margin:1px;padding:.1em;}.yui-skin-sam .yui-log pre{margin:0;padding:0;}.yui-skin-sam .yui-log pre.yui-log-verbose{white-space:pre-wrap;white-space:-moz-pre-wrap!important;white-space:-pre-wrap;white-space:-o-pre-wrap;word-wrap:break-word;}.yui-skin-sam .yui-log .yui-log-ft{margin-top:.5em;}.yui-skin-sam .yui-log .yui-log-ft .yui-log-sourcefilters{width:100%;border-top:1px solid #575757;margin-top:.75em;padding-top:.75em;}.yui-skin-sam .yui-log .yui-log-filtergrp{margin-right:.5em;}.yui-skin-sam .yui-log .info{background-color:#A7CC25;}.yui-skin-sam .yui-log .warn{background-color:#F58516;}.yui-skin-sam .yui-log .error{background-color:#E32F0B;}.yui-skin-sam .yui-log .time{background-color:#A6C9D7;}.yui-skin-sam .yui-log .window{background-color:#F2E886;}
-.yuimenu{top:-999em;left:-999em;}.yuimenubar{position:static;}.yuimenu .yuimenu,.yuimenubar .yuimenu{position:absolute;}.yuimenubar li,.yuimenu li{list-style-type:none;}.yuimenubar ul,.yuimenu ul,.yuimenubar li,.yuimenu li,.yuimenu h6,.yuimenubar h6{margin:0;padding:0;}.yuimenuitemlabel,.yuimenubaritemlabel{text-align:left;white-space:nowrap;}.yuimenubar ul{*zoom:1;}.yuimenubar .yuimenu ul{*zoom:normal;}.yuimenubar>.bd>ul:after{content:".";display:block;clear:both;visibility:hidden;height:0;line-height:0;}.yuimenubaritem{float:left;}.yuimenubaritemlabel,.yuimenuitemlabel{display:block;}.yuimenuitemlabel .helptext{font-style:normal;display:block;margin:-1em 0 0 10em;}.yui-menu-shadow{position:absolute;visibility:hidden;z-index:-1;}.yui-menu-shadow-visible{top:2px;right:-3px;left:-3px;bottom:-3px;visibility:visible;}.hide-scrollbars *{overflow:hidden;}.hide-scrollbars select{display:none;}.yuimenu.show-scrollbars,.yuimenubar.show-scrollbars{overflow:visible;}.yuimenu.hide-scrollbars .yui-menu-shadow,.yuimenubar.hide-scrollbars .yui-menu-shadow{overflow:hidden;}.yuimenu.show-scrollbars .yui-menu-shadow,.yuimenubar.show-scrollbars .yui-menu-shadow{overflow:auto;}.yui-overlay.yui-force-redraw{margin-bottom:1px;}.yui-skin-sam .yuimenubar{font-size:93%;line-height:2;*line-height:1.9;border:solid 1px #808080;background:url(sprite.png) repeat-x 0 0;}.yui-skin-sam .yuimenubarnav .yuimenubaritem{border-right:solid 1px #ccc;}.yui-skin-sam .yuimenubaritemlabel{padding:0 10px;color:#000;text-decoration:none;cursor:default;border-style:solid;border-color:#808080;border-width:1px 0;*position:relative;margin:-1px 0;}.yui-skin-sam .yuimenubaritemlabel:visited{color:#000;}.yui-skin-sam .yuimenubarnav .yuimenubaritemlabel{padding-right:20px;*display:inline-block;}.yui-skin-sam .yuimenubarnav .yuimenubaritemlabel-hassubmenu{background:url(menubaritem_submenuindicator.png) right center no-repeat;}.yui-skin-sam .yuimenubaritem-selected{background:url(sprite.png) repeat-x 0 -1700px;}.yui-skin-sam .yuimenubaritemlabel-selected{border-color:#7D98B8;}.yui-skin-sam .yuimenubarnav .yuimenubaritemlabel-selected{border-left-width:1px;margin-left:-1px;*left:-1px;}.yui-skin-sam .yuimenubaritemlabel-disabled,.yui-skin-sam .yuimenubaritemlabel-disabled:visited{cursor:default;color:#A6A6A6;}.yui-skin-sam .yuimenubarnav .yuimenubaritemlabel-hassubmenu-disabled{background-image:url(menubaritem_submenuindicator_disabled.png);}.yui-skin-sam .yuimenu{font-size:93%;line-height:1.5;*line-height:1.45;}.yui-skin-sam .yuimenubar .yuimenu,.yui-skin-sam .yuimenu .yuimenu{font-size:100%;}.yui-skin-sam .yuimenu .bd{*zoom:1;_zoom:normal;border:solid 1px #808080;background-color:#fff;}.yui-skin-sam .yuimenu .yuimenu .bd{*zoom:normal;}.yui-skin-sam .yuimenu ul{padding:3px 0;border-width:1px 0 0 0;border-color:#ccc;border-style:solid;}.yui-skin-sam .yuimenu ul.first-of-type{border-width:0;}.yui-skin-sam .yuimenu h6{font-weight:bold;border-style:solid;border-color:#ccc;border-width:1px 0 0 0;color:#a4a4a4;padding:3px 10px 0 10px;}.yui-skin-sam .yuimenu ul.hastitle,.yui-skin-sam .yuimenu h6.first-of-type{border-width:0;}.yui-skin-sam .yuimenu .yui-menu-body-scrolled{border-color:#ccc #808080;overflow:hidden;}.yui-skin-sam .yuimenu .topscrollbar,.yui-skin-sam .yuimenu .bottomscrollbar{height:16px;border:solid 1px #808080;background:#fff url(sprite.png) no-repeat 0 0;}.yui-skin-sam .yuimenu .topscrollbar{border-bottom-width:0;background-position:center -950px;}.yui-skin-sam .yuimenu .topscrollbar_disabled{background-position:center -975px;}.yui-skin-sam .yuimenu .bottomscrollbar{border-top-width:0;background-position:center -850px;}.yui-skin-sam .yuimenu .bottomscrollbar_disabled{background-position:center -875px;}.yui-skin-sam .yuimenuitem{_border-bottom:solid 1px #fff;}.yui-skin-sam .yuimenuitemlabel{padding:0 20px;color:#000;text-decoration:none;cursor:default;}.yui-skin-sam .yuimenuitemlabel:visited{color:#000;}.yui-skin-sam .yuimenuitemlabel .helptext{margin-top:-1.5em;*margin-top:-1.45em;}.yui-skin-sam .yuimenuitem-hassubmenu{background-image:url(menuitem_submenuindicator.png);background-position:right center;background-repeat:no-repeat;}.yui-skin-sam .yuimenuitem-checked{background-image:url(menuitem_checkbox.png);background-position:left center;background-repeat:no-repeat;}.yui-skin-sam .yui-menu-shadow-visible{background-color:#000;opacity:.12;filter:alpha(opacity=12);}.yui-skin-sam .yuimenuitem-selected{background-color:#B3D4FF;}.yui-skin-sam .yuimenuitemlabel-disabled,.yui-skin-sam .yuimenuitemlabel-disabled:visited{cursor:default;color:#A6A6A6;}.yui-skin-sam .yuimenuitem-hassubmenu-disabled{background-image:url(menuitem_submenuindicator_disabled.png);}.yui-skin-sam .yuimenuitem-checked-disabled{background-image:url(menuitem_checkbox_disabled.png);}
-.yui-skin-sam .yui-pg-container{display:block;margin:6px 0;white-space:nowrap;}.yui-skin-sam .yui-pg-first,.yui-skin-sam .yui-pg-previous,.yui-skin-sam .yui-pg-next,.yui-skin-sam .yui-pg-last,.yui-skin-sam .yui-pg-current,.yui-skin-sam .yui-pg-pages,.yui-skin-sam .yui-pg-page{display:inline-block;font-family:arial,helvetica,clean,sans-serif;padding:3px 6px;zoom:1;}.yui-skin-sam .yui-pg-pages{padding:0;}.yui-skin-sam .yui-pg-current{padding:3px 0;}.yui-skin-sam a.yui-pg-first:link,.yui-skin-sam a.yui-pg-first:visited,.yui-skin-sam a.yui-pg-first:active,.yui-skin-sam a.yui-pg-first:hover,.yui-skin-sam a.yui-pg-previous:link,.yui-skin-sam a.yui-pg-previous:visited,.yui-skin-sam a.yui-pg-previous:active,.yui-skin-sam a.yui-pg-previous:hover,.yui-skin-sam a.yui-pg-next:link,.yui-skin-sam a.yui-pg-next:visited,.yui-skin-sam a.yui-pg-next:active,.yui-skin-sam a.yui-pg-next:hover,.yui-skin-sam a.yui-pg-last:link,.yui-skin-sam a.yui-pg-last:visited,.yui-skin-sam a.yui-pg-last:active,.yui-skin-sam a.yui-pg-last:hover,.yui-skin-sam a.yui-pg-page:link,.yui-skin-sam a.yui-pg-page:visited,.yui-skin-sam a.yui-pg-page:active,.yui-skin-sam a.yui-pg-page:hover{color:#06c;text-decoration:underline;outline:0;}.yui-skin-sam span.yui-pg-first,.yui-skin-sam span.yui-pg-previous,.yui-skin-sam span.yui-pg-next,.yui-skin-sam span.yui-pg-last{color:#a6a6a6;}.yui-skin-sam .yui-pg-page{background-color:#fff;border:1px solid #CBCBCB;padding:2px 6px;text-decoration:none;}.yui-skin-sam .yui-pg-current-page{background-color:transparent;border:none;font-weight:bold;padding:3px 6px;}.yui-skin-sam .yui-pg-page{margin-left:1px;margin-right:1px;}.yui-skin-sam .yui-pg-first,.yui-skin-sam .yui-pg-previous{padding-left:0;}.yui-skin-sam .yui-pg-next,.yui-skin-sam .yui-pg-last{padding-right:0;}.yui-skin-sam .yui-pg-current,.yui-skin-sam .yui-pg-rpp-options{margin-left:1em;margin-right:1em;}
-.yui-skin-sam .yui-pv{background-color:#4a4a4a;font:arial;position:relative;width:99%;z-index:1000;margin-bottom:1em;overflow:hidden;}.yui-skin-sam .yui-pv .hd{background:url(header_background.png) repeat-x;min-height:30px;overflow:hidden;zoom:1;padding:2px 0;}.yui-skin-sam .yui-pv .hd h4{padding:8px 10px;margin:0;font:bold 14px arial;color:#fff;}.yui-skin-sam .yui-pv .hd a{background:#3f6bc3;font:bold 11px arial;color:#fff;padding:4px;margin:3px 10px 0 0;border:1px solid #3f567d;cursor:pointer;display:block;float:right;}.yui-skin-sam .yui-pv .hd span{display:none;}.yui-skin-sam .yui-pv .hd span.yui-pv-busy{height:18px;width:18px;background:url(wait.gif) no-repeat;overflow:hidden;display:block;float:right;margin:4px 10px 0 0;}.yui-skin-sam .yui-pv .hd:after,.yui-pv .bd:after,.yui-skin-sam .yui-pv-chartlegend dl:after{content:'.';visibility:hidden;clear:left;height:0;display:block;}.yui-skin-sam .yui-pv .bd{position:relative;zoom:1;overflow-x:auto;overflow-y:hidden;}.yui-skin-sam .yui-pv .yui-pv-table{padding:0 10px;margin:5px 0 10px 0;}.yui-skin-sam .yui-pv .yui-pv-table .yui-dt-bd td{color:#eeee5c;font:12px arial;}.yui-skin-sam .yui-pv .yui-pv-table tr.yui-dt-odd{background:#929292;}.yui-skin-sam .yui-pv .yui-pv-table tr.yui-dt-even{background:#58637a;}.yui-skin-sam .yui-pv .yui-pv-table tr.yui-dt-even td.yui-dt-asc,.yui-skin-sam .yui-pv .yui-pv-table tr.yui-dt-even td.yui-dt-desc{background:#384970;}.yui-skin-sam .yui-pv .yui-pv-table tr.yui-dt-odd td.yui-dt-asc,.yui-skin-sam .yui-pv .yui-pv-table tr.yui-dt-odd td.yui-dt-desc{background:#6F6E6E;}.yui-skin-sam .yui-pv .yui-pv-table .yui-dt-hd th{background-image:none;background:#2E2D2D;}.yui-skin-sam .yui-pv th.yui-dt-asc .yui-dt-liner{background:transparent url(asc.gif) no-repeat scroll right center;}.yui-skin-sam .yui-pv th.yui-dt-desc .yui-dt-liner{background:transparent url(desc.gif) no-repeat scroll right center;}.yui-skin-sam .yui-pv .yui-pv-table .yui-dt-hd th a{color:#fff;font:bold 12px arial;}.yui-skin-sam .yui-pv .yui-pv-table .yui-dt-hd th.yui-dt-asc,.yui-skin-sam .yui-pv .yui-pv-table .yui-dt-hd th.yui-dt-desc{background:#333;}.yui-skin-sam .yui-pv-chartcontainer{padding:0 10px;}.yui-skin-sam .yui-pv-chart{height:250px;clear:right;margin:5px 0 0 0;color:#fff;}.yui-skin-sam .yui-pv-chartlegend div{float:right;margin:0 0 0 10px;_width:250px;}.yui-skin-sam .yui-pv-chartlegend dl{border:1px solid #999;padding:.2em 0 .2em .5em;zoom:1;margin:5px 0;}.yui-skin-sam .yui-pv-chartlegend dt{float:left;display:block;height:.7em;width:.7em;padding:0;}.yui-skin-sam .yui-pv-chartlegend dd{float:left;display:block;color:#fff;margin:0 1em 0 .5em;padding:0;font:11px arial;}.yui-skin-sam .yui-pv-minimized{height:35px;}.yui-skin-sam .yui-pv-minimized .bd{top:-3000px;}.yui-skin-sam .yui-pv-minimized .hd a.yui-pv-refresh{display:none;}
-.yui-pb-bar,.yui-pb-mask{width:100%;height:100%;}.yui-pb{position:relative;top:0;left:0;width:200px;height:20px;padding:0;border:none;margin:0;text-align:left;}.yui-pb-mask{position:absolute;top:0;left:0;z-index:2;}.yui-pb-mask div{width:50%;height:50%;background-repeat:no-repeat;padding:0;position:absolute;}.yui-pb-tl{background-position:top left;}.yui-pb-tr{background-position:top right;left:50%;}.yui-pb-bl{background-position:bottom left;top:50%;}.yui-pb-br{background-position:bottom right;left:50%;top:50%;}.yui-pb-bar{margin:0;position:absolute;left:0;top:0;z-index:1;}.yui-pb-ltr .yui-pb-bar{_position:static;}.yui-pb-rtl .yui-pb-bar{background-position:right;}.yui-pb-btt .yui-pb-bar{background-position:left bottom;}.yui-pb-bar{background-color:blue;}.yui-pb{border:thin solid #808080;}.yui-skin-sam .yui-pb{background-color:transparent;border:solid #808080;border-width:1px 0;}.yui-skin-sam .yui-pb-rtl,.yui-skin-sam .yui-pb-ltr{background-image:url(back-h.png);background-repeat:repeat-x;}.yui-skin-sam .yui-pb-ttb,.yui-skin-sam .yui-pb-btt{background-image:url(back-v.png);background-repeat:repeat-y;}.yui-skin-sam .yui-pb-bar{background-color:transparent;}.yui-skin-sam .yui-pb-ltr .yui-pb-bar,.yui-skin-sam .yui-pb-rtl .yui-pb-bar{background-image:url(bar-h.png);background-repeat:repeat-x;}.yui-skin-sam .yui-pb-ttb .yui-pb-bar,.yui-skin-sam .yui-pb-btt .yui-pb-bar{background-image:url(bar-v.png);background-repeat:repeat-y;}.yui-skin-sam .yui-pb-mask{border:solid #808080;border-width:0 1px;margin:0 -1px;}.yui-skin-sam .yui-pb-caption{color:#000;text-align:center;margin:0 auto;}.yui-skin-sam .yui-pb-range{color:#a6a6a6;}
-.yui-resize{position:relative;zoom:1;z-index:0;}.yui-resize-wrap{zoom:1;}.yui-draggable{cursor:move;}.yui-resize .yui-resize-handle{position:absolute;z-index:1;font-size:0;margin:0;padding:0;zoom:1;height:1px;width:1px;}.yui-resize .yui-resize-handle-br{height:5px;width:5px;bottom:0;right:0;cursor:se-resize;z-index:2;zoom:1;}.yui-resize .yui-resize-handle-bl{height:5px;width:5px;bottom:0;left:0;cursor:sw-resize;z-index:2;zoom:1;}.yui-resize .yui-resize-handle-tl{height:5px;width:5px;top:0;left:0;cursor:nw-resize;z-index:2;zoom:1;}.yui-resize .yui-resize-handle-tr{height:5px;width:5px;top:0;right:0;cursor:ne-resize;z-index:2;zoom:1;}.yui-resize .yui-resize-handle-r{width:5px;height:100%;top:0;right:0;cursor:e-resize;zoom:1;}.yui-resize .yui-resize-handle-l{height:100%;width:5px;top:0;left:0;cursor:w-resize;zoom:1;}.yui-resize .yui-resize-handle-b{width:100%;height:5px;bottom:0;right:0;cursor:s-resize;zoom:1;}.yui-resize .yui-resize-handle-t{width:100%;height:5px;top:0;right:0;cursor:n-resize;zoom:1;}.yui-resize-proxy{position:absolute;border:1px dashed #000;visibility:hidden;z-index:1000;}.yui-resize-hover .yui-resize-handle,.yui-resize-hidden .yui-resize-handle{opacity:0;filter:alpha(opacity=0);}.yui-resize-ghost{opacity:.5;filter:alpha(opacity=50);}.yui-resize-knob .yui-resize-handle{height:6px;width:6px;}.yui-resize-knob .yui-resize-handle-tr{right:-3px;top:-3px;}.yui-resize-knob .yui-resize-handle-tl{left:-3px;top:-3px;}.yui-resize-knob .yui-resize-handle-bl{left:-3px;bottom:-3px;}.yui-resize-knob .yui-resize-handle-br{right:-3px;bottom:-3px;}.yui-resize-knob .yui-resize-handle-t{left:45%;top:-3px;}.yui-resize-knob .yui-resize-handle-r{right:-3px;top:45%;}.yui-resize-knob .yui-resize-handle-l{left:-3px;top:45%;}.yui-resize-knob .yui-resize-handle-b{left:45%;bottom:-3px;}.yui-resize-status{position:absolute;top:-999px;left:-999px;padding:2px;font-size:80%;display:none;zoom:1;z-index:9999;}.yui-resize-status strong,.yui-resize-status em{font-weight:normal;font-style:normal;padding:1px;zoom:1;}.yui-skin-sam .yui-resize .yui-resize-handle{background-color:#F2F2F2;zoom:1;}.yui-skin-sam .yui-resize .yui-resize-handle-active{background-color:#7D98B8;zoom:1;}.yui-skin-sam .yui-resize .yui-resize-handle-l,.yui-skin-sam .yui-resize .yui-resize-handle-r,.yui-skin-sam .yui-resize .yui-resize-handle-l-active,.yui-skin-sam .yui-resize .yui-resize-handle-r-active{height:100%;zoom:1;}.yui-skin-sam .yui-resize-knob .yui-resize-handle{border:1px solid #808080;}.yui-skin-sam .yui-resize-hover .yui-resize-handle-active{opacity:1;filter:alpha(opacity=100);}.yui-skin-sam .yui-resize-proxy{border:1px dashed #426FD9;}.yui-skin-sam .yui-resize-status{border:1px solid #A6982B;border-top:1px solid #D4C237;background-color:#FFEE69;color:#000;}.yui-skin-sam .yui-resize-status strong,.yui-skin-sam .yui-resize-status em{float:left;display:block;clear:both;padding:1px;text-align:center;}.yui-skin-sam .yui-resize .yui-resize-handle-inner-r,.yui-skin-sam .yui-resize .yui-resize-handle-inner-l{background:transparent url(layout_sprite.png) no-repeat 0 -5px;height:16px;width:5px;position:absolute;top:45%;}.yui-skin-sam .yui-resize .yui-resize-handle-inner-t,.yui-skin-sam .yui-resize .yui-resize-handle-inner-b{background:transparent url(layout_sprite.png) no-repeat -20px 0;height:5px;width:16px;position:absolute;left:50%;}.yui-skin-sam .yui-resize .yui-resize-handle-br{background-image:url(layout_sprite.png);background-repeat:no-repeat;background-position:-22px -62px;}.yui-skin-sam .yui-resize .yui-resize-handle-tr{background-image:url(layout_sprite.png);background-repeat:no-repeat;background-position:-22px -42px;}.yui-skin-sam .yui-resize .yui-resize-handle-tl{background-image:url(layout_sprite.png);background-repeat:no-repeat;background-position:-22px -82px;}.yui-skin-sam .yui-resize .yui-resize-handle-bl{background-image:url(layout_sprite.png);background-repeat:no-repeat;background-position:-22px -23px;}.yui-skin-sam .yui-resize-knob .yui-resize-handle-t,.yui-skin-sam .yui-resize-knob .yui-resize-handle-r,.yui-skin-sam .yui-resize-knob .yui-resize-handle-b,.yui-skin-sam .yui-resize-knob .yui-resize-handle-l,.yui-skin-sam .yui-resize-knob .yui-resize-handle-tl,.yui-skin-sam .yui-resize-knob .yui-resize-handle-tr,.yui-skin-sam .yui-resize-knob .yui-resize-handle-bl,.yui-skin-sam .yui-resize-knob .yui-resize-handle-br,.yui-skin-sam .yui-resize-knob .yui-resize-handle-inner-t,.yui-skin-sam .yui-resize-knob .yui-resize-handle-inner-r,.yui-skin-sam .yui-resize-knob .yui-resize-handle-inner-b,.yui-skin-sam .yui-resize-knob .yui-resize-handle-inner-l,.yui-skin-sam .yui-resize-knob .yui-resize-handle-inner-tl,.yui-skin-sam .yui-resize-knob .yui-resize-handle-inner-tr,.yui-skin-sam .yui-resize-knob .yui-resize-handle-inner-bl,.yui-skin-sam .yui-resize-knob .yui-resize-handle-inner-br{background-image:none;}.yui-skin-sam .yui-resize-knob .yui-resize-handle-l,.yui-skin-sam .yui-resize-knob .yui-resize-handle-r,.yui-skin-sam .yui-resize-knob .yui-resize-handle-l-active,.yui-skin-sam .yui-resize-knob .yui-resize-handle-r-active{height:6px;width:6px;}.yui-skin-sam .yui-resize-textarea .yui-resize-handle-r{right:-8px;}.yui-skin-sam .yui-resize-textarea .yui-resize-handle-b{bottom:-8px;}.yui-skin-sam .yui-resize-textarea .yui-resize-handle-br{right:-8px;bottom:-8px;}
-.yui-busy{cursor:wait!important;}.yui-toolbar-container fieldset,.yui-editor-container fieldset{padding:0;margin:0;border:0;}.yui-toolbar-container legend{display:none;}.yui-skin-sam .yui-toolbar-container .yui-button button,.yui-skin-sam .yui-toolbar-container .yui-button a,.yui-skin-sam .yui-toolbar-container .yui-button a:visited{font-size:0;}.yui-skin-sam .yui-toolbar-container .yui-toolbar-select button,.yui-skin-sam .yui-toolbar-container .yui-toolbar-select a,.yui-skin-sam .yui-toolbar-container .yui-toolbar-select a:visited,.yui-skin-sam .yui-toolbar-container .yui-toolbar-spinbutton button,.yui-skin-sam .yui-toolbar-container .yui-toolbar-spinbutton a,.yui-skin-sam .yui-toolbar-container .yui-toolbar-spinbutton a:visited{font-size:12px;}.yui-skin-sam .yui-toolbar-container .yui-toolbar-spinbutton a.up,.yui-skin-sam .yui-toolbar-container .yui-toolbar-spinbutton a.down{font-size:0;line-height:0;padding:0;}.yui-toolbar-container .yui-toolbar-subcont{padding:.25em 0;zoom:1;}.yui-toolbar-container-collapsed .yui-toolbar-subcont{display:none;}.yui-toolbar-container .yui-toolbar-subcont:after{display:block;clear:both;visibility:hidden;content:'.';height:0;}.yui-toolbar-container span.yui-toolbar-draghandle{cursor:move;border-left:1px solid #999;border-right:1px solid #999;overflow:hidden;text-indent:77777px;width:2px;height:20px;display:block;clear:none;float:left;margin:0 0 0 .2em;}.yui-toolbar-container .yui-toolbar-titlebar.draggable{cursor:move;}.yui-toolbar-container .yui-toolbar-titlebar{position:relative;}.yui-toolbar-container .yui-toolbar-titlebar h2{font-weight:bold;letter-spacing:0;border:none;color:#000;margin:0;padding:.2em;}.yui-toolbar-container .yui-toolbar-titlebar h2 a{text-decoration:none;color:#000;cursor:default;}.yui-toolbar-container.yui-toolbar-grouped span.yui-toolbar-draghandle{height:40px;}.yui-toolbar-container .yui-toolbar-group{float:left;margin-right:.5em;zoom:1;}.yui-toolbar-container .yui-toolbar-group:after{display:block;clear:both;visibility:hidden;content:'.';height:0;}.yui-toolbar-container .yui-toolbar-group h3{font-size:75%;padding:0 0 0 .25em;margin:0;}.yui-toolbar-container span.yui-toolbar-separator{width:2px;padding:0;height:18px;margin:.2em 0 .2em .1em;display:none;float:left;}.yui-toolbar-container.yui-toolbar-grouped span.yui-toolbar-separator{height:45px;*height:50px;}.yui-toolbar-container.yui-toolbar-grouped .yui-toolbar-group span.yui-toolbar-separator{height:18px;display:block;}.yui-toolbar-container ul li{margin:0;padding:0;list-style-type:none;}.yui-toolbar-container .yui-toolbar-nogrouplabels h3{display:none;}.yui-toolbar-container .yui-push-button,.yui-toolbar-container .yui-color-button,.yui-toolbar-container .yui-menu-button{position:relative;cursor:pointer;}.yui-toolbar-container .yui-button .first-child,.yui-toolbar-container .yui-button .first-child a{height:100%;width:100%;overflow:hidden;font-size:0;}.yui-toolbar-container .yui-button-disabled{cursor:default;}.yui-toolbar-container .yui-button-disabled .yui-toolbar-icon{opacity:.5;filter:alpha(opacity=50);}.yui-toolbar-container .yui-button-disabled .up,.yui-toolbar-container .yui-button-disabled .down{opacity:.5;filter:alpha(opacity=50);}.yui-toolbar-container .yui-button a{overflow:hidden;}.yui-toolbar-container .yui-toolbar-select .first-child a{cursor:pointer;}.yui-toolbar-fontname-arial{font-family:Arial;}.yui-toolbar-fontname-arial-black{font-family:Arial Black;}.yui-toolbar-fontname-comic-sans-ms{font-family:Comic Sans MS;}.yui-toolbar-fontname-courier-new{font-family:Courier New;}.yui-toolbar-fontname-times-new-roman{font-family:Times New Roman;}.yui-toolbar-fontname-verdana{font-family:Verdana;}.yui-toolbar-fontname-impact{font-family:Impact;}.yui-toolbar-fontname-lucida-console{font-family:Lucida Console;}.yui-toolbar-fontname-tahoma{font-family:Tahoma;}.yui-toolbar-fontname-trebuchet-ms{font-family:Trebuchet MS;}.yui-toolbar-container .yui-toolbar-spinbutton{position:relative;}.yui-toolbar-container .yui-toolbar-spinbutton .first-child a{z-index:0;opacity:1;}.yui-toolbar-container .yui-toolbar-spinbutton a.up,.yui-toolbar-container .yui-toolbar-spinbutton a.down{position:absolute;display:block;right:0;cursor:pointer;z-index:1;padding:0;margin:0;}.yui-toolbar-container .yui-overlay{position:absolute;}.yui-toolbar-container .yui-overlay ul li{margin:0;list-style-type:none;}.yui-toolbar-container{z-index:1;}.yui-editor-container .yui-editor-editable-container{position:relative;z-index:0;width:100%;}.yui-editor-container .yui-editor-masked{background-color:#CCC;height:100%;width:100%;position:absolute;top:0;left:0;opacity:.5;filter:alpha(opacity=50);}.yui-editor-container iframe{border:0;padding:0;margin:0;zoom:1;display:block;}.yui-editor-container .yui-editor-editable{padding:0;margin:0;}.yui-editor-container .dompath{font-size:85%;}.yui-editor-panel .hd{text-align:left;position:relative;}.yui-editor-panel .hd h3{font-weight:bold;padding:.25em 0 .25em .25em;margin:0;}.yui-editor-panel .bd{width:100%;zoom:1;position:relative;}.yui-editor-panel .bd div.yui-editor-body-cont{padding:.25em .1em;zoom:1;}.yui-editor-panel .bd .gecko form{overflow:auto;}.yui-editor-panel .bd div.yui-editor-body-cont:after{display:block;clear:both;visibility:hidden;content:'.';height:0;}.yui-editor-panel .ft{text-align:right;width:99%;float:left;clear:both;}.yui-editor-panel .ft span.tip{display:block;position:relative;padding:.5em .5em .5em 23px;text-align:left;zoom:1;}.yui-editor-panel label{clear:both;float:left;padding:0;width:100%;text-align:left;zoom:1;}.yui-editor-panel .gecko label{overflow:auto;}.yui-editor-panel label strong{float:left;width:6em;}.yui-editor-panel .removeLink{width:80%;text-align:right;}.yui-editor-panel label input{margin-left:.25em;float:left;}.yui-editor-panel .yui-toolbar-group{margin-bottom:.75em;}.yui-editor-panel .height-width{float:left;}.yui-editor-panel .height-width span{font-style:italic;display:block;float:left;overflow:visible;}.yui-editor-panel .height-width span.info{font-size:70%;margin-top:3px;float:none;}
-.yui-editor-panel .yui-toolbar-bordersize,.yui-editor-panel .yui-toolbar-bordertype{font-size:75%;}.yui-editor-panel .yui-toolbar-container span.yui-toolbar-separator{border:none;}.yui-editor-panel .yui-toolbar-bordersize span a span,.yui-editor-panel .yui-toolbar-bordertype span a span{display:block;height:8px;left:4px;position:absolute;top:3px;_top:-5px;width:24px;text-indent:52px;font-size:0;}.yui-editor-panel .yui-toolbar-bordertype span a span.yui-toolbar-bordertype-solid{border-bottom:1px solid black;}.yui-editor-panel .yui-toolbar-bordertype span a span.yui-toolbar-bordertype-dotted{border-bottom:1px dotted black;}.yui-editor-panel .yui-toolbar-bordertype span a span.yui-toolbar-bordertype-dashed{border-bottom:1px dashed black;}.yui-editor-panel .yui-toolbar-bordersize span a span.yui-toolbar-bordersize-0{*top:0;text-indent:0;font-size:75%;}.yui-editor-panel .yui-toolbar-bordersize span a span.yui-toolbar-bordersize-1{border-bottom:1px solid black;}.yui-editor-panel .yui-toolbar-bordersize span a span.yui-toolbar-bordersize-2{border-bottom:2px solid black;}.yui-editor-panel .yui-toolbar-bordersize span a span.yui-toolbar-bordersize-3{top:2px;*top:-5px;border-bottom:3px solid black;}.yui-editor-panel .yui-toolbar-bordersize span a span.yui-toolbar-bordersize-4{top:1px;*top:-5px;border-bottom:4px solid black;}.yui-editor-panel .yui-toolbar-bordersize span a span.yui-toolbar-bordersize-5{top:1px;*top:-5px;border-bottom:5px solid black;}.yui-toolbar-container .yui-toolbar-bordersize-menu,.yui-toolbar-container .yui-toolbar-bordertype-menu{width:95px!important;}.yui-toolbar-bordersize-menu .yuimenuitemlabel,.yui-toolbar-bordertype-menu .yuimenuitemlabel,.yui-toolbar-bordersize-menu .yuimenuitemlabel,.yui-toolbar-bordertype-menu .yuimenuitemlabel:hover{margin:0 3px 7px 17px;}.yui-toolbar-bordersize-menu .yuimenuitemlabel .checkedindicator,.yui-toolbar-bordertype-menu .yuimenuitemlabel .checkedindicator{position:absolute;left:-12px;*top:14px;*left:0;}.yui-toolbar-bordersize-menu li.yui-toolbar-bordersize-1 a{border-bottom:1px solid black;height:14px;}.yui-toolbar-bordersize-menu li.yui-toolbar-bordersize-2 a{border-bottom:2px solid black;height:14px;}.yui-toolbar-bordersize-menu li.yui-toolbar-bordersize-3 a{border-bottom:3px solid black;height:14px;}.yui-toolbar-bordersize-menu li.yui-toolbar-bordersize-4 a{border-bottom:4px solid black;height:14px;}.yui-toolbar-bordersize-menu li.yui-toolbar-bordersize-5 a{border-bottom:5px solid black;height:14px;}.yui-toolbar-bordertype-menu li.yui-toolbar-bordertype-solid a{border-bottom:1px solid black;height:14px;}.yui-toolbar-bordertype-menu li.yui-toolbar-bordertype-dashed a{border-bottom:1px dashed black;height:14px;}.yui-toolbar-bordertype-menu li.yui-toolbar-bordertype-dotted a{border-bottom:1px dotted black;height:14px;}h2.yui-editor-skipheader,h3.yui-editor-skipheader{height:0;margin:0;padding:0;border:none;width:0;overflow:hidden;position:absolute;}.yui-toolbar-colors{width:133px;zoom:1;display:none;z-index:100;overflow:hidden;}.yui-toolbar-colors:after{display:block;clear:both;visibility:hidden;content:'.';height:0;}.yui-toolbar-colors a{height:9px;width:9px;float:left;display:block;overflow:hidden;text-indent:999px;margin:0;cursor:pointer;border:1px solid #F6F7EE;}.yui-toolbar-colors a:hover{border:1px solid black;}.yui-color-button-menu{overflow:visible;background-color:transparent;}.yui-toolbar-colors span{position:relative;display:block;padding:3px;overflow:hidden;float:left;width:100%;zoom:1;}.yui-toolbar-colors span:after{display:block;clear:both;visibility:hidden;content:'.';height:0;}.yui-toolbar-colors span em{height:35px;width:30px;float:left;display:block;overflow:hidden;text-indent:999px;margin:.75px;border:1px solid black;}.yui-toolbar-colors span strong{font-weight:normal;padding-left:3px;display:block;font-size:85%;float:left;width:65%;}.yui-toolbar-group-undoredo h3,.yui-toolbar-group-insertitem h3,.yui-toolbar-group-indentlist h3{width:68px;}.yui-toolbar-group-indentlist2 h3{width:122px;}.yui-toolbar-group-alignment h3{width:130px;}.yui-skin-sam .yui-editor-container{border:1px solid #808080;}.yui-skin-sam .yui-toolbar-container{zoom:1;}.yui-skin-sam .yui-toolbar-container .yui-toolbar-titlebar{background:url(sprite.png) repeat-x 0 -200px;position:relative;}.yui-skin-sam .yui-editor-container .draggable .yui-toolbar-titlebar{cursor:move;}.yui-skin-sam .yui-toolbar-container .yui-toolbar-titlebar h2{color:#000;font-weight:bold;margin:0;padding:.3em 1em;font-size:100%;text-align:left;}.yui-skin-sam .yui-toolbar-container .yui-toolbar-group h3{color:#808080;font-size:75%;margin:1em 0 0;padding-bottom:0;padding-left:.25em;text-align:left;}.yui-toolbar-container span.yui-toolbar-separator{border:none;text-indent:33px;overflow:hidden;margin:0 .25em;}.yui-skin-sam .yui-toolbar-container{background-color:#F2F2F2;}.yui-skin-sam .yui-toolbar-container .yui-toolbar-subcont{padding:0 1em .35em;border-bottom:1px solid #808080;}.yui-skin-sam .yui-toolbar-container-collapsed .yui-toolbar-titlebar{border-bottom:1px solid #808080;}.yui-skin-sam .yui-editor-container .visible .yui-menu-shadow,.yui-skin-sam .yui-editor-panel .visible .yui-menu-shadow{display:none;}.yui-skin-sam .yui-editor-container ul{list-style-type:none;margin:0;padding:0;}.yui-skin-sam .yui-editor-container ul li{list-style-type:none;margin:0;padding:0;}.yui-skin-sam .yui-toolbar-group ul li.yui-toolbar-groupitem{float:left;}.yui-skin-sam .yui-editor-container .dompath{background-color:#F2F2F2;border-top:1px solid #808080;color:#999;text-align:left;padding:.25em;}.yui-skin-sam .yui-toolbar-container .collapse{background:url(sprite.png) no-repeat 0 -400px;}.yui-skin-sam .yui-toolbar-container .collapsed{background:url(sprite.png) no-repeat 0 -350px;}.yui-skin-sam .yui-toolbar-container .yui-toolbar-titlebar span.collapse{cursor:pointer;position:absolute;top:4px;right:2px;display:block;overflow:hidden;height:15px;width:15px;text-indent:9999px;}
-.yui-skin-sam .yui-toolbar-container .yui-push-button,.yui-skin-sam .yui-toolbar-container .yui-color-button,.yui-skin-sam .yui-toolbar-container .yui-menu-button{background:url(sprite.png) repeat-x 0 0;position:relative;display:block;height:22px;width:30px;_font-size:0;margin:0;border-color:#808080;color:#f2f2f2;border-style:solid;border-width:1px 0;zoom:1;}.yui-skin-sam .yui-toolbar-container .yui-push-button a,.yui-skin-sam .yui-toolbar-container .yui-color-button a,.yui-skin-sam .yui-toolbar-container .yui-menu-button a{padding-left:35px;height:20px;text-decoration:none;font-size:0;line-height:2;display:block;color:#000;overflow:hidden;white-space:nowrap;}.yui-skin-sam .yui-toolbar-container .yui-toolbar-spinbutton a,.yui-skin-sam .yui-toolbar-container .yui-toolbar-select a{font-size:12px;}.yui-skin-sam .yui-toolbar-container .yui-push-button .first-child,.yui-skin-sam .yui-toolbar-container .yui-color-button .first-child,.yui-skin-sam .yui-toolbar-container .yui-menu-button .first-child{border-color:#808080;border-style:solid;border-width:0 1px;margin:0 -1px;display:block;position:relative;}.yui-skin-sam .yui-toolbar-container .yui-push-button-disabled .first-child,.yui-skin-sam .yui-toolbar-container .yui-color-button-disabled .first-child,.yui-skin-sam .yui-toolbar-container .yui-menu-button-disabled .first-child{border-color:#ccc;}.yui-skin-sam .yui-toolbar-container .yui-push-button-disabled a,.yui-skin-sam .yui-toolbar-container .yui-color-button-disabled a,.yui-skin-sam .yui-toolbar-container .yui-menu-button-disabled a{color:#A6A6A6;cursor:default;}.yui-skin-sam .yui-toolbar-container .yui-push-button-disabled,.yui-skin-sam .yui-toolbar-container .yui-color-button-disabled,.yui-skin-sam .yui-toolbar-container .yui-menu-button-disabled{border-color:#ccc;}.yui-skin-sam .yui-toolbar-container .yui-button .first-child{*left:0;}.yui-skin-sam .yui-toolbar-container .yui-toolbar-fontname{width:135px;}.yui-skin-sam .yui-toolbar-container .yui-toolbar-heading{width:92px;}.yui-skin-sam .yui-toolbar-container .yui-button-hover{background:url(sprite.png) repeat-x 0 -1300px;border-color:#808080;}.yui-skin-sam .yui-toolbar-container .yui-button-selected{background:url(sprite.png) repeat-x 0 -1700px;border-color:#808080;}.yui-skin-sam .yui-toolbar-container .yui-toolbar-nogrouplabels h3{display:none;}.yui-skin-sam .yui-toolbar-container .yui-toolbar-nogrouplabels .yui-toolbar-group{margin-top:.75em;}.yui-skin-sam .yui-toolbar-container .yui-push-button span.yui-toolbar-icon,.yui-skin-sam .yui-toolbar-container .yui-color-button span.yui-toolbar-icon,.yui-skin-sam .yui-toolbar-container .yui-menu-button span.yui-toolbar-icon{display:block;position:absolute;top:2px;height:18px;width:18px;overflow:hidden;background:url(editor-sprite.gif) no-repeat 30px 30px;}.yui-skin-sam .yui-toolbar-container .yui-button-selected span.yui-toolbar-icon,.yui-skin-sam .yui-toolbar-container .yui-button-hover span.yui-toolbar-icon{background-image:url(editor-sprite-active.gif);}.yui-skin-sam .yui-toolbar-container .visible .yuimenuitemlabel{cursor:pointer;color:#000;*position:relative;}.yui-skin-sam .yui-toolbar-container .yui-button-menu{background-color:#fff;}.yui-skin-sam .yui-toolbar-container .yui-button-menu .yui-menu-body-scrolled{position:relative;}.yui-skin-sam div.yuimenu li.selected{background-color:#B3D4FF;}.yui-skin-sam div.yuimenu li.selected a.selected{color:#000;}.yui-skin-sam .yui-toolbar-container .yui-toolbar-bold span.yui-toolbar-icon{background-position:0 0;left:5px;}.yui-skin-sam .yui-toolbar-container .yui-toolbar-strikethrough span.yui-toolbar-icon{background-position:0 -108px;left:5px;}.yui-skin-sam .yui-toolbar-container .yui-toolbar-italic span.yui-toolbar-icon{background-position:0 -36px;left:5px;}.yui-skin-sam .yui-toolbar-container .yui-toolbar-undo span.yui-toolbar-icon{background-position:0 -1326px;left:5px;}.yui-skin-sam .yui-toolbar-container .yui-toolbar-redo span.yui-toolbar-icon{background-position:0 -1355px;left:5px;}.yui-skin-sam .yui-toolbar-container .yui-toolbar-underline span.yui-toolbar-icon{background-position:0 -72px;left:5px;}.yui-skin-sam .yui-toolbar-container .yui-toolbar-subscript span.yui-toolbar-icon{background-position:0 -180px;left:5px;}.yui-skin-sam .yui-toolbar-container .yui-toolbar-superscript span.yui-toolbar-icon{background-position:0 -144px;left:5px;}.yui-skin-sam .yui-toolbar-container .yui-toolbar-forecolor span.yui-toolbar-icon{background-position:0 -216px;left:5px;}.yui-skin-sam .yui-toolbar-container .yui-toolbar-backcolor span.yui-toolbar-icon{background-position:0 -288px;left:5px;}.yui-skin-sam .yui-toolbar-container .yui-toolbar-justifyleft span.yui-toolbar-icon{background-position:0 -324px;left:5px;}.yui-skin-sam .yui-toolbar-container .yui-toolbar-justifycenter span.yui-toolbar-icon{background-position:0 -360px;left:5px;}.yui-skin-sam .yui-toolbar-container .yui-toolbar-justifyright span.yui-toolbar-icon{background-position:0 -396px;left:5px;}.yui-skin-sam .yui-toolbar-container .yui-toolbar-justifyfull span.yui-toolbar-icon{background-position:0 -432px;left:5px;}.yui-skin-sam .yui-toolbar-container .yui-toolbar-indent span.yui-toolbar-icon{background-position:0 -720px;left:5px;}.yui-skin-sam .yui-toolbar-container .yui-toolbar-outdent span.yui-toolbar-icon{background-position:0 -684px;left:5px;}.yui-skin-sam .yui-toolbar-container .yui-toolbar-createlink span.yui-toolbar-icon{background-position:0 -792px;left:5px;}.yui-skin-sam .yui-toolbar-container .yui-toolbar-insertimage span.yui-toolbar-icon{background-position:1px -756px;left:5px;}.yui-skin-sam .yui-toolbar-container .yui-toolbar-left span.yui-toolbar-icon{background-position:0 -972px;left:5px;}.yui-skin-sam .yui-toolbar-container .yui-toolbar-right span.yui-toolbar-icon{background-position:0 -936px;left:5px;}.yui-skin-sam .yui-toolbar-container .yui-toolbar-inline span.yui-toolbar-icon{background-position:0 -900px;left:5px;}
-.yui-skin-sam .yui-toolbar-container .yui-toolbar-block span.yui-toolbar-icon{background-position:0 -864px;left:5px;}.yui-skin-sam .yui-toolbar-container .yui-toolbar-bordercolor span.yui-toolbar-icon{background-position:0 -252px;left:5px;}.yui-skin-sam .yui-toolbar-container .yui-toolbar-removeformat span.yui-toolbar-icon{background-position:0 -1080px;left:5px;}.yui-skin-sam .yui-toolbar-container .yui-toolbar-hiddenelements span.yui-toolbar-icon{background-position:0 -1044px;left:5px;}.yui-skin-sam .yui-toolbar-container .yui-toolbar-insertunorderedlist span.yui-toolbar-icon{background-position:0 -468px;left:5px;}.yui-skin-sam .yui-toolbar-container .yui-toolbar-insertorderedlist span.yui-toolbar-icon{background-position:0 -504px;left:5px;}.yui-skin-sam .yui-toolbar-container .yui-toolbar-spinbutton,.yui-skin-sam .yui-toolbar-container .yui-toolbar-spinbutton .first-child{width:35px;}.yui-skin-sam .yui-toolbar-container .yui-toolbar-spinbutton .first-child a{padding-left:2px;text-align:left;}.yui-skin-sam .yui-toolbar-container .yui-toolbar-spinbutton span.yui-toolbar-icon{display:none;}.yui-skin-sam .yui-toolbar-container .yui-toolbar-spinbutton a.up,.yui-skin-sam .yui-toolbar-container .yui-toolbar-spinbutton a.down{right:2px;background:url(editor-sprite.gif) no-repeat 0 -1222px;overflow:hidden;height:6px;width:7px;min-height:0;padding:0;}.yui-skin-sam .yui-toolbar-container .yui-toolbar-spinbutton a.up{top:2px;background-position:0 -1222px;}.yui-skin-sam .yui-toolbar-container .yui-toolbar-spinbutton a.down{bottom:2px;background-position:0 -1187px;}.yui-skin-sam .yui-toolbar-container select{height:22px;border:1px solid #808080;}.yui-skin-sam .yui-toolbar-container .yui-toolbar-select .first-child a{padding-left:5px;text-align:left;}.yui-skin-sam .yui-toolbar-container .yui-toolbar-select span.yui-toolbar-icon{background:url(editor-sprite.gif) no-repeat 0 -1144px;overflow:hidden;right:-2px;top:0;height:20px;}.yui-skin-sam .yui-editor-panel .yui-color-button-menu .bd{background-color:transparent;border:none;width:135px;}.yui-skin-sam .yui-color-button-menu .yui-toolbar-colors{border:1px solid #808080;}.yui-skin-sam .yui-editor-panel{padding:0;margin:0;border:none;background-color:transparent;overflow:visible;position:absolute;}.yui-skin-sam .yui-editor-panel .hd{margin:10px 0 0;padding:0;border:none;}.yui-skin-sam .yui-editor-panel .hd h3{color:#000;border:1px solid #808080;background:url(sprite.png) repeat-x 0 -200px;width:99%;position:relative;margin:0;padding:3px 0 0 0;font-size:93%;text-indent:5px;height:20px;}.yui-skin-sam .yui-editor-panel .bd{background-color:#F2F2F2;border-left:1px solid #808080;border-right:1px solid #808080;width:99%;margin:0;padding:0;overflow:visible;}.yui-skin-sam .yui-editor-panel ul{list-style-type:none;margin:0;padding:0;}.yui-skin-sam .yui-editor-panel ul li{margin:0;padding:0;}.yui-skin-sam .yui-editor-panel .yui-toolbar-container .yui-toolbar-subcont{padding:0;border:none;margin-top:.35em;}.yui-skin-sam .yui-editor-panel .yui-toolbar-bordersize,.yui-skin-sam .yui-editor-panel .yui-toolbar-bordertype{width:50px;}.yui-skin-sam .yui-editor-panel label{display:block;float:none;padding:4px 0;margin-bottom:7px;}.yui-skin-sam .yui-editor-panel label strong{font-weight:normal;font-size:93%;text-align:right;padding-top:2px;}.yui-skin-sam .yui-editor-panel label input{width:75%;}.yui-skin-sam .yui-editor-panel .createlink_target,.yui-skin-sam .yui-editor-panel .insertimage_target{width:auto;margin-right:5px;}.yui-skin-sam .yui-editor-panel .removeLink{width:98%;}.yui-skin-sam .yui-editor-panel label input.warning{background-color:#FFEE69;}.yui-skin-sam .yui-editor-panel .yui-toolbar-group h3{color:#000;float:left;font-weight:normal;font-size:93%;margin:5px 0 0 0;padding:0 3px 0 0;text-align:right;}.yui-skin-sam .yui-editor-panel .height-width h3{margin:3px 0 0 10px;}.yui-skin-sam .yui-editor-panel .height-width{margin:3px 0 0 35px;*margin-left:14px;width:42%;*width:44%;}.yui-skin-sam .yui-editor-panel .yui-toolbar-group-border{width:190px;}.yui-skin-sam .yui-editor-panel .no-button .yui-toolbar-group-border{width:210px;}.yui-skin-sam .yui-editor-panel .yui-toolbar-group-padding{width:203px;_width:198px;}.yui-skin-sam .yui-editor-panel .no-button .yui-toolbar-group-padding{width:172px;}.yui-skin-sam .yui-editor-panel .yui-toolbar-group-padding h3{margin-left:25px;*margin-left:12px;}.yui-skin-sam .yui-editor-panel .yui-toolbar-group-textflow{width:182px;}.yui-skin-sam .yui-editor-panel .hd{background:none;}.yui-skin-sam .yui-editor-panel .ft{background-color:#F2F2F2;border:1px solid #808080;border-top:none;padding:0;margin:0 0 2px 0;}.yui-skin-sam .yui-editor-panel .hd span.close{background:url(sprite.png) no-repeat 0 -300px;cursor:pointer;display:block;height:16px;overflow:hidden;position:absolute;right:5px;text-indent:500px;top:2px;width:26px;}.yui-skin-sam .yui-editor-panel .ft span.tip{background-color:#EDF5FF;border-top:1px solid #808080;font-size:85%;}.yui-skin-sam .yui-editor-panel .ft span.tip strong{display:block;float:left;margin:0 2px 8px 0;}.yui-skin-sam .yui-editor-panel .ft span.tip span.icon{background:url(editor-sprite.gif) no-repeat 0 -1260px;display:block;height:20px;left:2px;position:absolute;top:8px;width:20px;}.yui-skin-sam .yui-editor-panel .ft span.tip span.icon-info{background-position:2px -1260px;}.yui-skin-sam .yui-editor-panel .ft span.tip span.icon-warn{background-position:2px -1296px;}.yui-skin-sam .yui-editor-panel .hd span.knob{position:absolute;height:10px;width:28px;top:-10px;left:25px;text-indent:9999px;overflow:hidden;background:url(editor-knob.gif) no-repeat 0 0;}.yui-skin-sam .yui-editor-panel .yui-toolbar-container{float:left;width:100%;background-image:none;border:none;}.yui-skin-sam .yui-editor-panel .yui-toolbar-container .bd{background-color:#fff;}.yui-editor-blankimage{background-image:url(blankimage.png);}.yui-skin-sam .yui-editor-container .yui-resize-handle-br{height:11px;width:11px;background-position:-20px -60px;background-color:transparent;}
-.yui-h-slider,.yui-v-slider,.yui-region-slider{position:relative;}.yui-h-slider .yui-slider-thumb,.yui-v-slider .yui-slider-thumb,.yui-region-slider .yui-slider-thumb{position:absolute;cursor:default;}.yui-skin-sam .yui-h-slider{background:url(bg-h.gif) no-repeat 5px 0;height:28px;width:228px;}.yui-skin-sam .yui-h-slider .yui-slider-thumb{top:4px;}.yui-skin-sam .yui-v-slider{background:url(bg-v.gif) no-repeat 12px 0;height:228px;width:48px;}.yui-skin-sam .yui-region-slider{height:228px;width:228px;}
-.yui-navset .yui-nav li,.yui-navset .yui-navset-top .yui-nav li,.yui-navset .yui-navset-bottom .yui-nav li{margin:0 .5em 0 0;}.yui-navset-left .yui-nav li,.yui-navset-right .yui-nav li{margin:0 0 .5em;}.yui-navset .yui-content .yui-hidden{border:0;height:0;width:0;padding:0;position:absolute;left:-999999px;overflow:hidden;visibility:hidden;}.yui-navset .yui-navset-left .yui-nav,.yui-navset .yui-navset-right .yui-nav,.yui-navset-left .yui-nav,.yui-navset-right .yui-nav{width:6em;}.yui-navset-top .yui-nav,.yui-navset-bottom .yui-nav{width:auto;}.yui-navset .yui-navset-left,.yui-navset-left{padding:0 0 0 6em;}.yui-navset-right{padding:0 6em 0 0;}.yui-navset-top,.yui-navset-bottom{padding:auto;}.yui-nav,.yui-nav li{margin:0;padding:0;list-style:none;}.yui-navset li em{font-style:normal;}.yui-navset{position:relative;zoom:1;}.yui-navset .yui-content,.yui-navset .yui-content div{zoom:1;}.yui-navset .yui-content:after{content:'';display:block;clear:both;}.yui-navset .yui-nav li,.yui-navset .yui-navset-top .yui-nav li,.yui-navset .yui-navset-bottom .yui-nav li{display:inline-block;display:-moz-inline-stack;*display:inline;vertical-align:bottom;cursor:pointer;zoom:1;}.yui-navset-left .yui-nav li,.yui-navset-right .yui-nav li{display:block;}.yui-navset .yui-nav a{position:relative;}.yui-navset .yui-nav li a,.yui-navset-top .yui-nav li a,.yui-navset-bottom .yui-nav li a{display:block;display:inline-block;vertical-align:bottom;zoom:1;}.yui-navset-left .yui-nav li a,.yui-navset-right .yui-nav li a{display:block;}.yui-navset-bottom .yui-nav li a{vertical-align:text-top;}.yui-navset .yui-nav li a em,.yui-navset-top .yui-nav li a em,.yui-navset-bottom .yui-nav li a em{display:block;}.yui-navset .yui-navset-left .yui-nav,.yui-navset .yui-navset-right .yui-nav,.yui-navset-left .yui-nav,.yui-navset-right .yui-nav{position:absolute;z-index:1;}.yui-navset-top .yui-nav,.yui-navset-bottom .yui-nav{position:static;}.yui-navset .yui-navset-left .yui-nav,.yui-navset-left .yui-nav{left:0;right:auto;}.yui-navset .yui-navset-right .yui-nav,.yui-navset-right .yui-nav{right:0;left:auto;}.yui-skin-sam .yui-navset .yui-nav,.yui-skin-sam .yui-navset .yui-navset-top .yui-nav{border:solid #2647a0;border-width:0 0 5px;zoom:1;}.yui-skin-sam .yui-navset .yui-nav li,.yui-skin-sam .yui-navset .yui-navset-top .yui-nav li{margin:0 .16em 0 0;padding:1px 0 0;zoom:1;}.yui-skin-sam .yui-navset .yui-nav .selected,.yui-skin-sam .yui-navset .yui-navset-top .yui-nav .selected{margin:0 .16em -1px 0;}.yui-skin-sam .yui-navset .yui-nav a,.yui-skin-sam .yui-navset .yui-navset-top .yui-nav a{background:#d8d8d8 url(sprite.png) repeat-x;border:solid #a3a3a3;border-width:0 1px;color:#000;position:relative;text-decoration:none;}.yui-skin-sam .yui-navset .yui-nav a em,.yui-skin-sam .yui-navset .yui-navset-top .yui-nav a em{border:solid #a3a3a3;border-width:1px 0 0;cursor:hand;padding:.25em .75em;left:0;right:0;bottom:0;top:-1px;position:relative;}.yui-skin-sam .yui-navset .yui-nav .selected a,.yui-skin-sam .yui-navset .yui-nav .selected a:focus,.yui-skin-sam .yui-navset .yui-nav .selected a:hover{background:#2647a0 url(sprite.png) repeat-x left -1400px;color:#fff;}.yui-skin-sam .yui-navset .yui-nav a:hover,.yui-skin-sam .yui-navset .yui-nav a:focus{background:#bfdaff url(sprite.png) repeat-x left -1300px;outline:0;}.yui-skin-sam .yui-navset .yui-nav .selected a em{padding:.35em .75em;}.yui-skin-sam .yui-navset .yui-nav .selected a,.yui-skin-sam .yui-navset .yui-nav .selected a em{border-color:#243356;}.yui-skin-sam .yui-navset .yui-content{background:#edf5ff;}.yui-skin-sam .yui-navset .yui-content,.yui-skin-sam .yui-navset .yui-navset-top .yui-content{border:1px solid #808080;border-top-color:#243356;padding:.25em .5em;}.yui-skin-sam .yui-navset-left .yui-nav,.yui-skin-sam .yui-navset .yui-navset-left .yui-nav,.yui-skin-sam .yui-navset .yui-navset-right .yui-nav,.yui-skin-sam .yui-navset-right .yui-nav{border-width:0 5px 0 0;Xposition:absolute;top:0;bottom:0;}.yui-skin-sam .yui-navset .yui-navset-right .yui-nav,.yui-skin-sam .yui-navset-right .yui-nav{border-width:0 0 0 5px;}.yui-skin-sam .yui-navset-left .yui-nav li,.yui-skin-sam .yui-navset .yui-navset-left .yui-nav li,.yui-skin-sam .yui-navset-right .yui-nav li{margin:0 0 .16em;padding:0 0 0 1px;}.yui-skin-sam .yui-navset-right .yui-nav li{padding:0 1px 0 0;}.yui-skin-sam .yui-navset-left .yui-nav .selected,.yui-skin-sam .yui-navset .yui-navset-left .yui-nav .selected{margin:0 -1px .16em 0;}.yui-skin-sam .yui-navset-right .yui-nav .selected{margin:0 0 .16em -1px;}.yui-skin-sam .yui-navset-left .yui-nav a,.yui-skin-sam .yui-navset-right .yui-nav a{border-width:1px 0;}.yui-skin-sam .yui-navset-left .yui-nav a em,.yui-skin-sam .yui-navset .yui-navset-left .yui-nav a em,.yui-skin-sam .yui-navset-right .yui-nav a em{border-width:0 0 0 1px;padding:.2em .75em;top:auto;left:-1px;}.yui-skin-sam .yui-navset-right .yui-nav a em{border-width:0 1px 0 0;left:auto;right:-1px;}.yui-skin-sam .yui-navset-left .yui-nav a,.yui-skin-sam .yui-navset-left .yui-nav .selected a,.yui-skin-sam .yui-navset-left .yui-nav a:hover,.yui-skin-sam .yui-navset-right .yui-nav a,.yui-skin-sam .yui-navset-right .yui-nav .selected a,.yui-skin-sam .yui-navset-right .yui-nav a:hover,.yui-skin-sam .yui-navset-bottom .yui-nav a,.yui-skin-sam .yui-navset-bottom .yui-nav .selected a,.yui-skin-sam .yui-navset-bottom .yui-nav a:hover{background-image:none;}.yui-skin-sam .yui-navset-left .yui-content{border:1px solid #808080;border-left-color:#243356;}.yui-skin-sam .yui-navset-bottom .yui-nav,.yui-skin-sam .yui-navset .yui-navset-bottom .yui-nav{border-width:5px 0 0;}.yui-skin-sam .yui-navset .yui-navset-bottom .yui-nav .selected,.yui-skin-sam .yui-navset-bottom .yui-nav .selected{margin:-1px .16em 0 0;}.yui-skin-sam .yui-navset .yui-navset-bottom .yui-nav li,.yui-skin-sam .yui-navset-bottom .yui-nav li{padding:0 0 1px 0;vertical-align:top;}.yui-skin-sam .yui-navset .yui-navset-bottom .yui-nav a em,.yui-skin-sam .yui-navset-bottom .yui-nav a em{border-width:0 0 1px;top:auto;bottom:-1px;}
-.yui-skin-sam .yui-navset-bottom .yui-content,.yui-skin-sam .yui-navset .yui-navset-bottom .yui-content{border:1px solid #808080;border-bottom-color:#243356;}
-table.ygtvtable{margin-bottom:0;border:none;border-collapse:collapse;}td.ygtvcell{border:none;padding:0;}a.ygtvspacer{text-decoration:none;outline-style:none;display:block;}.ygtvtn{width:18px;height:22px;background:url(treeview-sprite.gif) 0 -5600px no-repeat;cursor:pointer;}.ygtvtm{width:18px;height:22px;cursor:pointer;background:url(treeview-sprite.gif) 0 -4000px no-repeat;}.ygtvtmh,.ygtvtmhh{width:18px;height:22px;cursor:pointer;background:url(treeview-sprite.gif) 0 -4800px no-repeat;}.ygtvtp{width:18px;height:22px;cursor:pointer;background:url(treeview-sprite.gif) 0 -6400px no-repeat;}.ygtvtph,.ygtvtphh{width:18px;height:22px;cursor:pointer;background:url(treeview-sprite.gif) 0 -7200px no-repeat;}.ygtvln{width:18px;height:22px;background:url(treeview-sprite.gif) 0 -1600px no-repeat;cursor:pointer;}.ygtvlm{width:18px;height:22px;cursor:pointer;background:url(treeview-sprite.gif) 0 0 no-repeat;}.ygtvlmh,.ygtvlmhh{width:18px;height:22px;cursor:pointer;background:url(treeview-sprite.gif) 0 -800px no-repeat;}.ygtvlp{width:18px;height:22px;cursor:pointer;background:url(treeview-sprite.gif) 0 -2400px no-repeat;}.ygtvlph,.ygtvlphh{width:18px;height:22px;cursor:pointer;background:url(treeview-sprite.gif) 0 -3200px no-repeat;cursor:pointer;}.ygtvloading{width:18px;height:22px;background:url(treeview-loading.gif) 0 0 no-repeat;}.ygtvdepthcell{width:18px;height:22px;background:url(treeview-sprite.gif) 0 -8000px no-repeat;}.ygtvblankdepthcell{width:18px;height:22px;}* html .ygtvchildren{height:2%;}.ygtvlabel,.ygtvlabel:link,.ygtvlabel:visited,.ygtvlabel:hover{margin-left:2px;text-decoration:none;background-color:white;cursor:pointer;}.ygtvcontent{cursor:default;}.ygtvspacer{height:22px;width:18px;}.ygtvfocus{background-color:#c0e0e0;border:none;}.ygtvfocus .ygtvlabel,.ygtvfocus .ygtvlabel:link,.ygtvfocus .ygtvlabel:visited,.ygtvfocus .ygtvlabel:hover{background-color:#c0e0e0;}.ygtvfocus a{outline-style:none;}.ygtvok{width:18px;height:22px;background:url(treeview-sprite.gif) 0 -8800px no-repeat;}.ygtvok:hover{background:url(treeview-sprite.gif) 0 -8844px no-repeat;}.ygtvcancel{width:18px;height:22px;background:url(treeview-sprite.gif) 0 -8822px no-repeat;}.ygtvcancel:hover{background:url(treeview-sprite.gif) 0 -8866px no-repeat;}.ygtv-label-editor{background-color:#f2f2f2;border:1px solid silver;position:absolute;display:none;overflow:hidden;margin:auto;z-index:9000;}.ygtv-edit-TextNode{width:190px;}.ygtv-edit-TextNode .ygtvcancel,.ygtv-edit-TextNode .ygtvok{border:none;}.ygtv-edit-TextNode .ygtv-button-container{float:right;}.ygtv-edit-TextNode .ygtv-input input{width:140px;}.ygtv-edit-DateNode .ygtvcancel{border:none;}.ygtv-edit-DateNode .ygtvok{display:none;}.ygtv-edit-DateNode .ygtv-button-container{text-align:right;margin:auto;}.ygtv-highlight .ygtv-highlight1,.ygtv-highlight .ygtv-highlight1 .ygtvlabel{background-color:blue;color:white;}.ygtv-highlight .ygtv-highlight2,.ygtv-highlight .ygtv-highlight2 .ygtvlabel{background-color:silver;}.ygtv-highlight .ygtv-highlight0 .ygtvfocus .ygtvlabel,.ygtv-highlight .ygtv-highlight1 .ygtvfocus .ygtvlabel,.ygtv-highlight .ygtv-highlight2 .ygtvfocus .ygtvlabel{background-color:#c0e0e0;}.ygtv-highlight .ygtvcontent{padding-right:1em;}.ygtv-checkbox .ygtv-highlight0 .ygtvcontent{padding-left:1em;background:url(check0.gif) no-repeat;}.ygtv-checkbox .ygtv-highlight0 .ygtvfocus.ygtvcontent,.ygtv-checkbox .ygtv-highlight1 .ygtvfocus.ygtvcontent,.ygtv-checkbox .ygtv-highlight2 .ygtvfocus.ygtvcontent{background-color:#c0e0e0;}.ygtv-checkbox .ygtv-highlight1 .ygtvcontent{padding-left:1em;background:url(check1.gif) no-repeat;}.ygtv-checkbox .ygtv-highlight2 .ygtvcontent{padding-left:1em;background:url(check2.gif) no-repeat;}
-
diff --git a/koha-tmpl/intranet-tmpl/prog/en/lib/yui/assets/skins/sam/slider.css b/koha-tmpl/intranet-tmpl/prog/en/lib/yui/assets/skins/sam/slider.css
deleted file mode 100644 (file)
index 9450e3b..0000000
+++ /dev/null
@@ -1,7 +0,0 @@
-/*
-Copyright (c) 2009, Yahoo! Inc. All rights reserved.
-Code licensed under the BSD License:
-http://developer.yahoo.net/yui/license.txt
-version: 2.8.0r4
-*/
-.yui-h-slider,.yui-v-slider,.yui-region-slider{position:relative;}.yui-h-slider .yui-slider-thumb,.yui-v-slider .yui-slider-thumb,.yui-region-slider .yui-slider-thumb{position:absolute;cursor:default;}.yui-skin-sam .yui-h-slider{background:url(bg-h.gif) no-repeat 5px 0;height:28px;width:228px;}.yui-skin-sam .yui-h-slider .yui-slider-thumb{top:4px;}.yui-skin-sam .yui-v-slider{background:url(bg-v.gif) no-repeat 12px 0;height:228px;width:48px;}.yui-skin-sam .yui-region-slider{height:228px;width:228px;}
diff --git a/koha-tmpl/intranet-tmpl/prog/en/lib/yui/assets/skins/sam/split-button-arrow-active.png b/koha-tmpl/intranet-tmpl/prog/en/lib/yui/assets/skins/sam/split-button-arrow-active.png
deleted file mode 100644 (file)
index fa58c50..0000000
Binary files a/koha-tmpl/intranet-tmpl/prog/en/lib/yui/assets/skins/sam/split-button-arrow-active.png and /dev/null differ
diff --git a/koha-tmpl/intranet-tmpl/prog/en/lib/yui/assets/skins/sam/split-button-arrow-disabled.png b/koha-tmpl/intranet-tmpl/prog/en/lib/yui/assets/skins/sam/split-button-arrow-disabled.png
deleted file mode 100644 (file)
index 0a6a82c..0000000
Binary files a/koha-tmpl/intranet-tmpl/prog/en/lib/yui/assets/skins/sam/split-button-arrow-disabled.png and /dev/null differ
diff --git a/koha-tmpl/intranet-tmpl/prog/en/lib/yui/assets/skins/sam/split-button-arrow-focus.png b/koha-tmpl/intranet-tmpl/prog/en/lib/yui/assets/skins/sam/split-button-arrow-focus.png
deleted file mode 100644 (file)
index 167d71e..0000000
Binary files a/koha-tmpl/intranet-tmpl/prog/en/lib/yui/assets/skins/sam/split-button-arrow-focus.png and /dev/null differ
diff --git a/koha-tmpl/intranet-tmpl/prog/en/lib/yui/assets/skins/sam/split-button-arrow-hover.png b/koha-tmpl/intranet-tmpl/prog/en/lib/yui/assets/skins/sam/split-button-arrow-hover.png
deleted file mode 100644 (file)
index 167d71e..0000000
Binary files a/koha-tmpl/intranet-tmpl/prog/en/lib/yui/assets/skins/sam/split-button-arrow-hover.png and /dev/null differ
diff --git a/koha-tmpl/intranet-tmpl/prog/en/lib/yui/assets/skins/sam/split-button-arrow.png b/koha-tmpl/intranet-tmpl/prog/en/lib/yui/assets/skins/sam/split-button-arrow.png
deleted file mode 100644 (file)
index b33a93f..0000000
Binary files a/koha-tmpl/intranet-tmpl/prog/en/lib/yui/assets/skins/sam/split-button-arrow.png and /dev/null differ
diff --git a/koha-tmpl/intranet-tmpl/prog/en/lib/yui/assets/skins/sam/sprite.png b/koha-tmpl/intranet-tmpl/prog/en/lib/yui/assets/skins/sam/sprite.png
deleted file mode 100644 (file)
index 73634d6..0000000
Binary files a/koha-tmpl/intranet-tmpl/prog/en/lib/yui/assets/skins/sam/sprite.png and /dev/null differ
diff --git a/koha-tmpl/intranet-tmpl/prog/en/lib/yui/assets/skins/sam/sprite.psd b/koha-tmpl/intranet-tmpl/prog/en/lib/yui/assets/skins/sam/sprite.psd
deleted file mode 100644 (file)
index fff2c34..0000000
Binary files a/koha-tmpl/intranet-tmpl/prog/en/lib/yui/assets/skins/sam/sprite.psd and /dev/null differ
diff --git a/koha-tmpl/intranet-tmpl/prog/en/lib/yui/assets/skins/sam/tabview.css b/koha-tmpl/intranet-tmpl/prog/en/lib/yui/assets/skins/sam/tabview.css
deleted file mode 100644 (file)
index eb79574..0000000
+++ /dev/null
@@ -1,8 +0,0 @@
-/*
-Copyright (c) 2009, Yahoo! Inc. All rights reserved.
-Code licensed under the BSD License:
-http://developer.yahoo.net/yui/license.txt
-version: 2.8.0r4
-*/
-.yui-navset .yui-nav li,.yui-navset .yui-navset-top .yui-nav li,.yui-navset .yui-navset-bottom .yui-nav li{margin:0 .5em 0 0;}.yui-navset-left .yui-nav li,.yui-navset-right .yui-nav li{margin:0 0 .5em;}.yui-navset .yui-content .yui-hidden{border:0;height:0;width:0;padding:0;position:absolute;left:-999999px;overflow:hidden;visibility:hidden;}.yui-navset .yui-navset-left .yui-nav,.yui-navset .yui-navset-right .yui-nav,.yui-navset-left .yui-nav,.yui-navset-right .yui-nav{width:6em;}.yui-navset-top .yui-nav,.yui-navset-bottom .yui-nav{width:auto;}.yui-navset .yui-navset-left,.yui-navset-left{padding:0 0 0 6em;}.yui-navset-right{padding:0 6em 0 0;}.yui-navset-top,.yui-navset-bottom{padding:auto;}.yui-nav,.yui-nav li{margin:0;padding:0;list-style:none;}.yui-navset li em{font-style:normal;}.yui-navset{position:relative;zoom:1;}.yui-navset .yui-content,.yui-navset .yui-content div{zoom:1;}.yui-navset .yui-content:after{content:'';display:block;clear:both;}.yui-navset .yui-nav li,.yui-navset .yui-navset-top .yui-nav li,.yui-navset .yui-navset-bottom .yui-nav li{display:inline-block;display:-moz-inline-stack;*display:inline;vertical-align:bottom;cursor:pointer;zoom:1;}.yui-navset-left .yui-nav li,.yui-navset-right .yui-nav li{display:block;}.yui-navset .yui-nav a{position:relative;}.yui-navset .yui-nav li a,.yui-navset-top .yui-nav li a,.yui-navset-bottom .yui-nav li a{display:block;display:inline-block;vertical-align:bottom;zoom:1;}.yui-navset-left .yui-nav li a,.yui-navset-right .yui-nav li a{display:block;}.yui-navset-bottom .yui-nav li a{vertical-align:text-top;}.yui-navset .yui-nav li a em,.yui-navset-top .yui-nav li a em,.yui-navset-bottom .yui-nav li a em{display:block;}.yui-navset .yui-navset-left .yui-nav,.yui-navset .yui-navset-right .yui-nav,.yui-navset-left .yui-nav,.yui-navset-right .yui-nav{position:absolute;z-index:1;}.yui-navset-top .yui-nav,.yui-navset-bottom .yui-nav{position:static;}.yui-navset .yui-navset-left .yui-nav,.yui-navset-left .yui-nav{left:0;right:auto;}.yui-navset .yui-navset-right .yui-nav,.yui-navset-right .yui-nav{right:0;left:auto;}.yui-skin-sam .yui-navset .yui-nav,.yui-skin-sam .yui-navset .yui-navset-top .yui-nav{border:solid #2647a0;border-width:0 0 5px;zoom:1;}.yui-skin-sam .yui-navset .yui-nav li,.yui-skin-sam .yui-navset .yui-navset-top .yui-nav li{margin:0 .16em 0 0;padding:1px 0 0;zoom:1;}.yui-skin-sam .yui-navset .yui-nav .selected,.yui-skin-sam .yui-navset .yui-navset-top .yui-nav .selected{margin:0 .16em -1px 0;}.yui-skin-sam .yui-navset .yui-nav a,.yui-skin-sam .yui-navset .yui-navset-top .yui-nav a{background:#d8d8d8 url(sprite.png) repeat-x;border:solid #a3a3a3;border-width:0 1px;color:#000;position:relative;text-decoration:none;}.yui-skin-sam .yui-navset .yui-nav a em,.yui-skin-sam .yui-navset .yui-navset-top .yui-nav a em{border:solid #a3a3a3;border-width:1px 0 0;cursor:hand;padding:.25em .75em;left:0;right:0;bottom:0;top:-1px;position:relative;}.yui-skin-sam .yui-navset .yui-nav .selected a,.yui-skin-sam .yui-navset .yui-nav .selected a:focus,.yui-skin-sam .yui-navset .yui-nav .selected a:hover{background:#2647a0 url(sprite.png) repeat-x left -1400px;color:#fff;}.yui-skin-sam .yui-navset .yui-nav a:hover,.yui-skin-sam .yui-navset .yui-nav a:focus{background:#bfdaff url(sprite.png) repeat-x left -1300px;outline:0;}.yui-skin-sam .yui-navset .yui-nav .selected a em{padding:.35em .75em;}.yui-skin-sam .yui-navset .yui-nav .selected a,.yui-skin-sam .yui-navset .yui-nav .selected a em{border-color:#243356;}.yui-skin-sam .yui-navset .yui-content{background:#edf5ff;}.yui-skin-sam .yui-navset .yui-content,.yui-skin-sam .yui-navset .yui-navset-top .yui-content{border:1px solid #808080;border-top-color:#243356;padding:.25em .5em;}.yui-skin-sam .yui-navset-left .yui-nav,.yui-skin-sam .yui-navset .yui-navset-left .yui-nav,.yui-skin-sam .yui-navset .yui-navset-right .yui-nav,.yui-skin-sam .yui-navset-right .yui-nav{border-width:0 5px 0 0;Xposition:absolute;top:0;bottom:0;}.yui-skin-sam .yui-navset .yui-navset-right .yui-nav,.yui-skin-sam .yui-navset-right .yui-nav{border-width:0 0 0 5px;}.yui-skin-sam .yui-navset-left .yui-nav li,.yui-skin-sam .yui-navset .yui-navset-left .yui-nav li,.yui-skin-sam .yui-navset-right .yui-nav li{margin:0 0 .16em;padding:0 0 0 1px;}.yui-skin-sam .yui-navset-right .yui-nav li{padding:0 1px 0 0;}.yui-skin-sam .yui-navset-left .yui-nav .selected,.yui-skin-sam .yui-navset .yui-navset-left .yui-nav .selected{margin:0 -1px .16em 0;}.yui-skin-sam .yui-navset-right .yui-nav .selected{margin:0 0 .16em -1px;}.yui-skin-sam .yui-navset-left .yui-nav a,.yui-skin-sam .yui-navset-right .yui-nav a{border-width:1px 0;}.yui-skin-sam .yui-navset-left .yui-nav a em,.yui-skin-sam .yui-navset .yui-navset-left .yui-nav a em,.yui-skin-sam .yui-navset-right .yui-nav a em{border-width:0 0 0 1px;padding:.2em .75em;top:auto;left:-1px;}.yui-skin-sam .yui-navset-right .yui-nav a em{border-width:0 1px 0 0;left:auto;right:-1px;}.yui-skin-sam .yui-navset-left .yui-nav a,.yui-skin-sam .yui-navset-left .yui-nav .selected a,.yui-skin-sam .yui-navset-left .yui-nav a:hover,.yui-skin-sam .yui-navset-right .yui-nav a,.yui-skin-sam .yui-navset-right .yui-nav .selected a,.yui-skin-sam .yui-navset-right .yui-nav a:hover,.yui-skin-sam .yui-navset-bottom .yui-nav a,.yui-skin-sam .yui-navset-bottom .yui-nav .selected a,.yui-skin-sam .yui-navset-bottom .yui-nav a:hover{background-image:none;}.yui-skin-sam .yui-navset-left .yui-content{border:1px solid #808080;border-left-color:#243356;}.yui-skin-sam .yui-navset-bottom .yui-nav,.yui-skin-sam .yui-navset .yui-navset-bottom .yui-nav{border-width:5px 0 0;}.yui-skin-sam .yui-navset .yui-navset-bottom .yui-nav .selected,.yui-skin-sam .yui-navset-bottom .yui-nav .selected{margin:-1px .16em 0 0;}.yui-skin-sam .yui-navset .yui-navset-bottom .yui-nav li,.yui-skin-sam .yui-navset-bottom .yui-nav li{padding:0 0 1px 0;vertical-align:top;}.yui-skin-sam .yui-navset .yui-navset-bottom .yui-nav a em,.yui-skin-sam .yui-navset-bottom .yui-nav a em{border-width:0 0 1px;top:auto;bottom:-1px;}
-.yui-skin-sam .yui-navset-bottom .yui-content,.yui-skin-sam .yui-navset .yui-navset-bottom .yui-content{border:1px solid #808080;border-bottom-color:#243356;}
diff --git a/koha-tmpl/intranet-tmpl/prog/en/lib/yui/assets/skins/sam/treeview-loading.gif b/koha-tmpl/intranet-tmpl/prog/en/lib/yui/assets/skins/sam/treeview-loading.gif
deleted file mode 100644 (file)
index 0bbf3bc..0000000
Binary files a/koha-tmpl/intranet-tmpl/prog/en/lib/yui/assets/skins/sam/treeview-loading.gif and /dev/null differ
diff --git a/koha-tmpl/intranet-tmpl/prog/en/lib/yui/assets/skins/sam/treeview-sprite.gif b/koha-tmpl/intranet-tmpl/prog/en/lib/yui/assets/skins/sam/treeview-sprite.gif
deleted file mode 100644 (file)
index 8fb3f01..0000000
Binary files a/koha-tmpl/intranet-tmpl/prog/en/lib/yui/assets/skins/sam/treeview-sprite.gif and /dev/null differ
diff --git a/koha-tmpl/intranet-tmpl/prog/en/lib/yui/assets/skins/sam/treeview.css b/koha-tmpl/intranet-tmpl/prog/en/lib/yui/assets/skins/sam/treeview.css
deleted file mode 100644 (file)
index 3843d4b..0000000
+++ /dev/null
@@ -1,7 +0,0 @@
-/*
-Copyright (c) 2009, Yahoo! Inc. All rights reserved.
-Code licensed under the BSD License:
-http://developer.yahoo.net/yui/license.txt
-version: 2.8.0r4
-*/
-table.ygtvtable{margin-bottom:0;border:none;border-collapse:collapse;}td.ygtvcell{border:none;padding:0;}a.ygtvspacer{text-decoration:none;outline-style:none;display:block;}.ygtvtn{width:18px;height:22px;background:url(treeview-sprite.gif) 0 -5600px no-repeat;cursor:pointer;}.ygtvtm{width:18px;height:22px;cursor:pointer;background:url(treeview-sprite.gif) 0 -4000px no-repeat;}.ygtvtmh,.ygtvtmhh{width:18px;height:22px;cursor:pointer;background:url(treeview-sprite.gif) 0 -4800px no-repeat;}.ygtvtp{width:18px;height:22px;cursor:pointer;background:url(treeview-sprite.gif) 0 -6400px no-repeat;}.ygtvtph,.ygtvtphh{width:18px;height:22px;cursor:pointer;background:url(treeview-sprite.gif) 0 -7200px no-repeat;}.ygtvln{width:18px;height:22px;background:url(treeview-sprite.gif) 0 -1600px no-repeat;cursor:pointer;}.ygtvlm{width:18px;height:22px;cursor:pointer;background:url(treeview-sprite.gif) 0 0 no-repeat;}.ygtvlmh,.ygtvlmhh{width:18px;height:22px;cursor:pointer;background:url(treeview-sprite.gif) 0 -800px no-repeat;}.ygtvlp{width:18px;height:22px;cursor:pointer;background:url(treeview-sprite.gif) 0 -2400px no-repeat;}.ygtvlph,.ygtvlphh{width:18px;height:22px;cursor:pointer;background:url(treeview-sprite.gif) 0 -3200px no-repeat;cursor:pointer;}.ygtvloading{width:18px;height:22px;background:url(treeview-loading.gif) 0 0 no-repeat;}.ygtvdepthcell{width:18px;height:22px;background:url(treeview-sprite.gif) 0 -8000px no-repeat;}.ygtvblankdepthcell{width:18px;height:22px;}* html .ygtvchildren{height:2%;}.ygtvlabel,.ygtvlabel:link,.ygtvlabel:visited,.ygtvlabel:hover{margin-left:2px;text-decoration:none;background-color:white;cursor:pointer;}.ygtvcontent{cursor:default;}.ygtvspacer{height:22px;width:18px;}.ygtvfocus{background-color:#c0e0e0;border:none;}.ygtvfocus .ygtvlabel,.ygtvfocus .ygtvlabel:link,.ygtvfocus .ygtvlabel:visited,.ygtvfocus .ygtvlabel:hover{background-color:#c0e0e0;}.ygtvfocus a{outline-style:none;}.ygtvok{width:18px;height:22px;background:url(treeview-sprite.gif) 0 -8800px no-repeat;}.ygtvok:hover{background:url(treeview-sprite.gif) 0 -8844px no-repeat;}.ygtvcancel{width:18px;height:22px;background:url(treeview-sprite.gif) 0 -8822px no-repeat;}.ygtvcancel:hover{background:url(treeview-sprite.gif) 0 -8866px no-repeat;}.ygtv-label-editor{background-color:#f2f2f2;border:1px solid silver;position:absolute;display:none;overflow:hidden;margin:auto;z-index:9000;}.ygtv-edit-TextNode{width:190px;}.ygtv-edit-TextNode .ygtvcancel,.ygtv-edit-TextNode .ygtvok{border:none;}.ygtv-edit-TextNode .ygtv-button-container{float:right;}.ygtv-edit-TextNode .ygtv-input input{width:140px;}.ygtv-edit-DateNode .ygtvcancel{border:none;}.ygtv-edit-DateNode .ygtvok{display:none;}.ygtv-edit-DateNode .ygtv-button-container{text-align:right;margin:auto;}.ygtv-highlight .ygtv-highlight1,.ygtv-highlight .ygtv-highlight1 .ygtvlabel{background-color:blue;color:white;}.ygtv-highlight .ygtv-highlight2,.ygtv-highlight .ygtv-highlight2 .ygtvlabel{background-color:silver;}.ygtv-highlight .ygtv-highlight0 .ygtvfocus .ygtvlabel,.ygtv-highlight .ygtv-highlight1 .ygtvfocus .ygtvlabel,.ygtv-highlight .ygtv-highlight2 .ygtvfocus .ygtvlabel{background-color:#c0e0e0;}.ygtv-highlight .ygtvcontent{padding-right:1em;}.ygtv-checkbox .ygtv-highlight0 .ygtvcontent{padding-left:1em;background:url(check0.gif) no-repeat;}.ygtv-checkbox .ygtv-highlight0 .ygtvfocus.ygtvcontent,.ygtv-checkbox .ygtv-highlight1 .ygtvfocus.ygtvcontent,.ygtv-checkbox .ygtv-highlight2 .ygtvfocus.ygtvcontent{background-color:#c0e0e0;}.ygtv-checkbox .ygtv-highlight1 .ygtvcontent{padding-left:1em;background:url(check1.gif) no-repeat;}.ygtv-checkbox .ygtv-highlight2 .ygtvcontent{padding-left:1em;background:url(check2.gif) no-repeat;}
diff --git a/koha-tmpl/intranet-tmpl/prog/en/lib/yui/assets/skins/sam/wait.gif b/koha-tmpl/intranet-tmpl/prog/en/lib/yui/assets/skins/sam/wait.gif
deleted file mode 100644 (file)
index 471c1a4..0000000
Binary files a/koha-tmpl/intranet-tmpl/prog/en/lib/yui/assets/skins/sam/wait.gif and /dev/null differ
diff --git a/koha-tmpl/intranet-tmpl/prog/en/lib/yui/assets/skins/sam/yuitest.css b/koha-tmpl/intranet-tmpl/prog/en/lib/yui/assets/skins/sam/yuitest.css
deleted file mode 100644 (file)
index 35183cd..0000000
+++ /dev/null
@@ -1,7 +0,0 @@
-/*
-Copyright (c) 2009, Yahoo! Inc. All rights reserved.
-Code licensed under the BSD License:
-http://developer.yahoo.net/yui/license.txt
-version: 2.8.0r4
-*/
-
diff --git a/koha-tmpl/intranet-tmpl/prog/en/lib/yui/base/base-min.css b/koha-tmpl/intranet-tmpl/prog/en/lib/yui/base/base-min.css
deleted file mode 100644 (file)
index 6888925..0000000
+++ /dev/null
@@ -1,7 +0,0 @@
-/*
-Copyright (c) 2009, Yahoo! Inc. All rights reserved.
-Code licensed under the BSD License:
-http://developer.yahoo.net/yui/license.txt
-version: 2.8.0r4
-*/
-body{margin:10px;}h1{font-size:138.5%;}h2{font-size:123.1%;}h3{font-size:108%;}h1,h2,h3{margin:1em 0;}h1,h2,h3,h4,h5,h6,strong,dt{font-weight:bold;}optgroup{font-weight:normal;}abbr,acronym{border-bottom:1px dotted #000;cursor:help;}em{font-style:italic;}del{text-decoration:line-through;}blockquote,ul,ol,dl{margin:1em;}ol,ul,dl{margin-left:2em;}ol li{list-style:decimal outside;}ul li{list-style:disc outside;}dl dd{margin-left:1em;}th,td{border:1px solid #000;padding:.5em;}th{font-weight:bold;text-align:center;}caption{margin-bottom:.5em;text-align:center;}sup{vertical-align:super;}sub{vertical-align:sub;}p,fieldset,table,pre{margin-bottom:1em;}button,input[type="checkbox"],input[type="radio"],input[type="reset"],input[type="submit"]{padding:1px;}
\ No newline at end of file
diff --git a/koha-tmpl/intranet-tmpl/prog/en/lib/yui/base/base.css b/koha-tmpl/intranet-tmpl/prog/en/lib/yui/base/base.css
deleted file mode 100644 (file)
index 24b7a20..0000000
+++ /dev/null
@@ -1,131 +0,0 @@
-/*
-Copyright (c) 2009, Yahoo! Inc. All rights reserved.
-Code licensed under the BSD License:
-http://developer.yahoo.net/yui/license.txt
-version: 2.8.0r4
-*/
-/**
- * YUI Base
- * @module base
- * @namespace yui-
- * @requires reset, fonts
-*/
-
-body {
-       /* For breathing room between content and viewport. */
-       margin:10px;
-}
-
-h1 {
-       /* 18px via YUI Fonts CSS foundation. */
-       font-size: 138.5%;
-}
-
-h2 {
-       /* 16px via YUI Fonts CSS foundation. */
-       font-size: 123.1%;
-}
-
-h3 {
-       /* 14px via YUI Fonts CSS foundation. */
-       font-size: 108%;
-}
-
-h1,h2,h3 {
-       /* Top & bottom margin based on font size. */
-       margin: 1em 0;
-}
-
-h1,h2,h3,h4,h5,h6,strong,dt {
-       /* Bringing boldness back to headers and the strong element. */
-       font-weight: bold;
-}
-optgroup {
-       font-weight:normal;
-}
-
-abbr,acronym {
-       /* Indicating to users that more info is available. */
-       border-bottom: 1px dotted #000;
-       cursor: help;
-}
-
-em {
-       /* Bringing italics back to the em element. */
-       font-style: italic;
-}
-
-del {
-       /* Striking deleted phrases. */
-       text-decoration: line-through;
-}
-
-blockquote,ul,ol,dl {
-       /* Giving blockquotes and lists room to breath. */
-       margin: 1em;
-}
-
-ol,ul,dl {
-       /* Bringing lists on to the page with breathing room. */
-       margin-left: 2em;
-}
-
-ol li {
-       /* Giving OL's LIs generated numbers. */
-       list-style: decimal outside;
-}
-
-ul li {
-       /* Giving UL's LIs generated disc markers. */
-       list-style: disc outside;
-}
-
-dl dd {
-       /* Giving UL's LIs generated numbers. */
-       margin-left: 1em;
-}
-
-th,td {
-       /* Borders and padding to make the table readable. */
-       border: 1px solid #000;
-       padding: .5em;
-}
-
-th {
-       /* Distinguishing table headers from data cells. */
-       font-weight: bold;
-       text-align: center;
-}
-
-caption {
-       /* Coordinated margin to match cell's padding. */
-       margin-bottom: .5em;
-       /* Centered so it doesn't blend in to other content. */
-       text-align: center;
-}
-
-sup {
-       /* to preserve line-height and selector appearance */
-       vertical-align: super;
-}
-
-sub {
-       /* to preserve line-height and selector appearance */
-       vertical-align: sub;
-}
-
-p,
-fieldset,
-table,
-pre {
-       /* So things don't run into each other. */
-       margin-bottom: 1em;
-}
-/* Opera requires 1px of passing to render with contemporary native chrome */
-button,
-input[type="checkbox"],
-input[type="radio"],
-input[type="reset"],
-input[type="submit"] {
-       padding:1px;
-}
diff --git a/koha-tmpl/intranet-tmpl/prog/en/lib/yui/calendar/assets/calendar-core.css b/koha-tmpl/intranet-tmpl/prog/en/lib/yui/calendar/assets/calendar-core.css
deleted file mode 100644 (file)
index 6dee4a4..0000000
+++ /dev/null
@@ -1,132 +0,0 @@
-/*
-Copyright (c) 2009, Yahoo! Inc. All rights reserved.
-Code licensed under the BSD License:
-http://developer.yahoo.net/yui/license.txt
-version: 2.8.0r4
-*/
-/**
- * CORE
- *
- * This is the set of CSS rules required by Calendar to drive core functionality and structure.
- * Changes to these rules may result in the Calendar not functioning or rendering correctly.
- *
- * They should not be modified for skinning.
- **/
-/* CALENDAR BOUNDING BOX */
-.yui-calcontainer {
-       position:relative;
-       float:left;
-       _overflow:hidden; /* IE6 only, to clip iframe shim */
-}
-
-/* IFRAME SHIM */
-.yui-calcontainer iframe {
-       position:absolute;
-       border:none;
-       margin:0;padding:0;
-       z-index:0;
-       width:100%;
-       height:100%;
-       left:0px;
-       top:0px;
-}
-
-/* IFRAME SHIM IE6 only */
-.yui-calcontainer iframe.fixedsize {
-       width:50em;
-       height:50em;
-       top:-1px;
-       left:-1px;
-}
-
-/* BOUNDING BOX FOR EACH CALENDAR GROUP PAGE */
-.yui-calcontainer.multi .groupcal {
-       z-index:1;
-       float:left;
-       position:relative;
-}
-
-/* TITLE BAR */
-.yui-calcontainer .title {
-       position:relative;
-       z-index:1;
-}
-
-/* CLOSE ICON CONTAINER */
-.yui-calcontainer .close-icon {
-       position:absolute;
-       z-index:1;
-       text-indent:-10000em;
-       overflow:hidden;
-}
-
-/* CALENDAR TABLE */
-.yui-calendar {
-       position:relative;
-}
-
-/* NAVBAR LEFT ARROW CONTAINER */
-.yui-calendar .calnavleft {
-       position:absolute;
-       z-index:1;
-       text-indent:-10000em;
-       overflow:hidden;
-}
-
-/* NAVBAR RIGHT ARROW CONTAINER */
-.yui-calendar .calnavright {
-       position:absolute;
-       z-index:1;
-       text-indent:-10000em;
-       overflow:hidden;
-}
-
-/* NAVBAR TEXT CONTAINER */
-.yui-calendar .calheader {
-       position:relative;
-       width:100%;
-       text-align:center;
-}
-
-/* CalendarNavigator */
-.yui-calcontainer .yui-cal-nav-mask {
-       position:absolute;
-       z-index:2;
-       margin:0;
-       padding:0;
-       width:100%;
-       height:100%;
-       _width:0;    /* IE6, IE7 quirks - width/height set programmatically to match container */
-       _height:0;
-       left:0;
-       top:0;
-       display:none;
-}
-
-/* NAVIGATOR BOUNDING BOX */
-.yui-calcontainer .yui-cal-nav {
-       position:absolute;
-       z-index:3;
-       top:0;
-       display:none;
-}
-
-/* NAVIGATOR BUTTONS (based on button-core.css) */
-.yui-calcontainer .yui-cal-nav .yui-cal-nav-btn  {
-       display: -moz-inline-box; /* Gecko */
-       display: inline-block; /* IE, Opera and Safari */
-}
-
-.yui-calcontainer .yui-cal-nav .yui-cal-nav-btn button {
-       display: block;
-       *display: inline-block; /* IE */
-       *overflow: visible; /* Remove superfluous padding for IE */
-       border: none;
-       background-color: transparent;
-       cursor: pointer;
-}
-
-/* Specific changes for calendar running under fonts/reset */
-.yui-calendar .calbody a:hover {background:inherit;}
-p#clear {clear:left; padding-top:10px;}
\ No newline at end of file
diff --git a/koha-tmpl/intranet-tmpl/prog/en/lib/yui/calendar/assets/calendar.css b/koha-tmpl/intranet-tmpl/prog/en/lib/yui/calendar/assets/calendar.css
deleted file mode 100644 (file)
index 1faa711..0000000
+++ /dev/null
@@ -1,320 +0,0 @@
-/*
-Copyright (c) 2009, Yahoo! Inc. All rights reserved.
-Code licensed under the BSD License:
-http://developer.yahoo.net/yui/license.txt
-version: 2.8.0r4
-*/
-.yui-calcontainer {
-       position:relative;
-       padding:5px;
-       background-color:#F7F9FB;
-       border:1px solid #7B9EBD;
-       float:left;
-       _overflow:hidden; /* IE6 only, to clip iframe shim */
-}
-
-.yui-calcontainer iframe {
-       position:absolute;
-       border:none;
-       margin:0;padding:0;
-       z-index:0;
-       width:100%;
-       height:100%;
-       left:0px;
-       top:0px;
-}
-
-/* IE6 only */
-.yui-calcontainer iframe.fixedsize {
-       width:50em;
-       height:50em;
-       top:-1px;
-       left:-1px;
-}
-
-.yui-calcontainer.multi {
-       padding:0;
-}
-
-.yui-calcontainer.multi .groupcal {
-       padding:5px;
-       background-color:transparent;
-       z-index:1;
-       float:left;
-       position:relative;
-       border:none;
-}
-
-.yui-calcontainer .title {
-       font:100% sans-serif;
-       color:#000;
-       font-weight:bold;
-       margin-bottom:5px;
-       height:25px;
-       position:absolute;
-       top:3px;left:5px;
-       z-index:1;
-}
-
-.yui-calcontainer .close-icon {
-       position:absolute;
-       overflow:hidden;
-       text-indent:-10000em;
-       right:3px;
-       top:3px;
-       border:none;
-       z-index:1;
-}
-
-.yui-calcontainer .calclose {
-       background: url("calx.gif") no-repeat;
-       width:17px;
-       height:13px;
-       cursor:pointer; 
-}
-
-/* Calendar element styles */
-
-.yui-calendar {
-       font:100% sans-serif;
-       text-align:center;
-       border-spacing:0;
-       border-collapse:separate;
-       position:relative;
-}
-
-.yui-calcontainer.withtitle {
-       padding-top:1.5em;
-}
-
-.yui-calendar .calnavleft {
-       position:absolute;
-       overflow:hidden;
-       text-indent:-10000em;
-       cursor:pointer;
-       top:2px;
-       bottom:0;
-       width:9px;
-       height:12px;
-       left:2px;
-       z-index:1;
-       background: url("callt.gif") no-repeat;
-}
-
-.yui-calendar .calnavright {
-       position:absolute;
-       overflow:hidden;
-       text-indent:-10000em;
-       cursor:pointer;
-       top:2px;
-       bottom:0;
-       width:9px;
-       height:12px;
-       right:2px;
-       z-index:1;
-       background: url("calrt.gif") no-repeat;
-}
-
-.yui-calendar td.calcell {
-       padding:.1em .2em;
-       border:1px solid #E0E0E0;
-       text-align:center;
-}
-
-.yui-calendar td.calcell a {
-       color:#003DB8;
-       text-decoration:none;
-}
-
-.yui-calendar td.calcell.today {
-       border:1px solid #000;
-}
-
-.yui-calendar td.calcell.oom {
-       cursor:default;
-       color:#999;
-       background-color:#EEE;
-       border:1px solid #E0E0E0;
-}
-
-.yui-calendar td.calcell.selected {
-       color:#003DB8;
-       background-color:#FFF19F;
-       border:1px solid #FF9900;
-}
-
-.yui-calendar td.calcell.calcellhover {
-       cursor:pointer;
-       color:#FFF;
-       background-color:#FF9900;
-       border:1px solid #FF9900;
-}
-
-.yui-calendar td.calcell.calcellhover a {
-       color:#FFF;
-}
-
-.yui-calendar td.calcell.restricted {
-       text-decoration:line-through;
-}
-
-.yui-calendar td.calcell.previous {
-       color:#CCC;
-}
-
-.yui-calendar td.calcell.highlight1 { background-color:#CCFF99; }
-.yui-calendar td.calcell.highlight2 { background-color:#99CCFF; }
-.yui-calendar td.calcell.highlight3 { background-color:#FFCCCC; }
-.yui-calendar td.calcell.highlight4 { background-color:#CCFF99; }
-
-.yui-calendar .calhead {
-       border:1px solid #E0E0E0;
-       vertical-align:middle;
-       background-color:#FFF;
-}
-
-.yui-calendar .calheader {
-       position:relative;
-       width:100%;
-       text-align:center;
-}
-
-.yui-calendar .calheader img {
-       border:none;
-}
-
-.yui-calendar .calweekdaycell {
-       color:#666;
-       font-weight:normal;
-       text-align:center;
-       width:1.5em;
-}
-
-.yui-calendar .calfoot {
-       background-color:#EEE;
-}
-
-.yui-calendar .calrowhead, .yui-calendar .calrowfoot {
-       color:#666;
-       font-size:9px;
-       font-style:italic;
-       font-weight:normal;
-       width:15px;
-}
-
-.yui-calendar .calrowhead {
-       border-right-width:2px;
-}
-
-/* CalendarNavigator */
-.yui-calendar a.calnav {
-       _position:relative;
-       padding-left:2px;
-       padding-right:2px;
-       text-decoration:none;
-       color:#000;
-}
-
-.yui-calendar a.calnav:hover {
-       border:1px solid #003366;
-       background-color:#6699cc;
-       background: url(calgrad.png) repeat-x;
-       color:#fff;
-       cursor:pointer;
-}
-
-.yui-calcontainer .yui-cal-nav-mask {
-       position:absolute;
-       z-index:2;
-       display:none;
-
-       margin:0;
-       padding:0;
-
-       left:0;
-       top:0;
-       width:100%;
-       height:100%;
-       _width:0;    /* IE6, IE7 Quirks - width/height set programmatically to match container */
-       _height:0;
-
-       background-color:#000;
-       opacity:0.25;
-       *filter:alpha(opacity=25);
-}
-
-.yui-calcontainer .yui-cal-nav {
-       position:absolute;
-       z-index:3;
-       display:none;
-
-       padding:0;
-       top:1.5em;
-       left:50%;
-       width:12em;
-       margin-left:-6em;
-
-       border:1px solid #7B9EBD;
-       background-color:#F7F9FB;
-       font-size:93%;
-}
-
-.yui-calcontainer.withtitle .yui-cal-nav {
-       top:3.5em;
-}
-
-.yui-calcontainer .yui-cal-nav-y,
-.yui-calcontainer .yui-cal-nav-m,
-.yui-calcontainer .yui-cal-nav-b {
-       padding:2px 5px 2px 5px;
-}
-
-.yui-calcontainer .yui-cal-nav-b {
-       text-align:center;
-}
-
-.yui-calcontainer .yui-cal-nav-e {
-       margin-top:2px;
-       padding:2px;
-       background-color:#EDF5FF;
-       border-top:1px solid black;
-       display:none;
-}
-
-.yui-calcontainer .yui-cal-nav label {
-       display:block;
-       font-weight:bold;
-}
-
-.yui-calcontainer .yui-cal-nav-mc {
-       width:100%;
-       _width:auto; /* IE6 doesn't like width 100% */
-}
-
-.yui-calcontainer .yui-cal-nav-y input.yui-invalid {
-       background-color:#FFEE69;
-       border: 1px solid #000;
-}
-
-.yui-calcontainer .yui-cal-nav-yc {
-       width:3em;
-}
-
-.yui-calcontainer .yui-cal-nav-b button {
-       font-size:93%;
-       text-decoration:none;
-       cursor: pointer;
-       background-color: #79b2ea;
-       border: 1px solid #003366;
-       border-top-color:#FFF;
-       border-left-color:#FFF;
-       margin:1px;
-}
-
-.yui-calcontainer .yui-cal-nav-b .yui-default button {
-       /* not implemented */
-}
-
-/* Specific changes for calendar running under fonts/reset */
-.yui-calendar .calbody a:hover {background:inherit;}
-p#clear {clear:left; padding-top:10px;}
diff --git a/koha-tmpl/intranet-tmpl/prog/en/lib/yui/calendar/assets/calgrad.png b/koha-tmpl/intranet-tmpl/prog/en/lib/yui/calendar/assets/calgrad.png
deleted file mode 100644 (file)
index 9be3d95..0000000
Binary files a/koha-tmpl/intranet-tmpl/prog/en/lib/yui/calendar/assets/calgrad.png and /dev/null differ
diff --git a/koha-tmpl/intranet-tmpl/prog/en/lib/yui/calendar/assets/callt.gif b/koha-tmpl/intranet-tmpl/prog/en/lib/yui/calendar/assets/callt.gif
deleted file mode 100644 (file)
index a6cc8da..0000000
Binary files a/koha-tmpl/intranet-tmpl/prog/en/lib/yui/calendar/assets/callt.gif and /dev/null differ
diff --git a/koha-tmpl/intranet-tmpl/prog/en/lib/yui/calendar/assets/calrt.gif b/koha-tmpl/intranet-tmpl/prog/en/lib/yui/calendar/assets/calrt.gif
deleted file mode 100644 (file)
index ee137b2..0000000
Binary files a/koha-tmpl/intranet-tmpl/prog/en/lib/yui/calendar/assets/calrt.gif and /dev/null differ
diff --git a/koha-tmpl/intranet-tmpl/prog/en/lib/yui/calendar/assets/calx.gif b/koha-tmpl/intranet-tmpl/prog/en/lib/yui/calendar/assets/calx.gif
deleted file mode 100644 (file)
index 27e7bc3..0000000
Binary files a/koha-tmpl/intranet-tmpl/prog/en/lib/yui/calendar/assets/calx.gif and /dev/null differ
diff --git a/koha-tmpl/intranet-tmpl/prog/en/lib/yui/calendar/assets/skins/sam/calendar-skin.css b/koha-tmpl/intranet-tmpl/prog/en/lib/yui/calendar/assets/skins/sam/calendar-skin.css
deleted file mode 100644 (file)
index f659c32..0000000
+++ /dev/null
@@ -1,361 +0,0 @@
-/*
-Copyright (c) 2009, Yahoo! Inc. All rights reserved.
-Code licensed under the BSD License:
-http://developer.yahoo.net/yui/license.txt
-version: 2.8.0r4
-*/
-/**
- * SAM
- *
- * Skin colors used:
- *
- * - Control Border : 808080
- * - Control Chrome : f2f2f2
- * - Cell Borders : cccccc
- * - Normal Cell BG : ffffff
- * - Date Links : 0066cc
- * - Selected Cells BG : b3d4ff
- * - Cell Hover BG : 426fd9
- * - Disabled BG : cccccc
- * - Disabled Text Color : a6a6a6
- **/
-
-/* CALENDAR BOUNDING BOX */
-.yui-skin-sam .yui-calcontainer {
-       background-color:#f2f2f2;
-       border:1px solid #808080;
-       padding:10px;
-}
-
-/* CALENDARGROUP BOUNDING BOX */
-.yui-skin-sam .yui-calcontainer.multi {
-       padding:0 5px 0 5px;
-}
-
-/* BOUNDING BOX FOR EACH CALENDAR GROUP PAGE */
-.yui-skin-sam .yui-calcontainer.multi .groupcal {
-       background-color:transparent;
-       border:none;
-       padding:10px 5px 10px 5px;
-       margin:0;
-}
-
-/* TITLE BAR */
-.yui-skin-sam .yui-calcontainer .title {
-       background:url(../../../../assets/skins/sam/sprite.png) repeat-x 0 0;
-       border-bottom:1px solid #cccccc;
-       font:100% sans-serif;
-       color:#000;
-       font-weight:bold;
-       height:auto;
-       padding:.4em;
-       margin:0 -10px 10px -10px;
-       top:0;
-       left:0;
-       text-align:left;
-}
-
-.yui-skin-sam .yui-calcontainer.multi .title {
-       margin:0 -5px 0 -5px;
-}
-
-.yui-skin-sam .yui-calcontainer.withtitle {
-       padding-top:0;
-}
-
-/* CLOSE BUTTON */
-.yui-skin-sam .yui-calcontainer .calclose {
-       background:url(../../../../assets/skins/sam/sprite.png) no-repeat 0 -300px;
-       width:25px;
-       height:15px;
-       top:.4em;
-       right:.4em;
-       cursor:pointer;
-}
-
-/* CALENDAR TABLE */
-.yui-skin-sam .yui-calendar {
-       border-spacing:0;
-       border-collapse:collapse;
-       font:100% sans-serif;
-       text-align:center;
-       margin:0;
-}
-
-/* NAVBAR BOUNDING BOX */
-.yui-skin-sam .yui-calendar .calhead {
-       background:transparent;
-       border:none;
-       vertical-align:middle;
-       padding:0;
-}
-
-/* NAVBAR TEXT CONTAINER */
-.yui-skin-sam .yui-calendar .calheader {
-       background:transparent;
-       font-weight:bold;
-       padding:0 0 .6em 0;
-       text-align:center;
-}
-
-.yui-skin-sam .yui-calendar .calheader img {
-       border:none;
-}
-
-/* NAVBAR LEFT ARROW */
-.yui-skin-sam .yui-calendar .calnavleft {
-       background:url(../../../../assets/skins/sam/sprite.png) no-repeat 0 -450px;
-       width:25px;
-       height:15px;
-       top:0;
-       bottom:0;
-       left:-10px;
-       margin-left:.4em;
-       cursor:pointer;
-}
-
-/* NAVBAR RIGHT ARROW */
-.yui-skin-sam .yui-calendar .calnavright {
-       background:url(../../../../assets/skins/sam/sprite.png) no-repeat 0 -500px;
-       width:25px;
-       height:15px;
-       top:0;
-       bottom:0;
-       right:-10px;
-       margin-right:.4em;
-       cursor:pointer;
-}
-
-/* WEEKDAY HEADER ROW */
-.yui-skin-sam .yui-calendar .calweekdayrow {
-       height:2em;
-}
-
-.yui-skin-sam .yui-calendar .calweekdayrow th {
-       padding:0;
-       border:none;
-}
-
-/* WEEKDAY (Su, Mo, Tu...) HEADER CELLS */
-.yui-skin-sam .yui-calendar .calweekdaycell {
-       color:#000;
-       font-weight:bold;
-       text-align:center;
-       width:2em;
-}
-
-/* CALENDAR FOOTER. NOT IMPLEMENTED BY DEFAULT */
-.yui-skin-sam .yui-calendar .calfoot {
-       background-color:#f2f2f2;
-}
-
-/* WEEK NUMBERS (ROW HEADERS/FOOTERS) */
-.yui-skin-sam .yui-calendar .calrowhead, .yui-skin-sam .yui-calendar .calrowfoot {
-       color:#a6a6a6;
-       font-size:85%;
-       font-style:normal;
-       font-weight:normal;
-       border:none;
-}
-
-.yui-skin-sam .yui-calendar .calrowhead {
-       text-align:right;
-       padding:0 2px 0 0;
-}
-
-.yui-skin-sam .yui-calendar .calrowfoot {
-       text-align:left;
-       padding:0 0 0 2px;
-}
-
-/* NORMAL CELLS */
-.yui-skin-sam .yui-calendar td.calcell {
-       border:1px solid #cccccc;
-       background:#fff;
-       padding:1px;
-       height:1.6em;
-       line-height:1.6em; /* set line height equal to cell height to center vertically */
-       text-align:center;
-       white-space:nowrap;
-}
-
-/* LINK INSIDE NORMAL CELLS */
-.yui-skin-sam .yui-calendar td.calcell a {
-       color:#0066cc;
-       display:block;
-       height:100%;
-       text-decoration:none;
-}
-
-/* TODAY'S DATE */
-.yui-skin-sam .yui-calendar td.calcell.today {
-       background-color:#000;
-}
-
-.yui-skin-sam .yui-calendar td.calcell.today a {
-       background-color:#fff;
-}
-
-/* OOM DATES */
-.yui-skin-sam .yui-calendar td.calcell.oom {
-       background-color:#cccccc;
-       color:#a6a6a6;
-       cursor:default;
-}
-
-/* SELECTED DATE */
-.yui-skin-sam .yui-calendar td.calcell.selected {
-       background-color:#fff;
-       color:#000;
-}
-
-.yui-skin-sam .yui-calendar td.calcell.selected a {
-       background-color:#b3d4ff;
-       color:#000;
-}
-
-/* HOVER DATE */
-.yui-skin-sam .yui-calendar td.calcell.calcellhover {
-       background-color:#426fd9;
-       color:#fff;
-       cursor:pointer;
-}
-
-.yui-skin-sam .yui-calendar td.calcell.calcellhover a {
-       background-color:#426fd9;
-       color:#fff;
-}
-
-/* DEFAULT OOB DATES */
-.yui-skin-sam .yui-calendar td.calcell.previous {
-       color:#e0e0e0;
-}
-
-/* CUSTOM RENDERERS */
-.yui-skin-sam .yui-calendar td.calcell.restricted { text-decoration:line-through; }
-.yui-skin-sam .yui-calendar td.calcell.highlight1 { background-color:#ccff99; }
-.yui-skin-sam .yui-calendar td.calcell.highlight2 { background-color:#99ccff; }
-.yui-skin-sam .yui-calendar td.calcell.highlight3 { background-color:#ffcccc; }
-.yui-skin-sam .yui-calendar td.calcell.highlight4 { background-color:#ccff99; }
-
-/* CalendarNavigator */
-
-/* MONTH/YEAR LABEL */
-.yui-skin-sam .yui-calendar a.calnav { 
-       border: 1px solid #f2f2f2;
-       padding:0 4px;
-       text-decoration:none;
-       color:#000;
-       zoom:1;
-}
-
-.yui-skin-sam .yui-calendar a.calnav:hover { 
-       background: url(../../../../assets/skins/sam/sprite.png) repeat-x 0 0;
-       border-color:#A0A0A0;
-       cursor:pointer;
-}
-
-/* NAVIGATOR MASK */
-.yui-skin-sam .yui-calcontainer .yui-cal-nav-mask {
-       background-color:#000;
-       opacity:0.25;
-       filter:alpha(opacity=25); /* IE */
-}
-
-/* NAVIGATOR BOUNDING BOX */
-.yui-skin-sam .yui-calcontainer .yui-cal-nav {
-       font-family:arial,helvetica,clean,sans-serif;
-       font-size:93%;
-       border:1px solid #808080;
-       left:50%;
-       margin-left:-7em;
-       width:14em;
-       padding:0;
-       top:2.5em;
-       background-color:#f2f2f2;
-}
-
-.yui-skin-sam .yui-calcontainer.withtitle .yui-cal-nav {
-       top:4.5em;
-}
-
-/* NAVIGATOR BOUNDING BOX */
-.yui-skin-sam .yui-calcontainer.multi .yui-cal-nav {
-       width:16em;
-       margin-left:-8em;
-}
-
-/* NAVIGATOR YEAR/MONTH/BUTTON/ERROR BOUNDING BLOCKS */
-.yui-skin-sam .yui-calcontainer .yui-cal-nav-y,
-.yui-skin-sam .yui-calcontainer .yui-cal-nav-m,
-.yui-skin-sam .yui-calcontainer .yui-cal-nav-b {
-       padding:5px 10px 5px 10px;
-}
-
-.yui-skin-sam .yui-calcontainer .yui-cal-nav-b {
-       text-align:center;
-}
-
-.yui-skin-sam .yui-calcontainer .yui-cal-nav-e {
-       margin-top:5px;
-       padding:5px;
-       background-color:#EDF5FF;
-       border-top:1px solid black;
-       display:none;
-}
-
-/* NAVIGATOR LABELS */
-.yui-skin-sam .yui-calcontainer .yui-cal-nav label {
-       display:block;
-       font-weight:bold;
-}
-
-/* NAVIGATOR MONTH CONTROL */
-.yui-skin-sam .yui-calcontainer .yui-cal-nav-mc {
-       width:100%;
-       _width:auto; /* IE6, IE7 Quirks don't handle 100% well */
-}
-
-/* NAVIGATOR MONTH CONTROL, VALIDATION ERROR */
-.yui-skin-sam .yui-calcontainer .yui-cal-nav-y input.yui-invalid {
-       background-color:#FFEE69;
-       border: 1px solid #000;
-}
-
-/* NAVIGATOR YEAR CONTROL */
-.yui-skin-sam .yui-calcontainer .yui-cal-nav-yc {
-       width:4em;
-}
-
-/* NAVIGATOR BUTTONS */
-
-/* BUTTON WRAPPER */
-.yui-skin-sam .yui-calcontainer .yui-cal-nav .yui-cal-nav-btn {
-       border:1px solid #808080;
-       background: url(../../../../assets/skins/sam/sprite.png) repeat-x 0 0;
-       background-color:#ccc;
-       margin: auto .15em;
-}
-
-/* BUTTON (based on button-skin.css) */
-.yui-skin-sam .yui-calcontainer .yui-cal-nav .yui-cal-nav-btn button {
-       padding:0 8px;
-       font-size:93%;
-       line-height: 2;  /* ~24px */
-       *line-height: 1.7; /* For IE */
-       min-height: 2em; /* For Gecko */
-       *min-height: auto; /* For IE */
-       color: #000;
-}
-
-/* DEFAULT BUTTONS */
-/* NOTE: IE6 will only pickup the yui-default specifier from the multiple class specifier */
-.yui-skin-sam .yui-calcontainer .yui-cal-nav .yui-cal-nav-btn.yui-default {
-       border:1px solid #304369;
-       background-color: #426fd9;
-       background: url(../../../../assets/skins/sam/sprite.png) repeat-x 0 -1400px;
-}
-
-.yui-skin-sam .yui-calcontainer .yui-cal-nav .yui-cal-nav-btn.yui-default button {
-       color:#fff;
-}
diff --git a/koha-tmpl/intranet-tmpl/prog/en/lib/yui/calendar/assets/skins/sam/calendar.css b/koha-tmpl/intranet-tmpl/prog/en/lib/yui/calendar/assets/skins/sam/calendar.css
deleted file mode 100644 (file)
index b72d262..0000000
+++ /dev/null
@@ -1,8 +0,0 @@
-/*
-Copyright (c) 2009, Yahoo! Inc. All rights reserved.
-Code licensed under the BSD License:
-http://developer.yahoo.net/yui/license.txt
-version: 2.8.0r4
-*/
-.yui-calcontainer{position:relative;float:left;_overflow:hidden;}.yui-calcontainer iframe{position:absolute;border:none;margin:0;padding:0;z-index:0;width:100%;height:100%;left:0;top:0;}.yui-calcontainer iframe.fixedsize{width:50em;height:50em;top:-1px;left:-1px;}.yui-calcontainer.multi .groupcal{z-index:1;float:left;position:relative;}.yui-calcontainer .title{position:relative;z-index:1;}.yui-calcontainer .close-icon{position:absolute;z-index:1;text-indent:-10000em;overflow:hidden;}.yui-calendar{position:relative;}.yui-calendar .calnavleft{position:absolute;z-index:1;text-indent:-10000em;overflow:hidden;}.yui-calendar .calnavright{position:absolute;z-index:1;text-indent:-10000em;overflow:hidden;}.yui-calendar .calheader{position:relative;width:100%;text-align:center;}.yui-calcontainer .yui-cal-nav-mask{position:absolute;z-index:2;margin:0;padding:0;width:100%;height:100%;_width:0;_height:0;left:0;top:0;display:none;}.yui-calcontainer .yui-cal-nav{position:absolute;z-index:3;top:0;display:none;}.yui-calcontainer .yui-cal-nav .yui-cal-nav-btn{display:-moz-inline-box;display:inline-block;}.yui-calcontainer .yui-cal-nav .yui-cal-nav-btn button{display:block;*display:inline-block;*overflow:visible;border:none;background-color:transparent;cursor:pointer;}.yui-calendar .calbody a:hover{background:inherit;}p#clear{clear:left;padding-top:10px;}.yui-skin-sam .yui-calcontainer{background-color:#f2f2f2;border:1px solid #808080;padding:10px;}.yui-skin-sam .yui-calcontainer.multi{padding:0 5px 0 5px;}.yui-skin-sam .yui-calcontainer.multi .groupcal{background-color:transparent;border:none;padding:10px 5px 10px 5px;margin:0;}.yui-skin-sam .yui-calcontainer .title{background:url(../../../../assets/skins/sam/sprite.png) repeat-x 0 0;border-bottom:1px solid #ccc;font:100% sans-serif;color:#000;font-weight:bold;height:auto;padding:.4em;margin:0 -10px 10px -10px;top:0;left:0;text-align:left;}.yui-skin-sam .yui-calcontainer.multi .title{margin:0 -5px 0 -5px;}.yui-skin-sam .yui-calcontainer.withtitle{padding-top:0;}.yui-skin-sam .yui-calcontainer .calclose{background:url(../../../../assets/skins/sam/sprite.png) no-repeat 0 -300px;width:25px;height:15px;top:.4em;right:.4em;cursor:pointer;}.yui-skin-sam .yui-calendar{border-spacing:0;border-collapse:collapse;font:100% sans-serif;text-align:center;margin:0;}.yui-skin-sam .yui-calendar .calhead{background:transparent;border:none;vertical-align:middle;padding:0;}.yui-skin-sam .yui-calendar .calheader{background:transparent;font-weight:bold;padding:0 0 .6em 0;text-align:center;}.yui-skin-sam .yui-calendar .calheader img{border:none;}.yui-skin-sam .yui-calendar .calnavleft{background:url(../../../../assets/skins/sam/sprite.png) no-repeat 0 -450px;width:25px;height:15px;top:0;bottom:0;left:-10px;margin-left:.4em;cursor:pointer;}.yui-skin-sam .yui-calendar .calnavright{background:url(../../../../assets/skins/sam/sprite.png) no-repeat 0 -500px;width:25px;height:15px;top:0;bottom:0;right:-10px;margin-right:.4em;cursor:pointer;}.yui-skin-sam .yui-calendar .calweekdayrow{height:2em;}.yui-skin-sam .yui-calendar .calweekdayrow th{padding:0;border:none;}.yui-skin-sam .yui-calendar .calweekdaycell{color:#000;font-weight:bold;text-align:center;width:2em;}.yui-skin-sam .yui-calendar .calfoot{background-color:#f2f2f2;}.yui-skin-sam .yui-calendar .calrowhead,.yui-skin-sam .yui-calendar .calrowfoot{color:#a6a6a6;font-size:85%;font-style:normal;font-weight:normal;border:none;}.yui-skin-sam .yui-calendar .calrowhead{text-align:right;padding:0 2px 0 0;}.yui-skin-sam .yui-calendar .calrowfoot{text-align:left;padding:0 0 0 2px;}.yui-skin-sam .yui-calendar td.calcell{border:1px solid #ccc;background:#fff;padding:1px;height:1.6em;line-height:1.6em;text-align:center;white-space:nowrap;}.yui-skin-sam .yui-calendar td.calcell a{color:#06c;display:block;height:100%;text-decoration:none;}.yui-skin-sam .yui-calendar td.calcell.today{background-color:#000;}.yui-skin-sam .yui-calendar td.calcell.today a{background-color:#fff;}.yui-skin-sam .yui-calendar td.calcell.oom{background-color:#ccc;color:#a6a6a6;cursor:default;}.yui-skin-sam .yui-calendar td.calcell.selected{background-color:#fff;color:#000;}.yui-skin-sam .yui-calendar td.calcell.selected a{background-color:#b3d4ff;color:#000;}.yui-skin-sam .yui-calendar td.calcell.calcellhover{background-color:#426fd9;color:#fff;cursor:pointer;}.yui-skin-sam .yui-calendar td.calcell.calcellhover a{background-color:#426fd9;color:#fff;}.yui-skin-sam .yui-calendar td.calcell.previous{color:#e0e0e0;}.yui-skin-sam .yui-calendar td.calcell.restricted{text-decoration:line-through;}.yui-skin-sam .yui-calendar td.calcell.highlight1{background-color:#cf9;}.yui-skin-sam .yui-calendar td.calcell.highlight2{background-color:#9cf;}.yui-skin-sam .yui-calendar td.calcell.highlight3{background-color:#fcc;}.yui-skin-sam .yui-calendar td.calcell.highlight4{background-color:#cf9;}.yui-skin-sam .yui-calendar a.calnav{border:1px solid #f2f2f2;padding:0 4px;text-decoration:none;color:#000;zoom:1;}.yui-skin-sam .yui-calendar a.calnav:hover{background:url(../../../../assets/skins/sam/sprite.png) repeat-x 0 0;border-color:#A0A0A0;cursor:pointer;}.yui-skin-sam .yui-calcontainer .yui-cal-nav-mask{background-color:#000;opacity:.25;filter:alpha(opacity=25);}.yui-skin-sam .yui-calcontainer .yui-cal-nav{font-family:arial,helvetica,clean,sans-serif;font-size:93%;border:1px solid #808080;left:50%;margin-left:-7em;width:14em;padding:0;top:2.5em;background-color:#f2f2f2;}.yui-skin-sam .yui-calcontainer.withtitle .yui-cal-nav{top:4.5em;}.yui-skin-sam .yui-calcontainer.multi .yui-cal-nav{width:16em;margin-left:-8em;}.yui-skin-sam .yui-calcontainer .yui-cal-nav-y,.yui-skin-sam .yui-calcontainer .yui-cal-nav-m,.yui-skin-sam .yui-calcontainer .yui-cal-nav-b{padding:5px 10px 5px 10px;}.yui-skin-sam .yui-calcontainer .yui-cal-nav-b{text-align:center;}.yui-skin-sam .yui-calcontainer .yui-cal-nav-e{margin-top:5px;padding:5px;background-color:#EDF5FF;border-top:1px solid black;display:none;}.yui-skin-sam .yui-calcontainer .yui-cal-nav label{display:block;font-weight:bold;}
-.yui-skin-sam .yui-calcontainer .yui-cal-nav-mc{width:100%;_width:auto;}.yui-skin-sam .yui-calcontainer .yui-cal-nav-y input.yui-invalid{background-color:#FFEE69;border:1px solid #000;}.yui-skin-sam .yui-calcontainer .yui-cal-nav-yc{width:4em;}.yui-skin-sam .yui-calcontainer .yui-cal-nav .yui-cal-nav-btn{border:1px solid #808080;background:url(../../../../assets/skins/sam/sprite.png) repeat-x 0 0;background-color:#ccc;margin:auto .15em;}.yui-skin-sam .yui-calcontainer .yui-cal-nav .yui-cal-nav-btn button{padding:0 8px;font-size:93%;line-height:2;*line-height:1.7;min-height:2em;*min-height:auto;color:#000;}.yui-skin-sam .yui-calcontainer .yui-cal-nav .yui-cal-nav-btn.yui-default{border:1px solid #304369;background-color:#426fd9;background:url(../../../../assets/skins/sam/sprite.png) repeat-x 0 -1400px;}.yui-skin-sam .yui-calcontainer .yui-cal-nav .yui-cal-nav-btn.yui-default button{color:#fff;}
diff --git a/koha-tmpl/intranet-tmpl/prog/en/lib/yui/calendar/calendar-debug.js b/koha-tmpl/intranet-tmpl/prog/en/lib/yui/calendar/calendar-debug.js
deleted file mode 100644 (file)
index 5015844..0000000
+++ /dev/null
@@ -1,7324 +0,0 @@
-/*
-Copyright (c) 2009, Yahoo! Inc. All rights reserved.
-Code licensed under the BSD License:
-http://developer.yahoo.net/yui/license.txt
-version: 2.8.0r4
-*/
-(function () {
-
-    /**
-    * Config is a utility used within an Object to allow the implementer to
-    * maintain a list of local configuration properties and listen for changes 
-    * to those properties dynamically using CustomEvent. The initial values are 
-    * also maintained so that the configuration can be reset at any given point 
-    * to its initial state.
-    * @namespace YAHOO.util
-    * @class Config
-    * @constructor
-    * @param {Object} owner The owner Object to which this Config Object belongs
-    */
-    YAHOO.util.Config = function (owner) {
-
-        if (owner) {
-            this.init(owner);
-        }
-
-        if (!owner) {  YAHOO.log("No owner specified for Config object", "error", "Config"); }
-
-    };
-
-
-    var Lang = YAHOO.lang,
-        CustomEvent = YAHOO.util.CustomEvent,
-        Config = YAHOO.util.Config;
-
-
-    /**
-     * Constant representing the CustomEvent type for the config changed event.
-     * @property YAHOO.util.Config.CONFIG_CHANGED_EVENT
-     * @private
-     * @static
-     * @final
-     */
-    Config.CONFIG_CHANGED_EVENT = "configChanged";
-    
-    /**
-     * Constant representing the boolean type string
-     * @property YAHOO.util.Config.BOOLEAN_TYPE
-     * @private
-     * @static
-     * @final
-     */
-    Config.BOOLEAN_TYPE = "boolean";
-    
-    Config.prototype = {
-     
-        /**
-        * Object reference to the owner of this Config Object
-        * @property owner
-        * @type Object
-        */
-        owner: null,
-        
-        /**
-        * Boolean flag that specifies whether a queue is currently 
-        * being executed
-        * @property queueInProgress
-        * @type Boolean
-        */
-        queueInProgress: false,
-        
-        /**
-        * Maintains the local collection of configuration property objects and 
-        * their specified values
-        * @property config
-        * @private
-        * @type Object
-        */ 
-        config: null,
-        
-        /**
-        * Maintains the local collection of configuration property objects as 
-        * they were initially applied.
-        * This object is used when resetting a property.
-        * @property initialConfig
-        * @private
-        * @type Object
-        */ 
-        initialConfig: null,
-        
-        /**
-        * Maintains the local, normalized CustomEvent queue
-        * @property eventQueue
-        * @private
-        * @type Object
-        */ 
-        eventQueue: null,
-        
-        /**
-        * Custom Event, notifying subscribers when Config properties are set 
-        * (setProperty is called without the silent flag
-        * @event configChangedEvent
-        */
-        configChangedEvent: null,
-    
-        /**
-        * Initializes the configuration Object and all of its local members.
-        * @method init
-        * @param {Object} owner The owner Object to which this Config 
-        * Object belongs
-        */
-        init: function (owner) {
-    
-            this.owner = owner;
-    
-            this.configChangedEvent = 
-                this.createEvent(Config.CONFIG_CHANGED_EVENT);
-    
-            this.configChangedEvent.signature = CustomEvent.LIST;
-            this.queueInProgress = false;
-            this.config = {};
-            this.initialConfig = {};
-            this.eventQueue = [];
-        
-        },
-        
-        /**
-        * Validates that the value passed in is a Boolean.
-        * @method checkBoolean
-        * @param {Object} val The value to validate
-        * @return {Boolean} true, if the value is valid
-        */ 
-        checkBoolean: function (val) {
-            return (typeof val == Config.BOOLEAN_TYPE);
-        },
-        
-        /**
-        * Validates that the value passed in is a number.
-        * @method checkNumber
-        * @param {Object} val The value to validate
-        * @return {Boolean} true, if the value is valid
-        */
-        checkNumber: function (val) {
-            return (!isNaN(val));
-        },
-        
-        /**
-        * Fires a configuration property event using the specified value. 
-        * @method fireEvent
-        * @private
-        * @param {String} key The configuration property's name
-        * @param {value} Object The value of the correct type for the property
-        */ 
-        fireEvent: function ( key, value ) {
-            YAHOO.log("Firing Config event: " + key + "=" + value, "info", "Config");
-            var property = this.config[key];
-        
-            if (property && property.event) {
-                property.event.fire(value);
-            } 
-        },
-        
-        /**
-        * Adds a property to the Config Object's private config hash.
-        * @method addProperty
-        * @param {String} key The configuration property's name
-        * @param {Object} propertyObject The Object containing all of this 
-        * property's arguments
-        */
-        addProperty: function ( key, propertyObject ) {
-            key = key.toLowerCase();
-            YAHOO.log("Added property: " + key, "info", "Config");
-        
-            this.config[key] = propertyObject;
-        
-            propertyObject.event = this.createEvent(key, { scope: this.owner });
-            propertyObject.event.signature = CustomEvent.LIST;
-            
-            
-            propertyObject.key = key;
-        
-            if (propertyObject.handler) {
-                propertyObject.event.subscribe(propertyObject.handler, 
-                    this.owner);
-            }
-        
-            this.setProperty(key, propertyObject.value, true);
-            
-            if (! propertyObject.suppressEvent) {
-                this.queueProperty(key, propertyObject.value);
-            }
-            
-        },
-        
-        /**
-        * Returns a key-value configuration map of the values currently set in  
-        * the Config Object.
-        * @method getConfig
-        * @return {Object} The current config, represented in a key-value map
-        */
-        getConfig: function () {
-        
-            var cfg = {},
-                currCfg = this.config,
-                prop,
-                property;
-                
-            for (prop in currCfg) {
-                if (Lang.hasOwnProperty(currCfg, prop)) {
-                    property = currCfg[prop];
-                    if (property && property.event) {
-                        cfg[prop] = property.value;
-                    }
-                }
-            }
-
-            return cfg;
-        },
-        
-        /**
-        * Returns the value of specified property.
-        * @method getProperty
-        * @param {String} key The name of the property
-        * @return {Object}  The value of the specified property
-        */
-        getProperty: function (key) {
-            var property = this.config[key.toLowerCase()];
-            if (property && property.event) {
-                return property.value;
-            } else {
-                return undefined;
-            }
-        },
-        
-        /**
-        * Resets the specified property's value to its initial value.
-        * @method resetProperty
-        * @param {String} key The name of the property
-        * @return {Boolean} True is the property was reset, false if not
-        */
-        resetProperty: function (key) {
-    
-            key = key.toLowerCase();
-        
-            var property = this.config[key];
-    
-            if (property && property.event) {
-    
-                if (this.initialConfig[key] && 
-                    !Lang.isUndefined(this.initialConfig[key])) {
-    
-                    this.setProperty(key, this.initialConfig[key]);
-
-                    return true;
-    
-                }
-    
-            } else {
-    
-                return false;
-            }
-    
-        },
-        
-        /**
-        * Sets the value of a property. If the silent property is passed as 
-        * true, the property's event will not be fired.
-        * @method setProperty
-        * @param {String} key The name of the property
-        * @param {String} value The value to set the property to
-        * @param {Boolean} silent Whether the value should be set silently, 
-        * without firing the property event.
-        * @return {Boolean} True, if the set was successful, false if it failed.
-        */
-        setProperty: function (key, value, silent) {
-        
-            var property;
-        
-            key = key.toLowerCase();
-            YAHOO.log("setProperty: " + key + "=" + value, "info", "Config");
-        
-            if (this.queueInProgress && ! silent) {
-                // Currently running through a queue... 
-                this.queueProperty(key,value);
-                return true;
-    
-            } else {
-                property = this.config[key];
-                if (property && property.event) {
-                    if (property.validator && !property.validator(value)) {
-                        return false;
-                    } else {
-                        property.value = value;
-                        if (! silent) {
-                            this.fireEvent(key, value);
-                            this.configChangedEvent.fire([key, value]);
-                        }
-                        return true;
-                    }
-                } else {
-                    return false;
-                }
-            }
-        },
-        
-        /**
-        * Sets the value of a property and queues its event to execute. If the 
-        * event is already scheduled to execute, it is
-        * moved from its current position to the end of the queue.
-        * @method queueProperty
-        * @param {String} key The name of the property
-        * @param {String} value The value to set the property to
-        * @return {Boolean}  true, if the set was successful, false if 
-        * it failed.
-        */ 
-        queueProperty: function (key, value) {
-        
-            key = key.toLowerCase();
-            YAHOO.log("queueProperty: " + key + "=" + value, "info", "Config");
-        
-            var property = this.config[key],
-                foundDuplicate = false,
-                iLen,
-                queueItem,
-                queueItemKey,
-                queueItemValue,
-                sLen,
-                supercedesCheck,
-                qLen,
-                queueItemCheck,
-                queueItemCheckKey,
-                queueItemCheckValue,
-                i,
-                s,
-                q;
-                                
-            if (property && property.event) {
-    
-                if (!Lang.isUndefined(value) && property.validator && 
-                    !property.validator(value)) { // validator
-                    return false;
-                } else {
-        
-                    if (!Lang.isUndefined(value)) {
-                        property.value = value;
-                    } else {
-                        value = property.value;
-                    }
-        
-                    foundDuplicate = false;
-                    iLen = this.eventQueue.length;
-        
-                    for (i = 0; i < iLen; i++) {
-                        queueItem = this.eventQueue[i];
-        
-                        if (queueItem) {
-                            queueItemKey = queueItem[0];
-                            queueItemValue = queueItem[1];
-
-                            if (queueItemKey == key) {
-    
-                                /*
-                                    found a dupe... push to end of queue, null 
-                                    current item, and break
-                                */
-    
-                                this.eventQueue[i] = null;
-    
-                                this.eventQueue.push(
-                                    [key, (!Lang.isUndefined(value) ? 
-                                    value : queueItemValue)]);
-    
-                                foundDuplicate = true;
-                                break;
-                            }
-                        }
-                    }
-                    
-                    // this is a refire, or a new property in the queue
-    
-                    if (! foundDuplicate && !Lang.isUndefined(value)) { 
-                        this.eventQueue.push([key, value]);
-                    }
-                }
-        
-                if (property.supercedes) {
-
-                    sLen = property.supercedes.length;
-
-                    for (s = 0; s < sLen; s++) {
-
-                        supercedesCheck = property.supercedes[s];
-                        qLen = this.eventQueue.length;
-
-                        for (q = 0; q < qLen; q++) {
-                            queueItemCheck = this.eventQueue[q];
-
-                            if (queueItemCheck) {
-                                queueItemCheckKey = queueItemCheck[0];
-                                queueItemCheckValue = queueItemCheck[1];
-
-                                if (queueItemCheckKey == 
-                                    supercedesCheck.toLowerCase() ) {
-
-                                    this.eventQueue.push([queueItemCheckKey, 
-                                        queueItemCheckValue]);
-
-                                    this.eventQueue[q] = null;
-                                    break;
-
-                                }
-                            }
-                        }
-                    }
-                }
-
-                YAHOO.log("Config event queue: " + this.outputEventQueue(), "info", "Config");
-
-                return true;
-            } else {
-                return false;
-            }
-        },
-        
-        /**
-        * Fires the event for a property using the property's current value.
-        * @method refireEvent
-        * @param {String} key The name of the property
-        */
-        refireEvent: function (key) {
-    
-            key = key.toLowerCase();
-        
-            var property = this.config[key];
-    
-            if (property && property.event && 
-    
-                !Lang.isUndefined(property.value)) {
-    
-                if (this.queueInProgress) {
-    
-                    this.queueProperty(key);
-    
-                } else {
-    
-                    this.fireEvent(key, property.value);
-    
-                }
-    
-            }
-        },
-        
-        /**
-        * Applies a key-value Object literal to the configuration, replacing  
-        * any existing values, and queueing the property events.
-        * Although the values will be set, fireQueue() must be called for their 
-        * associated events to execute.
-        * @method applyConfig
-        * @param {Object} userConfig The configuration Object literal
-        * @param {Boolean} init  When set to true, the initialConfig will 
-        * be set to the userConfig passed in, so that calling a reset will 
-        * reset the properties to the passed values.
-        */
-        applyConfig: function (userConfig, init) {
-        
-            var sKey,
-                oConfig;
-
-            if (init) {
-                oConfig = {};
-                for (sKey in userConfig) {
-                    if (Lang.hasOwnProperty(userConfig, sKey)) {
-                        oConfig[sKey.toLowerCase()] = userConfig[sKey];
-                    }
-                }
-                this.initialConfig = oConfig;
-            }
-
-            for (sKey in userConfig) {
-                if (Lang.hasOwnProperty(userConfig, sKey)) {
-                    this.queueProperty(sKey, userConfig[sKey]);
-                }
-            }
-        },
-        
-        /**
-        * Refires the events for all configuration properties using their 
-        * current values.
-        * @method refresh
-        */
-        refresh: function () {
-
-            var prop;
-
-            for (prop in this.config) {
-                if (Lang.hasOwnProperty(this.config, prop)) {
-                    this.refireEvent(prop);
-                }
-            }
-        },
-        
-        /**
-        * Fires the normalized list of queued property change events
-        * @method fireQueue
-        */
-        fireQueue: function () {
-        
-            var i, 
-                queueItem,
-                key,
-                value,
-                property;
-        
-            this.queueInProgress = true;
-            for (i = 0;i < this.eventQueue.length; i++) {
-                queueItem = this.eventQueue[i];
-                if (queueItem) {
-        
-                    key = queueItem[0];
-                    value = queueItem[1];
-                    property = this.config[key];
-
-                    property.value = value;
-
-                    // Clear out queue entry, to avoid it being 
-                    // re-added to the queue by any queueProperty/supercedes
-                    // calls which are invoked during fireEvent
-                    this.eventQueue[i] = null;
-
-                    this.fireEvent(key,value);
-                }
-            }
-            
-            this.queueInProgress = false;
-            this.eventQueue = [];
-        },
-        
-        /**
-        * Subscribes an external handler to the change event for any 
-        * given property. 
-        * @method subscribeToConfigEvent
-        * @param {String} key The property name
-        * @param {Function} handler The handler function to use subscribe to 
-        * the property's event
-        * @param {Object} obj The Object to use for scoping the event handler 
-        * (see CustomEvent documentation)
-        * @param {Boolean} overrideContext Optional. If true, will override
-        * "this" within the handler to map to the scope Object passed into the
-        * method.
-        * @return {Boolean} True, if the subscription was successful, 
-        * otherwise false.
-        */ 
-        subscribeToConfigEvent: function (key, handler, obj, overrideContext) {
-    
-            var property = this.config[key.toLowerCase()];
-    
-            if (property && property.event) {
-                if (!Config.alreadySubscribed(property.event, handler, obj)) {
-                    property.event.subscribe(handler, obj, overrideContext);
-                }
-                return true;
-            } else {
-                return false;
-            }
-    
-        },
-        
-        /**
-        * Unsubscribes an external handler from the change event for any 
-        * given property. 
-        * @method unsubscribeFromConfigEvent
-        * @param {String} key The property name
-        * @param {Function} handler The handler function to use subscribe to 
-        * the property's event
-        * @param {Object} obj The Object to use for scoping the event 
-        * handler (see CustomEvent documentation)
-        * @return {Boolean} True, if the unsubscription was successful, 
-        * otherwise false.
-        */
-        unsubscribeFromConfigEvent: function (key, handler, obj) {
-            var property = this.config[key.toLowerCase()];
-            if (property && property.event) {
-                return property.event.unsubscribe(handler, obj);
-            } else {
-                return false;
-            }
-        },
-        
-        /**
-        * Returns a string representation of the Config object
-        * @method toString
-        * @return {String} The Config object in string format.
-        */
-        toString: function () {
-            var output = "Config";
-            if (this.owner) {
-                output += " [" + this.owner.toString() + "]";
-            }
-            return output;
-        },
-        
-        /**
-        * Returns a string representation of the Config object's current 
-        * CustomEvent queue
-        * @method outputEventQueue
-        * @return {String} The string list of CustomEvents currently queued 
-        * for execution
-        */
-        outputEventQueue: function () {
-
-            var output = "",
-                queueItem,
-                q,
-                nQueue = this.eventQueue.length;
-              
-            for (q = 0; q < nQueue; q++) {
-                queueItem = this.eventQueue[q];
-                if (queueItem) {
-                    output += queueItem[0] + "=" + queueItem[1] + ", ";
-                }
-            }
-            return output;
-        },
-
-        /**
-        * Sets all properties to null, unsubscribes all listeners from each 
-        * property's change event and all listeners from the configChangedEvent.
-        * @method destroy
-        */
-        destroy: function () {
-
-            var oConfig = this.config,
-                sProperty,
-                oProperty;
-
-
-            for (sProperty in oConfig) {
-            
-                if (Lang.hasOwnProperty(oConfig, sProperty)) {
-
-                    oProperty = oConfig[sProperty];
-
-                    oProperty.event.unsubscribeAll();
-                    oProperty.event = null;
-
-                }
-            
-            }
-            
-            this.configChangedEvent.unsubscribeAll();
-            
-            this.configChangedEvent = null;
-            this.owner = null;
-            this.config = null;
-            this.initialConfig = null;
-            this.eventQueue = null;
-        
-        }
-
-    };
-    
-    
-    
-    /**
-    * Checks to determine if a particular function/Object pair are already 
-    * subscribed to the specified CustomEvent
-    * @method YAHOO.util.Config.alreadySubscribed
-    * @static
-    * @param {YAHOO.util.CustomEvent} evt The CustomEvent for which to check 
-    * the subscriptions
-    * @param {Function} fn The function to look for in the subscribers list
-    * @param {Object} obj The execution scope Object for the subscription
-    * @return {Boolean} true, if the function/Object pair is already subscribed 
-    * to the CustomEvent passed in
-    */
-    Config.alreadySubscribed = function (evt, fn, obj) {
-    
-        var nSubscribers = evt.subscribers.length,
-            subsc,
-            i;
-
-        if (nSubscribers > 0) {
-            i = nSubscribers - 1;
-            do {
-                subsc = evt.subscribers[i];
-                if (subsc && subsc.obj == obj && subsc.fn == fn) {
-                    return true;
-                }
-            }
-            while (i--);
-        }
-
-        return false;
-
-    };
-
-    YAHOO.lang.augmentProto(Config, YAHOO.util.EventProvider);
-
-}());
-/**
-* The datemath module provides utility methods for basic JavaScript Date object manipulation and 
-* comparison. 
-* 
-* @module datemath
-*/
-
-/**
-* YAHOO.widget.DateMath is used for simple date manipulation. The class is a static utility
-* used for adding, subtracting, and comparing dates.
-* @namespace YAHOO.widget
-* @class DateMath
-*/
-YAHOO.widget.DateMath = {
-    /**
-    * Constant field representing Day
-    * @property DAY
-    * @static
-    * @final
-    * @type String
-    */
-    DAY : "D",
-
-    /**
-    * Constant field representing Week
-    * @property WEEK
-    * @static
-    * @final
-    * @type String
-    */
-    WEEK : "W",
-
-    /**
-    * Constant field representing Year
-    * @property YEAR
-    * @static
-    * @final
-    * @type String
-    */
-    YEAR : "Y",
-
-    /**
-    * Constant field representing Month
-    * @property MONTH
-    * @static
-    * @final
-    * @type String
-    */
-    MONTH : "M",
-
-    /**
-    * Constant field representing one day, in milliseconds
-    * @property ONE_DAY_MS
-    * @static
-    * @final
-    * @type Number
-    */
-    ONE_DAY_MS : 1000*60*60*24,
-    
-    /**
-     * Constant field representing the date in first week of January
-     * which identifies the first week of the year.
-     * <p>
-     * In the U.S, Jan 1st is normally used based on a Sunday start of week.
-     * ISO 8601, used widely throughout Europe, uses Jan 4th, based on a Monday start of week.
-     * </p>
-     * @property WEEK_ONE_JAN_DATE
-     * @static
-     * @type Number
-     */
-    WEEK_ONE_JAN_DATE : 1,
-
-    /**
-    * Adds the specified amount of time to the this instance.
-    * @method add
-    * @param {Date} date The JavaScript Date object to perform addition on
-    * @param {String} field The field constant to be used for performing addition.
-    * @param {Number} amount The number of units (measured in the field constant) to add to the date.
-    * @return {Date} The resulting Date object
-    */
-    add : function(date, field, amount) {
-        var d = new Date(date.getTime());
-        switch (field) {
-            case this.MONTH:
-                var newMonth = date.getMonth() + amount;
-                var years = 0;
-
-                if (newMonth < 0) {
-                    while (newMonth < 0) {
-                        newMonth += 12;
-                        years -= 1;
-                    }
-                } else if (newMonth > 11) {
-                    while (newMonth > 11) {
-                        newMonth -= 12;
-                        years += 1;
-                    }
-                }
-
-                d.setMonth(newMonth);
-                d.setFullYear(date.getFullYear() + years);
-                break;
-            case this.DAY:
-                this._addDays(d, amount);
-                // d.setDate(date.getDate() + amount);
-                break;
-            case this.YEAR:
-                d.setFullYear(date.getFullYear() + amount);
-                break;
-            case this.WEEK:
-                this._addDays(d, (amount * 7));
-                // d.setDate(date.getDate() + (amount * 7));
-                break;
-        }
-        return d;
-    },
-
-    /**
-     * Private helper method to account for bug in Safari 2 (webkit < 420)
-     * when Date.setDate(n) is called with n less than -128 or greater than 127.
-     * <p>
-     * Fix approach and original findings are available here:
-     * http://brianary.blogspot.com/2006/03/safari-date-bug.html
-     * </p>
-     * @method _addDays
-     * @param {Date} d JavaScript date object
-     * @param {Number} nDays The number of days to add to the date object (can be negative)
-     * @private
-     */
-    _addDays : function(d, nDays) {
-        if (YAHOO.env.ua.webkit && YAHOO.env.ua.webkit < 420) {
-            if (nDays < 0) {
-                // Ensure we don't go below -128 (getDate() is always 1 to 31, so we won't go above 127)
-                for(var min = -128; nDays < min; nDays -= min) {
-                    d.setDate(d.getDate() + min);
-                }
-            } else {
-                // Ensure we don't go above 96 + 31 = 127
-                for(var max = 96; nDays > max; nDays -= max) {
-                    d.setDate(d.getDate() + max);
-                }
-            }
-            // nDays should be remainder between -128 and 96
-        }
-        d.setDate(d.getDate() + nDays);
-    },
-
-    /**
-    * Subtracts the specified amount of time from the this instance.
-    * @method subtract
-    * @param {Date} date The JavaScript Date object to perform subtraction on
-    * @param {Number} field The this field constant to be used for performing subtraction.
-    * @param {Number} amount The number of units (measured in the field constant) to subtract from the date.
-    * @return {Date} The resulting Date object
-    */
-    subtract : function(date, field, amount) {
-        return this.add(date, field, (amount*-1));
-    },
-
-    /**
-    * Determines whether a given date is before another date on the calendar.
-    * @method before
-    * @param {Date} date  The Date object to compare with the compare argument
-    * @param {Date} compareTo The Date object to use for the comparison
-    * @return {Boolean} true if the date occurs before the compared date; false if not.
-    */
-    before : function(date, compareTo) {
-        var ms = compareTo.getTime();
-        if (date.getTime() < ms) {
-            return true;
-        } else {
-            return false;
-        }
-    },
-
-    /**
-    * Determines whether a given date is after another date on the calendar.
-    * @method after
-    * @param {Date} date  The Date object to compare with the compare argument
-    * @param {Date} compareTo The Date object to use for the comparison
-    * @return {Boolean} true if the date occurs after the compared date; false if not.
-    */
-    after : function(date, compareTo) {
-        var ms = compareTo.getTime();
-        if (date.getTime() > ms) {
-            return true;
-        } else {
-            return false;
-        }
-    },
-
-    /**
-    * Determines whether a given date is between two other dates on the calendar.
-    * @method between
-    * @param {Date} date  The date to check for
-    * @param {Date} dateBegin The start of the range
-    * @param {Date} dateEnd  The end of the range
-    * @return {Boolean} true if the date occurs between the compared dates; false if not.
-    */
-    between : function(date, dateBegin, dateEnd) {
-        if (this.after(date, dateBegin) && this.before(date, dateEnd)) {
-            return true;
-        } else {
-            return false;
-        }
-    },
-    
-    /**
-    * Retrieves a JavaScript Date object representing January 1 of any given year.
-    * @method getJan1
-    * @param {Number} calendarYear  The calendar year for which to retrieve January 1
-    * @return {Date} January 1 of the calendar year specified.
-    */
-    getJan1 : function(calendarYear) {
-        return this.getDate(calendarYear,0,1);
-    },
-
-    /**
-    * Calculates the number of days the specified date is from January 1 of the specified calendar year.
-    * Passing January 1 to this function would return an offset value of zero.
-    * @method getDayOffset
-    * @param {Date} date The JavaScript date for which to find the offset
-    * @param {Number} calendarYear The calendar year to use for determining the offset
-    * @return {Number} The number of days since January 1 of the given year
-    */
-    getDayOffset : function(date, calendarYear) {
-        var beginYear = this.getJan1(calendarYear); // Find the start of the year. This will be in week 1.
-        
-        // Find the number of days the passed in date is away from the calendar year start
-        var dayOffset = Math.ceil((date.getTime()-beginYear.getTime()) / this.ONE_DAY_MS);
-        return dayOffset;
-    },
-
-    /**
-    * Calculates the week number for the given date. Can currently support standard
-    * U.S. week numbers, based on Jan 1st defining the 1st week of the year, and 
-    * ISO8601 week numbers, based on Jan 4th defining the 1st week of the year.
-    * 
-    * @method getWeekNumber
-    * @param {Date} date The JavaScript date for which to find the week number
-    * @param {Number} firstDayOfWeek The index of the first day of the week (0 = Sun, 1 = Mon ... 6 = Sat).
-    * Defaults to 0
-    * @param {Number} janDate The date in the first week of January which defines week one for the year
-    * Defaults to the value of YAHOO.widget.DateMath.WEEK_ONE_JAN_DATE, which is 1 (Jan 1st). 
-    * For the U.S, this is normally Jan 1st. ISO8601 uses Jan 4th to define the first week of the year.
-    * 
-    * @return {Number} The number of the week containing the given date.
-    */
-    getWeekNumber : function(date, firstDayOfWeek, janDate) {
-
-        // Setup Defaults
-        firstDayOfWeek = firstDayOfWeek || 0;
-        janDate = janDate || this.WEEK_ONE_JAN_DATE;
-
-        var targetDate = this.clearTime(date),
-            startOfWeek,
-            endOfWeek;
-
-        if (targetDate.getDay() === firstDayOfWeek) { 
-            startOfWeek = targetDate;
-        } else {
-            startOfWeek = this.getFirstDayOfWeek(targetDate, firstDayOfWeek);
-        }
-
-        var startYear = startOfWeek.getFullYear();
-
-        // DST shouldn't be a problem here, math is quicker than setDate();
-        endOfWeek = new Date(startOfWeek.getTime() + 6*this.ONE_DAY_MS);
-
-        var weekNum;
-        if (startYear !== endOfWeek.getFullYear() && endOfWeek.getDate() >= janDate) {
-            // If years don't match, endOfWeek is in Jan. and if the 
-            // week has WEEK_ONE_JAN_DATE in it, it's week one by definition.
-            weekNum = 1;
-        } else {
-            // Get the 1st day of the 1st week, and 
-            // find how many days away we are from it.
-            var weekOne = this.clearTime(this.getDate(startYear, 0, janDate)),
-                weekOneDayOne = this.getFirstDayOfWeek(weekOne, firstDayOfWeek);
-
-            // Round days to smoothen out 1 hr DST diff
-            var daysDiff  = Math.round((targetDate.getTime() - weekOneDayOne.getTime())/this.ONE_DAY_MS);
-
-            // Calc. Full Weeks
-            var rem = daysDiff % 7;
-            var weeksDiff = (daysDiff - rem)/7;
-            weekNum = weeksDiff + 1;
-        }
-        return weekNum;
-    },
-
-    /**
-     * Get the first day of the week, for the give date. 
-     * @param {Date} dt The date in the week for which the first day is required.
-     * @param {Number} startOfWeek The index for the first day of the week, 0 = Sun, 1 = Mon ... 6 = Sat (defaults to 0)
-     * @return {Date} The first day of the week
-     */
-    getFirstDayOfWeek : function (dt, startOfWeek) {
-        startOfWeek = startOfWeek || 0;
-        var dayOfWeekIndex = dt.getDay(),
-            dayOfWeek = (dayOfWeekIndex - startOfWeek + 7) % 7;
-
-        return this.subtract(dt, this.DAY, dayOfWeek);
-    },
-
-    /**
-    * Determines if a given week overlaps two different years.
-    * @method isYearOverlapWeek
-    * @param {Date} weekBeginDate The JavaScript Date representing the first day of the week.
-    * @return {Boolean} true if the date overlaps two different years.
-    */
-    isYearOverlapWeek : function(weekBeginDate) {
-        var overlaps = false;
-        var nextWeek = this.add(weekBeginDate, this.DAY, 6);
-        if (nextWeek.getFullYear() != weekBeginDate.getFullYear()) {
-            overlaps = true;
-        }
-        return overlaps;
-    },
-
-    /**
-    * Determines if a given week overlaps two different months.
-    * @method isMonthOverlapWeek
-    * @param {Date} weekBeginDate The JavaScript Date representing the first day of the week.
-    * @return {Boolean} true if the date overlaps two different months.
-    */
-    isMonthOverlapWeek : function(weekBeginDate) {
-        var overlaps = false;
-        var nextWeek = this.add(weekBeginDate, this.DAY, 6);
-        if (nextWeek.getMonth() != weekBeginDate.getMonth()) {
-            overlaps = true;
-        }
-        return overlaps;
-    },
-
-    /**
-    * Gets the first day of a month containing a given date.
-    * @method findMonthStart
-    * @param {Date} date The JavaScript Date used to calculate the month start
-    * @return {Date}  The JavaScript Date representing the first day of the month
-    */
-    findMonthStart : function(date) {
-        var start = this.getDate(date.getFullYear(), date.getMonth(), 1);
-        return start;
-    },
-
-    /**
-    * Gets the last day of a month containing a given date.
-    * @method findMonthEnd
-    * @param {Date} date The JavaScript Date used to calculate the month end
-    * @return {Date}  The JavaScript Date representing the last day of the month
-    */
-    findMonthEnd : function(date) {
-        var start = this.findMonthStart(date);
-        var nextMonth = this.add(start, this.MONTH, 1);
-        var end = this.subtract(nextMonth, this.DAY, 1);
-        return end;
-    },
-
-    /**
-    * Clears the time fields from a given date, effectively setting the time to 12 noon.
-    * @method clearTime
-    * @param {Date} date The JavaScript Date for which the time fields will be cleared
-    * @return {Date}  The JavaScript Date cleared of all time fields
-    */
-    clearTime : function(date) {
-        date.setHours(12,0,0,0);
-        return date;
-    },
-
-    /**
-     * Returns a new JavaScript Date object, representing the given year, month and date. Time fields (hr, min, sec, ms) on the new Date object
-     * are set to 0. The method allows Date instances to be created with the a year less than 100. "new Date(year, month, date)" implementations 
-     * set the year to 19xx if a year (xx) which is less than 100 is provided.
-     * <p>
-     * <em>NOTE:</em>Validation on argument values is not performed. It is the caller's responsibility to ensure
-     * arguments are valid as per the ECMAScript-262 Date object specification for the new Date(year, month[, date]) constructor.
-     * </p>
-     * @method getDate
-     * @param {Number} y Year.
-     * @param {Number} m Month index from 0 (Jan) to 11 (Dec).
-     * @param {Number} d (optional) Date from 1 to 31. If not provided, defaults to 1.
-     * @return {Date} The JavaScript date object with year, month, date set as provided.
-     */
-    getDate : function(y, m, d) {
-        var dt = null;
-        if (YAHOO.lang.isUndefined(d)) {
-            d = 1;
-        }
-        if (y >= 100) {
-            dt = new Date(y, m, d);
-        } else {
-            dt = new Date();
-            dt.setFullYear(y);
-            dt.setMonth(m);
-            dt.setDate(d);
-            dt.setHours(0,0,0,0);
-        }
-        return dt;
-    }
-};
-/**
-* The Calendar component is a UI control that enables users to choose one or more dates from a graphical calendar presented in a one-month or
-* multi-month interface. Calendars are generated entirely via script and can be navigated without any page refreshes.
-* @module    calendar
-* @title    Calendar
-* @namespace  YAHOO.widget
-* @requires  yahoo,dom,event
-*/
-(function(){
-
-    var Dom = YAHOO.util.Dom,
-        Event = YAHOO.util.Event,
-        Lang = YAHOO.lang,
-        DateMath = YAHOO.widget.DateMath;
-
-/**
-* Calendar is the base class for the Calendar widget. In its most basic
-* implementation, it has the ability to render a calendar widget on the page
-* that can be manipulated to select a single date, move back and forth between
-* months and years.
-* <p>To construct the placeholder for the calendar widget, the code is as
-* follows:
-*   <xmp>
-*       <div id="calContainer"></div>
-*   </xmp>
-* </p>
-* <p>
-* <strong>NOTE: As of 2.4.0, the constructor's ID argument is optional.</strong>
-* The Calendar can be constructed by simply providing a container ID string, 
-* or a reference to a container DIV HTMLElement (the element needs to exist 
-* in the document).
-* 
-* E.g.:
-*   <xmp>
-*       var c = new YAHOO.widget.Calendar("calContainer", configOptions);
-*   </xmp>
-* or:
-*   <xmp>
-*       var containerDiv = YAHOO.util.Dom.get("calContainer");
-*       var c = new YAHOO.widget.Calendar(containerDiv, configOptions);
-*   </xmp>
-* </p>
-* <p>
-* If not provided, the ID will be generated from the container DIV ID by adding an "_t" suffix.
-* For example if an ID is not provided, and the container's ID is "calContainer", the Calendar's ID will be set to "calContainer_t".
-* </p>
-* 
-* @namespace YAHOO.widget
-* @class Calendar
-* @constructor
-* @param {String} id optional The id of the table element that will represent the Calendar widget. As of 2.4.0, this argument is optional.
-* @param {String | HTMLElement} container The id of the container div element that will wrap the Calendar table, or a reference to a DIV element which exists in the document.
-* @param {Object} config optional The configuration object containing the initial configuration values for the Calendar.
-*/
-function Calendar(id, containerId, config) {
-    this.init.apply(this, arguments);
-}
-
-/**
-* The path to be used for images loaded for the Calendar
-* @property YAHOO.widget.Calendar.IMG_ROOT
-* @static
-* @deprecated   You can now customize images by overriding the calclose, calnavleft and calnavright default CSS classes for the close icon, left arrow and right arrow respectively
-* @type String
-*/
-Calendar.IMG_ROOT = null;
-
-/**
-* Type constant used for renderers to represent an individual date (M/D/Y)
-* @property YAHOO.widget.Calendar.DATE
-* @static
-* @final
-* @type String
-*/
-Calendar.DATE = "D";
-
-/**
-* Type constant used for renderers to represent an individual date across any year (M/D)
-* @property YAHOO.widget.Calendar.MONTH_DAY
-* @static
-* @final
-* @type String
-*/
-Calendar.MONTH_DAY = "MD";
-
-/**
-* Type constant used for renderers to represent a weekday
-* @property YAHOO.widget.Calendar.WEEKDAY
-* @static
-* @final
-* @type String
-*/
-Calendar.WEEKDAY = "WD";
-
-/**
-* Type constant used for renderers to represent a range of individual dates (M/D/Y-M/D/Y)
-* @property YAHOO.widget.Calendar.RANGE
-* @static
-* @final
-* @type String
-*/
-Calendar.RANGE = "R";
-
-/**
-* Type constant used for renderers to represent a month across any year
-* @property YAHOO.widget.Calendar.MONTH
-* @static
-* @final
-* @type String
-*/
-Calendar.MONTH = "M";
-
-/**
-* Constant that represents the total number of date cells that are displayed in a given month
-* @property YAHOO.widget.Calendar.DISPLAY_DAYS
-* @static
-* @final
-* @type Number
-*/
-Calendar.DISPLAY_DAYS = 42;
-
-/**
-* Constant used for halting the execution of the remainder of the render stack
-* @property YAHOO.widget.Calendar.STOP_RENDER
-* @static
-* @final
-* @type String
-*/
-Calendar.STOP_RENDER = "S";
-
-/**
-* Constant used to represent short date field string formats (e.g. Tu or Feb)
-* @property YAHOO.widget.Calendar.SHORT
-* @static
-* @final
-* @type String
-*/
-Calendar.SHORT = "short";
-
-/**
-* Constant used to represent long date field string formats (e.g. Monday or February)
-* @property YAHOO.widget.Calendar.LONG
-* @static
-* @final
-* @type String
-*/
-Calendar.LONG = "long";
-
-/**
-* Constant used to represent medium date field string formats (e.g. Mon)
-* @property YAHOO.widget.Calendar.MEDIUM
-* @static
-* @final
-* @type String
-*/
-Calendar.MEDIUM = "medium";
-
-/**
-* Constant used to represent single character date field string formats (e.g. M, T, W)
-* @property YAHOO.widget.Calendar.ONE_CHAR
-* @static
-* @final
-* @type String
-*/
-Calendar.ONE_CHAR = "1char";
-
-/**
-* The set of default Config property keys and values for the Calendar.
-*
-* <p>
-* NOTE: This property is made public in order to allow users to change 
-* the default values of configuration properties. Users should not 
-* modify the key string, unless they are overriding the Calendar implementation
-* </p>
-*
-* <p>
-* The property is an object with key/value pairs, the key being the 
-* uppercase configuration property name and the value being an object 
-* literal with a key string property, and a value property, specifying the 
-* default value of the property. To override a default value, you can set
-* the value property, for example, <code>YAHOO.widget.Calendar.DEFAULT_CONFIG.MULTI_SELECT.value = true;</code>
-* 
-* @property YAHOO.widget.Calendar.DEFAULT_CONFIG
-* @static
-* @type Object
-*/
-
-Calendar.DEFAULT_CONFIG = {
-    YEAR_OFFSET : {key:"year_offset", value:0, supercedes:["pagedate", "selected", "mindate","maxdate"]},
-    TODAY : {key:"today", value:new Date(), supercedes:["pagedate"]}, 
-    PAGEDATE : {key:"pagedate", value:null},
-    SELECTED : {key:"selected", value:[]},
-    TITLE : {key:"title", value:""},
-    CLOSE : {key:"close", value:false},
-    IFRAME : {key:"iframe", value:(YAHOO.env.ua.ie && YAHOO.env.ua.ie <= 6) ? true : false},
-    MINDATE : {key:"mindate", value:null},
-    MAXDATE : {key:"maxdate", value:null},
-    MULTI_SELECT : {key:"multi_select", value:false},
-    START_WEEKDAY : {key:"start_weekday", value:0},
-    SHOW_WEEKDAYS : {key:"show_weekdays", value:true},
-    SHOW_WEEK_HEADER : {key:"show_week_header", value:false},
-    SHOW_WEEK_FOOTER : {key:"show_week_footer", value:false},
-    HIDE_BLANK_WEEKS : {key:"hide_blank_weeks", value:false},
-    NAV_ARROW_LEFT: {key:"nav_arrow_left", value:null} ,
-    NAV_ARROW_RIGHT : {key:"nav_arrow_right", value:null} ,
-    MONTHS_SHORT : {key:"months_short", value:["Jan", "Feb", "Mar", "Apr", "May", "Jun", "Jul", "Aug", "Sep", "Oct", "Nov", "Dec"]},
-    MONTHS_LONG: {key:"months_long", value:["January", "February", "March", "April", "May", "June", "July", "August", "September", "October", "November", "December"]},
-    WEEKDAYS_1CHAR: {key:"weekdays_1char", value:["S", "M", "T", "W", "T", "F", "S"]},
-    WEEKDAYS_SHORT: {key:"weekdays_short", value:["Su", "Mo", "Tu", "We", "Th", "Fr", "Sa"]},
-    WEEKDAYS_MEDIUM: {key:"weekdays_medium", value:["Sun", "Mon", "Tue", "Wed", "Thu", "Fri", "Sat"]},
-    WEEKDAYS_LONG: {key:"weekdays_long", value:["Sunday", "Monday", "Tuesday", "Wednesday", "Thursday", "Friday", "Saturday"]},
-    LOCALE_MONTHS:{key:"locale_months", value:"long"},
-    LOCALE_WEEKDAYS:{key:"locale_weekdays", value:"short"},
-    DATE_DELIMITER:{key:"date_delimiter", value:","},
-    DATE_FIELD_DELIMITER:{key:"date_field_delimiter", value:"/"},
-    DATE_RANGE_DELIMITER:{key:"date_range_delimiter", value:"-"},
-    MY_MONTH_POSITION:{key:"my_month_position", value:1},
-    MY_YEAR_POSITION:{key:"my_year_position", value:2},
-    MD_MONTH_POSITION:{key:"md_month_position", value:1},
-    MD_DAY_POSITION:{key:"md_day_position", value:2},
-    MDY_MONTH_POSITION:{key:"mdy_month_position", value:1},
-    MDY_DAY_POSITION:{key:"mdy_day_position", value:2},
-    MDY_YEAR_POSITION:{key:"mdy_year_position", value:3},
-    MY_LABEL_MONTH_POSITION:{key:"my_label_month_position", value:1},
-    MY_LABEL_YEAR_POSITION:{key:"my_label_year_position", value:2},
-    MY_LABEL_MONTH_SUFFIX:{key:"my_label_month_suffix", value:" "},
-    MY_LABEL_YEAR_SUFFIX:{key:"my_label_year_suffix", value:""},
-    NAV: {key:"navigator", value: null},
-    STRINGS : { 
-        key:"strings",
-        value: {
-            previousMonth : "Previous Month",
-            nextMonth : "Next Month",
-            close: "Close"
-        },
-        supercedes : ["close", "title"]
-    }
-};
-
-/**
-* The set of default Config property keys and values for the Calendar
-* @property YAHOO.widget.Calendar._DEFAULT_CONFIG
-* @deprecated Made public. See the public DEFAULT_CONFIG property for details
-* @final
-* @static
-* @private
-* @type Object
-*/
-Calendar._DEFAULT_CONFIG = Calendar.DEFAULT_CONFIG;
-
-var DEF_CFG = Calendar.DEFAULT_CONFIG;
-
-/**
-* The set of Custom Event types supported by the Calendar
-* @property YAHOO.widget.Calendar._EVENT_TYPES
-* @final
-* @static
-* @private
-* @type Object
-*/
-Calendar._EVENT_TYPES = {
-    BEFORE_SELECT : "beforeSelect", 
-    SELECT : "select",
-    BEFORE_DESELECT : "beforeDeselect",
-    DESELECT : "deselect",
-    CHANGE_PAGE : "changePage",
-    BEFORE_RENDER : "beforeRender",
-    RENDER : "render",
-    BEFORE_DESTROY : "beforeDestroy",
-    DESTROY : "destroy",
-    RESET : "reset",
-    CLEAR : "clear",
-    BEFORE_HIDE : "beforeHide",
-    HIDE : "hide",
-    BEFORE_SHOW : "beforeShow",
-    SHOW : "show",
-    BEFORE_HIDE_NAV : "beforeHideNav",
-    HIDE_NAV : "hideNav",
-    BEFORE_SHOW_NAV : "beforeShowNav",
-    SHOW_NAV : "showNav",
-    BEFORE_RENDER_NAV : "beforeRenderNav",
-    RENDER_NAV : "renderNav"
-};
-
-/**
-* The set of default style constants for the Calendar
-* @property YAHOO.widget.Calendar.STYLES
-* @static
-* @type Object An object with name/value pairs for the class name identifier/value.
-*/
-Calendar.STYLES = {
-    CSS_ROW_HEADER: "calrowhead",
-    CSS_ROW_FOOTER: "calrowfoot",
-    CSS_CELL : "calcell",
-    CSS_CELL_SELECTOR : "selector",
-    CSS_CELL_SELECTED : "selected",
-    CSS_CELL_SELECTABLE : "selectable",
-    CSS_CELL_RESTRICTED : "restricted",
-    CSS_CELL_TODAY : "today",
-    CSS_CELL_OOM : "oom",
-    CSS_CELL_OOB : "previous",
-    CSS_HEADER : "calheader",
-    CSS_HEADER_TEXT : "calhead",
-    CSS_BODY : "calbody",
-    CSS_WEEKDAY_CELL : "calweekdaycell",
-    CSS_WEEKDAY_ROW : "calweekdayrow",
-    CSS_FOOTER : "calfoot",
-    CSS_CALENDAR : "yui-calendar",
-    CSS_SINGLE : "single",
-    CSS_CONTAINER : "yui-calcontainer",
-    CSS_NAV_LEFT : "calnavleft",
-    CSS_NAV_RIGHT : "calnavright",
-    CSS_NAV : "calnav",
-    CSS_CLOSE : "calclose",
-    CSS_CELL_TOP : "calcelltop",
-    CSS_CELL_LEFT : "calcellleft",
-    CSS_CELL_RIGHT : "calcellright",
-    CSS_CELL_BOTTOM : "calcellbottom",
-    CSS_CELL_HOVER : "calcellhover",
-    CSS_CELL_HIGHLIGHT1 : "highlight1",
-    CSS_CELL_HIGHLIGHT2 : "highlight2",
-    CSS_CELL_HIGHLIGHT3 : "highlight3",
-    CSS_CELL_HIGHLIGHT4 : "highlight4",
-    CSS_WITH_TITLE: "withtitle",
-    CSS_FIXED_SIZE: "fixedsize",
-    CSS_LINK_CLOSE: "link-close"
-};
-
-/**
-* The set of default style constants for the Calendar
-* @property YAHOO.widget.Calendar._STYLES
-* @deprecated Made public. See the public STYLES property for details
-* @final
-* @static
-* @private
-* @type Object
-*/
-Calendar._STYLES = Calendar.STYLES;
-
-Calendar.prototype = {
-
-    /**
-    * The configuration object used to set up the calendars various locale and style options.
-    * @property Config
-    * @private
-    * @deprecated Configuration properties should be set by calling Calendar.cfg.setProperty.
-    * @type Object
-    */
-    Config : null,
-
-    /**
-    * The parent CalendarGroup, only to be set explicitly by the parent group
-    * @property parent
-    * @type CalendarGroup
-    */ 
-    parent : null,
-
-    /**
-    * The index of this item in the parent group
-    * @property index
-    * @type Number
-    */
-    index : -1,
-
-    /**
-    * The collection of calendar table cells
-    * @property cells
-    * @type HTMLTableCellElement[]
-    */
-    cells : null,
-
-    /**
-    * The collection of calendar cell dates that is parallel to the cells collection. The array contains dates field arrays in the format of [YYYY, M, D].
-    * @property cellDates
-    * @type Array[](Number[])
-    */
-    cellDates : null,
-
-    /**
-    * The id that uniquely identifies this Calendar.
-    * @property id
-    * @type String
-    */
-    id : null,
-
-    /**
-    * The unique id associated with the Calendar's container
-    * @property containerId
-    * @type String
-    */
-    containerId: null,
-
-    /**
-    * The DOM element reference that points to this calendar's container element. The calendar will be inserted into this element when the shell is rendered.
-    * @property oDomContainer
-    * @type HTMLElement
-    */
-    oDomContainer : null,
-
-    /**
-    * A Date object representing today's date.
-    * @deprecated Use the "today" configuration property
-    * @property today
-    * @type Date
-    */
-    today : null,
-
-    /**
-    * The list of render functions, along with required parameters, used to render cells. 
-    * @property renderStack
-    * @type Array[]
-    */
-    renderStack : null,
-
-    /**
-    * A copy of the initial render functions created before rendering.
-    * @property _renderStack
-    * @private
-    * @type Array
-    */
-    _renderStack : null,
-
-    /**
-    * A reference to the CalendarNavigator instance created for this Calendar.
-    * Will be null if the "navigator" configuration property has not been set
-    * @property oNavigator
-    * @type CalendarNavigator
-    */
-    oNavigator : null,
-
-    /**
-    * The private list of initially selected dates.
-    * @property _selectedDates
-    * @private
-    * @type Array
-    */
-    _selectedDates : null,
-
-    /**
-    * A map of DOM event handlers to attach to cells associated with specific CSS class names
-    * @property domEventMap
-    * @type Object
-    */
-    domEventMap : null,
-
-    /**
-     * Protected helper used to parse Calendar constructor/init arguments.
-     *
-     * As of 2.4.0, Calendar supports a simpler constructor 
-     * signature. This method reconciles arguments
-     * received in the pre 2.4.0 and 2.4.0 formats.
-     * 
-     * @protected
-     * @method _parseArgs
-     * @param {Array} Function "arguments" array
-     * @return {Object} Object with id, container, config properties containing
-     * the reconciled argument values.
-     **/
-    _parseArgs : function(args) {
-        /*
-           2.4.0 Constructors signatures
-
-           new Calendar(String)
-           new Calendar(HTMLElement)
-           new Calendar(String, ConfigObject)
-           new Calendar(HTMLElement, ConfigObject)
-
-           Pre 2.4.0 Constructor signatures
-
-           new Calendar(String, String)
-           new Calendar(String, HTMLElement)
-           new Calendar(String, String, ConfigObject)
-           new Calendar(String, HTMLElement, ConfigObject)
-         */
-        var nArgs = {id:null, container:null, config:null};
-
-        if (args && args.length && args.length > 0) {
-            switch (args.length) {
-                case 1:
-                    nArgs.id = null;
-                    nArgs.container = args[0];
-                    nArgs.config = null;
-                    break;
-                case 2:
-                    if (Lang.isObject(args[1]) && !args[1].tagName && !(args[1] instanceof String)) {
-                        nArgs.id = null;
-                        nArgs.container = args[0];
-                        nArgs.config = args[1];
-                    } else {
-                        nArgs.id = args[0];
-                        nArgs.container = args[1];
-                        nArgs.config = null;
-                    }
-                    break;
-                default: // 3+
-                    nArgs.id = args[0];
-                    nArgs.container = args[1];
-                    nArgs.config = args[2];
-                    break;
-            }
-        } else {
-            this.logger.log("Invalid constructor/init arguments", "error");
-        }
-        return nArgs;
-    },
-
-    /**
-    * Initializes the Calendar widget.
-    * @method init
-    *
-    * @param {String} id optional The id of the table element that will represent the Calendar widget. As of 2.4.0, this argument is optional.
-    * @param {String | HTMLElement} container The id of the container div element that will wrap the Calendar table, or a reference to a DIV element which exists in the document.
-    * @param {Object} config optional The configuration object containing the initial configuration values for the Calendar.
-    */
-    init : function(id, container, config) {
-        // Normalize 2.4.0, pre 2.4.0 args
-        var nArgs = this._parseArgs(arguments);
-
-        id = nArgs.id;
-        container = nArgs.container;
-        config = nArgs.config;
-
-        this.oDomContainer = Dom.get(container);
-        if (!this.oDomContainer) { this.logger.log("Container not found in document.", "error"); }
-
-        if (!this.oDomContainer.id) {
-            this.oDomContainer.id = Dom.generateId();
-        }
-        if (!id) {
-            id = this.oDomContainer.id + "_t";
-        }
-
-        this.id = id;
-        this.containerId = this.oDomContainer.id;
-
-        this.logger = new YAHOO.widget.LogWriter("Calendar " + this.id);
-        this.initEvents();
-
-        /**
-        * The Config object used to hold the configuration variables for the Calendar
-        * @property cfg
-        * @type YAHOO.util.Config
-        */
-        this.cfg = new YAHOO.util.Config(this);
-
-        /**
-        * The local object which contains the Calendar's options
-        * @property Options
-        * @type Object
-        */
-        this.Options = {};
-
-        /**
-        * The local object which contains the Calendar's locale settings
-        * @property Locale
-        * @type Object
-        */
-        this.Locale = {};
-
-        this.initStyles();
-
-        Dom.addClass(this.oDomContainer, this.Style.CSS_CONTAINER);
-        Dom.addClass(this.oDomContainer, this.Style.CSS_SINGLE);
-
-        this.cellDates = [];
-        this.cells = [];
-        this.renderStack = [];
-        this._renderStack = [];
-
-        this.setupConfig();
-
-        if (config) {
-            this.cfg.applyConfig(config, true);
-        }
-
-        this.cfg.fireQueue();
-
-        this.today = this.cfg.getProperty("today");
-    },
-
-    /**
-    * Default Config listener for the iframe property. If the iframe config property is set to true, 
-    * renders the built-in IFRAME shim if the container is relatively or absolutely positioned.
-    * 
-    * @method configIframe
-    */
-    configIframe : function(type, args, obj) {
-        var useIframe = args[0];
-    
-        if (!this.parent) {
-            if (Dom.inDocument(this.oDomContainer)) {
-                if (useIframe) {
-                    var pos = Dom.getStyle(this.oDomContainer, "position");
-                    
-                    if (pos == "absolute" || pos == "relative") {
-                        
-                        if (!Dom.inDocument(this.iframe)) {
-                            this.iframe = document.createElement("iframe");
-                            this.iframe.src = "javascript:false;";
-    
-                            Dom.setStyle(this.iframe, "opacity", "0");
-    
-                            if (YAHOO.env.ua.ie && YAHOO.env.ua.ie <= 6) {
-                                Dom.addClass(this.iframe, this.Style.CSS_FIXED_SIZE);
-                            }
-    
-                            this.oDomContainer.insertBefore(this.iframe, this.oDomContainer.firstChild);
-                        }
-                    }
-                } else {
-                    if (this.iframe) {
-                        if (this.iframe.parentNode) {
-                            this.iframe.parentNode.removeChild(this.iframe);
-                        }
-                        this.iframe = null;
-                    }
-                }
-            }
-        }
-    },
-
-    /**
-    * Default handler for the "title" property
-    * @method configTitle
-    */
-    configTitle : function(type, args, obj) {
-        var title = args[0];
-
-        // "" disables title bar
-        if (title) {
-            this.createTitleBar(title);
-        } else {
-            var close = this.cfg.getProperty(DEF_CFG.CLOSE.key);
-            if (!close) {
-                this.removeTitleBar();
-            } else {
-                this.createTitleBar("&#160;");
-            }
-        }
-    },
-    
-    /**
-    * Default handler for the "close" property
-    * @method configClose
-    */
-    configClose : function(type, args, obj) {
-        var close = args[0],
-            title = this.cfg.getProperty(DEF_CFG.TITLE.key);
-    
-        if (close) {
-            if (!title) {
-                this.createTitleBar("&#160;");
-            }
-            this.createCloseButton();
-        } else {
-            this.removeCloseButton();
-            if (!title) {
-                this.removeTitleBar();
-            }
-        }
-    },
-
-    /**
-    * Initializes Calendar's built-in CustomEvents
-    * @method initEvents
-    */
-    initEvents : function() {
-
-        var defEvents = Calendar._EVENT_TYPES,
-            CE = YAHOO.util.CustomEvent,
-            cal = this; // To help with minification
-
-        /**
-        * Fired before a date selection is made
-        * @event beforeSelectEvent
-        */
-        cal.beforeSelectEvent = new CE(defEvents.BEFORE_SELECT); 
-
-        /**
-        * Fired when a date selection is made
-        * @event selectEvent
-        * @param {Array} Array of Date field arrays in the format [YYYY, MM, DD].
-        */
-        cal.selectEvent = new CE(defEvents.SELECT);
-
-        /**
-        * Fired before a date or set of dates is deselected
-        * @event beforeDeselectEvent
-        */
-        cal.beforeDeselectEvent = new CE(defEvents.BEFORE_DESELECT);
-
-        /**
-        * Fired when a date or set of dates is deselected
-        * @event deselectEvent
-        * @param {Array} Array of Date field arrays in the format [YYYY, MM, DD].
-        */
-        cal.deselectEvent = new CE(defEvents.DESELECT);
-    
-        /**
-        * Fired when the Calendar page is changed
-        * @event changePageEvent
-        * @param {Date} prevDate The date before the page was changed
-        * @param {Date} newDate The date after the page was changed
-        */
-        cal.changePageEvent = new CE(defEvents.CHANGE_PAGE);
-    
-        /**
-        * Fired before the Calendar is rendered
-        * @event beforeRenderEvent
-        */
-        cal.beforeRenderEvent = new CE(defEvents.BEFORE_RENDER);
-    
-        /**
-        * Fired when the Calendar is rendered
-        * @event renderEvent
-        */
-        cal.renderEvent = new CE(defEvents.RENDER);
-
-        /**
-        * Fired just before the Calendar is to be destroyed
-        * @event beforeDestroyEvent
-        */
-        cal.beforeDestroyEvent = new CE(defEvents.BEFORE_DESTROY);
-
-        /**
-        * Fired after the Calendar is destroyed. This event should be used
-        * for notification only. When this event is fired, important Calendar instance
-        * properties, dom references and event listeners have already been 
-        * removed/dereferenced, and hence the Calendar instance is not in a usable 
-        * state.
-        *
-        * @event destroyEvent
-        */
-        cal.destroyEvent = new CE(defEvents.DESTROY);
-
-        /**
-        * Fired when the Calendar is reset
-        * @event resetEvent
-        */
-        cal.resetEvent = new CE(defEvents.RESET);
-
-        /**
-        * Fired when the Calendar is cleared
-        * @event clearEvent
-        */
-        cal.clearEvent = new CE(defEvents.CLEAR);
-
-        /**
-        * Fired just before the Calendar is to be shown
-        * @event beforeShowEvent
-        */
-        cal.beforeShowEvent = new CE(defEvents.BEFORE_SHOW);
-
-        /**
-        * Fired after the Calendar is shown
-        * @event showEvent
-        */
-        cal.showEvent = new CE(defEvents.SHOW);
-
-        /**
-        * Fired just before the Calendar is to be hidden
-        * @event beforeHideEvent
-        */
-        cal.beforeHideEvent = new CE(defEvents.BEFORE_HIDE);
-
-        /**
-        * Fired after the Calendar is hidden
-        * @event hideEvent
-        */
-        cal.hideEvent = new CE(defEvents.HIDE);
-
-        /**
-        * Fired just before the CalendarNavigator is to be shown
-        * @event beforeShowNavEvent
-        */
-        cal.beforeShowNavEvent = new CE(defEvents.BEFORE_SHOW_NAV);
-    
-        /**
-        * Fired after the CalendarNavigator is shown
-        * @event showNavEvent
-        */
-        cal.showNavEvent = new CE(defEvents.SHOW_NAV);
-    
-        /**
-        * Fired just before the CalendarNavigator is to be hidden
-        * @event beforeHideNavEvent
-        */
-        cal.beforeHideNavEvent = new CE(defEvents.BEFORE_HIDE_NAV);
-    
-        /**
-        * Fired after the CalendarNavigator is hidden
-        * @event hideNavEvent
-        */
-        cal.hideNavEvent = new CE(defEvents.HIDE_NAV);
-
-        /**
-        * Fired just before the CalendarNavigator is to be rendered
-        * @event beforeRenderNavEvent
-        */
-        cal.beforeRenderNavEvent = new CE(defEvents.BEFORE_RENDER_NAV);
-
-        /**
-        * Fired after the CalendarNavigator is rendered
-        * @event renderNavEvent
-        */
-        cal.renderNavEvent = new CE(defEvents.RENDER_NAV);
-
-        cal.beforeSelectEvent.subscribe(cal.onBeforeSelect, this, true);
-        cal.selectEvent.subscribe(cal.onSelect, this, true);
-        cal.beforeDeselectEvent.subscribe(cal.onBeforeDeselect, this, true);
-        cal.deselectEvent.subscribe(cal.onDeselect, this, true);
-        cal.changePageEvent.subscribe(cal.onChangePage, this, true);
-        cal.renderEvent.subscribe(cal.onRender, this, true);
-        cal.resetEvent.subscribe(cal.onReset, this, true);
-        cal.clearEvent.subscribe(cal.onClear, this, true);
-    },
-
-    /**
-    * The default event handler for clicks on the "Previous Month" navigation UI
-    *
-    * @method doPreviousMonthNav
-    * @param {DOMEvent} e The DOM event
-    * @param {Calendar} cal A reference to the calendar
-    */
-    doPreviousMonthNav : function(e, cal) {
-        Event.preventDefault(e);
-        // previousMonth invoked in a timeout, to allow
-        // event to bubble up, with correct target. Calling
-        // previousMonth, will call render which will remove 
-        // HTML which generated the event, resulting in an 
-        // invalid event target in certain browsers.
-        setTimeout(function() {
-            cal.previousMonth();
-            var navs = Dom.getElementsByClassName(cal.Style.CSS_NAV_LEFT, "a", cal.oDomContainer);
-            if (navs && navs[0]) {
-                try {
-                    navs[0].focus();
-                } catch (ex) {
-                    // ignore
-                }
-            }
-        }, 0);
-    },
-
-    /**
-     * The default event handler for clicks on the "Next Month" navigation UI
-     *
-     * @method doNextMonthNav
-     * @param {DOMEvent} e The DOM event
-     * @param {Calendar} cal A reference to the calendar
-     */
-    doNextMonthNav : function(e, cal) {
-        Event.preventDefault(e);
-        setTimeout(function() {
-            cal.nextMonth();
-            var navs = Dom.getElementsByClassName(cal.Style.CSS_NAV_RIGHT, "a", cal.oDomContainer);
-            if (navs && navs[0]) {
-                try {
-                    navs[0].focus();
-                } catch (ex) {
-                    // ignore
-                }
-            }
-        }, 0);
-    },
-
-    /**
-    * The default event handler for date cell selection. Currently attached to 
-    * the Calendar's bounding box, referenced by it's <a href="#property_oDomContainer">oDomContainer</a> property.
-    *
-    * @method doSelectCell
-    * @param {DOMEvent} e The DOM event
-    * @param {Calendar} cal A reference to the calendar
-    */
-    doSelectCell : function(e, cal) {
-        var cell, d, date, index;
-
-        var target = Event.getTarget(e),
-            tagName = target.tagName.toLowerCase(),
-            defSelector = false;
-
-        while (tagName != "td" && !Dom.hasClass(target, cal.Style.CSS_CELL_SELECTABLE)) {
-
-            if (!defSelector && tagName == "a" && Dom.hasClass(target, cal.Style.CSS_CELL_SELECTOR)) {
-                defSelector = true;
-            }
-
-            target = target.parentNode;
-            tagName = target.tagName.toLowerCase();
-
-            if (target == this.oDomContainer || tagName == "html") {
-                return;
-            }
-        }
-
-        if (defSelector) {
-            // Stop link href navigation for default renderer
-            Event.preventDefault(e);
-        }
-    
-        cell = target;
-
-        if (Dom.hasClass(cell, cal.Style.CSS_CELL_SELECTABLE)) {
-            index = cal.getIndexFromId(cell.id);
-            if (index > -1) {
-                d = cal.cellDates[index];
-                if (d) {
-                    date = DateMath.getDate(d[0],d[1]-1,d[2]);
-                
-                    var link;
-
-                    cal.logger.log("Selecting cell " + index + " via click", "info");
-                    if (cal.Options.MULTI_SELECT) {
-                        link = cell.getElementsByTagName("a")[0];
-                        if (link) {
-                            link.blur();
-                        }
-
-                        var cellDate = cal.cellDates[index];
-                        var cellDateIndex = cal._indexOfSelectedFieldArray(cellDate);
-
-                        if (cellDateIndex > -1) { 
-                            cal.deselectCell(index);
-                        } else {
-                            cal.selectCell(index);
-                        } 
-
-                    } else {
-                        link = cell.getElementsByTagName("a")[0];
-                        if (link) {
-                            link.blur();
-                        }
-                        cal.selectCell(index);
-                    }
-                }
-            }
-        }
-    },
-
-    /**
-    * The event that is executed when the user hovers over a cell
-    * @method doCellMouseOver
-    * @param {DOMEvent} e The event
-    * @param {Calendar} cal A reference to the calendar passed by the Event utility
-    */
-    doCellMouseOver : function(e, cal) {
-        var target;
-        if (e) {
-            target = Event.getTarget(e);
-        } else {
-            target = this;
-        }
-
-        while (target.tagName && target.tagName.toLowerCase() != "td") {
-            target = target.parentNode;
-            if (!target.tagName || target.tagName.toLowerCase() == "html") {
-                return;
-            }
-        }
-
-        if (Dom.hasClass(target, cal.Style.CSS_CELL_SELECTABLE)) {
-            Dom.addClass(target, cal.Style.CSS_CELL_HOVER);
-        }
-    },
-
-    /**
-    * The event that is executed when the user moves the mouse out of a cell
-    * @method doCellMouseOut
-    * @param {DOMEvent} e The event
-    * @param {Calendar} cal A reference to the calendar passed by the Event utility
-    */
-    doCellMouseOut : function(e, cal) {
-        var target;
-        if (e) {
-            target = Event.getTarget(e);
-        } else {
-            target = this;
-        }
-
-        while (target.tagName && target.tagName.toLowerCase() != "td") {
-            target = target.parentNode;
-            if (!target.tagName || target.tagName.toLowerCase() == "html") {
-                return;
-            }
-        }
-
-        if (Dom.hasClass(target, cal.Style.CSS_CELL_SELECTABLE)) {
-            Dom.removeClass(target, cal.Style.CSS_CELL_HOVER);
-        }
-    },
-
-    setupConfig : function() {
-
-        var cfg = this.cfg;
-
-        /**
-        * The date to use to represent "Today".
-        *
-        * @config today
-        * @type Date
-        * @default The client side date (new Date()) when the Calendar is instantiated.
-        */
-        cfg.addProperty(DEF_CFG.TODAY.key, { value: new Date(DEF_CFG.TODAY.value.getTime()), supercedes:DEF_CFG.TODAY.supercedes, handler:this.configToday, suppressEvent:true } );
-
-        /**
-        * The month/year representing the current visible Calendar date (mm/yyyy)
-        * @config pagedate
-        * @type String | Date
-        * @default Today's date
-        */
-        cfg.addProperty(DEF_CFG.PAGEDATE.key, { value: DEF_CFG.PAGEDATE.value || new Date(DEF_CFG.TODAY.value.getTime()), handler:this.configPageDate } );
-
-        /**
-        * The date or range of dates representing the current Calendar selection
-        * @config selected
-        * @type String
-        * @default []
-        */
-        cfg.addProperty(DEF_CFG.SELECTED.key, { value:DEF_CFG.SELECTED.value.concat(), handler:this.configSelected } );
-
-        /**
-        * The title to display above the Calendar's month header
-        * @config title
-        * @type String
-        * @default ""
-        */
-        cfg.addProperty(DEF_CFG.TITLE.key, { value:DEF_CFG.TITLE.value, handler:this.configTitle } );
-
-        /**
-        * Whether or not a close button should be displayed for this Calendar
-        * @config close
-        * @type Boolean
-        * @default false
-        */
-        cfg.addProperty(DEF_CFG.CLOSE.key, { value:DEF_CFG.CLOSE.value, handler:this.configClose } );
-
-        /**
-        * Whether or not an iframe shim should be placed under the Calendar to prevent select boxes from bleeding through in Internet Explorer 6 and below.
-        * This property is enabled by default for IE6 and below. It is disabled by default for other browsers for performance reasons, but can be 
-        * enabled if required.
-        * 
-        * @config iframe
-        * @type Boolean
-        * @default true for IE6 and below, false for all other browsers
-        */
-        cfg.addProperty(DEF_CFG.IFRAME.key, { value:DEF_CFG.IFRAME.value, handler:this.configIframe, validator:cfg.checkBoolean } );
-
-        /**
-        * The minimum selectable date in the current Calendar (mm/dd/yyyy)
-        * @config mindate
-        * @type String | Date
-        * @default null
-        */
-        cfg.addProperty(DEF_CFG.MINDATE.key, { value:DEF_CFG.MINDATE.value, handler:this.configMinDate } );
-
-        /**
-        * The maximum selectable date in the current Calendar (mm/dd/yyyy)
-        * @config maxdate
-        * @type String | Date
-        * @default null
-        */
-        cfg.addProperty(DEF_CFG.MAXDATE.key, { value:DEF_CFG.MAXDATE.value, handler:this.configMaxDate } );
-
-        // Options properties
-    
-        /**
-        * True if the Calendar should allow multiple selections. False by default.
-        * @config MULTI_SELECT
-        * @type Boolean
-        * @default false
-        */
-        cfg.addProperty(DEF_CFG.MULTI_SELECT.key, { value:DEF_CFG.MULTI_SELECT.value, handler:this.configOptions, validator:cfg.checkBoolean } );
-
-        /**
-        * The weekday the week begins on. Default is 0 (Sunday = 0, Monday = 1 ... Saturday = 6).
-        * @config START_WEEKDAY
-        * @type number
-        * @default 0
-        */
-        cfg.addProperty(DEF_CFG.START_WEEKDAY.key, { value:DEF_CFG.START_WEEKDAY.value, handler:this.configOptions, validator:cfg.checkNumber  } );
-    
-        /**
-        * True if the Calendar should show weekday labels. True by default.
-        * @config SHOW_WEEKDAYS
-        * @type Boolean
-        * @default true
-        */
-        cfg.addProperty(DEF_CFG.SHOW_WEEKDAYS.key, { value:DEF_CFG.SHOW_WEEKDAYS.value, handler:this.configOptions, validator:cfg.checkBoolean  } );
-    
-        /**
-        * True if the Calendar should show week row headers. False by default.
-        * @config SHOW_WEEK_HEADER
-        * @type Boolean
-        * @default false
-        */
-        cfg.addProperty(DEF_CFG.SHOW_WEEK_HEADER.key, { value:DEF_CFG.SHOW_WEEK_HEADER.value, handler:this.configOptions, validator:cfg.checkBoolean } );
-    
-        /**
-        * True if the Calendar should show week row footers. False by default.
-        * @config SHOW_WEEK_FOOTER
-        * @type Boolean
-        * @default false
-        */ 
-        cfg.addProperty(DEF_CFG.SHOW_WEEK_FOOTER.key,{ value:DEF_CFG.SHOW_WEEK_FOOTER.value, handler:this.configOptions, validator:cfg.checkBoolean } );
-    
-        /**
-        * True if the Calendar should suppress weeks that are not a part of the current month. False by default.
-        * @config HIDE_BLANK_WEEKS
-        * @type Boolean
-        * @default false
-        */ 
-        cfg.addProperty(DEF_CFG.HIDE_BLANK_WEEKS.key, { value:DEF_CFG.HIDE_BLANK_WEEKS.value, handler:this.configOptions, validator:cfg.checkBoolean } );
-        
-        /**
-        * The image that should be used for the left navigation arrow.
-        * @config NAV_ARROW_LEFT
-        * @type String
-        * @deprecated You can customize the image by overriding the default CSS class for the left arrow - "calnavleft"  
-        * @default null
-        */ 
-        cfg.addProperty(DEF_CFG.NAV_ARROW_LEFT.key, { value:DEF_CFG.NAV_ARROW_LEFT.value, handler:this.configOptions } );
-    
-        /**
-        * The image that should be used for the right navigation arrow.
-        * @config NAV_ARROW_RIGHT
-        * @type String
-        * @deprecated You can customize the image by overriding the default CSS class for the right arrow - "calnavright"
-        * @default null
-        */ 
-        cfg.addProperty(DEF_CFG.NAV_ARROW_RIGHT.key, { value:DEF_CFG.NAV_ARROW_RIGHT.value, handler:this.configOptions } );
-    
-        // Locale properties
-    
-        /**
-        * The short month labels for the current locale.
-        * @config MONTHS_SHORT
-        * @type String[]
-        * @default ["Jan", "Feb", "Mar", "Apr", "May", "Jun", "Jul", "Aug", "Sep", "Oct", "Nov", "Dec"]
-        */
-        cfg.addProperty(DEF_CFG.MONTHS_SHORT.key, { value:DEF_CFG.MONTHS_SHORT.value, handler:this.configLocale } );
-        
-        /**
-        * The long month labels for the current locale.
-        * @config MONTHS_LONG
-        * @type String[]
-        * @default ["January", "February", "March", "April", "May", "June", "July", "August", "September", "October", "November", "December"
-        */ 
-        cfg.addProperty(DEF_CFG.MONTHS_LONG.key,  { value:DEF_CFG.MONTHS_LONG.value, handler:this.configLocale } );
-
-        /**
-        * The 1-character weekday labels for the current locale.
-        * @config WEEKDAYS_1CHAR
-        * @type String[]
-        * @default ["S", "M", "T", "W", "T", "F", "S"]
-        */ 
-        cfg.addProperty(DEF_CFG.WEEKDAYS_1CHAR.key, { value:DEF_CFG.WEEKDAYS_1CHAR.value, handler:this.configLocale } );
-        
-        /**
-        * The short weekday labels for the current locale.
-        * @config WEEKDAYS_SHORT
-        * @type String[]
-        * @default ["Su", "Mo", "Tu", "We", "Th", "Fr", "Sa"]
-        */ 
-        cfg.addProperty(DEF_CFG.WEEKDAYS_SHORT.key, { value:DEF_CFG.WEEKDAYS_SHORT.value, handler:this.configLocale } );
-        
-        /**
-        * The medium weekday labels for the current locale.
-        * @config WEEKDAYS_MEDIUM
-        * @type String[]
-        * @default ["Sun", "Mon", "Tue", "Wed", "Thu", "Fri", "Sat"]
-        */ 
-        cfg.addProperty(DEF_CFG.WEEKDAYS_MEDIUM.key, { value:DEF_CFG.WEEKDAYS_MEDIUM.value, handler:this.configLocale } );
-        
-        /**
-        * The long weekday labels for the current locale.
-        * @config WEEKDAYS_LONG
-        * @type String[]
-        * @default ["Sunday", "Monday", "Tuesday", "Wednesday", "Thursday", "Friday", "Saturday"]
-        */ 
-        cfg.addProperty(DEF_CFG.WEEKDAYS_LONG.key, { value:DEF_CFG.WEEKDAYS_LONG.value, handler:this.configLocale } );
-
-        /**
-        * Refreshes the locale values used to build the Calendar.
-        * @method refreshLocale
-        * @private
-        */
-        var refreshLocale = function() {
-            cfg.refireEvent(DEF_CFG.LOCALE_MONTHS.key);
-            cfg.refireEvent(DEF_CFG.LOCALE_WEEKDAYS.key);
-        };
-    
-        cfg.subscribeToConfigEvent(DEF_CFG.START_WEEKDAY.key, refreshLocale, this, true);
-        cfg.subscribeToConfigEvent(DEF_CFG.MONTHS_SHORT.key, refreshLocale, this, true);
-        cfg.subscribeToConfigEvent(DEF_CFG.MONTHS_LONG.key, refreshLocale, this, true);
-        cfg.subscribeToConfigEvent(DEF_CFG.WEEKDAYS_1CHAR.key, refreshLocale, this, true);
-        cfg.subscribeToConfigEvent(DEF_CFG.WEEKDAYS_SHORT.key, refreshLocale, this, true);
-        cfg.subscribeToConfigEvent(DEF_CFG.WEEKDAYS_MEDIUM.key, refreshLocale, this, true);
-        cfg.subscribeToConfigEvent(DEF_CFG.WEEKDAYS_LONG.key, refreshLocale, this, true);
-       
-        /**
-        * The setting that determines which length of month labels should be used. Possible values are "short" and "long".
-        * @config LOCALE_MONTHS
-        * @type String
-        * @default "long"
-        */ 
-        cfg.addProperty(DEF_CFG.LOCALE_MONTHS.key, { value:DEF_CFG.LOCALE_MONTHS.value, handler:this.configLocaleValues } );
-        
-        /**
-        * The setting that determines which length of weekday labels should be used. Possible values are "1char", "short", "medium", and "long".
-        * @config LOCALE_WEEKDAYS
-        * @type String
-        * @default "short"
-        */ 
-        cfg.addProperty(DEF_CFG.LOCALE_WEEKDAYS.key, { value:DEF_CFG.LOCALE_WEEKDAYS.value, handler:this.configLocaleValues } );
-
-        /**
-        * The positive or negative year offset from the Gregorian calendar year (assuming a January 1st rollover) to 
-        * be used when displaying and parsing dates. NOTE: All JS Date objects returned by methods, or expected as input by
-        * methods will always represent the Gregorian year, in order to maintain date/month/week values. 
-        *
-        * @config YEAR_OFFSET
-        * @type Number
-        * @default 0
-        */
-        cfg.addProperty(DEF_CFG.YEAR_OFFSET.key, { value:DEF_CFG.YEAR_OFFSET.value, supercedes:DEF_CFG.YEAR_OFFSET.supercedes, handler:this.configLocale  } );
-    
-        /**
-        * The value used to delimit individual dates in a date string passed to various Calendar functions.
-        * @config DATE_DELIMITER
-        * @type String
-        * @default ","
-        */ 
-        cfg.addProperty(DEF_CFG.DATE_DELIMITER.key,  { value:DEF_CFG.DATE_DELIMITER.value, handler:this.configLocale } );
-    
-        /**
-        * The value used to delimit date fields in a date string passed to various Calendar functions.
-        * @config DATE_FIELD_DELIMITER
-        * @type String
-        * @default "/"
-        */ 
-        cfg.addProperty(DEF_CFG.DATE_FIELD_DELIMITER.key, { value:DEF_CFG.DATE_FIELD_DELIMITER.value, handler:this.configLocale } );
-    
-        /**
-        * The value used to delimit date ranges in a date string passed to various Calendar functions.
-        * @config DATE_RANGE_DELIMITER
-        * @type String
-        * @default "-"
-        */
-        cfg.addProperty(DEF_CFG.DATE_RANGE_DELIMITER.key, { value:DEF_CFG.DATE_RANGE_DELIMITER.value, handler:this.configLocale } );
-    
-        /**
-        * The position of the month in a month/year date string
-        * @config MY_MONTH_POSITION
-        * @type Number
-        * @default 1
-        */
-        cfg.addProperty(DEF_CFG.MY_MONTH_POSITION.key, { value:DEF_CFG.MY_MONTH_POSITION.value, handler:this.configLocale, validator:cfg.checkNumber } );
-    
-        /**
-        * The position of the year in a month/year date string
-        * @config MY_YEAR_POSITION
-        * @type Number
-        * @default 2
-        */
-        cfg.addProperty(DEF_CFG.MY_YEAR_POSITION.key, { value:DEF_CFG.MY_YEAR_POSITION.value, handler:this.configLocale, validator:cfg.checkNumber } );
-    
-        /**
-        * The position of the month in a month/day date string
-        * @config MD_MONTH_POSITION
-        * @type Number
-        * @default 1
-        */
-        cfg.addProperty(DEF_CFG.MD_MONTH_POSITION.key, { value:DEF_CFG.MD_MONTH_POSITION.value, handler:this.configLocale, validator:cfg.checkNumber } );
-    
-        /**
-        * The position of the day in a month/year date string
-        * @config MD_DAY_POSITION
-        * @type Number
-        * @default 2
-        */
-        cfg.addProperty(DEF_CFG.MD_DAY_POSITION.key,  { value:DEF_CFG.MD_DAY_POSITION.value, handler:this.configLocale, validator:cfg.checkNumber } );
-    
-        /**
-        * The position of the month in a month/day/year date string
-        * @config MDY_MONTH_POSITION
-        * @type Number
-        * @default 1
-        */
-        cfg.addProperty(DEF_CFG.MDY_MONTH_POSITION.key, { value:DEF_CFG.MDY_MONTH_POSITION.value, handler:this.configLocale, validator:cfg.checkNumber } );
-    
-        /**
-        * The position of the day in a month/day/year date string
-        * @config MDY_DAY_POSITION
-        * @type Number
-        * @default 2
-        */
-        cfg.addProperty(DEF_CFG.MDY_DAY_POSITION.key, { value:DEF_CFG.MDY_DAY_POSITION.value, handler:this.configLocale, validator:cfg.checkNumber } );
-    
-        /**
-        * The position of the year in a month/day/year date string
-        * @config MDY_YEAR_POSITION
-        * @type Number
-        * @default 3
-        */
-        cfg.addProperty(DEF_CFG.MDY_YEAR_POSITION.key, { value:DEF_CFG.MDY_YEAR_POSITION.value, handler:this.configLocale, validator:cfg.checkNumber } );
-        
-        /**
-        * The position of the month in the month year label string used as the Calendar header
-        * @config MY_LABEL_MONTH_POSITION
-        * @type Number
-        * @default 1
-        */
-        cfg.addProperty(DEF_CFG.MY_LABEL_MONTH_POSITION.key, { value:DEF_CFG.MY_LABEL_MONTH_POSITION.value, handler:this.configLocale, validator:cfg.checkNumber } );
-    
-        /**
-        * The position of the year in the month year label string used as the Calendar header
-        * @config MY_LABEL_YEAR_POSITION
-        * @type Number
-        * @default 2
-        */
-        cfg.addProperty(DEF_CFG.MY_LABEL_YEAR_POSITION.key, { value:DEF_CFG.MY_LABEL_YEAR_POSITION.value, handler:this.configLocale, validator:cfg.checkNumber } );
-        
-        /**
-        * The suffix used after the month when rendering the Calendar header
-        * @config MY_LABEL_MONTH_SUFFIX
-        * @type String
-        * @default " "
-        */
-        cfg.addProperty(DEF_CFG.MY_LABEL_MONTH_SUFFIX.key, { value:DEF_CFG.MY_LABEL_MONTH_SUFFIX.value, handler:this.configLocale } );
-        
-        /**
-        * The suffix used after the year when rendering the Calendar header
-        * @config MY_LABEL_YEAR_SUFFIX
-        * @type String
-        * @default ""
-        */
-        cfg.addProperty(DEF_CFG.MY_LABEL_YEAR_SUFFIX.key, { value:DEF_CFG.MY_LABEL_YEAR_SUFFIX.value, handler:this.configLocale } );
-
-        /**
-        * Configuration for the Month/Year CalendarNavigator UI which allows the user to jump directly to a 
-        * specific Month/Year without having to scroll sequentially through months.
-        * <p>
-        * Setting this property to null (default value) or false, will disable the CalendarNavigator UI.
-        * </p>
-        * <p>
-        * Setting this property to true will enable the CalendarNavigatior UI with the default CalendarNavigator configuration values.
-        * </p>
-        * <p>
-        * This property can also be set to an object literal containing configuration properties for the CalendarNavigator UI.
-        * The configuration object expects the following case-sensitive properties, with the "strings" property being a nested object.
-        * Any properties which are not provided will use the default values (defined in the CalendarNavigator class).
-        * </p>
-        * <dl>
-        * <dt>strings</dt>
-        * <dd><em>Object</em> :  An object with the properties shown below, defining the string labels to use in the Navigator's UI
-        *     <dl>
-        *         <dt>month</dt><dd><em>String</em> : The string to use for the month label. Defaults to "Month".</dd>
-        *         <dt>year</dt><dd><em>String</em> : The string to use for the year label. Defaults to "Year".</dd>
-        *         <dt>submit</dt><dd><em>String</em> : The string to use for the submit button label. Defaults to "Okay".</dd>
-        *         <dt>cancel</dt><dd><em>String</em> : The string to use for the cancel button label. Defaults to "Cancel".</dd>
-        *         <dt>invalidYear</dt><dd><em>String</em> : The string to use for invalid year values. Defaults to "Year needs to be a number".</dd>
-        *     </dl>
-        * </dd>
-        * <dt>monthFormat</dt><dd><em>String</em> : The month format to use. Either YAHOO.widget.Calendar.LONG, or YAHOO.widget.Calendar.SHORT. Defaults to YAHOO.widget.Calendar.LONG</dd>
-        * <dt>initialFocus</dt><dd><em>String</em> : Either "year" or "month" specifying which input control should get initial focus. Defaults to "year"</dd>
-        * </dl>
-        * <p>E.g.</p>
-        * <pre>
-        * var navConfig = {
-        *   strings: {
-        *    month:"Calendar Month",
-        *    year:"Calendar Year",
-        *    submit: "Submit",
-        *    cancel: "Cancel",
-        *    invalidYear: "Please enter a valid year"
-        *   },
-        *   monthFormat: YAHOO.widget.Calendar.SHORT,
-        *   initialFocus: "month"
-        * }
-        * </pre>
-        * @config navigator
-        * @type {Object|Boolean}
-        * @default null
-        */
-        cfg.addProperty(DEF_CFG.NAV.key, { value:DEF_CFG.NAV.value, handler:this.configNavigator } );
-
-        /**
-         * The map of UI strings which the Calendar UI uses.
-         *
-         * @config strings
-         * @type {Object}
-         * @default An object with the properties shown below:
-         *     <dl>
-         *         <dt>previousMonth</dt><dd><em>String</em> : The string to use for the "Previous Month" navigation UI. Defaults to "Previous Month".</dd>
-         *         <dt>nextMonth</dt><dd><em>String</em> : The string to use for the "Next Month" navigation UI. Defaults to "Next Month".</dd>
-         *         <dt>close</dt><dd><em>String</em> : The string to use for the close button label. Defaults to "Close".</dd>
-         *     </dl>
-         */
-        cfg.addProperty(DEF_CFG.STRINGS.key, { 
-            value:DEF_CFG.STRINGS.value,
-            handler:this.configStrings,
-            validator: function(val) {
-                return Lang.isObject(val);
-            },
-            supercedes:DEF_CFG.STRINGS.supercedes
-        });
-    },
-
-    /**
-    * The default handler for the "strings" property
-    * @method configStrings
-    */
-    configStrings : function(type, args, obj) {
-        var val = Lang.merge(DEF_CFG.STRINGS.value, args[0]);
-        this.cfg.setProperty(DEF_CFG.STRINGS.key, val, true);
-    },
-
-    /**
-    * The default handler for the "pagedate" property
-    * @method configPageDate
-    */
-    configPageDate : function(type, args, obj) {
-        this.cfg.setProperty(DEF_CFG.PAGEDATE.key, this._parsePageDate(args[0]), true);
-    },
-
-    /**
-    * The default handler for the "mindate" property
-    * @method configMinDate
-    */
-    configMinDate : function(type, args, obj) {
-        var val = args[0];
-        if (Lang.isString(val)) {
-            val = this._parseDate(val);
-            this.cfg.setProperty(DEF_CFG.MINDATE.key, DateMath.getDate(val[0],(val[1]-1),val[2]));
-        }
-    },
-
-    /**
-    * The default handler for the "maxdate" property
-    * @method configMaxDate
-    */
-    configMaxDate : function(type, args, obj) {
-        var val = args[0];
-        if (Lang.isString(val)) {
-            val = this._parseDate(val);
-            this.cfg.setProperty(DEF_CFG.MAXDATE.key, DateMath.getDate(val[0],(val[1]-1),val[2]));
-        }
-    },
-
-    /**
-    * The default handler for the "today" property
-    * @method configToday
-    */
-    configToday : function(type, args, obj) {
-        // Only do this for initial set. Changing the today property after the initial
-        // set, doesn't affect pagedate
-        var val = args[0];
-        if (Lang.isString(val)) {
-            val = this._parseDate(val);
-        }
-        var today = DateMath.clearTime(val);
-        if (!this.cfg.initialConfig[DEF_CFG.PAGEDATE.key]) {
-            this.cfg.setProperty(DEF_CFG.PAGEDATE.key, today);
-        }
-        this.today = today;
-        this.cfg.setProperty(DEF_CFG.TODAY.key, today, true);
-    },
-
-    /**
-    * The default handler for the "selected" property
-    * @method configSelected
-    */
-    configSelected : function(type, args, obj) {
-        var selected = args[0],
-            cfgSelected = DEF_CFG.SELECTED.key;
-        
-        if (selected) {
-            if (Lang.isString(selected)) {
-                this.cfg.setProperty(cfgSelected, this._parseDates(selected), true);
-            } 
-        }
-        if (! this._selectedDates) {
-            this._selectedDates = this.cfg.getProperty(cfgSelected);
-        }
-    },
-    
-    /**
-    * The default handler for all configuration options properties
-    * @method configOptions
-    */
-    configOptions : function(type, args, obj) {
-        this.Options[type.toUpperCase()] = args[0];
-    },
-
-    /**
-    * The default handler for all configuration locale properties
-    * @method configLocale
-    */
-    configLocale : function(type, args, obj) {
-        this.Locale[type.toUpperCase()] = args[0];
-
-        this.cfg.refireEvent(DEF_CFG.LOCALE_MONTHS.key);
-        this.cfg.refireEvent(DEF_CFG.LOCALE_WEEKDAYS.key);
-    },
-    
-    /**
-    * The default handler for all configuration locale field length properties
-    * @method configLocaleValues
-    */
-    configLocaleValues : function(type, args, obj) {
-
-        type = type.toLowerCase();
-
-        var val = args[0],
-            cfg = this.cfg,
-            Locale = this.Locale;
-
-        switch (type) {
-            case DEF_CFG.LOCALE_MONTHS.key:
-                switch (val) {
-                    case Calendar.SHORT:
-                        Locale.LOCALE_MONTHS = cfg.getProperty(DEF_CFG.MONTHS_SHORT.key).concat();
-                        break;
-                    case Calendar.LONG:
-                        Locale.LOCALE_MONTHS = cfg.getProperty(DEF_CFG.MONTHS_LONG.key).concat();
-                        break;
-                }
-                break;
-            case DEF_CFG.LOCALE_WEEKDAYS.key:
-                switch (val) {
-                    case Calendar.ONE_CHAR:
-                        Locale.LOCALE_WEEKDAYS = cfg.getProperty(DEF_CFG.WEEKDAYS_1CHAR.key).concat();
-                        break;
-                    case Calendar.SHORT:
-                        Locale.LOCALE_WEEKDAYS = cfg.getProperty(DEF_CFG.WEEKDAYS_SHORT.key).concat();
-                        break;
-                    case Calendar.MEDIUM:
-                        Locale.LOCALE_WEEKDAYS = cfg.getProperty(DEF_CFG.WEEKDAYS_MEDIUM.key).concat();
-                        break;
-                    case Calendar.LONG:
-                        Locale.LOCALE_WEEKDAYS = cfg.getProperty(DEF_CFG.WEEKDAYS_LONG.key).concat();
-                        break;
-                }
-                
-                var START_WEEKDAY = cfg.getProperty(DEF_CFG.START_WEEKDAY.key);
-    
-                if (START_WEEKDAY > 0) {
-                    for (var w=0; w < START_WEEKDAY; ++w) {
-                        Locale.LOCALE_WEEKDAYS.push(Locale.LOCALE_WEEKDAYS.shift());
-                    }
-                }
-                break;
-        }
-    },
-
-    /**
-     * The default handler for the "navigator" property
-     * @method configNavigator
-     */
-    configNavigator : function(type, args, obj) {
-        var val = args[0];
-        if (YAHOO.widget.CalendarNavigator && (val === true || Lang.isObject(val))) {
-            if (!this.oNavigator) {
-                this.oNavigator = new YAHOO.widget.CalendarNavigator(this);
-                // Cleanup DOM Refs/Events before innerHTML is removed.
-                this.beforeRenderEvent.subscribe(function () {
-                    if (!this.pages) {
-                        this.oNavigator.erase();
-                    }
-                }, this, true);
-            }
-        } else {
-            if (this.oNavigator) {
-                this.oNavigator.destroy();
-                this.oNavigator = null;
-            }
-        }
-    },
-
-    /**
-    * Defines the style constants for the Calendar
-    * @method initStyles
-    */
-    initStyles : function() {
-
-        var defStyle = Calendar.STYLES;
-
-        this.Style = {
-            /**
-            * @property Style.CSS_ROW_HEADER
-            */
-            CSS_ROW_HEADER: defStyle.CSS_ROW_HEADER,
-            /**
-            * @property Style.CSS_ROW_FOOTER
-            */
-            CSS_ROW_FOOTER: defStyle.CSS_ROW_FOOTER,
-            /**
-            * @property Style.CSS_CELL
-            */
-            CSS_CELL : defStyle.CSS_CELL,
-            /**
-            * @property Style.CSS_CELL_SELECTOR
-            */
-            CSS_CELL_SELECTOR : defStyle.CSS_CELL_SELECTOR,
-            /**
-            * @property Style.CSS_CELL_SELECTED
-            */
-            CSS_CELL_SELECTED : defStyle.CSS_CELL_SELECTED,
-            /**
-            * @property Style.CSS_CELL_SELECTABLE
-            */
-            CSS_CELL_SELECTABLE : defStyle.CSS_CELL_SELECTABLE,
-            /**
-            * @property Style.CSS_CELL_RESTRICTED
-            */
-            CSS_CELL_RESTRICTED : defStyle.CSS_CELL_RESTRICTED,
-            /**
-            * @property Style.CSS_CELL_TODAY
-            */
-            CSS_CELL_TODAY : defStyle.CSS_CELL_TODAY,
-            /**
-            * @property Style.CSS_CELL_OOM
-            */
-            CSS_CELL_OOM : defStyle.CSS_CELL_OOM,
-            /**
-            * @property Style.CSS_CELL_OOB
-            */
-            CSS_CELL_OOB : defStyle.CSS_CELL_OOB,
-            /**
-            * @property Style.CSS_HEADER
-            */
-            CSS_HEADER : defStyle.CSS_HEADER,
-            /**
-            * @property Style.CSS_HEADER_TEXT
-            */
-            CSS_HEADER_TEXT : defStyle.CSS_HEADER_TEXT,
-            /**
-            * @property Style.CSS_BODY
-            */
-            CSS_BODY : defStyle.CSS_BODY,
-            /**
-            * @property Style.CSS_WEEKDAY_CELL
-            */
-            CSS_WEEKDAY_CELL : defStyle.CSS_WEEKDAY_CELL,
-            /**
-            * @property Style.CSS_WEEKDAY_ROW
-            */
-            CSS_WEEKDAY_ROW : defStyle.CSS_WEEKDAY_ROW,
-            /**
-            * @property Style.CSS_FOOTER
-            */
-            CSS_FOOTER : defStyle.CSS_FOOTER,
-            /**
-            * @property Style.CSS_CALENDAR
-            */
-            CSS_CALENDAR : defStyle.CSS_CALENDAR,
-            /**
-            * @property Style.CSS_SINGLE
-            */
-            CSS_SINGLE : defStyle.CSS_SINGLE,
-            /**
-            * @property Style.CSS_CONTAINER
-            */
-            CSS_CONTAINER : defStyle.CSS_CONTAINER,
-            /**
-            * @property Style.CSS_NAV_LEFT
-            */
-            CSS_NAV_LEFT : defStyle.CSS_NAV_LEFT,
-            /**
-            * @property Style.CSS_NAV_RIGHT
-            */
-            CSS_NAV_RIGHT : defStyle.CSS_NAV_RIGHT,
-            /**
-            * @property Style.CSS_NAV
-            */
-            CSS_NAV : defStyle.CSS_NAV,
-            /**
-            * @property Style.CSS_CLOSE
-            */
-            CSS_CLOSE : defStyle.CSS_CLOSE,
-            /**
-            * @property Style.CSS_CELL_TOP
-            */
-            CSS_CELL_TOP : defStyle.CSS_CELL_TOP,
-            /**
-            * @property Style.CSS_CELL_LEFT
-            */
-            CSS_CELL_LEFT : defStyle.CSS_CELL_LEFT,
-            /**
-            * @property Style.CSS_CELL_RIGHT
-            */
-            CSS_CELL_RIGHT : defStyle.CSS_CELL_RIGHT,
-            /**
-            * @property Style.CSS_CELL_BOTTOM
-            */
-            CSS_CELL_BOTTOM : defStyle.CSS_CELL_BOTTOM,
-            /**
-            * @property Style.CSS_CELL_HOVER
-            */
-            CSS_CELL_HOVER : defStyle.CSS_CELL_HOVER,
-            /**
-            * @property Style.CSS_CELL_HIGHLIGHT1
-            */
-            CSS_CELL_HIGHLIGHT1 : defStyle.CSS_CELL_HIGHLIGHT1,
-            /**
-            * @property Style.CSS_CELL_HIGHLIGHT2
-            */
-            CSS_CELL_HIGHLIGHT2 : defStyle.CSS_CELL_HIGHLIGHT2,
-            /**
-            * @property Style.CSS_CELL_HIGHLIGHT3
-            */
-            CSS_CELL_HIGHLIGHT3 : defStyle.CSS_CELL_HIGHLIGHT3,
-            /**
-            * @property Style.CSS_CELL_HIGHLIGHT4
-            */
-            CSS_CELL_HIGHLIGHT4 : defStyle.CSS_CELL_HIGHLIGHT4,
-            /**
-             * @property Style.CSS_WITH_TITLE
-             */
-            CSS_WITH_TITLE : defStyle.CSS_WITH_TITLE,
-             /**
-             * @property Style.CSS_FIXED_SIZE
-             */
-            CSS_FIXED_SIZE : defStyle.CSS_FIXED_SIZE,
-             /**
-             * @property Style.CSS_LINK_CLOSE
-             */
-            CSS_LINK_CLOSE : defStyle.CSS_LINK_CLOSE
-        };
-    },
-
-    /**
-    * Builds the date label that will be displayed in the calendar header or
-    * footer, depending on configuration.
-    * @method buildMonthLabel
-    * @return {String} The formatted calendar month label
-    */
-    buildMonthLabel : function() {
-        return this._buildMonthLabel(this.cfg.getProperty(DEF_CFG.PAGEDATE.key));
-    },
-
-    /**
-     * Helper method, to format a Month Year string, given a JavaScript Date, based on the 
-     * Calendar localization settings
-     * 
-     * @method _buildMonthLabel
-     * @private
-     * @param {Date} date
-     * @return {String} Formated month, year string
-     */
-    _buildMonthLabel : function(date) {
-        var monthLabel  = this.Locale.LOCALE_MONTHS[date.getMonth()] + this.Locale.MY_LABEL_MONTH_SUFFIX,
-            yearLabel = (date.getFullYear() + this.Locale.YEAR_OFFSET) + this.Locale.MY_LABEL_YEAR_SUFFIX;
-
-        if (this.Locale.MY_LABEL_MONTH_POSITION == 2 || this.Locale.MY_LABEL_YEAR_POSITION == 1) {
-            return yearLabel + monthLabel;
-        } else {
-            return monthLabel + yearLabel;
-        }
-    },
-    
-    /**
-    * Builds the date digit that will be displayed in calendar cells
-    * @method buildDayLabel
-    * @param {Date} workingDate The current working date
-    * @return {String} The formatted day label
-    */
-    buildDayLabel : function(workingDate) {
-        return workingDate.getDate();
-    },
-    
-    /**
-     * Creates the title bar element and adds it to Calendar container DIV
-     * 
-     * @method createTitleBar
-     * @param {String} strTitle The title to display in the title bar
-     * @return The title bar element
-     */
-    createTitleBar : function(strTitle) {
-        var tDiv = Dom.getElementsByClassName(YAHOO.widget.CalendarGroup.CSS_2UPTITLE, "div", this.oDomContainer)[0] || document.createElement("div");
-        tDiv.className = YAHOO.widget.CalendarGroup.CSS_2UPTITLE;
-        tDiv.innerHTML = strTitle;
-        this.oDomContainer.insertBefore(tDiv, this.oDomContainer.firstChild);
-    
-        Dom.addClass(this.oDomContainer, this.Style.CSS_WITH_TITLE);
-    
-        return tDiv;
-    },
-    
-    /**
-     * Removes the title bar element from the DOM
-     * 
-     * @method removeTitleBar
-     */
-    removeTitleBar : function() {
-        var tDiv = Dom.getElementsByClassName(YAHOO.widget.CalendarGroup.CSS_2UPTITLE, "div", this.oDomContainer)[0] || null;
-        if (tDiv) {
-            Event.purgeElement(tDiv);
-            this.oDomContainer.removeChild(tDiv);
-        }
-        Dom.removeClass(this.oDomContainer, this.Style.CSS_WITH_TITLE);
-    },
-    
-    /**
-     * Creates the close button HTML element and adds it to Calendar container DIV
-     * 
-     * @method createCloseButton
-     * @return The close HTML element created
-     */
-    createCloseButton : function() {
-        var cssClose = YAHOO.widget.CalendarGroup.CSS_2UPCLOSE,
-            cssLinkClose = this.Style.CSS_LINK_CLOSE,
-            DEPR_CLOSE_PATH = "us/my/bn/x_d.gif",
-            
-            lnk = Dom.getElementsByClassName(cssLinkClose, "a", this.oDomContainer)[0],
-            strings = this.cfg.getProperty(DEF_CFG.STRINGS.key),
-            closeStr = (strings && strings.close) ? strings.close : "";
-
-        if (!lnk) {
-            lnk = document.createElement("a");
-            Event.addListener(lnk, "click", function(e, cal) {
-                cal.hide(); 
-                Event.preventDefault(e);
-            }, this);
-        }
-
-        lnk.href = "#";
-        lnk.className = cssLinkClose;
-
-        if (Calendar.IMG_ROOT !== null) {
-            var img = Dom.getElementsByClassName(cssClose, "img", lnk)[0] || document.createElement("img");
-            img.src = Calendar.IMG_ROOT + DEPR_CLOSE_PATH;
-            img.className = cssClose;
-            lnk.appendChild(img);
-        } else {
-            lnk.innerHTML = '<span class="' + cssClose + ' ' + this.Style.CSS_CLOSE + '">' + closeStr + '</span>';
-        }
-        this.oDomContainer.appendChild(lnk);
-
-        return lnk;
-    },
-    
-    /**
-     * Removes the close button HTML element from the DOM
-     * 
-     * @method removeCloseButton
-     */
-    removeCloseButton : function() {
-        var btn = Dom.getElementsByClassName(this.Style.CSS_LINK_CLOSE, "a", this.oDomContainer)[0] || null;
-        if (btn) {
-            Event.purgeElement(btn);
-            this.oDomContainer.removeChild(btn);
-        }
-    },
-
-    /**
-    * Renders the calendar header.
-    * @method renderHeader
-    * @param {Array} html The current working HTML array
-    * @return {Array} The current working HTML array
-    */
-    renderHeader : function(html) {
-
-        this.logger.log("Rendering header", "render");
-
-        var colSpan = 7,
-            DEPR_NAV_LEFT = "us/tr/callt.gif",
-            DEPR_NAV_RIGHT = "us/tr/calrt.gif",
-            cfg = this.cfg,
-            pageDate = cfg.getProperty(DEF_CFG.PAGEDATE.key),
-            strings= cfg.getProperty(DEF_CFG.STRINGS.key),
-            prevStr = (strings && strings.previousMonth) ?  strings.previousMonth : "",
-            nextStr = (strings && strings.nextMonth) ? strings.nextMonth : "",
-            monthLabel;
-
-        if (cfg.getProperty(DEF_CFG.SHOW_WEEK_HEADER.key)) {
-            colSpan += 1;
-        }
-    
-        if (cfg.getProperty(DEF_CFG.SHOW_WEEK_FOOTER.key)) {
-            colSpan += 1;
-        }
-
-        html[html.length] = "<thead>";
-        html[html.length] =  "<tr>";
-        html[html.length] =   '<th colspan="' + colSpan + '" class="' + this.Style.CSS_HEADER_TEXT + '">';
-        html[html.length] =    '<div class="' + this.Style.CSS_HEADER + '">';
-
-        var renderLeft, renderRight = false;
-
-        if (this.parent) {
-            if (this.index === 0) {
-                renderLeft = true;
-            }
-            if (this.index == (this.parent.cfg.getProperty("pages") -1)) {
-                renderRight = true;
-            }
-        } else {
-            renderLeft = true;
-            renderRight = true;
-        }
-
-        if (renderLeft) {
-            monthLabel  = this._buildMonthLabel(DateMath.subtract(pageDate, DateMath.MONTH, 1));
-
-            var leftArrow = cfg.getProperty(DEF_CFG.NAV_ARROW_LEFT.key);
-            // Check for deprecated customization - If someone set IMG_ROOT, but didn't set NAV_ARROW_LEFT, then set NAV_ARROW_LEFT to the old deprecated value
-            if (leftArrow === null && Calendar.IMG_ROOT !== null) {
-                leftArrow = Calendar.IMG_ROOT + DEPR_NAV_LEFT;
-            }
-            var leftStyle = (leftArrow === null) ? "" : ' style="background-image:url(' + leftArrow + ')"';
-            html[html.length] = '<a class="' + this.Style.CSS_NAV_LEFT + '"' + leftStyle + ' href="#">' + prevStr + ' (' + monthLabel + ')' + '</a>';
-        }
-
-        var lbl = this.buildMonthLabel();
-        var cal = this.parent || this;
-        if (cal.cfg.getProperty("navigator")) {
-            lbl = "<a class=\"" + this.Style.CSS_NAV + "\" href=\"#\">" + lbl + "</a>";
-        }
-        html[html.length] = lbl;
-
-        if (renderRight) {
-            monthLabel  = this._buildMonthLabel(DateMath.add(pageDate, DateMath.MONTH, 1));
-
-            var rightArrow = cfg.getProperty(DEF_CFG.NAV_ARROW_RIGHT.key);
-            if (rightArrow === null && Calendar.IMG_ROOT !== null) {
-                rightArrow = Calendar.IMG_ROOT + DEPR_NAV_RIGHT;
-            }
-            var rightStyle = (rightArrow === null) ? "" : ' style="background-image:url(' + rightArrow + ')"';
-            html[html.length] = '<a class="' + this.Style.CSS_NAV_RIGHT + '"' + rightStyle + ' href="#">' + nextStr + ' (' + monthLabel + ')' + '</a>';
-        }
-
-        html[html.length] = '</div>\n</th>\n</tr>';
-
-        if (cfg.getProperty(DEF_CFG.SHOW_WEEKDAYS.key)) {
-            html = this.buildWeekdays(html);
-        }
-        
-        html[html.length] = '</thead>';
-    
-        return html;
-    },
-    
-    /**
-    * Renders the Calendar's weekday headers.
-    * @method buildWeekdays
-    * @param {Array} html The current working HTML array
-    * @return {Array} The current working HTML array
-    */
-    buildWeekdays : function(html) {
-
-        html[html.length] = '<tr class="' + this.Style.CSS_WEEKDAY_ROW + '">';
-
-        if (this.cfg.getProperty(DEF_CFG.SHOW_WEEK_HEADER.key)) {
-            html[html.length] = '<th>&#160;</th>';
-        }
-
-        for(var i=0;i < this.Locale.LOCALE_WEEKDAYS.length; ++i) {
-            html[html.length] = '<th class="' + this.Style.CSS_WEEKDAY_CELL + '">' + this.Locale.LOCALE_WEEKDAYS[i] + '</th>';
-        }
-
-        if (this.cfg.getProperty(DEF_CFG.SHOW_WEEK_FOOTER.key)) {
-            html[html.length] = '<th>&#160;</th>';
-        }
-
-        html[html.length] = '</tr>';
-
-        return html;
-    },
-    
-    /**
-    * Renders the calendar body.
-    * @method renderBody
-    * @param {Date} workingDate The current working Date being used for the render process
-    * @param {Array} html The current working HTML array
-    * @return {Array} The current working HTML array
-    */
-    renderBody : function(workingDate, html) {
-        this.logger.log("Rendering body", "render");
-
-        var startDay = this.cfg.getProperty(DEF_CFG.START_WEEKDAY.key);
-
-        this.preMonthDays = workingDate.getDay();
-        if (startDay > 0) {
-            this.preMonthDays -= startDay;
-        }
-        if (this.preMonthDays < 0) {
-            this.preMonthDays += 7;
-        }
-
-        this.monthDays = DateMath.findMonthEnd(workingDate).getDate();
-        this.postMonthDays = Calendar.DISPLAY_DAYS-this.preMonthDays-this.monthDays;
-
-        this.logger.log(this.preMonthDays + " preciding out-of-month days", "render");
-        this.logger.log(this.monthDays + " month days", "render");
-        this.logger.log(this.postMonthDays + " post-month days", "render");
-
-        workingDate = DateMath.subtract(workingDate, DateMath.DAY, this.preMonthDays);
-        this.logger.log("Calendar page starts on " + workingDate, "render");
-    
-        var weekNum,
-            weekClass,
-            weekPrefix = "w",
-            cellPrefix = "_cell",
-            workingDayPrefix = "wd",
-            dayPrefix = "d",
-            cellRenderers,
-            renderer,
-            t = this.today,
-            cfg = this.cfg,
-            todayYear = t.getFullYear(),
-            todayMonth = t.getMonth(),
-            todayDate = t.getDate(),
-            useDate = cfg.getProperty(DEF_CFG.PAGEDATE.key),
-            hideBlankWeeks = cfg.getProperty(DEF_CFG.HIDE_BLANK_WEEKS.key),
-            showWeekFooter = cfg.getProperty(DEF_CFG.SHOW_WEEK_FOOTER.key),
-            showWeekHeader = cfg.getProperty(DEF_CFG.SHOW_WEEK_HEADER.key),
-            mindate = cfg.getProperty(DEF_CFG.MINDATE.key),
-            maxdate = cfg.getProperty(DEF_CFG.MAXDATE.key),
-            yearOffset = this.Locale.YEAR_OFFSET;
-
-        if (mindate) {
-            mindate = DateMath.clearTime(mindate);
-        }
-        if (maxdate) {
-            maxdate = DateMath.clearTime(maxdate);
-        }
-
-        html[html.length] = '<tbody class="m' + (useDate.getMonth()+1) + ' ' + this.Style.CSS_BODY + '">';
-
-        var i = 0,
-            tempDiv = document.createElement("div"),
-            cell = document.createElement("td");
-
-        tempDiv.appendChild(cell);
-
-        var cal = this.parent || this;
-
-        for (var r=0;r<6;r++) {
-            weekNum = DateMath.getWeekNumber(workingDate, startDay);
-            weekClass = weekPrefix + weekNum;
-
-            // Local OOM check for performance, since we already have pagedate
-            if (r !== 0 && hideBlankWeeks === true && workingDate.getMonth() != useDate.getMonth()) {
-                break;
-            } else {
-                html[html.length] = '<tr class="' + weekClass + '">';
-
-                if (showWeekHeader) { html = this.renderRowHeader(weekNum, html); }
-
-                for (var d=0; d < 7; d++){ // Render actual days
-
-                    cellRenderers = [];
-
-                    this.clearElement(cell);
-                    cell.className = this.Style.CSS_CELL;
-                    cell.id = this.id + cellPrefix + i;
-                    this.logger.log("Rendering cell " + cell.id + " (" + workingDate.getFullYear() + yearOffset + "-" + (workingDate.getMonth()+1) + "-" + workingDate.getDate() + ")", "cellrender");
-
-                    if (workingDate.getDate()  == todayDate && 
-                        workingDate.getMonth()  == todayMonth &&
-                        workingDate.getFullYear() == todayYear) {
-                        cellRenderers[cellRenderers.length]=cal.renderCellStyleToday;
-                    }
-
-                    var workingArray = [workingDate.getFullYear(),workingDate.getMonth()+1,workingDate.getDate()];
-                    this.cellDates[this.cellDates.length] = workingArray; // Add this date to cellDates
-
-                    // Local OOM check for performance, since we already have pagedate
-                    if (workingDate.getMonth() != useDate.getMonth()) {
-                        cellRenderers[cellRenderers.length]=cal.renderCellNotThisMonth;
-                    } else {
-                        Dom.addClass(cell, workingDayPrefix + workingDate.getDay());
-                        Dom.addClass(cell, dayPrefix + workingDate.getDate());
-
-                        for (var s=0;s<this.renderStack.length;++s) {
-
-                            renderer = null;
-
-                            var rArray = this.renderStack[s],
-                                type = rArray[0],
-                                month,
-                                day,
-                                year;
-
-                            switch (type) {
-                                case Calendar.DATE:
-                                    month = rArray[1][1];
-                                    day = rArray[1][2];
-                                    year = rArray[1][0];
-
-                                    if (workingDate.getMonth()+1 == month && workingDate.getDate() == day && workingDate.getFullYear() == year) {
-                                        renderer = rArray[2];
-                                        this.renderStack.splice(s,1);
-                                    }
-                                    break;
-                                case Calendar.MONTH_DAY:
-                                    month = rArray[1][0];
-                                    day = rArray[1][1];
-
-                                    if (workingDate.getMonth()+1 == month && workingDate.getDate() == day) {
-                                        renderer = rArray[2];
-                                        this.renderStack.splice(s,1);
-                                    }
-                                    break;
-                                case Calendar.RANGE:
-                                    var date1 = rArray[1][0],
-                                        date2 = rArray[1][1],
-                                        d1month = date1[1],
-                                        d1day = date1[2],
-                                        d1year = date1[0],
-                                        d1 = DateMath.getDate(d1year, d1month-1, d1day),
-                                        d2month = date2[1],
-                                        d2day = date2[2],
-                                        d2year = date2[0],
-                                        d2 = DateMath.getDate(d2year, d2month-1, d2day);
-
-                                    if (workingDate.getTime() >= d1.getTime() && workingDate.getTime() <= d2.getTime()) {
-                                        renderer = rArray[2];
-
-                                        if (workingDate.getTime()==d2.getTime()) { 
-                                            this.renderStack.splice(s,1);
-                                        }
-                                    }
-                                    break;
-                                case Calendar.WEEKDAY:
-                                    var weekday = rArray[1][0];
-                                    if (workingDate.getDay()+1 == weekday) {
-                                        renderer = rArray[2];
-                                    }
-                                    break;
-                                case Calendar.MONTH:
-                                    month = rArray[1][0];
-                                    if (workingDate.getMonth()+1 == month) {
-                                        renderer = rArray[2];
-                                    }
-                                    break;
-                            }
-
-                            if (renderer) {
-                                cellRenderers[cellRenderers.length]=renderer;
-                            }
-                        }
-
-                    }
-
-                    if (this._indexOfSelectedFieldArray(workingArray) > -1) {
-                        cellRenderers[cellRenderers.length]=cal.renderCellStyleSelected; 
-                    }
-
-                    if ((mindate && (workingDate.getTime() < mindate.getTime())) ||
-                        (maxdate && (workingDate.getTime() > maxdate.getTime()))
-                    ) {
-                        cellRenderers[cellRenderers.length]=cal.renderOutOfBoundsDate;
-                    } else {
-                        cellRenderers[cellRenderers.length]=cal.styleCellDefault;
-                        cellRenderers[cellRenderers.length]=cal.renderCellDefault; 
-                    }
-
-                    for (var x=0; x < cellRenderers.length; ++x) {
-                        this.logger.log("renderer[" + x + "] for (" + workingDate.getFullYear() + yearOffset + "-" + (workingDate.getMonth()+1) + "-" + workingDate.getDate() + ")", "cellrender");
-                        if (cellRenderers[x].call(cal, workingDate, cell) == Calendar.STOP_RENDER) {
-                            break;
-                        }
-                    }
-
-                    workingDate.setTime(workingDate.getTime() + DateMath.ONE_DAY_MS);
-                    // Just in case we crossed DST/Summertime boundaries
-                    workingDate = DateMath.clearTime(workingDate);
-
-                    if (i >= 0 && i <= 6) {
-                        Dom.addClass(cell, this.Style.CSS_CELL_TOP);
-                    }
-                    if ((i % 7) === 0) {
-                        Dom.addClass(cell, this.Style.CSS_CELL_LEFT);
-                    }
-                    if (((i+1) % 7) === 0) {
-                        Dom.addClass(cell, this.Style.CSS_CELL_RIGHT);
-                    }
-
-                    var postDays = this.postMonthDays; 
-                    if (hideBlankWeeks && postDays >= 7) {
-                        var blankWeeks = Math.floor(postDays/7);
-                        for (var p=0;p<blankWeeks;++p) {
-                            postDays -= 7;
-                        }
-                    }
-                    
-                    if (i >= ((this.preMonthDays+postDays+this.monthDays)-7)) {
-                        Dom.addClass(cell, this.Style.CSS_CELL_BOTTOM);
-                    }
-    
-                    html[html.length] = tempDiv.innerHTML;
-                    i++;
-                }
-    
-                if (showWeekFooter) { html = this.renderRowFooter(weekNum, html); }
-    
-                html[html.length] = '</tr>';
-            }
-        }
-    
-        html[html.length] = '</tbody>';
-    
-        return html;
-    },
-    
-    /**
-    * Renders the calendar footer. In the default implementation, there is
-    * no footer.
-    * @method renderFooter
-    * @param {Array} html The current working HTML array
-    * @return {Array} The current working HTML array
-    */
-    renderFooter : function(html) { return html; },
-    
-    /**
-    * Renders the calendar after it has been configured. The render() method has a specific call chain that will execute
-    * when the method is called: renderHeader, renderBody, renderFooter.
-    * Refer to the documentation for those methods for information on 
-    * individual render tasks.
-    * @method render
-    */
-    render : function() {
-        this.beforeRenderEvent.fire();
-
-        // Find starting day of the current month
-        var workingDate = DateMath.findMonthStart(this.cfg.getProperty(DEF_CFG.PAGEDATE.key));
-
-        this.resetRenderers();
-        this.cellDates.length = 0;
-
-        Event.purgeElement(this.oDomContainer, true);
-
-        var html = [];
-
-        html[html.length] = '<table cellSpacing="0" class="' + this.Style.CSS_CALENDAR + ' y' + (workingDate.getFullYear() + this.Locale.YEAR_OFFSET) +'" id="' + this.id + '">';
-        html = this.renderHeader(html);
-        html = this.renderBody(workingDate, html);
-        html = this.renderFooter(html);
-        html[html.length] = '</table>';
-
-        this.oDomContainer.innerHTML = html.join("\n");
-
-        this.applyListeners();
-        this.cells = Dom.getElementsByClassName(this.Style.CSS_CELL, "td", this.id);
-    
-        this.cfg.refireEvent(DEF_CFG.TITLE.key);
-        this.cfg.refireEvent(DEF_CFG.CLOSE.key);
-        this.cfg.refireEvent(DEF_CFG.IFRAME.key);
-
-        this.renderEvent.fire();
-    },
-
-    /**
-    * Applies the Calendar's DOM listeners to applicable elements.
-    * @method applyListeners
-    */
-    applyListeners : function() {
-        var root = this.oDomContainer,
-            cal = this.parent || this,
-            anchor = "a",
-            click = "click";
-
-        var linkLeft = Dom.getElementsByClassName(this.Style.CSS_NAV_LEFT, anchor, root),
-            linkRight = Dom.getElementsByClassName(this.Style.CSS_NAV_RIGHT, anchor, root);
-
-        if (linkLeft && linkLeft.length > 0) {
-            this.linkLeft = linkLeft[0];
-            Event.addListener(this.linkLeft, click, this.doPreviousMonthNav, cal, true);
-        }
-
-        if (linkRight && linkRight.length > 0) {
-            this.linkRight = linkRight[0];
-            Event.addListener(this.linkRight, click, this.doNextMonthNav, cal, true);
-        }
-
-        if (cal.cfg.getProperty("navigator") !== null) {
-            this.applyNavListeners();
-        }
-
-        if (this.domEventMap) {
-            var el,elements;
-            for (var cls in this.domEventMap) { 
-                if (Lang.hasOwnProperty(this.domEventMap, cls)) {
-                    var items = this.domEventMap[cls];
-    
-                    if (! (items instanceof Array)) {
-                        items = [items];
-                    }
-    
-                    for (var i=0;i<items.length;i++) {
-                        var item = items[i];
-                        elements = Dom.getElementsByClassName(cls, item.tag, this.oDomContainer);
-    
-                        for (var c=0;c<elements.length;c++) {
-                            el = elements[c];
-                             Event.addListener(el, item.event, item.handler, item.scope, item.correct );
-                        }
-                    }
-                }
-            }
-        }
-
-        Event.addListener(this.oDomContainer, "click", this.doSelectCell, this);
-        Event.addListener(this.oDomContainer, "mouseover", this.doCellMouseOver, this);
-        Event.addListener(this.oDomContainer, "mouseout", this.doCellMouseOut, this);
-    },
-
-    applyNavListeners : function() {
-        var calParent = this.parent || this,
-            cal = this,
-            navBtns = Dom.getElementsByClassName(this.Style.CSS_NAV, "a", this.oDomContainer);
-
-        if (navBtns.length > 0) {
-
-            Event.addListener(navBtns, "click", function (e, obj) {
-                var target = Event.getTarget(e);
-                // this == navBtn
-                if (this === target || Dom.isAncestor(this, target)) {
-                    Event.preventDefault(e);
-                }
-                var navigator = calParent.oNavigator;
-                if (navigator) {
-                    var pgdate = cal.cfg.getProperty("pagedate");
-                    navigator.setYear(pgdate.getFullYear() + cal.Locale.YEAR_OFFSET);
-                    navigator.setMonth(pgdate.getMonth());
-                    navigator.show();
-                }
-            });
-        }
-    },
-
-    /**
-    * Retrieves the Date object for the specified Calendar cell
-    * @method getDateByCellId
-    * @param {String} id The id of the cell
-    * @return {Date} The Date object for the specified Calendar cell
-    */
-    getDateByCellId : function(id) {
-        var date = this.getDateFieldsByCellId(id);
-        return (date) ? DateMath.getDate(date[0],date[1]-1,date[2]) : null;
-    },
-    
-    /**
-    * Retrieves the Date object for the specified Calendar cell
-    * @method getDateFieldsByCellId
-    * @param {String} id The id of the cell
-    * @return {Array} The array of Date fields for the specified Calendar cell
-    */
-    getDateFieldsByCellId : function(id) {
-        id = this.getIndexFromId(id);
-        return (id > -1) ? this.cellDates[id] : null;
-    },
-
-    /**
-     * Find the Calendar's cell index for a given date.
-     * If the date is not found, the method returns -1.
-     * <p>
-     * The returned index can be used to lookup the cell HTMLElement  
-     * using the Calendar's cells array or passed to selectCell to select 
-     * cells by index. 
-     * </p>
-     *
-     * See <a href="#cells">cells</a>, <a href="#selectCell">selectCell</a>.
-     *
-     * @method getCellIndex
-     * @param {Date} date JavaScript Date object, for which to find a cell index.
-     * @return {Number} The index of the date in Calendars cellDates/cells arrays, or -1 if the date 
-     * is not on the curently rendered Calendar page.
-     */
-    getCellIndex : function(date) {
-        var idx = -1;
-        if (date) {
-            var m = date.getMonth(),
-                y = date.getFullYear(),
-                d = date.getDate(),
-                dates = this.cellDates;
-
-            for (var i = 0; i < dates.length; ++i) {
-                var cellDate = dates[i];
-                if (cellDate[0] === y && cellDate[1] === m+1 && cellDate[2] === d) {
-                    idx = i;
-                    break;
-                }
-            }
-        }
-        return idx;
-    },
-
-    /**
-     * Given the id used to mark each Calendar cell, this method
-     * extracts the index number from the id.
-     * 
-     * @param {String} strId The cell id
-     * @return {Number} The index of the cell, or -1 if id does not contain an index number
-     */
-    getIndexFromId : function(strId) {
-        var idx = -1,
-            li = strId.lastIndexOf("_cell");
-
-        if (li > -1) {
-            idx = parseInt(strId.substring(li + 5), 10);
-        }
-
-        return idx;
-    },
-    
-    // BEGIN BUILT-IN TABLE CELL RENDERERS
-    
-    /**
-    * Renders a cell that falls before the minimum date or after the maximum date.
-    * widget class.
-    * @method renderOutOfBoundsDate
-    * @param {Date}     workingDate  The current working Date object being used to generate the calendar
-    * @param {HTMLTableCellElement} cell   The current working cell in the calendar
-    * @return {String} YAHOO.widget.Calendar.STOP_RENDER if rendering should stop with this style, null or nothing if rendering
-    *   should not be terminated
-    */
-    renderOutOfBoundsDate : function(workingDate, cell) {
-        Dom.addClass(cell, this.Style.CSS_CELL_OOB);
-        cell.innerHTML = workingDate.getDate();
-        return Calendar.STOP_RENDER;
-    },
-
-    /**
-    * Renders the row header for a week.
-    * @method renderRowHeader
-    * @param {Number} weekNum The week number of the current row
-    * @param {Array} cell The current working HTML array
-    */
-    renderRowHeader : function(weekNum, html) {
-        html[html.length] = '<th class="' + this.Style.CSS_ROW_HEADER + '">' + weekNum + '</th>';
-        return html;
-    },
-
-    /**
-    * Renders the row footer for a week.
-    * @method renderRowFooter
-    * @param {Number} weekNum The week number of the current row
-    * @param {Array} cell The current working HTML array
-    */
-    renderRowFooter : function(weekNum, html) {
-        html[html.length] = '<th class="' + this.Style.CSS_ROW_FOOTER + '">' + weekNum + '</th>';
-        return html;
-    },
-    
-    /**
-    * Renders a single standard calendar cell in the calendar widget table.
-    * All logic for determining how a standard default cell will be rendered is 
-    * encapsulated in this method, and must be accounted for when extending the
-    * widget class.
-    * @method renderCellDefault
-    * @param {Date}     workingDate  The current working Date object being used to generate the calendar
-    * @param {HTMLTableCellElement} cell   The current working cell in the calendar
-    */
-    renderCellDefault : function(workingDate, cell) {
-        cell.innerHTML = '<a href="#" class="' + this.Style.CSS_CELL_SELECTOR + '">' + this.buildDayLabel(workingDate) + "</a>";
-    },
-    
-    /**
-    * Styles a selectable cell.
-    * @method styleCellDefault
-    * @param {Date}     workingDate  The current working Date object being used to generate the calendar
-    * @param {HTMLTableCellElement} cell   The current working cell in the calendar
-    */
-    styleCellDefault : function(workingDate, cell) {
-        Dom.addClass(cell, this.Style.CSS_CELL_SELECTABLE);
-    },
-    
-    
-    /**
-    * Renders a single standard calendar cell using the CSS hightlight1 style
-    * @method renderCellStyleHighlight1
-    * @param {Date}     workingDate  The current working Date object being used to generate the calendar
-    * @param {HTMLTableCellElement} cell   The current working cell in the calendar
-    */
-    renderCellStyleHighlight1 : function(workingDate, cell) {
-        Dom.addClass(cell, this.Style.CSS_CELL_HIGHLIGHT1);
-    },
-    
-    /**
-    * Renders a single standard calendar cell using the CSS hightlight2 style
-    * @method renderCellStyleHighlight2
-    * @param {Date}     workingDate  The current working Date object being used to generate the calendar
-    * @param {HTMLTableCellElement} cell   The current working cell in the calendar
-    */
-    renderCellStyleHighlight2 : function(workingDate, cell) {
-        Dom.addClass(cell, this.Style.CSS_CELL_HIGHLIGHT2);
-    },
-    
-    /**
-    * Renders a single standard calendar cell using the CSS hightlight3 style
-    * @method renderCellStyleHighlight3
-    * @param {Date}     workingDate  The current working Date object being used to generate the calendar
-    * @param {HTMLTableCellElement} cell   The current working cell in the calendar
-    */
-    renderCellStyleHighlight3 : function(workingDate, cell) {
-        Dom.addClass(cell, this.Style.CSS_CELL_HIGHLIGHT3);
-    },
-    
-    /**
-    * Renders a single standard calendar cell using the CSS hightlight4 style
-    * @method renderCellStyleHighlight4
-    * @param {Date}     workingDate  The current working Date object being used to generate the calendar
-    * @param {HTMLTableCellElement} cell   The current working cell in the calendar
-    */
-    renderCellStyleHighlight4 : function(workingDate, cell) {
-        Dom.addClass(cell, this.Style.CSS_CELL_HIGHLIGHT4);
-    },
-    
-    /**
-    * Applies the default style used for rendering today's date to the current calendar cell
-    * @method renderCellStyleToday
-    * @param {Date}     workingDate  The current working Date object being used to generate the calendar
-    * @param {HTMLTableCellElement} cell   The current working cell in the calendar
-    */
-    renderCellStyleToday : function(workingDate, cell) {
-        Dom.addClass(cell, this.Style.CSS_CELL_TODAY);
-    },
-
-    /**
-    * Applies the default style used for rendering selected dates to the current calendar cell
-    * @method renderCellStyleSelected
-    * @param {Date}     workingDate  The current working Date object being used to generate the calendar
-    * @param {HTMLTableCellElement} cell   The current working cell in the calendar
-    * @return {String} YAHOO.widget.Calendar.STOP_RENDER if rendering should stop with this style, null or nothing if rendering
-    *   should not be terminated
-    */
-    renderCellStyleSelected : function(workingDate, cell) {
-        Dom.addClass(cell, this.Style.CSS_CELL_SELECTED);
-    },
-    
-    /**
-    * Applies the default style used for rendering dates that are not a part of the current
-    * month (preceding or trailing the cells for the current month)
-    * @method renderCellNotThisMonth
-    * @param {Date}     workingDate  The current working Date object being used to generate the calendar
-    * @param {HTMLTableCellElement} cell   The current working cell in the calendar
-    * @return {String} YAHOO.widget.Calendar.STOP_RENDER if rendering should stop with this style, null or nothing if rendering
-    *   should not be terminated
-    */
-    renderCellNotThisMonth : function(workingDate, cell) {
-        Dom.addClass(cell, this.Style.CSS_CELL_OOM);
-        cell.innerHTML=workingDate.getDate();
-        return Calendar.STOP_RENDER;
-    },
-    
-    /**
-    * Renders the current calendar cell as a non-selectable "black-out" date using the default
-    * restricted style.
-    * @method renderBodyCellRestricted
-    * @param {Date}     workingDate  The current working Date object being used to generate the calendar
-    * @param {HTMLTableCellElement} cell   The current working cell in the calendar
-    * @return {String} YAHOO.widget.Calendar.STOP_RENDER if rendering should stop with this style, null or nothing if rendering
-    *   should not be terminated
-    */
-    renderBodyCellRestricted : function(workingDate, cell) {
-        Dom.addClass(cell, this.Style.CSS_CELL);
-        Dom.addClass(cell, this.Style.CSS_CELL_RESTRICTED);
-        cell.innerHTML=workingDate.getDate();
-        return Calendar.STOP_RENDER;
-    },
-    
-    // END BUILT-IN TABLE CELL RENDERERS
-    
-    // BEGIN MONTH NAVIGATION METHODS
-
-    /**
-    * Adds the designated number of months to the current calendar month, and sets the current
-    * calendar page date to the new month.
-    * @method addMonths
-    * @param {Number} count The number of months to add to the current calendar
-    */
-    addMonths : function(count) {
-        var cfgPageDate = DEF_CFG.PAGEDATE.key,
-
-        prevDate = this.cfg.getProperty(cfgPageDate),
-        newDate = DateMath.add(prevDate, DateMath.MONTH, count);
-
-        this.cfg.setProperty(cfgPageDate, newDate);
-        this.resetRenderers();
-        this.changePageEvent.fire(prevDate, newDate);
-    },
-
-    /**
-    * Subtracts the designated number of months from the current calendar month, and sets the current
-    * calendar page date to the new month.
-    * @method subtractMonths
-    * @param {Number} count The number of months to subtract from the current calendar
-    */
-    subtractMonths : function(count) {
-        this.addMonths(-1*count);
-    },
-
-    /**
-    * Adds the designated number of years to the current calendar, and sets the current
-    * calendar page date to the new month.
-    * @method addYears
-    * @param {Number} count The number of years to add to the current calendar
-    */
-    addYears : function(count) {
-        var cfgPageDate = DEF_CFG.PAGEDATE.key,
-
-        prevDate = this.cfg.getProperty(cfgPageDate),
-        newDate = DateMath.add(prevDate, DateMath.YEAR, count);
-
-        this.cfg.setProperty(cfgPageDate, newDate);
-        this.resetRenderers();
-        this.changePageEvent.fire(prevDate, newDate);
-    },
-
-    /**
-    * Subtcats the designated number of years from the current calendar, and sets the current
-    * calendar page date to the new month.
-    * @method subtractYears
-    * @param {Number} count The number of years to subtract from the current calendar
-    */
-    subtractYears : function(count) {
-        this.addYears(-1*count);
-    },
-
-    /**
-    * Navigates to the next month page in the calendar widget.
-    * @method nextMonth
-    */
-    nextMonth : function() {
-        this.addMonths(1);
-    },
-    
-    /**
-    * Navigates to the previous month page in the calendar widget.
-    * @method previousMonth
-    */
-    previousMonth : function() {
-        this.addMonths(-1);
-    },
-    
-    /**
-    * Navigates to the next year in the currently selected month in the calendar widget.
-    * @method nextYear
-    */
-    nextYear : function() {
-        this.addYears(1);
-    },
-    
-    /**
-    * Navigates to the previous year in the currently selected month in the calendar widget.
-    * @method previousYear
-    */
-    previousYear : function() {
-        this.addYears(-1);
-    },
-
-    // END MONTH NAVIGATION METHODS
-    
-    // BEGIN SELECTION METHODS
-    
-    /**
-    * Resets the calendar widget to the originally selected month and year, and 
-    * sets the calendar to the initial selection(s).
-    * @method reset
-    */
-    reset : function() {
-        this.cfg.resetProperty(DEF_CFG.SELECTED.key);
-        this.cfg.resetProperty(DEF_CFG.PAGEDATE.key);
-        this.resetEvent.fire();
-    },
-    
-    /**
-    * Clears the selected dates in the current calendar widget and sets the calendar
-    * to the current month and year.
-    * @method clear
-    */
-    clear : function() {
-        this.cfg.setProperty(DEF_CFG.SELECTED.key, []);
-        this.cfg.setProperty(DEF_CFG.PAGEDATE.key, new Date(this.today.getTime()));
-        this.clearEvent.fire();
-    },
-    
-    /**
-    * Selects a date or a collection of dates on the current calendar. This method, by default,
-    * does not call the render method explicitly. Once selection has completed, render must be 
-    * called for the changes to be reflected visually.
-    *
-    * Any dates which are OOB (out of bounds, not selectable) will not be selected and the array of 
-    * selected dates passed to the selectEvent will not contain OOB dates.
-    * 
-    * If all dates are OOB, the no state change will occur; beforeSelect and select events will not be fired.
-    *
-    * @method select
-    * @param {String/Date/Date[]} date The date string of dates to select in the current calendar. Valid formats are
-    *        individual date(s) (12/24/2005,12/26/2005) or date range(s) (12/24/2005-1/1/2006).
-    *        Multiple comma-delimited dates can also be passed to this method (12/24/2005,12/11/2005-12/13/2005).
-    *        This method can also take a JavaScript Date object or an array of Date objects.
-    * @return {Date[]}   Array of JavaScript Date objects representing all individual dates that are currently selected.
-    */
-    select : function(date) {
-        this.logger.log("Select: " + date, "info");
-
-        var aToBeSelected = this._toFieldArray(date),
-            validDates = [],
-            selected = [],
-            cfgSelected = DEF_CFG.SELECTED.key;
-
-        this.logger.log("Selection field array: " + aToBeSelected, "info");
-        
-        for (var a=0; a < aToBeSelected.length; ++a) {
-            var toSelect = aToBeSelected[a];
-
-            if (!this.isDateOOB(this._toDate(toSelect))) {
-
-                if (validDates.length === 0) {
-                    this.beforeSelectEvent.fire();
-                    selected = this.cfg.getProperty(cfgSelected);
-                }
-                validDates.push(toSelect);
-
-                if (this._indexOfSelectedFieldArray(toSelect) == -1) { 
-                    selected[selected.length] = toSelect;
-                }
-            }
-        }
-
-        if (validDates.length === 0) { this.logger.log("All provided dates were OOB. beforeSelect and select events not fired", "info"); }
-
-        if (validDates.length > 0) {
-            if (this.parent) {
-                this.parent.cfg.setProperty(cfgSelected, selected);
-            } else {
-                this.cfg.setProperty(cfgSelected, selected);
-            }
-            this.selectEvent.fire(validDates);
-        }
-
-        return this.getSelectedDates();
-    },
-    
-    /**
-    * Selects a date on the current calendar by referencing the index of the cell that should be selected.
-    * This method is used to easily select a single cell (usually with a mouse click) without having to do
-    * a full render. The selected style is applied to the cell directly.
-    *
-    * If the cell is not marked with the CSS_CELL_SELECTABLE class (as is the case by default for out of month 
-    * or out of bounds cells), it will not be selected and in such a case beforeSelect and select events will not be fired.
-    * 
-    * @method selectCell
-    * @param {Number} cellIndex The index of the cell to select in the current calendar. 
-    * @return {Date[]} Array of JavaScript Date objects representing all individual dates that are currently selected.
-    */
-    selectCell : function(cellIndex) {
-
-        var cell = this.cells[cellIndex],
-            cellDate = this.cellDates[cellIndex],
-            dCellDate = this._toDate(cellDate),
-            selectable = Dom.hasClass(cell, this.Style.CSS_CELL_SELECTABLE);
-
-        this.logger.log("Select: " + dCellDate, "info");
-        if (!selectable) {this.logger.log("The cell at cellIndex:" + cellIndex + " is not a selectable cell. beforeSelect, select events not fired", "info"); }
-
-        if (selectable) {
-    
-            this.beforeSelectEvent.fire();
-    
-            var cfgSelected = DEF_CFG.SELECTED.key;
-            var selected = this.cfg.getProperty(cfgSelected);
-    
-            var selectDate = cellDate.concat();
-    
-            if (this._indexOfSelectedFieldArray(selectDate) == -1) {
-                selected[selected.length] = selectDate;
-            }
-            if (this.parent) {
-                this.parent.cfg.setProperty(cfgSelected, selected);
-            } else {
-                this.cfg.setProperty(cfgSelected, selected);
-            }
-            this.renderCellStyleSelected(dCellDate,cell);
-            this.selectEvent.fire([selectDate]);
-    
-            this.doCellMouseOut.call(cell, null, this);  
-        }
-    
-        return this.getSelectedDates();
-    },
-    
-    /**
-    * Deselects a date or a collection of dates on the current calendar. This method, by default,
-    * does not call the render method explicitly. Once deselection has completed, render must be 
-    * called for the changes to be reflected visually.
-    * 
-    * The method will not attempt to deselect any dates which are OOB (out of bounds, and hence not selectable) 
-    * and the array of deselected dates passed to the deselectEvent will not contain any OOB dates.
-    * 
-    * If all dates are OOB, beforeDeselect and deselect events will not be fired.
-    * 
-    * @method deselect
-    * @param {String/Date/Date[]} date The date string of dates to deselect in the current calendar. Valid formats are
-    *        individual date(s) (12/24/2005,12/26/2005) or date range(s) (12/24/2005-1/1/2006).
-    *        Multiple comma-delimited dates can also be passed to this method (12/24/2005,12/11/2005-12/13/2005).
-    *        This method can also take a JavaScript Date object or an array of Date objects. 
-    * @return {Date[]}   Array of JavaScript Date objects representing all individual dates that are currently selected.
-    */
-    deselect : function(date) {
-        this.logger.log("Deselect: " + date, "info");
-
-        var aToBeDeselected = this._toFieldArray(date),
-            validDates = [],
-            selected = [],
-            cfgSelected = DEF_CFG.SELECTED.key;
-
-        this.logger.log("Deselection field array: " + aToBeDeselected, "info");
-
-        for (var a=0; a < aToBeDeselected.length; ++a) {
-            var toDeselect = aToBeDeselected[a];
-    
-            if (!this.isDateOOB(this._toDate(toDeselect))) {
-    
-                if (validDates.length === 0) {
-                    this.beforeDeselectEvent.fire();
-                    selected = this.cfg.getProperty(cfgSelected);
-                }
-    
-                validDates.push(toDeselect);
-    
-                var index = this._indexOfSelectedFieldArray(toDeselect);
-                if (index != -1) { 
-                    selected.splice(index,1);
-                }
-            }
-        }
-    
-        if (validDates.length === 0) { this.logger.log("All provided dates were OOB. beforeDeselect and deselect events not fired");}
-    
-        if (validDates.length > 0) {
-            if (this.parent) {
-                this.parent.cfg.setProperty(cfgSelected, selected);
-            } else {
-                this.cfg.setProperty(cfgSelected, selected);
-            }
-            this.deselectEvent.fire(validDates);
-        }
-    
-        return this.getSelectedDates();
-    },
-    
-    /**
-    * Deselects a date on the current calendar by referencing the index of the cell that should be deselected.
-    * This method is used to easily deselect a single cell (usually with a mouse click) without having to do
-    * a full render. The selected style is removed from the cell directly.
-    * 
-    * If the cell is not marked with the CSS_CELL_SELECTABLE class (as is the case by default for out of month 
-    * or out of bounds cells), the method will not attempt to deselect it and in such a case, beforeDeselect and 
-    * deselect events will not be fired.
-    * 
-    * @method deselectCell
-    * @param {Number} cellIndex The index of the cell to deselect in the current calendar. 
-    * @return {Date[]} Array of JavaScript Date objects representing all individual dates that are currently selected.
-    */
-    deselectCell : function(cellIndex) {
-        var cell = this.cells[cellIndex],
-            cellDate = this.cellDates[cellIndex],
-            cellDateIndex = this._indexOfSelectedFieldArray(cellDate);
-
-        var selectable = Dom.hasClass(cell, this.Style.CSS_CELL_SELECTABLE);
-        if (!selectable) { this.logger.log("The cell at cellIndex:" + cellIndex + " is not a selectable/deselectable cell", "info"); }
-
-        if (selectable) {
-
-            this.beforeDeselectEvent.fire();
-
-            var selected = this.cfg.getProperty(DEF_CFG.SELECTED.key),
-                dCellDate = this._toDate(cellDate),
-                selectDate = cellDate.concat();
-
-            if (cellDateIndex > -1) {
-                if (this.cfg.getProperty(DEF_CFG.PAGEDATE.key).getMonth() == dCellDate.getMonth() &&
-                    this.cfg.getProperty(DEF_CFG.PAGEDATE.key).getFullYear() == dCellDate.getFullYear()) {
-                    Dom.removeClass(cell, this.Style.CSS_CELL_SELECTED);
-                }
-                selected.splice(cellDateIndex, 1);
-            }
-
-            if (this.parent) {
-                this.parent.cfg.setProperty(DEF_CFG.SELECTED.key, selected);
-            } else {
-                this.cfg.setProperty(DEF_CFG.SELECTED.key, selected);
-            }
-
-            this.deselectEvent.fire([selectDate]);
-        }
-
-        return this.getSelectedDates();
-    },
-
-    /**
-    * Deselects all dates on the current calendar.
-    * @method deselectAll
-    * @return {Date[]}  Array of JavaScript Date objects representing all individual dates that are currently selected.
-    *      Assuming that this function executes properly, the return value should be an empty array.
-    *      However, the empty array is returned for the sake of being able to check the selection status
-    *      of the calendar.
-    */
-    deselectAll : function() {
-        this.beforeDeselectEvent.fire();
-        
-        var cfgSelected = DEF_CFG.SELECTED.key,
-            selected = this.cfg.getProperty(cfgSelected),
-            count = selected.length,
-            sel = selected.concat();
-
-        if (this.parent) {
-            this.parent.cfg.setProperty(cfgSelected, []);
-        } else {
-            this.cfg.setProperty(cfgSelected, []);
-        }
-        
-        if (count > 0) {
-            this.deselectEvent.fire(sel);
-        }
-    
-        return this.getSelectedDates();
-    },
-    
-    // END SELECTION METHODS
-    
-    // BEGIN TYPE CONVERSION METHODS
-    
-    /**
-    * Converts a date (either a JavaScript Date object, or a date string) to the internal data structure
-    * used to represent dates: [[yyyy,mm,dd],[yyyy,mm,dd]].
-    * @method _toFieldArray
-    * @private
-    * @param {String/Date/Date[]} date The date string of dates to deselect in the current calendar. Valid formats are
-    *        individual date(s) (12/24/2005,12/26/2005) or date range(s) (12/24/2005-1/1/2006).
-    *        Multiple comma-delimited dates can also be passed to this method (12/24/2005,12/11/2005-12/13/2005).
-    *        This method can also take a JavaScript Date object or an array of Date objects. 
-    * @return {Array[](Number[])} Array of date field arrays
-    */
-    _toFieldArray : function(date) {
-        var returnDate = [];
-    
-        if (date instanceof Date) {
-            returnDate = [[date.getFullYear(), date.getMonth()+1, date.getDate()]];
-        } else if (Lang.isString(date)) {
-            returnDate = this._parseDates(date);
-        } else if (Lang.isArray(date)) {
-            for (var i=0;i<date.length;++i) {
-                var d = date[i];
-                returnDate[returnDate.length] = [d.getFullYear(),d.getMonth()+1,d.getDate()];
-            }
-        }
-        
-        return returnDate;
-    },
-    
-    /**
-    * Converts a date field array [yyyy,mm,dd] to a JavaScript Date object. The date field array
-    * is the format in which dates are as provided as arguments to selectEvent and deselectEvent listeners.
-    * 
-    * @method toDate
-    * @param {Number[]} dateFieldArray The date field array to convert to a JavaScript Date.
-    * @return {Date} JavaScript Date object representing the date field array.
-    */
-    toDate : function(dateFieldArray) {
-        return this._toDate(dateFieldArray);
-    },
-    
-    /**
-    * Converts a date field array [yyyy,mm,dd] to a JavaScript Date object.
-    * @method _toDate
-    * @private
-    * @deprecated Made public, toDate 
-    * @param {Number[]}  dateFieldArray The date field array to convert to a JavaScript Date.
-    * @return {Date} JavaScript Date object representing the date field array
-    */
-    _toDate : function(dateFieldArray) {
-        if (dateFieldArray instanceof Date) {
-            return dateFieldArray;
-        } else {
-            return DateMath.getDate(dateFieldArray[0],dateFieldArray[1]-1,dateFieldArray[2]);
-        }
-    },
-    
-    // END TYPE CONVERSION METHODS 
-    
-    // BEGIN UTILITY METHODS
-    
-    /**
-    * Determines if 2 field arrays are equal.
-    * @method _fieldArraysAreEqual
-    * @private
-    * @param {Number[]} array1 The first date field array to compare
-    * @param {Number[]} array2 The first date field array to compare
-    * @return {Boolean} The boolean that represents the equality of the two arrays
-    */
-    _fieldArraysAreEqual : function(array1, array2) {
-        var match = false;
-    
-        if (array1[0]==array2[0]&&array1[1]==array2[1]&&array1[2]==array2[2]) {
-            match=true; 
-        }
-    
-        return match;
-    },
-    
-    /**
-    * Gets the index of a date field array [yyyy,mm,dd] in the current list of selected dates.
-    * @method _indexOfSelectedFieldArray
-    * @private
-    * @param {Number[]}  find The date field array to search for
-    * @return {Number}   The index of the date field array within the collection of selected dates.
-    *        -1 will be returned if the date is not found.
-    */
-    _indexOfSelectedFieldArray : function(find) {
-        var selected = -1,
-            seldates = this.cfg.getProperty(DEF_CFG.SELECTED.key);
-    
-        for (var s=0;s<seldates.length;++s) {
-            var sArray = seldates[s];
-            if (find[0]==sArray[0]&&find[1]==sArray[1]&&find[2]==sArray[2]) {
-                selected = s;
-                break;
-            }
-        }
-    
-        return selected;
-    },
-    
-    /**
-    * Determines whether a given date is OOM (out of month).
-    * @method isDateOOM
-    * @param {Date} date The JavaScript Date object for which to check the OOM status
-    * @return {Boolean} true if the date is OOM
-    */
-    isDateOOM : function(date) {
-        return (date.getMonth() != this.cfg.getProperty(DEF_CFG.PAGEDATE.key).getMonth());
-    },
-    
-    /**
-    * Determines whether a given date is OOB (out of bounds - less than the mindate or more than the maxdate).
-    *
-    * @method isDateOOB
-    * @param {Date} date The JavaScript Date object for which to check the OOB status
-    * @return {Boolean} true if the date is OOB
-    */
-    isDateOOB : function(date) {
-        var minDate = this.cfg.getProperty(DEF_CFG.MINDATE.key),
-            maxDate = this.cfg.getProperty(DEF_CFG.MAXDATE.key),
-            dm = DateMath;
-        
-        if (minDate) {
-            minDate = dm.clearTime(minDate);
-        } 
-        if (maxDate) {
-            maxDate = dm.clearTime(maxDate);
-        }
-    
-        var clearedDate = new Date(date.getTime());
-        clearedDate = dm.clearTime(clearedDate);
-    
-        return ((minDate && clearedDate.getTime() < minDate.getTime()) || (maxDate && clearedDate.getTime() > maxDate.getTime()));
-    },
-    
-    /**
-     * Parses a pagedate configuration property value. The value can either be specified as a string of form "mm/yyyy" or a Date object 
-     * and is parsed into a Date object normalized to the first day of the month. If no value is passed in, the month and year from today's date are used to create the Date object 
-     * @method _parsePageDate
-     * @private
-     * @param {Date|String} date Pagedate value which needs to be parsed
-     * @return {Date} The Date object representing the pagedate
-     */
-    _parsePageDate : function(date) {
-        var parsedDate;
-
-        if (date) {
-            if (date instanceof Date) {
-                parsedDate = DateMath.findMonthStart(date);
-            } else {
-                var month, year, aMonthYear;
-                aMonthYear = date.split(this.cfg.getProperty(DEF_CFG.DATE_FIELD_DELIMITER.key));
-                month = parseInt(aMonthYear[this.cfg.getProperty(DEF_CFG.MY_MONTH_POSITION.key)-1], 10)-1;
-                year = parseInt(aMonthYear[this.cfg.getProperty(DEF_CFG.MY_YEAR_POSITION.key)-1], 10) - this.Locale.YEAR_OFFSET;
-
-                parsedDate = DateMath.getDate(year, month, 1);
-            }
-        } else {
-            parsedDate = DateMath.getDate(this.today.getFullYear(), this.today.getMonth(), 1);
-        }
-        return parsedDate;
-    },
-    
-    // END UTILITY METHODS
-    
-    // BEGIN EVENT HANDLERS
-    
-    /**
-    * Event executed before a date is selected in the calendar widget.
-    * @deprecated Event handlers for this event should be susbcribed to beforeSelectEvent.
-    */
-    onBeforeSelect : function() {
-        if (this.cfg.getProperty(DEF_CFG.MULTI_SELECT.key) === false) {
-            if (this.parent) {
-                this.parent.callChildFunction("clearAllBodyCellStyles", this.Style.CSS_CELL_SELECTED);
-                this.parent.deselectAll();
-            } else {
-                this.clearAllBodyCellStyles(this.Style.CSS_CELL_SELECTED);
-                this.deselectAll();
-            }
-        }
-    },
-    
-    /**
-    * Event executed when a date is selected in the calendar widget.
-    * @param {Array} selected An array of date field arrays representing which date or dates were selected. Example: [ [2006,8,6],[2006,8,7],[2006,8,8] ]
-    * @deprecated Event handlers for this event should be susbcribed to selectEvent.
-    */
-    onSelect : function(selected) { },
-    
-    /**
-    * Event executed before a date is deselected in the calendar widget.
-    * @deprecated Event handlers for this event should be susbcribed to beforeDeselectEvent.
-    */
-    onBeforeDeselect : function() { },
-    
-    /**
-    * Event executed when a date is deselected in the calendar widget.
-    * @param {Array} selected An array of date field arrays representing which date or dates were deselected. Example: [ [2006,8,6],[2006,8,7],[2006,8,8] ]
-    * @deprecated Event handlers for this event should be susbcribed to deselectEvent.
-    */
-    onDeselect : function(deselected) { },
-    
-    /**
-    * Event executed when the user navigates to a different calendar page.
-    * @deprecated Event handlers for this event should be susbcribed to changePageEvent.
-    */
-    onChangePage : function() {
-        this.render();
-    },
-
-    /**
-    * Event executed when the calendar widget is rendered.
-    * @deprecated Event handlers for this event should be susbcribed to renderEvent.
-    */
-    onRender : function() { },
-
-    /**
-    * Event executed when the calendar widget is reset to its original state.
-    * @deprecated Event handlers for this event should be susbcribed to resetEvemt.
-    */
-    onReset : function() { this.render(); },
-
-    /**
-    * Event executed when the calendar widget is completely cleared to the current month with no selections.
-    * @deprecated Event handlers for this event should be susbcribed to clearEvent.
-    */
-    onClear : function() { this.render(); },
-    
-    /**
-    * Validates the calendar widget. This method has no default implementation
-    * and must be extended by subclassing the widget.
-    * @return Should return true if the widget validates, and false if
-    * it doesn't.
-    * @type Boolean
-    */
-    validate : function() { return true; },
-    
-    // END EVENT HANDLERS
-    
-    // BEGIN DATE PARSE METHODS
-    
-    /**
-    * Converts a date string to a date field array
-    * @private
-    * @param {String} sDate   Date string. Valid formats are mm/dd and mm/dd/yyyy.
-    * @return    A date field array representing the string passed to the method
-    * @type Array[](Number[])
-    */
-    _parseDate : function(sDate) {
-        var aDate = sDate.split(this.Locale.DATE_FIELD_DELIMITER),
-            rArray;
-
-        if (aDate.length == 2) {
-            rArray = [aDate[this.Locale.MD_MONTH_POSITION-1],aDate[this.Locale.MD_DAY_POSITION-1]];
-            rArray.type = Calendar.MONTH_DAY;
-        } else {
-            rArray = [aDate[this.Locale.MDY_YEAR_POSITION-1] - this.Locale.YEAR_OFFSET, aDate[this.Locale.MDY_MONTH_POSITION-1],aDate[this.Locale.MDY_DAY_POSITION-1]];
-            rArray.type = Calendar.DATE;
-        }
-
-        for (var i=0;i<rArray.length;i++) {
-            rArray[i] = parseInt(rArray[i], 10);
-        }
-    
-        return rArray;
-    },
-    
-    /**
-    * Converts a multi or single-date string to an array of date field arrays
-    * @private
-    * @param {String} sDates  Date string with one or more comma-delimited dates. Valid formats are mm/dd, mm/dd/yyyy, mm/dd/yyyy-mm/dd/yyyy
-    * @return       An array of date field arrays
-    * @type Array[](Number[])
-    */
-    _parseDates : function(sDates) {
-        var aReturn = [],
-            aDates = sDates.split(this.Locale.DATE_DELIMITER);
-        
-        for (var d=0;d<aDates.length;++d) {
-            var sDate = aDates[d];
-    
-            if (sDate.indexOf(this.Locale.DATE_RANGE_DELIMITER) != -1) {
-                // This is a range
-                var aRange = sDate.split(this.Locale.DATE_RANGE_DELIMITER),
-                    dateStart = this._parseDate(aRange[0]),
-                    dateEnd = this._parseDate(aRange[1]),
-                    fullRange = this._parseRange(dateStart, dateEnd);
-
-                aReturn = aReturn.concat(fullRange);
-            } else {
-                // This is not a range
-                var aDate = this._parseDate(sDate);
-                aReturn.push(aDate);
-            }
-        }
-        return aReturn;
-    },
-    
-    /**
-    * Converts a date range to the full list of included dates
-    * @private
-    * @param {Number[]} startDate Date field array representing the first date in the range
-    * @param {Number[]} endDate  Date field array representing the last date in the range
-    * @return       An array of date field arrays
-    * @type Array[](Number[])
-    */
-    _parseRange : function(startDate, endDate) {
-        var dCurrent = DateMath.add(DateMath.getDate(startDate[0],startDate[1]-1,startDate[2]),DateMath.DAY,1),
-            dEnd     = DateMath.getDate(endDate[0],  endDate[1]-1,  endDate[2]),
-            results = [];
-
-        results.push(startDate);
-        while (dCurrent.getTime() <= dEnd.getTime()) {
-            results.push([dCurrent.getFullYear(),dCurrent.getMonth()+1,dCurrent.getDate()]);
-            dCurrent = DateMath.add(dCurrent,DateMath.DAY,1);
-        }
-        return results;
-    },
-    
-    // END DATE PARSE METHODS
-    
-    // BEGIN RENDERER METHODS
-    
-    /**
-    * Resets the render stack of the current calendar to its original pre-render value.
-    */
-    resetRenderers : function() {
-        this.renderStack = this._renderStack.concat();
-    },
-    
-    /**
-     * Removes all custom renderers added to the Calendar through the addRenderer, addMonthRenderer and 
-     * addWeekdayRenderer methods. Calendar's render method needs to be called after removing renderers 
-     * to re-render the Calendar without custom renderers applied.
-     */
-    removeRenderers : function() {
-        this._renderStack = [];
-        this.renderStack = [];
-    },
-
-    /**
-    * Clears the inner HTML, CSS class and style information from the specified cell.
-    * @method clearElement
-    * @param {HTMLTableCellElement} cell The cell to clear
-    */ 
-    clearElement : function(cell) {
-        cell.innerHTML = "&#160;";
-        cell.className="";
-    },
-    
-    /**
-    * Adds a renderer to the render stack. The function reference passed to this method will be executed
-    * when a date cell matches the conditions specified in the date string for this renderer.
-    * @method addRenderer
-    * @param {String} sDates  A date string to associate with the specified renderer. Valid formats
-    *         include date (12/24/2005), month/day (12/24), and range (12/1/2004-1/1/2005)
-    * @param {Function} fnRender The function executed to render cells that match the render rules for this renderer.
-    */
-    addRenderer : function(sDates, fnRender) {
-        var aDates = this._parseDates(sDates);
-        for (var i=0;i<aDates.length;++i) {
-            var aDate = aDates[i];
-        
-            if (aDate.length == 2) { // this is either a range or a month/day combo
-                if (aDate[0] instanceof Array) { // this is a range
-                    this._addRenderer(Calendar.RANGE,aDate,fnRender);
-                } else { // this is a month/day combo
-                    this._addRenderer(Calendar.MONTH_DAY,aDate,fnRender);
-                }
-            } else if (aDate.length == 3) {
-                this._addRenderer(Calendar.DATE,aDate,fnRender);
-            }
-        }
-    },
-    
-    /**
-    * The private method used for adding cell renderers to the local render stack.
-    * This method is called by other methods that set the renderer type prior to the method call.
-    * @method _addRenderer
-    * @private
-    * @param {String} type  The type string that indicates the type of date renderer being added.
-    *         Values are YAHOO.widget.Calendar.DATE, YAHOO.widget.Calendar.MONTH_DAY, YAHOO.widget.Calendar.WEEKDAY,
-    *         YAHOO.widget.Calendar.RANGE, YAHOO.widget.Calendar.MONTH
-    * @param {Array}  aDates  An array of dates used to construct the renderer. The format varies based
-    *         on the renderer type
-    * @param {Function} fnRender The function executed to render cells that match the render rules for this renderer.
-    */
-    _addRenderer : function(type, aDates, fnRender) {
-        var add = [type,aDates,fnRender];
-        this.renderStack.unshift(add); 
-        this._renderStack = this.renderStack.concat();
-    },
-
-    /**
-    * Adds a month to the render stack. The function reference passed to this method will be executed
-    * when a date cell matches the month passed to this method.
-    * @method addMonthRenderer
-    * @param {Number} month  The month (1-12) to associate with this renderer
-    * @param {Function} fnRender The function executed to render cells that match the render rules for this renderer.
-    */
-    addMonthRenderer : function(month, fnRender) {
-        this._addRenderer(Calendar.MONTH,[month],fnRender);
-    },
-
-    /**
-    * Adds a weekday to the render stack. The function reference passed to this method will be executed
-    * when a date cell matches the weekday passed to this method.
-    * @method addWeekdayRenderer
-    * @param {Number} weekday  The weekday (Sunday = 1, Monday = 2 ... Saturday = 7) to associate with this renderer
-    * @param {Function} fnRender The function executed to render cells that match the render rules for this renderer.
-    */
-    addWeekdayRenderer : function(weekday, fnRender) {
-        this._addRenderer(Calendar.WEEKDAY,[weekday],fnRender);
-    },
-
-    // END RENDERER METHODS
-    
-    // BEGIN CSS METHODS
-    
-    /**
-    * Removes all styles from all body cells in the current calendar table.
-    * @method clearAllBodyCellStyles
-    * @param {style} style The CSS class name to remove from all calendar body cells
-    */
-    clearAllBodyCellStyles : function(style) {
-        for (var c=0;c<this.cells.length;++c) {
-            Dom.removeClass(this.cells[c],style);
-        }
-    },
-    
-    // END CSS METHODS
-    
-    // BEGIN GETTER/SETTER METHODS
-    /**
-    * Sets the calendar's month explicitly
-    * @method setMonth
-    * @param {Number} month  The numeric month, from 0 (January) to 11 (December)
-    */
-    setMonth : function(month) {
-        var cfgPageDate = DEF_CFG.PAGEDATE.key,
-            current = this.cfg.getProperty(cfgPageDate);
-        current.setMonth(parseInt(month, 10));
-        this.cfg.setProperty(cfgPageDate, current);
-    },
-
-    /**
-    * Sets the calendar's year explicitly.
-    * @method setYear
-    * @param {Number} year  The numeric 4-digit year
-    */
-    setYear : function(year) {
-        var cfgPageDate = DEF_CFG.PAGEDATE.key,
-            current = this.cfg.getProperty(cfgPageDate);
-
-        current.setFullYear(parseInt(year, 10) - this.Locale.YEAR_OFFSET);
-        this.cfg.setProperty(cfgPageDate, current);
-    },
-
-    /**
-    * Gets the list of currently selected dates from the calendar.
-    * @method getSelectedDates
-    * @return {Date[]} An array of currently selected JavaScript Date objects.
-    */
-    getSelectedDates : function() {
-        var returnDates = [],
-            selected = this.cfg.getProperty(DEF_CFG.SELECTED.key);
-
-        for (var d=0;d<selected.length;++d) {
-            var dateArray = selected[d];
-
-            var date = DateMath.getDate(dateArray[0],dateArray[1]-1,dateArray[2]);
-            returnDates.push(date);
-        }
-
-        returnDates.sort( function(a,b) { return a-b; } );
-        return returnDates;
-    },
-
-    /// END GETTER/SETTER METHODS ///
-    
-    /**
-    * Hides the Calendar's outer container from view.
-    * @method hide
-    */
-    hide : function() {
-        if (this.beforeHideEvent.fire()) {
-            this.oDomContainer.style.display = "none";
-            this.hideEvent.fire();
-        }
-    },
-
-    /**
-    * Shows the Calendar's outer container.
-    * @method show
-    */
-    show : function() {
-        if (this.beforeShowEvent.fire()) {
-            this.oDomContainer.style.display = "block";
-            this.showEvent.fire();
-        }
-    },
-
-    /**
-    * Returns a string representing the current browser.
-    * @deprecated As of 2.3.0, environment information is available in YAHOO.env.ua
-    * @see YAHOO.env.ua
-    * @property browser
-    * @type String
-    */
-    browser : (function() {
-                var ua = navigator.userAgent.toLowerCase();
-                      if (ua.indexOf('opera')!=-1) { // Opera (check first in case of spoof)
-                         return 'opera';
-                      } else if (ua.indexOf('msie 7')!=-1) { // IE7
-                         return 'ie7';
-                      } else if (ua.indexOf('msie') !=-1) { // IE
-                         return 'ie';
-                      } else if (ua.indexOf('safari')!=-1) { // Safari (check before Gecko because it includes "like Gecko")
-                         return 'safari';
-                      } else if (ua.indexOf('gecko') != -1) { // Gecko
-                         return 'gecko';
-                      } else {
-                         return false;
-                      }
-                })(),
-    /**
-    * Returns a string representation of the object.
-    * @method toString
-    * @return {String} A string representation of the Calendar object.
-    */
-    toString : function() {
-        return "Calendar " + this.id;
-    },
-
-    /**
-     * Destroys the Calendar instance. The method will remove references
-     * to HTML elements, remove any event listeners added by the Calendar,
-     * and destroy the Config and CalendarNavigator instances it has created.
-     *
-     * @method destroy
-     */
-    destroy : function() {
-
-        if (this.beforeDestroyEvent.fire()) {
-            var cal = this;
-
-            // Child objects
-            if (cal.navigator) {
-                cal.navigator.destroy();
-            }
-
-            if (cal.cfg) {
-                cal.cfg.destroy();
-            }
-
-            // DOM event listeners
-            Event.purgeElement(cal.oDomContainer, true);
-
-            // Generated markup/DOM - Not removing the container DIV since we didn't create it.
-            Dom.removeClass(cal.oDomContainer, cal.Style.CSS_WITH_TITLE);
-            Dom.removeClass(cal.oDomContainer, cal.Style.CSS_CONTAINER);
-            Dom.removeClass(cal.oDomContainer, cal.Style.CSS_SINGLE);
-            cal.oDomContainer.innerHTML = "";
-
-            // JS-to-DOM references
-            cal.oDomContainer = null;
-            cal.cells = null;
-
-            this.destroyEvent.fire();
-        }
-    }
-};
-
-YAHOO.widget.Calendar = Calendar;
-
-/**
-* @namespace YAHOO.widget
-* @class Calendar_Core
-* @extends YAHOO.widget.Calendar
-* @deprecated The old Calendar_Core class is no longer necessary.
-*/
-YAHOO.widget.Calendar_Core = YAHOO.widget.Calendar;
-
-YAHOO.widget.Cal_Core = YAHOO.widget.Calendar;
-
-})();
-(function() {
-
-    var Dom = YAHOO.util.Dom,
-        DateMath = YAHOO.widget.DateMath,
-        Event = YAHOO.util.Event,
-        Lang = YAHOO.lang,
-        Calendar = YAHOO.widget.Calendar;
-
-/**
-* YAHOO.widget.CalendarGroup is a special container class for YAHOO.widget.Calendar. This class facilitates
-* the ability to have multi-page calendar views that share a single dataset and are
-* dependent on each other.
-*
-* The calendar group instance will refer to each of its elements using a 0-based index.
-* For example, to construct the placeholder for a calendar group widget with id "cal1" and
-* containerId of "cal1Container", the markup would be as follows:
-*   <xmp>
-*       <div id="cal1Container_0"></div>
-*       <div id="cal1Container_1"></div>
-*   </xmp>
-* The tables for the calendars ("cal1_0" and "cal1_1") will be inserted into those containers.
-*
-* <p>
-* <strong>NOTE: As of 2.4.0, the constructor's ID argument is optional.</strong>
-* The CalendarGroup can be constructed by simply providing a container ID string, 
-* or a reference to a container DIV HTMLElement (the element needs to exist 
-* in the document).
-* 
-* E.g.:
-*   <xmp>
-*       var c = new YAHOO.widget.CalendarGroup("calContainer", configOptions);
-*   </xmp>
-* or:
-*   <xmp>
-*       var containerDiv = YAHOO.util.Dom.get("calContainer");
-*       var c = new YAHOO.widget.CalendarGroup(containerDiv, configOptions);
-*   </xmp>
-* </p>
-* <p>
-* If not provided, the ID will be generated from the container DIV ID by adding an "_t" suffix.
-* For example if an ID is not provided, and the container's ID is "calContainer", the CalendarGroup's ID will be set to "calContainer_t".
-* </p>
-* 
-* @namespace YAHOO.widget
-* @class CalendarGroup
-* @constructor
-* @param {String} id optional The id of the table element that will represent the CalendarGroup widget. As of 2.4.0, this argument is optional.
-* @param {String | HTMLElement} container The id of the container div element that will wrap the CalendarGroup table, or a reference to a DIV element which exists in the document.
-* @param {Object} config optional The configuration object containing the initial configuration values for the CalendarGroup.
-*/
-function CalendarGroup(id, containerId, config) {
-    if (arguments.length > 0) {
-        this.init.apply(this, arguments);
-    }
-}
-
-/**
-* The set of default Config property keys and values for the CalendarGroup.
-* 
-* <p>
-* NOTE: This property is made public in order to allow users to change 
-* the default values of configuration properties. Users should not 
-* modify the key string, unless they are overriding the Calendar implementation
-* </p>
-*
-* @property YAHOO.widget.CalendarGroup.DEFAULT_CONFIG
-* @static
-* @type Object An object with key/value pairs, the key being the 
-* uppercase configuration property name and the value being an objec 
-* literal with a key string property, and a value property, specifying the 
-* default value of the property 
-*/
-
-/**
-* The set of default Config property keys and values for the CalendarGroup
-* @property YAHOO.widget.CalendarGroup._DEFAULT_CONFIG
-* @deprecated Made public. See the public DEFAULT_CONFIG property for details
-* @private
-* @static
-* @type Object
-*/
-CalendarGroup.DEFAULT_CONFIG = CalendarGroup._DEFAULT_CONFIG = Calendar.DEFAULT_CONFIG;
-CalendarGroup.DEFAULT_CONFIG.PAGES = {key:"pages", value:2};
-
-var DEF_CFG = CalendarGroup.DEFAULT_CONFIG;
-
-CalendarGroup.prototype = {
-
-    /**
-    * Initializes the calendar group. All subclasses must call this method in order for the
-    * group to be initialized properly.
-    * @method init
-    * @param {String} id optional The id of the table element that will represent the CalendarGroup widget. As of 2.4.0, this argument is optional.
-    * @param {String | HTMLElement} container The id of the container div element that will wrap the CalendarGroup table, or a reference to a DIV element which exists in the document.
-    * @param {Object} config optional The configuration object containing the initial configuration values for the CalendarGroup.
-    */
-    init : function(id, container, config) {
-
-        // Normalize 2.4.0, pre 2.4.0 args
-        var nArgs = this._parseArgs(arguments);
-
-        id = nArgs.id;
-        container = nArgs.container;
-        config = nArgs.config;
-
-        this.oDomContainer = Dom.get(container);
-        if (!this.oDomContainer) { this.logger.log("Container not found in document.", "error"); }
-
-        if (!this.oDomContainer.id) {
-            this.oDomContainer.id = Dom.generateId();
-        }
-        if (!id) {
-            id = this.oDomContainer.id + "_t";
-        }
-
-        /**
-        * The unique id associated with the CalendarGroup
-        * @property id
-        * @type String
-        */
-        this.id = id;
-
-        /**
-        * The unique id associated with the CalendarGroup container
-        * @property containerId
-        * @type String
-        */
-        this.containerId = this.oDomContainer.id;
-
-        this.logger = new YAHOO.widget.LogWriter("CalendarGroup " + this.id);
-        this.initEvents();
-        this.initStyles();
-
-        /**
-        * The collection of Calendar pages contained within the CalendarGroup
-        * @property pages
-        * @type YAHOO.widget.Calendar[]
-        */
-        this.pages = [];
-
-        Dom.addClass(this.oDomContainer, CalendarGroup.CSS_CONTAINER);
-        Dom.addClass(this.oDomContainer, CalendarGroup.CSS_MULTI_UP);
-
-        /**
-        * The Config object used to hold the configuration variables for the CalendarGroup
-        * @property cfg
-        * @type YAHOO.util.Config
-        */
-        this.cfg = new YAHOO.util.Config(this);
-
-        /**
-        * The local object which contains the CalendarGroup's options
-        * @property Options
-        * @type Object
-        */
-        this.Options = {};
-
-        /**
-        * The local object which contains the CalendarGroup's locale settings
-        * @property Locale
-        * @type Object
-        */
-        this.Locale = {};
-
-        this.setupConfig();
-
-        if (config) {
-            this.cfg.applyConfig(config, true);
-        }
-
-        this.cfg.fireQueue();
-
-        // OPERA HACK FOR MISWRAPPED FLOATS
-        if (YAHOO.env.ua.opera){
-            this.renderEvent.subscribe(this._fixWidth, this, true);
-            this.showEvent.subscribe(this._fixWidth, this, true);
-        }
-
-        this.logger.log("Initialized " + this.pages.length + "-page CalendarGroup", "info");
-    },
-
-    setupConfig : function() {
-
-        var cfg = this.cfg;
-
-        /**
-        * The number of pages to include in the CalendarGroup. This value can only be set once, in the CalendarGroup's constructor arguments.
-        * @config pages
-        * @type Number
-        * @default 2
-        */
-        cfg.addProperty(DEF_CFG.PAGES.key, { value:DEF_CFG.PAGES.value, validator:cfg.checkNumber, handler:this.configPages } );
-
-        /**
-        * The positive or negative year offset from the Gregorian calendar year (assuming a January 1st rollover) to 
-        * be used when displaying or parsing dates.  NOTE: All JS Date objects returned by methods, or expected as input by
-        * methods will always represent the Gregorian year, in order to maintain date/month/week values.
-        *
-        * @config year_offset
-        * @type Number
-        * @default 0
-        */
-        cfg.addProperty(DEF_CFG.YEAR_OFFSET.key, { value:DEF_CFG.YEAR_OFFSET.value, handler: this.delegateConfig, supercedes:DEF_CFG.YEAR_OFFSET.supercedes, suppressEvent:true } );
-
-        /**
-        * The date to use to represent "Today".
-        *
-        * @config today
-        * @type Date
-        * @default Today's date
-        */
-        cfg.addProperty(DEF_CFG.TODAY.key, { value: new Date(DEF_CFG.TODAY.value.getTime()), supercedes:DEF_CFG.TODAY.supercedes, handler: this.configToday, suppressEvent:false } );
-
-        /**
-        * The month/year representing the current visible Calendar date (mm/yyyy)
-        * @config pagedate
-        * @type String | Date
-        * @default Today's date
-        */
-        cfg.addProperty(DEF_CFG.PAGEDATE.key, { value: DEF_CFG.PAGEDATE.value || new Date(DEF_CFG.TODAY.value.getTime()), handler:this.configPageDate } );
-
-        /**
-        * The date or range of dates representing the current Calendar selection
-        *
-        * @config selected
-        * @type String
-        * @default []
-        */
-        cfg.addProperty(DEF_CFG.SELECTED.key, { value:[], handler:this.configSelected } );
-
-        /**
-        * The title to display above the CalendarGroup's month header
-        * @config title
-        * @type String
-        * @default ""
-        */
-        cfg.addProperty(DEF_CFG.TITLE.key, { value:DEF_CFG.TITLE.value, handler:this.configTitle } );
-
-        /**
-        * Whether or not a close button should be displayed for this CalendarGroup
-        * @config close
-        * @type Boolean
-        * @default false
-        */
-        cfg.addProperty(DEF_CFG.CLOSE.key, { value:DEF_CFG.CLOSE.value, handler:this.configClose } );
-
-        /**
-        * Whether or not an iframe shim should be placed under the Calendar to prevent select boxes from bleeding through in Internet Explorer 6 and below.
-        * This property is enabled by default for IE6 and below. It is disabled by default for other browsers for performance reasons, but can be 
-        * enabled if required.
-        * 
-        * @config iframe
-        * @type Boolean
-        * @default true for IE6 and below, false for all other browsers
-        */
-        cfg.addProperty(DEF_CFG.IFRAME.key, { value:DEF_CFG.IFRAME.value, handler:this.configIframe, validator:cfg.checkBoolean } );
-
-        /**
-        * The minimum selectable date in the current Calendar (mm/dd/yyyy)
-        * @config mindate
-        * @type String | Date
-        * @default null
-        */
-        cfg.addProperty(DEF_CFG.MINDATE.key, { value:DEF_CFG.MINDATE.value, handler:this.delegateConfig } );
-
-        /**
-        * The maximum selectable date in the current Calendar (mm/dd/yyyy)
-        * @config maxdate
-        * @type String | Date
-        * @default null
-        */
-        cfg.addProperty(DEF_CFG.MAXDATE.key, { value:DEF_CFG.MAXDATE.value, handler:this.delegateConfig  } );
-
-        // Options properties
-
-        /**
-        * True if the Calendar should allow multiple selections. False by default.
-        * @config MULTI_SELECT
-        * @type Boolean
-        * @default false
-        */
-        cfg.addProperty(DEF_CFG.MULTI_SELECT.key, { value:DEF_CFG.MULTI_SELECT.value, handler:this.delegateConfig, validator:cfg.checkBoolean } );
-
-        /**
-        * The weekday the week begins on. Default is 0 (Sunday).
-        * @config START_WEEKDAY
-        * @type number
-        * @default 0
-        */ 
-        cfg.addProperty(DEF_CFG.START_WEEKDAY.key, { value:DEF_CFG.START_WEEKDAY.value, handler:this.delegateConfig, validator:cfg.checkNumber  } );
-        
-        /**
-        * True if the Calendar should show weekday labels. True by default.
-        * @config SHOW_WEEKDAYS
-        * @type Boolean
-        * @default true
-        */ 
-        cfg.addProperty(DEF_CFG.SHOW_WEEKDAYS.key, { value:DEF_CFG.SHOW_WEEKDAYS.value, handler:this.delegateConfig, validator:cfg.checkBoolean } );
-        
-        /**
-        * True if the Calendar should show week row headers. False by default.
-        * @config SHOW_WEEK_HEADER
-        * @type Boolean
-        * @default false
-        */ 
-        cfg.addProperty(DEF_CFG.SHOW_WEEK_HEADER.key,{ value:DEF_CFG.SHOW_WEEK_HEADER.value, handler:this.delegateConfig, validator:cfg.checkBoolean } );
-        
-        /**
-        * True if the Calendar should show week row footers. False by default.
-        * @config SHOW_WEEK_FOOTER
-        * @type Boolean
-        * @default false
-        */
-        cfg.addProperty(DEF_CFG.SHOW_WEEK_FOOTER.key,{ value:DEF_CFG.SHOW_WEEK_FOOTER.value, handler:this.delegateConfig, validator:cfg.checkBoolean } );
-        
-        /**
-        * True if the Calendar should suppress weeks that are not a part of the current month. False by default.
-        * @config HIDE_BLANK_WEEKS
-        * @type Boolean
-        * @default false
-        */  
-        cfg.addProperty(DEF_CFG.HIDE_BLANK_WEEKS.key,{ value:DEF_CFG.HIDE_BLANK_WEEKS.value, handler:this.delegateConfig, validator:cfg.checkBoolean } );
-        
-        /**
-        * The image that should be used for the left navigation arrow.
-        * @config NAV_ARROW_LEFT
-        * @type String
-        * @deprecated You can customize the image by overriding the default CSS class for the left arrow - "calnavleft"
-        * @default null
-        */  
-        cfg.addProperty(DEF_CFG.NAV_ARROW_LEFT.key, { value:DEF_CFG.NAV_ARROW_LEFT.value, handler:this.delegateConfig } );
-        
-        /**
-        * The image that should be used for the right navigation arrow.
-        * @config NAV_ARROW_RIGHT
-        * @type String
-        * @deprecated You can customize the image by overriding the default CSS class for the right arrow - "calnavright"
-        * @default null
-        */  
-        cfg.addProperty(DEF_CFG.NAV_ARROW_RIGHT.key, { value:DEF_CFG.NAV_ARROW_RIGHT.value, handler:this.delegateConfig } );
-    
-        // Locale properties
-        
-        /**
-        * The short month labels for the current locale.
-        * @config MONTHS_SHORT
-        * @type String[]
-        * @default ["Jan", "Feb", "Mar", "Apr", "May", "Jun", "Jul", "Aug", "Sep", "Oct", "Nov", "Dec"]
-        */
-        cfg.addProperty(DEF_CFG.MONTHS_SHORT.key, { value:DEF_CFG.MONTHS_SHORT.value, handler:this.delegateConfig } );
-        
-        /**
-        * The long month labels for the current locale.
-        * @config MONTHS_LONG
-        * @type String[]
-        * @default ["January", "February", "March", "April", "May", "June", "July", "August", "September", "October", "November", "December"
-        */  
-        cfg.addProperty(DEF_CFG.MONTHS_LONG.key,  { value:DEF_CFG.MONTHS_LONG.value, handler:this.delegateConfig } );
-        
-        /**
-        * The 1-character weekday labels for the current locale.
-        * @config WEEKDAYS_1CHAR
-        * @type String[]
-        * @default ["S", "M", "T", "W", "T", "F", "S"]
-        */  
-        cfg.addProperty(DEF_CFG.WEEKDAYS_1CHAR.key, { value:DEF_CFG.WEEKDAYS_1CHAR.value, handler:this.delegateConfig } );
-        
-        /**
-        * The short weekday labels for the current locale.
-        * @config WEEKDAYS_SHORT
-        * @type String[]
-        * @default ["Su", "Mo", "Tu", "We", "Th", "Fr", "Sa"]
-        */  
-        cfg.addProperty(DEF_CFG.WEEKDAYS_SHORT.key, { value:DEF_CFG.WEEKDAYS_SHORT.value, handler:this.delegateConfig } );
-        
-        /**
-        * The medium weekday labels for the current locale.
-        * @config WEEKDAYS_MEDIUM
-        * @type String[]
-        * @default ["Sun", "Mon", "Tue", "Wed", "Thu", "Fri", "Sat"]
-        */  
-        cfg.addProperty(DEF_CFG.WEEKDAYS_MEDIUM.key, { value:DEF_CFG.WEEKDAYS_MEDIUM.value, handler:this.delegateConfig } );
-        
-        /**
-        * The long weekday labels for the current locale.
-        * @config WEEKDAYS_LONG
-        * @type String[]
-        * @default ["Sunday", "Monday", "Tuesday", "Wednesday", "Thursday", "Friday", "Saturday"]
-        */  
-        cfg.addProperty(DEF_CFG.WEEKDAYS_LONG.key, { value:DEF_CFG.WEEKDAYS_LONG.value, handler:this.delegateConfig } );
-    
-        /**
-        * The setting that determines which length of month labels should be used. Possible values are "short" and "long".
-        * @config LOCALE_MONTHS
-        * @type String
-        * @default "long"
-        */
-        cfg.addProperty(DEF_CFG.LOCALE_MONTHS.key, { value:DEF_CFG.LOCALE_MONTHS.value, handler:this.delegateConfig } );
-    
-        /**
-        * The setting that determines which length of weekday labels should be used. Possible values are "1char", "short", "medium", and "long".
-        * @config LOCALE_WEEKDAYS
-        * @type String
-        * @default "short"
-        */ 
-        cfg.addProperty(DEF_CFG.LOCALE_WEEKDAYS.key, { value:DEF_CFG.LOCALE_WEEKDAYS.value, handler:this.delegateConfig } );
-    
-        /**
-        * The value used to delimit individual dates in a date string passed to various Calendar functions.
-        * @config DATE_DELIMITER
-        * @type String
-        * @default ","
-        */
-        cfg.addProperty(DEF_CFG.DATE_DELIMITER.key,  { value:DEF_CFG.DATE_DELIMITER.value, handler:this.delegateConfig } );
-    
-        /**
-        * The value used to delimit date fields in a date string passed to various Calendar functions.
-        * @config DATE_FIELD_DELIMITER
-        * @type String
-        * @default "/"
-        */ 
-        cfg.addProperty(DEF_CFG.DATE_FIELD_DELIMITER.key,{ value:DEF_CFG.DATE_FIELD_DELIMITER.value, handler:this.delegateConfig } );
-    
-        /**
-        * The value used to delimit date ranges in a date string passed to various Calendar functions.
-        * @config DATE_RANGE_DELIMITER
-        * @type String
-        * @default "-"
-        */
-        cfg.addProperty(DEF_CFG.DATE_RANGE_DELIMITER.key,{ value:DEF_CFG.DATE_RANGE_DELIMITER.value, handler:this.delegateConfig } );
-    
-        /**
-        * The position of the month in a month/year date string
-        * @config MY_MONTH_POSITION
-        * @type Number
-        * @default 1
-        */
-        cfg.addProperty(DEF_CFG.MY_MONTH_POSITION.key, { value:DEF_CFG.MY_MONTH_POSITION.value, handler:this.delegateConfig, validator:cfg.checkNumber } );
-        
-        /**
-        * The position of the year in a month/year date string
-        * @config MY_YEAR_POSITION
-        * @type Number
-        * @default 2
-        */ 
-        cfg.addProperty(DEF_CFG.MY_YEAR_POSITION.key, { value:DEF_CFG.MY_YEAR_POSITION.value, handler:this.delegateConfig, validator:cfg.checkNumber } );
-        
-        /**
-        * The position of the month in a month/day date string
-        * @config MD_MONTH_POSITION
-        * @type Number
-        * @default 1
-        */ 
-        cfg.addProperty(DEF_CFG.MD_MONTH_POSITION.key, { value:DEF_CFG.MD_MONTH_POSITION.value, handler:this.delegateConfig, validator:cfg.checkNumber } );
-        
-        /**
-        * The position of the day in a month/year date string
-        * @config MD_DAY_POSITION
-        * @type Number
-        * @default 2
-        */ 
-        cfg.addProperty(DEF_CFG.MD_DAY_POSITION.key,  { value:DEF_CFG.MD_DAY_POSITION.value, handler:this.delegateConfig, validator:cfg.checkNumber } );
-        
-        /**
-        * The position of the month in a month/day/year date string
-        * @config MDY_MONTH_POSITION
-        * @type Number
-        * @default 1
-        */ 
-        cfg.addProperty(DEF_CFG.MDY_MONTH_POSITION.key, { value:DEF_CFG.MDY_MONTH_POSITION.value, handler:this.delegateConfig, validator:cfg.checkNumber } );
-        
-        /**
-        * The position of the day in a month/day/year date string
-        * @config MDY_DAY_POSITION
-        * @type Number
-        * @default 2
-        */ 
-        cfg.addProperty(DEF_CFG.MDY_DAY_POSITION.key, { value:DEF_CFG.MDY_DAY_POSITION.value, handler:this.delegateConfig, validator:cfg.checkNumber } );
-        
-        /**
-        * The position of the year in a month/day/year date string
-        * @config MDY_YEAR_POSITION
-        * @type Number
-        * @default 3
-        */ 
-        cfg.addProperty(DEF_CFG.MDY_YEAR_POSITION.key, { value:DEF_CFG.MDY_YEAR_POSITION.value, handler:this.delegateConfig, validator:cfg.checkNumber } );
-    
-        /**
-        * The position of the month in the month year label string used as the Calendar header
-        * @config MY_LABEL_MONTH_POSITION
-        * @type Number
-        * @default 1
-        */
-        cfg.addProperty(DEF_CFG.MY_LABEL_MONTH_POSITION.key, { value:DEF_CFG.MY_LABEL_MONTH_POSITION.value, handler:this.delegateConfig, validator:cfg.checkNumber } );
-    
-        /**
-        * The position of the year in the month year label string used as the Calendar header
-        * @config MY_LABEL_YEAR_POSITION
-        * @type Number
-        * @default 2
-        */
-        cfg.addProperty(DEF_CFG.MY_LABEL_YEAR_POSITION.key, { value:DEF_CFG.MY_LABEL_YEAR_POSITION.value, handler:this.delegateConfig, validator:cfg.checkNumber } );
-
-        /**
-        * The suffix used after the month when rendering the Calendar header
-        * @config MY_LABEL_MONTH_SUFFIX
-        * @type String
-        * @default " "
-        */
-        cfg.addProperty(DEF_CFG.MY_LABEL_MONTH_SUFFIX.key, { value:DEF_CFG.MY_LABEL_MONTH_SUFFIX.value, handler:this.delegateConfig } );
-        
-        /**
-        * The suffix used after the year when rendering the Calendar header
-        * @config MY_LABEL_YEAR_SUFFIX
-        * @type String
-        * @default ""
-        */
-        cfg.addProperty(DEF_CFG.MY_LABEL_YEAR_SUFFIX.key, { value:DEF_CFG.MY_LABEL_YEAR_SUFFIX.value, handler:this.delegateConfig } );
-
-        /**
-        * Configuration for the Month Year Navigation UI. By default it is disabled
-        * @config NAV
-        * @type Object
-        * @default null
-        */
-        cfg.addProperty(DEF_CFG.NAV.key, { value:DEF_CFG.NAV.value, handler:this.configNavigator } );
-
-        /**
-         * The map of UI strings which the CalendarGroup UI uses.
-         *
-         * @config strings
-         * @type {Object}
-         * @default An object with the properties shown below:
-         *     <dl>
-         *         <dt>previousMonth</dt><dd><em>String</em> : The string to use for the "Previous Month" navigation UI. Defaults to "Previous Month".</dd>
-         *         <dt>nextMonth</dt><dd><em>String</em> : The string to use for the "Next Month" navigation UI. Defaults to "Next Month".</dd>
-         *         <dt>close</dt><dd><em>String</em> : The string to use for the close button label. Defaults to "Close".</dd>
-         *     </dl>
-         */
-        cfg.addProperty(DEF_CFG.STRINGS.key, { 
-            value:DEF_CFG.STRINGS.value, 
-            handler:this.configStrings, 
-            validator: function(val) {
-                return Lang.isObject(val);
-            },
-            supercedes: DEF_CFG.STRINGS.supercedes
-        });
-    },
-
-    /**
-    * Initializes CalendarGroup's built-in CustomEvents
-    * @method initEvents
-    */
-    initEvents : function() {
-
-        var me = this,
-            strEvent = "Event",
-            CE = YAHOO.util.CustomEvent;
-
-        /**
-        * Proxy subscriber to subscribe to the CalendarGroup's child Calendars' CustomEvents
-        * @method sub
-        * @private
-        * @param {Function} fn The function to subscribe to this CustomEvent
-        * @param {Object} obj The CustomEvent's scope object
-        * @param {Boolean} bOverride Whether or not to apply scope correction
-        */
-        var sub = function(fn, obj, bOverride) {
-            for (var p=0;p<me.pages.length;++p) {
-                var cal = me.pages[p];
-                cal[this.type + strEvent].subscribe(fn, obj, bOverride);
-            }
-        };
-
-        /**
-        * Proxy unsubscriber to unsubscribe from the CalendarGroup's child Calendars' CustomEvents
-        * @method unsub
-        * @private
-        * @param {Function} fn The function to subscribe to this CustomEvent
-        * @param {Object} obj The CustomEvent's scope object
-        */
-        var unsub = function(fn, obj) {
-            for (var p=0;p<me.pages.length;++p) {
-                var cal = me.pages[p];
-                cal[this.type + strEvent].unsubscribe(fn, obj);
-            }
-        };
-
-        var defEvents = Calendar._EVENT_TYPES;
-
-        /**
-        * Fired before a date selection is made
-        * @event beforeSelectEvent
-        */
-        me.beforeSelectEvent = new CE(defEvents.BEFORE_SELECT);
-        me.beforeSelectEvent.subscribe = sub; me.beforeSelectEvent.unsubscribe = unsub;
-
-        /**
-        * Fired when a date selection is made
-        * @event selectEvent
-        * @param {Array} Array of Date field arrays in the format [YYYY, MM, DD].
-        */
-        me.selectEvent = new CE(defEvents.SELECT); 
-        me.selectEvent.subscribe = sub; me.selectEvent.unsubscribe = unsub;
-
-        /**
-        * Fired before a date or set of dates is deselected
-        * @event beforeDeselectEvent
-        */
-        me.beforeDeselectEvent = new CE(defEvents.BEFORE_DESELECT); 
-        me.beforeDeselectEvent.subscribe = sub; me.beforeDeselectEvent.unsubscribe = unsub;
-
-        /**
-        * Fired when a date or set of dates has been deselected
-        * @event deselectEvent
-        * @param {Array} Array of Date field arrays in the format [YYYY, MM, DD].
-        */
-        me.deselectEvent = new CE(defEvents.DESELECT); 
-        me.deselectEvent.subscribe = sub; me.deselectEvent.unsubscribe = unsub;
-        
-        /**
-        * Fired when the Calendar page is changed
-        * @event changePageEvent
-        */
-        me.changePageEvent = new CE(defEvents.CHANGE_PAGE); 
-        me.changePageEvent.subscribe = sub; me.changePageEvent.unsubscribe = unsub;
-
-        /**
-        * Fired before the Calendar is rendered
-        * @event beforeRenderEvent
-        */
-        me.beforeRenderEvent = new CE(defEvents.BEFORE_RENDER);
-        me.beforeRenderEvent.subscribe = sub; me.beforeRenderEvent.unsubscribe = unsub;
-    
-        /**
-        * Fired when the Calendar is rendered
-        * @event renderEvent
-        */
-        me.renderEvent = new CE(defEvents.RENDER);
-        me.renderEvent.subscribe = sub; me.renderEvent.unsubscribe = unsub;
-    
-        /**
-        * Fired when the Calendar is reset
-        * @event resetEvent
-        */
-        me.resetEvent = new CE(defEvents.RESET); 
-        me.resetEvent.subscribe = sub; me.resetEvent.unsubscribe = unsub;
-    
-        /**
-        * Fired when the Calendar is cleared
-        * @event clearEvent
-        */
-        me.clearEvent = new CE(defEvents.CLEAR);
-        me.clearEvent.subscribe = sub; me.clearEvent.unsubscribe = unsub;
-
-        /**
-        * Fired just before the CalendarGroup is to be shown
-        * @event beforeShowEvent
-        */
-        me.beforeShowEvent = new CE(defEvents.BEFORE_SHOW);
-    
-        /**
-        * Fired after the CalendarGroup is shown
-        * @event showEvent
-        */
-        me.showEvent = new CE(defEvents.SHOW);
-    
-        /**
-        * Fired just before the CalendarGroup is to be hidden
-        * @event beforeHideEvent
-        */
-        me.beforeHideEvent = new CE(defEvents.BEFORE_HIDE);
-    
-        /**
-        * Fired after the CalendarGroup is hidden
-        * @event hideEvent
-        */
-        me.hideEvent = new CE(defEvents.HIDE);
-
-        /**
-        * Fired just before the CalendarNavigator is to be shown
-        * @event beforeShowNavEvent
-        */
-        me.beforeShowNavEvent = new CE(defEvents.BEFORE_SHOW_NAV);
-    
-        /**
-        * Fired after the CalendarNavigator is shown
-        * @event showNavEvent
-        */
-        me.showNavEvent = new CE(defEvents.SHOW_NAV);
-    
-        /**
-        * Fired just before the CalendarNavigator is to be hidden
-        * @event beforeHideNavEvent
-        */
-        me.beforeHideNavEvent = new CE(defEvents.BEFORE_HIDE_NAV);
-
-        /**
-        * Fired after the CalendarNavigator is hidden
-        * @event hideNavEvent
-        */
-        me.hideNavEvent = new CE(defEvents.HIDE_NAV);
-
-        /**
-        * Fired just before the CalendarNavigator is to be rendered
-        * @event beforeRenderNavEvent
-        */
-        me.beforeRenderNavEvent = new CE(defEvents.BEFORE_RENDER_NAV);
-
-        /**
-        * Fired after the CalendarNavigator is rendered
-        * @event renderNavEvent
-        */
-        me.renderNavEvent = new CE(defEvents.RENDER_NAV);
-
-        /**
-        * Fired just before the CalendarGroup is to be destroyed
-        * @event beforeDestroyEvent
-        */
-        me.beforeDestroyEvent = new CE(defEvents.BEFORE_DESTROY);
-
-        /**
-        * Fired after the CalendarGroup is destroyed. This event should be used
-        * for notification only. When this event is fired, important CalendarGroup instance
-        * properties, dom references and event listeners have already been 
-        * removed/dereferenced, and hence the CalendarGroup instance is not in a usable 
-        * state.
-        *
-        * @event destroyEvent
-        */
-        me.destroyEvent = new CE(defEvents.DESTROY);
-    },
-    
-    /**
-    * The default Config handler for the "pages" property
-    * @method configPages
-    * @param {String} type The CustomEvent type (usually the property name)
-    * @param {Object[]} args The CustomEvent arguments. For configuration handlers, args[0] will equal the newly applied value for the property.
-    * @param {Object} obj The scope object. For configuration handlers, this will usually equal the owner.
-    */
-    configPages : function(type, args, obj) {
-        var pageCount = args[0],
-            cfgPageDate = DEF_CFG.PAGEDATE.key,
-            sep = "_",
-            caldate,
-            firstPageDate = null,
-            groupCalClass = "groupcal",
-            firstClass = "first-of-type",
-            lastClass = "last-of-type";
-
-        for (var p=0;p<pageCount;++p) {
-            var calId = this.id + sep + p,
-                calContainerId = this.containerId + sep + p,
-                childConfig = this.cfg.getConfig();
-
-            childConfig.close = false;
-            childConfig.title = false;
-            childConfig.navigator = null;
-
-            if (p > 0) {
-                caldate = new Date(firstPageDate);
-                this._setMonthOnDate(caldate, caldate.getMonth() + p);
-                childConfig.pageDate = caldate;
-            }
-
-            var cal = this.constructChild(calId, calContainerId, childConfig);
-
-            Dom.removeClass(cal.oDomContainer, this.Style.CSS_SINGLE);
-            Dom.addClass(cal.oDomContainer, groupCalClass);
-
-            if (p===0) {
-                firstPageDate = cal.cfg.getProperty(cfgPageDate);
-                Dom.addClass(cal.oDomContainer, firstClass);
-            }
-    
-            if (p==(pageCount-1)) {
-                Dom.addClass(cal.oDomContainer, lastClass);
-            }
-    
-            cal.parent = this;
-            cal.index = p; 
-    
-            this.pages[this.pages.length] = cal;
-        }
-    },
-    
-    /**
-    * The default Config handler for the "pagedate" property
-    * @method configPageDate
-    * @param {String} type The CustomEvent type (usually the property name)
-    * @param {Object[]} args The CustomEvent arguments. For configuration handlers, args[0] will equal the newly applied value for the property.
-    * @param {Object} obj The scope object. For configuration handlers, this will usually equal the owner.
-    */
-    configPageDate : function(type, args, obj) {
-        var val = args[0],
-            firstPageDate;
-
-        var cfgPageDate = DEF_CFG.PAGEDATE.key;
-        
-        for (var p=0;p<this.pages.length;++p) {
-            var cal = this.pages[p];
-            if (p === 0) {
-                firstPageDate = cal._parsePageDate(val);
-                cal.cfg.setProperty(cfgPageDate, firstPageDate);
-            } else {
-                var pageDate = new Date(firstPageDate);
-                this._setMonthOnDate(pageDate, pageDate.getMonth() + p);
-                cal.cfg.setProperty(cfgPageDate, pageDate);
-            }
-        }
-    },
-    
-    /**
-    * The default Config handler for the CalendarGroup "selected" property
-    * @method configSelected
-    * @param {String} type The CustomEvent type (usually the property name)
-    * @param {Object[]} args The CustomEvent arguments. For configuration handlers, args[0] will equal the newly applied value for the property.
-    * @param {Object} obj The scope object. For configuration handlers, this will usually equal the owner.
-    */
-    configSelected : function(type, args, obj) {
-        var cfgSelected = DEF_CFG.SELECTED.key;
-        this.delegateConfig(type, args, obj);
-        var selected = (this.pages.length > 0) ? this.pages[0].cfg.getProperty(cfgSelected) : []; 
-        this.cfg.setProperty(cfgSelected, selected, true);
-    },
-
-    
-    /**
-    * Delegates a configuration property to the CustomEvents associated with the CalendarGroup's children
-    * @method delegateConfig
-    * @param {String} type The CustomEvent type (usually the property name)
-    * @param {Object[]} args The CustomEvent arguments. For configuration handlers, args[0] will equal the newly applied value for the property.
-    * @param {Object} obj The scope object. For configuration handlers, this will usually equal the owner.
-    */
-    delegateConfig : function(type, args, obj) {
-        var val = args[0];
-        var cal;
-    
-        for (var p=0;p<this.pages.length;p++) {
-            cal = this.pages[p];
-            cal.cfg.setProperty(type, val);
-        }
-    },
-
-    /**
-    * Adds a function to all child Calendars within this CalendarGroup.
-    * @method setChildFunction
-    * @param {String}  fnName  The name of the function
-    * @param {Function}  fn   The function to apply to each Calendar page object
-    */
-    setChildFunction : function(fnName, fn) {
-        var pageCount = this.cfg.getProperty(DEF_CFG.PAGES.key);
-    
-        for (var p=0;p<pageCount;++p) {
-            this.pages[p][fnName] = fn;
-        }
-    },
-
-    /**
-    * Calls a function within all child Calendars within this CalendarGroup.
-    * @method callChildFunction
-    * @param {String}  fnName  The name of the function
-    * @param {Array}  args  The arguments to pass to the function
-    */
-    callChildFunction : function(fnName, args) {
-        var pageCount = this.cfg.getProperty(DEF_CFG.PAGES.key);
-
-        for (var p=0;p<pageCount;++p) {
-            var page = this.pages[p];
-            if (page[fnName]) {
-                var fn = page[fnName];
-                fn.call(page, args);
-            }
-        } 
-    },
-
-    /**
-    * Constructs a child calendar. This method can be overridden if a subclassed version of the default
-    * calendar is to be used.
-    * @method constructChild
-    * @param {String} id   The id of the table element that will represent the calendar widget
-    * @param {String} containerId The id of the container div element that will wrap the calendar table
-    * @param {Object} config  The configuration object containing the Calendar's arguments
-    * @return {YAHOO.widget.Calendar} The YAHOO.widget.Calendar instance that is constructed
-    */
-    constructChild : function(id,containerId,config) {
-        var container = document.getElementById(containerId);
-        if (! container) {
-            container = document.createElement("div");
-            container.id = containerId;
-            this.oDomContainer.appendChild(container);
-        }
-        return new Calendar(id,containerId,config);
-    },
-    
-    /**
-    * Sets the calendar group's month explicitly. This month will be set into the first
-    * page of the multi-page calendar, and all other months will be iterated appropriately.
-    * @method setMonth
-    * @param {Number} month  The numeric month, from 0 (January) to 11 (December)
-    */
-    setMonth : function(month) {
-        month = parseInt(month, 10);
-        var currYear;
-
-        var cfgPageDate = DEF_CFG.PAGEDATE.key;
-
-        for (var p=0; p<this.pages.length; ++p) {
-            var cal = this.pages[p];
-            var pageDate = cal.cfg.getProperty(cfgPageDate);
-            if (p === 0) {
-                currYear = pageDate.getFullYear();
-            } else {
-                pageDate.setFullYear(currYear);
-            }
-            this._setMonthOnDate(pageDate, month+p); 
-            cal.cfg.setProperty(cfgPageDate, pageDate);
-        }
-    },
-
-    /**
-    * Sets the calendar group's year explicitly. This year will be set into the first
-    * page of the multi-page calendar, and all other months will be iterated appropriately.
-    * @method setYear
-    * @param {Number} year  The numeric 4-digit year
-    */
-    setYear : function(year) {
-    
-        var cfgPageDate = DEF_CFG.PAGEDATE.key;
-    
-        year = parseInt(year, 10);
-        for (var p=0;p<this.pages.length;++p) {
-            var cal = this.pages[p];
-            var pageDate = cal.cfg.getProperty(cfgPageDate);
-    
-            if ((pageDate.getMonth()+1) == 1 && p>0) {
-                year+=1;
-            }
-            cal.setYear(year);
-        }
-    },
-
-    /**
-    * Calls the render function of all child calendars within the group.
-    * @method render
-    */
-    render : function() {
-        this.renderHeader();
-        for (var p=0;p<this.pages.length;++p) {
-            var cal = this.pages[p];
-            cal.render();
-        }
-        this.renderFooter();
-    },
-
-    /**
-    * Selects a date or a collection of dates on the current calendar. This method, by default,
-    * does not call the render method explicitly. Once selection has completed, render must be 
-    * called for the changes to be reflected visually.
-    * @method select
-    * @param    {String/Date/Date[]}    date    The date string of dates to select in the current calendar. Valid formats are
-    *                               individual date(s) (12/24/2005,12/26/2005) or date range(s) (12/24/2005-1/1/2006).
-    *                               Multiple comma-delimited dates can also be passed to this method (12/24/2005,12/11/2005-12/13/2005).
-    *                               This method can also take a JavaScript Date object or an array of Date objects.
-    * @return {Date[]} Array of JavaScript Date objects representing all individual dates that are currently selected.
-    */
-    select : function(date) {
-        for (var p=0;p<this.pages.length;++p) {
-            var cal = this.pages[p];
-            cal.select(date);
-        }
-        return this.getSelectedDates();
-    },
-
-    /**
-    * Selects dates in the CalendarGroup based on the cell index provided. This method is used to select cells without having to do a full render. The selected style is applied to the cells directly.
-    * The value of the MULTI_SELECT Configuration attribute will determine the set of dates which get selected. 
-    * <ul>
-    *    <li>If MULTI_SELECT is false, selectCell will select the cell at the specified index for only the last displayed Calendar page.</li>
-    *    <li>If MULTI_SELECT is true, selectCell will select the cell at the specified index, on each displayed Calendar page.</li>
-    * </ul>
-    * @method selectCell
-    * @param {Number} cellIndex The index of the cell to be selected. 
-    * @return {Date[]} Array of JavaScript Date objects representing all individual dates that are currently selected.
-    */
-    selectCell : function(cellIndex) {
-        for (var p=0;p<this.pages.length;++p) {
-            var cal = this.pages[p];
-            cal.selectCell(cellIndex);
-        }
-        return this.getSelectedDates();
-    },
-    
-    /**
-    * Deselects a date or a collection of dates on the current calendar. This method, by default,
-    * does not call the render method explicitly. Once deselection has completed, render must be 
-    * called for the changes to be reflected visually.
-    * @method deselect
-    * @param {String/Date/Date[]} date The date string of dates to deselect in the current calendar. Valid formats are
-    *        individual date(s) (12/24/2005,12/26/2005) or date range(s) (12/24/2005-1/1/2006).
-    *        Multiple comma-delimited dates can also be passed to this method (12/24/2005,12/11/2005-12/13/2005).
-    *        This method can also take a JavaScript Date object or an array of Date objects. 
-    * @return {Date[]}   Array of JavaScript Date objects representing all individual dates that are currently selected.
-    */
-    deselect : function(date) {
-        for (var p=0;p<this.pages.length;++p) {
-            var cal = this.pages[p];
-            cal.deselect(date);
-        }
-        return this.getSelectedDates();
-    },
-    
-    /**
-    * Deselects all dates on the current calendar.
-    * @method deselectAll
-    * @return {Date[]}  Array of JavaScript Date objects representing all individual dates that are currently selected.
-    *      Assuming that this function executes properly, the return value should be an empty array.
-    *      However, the empty array is returned for the sake of being able to check the selection status
-    *      of the calendar.
-    */
-    deselectAll : function() {
-        for (var p=0;p<this.pages.length;++p) {
-            var cal = this.pages[p];
-            cal.deselectAll();
-        }
-        return this.getSelectedDates();
-    },
-
-    /**
-    * Deselects dates in the CalendarGroup based on the cell index provided. This method is used to select cells without having to do a full render. The selected style is applied to the cells directly.
-    * deselectCell will deselect the cell at the specified index on each displayed Calendar page.
-    *
-    * @method deselectCell
-    * @param {Number} cellIndex The index of the cell to deselect. 
-    * @return {Date[]} Array of JavaScript Date objects representing all individual dates that are currently selected.
-    */
-    deselectCell : function(cellIndex) {
-        for (var p=0;p<this.pages.length;++p) {
-            var cal = this.pages[p];
-            cal.deselectCell(cellIndex);
-        }
-        return this.getSelectedDates();
-    },
-
-    /**
-    * Resets the calendar widget to the originally selected month and year, and 
-    * sets the calendar to the initial selection(s).
-    * @method reset
-    */
-    reset : function() {
-        for (var p=0;p<this.pages.length;++p) {
-            var cal = this.pages[p];
-            cal.reset();
-        }
-    },
-
-    /**
-    * Clears the selected dates in the current calendar widget and sets the calendar
-    * to the current month and year.
-    * @method clear
-    */
-    clear : function() {
-        for (var p=0;p<this.pages.length;++p) {
-            var cal = this.pages[p];
-            cal.clear();
-        }
-
-        this.cfg.setProperty(DEF_CFG.SELECTED.key, []);
-        this.cfg.setProperty(DEF_CFG.PAGEDATE.key, new Date(this.pages[0].today.getTime()));
-        this.render();
-    },
-
-    /**
-    * Navigates to the next month page in the calendar widget.
-    * @method nextMonth
-    */
-    nextMonth : function() {
-        for (var p=0;p<this.pages.length;++p) {
-            var cal = this.pages[p];
-            cal.nextMonth();
-        }
-    },
-    
-    /**
-    * Navigates to the previous month page in the calendar widget.
-    * @method previousMonth
-    */
-    previousMonth : function() {
-        for (var p=this.pages.length-1;p>=0;--p) {
-            var cal = this.pages[p];
-            cal.previousMonth();
-        }
-    },
-    
-    /**
-    * Navigates to the next year in the currently selected month in the calendar widget.
-    * @method nextYear
-    */
-    nextYear : function() {
-        for (var p=0;p<this.pages.length;++p) {
-            var cal = this.pages[p];
-            cal.nextYear();
-        }
-    },
-
-    /**
-    * Navigates to the previous year in the currently selected month in the calendar widget.
-    * @method previousYear
-    */
-    previousYear : function() {
-        for (var p=0;p<this.pages.length;++p) {
-            var cal = this.pages[p];
-            cal.previousYear();
-        }
-    },
-
-    /**
-    * Gets the list of currently selected dates from the calendar.
-    * @return   An array of currently selected JavaScript Date objects.
-    * @type Date[]
-    */
-    getSelectedDates : function() { 
-        var returnDates = [];
-        var selected = this.cfg.getProperty(DEF_CFG.SELECTED.key);
-        for (var d=0;d<selected.length;++d) {
-            var dateArray = selected[d];
-
-            var date = DateMath.getDate(dateArray[0],dateArray[1]-1,dateArray[2]);
-            returnDates.push(date);
-        }
-
-        returnDates.sort( function(a,b) { return a-b; } );
-        return returnDates;
-    },
-
-    /**
-    * Adds a renderer to the render stack. The function reference passed to this method will be executed
-    * when a date cell matches the conditions specified in the date string for this renderer.
-    * @method addRenderer
-    * @param {String} sDates  A date string to associate with the specified renderer. Valid formats
-    *         include date (12/24/2005), month/day (12/24), and range (12/1/2004-1/1/2005)
-    * @param {Function} fnRender The function executed to render cells that match the render rules for this renderer.
-    */
-    addRenderer : function(sDates, fnRender) {
-        for (var p=0;p<this.pages.length;++p) {
-            var cal = this.pages[p];
-            cal.addRenderer(sDates, fnRender);
-        }
-    },
-
-    /**
-    * Adds a month to the render stack. The function reference passed to this method will be executed
-    * when a date cell matches the month passed to this method.
-    * @method addMonthRenderer
-    * @param {Number} month  The month (1-12) to associate with this renderer
-    * @param {Function} fnRender The function executed to render cells that match the render rules for this renderer.
-    */
-    addMonthRenderer : function(month, fnRender) {
-        for (var p=0;p<this.pages.length;++p) {
-            var cal = this.pages[p];
-            cal.addMonthRenderer(month, fnRender);
-        }
-    },
-
-    /**
-    * Adds a weekday to the render stack. The function reference passed to this method will be executed
-    * when a date cell matches the weekday passed to this method.
-    * @method addWeekdayRenderer
-    * @param {Number} weekday  The weekday (1-7) to associate with this renderer. 1=Sunday, 2=Monday etc.
-    * @param {Function} fnRender The function executed to render cells that match the render rules for this renderer.
-    */
-    addWeekdayRenderer : function(weekday, fnRender) {
-        for (var p=0;p<this.pages.length;++p) {
-            var cal = this.pages[p];
-            cal.addWeekdayRenderer(weekday, fnRender);
-        }
-    },
-
-    /**
-     * Removes all custom renderers added to the CalendarGroup through the addRenderer, addMonthRenderer and 
-     * addWeekRenderer methods. CalendarGroup's render method needs to be called to after removing renderers 
-     * to see the changes applied.
-     * 
-     * @method removeRenderers
-     */
-    removeRenderers : function() {
-        this.callChildFunction("removeRenderers");
-    },
-
-    /**
-    * Renders the header for the CalendarGroup.
-    * @method renderHeader
-    */
-    renderHeader : function() {
-        // EMPTY DEFAULT IMPL
-    },
-
-    /**
-    * Renders a footer for the 2-up calendar container. By default, this method is
-    * unimplemented.
-    * @method renderFooter
-    */
-    renderFooter : function() {
-        // EMPTY DEFAULT IMPL
-    },
-
-    /**
-    * Adds the designated number of months to the current calendar month, and sets the current
-    * calendar page date to the new month.
-    * @method addMonths
-    * @param {Number} count The number of months to add to the current calendar
-    */
-    addMonths : function(count) {
-        this.callChildFunction("addMonths", count);
-    },
-    
-    /**
-    * Subtracts the designated number of months from the current calendar month, and sets the current
-    * calendar page date to the new month.
-    * @method subtractMonths
-    * @param {Number} count The number of months to subtract from the current calendar
-    */
-    subtractMonths : function(count) {
-        this.callChildFunction("subtractMonths", count);
-    },
-
-    /**
-    * Adds the designated number of years to the current calendar, and sets the current
-    * calendar page date to the new month.
-    * @method addYears
-    * @param {Number} count The number of years to add to the current calendar
-    */
-    addYears : function(count) {
-        this.callChildFunction("addYears", count);
-    },
-
-    /**
-    * Subtcats the designated number of years from the current calendar, and sets the current
-    * calendar page date to the new month.
-    * @method subtractYears
-    * @param {Number} count The number of years to subtract from the current calendar
-    */
-    subtractYears : function(count) {
-        this.callChildFunction("subtractYears", count);
-    },
-
-    /**
-     * Returns the Calendar page instance which has a pagedate (month/year) matching the given date. 
-     * Returns null if no match is found.
-     * 
-     * @method getCalendarPage
-     * @param {Date} date The JavaScript Date object for which a Calendar page is to be found.
-     * @return {Calendar} The Calendar page instance representing the month to which the date 
-     * belongs.
-     */
-    getCalendarPage : function(date) {
-        var cal = null;
-        if (date) {
-            var y = date.getFullYear(),
-                m = date.getMonth();
-
-            var pages = this.pages;
-            for (var i = 0; i < pages.length; ++i) {
-                var pageDate = pages[i].cfg.getProperty("pagedate");
-                if (pageDate.getFullYear() === y && pageDate.getMonth() === m) {
-                    cal = pages[i];
-                    break;
-                }
-            }
-        }
-        return cal;
-    },
-
-    /**
-    * Sets the month on a Date object, taking into account year rollover if the month is less than 0 or greater than 11.
-    * The Date object passed in is modified. It should be cloned before passing it into this method if the original value needs to be maintained
-    * @method _setMonthOnDate
-    * @private
-    * @param {Date} date The Date object on which to set the month index
-    * @param {Number} iMonth The month index to set
-    */
-    _setMonthOnDate : function(date, iMonth) {
-        // Bug in Safari 1.3, 2.0 (WebKit build < 420), Date.setMonth does not work consistently if iMonth is not 0-11
-        if (YAHOO.env.ua.webkit && YAHOO.env.ua.webkit < 420 && (iMonth < 0 || iMonth > 11)) {
-            var newDate = DateMath.add(date, DateMath.MONTH, iMonth-date.getMonth());
-            date.setTime(newDate.getTime());
-        } else {
-            date.setMonth(iMonth);
-        }
-    },
-    
-    /**
-     * Fixes the width of the CalendarGroup container element, to account for miswrapped floats
-     * @method _fixWidth
-     * @private
-     */
-    _fixWidth : function() {
-        var w = 0;
-        for (var p=0;p<this.pages.length;++p) {
-            var cal = this.pages[p];
-            w += cal.oDomContainer.offsetWidth;
-        }
-        if (w > 0) {
-            this.oDomContainer.style.width = w + "px";
-        }
-    },
-    
-    /**
-    * Returns a string representation of the object.
-    * @method toString
-    * @return {String} A string representation of the CalendarGroup object.
-    */
-    toString : function() {
-        return "CalendarGroup " + this.id;
-    },
-
-    /**
-     * Destroys the CalendarGroup instance. The method will remove references
-     * to HTML elements, remove any event listeners added by the CalendarGroup.
-     * 
-     * It will also destroy the Config and CalendarNavigator instances created by the 
-     * CalendarGroup and the individual Calendar instances created for each page.
-     *
-     * @method destroy
-     */
-    destroy : function() {
-
-        if (this.beforeDestroyEvent.fire()) {
-
-            var cal = this;
-    
-            // Child objects
-            if (cal.navigator) {
-                cal.navigator.destroy();
-            }
-    
-            if (cal.cfg) {
-                cal.cfg.destroy();
-            }
-    
-            // DOM event listeners
-            Event.purgeElement(cal.oDomContainer, true);
-    
-            // Generated markup/DOM - Not removing the container DIV since we didn't create it.
-            Dom.removeClass(cal.oDomContainer, CalendarGroup.CSS_CONTAINER);
-            Dom.removeClass(cal.oDomContainer, CalendarGroup.CSS_MULTI_UP);
-            
-            for (var i = 0, l = cal.pages.length; i < l; i++) {
-                cal.pages[i].destroy();
-                cal.pages[i] = null;
-            }
-    
-            cal.oDomContainer.innerHTML = "";
-    
-            // JS-to-DOM references
-            cal.oDomContainer = null;
-    
-            this.destroyEvent.fire();
-        }
-    }
-};
-
-/**
-* CSS class representing the container for the calendar
-* @property YAHOO.widget.CalendarGroup.CSS_CONTAINER
-* @static
-* @final
-* @type String
-*/
-CalendarGroup.CSS_CONTAINER = "yui-calcontainer";
-
-/**
-* CSS class representing the container for the calendar
-* @property YAHOO.widget.CalendarGroup.CSS_MULTI_UP
-* @static
-* @final
-* @type String
-*/
-CalendarGroup.CSS_MULTI_UP = "multi";
-
-/**
-* CSS class representing the title for the 2-up calendar
-* @property YAHOO.widget.CalendarGroup.CSS_2UPTITLE
-* @static
-* @final
-* @type String
-*/
-CalendarGroup.CSS_2UPTITLE = "title";
-
-/**
-* CSS class representing the close icon for the 2-up calendar
-* @property YAHOO.widget.CalendarGroup.CSS_2UPCLOSE
-* @static
-* @final
-* @deprecated Along with Calendar.IMG_ROOT and NAV_ARROW_LEFT, NAV_ARROW_RIGHT configuration properties.
-*     Calendar's <a href="YAHOO.widget.Calendar.html#Style.CSS_CLOSE">Style.CSS_CLOSE</a> property now represents the CSS class used to render the close icon
-* @type String
-*/
-CalendarGroup.CSS_2UPCLOSE = "close-icon";
-
-YAHOO.lang.augmentProto(CalendarGroup, Calendar, "buildDayLabel",
-                                                 "buildMonthLabel",
-                                                 "renderOutOfBoundsDate",
-                                                 "renderRowHeader",
-                                                 "renderRowFooter",
-                                                 "renderCellDefault",
-                                                 "styleCellDefault",
-                                                 "renderCellStyleHighlight1",
-                                                 "renderCellStyleHighlight2",
-                                                 "renderCellStyleHighlight3",
-                                                 "renderCellStyleHighlight4",
-                                                 "renderCellStyleToday",
-                                                 "renderCellStyleSelected",
-                                                 "renderCellNotThisMonth",
-                                                 "renderBodyCellRestricted",
-                                                 "initStyles",
-                                                 "configTitle",
-                                                 "configClose",
-                                                 "configIframe",
-                                                 "configStrings",
-                                                 "configToday",
-                                                 "configNavigator",
-                                                 "createTitleBar",
-                                                 "createCloseButton",
-                                                 "removeTitleBar",
-                                                 "removeCloseButton",
-                                                 "hide",
-                                                 "show",
-                                                 "toDate",
-                                                 "_toDate",
-                                                 "_parseArgs",
-                                                 "browser");
-
-YAHOO.widget.CalGrp = CalendarGroup;
-YAHOO.widget.CalendarGroup = CalendarGroup;
-
-/**
-* @class YAHOO.widget.Calendar2up
-* @extends YAHOO.widget.CalendarGroup
-* @deprecated The old Calendar2up class is no longer necessary, since CalendarGroup renders in a 2up view by default.
-*/
-YAHOO.widget.Calendar2up = function(id, containerId, config) {
-    this.init(id, containerId, config);
-};
-
-YAHOO.extend(YAHOO.widget.Calendar2up, CalendarGroup);
-
-/**
-* @deprecated The old Calendar2up class is no longer necessary, since CalendarGroup renders in a 2up view by default.
-*/
-YAHOO.widget.Cal2up = YAHOO.widget.Calendar2up;
-
-})();
-/**
- * The CalendarNavigator is used along with a Calendar/CalendarGroup to 
- * provide a Month/Year popup navigation control, allowing the user to navigate 
- * to a specific month/year in the Calendar/CalendarGroup without having to 
- * scroll through months sequentially
- *
- * @namespace YAHOO.widget
- * @class CalendarNavigator
- * @constructor
- * @param {Calendar|CalendarGroup} cal The instance of the Calendar or CalendarGroup to which this CalendarNavigator should be attached.
- */
-YAHOO.widget.CalendarNavigator = function(cal) {
-    this.init(cal);
-};
-
-(function() {
-    // Setup static properties (inside anon fn, so that we can use shortcuts)
-    var CN = YAHOO.widget.CalendarNavigator;
-
-    /**
-     * YAHOO.widget.CalendarNavigator.CLASSES contains constants
-     * for the class values applied to the CalendarNaviatgator's 
-     * DOM elements
-     * @property YAHOO.widget.CalendarNavigator.CLASSES
-     * @type Object
-     * @static
-     */
-    CN.CLASSES = {
-        /**
-         * Class applied to the Calendar Navigator's bounding box
-         * @property YAHOO.widget.CalendarNavigator.CLASSES.NAV
-         * @type String
-         * @static
-         */
-        NAV :"yui-cal-nav",
-        /**
-         * Class applied to the Calendar/CalendarGroup's bounding box to indicate
-         * the Navigator is currently visible
-         * @property YAHOO.widget.CalendarNavigator.CLASSES.NAV_VISIBLE
-         * @type String
-         * @static
-         */
-        NAV_VISIBLE: "yui-cal-nav-visible",
-        /**
-         * Class applied to the Navigator mask's bounding box
-         * @property YAHOO.widget.CalendarNavigator.CLASSES.MASK
-         * @type String
-         * @static
-         */
-        MASK : "yui-cal-nav-mask",
-        /**
-         * Class applied to the year label/control bounding box
-         * @property YAHOO.widget.CalendarNavigator.CLASSES.YEAR
-         * @type String
-         * @static
-         */
-        YEAR : "yui-cal-nav-y",
-        /**
-         * Class applied to the month label/control bounding box
-         * @property YAHOO.widget.CalendarNavigator.CLASSES.MONTH
-         * @type String
-         * @static
-         */
-        MONTH : "yui-cal-nav-m",
-        /**
-         * Class applied to the submit/cancel button's bounding box
-         * @property YAHOO.widget.CalendarNavigator.CLASSES.BUTTONS
-         * @type String
-         * @static
-         */
-        BUTTONS : "yui-cal-nav-b",
-        /**
-         * Class applied to buttons wrapping element
-         * @property YAHOO.widget.CalendarNavigator.CLASSES.BUTTON
-         * @type String
-         * @static
-         */
-        BUTTON : "yui-cal-nav-btn",
-        /**
-         * Class applied to the validation error area's bounding box
-         * @property YAHOO.widget.CalendarNavigator.CLASSES.ERROR
-         * @type String
-         * @static
-         */
-        ERROR : "yui-cal-nav-e",
-        /**
-         * Class applied to the year input control
-         * @property YAHOO.widget.CalendarNavigator.CLASSES.YEAR_CTRL
-         * @type String
-         * @static
-         */
-        YEAR_CTRL : "yui-cal-nav-yc",
-        /**
-         * Class applied to the month input control
-         * @property YAHOO.widget.CalendarNavigator.CLASSES.MONTH_CTRL
-         * @type String
-         * @static
-         */
-        MONTH_CTRL : "yui-cal-nav-mc",
-        /**
-         * Class applied to controls with invalid data (e.g. a year input field with invalid an year)
-         * @property YAHOO.widget.CalendarNavigator.CLASSES.INVALID
-         * @type String
-         * @static
-         */
-        INVALID : "yui-invalid",
-        /**
-         * Class applied to default controls
-         * @property YAHOO.widget.CalendarNavigator.CLASSES.DEFAULT
-         * @type String
-         * @static
-         */
-        DEFAULT : "yui-default"
-    };
-
-    /**
-     * Object literal containing the default configuration values for the CalendarNavigator
-     * The configuration object is expected to follow the format below, with the properties being
-     * case sensitive.
-     * <dl>
-     * <dt>strings</dt>
-     * <dd><em>Object</em> :  An object with the properties shown below, defining the string labels to use in the Navigator's UI
-     *     <dl>
-     *         <dt>month</dt><dd><em>String</em> : The string to use for the month label. Defaults to "Month".</dd>
-     *         <dt>year</dt><dd><em>String</em> : The string to use for the year label. Defaults to "Year".</dd>
-     *         <dt>submit</dt><dd><em>String</em> : The string to use for the submit button label. Defaults to "Okay".</dd>
-     *         <dt>cancel</dt><dd><em>String</em> : The string to use for the cancel button label. Defaults to "Cancel".</dd>
-     *         <dt>invalidYear</dt><dd><em>String</em> : The string to use for invalid year values. Defaults to "Year needs to be a number".</dd>
-     *     </dl>
-     * </dd>
-     * <dt>monthFormat</dt><dd><em>String</em> : The month format to use. Either YAHOO.widget.Calendar.LONG, or YAHOO.widget.Calendar.SHORT. Defaults to YAHOO.widget.Calendar.LONG</dd>
-     * <dt>initialFocus</dt><dd><em>String</em> : Either "year" or "month" specifying which input control should get initial focus. Defaults to "year"</dd>
-     * </dl>
-     * @property DEFAULT_CONFIG
-     * @type Object
-     * @static
-     */
-    CN.DEFAULT_CONFIG = {
-        strings : {
-            month: "Month",
-            year: "Year",
-            submit: "Okay",
-            cancel: "Cancel",
-            invalidYear : "Year needs to be a number"
-        },
-        monthFormat: YAHOO.widget.Calendar.LONG,
-        initialFocus: "year"
-    };
-    
-    /**
-     * Object literal containing the default configuration values for the CalendarNavigator
-     * @property _DEFAULT_CFG
-     * @protected
-     * @deprecated Made public. See the public DEFAULT_CONFIG property
-     * @type Object
-     * @static
-     */
-    CN._DEFAULT_CFG = CN.DEFAULT_CONFIG;
-
-
-    /**
-     * The suffix added to the Calendar/CalendarGroup's ID, to generate
-     * a unique ID for the Navigator and it's bounding box.
-     * @property YAHOO.widget.CalendarNavigator.ID_SUFFIX
-     * @static
-     * @type String
-     * @final
-     */
-    CN.ID_SUFFIX = "_nav";
-    /**
-     * The suffix added to the Navigator's ID, to generate
-     * a unique ID for the month control.
-     * @property YAHOO.widget.CalendarNavigator.MONTH_SUFFIX
-     * @static
-     * @type String 
-     * @final
-     */
-    CN.MONTH_SUFFIX = "_month";
-    /**
-     * The suffix added to the Navigator's ID, to generate
-     * a unique ID for the year control.
-     * @property YAHOO.widget.CalendarNavigator.YEAR_SUFFIX
-     * @static
-     * @type String
-     * @final
-     */
-    CN.YEAR_SUFFIX = "_year";
-    /**
-     * The suffix added to the Navigator's ID, to generate
-     * a unique ID for the error bounding box.
-     * @property YAHOO.widget.CalendarNavigator.ERROR_SUFFIX
-     * @static
-     * @type String
-     * @final
-     */
-    CN.ERROR_SUFFIX = "_error";
-    /**
-     * The suffix added to the Navigator's ID, to generate
-     * a unique ID for the "Cancel" button.
-     * @property YAHOO.widget.CalendarNavigator.CANCEL_SUFFIX
-     * @static
-     * @type String
-     * @final
-     */
-    CN.CANCEL_SUFFIX = "_cancel";
-    /**
-     * The suffix added to the Navigator's ID, to generate
-     * a unique ID for the "Submit" button.
-     * @property YAHOO.widget.CalendarNavigator.SUBMIT_SUFFIX
-     * @static
-     * @type String
-     * @final
-     */
-    CN.SUBMIT_SUFFIX = "_submit";
-
-    /**
-     * The number of digits to which the year input control is to be limited.
-     * @property YAHOO.widget.CalendarNavigator.YR_MAX_DIGITS
-     * @static
-     * @type Number
-     */
-    CN.YR_MAX_DIGITS = 4;
-
-    /**
-     * The amount by which to increment the current year value,
-     * when the arrow up/down key is pressed on the year control
-     * @property YAHOO.widget.CalendarNavigator.YR_MINOR_INC
-     * @static
-     * @type Number
-     */
-    CN.YR_MINOR_INC = 1;
-
-    /**
-     * The amount by which to increment the current year value,
-     * when the page up/down key is pressed on the year control
-     * @property YAHOO.widget.CalendarNavigator.YR_MAJOR_INC
-     * @static
-     * @type Number
-     */
-    CN.YR_MAJOR_INC = 10;
-
-    /**
-     * Artificial delay (in ms) between the time the Navigator is hidden
-     * and the Calendar/CalendarGroup state is updated. Allows the user
-     * the see the Calendar/CalendarGroup page changing. If set to 0
-     * the Calendar/CalendarGroup page will be updated instantly
-     * @property YAHOO.widget.CalendarNavigator.UPDATE_DELAY
-     * @static
-     * @type Number
-     */
-    CN.UPDATE_DELAY = 50;
-
-    /**
-     * Regular expression used to validate the year input
-     * @property YAHOO.widget.CalendarNavigator.YR_PATTERN
-     * @static
-     * @type RegExp
-     */
-    CN.YR_PATTERN = /^\d+$/;
-    /**
-     * Regular expression used to trim strings
-     * @property YAHOO.widget.CalendarNavigator.TRIM
-     * @static
-     * @type RegExp
-     */
-    CN.TRIM = /^\s*(.*?)\s*$/;
-})();
-
-YAHOO.widget.CalendarNavigator.prototype = {
-
-    /**
-     * The unique ID for this CalendarNavigator instance
-     * @property id
-     * @type String
-     */
-    id : null,
-
-    /**
-     * The Calendar/CalendarGroup instance to which the navigator belongs
-     * @property cal
-     * @type {Calendar|CalendarGroup}
-     */
-    cal : null,
-
-    /**
-     * Reference to the HTMLElement used to render the navigator's bounding box
-     * @property navEl
-     * @type HTMLElement
-     */
-    navEl : null,
-
-    /**
-     * Reference to the HTMLElement used to render the navigator's mask
-     * @property maskEl
-     * @type HTMLElement
-     */
-    maskEl : null,
-
-    /**
-     * Reference to the HTMLElement used to input the year
-     * @property yearEl
-     * @type HTMLElement
-     */
-    yearEl : null,
-
-    /**
-     * Reference to the HTMLElement used to input the month
-     * @property monthEl
-     * @type HTMLElement
-     */
-    monthEl : null,
-
-    /**
-     * Reference to the HTMLElement used to display validation errors
-     * @property errorEl
-     * @type HTMLElement
-     */
-    errorEl : null,
-
-    /**
-     * Reference to the HTMLElement used to update the Calendar/Calendar group
-     * with the month/year values
-     * @property submitEl
-     * @type HTMLElement
-     */
-    submitEl : null,
-    
-    /**
-     * Reference to the HTMLElement used to hide the navigator without updating the 
-     * Calendar/Calendar group
-     * @property cancelEl
-     * @type HTMLElement
-     */
-    cancelEl : null,
-
-    /** 
-     * Reference to the first focusable control in the navigator (by default monthEl)
-     * @property firstCtrl
-     * @type HTMLElement
-     */
-    firstCtrl : null,
-    
-    /** 
-     * Reference to the last focusable control in the navigator (by default cancelEl)
-     * @property lastCtrl
-     * @type HTMLElement
-     */
-    lastCtrl : null,
-
-    /**
-     * The document containing the Calendar/Calendar group instance
-     * @protected
-     * @property _doc
-     * @type HTMLDocument
-     */
-    _doc : null,
-
-    /**
-     * Internal state property for the current year displayed in the navigator
-     * @protected
-     * @property _year
-     * @type Number
-     */
-    _year: null,
-    
-    /**
-     * Internal state property for the current month index displayed in the navigator
-     * @protected
-     * @property _month
-     * @type Number
-     */
-    _month: 0,
-
-    /**
-     * Private internal state property which indicates whether or not the 
-     * Navigator has been rendered.
-     * @private
-     * @property __rendered
-     * @type Boolean
-     */
-    __rendered: false,
-
-    /**
-     * Init lifecycle method called as part of construction
-     * 
-     * @method init
-     * @param {Calendar} cal The instance of the Calendar or CalendarGroup to which this CalendarNavigator should be attached
-     */
-    init : function(cal) {
-        var calBox = cal.oDomContainer;
-
-        this.cal = cal;
-        this.id = calBox.id + YAHOO.widget.CalendarNavigator.ID_SUFFIX;
-        this._doc = calBox.ownerDocument;
-
-        /**
-         * Private flag, to identify IE Quirks
-         * @private
-         * @property __isIEQuirks
-         */
-        var ie = YAHOO.env.ua.ie;
-        this.__isIEQuirks = (ie && ((ie <= 6) || (this._doc.compatMode == "BackCompat")));
-    },
-
-    /**
-     * Displays the navigator and mask, updating the input controls to reflect the 
-     * currently set month and year. The show method will invoke the render method
-     * if the navigator has not been renderered already, allowing for lazy rendering
-     * of the control.
-     * 
-     * The show method will fire the Calendar/CalendarGroup's beforeShowNav and showNav events
-     * 
-     * @method show
-     */
-    show : function() {
-        var CLASSES = YAHOO.widget.CalendarNavigator.CLASSES;
-
-        if (this.cal.beforeShowNavEvent.fire()) {
-            if (!this.__rendered) {
-                this.render();
-            }
-            this.clearErrors();
-
-            this._updateMonthUI();
-            this._updateYearUI();
-            this._show(this.navEl, true);
-
-            this.setInitialFocus();
-            this.showMask();
-
-            YAHOO.util.Dom.addClass(this.cal.oDomContainer, CLASSES.NAV_VISIBLE);
-            this.cal.showNavEvent.fire();
-        }
-    },
-
-    /**
-     * Hides the navigator and mask
-     * 
-     * The show method will fire the Calendar/CalendarGroup's beforeHideNav event and hideNav events
-     * @method hide
-     */
-    hide : function() {
-        var CLASSES = YAHOO.widget.CalendarNavigator.CLASSES;
-
-        if (this.cal.beforeHideNavEvent.fire()) {
-            this._show(this.navEl, false);
-            this.hideMask();
-            YAHOO.util.Dom.removeClass(this.cal.oDomContainer, CLASSES.NAV_VISIBLE);
-            this.cal.hideNavEvent.fire();
-        }
-    },
-    
-
-    /**
-     * Displays the navigator's mask element
-     * 
-     * @method showMask
-     */
-    showMask : function() {
-        this._show(this.maskEl, true);
-        if (this.__isIEQuirks) {
-            this._syncMask();
-        }
-    },
-
-    /**
-     * Hides the navigator's mask element
-     * 
-     * @method hideMask
-     */
-    hideMask : function() {
-        this._show(this.maskEl, false);
-    },
-
-    /**
-     * Returns the current month set on the navigator
-     * 
-     * Note: This may not be the month set in the UI, if 
-     * the UI contains an invalid value.
-     * 
-     * @method getMonth
-     * @return {Number} The Navigator's current month index
-     */
-    getMonth: function() {
-        return this._month;
-    },
-
-    /**
-     * Returns the current year set on the navigator
-     * 
-     * Note: This may not be the year set in the UI, if 
-     * the UI contains an invalid value.
-     * 
-     * @method getYear
-     * @return {Number} The Navigator's current year value
-     */
-    getYear: function() {
-        return this._year;
-    },
-
-    /**
-     * Sets the current month on the Navigator, and updates the UI
-     * 
-     * @method setMonth
-     * @param {Number} nMonth The month index, from 0 (Jan) through 11 (Dec).
-     */
-    setMonth : function(nMonth) {
-        if (nMonth >= 0 && nMonth < 12) {
-            this._month = nMonth;
-        }
-        this._updateMonthUI();
-    },
-
-    /**
-     * Sets the current year on the Navigator, and updates the UI. If the 
-     * provided year is invalid, it will not be set.
-     * 
-     * @method setYear
-     * @param {Number} nYear The full year value to set the Navigator to.
-     */
-    setYear : function(nYear) {
-        var yrPattern = YAHOO.widget.CalendarNavigator.YR_PATTERN;
-        if (YAHOO.lang.isNumber(nYear) && yrPattern.test(nYear+"")) {
-            this._year = nYear;
-        }
-        this._updateYearUI();
-    },
-
-    /**
-     * Renders the HTML for the navigator, adding it to the 
-     * document and attaches event listeners if it has not 
-     * already been rendered.
-     * 
-     * @method render
-     */
-    render: function() {
-        this.cal.beforeRenderNavEvent.fire();
-        if (!this.__rendered) {
-            this.createNav();
-            this.createMask();
-            this.applyListeners();
-            this.__rendered = true;
-        }
-        this.cal.renderNavEvent.fire();
-    },
-
-    /**
-     * Creates the navigator's containing HTMLElement, it's contents, and appends 
-     * the containg element to the Calendar/CalendarGroup's container.
-     * 
-     * @method createNav
-     */
-    createNav : function() {
-        var NAV = YAHOO.widget.CalendarNavigator;
-        var doc = this._doc;
-
-        var d = doc.createElement("div");
-        d.className = NAV.CLASSES.NAV;
-
-        var htmlBuf = this.renderNavContents([]);
-
-        d.innerHTML = htmlBuf.join('');
-        this.cal.oDomContainer.appendChild(d);
-
-        this.navEl = d;
-
-        this.yearEl = doc.getElementById(this.id + NAV.YEAR_SUFFIX);
-        this.monthEl = doc.getElementById(this.id + NAV.MONTH_SUFFIX);
-        this.errorEl = doc.getElementById(this.id + NAV.ERROR_SUFFIX);
-        this.submitEl = doc.getElementById(this.id + NAV.SUBMIT_SUFFIX);
-        this.cancelEl = doc.getElementById(this.id + NAV.CANCEL_SUFFIX);
-
-        if (YAHOO.env.ua.gecko && this.yearEl && this.yearEl.type == "text") {
-            // Avoid XUL error on focus, select [ https://bugzilla.mozilla.org/show_bug.cgi?id=236791, 
-            // supposedly fixed in 1.8.1, but there are reports of it still being around for methods other than blur ]
-            this.yearEl.setAttribute("autocomplete", "off");
-        }
-
-        this._setFirstLastElements();
-    },
-
-    /**
-     * Creates the Mask HTMLElement and appends it to the Calendar/CalendarGroups
-     * container.
-     * 
-     * @method createMask
-     */
-    createMask : function() {
-        var C = YAHOO.widget.CalendarNavigator.CLASSES;
-
-        var d = this._doc.createElement("div");
-        d.className = C.MASK;
-
-        this.cal.oDomContainer.appendChild(d);
-        this.maskEl = d;
-    },
-
-    /**
-     * Used to set the width/height of the mask in pixels to match the Calendar Container.
-     * Currently only used for IE6 or IE in quirks mode. The other A-Grade browser are handled using CSS (width/height 100%).
-     * <p>
-     * The method is also registered as an HTMLElement resize listener on the Calendars container element.
-     * </p>
-     * @protected
-     * @method _syncMask
-     */
-    _syncMask : function() {
-        var c = this.cal.oDomContainer;
-        if (c && this.maskEl) {
-            var r = YAHOO.util.Dom.getRegion(c);
-            YAHOO.util.Dom.setStyle(this.maskEl, "width", r.right - r.left + "px");
-            YAHOO.util.Dom.setStyle(this.maskEl, "height", r.bottom - r.top + "px");
-        }
-    },
-
-    /**
-     * Renders the contents of the navigator
-     * 
-     * @method renderNavContents
-     * 
-     * @param {Array} html The HTML buffer to append the HTML to.
-     * @return {Array} A reference to the buffer passed in.
-     */
-    renderNavContents : function(html) {
-        var NAV = YAHOO.widget.CalendarNavigator,
-            C = NAV.CLASSES,
-            h = html; // just to use a shorter name
-
-        h[h.length] = '<div class="' + C.MONTH + '">';
-        this.renderMonth(h);
-        h[h.length] = '</div>';
-        h[h.length] = '<div class="' + C.YEAR + '">';
-        this.renderYear(h);
-        h[h.length] = '</div>';
-        h[h.length] = '<div class="' + C.BUTTONS + '">';
-        this.renderButtons(h);
-        h[h.length] = '</div>';
-        h[h.length] = '<div class="' + C.ERROR + '" id="' + this.id + NAV.ERROR_SUFFIX + '"></div>';
-
-        return h;
-    },
-
-    /**
-     * Renders the month label and control for the navigator
-     * 
-     * @method renderNavContents
-     * @param {Array} html The HTML buffer to append the HTML to.
-     * @return {Array} A reference to the buffer passed in.
-     */
-    renderMonth : function(html) {
-        var NAV = YAHOO.widget.CalendarNavigator,
-            C = NAV.CLASSES;
-
-        var id = this.id + NAV.MONTH_SUFFIX,
-            mf = this.__getCfg("monthFormat"),
-            months = this.cal.cfg.getProperty((mf == YAHOO.widget.Calendar.SHORT) ? "MONTHS_SHORT" : "MONTHS_LONG"),
-            h = html;
-
-        if (months && months.length > 0) {
-            h[h.length] = '<label for="' + id + '">';
-            h[h.length] = this.__getCfg("month", true);
-            h[h.length] = '</label>';
-            h[h.length] = '<select name="' + id + '" id="' + id + '" class="' + C.MONTH_CTRL + '">';
-            for (var i = 0; i < months.length; i++) {
-                h[h.length] = '<option value="' + i + '">';
-                h[h.length] = months[i];
-                h[h.length] = '</option>';
-            }
-            h[h.length] = '</select>';
-        }
-        return h;
-    },
-
-    /**
-     * Renders the year label and control for the navigator
-     * 
-     * @method renderYear
-     * @param {Array} html The HTML buffer to append the HTML to.
-     * @return {Array} A reference to the buffer passed in.
-     */
-    renderYear : function(html) {
-        var NAV = YAHOO.widget.CalendarNavigator,
-            C = NAV.CLASSES;
-
-        var id = this.id + NAV.YEAR_SUFFIX,
-            size = NAV.YR_MAX_DIGITS,
-            h = html;
-
-        h[h.length] = '<label for="' + id + '">';
-        h[h.length] = this.__getCfg("year", true);
-        h[h.length] = '</label>';
-        h[h.length] = '<input type="text" name="' + id + '" id="' + id + '" class="' + C.YEAR_CTRL + '" maxlength="' + size + '"/>';
-        return h;
-    },
-
-    /**
-     * Renders the submit/cancel buttons for the navigator
-     * 
-     * @method renderButton
-     * @return {String} The HTML created for the Button UI
-     */
-    renderButtons : function(html) {
-        var C = YAHOO.widget.CalendarNavigator.CLASSES;
-        var h = html;
-
-        h[h.length] = '<span class="' + C.BUTTON + ' ' + C.DEFAULT + '">';
-        h[h.length] = '<button type="button" id="' + this.id + '_submit' + '">';
-        h[h.length] = this.__getCfg("submit", true);
-        h[h.length] = '</button>';
-        h[h.length] = '</span>';
-        h[h.length] = '<span class="' + C.BUTTON +'">';
-        h[h.length] = '<button type="button" id="' + this.id + '_cancel' + '">';
-        h[h.length] = this.__getCfg("cancel", true);
-        h[h.length] = '</button>';
-        h[h.length] = '</span>';
-
-        return h;
-    },
-
-    /**
-     * Attaches DOM event listeners to the rendered elements
-     * <p>
-     * The method will call applyKeyListeners, to setup keyboard specific 
-     * listeners
-     * </p>
-     * @method applyListeners
-     */
-    applyListeners : function() {
-        var E = YAHOO.util.Event;
-
-        function yearUpdateHandler() {
-            if (this.validate()) {
-                this.setYear(this._getYearFromUI());
-            }
-        }
-
-        function monthUpdateHandler() {
-            this.setMonth(this._getMonthFromUI());
-        }
-
-        E.on(this.submitEl, "click", this.submit, this, true);
-        E.on(this.cancelEl, "click", this.cancel, this, true);
-        E.on(this.yearEl, "blur", yearUpdateHandler, this, true);
-        E.on(this.monthEl, "change", monthUpdateHandler, this, true);
-
-        if (this.__isIEQuirks) {
-            YAHOO.util.Event.on(this.cal.oDomContainer, "resize", this._syncMask, this, true);
-        }
-
-        this.applyKeyListeners();
-    },
-
-    /**
-     * Removes/purges DOM event listeners from the rendered elements
-     * 
-     * @method purgeListeners
-     */
-    purgeListeners : function() {
-        var E = YAHOO.util.Event;
-        E.removeListener(this.submitEl, "click", this.submit);
-        E.removeListener(this.cancelEl, "click", this.cancel);
-        E.removeListener(this.yearEl, "blur");
-        E.removeListener(this.monthEl, "change");
-        if (this.__isIEQuirks) {
-            E.removeListener(this.cal.oDomContainer, "resize", this._syncMask);
-        }
-
-        this.purgeKeyListeners();
-    },
-
-    /**
-     * Attaches DOM listeners for keyboard support. 
-     * Tab/Shift-Tab looping, Enter Key Submit on Year element,
-     * Up/Down/PgUp/PgDown year increment on Year element
-     * <p>
-     * NOTE: MacOSX Safari 2.x doesn't let you tab to buttons and 
-     * MacOSX Gecko does not let you tab to buttons or select controls,
-     * so for these browsers, Tab/Shift-Tab looping is limited to the 
-     * elements which can be reached using the tab key.
-     * </p>
-     * @method applyKeyListeners
-     */
-    applyKeyListeners : function() {
-        var E = YAHOO.util.Event,
-            ua = YAHOO.env.ua;
-
-        // IE/Safari 3.1 doesn't fire keypress for arrow/pg keys (non-char keys)
-        var arrowEvt = (ua.ie || ua.webkit) ? "keydown" : "keypress";
-
-        // - IE/Safari 3.1 doesn't fire keypress for non-char keys
-        // - Opera doesn't allow us to cancel keydown or keypress for tab, but 
-        //   changes focus successfully on keydown (keypress is too late to change focus - opera's already moved on).
-        var tabEvt = (ua.ie || ua.opera || ua.webkit) ? "keydown" : "keypress";
-
-        // Everyone likes keypress for Enter (char keys) - whoo hoo!
-        E.on(this.yearEl, "keypress", this._handleEnterKey, this, true);
-
-        E.on(this.yearEl, arrowEvt, this._handleDirectionKeys, this, true);
-        E.on(this.lastCtrl, tabEvt, this._handleTabKey, this, true);
-        E.on(this.firstCtrl, tabEvt, this._handleShiftTabKey, this, true);
-    },
-
-    /**
-     * Removes/purges DOM listeners for keyboard support
-     *
-     * @method purgeKeyListeners
-     */
-    purgeKeyListeners : function() {
-        var E = YAHOO.util.Event,
-            ua = YAHOO.env.ua;
-
-        var arrowEvt = (ua.ie || ua.webkit) ? "keydown" : "keypress";
-        var tabEvt = (ua.ie || ua.opera || ua.webkit) ? "keydown" : "keypress";
-
-        E.removeListener(this.yearEl, "keypress", this._handleEnterKey);
-        E.removeListener(this.yearEl, arrowEvt, this._handleDirectionKeys);
-        E.removeListener(this.lastCtrl, tabEvt, this._handleTabKey);
-        E.removeListener(this.firstCtrl, tabEvt, this._handleShiftTabKey);
-    },
-
-    /**
-     * Updates the Calendar/CalendarGroup's pagedate with the currently set month and year if valid.
-     * <p>
-     * If the currently set month/year is invalid, a validation error will be displayed and the 
-     * Calendar/CalendarGroup's pagedate will not be updated.
-     * </p>
-     * @method submit
-     */
-    submit : function() {
-        if (this.validate()) {
-            this.hide();
-
-            this.setMonth(this._getMonthFromUI());
-            this.setYear(this._getYearFromUI());
-
-            var cal = this.cal;
-
-            // Artificial delay, just to help the user see something changed
-            var delay = YAHOO.widget.CalendarNavigator.UPDATE_DELAY;
-            if (delay > 0) {
-                var nav = this;
-                window.setTimeout(function(){ nav._update(cal); }, delay);
-            } else {
-                this._update(cal);
-            }
-        }
-    },
-
-    /**
-     * Updates the Calendar rendered state, based on the state of the CalendarNavigator
-     * @method _update
-     * @param cal The Calendar instance to update
-     * @protected
-     */
-    _update : function(cal) {
-        var date = YAHOO.widget.DateMath.getDate(this.getYear() - cal.cfg.getProperty("YEAR_OFFSET"), this.getMonth(), 1);
-        cal.cfg.setProperty("pagedate", date);
-        cal.render();
-    },
-
-    /**
-     * Hides the navigator and mask, without updating the Calendar/CalendarGroup's state
-     * 
-     * @method cancel
-     */
-    cancel : function() {
-        this.hide();
-    },
-
-    /**
-     * Validates the current state of the UI controls
-     * 
-     * @method validate
-     * @return {Boolean} true, if the current UI state contains valid values, false if not
-     */
-    validate : function() {
-        if (this._getYearFromUI() !== null) {
-            this.clearErrors();
-            return true;
-        } else {
-            this.setYearError();
-            this.setError(this.__getCfg("invalidYear", true));
-            return false;
-        }
-    },
-
-    /**
-     * Displays an error message in the Navigator's error panel
-     * @method setError
-     * @param {String} msg The error message to display
-     */
-    setError : function(msg) {
-        if (this.errorEl) {
-            this.errorEl.innerHTML = msg;
-            this._show(this.errorEl, true);
-        }
-    },
-
-    /**
-     * Clears the navigator's error message and hides the error panel
-     * @method clearError 
-     */
-    clearError : function() {
-        if (this.errorEl) {
-            this.errorEl.innerHTML = "";
-            this._show(this.errorEl, false);
-        }
-    },
-
-    /**
-     * Displays the validation error UI for the year control
-     * @method setYearError
-     */
-    setYearError : function() {
-        YAHOO.util.Dom.addClass(this.yearEl, YAHOO.widget.CalendarNavigator.CLASSES.INVALID);
-    },
-
-    /**
-     * Removes the validation error UI for the year control
-     * @method clearYearError
-     */
-    clearYearError : function() {
-        YAHOO.util.Dom.removeClass(this.yearEl, YAHOO.widget.CalendarNavigator.CLASSES.INVALID);
-    },
-
-    /**
-     * Clears all validation and error messages in the UI
-     * @method clearErrors
-     */
-    clearErrors : function() {
-        this.clearError();
-        this.clearYearError();
-    },
-
-    /**
-     * Sets the initial focus, based on the configured value
-     * @method setInitialFocus
-     */
-    setInitialFocus : function() {
-        var el = this.submitEl,
-            f = this.__getCfg("initialFocus");
-
-        if (f && f.toLowerCase) {
-            f = f.toLowerCase();
-            if (f == "year") {
-                el = this.yearEl;
-                try {
-                    this.yearEl.select();
-                } catch (selErr) {
-                    // Ignore;
-                }
-            } else if (f == "month") {
-                el = this.monthEl;
-            }
-        }
-
-        if (el && YAHOO.lang.isFunction(el.focus)) {
-            try {
-                el.focus();
-            } catch (focusErr) {
-                // TODO: Fall back if focus fails?
-            }
-        }
-    },
-
-    /**
-     * Removes all renderered HTML elements for the Navigator from
-     * the DOM, purges event listeners and clears (nulls) any property
-     * references to HTML references
-     * @method erase
-     */
-    erase : function() {
-        if (this.__rendered) {
-            this.purgeListeners();
-
-            // Clear out innerHTML references
-            this.yearEl = null;
-            this.monthEl = null;
-            this.errorEl = null;
-            this.submitEl = null;
-            this.cancelEl = null;
-            this.firstCtrl = null;
-            this.lastCtrl = null;
-            if (this.navEl) {
-                this.navEl.innerHTML = "";
-            }
-
-            var p = this.navEl.parentNode;
-            if (p) {
-                p.removeChild(this.navEl);
-            }
-            this.navEl = null;
-
-            var pm = this.maskEl.parentNode;
-            if (pm) {
-                pm.removeChild(this.maskEl);
-            }
-            this.maskEl = null;
-            this.__rendered = false;
-        }
-    },
-
-    /**
-     * Destroys the Navigator object and any HTML references
-     * @method destroy
-     */
-    destroy : function() {
-        this.erase();
-        this._doc = null;
-        this.cal = null;
-        this.id = null;
-    },
-
-    /**
-     * Protected implementation to handle how UI elements are 
-     * hidden/shown.
-     *
-     * @method _show
-     * @protected
-     */
-    _show : function(el, bShow) {
-        if (el) {
-            YAHOO.util.Dom.setStyle(el, "display", (bShow) ? "block" : "none");
-        }
-    },
-
-    /**
-     * Returns the month value (index), from the month UI element
-     * @protected
-     * @method _getMonthFromUI
-     * @return {Number} The month index, or 0 if a UI element for the month
-     * is not found
-     */
-    _getMonthFromUI : function() {
-        if (this.monthEl) {
-            return this.monthEl.selectedIndex;
-        } else {
-            return 0; // Default to Jan
-        }
-    },
-
-    /**
-     * Returns the year value, from the Navitator's year UI element
-     * @protected
-     * @method _getYearFromUI
-     * @return {Number} The year value set in the UI, if valid. null is returned if 
-     * the UI does not contain a valid year value.
-     */
-    _getYearFromUI : function() {
-        var NAV = YAHOO.widget.CalendarNavigator;
-
-        var yr = null;
-        if (this.yearEl) {
-            var value = this.yearEl.value;
-            value = value.replace(NAV.TRIM, "$1");
-
-            if (NAV.YR_PATTERN.test(value)) {
-                yr = parseInt(value, 10);
-            }
-        }
-        return yr;
-    },
-
-    /**
-     * Updates the Navigator's year UI, based on the year value set on the Navigator object
-     * @protected
-     * @method _updateYearUI
-     */
-    _updateYearUI : function() {
-        if (this.yearEl && this._year !== null) {
-            this.yearEl.value = this._year;
-        }
-    },
-
-    /**
-     * Updates the Navigator's month UI, based on the month value set on the Navigator object
-     * @protected
-     * @method _updateMonthUI
-     */
-    _updateMonthUI : function() {
-        if (this.monthEl) {
-            this.monthEl.selectedIndex = this._month;
-        }
-    },
-
-    /**
-     * Sets up references to the first and last focusable element in the Navigator's UI
-     * in terms of tab order (Naviagator's firstEl and lastEl properties). The references
-     * are used to control modality by looping around from the first to the last control
-     * and visa versa for tab/shift-tab navigation.
-     * <p>
-     * See <a href="#applyKeyListeners">applyKeyListeners</a>
-     * </p>
-     * @protected
-     * @method _setFirstLastElements
-     */
-    _setFirstLastElements : function() {
-        this.firstCtrl = this.monthEl;
-        this.lastCtrl = this.cancelEl;
-
-        // Special handling for MacOSX.
-        // - Safari 2.x can't focus on buttons
-        // - Gecko can't focus on select boxes or buttons
-        if (this.__isMac) {
-            if (YAHOO.env.ua.webkit && YAHOO.env.ua.webkit < 420){
-                this.firstCtrl = this.monthEl;
-                this.lastCtrl = this.yearEl;
-            }
-            if (YAHOO.env.ua.gecko) {
-                this.firstCtrl = this.yearEl;
-                this.lastCtrl = this.yearEl;
-            }
-        }
-    },
-
-    /**
-     * Default Keyboard event handler to capture Enter 
-     * on the Navigator's year control (yearEl)
-     * 
-     * @method _handleEnterKey
-     * @protected
-     * @param {Event} e The DOM event being handled
-     */
-    _handleEnterKey : function(e) {
-        var KEYS = YAHOO.util.KeyListener.KEY;
-
-        if (YAHOO.util.Event.getCharCode(e) == KEYS.ENTER) {
-            YAHOO.util.Event.preventDefault(e);
-            this.submit();
-        }
-    },
-
-    /**
-     * Default Keyboard event handler to capture up/down/pgup/pgdown
-     * on the Navigator's year control (yearEl).
-     * 
-     * @method _handleDirectionKeys
-     * @protected
-     * @param {Event} e The DOM event being handled
-     */
-    _handleDirectionKeys : function(e) {
-        var E = YAHOO.util.Event,
-            KEYS = YAHOO.util.KeyListener.KEY,
-            NAV = YAHOO.widget.CalendarNavigator;
-
-        var value = (this.yearEl.value) ? parseInt(this.yearEl.value, 10) : null;
-        if (isFinite(value)) {
-            var dir = false;
-            switch(E.getCharCode(e)) {
-                case KEYS.UP:
-                    this.yearEl.value = value + NAV.YR_MINOR_INC;
-                    dir = true;
-                    break;
-                case KEYS.DOWN:
-                    this.yearEl.value = Math.max(value - NAV.YR_MINOR_INC, 0);
-                    dir = true;
-                    break;
-                case KEYS.PAGE_UP:
-                    this.yearEl.value = value + NAV.YR_MAJOR_INC;
-                    dir = true;
-                    break;
-                case KEYS.PAGE_DOWN:
-                    this.yearEl.value = Math.max(value - NAV.YR_MAJOR_INC, 0);
-                    dir = true;
-                    break;
-                default:
-                    break;
-            }
-            if (dir) {
-                E.preventDefault(e);
-                try {
-                    this.yearEl.select();
-                } catch(err) {
-                    // Ignore
-                }
-            }
-        }
-    },
-
-    /**
-     * Default Keyboard event handler to capture Tab 
-     * on the last control (lastCtrl) in the Navigator.
-     * 
-     * @method _handleTabKey
-     * @protected
-     * @param {Event} e The DOM event being handled
-     */
-    _handleTabKey : function(e) {
-        var E = YAHOO.util.Event,
-            KEYS = YAHOO.util.KeyListener.KEY;
-
-        if (E.getCharCode(e) == KEYS.TAB && !e.shiftKey) {
-            try {
-                E.preventDefault(e);
-                this.firstCtrl.focus();
-            } catch (err) {
-                // Ignore - mainly for focus edge cases
-            }
-        }
-    },
-
-    /**
-     * Default Keyboard event handler to capture Shift-Tab 
-     * on the first control (firstCtrl) in the Navigator.
-     * 
-     * @method _handleShiftTabKey
-     * @protected
-     * @param {Event} e The DOM event being handled
-     */
-    _handleShiftTabKey : function(e) {
-        var E = YAHOO.util.Event,
-            KEYS = YAHOO.util.KeyListener.KEY;
-
-        if (e.shiftKey && E.getCharCode(e) == KEYS.TAB) {
-            try {
-                E.preventDefault(e);
-                this.lastCtrl.focus();
-            } catch (err) {
-                // Ignore - mainly for focus edge cases
-            }
-        }
-    },
-
-    /**
-     * Retrieve Navigator configuration values from 
-     * the parent Calendar/CalendarGroup's config value.
-     * <p>
-     * If it has not been set in the user provided configuration, the method will 
-     * return the default value of the configuration property, as set in DEFAULT_CONFIG
-     * </p>
-     * @private
-     * @method __getCfg
-     * @param {String} Case sensitive property name.
-     * @param {Boolean} true, if the property is a string property, false if not.
-     * @return The value of the configuration property
-     */
-    __getCfg : function(prop, bIsStr) {
-        var DEF_CFG = YAHOO.widget.CalendarNavigator.DEFAULT_CONFIG;
-        var cfg = this.cal.cfg.getProperty("navigator");
-
-        if (bIsStr) {
-            return (cfg !== true && cfg.strings && cfg.strings[prop]) ? cfg.strings[prop] : DEF_CFG.strings[prop];
-        } else {
-            return (cfg !== true && cfg[prop]) ? cfg[prop] : DEF_CFG[prop];
-        }
-    },
-
-    /**
-     * Private flag, to identify MacOS
-     * @private
-     * @property __isMac
-     */
-    __isMac : (navigator.userAgent.toLowerCase().indexOf("macintosh") != -1)
-
-};
-YAHOO.register("calendar", YAHOO.widget.Calendar, {version: "2.8.0r4", build: "2449"});
diff --git a/koha-tmpl/intranet-tmpl/prog/en/lib/yui/calendar/calendar-min.js b/koha-tmpl/intranet-tmpl/prog/en/lib/yui/calendar/calendar-min.js
deleted file mode 100644 (file)
index 98f45ee..0000000
+++ /dev/null
@@ -1,18 +0,0 @@
-/*
-Copyright (c) 2009, Yahoo! Inc. All rights reserved.
-Code licensed under the BSD License:
-http://developer.yahoo.net/yui/license.txt
-version: 2.8.0r4
-*/
-(function(){YAHOO.util.Config=function(D){if(D){this.init(D);}};var B=YAHOO.lang,C=YAHOO.util.CustomEvent,A=YAHOO.util.Config;A.CONFIG_CHANGED_EVENT="configChanged";A.BOOLEAN_TYPE="boolean";A.prototype={owner:null,queueInProgress:false,config:null,initialConfig:null,eventQueue:null,configChangedEvent:null,init:function(D){this.owner=D;this.configChangedEvent=this.createEvent(A.CONFIG_CHANGED_EVENT);this.configChangedEvent.signature=C.LIST;this.queueInProgress=false;this.config={};this.initialConfig={};this.eventQueue=[];},checkBoolean:function(D){return(typeof D==A.BOOLEAN_TYPE);},checkNumber:function(D){return(!isNaN(D));},fireEvent:function(D,F){var E=this.config[D];if(E&&E.event){E.event.fire(F);}},addProperty:function(E,D){E=E.toLowerCase();this.config[E]=D;D.event=this.createEvent(E,{scope:this.owner});D.event.signature=C.LIST;D.key=E;if(D.handler){D.event.subscribe(D.handler,this.owner);}this.setProperty(E,D.value,true);if(!D.suppressEvent){this.queueProperty(E,D.value);}},getConfig:function(){var D={},F=this.config,G,E;for(G in F){if(B.hasOwnProperty(F,G)){E=F[G];if(E&&E.event){D[G]=E.value;}}}return D;},getProperty:function(D){var E=this.config[D.toLowerCase()];if(E&&E.event){return E.value;}else{return undefined;}},resetProperty:function(D){D=D.toLowerCase();var E=this.config[D];if(E&&E.event){if(this.initialConfig[D]&&!B.isUndefined(this.initialConfig[D])){this.setProperty(D,this.initialConfig[D]);return true;}}else{return false;}},setProperty:function(E,G,D){var F;E=E.toLowerCase();if(this.queueInProgress&&!D){this.queueProperty(E,G);return true;}else{F=this.config[E];if(F&&F.event){if(F.validator&&!F.validator(G)){return false;}else{F.value=G;if(!D){this.fireEvent(E,G);this.configChangedEvent.fire([E,G]);}return true;}}else{return false;}}},queueProperty:function(S,P){S=S.toLowerCase();var R=this.config[S],K=false,J,G,H,I,O,Q,F,M,N,D,L,T,E;if(R&&R.event){if(!B.isUndefined(P)&&R.validator&&!R.validator(P)){return false;}else{if(!B.isUndefined(P)){R.value=P;}else{P=R.value;}K=false;J=this.eventQueue.length;for(L=0;L<J;L++){G=this.eventQueue[L];if(G){H=G[0];I=G[1];if(H==S){this.eventQueue[L]=null;this.eventQueue.push([S,(!B.isUndefined(P)?P:I)]);K=true;break;}}}if(!K&&!B.isUndefined(P)){this.eventQueue.push([S,P]);}}if(R.supercedes){O=R.supercedes.length;for(T=0;T<O;T++){Q=R.supercedes[T];F=this.eventQueue.length;for(E=0;E<F;E++){M=this.eventQueue[E];if(M){N=M[0];D=M[1];if(N==Q.toLowerCase()){this.eventQueue.push([N,D]);this.eventQueue[E]=null;break;}}}}}return true;}else{return false;}},refireEvent:function(D){D=D.toLowerCase();var E=this.config[D];if(E&&E.event&&!B.isUndefined(E.value)){if(this.queueInProgress){this.queueProperty(D);}else{this.fireEvent(D,E.value);}}},applyConfig:function(D,G){var F,E;if(G){E={};for(F in D){if(B.hasOwnProperty(D,F)){E[F.toLowerCase()]=D[F];}}this.initialConfig=E;}for(F in D){if(B.hasOwnProperty(D,F)){this.queueProperty(F,D[F]);}}},refresh:function(){var D;for(D in this.config){if(B.hasOwnProperty(this.config,D)){this.refireEvent(D);}}},fireQueue:function(){var E,H,D,G,F;this.queueInProgress=true;for(E=0;E<this.eventQueue.length;E++){H=this.eventQueue[E];if(H){D=H[0];G=H[1];F=this.config[D];F.value=G;this.eventQueue[E]=null;this.fireEvent(D,G);}}this.queueInProgress=false;this.eventQueue=[];},subscribeToConfigEvent:function(D,E,G,H){var F=this.config[D.toLowerCase()];if(F&&F.event){if(!A.alreadySubscribed(F.event,E,G)){F.event.subscribe(E,G,H);}return true;}else{return false;}},unsubscribeFromConfigEvent:function(D,E,G){var F=this.config[D.toLowerCase()];if(F&&F.event){return F.event.unsubscribe(E,G);}else{return false;}},toString:function(){var D="Config";if(this.owner){D+=" ["+this.owner.toString()+"]";}return D;},outputEventQueue:function(){var D="",G,E,F=this.eventQueue.length;for(E=0;E<F;E++){G=this.eventQueue[E];if(G){D+=G[0]+"="+G[1]+", ";}}return D;},destroy:function(){var E=this.config,D,F;for(D in E){if(B.hasOwnProperty(E,D)){F=E[D];F.event.unsubscribeAll();F.event=null;}}this.configChangedEvent.unsubscribeAll();this.configChangedEvent=null;this.owner=null;this.config=null;this.initialConfig=null;this.eventQueue=null;}};A.alreadySubscribed=function(E,H,I){var F=E.subscribers.length,D,G;if(F>0){G=F-1;do{D=E.subscribers[G];if(D&&D.obj==I&&D.fn==H){return true;}}while(G--);}return false;};YAHOO.lang.augmentProto(A,YAHOO.util.EventProvider);}());YAHOO.widget.DateMath={DAY:"D",WEEK:"W",YEAR:"Y",MONTH:"M",ONE_DAY_MS:1000*60*60*24,WEEK_ONE_JAN_DATE:1,add:function(A,D,C){var F=new Date(A.getTime());switch(D){case this.MONTH:var E=A.getMonth()+C;var B=0;if(E<0){while(E<0){E+=12;B-=1;}}else{if(E>11){while(E>11){E-=12;B+=1;}}}F.setMonth(E);F.setFullYear(A.getFullYear()+B);break;case this.DAY:this._addDays(F,C);break;case this.YEAR:F.setFullYear(A.getFullYear()+C);break;case this.WEEK:this._addDays(F,(C*7));break;}return F;},_addDays:function(D,C){if(YAHOO.env.ua.webkit&&YAHOO.env.ua.webkit<420){if(C<0){for(var B=-128;C<B;C-=B){D.setDate(D.getDate()+B);}}else{for(var A=96;C>A;C-=A){D.setDate(D.getDate()+A);}}}D.setDate(D.getDate()+C);},subtract:function(A,C,B){return this.add(A,C,(B*-1));},before:function(C,B){var A=B.getTime();if(C.getTime()<A){return true;}else{return false;}},after:function(C,B){var A=B.getTime();if(C.getTime()>A){return true;}else{return false;}},between:function(B,A,C){if(this.after(B,A)&&this.before(B,C)){return true;}else{return false;}},getJan1:function(A){return this.getDate(A,0,1);},getDayOffset:function(B,D){var C=this.getJan1(D);var A=Math.ceil((B.getTime()-C.getTime())/this.ONE_DAY_MS);return A;},getWeekNumber:function(D,B,G){B=B||0;G=G||this.WEEK_ONE_JAN_DATE;var H=this.clearTime(D),L,M;if(H.getDay()===B){L=H;}else{L=this.getFirstDayOfWeek(H,B);}var I=L.getFullYear();M=new Date(L.getTime()+6*this.ONE_DAY_MS);var F;if(I!==M.getFullYear()&&M.getDate()>=G){F=1;}else{var E=this.clearTime(this.getDate(I,0,G)),A=this.getFirstDayOfWeek(E,B);var J=Math.round((H.getTime()-A.getTime())/this.ONE_DAY_MS);var K=J%7;var C=(J-K)/7;
-F=C+1;}return F;},getFirstDayOfWeek:function(D,A){A=A||0;var B=D.getDay(),C=(B-A+7)%7;return this.subtract(D,this.DAY,C);},isYearOverlapWeek:function(A){var C=false;var B=this.add(A,this.DAY,6);if(B.getFullYear()!=A.getFullYear()){C=true;}return C;},isMonthOverlapWeek:function(A){var C=false;var B=this.add(A,this.DAY,6);if(B.getMonth()!=A.getMonth()){C=true;}return C;},findMonthStart:function(A){var B=this.getDate(A.getFullYear(),A.getMonth(),1);return B;},findMonthEnd:function(B){var D=this.findMonthStart(B);var C=this.add(D,this.MONTH,1);var A=this.subtract(C,this.DAY,1);return A;},clearTime:function(A){A.setHours(12,0,0,0);return A;},getDate:function(D,A,C){var B=null;if(YAHOO.lang.isUndefined(C)){C=1;}if(D>=100){B=new Date(D,A,C);}else{B=new Date();B.setFullYear(D);B.setMonth(A);B.setDate(C);B.setHours(0,0,0,0);}return B;}};(function(){var C=YAHOO.util.Dom,A=YAHOO.util.Event,E=YAHOO.lang,D=YAHOO.widget.DateMath;function F(I,G,H){this.init.apply(this,arguments);}F.IMG_ROOT=null;F.DATE="D";F.MONTH_DAY="MD";F.WEEKDAY="WD";F.RANGE="R";F.MONTH="M";F.DISPLAY_DAYS=42;F.STOP_RENDER="S";F.SHORT="short";F.LONG="long";F.MEDIUM="medium";F.ONE_CHAR="1char";F.DEFAULT_CONFIG={YEAR_OFFSET:{key:"year_offset",value:0,supercedes:["pagedate","selected","mindate","maxdate"]},TODAY:{key:"today",value:new Date(),supercedes:["pagedate"]},PAGEDATE:{key:"pagedate",value:null},SELECTED:{key:"selected",value:[]},TITLE:{key:"title",value:""},CLOSE:{key:"close",value:false},IFRAME:{key:"iframe",value:(YAHOO.env.ua.ie&&YAHOO.env.ua.ie<=6)?true:false},MINDATE:{key:"mindate",value:null},MAXDATE:{key:"maxdate",value:null},MULTI_SELECT:{key:"multi_select",value:false},START_WEEKDAY:{key:"start_weekday",value:0},SHOW_WEEKDAYS:{key:"show_weekdays",value:true},SHOW_WEEK_HEADER:{key:"show_week_header",value:false},SHOW_WEEK_FOOTER:{key:"show_week_footer",value:false},HIDE_BLANK_WEEKS:{key:"hide_blank_weeks",value:false},NAV_ARROW_LEFT:{key:"nav_arrow_left",value:null},NAV_ARROW_RIGHT:{key:"nav_arrow_right",value:null},MONTHS_SHORT:{key:"months_short",value:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"]},MONTHS_LONG:{key:"months_long",value:["January","February","March","April","May","June","July","August","September","October","November","December"]},WEEKDAYS_1CHAR:{key:"weekdays_1char",value:["S","M","T","W","T","F","S"]},WEEKDAYS_SHORT:{key:"weekdays_short",value:["Su","Mo","Tu","We","Th","Fr","Sa"]},WEEKDAYS_MEDIUM:{key:"weekdays_medium",value:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"]},WEEKDAYS_LONG:{key:"weekdays_long",value:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"]},LOCALE_MONTHS:{key:"locale_months",value:"long"},LOCALE_WEEKDAYS:{key:"locale_weekdays",value:"short"},DATE_DELIMITER:{key:"date_delimiter",value:","},DATE_FIELD_DELIMITER:{key:"date_field_delimiter",value:"/"},DATE_RANGE_DELIMITER:{key:"date_range_delimiter",value:"-"},MY_MONTH_POSITION:{key:"my_month_position",value:1},MY_YEAR_POSITION:{key:"my_year_position",value:2},MD_MONTH_POSITION:{key:"md_month_position",value:1},MD_DAY_POSITION:{key:"md_day_position",value:2},MDY_MONTH_POSITION:{key:"mdy_month_position",value:1},MDY_DAY_POSITION:{key:"mdy_day_position",value:2},MDY_YEAR_POSITION:{key:"mdy_year_position",value:3},MY_LABEL_MONTH_POSITION:{key:"my_label_month_position",value:1},MY_LABEL_YEAR_POSITION:{key:"my_label_year_position",value:2},MY_LABEL_MONTH_SUFFIX:{key:"my_label_month_suffix",value:" "},MY_LABEL_YEAR_SUFFIX:{key:"my_label_year_suffix",value:""},NAV:{key:"navigator",value:null},STRINGS:{key:"strings",value:{previousMonth:"Previous Month",nextMonth:"Next Month",close:"Close"},supercedes:["close","title"]}};F._DEFAULT_CONFIG=F.DEFAULT_CONFIG;var B=F.DEFAULT_CONFIG;F._EVENT_TYPES={BEFORE_SELECT:"beforeSelect",SELECT:"select",BEFORE_DESELECT:"beforeDeselect",DESELECT:"deselect",CHANGE_PAGE:"changePage",BEFORE_RENDER:"beforeRender",RENDER:"render",BEFORE_DESTROY:"beforeDestroy",DESTROY:"destroy",RESET:"reset",CLEAR:"clear",BEFORE_HIDE:"beforeHide",HIDE:"hide",BEFORE_SHOW:"beforeShow",SHOW:"show",BEFORE_HIDE_NAV:"beforeHideNav",HIDE_NAV:"hideNav",BEFORE_SHOW_NAV:"beforeShowNav",SHOW_NAV:"showNav",BEFORE_RENDER_NAV:"beforeRenderNav",RENDER_NAV:"renderNav"};F.STYLES={CSS_ROW_HEADER:"calrowhead",CSS_ROW_FOOTER:"calrowfoot",CSS_CELL:"calcell",CSS_CELL_SELECTOR:"selector",CSS_CELL_SELECTED:"selected",CSS_CELL_SELECTABLE:"selectable",CSS_CELL_RESTRICTED:"restricted",CSS_CELL_TODAY:"today",CSS_CELL_OOM:"oom",CSS_CELL_OOB:"previous",CSS_HEADER:"calheader",CSS_HEADER_TEXT:"calhead",CSS_BODY:"calbody",CSS_WEEKDAY_CELL:"calweekdaycell",CSS_WEEKDAY_ROW:"calweekdayrow",CSS_FOOTER:"calfoot",CSS_CALENDAR:"yui-calendar",CSS_SINGLE:"single",CSS_CONTAINER:"yui-calcontainer",CSS_NAV_LEFT:"calnavleft",CSS_NAV_RIGHT:"calnavright",CSS_NAV:"calnav",CSS_CLOSE:"calclose",CSS_CELL_TOP:"calcelltop",CSS_CELL_LEFT:"calcellleft",CSS_CELL_RIGHT:"calcellright",CSS_CELL_BOTTOM:"calcellbottom",CSS_CELL_HOVER:"calcellhover",CSS_CELL_HIGHLIGHT1:"highlight1",CSS_CELL_HIGHLIGHT2:"highlight2",CSS_CELL_HIGHLIGHT3:"highlight3",CSS_CELL_HIGHLIGHT4:"highlight4",CSS_WITH_TITLE:"withtitle",CSS_FIXED_SIZE:"fixedsize",CSS_LINK_CLOSE:"link-close"};F._STYLES=F.STYLES;F.prototype={Config:null,parent:null,index:-1,cells:null,cellDates:null,id:null,containerId:null,oDomContainer:null,today:null,renderStack:null,_renderStack:null,oNavigator:null,_selectedDates:null,domEventMap:null,_parseArgs:function(H){var G={id:null,container:null,config:null};if(H&&H.length&&H.length>0){switch(H.length){case 1:G.id=null;G.container=H[0];G.config=null;break;case 2:if(E.isObject(H[1])&&!H[1].tagName&&!(H[1] instanceof String)){G.id=null;G.container=H[0];G.config=H[1];}else{G.id=H[0];G.container=H[1];G.config=null;}break;default:G.id=H[0];G.container=H[1];G.config=H[2];break;}}else{}return G;},init:function(J,H,I){var G=this._parseArgs(arguments);J=G.id;H=G.container;I=G.config;this.oDomContainer=C.get(H);if(!this.oDomContainer.id){this.oDomContainer.id=C.generateId();
-}if(!J){J=this.oDomContainer.id+"_t";}this.id=J;this.containerId=this.oDomContainer.id;this.initEvents();this.cfg=new YAHOO.util.Config(this);this.Options={};this.Locale={};this.initStyles();C.addClass(this.oDomContainer,this.Style.CSS_CONTAINER);C.addClass(this.oDomContainer,this.Style.CSS_SINGLE);this.cellDates=[];this.cells=[];this.renderStack=[];this._renderStack=[];this.setupConfig();if(I){this.cfg.applyConfig(I,true);}this.cfg.fireQueue();this.today=this.cfg.getProperty("today");},configIframe:function(I,H,J){var G=H[0];if(!this.parent){if(C.inDocument(this.oDomContainer)){if(G){var K=C.getStyle(this.oDomContainer,"position");if(K=="absolute"||K=="relative"){if(!C.inDocument(this.iframe)){this.iframe=document.createElement("iframe");this.iframe.src="javascript:false;";C.setStyle(this.iframe,"opacity","0");if(YAHOO.env.ua.ie&&YAHOO.env.ua.ie<=6){C.addClass(this.iframe,this.Style.CSS_FIXED_SIZE);}this.oDomContainer.insertBefore(this.iframe,this.oDomContainer.firstChild);}}}else{if(this.iframe){if(this.iframe.parentNode){this.iframe.parentNode.removeChild(this.iframe);}this.iframe=null;}}}}},configTitle:function(H,G,I){var K=G[0];if(K){this.createTitleBar(K);}else{var J=this.cfg.getProperty(B.CLOSE.key);if(!J){this.removeTitleBar();}else{this.createTitleBar("&#160;");}}},configClose:function(H,G,I){var K=G[0],J=this.cfg.getProperty(B.TITLE.key);if(K){if(!J){this.createTitleBar("&#160;");}this.createCloseButton();}else{this.removeCloseButton();if(!J){this.removeTitleBar();}}},initEvents:function(){var G=F._EVENT_TYPES,I=YAHOO.util.CustomEvent,H=this;H.beforeSelectEvent=new I(G.BEFORE_SELECT);H.selectEvent=new I(G.SELECT);H.beforeDeselectEvent=new I(G.BEFORE_DESELECT);H.deselectEvent=new I(G.DESELECT);H.changePageEvent=new I(G.CHANGE_PAGE);H.beforeRenderEvent=new I(G.BEFORE_RENDER);H.renderEvent=new I(G.RENDER);H.beforeDestroyEvent=new I(G.BEFORE_DESTROY);H.destroyEvent=new I(G.DESTROY);H.resetEvent=new I(G.RESET);H.clearEvent=new I(G.CLEAR);H.beforeShowEvent=new I(G.BEFORE_SHOW);H.showEvent=new I(G.SHOW);H.beforeHideEvent=new I(G.BEFORE_HIDE);H.hideEvent=new I(G.HIDE);H.beforeShowNavEvent=new I(G.BEFORE_SHOW_NAV);H.showNavEvent=new I(G.SHOW_NAV);H.beforeHideNavEvent=new I(G.BEFORE_HIDE_NAV);H.hideNavEvent=new I(G.HIDE_NAV);H.beforeRenderNavEvent=new I(G.BEFORE_RENDER_NAV);H.renderNavEvent=new I(G.RENDER_NAV);H.beforeSelectEvent.subscribe(H.onBeforeSelect,this,true);H.selectEvent.subscribe(H.onSelect,this,true);H.beforeDeselectEvent.subscribe(H.onBeforeDeselect,this,true);H.deselectEvent.subscribe(H.onDeselect,this,true);H.changePageEvent.subscribe(H.onChangePage,this,true);H.renderEvent.subscribe(H.onRender,this,true);H.resetEvent.subscribe(H.onReset,this,true);H.clearEvent.subscribe(H.onClear,this,true);},doPreviousMonthNav:function(H,G){A.preventDefault(H);setTimeout(function(){G.previousMonth();var J=C.getElementsByClassName(G.Style.CSS_NAV_LEFT,"a",G.oDomContainer);if(J&&J[0]){try{J[0].focus();}catch(I){}}},0);},doNextMonthNav:function(H,G){A.preventDefault(H);setTimeout(function(){G.nextMonth();var J=C.getElementsByClassName(G.Style.CSS_NAV_RIGHT,"a",G.oDomContainer);if(J&&J[0]){try{J[0].focus();}catch(I){}}},0);},doSelectCell:function(M,G){var R,O,I,L;var N=A.getTarget(M),H=N.tagName.toLowerCase(),K=false;while(H!="td"&&!C.hasClass(N,G.Style.CSS_CELL_SELECTABLE)){if(!K&&H=="a"&&C.hasClass(N,G.Style.CSS_CELL_SELECTOR)){K=true;}N=N.parentNode;H=N.tagName.toLowerCase();if(N==this.oDomContainer||H=="html"){return;}}if(K){A.preventDefault(M);}R=N;if(C.hasClass(R,G.Style.CSS_CELL_SELECTABLE)){L=G.getIndexFromId(R.id);if(L>-1){O=G.cellDates[L];if(O){I=D.getDate(O[0],O[1]-1,O[2]);var Q;if(G.Options.MULTI_SELECT){Q=R.getElementsByTagName("a")[0];if(Q){Q.blur();}var J=G.cellDates[L];var P=G._indexOfSelectedFieldArray(J);if(P>-1){G.deselectCell(L);}else{G.selectCell(L);}}else{Q=R.getElementsByTagName("a")[0];if(Q){Q.blur();}G.selectCell(L);}}}}},doCellMouseOver:function(I,H){var G;if(I){G=A.getTarget(I);}else{G=this;}while(G.tagName&&G.tagName.toLowerCase()!="td"){G=G.parentNode;if(!G.tagName||G.tagName.toLowerCase()=="html"){return;}}if(C.hasClass(G,H.Style.CSS_CELL_SELECTABLE)){C.addClass(G,H.Style.CSS_CELL_HOVER);}},doCellMouseOut:function(I,H){var G;if(I){G=A.getTarget(I);}else{G=this;}while(G.tagName&&G.tagName.toLowerCase()!="td"){G=G.parentNode;if(!G.tagName||G.tagName.toLowerCase()=="html"){return;}}if(C.hasClass(G,H.Style.CSS_CELL_SELECTABLE)){C.removeClass(G,H.Style.CSS_CELL_HOVER);}},setupConfig:function(){var G=this.cfg;G.addProperty(B.TODAY.key,{value:new Date(B.TODAY.value.getTime()),supercedes:B.TODAY.supercedes,handler:this.configToday,suppressEvent:true});G.addProperty(B.PAGEDATE.key,{value:B.PAGEDATE.value||new Date(B.TODAY.value.getTime()),handler:this.configPageDate});G.addProperty(B.SELECTED.key,{value:B.SELECTED.value.concat(),handler:this.configSelected});G.addProperty(B.TITLE.key,{value:B.TITLE.value,handler:this.configTitle});G.addProperty(B.CLOSE.key,{value:B.CLOSE.value,handler:this.configClose});G.addProperty(B.IFRAME.key,{value:B.IFRAME.value,handler:this.configIframe,validator:G.checkBoolean});G.addProperty(B.MINDATE.key,{value:B.MINDATE.value,handler:this.configMinDate});G.addProperty(B.MAXDATE.key,{value:B.MAXDATE.value,handler:this.configMaxDate});G.addProperty(B.MULTI_SELECT.key,{value:B.MULTI_SELECT.value,handler:this.configOptions,validator:G.checkBoolean});G.addProperty(B.START_WEEKDAY.key,{value:B.START_WEEKDAY.value,handler:this.configOptions,validator:G.checkNumber});G.addProperty(B.SHOW_WEEKDAYS.key,{value:B.SHOW_WEEKDAYS.value,handler:this.configOptions,validator:G.checkBoolean});G.addProperty(B.SHOW_WEEK_HEADER.key,{value:B.SHOW_WEEK_HEADER.value,handler:this.configOptions,validator:G.checkBoolean});G.addProperty(B.SHOW_WEEK_FOOTER.key,{value:B.SHOW_WEEK_FOOTER.value,handler:this.configOptions,validator:G.checkBoolean});G.addProperty(B.HIDE_BLANK_WEEKS.key,{value:B.HIDE_BLANK_WEEKS.value,handler:this.configOptions,validator:G.checkBoolean});G.addProperty(B.NAV_ARROW_LEFT.key,{value:B.NAV_ARROW_LEFT.value,handler:this.configOptions});
-G.addProperty(B.NAV_ARROW_RIGHT.key,{value:B.NAV_ARROW_RIGHT.value,handler:this.configOptions});G.addProperty(B.MONTHS_SHORT.key,{value:B.MONTHS_SHORT.value,handler:this.configLocale});G.addProperty(B.MONTHS_LONG.key,{value:B.MONTHS_LONG.value,handler:this.configLocale});G.addProperty(B.WEEKDAYS_1CHAR.key,{value:B.WEEKDAYS_1CHAR.value,handler:this.configLocale});G.addProperty(B.WEEKDAYS_SHORT.key,{value:B.WEEKDAYS_SHORT.value,handler:this.configLocale});G.addProperty(B.WEEKDAYS_MEDIUM.key,{value:B.WEEKDAYS_MEDIUM.value,handler:this.configLocale});G.addProperty(B.WEEKDAYS_LONG.key,{value:B.WEEKDAYS_LONG.value,handler:this.configLocale});var H=function(){G.refireEvent(B.LOCALE_MONTHS.key);G.refireEvent(B.LOCALE_WEEKDAYS.key);};G.subscribeToConfigEvent(B.START_WEEKDAY.key,H,this,true);G.subscribeToConfigEvent(B.MONTHS_SHORT.key,H,this,true);G.subscribeToConfigEvent(B.MONTHS_LONG.key,H,this,true);G.subscribeToConfigEvent(B.WEEKDAYS_1CHAR.key,H,this,true);G.subscribeToConfigEvent(B.WEEKDAYS_SHORT.key,H,this,true);G.subscribeToConfigEvent(B.WEEKDAYS_MEDIUM.key,H,this,true);G.subscribeToConfigEvent(B.WEEKDAYS_LONG.key,H,this,true);G.addProperty(B.LOCALE_MONTHS.key,{value:B.LOCALE_MONTHS.value,handler:this.configLocaleValues});G.addProperty(B.LOCALE_WEEKDAYS.key,{value:B.LOCALE_WEEKDAYS.value,handler:this.configLocaleValues});G.addProperty(B.YEAR_OFFSET.key,{value:B.YEAR_OFFSET.value,supercedes:B.YEAR_OFFSET.supercedes,handler:this.configLocale});G.addProperty(B.DATE_DELIMITER.key,{value:B.DATE_DELIMITER.value,handler:this.configLocale});G.addProperty(B.DATE_FIELD_DELIMITER.key,{value:B.DATE_FIELD_DELIMITER.value,handler:this.configLocale});G.addProperty(B.DATE_RANGE_DELIMITER.key,{value:B.DATE_RANGE_DELIMITER.value,handler:this.configLocale});G.addProperty(B.MY_MONTH_POSITION.key,{value:B.MY_MONTH_POSITION.value,handler:this.configLocale,validator:G.checkNumber});G.addProperty(B.MY_YEAR_POSITION.key,{value:B.MY_YEAR_POSITION.value,handler:this.configLocale,validator:G.checkNumber});G.addProperty(B.MD_MONTH_POSITION.key,{value:B.MD_MONTH_POSITION.value,handler:this.configLocale,validator:G.checkNumber});G.addProperty(B.MD_DAY_POSITION.key,{value:B.MD_DAY_POSITION.value,handler:this.configLocale,validator:G.checkNumber});G.addProperty(B.MDY_MONTH_POSITION.key,{value:B.MDY_MONTH_POSITION.value,handler:this.configLocale,validator:G.checkNumber});G.addProperty(B.MDY_DAY_POSITION.key,{value:B.MDY_DAY_POSITION.value,handler:this.configLocale,validator:G.checkNumber});G.addProperty(B.MDY_YEAR_POSITION.key,{value:B.MDY_YEAR_POSITION.value,handler:this.configLocale,validator:G.checkNumber});G.addProperty(B.MY_LABEL_MONTH_POSITION.key,{value:B.MY_LABEL_MONTH_POSITION.value,handler:this.configLocale,validator:G.checkNumber});G.addProperty(B.MY_LABEL_YEAR_POSITION.key,{value:B.MY_LABEL_YEAR_POSITION.value,handler:this.configLocale,validator:G.checkNumber});G.addProperty(B.MY_LABEL_MONTH_SUFFIX.key,{value:B.MY_LABEL_MONTH_SUFFIX.value,handler:this.configLocale});G.addProperty(B.MY_LABEL_YEAR_SUFFIX.key,{value:B.MY_LABEL_YEAR_SUFFIX.value,handler:this.configLocale});G.addProperty(B.NAV.key,{value:B.NAV.value,handler:this.configNavigator});G.addProperty(B.STRINGS.key,{value:B.STRINGS.value,handler:this.configStrings,validator:function(I){return E.isObject(I);},supercedes:B.STRINGS.supercedes});},configStrings:function(H,G,I){var J=E.merge(B.STRINGS.value,G[0]);this.cfg.setProperty(B.STRINGS.key,J,true);},configPageDate:function(H,G,I){this.cfg.setProperty(B.PAGEDATE.key,this._parsePageDate(G[0]),true);},configMinDate:function(H,G,I){var J=G[0];if(E.isString(J)){J=this._parseDate(J);this.cfg.setProperty(B.MINDATE.key,D.getDate(J[0],(J[1]-1),J[2]));}},configMaxDate:function(H,G,I){var J=G[0];if(E.isString(J)){J=this._parseDate(J);this.cfg.setProperty(B.MAXDATE.key,D.getDate(J[0],(J[1]-1),J[2]));}},configToday:function(I,H,J){var K=H[0];if(E.isString(K)){K=this._parseDate(K);}var G=D.clearTime(K);if(!this.cfg.initialConfig[B.PAGEDATE.key]){this.cfg.setProperty(B.PAGEDATE.key,G);}this.today=G;this.cfg.setProperty(B.TODAY.key,G,true);},configSelected:function(I,G,K){var H=G[0],J=B.SELECTED.key;if(H){if(E.isString(H)){this.cfg.setProperty(J,this._parseDates(H),true);}}if(!this._selectedDates){this._selectedDates=this.cfg.getProperty(J);}},configOptions:function(H,G,I){this.Options[H.toUpperCase()]=G[0];},configLocale:function(H,G,I){this.Locale[H.toUpperCase()]=G[0];this.cfg.refireEvent(B.LOCALE_MONTHS.key);this.cfg.refireEvent(B.LOCALE_WEEKDAYS.key);},configLocaleValues:function(J,I,K){J=J.toLowerCase();var M=I[0],H=this.cfg,N=this.Locale;switch(J){case B.LOCALE_MONTHS.key:switch(M){case F.SHORT:N.LOCALE_MONTHS=H.getProperty(B.MONTHS_SHORT.key).concat();break;case F.LONG:N.LOCALE_MONTHS=H.getProperty(B.MONTHS_LONG.key).concat();break;}break;case B.LOCALE_WEEKDAYS.key:switch(M){case F.ONE_CHAR:N.LOCALE_WEEKDAYS=H.getProperty(B.WEEKDAYS_1CHAR.key).concat();break;case F.SHORT:N.LOCALE_WEEKDAYS=H.getProperty(B.WEEKDAYS_SHORT.key).concat();break;case F.MEDIUM:N.LOCALE_WEEKDAYS=H.getProperty(B.WEEKDAYS_MEDIUM.key).concat();break;case F.LONG:N.LOCALE_WEEKDAYS=H.getProperty(B.WEEKDAYS_LONG.key).concat();break;}var L=H.getProperty(B.START_WEEKDAY.key);if(L>0){for(var G=0;G<L;++G){N.LOCALE_WEEKDAYS.push(N.LOCALE_WEEKDAYS.shift());}}break;}},configNavigator:function(H,G,I){var J=G[0];if(YAHOO.widget.CalendarNavigator&&(J===true||E.isObject(J))){if(!this.oNavigator){this.oNavigator=new YAHOO.widget.CalendarNavigator(this);this.beforeRenderEvent.subscribe(function(){if(!this.pages){this.oNavigator.erase();}},this,true);}}else{if(this.oNavigator){this.oNavigator.destroy();this.oNavigator=null;}}},initStyles:function(){var G=F.STYLES;this.Style={CSS_ROW_HEADER:G.CSS_ROW_HEADER,CSS_ROW_FOOTER:G.CSS_ROW_FOOTER,CSS_CELL:G.CSS_CELL,CSS_CELL_SELECTOR:G.CSS_CELL_SELECTOR,CSS_CELL_SELECTED:G.CSS_CELL_SELECTED,CSS_CELL_SELECTABLE:G.CSS_CELL_SELECTABLE,CSS_CELL_RESTRICTED:G.CSS_CELL_RESTRICTED,CSS_CELL_TODAY:G.CSS_CELL_TODAY,CSS_CELL_OOM:G.CSS_CELL_OOM,CSS_CELL_OOB:G.CSS_CELL_OOB,CSS_HEADER:G.CSS_HEADER,CSS_HEADER_TEXT:G.CSS_HEADER_TEXT,CSS_BODY:G.CSS_BODY,CSS_WEEKDAY_CELL:G.CSS_WEEKDAY_CELL,CSS_WEEKDAY_ROW:G.CSS_WEEKDAY_ROW,CSS_FOOTER:G.CSS_FOOTER,CSS_CALENDAR:G.CSS_CALENDAR,CSS_SINGLE:G.CSS_SINGLE,CSS_CONTAINER:G.CSS_CONTAINER,CSS_NAV_LEFT:G.CSS_NAV_LEFT,CSS_NAV_RIGHT:G.CSS_NAV_RIGHT,CSS_NAV:G.CSS_NAV,CSS_CLOSE:G.CSS_CLOSE,CSS_CELL_TOP:G.CSS_CELL_TOP,CSS_CELL_LEFT:G.CSS_CELL_LEFT,CSS_CELL_RIGHT:G.CSS_CELL_RIGHT,CSS_CELL_BOTTOM:G.CSS_CELL_BOTTOM,CSS_CELL_HOVER:G.CSS_CELL_HOVER,CSS_CELL_HIGHLIGHT1:G.CSS_CELL_HIGHLIGHT1,CSS_CELL_HIGHLIGHT2:G.CSS_CELL_HIGHLIGHT2,CSS_CELL_HIGHLIGHT3:G.CSS_CELL_HIGHLIGHT3,CSS_CELL_HIGHLIGHT4:G.CSS_CELL_HIGHLIGHT4,CSS_WITH_TITLE:G.CSS_WITH_TITLE,CSS_FIXED_SIZE:G.CSS_FIXED_SIZE,CSS_LINK_CLOSE:G.CSS_LINK_CLOSE};
-},buildMonthLabel:function(){return this._buildMonthLabel(this.cfg.getProperty(B.PAGEDATE.key));},_buildMonthLabel:function(G){var I=this.Locale.LOCALE_MONTHS[G.getMonth()]+this.Locale.MY_LABEL_MONTH_SUFFIX,H=(G.getFullYear()+this.Locale.YEAR_OFFSET)+this.Locale.MY_LABEL_YEAR_SUFFIX;if(this.Locale.MY_LABEL_MONTH_POSITION==2||this.Locale.MY_LABEL_YEAR_POSITION==1){return H+I;}else{return I+H;}},buildDayLabel:function(G){return G.getDate();},createTitleBar:function(G){var H=C.getElementsByClassName(YAHOO.widget.CalendarGroup.CSS_2UPTITLE,"div",this.oDomContainer)[0]||document.createElement("div");H.className=YAHOO.widget.CalendarGroup.CSS_2UPTITLE;H.innerHTML=G;this.oDomContainer.insertBefore(H,this.oDomContainer.firstChild);C.addClass(this.oDomContainer,this.Style.CSS_WITH_TITLE);return H;},removeTitleBar:function(){var G=C.getElementsByClassName(YAHOO.widget.CalendarGroup.CSS_2UPTITLE,"div",this.oDomContainer)[0]||null;if(G){A.purgeElement(G);this.oDomContainer.removeChild(G);}C.removeClass(this.oDomContainer,this.Style.CSS_WITH_TITLE);},createCloseButton:function(){var K=YAHOO.widget.CalendarGroup.CSS_2UPCLOSE,J=this.Style.CSS_LINK_CLOSE,M="us/my/bn/x_d.gif",L=C.getElementsByClassName(J,"a",this.oDomContainer)[0],G=this.cfg.getProperty(B.STRINGS.key),H=(G&&G.close)?G.close:"";if(!L){L=document.createElement("a");A.addListener(L,"click",function(O,N){N.hide();A.preventDefault(O);},this);}L.href="#";L.className=J;if(F.IMG_ROOT!==null){var I=C.getElementsByClassName(K,"img",L)[0]||document.createElement("img");I.src=F.IMG_ROOT+M;I.className=K;L.appendChild(I);}else{L.innerHTML='<span class="'+K+" "+this.Style.CSS_CLOSE+'">'+H+"</span>";}this.oDomContainer.appendChild(L);return L;},removeCloseButton:function(){var G=C.getElementsByClassName(this.Style.CSS_LINK_CLOSE,"a",this.oDomContainer)[0]||null;if(G){A.purgeElement(G);this.oDomContainer.removeChild(G);}},renderHeader:function(Q){var P=7,O="us/tr/callt.gif",G="us/tr/calrt.gif",N=this.cfg,K=N.getProperty(B.PAGEDATE.key),L=N.getProperty(B.STRINGS.key),V=(L&&L.previousMonth)?L.previousMonth:"",H=(L&&L.nextMonth)?L.nextMonth:"",M;if(N.getProperty(B.SHOW_WEEK_HEADER.key)){P+=1;}if(N.getProperty(B.SHOW_WEEK_FOOTER.key)){P+=1;}Q[Q.length]="<thead>";Q[Q.length]="<tr>";Q[Q.length]='<th colspan="'+P+'" class="'+this.Style.CSS_HEADER_TEXT+'">';Q[Q.length]='<div class="'+this.Style.CSS_HEADER+'">';var X,U=false;if(this.parent){if(this.index===0){X=true;}if(this.index==(this.parent.cfg.getProperty("pages")-1)){U=true;}}else{X=true;U=true;}if(X){M=this._buildMonthLabel(D.subtract(K,D.MONTH,1));var R=N.getProperty(B.NAV_ARROW_LEFT.key);if(R===null&&F.IMG_ROOT!==null){R=F.IMG_ROOT+O;}var I=(R===null)?"":' style="background-image:url('+R+')"';Q[Q.length]='<a class="'+this.Style.CSS_NAV_LEFT+'"'+I+' href="#">'+V+" ("+M+")"+"</a>";}var W=this.buildMonthLabel();var S=this.parent||this;if(S.cfg.getProperty("navigator")){W='<a class="'+this.Style.CSS_NAV+'" href="#">'+W+"</a>";}Q[Q.length]=W;if(U){M=this._buildMonthLabel(D.add(K,D.MONTH,1));var T=N.getProperty(B.NAV_ARROW_RIGHT.key);if(T===null&&F.IMG_ROOT!==null){T=F.IMG_ROOT+G;}var J=(T===null)?"":' style="background-image:url('+T+')"';Q[Q.length]='<a class="'+this.Style.CSS_NAV_RIGHT+'"'+J+' href="#">'+H+" ("+M+")"+"</a>";}Q[Q.length]="</div>\n</th>\n</tr>";if(N.getProperty(B.SHOW_WEEKDAYS.key)){Q=this.buildWeekdays(Q);}Q[Q.length]="</thead>";return Q;},buildWeekdays:function(H){H[H.length]='<tr class="'+this.Style.CSS_WEEKDAY_ROW+'">';if(this.cfg.getProperty(B.SHOW_WEEK_HEADER.key)){H[H.length]="<th>&#160;</th>";}for(var G=0;G<this.Locale.LOCALE_WEEKDAYS.length;++G){H[H.length]='<th class="'+this.Style.CSS_WEEKDAY_CELL+'">'+this.Locale.LOCALE_WEEKDAYS[G]+"</th>";}if(this.cfg.getProperty(B.SHOW_WEEK_FOOTER.key)){H[H.length]="<th>&#160;</th>";}H[H.length]="</tr>";return H;},renderBody:function(m,k){var AK=this.cfg.getProperty(B.START_WEEKDAY.key);this.preMonthDays=m.getDay();if(AK>0){this.preMonthDays-=AK;}if(this.preMonthDays<0){this.preMonthDays+=7;}this.monthDays=D.findMonthEnd(m).getDate();this.postMonthDays=F.DISPLAY_DAYS-this.preMonthDays-this.monthDays;m=D.subtract(m,D.DAY,this.preMonthDays);var Y,N,M="w",f="_cell",c="wd",w="d",P,u,AC=this.today,O=this.cfg,W=AC.getFullYear(),v=AC.getMonth(),J=AC.getDate(),AB=O.getProperty(B.PAGEDATE.key),I=O.getProperty(B.HIDE_BLANK_WEEKS.key),j=O.getProperty(B.SHOW_WEEK_FOOTER.key),b=O.getProperty(B.SHOW_WEEK_HEADER.key),U=O.getProperty(B.MINDATE.key),a=O.getProperty(B.MAXDATE.key),T=this.Locale.YEAR_OFFSET;if(U){U=D.clearTime(U);}if(a){a=D.clearTime(a);}k[k.length]='<tbody class="m'+(AB.getMonth()+1)+" "+this.Style.CSS_BODY+'">';var AI=0,Q=document.createElement("div"),l=document.createElement("td");Q.appendChild(l);var AA=this.parent||this;for(var AE=0;AE<6;AE++){Y=D.getWeekNumber(m,AK);N=M+Y;if(AE!==0&&I===true&&m.getMonth()!=AB.getMonth()){break;}else{k[k.length]='<tr class="'+N+'">';if(b){k=this.renderRowHeader(Y,k);}for(var AJ=0;AJ<7;AJ++){P=[];this.clearElement(l);l.className=this.Style.CSS_CELL;l.id=this.id+f+AI;if(m.getDate()==J&&m.getMonth()==v&&m.getFullYear()==W){P[P.length]=AA.renderCellStyleToday;}var Z=[m.getFullYear(),m.getMonth()+1,m.getDate()];this.cellDates[this.cellDates.length]=Z;if(m.getMonth()!=AB.getMonth()){P[P.length]=AA.renderCellNotThisMonth;}else{C.addClass(l,c+m.getDay());C.addClass(l,w+m.getDate());for(var AD=0;AD<this.renderStack.length;++AD){u=null;var y=this.renderStack[AD],AL=y[0],H,e,L;switch(AL){case F.DATE:H=y[1][1];e=y[1][2];L=y[1][0];if(m.getMonth()+1==H&&m.getDate()==e&&m.getFullYear()==L){u=y[2];this.renderStack.splice(AD,1);}break;case F.MONTH_DAY:H=y[1][0];e=y[1][1];if(m.getMonth()+1==H&&m.getDate()==e){u=y[2];this.renderStack.splice(AD,1);}break;case F.RANGE:var h=y[1][0],g=y[1][1],n=h[1],S=h[2],X=h[0],AH=D.getDate(X,n-1,S),K=g[1],q=g[2],G=g[0],AG=D.getDate(G,K-1,q);if(m.getTime()>=AH.getTime()&&m.getTime()<=AG.getTime()){u=y[2];if(m.getTime()==AG.getTime()){this.renderStack.splice(AD,1);}}break;case F.WEEKDAY:var R=y[1][0];
-if(m.getDay()+1==R){u=y[2];}break;case F.MONTH:H=y[1][0];if(m.getMonth()+1==H){u=y[2];}break;}if(u){P[P.length]=u;}}}if(this._indexOfSelectedFieldArray(Z)>-1){P[P.length]=AA.renderCellStyleSelected;}if((U&&(m.getTime()<U.getTime()))||(a&&(m.getTime()>a.getTime()))){P[P.length]=AA.renderOutOfBoundsDate;}else{P[P.length]=AA.styleCellDefault;P[P.length]=AA.renderCellDefault;}for(var z=0;z<P.length;++z){if(P[z].call(AA,m,l)==F.STOP_RENDER){break;}}m.setTime(m.getTime()+D.ONE_DAY_MS);m=D.clearTime(m);if(AI>=0&&AI<=6){C.addClass(l,this.Style.CSS_CELL_TOP);}if((AI%7)===0){C.addClass(l,this.Style.CSS_CELL_LEFT);}if(((AI+1)%7)===0){C.addClass(l,this.Style.CSS_CELL_RIGHT);}var o=this.postMonthDays;if(I&&o>=7){var V=Math.floor(o/7);for(var AF=0;AF<V;++AF){o-=7;}}if(AI>=((this.preMonthDays+o+this.monthDays)-7)){C.addClass(l,this.Style.CSS_CELL_BOTTOM);}k[k.length]=Q.innerHTML;AI++;}if(j){k=this.renderRowFooter(Y,k);}k[k.length]="</tr>";}}k[k.length]="</tbody>";return k;},renderFooter:function(G){return G;},render:function(){this.beforeRenderEvent.fire();var H=D.findMonthStart(this.cfg.getProperty(B.PAGEDATE.key));this.resetRenderers();this.cellDates.length=0;A.purgeElement(this.oDomContainer,true);var G=[];G[G.length]='<table cellSpacing="0" class="'+this.Style.CSS_CALENDAR+" y"+(H.getFullYear()+this.Locale.YEAR_OFFSET)+'" id="'+this.id+'">';G=this.renderHeader(G);G=this.renderBody(H,G);G=this.renderFooter(G);G[G.length]="</table>";this.oDomContainer.innerHTML=G.join("\n");this.applyListeners();this.cells=C.getElementsByClassName(this.Style.CSS_CELL,"td",this.id);this.cfg.refireEvent(B.TITLE.key);this.cfg.refireEvent(B.CLOSE.key);this.cfg.refireEvent(B.IFRAME.key);this.renderEvent.fire();},applyListeners:function(){var P=this.oDomContainer,H=this.parent||this,L="a",S="click";var M=C.getElementsByClassName(this.Style.CSS_NAV_LEFT,L,P),I=C.getElementsByClassName(this.Style.CSS_NAV_RIGHT,L,P);if(M&&M.length>0){this.linkLeft=M[0];A.addListener(this.linkLeft,S,this.doPreviousMonthNav,H,true);}if(I&&I.length>0){this.linkRight=I[0];A.addListener(this.linkRight,S,this.doNextMonthNav,H,true);}if(H.cfg.getProperty("navigator")!==null){this.applyNavListeners();}if(this.domEventMap){var J,G;for(var R in this.domEventMap){if(E.hasOwnProperty(this.domEventMap,R)){var N=this.domEventMap[R];if(!(N instanceof Array)){N=[N];}for(var K=0;K<N.length;K++){var Q=N[K];G=C.getElementsByClassName(R,Q.tag,this.oDomContainer);for(var O=0;O<G.length;O++){J=G[O];A.addListener(J,Q.event,Q.handler,Q.scope,Q.correct);}}}}}A.addListener(this.oDomContainer,"click",this.doSelectCell,this);A.addListener(this.oDomContainer,"mouseover",this.doCellMouseOver,this);A.addListener(this.oDomContainer,"mouseout",this.doCellMouseOut,this);},applyNavListeners:function(){var H=this.parent||this,I=this,G=C.getElementsByClassName(this.Style.CSS_NAV,"a",this.oDomContainer);if(G.length>0){A.addListener(G,"click",function(N,M){var L=A.getTarget(N);if(this===L||C.isAncestor(this,L)){A.preventDefault(N);}var J=H.oNavigator;if(J){var K=I.cfg.getProperty("pagedate");J.setYear(K.getFullYear()+I.Locale.YEAR_OFFSET);J.setMonth(K.getMonth());J.show();}});}},getDateByCellId:function(H){var G=this.getDateFieldsByCellId(H);return(G)?D.getDate(G[0],G[1]-1,G[2]):null;},getDateFieldsByCellId:function(G){G=this.getIndexFromId(G);return(G>-1)?this.cellDates[G]:null;},getCellIndex:function(I){var H=-1;if(I){var G=I.getMonth(),N=I.getFullYear(),M=I.getDate(),K=this.cellDates;for(var J=0;J<K.length;++J){var L=K[J];if(L[0]===N&&L[1]===G+1&&L[2]===M){H=J;break;}}}return H;},getIndexFromId:function(I){var H=-1,G=I.lastIndexOf("_cell");if(G>-1){H=parseInt(I.substring(G+5),10);}return H;},renderOutOfBoundsDate:function(H,G){C.addClass(G,this.Style.CSS_CELL_OOB);G.innerHTML=H.getDate();return F.STOP_RENDER;},renderRowHeader:function(H,G){G[G.length]='<th class="'+this.Style.CSS_ROW_HEADER+'">'+H+"</th>";return G;},renderRowFooter:function(H,G){G[G.length]='<th class="'+this.Style.CSS_ROW_FOOTER+'">'+H+"</th>";return G;},renderCellDefault:function(H,G){G.innerHTML='<a href="#" class="'+this.Style.CSS_CELL_SELECTOR+'">'+this.buildDayLabel(H)+"</a>";},styleCellDefault:function(H,G){C.addClass(G,this.Style.CSS_CELL_SELECTABLE);},renderCellStyleHighlight1:function(H,G){C.addClass(G,this.Style.CSS_CELL_HIGHLIGHT1);},renderCellStyleHighlight2:function(H,G){C.addClass(G,this.Style.CSS_CELL_HIGHLIGHT2);},renderCellStyleHighlight3:function(H,G){C.addClass(G,this.Style.CSS_CELL_HIGHLIGHT3);},renderCellStyleHighlight4:function(H,G){C.addClass(G,this.Style.CSS_CELL_HIGHLIGHT4);},renderCellStyleToday:function(H,G){C.addClass(G,this.Style.CSS_CELL_TODAY);},renderCellStyleSelected:function(H,G){C.addClass(G,this.Style.CSS_CELL_SELECTED);},renderCellNotThisMonth:function(H,G){C.addClass(G,this.Style.CSS_CELL_OOM);G.innerHTML=H.getDate();return F.STOP_RENDER;},renderBodyCellRestricted:function(H,G){C.addClass(G,this.Style.CSS_CELL);C.addClass(G,this.Style.CSS_CELL_RESTRICTED);G.innerHTML=H.getDate();return F.STOP_RENDER;},addMonths:function(I){var H=B.PAGEDATE.key,J=this.cfg.getProperty(H),G=D.add(J,D.MONTH,I);this.cfg.setProperty(H,G);this.resetRenderers();this.changePageEvent.fire(J,G);},subtractMonths:function(G){this.addMonths(-1*G);},addYears:function(I){var H=B.PAGEDATE.key,J=this.cfg.getProperty(H),G=D.add(J,D.YEAR,I);this.cfg.setProperty(H,G);this.resetRenderers();this.changePageEvent.fire(J,G);},subtractYears:function(G){this.addYears(-1*G);},nextMonth:function(){this.addMonths(1);},previousMonth:function(){this.addMonths(-1);},nextYear:function(){this.addYears(1);},previousYear:function(){this.addYears(-1);},reset:function(){this.cfg.resetProperty(B.SELECTED.key);this.cfg.resetProperty(B.PAGEDATE.key);this.resetEvent.fire();},clear:function(){this.cfg.setProperty(B.SELECTED.key,[]);this.cfg.setProperty(B.PAGEDATE.key,new Date(this.today.getTime()));this.clearEvent.fire();},select:function(I){var L=this._toFieldArray(I),H=[],K=[],M=B.SELECTED.key;for(var G=0;G<L.length;++G){var J=L[G];
-if(!this.isDateOOB(this._toDate(J))){if(H.length===0){this.beforeSelectEvent.fire();K=this.cfg.getProperty(M);}H.push(J);if(this._indexOfSelectedFieldArray(J)==-1){K[K.length]=J;}}}if(H.length>0){if(this.parent){this.parent.cfg.setProperty(M,K);}else{this.cfg.setProperty(M,K);}this.selectEvent.fire(H);}return this.getSelectedDates();},selectCell:function(J){var H=this.cells[J],N=this.cellDates[J],M=this._toDate(N),I=C.hasClass(H,this.Style.CSS_CELL_SELECTABLE);if(I){this.beforeSelectEvent.fire();var L=B.SELECTED.key;var K=this.cfg.getProperty(L);var G=N.concat();if(this._indexOfSelectedFieldArray(G)==-1){K[K.length]=G;}if(this.parent){this.parent.cfg.setProperty(L,K);}else{this.cfg.setProperty(L,K);}this.renderCellStyleSelected(M,H);this.selectEvent.fire([G]);this.doCellMouseOut.call(H,null,this);}return this.getSelectedDates();},deselect:function(K){var G=this._toFieldArray(K),J=[],M=[],N=B.SELECTED.key;for(var H=0;H<G.length;++H){var L=G[H];if(!this.isDateOOB(this._toDate(L))){if(J.length===0){this.beforeDeselectEvent.fire();M=this.cfg.getProperty(N);}J.push(L);var I=this._indexOfSelectedFieldArray(L);if(I!=-1){M.splice(I,1);}}}if(J.length>0){if(this.parent){this.parent.cfg.setProperty(N,M);}else{this.cfg.setProperty(N,M);}this.deselectEvent.fire(J);}return this.getSelectedDates();},deselectCell:function(K){var H=this.cells[K],N=this.cellDates[K],I=this._indexOfSelectedFieldArray(N);var J=C.hasClass(H,this.Style.CSS_CELL_SELECTABLE);if(J){this.beforeDeselectEvent.fire();var L=this.cfg.getProperty(B.SELECTED.key),M=this._toDate(N),G=N.concat();if(I>-1){if(this.cfg.getProperty(B.PAGEDATE.key).getMonth()==M.getMonth()&&this.cfg.getProperty(B.PAGEDATE.key).getFullYear()==M.getFullYear()){C.removeClass(H,this.Style.CSS_CELL_SELECTED);}L.splice(I,1);}if(this.parent){this.parent.cfg.setProperty(B.SELECTED.key,L);}else{this.cfg.setProperty(B.SELECTED.key,L);}this.deselectEvent.fire([G]);}return this.getSelectedDates();},deselectAll:function(){this.beforeDeselectEvent.fire();var J=B.SELECTED.key,G=this.cfg.getProperty(J),H=G.length,I=G.concat();if(this.parent){this.parent.cfg.setProperty(J,[]);}else{this.cfg.setProperty(J,[]);}if(H>0){this.deselectEvent.fire(I);}return this.getSelectedDates();},_toFieldArray:function(H){var G=[];if(H instanceof Date){G=[[H.getFullYear(),H.getMonth()+1,H.getDate()]];}else{if(E.isString(H)){G=this._parseDates(H);}else{if(E.isArray(H)){for(var I=0;I<H.length;++I){var J=H[I];G[G.length]=[J.getFullYear(),J.getMonth()+1,J.getDate()];}}}}return G;},toDate:function(G){return this._toDate(G);},_toDate:function(G){if(G instanceof Date){return G;}else{return D.getDate(G[0],G[1]-1,G[2]);}},_fieldArraysAreEqual:function(I,H){var G=false;if(I[0]==H[0]&&I[1]==H[1]&&I[2]==H[2]){G=true;}return G;},_indexOfSelectedFieldArray:function(K){var J=-1,G=this.cfg.getProperty(B.SELECTED.key);for(var I=0;I<G.length;++I){var H=G[I];if(K[0]==H[0]&&K[1]==H[1]&&K[2]==H[2]){J=I;break;}}return J;},isDateOOM:function(G){return(G.getMonth()!=this.cfg.getProperty(B.PAGEDATE.key).getMonth());},isDateOOB:function(I){var J=this.cfg.getProperty(B.MINDATE.key),K=this.cfg.getProperty(B.MAXDATE.key),H=D;if(J){J=H.clearTime(J);}if(K){K=H.clearTime(K);}var G=new Date(I.getTime());G=H.clearTime(G);return((J&&G.getTime()<J.getTime())||(K&&G.getTime()>K.getTime()));},_parsePageDate:function(G){var J;if(G){if(G instanceof Date){J=D.findMonthStart(G);}else{var K,I,H;H=G.split(this.cfg.getProperty(B.DATE_FIELD_DELIMITER.key));K=parseInt(H[this.cfg.getProperty(B.MY_MONTH_POSITION.key)-1],10)-1;I=parseInt(H[this.cfg.getProperty(B.MY_YEAR_POSITION.key)-1],10)-this.Locale.YEAR_OFFSET;J=D.getDate(I,K,1);}}else{J=D.getDate(this.today.getFullYear(),this.today.getMonth(),1);}return J;},onBeforeSelect:function(){if(this.cfg.getProperty(B.MULTI_SELECT.key)===false){if(this.parent){this.parent.callChildFunction("clearAllBodyCellStyles",this.Style.CSS_CELL_SELECTED);this.parent.deselectAll();}else{this.clearAllBodyCellStyles(this.Style.CSS_CELL_SELECTED);this.deselectAll();}}},onSelect:function(G){},onBeforeDeselect:function(){},onDeselect:function(G){},onChangePage:function(){this.render();},onRender:function(){},onReset:function(){this.render();},onClear:function(){this.render();},validate:function(){return true;},_parseDate:function(I){var J=I.split(this.Locale.DATE_FIELD_DELIMITER),G;if(J.length==2){G=[J[this.Locale.MD_MONTH_POSITION-1],J[this.Locale.MD_DAY_POSITION-1]];G.type=F.MONTH_DAY;}else{G=[J[this.Locale.MDY_YEAR_POSITION-1]-this.Locale.YEAR_OFFSET,J[this.Locale.MDY_MONTH_POSITION-1],J[this.Locale.MDY_DAY_POSITION-1]];G.type=F.DATE;}for(var H=0;H<G.length;H++){G[H]=parseInt(G[H],10);}return G;},_parseDates:function(H){var O=[],N=H.split(this.Locale.DATE_DELIMITER);for(var M=0;M<N.length;++M){var L=N[M];if(L.indexOf(this.Locale.DATE_RANGE_DELIMITER)!=-1){var G=L.split(this.Locale.DATE_RANGE_DELIMITER),K=this._parseDate(G[0]),P=this._parseDate(G[1]),J=this._parseRange(K,P);O=O.concat(J);}else{var I=this._parseDate(L);O.push(I);}}return O;},_parseRange:function(G,K){var H=D.add(D.getDate(G[0],G[1]-1,G[2]),D.DAY,1),J=D.getDate(K[0],K[1]-1,K[2]),I=[];I.push(G);while(H.getTime()<=J.getTime()){I.push([H.getFullYear(),H.getMonth()+1,H.getDate()]);H=D.add(H,D.DAY,1);}return I;},resetRenderers:function(){this.renderStack=this._renderStack.concat();},removeRenderers:function(){this._renderStack=[];this.renderStack=[];},clearElement:function(G){G.innerHTML="&#160;";G.className="";},addRenderer:function(G,H){var J=this._parseDates(G);for(var I=0;I<J.length;++I){var K=J[I];if(K.length==2){if(K[0] instanceof Array){this._addRenderer(F.RANGE,K,H);}else{this._addRenderer(F.MONTH_DAY,K,H);}}else{if(K.length==3){this._addRenderer(F.DATE,K,H);}}}},_addRenderer:function(H,I,G){var J=[H,I,G];this.renderStack.unshift(J);this._renderStack=this.renderStack.concat();},addMonthRenderer:function(H,G){this._addRenderer(F.MONTH,[H],G);},addWeekdayRenderer:function(H,G){this._addRenderer(F.WEEKDAY,[H],G);},clearAllBodyCellStyles:function(G){for(var H=0;
-H<this.cells.length;++H){C.removeClass(this.cells[H],G);}},setMonth:function(I){var G=B.PAGEDATE.key,H=this.cfg.getProperty(G);H.setMonth(parseInt(I,10));this.cfg.setProperty(G,H);},setYear:function(H){var G=B.PAGEDATE.key,I=this.cfg.getProperty(G);I.setFullYear(parseInt(H,10)-this.Locale.YEAR_OFFSET);this.cfg.setProperty(G,I);},getSelectedDates:function(){var I=[],H=this.cfg.getProperty(B.SELECTED.key);for(var K=0;K<H.length;++K){var J=H[K];var G=D.getDate(J[0],J[1]-1,J[2]);I.push(G);}I.sort(function(M,L){return M-L;});return I;},hide:function(){if(this.beforeHideEvent.fire()){this.oDomContainer.style.display="none";this.hideEvent.fire();}},show:function(){if(this.beforeShowEvent.fire()){this.oDomContainer.style.display="block";this.showEvent.fire();}},browser:(function(){var G=navigator.userAgent.toLowerCase();if(G.indexOf("opera")!=-1){return"opera";}else{if(G.indexOf("msie 7")!=-1){return"ie7";}else{if(G.indexOf("msie")!=-1){return"ie";}else{if(G.indexOf("safari")!=-1){return"safari";}else{if(G.indexOf("gecko")!=-1){return"gecko";}else{return false;}}}}}})(),toString:function(){return"Calendar "+this.id;},destroy:function(){if(this.beforeDestroyEvent.fire()){var G=this;if(G.navigator){G.navigator.destroy();}if(G.cfg){G.cfg.destroy();}A.purgeElement(G.oDomContainer,true);C.removeClass(G.oDomContainer,G.Style.CSS_WITH_TITLE);C.removeClass(G.oDomContainer,G.Style.CSS_CONTAINER);C.removeClass(G.oDomContainer,G.Style.CSS_SINGLE);G.oDomContainer.innerHTML="";G.oDomContainer=null;G.cells=null;this.destroyEvent.fire();}}};YAHOO.widget.Calendar=F;YAHOO.widget.Calendar_Core=YAHOO.widget.Calendar;YAHOO.widget.Cal_Core=YAHOO.widget.Calendar;})();(function(){var D=YAHOO.util.Dom,F=YAHOO.widget.DateMath,A=YAHOO.util.Event,E=YAHOO.lang,G=YAHOO.widget.Calendar;function B(J,H,I){if(arguments.length>0){this.init.apply(this,arguments);}}B.DEFAULT_CONFIG=B._DEFAULT_CONFIG=G.DEFAULT_CONFIG;B.DEFAULT_CONFIG.PAGES={key:"pages",value:2};var C=B.DEFAULT_CONFIG;B.prototype={init:function(K,I,J){var H=this._parseArgs(arguments);K=H.id;I=H.container;J=H.config;this.oDomContainer=D.get(I);if(!this.oDomContainer.id){this.oDomContainer.id=D.generateId();}if(!K){K=this.oDomContainer.id+"_t";}this.id=K;this.containerId=this.oDomContainer.id;this.initEvents();this.initStyles();this.pages=[];D.addClass(this.oDomContainer,B.CSS_CONTAINER);D.addClass(this.oDomContainer,B.CSS_MULTI_UP);this.cfg=new YAHOO.util.Config(this);this.Options={};this.Locale={};this.setupConfig();if(J){this.cfg.applyConfig(J,true);}this.cfg.fireQueue();if(YAHOO.env.ua.opera){this.renderEvent.subscribe(this._fixWidth,this,true);this.showEvent.subscribe(this._fixWidth,this,true);}},setupConfig:function(){var H=this.cfg;H.addProperty(C.PAGES.key,{value:C.PAGES.value,validator:H.checkNumber,handler:this.configPages});H.addProperty(C.YEAR_OFFSET.key,{value:C.YEAR_OFFSET.value,handler:this.delegateConfig,supercedes:C.YEAR_OFFSET.supercedes,suppressEvent:true});H.addProperty(C.TODAY.key,{value:new Date(C.TODAY.value.getTime()),supercedes:C.TODAY.supercedes,handler:this.configToday,suppressEvent:false});H.addProperty(C.PAGEDATE.key,{value:C.PAGEDATE.value||new Date(C.TODAY.value.getTime()),handler:this.configPageDate});H.addProperty(C.SELECTED.key,{value:[],handler:this.configSelected});H.addProperty(C.TITLE.key,{value:C.TITLE.value,handler:this.configTitle});H.addProperty(C.CLOSE.key,{value:C.CLOSE.value,handler:this.configClose});H.addProperty(C.IFRAME.key,{value:C.IFRAME.value,handler:this.configIframe,validator:H.checkBoolean});H.addProperty(C.MINDATE.key,{value:C.MINDATE.value,handler:this.delegateConfig});H.addProperty(C.MAXDATE.key,{value:C.MAXDATE.value,handler:this.delegateConfig});H.addProperty(C.MULTI_SELECT.key,{value:C.MULTI_SELECT.value,handler:this.delegateConfig,validator:H.checkBoolean});H.addProperty(C.START_WEEKDAY.key,{value:C.START_WEEKDAY.value,handler:this.delegateConfig,validator:H.checkNumber});H.addProperty(C.SHOW_WEEKDAYS.key,{value:C.SHOW_WEEKDAYS.value,handler:this.delegateConfig,validator:H.checkBoolean});H.addProperty(C.SHOW_WEEK_HEADER.key,{value:C.SHOW_WEEK_HEADER.value,handler:this.delegateConfig,validator:H.checkBoolean});H.addProperty(C.SHOW_WEEK_FOOTER.key,{value:C.SHOW_WEEK_FOOTER.value,handler:this.delegateConfig,validator:H.checkBoolean});H.addProperty(C.HIDE_BLANK_WEEKS.key,{value:C.HIDE_BLANK_WEEKS.value,handler:this.delegateConfig,validator:H.checkBoolean});H.addProperty(C.NAV_ARROW_LEFT.key,{value:C.NAV_ARROW_LEFT.value,handler:this.delegateConfig});H.addProperty(C.NAV_ARROW_RIGHT.key,{value:C.NAV_ARROW_RIGHT.value,handler:this.delegateConfig});H.addProperty(C.MONTHS_SHORT.key,{value:C.MONTHS_SHORT.value,handler:this.delegateConfig});H.addProperty(C.MONTHS_LONG.key,{value:C.MONTHS_LONG.value,handler:this.delegateConfig});H.addProperty(C.WEEKDAYS_1CHAR.key,{value:C.WEEKDAYS_1CHAR.value,handler:this.delegateConfig});H.addProperty(C.WEEKDAYS_SHORT.key,{value:C.WEEKDAYS_SHORT.value,handler:this.delegateConfig});H.addProperty(C.WEEKDAYS_MEDIUM.key,{value:C.WEEKDAYS_MEDIUM.value,handler:this.delegateConfig});H.addProperty(C.WEEKDAYS_LONG.key,{value:C.WEEKDAYS_LONG.value,handler:this.delegateConfig});H.addProperty(C.LOCALE_MONTHS.key,{value:C.LOCALE_MONTHS.value,handler:this.delegateConfig});H.addProperty(C.LOCALE_WEEKDAYS.key,{value:C.LOCALE_WEEKDAYS.value,handler:this.delegateConfig});H.addProperty(C.DATE_DELIMITER.key,{value:C.DATE_DELIMITER.value,handler:this.delegateConfig});H.addProperty(C.DATE_FIELD_DELIMITER.key,{value:C.DATE_FIELD_DELIMITER.value,handler:this.delegateConfig});H.addProperty(C.DATE_RANGE_DELIMITER.key,{value:C.DATE_RANGE_DELIMITER.value,handler:this.delegateConfig});H.addProperty(C.MY_MONTH_POSITION.key,{value:C.MY_MONTH_POSITION.value,handler:this.delegateConfig,validator:H.checkNumber});H.addProperty(C.MY_YEAR_POSITION.key,{value:C.MY_YEAR_POSITION.value,handler:this.delegateConfig,validator:H.checkNumber});H.addProperty(C.MD_MONTH_POSITION.key,{value:C.MD_MONTH_POSITION.value,handler:this.delegateConfig,validator:H.checkNumber});
-H.addProperty(C.MD_DAY_POSITION.key,{value:C.MD_DAY_POSITION.value,handler:this.delegateConfig,validator:H.checkNumber});H.addProperty(C.MDY_MONTH_POSITION.key,{value:C.MDY_MONTH_POSITION.value,handler:this.delegateConfig,validator:H.checkNumber});H.addProperty(C.MDY_DAY_POSITION.key,{value:C.MDY_DAY_POSITION.value,handler:this.delegateConfig,validator:H.checkNumber});H.addProperty(C.MDY_YEAR_POSITION.key,{value:C.MDY_YEAR_POSITION.value,handler:this.delegateConfig,validator:H.checkNumber});H.addProperty(C.MY_LABEL_MONTH_POSITION.key,{value:C.MY_LABEL_MONTH_POSITION.value,handler:this.delegateConfig,validator:H.checkNumber});H.addProperty(C.MY_LABEL_YEAR_POSITION.key,{value:C.MY_LABEL_YEAR_POSITION.value,handler:this.delegateConfig,validator:H.checkNumber});H.addProperty(C.MY_LABEL_MONTH_SUFFIX.key,{value:C.MY_LABEL_MONTH_SUFFIX.value,handler:this.delegateConfig});H.addProperty(C.MY_LABEL_YEAR_SUFFIX.key,{value:C.MY_LABEL_YEAR_SUFFIX.value,handler:this.delegateConfig});H.addProperty(C.NAV.key,{value:C.NAV.value,handler:this.configNavigator});H.addProperty(C.STRINGS.key,{value:C.STRINGS.value,handler:this.configStrings,validator:function(I){return E.isObject(I);},supercedes:C.STRINGS.supercedes});},initEvents:function(){var J=this,L="Event",M=YAHOO.util.CustomEvent;var I=function(O,R,N){for(var Q=0;Q<J.pages.length;++Q){var P=J.pages[Q];P[this.type+L].subscribe(O,R,N);}};var H=function(N,Q){for(var P=0;P<J.pages.length;++P){var O=J.pages[P];O[this.type+L].unsubscribe(N,Q);}};var K=G._EVENT_TYPES;J.beforeSelectEvent=new M(K.BEFORE_SELECT);J.beforeSelectEvent.subscribe=I;J.beforeSelectEvent.unsubscribe=H;J.selectEvent=new M(K.SELECT);J.selectEvent.subscribe=I;J.selectEvent.unsubscribe=H;J.beforeDeselectEvent=new M(K.BEFORE_DESELECT);J.beforeDeselectEvent.subscribe=I;J.beforeDeselectEvent.unsubscribe=H;J.deselectEvent=new M(K.DESELECT);J.deselectEvent.subscribe=I;J.deselectEvent.unsubscribe=H;J.changePageEvent=new M(K.CHANGE_PAGE);J.changePageEvent.subscribe=I;J.changePageEvent.unsubscribe=H;J.beforeRenderEvent=new M(K.BEFORE_RENDER);J.beforeRenderEvent.subscribe=I;J.beforeRenderEvent.unsubscribe=H;J.renderEvent=new M(K.RENDER);J.renderEvent.subscribe=I;J.renderEvent.unsubscribe=H;J.resetEvent=new M(K.RESET);J.resetEvent.subscribe=I;J.resetEvent.unsubscribe=H;J.clearEvent=new M(K.CLEAR);J.clearEvent.subscribe=I;J.clearEvent.unsubscribe=H;J.beforeShowEvent=new M(K.BEFORE_SHOW);J.showEvent=new M(K.SHOW);J.beforeHideEvent=new M(K.BEFORE_HIDE);J.hideEvent=new M(K.HIDE);J.beforeShowNavEvent=new M(K.BEFORE_SHOW_NAV);J.showNavEvent=new M(K.SHOW_NAV);J.beforeHideNavEvent=new M(K.BEFORE_HIDE_NAV);J.hideNavEvent=new M(K.HIDE_NAV);J.beforeRenderNavEvent=new M(K.BEFORE_RENDER_NAV);J.renderNavEvent=new M(K.RENDER_NAV);J.beforeDestroyEvent=new M(K.BEFORE_DESTROY);J.destroyEvent=new M(K.DESTROY);},configPages:function(T,R,N){var L=R[0],J=C.PAGEDATE.key,W="_",M,O=null,S="groupcal",V="first-of-type",K="last-of-type";for(var I=0;I<L;++I){var U=this.id+W+I,Q=this.containerId+W+I,P=this.cfg.getConfig();P.close=false;P.title=false;P.navigator=null;if(I>0){M=new Date(O);this._setMonthOnDate(M,M.getMonth()+I);P.pageDate=M;}var H=this.constructChild(U,Q,P);D.removeClass(H.oDomContainer,this.Style.CSS_SINGLE);D.addClass(H.oDomContainer,S);if(I===0){O=H.cfg.getProperty(J);D.addClass(H.oDomContainer,V);}if(I==(L-1)){D.addClass(H.oDomContainer,K);}H.parent=this;H.index=I;this.pages[this.pages.length]=H;}},configPageDate:function(O,N,L){var J=N[0],M;var K=C.PAGEDATE.key;for(var I=0;I<this.pages.length;++I){var H=this.pages[I];if(I===0){M=H._parsePageDate(J);H.cfg.setProperty(K,M);}else{var P=new Date(M);this._setMonthOnDate(P,P.getMonth()+I);H.cfg.setProperty(K,P);}}},configSelected:function(J,H,L){var K=C.SELECTED.key;this.delegateConfig(J,H,L);var I=(this.pages.length>0)?this.pages[0].cfg.getProperty(K):[];this.cfg.setProperty(K,I,true);},delegateConfig:function(I,H,L){var M=H[0];var K;for(var J=0;J<this.pages.length;J++){K=this.pages[J];K.cfg.setProperty(I,M);}},setChildFunction:function(K,I){var H=this.cfg.getProperty(C.PAGES.key);for(var J=0;J<H;++J){this.pages[J][K]=I;}},callChildFunction:function(M,I){var H=this.cfg.getProperty(C.PAGES.key);for(var L=0;L<H;++L){var K=this.pages[L];if(K[M]){var J=K[M];J.call(K,I);}}},constructChild:function(K,I,J){var H=document.getElementById(I);if(!H){H=document.createElement("div");H.id=I;this.oDomContainer.appendChild(H);}return new G(K,I,J);},setMonth:function(L){L=parseInt(L,10);var M;var I=C.PAGEDATE.key;for(var K=0;K<this.pages.length;++K){var J=this.pages[K];var H=J.cfg.getProperty(I);if(K===0){M=H.getFullYear();}else{H.setFullYear(M);}this._setMonthOnDate(H,L+K);J.cfg.setProperty(I,H);}},setYear:function(J){var I=C.PAGEDATE.key;J=parseInt(J,10);for(var L=0;L<this.pages.length;++L){var K=this.pages[L];var H=K.cfg.getProperty(I);if((H.getMonth()+1)==1&&L>0){J+=1;}K.setYear(J);}},render:function(){this.renderHeader();for(var I=0;I<this.pages.length;++I){var H=this.pages[I];H.render();}this.renderFooter();},select:function(H){for(var J=0;J<this.pages.length;++J){var I=this.pages[J];I.select(H);}return this.getSelectedDates();},selectCell:function(H){for(var J=0;J<this.pages.length;++J){var I=this.pages[J];I.selectCell(H);}return this.getSelectedDates();},deselect:function(H){for(var J=0;J<this.pages.length;++J){var I=this.pages[J];I.deselect(H);}return this.getSelectedDates();},deselectAll:function(){for(var I=0;I<this.pages.length;++I){var H=this.pages[I];H.deselectAll();}return this.getSelectedDates();},deselectCell:function(H){for(var J=0;J<this.pages.length;++J){var I=this.pages[J];I.deselectCell(H);}return this.getSelectedDates();},reset:function(){for(var I=0;I<this.pages.length;++I){var H=this.pages[I];H.reset();}},clear:function(){for(var I=0;I<this.pages.length;++I){var H=this.pages[I];H.clear();}this.cfg.setProperty(C.SELECTED.key,[]);this.cfg.setProperty(C.PAGEDATE.key,new Date(this.pages[0].today.getTime()));this.render();},nextMonth:function(){for(var I=0;I<this.pages.length;
-++I){var H=this.pages[I];H.nextMonth();}},previousMonth:function(){for(var I=this.pages.length-1;I>=0;--I){var H=this.pages[I];H.previousMonth();}},nextYear:function(){for(var I=0;I<this.pages.length;++I){var H=this.pages[I];H.nextYear();}},previousYear:function(){for(var I=0;I<this.pages.length;++I){var H=this.pages[I];H.previousYear();}},getSelectedDates:function(){var J=[];var I=this.cfg.getProperty(C.SELECTED.key);for(var L=0;L<I.length;++L){var K=I[L];var H=F.getDate(K[0],K[1]-1,K[2]);J.push(H);}J.sort(function(N,M){return N-M;});return J;},addRenderer:function(H,I){for(var K=0;K<this.pages.length;++K){var J=this.pages[K];J.addRenderer(H,I);}},addMonthRenderer:function(K,H){for(var J=0;J<this.pages.length;++J){var I=this.pages[J];I.addMonthRenderer(K,H);}},addWeekdayRenderer:function(I,H){for(var K=0;K<this.pages.length;++K){var J=this.pages[K];J.addWeekdayRenderer(I,H);}},removeRenderers:function(){this.callChildFunction("removeRenderers");},renderHeader:function(){},renderFooter:function(){},addMonths:function(H){this.callChildFunction("addMonths",H);},subtractMonths:function(H){this.callChildFunction("subtractMonths",H);},addYears:function(H){this.callChildFunction("addYears",H);},subtractYears:function(H){this.callChildFunction("subtractYears",H);},getCalendarPage:function(K){var M=null;if(K){var N=K.getFullYear(),J=K.getMonth();var I=this.pages;for(var L=0;L<I.length;++L){var H=I[L].cfg.getProperty("pagedate");if(H.getFullYear()===N&&H.getMonth()===J){M=I[L];break;}}}return M;},_setMonthOnDate:function(I,J){if(YAHOO.env.ua.webkit&&YAHOO.env.ua.webkit<420&&(J<0||J>11)){var H=F.add(I,F.MONTH,J-I.getMonth());I.setTime(H.getTime());}else{I.setMonth(J);}},_fixWidth:function(){var H=0;for(var J=0;J<this.pages.length;++J){var I=this.pages[J];H+=I.oDomContainer.offsetWidth;}if(H>0){this.oDomContainer.style.width=H+"px";}},toString:function(){return"CalendarGroup "+this.id;},destroy:function(){if(this.beforeDestroyEvent.fire()){var J=this;if(J.navigator){J.navigator.destroy();}if(J.cfg){J.cfg.destroy();}A.purgeElement(J.oDomContainer,true);D.removeClass(J.oDomContainer,B.CSS_CONTAINER);D.removeClass(J.oDomContainer,B.CSS_MULTI_UP);for(var I=0,H=J.pages.length;I<H;I++){J.pages[I].destroy();J.pages[I]=null;}J.oDomContainer.innerHTML="";J.oDomContainer=null;this.destroyEvent.fire();}}};B.CSS_CONTAINER="yui-calcontainer";B.CSS_MULTI_UP="multi";B.CSS_2UPTITLE="title";B.CSS_2UPCLOSE="close-icon";YAHOO.lang.augmentProto(B,G,"buildDayLabel","buildMonthLabel","renderOutOfBoundsDate","renderRowHeader","renderRowFooter","renderCellDefault","styleCellDefault","renderCellStyleHighlight1","renderCellStyleHighlight2","renderCellStyleHighlight3","renderCellStyleHighlight4","renderCellStyleToday","renderCellStyleSelected","renderCellNotThisMonth","renderBodyCellRestricted","initStyles","configTitle","configClose","configIframe","configStrings","configToday","configNavigator","createTitleBar","createCloseButton","removeTitleBar","removeCloseButton","hide","show","toDate","_toDate","_parseArgs","browser");YAHOO.widget.CalGrp=B;YAHOO.widget.CalendarGroup=B;YAHOO.widget.Calendar2up=function(J,H,I){this.init(J,H,I);};YAHOO.extend(YAHOO.widget.Calendar2up,B);YAHOO.widget.Cal2up=YAHOO.widget.Calendar2up;})();YAHOO.widget.CalendarNavigator=function(A){this.init(A);};(function(){var A=YAHOO.widget.CalendarNavigator;A.CLASSES={NAV:"yui-cal-nav",NAV_VISIBLE:"yui-cal-nav-visible",MASK:"yui-cal-nav-mask",YEAR:"yui-cal-nav-y",MONTH:"yui-cal-nav-m",BUTTONS:"yui-cal-nav-b",BUTTON:"yui-cal-nav-btn",ERROR:"yui-cal-nav-e",YEAR_CTRL:"yui-cal-nav-yc",MONTH_CTRL:"yui-cal-nav-mc",INVALID:"yui-invalid",DEFAULT:"yui-default"};A.DEFAULT_CONFIG={strings:{month:"Month",year:"Year",submit:"Okay",cancel:"Cancel",invalidYear:"Year needs to be a number"},monthFormat:YAHOO.widget.Calendar.LONG,initialFocus:"year"};A._DEFAULT_CFG=A.DEFAULT_CONFIG;A.ID_SUFFIX="_nav";A.MONTH_SUFFIX="_month";A.YEAR_SUFFIX="_year";A.ERROR_SUFFIX="_error";A.CANCEL_SUFFIX="_cancel";A.SUBMIT_SUFFIX="_submit";A.YR_MAX_DIGITS=4;A.YR_MINOR_INC=1;A.YR_MAJOR_INC=10;A.UPDATE_DELAY=50;A.YR_PATTERN=/^\d+$/;A.TRIM=/^\s*(.*?)\s*$/;})();YAHOO.widget.CalendarNavigator.prototype={id:null,cal:null,navEl:null,maskEl:null,yearEl:null,monthEl:null,errorEl:null,submitEl:null,cancelEl:null,firstCtrl:null,lastCtrl:null,_doc:null,_year:null,_month:0,__rendered:false,init:function(A){var C=A.oDomContainer;this.cal=A;this.id=C.id+YAHOO.widget.CalendarNavigator.ID_SUFFIX;this._doc=C.ownerDocument;var B=YAHOO.env.ua.ie;this.__isIEQuirks=(B&&((B<=6)||(this._doc.compatMode=="BackCompat")));},show:function(){var A=YAHOO.widget.CalendarNavigator.CLASSES;if(this.cal.beforeShowNavEvent.fire()){if(!this.__rendered){this.render();}this.clearErrors();this._updateMonthUI();this._updateYearUI();this._show(this.navEl,true);this.setInitialFocus();this.showMask();YAHOO.util.Dom.addClass(this.cal.oDomContainer,A.NAV_VISIBLE);this.cal.showNavEvent.fire();}},hide:function(){var A=YAHOO.widget.CalendarNavigator.CLASSES;if(this.cal.beforeHideNavEvent.fire()){this._show(this.navEl,false);this.hideMask();YAHOO.util.Dom.removeClass(this.cal.oDomContainer,A.NAV_VISIBLE);this.cal.hideNavEvent.fire();}},showMask:function(){this._show(this.maskEl,true);if(this.__isIEQuirks){this._syncMask();}},hideMask:function(){this._show(this.maskEl,false);},getMonth:function(){return this._month;},getYear:function(){return this._year;},setMonth:function(A){if(A>=0&&A<12){this._month=A;}this._updateMonthUI();},setYear:function(B){var A=YAHOO.widget.CalendarNavigator.YR_PATTERN;if(YAHOO.lang.isNumber(B)&&A.test(B+"")){this._year=B;}this._updateYearUI();},render:function(){this.cal.beforeRenderNavEvent.fire();if(!this.__rendered){this.createNav();this.createMask();this.applyListeners();this.__rendered=true;}this.cal.renderNavEvent.fire();},createNav:function(){var B=YAHOO.widget.CalendarNavigator;var C=this._doc;var D=C.createElement("div");D.className=B.CLASSES.NAV;var A=this.renderNavContents([]);D.innerHTML=A.join("");this.cal.oDomContainer.appendChild(D);
-this.navEl=D;this.yearEl=C.getElementById(this.id+B.YEAR_SUFFIX);this.monthEl=C.getElementById(this.id+B.MONTH_SUFFIX);this.errorEl=C.getElementById(this.id+B.ERROR_SUFFIX);this.submitEl=C.getElementById(this.id+B.SUBMIT_SUFFIX);this.cancelEl=C.getElementById(this.id+B.CANCEL_SUFFIX);if(YAHOO.env.ua.gecko&&this.yearEl&&this.yearEl.type=="text"){this.yearEl.setAttribute("autocomplete","off");}this._setFirstLastElements();},createMask:function(){var B=YAHOO.widget.CalendarNavigator.CLASSES;var A=this._doc.createElement("div");A.className=B.MASK;this.cal.oDomContainer.appendChild(A);this.maskEl=A;},_syncMask:function(){var B=this.cal.oDomContainer;if(B&&this.maskEl){var A=YAHOO.util.Dom.getRegion(B);YAHOO.util.Dom.setStyle(this.maskEl,"width",A.right-A.left+"px");YAHOO.util.Dom.setStyle(this.maskEl,"height",A.bottom-A.top+"px");}},renderNavContents:function(A){var D=YAHOO.widget.CalendarNavigator,E=D.CLASSES,B=A;B[B.length]='<div class="'+E.MONTH+'">';this.renderMonth(B);B[B.length]="</div>";B[B.length]='<div class="'+E.YEAR+'">';this.renderYear(B);B[B.length]="</div>";B[B.length]='<div class="'+E.BUTTONS+'">';this.renderButtons(B);B[B.length]="</div>";B[B.length]='<div class="'+E.ERROR+'" id="'+this.id+D.ERROR_SUFFIX+'"></div>';return B;},renderMonth:function(D){var G=YAHOO.widget.CalendarNavigator,H=G.CLASSES;var I=this.id+G.MONTH_SUFFIX,F=this.__getCfg("monthFormat"),A=this.cal.cfg.getProperty((F==YAHOO.widget.Calendar.SHORT)?"MONTHS_SHORT":"MONTHS_LONG"),E=D;if(A&&A.length>0){E[E.length]='<label for="'+I+'">';E[E.length]=this.__getCfg("month",true);E[E.length]="</label>";E[E.length]='<select name="'+I+'" id="'+I+'" class="'+H.MONTH_CTRL+'">';for(var B=0;B<A.length;B++){E[E.length]='<option value="'+B+'">';E[E.length]=A[B];E[E.length]="</option>";}E[E.length]="</select>";}return E;},renderYear:function(B){var E=YAHOO.widget.CalendarNavigator,F=E.CLASSES;var G=this.id+E.YEAR_SUFFIX,A=E.YR_MAX_DIGITS,D=B;D[D.length]='<label for="'+G+'">';D[D.length]=this.__getCfg("year",true);D[D.length]="</label>";D[D.length]='<input type="text" name="'+G+'" id="'+G+'" class="'+F.YEAR_CTRL+'" maxlength="'+A+'"/>';return D;},renderButtons:function(A){var D=YAHOO.widget.CalendarNavigator.CLASSES;var B=A;B[B.length]='<span class="'+D.BUTTON+" "+D.DEFAULT+'">';B[B.length]='<button type="button" id="'+this.id+"_submit"+'">';B[B.length]=this.__getCfg("submit",true);B[B.length]="</button>";B[B.length]="</span>";B[B.length]='<span class="'+D.BUTTON+'">';B[B.length]='<button type="button" id="'+this.id+"_cancel"+'">';B[B.length]=this.__getCfg("cancel",true);B[B.length]="</button>";B[B.length]="</span>";return B;},applyListeners:function(){var B=YAHOO.util.Event;function A(){if(this.validate()){this.setYear(this._getYearFromUI());}}function C(){this.setMonth(this._getMonthFromUI());}B.on(this.submitEl,"click",this.submit,this,true);B.on(this.cancelEl,"click",this.cancel,this,true);B.on(this.yearEl,"blur",A,this,true);B.on(this.monthEl,"change",C,this,true);if(this.__isIEQuirks){YAHOO.util.Event.on(this.cal.oDomContainer,"resize",this._syncMask,this,true);}this.applyKeyListeners();},purgeListeners:function(){var A=YAHOO.util.Event;A.removeListener(this.submitEl,"click",this.submit);A.removeListener(this.cancelEl,"click",this.cancel);A.removeListener(this.yearEl,"blur");A.removeListener(this.monthEl,"change");if(this.__isIEQuirks){A.removeListener(this.cal.oDomContainer,"resize",this._syncMask);}this.purgeKeyListeners();},applyKeyListeners:function(){var D=YAHOO.util.Event,A=YAHOO.env.ua;var C=(A.ie||A.webkit)?"keydown":"keypress";var B=(A.ie||A.opera||A.webkit)?"keydown":"keypress";D.on(this.yearEl,"keypress",this._handleEnterKey,this,true);D.on(this.yearEl,C,this._handleDirectionKeys,this,true);D.on(this.lastCtrl,B,this._handleTabKey,this,true);D.on(this.firstCtrl,B,this._handleShiftTabKey,this,true);},purgeKeyListeners:function(){var D=YAHOO.util.Event,A=YAHOO.env.ua;var C=(A.ie||A.webkit)?"keydown":"keypress";var B=(A.ie||A.opera||A.webkit)?"keydown":"keypress";D.removeListener(this.yearEl,"keypress",this._handleEnterKey);D.removeListener(this.yearEl,C,this._handleDirectionKeys);D.removeListener(this.lastCtrl,B,this._handleTabKey);D.removeListener(this.firstCtrl,B,this._handleShiftTabKey);},submit:function(){if(this.validate()){this.hide();this.setMonth(this._getMonthFromUI());this.setYear(this._getYearFromUI());var B=this.cal;var A=YAHOO.widget.CalendarNavigator.UPDATE_DELAY;if(A>0){var C=this;window.setTimeout(function(){C._update(B);},A);}else{this._update(B);}}},_update:function(B){var A=YAHOO.widget.DateMath.getDate(this.getYear()-B.cfg.getProperty("YEAR_OFFSET"),this.getMonth(),1);B.cfg.setProperty("pagedate",A);B.render();},cancel:function(){this.hide();},validate:function(){if(this._getYearFromUI()!==null){this.clearErrors();return true;}else{this.setYearError();this.setError(this.__getCfg("invalidYear",true));return false;}},setError:function(A){if(this.errorEl){this.errorEl.innerHTML=A;this._show(this.errorEl,true);}},clearError:function(){if(this.errorEl){this.errorEl.innerHTML="";this._show(this.errorEl,false);}},setYearError:function(){YAHOO.util.Dom.addClass(this.yearEl,YAHOO.widget.CalendarNavigator.CLASSES.INVALID);},clearYearError:function(){YAHOO.util.Dom.removeClass(this.yearEl,YAHOO.widget.CalendarNavigator.CLASSES.INVALID);},clearErrors:function(){this.clearError();this.clearYearError();},setInitialFocus:function(){var A=this.submitEl,C=this.__getCfg("initialFocus");if(C&&C.toLowerCase){C=C.toLowerCase();if(C=="year"){A=this.yearEl;try{this.yearEl.select();}catch(B){}}else{if(C=="month"){A=this.monthEl;}}}if(A&&YAHOO.lang.isFunction(A.focus)){try{A.focus();}catch(D){}}},erase:function(){if(this.__rendered){this.purgeListeners();this.yearEl=null;this.monthEl=null;this.errorEl=null;this.submitEl=null;this.cancelEl=null;this.firstCtrl=null;this.lastCtrl=null;if(this.navEl){this.navEl.innerHTML="";}var B=this.navEl.parentNode;if(B){B.removeChild(this.navEl);}this.navEl=null;var A=this.maskEl.parentNode;
-if(A){A.removeChild(this.maskEl);}this.maskEl=null;this.__rendered=false;}},destroy:function(){this.erase();this._doc=null;this.cal=null;this.id=null;},_show:function(B,A){if(B){YAHOO.util.Dom.setStyle(B,"display",(A)?"block":"none");}},_getMonthFromUI:function(){if(this.monthEl){return this.monthEl.selectedIndex;}else{return 0;}},_getYearFromUI:function(){var B=YAHOO.widget.CalendarNavigator;var A=null;if(this.yearEl){var C=this.yearEl.value;C=C.replace(B.TRIM,"$1");if(B.YR_PATTERN.test(C)){A=parseInt(C,10);}}return A;},_updateYearUI:function(){if(this.yearEl&&this._year!==null){this.yearEl.value=this._year;}},_updateMonthUI:function(){if(this.monthEl){this.monthEl.selectedIndex=this._month;}},_setFirstLastElements:function(){this.firstCtrl=this.monthEl;this.lastCtrl=this.cancelEl;if(this.__isMac){if(YAHOO.env.ua.webkit&&YAHOO.env.ua.webkit<420){this.firstCtrl=this.monthEl;this.lastCtrl=this.yearEl;}if(YAHOO.env.ua.gecko){this.firstCtrl=this.yearEl;this.lastCtrl=this.yearEl;}}},_handleEnterKey:function(B){var A=YAHOO.util.KeyListener.KEY;if(YAHOO.util.Event.getCharCode(B)==A.ENTER){YAHOO.util.Event.preventDefault(B);this.submit();}},_handleDirectionKeys:function(H){var G=YAHOO.util.Event,A=YAHOO.util.KeyListener.KEY,D=YAHOO.widget.CalendarNavigator;var F=(this.yearEl.value)?parseInt(this.yearEl.value,10):null;if(isFinite(F)){var B=false;switch(G.getCharCode(H)){case A.UP:this.yearEl.value=F+D.YR_MINOR_INC;B=true;break;case A.DOWN:this.yearEl.value=Math.max(F-D.YR_MINOR_INC,0);B=true;break;case A.PAGE_UP:this.yearEl.value=F+D.YR_MAJOR_INC;B=true;break;case A.PAGE_DOWN:this.yearEl.value=Math.max(F-D.YR_MAJOR_INC,0);B=true;break;default:break;}if(B){G.preventDefault(H);try{this.yearEl.select();}catch(C){}}}},_handleTabKey:function(D){var C=YAHOO.util.Event,A=YAHOO.util.KeyListener.KEY;if(C.getCharCode(D)==A.TAB&&!D.shiftKey){try{C.preventDefault(D);this.firstCtrl.focus();}catch(B){}}},_handleShiftTabKey:function(D){var C=YAHOO.util.Event,A=YAHOO.util.KeyListener.KEY;if(D.shiftKey&&C.getCharCode(D)==A.TAB){try{C.preventDefault(D);this.lastCtrl.focus();}catch(B){}}},__getCfg:function(D,B){var C=YAHOO.widget.CalendarNavigator.DEFAULT_CONFIG;var A=this.cal.cfg.getProperty("navigator");if(B){return(A!==true&&A.strings&&A.strings[D])?A.strings[D]:C.strings[D];}else{return(A!==true&&A[D])?A[D]:C[D];}},__isMac:(navigator.userAgent.toLowerCase().indexOf("macintosh")!=-1)};YAHOO.register("calendar",YAHOO.widget.Calendar,{version:"2.8.0r4",build:"2449"});
\ No newline at end of file
diff --git a/koha-tmpl/intranet-tmpl/prog/en/lib/yui/calendar/calendar.js b/koha-tmpl/intranet-tmpl/prog/en/lib/yui/calendar/calendar.js
deleted file mode 100644 (file)
index e52f2af..0000000
+++ /dev/null
@@ -1,7294 +0,0 @@
-/*
-Copyright (c) 2009, Yahoo! Inc. All rights reserved.
-Code licensed under the BSD License:
-http://developer.yahoo.net/yui/license.txt
-version: 2.8.0r4
-*/
-(function () {
-
-    /**
-    * Config is a utility used within an Object to allow the implementer to
-    * maintain a list of local configuration properties and listen for changes 
-    * to those properties dynamically using CustomEvent. The initial values are 
-    * also maintained so that the configuration can be reset at any given point 
-    * to its initial state.
-    * @namespace YAHOO.util
-    * @class Config
-    * @constructor
-    * @param {Object} owner The owner Object to which this Config Object belongs
-    */
-    YAHOO.util.Config = function (owner) {
-
-        if (owner) {
-            this.init(owner);
-        }
-
-
-    };
-
-
-    var Lang = YAHOO.lang,
-        CustomEvent = YAHOO.util.CustomEvent,
-        Config = YAHOO.util.Config;
-
-
-    /**
-     * Constant representing the CustomEvent type for the config changed event.
-     * @property YAHOO.util.Config.CONFIG_CHANGED_EVENT
-     * @private
-     * @static
-     * @final
-     */
-    Config.CONFIG_CHANGED_EVENT = "configChanged";
-    
-    /**
-     * Constant representing the boolean type string
-     * @property YAHOO.util.Config.BOOLEAN_TYPE
-     * @private
-     * @static
-     * @final
-     */
-    Config.BOOLEAN_TYPE = "boolean";
-    
-    Config.prototype = {
-     
-        /**
-        * Object reference to the owner of this Config Object
-        * @property owner
-        * @type Object
-        */
-        owner: null,
-        
-        /**
-        * Boolean flag that specifies whether a queue is currently 
-        * being executed
-        * @property queueInProgress
-        * @type Boolean
-        */
-        queueInProgress: false,
-        
-        /**
-        * Maintains the local collection of configuration property objects and 
-        * their specified values
-        * @property config
-        * @private
-        * @type Object
-        */ 
-        config: null,
-        
-        /**
-        * Maintains the local collection of configuration property objects as 
-        * they were initially applied.
-        * This object is used when resetting a property.
-        * @property initialConfig
-        * @private
-        * @type Object
-        */ 
-        initialConfig: null,
-        
-        /**
-        * Maintains the local, normalized CustomEvent queue
-        * @property eventQueue
-        * @private
-        * @type Object
-        */ 
-        eventQueue: null,
-        
-        /**
-        * Custom Event, notifying subscribers when Config properties are set 
-        * (setProperty is called without the silent flag
-        * @event configChangedEvent
-        */
-        configChangedEvent: null,
-    
-        /**
-        * Initializes the configuration Object and all of its local members.
-        * @method init
-        * @param {Object} owner The owner Object to which this Config 
-        * Object belongs
-        */
-        init: function (owner) {
-    
-            this.owner = owner;
-    
-            this.configChangedEvent = 
-                this.createEvent(Config.CONFIG_CHANGED_EVENT);
-    
-            this.configChangedEvent.signature = CustomEvent.LIST;
-            this.queueInProgress = false;
-            this.config = {};
-            this.initialConfig = {};
-            this.eventQueue = [];
-        
-        },
-        
-        /**
-        * Validates that the value passed in is a Boolean.
-        * @method checkBoolean
-        * @param {Object} val The value to validate
-        * @return {Boolean} true, if the value is valid
-        */ 
-        checkBoolean: function (val) {
-            return (typeof val == Config.BOOLEAN_TYPE);
-        },
-        
-        /**
-        * Validates that the value passed in is a number.
-        * @method checkNumber
-        * @param {Object} val The value to validate
-        * @return {Boolean} true, if the value is valid
-        */
-        checkNumber: function (val) {
-            return (!isNaN(val));
-        },
-        
-        /**
-        * Fires a configuration property event using the specified value. 
-        * @method fireEvent
-        * @private
-        * @param {String} key The configuration property's name
-        * @param {value} Object The value of the correct type for the property
-        */ 
-        fireEvent: function ( key, value ) {
-            var property = this.config[key];
-        
-            if (property && property.event) {
-                property.event.fire(value);
-            } 
-        },
-        
-        /**
-        * Adds a property to the Config Object's private config hash.
-        * @method addProperty
-        * @param {String} key The configuration property's name
-        * @param {Object} propertyObject The Object containing all of this 
-        * property's arguments
-        */
-        addProperty: function ( key, propertyObject ) {
-            key = key.toLowerCase();
-        
-            this.config[key] = propertyObject;
-        
-            propertyObject.event = this.createEvent(key, { scope: this.owner });
-            propertyObject.event.signature = CustomEvent.LIST;
-            
-            
-            propertyObject.key = key;
-        
-            if (propertyObject.handler) {
-                propertyObject.event.subscribe(propertyObject.handler, 
-                    this.owner);
-            }
-        
-            this.setProperty(key, propertyObject.value, true);
-            
-            if (! propertyObject.suppressEvent) {
-                this.queueProperty(key, propertyObject.value);
-            }
-            
-        },
-        
-        /**
-        * Returns a key-value configuration map of the values currently set in  
-        * the Config Object.
-        * @method getConfig
-        * @return {Object} The current config, represented in a key-value map
-        */
-        getConfig: function () {
-        
-            var cfg = {},
-                currCfg = this.config,
-                prop,
-                property;
-                
-            for (prop in currCfg) {
-                if (Lang.hasOwnProperty(currCfg, prop)) {
-                    property = currCfg[prop];
-                    if (property && property.event) {
-                        cfg[prop] = property.value;
-                    }
-                }
-            }
-
-            return cfg;
-        },
-        
-        /**
-        * Returns the value of specified property.
-        * @method getProperty
-        * @param {String} key The name of the property
-        * @return {Object}  The value of the specified property
-        */
-        getProperty: function (key) {
-            var property = this.config[key.toLowerCase()];
-            if (property && property.event) {
-                return property.value;
-            } else {
-                return undefined;
-            }
-        },
-        
-        /**
-        * Resets the specified property's value to its initial value.
-        * @method resetProperty
-        * @param {String} key The name of the property
-        * @return {Boolean} True is the property was reset, false if not
-        */
-        resetProperty: function (key) {
-    
-            key = key.toLowerCase();
-        
-            var property = this.config[key];
-    
-            if (property && property.event) {
-    
-                if (this.initialConfig[key] && 
-                    !Lang.isUndefined(this.initialConfig[key])) {
-    
-                    this.setProperty(key, this.initialConfig[key]);
-
-                    return true;
-    
-                }
-    
-            } else {
-    
-                return false;
-            }
-    
-        },
-        
-        /**
-        * Sets the value of a property. If the silent property is passed as 
-        * true, the property's event will not be fired.
-        * @method setProperty
-        * @param {String} key The name of the property
-        * @param {String} value The value to set the property to
-        * @param {Boolean} silent Whether the value should be set silently, 
-        * without firing the property event.
-        * @return {Boolean} True, if the set was successful, false if it failed.
-        */
-        setProperty: function (key, value, silent) {
-        
-            var property;
-        
-            key = key.toLowerCase();
-        
-            if (this.queueInProgress && ! silent) {
-                // Currently running through a queue... 
-                this.queueProperty(key,value);
-                return true;
-    
-            } else {
-                property = this.config[key];
-                if (property && property.event) {
-                    if (property.validator && !property.validator(value)) {
-                        return false;
-                    } else {
-                        property.value = value;
-                        if (! silent) {
-                            this.fireEvent(key, value);
-                            this.configChangedEvent.fire([key, value]);
-                        }
-                        return true;
-                    }
-                } else {
-                    return false;
-                }
-            }
-        },
-        
-        /**
-        * Sets the value of a property and queues its event to execute. If the 
-        * event is already scheduled to execute, it is
-        * moved from its current position to the end of the queue.
-        * @method queueProperty
-        * @param {String} key The name of the property
-        * @param {String} value The value to set the property to
-        * @return {Boolean}  true, if the set was successful, false if 
-        * it failed.
-        */ 
-        queueProperty: function (key, value) {
-        
-            key = key.toLowerCase();
-        
-            var property = this.config[key],
-                foundDuplicate = false,
-                iLen,
-                queueItem,
-                queueItemKey,
-                queueItemValue,
-                sLen,
-                supercedesCheck,
-                qLen,
-                queueItemCheck,
-                queueItemCheckKey,
-                queueItemCheckValue,
-                i,
-                s,
-                q;
-                                
-            if (property && property.event) {
-    
-                if (!Lang.isUndefined(value) && property.validator && 
-                    !property.validator(value)) { // validator
-                    return false;
-                } else {
-        
-                    if (!Lang.isUndefined(value)) {
-                        property.value = value;
-                    } else {
-                        value = property.value;
-                    }
-        
-                    foundDuplicate = false;
-                    iLen = this.eventQueue.length;
-        
-                    for (i = 0; i < iLen; i++) {
-                        queueItem = this.eventQueue[i];
-        
-                        if (queueItem) {
-                            queueItemKey = queueItem[0];
-                            queueItemValue = queueItem[1];
-
-                            if (queueItemKey == key) {
-    
-                                /*
-                                    found a dupe... push to end of queue, null 
-                                    current item, and break
-                                */
-    
-                                this.eventQueue[i] = null;
-    
-                                this.eventQueue.push(
-                                    [key, (!Lang.isUndefined(value) ? 
-                                    value : queueItemValue)]);
-    
-                                foundDuplicate = true;
-                                break;
-                            }
-                        }
-                    }
-                    
-                    // this is a refire, or a new property in the queue
-    
-                    if (! foundDuplicate && !Lang.isUndefined(value)) { 
-                        this.eventQueue.push([key, value]);
-                    }
-                }
-        
-                if (property.supercedes) {
-
-                    sLen = property.supercedes.length;
-
-                    for (s = 0; s < sLen; s++) {
-
-                        supercedesCheck = property.supercedes[s];
-                        qLen = this.eventQueue.length;
-
-                        for (q = 0; q < qLen; q++) {
-                            queueItemCheck = this.eventQueue[q];
-
-                            if (queueItemCheck) {
-                                queueItemCheckKey = queueItemCheck[0];
-                                queueItemCheckValue = queueItemCheck[1];
-
-                                if (queueItemCheckKey == 
-                                    supercedesCheck.toLowerCase() ) {
-
-                                    this.eventQueue.push([queueItemCheckKey, 
-                                        queueItemCheckValue]);
-
-                                    this.eventQueue[q] = null;
-                                    break;
-
-                                }
-                            }
-                        }
-                    }
-                }
-
-
-                return true;
-            } else {
-                return false;
-            }
-        },
-        
-        /**
-        * Fires the event for a property using the property's current value.
-        * @method refireEvent
-        * @param {String} key The name of the property
-        */
-        refireEvent: function (key) {
-    
-            key = key.toLowerCase();
-        
-            var property = this.config[key];
-    
-            if (property && property.event && 
-    
-                !Lang.isUndefined(property.value)) {
-    
-                if (this.queueInProgress) {
-    
-                    this.queueProperty(key);
-    
-                } else {
-    
-                    this.fireEvent(key, property.value);
-    
-                }
-    
-            }
-        },
-        
-        /**
-        * Applies a key-value Object literal to the configuration, replacing  
-        * any existing values, and queueing the property events.
-        * Although the values will be set, fireQueue() must be called for their 
-        * associated events to execute.
-        * @method applyConfig
-        * @param {Object} userConfig The configuration Object literal
-        * @param {Boolean} init  When set to true, the initialConfig will 
-        * be set to the userConfig passed in, so that calling a reset will 
-        * reset the properties to the passed values.
-        */
-        applyConfig: function (userConfig, init) {
-        
-            var sKey,
-                oConfig;
-
-            if (init) {
-                oConfig = {};
-                for (sKey in userConfig) {
-                    if (Lang.hasOwnProperty(userConfig, sKey)) {
-                        oConfig[sKey.toLowerCase()] = userConfig[sKey];
-                    }
-                }
-                this.initialConfig = oConfig;
-            }
-
-            for (sKey in userConfig) {
-                if (Lang.hasOwnProperty(userConfig, sKey)) {
-                    this.queueProperty(sKey, userConfig[sKey]);
-                }
-            }
-        },
-        
-        /**
-        * Refires the events for all configuration properties using their 
-        * current values.
-        * @method refresh
-        */
-        refresh: function () {
-
-            var prop;
-
-            for (prop in this.config) {
-                if (Lang.hasOwnProperty(this.config, prop)) {
-                    this.refireEvent(prop);
-                }
-            }
-        },
-        
-        /**
-        * Fires the normalized list of queued property change events
-        * @method fireQueue
-        */
-        fireQueue: function () {
-        
-            var i, 
-                queueItem,
-                key,
-                value,
-                property;
-        
-            this.queueInProgress = true;
-            for (i = 0;i < this.eventQueue.length; i++) {
-                queueItem = this.eventQueue[i];
-                if (queueItem) {
-        
-                    key = queueItem[0];
-                    value = queueItem[1];
-                    property = this.config[key];
-
-                    property.value = value;
-
-                    // Clear out queue entry, to avoid it being 
-                    // re-added to the queue by any queueProperty/supercedes
-                    // calls which are invoked during fireEvent
-                    this.eventQueue[i] = null;
-
-                    this.fireEvent(key,value);
-                }
-            }
-            
-            this.queueInProgress = false;
-            this.eventQueue = [];
-        },
-        
-        /**
-        * Subscribes an external handler to the change event for any 
-        * given property. 
-        * @method subscribeToConfigEvent
-        * @param {String} key The property name
-        * @param {Function} handler The handler function to use subscribe to 
-        * the property's event
-        * @param {Object} obj The Object to use for scoping the event handler 
-        * (see CustomEvent documentation)
-        * @param {Boolean} overrideContext Optional. If true, will override
-        * "this" within the handler to map to the scope Object passed into the
-        * method.
-        * @return {Boolean} True, if the subscription was successful, 
-        * otherwise false.
-        */ 
-        subscribeToConfigEvent: function (key, handler, obj, overrideContext) {
-    
-            var property = this.config[key.toLowerCase()];
-    
-            if (property && property.event) {
-                if (!Config.alreadySubscribed(property.event, handler, obj)) {
-                    property.event.subscribe(handler, obj, overrideContext);
-                }
-                return true;
-            } else {
-                return false;
-            }
-    
-        },
-        
-        /**
-        * Unsubscribes an external handler from the change event for any 
-        * given property. 
-        * @method unsubscribeFromConfigEvent
-        * @param {String} key The property name
-        * @param {Function} handler The handler function to use subscribe to 
-        * the property's event
-        * @param {Object} obj The Object to use for scoping the event 
-        * handler (see CustomEvent documentation)
-        * @return {Boolean} True, if the unsubscription was successful, 
-        * otherwise false.
-        */
-        unsubscribeFromConfigEvent: function (key, handler, obj) {
-            var property = this.config[key.toLowerCase()];
-            if (property && property.event) {
-                return property.event.unsubscribe(handler, obj);
-            } else {
-                return false;
-            }
-        },
-        
-        /**
-        * Returns a string representation of the Config object
-        * @method toString
-        * @return {String} The Config object in string format.
-        */
-        toString: function () {
-            var output = "Config";
-            if (this.owner) {
-                output += " [" + this.owner.toString() + "]";
-            }
-            return output;
-        },
-        
-        /**
-        * Returns a string representation of the Config object's current 
-        * CustomEvent queue
-        * @method outputEventQueue
-        * @return {String} The string list of CustomEvents currently queued 
-        * for execution
-        */
-        outputEventQueue: function () {
-
-            var output = "",
-                queueItem,
-                q,
-                nQueue = this.eventQueue.length;
-              
-            for (q = 0; q < nQueue; q++) {
-                queueItem = this.eventQueue[q];
-                if (queueItem) {
-                    output += queueItem[0] + "=" + queueItem[1] + ", ";
-                }
-            }
-            return output;
-        },
-
-        /**
-        * Sets all properties to null, unsubscribes all listeners from each 
-        * property's change event and all listeners from the configChangedEvent.
-        * @method destroy
-        */
-        destroy: function () {
-
-            var oConfig = this.config,
-                sProperty,
-                oProperty;
-
-
-            for (sProperty in oConfig) {
-            
-                if (Lang.hasOwnProperty(oConfig, sProperty)) {
-
-                    oProperty = oConfig[sProperty];
-
-                    oProperty.event.unsubscribeAll();
-                    oProperty.event = null;
-
-                }
-            
-            }
-            
-            this.configChangedEvent.unsubscribeAll();
-            
-            this.configChangedEvent = null;
-            this.owner = null;
-            this.config = null;
-            this.initialConfig = null;
-            this.eventQueue = null;
-        
-        }
-
-    };
-    
-    
-    
-    /**
-    * Checks to determine if a particular function/Object pair are already 
-    * subscribed to the specified CustomEvent
-    * @method YAHOO.util.Config.alreadySubscribed
-    * @static
-    * @param {YAHOO.util.CustomEvent} evt The CustomEvent for which to check 
-    * the subscriptions
-    * @param {Function} fn The function to look for in the subscribers list
-    * @param {Object} obj The execution scope Object for the subscription
-    * @return {Boolean} true, if the function/Object pair is already subscribed 
-    * to the CustomEvent passed in
-    */
-    Config.alreadySubscribed = function (evt, fn, obj) {
-    
-        var nSubscribers = evt.subscribers.length,
-            subsc,
-            i;
-
-        if (nSubscribers > 0) {
-            i = nSubscribers - 1;
-            do {
-                subsc = evt.subscribers[i];
-                if (subsc && subsc.obj == obj && subsc.fn == fn) {
-                    return true;
-                }
-            }
-            while (i--);
-        }
-
-        return false;
-
-    };
-
-    YAHOO.lang.augmentProto(Config, YAHOO.util.EventProvider);
-
-}());
-/**
-* The datemath module provides utility methods for basic JavaScript Date object manipulation and 
-* comparison. 
-* 
-* @module datemath
-*/
-
-/**
-* YAHOO.widget.DateMath is used for simple date manipulation. The class is a static utility
-* used for adding, subtracting, and comparing dates.
-* @namespace YAHOO.widget
-* @class DateMath
-*/
-YAHOO.widget.DateMath = {
-    /**
-    * Constant field representing Day
-    * @property DAY
-    * @static
-    * @final
-    * @type String
-    */
-    DAY : "D",
-
-    /**
-    * Constant field representing Week
-    * @property WEEK
-    * @static
-    * @final
-    * @type String
-    */
-    WEEK : "W",
-
-    /**
-    * Constant field representing Year
-    * @property YEAR
-    * @static
-    * @final
-    * @type String
-    */
-    YEAR : "Y",
-
-    /**
-    * Constant field representing Month
-    * @property MONTH
-    * @static
-    * @final
-    * @type String
-    */
-    MONTH : "M",
-
-    /**
-    * Constant field representing one day, in milliseconds
-    * @property ONE_DAY_MS
-    * @static
-    * @final
-    * @type Number
-    */
-    ONE_DAY_MS : 1000*60*60*24,
-    
-    /**
-     * Constant field representing the date in first week of January
-     * which identifies the first week of the year.
-     * <p>
-     * In the U.S, Jan 1st is normally used based on a Sunday start of week.
-     * ISO 8601, used widely throughout Europe, uses Jan 4th, based on a Monday start of week.
-     * </p>
-     * @property WEEK_ONE_JAN_DATE
-     * @static
-     * @type Number
-     */
-    WEEK_ONE_JAN_DATE : 1,
-
-    /**
-    * Adds the specified amount of time to the this instance.
-    * @method add
-    * @param {Date} date The JavaScript Date object to perform addition on
-    * @param {String} field The field constant to be used for performing addition.
-    * @param {Number} amount The number of units (measured in the field constant) to add to the date.
-    * @return {Date} The resulting Date object
-    */
-    add : function(date, field, amount) {
-        var d = new Date(date.getTime());
-        switch (field) {
-            case this.MONTH:
-                var newMonth = date.getMonth() + amount;
-                var years = 0;
-
-                if (newMonth < 0) {
-                    while (newMonth < 0) {
-                        newMonth += 12;
-                        years -= 1;
-                    }
-                } else if (newMonth > 11) {
-                    while (newMonth > 11) {
-                        newMonth -= 12;
-                        years += 1;
-                    }
-                }
-
-                d.setMonth(newMonth);
-                d.setFullYear(date.getFullYear() + years);
-                break;
-            case this.DAY:
-                this._addDays(d, amount);
-                // d.setDate(date.getDate() + amount);
-                break;
-            case this.YEAR:
-                d.setFullYear(date.getFullYear() + amount);
-                break;
-            case this.WEEK:
-                this._addDays(d, (amount * 7));
-                // d.setDate(date.getDate() + (amount * 7));
-                break;
-        }
-        return d;
-    },
-
-    /**
-     * Private helper method to account for bug in Safari 2 (webkit < 420)
-     * when Date.setDate(n) is called with n less than -128 or greater than 127.
-     * <p>
-     * Fix approach and original findings are available here:
-     * http://brianary.blogspot.com/2006/03/safari-date-bug.html
-     * </p>
-     * @method _addDays
-     * @param {Date} d JavaScript date object
-     * @param {Number} nDays The number of days to add to the date object (can be negative)
-     * @private
-     */
-    _addDays : function(d, nDays) {
-        if (YAHOO.env.ua.webkit && YAHOO.env.ua.webkit < 420) {
-            if (nDays < 0) {
-                // Ensure we don't go below -128 (getDate() is always 1 to 31, so we won't go above 127)
-                for(var min = -128; nDays < min; nDays -= min) {
-                    d.setDate(d.getDate() + min);
-                }
-            } else {
-                // Ensure we don't go above 96 + 31 = 127
-                for(var max = 96; nDays > max; nDays -= max) {
-                    d.setDate(d.getDate() + max);
-                }
-            }
-            // nDays should be remainder between -128 and 96
-        }
-        d.setDate(d.getDate() + nDays);
-    },
-
-    /**
-    * Subtracts the specified amount of time from the this instance.
-    * @method subtract
-    * @param {Date} date The JavaScript Date object to perform subtraction on
-    * @param {Number} field The this field constant to be used for performing subtraction.
-    * @param {Number} amount The number of units (measured in the field constant) to subtract from the date.
-    * @return {Date} The resulting Date object
-    */
-    subtract : function(date, field, amount) {
-        return this.add(date, field, (amount*-1));
-    },
-
-    /**
-    * Determines whether a given date is before another date on the calendar.
-    * @method before
-    * @param {Date} date  The Date object to compare with the compare argument
-    * @param {Date} compareTo The Date object to use for the comparison
-    * @return {Boolean} true if the date occurs before the compared date; false if not.
-    */
-    before : function(date, compareTo) {
-        var ms = compareTo.getTime();
-        if (date.getTime() < ms) {
-            return true;
-        } else {
-            return false;
-        }
-    },
-
-    /**
-    * Determines whether a given date is after another date on the calendar.
-    * @method after
-    * @param {Date} date  The Date object to compare with the compare argument
-    * @param {Date} compareTo The Date object to use for the comparison
-    * @return {Boolean} true if the date occurs after the compared date; false if not.
-    */
-    after : function(date, compareTo) {
-        var ms = compareTo.getTime();
-        if (date.getTime() > ms) {
-            return true;
-        } else {
-            return false;
-        }
-    },
-
-    /**
-    * Determines whether a given date is between two other dates on the calendar.
-    * @method between
-    * @param {Date} date  The date to check for
-    * @param {Date} dateBegin The start of the range
-    * @param {Date} dateEnd  The end of the range
-    * @return {Boolean} true if the date occurs between the compared dates; false if not.
-    */
-    between : function(date, dateBegin, dateEnd) {
-        if (this.after(date, dateBegin) && this.before(date, dateEnd)) {
-            return true;
-        } else {
-            return false;
-        }
-    },
-    
-    /**
-    * Retrieves a JavaScript Date object representing January 1 of any given year.
-    * @method getJan1
-    * @param {Number} calendarYear  The calendar year for which to retrieve January 1
-    * @return {Date} January 1 of the calendar year specified.
-    */
-    getJan1 : function(calendarYear) {
-        return this.getDate(calendarYear,0,1);
-    },
-
-    /**
-    * Calculates the number of days the specified date is from January 1 of the specified calendar year.
-    * Passing January 1 to this function would return an offset value of zero.
-    * @method getDayOffset
-    * @param {Date} date The JavaScript date for which to find the offset
-    * @param {Number} calendarYear The calendar year to use for determining the offset
-    * @return {Number} The number of days since January 1 of the given year
-    */
-    getDayOffset : function(date, calendarYear) {
-        var beginYear = this.getJan1(calendarYear); // Find the start of the year. This will be in week 1.
-        
-        // Find the number of days the passed in date is away from the calendar year start
-        var dayOffset = Math.ceil((date.getTime()-beginYear.getTime()) / this.ONE_DAY_MS);
-        return dayOffset;
-    },
-
-    /**
-    * Calculates the week number for the given date. Can currently support standard
-    * U.S. week numbers, based on Jan 1st defining the 1st week of the year, and 
-    * ISO8601 week numbers, based on Jan 4th defining the 1st week of the year.
-    * 
-    * @method getWeekNumber
-    * @param {Date} date The JavaScript date for which to find the week number
-    * @param {Number} firstDayOfWeek The index of the first day of the week (0 = Sun, 1 = Mon ... 6 = Sat).
-    * Defaults to 0
-    * @param {Number} janDate The date in the first week of January which defines week one for the year
-    * Defaults to the value of YAHOO.widget.DateMath.WEEK_ONE_JAN_DATE, which is 1 (Jan 1st). 
-    * For the U.S, this is normally Jan 1st. ISO8601 uses Jan 4th to define the first week of the year.
-    * 
-    * @return {Number} The number of the week containing the given date.
-    */
-    getWeekNumber : function(date, firstDayOfWeek, janDate) {
-
-        // Setup Defaults
-        firstDayOfWeek = firstDayOfWeek || 0;
-        janDate = janDate || this.WEEK_ONE_JAN_DATE;
-
-        var targetDate = this.clearTime(date),
-            startOfWeek,
-            endOfWeek;
-
-        if (targetDate.getDay() === firstDayOfWeek) { 
-            startOfWeek = targetDate;
-        } else {
-            startOfWeek = this.getFirstDayOfWeek(targetDate, firstDayOfWeek);
-        }
-
-        var startYear = startOfWeek.getFullYear();
-
-        // DST shouldn't be a problem here, math is quicker than setDate();
-        endOfWeek = new Date(startOfWeek.getTime() + 6*this.ONE_DAY_MS);
-
-        var weekNum;
-        if (startYear !== endOfWeek.getFullYear() && endOfWeek.getDate() >= janDate) {
-            // If years don't match, endOfWeek is in Jan. and if the 
-            // week has WEEK_ONE_JAN_DATE in it, it's week one by definition.
-            weekNum = 1;
-        } else {
-            // Get the 1st day of the 1st week, and 
-            // find how many days away we are from it.
-            var weekOne = this.clearTime(this.getDate(startYear, 0, janDate)),
-                weekOneDayOne = this.getFirstDayOfWeek(weekOne, firstDayOfWeek);
-
-            // Round days to smoothen out 1 hr DST diff
-            var daysDiff  = Math.round((targetDate.getTime() - weekOneDayOne.getTime())/this.ONE_DAY_MS);
-
-            // Calc. Full Weeks
-            var rem = daysDiff % 7;
-            var weeksDiff = (daysDiff - rem)/7;
-            weekNum = weeksDiff + 1;
-        }
-        return weekNum;
-    },
-
-    /**
-     * Get the first day of the week, for the give date. 
-     * @param {Date} dt The date in the week for which the first day is required.
-     * @param {Number} startOfWeek The index for the first day of the week, 0 = Sun, 1 = Mon ... 6 = Sat (defaults to 0)
-     * @return {Date} The first day of the week
-     */
-    getFirstDayOfWeek : function (dt, startOfWeek) {
-        startOfWeek = startOfWeek || 0;
-        var dayOfWeekIndex = dt.getDay(),
-            dayOfWeek = (dayOfWeekIndex - startOfWeek + 7) % 7;
-
-        return this.subtract(dt, this.DAY, dayOfWeek);
-    },
-
-    /**
-    * Determines if a given week overlaps two different years.
-    * @method isYearOverlapWeek
-    * @param {Date} weekBeginDate The JavaScript Date representing the first day of the week.
-    * @return {Boolean} true if the date overlaps two different years.
-    */
-    isYearOverlapWeek : function(weekBeginDate) {
-        var overlaps = false;
-        var nextWeek = this.add(weekBeginDate, this.DAY, 6);
-        if (nextWeek.getFullYear() != weekBeginDate.getFullYear()) {
-            overlaps = true;
-        }
-        return overlaps;
-    },
-
-    /**
-    * Determines if a given week overlaps two different months.
-    * @method isMonthOverlapWeek
-    * @param {Date} weekBeginDate The JavaScript Date representing the first day of the week.
-    * @return {Boolean} true if the date overlaps two different months.
-    */
-    isMonthOverlapWeek : function(weekBeginDate) {
-        var overlaps = false;
-        var nextWeek = this.add(weekBeginDate, this.DAY, 6);
-        if (nextWeek.getMonth() != weekBeginDate.getMonth()) {
-            overlaps = true;
-        }
-        return overlaps;
-    },
-
-    /**
-    * Gets the first day of a month containing a given date.
-    * @method findMonthStart
-    * @param {Date} date The JavaScript Date used to calculate the month start
-    * @return {Date}  The JavaScript Date representing the first day of the month
-    */
-    findMonthStart : function(date) {
-        var start = this.getDate(date.getFullYear(), date.getMonth(), 1);
-        return start;
-    },
-
-    /**
-    * Gets the last day of a month containing a given date.
-    * @method findMonthEnd
-    * @param {Date} date The JavaScript Date used to calculate the month end
-    * @return {Date}  The JavaScript Date representing the last day of the month
-    */
-    findMonthEnd : function(date) {
-        var start = this.findMonthStart(date);
-        var nextMonth = this.add(start, this.MONTH, 1);
-        var end = this.subtract(nextMonth, this.DAY, 1);
-        return end;
-    },
-
-    /**
-    * Clears the time fields from a given date, effectively setting the time to 12 noon.
-    * @method clearTime
-    * @param {Date} date The JavaScript Date for which the time fields will be cleared
-    * @return {Date}  The JavaScript Date cleared of all time fields
-    */
-    clearTime : function(date) {
-        date.setHours(12,0,0,0);
-        return date;
-    },
-
-    /**
-     * Returns a new JavaScript Date object, representing the given year, month and date. Time fields (hr, min, sec, ms) on the new Date object
-     * are set to 0. The method allows Date instances to be created with the a year less than 100. "new Date(year, month, date)" implementations 
-     * set the year to 19xx if a year (xx) which is less than 100 is provided.
-     * <p>
-     * <em>NOTE:</em>Validation on argument values is not performed. It is the caller's responsibility to ensure
-     * arguments are valid as per the ECMAScript-262 Date object specification for the new Date(year, month[, date]) constructor.
-     * </p>
-     * @method getDate
-     * @param {Number} y Year.
-     * @param {Number} m Month index from 0 (Jan) to 11 (Dec).
-     * @param {Number} d (optional) Date from 1 to 31. If not provided, defaults to 1.
-     * @return {Date} The JavaScript date object with year, month, date set as provided.
-     */
-    getDate : function(y, m, d) {
-        var dt = null;
-        if (YAHOO.lang.isUndefined(d)) {
-            d = 1;
-        }
-        if (y >= 100) {
-            dt = new Date(y, m, d);
-        } else {
-            dt = new Date();
-            dt.setFullYear(y);
-            dt.setMonth(m);
-            dt.setDate(d);
-            dt.setHours(0,0,0,0);
-        }
-        return dt;
-    }
-};
-/**
-* The Calendar component is a UI control that enables users to choose one or more dates from a graphical calendar presented in a one-month or
-* multi-month interface. Calendars are generated entirely via script and can be navigated without any page refreshes.
-* @module    calendar
-* @title    Calendar
-* @namespace  YAHOO.widget
-* @requires  yahoo,dom,event
-*/
-(function(){
-
-    var Dom = YAHOO.util.Dom,
-        Event = YAHOO.util.Event,
-        Lang = YAHOO.lang,
-        DateMath = YAHOO.widget.DateMath;
-
-/**
-* Calendar is the base class for the Calendar widget. In its most basic
-* implementation, it has the ability to render a calendar widget on the page
-* that can be manipulated to select a single date, move back and forth between
-* months and years.
-* <p>To construct the placeholder for the calendar widget, the code is as
-* follows:
-*   <xmp>
-*       <div id="calContainer"></div>
-*   </xmp>
-* </p>
-* <p>
-* <strong>NOTE: As of 2.4.0, the constructor's ID argument is optional.</strong>
-* The Calendar can be constructed by simply providing a container ID string, 
-* or a reference to a container DIV HTMLElement (the element needs to exist 
-* in the document).
-* 
-* E.g.:
-*   <xmp>
-*       var c = new YAHOO.widget.Calendar("calContainer", configOptions);
-*   </xmp>
-* or:
-*   <xmp>
-*       var containerDiv = YAHOO.util.Dom.get("calContainer");
-*       var c = new YAHOO.widget.Calendar(containerDiv, configOptions);
-*   </xmp>
-* </p>
-* <p>
-* If not provided, the ID will be generated from the container DIV ID by adding an "_t" suffix.
-* For example if an ID is not provided, and the container's ID is "calContainer", the Calendar's ID will be set to "calContainer_t".
-* </p>
-* 
-* @namespace YAHOO.widget
-* @class Calendar
-* @constructor
-* @param {String} id optional The id of the table element that will represent the Calendar widget. As of 2.4.0, this argument is optional.
-* @param {String | HTMLElement} container The id of the container div element that will wrap the Calendar table, or a reference to a DIV element which exists in the document.
-* @param {Object} config optional The configuration object containing the initial configuration values for the Calendar.
-*/
-function Calendar(id, containerId, config) {
-    this.init.apply(this, arguments);
-}
-
-/**
-* The path to be used for images loaded for the Calendar
-* @property YAHOO.widget.Calendar.IMG_ROOT
-* @static
-* @deprecated   You can now customize images by overriding the calclose, calnavleft and calnavright default CSS classes for the close icon, left arrow and right arrow respectively
-* @type String
-*/
-Calendar.IMG_ROOT = null;
-
-/**
-* Type constant used for renderers to represent an individual date (M/D/Y)
-* @property YAHOO.widget.Calendar.DATE
-* @static
-* @final
-* @type String
-*/
-Calendar.DATE = "D";
-
-/**
-* Type constant used for renderers to represent an individual date across any year (M/D)
-* @property YAHOO.widget.Calendar.MONTH_DAY
-* @static
-* @final
-* @type String
-*/
-Calendar.MONTH_DAY = "MD";
-
-/**
-* Type constant used for renderers to represent a weekday
-* @property YAHOO.widget.Calendar.WEEKDAY
-* @static
-* @final
-* @type String
-*/
-Calendar.WEEKDAY = "WD";
-
-/**
-* Type constant used for renderers to represent a range of individual dates (M/D/Y-M/D/Y)
-* @property YAHOO.widget.Calendar.RANGE
-* @static
-* @final
-* @type String
-*/
-Calendar.RANGE = "R";
-
-/**
-* Type constant used for renderers to represent a month across any year
-* @property YAHOO.widget.Calendar.MONTH
-* @static
-* @final
-* @type String
-*/
-Calendar.MONTH = "M";
-
-/**
-* Constant that represents the total number of date cells that are displayed in a given month
-* @property YAHOO.widget.Calendar.DISPLAY_DAYS
-* @static
-* @final
-* @type Number
-*/
-Calendar.DISPLAY_DAYS = 42;
-
-/**
-* Constant used for halting the execution of the remainder of the render stack
-* @property YAHOO.widget.Calendar.STOP_RENDER
-* @static
-* @final
-* @type String
-*/
-Calendar.STOP_RENDER = "S";
-
-/**
-* Constant used to represent short date field string formats (e.g. Tu or Feb)
-* @property YAHOO.widget.Calendar.SHORT
-* @static
-* @final
-* @type String
-*/
-Calendar.SHORT = "short";
-
-/**
-* Constant used to represent long date field string formats (e.g. Monday or February)
-* @property YAHOO.widget.Calendar.LONG
-* @static
-* @final
-* @type String
-*/
-Calendar.LONG = "long";
-
-/**
-* Constant used to represent medium date field string formats (e.g. Mon)
-* @property YAHOO.widget.Calendar.MEDIUM
-* @static
-* @final
-* @type String
-*/
-Calendar.MEDIUM = "medium";
-
-/**
-* Constant used to represent single character date field string formats (e.g. M, T, W)
-* @property YAHOO.widget.Calendar.ONE_CHAR
-* @static
-* @final
-* @type String
-*/
-Calendar.ONE_CHAR = "1char";
-
-/**
-* The set of default Config property keys and values for the Calendar.
-*
-* <p>
-* NOTE: This property is made public in order to allow users to change 
-* the default values of configuration properties. Users should not 
-* modify the key string, unless they are overriding the Calendar implementation
-* </p>
-*
-* <p>
-* The property is an object with key/value pairs, the key being the 
-* uppercase configuration property name and the value being an object 
-* literal with a key string property, and a value property, specifying the 
-* default value of the property. To override a default value, you can set
-* the value property, for example, <code>YAHOO.widget.Calendar.DEFAULT_CONFIG.MULTI_SELECT.value = true;</code>
-* 
-* @property YAHOO.widget.Calendar.DEFAULT_CONFIG
-* @static
-* @type Object
-*/
-
-Calendar.DEFAULT_CONFIG = {
-    YEAR_OFFSET : {key:"year_offset", value:0, supercedes:["pagedate", "selected", "mindate","maxdate"]},
-    TODAY : {key:"today", value:new Date(), supercedes:["pagedate"]}, 
-    PAGEDATE : {key:"pagedate", value:null},
-    SELECTED : {key:"selected", value:[]},
-    TITLE : {key:"title", value:""},
-    CLOSE : {key:"close", value:false},
-    IFRAME : {key:"iframe", value:(YAHOO.env.ua.ie && YAHOO.env.ua.ie <= 6) ? true : false},
-    MINDATE : {key:"mindate", value:null},
-    MAXDATE : {key:"maxdate", value:null},
-    MULTI_SELECT : {key:"multi_select", value:false},
-    START_WEEKDAY : {key:"start_weekday", value:0},
-    SHOW_WEEKDAYS : {key:"show_weekdays", value:true},
-    SHOW_WEEK_HEADER : {key:"show_week_header", value:false},
-    SHOW_WEEK_FOOTER : {key:"show_week_footer", value:false},
-    HIDE_BLANK_WEEKS : {key:"hide_blank_weeks", value:false},
-    NAV_ARROW_LEFT: {key:"nav_arrow_left", value:null} ,
-    NAV_ARROW_RIGHT : {key:"nav_arrow_right", value:null} ,
-    MONTHS_SHORT : {key:"months_short", value:["Jan", "Feb", "Mar", "Apr", "May", "Jun", "Jul", "Aug", "Sep", "Oct", "Nov", "Dec"]},
-    MONTHS_LONG: {key:"months_long", value:["January", "February", "March", "April", "May", "June", "July", "August", "September", "October", "November", "December"]},
-    WEEKDAYS_1CHAR: {key:"weekdays_1char", value:["S", "M", "T", "W", "T", "F", "S"]},
-    WEEKDAYS_SHORT: {key:"weekdays_short", value:["Su", "Mo", "Tu", "We", "Th", "Fr", "Sa"]},
-    WEEKDAYS_MEDIUM: {key:"weekdays_medium", value:["Sun", "Mon", "Tue", "Wed", "Thu", "Fri", "Sat"]},
-    WEEKDAYS_LONG: {key:"weekdays_long", value:["Sunday", "Monday", "Tuesday", "Wednesday", "Thursday", "Friday", "Saturday"]},
-    LOCALE_MONTHS:{key:"locale_months", value:"long"},
-    LOCALE_WEEKDAYS:{key:"locale_weekdays", value:"short"},
-    DATE_DELIMITER:{key:"date_delimiter", value:","},
-    DATE_FIELD_DELIMITER:{key:"date_field_delimiter", value:"/"},
-    DATE_RANGE_DELIMITER:{key:"date_range_delimiter", value:"-"},
-    MY_MONTH_POSITION:{key:"my_month_position", value:1},
-    MY_YEAR_POSITION:{key:"my_year_position", value:2},
-    MD_MONTH_POSITION:{key:"md_month_position", value:1},
-    MD_DAY_POSITION:{key:"md_day_position", value:2},
-    MDY_MONTH_POSITION:{key:"mdy_month_position", value:1},
-    MDY_DAY_POSITION:{key:"mdy_day_position", value:2},
-    MDY_YEAR_POSITION:{key:"mdy_year_position", value:3},
-    MY_LABEL_MONTH_POSITION:{key:"my_label_month_position", value:1},
-    MY_LABEL_YEAR_POSITION:{key:"my_label_year_position", value:2},
-    MY_LABEL_MONTH_SUFFIX:{key:"my_label_month_suffix", value:" "},
-    MY_LABEL_YEAR_SUFFIX:{key:"my_label_year_suffix", value:""},
-    NAV: {key:"navigator", value: null},
-    STRINGS : { 
-        key:"strings",
-        value: {
-            previousMonth : "Previous Month",
-            nextMonth : "Next Month",
-            close: "Close"
-        },
-        supercedes : ["close", "title"]
-    }
-};
-
-/**
-* The set of default Config property keys and values for the Calendar
-* @property YAHOO.widget.Calendar._DEFAULT_CONFIG
-* @deprecated Made public. See the public DEFAULT_CONFIG property for details
-* @final
-* @static
-* @private
-* @type Object
-*/
-Calendar._DEFAULT_CONFIG = Calendar.DEFAULT_CONFIG;
-
-var DEF_CFG = Calendar.DEFAULT_CONFIG;
-
-/**
-* The set of Custom Event types supported by the Calendar
-* @property YAHOO.widget.Calendar._EVENT_TYPES
-* @final
-* @static
-* @private
-* @type Object
-*/
-Calendar._EVENT_TYPES = {
-    BEFORE_SELECT : "beforeSelect", 
-    SELECT : "select",
-    BEFORE_DESELECT : "beforeDeselect",
-    DESELECT : "deselect",
-    CHANGE_PAGE : "changePage",
-    BEFORE_RENDER : "beforeRender",
-    RENDER : "render",
-    BEFORE_DESTROY : "beforeDestroy",
-    DESTROY : "destroy",
-    RESET : "reset",
-    CLEAR : "clear",
-    BEFORE_HIDE : "beforeHide",
-    HIDE : "hide",
-    BEFORE_SHOW : "beforeShow",
-    SHOW : "show",
-    BEFORE_HIDE_NAV : "beforeHideNav",
-    HIDE_NAV : "hideNav",
-    BEFORE_SHOW_NAV : "beforeShowNav",
-    SHOW_NAV : "showNav",
-    BEFORE_RENDER_NAV : "beforeRenderNav",
-    RENDER_NAV : "renderNav"
-};
-
-/**
-* The set of default style constants for the Calendar
-* @property YAHOO.widget.Calendar.STYLES
-* @static
-* @type Object An object with name/value pairs for the class name identifier/value.
-*/
-Calendar.STYLES = {
-    CSS_ROW_HEADER: "calrowhead",
-    CSS_ROW_FOOTER: "calrowfoot",
-    CSS_CELL : "calcell",
-    CSS_CELL_SELECTOR : "selector",
-    CSS_CELL_SELECTED : "selected",
-    CSS_CELL_SELECTABLE : "selectable",
-    CSS_CELL_RESTRICTED : "restricted",
-    CSS_CELL_TODAY : "today",
-    CSS_CELL_OOM : "oom",
-    CSS_CELL_OOB : "previous",
-    CSS_HEADER : "calheader",
-    CSS_HEADER_TEXT : "calhead",
-    CSS_BODY : "calbody",
-    CSS_WEEKDAY_CELL : "calweekdaycell",
-    CSS_WEEKDAY_ROW : "calweekdayrow",
-    CSS_FOOTER : "calfoot",
-    CSS_CALENDAR : "yui-calendar",
-    CSS_SINGLE : "single",
-    CSS_CONTAINER : "yui-calcontainer",
-    CSS_NAV_LEFT : "calnavleft",
-    CSS_NAV_RIGHT : "calnavright",
-    CSS_NAV : "calnav",
-    CSS_CLOSE : "calclose",
-    CSS_CELL_TOP : "calcelltop",
-    CSS_CELL_LEFT : "calcellleft",
-    CSS_CELL_RIGHT : "calcellright",
-    CSS_CELL_BOTTOM : "calcellbottom",
-    CSS_CELL_HOVER : "calcellhover",
-    CSS_CELL_HIGHLIGHT1 : "highlight1",
-    CSS_CELL_HIGHLIGHT2 : "highlight2",
-    CSS_CELL_HIGHLIGHT3 : "highlight3",
-    CSS_CELL_HIGHLIGHT4 : "highlight4",
-    CSS_WITH_TITLE: "withtitle",
-    CSS_FIXED_SIZE: "fixedsize",
-    CSS_LINK_CLOSE: "link-close"
-};
-
-/**
-* The set of default style constants for the Calendar
-* @property YAHOO.widget.Calendar._STYLES
-* @deprecated Made public. See the public STYLES property for details
-* @final
-* @static
-* @private
-* @type Object
-*/
-Calendar._STYLES = Calendar.STYLES;
-
-Calendar.prototype = {
-
-    /**
-    * The configuration object used to set up the calendars various locale and style options.
-    * @property Config
-    * @private
-    * @deprecated Configuration properties should be set by calling Calendar.cfg.setProperty.
-    * @type Object
-    */
-    Config : null,
-
-    /**
-    * The parent CalendarGroup, only to be set explicitly by the parent group
-    * @property parent
-    * @type CalendarGroup
-    */ 
-    parent : null,
-
-    /**
-    * The index of this item in the parent group
-    * @property index
-    * @type Number
-    */
-    index : -1,
-
-    /**
-    * The collection of calendar table cells
-    * @property cells
-    * @type HTMLTableCellElement[]
-    */
-    cells : null,
-
-    /**
-    * The collection of calendar cell dates that is parallel to the cells collection. The array contains dates field arrays in the format of [YYYY, M, D].
-    * @property cellDates
-    * @type Array[](Number[])
-    */
-    cellDates : null,
-
-    /**
-    * The id that uniquely identifies this Calendar.
-    * @property id
-    * @type String
-    */
-    id : null,
-
-    /**
-    * The unique id associated with the Calendar's container
-    * @property containerId
-    * @type String
-    */
-    containerId: null,
-
-    /**
-    * The DOM element reference that points to this calendar's container element. The calendar will be inserted into this element when the shell is rendered.
-    * @property oDomContainer
-    * @type HTMLElement
-    */
-    oDomContainer : null,
-
-    /**
-    * A Date object representing today's date.
-    * @deprecated Use the "today" configuration property
-    * @property today
-    * @type Date
-    */
-    today : null,
-
-    /**
-    * The list of render functions, along with required parameters, used to render cells. 
-    * @property renderStack
-    * @type Array[]
-    */
-    renderStack : null,
-
-    /**
-    * A copy of the initial render functions created before rendering.
-    * @property _renderStack
-    * @private
-    * @type Array
-    */
-    _renderStack : null,
-
-    /**
-    * A reference to the CalendarNavigator instance created for this Calendar.
-    * Will be null if the "navigator" configuration property has not been set
-    * @property oNavigator
-    * @type CalendarNavigator
-    */
-    oNavigator : null,
-
-    /**
-    * The private list of initially selected dates.
-    * @property _selectedDates
-    * @private
-    * @type Array
-    */
-    _selectedDates : null,
-
-    /**
-    * A map of DOM event handlers to attach to cells associated with specific CSS class names
-    * @property domEventMap
-    * @type Object
-    */
-    domEventMap : null,
-
-    /**
-     * Protected helper used to parse Calendar constructor/init arguments.
-     *
-     * As of 2.4.0, Calendar supports a simpler constructor 
-     * signature. This method reconciles arguments
-     * received in the pre 2.4.0 and 2.4.0 formats.
-     * 
-     * @protected
-     * @method _parseArgs
-     * @param {Array} Function "arguments" array
-     * @return {Object} Object with id, container, config properties containing
-     * the reconciled argument values.
-     **/
-    _parseArgs : function(args) {
-        /*
-           2.4.0 Constructors signatures
-
-           new Calendar(String)
-           new Calendar(HTMLElement)
-           new Calendar(String, ConfigObject)
-           new Calendar(HTMLElement, ConfigObject)
-
-           Pre 2.4.0 Constructor signatures
-
-           new Calendar(String, String)
-           new Calendar(String, HTMLElement)
-           new Calendar(String, String, ConfigObject)
-           new Calendar(String, HTMLElement, ConfigObject)
-         */
-        var nArgs = {id:null, container:null, config:null};
-
-        if (args && args.length && args.length > 0) {
-            switch (args.length) {
-                case 1:
-                    nArgs.id = null;
-                    nArgs.container = args[0];
-                    nArgs.config = null;
-                    break;
-                case 2:
-                    if (Lang.isObject(args[1]) && !args[1].tagName && !(args[1] instanceof String)) {
-                        nArgs.id = null;
-                        nArgs.container = args[0];
-                        nArgs.config = args[1];
-                    } else {
-                        nArgs.id = args[0];
-                        nArgs.container = args[1];
-                        nArgs.config = null;
-                    }
-                    break;
-                default: // 3+
-                    nArgs.id = args[0];
-                    nArgs.container = args[1];
-                    nArgs.config = args[2];
-                    break;
-            }
-        } else {
-        }
-        return nArgs;
-    },
-
-    /**
-    * Initializes the Calendar widget.
-    * @method init
-    *
-    * @param {String} id optional The id of the table element that will represent the Calendar widget. As of 2.4.0, this argument is optional.
-    * @param {String | HTMLElement} container The id of the container div element that will wrap the Calendar table, or a reference to a DIV element which exists in the document.
-    * @param {Object} config optional The configuration object containing the initial configuration values for the Calendar.
-    */
-    init : function(id, container, config) {
-        // Normalize 2.4.0, pre 2.4.0 args
-        var nArgs = this._parseArgs(arguments);
-
-        id = nArgs.id;
-        container = nArgs.container;
-        config = nArgs.config;
-
-        this.oDomContainer = Dom.get(container);
-
-        if (!this.oDomContainer.id) {
-            this.oDomContainer.id = Dom.generateId();
-        }
-        if (!id) {
-            id = this.oDomContainer.id + "_t";
-        }
-
-        this.id = id;
-        this.containerId = this.oDomContainer.id;
-
-        this.initEvents();
-
-        /**
-        * The Config object used to hold the configuration variables for the Calendar
-        * @property cfg
-        * @type YAHOO.util.Config
-        */
-        this.cfg = new YAHOO.util.Config(this);
-
-        /**
-        * The local object which contains the Calendar's options
-        * @property Options
-        * @type Object
-        */
-        this.Options = {};
-
-        /**
-        * The local object which contains the Calendar's locale settings
-        * @property Locale
-        * @type Object
-        */
-        this.Locale = {};
-
-        this.initStyles();
-
-        Dom.addClass(this.oDomContainer, this.Style.CSS_CONTAINER);
-        Dom.addClass(this.oDomContainer, this.Style.CSS_SINGLE);
-
-        this.cellDates = [];
-        this.cells = [];
-        this.renderStack = [];
-        this._renderStack = [];
-
-        this.setupConfig();
-
-        if (config) {
-            this.cfg.applyConfig(config, true);
-        }
-
-        this.cfg.fireQueue();
-
-        this.today = this.cfg.getProperty("today");
-    },
-
-    /**
-    * Default Config listener for the iframe property. If the iframe config property is set to true, 
-    * renders the built-in IFRAME shim if the container is relatively or absolutely positioned.
-    * 
-    * @method configIframe
-    */
-    configIframe : function(type, args, obj) {
-        var useIframe = args[0];
-    
-        if (!this.parent) {
-            if (Dom.inDocument(this.oDomContainer)) {
-                if (useIframe) {
-                    var pos = Dom.getStyle(this.oDomContainer, "position");
-                    
-                    if (pos == "absolute" || pos == "relative") {
-                        
-                        if (!Dom.inDocument(this.iframe)) {
-                            this.iframe = document.createElement("iframe");
-                            this.iframe.src = "javascript:false;";
-    
-                            Dom.setStyle(this.iframe, "opacity", "0");
-    
-                            if (YAHOO.env.ua.ie && YAHOO.env.ua.ie <= 6) {
-                                Dom.addClass(this.iframe, this.Style.CSS_FIXED_SIZE);
-                            }
-    
-                            this.oDomContainer.insertBefore(this.iframe, this.oDomContainer.firstChild);
-                        }
-                    }
-                } else {
-                    if (this.iframe) {
-                        if (this.iframe.parentNode) {
-                            this.iframe.parentNode.removeChild(this.iframe);
-                        }
-                        this.iframe = null;
-                    }
-                }
-            }
-        }
-    },
-
-    /**
-    * Default handler for the "title" property
-    * @method configTitle
-    */
-    configTitle : function(type, args, obj) {
-        var title = args[0];
-
-        // "" disables title bar
-        if (title) {
-            this.createTitleBar(title);
-        } else {
-            var close = this.cfg.getProperty(DEF_CFG.CLOSE.key);
-            if (!close) {
-                this.removeTitleBar();
-            } else {
-                this.createTitleBar("&#160;");
-            }
-        }
-    },
-    
-    /**
-    * Default handler for the "close" property
-    * @method configClose
-    */
-    configClose : function(type, args, obj) {
-        var close = args[0],
-            title = this.cfg.getProperty(DEF_CFG.TITLE.key);
-    
-        if (close) {
-            if (!title) {
-                this.createTitleBar("&#160;");
-            }
-            this.createCloseButton();
-        } else {
-            this.removeCloseButton();
-            if (!title) {
-                this.removeTitleBar();
-            }
-        }
-    },
-
-    /**
-    * Initializes Calendar's built-in CustomEvents
-    * @method initEvents
-    */
-    initEvents : function() {
-
-        var defEvents = Calendar._EVENT_TYPES,
-            CE = YAHOO.util.CustomEvent,
-            cal = this; // To help with minification
-
-        /**
-        * Fired before a date selection is made
-        * @event beforeSelectEvent
-        */
-        cal.beforeSelectEvent = new CE(defEvents.BEFORE_SELECT); 
-
-        /**
-        * Fired when a date selection is made
-        * @event selectEvent
-        * @param {Array} Array of Date field arrays in the format [YYYY, MM, DD].
-        */
-        cal.selectEvent = new CE(defEvents.SELECT);
-
-        /**
-        * Fired before a date or set of dates is deselected
-        * @event beforeDeselectEvent
-        */
-        cal.beforeDeselectEvent = new CE(defEvents.BEFORE_DESELECT);
-
-        /**
-        * Fired when a date or set of dates is deselected
-        * @event deselectEvent
-        * @param {Array} Array of Date field arrays in the format [YYYY, MM, DD].
-        */
-        cal.deselectEvent = new CE(defEvents.DESELECT);
-    
-        /**
-        * Fired when the Calendar page is changed
-        * @event changePageEvent
-        * @param {Date} prevDate The date before the page was changed
-        * @param {Date} newDate The date after the page was changed
-        */
-        cal.changePageEvent = new CE(defEvents.CHANGE_PAGE);
-    
-        /**
-        * Fired before the Calendar is rendered
-        * @event beforeRenderEvent
-        */
-        cal.beforeRenderEvent = new CE(defEvents.BEFORE_RENDER);
-    
-        /**
-        * Fired when the Calendar is rendered
-        * @event renderEvent
-        */
-        cal.renderEvent = new CE(defEvents.RENDER);
-
-        /**
-        * Fired just before the Calendar is to be destroyed
-        * @event beforeDestroyEvent
-        */
-        cal.beforeDestroyEvent = new CE(defEvents.BEFORE_DESTROY);
-
-        /**
-        * Fired after the Calendar is destroyed. This event should be used
-        * for notification only. When this event is fired, important Calendar instance
-        * properties, dom references and event listeners have already been 
-        * removed/dereferenced, and hence the Calendar instance is not in a usable 
-        * state.
-        *
-        * @event destroyEvent
-        */
-        cal.destroyEvent = new CE(defEvents.DESTROY);
-
-        /**
-        * Fired when the Calendar is reset
-        * @event resetEvent
-        */
-        cal.resetEvent = new CE(defEvents.RESET);
-
-        /**
-        * Fired when the Calendar is cleared
-        * @event clearEvent
-        */
-        cal.clearEvent = new CE(defEvents.CLEAR);
-
-        /**
-        * Fired just before the Calendar is to be shown
-        * @event beforeShowEvent
-        */
-        cal.beforeShowEvent = new CE(defEvents.BEFORE_SHOW);
-
-        /**
-        * Fired after the Calendar is shown
-        * @event showEvent
-        */
-        cal.showEvent = new CE(defEvents.SHOW);
-
-        /**
-        * Fired just before the Calendar is to be hidden
-        * @event beforeHideEvent
-        */
-        cal.beforeHideEvent = new CE(defEvents.BEFORE_HIDE);
-
-        /**
-        * Fired after the Calendar is hidden
-        * @event hideEvent
-        */
-        cal.hideEvent = new CE(defEvents.HIDE);
-
-        /**
-        * Fired just before the CalendarNavigator is to be shown
-        * @event beforeShowNavEvent
-        */
-        cal.beforeShowNavEvent = new CE(defEvents.BEFORE_SHOW_NAV);
-    
-        /**
-        * Fired after the CalendarNavigator is shown
-        * @event showNavEvent
-        */
-        cal.showNavEvent = new CE(defEvents.SHOW_NAV);
-    
-        /**
-        * Fired just before the CalendarNavigator is to be hidden
-        * @event beforeHideNavEvent
-        */
-        cal.beforeHideNavEvent = new CE(defEvents.BEFORE_HIDE_NAV);
-    
-        /**
-        * Fired after the CalendarNavigator is hidden
-        * @event hideNavEvent
-        */
-        cal.hideNavEvent = new CE(defEvents.HIDE_NAV);
-
-        /**
-        * Fired just before the CalendarNavigator is to be rendered
-        * @event beforeRenderNavEvent
-        */
-        cal.beforeRenderNavEvent = new CE(defEvents.BEFORE_RENDER_NAV);
-
-        /**
-        * Fired after the CalendarNavigator is rendered
-        * @event renderNavEvent
-        */
-        cal.renderNavEvent = new CE(defEvents.RENDER_NAV);
-
-        cal.beforeSelectEvent.subscribe(cal.onBeforeSelect, this, true);
-        cal.selectEvent.subscribe(cal.onSelect, this, true);
-        cal.beforeDeselectEvent.subscribe(cal.onBeforeDeselect, this, true);
-        cal.deselectEvent.subscribe(cal.onDeselect, this, true);
-        cal.changePageEvent.subscribe(cal.onChangePage, this, true);
-        cal.renderEvent.subscribe(cal.onRender, this, true);
-        cal.resetEvent.subscribe(cal.onReset, this, true);
-        cal.clearEvent.subscribe(cal.onClear, this, true);
-    },
-
-    /**
-    * The default event handler for clicks on the "Previous Month" navigation UI
-    *
-    * @method doPreviousMonthNav
-    * @param {DOMEvent} e The DOM event
-    * @param {Calendar} cal A reference to the calendar
-    */
-    doPreviousMonthNav : function(e, cal) {
-        Event.preventDefault(e);
-        // previousMonth invoked in a timeout, to allow
-        // event to bubble up, with correct target. Calling
-        // previousMonth, will call render which will remove 
-        // HTML which generated the event, resulting in an 
-        // invalid event target in certain browsers.
-        setTimeout(function() {
-            cal.previousMonth();
-            var navs = Dom.getElementsByClassName(cal.Style.CSS_NAV_LEFT, "a", cal.oDomContainer);
-            if (navs && navs[0]) {
-                try {
-                    navs[0].focus();
-                } catch (ex) {
-                    // ignore
-                }
-            }
-        }, 0);
-    },
-
-    /**
-     * The default event handler for clicks on the "Next Month" navigation UI
-     *
-     * @method doNextMonthNav
-     * @param {DOMEvent} e The DOM event
-     * @param {Calendar} cal A reference to the calendar
-     */
-    doNextMonthNav : function(e, cal) {
-        Event.preventDefault(e);
-        setTimeout(function() {
-            cal.nextMonth();
-            var navs = Dom.getElementsByClassName(cal.Style.CSS_NAV_RIGHT, "a", cal.oDomContainer);
-            if (navs && navs[0]) {
-                try {
-                    navs[0].focus();
-                } catch (ex) {
-                    // ignore
-                }
-            }
-        }, 0);
-    },
-
-    /**
-    * The default event handler for date cell selection. Currently attached to 
-    * the Calendar's bounding box, referenced by it's <a href="#property_oDomContainer">oDomContainer</a> property.
-    *
-    * @method doSelectCell
-    * @param {DOMEvent} e The DOM event
-    * @param {Calendar} cal A reference to the calendar
-    */
-    doSelectCell : function(e, cal) {
-        var cell, d, date, index;
-
-        var target = Event.getTarget(e),
-            tagName = target.tagName.toLowerCase(),
-            defSelector = false;
-
-        while (tagName != "td" && !Dom.hasClass(target, cal.Style.CSS_CELL_SELECTABLE)) {
-
-            if (!defSelector && tagName == "a" && Dom.hasClass(target, cal.Style.CSS_CELL_SELECTOR)) {
-                defSelector = true;
-            }
-
-            target = target.parentNode;
-            tagName = target.tagName.toLowerCase();
-
-            if (target == this.oDomContainer || tagName == "html") {
-                return;
-            }
-        }
-
-        if (defSelector) {
-            // Stop link href navigation for default renderer
-            Event.preventDefault(e);
-        }
-    
-        cell = target;
-
-        if (Dom.hasClass(cell, cal.Style.CSS_CELL_SELECTABLE)) {
-            index = cal.getIndexFromId(cell.id);
-            if (index > -1) {
-                d = cal.cellDates[index];
-                if (d) {
-                    date = DateMath.getDate(d[0],d[1]-1,d[2]);
-                
-                    var link;
-
-                    if (cal.Options.MULTI_SELECT) {
-                        link = cell.getElementsByTagName("a")[0];
-                        if (link) {
-                            link.blur();
-                        }
-
-                        var cellDate = cal.cellDates[index];
-                        var cellDateIndex = cal._indexOfSelectedFieldArray(cellDate);
-
-                        if (cellDateIndex > -1) { 
-                            cal.deselectCell(index);
-                        } else {
-                            cal.selectCell(index);
-                        } 
-
-                    } else {
-                        link = cell.getElementsByTagName("a")[0];
-                        if (link) {
-                            link.blur();
-                        }
-                        cal.selectCell(index);
-                    }
-                }
-            }
-        }
-    },
-
-    /**
-    * The event that is executed when the user hovers over a cell
-    * @method doCellMouseOver
-    * @param {DOMEvent} e The event
-    * @param {Calendar} cal A reference to the calendar passed by the Event utility
-    */
-    doCellMouseOver : function(e, cal) {
-        var target;
-        if (e) {
-            target = Event.getTarget(e);
-        } else {
-            target = this;
-        }
-
-        while (target.tagName && target.tagName.toLowerCase() != "td") {
-            target = target.parentNode;
-            if (!target.tagName || target.tagName.toLowerCase() == "html") {
-                return;
-            }
-        }
-
-        if (Dom.hasClass(target, cal.Style.CSS_CELL_SELECTABLE)) {
-            Dom.addClass(target, cal.Style.CSS_CELL_HOVER);
-        }
-    },
-
-    /**
-    * The event that is executed when the user moves the mouse out of a cell
-    * @method doCellMouseOut
-    * @param {DOMEvent} e The event
-    * @param {Calendar} cal A reference to the calendar passed by the Event utility
-    */
-    doCellMouseOut : function(e, cal) {
-        var target;
-        if (e) {
-            target = Event.getTarget(e);
-        } else {
-            target = this;
-        }
-
-        while (target.tagName && target.tagName.toLowerCase() != "td") {
-            target = target.parentNode;
-            if (!target.tagName || target.tagName.toLowerCase() == "html") {
-                return;
-            }
-        }
-
-        if (Dom.hasClass(target, cal.Style.CSS_CELL_SELECTABLE)) {
-            Dom.removeClass(target, cal.Style.CSS_CELL_HOVER);
-        }
-    },
-
-    setupConfig : function() {
-
-        var cfg = this.cfg;
-
-        /**
-        * The date to use to represent "Today".
-        *
-        * @config today
-        * @type Date
-        * @default The client side date (new Date()) when the Calendar is instantiated.
-        */
-        cfg.addProperty(DEF_CFG.TODAY.key, { value: new Date(DEF_CFG.TODAY.value.getTime()), supercedes:DEF_CFG.TODAY.supercedes, handler:this.configToday, suppressEvent:true } );
-
-        /**
-        * The month/year representing the current visible Calendar date (mm/yyyy)
-        * @config pagedate
-        * @type String | Date
-        * @default Today's date
-        */
-        cfg.addProperty(DEF_CFG.PAGEDATE.key, { value: DEF_CFG.PAGEDATE.value || new Date(DEF_CFG.TODAY.value.getTime()), handler:this.configPageDate } );
-
-        /**
-        * The date or range of dates representing the current Calendar selection
-        * @config selected
-        * @type String
-        * @default []
-        */
-        cfg.addProperty(DEF_CFG.SELECTED.key, { value:DEF_CFG.SELECTED.value.concat(), handler:this.configSelected } );
-
-        /**
-        * The title to display above the Calendar's month header
-        * @config title
-        * @type String
-        * @default ""
-        */
-        cfg.addProperty(DEF_CFG.TITLE.key, { value:DEF_CFG.TITLE.value, handler:this.configTitle } );
-
-        /**
-        * Whether or not a close button should be displayed for this Calendar
-        * @config close
-        * @type Boolean
-        * @default false
-        */
-        cfg.addProperty(DEF_CFG.CLOSE.key, { value:DEF_CFG.CLOSE.value, handler:this.configClose } );
-
-        /**
-        * Whether or not an iframe shim should be placed under the Calendar to prevent select boxes from bleeding through in Internet Explorer 6 and below.
-        * This property is enabled by default for IE6 and below. It is disabled by default for other browsers for performance reasons, but can be 
-        * enabled if required.
-        * 
-        * @config iframe
-        * @type Boolean
-        * @default true for IE6 and below, false for all other browsers
-        */
-        cfg.addProperty(DEF_CFG.IFRAME.key, { value:DEF_CFG.IFRAME.value, handler:this.configIframe, validator:cfg.checkBoolean } );
-
-        /**
-        * The minimum selectable date in the current Calendar (mm/dd/yyyy)
-        * @config mindate
-        * @type String | Date
-        * @default null
-        */
-        cfg.addProperty(DEF_CFG.MINDATE.key, { value:DEF_CFG.MINDATE.value, handler:this.configMinDate } );
-
-        /**
-        * The maximum selectable date in the current Calendar (mm/dd/yyyy)
-        * @config maxdate
-        * @type String | Date
-        * @default null
-        */
-        cfg.addProperty(DEF_CFG.MAXDATE.key, { value:DEF_CFG.MAXDATE.value, handler:this.configMaxDate } );
-
-        // Options properties
-    
-        /**
-        * True if the Calendar should allow multiple selections. False by default.
-        * @config MULTI_SELECT
-        * @type Boolean
-        * @default false
-        */
-        cfg.addProperty(DEF_CFG.MULTI_SELECT.key, { value:DEF_CFG.MULTI_SELECT.value, handler:this.configOptions, validator:cfg.checkBoolean } );
-
-        /**
-        * The weekday the week begins on. Default is 0 (Sunday = 0, Monday = 1 ... Saturday = 6).
-        * @config START_WEEKDAY
-        * @type number
-        * @default 0
-        */
-        cfg.addProperty(DEF_CFG.START_WEEKDAY.key, { value:DEF_CFG.START_WEEKDAY.value, handler:this.configOptions, validator:cfg.checkNumber  } );
-    
-        /**
-        * True if the Calendar should show weekday labels. True by default.
-        * @config SHOW_WEEKDAYS
-        * @type Boolean
-        * @default true
-        */
-        cfg.addProperty(DEF_CFG.SHOW_WEEKDAYS.key, { value:DEF_CFG.SHOW_WEEKDAYS.value, handler:this.configOptions, validator:cfg.checkBoolean  } );
-    
-        /**
-        * True if the Calendar should show week row headers. False by default.
-        * @config SHOW_WEEK_HEADER
-        * @type Boolean
-        * @default false
-        */
-        cfg.addProperty(DEF_CFG.SHOW_WEEK_HEADER.key, { value:DEF_CFG.SHOW_WEEK_HEADER.value, handler:this.configOptions, validator:cfg.checkBoolean } );
-    
-        /**
-        * True if the Calendar should show week row footers. False by default.
-        * @config SHOW_WEEK_FOOTER
-        * @type Boolean
-        * @default false
-        */ 
-        cfg.addProperty(DEF_CFG.SHOW_WEEK_FOOTER.key,{ value:DEF_CFG.SHOW_WEEK_FOOTER.value, handler:this.configOptions, validator:cfg.checkBoolean } );
-    
-        /**
-        * True if the Calendar should suppress weeks that are not a part of the current month. False by default.
-        * @config HIDE_BLANK_WEEKS
-        * @type Boolean
-        * @default false
-        */ 
-        cfg.addProperty(DEF_CFG.HIDE_BLANK_WEEKS.key, { value:DEF_CFG.HIDE_BLANK_WEEKS.value, handler:this.configOptions, validator:cfg.checkBoolean } );
-        
-        /**
-        * The image that should be used for the left navigation arrow.
-        * @config NAV_ARROW_LEFT
-        * @type String
-        * @deprecated You can customize the image by overriding the default CSS class for the left arrow - "calnavleft"  
-        * @default null
-        */ 
-        cfg.addProperty(DEF_CFG.NAV_ARROW_LEFT.key, { value:DEF_CFG.NAV_ARROW_LEFT.value, handler:this.configOptions } );
-    
-        /**
-        * The image that should be used for the right navigation arrow.
-        * @config NAV_ARROW_RIGHT
-        * @type String
-        * @deprecated You can customize the image by overriding the default CSS class for the right arrow - "calnavright"
-        * @default null
-        */ 
-        cfg.addProperty(DEF_CFG.NAV_ARROW_RIGHT.key, { value:DEF_CFG.NAV_ARROW_RIGHT.value, handler:this.configOptions } );
-    
-        // Locale properties
-    
-        /**
-        * The short month labels for the current locale.
-        * @config MONTHS_SHORT
-        * @type String[]
-        * @default ["Jan", "Feb", "Mar", "Apr", "May", "Jun", "Jul", "Aug", "Sep", "Oct", "Nov", "Dec"]
-        */
-        cfg.addProperty(DEF_CFG.MONTHS_SHORT.key, { value:DEF_CFG.MONTHS_SHORT.value, handler:this.configLocale } );
-        
-        /**
-        * The long month labels for the current locale.
-        * @config MONTHS_LONG
-        * @type String[]
-        * @default ["January", "February", "March", "April", "May", "June", "July", "August", "September", "October", "November", "December"
-        */ 
-        cfg.addProperty(DEF_CFG.MONTHS_LONG.key,  { value:DEF_CFG.MONTHS_LONG.value, handler:this.configLocale } );
-
-        /**
-        * The 1-character weekday labels for the current locale.
-        * @config WEEKDAYS_1CHAR
-        * @type String[]
-        * @default ["S", "M", "T", "W", "T", "F", "S"]
-        */ 
-        cfg.addProperty(DEF_CFG.WEEKDAYS_1CHAR.key, { value:DEF_CFG.WEEKDAYS_1CHAR.value, handler:this.configLocale } );
-        
-        /**
-        * The short weekday labels for the current locale.
-        * @config WEEKDAYS_SHORT
-        * @type String[]
-        * @default ["Su", "Mo", "Tu", "We", "Th", "Fr", "Sa"]
-        */ 
-        cfg.addProperty(DEF_CFG.WEEKDAYS_SHORT.key, { value:DEF_CFG.WEEKDAYS_SHORT.value, handler:this.configLocale } );
-        
-        /**
-        * The medium weekday labels for the current locale.
-        * @config WEEKDAYS_MEDIUM
-        * @type String[]
-        * @default ["Sun", "Mon", "Tue", "Wed", "Thu", "Fri", "Sat"]
-        */ 
-        cfg.addProperty(DEF_CFG.WEEKDAYS_MEDIUM.key, { value:DEF_CFG.WEEKDAYS_MEDIUM.value, handler:this.configLocale } );
-        
-        /**
-        * The long weekday labels for the current locale.
-        * @config WEEKDAYS_LONG
-        * @type String[]
-        * @default ["Sunday", "Monday", "Tuesday", "Wednesday", "Thursday", "Friday", "Saturday"]
-        */ 
-        cfg.addProperty(DEF_CFG.WEEKDAYS_LONG.key, { value:DEF_CFG.WEEKDAYS_LONG.value, handler:this.configLocale } );
-
-        /**
-        * Refreshes the locale values used to build the Calendar.
-        * @method refreshLocale
-        * @private
-        */
-        var refreshLocale = function() {
-            cfg.refireEvent(DEF_CFG.LOCALE_MONTHS.key);
-            cfg.refireEvent(DEF_CFG.LOCALE_WEEKDAYS.key);
-        };
-    
-        cfg.subscribeToConfigEvent(DEF_CFG.START_WEEKDAY.key, refreshLocale, this, true);
-        cfg.subscribeToConfigEvent(DEF_CFG.MONTHS_SHORT.key, refreshLocale, this, true);
-        cfg.subscribeToConfigEvent(DEF_CFG.MONTHS_LONG.key, refreshLocale, this, true);
-        cfg.subscribeToConfigEvent(DEF_CFG.WEEKDAYS_1CHAR.key, refreshLocale, this, true);
-        cfg.subscribeToConfigEvent(DEF_CFG.WEEKDAYS_SHORT.key, refreshLocale, this, true);
-        cfg.subscribeToConfigEvent(DEF_CFG.WEEKDAYS_MEDIUM.key, refreshLocale, this, true);
-        cfg.subscribeToConfigEvent(DEF_CFG.WEEKDAYS_LONG.key, refreshLocale, this, true);
-       
-        /**
-        * The setting that determines which length of month labels should be used. Possible values are "short" and "long".
-        * @config LOCALE_MONTHS
-        * @type String
-        * @default "long"
-        */ 
-        cfg.addProperty(DEF_CFG.LOCALE_MONTHS.key, { value:DEF_CFG.LOCALE_MONTHS.value, handler:this.configLocaleValues } );
-        
-        /**
-        * The setting that determines which length of weekday labels should be used. Possible values are "1char", "short", "medium", and "long".
-        * @config LOCALE_WEEKDAYS
-        * @type String
-        * @default "short"
-        */ 
-        cfg.addProperty(DEF_CFG.LOCALE_WEEKDAYS.key, { value:DEF_CFG.LOCALE_WEEKDAYS.value, handler:this.configLocaleValues } );
-
-        /**
-        * The positive or negative year offset from the Gregorian calendar year (assuming a January 1st rollover) to 
-        * be used when displaying and parsing dates. NOTE: All JS Date objects returned by methods, or expected as input by
-        * methods will always represent the Gregorian year, in order to maintain date/month/week values. 
-        *
-        * @config YEAR_OFFSET
-        * @type Number
-        * @default 0
-        */
-        cfg.addProperty(DEF_CFG.YEAR_OFFSET.key, { value:DEF_CFG.YEAR_OFFSET.value, supercedes:DEF_CFG.YEAR_OFFSET.supercedes, handler:this.configLocale  } );
-    
-        /**
-        * The value used to delimit individual dates in a date string passed to various Calendar functions.
-        * @config DATE_DELIMITER
-        * @type String
-        * @default ","
-        */ 
-        cfg.addProperty(DEF_CFG.DATE_DELIMITER.key,  { value:DEF_CFG.DATE_DELIMITER.value, handler:this.configLocale } );
-    
-        /**
-        * The value used to delimit date fields in a date string passed to various Calendar functions.
-        * @config DATE_FIELD_DELIMITER
-        * @type String
-        * @default "/"
-        */ 
-        cfg.addProperty(DEF_CFG.DATE_FIELD_DELIMITER.key, { value:DEF_CFG.DATE_FIELD_DELIMITER.value, handler:this.configLocale } );
-    
-        /**
-        * The value used to delimit date ranges in a date string passed to various Calendar functions.
-        * @config DATE_RANGE_DELIMITER
-        * @type String
-        * @default "-"
-        */
-        cfg.addProperty(DEF_CFG.DATE_RANGE_DELIMITER.key, { value:DEF_CFG.DATE_RANGE_DELIMITER.value, handler:this.configLocale } );
-    
-        /**
-        * The position of the month in a month/year date string
-        * @config MY_MONTH_POSITION
-        * @type Number
-        * @default 1
-        */
-        cfg.addProperty(DEF_CFG.MY_MONTH_POSITION.key, { value:DEF_CFG.MY_MONTH_POSITION.value, handler:this.configLocale, validator:cfg.checkNumber } );
-    
-        /**
-        * The position of the year in a month/year date string
-        * @config MY_YEAR_POSITION
-        * @type Number
-        * @default 2
-        */
-        cfg.addProperty(DEF_CFG.MY_YEAR_POSITION.key, { value:DEF_CFG.MY_YEAR_POSITION.value, handler:this.configLocale, validator:cfg.checkNumber } );
-    
-        /**
-        * The position of the month in a month/day date string
-        * @config MD_MONTH_POSITION
-        * @type Number
-        * @default 1
-        */
-        cfg.addProperty(DEF_CFG.MD_MONTH_POSITION.key, { value:DEF_CFG.MD_MONTH_POSITION.value, handler:this.configLocale, validator:cfg.checkNumber } );
-    
-        /**
-        * The position of the day in a month/year date string
-        * @config MD_DAY_POSITION
-        * @type Number
-        * @default 2
-        */
-        cfg.addProperty(DEF_CFG.MD_DAY_POSITION.key,  { value:DEF_CFG.MD_DAY_POSITION.value, handler:this.configLocale, validator:cfg.checkNumber } );
-    
-        /**
-        * The position of the month in a month/day/year date string
-        * @config MDY_MONTH_POSITION
-        * @type Number
-        * @default 1
-        */
-        cfg.addProperty(DEF_CFG.MDY_MONTH_POSITION.key, { value:DEF_CFG.MDY_MONTH_POSITION.value, handler:this.configLocale, validator:cfg.checkNumber } );
-    
-        /**
-        * The position of the day in a month/day/year date string
-        * @config MDY_DAY_POSITION
-        * @type Number
-        * @default 2
-        */
-        cfg.addProperty(DEF_CFG.MDY_DAY_POSITION.key, { value:DEF_CFG.MDY_DAY_POSITION.value, handler:this.configLocale, validator:cfg.checkNumber } );
-    
-        /**
-        * The position of the year in a month/day/year date string
-        * @config MDY_YEAR_POSITION
-        * @type Number
-        * @default 3
-        */
-        cfg.addProperty(DEF_CFG.MDY_YEAR_POSITION.key, { value:DEF_CFG.MDY_YEAR_POSITION.value, handler:this.configLocale, validator:cfg.checkNumber } );
-        
-        /**
-        * The position of the month in the month year label string used as the Calendar header
-        * @config MY_LABEL_MONTH_POSITION
-        * @type Number
-        * @default 1
-        */
-        cfg.addProperty(DEF_CFG.MY_LABEL_MONTH_POSITION.key, { value:DEF_CFG.MY_LABEL_MONTH_POSITION.value, handler:this.configLocale, validator:cfg.checkNumber } );
-    
-        /**
-        * The position of the year in the month year label string used as the Calendar header
-        * @config MY_LABEL_YEAR_POSITION
-        * @type Number
-        * @default 2
-        */
-        cfg.addProperty(DEF_CFG.MY_LABEL_YEAR_POSITION.key, { value:DEF_CFG.MY_LABEL_YEAR_POSITION.value, handler:this.configLocale, validator:cfg.checkNumber } );
-        
-        /**
-        * The suffix used after the month when rendering the Calendar header
-        * @config MY_LABEL_MONTH_SUFFIX
-        * @type String
-        * @default " "
-        */
-        cfg.addProperty(DEF_CFG.MY_LABEL_MONTH_SUFFIX.key, { value:DEF_CFG.MY_LABEL_MONTH_SUFFIX.value, handler:this.configLocale } );
-        
-        /**
-        * The suffix used after the year when rendering the Calendar header
-        * @config MY_LABEL_YEAR_SUFFIX
-        * @type String
-        * @default ""
-        */
-        cfg.addProperty(DEF_CFG.MY_LABEL_YEAR_SUFFIX.key, { value:DEF_CFG.MY_LABEL_YEAR_SUFFIX.value, handler:this.configLocale } );
-
-        /**
-        * Configuration for the Month/Year CalendarNavigator UI which allows the user to jump directly to a 
-        * specific Month/Year without having to scroll sequentially through months.
-        * <p>
-        * Setting this property to null (default value) or false, will disable the CalendarNavigator UI.
-        * </p>
-        * <p>
-        * Setting this property to true will enable the CalendarNavigatior UI with the default CalendarNavigator configuration values.
-        * </p>
-        * <p>
-        * This property can also be set to an object literal containing configuration properties for the CalendarNavigator UI.
-        * The configuration object expects the following case-sensitive properties, with the "strings" property being a nested object.
-        * Any properties which are not provided will use the default values (defined in the CalendarNavigator class).
-        * </p>
-        * <dl>
-        * <dt>strings</dt>
-        * <dd><em>Object</em> :  An object with the properties shown below, defining the string labels to use in the Navigator's UI
-        *     <dl>
-        *         <dt>month</dt><dd><em>String</em> : The string to use for the month label. Defaults to "Month".</dd>
-        *         <dt>year</dt><dd><em>String</em> : The string to use for the year label. Defaults to "Year".</dd>
-        *         <dt>submit</dt><dd><em>String</em> : The string to use for the submit button label. Defaults to "Okay".</dd>
-        *         <dt>cancel</dt><dd><em>String</em> : The string to use for the cancel button label. Defaults to "Cancel".</dd>
-        *         <dt>invalidYear</dt><dd><em>String</em> : The string to use for invalid year values. Defaults to "Year needs to be a number".</dd>
-        *     </dl>
-        * </dd>
-        * <dt>monthFormat</dt><dd><em>String</em> : The month format to use. Either YAHOO.widget.Calendar.LONG, or YAHOO.widget.Calendar.SHORT. Defaults to YAHOO.widget.Calendar.LONG</dd>
-        * <dt>initialFocus</dt><dd><em>String</em> : Either "year" or "month" specifying which input control should get initial focus. Defaults to "year"</dd>
-        * </dl>
-        * <p>E.g.</p>
-        * <pre>
-        * var navConfig = {
-        *   strings: {
-        *    month:"Calendar Month",
-        *    year:"Calendar Year",
-        *    submit: "Submit",
-        *    cancel: "Cancel",
-        *    invalidYear: "Please enter a valid year"
-        *   },
-        *   monthFormat: YAHOO.widget.Calendar.SHORT,
-        *   initialFocus: "month"
-        * }
-        * </pre>
-        * @config navigator
-        * @type {Object|Boolean}
-        * @default null
-        */
-        cfg.addProperty(DEF_CFG.NAV.key, { value:DEF_CFG.NAV.value, handler:this.configNavigator } );
-
-        /**
-         * The map of UI strings which the Calendar UI uses.
-         *
-         * @config strings
-         * @type {Object}
-         * @default An object with the properties shown below:
-         *     <dl>
-         *         <dt>previousMonth</dt><dd><em>String</em> : The string to use for the "Previous Month" navigation UI. Defaults to "Previous Month".</dd>
-         *         <dt>nextMonth</dt><dd><em>String</em> : The string to use for the "Next Month" navigation UI. Defaults to "Next Month".</dd>
-         *         <dt>close</dt><dd><em>String</em> : The string to use for the close button label. Defaults to "Close".</dd>
-         *     </dl>
-         */
-        cfg.addProperty(DEF_CFG.STRINGS.key, { 
-            value:DEF_CFG.STRINGS.value,
-            handler:this.configStrings,
-            validator: function(val) {
-                return Lang.isObject(val);
-            },
-            supercedes:DEF_CFG.STRINGS.supercedes
-        });
-    },
-
-    /**
-    * The default handler for the "strings" property
-    * @method configStrings
-    */
-    configStrings : function(type, args, obj) {
-        var val = Lang.merge(DEF_CFG.STRINGS.value, args[0]);
-        this.cfg.setProperty(DEF_CFG.STRINGS.key, val, true);
-    },
-
-    /**
-    * The default handler for the "pagedate" property
-    * @method configPageDate
-    */
-    configPageDate : function(type, args, obj) {
-        this.cfg.setProperty(DEF_CFG.PAGEDATE.key, this._parsePageDate(args[0]), true);
-    },
-
-    /**
-    * The default handler for the "mindate" property
-    * @method configMinDate
-    */
-    configMinDate : function(type, args, obj) {
-        var val = args[0];
-        if (Lang.isString(val)) {
-            val = this._parseDate(val);
-            this.cfg.setProperty(DEF_CFG.MINDATE.key, DateMath.getDate(val[0],(val[1]-1),val[2]));
-        }
-    },
-
-    /**
-    * The default handler for the "maxdate" property
-    * @method configMaxDate
-    */
-    configMaxDate : function(type, args, obj) {
-        var val = args[0];
-        if (Lang.isString(val)) {
-            val = this._parseDate(val);
-            this.cfg.setProperty(DEF_CFG.MAXDATE.key, DateMath.getDate(val[0],(val[1]-1),val[2]));
-        }
-    },
-
-    /**
-    * The default handler for the "today" property
-    * @method configToday
-    */
-    configToday : function(type, args, obj) {
-        // Only do this for initial set. Changing the today property after the initial
-        // set, doesn't affect pagedate
-        var val = args[0];
-        if (Lang.isString(val)) {
-            val = this._parseDate(val);
-        }
-        var today = DateMath.clearTime(val);
-        if (!this.cfg.initialConfig[DEF_CFG.PAGEDATE.key]) {
-            this.cfg.setProperty(DEF_CFG.PAGEDATE.key, today);
-        }
-        this.today = today;
-        this.cfg.setProperty(DEF_CFG.TODAY.key, today, true);
-    },
-
-    /**
-    * The default handler for the "selected" property
-    * @method configSelected
-    */
-    configSelected : function(type, args, obj) {
-        var selected = args[0],
-            cfgSelected = DEF_CFG.SELECTED.key;
-        
-        if (selected) {
-            if (Lang.isString(selected)) {
-                this.cfg.setProperty(cfgSelected, this._parseDates(selected), true);
-            } 
-        }
-        if (! this._selectedDates) {
-            this._selectedDates = this.cfg.getProperty(cfgSelected);
-        }
-    },
-    
-    /**
-    * The default handler for all configuration options properties
-    * @method configOptions
-    */
-    configOptions : function(type, args, obj) {
-        this.Options[type.toUpperCase()] = args[0];
-    },
-
-    /**
-    * The default handler for all configuration locale properties
-    * @method configLocale
-    */
-    configLocale : function(type, args, obj) {
-        this.Locale[type.toUpperCase()] = args[0];
-
-        this.cfg.refireEvent(DEF_CFG.LOCALE_MONTHS.key);
-        this.cfg.refireEvent(DEF_CFG.LOCALE_WEEKDAYS.key);
-    },
-    
-    /**
-    * The default handler for all configuration locale field length properties
-    * @method configLocaleValues
-    */
-    configLocaleValues : function(type, args, obj) {
-
-        type = type.toLowerCase();
-
-        var val = args[0],
-            cfg = this.cfg,
-            Locale = this.Locale;
-
-        switch (type) {
-            case DEF_CFG.LOCALE_MONTHS.key:
-                switch (val) {
-                    case Calendar.SHORT:
-                        Locale.LOCALE_MONTHS = cfg.getProperty(DEF_CFG.MONTHS_SHORT.key).concat();
-                        break;
-                    case Calendar.LONG:
-                        Locale.LOCALE_MONTHS = cfg.getProperty(DEF_CFG.MONTHS_LONG.key).concat();
-                        break;
-                }
-                break;
-            case DEF_CFG.LOCALE_WEEKDAYS.key:
-                switch (val) {
-                    case Calendar.ONE_CHAR:
-                        Locale.LOCALE_WEEKDAYS = cfg.getProperty(DEF_CFG.WEEKDAYS_1CHAR.key).concat();
-                        break;
-                    case Calendar.SHORT:
-                        Locale.LOCALE_WEEKDAYS = cfg.getProperty(DEF_CFG.WEEKDAYS_SHORT.key).concat();
-                        break;
-                    case Calendar.MEDIUM:
-                        Locale.LOCALE_WEEKDAYS = cfg.getProperty(DEF_CFG.WEEKDAYS_MEDIUM.key).concat();
-                        break;
-                    case Calendar.LONG:
-                        Locale.LOCALE_WEEKDAYS = cfg.getProperty(DEF_CFG.WEEKDAYS_LONG.key).concat();
-                        break;
-                }
-                
-                var START_WEEKDAY = cfg.getProperty(DEF_CFG.START_WEEKDAY.key);
-    
-                if (START_WEEKDAY > 0) {
-                    for (var w=0; w < START_WEEKDAY; ++w) {
-                        Locale.LOCALE_WEEKDAYS.push(Locale.LOCALE_WEEKDAYS.shift());
-                    }
-                }
-                break;
-        }
-    },
-
-    /**
-     * The default handler for the "navigator" property
-     * @method configNavigator
-     */
-    configNavigator : function(type, args, obj) {
-        var val = args[0];
-        if (YAHOO.widget.CalendarNavigator && (val === true || Lang.isObject(val))) {
-            if (!this.oNavigator) {
-                this.oNavigator = new YAHOO.widget.CalendarNavigator(this);
-                // Cleanup DOM Refs/Events before innerHTML is removed.
-                this.beforeRenderEvent.subscribe(function () {
-                    if (!this.pages) {
-                        this.oNavigator.erase();
-                    }
-                }, this, true);
-            }
-        } else {
-            if (this.oNavigator) {
-                this.oNavigator.destroy();
-                this.oNavigator = null;
-            }
-        }
-    },
-
-    /**
-    * Defines the style constants for the Calendar
-    * @method initStyles
-    */
-    initStyles : function() {
-
-        var defStyle = Calendar.STYLES;
-
-        this.Style = {
-            /**
-            * @property Style.CSS_ROW_HEADER
-            */
-            CSS_ROW_HEADER: defStyle.CSS_ROW_HEADER,
-            /**
-            * @property Style.CSS_ROW_FOOTER
-            */
-            CSS_ROW_FOOTER: defStyle.CSS_ROW_FOOTER,
-            /**
-            * @property Style.CSS_CELL
-            */
-            CSS_CELL : defStyle.CSS_CELL,
-            /**
-            * @property Style.CSS_CELL_SELECTOR
-            */
-            CSS_CELL_SELECTOR : defStyle.CSS_CELL_SELECTOR,
-            /**
-            * @property Style.CSS_CELL_SELECTED
-            */
-            CSS_CELL_SELECTED : defStyle.CSS_CELL_SELECTED,
-            /**
-            * @property Style.CSS_CELL_SELECTABLE
-            */
-            CSS_CELL_SELECTABLE : defStyle.CSS_CELL_SELECTABLE,
-            /**
-            * @property Style.CSS_CELL_RESTRICTED
-            */
-            CSS_CELL_RESTRICTED : defStyle.CSS_CELL_RESTRICTED,
-            /**
-            * @property Style.CSS_CELL_TODAY
-            */
-            CSS_CELL_TODAY : defStyle.CSS_CELL_TODAY,
-            /**
-            * @property Style.CSS_CELL_OOM
-            */
-            CSS_CELL_OOM : defStyle.CSS_CELL_OOM,
-            /**
-            * @property Style.CSS_CELL_OOB
-            */
-            CSS_CELL_OOB : defStyle.CSS_CELL_OOB,
-            /**
-            * @property Style.CSS_HEADER
-            */
-            CSS_HEADER : defStyle.CSS_HEADER,
-            /**
-            * @property Style.CSS_HEADER_TEXT
-            */
-            CSS_HEADER_TEXT : defStyle.CSS_HEADER_TEXT,
-            /**
-            * @property Style.CSS_BODY
-            */
-            CSS_BODY : defStyle.CSS_BODY,
-            /**
-            * @property Style.CSS_WEEKDAY_CELL
-            */
-            CSS_WEEKDAY_CELL : defStyle.CSS_WEEKDAY_CELL,
-            /**
-            * @property Style.CSS_WEEKDAY_ROW
-            */
-            CSS_WEEKDAY_ROW : defStyle.CSS_WEEKDAY_ROW,
-            /**
-            * @property Style.CSS_FOOTER
-            */
-            CSS_FOOTER : defStyle.CSS_FOOTER,
-            /**
-            * @property Style.CSS_CALENDAR
-            */
-            CSS_CALENDAR : defStyle.CSS_CALENDAR,
-            /**
-            * @property Style.CSS_SINGLE
-            */
-            CSS_SINGLE : defStyle.CSS_SINGLE,
-            /**
-            * @property Style.CSS_CONTAINER
-            */
-            CSS_CONTAINER : defStyle.CSS_CONTAINER,
-            /**
-            * @property Style.CSS_NAV_LEFT
-            */
-            CSS_NAV_LEFT : defStyle.CSS_NAV_LEFT,
-            /**
-            * @property Style.CSS_NAV_RIGHT
-            */
-            CSS_NAV_RIGHT : defStyle.CSS_NAV_RIGHT,
-            /**
-            * @property Style.CSS_NAV
-            */
-            CSS_NAV : defStyle.CSS_NAV,
-            /**
-            * @property Style.CSS_CLOSE
-            */
-            CSS_CLOSE : defStyle.CSS_CLOSE,
-            /**
-            * @property Style.CSS_CELL_TOP
-            */
-            CSS_CELL_TOP : defStyle.CSS_CELL_TOP,
-            /**
-            * @property Style.CSS_CELL_LEFT
-            */
-            CSS_CELL_LEFT : defStyle.CSS_CELL_LEFT,
-            /**
-            * @property Style.CSS_CELL_RIGHT
-            */
-            CSS_CELL_RIGHT : defStyle.CSS_CELL_RIGHT,
-            /**
-            * @property Style.CSS_CELL_BOTTOM
-            */
-            CSS_CELL_BOTTOM : defStyle.CSS_CELL_BOTTOM,
-            /**
-            * @property Style.CSS_CELL_HOVER
-            */
-            CSS_CELL_HOVER : defStyle.CSS_CELL_HOVER,
-            /**
-            * @property Style.CSS_CELL_HIGHLIGHT1
-            */
-            CSS_CELL_HIGHLIGHT1 : defStyle.CSS_CELL_HIGHLIGHT1,
-            /**
-            * @property Style.CSS_CELL_HIGHLIGHT2
-            */
-            CSS_CELL_HIGHLIGHT2 : defStyle.CSS_CELL_HIGHLIGHT2,
-            /**
-            * @property Style.CSS_CELL_HIGHLIGHT3
-            */
-            CSS_CELL_HIGHLIGHT3 : defStyle.CSS_CELL_HIGHLIGHT3,
-            /**
-            * @property Style.CSS_CELL_HIGHLIGHT4
-            */
-            CSS_CELL_HIGHLIGHT4 : defStyle.CSS_CELL_HIGHLIGHT4,
-            /**
-             * @property Style.CSS_WITH_TITLE
-             */
-            CSS_WITH_TITLE : defStyle.CSS_WITH_TITLE,
-             /**
-             * @property Style.CSS_FIXED_SIZE
-             */
-            CSS_FIXED_SIZE : defStyle.CSS_FIXED_SIZE,
-             /**
-             * @property Style.CSS_LINK_CLOSE
-             */
-            CSS_LINK_CLOSE : defStyle.CSS_LINK_CLOSE
-        };
-    },
-
-    /**
-    * Builds the date label that will be displayed in the calendar header or
-    * footer, depending on configuration.
-    * @method buildMonthLabel
-    * @return {String} The formatted calendar month label
-    */
-    buildMonthLabel : function() {
-        return this._buildMonthLabel(this.cfg.getProperty(DEF_CFG.PAGEDATE.key));
-    },
-
-    /**
-     * Helper method, to format a Month Year string, given a JavaScript Date, based on the 
-     * Calendar localization settings
-     * 
-     * @method _buildMonthLabel
-     * @private
-     * @param {Date} date
-     * @return {String} Formated month, year string
-     */
-    _buildMonthLabel : function(date) {
-        var monthLabel  = this.Locale.LOCALE_MONTHS[date.getMonth()] + this.Locale.MY_LABEL_MONTH_SUFFIX,
-            yearLabel = (date.getFullYear() + this.Locale.YEAR_OFFSET) + this.Locale.MY_LABEL_YEAR_SUFFIX;
-
-        if (this.Locale.MY_LABEL_MONTH_POSITION == 2 || this.Locale.MY_LABEL_YEAR_POSITION == 1) {
-            return yearLabel + monthLabel;
-        } else {
-            return monthLabel + yearLabel;
-        }
-    },
-    
-    /**
-    * Builds the date digit that will be displayed in calendar cells
-    * @method buildDayLabel
-    * @param {Date} workingDate The current working date
-    * @return {String} The formatted day label
-    */
-    buildDayLabel : function(workingDate) {
-        return workingDate.getDate();
-    },
-    
-    /**
-     * Creates the title bar element and adds it to Calendar container DIV
-     * 
-     * @method createTitleBar
-     * @param {String} strTitle The title to display in the title bar
-     * @return The title bar element
-     */
-    createTitleBar : function(strTitle) {
-        var tDiv = Dom.getElementsByClassName(YAHOO.widget.CalendarGroup.CSS_2UPTITLE, "div", this.oDomContainer)[0] || document.createElement("div");
-        tDiv.className = YAHOO.widget.CalendarGroup.CSS_2UPTITLE;
-        tDiv.innerHTML = strTitle;
-        this.oDomContainer.insertBefore(tDiv, this.oDomContainer.firstChild);
-    
-        Dom.addClass(this.oDomContainer, this.Style.CSS_WITH_TITLE);
-    
-        return tDiv;
-    },
-    
-    /**
-     * Removes the title bar element from the DOM
-     * 
-     * @method removeTitleBar
-     */
-    removeTitleBar : function() {
-        var tDiv = Dom.getElementsByClassName(YAHOO.widget.CalendarGroup.CSS_2UPTITLE, "div", this.oDomContainer)[0] || null;
-        if (tDiv) {
-            Event.purgeElement(tDiv);
-            this.oDomContainer.removeChild(tDiv);
-        }
-        Dom.removeClass(this.oDomContainer, this.Style.CSS_WITH_TITLE);
-    },
-    
-    /**
-     * Creates the close button HTML element and adds it to Calendar container DIV
-     * 
-     * @method createCloseButton
-     * @return The close HTML element created
-     */
-    createCloseButton : function() {
-        var cssClose = YAHOO.widget.CalendarGroup.CSS_2UPCLOSE,
-            cssLinkClose = this.Style.CSS_LINK_CLOSE,
-            DEPR_CLOSE_PATH = "us/my/bn/x_d.gif",
-            
-            lnk = Dom.getElementsByClassName(cssLinkClose, "a", this.oDomContainer)[0],
-            strings = this.cfg.getProperty(DEF_CFG.STRINGS.key),
-            closeStr = (strings && strings.close) ? strings.close : "";
-
-        if (!lnk) {
-            lnk = document.createElement("a");
-            Event.addListener(lnk, "click", function(e, cal) {
-                cal.hide(); 
-                Event.preventDefault(e);
-            }, this);
-        }
-
-        lnk.href = "#";
-        lnk.className = cssLinkClose;
-
-        if (Calendar.IMG_ROOT !== null) {
-            var img = Dom.getElementsByClassName(cssClose, "img", lnk)[0] || document.createElement("img");
-            img.src = Calendar.IMG_ROOT + DEPR_CLOSE_PATH;
-            img.className = cssClose;
-            lnk.appendChild(img);
-        } else {
-            lnk.innerHTML = '<span class="' + cssClose + ' ' + this.Style.CSS_CLOSE + '">' + closeStr + '</span>';
-        }
-        this.oDomContainer.appendChild(lnk);
-
-        return lnk;
-    },
-    
-    /**
-     * Removes the close button HTML element from the DOM
-     * 
-     * @method removeCloseButton
-     */
-    removeCloseButton : function() {
-        var btn = Dom.getElementsByClassName(this.Style.CSS_LINK_CLOSE, "a", this.oDomContainer)[0] || null;
-        if (btn) {
-            Event.purgeElement(btn);
-            this.oDomContainer.removeChild(btn);
-        }
-    },
-
-    /**
-    * Renders the calendar header.
-    * @method renderHeader
-    * @param {Array} html The current working HTML array
-    * @return {Array} The current working HTML array
-    */
-    renderHeader : function(html) {
-
-
-        var colSpan = 7,
-            DEPR_NAV_LEFT = "us/tr/callt.gif",
-            DEPR_NAV_RIGHT = "us/tr/calrt.gif",
-            cfg = this.cfg,
-            pageDate = cfg.getProperty(DEF_CFG.PAGEDATE.key),
-            strings= cfg.getProperty(DEF_CFG.STRINGS.key),
-            prevStr = (strings && strings.previousMonth) ?  strings.previousMonth : "",
-            nextStr = (strings && strings.nextMonth) ? strings.nextMonth : "",
-            monthLabel;
-
-        if (cfg.getProperty(DEF_CFG.SHOW_WEEK_HEADER.key)) {
-            colSpan += 1;
-        }
-    
-        if (cfg.getProperty(DEF_CFG.SHOW_WEEK_FOOTER.key)) {
-            colSpan += 1;
-        }
-
-        html[html.length] = "<thead>";
-        html[html.length] =  "<tr>";
-        html[html.length] =   '<th colspan="' + colSpan + '" class="' + this.Style.CSS_HEADER_TEXT + '">';
-        html[html.length] =    '<div class="' + this.Style.CSS_HEADER + '">';
-
-        var renderLeft, renderRight = false;
-
-        if (this.parent) {
-            if (this.index === 0) {
-                renderLeft = true;
-            }
-            if (this.index == (this.parent.cfg.getProperty("pages") -1)) {
-                renderRight = true;
-            }
-        } else {
-            renderLeft = true;
-            renderRight = true;
-        }
-
-        if (renderLeft) {
-            monthLabel  = this._buildMonthLabel(DateMath.subtract(pageDate, DateMath.MONTH, 1));
-
-            var leftArrow = cfg.getProperty(DEF_CFG.NAV_ARROW_LEFT.key);
-            // Check for deprecated customization - If someone set IMG_ROOT, but didn't set NAV_ARROW_LEFT, then set NAV_ARROW_LEFT to the old deprecated value
-            if (leftArrow === null && Calendar.IMG_ROOT !== null) {
-                leftArrow = Calendar.IMG_ROOT + DEPR_NAV_LEFT;
-            }
-            var leftStyle = (leftArrow === null) ? "" : ' style="background-image:url(' + leftArrow + ')"';
-            html[html.length] = '<a class="' + this.Style.CSS_NAV_LEFT + '"' + leftStyle + ' href="#">' + prevStr + ' (' + monthLabel + ')' + '</a>';
-        }
-
-        var lbl = this.buildMonthLabel();
-        var cal = this.parent || this;
-        if (cal.cfg.getProperty("navigator")) {
-            lbl = "<a class=\"" + this.Style.CSS_NAV + "\" href=\"#\">" + lbl + "</a>";
-        }
-        html[html.length] = lbl;
-
-        if (renderRight) {
-            monthLabel  = this._buildMonthLabel(DateMath.add(pageDate, DateMath.MONTH, 1));
-
-            var rightArrow = cfg.getProperty(DEF_CFG.NAV_ARROW_RIGHT.key);
-            if (rightArrow === null && Calendar.IMG_ROOT !== null) {
-                rightArrow = Calendar.IMG_ROOT + DEPR_NAV_RIGHT;
-            }
-            var rightStyle = (rightArrow === null) ? "" : ' style="background-image:url(' + rightArrow + ')"';
-            html[html.length] = '<a class="' + this.Style.CSS_NAV_RIGHT + '"' + rightStyle + ' href="#">' + nextStr + ' (' + monthLabel + ')' + '</a>';
-        }
-
-        html[html.length] = '</div>\n</th>\n</tr>';
-
-        if (cfg.getProperty(DEF_CFG.SHOW_WEEKDAYS.key)) {
-            html = this.buildWeekdays(html);
-        }
-        
-        html[html.length] = '</thead>';
-    
-        return html;
-    },
-    
-    /**
-    * Renders the Calendar's weekday headers.
-    * @method buildWeekdays
-    * @param {Array} html The current working HTML array
-    * @return {Array} The current working HTML array
-    */
-    buildWeekdays : function(html) {
-
-        html[html.length] = '<tr class="' + this.Style.CSS_WEEKDAY_ROW + '">';
-
-        if (this.cfg.getProperty(DEF_CFG.SHOW_WEEK_HEADER.key)) {
-            html[html.length] = '<th>&#160;</th>';
-        }
-
-        for(var i=0;i < this.Locale.LOCALE_WEEKDAYS.length; ++i) {
-            html[html.length] = '<th class="' + this.Style.CSS_WEEKDAY_CELL + '">' + this.Locale.LOCALE_WEEKDAYS[i] + '</th>';
-        }
-
-        if (this.cfg.getProperty(DEF_CFG.SHOW_WEEK_FOOTER.key)) {
-            html[html.length] = '<th>&#160;</th>';
-        }
-
-        html[html.length] = '</tr>';
-
-        return html;
-    },
-    
-    /**
-    * Renders the calendar body.
-    * @method renderBody
-    * @param {Date} workingDate The current working Date being used for the render process
-    * @param {Array} html The current working HTML array
-    * @return {Array} The current working HTML array
-    */
-    renderBody : function(workingDate, html) {
-
-        var startDay = this.cfg.getProperty(DEF_CFG.START_WEEKDAY.key);
-
-        this.preMonthDays = workingDate.getDay();
-        if (startDay > 0) {
-            this.preMonthDays -= startDay;
-        }
-        if (this.preMonthDays < 0) {
-            this.preMonthDays += 7;
-        }
-
-        this.monthDays = DateMath.findMonthEnd(workingDate).getDate();
-        this.postMonthDays = Calendar.DISPLAY_DAYS-this.preMonthDays-this.monthDays;
-
-
-        workingDate = DateMath.subtract(workingDate, DateMath.DAY, this.preMonthDays);
-    
-        var weekNum,
-            weekClass,
-            weekPrefix = "w",
-            cellPrefix = "_cell",
-            workingDayPrefix = "wd",
-            dayPrefix = "d",
-            cellRenderers,
-            renderer,
-            t = this.today,
-            cfg = this.cfg,
-            todayYear = t.getFullYear(),
-            todayMonth = t.getMonth(),
-            todayDate = t.getDate(),
-            useDate = cfg.getProperty(DEF_CFG.PAGEDATE.key),
-            hideBlankWeeks = cfg.getProperty(DEF_CFG.HIDE_BLANK_WEEKS.key),
-            showWeekFooter = cfg.getProperty(DEF_CFG.SHOW_WEEK_FOOTER.key),
-            showWeekHeader = cfg.getProperty(DEF_CFG.SHOW_WEEK_HEADER.key),
-            mindate = cfg.getProperty(DEF_CFG.MINDATE.key),
-            maxdate = cfg.getProperty(DEF_CFG.MAXDATE.key),
-            yearOffset = this.Locale.YEAR_OFFSET;
-
-        if (mindate) {
-            mindate = DateMath.clearTime(mindate);
-        }
-        if (maxdate) {
-            maxdate = DateMath.clearTime(maxdate);
-        }
-
-        html[html.length] = '<tbody class="m' + (useDate.getMonth()+1) + ' ' + this.Style.CSS_BODY + '">';
-
-        var i = 0,
-            tempDiv = document.createElement("div"),
-            cell = document.createElement("td");
-
-        tempDiv.appendChild(cell);
-
-        var cal = this.parent || this;
-
-        for (var r=0;r<6;r++) {
-            weekNum = DateMath.getWeekNumber(workingDate, startDay);
-            weekClass = weekPrefix + weekNum;
-
-            // Local OOM check for performance, since we already have pagedate
-            if (r !== 0 && hideBlankWeeks === true && workingDate.getMonth() != useDate.getMonth()) {
-                break;
-            } else {
-                html[html.length] = '<tr class="' + weekClass + '">';
-
-                if (showWeekHeader) { html = this.renderRowHeader(weekNum, html); }
-
-                for (var d=0; d < 7; d++){ // Render actual days
-
-                    cellRenderers = [];
-
-                    this.clearElement(cell);
-                    cell.className = this.Style.CSS_CELL;
-                    cell.id = this.id + cellPrefix + i;
-
-                    if (workingDate.getDate()  == todayDate && 
-                        workingDate.getMonth()  == todayMonth &&
-                        workingDate.getFullYear() == todayYear) {
-                        cellRenderers[cellRenderers.length]=cal.renderCellStyleToday;
-                    }
-
-                    var workingArray = [workingDate.getFullYear(),workingDate.getMonth()+1,workingDate.getDate()];
-                    this.cellDates[this.cellDates.length] = workingArray; // Add this date to cellDates
-
-                    // Local OOM check for performance, since we already have pagedate
-                    if (workingDate.getMonth() != useDate.getMonth()) {
-                        cellRenderers[cellRenderers.length]=cal.renderCellNotThisMonth;
-                    } else {
-                        Dom.addClass(cell, workingDayPrefix + workingDate.getDay());
-                        Dom.addClass(cell, dayPrefix + workingDate.getDate());
-
-                        for (var s=0;s<this.renderStack.length;++s) {
-
-                            renderer = null;
-
-                            var rArray = this.renderStack[s],
-                                type = rArray[0],
-                                month,
-                                day,
-                                year;
-
-                            switch (type) {
-                                case Calendar.DATE:
-                                    month = rArray[1][1];
-                                    day = rArray[1][2];
-                                    year = rArray[1][0];
-
-                                    if (workingDate.getMonth()+1 == month && workingDate.getDate() == day && workingDate.getFullYear() == year) {
-                                        renderer = rArray[2];
-                                        this.renderStack.splice(s,1);
-                                    }
-                                    break;
-                                case Calendar.MONTH_DAY:
-                                    month = rArray[1][0];
-                                    day = rArray[1][1];
-
-                                    if (workingDate.getMonth()+1 == month && workingDate.getDate() == day) {
-                                        renderer = rArray[2];
-                                        this.renderStack.splice(s,1);
-                                    }
-                                    break;
-                                case Calendar.RANGE:
-                                    var date1 = rArray[1][0],
-                                        date2 = rArray[1][1],
-                                        d1month = date1[1],
-                                        d1day = date1[2],
-                                        d1year = date1[0],
-                                        d1 = DateMath.getDate(d1year, d1month-1, d1day),
-                                        d2month = date2[1],
-                                        d2day = date2[2],
-                                        d2year = date2[0],
-                                        d2 = DateMath.getDate(d2year, d2month-1, d2day);
-
-                                    if (workingDate.getTime() >= d1.getTime() && workingDate.getTime() <= d2.getTime()) {
-                                        renderer = rArray[2];
-
-                                        if (workingDate.getTime()==d2.getTime()) { 
-                                            this.renderStack.splice(s,1);
-                                        }
-                                    }
-                                    break;
-                                case Calendar.WEEKDAY:
-                                    var weekday = rArray[1][0];
-                                    if (workingDate.getDay()+1 == weekday) {
-                                        renderer = rArray[2];
-                                    }
-                                    break;
-                                case Calendar.MONTH:
-                                    month = rArray[1][0];
-                                    if (workingDate.getMonth()+1 == month) {
-                                        renderer = rArray[2];
-                                    }
-                                    break;
-                            }
-
-                            if (renderer) {
-                                cellRenderers[cellRenderers.length]=renderer;
-                            }
-                        }
-
-                    }
-
-                    if (this._indexOfSelectedFieldArray(workingArray) > -1) {
-                        cellRenderers[cellRenderers.length]=cal.renderCellStyleSelected; 
-                    }
-
-                    if ((mindate && (workingDate.getTime() < mindate.getTime())) ||
-                        (maxdate && (workingDate.getTime() > maxdate.getTime()))
-                    ) {
-                        cellRenderers[cellRenderers.length]=cal.renderOutOfBoundsDate;
-                    } else {
-                        cellRenderers[cellRenderers.length]=cal.styleCellDefault;
-                        cellRenderers[cellRenderers.length]=cal.renderCellDefault; 
-                    }
-
-                    for (var x=0; x < cellRenderers.length; ++x) {
-                        if (cellRenderers[x].call(cal, workingDate, cell) == Calendar.STOP_RENDER) {
-                            break;
-                        }
-                    }
-
-                    workingDate.setTime(workingDate.getTime() + DateMath.ONE_DAY_MS);
-                    // Just in case we crossed DST/Summertime boundaries
-                    workingDate = DateMath.clearTime(workingDate);
-
-                    if (i >= 0 && i <= 6) {
-                        Dom.addClass(cell, this.Style.CSS_CELL_TOP);
-                    }
-                    if ((i % 7) === 0) {
-                        Dom.addClass(cell, this.Style.CSS_CELL_LEFT);
-                    }
-                    if (((i+1) % 7) === 0) {
-                        Dom.addClass(cell, this.Style.CSS_CELL_RIGHT);
-                    }
-
-                    var postDays = this.postMonthDays; 
-                    if (hideBlankWeeks && postDays >= 7) {
-                        var blankWeeks = Math.floor(postDays/7);
-                        for (var p=0;p<blankWeeks;++p) {
-                            postDays -= 7;
-                        }
-                    }
-                    
-                    if (i >= ((this.preMonthDays+postDays+this.monthDays)-7)) {
-                        Dom.addClass(cell, this.Style.CSS_CELL_BOTTOM);
-                    }
-    
-                    html[html.length] = tempDiv.innerHTML;
-                    i++;
-                }
-    
-                if (showWeekFooter) { html = this.renderRowFooter(weekNum, html); }
-    
-                html[html.length] = '</tr>';
-            }
-        }
-    
-        html[html.length] = '</tbody>';
-    
-        return html;
-    },
-    
-    /**
-    * Renders the calendar footer. In the default implementation, there is
-    * no footer.
-    * @method renderFooter
-    * @param {Array} html The current working HTML array
-    * @return {Array} The current working HTML array
-    */
-    renderFooter : function(html) { return html; },
-    
-    /**
-    * Renders the calendar after it has been configured. The render() method has a specific call chain that will execute
-    * when the method is called: renderHeader, renderBody, renderFooter.
-    * Refer to the documentation for those methods for information on 
-    * individual render tasks.
-    * @method render
-    */
-    render : function() {
-        this.beforeRenderEvent.fire();
-
-        // Find starting day of the current month
-        var workingDate = DateMath.findMonthStart(this.cfg.getProperty(DEF_CFG.PAGEDATE.key));
-
-        this.resetRenderers();
-        this.cellDates.length = 0;
-
-        Event.purgeElement(this.oDomContainer, true);
-
-        var html = [];
-
-        html[html.length] = '<table cellSpacing="0" class="' + this.Style.CSS_CALENDAR + ' y' + (workingDate.getFullYear() + this.Locale.YEAR_OFFSET) +'" id="' + this.id + '">';
-        html = this.renderHeader(html);
-        html = this.renderBody(workingDate, html);
-        html = this.renderFooter(html);
-        html[html.length] = '</table>';
-
-        this.oDomContainer.innerHTML = html.join("\n");
-
-        this.applyListeners();
-        this.cells = Dom.getElementsByClassName(this.Style.CSS_CELL, "td", this.id);
-    
-        this.cfg.refireEvent(DEF_CFG.TITLE.key);
-        this.cfg.refireEvent(DEF_CFG.CLOSE.key);
-        this.cfg.refireEvent(DEF_CFG.IFRAME.key);
-
-        this.renderEvent.fire();
-    },
-
-    /**
-    * Applies the Calendar's DOM listeners to applicable elements.
-    * @method applyListeners
-    */
-    applyListeners : function() {
-        var root = this.oDomContainer,
-            cal = this.parent || this,
-            anchor = "a",
-            click = "click";
-
-        var linkLeft = Dom.getElementsByClassName(this.Style.CSS_NAV_LEFT, anchor, root),
-            linkRight = Dom.getElementsByClassName(this.Style.CSS_NAV_RIGHT, anchor, root);
-
-        if (linkLeft && linkLeft.length > 0) {
-            this.linkLeft = linkLeft[0];
-            Event.addListener(this.linkLeft, click, this.doPreviousMonthNav, cal, true);
-        }
-
-        if (linkRight && linkRight.length > 0) {
-            this.linkRight = linkRight[0];
-            Event.addListener(this.linkRight, click, this.doNextMonthNav, cal, true);
-        }
-
-        if (cal.cfg.getProperty("navigator") !== null) {
-            this.applyNavListeners();
-        }
-
-        if (this.domEventMap) {
-            var el,elements;
-            for (var cls in this.domEventMap) { 
-                if (Lang.hasOwnProperty(this.domEventMap, cls)) {
-                    var items = this.domEventMap[cls];
-    
-                    if (! (items instanceof Array)) {
-                        items = [items];
-                    }
-    
-                    for (var i=0;i<items.length;i++) {
-                        var item = items[i];
-                        elements = Dom.getElementsByClassName(cls, item.tag, this.oDomContainer);
-    
-                        for (var c=0;c<elements.length;c++) {
-                            el = elements[c];
-                             Event.addListener(el, item.event, item.handler, item.scope, item.correct );
-                        }
-                    }
-                }
-            }
-        }
-
-        Event.addListener(this.oDomContainer, "click", this.doSelectCell, this);
-        Event.addListener(this.oDomContainer, "mouseover", this.doCellMouseOver, this);
-        Event.addListener(this.oDomContainer, "mouseout", this.doCellMouseOut, this);
-    },
-
-    applyNavListeners : function() {
-        var calParent = this.parent || this,
-            cal = this,
-            navBtns = Dom.getElementsByClassName(this.Style.CSS_NAV, "a", this.oDomContainer);
-
-        if (navBtns.length > 0) {
-
-            Event.addListener(navBtns, "click", function (e, obj) {
-                var target = Event.getTarget(e);
-                // this == navBtn
-                if (this === target || Dom.isAncestor(this, target)) {
-                    Event.preventDefault(e);
-                }
-                var navigator = calParent.oNavigator;
-                if (navigator) {
-                    var pgdate = cal.cfg.getProperty("pagedate");
-                    navigator.setYear(pgdate.getFullYear() + cal.Locale.YEAR_OFFSET);
-                    navigator.setMonth(pgdate.getMonth());
-                    navigator.show();
-                }
-            });
-        }
-    },
-
-    /**
-    * Retrieves the Date object for the specified Calendar cell
-    * @method getDateByCellId
-    * @param {String} id The id of the cell
-    * @return {Date} The Date object for the specified Calendar cell
-    */
-    getDateByCellId : function(id) {
-        var date = this.getDateFieldsByCellId(id);
-        return (date) ? DateMath.getDate(date[0],date[1]-1,date[2]) : null;
-    },
-    
-    /**
-    * Retrieves the Date object for the specified Calendar cell
-    * @method getDateFieldsByCellId
-    * @param {String} id The id of the cell
-    * @return {Array} The array of Date fields for the specified Calendar cell
-    */
-    getDateFieldsByCellId : function(id) {
-        id = this.getIndexFromId(id);
-        return (id > -1) ? this.cellDates[id] : null;
-    },
-
-    /**
-     * Find the Calendar's cell index for a given date.
-     * If the date is not found, the method returns -1.
-     * <p>
-     * The returned index can be used to lookup the cell HTMLElement  
-     * using the Calendar's cells array or passed to selectCell to select 
-     * cells by index. 
-     * </p>
-     *
-     * See <a href="#cells">cells</a>, <a href="#selectCell">selectCell</a>.
-     *
-     * @method getCellIndex
-     * @param {Date} date JavaScript Date object, for which to find a cell index.
-     * @return {Number} The index of the date in Calendars cellDates/cells arrays, or -1 if the date 
-     * is not on the curently rendered Calendar page.
-     */
-    getCellIndex : function(date) {
-        var idx = -1;
-        if (date) {
-            var m = date.getMonth(),
-                y = date.getFullYear(),
-                d = date.getDate(),
-                dates = this.cellDates;
-
-            for (var i = 0; i < dates.length; ++i) {
-                var cellDate = dates[i];
-                if (cellDate[0] === y && cellDate[1] === m+1 && cellDate[2] === d) {
-                    idx = i;
-                    break;
-                }
-            }
-        }
-        return idx;
-    },
-
-    /**
-     * Given the id used to mark each Calendar cell, this method
-     * extracts the index number from the id.
-     * 
-     * @param {String} strId The cell id
-     * @return {Number} The index of the cell, or -1 if id does not contain an index number
-     */
-    getIndexFromId : function(strId) {
-        var idx = -1,
-            li = strId.lastIndexOf("_cell");
-
-        if (li > -1) {
-            idx = parseInt(strId.substring(li + 5), 10);
-        }
-
-        return idx;
-    },
-    
-    // BEGIN BUILT-IN TABLE CELL RENDERERS
-    
-    /**
-    * Renders a cell that falls before the minimum date or after the maximum date.
-    * widget class.
-    * @method renderOutOfBoundsDate
-    * @param {Date}     workingDate  The current working Date object being used to generate the calendar
-    * @param {HTMLTableCellElement} cell   The current working cell in the calendar
-    * @return {String} YAHOO.widget.Calendar.STOP_RENDER if rendering should stop with this style, null or nothing if rendering
-    *   should not be terminated
-    */
-    renderOutOfBoundsDate : function(workingDate, cell) {
-        Dom.addClass(cell, this.Style.CSS_CELL_OOB);
-        cell.innerHTML = workingDate.getDate();
-        return Calendar.STOP_RENDER;
-    },
-
-    /**
-    * Renders the row header for a week.
-    * @method renderRowHeader
-    * @param {Number} weekNum The week number of the current row
-    * @param {Array} cell The current working HTML array
-    */
-    renderRowHeader : function(weekNum, html) {
-        html[html.length] = '<th class="' + this.Style.CSS_ROW_HEADER + '">' + weekNum + '</th>';
-        return html;
-    },
-
-    /**
-    * Renders the row footer for a week.
-    * @method renderRowFooter
-    * @param {Number} weekNum The week number of the current row
-    * @param {Array} cell The current working HTML array
-    */
-    renderRowFooter : function(weekNum, html) {
-        html[html.length] = '<th class="' + this.Style.CSS_ROW_FOOTER + '">' + weekNum + '</th>';
-        return html;
-    },
-    
-    /**
-    * Renders a single standard calendar cell in the calendar widget table.
-    * All logic for determining how a standard default cell will be rendered is 
-    * encapsulated in this method, and must be accounted for when extending the
-    * widget class.
-    * @method renderCellDefault
-    * @param {Date}     workingDate  The current working Date object being used to generate the calendar
-    * @param {HTMLTableCellElement} cell   The current working cell in the calendar
-    */
-    renderCellDefault : function(workingDate, cell) {
-        cell.innerHTML = '<a href="#" class="' + this.Style.CSS_CELL_SELECTOR + '">' + this.buildDayLabel(workingDate) + "</a>";
-    },
-    
-    /**
-    * Styles a selectable cell.
-    * @method styleCellDefault
-    * @param {Date}     workingDate  The current working Date object being used to generate the calendar
-    * @param {HTMLTableCellElement} cell   The current working cell in the calendar
-    */
-    styleCellDefault : function(workingDate, cell) {
-        Dom.addClass(cell, this.Style.CSS_CELL_SELECTABLE);
-    },
-    
-    
-    /**
-    * Renders a single standard calendar cell using the CSS hightlight1 style
-    * @method renderCellStyleHighlight1
-    * @param {Date}     workingDate  The current working Date object being used to generate the calendar
-    * @param {HTMLTableCellElement} cell   The current working cell in the calendar
-    */
-    renderCellStyleHighlight1 : function(workingDate, cell) {
-        Dom.addClass(cell, this.Style.CSS_CELL_HIGHLIGHT1);
-    },
-    
-    /**
-    * Renders a single standard calendar cell using the CSS hightlight2 style
-    * @method renderCellStyleHighlight2
-    * @param {Date}     workingDate  The current working Date object being used to generate the calendar
-    * @param {HTMLTableCellElement} cell   The current working cell in the calendar
-    */
-    renderCellStyleHighlight2 : function(workingDate, cell) {
-        Dom.addClass(cell, this.Style.CSS_CELL_HIGHLIGHT2);
-    },
-    
-    /**
-    * Renders a single standard calendar cell using the CSS hightlight3 style
-    * @method renderCellStyleHighlight3
-    * @param {Date}     workingDate  The current working Date object being used to generate the calendar
-    * @param {HTMLTableCellElement} cell   The current working cell in the calendar
-    */
-    renderCellStyleHighlight3 : function(workingDate, cell) {
-        Dom.addClass(cell, this.Style.CSS_CELL_HIGHLIGHT3);
-    },
-    
-    /**
-    * Renders a single standard calendar cell using the CSS hightlight4 style
-    * @method renderCellStyleHighlight4
-    * @param {Date}     workingDate  The current working Date object being used to generate the calendar
-    * @param {HTMLTableCellElement} cell   The current working cell in the calendar
-    */
-    renderCellStyleHighlight4 : function(workingDate, cell) {
-        Dom.addClass(cell, this.Style.CSS_CELL_HIGHLIGHT4);
-    },
-    
-    /**
-    * Applies the default style used for rendering today's date to the current calendar cell
-    * @method renderCellStyleToday
-    * @param {Date}     workingDate  The current working Date object being used to generate the calendar
-    * @param {HTMLTableCellElement} cell   The current working cell in the calendar
-    */
-    renderCellStyleToday : function(workingDate, cell) {
-        Dom.addClass(cell, this.Style.CSS_CELL_TODAY);
-    },
-
-    /**
-    * Applies the default style used for rendering selected dates to the current calendar cell
-    * @method renderCellStyleSelected
-    * @param {Date}     workingDate  The current working Date object being used to generate the calendar
-    * @param {HTMLTableCellElement} cell   The current working cell in the calendar
-    * @return {String} YAHOO.widget.Calendar.STOP_RENDER if rendering should stop with this style, null or nothing if rendering
-    *   should not be terminated
-    */
-    renderCellStyleSelected : function(workingDate, cell) {
-        Dom.addClass(cell, this.Style.CSS_CELL_SELECTED);
-    },
-    
-    /**
-    * Applies the default style used for rendering dates that are not a part of the current
-    * month (preceding or trailing the cells for the current month)
-    * @method renderCellNotThisMonth
-    * @param {Date}     workingDate  The current working Date object being used to generate the calendar
-    * @param {HTMLTableCellElement} cell   The current working cell in the calendar
-    * @return {String} YAHOO.widget.Calendar.STOP_RENDER if rendering should stop with this style, null or nothing if rendering
-    *   should not be terminated
-    */
-    renderCellNotThisMonth : function(workingDate, cell) {
-        Dom.addClass(cell, this.Style.CSS_CELL_OOM);
-        cell.innerHTML=workingDate.getDate();
-        return Calendar.STOP_RENDER;
-    },
-    
-    /**
-    * Renders the current calendar cell as a non-selectable "black-out" date using the default
-    * restricted style.
-    * @method renderBodyCellRestricted
-    * @param {Date}     workingDate  The current working Date object being used to generate the calendar
-    * @param {HTMLTableCellElement} cell   The current working cell in the calendar
-    * @return {String} YAHOO.widget.Calendar.STOP_RENDER if rendering should stop with this style, null or nothing if rendering
-    *   should not be terminated
-    */
-    renderBodyCellRestricted : function(workingDate, cell) {
-        Dom.addClass(cell, this.Style.CSS_CELL);
-        Dom.addClass(cell, this.Style.CSS_CELL_RESTRICTED);
-        cell.innerHTML=workingDate.getDate();
-        return Calendar.STOP_RENDER;
-    },
-    
-    // END BUILT-IN TABLE CELL RENDERERS
-    
-    // BEGIN MONTH NAVIGATION METHODS
-
-    /**
-    * Adds the designated number of months to the current calendar month, and sets the current
-    * calendar page date to the new month.
-    * @method addMonths
-    * @param {Number} count The number of months to add to the current calendar
-    */
-    addMonths : function(count) {
-        var cfgPageDate = DEF_CFG.PAGEDATE.key,
-
-        prevDate = this.cfg.getProperty(cfgPageDate),
-        newDate = DateMath.add(prevDate, DateMath.MONTH, count);
-
-        this.cfg.setProperty(cfgPageDate, newDate);
-        this.resetRenderers();
-        this.changePageEvent.fire(prevDate, newDate);
-    },
-
-    /**
-    * Subtracts the designated number of months from the current calendar month, and sets the current
-    * calendar page date to the new month.
-    * @method subtractMonths
-    * @param {Number} count The number of months to subtract from the current calendar
-    */
-    subtractMonths : function(count) {
-        this.addMonths(-1*count);
-    },
-
-    /**
-    * Adds the designated number of years to the current calendar, and sets the current
-    * calendar page date to the new month.
-    * @method addYears
-    * @param {Number} count The number of years to add to the current calendar
-    */
-    addYears : function(count) {
-        var cfgPageDate = DEF_CFG.PAGEDATE.key,
-
-        prevDate = this.cfg.getProperty(cfgPageDate),
-        newDate = DateMath.add(prevDate, DateMath.YEAR, count);
-
-        this.cfg.setProperty(cfgPageDate, newDate);
-        this.resetRenderers();
-        this.changePageEvent.fire(prevDate, newDate);
-    },
-
-    /**
-    * Subtcats the designated number of years from the current calendar, and sets the current
-    * calendar page date to the new month.
-    * @method subtractYears
-    * @param {Number} count The number of years to subtract from the current calendar
-    */
-    subtractYears : function(count) {
-        this.addYears(-1*count);
-    },
-
-    /**
-    * Navigates to the next month page in the calendar widget.
-    * @method nextMonth
-    */
-    nextMonth : function() {
-        this.addMonths(1);
-    },
-    
-    /**
-    * Navigates to the previous month page in the calendar widget.
-    * @method previousMonth
-    */
-    previousMonth : function() {
-        this.addMonths(-1);
-    },
-    
-    /**
-    * Navigates to the next year in the currently selected month in the calendar widget.
-    * @method nextYear
-    */
-    nextYear : function() {
-        this.addYears(1);
-    },
-    
-    /**
-    * Navigates to the previous year in the currently selected month in the calendar widget.
-    * @method previousYear
-    */
-    previousYear : function() {
-        this.addYears(-1);
-    },
-
-    // END MONTH NAVIGATION METHODS
-    
-    // BEGIN SELECTION METHODS
-    
-    /**
-    * Resets the calendar widget to the originally selected month and year, and 
-    * sets the calendar to the initial selection(s).
-    * @method reset
-    */
-    reset : function() {
-        this.cfg.resetProperty(DEF_CFG.SELECTED.key);
-        this.cfg.resetProperty(DEF_CFG.PAGEDATE.key);
-        this.resetEvent.fire();
-    },
-    
-    /**
-    * Clears the selected dates in the current calendar widget and sets the calendar
-    * to the current month and year.
-    * @method clear
-    */
-    clear : function() {
-        this.cfg.setProperty(DEF_CFG.SELECTED.key, []);
-        this.cfg.setProperty(DEF_CFG.PAGEDATE.key, new Date(this.today.getTime()));
-        this.clearEvent.fire();
-    },
-    
-    /**
-    * Selects a date or a collection of dates on the current calendar. This method, by default,
-    * does not call the render method explicitly. Once selection has completed, render must be 
-    * called for the changes to be reflected visually.
-    *
-    * Any dates which are OOB (out of bounds, not selectable) will not be selected and the array of 
-    * selected dates passed to the selectEvent will not contain OOB dates.
-    * 
-    * If all dates are OOB, the no state change will occur; beforeSelect and select events will not be fired.
-    *
-    * @method select
-    * @param {String/Date/Date[]} date The date string of dates to select in the current calendar. Valid formats are
-    *        individual date(s) (12/24/2005,12/26/2005) or date range(s) (12/24/2005-1/1/2006).
-    *        Multiple comma-delimited dates can also be passed to this method (12/24/2005,12/11/2005-12/13/2005).
-    *        This method can also take a JavaScript Date object or an array of Date objects.
-    * @return {Date[]}   Array of JavaScript Date objects representing all individual dates that are currently selected.
-    */
-    select : function(date) {
-
-        var aToBeSelected = this._toFieldArray(date),
-            validDates = [],
-            selected = [],
-            cfgSelected = DEF_CFG.SELECTED.key;
-
-        
-        for (var a=0; a < aToBeSelected.length; ++a) {
-            var toSelect = aToBeSelected[a];
-
-            if (!this.isDateOOB(this._toDate(toSelect))) {
-
-                if (validDates.length === 0) {
-                    this.beforeSelectEvent.fire();
-                    selected = this.cfg.getProperty(cfgSelected);
-                }
-                validDates.push(toSelect);
-
-                if (this._indexOfSelectedFieldArray(toSelect) == -1) { 
-                    selected[selected.length] = toSelect;
-                }
-            }
-        }
-
-
-        if (validDates.length > 0) {
-            if (this.parent) {
-                this.parent.cfg.setProperty(cfgSelected, selected);
-            } else {
-                this.cfg.setProperty(cfgSelected, selected);
-            }
-            this.selectEvent.fire(validDates);
-        }
-
-        return this.getSelectedDates();
-    },
-    
-    /**
-    * Selects a date on the current calendar by referencing the index of the cell that should be selected.
-    * This method is used to easily select a single cell (usually with a mouse click) without having to do
-    * a full render. The selected style is applied to the cell directly.
-    *
-    * If the cell is not marked with the CSS_CELL_SELECTABLE class (as is the case by default for out of month 
-    * or out of bounds cells), it will not be selected and in such a case beforeSelect and select events will not be fired.
-    * 
-    * @method selectCell
-    * @param {Number} cellIndex The index of the cell to select in the current calendar. 
-    * @return {Date[]} Array of JavaScript Date objects representing all individual dates that are currently selected.
-    */
-    selectCell : function(cellIndex) {
-
-        var cell = this.cells[cellIndex],
-            cellDate = this.cellDates[cellIndex],
-            dCellDate = this._toDate(cellDate),
-            selectable = Dom.hasClass(cell, this.Style.CSS_CELL_SELECTABLE);
-
-
-        if (selectable) {
-    
-            this.beforeSelectEvent.fire();
-    
-            var cfgSelected = DEF_CFG.SELECTED.key;
-            var selected = this.cfg.getProperty(cfgSelected);
-    
-            var selectDate = cellDate.concat();
-    
-            if (this._indexOfSelectedFieldArray(selectDate) == -1) {
-                selected[selected.length] = selectDate;
-            }
-            if (this.parent) {
-                this.parent.cfg.setProperty(cfgSelected, selected);
-            } else {
-                this.cfg.setProperty(cfgSelected, selected);
-            }
-            this.renderCellStyleSelected(dCellDate,cell);
-            this.selectEvent.fire([selectDate]);
-    
-            this.doCellMouseOut.call(cell, null, this);  
-        }
-    
-        return this.getSelectedDates();
-    },
-    
-    /**
-    * Deselects a date or a collection of dates on the current calendar. This method, by default,
-    * does not call the render method explicitly. Once deselection has completed, render must be 
-    * called for the changes to be reflected visually.
-    * 
-    * The method will not attempt to deselect any dates which are OOB (out of bounds, and hence not selectable) 
-    * and the array of deselected dates passed to the deselectEvent will not contain any OOB dates.
-    * 
-    * If all dates are OOB, beforeDeselect and deselect events will not be fired.
-    * 
-    * @method deselect
-    * @param {String/Date/Date[]} date The date string of dates to deselect in the current calendar. Valid formats are
-    *        individual date(s) (12/24/2005,12/26/2005) or date range(s) (12/24/2005-1/1/2006).
-    *        Multiple comma-delimited dates can also be passed to this method (12/24/2005,12/11/2005-12/13/2005).
-    *        This method can also take a JavaScript Date object or an array of Date objects. 
-    * @return {Date[]}   Array of JavaScript Date objects representing all individual dates that are currently selected.
-    */
-    deselect : function(date) {
-
-        var aToBeDeselected = this._toFieldArray(date),
-            validDates = [],
-            selected = [],
-            cfgSelected = DEF_CFG.SELECTED.key;
-
-
-        for (var a=0; a < aToBeDeselected.length; ++a) {
-            var toDeselect = aToBeDeselected[a];
-    
-            if (!this.isDateOOB(this._toDate(toDeselect))) {
-    
-                if (validDates.length === 0) {
-                    this.beforeDeselectEvent.fire();
-                    selected = this.cfg.getProperty(cfgSelected);
-                }
-    
-                validDates.push(toDeselect);
-    
-                var index = this._indexOfSelectedFieldArray(toDeselect);
-                if (index != -1) { 
-                    selected.splice(index,1);
-                }
-            }
-        }
-    
-    
-        if (validDates.length > 0) {
-            if (this.parent) {
-                this.parent.cfg.setProperty(cfgSelected, selected);
-            } else {
-                this.cfg.setProperty(cfgSelected, selected);
-            }
-            this.deselectEvent.fire(validDates);
-        }
-    
-        return this.getSelectedDates();
-    },
-    
-    /**
-    * Deselects a date on the current calendar by referencing the index of the cell that should be deselected.
-    * This method is used to easily deselect a single cell (usually with a mouse click) without having to do
-    * a full render. The selected style is removed from the cell directly.
-    * 
-    * If the cell is not marked with the CSS_CELL_SELECTABLE class (as is the case by default for out of month 
-    * or out of bounds cells), the method will not attempt to deselect it and in such a case, beforeDeselect and 
-    * deselect events will not be fired.
-    * 
-    * @method deselectCell
-    * @param {Number} cellIndex The index of the cell to deselect in the current calendar. 
-    * @return {Date[]} Array of JavaScript Date objects representing all individual dates that are currently selected.
-    */
-    deselectCell : function(cellIndex) {
-        var cell = this.cells[cellIndex],
-            cellDate = this.cellDates[cellIndex],
-            cellDateIndex = this._indexOfSelectedFieldArray(cellDate);
-
-        var selectable = Dom.hasClass(cell, this.Style.CSS_CELL_SELECTABLE);
-
-        if (selectable) {
-
-            this.beforeDeselectEvent.fire();
-
-            var selected = this.cfg.getProperty(DEF_CFG.SELECTED.key),
-                dCellDate = this._toDate(cellDate),
-                selectDate = cellDate.concat();
-
-            if (cellDateIndex > -1) {
-                if (this.cfg.getProperty(DEF_CFG.PAGEDATE.key).getMonth() == dCellDate.getMonth() &&
-                    this.cfg.getProperty(DEF_CFG.PAGEDATE.key).getFullYear() == dCellDate.getFullYear()) {
-                    Dom.removeClass(cell, this.Style.CSS_CELL_SELECTED);
-                }
-                selected.splice(cellDateIndex, 1);
-            }
-
-            if (this.parent) {
-                this.parent.cfg.setProperty(DEF_CFG.SELECTED.key, selected);
-            } else {
-                this.cfg.setProperty(DEF_CFG.SELECTED.key, selected);
-            }
-
-            this.deselectEvent.fire([selectDate]);
-        }
-
-        return this.getSelectedDates();
-    },
-
-    /**
-    * Deselects all dates on the current calendar.
-    * @method deselectAll
-    * @return {Date[]}  Array of JavaScript Date objects representing all individual dates that are currently selected.
-    *      Assuming that this function executes properly, the return value should be an empty array.
-    *      However, the empty array is returned for the sake of being able to check the selection status
-    *      of the calendar.
-    */
-    deselectAll : function() {
-        this.beforeDeselectEvent.fire();
-        
-        var cfgSelected = DEF_CFG.SELECTED.key,
-            selected = this.cfg.getProperty(cfgSelected),
-            count = selected.length,
-            sel = selected.concat();
-
-        if (this.parent) {
-            this.parent.cfg.setProperty(cfgSelected, []);
-        } else {
-            this.cfg.setProperty(cfgSelected, []);
-        }
-        
-        if (count > 0) {
-            this.deselectEvent.fire(sel);
-        }
-    
-        return this.getSelectedDates();
-    },
-    
-    // END SELECTION METHODS
-    
-    // BEGIN TYPE CONVERSION METHODS
-    
-    /**
-    * Converts a date (either a JavaScript Date object, or a date string) to the internal data structure
-    * used to represent dates: [[yyyy,mm,dd],[yyyy,mm,dd]].
-    * @method _toFieldArray
-    * @private
-    * @param {String/Date/Date[]} date The date string of dates to deselect in the current calendar. Valid formats are
-    *        individual date(s) (12/24/2005,12/26/2005) or date range(s) (12/24/2005-1/1/2006).
-    *        Multiple comma-delimited dates can also be passed to this method (12/24/2005,12/11/2005-12/13/2005).
-    *        This method can also take a JavaScript Date object or an array of Date objects. 
-    * @return {Array[](Number[])} Array of date field arrays
-    */
-    _toFieldArray : function(date) {
-        var returnDate = [];
-    
-        if (date instanceof Date) {
-            returnDate = [[date.getFullYear(), date.getMonth()+1, date.getDate()]];
-        } else if (Lang.isString(date)) {
-            returnDate = this._parseDates(date);
-        } else if (Lang.isArray(date)) {
-            for (var i=0;i<date.length;++i) {
-                var d = date[i];
-                returnDate[returnDate.length] = [d.getFullYear(),d.getMonth()+1,d.getDate()];
-            }
-        }
-        
-        return returnDate;
-    },
-    
-    /**
-    * Converts a date field array [yyyy,mm,dd] to a JavaScript Date object. The date field array
-    * is the format in which dates are as provided as arguments to selectEvent and deselectEvent listeners.
-    * 
-    * @method toDate
-    * @param {Number[]} dateFieldArray The date field array to convert to a JavaScript Date.
-    * @return {Date} JavaScript Date object representing the date field array.
-    */
-    toDate : function(dateFieldArray) {
-        return this._toDate(dateFieldArray);
-    },
-    
-    /**
-    * Converts a date field array [yyyy,mm,dd] to a JavaScript Date object.
-    * @method _toDate
-    * @private
-    * @deprecated Made public, toDate 
-    * @param {Number[]}  dateFieldArray The date field array to convert to a JavaScript Date.
-    * @return {Date} JavaScript Date object representing the date field array
-    */
-    _toDate : function(dateFieldArray) {
-        if (dateFieldArray instanceof Date) {
-            return dateFieldArray;
-        } else {
-            return DateMath.getDate(dateFieldArray[0],dateFieldArray[1]-1,dateFieldArray[2]);
-        }
-    },
-    
-    // END TYPE CONVERSION METHODS 
-    
-    // BEGIN UTILITY METHODS
-    
-    /**
-    * Determines if 2 field arrays are equal.
-    * @method _fieldArraysAreEqual
-    * @private
-    * @param {Number[]} array1 The first date field array to compare
-    * @param {Number[]} array2 The first date field array to compare
-    * @return {Boolean} The boolean that represents the equality of the two arrays
-    */
-    _fieldArraysAreEqual : function(array1, array2) {
-        var match = false;
-    
-        if (array1[0]==array2[0]&&array1[1]==array2[1]&&array1[2]==array2[2]) {
-            match=true; 
-        }
-    
-        return match;
-    },
-    
-    /**
-    * Gets the index of a date field array [yyyy,mm,dd] in the current list of selected dates.
-    * @method _indexOfSelectedFieldArray
-    * @private
-    * @param {Number[]}  find The date field array to search for
-    * @return {Number}   The index of the date field array within the collection of selected dates.
-    *        -1 will be returned if the date is not found.
-    */
-    _indexOfSelectedFieldArray : function(find) {
-        var selected = -1,
-            seldates = this.cfg.getProperty(DEF_CFG.SELECTED.key);
-    
-        for (var s=0;s<seldates.length;++s) {
-            var sArray = seldates[s];
-            if (find[0]==sArray[0]&&find[1]==sArray[1]&&find[2]==sArray[2]) {
-                selected = s;
-                break;
-            }
-        }
-    
-        return selected;
-    },
-    
-    /**
-    * Determines whether a given date is OOM (out of month).
-    * @method isDateOOM
-    * @param {Date} date The JavaScript Date object for which to check the OOM status
-    * @return {Boolean} true if the date is OOM
-    */
-    isDateOOM : function(date) {
-        return (date.getMonth() != this.cfg.getProperty(DEF_CFG.PAGEDATE.key).getMonth());
-    },
-    
-    /**
-    * Determines whether a given date is OOB (out of bounds - less than the mindate or more than the maxdate).
-    *
-    * @method isDateOOB
-    * @param {Date} date The JavaScript Date object for which to check the OOB status
-    * @return {Boolean} true if the date is OOB
-    */
-    isDateOOB : function(date) {
-        var minDate = this.cfg.getProperty(DEF_CFG.MINDATE.key),
-            maxDate = this.cfg.getProperty(DEF_CFG.MAXDATE.key),
-            dm = DateMath;
-        
-        if (minDate) {
-            minDate = dm.clearTime(minDate);
-        } 
-        if (maxDate) {
-            maxDate = dm.clearTime(maxDate);
-        }
-    
-        var clearedDate = new Date(date.getTime());
-        clearedDate = dm.clearTime(clearedDate);
-    
-        return ((minDate && clearedDate.getTime() < minDate.getTime()) || (maxDate && clearedDate.getTime() > maxDate.getTime()));
-    },
-    
-    /**
-     * Parses a pagedate configuration property value. The value can either be specified as a string of form "mm/yyyy" or a Date object 
-     * and is parsed into a Date object normalized to the first day of the month. If no value is passed in, the month and year from today's date are used to create the Date object 
-     * @method _parsePageDate
-     * @private
-     * @param {Date|String} date Pagedate value which needs to be parsed
-     * @return {Date} The Date object representing the pagedate
-     */
-    _parsePageDate : function(date) {
-        var parsedDate;
-
-        if (date) {
-            if (date instanceof Date) {
-                parsedDate = DateMath.findMonthStart(date);
-            } else {
-                var month, year, aMonthYear;
-                aMonthYear = date.split(this.cfg.getProperty(DEF_CFG.DATE_FIELD_DELIMITER.key));
-                month = parseInt(aMonthYear[this.cfg.getProperty(DEF_CFG.MY_MONTH_POSITION.key)-1], 10)-1;
-                year = parseInt(aMonthYear[this.cfg.getProperty(DEF_CFG.MY_YEAR_POSITION.key)-1], 10) - this.Locale.YEAR_OFFSET;
-
-                parsedDate = DateMath.getDate(year, month, 1);
-            }
-        } else {
-            parsedDate = DateMath.getDate(this.today.getFullYear(), this.today.getMonth(), 1);
-        }
-        return parsedDate;
-    },
-    
-    // END UTILITY METHODS
-    
-    // BEGIN EVENT HANDLERS
-    
-    /**
-    * Event executed before a date is selected in the calendar widget.
-    * @deprecated Event handlers for this event should be susbcribed to beforeSelectEvent.
-    */
-    onBeforeSelect : function() {
-        if (this.cfg.getProperty(DEF_CFG.MULTI_SELECT.key) === false) {
-            if (this.parent) {
-                this.parent.callChildFunction("clearAllBodyCellStyles", this.Style.CSS_CELL_SELECTED);
-                this.parent.deselectAll();
-            } else {
-                this.clearAllBodyCellStyles(this.Style.CSS_CELL_SELECTED);
-                this.deselectAll();
-            }
-        }
-    },
-    
-    /**
-    * Event executed when a date is selected in the calendar widget.
-    * @param {Array} selected An array of date field arrays representing which date or dates were selected. Example: [ [2006,8,6],[2006,8,7],[2006,8,8] ]
-    * @deprecated Event handlers for this event should be susbcribed to selectEvent.
-    */
-    onSelect : function(selected) { },
-    
-    /**
-    * Event executed before a date is deselected in the calendar widget.
-    * @deprecated Event handlers for this event should be susbcribed to beforeDeselectEvent.
-    */
-    onBeforeDeselect : function() { },
-    
-    /**
-    * Event executed when a date is deselected in the calendar widget.
-    * @param {Array} selected An array of date field arrays representing which date or dates were deselected. Example: [ [2006,8,6],[2006,8,7],[2006,8,8] ]
-    * @deprecated Event handlers for this event should be susbcribed to deselectEvent.
-    */
-    onDeselect : function(deselected) { },
-    
-    /**
-    * Event executed when the user navigates to a different calendar page.
-    * @deprecated Event handlers for this event should be susbcribed to changePageEvent.
-    */
-    onChangePage : function() {
-        this.render();
-    },
-
-    /**
-    * Event executed when the calendar widget is rendered.
-    * @deprecated Event handlers for this event should be susbcribed to renderEvent.
-    */
-    onRender : function() { },
-
-    /**
-    * Event executed when the calendar widget is reset to its original state.
-    * @deprecated Event handlers for this event should be susbcribed to resetEvemt.
-    */
-    onReset : function() { this.render(); },
-
-    /**
-    * Event executed when the calendar widget is completely cleared to the current month with no selections.
-    * @deprecated Event handlers for this event should be susbcribed to clearEvent.
-    */
-    onClear : function() { this.render(); },
-    
-    /**
-    * Validates the calendar widget. This method has no default implementation
-    * and must be extended by subclassing the widget.
-    * @return Should return true if the widget validates, and false if
-    * it doesn't.
-    * @type Boolean
-    */
-    validate : function() { return true; },
-    
-    // END EVENT HANDLERS
-    
-    // BEGIN DATE PARSE METHODS
-    
-    /**
-    * Converts a date string to a date field array
-    * @private
-    * @param {String} sDate   Date string. Valid formats are mm/dd and mm/dd/yyyy.
-    * @return    A date field array representing the string passed to the method
-    * @type Array[](Number[])
-    */
-    _parseDate : function(sDate) {
-        var aDate = sDate.split(this.Locale.DATE_FIELD_DELIMITER),
-            rArray;
-
-        if (aDate.length == 2) {
-            rArray = [aDate[this.Locale.MD_MONTH_POSITION-1],aDate[this.Locale.MD_DAY_POSITION-1]];
-            rArray.type = Calendar.MONTH_DAY;
-        } else {
-            rArray = [aDate[this.Locale.MDY_YEAR_POSITION-1] - this.Locale.YEAR_OFFSET, aDate[this.Locale.MDY_MONTH_POSITION-1],aDate[this.Locale.MDY_DAY_POSITION-1]];
-            rArray.type = Calendar.DATE;
-        }
-
-        for (var i=0;i<rArray.length;i++) {
-            rArray[i] = parseInt(rArray[i], 10);
-        }
-    
-        return rArray;
-    },
-    
-    /**
-    * Converts a multi or single-date string to an array of date field arrays
-    * @private
-    * @param {String} sDates  Date string with one or more comma-delimited dates. Valid formats are mm/dd, mm/dd/yyyy, mm/dd/yyyy-mm/dd/yyyy
-    * @return       An array of date field arrays
-    * @type Array[](Number[])
-    */
-    _parseDates : function(sDates) {
-        var aReturn = [],
-            aDates = sDates.split(this.Locale.DATE_DELIMITER);
-        
-        for (var d=0;d<aDates.length;++d) {
-            var sDate = aDates[d];
-    
-            if (sDate.indexOf(this.Locale.DATE_RANGE_DELIMITER) != -1) {
-                // This is a range
-                var aRange = sDate.split(this.Locale.DATE_RANGE_DELIMITER),
-                    dateStart = this._parseDate(aRange[0]),
-                    dateEnd = this._parseDate(aRange[1]),
-                    fullRange = this._parseRange(dateStart, dateEnd);
-
-                aReturn = aReturn.concat(fullRange);
-            } else {
-                // This is not a range
-                var aDate = this._parseDate(sDate);
-                aReturn.push(aDate);
-            }
-        }
-        return aReturn;
-    },
-    
-    /**
-    * Converts a date range to the full list of included dates
-    * @private
-    * @param {Number[]} startDate Date field array representing the first date in the range
-    * @param {Number[]} endDate  Date field array representing the last date in the range
-    * @return       An array of date field arrays
-    * @type Array[](Number[])
-    */
-    _parseRange : function(startDate, endDate) {
-        var dCurrent = DateMath.add(DateMath.getDate(startDate[0],startDate[1]-1,startDate[2]),DateMath.DAY,1),
-            dEnd     = DateMath.getDate(endDate[0],  endDate[1]-1,  endDate[2]),
-            results = [];
-
-        results.push(startDate);
-        while (dCurrent.getTime() <= dEnd.getTime()) {
-            results.push([dCurrent.getFullYear(),dCurrent.getMonth()+1,dCurrent.getDate()]);
-            dCurrent = DateMath.add(dCurrent,DateMath.DAY,1);
-        }
-        return results;
-    },
-    
-    // END DATE PARSE METHODS
-    
-    // BEGIN RENDERER METHODS
-    
-    /**
-    * Resets the render stack of the current calendar to its original pre-render value.
-    */
-    resetRenderers : function() {
-        this.renderStack = this._renderStack.concat();
-    },
-    
-    /**
-     * Removes all custom renderers added to the Calendar through the addRenderer, addMonthRenderer and 
-     * addWeekdayRenderer methods. Calendar's render method needs to be called after removing renderers 
-     * to re-render the Calendar without custom renderers applied.
-     */
-    removeRenderers : function() {
-        this._renderStack = [];
-        this.renderStack = [];
-    },
-
-    /**
-    * Clears the inner HTML, CSS class and style information from the specified cell.
-    * @method clearElement
-    * @param {HTMLTableCellElement} cell The cell to clear
-    */ 
-    clearElement : function(cell) {
-        cell.innerHTML = "&#160;";
-        cell.className="";
-    },
-    
-    /**
-    * Adds a renderer to the render stack. The function reference passed to this method will be executed
-    * when a date cell matches the conditions specified in the date string for this renderer.
-    * @method addRenderer
-    * @param {String} sDates  A date string to associate with the specified renderer. Valid formats
-    *         include date (12/24/2005), month/day (12/24), and range (12/1/2004-1/1/2005)
-    * @param {Function} fnRender The function executed to render cells that match the render rules for this renderer.
-    */
-    addRenderer : function(sDates, fnRender) {
-        var aDates = this._parseDates(sDates);
-        for (var i=0;i<aDates.length;++i) {
-            var aDate = aDates[i];
-        
-            if (aDate.length == 2) { // this is either a range or a month/day combo
-                if (aDate[0] instanceof Array) { // this is a range
-                    this._addRenderer(Calendar.RANGE,aDate,fnRender);
-                } else { // this is a month/day combo
-                    this._addRenderer(Calendar.MONTH_DAY,aDate,fnRender);
-                }
-            } else if (aDate.length == 3) {
-                this._addRenderer(Calendar.DATE,aDate,fnRender);
-            }
-        }
-    },
-    
-    /**
-    * The private method used for adding cell renderers to the local render stack.
-    * This method is called by other methods that set the renderer type prior to the method call.
-    * @method _addRenderer
-    * @private
-    * @param {String} type  The type string that indicates the type of date renderer being added.
-    *         Values are YAHOO.widget.Calendar.DATE, YAHOO.widget.Calendar.MONTH_DAY, YAHOO.widget.Calendar.WEEKDAY,
-    *         YAHOO.widget.Calendar.RANGE, YAHOO.widget.Calendar.MONTH
-    * @param {Array}  aDates  An array of dates used to construct the renderer. The format varies based
-    *         on the renderer type
-    * @param {Function} fnRender The function executed to render cells that match the render rules for this renderer.
-    */
-    _addRenderer : function(type, aDates, fnRender) {
-        var add = [type,aDates,fnRender];
-        this.renderStack.unshift(add); 
-        this._renderStack = this.renderStack.concat();
-    },
-
-    /**
-    * Adds a month to the render stack. The function reference passed to this method will be executed
-    * when a date cell matches the month passed to this method.
-    * @method addMonthRenderer
-    * @param {Number} month  The month (1-12) to associate with this renderer
-    * @param {Function} fnRender The function executed to render cells that match the render rules for this renderer.
-    */
-    addMonthRenderer : function(month, fnRender) {
-        this._addRenderer(Calendar.MONTH,[month],fnRender);
-    },
-
-    /**
-    * Adds a weekday to the render stack. The function reference passed to this method will be executed
-    * when a date cell matches the weekday passed to this method.
-    * @method addWeekdayRenderer
-    * @param {Number} weekday  The weekday (Sunday = 1, Monday = 2 ... Saturday = 7) to associate with this renderer
-    * @param {Function} fnRender The function executed to render cells that match the render rules for this renderer.
-    */
-    addWeekdayRenderer : function(weekday, fnRender) {
-        this._addRenderer(Calendar.WEEKDAY,[weekday],fnRender);
-    },
-
-    // END RENDERER METHODS
-    
-    // BEGIN CSS METHODS
-    
-    /**
-    * Removes all styles from all body cells in the current calendar table.
-    * @method clearAllBodyCellStyles
-    * @param {style} style The CSS class name to remove from all calendar body cells
-    */
-    clearAllBodyCellStyles : function(style) {
-        for (var c=0;c<this.cells.length;++c) {
-            Dom.removeClass(this.cells[c],style);
-        }
-    },
-    
-    // END CSS METHODS
-    
-    // BEGIN GETTER/SETTER METHODS
-    /**
-    * Sets the calendar's month explicitly
-    * @method setMonth
-    * @param {Number} month  The numeric month, from 0 (January) to 11 (December)
-    */
-    setMonth : function(month) {
-        var cfgPageDate = DEF_CFG.PAGEDATE.key,
-            current = this.cfg.getProperty(cfgPageDate);
-        current.setMonth(parseInt(month, 10));
-        this.cfg.setProperty(cfgPageDate, current);
-    },
-
-    /**
-    * Sets the calendar's year explicitly.
-    * @method setYear
-    * @param {Number} year  The numeric 4-digit year
-    */
-    setYear : function(year) {
-        var cfgPageDate = DEF_CFG.PAGEDATE.key,
-            current = this.cfg.getProperty(cfgPageDate);
-
-        current.setFullYear(parseInt(year, 10) - this.Locale.YEAR_OFFSET);
-        this.cfg.setProperty(cfgPageDate, current);
-    },
-
-    /**
-    * Gets the list of currently selected dates from the calendar.
-    * @method getSelectedDates
-    * @return {Date[]} An array of currently selected JavaScript Date objects.
-    */
-    getSelectedDates : function() {
-        var returnDates = [],
-            selected = this.cfg.getProperty(DEF_CFG.SELECTED.key);
-
-        for (var d=0;d<selected.length;++d) {
-            var dateArray = selected[d];
-
-            var date = DateMath.getDate(dateArray[0],dateArray[1]-1,dateArray[2]);
-            returnDates.push(date);
-        }
-
-        returnDates.sort( function(a,b) { return a-b; } );
-        return returnDates;
-    },
-
-    /// END GETTER/SETTER METHODS ///
-    
-    /**
-    * Hides the Calendar's outer container from view.
-    * @method hide
-    */
-    hide : function() {
-        if (this.beforeHideEvent.fire()) {
-            this.oDomContainer.style.display = "none";
-            this.hideEvent.fire();
-        }
-    },
-
-    /**
-    * Shows the Calendar's outer container.
-    * @method show
-    */
-    show : function() {
-        if (this.beforeShowEvent.fire()) {
-            this.oDomContainer.style.display = "block";
-            this.showEvent.fire();
-        }
-    },
-
-    /**
-    * Returns a string representing the current browser.
-    * @deprecated As of 2.3.0, environment information is available in YAHOO.env.ua
-    * @see YAHOO.env.ua
-    * @property browser
-    * @type String
-    */
-    browser : (function() {
-                var ua = navigator.userAgent.toLowerCase();
-                      if (ua.indexOf('opera')!=-1) { // Opera (check first in case of spoof)
-                         return 'opera';
-                      } else if (ua.indexOf('msie 7')!=-1) { // IE7
-                         return 'ie7';
-                      } else if (ua.indexOf('msie') !=-1) { // IE
-                         return 'ie';
-                      } else if (ua.indexOf('safari')!=-1) { // Safari (check before Gecko because it includes "like Gecko")
-                         return 'safari';
-                      } else if (ua.indexOf('gecko') != -1) { // Gecko
-                         return 'gecko';
-                      } else {
-                         return false;
-                      }
-                })(),
-    /**
-    * Returns a string representation of the object.
-    * @method toString
-    * @return {String} A string representation of the Calendar object.
-    */
-    toString : function() {
-        return "Calendar " + this.id;
-    },
-
-    /**
-     * Destroys the Calendar instance. The method will remove references
-     * to HTML elements, remove any event listeners added by the Calendar,
-     * and destroy the Config and CalendarNavigator instances it has created.
-     *
-     * @method destroy
-     */
-    destroy : function() {
-
-        if (this.beforeDestroyEvent.fire()) {
-            var cal = this;
-
-            // Child objects
-            if (cal.navigator) {
-                cal.navigator.destroy();
-            }
-
-            if (cal.cfg) {
-                cal.cfg.destroy();
-            }
-
-            // DOM event listeners
-            Event.purgeElement(cal.oDomContainer, true);
-
-            // Generated markup/DOM - Not removing the container DIV since we didn't create it.
-            Dom.removeClass(cal.oDomContainer, cal.Style.CSS_WITH_TITLE);
-            Dom.removeClass(cal.oDomContainer, cal.Style.CSS_CONTAINER);
-            Dom.removeClass(cal.oDomContainer, cal.Style.CSS_SINGLE);
-            cal.oDomContainer.innerHTML = "";
-
-            // JS-to-DOM references
-            cal.oDomContainer = null;
-            cal.cells = null;
-
-            this.destroyEvent.fire();
-        }
-    }
-};
-
-YAHOO.widget.Calendar = Calendar;
-
-/**
-* @namespace YAHOO.widget
-* @class Calendar_Core
-* @extends YAHOO.widget.Calendar
-* @deprecated The old Calendar_Core class is no longer necessary.
-*/
-YAHOO.widget.Calendar_Core = YAHOO.widget.Calendar;
-
-YAHOO.widget.Cal_Core = YAHOO.widget.Calendar;
-
-})();
-(function() {
-
-    var Dom = YAHOO.util.Dom,
-        DateMath = YAHOO.widget.DateMath,
-        Event = YAHOO.util.Event,
-        Lang = YAHOO.lang,
-        Calendar = YAHOO.widget.Calendar;
-
-/**
-* YAHOO.widget.CalendarGroup is a special container class for YAHOO.widget.Calendar. This class facilitates
-* the ability to have multi-page calendar views that share a single dataset and are
-* dependent on each other.
-*
-* The calendar group instance will refer to each of its elements using a 0-based index.
-* For example, to construct the placeholder for a calendar group widget with id "cal1" and
-* containerId of "cal1Container", the markup would be as follows:
-*   <xmp>
-*       <div id="cal1Container_0"></div>
-*       <div id="cal1Container_1"></div>
-*   </xmp>
-* The tables for the calendars ("cal1_0" and "cal1_1") will be inserted into those containers.
-*
-* <p>
-* <strong>NOTE: As of 2.4.0, the constructor's ID argument is optional.</strong>
-* The CalendarGroup can be constructed by simply providing a container ID string, 
-* or a reference to a container DIV HTMLElement (the element needs to exist 
-* in the document).
-* 
-* E.g.:
-*   <xmp>
-*       var c = new YAHOO.widget.CalendarGroup("calContainer", configOptions);
-*   </xmp>
-* or:
-*   <xmp>
-*       var containerDiv = YAHOO.util.Dom.get("calContainer");
-*       var c = new YAHOO.widget.CalendarGroup(containerDiv, configOptions);
-*   </xmp>
-* </p>
-* <p>
-* If not provided, the ID will be generated from the container DIV ID by adding an "_t" suffix.
-* For example if an ID is not provided, and the container's ID is "calContainer", the CalendarGroup's ID will be set to "calContainer_t".
-* </p>
-* 
-* @namespace YAHOO.widget
-* @class CalendarGroup
-* @constructor
-* @param {String} id optional The id of the table element that will represent the CalendarGroup widget. As of 2.4.0, this argument is optional.
-* @param {String | HTMLElement} container The id of the container div element that will wrap the CalendarGroup table, or a reference to a DIV element which exists in the document.
-* @param {Object} config optional The configuration object containing the initial configuration values for the CalendarGroup.
-*/
-function CalendarGroup(id, containerId, config) {
-    if (arguments.length > 0) {
-        this.init.apply(this, arguments);
-    }
-}
-
-/**
-* The set of default Config property keys and values for the CalendarGroup.
-* 
-* <p>
-* NOTE: This property is made public in order to allow users to change 
-* the default values of configuration properties. Users should not 
-* modify the key string, unless they are overriding the Calendar implementation
-* </p>
-*
-* @property YAHOO.widget.CalendarGroup.DEFAULT_CONFIG
-* @static
-* @type Object An object with key/value pairs, the key being the 
-* uppercase configuration property name and the value being an objec 
-* literal with a key string property, and a value property, specifying the 
-* default value of the property 
-*/
-
-/**
-* The set of default Config property keys and values for the CalendarGroup
-* @property YAHOO.widget.CalendarGroup._DEFAULT_CONFIG
-* @deprecated Made public. See the public DEFAULT_CONFIG property for details
-* @private
-* @static
-* @type Object
-*/
-CalendarGroup.DEFAULT_CONFIG = CalendarGroup._DEFAULT_CONFIG = Calendar.DEFAULT_CONFIG;
-CalendarGroup.DEFAULT_CONFIG.PAGES = {key:"pages", value:2};
-
-var DEF_CFG = CalendarGroup.DEFAULT_CONFIG;
-
-CalendarGroup.prototype = {
-
-    /**
-    * Initializes the calendar group. All subclasses must call this method in order for the
-    * group to be initialized properly.
-    * @method init
-    * @param {String} id optional The id of the table element that will represent the CalendarGroup widget. As of 2.4.0, this argument is optional.
-    * @param {String | HTMLElement} container The id of the container div element that will wrap the CalendarGroup table, or a reference to a DIV element which exists in the document.
-    * @param {Object} config optional The configuration object containing the initial configuration values for the CalendarGroup.
-    */
-    init : function(id, container, config) {
-
-        // Normalize 2.4.0, pre 2.4.0 args
-        var nArgs = this._parseArgs(arguments);
-
-        id = nArgs.id;
-        container = nArgs.container;
-        config = nArgs.config;
-
-        this.oDomContainer = Dom.get(container);
-
-        if (!this.oDomContainer.id) {
-            this.oDomContainer.id = Dom.generateId();
-        }
-        if (!id) {
-            id = this.oDomContainer.id + "_t";
-        }
-
-        /**
-        * The unique id associated with the CalendarGroup
-        * @property id
-        * @type String
-        */
-        this.id = id;
-
-        /**
-        * The unique id associated with the CalendarGroup container
-        * @property containerId
-        * @type String
-        */
-        this.containerId = this.oDomContainer.id;
-
-        this.initEvents();
-        this.initStyles();
-
-        /**
-        * The collection of Calendar pages contained within the CalendarGroup
-        * @property pages
-        * @type YAHOO.widget.Calendar[]
-        */
-        this.pages = [];
-
-        Dom.addClass(this.oDomContainer, CalendarGroup.CSS_CONTAINER);
-        Dom.addClass(this.oDomContainer, CalendarGroup.CSS_MULTI_UP);
-
-        /**
-        * The Config object used to hold the configuration variables for the CalendarGroup
-        * @property cfg
-        * @type YAHOO.util.Config
-        */
-        this.cfg = new YAHOO.util.Config(this);
-
-        /**
-        * The local object which contains the CalendarGroup's options
-        * @property Options
-        * @type Object
-        */
-        this.Options = {};
-
-        /**
-        * The local object which contains the CalendarGroup's locale settings
-        * @property Locale
-        * @type Object
-        */
-        this.Locale = {};
-
-        this.setupConfig();
-
-        if (config) {
-            this.cfg.applyConfig(config, true);
-        }
-
-        this.cfg.fireQueue();
-
-        // OPERA HACK FOR MISWRAPPED FLOATS
-        if (YAHOO.env.ua.opera){
-            this.renderEvent.subscribe(this._fixWidth, this, true);
-            this.showEvent.subscribe(this._fixWidth, this, true);
-        }
-
-    },
-
-    setupConfig : function() {
-
-        var cfg = this.cfg;
-
-        /**
-        * The number of pages to include in the CalendarGroup. This value can only be set once, in the CalendarGroup's constructor arguments.
-        * @config pages
-        * @type Number
-        * @default 2
-        */
-        cfg.addProperty(DEF_CFG.PAGES.key, { value:DEF_CFG.PAGES.value, validator:cfg.checkNumber, handler:this.configPages } );
-
-        /**
-        * The positive or negative year offset from the Gregorian calendar year (assuming a January 1st rollover) to 
-        * be used when displaying or parsing dates.  NOTE: All JS Date objects returned by methods, or expected as input by
-        * methods will always represent the Gregorian year, in order to maintain date/month/week values.
-        *
-        * @config year_offset
-        * @type Number
-        * @default 0
-        */
-        cfg.addProperty(DEF_CFG.YEAR_OFFSET.key, { value:DEF_CFG.YEAR_OFFSET.value, handler: this.delegateConfig, supercedes:DEF_CFG.YEAR_OFFSET.supercedes, suppressEvent:true } );
-
-        /**
-        * The date to use to represent "Today".
-        *
-        * @config today
-        * @type Date
-        * @default Today's date
-        */
-        cfg.addProperty(DEF_CFG.TODAY.key, { value: new Date(DEF_CFG.TODAY.value.getTime()), supercedes:DEF_CFG.TODAY.supercedes, handler: this.configToday, suppressEvent:false } );
-
-        /**
-        * The month/year representing the current visible Calendar date (mm/yyyy)
-        * @config pagedate
-        * @type String | Date
-        * @default Today's date
-        */
-        cfg.addProperty(DEF_CFG.PAGEDATE.key, { value: DEF_CFG.PAGEDATE.value || new Date(DEF_CFG.TODAY.value.getTime()), handler:this.configPageDate } );
-
-        /**
-        * The date or range of dates representing the current Calendar selection
-        *
-        * @config selected
-        * @type String
-        * @default []
-        */
-        cfg.addProperty(DEF_CFG.SELECTED.key, { value:[], handler:this.configSelected } );
-
-        /**
-        * The title to display above the CalendarGroup's month header
-        * @config title
-        * @type String
-        * @default ""
-        */
-        cfg.addProperty(DEF_CFG.TITLE.key, { value:DEF_CFG.TITLE.value, handler:this.configTitle } );
-
-        /**
-        * Whether or not a close button should be displayed for this CalendarGroup
-        * @config close
-        * @type Boolean
-        * @default false
-        */
-        cfg.addProperty(DEF_CFG.CLOSE.key, { value:DEF_CFG.CLOSE.value, handler:this.configClose } );
-
-        /**
-        * Whether or not an iframe shim should be placed under the Calendar to prevent select boxes from bleeding through in Internet Explorer 6 and below.
-        * This property is enabled by default for IE6 and below. It is disabled by default for other browsers for performance reasons, but can be 
-        * enabled if required.
-        * 
-        * @config iframe
-        * @type Boolean
-        * @default true for IE6 and below, false for all other browsers
-        */
-        cfg.addProperty(DEF_CFG.IFRAME.key, { value:DEF_CFG.IFRAME.value, handler:this.configIframe, validator:cfg.checkBoolean } );
-
-        /**
-        * The minimum selectable date in the current Calendar (mm/dd/yyyy)
-        * @config mindate
-        * @type String | Date
-        * @default null
-        */
-        cfg.addProperty(DEF_CFG.MINDATE.key, { value:DEF_CFG.MINDATE.value, handler:this.delegateConfig } );
-
-        /**
-        * The maximum selectable date in the current Calendar (mm/dd/yyyy)
-        * @config maxdate
-        * @type String | Date
-        * @default null
-        */
-        cfg.addProperty(DEF_CFG.MAXDATE.key, { value:DEF_CFG.MAXDATE.value, handler:this.delegateConfig  } );
-
-        // Options properties
-
-        /**
-        * True if the Calendar should allow multiple selections. False by default.
-        * @config MULTI_SELECT
-        * @type Boolean
-        * @default false
-        */
-        cfg.addProperty(DEF_CFG.MULTI_SELECT.key, { value:DEF_CFG.MULTI_SELECT.value, handler:this.delegateConfig, validator:cfg.checkBoolean } );
-
-        /**
-        * The weekday the week begins on. Default is 0 (Sunday).
-        * @config START_WEEKDAY
-        * @type number
-        * @default 0
-        */ 
-        cfg.addProperty(DEF_CFG.START_WEEKDAY.key, { value:DEF_CFG.START_WEEKDAY.value, handler:this.delegateConfig, validator:cfg.checkNumber  } );
-        
-        /**
-        * True if the Calendar should show weekday labels. True by default.
-        * @config SHOW_WEEKDAYS
-        * @type Boolean
-        * @default true
-        */ 
-        cfg.addProperty(DEF_CFG.SHOW_WEEKDAYS.key, { value:DEF_CFG.SHOW_WEEKDAYS.value, handler:this.delegateConfig, validator:cfg.checkBoolean } );
-        
-        /**
-        * True if the Calendar should show week row headers. False by default.
-        * @config SHOW_WEEK_HEADER
-        * @type Boolean
-        * @default false
-        */ 
-        cfg.addProperty(DEF_CFG.SHOW_WEEK_HEADER.key,{ value:DEF_CFG.SHOW_WEEK_HEADER.value, handler:this.delegateConfig, validator:cfg.checkBoolean } );
-        
-        /**
-        * True if the Calendar should show week row footers. False by default.
-        * @config SHOW_WEEK_FOOTER
-        * @type Boolean
-        * @default false
-        */
-        cfg.addProperty(DEF_CFG.SHOW_WEEK_FOOTER.key,{ value:DEF_CFG.SHOW_WEEK_FOOTER.value, handler:this.delegateConfig, validator:cfg.checkBoolean } );
-        
-        /**
-        * True if the Calendar should suppress weeks that are not a part of the current month. False by default.
-        * @config HIDE_BLANK_WEEKS
-        * @type Boolean
-        * @default false
-        */  
-        cfg.addProperty(DEF_CFG.HIDE_BLANK_WEEKS.key,{ value:DEF_CFG.HIDE_BLANK_WEEKS.value, handler:this.delegateConfig, validator:cfg.checkBoolean } );
-        
-        /**
-        * The image that should be used for the left navigation arrow.
-        * @config NAV_ARROW_LEFT
-        * @type String
-        * @deprecated You can customize the image by overriding the default CSS class for the left arrow - "calnavleft"
-        * @default null
-        */  
-        cfg.addProperty(DEF_CFG.NAV_ARROW_LEFT.key, { value:DEF_CFG.NAV_ARROW_LEFT.value, handler:this.delegateConfig } );
-        
-        /**
-        * The image that should be used for the right navigation arrow.
-        * @config NAV_ARROW_RIGHT
-        * @type String
-        * @deprecated You can customize the image by overriding the default CSS class for the right arrow - "calnavright"
-        * @default null
-        */  
-        cfg.addProperty(DEF_CFG.NAV_ARROW_RIGHT.key, { value:DEF_CFG.NAV_ARROW_RIGHT.value, handler:this.delegateConfig } );
-    
-        // Locale properties
-        
-        /**
-        * The short month labels for the current locale.
-        * @config MONTHS_SHORT
-        * @type String[]
-        * @default ["Jan", "Feb", "Mar", "Apr", "May", "Jun", "Jul", "Aug", "Sep", "Oct", "Nov", "Dec"]
-        */
-        cfg.addProperty(DEF_CFG.MONTHS_SHORT.key, { value:DEF_CFG.MONTHS_SHORT.value, handler:this.delegateConfig } );
-        
-        /**
-        * The long month labels for the current locale.
-        * @config MONTHS_LONG
-        * @type String[]
-        * @default ["January", "February", "March", "April", "May", "June", "July", "August", "September", "October", "November", "December"
-        */  
-        cfg.addProperty(DEF_CFG.MONTHS_LONG.key,  { value:DEF_CFG.MONTHS_LONG.value, handler:this.delegateConfig } );
-        
-        /**
-        * The 1-character weekday labels for the current locale.
-        * @config WEEKDAYS_1CHAR
-        * @type String[]
-        * @default ["S", "M", "T", "W", "T", "F", "S"]
-        */  
-        cfg.addProperty(DEF_CFG.WEEKDAYS_1CHAR.key, { value:DEF_CFG.WEEKDAYS_1CHAR.value, handler:this.delegateConfig } );
-        
-        /**
-        * The short weekday labels for the current locale.
-        * @config WEEKDAYS_SHORT
-        * @type String[]
-        * @default ["Su", "Mo", "Tu", "We", "Th", "Fr", "Sa"]
-        */  
-        cfg.addProperty(DEF_CFG.WEEKDAYS_SHORT.key, { value:DEF_CFG.WEEKDAYS_SHORT.value, handler:this.delegateConfig } );
-        
-        /**
-        * The medium weekday labels for the current locale.
-        * @config WEEKDAYS_MEDIUM
-        * @type String[]
-        * @default ["Sun", "Mon", "Tue", "Wed", "Thu", "Fri", "Sat"]
-        */  
-        cfg.addProperty(DEF_CFG.WEEKDAYS_MEDIUM.key, { value:DEF_CFG.WEEKDAYS_MEDIUM.value, handler:this.delegateConfig } );
-        
-        /**
-        * The long weekday labels for the current locale.
-        * @config WEEKDAYS_LONG
-        * @type String[]
-        * @default ["Sunday", "Monday", "Tuesday", "Wednesday", "Thursday", "Friday", "Saturday"]
-        */  
-        cfg.addProperty(DEF_CFG.WEEKDAYS_LONG.key, { value:DEF_CFG.WEEKDAYS_LONG.value, handler:this.delegateConfig } );
-    
-        /**
-        * The setting that determines which length of month labels should be used. Possible values are "short" and "long".
-        * @config LOCALE_MONTHS
-        * @type String
-        * @default "long"
-        */
-        cfg.addProperty(DEF_CFG.LOCALE_MONTHS.key, { value:DEF_CFG.LOCALE_MONTHS.value, handler:this.delegateConfig } );
-    
-        /**
-        * The setting that determines which length of weekday labels should be used. Possible values are "1char", "short", "medium", and "long".
-        * @config LOCALE_WEEKDAYS
-        * @type String
-        * @default "short"
-        */ 
-        cfg.addProperty(DEF_CFG.LOCALE_WEEKDAYS.key, { value:DEF_CFG.LOCALE_WEEKDAYS.value, handler:this.delegateConfig } );
-    
-        /**
-        * The value used to delimit individual dates in a date string passed to various Calendar functions.
-        * @config DATE_DELIMITER
-        * @type String
-        * @default ","
-        */
-        cfg.addProperty(DEF_CFG.DATE_DELIMITER.key,  { value:DEF_CFG.DATE_DELIMITER.value, handler:this.delegateConfig } );
-    
-        /**
-        * The value used to delimit date fields in a date string passed to various Calendar functions.
-        * @config DATE_FIELD_DELIMITER
-        * @type String
-        * @default "/"
-        */ 
-        cfg.addProperty(DEF_CFG.DATE_FIELD_DELIMITER.key,{ value:DEF_CFG.DATE_FIELD_DELIMITER.value, handler:this.delegateConfig } );
-    
-        /**
-        * The value used to delimit date ranges in a date string passed to various Calendar functions.
-        * @config DATE_RANGE_DELIMITER
-        * @type String
-        * @default "-"
-        */
-        cfg.addProperty(DEF_CFG.DATE_RANGE_DELIMITER.key,{ value:DEF_CFG.DATE_RANGE_DELIMITER.value, handler:this.delegateConfig } );
-    
-        /**
-        * The position of the month in a month/year date string
-        * @config MY_MONTH_POSITION
-        * @type Number
-        * @default 1
-        */
-        cfg.addProperty(DEF_CFG.MY_MONTH_POSITION.key, { value:DEF_CFG.MY_MONTH_POSITION.value, handler:this.delegateConfig, validator:cfg.checkNumber } );
-        
-        /**
-        * The position of the year in a month/year date string
-        * @config MY_YEAR_POSITION
-        * @type Number
-        * @default 2
-        */ 
-        cfg.addProperty(DEF_CFG.MY_YEAR_POSITION.key, { value:DEF_CFG.MY_YEAR_POSITION.value, handler:this.delegateConfig, validator:cfg.checkNumber } );
-        
-        /**
-        * The position of the month in a month/day date string
-        * @config MD_MONTH_POSITION
-        * @type Number
-        * @default 1
-        */ 
-        cfg.addProperty(DEF_CFG.MD_MONTH_POSITION.key, { value:DEF_CFG.MD_MONTH_POSITION.value, handler:this.delegateConfig, validator:cfg.checkNumber } );
-        
-        /**
-        * The position of the day in a month/year date string
-        * @config MD_DAY_POSITION
-        * @type Number
-        * @default 2
-        */ 
-        cfg.addProperty(DEF_CFG.MD_DAY_POSITION.key,  { value:DEF_CFG.MD_DAY_POSITION.value, handler:this.delegateConfig, validator:cfg.checkNumber } );
-        
-        /**
-        * The position of the month in a month/day/year date string
-        * @config MDY_MONTH_POSITION
-        * @type Number
-        * @default 1
-        */ 
-        cfg.addProperty(DEF_CFG.MDY_MONTH_POSITION.key, { value:DEF_CFG.MDY_MONTH_POSITION.value, handler:this.delegateConfig, validator:cfg.checkNumber } );
-        
-        /**
-        * The position of the day in a month/day/year date string
-        * @config MDY_DAY_POSITION
-        * @type Number
-        * @default 2
-        */ 
-        cfg.addProperty(DEF_CFG.MDY_DAY_POSITION.key, { value:DEF_CFG.MDY_DAY_POSITION.value, handler:this.delegateConfig, validator:cfg.checkNumber } );
-        
-        /**
-        * The position of the year in a month/day/year date string
-        * @config MDY_YEAR_POSITION
-        * @type Number
-        * @default 3
-        */ 
-        cfg.addProperty(DEF_CFG.MDY_YEAR_POSITION.key, { value:DEF_CFG.MDY_YEAR_POSITION.value, handler:this.delegateConfig, validator:cfg.checkNumber } );
-    
-        /**
-        * The position of the month in the month year label string used as the Calendar header
-        * @config MY_LABEL_MONTH_POSITION
-        * @type Number
-        * @default 1
-        */
-        cfg.addProperty(DEF_CFG.MY_LABEL_MONTH_POSITION.key, { value:DEF_CFG.MY_LABEL_MONTH_POSITION.value, handler:this.delegateConfig, validator:cfg.checkNumber } );
-    
-        /**
-        * The position of the year in the month year label string used as the Calendar header
-        * @config MY_LABEL_YEAR_POSITION
-        * @type Number
-        * @default 2
-        */
-        cfg.addProperty(DEF_CFG.MY_LABEL_YEAR_POSITION.key, { value:DEF_CFG.MY_LABEL_YEAR_POSITION.value, handler:this.delegateConfig, validator:cfg.checkNumber } );
-
-        /**
-        * The suffix used after the month when rendering the Calendar header
-        * @config MY_LABEL_MONTH_SUFFIX
-        * @type String
-        * @default " "
-        */
-        cfg.addProperty(DEF_CFG.MY_LABEL_MONTH_SUFFIX.key, { value:DEF_CFG.MY_LABEL_MONTH_SUFFIX.value, handler:this.delegateConfig } );
-        
-        /**
-        * The suffix used after the year when rendering the Calendar header
-        * @config MY_LABEL_YEAR_SUFFIX
-        * @type String
-        * @default ""
-        */
-        cfg.addProperty(DEF_CFG.MY_LABEL_YEAR_SUFFIX.key, { value:DEF_CFG.MY_LABEL_YEAR_SUFFIX.value, handler:this.delegateConfig } );
-
-        /**
-        * Configuration for the Month Year Navigation UI. By default it is disabled
-        * @config NAV
-        * @type Object
-        * @default null
-        */
-        cfg.addProperty(DEF_CFG.NAV.key, { value:DEF_CFG.NAV.value, handler:this.configNavigator } );
-
-        /**
-         * The map of UI strings which the CalendarGroup UI uses.
-         *
-         * @config strings
-         * @type {Object}
-         * @default An object with the properties shown below:
-         *     <dl>
-         *         <dt>previousMonth</dt><dd><em>String</em> : The string to use for the "Previous Month" navigation UI. Defaults to "Previous Month".</dd>
-         *         <dt>nextMonth</dt><dd><em>String</em> : The string to use for the "Next Month" navigation UI. Defaults to "Next Month".</dd>
-         *         <dt>close</dt><dd><em>String</em> : The string to use for the close button label. Defaults to "Close".</dd>
-         *     </dl>
-         */
-        cfg.addProperty(DEF_CFG.STRINGS.key, { 
-            value:DEF_CFG.STRINGS.value, 
-            handler:this.configStrings, 
-            validator: function(val) {
-                return Lang.isObject(val);
-            },
-            supercedes: DEF_CFG.STRINGS.supercedes
-        });
-    },
-
-    /**
-    * Initializes CalendarGroup's built-in CustomEvents
-    * @method initEvents
-    */
-    initEvents : function() {
-
-        var me = this,
-            strEvent = "Event",
-            CE = YAHOO.util.CustomEvent;
-
-        /**
-        * Proxy subscriber to subscribe to the CalendarGroup's child Calendars' CustomEvents
-        * @method sub
-        * @private
-        * @param {Function} fn The function to subscribe to this CustomEvent
-        * @param {Object} obj The CustomEvent's scope object
-        * @param {Boolean} bOverride Whether or not to apply scope correction
-        */
-        var sub = function(fn, obj, bOverride) {
-            for (var p=0;p<me.pages.length;++p) {
-                var cal = me.pages[p];
-                cal[this.type + strEvent].subscribe(fn, obj, bOverride);
-            }
-        };
-
-        /**
-        * Proxy unsubscriber to unsubscribe from the CalendarGroup's child Calendars' CustomEvents
-        * @method unsub
-        * @private
-        * @param {Function} fn The function to subscribe to this CustomEvent
-        * @param {Object} obj The CustomEvent's scope object
-        */
-        var unsub = function(fn, obj) {
-            for (var p=0;p<me.pages.length;++p) {
-                var cal = me.pages[p];
-                cal[this.type + strEvent].unsubscribe(fn, obj);
-            }
-        };
-
-        var defEvents = Calendar._EVENT_TYPES;
-
-        /**
-        * Fired before a date selection is made
-        * @event beforeSelectEvent
-        */
-        me.beforeSelectEvent = new CE(defEvents.BEFORE_SELECT);
-        me.beforeSelectEvent.subscribe = sub; me.beforeSelectEvent.unsubscribe = unsub;
-
-        /**
-        * Fired when a date selection is made
-        * @event selectEvent
-        * @param {Array} Array of Date field arrays in the format [YYYY, MM, DD].
-        */
-        me.selectEvent = new CE(defEvents.SELECT); 
-        me.selectEvent.subscribe = sub; me.selectEvent.unsubscribe = unsub;
-
-        /**
-        * Fired before a date or set of dates is deselected
-        * @event beforeDeselectEvent
-        */
-        me.beforeDeselectEvent = new CE(defEvents.BEFORE_DESELECT); 
-        me.beforeDeselectEvent.subscribe = sub; me.beforeDeselectEvent.unsubscribe = unsub;
-
-        /**
-        * Fired when a date or set of dates has been deselected
-        * @event deselectEvent
-        * @param {Array} Array of Date field arrays in the format [YYYY, MM, DD].
-        */
-        me.deselectEvent = new CE(defEvents.DESELECT); 
-        me.deselectEvent.subscribe = sub; me.deselectEvent.unsubscribe = unsub;
-        
-        /**
-        * Fired when the Calendar page is changed
-        * @event changePageEvent
-        */
-        me.changePageEvent = new CE(defEvents.CHANGE_PAGE); 
-        me.changePageEvent.subscribe = sub; me.changePageEvent.unsubscribe = unsub;
-
-        /**
-        * Fired before the Calendar is rendered
-        * @event beforeRenderEvent
-        */
-        me.beforeRenderEvent = new CE(defEvents.BEFORE_RENDER);
-        me.beforeRenderEvent.subscribe = sub; me.beforeRenderEvent.unsubscribe = unsub;
-    
-        /**
-        * Fired when the Calendar is rendered
-        * @event renderEvent
-        */
-        me.renderEvent = new CE(defEvents.RENDER);
-        me.renderEvent.subscribe = sub; me.renderEvent.unsubscribe = unsub;
-    
-        /**
-        * Fired when the Calendar is reset
-        * @event resetEvent
-        */
-        me.resetEvent = new CE(defEvents.RESET); 
-        me.resetEvent.subscribe = sub; me.resetEvent.unsubscribe = unsub;
-    
-        /**
-        * Fired when the Calendar is cleared
-        * @event clearEvent
-        */
-        me.clearEvent = new CE(defEvents.CLEAR);
-        me.clearEvent.subscribe = sub; me.clearEvent.unsubscribe = unsub;
-
-        /**
-        * Fired just before the CalendarGroup is to be shown
-        * @event beforeShowEvent
-        */
-        me.beforeShowEvent = new CE(defEvents.BEFORE_SHOW);
-    
-        /**
-        * Fired after the CalendarGroup is shown
-        * @event showEvent
-        */
-        me.showEvent = new CE(defEvents.SHOW);
-    
-        /**
-        * Fired just before the CalendarGroup is to be hidden
-        * @event beforeHideEvent
-        */
-        me.beforeHideEvent = new CE(defEvents.BEFORE_HIDE);
-    
-        /**
-        * Fired after the CalendarGroup is hidden
-        * @event hideEvent
-        */
-        me.hideEvent = new CE(defEvents.HIDE);
-
-        /**
-        * Fired just before the CalendarNavigator is to be shown
-        * @event beforeShowNavEvent
-        */
-        me.beforeShowNavEvent = new CE(defEvents.BEFORE_SHOW_NAV);
-    
-        /**
-        * Fired after the CalendarNavigator is shown
-        * @event showNavEvent
-        */
-        me.showNavEvent = new CE(defEvents.SHOW_NAV);
-    
-        /**
-        * Fired just before the CalendarNavigator is to be hidden
-        * @event beforeHideNavEvent
-        */
-        me.beforeHideNavEvent = new CE(defEvents.BEFORE_HIDE_NAV);
-
-        /**
-        * Fired after the CalendarNavigator is hidden
-        * @event hideNavEvent
-        */
-        me.hideNavEvent = new CE(defEvents.HIDE_NAV);
-
-        /**
-        * Fired just before the CalendarNavigator is to be rendered
-        * @event beforeRenderNavEvent
-        */
-        me.beforeRenderNavEvent = new CE(defEvents.BEFORE_RENDER_NAV);
-
-        /**
-        * Fired after the CalendarNavigator is rendered
-        * @event renderNavEvent
-        */
-        me.renderNavEvent = new CE(defEvents.RENDER_NAV);
-
-        /**
-        * Fired just before the CalendarGroup is to be destroyed
-        * @event beforeDestroyEvent
-        */
-        me.beforeDestroyEvent = new CE(defEvents.BEFORE_DESTROY);
-
-        /**
-        * Fired after the CalendarGroup is destroyed. This event should be used
-        * for notification only. When this event is fired, important CalendarGroup instance
-        * properties, dom references and event listeners have already been 
-        * removed/dereferenced, and hence the CalendarGroup instance is not in a usable 
-        * state.
-        *
-        * @event destroyEvent
-        */
-        me.destroyEvent = new CE(defEvents.DESTROY);
-    },
-    
-    /**
-    * The default Config handler for the "pages" property
-    * @method configPages
-    * @param {String} type The CustomEvent type (usually the property name)
-    * @param {Object[]} args The CustomEvent arguments. For configuration handlers, args[0] will equal the newly applied value for the property.
-    * @param {Object} obj The scope object. For configuration handlers, this will usually equal the owner.
-    */
-    configPages : function(type, args, obj) {
-        var pageCount = args[0],
-            cfgPageDate = DEF_CFG.PAGEDATE.key,
-            sep = "_",
-            caldate,
-            firstPageDate = null,
-            groupCalClass = "groupcal",
-            firstClass = "first-of-type",
-            lastClass = "last-of-type";
-
-        for (var p=0;p<pageCount;++p) {
-            var calId = this.id + sep + p,
-                calContainerId = this.containerId + sep + p,
-                childConfig = this.cfg.getConfig();
-
-            childConfig.close = false;
-            childConfig.title = false;
-            childConfig.navigator = null;
-
-            if (p > 0) {
-                caldate = new Date(firstPageDate);
-                this._setMonthOnDate(caldate, caldate.getMonth() + p);
-                childConfig.pageDate = caldate;
-            }
-
-            var cal = this.constructChild(calId, calContainerId, childConfig);
-
-            Dom.removeClass(cal.oDomContainer, this.Style.CSS_SINGLE);
-            Dom.addClass(cal.oDomContainer, groupCalClass);
-
-            if (p===0) {
-                firstPageDate = cal.cfg.getProperty(cfgPageDate);
-                Dom.addClass(cal.oDomContainer, firstClass);
-            }
-    
-            if (p==(pageCount-1)) {
-                Dom.addClass(cal.oDomContainer, lastClass);
-            }
-    
-            cal.parent = this;
-            cal.index = p; 
-    
-            this.pages[this.pages.length] = cal;
-        }
-    },
-    
-    /**
-    * The default Config handler for the "pagedate" property
-    * @method configPageDate
-    * @param {String} type The CustomEvent type (usually the property name)
-    * @param {Object[]} args The CustomEvent arguments. For configuration handlers, args[0] will equal the newly applied value for the property.
-    * @param {Object} obj The scope object. For configuration handlers, this will usually equal the owner.
-    */
-    configPageDate : function(type, args, obj) {
-        var val = args[0],
-            firstPageDate;
-
-        var cfgPageDate = DEF_CFG.PAGEDATE.key;
-        
-        for (var p=0;p<this.pages.length;++p) {
-            var cal = this.pages[p];
-            if (p === 0) {
-                firstPageDate = cal._parsePageDate(val);
-                cal.cfg.setProperty(cfgPageDate, firstPageDate);
-            } else {
-                var pageDate = new Date(firstPageDate);
-                this._setMonthOnDate(pageDate, pageDate.getMonth() + p);
-                cal.cfg.setProperty(cfgPageDate, pageDate);
-            }
-        }
-    },
-    
-    /**
-    * The default Config handler for the CalendarGroup "selected" property
-    * @method configSelected
-    * @param {String} type The CustomEvent type (usually the property name)
-    * @param {Object[]} args The CustomEvent arguments. For configuration handlers, args[0] will equal the newly applied value for the property.
-    * @param {Object} obj The scope object. For configuration handlers, this will usually equal the owner.
-    */
-    configSelected : function(type, args, obj) {
-        var cfgSelected = DEF_CFG.SELECTED.key;
-        this.delegateConfig(type, args, obj);
-        var selected = (this.pages.length > 0) ? this.pages[0].cfg.getProperty(cfgSelected) : []; 
-        this.cfg.setProperty(cfgSelected, selected, true);
-    },
-
-    
-    /**
-    * Delegates a configuration property to the CustomEvents associated with the CalendarGroup's children
-    * @method delegateConfig
-    * @param {String} type The CustomEvent type (usually the property name)
-    * @param {Object[]} args The CustomEvent arguments. For configuration handlers, args[0] will equal the newly applied value for the property.
-    * @param {Object} obj The scope object. For configuration handlers, this will usually equal the owner.
-    */
-    delegateConfig : function(type, args, obj) {
-        var val = args[0];
-        var cal;
-    
-        for (var p=0;p<this.pages.length;p++) {
-            cal = this.pages[p];
-            cal.cfg.setProperty(type, val);
-        }
-    },
-
-    /**
-    * Adds a function to all child Calendars within this CalendarGroup.
-    * @method setChildFunction
-    * @param {String}  fnName  The name of the function
-    * @param {Function}  fn   The function to apply to each Calendar page object
-    */
-    setChildFunction : function(fnName, fn) {
-        var pageCount = this.cfg.getProperty(DEF_CFG.PAGES.key);
-    
-        for (var p=0;p<pageCount;++p) {
-            this.pages[p][fnName] = fn;
-        }
-    },
-
-    /**
-    * Calls a function within all child Calendars within this CalendarGroup.
-    * @method callChildFunction
-    * @param {String}  fnName  The name of the function
-    * @param {Array}  args  The arguments to pass to the function
-    */
-    callChildFunction : function(fnName, args) {
-        var pageCount = this.cfg.getProperty(DEF_CFG.PAGES.key);
-
-        for (var p=0;p<pageCount;++p) {
-            var page = this.pages[p];
-            if (page[fnName]) {
-                var fn = page[fnName];
-                fn.call(page, args);
-            }
-        } 
-    },
-
-    /**
-    * Constructs a child calendar. This method can be overridden if a subclassed version of the default
-    * calendar is to be used.
-    * @method constructChild
-    * @param {String} id   The id of the table element that will represent the calendar widget
-    * @param {String} containerId The id of the container div element that will wrap the calendar table
-    * @param {Object} config  The configuration object containing the Calendar's arguments
-    * @return {YAHOO.widget.Calendar} The YAHOO.widget.Calendar instance that is constructed
-    */
-    constructChild : function(id,containerId,config) {
-        var container = document.getElementById(containerId);
-        if (! container) {
-            container = document.createElement("div");
-            container.id = containerId;
-            this.oDomContainer.appendChild(container);
-        }
-        return new Calendar(id,containerId,config);
-    },
-    
-    /**
-    * Sets the calendar group's month explicitly. This month will be set into the first
-    * page of the multi-page calendar, and all other months will be iterated appropriately.
-    * @method setMonth
-    * @param {Number} month  The numeric month, from 0 (January) to 11 (December)
-    */
-    setMonth : function(month) {
-        month = parseInt(month, 10);
-        var currYear;
-
-        var cfgPageDate = DEF_CFG.PAGEDATE.key;
-
-        for (var p=0; p<this.pages.length; ++p) {
-            var cal = this.pages[p];
-            var pageDate = cal.cfg.getProperty(cfgPageDate);
-            if (p === 0) {
-                currYear = pageDate.getFullYear();
-            } else {
-                pageDate.setFullYear(currYear);
-            }
-            this._setMonthOnDate(pageDate, month+p); 
-            cal.cfg.setProperty(cfgPageDate, pageDate);
-        }
-    },
-
-    /**
-    * Sets the calendar group's year explicitly. This year will be set into the first
-    * page of the multi-page calendar, and all other months will be iterated appropriately.
-    * @method setYear
-    * @param {Number} year  The numeric 4-digit year
-    */
-    setYear : function(year) {
-    
-        var cfgPageDate = DEF_CFG.PAGEDATE.key;
-    
-        year = parseInt(year, 10);
-        for (var p=0;p<this.pages.length;++p) {
-            var cal = this.pages[p];
-            var pageDate = cal.cfg.getProperty(cfgPageDate);
-    
-            if ((pageDate.getMonth()+1) == 1 && p>0) {
-                year+=1;
-            }
-            cal.setYear(year);
-        }
-    },
-
-    /**
-    * Calls the render function of all child calendars within the group.
-    * @method render
-    */
-    render : function() {
-        this.renderHeader();
-        for (var p=0;p<this.pages.length;++p) {
-            var cal = this.pages[p];
-            cal.render();
-        }
-        this.renderFooter();
-    },
-
-    /**
-    * Selects a date or a collection of dates on the current calendar. This method, by default,
-    * does not call the render method explicitly. Once selection has completed, render must be 
-    * called for the changes to be reflected visually.
-    * @method select
-    * @param    {String/Date/Date[]}    date    The date string of dates to select in the current calendar. Valid formats are
-    *                               individual date(s) (12/24/2005,12/26/2005) or date range(s) (12/24/2005-1/1/2006).
-    *                               Multiple comma-delimited dates can also be passed to this method (12/24/2005,12/11/2005-12/13/2005).
-    *                               This method can also take a JavaScript Date object or an array of Date objects.
-    * @return {Date[]} Array of JavaScript Date objects representing all individual dates that are currently selected.
-    */
-    select : function(date) {
-        for (var p=0;p<this.pages.length;++p) {
-            var cal = this.pages[p];
-            cal.select(date);
-        }
-        return this.getSelectedDates();
-    },
-
-    /**
-    * Selects dates in the CalendarGroup based on the cell index provided. This method is used to select cells without having to do a full render. The selected style is applied to the cells directly.
-    * The value of the MULTI_SELECT Configuration attribute will determine the set of dates which get selected. 
-    * <ul>
-    *    <li>If MULTI_SELECT is false, selectCell will select the cell at the specified index for only the last displayed Calendar page.</li>
-    *    <li>If MULTI_SELECT is true, selectCell will select the cell at the specified index, on each displayed Calendar page.</li>
-    * </ul>
-    * @method selectCell
-    * @param {Number} cellIndex The index of the cell to be selected. 
-    * @return {Date[]} Array of JavaScript Date objects representing all individual dates that are currently selected.
-    */
-    selectCell : function(cellIndex) {
-        for (var p=0;p<this.pages.length;++p) {
-            var cal = this.pages[p];
-            cal.selectCell(cellIndex);
-        }
-        return this.getSelectedDates();
-    },
-    
-    /**
-    * Deselects a date or a collection of dates on the current calendar. This method, by default,
-    * does not call the render method explicitly. Once deselection has completed, render must be 
-    * called for the changes to be reflected visually.
-    * @method deselect
-    * @param {String/Date/Date[]} date The date string of dates to deselect in the current calendar. Valid formats are
-    *        individual date(s) (12/24/2005,12/26/2005) or date range(s) (12/24/2005-1/1/2006).
-    *        Multiple comma-delimited dates can also be passed to this method (12/24/2005,12/11/2005-12/13/2005).
-    *        This method can also take a JavaScript Date object or an array of Date objects. 
-    * @return {Date[]}   Array of JavaScript Date objects representing all individual dates that are currently selected.
-    */
-    deselect : function(date) {
-        for (var p=0;p<this.pages.length;++p) {
-            var cal = this.pages[p];
-            cal.deselect(date);
-        }
-        return this.getSelectedDates();
-    },
-    
-    /**
-    * Deselects all dates on the current calendar.
-    * @method deselectAll
-    * @return {Date[]}  Array of JavaScript Date objects representing all individual dates that are currently selected.
-    *      Assuming that this function executes properly, the return value should be an empty array.
-    *      However, the empty array is returned for the sake of being able to check the selection status
-    *      of the calendar.
-    */
-    deselectAll : function() {
-        for (var p=0;p<this.pages.length;++p) {
-            var cal = this.pages[p];
-            cal.deselectAll();
-        }
-        return this.getSelectedDates();
-    },
-
-    /**
-    * Deselects dates in the CalendarGroup based on the cell index provided. This method is used to select cells without having to do a full render. The selected style is applied to the cells directly.
-    * deselectCell will deselect the cell at the specified index on each displayed Calendar page.
-    *
-    * @method deselectCell
-    * @param {Number} cellIndex The index of the cell to deselect. 
-    * @return {Date[]} Array of JavaScript Date objects representing all individual dates that are currently selected.
-    */
-    deselectCell : function(cellIndex) {
-        for (var p=0;p<this.pages.length;++p) {
-            var cal = this.pages[p];
-            cal.deselectCell(cellIndex);
-        }
-        return this.getSelectedDates();
-    },
-
-    /**
-    * Resets the calendar widget to the originally selected month and year, and 
-    * sets the calendar to the initial selection(s).
-    * @method reset
-    */
-    reset : function() {
-        for (var p=0;p<this.pages.length;++p) {
-            var cal = this.pages[p];
-            cal.reset();
-        }
-    },
-
-    /**
-    * Clears the selected dates in the current calendar widget and sets the calendar
-    * to the current month and year.
-    * @method clear
-    */
-    clear : function() {
-        for (var p=0;p<this.pages.length;++p) {
-            var cal = this.pages[p];
-            cal.clear();
-        }
-
-        this.cfg.setProperty(DEF_CFG.SELECTED.key, []);
-        this.cfg.setProperty(DEF_CFG.PAGEDATE.key, new Date(this.pages[0].today.getTime()));
-        this.render();
-    },
-
-    /**
-    * Navigates to the next month page in the calendar widget.
-    * @method nextMonth
-    */
-    nextMonth : function() {
-        for (var p=0;p<this.pages.length;++p) {
-            var cal = this.pages[p];
-            cal.nextMonth();
-        }
-    },
-    
-    /**
-    * Navigates to the previous month page in the calendar widget.
-    * @method previousMonth
-    */
-    previousMonth : function() {
-        for (var p=this.pages.length-1;p>=0;--p) {
-            var cal = this.pages[p];
-            cal.previousMonth();
-        }
-    },
-    
-    /**
-    * Navigates to the next year in the currently selected month in the calendar widget.
-    * @method nextYear
-    */
-    nextYear : function() {
-        for (var p=0;p<this.pages.length;++p) {
-            var cal = this.pages[p];
-            cal.nextYear();
-        }
-    },
-
-    /**
-    * Navigates to the previous year in the currently selected month in the calendar widget.
-    * @method previousYear
-    */
-    previousYear : function() {
-        for (var p=0;p<this.pages.length;++p) {
-            var cal = this.pages[p];
-            cal.previousYear();
-        }
-    },
-
-    /**
-    * Gets the list of currently selected dates from the calendar.
-    * @return   An array of currently selected JavaScript Date objects.
-    * @type Date[]
-    */
-    getSelectedDates : function() { 
-        var returnDates = [];
-        var selected = this.cfg.getProperty(DEF_CFG.SELECTED.key);
-        for (var d=0;d<selected.length;++d) {
-            var dateArray = selected[d];
-
-            var date = DateMath.getDate(dateArray[0],dateArray[1]-1,dateArray[2]);
-            returnDates.push(date);
-        }
-
-        returnDates.sort( function(a,b) { return a-b; } );
-        return returnDates;
-    },
-
-    /**
-    * Adds a renderer to the render stack. The function reference passed to this method will be executed
-    * when a date cell matches the conditions specified in the date string for this renderer.
-    * @method addRenderer
-    * @param {String} sDates  A date string to associate with the specified renderer. Valid formats
-    *         include date (12/24/2005), month/day (12/24), and range (12/1/2004-1/1/2005)
-    * @param {Function} fnRender The function executed to render cells that match the render rules for this renderer.
-    */
-    addRenderer : function(sDates, fnRender) {
-        for (var p=0;p<this.pages.length;++p) {
-            var cal = this.pages[p];
-            cal.addRenderer(sDates, fnRender);
-        }
-    },
-
-    /**
-    * Adds a month to the render stack. The function reference passed to this method will be executed
-    * when a date cell matches the month passed to this method.
-    * @method addMonthRenderer
-    * @param {Number} month  The month (1-12) to associate with this renderer
-    * @param {Function} fnRender The function executed to render cells that match the render rules for this renderer.
-    */
-    addMonthRenderer : function(month, fnRender) {
-        for (var p=0;p<this.pages.length;++p) {
-            var cal = this.pages[p];
-            cal.addMonthRenderer(month, fnRender);
-        }
-    },
-
-    /**
-    * Adds a weekday to the render stack. The function reference passed to this method will be executed
-    * when a date cell matches the weekday passed to this method.
-    * @method addWeekdayRenderer
-    * @param {Number} weekday  The weekday (1-7) to associate with this renderer. 1=Sunday, 2=Monday etc.
-    * @param {Function} fnRender The function executed to render cells that match the render rules for this renderer.
-    */
-    addWeekdayRenderer : function(weekday, fnRender) {
-        for (var p=0;p<this.pages.length;++p) {
-            var cal = this.pages[p];
-            cal.addWeekdayRenderer(weekday, fnRender);
-        }
-    },
-
-    /**
-     * Removes all custom renderers added to the CalendarGroup through the addRenderer, addMonthRenderer and 
-     * addWeekRenderer methods. CalendarGroup's render method needs to be called to after removing renderers 
-     * to see the changes applied.
-     * 
-     * @method removeRenderers
-     */
-    removeRenderers : function() {
-        this.callChildFunction("removeRenderers");
-    },
-
-    /**
-    * Renders the header for the CalendarGroup.
-    * @method renderHeader
-    */
-    renderHeader : function() {
-        // EMPTY DEFAULT IMPL
-    },
-
-    /**
-    * Renders a footer for the 2-up calendar container. By default, this method is
-    * unimplemented.
-    * @method renderFooter
-    */
-    renderFooter : function() {
-        // EMPTY DEFAULT IMPL
-    },
-
-    /**
-    * Adds the designated number of months to the current calendar month, and sets the current
-    * calendar page date to the new month.
-    * @method addMonths
-    * @param {Number} count The number of months to add to the current calendar
-    */
-    addMonths : function(count) {
-        this.callChildFunction("addMonths", count);
-    },
-    
-    /**
-    * Subtracts the designated number of months from the current calendar month, and sets the current
-    * calendar page date to the new month.
-    * @method subtractMonths
-    * @param {Number} count The number of months to subtract from the current calendar
-    */
-    subtractMonths : function(count) {
-        this.callChildFunction("subtractMonths", count);
-    },
-
-    /**
-    * Adds the designated number of years to the current calendar, and sets the current
-    * calendar page date to the new month.
-    * @method addYears
-    * @param {Number} count The number of years to add to the current calendar
-    */
-    addYears : function(count) {
-        this.callChildFunction("addYears", count);
-    },
-
-    /**
-    * Subtcats the designated number of years from the current calendar, and sets the current
-    * calendar page date to the new month.
-    * @method subtractYears
-    * @param {Number} count The number of years to subtract from the current calendar
-    */
-    subtractYears : function(count) {
-        this.callChildFunction("subtractYears", count);
-    },
-
-    /**
-     * Returns the Calendar page instance which has a pagedate (month/year) matching the given date. 
-     * Returns null if no match is found.
-     * 
-     * @method getCalendarPage
-     * @param {Date} date The JavaScript Date object for which a Calendar page is to be found.
-     * @return {Calendar} The Calendar page instance representing the month to which the date 
-     * belongs.
-     */
-    getCalendarPage : function(date) {
-        var cal = null;
-        if (date) {
-            var y = date.getFullYear(),
-                m = date.getMonth();
-
-            var pages = this.pages;
-            for (var i = 0; i < pages.length; ++i) {
-                var pageDate = pages[i].cfg.getProperty("pagedate");
-                if (pageDate.getFullYear() === y && pageDate.getMonth() === m) {
-                    cal = pages[i];
-                    break;
-                }
-            }
-        }
-        return cal;
-    },
-
-    /**
-    * Sets the month on a Date object, taking into account year rollover if the month is less than 0 or greater than 11.
-    * The Date object passed in is modified. It should be cloned before passing it into this method if the original value needs to be maintained
-    * @method _setMonthOnDate
-    * @private
-    * @param {Date} date The Date object on which to set the month index
-    * @param {Number} iMonth The month index to set
-    */
-    _setMonthOnDate : function(date, iMonth) {
-        // Bug in Safari 1.3, 2.0 (WebKit build < 420), Date.setMonth does not work consistently if iMonth is not 0-11
-        if (YAHOO.env.ua.webkit && YAHOO.env.ua.webkit < 420 && (iMonth < 0 || iMonth > 11)) {
-            var newDate = DateMath.add(date, DateMath.MONTH, iMonth-date.getMonth());
-            date.setTime(newDate.getTime());
-        } else {
-            date.setMonth(iMonth);
-        }
-    },
-    
-    /**
-     * Fixes the width of the CalendarGroup container element, to account for miswrapped floats
-     * @method _fixWidth
-     * @private
-     */
-    _fixWidth : function() {
-        var w = 0;
-        for (var p=0;p<this.pages.length;++p) {
-            var cal = this.pages[p];
-            w += cal.oDomContainer.offsetWidth;
-        }
-        if (w > 0) {
-            this.oDomContainer.style.width = w + "px";
-        }
-    },
-    
-    /**
-    * Returns a string representation of the object.
-    * @method toString
-    * @return {String} A string representation of the CalendarGroup object.
-    */
-    toString : function() {
-        return "CalendarGroup " + this.id;
-    },
-
-    /**
-     * Destroys the CalendarGroup instance. The method will remove references
-     * to HTML elements, remove any event listeners added by the CalendarGroup.
-     * 
-     * It will also destroy the Config and CalendarNavigator instances created by the 
-     * CalendarGroup and the individual Calendar instances created for each page.
-     *
-     * @method destroy
-     */
-    destroy : function() {
-
-        if (this.beforeDestroyEvent.fire()) {
-
-            var cal = this;
-    
-            // Child objects
-            if (cal.navigator) {
-                cal.navigator.destroy();
-            }
-    
-            if (cal.cfg) {
-                cal.cfg.destroy();
-            }
-    
-            // DOM event listeners
-            Event.purgeElement(cal.oDomContainer, true);
-    
-            // Generated markup/DOM - Not removing the container DIV since we didn't create it.
-            Dom.removeClass(cal.oDomContainer, CalendarGroup.CSS_CONTAINER);
-            Dom.removeClass(cal.oDomContainer, CalendarGroup.CSS_MULTI_UP);
-            
-            for (var i = 0, l = cal.pages.length; i < l; i++) {
-                cal.pages[i].destroy();
-                cal.pages[i] = null;
-            }
-    
-            cal.oDomContainer.innerHTML = "";
-    
-            // JS-to-DOM references
-            cal.oDomContainer = null;
-    
-            this.destroyEvent.fire();
-        }
-    }
-};
-
-/**
-* CSS class representing the container for the calendar
-* @property YAHOO.widget.CalendarGroup.CSS_CONTAINER
-* @static
-* @final
-* @type String
-*/
-CalendarGroup.CSS_CONTAINER = "yui-calcontainer";
-
-/**
-* CSS class representing the container for the calendar
-* @property YAHOO.widget.CalendarGroup.CSS_MULTI_UP
-* @static
-* @final
-* @type String
-*/
-CalendarGroup.CSS_MULTI_UP = "multi";
-
-/**
-* CSS class representing the title for the 2-up calendar
-* @property YAHOO.widget.CalendarGroup.CSS_2UPTITLE
-* @static
-* @final
-* @type String
-*/
-CalendarGroup.CSS_2UPTITLE = "title";
-
-/**
-* CSS class representing the close icon for the 2-up calendar
-* @property YAHOO.widget.CalendarGroup.CSS_2UPCLOSE
-* @static
-* @final
-* @deprecated Along with Calendar.IMG_ROOT and NAV_ARROW_LEFT, NAV_ARROW_RIGHT configuration properties.
-*     Calendar's <a href="YAHOO.widget.Calendar.html#Style.CSS_CLOSE">Style.CSS_CLOSE</a> property now represents the CSS class used to render the close icon
-* @type String
-*/
-CalendarGroup.CSS_2UPCLOSE = "close-icon";
-
-YAHOO.lang.augmentProto(CalendarGroup, Calendar, "buildDayLabel",
-                                                 "buildMonthLabel",
-                                                 "renderOutOfBoundsDate",
-                                                 "renderRowHeader",
-                                                 "renderRowFooter",
-                                                 "renderCellDefault",
-                                                 "styleCellDefault",
-                                                 "renderCellStyleHighlight1",
-                                                 "renderCellStyleHighlight2",
-                                                 "renderCellStyleHighlight3",
-                                                 "renderCellStyleHighlight4",
-                                                 "renderCellStyleToday",
-                                                 "renderCellStyleSelected",
-                                                 "renderCellNotThisMonth",
-                                                 "renderBodyCellRestricted",
-                                                 "initStyles",
-                                                 "configTitle",
-                                                 "configClose",
-                                                 "configIframe",
-                                                 "configStrings",
-                                                 "configToday",
-                                                 "configNavigator",
-                                                 "createTitleBar",
-                                                 "createCloseButton",
-                                                 "removeTitleBar",
-                                                 "removeCloseButton",
-                                                 "hide",
-                                                 "show",
-                                                 "toDate",
-                                                 "_toDate",
-                                                 "_parseArgs",
-                                                 "browser");
-
-YAHOO.widget.CalGrp = CalendarGroup;
-YAHOO.widget.CalendarGroup = CalendarGroup;
-
-/**
-* @class YAHOO.widget.Calendar2up
-* @extends YAHOO.widget.CalendarGroup
-* @deprecated The old Calendar2up class is no longer necessary, since CalendarGroup renders in a 2up view by default.
-*/
-YAHOO.widget.Calendar2up = function(id, containerId, config) {
-    this.init(id, containerId, config);
-};
-
-YAHOO.extend(YAHOO.widget.Calendar2up, CalendarGroup);
-
-/**
-* @deprecated The old Calendar2up class is no longer necessary, since CalendarGroup renders in a 2up view by default.
-*/
-YAHOO.widget.Cal2up = YAHOO.widget.Calendar2up;
-
-})();
-/**
- * The CalendarNavigator is used along with a Calendar/CalendarGroup to 
- * provide a Month/Year popup navigation control, allowing the user to navigate 
- * to a specific month/year in the Calendar/CalendarGroup without having to 
- * scroll through months sequentially
- *
- * @namespace YAHOO.widget
- * @class CalendarNavigator
- * @constructor
- * @param {Calendar|CalendarGroup} cal The instance of the Calendar or CalendarGroup to which this CalendarNavigator should be attached.
- */
-YAHOO.widget.CalendarNavigator = function(cal) {
-    this.init(cal);
-};
-
-(function() {
-    // Setup static properties (inside anon fn, so that we can use shortcuts)
-    var CN = YAHOO.widget.CalendarNavigator;
-
-    /**
-     * YAHOO.widget.CalendarNavigator.CLASSES contains constants
-     * for the class values applied to the CalendarNaviatgator's 
-     * DOM elements
-     * @property YAHOO.widget.CalendarNavigator.CLASSES
-     * @type Object
-     * @static
-     */
-    CN.CLASSES = {
-        /**
-         * Class applied to the Calendar Navigator's bounding box
-         * @property YAHOO.widget.CalendarNavigator.CLASSES.NAV
-         * @type String
-         * @static
-         */
-        NAV :"yui-cal-nav",
-        /**
-         * Class applied to the Calendar/CalendarGroup's bounding box to indicate
-         * the Navigator is currently visible
-         * @property YAHOO.widget.CalendarNavigator.CLASSES.NAV_VISIBLE
-         * @type String
-         * @static
-         */
-        NAV_VISIBLE: "yui-cal-nav-visible",
-        /**
-         * Class applied to the Navigator mask's bounding box
-         * @property YAHOO.widget.CalendarNavigator.CLASSES.MASK
-         * @type String
-         * @static
-         */
-        MASK : "yui-cal-nav-mask",
-        /**
-         * Class applied to the year label/control bounding box
-         * @property YAHOO.widget.CalendarNavigator.CLASSES.YEAR
-         * @type String
-         * @static
-         */
-        YEAR : "yui-cal-nav-y",
-        /**
-         * Class applied to the month label/control bounding box
-         * @property YAHOO.widget.CalendarNavigator.CLASSES.MONTH
-         * @type String
-         * @static
-         */
-        MONTH : "yui-cal-nav-m",
-        /**
-         * Class applied to the submit/cancel button's bounding box
-         * @property YAHOO.widget.CalendarNavigator.CLASSES.BUTTONS
-         * @type String
-         * @static
-         */
-        BUTTONS : "yui-cal-nav-b",
-        /**
-         * Class applied to buttons wrapping element
-         * @property YAHOO.widget.CalendarNavigator.CLASSES.BUTTON
-         * @type String
-         * @static
-         */
-        BUTTON : "yui-cal-nav-btn",
-        /**
-         * Class applied to the validation error area's bounding box
-         * @property YAHOO.widget.CalendarNavigator.CLASSES.ERROR
-         * @type String
-         * @static
-         */
-        ERROR : "yui-cal-nav-e",
-        /**
-         * Class applied to the year input control
-         * @property YAHOO.widget.CalendarNavigator.CLASSES.YEAR_CTRL
-         * @type String
-         * @static
-         */
-        YEAR_CTRL : "yui-cal-nav-yc",
-        /**
-         * Class applied to the month input control
-         * @property YAHOO.widget.CalendarNavigator.CLASSES.MONTH_CTRL
-         * @type String
-         * @static
-         */
-        MONTH_CTRL : "yui-cal-nav-mc",
-        /**
-         * Class applied to controls with invalid data (e.g. a year input field with invalid an year)
-         * @property YAHOO.widget.CalendarNavigator.CLASSES.INVALID
-         * @type String
-         * @static
-         */
-        INVALID : "yui-invalid",
-        /**
-         * Class applied to default controls
-         * @property YAHOO.widget.CalendarNavigator.CLASSES.DEFAULT
-         * @type String
-         * @static
-         */
-        DEFAULT : "yui-default"
-    };
-
-    /**
-     * Object literal containing the default configuration values for the CalendarNavigator
-     * The configuration object is expected to follow the format below, with the properties being
-     * case sensitive.
-     * <dl>
-     * <dt>strings</dt>
-     * <dd><em>Object</em> :  An object with the properties shown below, defining the string labels to use in the Navigator's UI
-     *     <dl>
-     *         <dt>month</dt><dd><em>String</em> : The string to use for the month label. Defaults to "Month".</dd>
-     *         <dt>year</dt><dd><em>String</em> : The string to use for the year label. Defaults to "Year".</dd>
-     *         <dt>submit</dt><dd><em>String</em> : The string to use for the submit button label. Defaults to "Okay".</dd>
-     *         <dt>cancel</dt><dd><em>String</em> : The string to use for the cancel button label. Defaults to "Cancel".</dd>
-     *         <dt>invalidYear</dt><dd><em>String</em> : The string to use for invalid year values. Defaults to "Year needs to be a number".</dd>
-     *     </dl>
-     * </dd>
-     * <dt>monthFormat</dt><dd><em>String</em> : The month format to use. Either YAHOO.widget.Calendar.LONG, or YAHOO.widget.Calendar.SHORT. Defaults to YAHOO.widget.Calendar.LONG</dd>
-     * <dt>initialFocus</dt><dd><em>String</em> : Either "year" or "month" specifying which input control should get initial focus. Defaults to "year"</dd>
-     * </dl>
-     * @property DEFAULT_CONFIG
-     * @type Object
-     * @static
-     */
-    CN.DEFAULT_CONFIG = {
-        strings : {
-            month: "Month",
-            year: "Year",
-            submit: "Okay",
-            cancel: "Cancel",
-            invalidYear : "Year needs to be a number"
-        },
-        monthFormat: YAHOO.widget.Calendar.LONG,
-        initialFocus: "year"
-    };
-    
-    /**
-     * Object literal containing the default configuration values for the CalendarNavigator
-     * @property _DEFAULT_CFG
-     * @protected
-     * @deprecated Made public. See the public DEFAULT_CONFIG property
-     * @type Object
-     * @static
-     */
-    CN._DEFAULT_CFG = CN.DEFAULT_CONFIG;
-
-
-    /**
-     * The suffix added to the Calendar/CalendarGroup's ID, to generate
-     * a unique ID for the Navigator and it's bounding box.
-     * @property YAHOO.widget.CalendarNavigator.ID_SUFFIX
-     * @static
-     * @type String
-     * @final
-     */
-    CN.ID_SUFFIX = "_nav";
-    /**
-     * The suffix added to the Navigator's ID, to generate
-     * a unique ID for the month control.
-     * @property YAHOO.widget.CalendarNavigator.MONTH_SUFFIX
-     * @static
-     * @type String 
-     * @final
-     */
-    CN.MONTH_SUFFIX = "_month";
-    /**
-     * The suffix added to the Navigator's ID, to generate
-     * a unique ID for the year control.
-     * @property YAHOO.widget.CalendarNavigator.YEAR_SUFFIX
-     * @static
-     * @type String
-     * @final
-     */
-    CN.YEAR_SUFFIX = "_year";
-    /**
-     * The suffix added to the Navigator's ID, to generate
-     * a unique ID for the error bounding box.
-     * @property YAHOO.widget.CalendarNavigator.ERROR_SUFFIX
-     * @static
-     * @type String
-     * @final
-     */
-    CN.ERROR_SUFFIX = "_error";
-    /**
-     * The suffix added to the Navigator's ID, to generate
-     * a unique ID for the "Cancel" button.
-     * @property YAHOO.widget.CalendarNavigator.CANCEL_SUFFIX
-     * @static
-     * @type String
-     * @final
-     */
-    CN.CANCEL_SUFFIX = "_cancel";
-    /**
-     * The suffix added to the Navigator's ID, to generate
-     * a unique ID for the "Submit" button.
-     * @property YAHOO.widget.CalendarNavigator.SUBMIT_SUFFIX
-     * @static
-     * @type String
-     * @final
-     */
-    CN.SUBMIT_SUFFIX = "_submit";
-
-    /**
-     * The number of digits to which the year input control is to be limited.
-     * @property YAHOO.widget.CalendarNavigator.YR_MAX_DIGITS
-     * @static
-     * @type Number
-     */
-    CN.YR_MAX_DIGITS = 4;
-
-    /**
-     * The amount by which to increment the current year value,
-     * when the arrow up/down key is pressed on the year control
-     * @property YAHOO.widget.CalendarNavigator.YR_MINOR_INC
-     * @static
-     * @type Number
-     */
-    CN.YR_MINOR_INC = 1;
-
-    /**
-     * The amount by which to increment the current year value,
-     * when the page up/down key is pressed on the year control
-     * @property YAHOO.widget.CalendarNavigator.YR_MAJOR_INC
-     * @static
-     * @type Number
-     */
-    CN.YR_MAJOR_INC = 10;
-
-    /**
-     * Artificial delay (in ms) between the time the Navigator is hidden
-     * and the Calendar/CalendarGroup state is updated. Allows the user
-     * the see the Calendar/CalendarGroup page changing. If set to 0
-     * the Calendar/CalendarGroup page will be updated instantly
-     * @property YAHOO.widget.CalendarNavigator.UPDATE_DELAY
-     * @static
-     * @type Number
-     */
-    CN.UPDATE_DELAY = 50;
-
-    /**
-     * Regular expression used to validate the year input
-     * @property YAHOO.widget.CalendarNavigator.YR_PATTERN
-     * @static
-     * @type RegExp
-     */
-    CN.YR_PATTERN = /^\d+$/;
-    /**
-     * Regular expression used to trim strings
-     * @property YAHOO.widget.CalendarNavigator.TRIM
-     * @static
-     * @type RegExp
-     */
-    CN.TRIM = /^\s*(.*?)\s*$/;
-})();
-
-YAHOO.widget.CalendarNavigator.prototype = {
-
-    /**
-     * The unique ID for this CalendarNavigator instance
-     * @property id
-     * @type String
-     */
-    id : null,
-
-    /**
-     * The Calendar/CalendarGroup instance to which the navigator belongs
-     * @property cal
-     * @type {Calendar|CalendarGroup}
-     */
-    cal : null,
-
-    /**
-     * Reference to the HTMLElement used to render the navigator's bounding box
-     * @property navEl
-     * @type HTMLElement
-     */
-    navEl : null,
-
-    /**
-     * Reference to the HTMLElement used to render the navigator's mask
-     * @property maskEl
-     * @type HTMLElement
-     */
-    maskEl : null,
-
-    /**
-     * Reference to the HTMLElement used to input the year
-     * @property yearEl
-     * @type HTMLElement
-     */
-    yearEl : null,
-
-    /**
-     * Reference to the HTMLElement used to input the month
-     * @property monthEl
-     * @type HTMLElement
-     */
-    monthEl : null,
-
-    /**
-     * Reference to the HTMLElement used to display validation errors
-     * @property errorEl
-     * @type HTMLElement
-     */
-    errorEl : null,
-
-    /**
-     * Reference to the HTMLElement used to update the Calendar/Calendar group
-     * with the month/year values
-     * @property submitEl
-     * @type HTMLElement
-     */
-    submitEl : null,
-    
-    /**
-     * Reference to the HTMLElement used to hide the navigator without updating the 
-     * Calendar/Calendar group
-     * @property cancelEl
-     * @type HTMLElement
-     */
-    cancelEl : null,
-
-    /** 
-     * Reference to the first focusable control in the navigator (by default monthEl)
-     * @property firstCtrl
-     * @type HTMLElement
-     */
-    firstCtrl : null,
-    
-    /** 
-     * Reference to the last focusable control in the navigator (by default cancelEl)
-     * @property lastCtrl
-     * @type HTMLElement
-     */
-    lastCtrl : null,
-
-    /**
-     * The document containing the Calendar/Calendar group instance
-     * @protected
-     * @property _doc
-     * @type HTMLDocument
-     */
-    _doc : null,
-
-    /**
-     * Internal state property for the current year displayed in the navigator
-     * @protected
-     * @property _year
-     * @type Number
-     */
-    _year: null,
-    
-    /**
-     * Internal state property for the current month index displayed in the navigator
-     * @protected
-     * @property _month
-     * @type Number
-     */
-    _month: 0,
-
-    /**
-     * Private internal state property which indicates whether or not the 
-     * Navigator has been rendered.
-     * @private
-     * @property __rendered
-     * @type Boolean
-     */
-    __rendered: false,
-
-    /**
-     * Init lifecycle method called as part of construction
-     * 
-     * @method init
-     * @param {Calendar} cal The instance of the Calendar or CalendarGroup to which this CalendarNavigator should be attached
-     */
-    init : function(cal) {
-        var calBox = cal.oDomContainer;
-
-        this.cal = cal;
-        this.id = calBox.id + YAHOO.widget.CalendarNavigator.ID_SUFFIX;
-        this._doc = calBox.ownerDocument;
-
-        /**
-         * Private flag, to identify IE Quirks
-         * @private
-         * @property __isIEQuirks
-         */
-        var ie = YAHOO.env.ua.ie;
-        this.__isIEQuirks = (ie && ((ie <= 6) || (this._doc.compatMode == "BackCompat")));
-    },
-
-    /**
-     * Displays the navigator and mask, updating the input controls to reflect the 
-     * currently set month and year. The show method will invoke the render method
-     * if the navigator has not been renderered already, allowing for lazy rendering
-     * of the control.
-     * 
-     * The show method will fire the Calendar/CalendarGroup's beforeShowNav and showNav events
-     * 
-     * @method show
-     */
-    show : function() {
-        var CLASSES = YAHOO.widget.CalendarNavigator.CLASSES;
-
-        if (this.cal.beforeShowNavEvent.fire()) {
-            if (!this.__rendered) {
-                this.render();
-            }
-            this.clearErrors();
-
-            this._updateMonthUI();
-            this._updateYearUI();
-            this._show(this.navEl, true);
-
-            this.setInitialFocus();
-            this.showMask();
-
-            YAHOO.util.Dom.addClass(this.cal.oDomContainer, CLASSES.NAV_VISIBLE);
-            this.cal.showNavEvent.fire();
-        }
-    },
-
-    /**
-     * Hides the navigator and mask
-     * 
-     * The show method will fire the Calendar/CalendarGroup's beforeHideNav event and hideNav events
-     * @method hide
-     */
-    hide : function() {
-        var CLASSES = YAHOO.widget.CalendarNavigator.CLASSES;
-
-        if (this.cal.beforeHideNavEvent.fire()) {
-            this._show(this.navEl, false);
-            this.hideMask();
-            YAHOO.util.Dom.removeClass(this.cal.oDomContainer, CLASSES.NAV_VISIBLE);
-            this.cal.hideNavEvent.fire();
-        }
-    },
-    
-
-    /**
-     * Displays the navigator's mask element
-     * 
-     * @method showMask
-     */
-    showMask : function() {
-        this._show(this.maskEl, true);
-        if (this.__isIEQuirks) {
-            this._syncMask();
-        }
-    },
-
-    /**
-     * Hides the navigator's mask element
-     * 
-     * @method hideMask
-     */
-    hideMask : function() {
-        this._show(this.maskEl, false);
-    },
-
-    /**
-     * Returns the current month set on the navigator
-     * 
-     * Note: This may not be the month set in the UI, if 
-     * the UI contains an invalid value.
-     * 
-     * @method getMonth
-     * @return {Number} The Navigator's current month index
-     */
-    getMonth: function() {
-        return this._month;
-    },
-
-    /**
-     * Returns the current year set on the navigator
-     * 
-     * Note: This may not be the year set in the UI, if 
-     * the UI contains an invalid value.
-     * 
-     * @method getYear
-     * @return {Number} The Navigator's current year value
-     */
-    getYear: function() {
-        return this._year;
-    },
-
-    /**
-     * Sets the current month on the Navigator, and updates the UI
-     * 
-     * @method setMonth
-     * @param {Number} nMonth The month index, from 0 (Jan) through 11 (Dec).
-     */
-    setMonth : function(nMonth) {
-        if (nMonth >= 0 && nMonth < 12) {
-            this._month = nMonth;
-        }
-        this._updateMonthUI();
-    },
-
-    /**
-     * Sets the current year on the Navigator, and updates the UI. If the 
-     * provided year is invalid, it will not be set.
-     * 
-     * @method setYear
-     * @param {Number} nYear The full year value to set the Navigator to.
-     */
-    setYear : function(nYear) {
-        var yrPattern = YAHOO.widget.CalendarNavigator.YR_PATTERN;
-        if (YAHOO.lang.isNumber(nYear) && yrPattern.test(nYear+"")) {
-            this._year = nYear;
-        }
-        this._updateYearUI();
-    },
-
-    /**
-     * Renders the HTML for the navigator, adding it to the 
-     * document and attaches event listeners if it has not 
-     * already been rendered.
-     * 
-     * @method render
-     */
-    render: function() {
-        this.cal.beforeRenderNavEvent.fire();
-        if (!this.__rendered) {
-            this.createNav();
-            this.createMask();
-            this.applyListeners();
-            this.__rendered = true;
-        }
-        this.cal.renderNavEvent.fire();
-    },
-
-    /**
-     * Creates the navigator's containing HTMLElement, it's contents, and appends 
-     * the containg element to the Calendar/CalendarGroup's container.
-     * 
-     * @method createNav
-     */
-    createNav : function() {
-        var NAV = YAHOO.widget.CalendarNavigator;
-        var doc = this._doc;
-
-        var d = doc.createElement("div");
-        d.className = NAV.CLASSES.NAV;
-
-        var htmlBuf = this.renderNavContents([]);
-
-        d.innerHTML = htmlBuf.join('');
-        this.cal.oDomContainer.appendChild(d);
-
-        this.navEl = d;
-
-        this.yearEl = doc.getElementById(this.id + NAV.YEAR_SUFFIX);
-        this.monthEl = doc.getElementById(this.id + NAV.MONTH_SUFFIX);
-        this.errorEl = doc.getElementById(this.id + NAV.ERROR_SUFFIX);
-        this.submitEl = doc.getElementById(this.id + NAV.SUBMIT_SUFFIX);
-        this.cancelEl = doc.getElementById(this.id + NAV.CANCEL_SUFFIX);
-
-        if (YAHOO.env.ua.gecko && this.yearEl && this.yearEl.type == "text") {
-            // Avoid XUL error on focus, select [ https://bugzilla.mozilla.org/show_bug.cgi?id=236791, 
-            // supposedly fixed in 1.8.1, but there are reports of it still being around for methods other than blur ]
-            this.yearEl.setAttribute("autocomplete", "off");
-        }
-
-        this._setFirstLastElements();
-    },
-
-    /**
-     * Creates the Mask HTMLElement and appends it to the Calendar/CalendarGroups
-     * container.
-     * 
-     * @method createMask
-     */
-    createMask : function() {
-        var C = YAHOO.widget.CalendarNavigator.CLASSES;
-
-        var d = this._doc.createElement("div");
-        d.className = C.MASK;
-
-        this.cal.oDomContainer.appendChild(d);
-        this.maskEl = d;
-    },
-
-    /**
-     * Used to set the width/height of the mask in pixels to match the Calendar Container.
-     * Currently only used for IE6 or IE in quirks mode. The other A-Grade browser are handled using CSS (width/height 100%).
-     * <p>
-     * The method is also registered as an HTMLElement resize listener on the Calendars container element.
-     * </p>
-     * @protected
-     * @method _syncMask
-     */
-    _syncMask : function() {
-        var c = this.cal.oDomContainer;
-        if (c && this.maskEl) {
-            var r = YAHOO.util.Dom.getRegion(c);
-            YAHOO.util.Dom.setStyle(this.maskEl, "width", r.right - r.left + "px");
-            YAHOO.util.Dom.setStyle(this.maskEl, "height", r.bottom - r.top + "px");
-        }
-    },
-
-    /**
-     * Renders the contents of the navigator
-     * 
-     * @method renderNavContents
-     * 
-     * @param {Array} html The HTML buffer to append the HTML to.
-     * @return {Array} A reference to the buffer passed in.
-     */
-    renderNavContents : function(html) {
-        var NAV = YAHOO.widget.CalendarNavigator,
-            C = NAV.CLASSES,
-            h = html; // just to use a shorter name
-
-        h[h.length] = '<div class="' + C.MONTH + '">';
-        this.renderMonth(h);
-        h[h.length] = '</div>';
-        h[h.length] = '<div class="' + C.YEAR + '">';
-        this.renderYear(h);
-        h[h.length] = '</div>';
-        h[h.length] = '<div class="' + C.BUTTONS + '">';
-        this.renderButtons(h);
-        h[h.length] = '</div>';
-        h[h.length] = '<div class="' + C.ERROR + '" id="' + this.id + NAV.ERROR_SUFFIX + '"></div>';
-
-        return h;
-    },
-
-    /**
-     * Renders the month label and control for the navigator
-     * 
-     * @method renderNavContents
-     * @param {Array} html The HTML buffer to append the HTML to.
-     * @return {Array} A reference to the buffer passed in.
-     */
-    renderMonth : function(html) {
-        var NAV = YAHOO.widget.CalendarNavigator,
-            C = NAV.CLASSES;
-
-        var id = this.id + NAV.MONTH_SUFFIX,
-            mf = this.__getCfg("monthFormat"),
-            months = this.cal.cfg.getProperty((mf == YAHOO.widget.Calendar.SHORT) ? "MONTHS_SHORT" : "MONTHS_LONG"),
-            h = html;
-
-        if (months && months.length > 0) {
-            h[h.length] = '<label for="' + id + '">';
-            h[h.length] = this.__getCfg("month", true);
-            h[h.length] = '</label>';
-            h[h.length] = '<select name="' + id + '" id="' + id + '" class="' + C.MONTH_CTRL + '">';
-            for (var i = 0; i < months.length; i++) {
-                h[h.length] = '<option value="' + i + '">';
-                h[h.length] = months[i];
-                h[h.length] = '</option>';
-            }
-            h[h.length] = '</select>';
-        }
-        return h;
-    },
-
-    /**
-     * Renders the year label and control for the navigator
-     * 
-     * @method renderYear
-     * @param {Array} html The HTML buffer to append the HTML to.
-     * @return {Array} A reference to the buffer passed in.
-     */
-    renderYear : function(html) {
-        var NAV = YAHOO.widget.CalendarNavigator,
-            C = NAV.CLASSES;
-
-        var id = this.id + NAV.YEAR_SUFFIX,
-            size = NAV.YR_MAX_DIGITS,
-            h = html;
-
-        h[h.length] = '<label for="' + id + '">';
-        h[h.length] = this.__getCfg("year", true);
-        h[h.length] = '</label>';
-        h[h.length] = '<input type="text" name="' + id + '" id="' + id + '" class="' + C.YEAR_CTRL + '" maxlength="' + size + '"/>';
-        return h;
-    },
-
-    /**
-     * Renders the submit/cancel buttons for the navigator
-     * 
-     * @method renderButton
-     * @return {String} The HTML created for the Button UI
-     */
-    renderButtons : function(html) {
-        var C = YAHOO.widget.CalendarNavigator.CLASSES;
-        var h = html;
-
-        h[h.length] = '<span class="' + C.BUTTON + ' ' + C.DEFAULT + '">';
-        h[h.length] = '<button type="button" id="' + this.id + '_submit' + '">';
-        h[h.length] = this.__getCfg("submit", true);
-        h[h.length] = '</button>';
-        h[h.length] = '</span>';
-        h[h.length] = '<span class="' + C.BUTTON +'">';
-        h[h.length] = '<button type="button" id="' + this.id + '_cancel' + '">';
-        h[h.length] = this.__getCfg("cancel", true);
-        h[h.length] = '</button>';
-        h[h.length] = '</span>';
-
-        return h;
-    },
-
-    /**
-     * Attaches DOM event listeners to the rendered elements
-     * <p>
-     * The method will call applyKeyListeners, to setup keyboard specific 
-     * listeners
-     * </p>
-     * @method applyListeners
-     */
-    applyListeners : function() {
-        var E = YAHOO.util.Event;
-
-        function yearUpdateHandler() {
-            if (this.validate()) {
-                this.setYear(this._getYearFromUI());
-            }
-        }
-
-        function monthUpdateHandler() {
-            this.setMonth(this._getMonthFromUI());
-        }
-
-        E.on(this.submitEl, "click", this.submit, this, true);
-        E.on(this.cancelEl, "click", this.cancel, this, true);
-        E.on(this.yearEl, "blur", yearUpdateHandler, this, true);
-        E.on(this.monthEl, "change", monthUpdateHandler, this, true);
-
-        if (this.__isIEQuirks) {
-            YAHOO.util.Event.on(this.cal.oDomContainer, "resize", this._syncMask, this, true);
-        }
-
-        this.applyKeyListeners();
-    },
-
-    /**
-     * Removes/purges DOM event listeners from the rendered elements
-     * 
-     * @method purgeListeners
-     */
-    purgeListeners : function() {
-        var E = YAHOO.util.Event;
-        E.removeListener(this.submitEl, "click", this.submit);
-        E.removeListener(this.cancelEl, "click", this.cancel);
-        E.removeListener(this.yearEl, "blur");
-        E.removeListener(this.monthEl, "change");
-        if (this.__isIEQuirks) {
-            E.removeListener(this.cal.oDomContainer, "resize", this._syncMask);
-        }
-
-        this.purgeKeyListeners();
-    },
-
-    /**
-     * Attaches DOM listeners for keyboard support. 
-     * Tab/Shift-Tab looping, Enter Key Submit on Year element,
-     * Up/Down/PgUp/PgDown year increment on Year element
-     * <p>
-     * NOTE: MacOSX Safari 2.x doesn't let you tab to buttons and 
-     * MacOSX Gecko does not let you tab to buttons or select controls,
-     * so for these browsers, Tab/Shift-Tab looping is limited to the 
-     * elements which can be reached using the tab key.
-     * </p>
-     * @method applyKeyListeners
-     */
-    applyKeyListeners : function() {
-        var E = YAHOO.util.Event,
-            ua = YAHOO.env.ua;
-
-        // IE/Safari 3.1 doesn't fire keypress for arrow/pg keys (non-char keys)
-        var arrowEvt = (ua.ie || ua.webkit) ? "keydown" : "keypress";
-
-        // - IE/Safari 3.1 doesn't fire keypress for non-char keys
-        // - Opera doesn't allow us to cancel keydown or keypress for tab, but 
-        //   changes focus successfully on keydown (keypress is too late to change focus - opera's already moved on).
-        var tabEvt = (ua.ie || ua.opera || ua.webkit) ? "keydown" : "keypress";
-
-        // Everyone likes keypress for Enter (char keys) - whoo hoo!
-        E.on(this.yearEl, "keypress", this._handleEnterKey, this, true);
-
-        E.on(this.yearEl, arrowEvt, this._handleDirectionKeys, this, true);
-        E.on(this.lastCtrl, tabEvt, this._handleTabKey, this, true);
-        E.on(this.firstCtrl, tabEvt, this._handleShiftTabKey, this, true);
-    },
-
-    /**
-     * Removes/purges DOM listeners for keyboard support
-     *
-     * @method purgeKeyListeners
-     */
-    purgeKeyListeners : function() {
-        var E = YAHOO.util.Event,
-            ua = YAHOO.env.ua;
-
-        var arrowEvt = (ua.ie || ua.webkit) ? "keydown" : "keypress";
-        var tabEvt = (ua.ie || ua.opera || ua.webkit) ? "keydown" : "keypress";
-
-        E.removeListener(this.yearEl, "keypress", this._handleEnterKey);
-        E.removeListener(this.yearEl, arrowEvt, this._handleDirectionKeys);
-        E.removeListener(this.lastCtrl, tabEvt, this._handleTabKey);
-        E.removeListener(this.firstCtrl, tabEvt, this._handleShiftTabKey);
-    },
-
-    /**
-     * Updates the Calendar/CalendarGroup's pagedate with the currently set month and year if valid.
-     * <p>
-     * If the currently set month/year is invalid, a validation error will be displayed and the 
-     * Calendar/CalendarGroup's pagedate will not be updated.
-     * </p>
-     * @method submit
-     */
-    submit : function() {
-        if (this.validate()) {
-            this.hide();
-
-            this.setMonth(this._getMonthFromUI());
-            this.setYear(this._getYearFromUI());
-
-            var cal = this.cal;
-
-            // Artificial delay, just to help the user see something changed
-            var delay = YAHOO.widget.CalendarNavigator.UPDATE_DELAY;
-            if (delay > 0) {
-                var nav = this;
-                window.setTimeout(function(){ nav._update(cal); }, delay);
-            } else {
-                this._update(cal);
-            }
-        }
-    },
-
-    /**
-     * Updates the Calendar rendered state, based on the state of the CalendarNavigator
-     * @method _update
-     * @param cal The Calendar instance to update
-     * @protected
-     */
-    _update : function(cal) {
-        var date = YAHOO.widget.DateMath.getDate(this.getYear() - cal.cfg.getProperty("YEAR_OFFSET"), this.getMonth(), 1);
-        cal.cfg.setProperty("pagedate", date);
-        cal.render();
-    },
-
-    /**
-     * Hides the navigator and mask, without updating the Calendar/CalendarGroup's state
-     * 
-     * @method cancel
-     */
-    cancel : function() {
-        this.hide();
-    },
-
-    /**
-     * Validates the current state of the UI controls
-     * 
-     * @method validate
-     * @return {Boolean} true, if the current UI state contains valid values, false if not
-     */
-    validate : function() {
-        if (this._getYearFromUI() !== null) {
-            this.clearErrors();
-            return true;
-        } else {
-            this.setYearError();
-            this.setError(this.__getCfg("invalidYear", true));
-            return false;
-        }
-    },
-
-    /**
-     * Displays an error message in the Navigator's error panel
-     * @method setError
-     * @param {String} msg The error message to display
-     */
-    setError : function(msg) {
-        if (this.errorEl) {
-            this.errorEl.innerHTML = msg;
-            this._show(this.errorEl, true);
-        }
-    },
-
-    /**
-     * Clears the navigator's error message and hides the error panel
-     * @method clearError 
-     */
-    clearError : function() {
-        if (this.errorEl) {
-            this.errorEl.innerHTML = "";
-            this._show(this.errorEl, false);
-        }
-    },
-
-    /**
-     * Displays the validation error UI for the year control
-     * @method setYearError
-     */
-    setYearError : function() {
-        YAHOO.util.Dom.addClass(this.yearEl, YAHOO.widget.CalendarNavigator.CLASSES.INVALID);
-    },
-
-    /**
-     * Removes the validation error UI for the year control
-     * @method clearYearError
-     */
-    clearYearError : function() {
-        YAHOO.util.Dom.removeClass(this.yearEl, YAHOO.widget.CalendarNavigator.CLASSES.INVALID);
-    },
-
-    /**
-     * Clears all validation and error messages in the UI
-     * @method clearErrors
-     */
-    clearErrors : function() {
-        this.clearError();
-        this.clearYearError();
-    },
-
-    /**
-     * Sets the initial focus, based on the configured value
-     * @method setInitialFocus
-     */
-    setInitialFocus : function() {
-        var el = this.submitEl,
-            f = this.__getCfg("initialFocus");
-
-        if (f && f.toLowerCase) {
-            f = f.toLowerCase();
-            if (f == "year") {
-                el = this.yearEl;
-                try {
-                    this.yearEl.select();
-                } catch (selErr) {
-                    // Ignore;
-                }
-            } else if (f == "month") {
-                el = this.monthEl;
-            }
-        }
-
-        if (el && YAHOO.lang.isFunction(el.focus)) {
-            try {
-                el.focus();
-            } catch (focusErr) {
-                // TODO: Fall back if focus fails?
-            }
-        }
-    },
-
-    /**
-     * Removes all renderered HTML elements for the Navigator from
-     * the DOM, purges event listeners and clears (nulls) any property
-     * references to HTML references
-     * @method erase
-     */
-    erase : function() {
-        if (this.__rendered) {
-            this.purgeListeners();
-
-            // Clear out innerHTML references
-            this.yearEl = null;
-            this.monthEl = null;
-            this.errorEl = null;
-            this.submitEl = null;
-            this.cancelEl = null;
-            this.firstCtrl = null;
-            this.lastCtrl = null;
-            if (this.navEl) {
-                this.navEl.innerHTML = "";
-            }
-
-            var p = this.navEl.parentNode;
-            if (p) {
-                p.removeChild(this.navEl);
-            }
-            this.navEl = null;
-
-            var pm = this.maskEl.parentNode;
-            if (pm) {
-                pm.removeChild(this.maskEl);
-            }
-            this.maskEl = null;
-            this.__rendered = false;
-        }
-    },
-
-    /**
-     * Destroys the Navigator object and any HTML references
-     * @method destroy
-     */
-    destroy : function() {
-        this.erase();
-        this._doc = null;
-        this.cal = null;
-        this.id = null;
-    },
-
-    /**
-     * Protected implementation to handle how UI elements are 
-     * hidden/shown.
-     *
-     * @method _show
-     * @protected
-     */
-    _show : function(el, bShow) {
-        if (el) {
-            YAHOO.util.Dom.setStyle(el, "display", (bShow) ? "block" : "none");
-        }
-    },
-
-    /**
-     * Returns the month value (index), from the month UI element
-     * @protected
-     * @method _getMonthFromUI
-     * @return {Number} The month index, or 0 if a UI element for the month
-     * is not found
-     */
-    _getMonthFromUI : function() {
-        if (this.monthEl) {
-            return this.monthEl.selectedIndex;
-        } else {
-            return 0; // Default to Jan
-        }
-    },
-
-    /**
-     * Returns the year value, from the Navitator's year UI element
-     * @protected
-     * @method _getYearFromUI
-     * @return {Number} The year value set in the UI, if valid. null is returned if 
-     * the UI does not contain a valid year value.
-     */
-    _getYearFromUI : function() {
-        var NAV = YAHOO.widget.CalendarNavigator;
-
-        var yr = null;
-        if (this.yearEl) {
-            var value = this.yearEl.value;
-            value = value.replace(NAV.TRIM, "$1");
-
-            if (NAV.YR_PATTERN.test(value)) {
-                yr = parseInt(value, 10);
-            }
-        }
-        return yr;
-    },
-
-    /**
-     * Updates the Navigator's year UI, based on the year value set on the Navigator object
-     * @protected
-     * @method _updateYearUI
-     */
-    _updateYearUI : function() {
-        if (this.yearEl && this._year !== null) {
-            this.yearEl.value = this._year;
-        }
-    },
-
-    /**
-     * Updates the Navigator's month UI, based on the month value set on the Navigator object
-     * @protected
-     * @method _updateMonthUI
-     */
-    _updateMonthUI : function() {
-        if (this.monthEl) {
-            this.monthEl.selectedIndex = this._month;
-        }
-    },
-
-    /**
-     * Sets up references to the first and last focusable element in the Navigator's UI
-     * in terms of tab order (Naviagator's firstEl and lastEl properties). The references
-     * are used to control modality by looping around from the first to the last control
-     * and visa versa for tab/shift-tab navigation.
-     * <p>
-     * See <a href="#applyKeyListeners">applyKeyListeners</a>
-     * </p>
-     * @protected
-     * @method _setFirstLastElements
-     */
-    _setFirstLastElements : function() {
-        this.firstCtrl = this.monthEl;
-        this.lastCtrl = this.cancelEl;
-
-        // Special handling for MacOSX.
-        // - Safari 2.x can't focus on buttons
-        // - Gecko can't focus on select boxes or buttons
-        if (this.__isMac) {
-            if (YAHOO.env.ua.webkit && YAHOO.env.ua.webkit < 420){
-                this.firstCtrl = this.monthEl;
-                this.lastCtrl = this.yearEl;
-            }
-            if (YAHOO.env.ua.gecko) {
-                this.firstCtrl = this.yearEl;
-                this.lastCtrl = this.yearEl;
-            }
-        }
-    },
-
-    /**
-     * Default Keyboard event handler to capture Enter 
-     * on the Navigator's year control (yearEl)
-     * 
-     * @method _handleEnterKey
-     * @protected
-     * @param {Event} e The DOM event being handled
-     */
-    _handleEnterKey : function(e) {
-        var KEYS = YAHOO.util.KeyListener.KEY;
-
-        if (YAHOO.util.Event.getCharCode(e) == KEYS.ENTER) {
-            YAHOO.util.Event.preventDefault(e);
-            this.submit();
-        }
-    },
-
-    /**
-     * Default Keyboard event handler to capture up/down/pgup/pgdown
-     * on the Navigator's year control (yearEl).
-     * 
-     * @method _handleDirectionKeys
-     * @protected
-     * @param {Event} e The DOM event being handled
-     */
-    _handleDirectionKeys : function(e) {
-        var E = YAHOO.util.Event,
-            KEYS = YAHOO.util.KeyListener.KEY,
-            NAV = YAHOO.widget.CalendarNavigator;
-
-        var value = (this.yearEl.value) ? parseInt(this.yearEl.value, 10) : null;
-        if (isFinite(value)) {
-            var dir = false;
-            switch(E.getCharCode(e)) {
-                case KEYS.UP:
-                    this.yearEl.value = value + NAV.YR_MINOR_INC;
-                    dir = true;
-                    break;
-                case KEYS.DOWN:
-                    this.yearEl.value = Math.max(value - NAV.YR_MINOR_INC, 0);
-                    dir = true;
-                    break;
-                case KEYS.PAGE_UP:
-                    this.yearEl.value = value + NAV.YR_MAJOR_INC;
-                    dir = true;
-                    break;
-                case KEYS.PAGE_DOWN:
-                    this.yearEl.value = Math.max(value - NAV.YR_MAJOR_INC, 0);
-                    dir = true;
-                    break;
-                default:
-                    break;
-            }
-            if (dir) {
-                E.preventDefault(e);
-                try {
-                    this.yearEl.select();
-                } catch(err) {
-                    // Ignore
-                }
-            }
-        }
-    },
-
-    /**
-     * Default Keyboard event handler to capture Tab 
-     * on the last control (lastCtrl) in the Navigator.
-     * 
-     * @method _handleTabKey
-     * @protected
-     * @param {Event} e The DOM event being handled
-     */
-    _handleTabKey : function(e) {
-        var E = YAHOO.util.Event,
-            KEYS = YAHOO.util.KeyListener.KEY;
-
-        if (E.getCharCode(e) == KEYS.TAB && !e.shiftKey) {
-            try {
-                E.preventDefault(e);
-                this.firstCtrl.focus();
-            } catch (err) {
-                // Ignore - mainly for focus edge cases
-            }
-        }
-    },
-
-    /**
-     * Default Keyboard event handler to capture Shift-Tab 
-     * on the first control (firstCtrl) in the Navigator.
-     * 
-     * @method _handleShiftTabKey
-     * @protected
-     * @param {Event} e The DOM event being handled
-     */
-    _handleShiftTabKey : function(e) {
-        var E = YAHOO.util.Event,
-            KEYS = YAHOO.util.KeyListener.KEY;
-
-        if (e.shiftKey && E.getCharCode(e) == KEYS.TAB) {
-            try {
-                E.preventDefault(e);
-                this.lastCtrl.focus();
-            } catch (err) {
-                // Ignore - mainly for focus edge cases
-            }
-        }
-    },
-
-    /**
-     * Retrieve Navigator configuration values from 
-     * the parent Calendar/CalendarGroup's config value.
-     * <p>
-     * If it has not been set in the user provided configuration, the method will 
-     * return the default value of the configuration property, as set in DEFAULT_CONFIG
-     * </p>
-     * @private
-     * @method __getCfg
-     * @param {String} Case sensitive property name.
-     * @param {Boolean} true, if the property is a string property, false if not.
-     * @return The value of the configuration property
-     */
-    __getCfg : function(prop, bIsStr) {
-        var DEF_CFG = YAHOO.widget.CalendarNavigator.DEFAULT_CONFIG;
-        var cfg = this.cal.cfg.getProperty("navigator");
-
-        if (bIsStr) {
-            return (cfg !== true && cfg.strings && cfg.strings[prop]) ? cfg.strings[prop] : DEF_CFG.strings[prop];
-        } else {
-            return (cfg !== true && cfg[prop]) ? cfg[prop] : DEF_CFG[prop];
-        }
-    },
-
-    /**
-     * Private flag, to identify MacOS
-     * @private
-     * @property __isMac
-     */
-    __isMac : (navigator.userAgent.toLowerCase().indexOf("macintosh") != -1)
-
-};
-YAHOO.register("calendar", YAHOO.widget.Calendar, {version: "2.8.0r4", build: "2449"});
diff --git a/koha-tmpl/intranet-tmpl/prog/en/lib/yui/carousel/assets/ajax-loader.gif b/koha-tmpl/intranet-tmpl/prog/en/lib/yui/carousel/assets/ajax-loader.gif
deleted file mode 100644 (file)
index fe2cd23..0000000
Binary files a/koha-tmpl/intranet-tmpl/prog/en/lib/yui/carousel/assets/ajax-loader.gif and /dev/null differ
diff --git a/koha-tmpl/intranet-tmpl/prog/en/lib/yui/carousel/assets/carousel-core.css b/koha-tmpl/intranet-tmpl/prog/en/lib/yui/carousel/assets/carousel-core.css
deleted file mode 100644 (file)
index 444c21f..0000000
+++ /dev/null
@@ -1,88 +0,0 @@
-/*
-Copyright (c) 2009, Yahoo! Inc. All rights reserved.
-Code licensed under the BSD License:
-http://developer.yahoo.net/yui/license.txt
-version: 2.8.0r4
-*/
-.yui-carousel {
-    visibility: hidden;
-    overflow: hidden;
-    position: relative;
-    text-align: left;
-    zoom: 1;
-}
-.yui-carousel.yui-carousel-visible {
-    visibility: visible;
-}
-.yui-carousel-content {
-    overflow: hidden;
-    position: relative;
-    text-align:center;
-}
-.yui-carousel-element li {
-    border: 1px solid #ccc;
-    list-style: none;
-    margin: 1px; 
-    overflow: hidden;
-    padding: 0;
-    position: absolute;
-    text-align: center;
-}
-
-.yui-carousel-vertical .yui-carousel-element li {
-    display: block;
-    float: none;
-}
-.yui-log .carousel {
-    background: #f2e886;
-}
-.yui-carousel-nav {
-    zoom: 1;
-}
-.yui-carousel-nav:after {
-    content: ".";
-    display: block;
-    height: 0;
-    clear: both;
-    visibility: hidden;    
-}
-.yui-carousel-button-focus {
-    outline: 1px dotted #000;
-}
-
-.yui-carousel-min-width {
-    min-width: 115px;
-}
-
-.yui-carousel-element   {
-    overflow: hidden;
-    position:relative;
-       margin: 0 auto;
-    padding:0;
-    text-align:left;
-    *margin:0;
-}
-
-.yui-carousel-horizontal .yui-carousel-element {
-    width: 320000px;
-}
-
-.yui-carousel-vertical .yui-carousel-element {
-    height:320000px;
-}
-
-.yui-skin-sam .yui-carousel-nav select {
-    position:static;
-}
-
-.yui-carousel .yui-carousel-item-selected {
-    border: 1px dashed #000;
-    margin: 1px;
-}
\ No newline at end of file
diff --git a/koha-tmpl/intranet-tmpl/prog/en/lib/yui/carousel/assets/skins/sam/ajax-loader.gif b/koha-tmpl/intranet-tmpl/prog/en/lib/yui/carousel/assets/skins/sam/ajax-loader.gif
deleted file mode 100644 (file)
index fe2cd23..0000000
Binary files a/koha-tmpl/intranet-tmpl/prog/en/lib/yui/carousel/assets/skins/sam/ajax-loader.gif and /dev/null differ
diff --git a/koha-tmpl/intranet-tmpl/prog/en/lib/yui/carousel/assets/skins/sam/carousel-skin.css b/koha-tmpl/intranet-tmpl/prog/en/lib/yui/carousel/assets/skins/sam/carousel-skin.css
deleted file mode 100644 (file)
index efa48eb..0000000
+++ /dev/null
@@ -1,142 +0,0 @@
-/*
-Copyright (c) 2009, Yahoo! Inc. All rights reserved.
-Code licensed under the BSD License:
-http://developer.yahoo.net/yui/license.txt
-version: 2.8.0r4
-*/
-.yui-skin-sam .yui-carousel,
-.yui-skin-sam .yui-carousel-vertical {
-    border: 1px solid #808080;
-}
-
-.yui-skin-sam .yui-carousel-nav {
-    background: url(../../../../assets/skins/sam/sprite.png) repeat-x 0 0;
-    padding: 3px;
-    text-align: right;
-}
-
-.yui-skin-sam .yui-carousel-button {
-    background: url(../../../../assets/skins/sam/sprite.png) no-repeat 0 -600px;
-    float: right;
-    height: 19px;
-    margin: 5px;
-    overflow: hidden;
-    width: 40px;
-}
-
-.yui-skin-sam .yui-carousel-vertical .yui-carousel-button {
-    background-position: 0 -800px;
-}
-
-.yui-skin-sam .yui-carousel-button-disabled {
-    background-position: 0 -2000px;
-}
-
-.yui-skin-sam .yui-carousel-vertical .yui-carousel-button-disabled {
-    background-position: 0 -2100px;
-}
-
-.yui-skin-sam .yui-carousel-button input,
-.yui-skin-sam .yui-carousel-button button {
-    background-color: transparent;
-    border: 0;
-    cursor: pointer;
-    display: block;
-    height: 44px;
-    margin: -2px 0 0 -2px;
-    padding: 0 0 0 50px;
-}
-
-.yui-skin-sam span.yui-carousel-first-button {
-    background-position: 0px -550px;
-    margin-left: -100px;
-    margin-right: 50px;
-   *margin: 5px 5px 5px -90px;
-}
-
-.yui-skin-sam .yui-carousel-vertical span.yui-carousel-first-button {
-    background-position: 0px -750px;
-}
-
-.yui-skin-sam span.yui-carousel-first-button-disabled {
-    background-position: 0 -1950px;
-}
-
-.yui-skin-sam .yui-carousel-vertical span.yui-carousel-first-button-disabled {
-    background-position: 0 -2050px;
-}
-
-.yui-skin-sam .yui-carousel-nav ul {
-    float: right;
-    height: 19px;
-    margin: 0;
-    margin-left: -220px;
-    margin-right: 100px;
-   *margin-left: -160px;
-   *margin-right: 0;
-    padding: 0;
-}
-
-.yui-skin-sam .yui-carousel-min-width .yui-carousel-nav ul {
-    *margin-left: -170px;
-}
-
-.yui-skin-sam .yui-carousel-nav select {
-    position: relative;
-   *right: 50px;
-    top: 4px;
-}
-
-.yui-skin-sam .yui-carousel-vertical .yui-carousel-nav select {
-    position: static;
-}
-
-.yui-skin-sam .yui-carousel-vertical .yui-carousel-nav ul,
-.yui-skin-sam .yui-carousel-vertical .yui-carousel-nav select {
-    float: none;
-    margin: 0;
-   *zoom: 1;
-}
-
-.yui-skin-sam .yui-carousel-nav ul li {
-    background: url(../../../../assets/skins/sam/sprite.png) no-repeat 0 -650px;
-    cursor: pointer;
-    float: left;
-    height: 9px;
-    list-style: none;
-    margin: 10px 0 0 5px;
-    overflow: hidden;
-    padding: 0;
-    width: 9px;
-}
-
-.yui-skin-sam .yui-carousel-nav ul:after {
-    content: ".";
-    display: block;
-    height: 0;
-    clear: both;
-    visibility: hidden;
-}
-
-.yui-skin-sam .yui-carousel-nav ul li a {
-    display:block;
-    width: 100%;
-    height: 100%;
-    text-indent: -10000px;
-    text-align:left;
-    overflow:hidden;
-}
-
-.yui-skin-sam .yui-carousel-nav ul li.yui-carousel-nav-page-focus {
-    outline: 1px dotted #000;
-}
-
-.yui-skin-sam .yui-carousel-nav ul li.yui-carousel-nav-page-selected {
-    background-position: 0 -700px;
-}
-
-.yui-skin-sam .yui-carousel-item-loading {
-    background: url(ajax-loader.gif) no-repeat 50% 50%;
-    position: absolute;
-    text-indent: -150px;
-}
diff --git a/koha-tmpl/intranet-tmpl/prog/en/lib/yui/carousel/assets/skins/sam/carousel.css b/koha-tmpl/intranet-tmpl/prog/en/lib/yui/carousel/assets/skins/sam/carousel.css
deleted file mode 100644 (file)
index 8dbb121..0000000
+++ /dev/null
@@ -1,7 +0,0 @@
-/*
-Copyright (c) 2009, Yahoo! Inc. All rights reserved.
-Code licensed under the BSD License:
-http://developer.yahoo.net/yui/license.txt
-version: 2.8.0r4
-*/
-.yui-carousel{visibility:hidden;overflow:hidden;position:relative;text-align:left;zoom:1;}.yui-carousel.yui-carousel-visible{visibility:visible;}.yui-carousel-content{overflow:hidden;position:relative;text-align:center;}.yui-carousel-element li{border:1px solid #ccc;list-style:none;margin:1px;overflow:hidden;padding:0;position:absolute;text-align:center;}.yui-carousel-vertical .yui-carousel-element li{display:block;float:none;}.yui-log .carousel{background:#f2e886;}.yui-carousel-nav{zoom:1;}.yui-carousel-nav:after{content:".";display:block;height:0;clear:both;visibility:hidden;}.yui-carousel-button-focus{outline:1px dotted #000;}.yui-carousel-min-width{min-width:115px;}.yui-carousel-element{overflow:hidden;position:relative;margin:0 auto;padding:0;text-align:left;*margin:0;}.yui-carousel-horizontal .yui-carousel-element{width:320000px;}.yui-carousel-vertical .yui-carousel-element{height:320000px;}.yui-skin-sam .yui-carousel-nav select{position:static;}.yui-carousel .yui-carousel-item-selected{border:1px dashed #000;margin:1px;}.yui-skin-sam .yui-carousel,.yui-skin-sam .yui-carousel-vertical{border:1px solid #808080;}.yui-skin-sam .yui-carousel-nav{background:url(../../../../assets/skins/sam/sprite.png) repeat-x 0 0;padding:3px;text-align:right;}.yui-skin-sam .yui-carousel-button{background:url(../../../../assets/skins/sam/sprite.png) no-repeat 0 -600px;float:right;height:19px;margin:5px;overflow:hidden;width:40px;}.yui-skin-sam .yui-carousel-vertical .yui-carousel-button{background-position:0 -800px;}.yui-skin-sam .yui-carousel-button-disabled{background-position:0 -2000px;}.yui-skin-sam .yui-carousel-vertical .yui-carousel-button-disabled{background-position:0 -2100px;}.yui-skin-sam .yui-carousel-button input,.yui-skin-sam .yui-carousel-button button{background-color:transparent;border:0;cursor:pointer;display:block;height:44px;margin:-2px 0 0 -2px;padding:0 0 0 50px;}.yui-skin-sam span.yui-carousel-first-button{background-position:0 -550px;margin-left:-100px;margin-right:50px;*margin:5px 5px 5px -90px;}.yui-skin-sam .yui-carousel-vertical span.yui-carousel-first-button{background-position:0 -750px;}.yui-skin-sam span.yui-carousel-first-button-disabled{background-position:0 -1950px;}.yui-skin-sam .yui-carousel-vertical span.yui-carousel-first-button-disabled{background-position:0 -2050px;}.yui-skin-sam .yui-carousel-nav ul{float:right;height:19px;margin:0;margin-left:-220px;margin-right:100px;*margin-left:-160px;*margin-right:0;padding:0;}.yui-skin-sam .yui-carousel-min-width .yui-carousel-nav ul{*margin-left:-170px;}.yui-skin-sam .yui-carousel-nav select{position:relative;*right:50px;top:4px;}.yui-skin-sam .yui-carousel-vertical .yui-carousel-nav select{position:static;}.yui-skin-sam .yui-carousel-vertical .yui-carousel-nav ul,.yui-skin-sam .yui-carousel-vertical .yui-carousel-nav select{float:none;margin:0;*zoom:1;}.yui-skin-sam .yui-carousel-nav ul li{background:url(../../../../assets/skins/sam/sprite.png) no-repeat 0 -650px;cursor:pointer;float:left;height:9px;list-style:none;margin:10px 0 0 5px;overflow:hidden;padding:0;width:9px;}.yui-skin-sam .yui-carousel-nav ul:after{content:".";display:block;height:0;clear:both;visibility:hidden;}.yui-skin-sam .yui-carousel-nav ul li a{display:block;width:100%;height:100%;text-indent:-10000px;text-align:left;overflow:hidden;}.yui-skin-sam .yui-carousel-nav ul li.yui-carousel-nav-page-focus{outline:1px dotted #000;}.yui-skin-sam .yui-carousel-nav ul li.yui-carousel-nav-page-selected{background-position:0 -700px;}.yui-skin-sam .yui-carousel-item-loading{background:url(ajax-loader.gif) no-repeat 50% 50%;position:absolute;text-indent:-150px;}
diff --git a/koha-tmpl/intranet-tmpl/prog/en/lib/yui/carousel/carousel-debug.js b/koha-tmpl/intranet-tmpl/prog/en/lib/yui/carousel/carousel-debug.js
deleted file mode 100644 (file)
index 63dcba8..0000000
+++ /dev/null
@@ -1,4390 +0,0 @@
-/*
-Copyright (c) 2009, Yahoo! Inc. All rights reserved.
-Code licensed under the BSD License:
-http://developer.yahoo.net/yui/license.txt
-version: 2.8.0r4
-*/
-/**
- * The Carousel module provides a widget for browsing among a set of like
- * objects represented pictorially.
- *
- * @module carousel
- * @requires yahoo, dom, event, element
- * @optional animation
- * @namespace YAHOO.widget
- * @title Carousel Widget
- * @beta
- */
-(function () {
-
-    var WidgetName;             // forward declaration
-
-    /**
-     * The Carousel widget.
-     *
-     * @class Carousel
-     * @extends YAHOO.util.Element
-     * @constructor
-     * @param el {HTMLElement | String} The HTML element that represents the
-     * the container that houses the Carousel.
-     * @param cfg {Object} (optional) The configuration values
-     */
-    YAHOO.widget.Carousel = function (el, cfg) {
-        YAHOO.log("Component creation", WidgetName);
-
-        YAHOO.widget.Carousel.superclass.constructor.call(this, el, cfg);
-    };
-
-    /*
-     * Private variables of the Carousel component
-     */
-
-    /* Some abbreviations to avoid lengthy typing and lookups. */
-    var Carousel    = YAHOO.widget.Carousel,
-        Dom         = YAHOO.util.Dom,
-        Event       = YAHOO.util.Event,
-        JS          = YAHOO.lang;
-
-    /**
-     * The widget name.
-     * @private
-     * @static
-     */
-    WidgetName = "Carousel";
-
-    /**
-     * The internal table of Carousel instances.
-     * @private
-     * @static
-     */
-    var instances = {},
-
-    /*
-     * Custom events of the Carousel component
-     */
-
-    /**
-     * @event afterScroll
-     * @description Fires when the Carousel has scrolled to the previous or
-     * next page.  Passes back the index of the first and last visible items in
-     * the Carousel.  See
-     * <a href="YAHOO.util.Element.html#addListener">Element.addListener</a>
-     * for more information on listening for this event.
-     * @type YAHOO.util.CustomEvent
-     */
-    afterScrollEvent = "afterScroll",
-
-    /**
-     * @event allItemsRemovedEvent
-     * @description Fires when all items have been removed from the Carousel.
-     * See
-     * <a href="YAHOO.util.Element.html#addListener">Element.addListener</a>
-     * for more information on listening for this event.
-     * @type YAHOO.util.CustomEvent
-     */
-    allItemsRemovedEvent = "allItemsRemoved",
-
-    /**
-     * @event beforeHide
-     * @description Fires before the Carousel is hidden.  See
-     * <a href="YAHOO.util.Element.html#addListener">Element.addListener</a>
-     * for more information on listening for this event.
-     * @type YAHOO.util.CustomEvent
-     */
-    beforeHideEvent = "beforeHide",
-
-    /**
-     * @event beforePageChange
-     * @description Fires when the Carousel is about to scroll to the previous
-     * or next page.  Passes back the page number of the current page.  Note
-     * that the first page number is zero.  See
-     * <a href="YAHOO.util.Element.html#addListener">Element.addListener</a>
-     * for more information on listening for this event.
-     * @type YAHOO.util.CustomEvent
-     */
-    beforePageChangeEvent = "beforePageChange",
-
-    /**
-     * @event beforeScroll
-     * @description Fires when the Carousel is about to scroll to the previous
-     * or next page.  Passes back the index of the first and last visible items
-     * in the Carousel and the direction (backward/forward) of the scroll.  See
-     * <a href="YAHOO.util.Element.html#addListener">Element.addListener</a>
-     * for more information on listening for this event.
-     * @type YAHOO.util.CustomEvent
-     */
-    beforeScrollEvent = "beforeScroll",
-
-    /**
-     * @event beforeShow
-     * @description Fires when the Carousel is about to be shown.  See
-     * <a href="YAHOO.util.Element.html#addListener">Element.addListener</a>
-     * for more information on listening for this event.
-     * @type YAHOO.util.CustomEvent
-     */
-    beforeShowEvent = "beforeShow",
-
-    /**
-     * @event blur
-     * @description Fires when the Carousel loses focus.  See
-     * <a href="YAHOO.util.Element.html#addListener">Element.addListener</a>
-     * for more information on listening for this event.
-     * @type YAHOO.util.CustomEvent
-     */
-    blurEvent = "blur",
-
-    /**
-     * @event focus
-     * @description Fires when the Carousel gains focus.  See
-     * <a href="YAHOO.util.Element.html#addListener">Element.addListener</a>
-     * for more information on listening for this event.
-     * @type YAHOO.util.CustomEvent
-     */
-    focusEvent = "focus",
-
-    /**
-     * @event hide
-     * @description Fires when the Carousel is hidden.  See
-     * <a href="YAHOO.util.Element.html#addListener">Element.addListener</a>
-     * for more information on listening for this event.
-     * @type YAHOO.util.CustomEvent
-     */
-    hideEvent = "hide",
-
-    /**
-     * @event itemAdded
-     * @description Fires when an item has been added to the Carousel.  Passes
-     * back the content of the item that would be added, the index at which the
-     * item would be added, and the event itself.  See
-     * <a href="YAHOO.util.Element.html#addListener">Element.addListener</a>
-     * for more information on listening for this event.
-     * @type YAHOO.util.CustomEvent
-     */
-    itemAddedEvent = "itemAdded",
-
-    /**
-     * @event itemRemoved
-     * @description Fires when an item has been removed from the Carousel.
-     * Passes back the content of the item that would be removed, the index
-     * from which the item would be removed, and the event itself.  See
-     * <a href="YAHOO.util.Element.html#addListener">Element.addListener</a>
-     * for more information on listening for this event.
-     * @type YAHOO.util.CustomEvent
-     */
-    itemRemovedEvent = "itemRemoved",
-
-    /**
-     * @event itemReplaced
-     * @description Fires when an item has been replaced in the Carousel.
-     * Passes back the content of the item that was replaced, the content
-     * of the new item, the index where the replacement occurred, and the event
-     * itself.  See
-     * <a href="YAHOO.util.Element.html#addListener">Element.addListener</a>
-     * for more information on listening for this event.
-     * @type YAHOO.util.CustomEvent
-     */
-    itemReplacedEvent = "itemReplaced",
-
-    /**
-     * @event itemSelected
-     * @description Fires when an item has been selected in the Carousel.
-     * Passes back the index of the selected item in the Carousel.  Note, that
-     * the index begins from zero.  See
-     * <a href="YAHOO.util.Element.html#addListener">Element.addListener</a>
-     * for more information on listening for this event.
-     * @type YAHOO.util.CustomEvent
-     */
-    itemSelectedEvent = "itemSelected",
-
-    /**
-     * @event loadItems
-     * @description Fires when the Carousel needs more items to be loaded for
-     * displaying them.  Passes back the first and last visible items in the
-     * Carousel, and the number of items needed to be loaded.  See
-     * <a href="YAHOO.util.Element.html#addListener">Element.addListener</a>
-     * for more information on listening for this event.
-     * @type YAHOO.util.CustomEvent
-     */
-    loadItemsEvent = "loadItems",
-
-    /**
-     * @event navigationStateChange
-     * @description Fires when the state of either one of the navigation
-     * buttons are changed from enabled to disabled or vice versa.  Passes back
-     * the state (true/false) of the previous and next buttons.  The value true
-     * signifies the button is enabled, false signifies disabled.  See
-     * <a href="YAHOO.util.Element.html#addListener">Element.addListener</a>
-     * for more information on listening for this event.
-     * @type YAHOO.util.CustomEvent
-     */
-    navigationStateChangeEvent = "navigationStateChange",
-
-    /**
-     * @event pageChange
-     * @description Fires after the Carousel has scrolled to the previous or
-     * next page.  Passes back the page number of the current page.  Note
-     * that the first page number is zero.  See
-     * <a href="YAHOO.util.Element.html#addListener">Element.addListener</a>
-     * for more information on listening for this event.
-     * @type YAHOO.util.CustomEvent
-     */
-    pageChangeEvent = "pageChange",
-
-    /*
-     * Internal event.
-     * @event render
-     * @description Fires when the Carousel is rendered.  See
-     * <a href="YAHOO.util.Element.html#addListener">Element.addListener</a>
-     * for more information on listening for this event.
-     * @type YAHOO.util.CustomEvent
-     */
-    renderEvent = "render",
-
-    /**
-     * @event show
-     * @description Fires when the Carousel is shown.  See
-     * <a href="YAHOO.util.Element.html#addListener">Element.addListener</a>
-     * for more information on listening for this event.
-     * @type YAHOO.util.CustomEvent
-     */
-    showEvent = "show",
-
-    /**
-     * @event startAutoPlay
-     * @description Fires when the auto play has started in the Carousel.  See
-     * <a href="YAHOO.util.Element.html#addListener">Element.addListener</a>
-     * for more information on listening for this event.
-     * @type YAHOO.util.CustomEvent
-     */
-    startAutoPlayEvent = "startAutoPlay",
-
-    /**
-     * @event stopAutoPlay
-     * @description Fires when the auto play has been stopped in the Carousel.
-     * See
-     * <a href="YAHOO.util.Element.html#addListener">Element.addListener</a>
-     * for more information on listening for this event.
-     * @type YAHOO.util.CustomEvent
-     */
-    stopAutoPlayEvent = "stopAutoPlay",
-
-    /*
-     * Internal event.
-     * @event uiUpdateEvent
-     * @description Fires when the UI has been updated.
-     * See
-     * <a href="YAHOO.util.Element.html#addListener">Element.addListener</a>
-     * for more information on listening for this event.
-     * @type YAHOO.util.CustomEvent
-     */
-    uiUpdateEvent = "uiUpdate";
-
-    /*
-     * Private helper functions used by the Carousel component
-     */
-
-   /**
-     * Set multiple styles on one element.
-     * @method setStyles
-     * @param el {HTMLElement} The element to set styles on
-     * @param style {Object} top:"10px", left:"0px", etc.
-     * @private
-     */
-     function setStyles(el, styles) {
-         var which;
-
-         for (which in styles) {
-             if (styles.hasOwnProperty(which)) {
-                 Dom.setStyle(el, which, styles[which]);
-             }
-         }
-     }
-
-    /**
-     * Create an element, set its class name and optionally install the element
-     * to its parent.
-     * @method createElement
-     * @param el {String} The element to be created
-     * @param attrs {Object} Configuration of parent, class and id attributes.
-     * If the content is specified, it is inserted after creation of the
-     * element. The content can also be an HTML element in which case it would
-     * be appended as a child node of the created element.
-     * @private
-     */
-    function createElement(el, attrs) {
-        var newEl = document.createElement(el);
-
-        attrs = attrs || {};
-        if (attrs.className) {
-            Dom.addClass(newEl, attrs.className);
-        }
-
-        if (attrs.styles) {
-            setStyles(newEl, attrs.styles);
-        }
-
-        if (attrs.parent) {
-            attrs.parent.appendChild(newEl);
-        }
-
-        if (attrs.id) {
-            newEl.setAttribute("id", attrs.id);
-        }
-
-        if (attrs.content) {
-            if (attrs.content.nodeName) {
-                newEl.appendChild(attrs.content);
-            } else {
-                newEl.innerHTML = attrs.content;
-            }
-        }
-
-        return newEl;
-    }
-
-    /**
-     * Get the computed style of an element.
-     *
-     * @method getStyle
-     * @param el {HTMLElement} The element for which the style needs to be
-     * returned.
-     * @param style {String} The style attribute
-     * @param type {String} "int", "float", etc. (defaults to int)
-     * @private
-     */
-    function getStyle(el, style, type) {
-        var value;
-
-        if (!el) {
-            return 0;
-        }
-
-        function getStyleIntVal(el, style) {
-            var val;
-
-            /*
-             * XXX: Safari calculates incorrect marginRight for an element
-             * which has its parent element style set to overflow: hidden
-             * https://bugs.webkit.org/show_bug.cgi?id=13343
-             * Let us assume marginLeft == marginRight
-             */
-            if (style == "marginRight" && YAHOO.env.ua.webkit) {
-                val = parseInt(Dom.getStyle(el, "marginLeft"), 10);
-            } else {
-                val = parseInt(Dom.getStyle(el, style), 10);
-            }
-
-            return JS.isNumber(val) ? val : 0;
-        }
-
-        function getStyleFloatVal(el, style) {
-            var val;
-
-            /*
-             * XXX: Safari calculates incorrect marginRight for an element
-             * which has its parent element style set to overflow: hidden
-             * https://bugs.webkit.org/show_bug.cgi?id=13343
-             * Let us assume marginLeft == marginRight
-             */
-            if (style == "marginRight" && YAHOO.env.ua.webkit) {
-                val = parseFloat(Dom.getStyle(el, "marginLeft"));
-            } else {
-                val = parseFloat(Dom.getStyle(el, style));
-            }
-
-            return JS.isNumber(val) ? val : 0;
-        }
-
-        if (typeof type == "undefined") {
-            type = "int";
-        }
-
-        switch (style) {
-        case "height":
-            value = el.offsetHeight;
-            if (value > 0) {
-                value += getStyleIntVal(el, "marginTop")        +
-                        getStyleIntVal(el, "marginBottom");
-            } else {
-                value = getStyleFloatVal(el, "height")          +
-                        getStyleIntVal(el, "marginTop")         +
-                        getStyleIntVal(el, "marginBottom")      +
-                        getStyleIntVal(el, "borderTopWidth")    +
-                        getStyleIntVal(el, "borderBottomWidth") +
-                        getStyleIntVal(el, "paddingTop")        +
-                        getStyleIntVal(el, "paddingBottom");
-            }
-            break;
-        case "width":
-            value = el.offsetWidth;
-            if (value > 0) {
-                value += getStyleIntVal(el, "marginLeft")       +
-                        getStyleIntVal(el, "marginRight");
-            } else {
-                value = getStyleFloatVal(el, "width")           +
-                        getStyleIntVal(el, "marginLeft")        +
-                        getStyleIntVal(el, "marginRight")       +
-                        getStyleIntVal(el, "borderLeftWidth")   +
-                        getStyleIntVal(el, "borderRightWidth")  +
-                        getStyleIntVal(el, "paddingLeft")       +
-                        getStyleIntVal(el, "paddingRight");
-            }
-            break;
-        default:
-            if (type == "int") {
-                value = getStyleIntVal(el, style);
-            } else if (type == "float") {
-                value = getStyleFloatVal(el, style);
-            } else {
-                value = Dom.getStyle(el, style);
-            }
-            break;
-        }
-
-        return value;
-    }
-
-    /**
-     * Compute and return the height or width of a single Carousel item
-     * depending upon the orientation.
-     *
-     * @method getCarouselItemSize
-     * @param which {String} "height" or "width" to be returned.  If this is
-     * passed explicitly, the calculated size is not cached.
-     * @private
-     */
-    function getCarouselItemSize(which) {
-        var carousel = this,
-            child,
-            item,
-            size     = 0,
-            first = carousel.get("firstVisible"),
-            vertical = false;
-
-        if (carousel._itemsTable.numItems === 0) {
-            return 0;
-        }
-
-        item = carousel._itemsTable.items[first] ||
-               carousel._itemsTable.loading[first];
-
-        if (JS.isUndefined(item)) {
-            return 0;
-        }
-
-        child = Dom.get(item.id);
-
-        if (typeof which == "undefined") {
-            vertical = carousel.get("isVertical");
-        } else {
-            vertical = which == "height";
-        }
-
-        if (this._itemAttrCache[which]) {
-            return this._itemAttrCache[which];
-        }
-
-        if (vertical) {
-            size = getStyle(child, "height");
-        } else {
-            size = getStyle(child, "width");
-        }
-
-        this._itemAttrCache[which] = size;
-
-        return size;
-    }
-
-    /**
-     * Return the size of a part of the item (reveal).
-     *
-     * @method getRevealSize
-     * @private
-     */
-    function getRevealSize() {
-        var carousel = this, isVertical, sz;
-
-        isVertical = carousel.get("isVertical");
-        sz  = getCarouselItemSize.call(carousel,
-                isVertical ? "height" : "width");
-        return (sz * carousel.get("revealAmount") / 100);
-    }
-
-    /**
-     * Compute and return the position of a Carousel item based on its
-     * position.
-     *
-     * @method getCarouselItemPosition
-     * @param position {Number} The position of the Carousel item.
-     * @private
-     */
-    function getCarouselItemPosition(pos) {
-        var carousel    = this,
-            itemsPerRow = carousel._cols,
-            itemsPerCol = carousel._rows,
-            page,
-            sz,
-            isVertical,
-            itemsCol,
-            itemsRow,
-            sentinel,
-            delta = 0,
-            top,
-            left,
-            rsz,
-            styles = {},
-            index = 0,
-            itemsTable = carousel._itemsTable,
-            items = itemsTable.items,
-            loading = itemsTable.loading;
-
-        isVertical = carousel.get("isVertical");
-        sz  = getCarouselItemSize.call(carousel,
-                isVertical ? "height" : "width");
-        rsz = getRevealSize.call(carousel);
-
-        // adjust for items not yet loaded
-        while (index < pos) {
-            if (!items[index] && !loading[index]) {
-                delta++;
-            }
-            index++;
-        }
-        pos -= delta;
-
-        if (itemsPerCol) {
-            page = this.getPageForItem(pos);
-            if (isVertical) {
-                itemsRow = Math.floor(pos/itemsPerRow);
-                delta = itemsRow;
-                top = delta * sz;
-                styles.top  = (top + rsz) + "px";
-
-                sz  = getCarouselItemSize.call(carousel, "width");
-
-                itemsCol = pos % itemsPerRow;
-                delta = itemsCol;
-                left = delta * sz;
-                styles.left = left + "px";
-            } else {
-                itemsCol = pos % itemsPerRow;
-                sentinel = (page - 1) * itemsPerRow;
-                delta = itemsCol + sentinel;
-                left = delta * sz;
-                styles.left = (left + rsz) + "px";
-
-                sz  = getCarouselItemSize.call(carousel, "height");
-
-                itemsRow = Math.floor(pos/itemsPerRow);
-                sentinel = (page - 1) * itemsPerCol;
-                delta = itemsRow - sentinel;
-                top = delta * sz;
-
-                styles.top  = top + "px";
-            }
-        } else {
-        if (isVertical) {
-            styles.left = 0;
-            styles.top  = ((pos * sz) + rsz) + "px";
-        } else {
-            styles.top  = 0;
-            styles.left = ((pos * sz) + rsz) + "px";
-        }
-        }
-
-        return styles;
-    }
-
-    /**
-     * Return the index of the first item in the view port for displaying item
-     * in "pos".
-     *
-     * @method getFirstVisibleForPosition
-     * @param pos {Number} The position of the item to be displayed
-     * @private
-     */
-    function getFirstVisibleForPosition(pos) {
-        var num = this.get("numVisible");
-        return Math.floor(pos / num) * num;
-    }
-
-    /**
-     * Return the scrolling offset size given the number of elements to
-     * scroll.
-     *
-     * @method getScrollOffset
-     * @param delta {Number} The delta number of elements to scroll by.
-     * @private
-     */
-    function getScrollOffset(delta) {
-        var itemSize = 0,
-            size     = 0;
-
-        itemSize = getCarouselItemSize.call(this);
-        size = itemSize * delta;
-
-        return size;
-    }
-
-    /**
-     * Scroll the Carousel by a page backward.
-     *
-     * @method scrollPageBackward
-     * @param {Event} ev The event object
-     * @param {Object} obj The context object
-     * @private
-     */
-    function scrollPageBackward(ev, obj) {
-        obj.scrollPageBackward();
-        Event.preventDefault(ev);
-    }
-
-    /**
-     * Scroll the Carousel by a page forward.
-     *
-     * @method scrollPageForward
-     * @param {Event} ev The event object
-     * @param {Object} obj The context object
-     * @private
-     */
-    function scrollPageForward(ev, obj) {
-        obj.scrollPageForward();
-        Event.preventDefault(ev);
-    }
-
-    /**
-     * Set the selected item.
-     *
-     * @method setItemSelection
-     * @param {Number} newpos The index of the new position
-     * @param {Number} oldpos The index of the previous position
-     * @private
-     */
-     function setItemSelection(newpos, oldpos) {
-        var carousel = this,
-            cssClass   = carousel.CLASSES,
-            el,
-            firstItem  = carousel._firstItem,
-            isCircular = carousel.get("isCircular"),
-            numItems   = carousel.get("numItems"),
-            numVisible = carousel.get("numVisible"),
-            position   = oldpos,
-            sentinel   = firstItem + numVisible - 1;
-
-        if (position >= 0 && position < numItems) {
-            if (!JS.isUndefined(carousel._itemsTable.items[position])) {
-                el = Dom.get(carousel._itemsTable.items[position].id);
-                if (el) {
-                    Dom.removeClass(el, cssClass.SELECTED_ITEM);
-                }
-            }
-        }
-
-        if (JS.isNumber(newpos)) {
-            newpos = parseInt(newpos, 10);
-            newpos = JS.isNumber(newpos) ? newpos : 0;
-        } else {
-            newpos = firstItem;
-        }
-
-        if (JS.isUndefined(carousel._itemsTable.items[newpos])) {
-            newpos = getFirstVisibleForPosition.call(carousel, newpos);
-            carousel.scrollTo(newpos); // still loading the item
-        }
-
-        if (!JS.isUndefined(carousel._itemsTable.items[newpos])) {
-            el = Dom.get(carousel._itemsTable.items[newpos].id);
-            if (el) {
-                Dom.addClass(el, cssClass.SELECTED_ITEM);
-            }
-        }
-
-        if (newpos < firstItem || newpos > sentinel) { // out of focus
-            newpos = getFirstVisibleForPosition.call(carousel, newpos);
-            carousel.scrollTo(newpos);
-        }
-    }
-
-    /**
-     * Fire custom events for enabling/disabling navigation elements.
-     *
-     * @method syncNavigation
-     * @private
-     */
-    function syncNavigation() {
-        var attach   = false,
-            carousel = this,
-            cssClass = carousel.CLASSES,
-            i,
-            navigation,
-            sentinel;
-
-        // Don't do anything if the Carousel is not rendered
-        if (!carousel._hasRendered) {
-            return;
-        }
-
-        navigation = carousel.get("navigation");
-        sentinel   = carousel._firstItem + carousel.get("numVisible");
-
-        if (navigation.prev) {
-            if (carousel.get("numItems") === 0 || carousel._firstItem === 0) {
-                if (carousel.get("numItems") === 0 ||
-                   !carousel.get("isCircular")) {
-                    Event.removeListener(navigation.prev, "click",
-                            scrollPageBackward);
-                    Dom.addClass(navigation.prev, cssClass.FIRST_NAV_DISABLED);
-                    for (i = 0; i < carousel._navBtns.prev.length; i++) {
-                        carousel._navBtns.prev[i].setAttribute("disabled",
-                                "true");
-                    }
-                    carousel._prevEnabled = false;
-                } else {
-                    attach = !carousel._prevEnabled;
-                }
-            } else {
-                attach = !carousel._prevEnabled;
-            }
-
-            if (attach) {
-                Event.on(navigation.prev, "click", scrollPageBackward,
-                         carousel);
-                Dom.removeClass(navigation.prev, cssClass.FIRST_NAV_DISABLED);
-                for (i = 0; i < carousel._navBtns.prev.length; i++) {
-                    carousel._navBtns.prev[i].removeAttribute("disabled");
-                }
-                carousel._prevEnabled = true;
-            }
-        }
-
-        attach = false;
-        if (navigation.next) {
-            if (sentinel >= carousel.get("numItems")) {
-                if (!carousel.get("isCircular")) {
-                    Event.removeListener(navigation.next, "click",
-                            scrollPageForward);
-                    Dom.addClass(navigation.next, cssClass.DISABLED);
-                    for (i = 0; i < carousel._navBtns.next.length; i++) {
-                        carousel._navBtns.next[i].setAttribute("disabled",
-                                "true");
-                    }
-                    carousel._nextEnabled = false;
-                } else {
-                    attach = !carousel._nextEnabled;
-                }
-            } else {
-                attach = !carousel._nextEnabled;
-            }
-
-            if (attach) {
-                Event.on(navigation.next, "click", scrollPageForward,
-                         carousel);
-                Dom.removeClass(navigation.next, cssClass.DISABLED);
-                for (i = 0; i < carousel._navBtns.next.length; i++) {
-                    carousel._navBtns.next[i].removeAttribute("disabled");
-                }
-                carousel._nextEnabled = true;
-            }
-        }
-
-        carousel.fireEvent(navigationStateChangeEvent,
-                { next: carousel._nextEnabled, prev: carousel._prevEnabled });
-    }
-
-    /**
-     * Synchronize and redraw the Pager UI if necessary.
-     *
-     * @method syncPagerUi
-     * @private
-     */
-    function syncPagerUi(page) {
-        var carousel = this, numPages, numVisible;
-
-        // Don't do anything if the Carousel is not rendered
-        if (!carousel._hasRendered) {
-            return;
-        }
-
-        numVisible = carousel.get("numVisible");
-
-        if (!JS.isNumber(page)) {
-            page = Math.floor(carousel.get("selectedItem") / numVisible);
-        }
-
-        numPages = Math.ceil(carousel.get("numItems") / numVisible);
-
-        carousel._pages.num = numPages;
-        carousel._pages.cur = page;
-
-        if (numPages > carousel.CONFIG.MAX_PAGER_BUTTONS) {
-            carousel._updatePagerMenu();
-        } else {
-            carousel._updatePagerButtons();
-        }
-    }
-
-    /**
-     * Get full dimensions of an element.
-     *
-     * @method getDimensions
-     * @param {Object} el The element to get the dimensions of
-     * @param {String} which Get the height or width of an element
-     * @private
-     */
-    function getDimensions(el, which) {
-        switch (which) {
-        case 'height':
-            return  getStyle(el, "marginTop")        +
-                    getStyle(el, "marginBottom")     +
-                    getStyle(el, "paddingTop")       +
-                    getStyle(el, "paddingBottom")    +
-                    getStyle(el, "borderTopWidth")   +
-                    getStyle(el, "borderBottomWidth");
-        case 'width':
-            return   getStyle(el, "marginLeft")      +
-                     getStyle(el, "marginRight")     +
-                     getStyle(el, "paddingLeft")     +
-                     getStyle(el, "paddingRight")    +
-                     getStyle(el, "borderLeftWidth") +
-                     getStyle(el, "borderRightWidth");
-        default:
-            break;
-        }
-
-        return getStyle(el, which);
-    }
-
-    /**
-     * Handle UI update.
-     * Call the appropriate methods on events fired when an item is added, or
-     * removed for synchronizing the DOM.
-     *
-     * @method syncUi
-     * @param {Object} o The item that needs to be added or removed
-     * @private
-     */
-    function syncUi(o) {
-        var carousel = this;
-
-        if (!JS.isObject(o)) {
-            return;
-        }
-
-        switch (o.ev) {
-        case itemAddedEvent:
-            carousel._syncUiForItemAdd(o);
-            break;
-        case itemRemovedEvent:
-            carousel._syncUiForItemRemove(o);
-            break;
-        case itemReplacedEvent:
-            carousel._syncUiForItemReplace(o);
-            break;
-        case loadItemsEvent:
-            carousel._syncUiForLazyLoading(o);
-            break;
-        }
-
-        carousel.fireEvent(uiUpdateEvent);
-    }
-
-    /**
-     * Update the state variables after scrolling the Carousel view port.
-     *
-     * @method updateStateAfterScroll
-     * @param {Integer} item The index to which the Carousel has scrolled to.
-     * @param {Integer} sentinel The last element in the view port.
-     * @private
-     */
-    function updateStateAfterScroll(item, sentinel) {
-        var carousel   = this,
-            page       = carousel.get("currentPage"),
-            newPage,
-            numPerPage = carousel.get("numVisible");
-
-        newPage = parseInt(carousel._firstItem / numPerPage, 10);
-        if (newPage != page) {
-            carousel.setAttributeConfig("currentPage", { value: newPage });
-            carousel.fireEvent(pageChangeEvent, newPage);
-        }
-
-        if (carousel.get("selectOnScroll")) {
-            if (carousel.get("selectedItem") != carousel._selectedItem) {
-                carousel.set("selectedItem", carousel._selectedItem);
-            }
-        }
-
-        clearTimeout(carousel._autoPlayTimer);
-        delete carousel._autoPlayTimer;
-        if (carousel.isAutoPlayOn()) {
-            carousel.startAutoPlay();
-        }
-
-        carousel.fireEvent(afterScrollEvent,
-                           { first: carousel._firstItem,
-                             last: sentinel },
-                           carousel);
-    }
-
-    /*
-     * Static members and methods of the Carousel component
-     */
-
-    /**
-     * Return the appropriate Carousel object based on the id associated with
-     * the Carousel element or false if none match.
-     * @method getById
-     * @public
-     * @static
-     */
-    Carousel.getById = function (id) {
-        return instances[id] ? instances[id].object : false;
-    };
-
-    YAHOO.extend(Carousel, YAHOO.util.Element, {
-
-        /*
-         * Internal variables used within the Carousel component
-         */
-
-         /**
-         * Number of rows for a multirow carousel.
-         *
-         * @property _rows
-         * @private
-         */
-        _rows: null,
-
-        /**
-         * Number of cols for a multirow carousel.
-         *
-         * @property _cols
-         * @private
-         */
-        _cols: null,
-
-        /**
-         * The Animation object.
-         *
-         * @property _animObj
-         * @private
-         */
-        _animObj: null,
-
-        /**
-         * The Carousel element.
-         *
-         * @property _carouselEl
-         * @private
-         */
-        _carouselEl: null,
-
-        /**
-         * The Carousel clipping container element.
-         *
-         * @property _clipEl
-         * @private
-         */
-        _clipEl: null,
-
-        /**
-         * The current first index of the Carousel.
-         *
-         * @property _firstItem
-         * @private
-         */
-        _firstItem: 0,
-
-        /**
-         * Does the Carousel element have focus?
-         *
-         * @property _hasFocus
-         * @private
-         */
-        _hasFocus: false,
-
-        /**
-         * Is the Carousel rendered already?
-         *
-         * @property _hasRendered
-         * @private
-         */
-        _hasRendered: false,
-
-        /**
-         * Is the animation still in progress?
-         *
-         * @property _isAnimationInProgress
-         * @private
-         */
-        _isAnimationInProgress: false,
-
-        /**
-         * Is the auto-scrolling of Carousel in progress?
-         *
-         * @property _isAutoPlayInProgress
-         * @private
-         */
-        _isAutoPlayInProgress: false,
-
-        /**
-         * The table of items in the Carousel.
-         * The numItems is the number of items in the Carousel, items being the
-         * array of items in the Carousel.  The size is the size of a single
-         * item in the Carousel.  It is cached here for efficiency (to avoid
-         * computing the size multiple times).
-         *
-         * @property _itemsTable
-         * @private
-         */
-        _itemsTable: null,
-
-        /**
-         * The Carousel navigation buttons.
-         *
-         * @property _navBtns
-         * @private
-         */
-        _navBtns: null,
-
-        /**
-         * The Carousel navigation.
-         *
-         * @property _navEl
-         * @private
-         */
-        _navEl: null,
-
-        /**
-         * Status of the next navigation item.
-         *
-         * @property _nextEnabled
-         * @private
-         */
-        _nextEnabled: true,
-
-        /**
-         * The Carousel pages structure.
-         * This is an object of the total number of pages and the current page.
-         *
-         * @property _pages
-         * @private
-         */
-        _pages: null,
-
-        /**
-         * The Carousel pagination structure.
-         *
-         * @property _pagination
-         * @private
-         */
-        _pagination: {},
-
-        /**
-         * Status of the previous navigation item.
-         *
-         * @property _prevEnabled
-         * @private
-         */
-        _prevEnabled: true,
-
-        /**
-         * Whether the Carousel size needs to be recomputed or not?
-         *
-         * @property _recomputeSize
-         * @private
-         */
-        _recomputeSize: true,
-
-        /**
-         * Cache the Carousel item attributes.
-         *
-         * @property _itemAttrCache
-         * @private
-         */
-         _itemAttrCache: {},
-
-        /*
-         * CSS classes used by the Carousel component
-         */
-
-        CLASSES: {
-
-            /**
-             * The class name of the Carousel navigation buttons.
-             *
-             * @property BUTTON
-             * @default "yui-carousel-button"
-             */
-            BUTTON: "yui-carousel-button",
-
-            /**
-             * The class name of the Carousel element.
-             *
-             * @property CAROUSEL
-             * @default "yui-carousel"
-             */
-            CAROUSEL: "yui-carousel",
-
-            /**
-             * The class name of the container of the items in the Carousel.
-             *
-             * @property CAROUSEL_EL
-             * @default "yui-carousel-element"
-             */
-            CAROUSEL_EL: "yui-carousel-element",
-
-            /**
-             * The class name of the Carousel's container element.
-             *
-             * @property CONTAINER
-             * @default "yui-carousel-container"
-             */
-            CONTAINER: "yui-carousel-container",
-
-            /**
-             * The class name of the Carousel's container element.
-             *
-             * @property CONTENT
-             * @default "yui-carousel-content"
-             */
-            CONTENT: "yui-carousel-content",
-
-            /**
-             * The class name of a disabled navigation button.
-             *
-             * @property DISABLED
-             * @default "yui-carousel-button-disabled"
-             */
-            DISABLED: "yui-carousel-button-disabled",
-
-            /**
-             * The class name of the first Carousel navigation button.
-             *
-             * @property FIRST_NAV
-             * @default " yui-carousel-first-button"
-             */
-            FIRST_NAV: " yui-carousel-first-button",
-
-            /**
-             * The class name of a first disabled navigation button.
-             *
-             * @property FIRST_NAV_DISABLED
-             * @default "yui-carousel-first-button-disabled"
-             */
-            FIRST_NAV_DISABLED: "yui-carousel-first-button-disabled",
-
-            /**
-             * The class name of a first page element.
-             *
-             * @property FIRST_PAGE
-             * @default "yui-carousel-nav-first-page"
-             */
-            FIRST_PAGE: "yui-carousel-nav-first-page",
-
-            /**
-             * The class name of the Carousel navigation button that has focus.
-             *
-             * @property FOCUSSED_BUTTON
-             * @default "yui-carousel-button-focus"
-             */
-            FOCUSSED_BUTTON: "yui-carousel-button-focus",
-
-            /**
-             * The class name of a horizontally oriented Carousel.
-             *
-             * @property HORIZONTAL
-             * @default "yui-carousel-horizontal"
-             */
-            HORIZONTAL: "yui-carousel-horizontal",
-
-            /**
-             * The element to be used as the progress indicator when the item
-             * is still being loaded.
-             *
-             * @property ITEM_LOADING
-             * @default The progress indicator (spinner) image CSS class
-             */
-            ITEM_LOADING: "yui-carousel-item-loading",
-
-            /**
-             * The class name that will be set if the Carousel adjusts itself
-             * for a minimum width.
-             *
-             * @property MIN_WIDTH
-             * @default "yui-carousel-min-width"
-             */
-            MIN_WIDTH: "yui-carousel-min-width",
-
-            /**
-             * The navigation element container class name.
-             *
-             * @property NAVIGATION
-             * @default "yui-carousel-nav"
-             */
-            NAVIGATION: "yui-carousel-nav",
-
-            /**
-             * The class name of the next Carousel navigation button.
-             *
-             * @property NEXT_NAV
-             * @default " yui-carousel-next-button"
-             */
-            NEXT_NAV: " yui-carousel-next-button",
-
-            /**
-             * The class name of the next navigation link. This variable is
-             * not only used for styling, but also for identifying the link
-             * within the Carousel container.
-             *
-             * @property NEXT_PAGE
-             * @default "yui-carousel-next"
-             */
-            NEXT_PAGE: "yui-carousel-next",
-
-            /**
-             * The class name for the navigation container for prev/next.
-             *
-             * @property NAV_CONTAINER
-             * @default "yui-carousel-buttons"
-             */
-            NAV_CONTAINER: "yui-carousel-buttons",
-
-            /**
-              * The class name for an item in the pager UL or dropdown menu.
-              *
-              * @property PAGER_ITEM
-              * @default "yui-carousel-pager-item"
-              */
-            PAGER_ITEM: "yui-carousel-pager-item",
-
-            /**
-             * The class name for the pagination container
-             *
-             * @property PAGINATION
-             * @default "yui-carousel-pagination"
-             */
-            PAGINATION: "yui-carousel-pagination",
-
-            /**
-             * The class name of the focussed page navigation.  This class is
-             * specifically used for the ugly focus handling in Opera.
-             *
-             * @property PAGE_FOCUS
-             * @default "yui-carousel-nav-page-focus"
-             */
-            PAGE_FOCUS: "yui-carousel-nav-page-focus",
-
-            /**
-             * The class name of the previous navigation link. This variable
-             * is not only used for styling, but also for identifying the link
-             * within the Carousel container.
-             *
-             * @property PREV_PAGE
-             * @default "yui-carousel-prev"
-             */
-            PREV_PAGE: "yui-carousel-prev",
-
-            /**
-             * The class name of the selected item.
-             *
-             * @property SELECTED_ITEM
-             * @default "yui-carousel-item-selected"
-             */
-            SELECTED_ITEM: "yui-carousel-item-selected",
-
-            /**
-             * The class name of the selected paging navigation.
-             *
-             * @property SELECTED_NAV
-             * @default "yui-carousel-nav-page-selected"
-             */
-            SELECTED_NAV: "yui-carousel-nav-page-selected",
-
-            /**
-             * The class name of a vertically oriented Carousel.
-             *
-             * @property VERTICAL
-             * @default "yui-carousel-vertical"
-             */
-            VERTICAL: "yui-carousel-vertical",
-
-            /**
-             * The class name of a multirow Carousel.
-             *
-             * @property MULTI_ROW
-             * @default "yui-carousel-multi-row"
-             */
-            MULTI_ROW: "yui-carousel-multi-row",
-
-            /**
-             * The class name of a row in a multirow Carousel.
-             *
-             * @property ROW
-             * @default "yui-carousel-new-row"
-             */
-            ROW: "yui-carousel-row",
-
-            /**
-             * The class name of a vertical Carousel's container element.
-             *
-             * @property VERTICAL_CONTAINER
-             * @default "yui-carousel-vertical-container"
-             */
-            VERTICAL_CONTAINER: "yui-carousel-vertical-container",
-
-            /**
-             * The class name of a visible Carousel.
-             *
-             * @property VISIBLE
-             * @default "yui-carousel-visible"
-             */
-            VISIBLE: "yui-carousel-visible"
-
-        },
-
-        /*
-         * Configuration attributes for configuring the Carousel component
-         */
-
-        CONFIG: {
-
-            /**
-             * The offset of the first visible item in the Carousel.
-             *
-             * @property FIRST_VISIBLE
-             * @default 0
-             */
-            FIRST_VISIBLE: 0,
-
-            /**
-             * The minimum width of the horizontal Carousel container to support
-             * the navigation buttons.
-             *
-             * @property HORZ_MIN_WIDTH
-             * @default 180
-             */
-            HORZ_MIN_WIDTH: 180,
-
-            /**
-             * The maximum number of pager buttons allowed beyond which the UI
-             * of the pager would be a drop-down of pages instead of buttons.
-             *
-             * @property MAX_PAGER_BUTTONS
-             * @default 5
-             */
-            MAX_PAGER_BUTTONS: 5,
-
-            /**
-             * The minimum width of the vertical Carousel container to support
-             * the navigation buttons.
-             *
-             * @property VERT_MIN_WIDTH
-             * @default 155
-             */
-            VERT_MIN_WIDTH: 115,
-
-            /**
-             * The number of visible items in the Carousel.
-             *
-             * @property NUM_VISIBLE
-             * @default 3
-             */
-            NUM_VISIBLE: 3
-
-        },
-
-        /*
-         * Internationalizable strings in the Carousel component
-         */
-
-        STRINGS: {
-
-            /**
-             * The content to be used as the progress indicator when the item
-             * is still being loaded.
-             *
-             * @property ITEM_LOADING_CONTENT
-             * @default "Loading"
-             */
-            ITEM_LOADING_CONTENT: "Loading",
-
-            /**
-             * The next navigation button name/text.
-             *
-             * @property NEXT_BUTTON_TEXT
-             * @default "Next Page"
-             */
-            NEXT_BUTTON_TEXT: "Next Page",
-
-            /**
-             * The prefix text for the pager in case the UI is a drop-down.
-             *
-             * @property PAGER_PREFIX_TEXT
-             * @default "Go to page "
-             */
-            PAGER_PREFIX_TEXT: "Go to page ",
-
-            /**
-             * The previous navigation button name/text.
-             *
-             * @property PREVIOUS_BUTTON_TEXT
-             * @default "Previous Page"
-             */
-            PREVIOUS_BUTTON_TEXT: "Previous Page"
-
-        },
-
-        /*
-         * Public methods of the Carousel component
-         */
-
-        /**
-         * Insert or append an item to the Carousel.
-         * E.g. if Object: ({content:"Your Content", id:"", className:""}, index)
-         *
-         * @method addItem
-         * @public
-         * @param item {String | Object | HTMLElement} The item to be appended
-         * to the Carousel. If the parameter is a string, it is assumed to be
-         * the content of the newly created item. If the parameter is an
-         * object, it is assumed to supply the content and an optional class
-         * and an optional id of the newly created item.
-         * @param index {Number} optional The position to where in the list
-         * (starts from zero).
-         * @return {Boolean} Return true on success, false otherwise
-         */
-        addItem: function (item, index) {
-            var carousel = this,
-                className,
-                content,
-                elId,
-                replaceItems = 0,
-                newIndex, // Add newIndex as workaround for undefined pos
-                numItems = carousel.get("numItems");
-
-            if (!item) {
-                return false;
-            }
-
-            if (JS.isString(item) || item.nodeName) {
-                content = item.nodeName ? item.innerHTML : item;
-            } else if (JS.isObject(item)) {
-                content = item.content;
-            } else {
-                YAHOO.log("Invalid argument to addItem", "error", WidgetName);
-                return false;
-            }
-
-            className = item.className || "";
-            elId      = item.id ? item.id : Dom.generateId();
-
-            if (JS.isUndefined(index)) {
-                carousel._itemsTable.items.push({
-                        item      : content,
-                        className : className,
-                        id        : elId
-                });
-                // Add newIndex as workaround for undefined pos
-                newIndex = carousel._itemsTable.items.length-1;
-            } else {
-                if (index < 0 || index > numItems) {
-                    YAHOO.log("Index out of bounds", "error", WidgetName);
-                    return false;
-                }
-
-                // make sure we splice into the correct position
-                if(!carousel._itemsTable.items[index]){
-                    carousel._itemsTable.items[index] = undefined;
-                    replaceItems = 1;
-                }
-
-                carousel._itemsTable.items.splice(index, replaceItems, {
-                        item      : content,
-                        className : className,
-                        id        : elId
-                });
-            }
-            carousel._itemsTable.numItems++;
-
-            if (numItems < carousel._itemsTable.items.length) {
-                carousel.set("numItems", carousel._itemsTable.items.length);
-            }
-
-            // Add newPos as workaround for undefined pos
-            carousel.fireEvent(itemAddedEvent, { pos: index, ev: itemAddedEvent, newPos:newIndex });
-
-            return true;
-        },
-
-        /**
-         * Insert or append multiple items to the Carousel.
-         *
-         * @method addItems
-         * @public
-         * @param items {Array} An array containing an array of new items each linked to the
-         * index where the insertion should take place.
-         * E.g. [[{content:'<img/>'}, index1], [{content:'<img/>'}, index2]]
-         * NOTE: An item at index must already exist.
-         * @return {Boolean} Return true on success, false otherwise
-         */
-        addItems: function (items) {
-            var i, n, rv = true;
-
-            if (!JS.isArray(items)) {
-                return false;
-            }
-
-            for (i = 0, n = items.length; i < n; i++) {
-                if (this.addItem(items[i][0], items[i][1]) === false) {
-                    rv = false;
-                }
-            }
-
-            return rv;
-        },
-
-        /**
-         * Remove focus from the Carousel.
-         *
-         * @method blur
-         * @public
-         */
-        blur: function () {
-            this._carouselEl.blur();
-            this.fireEvent(blurEvent);
-        },
-
-        /**
-         * Clears the items from Carousel.
-         *
-         * @method clearItems
-         * @public
-         */
-        clearItems: function () {
-            var carousel = this, n = carousel.get("numItems");
-
-            while (n > 0) {
-                if (!carousel.removeItem(0)) {
-                    YAHOO.log("Item could not be removed - missing?",
-                              "warn", WidgetName);
-                }
-                /*
-                    For dynamic loading, the numItems may be much larger than
-                    the actual number of items in the table. So, set the
-                    numItems to zero, and break out of the loop if the table
-                    is already empty.
-                 */
-                if (carousel._itemsTable.numItems === 0) {
-                    carousel.set("numItems", 0);
-                    break;
-                }
-                n--;
-            }
-
-            carousel.fireEvent(allItemsRemovedEvent);
-        },
-
-        /**
-         * Set focus on the Carousel.
-         *
-         * @method focus
-         * @public
-         */
-        focus: function () {
-            var carousel = this,
-                first,
-                focusEl,
-                isSelectionInvisible,
-                itemsTable,
-                last,
-                numVisible,
-                selectOnScroll,
-                selected,
-                selItem;
-
-            // Don't do anything if the Carousel is not rendered
-            if (!carousel._hasRendered) {
-                return;
-            }
-
-            if (carousel.isAnimating()) {
-                // this messes up real bad!
-                return;
-            }
-
-            selItem              = carousel.get("selectedItem");
-            numVisible           = carousel.get("numVisible");
-            selectOnScroll       = carousel.get("selectOnScroll");
-            selected             = (selItem >= 0) ?
-                                   carousel.getItem(selItem) : null;
-            first                = carousel.get("firstVisible");
-            last                 = first + numVisible - 1;
-            isSelectionInvisible = (selItem < first || selItem > last);
-            focusEl              = (selected && selected.id) ?
-                                   Dom.get(selected.id) : null;
-            itemsTable           = carousel._itemsTable;
-
-            if (!selectOnScroll && isSelectionInvisible) {
-                focusEl = (itemsTable && itemsTable.items &&
-                           itemsTable.items[first]) ?
-                        Dom.get(itemsTable.items[first].id) : null;
-            }
-
-            if (focusEl) {
-                try {
-                    focusEl.focus();
-                } catch (ex) {
-                    // ignore focus errors
-                }
-            }
-
-            carousel.fireEvent(focusEvent);
-        },
-
-        /**
-         * Hide the Carousel.
-         *
-         * @method hide
-         * @public
-         */
-        hide: function () {
-            var carousel = this;
-
-            if (carousel.fireEvent(beforeHideEvent) !== false) {
-                carousel.removeClass(carousel.CLASSES.VISIBLE);
-                carousel.fireEvent(hideEvent);
-            }
-        },
-
-        /**
-         * Initialize the Carousel.
-         *
-         * @method init
-         * @public
-         * @param el {HTMLElement | String} The html element that represents
-         * the Carousel container.
-         * @param attrs {Object} The set of configuration attributes for
-         * creating the Carousel.
-         */
-        init: function (el, attrs) {
-            var carousel = this,
-                elId     = el,  // save for a rainy day
-                parse    = false,
-                selected;
-
-            if (!el) {
-                YAHOO.log(el + " is neither an HTML element, nor a string",
-                        "error", WidgetName);
-                return;
-            }
-
-            carousel._hasRendered = false;
-            carousel._navBtns     = { prev: [], next: [] };
-            carousel._pages       = { el: null, num: 0, cur: 0 };
-            carousel._pagination  = {};
-            carousel._itemAttrCache = {};
-
-            carousel._itemsTable  = { loading: {}, numItems: 0,
-                                      items: [], size: 0 };
-
-            YAHOO.log("Component initialization", WidgetName);
-
-            if (JS.isString(el)) {
-                el = Dom.get(el);
-            } else if (!el.nodeName) {
-                YAHOO.log(el + " is neither an HTML element, nor a string",
-                        "error", WidgetName);
-                return;
-            }
-
-            Carousel.superclass.init.call(carousel, el, attrs);
-
-            // check if we're starting somewhere in the middle
-            selected = carousel.get("selectedItem");
-            if(selected > 0){
-                carousel.set("firstVisible",getFirstVisibleForPosition.call(carousel,selected));
-            }
-
-            if (el) {
-                if (!el.id) {   // in case the HTML element is passed
-                    el.setAttribute("id", Dom.generateId());
-                }
-                parse = carousel._parseCarousel(el);
-                if (!parse) {
-                    carousel._createCarousel(elId);
-                }
-            } else {
-                el = carousel._createCarousel(elId);
-            }
-            elId = el.id;
-
-            carousel.initEvents();
-
-            if (parse) {
-                carousel._parseCarouselItems();
-            }
-
-            // add the selected class
-            if(selected > 0){
-                setItemSelection.call(carousel,selected,0);
-            }
-
-            if (!attrs || typeof attrs.isVertical == "undefined") {
-                carousel.set("isVertical", false);
-            }
-
-            carousel._parseCarouselNavigation(el);
-            carousel._navEl = carousel._setupCarouselNavigation();
-
-            instances[elId] = { object: carousel };
-            carousel._loadItems(Math.min(carousel.get("firstVisible")+carousel.get("numVisible"),carousel.get("numItems"))-1);
-        },
-
-        /**
-         * Initialize the configuration attributes used to create the Carousel.
-         *
-         * @method initAttributes
-         * @public
-         * @param attrs {Object} The set of configuration attributes for
-         * creating the Carousel.
-         */
-        initAttributes: function (attrs) {
-            var carousel = this;
-
-            attrs = attrs || {};
-            Carousel.superclass.initAttributes.call(carousel, attrs);
-
-            /**
-             * @attribute carouselEl
-             * @description The type of the Carousel element.
-             * @default OL
-             * @type Boolean
-             */
-            carousel.setAttributeConfig("carouselEl", {
-                    validator : JS.isString,
-                    value     : attrs.carouselEl || "OL"
-            });
-
-            /**
-             * @attribute carouselItemEl
-             * @description The type of the list of items within the Carousel.
-             * @default LI
-             * @type Boolean
-             */
-            carousel.setAttributeConfig("carouselItemEl", {
-                    validator : JS.isString,
-                    value     : attrs.carouselItemEl || "LI"
-            });
-
-            /**
-             * @attribute currentPage
-             * @description The current page number (read-only.)
-             * @type Number
-             */
-            carousel.setAttributeConfig("currentPage", {
-                    readOnly : true,
-                    value    : 0
-            });
-
-            /**
-             * @attribute firstVisible
-             * @description The index to start the Carousel from (indexes begin
-             * from zero)
-             * @default 0
-             * @type Number
-             */
-            carousel.setAttributeConfig("firstVisible", {
-                    method    : carousel._setFirstVisible,
-                    validator : carousel._validateFirstVisible,
-                    value     :
-                        attrs.firstVisible || carousel.CONFIG.FIRST_VISIBLE
-            });
-
-            /**
-             * @attribute selectOnScroll
-             * @description Set this to true to automatically set focus to
-             * follow scrolling in the Carousel.
-             * @default true
-             * @type Boolean
-             */
-            carousel.setAttributeConfig("selectOnScroll", {
-                    validator : JS.isBoolean,
-                    value     : attrs.selectOnScroll || true
-            });
-
-            /**
-             * @attribute numVisible
-             * @description The number of visible items in the Carousel's
-             * viewport.
-             * @default 3
-             * @type Number
-             */
-            carousel.setAttributeConfig("numVisible", {
-                    setter    : carousel._numVisibleSetter,
-                    method    : carousel._setNumVisible,
-                    validator : carousel._validateNumVisible,
-                    value     : attrs.numVisible || carousel.CONFIG.NUM_VISIBLE
-            });
-
-            /**
-             * @attribute numItems
-             * @description The number of items in the Carousel.
-             * @type Number
-             */
-            carousel.setAttributeConfig("numItems", {
-                    method    : carousel._setNumItems,
-                    validator : carousel._validateNumItems,
-                    value     : carousel._itemsTable.numItems
-            });
-
-            /**
-             * @attribute scrollIncrement
-             * @description The number of items to scroll by for arrow keys.
-             * @default 1
-             * @type Number
-             */
-            carousel.setAttributeConfig("scrollIncrement", {
-                    validator : carousel._validateScrollIncrement,
-                    value     : attrs.scrollIncrement || 1
-            });
-
-            /**
-             * @attribute selectedItem
-             * @description The index of the selected item.
-             * @type Number
-             */
-            carousel.setAttributeConfig("selectedItem", {
-                    setter    : carousel._selectedItemSetter,
-                    method    : carousel._setSelectedItem,
-                    validator : JS.isNumber,
-                    value     : -1
-            });
-
-            /**
-             * @attribute revealAmount
-             * @description The percentage of the item to be revealed on each
-             * side of the Carousel (before and after the first and last item
-             * in the Carousel's viewport.)
-             * @default 0
-             * @type Number
-             */
-            carousel.setAttributeConfig("revealAmount", {
-                    method    : carousel._setRevealAmount,
-                    validator : carousel._validateRevealAmount,
-                    value     : attrs.revealAmount || 0
-            });
-
-            /**
-             * @attribute isCircular
-             * @description Set this to true to wrap scrolling of the contents
-             * in the Carousel.
-             * @default false
-             * @type Boolean
-             */
-            carousel.setAttributeConfig("isCircular", {
-                    validator : JS.isBoolean,
-                    value     : attrs.isCircular || false
-            });
-
-            /**
-             * @attribute isVertical
-             * @description True if the orientation of the Carousel is vertical
-             * @default false
-             * @type Boolean
-             */
-            carousel.setAttributeConfig("isVertical", {
-                    method    : carousel._setOrientation,
-                    validator : JS.isBoolean,
-                    value     : attrs.isVertical || false
-            });
-
-            /**
-             * @attribute navigation
-             * @description The set of navigation controls for Carousel
-             * @default <br>
-             * { prev: null, // the previous navigation element<br>
-             *   next: null } // the next navigation element
-             * @type Object
-             */
-            carousel.setAttributeConfig("navigation", {
-                    method    : carousel._setNavigation,
-                    validator : carousel._validateNavigation,
-                    value     :
-                        attrs.navigation || {prev: null,next: null,page: null}
-            });
-
-            /**
-             * @attribute animation
-             * @description The optional animation attributes for the Carousel.
-             * @default <br>
-             * { speed: 0, // the animation speed (in seconds)<br>
-             *   effect: null } // the animation effect (like
-             *   YAHOO.util.Easing.easeOut)
-             * @type Object
-             */
-            carousel.setAttributeConfig("animation", {
-                    validator : carousel._validateAnimation,
-                    value     : attrs.animation || { speed: 0, effect: null }
-            });
-
-            /**
-             * @attribute autoPlay
-             * @description Set this to time in milli-seconds to have the
-             * Carousel automatically scroll the contents.
-             * @type Number
-             * @deprecated Use autoPlayInterval instead.
-             */
-            carousel.setAttributeConfig("autoPlay", {
-                    validator : JS.isNumber,
-                    value     : attrs.autoPlay || 0
-            });
-
-            /**
-             * @attribute autoPlayInterval
-             * @description The delay in milli-seconds for scrolling the
-             * Carousel during auto-play.
-             * Note: The startAutoPlay() method needs to be invoked to trigger
-             * automatic scrolling of Carousel.
-             * @type Number
-             */
-            carousel.setAttributeConfig("autoPlayInterval", {
-                    validator : JS.isNumber,
-                    value     : attrs.autoPlayInterval || 0
-            });
-
-            /**
-             * @attribute numPages
-             * @description The number of pages in the carousel.
-             * @type Number
-             */
-            carousel.setAttributeConfig("numPages", {
-                    readOnly  : true,
-                    getter    : carousel._getNumPages
-            });
-
-            /**
-             * @attribute lastVisible
-             * @description The last item visible in the carousel.
-             * @type Number
-             */
-            carousel.setAttributeConfig("lastVisible", {
-                    readOnly  : true,
-                    getter    : carousel._getLastVisible
-            });
-        },
-
-        /**
-         * Initialize and bind the event handlers.
-         *
-         * @method initEvents
-         * @public
-         */
-        initEvents: function () {
-            var carousel = this,
-                cssClass = carousel.CLASSES,
-                focussedLi;
-
-            carousel.on("keydown", carousel._keyboardEventHandler);
-
-            carousel.on(afterScrollEvent, syncNavigation);
-
-            carousel.on(itemAddedEvent, syncUi);
-
-            carousel.on(itemRemovedEvent, syncUi);
-
-            carousel.on(itemReplacedEvent, syncUi);
-
-            carousel.on(itemSelectedEvent, function () {
-                if (carousel._hasFocus) {
-                    carousel.focus();
-                }
-            });
-
-            carousel.on(loadItemsEvent, syncUi);
-
-            carousel.on(allItemsRemovedEvent, function (ev) {
-                carousel.scrollTo(0);
-                syncNavigation.call(carousel);
-                syncPagerUi.call(carousel);
-            });
-
-            carousel.on(pageChangeEvent, syncPagerUi, carousel);
-
-            carousel.on(renderEvent, function (ev) {
-                if (carousel.get("selectedItem") === null ||
-                    carousel.get("selectedItem") <= 0) { //in either case
-                carousel.set("selectedItem", carousel.get("firstVisible"));
-                }
-                syncNavigation.call(carousel, ev);
-                syncPagerUi.call(carousel, ev);
-                carousel._setClipContainerSize();
-                carousel.show();
-            });
-
-            carousel.on("selectedItemChange", function (ev) {
-                setItemSelection.call(carousel, ev.newValue, ev.prevValue);
-                if (ev.newValue >= 0) {
-                    carousel._updateTabIndex(
-                            carousel.getElementForItem(ev.newValue));
-                }
-                carousel.fireEvent(itemSelectedEvent, ev.newValue);
-            });
-
-            carousel.on(uiUpdateEvent, function (ev) {
-                syncNavigation.call(carousel, ev);
-                syncPagerUi.call(carousel, ev);
-            });
-
-            carousel.on("firstVisibleChange", function (ev) {
-                if (!carousel.get("selectOnScroll")) {
-                    if (ev.newValue >= 0) {
-                        carousel._updateTabIndex(
-                                carousel.getElementForItem(ev.newValue));
-                    }
-                }
-            });
-
-            // Handle item selection on mouse click
-            carousel.on("click", function (ev) {
-                if (carousel.isAutoPlayOn()) {
-                    carousel.stopAutoPlay();
-                }
-                carousel._itemClickHandler(ev);
-                carousel._pagerClickHandler(ev);
-            });
-
-            // Restore the focus on the navigation buttons
-
-            Event.onFocus(carousel.get("element"), function (ev, obj) {
-                var target = Event.getTarget(ev);
-
-                if (target && target.nodeName.toUpperCase() == "A" &&
-                    Dom.getAncestorByClassName(target, cssClass.NAVIGATION)) {
-                    if (focussedLi) {
-                        Dom.removeClass(focussedLi, cssClass.PAGE_FOCUS);
-                    }
-                    focussedLi = target.parentNode;
-                    Dom.addClass(focussedLi, cssClass.PAGE_FOCUS);
-                } else {
-                    if (focussedLi) {
-                        Dom.removeClass(focussedLi, cssClass.PAGE_FOCUS);
-                    }
-                }
-
-                obj._hasFocus = true;
-                obj._updateNavButtons(Event.getTarget(ev), true);
-            }, carousel);
-
-            Event.onBlur(carousel.get("element"), function (ev, obj) {
-                obj._hasFocus = false;
-                obj._updateNavButtons(Event.getTarget(ev), false);
-            }, carousel);
-        },
-
-        /**
-         * Return true if the Carousel is still animating, or false otherwise.
-         *
-         * @method isAnimating
-         * @return {Boolean} Return true if animation is still in progress, or
-         * false otherwise.
-         * @public
-         */
-        isAnimating: function () {
-            return this._isAnimationInProgress;
-        },
-
-        /**
-         * Return true if the auto-scrolling of Carousel is "on", or false
-         * otherwise.
-         *
-         * @method isAutoPlayOn
-         * @return {Boolean} Return true if autoPlay is "on", or false
-         * otherwise.
-         * @public
-         */
-        isAutoPlayOn: function () {
-            return this._isAutoPlayInProgress;
-        },
-
-        /**
-         * Return the carouselItemEl at index or null if the index is not
-         * found.
-         *
-         * @method getElementForItem
-         * @param index {Number} The index of the item to be returned
-         * @return {Element} Return the item at index or null if not found
-         * @public
-         */
-        getElementForItem: function (index) {
-            var carousel = this;
-
-            if (index < 0 || index >= carousel.get("numItems")) {
-                YAHOO.log("Index out of bounds", "error", WidgetName);
-                return null;
-            }
-
-            if (carousel._itemsTable.items[index]) {
-                return Dom.get(carousel._itemsTable.items[index].id);
-            }
-
-            return null;
-        },
-
-        /**
-         * Return the carouselItemEl for all items in the Carousel.
-         *
-         * @method getElementForItems
-         * @return {Array} Return all the items
-         * @public
-         */
-        getElementForItems: function () {
-            var carousel = this, els = [], i;
-
-            for (i = 0; i < carousel._itemsTable.numItems; i++) {
-                els.push(carousel.getElementForItem(i));
-            }
-
-            return els;
-        },
-
-        /**
-         * Return the item at index or null if the index is not found.
-         *
-         * @method getItem
-         * @param index {Number} The index of the item to be returned
-         * @return {Object} Return the item at index or null if not found
-         * @public
-         */
-        getItem: function (index) {
-            var carousel = this;
-
-            if (index < 0 || index >= carousel.get("numItems")) {
-                YAHOO.log("Index out of bounds", "error", WidgetName);
-                return null;
-            }
-
-            if (carousel._itemsTable.numItems > index) {
-                if (!JS.isUndefined(carousel._itemsTable.items[index])) {
-                    return carousel._itemsTable.items[index];
-                }
-            }
-
-            return null;
-        },
-
-        /**
-         * Return all items as an array.
-         *
-         * @method getItems
-         * @return {Array} Return all items in the Carousel
-         * @public
-         */
-        getItems: function () {
-            return this._itemsTable.items;
-        },
-
-        /**
-         * Return all loading items as an array.
-         *
-         * @method getLoadingItems
-         * @return {Array} Return all items that are loading in the Carousel.
-         * @public
-         */
-        getLoadingItems: function () {
-            return this._itemsTable.loading;
-        },
-
-        /**
-         * For a multirow carousel, return the number of rows specified by user.
-         *
-         * @method getItems
-         * @return {Number} Number of rows
-         * @public
-         */
-        getRows: function () {
-            return this._rows;
-        },
-
-        /**
-         * For a multirow carousel, return the number of cols specified by user.
-         *
-         * @method getItems
-         * @return {Array} Return all items in the Carousel
-         * @public
-         */
-        getCols: function () {
-            return this._cols;
-        },
-
-        /**
-         * Return the position of the Carousel item that has the id "id", or -1
-         * if the id is not found.
-         *
-         * @method getItemPositionById
-         * @param index {Number} The index of the item to be returned
-         * @public
-         */
-        getItemPositionById: function (id) {
-            var carousel = this,
-                n = carousel.get("numItems"),
-                i = 0,
-                items = carousel._itemsTable.items,
-                item;
-
-            while (i < n) {
-                item = items[i] || {};
-                if(item.id == id) {
-                    return i;
-                }
-                i++;
-            }
-
-            return -1;
-        },
-
-        /**
-         * Return all visible items as an array.
-         *
-         * @method getVisibleItems
-         * @return {Array} The array of visible items
-         * @public
-         */
-        getVisibleItems: function () {
-            var carousel = this,
-                i        = carousel.get("firstVisible"),
-                n        = i + carousel.get("numVisible"),
-                r        = [];
-
-            while (i < n) {
-                r.push(carousel.getElementForItem(i));
-                i++;
-            }
-
-            return r;
-        },
-
-        /**
-         * Remove an item at index from the Carousel.
-         *
-         * @method removeItem
-         * @public
-         * @param index {Number} The position to where in the list (starts from
-         * zero).
-         * @return {Boolean} Return true on success, false otherwise
-         */
-        removeItem: function (index) {
-            var carousel = this,
-                item,
-                num      = carousel.get("numItems");
-
-            if (index < 0 || index >= num) {
-                YAHOO.log("Index out of bounds", "error", WidgetName);
-                return false;
-            }
-
-            item = carousel._itemsTable.items.splice(index, 1);
-            if (item && item.length == 1) {
-                carousel._itemsTable.numItems--;
-                carousel.set("numItems", num - 1);
-
-                carousel.fireEvent(itemRemovedEvent,
-                        { item: item[0], pos: index, ev: itemRemovedEvent });
-                return true;
-            }
-
-            return false;
-        },
-
-        /**
-         * Replace an item at index witin Carousel.
-         *
-         * @method replaceItem
-         * @public
-         * @param item {String | Object | HTMLElement} The item to be appended
-         * to the Carousel. If the parameter is a string, it is assumed to be
-         * the content of the newly created item. If the parameter is an
-         * object, it is assumed to supply the content and an optional class
-         * and an optional id of the newly created item.
-         * @param index {Number} The position to where in the list (starts from
-         * zero).
-         * @return {Boolean} Return true on success, false otherwise
-         */
-        replaceItem: function (item, index) {
-            var carousel = this,
-                className,
-                content,
-                elId,
-                numItems = carousel.get("numItems"),
-                oel,
-                el = item;
-
-            if (!item) {
-                return false;
-            }
-
-            if (JS.isString(item) || item.nodeName) {
-                content = item.nodeName ? item.innerHTML : item;
-            } else if (JS.isObject(item)) {
-                content = item.content;
-            } else {
-                YAHOO.log("Invalid argument to replaceItem", "error", WidgetName);
-                return false;
-            }
-
-            if (JS.isUndefined(index)) {
-                YAHOO.log("Index must be defined for replaceItem", "error", WidgetName);
-                return false;
-            } else {
-                if (index < 0 || index >= numItems) {
-                    YAHOO.log("Index out of bounds in replaceItem", "error", WidgetName);
-                    return false;
-                }
-
-                oel = carousel._itemsTable.items[index];
-                if(!oel){
-                    oel = carousel._itemsTable.loading[index];
-                    carousel._itemsTable.items[index] = undefined;
-                }
-
-                carousel._itemsTable.items.splice(index, 1, {
-                    item      : content,
-                    className : item.className || "",
-                    id        : Dom.generateId()
-                });
-
-                el = carousel._itemsTable.items[index];
-            }
-            carousel.fireEvent(itemReplacedEvent,
-                    { newItem: el, oldItem: oel, pos: index, ev: itemReplacedEvent });
-
-            return true;
-        },
-
-        /**
-         * Replace multiple items at specified indexes.
-         * NOTE: item at index must already exist.
-         *
-         * @method replaceItems
-         * @public
-         * @param items {Array} An array containing an array of replacement items each linked to the
-         * index where the substitution should take place.
-         * E.g. [[{content:'<img/>'}, index1], [{content:'<img/>'}, index2]]
-         * @return {Boolean} Return true on success, false otherwise
-         */
-         replaceItems: function (items) {
-             var i, n, rv = true;
-
-             if (!JS.isArray(items)) {
-                 return false;
-             }
-
-             for (i = 0, n = items.length; i < n; i++) {
-                 if (this.replaceItem(items[i][0], items[i][1]) === false) {
-                     rv = false;
-                 }
-             }
-
-             return rv;
-         },
-
-        /**
-         * Render the Carousel.
-         *
-         * @method render
-         * @public
-         * @param appendTo {HTMLElement | String} The element to which the
-         * Carousel should be appended prior to rendering.
-         * @return {Boolean} Status of the operation
-         */
-        render: function (appendTo) {
-            var carousel  = this,
-                cssClass  = carousel.CLASSES,
-                rows = carousel._rows;
-
-            carousel.addClass(cssClass.CAROUSEL);
-
-            if (!carousel._clipEl) {
-                carousel._clipEl = carousel._createCarouselClip();
-                carousel._clipEl.appendChild(carousel._carouselEl);
-            }
-
-            if (appendTo) {
-                carousel.appendChild(carousel._clipEl);
-                carousel.appendTo(appendTo);
-            } else {
-                if (!Dom.inDocument(carousel.get("element"))) {
-                    YAHOO.log("Nothing to render. The container should be " +
-                            "within the document if appendTo is not "       +
-                            "specified", "error", WidgetName);
-                    return false;
-                }
-                carousel.appendChild(carousel._clipEl);
-            }
-
-            if (rows) {
-                Dom.addClass(carousel._clipEl, cssClass.MULTI_ROW);
-            }
-
-            if (carousel.get("isVertical")) {
-                carousel.addClass(cssClass.VERTICAL);
-            } else {
-                carousel.addClass(cssClass.HORIZONTAL);
-            }
-
-            if (carousel.get("numItems") < 1) {
-                YAHOO.log("No items in the Carousel to render", "warn",
-                        WidgetName);
-                return false;
-            }
-
-            carousel._refreshUi();
-
-            return true;
-        },
-
-        /**
-         * Scroll the Carousel by an item backward.
-         *
-         * @method scrollBackward
-         * @public
-         */
-        scrollBackward: function () {
-            var carousel = this;
-            carousel.scrollTo(carousel._firstItem -
-                              carousel.get("scrollIncrement"));
-        },
-
-        /**
-         * Scroll the Carousel by an item forward.
-         *
-         * @method scrollForward
-         * @public
-         */
-        scrollForward: function () {
-            var carousel = this;
-            carousel.scrollTo(carousel._firstItem +
-                              carousel.get("scrollIncrement"));
-        },
-
-        /**
-         * Scroll the Carousel by a page backward.
-         *
-         * @method scrollPageBackward
-         * @public
-         */
-        scrollPageBackward: function () {
-            var carousel = this,
-                isVertical = carousel.get("isVertical"),
-                cols       = carousel._cols,
-                item     = carousel._firstItem - carousel.get("numVisible");
-
-            if (item < 0) { // only account for multi-row when scrolling backwards from item 0
-                if (cols) {
-                    item = carousel._firstItem - cols;
-                }
-            }
-
-            if (carousel.get("selectOnScroll")) {
-                carousel._selectedItem = carousel._getSelectedItem(item);
-            }
-
-            carousel.scrollTo(item);
-        },
-
-        /**
-         * Scroll the Carousel by a page forward.
-         *
-         * @method scrollPageForward
-         * @public
-         */
-        scrollPageForward: function () {
-            var carousel = this,
-                item     = carousel._firstItem + carousel.get("numVisible");
-
-            if (item > carousel.get("numItems")) {
-                item = 0;
-            }
-
-            if (carousel.get("selectOnScroll")) {
-                carousel._selectedItem = carousel._getSelectedItem(item);
-            }
-
-            carousel.scrollTo(item);
-        },
-
-        /**
-         * Scroll the Carousel to make the item the first visible item.
-         *
-         * @method scrollTo
-         * @public
-         * @param item Number The index of the element to position at.
-         * @param dontSelect Boolean True if select should be avoided
-         */
-        scrollTo: function (item, dontSelect) {
-            var carousel   = this, animate, animCfg, isCircular, isVertical,
-                rows, delta, direction, firstItem, lastItem, itemsPerRow,
-                itemsPerCol, numItems, numPerPage, offset, page, rv, sentinel,
-                index, stopAutoScroll,
-                itemsTable = carousel._itemsTable,
-                items = itemsTable.items,
-                loading = itemsTable.loading;
-
-            if (JS.isUndefined(item) || item == carousel._firstItem ||
-                carousel.isAnimating()) {
-                return; // nothing to do!
-            }
-
-            animCfg        = carousel.get("animation");
-            isCircular     = carousel.get("isCircular");
-            isVertical     = carousel.get("isVertical");
-            itemsPerRow    = carousel._cols;
-            itemsPerCol    = carousel._rows;
-            firstItem      = carousel._firstItem;
-            numItems       = carousel.get("numItems");
-            numPerPage     = carousel.get("numVisible");
-            page           = carousel.get("currentPage");
-
-            stopAutoScroll = function () {
-                if (carousel.isAutoPlayOn()) {
-                    carousel.stopAutoPlay();
-                }
-            };
-
-            if (item < 0) {
-                if (isCircular) {
-                    item = numItems + item;
-                } else {
-                    stopAutoScroll.call(carousel);
-                    return;
-                }
-            } else if (numItems > 0 && item > numItems - 1) {
-
-                if (carousel.get("isCircular")) {
-                    item = numItems - item;
-                } else {
-                    stopAutoScroll.call(carousel);
-                    return;
-                }
-            }
-
-            if (isNaN(item)) {
-                return;
-            }
-
-            direction = (carousel._firstItem > item) ? "backward" : "forward";
-
-            sentinel  = firstItem + numPerPage;
-            sentinel  = (sentinel > numItems - 1) ? numItems - 1 : sentinel;
-            rv = carousel.fireEvent(beforeScrollEvent,
-                    { dir: direction, first: firstItem, last: sentinel });
-            if (rv === false) { // scrolling is prevented
-                return;
-            }
-
-            carousel.fireEvent(beforePageChangeEvent, { page: page });
-
-            // call loaditems to check if we have all the items to display
-            lastItem = item + numPerPage - 1;
-            carousel._loadItems(lastItem > numItems-1 ? numItems-1 : lastItem);
-
-            // Calculate the delta relative to the first item, the delta is
-            // always negative.
-            delta = 0 - item;
-
-            if (itemsPerCol) {
-               // offset calculations for multirow Carousel
-                if (isVertical) {
-                    delta = parseInt(delta / itemsPerRow, 10);
-                } else {
-                    delta = parseInt(delta / itemsPerCol, 10);
-                }
-            }
-
-            // adjust for items not yet loaded
-            index = 0;
-            while (delta < 0 && index < item+numPerPage-1 && index < numItems) {
-                if (!items[index] && !loading[index]) {
-                    delta++;
-                }
-                index += itemsPerCol ? itemsPerCol : 1;
-            }
-
-            carousel._firstItem = item;
-            carousel.set("firstVisible", item);
-
-            YAHOO.log("Scrolling to " + item + " delta = " + delta, WidgetName);
-
-            sentinel  = item + numPerPage;
-            sentinel  = (sentinel > numItems - 1) ? numItems - 1 : sentinel;
-
-            offset    = getScrollOffset.call(carousel, delta);
-            YAHOO.log("Scroll offset = " + offset, WidgetName);
-
-            animate   = animCfg.speed > 0;
-
-            if (animate) {
-                carousel._animateAndSetCarouselOffset(offset, item, sentinel,
-                        dontSelect);
-            } else {
-                carousel._setCarouselOffset(offset);
-                updateStateAfterScroll.call(carousel, item, sentinel);
-            }
-        },
-
-        /**
-         * Get the page an item is on within carousel.
-         *
-         * @method getPageForItem
-         * @public
-         * @param index {Number} Index of item
-         * @return {Number} Page item is on
-         */
-        getPageForItem : function(item) {
-            return Math.ceil(
-                (item+1) / parseInt(this.get("numVisible"),10)
-            );
-        },
-
-        /**
-         * Get the first visible item's index on any given page.
-         *
-         * @method getFirstVisibleOnpage
-         * @public
-         * @param page {Number} Page
-         * @return {Number} First item's index
-         */
-        getFirstVisibleOnPage : function(page) {
-            return (page - 1) * this.get("numVisible");
-        },
-
-        /**
-         * Select the previous item in the Carousel.
-         *
-         * @method selectPreviousItem
-         * @public
-         */
-        selectPreviousItem: function () {
-            var carousel = this,
-                newpos   = 0,
-                selected = carousel.get("selectedItem");
-
-            if (selected == this._firstItem) {
-                newpos = selected - carousel.get("numVisible");
-                carousel._selectedItem = carousel._getSelectedItem(selected-1);
-                carousel.scrollTo(newpos);
-            } else {
-                newpos = carousel.get("selectedItem") -
-                         carousel.get("scrollIncrement");
-                carousel.set("selectedItem",carousel._getSelectedItem(newpos));
-            }
-        },
-
-        /**
-         * Select the next item in the Carousel.
-         *
-         * @method selectNextItem
-         * @public
-         */
-        selectNextItem: function () {
-            var carousel = this, newpos = 0;
-
-            newpos = carousel.get("selectedItem") +
-                     carousel.get("scrollIncrement");
-            carousel.set("selectedItem", carousel._getSelectedItem(newpos));
-        },
-
-        /**
-         * Display the Carousel.
-         *
-         * @method show
-         * @public
-         */
-        show: function () {
-            var carousel = this,
-                cssClass = carousel.CLASSES;
-
-            if (carousel.fireEvent(beforeShowEvent) !== false) {
-                carousel.addClass(cssClass.VISIBLE);
-                carousel.fireEvent(showEvent);
-            }
-        },
-
-        /**
-         * Start auto-playing the Carousel.
-         *
-         * @method startAutoPlay
-         * @public
-         */
-        startAutoPlay: function () {
-            var carousel = this, timer;
-
-            if (JS.isUndefined(carousel._autoPlayTimer)) {
-                timer = carousel.get("autoPlayInterval");
-                if (timer <= 0) {
-                    return;
-                }
-                carousel._isAutoPlayInProgress = true;
-                carousel.fireEvent(startAutoPlayEvent);
-                carousel._autoPlayTimer = setTimeout(function () {
-                    carousel._autoScroll();
-                }, timer);
-            }
-        },
-
-        /**
-         * Stop auto-playing the Carousel.
-         *
-         * @method stopAutoPlay
-         * @public
-         */
-        stopAutoPlay: function () {
-            var carousel = this;
-
-            if (!JS.isUndefined(carousel._autoPlayTimer)) {
-                clearTimeout(carousel._autoPlayTimer);
-                delete carousel._autoPlayTimer;
-                carousel._isAutoPlayInProgress = false;
-                carousel.fireEvent(stopAutoPlayEvent);
-            }
-        },
-
-        /**
-         * Update interface's pagination data within a registered template.
-         *
-         * @method updatePagination
-         * @public
-         */
-        updatePagination: function () {
-            var carousel = this,
-                pagination = carousel._pagination;
-            if(!pagination.el){ return false; }
-
-            var numItems = carousel.get('numItems'),
-                numVisible = carousel.get('numVisible'),
-                firstVisible = carousel.get('firstVisible')+1,
-                currentPage = carousel.get('currentPage')+1,
-                numPages = carousel.get('numPages'),
-                replacements = {
-                    'numVisible' : numVisible,
-                    'numPages' : numPages,
-                    'numItems' : numItems,
-                    'selectedItem' : carousel.get('selectedItem')+1,
-                    'currentPage' : currentPage,
-                    'firstVisible' : firstVisible,
-                    'lastVisible' : carousel.get("lastVisible")+1
-                },
-                cb = pagination.callback || {},
-                scope = cb.scope && cb.obj ? cb.obj : carousel;
-
-            pagination.el.innerHTML = JS.isFunction(cb.fn) ? cb.fn.apply(scope, [pagination.template, replacements]) : YAHOO.lang.substitute(pagination.template, replacements);
-        },
-
-        /**
-         * Register carousels pagination template, append to interface, and populate.
-         *
-         * @method registerPagination
-         * @param template {String} Pagination template as passed to lang.substitute
-         * @public
-         */
-        registerPagination: function (tpl, pos, cb) {
-            var carousel = this;
-
-            carousel._pagination.template = tpl;
-            carousel._pagination.callback = cb || {};
-
-            if(!carousel._pagination.el){
-                carousel._pagination.el = createElement('DIV', {className:carousel.CLASSES.PAGINATION});
-
-                if(pos == "before"){
-                    carousel._navEl.insertBefore(carousel._pagination.el, carousel._navEl.firstChild);
-                } else {
-                    carousel._navEl.appendChild(carousel._pagination.el);
-                }
-
-                carousel.on('itemSelected', carousel.updatePagination);
-                carousel.on('pageChange', carousel.updatePagination);
-            }
-
-            carousel.updatePagination();
-        },
-
-        /**
-         * Return the string representation of the Carousel.
-         *
-         * @method toString
-         * @public
-         * @return {String}
-         */
-        toString: function () {
-            return WidgetName + (this.get ? " (#" + this.get("id") + ")" : "");
-        },
-
-        /*
-         * Protected methods of the Carousel component
-         */
-
-        /**
-         * Set the Carousel offset to the passed offset after animating.
-         *
-         * @method _animateAndSetCarouselOffset
-         * @param {Integer} offset The offset to which the Carousel has to be
-         * scrolled to.
-         * @param {Integer} item The index to which the Carousel will scroll.
-         * @param {Integer} sentinel The last element in the view port.
-         * @protected
-         */
-        _animateAndSetCarouselOffset: function (offset, item, sentinel) {
-            var carousel = this,
-                animCfg  = carousel.get("animation"),
-                animObj  = null;
-
-            if (carousel.get("isVertical")) {
-                animObj = new YAHOO.util.Motion(carousel._carouselEl,
-                        { top: { to: offset } },
-                        animCfg.speed, animCfg.effect);
-            } else {
-                animObj = new YAHOO.util.Motion(carousel._carouselEl,
-                        { left: { to: offset } },
-                        animCfg.speed, animCfg.effect);
-            }
-
-            carousel._isAnimationInProgress = true;
-            animObj.onComplete.subscribe(carousel._animationCompleteHandler,
-                                         { scope: carousel, item: item,
-                                           last: sentinel });
-            animObj.animate();
-        },
-
-        /**
-         * Handle the animation complete event.
-         *
-         * @method _animationCompleteHandler
-         * @param {Event} ev The event.
-         * @param {Array} p The event parameters.
-         * @param {Object} o The object that has the state of the Carousel
-         * @protected
-         */
-        _animationCompleteHandler: function (ev, p, o) {
-            o.scope._isAnimationInProgress = false;
-            updateStateAfterScroll.call(o.scope, o.item, o.last);
-        },
-
-        /**
-         * Automatically scroll the contents of the Carousel.
-         * @method _autoScroll
-         * @protected
-         */
-        _autoScroll: function() {
-            var carousel  = this,
-                currIndex = carousel._firstItem,
-                index;
-
-            if (currIndex >= carousel.get("numItems") - 1) {
-                if (carousel.get("isCircular")) {
-                    index = 0;
-                } else {
-                    carousel.stopAutoPlay();
-                }
-            } else {
-                index = currIndex + carousel.get("numVisible");
-            }
-
-            carousel._selectedItem = carousel._getSelectedItem(index);
-            carousel.scrollTo.call(carousel, index);
-        },
-
-        /**
-         * Create the Carousel.
-         *
-         * @method createCarousel
-         * @param elId {String} The id of the element to be created
-         * @protected
-         */
-        _createCarousel: function (elId) {
-            var carousel = this,
-                cssClass = carousel.CLASSES,
-                el       = Dom.get(elId);
-
-            if (!el) {
-                el = createElement("DIV", {
-                        className : cssClass.CAROUSEL,
-                        id        : elId
-                });
-            }
-
-            if (!carousel._carouselEl) {
-                carousel._carouselEl=createElement(carousel.get("carouselEl"),
-                        { className: cssClass.CAROUSEL_EL });
-            }
-
-            return el;
-        },
-
-        /**
-         * Create the Carousel clip container.
-         *
-         * @method createCarouselClip
-         * @protected
-         */
-        _createCarouselClip: function () {
-            return createElement("DIV", { className: this.CLASSES.CONTENT });
-        },
-
-        /**
-         * Create the Carousel item.
-         *
-         * @method createCarouselItem
-         * @param obj {Object} The attributes of the element to be created
-         * @protected
-         */
-        _createCarouselItem: function (obj) {
-            var attr, carousel = this,
-                styles = getCarouselItemPosition.call(carousel, obj.pos);
-
-            return createElement(carousel.get("carouselItemEl"), {
-                    className : obj.className,
-                    styles    : obj.styles,
-                    content   : obj.content,
-                    id        : obj.id
-            });
-        },
-
-        /**
-         * Return a valid item for a possibly out of bounds index considering
-         * the isCircular property.
-         *
-         * @method _getValidIndex
-         * @param index {Number} The index of the item to be returned
-         * @return {Object} Return a valid item index
-         * @protected
-         */
-        _getValidIndex: function (index) {
-            var carousel   = this,
-                isCircular = carousel.get("isCircular"),
-                numItems   = carousel.get("numItems"),
-                numVisible = carousel.get("numVisible"),
-                sentinel   = numItems - 1;
-
-            if (index < 0) {
-                index = isCircular ?
-                        Math.ceil(numItems/numVisible)*numVisible + index : 0;
-            } else if (index > sentinel) {
-                index = isCircular ? 0 : sentinel;
-            }
-
-            return index;
-        },
-
-        /**
-         * Get the value for the selected item.
-         *
-         * @method _getSelectedItem
-         * @param val {Number} The new value for "selected" item
-         * @return {Number} The new value that would be set
-         * @protected
-         */
-        _getSelectedItem: function (val) {
-            var carousel   = this,
-                isCircular = carousel.get("isCircular"),
-                numItems   = carousel.get("numItems"),
-                sentinel   = numItems - 1;
-
-            if (val < 0) {
-                if (isCircular) {
-                    val = numItems + val;
-                } else {
-                    val = carousel.get("selectedItem");
-                }
-            } else if (val > sentinel) {
-                if (isCircular) {
-                    val = val - numItems;
-                } else {
-                    val = carousel.get("selectedItem");
-                }
-            }
-            return val;
-        },
-
-        /**
-         * The "click" handler for the item.
-         *
-         * @method _itemClickHandler
-         * @param {Event} ev The event object
-         * @protected
-         */
-        _itemClickHandler: function (ev) {
-            var carousel     = this,
-                carouselItem = carousel.get("carouselItemEl"),
-                container    = carousel.get("element"),
-                el,
-                item,
-                target       = Event.getTarget(ev),
-                tag          = target.tagName.toUpperCase();
-
-            if(tag === "INPUT" ||
-               tag === "SELECT" ||
-               tag === "TEXTAREA") {
-                return;
-            }
-
-            while (target && target != container &&
-                   target.id != carousel._carouselEl) {
-                el = target.nodeName;
-                if (el.toUpperCase() == carouselItem) {
-                    break;
-                }
-                target = target.parentNode;
-            }
-
-            if ((item = carousel.getItemPositionById(target.id)) >= 0) {
-                YAHOO.log("Setting selection to " + item, WidgetName);
-                carousel.set("selectedItem", carousel._getSelectedItem(item));
-                carousel.focus();
-            }
-        },
-
-        /**
-         * The keyboard event handler for Carousel.
-         *
-         * @method _keyboardEventHandler
-         * @param ev {Event} The event that is being handled.
-         * @protected
-         */
-        _keyboardEventHandler: function (ev) {
-            var carousel = this,
-                key      = Event.getCharCode(ev),
-                target   = Event.getTarget(ev),
-                prevent  = false;
-
-            // do not mess while animation is in progress or naving via select
-            if (carousel.isAnimating() || target.tagName.toUpperCase() === "SELECT") {
-                return;
-            }
-
-            switch (key) {
-            case 0x25:          // left arrow
-            case 0x26:          // up arrow
-                carousel.selectPreviousItem();
-                prevent = true;
-                break;
-            case 0x27:          // right arrow
-            case 0x28:          // down arrow
-                carousel.selectNextItem();
-                prevent = true;
-                break;
-            case 0x21:          // page-up
-                carousel.scrollPageBackward();
-                prevent = true;
-                break;
-            case 0x22:          // page-down
-                carousel.scrollPageForward();
-                prevent = true;
-                break;
-            }
-
-            if (prevent) {
-                if (carousel.isAutoPlayOn()) {
-                    carousel.stopAutoPlay();
-                }
-                Event.preventDefault(ev);
-            }
-        },
-
-        /**
-         * The load the required set of items that are needed for display.
-         *
-         * @method _loadItems
-         * @protected
-         */
-        _loadItems: function(last) {
-            var carousel    = this,
-                numItems    = carousel.get("numItems"),
-                numVisible  = carousel.get("numVisible"),
-                reveal      = carousel.get("revealAmount"),
-                first       = carousel._itemsTable.items.length,
-                lastVisible = carousel.get("lastVisible");
-
-            // adjust if going backwards
-            if(first > last && last+1 >= numVisible){
-                // need to get first a bit differently for the last page
-                first = last % numVisible || last == lastVisible ? last - last % numVisible : last - numVisible + 1;
-            }
-
-            if(reveal && last < numItems - 1){ last++; }
-
-            if (last >= first && (!carousel.getItem(first) || !carousel.getItem(last))) {
-                carousel.fireEvent(loadItemsEvent, {
-                        ev: loadItemsEvent, first: first, last: last,
-                        num: last - first + 1
-                });
-            }
-
-        },
-
-        /**
-         * The "onchange" handler for select box pagination.
-         *
-         * @method _pagerChangeHandler
-         * @param {Event} ev The event object
-         * @protected
-         */
-         _pagerChangeHandler: function (ev) {
-            var carousel = this,
-                target = Event.getTarget(ev),
-                 page = target.value,
-                 item;
-
-             if (page) {
-                 item = carousel.getFirstVisibleOnPage(page);
-                 carousel._selectedItem = item;
-                 carousel.scrollTo(item);
-                 carousel.focus();
-            }
-          },
-        /**
-         * The "click" handler for anchor pagination.
-         *
-         * @method _pagerClickHandler
-         * @param {Event} ev The event object
-         * @protected
-         */
-         _pagerClickHandler: function (ev) {
-             var carousel = this,
-                 css = carousel.CLASSES,
-                 target = Event.getTarget(ev),
-                 elNode = target.nodeName.toUpperCase(),
-                 val,
-                 stringIndex,
-                 page,
-                 item;
-
-             if (Dom.hasClass(target, css.PAGER_ITEM) || Dom.hasClass(target.parentNode, css.PAGER_ITEM))  {
-                 if (elNode == "EM") {
-                     target = target.parentNode;// item is an em and not an anchor (when text is visible)
-                 }
-                 val = target.href;
-                 stringIndex = val.lastIndexOf("#");
-                 page =  parseInt(val.substring(stringIndex+1), 10);
-                    if (page != -1) {
-                     item = carousel.getFirstVisibleOnPage(page);
-                     carousel._selectedItem = item;
-                     carousel.scrollTo(item);
-                            carousel.focus();
-                        }
-                        Event.preventDefault(ev);
-                    }
-        },
-
-        /**
-         * Find the Carousel within a container. The Carousel is identified by
-         * the first element that matches the carousel element tag or the
-         * element that has the Carousel class.
-         *
-         * @method parseCarousel
-         * @param parent {HTMLElement} The parent element to look under
-         * @return {Boolean} True if Carousel is found, false otherwise
-         * @protected
-         */
-        _parseCarousel: function (parent) {
-            var carousel = this, child, cssClass, domEl, found, node;
-
-            cssClass  = carousel.CLASSES;
-            domEl     = carousel.get("carouselEl");
-            found     = false;
-
-            for (child = parent.firstChild; child; child = child.nextSibling) {
-                if (child.nodeType == 1) {
-                    node = child.nodeName;
-                    if (node.toUpperCase() == domEl) {
-                        carousel._carouselEl = child;
-                        Dom.addClass(carousel._carouselEl,
-                                     carousel.CLASSES.CAROUSEL_EL);
-                        YAHOO.log("Found Carousel - " + node +
-                                (child.id ? " (#" + child.id + ")" : ""),
-                                WidgetName);
-                        found = true;
-                    }
-                }
-            }
-
-            return found;
-        },
-
-        /**
-         * Find the items within the Carousel and add them to the items table.
-         * A Carousel item is identified by elements that matches the carousel
-         * item element tag.
-         *
-         * @method parseCarouselItems
-         * @protected
-         */
-        _parseCarouselItems: function () {
-            var carousel = this,
-                cssClass = carousel.CLASSES,
-                i=0,
-                rows,
-                child,
-                domItemEl,
-                elId,
-                node,
-                index = carousel.get("firstVisible"),
-                parent   = carousel._carouselEl;
-
-            rows = carousel._rows;
-            domItemEl = carousel.get("carouselItemEl");
-
-            for (child = parent.firstChild; child; child = child.nextSibling) {
-                if (child.nodeType == 1) {
-                    node = child.nodeName;
-                    if (node.toUpperCase() == domItemEl) {
-                        if (child.id) {
-                            elId = child.id;
-                        } else {
-                            elId = Dom.generateId();
-                            child.setAttribute("id", elId);
-                        }
-                        carousel.addItem(child,index);
-                        index++;
-                    }
-                }
-            }
-        },
-
-        /**
-         * Find the Carousel navigation within a container. The navigation
-         * elements need to match the carousel navigation class names.
-         *
-         * @method parseCarouselNavigation
-         * @param parent {HTMLElement} The parent element to look under
-         * @return {Boolean} True if at least one is found, false otherwise
-         * @protected
-         */
-        _parseCarouselNavigation: function (parent) {
-            var carousel = this,
-                cfg,
-                cssClass = carousel.CLASSES,
-                el,
-                i,
-                j,
-                nav,
-                rv       = false;
-
-            nav = Dom.getElementsByClassName(cssClass.PREV_PAGE, "*", parent);
-            if (nav.length > 0) {
-                for (i in nav) {
-                    if (nav.hasOwnProperty(i)) {
-                        el = nav[i];
-                        YAHOO.log("Found Carousel previous page navigation - " +
-                                el + (el.id ? " (#" + el.id + ")" : ""),
-                                WidgetName);
-                        if (el.nodeName == "INPUT" ||
-                            el.nodeName == "BUTTON" ||
-                            el.nodeName == "A") {// Anchor support in Nav (for SEO)
-                            carousel._navBtns.prev.push(el);
-                        } else {
-                            j = el.getElementsByTagName("INPUT");
-                            if (JS.isArray(j) && j.length > 0) {
-                                carousel._navBtns.prev.push(j[0]);
-                            } else {
-                                j = el.getElementsByTagName("BUTTON");
-                                if (JS.isArray(j) && j.length > 0) {
-                                    carousel._navBtns.prev.push(j[0]);
-                                }
-                            }
-                        }
-                    }
-                }
-                cfg = { prev: nav };
-            }
-
-            nav = Dom.getElementsByClassName(cssClass.NEXT_PAGE, "*", parent);
-            if (nav.length > 0) {
-                for (i in nav) {
-                    if (nav.hasOwnProperty(i)) {
-                        el = nav[i];
-                        YAHOO.log("Found Carousel next page navigation - " +
-                                el + (el.id ? " (#" + el.id + ")" : ""),
-                                WidgetName);
-                        if (el.nodeName == "INPUT" ||
-                            el.nodeName == "BUTTON" ||
-                            el.nodeName == "A") {// Anchor support in Nav (for SEO)
-                            carousel._navBtns.next.push(el);
-                        } else {
-                            j = el.getElementsByTagName("INPUT");
-                            if (JS.isArray(j) && j.length > 0) {
-                                carousel._navBtns.next.push(j[0]);
-                            } else {
-                                j = el.getElementsByTagName("BUTTON");
-                                if (JS.isArray(j) && j.length > 0) {
-                                    carousel._navBtns.next.push(j[0]);
-                                }
-                            }
-                        }
-                    }
-                }
-                if (cfg) {
-                    cfg.next = nav;
-                } else {
-                    cfg = { next: nav };
-                }
-            }
-
-            if (cfg) {
-                carousel.set("navigation", cfg);
-                rv = true;
-            }
-
-            return rv;
-        },
-
-        /**
-         * Refresh the widget UI if it is not already rendered, on first item
-         * addition.
-         *
-         * @method _refreshUi
-         * @protected
-         */
-        _refreshUi: function () {
-            var carousel = this, i, isVertical = carousel.get("isVertical"), firstVisible = carousel.get("firstVisible"), item, n, rsz, sz;
-
-            if (carousel._itemsTable.numItems < 1) {
-                return;
-            }
-
-            sz  = getCarouselItemSize.call(carousel,
-                    isVertical ? "height" : "width");
-            // This fixes the widget to auto-adjust height/width for absolute
-            // positioned children.
-            item = carousel._itemsTable.items[firstVisible].id;
-
-            sz   = isVertical ? getStyle(item, "width") :
-                    getStyle(item, "height");
-
-            Dom.setStyle(carousel._carouselEl,
-                         isVertical ? "width" : "height", sz + "px");
-
-            // Set the rendered state appropriately.
-            carousel._hasRendered = true;
-            carousel.fireEvent(renderEvent);
-        },
-
-        /**
-         * Set the Carousel offset to the passed offset.
-         *
-         * @method _setCarouselOffset
-         * @protected
-         */
-        _setCarouselOffset: function (offset) {
-            var carousel = this, which;
-
-            which = carousel.get("isVertical") ? "top" : "left";
-            Dom.setStyle(carousel._carouselEl, which, offset + "px");
-        },
-
-        /**
-         * Setup/Create the Carousel navigation element (if needed).
-         *
-         * @method _setupCarouselNavigation
-         * @protected
-         */
-        _setupCarouselNavigation: function () {
-            var carousel = this,
-                btn, cfg, cssClass, nav, navContainer, nextButton, prevButton;
-
-            cssClass = carousel.CLASSES;
-
-            // TODO: can the _navBtns be tested against instead?
-            navContainer = Dom.getElementsByClassName(cssClass.NAVIGATION,
-                    "DIV", carousel.get("element"));
-
-            if (navContainer.length === 0) {
-                navContainer = createElement("DIV",
-                        { className: cssClass.NAVIGATION });
-                carousel.insertBefore(navContainer,
-                        Dom.getFirstChild(carousel.get("element")));
-            } else {
-                navContainer = navContainer[0];
-            }
-
-            carousel._pages.el = createElement("UL");
-            navContainer.appendChild(carousel._pages.el);
-
-            nav = carousel.get("navigation");
-            if (JS.isString(nav.prev) || JS.isArray(nav.prev)) {
-                if (JS.isString(nav.prev)) {
-                    nav.prev = [nav.prev];
-                }
-                for (btn in nav.prev) {
-                    if (nav.prev.hasOwnProperty(btn)) {
-                        carousel._navBtns.prev.push(Dom.get(nav.prev[btn]));
-                    }
-                }
-            } else {
-                // TODO: separate method for creating a navigation button
-                prevButton = createElement("SPAN",
-                        { className: cssClass.BUTTON + cssClass.FIRST_NAV });
-                // XXX: for IE 6.x
-                Dom.setStyle(prevButton, "visibility", "visible");
-                btn = Dom.generateId();
-                prevButton.innerHTML = "<button type=\"button\" "      +
-                        "id=\"" + btn + "\" name=\""                   +
-                        carousel.STRINGS.PREVIOUS_BUTTON_TEXT + "\">"  +
-                        carousel.STRINGS.PREVIOUS_BUTTON_TEXT + "</button>";
-                navContainer.appendChild(prevButton);
-                btn = Dom.get(btn);
-                carousel._navBtns.prev = [btn];
-                cfg = { prev: [prevButton] };
-            }
-
-            if (JS.isString(nav.next) || JS.isArray(nav.next)) {
-                if (JS.isString(nav.next)) {
-                    nav.next = [nav.next];
-                }
-                for (btn in nav.next) {
-                    if (nav.next.hasOwnProperty(btn)) {
-                        carousel._navBtns.next.push(Dom.get(nav.next[btn]));
-                    }
-                }
-            } else {
-                // TODO: separate method for creating a navigation button
-                nextButton = createElement("SPAN",
-                        { className: cssClass.BUTTON + cssClass.NEXT_NAV });
-                // XXX: for IE 6.x
-                Dom.setStyle(nextButton, "visibility", "visible");
-                btn = Dom.generateId();
-                nextButton.innerHTML = "<button type=\"button\" "      +
-                        "id=\"" + btn + "\" name=\""                   +
-                        carousel.STRINGS.NEXT_BUTTON_TEXT + "\">"      +
-                        carousel.STRINGS.NEXT_BUTTON_TEXT + "</button>";
-                navContainer.appendChild(nextButton);
-                btn = Dom.get(btn);
-                carousel._navBtns.next = [btn];
-                if (cfg) {
-                    cfg.next = [nextButton];
-                } else {
-                    cfg = { next: [nextButton] };
-                }
-            }
-
-            if (cfg) {
-                carousel.set("navigation", cfg);
-            }
-
-            return navContainer;
-        },
-
-        /**
-         * Set the clip container size (based on the new numVisible value).
-         *
-         * @method _setClipContainerSize
-         * @param clip {HTMLElement} The clip container element.
-         * @param num {Number} optional The number of items per page.
-         * @protected
-         */
-        _setClipContainerSize: function (clip, num) {
-            var carousel   = this,
-                isVertical = carousel.get("isVertical"),
-                rows       = carousel._rows,
-                cols       = carousel._cols,
-                reveal     = carousel.get("revealAmount"),
-                itemHeight = getCarouselItemSize.call(carousel, "height"),
-                itemWidth  = getCarouselItemSize.call(carousel, "width"),
-                containerHeight,
-                containerWidth;
-
-            clip = clip || carousel._clipEl;
-
-            if (rows) {
-                 containerHeight = itemHeight * rows;
-                 containerWidth  = itemWidth  * cols;
-            } else {
-                num = num || carousel.get("numVisible");
-                if (isVertical) {
-                    containerHeight = itemHeight * num;
-                } else {
-                    containerWidth  = itemWidth  * num;
-                }
-            }
-
-            // TODO: try to re-use the _hasRendered indicator
-
-            carousel._recomputeSize = (containerHeight === 0); // bleh!
-            if (carousel._recomputeSize) {
-                carousel._hasRendered = false;
-                return;             // no use going further, bail out!
-            }
-
-            reveal = getRevealSize.call(carousel);
-            if (isVertical) {
-                containerHeight += (reveal * 2);
-            } else {
-                containerWidth  += (reveal * 2);
-            }
-
-            if (isVertical) {
-                containerHeight += getDimensions(carousel._carouselEl,"height");
-                Dom.setStyle(clip, "height", containerHeight + "px");
-                // For multi-row Carousel
-                if (cols) {
-                    containerWidth += getDimensions(carousel._carouselEl,
-                            "width");
-                    Dom.setStyle(clip, "width", containerWidth + (0) + "px");
-                }
-            } else {
-                containerWidth += getDimensions(carousel._carouselEl, "width");
-                Dom.setStyle(clip, "width", containerWidth + "px");
-                // For multi-row Carousel
-                if (rows) {
-                    containerHeight += getDimensions(carousel._carouselEl,
-                            "height");
-                    Dom.setStyle(clip, "height", containerHeight + "px");
-                }
-            }
-
-            carousel._setContainerSize(clip); // adjust the container size too
-        },
-
-        /**
-         * Set the container size.
-         *
-         * @method _setContainerSize
-         * @param clip {HTMLElement} The clip container element.
-         * @param attr {String} Either set the height or width.
-         * @protected
-         */
-        _setContainerSize: function (clip, attr) {
-            var carousel = this,
-                config   = carousel.CONFIG,
-                cssClass = carousel.CLASSES,
-                isVertical,
-                rows,
-                cols,
-                size;
-
-            isVertical = carousel.get("isVertical");
-            rows       = carousel._rows;
-            cols       = carousel._cols;
-            clip       = clip || carousel._clipEl;
-            attr       = attr || (isVertical ? "height" : "width");
-            size       = parseFloat(Dom.getStyle(clip, attr), 10);
-
-            size = JS.isNumber(size) ? size : 0;
-
-            if (isVertical) {
-                size += getDimensions(carousel._carouselEl, "height") +
-                        getStyle(carousel._navEl, "height");
-            } else {
-                size += getDimensions(carousel._carouselEl, "width");
-            }
-
-            if (!isVertical) {
-                if (size < config.HORZ_MIN_WIDTH) {
-                    size = config.HORZ_MIN_WIDTH;
-                    carousel.addClass(cssClass.MIN_WIDTH);
-                }
-            }
-            carousel.setStyle(attr,  size + "px");
-
-            // Additionally the width of the container should be set for
-            // the vertical Carousel
-            if (isVertical) {
-                size = getCarouselItemSize.call(carousel, "width");
-                if(cols) {
-                    size = size * cols;
-                }
-                Dom.setStyle(carousel._carouselEl, "width", size + "px");// Bug fix for vertical carousel (goes in conjunction with .yui-carousel-element {... 3200px removed from styles), and allows for multirows in IEs).
-                if (size < config.VERT_MIN_WIDTH) {
-                    size = config.VERT_MIN_WIDTH;
-                    carousel.addClass(cssClass.MIN_WIDTH);// set a min width on vertical carousel, don't see why this shouldn't always be set...
-                }
-                carousel.setStyle("width",  size + "px");
-            } else {
-                if(rows) {
-                    size = getCarouselItemSize.call(carousel, "height");
-                    size = size * rows;
-                    Dom.setStyle(carousel._carouselEl, "height", size + "px");
-                }
-            }
-        },
-
-        /**
-         * Set the value for the Carousel's first visible item.
-         *
-         * @method _setFirstVisible
-         * @param val {Number} The new value for firstVisible
-         * @return {Number} The new value that would be set
-         * @protected
-         */
-        _setFirstVisible: function (val) {
-            var carousel = this;
-
-            if (val >= 0 && val < carousel.get("numItems")) {
-                carousel.scrollTo(val);
-            } else {
-                val = carousel.get("firstVisible");
-            }
-            return val;
-        },
-
-        /**
-         * Set the value for the Carousel's navigation.
-         *
-         * @method _setNavigation
-         * @param cfg {Object} The navigation configuration
-         * @return {Object} The new value that would be set
-         * @protected
-         */
-        _setNavigation: function (cfg) {
-            var carousel = this;
-
-            if (cfg.prev) {
-                Event.on(cfg.prev, "click", scrollPageBackward, carousel);
-            }
-            if (cfg.next) {
-                Event.on(cfg.next, "click", scrollPageForward, carousel);
-            }
-        },
-
-        /**
-         * Clip the container size every time numVisible is set.
-         *
-         * @method _setNumVisible
-         * @param val {Number} The new value for numVisible
-         * @return {Number} The new value that would be set
-         * @protected
-         */
-        _setNumVisible: function (val) { // TODO: _setNumVisible should just be reserved for setting numVisible.
-            var carousel = this;
-
-            carousel._setClipContainerSize(carousel._clipEl, val);
-        },
-
-        /**
-         * Set the value for the number of visible items in the Carousel.
-         *
-         * @method _numVisibleSetter
-         * @param val {Number} The new value for numVisible
-         * @return {Number} The new value that would be set
-         * @protected
-         */
-        _numVisibleSetter: function (val) {
-            var carousel = this,
-                numVisible = val;
-
-            if(JS.isArray(val)) {
-                carousel._cols = val[0];
-                carousel._rows = val[1];
-                numVisible = val[0] *  val[1];
-            }
-            return numVisible;
-        },
-
-        /**
-         * Set the value for selectedItem.
-         *
-         * @method _selectedItemSetter
-         * @param val {Number} The new value for selectedItem
-         * @return {Number} The new value that would be set
-         * @protected
-         */
-        _selectedItemSetter: function (val) {
-            var carousel = this;
-            return (val < carousel.get("numItems")) ? val : 0;
-        },
-
-        /**
-         * Set the number of items in the Carousel.
-         * Warning: Setting this to a lower number than the current removes
-         * items from the end.
-         *
-         * @method _setNumItems
-         * @param val {Number} The new value for numItems
-         * @return {Number} The new value that would be set
-         * @protected
-         */
-        _setNumItems: function (val) {
-            var carousel = this,
-                num      = carousel._itemsTable.numItems;
-
-            if (JS.isArray(carousel._itemsTable.items)) {
-                if (carousel._itemsTable.items.length != num) { // out of sync
-                    num = carousel._itemsTable.items.length;
-                    carousel._itemsTable.numItems = num;
-                }
-            }
-
-            if (val < num) {
-                while (num > val) {
-                    carousel.removeItem(num - 1);
-                    num--;
-                }
-            }
-
-            return val;
-        },
-
-        /**
-         * Set the orientation of the Carousel.
-         *
-         * @method _setOrientation
-         * @param val {Boolean} The new value for isVertical
-         * @return {Boolean} The new value that would be set
-         * @protected
-         */
-        _setOrientation: function (val) {
-            var carousel = this,
-                cssClass = carousel.CLASSES;
-
-            if (val) {
-                carousel.replaceClass(cssClass.HORIZONTAL, cssClass.VERTICAL);
-            } else {
-                carousel.replaceClass(cssClass.VERTICAL, cssClass.HORIZONTAL);
-            }
-            this._itemAttrCache = {}; // force recomputed next time
-
-            return val;
-        },
-
-        /**
-         * Set the value for the reveal amount percentage in the Carousel.
-         *
-         * @method _setRevealAmount
-         * @param val {Number} The new value for revealAmount
-         * @return {Number} The new value that would be set
-         * @protected
-         */
-        _setRevealAmount: function (val) {
-            var carousel = this;
-
-            if (val >= 0 && val <= 100) {
-                val = parseInt(val, 10);
-                val = JS.isNumber(val) ? val : 0;
-                carousel._setClipContainerSize();
-            } else {
-                val = carousel.get("revealAmount");
-            }
-            return val;
-        },
-
-        /**
-         * Set the value for the selected item.
-         *
-         * @method _setSelectedItem
-         * @param val {Number} The new value for "selected" item
-         * @protected
-         */
-        _setSelectedItem: function (val) {
-            this._selectedItem = val;
-        },
-
-        /**
-         * Get the total number of pages.
-         *
-         * @method _getNumPages
-         * @protected
-         */
-        _getNumPages: function () {
-            return Math.ceil(
-                parseInt(this.get("numItems"),10) / parseInt(this.get("numVisible"),10)
-            );
-        },
-
-        /**
-         * Get the index of the last visible item
-         *
-         * @method _getLastVisible
-         * @protected
-         */
-        _getLastVisible: function () {
-            var carousel = this;
-            return carousel.get("currentPage") + 1 == carousel.get("numPages") ?
-                   carousel.get("numItems") - 1:
-                   carousel.get("firstVisible") + carousel.get("numVisible") - 1;
-        },
-
-        /**
-         * Synchronize and redraw the UI after an item is added.
-         *
-         * @method _syncUiForItemAdd
-         * @protected
-         */
-        _syncUiForItemAdd: function (obj) {
-            var attr,
-                carousel   = this,
-                carouselEl = carousel._carouselEl,
-                el,
-                item,
-                itemsTable = carousel._itemsTable,
-                oel,
-                pos,
-                sibling,
-                styles;
-
-            pos  = JS.isUndefined(obj.pos) ?
-                   obj.newPos || itemsTable.numItems - 1 : obj.pos;
-
-            if (!oel) {
-                item = itemsTable.items[pos] || {};
-                el = carousel._createCarouselItem({
-                        className : item.className,
-                        styles    : item.styles,
-                        content   : item.item,
-                        id        : item.id,
-                        pos       : pos
-                });
-                if (JS.isUndefined(obj.pos)) {
-                    if (!JS.isUndefined(itemsTable.loading[pos])) {
-                        oel = itemsTable.loading[pos];
-                        // if oel is null, it is a problem ...
-                    }
-                    if (oel) {
-                        // replace the node
-                        carouselEl.replaceChild(el, oel);
-                        // ... and remove the item from the data structure
-                        delete itemsTable.loading[pos];
-                    } else {
-                        carouselEl.appendChild(el);
-                    }
-                } else {
-                    if (!JS.isUndefined(itemsTable.items[obj.pos + 1])) {
-                        sibling = Dom.get(itemsTable.items[obj.pos + 1].id);
-                    }
-                    if (sibling) {
-                        carouselEl.insertBefore(el, sibling);
-                    } else {
-                        YAHOO.log("Unable to find sibling","error",WidgetName);
-                    }
-                }
-            } else {
-                if (JS.isUndefined(obj.pos)) {
-                    if (!Dom.isAncestor(carousel._carouselEl, oel)) {
-                        carouselEl.appendChild(oel);
-                    }
-                } else {
-                    if (!Dom.isAncestor(carouselEl, oel)) {
-                        if (!JS.isUndefined(itemsTable.items[obj.pos + 1])) {
-                            carouselEl.insertBefore(oel,
-                                    Dom.get(itemsTable.items[obj.pos + 1].id));
-                        }
-                    }
-                }
-            }
-
-            if (!carousel._hasRendered) {
-                carousel._refreshUi();
-            }
-
-            if (carousel.get("selectedItem") < 0) {
-                carousel.set("selectedItem", carousel.get("firstVisible"));
-            }
-
-            carousel._syncUiItems();
-        },
-
-        /**
-         * Synchronize and redraw the UI after an item is replaced.
-         *
-         * @method _syncUiForItemReplace
-         * @protected
-         */
-        _syncUiForItemReplace: function (o) {
-            var carousel   = this,
-                carouselEl = carousel._carouselEl,
-                itemsTable = carousel._itemsTable,
-                pos        = o.pos,
-                item       = o.newItem,
-                oel        = o.oldItem,
-                el;
-
-            el = carousel._createCarouselItem({
-                className : item.className,
-                styles    : item.styles,
-                content   : item.item,
-                id        : item.id,
-                pos       : pos
-            });
-
-            if(el && oel) {
-                Event.purgeElement(oel, true);
-                carouselEl.replaceChild(el, Dom.get(oel.id));
-                if (!JS.isUndefined(itemsTable.loading[pos])) {
-                    itemsTable.numItems++;
-                    delete itemsTable.loading[pos];
-                }
-            }
-            // TODO: should we add the item if oel is undefined?
-
-            if (!carousel._hasRendered) {
-                carousel._refreshUi();
-            }
-
-            carousel._syncUiItems();
-        },
-
-        /**
-         * Synchronize and redraw the UI after an item is removed.
-         *
-         * @method _syncUiForItemAdd
-         * @protected
-         */
-        _syncUiForItemRemove: function (obj) {
-            var carousel   = this,
-                carouselEl = carousel._carouselEl,
-                el, item, num, pos;
-
-            num  = carousel.get("numItems");
-            item = obj.item;
-            pos  = obj.pos;
-
-            if (item && (el = Dom.get(item.id))) {
-                if (el && Dom.isAncestor(carouselEl, el)) {
-                    Event.purgeElement(el, true);
-                    carouselEl.removeChild(el);
-                }
-
-                if (carousel.get("selectedItem") == pos) {
-                    pos = pos >= num ? num - 1 : pos;
-                }
-            } else {
-                YAHOO.log("Unable to find item", "warn", WidgetName);
-            }
-
-            carousel._syncUiItems();
-        },
-
-        /**
-         * Synchronize and redraw the UI for lazy loading.
-         *
-         * @method _syncUiForLazyLoading
-         * @protected
-         */
-        _syncUiForLazyLoading: function (obj) {
-            var carousel   = this,
-                carouselEl = carousel._carouselEl,
-                itemsTable = carousel._itemsTable,
-                len = itemsTable.items.length,
-                sibling = itemsTable.items[obj.last + 1],
-                el,
-                j;
-
-            // attempt to find the next closest sibling
-            if(!sibling && obj.last < len){
-                j = obj.first;
-                do {
-                    sibling = itemsTable.items[j];
-                    j++;
-                } while (j<len && !sibling);
-            }
-
-            for (var i = obj.first; i <= obj.last; i++) {
-                if(JS.isUndefined(itemsTable.loading[i]) && JS.isUndefined(itemsTable.items[i])){
-                    el = carousel._createCarouselItem({
-                            className : carousel.CLASSES.ITEM_LOADING,
-                            content   : carousel.STRINGS.ITEM_LOADING_CONTENT,
-                            id        : Dom.generateId(),
-                            pos       : i
-                    });
-                    if (el) {
-                        if (sibling) {
-                            sibling = Dom.get(sibling.id);
-                            if (sibling) {
-                                carouselEl.insertBefore(el, sibling);
-                            } else {
-                                YAHOO.log("Unable to find sibling", "error",
-                                        WidgetName);
-                            }
-                        } else {
-                            carouselEl.appendChild(el);
-                        }
-                    }
-                    itemsTable.loading[i] = el;
-                }
-            }
-
-            carousel._syncUiItems();
-        },
-
-        /**
-         * Redraw the UI for item positioning.
-         *
-         * @method _syncUiItems
-         * @protected
-         */
-        _syncUiItems: function () {
-            var attr,
-                carousel = this,
-                numItems = carousel.get("numItems"),
-                i,
-                itemsTable = carousel._itemsTable,
-                items = itemsTable.items,
-                loading = itemsTable.loading,
-                item,
-                styles;
-
-            for (i = 0; i < numItems; i++) {
-                item = items[i] || loading[i];
-
-                if (item && item.id) {
-                    styles = getCarouselItemPosition.call(carousel, i);
-                    item.styles = item.styles || {};
-                    for (attr in styles) {
-                        if (styles.hasOwnProperty(attr)) {
-                            item.styles[attr] = styles[attr];
-                        }
-                    }
-                    setStyles(Dom.get(item.id), styles);
-                }
-            }
-        },
-
-        /**
-         * Set the correct class for the navigation buttons.
-         *
-         * @method _updateNavButtons
-         * @param el {Object} The target button
-         * @param setFocus {Boolean} True to set focus ring, false otherwise.
-         * @protected
-         */
-        _updateNavButtons: function (el, setFocus) {
-            var children,
-                cssClass = this.CLASSES,
-                grandParent,
-                parent   = el.parentNode;
-
-            if (!parent) {
-                return;
-            }
-            grandParent = parent.parentNode;
-
-            if (el.nodeName.toUpperCase() == "BUTTON" &&
-                Dom.hasClass(parent, cssClass.BUTTON)) {
-                if (setFocus) {
-                    if (grandParent) {
-                        children = Dom.getChildren(grandParent);
-                        if (children) {
-                            Dom.removeClass(children, cssClass.FOCUSSED_BUTTON);
-                        }
-                    }
-                    Dom.addClass(parent, cssClass.FOCUSSED_BUTTON);
-                } else {
-                    Dom.removeClass(parent, cssClass.FOCUSSED_BUTTON);
-                }
-            }
-        },
-
-        /**
-         * Update the UI for the pager buttons based on the current page and
-         * the number of pages.
-         *
-         * @method _updatePagerButtons
-         * @protected
-         */
-         _updatePagerButtons: function () {
-             var carousel = this,
-                 css      = carousel.CLASSES,
-                 cur      = carousel._pages.cur, // current page
-                 el,
-                 html,
-                 i,
-                 item,
-                 n        = carousel.get("numVisible"),
-                 num      = carousel._pages.num, // total pages
-                 pager    = carousel._pages.el;  // the pager container element
-
-             if (num === 0 || !pager) {
-                 return;         // don't do anything if number of pages is 0
-             }
-
-             // Hide the pager before redrawing it
-             Dom.setStyle(pager, "visibility", "hidden");
-
-             // Remove all nodes from the pager
-             while (pager.firstChild) {
-                 pager.removeChild(pager.firstChild);
-             }
-
-             for (i = 0; i < num; i++) {
-
-                 el   = document.createElement("LI");
-
-                 if (i === 0) {
-                     Dom.addClass(el, css.FIRST_PAGE);
-                 }
-                 if (i == cur) {
-                     Dom.addClass(el, css.SELECTED_NAV);
-                 }
-
-                 html = "<a class=" + css.PAGER_ITEM + " href=\"#" + (i+1) + "\" tabindex=\"0\"><em>"   +
-                         carousel.STRINGS.PAGER_PREFIX_TEXT + " " + (i+1) +
-                         "</em></a>";
-                 el.innerHTML = html;
-
-                 pager.appendChild(el);
-             }
-
-             // Show the pager now
-             Dom.setStyle(pager, "visibility", "visible");
-         },
-
-        /**
-         * Update the UI for the pager menu based on the current page and
-         * the number of pages.  If the number of pages is greater than
-         * MAX_PAGER_BUTTONS, then the selection of pages is provided by a drop
-         * down menu instead of a set of buttons.
-         *
-         * @method _updatePagerMenu
-         * @protected
-         */
-        _updatePagerMenu: function () {
-            var carousel = this,
-                css      = carousel.CLASSES,
-                cur      = carousel._pages.cur, // current page
-                el,
-                i,
-                item,
-                n        = carousel.get("numVisible"),
-                num      = carousel._pages.num, // total pages
-                pager    = carousel._pages.el,  // the pager container element
-                sel;
-
-            if (num === 0) {
-                return;// don't do anything if number of pages is 0
-            }
-
-            sel = document.createElement("SELECT");
-
-
-            if (!sel) {
-                YAHOO.log("Unable to create the pager menu", "error",
-                          WidgetName);
-                return;
-            }
-
-            // Hide the pager before redrawing it
-            Dom.setStyle(pager, "visibility", "hidden");
-
-            // Remove all nodes from the pager
-            while (pager.firstChild) {
-                pager.removeChild(pager.firstChild);
-            }
-
-            for (i = 0; i < num; i++) {
-
-                el   = document.createElement("OPTION");
-                el.value     = i+1;
-                el.innerHTML = carousel.STRINGS.PAGER_PREFIX_TEXT+" "+(i+1);
-
-                if (i == cur) {
-                    el.setAttribute("selected", "selected");
-                }
-
-                sel.appendChild(el);
-            }
-
-            el = document.createElement("FORM");
-            if (!el) {
-                YAHOO.log("Unable to create the pager menu", "error",
-                          WidgetName);
-            } else {
-                el.appendChild(sel);
-                pager.appendChild(el);
-            }
-
-            // Show the pager now
-            Event.addListener(sel, "change", carousel._pagerChangeHandler, this, true);
-            Dom.setStyle(pager, "visibility", "visible");
-        },
-
-        /**
-         * Set the correct tab index for the Carousel items.
-         *
-         * @method _updateTabIndex
-         * @param el {Object} The element to be focussed
-         * @protected
-         */
-        _updateTabIndex: function (el) {
-            var carousel = this;
-
-            if (el) {
-                if (carousel._focusableItemEl) {
-                    carousel._focusableItemEl.tabIndex = -1;
-                }
-                carousel._focusableItemEl = el;
-                el.tabIndex = 0;
-            }
-        },
-
-        /**
-         * Validate animation parameters.
-         *
-         * @method _validateAnimation
-         * @param cfg {Object} The animation configuration
-         * @return {Boolean} The status of the validation
-         * @protected
-         */
-        _validateAnimation: function (cfg) {
-            var rv = true;
-
-            if (JS.isObject(cfg)) {
-                if (cfg.speed) {
-                    rv = rv && JS.isNumber(cfg.speed);
-                }
-                if (cfg.effect) {
-                    rv = rv && JS.isFunction(cfg.effect);
-                } else if (!JS.isUndefined(YAHOO.util.Easing)) {
-                    cfg.effect = YAHOO.util.Easing.easeOut;
-                }
-            } else {
-                rv = false;
-            }
-
-            return rv;
-        },
-
-        /**
-         * Validate the firstVisible value.
-         *
-         * @method _validateFirstVisible
-         * @param val {Number} The first visible value
-         * @return {Boolean} The status of the validation
-         * @protected
-         */
-        _validateFirstVisible: function (val) {
-            var carousel = this, numItems = carousel.get("numItems");
-
-            if (JS.isNumber(val)) {
-                if (numItems === 0 && val == numItems) {
-                    return true;
-                } else {
-                    return (val >= 0 && val < numItems);
-                }
-            }
-
-            return false;
-        },
-
-        /**
-         * Validate and navigation parameters.
-         *
-         * @method _validateNavigation
-         * @param cfg {Object} The navigation configuration
-         * @return {Boolean} The status of the validation
-         * @protected
-         */
-        _validateNavigation : function (cfg) {
-            var i;
-
-            if (!JS.isObject(cfg)) {
-                return false;
-            }
-
-            if (cfg.prev) {
-                if (!JS.isArray(cfg.prev)) {
-                    return false;
-                }
-                for (i in cfg.prev) {
-                    if (cfg.prev.hasOwnProperty(i)) {
-                        if (!JS.isString(cfg.prev[i].nodeName)) {
-                            return false;
-                        }
-                    }
-                }
-            }
-
-            if (cfg.next) {
-                if (!JS.isArray(cfg.next)) {
-                    return false;
-                }
-                for (i in cfg.next) {
-                    if (cfg.next.hasOwnProperty(i)) {
-                        if (!JS.isString(cfg.next[i].nodeName)) {
-                            return false;
-                        }
-                    }
-                }
-            }
-
-            return true;
-        },
-
-        /**
-         * Validate the numItems value.
-         *
-         * @method _validateNumItems
-         * @param val {Number} The numItems value
-         * @return {Boolean} The status of the validation
-         * @protected
-         */
-        _validateNumItems: function (val) {
-            return JS.isNumber(val) && (val >= 0);
-        },
-
-        /**
-         * Validate the numVisible value.
-         *
-         * @method _validateNumVisible
-         * @param val {Number} The numVisible value
-         * @return {Boolean} The status of the validation
-         * @protected
-         */
-        _validateNumVisible: function (val) {
-            var rv = false;
-
-            if (JS.isNumber(val)) {
-                rv = val > 0 && val <= this.get("numItems");
-            } else if (JS.isArray(val)) {
-                if (JS.isNumber(val[0]) && JS.isNumber(val[1])) {
-                    rv = val[0] * val[1] > 0 && val.length == 2;
-                }
-            }
-
-            return rv;
-        },
-
-        /**
-         * Validate the revealAmount value.
-         *
-         * @method _validateRevealAmount
-         * @param val {Number} The revealAmount value
-         * @return {Boolean} The status of the validation
-         * @protected
-         */
-        _validateRevealAmount: function (val) {
-            var rv = false;
-
-            if (JS.isNumber(val)) {
-                rv = val >= 0 && val < 100;
-            }
-
-            return rv;
-        },
-
-        /**
-         * Validate the scrollIncrement value.
-         *
-         * @method _validateScrollIncrement
-         * @param val {Number} The scrollIncrement value
-         * @return {Boolean} The status of the validation
-         * @protected
-         */
-        _validateScrollIncrement: function (val) {
-            var rv = false;
-
-            if (JS.isNumber(val)) {
-                rv = (val > 0 && val < this.get("numItems"));
-            }
-
-            return rv;
-        }
-
-    });
-
-})();
-/*
-;;  Local variables: **
-;;  mode: js2 **
-;;  indent-tabs-mode: nil **
-;;  End: **
-*/
-YAHOO.register("carousel", YAHOO.widget.Carousel, {version: "2.8.0r4", build: "2449"});
diff --git a/koha-tmpl/intranet-tmpl/prog/en/lib/yui/carousel/carousel-min.js b/koha-tmpl/intranet-tmpl/prog/en/lib/yui/carousel/carousel-min.js
deleted file mode 100644 (file)
index ec1d608..0000000
+++ /dev/null
@@ -1,12 +0,0 @@
-/*
-Copyright (c) 2009, Yahoo! Inc. All rights reserved.
-Code licensed under the BSD License:
-http://developer.yahoo.net/yui/license.txt
-version: 2.8.0r4
-*/
-(function(){var P;YAHOO.widget.Carousel=function(s,r){YAHOO.widget.Carousel.superclass.constructor.call(this,s,r);};var U=YAHOO.widget.Carousel,e=YAHOO.util.Dom,c=YAHOO.util.Event,p=YAHOO.lang;P="Carousel";var T={},F="afterScroll",g="allItemsRemoved",b="beforeHide",J="beforePageChange",i="beforeScroll",Y="beforeShow",B="blur",X="focus",a="hide",S="itemAdded",o="itemRemoved",Q="itemReplaced",C="itemSelected",L="loadItems",I="navigationStateChange",h="pageChange",H="render",V="show",Z="startAutoPlay",q="stopAutoPlay",K="uiUpdate";function G(r,s){var t;for(t in s){if(s.hasOwnProperty(t)){e.setStyle(r,t,s[t]);}}}function W(s,r){var t=document.createElement(s);r=r||{};if(r.className){e.addClass(t,r.className);}if(r.styles){G(t,r.styles);}if(r.parent){r.parent.appendChild(t);}if(r.id){t.setAttribute("id",r.id);}if(r.content){if(r.content.nodeName){t.appendChild(r.content);}else{t.innerHTML=r.content;}}return t;}function d(t,s,r){var v;if(!t){return 0;}function u(y,x){var z;if(x=="marginRight"&&YAHOO.env.ua.webkit){z=parseInt(e.getStyle(y,"marginLeft"),10);}else{z=parseInt(e.getStyle(y,x),10);}return p.isNumber(z)?z:0;}function w(y,x){var z;if(x=="marginRight"&&YAHOO.env.ua.webkit){z=parseFloat(e.getStyle(y,"marginLeft"));}else{z=parseFloat(e.getStyle(y,x));}return p.isNumber(z)?z:0;}if(typeof r=="undefined"){r="int";}switch(s){case"height":v=t.offsetHeight;if(v>0){v+=u(t,"marginTop")+u(t,"marginBottom");}else{v=w(t,"height")+u(t,"marginTop")+u(t,"marginBottom")+u(t,"borderTopWidth")+u(t,"borderBottomWidth")+u(t,"paddingTop")+u(t,"paddingBottom");}break;case"width":v=t.offsetWidth;if(v>0){v+=u(t,"marginLeft")+u(t,"marginRight");}else{v=w(t,"width")+u(t,"marginLeft")+u(t,"marginRight")+u(t,"borderLeftWidth")+u(t,"borderRightWidth")+u(t,"paddingLeft")+u(t,"paddingRight");}break;default:if(r=="int"){v=u(t,s);}else{if(r=="float"){v=w(t,s);}else{v=e.getStyle(t,s);}}break;}return v;}function O(w){var u=this,x,t,s=0,v=u.get("firstVisible"),r=false;if(u._itemsTable.numItems===0){return 0;}t=u._itemsTable.items[v]||u._itemsTable.loading[v];if(p.isUndefined(t)){return 0;}x=e.get(t.id);if(typeof w=="undefined"){r=u.get("isVertical");}else{r=w=="height";}if(this._itemAttrCache[w]){return this._itemAttrCache[w];}if(r){s=d(x,"height");}else{s=d(x,"width");}this._itemAttrCache[w]=s;return s;}function N(){var s=this,t,r;t=s.get("isVertical");r=O.call(s,t?"height":"width");return(r*s.get("revealAmount")/100);}function m(w){var AH=this,z=AH._cols,v=AH._rows,u,AC,AB,t,x,AD,AJ=0,AE,s,AG,AA={},y=0,AI=AH._itemsTable,AF=AI.items,r=AI.loading;AB=AH.get("isVertical");AC=O.call(AH,AB?"height":"width");AG=N.call(AH);while(y<w){if(!AF[y]&&!r[y]){AJ++;}y++;}w-=AJ;if(v){u=this.getPageForItem(w);if(AB){x=Math.floor(w/z);AJ=x;AE=AJ*AC;AA.top=(AE+AG)+"px";AC=O.call(AH,"width");t=w%z;AJ=t;s=AJ*AC;AA.left=s+"px";}else{t=w%z;AD=(u-1)*z;AJ=t+AD;s=AJ*AC;AA.left=(s+AG)+"px";AC=O.call(AH,"height");x=Math.floor(w/z);AD=(u-1)*v;AJ=x-AD;AE=AJ*AC;AA.top=AE+"px";}}else{if(AB){AA.left=0;AA.top=((w*AC)+AG)+"px";}else{AA.top=0;AA.left=((w*AC)+AG)+"px";}}return AA;}function D(s){var r=this.get("numVisible");return Math.floor(s/r)*r;}function j(t){var s=0,r=0;s=O.call(this);r=s*t;return r;}function f(r,s){s.scrollPageBackward();c.preventDefault(r);}function k(r,s){s.scrollPageForward();c.preventDefault(r);}function n(w,s){var AA=this,AB=AA.CLASSES,r,y=AA._firstItem,t=AA.get("isCircular"),x=AA.get("numItems"),z=AA.get("numVisible"),v=s,u=y+z-1;if(v>=0&&v<x){if(!p.isUndefined(AA._itemsTable.items[v])){r=e.get(AA._itemsTable.items[v].id);if(r){e.removeClass(r,AB.SELECTED_ITEM);}}}if(p.isNumber(w)){w=parseInt(w,10);w=p.isNumber(w)?w:0;}else{w=y;}if(p.isUndefined(AA._itemsTable.items[w])){w=D.call(AA,w);AA.scrollTo(w);}if(!p.isUndefined(AA._itemsTable.items[w])){r=e.get(AA._itemsTable.items[w].id);if(r){e.addClass(r,AB.SELECTED_ITEM);}}if(w<y||w>u){w=D.call(AA,w);AA.scrollTo(w);}}function l(){var t=false,w=this,s=w.CLASSES,v,r,u;if(!w._hasRendered){return;}r=w.get("navigation");u=w._firstItem+w.get("numVisible");if(r.prev){if(w.get("numItems")===0||w._firstItem===0){if(w.get("numItems")===0||!w.get("isCircular")){c.removeListener(r.prev,"click",f);e.addClass(r.prev,s.FIRST_NAV_DISABLED);for(v=0;v<w._navBtns.prev.length;v++){w._navBtns.prev[v].setAttribute("disabled","true");}w._prevEnabled=false;}else{t=!w._prevEnabled;}}else{t=!w._prevEnabled;}if(t){c.on(r.prev,"click",f,w);e.removeClass(r.prev,s.FIRST_NAV_DISABLED);for(v=0;v<w._navBtns.prev.length;v++){w._navBtns.prev[v].removeAttribute("disabled");}w._prevEnabled=true;}}t=false;if(r.next){if(u>=w.get("numItems")){if(!w.get("isCircular")){c.removeListener(r.next,"click",k);e.addClass(r.next,s.DISABLED);for(v=0;v<w._navBtns.next.length;v++){w._navBtns.next[v].setAttribute("disabled","true");}w._nextEnabled=false;}else{t=!w._nextEnabled;}}else{t=!w._nextEnabled;}if(t){c.on(r.next,"click",k,w);e.removeClass(r.next,s.DISABLED);for(v=0;v<w._navBtns.next.length;v++){w._navBtns.next[v].removeAttribute("disabled");}w._nextEnabled=true;}}w.fireEvent(I,{next:w._nextEnabled,prev:w._prevEnabled});}function R(t){var u=this,r,s;if(!u._hasRendered){return;}s=u.get("numVisible");if(!p.isNumber(t)){t=Math.floor(u.get("selectedItem")/s);}r=Math.ceil(u.get("numItems")/s);u._pages.num=r;u._pages.cur=t;if(r>u.CONFIG.MAX_PAGER_BUTTONS){u._updatePagerMenu();}else{u._updatePagerButtons();}}function M(r,s){switch(s){case"height":return d(r,"marginTop")+d(r,"marginBottom")+d(r,"paddingTop")+d(r,"paddingBottom")+d(r,"borderTopWidth")+d(r,"borderBottomWidth");case"width":return d(r,"marginLeft")+d(r,"marginRight")+d(r,"paddingLeft")+d(r,"paddingRight")+d(r,"borderLeftWidth")+d(r,"borderRightWidth");default:break;}return d(r,s);}function A(s){var r=this;if(!p.isObject(s)){return;}switch(s.ev){case S:r._syncUiForItemAdd(s);break;case o:r._syncUiForItemRemove(s);break;case Q:r._syncUiForItemReplace(s);break;case L:r._syncUiForLazyLoading(s);break;}r.fireEvent(K);}function E(u,s){var w=this,v=w.get("currentPage"),t,r=w.get("numVisible");
-t=parseInt(w._firstItem/r,10);if(t!=v){w.setAttributeConfig("currentPage",{value:t});w.fireEvent(h,t);}if(w.get("selectOnScroll")){if(w.get("selectedItem")!=w._selectedItem){w.set("selectedItem",w._selectedItem);}}clearTimeout(w._autoPlayTimer);delete w._autoPlayTimer;if(w.isAutoPlayOn()){w.startAutoPlay();}w.fireEvent(F,{first:w._firstItem,last:s},w);}U.getById=function(r){return T[r]?T[r].object:false;};YAHOO.extend(U,YAHOO.util.Element,{_rows:null,_cols:null,_animObj:null,_carouselEl:null,_clipEl:null,_firstItem:0,_hasFocus:false,_hasRendered:false,_isAnimationInProgress:false,_isAutoPlayInProgress:false,_itemsTable:null,_navBtns:null,_navEl:null,_nextEnabled:true,_pages:null,_pagination:{},_prevEnabled:true,_recomputeSize:true,_itemAttrCache:{},CLASSES:{BUTTON:"yui-carousel-button",CAROUSEL:"yui-carousel",CAROUSEL_EL:"yui-carousel-element",CONTAINER:"yui-carousel-container",CONTENT:"yui-carousel-content",DISABLED:"yui-carousel-button-disabled",FIRST_NAV:" yui-carousel-first-button",FIRST_NAV_DISABLED:"yui-carousel-first-button-disabled",FIRST_PAGE:"yui-carousel-nav-first-page",FOCUSSED_BUTTON:"yui-carousel-button-focus",HORIZONTAL:"yui-carousel-horizontal",ITEM_LOADING:"yui-carousel-item-loading",MIN_WIDTH:"yui-carousel-min-width",NAVIGATION:"yui-carousel-nav",NEXT_NAV:" yui-carousel-next-button",NEXT_PAGE:"yui-carousel-next",NAV_CONTAINER:"yui-carousel-buttons",PAGER_ITEM:"yui-carousel-pager-item",PAGINATION:"yui-carousel-pagination",PAGE_FOCUS:"yui-carousel-nav-page-focus",PREV_PAGE:"yui-carousel-prev",SELECTED_ITEM:"yui-carousel-item-selected",SELECTED_NAV:"yui-carousel-nav-page-selected",VERTICAL:"yui-carousel-vertical",MULTI_ROW:"yui-carousel-multi-row",ROW:"yui-carousel-row",VERTICAL_CONTAINER:"yui-carousel-vertical-container",VISIBLE:"yui-carousel-visible"},CONFIG:{FIRST_VISIBLE:0,HORZ_MIN_WIDTH:180,MAX_PAGER_BUTTONS:5,VERT_MIN_WIDTH:115,NUM_VISIBLE:3},STRINGS:{ITEM_LOADING_CONTENT:"Loading",NEXT_BUTTON_TEXT:"Next Page",PAGER_PREFIX_TEXT:"Go to page ",PREVIOUS_BUTTON_TEXT:"Previous Page"},addItem:function(y,s){var x=this,u,t,r,z=0,w,v=x.get("numItems");if(!y){return false;}if(p.isString(y)||y.nodeName){t=y.nodeName?y.innerHTML:y;}else{if(p.isObject(y)){t=y.content;}else{return false;}}u=y.className||"";r=y.id?y.id:e.generateId();if(p.isUndefined(s)){x._itemsTable.items.push({item:t,className:u,id:r});w=x._itemsTable.items.length-1;}else{if(s<0||s>v){return false;}if(!x._itemsTable.items[s]){x._itemsTable.items[s]=undefined;z=1;}x._itemsTable.items.splice(s,z,{item:t,className:u,id:r});}x._itemsTable.numItems++;if(v<x._itemsTable.items.length){x.set("numItems",x._itemsTable.items.length);}x.fireEvent(S,{pos:s,ev:S,newPos:w});return true;},addItems:function(r){var s,u,t=true;if(!p.isArray(r)){return false;}for(s=0,u=r.length;s<u;s++){if(this.addItem(r[s][0],r[s][1])===false){t=false;}}return t;},blur:function(){this._carouselEl.blur();this.fireEvent(B);},clearItems:function(){var r=this,s=r.get("numItems");while(s>0){if(!r.removeItem(0)){}if(r._itemsTable.numItems===0){r.set("numItems",0);break;}s--;}r.fireEvent(g);},focus:function(){var AA=this,v,w,x,u,z,AB,s,t,r;if(!AA._hasRendered){return;}if(AA.isAnimating()){return;}r=AA.get("selectedItem");AB=AA.get("numVisible");s=AA.get("selectOnScroll");t=(r>=0)?AA.getItem(r):null;v=AA.get("firstVisible");z=v+AB-1;x=(r<v||r>z);w=(t&&t.id)?e.get(t.id):null;u=AA._itemsTable;if(!s&&x){w=(u&&u.items&&u.items[v])?e.get(u.items[v].id):null;}if(w){try{w.focus();}catch(y){}}AA.fireEvent(X);},hide:function(){var r=this;if(r.fireEvent(b)!==false){r.removeClass(r.CLASSES.VISIBLE);r.fireEvent(a);}},init:function(u,s){var v=this,r=u,w=false,t;if(!u){return;}v._hasRendered=false;v._navBtns={prev:[],next:[]};v._pages={el:null,num:0,cur:0};v._pagination={};v._itemAttrCache={};v._itemsTable={loading:{},numItems:0,items:[],size:0};if(p.isString(u)){u=e.get(u);}else{if(!u.nodeName){return;}}U.superclass.init.call(v,u,s);t=v.get("selectedItem");if(t>0){v.set("firstVisible",D.call(v,t));}if(u){if(!u.id){u.setAttribute("id",e.generateId());}w=v._parseCarousel(u);if(!w){v._createCarousel(r);}}else{u=v._createCarousel(r);}r=u.id;v.initEvents();if(w){v._parseCarouselItems();}if(t>0){n.call(v,t,0);}if(!s||typeof s.isVertical=="undefined"){v.set("isVertical",false);}v._parseCarouselNavigation(u);v._navEl=v._setupCarouselNavigation();T[r]={object:v};v._loadItems(Math.min(v.get("firstVisible")+v.get("numVisible"),v.get("numItems"))-1);},initAttributes:function(r){var s=this;r=r||{};U.superclass.initAttributes.call(s,r);s.setAttributeConfig("carouselEl",{validator:p.isString,value:r.carouselEl||"OL"});s.setAttributeConfig("carouselItemEl",{validator:p.isString,value:r.carouselItemEl||"LI"});s.setAttributeConfig("currentPage",{readOnly:true,value:0});s.setAttributeConfig("firstVisible",{method:s._setFirstVisible,validator:s._validateFirstVisible,value:r.firstVisible||s.CONFIG.FIRST_VISIBLE});s.setAttributeConfig("selectOnScroll",{validator:p.isBoolean,value:r.selectOnScroll||true});s.setAttributeConfig("numVisible",{setter:s._numVisibleSetter,method:s._setNumVisible,validator:s._validateNumVisible,value:r.numVisible||s.CONFIG.NUM_VISIBLE});s.setAttributeConfig("numItems",{method:s._setNumItems,validator:s._validateNumItems,value:s._itemsTable.numItems});s.setAttributeConfig("scrollIncrement",{validator:s._validateScrollIncrement,value:r.scrollIncrement||1});s.setAttributeConfig("selectedItem",{setter:s._selectedItemSetter,method:s._setSelectedItem,validator:p.isNumber,value:-1});s.setAttributeConfig("revealAmount",{method:s._setRevealAmount,validator:s._validateRevealAmount,value:r.revealAmount||0});s.setAttributeConfig("isCircular",{validator:p.isBoolean,value:r.isCircular||false});s.setAttributeConfig("isVertical",{method:s._setOrientation,validator:p.isBoolean,value:r.isVertical||false});s.setAttributeConfig("navigation",{method:s._setNavigation,validator:s._validateNavigation,value:r.navigation||{prev:null,next:null,page:null}});s.setAttributeConfig("animation",{validator:s._validateAnimation,value:r.animation||{speed:0,effect:null}});
-s.setAttributeConfig("autoPlay",{validator:p.isNumber,value:r.autoPlay||0});s.setAttributeConfig("autoPlayInterval",{validator:p.isNumber,value:r.autoPlayInterval||0});s.setAttributeConfig("numPages",{readOnly:true,getter:s._getNumPages});s.setAttributeConfig("lastVisible",{readOnly:true,getter:s._getLastVisible});},initEvents:function(){var t=this,s=t.CLASSES,r;t.on("keydown",t._keyboardEventHandler);t.on(F,l);t.on(S,A);t.on(o,A);t.on(Q,A);t.on(C,function(){if(t._hasFocus){t.focus();}});t.on(L,A);t.on(g,function(u){t.scrollTo(0);l.call(t);R.call(t);});t.on(h,R,t);t.on(H,function(u){if(t.get("selectedItem")===null||t.get("selectedItem")<=0){t.set("selectedItem",t.get("firstVisible"));}l.call(t,u);R.call(t,u);t._setClipContainerSize();t.show();});t.on("selectedItemChange",function(u){n.call(t,u.newValue,u.prevValue);if(u.newValue>=0){t._updateTabIndex(t.getElementForItem(u.newValue));}t.fireEvent(C,u.newValue);});t.on(K,function(u){l.call(t,u);R.call(t,u);});t.on("firstVisibleChange",function(u){if(!t.get("selectOnScroll")){if(u.newValue>=0){t._updateTabIndex(t.getElementForItem(u.newValue));}}});t.on("click",function(u){if(t.isAutoPlayOn()){t.stopAutoPlay();}t._itemClickHandler(u);t._pagerClickHandler(u);});c.onFocus(t.get("element"),function(u,w){var v=c.getTarget(u);if(v&&v.nodeName.toUpperCase()=="A"&&e.getAncestorByClassName(v,s.NAVIGATION)){if(r){e.removeClass(r,s.PAGE_FOCUS);}r=v.parentNode;e.addClass(r,s.PAGE_FOCUS);}else{if(r){e.removeClass(r,s.PAGE_FOCUS);}}w._hasFocus=true;w._updateNavButtons(c.getTarget(u),true);},t);c.onBlur(t.get("element"),function(u,v){v._hasFocus=false;v._updateNavButtons(c.getTarget(u),false);},t);},isAnimating:function(){return this._isAnimationInProgress;},isAutoPlayOn:function(){return this._isAutoPlayInProgress;},getElementForItem:function(r){var s=this;if(r<0||r>=s.get("numItems")){return null;}if(s._itemsTable.items[r]){return e.get(s._itemsTable.items[r].id);}return null;},getElementForItems:function(){var t=this,s=[],r;for(r=0;r<t._itemsTable.numItems;r++){s.push(t.getElementForItem(r));}return s;},getItem:function(r){var s=this;if(r<0||r>=s.get("numItems")){return null;}if(s._itemsTable.numItems>r){if(!p.isUndefined(s._itemsTable.items[r])){return s._itemsTable.items[r];}}return null;},getItems:function(){return this._itemsTable.items;},getLoadingItems:function(){return this._itemsTable.loading;},getRows:function(){return this._rows;},getCols:function(){return this._cols;},getItemPositionById:function(w){var u=this,v=u.get("numItems"),s=0,r=u._itemsTable.items,t;while(s<v){t=r[s]||{};if(t.id==w){return s;}s++;}return -1;},getVisibleItems:function(){var u=this,s=u.get("firstVisible"),v=s+u.get("numVisible"),t=[];while(s<v){t.push(u.getElementForItem(s));s++;}return t;},removeItem:function(s){var u=this,t,r=u.get("numItems");if(s<0||s>=r){return false;}t=u._itemsTable.items.splice(s,1);if(t&&t.length==1){u._itemsTable.numItems--;u.set("numItems",r-1);u.fireEvent(o,{item:t[0],pos:s,ev:o});return true;}return false;},replaceItem:function(z,u){var y=this,w,v,t,x=y.get("numItems"),s,r=z;if(!z){return false;}if(p.isString(z)||z.nodeName){v=z.nodeName?z.innerHTML:z;}else{if(p.isObject(z)){v=z.content;}else{return false;}}if(p.isUndefined(u)){return false;}else{if(u<0||u>=x){return false;}s=y._itemsTable.items[u];if(!s){s=y._itemsTable.loading[u];y._itemsTable.items[u]=undefined;}y._itemsTable.items.splice(u,1,{item:v,className:z.className||"",id:e.generateId()});r=y._itemsTable.items[u];}y.fireEvent(Q,{newItem:r,oldItem:s,pos:u,ev:Q});return true;},replaceItems:function(r){var s,u,t=true;if(!p.isArray(r)){return false;}for(s=0,u=r.length;s<u;s++){if(this.replaceItem(r[s][0],r[s][1])===false){t=false;}}return t;},render:function(s){var u=this,r=u.CLASSES,t=u._rows;u.addClass(r.CAROUSEL);if(!u._clipEl){u._clipEl=u._createCarouselClip();u._clipEl.appendChild(u._carouselEl);}if(s){u.appendChild(u._clipEl);u.appendTo(s);}else{if(!e.inDocument(u.get("element"))){return false;}u.appendChild(u._clipEl);}if(t){e.addClass(u._clipEl,r.MULTI_ROW);}if(u.get("isVertical")){u.addClass(r.VERTICAL);}else{u.addClass(r.HORIZONTAL);}if(u.get("numItems")<1){return false;}u._refreshUi();return true;},scrollBackward:function(){var r=this;r.scrollTo(r._firstItem-r.get("scrollIncrement"));},scrollForward:function(){var r=this;r.scrollTo(r._firstItem+r.get("scrollIncrement"));},scrollPageBackward:function(){var t=this,u=t.get("isVertical"),s=t._cols,r=t._firstItem-t.get("numVisible");if(r<0){if(s){r=t._firstItem-s;}}if(t.get("selectOnScroll")){t._selectedItem=t._getSelectedItem(r);}t.scrollTo(r);},scrollPageForward:function(){var s=this,r=s._firstItem+s.get("numVisible");if(r>s.get("numItems")){r=0;}if(s.get("selectOnScroll")){s._selectedItem=s._getSelectedItem(r);}s.scrollTo(r);},scrollTo:function(AL,AI){var AH=this,u,AJ,z,AB,AC,AM,AN,AO,AD,AA,v,AF,s,w,t,x,AE,y,AP,AK=AH._itemsTable,AG=AK.items,r=AK.loading;if(p.isUndefined(AL)||AL==AH._firstItem||AH.isAnimating()){return;}AJ=AH.get("animation");z=AH.get("isCircular");AB=AH.get("isVertical");AA=AH._cols;v=AH._rows;AO=AH._firstItem;AF=AH.get("numItems");s=AH.get("numVisible");t=AH.get("currentPage");AP=function(){if(AH.isAutoPlayOn()){AH.stopAutoPlay();}};if(AL<0){if(z){AL=AF+AL;}else{AP.call(AH);return;}}else{if(AF>0&&AL>AF-1){if(AH.get("isCircular")){AL=AF-AL;}else{AP.call(AH);return;}}}if(isNaN(AL)){return;}AN=(AH._firstItem>AL)?"backward":"forward";AE=AO+s;AE=(AE>AF-1)?AF-1:AE;x=AH.fireEvent(i,{dir:AN,first:AO,last:AE});if(x===false){return;}AH.fireEvent(J,{page:t});AD=AL+s-1;AH._loadItems(AD>AF-1?AF-1:AD);AM=0-AL;if(v){if(AB){AM=parseInt(AM/AA,10);}else{AM=parseInt(AM/v,10);}}y=0;while(AM<0&&y<AL+s-1&&y<AF){if(!AG[y]&&!r[y]){AM++;}y+=v?v:1;}AH._firstItem=AL;AH.set("firstVisible",AL);AE=AL+s;AE=(AE>AF-1)?AF-1:AE;w=j.call(AH,AM);u=AJ.speed>0;if(u){AH._animateAndSetCarouselOffset(w,AL,AE,AI);}else{AH._setCarouselOffset(w);E.call(AH,AL,AE);}},getPageForItem:function(r){return Math.ceil((r+1)/parseInt(this.get("numVisible"),10));},getFirstVisibleOnPage:function(r){return(r-1)*this.get("numVisible");
-},selectPreviousItem:function(){var t=this,s=0,r=t.get("selectedItem");if(r==this._firstItem){s=r-t.get("numVisible");t._selectedItem=t._getSelectedItem(r-1);t.scrollTo(s);}else{s=t.get("selectedItem")-t.get("scrollIncrement");t.set("selectedItem",t._getSelectedItem(s));}},selectNextItem:function(){var s=this,r=0;r=s.get("selectedItem")+s.get("scrollIncrement");s.set("selectedItem",s._getSelectedItem(r));},show:function(){var s=this,r=s.CLASSES;if(s.fireEvent(Y)!==false){s.addClass(r.VISIBLE);s.fireEvent(V);}},startAutoPlay:function(){var r=this,s;if(p.isUndefined(r._autoPlayTimer)){s=r.get("autoPlayInterval");if(s<=0){return;}r._isAutoPlayInProgress=true;r.fireEvent(Z);r._autoPlayTimer=setTimeout(function(){r._autoScroll();},s);}},stopAutoPlay:function(){var r=this;if(!p.isUndefined(r._autoPlayTimer)){clearTimeout(r._autoPlayTimer);delete r._autoPlayTimer;r._isAutoPlayInProgress=false;r.fireEvent(q);}},updatePagination:function(){var z=this,x=z._pagination;if(!x.el){return false;}var w=z.get("numItems"),AA=z.get("numVisible"),u=z.get("firstVisible")+1,v=z.get("currentPage")+1,r=z.get("numPages"),t={"numVisible":AA,"numPages":r,"numItems":w,"selectedItem":z.get("selectedItem")+1,"currentPage":v,"firstVisible":u,"lastVisible":z.get("lastVisible")+1},s=x.callback||{},y=s.scope&&s.obj?s.obj:z;x.el.innerHTML=p.isFunction(s.fn)?s.fn.apply(y,[x.template,t]):YAHOO.lang.substitute(x.template,t);},registerPagination:function(s,u,r){var t=this;t._pagination.template=s;t._pagination.callback=r||{};if(!t._pagination.el){t._pagination.el=W("DIV",{className:t.CLASSES.PAGINATION});if(u=="before"){t._navEl.insertBefore(t._pagination.el,t._navEl.firstChild);}else{t._navEl.appendChild(t._pagination.el);}t.on("itemSelected",t.updatePagination);t.on("pageChange",t.updatePagination);}t.updatePagination();},toString:function(){return P+(this.get?" (#"+this.get("id")+")":"");},_animateAndSetCarouselOffset:function(w,u,s){var v=this,t=v.get("animation"),r=null;if(v.get("isVertical")){r=new YAHOO.util.Motion(v._carouselEl,{top:{to:w}},t.speed,t.effect);}else{r=new YAHOO.util.Motion(v._carouselEl,{left:{to:w}},t.speed,t.effect);}v._isAnimationInProgress=true;r.onComplete.subscribe(v._animationCompleteHandler,{scope:v,item:u,last:s});r.animate();},_animationCompleteHandler:function(r,s,t){t.scope._isAnimationInProgress=false;E.call(t.scope,t.item,t.last);},_autoScroll:function(){var s=this,t=s._firstItem,r;if(t>=s.get("numItems")-1){if(s.get("isCircular")){r=0;}else{s.stopAutoPlay();}}else{r=t+s.get("numVisible");}s._selectedItem=s._getSelectedItem(r);s.scrollTo.call(s,r);},_createCarousel:function(s){var u=this,r=u.CLASSES,t=e.get(s);if(!t){t=W("DIV",{className:r.CAROUSEL,id:s});}if(!u._carouselEl){u._carouselEl=W(u.get("carouselEl"),{className:r.CAROUSEL_EL});}return t;},_createCarouselClip:function(){return W("DIV",{className:this.CLASSES.CONTENT});},_createCarouselItem:function(u){var r,t=this,s=m.call(t,u.pos);return W(t.get("carouselItemEl"),{className:u.className,styles:u.styles,content:u.content,id:u.id});},_getValidIndex:function(t){var w=this,r=w.get("isCircular"),u=w.get("numItems"),v=w.get("numVisible"),s=u-1;if(t<0){t=r?Math.ceil(u/v)*v+t:0;}else{if(t>s){t=r?0:s;}}return t;},_getSelectedItem:function(v){var u=this,r=u.get("isCircular"),t=u.get("numItems"),s=t-1;if(v<0){if(r){v=t+v;}else{v=u.get("selectedItem");}}else{if(v>s){if(r){v=v-t;}else{v=u.get("selectedItem");}}}return v;},_itemClickHandler:function(v){var y=this,w=y.get("carouselItemEl"),s=y.get("element"),t,u,x=c.getTarget(v),r=x.tagName.toUpperCase();if(r==="INPUT"||r==="SELECT"||r==="TEXTAREA"){return;}while(x&&x!=s&&x.id!=y._carouselEl){t=x.nodeName;if(t.toUpperCase()==w){break;}x=x.parentNode;}if((u=y.getItemPositionById(x.id))>=0){y.set("selectedItem",y._getSelectedItem(u));y.focus();}},_keyboardEventHandler:function(t){var v=this,s=c.getCharCode(t),u=c.getTarget(t),r=false;if(v.isAnimating()||u.tagName.toUpperCase()==="SELECT"){return;}switch(s){case 37:case 38:v.selectPreviousItem();r=true;break;case 39:case 40:v.selectNextItem();r=true;break;case 33:v.scrollPageBackward();r=true;break;case 34:v.scrollPageForward();r=true;break;}if(r){if(v.isAutoPlayOn()){v.stopAutoPlay();}c.preventDefault(t);}},_loadItems:function(t){var w=this,s=w.get("numItems"),u=w.get("numVisible"),v=w.get("revealAmount"),x=w._itemsTable.items.length,r=w.get("lastVisible");if(x>t&&t+1>=u){x=t%u||t==r?t-t%u:t-u+1;}if(v&&t<s-1){t++;}if(t>=x&&(!w.getItem(x)||!w.getItem(t))){w.fireEvent(L,{ev:L,first:x,last:t,num:t-x+1});}},_pagerChangeHandler:function(s){var v=this,u=c.getTarget(s),t=u.value,r;if(t){r=v.getFirstVisibleOnPage(t);v._selectedItem=r;v.scrollTo(r);v.focus();}},_pagerClickHandler:function(x){var z=this,t=z.CLASSES,u=c.getTarget(x),s=u.nodeName.toUpperCase(),r,w,v,y;if(e.hasClass(u,t.PAGER_ITEM)||e.hasClass(u.parentNode,t.PAGER_ITEM)){if(s=="EM"){u=u.parentNode;}r=u.href;w=r.lastIndexOf("#");v=parseInt(r.substring(w+1),10);if(v!=-1){y=z.getFirstVisibleOnPage(v);z._selectedItem=y;z.scrollTo(y);z.focus();}c.preventDefault(x);}},_parseCarousel:function(t){var w=this,x,r,s,v,u;r=w.CLASSES;s=w.get("carouselEl");v=false;for(x=t.firstChild;x;x=x.nextSibling){if(x.nodeType==1){u=x.nodeName;if(u.toUpperCase()==s){w._carouselEl=x;e.addClass(w._carouselEl,w.CLASSES.CAROUSEL_EL);v=true;}}}return v;},_parseCarouselItems:function(){var y=this,AA=y.CLASSES,v=0,z,r,t,u,s,w=y.get("firstVisible"),x=y._carouselEl;z=y._rows;t=y.get("carouselItemEl");for(r=x.firstChild;r;r=r.nextSibling){if(r.nodeType==1){s=r.nodeName;if(s.toUpperCase()==t){if(r.id){u=r.id;}else{u=e.generateId();r.setAttribute("id",u);}y.addItem(r,w);w++;}}}},_parseCarouselNavigation:function(x){var y=this,w,z=y.CLASSES,s,v,u,r,t=false;r=e.getElementsByClassName(z.PREV_PAGE,"*",x);if(r.length>0){for(v in r){if(r.hasOwnProperty(v)){s=r[v];if(s.nodeName=="INPUT"||s.nodeName=="BUTTON"||s.nodeName=="A"){y._navBtns.prev.push(s);}else{u=s.getElementsByTagName("INPUT");if(p.isArray(u)&&u.length>0){y._navBtns.prev.push(u[0]);
-}else{u=s.getElementsByTagName("BUTTON");if(p.isArray(u)&&u.length>0){y._navBtns.prev.push(u[0]);}}}}}w={prev:r};}r=e.getElementsByClassName(z.NEXT_PAGE,"*",x);if(r.length>0){for(v in r){if(r.hasOwnProperty(v)){s=r[v];if(s.nodeName=="INPUT"||s.nodeName=="BUTTON"||s.nodeName=="A"){y._navBtns.next.push(s);}else{u=s.getElementsByTagName("INPUT");if(p.isArray(u)&&u.length>0){y._navBtns.next.push(u[0]);}else{u=s.getElementsByTagName("BUTTON");if(p.isArray(u)&&u.length>0){y._navBtns.next.push(u[0]);}}}}}if(w){w.next=r;}else{w={next:r};}}if(w){y.set("navigation",w);t=true;}return t;},_refreshUi:function(){var v=this,s,w=v.get("isVertical"),y=v.get("firstVisible"),t,x,r,u;if(v._itemsTable.numItems<1){return;}u=O.call(v,w?"height":"width");t=v._itemsTable.items[y].id;u=w?d(t,"width"):d(t,"height");e.setStyle(v._carouselEl,w?"width":"height",u+"px");v._hasRendered=true;v.fireEvent(H);},_setCarouselOffset:function(t){var r=this,s;s=r.get("isVertical")?"top":"left";e.setStyle(r._carouselEl,s,t+"px");},_setupCarouselNavigation:function(){var w=this,u,s,r,y,v,x,t;r=w.CLASSES;v=e.getElementsByClassName(r.NAVIGATION,"DIV",w.get("element"));if(v.length===0){v=W("DIV",{className:r.NAVIGATION});w.insertBefore(v,e.getFirstChild(w.get("element")));}else{v=v[0];}w._pages.el=W("UL");v.appendChild(w._pages.el);y=w.get("navigation");if(p.isString(y.prev)||p.isArray(y.prev)){if(p.isString(y.prev)){y.prev=[y.prev];}for(u in y.prev){if(y.prev.hasOwnProperty(u)){w._navBtns.prev.push(e.get(y.prev[u]));}}}else{t=W("SPAN",{className:r.BUTTON+r.FIRST_NAV});e.setStyle(t,"visibility","visible");u=e.generateId();t.innerHTML='<button type="button" '+'id="'+u+'" name="'+w.STRINGS.PREVIOUS_BUTTON_TEXT+'">'+w.STRINGS.PREVIOUS_BUTTON_TEXT+"</button>";v.appendChild(t);u=e.get(u);w._navBtns.prev=[u];s={prev:[t]};}if(p.isString(y.next)||p.isArray(y.next)){if(p.isString(y.next)){y.next=[y.next];}for(u in y.next){if(y.next.hasOwnProperty(u)){w._navBtns.next.push(e.get(y.next[u]));}}}else{x=W("SPAN",{className:r.BUTTON+r.NEXT_NAV});e.setStyle(x,"visibility","visible");u=e.generateId();x.innerHTML='<button type="button" '+'id="'+u+'" name="'+w.STRINGS.NEXT_BUTTON_TEXT+'">'+w.STRINGS.NEXT_BUTTON_TEXT+"</button>";v.appendChild(x);u=e.get(u);w._navBtns.next=[u];if(s){s.next=[x];}else{s={next:[x]};}}if(s){w.set("navigation",s);}return v;},_setClipContainerSize:function(r,t){var z=this,x=z.get("isVertical"),AB=z._rows,v=z._cols,y=z.get("revealAmount"),s=O.call(z,"height"),u=O.call(z,"width"),AA,w;r=r||z._clipEl;if(AB){AA=s*AB;w=u*v;}else{t=t||z.get("numVisible");if(x){AA=s*t;}else{w=u*t;}}z._recomputeSize=(AA===0);if(z._recomputeSize){z._hasRendered=false;return;}y=N.call(z);if(x){AA+=(y*2);}else{w+=(y*2);}if(x){AA+=M(z._carouselEl,"height");e.setStyle(r,"height",AA+"px");if(v){w+=M(z._carouselEl,"width");e.setStyle(r,"width",w+(0)+"px");}}else{w+=M(z._carouselEl,"width");e.setStyle(r,"width",w+"px");if(AB){AA+=M(z._carouselEl,"height");e.setStyle(r,"height",AA+"px");}}z._setContainerSize(r);},_setContainerSize:function(s,t){var w=this,r=w.CONFIG,z=w.CLASSES,v,y,u,x;v=w.get("isVertical");y=w._rows;u=w._cols;s=s||w._clipEl;t=t||(v?"height":"width");x=parseFloat(e.getStyle(s,t),10);x=p.isNumber(x)?x:0;if(v){x+=M(w._carouselEl,"height")+d(w._navEl,"height");}else{x+=M(w._carouselEl,"width");}if(!v){if(x<r.HORZ_MIN_WIDTH){x=r.HORZ_MIN_WIDTH;w.addClass(z.MIN_WIDTH);}}w.setStyle(t,x+"px");if(v){x=O.call(w,"width");if(u){x=x*u;}e.setStyle(w._carouselEl,"width",x+"px");if(x<r.VERT_MIN_WIDTH){x=r.VERT_MIN_WIDTH;w.addClass(z.MIN_WIDTH);}w.setStyle("width",x+"px");}else{if(y){x=O.call(w,"height");x=x*y;e.setStyle(w._carouselEl,"height",x+"px");}}},_setFirstVisible:function(s){var r=this;if(s>=0&&s<r.get("numItems")){r.scrollTo(s);}else{s=r.get("firstVisible");}return s;},_setNavigation:function(r){var s=this;if(r.prev){c.on(r.prev,"click",f,s);}if(r.next){c.on(r.next,"click",k,s);}},_setNumVisible:function(s){var r=this;r._setClipContainerSize(r._clipEl,s);},_numVisibleSetter:function(t){var s=this,r=t;if(p.isArray(t)){s._cols=t[0];s._rows=t[1];r=t[0]*t[1];}return r;},_selectedItemSetter:function(s){var r=this;return(s<r.get("numItems"))?s:0;},_setNumItems:function(t){var s=this,r=s._itemsTable.numItems;if(p.isArray(s._itemsTable.items)){if(s._itemsTable.items.length!=r){r=s._itemsTable.items.length;s._itemsTable.numItems=r;}}if(t<r){while(r>t){s.removeItem(r-1);r--;}}return t;},_setOrientation:function(t){var s=this,r=s.CLASSES;if(t){s.replaceClass(r.HORIZONTAL,r.VERTICAL);}else{s.replaceClass(r.VERTICAL,r.HORIZONTAL);}this._itemAttrCache={};return t;},_setRevealAmount:function(s){var r=this;if(s>=0&&s<=100){s=parseInt(s,10);s=p.isNumber(s)?s:0;r._setClipContainerSize();}else{s=r.get("revealAmount");}return s;},_setSelectedItem:function(r){this._selectedItem=r;},_getNumPages:function(){return Math.ceil(parseInt(this.get("numItems"),10)/parseInt(this.get("numVisible"),10));},_getLastVisible:function(){var r=this;return r.get("currentPage")+1==r.get("numPages")?r.get("numItems")-1:r.get("firstVisible")+r.get("numVisible")-1;},_syncUiForItemAdd:function(u){var v,AA=this,x=AA._carouselEl,r,AB,t=AA._itemsTable,s,w,y,z;w=p.isUndefined(u.pos)?u.newPos||t.numItems-1:u.pos;if(!s){AB=t.items[w]||{};r=AA._createCarouselItem({className:AB.className,styles:AB.styles,content:AB.item,id:AB.id,pos:w});if(p.isUndefined(u.pos)){if(!p.isUndefined(t.loading[w])){s=t.loading[w];}if(s){x.replaceChild(r,s);delete t.loading[w];}else{x.appendChild(r);}}else{if(!p.isUndefined(t.items[u.pos+1])){y=e.get(t.items[u.pos+1].id);}if(y){x.insertBefore(r,y);}else{}}}else{if(p.isUndefined(u.pos)){if(!e.isAncestor(AA._carouselEl,s)){x.appendChild(s);}}else{if(!e.isAncestor(x,s)){if(!p.isUndefined(t.items[u.pos+1])){x.insertBefore(s,e.get(t.items[u.pos+1].id));}}}}if(!AA._hasRendered){AA._refreshUi();}if(AA.get("selectedItem")<0){AA.set("selectedItem",AA.get("firstVisible"));}AA._syncUiItems();},_syncUiForItemReplace:function(x){var w=this,t=w._carouselEl,r=w._itemsTable,y=x.pos,v=x.newItem,s=x.oldItem,u;
-u=w._createCarouselItem({className:v.className,styles:v.styles,content:v.item,id:v.id,pos:y});if(u&&s){c.purgeElement(s,true);t.replaceChild(u,e.get(s.id));if(!p.isUndefined(r.loading[y])){r.numItems++;delete r.loading[y];}}if(!w._hasRendered){w._refreshUi();}w._syncUiItems();},_syncUiForItemRemove:function(w){var v=this,r=v._carouselEl,t,u,s,x;s=v.get("numItems");u=w.item;x=w.pos;if(u&&(t=e.get(u.id))){if(t&&e.isAncestor(r,t)){c.purgeElement(t,true);r.removeChild(t);}if(v.get("selectedItem")==x){x=x>=s?s-1:x;}}else{}v._syncUiItems();},_syncUiForLazyLoading:function(v){var z=this,x=z._carouselEl,t=z._itemsTable,w=t.items.length,y=t.items[v.last+1],r,s;if(!y&&v.last<w){s=v.first;do{y=t.items[s];s++;}while(s<w&&!y);}for(var u=v.first;u<=v.last;u++){if(p.isUndefined(t.loading[u])&&p.isUndefined(t.items[u])){r=z._createCarouselItem({className:z.CLASSES.ITEM_LOADING,content:z.STRINGS.ITEM_LOADING_CONTENT,id:e.generateId(),pos:u});if(r){if(y){y=e.get(y.id);if(y){x.insertBefore(r,y);}else{}}else{x.appendChild(r);}}t.loading[u]=r;}}z._syncUiItems();},_syncUiItems:function(){var u,y=this,w=y.get("numItems"),t,s=y._itemsTable,v=s.items,r=s.loading,z,x;for(t=0;t<w;t++){z=v[t]||r[t];if(z&&z.id){x=m.call(y,t);z.styles=z.styles||{};for(u in x){if(x.hasOwnProperty(u)){z.styles[u]=x[u];}}G(e.get(z.id),x);}}},_updateNavButtons:function(v,s){var t,r=this.CLASSES,w,u=v.parentNode;if(!u){return;}w=u.parentNode;if(v.nodeName.toUpperCase()=="BUTTON"&&e.hasClass(u,r.BUTTON)){if(s){if(w){t=e.getChildren(w);if(t){e.removeClass(t,r.FOCUSSED_BUTTON);}}e.addClass(u,r.FOCUSSED_BUTTON);}else{e.removeClass(u,r.FOCUSSED_BUTTON);}}},_updatePagerButtons:function(){var z=this,x=z.CLASSES,y=z._pages.cur,r,w,u,AA,s=z.get("numVisible"),v=z._pages.num,t=z._pages.el;if(v===0||!t){return;}e.setStyle(t,"visibility","hidden");while(t.firstChild){t.removeChild(t.firstChild);}for(u=0;u<v;u++){r=document.createElement("LI");if(u===0){e.addClass(r,x.FIRST_PAGE);}if(u==y){e.addClass(r,x.SELECTED_NAV);}w="<a class="+x.PAGER_ITEM+' href="#'+(u+1)+'" tabindex="0"><em>'+z.STRINGS.PAGER_PREFIX_TEXT+" "+(u+1)+"</em></a>";r.innerHTML=w;t.appendChild(r);}e.setStyle(t,"visibility","visible");},_updatePagerMenu:function(){var z=this,x=z.CLASSES,y=z._pages.cur,s,v,AA,t=z.get("numVisible"),w=z._pages.num,u=z._pages.el,r;if(w===0){return;}r=document.createElement("SELECT");if(!r){return;}e.setStyle(u,"visibility","hidden");while(u.firstChild){u.removeChild(u.firstChild);}for(v=0;v<w;v++){s=document.createElement("OPTION");s.value=v+1;s.innerHTML=z.STRINGS.PAGER_PREFIX_TEXT+" "+(v+1);if(v==y){s.setAttribute("selected","selected");}r.appendChild(s);}s=document.createElement("FORM");if(!s){}else{s.appendChild(r);u.appendChild(s);}c.addListener(r,"change",z._pagerChangeHandler,this,true);e.setStyle(u,"visibility","visible");},_updateTabIndex:function(r){var s=this;if(r){if(s._focusableItemEl){s._focusableItemEl.tabIndex=-1;}s._focusableItemEl=r;r.tabIndex=0;}},_validateAnimation:function(r){var s=true;if(p.isObject(r)){if(r.speed){s=s&&p.isNumber(r.speed);}if(r.effect){s=s&&p.isFunction(r.effect);}else{if(!p.isUndefined(YAHOO.util.Easing)){r.effect=YAHOO.util.Easing.easeOut;}}}else{s=false;}return s;},_validateFirstVisible:function(t){var s=this,r=s.get("numItems");if(p.isNumber(t)){if(r===0&&t==r){return true;}else{return(t>=0&&t<r);}}return false;},_validateNavigation:function(r){var s;if(!p.isObject(r)){return false;}if(r.prev){if(!p.isArray(r.prev)){return false;}for(s in r.prev){if(r.prev.hasOwnProperty(s)){if(!p.isString(r.prev[s].nodeName)){return false;}}}}if(r.next){if(!p.isArray(r.next)){return false;}for(s in r.next){if(r.next.hasOwnProperty(s)){if(!p.isString(r.next[s].nodeName)){return false;}}}}return true;},_validateNumItems:function(r){return p.isNumber(r)&&(r>=0);},_validateNumVisible:function(r){var s=false;if(p.isNumber(r)){s=r>0&&r<=this.get("numItems");}else{if(p.isArray(r)){if(p.isNumber(r[0])&&p.isNumber(r[1])){s=r[0]*r[1]>0&&r.length==2;}}}return s;},_validateRevealAmount:function(r){var s=false;if(p.isNumber(r)){s=r>=0&&r<100;}return s;},_validateScrollIncrement:function(r){var s=false;if(p.isNumber(r)){s=(r>0&&r<this.get("numItems"));}return s;}});})();YAHOO.register("carousel",YAHOO.widget.Carousel,{version:"2.8.0r4",build:"2449"});
\ No newline at end of file
diff --git a/koha-tmpl/intranet-tmpl/prog/en/lib/yui/carousel/carousel.js b/koha-tmpl/intranet-tmpl/prog/en/lib/yui/carousel/carousel.js
deleted file mode 100644 (file)
index 1b78bd5..0000000
+++ /dev/null
@@ -1,4349 +0,0 @@
-/*
-Copyright (c) 2009, Yahoo! Inc. All rights reserved.
-Code licensed under the BSD License:
-http://developer.yahoo.net/yui/license.txt
-version: 2.8.0r4
-*/
-/**
- * The Carousel module provides a widget for browsing among a set of like
- * objects represented pictorially.
- *
- * @module carousel
- * @requires yahoo, dom, event, element
- * @optional animation
- * @namespace YAHOO.widget
- * @title Carousel Widget
- * @beta
- */
-(function () {
-
-    var WidgetName;             // forward declaration
-
-    /**
-     * The Carousel widget.
-     *
-     * @class Carousel
-     * @extends YAHOO.util.Element
-     * @constructor
-     * @param el {HTMLElement | String} The HTML element that represents the
-     * the container that houses the Carousel.
-     * @param cfg {Object} (optional) The configuration values
-     */
-    YAHOO.widget.Carousel = function (el, cfg) {
-
-        YAHOO.widget.Carousel.superclass.constructor.call(this, el, cfg);
-    };
-
-    /*
-     * Private variables of the Carousel component
-     */
-
-    /* Some abbreviations to avoid lengthy typing and lookups. */
-    var Carousel    = YAHOO.widget.Carousel,
-        Dom         = YAHOO.util.Dom,
-        Event       = YAHOO.util.Event,
-        JS          = YAHOO.lang;
-
-    /**
-     * The widget name.
-     * @private
-     * @static
-     */
-    WidgetName = "Carousel";
-
-    /**
-     * The internal table of Carousel instances.
-     * @private
-     * @static
-     */
-    var instances = {},
-
-    /*
-     * Custom events of the Carousel component
-     */
-
-    /**
-     * @event afterScroll
-     * @description Fires when the Carousel has scrolled to the previous or
-     * next page.  Passes back the index of the first and last visible items in
-     * the Carousel.  See
-     * <a href="YAHOO.util.Element.html#addListener">Element.addListener</a>
-     * for more information on listening for this event.
-     * @type YAHOO.util.CustomEvent
-     */
-    afterScrollEvent = "afterScroll",
-
-    /**
-     * @event allItemsRemovedEvent
-     * @description Fires when all items have been removed from the Carousel.
-     * See
-     * <a href="YAHOO.util.Element.html#addListener">Element.addListener</a>
-     * for more information on listening for this event.
-     * @type YAHOO.util.CustomEvent
-     */
-    allItemsRemovedEvent = "allItemsRemoved",
-
-    /**
-     * @event beforeHide
-     * @description Fires before the Carousel is hidden.  See
-     * <a href="YAHOO.util.Element.html#addListener">Element.addListener</a>
-     * for more information on listening for this event.
-     * @type YAHOO.util.CustomEvent
-     */
-    beforeHideEvent = "beforeHide",
-
-    /**
-     * @event beforePageChange
-     * @description Fires when the Carousel is about to scroll to the previous
-     * or next page.  Passes back the page number of the current page.  Note
-     * that the first page number is zero.  See
-     * <a href="YAHOO.util.Element.html#addListener">Element.addListener</a>
-     * for more information on listening for this event.
-     * @type YAHOO.util.CustomEvent
-     */
-    beforePageChangeEvent = "beforePageChange",
-
-    /**
-     * @event beforeScroll
-     * @description Fires when the Carousel is about to scroll to the previous
-     * or next page.  Passes back the index of the first and last visible items
-     * in the Carousel and the direction (backward/forward) of the scroll.  See
-     * <a href="YAHOO.util.Element.html#addListener">Element.addListener</a>
-     * for more information on listening for this event.
-     * @type YAHOO.util.CustomEvent
-     */
-    beforeScrollEvent = "beforeScroll",
-
-    /**
-     * @event beforeShow
-     * @description Fires when the Carousel is about to be shown.  See
-     * <a href="YAHOO.util.Element.html#addListener">Element.addListener</a>
-     * for more information on listening for this event.
-     * @type YAHOO.util.CustomEvent
-     */
-    beforeShowEvent = "beforeShow",
-
-    /**
-     * @event blur
-     * @description Fires when the Carousel loses focus.  See
-     * <a href="YAHOO.util.Element.html#addListener">Element.addListener</a>
-     * for more information on listening for this event.
-     * @type YAHOO.util.CustomEvent
-     */
-    blurEvent = "blur",
-
-    /**
-     * @event focus
-     * @description Fires when the Carousel gains focus.  See
-     * <a href="YAHOO.util.Element.html#addListener">Element.addListener</a>
-     * for more information on listening for this event.
-     * @type YAHOO.util.CustomEvent
-     */
-    focusEvent = "focus",
-
-    /**
-     * @event hide
-     * @description Fires when the Carousel is hidden.  See
-     * <a href="YAHOO.util.Element.html#addListener">Element.addListener</a>
-     * for more information on listening for this event.
-     * @type YAHOO.util.CustomEvent
-     */
-    hideEvent = "hide",
-
-    /**
-     * @event itemAdded
-     * @description Fires when an item has been added to the Carousel.  Passes
-     * back the content of the item that would be added, the index at which the
-     * item would be added, and the event itself.  See
-     * <a href="YAHOO.util.Element.html#addListener">Element.addListener</a>
-     * for more information on listening for this event.
-     * @type YAHOO.util.CustomEvent
-     */
-    itemAddedEvent = "itemAdded",
-
-    /**
-     * @event itemRemoved
-     * @description Fires when an item has been removed from the Carousel.
-     * Passes back the content of the item that would be removed, the index
-     * from which the item would be removed, and the event itself.  See
-     * <a href="YAHOO.util.Element.html#addListener">Element.addListener</a>
-     * for more information on listening for this event.
-     * @type YAHOO.util.CustomEvent
-     */
-    itemRemovedEvent = "itemRemoved",
-
-    /**
-     * @event itemReplaced
-     * @description Fires when an item has been replaced in the Carousel.
-     * Passes back the content of the item that was replaced, the content
-     * of the new item, the index where the replacement occurred, and the event
-     * itself.  See
-     * <a href="YAHOO.util.Element.html#addListener">Element.addListener</a>
-     * for more information on listening for this event.
-     * @type YAHOO.util.CustomEvent
-     */
-    itemReplacedEvent = "itemReplaced",
-
-    /**
-     * @event itemSelected
-     * @description Fires when an item has been selected in the Carousel.
-     * Passes back the index of the selected item in the Carousel.  Note, that
-     * the index begins from zero.  See
-     * <a href="YAHOO.util.Element.html#addListener">Element.addListener</a>
-     * for more information on listening for this event.
-     * @type YAHOO.util.CustomEvent
-     */
-    itemSelectedEvent = "itemSelected",
-
-    /**
-     * @event loadItems
-     * @description Fires when the Carousel needs more items to be loaded for
-     * displaying them.  Passes back the first and last visible items in the
-     * Carousel, and the number of items needed to be loaded.  See
-     * <a href="YAHOO.util.Element.html#addListener">Element.addListener</a>
-     * for more information on listening for this event.
-     * @type YAHOO.util.CustomEvent
-     */
-    loadItemsEvent = "loadItems",
-
-    /**
-     * @event navigationStateChange
-     * @description Fires when the state of either one of the navigation
-     * buttons are changed from enabled to disabled or vice versa.  Passes back
-     * the state (true/false) of the previous and next buttons.  The value true
-     * signifies the button is enabled, false signifies disabled.  See
-     * <a href="YAHOO.util.Element.html#addListener">Element.addListener</a>
-     * for more information on listening for this event.
-     * @type YAHOO.util.CustomEvent
-     */
-    navigationStateChangeEvent = "navigationStateChange",
-
-    /**
-     * @event pageChange
-     * @description Fires after the Carousel has scrolled to the previous or
-     * next page.  Passes back the page number of the current page.  Note
-     * that the first page number is zero.  See
-     * <a href="YAHOO.util.Element.html#addListener">Element.addListener</a>
-     * for more information on listening for this event.
-     * @type YAHOO.util.CustomEvent
-     */
-    pageChangeEvent = "pageChange",
-
-    /*
-     * Internal event.
-     * @event render
-     * @description Fires when the Carousel is rendered.  See
-     * <a href="YAHOO.util.Element.html#addListener">Element.addListener</a>
-     * for more information on listening for this event.
-     * @type YAHOO.util.CustomEvent
-     */
-    renderEvent = "render",
-
-    /**
-     * @event show
-     * @description Fires when the Carousel is shown.  See
-     * <a href="YAHOO.util.Element.html#addListener">Element.addListener</a>
-     * for more information on listening for this event.
-     * @type YAHOO.util.CustomEvent
-     */
-    showEvent = "show",
-
-    /**
-     * @event startAutoPlay
-     * @description Fires when the auto play has started in the Carousel.  See
-     * <a href="YAHOO.util.Element.html#addListener">Element.addListener</a>
-     * for more information on listening for this event.
-     * @type YAHOO.util.CustomEvent
-     */
-    startAutoPlayEvent = "startAutoPlay",
-
-    /**
-     * @event stopAutoPlay
-     * @description Fires when the auto play has been stopped in the Carousel.
-     * See
-     * <a href="YAHOO.util.Element.html#addListener">Element.addListener</a>
-     * for more information on listening for this event.
-     * @type YAHOO.util.CustomEvent
-     */
-    stopAutoPlayEvent = "stopAutoPlay",
-
-    /*
-     * Internal event.
-     * @event uiUpdateEvent
-     * @description Fires when the UI has been updated.
-     * See
-     * <a href="YAHOO.util.Element.html#addListener">Element.addListener</a>
-     * for more information on listening for this event.
-     * @type YAHOO.util.CustomEvent
-     */
-    uiUpdateEvent = "uiUpdate";
-
-    /*
-     * Private helper functions used by the Carousel component
-     */
-
-   /**
-     * Set multiple styles on one element.
-     * @method setStyles
-     * @param el {HTMLElement} The element to set styles on
-     * @param style {Object} top:"10px", left:"0px", etc.
-     * @private
-     */
-     function setStyles(el, styles) {
-         var which;
-
-         for (which in styles) {
-             if (styles.hasOwnProperty(which)) {
-                 Dom.setStyle(el, which, styles[which]);
-             }
-         }
-     }
-
-    /**
-     * Create an element, set its class name and optionally install the element
-     * to its parent.
-     * @method createElement
-     * @param el {String} The element to be created
-     * @param attrs {Object} Configuration of parent, class and id attributes.
-     * If the content is specified, it is inserted after creation of the
-     * element. The content can also be an HTML element in which case it would
-     * be appended as a child node of the created element.
-     * @private
-     */
-    function createElement(el, attrs) {
-        var newEl = document.createElement(el);
-
-        attrs = attrs || {};
-        if (attrs.className) {
-            Dom.addClass(newEl, attrs.className);
-        }
-
-        if (attrs.styles) {
-            setStyles(newEl, attrs.styles);
-        }
-
-        if (attrs.parent) {
-            attrs.parent.appendChild(newEl);
-        }
-
-        if (attrs.id) {
-            newEl.setAttribute("id", attrs.id);
-        }
-
-        if (attrs.content) {
-            if (attrs.content.nodeName) {
-                newEl.appendChild(attrs.content);
-            } else {
-                newEl.innerHTML = attrs.content;
-            }
-        }
-
-        return newEl;
-    }
-
-    /**
-     * Get the computed style of an element.
-     *
-     * @method getStyle
-     * @param el {HTMLElement} The element for which the style needs to be
-     * returned.
-     * @param style {String} The style attribute
-     * @param type {String} "int", "float", etc. (defaults to int)
-     * @private
-     */
-    function getStyle(el, style, type) {
-        var value;
-
-        if (!el) {
-            return 0;
-        }
-
-        function getStyleIntVal(el, style) {
-            var val;
-
-            /*
-             * XXX: Safari calculates incorrect marginRight for an element
-             * which has its parent element style set to overflow: hidden
-             * https://bugs.webkit.org/show_bug.cgi?id=13343
-             * Let us assume marginLeft == marginRight
-             */
-            if (style == "marginRight" && YAHOO.env.ua.webkit) {
-                val = parseInt(Dom.getStyle(el, "marginLeft"), 10);
-            } else {
-                val = parseInt(Dom.getStyle(el, style), 10);
-            }
-
-            return JS.isNumber(val) ? val : 0;
-        }
-
-        function getStyleFloatVal(el, style) {
-            var val;
-
-            /*
-             * XXX: Safari calculates incorrect marginRight for an element
-             * which has its parent element style set to overflow: hidden
-             * https://bugs.webkit.org/show_bug.cgi?id=13343
-             * Let us assume marginLeft == marginRight
-             */
-            if (style == "marginRight" && YAHOO.env.ua.webkit) {
-                val = parseFloat(Dom.getStyle(el, "marginLeft"));
-            } else {
-                val = parseFloat(Dom.getStyle(el, style));
-            }
-
-            return JS.isNumber(val) ? val : 0;
-        }
-
-        if (typeof type == "undefined") {
-            type = "int";
-        }
-
-        switch (style) {
-        case "height":
-            value = el.offsetHeight;
-            if (value > 0) {
-                value += getStyleIntVal(el, "marginTop")        +
-                        getStyleIntVal(el, "marginBottom");
-            } else {
-                value = getStyleFloatVal(el, "height")          +
-                        getStyleIntVal(el, "marginTop")         +
-                        getStyleIntVal(el, "marginBottom")      +
-                        getStyleIntVal(el, "borderTopWidth")    +
-                        getStyleIntVal(el, "borderBottomWidth") +
-                        getStyleIntVal(el, "paddingTop")        +
-                        getStyleIntVal(el, "paddingBottom");
-            }
-            break;
-        case "width":
-            value = el.offsetWidth;
-            if (value > 0) {
-                value += getStyleIntVal(el, "marginLeft")       +
-                        getStyleIntVal(el, "marginRight");
-            } else {
-                value = getStyleFloatVal(el, "width")           +
-                        getStyleIntVal(el, "marginLeft")        +
-                        getStyleIntVal(el, "marginRight")       +
-                        getStyleIntVal(el, "borderLeftWidth")   +
-                        getStyleIntVal(el, "borderRightWidth")  +
-                        getStyleIntVal(el, "paddingLeft")       +
-                        getStyleIntVal(el, "paddingRight");
-            }
-            break;
-        default:
-            if (type == "int") {
-                value = getStyleIntVal(el, style);
-            } else if (type == "float") {
-                value = getStyleFloatVal(el, style);
-            } else {
-                value = Dom.getStyle(el, style);
-            }
-            break;
-        }
-
-        return value;
-    }
-
-    /**
-     * Compute and return the height or width of a single Carousel item
-     * depending upon the orientation.
-     *
-     * @method getCarouselItemSize
-     * @param which {String} "height" or "width" to be returned.  If this is
-     * passed explicitly, the calculated size is not cached.
-     * @private
-     */
-    function getCarouselItemSize(which) {
-        var carousel = this,
-            child,
-            item,
-            size     = 0,
-            first = carousel.get("firstVisible"),
-            vertical = false;
-
-        if (carousel._itemsTable.numItems === 0) {
-            return 0;
-        }
-
-        item = carousel._itemsTable.items[first] ||
-               carousel._itemsTable.loading[first];
-
-        if (JS.isUndefined(item)) {
-            return 0;
-        }
-
-        child = Dom.get(item.id);
-
-        if (typeof which == "undefined") {
-            vertical = carousel.get("isVertical");
-        } else {
-            vertical = which == "height";
-        }
-
-        if (this._itemAttrCache[which]) {
-            return this._itemAttrCache[which];
-        }
-
-        if (vertical) {
-            size = getStyle(child, "height");
-        } else {
-            size = getStyle(child, "width");
-        }
-
-        this._itemAttrCache[which] = size;
-
-        return size;
-    }
-
-    /**
-     * Return the size of a part of the item (reveal).
-     *
-     * @method getRevealSize
-     * @private
-     */
-    function getRevealSize() {
-        var carousel = this, isVertical, sz;
-
-        isVertical = carousel.get("isVertical");
-        sz  = getCarouselItemSize.call(carousel,
-                isVertical ? "height" : "width");
-        return (sz * carousel.get("revealAmount") / 100);
-    }
-
-    /**
-     * Compute and return the position of a Carousel item based on its
-     * position.
-     *
-     * @method getCarouselItemPosition
-     * @param position {Number} The position of the Carousel item.
-     * @private
-     */
-    function getCarouselItemPosition(pos) {
-        var carousel    = this,
-            itemsPerRow = carousel._cols,
-            itemsPerCol = carousel._rows,
-            page,
-            sz,
-            isVertical,
-            itemsCol,
-            itemsRow,
-            sentinel,
-            delta = 0,
-            top,
-            left,
-            rsz,
-            styles = {},
-            index = 0,
-            itemsTable = carousel._itemsTable,
-            items = itemsTable.items,
-            loading = itemsTable.loading;
-
-        isVertical = carousel.get("isVertical");
-        sz  = getCarouselItemSize.call(carousel,
-                isVertical ? "height" : "width");
-        rsz = getRevealSize.call(carousel);
-
-        // adjust for items not yet loaded
-        while (index < pos) {
-            if (!items[index] && !loading[index]) {
-                delta++;
-            }
-            index++;
-        }
-        pos -= delta;
-
-        if (itemsPerCol) {
-            page = this.getPageForItem(pos);
-            if (isVertical) {
-                itemsRow = Math.floor(pos/itemsPerRow);
-                delta = itemsRow;
-                top = delta * sz;
-                styles.top  = (top + rsz) + "px";
-
-                sz  = getCarouselItemSize.call(carousel, "width");
-
-                itemsCol = pos % itemsPerRow;
-                delta = itemsCol;
-                left = delta * sz;
-                styles.left = left + "px";
-            } else {
-                itemsCol = pos % itemsPerRow;
-                sentinel = (page - 1) * itemsPerRow;
-                delta = itemsCol + sentinel;
-                left = delta * sz;
-                styles.left = (left + rsz) + "px";
-
-                sz  = getCarouselItemSize.call(carousel, "height");
-
-                itemsRow = Math.floor(pos/itemsPerRow);
-                sentinel = (page - 1) * itemsPerCol;
-                delta = itemsRow - sentinel;
-                top = delta * sz;
-
-                styles.top  = top + "px";
-            }
-        } else {
-        if (isVertical) {
-            styles.left = 0;
-            styles.top  = ((pos * sz) + rsz) + "px";
-        } else {
-            styles.top  = 0;
-            styles.left = ((pos * sz) + rsz) + "px";
-        }
-        }
-
-        return styles;
-    }
-
-    /**
-     * Return the index of the first item in the view port for displaying item
-     * in "pos".
-     *
-     * @method getFirstVisibleForPosition
-     * @param pos {Number} The position of the item to be displayed
-     * @private
-     */
-    function getFirstVisibleForPosition(pos) {
-        var num = this.get("numVisible");
-        return Math.floor(pos / num) * num;
-    }
-
-    /**
-     * Return the scrolling offset size given the number of elements to
-     * scroll.
-     *
-     * @method getScrollOffset
-     * @param delta {Number} The delta number of elements to scroll by.
-     * @private
-     */
-    function getScrollOffset(delta) {
-        var itemSize = 0,
-            size     = 0;
-
-        itemSize = getCarouselItemSize.call(this);
-        size = itemSize * delta;
-
-        return size;
-    }
-
-    /**
-     * Scroll the Carousel by a page backward.
-     *
-     * @method scrollPageBackward
-     * @param {Event} ev The event object
-     * @param {Object} obj The context object
-     * @private
-     */
-    function scrollPageBackward(ev, obj) {
-        obj.scrollPageBackward();
-        Event.preventDefault(ev);
-    }
-
-    /**
-     * Scroll the Carousel by a page forward.
-     *
-     * @method scrollPageForward
-     * @param {Event} ev The event object
-     * @param {Object} obj The context object
-     * @private
-     */
-    function scrollPageForward(ev, obj) {
-        obj.scrollPageForward();
-        Event.preventDefault(ev);
-    }
-
-    /**
-     * Set the selected item.
-     *
-     * @method setItemSelection
-     * @param {Number} newpos The index of the new position
-     * @param {Number} oldpos The index of the previous position
-     * @private
-     */
-     function setItemSelection(newpos, oldpos) {
-        var carousel = this,
-            cssClass   = carousel.CLASSES,
-            el,
-            firstItem  = carousel._firstItem,
-            isCircular = carousel.get("isCircular"),
-            numItems   = carousel.get("numItems"),
-            numVisible = carousel.get("numVisible"),
-            position   = oldpos,
-            sentinel   = firstItem + numVisible - 1;
-
-        if (position >= 0 && position < numItems) {
-            if (!JS.isUndefined(carousel._itemsTable.items[position])) {
-                el = Dom.get(carousel._itemsTable.items[position].id);
-                if (el) {
-                    Dom.removeClass(el, cssClass.SELECTED_ITEM);
-                }
-            }
-        }
-
-        if (JS.isNumber(newpos)) {
-            newpos = parseInt(newpos, 10);
-            newpos = JS.isNumber(newpos) ? newpos : 0;
-        } else {
-            newpos = firstItem;
-        }
-
-        if (JS.isUndefined(carousel._itemsTable.items[newpos])) {
-            newpos = getFirstVisibleForPosition.call(carousel, newpos);
-            carousel.scrollTo(newpos); // still loading the item
-        }
-
-        if (!JS.isUndefined(carousel._itemsTable.items[newpos])) {
-            el = Dom.get(carousel._itemsTable.items[newpos].id);
-            if (el) {
-                Dom.addClass(el, cssClass.SELECTED_ITEM);
-            }
-        }
-
-        if (newpos < firstItem || newpos > sentinel) { // out of focus
-            newpos = getFirstVisibleForPosition.call(carousel, newpos);
-            carousel.scrollTo(newpos);
-        }
-    }
-
-    /**
-     * Fire custom events for enabling/disabling navigation elements.
-     *
-     * @method syncNavigation
-     * @private
-     */
-    function syncNavigation() {
-        var attach   = false,
-            carousel = this,
-            cssClass = carousel.CLASSES,
-            i,
-            navigation,
-            sentinel;
-
-        // Don't do anything if the Carousel is not rendered
-        if (!carousel._hasRendered) {
-            return;
-        }
-
-        navigation = carousel.get("navigation");
-        sentinel   = carousel._firstItem + carousel.get("numVisible");
-
-        if (navigation.prev) {
-            if (carousel.get("numItems") === 0 || carousel._firstItem === 0) {
-                if (carousel.get("numItems") === 0 ||
-                   !carousel.get("isCircular")) {
-                    Event.removeListener(navigation.prev, "click",
-                            scrollPageBackward);
-                    Dom.addClass(navigation.prev, cssClass.FIRST_NAV_DISABLED);
-                    for (i = 0; i < carousel._navBtns.prev.length; i++) {
-                        carousel._navBtns.prev[i].setAttribute("disabled",
-                                "true");
-                    }
-                    carousel._prevEnabled = false;
-                } else {
-                    attach = !carousel._prevEnabled;
-                }
-            } else {
-                attach = !carousel._prevEnabled;
-            }
-
-            if (attach) {
-                Event.on(navigation.prev, "click", scrollPageBackward,
-                         carousel);
-                Dom.removeClass(navigation.prev, cssClass.FIRST_NAV_DISABLED);
-                for (i = 0; i < carousel._navBtns.prev.length; i++) {
-                    carousel._navBtns.prev[i].removeAttribute("disabled");
-                }
-                carousel._prevEnabled = true;
-            }
-        }
-
-        attach = false;
-        if (navigation.next) {
-            if (sentinel >= carousel.get("numItems")) {
-                if (!carousel.get("isCircular")) {
-                    Event.removeListener(navigation.next, "click",
-                            scrollPageForward);
-                    Dom.addClass(navigation.next, cssClass.DISABLED);
-                    for (i = 0; i < carousel._navBtns.next.length; i++) {
-                        carousel._navBtns.next[i].setAttribute("disabled",
-                                "true");
-                    }
-                    carousel._nextEnabled = false;
-                } else {
-                    attach = !carousel._nextEnabled;
-                }
-            } else {
-                attach = !carousel._nextEnabled;
-            }
-
-            if (attach) {
-                Event.on(navigation.next, "click", scrollPageForward,
-                         carousel);
-                Dom.removeClass(navigation.next, cssClass.DISABLED);
-                for (i = 0; i < carousel._navBtns.next.length; i++) {
-                    carousel._navBtns.next[i].removeAttribute("disabled");
-                }
-                carousel._nextEnabled = true;
-            }
-        }
-
-        carousel.fireEvent(navigationStateChangeEvent,
-                { next: carousel._nextEnabled, prev: carousel._prevEnabled });
-    }
-
-    /**
-     * Synchronize and redraw the Pager UI if necessary.
-     *
-     * @method syncPagerUi
-     * @private
-     */
-    function syncPagerUi(page) {
-        var carousel = this, numPages, numVisible;
-
-        // Don't do anything if the Carousel is not rendered
-        if (!carousel._hasRendered) {
-            return;
-        }
-
-        numVisible = carousel.get("numVisible");
-
-        if (!JS.isNumber(page)) {
-            page = Math.floor(carousel.get("selectedItem") / numVisible);
-        }
-
-        numPages = Math.ceil(carousel.get("numItems") / numVisible);
-
-        carousel._pages.num = numPages;
-        carousel._pages.cur = page;
-
-        if (numPages > carousel.CONFIG.MAX_PAGER_BUTTONS) {
-            carousel._updatePagerMenu();
-        } else {
-            carousel._updatePagerButtons();
-        }
-    }
-
-    /**
-     * Get full dimensions of an element.
-     *
-     * @method getDimensions
-     * @param {Object} el The element to get the dimensions of
-     * @param {String} which Get the height or width of an element
-     * @private
-     */
-    function getDimensions(el, which) {
-        switch (which) {
-        case 'height':
-            return  getStyle(el, "marginTop")        +
-                    getStyle(el, "marginBottom")     +
-                    getStyle(el, "paddingTop")       +
-                    getStyle(el, "paddingBottom")    +
-                    getStyle(el, "borderTopWidth")   +
-                    getStyle(el, "borderBottomWidth");
-        case 'width':
-            return   getStyle(el, "marginLeft")      +
-                     getStyle(el, "marginRight")     +
-                     getStyle(el, "paddingLeft")     +
-                     getStyle(el, "paddingRight")    +
-                     getStyle(el, "borderLeftWidth") +
-                     getStyle(el, "borderRightWidth");
-        default:
-            break;
-        }
-
-        return getStyle(el, which);
-    }
-
-    /**
-     * Handle UI update.
-     * Call the appropriate methods on events fired when an item is added, or
-     * removed for synchronizing the DOM.
-     *
-     * @method syncUi
-     * @param {Object} o The item that needs to be added or removed
-     * @private
-     */
-    function syncUi(o) {
-        var carousel = this;
-
-        if (!JS.isObject(o)) {
-            return;
-        }
-
-        switch (o.ev) {
-        case itemAddedEvent:
-            carousel._syncUiForItemAdd(o);
-            break;
-        case itemRemovedEvent:
-            carousel._syncUiForItemRemove(o);
-            break;
-        case itemReplacedEvent:
-            carousel._syncUiForItemReplace(o);
-            break;
-        case loadItemsEvent:
-            carousel._syncUiForLazyLoading(o);
-            break;
-        }
-
-        carousel.fireEvent(uiUpdateEvent);
-    }
-
-    /**
-     * Update the state variables after scrolling the Carousel view port.
-     *
-     * @method updateStateAfterScroll
-     * @param {Integer} item The index to which the Carousel has scrolled to.
-     * @param {Integer} sentinel The last element in the view port.
-     * @private
-     */
-    function updateStateAfterScroll(item, sentinel) {
-        var carousel   = this,
-            page       = carousel.get("currentPage"),
-            newPage,
-            numPerPage = carousel.get("numVisible");
-
-        newPage = parseInt(carousel._firstItem / numPerPage, 10);
-        if (newPage != page) {
-            carousel.setAttributeConfig("currentPage", { value: newPage });
-            carousel.fireEvent(pageChangeEvent, newPage);
-        }
-
-        if (carousel.get("selectOnScroll")) {
-            if (carousel.get("selectedItem") != carousel._selectedItem) {
-                carousel.set("selectedItem", carousel._selectedItem);
-            }
-        }
-
-        clearTimeout(carousel._autoPlayTimer);
-        delete carousel._autoPlayTimer;
-        if (carousel.isAutoPlayOn()) {
-            carousel.startAutoPlay();
-        }
-
-        carousel.fireEvent(afterScrollEvent,
-                           { first: carousel._firstItem,
-                             last: sentinel },
-                           carousel);
-    }
-
-    /*
-     * Static members and methods of the Carousel component
-     */
-
-    /**
-     * Return the appropriate Carousel object based on the id associated with
-     * the Carousel element or false if none match.
-     * @method getById
-     * @public
-     * @static
-     */
-    Carousel.getById = function (id) {
-        return instances[id] ? instances[id].object : false;
-    };
-
-    YAHOO.extend(Carousel, YAHOO.util.Element, {
-
-        /*
-         * Internal variables used within the Carousel component
-         */
-
-         /**
-         * Number of rows for a multirow carousel.
-         *
-         * @property _rows
-         * @private
-         */
-        _rows: null,
-
-        /**
-         * Number of cols for a multirow carousel.
-         *
-         * @property _cols
-         * @private
-         */
-        _cols: null,
-
-        /**
-         * The Animation object.
-         *
-         * @property _animObj
-         * @private
-         */
-        _animObj: null,
-
-        /**
-         * The Carousel element.
-         *
-         * @property _carouselEl
-         * @private
-         */
-        _carouselEl: null,
-
-        /**
-         * The Carousel clipping container element.
-         *
-         * @property _clipEl
-         * @private
-         */
-        _clipEl: null,
-
-        /**
-         * The current first index of the Carousel.
-         *
-         * @property _firstItem
-         * @private
-         */
-        _firstItem: 0,
-
-        /**
-         * Does the Carousel element have focus?
-         *
-         * @property _hasFocus
-         * @private
-         */
-        _hasFocus: false,
-
-        /**
-         * Is the Carousel rendered already?
-         *
-         * @property _hasRendered
-         * @private
-         */
-        _hasRendered: false,
-
-        /**
-         * Is the animation still in progress?
-         *
-         * @property _isAnimationInProgress
-         * @private
-         */
-        _isAnimationInProgress: false,
-
-        /**
-         * Is the auto-scrolling of Carousel in progress?
-         *
-         * @property _isAutoPlayInProgress
-         * @private
-         */
-        _isAutoPlayInProgress: false,
-
-        /**
-         * The table of items in the Carousel.
-         * The numItems is the number of items in the Carousel, items being the
-         * array of items in the Carousel.  The size is the size of a single
-         * item in the Carousel.  It is cached here for efficiency (to avoid
-         * computing the size multiple times).
-         *
-         * @property _itemsTable
-         * @private
-         */
-        _itemsTable: null,
-
-        /**
-         * The Carousel navigation buttons.
-         *
-         * @property _navBtns
-         * @private
-         */
-        _navBtns: null,
-
-        /**
-         * The Carousel navigation.
-         *
-         * @property _navEl
-         * @private
-         */
-        _navEl: null,
-
-        /**
-         * Status of the next navigation item.
-         *
-         * @property _nextEnabled
-         * @private
-         */
-        _nextEnabled: true,
-
-        /**
-         * The Carousel pages structure.
-         * This is an object of the total number of pages and the current page.
-         *
-         * @property _pages
-         * @private
-         */
-        _pages: null,
-
-        /**
-         * The Carousel pagination structure.
-         *
-         * @property _pagination
-         * @private
-         */
-        _pagination: {},
-
-        /**
-         * Status of the previous navigation item.
-         *
-         * @property _prevEnabled
-         * @private
-         */
-        _prevEnabled: true,
-
-        /**
-         * Whether the Carousel size needs to be recomputed or not?
-         *
-         * @property _recomputeSize
-         * @private
-         */
-        _recomputeSize: true,
-
-        /**
-         * Cache the Carousel item attributes.
-         *
-         * @property _itemAttrCache
-         * @private
-         */
-         _itemAttrCache: {},
-
-        /*
-         * CSS classes used by the Carousel component
-         */
-
-        CLASSES: {
-
-            /**
-             * The class name of the Carousel navigation buttons.
-             *
-             * @property BUTTON
-             * @default "yui-carousel-button"
-             */
-            BUTTON: "yui-carousel-button",
-
-            /**
-             * The class name of the Carousel element.
-             *
-             * @property CAROUSEL
-             * @default "yui-carousel"
-             */
-            CAROUSEL: "yui-carousel",
-
-            /**
-             * The class name of the container of the items in the Carousel.
-             *
-             * @property CAROUSEL_EL
-             * @default "yui-carousel-element"
-             */
-            CAROUSEL_EL: "yui-carousel-element",
-
-            /**
-             * The class name of the Carousel's container element.
-             *
-             * @property CONTAINER
-             * @default "yui-carousel-container"
-             */
-            CONTAINER: "yui-carousel-container",
-
-            /**
-             * The class name of the Carousel's container element.
-             *
-             * @property CONTENT
-             * @default "yui-carousel-content"
-             */
-            CONTENT: "yui-carousel-content",
-
-            /**
-             * The class name of a disabled navigation button.
-             *
-             * @property DISABLED
-             * @default "yui-carousel-button-disabled"
-             */
-            DISABLED: "yui-carousel-button-disabled",
-
-            /**
-             * The class name of the first Carousel navigation button.
-             *
-             * @property FIRST_NAV
-             * @default " yui-carousel-first-button"
-             */
-            FIRST_NAV: " yui-carousel-first-button",
-
-            /**
-             * The class name of a first disabled navigation button.
-             *
-             * @property FIRST_NAV_DISABLED
-             * @default "yui-carousel-first-button-disabled"
-             */
-            FIRST_NAV_DISABLED: "yui-carousel-first-button-disabled",
-
-            /**
-             * The class name of a first page element.
-             *
-             * @property FIRST_PAGE
-             * @default "yui-carousel-nav-first-page"
-             */
-            FIRST_PAGE: "yui-carousel-nav-first-page",
-
-            /**
-             * The class name of the Carousel navigation button that has focus.
-             *
-             * @property FOCUSSED_BUTTON
-             * @default "yui-carousel-button-focus"
-             */
-            FOCUSSED_BUTTON: "yui-carousel-button-focus",
-
-            /**
-             * The class name of a horizontally oriented Carousel.
-             *
-             * @property HORIZONTAL
-             * @default "yui-carousel-horizontal"
-             */
-            HORIZONTAL: "yui-carousel-horizontal",
-
-            /**
-             * The element to be used as the progress indicator when the item
-             * is still being loaded.
-             *
-             * @property ITEM_LOADING
-             * @default The progress indicator (spinner) image CSS class
-             */
-            ITEM_LOADING: "yui-carousel-item-loading",
-
-            /**
-             * The class name that will be set if the Carousel adjusts itself
-             * for a minimum width.
-             *
-             * @property MIN_WIDTH
-             * @default "yui-carousel-min-width"
-             */
-            MIN_WIDTH: "yui-carousel-min-width",
-
-            /**
-             * The navigation element container class name.
-             *
-             * @property NAVIGATION
-             * @default "yui-carousel-nav"
-             */
-            NAVIGATION: "yui-carousel-nav",
-
-            /**
-             * The class name of the next Carousel navigation button.
-             *
-             * @property NEXT_NAV
-             * @default " yui-carousel-next-button"
-             */
-            NEXT_NAV: " yui-carousel-next-button",
-
-            /**
-             * The class name of the next navigation link. This variable is
-             * not only used for styling, but also for identifying the link
-             * within the Carousel container.
-             *
-             * @property NEXT_PAGE
-             * @default "yui-carousel-next"
-             */
-            NEXT_PAGE: "yui-carousel-next",
-
-            /**
-             * The class name for the navigation container for prev/next.
-             *
-             * @property NAV_CONTAINER
-             * @default "yui-carousel-buttons"
-             */
-            NAV_CONTAINER: "yui-carousel-buttons",
-
-            /**
-              * The class name for an item in the pager UL or dropdown menu.
-              *
-              * @property PAGER_ITEM
-              * @default "yui-carousel-pager-item"
-              */
-            PAGER_ITEM: "yui-carousel-pager-item",
-
-            /**
-             * The class name for the pagination container
-             *
-             * @property PAGINATION
-             * @default "yui-carousel-pagination"
-             */
-            PAGINATION: "yui-carousel-pagination",
-
-            /**
-             * The class name of the focussed page navigation.  This class is
-             * specifically used for the ugly focus handling in Opera.
-             *
-             * @property PAGE_FOCUS
-             * @default "yui-carousel-nav-page-focus"
-             */
-            PAGE_FOCUS: "yui-carousel-nav-page-focus",
-
-            /**
-             * The class name of the previous navigation link. This variable
-             * is not only used for styling, but also for identifying the link
-             * within the Carousel container.
-             *
-             * @property PREV_PAGE
-             * @default "yui-carousel-prev"
-             */
-            PREV_PAGE: "yui-carousel-prev",
-
-            /**
-             * The class name of the selected item.
-             *
-             * @property SELECTED_ITEM
-             * @default "yui-carousel-item-selected"
-             */
-            SELECTED_ITEM: "yui-carousel-item-selected",
-
-            /**
-             * The class name of the selected paging navigation.
-             *
-             * @property SELECTED_NAV
-             * @default "yui-carousel-nav-page-selected"
-             */
-            SELECTED_NAV: "yui-carousel-nav-page-selected",
-
-            /**
-             * The class name of a vertically oriented Carousel.
-             *
-             * @property VERTICAL
-             * @default "yui-carousel-vertical"
-             */
-            VERTICAL: "yui-carousel-vertical",
-
-            /**
-             * The class name of a multirow Carousel.
-             *
-             * @property MULTI_ROW
-             * @default "yui-carousel-multi-row"
-             */
-            MULTI_ROW: "yui-carousel-multi-row",
-
-            /**
-             * The class name of a row in a multirow Carousel.
-             *
-             * @property ROW
-             * @default "yui-carousel-new-row"
-             */
-            ROW: "yui-carousel-row",
-
-            /**
-             * The class name of a vertical Carousel's container element.
-             *
-             * @property VERTICAL_CONTAINER
-             * @default "yui-carousel-vertical-container"
-             */
-            VERTICAL_CONTAINER: "yui-carousel-vertical-container",
-
-            /**
-             * The class name of a visible Carousel.
-             *
-             * @property VISIBLE
-             * @default "yui-carousel-visible"
-             */
-            VISIBLE: "yui-carousel-visible"
-
-        },
-
-        /*
-         * Configuration attributes for configuring the Carousel component
-         */
-
-        CONFIG: {
-
-            /**
-             * The offset of the first visible item in the Carousel.
-             *
-             * @property FIRST_VISIBLE
-             * @default 0
-             */
-            FIRST_VISIBLE: 0,
-
-            /**
-             * The minimum width of the horizontal Carousel container to support
-             * the navigation buttons.
-             *
-             * @property HORZ_MIN_WIDTH
-             * @default 180
-             */
-            HORZ_MIN_WIDTH: 180,
-
-            /**
-             * The maximum number of pager buttons allowed beyond which the UI
-             * of the pager would be a drop-down of pages instead of buttons.
-             *
-             * @property MAX_PAGER_BUTTONS
-             * @default 5
-             */
-            MAX_PAGER_BUTTONS: 5,
-
-            /**
-             * The minimum width of the vertical Carousel container to support
-             * the navigation buttons.
-             *
-             * @property VERT_MIN_WIDTH
-             * @default 155
-             */
-            VERT_MIN_WIDTH: 115,
-
-            /**
-             * The number of visible items in the Carousel.
-             *
-             * @property NUM_VISIBLE
-             * @default 3
-             */
-            NUM_VISIBLE: 3
-
-        },
-
-        /*
-         * Internationalizable strings in the Carousel component
-         */
-
-        STRINGS: {
-
-            /**
-             * The content to be used as the progress indicator when the item
-             * is still being loaded.
-             *
-             * @property ITEM_LOADING_CONTENT
-             * @default "Loading"
-             */
-            ITEM_LOADING_CONTENT: "Loading",
-
-            /**
-             * The next navigation button name/text.
-             *
-             * @property NEXT_BUTTON_TEXT
-             * @default "Next Page"
-             */
-            NEXT_BUTTON_TEXT: "Next Page",
-
-            /**
-             * The prefix text for the pager in case the UI is a drop-down.
-             *
-             * @property PAGER_PREFIX_TEXT
-             * @default "Go to page "
-             */
-            PAGER_PREFIX_TEXT: "Go to page ",
-
-            /**
-             * The previous navigation button name/text.
-             *
-             * @property PREVIOUS_BUTTON_TEXT
-             * @default "Previous Page"
-             */
-            PREVIOUS_BUTTON_TEXT: "Previous Page"
-
-        },
-
-        /*
-         * Public methods of the Carousel component
-         */
-
-        /**
-         * Insert or append an item to the Carousel.
-         * E.g. if Object: ({content:"Your Content", id:"", className:""}, index)
-         *
-         * @method addItem
-         * @public
-         * @param item {String | Object | HTMLElement} The item to be appended
-         * to the Carousel. If the parameter is a string, it is assumed to be
-         * the content of the newly created item. If the parameter is an
-         * object, it is assumed to supply the content and an optional class
-         * and an optional id of the newly created item.
-         * @param index {Number} optional The position to where in the list
-         * (starts from zero).
-         * @return {Boolean} Return true on success, false otherwise
-         */
-        addItem: function (item, index) {
-            var carousel = this,
-                className,
-                content,
-                elId,
-                replaceItems = 0,
-                newIndex, // Add newIndex as workaround for undefined pos
-                numItems = carousel.get("numItems");
-
-            if (!item) {
-                return false;
-            }
-
-            if (JS.isString(item) || item.nodeName) {
-                content = item.nodeName ? item.innerHTML : item;
-            } else if (JS.isObject(item)) {
-                content = item.content;
-            } else {
-                return false;
-            }
-
-            className = item.className || "";
-            elId      = item.id ? item.id : Dom.generateId();
-
-            if (JS.isUndefined(index)) {
-                carousel._itemsTable.items.push({
-                        item      : content,
-                        className : className,
-                        id        : elId
-                });
-                // Add newIndex as workaround for undefined pos
-                newIndex = carousel._itemsTable.items.length-1;
-            } else {
-                if (index < 0 || index > numItems) {
-                    return false;
-                }
-
-                // make sure we splice into the correct position
-                if(!carousel._itemsTable.items[index]){
-                    carousel._itemsTable.items[index] = undefined;
-                    replaceItems = 1;
-                }
-
-                carousel._itemsTable.items.splice(index, replaceItems, {
-                        item      : content,
-                        className : className,
-                        id        : elId
-                });
-            }
-            carousel._itemsTable.numItems++;
-
-            if (numItems < carousel._itemsTable.items.length) {
-                carousel.set("numItems", carousel._itemsTable.items.length);
-            }
-
-            // Add newPos as workaround for undefined pos
-            carousel.fireEvent(itemAddedEvent, { pos: index, ev: itemAddedEvent, newPos:newIndex });
-
-            return true;
-        },
-
-        /**
-         * Insert or append multiple items to the Carousel.
-         *
-         * @method addItems
-         * @public
-         * @param items {Array} An array containing an array of new items each linked to the
-         * index where the insertion should take place.
-         * E.g. [[{content:'<img/>'}, index1], [{content:'<img/>'}, index2]]
-         * NOTE: An item at index must already exist.
-         * @return {Boolean} Return true on success, false otherwise
-         */
-        addItems: function (items) {
-            var i, n, rv = true;
-
-            if (!JS.isArray(items)) {
-                return false;
-            }
-
-            for (i = 0, n = items.length; i < n; i++) {
-                if (this.addItem(items[i][0], items[i][1]) === false) {
-                    rv = false;
-                }
-            }
-
-            return rv;
-        },
-
-        /**
-         * Remove focus from the Carousel.
-         *
-         * @method blur
-         * @public
-         */
-        blur: function () {
-            this._carouselEl.blur();
-            this.fireEvent(blurEvent);
-        },
-
-        /**
-         * Clears the items from Carousel.
-         *
-         * @method clearItems
-         * @public
-         */
-        clearItems: function () {
-            var carousel = this, n = carousel.get("numItems");
-
-            while (n > 0) {
-                if (!carousel.removeItem(0)) {
-                }
-                /*
-                    For dynamic loading, the numItems may be much larger than
-                    the actual number of items in the table. So, set the
-                    numItems to zero, and break out of the loop if the table
-                    is already empty.
-                 */
-                if (carousel._itemsTable.numItems === 0) {
-                    carousel.set("numItems", 0);
-                    break;
-                }
-                n--;
-            }
-
-            carousel.fireEvent(allItemsRemovedEvent);
-        },
-
-        /**
-         * Set focus on the Carousel.
-         *
-         * @method focus
-         * @public
-         */
-        focus: function () {
-            var carousel = this,
-                first,
-                focusEl,
-                isSelectionInvisible,
-                itemsTable,
-                last,
-                numVisible,
-                selectOnScroll,
-                selected,
-                selItem;
-
-            // Don't do anything if the Carousel is not rendered
-            if (!carousel._hasRendered) {
-                return;
-            }
-
-            if (carousel.isAnimating()) {
-                // this messes up real bad!
-                return;
-            }
-
-            selItem              = carousel.get("selectedItem");
-            numVisible           = carousel.get("numVisible");
-            selectOnScroll       = carousel.get("selectOnScroll");
-            selected             = (selItem >= 0) ?
-                                   carousel.getItem(selItem) : null;
-            first                = carousel.get("firstVisible");
-            last                 = first + numVisible - 1;
-            isSelectionInvisible = (selItem < first || selItem > last);
-            focusEl              = (selected && selected.id) ?
-                                   Dom.get(selected.id) : null;
-            itemsTable           = carousel._itemsTable;
-
-            if (!selectOnScroll && isSelectionInvisible) {
-                focusEl = (itemsTable && itemsTable.items &&
-                           itemsTable.items[first]) ?
-                        Dom.get(itemsTable.items[first].id) : null;
-            }
-
-            if (focusEl) {
-                try {
-                    focusEl.focus();
-                } catch (ex) {
-                    // ignore focus errors
-                }
-            }
-
-            carousel.fireEvent(focusEvent);
-        },
-
-        /**
-         * Hide the Carousel.
-         *
-         * @method hide
-         * @public
-         */
-        hide: function () {
-            var carousel = this;
-
-            if (carousel.fireEvent(beforeHideEvent) !== false) {
-                carousel.removeClass(carousel.CLASSES.VISIBLE);
-                carousel.fireEvent(hideEvent);
-            }
-        },
-
-        /**
-         * Initialize the Carousel.
-         *
-         * @method init
-         * @public
-         * @param el {HTMLElement | String} The html element that represents
-         * the Carousel container.
-         * @param attrs {Object} The set of configuration attributes for
-         * creating the Carousel.
-         */
-        init: function (el, attrs) {
-            var carousel = this,
-                elId     = el,  // save for a rainy day
-                parse    = false,
-                selected;
-
-            if (!el) {
-                return;
-            }
-
-            carousel._hasRendered = false;
-            carousel._navBtns     = { prev: [], next: [] };
-            carousel._pages       = { el: null, num: 0, cur: 0 };
-            carousel._pagination  = {};
-            carousel._itemAttrCache = {};
-
-            carousel._itemsTable  = { loading: {}, numItems: 0,
-                                      items: [], size: 0 };
-
-
-            if (JS.isString(el)) {
-                el = Dom.get(el);
-            } else if (!el.nodeName) {
-                return;
-            }
-
-            Carousel.superclass.init.call(carousel, el, attrs);
-
-            // check if we're starting somewhere in the middle
-            selected = carousel.get("selectedItem");
-            if(selected > 0){
-                carousel.set("firstVisible",getFirstVisibleForPosition.call(carousel,selected));
-            }
-
-            if (el) {
-                if (!el.id) {   // in case the HTML element is passed
-                    el.setAttribute("id", Dom.generateId());
-                }
-                parse = carousel._parseCarousel(el);
-                if (!parse) {
-                    carousel._createCarousel(elId);
-                }
-            } else {
-                el = carousel._createCarousel(elId);
-            }
-            elId = el.id;
-
-            carousel.initEvents();
-
-            if (parse) {
-                carousel._parseCarouselItems();
-            }
-
-            // add the selected class
-            if(selected > 0){
-                setItemSelection.call(carousel,selected,0);
-            }
-
-            if (!attrs || typeof attrs.isVertical == "undefined") {
-                carousel.set("isVertical", false);
-            }
-
-            carousel._parseCarouselNavigation(el);
-            carousel._navEl = carousel._setupCarouselNavigation();
-
-            instances[elId] = { object: carousel };
-            carousel._loadItems(Math.min(carousel.get("firstVisible")+carousel.get("numVisible"),carousel.get("numItems"))-1);
-        },
-
-        /**
-         * Initialize the configuration attributes used to create the Carousel.
-         *
-         * @method initAttributes
-         * @public
-         * @param attrs {Object} The set of configuration attributes for
-         * creating the Carousel.
-         */
-        initAttributes: function (attrs) {
-            var carousel = this;
-
-            attrs = attrs || {};
-            Carousel.superclass.initAttributes.call(carousel, attrs);
-
-            /**
-             * @attribute carouselEl
-             * @description The type of the Carousel element.
-             * @default OL
-             * @type Boolean
-             */
-            carousel.setAttributeConfig("carouselEl", {
-                    validator : JS.isString,
-                    value     : attrs.carouselEl || "OL"
-            });
-
-            /**
-             * @attribute carouselItemEl
-             * @description The type of the list of items within the Carousel.
-             * @default LI
-             * @type Boolean
-             */
-            carousel.setAttributeConfig("carouselItemEl", {
-                    validator : JS.isString,
-                    value     : attrs.carouselItemEl || "LI"
-            });
-
-            /**
-             * @attribute currentPage
-             * @description The current page number (read-only.)
-             * @type Number
-             */
-            carousel.setAttributeConfig("currentPage", {
-                    readOnly : true,
-                    value    : 0
-            });
-
-            /**
-             * @attribute firstVisible
-             * @description The index to start the Carousel from (indexes begin
-             * from zero)
-             * @default 0
-             * @type Number
-             */
-            carousel.setAttributeConfig("firstVisible", {
-                    method    : carousel._setFirstVisible,
-                    validator : carousel._validateFirstVisible,
-                    value     :
-                        attrs.firstVisible || carousel.CONFIG.FIRST_VISIBLE
-            });
-
-            /**
-             * @attribute selectOnScroll
-             * @description Set this to true to automatically set focus to
-             * follow scrolling in the Carousel.
-             * @default true
-             * @type Boolean
-             */
-            carousel.setAttributeConfig("selectOnScroll", {
-                    validator : JS.isBoolean,
-                    value     : attrs.selectOnScroll || true
-            });
-
-            /**
-             * @attribute numVisible
-             * @description The number of visible items in the Carousel's
-             * viewport.
-             * @default 3
-             * @type Number
-             */
-            carousel.setAttributeConfig("numVisible", {
-                    setter    : carousel._numVisibleSetter,
-                    method    : carousel._setNumVisible,
-                    validator : carousel._validateNumVisible,
-                    value     : attrs.numVisible || carousel.CONFIG.NUM_VISIBLE
-            });
-
-            /**
-             * @attribute numItems
-             * @description The number of items in the Carousel.
-             * @type Number
-             */
-            carousel.setAttributeConfig("numItems", {
-                    method    : carousel._setNumItems,
-                    validator : carousel._validateNumItems,
-                    value     : carousel._itemsTable.numItems
-            });
-
-            /**
-             * @attribute scrollIncrement
-             * @description The number of items to scroll by for arrow keys.
-             * @default 1
-             * @type Number
-             */
-            carousel.setAttributeConfig("scrollIncrement", {
-                    validator : carousel._validateScrollIncrement,
-                    value     : attrs.scrollIncrement || 1
-            });
-
-            /**
-             * @attribute selectedItem
-             * @description The index of the selected item.
-             * @type Number
-             */
-            carousel.setAttributeConfig("selectedItem", {
-                    setter    : carousel._selectedItemSetter,
-                    method    : carousel._setSelectedItem,
-                    validator : JS.isNumber,
-                    value     : -1
-            });
-
-            /**
-             * @attribute revealAmount
-             * @description The percentage of the item to be revealed on each
-             * side of the Carousel (before and after the first and last item
-             * in the Carousel's viewport.)
-             * @default 0
-             * @type Number
-             */
-            carousel.setAttributeConfig("revealAmount", {
-                    method    : carousel._setRevealAmount,
-                    validator : carousel._validateRevealAmount,
-                    value     : attrs.revealAmount || 0
-            });
-
-            /**
-             * @attribute isCircular
-             * @description Set this to true to wrap scrolling of the contents
-             * in the Carousel.
-             * @default false
-             * @type Boolean
-             */
-            carousel.setAttributeConfig("isCircular", {
-                    validator : JS.isBoolean,
-                    value     : attrs.isCircular || false
-            });
-
-            /**
-             * @attribute isVertical
-             * @description True if the orientation of the Carousel is vertical
-             * @default false
-             * @type Boolean
-             */
-            carousel.setAttributeConfig("isVertical", {
-                    method    : carousel._setOrientation,
-                    validator : JS.isBoolean,
-                    value     : attrs.isVertical || false
-            });
-
-            /**
-             * @attribute navigation
-             * @description The set of navigation controls for Carousel
-             * @default <br>
-             * { prev: null, // the previous navigation element<br>
-             *   next: null } // the next navigation element
-             * @type Object
-             */
-            carousel.setAttributeConfig("navigation", {
-                    method    : carousel._setNavigation,
-                    validator : carousel._validateNavigation,
-                    value     :
-                        attrs.navigation || {prev: null,next: null,page: null}
-            });
-
-            /**
-             * @attribute animation
-             * @description The optional animation attributes for the Carousel.
-             * @default <br>
-             * { speed: 0, // the animation speed (in seconds)<br>
-             *   effect: null } // the animation effect (like
-             *   YAHOO.util.Easing.easeOut)
-             * @type Object
-             */
-            carousel.setAttributeConfig("animation", {
-                    validator : carousel._validateAnimation,
-                    value     : attrs.animation || { speed: 0, effect: null }
-            });
-
-            /**
-             * @attribute autoPlay
-             * @description Set this to time in milli-seconds to have the
-             * Carousel automatically scroll the contents.
-             * @type Number
-             * @deprecated Use autoPlayInterval instead.
-             */
-            carousel.setAttributeConfig("autoPlay", {
-                    validator : JS.isNumber,
-                    value     : attrs.autoPlay || 0
-            });
-
-            /**
-             * @attribute autoPlayInterval
-             * @description The delay in milli-seconds for scrolling the
-             * Carousel during auto-play.
-             * Note: The startAutoPlay() method needs to be invoked to trigger
-             * automatic scrolling of Carousel.
-             * @type Number
-             */
-            carousel.setAttributeConfig("autoPlayInterval", {
-                    validator : JS.isNumber,
-                    value     : attrs.autoPlayInterval || 0
-            });
-
-            /**
-             * @attribute numPages
-             * @description The number of pages in the carousel.
-             * @type Number
-             */
-            carousel.setAttributeConfig("numPages", {
-                    readOnly  : true,
-                    getter    : carousel._getNumPages
-            });
-
-            /**
-             * @attribute lastVisible
-             * @description The last item visible in the carousel.
-             * @type Number
-             */
-            carousel.setAttributeConfig("lastVisible", {
-                    readOnly  : true,
-                    getter    : carousel._getLastVisible
-            });
-        },
-
-        /**
-         * Initialize and bind the event handlers.
-         *
-         * @method initEvents
-         * @public
-         */
-        initEvents: function () {
-            var carousel = this,
-                cssClass = carousel.CLASSES,
-                focussedLi;
-
-            carousel.on("keydown", carousel._keyboardEventHandler);
-
-            carousel.on(afterScrollEvent, syncNavigation);
-
-            carousel.on(itemAddedEvent, syncUi);
-
-            carousel.on(itemRemovedEvent, syncUi);
-
-            carousel.on(itemReplacedEvent, syncUi);
-
-            carousel.on(itemSelectedEvent, function () {
-                if (carousel._hasFocus) {
-                    carousel.focus();
-                }
-            });
-
-            carousel.on(loadItemsEvent, syncUi);
-
-            carousel.on(allItemsRemovedEvent, function (ev) {
-                carousel.scrollTo(0);
-                syncNavigation.call(carousel);
-                syncPagerUi.call(carousel);
-            });
-
-            carousel.on(pageChangeEvent, syncPagerUi, carousel);
-
-            carousel.on(renderEvent, function (ev) {
-                if (carousel.get("selectedItem") === null ||
-                    carousel.get("selectedItem") <= 0) { //in either case
-                carousel.set("selectedItem", carousel.get("firstVisible"));
-                }
-                syncNavigation.call(carousel, ev);
-                syncPagerUi.call(carousel, ev);
-                carousel._setClipContainerSize();
-                carousel.show();
-            });
-
-            carousel.on("selectedItemChange", function (ev) {
-                setItemSelection.call(carousel, ev.newValue, ev.prevValue);
-                if (ev.newValue >= 0) {
-                    carousel._updateTabIndex(
-                            carousel.getElementForItem(ev.newValue));
-                }
-                carousel.fireEvent(itemSelectedEvent, ev.newValue);
-            });
-
-            carousel.on(uiUpdateEvent, function (ev) {
-                syncNavigation.call(carousel, ev);
-                syncPagerUi.call(carousel, ev);
-            });
-
-            carousel.on("firstVisibleChange", function (ev) {
-                if (!carousel.get("selectOnScroll")) {
-                    if (ev.newValue >= 0) {
-                        carousel._updateTabIndex(
-                                carousel.getElementForItem(ev.newValue));
-                    }
-                }
-            });
-
-            // Handle item selection on mouse click
-            carousel.on("click", function (ev) {
-                if (carousel.isAutoPlayOn()) {
-                    carousel.stopAutoPlay();
-                }
-                carousel._itemClickHandler(ev);
-                carousel._pagerClickHandler(ev);
-            });
-
-            // Restore the focus on the navigation buttons
-
-            Event.onFocus(carousel.get("element"), function (ev, obj) {
-                var target = Event.getTarget(ev);
-
-                if (target && target.nodeName.toUpperCase() == "A" &&
-                    Dom.getAncestorByClassName(target, cssClass.NAVIGATION)) {
-                    if (focussedLi) {
-                        Dom.removeClass(focussedLi, cssClass.PAGE_FOCUS);
-                    }
-                    focussedLi = target.parentNode;
-                    Dom.addClass(focussedLi, cssClass.PAGE_FOCUS);
-                } else {
-                    if (focussedLi) {
-                        Dom.removeClass(focussedLi, cssClass.PAGE_FOCUS);
-                    }
-                }
-
-                obj._hasFocus = true;
-                obj._updateNavButtons(Event.getTarget(ev), true);
-            }, carousel);
-
-            Event.onBlur(carousel.get("element"), function (ev, obj) {
-                obj._hasFocus = false;
-                obj._updateNavButtons(Event.getTarget(ev), false);
-            }, carousel);
-        },
-
-        /**
-         * Return true if the Carousel is still animating, or false otherwise.
-         *
-         * @method isAnimating
-         * @return {Boolean} Return true if animation is still in progress, or
-         * false otherwise.
-         * @public
-         */
-        isAnimating: function () {
-            return this._isAnimationInProgress;
-        },
-
-        /**
-         * Return true if the auto-scrolling of Carousel is "on", or false
-         * otherwise.
-         *
-         * @method isAutoPlayOn
-         * @return {Boolean} Return true if autoPlay is "on", or false
-         * otherwise.
-         * @public
-         */
-        isAutoPlayOn: function () {
-            return this._isAutoPlayInProgress;
-        },
-
-        /**
-         * Return the carouselItemEl at index or null if the index is not
-         * found.
-         *
-         * @method getElementForItem
-         * @param index {Number} The index of the item to be returned
-         * @return {Element} Return the item at index or null if not found
-         * @public
-         */
-        getElementForItem: function (index) {
-            var carousel = this;
-
-            if (index < 0 || index >= carousel.get("numItems")) {
-                return null;
-            }
-
-            if (carousel._itemsTable.items[index]) {
-                return Dom.get(carousel._itemsTable.items[index].id);
-            }
-
-            return null;
-        },
-
-        /**
-         * Return the carouselItemEl for all items in the Carousel.
-         *
-         * @method getElementForItems
-         * @return {Array} Return all the items
-         * @public
-         */
-        getElementForItems: function () {
-            var carousel = this, els = [], i;
-
-            for (i = 0; i < carousel._itemsTable.numItems; i++) {
-                els.push(carousel.getElementForItem(i));
-            }
-
-            return els;
-        },
-
-        /**
-         * Return the item at index or null if the index is not found.
-         *
-         * @method getItem
-         * @param index {Number} The index of the item to be returned
-         * @return {Object} Return the item at index or null if not found
-         * @public
-         */
-        getItem: function (index) {
-            var carousel = this;
-
-            if (index < 0 || index >= carousel.get("numItems")) {
-                return null;
-            }
-
-            if (carousel._itemsTable.numItems > index) {
-                if (!JS.isUndefined(carousel._itemsTable.items[index])) {
-                    return carousel._itemsTable.items[index];
-                }
-            }
-
-            return null;
-        },
-
-        /**
-         * Return all items as an array.
-         *
-         * @method getItems
-         * @return {Array} Return all items in the Carousel
-         * @public
-         */
-        getItems: function () {
-            return this._itemsTable.items;
-        },
-
-        /**
-         * Return all loading items as an array.
-         *
-         * @method getLoadingItems
-         * @return {Array} Return all items that are loading in the Carousel.
-         * @public
-         */
-        getLoadingItems: function () {
-            return this._itemsTable.loading;
-        },
-
-        /**
-         * For a multirow carousel, return the number of rows specified by user.
-         *
-         * @method getItems
-         * @return {Number} Number of rows
-         * @public
-         */
-        getRows: function () {
-            return this._rows;
-        },
-
-        /**
-         * For a multirow carousel, return the number of cols specified by user.
-         *
-         * @method getItems
-         * @return {Array} Return all items in the Carousel
-         * @public
-         */
-        getCols: function () {
-            return this._cols;
-        },
-
-        /**
-         * Return the position of the Carousel item that has the id "id", or -1
-         * if the id is not found.
-         *
-         * @method getItemPositionById
-         * @param index {Number} The index of the item to be returned
-         * @public
-         */
-        getItemPositionById: function (id) {
-            var carousel = this,
-                n = carousel.get("numItems"),
-                i = 0,
-                items = carousel._itemsTable.items,
-                item;
-
-            while (i < n) {
-                item = items[i] || {};
-                if(item.id == id) {
-                    return i;
-                }
-                i++;
-            }
-
-            return -1;
-        },
-
-        /**
-         * Return all visible items as an array.
-         *
-         * @method getVisibleItems
-         * @return {Array} The array of visible items
-         * @public
-         */
-        getVisibleItems: function () {
-            var carousel = this,
-                i        = carousel.get("firstVisible"),
-                n        = i + carousel.get("numVisible"),
-                r        = [];
-
-            while (i < n) {
-                r.push(carousel.getElementForItem(i));
-                i++;
-            }
-
-            return r;
-        },
-
-        /**
-         * Remove an item at index from the Carousel.
-         *
-         * @method removeItem
-         * @public
-         * @param index {Number} The position to where in the list (starts from
-         * zero).
-         * @return {Boolean} Return true on success, false otherwise
-         */
-        removeItem: function (index) {
-            var carousel = this,
-                item,
-                num      = carousel.get("numItems");
-
-            if (index < 0 || index >= num) {
-                return false;
-            }
-
-            item = carousel._itemsTable.items.splice(index, 1);
-            if (item && item.length == 1) {
-                carousel._itemsTable.numItems--;
-                carousel.set("numItems", num - 1);
-
-                carousel.fireEvent(itemRemovedEvent,
-                        { item: item[0], pos: index, ev: itemRemovedEvent });
-                return true;
-            }
-
-            return false;
-        },
-
-        /**
-         * Replace an item at index witin Carousel.
-         *
-         * @method replaceItem
-         * @public
-         * @param item {String | Object | HTMLElement} The item to be appended
-         * to the Carousel. If the parameter is a string, it is assumed to be
-         * the content of the newly created item. If the parameter is an
-         * object, it is assumed to supply the content and an optional class
-         * and an optional id of the newly created item.
-         * @param index {Number} The position to where in the list (starts from
-         * zero).
-         * @return {Boolean} Return true on success, false otherwise
-         */
-        replaceItem: function (item, index) {
-            var carousel = this,
-                className,
-                content,
-                elId,
-                numItems = carousel.get("numItems"),
-                oel,
-                el = item;
-
-            if (!item) {
-                return false;
-            }
-
-            if (JS.isString(item) || item.nodeName) {
-                content = item.nodeName ? item.innerHTML : item;
-            } else if (JS.isObject(item)) {
-                content = item.content;
-            } else {
-                return false;
-            }
-
-            if (JS.isUndefined(index)) {
-                return false;
-            } else {
-                if (index < 0 || index >= numItems) {
-                    return false;
-                }
-
-                oel = carousel._itemsTable.items[index];
-                if(!oel){
-                    oel = carousel._itemsTable.loading[index];
-                    carousel._itemsTable.items[index] = undefined;
-                }
-
-                carousel._itemsTable.items.splice(index, 1, {
-                    item      : content,
-                    className : item.className || "",
-                    id        : Dom.generateId()
-                });
-
-                el = carousel._itemsTable.items[index];
-            }
-            carousel.fireEvent(itemReplacedEvent,
-                    { newItem: el, oldItem: oel, pos: index, ev: itemReplacedEvent });
-
-            return true;
-        },
-
-        /**
-         * Replace multiple items at specified indexes.
-         * NOTE: item at index must already exist.
-         *
-         * @method replaceItems
-         * @public
-         * @param items {Array} An array containing an array of replacement items each linked to the
-         * index where the substitution should take place.
-         * E.g. [[{content:'<img/>'}, index1], [{content:'<img/>'}, index2]]
-         * @return {Boolean} Return true on success, false otherwise
-         */
-         replaceItems: function (items) {
-             var i, n, rv = true;
-
-             if (!JS.isArray(items)) {
-                 return false;
-             }
-
-             for (i = 0, n = items.length; i < n; i++) {
-                 if (this.replaceItem(items[i][0], items[i][1]) === false) {
-                     rv = false;
-                 }
-             }
-
-             return rv;
-         },
-
-        /**
-         * Render the Carousel.
-         *
-         * @method render
-         * @public
-         * @param appendTo {HTMLElement | String} The element to which the
-         * Carousel should be appended prior to rendering.
-         * @return {Boolean} Status of the operation
-         */
-        render: function (appendTo) {
-            var carousel  = this,
-                cssClass  = carousel.CLASSES,
-                rows = carousel._rows;
-
-            carousel.addClass(cssClass.CAROUSEL);
-
-            if (!carousel._clipEl) {
-                carousel._clipEl = carousel._createCarouselClip();
-                carousel._clipEl.appendChild(carousel._carouselEl);
-            }
-
-            if (appendTo) {
-                carousel.appendChild(carousel._clipEl);
-                carousel.appendTo(appendTo);
-            } else {
-                if (!Dom.inDocument(carousel.get("element"))) {
-                    return false;
-                }
-                carousel.appendChild(carousel._clipEl);
-            }
-
-            if (rows) {
-                Dom.addClass(carousel._clipEl, cssClass.MULTI_ROW);
-            }
-
-            if (carousel.get("isVertical")) {
-                carousel.addClass(cssClass.VERTICAL);
-            } else {
-                carousel.addClass(cssClass.HORIZONTAL);
-            }
-
-            if (carousel.get("numItems") < 1) {
-                return false;
-            }
-
-            carousel._refreshUi();
-
-            return true;
-        },
-
-        /**
-         * Scroll the Carousel by an item backward.
-         *
-         * @method scrollBackward
-         * @public
-         */
-        scrollBackward: function () {
-            var carousel = this;
-            carousel.scrollTo(carousel._firstItem -
-                              carousel.get("scrollIncrement"));
-        },
-
-        /**
-         * Scroll the Carousel by an item forward.
-         *
-         * @method scrollForward
-         * @public
-         */
-        scrollForward: function () {
-            var carousel = this;
-            carousel.scrollTo(carousel._firstItem +
-                              carousel.get("scrollIncrement"));
-        },
-
-        /**
-         * Scroll the Carousel by a page backward.
-         *
-         * @method scrollPageBackward
-         * @public
-         */
-        scrollPageBackward: function () {
-            var carousel = this,
-                isVertical = carousel.get("isVertical"),
-                cols       = carousel._cols,
-                item     = carousel._firstItem - carousel.get("numVisible");
-
-            if (item < 0) { // only account for multi-row when scrolling backwards from item 0
-                if (cols) {
-                    item = carousel._firstItem - cols;
-                }
-            }
-
-            if (carousel.get("selectOnScroll")) {
-                carousel._selectedItem = carousel._getSelectedItem(item);
-            }
-
-            carousel.scrollTo(item);
-        },
-
-        /**
-         * Scroll the Carousel by a page forward.
-         *
-         * @method scrollPageForward
-         * @public
-         */
-        scrollPageForward: function () {
-            var carousel = this,
-                item     = carousel._firstItem + carousel.get("numVisible");
-
-            if (item > carousel.get("numItems")) {
-                item = 0;
-            }
-
-            if (carousel.get("selectOnScroll")) {
-                carousel._selectedItem = carousel._getSelectedItem(item);
-            }
-
-            carousel.scrollTo(item);
-        },
-
-        /**
-         * Scroll the Carousel to make the item the first visible item.
-         *
-         * @method scrollTo
-         * @public
-         * @param item Number The index of the element to position at.
-         * @param dontSelect Boolean True if select should be avoided
-         */
-        scrollTo: function (item, dontSelect) {
-            var carousel   = this, animate, animCfg, isCircular, isVertical,
-                rows, delta, direction, firstItem, lastItem, itemsPerRow,
-                itemsPerCol, numItems, numPerPage, offset, page, rv, sentinel,
-                index, stopAutoScroll,
-                itemsTable = carousel._itemsTable,
-                items = itemsTable.items,
-                loading = itemsTable.loading;
-
-            if (JS.isUndefined(item) || item == carousel._firstItem ||
-                carousel.isAnimating()) {
-                return; // nothing to do!
-            }
-
-            animCfg        = carousel.get("animation");
-            isCircular     = carousel.get("isCircular");
-            isVertical     = carousel.get("isVertical");
-            itemsPerRow    = carousel._cols;
-            itemsPerCol    = carousel._rows;
-            firstItem      = carousel._firstItem;
-            numItems       = carousel.get("numItems");
-            numPerPage     = carousel.get("numVisible");
-            page           = carousel.get("currentPage");
-
-            stopAutoScroll = function () {
-                if (carousel.isAutoPlayOn()) {
-                    carousel.stopAutoPlay();
-                }
-            };
-
-            if (item < 0) {
-                if (isCircular) {
-                    item = numItems + item;
-                } else {
-                    stopAutoScroll.call(carousel);
-                    return;
-                }
-            } else if (numItems > 0 && item > numItems - 1) {
-
-                if (carousel.get("isCircular")) {
-                    item = numItems - item;
-                } else {
-                    stopAutoScroll.call(carousel);
-                    return;
-                }
-            }
-
-            if (isNaN(item)) {
-                return;
-            }
-
-            direction = (carousel._firstItem > item) ? "backward" : "forward";
-
-            sentinel  = firstItem + numPerPage;
-            sentinel  = (sentinel > numItems - 1) ? numItems - 1 : sentinel;
-            rv = carousel.fireEvent(beforeScrollEvent,
-                    { dir: direction, first: firstItem, last: sentinel });
-            if (rv === false) { // scrolling is prevented
-                return;
-            }
-
-            carousel.fireEvent(beforePageChangeEvent, { page: page });
-
-            // call loaditems to check if we have all the items to display
-            lastItem = item + numPerPage - 1;
-            carousel._loadItems(lastItem > numItems-1 ? numItems-1 : lastItem);
-
-            // Calculate the delta relative to the first item, the delta is
-            // always negative.
-            delta = 0 - item;
-
-            if (itemsPerCol) {
-               // offset calculations for multirow Carousel
-                if (isVertical) {
-                    delta = parseInt(delta / itemsPerRow, 10);
-                } else {
-                    delta = parseInt(delta / itemsPerCol, 10);
-                }
-            }
-
-            // adjust for items not yet loaded
-            index = 0;
-            while (delta < 0 && index < item+numPerPage-1 && index < numItems) {
-                if (!items[index] && !loading[index]) {
-                    delta++;
-                }
-                index += itemsPerCol ? itemsPerCol : 1;
-            }
-
-            carousel._firstItem = item;
-            carousel.set("firstVisible", item);
-
-
-            sentinel  = item + numPerPage;
-            sentinel  = (sentinel > numItems - 1) ? numItems - 1 : sentinel;
-
-            offset    = getScrollOffset.call(carousel, delta);
-
-            animate   = animCfg.speed > 0;
-
-            if (animate) {
-                carousel._animateAndSetCarouselOffset(offset, item, sentinel,
-                        dontSelect);
-            } else {
-                carousel._setCarouselOffset(offset);
-                updateStateAfterScroll.call(carousel, item, sentinel);
-            }
-        },
-
-        /**
-         * Get the page an item is on within carousel.
-         *
-         * @method getPageForItem
-         * @public
-         * @param index {Number} Index of item
-         * @return {Number} Page item is on
-         */
-        getPageForItem : function(item) {
-            return Math.ceil(
-                (item+1) / parseInt(this.get("numVisible"),10)
-            );
-        },
-
-        /**
-         * Get the first visible item's index on any given page.
-         *
-         * @method getFirstVisibleOnpage
-         * @public
-         * @param page {Number} Page
-         * @return {Number} First item's index
-         */
-        getFirstVisibleOnPage : function(page) {
-            return (page - 1) * this.get("numVisible");
-        },
-
-        /**
-         * Select the previous item in the Carousel.
-         *
-         * @method selectPreviousItem
-         * @public
-         */
-        selectPreviousItem: function () {
-            var carousel = this,
-                newpos   = 0,
-                selected = carousel.get("selectedItem");
-
-            if (selected == this._firstItem) {
-                newpos = selected - carousel.get("numVisible");
-                carousel._selectedItem = carousel._getSelectedItem(selected-1);
-                carousel.scrollTo(newpos);
-            } else {
-                newpos = carousel.get("selectedItem") -
-                         carousel.get("scrollIncrement");
-                carousel.set("selectedItem",carousel._getSelectedItem(newpos));
-            }
-        },
-
-        /**
-         * Select the next item in the Carousel.
-         *
-         * @method selectNextItem
-         * @public
-         */
-        selectNextItem: function () {
-            var carousel = this, newpos = 0;
-
-            newpos = carousel.get("selectedItem") +
-                     carousel.get("scrollIncrement");
-            carousel.set("selectedItem", carousel._getSelectedItem(newpos));
-        },
-
-        /**
-         * Display the Carousel.
-         *
-         * @method show
-         * @public
-         */
-        show: function () {
-            var carousel = this,
-                cssClass = carousel.CLASSES;
-
-            if (carousel.fireEvent(beforeShowEvent) !== false) {
-                carousel.addClass(cssClass.VISIBLE);
-                carousel.fireEvent(showEvent);
-            }
-        },
-
-        /**
-         * Start auto-playing the Carousel.
-         *
-         * @method startAutoPlay
-         * @public
-         */
-        startAutoPlay: function () {
-            var carousel = this, timer;
-
-            if (JS.isUndefined(carousel._autoPlayTimer)) {
-                timer = carousel.get("autoPlayInterval");
-                if (timer <= 0) {
-                    return;
-                }
-                carousel._isAutoPlayInProgress = true;
-                carousel.fireEvent(startAutoPlayEvent);
-                carousel._autoPlayTimer = setTimeout(function () {
-                    carousel._autoScroll();
-                }, timer);
-            }
-        },
-
-        /**
-         * Stop auto-playing the Carousel.
-         *
-         * @method stopAutoPlay
-         * @public
-         */
-        stopAutoPlay: function () {
-            var carousel = this;
-
-            if (!JS.isUndefined(carousel._autoPlayTimer)) {
-                clearTimeout(carousel._autoPlayTimer);
-                delete carousel._autoPlayTimer;
-                carousel._isAutoPlayInProgress = false;
-                carousel.fireEvent(stopAutoPlayEvent);
-            }
-        },
-
-        /**
-         * Update interface's pagination data within a registered template.
-         *
-         * @method updatePagination
-         * @public
-         */
-        updatePagination: function () {
-            var carousel = this,
-                pagination = carousel._pagination;
-            if(!pagination.el){ return false; }
-
-            var numItems = carousel.get('numItems'),
-                numVisible = carousel.get('numVisible'),
-                firstVisible = carousel.get('firstVisible')+1,
-                currentPage = carousel.get('currentPage')+1,
-                numPages = carousel.get('numPages'),
-                replacements = {
-                    'numVisible' : numVisible,
-                    'numPages' : numPages,
-                    'numItems' : numItems,
-                    'selectedItem' : carousel.get('selectedItem')+1,
-                    'currentPage' : currentPage,
-                    'firstVisible' : firstVisible,
-                    'lastVisible' : carousel.get("lastVisible")+1
-                },
-                cb = pagination.callback || {},
-                scope = cb.scope && cb.obj ? cb.obj : carousel;
-
-            pagination.el.innerHTML = JS.isFunction(cb.fn) ? cb.fn.apply(scope, [pagination.template, replacements]) : YAHOO.lang.substitute(pagination.template, replacements);
-        },
-
-        /**
-         * Register carousels pagination template, append to interface, and populate.
-         *
-         * @method registerPagination
-         * @param template {String} Pagination template as passed to lang.substitute
-         * @public
-         */
-        registerPagination: function (tpl, pos, cb) {
-            var carousel = this;
-
-            carousel._pagination.template = tpl;
-            carousel._pagination.callback = cb || {};
-
-            if(!carousel._pagination.el){
-                carousel._pagination.el = createElement('DIV', {className:carousel.CLASSES.PAGINATION});
-
-                if(pos == "before"){
-                    carousel._navEl.insertBefore(carousel._pagination.el, carousel._navEl.firstChild);
-                } else {
-                    carousel._navEl.appendChild(carousel._pagination.el);
-                }
-
-                carousel.on('itemSelected', carousel.updatePagination);
-                carousel.on('pageChange', carousel.updatePagination);
-            }
-
-            carousel.updatePagination();
-        },
-
-        /**
-         * Return the string representation of the Carousel.
-         *
-         * @method toString
-         * @public
-         * @return {String}
-         */
-        toString: function () {
-            return WidgetName + (this.get ? " (#" + this.get("id") + ")" : "");
-        },
-
-        /*
-         * Protected methods of the Carousel component
-         */
-
-        /**
-         * Set the Carousel offset to the passed offset after animating.
-         *
-         * @method _animateAndSetCarouselOffset
-         * @param {Integer} offset The offset to which the Carousel has to be
-         * scrolled to.
-         * @param {Integer} item The index to which the Carousel will scroll.
-         * @param {Integer} sentinel The last element in the view port.
-         * @protected
-         */
-        _animateAndSetCarouselOffset: function (offset, item, sentinel) {
-            var carousel = this,
-                animCfg  = carousel.get("animation"),
-                animObj  = null;
-
-            if (carousel.get("isVertical")) {
-                animObj = new YAHOO.util.Motion(carousel._carouselEl,
-                        { top: { to: offset } },
-                        animCfg.speed, animCfg.effect);
-            } else {
-                animObj = new YAHOO.util.Motion(carousel._carouselEl,
-                        { left: { to: offset } },
-                        animCfg.speed, animCfg.effect);
-            }
-
-            carousel._isAnimationInProgress = true;
-            animObj.onComplete.subscribe(carousel._animationCompleteHandler,
-                                         { scope: carousel, item: item,
-                                           last: sentinel });
-            animObj.animate();
-        },
-
-        /**
-         * Handle the animation complete event.
-         *
-         * @method _animationCompleteHandler
-         * @param {Event} ev The event.
-         * @param {Array} p The event parameters.
-         * @param {Object} o The object that has the state of the Carousel
-         * @protected
-         */
-        _animationCompleteHandler: function (ev, p, o) {
-            o.scope._isAnimationInProgress = false;
-            updateStateAfterScroll.call(o.scope, o.item, o.last);
-        },
-
-        /**
-         * Automatically scroll the contents of the Carousel.
-         * @method _autoScroll
-         * @protected
-         */
-        _autoScroll: function() {
-            var carousel  = this,
-                currIndex = carousel._firstItem,
-                index;
-
-            if (currIndex >= carousel.get("numItems") - 1) {
-                if (carousel.get("isCircular")) {
-                    index = 0;
-                } else {
-                    carousel.stopAutoPlay();
-                }
-            } else {
-                index = currIndex + carousel.get("numVisible");
-            }
-
-            carousel._selectedItem = carousel._getSelectedItem(index);
-            carousel.scrollTo.call(carousel, index);
-        },
-
-        /**
-         * Create the Carousel.
-         *
-         * @method createCarousel
-         * @param elId {String} The id of the element to be created
-         * @protected
-         */
-        _createCarousel: function (elId) {
-            var carousel = this,
-                cssClass = carousel.CLASSES,
-                el       = Dom.get(elId);
-
-            if (!el) {
-                el = createElement("DIV", {
-                        className : cssClass.CAROUSEL,
-                        id        : elId
-                });
-            }
-
-            if (!carousel._carouselEl) {
-                carousel._carouselEl=createElement(carousel.get("carouselEl"),
-                        { className: cssClass.CAROUSEL_EL });
-            }
-
-            return el;
-        },
-
-        /**
-         * Create the Carousel clip container.
-         *
-         * @method createCarouselClip
-         * @protected
-         */
-        _createCarouselClip: function () {
-            return createElement("DIV", { className: this.CLASSES.CONTENT });
-        },
-
-        /**
-         * Create the Carousel item.
-         *
-         * @method createCarouselItem
-         * @param obj {Object} The attributes of the element to be created
-         * @protected
-         */
-        _createCarouselItem: function (obj) {
-            var attr, carousel = this,
-                styles = getCarouselItemPosition.call(carousel, obj.pos);
-
-            return createElement(carousel.get("carouselItemEl"), {
-                    className : obj.className,
-                    styles    : obj.styles,
-                    content   : obj.content,
-                    id        : obj.id
-            });
-        },
-
-        /**
-         * Return a valid item for a possibly out of bounds index considering
-         * the isCircular property.
-         *
-         * @method _getValidIndex
-         * @param index {Number} The index of the item to be returned
-         * @return {Object} Return a valid item index
-         * @protected
-         */
-        _getValidIndex: function (index) {
-            var carousel   = this,
-                isCircular = carousel.get("isCircular"),
-                numItems   = carousel.get("numItems"),
-                numVisible = carousel.get("numVisible"),
-                sentinel   = numItems - 1;
-
-            if (index < 0) {
-                index = isCircular ?
-                        Math.ceil(numItems/numVisible)*numVisible + index : 0;
-            } else if (index > sentinel) {
-                index = isCircular ? 0 : sentinel;
-            }
-
-            return index;
-        },
-
-        /**
-         * Get the value for the selected item.
-         *
-         * @method _getSelectedItem
-         * @param val {Number} The new value for "selected" item
-         * @return {Number} The new value that would be set
-         * @protected
-         */
-        _getSelectedItem: function (val) {
-            var carousel   = this,
-                isCircular = carousel.get("isCircular"),
-                numItems   = carousel.get("numItems"),
-                sentinel   = numItems - 1;
-
-            if (val < 0) {
-                if (isCircular) {
-                    val = numItems + val;
-                } else {
-                    val = carousel.get("selectedItem");
-                }
-            } else if (val > sentinel) {
-                if (isCircular) {
-                    val = val - numItems;
-                } else {
-                    val = carousel.get("selectedItem");
-                }
-            }
-            return val;
-        },
-
-        /**
-         * The "click" handler for the item.
-         *
-         * @method _itemClickHandler
-         * @param {Event} ev The event object
-         * @protected
-         */
-        _itemClickHandler: function (ev) {
-            var carousel     = this,
-                carouselItem = carousel.get("carouselItemEl"),
-                container    = carousel.get("element"),
-                el,
-                item,
-                target       = Event.getTarget(ev),
-                tag          = target.tagName.toUpperCase();
-
-            if(tag === "INPUT" ||
-               tag === "SELECT" ||
-               tag === "TEXTAREA") {
-                return;
-            }
-
-            while (target && target != container &&
-                   target.id != carousel._carouselEl) {
-                el = target.nodeName;
-                if (el.toUpperCase() == carouselItem) {
-                    break;
-                }
-                target = target.parentNode;
-            }
-
-            if ((item = carousel.getItemPositionById(target.id)) >= 0) {
-                carousel.set("selectedItem", carousel._getSelectedItem(item));
-                carousel.focus();
-            }
-        },
-
-        /**
-         * The keyboard event handler for Carousel.
-         *
-         * @method _keyboardEventHandler
-         * @param ev {Event} The event that is being handled.
-         * @protected
-         */
-        _keyboardEventHandler: function (ev) {
-            var carousel = this,
-                key      = Event.getCharCode(ev),
-                target   = Event.getTarget(ev),
-                prevent  = false;
-
-            // do not mess while animation is in progress or naving via select
-            if (carousel.isAnimating() || target.tagName.toUpperCase() === "SELECT") {
-                return;
-            }
-
-            switch (key) {
-            case 0x25:          // left arrow
-            case 0x26:          // up arrow
-                carousel.selectPreviousItem();
-                prevent = true;
-                break;
-            case 0x27:          // right arrow
-            case 0x28:          // down arrow
-                carousel.selectNextItem();
-                prevent = true;
-                break;
-            case 0x21:          // page-up
-                carousel.scrollPageBackward();
-                prevent = true;
-                break;
-            case 0x22:          // page-down
-                carousel.scrollPageForward();
-                prevent = true;
-                break;
-            }
-
-            if (prevent) {
-                if (carousel.isAutoPlayOn()) {
-                    carousel.stopAutoPlay();
-                }
-                Event.preventDefault(ev);
-            }
-        },
-
-        /**
-         * The load the required set of items that are needed for display.
-         *
-         * @method _loadItems
-         * @protected
-         */
-        _loadItems: function(last) {
-            var carousel    = this,
-                numItems    = carousel.get("numItems"),
-                numVisible  = carousel.get("numVisible"),
-                reveal      = carousel.get("revealAmount"),
-                first       = carousel._itemsTable.items.length,
-                lastVisible = carousel.get("lastVisible");
-
-            // adjust if going backwards
-            if(first > last && last+1 >= numVisible){
-                // need to get first a bit differently for the last page
-                first = last % numVisible || last == lastVisible ? last - last % numVisible : last - numVisible + 1;
-            }
-
-            if(reveal && last < numItems - 1){ last++; }
-
-            if (last >= first && (!carousel.getItem(first) || !carousel.getItem(last))) {
-                carousel.fireEvent(loadItemsEvent, {
-                        ev: loadItemsEvent, first: first, last: last,
-                        num: last - first + 1
-                });
-            }
-
-        },
-
-        /**
-         * The "onchange" handler for select box pagination.
-         *
-         * @method _pagerChangeHandler
-         * @param {Event} ev The event object
-         * @protected
-         */
-         _pagerChangeHandler: function (ev) {
-            var carousel = this,
-                target = Event.getTarget(ev),
-                 page = target.value,
-                 item;
-
-             if (page) {
-                 item = carousel.getFirstVisibleOnPage(page);
-                 carousel._selectedItem = item;
-                 carousel.scrollTo(item);
-                 carousel.focus();
-            }
-          },
-        /**
-         * The "click" handler for anchor pagination.
-         *
-         * @method _pagerClickHandler
-         * @param {Event} ev The event object
-         * @protected
-         */
-         _pagerClickHandler: function (ev) {
-             var carousel = this,
-                 css = carousel.CLASSES,
-                 target = Event.getTarget(ev),
-                 elNode = target.nodeName.toUpperCase(),
-                 val,
-                 stringIndex,
-                 page,
-                 item;
-
-             if (Dom.hasClass(target, css.PAGER_ITEM) || Dom.hasClass(target.parentNode, css.PAGER_ITEM))  {
-                 if (elNode == "EM") {
-                     target = target.parentNode;// item is an em and not an anchor (when text is visible)
-                 }
-                 val = target.href;
-                 stringIndex = val.lastIndexOf("#");
-                 page =  parseInt(val.substring(stringIndex+1), 10);
-                    if (page != -1) {
-                     item = carousel.getFirstVisibleOnPage(page);
-                     carousel._selectedItem = item;
-                     carousel.scrollTo(item);
-                            carousel.focus();
-                        }
-                        Event.preventDefault(ev);
-                    }
-        },
-
-        /**
-         * Find the Carousel within a container. The Carousel is identified by
-         * the first element that matches the carousel element tag or the
-         * element that has the Carousel class.
-         *
-         * @method parseCarousel
-         * @param parent {HTMLElement} The parent element to look under
-         * @return {Boolean} True if Carousel is found, false otherwise
-         * @protected
-         */
-        _parseCarousel: function (parent) {
-            var carousel = this, child, cssClass, domEl, found, node;
-
-            cssClass  = carousel.CLASSES;
-            domEl     = carousel.get("carouselEl");
-            found     = false;
-
-            for (child = parent.firstChild; child; child = child.nextSibling) {
-                if (child.nodeType == 1) {
-                    node = child.nodeName;
-                    if (node.toUpperCase() == domEl) {
-                        carousel._carouselEl = child;
-                        Dom.addClass(carousel._carouselEl,
-                                     carousel.CLASSES.CAROUSEL_EL);
-                        found = true;
-                    }
-                }
-            }
-
-            return found;
-        },
-
-        /**
-         * Find the items within the Carousel and add them to the items table.
-         * A Carousel item is identified by elements that matches the carousel
-         * item element tag.
-         *
-         * @method parseCarouselItems
-         * @protected
-         */
-        _parseCarouselItems: function () {
-            var carousel = this,
-                cssClass = carousel.CLASSES,
-                i=0,
-                rows,
-                child,
-                domItemEl,
-                elId,
-                node,
-                index = carousel.get("firstVisible"),
-                parent   = carousel._carouselEl;
-
-            rows = carousel._rows;
-            domItemEl = carousel.get("carouselItemEl");
-
-            for (child = parent.firstChild; child; child = child.nextSibling) {
-                if (child.nodeType == 1) {
-                    node = child.nodeName;
-                    if (node.toUpperCase() == domItemEl) {
-                        if (child.id) {
-                            elId = child.id;
-                        } else {
-                            elId = Dom.generateId();
-                            child.setAttribute("id", elId);
-                        }
-                        carousel.addItem(child,index);
-                        index++;
-                    }
-                }
-            }
-        },
-
-        /**
-         * Find the Carousel navigation within a container. The navigation
-         * elements need to match the carousel navigation class names.
-         *
-         * @method parseCarouselNavigation
-         * @param parent {HTMLElement} The parent element to look under
-         * @return {Boolean} True if at least one is found, false otherwise
-         * @protected
-         */
-        _parseCarouselNavigation: function (parent) {
-            var carousel = this,
-                cfg,
-                cssClass = carousel.CLASSES,
-                el,
-                i,
-                j,
-                nav,
-                rv       = false;
-
-            nav = Dom.getElementsByClassName(cssClass.PREV_PAGE, "*", parent);
-            if (nav.length > 0) {
-                for (i in nav) {
-                    if (nav.hasOwnProperty(i)) {
-                        el = nav[i];
-                        if (el.nodeName == "INPUT" ||
-                            el.nodeName == "BUTTON" ||
-                            el.nodeName == "A") {// Anchor support in Nav (for SEO)
-                            carousel._navBtns.prev.push(el);
-                        } else {
-                            j = el.getElementsByTagName("INPUT");
-                            if (JS.isArray(j) && j.length > 0) {
-                                carousel._navBtns.prev.push(j[0]);
-                            } else {
-                                j = el.getElementsByTagName("BUTTON");
-                                if (JS.isArray(j) && j.length > 0) {
-                                    carousel._navBtns.prev.push(j[0]);
-                                }
-                            }
-                        }
-                    }
-                }
-                cfg = { prev: nav };
-            }
-
-            nav = Dom.getElementsByClassName(cssClass.NEXT_PAGE, "*", parent);
-            if (nav.length > 0) {
-                for (i in nav) {
-                    if (nav.hasOwnProperty(i)) {
-                        el = nav[i];
-                        if (el.nodeName == "INPUT" ||
-                            el.nodeName == "BUTTON" ||
-                            el.nodeName == "A") {// Anchor support in Nav (for SEO)
-                            carousel._navBtns.next.push(el);
-                        } else {
-                            j = el.getElementsByTagName("INPUT");
-                            if (JS.isArray(j) && j.length > 0) {
-                                carousel._navBtns.next.push(j[0]);
-                            } else {
-                                j = el.getElementsByTagName("BUTTON");
-                                if (JS.isArray(j) && j.length > 0) {
-                                    carousel._navBtns.next.push(j[0]);
-                                }
-                            }
-                        }
-                    }
-                }
-                if (cfg) {
-                    cfg.next = nav;
-                } else {
-                    cfg = { next: nav };
-                }
-            }
-
-            if (cfg) {
-                carousel.set("navigation", cfg);
-                rv = true;
-            }
-
-            return rv;
-        },
-
-        /**
-         * Refresh the widget UI if it is not already rendered, on first item
-         * addition.
-         *
-         * @method _refreshUi
-         * @protected
-         */
-        _refreshUi: function () {
-            var carousel = this, i, isVertical = carousel.get("isVertical"), firstVisible = carousel.get("firstVisible"), item, n, rsz, sz;
-
-            if (carousel._itemsTable.numItems < 1) {
-                return;
-            }
-
-            sz  = getCarouselItemSize.call(carousel,
-                    isVertical ? "height" : "width");
-            // This fixes the widget to auto-adjust height/width for absolute
-            // positioned children.
-            item = carousel._itemsTable.items[firstVisible].id;
-
-            sz   = isVertical ? getStyle(item, "width") :
-                    getStyle(item, "height");
-
-            Dom.setStyle(carousel._carouselEl,
-                         isVertical ? "width" : "height", sz + "px");
-
-            // Set the rendered state appropriately.
-            carousel._hasRendered = true;
-            carousel.fireEvent(renderEvent);
-        },
-
-        /**
-         * Set the Carousel offset to the passed offset.
-         *
-         * @method _setCarouselOffset
-         * @protected
-         */
-        _setCarouselOffset: function (offset) {
-            var carousel = this, which;
-
-            which = carousel.get("isVertical") ? "top" : "left";
-            Dom.setStyle(carousel._carouselEl, which, offset + "px");
-        },
-
-        /**
-         * Setup/Create the Carousel navigation element (if needed).
-         *
-         * @method _setupCarouselNavigation
-         * @protected
-         */
-        _setupCarouselNavigation: function () {
-            var carousel = this,
-                btn, cfg, cssClass, nav, navContainer, nextButton, prevButton;
-
-            cssClass = carousel.CLASSES;
-
-            // TODO: can the _navBtns be tested against instead?
-            navContainer = Dom.getElementsByClassName(cssClass.NAVIGATION,
-                    "DIV", carousel.get("element"));
-
-            if (navContainer.length === 0) {
-                navContainer = createElement("DIV",
-                        { className: cssClass.NAVIGATION });
-                carousel.insertBefore(navContainer,
-                        Dom.getFirstChild(carousel.get("element")));
-            } else {
-                navContainer = navContainer[0];
-            }
-
-            carousel._pages.el = createElement("UL");
-            navContainer.appendChild(carousel._pages.el);
-
-            nav = carousel.get("navigation");
-            if (JS.isString(nav.prev) || JS.isArray(nav.prev)) {
-                if (JS.isString(nav.prev)) {
-                    nav.prev = [nav.prev];
-                }
-                for (btn in nav.prev) {
-                    if (nav.prev.hasOwnProperty(btn)) {
-                        carousel._navBtns.prev.push(Dom.get(nav.prev[btn]));
-                    }
-                }
-            } else {
-                // TODO: separate method for creating a navigation button
-                prevButton = createElement("SPAN",
-                        { className: cssClass.BUTTON + cssClass.FIRST_NAV });
-                // XXX: for IE 6.x
-                Dom.setStyle(prevButton, "visibility", "visible");
-                btn = Dom.generateId();
-                prevButton.innerHTML = "<button type=\"button\" "      +
-                        "id=\"" + btn + "\" name=\""                   +
-                        carousel.STRINGS.PREVIOUS_BUTTON_TEXT + "\">"  +
-                        carousel.STRINGS.PREVIOUS_BUTTON_TEXT + "</button>";
-                navContainer.appendChild(prevButton);
-                btn = Dom.get(btn);
-                carousel._navBtns.prev = [btn];
-                cfg = { prev: [prevButton] };
-            }
-
-            if (JS.isString(nav.next) || JS.isArray(nav.next)) {
-                if (JS.isString(nav.next)) {
-                    nav.next = [nav.next];
-                }
-                for (btn in nav.next) {
-                    if (nav.next.hasOwnProperty(btn)) {
-                        carousel._navBtns.next.push(Dom.get(nav.next[btn]));
-                    }
-                }
-            } else {
-                // TODO: separate method for creating a navigation button
-                nextButton = createElement("SPAN",
-                        { className: cssClass.BUTTON + cssClass.NEXT_NAV });
-                // XXX: for IE 6.x
-                Dom.setStyle(nextButton, "visibility", "visible");
-                btn = Dom.generateId();
-                nextButton.innerHTML = "<button type=\"button\" "      +
-                        "id=\"" + btn + "\" name=\""                   +
-                        carousel.STRINGS.NEXT_BUTTON_TEXT + "\">"      +
-                        carousel.STRINGS.NEXT_BUTTON_TEXT + "</button>";
-                navContainer.appendChild(nextButton);
-                btn = Dom.get(btn);
-                carousel._navBtns.next = [btn];
-                if (cfg) {
-                    cfg.next = [nextButton];
-                } else {
-                    cfg = { next: [nextButton] };
-                }
-            }
-
-            if (cfg) {
-                carousel.set("navigation", cfg);
-            }
-
-            return navContainer;
-        },
-
-        /**
-         * Set the clip container size (based on the new numVisible value).
-         *
-         * @method _setClipContainerSize
-         * @param clip {HTMLElement} The clip container element.
-         * @param num {Number} optional The number of items per page.
-         * @protected
-         */
-        _setClipContainerSize: function (clip, num) {
-            var carousel   = this,
-                isVertical = carousel.get("isVertical"),
-                rows       = carousel._rows,
-                cols       = carousel._cols,
-                reveal     = carousel.get("revealAmount"),
-                itemHeight = getCarouselItemSize.call(carousel, "height"),
-                itemWidth  = getCarouselItemSize.call(carousel, "width"),
-                containerHeight,
-                containerWidth;
-
-            clip = clip || carousel._clipEl;
-
-            if (rows) {
-                 containerHeight = itemHeight * rows;
-                 containerWidth  = itemWidth  * cols;
-            } else {
-                num = num || carousel.get("numVisible");
-                if (isVertical) {
-                    containerHeight = itemHeight * num;
-                } else {
-                    containerWidth  = itemWidth  * num;
-                }
-            }
-
-            // TODO: try to re-use the _hasRendered indicator
-
-            carousel._recomputeSize = (containerHeight === 0); // bleh!
-            if (carousel._recomputeSize) {
-                carousel._hasRendered = false;
-                return;             // no use going further, bail out!
-            }
-
-            reveal = getRevealSize.call(carousel);
-            if (isVertical) {
-                containerHeight += (reveal * 2);
-            } else {
-                containerWidth  += (reveal * 2);
-            }
-
-            if (isVertical) {
-                containerHeight += getDimensions(carousel._carouselEl,"height");
-                Dom.setStyle(clip, "height", containerHeight + "px");
-                // For multi-row Carousel
-                if (cols) {
-                    containerWidth += getDimensions(carousel._carouselEl,
-                            "width");
-                    Dom.setStyle(clip, "width", containerWidth + (0) + "px");
-                }
-            } else {
-                containerWidth += getDimensions(carousel._carouselEl, "width");
-                Dom.setStyle(clip, "width", containerWidth + "px");
-                // For multi-row Carousel
-                if (rows) {
-                    containerHeight += getDimensions(carousel._carouselEl,
-                            "height");
-                    Dom.setStyle(clip, "height", containerHeight + "px");
-                }
-            }
-
-            carousel._setContainerSize(clip); // adjust the container size too
-        },
-
-        /**
-         * Set the container size.
-         *
-         * @method _setContainerSize
-         * @param clip {HTMLElement} The clip container element.
-         * @param attr {String} Either set the height or width.
-         * @protected
-         */
-        _setContainerSize: function (clip, attr) {
-            var carousel = this,
-                config   = carousel.CONFIG,
-                cssClass = carousel.CLASSES,
-                isVertical,
-                rows,
-                cols,
-                size;
-
-            isVertical = carousel.get("isVertical");
-            rows       = carousel._rows;
-            cols       = carousel._cols;
-            clip       = clip || carousel._clipEl;
-            attr       = attr || (isVertical ? "height" : "width");
-            size       = parseFloat(Dom.getStyle(clip, attr), 10);
-
-            size = JS.isNumber(size) ? size : 0;
-
-            if (isVertical) {
-                size += getDimensions(carousel._carouselEl, "height") +
-                        getStyle(carousel._navEl, "height");
-            } else {
-                size += getDimensions(carousel._carouselEl, "width");
-            }
-
-            if (!isVertical) {
-                if (size < config.HORZ_MIN_WIDTH) {
-                    size = config.HORZ_MIN_WIDTH;
-                    carousel.addClass(cssClass.MIN_WIDTH);
-                }
-            }
-            carousel.setStyle(attr,  size + "px");
-
-            // Additionally the width of the container should be set for
-            // the vertical Carousel
-            if (isVertical) {
-                size = getCarouselItemSize.call(carousel, "width");
-                if(cols) {
-                    size = size * cols;
-                }
-                Dom.setStyle(carousel._carouselEl, "width", size + "px");// Bug fix for vertical carousel (goes in conjunction with .yui-carousel-element {... 3200px removed from styles), and allows for multirows in IEs).
-                if (size < config.VERT_MIN_WIDTH) {
-                    size = config.VERT_MIN_WIDTH;
-                    carousel.addClass(cssClass.MIN_WIDTH);// set a min width on vertical carousel, don't see why this shouldn't always be set...
-                }
-                carousel.setStyle("width",  size + "px");
-            } else {
-                if(rows) {
-                    size = getCarouselItemSize.call(carousel, "height");
-                    size = size * rows;
-                    Dom.setStyle(carousel._carouselEl, "height", size + "px");
-                }
-            }
-        },
-
-        /**
-         * Set the value for the Carousel's first visible item.
-         *
-         * @method _setFirstVisible
-         * @param val {Number} The new value for firstVisible
-         * @return {Number} The new value that would be set
-         * @protected
-         */
-        _setFirstVisible: function (val) {
-            var carousel = this;
-
-            if (val >= 0 && val < carousel.get("numItems")) {
-                carousel.scrollTo(val);
-            } else {
-                val = carousel.get("firstVisible");
-            }
-            return val;
-        },
-
-        /**
-         * Set the value for the Carousel's navigation.
-         *
-         * @method _setNavigation
-         * @param cfg {Object} The navigation configuration
-         * @return {Object} The new value that would be set
-         * @protected
-         */
-        _setNavigation: function (cfg) {
-            var carousel = this;
-
-            if (cfg.prev) {
-                Event.on(cfg.prev, "click", scrollPageBackward, carousel);
-            }
-            if (cfg.next) {
-                Event.on(cfg.next, "click", scrollPageForward, carousel);
-            }
-        },
-
-        /**
-         * Clip the container size every time numVisible is set.
-         *
-         * @method _setNumVisible
-         * @param val {Number} The new value for numVisible
-         * @return {Number} The new value that would be set
-         * @protected
-         */
-        _setNumVisible: function (val) { // TODO: _setNumVisible should just be reserved for setting numVisible.
-            var carousel = this;
-
-            carousel._setClipContainerSize(carousel._clipEl, val);
-        },
-
-        /**
-         * Set the value for the number of visible items in the Carousel.
-         *
-         * @method _numVisibleSetter
-         * @param val {Number} The new value for numVisible
-         * @return {Number} The new value that would be set
-         * @protected
-         */
-        _numVisibleSetter: function (val) {
-            var carousel = this,
-                numVisible = val;
-
-            if(JS.isArray(val)) {
-                carousel._cols = val[0];
-                carousel._rows = val[1];
-                numVisible = val[0] *  val[1];
-            }
-            return numVisible;
-        },
-
-        /**
-         * Set the value for selectedItem.
-         *
-         * @method _selectedItemSetter
-         * @param val {Number} The new value for selectedItem
-         * @return {Number} The new value that would be set
-         * @protected
-         */
-        _selectedItemSetter: function (val) {
-            var carousel = this;
-            return (val < carousel.get("numItems")) ? val : 0;
-        },
-
-        /**
-         * Set the number of items in the Carousel.
-         * Warning: Setting this to a lower number than the current removes
-         * items from the end.
-         *
-         * @method _setNumItems
-         * @param val {Number} The new value for numItems
-         * @return {Number} The new value that would be set
-         * @protected
-         */
-        _setNumItems: function (val) {
-            var carousel = this,
-                num      = carousel._itemsTable.numItems;
-
-            if (JS.isArray(carousel._itemsTable.items)) {
-                if (carousel._itemsTable.items.length != num) { // out of sync
-                    num = carousel._itemsTable.items.length;
-                    carousel._itemsTable.numItems = num;
-                }
-            }
-
-            if (val < num) {
-                while (num > val) {
-                    carousel.removeItem(num - 1);
-                    num--;
-                }
-            }
-
-            return val;
-        },
-
-        /**
-         * Set the orientation of the Carousel.
-         *
-         * @method _setOrientation
-         * @param val {Boolean} The new value for isVertical
-         * @return {Boolean} The new value that would be set
-         * @protected
-         */
-        _setOrientation: function (val) {
-            var carousel = this,
-                cssClass = carousel.CLASSES;
-
-            if (val) {
-                carousel.replaceClass(cssClass.HORIZONTAL, cssClass.VERTICAL);
-            } else {
-                carousel.replaceClass(cssClass.VERTICAL, cssClass.HORIZONTAL);
-            }
-            this._itemAttrCache = {}; // force recomputed next time
-
-            return val;
-        },
-
-        /**
-         * Set the value for the reveal amount percentage in the Carousel.
-         *
-         * @method _setRevealAmount
-         * @param val {Number} The new value for revealAmount
-         * @return {Number} The new value that would be set
-         * @protected
-         */
-        _setRevealAmount: function (val) {
-            var carousel = this;
-
-            if (val >= 0 && val <= 100) {
-                val = parseInt(val, 10);
-                val = JS.isNumber(val) ? val : 0;
-                carousel._setClipContainerSize();
-            } else {
-                val = carousel.get("revealAmount");
-            }
-            return val;
-        },
-
-        /**
-         * Set the value for the selected item.
-         *
-         * @method _setSelectedItem
-         * @param val {Number} The new value for "selected" item
-         * @protected
-         */
-        _setSelectedItem: function (val) {
-            this._selectedItem = val;
-        },
-
-        /**
-         * Get the total number of pages.
-         *
-         * @method _getNumPages
-         * @protected
-         */
-        _getNumPages: function () {
-            return Math.ceil(
-                parseInt(this.get("numItems"),10) / parseInt(this.get("numVisible"),10)
-            );
-        },
-
-        /**
-         * Get the index of the last visible item
-         *
-         * @method _getLastVisible
-         * @protected
-         */
-        _getLastVisible: function () {
-            var carousel = this;
-            return carousel.get("currentPage") + 1 == carousel.get("numPages") ?
-                   carousel.get("numItems") - 1:
-                   carousel.get("firstVisible") + carousel.get("numVisible") - 1;
-        },
-
-        /**
-         * Synchronize and redraw the UI after an item is added.
-         *
-         * @method _syncUiForItemAdd
-         * @protected
-         */
-        _syncUiForItemAdd: function (obj) {
-            var attr,
-                carousel   = this,
-                carouselEl = carousel._carouselEl,
-                el,
-                item,
-                itemsTable = carousel._itemsTable,
-                oel,
-                pos,
-                sibling,
-                styles;
-
-            pos  = JS.isUndefined(obj.pos) ?
-                   obj.newPos || itemsTable.numItems - 1 : obj.pos;
-
-            if (!oel) {
-                item = itemsTable.items[pos] || {};
-                el = carousel._createCarouselItem({
-                        className : item.className,
-                        styles    : item.styles,
-                        content   : item.item,
-                        id        : item.id,
-                        pos       : pos
-                });
-                if (JS.isUndefined(obj.pos)) {
-                    if (!JS.isUndefined(itemsTable.loading[pos])) {
-                        oel = itemsTable.loading[pos];
-                        // if oel is null, it is a problem ...
-                    }
-                    if (oel) {
-                        // replace the node
-                        carouselEl.replaceChild(el, oel);
-                        // ... and remove the item from the data structure
-                        delete itemsTable.loading[pos];
-                    } else {
-                        carouselEl.appendChild(el);
-                    }
-                } else {
-                    if (!JS.isUndefined(itemsTable.items[obj.pos + 1])) {
-                        sibling = Dom.get(itemsTable.items[obj.pos + 1].id);
-                    }
-                    if (sibling) {
-                        carouselEl.insertBefore(el, sibling);
-                    } else {
-                    }
-                }
-            } else {
-                if (JS.isUndefined(obj.pos)) {
-                    if (!Dom.isAncestor(carousel._carouselEl, oel)) {
-                        carouselEl.appendChild(oel);
-                    }
-                } else {
-                    if (!Dom.isAncestor(carouselEl, oel)) {
-                        if (!JS.isUndefined(itemsTable.items[obj.pos + 1])) {
-                            carouselEl.insertBefore(oel,
-                                    Dom.get(itemsTable.items[obj.pos + 1].id));
-                        }
-                    }
-                }
-            }
-
-            if (!carousel._hasRendered) {
-                carousel._refreshUi();
-            }
-
-            if (carousel.get("selectedItem") < 0) {
-                carousel.set("selectedItem", carousel.get("firstVisible"));
-            }
-
-            carousel._syncUiItems();
-        },
-
-        /**
-         * Synchronize and redraw the UI after an item is replaced.
-         *
-         * @method _syncUiForItemReplace
-         * @protected
-         */
-        _syncUiForItemReplace: function (o) {
-            var carousel   = this,
-                carouselEl = carousel._carouselEl,
-                itemsTable = carousel._itemsTable,
-                pos        = o.pos,
-                item       = o.newItem,
-                oel        = o.oldItem,
-                el;
-
-            el = carousel._createCarouselItem({
-                className : item.className,
-                styles    : item.styles,
-                content   : item.item,
-                id        : item.id,
-                pos       : pos
-            });
-
-            if(el && oel) {
-                Event.purgeElement(oel, true);
-                carouselEl.replaceChild(el, Dom.get(oel.id));
-                if (!JS.isUndefined(itemsTable.loading[pos])) {
-                    itemsTable.numItems++;
-                    delete itemsTable.loading[pos];
-                }
-            }
-            // TODO: should we add the item if oel is undefined?
-
-            if (!carousel._hasRendered) {
-                carousel._refreshUi();
-            }
-
-            carousel._syncUiItems();
-        },
-
-        /**
-         * Synchronize and redraw the UI after an item is removed.
-         *
-         * @method _syncUiForItemAdd
-         * @protected
-         */
-        _syncUiForItemRemove: function (obj) {
-            var carousel   = this,
-                carouselEl = carousel._carouselEl,
-                el, item, num, pos;
-
-            num  = carousel.get("numItems");
-            item = obj.item;
-            pos  = obj.pos;
-
-            if (item && (el = Dom.get(item.id))) {
-                if (el && Dom.isAncestor(carouselEl, el)) {
-                    Event.purgeElement(el, true);
-                    carouselEl.removeChild(el);
-                }
-
-                if (carousel.get("selectedItem") == pos) {
-                    pos = pos >= num ? num - 1 : pos;
-                }
-            } else {
-            }
-
-            carousel._syncUiItems();
-        },
-
-        /**
-         * Synchronize and redraw the UI for lazy loading.
-         *
-         * @method _syncUiForLazyLoading
-         * @protected
-         */
-        _syncUiForLazyLoading: function (obj) {
-            var carousel   = this,
-                carouselEl = carousel._carouselEl,
-                itemsTable = carousel._itemsTable,
-                len = itemsTable.items.length,
-                sibling = itemsTable.items[obj.last + 1],
-                el,
-                j;
-
-            // attempt to find the next closest sibling
-            if(!sibling && obj.last < len){
-                j = obj.first;
-                do {
-                    sibling = itemsTable.items[j];
-                    j++;
-                } while (j<len && !sibling);
-            }
-
-            for (var i = obj.first; i <= obj.last; i++) {
-                if(JS.isUndefined(itemsTable.loading[i]) && JS.isUndefined(itemsTable.items[i])){
-                    el = carousel._createCarouselItem({
-                            className : carousel.CLASSES.ITEM_LOADING,
-                            content   : carousel.STRINGS.ITEM_LOADING_CONTENT,
-                            id        : Dom.generateId(),
-                            pos       : i
-                    });
-                    if (el) {
-                        if (sibling) {
-                            sibling = Dom.get(sibling.id);
-                            if (sibling) {
-                                carouselEl.insertBefore(el, sibling);
-                            } else {
-                            }
-                        } else {
-                            carouselEl.appendChild(el);
-                        }
-                    }
-                    itemsTable.loading[i] = el;
-                }
-            }
-
-            carousel._syncUiItems();
-        },
-
-        /**
-         * Redraw the UI for item positioning.
-         *
-         * @method _syncUiItems
-         * @protected
-         */
-        _syncUiItems: function () {
-            var attr,
-                carousel = this,
-                numItems = carousel.get("numItems"),
-                i,
-                itemsTable = carousel._itemsTable,
-                items = itemsTable.items,
-                loading = itemsTable.loading,
-                item,
-                styles;
-
-            for (i = 0; i < numItems; i++) {
-                item = items[i] || loading[i];
-
-                if (item && item.id) {
-                    styles = getCarouselItemPosition.call(carousel, i);
-                    item.styles = item.styles || {};
-                    for (attr in styles) {
-                        if (styles.hasOwnProperty(attr)) {
-                            item.styles[attr] = styles[attr];
-                        }
-                    }
-                    setStyles(Dom.get(item.id), styles);
-                }
-            }
-        },
-
-        /**
-         * Set the correct class for the navigation buttons.
-         *
-         * @method _updateNavButtons
-         * @param el {Object} The target button
-         * @param setFocus {Boolean} True to set focus ring, false otherwise.
-         * @protected
-         */
-        _updateNavButtons: function (el, setFocus) {
-            var children,
-                cssClass = this.CLASSES,
-                grandParent,
-                parent   = el.parentNode;
-
-            if (!parent) {
-                return;
-            }
-            grandParent = parent.parentNode;
-
-            if (el.nodeName.toUpperCase() == "BUTTON" &&
-                Dom.hasClass(parent, cssClass.BUTTON)) {
-                if (setFocus) {
-                    if (grandParent) {
-                        children = Dom.getChildren(grandParent);
-                        if (children) {
-                            Dom.removeClass(children, cssClass.FOCUSSED_BUTTON);
-                        }
-                    }
-                    Dom.addClass(parent, cssClass.FOCUSSED_BUTTON);
-                } else {
-                    Dom.removeClass(parent, cssClass.FOCUSSED_BUTTON);
-                }
-            }
-        },
-
-        /**
-         * Update the UI for the pager buttons based on the current page and
-         * the number of pages.
-         *
-         * @method _updatePagerButtons
-         * @protected
-         */
-         _updatePagerButtons: function () {
-             var carousel = this,
-                 css      = carousel.CLASSES,
-                 cur      = carousel._pages.cur, // current page
-                 el,
-                 html,
-                 i,
-                 item,
-                 n        = carousel.get("numVisible"),
-                 num      = carousel._pages.num, // total pages
-                 pager    = carousel._pages.el;  // the pager container element
-
-             if (num === 0 || !pager) {
-                 return;         // don't do anything if number of pages is 0
-             }
-
-             // Hide the pager before redrawing it
-             Dom.setStyle(pager, "visibility", "hidden");
-
-             // Remove all nodes from the pager
-             while (pager.firstChild) {
-                 pager.removeChild(pager.firstChild);
-             }
-
-             for (i = 0; i < num; i++) {
-
-                 el   = document.createElement("LI");
-
-                 if (i === 0) {
-                     Dom.addClass(el, css.FIRST_PAGE);
-                 }
-                 if (i == cur) {
-                     Dom.addClass(el, css.SELECTED_NAV);
-                 }
-
-                 html = "<a class=" + css.PAGER_ITEM + " href=\"#" + (i+1) + "\" tabindex=\"0\"><em>"   +
-                         carousel.STRINGS.PAGER_PREFIX_TEXT + " " + (i+1) +
-                         "</em></a>";
-                 el.innerHTML = html;
-
-                 pager.appendChild(el);
-             }
-
-             // Show the pager now
-             Dom.setStyle(pager, "visibility", "visible");
-         },
-
-        /**
-         * Update the UI for the pager menu based on the current page and
-         * the number of pages.  If the number of pages is greater than
-         * MAX_PAGER_BUTTONS, then the selection of pages is provided by a drop
-         * down menu instead of a set of buttons.
-         *
-         * @method _updatePagerMenu
-         * @protected
-         */
-        _updatePagerMenu: function () {
-            var carousel = this,
-                css      = carousel.CLASSES,
-                cur      = carousel._pages.cur, // current page
-                el,
-                i,
-                item,
-                n        = carousel.get("numVisible"),
-                num      = carousel._pages.num, // total pages
-                pager    = carousel._pages.el,  // the pager container element
-                sel;
-
-            if (num === 0) {
-                return;// don't do anything if number of pages is 0
-            }
-
-            sel = document.createElement("SELECT");
-
-
-            if (!sel) {
-                return;
-            }
-
-            // Hide the pager before redrawing it
-            Dom.setStyle(pager, "visibility", "hidden");
-
-            // Remove all nodes from the pager
-            while (pager.firstChild) {
-                pager.removeChild(pager.firstChild);
-            }
-
-            for (i = 0; i < num; i++) {
-
-                el   = document.createElement("OPTION");
-                el.value     = i+1;
-                el.innerHTML = carousel.STRINGS.PAGER_PREFIX_TEXT+" "+(i+1);
-
-                if (i == cur) {
-                    el.setAttribute("selected", "selected");
-                }
-
-                sel.appendChild(el);
-            }
-
-            el = document.createElement("FORM");
-            if (!el) {
-            } else {
-                el.appendChild(sel);
-                pager.appendChild(el);
-            }
-
-            // Show the pager now
-            Event.addListener(sel, "change", carousel._pagerChangeHandler, this, true);
-            Dom.setStyle(pager, "visibility", "visible");
-        },
-
-        /**
-         * Set the correct tab index for the Carousel items.
-         *
-         * @method _updateTabIndex
-         * @param el {Object} The element to be focussed
-         * @protected
-         */
-        _updateTabIndex: function (el) {
-            var carousel = this;
-
-            if (el) {
-                if (carousel._focusableItemEl) {
-                    carousel._focusableItemEl.tabIndex = -1;
-                }
-                carousel._focusableItemEl = el;
-                el.tabIndex = 0;
-            }
-        },
-
-        /**
-         * Validate animation parameters.
-         *
-         * @method _validateAnimation
-         * @param cfg {Object} The animation configuration
-         * @return {Boolean} The status of the validation
-         * @protected
-         */
-        _validateAnimation: function (cfg) {
-            var rv = true;
-
-            if (JS.isObject(cfg)) {
-                if (cfg.speed) {
-                    rv = rv && JS.isNumber(cfg.speed);
-                }
-                if (cfg.effect) {
-                    rv = rv && JS.isFunction(cfg.effect);
-                } else if (!JS.isUndefined(YAHOO.util.Easing)) {
-                    cfg.effect = YAHOO.util.Easing.easeOut;
-                }
-            } else {
-                rv = false;
-            }
-
-            return rv;
-        },
-
-        /**
-         * Validate the firstVisible value.
-         *
-         * @method _validateFirstVisible
-         * @param val {Number} The first visible value
-         * @return {Boolean} The status of the validation
-         * @protected
-         */
-        _validateFirstVisible: function (val) {
-            var carousel = this, numItems = carousel.get("numItems");
-
-            if (JS.isNumber(val)) {
-                if (numItems === 0 && val == numItems) {
-                    return true;
-                } else {
-                    return (val >= 0 && val < numItems);
-                }
-            }
-
-            return false;
-        },
-
-        /**
-         * Validate and navigation parameters.
-         *
-         * @method _validateNavigation
-         * @param cfg {Object} The navigation configuration
-         * @return {Boolean} The status of the validation
-         * @protected
-         */
-        _validateNavigation : function (cfg) {
-            var i;
-
-            if (!JS.isObject(cfg)) {
-                return false;
-            }
-
-            if (cfg.prev) {
-                if (!JS.isArray(cfg.prev)) {
-                    return false;
-                }
-                for (i in cfg.prev) {
-                    if (cfg.prev.hasOwnProperty(i)) {
-                        if (!JS.isString(cfg.prev[i].nodeName)) {
-                            return false;
-                        }
-                    }
-                }
-            }
-
-            if (cfg.next) {
-                if (!JS.isArray(cfg.next)) {
-                    return false;
-                }
-                for (i in cfg.next) {
-                    if (cfg.next.hasOwnProperty(i)) {
-                        if (!JS.isString(cfg.next[i].nodeName)) {
-                            return false;
-                        }
-                    }
-                }
-            }
-
-            return true;
-        },
-
-        /**
-         * Validate the numItems value.
-         *
-         * @method _validateNumItems
-         * @param val {Number} The numItems value
-         * @return {Boolean} The status of the validation
-         * @protected
-         */
-        _validateNumItems: function (val) {
-            return JS.isNumber(val) && (val >= 0);
-        },
-
-        /**
-         * Validate the numVisible value.
-         *
-         * @method _validateNumVisible
-         * @param val {Number} The numVisible value
-         * @return {Boolean} The status of the validation
-         * @protected
-         */
-        _validateNumVisible: function (val) {
-            var rv = false;
-
-            if (JS.isNumber(val)) {
-                rv = val > 0 && val <= this.get("numItems");
-            } else if (JS.isArray(val)) {
-                if (JS.isNumber(val[0]) && JS.isNumber(val[1])) {
-                    rv = val[0] * val[1] > 0 && val.length == 2;
-                }
-            }
-
-            return rv;
-        },
-
-        /**
-         * Validate the revealAmount value.
-         *
-         * @method _validateRevealAmount
-         * @param val {Number} The revealAmount value
-         * @return {Boolean} The status of the validation
-         * @protected
-         */
-        _validateRevealAmount: function (val) {
-            var rv = false;
-
-            if (JS.isNumber(val)) {
-                rv = val >= 0 && val < 100;
-            }
-
-            return rv;
-        },
-
-        /**
-         * Validate the scrollIncrement value.
-         *
-         * @method _validateScrollIncrement
-         * @param val {Number} The scrollIncrement value
-         * @return {Boolean} The status of the validation
-         * @protected
-         */
-        _validateScrollIncrement: function (val) {
-            var rv = false;
-
-            if (JS.isNumber(val)) {
-                rv = (val > 0 && val < this.get("numItems"));
-            }
-
-            return rv;
-        }
-
-    });
-
-})();
-/*
-;;  Local variables: **
-;;  mode: js2 **
-;;  indent-tabs-mode: nil **
-;;  End: **
-*/
-YAHOO.register("carousel", YAHOO.widget.Carousel, {version: "2.8.0r4", build: "2449"});
diff --git a/koha-tmpl/intranet-tmpl/prog/en/lib/yui/charts/assets/charts.swf b/koha-tmpl/intranet-tmpl/prog/en/lib/yui/charts/assets/charts.swf
deleted file mode 100644 (file)
index e8c1e53..0000000
Binary files a/koha-tmpl/intranet-tmpl/prog/en/lib/yui/charts/assets/charts.swf and /dev/null differ
diff --git a/koha-tmpl/intranet-tmpl/prog/en/lib/yui/charts/charts-debug.js b/koha-tmpl/intranet-tmpl/prog/en/lib/yui/charts/charts-debug.js
deleted file mode 100644 (file)
index c3d7180..0000000
+++ /dev/null
@@ -1,2061 +0,0 @@
-/*
-Copyright (c) 2009, Yahoo! Inc. All rights reserved.
-Code licensed under the BSD License:
-http://developer.yahoo.net/yui/license.txt
-version: 2.8.0r4
-*/
-/**
- * The Charts widget provides a Flash control for displaying data
- * graphically by series across A-grade browsers with Flash Player installed.
- *
- * @module charts
- * @requires yahoo, dom, event, datasource
- * @title Charts Widget
- * @experimental
- */
-/****************************************************************************/
-/****************************************************************************/
-/****************************************************************************/
-
-/**
- * Chart class for the YUI Charts widget.
- *
- * @namespace YAHOO.widget
- * @class Chart
- * @uses YAHOO.util.AttributeProvider
- * @constructor
- * @param type {String} The char type. May be "line", "column", "bar", or "pie"
- * @param containerId {HTMLElement} Container element for the Flash Player instance.
- * @param dataSource {YAHOO.util.DataSource} DataSource instance.
- * @param attributes {object} (optional) Object literal of configuration values.
- */
-YAHOO.widget.Chart = function(type, containerId, dataSource, configurationAttributes)
-{
-       this._type = type;
-       this._dataSource = dataSource;
-               
-       var possibleParams = {align:"", allowNetworking:"", allowScriptAccess:"", base:"", bgcolor:"", menu:"", name:"", quality:"", salign:"", scale:"", tabindex:"", wmode:""};
-       var attributes = {fixedAttributes:{allowScriptAccess:"always"}, flashVars:{allowedDomain : document.location.hostname}, backgroundColor:"#ffffff", host:this, version:9.045};
-       
-       for(var i in configurationAttributes)
-       {
-               if(possibleParams.hasOwnProperty(i))
-               {
-                       attributes.fixedAttributes[i] = configurationAttributes[i];
-               }
-               else
-               {
-                       attributes[i] = configurationAttributes[i];
-               }
-       }
-       
-       this._id = attributes.id = attributes.id || YAHOO.util.Dom.generateId(null, "yuigen");
-       
-       if(attributes.version && attributes.version != null && attributes.version != undefined && attributes.version != "undefined")
-       { 
-               var version = (/\w*.\w*/.exec(((attributes.version).toString()).replace(/.0./g, "."))).toString();
-               var verSplit = version.split(".");
-               version = verSplit[0] + ".";
-               switch((verSplit[1].toString()).length)
-               {
-                       case 1: 
-                               version += "00";
-                       break;
-                       case 2:
-                               version += "0";
-                       break;  
-               } 
-               version += verSplit[1];
-               attributes.version = parseFloat(version); 
-       }
-       
-       this._swfURL = YAHOO.widget.Chart.SWFURL;
-       this._containerID = containerId;
-       
-       this._attributes = attributes
-       this._swfEmbed = new YAHOO.widget.SWF(containerId, YAHOO.widget.Chart.SWFURL, attributes);
-       
-       this._swf = this._swfEmbed.swf;
-       this._swfEmbed.subscribe("swfReady", this._eventHandler, this, true);
-                       
-       /**
-        * Fires when the SWF is initialized and communication is possible.
-        * @event contentReady
-        */
-       //Fix for iframe cross-domain issue with FF2x 
-       try
-       {
-               this.createEvent("contentReady");
-       }
-       catch(e){}
-       
-       /**
-        * Fires when the user moves the mouse over the bounds of an item renderer in the chart.
-        *
-        * @event itemMouseOverEvent
-        * @param event.type {String} The event type
-        * @param event.item {Object} The data displayed by the renderer
-        * @param event.index {Number} The position within the series that the item appears.
-        * @param event.seriesIndex {Number} The position within the series definition that the series appears.
-        * @param event.x {Number} The horizontal position of the mouse, relative to the SWF.
-        * @param event.y {Number} The vertical position of the mouse, relative to the SWF.
-        */
-       this.createEvent("itemMouseOverEvent");
-       
-       /**
-        * Fires when the user moves the mouse out of the bounds of an item renderer in the chart.
-        *
-        * @event itemMouseOutEvent
-        * @param event.type {String} The event type
-        * @param event.item {Object} The data displayed by the renderer
-        * @param event.index {Number} The position within the series that the item appears.
-        * @param event.seriesIndex {Number} The position within the series definition that the series appears.
-        * @param event.x {Number} The horizontal position of the mouse, relative to the SWF.
-        * @param event.y {Number} The vertical position of the mouse, relative to the SWF.
-        */
-       this.createEvent("itemMouseOutEvent");
-       
-       /**
-        * Fires when the user clicks an item renderer in the chart with the mouse.
-        *
-        * @event itemClickEvent
-        * @param event.type {String} The event type
-        * @param event.item {Object} The data displayed by the renderer
-        * @param event.index {Number} The position within the series that the item appears.
-        * @param event.seriesIndex {Number} The position within the series definition that the series appears.
-        * @param event.x {Number} The horizontal position of the mouse, relative to the SWF.
-        * @param event.y {Number} The vertical position of the mouse, relative to the SWF.
-        */
-       this.createEvent("itemClickEvent");
-       
-       /**
-        * Fires when the user double-clicks an item renderer in the chart with the mouse.
-        *
-        * @event itemDoubleClickEvent
-        * @param event.type {String} The event type
-        * @param event.item {Object} The data displayed by the renderer
-        * @param event.index {Number} The position within the series that the item appears.
-        * @param event.seriesIndex {Number} The position within the series definition that the series appears.
-        * @param event.x {Number} The horizontal position of the mouse, relative to the SWF.
-        * @param event.y {Number} The vertical position of the mouse, relative to the SWF.
-        */
-       this.createEvent("itemDoubleClickEvent");
-       
-       /**
-        * Fires when the user presses the mouse down on an item to initiate a drag action.
-        *
-        * @event itemDragStartEvent
-        * @param event.type {String} The event type
-        * @param event.item {Object} The data displayed by the renderer
-        * @param event.index {Number} The position within the series that the item appears.
-        * @param event.seriesIndex {Number} The position within the series definition that the series appears.
-        * @param event.x {Number} The horizontal position of the mouse, relative to the SWF.
-        * @param event.y {Number} The vertical position of the mouse, relative to the SWF.
-        */
-       this.createEvent("itemDragStartEvent");
-       
-       /**
-        * Fires when the user moves the mouse during a drag action.
-        *
-        * @event itemDragEvent
-        * @param event.type {String} The event type
-        * @param event.item {Object} The data displayed by the renderer
-        * @param event.index {Number} The position within the series that the item appears.
-        * @param event.seriesIndex {Number} The position within the series definition that the series appears.
-        * @param event.x {Number} The horizontal position of the mouse, relative to the SWF.
-        * @param event.y {Number} The vertical position of the mouse, relative to the SWF.
-        */
-       this.createEvent("itemDragEvent");
-
-       /**
-        * Fires when the user releases the mouse during a drag action.
-        *
-        * @event itemDragEndEvent
-        * @param event.type {String} The event type
-        * @param event.item {Object} The data displayed by the renderer
-        * @param event.index {Number} The position within the series that the item appears.
-        * @param event.seriesIndex {Number} The position within the series definition that the series appears.
-        * @param event.x {Number} The horizontal position of the mouse, relative to the SWF.
-        * @param event.y {Number} The vertical position of the mouse, relative to the SWF.
-        */
-       this.createEvent("itemDragEndEvent");
-};
-
-YAHOO.extend(YAHOO.widget.Chart, YAHOO.util.AttributeProvider,
-{
-       /**
-        * The type of this chart instance.
-        * @property _type
-        * @type String
-        * @private
-        */
-       _type: null,
-
-       /**
-        * The id returned from the DataSource's setInterval function.
-        * @property _pollingID
-        * @type Number
-        * @private
-        */
-       _pollingID: null,
-
-       /**
-        * The time, in ms, between requests for data.
-        * @property _pollingInterval
-        * @type Number
-        * @private
-        */
-       _pollingInterval: null,
-
-       /**
-        * Stores a reference to the dataTipFunction created by
-        * YAHOO.widget.Chart.createProxyFunction()
-        * @property _dataTipFunction
-        * @type String
-        * @private
-        */
-       _dataTipFunction: null,
-       
-       /**
-        * Stores a reference to the legendLabelFunction created by
-        * YAHOO.widget.Chart.createProxyFunction()
-        * @property _legendLabelFunction
-        * @type String
-        * @private
-        */
-       _legendLabelFunction: null,     
-       
-       /**
-        * Stores references to series function values created by
-        * YAHOO.widget.Chart.createProxyFunction()
-        * @property _seriesFunctions
-        * @type Array
-        * @private
-        */
-       _seriesFunctions: null,
-
-       /**
-        * Public accessor to the unique name of the Chart instance.
-        *
-        * @method toString
-        * @return {String} Unique name of the Chart instance.
-        */
-       toString: function()
-       {
-               return "Chart " + this._id;
-       },
-       
-       /**
-        * Sets a single style value on the Chart instance.
-        *
-        * @method setStyle
-        * @param name {String} Name of the Chart style value to change.
-        * @param value {Object} New value to pass to the Chart style.
-        */
-       setStyle: function(name, value)
-       {
-               //we must jsonify this because Flash Player versions below 9.0.60 don't handle
-               //complex ExternalInterface parsing correctly
-               value = YAHOO.lang.JSON.stringify(value);
-               this._swf.setStyle(name, value);
-       },
-       
-       /**
-        * Resets all styles on the Chart instance.
-        *
-        * @method setStyles
-        * @param styles {Object} Initializer for all Chart styles.
-        */
-       setStyles: function(styles)
-       {
-               //we must jsonify this because Flash Player versions below 9.0.60 don't handle
-               //complex ExternalInterface parsing correctly
-               styles = YAHOO.lang.JSON.stringify(styles);
-               this._swf.setStyles(styles);
-       },
-       
-       /**
-        * Sets the styles on all series in the Chart.
-        *
-        * @method setSeriesStyles
-        * @param styles {Array} Initializer for all Chart series styles.
-        */
-       setSeriesStyles: function(styles)
-       {
-               //we must jsonify this because Flash Player versions below 9.0.60 don't handle
-               //complex ExternalInterface parsing correctly
-               for(var i = 0; i < styles.length; i++)
-               {
-                       styles[i] = YAHOO.lang.JSON.stringify(styles[i]);       
-               }
-               this._swf.setSeriesStyles(styles);
-       },
-       
-       destroy: function()
-       {
-               //stop polling if needed
-               if(this._dataSource !== null)
-               {
-                       if(this._pollingID !== null)
-                       {
-                               this._dataSource.clearInterval(this._pollingID);
-                               this._pollingID = null;
-                       }
-               }
-               
-               //remove proxy functions
-               if(this._dataTipFunction)
-               {
-                       YAHOO.widget.Chart.removeProxyFunction(this._dataTipFunction);
-               }
-               
-               if(this._legendLabelFunction)
-               {
-                       YAHOO.widget.Chart.removeProxyFunction(this._legendLabelFunction);
-               }
-               
-               //kill the Flash Player instance
-               if(this._swf)
-               {
-                       var container = YAHOO.util.Dom.get(this._containerID);
-                       container.removeChild(this._swf);
-               }
-               
-               var instanceName = this._id;
-               
-               //null out properties
-               for(var prop in this)
-               {
-                       if(YAHOO.lang.hasOwnProperty(this, prop))
-                       {
-                               this[prop] = null;
-                       }
-               }
-       },
-       
-       /**
-        * Initializes the attributes.
-        *
-        * @method _initAttributes
-        * @private
-        */
-       _initAttributes: function(attributes)
-       {
-               //YAHOO.widget.Chart.superclass._initAttributes.call(this, attributes);
-               /**
-                * @attribute wmode
-                * @description Sets the window mode of the Flash Player control. May be
-                *              "window", "opaque", or "transparent". Only available in the constructor
-                *              because it may not be set after Flash Player has been embedded in the page.
-                * @type String
-                */
-                
-               /**
-                * @attribute expressInstall
-                * @description URL pointing to a SWF file that handles Flash Player's express
-                *              install feature. Only available in the constructor because it may not be
-                *              set after Flash Player has been embedded in the page.
-                * @type String
-                */
-
-               /**
-                * @attribute version
-                * @description Minimum required version for the SWF file. Only available in the constructor because it may not be
-                *              set after Flash Player has been embedded in the page.
-                * @type String
-                */
-
-               /**
-                * @attribute backgroundColor
-                * @description The background color of the SWF. Only available in the constructor because it may not be
-                *              set after Flash Player has been embedded in the page.
-                * @type String
-                */
-                
-               /**
-                * @attribute altText
-                * @description The alternative text to provide for screen readers and other assistive technology.
-                * @type String
-                */
-               this.setAttributeConfig("altText",
-               {
-                       method: this._setAltText,
-                       getter: this._getAltText
-                       
-               });
-               
-               /**
-                * @attribute swfURL
-                * @description Absolute or relative URL to the SWF displayed by the Chart. Only available in the constructor because it may not be
-                *              set after Flash Player has been embedded in the page.
-                * @type String
-                */
-               this.setAttributeConfig("swfURL",
-               {
-                       getter: this._getSWFURL
-               });             
-
-               /**
-                * @attribute request
-                * @description Request to be sent to the Chart's DataSource.
-                * @type String
-                */
-               this.setAttributeConfig("request",
-               {
-                       method: this._setRequest,
-                       getter: this._getRequest
-               });
-               
-               /**
-                * @attribute dataSource
-                * @description The DataSource instance to display in the Chart.
-                * @type DataSource
-                */
-               this.setAttributeConfig("dataSource",
-               {
-                       method: this._setDataSource,
-                       getter: this._getDataSource
-               });
-               
-               /**
-                * @attribute series
-                * @description Defines the series to be displayed by the Chart.
-                * @type Array
-                */
-               this.setAttributeConfig("series",
-               {
-                       method: this._setSeriesDefs,
-                       getter: this._getSeriesDefs
-               });
-               
-               /**
-                * @attribute categoryNames
-                * @description Defines the names of the categories to be displayed in the Chart..
-                * @type Array
-                */
-               this.setAttributeConfig("categoryNames",
-               {
-                       validator: YAHOO.lang.isArray,
-                       method: this._setCategoryNames,
-                       getter: this._getCategoryNames
-               });
-               
-               /**
-                * @attribute dataTipFunction
-                * @description The string representation of a globally-accessible function
-                * that may be called by the SWF to generate the datatip text for a Chart's item.
-                * @type String
-                */
-               this.setAttributeConfig("dataTipFunction",
-               {
-                       method: this._setDataTipFunction,
-                       getter: this._getDataTipFunction
-               });
-               
-               /**
-                * @attribute legendLabelFunction
-                * @description The string representation of a globally-accessible function
-                * that may be called by the SWF to format the labels of a Chart's legend.
-                * @type String
-                */     
-               this.setAttributeConfig("legendLabelFunction",
-               {
-                       method: this._setLegendLabelFunction,
-                       getter: this._legendLabelFunction
-               });
-
-               /**
-                * @attribute polling
-                * @description A numeric value indicating the number of milliseconds between
-                * polling requests to the DataSource.
-                * @type Number
-                */
-               this.setAttributeConfig("polling",
-               {
-                       method: this._setPolling,
-                       getter: this._getPolling
-               });
-       },
-       
-       /**
-        * Handles swfReady event from SWF.
-        *
-        * @method _eventHandler
-        * @private
-        */
-       _eventHandler: function(event)
-       { 
-               if(event.type == "swfReady")
-               {
-                       this._swf = this._swfEmbed._swf;
-                       this._loadHandler();
-                       this.fireEvent("contentReady");
-               }
-       },      
-       
-       /**
-        * Called when the SWF is ready for communication. Sets the type, initializes
-        * the styles, and sets the DataSource.
-        *
-        * @method _loadHandler
-        * @private
-        */
-       _loadHandler: function()
-       {
-               //the type is set separately because it must be first!
-               if(!this._swf || !this._swf.setType) return;
-               this._swf.setType(this._type);
-
-
-               //set initial styles
-               if(this._attributes.style)
-               {
-                       var style = this._attributes.style;
-                       this.setStyles(style);          
-               }
-
-               this._initialized = false;
-
-               this._initAttributes(this._attributes);
-               this.setAttributes(this._attributes, true);
-
-               this._initialized = true;
-               if(this._dataSource)
-               {
-                       this.set("dataSource", this._dataSource);
-               }
-       },      
-
-       /**
-        * Sends (or resends) the request to the DataSource.
-        *
-        * @method refreshData
-        */
-       refreshData: function()
-       {
-               if(!this._initialized)
-               {
-                       return;
-               }
-               
-               if(this._dataSource !== null)
-               {
-                       if(this._pollingID !== null)
-                       {
-                               this._dataSource.clearInterval(this._pollingID);
-                               this._pollingID = null;
-                       }
-                       
-                       if(this._pollingInterval > 0)
-                       {
-                               this._pollingID = this._dataSource.setInterval(this._pollingInterval, this._request, this._loadDataHandler, this);
-                       }
-                       this._dataSource.sendRequest(this._request, this._loadDataHandler, this);
-               }
-       },
-
-       /**
-        * Called when the DataSource receives new data. The series definitions are used
-        * to build a data provider for the SWF chart.
-        *
-        * @method _loadDataHandler
-        * @private
-        */
-       _loadDataHandler: function(request, response, error)
-       {
-               if(this._swf)
-               {
-                       if(error)
-                       {
-                               YAHOO.log("Unable to load data.", "error");
-                       }
-                       else
-                       {
-                               var i;
-                               if(this._seriesFunctions)
-                               {
-                                       var count = this._seriesFunctions.length;
-                                       for(i = 0; i < count; i++)
-                                       {
-                                               YAHOO.widget.Chart.removeProxyFunction(this._seriesFunctions[i]);
-                                       }
-                                       this._seriesFunctions = null;
-                               }
-                               this._seriesFunctions = [];
-
-                               //make a copy of the series definitions so that we aren't
-                               //editing them directly.
-                               var dataProvider = [];  
-                               var seriesCount = 0;
-                               var currentSeries = null;
-                               if(this._seriesDefs !== null)
-                               {
-                                       seriesCount = this._seriesDefs.length;
-                                       for(i = 0; i < seriesCount; i++)
-                                       {
-                                               currentSeries = this._seriesDefs[i];
-                                               var clonedSeries = {};
-                                               for(var prop in currentSeries)
-                                               {
-                                                       if(YAHOO.lang.hasOwnProperty(currentSeries, prop))
-                                                       {
-                                                               if(prop == "style")
-                                                               {
-                                                                       if(currentSeries.style !== null)
-                                                                       {
-                                                                               clonedSeries.style = YAHOO.lang.JSON.stringify(currentSeries.style);
-                                                                       }
-                                                               }
-
-                                                               else if(prop == "labelFunction")
-                                                               {
-                                                                       if(currentSeries.labelFunction !== null)
-                                                                       {       
-                                                                               clonedSeries.labelFunction = YAHOO.widget.Chart.getFunctionReference(currentSeries.labelFunction);
-                                                                               this._seriesFunctions.push(clonedSeries.labelFunction);
-                                                                       }
-                                                               }
-
-                                                               else if(prop == "dataTipFunction")
-                                                               {
-                                                                       if(currentSeries.dataTipFunction !== null)
-                                                                       {
-                                                                               clonedSeries.dataTipFunction = YAHOO.widget.Chart.getFunctionReference(currentSeries.dataTipFunction);
-                                                                               this._seriesFunctions.push(clonedSeries.dataTipFunction);
-                                                                       }       
-                                                               }
-                                                               
-                                                               else if(prop == "legendLabelFunction")
-                                                               {
-                                                                       if(currentSeries.legendLabelFunction !== null)
-                                                                       {
-                                                                               clonedSeries.legendLabelFunction = YAHOO.widget.Chart.getFunctionReference(currentSeries.legendLabelFunction);
-                                                                               this._seriesFunctions.push(clonedSeries.legendLabelFunction); 
-                                                                       }       
-                                                               }                                                               
-
-                                                               else
-                                                               {
-                                                                       clonedSeries[prop] = currentSeries[prop];
-                                                               }
-                                                       }
-                                               }
-                                               dataProvider.push(clonedSeries);
-                                       }
-                               }
-
-                               if(seriesCount > 0)
-                               {
-                                       for(i = 0; i < seriesCount; i++)
-                                       {
-                                               currentSeries = dataProvider[i];
-                                               if(!currentSeries.type)
-                                               {
-                                                       currentSeries.type = this._type;
-                                               }
-                                               currentSeries.dataProvider = response.results;
-                                       }
-                               }
-                               else
-                               {
-                                       var series = {type: this._type, dataProvider: response.results};
-                                       dataProvider.push(series);
-                               }
-                               try
-                               {
-                                       if(this._swf.setDataProvider) this._swf.setDataProvider(dataProvider);
-                               }
-                               catch(e)
-                               {
-                                       this._swf.setDataProvider(dataProvider);
-                               }
-                       }
-               }
-       },
-
-       /**
-        * Storage for the request attribute.
-        * 
-        * @property _request
-        * @private
-        */
-       _request: "",
-       
-       /**
-        * Getter for the request attribute.
-        *
-        * @method _getRequest
-        * @private
-        */
-       _getRequest: function()
-       {
-               return this._request;
-       },
-       
-       /**
-        * Setter for the request attribute.
-        *
-        * @method _setRequest
-        * @private
-        */
-       _setRequest: function(value)
-       {
-               this._request = value;
-               this.refreshData();
-       },
-
-       /**
-        * Storage for the dataSource attribute.
-        * 
-        * @property _dataSource
-        * @private
-        */
-       _dataSource: null,
-       
-       /**
-        * Getter for the dataSource attribute.
-        *
-        * @method _getDataSource
-        * @private
-        */
-       _getDataSource: function()
-       {
-               return this._dataSource;
-       },
-
-       /**
-        * Setter for the dataSource attribute.
-        *
-        * @method _setDataSource
-        * @private
-        */
-       _setDataSource: function(value)
-       {       
-               this._dataSource = value;
-               this.refreshData();
-       },
-       
-       /**
-        * Storage for the series attribute.
-        * 
-        * @property _seriesDefs
-        * @private
-        */
-       _seriesDefs: null,
-       
-       /**
-        * Getter for the series attribute.
-        *
-        * @method _getSeriesDefs
-        * @private
-        */
-       _getSeriesDefs: function()
-       {
-               return this._seriesDefs;
-       },
-       
-       /**
-        * Setter for the series attribute.
-        *
-        * @method _setSeriesDefs
-        * @private
-        */
-       _setSeriesDefs: function(value)
-       {
-               this._seriesDefs = value;
-               this.refreshData();
-       },
-
-       /**
-        * Getter for the categoryNames attribute.
-        *
-        * @method _getCategoryNames
-        * @private
-        */
-       _getCategoryNames: function()
-       {
-               return this._swf.getCategoryNames();
-       },
-
-       /**
-        * Setter for the categoryNames attribute.
-        *
-        * @method _setCategoryNames
-        * @private
-        */
-       _setCategoryNames: function(value)
-       {
-               this._swf.setCategoryNames(value);
-       },
-       
-       /**
-        * Setter for the dataTipFunction attribute.
-        *
-        * @method _setDataTipFunction
-        * @private
-        */
-       _setDataTipFunction: function(value)
-       {
-               if(this._dataTipFunction)
-               {
-                       YAHOO.widget.Chart.removeProxyFunction(this._dataTipFunction);
-               }
-               
-               if(value)
-               {
-                       this._dataTipFunction = value = YAHOO.widget.Chart.getFunctionReference(value);
-               }
-               this._swf.setDataTipFunction(value);
-       },
-       
-       /**
-        * Setter for the legendLabelFunction attribute.
-        *
-        * @method _setLegendLabelFunction
-        * @private
-        */
-       _setLegendLabelFunction: function(value)
-       {
-               if(this._legendLabelFunction)
-               {
-                       YAHOO.widget.Chart.removeProxyFunction(this._legendLabelFunction);
-               }
-               
-               if(value)
-               {
-                       this._legendLabelFunction = value = YAHOO.widget.Chart.getFunctionReference(value);
-               }
-               this._swf.setLegendLabelFunction(value);
-       },
-
-       /**
-        * Getter for the polling attribute.
-        *
-        * @method _getPolling
-        * @private
-        */
-       _getPolling: function()
-       {
-               return this._pollingInterval;
-       },
-
-       /**
-        * Setter for the polling attribute.
-        *
-        * @method _setPolling
-        * @private
-        */
-       _setPolling: function(value)
-       {
-               this._pollingInterval = value;
-               this.refreshData();
-       },
-
-       /**
-        * The javascript wrapper for the swf object
-        *
-        * @property _swfEmbed
-        * @type swf
-        * @private
-        */
-       _swfEmbed: null,
-       
-       /**
-        * The URL of the SWF file.
-        * @property _swfURL
-        * @type String
-        * @private
-        */
-       _swfURL: null,
-
-       /**
-        * The ID of the containing DIV.
-        * @property _containerID
-        * @type String
-        * @private
-        */
-       _containerID: null,
-
-       /**
-        * A reference to the embedded SWF file.
-        * @property _swf
-        * @private
-        */
-       _swf: null,
-
-       /**
-        * The id of this instance.
-        * @property _id
-        * @type String
-        * @private
-        */
-       _id: null,
-
-       /**
-        * Indicates whether the SWF has been initialized and is ready
-        * to communicate with JavaScript
-        * @property _initialized
-        * @type Boolean
-        * @private
-        */
-       _initialized: false,
-       
-       /**
-        * The initializing attributes are stored here until the SWF is ready.
-        * @property _attributes
-        * @type Object
-        * @private
-        */
-       _attributes: null, //the intializing attributes
-       
-       set: function(name, value)
-       {
-               //save all the attributes in case the swf reloads
-               //so that we can pass them in again
-               this._attributes[name] = value;
-               YAHOO.widget.Chart.superclass.set.call(this, name, value);
-       },
-       
-       /**
-        * Getter for swfURL attribute.
-        *
-        * @method _getSWFURL
-        * @private
-        */
-       _getSWFURL: function()
-       {
-               return this._swfURL;
-       },
-       
-       /**
-        * Getter for altText attribute.
-        *
-        * @method _getAltText
-        * @private
-        */
-       _getAltText: function()
-       {
-               return this._swf.getAltText();
-       },
-
-       /**
-        * Setter for altText attribute.
-        *
-        * @method _setAltText
-        * @private
-        */
-       _setAltText: function(value)
-       {
-               this._swf.setAltText(value);
-       }
-});
-
-/**
- * The number of proxy functions that have been created.
- * @static
- * @private
- */
-YAHOO.widget.Chart.proxyFunctionCount = 0;
-
-/**
- * Creates a globally accessible function that wraps a function reference.
- * Returns the proxy function's name as a string for use by the SWF through
- * ExternalInterface.
- *
- * @method YAHOO.widget.Chart.createProxyFunction
- * @static
- * @private
- */
-YAHOO.widget.Chart.createProxyFunction = function(func, scope)
-{
-       var scope = scope || null;
-       var index = YAHOO.widget.Chart.proxyFunctionCount;
-       YAHOO.widget.Chart["proxyFunction" + index] = function()
-       {
-               return func.apply(scope, arguments);
-       };
-       YAHOO.widget.Chart.proxyFunctionCount++;
-       return "YAHOO.widget.Chart.proxyFunction" + index.toString();
-};
-
-/**
- * Uses YAHOO.widget.Chart.createProxyFunction to return string
- * reference to a function. 
- *
- * @method YAHOO.widget.Chart.getFunctionReference
- * @static
- * @private
- */
-YAHOO.widget.Chart.getFunctionReference = function(value)
-{
-       if(typeof value == "function")
-       {
-               value = YAHOO.widget.Chart.createProxyFunction(value);
-       }
-       else if(value.func && typeof value.func == "function")
-       {
-               var args = [value.func];
-               if(value.scope && typeof value.scope == "object")
-               {
-                       args.push(value.scope);
-               }
-               value = YAHOO.widget.Chart.createProxyFunction.apply(this, args);
-       }
-       return value;   
-}
-
-/**
- * Removes a function created with createProxyFunction()
- * 
- * @method YAHOO.widget.Chart.removeProxyFunction
- * @static
- * @private
- */
-YAHOO.widget.Chart.removeProxyFunction = function(funcName)
-{
-       //quick error check
-       if(!funcName || funcName.indexOf("YAHOO.widget.Chart.proxyFunction") < 0)
-       {
-               return;
-       }
-       
-       funcName = funcName.substr(26);
-       YAHOO.widget.Chart[funcName] = null;
-};
-
-/**
- * Storage for the dataTipFunction attribute.
- *
- * @property Chart.SWFURL
- * @private
- * @static
- * @final
- * @default "assets/charts.swf"
- */
-YAHOO.widget.Chart.SWFURL = "assets/charts.swf";
-/**
- * PieChart class for the YUI Charts widget.
- *
- * @namespace YAHOO.widget
- * @class PieChart
- * @uses YAHOO.widget.Chart
- * @constructor
- * @param containerId {HTMLElement} Container element for the Flash Player instance.
- * @param dataSource {YAHOO.util.DataSource} DataSource instance.
- * @param attributes {object} (optional) Object literal of configuration values.
- */
-YAHOO.widget.PieChart = function(containerId, dataSource, attributes)
-{
-       YAHOO.widget.PieChart.superclass.constructor.call(this, "pie", containerId, dataSource, attributes);
-};
-
-YAHOO.lang.extend(YAHOO.widget.PieChart, YAHOO.widget.Chart,
-{
-       /**
-        * Initializes the attributes.
-        *
-        * @method _initAttributes
-        * @private
-        */
-       _initAttributes: function(attributes)
-       {       
-               YAHOO.widget.PieChart.superclass._initAttributes.call(this, attributes);
-               
-               /**
-                * @attribute dataField
-                * @description The field in each item that corresponds to the data value.
-                * @type String
-                */
-               this.setAttributeConfig("dataField",
-               {
-                       validator: YAHOO.lang.isString,
-                       method: this._setDataField,
-                       getter: this._getDataField
-               });
-   
-               /**
-                * @attribute categoryField
-                * @description The field in each item that corresponds to the category value.
-                * @type String
-                */
-               this.setAttributeConfig("categoryField",
-               {
-                       validator: YAHOO.lang.isString,
-                       method: this._setCategoryField,
-                       getter: this._getCategoryField
-               });
-       },
-
-       /**
-        * Getter for the dataField attribute.
-        *
-        * @method _getDataField
-        * @private
-        */
-       _getDataField: function()
-       {
-               return this._swf.getDataField();
-       },
-
-       /**
-        * Setter for the dataField attribute.
-        *
-        * @method _setDataField
-        * @private
-        */
-       _setDataField: function(value)
-       {
-               this._swf.setDataField(value);
-       },
-
-       /**
-        * Getter for the categoryField attribute.
-        *
-        * @method _getCategoryField
-        * @private
-        */
-       _getCategoryField: function()
-       {
-               return this._swf.getCategoryField();
-       },
-
-       /**
-        * Setter for the categoryField attribute.
-        *
-        * @method _setCategoryField
-        * @private
-        */
-       _setCategoryField: function(value)
-       {
-               this._swf.setCategoryField(value);
-       }
-});
-/**
- * CartesianChart class for the YUI Charts widget.
- *
- * @namespace YAHOO.widget
- * @class CartesianChart
- * @uses YAHOO.widget.Chart
- * @constructor
- * @param type {String} The char type. May be "line", "column", or "bar"
- * @param containerId {HTMLElement} Container element for the Flash Player instance.
- * @param dataSource {YAHOO.util.DataSource} DataSource instance.
- * @param attributes {object} (optional) Object literal of configuration values.
- */
- YAHOO.widget.CartesianChart = function(type, containerId, dataSource, attributes)
-{
-       YAHOO.widget.CartesianChart.superclass.constructor.call(this, type, containerId, dataSource, attributes);
-};
-
-YAHOO.lang.extend(YAHOO.widget.CartesianChart, YAHOO.widget.Chart,
-{
-       /**
-        * Stores a reference to the xAxis labelFunction created by
-        * YAHOO.widget.Chart.createProxyFunction()
-        * @property _xAxisLabelFunctions
-        * @type String
-        * @private
-        */
-       _xAxisLabelFunctions: [],
-       
-       /**
-        * Stores a reference to the yAxis labelFunctions created by
-        * YAHOO.widget.Chart.createProxyFunction()
-        * @property _yAxisLabelFunctions
-        * @type Array
-        * @private
-        */
-       _yAxisLabelFunctions: [],
-       
-       destroy: function()
-       {
-               //remove proxy functions
-               this._removeAxisFunctions(this._xAxisLabelFunctions);
-               this._removeAxisFunctions(this._yAxisLabelFunctions);
-               
-               //call last
-               YAHOO.widget.CartesianChart.superclass.destroy.call(this);
-       },
-       
-       /**
-        * Initializes the attributes.
-        *
-        * @method _initAttributes
-        * @private
-        */
-       _initAttributes: function(attributes)
-       {       
-               YAHOO.widget.CartesianChart.superclass._initAttributes.call(this, attributes);
-               
-               /**
-                * @attribute xField
-                * @description The field in each item that corresponds to a value on the x axis.
-                * @type String
-                */
-               this.setAttributeConfig("xField",
-               {
-                       validator: YAHOO.lang.isString,
-                       method: this._setXField,
-                       getter: this._getXField
-               });
-
-               /**
-                * @attribute yField
-                * @description The field in each item that corresponds to a value on the x axis.
-                * @type String
-                */
-               this.setAttributeConfig("yField",
-               {
-                       validator: YAHOO.lang.isString,
-                       method: this._setYField,
-                       getter: this._getYField
-               });
-
-               /**
-                * @attribute xAxis
-                * @description A custom configuration for the horizontal x axis.
-                * @type Axis
-                */
-               this.setAttributeConfig("xAxis",
-               {
-                       method: this._setXAxis
-               });
-               
-               /**
-                * @attribute xAxes
-                * @description Custom configurations for the horizontal x axes.
-                * @type Array
-                */             
-               this.setAttributeConfig("xAxes",
-               {
-                       method: this._setXAxes
-               });     
-
-               /**
-                * @attribute yAxis
-                * @description A custom configuration for the vertical y axis.
-                * @type Axis
-                */
-               this.setAttributeConfig("yAxis",
-               {
-                       method: this._setYAxis
-               });
-               
-               /**
-                * @attribute yAxes
-                * @description Custom configurations for the vertical y axes.
-                * @type Array
-                */             
-               this.setAttributeConfig("yAxes",
-               {
-                       method: this._setYAxes
-               });     
-               
-               /**
-                * @attribute constrainViewport
-                * @description Determines whether the viewport is constrained to prevent series data from overflow.
-                * @type Boolean
-                */
-               this.setAttributeConfig("constrainViewport",
-               {
-                       method: this._setConstrainViewport
-               });     
-       },
-
-       /**
-        * Getter for the xField attribute.
-        *
-        * @method _getXField
-        * @private
-        */
-       _getXField: function()
-       {
-               return this._swf.getHorizontalField();
-       },
-
-       /**
-        * Setter for the xField attribute.
-        *
-        * @method _setXField
-        * @private
-        */
-       _setXField: function(value)
-       {
-               this._swf.setHorizontalField(value);
-       },
-
-       /**
-        * Getter for the yField attribute.
-        *
-        * @method _getYField
-        * @private
-        */
-       _getYField: function()
-       {
-               return this._swf.getVerticalField();
-       },
-
-       /**
-        * Setter for the yField attribute.
-        *
-        * @method _setYField
-        * @private
-        */
-       _setYField: function(value)
-       {
-               this._swf.setVerticalField(value);
-       },
-       
-       /**
-        * Receives an axis object, creates a proxy function for 
-        * the labelFunction and returns the updated object. 
-        *
-        * @method _getClonedAxis
-        * @private
-        */
-       _getClonedAxis: function(value)
-       {
-               var clonedAxis = {};
-               for(var prop in value)
-               {
-                       if(prop == "labelFunction")
-                       {
-                               if(value.labelFunction && value.labelFunction !== null)
-                               {
-                                       clonedAxis.labelFunction = YAHOO.widget.Chart.getFunctionReference(value.labelFunction);
-                               }
-                       }
-                       else
-                       {
-                               clonedAxis[prop] = value[prop];
-                       }
-               }
-               return clonedAxis;
-       },
-       
-       /**
-        * Removes axis functions contained in an array
-        * 
-        * @method _removeAxisFunctions
-        * @private
-        */
-       _removeAxisFunctions: function(axisFunctions)
-       {
-               if(axisFunctions && axisFunctions.length > 0)
-               {
-                       var len = axisFunctions.length;
-                       for(var i = 0; i < len; i++)
-                       {
-                               if(axisFunctions[i] !== null)
-                               {
-                                       YAHOO.widget.Chart.removeProxyFunction(axisFunctions[i]);
-                               }
-                       }
-                       axisFunctions = [];
-               }
-       },      
-       
-       /**
-        * Setter for the xAxis attribute.
-        *
-        * @method _setXAxis
-        * @private
-        */
-       _setXAxis: function(value)
-       {
-               if(value.position != "bottom" && value.position != "top") value.position = "bottom";
-               this._removeAxisFunctions(this._xAxisLabelFunctions);
-               value = this._getClonedAxis(value);
-               this._xAxisLabelFunctions.push(value.labelFunction);
-               this._swf.setHorizontalAxis(value);
-       },
-       
-       /**
-        * Setter for the xAxes attribute
-        *
-        * @method _setXAxes
-        * @private
-        */
-       _setXAxes: function(value)
-       {
-               this._removeAxisFunctions(this._xAxisLabelFunctions);
-               var len = value.length;
-               for(var i = 0; i < len; i++)
-               {
-                       if(value[i].position == "left") value[i].position = "bottom";
-                       value[i] = this._getClonedAxis(value[i]);
-                       if(value[i].labelFunction) this._xAxisLabelFunctions.push(value[i].labelFunction);
-                       this._swf.setHorizontalAxis(value[i]);
-               }
-       },
-
-       /**
-        * Setter for the yAxis attribute.
-        *
-        * @method _setYAxis
-        * @private
-        */
-       _setYAxis: function(value)
-       {
-               this._removeAxisFunctions(this._yAxisLabelFunctions);
-               value = this._getClonedAxis(value);
-               this._yAxisLabelFunctions.push(value.labelFunction);            
-               this._swf.setVerticalAxis(value);
-       },
-       
-       /**
-        * Setter for the yAxes attribute.
-        *
-        * @method _setYAxes
-        * @private
-        */     
-       _setYAxes: function(value)
-       {
-               this._removeAxisFunctions(this._yAxisLabelFunctions);
-               var len = value.length;
-               for(var i = 0; i < len; i++)
-               {
-                       value[i] = this._getClonedAxis(value[i]);
-                       if(value[i].labelFunction) this._yAxisLabelFunctions.push(value[i].labelFunction);
-                       this._swf.setVerticalAxis(value[i]);
-               }               
-       },
-       
-       /**
-        * Setter for the constrainViewport attribute
-        *
-        * @method _setConstrainViewport
-        * @private
-        */
-       _setConstrainViewport: function(value)
-       {
-               this._swf.setConstrainViewport(value);
-       },
-       
-       /**
-        * Sets the style object for a single series based on its index
-        * 
-        * @method setSeriesStylesByIndex
-        * @param index {Number} The position within the series definition to apply the style
-        * @param style {object} Style object to be applied to the selected series
-        */
-       setSeriesStylesByIndex:function(index, style)
-       {
-               style = YAHOO.lang.JSON.stringify(style);
-               if(this._swf && this._swf.setSeriesStylesByIndex) this._swf.setSeriesStylesByIndex(index, style);
-       }
-});
-/**
- * LineChart class for the YUI Charts widget.
- *
- * @namespace YAHOO.widget
- * @class LineChart
- * @uses YAHOO.widget.CartesianChart
- * @constructor
- * @param containerId {HTMLElement} Container element for the Flash Player instance.
- * @param dataSource {YAHOO.util.DataSource} DataSource instance.
- * @param attributes {object} (optional) Object literal of configuration values.
- */
-YAHOO.widget.LineChart = function(containerId, dataSource, attributes)
-{
-       YAHOO.widget.LineChart.superclass.constructor.call(this, "line", containerId, dataSource, attributes);
-};
-
-YAHOO.lang.extend(YAHOO.widget.LineChart, YAHOO.widget.CartesianChart);
-
-/**
- * ColumnChart class for the YUI Charts widget.
- *
- * @namespace YAHOO.widget
- * @class ColumnChart
- * @uses YAHOO.widget.CartesianChart
- * @constructor
- * @param containerId {HTMLElement} Container element for the Flash Player instance.
- * @param dataSource {YAHOO.util.DataSource} DataSource instance.
- * @param attributes {object} (optional) Object literal of configuration values.
- */
-YAHOO.widget.ColumnChart = function(containerId, dataSource, attributes)
-{
-       YAHOO.widget.ColumnChart.superclass.constructor.call(this, "column", containerId, dataSource, attributes);
-};
-
-YAHOO.lang.extend(YAHOO.widget.ColumnChart, YAHOO.widget.CartesianChart);
-
-/**
- * BarChart class for the YUI Charts widget.
- *
- * @namespace YAHOO.widget
- * @class BarChart
- * @uses YAHOO.widget.CartesianChart
- * @constructor
- * @param containerId {HTMLElement} Container element for the Flash Player instance.
- * @param dataSource {YAHOO.util.DataSource} DataSource instance.
- * @param attributes {object} (optional) Object literal of configuration values.
- */
-YAHOO.widget.BarChart = function(containerId, dataSource, attributes)
-{
-       YAHOO.widget.BarChart.superclass.constructor.call(this, "bar", containerId, dataSource, attributes);
-};
-
-YAHOO.lang.extend(YAHOO.widget.BarChart, YAHOO.widget.CartesianChart);
-
-/**
- * StackedColumnChart class for the YUI Charts widget.
- *
- * @namespace YAHOO.widget
- * @class StackedColumnChart
- * @uses YAHOO.widget.CartesianChart
- * @constructor
- * @param containerId {HTMLElement} Container element for the Flash Player instance.
- * @param dataSource {YAHOO.util.DataSource} DataSource instance.
- * @param attributes {object} (optional) Object literal of configuration values.
- */
-YAHOO.widget.StackedColumnChart = function(containerId, dataSource, attributes)
-{
-       YAHOO.widget.StackedColumnChart.superclass.constructor.call(this, "stackcolumn", containerId, dataSource, attributes);
-};
-
-YAHOO.lang.extend(YAHOO.widget.StackedColumnChart, YAHOO.widget.CartesianChart);
-
-/**
- * StackedBarChart class for the YUI Charts widget.
- *
- * @namespace YAHOO.widget
- * @class StackedBarChart
- * @uses YAHOO.widget.CartesianChart
- * @constructor
- * @param containerId {HTMLElement} Container element for the Flash Player instance.
- * @param dataSource {YAHOO.util.DataSource} DataSource instance.
- * @param attributes {object} (optional) Object literal of configuration values.
- */
-YAHOO.widget.StackedBarChart = function(containerId, dataSource, attributes)
-{
-       YAHOO.widget.StackedBarChart.superclass.constructor.call(this, "stackbar", containerId, dataSource, attributes);
-};
-
-YAHOO.lang.extend(YAHOO.widget.StackedBarChart, YAHOO.widget.CartesianChart);
-/**
- * Defines a CartesianChart's vertical or horizontal axis.
- *
- * @namespace YAHOO.widget
- * @class Axis
- * @constructor
- */
-YAHOO.widget.Axis = function()
-{
-};
-
-YAHOO.widget.Axis.prototype = 
-{
-       /**
-        * The type of axis.
-        *
-        * @property type
-        * @type String
-        */
-       type: null,
-       
-       /**
-        * If true, the items on the axis will be drawn in opposite direction.
-        *
-        * @property reverse
-        * @type Boolean
-        */
-       reverse: false,
-       
-       /**
-        * A string reference to the globally-accessible function that may be called to
-        * determine each of the label values for this axis. Also accepts function references.
-        *
-        * @property labelFunction
-        * @type String
-        */
-       labelFunction: null,
-       
-       /**
-        * The space, in pixels, between labels on an axis.
-        *
-        * @property labelSpacing
-        * @type Number
-        */
-       labelSpacing: 2,
-       
-       /**
-        * The text that will appear next to the axis to indicate information about the data that it displays.
-        *
-        * @property title
-        * @type String
-        */
-       title: null 
-};
-/**
- * A type of axis whose units are measured in numeric values.
- *
- * @namespace YAHOO.widget
- * @class NumericAxis
- * @extends YAHOO.widget.Axis
- * @constructor
- */
-YAHOO.widget.NumericAxis = function()
-{
-       YAHOO.widget.NumericAxis.superclass.constructor.call(this);
-};
-
-YAHOO.lang.extend(YAHOO.widget.NumericAxis, YAHOO.widget.Axis,
-{
-       type: "numeric",
-       
-       /**
-        * The minimum value drawn by the axis. If not set explicitly, the axis minimum
-        * will be calculated automatically.
-        *
-        * @property minimum
-        * @type Number
-        */
-       minimum: NaN,
-       
-       /**
-        * The maximum value drawn by the axis. If not set explicitly, the axis maximum
-        * will be calculated automatically.
-        *
-        * @property maximum
-        * @type Number
-        */
-       maximum: NaN,
-       
-       /**
-        * The spacing between major intervals on this axis.
-        *
-        * @property majorUnit
-        * @type Number
-        */
-       majorUnit: NaN,
-
-       /**
-        * The spacing between minor intervals on this axis.
-        *
-        * @property minorUnit
-        * @type Number
-        */
-       minorUnit: NaN,
-       
-       /**
-        * If true, the labels, ticks, gridlines, and other objects will snap to
-        * the nearest major or minor unit. If false, their position will be based
-        * on the minimum value.
-        *
-        * @property snapToUnits
-        * @type Boolean
-        */
-       snapToUnits: true,
-       
-       /**
-        * Series that are stackable will only stack when this value is set to true.
-        *
-        * @property stackingEnabled
-        * @type Boolean
-        */
-       stackingEnabled: false,
-
-       /**
-        * If true, and the bounds are calculated automatically, either the minimum or
-        * maximum will be set to zero.
-        *
-        * @property alwaysShowZero
-        * @type Boolean
-        */
-       alwaysShowZero: true,
-
-       /**
-        * The scaling algorithm to use on this axis. May be "linear" or "logarithmic".
-        *
-        * @property scale
-        * @type String
-        */
-       scale: "linear",
-       
-       /**
-        * Indicates whether to round the major unit.
-        * 
-        * @property roundMajorUnit
-        * @type Boolean
-        */
-       roundMajorUnit: true, 
-       
-       /**
-        * Indicates whether to factor in the size of the labels when calculating a major unit.
-        *
-        * @property calculateByLabelSize
-        * @type Boolean
-        */
-       calculateByLabelSize: true,
-       
-       /**
-        * Indicates the position of the axis relative to the chart
-        *
-        * @property position
-        * @type String
-        */
-       position:"left",
-       
-       /**
-        * Indicates whether to extend maximum beyond data's maximum to the nearest 
-        * majorUnit.
-        *
-        * @property adjustMaximumByMajorUnit
-        * @type Boolean
-        */
-       adjustMaximumByMajorUnit:true,
-       
-       /**
-        * Indicates whether to extend the minimum beyond data's minimum to the nearest
-        * majorUnit.
-        *
-        * @property adjustMinimumByMajorUnit
-        * @type Boolean
-        */
-       adjustMinimumByMajorUnit:true
-});
-/**
- * A type of axis whose units are measured in time-based values.
- *
- * @namespace YAHOO.widget
- * @class TimeAxis
- * @constructor
- */
-YAHOO.widget.TimeAxis = function()
-{
-       YAHOO.widget.TimeAxis.superclass.constructor.call(this);
-};
-
-YAHOO.lang.extend(YAHOO.widget.TimeAxis, YAHOO.widget.Axis,
-{
-       type: "time",
-       
-       /**
-        * The minimum value drawn by the axis. If not set explicitly, the axis minimum
-        * will be calculated automatically.
-        *
-        * @property minimum
-        * @type Date
-        */
-       minimum: null,
-
-       /**
-        * The maximum value drawn by the axis. If not set explicitly, the axis maximum
-        * will be calculated automatically.
-        *
-        * @property maximum
-        * @type Number
-        */
-       maximum: null,
-       
-       /**
-        * The spacing between major intervals on this axis.
-        *
-        * @property majorUnit
-        * @type Number
-        */
-       majorUnit: NaN,
-       
-       /**
-        * The time unit used by the majorUnit.
-        *
-        * @property majorTimeUnit
-        * @type String
-        */
-       majorTimeUnit: null,
-       
-       /**
-        * The spacing between minor intervals on this axis.
-        *
-        * @property majorUnit
-        * @type Number
-        */
-       minorUnit: NaN,
-       
-       /**
-        * The time unit used by the minorUnit.
-        *
-        * @property majorTimeUnit
-        * @type String
-        */
-       minorTimeUnit: null,
-
-       /**
-        * If true, the labels, ticks, gridlines, and other objects will snap to
-        * the nearest major or minor unit. If false, their position will be based
-        * on the minimum value.
-        *
-        * @property snapToUnits
-        * @type Boolean
-        */
-       snapToUnits: true,
-
-       /**
-        * Series that are stackable will only stack when this value is set to true.
-        *
-        * @property stackingEnabled
-        * @type Boolean
-        */
-       stackingEnabled: false,
-
-       /**
-        * Indicates whether to factor in the size of the labels when calculating a major unit.
-        *
-        * @property calculateByLabelSize
-        * @type Boolean
-        */
-       calculateByLabelSize: true      
-});
-/**
- * A type of axis that displays items in categories.
- *
- * @namespace YAHOO.widget
- * @class CategoryAxis
- * @constructor
- */
-YAHOO.widget.CategoryAxis = function()
-{
-       YAHOO.widget.CategoryAxis.superclass.constructor.call(this);
-};
-
-YAHOO.lang.extend(YAHOO.widget.CategoryAxis, YAHOO.widget.Axis,
-{
-       type: "category",
-       
-       /**
-        * A list of category names to display along this axis.
-        *
-        * @property categoryNames
-        * @type Array
-        */
-       categoryNames: null,
-       
-       /**
-        * Indicates whether or not to calculate the number of categories (ticks and labels)
-        * when there is not enough room to display all labels on the axis. If set to true, the axis 
-        * will determine the number of categories to plot. If not, all categories will be plotted.
-        *
-        * @property calculateCategoryCount
-        * @type Boolean
-        */
-       calculateCategoryCount: false 
-});
- /**
- * Functionality common to most series. Generally, a <code>Series</code> 
- * object shouldn't be instantiated directly. Instead, a subclass with a 
- * concrete implementation should be used.
- *
- * @namespace YAHOO.widget
- * @class Series
- * @constructor
- */
-YAHOO.widget.Series = function() {};
-
-YAHOO.widget.Series.prototype = 
-{
-       /**
-        * The type of series.
-        *
-        * @property type
-        * @type String
-        */
-       type: null,
-       
-       /**
-        * The human-readable name of the series.
-        *
-        * @property displayName
-        * @type String
-        */
-       displayName: null
-};
-
-/**
- * Functionality common to most series appearing in cartesian charts.
- * Generally, a <code>CartesianSeries</code> object shouldn't be
- * instantiated directly. Instead, a subclass with a concrete implementation
- * should be used.
- *
- * @namespace YAHOO.widget
- * @class CartesianSeries
- * @uses YAHOO.widget.Series
- * @constructor
- */
-YAHOO.widget.CartesianSeries = function() 
-{
-       YAHOO.widget.CartesianSeries.superclass.constructor.call(this);
-};
-
-YAHOO.lang.extend(YAHOO.widget.CartesianSeries, YAHOO.widget.Series,
-{
-       /**
-        * The field used to access the x-axis value from the items from the data source.
-        *
-        * @property xField
-        * @type String
-        */
-       xField: null,
-       
-       /**
-        * The field used to access the y-axis value from the items from the data source.
-        *
-        * @property yField
-        * @type String
-        */
-       yField: null,
-       
-       /**
-        * Indicates which axis the series will bind to
-        *
-        * @property axis
-        * @type String
-        */
-       axis: "primary",
-       
-       /**
-        * When a Legend is present, indicates whether the series will show in the legend.
-        * 
-        * @property showInLegend
-        * @type Boolean
-        */
-       showInLegend: true
-});
-
-/**
- * ColumnSeries class for the YUI Charts widget.
- *
- * @namespace YAHOO.widget
- * @class ColumnSeries
- * @uses YAHOO.widget.CartesianSeries
- * @constructor
- */
-YAHOO.widget.ColumnSeries = function() 
-{
-       YAHOO.widget.ColumnSeries.superclass.constructor.call(this);
-};
-
-YAHOO.lang.extend(YAHOO.widget.ColumnSeries, YAHOO.widget.CartesianSeries,
-{
-       type: "column"
-});
-
-/**
- * LineSeries class for the YUI Charts widget.
- *
- * @namespace YAHOO.widget
- * @class LineSeries
- * @uses YAHOO.widget.CartesianSeries
- * @constructor
- */
-YAHOO.widget.LineSeries = function() 
-{
-       YAHOO.widget.LineSeries.superclass.constructor.call(this);
-};
-
-YAHOO.lang.extend(YAHOO.widget.LineSeries, YAHOO.widget.CartesianSeries,
-{
-       type: "line"
-});
-
-
-/**
- * BarSeries class for the YUI Charts widget.
- *
- * @namespace YAHOO.widget
- * @class BarSeries
- * @uses YAHOO.widget.CartesianSeries
- * @constructor
- */
-YAHOO.widget.BarSeries = function() 
-{
-       YAHOO.widget.BarSeries.superclass.constructor.call(this);
-};
-
-YAHOO.lang.extend(YAHOO.widget.BarSeries, YAHOO.widget.CartesianSeries,
-{
-       type: "bar"
-});
-
-
-/**
- * PieSeries class for the YUI Charts widget.
- *
- * @namespace YAHOO.widget
- * @class PieSeries
- * @uses YAHOO.widget.Series
- * @constructor
- */
-YAHOO.widget.PieSeries = function() 
-{
-       YAHOO.widget.PieSeries.superclass.constructor.call(this);
-};
-
-YAHOO.lang.extend(YAHOO.widget.PieSeries, YAHOO.widget.Series,
-{
-       type: "pie",
-       
-       /**
-        * The field used to access the data value from the items from the data source.
-        *
-        * @property dataField
-        * @type String
-        */
-       dataField: null,
-       
-       /**
-        * The field used to access the category value from the items from the data source.
-        *
-        * @property categoryField
-        * @type String
-        */
-       categoryField: null,
-
-       /**
-        * A string reference to the globally-accessible function that may be called to
-        * determine each of the label values for this series. Also accepts function references.
-        *
-        * @property labelFunction
-        * @type String
-        */
-       labelFunction: null
-});
-
-/**
- * StackedBarSeries class for the YUI Charts widget.
- *
- * @namespace YAHOO.widget
- * @class StackedBarSeries
- * @uses YAHOO.widget.CartesianSeries
- * @constructor
- */
-YAHOO.widget.StackedBarSeries = function() 
-{
-       YAHOO.widget.StackedBarSeries.superclass.constructor.call(this);
-};
-
-YAHOO.lang.extend(YAHOO.widget.StackedBarSeries, YAHOO.widget.CartesianSeries,
-{
-       type: "stackbar"
-});
-
-/**
- * StackedColumnSeries class for the YUI Charts widget.
- *
- * @namespace YAHOO.widget
- * @class StackedColumnSeries
- * @uses YAHOO.widget.CartesianSeries
- * @constructor
- */
-YAHOO.widget.StackedColumnSeries = function() 
-{
-       YAHOO.widget.StackedColumnSeries.superclass.constructor.call(this);
-};
-
-YAHOO.lang.extend(YAHOO.widget.StackedColumnSeries, YAHOO.widget.CartesianSeries,
-{
-       type: "stackcolumn"
-});
-YAHOO.register("charts", YAHOO.widget.Chart, {version: "2.8.0r4", build: "2449"});
diff --git a/koha-tmpl/intranet-tmpl/prog/en/lib/yui/charts/charts-min.js b/koha-tmpl/intranet-tmpl/prog/en/lib/yui/charts/charts-min.js
deleted file mode 100644 (file)
index fcf6144..0000000
+++ /dev/null
@@ -1,9 +0,0 @@
-/*
-Copyright (c) 2009, Yahoo! Inc. All rights reserved.
-Code licensed under the BSD License:
-http://developer.yahoo.net/yui/license.txt
-version: 2.8.0r4
-*/
-YAHOO.widget.Chart=function(I,F,A,J){this._type=I;this._dataSource=A;var B={align:"",allowNetworking:"",allowScriptAccess:"",base:"",bgcolor:"",menu:"",name:"",quality:"",salign:"",scale:"",tabindex:"",wmode:""};var D={fixedAttributes:{allowScriptAccess:"always"},flashVars:{allowedDomain:document.location.hostname},backgroundColor:"#ffffff",host:this,version:9.045};for(var E in J){if(B.hasOwnProperty(E)){D.fixedAttributes[E]=J[E];}else{D[E]=J[E];}}this._id=D.id=D.id||YAHOO.util.Dom.generateId(null,"yuigen");if(D.version&&D.version!=null&&D.version!=undefined&&D.version!="undefined"){var H=(/\w*.\w*/.exec(((D.version).toString()).replace(/.0./g,"."))).toString();var C=H.split(".");H=C[0]+".";switch((C[1].toString()).length){case 1:H+="00";break;case 2:H+="0";break;}H+=C[1];D.version=parseFloat(H);}this._swfURL=YAHOO.widget.Chart.SWFURL;this._containerID=F;this._attributes=D;this._swfEmbed=new YAHOO.widget.SWF(F,YAHOO.widget.Chart.SWFURL,D);this._swf=this._swfEmbed.swf;this._swfEmbed.subscribe("swfReady",this._eventHandler,this,true);try{this.createEvent("contentReady");}catch(G){}this.createEvent("itemMouseOverEvent");this.createEvent("itemMouseOutEvent");this.createEvent("itemClickEvent");this.createEvent("itemDoubleClickEvent");this.createEvent("itemDragStartEvent");this.createEvent("itemDragEvent");this.createEvent("itemDragEndEvent");};YAHOO.extend(YAHOO.widget.Chart,YAHOO.util.AttributeProvider,{_type:null,_pollingID:null,_pollingInterval:null,_dataTipFunction:null,_legendLabelFunction:null,_seriesFunctions:null,toString:function(){return"Chart "+this._id;},setStyle:function(A,B){B=YAHOO.lang.JSON.stringify(B);this._swf.setStyle(A,B);},setStyles:function(A){A=YAHOO.lang.JSON.stringify(A);this._swf.setStyles(A);},setSeriesStyles:function(B){for(var A=0;A<B.length;A++){B[A]=YAHOO.lang.JSON.stringify(B[A]);}this._swf.setSeriesStyles(B);},destroy:function(){if(this._dataSource!==null){if(this._pollingID!==null){this._dataSource.clearInterval(this._pollingID);this._pollingID=null;}}if(this._dataTipFunction){YAHOO.widget.Chart.removeProxyFunction(this._dataTipFunction);}if(this._legendLabelFunction){YAHOO.widget.Chart.removeProxyFunction(this._legendLabelFunction);}if(this._swf){var B=YAHOO.util.Dom.get(this._containerID);B.removeChild(this._swf);}var A=this._id;for(var C in this){if(YAHOO.lang.hasOwnProperty(this,C)){this[C]=null;}}},_initAttributes:function(A){this.setAttributeConfig("altText",{method:this._setAltText,getter:this._getAltText});this.setAttributeConfig("swfURL",{getter:this._getSWFURL});this.setAttributeConfig("request",{method:this._setRequest,getter:this._getRequest});this.setAttributeConfig("dataSource",{method:this._setDataSource,getter:this._getDataSource});this.setAttributeConfig("series",{method:this._setSeriesDefs,getter:this._getSeriesDefs});this.setAttributeConfig("categoryNames",{validator:YAHOO.lang.isArray,method:this._setCategoryNames,getter:this._getCategoryNames});this.setAttributeConfig("dataTipFunction",{method:this._setDataTipFunction,getter:this._getDataTipFunction});this.setAttributeConfig("legendLabelFunction",{method:this._setLegendLabelFunction,getter:this._legendLabelFunction});this.setAttributeConfig("polling",{method:this._setPolling,getter:this._getPolling});},_eventHandler:function(A){if(A.type=="swfReady"){this._swf=this._swfEmbed._swf;this._loadHandler();this.fireEvent("contentReady");}},_loadHandler:function(){if(!this._swf||!this._swf.setType){return;}this._swf.setType(this._type);if(this._attributes.style){var A=this._attributes.style;this.setStyles(A);}this._initialized=false;this._initAttributes(this._attributes);this.setAttributes(this._attributes,true);this._initialized=true;if(this._dataSource){this.set("dataSource",this._dataSource);}},refreshData:function(){if(!this._initialized){return;}if(this._dataSource!==null){if(this._pollingID!==null){this._dataSource.clearInterval(this._pollingID);this._pollingID=null;}if(this._pollingInterval>0){this._pollingID=this._dataSource.setInterval(this._pollingInterval,this._request,this._loadDataHandler,this);}this._dataSource.sendRequest(this._request,this._loadDataHandler,this);}},_loadDataHandler:function(D,C,K){if(this._swf){if(K){}else{var H;if(this._seriesFunctions){var I=this._seriesFunctions.length;for(H=0;H<I;H++){YAHOO.widget.Chart.removeProxyFunction(this._seriesFunctions[H]);}this._seriesFunctions=null;}this._seriesFunctions=[];var F=[];var E=0;var L=null;if(this._seriesDefs!==null){E=this._seriesDefs.length;for(H=0;H<E;H++){L=this._seriesDefs[H];var B={};for(var A in L){if(YAHOO.lang.hasOwnProperty(L,A)){if(A=="style"){if(L.style!==null){B.style=YAHOO.lang.JSON.stringify(L.style);}}else{if(A=="labelFunction"){if(L.labelFunction!==null){B.labelFunction=YAHOO.widget.Chart.getFunctionReference(L.labelFunction);this._seriesFunctions.push(B.labelFunction);}}else{if(A=="dataTipFunction"){if(L.dataTipFunction!==null){B.dataTipFunction=YAHOO.widget.Chart.getFunctionReference(L.dataTipFunction);this._seriesFunctions.push(B.dataTipFunction);}}else{if(A=="legendLabelFunction"){if(L.legendLabelFunction!==null){B.legendLabelFunction=YAHOO.widget.Chart.getFunctionReference(L.legendLabelFunction);this._seriesFunctions.push(B.legendLabelFunction);}}else{B[A]=L[A];}}}}}}F.push(B);}}if(E>0){for(H=0;H<E;H++){L=F[H];if(!L.type){L.type=this._type;}L.dataProvider=C.results;}}else{var G={type:this._type,dataProvider:C.results};F.push(G);}try{if(this._swf.setDataProvider){this._swf.setDataProvider(F);}}catch(J){this._swf.setDataProvider(F);}}}},_request:"",_getRequest:function(){return this._request;},_setRequest:function(A){this._request=A;this.refreshData();},_dataSource:null,_getDataSource:function(){return this._dataSource;},_setDataSource:function(A){this._dataSource=A;this.refreshData();},_seriesDefs:null,_getSeriesDefs:function(){return this._seriesDefs;},_setSeriesDefs:function(A){this._seriesDefs=A;this.refreshData();},_getCategoryNames:function(){return this._swf.getCategoryNames();},_setCategoryNames:function(A){this._swf.setCategoryNames(A);
-},_setDataTipFunction:function(A){if(this._dataTipFunction){YAHOO.widget.Chart.removeProxyFunction(this._dataTipFunction);}if(A){this._dataTipFunction=A=YAHOO.widget.Chart.getFunctionReference(A);}this._swf.setDataTipFunction(A);},_setLegendLabelFunction:function(A){if(this._legendLabelFunction){YAHOO.widget.Chart.removeProxyFunction(this._legendLabelFunction);}if(A){this._legendLabelFunction=A=YAHOO.widget.Chart.getFunctionReference(A);}this._swf.setLegendLabelFunction(A);},_getPolling:function(){return this._pollingInterval;},_setPolling:function(A){this._pollingInterval=A;this.refreshData();},_swfEmbed:null,_swfURL:null,_containerID:null,_swf:null,_id:null,_initialized:false,_attributes:null,set:function(A,B){this._attributes[A]=B;YAHOO.widget.Chart.superclass.set.call(this,A,B);},_getSWFURL:function(){return this._swfURL;},_getAltText:function(){return this._swf.getAltText();},_setAltText:function(A){this._swf.setAltText(A);}});YAHOO.widget.Chart.proxyFunctionCount=0;YAHOO.widget.Chart.createProxyFunction=function(C,B){var B=B||null;var A=YAHOO.widget.Chart.proxyFunctionCount;YAHOO.widget.Chart["proxyFunction"+A]=function(){return C.apply(B,arguments);};YAHOO.widget.Chart.proxyFunctionCount++;return"YAHOO.widget.Chart.proxyFunction"+A.toString();};YAHOO.widget.Chart.getFunctionReference=function(B){if(typeof B=="function"){B=YAHOO.widget.Chart.createProxyFunction(B);}else{if(B.func&&typeof B.func=="function"){var A=[B.func];if(B.scope&&typeof B.scope=="object"){A.push(B.scope);}B=YAHOO.widget.Chart.createProxyFunction.apply(this,A);}}return B;};YAHOO.widget.Chart.removeProxyFunction=function(A){if(!A||A.indexOf("YAHOO.widget.Chart.proxyFunction")<0){return;}A=A.substr(26);YAHOO.widget.Chart[A]=null;};YAHOO.widget.Chart.SWFURL="assets/charts.swf";YAHOO.widget.PieChart=function(A,C,B){YAHOO.widget.PieChart.superclass.constructor.call(this,"pie",A,C,B);};YAHOO.lang.extend(YAHOO.widget.PieChart,YAHOO.widget.Chart,{_initAttributes:function(A){YAHOO.widget.PieChart.superclass._initAttributes.call(this,A);this.setAttributeConfig("dataField",{validator:YAHOO.lang.isString,method:this._setDataField,getter:this._getDataField});this.setAttributeConfig("categoryField",{validator:YAHOO.lang.isString,method:this._setCategoryField,getter:this._getCategoryField});},_getDataField:function(){return this._swf.getDataField();},_setDataField:function(A){this._swf.setDataField(A);},_getCategoryField:function(){return this._swf.getCategoryField();},_setCategoryField:function(A){this._swf.setCategoryField(A);}});YAHOO.widget.CartesianChart=function(C,A,D,B){YAHOO.widget.CartesianChart.superclass.constructor.call(this,C,A,D,B);};YAHOO.lang.extend(YAHOO.widget.CartesianChart,YAHOO.widget.Chart,{_xAxisLabelFunctions:[],_yAxisLabelFunctions:[],destroy:function(){this._removeAxisFunctions(this._xAxisLabelFunctions);this._removeAxisFunctions(this._yAxisLabelFunctions);YAHOO.widget.CartesianChart.superclass.destroy.call(this);},_initAttributes:function(A){YAHOO.widget.CartesianChart.superclass._initAttributes.call(this,A);this.setAttributeConfig("xField",{validator:YAHOO.lang.isString,method:this._setXField,getter:this._getXField});this.setAttributeConfig("yField",{validator:YAHOO.lang.isString,method:this._setYField,getter:this._getYField});this.setAttributeConfig("xAxis",{method:this._setXAxis});this.setAttributeConfig("xAxes",{method:this._setXAxes});this.setAttributeConfig("yAxis",{method:this._setYAxis});this.setAttributeConfig("yAxes",{method:this._setYAxes});this.setAttributeConfig("constrainViewport",{method:this._setConstrainViewport});},_getXField:function(){return this._swf.getHorizontalField();},_setXField:function(A){this._swf.setHorizontalField(A);},_getYField:function(){return this._swf.getVerticalField();},_setYField:function(A){this._swf.setVerticalField(A);},_getClonedAxis:function(A){var B={};for(var C in A){if(C=="labelFunction"){if(A.labelFunction&&A.labelFunction!==null){B.labelFunction=YAHOO.widget.Chart.getFunctionReference(A.labelFunction);}}else{B[C]=A[C];}}return B;},_removeAxisFunctions:function(C){if(C&&C.length>0){var A=C.length;for(var B=0;B<A;B++){if(C[B]!==null){YAHOO.widget.Chart.removeProxyFunction(C[B]);}}C=[];}},_setXAxis:function(A){if(A.position!="bottom"&&A.position!="top"){A.position="bottom";}this._removeAxisFunctions(this._xAxisLabelFunctions);A=this._getClonedAxis(A);this._xAxisLabelFunctions.push(A.labelFunction);this._swf.setHorizontalAxis(A);},_setXAxes:function(C){this._removeAxisFunctions(this._xAxisLabelFunctions);var A=C.length;for(var B=0;B<A;B++){if(C[B].position=="left"){C[B].position="bottom";}C[B]=this._getClonedAxis(C[B]);if(C[B].labelFunction){this._xAxisLabelFunctions.push(C[B].labelFunction);}this._swf.setHorizontalAxis(C[B]);}},_setYAxis:function(A){this._removeAxisFunctions(this._yAxisLabelFunctions);A=this._getClonedAxis(A);this._yAxisLabelFunctions.push(A.labelFunction);this._swf.setVerticalAxis(A);},_setYAxes:function(C){this._removeAxisFunctions(this._yAxisLabelFunctions);var A=C.length;for(var B=0;B<A;B++){C[B]=this._getClonedAxis(C[B]);if(C[B].labelFunction){this._yAxisLabelFunctions.push(C[B].labelFunction);}this._swf.setVerticalAxis(C[B]);}},_setConstrainViewport:function(A){this._swf.setConstrainViewport(A);},setSeriesStylesByIndex:function(A,B){B=YAHOO.lang.JSON.stringify(B);if(this._swf&&this._swf.setSeriesStylesByIndex){this._swf.setSeriesStylesByIndex(A,B);}}});YAHOO.widget.LineChart=function(A,C,B){YAHOO.widget.LineChart.superclass.constructor.call(this,"line",A,C,B);};YAHOO.lang.extend(YAHOO.widget.LineChart,YAHOO.widget.CartesianChart);YAHOO.widget.ColumnChart=function(A,C,B){YAHOO.widget.ColumnChart.superclass.constructor.call(this,"column",A,C,B);};YAHOO.lang.extend(YAHOO.widget.ColumnChart,YAHOO.widget.CartesianChart);YAHOO.widget.BarChart=function(A,C,B){YAHOO.widget.BarChart.superclass.constructor.call(this,"bar",A,C,B);};YAHOO.lang.extend(YAHOO.widget.BarChart,YAHOO.widget.CartesianChart);YAHOO.widget.StackedColumnChart=function(A,C,B){YAHOO.widget.StackedColumnChart.superclass.constructor.call(this,"stackcolumn",A,C,B);
-};YAHOO.lang.extend(YAHOO.widget.StackedColumnChart,YAHOO.widget.CartesianChart);YAHOO.widget.StackedBarChart=function(A,C,B){YAHOO.widget.StackedBarChart.superclass.constructor.call(this,"stackbar",A,C,B);};YAHOO.lang.extend(YAHOO.widget.StackedBarChart,YAHOO.widget.CartesianChart);YAHOO.widget.Axis=function(){};YAHOO.widget.Axis.prototype={type:null,reverse:false,labelFunction:null,labelSpacing:2,title:null};YAHOO.widget.NumericAxis=function(){YAHOO.widget.NumericAxis.superclass.constructor.call(this);};YAHOO.lang.extend(YAHOO.widget.NumericAxis,YAHOO.widget.Axis,{type:"numeric",minimum:NaN,maximum:NaN,majorUnit:NaN,minorUnit:NaN,snapToUnits:true,stackingEnabled:false,alwaysShowZero:true,scale:"linear",roundMajorUnit:true,calculateByLabelSize:true,position:"left",adjustMaximumByMajorUnit:true,adjustMinimumByMajorUnit:true});YAHOO.widget.TimeAxis=function(){YAHOO.widget.TimeAxis.superclass.constructor.call(this);};YAHOO.lang.extend(YAHOO.widget.TimeAxis,YAHOO.widget.Axis,{type:"time",minimum:null,maximum:null,majorUnit:NaN,majorTimeUnit:null,minorUnit:NaN,minorTimeUnit:null,snapToUnits:true,stackingEnabled:false,calculateByLabelSize:true});YAHOO.widget.CategoryAxis=function(){YAHOO.widget.CategoryAxis.superclass.constructor.call(this);};YAHOO.lang.extend(YAHOO.widget.CategoryAxis,YAHOO.widget.Axis,{type:"category",categoryNames:null,calculateCategoryCount:false});YAHOO.widget.Series=function(){};YAHOO.widget.Series.prototype={type:null,displayName:null};YAHOO.widget.CartesianSeries=function(){YAHOO.widget.CartesianSeries.superclass.constructor.call(this);};YAHOO.lang.extend(YAHOO.widget.CartesianSeries,YAHOO.widget.Series,{xField:null,yField:null,axis:"primary",showInLegend:true});YAHOO.widget.ColumnSeries=function(){YAHOO.widget.ColumnSeries.superclass.constructor.call(this);};YAHOO.lang.extend(YAHOO.widget.ColumnSeries,YAHOO.widget.CartesianSeries,{type:"column"});YAHOO.widget.LineSeries=function(){YAHOO.widget.LineSeries.superclass.constructor.call(this);};YAHOO.lang.extend(YAHOO.widget.LineSeries,YAHOO.widget.CartesianSeries,{type:"line"});YAHOO.widget.BarSeries=function(){YAHOO.widget.BarSeries.superclass.constructor.call(this);};YAHOO.lang.extend(YAHOO.widget.BarSeries,YAHOO.widget.CartesianSeries,{type:"bar"});YAHOO.widget.PieSeries=function(){YAHOO.widget.PieSeries.superclass.constructor.call(this);};YAHOO.lang.extend(YAHOO.widget.PieSeries,YAHOO.widget.Series,{type:"pie",dataField:null,categoryField:null,labelFunction:null});YAHOO.widget.StackedBarSeries=function(){YAHOO.widget.StackedBarSeries.superclass.constructor.call(this);};YAHOO.lang.extend(YAHOO.widget.StackedBarSeries,YAHOO.widget.CartesianSeries,{type:"stackbar"});YAHOO.widget.StackedColumnSeries=function(){YAHOO.widget.StackedColumnSeries.superclass.constructor.call(this);};YAHOO.lang.extend(YAHOO.widget.StackedColumnSeries,YAHOO.widget.CartesianSeries,{type:"stackcolumn"});YAHOO.register("charts",YAHOO.widget.Chart,{version:"2.8.0r4",build:"2449"});
\ No newline at end of file
diff --git a/koha-tmpl/intranet-tmpl/prog/en/lib/yui/charts/charts.js b/koha-tmpl/intranet-tmpl/prog/en/lib/yui/charts/charts.js
deleted file mode 100644 (file)
index 2efb730..0000000
+++ /dev/null
@@ -1,2060 +0,0 @@
-/*
-Copyright (c) 2009, Yahoo! Inc. All rights reserved.
-Code licensed under the BSD License:
-http://developer.yahoo.net/yui/license.txt
-version: 2.8.0r4
-*/
-/**
- * The Charts widget provides a Flash control for displaying data
- * graphically by series across A-grade browsers with Flash Player installed.
- *
- * @module charts
- * @requires yahoo, dom, event, datasource
- * @title Charts Widget
- * @experimental
- */
-/****************************************************************************/
-/****************************************************************************/
-/****************************************************************************/
-
-/**
- * Chart class for the YUI Charts widget.
- *
- * @namespace YAHOO.widget
- * @class Chart
- * @uses YAHOO.util.AttributeProvider
- * @constructor
- * @param type {String} The char type. May be "line", "column", "bar", or "pie"
- * @param containerId {HTMLElement} Container element for the Flash Player instance.
- * @param dataSource {YAHOO.util.DataSource} DataSource instance.
- * @param attributes {object} (optional) Object literal of configuration values.
- */
-YAHOO.widget.Chart = function(type, containerId, dataSource, configurationAttributes)
-{
-       this._type = type;
-       this._dataSource = dataSource;
-               
-       var possibleParams = {align:"", allowNetworking:"", allowScriptAccess:"", base:"", bgcolor:"", menu:"", name:"", quality:"", salign:"", scale:"", tabindex:"", wmode:""};
-       var attributes = {fixedAttributes:{allowScriptAccess:"always"}, flashVars:{allowedDomain : document.location.hostname}, backgroundColor:"#ffffff", host:this, version:9.045};
-       
-       for(var i in configurationAttributes)
-       {
-               if(possibleParams.hasOwnProperty(i))
-               {
-                       attributes.fixedAttributes[i] = configurationAttributes[i];
-               }
-               else
-               {
-                       attributes[i] = configurationAttributes[i];
-               }
-       }
-       
-       this._id = attributes.id = attributes.id || YAHOO.util.Dom.generateId(null, "yuigen");
-       
-       if(attributes.version && attributes.version != null && attributes.version != undefined && attributes.version != "undefined")
-       { 
-               var version = (/\w*.\w*/.exec(((attributes.version).toString()).replace(/.0./g, "."))).toString();
-               var verSplit = version.split(".");
-               version = verSplit[0] + ".";
-               switch((verSplit[1].toString()).length)
-               {
-                       case 1: 
-                               version += "00";
-                       break;
-                       case 2:
-                               version += "0";
-                       break;  
-               } 
-               version += verSplit[1];
-               attributes.version = parseFloat(version); 
-       }
-       
-       this._swfURL = YAHOO.widget.Chart.SWFURL;
-       this._containerID = containerId;
-       
-       this._attributes = attributes
-       this._swfEmbed = new YAHOO.widget.SWF(containerId, YAHOO.widget.Chart.SWFURL, attributes);
-       
-       this._swf = this._swfEmbed.swf;
-       this._swfEmbed.subscribe("swfReady", this._eventHandler, this, true);
-                       
-       /**
-        * Fires when the SWF is initialized and communication is possible.
-        * @event contentReady
-        */
-       //Fix for iframe cross-domain issue with FF2x 
-       try
-       {
-               this.createEvent("contentReady");
-       }
-       catch(e){}
-       
-       /**
-        * Fires when the user moves the mouse over the bounds of an item renderer in the chart.
-        *
-        * @event itemMouseOverEvent
-        * @param event.type {String} The event type
-        * @param event.item {Object} The data displayed by the renderer
-        * @param event.index {Number} The position within the series that the item appears.
-        * @param event.seriesIndex {Number} The position within the series definition that the series appears.
-        * @param event.x {Number} The horizontal position of the mouse, relative to the SWF.
-        * @param event.y {Number} The vertical position of the mouse, relative to the SWF.
-        */
-       this.createEvent("itemMouseOverEvent");
-       
-       /**
-        * Fires when the user moves the mouse out of the bounds of an item renderer in the chart.
-        *
-        * @event itemMouseOutEvent
-        * @param event.type {String} The event type
-        * @param event.item {Object} The data displayed by the renderer
-        * @param event.index {Number} The position within the series that the item appears.
-        * @param event.seriesIndex {Number} The position within the series definition that the series appears.
-        * @param event.x {Number} The horizontal position of the mouse, relative to the SWF.
-        * @param event.y {Number} The vertical position of the mouse, relative to the SWF.
-        */
-       this.createEvent("itemMouseOutEvent");
-       
-       /**
-        * Fires when the user clicks an item renderer in the chart with the mouse.
-        *
-        * @event itemClickEvent
-        * @param event.type {String} The event type
-        * @param event.item {Object} The data displayed by the renderer
-        * @param event.index {Number} The position within the series that the item appears.
-        * @param event.seriesIndex {Number} The position within the series definition that the series appears.
-        * @param event.x {Number} The horizontal position of the mouse, relative to the SWF.
-        * @param event.y {Number} The vertical position of the mouse, relative to the SWF.
-        */
-       this.createEvent("itemClickEvent");
-       
-       /**
-        * Fires when the user double-clicks an item renderer in the chart with the mouse.
-        *
-        * @event itemDoubleClickEvent
-        * @param event.type {String} The event type
-        * @param event.item {Object} The data displayed by the renderer
-        * @param event.index {Number} The position within the series that the item appears.
-        * @param event.seriesIndex {Number} The position within the series definition that the series appears.
-        * @param event.x {Number} The horizontal position of the mouse, relative to the SWF.
-        * @param event.y {Number} The vertical position of the mouse, relative to the SWF.
-        */
-       this.createEvent("itemDoubleClickEvent");
-       
-       /**
-        * Fires when the user presses the mouse down on an item to initiate a drag action.
-        *
-        * @event itemDragStartEvent
-        * @param event.type {String} The event type
-        * @param event.item {Object} The data displayed by the renderer
-        * @param event.index {Number} The position within the series that the item appears.
-        * @param event.seriesIndex {Number} The position within the series definition that the series appears.
-        * @param event.x {Number} The horizontal position of the mouse, relative to the SWF.
-        * @param event.y {Number} The vertical position of the mouse, relative to the SWF.
-        */
-       this.createEvent("itemDragStartEvent");
-       
-       /**
-        * Fires when the user moves the mouse during a drag action.
-        *
-        * @event itemDragEvent
-        * @param event.type {String} The event type
-        * @param event.item {Object} The data displayed by the renderer
-        * @param event.index {Number} The position within the series that the item appears.
-        * @param event.seriesIndex {Number} The position within the series definition that the series appears.
-        * @param event.x {Number} The horizontal position of the mouse, relative to the SWF.
-        * @param event.y {Number} The vertical position of the mouse, relative to the SWF.
-        */
-       this.createEvent("itemDragEvent");
-
-       /**
-        * Fires when the user releases the mouse during a drag action.
-        *
-        * @event itemDragEndEvent
-        * @param event.type {String} The event type
-        * @param event.item {Object} The data displayed by the renderer
-        * @param event.index {Number} The position within the series that the item appears.
-        * @param event.seriesIndex {Number} The position within the series definition that the series appears.
-        * @param event.x {Number} The horizontal position of the mouse, relative to the SWF.
-        * @param event.y {Number} The vertical position of the mouse, relative to the SWF.
-        */
-       this.createEvent("itemDragEndEvent");
-};
-
-YAHOO.extend(YAHOO.widget.Chart, YAHOO.util.AttributeProvider,
-{
-       /**
-        * The type of this chart instance.
-        * @property _type
-        * @type String
-        * @private
-        */
-       _type: null,
-
-       /**
-        * The id returned from the DataSource's setInterval function.
-        * @property _pollingID
-        * @type Number
-        * @private
-        */
-       _pollingID: null,
-
-       /**
-        * The time, in ms, between requests for data.
-        * @property _pollingInterval
-        * @type Number
-        * @private
-        */
-       _pollingInterval: null,
-
-       /**
-        * Stores a reference to the dataTipFunction created by
-        * YAHOO.widget.Chart.createProxyFunction()
-        * @property _dataTipFunction
-        * @type String
-        * @private
-        */
-       _dataTipFunction: null,
-       
-       /**
-        * Stores a reference to the legendLabelFunction created by
-        * YAHOO.widget.Chart.createProxyFunction()
-        * @property _legendLabelFunction
-        * @type String
-        * @private
-        */
-       _legendLabelFunction: null,     
-       
-       /**
-        * Stores references to series function values created by
-        * YAHOO.widget.Chart.createProxyFunction()
-        * @property _seriesFunctions
-        * @type Array
-        * @private
-        */
-       _seriesFunctions: null,
-
-       /**
-        * Public accessor to the unique name of the Chart instance.
-        *
-        * @method toString
-        * @return {String} Unique name of the Chart instance.
-        */
-       toString: function()
-       {
-               return "Chart " + this._id;
-       },
-       
-       /**
-        * Sets a single style value on the Chart instance.
-        *
-        * @method setStyle
-        * @param name {String} Name of the Chart style value to change.
-        * @param value {Object} New value to pass to the Chart style.
-        */
-       setStyle: function(name, value)
-       {
-               //we must jsonify this because Flash Player versions below 9.0.60 don't handle
-               //complex ExternalInterface parsing correctly
-               value = YAHOO.lang.JSON.stringify(value);
-               this._swf.setStyle(name, value);
-       },
-       
-       /**
-        * Resets all styles on the Chart instance.
-        *
-        * @method setStyles
-        * @param styles {Object} Initializer for all Chart styles.
-        */
-       setStyles: function(styles)
-       {
-               //we must jsonify this because Flash Player versions below 9.0.60 don't handle
-               //complex ExternalInterface parsing correctly
-               styles = YAHOO.lang.JSON.stringify(styles);
-               this._swf.setStyles(styles);
-       },
-       
-       /**
-        * Sets the styles on all series in the Chart.
-        *
-        * @method setSeriesStyles
-        * @param styles {Array} Initializer for all Chart series styles.
-        */
-       setSeriesStyles: function(styles)
-       {
-               //we must jsonify this because Flash Player versions below 9.0.60 don't handle
-               //complex ExternalInterface parsing correctly
-               for(var i = 0; i < styles.length; i++)
-               {
-                       styles[i] = YAHOO.lang.JSON.stringify(styles[i]);       
-               }
-               this._swf.setSeriesStyles(styles);
-       },
-       
-       destroy: function()
-       {
-               //stop polling if needed
-               if(this._dataSource !== null)
-               {
-                       if(this._pollingID !== null)
-                       {
-                               this._dataSource.clearInterval(this._pollingID);
-                               this._pollingID = null;
-                       }
-               }
-               
-               //remove proxy functions
-               if(this._dataTipFunction)
-               {
-                       YAHOO.widget.Chart.removeProxyFunction(this._dataTipFunction);
-               }
-               
-               if(this._legendLabelFunction)
-               {
-                       YAHOO.widget.Chart.removeProxyFunction(this._legendLabelFunction);
-               }
-               
-               //kill the Flash Player instance
-               if(this._swf)
-               {
-                       var container = YAHOO.util.Dom.get(this._containerID);
-                       container.removeChild(this._swf);
-               }
-               
-               var instanceName = this._id;
-               
-               //null out properties
-               for(var prop in this)
-               {
-                       if(YAHOO.lang.hasOwnProperty(this, prop))
-                       {
-                               this[prop] = null;
-                       }
-               }
-       },
-       
-       /**
-        * Initializes the attributes.
-        *
-        * @method _initAttributes
-        * @private
-        */
-       _initAttributes: function(attributes)
-       {
-               //YAHOO.widget.Chart.superclass._initAttributes.call(this, attributes);
-               /**
-                * @attribute wmode
-                * @description Sets the window mode of the Flash Player control. May be
-                *              "window", "opaque", or "transparent". Only available in the constructor
-                *              because it may not be set after Flash Player has been embedded in the page.
-                * @type String
-                */
-                
-               /**
-                * @attribute expressInstall
-                * @description URL pointing to a SWF file that handles Flash Player's express
-                *              install feature. Only available in the constructor because it may not be
-                *              set after Flash Player has been embedded in the page.
-                * @type String
-                */
-
-               /**
-                * @attribute version
-                * @description Minimum required version for the SWF file. Only available in the constructor because it may not be
-                *              set after Flash Player has been embedded in the page.
-                * @type String
-                */
-
-               /**
-                * @attribute backgroundColor
-                * @description The background color of the SWF. Only available in the constructor because it may not be
-                *              set after Flash Player has been embedded in the page.
-                * @type String
-                */
-                
-               /**
-                * @attribute altText
-                * @description The alternative text to provide for screen readers and other assistive technology.
-                * @type String
-                */
-               this.setAttributeConfig("altText",
-               {
-                       method: this._setAltText,
-                       getter: this._getAltText
-                       
-               });
-               
-               /**
-                * @attribute swfURL
-                * @description Absolute or relative URL to the SWF displayed by the Chart. Only available in the constructor because it may not be
-                *              set after Flash Player has been embedded in the page.
-                * @type String
-                */
-               this.setAttributeConfig("swfURL",
-               {
-                       getter: this._getSWFURL
-               });             
-
-               /**
-                * @attribute request
-                * @description Request to be sent to the Chart's DataSource.
-                * @type String
-                */
-               this.setAttributeConfig("request",
-               {
-                       method: this._setRequest,
-                       getter: this._getRequest
-               });
-               
-               /**
-                * @attribute dataSource
-                * @description The DataSource instance to display in the Chart.
-                * @type DataSource
-                */
-               this.setAttributeConfig("dataSource",
-               {
-                       method: this._setDataSource,
-                       getter: this._getDataSource
-               });
-               
-               /**
-                * @attribute series
-                * @description Defines the series to be displayed by the Chart.
-                * @type Array
-                */
-               this.setAttributeConfig("series",
-               {
-                       method: this._setSeriesDefs,
-                       getter: this._getSeriesDefs
-               });
-               
-               /**
-                * @attribute categoryNames
-                * @description Defines the names of the categories to be displayed in the Chart..
-                * @type Array
-                */
-               this.setAttributeConfig("categoryNames",
-               {
-                       validator: YAHOO.lang.isArray,
-                       method: this._setCategoryNames,
-                       getter: this._getCategoryNames
-               });
-               
-               /**
-                * @attribute dataTipFunction
-                * @description The string representation of a globally-accessible function
-                * that may be called by the SWF to generate the datatip text for a Chart's item.
-                * @type String
-                */
-               this.setAttributeConfig("dataTipFunction",
-               {
-                       method: this._setDataTipFunction,
-                       getter: this._getDataTipFunction
-               });
-               
-               /**
-                * @attribute legendLabelFunction
-                * @description The string representation of a globally-accessible function
-                * that may be called by the SWF to format the labels of a Chart's legend.
-                * @type String
-                */     
-               this.setAttributeConfig("legendLabelFunction",
-               {
-                       method: this._setLegendLabelFunction,
-                       getter: this._legendLabelFunction
-               });
-
-               /**
-                * @attribute polling
-                * @description A numeric value indicating the number of milliseconds between
-                * polling requests to the DataSource.
-                * @type Number
-                */
-               this.setAttributeConfig("polling",
-               {
-                       method: this._setPolling,
-                       getter: this._getPolling
-               });
-       },
-       
-       /**
-        * Handles swfReady event from SWF.
-        *
-        * @method _eventHandler
-        * @private
-        */
-       _eventHandler: function(event)
-       { 
-               if(event.type == "swfReady")
-               {
-                       this._swf = this._swfEmbed._swf;
-                       this._loadHandler();
-                       this.fireEvent("contentReady");
-               }
-       },      
-       
-       /**
-        * Called when the SWF is ready for communication. Sets the type, initializes
-        * the styles, and sets the DataSource.
-        *
-        * @method _loadHandler
-        * @private
-        */
-       _loadHandler: function()
-       {
-               //the type is set separately because it must be first!
-               if(!this._swf || !this._swf.setType) return;
-               this._swf.setType(this._type);
-
-
-               //set initial styles
-               if(this._attributes.style)
-               {
-                       var style = this._attributes.style;
-                       this.setStyles(style);          
-               }
-
-               this._initialized = false;
-
-               this._initAttributes(this._attributes);
-               this.setAttributes(this._attributes, true);
-
-               this._initialized = true;
-               if(this._dataSource)
-               {
-                       this.set("dataSource", this._dataSource);
-               }
-       },      
-
-       /**
-        * Sends (or resends) the request to the DataSource.
-        *
-        * @method refreshData
-        */
-       refreshData: function()
-       {
-               if(!this._initialized)
-               {
-                       return;
-               }
-               
-               if(this._dataSource !== null)
-               {
-                       if(this._pollingID !== null)
-                       {
-                               this._dataSource.clearInterval(this._pollingID);
-                               this._pollingID = null;
-                       }
-                       
-                       if(this._pollingInterval > 0)
-                       {
-                               this._pollingID = this._dataSource.setInterval(this._pollingInterval, this._request, this._loadDataHandler, this);
-                       }
-                       this._dataSource.sendRequest(this._request, this._loadDataHandler, this);
-               }
-       },
-
-       /**
-        * Called when the DataSource receives new data. The series definitions are used
-        * to build a data provider for the SWF chart.
-        *
-        * @method _loadDataHandler
-        * @private
-        */
-       _loadDataHandler: function(request, response, error)
-       {
-               if(this._swf)
-               {
-                       if(error)
-                       {
-                       }
-                       else
-                       {
-                               var i;
-                               if(this._seriesFunctions)
-                               {
-                                       var count = this._seriesFunctions.length;
-                                       for(i = 0; i < count; i++)
-                                       {
-                                               YAHOO.widget.Chart.removeProxyFunction(this._seriesFunctions[i]);
-                                       }
-                                       this._seriesFunctions = null;
-                               }
-                               this._seriesFunctions = [];
-
-                               //make a copy of the series definitions so that we aren't
-                               //editing them directly.
-                               var dataProvider = [];  
-                               var seriesCount = 0;
-                               var currentSeries = null;
-                               if(this._seriesDefs !== null)
-                               {
-                                       seriesCount = this._seriesDefs.length;
-                                       for(i = 0; i < seriesCount; i++)
-                                       {
-                                               currentSeries = this._seriesDefs[i];
-                                               var clonedSeries = {};
-                                               for(var prop in currentSeries)
-                                               {
-                                                       if(YAHOO.lang.hasOwnProperty(currentSeries, prop))
-                                                       {
-                                                               if(prop == "style")
-                                                               {
-                                                                       if(currentSeries.style !== null)
-                                                                       {
-                                                                               clonedSeries.style = YAHOO.lang.JSON.stringify(currentSeries.style);
-                                                                       }
-                                                               }
-
-                                                               else if(prop == "labelFunction")
-                                                               {
-                                                                       if(currentSeries.labelFunction !== null)
-                                                                       {       
-                                                                               clonedSeries.labelFunction = YAHOO.widget.Chart.getFunctionReference(currentSeries.labelFunction);
-                                                                               this._seriesFunctions.push(clonedSeries.labelFunction);
-                                                                       }
-                                                               }
-
-                                                               else if(prop == "dataTipFunction")
-                                                               {
-                                                                       if(currentSeries.dataTipFunction !== null)
-                                                                       {
-                                                                               clonedSeries.dataTipFunction = YAHOO.widget.Chart.getFunctionReference(currentSeries.dataTipFunction);
-                                                                               this._seriesFunctions.push(clonedSeries.dataTipFunction);
-                                                                       }       
-                                                               }
-                                                               
-                                                               else if(prop == "legendLabelFunction")
-                                                               {
-                                                                       if(currentSeries.legendLabelFunction !== null)
-                                                                       {
-                                                                               clonedSeries.legendLabelFunction = YAHOO.widget.Chart.getFunctionReference(currentSeries.legendLabelFunction);
-                                                                               this._seriesFunctions.push(clonedSeries.legendLabelFunction); 
-                                                                       }       
-                                                               }                                                               
-
-                                                               else
-                                                               {
-                                                                       clonedSeries[prop] = currentSeries[prop];
-                                                               }
-                                                       }
-                                               }
-                                               dataProvider.push(clonedSeries);
-                                       }
-                               }
-
-                               if(seriesCount > 0)
-                               {
-                                       for(i = 0; i < seriesCount; i++)
-                                       {
-                                               currentSeries = dataProvider[i];
-                                               if(!currentSeries.type)
-                                               {
-                                                       currentSeries.type = this._type;
-                                               }
-                                               currentSeries.dataProvider = response.results;
-                                       }
-                               }
-                               else
-                               {
-                                       var series = {type: this._type, dataProvider: response.results};
-                                       dataProvider.push(series);
-                               }
-                               try
-                               {
-                                       if(this._swf.setDataProvider) this._swf.setDataProvider(dataProvider);
-                               }
-                               catch(e)
-                               {
-                                       this._swf.setDataProvider(dataProvider);
-                               }
-                       }
-               }
-       },
-
-       /**
-        * Storage for the request attribute.
-        * 
-        * @property _request
-        * @private
-        */
-       _request: "",
-       
-       /**
-        * Getter for the request attribute.
-        *
-        * @method _getRequest
-        * @private
-        */
-       _getRequest: function()
-       {
-               return this._request;
-       },
-       
-       /**
-        * Setter for the request attribute.
-        *
-        * @method _setRequest
-        * @private
-        */
-       _setRequest: function(value)
-       {
-               this._request = value;
-               this.refreshData();
-       },
-
-       /**
-        * Storage for the dataSource attribute.
-        * 
-        * @property _dataSource
-        * @private
-        */
-       _dataSource: null,
-       
-       /**
-        * Getter for the dataSource attribute.
-        *
-        * @method _getDataSource
-        * @private
-        */
-       _getDataSource: function()
-       {
-               return this._dataSource;
-       },
-
-       /**
-        * Setter for the dataSource attribute.
-        *
-        * @method _setDataSource
-        * @private
-        */
-       _setDataSource: function(value)
-       {       
-               this._dataSource = value;
-               this.refreshData();
-       },
-       
-       /**
-        * Storage for the series attribute.
-        * 
-        * @property _seriesDefs
-        * @private
-        */
-       _seriesDefs: null,
-       
-       /**
-        * Getter for the series attribute.
-        *
-        * @method _getSeriesDefs
-        * @private
-        */
-       _getSeriesDefs: function()
-       {
-               return this._seriesDefs;
-       },
-       
-       /**
-        * Setter for the series attribute.
-        *
-        * @method _setSeriesDefs
-        * @private
-        */
-       _setSeriesDefs: function(value)
-       {
-               this._seriesDefs = value;
-               this.refreshData();
-       },
-
-       /**
-        * Getter for the categoryNames attribute.
-        *
-        * @method _getCategoryNames
-        * @private
-        */
-       _getCategoryNames: function()
-       {
-               return this._swf.getCategoryNames();
-       },
-
-       /**
-        * Setter for the categoryNames attribute.
-        *
-        * @method _setCategoryNames
-        * @private
-        */
-       _setCategoryNames: function(value)
-       {
-               this._swf.setCategoryNames(value);
-       },
-       
-       /**
-        * Setter for the dataTipFunction attribute.
-        *
-        * @method _setDataTipFunction
-        * @private
-        */
-       _setDataTipFunction: function(value)
-       {
-               if(this._dataTipFunction)
-               {
-                       YAHOO.widget.Chart.removeProxyFunction(this._dataTipFunction);
-               }
-               
-               if(value)
-               {
-                       this._dataTipFunction = value = YAHOO.widget.Chart.getFunctionReference(value);
-               }
-               this._swf.setDataTipFunction(value);
-       },
-       
-       /**
-        * Setter for the legendLabelFunction attribute.
-        *
-        * @method _setLegendLabelFunction
-        * @private
-        */
-       _setLegendLabelFunction: function(value)
-       {
-               if(this._legendLabelFunction)
-               {
-                       YAHOO.widget.Chart.removeProxyFunction(this._legendLabelFunction);
-               }
-               
-               if(value)
-               {
-                       this._legendLabelFunction = value = YAHOO.widget.Chart.getFunctionReference(value);
-               }
-               this._swf.setLegendLabelFunction(value);
-       },
-
-       /**
-        * Getter for the polling attribute.
-        *
-        * @method _getPolling
-        * @private
-        */
-       _getPolling: function()
-       {
-               return this._pollingInterval;
-       },
-
-       /**
-        * Setter for the polling attribute.
-        *
-        * @method _setPolling
-        * @private
-        */
-       _setPolling: function(value)
-       {
-               this._pollingInterval = value;
-               this.refreshData();
-       },
-
-       /**
-        * The javascript wrapper for the swf object
-        *
-        * @property _swfEmbed
-        * @type swf
-        * @private
-        */
-       _swfEmbed: null,
-       
-       /**
-        * The URL of the SWF file.
-        * @property _swfURL
-        * @type String
-        * @private
-        */
-       _swfURL: null,
-
-       /**
-        * The ID of the containing DIV.
-        * @property _containerID
-        * @type String
-        * @private
-        */
-       _containerID: null,
-
-       /**
-        * A reference to the embedded SWF file.
-        * @property _swf
-        * @private
-        */
-       _swf: null,
-
-       /**
-        * The id of this instance.
-        * @property _id
-        * @type String
-        * @private
-        */
-       _id: null,
-
-       /**
-        * Indicates whether the SWF has been initialized and is ready
-        * to communicate with JavaScript
-        * @property _initialized
-        * @type Boolean
-        * @private
-        */
-       _initialized: false,
-       
-       /**
-        * The initializing attributes are stored here until the SWF is ready.
-        * @property _attributes
-        * @type Object
-        * @private
-        */
-       _attributes: null, //the intializing attributes
-       
-       set: function(name, value)
-       {
-               //save all the attributes in case the swf reloads
-               //so that we can pass them in again
-               this._attributes[name] = value;
-               YAHOO.widget.Chart.superclass.set.call(this, name, value);
-       },
-       
-       /**
-        * Getter for swfURL attribute.
-        *
-        * @method _getSWFURL
-        * @private
-        */
-       _getSWFURL: function()
-       {
-               return this._swfURL;
-       },
-       
-       /**
-        * Getter for altText attribute.
-        *
-        * @method _getAltText
-        * @private
-        */
-       _getAltText: function()
-       {
-               return this._swf.getAltText();
-       },
-
-       /**
-        * Setter for altText attribute.
-        *
-        * @method _setAltText
-        * @private
-        */
-       _setAltText: function(value)
-       {
-               this._swf.setAltText(value);
-       }
-});
-
-/**
- * The number of proxy functions that have been created.
- * @static
- * @private
- */
-YAHOO.widget.Chart.proxyFunctionCount = 0;
-
-/**
- * Creates a globally accessible function that wraps a function reference.
- * Returns the proxy function's name as a string for use by the SWF through
- * ExternalInterface.
- *
- * @method YAHOO.widget.Chart.createProxyFunction
- * @static
- * @private
- */
-YAHOO.widget.Chart.createProxyFunction = function(func, scope)
-{
-       var scope = scope || null;
-       var index = YAHOO.widget.Chart.proxyFunctionCount;
-       YAHOO.widget.Chart["proxyFunction" + index] = function()
-       {
-               return func.apply(scope, arguments);
-       };
-       YAHOO.widget.Chart.proxyFunctionCount++;
-       return "YAHOO.widget.Chart.proxyFunction" + index.toString();
-};
-
-/**
- * Uses YAHOO.widget.Chart.createProxyFunction to return string
- * reference to a function. 
- *
- * @method YAHOO.widget.Chart.getFunctionReference
- * @static
- * @private
- */
-YAHOO.widget.Chart.getFunctionReference = function(value)
-{
-       if(typeof value == "function")
-       {
-               value = YAHOO.widget.Chart.createProxyFunction(value);
-       }
-       else if(value.func && typeof value.func == "function")
-       {
-               var args = [value.func];
-               if(value.scope && typeof value.scope == "object")
-               {
-                       args.push(value.scope);
-               }
-               value = YAHOO.widget.Chart.createProxyFunction.apply(this, args);
-       }
-       return value;   
-}
-
-/**
- * Removes a function created with createProxyFunction()
- * 
- * @method YAHOO.widget.Chart.removeProxyFunction
- * @static
- * @private
- */
-YAHOO.widget.Chart.removeProxyFunction = function(funcName)
-{
-       //quick error check
-       if(!funcName || funcName.indexOf("YAHOO.widget.Chart.proxyFunction") < 0)
-       {
-               return;
-       }
-       
-       funcName = funcName.substr(26);
-       YAHOO.widget.Chart[funcName] = null;
-};
-
-/**
- * Storage for the dataTipFunction attribute.
- *
- * @property Chart.SWFURL
- * @private
- * @static
- * @final
- * @default "assets/charts.swf"
- */
-YAHOO.widget.Chart.SWFURL = "assets/charts.swf";
-/**
- * PieChart class for the YUI Charts widget.
- *
- * @namespace YAHOO.widget
- * @class PieChart
- * @uses YAHOO.widget.Chart
- * @constructor
- * @param containerId {HTMLElement} Container element for the Flash Player instance.
- * @param dataSource {YAHOO.util.DataSource} DataSource instance.
- * @param attributes {object} (optional) Object literal of configuration values.
- */
-YAHOO.widget.PieChart = function(containerId, dataSource, attributes)
-{
-       YAHOO.widget.PieChart.superclass.constructor.call(this, "pie", containerId, dataSource, attributes);
-};
-
-YAHOO.lang.extend(YAHOO.widget.PieChart, YAHOO.widget.Chart,
-{
-       /**
-        * Initializes the attributes.
-        *
-        * @method _initAttributes
-        * @private
-        */
-       _initAttributes: function(attributes)
-       {       
-               YAHOO.widget.PieChart.superclass._initAttributes.call(this, attributes);
-               
-               /**
-                * @attribute dataField
-                * @description The field in each item that corresponds to the data value.
-                * @type String
-                */
-               this.setAttributeConfig("dataField",
-               {
-                       validator: YAHOO.lang.isString,
-                       method: this._setDataField,
-                       getter: this._getDataField
-               });
-   
-               /**
-                * @attribute categoryField
-                * @description The field in each item that corresponds to the category value.
-                * @type String
-                */
-               this.setAttributeConfig("categoryField",
-               {
-                       validator: YAHOO.lang.isString,
-                       method: this._setCategoryField,
-                       getter: this._getCategoryField
-               });
-       },
-
-       /**
-        * Getter for the dataField attribute.
-        *
-        * @method _getDataField
-        * @private
-        */
-       _getDataField: function()
-       {
-               return this._swf.getDataField();
-       },
-
-       /**
-        * Setter for the dataField attribute.
-        *
-        * @method _setDataField
-        * @private
-        */
-       _setDataField: function(value)
-       {
-               this._swf.setDataField(value);
-       },
-
-       /**
-        * Getter for the categoryField attribute.
-        *
-        * @method _getCategoryField
-        * @private
-        */
-       _getCategoryField: function()
-       {
-               return this._swf.getCategoryField();
-       },
-
-       /**
-        * Setter for the categoryField attribute.
-        *
-        * @method _setCategoryField
-        * @private
-        */
-       _setCategoryField: function(value)
-       {
-               this._swf.setCategoryField(value);
-       }
-});
-/**
- * CartesianChart class for the YUI Charts widget.
- *
- * @namespace YAHOO.widget
- * @class CartesianChart
- * @uses YAHOO.widget.Chart
- * @constructor
- * @param type {String} The char type. May be "line", "column", or "bar"
- * @param containerId {HTMLElement} Container element for the Flash Player instance.
- * @param dataSource {YAHOO.util.DataSource} DataSource instance.
- * @param attributes {object} (optional) Object literal of configuration values.
- */
- YAHOO.widget.CartesianChart = function(type, containerId, dataSource, attributes)
-{
-       YAHOO.widget.CartesianChart.superclass.constructor.call(this, type, containerId, dataSource, attributes);
-};
-
-YAHOO.lang.extend(YAHOO.widget.CartesianChart, YAHOO.widget.Chart,
-{
-       /**
-        * Stores a reference to the xAxis labelFunction created by
-        * YAHOO.widget.Chart.createProxyFunction()
-        * @property _xAxisLabelFunctions
-        * @type String
-        * @private
-        */
-       _xAxisLabelFunctions: [],
-       
-       /**
-        * Stores a reference to the yAxis labelFunctions created by
-        * YAHOO.widget.Chart.createProxyFunction()
-        * @property _yAxisLabelFunctions
-        * @type Array
-        * @private
-        */
-       _yAxisLabelFunctions: [],
-       
-       destroy: function()
-       {
-               //remove proxy functions
-               this._removeAxisFunctions(this._xAxisLabelFunctions);
-               this._removeAxisFunctions(this._yAxisLabelFunctions);
-               
-               //call last
-               YAHOO.widget.CartesianChart.superclass.destroy.call(this);
-       },
-       
-       /**
-        * Initializes the attributes.
-        *
-        * @method _initAttributes
-        * @private
-        */
-       _initAttributes: function(attributes)
-       {       
-               YAHOO.widget.CartesianChart.superclass._initAttributes.call(this, attributes);
-               
-               /**
-                * @attribute xField
-                * @description The field in each item that corresponds to a value on the x axis.
-                * @type String
-                */
-               this.setAttributeConfig("xField",
-               {
-                       validator: YAHOO.lang.isString,
-                       method: this._setXField,
-                       getter: this._getXField
-               });
-
-               /**
-                * @attribute yField
-                * @description The field in each item that corresponds to a value on the x axis.
-                * @type String
-                */
-               this.setAttributeConfig("yField",
-               {
-                       validator: YAHOO.lang.isString,
-                       method: this._setYField,
-                       getter: this._getYField
-               });
-
-               /**
-                * @attribute xAxis
-                * @description A custom configuration for the horizontal x axis.
-                * @type Axis
-                */
-               this.setAttributeConfig("xAxis",
-               {
-                       method: this._setXAxis
-               });
-               
-               /**
-                * @attribute xAxes
-                * @description Custom configurations for the horizontal x axes.
-                * @type Array
-                */             
-               this.setAttributeConfig("xAxes",
-               {
-                       method: this._setXAxes
-               });     
-
-               /**
-                * @attribute yAxis
-                * @description A custom configuration for the vertical y axis.
-                * @type Axis
-                */
-               this.setAttributeConfig("yAxis",
-               {
-                       method: this._setYAxis
-               });
-               
-               /**
-                * @attribute yAxes
-                * @description Custom configurations for the vertical y axes.
-                * @type Array
-                */             
-               this.setAttributeConfig("yAxes",
-               {
-                       method: this._setYAxes
-               });     
-               
-               /**
-                * @attribute constrainViewport
-                * @description Determines whether the viewport is constrained to prevent series data from overflow.
-                * @type Boolean
-                */
-               this.setAttributeConfig("constrainViewport",
-               {
-                       method: this._setConstrainViewport
-               });     
-       },
-
-       /**
-        * Getter for the xField attribute.
-        *
-        * @method _getXField
-        * @private
-        */
-       _getXField: function()
-       {
-               return this._swf.getHorizontalField();
-       },
-
-       /**
-        * Setter for the xField attribute.
-        *
-        * @method _setXField
-        * @private
-        */
-       _setXField: function(value)
-       {
-               this._swf.setHorizontalField(value);
-       },
-
-       /**
-        * Getter for the yField attribute.
-        *
-        * @method _getYField
-        * @private
-        */
-       _getYField: function()
-       {
-               return this._swf.getVerticalField();
-       },
-
-       /**
-        * Setter for the yField attribute.
-        *
-        * @method _setYField
-        * @private
-        */
-       _setYField: function(value)
-       {
-               this._swf.setVerticalField(value);
-       },
-       
-       /**
-        * Receives an axis object, creates a proxy function for 
-        * the labelFunction and returns the updated object. 
-        *
-        * @method _getClonedAxis
-        * @private
-        */
-       _getClonedAxis: function(value)
-       {
-               var clonedAxis = {};
-               for(var prop in value)
-               {
-                       if(prop == "labelFunction")
-                       {
-                               if(value.labelFunction && value.labelFunction !== null)
-                               {
-                                       clonedAxis.labelFunction = YAHOO.widget.Chart.getFunctionReference(value.labelFunction);
-                               }
-                       }
-                       else
-                       {
-                               clonedAxis[prop] = value[prop];
-                       }
-               }
-               return clonedAxis;
-       },
-       
-       /**
-        * Removes axis functions contained in an array
-        * 
-        * @method _removeAxisFunctions
-        * @private
-        */
-       _removeAxisFunctions: function(axisFunctions)
-       {
-               if(axisFunctions && axisFunctions.length > 0)
-               {
-                       var len = axisFunctions.length;
-                       for(var i = 0; i < len; i++)
-                       {
-                               if(axisFunctions[i] !== null)
-                               {
-                                       YAHOO.widget.Chart.removeProxyFunction(axisFunctions[i]);
-                               }
-                       }
-                       axisFunctions = [];
-               }
-       },      
-       
-       /**
-        * Setter for the xAxis attribute.
-        *
-        * @method _setXAxis
-        * @private
-        */
-       _setXAxis: function(value)
-       {
-               if(value.position != "bottom" && value.position != "top") value.position = "bottom";
-               this._removeAxisFunctions(this._xAxisLabelFunctions);
-               value = this._getClonedAxis(value);
-               this._xAxisLabelFunctions.push(value.labelFunction);
-               this._swf.setHorizontalAxis(value);
-       },
-       
-       /**
-        * Setter for the xAxes attribute
-        *
-        * @method _setXAxes
-        * @private
-        */
-       _setXAxes: function(value)
-       {
-               this._removeAxisFunctions(this._xAxisLabelFunctions);
-               var len = value.length;
-               for(var i = 0; i < len; i++)
-               {
-                       if(value[i].position == "left") value[i].position = "bottom";
-                       value[i] = this._getClonedAxis(value[i]);
-                       if(value[i].labelFunction) this._xAxisLabelFunctions.push(value[i].labelFunction);
-                       this._swf.setHorizontalAxis(value[i]);
-               }
-       },
-
-       /**
-        * Setter for the yAxis attribute.
-        *
-        * @method _setYAxis
-        * @private
-        */
-       _setYAxis: function(value)
-       {
-               this._removeAxisFunctions(this._yAxisLabelFunctions);
-               value = this._getClonedAxis(value);
-               this._yAxisLabelFunctions.push(value.labelFunction);            
-               this._swf.setVerticalAxis(value);
-       },
-       
-       /**
-        * Setter for the yAxes attribute.
-        *
-        * @method _setYAxes
-        * @private
-        */     
-       _setYAxes: function(value)
-       {
-               this._removeAxisFunctions(this._yAxisLabelFunctions);
-               var len = value.length;
-               for(var i = 0; i < len; i++)
-               {
-                       value[i] = this._getClonedAxis(value[i]);
-                       if(value[i].labelFunction) this._yAxisLabelFunctions.push(value[i].labelFunction);
-                       this._swf.setVerticalAxis(value[i]);
-               }               
-       },
-       
-       /**
-        * Setter for the constrainViewport attribute
-        *
-        * @method _setConstrainViewport
-        * @private
-        */
-       _setConstrainViewport: function(value)
-       {
-               this._swf.setConstrainViewport(value);
-       },
-       
-       /**
-        * Sets the style object for a single series based on its index
-        * 
-        * @method setSeriesStylesByIndex
-        * @param index {Number} The position within the series definition to apply the style
-        * @param style {object} Style object to be applied to the selected series
-        */
-       setSeriesStylesByIndex:function(index, style)
-       {
-               style = YAHOO.lang.JSON.stringify(style);
-               if(this._swf && this._swf.setSeriesStylesByIndex) this._swf.setSeriesStylesByIndex(index, style);
-       }
-});
-/**
- * LineChart class for the YUI Charts widget.
- *
- * @namespace YAHOO.widget
- * @class LineChart
- * @uses YAHOO.widget.CartesianChart
- * @constructor
- * @param containerId {HTMLElement} Container element for the Flash Player instance.
- * @param dataSource {YAHOO.util.DataSource} DataSource instance.
- * @param attributes {object} (optional) Object literal of configuration values.
- */
-YAHOO.widget.LineChart = function(containerId, dataSource, attributes)
-{
-       YAHOO.widget.LineChart.superclass.constructor.call(this, "line", containerId, dataSource, attributes);
-};
-
-YAHOO.lang.extend(YAHOO.widget.LineChart, YAHOO.widget.CartesianChart);
-
-/**
- * ColumnChart class for the YUI Charts widget.
- *
- * @namespace YAHOO.widget
- * @class ColumnChart
- * @uses YAHOO.widget.CartesianChart
- * @constructor
- * @param containerId {HTMLElement} Container element for the Flash Player instance.
- * @param dataSource {YAHOO.util.DataSource} DataSource instance.
- * @param attributes {object} (optional) Object literal of configuration values.
- */
-YAHOO.widget.ColumnChart = function(containerId, dataSource, attributes)
-{
-       YAHOO.widget.ColumnChart.superclass.constructor.call(this, "column", containerId, dataSource, attributes);
-};
-
-YAHOO.lang.extend(YAHOO.widget.ColumnChart, YAHOO.widget.CartesianChart);
-
-/**
- * BarChart class for the YUI Charts widget.
- *
- * @namespace YAHOO.widget
- * @class BarChart
- * @uses YAHOO.widget.CartesianChart
- * @constructor
- * @param containerId {HTMLElement} Container element for the Flash Player instance.
- * @param dataSource {YAHOO.util.DataSource} DataSource instance.
- * @param attributes {object} (optional) Object literal of configuration values.
- */
-YAHOO.widget.BarChart = function(containerId, dataSource, attributes)
-{
-       YAHOO.widget.BarChart.superclass.constructor.call(this, "bar", containerId, dataSource, attributes);
-};
-
-YAHOO.lang.extend(YAHOO.widget.BarChart, YAHOO.widget.CartesianChart);
-
-/**
- * StackedColumnChart class for the YUI Charts widget.
- *
- * @namespace YAHOO.widget
- * @class StackedColumnChart
- * @uses YAHOO.widget.CartesianChart
- * @constructor
- * @param containerId {HTMLElement} Container element for the Flash Player instance.
- * @param dataSource {YAHOO.util.DataSource} DataSource instance.
- * @param attributes {object} (optional) Object literal of configuration values.
- */
-YAHOO.widget.StackedColumnChart = function(containerId, dataSource, attributes)
-{
-       YAHOO.widget.StackedColumnChart.superclass.constructor.call(this, "stackcolumn", containerId, dataSource, attributes);
-};
-
-YAHOO.lang.extend(YAHOO.widget.StackedColumnChart, YAHOO.widget.CartesianChart);
-
-/**
- * StackedBarChart class for the YUI Charts widget.
- *
- * @namespace YAHOO.widget
- * @class StackedBarChart
- * @uses YAHOO.widget.CartesianChart
- * @constructor
- * @param containerId {HTMLElement} Container element for the Flash Player instance.
- * @param dataSource {YAHOO.util.DataSource} DataSource instance.
- * @param attributes {object} (optional) Object literal of configuration values.
- */
-YAHOO.widget.StackedBarChart = function(containerId, dataSource, attributes)
-{
-       YAHOO.widget.StackedBarChart.superclass.constructor.call(this, "stackbar", containerId, dataSource, attributes);
-};
-
-YAHOO.lang.extend(YAHOO.widget.StackedBarChart, YAHOO.widget.CartesianChart);
-/**
- * Defines a CartesianChart's vertical or horizontal axis.
- *
- * @namespace YAHOO.widget
- * @class Axis
- * @constructor
- */
-YAHOO.widget.Axis = function()
-{
-};
-
-YAHOO.widget.Axis.prototype = 
-{
-       /**
-        * The type of axis.
-        *
-        * @property type
-        * @type String
-        */
-       type: null,
-       
-       /**
-        * If true, the items on the axis will be drawn in opposite direction.
-        *
-        * @property reverse
-        * @type Boolean
-        */
-       reverse: false,
-       
-       /**
-        * A string reference to the globally-accessible function that may be called to
-        * determine each of the label values for this axis. Also accepts function references.
-        *
-        * @property labelFunction
-        * @type String
-        */
-       labelFunction: null,
-       
-       /**
-        * The space, in pixels, between labels on an axis.
-        *
-        * @property labelSpacing
-        * @type Number
-        */
-       labelSpacing: 2,
-       
-       /**
-        * The text that will appear next to the axis to indicate information about the data that it displays.
-        *
-        * @property title
-        * @type String
-        */
-       title: null 
-};
-/**
- * A type of axis whose units are measured in numeric values.
- *
- * @namespace YAHOO.widget
- * @class NumericAxis
- * @extends YAHOO.widget.Axis
- * @constructor
- */
-YAHOO.widget.NumericAxis = function()
-{
-       YAHOO.widget.NumericAxis.superclass.constructor.call(this);
-};
-
-YAHOO.lang.extend(YAHOO.widget.NumericAxis, YAHOO.widget.Axis,
-{
-       type: "numeric",
-       
-       /**
-        * The minimum value drawn by the axis. If not set explicitly, the axis minimum
-        * will be calculated automatically.
-        *
-        * @property minimum
-        * @type Number
-        */
-       minimum: NaN,
-       
-       /**
-        * The maximum value drawn by the axis. If not set explicitly, the axis maximum
-        * will be calculated automatically.
-        *
-        * @property maximum
-        * @type Number
-        */
-       maximum: NaN,
-       
-       /**
-        * The spacing between major intervals on this axis.
-        *
-        * @property majorUnit
-        * @type Number
-        */
-       majorUnit: NaN,
-
-       /**
-        * The spacing between minor intervals on this axis.
-        *
-        * @property minorUnit
-        * @type Number
-        */
-       minorUnit: NaN,
-       
-       /**
-        * If true, the labels, ticks, gridlines, and other objects will snap to
-        * the nearest major or minor unit. If false, their position will be based
-        * on the minimum value.
-        *
-        * @property snapToUnits
-        * @type Boolean
-        */
-       snapToUnits: true,
-       
-       /**
-        * Series that are stackable will only stack when this value is set to true.
-        *
-        * @property stackingEnabled
-        * @type Boolean
-        */
-       stackingEnabled: false,
-
-       /**
-        * If true, and the bounds are calculated automatically, either the minimum or
-        * maximum will be set to zero.
-        *
-        * @property alwaysShowZero
-        * @type Boolean
-        */
-       alwaysShowZero: true,
-
-       /**
-        * The scaling algorithm to use on this axis. May be "linear" or "logarithmic".
-        *
-        * @property scale
-        * @type String
-        */
-       scale: "linear",
-       
-       /**
-        * Indicates whether to round the major unit.
-        * 
-        * @property roundMajorUnit
-        * @type Boolean
-        */
-       roundMajorUnit: true, 
-       
-       /**
-        * Indicates whether to factor in the size of the labels when calculating a major unit.
-        *
-        * @property calculateByLabelSize
-        * @type Boolean
-        */
-       calculateByLabelSize: true,
-       
-       /**
-        * Indicates the position of the axis relative to the chart
-        *
-        * @property position
-        * @type String
-        */
-       position:"left",
-       
-       /**
-        * Indicates whether to extend maximum beyond data's maximum to the nearest 
-        * majorUnit.
-        *
-        * @property adjustMaximumByMajorUnit
-        * @type Boolean
-        */
-       adjustMaximumByMajorUnit:true,
-       
-       /**
-        * Indicates whether to extend the minimum beyond data's minimum to the nearest
-        * majorUnit.
-        *
-        * @property adjustMinimumByMajorUnit
-        * @type Boolean
-        */
-       adjustMinimumByMajorUnit:true
-});
-/**
- * A type of axis whose units are measured in time-based values.
- *
- * @namespace YAHOO.widget
- * @class TimeAxis
- * @constructor
- */
-YAHOO.widget.TimeAxis = function()
-{
-       YAHOO.widget.TimeAxis.superclass.constructor.call(this);
-};
-
-YAHOO.lang.extend(YAHOO.widget.TimeAxis, YAHOO.widget.Axis,
-{
-       type: "time",
-       
-       /**
-        * The minimum value drawn by the axis. If not set explicitly, the axis minimum
-        * will be calculated automatically.
-        *
-        * @property minimum
-        * @type Date
-        */
-       minimum: null,
-
-       /**
-        * The maximum value drawn by the axis. If not set explicitly, the axis maximum
-        * will be calculated automatically.
-        *
-        * @property maximum
-        * @type Number
-        */
-       maximum: null,
-       
-       /**
-        * The spacing between major intervals on this axis.
-        *
-        * @property majorUnit
-        * @type Number
-        */
-       majorUnit: NaN,
-       
-       /**
-        * The time unit used by the majorUnit.
-        *
-        * @property majorTimeUnit
-        * @type String
-        */
-       majorTimeUnit: null,
-       
-       /**
-        * The spacing between minor intervals on this axis.
-        *
-        * @property majorUnit
-        * @type Number
-        */
-       minorUnit: NaN,
-       
-       /**
-        * The time unit used by the minorUnit.
-        *
-        * @property majorTimeUnit
-        * @type String
-        */
-       minorTimeUnit: null,
-
-       /**
-        * If true, the labels, ticks, gridlines, and other objects will snap to
-        * the nearest major or minor unit. If false, their position will be based
-        * on the minimum value.
-        *
-        * @property snapToUnits
-        * @type Boolean
-        */
-       snapToUnits: true,
-
-       /**
-        * Series that are stackable will only stack when this value is set to true.
-        *
-        * @property stackingEnabled
-        * @type Boolean
-        */
-       stackingEnabled: false,
-
-       /**
-        * Indicates whether to factor in the size of the labels when calculating a major unit.
-        *
-        * @property calculateByLabelSize
-        * @type Boolean
-        */
-       calculateByLabelSize: true      
-});
-/**
- * A type of axis that displays items in categories.
- *
- * @namespace YAHOO.widget
- * @class CategoryAxis
- * @constructor
- */
-YAHOO.widget.CategoryAxis = function()
-{
-       YAHOO.widget.CategoryAxis.superclass.constructor.call(this);
-};
-
-YAHOO.lang.extend(YAHOO.widget.CategoryAxis, YAHOO.widget.Axis,
-{
-       type: "category",
-       
-       /**
-        * A list of category names to display along this axis.
-        *
-        * @property categoryNames
-        * @type Array
-        */
-       categoryNames: null,
-       
-       /**
-        * Indicates whether or not to calculate the number of categories (ticks and labels)
-        * when there is not enough room to display all labels on the axis. If set to true, the axis 
-        * will determine the number of categories to plot. If not, all categories will be plotted.
-        *
-        * @property calculateCategoryCount
-        * @type Boolean
-        */
-       calculateCategoryCount: false 
-});
- /**
- * Functionality common to most series. Generally, a <code>Series</code> 
- * object shouldn't be instantiated directly. Instead, a subclass with a 
- * concrete implementation should be used.
- *
- * @namespace YAHOO.widget
- * @class Series
- * @constructor
- */
-YAHOO.widget.Series = function() {};
-
-YAHOO.widget.Series.prototype = 
-{
-       /**
-        * The type of series.
-        *
-        * @property type
-        * @type String
-        */
-       type: null,
-       
-       /**
-        * The human-readable name of the series.
-        *
-        * @property displayName
-        * @type String
-        */
-       displayName: null
-};
-
-/**
- * Functionality common to most series appearing in cartesian charts.
- * Generally, a <code>CartesianSeries</code> object shouldn't be
- * instantiated directly. Instead, a subclass with a concrete implementation
- * should be used.
- *
- * @namespace YAHOO.widget
- * @class CartesianSeries
- * @uses YAHOO.widget.Series
- * @constructor
- */
-YAHOO.widget.CartesianSeries = function() 
-{
-       YAHOO.widget.CartesianSeries.superclass.constructor.call(this);
-};
-
-YAHOO.lang.extend(YAHOO.widget.CartesianSeries, YAHOO.widget.Series,
-{
-       /**
-        * The field used to access the x-axis value from the items from the data source.
-        *
-        * @property xField
-        * @type String
-        */
-       xField: null,
-       
-       /**
-        * The field used to access the y-axis value from the items from the data source.
-        *
-        * @property yField
-        * @type String
-        */
-       yField: null,
-       
-       /**
-        * Indicates which axis the series will bind to
-        *
-        * @property axis
-        * @type String
-        */
-       axis: "primary",
-       
-       /**
-        * When a Legend is present, indicates whether the series will show in the legend.
-        * 
-        * @property showInLegend
-        * @type Boolean
-        */
-       showInLegend: true
-});
-
-/**
- * ColumnSeries class for the YUI Charts widget.
- *
- * @namespace YAHOO.widget
- * @class ColumnSeries
- * @uses YAHOO.widget.CartesianSeries
- * @constructor
- */
-YAHOO.widget.ColumnSeries = function() 
-{
-       YAHOO.widget.ColumnSeries.superclass.constructor.call(this);
-};
-
-YAHOO.lang.extend(YAHOO.widget.ColumnSeries, YAHOO.widget.CartesianSeries,
-{
-       type: "column"
-});
-
-/**
- * LineSeries class for the YUI Charts widget.
- *
- * @namespace YAHOO.widget
- * @class LineSeries
- * @uses YAHOO.widget.CartesianSeries
- * @constructor
- */
-YAHOO.widget.LineSeries = function() 
-{
-       YAHOO.widget.LineSeries.superclass.constructor.call(this);
-};
-
-YAHOO.lang.extend(YAHOO.widget.LineSeries, YAHOO.widget.CartesianSeries,
-{
-       type: "line"
-});
-
-
-/**
- * BarSeries class for the YUI Charts widget.
- *
- * @namespace YAHOO.widget
- * @class BarSeries
- * @uses YAHOO.widget.CartesianSeries
- * @constructor
- */
-YAHOO.widget.BarSeries = function() 
-{
-       YAHOO.widget.BarSeries.superclass.constructor.call(this);
-};
-
-YAHOO.lang.extend(YAHOO.widget.BarSeries, YAHOO.widget.CartesianSeries,
-{
-       type: "bar"
-});
-
-
-/**
- * PieSeries class for the YUI Charts widget.
- *
- * @namespace YAHOO.widget
- * @class PieSeries
- * @uses YAHOO.widget.Series
- * @constructor
- */
-YAHOO.widget.PieSeries = function() 
-{
-       YAHOO.widget.PieSeries.superclass.constructor.call(this);
-};
-
-YAHOO.lang.extend(YAHOO.widget.PieSeries, YAHOO.widget.Series,
-{
-       type: "pie",
-       
-       /**
-        * The field used to access the data value from the items from the data source.
-        *
-        * @property dataField
-        * @type String
-        */
-       dataField: null,
-       
-       /**
-        * The field used to access the category value from the items from the data source.
-        *
-        * @property categoryField
-        * @type String
-        */
-       categoryField: null,
-
-       /**
-        * A string reference to the globally-accessible function that may be called to
-        * determine each of the label values for this series. Also accepts function references.
-        *
-        * @property labelFunction
-        * @type String
-        */
-       labelFunction: null
-});
-
-/**
- * StackedBarSeries class for the YUI Charts widget.
- *
- * @namespace YAHOO.widget
- * @class StackedBarSeries
- * @uses YAHOO.widget.CartesianSeries
- * @constructor
- */
-YAHOO.widget.StackedBarSeries = function() 
-{
-       YAHOO.widget.StackedBarSeries.superclass.constructor.call(this);
-};
-
-YAHOO.lang.extend(YAHOO.widget.StackedBarSeries, YAHOO.widget.CartesianSeries,
-{
-       type: "stackbar"
-});
-
-/**
- * StackedColumnSeries class for the YUI Charts widget.
- *
- * @namespace YAHOO.widget
- * @class StackedColumnSeries
- * @uses YAHOO.widget.CartesianSeries
- * @constructor
- */
-YAHOO.widget.StackedColumnSeries = function() 
-{
-       YAHOO.widget.StackedColumnSeries.superclass.constructor.call(this);
-};
-
-YAHOO.lang.extend(YAHOO.widget.StackedColumnSeries, YAHOO.widget.CartesianSeries,
-{
-       type: "stackcolumn"
-});
-YAHOO.register("charts", YAHOO.widget.Chart, {version: "2.8.0r4", build: "2449"});
diff --git a/koha-tmpl/intranet-tmpl/prog/en/lib/yui/colorpicker/assets/colorpicker-core.css b/koha-tmpl/intranet-tmpl/prog/en/lib/yui/colorpicker/assets/colorpicker-core.css
deleted file mode 100644 (file)
index 62d05f6..0000000
+++ /dev/null
@@ -1,6 +0,0 @@
-/*
-Copyright (c) 2009, Yahoo! Inc. All rights reserved.
-Code licensed under the BSD License:
-http://developer.yahoo.net/yui/license.txt
-version: 2.8.0r4
-*/
diff --git a/koha-tmpl/intranet-tmpl/prog/en/lib/yui/colorpicker/assets/hue_thumb.png b/koha-tmpl/intranet-tmpl/prog/en/lib/yui/colorpicker/assets/hue_thumb.png
deleted file mode 100644 (file)
index 14d5db4..0000000
Binary files a/koha-tmpl/intranet-tmpl/prog/en/lib/yui/colorpicker/assets/hue_thumb.png and /dev/null differ
diff --git a/koha-tmpl/intranet-tmpl/prog/en/lib/yui/colorpicker/assets/picker_mask.png b/koha-tmpl/intranet-tmpl/prog/en/lib/yui/colorpicker/assets/picker_mask.png
deleted file mode 100644 (file)
index f8d9193..0000000
Binary files a/koha-tmpl/intranet-tmpl/prog/en/lib/yui/colorpicker/assets/picker_mask.png and /dev/null differ
diff --git a/koha-tmpl/intranet-tmpl/prog/en/lib/yui/colorpicker/assets/picker_thumb.png b/koha-tmpl/intranet-tmpl/prog/en/lib/yui/colorpicker/assets/picker_thumb.png
deleted file mode 100644 (file)
index 78445a2..0000000
Binary files a/koha-tmpl/intranet-tmpl/prog/en/lib/yui/colorpicker/assets/picker_thumb.png and /dev/null differ
diff --git a/koha-tmpl/intranet-tmpl/prog/en/lib/yui/colorpicker/assets/skins/sam/colorpicker-skin.css b/koha-tmpl/intranet-tmpl/prog/en/lib/yui/colorpicker/assets/skins/sam/colorpicker-skin.css
deleted file mode 100644 (file)
index 3012589..0000000
+++ /dev/null
@@ -1,105 +0,0 @@
-/*
-Copyright (c) 2009, Yahoo! Inc. All rights reserved.
-Code licensed under the BSD License:
-http://developer.yahoo.net/yui/license.txt
-version: 2.8.0r4
-*/
-
-.yui-picker-panel {
-    background: #e3e3e3;
-    border-color: #888;
-}
-
-.yui-picker-panel .hd {
-       background-color:#ccc;
-       font-size:100%;
-       line-height:100%;
-       border:1px solid #e3e3e3;
-       font-weight:bold;
-       overflow:hidden;
-       padding: 6px;
-    color: #000;
-}
-
-.yui-picker-panel .bd {
-    background: #e8e8e8;
-    margin: 1px;
-    height: 200px;
-}
-
-.yui-picker-panel .ft {
-    background: #e8e8e8;
-    margin: 1px;
-    padding: 1px;
-             /*
-    text-align: center;
-    */
-}
-
-.yui-picker {
-    position: relative;
-}
-
-.yui-picker-hue-thumb { cursor:default; width:18px; height:18px; 
-top: -8px;
-left: -2px;
-    z-index: 9; position:absolute; }
-.yui-picker-hue-bg {-moz-outline: none; outline:0px none;
-    position:absolute; left:200px; height:183px; width:14px;
-    background:url(hue_bg.png) no-repeat; 
-    top:4px; 
-}
-
-.yui-picker-bg {
-    -moz-outline: none; 
-    outline:0px none; 
-    position:absolute; 
-    top:4px;
-    left:4px; 
-    height:182px; 
-    width:182px; 
-    background-color:#F00; 
-    background-image: url(picker_mask.png);
-} 
-
-*html .yui-picker-bg {
-    background-image: none;
-    filter:progid:DXImageTransform.Microsoft.AlphaImageLoader(src='../../build/colorpicker/assets/picker_mask.png', sizingMethod='scale');
-}
-
-
-.yui-picker-mask { position:absolute; z-index: 1; top:0px; left:0px; } 
-
-.yui-picker-thumb { cursor:default; width:11px; height:11px; z-index: 9; position:absolute; 
-    top:-4px; left:-4px; }
-
-.yui-picker-swatch { position:absolute; left:240px; top:4px; height:60px;
-    width:55px; border:1px solid #888; }
-.yui-picker-websafe-swatch { position:absolute; left:304px; top:4px;
-    height:24px; width:24px; border:1px solid #888; }
-
-.yui-picker-controls { position:absolute; top: 72px; left:226px; font:1em monospace;}
-.yui-picker-controls .hd { background: transparent; border-width: 0px !important;}
-.yui-picker-controls .bd { height: 100px; border-width: 0px !important;}
-.yui-picker-controls ul {float:left;padding:0 2px 0 0;margin:0}
-.yui-picker-controls li {padding:2px;list-style:none;margin:0}
-.yui-picker-controls input { 
-    font-size: 0.85em;
-    width: 2.4em;
-}
-.yui-picker-hex-controls { 
-    clear: both; 
-    padding: 2px;
-}
-.yui-picker-hex-controls input { 
-    width: 4.6em;
-}
-
-.yui-picker-controls a {
-    font: 1em arial,helvetica,clean,sans-serif;
-    display:block;
-    *display:inline-block; /* IE */
-    padding: 0;
-    color: #000;
-
-}
diff --git a/koha-tmpl/intranet-tmpl/prog/en/lib/yui/colorpicker/assets/skins/sam/colorpicker.css b/koha-tmpl/intranet-tmpl/prog/en/lib/yui/colorpicker/assets/skins/sam/colorpicker.css
deleted file mode 100644 (file)
index aaec21a..0000000
+++ /dev/null
@@ -1,7 +0,0 @@
-/*
-Copyright (c) 2009, Yahoo! Inc. All rights reserved.
-Code licensed under the BSD License:
-http://developer.yahoo.net/yui/license.txt
-version: 2.8.0r4
-*/
-.yui-picker-panel{background:#e3e3e3;border-color:#888;}.yui-picker-panel .hd{background-color:#ccc;font-size:100%;line-height:100%;border:1px solid #e3e3e3;font-weight:bold;overflow:hidden;padding:6px;color:#000;}.yui-picker-panel .bd{background:#e8e8e8;margin:1px;height:200px;}.yui-picker-panel .ft{background:#e8e8e8;margin:1px;padding:1px;}.yui-picker{position:relative;}.yui-picker-hue-thumb{cursor:default;width:18px;height:18px;top:-8px;left:-2px;z-index:9;position:absolute;}.yui-picker-hue-bg{-moz-outline:none;outline:0 none;position:absolute;left:200px;height:183px;width:14px;background:url(hue_bg.png) no-repeat;top:4px;}.yui-picker-bg{-moz-outline:none;outline:0 none;position:absolute;top:4px;left:4px;height:182px;width:182px;background-color:#F00;background-image:url(picker_mask.png);}*html .yui-picker-bg{background-image:none;filter:progid:DXImageTransform.Microsoft.AlphaImageLoader(src='../../build/colorpicker/assets/picker_mask.png',sizingMethod='scale');}.yui-picker-mask{position:absolute;z-index:1;top:0;left:0;}.yui-picker-thumb{cursor:default;width:11px;height:11px;z-index:9;position:absolute;top:-4px;left:-4px;}.yui-picker-swatch{position:absolute;left:240px;top:4px;height:60px;width:55px;border:1px solid #888;}.yui-picker-websafe-swatch{position:absolute;left:304px;top:4px;height:24px;width:24px;border:1px solid #888;}.yui-picker-controls{position:absolute;top:72px;left:226px;font:1em monospace;}.yui-picker-controls .hd{background:transparent;border-width:0!important;}.yui-picker-controls .bd{height:100px;border-width:0!important;}.yui-picker-controls ul{float:left;padding:0 2px 0 0;margin:0;}.yui-picker-controls li{padding:2px;list-style:none;margin:0;}.yui-picker-controls input{font-size:.85em;width:2.4em;}.yui-picker-hex-controls{clear:both;padding:2px;}.yui-picker-hex-controls input{width:4.6em;}.yui-picker-controls a{font:1em arial,helvetica,clean,sans-serif;display:block;*display:inline-block;padding:0;color:#000;}
diff --git a/koha-tmpl/intranet-tmpl/prog/en/lib/yui/colorpicker/assets/skins/sam/hue_bg.png b/koha-tmpl/intranet-tmpl/prog/en/lib/yui/colorpicker/assets/skins/sam/hue_bg.png
deleted file mode 100644 (file)
index d9bcdeb..0000000
Binary files a/koha-tmpl/intranet-tmpl/prog/en/lib/yui/colorpicker/assets/skins/sam/hue_bg.png and /dev/null differ
diff --git a/koha-tmpl/intranet-tmpl/prog/en/lib/yui/colorpicker/assets/skins/sam/picker_mask.png b/koha-tmpl/intranet-tmpl/prog/en/lib/yui/colorpicker/assets/skins/sam/picker_mask.png
deleted file mode 100644 (file)
index f8d9193..0000000
Binary files a/koha-tmpl/intranet-tmpl/prog/en/lib/yui/colorpicker/assets/skins/sam/picker_mask.png and /dev/null differ
diff --git a/koha-tmpl/intranet-tmpl/prog/en/lib/yui/colorpicker/colorpicker-debug.js b/koha-tmpl/intranet-tmpl/prog/en/lib/yui/colorpicker/colorpicker-debug.js
deleted file mode 100644 (file)
index 9920c0e..0000000
+++ /dev/null
@@ -1,1783 +0,0 @@
-/*
-Copyright (c) 2009, Yahoo! Inc. All rights reserved.
-Code licensed under the BSD License:
-http://developer.yahoo.net/yui/license.txt
-version: 2.8.0r4
-*/
-/**
- * Provides color conversion and validation utils
- * @class YAHOO.util.Color
- * @namespace YAHOO.util
- */
-YAHOO.util.Color = function() {
-
-    var ZERO     = "0",
-        isArray  = YAHOO.lang.isArray,
-        isNumber = YAHOO.lang.isNumber;
-
-    return {
-
-        /**
-         * Converts 0-1 to 0-255
-         * @method real2dec
-         * @param n {float} the number to convert
-         * @return {int} a number 0-255
-         */
-        real2dec: function(n) {
-            return Math.min(255, Math.round(n*256));
-        },
-
-        /**
-         * Converts HSV (h[0-360], s[0-1]), v[0-1] to RGB [255,255,255]
-         * @method hsv2rgb
-         * @param h {int|[int, float, float]} the hue, or an
-         *        array containing all three parameters
-         * @param s {float} the saturation
-         * @param v {float} the value/brightness
-         * @return {[int, int, int]} the red, green, blue values in
-         *          decimal.
-         */
-        hsv2rgb: function(h, s, v) { 
-
-            if (isArray(h)) {
-                return this.hsv2rgb.call(this, h[0], h[1], h[2]);
-            }
-
-            var r, g, b,
-                i = Math.floor((h/60)%6),
-                f = (h/60)-i,
-                p = v*(1-s),
-                q = v*(1-f*s),
-                t = v*(1-(1-f)*s),
-                fn;
-
-            switch (i) {
-                case 0: r=v; g=t; b=p; break;
-                case 1: r=q; g=v; b=p; break;
-                case 2: r=p; g=v; b=t; break;
-                case 3: r=p; g=q; b=v; break;
-                case 4: r=t; g=p; b=v; break;
-                case 5: r=v; g=p; b=q; break;
-            }
-
-            fn=this.real2dec;
-
-            return [fn(r), fn(g), fn(b)];
-        },
-
-        /**
-         * Converts to RGB [255,255,255] to HSV (h[0-360], s[0-1]), v[0-1]
-         * @method rgb2hsv
-         * @param r {int|[int, int, int]} the red value, or an
-         *        array containing all three parameters
-         * @param g {int} the green value
-         * @param b {int} the blue value
-         * @return {[int, float, float]} the value converted to hsv
-         */
-        rgb2hsv: function(r, g, b) {
-
-            if (isArray(r)) {
-                return this.rgb2hsv.apply(this, r);
-            }
-
-            r /= 255;
-            g /= 255;
-            b /= 255;
-
-            var h,s,
-                min = Math.min(Math.min(r,g),b),
-                max = Math.max(Math.max(r,g),b),
-                delta = max-min,
-                hsv;
-
-            switch (max) {
-                case min: h=0; break;
-                case r:   h=60*(g-b)/delta; 
-                          if (g<b) {
-                              h+=360;
-                          }
-                          break;
-                case g:   h=(60*(b-r)/delta)+120; break;
-                case b:   h=(60*(r-g)/delta)+240; break;
-            }
-            
-            s = (max === 0) ? 0 : 1-(min/max);
-
-            hsv = [Math.round(h), s, max];
-
-            return hsv;
-        },
-
-        /**
-         * Converts decimal rgb values into a hex string
-         * 255,255,255 -> FFFFFF
-         * @method rgb2hex
-         * @param r {int|[int, int, int]} the red value, or an
-         *        array containing all three parameters
-         * @param g {int} the green value
-         * @param b {int} the blue value
-         * @return {string} the hex string
-         */
-        rgb2hex: function(r, g, b) {
-            if (isArray(r)) {
-                return this.rgb2hex.apply(this, r);
-            }
-
-            var f=this.dec2hex;
-            return f(r) + f(g) + f(b);
-        },
-     
-        /**
-         * Converts an int 0...255 to hex pair 00...FF
-         * @method dec2hex
-         * @param n {int} the number to convert
-         * @return {string} the hex equivalent
-         */
-        dec2hex: function(n) {
-            n = parseInt(n,10)|0;
-            n = (n > 255 || n < 0) ? 0 : n;
-
-            return (ZERO+n.toString(16)).slice(-2).toUpperCase();
-        },
-
-        /**
-         * Converts a hex pair 00...FF to an int 0...255 
-         * @method hex2dec
-         * @param str {string} the hex pair to convert
-         * @return {int} the decimal
-         */
-        hex2dec: function(str) {
-            return parseInt(str,16);
-        },
-
-        /**
-         * Converts a hex string to rgb
-         * @method hex2rgb
-         * @param str {string} the hex string
-         * @return {[int, int, int]} an array containing the rgb values
-         */
-        hex2rgb: function(s) { 
-            var f = this.hex2dec;
-            return [f(s.slice(0, 2)), f(s.slice(2, 4)), f(s.slice(4, 6))];
-        },
-
-        /**
-         * Returns the closest websafe color to the supplied rgb value.
-         * @method websafe
-         * @param r {int|[int, int, int]} the red value, or an
-         *        array containing all three parameters
-         * @param g {int} the green value
-         * @param b {int} the blue value
-         * @return {[int, int, int]} an array containing the closes
-         *                           websafe rgb colors.
-         */
-        websafe: function(r, g, b) {
-
-            if (isArray(r)) {
-                return this.websafe.apply(this, r);
-            }
-
-            // returns the closest match [0, 51, 102, 153, 204, 255]
-            var f = function(v) {
-                if (isNumber(v)) {
-                    v = Math.min(Math.max(0, v), 255);
-                    var i, next;
-                    for (i=0; i<256; i=i+51) {
-                        next = i+51;
-                        if (v >= i && v <= next) {
-                            return (v-i > 25) ? next : i;
-                        }
-                    }
- YAHOO.log("Error calculating the websafe value for " + v, "warn");
-                }
-
-                return v;
-            };
-
-            return [f(r), f(g), f(b)];
-        }
-    };
-}();
-
-
-/**
- * The colorpicker module provides a widget for selecting colors
- * @module colorpicker
- * @requires yahoo, dom, event, element, slider
- */
-(function() {
-
-    var _pickercount = 0,
-        util   = YAHOO.util,
-        lang   = YAHOO.lang,
-        Slider = YAHOO.widget.Slider,
-        Color  = util.Color,
-        Dom    = util.Dom,
-        Event  = util.Event,
-        sub    = lang.substitute,
-        
-        b = "yui-picker";
-    
-
-    /**
-     * A widget to select colors
-     * @namespace YAHOO.widget
-     * @class YAHOO.widget.ColorPicker
-     * @extends YAHOO.util.Element
-     * @constructor
-     * @param {HTMLElement | String | Object} el(optional) The html 
-     * element that represents the colorpicker, or the attribute object to use. 
-     * An element will be created if none provided.
-     * @param {Object} attr (optional) A key map of the colorpicker's 
-     * initial attributes.  Ignored if first arg is attributes object.
-     */
-    function ColorPicker(el, attr) {
-        _pickercount = _pickercount + 1;
-        this.logger = new YAHOO.widget.LogWriter("ColorPicker");
-        attr = attr || {};
-        if (arguments.length === 1 && !YAHOO.lang.isString(el) && !el.nodeName) {
-            attr = el; // treat first arg as attr object
-            el = attr.element || null;
-        }
-        
-        if (!el && !attr.element) { // create if we dont have one
-            this.logger.log("creating host element");
-            el = this._createHostElement(attr);
-        }
-
-       ColorPicker.superclass.constructor.call(this, el, attr); 
-
-        this.initPicker();
-    }
-
-    YAHOO.extend(ColorPicker, YAHOO.util.Element, {
-    
-        /**
-         * The element ids used by this control
-         * @property ID
-         * @final
-         */
-        ID : {
-
-            /**
-             * The id for the "red" form field
-             * @property ID.R
-             * @type String
-             * @final
-             * @default yui-picker-r
-             */
-            R: b + "-r",
-
-            /**
-             * The id for the "red" hex pair output
-             * @property ID.R_HEX
-             * @type String
-             * @final
-             * @default yui-picker-rhex
-             */
-            R_HEX: b + "-rhex",
-
-            /**
-             * The id for the "green" form field
-             * @property ID.G
-             * @type String
-             * @final
-             * @default yui-picker-g
-             */
-            G: b + "-g",
-
-            /**
-             * The id for the "green" hex pair output
-             * @property ID.G_HEX
-             * @type String
-             * @final
-             * @default yui-picker-ghex
-             */
-            G_HEX: b + "-ghex",
-
-
-            /**
-             * The id for the "blue" form field
-             * @property ID.B
-             * @type String
-             * @final
-             * @default yui-picker-b
-             */
-            B: b + "-b",
-
-            /**
-             * The id for the "blue" hex pair output
-             * @property ID.B_HEX
-             * @type String
-             * @final
-             * @default yui-picker-bhex
-             */
-            B_HEX: b + "-bhex",
-
-            /**
-             * The id for the "hue" form field
-             * @property ID.H
-             * @type String
-             * @final
-             * @default yui-picker-h
-             */
-            H: b + "-h",
-
-            /**
-             * The id for the "saturation" form field
-             * @property ID.S
-             * @type String
-             * @final
-             * @default yui-picker-s
-             */
-            S: b + "-s",
-
-            /**
-             * The id for the "value" form field
-             * @property ID.V
-             * @type String
-             * @final
-             * @default yui-picker-v
-             */
-            V: b + "-v",
-
-            /**
-             * The id for the picker region slider
-             * @property ID.PICKER_BG
-             * @type String
-             * @final
-             * @default yui-picker-bg
-             */
-            PICKER_BG:      b + "-bg",
-
-            /**
-             * The id for the picker region thumb
-             * @property ID.PICKER_THUMB
-             * @type String
-             * @final
-             * @default yui-picker-thumb
-             */
-            PICKER_THUMB:   b + "-thumb",
-
-            /**
-             * The id for the hue slider
-             * @property ID.HUE_BG
-             * @type String
-             * @final
-             * @default yui-picker-hue-bg
-             */
-            HUE_BG:         b + "-hue-bg",
-
-            /**
-             * The id for the hue thumb
-             * @property ID.HUE_THUMB
-             * @type String
-             * @final
-             * @default yui-picker-hue-thumb
-             */
-            HUE_THUMB:      b + "-hue-thumb",
-
-            /**
-             * The id for the hex value form field
-             * @property ID.HEX
-             * @type String
-             * @final
-             * @default yui-picker-hex
-             */
-            HEX:            b + "-hex",
-
-            /**
-             * The id for the color swatch
-             * @property ID.SWATCH
-             * @type String
-             * @final
-             * @default yui-picker-swatch
-             */
-            SWATCH:         b + "-swatch",
-
-            /**
-             * The id for the websafe color swatch
-             * @property ID.WEBSAFE_SWATCH
-             * @type String
-             * @final
-             * @default yui-picker-websafe-swatch
-             */
-            WEBSAFE_SWATCH: b + "-websafe-swatch",
-
-            /**
-             * The id for the control details
-             * @property ID.CONTROLS
-             * @final
-             * @default yui-picker-controls
-             */
-            CONTROLS: b + "-controls",
-
-            /**
-             * The id for the rgb controls
-             * @property ID.RGB_CONTROLS
-             * @final
-             * @default yui-picker-rgb-controls
-             */
-            RGB_CONTROLS: b + "-rgb-controls",
-
-            /**
-             * The id for the hsv controls
-             * @property ID.HSV_CONTROLS
-             * @final
-             * @default yui-picker-hsv-controls
-             */
-            HSV_CONTROLS: b + "-hsv-controls",
-            
-            /**
-             * The id for the hsv controls
-             * @property ID.HEX_CONTROLS
-             * @final
-             * @default yui-picker-hex-controls
-             */
-            HEX_CONTROLS: b + "-hex-controls",
-
-            /**
-             * The id for the hex summary
-             * @property ID.HEX_SUMMARY
-             * @final
-             * @default yui-picker-hex-summary
-             */
-            HEX_SUMMARY: b + "-hex-summary",
-
-            /**
-             * The id for the controls section header
-             * @property ID.CONTROLS_LABEL
-             * @final
-             * @default yui-picker-controls-label
-             */
-            CONTROLS_LABEL: b + "-controls-label"
-        },
-
-        /**
-         * Constants for any script-generated messages.  The values here
-         * are the default messages.  They can be updated by providing
-         * the complete list to the constructor for the "txt" attribute.
-         * @property TXT
-         * @final
-         */
-        TXT : {
-            ILLEGAL_HEX: "Illegal hex value entered",
-            SHOW_CONTROLS: "Show color details",
-            HIDE_CONTROLS: "Hide color details",
-            CURRENT_COLOR: "Currently selected color: {rgb}",
-            CLOSEST_WEBSAFE: "Closest websafe color: {rgb}. Click to select.",
-            R: "R",
-            G: "G",
-            B: "B",
-            H: "H",
-            S: "S",
-            V: "V",
-            HEX: "#",
-            DEG: "\u00B0",
-            PERCENT: "%"
-        },
-
-        /**
-         * Constants for the default image locations for img tags that are
-         * generated by the control.  They can be modified by passing the
-         * complete list to the contructor for the "images" attribute
-         * @property IMAGE
-         * @final
-         */
-        IMAGE : {
-            PICKER_THUMB: "../../build/colorpicker/assets/picker_thumb.png",
-            HUE_THUMB: "../../build/colorpicker/assets/hue_thumb.png"
-        },
-
-        /**
-         * Constants for the control's default default values
-         * @property DEFAULT
-         * @final
-         */
-        DEFAULT : {
-            PICKER_SIZE: 180
-        },
-
-        /**
-         * Constants for the control's configuration attributes
-         * @property OPT
-         * @final
-         */
-        OPT : {
-            HUE         : "hue",
-            SATURATION  : "saturation",
-            VALUE       : "value",
-            RED     : "red",
-            GREEN   : "green",
-            BLUE    : "blue",
-            HSV     : "hsv",
-            RGB     : "rgb",
-            WEBSAFE : "websafe",
-            HEX     : "hex",
-            PICKER_SIZE       : "pickersize",
-            SHOW_CONTROLS     : "showcontrols",
-            SHOW_RGB_CONTROLS : "showrgbcontrols",
-            SHOW_HSV_CONTROLS : "showhsvcontrols",
-            SHOW_HEX_CONTROLS : "showhexcontrols",
-            SHOW_HEX_SUMMARY  : "showhexsummary",
-            SHOW_WEBSAFE      : "showwebsafe",
-            CONTAINER         : "container",
-            IDS      : "ids",
-            ELEMENTS : "elements",
-            TXT      : "txt",
-            IMAGES   : "images",
-            ANIMATE  : "animate"
-        },
-
-        /**
-         * Flag to allow individual UI updates to forego animation if available.
-         * True during construction for initial thumb placement.  Set to false
-         * after that.
-         *
-         * @property skipAnim
-         * @type Boolean
-         * @default true
-         */
-        skipAnim : true,
-
-        /**
-         * Creates the host element if it doesn't exist
-         * @method _createHostElement
-         * @protected
-         */
-        _createHostElement : function () {
-            var el = document.createElement('div');
-
-            if (this.CSS.BASE) {
-                el.className = this.CSS.BASE;
-            }
-            
-            return el;
-        },
-
-        /**
-         * Moves the hue slider into the position dictated by the current state
-         * of the control
-         * @method _updateHueSlider
-         * @protected
-         */
-        _updateHueSlider : function() {
-            var size = this.get(this.OPT.PICKER_SIZE),
-                h = this.get(this.OPT.HUE);
-
-            h = size - Math.round(h / 360 * size);
-            
-            // 0 is at the top and bottom of the hue slider.  Always go to
-            // the top so we don't end up sending the thumb to the bottom
-            // when the value didn't actually change (e.g., a conversion
-            // produced 360 instead of 0 and the value was already 0).
-            if (h === size) {
-                h = 0;
-            }
-            this.logger.log("Hue slider is being set to " + h);
-
-            this.hueSlider.setValue(h, this.skipAnim);
-        },
-
-        /**
-         * Moves the picker slider into the position dictated by the current state
-         * of the control
-         * @method _updatePickerSlider
-         * @protected
-         */
-        _updatePickerSlider : function() {
-            var size = this.get(this.OPT.PICKER_SIZE),
-                s = this.get(this.OPT.SATURATION),
-                v = this.get(this.OPT.VALUE);
-
-            s = Math.round(s * size / 100);
-            v = Math.round(size - (v * size / 100));
-
-            this.logger.log("Setting picker slider to " + [s, v]);
-
-            this.pickerSlider.setRegionValue(s, v, this.skipAnim);
-        },
-
-        /**
-         * Moves the sliders into the position dictated by the current state
-         * of the control
-         * @method _updateSliders
-         * @protected
-         */
-        _updateSliders : function() {
-            this._updateHueSlider();
-            this._updatePickerSlider();
-        },
-
-        /**
-         * Sets the control to the specified rgb value and
-         * moves the sliders to the proper positions
-         * @method setValue
-         * @param rgb {[int, int, int]} the rgb value
-         * @param silent {boolean} whether or not to fire the change event
-         */
-        setValue : function(rgb, silent) {
-            silent = (silent) || false;
-            this.set(this.OPT.RGB, rgb, silent);
-            this._updateSliders();
-        },
-
-        /**
-         * The hue slider
-         * @property hueSlider
-         * @type YAHOO.widget.Slider
-         */
-        hueSlider : null,
-        
-        /**
-         * The picker region
-         * @property pickerSlider
-         * @type YAHOO.widget.Slider
-         */
-        pickerSlider : null,
-
-        /**
-         * Translates the slider value into hue, int[0,359]
-         * @method _getH
-         * @protected
-         * @return {int} the hue from 0 to 359
-         */
-        _getH : function() {
-            var size = this.get(this.OPT.PICKER_SIZE),
-                h = (size - this.hueSlider.getValue()) / size;
-            h = Math.round(h*360);
-            return (h === 360) ? 0 : h;
-        },
-
-        /**
-         * Translates the slider value into saturation, int[0,1], left to right
-         * @method _getS
-         * @protected
-         * @return {int} the saturation from 0 to 1
-         */
-        _getS : function() {
-            return this.pickerSlider.getXValue() / this.get(this.OPT.PICKER_SIZE);
-        },
-
-        /**
-         * Translates the slider value into value/brightness, int[0,1], top
-         * to bottom
-         * @method _getV
-         * @protected
-         * @return {int} the value from 0 to 1
-         */
-        _getV : function() {
-            var size = this.get(this.OPT.PICKER_SIZE);
-            return (size - this.pickerSlider.getYValue()) / size;
-        },
-
-        /**
-         * Updates the background of the swatch with the current rbg value.
-         * Also updates the websafe swatch to the closest websafe color
-         * @method _updateSwatch
-         * @protected
-         */
-        _updateSwatch : function() {
-            var rgb = this.get(this.OPT.RGB),
-                websafe = this.get(this.OPT.WEBSAFE),
-                el = this.getElement(this.ID.SWATCH),
-                color = rgb.join(","),
-                txt = this.get(this.OPT.TXT);
-
-            Dom.setStyle(el, "background-color", "rgb(" + color  + ")");
-            el.title = sub(txt.CURRENT_COLOR, {
-                    "rgb": "#" + this.get(this.OPT.HEX)
-                });
-
-
-            el = this.getElement(this.ID.WEBSAFE_SWATCH);
-            color = websafe.join(",");
-
-            Dom.setStyle(el, "background-color", "rgb(" + color + ")");
-            el.title = sub(txt.CLOSEST_WEBSAFE, {
-                    "rgb": "#" + Color.rgb2hex(websafe)
-                });
-
-        },
-
-        /**
-         * Reads the sliders and converts the values to RGB, updating the
-         * internal state for all the individual form fields
-         * @method _getValuesFromSliders
-         * @protected
-         */
-        _getValuesFromSliders : function() {
-            this.logger.log("hsv " + [this._getH(),this._getS(),this._getV()]);
-            this.set(this.OPT.RGB, Color.hsv2rgb(this._getH(), this._getS(), this._getV()));
-        },
-
-        /**
-         * Updates the form field controls with the state data contained
-         * in the control.
-         * @method _updateFormFields
-         * @protected
-         */
-        _updateFormFields : function() {
-            this.getElement(this.ID.H).value = this.get(this.OPT.HUE);
-            this.getElement(this.ID.S).value = this.get(this.OPT.SATURATION);
-            this.getElement(this.ID.V).value = this.get(this.OPT.VALUE);
-            this.getElement(this.ID.R).value = this.get(this.OPT.RED);
-            this.getElement(this.ID.R_HEX).innerHTML = Color.dec2hex(this.get(this.OPT.RED));
-            this.getElement(this.ID.G).value = this.get(this.OPT.GREEN);
-            this.getElement(this.ID.G_HEX).innerHTML = Color.dec2hex(this.get(this.OPT.GREEN));
-            this.getElement(this.ID.B).value = this.get(this.OPT.BLUE);
-            this.getElement(this.ID.B_HEX).innerHTML = Color.dec2hex(this.get(this.OPT.BLUE));
-            this.getElement(this.ID.HEX).value = this.get(this.OPT.HEX);
-        },
-
-        /**
-         * Event handler for the hue slider.
-         * @method _onHueSliderChange
-         * @param newOffset {int} pixels from the start position
-         * @protected
-         */
-        _onHueSliderChange : function(newOffset) {
-            this.logger.log("hue update: " + newOffset , "warn");
-
-            var h        = this._getH(),
-                rgb      = Color.hsv2rgb(h, 1, 1),
-                styleDef = "rgb(" + rgb.join(",") + ")";
-
-            this.set(this.OPT.HUE, h, true);
-
-            // set picker background to the hue
-            Dom.setStyle(this.getElement(this.ID.PICKER_BG), "background-color", styleDef);
-
-            if (this.hueSlider.valueChangeSource !== Slider.SOURCE_SET_VALUE) {
-                this._getValuesFromSliders();
-            }
-
-            this._updateFormFields();
-            this._updateSwatch();
-        },
-
-        /**
-         * Event handler for the picker slider, which controls the
-         * saturation and value/brightness.
-         * @method _onPickerSliderChange
-         * @param newOffset {{x: int, y: int}} x/y pixels from the start position
-         * @protected
-         */
-        _onPickerSliderChange : function(newOffset) {
-            this.logger.log(sub("picker update [{x}, {y}]", newOffset));
-
-            var s=this._getS(), v=this._getV();
-            this.set(this.OPT.SATURATION, Math.round(s*100), true);
-            this.set(this.OPT.VALUE, Math.round(v*100), true);
-
-            if (this.pickerSlider.valueChangeSource !== Slider.SOURCE_SET_VALUE) {
-                this._getValuesFromSliders();
-            }
-
-            this._updateFormFields();
-            this._updateSwatch();
-        },
-
-
-        /**
-         * Key map to well-known commands for txt field input
-         * @method _getCommand
-         * @param e {Event} the keypress or keydown event
-         * @return {int} a command code
-         * <ul>
-         * <li>0 = not a number, letter in range, or special key</li>
-         * <li>1 = number</li>
-         * <li>2 = a-fA-F</li>
-         * <li>3 = increment (up arrow)</li>
-         * <li>4 = decrement (down arrow)</li>
-         * <li>5 = special key (tab, delete, return, escape, left, right)</li> 
-         * <li>6 = return</li>
-         * </ul>
-         * @protected
-         */
-        _getCommand : function(e) {
-            var c = Event.getCharCode(e);
-
-            //alert(Event.getCharCode(e) + ", " + e.keyCode + ", " + e.charCode);
-
-            // special keys
-            if (c === 38) { // up arrow
-                return 3;
-            } else if (c === 13) { // return
-                return 6;
-            } else if (c === 40) { // down array
-                return 4;
-            } else if (c >= 48 && c<=57) { // 0-9
-                return 1;
-            } else if (c >= 97 && c<=102) { // a-f
-                return 2;
-            } else if (c >= 65 && c<=70) { // A-F
-                return 2;
-            //} else if ("8, 9, 13, 27, 37, 39".indexOf(c) > -1 || 
-            //              (c >= 112 && c <=123)) { // including F-keys
-            // tab, delete, return, escape, left, right or ctrl/meta sequences
-            } else if ("8, 9, 13, 27, 37, 39".indexOf(c) > -1 ||
-                       e.ctrlKey || e.metaKey) { // special chars
-                return 5;
-            } else { // something we probably don't want
-                return 0;
-            }
-        },
-
-        /**
-         * Use the value of the text field to update the control
-         * @method _useFieldValue
-         * @param e {Event} an event
-         * @param el {HTMLElement} the field
-         * @param prop {string} the key to the linked property
-         * @protected
-         */
-        _useFieldValue : function(e, el, prop) {
-            var val = el.value;
-
-            if (prop !== this.OPT.HEX) {
-                val = parseInt(val, 10);
-            }
-
-            if (val !== this.get(prop)) {
-                this.set(prop, val);
-            }
-        },
-
-        /**
-         * Handle keypress on one of the rgb or hsv fields.
-         * @method _rgbFieldKeypress
-         * @param e {Event} the keypress event
-         * @param el {HTMLElement} the field
-         * @param prop {string} the key to the linked property
-         * @protected
-         */
-        _rgbFieldKeypress : function(e, el, prop) {
-            var command = this._getCommand(e),
-                inc = (e.shiftKey) ? 10 : 1;
-            switch (command) {
-                case 6: // return, update the value
-                    this._useFieldValue.apply(this, arguments);
-                    break;
-                            
-                case 3: // up arrow, increment
-                    this.set(prop, Math.min(this.get(prop)+inc, 255));
-                    this._updateFormFields();
-                    //Event.stopEvent(e);
-                    break;
-                case 4: // down arrow, decrement
-                    this.set(prop, Math.max(this.get(prop)-inc, 0));
-                    this._updateFormFields();
-                    //Event.stopEvent(e);
-                    break;
-
-                default:
-            }
-
-        },
-
-        /**
-         * Handle keydown on the hex field
-         * @method _hexFieldKeypress
-         * @param e {Event} the keypress event
-         * @param el {HTMLElement} the field
-         * @param prop {string} the key to the linked property
-         * @protected
-         */
-        _hexFieldKeypress : function(e, el, prop) {
-            var command = this._getCommand(e);
-            if (command === 6) { // return, update the value
-                this._useFieldValue.apply(this, arguments);
-            }
-        },
-
-        /** 
-         * Allows numbers and special chars, and by default allows a-f.  
-         * Used for the hex field keypress handler.
-         * @method _hexOnly
-         * @param e {Event} the event
-         * @param numbersOnly omits a-f if set to true
-         * @protected
-         * @return {boolean} false if we are canceling the event
-         */
-        _hexOnly : function(e, numbersOnly) {
-            var command = this._getCommand(e);
-            switch (command) {
-                case 6: // return
-                case 5: // special char
-                case 1: // number
-                    break;
-                case 2: // hex char (a-f)
-                    if (numbersOnly !== true) {
-                        break;
-                    }
-
-                    // fallthrough is intentional
-
-                default: // prevent alpha and punctuation
-                    Event.stopEvent(e);
-                    return false;
-            }
-        },
-
-        /** 
-         * Allows numbers and special chars only.  Used for the
-         * rgb and hsv fields keypress handler.
-         * @method _numbersOnly
-         * @param e {Event} the event
-         * @protected
-         * @return {boolean} false if we are canceling the event
-         */
-        _numbersOnly : function(e) {
-            return this._hexOnly(e, true);
-        },
-
-        /**
-         * Returns the element reference that is saved.  The id can be either
-         * the element id, or the key for this id in the "id" config attribute.
-         * For instance, the host element id can be obtained by passing its
-         * id (default: "yui_picker") or by its key "YUI_PICKER".
-         * @param id {string} the element id, or key 
-         * @return {HTMLElement} a reference to the element
-         */
-        getElement : function(id) { 
-            return this.get(this.OPT.ELEMENTS)[this.get(this.OPT.IDS)[id]]; 
-        },
-
-        _createElements : function() {
-            this.logger.log("Building markup");
-            var el, child, img, fld, p,
-                ids = this.get(this.OPT.IDS),
-                txt = this.get(this.OPT.TXT),
-                images = this.get(this.OPT.IMAGES),
-                Elem = function(type, o) {
-                    var n = document.createElement(type);
-                    if (o) {
-                        lang.augmentObject(n, o, true);
-                    }
-                    return n;
-                },
-                RGBElem = function(type, obj) {
-                    var o = lang.merge({
-                            //type: "txt",
-                            autocomplete: "off",
-                            value: "0",
-                            size: 3,
-                            maxlength: 3
-                        }, obj);
-
-                    o.name = o.id;
-                    return new Elem(type, o);
-                };
-
-            p = this.get("element");
-
-            // Picker slider (S and V) ---------------------------------------------
-
-            el = new Elem("div", {
-                id: ids[this.ID.PICKER_BG],
-                className: "yui-picker-bg",
-                tabIndex: -1,
-                hideFocus: true
-            });
-
-            child = new Elem("div", {
-                id: ids[this.ID.PICKER_THUMB],
-                className: "yui-picker-thumb"
-            });
-
-            img = new Elem("img", {
-                src: images.PICKER_THUMB
-            });
-
-            child.appendChild(img);
-            el.appendChild(child);
-            p.appendChild(el);
-            
-            // Hue slider ---------------------------------------------
-            el = new Elem("div", {
-                id: ids[this.ID.HUE_BG],
-                className: "yui-picker-hue-bg",
-                tabIndex: -1,
-                hideFocus: true
-            });
-
-            child = new Elem("div", {
-                id: ids[this.ID.HUE_THUMB],
-                className: "yui-picker-hue-thumb"
-            });
-
-            img = new Elem("img", {
-                src: images.HUE_THUMB
-            });
-
-            child.appendChild(img);
-            el.appendChild(child);
-            p.appendChild(el);
-
-
-            // controls ---------------------------------------------
-
-            el = new Elem("div", {
-                id: ids[this.ID.CONTROLS],
-                className: "yui-picker-controls"
-            });
-
-            p.appendChild(el);
-            p = el;
-
-                // controls header
-                el = new Elem("div", {
-                    className: "hd"
-                });
-
-                child = new Elem("a", {
-                    id: ids[this.ID.CONTROLS_LABEL],
-                    //className: "yui-picker-controls-label",
-                    href: "#"
-                });
-                el.appendChild(child);
-                p.appendChild(el);
-
-                // bd
-                el = new Elem("div", {
-                    className: "bd"
-                });
-
-                p.appendChild(el);
-                p = el;
-
-                    // rgb
-                    el = new Elem("ul", {
-                        id: ids[this.ID.RGB_CONTROLS],
-                        className: "yui-picker-rgb-controls"
-                    });
-
-                    child = new Elem("li");
-                    child.appendChild(document.createTextNode(txt.R + " "));
-
-                    fld = new RGBElem("input", {
-                        id: ids[this.ID.R],
-                        className: "yui-picker-r"
-                    });
-
-                    child.appendChild(fld);
-                    el.appendChild(child);
-
-                    child = new Elem("li");
-                    child.appendChild(document.createTextNode(txt.G + " "));
-
-                    fld = new RGBElem("input", {
-                        id: ids[this.ID.G],
-                        className: "yui-picker-g"
-                    });
-
-                    child.appendChild(fld);
-                    el.appendChild(child);
-
-                    child = new Elem("li");
-                    child.appendChild(document.createTextNode(txt.B + " "));
-
-                    fld = new RGBElem("input", {
-                        id: ids[this.ID.B],
-                        className: "yui-picker-b"
-                    });
-
-                    child.appendChild(fld);
-                    el.appendChild(child);
-
-                    p.appendChild(el);
-
-                    // hsv
-                    el = new Elem("ul", {
-                        id: ids[this.ID.HSV_CONTROLS],
-                        className: "yui-picker-hsv-controls"
-                    });
-
-                    child = new Elem("li");
-                    child.appendChild(document.createTextNode(txt.H + " "));
-
-                    fld = new RGBElem("input", {
-                        id: ids[this.ID.H],
-                        className: "yui-picker-h"
-                    });
-
-                    child.appendChild(fld);
-                    child.appendChild(document.createTextNode(" " + txt.DEG));
-
-                    el.appendChild(child);
-
-                    child = new Elem("li");
-                    child.appendChild(document.createTextNode(txt.S + " "));
-
-                    fld = new RGBElem("input", {
-                        id: ids[this.ID.S],
-                        className: "yui-picker-s"
-                    });
-
-                    child.appendChild(fld);
-                    child.appendChild(document.createTextNode(" " + txt.PERCENT));
-
-                    el.appendChild(child);
-
-                    child = new Elem("li");
-                    child.appendChild(document.createTextNode(txt.V + " "));
-
-                    fld = new RGBElem("input", {
-                        id: ids[this.ID.V],
-                        className: "yui-picker-v"
-                    });
-
-                    child.appendChild(fld);
-                    child.appendChild(document.createTextNode(" " + txt.PERCENT));
-
-                    el.appendChild(child);
-                    p.appendChild(el);
-
-
-                    // hex summary
-
-                    el = new Elem("ul", {
-                        id: ids[this.ID.HEX_SUMMARY],
-                        className: "yui-picker-hex_summary"
-                    });
-
-                    child = new Elem("li", {
-                        id: ids[this.ID.R_HEX]
-                    });
-                    el.appendChild(child);
-
-                    child = new Elem("li", {
-                        id: ids[this.ID.G_HEX]
-                    });
-                    el.appendChild(child);
-
-                    child = new Elem("li", {
-                        id: ids[this.ID.B_HEX]
-                    });
-                    el.appendChild(child);
-                    p.appendChild(el);
-
-                    // hex field
-                    el = new Elem("div", {
-                        id: ids[this.ID.HEX_CONTROLS],
-                        className: "yui-picker-hex-controls"
-                    });
-                    el.appendChild(document.createTextNode(txt.HEX + " "));
-
-                    child = new RGBElem("input", {
-                        id: ids[this.ID.HEX],
-                        className: "yui-picker-hex",
-                        size: 6,
-                        maxlength: 6
-                    });
-
-                    el.appendChild(child);
-                    p.appendChild(el);
-
-                    p = this.get("element");
-
-                    // swatch
-                    el = new Elem("div", {
-                        id: ids[this.ID.SWATCH],
-                        className: "yui-picker-swatch"
-                    });
-
-                    p.appendChild(el);
-
-                    // websafe swatch
-                    el = new Elem("div", {
-                        id: ids[this.ID.WEBSAFE_SWATCH],
-                        className: "yui-picker-websafe-swatch"
-                    });
-
-                    p.appendChild(el);
-
-        },
-
-        _attachRGBHSV : function(id, config) {
-            Event.on(this.getElement(id), "keydown", function(e, me) {
-                    me._rgbFieldKeypress(e, this, config);
-                }, this);
-            Event.on(this.getElement(id), "keypress", this._numbersOnly, this, true);
-            Event.on(this.getElement(id), "blur", function(e, me) {
-                    me._useFieldValue(e, this, config);
-                }, this);
-        },
-
-
-        /**
-         * Updates the rgb attribute with the current state of the r,g,b
-         * fields.  This is invoked from change listeners on these
-         * attributes to facilitate updating these values from the
-         * individual form fields
-         * @method _updateRGB
-         * @protected
-         */
-        _updateRGB : function() {
-            var rgb = [this.get(this.OPT.RED), 
-                       this.get(this.OPT.GREEN),
-                       this.get(this.OPT.BLUE)];
-
-            this.logger.log("RGB value set to " + rgb);
-            this.set(this.OPT.RGB, rgb);
-
-            this._updateSliders();
-        },
-
-        /**
-         * Creates any missing DOM structure.
-         *
-         * @method _initElements
-         * @protected
-         */
-        _initElements : function () {
-            // bind all of our elements
-            var o=this.OPT, 
-                ids = this.get(o.IDS), 
-                els = this.get(o.ELEMENTS), 
-                      i, el, id;
-
-            // Add the default value as a key for each element for easier lookup
-            for (i in this.ID) {
-                if (lang.hasOwnProperty(this.ID, i)) {
-                    ids[this.ID[i]] = ids[i];
-                }
-            }
-
-            // Check for picker element, if not there, create all of them
-            el = Dom.get(ids[this.ID.PICKER_BG]);
-            if (!el) {
-                this._createElements();
-            } else {
-                this.logger.log("Using pre-existing markup");
-            }
-
-            for (i in ids) {
-                if (lang.hasOwnProperty(ids, i)) {
-                    // look for element
-                    el = Dom.get(ids[i]);
-
-                    // generate an id if the implementer passed in an element reference,
-                    // and the element did not have an id already
-                    id = Dom.generateId(el);
-
-                    // update the id in case we generated the id
-                    ids[i] = id; // key is WEBSAFE_SWATCH
-                    ids[ids[i]] = id; // key is websafe_swatch
-
-                    // store the dom ref
-                    els[id] = el;
-                }
-            }
-
-        },
-
-        /**
-         * Sets the initial state of the sliders
-         * @method initPicker
-         */
-        initPicker : function () {
-            this._initSliders();
-            this._bindUI();
-            this.syncUI(true);
-        },
-
-        /**
-         * Creates the Hue and Value/Saturation Sliders.
-         *
-         * @method _initSliders
-         * @protected
-         */
-        _initSliders : function () {
-            var ID = this.ID,
-                size = this.get(this.OPT.PICKER_SIZE);
-
-            this.logger.log("picker size" + size);
-
-            this.hueSlider = Slider.getVertSlider(
-                this.getElement(ID.HUE_BG), 
-                this.getElement(ID.HUE_THUMB), 0, size);
-
-            this.pickerSlider = Slider.getSliderRegion(
-                this.getElement(ID.PICKER_BG), 
-                this.getElement(ID.PICKER_THUMB), 0, size, 0, size);
-
-            // Apply animate attribute configuration
-            this.set(this.OPT.ANIMATE, this.get(this.OPT.ANIMATE));
-        },
-
-        /**
-         * Adds event listeners to Sliders and UI elements.  Wires everything
-         * up.
-         *
-         * @method _bindUI
-         * @protected
-         */
-        _bindUI : function () {
-            var ID = this.ID,
-                O  = this.OPT;
-
-            this.hueSlider.subscribe("change",
-                this._onHueSliderChange, this, true);
-            this.pickerSlider.subscribe("change",
-                this._onPickerSliderChange, this, true);
-
-            Event.on(this.getElement(ID.WEBSAFE_SWATCH), "click", function(e) {
-                   this.setValue(this.get(O.WEBSAFE));
-               }, this, true);
-
-            Event.on(this.getElement(ID.CONTROLS_LABEL), "click", function(e) {
-                   this.set(O.SHOW_CONTROLS, !this.get(O.SHOW_CONTROLS));
-                   Event.preventDefault(e);
-               }, this, true);
-
-            this._attachRGBHSV(ID.R, O.RED); 
-            this._attachRGBHSV(ID.G, O.GREEN); 
-            this._attachRGBHSV(ID.B, O.BLUE); 
-            this._attachRGBHSV(ID.H, O.HUE); 
-            this._attachRGBHSV(ID.S, O.SATURATION); 
-            this._attachRGBHSV(ID.V, O.VALUE); 
-
-            Event.on(this.getElement(ID.HEX), "keydown", function(e, me) {
-                    me._hexFieldKeypress(e, this, O.HEX);
-                }, this);
-
-            Event.on(this.getElement(this.ID.HEX), "keypress",
-                this._hexOnly, this,true);
-            Event.on(this.getElement(this.ID.HEX), "blur", function(e, me) {
-                    me._useFieldValue(e, this, O.HEX);
-                }, this);
-        },
-
-        /**
-         * Wrapper for _updateRGB, but allows setting 
-         *
-         * @method syncUI
-         * @param skipAnim {Boolean} Omit Slider animation for this action
-         */
-        syncUI : function (skipAnim) {
-            this.skipAnim = skipAnim;
-            this._updateRGB();
-            this.skipAnim = false;
-        },
-
-
-        /**
-         * Updates the RGB values from the current state of the HSV
-         * values.  Executed when the one of the HSV form fields are
-         * updated
-         * _updateRGBFromHSV
-         * @protected
-         */
-        _updateRGBFromHSV : function() {
-            var hsv = [this.get(this.OPT.HUE), 
-                       this.get(this.OPT.SATURATION)/100,
-                       this.get(this.OPT.VALUE)/100],
-                rgb = Color.hsv2rgb(hsv);
-
-            this.logger.log("HSV converted to RGB " + hsv + " : " + rgb);
-            this.set(this.OPT.RGB, rgb);
-
-            this._updateSliders();
-        },
-
-        /**
-         * Parses the hex string to normalize shorthand values, converts
-         * the hex value to rgb and updates the rgb attribute (which
-         * updates the state for all of the other values)
-         * method _updateHex
-         * @protected
-         */
-        _updateHex : function() {
-           
-            var hex = this.get(this.OPT.HEX),
-                l   = hex.length,
-                c,i,rgb;
-
-            // support #369 -> #336699 shorthand
-            if (l === 3) {
-                c = hex.split("");
-                for (i=0; i<l; i=i+1) {
-                    c[i] = c[i] + c[i];
-                }
-
-                hex = c.join("");
-            }
-
-            if (hex.length !== 6) {
-                this.logger.log(this.get(this.TXT.ILLEGAL_HEX), "error");
-                return false;
-            }
-
-            rgb = Color.hex2rgb(hex);
-
-            this.logger.log(sub("Hex value set to {hex} ({rgb})", {
-                    hex: hex, rgb: rgb
-                }));
-
-            this.setValue(rgb);
-        },
-
-
-        /**
-         * Returns the cached element reference.  If the id is not a string, it
-         * is assumed that it is an element and this is returned.
-         * @param id {string|HTMLElement} the element key, id, or ref
-         * @param on {boolean} hide or show.  If true, show
-         * @protected
-         */
-        _hideShowEl : function(id, on) {
-            var el = (lang.isString(id) ? this.getElement(id) : id);
-            Dom.setStyle(el, "display", (on) ? "" : "none");
-        },
-
-
-        /**
-         * Sets up the config attributes and the change listeners for this
-         * properties
-         * @method initAttributes
-         * @param attr An object containing default attribute values
-         */
-        initAttributes : function(attr) {
-
-            attr = attr || {};
-            ColorPicker.superclass.initAttributes.call(this, attr);
-            
-            /**
-             * The size of the picker. Trying to change this is not recommended.
-             * @attribute pickersize
-             * @default 180
-             * @type int
-             */
-            this.setAttributeConfig(this.OPT.PICKER_SIZE, {
-                    value: attr.size || this.DEFAULT.PICKER_SIZE
-                });
-
-            /**
-             * The current hue value 0-360
-             * @attribute hue
-             * @type int
-             */
-            this.setAttributeConfig(this.OPT.HUE, {
-                    value: attr.hue || 0,
-                    validator: lang.isNumber
-                });
-
-            /**
-             * The current saturation value 0-100
-             * @attribute saturation
-             * @type int
-             */
-            this.setAttributeConfig(this.OPT.SATURATION, {
-                    value: attr.saturation || 0,
-                    validator: lang.isNumber
-                });
-
-            /**
-             * The current value/brightness value 0-100
-             * @attribute value
-             * @type int
-             */
-            this.setAttributeConfig(this.OPT.VALUE, {
-                    value: lang.isNumber(attr.value) ? attr.value : 100,
-                    validator: lang.isNumber
-                });
-
-            /**
-             * The current red value 0-255
-             * @attribute red
-             * @type int
-             */
-            this.setAttributeConfig(this.OPT.RED, {
-                    value: lang.isNumber(attr.red) ? attr.red : 255,
-                    validator: lang.isNumber
-                });
-
-            /**
-             * The current green value 0-255
-             * @attribute green 
-             * @type int
-             */
-            this.setAttributeConfig(this.OPT.GREEN, {
-                    value: lang.isNumber(attr.green) ? attr.green : 255,
-                    validator: lang.isNumber
-                });
-
-            /**
-             * The current blue value 0-255
-             * @attribute blue
-             * @type int
-             */
-            this.setAttributeConfig(this.OPT.BLUE, {
-                    value: lang.isNumber(attr.blue) ? attr.blue : 255,
-                    validator: lang.isNumber
-                });
-
-            /**
-             * The current hex value #000000-#FFFFFF, without the #
-             * @attribute hex
-             * @type string
-             */
-            this.setAttributeConfig(this.OPT.HEX, {
-                    value: attr.hex || "FFFFFF",
-                    validator: lang.isString
-                });
-
-            /**
-             * The current rgb value.  Updates the state of all of the
-             * other value fields.  Read-only: use setValue to set the
-             * controls rgb value.
-             * @attribute hex
-             * @type [int, int, int]
-             * @readonly
-             */
-            this.setAttributeConfig(this.OPT.RGB, {
-                    value: attr.rgb || [255,255,255],
-                    method: function(rgb) {
-
-                        this.set(this.OPT.RED, rgb[0], true);
-                        this.set(this.OPT.GREEN, rgb[1], true);
-                        this.set(this.OPT.BLUE, rgb[2], true);
-
-                        var websafe = Color.websafe(rgb),
-                            hex = Color.rgb2hex(rgb),
-                            hsv = Color.rgb2hsv(rgb);
-
-                        this.set(this.OPT.WEBSAFE, websafe, true);
-                        this.set(this.OPT.HEX, hex, true);
-
-
-                        this.logger.log(sub("RGB value set to {rgb} (hsv: {hsv})", {
-                                "hsv": hsv, "rgb": rgb
-                            }));
-
-                        // fix bug #1754338 - when saturation is 0, hue is
-                        // silently always set to 0, but input field not updated
-                        if (hsv[1]) {
-                            this.set(this.OPT.HUE, hsv[0], true);
-                        }
-                        this.set(this.OPT.SATURATION, Math.round(hsv[1]*100), true);
-                        this.set(this.OPT.VALUE, Math.round(hsv[2]*100), true);
-                    },
-                    readonly: true
-                });
-
-            /**
-             * If the color picker will live inside of a container object,
-             * set, provide a reference to it so the control can use the
-             * container's events.
-             * @attribute container
-             * @type YAHOO.widget.Panel
-             */
-            this.setAttributeConfig(this.OPT.CONTAINER, {
-                        value: null,
-                        method: function(container) {
-                            if (container) {
-                                // Position can get out of sync when the
-                                // control is manipulated while display is
-                                // none.  Resetting the slider constraints
-                                // when it is visible gets the state back in
-                                // order.
-                                container.showEvent.subscribe(function() {
-                                    // this.pickerSlider.thumb.resetConstraints();
-                                    // this.hueSlider.thumb.resetConstraints();
-                                    this.pickerSlider.focus();
-                                }, this, true);
-                            }
-                        }
-                    });
-            /**
-             * The closest current websafe value
-             * @attribute websafe
-             * @type int
-             */
-            this.setAttributeConfig(this.OPT.WEBSAFE, {
-                    value: attr.websafe || [255,255,255]
-                });
-
-
-            var ids = attr.ids || lang.merge({}, this.ID), i;
-
-            if (!attr.ids && _pickercount > 1) {
-                for (i in ids) {
-                    if (lang.hasOwnProperty(ids, i)) {
-                        ids[i] = ids[i] + _pickercount;
-                    }
-                }
-            }
-
-
-            /**
-             * A list of element ids and/or element references used by the 
-             * control.  The default is the this.ID list, and can be customized
-             * by passing a list in the contructor
-             * @attribute ids
-             * @type {referenceid: realid}
-             * @writeonce
-             */
-            this.setAttributeConfig(this.OPT.IDS, {
-                    value: ids,
-                    writeonce: true
-                });
-
-            /**
-             * A list of txt strings for internationalization.  Default
-             * is this.TXT
-             * @attribute txt
-             * @type {key: txt}
-             * @writeonce
-             */
-            this.setAttributeConfig(this.OPT.TXT, {
-                    value: attr.txt || this.TXT,
-                    writeonce: true
-                });
-
-            /**
-             * The img src default list
-             * is this.IMAGES
-             * @attribute images
-             * @type {key: image}
-             * @writeonce
-             */
-            this.setAttributeConfig(this.OPT.IMAGES, {
-                    value: attr.images || this.IMAGE,
-                    writeonce: true
-                });
-            /**
-             * The element refs used by this control.  Set at initialization
-             * @attribute elements
-             * @type {id: HTMLElement}
-             * @readonly
-             */
-            this.setAttributeConfig(this.OPT.ELEMENTS, {
-                    value: {},
-                    readonly: true
-                });
-
-            /**
-             * Hide/show the entire set of controls
-             * @attribute showcontrols
-             * @type boolean
-             * @default true
-             */
-            this.setAttributeConfig(this.OPT.SHOW_CONTROLS, {
-                    value: lang.isBoolean(attr.showcontrols) ? attr.showcontrols : true,
-                    method: function(on) {
-
-                        var el = Dom.getElementsByClassName("bd", "div", 
-                                this.getElement(this.ID.CONTROLS))[0];
-
-                        this._hideShowEl(el, on);
-
-                        this.getElement(this.ID.CONTROLS_LABEL).innerHTML = 
-                            (on) ? this.get(this.OPT.TXT).HIDE_CONTROLS :
-                                   this.get(this.OPT.TXT).SHOW_CONTROLS;
-
-                    }
-                });
-
-            /**
-             * Hide/show the rgb controls
-             * @attribute showrgbcontrols
-             * @type boolean
-             * @default true
-             */
-            this.setAttributeConfig(this.OPT.SHOW_RGB_CONTROLS, {
-                    value: lang.isBoolean(attr.showrgbcontrols) ? attr.showrgbcontrols : true,
-                    method: function(on) {
-                        this._hideShowEl(this.ID.RGB_CONTROLS, on);
-                    }
-                });
-
-            /**
-             * Hide/show the hsv controls
-             * @attribute showhsvcontrols
-             * @type boolean
-             * @default false
-             */
-            this.setAttributeConfig(this.OPT.SHOW_HSV_CONTROLS, {
-                    value: lang.isBoolean(attr.showhsvcontrols) ?
-                                          attr.showhsvcontrols : false,
-                    method: function(on) {
-                        //Dom.setStyle(this.getElement(this.ID.HSV_CONTROLS), "visibility", (on) ? "" : "hidden");
-                        this._hideShowEl(this.ID.HSV_CONTROLS, on);
-
-                        // can't show both the hsv controls and the rbg hex summary
-                        if (on && this.get(this.OPT.SHOW_HEX_SUMMARY)) {
-                            this.set(this.OPT.SHOW_HEX_SUMMARY, false);
-                        }
-                    }
-                });
-
-            /**
-             * Hide/show the hex controls
-             * @attribute showhexcontrols
-             * @type boolean
-             * @default true
-             */
-            this.setAttributeConfig(this.OPT.SHOW_HEX_CONTROLS, {
-                    value: lang.isBoolean(attr.showhexcontrols) ?
-                                          attr.showhexcontrols : false,
-                    method: function(on) {
-                        this._hideShowEl(this.ID.HEX_CONTROLS, on);
-                    }
-                });
-
-            /**
-             * Hide/show the websafe swatch
-             * @attribute showwebsafe
-             * @type boolean
-             * @default true
-             */
-            this.setAttributeConfig(this.OPT.SHOW_WEBSAFE, {
-                    value: lang.isBoolean(attr.showwebsafe) ? attr.showwebsafe : true,
-                    method: function(on) {
-                        this._hideShowEl(this.ID.WEBSAFE_SWATCH, on);
-                    }
-                });
-
-            /**
-             * Hide/show the hex summary
-             * @attribute showhexsummary
-             * @type boolean
-             * @default true
-             */
-            this.setAttributeConfig(this.OPT.SHOW_HEX_SUMMARY, {
-                    value: lang.isBoolean(attr.showhexsummary) ? attr.showhexsummary : true,
-                    method: function(on) {
-                        this._hideShowEl(this.ID.HEX_SUMMARY, on);
-
-                        // can't show both the hsv controls and the rbg hex summary
-                        if (on && this.get(this.OPT.SHOW_HSV_CONTROLS)) {
-                            this.set(this.OPT.SHOW_HSV_CONTROLS, false);
-                        }
-                    }
-                });
-            this.setAttributeConfig(this.OPT.ANIMATE, {
-                    value: lang.isBoolean(attr.animate) ? attr.animate : true,
-                    method: function(on) {
-                        if (this.pickerSlider) {
-                            this.pickerSlider.animate = on;
-                            this.hueSlider.animate = on;
-                        }
-                    }
-                });
-
-            this.on(this.OPT.HUE + "Change", this._updateRGBFromHSV, this, true);
-            this.on(this.OPT.SATURATION + "Change", this._updateRGBFromHSV, this, true);
-            this.on(this.OPT.VALUE + "Change", this._updateRGBFromHSV, this, true);
-
-            this.on(this.OPT.RED + "Change", this._updateRGB, this, true);
-            this.on(this.OPT.GREEN + "Change", this._updateRGB, this, true);
-            this.on(this.OPT.BLUE + "Change", this._updateRGB, this, true);
-
-            this.on(this.OPT.HEX + "Change", this._updateHex, this, true);
-
-            this._initElements();
-        }
-    });
-
-    YAHOO.widget.ColorPicker = ColorPicker;
-})();
-YAHOO.register("colorpicker", YAHOO.widget.ColorPicker, {version: "2.8.0r4", build: "2449"});
diff --git a/koha-tmpl/intranet-tmpl/prog/en/lib/yui/colorpicker/colorpicker-min.js b/koha-tmpl/intranet-tmpl/prog/en/lib/yui/colorpicker/colorpicker-min.js
deleted file mode 100644 (file)
index 094120a..0000000
+++ /dev/null
@@ -1,9 +0,0 @@
-/*
-Copyright (c) 2009, Yahoo! Inc. All rights reserved.
-Code licensed under the BSD License:
-http://developer.yahoo.net/yui/license.txt
-version: 2.8.0r4
-*/
-YAHOO.util.Color=function(){var A="0",B=YAHOO.lang.isArray,C=YAHOO.lang.isNumber;return{real2dec:function(D){return Math.min(255,Math.round(D*256));},hsv2rgb:function(H,O,M){if(B(H)){return this.hsv2rgb.call(this,H[0],H[1],H[2]);}var D,I,L,G=Math.floor((H/60)%6),J=(H/60)-G,F=M*(1-O),E=M*(1-J*O),N=M*(1-(1-J)*O),K;switch(G){case 0:D=M;I=N;L=F;break;case 1:D=E;I=M;L=F;break;case 2:D=F;I=M;L=N;break;case 3:D=F;I=E;L=M;break;case 4:D=N;I=F;L=M;break;case 5:D=M;I=F;L=E;break;}K=this.real2dec;return[K(D),K(I),K(L)];},rgb2hsv:function(D,H,I){if(B(D)){return this.rgb2hsv.apply(this,D);}D/=255;H/=255;I/=255;var G,L,E=Math.min(Math.min(D,H),I),J=Math.max(Math.max(D,H),I),K=J-E,F;switch(J){case E:G=0;break;case D:G=60*(H-I)/K;if(H<I){G+=360;}break;case H:G=(60*(I-D)/K)+120;break;case I:G=(60*(D-H)/K)+240;break;}L=(J===0)?0:1-(E/J);F=[Math.round(G),L,J];return F;},rgb2hex:function(F,E,D){if(B(F)){return this.rgb2hex.apply(this,F);}var G=this.dec2hex;return G(F)+G(E)+G(D);},dec2hex:function(D){D=parseInt(D,10)|0;D=(D>255||D<0)?0:D;return(A+D.toString(16)).slice(-2).toUpperCase();},hex2dec:function(D){return parseInt(D,16);},hex2rgb:function(D){var E=this.hex2dec;return[E(D.slice(0,2)),E(D.slice(2,4)),E(D.slice(4,6))];},websafe:function(F,E,D){if(B(F)){return this.websafe.apply(this,F);}var G=function(H){if(C(H)){H=Math.min(Math.max(0,H),255);var I,J;for(I=0;I<256;I=I+51){J=I+51;if(H>=I&&H<=J){return(H-I>25)?J:I;}}}return H;};return[G(F),G(E),G(D)];}};}();(function(){var J=0,F=YAHOO.util,C=YAHOO.lang,D=YAHOO.widget.Slider,B=F.Color,E=F.Dom,I=F.Event,A=C.substitute,H="yui-picker";function G(L,K){J=J+1;K=K||{};if(arguments.length===1&&!YAHOO.lang.isString(L)&&!L.nodeName){K=L;L=K.element||null;}if(!L&&!K.element){L=this._createHostElement(K);}G.superclass.constructor.call(this,L,K);this.initPicker();}YAHOO.extend(G,YAHOO.util.Element,{ID:{R:H+"-r",R_HEX:H+"-rhex",G:H+"-g",G_HEX:H+"-ghex",B:H+"-b",B_HEX:H+"-bhex",H:H+"-h",S:H+"-s",V:H+"-v",PICKER_BG:H+"-bg",PICKER_THUMB:H+"-thumb",HUE_BG:H+"-hue-bg",HUE_THUMB:H+"-hue-thumb",HEX:H+"-hex",SWATCH:H+"-swatch",WEBSAFE_SWATCH:H+"-websafe-swatch",CONTROLS:H+"-controls",RGB_CONTROLS:H+"-rgb-controls",HSV_CONTROLS:H+"-hsv-controls",HEX_CONTROLS:H+"-hex-controls",HEX_SUMMARY:H+"-hex-summary",CONTROLS_LABEL:H+"-controls-label"},TXT:{ILLEGAL_HEX:"Illegal hex value entered",SHOW_CONTROLS:"Show color details",HIDE_CONTROLS:"Hide color details",CURRENT_COLOR:"Currently selected color: {rgb}",CLOSEST_WEBSAFE:"Closest websafe color: {rgb}. Click to select.",R:"R",G:"G",B:"B",H:"H",S:"S",V:"V",HEX:"#",DEG:"\u00B0",PERCENT:"%"},IMAGE:{PICKER_THUMB:"../../build/colorpicker/assets/picker_thumb.png",HUE_THUMB:"../../build/colorpicker/assets/hue_thumb.png"},DEFAULT:{PICKER_SIZE:180},OPT:{HUE:"hue",SATURATION:"saturation",VALUE:"value",RED:"red",GREEN:"green",BLUE:"blue",HSV:"hsv",RGB:"rgb",WEBSAFE:"websafe",HEX:"hex",PICKER_SIZE:"pickersize",SHOW_CONTROLS:"showcontrols",SHOW_RGB_CONTROLS:"showrgbcontrols",SHOW_HSV_CONTROLS:"showhsvcontrols",SHOW_HEX_CONTROLS:"showhexcontrols",SHOW_HEX_SUMMARY:"showhexsummary",SHOW_WEBSAFE:"showwebsafe",CONTAINER:"container",IDS:"ids",ELEMENTS:"elements",TXT:"txt",IMAGES:"images",ANIMATE:"animate"},skipAnim:true,_createHostElement:function(){var K=document.createElement("div");if(this.CSS.BASE){K.className=this.CSS.BASE;}return K;},_updateHueSlider:function(){var K=this.get(this.OPT.PICKER_SIZE),L=this.get(this.OPT.HUE);L=K-Math.round(L/360*K);if(L===K){L=0;}this.hueSlider.setValue(L,this.skipAnim);},_updatePickerSlider:function(){var L=this.get(this.OPT.PICKER_SIZE),M=this.get(this.OPT.SATURATION),K=this.get(this.OPT.VALUE);M=Math.round(M*L/100);K=Math.round(L-(K*L/100));this.pickerSlider.setRegionValue(M,K,this.skipAnim);},_updateSliders:function(){this._updateHueSlider();this._updatePickerSlider();},setValue:function(L,K){K=(K)||false;this.set(this.OPT.RGB,L,K);this._updateSliders();},hueSlider:null,pickerSlider:null,_getH:function(){var K=this.get(this.OPT.PICKER_SIZE),L=(K-this.hueSlider.getValue())/K;L=Math.round(L*360);return(L===360)?0:L;},_getS:function(){return this.pickerSlider.getXValue()/this.get(this.OPT.PICKER_SIZE);},_getV:function(){var K=this.get(this.OPT.PICKER_SIZE);return(K-this.pickerSlider.getYValue())/K;},_updateSwatch:function(){var M=this.get(this.OPT.RGB),O=this.get(this.OPT.WEBSAFE),N=this.getElement(this.ID.SWATCH),L=M.join(","),K=this.get(this.OPT.TXT);E.setStyle(N,"background-color","rgb("+L+")");N.title=A(K.CURRENT_COLOR,{"rgb":"#"+this.get(this.OPT.HEX)});N=this.getElement(this.ID.WEBSAFE_SWATCH);L=O.join(",");E.setStyle(N,"background-color","rgb("+L+")");N.title=A(K.CLOSEST_WEBSAFE,{"rgb":"#"+B.rgb2hex(O)});},_getValuesFromSliders:function(){this.set(this.OPT.RGB,B.hsv2rgb(this._getH(),this._getS(),this._getV()));},_updateFormFields:function(){this.getElement(this.ID.H).value=this.get(this.OPT.HUE);this.getElement(this.ID.S).value=this.get(this.OPT.SATURATION);this.getElement(this.ID.V).value=this.get(this.OPT.VALUE);this.getElement(this.ID.R).value=this.get(this.OPT.RED);this.getElement(this.ID.R_HEX).innerHTML=B.dec2hex(this.get(this.OPT.RED));this.getElement(this.ID.G).value=this.get(this.OPT.GREEN);this.getElement(this.ID.G_HEX).innerHTML=B.dec2hex(this.get(this.OPT.GREEN));this.getElement(this.ID.B).value=this.get(this.OPT.BLUE);this.getElement(this.ID.B_HEX).innerHTML=B.dec2hex(this.get(this.OPT.BLUE));this.getElement(this.ID.HEX).value=this.get(this.OPT.HEX);},_onHueSliderChange:function(N){var L=this._getH(),K=B.hsv2rgb(L,1,1),M="rgb("+K.join(",")+")";this.set(this.OPT.HUE,L,true);E.setStyle(this.getElement(this.ID.PICKER_BG),"background-color",M);if(this.hueSlider.valueChangeSource!==D.SOURCE_SET_VALUE){this._getValuesFromSliders();}this._updateFormFields();this._updateSwatch();},_onPickerSliderChange:function(M){var L=this._getS(),K=this._getV();this.set(this.OPT.SATURATION,Math.round(L*100),true);this.set(this.OPT.VALUE,Math.round(K*100),true);if(this.pickerSlider.valueChangeSource!==D.SOURCE_SET_VALUE){this._getValuesFromSliders();
-}this._updateFormFields();this._updateSwatch();},_getCommand:function(K){var L=I.getCharCode(K);if(L===38){return 3;}else{if(L===13){return 6;}else{if(L===40){return 4;}else{if(L>=48&&L<=57){return 1;}else{if(L>=97&&L<=102){return 2;}else{if(L>=65&&L<=70){return 2;}else{if("8, 9, 13, 27, 37, 39".indexOf(L)>-1||K.ctrlKey||K.metaKey){return 5;}else{return 0;}}}}}}}},_useFieldValue:function(L,K,N){var M=K.value;if(N!==this.OPT.HEX){M=parseInt(M,10);}if(M!==this.get(N)){this.set(N,M);}},_rgbFieldKeypress:function(M,K,O){var N=this._getCommand(M),L=(M.shiftKey)?10:1;switch(N){case 6:this._useFieldValue.apply(this,arguments);break;case 3:this.set(O,Math.min(this.get(O)+L,255));this._updateFormFields();break;case 4:this.set(O,Math.max(this.get(O)-L,0));this._updateFormFields();break;default:}},_hexFieldKeypress:function(L,K,N){var M=this._getCommand(L);if(M===6){this._useFieldValue.apply(this,arguments);}},_hexOnly:function(L,K){var M=this._getCommand(L);switch(M){case 6:case 5:case 1:break;case 2:if(K!==true){break;}default:I.stopEvent(L);return false;}},_numbersOnly:function(K){return this._hexOnly(K,true);},getElement:function(K){return this.get(this.OPT.ELEMENTS)[this.get(this.OPT.IDS)[K]];},_createElements:function(){var N,M,P,O,L,K=this.get(this.OPT.IDS),Q=this.get(this.OPT.TXT),S=this.get(this.OPT.IMAGES),R=function(U,V){var W=document.createElement(U);if(V){C.augmentObject(W,V,true);}return W;},T=function(U,V){var W=C.merge({autocomplete:"off",value:"0",size:3,maxlength:3},V);W.name=W.id;return new R(U,W);};L=this.get("element");N=new R("div",{id:K[this.ID.PICKER_BG],className:"yui-picker-bg",tabIndex:-1,hideFocus:true});M=new R("div",{id:K[this.ID.PICKER_THUMB],className:"yui-picker-thumb"});P=new R("img",{src:S.PICKER_THUMB});M.appendChild(P);N.appendChild(M);L.appendChild(N);N=new R("div",{id:K[this.ID.HUE_BG],className:"yui-picker-hue-bg",tabIndex:-1,hideFocus:true});M=new R("div",{id:K[this.ID.HUE_THUMB],className:"yui-picker-hue-thumb"});P=new R("img",{src:S.HUE_THUMB});M.appendChild(P);N.appendChild(M);L.appendChild(N);N=new R("div",{id:K[this.ID.CONTROLS],className:"yui-picker-controls"});L.appendChild(N);L=N;N=new R("div",{className:"hd"});M=new R("a",{id:K[this.ID.CONTROLS_LABEL],href:"#"});N.appendChild(M);L.appendChild(N);N=new R("div",{className:"bd"});L.appendChild(N);L=N;N=new R("ul",{id:K[this.ID.RGB_CONTROLS],className:"yui-picker-rgb-controls"});M=new R("li");M.appendChild(document.createTextNode(Q.R+" "));O=new T("input",{id:K[this.ID.R],className:"yui-picker-r"});M.appendChild(O);N.appendChild(M);M=new R("li");M.appendChild(document.createTextNode(Q.G+" "));O=new T("input",{id:K[this.ID.G],className:"yui-picker-g"});M.appendChild(O);N.appendChild(M);M=new R("li");M.appendChild(document.createTextNode(Q.B+" "));O=new T("input",{id:K[this.ID.B],className:"yui-picker-b"});M.appendChild(O);N.appendChild(M);L.appendChild(N);N=new R("ul",{id:K[this.ID.HSV_CONTROLS],className:"yui-picker-hsv-controls"});M=new R("li");M.appendChild(document.createTextNode(Q.H+" "));O=new T("input",{id:K[this.ID.H],className:"yui-picker-h"});M.appendChild(O);M.appendChild(document.createTextNode(" "+Q.DEG));N.appendChild(M);M=new R("li");M.appendChild(document.createTextNode(Q.S+" "));O=new T("input",{id:K[this.ID.S],className:"yui-picker-s"});M.appendChild(O);M.appendChild(document.createTextNode(" "+Q.PERCENT));N.appendChild(M);M=new R("li");M.appendChild(document.createTextNode(Q.V+" "));O=new T("input",{id:K[this.ID.V],className:"yui-picker-v"});M.appendChild(O);M.appendChild(document.createTextNode(" "+Q.PERCENT));N.appendChild(M);L.appendChild(N);N=new R("ul",{id:K[this.ID.HEX_SUMMARY],className:"yui-picker-hex_summary"});M=new R("li",{id:K[this.ID.R_HEX]});N.appendChild(M);M=new R("li",{id:K[this.ID.G_HEX]});N.appendChild(M);M=new R("li",{id:K[this.ID.B_HEX]});N.appendChild(M);L.appendChild(N);N=new R("div",{id:K[this.ID.HEX_CONTROLS],className:"yui-picker-hex-controls"});N.appendChild(document.createTextNode(Q.HEX+" "));M=new T("input",{id:K[this.ID.HEX],className:"yui-picker-hex",size:6,maxlength:6});N.appendChild(M);L.appendChild(N);L=this.get("element");N=new R("div",{id:K[this.ID.SWATCH],className:"yui-picker-swatch"});L.appendChild(N);N=new R("div",{id:K[this.ID.WEBSAFE_SWATCH],className:"yui-picker-websafe-swatch"});L.appendChild(N);},_attachRGBHSV:function(L,K){I.on(this.getElement(L),"keydown",function(N,M){M._rgbFieldKeypress(N,this,K);},this);I.on(this.getElement(L),"keypress",this._numbersOnly,this,true);I.on(this.getElement(L),"blur",function(N,M){M._useFieldValue(N,this,K);},this);},_updateRGB:function(){var K=[this.get(this.OPT.RED),this.get(this.OPT.GREEN),this.get(this.OPT.BLUE)];this.set(this.OPT.RGB,K);this._updateSliders();},_initElements:function(){var O=this.OPT,N=this.get(O.IDS),L=this.get(O.ELEMENTS),K,M,P;for(K in this.ID){if(C.hasOwnProperty(this.ID,K)){N[this.ID[K]]=N[K];}}M=E.get(N[this.ID.PICKER_BG]);if(!M){this._createElements();}else{}for(K in N){if(C.hasOwnProperty(N,K)){M=E.get(N[K]);P=E.generateId(M);N[K]=P;N[N[K]]=P;L[P]=M;}}},initPicker:function(){this._initSliders();this._bindUI();this.syncUI(true);},_initSliders:function(){var K=this.ID,L=this.get(this.OPT.PICKER_SIZE);this.hueSlider=D.getVertSlider(this.getElement(K.HUE_BG),this.getElement(K.HUE_THUMB),0,L);this.pickerSlider=D.getSliderRegion(this.getElement(K.PICKER_BG),this.getElement(K.PICKER_THUMB),0,L,0,L);this.set(this.OPT.ANIMATE,this.get(this.OPT.ANIMATE));},_bindUI:function(){var K=this.ID,L=this.OPT;this.hueSlider.subscribe("change",this._onHueSliderChange,this,true);this.pickerSlider.subscribe("change",this._onPickerSliderChange,this,true);I.on(this.getElement(K.WEBSAFE_SWATCH),"click",function(M){this.setValue(this.get(L.WEBSAFE));},this,true);I.on(this.getElement(K.CONTROLS_LABEL),"click",function(M){this.set(L.SHOW_CONTROLS,!this.get(L.SHOW_CONTROLS));I.preventDefault(M);},this,true);this._attachRGBHSV(K.R,L.RED);this._attachRGBHSV(K.G,L.GREEN);this._attachRGBHSV(K.B,L.BLUE);this._attachRGBHSV(K.H,L.HUE);
-this._attachRGBHSV(K.S,L.SATURATION);this._attachRGBHSV(K.V,L.VALUE);I.on(this.getElement(K.HEX),"keydown",function(N,M){M._hexFieldKeypress(N,this,L.HEX);},this);I.on(this.getElement(this.ID.HEX),"keypress",this._hexOnly,this,true);I.on(this.getElement(this.ID.HEX),"blur",function(N,M){M._useFieldValue(N,this,L.HEX);},this);},syncUI:function(K){this.skipAnim=K;this._updateRGB();this.skipAnim=false;},_updateRGBFromHSV:function(){var L=[this.get(this.OPT.HUE),this.get(this.OPT.SATURATION)/100,this.get(this.OPT.VALUE)/100],K=B.hsv2rgb(L);this.set(this.OPT.RGB,K);this._updateSliders();},_updateHex:function(){var N=this.get(this.OPT.HEX),K=N.length,O,M,L;if(K===3){O=N.split("");for(M=0;M<K;M=M+1){O[M]=O[M]+O[M];}N=O.join("");}if(N.length!==6){return false;}L=B.hex2rgb(N);this.setValue(L);},_hideShowEl:function(M,K){var L=(C.isString(M)?this.getElement(M):M);E.setStyle(L,"display",(K)?"":"none");},initAttributes:function(K){K=K||{};G.superclass.initAttributes.call(this,K);this.setAttributeConfig(this.OPT.PICKER_SIZE,{value:K.size||this.DEFAULT.PICKER_SIZE});this.setAttributeConfig(this.OPT.HUE,{value:K.hue||0,validator:C.isNumber});this.setAttributeConfig(this.OPT.SATURATION,{value:K.saturation||0,validator:C.isNumber});this.setAttributeConfig(this.OPT.VALUE,{value:C.isNumber(K.value)?K.value:100,validator:C.isNumber});this.setAttributeConfig(this.OPT.RED,{value:C.isNumber(K.red)?K.red:255,validator:C.isNumber});this.setAttributeConfig(this.OPT.GREEN,{value:C.isNumber(K.green)?K.green:255,validator:C.isNumber});this.setAttributeConfig(this.OPT.BLUE,{value:C.isNumber(K.blue)?K.blue:255,validator:C.isNumber});this.setAttributeConfig(this.OPT.HEX,{value:K.hex||"FFFFFF",validator:C.isString});this.setAttributeConfig(this.OPT.RGB,{value:K.rgb||[255,255,255],method:function(O){this.set(this.OPT.RED,O[0],true);this.set(this.OPT.GREEN,O[1],true);this.set(this.OPT.BLUE,O[2],true);var Q=B.websafe(O),P=B.rgb2hex(O),N=B.rgb2hsv(O);this.set(this.OPT.WEBSAFE,Q,true);this.set(this.OPT.HEX,P,true);if(N[1]){this.set(this.OPT.HUE,N[0],true);}this.set(this.OPT.SATURATION,Math.round(N[1]*100),true);this.set(this.OPT.VALUE,Math.round(N[2]*100),true);},readonly:true});this.setAttributeConfig(this.OPT.CONTAINER,{value:null,method:function(N){if(N){N.showEvent.subscribe(function(){this.pickerSlider.focus();},this,true);}}});this.setAttributeConfig(this.OPT.WEBSAFE,{value:K.websafe||[255,255,255]});var M=K.ids||C.merge({},this.ID),L;if(!K.ids&&J>1){for(L in M){if(C.hasOwnProperty(M,L)){M[L]=M[L]+J;}}}this.setAttributeConfig(this.OPT.IDS,{value:M,writeonce:true});this.setAttributeConfig(this.OPT.TXT,{value:K.txt||this.TXT,writeonce:true});this.setAttributeConfig(this.OPT.IMAGES,{value:K.images||this.IMAGE,writeonce:true});this.setAttributeConfig(this.OPT.ELEMENTS,{value:{},readonly:true});this.setAttributeConfig(this.OPT.SHOW_CONTROLS,{value:C.isBoolean(K.showcontrols)?K.showcontrols:true,method:function(N){var O=E.getElementsByClassName("bd","div",this.getElement(this.ID.CONTROLS))[0];this._hideShowEl(O,N);this.getElement(this.ID.CONTROLS_LABEL).innerHTML=(N)?this.get(this.OPT.TXT).HIDE_CONTROLS:this.get(this.OPT.TXT).SHOW_CONTROLS;}});this.setAttributeConfig(this.OPT.SHOW_RGB_CONTROLS,{value:C.isBoolean(K.showrgbcontrols)?K.showrgbcontrols:true,method:function(N){this._hideShowEl(this.ID.RGB_CONTROLS,N);}});this.setAttributeConfig(this.OPT.SHOW_HSV_CONTROLS,{value:C.isBoolean(K.showhsvcontrols)?K.showhsvcontrols:false,method:function(N){this._hideShowEl(this.ID.HSV_CONTROLS,N);if(N&&this.get(this.OPT.SHOW_HEX_SUMMARY)){this.set(this.OPT.SHOW_HEX_SUMMARY,false);}}});this.setAttributeConfig(this.OPT.SHOW_HEX_CONTROLS,{value:C.isBoolean(K.showhexcontrols)?K.showhexcontrols:false,method:function(N){this._hideShowEl(this.ID.HEX_CONTROLS,N);}});this.setAttributeConfig(this.OPT.SHOW_WEBSAFE,{value:C.isBoolean(K.showwebsafe)?K.showwebsafe:true,method:function(N){this._hideShowEl(this.ID.WEBSAFE_SWATCH,N);}});this.setAttributeConfig(this.OPT.SHOW_HEX_SUMMARY,{value:C.isBoolean(K.showhexsummary)?K.showhexsummary:true,method:function(N){this._hideShowEl(this.ID.HEX_SUMMARY,N);if(N&&this.get(this.OPT.SHOW_HSV_CONTROLS)){this.set(this.OPT.SHOW_HSV_CONTROLS,false);}}});this.setAttributeConfig(this.OPT.ANIMATE,{value:C.isBoolean(K.animate)?K.animate:true,method:function(N){if(this.pickerSlider){this.pickerSlider.animate=N;this.hueSlider.animate=N;}}});this.on(this.OPT.HUE+"Change",this._updateRGBFromHSV,this,true);this.on(this.OPT.SATURATION+"Change",this._updateRGBFromHSV,this,true);this.on(this.OPT.VALUE+"Change",this._updateRGBFromHSV,this,true);this.on(this.OPT.RED+"Change",this._updateRGB,this,true);this.on(this.OPT.GREEN+"Change",this._updateRGB,this,true);this.on(this.OPT.BLUE+"Change",this._updateRGB,this,true);this.on(this.OPT.HEX+"Change",this._updateHex,this,true);this._initElements();}});YAHOO.widget.ColorPicker=G;})();YAHOO.register("colorpicker",YAHOO.widget.ColorPicker,{version:"2.8.0r4",build:"2449"});
\ No newline at end of file
diff --git a/koha-tmpl/intranet-tmpl/prog/en/lib/yui/colorpicker/colorpicker.js b/koha-tmpl/intranet-tmpl/prog/en/lib/yui/colorpicker/colorpicker.js
deleted file mode 100644 (file)
index 2e031a1..0000000
+++ /dev/null
@@ -1,1763 +0,0 @@
-/*
-Copyright (c) 2009, Yahoo! Inc. All rights reserved.
-Code licensed under the BSD License:
-http://developer.yahoo.net/yui/license.txt
-version: 2.8.0r4
-*/
-/**
- * Provides color conversion and validation utils
- * @class YAHOO.util.Color
- * @namespace YAHOO.util
- */
-YAHOO.util.Color = function() {
-
-    var ZERO     = "0",
-        isArray  = YAHOO.lang.isArray,
-        isNumber = YAHOO.lang.isNumber;
-
-    return {
-
-        /**
-         * Converts 0-1 to 0-255
-         * @method real2dec
-         * @param n {float} the number to convert
-         * @return {int} a number 0-255
-         */
-        real2dec: function(n) {
-            return Math.min(255, Math.round(n*256));
-        },
-
-        /**
-         * Converts HSV (h[0-360], s[0-1]), v[0-1] to RGB [255,255,255]
-         * @method hsv2rgb
-         * @param h {int|[int, float, float]} the hue, or an
-         *        array containing all three parameters
-         * @param s {float} the saturation
-         * @param v {float} the value/brightness
-         * @return {[int, int, int]} the red, green, blue values in
-         *          decimal.
-         */
-        hsv2rgb: function(h, s, v) { 
-
-            if (isArray(h)) {
-                return this.hsv2rgb.call(this, h[0], h[1], h[2]);
-            }
-
-            var r, g, b,
-                i = Math.floor((h/60)%6),
-                f = (h/60)-i,
-                p = v*(1-s),
-                q = v*(1-f*s),
-                t = v*(1-(1-f)*s),
-                fn;
-
-            switch (i) {
-                case 0: r=v; g=t; b=p; break;
-                case 1: r=q; g=v; b=p; break;
-                case 2: r=p; g=v; b=t; break;
-                case 3: r=p; g=q; b=v; break;
-                case 4: r=t; g=p; b=v; break;
-                case 5: r=v; g=p; b=q; break;
-            }
-
-            fn=this.real2dec;
-
-            return [fn(r), fn(g), fn(b)];
-        },
-
-        /**
-         * Converts to RGB [255,255,255] to HSV (h[0-360], s[0-1]), v[0-1]
-         * @method rgb2hsv
-         * @param r {int|[int, int, int]} the red value, or an
-         *        array containing all three parameters
-         * @param g {int} the green value
-         * @param b {int} the blue value
-         * @return {[int, float, float]} the value converted to hsv
-         */
-        rgb2hsv: function(r, g, b) {
-
-            if (isArray(r)) {
-                return this.rgb2hsv.apply(this, r);
-            }
-
-            r /= 255;
-            g /= 255;
-            b /= 255;
-
-            var h,s,
-                min = Math.min(Math.min(r,g),b),
-                max = Math.max(Math.max(r,g),b),
-                delta = max-min,
-                hsv;
-
-            switch (max) {
-                case min: h=0; break;
-                case r:   h=60*(g-b)/delta; 
-                          if (g<b) {
-                              h+=360;
-                          }
-                          break;
-                case g:   h=(60*(b-r)/delta)+120; break;
-                case b:   h=(60*(r-g)/delta)+240; break;
-            }
-            
-            s = (max === 0) ? 0 : 1-(min/max);
-
-            hsv = [Math.round(h), s, max];
-
-            return hsv;
-        },
-
-        /**
-         * Converts decimal rgb values into a hex string
-         * 255,255,255 -> FFFFFF
-         * @method rgb2hex
-         * @param r {int|[int, int, int]} the red value, or an
-         *        array containing all three parameters
-         * @param g {int} the green value
-         * @param b {int} the blue value
-         * @return {string} the hex string
-         */
-        rgb2hex: function(r, g, b) {
-            if (isArray(r)) {
-                return this.rgb2hex.apply(this, r);
-            }
-
-            var f=this.dec2hex;
-            return f(r) + f(g) + f(b);
-        },
-     
-        /**
-         * Converts an int 0...255 to hex pair 00...FF
-         * @method dec2hex
-         * @param n {int} the number to convert
-         * @return {string} the hex equivalent
-         */
-        dec2hex: function(n) {
-            n = parseInt(n,10)|0;
-            n = (n > 255 || n < 0) ? 0 : n;
-
-            return (ZERO+n.toString(16)).slice(-2).toUpperCase();
-        },
-
-        /**
-         * Converts a hex pair 00...FF to an int 0...255 
-         * @method hex2dec
-         * @param str {string} the hex pair to convert
-         * @return {int} the decimal
-         */
-        hex2dec: function(str) {
-            return parseInt(str,16);
-        },
-
-        /**
-         * Converts a hex string to rgb
-         * @method hex2rgb
-         * @param str {string} the hex string
-         * @return {[int, int, int]} an array containing the rgb values
-         */
-        hex2rgb: function(s) { 
-            var f = this.hex2dec;
-            return [f(s.slice(0, 2)), f(s.slice(2, 4)), f(s.slice(4, 6))];
-        },
-
-        /**
-         * Returns the closest websafe color to the supplied rgb value.
-         * @method websafe
-         * @param r {int|[int, int, int]} the red value, or an
-         *        array containing all three parameters
-         * @param g {int} the green value
-         * @param b {int} the blue value
-         * @return {[int, int, int]} an array containing the closes
-         *                           websafe rgb colors.
-         */
-        websafe: function(r, g, b) {
-
-            if (isArray(r)) {
-                return this.websafe.apply(this, r);
-            }
-
-            // returns the closest match [0, 51, 102, 153, 204, 255]
-            var f = function(v) {
-                if (isNumber(v)) {
-                    v = Math.min(Math.max(0, v), 255);
-                    var i, next;
-                    for (i=0; i<256; i=i+51) {
-                        next = i+51;
-                        if (v >= i && v <= next) {
-                            return (v-i > 25) ? next : i;
-                        }
-                    }
-                }
-
-                return v;
-            };
-
-            return [f(r), f(g), f(b)];
-        }
-    };
-}();
-
-
-/**
- * The colorpicker module provides a widget for selecting colors
- * @module colorpicker
- * @requires yahoo, dom, event, element, slider
- */
-(function() {
-
-    var _pickercount = 0,
-        util   = YAHOO.util,
-        lang   = YAHOO.lang,
-        Slider = YAHOO.widget.Slider,
-        Color  = util.Color,
-        Dom    = util.Dom,
-        Event  = util.Event,
-        sub    = lang.substitute,
-        
-        b = "yui-picker";
-    
-
-    /**
-     * A widget to select colors
-     * @namespace YAHOO.widget
-     * @class YAHOO.widget.ColorPicker
-     * @extends YAHOO.util.Element
-     * @constructor
-     * @param {HTMLElement | String | Object} el(optional) The html 
-     * element that represents the colorpicker, or the attribute object to use. 
-     * An element will be created if none provided.
-     * @param {Object} attr (optional) A key map of the colorpicker's 
-     * initial attributes.  Ignored if first arg is attributes object.
-     */
-    function ColorPicker(el, attr) {
-        _pickercount = _pickercount + 1;
-        attr = attr || {};
-        if (arguments.length === 1 && !YAHOO.lang.isString(el) && !el.nodeName) {
-            attr = el; // treat first arg as attr object
-            el = attr.element || null;
-        }
-        
-        if (!el && !attr.element) { // create if we dont have one
-            el = this._createHostElement(attr);
-        }
-
-       ColorPicker.superclass.constructor.call(this, el, attr); 
-
-        this.initPicker();
-    }
-
-    YAHOO.extend(ColorPicker, YAHOO.util.Element, {
-    
-        /**
-         * The element ids used by this control
-         * @property ID
-         * @final
-         */
-        ID : {
-
-            /**
-             * The id for the "red" form field
-             * @property ID.R
-             * @type String
-             * @final
-             * @default yui-picker-r
-             */
-            R: b + "-r",
-
-            /**
-             * The id for the "red" hex pair output
-             * @property ID.R_HEX
-             * @type String
-             * @final
-             * @default yui-picker-rhex
-             */
-            R_HEX: b + "-rhex",
-
-            /**
-             * The id for the "green" form field
-             * @property ID.G
-             * @type String
-             * @final
-             * @default yui-picker-g
-             */
-            G: b + "-g",
-
-            /**
-             * The id for the "green" hex pair output
-             * @property ID.G_HEX
-             * @type String
-             * @final
-             * @default yui-picker-ghex
-             */
-            G_HEX: b + "-ghex",
-
-
-            /**
-             * The id for the "blue" form field
-             * @property ID.B
-             * @type String
-             * @final
-             * @default yui-picker-b
-             */
-            B: b + "-b",
-
-            /**
-             * The id for the "blue" hex pair output
-             * @property ID.B_HEX
-             * @type String
-             * @final
-             * @default yui-picker-bhex
-             */
-            B_HEX: b + "-bhex",
-
-            /**
-             * The id for the "hue" form field
-             * @property ID.H
-             * @type String
-             * @final
-             * @default yui-picker-h
-             */
-            H: b + "-h",
-
-            /**
-             * The id for the "saturation" form field
-             * @property ID.S
-             * @type String
-             * @final
-             * @default yui-picker-s
-             */
-            S: b + "-s",
-
-            /**
-             * The id for the "value" form field
-             * @property ID.V
-             * @type String
-             * @final
-             * @default yui-picker-v
-             */
-            V: b + "-v",
-
-            /**
-             * The id for the picker region slider
-             * @property ID.PICKER_BG
-             * @type String
-             * @final
-             * @default yui-picker-bg
-             */
-            PICKER_BG:      b + "-bg",
-
-            /**
-             * The id for the picker region thumb
-             * @property ID.PICKER_THUMB
-             * @type String
-             * @final
-             * @default yui-picker-thumb
-             */
-            PICKER_THUMB:   b + "-thumb",
-
-            /**
-             * The id for the hue slider
-             * @property ID.HUE_BG
-             * @type String
-             * @final
-             * @default yui-picker-hue-bg
-             */
-            HUE_BG:         b + "-hue-bg",
-
-            /**
-             * The id for the hue thumb
-             * @property ID.HUE_THUMB
-             * @type String
-             * @final
-             * @default yui-picker-hue-thumb
-             */
-            HUE_THUMB:      b + "-hue-thumb",
-
-            /**
-             * The id for the hex value form field
-             * @property ID.HEX
-             * @type String
-             * @final
-             * @default yui-picker-hex
-             */
-            HEX:            b + "-hex",
-
-            /**
-             * The id for the color swatch
-             * @property ID.SWATCH
-             * @type String
-             * @final
-             * @default yui-picker-swatch
-             */
-            SWATCH:         b + "-swatch",
-
-            /**
-             * The id for the websafe color swatch
-             * @property ID.WEBSAFE_SWATCH
-             * @type String
-             * @final
-             * @default yui-picker-websafe-swatch
-             */
-            WEBSAFE_SWATCH: b + "-websafe-swatch",
-
-            /**
-             * The id for the control details
-             * @property ID.CONTROLS
-             * @final
-             * @default yui-picker-controls
-             */
-            CONTROLS: b + "-controls",
-
-            /**
-             * The id for the rgb controls
-             * @property ID.RGB_CONTROLS
-             * @final
-             * @default yui-picker-rgb-controls
-             */
-            RGB_CONTROLS: b + "-rgb-controls",
-
-            /**
-             * The id for the hsv controls
-             * @property ID.HSV_CONTROLS
-             * @final
-             * @default yui-picker-hsv-controls
-             */
-            HSV_CONTROLS: b + "-hsv-controls",
-            
-            /**
-             * The id for the hsv controls
-             * @property ID.HEX_CONTROLS
-             * @final
-             * @default yui-picker-hex-controls
-             */
-            HEX_CONTROLS: b + "-hex-controls",
-
-            /**
-             * The id for the hex summary
-             * @property ID.HEX_SUMMARY
-             * @final
-             * @default yui-picker-hex-summary
-             */
-            HEX_SUMMARY: b + "-hex-summary",
-
-            /**
-             * The id for the controls section header
-             * @property ID.CONTROLS_LABEL
-             * @final
-             * @default yui-picker-controls-label
-             */
-            CONTROLS_LABEL: b + "-controls-label"
-        },
-
-        /**
-         * Constants for any script-generated messages.  The values here
-         * are the default messages.  They can be updated by providing
-         * the complete list to the constructor for the "txt" attribute.
-         * @property TXT
-         * @final
-         */
-        TXT : {
-            ILLEGAL_HEX: "Illegal hex value entered",
-            SHOW_CONTROLS: "Show color details",
-            HIDE_CONTROLS: "Hide color details",
-            CURRENT_COLOR: "Currently selected color: {rgb}",
-            CLOSEST_WEBSAFE: "Closest websafe color: {rgb}. Click to select.",
-            R: "R",
-            G: "G",
-            B: "B",
-            H: "H",
-            S: "S",
-            V: "V",
-            HEX: "#",
-            DEG: "\u00B0",
-            PERCENT: "%"
-        },
-
-        /**
-         * Constants for the default image locations for img tags that are
-         * generated by the control.  They can be modified by passing the
-         * complete list to the contructor for the "images" attribute
-         * @property IMAGE
-         * @final
-         */
-        IMAGE : {
-            PICKER_THUMB: "../../build/colorpicker/assets/picker_thumb.png",
-            HUE_THUMB: "../../build/colorpicker/assets/hue_thumb.png"
-        },
-
-        /**
-         * Constants for the control's default default values
-         * @property DEFAULT
-         * @final
-         */
-        DEFAULT : {
-            PICKER_SIZE: 180
-        },
-
-        /**
-         * Constants for the control's configuration attributes
-         * @property OPT
-         * @final
-         */
-        OPT : {
-            HUE         : "hue",
-            SATURATION  : "saturation",
-            VALUE       : "value",
-            RED     : "red",
-            GREEN   : "green",
-            BLUE    : "blue",
-            HSV     : "hsv",
-            RGB     : "rgb",
-            WEBSAFE : "websafe",
-            HEX     : "hex",
-            PICKER_SIZE       : "pickersize",
-            SHOW_CONTROLS     : "showcontrols",
-            SHOW_RGB_CONTROLS : "showrgbcontrols",
-            SHOW_HSV_CONTROLS : "showhsvcontrols",
-            SHOW_HEX_CONTROLS : "showhexcontrols",
-            SHOW_HEX_SUMMARY  : "showhexsummary",
-            SHOW_WEBSAFE      : "showwebsafe",
-            CONTAINER         : "container",
-            IDS      : "ids",
-            ELEMENTS : "elements",
-            TXT      : "txt",
-            IMAGES   : "images",
-            ANIMATE  : "animate"
-        },
-
-        /**
-         * Flag to allow individual UI updates to forego animation if available.
-         * True during construction for initial thumb placement.  Set to false
-         * after that.
-         *
-         * @property skipAnim
-         * @type Boolean
-         * @default true
-         */
-        skipAnim : true,
-
-        /**
-         * Creates the host element if it doesn't exist
-         * @method _createHostElement
-         * @protected
-         */
-        _createHostElement : function () {
-            var el = document.createElement('div');
-
-            if (this.CSS.BASE) {
-                el.className = this.CSS.BASE;
-            }
-            
-            return el;
-        },
-
-        /**
-         * Moves the hue slider into the position dictated by the current state
-         * of the control
-         * @method _updateHueSlider
-         * @protected
-         */
-        _updateHueSlider : function() {
-            var size = this.get(this.OPT.PICKER_SIZE),
-                h = this.get(this.OPT.HUE);
-
-            h = size - Math.round(h / 360 * size);
-            
-            // 0 is at the top and bottom of the hue slider.  Always go to
-            // the top so we don't end up sending the thumb to the bottom
-            // when the value didn't actually change (e.g., a conversion
-            // produced 360 instead of 0 and the value was already 0).
-            if (h === size) {
-                h = 0;
-            }
-
-            this.hueSlider.setValue(h, this.skipAnim);
-        },
-
-        /**
-         * Moves the picker slider into the position dictated by the current state
-         * of the control
-         * @method _updatePickerSlider
-         * @protected
-         */
-        _updatePickerSlider : function() {
-            var size = this.get(this.OPT.PICKER_SIZE),
-                s = this.get(this.OPT.SATURATION),
-                v = this.get(this.OPT.VALUE);
-
-            s = Math.round(s * size / 100);
-            v = Math.round(size - (v * size / 100));
-
-
-            this.pickerSlider.setRegionValue(s, v, this.skipAnim);
-        },
-
-        /**
-         * Moves the sliders into the position dictated by the current state
-         * of the control
-         * @method _updateSliders
-         * @protected
-         */
-        _updateSliders : function() {
-            this._updateHueSlider();
-            this._updatePickerSlider();
-        },
-
-        /**
-         * Sets the control to the specified rgb value and
-         * moves the sliders to the proper positions
-         * @method setValue
-         * @param rgb {[int, int, int]} the rgb value
-         * @param silent {boolean} whether or not to fire the change event
-         */
-        setValue : function(rgb, silent) {
-            silent = (silent) || false;
-            this.set(this.OPT.RGB, rgb, silent);
-            this._updateSliders();
-        },
-
-        /**
-         * The hue slider
-         * @property hueSlider
-         * @type YAHOO.widget.Slider
-         */
-        hueSlider : null,
-        
-        /**
-         * The picker region
-         * @property pickerSlider
-         * @type YAHOO.widget.Slider
-         */
-        pickerSlider : null,
-
-        /**
-         * Translates the slider value into hue, int[0,359]
-         * @method _getH
-         * @protected
-         * @return {int} the hue from 0 to 359
-         */
-        _getH : function() {
-            var size = this.get(this.OPT.PICKER_SIZE),
-                h = (size - this.hueSlider.getValue()) / size;
-            h = Math.round(h*360);
-            return (h === 360) ? 0 : h;
-        },
-
-        /**
-         * Translates the slider value into saturation, int[0,1], left to right
-         * @method _getS
-         * @protected
-         * @return {int} the saturation from 0 to 1
-         */
-        _getS : function() {
-            return this.pickerSlider.getXValue() / this.get(this.OPT.PICKER_SIZE);
-        },
-
-        /**
-         * Translates the slider value into value/brightness, int[0,1], top
-         * to bottom
-         * @method _getV
-         * @protected
-         * @return {int} the value from 0 to 1
-         */
-        _getV : function() {
-            var size = this.get(this.OPT.PICKER_SIZE);
-            return (size - this.pickerSlider.getYValue()) / size;
-        },
-
-        /**
-         * Updates the background of the swatch with the current rbg value.
-         * Also updates the websafe swatch to the closest websafe color
-         * @method _updateSwatch
-         * @protected
-         */
-        _updateSwatch : function() {
-            var rgb = this.get(this.OPT.RGB),
-                websafe = this.get(this.OPT.WEBSAFE),
-                el = this.getElement(this.ID.SWATCH),
-                color = rgb.join(","),
-                txt = this.get(this.OPT.TXT);
-
-            Dom.setStyle(el, "background-color", "rgb(" + color  + ")");
-            el.title = sub(txt.CURRENT_COLOR, {
-                    "rgb": "#" + this.get(this.OPT.HEX)
-                });
-
-
-            el = this.getElement(this.ID.WEBSAFE_SWATCH);
-            color = websafe.join(",");
-
-            Dom.setStyle(el, "background-color", "rgb(" + color + ")");
-            el.title = sub(txt.CLOSEST_WEBSAFE, {
-                    "rgb": "#" + Color.rgb2hex(websafe)
-                });
-
-        },
-
-        /**
-         * Reads the sliders and converts the values to RGB, updating the
-         * internal state for all the individual form fields
-         * @method _getValuesFromSliders
-         * @protected
-         */
-        _getValuesFromSliders : function() {
-            this.set(this.OPT.RGB, Color.hsv2rgb(this._getH(), this._getS(), this._getV()));
-        },
-
-        /**
-         * Updates the form field controls with the state data contained
-         * in the control.
-         * @method _updateFormFields
-         * @protected
-         */
-        _updateFormFields : function() {
-            this.getElement(this.ID.H).value = this.get(this.OPT.HUE);
-            this.getElement(this.ID.S).value = this.get(this.OPT.SATURATION);
-            this.getElement(this.ID.V).value = this.get(this.OPT.VALUE);
-            this.getElement(this.ID.R).value = this.get(this.OPT.RED);
-            this.getElement(this.ID.R_HEX).innerHTML = Color.dec2hex(this.get(this.OPT.RED));
-            this.getElement(this.ID.G).value = this.get(this.OPT.GREEN);
-            this.getElement(this.ID.G_HEX).innerHTML = Color.dec2hex(this.get(this.OPT.GREEN));
-            this.getElement(this.ID.B).value = this.get(this.OPT.BLUE);
-            this.getElement(this.ID.B_HEX).innerHTML = Color.dec2hex(this.get(this.OPT.BLUE));
-            this.getElement(this.ID.HEX).value = this.get(this.OPT.HEX);
-        },
-
-        /**
-         * Event handler for the hue slider.
-         * @method _onHueSliderChange
-         * @param newOffset {int} pixels from the start position
-         * @protected
-         */
-        _onHueSliderChange : function(newOffset) {
-
-            var h        = this._getH(),
-                rgb      = Color.hsv2rgb(h, 1, 1),
-                styleDef = "rgb(" + rgb.join(",") + ")";
-
-            this.set(this.OPT.HUE, h, true);
-
-            // set picker background to the hue
-            Dom.setStyle(this.getElement(this.ID.PICKER_BG), "background-color", styleDef);
-
-            if (this.hueSlider.valueChangeSource !== Slider.SOURCE_SET_VALUE) {
-                this._getValuesFromSliders();
-            }
-
-            this._updateFormFields();
-            this._updateSwatch();
-        },
-
-        /**
-         * Event handler for the picker slider, which controls the
-         * saturation and value/brightness.
-         * @method _onPickerSliderChange
-         * @param newOffset {{x: int, y: int}} x/y pixels from the start position
-         * @protected
-         */
-        _onPickerSliderChange : function(newOffset) {
-
-            var s=this._getS(), v=this._getV();
-            this.set(this.OPT.SATURATION, Math.round(s*100), true);
-            this.set(this.OPT.VALUE, Math.round(v*100), true);
-
-            if (this.pickerSlider.valueChangeSource !== Slider.SOURCE_SET_VALUE) {
-                this._getValuesFromSliders();
-            }
-
-            this._updateFormFields();
-            this._updateSwatch();
-        },
-
-
-        /**
-         * Key map to well-known commands for txt field input
-         * @method _getCommand
-         * @param e {Event} the keypress or keydown event
-         * @return {int} a command code
-         * <ul>
-         * <li>0 = not a number, letter in range, or special key</li>
-         * <li>1 = number</li>
-         * <li>2 = a-fA-F</li>
-         * <li>3 = increment (up arrow)</li>
-         * <li>4 = decrement (down arrow)</li>
-         * <li>5 = special key (tab, delete, return, escape, left, right)</li> 
-         * <li>6 = return</li>
-         * </ul>
-         * @protected
-         */
-        _getCommand : function(e) {
-            var c = Event.getCharCode(e);
-
-            //alert(Event.getCharCode(e) + ", " + e.keyCode + ", " + e.charCode);
-
-            // special keys
-            if (c === 38) { // up arrow
-                return 3;
-            } else if (c === 13) { // return
-                return 6;
-            } else if (c === 40) { // down array
-                return 4;
-            } else if (c >= 48 && c<=57) { // 0-9
-                return 1;
-            } else if (c >= 97 && c<=102) { // a-f
-                return 2;
-            } else if (c >= 65 && c<=70) { // A-F
-                return 2;
-            //} else if ("8, 9, 13, 27, 37, 39".indexOf(c) > -1 || 
-            //              (c >= 112 && c <=123)) { // including F-keys
-            // tab, delete, return, escape, left, right or ctrl/meta sequences
-            } else if ("8, 9, 13, 27, 37, 39".indexOf(c) > -1 ||
-                       e.ctrlKey || e.metaKey) { // special chars
-                return 5;
-            } else { // something we probably don't want
-                return 0;
-            }
-        },
-
-        /**
-         * Use the value of the text field to update the control
-         * @method _useFieldValue
-         * @param e {Event} an event
-         * @param el {HTMLElement} the field
-         * @param prop {string} the key to the linked property
-         * @protected
-         */
-        _useFieldValue : function(e, el, prop) {
-            var val = el.value;
-
-            if (prop !== this.OPT.HEX) {
-                val = parseInt(val, 10);
-            }
-
-            if (val !== this.get(prop)) {
-                this.set(prop, val);
-            }
-        },
-
-        /**
-         * Handle keypress on one of the rgb or hsv fields.
-         * @method _rgbFieldKeypress
-         * @param e {Event} the keypress event
-         * @param el {HTMLElement} the field
-         * @param prop {string} the key to the linked property
-         * @protected
-         */
-        _rgbFieldKeypress : function(e, el, prop) {
-            var command = this._getCommand(e),
-                inc = (e.shiftKey) ? 10 : 1;
-            switch (command) {
-                case 6: // return, update the value
-                    this._useFieldValue.apply(this, arguments);
-                    break;
-                            
-                case 3: // up arrow, increment
-                    this.set(prop, Math.min(this.get(prop)+inc, 255));
-                    this._updateFormFields();
-                    //Event.stopEvent(e);
-                    break;
-                case 4: // down arrow, decrement
-                    this.set(prop, Math.max(this.get(prop)-inc, 0));
-                    this._updateFormFields();
-                    //Event.stopEvent(e);
-                    break;
-
-                default:
-            }
-
-        },
-
-        /**
-         * Handle keydown on the hex field
-         * @method _hexFieldKeypress
-         * @param e {Event} the keypress event
-         * @param el {HTMLElement} the field
-         * @param prop {string} the key to the linked property
-         * @protected
-         */
-        _hexFieldKeypress : function(e, el, prop) {
-            var command = this._getCommand(e);
-            if (command === 6) { // return, update the value
-                this._useFieldValue.apply(this, arguments);
-            }
-        },
-
-        /** 
-         * Allows numbers and special chars, and by default allows a-f.  
-         * Used for the hex field keypress handler.
-         * @method _hexOnly
-         * @param e {Event} the event
-         * @param numbersOnly omits a-f if set to true
-         * @protected
-         * @return {boolean} false if we are canceling the event
-         */
-        _hexOnly : function(e, numbersOnly) {
-            var command = this._getCommand(e);
-            switch (command) {
-                case 6: // return
-                case 5: // special char
-                case 1: // number
-                    break;
-                case 2: // hex char (a-f)
-                    if (numbersOnly !== true) {
-                        break;
-                    }
-
-                    // fallthrough is intentional
-
-                default: // prevent alpha and punctuation
-                    Event.stopEvent(e);
-                    return false;
-            }
-        },
-
-        /** 
-         * Allows numbers and special chars only.  Used for the
-         * rgb and hsv fields keypress handler.
-         * @method _numbersOnly
-         * @param e {Event} the event
-         * @protected
-         * @return {boolean} false if we are canceling the event
-         */
-        _numbersOnly : function(e) {
-            return this._hexOnly(e, true);
-        },
-
-        /**
-         * Returns the element reference that is saved.  The id can be either
-         * the element id, or the key for this id in the "id" config attribute.
-         * For instance, the host element id can be obtained by passing its
-         * id (default: "yui_picker") or by its key "YUI_PICKER".
-         * @param id {string} the element id, or key 
-         * @return {HTMLElement} a reference to the element
-         */
-        getElement : function(id) { 
-            return this.get(this.OPT.ELEMENTS)[this.get(this.OPT.IDS)[id]]; 
-        },
-
-        _createElements : function() {
-            var el, child, img, fld, p,
-                ids = this.get(this.OPT.IDS),
-                txt = this.get(this.OPT.TXT),
-                images = this.get(this.OPT.IMAGES),
-                Elem = function(type, o) {
-                    var n = document.createElement(type);
-                    if (o) {
-                        lang.augmentObject(n, o, true);
-                    }
-                    return n;
-                },
-                RGBElem = function(type, obj) {
-                    var o = lang.merge({
-                            //type: "txt",
-                            autocomplete: "off",
-                            value: "0",
-                            size: 3,
-                            maxlength: 3
-                        }, obj);
-
-                    o.name = o.id;
-                    return new Elem(type, o);
-                };
-
-            p = this.get("element");
-
-            // Picker slider (S and V) ---------------------------------------------
-
-            el = new Elem("div", {
-                id: ids[this.ID.PICKER_BG],
-                className: "yui-picker-bg",
-                tabIndex: -1,
-                hideFocus: true
-            });
-
-            child = new Elem("div", {
-                id: ids[this.ID.PICKER_THUMB],
-                className: "yui-picker-thumb"
-            });
-
-            img = new Elem("img", {
-                src: images.PICKER_THUMB
-            });
-
-            child.appendChild(img);
-            el.appendChild(child);
-            p.appendChild(el);
-            
-            // Hue slider ---------------------------------------------
-            el = new Elem("div", {
-                id: ids[this.ID.HUE_BG],
-                className: "yui-picker-hue-bg",
-                tabIndex: -1,
-                hideFocus: true
-            });
-
-            child = new Elem("div", {
-                id: ids[this.ID.HUE_THUMB],
-                className: "yui-picker-hue-thumb"
-            });
-
-            img = new Elem("img", {
-                src: images.HUE_THUMB
-            });
-
-            child.appendChild(img);
-            el.appendChild(child);
-            p.appendChild(el);
-
-
-            // controls ---------------------------------------------
-
-            el = new Elem("div", {
-                id: ids[this.ID.CONTROLS],
-                className: "yui-picker-controls"
-            });
-
-            p.appendChild(el);
-            p = el;
-
-                // controls header
-                el = new Elem("div", {
-                    className: "hd"
-                });
-
-                child = new Elem("a", {
-                    id: ids[this.ID.CONTROLS_LABEL],
-                    //className: "yui-picker-controls-label",
-                    href: "#"
-                });
-                el.appendChild(child);
-                p.appendChild(el);
-
-                // bd
-                el = new Elem("div", {
-                    className: "bd"
-                });
-
-                p.appendChild(el);
-                p = el;
-
-                    // rgb
-                    el = new Elem("ul", {
-                        id: ids[this.ID.RGB_CONTROLS],
-                        className: "yui-picker-rgb-controls"
-                    });
-
-                    child = new Elem("li");
-                    child.appendChild(document.createTextNode(txt.R + " "));
-
-                    fld = new RGBElem("input", {
-                        id: ids[this.ID.R],
-                        className: "yui-picker-r"
-                    });
-
-                    child.appendChild(fld);
-                    el.appendChild(child);
-
-                    child = new Elem("li");
-                    child.appendChild(document.createTextNode(txt.G + " "));
-
-                    fld = new RGBElem("input", {
-                        id: ids[this.ID.G],
-                        className: "yui-picker-g"
-                    });
-
-                    child.appendChild(fld);
-                    el.appendChild(child);
-
-                    child = new Elem("li");
-                    child.appendChild(document.createTextNode(txt.B + " "));
-
-                    fld = new RGBElem("input", {
-                        id: ids[this.ID.B],
-                        className: "yui-picker-b"
-                    });
-
-                    child.appendChild(fld);
-                    el.appendChild(child);
-
-                    p.appendChild(el);
-
-                    // hsv
-                    el = new Elem("ul", {
-                        id: ids[this.ID.HSV_CONTROLS],
-                        className: "yui-picker-hsv-controls"
-                    });
-
-                    child = new Elem("li");
-                    child.appendChild(document.createTextNode(txt.H + " "));
-
-                    fld = new RGBElem("input", {
-                        id: ids[this.ID.H],
-                        className: "yui-picker-h"
-                    });
-
-                    child.appendChild(fld);
-                    child.appendChild(document.createTextNode(" " + txt.DEG));
-
-                    el.appendChild(child);
-
-                    child = new Elem("li");
-                    child.appendChild(document.createTextNode(txt.S + " "));
-
-                    fld = new RGBElem("input", {
-                        id: ids[this.ID.S],
-                        className: "yui-picker-s"
-                    });
-
-                    child.appendChild(fld);
-                    child.appendChild(document.createTextNode(" " + txt.PERCENT));
-
-                    el.appendChild(child);
-
-                    child = new Elem("li");
-                    child.appendChild(document.createTextNode(txt.V + " "));
-
-                    fld = new RGBElem("input", {
-                        id: ids[this.ID.V],
-                        className: "yui-picker-v"
-                    });
-
-                    child.appendChild(fld);
-                    child.appendChild(document.createTextNode(" " + txt.PERCENT));
-
-                    el.appendChild(child);
-                    p.appendChild(el);
-
-
-                    // hex summary
-
-                    el = new Elem("ul", {
-                        id: ids[this.ID.HEX_SUMMARY],
-                        className: "yui-picker-hex_summary"
-                    });
-
-                    child = new Elem("li", {
-                        id: ids[this.ID.R_HEX]
-                    });
-                    el.appendChild(child);
-
-                    child = new Elem("li", {
-                        id: ids[this.ID.G_HEX]
-                    });
-                    el.appendChild(child);
-
-                    child = new Elem("li", {
-                        id: ids[this.ID.B_HEX]
-                    });
-                    el.appendChild(child);
-                    p.appendChild(el);
-
-                    // hex field
-                    el = new Elem("div", {
-                        id: ids[this.ID.HEX_CONTROLS],
-                        className: "yui-picker-hex-controls"
-                    });
-                    el.appendChild(document.createTextNode(txt.HEX + " "));
-
-                    child = new RGBElem("input", {
-                        id: ids[this.ID.HEX],
-                        className: "yui-picker-hex",
-                        size: 6,
-                        maxlength: 6
-                    });
-
-                    el.appendChild(child);
-                    p.appendChild(el);
-
-                    p = this.get("element");
-
-                    // swatch
-                    el = new Elem("div", {
-                        id: ids[this.ID.SWATCH],
-                        className: "yui-picker-swatch"
-                    });
-
-                    p.appendChild(el);
-
-                    // websafe swatch
-                    el = new Elem("div", {
-                        id: ids[this.ID.WEBSAFE_SWATCH],
-                        className: "yui-picker-websafe-swatch"
-                    });
-
-                    p.appendChild(el);
-
-        },
-
-        _attachRGBHSV : function(id, config) {
-            Event.on(this.getElement(id), "keydown", function(e, me) {
-                    me._rgbFieldKeypress(e, this, config);
-                }, this);
-            Event.on(this.getElement(id), "keypress", this._numbersOnly, this, true);
-            Event.on(this.getElement(id), "blur", function(e, me) {
-                    me._useFieldValue(e, this, config);
-                }, this);
-        },
-
-
-        /**
-         * Updates the rgb attribute with the current state of the r,g,b
-         * fields.  This is invoked from change listeners on these
-         * attributes to facilitate updating these values from the
-         * individual form fields
-         * @method _updateRGB
-         * @protected
-         */
-        _updateRGB : function() {
-            var rgb = [this.get(this.OPT.RED), 
-                       this.get(this.OPT.GREEN),
-                       this.get(this.OPT.BLUE)];
-
-            this.set(this.OPT.RGB, rgb);
-
-            this._updateSliders();
-        },
-
-        /**
-         * Creates any missing DOM structure.
-         *
-         * @method _initElements
-         * @protected
-         */
-        _initElements : function () {
-            // bind all of our elements
-            var o=this.OPT, 
-                ids = this.get(o.IDS), 
-                els = this.get(o.ELEMENTS), 
-                      i, el, id;
-
-            // Add the default value as a key for each element for easier lookup
-            for (i in this.ID) {
-                if (lang.hasOwnProperty(this.ID, i)) {
-                    ids[this.ID[i]] = ids[i];
-                }
-            }
-
-            // Check for picker element, if not there, create all of them
-            el = Dom.get(ids[this.ID.PICKER_BG]);
-            if (!el) {
-                this._createElements();
-            } else {
-            }
-
-            for (i in ids) {
-                if (lang.hasOwnProperty(ids, i)) {
-                    // look for element
-                    el = Dom.get(ids[i]);
-
-                    // generate an id if the implementer passed in an element reference,
-                    // and the element did not have an id already
-                    id = Dom.generateId(el);
-
-                    // update the id in case we generated the id
-                    ids[i] = id; // key is WEBSAFE_SWATCH
-                    ids[ids[i]] = id; // key is websafe_swatch
-
-                    // store the dom ref
-                    els[id] = el;
-                }
-            }
-
-        },
-
-        /**
-         * Sets the initial state of the sliders
-         * @method initPicker
-         */
-        initPicker : function () {
-            this._initSliders();
-            this._bindUI();
-            this.syncUI(true);
-        },
-
-        /**
-         * Creates the Hue and Value/Saturation Sliders.
-         *
-         * @method _initSliders
-         * @protected
-         */
-        _initSliders : function () {
-            var ID = this.ID,
-                size = this.get(this.OPT.PICKER_SIZE);
-
-
-            this.hueSlider = Slider.getVertSlider(
-                this.getElement(ID.HUE_BG), 
-                this.getElement(ID.HUE_THUMB), 0, size);
-
-            this.pickerSlider = Slider.getSliderRegion(
-                this.getElement(ID.PICKER_BG), 
-                this.getElement(ID.PICKER_THUMB), 0, size, 0, size);
-
-            // Apply animate attribute configuration
-            this.set(this.OPT.ANIMATE, this.get(this.OPT.ANIMATE));
-        },
-
-        /**
-         * Adds event listeners to Sliders and UI elements.  Wires everything
-         * up.
-         *
-         * @method _bindUI
-         * @protected
-         */
-        _bindUI : function () {
-            var ID = this.ID,
-                O  = this.OPT;
-
-            this.hueSlider.subscribe("change",
-                this._onHueSliderChange, this, true);
-            this.pickerSlider.subscribe("change",
-                this._onPickerSliderChange, this, true);
-
-            Event.on(this.getElement(ID.WEBSAFE_SWATCH), "click", function(e) {
-                   this.setValue(this.get(O.WEBSAFE));
-               }, this, true);
-
-            Event.on(this.getElement(ID.CONTROLS_LABEL), "click", function(e) {
-                   this.set(O.SHOW_CONTROLS, !this.get(O.SHOW_CONTROLS));
-                   Event.preventDefault(e);
-               }, this, true);
-
-            this._attachRGBHSV(ID.R, O.RED); 
-            this._attachRGBHSV(ID.G, O.GREEN); 
-            this._attachRGBHSV(ID.B, O.BLUE); 
-            this._attachRGBHSV(ID.H, O.HUE); 
-            this._attachRGBHSV(ID.S, O.SATURATION); 
-            this._attachRGBHSV(ID.V, O.VALUE); 
-
-            Event.on(this.getElement(ID.HEX), "keydown", function(e, me) {
-                    me._hexFieldKeypress(e, this, O.HEX);
-                }, this);
-
-            Event.on(this.getElement(this.ID.HEX), "keypress",
-                this._hexOnly, this,true);
-            Event.on(this.getElement(this.ID.HEX), "blur", function(e, me) {
-                    me._useFieldValue(e, this, O.HEX);
-                }, this);
-        },
-
-        /**
-         * Wrapper for _updateRGB, but allows setting 
-         *
-         * @method syncUI
-         * @param skipAnim {Boolean} Omit Slider animation for this action
-         */
-        syncUI : function (skipAnim) {
-            this.skipAnim = skipAnim;
-            this._updateRGB();
-            this.skipAnim = false;
-        },
-
-
-        /**
-         * Updates the RGB values from the current state of the HSV
-         * values.  Executed when the one of the HSV form fields are
-         * updated
-         * _updateRGBFromHSV
-         * @protected
-         */
-        _updateRGBFromHSV : function() {
-            var hsv = [this.get(this.OPT.HUE), 
-                       this.get(this.OPT.SATURATION)/100,
-                       this.get(this.OPT.VALUE)/100],
-                rgb = Color.hsv2rgb(hsv);
-
-            this.set(this.OPT.RGB, rgb);
-
-            this._updateSliders();
-        },
-
-        /**
-         * Parses the hex string to normalize shorthand values, converts
-         * the hex value to rgb and updates the rgb attribute (which
-         * updates the state for all of the other values)
-         * method _updateHex
-         * @protected
-         */
-        _updateHex : function() {
-           
-            var hex = this.get(this.OPT.HEX),
-                l   = hex.length,
-                c,i,rgb;
-
-            // support #369 -> #336699 shorthand
-            if (l === 3) {
-                c = hex.split("");
-                for (i=0; i<l; i=i+1) {
-                    c[i] = c[i] + c[i];
-                }
-
-                hex = c.join("");
-            }
-
-            if (hex.length !== 6) {
-                return false;
-            }
-
-            rgb = Color.hex2rgb(hex);
-
-
-            this.setValue(rgb);
-        },
-
-
-        /**
-         * Returns the cached element reference.  If the id is not a string, it
-         * is assumed that it is an element and this is returned.
-         * @param id {string|HTMLElement} the element key, id, or ref
-         * @param on {boolean} hide or show.  If true, show
-         * @protected
-         */
-        _hideShowEl : function(id, on) {
-            var el = (lang.isString(id) ? this.getElement(id) : id);
-            Dom.setStyle(el, "display", (on) ? "" : "none");
-        },
-
-
-        /**
-         * Sets up the config attributes and the change listeners for this
-         * properties
-         * @method initAttributes
-         * @param attr An object containing default attribute values
-         */
-        initAttributes : function(attr) {
-
-            attr = attr || {};
-            ColorPicker.superclass.initAttributes.call(this, attr);
-            
-            /**
-             * The size of the picker. Trying to change this is not recommended.
-             * @attribute pickersize
-             * @default 180
-             * @type int
-             */
-            this.setAttributeConfig(this.OPT.PICKER_SIZE, {
-                    value: attr.size || this.DEFAULT.PICKER_SIZE
-                });
-
-            /**
-             * The current hue value 0-360
-             * @attribute hue
-             * @type int
-             */
-            this.setAttributeConfig(this.OPT.HUE, {
-                    value: attr.hue || 0,
-                    validator: lang.isNumber
-                });
-
-            /**
-             * The current saturation value 0-100
-             * @attribute saturation
-             * @type int
-             */
-            this.setAttributeConfig(this.OPT.SATURATION, {
-                    value: attr.saturation || 0,
-                    validator: lang.isNumber
-                });
-
-            /**
-             * The current value/brightness value 0-100
-             * @attribute value
-             * @type int
-             */
-            this.setAttributeConfig(this.OPT.VALUE, {
-                    value: lang.isNumber(attr.value) ? attr.value : 100,
-                    validator: lang.isNumber
-                });
-
-            /**
-             * The current red value 0-255
-             * @attribute red
-             * @type int
-             */
-            this.setAttributeConfig(this.OPT.RED, {
-                    value: lang.isNumber(attr.red) ? attr.red : 255,
-                    validator: lang.isNumber
-                });
-
-            /**
-             * The current green value 0-255
-             * @attribute green 
-             * @type int
-             */
-            this.setAttributeConfig(this.OPT.GREEN, {
-                    value: lang.isNumber(attr.green) ? attr.green : 255,
-                    validator: lang.isNumber
-                });
-
-            /**
-             * The current blue value 0-255
-             * @attribute blue
-             * @type int
-             */
-            this.setAttributeConfig(this.OPT.BLUE, {
-                    value: lang.isNumber(attr.blue) ? attr.blue : 255,
-                    validator: lang.isNumber
-                });
-
-            /**
-             * The current hex value #000000-#FFFFFF, without the #
-             * @attribute hex
-             * @type string
-             */
-            this.setAttributeConfig(this.OPT.HEX, {
-                    value: attr.hex || "FFFFFF",
-                    validator: lang.isString
-                });
-
-            /**
-             * The current rgb value.  Updates the state of all of the
-             * other value fields.  Read-only: use setValue to set the
-             * controls rgb value.
-             * @attribute hex
-             * @type [int, int, int]
-             * @readonly
-             */
-            this.setAttributeConfig(this.OPT.RGB, {
-                    value: attr.rgb || [255,255,255],
-                    method: function(rgb) {
-
-                        this.set(this.OPT.RED, rgb[0], true);
-                        this.set(this.OPT.GREEN, rgb[1], true);
-                        this.set(this.OPT.BLUE, rgb[2], true);
-
-                        var websafe = Color.websafe(rgb),
-                            hex = Color.rgb2hex(rgb),
-                            hsv = Color.rgb2hsv(rgb);
-
-                        this.set(this.OPT.WEBSAFE, websafe, true);
-                        this.set(this.OPT.HEX, hex, true);
-
-
-
-                        // fix bug #1754338 - when saturation is 0, hue is
-                        // silently always set to 0, but input field not updated
-                        if (hsv[1]) {
-                            this.set(this.OPT.HUE, hsv[0], true);
-                        }
-                        this.set(this.OPT.SATURATION, Math.round(hsv[1]*100), true);
-                        this.set(this.OPT.VALUE, Math.round(hsv[2]*100), true);
-                    },
-                    readonly: true
-                });
-
-            /**
-             * If the color picker will live inside of a container object,
-             * set, provide a reference to it so the control can use the
-             * container's events.
-             * @attribute container
-             * @type YAHOO.widget.Panel
-             */
-            this.setAttributeConfig(this.OPT.CONTAINER, {
-                        value: null,
-                        method: function(container) {
-                            if (container) {
-                                // Position can get out of sync when the
-                                // control is manipulated while display is
-                                // none.  Resetting the slider constraints
-                                // when it is visible gets the state back in
-                                // order.
-                                container.showEvent.subscribe(function() {
-                                    // this.pickerSlider.thumb.resetConstraints();
-                                    // this.hueSlider.thumb.resetConstraints();
-                                    this.pickerSlider.focus();
-                                }, this, true);
-                            }
-                        }
-                    });
-            /**
-             * The closest current websafe value
-             * @attribute websafe
-             * @type int
-             */
-            this.setAttributeConfig(this.OPT.WEBSAFE, {
-                    value: attr.websafe || [255,255,255]
-                });
-
-
-            var ids = attr.ids || lang.merge({}, this.ID), i;
-
-            if (!attr.ids && _pickercount > 1) {
-                for (i in ids) {
-                    if (lang.hasOwnProperty(ids, i)) {
-                        ids[i] = ids[i] + _pickercount;
-                    }
-                }
-            }
-
-
-            /**
-             * A list of element ids and/or element references used by the 
-             * control.  The default is the this.ID list, and can be customized
-             * by passing a list in the contructor
-             * @attribute ids
-             * @type {referenceid: realid}
-             * @writeonce
-             */
-            this.setAttributeConfig(this.OPT.IDS, {
-                    value: ids,
-                    writeonce: true
-                });
-
-            /**
-             * A list of txt strings for internationalization.  Default
-             * is this.TXT
-             * @attribute txt
-             * @type {key: txt}
-             * @writeonce
-             */
-            this.setAttributeConfig(this.OPT.TXT, {
-                    value: attr.txt || this.TXT,
-                    writeonce: true
-                });
-
-            /**
-             * The img src default list
-             * is this.IMAGES
-             * @attribute images
-             * @type {key: image}
-             * @writeonce
-             */
-            this.setAttributeConfig(this.OPT.IMAGES, {
-                    value: attr.images || this.IMAGE,
-                    writeonce: true
-                });
-            /**
-             * The element refs used by this control.  Set at initialization
-             * @attribute elements
-             * @type {id: HTMLElement}
-             * @readonly
-             */
-            this.setAttributeConfig(this.OPT.ELEMENTS, {
-                    value: {},
-                    readonly: true
-                });
-
-            /**
-             * Hide/show the entire set of controls
-             * @attribute showcontrols
-             * @type boolean
-             * @default true
-             */
-            this.setAttributeConfig(this.OPT.SHOW_CONTROLS, {
-                    value: lang.isBoolean(attr.showcontrols) ? attr.showcontrols : true,
-                    method: function(on) {
-
-                        var el = Dom.getElementsByClassName("bd", "div", 
-                                this.getElement(this.ID.CONTROLS))[0];
-
-                        this._hideShowEl(el, on);
-
-                        this.getElement(this.ID.CONTROLS_LABEL).innerHTML = 
-                            (on) ? this.get(this.OPT.TXT).HIDE_CONTROLS :
-                                   this.get(this.OPT.TXT).SHOW_CONTROLS;
-
-                    }
-                });
-
-            /**
-             * Hide/show the rgb controls
-             * @attribute showrgbcontrols
-             * @type boolean
-             * @default true
-             */
-            this.setAttributeConfig(this.OPT.SHOW_RGB_CONTROLS, {
-                    value: lang.isBoolean(attr.showrgbcontrols) ? attr.showrgbcontrols : true,
-                    method: function(on) {
-                        this._hideShowEl(this.ID.RGB_CONTROLS, on);
-                    }
-                });
-
-            /**
-             * Hide/show the hsv controls
-             * @attribute showhsvcontrols
-             * @type boolean
-             * @default false
-             */
-            this.setAttributeConfig(this.OPT.SHOW_HSV_CONTROLS, {
-                    value: lang.isBoolean(attr.showhsvcontrols) ?
-                                          attr.showhsvcontrols : false,
-                    method: function(on) {
-                        //Dom.setStyle(this.getElement(this.ID.HSV_CONTROLS), "visibility", (on) ? "" : "hidden");
-                        this._hideShowEl(this.ID.HSV_CONTROLS, on);
-
-                        // can't show both the hsv controls and the rbg hex summary
-                        if (on && this.get(this.OPT.SHOW_HEX_SUMMARY)) {
-                            this.set(this.OPT.SHOW_HEX_SUMMARY, false);
-                        }
-                    }
-                });
-
-            /**
-             * Hide/show the hex controls
-             * @attribute showhexcontrols
-             * @type boolean
-             * @default true
-             */
-            this.setAttributeConfig(this.OPT.SHOW_HEX_CONTROLS, {
-                    value: lang.isBoolean(attr.showhexcontrols) ?
-                                          attr.showhexcontrols : false,
-                    method: function(on) {
-                        this._hideShowEl(this.ID.HEX_CONTROLS, on);
-                    }
-                });
-
-            /**
-             * Hide/show the websafe swatch
-             * @attribute showwebsafe
-             * @type boolean
-             * @default true
-             */
-            this.setAttributeConfig(this.OPT.SHOW_WEBSAFE, {
-                    value: lang.isBoolean(attr.showwebsafe) ? attr.showwebsafe : true,
-                    method: function(on) {
-                        this._hideShowEl(this.ID.WEBSAFE_SWATCH, on);
-                    }
-                });
-
-            /**
-             * Hide/show the hex summary
-             * @attribute showhexsummary
-             * @type boolean
-             * @default true
-             */
-            this.setAttributeConfig(this.OPT.SHOW_HEX_SUMMARY, {
-                    value: lang.isBoolean(attr.showhexsummary) ? attr.showhexsummary : true,
-                    method: function(on) {
-                        this._hideShowEl(this.ID.HEX_SUMMARY, on);
-
-                        // can't show both the hsv controls and the rbg hex summary
-                        if (on && this.get(this.OPT.SHOW_HSV_CONTROLS)) {
-                            this.set(this.OPT.SHOW_HSV_CONTROLS, false);
-                        }
-                    }
-                });
-            this.setAttributeConfig(this.OPT.ANIMATE, {
-                    value: lang.isBoolean(attr.animate) ? attr.animate : true,
-                    method: function(on) {
-                        if (this.pickerSlider) {
-                            this.pickerSlider.animate = on;
-                            this.hueSlider.animate = on;
-                        }
-                    }
-                });
-
-            this.on(this.OPT.HUE + "Change", this._updateRGBFromHSV, this, true);
-            this.on(this.OPT.SATURATION + "Change", this._updateRGBFromHSV, this, true);
-            this.on(this.OPT.VALUE + "Change", this._updateRGBFromHSV, this, true);
-
-            this.on(this.OPT.RED + "Change", this._updateRGB, this, true);
-            this.on(this.OPT.GREEN + "Change", this._updateRGB, this, true);
-            this.on(this.OPT.BLUE + "Change", this._updateRGB, this, true);
-
-            this.on(this.OPT.HEX + "Change", this._updateHex, this, true);
-
-            this._initElements();
-        }
-    });
-
-    YAHOO.widget.ColorPicker = ColorPicker;
-})();
-YAHOO.register("colorpicker", YAHOO.widget.ColorPicker, {version: "2.8.0r4", build: "2449"});
diff --git a/koha-tmpl/intranet-tmpl/prog/en/lib/yui/connection/connection-debug.js b/koha-tmpl/intranet-tmpl/prog/en/lib/yui/connection/connection-debug.js
deleted file mode 100644 (file)
index 84a1d4e..0000000
+++ /dev/null
@@ -1,1576 +0,0 @@
-/*
-Copyright (c) 2009, Yahoo! Inc. All rights reserved.
-Code licensed under the BSD License:
-http://developer.yahoo.net/yui/license.txt
-version: 2.8.0r4
-*/
-/**
- * The Connection Manager provides a simplified interface to the XMLHttpRequest
- * object.  It handles cross-browser instantiantion of XMLHttpRequest, negotiates the
- * interactive states and server response, returning the results to a pre-defined
- * callback you create.
- *
- * @namespace YAHOO.util
- * @module connection
- * @requires yahoo
- * @requires event
- */
-
-/**
- * The Connection Manager singleton provides methods for creating and managing
- * asynchronous transactions.
- *
- * @class Connect
- */
-
-YAHOO.util.Connect =
-{
-  /**
-   * @description Array of MSFT ActiveX ids for XMLHttpRequest.
-   * @property _msxml_progid
-   * @private
-   * @static
-   * @type array
-   */
-       _msxml_progid:[
-               'Microsoft.XMLHTTP',
-               'MSXML2.XMLHTTP.3.0',
-               'MSXML2.XMLHTTP'
-               ],
-
-  /**
-   * @description Object literal of HTTP header(s)
-   * @property _http_header
-   * @private
-   * @static
-   * @type object
-   */
-       _http_headers:{},
-
-  /**
-   * @description Determines if HTTP headers are set.
-   * @property _has_http_headers
-   * @private
-   * @static
-   * @type boolean
-   */
-       _has_http_headers:false,
-
- /**
-  * @description Determines if a default header of
-  * Content-Type of 'application/x-www-form-urlencoded'
-  * will be added to any client HTTP headers sent for POST
-  * transactions.
-  * @property _use_default_post_header
-  * @private
-  * @static
-  * @type boolean
-  */
-    _use_default_post_header:true,
-
- /**
-  * @description The default header used for POST transactions.
-  * @property _default_post_header
-  * @private
-  * @static
-  * @type boolean
-  */
-    _default_post_header:'application/x-www-form-urlencoded; charset=UTF-8',
-
- /**
-  * @description The default header used for transactions involving the
-  * use of HTML forms.
-  * @property _default_form_header
-  * @private
-  * @static
-  * @type boolean
-  */
-    _default_form_header:'application/x-www-form-urlencoded',
-
- /**
-  * @description Determines if a default header of
-  * 'X-Requested-With: XMLHttpRequest'
-  * will be added to each transaction.
-  * @property _use_default_xhr_header
-  * @private
-  * @static
-  * @type boolean
-  */
-    _use_default_xhr_header:true,
-
- /**
-  * @description The default header value for the label
-  * "X-Requested-With".  This is sent with each
-  * transaction, by default, to identify the
-  * request as being made by YUI Connection Manager.
-  * @property _default_xhr_header
-  * @private
-  * @static
-  * @type boolean
-  */
-    _default_xhr_header:'XMLHttpRequest',
-
- /**
-  * @description Determines if custom, default headers
-  * are set for each transaction.
-  * @property _has_default_header
-  * @private
-  * @static
-  * @type boolean
-  */
-    _has_default_headers:true,
-
- /**
-  * @description Determines if custom, default headers
-  * are set for each transaction.
-  * @property _has_default_header
-  * @private
-  * @static
-  * @type boolean
-  */
-    _default_headers:{},
-
- /**
-  * @description Collection of polling references to the polling mechanism in handleReadyState.
-  * @property _poll
-  * @private
-  * @static
-  * @type object
-  */
-    _poll:{},
-
- /**
-  * @description Queue of timeout values for each transaction callback with a defined timeout value.
-  * @property _timeOut
-  * @private
-  * @static
-  * @type object
-  */
-    _timeOut:{},
-
-  /**
-   * @description The polling frequency, in milliseconds, for HandleReadyState.
-   * when attempting to determine a transaction's XHR readyState.
-   * The default is 50 milliseconds.
-   * @property _polling_interval
-   * @private
-   * @static
-   * @type int
-   */
-     _polling_interval:50,
-
-  /**
-   * @description A transaction counter that increments the transaction id for each transaction.
-   * @property _transaction_id
-   * @private
-   * @static
-   * @type int
-   */
-     _transaction_id:0,
-
-  /**
-   * @description Custom event that fires at the start of a transaction
-   * @property startEvent
-   * @private
-   * @static
-   * @type CustomEvent
-   */
-       startEvent: new YAHOO.util.CustomEvent('start'),
-
-  /**
-   * @description Custom event that fires when a transaction response has completed.
-   * @property completeEvent
-   * @private
-   * @static
-   * @type CustomEvent
-   */
-       completeEvent: new YAHOO.util.CustomEvent('complete'),
-
-  /**
-   * @description Custom event that fires when handleTransactionResponse() determines a
-   * response in the HTTP 2xx range.
-   * @property successEvent
-   * @private
-   * @static
-   * @type CustomEvent
-   */
-       successEvent: new YAHOO.util.CustomEvent('success'),
-
-  /**
-   * @description Custom event that fires when handleTransactionResponse() determines a
-   * response in the HTTP 4xx/5xx range.
-   * @property failureEvent
-   * @private
-   * @static
-   * @type CustomEvent
-   */
-       failureEvent: new YAHOO.util.CustomEvent('failure'),
-
-  /**
-   * @description Custom event that fires when a transaction is successfully aborted.
-   * @property abortEvent
-   * @private
-   * @static
-   * @type CustomEvent
-   */
-       abortEvent: new YAHOO.util.CustomEvent('abort'),
-
-  /**
-   * @description A reference table that maps callback custom events members to its specific
-   * event name.
-   * @property _customEvents
-   * @private
-   * @static
-   * @type object
-   */
-       _customEvents:
-       {
-               onStart:['startEvent', 'start'],
-               onComplete:['completeEvent', 'complete'],
-               onSuccess:['successEvent', 'success'],
-               onFailure:['failureEvent', 'failure'],
-               onUpload:['uploadEvent', 'upload'],
-               onAbort:['abortEvent', 'abort']
-       },
-
-  /**
-   * @description Member to add an ActiveX id to the existing xml_progid array.
-   * In the event(unlikely) a new ActiveX id is introduced, it can be added
-   * without internal code modifications.
-   * @method setProgId
-   * @public
-   * @static
-   * @param {string} id The ActiveX id to be added to initialize the XHR object.
-   * @return void
-   */
-       setProgId:function(id)
-       {
-               this._msxml_progid.unshift(id);
-               YAHOO.log('ActiveX Program Id  ' + id + ' added to _msxml_progid.', 'info', 'Connection');
-       },
-
-  /**
-   * @description Member to override the default POST header.
-   * @method setDefaultPostHeader
-   * @public
-   * @static
-   * @param {boolean} b Set and use default header - true or false .
-   * @return void
-   */
-       setDefaultPostHeader:function(b)
-       {
-               if(typeof b == 'string'){
-                       this._default_post_header = b;
-                       YAHOO.log('Default POST header set to  ' + b, 'info', 'Connection');
-               }
-               else if(typeof b == 'boolean'){
-                       this._use_default_post_header = b;
-               }
-       },
-
-  /**
-   * @description Member to override the default transaction header..
-   * @method setDefaultXhrHeader
-   * @public
-   * @static
-   * @param {boolean} b Set and use default header - true or false .
-   * @return void
-   */
-       setDefaultXhrHeader:function(b)
-       {
-               if(typeof b == 'string'){
-                       this._default_xhr_header = b;
-                       YAHOO.log('Default XHR header set to  ' + b, 'info', 'Connection');
-               }
-               else{
-                       this._use_default_xhr_header = b;
-               }
-       },
-
-  /**
-   * @description Member to modify the default polling interval.
-   * @method setPollingInterval
-   * @public
-   * @static
-   * @param {int} i The polling interval in milliseconds.
-   * @return void
-   */
-       setPollingInterval:function(i)
-       {
-               if(typeof i == 'number' && isFinite(i)){
-                       this._polling_interval = i;
-                       YAHOO.log('Default polling interval set to ' + i +'ms', 'info', 'Connection');
-               }
-       },
-
-  /**
-   * @description Instantiates a XMLHttpRequest object and returns an object with two properties:
-   * the XMLHttpRequest instance and the transaction id.
-   * @method createXhrObject
-   * @private
-   * @static
-   * @param {int} transactionId Property containing the transaction id for this transaction.
-   * @return object
-   */
-       createXhrObject:function(transactionId)
-       {
-               var obj,http,i;
-               try
-               {
-                       // Instantiates XMLHttpRequest in non-IE browsers and assigns to http.
-                       http = new XMLHttpRequest();
-                       //  Object literal with http and tId properties
-                       obj = { conn:http, tId:transactionId, xhr: true };
-                       YAHOO.log('XHR object created for transaction ' + transactionId, 'info', 'Connection');
-               }
-               catch(e)
-               {
-                       for(i=0; i<this._msxml_progid.length; ++i){
-                               try
-                               {
-                                       // Instantiates XMLHttpRequest for IE and assign to http
-                                       http = new ActiveXObject(this._msxml_progid[i]);
-                                       //  Object literal with conn and tId properties
-                                       obj = { conn:http, tId:transactionId, xhr: true };
-                                       YAHOO.log('ActiveX XHR object created for transaction ' + transactionId, 'info', 'Connection');
-                                       break;
-                               }
-                               catch(e1){}
-                       }
-               }
-               finally
-               {
-                       return obj;
-               }
-       },
-
-  /**
-   * @description This method is called by asyncRequest to create a
-   * valid connection object for the transaction.  It also passes a
-   * transaction id and increments the transaction id counter.
-   * @method getConnectionObject
-   * @private
-   * @static
-   * @return {object}
-   */
-       getConnectionObject:function(t)
-       {
-               var o, tId = this._transaction_id;
-
-               try
-               {
-                       if(!t){
-                               o = this.createXhrObject(tId);
-                       }
-                       else{
-                               o = {tId:tId};
-                               if(t==='xdr'){
-                                       o.conn = this._transport;
-                                       o.xdr = true;
-                               }
-                               else if(t==='upload'){
-                                       o.upload = true;
-                               }
-                       }
-
-                       if(o){
-                               this._transaction_id++;
-                       }
-               }
-               catch(e){}
-               return o;
-       },
-
-  /**
-   * @description Method for initiating an asynchronous request via the XHR object.
-   * @method asyncRequest
-   * @public
-   * @static
-   * @param {string} method HTTP transaction method
-   * @param {string} uri Fully qualified path of resource
-   * @param {callback} callback User-defined callback function or object
-   * @param {string} postData POST body
-   * @return {object} Returns the connection object
-   */
-       asyncRequest:function(method, uri, callback, postData)
-       {
-               var o,t,args = (callback && callback.argument)?callback.argument:null;
-
-               if(this._isFileUpload){
-                       t = 'upload';
-               }
-               else if(callback.xdr){
-                       t = 'xdr';
-               }
-
-               o = this.getConnectionObject(t);
-               if(!o){
-                       YAHOO.log('Unable to create connection object.', 'error', 'Connection');
-                       return null;
-               }
-               else{
-
-                       // Intialize any transaction-specific custom events, if provided.
-                       if(callback && callback.customevents){
-                               this.initCustomEvents(o, callback);
-                       }
-
-                       if(this._isFormSubmit){
-                               if(this._isFileUpload){
-                                       this.uploadFile(o, callback, uri, postData);
-                                       return o;
-                               }
-
-                               // If the specified HTTP method is GET, setForm() will return an
-                               // encoded string that is concatenated to the uri to
-                               // create a querystring.
-                               if(method.toUpperCase() == 'GET'){
-                                       if(this._sFormData.length !== 0){
-                                               // If the URI already contains a querystring, append an ampersand
-                                               // and then concatenate _sFormData to the URI.
-                                               uri += ((uri.indexOf('?') == -1)?'?':'&') + this._sFormData;
-                                       }
-                               }
-                               else if(method.toUpperCase() == 'POST'){
-                                       // If POST data exist in addition to the HTML form data,
-                                       // it will be concatenated to the form data.
-                                       postData = postData?this._sFormData + "&" + postData:this._sFormData;
-                               }
-                       }
-
-                       if(method.toUpperCase() == 'GET' && (callback && callback.cache === false)){
-                               // If callback.cache is defined and set to false, a
-                               // timestamp value will be added to the querystring.
-                               uri += ((uri.indexOf('?') == -1)?'?':'&') + "rnd=" + new Date().valueOf().toString();
-                       }
-
-                       // Each transaction will automatically include a custom header of
-                       // "X-Requested-With: XMLHttpRequest" to identify the request as
-                       // having originated from Connection Manager.
-                       if(this._use_default_xhr_header){
-                               if(!this._default_headers['X-Requested-With']){
-                                       this.initHeader('X-Requested-With', this._default_xhr_header, true);
-                                       YAHOO.log('Initialize transaction header X-Request-Header to XMLHttpRequest.', 'info', 'Connection');
-                               }
-                       }
-
-                       //If the transaction method is POST and the POST header value is set to true
-                       //or a custom value, initalize the Content-Type header to this value.
-                       if((method.toUpperCase() === 'POST' && this._use_default_post_header) && this._isFormSubmit === false){
-                               this.initHeader('Content-Type', this._default_post_header);
-                               YAHOO.log('Initialize header Content-Type to application/x-www-form-urlencoded; UTF-8 for POST transaction.', 'info', 'Connection');
-                       }
-
-                       if(o.xdr){
-                               this.xdr(o, method, uri, callback, postData);
-                               return o;
-                       }
-
-                       o.conn.open(method, uri, true);
-                       //Initialize all default and custom HTTP headers,
-                       if(this._has_default_headers || this._has_http_headers){
-                               this.setHeader(o);
-                       }
-
-                       this.handleReadyState(o, callback);
-                       o.conn.send(postData || '');
-                       YAHOO.log('Transaction ' + o.tId + ' sent.', 'info', 'Connection');
-
-                       // Reset the HTML form data and state properties as
-                       // soon as the data are submitted.
-                       if(this._isFormSubmit === true){
-                               this.resetFormState();
-                       }
-
-                       // Fire global custom event -- startEvent
-                       this.startEvent.fire(o, args);
-
-                       if(o.startEvent){
-                               // Fire transaction custom event -- startEvent
-                               o.startEvent.fire(o, args);
-                       }
-
-                       return o;
-               }
-       },
-
-  /**
-   * @description This method creates and subscribes custom events,
-   * specific to each transaction
-   * @method initCustomEvents
-   * @private
-   * @static
-   * @param {object} o The connection object
-   * @param {callback} callback The user-defined callback object
-   * @return {void}
-   */
-       initCustomEvents:function(o, callback)
-       {
-               var prop;
-               // Enumerate through callback.customevents members and bind/subscribe
-               // events that match in the _customEvents table.
-               for(prop in callback.customevents){
-                       if(this._customEvents[prop][0]){
-                               // Create the custom event
-                               o[this._customEvents[prop][0]] = new YAHOO.util.CustomEvent(this._customEvents[prop][1], (callback.scope)?callback.scope:null);
-                               YAHOO.log('Transaction-specific Custom Event ' + o[this._customEvents[prop][1]] + ' created.', 'info', 'Connection');
-
-                               // Subscribe the custom event
-                               o[this._customEvents[prop][0]].subscribe(callback.customevents[prop]);
-                               YAHOO.log('Transaction-specific Custom Event ' + o[this._customEvents[prop][1]] + ' subscribed.', 'info', 'Connection');
-                       }
-               }
-       },
-
-  /**
-   * @description This method serves as a timer that polls the XHR object's readyState
-   * property during a transaction, instead of binding a callback to the
-   * onreadystatechange event.  Upon readyState 4, handleTransactionResponse
-   * will process the response, and the timer will be cleared.
-   * @method handleReadyState
-   * @private
-   * @static
-   * @param {object} o The connection object
-   * @param {callback} callback The user-defined callback object
-   * @return {void}
-   */
-
-    handleReadyState:function(o, callback)
-
-    {
-               var oConn = this,
-                       args = (callback && callback.argument)?callback.argument:null;
-
-               if(callback && callback.timeout){
-                       this._timeOut[o.tId] = window.setTimeout(function(){ oConn.abort(o, callback, true); }, callback.timeout);
-               }
-
-               this._poll[o.tId] = window.setInterval(
-                       function(){
-                               if(o.conn && o.conn.readyState === 4){
-
-                                       // Clear the polling interval for the transaction
-                                       // and remove the reference from _poll.
-                                       window.clearInterval(oConn._poll[o.tId]);
-                                       delete oConn._poll[o.tId];
-
-                                       if(callback && callback.timeout){
-                                               window.clearTimeout(oConn._timeOut[o.tId]);
-                                               delete oConn._timeOut[o.tId];
-                                       }
-
-                                       // Fire global custom event -- completeEvent
-                                       oConn.completeEvent.fire(o, args);
-
-                                       if(o.completeEvent){
-                                               // Fire transaction custom event -- completeEvent
-                                               o.completeEvent.fire(o, args);
-                                       }
-
-                                       oConn.handleTransactionResponse(o, callback);
-                               }
-                       }
-               ,this._polling_interval);
-    },
-
-  /**
-   * @description This method attempts to interpret the server response and
-   * determine whether the transaction was successful, or if an error or
-   * exception was encountered.
-   * @method handleTransactionResponse
-   * @private
-   * @static
-   * @param {object} o The connection object
-   * @param {object} callback The user-defined callback object
-   * @param {boolean} isAbort Determines if the transaction was terminated via abort().
-   * @return {void}
-   */
-    handleTransactionResponse:function(o, callback, isAbort)
-    {
-               var httpStatus, responseObject,
-                       args = (callback && callback.argument)?callback.argument:null,
-                       xdrS = (o.r && o.r.statusText === 'xdr:success')?true:false,
-                       xdrF = (o.r && o.r.statusText === 'xdr:failure')?true:false,
-                       xdrA = isAbort;
-
-               try
-               {
-                       if((o.conn.status !== undefined && o.conn.status !== 0) || xdrS){
-                               // XDR requests will not have HTTP status defined. The
-                               // statusText property will define the response status
-                               // set by the Flash transport.
-                               httpStatus = o.conn.status;
-                       }
-                       else if(xdrF && !xdrA){
-                               // Set XDR transaction failure to a status of 0, which
-                               // resolves as an HTTP failure, instead of an exception.
-                               httpStatus = 0;
-                       }
-                       else{
-                               httpStatus = 13030;
-                       }
-               }
-               catch(e){
-
-                        // 13030 is a custom code to indicate the condition -- in Mozilla/FF --
-                        // when the XHR object's status and statusText properties are
-                        // unavailable, and a query attempt throws an exception.
-                       httpStatus = 13030;
-               }
-
-               if((httpStatus >= 200 && httpStatus < 300) || httpStatus === 1223 || xdrS){
-                       responseObject = o.xdr ? o.r : this.createResponseObject(o, args);
-                       if(callback && callback.success){
-                               if(!callback.scope){
-                                       callback.success(responseObject);
-                                       YAHOO.log('Success callback. HTTP code is ' + httpStatus, 'info', 'Connection');
-                               }
-                               else{
-                                       // If a scope property is defined, the callback will be fired from
-                                       // the context of the object.
-                                       callback.success.apply(callback.scope, [responseObject]);
-                                       YAHOO.log('Success callback with scope. HTTP code is ' + httpStatus, 'info', 'Connection');
-                               }
-                       }
-
-                       // Fire global custom event -- successEvent
-                       this.successEvent.fire(responseObject);
-
-                       if(o.successEvent){
-                               // Fire transaction custom event -- successEvent
-                               o.successEvent.fire(responseObject);
-                       }
-               }
-               else{
-                       switch(httpStatus){
-                               // The following cases are wininet.dll error codes that may be encountered.
-                               case 12002: // Server timeout
-                               case 12029: // 12029 to 12031 correspond to dropped connections.
-                               case 12030:
-                               case 12031:
-                               case 12152: // Connection closed by server.
-                               case 13030: // See above comments for variable status.
-                                       // XDR transactions will not resolve to this case, since the
-                                       // response object is already built in the xdr response.
-                                       responseObject = this.createExceptionObject(o.tId, args, (isAbort?isAbort:false));
-                                       if(callback && callback.failure){
-                                               if(!callback.scope){
-                                                       callback.failure(responseObject);
-                                                       YAHOO.log('Failure callback. Exception detected. Status code is ' + httpStatus, 'warn', 'Connection');
-                                               }
-                                               else{
-                                                       callback.failure.apply(callback.scope, [responseObject]);
-                                                       YAHOO.log('Failure callback with scope. Exception detected. Status code is ' + httpStatus, 'warn', 'Connection');
-                                               }
-                                       }
-
-                                       break;
-                               default:
-                                       responseObject = (o.xdr) ? o.response : this.createResponseObject(o, args);
-                                       if(callback && callback.failure){
-                                               if(!callback.scope){
-                                                       callback.failure(responseObject);
-                                                       YAHOO.log('Failure callback. HTTP status code is ' + httpStatus, 'warn', 'Connection');
-                                               }
-                                               else{
-                                                       callback.failure.apply(callback.scope, [responseObject]);
-                                                       YAHOO.log('Failure callback with scope. HTTP status code is ' + httpStatus, 'warn', 'Connection');
-                                               }
-                                       }
-                       }
-
-                       // Fire global custom event -- failureEvent
-                       this.failureEvent.fire(responseObject);
-
-                       if(o.failureEvent){
-                               // Fire transaction custom event -- failureEvent
-                               o.failureEvent.fire(responseObject);
-                       }
-
-               }
-
-               this.releaseObject(o);
-               responseObject = null;
-    },
-
-  /**
-   * @description This method evaluates the server response, creates and returns the results via
-   * its properties.  Success and failure cases will differ in the response
-   * object's property values.
-   * @method createResponseObject
-   * @private
-   * @static
-   * @param {object} o The connection object
-   * @param {callbackArg} callbackArg The user-defined argument or arguments to be passed to the callback
-   * @return {object}
-   */
-    createResponseObject:function(o, callbackArg)
-    {
-               var obj = {}, headerObj = {},
-                       i, headerStr, header, delimitPos;
-
-               try
-               {
-                       headerStr = o.conn.getAllResponseHeaders();
-                       header = headerStr.split('\n');
-                       for(i=0; i<header.length; i++){
-                               delimitPos = header[i].indexOf(':');
-                               if(delimitPos != -1){
-                                       headerObj[header[i].substring(0,delimitPos)] = YAHOO.lang.trim(header[i].substring(delimitPos+2));
-                               }
-                       }
-               }
-               catch(e){}
-
-               obj.tId = o.tId;
-               // Normalize IE's response to HTTP 204 when Win error 1223.
-               obj.status = (o.conn.status == 1223)?204:o.conn.status;
-               // Normalize IE's statusText to "No Content" instead of "Unknown".
-               obj.statusText = (o.conn.status == 1223)?"No Content":o.conn.statusText;
-               obj.getResponseHeader = headerObj;
-               obj.getAllResponseHeaders = headerStr;
-               obj.responseText = o.conn.responseText;
-               obj.responseXML = o.conn.responseXML;
-
-               if(callbackArg){
-                       obj.argument = callbackArg;
-               }
-
-               return obj;
-    },
-
-  /**
-   * @description If a transaction cannot be completed due to dropped or closed connections,
-   * there may be not be enough information to build a full response object.
-   * The failure callback will be fired and this specific condition can be identified
-   * by a status property value of 0.
-   *
-   * If an abort was successful, the status property will report a value of -1.
-   *
-   * @method createExceptionObject
-   * @private
-   * @static
-   * @param {int} tId The Transaction Id
-   * @param {callbackArg} callbackArg The user-defined argument or arguments to be passed to the callback
-   * @param {boolean} isAbort Determines if the exception case is caused by a transaction abort
-   * @return {object}
-   */
-    createExceptionObject:function(tId, callbackArg, isAbort)
-    {
-               var COMM_CODE = 0,
-                       COMM_ERROR = 'communication failure',
-                       ABORT_CODE = -1,
-                       ABORT_ERROR = 'transaction aborted',
-                       obj = {};
-
-               obj.tId = tId;
-               if(isAbort){
-                       obj.status = ABORT_CODE;
-                       obj.statusText = ABORT_ERROR;
-               }
-               else{
-                       obj.status = COMM_CODE;
-                       obj.statusText = COMM_ERROR;
-               }
-
-               if(callbackArg){
-                       obj.argument = callbackArg;
-               }
-
-               return obj;
-    },
-
-  /**
-   * @description Method that initializes the custom HTTP headers for the each transaction.
-   * @method initHeader
-   * @public
-   * @static
-   * @param {string} label The HTTP header label
-   * @param {string} value The HTTP header value
-   * @param {string} isDefault Determines if the specific header is a default header
-   * automatically sent with each transaction.
-   * @return {void}
-   */
-       initHeader:function(label, value, isDefault)
-       {
-               var headerObj = (isDefault)?this._default_headers:this._http_headers;
-
-               headerObj[label] = value;
-               if(isDefault){
-                       this._has_default_headers = true;
-               }
-               else{
-                       this._has_http_headers = true;
-               }
-       },
-
-
-  /**
-   * @description Accessor that sets the HTTP headers for each transaction.
-   * @method setHeader
-   * @private
-   * @static
-   * @param {object} o The connection object for the transaction.
-   * @return {void}
-   */
-       setHeader:function(o)
-       {
-               var prop;
-               if(this._has_default_headers){
-                       for(prop in this._default_headers){
-                               if(YAHOO.lang.hasOwnProperty(this._default_headers, prop)){
-                                       o.conn.setRequestHeader(prop, this._default_headers[prop]);
-                                       YAHOO.log('Default HTTP header ' + prop + ' set with value of ' + this._default_headers[prop], 'info', 'Connection');
-                               }
-                       }
-               }
-
-               if(this._has_http_headers){
-                       for(prop in this._http_headers){
-                               if(YAHOO.lang.hasOwnProperty(this._http_headers, prop)){
-                                       o.conn.setRequestHeader(prop, this._http_headers[prop]);
-                                       YAHOO.log('HTTP header ' + prop + ' set with value of ' + this._http_headers[prop], 'info', 'Connection');
-                               }
-                       }
-
-                       this._http_headers = {};
-                       this._has_http_headers = false;
-               }
-       },
-
-  /**
-   * @description Resets the default HTTP headers object
-   * @method resetDefaultHeaders
-   * @public
-   * @static
-   * @return {void}
-   */
-       resetDefaultHeaders:function(){
-               this._default_headers = {};
-               this._has_default_headers = false;
-       },
-
-  /**
-   * @description Method to terminate a transaction, if it has not reached readyState 4.
-   * @method abort
-   * @public
-   * @static
-   * @param {object} o The connection object returned by asyncRequest.
-   * @param {object} callback  User-defined callback object.
-   * @param {string} isTimeout boolean to indicate if abort resulted from a callback timeout.
-   * @return {boolean}
-   */
-       abort:function(o, callback, isTimeout)
-       {
-               var abortStatus,
-                       args = (callback && callback.argument)?callback.argument:null;
-                       o = o || {};
-
-               if(o.conn){
-                       if(o.xhr){
-                               if(this.isCallInProgress(o)){
-                                       // Issue abort request
-                                       o.conn.abort();
-
-                                       window.clearInterval(this._poll[o.tId]);
-                                       delete this._poll[o.tId];
-
-                                       if(isTimeout){
-                                               window.clearTimeout(this._timeOut[o.tId]);
-                                               delete this._timeOut[o.tId];
-                                       }
-
-                                       abortStatus = true;
-                               }
-                       }
-                       else if(o.xdr){
-                               o.conn.abort(o.tId);
-                               abortStatus = true;
-                       }
-               }
-               else if(o.upload){
-                       var frameId = 'yuiIO' + o.tId;
-                       var io = document.getElementById(frameId);
-
-                       if(io){
-                               // Remove all listeners on the iframe prior to
-                               // its destruction.
-                               YAHOO.util.Event.removeListener(io, "load");
-                               // Destroy the iframe facilitating the transaction.
-                               document.body.removeChild(io);
-                               YAHOO.log('File upload iframe destroyed. Id is:' + frameId, 'info', 'Connection');
-
-                               if(isTimeout){
-                                       window.clearTimeout(this._timeOut[o.tId]);
-                                       delete this._timeOut[o.tId];
-                               }
-
-                               abortStatus = true;
-                       }
-               }
-               else{
-                       abortStatus = false;
-               }
-
-               if(abortStatus === true){
-                       // Fire global custom event -- abortEvent
-                       this.abortEvent.fire(o, args);
-
-                       if(o.abortEvent){
-                               // Fire transaction custom event -- abortEvent
-                               o.abortEvent.fire(o, args);
-                       }
-
-                       this.handleTransactionResponse(o, callback, true);
-                       YAHOO.log('Transaction ' + o.tId + ' aborted.', 'info', 'Connection');
-               }
-
-               return abortStatus;
-       },
-
-  /**
-   * @description Determines if the transaction is still being processed.
-   * @method isCallInProgress
-   * @public
-   * @static
-   * @param {object} o The connection object returned by asyncRequest
-   * @return {boolean}
-   */
-       isCallInProgress:function(o)
-       {
-               o = o || {};
-               // if the XHR object assigned to the transaction has not been dereferenced,
-               // then check its readyState status.  Otherwise, return false.
-               if(o.xhr && o.conn){
-                       return o.conn.readyState !== 4 && o.conn.readyState !== 0;
-               }
-               else if(o.xdr && o.conn){
-                       return o.conn.isCallInProgress(o.tId);
-               }
-               else if(o.upload === true){
-                       return document.getElementById('yuiIO' + o.tId)?true:false;
-               }
-               else{
-                       return false;
-               }
-       },
-
-  /**
-   * @description Dereference the XHR instance and the connection object after the transaction is completed.
-   * @method releaseObject
-   * @private
-   * @static
-   * @param {object} o The connection object
-   * @return {void}
-   */
-       releaseObject:function(o)
-       {
-               if(o && o.conn){
-                       //dereference the XHR instance.
-                       o.conn = null;
-
-                       YAHOO.log('Connection object for transaction ' + o.tId + ' destroyed.', 'info', 'Connection');
-
-                       //dereference the connection object.
-                       o = null;
-               }
-       }
-};
-
-/**
-  * @for Connect
-  */
-(function() {
-       var YCM = YAHOO.util.Connect, _fn = {};
-
-   /**
-    * @description This method creates and instantiates the Flash transport.
-    * @method _swf
-    * @private
-    * @static
-    * @param {string} URI to connection.swf.
-    * @return {void}
-    */
-       function _swf(uri) {
-               var o = '<object id="YUIConnectionSwf" type="application/x-shockwave-flash" data="' +
-                       uri + '" width="0" height="0">' +
-                       '<param name="movie" value="' + uri + '">' +
-                '<param name="allowScriptAccess" value="always">' +
-                       '</object>',
-                   c = document.createElement('div');
-
-               document.body.appendChild(c);
-               c.innerHTML = o;
-       }
-
-   /**
-    * @description This method calls the public method on the
-    * Flash transport to start the XDR transaction.  It is analogous
-    * to Connection Manager's asyncRequest method.
-    * @method xdr
-    * @private
-    * @static
-    * @param {object} The transaction object.
-    * @param {string} HTTP request method.
-    * @param {string} URI for the transaction.
-    * @param {object} The transaction's callback object.
-    * @param {object} The JSON object used as HTTP POST data.
-    * @return {void}
-    */
-       function _xdr(o, m, u, c, d) {
-               _fn[parseInt(o.tId)] = { 'o':o, 'c':c };
-               if (d) {
-                       c.method = m;
-                       c.data = d;
-               }
-
-               o.conn.send(u, c, o.tId);
-       }
-
-   /**
-    * @description This method instantiates the Flash transport and
-    * establishes a static reference to it, used for all XDR requests.
-    * @method transport
-    * @public
-    * @static
-    * @param {string} URI to connection.swf.
-    * @return {void}
-    */
-       function _init(uri) {
-               _swf(uri);
-               YCM._transport = document.getElementById('YUIConnectionSwf');
-       }
-
-       function _xdrReady() {
-               YCM.xdrReadyEvent.fire();
-       }
-
-   /**
-    * @description This method fires the global and transaction start
-    * events.
-    * @method _xdrStart
-    * @private
-    * @static
-    * @param {object} The transaction object.
-    * @param {string} The transaction's callback object.
-    * @return {void}
-    */
-       function _xdrStart(o, cb) {
-               if (o) {
-                       // Fire global custom event -- startEvent
-                       YCM.startEvent.fire(o, cb.argument);
-
-                       if(o.startEvent){
-                               // Fire transaction custom event -- startEvent
-                               o.startEvent.fire(o, cb.argument);
-                       }
-               }
-       }
-
-   /**
-    * @description This method is the initial response handler
-    * for XDR transactions.  The Flash transport calls this
-    * function and sends the response payload.
-    * @method handleXdrResponse
-    * @private
-    * @static
-    * @param {object} The response object sent from the Flash transport.
-    * @return {void}
-    */
-       function _handleXdrResponse(r) {
-               var o = _fn[r.tId].o,
-                       cb = _fn[r.tId].c;
-
-               if (r.statusText === 'xdr:start') {
-                       _xdrStart(o, cb);
-                       return;
-               }
-
-               r.responseText = decodeURI(r.responseText);
-               o.r = r;
-               if (cb.argument) {
-                       o.r.argument = cb.argument;
-               }
-
-               this.handleTransactionResponse(o, cb, r.statusText === 'xdr:abort' ? true : false);
-               delete _fn[r.tId];
-       }
-
-       // Bind the functions to Connection Manager as static fields.
-       YCM.xdr = _xdr;
-       YCM.swf = _swf;
-       YCM.transport = _init;
-       YCM.xdrReadyEvent = new YAHOO.util.CustomEvent('xdrReady');
-       YCM.xdrReady = _xdrReady;
-       YCM.handleXdrResponse = _handleXdrResponse;
-})();
-
-/**
-  * @for Connect
-  */
-(function(){
-       var YCM = YAHOO.util.Connect,
-               YE = YAHOO.util.Event;
-   /**
-       * @description Property modified by setForm() to determine if the data
-       * should be submitted as an HTML form.
-       * @property _isFormSubmit
-       * @private
-       * @static
-       * @type boolean
-       */
-       YCM._isFormSubmit = false;
-
-   /**
-       * @description Property modified by setForm() to determine if a file(s)
-       * upload is expected.
-       * @property _isFileUpload
-       * @private
-       * @static
-       * @type boolean
-       */
-       YCM._isFileUpload = false;
-
-   /**
-       * @description Property modified by setForm() to set a reference to the HTML
-       * form node if the desired action is file upload.
-       * @property _formNode
-       * @private
-       * @static
-       * @type object
-       */
-       YCM._formNode = null;
-
-   /**
-       * @description Property modified by setForm() to set the HTML form data
-       * for each transaction.
-       * @property _sFormData
-       * @private
-       * @static
-       * @type string
-       */
-       YCM._sFormData = null;
-
-   /**
-       * @description Tracks the name-value pair of the "clicked" submit button if multiple submit
-       * buttons are present in an HTML form; and, if YAHOO.util.Event is available.
-       * @property _submitElementValue
-       * @private
-       * @static
-       * @type string
-       */
-       YCM._submitElementValue = null;
-
-   /**
-    * @description Custom event that fires when handleTransactionResponse() determines a
-    * response in the HTTP 4xx/5xx range.
-    * @property failureEvent
-    * @private
-    * @static
-    * @type CustomEvent
-    */
-       YCM.uploadEvent = new YAHOO.util.CustomEvent('upload'),
-
-   /**
-       * @description Determines whether YAHOO.util.Event is available and returns true or false.
-       * If true, an event listener is bound at the document level to trap click events that
-       * resolve to a target type of "Submit".  This listener will enable setForm() to determine
-       * the clicked "Submit" value in a multi-Submit button, HTML form.
-       * @property _hasSubmitListener
-       * @private
-       * @static
-       */
-       YCM._hasSubmitListener = function() {
-               if(YE){
-                       YE.addListener(
-                               document,
-                               'click',
-                               function(e){
-                                       var obj = YE.getTarget(e),
-                                               name = obj.nodeName.toLowerCase();
-
-                                       if((name === 'input' || name === 'button') && (obj.type && obj.type.toLowerCase() == 'submit')){
-                                               YCM._submitElementValue = encodeURIComponent(obj.name) + "=" + encodeURIComponent(obj.value);
-                                       }
-                               });
-                       return true;
-               }
-               return false;
-       }();
-
-  /**
-   * @description This method assembles the form label and value pairs and
-   * constructs an encoded string.
-   * asyncRequest() will automatically initialize the transaction with a
-   * a HTTP header Content-Type of application/x-www-form-urlencoded.
-   * @method setForm
-   * @public
-   * @static
-   * @param {string || object} form id or name attribute, or form object.
-   * @param {boolean} optional enable file upload.
-   * @param {boolean} optional enable file upload over SSL in IE only.
-   * @return {string} string of the HTML form field name and value pairs..
-   */
-       function _setForm(formId, isUpload, secureUri)
-       {
-               var oForm, oElement, oName, oValue, oDisabled,
-                       hasSubmit = false,
-                       data = [], item = 0,
-                       i,len,j,jlen,opt;
-
-               this.resetFormState();
-
-               if(typeof formId == 'string'){
-                       // Determine if the argument is a form id or a form name.
-                       // Note form name usage is deprecated by supported
-                       // here for legacy reasons.
-                       oForm = (document.getElementById(formId) || document.forms[formId]);
-               }
-               else if(typeof formId == 'object'){
-                       // Treat argument as an HTML form object.
-                       oForm = formId;
-               }
-               else{
-                       YAHOO.log('Unable to create form object ' + formId, 'warn', 'Connection');
-                       return;
-               }
-
-               // If the isUpload argument is true, setForm will call createFrame to initialize
-               // an iframe as the form target.
-               //
-               // The argument secureURI is also required by IE in SSL environments
-               // where the secureURI string is a fully qualified HTTP path, used to set the source
-               // of the iframe, to a stub resource in the same domain.
-               if(isUpload){
-
-                       // Create iframe in preparation for file upload.
-                       this.createFrame(secureUri?secureUri:null);
-
-                       // Set form reference and file upload properties to true.
-                       this._isFormSubmit = true;
-                       this._isFileUpload = true;
-                       this._formNode = oForm;
-
-                       return;
-               }
-
-               // Iterate over the form elements collection to construct the
-               // label-value pairs.
-               for (i=0,len=oForm.elements.length; i<len; ++i){
-                       oElement  = oForm.elements[i];
-                       oDisabled = oElement.disabled;
-                       oName     = oElement.name;
-
-                       // Do not submit fields that are disabled or
-                       // do not have a name attribute value.
-                       if(!oDisabled && oName)
-                       {
-                               oName  = encodeURIComponent(oName)+'=';
-                               oValue = encodeURIComponent(oElement.value);
-
-                               switch(oElement.type)
-                               {
-                                       // Safari, Opera, FF all default opt.value from .text if
-                                       // value attribute not specified in markup
-                                       case 'select-one':
-                                               if (oElement.selectedIndex > -1) {
-                                                       opt = oElement.options[oElement.selectedIndex];
-                                                       data[item++] = oName + encodeURIComponent(
-                                                               (opt.attributes.value && opt.attributes.value.specified) ? opt.value : opt.text);
-                                               }
-                                               break;
-                                       case 'select-multiple':
-                                               if (oElement.selectedIndex > -1) {
-                                                       for(j=oElement.selectedIndex, jlen=oElement.options.length; j<jlen; ++j){
-                                                               opt = oElement.options[j];
-                                                               if (opt.selected) {
-                                                                       data[item++] = oName + encodeURIComponent(
-                                                                               (opt.attributes.value && opt.attributes.value.specified) ? opt.value : opt.text);
-                                                               }
-                                                       }
-                                               }
-                                               break;
-                                       case 'radio':
-                                       case 'checkbox':
-                                               if(oElement.checked){
-                                                       data[item++] = oName + oValue;
-                                               }
-                                               break;
-                                       case 'file':
-                                               // stub case as XMLHttpRequest will only send the file path as a string.
-                                       case undefined:
-                                               // stub case for fieldset element which returns undefined.
-                                       case 'reset':
-                                               // stub case for input type reset button.
-                                       case 'button':
-                                               // stub case for input type button elements.
-                                               break;
-                                       case 'submit':
-                                               if(hasSubmit === false){
-                                                       if(this._hasSubmitListener && this._submitElementValue){
-                                                               data[item++] = this._submitElementValue;
-                                                       }
-                                                       hasSubmit = true;
-                                               }
-                                               break;
-                                       default:
-                                               data[item++] = oName + oValue;
-                               }
-                       }
-               }
-
-               this._isFormSubmit = true;
-               this._sFormData = data.join('&');
-
-               YAHOO.log('Form initialized for transaction. HTML form POST message is: ' + this._sFormData, 'info', 'Connection');
-
-               this.initHeader('Content-Type', this._default_form_header);
-               YAHOO.log('Initialize header Content-Type to application/x-www-form-urlencoded for setForm() transaction.', 'info', 'Connection');
-
-               return this._sFormData;
-       }
-
-   /**
-    * @description Resets HTML form properties when an HTML form or HTML form
-    * with file upload transaction is sent.
-    * @method resetFormState
-    * @private
-    * @static
-    * @return {void}
-    */
-       function _resetFormState(){
-               this._isFormSubmit = false;
-               this._isFileUpload = false;
-               this._formNode = null;
-               this._sFormData = "";
-       }
-
-
-   /**
-    * @description Creates an iframe to be used for form file uploads.  It is remove from the
-    * document upon completion of the upload transaction.
-    * @method createFrame
-    * @private
-    * @static
-    * @param {string} optional qualified path of iframe resource for SSL in IE.
-    * @return {void}
-    */
-       function _createFrame(secureUri){
-
-               // IE does not allow the setting of id and name attributes as object
-               // properties via createElement().  A different iframe creation
-               // pattern is required for IE.
-               var frameId = 'yuiIO' + this._transaction_id,
-                       io;
-               if(YAHOO.env.ua.ie){
-                       io = document.createElement('<iframe id="' + frameId + '" name="' + frameId + '" />');
-
-                       // IE will throw a security exception in an SSL environment if the
-                       // iframe source is undefined.
-                       if(typeof secureUri == 'boolean'){
-                               io.src = 'javascript:false';
-                       }
-               }
-               else{
-                       io = document.createElement('iframe');
-                       io.id = frameId;
-                       io.name = frameId;
-               }
-
-               io.style.position = 'absolute';
-               io.style.top = '-1000px';
-               io.style.left = '-1000px';
-
-               document.body.appendChild(io);
-               YAHOO.log('File upload iframe created. Id is:' + frameId, 'info', 'Connection');
-       }
-
-   /**
-    * @description Parses the POST data and creates hidden form elements
-    * for each key-value, and appends them to the HTML form object.
-    * @method appendPostData
-    * @private
-    * @static
-    * @param {string} postData The HTTP POST data
-    * @return {array} formElements Collection of hidden fields.
-    */
-       function _appendPostData(postData){
-               var formElements = [],
-                       postMessage = postData.split('&'),
-                       i, delimitPos;
-
-               for(i=0; i < postMessage.length; i++){
-                       delimitPos = postMessage[i].indexOf('=');
-                       if(delimitPos != -1){
-                               formElements[i] = document.createElement('input');
-                               formElements[i].type = 'hidden';
-                               formElements[i].name = decodeURIComponent(postMessage[i].substring(0,delimitPos));
-                               formElements[i].value = decodeURIComponent(postMessage[i].substring(delimitPos+1));
-                               this._formNode.appendChild(formElements[i]);
-                       }
-               }
-
-               return formElements;
-       }
-
-   /**
-    * @description Uploads HTML form, inclusive of files/attachments, using the
-    * iframe created in createFrame to facilitate the transaction.
-    * @method uploadFile
-    * @private
-    * @static
-    * @param {int} id The transaction id.
-    * @param {object} callback User-defined callback object.
-    * @param {string} uri Fully qualified path of resource.
-    * @param {string} postData POST data to be submitted in addition to HTML form.
-    * @return {void}
-    */
-       function _uploadFile(o, callback, uri, postData){
-               // Each iframe has an id prefix of "yuiIO" followed
-               // by the unique transaction id.
-               var frameId = 'yuiIO' + o.tId,
-                   uploadEncoding = 'multipart/form-data',
-                   io = document.getElementById(frameId),
-                   ie8 = (document.documentMode && document.documentMode === 8) ? true : false,
-                   oConn = this,
-                       args = (callback && callback.argument)?callback.argument:null,
-            oElements,i,prop,obj, rawFormAttributes, uploadCallback;
-
-               // Track original HTML form attribute values.
-               rawFormAttributes = {
-                       action:this._formNode.getAttribute('action'),
-                       method:this._formNode.getAttribute('method'),
-                       target:this._formNode.getAttribute('target')
-               };
-
-               // Initialize the HTML form properties in case they are
-               // not defined in the HTML form.
-               this._formNode.setAttribute('action', uri);
-               this._formNode.setAttribute('method', 'POST');
-               this._formNode.setAttribute('target', frameId);
-
-               if(YAHOO.env.ua.ie && !ie8){
-                       // IE does not respect property enctype for HTML forms.
-                       // Instead it uses the property - "encoding".
-                       this._formNode.setAttribute('encoding', uploadEncoding);
-               }
-               else{
-                       this._formNode.setAttribute('enctype', uploadEncoding);
-               }
-
-               if(postData){
-                       oElements = this.appendPostData(postData);
-               }
-
-               // Start file upload.
-               this._formNode.submit();
-
-               // Fire global custom event -- startEvent
-               this.startEvent.fire(o, args);
-
-               if(o.startEvent){
-                       // Fire transaction custom event -- startEvent
-                       o.startEvent.fire(o, args);
-               }
-
-               // Start polling if a callback is present and the timeout
-               // property has been defined.
-               if(callback && callback.timeout){
-                       this._timeOut[o.tId] = window.setTimeout(function(){ oConn.abort(o, callback, true); }, callback.timeout);
-               }
-
-               // Remove HTML elements created by appendPostData
-               if(oElements && oElements.length > 0){
-                       for(i=0; i < oElements.length; i++){
-                               this._formNode.removeChild(oElements[i]);
-                       }
-               }
-
-               // Restore HTML form attributes to their original
-               // values prior to file upload.
-               for(prop in rawFormAttributes){
-                       if(YAHOO.lang.hasOwnProperty(rawFormAttributes, prop)){
-                               if(rawFormAttributes[prop]){
-                                       this._formNode.setAttribute(prop, rawFormAttributes[prop]);
-                               }
-                               else{
-                                       this._formNode.removeAttribute(prop);
-                               }
-                       }
-               }
-
-               // Reset HTML form state properties.
-               this.resetFormState();
-
-               // Create the upload callback handler that fires when the iframe
-               // receives the load event.  Subsequently, the event handler is detached
-               // and the iframe removed from the document.
-               uploadCallback = function() {
-                       if(callback && callback.timeout){
-                               window.clearTimeout(oConn._timeOut[o.tId]);
-                               delete oConn._timeOut[o.tId];
-                       }
-
-                       // Fire global custom event -- completeEvent
-                       oConn.completeEvent.fire(o, args);
-
-                       if(o.completeEvent){
-                               // Fire transaction custom event -- completeEvent
-                               o.completeEvent.fire(o, args);
-                       }
-
-                       obj = {
-                           tId : o.tId,
-                           argument : callback.argument
-            };
-
-                       try
-                       {
-                               // responseText and responseXML will be populated with the same data from the iframe.
-                               // Since the HTTP headers cannot be read from the iframe
-                               obj.responseText = io.contentWindow.document.body?io.contentWindow.document.body.innerHTML:io.contentWindow.document.documentElement.textContent;
-                               obj.responseXML = io.contentWindow.document.XMLDocument?io.contentWindow.document.XMLDocument:io.contentWindow.document;
-                       }
-                       catch(e){}
-
-                       if(callback && callback.upload){
-                               if(!callback.scope){
-                                       callback.upload(obj);
-                                       YAHOO.log('Upload callback.', 'info', 'Connection');
-                               }
-                               else{
-                                       callback.upload.apply(callback.scope, [obj]);
-                                       YAHOO.log('Upload callback with scope.', 'info', 'Connection');
-                               }
-                       }
-
-                       // Fire global custom event -- uploadEvent
-                       oConn.uploadEvent.fire(obj);
-
-                       if(o.uploadEvent){
-                               // Fire transaction custom event -- uploadEvent
-                               o.uploadEvent.fire(obj);
-                       }
-
-                       YE.removeListener(io, "load", uploadCallback);
-
-                       setTimeout(
-                               function(){
-                                       document.body.removeChild(io);
-                                       oConn.releaseObject(o);
-                                       YAHOO.log('File upload iframe destroyed. Id is:' + frameId, 'info', 'Connection');
-                               }, 100);
-               };
-
-               // Bind the onload handler to the iframe to detect the file upload response.
-               YE.addListener(io, "load", uploadCallback);
-       }
-
-       YCM.setForm = _setForm;
-       YCM.resetFormState = _resetFormState;
-       YCM.createFrame = _createFrame;
-       YCM.appendPostData = _appendPostData;
-       YCM.uploadFile = _uploadFile;
-})();
-
-YAHOO.register("connection", YAHOO.util.Connect, {version: "2.8.0r4", build: "2449"});
diff --git a/koha-tmpl/intranet-tmpl/prog/en/lib/yui/connection/connection-min.js b/koha-tmpl/intranet-tmpl/prog/en/lib/yui/connection/connection-min.js
deleted file mode 100644 (file)
index 743e016..0000000
+++ /dev/null
@@ -1,9 +0,0 @@
-/*
-Copyright (c) 2009, Yahoo! Inc. All rights reserved.
-Code licensed under the BSD License:
-http://developer.yahoo.net/yui/license.txt
-version: 2.8.0r4
-*/
-YAHOO.util.Connect={_msxml_progid:["Microsoft.XMLHTTP","MSXML2.XMLHTTP.3.0","MSXML2.XMLHTTP"],_http_headers:{},_has_http_headers:false,_use_default_post_header:true,_default_post_header:"application/x-www-form-urlencoded; charset=UTF-8",_default_form_header:"application/x-www-form-urlencoded",_use_default_xhr_header:true,_default_xhr_header:"XMLHttpRequest",_has_default_headers:true,_default_headers:{},_poll:{},_timeOut:{},_polling_interval:50,_transaction_id:0,startEvent:new YAHOO.util.CustomEvent("start"),completeEvent:new YAHOO.util.CustomEvent("complete"),successEvent:new YAHOO.util.CustomEvent("success"),failureEvent:new YAHOO.util.CustomEvent("failure"),abortEvent:new YAHOO.util.CustomEvent("abort"),_customEvents:{onStart:["startEvent","start"],onComplete:["completeEvent","complete"],onSuccess:["successEvent","success"],onFailure:["failureEvent","failure"],onUpload:["uploadEvent","upload"],onAbort:["abortEvent","abort"]},setProgId:function(A){this._msxml_progid.unshift(A);},setDefaultPostHeader:function(A){if(typeof A=="string"){this._default_post_header=A;}else{if(typeof A=="boolean"){this._use_default_post_header=A;}}},setDefaultXhrHeader:function(A){if(typeof A=="string"){this._default_xhr_header=A;}else{this._use_default_xhr_header=A;}},setPollingInterval:function(A){if(typeof A=="number"&&isFinite(A)){this._polling_interval=A;}},createXhrObject:function(F){var D,A,B;try{A=new XMLHttpRequest();D={conn:A,tId:F,xhr:true};}catch(C){for(B=0;B<this._msxml_progid.length;++B){try{A=new ActiveXObject(this._msxml_progid[B]);D={conn:A,tId:F,xhr:true};break;}catch(E){}}}finally{return D;}},getConnectionObject:function(A){var C,D=this._transaction_id;try{if(!A){C=this.createXhrObject(D);}else{C={tId:D};if(A==="xdr"){C.conn=this._transport;C.xdr=true;}else{if(A==="upload"){C.upload=true;}}}if(C){this._transaction_id++;}}catch(B){}return C;},asyncRequest:function(G,D,F,A){var E,C,B=(F&&F.argument)?F.argument:null;if(this._isFileUpload){C="upload";}else{if(F.xdr){C="xdr";}}E=this.getConnectionObject(C);if(!E){return null;}else{if(F&&F.customevents){this.initCustomEvents(E,F);}if(this._isFormSubmit){if(this._isFileUpload){this.uploadFile(E,F,D,A);return E;}if(G.toUpperCase()=="GET"){if(this._sFormData.length!==0){D+=((D.indexOf("?")==-1)?"?":"&")+this._sFormData;}}else{if(G.toUpperCase()=="POST"){A=A?this._sFormData+"&"+A:this._sFormData;}}}if(G.toUpperCase()=="GET"&&(F&&F.cache===false)){D+=((D.indexOf("?")==-1)?"?":"&")+"rnd="+new Date().valueOf().toString();}if(this._use_default_xhr_header){if(!this._default_headers["X-Requested-With"]){this.initHeader("X-Requested-With",this._default_xhr_header,true);}}if((G.toUpperCase()==="POST"&&this._use_default_post_header)&&this._isFormSubmit===false){this.initHeader("Content-Type",this._default_post_header);}if(E.xdr){this.xdr(E,G,D,F,A);return E;}E.conn.open(G,D,true);if(this._has_default_headers||this._has_http_headers){this.setHeader(E);}this.handleReadyState(E,F);E.conn.send(A||"");if(this._isFormSubmit===true){this.resetFormState();}this.startEvent.fire(E,B);if(E.startEvent){E.startEvent.fire(E,B);}return E;}},initCustomEvents:function(A,C){var B;for(B in C.customevents){if(this._customEvents[B][0]){A[this._customEvents[B][0]]=new YAHOO.util.CustomEvent(this._customEvents[B][1],(C.scope)?C.scope:null);A[this._customEvents[B][0]].subscribe(C.customevents[B]);}}},handleReadyState:function(C,D){var B=this,A=(D&&D.argument)?D.argument:null;if(D&&D.timeout){this._timeOut[C.tId]=window.setTimeout(function(){B.abort(C,D,true);},D.timeout);}this._poll[C.tId]=window.setInterval(function(){if(C.conn&&C.conn.readyState===4){window.clearInterval(B._poll[C.tId]);delete B._poll[C.tId];if(D&&D.timeout){window.clearTimeout(B._timeOut[C.tId]);delete B._timeOut[C.tId];}B.completeEvent.fire(C,A);if(C.completeEvent){C.completeEvent.fire(C,A);}B.handleTransactionResponse(C,D);}},this._polling_interval);},handleTransactionResponse:function(B,I,D){var E,A,G=(I&&I.argument)?I.argument:null,C=(B.r&&B.r.statusText==="xdr:success")?true:false,H=(B.r&&B.r.statusText==="xdr:failure")?true:false,J=D;try{if((B.conn.status!==undefined&&B.conn.status!==0)||C){E=B.conn.status;}else{if(H&&!J){E=0;}else{E=13030;}}}catch(F){E=13030;}if((E>=200&&E<300)||E===1223||C){A=B.xdr?B.r:this.createResponseObject(B,G);if(I&&I.success){if(!I.scope){I.success(A);}else{I.success.apply(I.scope,[A]);}}this.successEvent.fire(A);if(B.successEvent){B.successEvent.fire(A);}}else{switch(E){case 12002:case 12029:case 12030:case 12031:case 12152:case 13030:A=this.createExceptionObject(B.tId,G,(D?D:false));if(I&&I.failure){if(!I.scope){I.failure(A);}else{I.failure.apply(I.scope,[A]);}}break;default:A=(B.xdr)?B.response:this.createResponseObject(B,G);if(I&&I.failure){if(!I.scope){I.failure(A);}else{I.failure.apply(I.scope,[A]);}}}this.failureEvent.fire(A);if(B.failureEvent){B.failureEvent.fire(A);}}this.releaseObject(B);A=null;},createResponseObject:function(A,G){var D={},I={},E,C,F,B;try{C=A.conn.getAllResponseHeaders();F=C.split("\n");for(E=0;E<F.length;E++){B=F[E].indexOf(":");if(B!=-1){I[F[E].substring(0,B)]=YAHOO.lang.trim(F[E].substring(B+2));}}}catch(H){}D.tId=A.tId;D.status=(A.conn.status==1223)?204:A.conn.status;D.statusText=(A.conn.status==1223)?"No Content":A.conn.statusText;D.getResponseHeader=I;D.getAllResponseHeaders=C;D.responseText=A.conn.responseText;D.responseXML=A.conn.responseXML;if(G){D.argument=G;}return D;},createExceptionObject:function(H,D,A){var F=0,G="communication failure",C=-1,B="transaction aborted",E={};E.tId=H;if(A){E.status=C;E.statusText=B;}else{E.status=F;E.statusText=G;}if(D){E.argument=D;}return E;},initHeader:function(A,D,C){var B=(C)?this._default_headers:this._http_headers;B[A]=D;if(C){this._has_default_headers=true;}else{this._has_http_headers=true;}},setHeader:function(A){var B;if(this._has_default_headers){for(B in this._default_headers){if(YAHOO.lang.hasOwnProperty(this._default_headers,B)){A.conn.setRequestHeader(B,this._default_headers[B]);}}}if(this._has_http_headers){for(B in this._http_headers){if(YAHOO.lang.hasOwnProperty(this._http_headers,B)){A.conn.setRequestHeader(B,this._http_headers[B]);
-}}this._http_headers={};this._has_http_headers=false;}},resetDefaultHeaders:function(){this._default_headers={};this._has_default_headers=false;},abort:function(E,G,A){var D,B=(G&&G.argument)?G.argument:null;E=E||{};if(E.conn){if(E.xhr){if(this.isCallInProgress(E)){E.conn.abort();window.clearInterval(this._poll[E.tId]);delete this._poll[E.tId];if(A){window.clearTimeout(this._timeOut[E.tId]);delete this._timeOut[E.tId];}D=true;}}else{if(E.xdr){E.conn.abort(E.tId);D=true;}}}else{if(E.upload){var C="yuiIO"+E.tId;var F=document.getElementById(C);if(F){YAHOO.util.Event.removeListener(F,"load");document.body.removeChild(F);if(A){window.clearTimeout(this._timeOut[E.tId]);delete this._timeOut[E.tId];}D=true;}}else{D=false;}}if(D===true){this.abortEvent.fire(E,B);if(E.abortEvent){E.abortEvent.fire(E,B);}this.handleTransactionResponse(E,G,true);}return D;},isCallInProgress:function(A){A=A||{};if(A.xhr&&A.conn){return A.conn.readyState!==4&&A.conn.readyState!==0;}else{if(A.xdr&&A.conn){return A.conn.isCallInProgress(A.tId);}else{if(A.upload===true){return document.getElementById("yuiIO"+A.tId)?true:false;}else{return false;}}}},releaseObject:function(A){if(A&&A.conn){A.conn=null;A=null;}}};(function(){var G=YAHOO.util.Connect,H={};function D(I){var J='<object id="YUIConnectionSwf" type="application/x-shockwave-flash" data="'+I+'" width="0" height="0">'+'<param name="movie" value="'+I+'">'+'<param name="allowScriptAccess" value="always">'+"</object>",K=document.createElement("div");document.body.appendChild(K);K.innerHTML=J;}function B(L,I,J,M,K){H[parseInt(L.tId)]={"o":L,"c":M};if(K){M.method=I;M.data=K;}L.conn.send(J,M,L.tId);}function E(I){D(I);G._transport=document.getElementById("YUIConnectionSwf");}function C(){G.xdrReadyEvent.fire();}function A(J,I){if(J){G.startEvent.fire(J,I.argument);if(J.startEvent){J.startEvent.fire(J,I.argument);}}}function F(J){var K=H[J.tId].o,I=H[J.tId].c;if(J.statusText==="xdr:start"){A(K,I);return;}J.responseText=decodeURI(J.responseText);K.r=J;if(I.argument){K.r.argument=I.argument;}this.handleTransactionResponse(K,I,J.statusText==="xdr:abort"?true:false);delete H[J.tId];}G.xdr=B;G.swf=D;G.transport=E;G.xdrReadyEvent=new YAHOO.util.CustomEvent("xdrReady");G.xdrReady=C;G.handleXdrResponse=F;})();(function(){var D=YAHOO.util.Connect,F=YAHOO.util.Event;D._isFormSubmit=false;D._isFileUpload=false;D._formNode=null;D._sFormData=null;D._submitElementValue=null;D.uploadEvent=new YAHOO.util.CustomEvent("upload"),D._hasSubmitListener=function(){if(F){F.addListener(document,"click",function(J){var I=F.getTarget(J),H=I.nodeName.toLowerCase();if((H==="input"||H==="button")&&(I.type&&I.type.toLowerCase()=="submit")){D._submitElementValue=encodeURIComponent(I.name)+"="+encodeURIComponent(I.value);}});return true;}return false;}();function G(T,O,J){var S,I,R,P,W,Q=false,M=[],V=0,L,N,K,U,H;this.resetFormState();if(typeof T=="string"){S=(document.getElementById(T)||document.forms[T]);}else{if(typeof T=="object"){S=T;}else{return;}}if(O){this.createFrame(J?J:null);this._isFormSubmit=true;this._isFileUpload=true;this._formNode=S;return;}for(L=0,N=S.elements.length;L<N;++L){I=S.elements[L];W=I.disabled;R=I.name;if(!W&&R){R=encodeURIComponent(R)+"=";P=encodeURIComponent(I.value);switch(I.type){case"select-one":if(I.selectedIndex>-1){H=I.options[I.selectedIndex];M[V++]=R+encodeURIComponent((H.attributes.value&&H.attributes.value.specified)?H.value:H.text);}break;case"select-multiple":if(I.selectedIndex>-1){for(K=I.selectedIndex,U=I.options.length;K<U;++K){H=I.options[K];if(H.selected){M[V++]=R+encodeURIComponent((H.attributes.value&&H.attributes.value.specified)?H.value:H.text);}}}break;case"radio":case"checkbox":if(I.checked){M[V++]=R+P;}break;case"file":case undefined:case"reset":case"button":break;case"submit":if(Q===false){if(this._hasSubmitListener&&this._submitElementValue){M[V++]=this._submitElementValue;}Q=true;}break;default:M[V++]=R+P;}}}this._isFormSubmit=true;this._sFormData=M.join("&");this.initHeader("Content-Type",this._default_form_header);return this._sFormData;}function C(){this._isFormSubmit=false;this._isFileUpload=false;this._formNode=null;this._sFormData="";}function B(H){var I="yuiIO"+this._transaction_id,J;if(YAHOO.env.ua.ie){J=document.createElement('<iframe id="'+I+'" name="'+I+'" />');if(typeof H=="boolean"){J.src="javascript:false";}}else{J=document.createElement("iframe");J.id=I;J.name=I;}J.style.position="absolute";J.style.top="-1000px";J.style.left="-1000px";document.body.appendChild(J);}function E(H){var K=[],I=H.split("&"),J,L;for(J=0;J<I.length;J++){L=I[J].indexOf("=");if(L!=-1){K[J]=document.createElement("input");K[J].type="hidden";K[J].name=decodeURIComponent(I[J].substring(0,L));K[J].value=decodeURIComponent(I[J].substring(L+1));this._formNode.appendChild(K[J]);}}return K;}function A(K,V,L,J){var Q="yuiIO"+K.tId,R="multipart/form-data",T=document.getElementById(Q),M=(document.documentMode&&document.documentMode===8)?true:false,W=this,S=(V&&V.argument)?V.argument:null,U,P,I,O,H,N;H={action:this._formNode.getAttribute("action"),method:this._formNode.getAttribute("method"),target:this._formNode.getAttribute("target")};this._formNode.setAttribute("action",L);this._formNode.setAttribute("method","POST");this._formNode.setAttribute("target",Q);if(YAHOO.env.ua.ie&&!M){this._formNode.setAttribute("encoding",R);}else{this._formNode.setAttribute("enctype",R);}if(J){U=this.appendPostData(J);}this._formNode.submit();this.startEvent.fire(K,S);if(K.startEvent){K.startEvent.fire(K,S);}if(V&&V.timeout){this._timeOut[K.tId]=window.setTimeout(function(){W.abort(K,V,true);},V.timeout);}if(U&&U.length>0){for(P=0;P<U.length;P++){this._formNode.removeChild(U[P]);}}for(I in H){if(YAHOO.lang.hasOwnProperty(H,I)){if(H[I]){this._formNode.setAttribute(I,H[I]);}else{this._formNode.removeAttribute(I);}}}this.resetFormState();N=function(){if(V&&V.timeout){window.clearTimeout(W._timeOut[K.tId]);delete W._timeOut[K.tId];}W.completeEvent.fire(K,S);if(K.completeEvent){K.completeEvent.fire(K,S);
-}O={tId:K.tId,argument:V.argument};try{O.responseText=T.contentWindow.document.body?T.contentWindow.document.body.innerHTML:T.contentWindow.document.documentElement.textContent;O.responseXML=T.contentWindow.document.XMLDocument?T.contentWindow.document.XMLDocument:T.contentWindow.document;}catch(X){}if(V&&V.upload){if(!V.scope){V.upload(O);}else{V.upload.apply(V.scope,[O]);}}W.uploadEvent.fire(O);if(K.uploadEvent){K.uploadEvent.fire(O);}F.removeListener(T,"load",N);setTimeout(function(){document.body.removeChild(T);W.releaseObject(K);},100);};F.addListener(T,"load",N);}D.setForm=G;D.resetFormState=C;D.createFrame=B;D.appendPostData=E;D.uploadFile=A;})();YAHOO.register("connection",YAHOO.util.Connect,{version:"2.8.0r4",build:"2449"});
\ No newline at end of file
diff --git a/koha-tmpl/intranet-tmpl/prog/en/lib/yui/connection/connection.js b/koha-tmpl/intranet-tmpl/prog/en/lib/yui/connection/connection.js
deleted file mode 100644 (file)
index a0eef84..0000000
+++ /dev/null
@@ -1,1546 +0,0 @@
-/*
-Copyright (c) 2009, Yahoo! Inc. All rights reserved.
-Code licensed under the BSD License:
-http://developer.yahoo.net/yui/license.txt
-version: 2.8.0r4
-*/
-/**
- * The Connection Manager provides a simplified interface to the XMLHttpRequest
- * object.  It handles cross-browser instantiantion of XMLHttpRequest, negotiates the
- * interactive states and server response, returning the results to a pre-defined
- * callback you create.
- *
- * @namespace YAHOO.util
- * @module connection
- * @requires yahoo
- * @requires event
- */
-
-/**
- * The Connection Manager singleton provides methods for creating and managing
- * asynchronous transactions.
- *
- * @class Connect
- */
-
-YAHOO.util.Connect =
-{
-  /**
-   * @description Array of MSFT ActiveX ids for XMLHttpRequest.
-   * @property _msxml_progid
-   * @private
-   * @static
-   * @type array
-   */
-       _msxml_progid:[
-               'Microsoft.XMLHTTP',
-               'MSXML2.XMLHTTP.3.0',
-               'MSXML2.XMLHTTP'
-               ],
-
-  /**
-   * @description Object literal of HTTP header(s)
-   * @property _http_header
-   * @private
-   * @static
-   * @type object
-   */
-       _http_headers:{},
-
-  /**
-   * @description Determines if HTTP headers are set.
-   * @property _has_http_headers
-   * @private
-   * @static
-   * @type boolean
-   */
-       _has_http_headers:false,
-
- /**
-  * @description Determines if a default header of
-  * Content-Type of 'application/x-www-form-urlencoded'
-  * will be added to any client HTTP headers sent for POST
-  * transactions.
-  * @property _use_default_post_header
-  * @private
-  * @static
-  * @type boolean
-  */
-    _use_default_post_header:true,
-
- /**
-  * @description The default header used for POST transactions.
-  * @property _default_post_header
-  * @private
-  * @static
-  * @type boolean
-  */
-    _default_post_header:'application/x-www-form-urlencoded; charset=UTF-8',
-
- /**
-  * @description The default header used for transactions involving the
-  * use of HTML forms.
-  * @property _default_form_header
-  * @private
-  * @static
-  * @type boolean
-  */
-    _default_form_header:'application/x-www-form-urlencoded',
-
- /**
-  * @description Determines if a default header of
-  * 'X-Requested-With: XMLHttpRequest'
-  * will be added to each transaction.
-  * @property _use_default_xhr_header
-  * @private
-  * @static
-  * @type boolean
-  */
-    _use_default_xhr_header:true,
-
- /**
-  * @description The default header value for the label
-  * "X-Requested-With".  This is sent with each
-  * transaction, by default, to identify the
-  * request as being made by YUI Connection Manager.
-  * @property _default_xhr_header
-  * @private
-  * @static
-  * @type boolean
-  */
-    _default_xhr_header:'XMLHttpRequest',
-
- /**
-  * @description Determines if custom, default headers
-  * are set for each transaction.
-  * @property _has_default_header
-  * @private
-  * @static
-  * @type boolean
-  */
-    _has_default_headers:true,
-
- /**
-  * @description Determines if custom, default headers
-  * are set for each transaction.
-  * @property _has_default_header
-  * @private
-  * @static
-  * @type boolean
-  */
-    _default_headers:{},
-
- /**
-  * @description Collection of polling references to the polling mechanism in handleReadyState.
-  * @property _poll
-  * @private
-  * @static
-  * @type object
-  */
-    _poll:{},
-
- /**
-  * @description Queue of timeout values for each transaction callback with a defined timeout value.
-  * @property _timeOut
-  * @private
-  * @static
-  * @type object
-  */
-    _timeOut:{},
-
-  /**
-   * @description The polling frequency, in milliseconds, for HandleReadyState.
-   * when attempting to determine a transaction's XHR readyState.
-   * The default is 50 milliseconds.
-   * @property _polling_interval
-   * @private
-   * @static
-   * @type int
-   */
-     _polling_interval:50,
-
-  /**
-   * @description A transaction counter that increments the transaction id for each transaction.
-   * @property _transaction_id
-   * @private
-   * @static
-   * @type int
-   */
-     _transaction_id:0,
-
-  /**
-   * @description Custom event that fires at the start of a transaction
-   * @property startEvent
-   * @private
-   * @static
-   * @type CustomEvent
-   */
-       startEvent: new YAHOO.util.CustomEvent('start'),
-
-  /**
-   * @description Custom event that fires when a transaction response has completed.
-   * @property completeEvent
-   * @private
-   * @static
-   * @type CustomEvent
-   */
-       completeEvent: new YAHOO.util.CustomEvent('complete'),
-
-  /**
-   * @description Custom event that fires when handleTransactionResponse() determines a
-   * response in the HTTP 2xx range.
-   * @property successEvent
-   * @private
-   * @static
-   * @type CustomEvent
-   */
-       successEvent: new YAHOO.util.CustomEvent('success'),
-
-  /**
-   * @description Custom event that fires when handleTransactionResponse() determines a
-   * response in the HTTP 4xx/5xx range.
-   * @property failureEvent
-   * @private
-   * @static
-   * @type CustomEvent
-   */
-       failureEvent: new YAHOO.util.CustomEvent('failure'),
-
-  /**
-   * @description Custom event that fires when a transaction is successfully aborted.
-   * @property abortEvent
-   * @private
-   * @static
-   * @type CustomEvent
-   */
-       abortEvent: new YAHOO.util.CustomEvent('abort'),
-
-  /**
-   * @description A reference table that maps callback custom events members to its specific
-   * event name.
-   * @property _customEvents
-   * @private
-   * @static
-   * @type object
-   */
-       _customEvents:
-       {
-               onStart:['startEvent', 'start'],
-               onComplete:['completeEvent', 'complete'],
-               onSuccess:['successEvent', 'success'],
-               onFailure:['failureEvent', 'failure'],
-               onUpload:['uploadEvent', 'upload'],
-               onAbort:['abortEvent', 'abort']
-       },
-
-  /**
-   * @description Member to add an ActiveX id to the existing xml_progid array.
-   * In the event(unlikely) a new ActiveX id is introduced, it can be added
-   * without internal code modifications.
-   * @method setProgId
-   * @public
-   * @static
-   * @param {string} id The ActiveX id to be added to initialize the XHR object.
-   * @return void
-   */
-       setProgId:function(id)
-       {
-               this._msxml_progid.unshift(id);
-       },
-
-  /**
-   * @description Member to override the default POST header.
-   * @method setDefaultPostHeader
-   * @public
-   * @static
-   * @param {boolean} b Set and use default header - true or false .
-   * @return void
-   */
-       setDefaultPostHeader:function(b)
-       {
-               if(typeof b == 'string'){
-                       this._default_post_header = b;
-               }
-               else if(typeof b == 'boolean'){
-                       this._use_default_post_header = b;
-               }
-       },
-
-  /**
-   * @description Member to override the default transaction header..
-   * @method setDefaultXhrHeader
-   * @public
-   * @static
-   * @param {boolean} b Set and use default header - true or false .
-   * @return void
-   */
-       setDefaultXhrHeader:function(b)
-       {
-               if(typeof b == 'string'){
-                       this._default_xhr_header = b;
-               }
-               else{
-                       this._use_default_xhr_header = b;
-               }
-       },
-
-  /**
-   * @description Member to modify the default polling interval.
-   * @method setPollingInterval
-   * @public
-   * @static
-   * @param {int} i The polling interval in milliseconds.
-   * @return void
-   */
-       setPollingInterval:function(i)
-       {
-               if(typeof i == 'number' && isFinite(i)){
-                       this._polling_interval = i;
-               }
-       },
-
-  /**
-   * @description Instantiates a XMLHttpRequest object and returns an object with two properties:
-   * the XMLHttpRequest instance and the transaction id.
-   * @method createXhrObject
-   * @private
-   * @static
-   * @param {int} transactionId Property containing the transaction id for this transaction.
-   * @return object
-   */
-       createXhrObject:function(transactionId)
-       {
-               var obj,http,i;
-               try
-               {
-                       // Instantiates XMLHttpRequest in non-IE browsers and assigns to http.
-                       http = new XMLHttpRequest();
-                       //  Object literal with http and tId properties
-                       obj = { conn:http, tId:transactionId, xhr: true };
-               }
-               catch(e)
-               {
-                       for(i=0; i<this._msxml_progid.length; ++i){
-                               try
-                               {
-                                       // Instantiates XMLHttpRequest for IE and assign to http
-                                       http = new ActiveXObject(this._msxml_progid[i]);
-                                       //  Object literal with conn and tId properties
-                                       obj = { conn:http, tId:transactionId, xhr: true };
-                                       break;
-                               }
-                               catch(e1){}
-                       }
-               }
-               finally
-               {
-                       return obj;
-               }
-       },
-
-  /**
-   * @description This method is called by asyncRequest to create a
-   * valid connection object for the transaction.  It also passes a
-   * transaction id and increments the transaction id counter.
-   * @method getConnectionObject
-   * @private
-   * @static
-   * @return {object}
-   */
-       getConnectionObject:function(t)
-       {
-               var o, tId = this._transaction_id;
-
-               try
-               {
-                       if(!t){
-                               o = this.createXhrObject(tId);
-                       }
-                       else{
-                               o = {tId:tId};
-                               if(t==='xdr'){
-                                       o.conn = this._transport;
-                                       o.xdr = true;
-                               }
-                               else if(t==='upload'){
-                                       o.upload = true;
-                               }
-                       }
-
-                       if(o){
-                               this._transaction_id++;
-                       }
-               }
-               catch(e){}
-               return o;
-       },
-
-  /**
-   * @description Method for initiating an asynchronous request via the XHR object.
-   * @method asyncRequest
-   * @public
-   * @static
-   * @param {string} method HTTP transaction method
-   * @param {string} uri Fully qualified path of resource
-   * @param {callback} callback User-defined callback function or object
-   * @param {string} postData POST body
-   * @return {object} Returns the connection object
-   */
-       asyncRequest:function(method, uri, callback, postData)
-       {
-               var o,t,args = (callback && callback.argument)?callback.argument:null;
-
-               if(this._isFileUpload){
-                       t = 'upload';
-               }
-               else if(callback.xdr){
-                       t = 'xdr';
-               }
-
-               o = this.getConnectionObject(t);
-               if(!o){
-                       return null;
-               }
-               else{
-
-                       // Intialize any transaction-specific custom events, if provided.
-                       if(callback && callback.customevents){
-                               this.initCustomEvents(o, callback);
-                       }
-
-                       if(this._isFormSubmit){
-                               if(this._isFileUpload){
-                                       this.uploadFile(o, callback, uri, postData);
-                                       return o;
-                               }
-
-                               // If the specified HTTP method is GET, setForm() will return an
-                               // encoded string that is concatenated to the uri to
-                               // create a querystring.
-                               if(method.toUpperCase() == 'GET'){
-                                       if(this._sFormData.length !== 0){
-                                               // If the URI already contains a querystring, append an ampersand
-                                               // and then concatenate _sFormData to the URI.
-                                               uri += ((uri.indexOf('?') == -1)?'?':'&') + this._sFormData;
-                                       }
-                               }
-                               else if(method.toUpperCase() == 'POST'){
-                                       // If POST data exist in addition to the HTML form data,
-                                       // it will be concatenated to the form data.
-                                       postData = postData?this._sFormData + "&" + postData:this._sFormData;
-                               }
-                       }
-
-                       if(method.toUpperCase() == 'GET' && (callback && callback.cache === false)){
-                               // If callback.cache is defined and set to false, a
-                               // timestamp value will be added to the querystring.
-                               uri += ((uri.indexOf('?') == -1)?'?':'&') + "rnd=" + new Date().valueOf().toString();
-                       }
-
-                       // Each transaction will automatically include a custom header of
-                       // "X-Requested-With: XMLHttpRequest" to identify the request as
-                       // having originated from Connection Manager.
-                       if(this._use_default_xhr_header){
-                               if(!this._default_headers['X-Requested-With']){
-                                       this.initHeader('X-Requested-With', this._default_xhr_header, true);
-                               }
-                       }
-
-                       //If the transaction method is POST and the POST header value is set to true
-                       //or a custom value, initalize the Content-Type header to this value.
-                       if((method.toUpperCase() === 'POST' && this._use_default_post_header) && this._isFormSubmit === false){
-                               this.initHeader('Content-Type', this._default_post_header);
-                       }
-
-                       if(o.xdr){
-                               this.xdr(o, method, uri, callback, postData);
-                               return o;
-                       }
-
-                       o.conn.open(method, uri, true);
-                       //Initialize all default and custom HTTP headers,
-                       if(this._has_default_headers || this._has_http_headers){
-                               this.setHeader(o);
-                       }
-
-                       this.handleReadyState(o, callback);
-                       o.conn.send(postData || '');
-
-                       // Reset the HTML form data and state properties as
-                       // soon as the data are submitted.
-                       if(this._isFormSubmit === true){
-                               this.resetFormState();
-                       }
-
-                       // Fire global custom event -- startEvent
-                       this.startEvent.fire(o, args);
-
-                       if(o.startEvent){
-                               // Fire transaction custom event -- startEvent
-                               o.startEvent.fire(o, args);
-                       }
-
-                       return o;
-               }
-       },
-
-  /**
-   * @description This method creates and subscribes custom events,
-   * specific to each transaction
-   * @method initCustomEvents
-   * @private
-   * @static
-   * @param {object} o The connection object
-   * @param {callback} callback The user-defined callback object
-   * @return {void}
-   */
-       initCustomEvents:function(o, callback)
-       {
-               var prop;
-               // Enumerate through callback.customevents members and bind/subscribe
-               // events that match in the _customEvents table.
-               for(prop in callback.customevents){
-                       if(this._customEvents[prop][0]){
-                               // Create the custom event
-                               o[this._customEvents[prop][0]] = new YAHOO.util.CustomEvent(this._customEvents[prop][1], (callback.scope)?callback.scope:null);
-
-                               // Subscribe the custom event
-                               o[this._customEvents[prop][0]].subscribe(callback.customevents[prop]);
-                       }
-               }
-       },
-
-  /**
-   * @description This method serves as a timer that polls the XHR object's readyState
-   * property during a transaction, instead of binding a callback to the
-   * onreadystatechange event.  Upon readyState 4, handleTransactionResponse
-   * will process the response, and the timer will be cleared.
-   * @method handleReadyState
-   * @private
-   * @static
-   * @param {object} o The connection object
-   * @param {callback} callback The user-defined callback object
-   * @return {void}
-   */
-
-    handleReadyState:function(o, callback)
-
-    {
-               var oConn = this,
-                       args = (callback && callback.argument)?callback.argument:null;
-
-               if(callback && callback.timeout){
-                       this._timeOut[o.tId] = window.setTimeout(function(){ oConn.abort(o, callback, true); }, callback.timeout);
-               }
-
-               this._poll[o.tId] = window.setInterval(
-                       function(){
-                               if(o.conn && o.conn.readyState === 4){
-
-                                       // Clear the polling interval for the transaction
-                                       // and remove the reference from _poll.
-                                       window.clearInterval(oConn._poll[o.tId]);
-                                       delete oConn._poll[o.tId];
-
-                                       if(callback && callback.timeout){
-                                               window.clearTimeout(oConn._timeOut[o.tId]);
-                                               delete oConn._timeOut[o.tId];
-                                       }
-
-                                       // Fire global custom event -- completeEvent
-                                       oConn.completeEvent.fire(o, args);
-
-                                       if(o.completeEvent){
-                                               // Fire transaction custom event -- completeEvent
-                                               o.completeEvent.fire(o, args);
-                                       }
-
-                                       oConn.handleTransactionResponse(o, callback);
-                               }
-                       }
-               ,this._polling_interval);
-    },
-
-  /**
-   * @description This method attempts to interpret the server response and
-   * determine whether the transaction was successful, or if an error or
-   * exception was encountered.
-   * @method handleTransactionResponse
-   * @private
-   * @static
-   * @param {object} o The connection object
-   * @param {object} callback The user-defined callback object
-   * @param {boolean} isAbort Determines if the transaction was terminated via abort().
-   * @return {void}
-   */
-    handleTransactionResponse:function(o, callback, isAbort)
-    {
-               var httpStatus, responseObject,
-                       args = (callback && callback.argument)?callback.argument:null,
-                       xdrS = (o.r && o.r.statusText === 'xdr:success')?true:false,
-                       xdrF = (o.r && o.r.statusText === 'xdr:failure')?true:false,
-                       xdrA = isAbort;
-
-               try
-               {
-                       if((o.conn.status !== undefined && o.conn.status !== 0) || xdrS){
-                               // XDR requests will not have HTTP status defined. The
-                               // statusText property will define the response status
-                               // set by the Flash transport.
-                               httpStatus = o.conn.status;
-                       }
-                       else if(xdrF && !xdrA){
-                               // Set XDR transaction failure to a status of 0, which
-                               // resolves as an HTTP failure, instead of an exception.
-                               httpStatus = 0;
-                       }
-                       else{
-                               httpStatus = 13030;
-                       }
-               }
-               catch(e){
-
-                        // 13030 is a custom code to indicate the condition -- in Mozilla/FF --
-                        // when the XHR object's status and statusText properties are
-                        // unavailable, and a query attempt throws an exception.
-                       httpStatus = 13030;
-               }
-
-               if((httpStatus >= 200 && httpStatus < 300) || httpStatus === 1223 || xdrS){
-                       responseObject = o.xdr ? o.r : this.createResponseObject(o, args);
-                       if(callback && callback.success){
-                               if(!callback.scope){
-                                       callback.success(responseObject);
-                               }
-                               else{
-                                       // If a scope property is defined, the callback will be fired from
-                                       // the context of the object.
-                                       callback.success.apply(callback.scope, [responseObject]);
-                               }
-                       }
-
-                       // Fire global custom event -- successEvent
-                       this.successEvent.fire(responseObject);
-
-                       if(o.successEvent){
-                               // Fire transaction custom event -- successEvent
-                               o.successEvent.fire(responseObject);
-                       }
-               }
-               else{
-                       switch(httpStatus){
-                               // The following cases are wininet.dll error codes that may be encountered.
-                               case 12002: // Server timeout
-                               case 12029: // 12029 to 12031 correspond to dropped connections.
-                               case 12030:
-                               case 12031:
-                               case 12152: // Connection closed by server.
-                               case 13030: // See above comments for variable status.
-                                       // XDR transactions will not resolve to this case, since the
-                                       // response object is already built in the xdr response.
-                                       responseObject = this.createExceptionObject(o.tId, args, (isAbort?isAbort:false));
-                                       if(callback && callback.failure){
-                                               if(!callback.scope){
-                                                       callback.failure(responseObject);
-                                               }
-                                               else{
-                                                       callback.failure.apply(callback.scope, [responseObject]);
-                                               }
-                                       }
-
-                                       break;
-                               default:
-                                       responseObject = (o.xdr) ? o.response : this.createResponseObject(o, args);
-                                       if(callback && callback.failure){
-                                               if(!callback.scope){
-                                                       callback.failure(responseObject);
-                                               }
-                                               else{
-                                                       callback.failure.apply(callback.scope, [responseObject]);
-                                               }
-                                       }
-                       }
-
-                       // Fire global custom event -- failureEvent
-                       this.failureEvent.fire(responseObject);
-
-                       if(o.failureEvent){
-                               // Fire transaction custom event -- failureEvent
-                               o.failureEvent.fire(responseObject);
-                       }
-
-               }
-
-               this.releaseObject(o);
-               responseObject = null;
-    },
-
-  /**
-   * @description This method evaluates the server response, creates and returns the results via
-   * its properties.  Success and failure cases will differ in the response
-   * object's property values.
-   * @method createResponseObject
-   * @private
-   * @static
-   * @param {object} o The connection object
-   * @param {callbackArg} callbackArg The user-defined argument or arguments to be passed to the callback
-   * @return {object}
-   */
-    createResponseObject:function(o, callbackArg)
-    {
-               var obj = {}, headerObj = {},
-                       i, headerStr, header, delimitPos;
-
-               try
-               {
-                       headerStr = o.conn.getAllResponseHeaders();
-                       header = headerStr.split('\n');
-                       for(i=0; i<header.length; i++){
-                               delimitPos = header[i].indexOf(':');
-                               if(delimitPos != -1){
-                                       headerObj[header[i].substring(0,delimitPos)] = YAHOO.lang.trim(header[i].substring(delimitPos+2));
-                               }
-                       }
-               }
-               catch(e){}
-
-               obj.tId = o.tId;
-               // Normalize IE's response to HTTP 204 when Win error 1223.
-               obj.status = (o.conn.status == 1223)?204:o.conn.status;
-               // Normalize IE's statusText to "No Content" instead of "Unknown".
-               obj.statusText = (o.conn.status == 1223)?"No Content":o.conn.statusText;
-               obj.getResponseHeader = headerObj;
-               obj.getAllResponseHeaders = headerStr;
-               obj.responseText = o.conn.responseText;
-               obj.responseXML = o.conn.responseXML;
-
-               if(callbackArg){
-                       obj.argument = callbackArg;
-               }
-
-               return obj;
-    },
-
-  /**
-   * @description If a transaction cannot be completed due to dropped or closed connections,
-   * there may be not be enough information to build a full response object.
-   * The failure callback will be fired and this specific condition can be identified
-   * by a status property value of 0.
-   *
-   * If an abort was successful, the status property will report a value of -1.
-   *
-   * @method createExceptionObject
-   * @private
-   * @static
-   * @param {int} tId The Transaction Id
-   * @param {callbackArg} callbackArg The user-defined argument or arguments to be passed to the callback
-   * @param {boolean} isAbort Determines if the exception case is caused by a transaction abort
-   * @return {object}
-   */
-    createExceptionObject:function(tId, callbackArg, isAbort)
-    {
-               var COMM_CODE = 0,
-                       COMM_ERROR = 'communication failure',
-                       ABORT_CODE = -1,
-                       ABORT_ERROR = 'transaction aborted',
-                       obj = {};
-
-               obj.tId = tId;
-               if(isAbort){
-                       obj.status = ABORT_CODE;
-                       obj.statusText = ABORT_ERROR;
-               }
-               else{
-                       obj.status = COMM_CODE;
-                       obj.statusText = COMM_ERROR;
-               }
-
-               if(callbackArg){
-                       obj.argument = callbackArg;
-               }
-
-               return obj;
-    },
-
-  /**
-   * @description Method that initializes the custom HTTP headers for the each transaction.
-   * @method initHeader
-   * @public
-   * @static
-   * @param {string} label The HTTP header label
-   * @param {string} value The HTTP header value
-   * @param {string} isDefault Determines if the specific header is a default header
-   * automatically sent with each transaction.
-   * @return {void}
-   */
-       initHeader:function(label, value, isDefault)
-       {
-               var headerObj = (isDefault)?this._default_headers:this._http_headers;
-
-               headerObj[label] = value;
-               if(isDefault){
-                       this._has_default_headers = true;
-               }
-               else{
-                       this._has_http_headers = true;
-               }
-       },
-
-
-  /**
-   * @description Accessor that sets the HTTP headers for each transaction.
-   * @method setHeader
-   * @private
-   * @static
-   * @param {object} o The connection object for the transaction.
-   * @return {void}
-   */
-       setHeader:function(o)
-       {
-               var prop;
-               if(this._has_default_headers){
-                       for(prop in this._default_headers){
-                               if(YAHOO.lang.hasOwnProperty(this._default_headers, prop)){
-                                       o.conn.setRequestHeader(prop, this._default_headers[prop]);
-                               }
-                       }
-               }
-
-               if(this._has_http_headers){
-                       for(prop in this._http_headers){
-                               if(YAHOO.lang.hasOwnProperty(this._http_headers, prop)){
-                                       o.conn.setRequestHeader(prop, this._http_headers[prop]);
-                               }
-                       }
-
-                       this._http_headers = {};
-                       this._has_http_headers = false;
-               }
-       },
-
-  /**
-   * @description Resets the default HTTP headers object
-   * @method resetDefaultHeaders
-   * @public
-   * @static
-   * @return {void}
-   */
-       resetDefaultHeaders:function(){
-               this._default_headers = {};
-               this._has_default_headers = false;
-       },
-
-  /**
-   * @description Method to terminate a transaction, if it has not reached readyState 4.
-   * @method abort
-   * @public
-   * @static
-   * @param {object} o The connection object returned by asyncRequest.
-   * @param {object} callback  User-defined callback object.
-   * @param {string} isTimeout boolean to indicate if abort resulted from a callback timeout.
-   * @return {boolean}
-   */
-       abort:function(o, callback, isTimeout)
-       {
-               var abortStatus,
-                       args = (callback && callback.argument)?callback.argument:null;
-                       o = o || {};
-
-               if(o.conn){
-                       if(o.xhr){
-                               if(this.isCallInProgress(o)){
-                                       // Issue abort request
-                                       o.conn.abort();
-
-                                       window.clearInterval(this._poll[o.tId]);
-                                       delete this._poll[o.tId];
-
-                                       if(isTimeout){
-                                               window.clearTimeout(this._timeOut[o.tId]);
-                                               delete this._timeOut[o.tId];
-                                       }
-
-                                       abortStatus = true;
-                               }
-                       }
-                       else if(o.xdr){
-                               o.conn.abort(o.tId);
-                               abortStatus = true;
-                       }
-               }
-               else if(o.upload){
-                       var frameId = 'yuiIO' + o.tId;
-                       var io = document.getElementById(frameId);
-
-                       if(io){
-                               // Remove all listeners on the iframe prior to
-                               // its destruction.
-                               YAHOO.util.Event.removeListener(io, "load");
-                               // Destroy the iframe facilitating the transaction.
-                               document.body.removeChild(io);
-
-                               if(isTimeout){
-                                       window.clearTimeout(this._timeOut[o.tId]);
-                                       delete this._timeOut[o.tId];
-                               }
-
-                               abortStatus = true;
-                       }
-               }
-               else{
-                       abortStatus = false;
-               }
-
-               if(abortStatus === true){
-                       // Fire global custom event -- abortEvent
-                       this.abortEvent.fire(o, args);
-
-                       if(o.abortEvent){
-                               // Fire transaction custom event -- abortEvent
-                               o.abortEvent.fire(o, args);
-                       }
-
-                       this.handleTransactionResponse(o, callback, true);
-               }
-
-               return abortStatus;
-       },
-
-  /**
-   * @description Determines if the transaction is still being processed.
-   * @method isCallInProgress
-   * @public
-   * @static
-   * @param {object} o The connection object returned by asyncRequest
-   * @return {boolean}
-   */
-       isCallInProgress:function(o)
-       {
-               o = o || {};
-               // if the XHR object assigned to the transaction has not been dereferenced,
-               // then check its readyState status.  Otherwise, return false.
-               if(o.xhr && o.conn){
-                       return o.conn.readyState !== 4 && o.conn.readyState !== 0;
-               }
-               else if(o.xdr && o.conn){
-                       return o.conn.isCallInProgress(o.tId);
-               }
-               else if(o.upload === true){
-                       return document.getElementById('yuiIO' + o.tId)?true:false;
-               }
-               else{
-                       return false;
-               }
-       },
-
-  /**
-   * @description Dereference the XHR instance and the connection object after the transaction is completed.
-   * @method releaseObject
-   * @private
-   * @static
-   * @param {object} o The connection object
-   * @return {void}
-   */
-       releaseObject:function(o)
-       {
-               if(o && o.conn){
-                       //dereference the XHR instance.
-                       o.conn = null;
-
-
-                       //dereference the connection object.
-                       o = null;
-               }
-       }
-};
-
-/**
-  * @for Connect
-  */
-(function() {
-       var YCM = YAHOO.util.Connect, _fn = {};
-
-   /**
-    * @description This method creates and instantiates the Flash transport.
-    * @method _swf
-    * @private
-    * @static
-    * @param {string} URI to connection.swf.
-    * @return {void}
-    */
-       function _swf(uri) {
-               var o = '<object id="YUIConnectionSwf" type="application/x-shockwave-flash" data="' +
-                       uri + '" width="0" height="0">' +
-                       '<param name="movie" value="' + uri + '">' +
-                '<param name="allowScriptAccess" value="always">' +
-                       '</object>',
-                   c = document.createElement('div');
-
-               document.body.appendChild(c);
-               c.innerHTML = o;
-       }
-
-   /**
-    * @description This method calls the public method on the
-    * Flash transport to start the XDR transaction.  It is analogous
-    * to Connection Manager's asyncRequest method.
-    * @method xdr
-    * @private
-    * @static
-    * @param {object} The transaction object.
-    * @param {string} HTTP request method.
-    * @param {string} URI for the transaction.
-    * @param {object} The transaction's callback object.
-    * @param {object} The JSON object used as HTTP POST data.
-    * @return {void}
-    */
-       function _xdr(o, m, u, c, d) {
-               _fn[parseInt(o.tId)] = { 'o':o, 'c':c };
-               if (d) {
-                       c.method = m;
-                       c.data = d;
-               }
-
-               o.conn.send(u, c, o.tId);
-       }
-
-   /**
-    * @description This method instantiates the Flash transport and
-    * establishes a static reference to it, used for all XDR requests.
-    * @method transport
-    * @public
-    * @static
-    * @param {string} URI to connection.swf.
-    * @return {void}
-    */
-       function _init(uri) {
-               _swf(uri);
-               YCM._transport = document.getElementById('YUIConnectionSwf');
-       }
-
-       function _xdrReady() {
-               YCM.xdrReadyEvent.fire();
-       }
-
-   /**
-    * @description This method fires the global and transaction start
-    * events.
-    * @method _xdrStart
-    * @private
-    * @static
-    * @param {object} The transaction object.
-    * @param {string} The transaction's callback object.
-    * @return {void}
-    */
-       function _xdrStart(o, cb) {
-               if (o) {
-                       // Fire global custom event -- startEvent
-                       YCM.startEvent.fire(o, cb.argument);
-
-                       if(o.startEvent){
-                               // Fire transaction custom event -- startEvent
-                               o.startEvent.fire(o, cb.argument);
-                       }
-               }
-       }
-
-   /**
-    * @description This method is the initial response handler
-    * for XDR transactions.  The Flash transport calls this
-    * function and sends the response payload.
-    * @method handleXdrResponse
-    * @private
-    * @static
-    * @param {object} The response object sent from the Flash transport.
-    * @return {void}
-    */
-       function _handleXdrResponse(r) {
-               var o = _fn[r.tId].o,
-                       cb = _fn[r.tId].c;
-
-               if (r.statusText === 'xdr:start') {
-                       _xdrStart(o, cb);
-                       return;
-               }
-
-               r.responseText = decodeURI(r.responseText);
-               o.r = r;
-               if (cb.argument) {
-                       o.r.argument = cb.argument;
-               }
-
-               this.handleTransactionResponse(o, cb, r.statusText === 'xdr:abort' ? true : false);
-               delete _fn[r.tId];
-       }
-
-       // Bind the functions to Connection Manager as static fields.
-       YCM.xdr = _xdr;
-       YCM.swf = _swf;
-       YCM.transport = _init;
-       YCM.xdrReadyEvent = new YAHOO.util.CustomEvent('xdrReady');
-       YCM.xdrReady = _xdrReady;
-       YCM.handleXdrResponse = _handleXdrResponse;
-})();
-
-/**
-  * @for Connect
-  */
-(function(){
-       var YCM = YAHOO.util.Connect,
-               YE = YAHOO.util.Event;
-   /**
-       * @description Property modified by setForm() to determine if the data
-       * should be submitted as an HTML form.
-       * @property _isFormSubmit
-       * @private
-       * @static
-       * @type boolean
-       */
-       YCM._isFormSubmit = false;
-
-   /**
-       * @description Property modified by setForm() to determine if a file(s)
-       * upload is expected.
-       * @property _isFileUpload
-       * @private
-       * @static
-       * @type boolean
-       */
-       YCM._isFileUpload = false;
-
-   /**
-       * @description Property modified by setForm() to set a reference to the HTML
-       * form node if the desired action is file upload.
-       * @property _formNode
-       * @private
-       * @static
-       * @type object
-       */
-       YCM._formNode = null;
-
-   /**
-       * @description Property modified by setForm() to set the HTML form data
-       * for each transaction.
-       * @property _sFormData
-       * @private
-       * @static
-       * @type string
-       */
-       YCM._sFormData = null;
-
-   /**
-       * @description Tracks the name-value pair of the "clicked" submit button if multiple submit
-       * buttons are present in an HTML form; and, if YAHOO.util.Event is available.
-       * @property _submitElementValue
-       * @private
-       * @static
-       * @type string
-       */
-       YCM._submitElementValue = null;
-
-   /**
-    * @description Custom event that fires when handleTransactionResponse() determines a
-    * response in the HTTP 4xx/5xx range.
-    * @property failureEvent
-    * @private
-    * @static
-    * @type CustomEvent
-    */
-       YCM.uploadEvent = new YAHOO.util.CustomEvent('upload'),
-
-   /**
-       * @description Determines whether YAHOO.util.Event is available and returns true or false.
-       * If true, an event listener is bound at the document level to trap click events that
-       * resolve to a target type of "Submit".  This listener will enable setForm() to determine
-       * the clicked "Submit" value in a multi-Submit button, HTML form.
-       * @property _hasSubmitListener
-       * @private
-       * @static
-       */
-       YCM._hasSubmitListener = function() {
-               if(YE){
-                       YE.addListener(
-                               document,
-                               'click',
-                               function(e){
-                                       var obj = YE.getTarget(e),
-                                               name = obj.nodeName.toLowerCase();
-
-                                       if((name === 'input' || name === 'button') && (obj.type && obj.type.toLowerCase() == 'submit')){
-                                               YCM._submitElementValue = encodeURIComponent(obj.name) + "=" + encodeURIComponent(obj.value);
-                                       }
-                               });
-                       return true;
-               }
-               return false;
-       }();
-
-  /**
-   * @description This method assembles the form label and value pairs and
-   * constructs an encoded string.
-   * asyncRequest() will automatically initialize the transaction with a
-   * a HTTP header Content-Type of application/x-www-form-urlencoded.
-   * @method setForm
-   * @public
-   * @static
-   * @param {string || object} form id or name attribute, or form object.
-   * @param {boolean} optional enable file upload.
-   * @param {boolean} optional enable file upload over SSL in IE only.
-   * @return {string} string of the HTML form field name and value pairs..
-   */
-       function _setForm(formId, isUpload, secureUri)
-       {
-               var oForm, oElement, oName, oValue, oDisabled,
-                       hasSubmit = false,
-                       data = [], item = 0,
-                       i,len,j,jlen,opt;
-
-               this.resetFormState();
-
-               if(typeof formId == 'string'){
-                       // Determine if the argument is a form id or a form name.
-                       // Note form name usage is deprecated by supported
-                       // here for legacy reasons.
-                       oForm = (document.getElementById(formId) || document.forms[formId]);
-               }
-               else if(typeof formId == 'object'){
-                       // Treat argument as an HTML form object.
-                       oForm = formId;
-               }
-               else{
-                       return;
-               }
-
-               // If the isUpload argument is true, setForm will call createFrame to initialize
-               // an iframe as the form target.
-               //
-               // The argument secureURI is also required by IE in SSL environments
-               // where the secureURI string is a fully qualified HTTP path, used to set the source
-               // of the iframe, to a stub resource in the same domain.
-               if(isUpload){
-
-                       // Create iframe in preparation for file upload.
-                       this.createFrame(secureUri?secureUri:null);
-
-                       // Set form reference and file upload properties to true.
-                       this._isFormSubmit = true;
-                       this._isFileUpload = true;
-                       this._formNode = oForm;
-
-                       return;
-               }
-
-               // Iterate over the form elements collection to construct the
-               // label-value pairs.
-               for (i=0,len=oForm.elements.length; i<len; ++i){
-                       oElement  = oForm.elements[i];
-                       oDisabled = oElement.disabled;
-                       oName     = oElement.name;
-
-                       // Do not submit fields that are disabled or
-                       // do not have a name attribute value.
-                       if(!oDisabled && oName)
-                       {
-                               oName  = encodeURIComponent(oName)+'=';
-                               oValue = encodeURIComponent(oElement.value);
-
-                               switch(oElement.type)
-                               {
-                                       // Safari, Opera, FF all default opt.value from .text if
-                                       // value attribute not specified in markup
-                                       case 'select-one':
-                                               if (oElement.selectedIndex > -1) {
-                                                       opt = oElement.options[oElement.selectedIndex];
-                                                       data[item++] = oName + encodeURIComponent(
-                                                               (opt.attributes.value && opt.attributes.value.specified) ? opt.value : opt.text);
-                                               }
-                                               break;
-                                       case 'select-multiple':
-                                               if (oElement.selectedIndex > -1) {
-                                                       for(j=oElement.selectedIndex, jlen=oElement.options.length; j<jlen; ++j){
-                                                               opt = oElement.options[j];
-                                                               if (opt.selected) {
-                                                                       data[item++] = oName + encodeURIComponent(
-                                                                               (opt.attributes.value && opt.attributes.value.specified) ? opt.value : opt.text);
-                                                               }
-                                                       }
-                                               }
-                                               break;
-                                       case 'radio':
-                                       case 'checkbox':
-                                               if(oElement.checked){
-                                                       data[item++] = oName + oValue;
-                                               }
-                                               break;
-                                       case 'file':
-                                               // stub case as XMLHttpRequest will only send the file path as a string.
-                                       case undefined:
-                                               // stub case for fieldset element which returns undefined.
-                                       case 'reset':
-                                               // stub case for input type reset button.
-                                       case 'button':
-                                               // stub case for input type button elements.
-                                               break;
-                                       case 'submit':
-                                               if(hasSubmit === false){
-                                                       if(this._hasSubmitListener && this._submitElementValue){
-                                                               data[item++] = this._submitElementValue;
-                                                       }
-                                                       hasSubmit = true;
-                                               }
-                                               break;
-                                       default:
-                                               data[item++] = oName + oValue;
-                               }
-                       }
-               }
-
-               this._isFormSubmit = true;
-               this._sFormData = data.join('&');
-
-
-               this.initHeader('Content-Type', this._default_form_header);
-
-               return this._sFormData;
-       }
-
-   /**
-    * @description Resets HTML form properties when an HTML form or HTML form
-    * with file upload transaction is sent.
-    * @method resetFormState
-    * @private
-    * @static
-    * @return {void}
-    */
-       function _resetFormState(){
-               this._isFormSubmit = false;
-               this._isFileUpload = false;
-               this._formNode = null;
-               this._sFormData = "";
-       }
-
-
-   /**
-    * @description Creates an iframe to be used for form file uploads.  It is remove from the
-    * document upon completion of the upload transaction.
-    * @method createFrame
-    * @private
-    * @static
-    * @param {string} optional qualified path of iframe resource for SSL in IE.
-    * @return {void}
-    */
-       function _createFrame(secureUri){
-
-               // IE does not allow the setting of id and name attributes as object
-               // properties via createElement().  A different iframe creation
-               // pattern is required for IE.
-               var frameId = 'yuiIO' + this._transaction_id,
-                       io;
-               if(YAHOO.env.ua.ie){
-                       io = document.createElement('<iframe id="' + frameId + '" name="' + frameId + '" />');
-
-                       // IE will throw a security exception in an SSL environment if the
-                       // iframe source is undefined.
-                       if(typeof secureUri == 'boolean'){
-                               io.src = 'javascript:false';
-                       }
-               }
-               else{
-                       io = document.createElement('iframe');
-                       io.id = frameId;
-                       io.name = frameId;
-               }
-
-               io.style.position = 'absolute';
-               io.style.top = '-1000px';
-               io.style.left = '-1000px';
-
-               document.body.appendChild(io);
-       }
-
-   /**
-    * @description Parses the POST data and creates hidden form elements
-    * for each key-value, and appends them to the HTML form object.
-    * @method appendPostData
-    * @private
-    * @static
-    * @param {string} postData The HTTP POST data
-    * @return {array} formElements Collection of hidden fields.
-    */
-       function _appendPostData(postData){
-               var formElements = [],
-                       postMessage = postData.split('&'),
-                       i, delimitPos;
-
-               for(i=0; i < postMessage.length; i++){
-                       delimitPos = postMessage[i].indexOf('=');
-                       if(delimitPos != -1){
-                               formElements[i] = document.createElement('input');
-                               formElements[i].type = 'hidden';
-                               formElements[i].name = decodeURIComponent(postMessage[i].substring(0,delimitPos));
-                               formElements[i].value = decodeURIComponent(postMessage[i].substring(delimitPos+1));
-                               this._formNode.appendChild(formElements[i]);
-                       }
-               }
-
-               return formElements;
-       }
-
-   /**
-    * @description Uploads HTML form, inclusive of files/attachments, using the
-    * iframe created in createFrame to facilitate the transaction.
-    * @method uploadFile
-    * @private
-    * @static
-    * @param {int} id The transaction id.
-    * @param {object} callback User-defined callback object.
-    * @param {string} uri Fully qualified path of resource.
-    * @param {string} postData POST data to be submitted in addition to HTML form.
-    * @return {void}
-    */
-       function _uploadFile(o, callback, uri, postData){
-               // Each iframe has an id prefix of "yuiIO" followed
-               // by the unique transaction id.
-               var frameId = 'yuiIO' + o.tId,
-                   uploadEncoding = 'multipart/form-data',
-                   io = document.getElementById(frameId),
-                   ie8 = (document.documentMode && document.documentMode === 8) ? true : false,
-                   oConn = this,
-                       args = (callback && callback.argument)?callback.argument:null,
-            oElements,i,prop,obj, rawFormAttributes, uploadCallback;
-
-               // Track original HTML form attribute values.
-               rawFormAttributes = {
-                       action:this._formNode.getAttribute('action'),
-                       method:this._formNode.getAttribute('method'),
-                       target:this._formNode.getAttribute('target')
-               };
-
-               // Initialize the HTML form properties in case they are
-               // not defined in the HTML form.
-               this._formNode.setAttribute('action', uri);
-               this._formNode.setAttribute('method', 'POST');
-               this._formNode.setAttribute('target', frameId);
-
-               if(YAHOO.env.ua.ie && !ie8){
-                       // IE does not respect property enctype for HTML forms.
-                       // Instead it uses the property - "encoding".
-                       this._formNode.setAttribute('encoding', uploadEncoding);
-               }
-               else{
-                       this._formNode.setAttribute('enctype', uploadEncoding);
-               }
-
-               if(postData){
-                       oElements = this.appendPostData(postData);
-               }
-
-               // Start file upload.
-               this._formNode.submit();
-
-               // Fire global custom event -- startEvent
-               this.startEvent.fire(o, args);
-
-               if(o.startEvent){
-                       // Fire transaction custom event -- startEvent
-                       o.startEvent.fire(o, args);
-               }
-
-               // Start polling if a callback is present and the timeout
-               // property has been defined.
-               if(callback && callback.timeout){
-                       this._timeOut[o.tId] = window.setTimeout(function(){ oConn.abort(o, callback, true); }, callback.timeout);
-               }
-
-               // Remove HTML elements created by appendPostData
-               if(oElements && oElements.length > 0){
-                       for(i=0; i < oElements.length; i++){
-                               this._formNode.removeChild(oElements[i]);
-                       }
-               }
-
-               // Restore HTML form attributes to their original
-               // values prior to file upload.
-               for(prop in rawFormAttributes){
-                       if(YAHOO.lang.hasOwnProperty(rawFormAttributes, prop)){
-                               if(rawFormAttributes[prop]){
-                                       this._formNode.setAttribute(prop, rawFormAttributes[prop]);
-                               }
-                               else{
-                                       this._formNode.removeAttribute(prop);
-                               }
-                       }
-               }
-
-               // Reset HTML form state properties.
-               this.resetFormState();
-
-               // Create the upload callback handler that fires when the iframe
-               // receives the load event.  Subsequently, the event handler is detached
-               // and the iframe removed from the document.
-               uploadCallback = function() {
-                       if(callback && callback.timeout){
-                               window.clearTimeout(oConn._timeOut[o.tId]);
-                               delete oConn._timeOut[o.tId];
-                       }
-
-                       // Fire global custom event -- completeEvent
-                       oConn.completeEvent.fire(o, args);
-
-                       if(o.completeEvent){
-                               // Fire transaction custom event -- completeEvent
-                               o.completeEvent.fire(o, args);
-                       }
-
-                       obj = {
-                           tId : o.tId,
-                           argument : callback.argument
-            };
-
-                       try
-                       {
-                               // responseText and responseXML will be populated with the same data from the iframe.
-                               // Since the HTTP headers cannot be read from the iframe
-                               obj.responseText = io.contentWindow.document.body?io.contentWindow.document.body.innerHTML:io.contentWindow.document.documentElement.textContent;
-                               obj.responseXML = io.contentWindow.document.XMLDocument?io.contentWindow.document.XMLDocument:io.contentWindow.document;
-                       }
-                       catch(e){}
-
-                       if(callback && callback.upload){
-                               if(!callback.scope){
-                                       callback.upload(obj);
-                               }
-                               else{
-                                       callback.upload.apply(callback.scope, [obj]);
-                               }
-                       }
-
-                       // Fire global custom event -- uploadEvent
-                       oConn.uploadEvent.fire(obj);
-
-                       if(o.uploadEvent){
-                               // Fire transaction custom event -- uploadEvent
-                               o.uploadEvent.fire(obj);
-                       }
-
-                       YE.removeListener(io, "load", uploadCallback);
-
-                       setTimeout(
-                               function(){
-                                       document.body.removeChild(io);
-                                       oConn.releaseObject(o);
-                               }, 100);
-               };
-
-               // Bind the onload handler to the iframe to detect the file upload response.
-               YE.addListener(io, "load", uploadCallback);
-       }
-
-       YCM.setForm = _setForm;
-       YCM.resetFormState = _resetFormState;
-       YCM.createFrame = _createFrame;
-       YCM.appendPostData = _appendPostData;
-       YCM.uploadFile = _uploadFile;
-})();
-
-YAHOO.register("connection", YAHOO.util.Connect, {version: "2.8.0r4", build: "2449"});
diff --git a/koha-tmpl/intranet-tmpl/prog/en/lib/yui/connection/connection.swf b/koha-tmpl/intranet-tmpl/prog/en/lib/yui/connection/connection.swf
deleted file mode 100644 (file)
index c33a7fe..0000000
Binary files a/koha-tmpl/intranet-tmpl/prog/en/lib/yui/connection/connection.swf and /dev/null differ
diff --git a/koha-tmpl/intranet-tmpl/prog/en/lib/yui/connection/connection_core-debug.js b/koha-tmpl/intranet-tmpl/prog/en/lib/yui/connection/connection_core-debug.js
deleted file mode 100644 (file)
index 3c0c61c..0000000
+++ /dev/null
@@ -1,980 +0,0 @@
-/*
-Copyright (c) 2009, Yahoo! Inc. All rights reserved.
-Code licensed under the BSD License:
-http://developer.yahoo.net/yui/license.txt
-version: 2.8.0r4
-*/
-/**
- * The Connection Manager provides a simplified interface to the XMLHttpRequest
- * object.  It handles cross-browser instantiantion of XMLHttpRequest, negotiates the
- * interactive states and server response, returning the results to a pre-defined
- * callback you create.
- *
- * @namespace YAHOO.util
- * @module connection
- * @requires yahoo
- * @requires event
- */
-
-/**
- * The Connection Manager singleton provides methods for creating and managing
- * asynchronous transactions.
- *
- * @class Connect
- */
-
-YAHOO.util.Connect =
-{
-  /**
-   * @description Array of MSFT ActiveX ids for XMLHttpRequest.
-   * @property _msxml_progid
-   * @private
-   * @static
-   * @type array
-   */
-       _msxml_progid:[
-               'Microsoft.XMLHTTP',
-               'MSXML2.XMLHTTP.3.0',
-               'MSXML2.XMLHTTP'
-               ],
-
-  /**
-   * @description Object literal of HTTP header(s)
-   * @property _http_header
-   * @private
-   * @static
-   * @type object
-   */
-       _http_headers:{},
-
-  /**
-   * @description Determines if HTTP headers are set.
-   * @property _has_http_headers
-   * @private
-   * @static
-   * @type boolean
-   */
-       _has_http_headers:false,
-
- /**
-  * @description Determines if a default header of
-  * Content-Type of 'application/x-www-form-urlencoded'
-  * will be added to any client HTTP headers sent for POST
-  * transactions.
-  * @property _use_default_post_header
-  * @private
-  * @static
-  * @type boolean
-  */
-    _use_default_post_header:true,
-
- /**
-  * @description The default header used for POST transactions.
-  * @property _default_post_header
-  * @private
-  * @static
-  * @type boolean
-  */
-    _default_post_header:'application/x-www-form-urlencoded; charset=UTF-8',
-
- /**
-  * @description The default header used for transactions involving the
-  * use of HTML forms.
-  * @property _default_form_header
-  * @private
-  * @static
-  * @type boolean
-  */
-    _default_form_header:'application/x-www-form-urlencoded',
-
- /**
-  * @description Determines if a default header of
-  * 'X-Requested-With: XMLHttpRequest'
-  * will be added to each transaction.
-  * @property _use_default_xhr_header
-  * @private
-  * @static
-  * @type boolean
-  */
-    _use_default_xhr_header:true,
-
- /**
-  * @description The default header value for the label
-  * "X-Requested-With".  This is sent with each
-  * transaction, by default, to identify the
-  * request as being made by YUI Connection Manager.
-  * @property _default_xhr_header
-  * @private
-  * @static
-  * @type boolean
-  */
-    _default_xhr_header:'XMLHttpRequest',
-
- /**
-  * @description Determines if custom, default headers
-  * are set for each transaction.
-  * @property _has_default_header
-  * @private
-  * @static
-  * @type boolean
-  */
-    _has_default_headers:true,
-
- /**
-  * @description Determines if custom, default headers
-  * are set for each transaction.
-  * @property _has_default_header
-  * @private
-  * @static
-  * @type boolean
-  */
-    _default_headers:{},
-
- /**
-  * @description Collection of polling references to the polling mechanism in handleReadyState.
-  * @property _poll
-  * @private
-  * @static
-  * @type object
-  */
-    _poll:{},
-
- /**
-  * @description Queue of timeout values for each transaction callback with a defined timeout value.
-  * @property _timeOut
-  * @private
-  * @static
-  * @type object
-  */
-    _timeOut:{},
-
-  /**
-   * @description The polling frequency, in milliseconds, for HandleReadyState.
-   * when attempting to determine a transaction's XHR readyState.
-   * The default is 50 milliseconds.
-   * @property _polling_interval
-   * @private
-   * @static
-   * @type int
-   */
-     _polling_interval:50,
-
-  /**
-   * @description A transaction counter that increments the transaction id for each transaction.
-   * @property _transaction_id
-   * @private
-   * @static
-   * @type int
-   */
-     _transaction_id:0,
-
-  /**
-   * @description Custom event that fires at the start of a transaction
-   * @property startEvent
-   * @private
-   * @static
-   * @type CustomEvent
-   */
-       startEvent: new YAHOO.util.CustomEvent('start'),
-
-  /**
-   * @description Custom event that fires when a transaction response has completed.
-   * @property completeEvent
-   * @private
-   * @static
-   * @type CustomEvent
-   */
-       completeEvent: new YAHOO.util.CustomEvent('complete'),
-
-  /**
-   * @description Custom event that fires when handleTransactionResponse() determines a
-   * response in the HTTP 2xx range.
-   * @property successEvent
-   * @private
-   * @static
-   * @type CustomEvent
-   */
-       successEvent: new YAHOO.util.CustomEvent('success'),
-
-  /**
-   * @description Custom event that fires when handleTransactionResponse() determines a
-   * response in the HTTP 4xx/5xx range.
-   * @property failureEvent
-   * @private
-   * @static
-   * @type CustomEvent
-   */
-       failureEvent: new YAHOO.util.CustomEvent('failure'),
-
-  /**
-   * @description Custom event that fires when a transaction is successfully aborted.
-   * @property abortEvent
-   * @private
-   * @static
-   * @type CustomEvent
-   */
-       abortEvent: new YAHOO.util.CustomEvent('abort'),
-
-  /**
-   * @description A reference table that maps callback custom events members to its specific
-   * event name.
-   * @property _customEvents
-   * @private
-   * @static
-   * @type object
-   */
-       _customEvents:
-       {
-               onStart:['startEvent', 'start'],
-               onComplete:['completeEvent', 'complete'],
-               onSuccess:['successEvent', 'success'],
-               onFailure:['failureEvent', 'failure'],
-               onUpload:['uploadEvent', 'upload'],
-               onAbort:['abortEvent', 'abort']
-       },
-
-  /**
-   * @description Member to add an ActiveX id to the existing xml_progid array.
-   * In the event(unlikely) a new ActiveX id is introduced, it can be added
-   * without internal code modifications.
-   * @method setProgId
-   * @public
-   * @static
-   * @param {string} id The ActiveX id to be added to initialize the XHR object.
-   * @return void
-   */
-       setProgId:function(id)
-       {
-               this._msxml_progid.unshift(id);
-               YAHOO.log('ActiveX Program Id  ' + id + ' added to _msxml_progid.', 'info', 'Connection');
-       },
-
-  /**
-   * @description Member to override the default POST header.
-   * @method setDefaultPostHeader
-   * @public
-   * @static
-   * @param {boolean} b Set and use default header - true or false .
-   * @return void
-   */
-       setDefaultPostHeader:function(b)
-       {
-               if(typeof b == 'string'){
-                       this._default_post_header = b;
-                       YAHOO.log('Default POST header set to  ' + b, 'info', 'Connection');
-               }
-               else if(typeof b == 'boolean'){
-                       this._use_default_post_header = b;
-               }
-       },
-
-  /**
-   * @description Member to override the default transaction header..
-   * @method setDefaultXhrHeader
-   * @public
-   * @static
-   * @param {boolean} b Set and use default header - true or false .
-   * @return void
-   */
-       setDefaultXhrHeader:function(b)
-       {
-               if(typeof b == 'string'){
-                       this._default_xhr_header = b;
-                       YAHOO.log('Default XHR header set to  ' + b, 'info', 'Connection');
-               }
-               else{
-                       this._use_default_xhr_header = b;
-               }
-       },
-
-  /**
-   * @description Member to modify the default polling interval.
-   * @method setPollingInterval
-   * @public
-   * @static
-   * @param {int} i The polling interval in milliseconds.
-   * @return void
-   */
-       setPollingInterval:function(i)
-       {
-               if(typeof i == 'number' && isFinite(i)){
-                       this._polling_interval = i;
-                       YAHOO.log('Default polling interval set to ' + i +'ms', 'info', 'Connection');
-               }
-       },
-
-  /**
-   * @description Instantiates a XMLHttpRequest object and returns an object with two properties:
-   * the XMLHttpRequest instance and the transaction id.
-   * @method createXhrObject
-   * @private
-   * @static
-   * @param {int} transactionId Property containing the transaction id for this transaction.
-   * @return object
-   */
-       createXhrObject:function(transactionId)
-       {
-               var obj,http,i;
-               try
-               {
-                       // Instantiates XMLHttpRequest in non-IE browsers and assigns to http.
-                       http = new XMLHttpRequest();
-                       //  Object literal with http and tId properties
-                       obj = { conn:http, tId:transactionId, xhr: true };
-                       YAHOO.log('XHR object created for transaction ' + transactionId, 'info', 'Connection');
-               }
-               catch(e)
-               {
-                       for(i=0; i<this._msxml_progid.length; ++i){
-                               try
-                               {
-                                       // Instantiates XMLHttpRequest for IE and assign to http
-                                       http = new ActiveXObject(this._msxml_progid[i]);
-                                       //  Object literal with conn and tId properties
-                                       obj = { conn:http, tId:transactionId, xhr: true };
-                                       YAHOO.log('ActiveX XHR object created for transaction ' + transactionId, 'info', 'Connection');
-                                       break;
-                               }
-                               catch(e1){}
-                       }
-               }
-               finally
-               {
-                       return obj;
-               }
-       },
-
-  /**
-   * @description This method is called by asyncRequest to create a
-   * valid connection object for the transaction.  It also passes a
-   * transaction id and increments the transaction id counter.
-   * @method getConnectionObject
-   * @private
-   * @static
-   * @return {object}
-   */
-       getConnectionObject:function(t)
-       {
-               var o, tId = this._transaction_id;
-
-               try
-               {
-                       if(!t){
-                               o = this.createXhrObject(tId);
-                       }
-                       else{
-                               o = {tId:tId};
-                               if(t==='xdr'){
-                                       o.conn = this._transport;
-                                       o.xdr = true;
-                               }
-                               else if(t==='upload'){
-                                       o.upload = true;
-                               }
-                       }
-
-                       if(o){
-                               this._transaction_id++;
-                       }
-               }
-               catch(e){}
-               return o;
-       },
-
-  /**
-   * @description Method for initiating an asynchronous request via the XHR object.
-   * @method asyncRequest
-   * @public
-   * @static
-   * @param {string} method HTTP transaction method
-   * @param {string} uri Fully qualified path of resource
-   * @param {callback} callback User-defined callback function or object
-   * @param {string} postData POST body
-   * @return {object} Returns the connection object
-   */
-       asyncRequest:function(method, uri, callback, postData)
-       {
-               var o,t,args = (callback && callback.argument)?callback.argument:null;
-
-               if(this._isFileUpload){
-                       t = 'upload';
-               }
-               else if(callback.xdr){
-                       t = 'xdr';
-               }
-
-               o = this.getConnectionObject(t);
-               if(!o){
-                       YAHOO.log('Unable to create connection object.', 'error', 'Connection');
-                       return null;
-               }
-               else{
-
-                       // Intialize any transaction-specific custom events, if provided.
-                       if(callback && callback.customevents){
-                               this.initCustomEvents(o, callback);
-                       }
-
-                       if(this._isFormSubmit){
-                               if(this._isFileUpload){
-                                       this.uploadFile(o, callback, uri, postData);
-                                       return o;
-                               }
-
-                               // If the specified HTTP method is GET, setForm() will return an
-                               // encoded string that is concatenated to the uri to
-                               // create a querystring.
-                               if(method.toUpperCase() == 'GET'){
-                                       if(this._sFormData.length !== 0){
-                                               // If the URI already contains a querystring, append an ampersand
-                                               // and then concatenate _sFormData to the URI.
-                                               uri += ((uri.indexOf('?') == -1)?'?':'&') + this._sFormData;
-                                       }
-                               }
-                               else if(method.toUpperCase() == 'POST'){
-                                       // If POST data exist in addition to the HTML form data,
-                                       // it will be concatenated to the form data.
-                                       postData = postData?this._sFormData + "&" + postData:this._sFormData;
-                               }
-                       }
-
-                       if(method.toUpperCase() == 'GET' && (callback && callback.cache === false)){
-                               // If callback.cache is defined and set to false, a
-                               // timestamp value will be added to the querystring.
-                               uri += ((uri.indexOf('?') == -1)?'?':'&') + "rnd=" + new Date().valueOf().toString();
-                       }
-
-                       // Each transaction will automatically include a custom header of
-                       // "X-Requested-With: XMLHttpRequest" to identify the request as
-                       // having originated from Connection Manager.
-                       if(this._use_default_xhr_header){
-                               if(!this._default_headers['X-Requested-With']){
-                                       this.initHeader('X-Requested-With', this._default_xhr_header, true);
-                                       YAHOO.log('Initialize transaction header X-Request-Header to XMLHttpRequest.', 'info', 'Connection');
-                               }
-                       }
-
-                       //If the transaction method is POST and the POST header value is set to true
-                       //or a custom value, initalize the Content-Type header to this value.
-                       if((method.toUpperCase() === 'POST' && this._use_default_post_header) && this._isFormSubmit === false){
-                               this.initHeader('Content-Type', this._default_post_header);
-                               YAHOO.log('Initialize header Content-Type to application/x-www-form-urlencoded; UTF-8 for POST transaction.', 'info', 'Connection');
-                       }
-
-                       if(o.xdr){
-                               this.xdr(o, method, uri, callback, postData);
-                               return o;
-                       }
-
-                       o.conn.open(method, uri, true);
-                       //Initialize all default and custom HTTP headers,
-                       if(this._has_default_headers || this._has_http_headers){
-                               this.setHeader(o);
-                       }
-
-                       this.handleReadyState(o, callback);
-                       o.conn.send(postData || '');
-                       YAHOO.log('Transaction ' + o.tId + ' sent.', 'info', 'Connection');
-
-                       // Reset the HTML form data and state properties as
-                       // soon as the data are submitted.
-                       if(this._isFormSubmit === true){
-                               this.resetFormState();
-                       }
-
-                       // Fire global custom event -- startEvent
-                       this.startEvent.fire(o, args);
-
-                       if(o.startEvent){
-                               // Fire transaction custom event -- startEvent
-                               o.startEvent.fire(o, args);
-                       }
-
-                       return o;
-               }
-       },
-
-  /**
-   * @description This method creates and subscribes custom events,
-   * specific to each transaction
-   * @method initCustomEvents
-   * @private
-   * @static
-   * @param {object} o The connection object
-   * @param {callback} callback The user-defined callback object
-   * @return {void}
-   */
-       initCustomEvents:function(o, callback)
-       {
-               var prop;
-               // Enumerate through callback.customevents members and bind/subscribe
-               // events that match in the _customEvents table.
-               for(prop in callback.customevents){
-                       if(this._customEvents[prop][0]){
-                               // Create the custom event
-                               o[this._customEvents[prop][0]] = new YAHOO.util.CustomEvent(this._customEvents[prop][1], (callback.scope)?callback.scope:null);
-                               YAHOO.log('Transaction-specific Custom Event ' + o[this._customEvents[prop][1]] + ' created.', 'info', 'Connection');
-
-                               // Subscribe the custom event
-                               o[this._customEvents[prop][0]].subscribe(callback.customevents[prop]);
-                               YAHOO.log('Transaction-specific Custom Event ' + o[this._customEvents[prop][1]] + ' subscribed.', 'info', 'Connection');
-                       }
-               }
-       },
-
-  /**
-   * @description This method serves as a timer that polls the XHR object's readyState
-   * property during a transaction, instead of binding a callback to the
-   * onreadystatechange event.  Upon readyState 4, handleTransactionResponse
-   * will process the response, and the timer will be cleared.
-   * @method handleReadyState
-   * @private
-   * @static
-   * @param {object} o The connection object
-   * @param {callback} callback The user-defined callback object
-   * @return {void}
-   */
-
-    handleReadyState:function(o, callback)
-
-    {
-               var oConn = this,
-                       args = (callback && callback.argument)?callback.argument:null;
-
-               if(callback && callback.timeout){
-                       this._timeOut[o.tId] = window.setTimeout(function(){ oConn.abort(o, callback, true); }, callback.timeout);
-               }
-
-               this._poll[o.tId] = window.setInterval(
-                       function(){
-                               if(o.conn && o.conn.readyState === 4){
-
-                                       // Clear the polling interval for the transaction
-                                       // and remove the reference from _poll.
-                                       window.clearInterval(oConn._poll[o.tId]);
-                                       delete oConn._poll[o.tId];
-
-                                       if(callback && callback.timeout){
-                                               window.clearTimeout(oConn._timeOut[o.tId]);
-                                               delete oConn._timeOut[o.tId];
-                                       }
-
-                                       // Fire global custom event -- completeEvent
-                                       oConn.completeEvent.fire(o, args);
-
-                                       if(o.completeEvent){
-                                               // Fire transaction custom event -- completeEvent
-                                               o.completeEvent.fire(o, args);
-                                       }
-
-                                       oConn.handleTransactionResponse(o, callback);
-                               }
-                       }
-               ,this._polling_interval);
-    },
-
-  /**
-   * @description This method attempts to interpret the server response and
-   * determine whether the transaction was successful, or if an error or
-   * exception was encountered.
-   * @method handleTransactionResponse
-   * @private
-   * @static
-   * @param {object} o The connection object
-   * @param {object} callback The user-defined callback object
-   * @param {boolean} isAbort Determines if the transaction was terminated via abort().
-   * @return {void}
-   */
-    handleTransactionResponse:function(o, callback, isAbort)
-    {
-               var httpStatus, responseObject,
-                       args = (callback && callback.argument)?callback.argument:null,
-                       xdrS = (o.r && o.r.statusText === 'xdr:success')?true:false,
-                       xdrF = (o.r && o.r.statusText === 'xdr:failure')?true:false,
-                       xdrA = isAbort;
-
-               try
-               {
-                       if((o.conn.status !== undefined && o.conn.status !== 0) || xdrS){
-                               // XDR requests will not have HTTP status defined. The
-                               // statusText property will define the response status
-                               // set by the Flash transport.
-                               httpStatus = o.conn.status;
-                       }
-                       else if(xdrF && !xdrA){
-                               // Set XDR transaction failure to a status of 0, which
-                               // resolves as an HTTP failure, instead of an exception.
-                               httpStatus = 0;
-                       }
-                       else{
-                               httpStatus = 13030;
-                       }
-               }
-               catch(e){
-
-                        // 13030 is a custom code to indicate the condition -- in Mozilla/FF --
-                        // when the XHR object's status and statusText properties are
-                        // unavailable, and a query attempt throws an exception.
-                       httpStatus = 13030;
-               }
-
-               if((httpStatus >= 200 && httpStatus < 300) || httpStatus === 1223 || xdrS){
-                       responseObject = o.xdr ? o.r : this.createResponseObject(o, args);
-                       if(callback && callback.success){
-                               if(!callback.scope){
-                                       callback.success(responseObject);
-                                       YAHOO.log('Success callback. HTTP code is ' + httpStatus, 'info', 'Connection');
-                               }
-                               else{
-                                       // If a scope property is defined, the callback will be fired from
-                                       // the context of the object.
-                                       callback.success.apply(callback.scope, [responseObject]);
-                                       YAHOO.log('Success callback with scope. HTTP code is ' + httpStatus, 'info', 'Connection');
-                               }
-                       }
-
-                       // Fire global custom event -- successEvent
-                       this.successEvent.fire(responseObject);
-
-                       if(o.successEvent){
-                               // Fire transaction custom event -- successEvent
-                               o.successEvent.fire(responseObject);
-                       }
-               }
-               else{
-                       switch(httpStatus){
-                               // The following cases are wininet.dll error codes that may be encountered.
-                               case 12002: // Server timeout
-                               case 12029: // 12029 to 12031 correspond to dropped connections.
-                               case 12030:
-                               case 12031:
-                               case 12152: // Connection closed by server.
-                               case 13030: // See above comments for variable status.
-                                       // XDR transactions will not resolve to this case, since the
-                                       // response object is already built in the xdr response.
-                                       responseObject = this.createExceptionObject(o.tId, args, (isAbort?isAbort:false));
-                                       if(callback && callback.failure){
-                                               if(!callback.scope){
-                                                       callback.failure(responseObject);
-                                                       YAHOO.log('Failure callback. Exception detected. Status code is ' + httpStatus, 'warn', 'Connection');
-                                               }
-                                               else{
-                                                       callback.failure.apply(callback.scope, [responseObject]);
-                                                       YAHOO.log('Failure callback with scope. Exception detected. Status code is ' + httpStatus, 'warn', 'Connection');
-                                               }
-                                       }
-
-                                       break;
-                               default:
-                                       responseObject = (o.xdr) ? o.response : this.createResponseObject(o, args);
-                                       if(callback && callback.failure){
-                                               if(!callback.scope){
-                                                       callback.failure(responseObject);
-                                                       YAHOO.log('Failure callback. HTTP status code is ' + httpStatus, 'warn', 'Connection');
-                                               }
-                                               else{
-                                                       callback.failure.apply(callback.scope, [responseObject]);
-                                                       YAHOO.log('Failure callback with scope. HTTP status code is ' + httpStatus, 'warn', 'Connection');
-                                               }
-                                       }
-                       }
-
-                       // Fire global custom event -- failureEvent
-                       this.failureEvent.fire(responseObject);
-
-                       if(o.failureEvent){
-                               // Fire transaction custom event -- failureEvent
-                               o.failureEvent.fire(responseObject);
-                       }
-
-               }
-
-               this.releaseObject(o);
-               responseObject = null;
-    },
-
-  /**
-   * @description This method evaluates the server response, creates and returns the results via
-   * its properties.  Success and failure cases will differ in the response
-   * object's property values.
-   * @method createResponseObject
-   * @private
-   * @static
-   * @param {object} o The connection object
-   * @param {callbackArg} callbackArg The user-defined argument or arguments to be passed to the callback
-   * @return {object}
-   */
-    createResponseObject:function(o, callbackArg)
-    {
-               var obj = {}, headerObj = {},
-                       i, headerStr, header, delimitPos;
-
-               try
-               {
-                       headerStr = o.conn.getAllResponseHeaders();
-                       header = headerStr.split('\n');
-                       for(i=0; i<header.length; i++){
-                               delimitPos = header[i].indexOf(':');
-                               if(delimitPos != -1){
-                                       headerObj[header[i].substring(0,delimitPos)] = YAHOO.lang.trim(header[i].substring(delimitPos+2));
-                               }
-                       }
-               }
-               catch(e){}
-
-               obj.tId = o.tId;
-               // Normalize IE's response to HTTP 204 when Win error 1223.
-               obj.status = (o.conn.status == 1223)?204:o.conn.status;
-               // Normalize IE's statusText to "No Content" instead of "Unknown".
-               obj.statusText = (o.conn.status == 1223)?"No Content":o.conn.statusText;
-               obj.getResponseHeader = headerObj;
-               obj.getAllResponseHeaders = headerStr;
-               obj.responseText = o.conn.responseText;
-               obj.responseXML = o.conn.responseXML;
-
-               if(callbackArg){
-                       obj.argument = callbackArg;
-               }
-
-               return obj;
-    },
-
-  /**
-   * @description If a transaction cannot be completed due to dropped or closed connections,
-   * there may be not be enough information to build a full response object.
-   * The failure callback will be fired and this specific condition can be identified
-   * by a status property value of 0.
-   *
-   * If an abort was successful, the status property will report a value of -1.
-   *
-   * @method createExceptionObject
-   * @private
-   * @static
-   * @param {int} tId The Transaction Id
-   * @param {callbackArg} callbackArg The user-defined argument or arguments to be passed to the callback
-   * @param {boolean} isAbort Determines if the exception case is caused by a transaction abort
-   * @return {object}
-   */
-    createExceptionObject:function(tId, callbackArg, isAbort)
-    {
-               var COMM_CODE = 0,
-                       COMM_ERROR = 'communication failure',
-                       ABORT_CODE = -1,
-                       ABORT_ERROR = 'transaction aborted',
-                       obj = {};
-
-               obj.tId = tId;
-               if(isAbort){
-                       obj.status = ABORT_CODE;
-                       obj.statusText = ABORT_ERROR;
-               }
-               else{
-                       obj.status = COMM_CODE;
-                       obj.statusText = COMM_ERROR;
-               }
-
-               if(callbackArg){
-                       obj.argument = callbackArg;
-               }
-
-               return obj;
-    },
-
-  /**
-   * @description Method that initializes the custom HTTP headers for the each transaction.
-   * @method initHeader
-   * @public
-   * @static
-   * @param {string} label The HTTP header label
-   * @param {string} value The HTTP header value
-   * @param {string} isDefault Determines if the specific header is a default header
-   * automatically sent with each transaction.
-   * @return {void}
-   */
-       initHeader:function(label, value, isDefault)
-       {
-               var headerObj = (isDefault)?this._default_headers:this._http_headers;
-
-               headerObj[label] = value;
-               if(isDefault){
-                       this._has_default_headers = true;
-               }
-               else{
-                       this._has_http_headers = true;
-               }
-       },
-
-
-  /**
-   * @description Accessor that sets the HTTP headers for each transaction.
-   * @method setHeader
-   * @private
-   * @static
-   * @param {object} o The connection object for the transaction.
-   * @return {void}
-   */
-       setHeader:function(o)
-       {
-               var prop;
-               if(this._has_default_headers){
-                       for(prop in this._default_headers){
-                               if(YAHOO.lang.hasOwnProperty(this._default_headers, prop)){
-                                       o.conn.setRequestHeader(prop, this._default_headers[prop]);
-                                       YAHOO.log('Default HTTP header ' + prop + ' set with value of ' + this._default_headers[prop], 'info', 'Connection');
-                               }
-                       }
-               }
-
-               if(this._has_http_headers){
-                       for(prop in this._http_headers){
-                               if(YAHOO.lang.hasOwnProperty(this._http_headers, prop)){
-                                       o.conn.setRequestHeader(prop, this._http_headers[prop]);
-                                       YAHOO.log('HTTP header ' + prop + ' set with value of ' + this._http_headers[prop], 'info', 'Connection');
-                               }
-                       }
-
-                       this._http_headers = {};
-                       this._has_http_headers = false;
-               }
-       },
-
-  /**
-   * @description Resets the default HTTP headers object
-   * @method resetDefaultHeaders
-   * @public
-   * @static
-   * @return {void}
-   */
-       resetDefaultHeaders:function(){
-               this._default_headers = {};
-               this._has_default_headers = false;
-       },
-
-  /**
-   * @description Method to terminate a transaction, if it has not reached readyState 4.
-   * @method abort
-   * @public
-   * @static
-   * @param {object} o The connection object returned by asyncRequest.
-   * @param {object} callback  User-defined callback object.
-   * @param {string} isTimeout boolean to indicate if abort resulted from a callback timeout.
-   * @return {boolean}
-   */
-       abort:function(o, callback, isTimeout)
-       {
-               var abortStatus,
-                       args = (callback && callback.argument)?callback.argument:null;
-                       o = o || {};
-
-               if(o.conn){
-                       if(o.xhr){
-                               if(this.isCallInProgress(o)){
-                                       // Issue abort request
-                                       o.conn.abort();
-
-                                       window.clearInterval(this._poll[o.tId]);
-                                       delete this._poll[o.tId];
-
-                                       if(isTimeout){
-                                               window.clearTimeout(this._timeOut[o.tId]);
-                                               delete this._timeOut[o.tId];
-                                       }
-
-                                       abortStatus = true;
-                               }
-                       }
-                       else if(o.xdr){
-                               o.conn.abort(o.tId);
-                               abortStatus = true;
-                       }
-               }
-               else if(o.upload){
-                       var frameId = 'yuiIO' + o.tId;
-                       var io = document.getElementById(frameId);
-
-                       if(io){
-                               // Remove all listeners on the iframe prior to
-                               // its destruction.
-                               YAHOO.util.Event.removeListener(io, "load");
-                               // Destroy the iframe facilitating the transaction.
-                               document.body.removeChild(io);
-                               YAHOO.log('File upload iframe destroyed. Id is:' + frameId, 'info', 'Connection');
-
-                               if(isTimeout){
-                                       window.clearTimeout(this._timeOut[o.tId]);
-                                       delete this._timeOut[o.tId];
-                               }
-
-                               abortStatus = true;
-                       }
-               }
-               else{
-                       abortStatus = false;
-               }
-
-               if(abortStatus === true){
-                       // Fire global custom event -- abortEvent
-                       this.abortEvent.fire(o, args);
-
-                       if(o.abortEvent){
-                               // Fire transaction custom event -- abortEvent
-                               o.abortEvent.fire(o, args);
-                       }
-
-                       this.handleTransactionResponse(o, callback, true);
-                       YAHOO.log('Transaction ' + o.tId + ' aborted.', 'info', 'Connection');
-               }
-
-               return abortStatus;
-       },
-
-  /**
-   * @description Determines if the transaction is still being processed.
-   * @method isCallInProgress
-   * @public
-   * @static
-   * @param {object} o The connection object returned by asyncRequest
-   * @return {boolean}
-   */
-       isCallInProgress:function(o)
-       {
-               o = o || {};
-               // if the XHR object assigned to the transaction has not been dereferenced,
-               // then check its readyState status.  Otherwise, return false.
-               if(o.xhr && o.conn){
-                       return o.conn.readyState !== 4 && o.conn.readyState !== 0;
-               }
-               else if(o.xdr && o.conn){
-                       return o.conn.isCallInProgress(o.tId);
-               }
-               else if(o.upload === true){
-                       return document.getElementById('yuiIO' + o.tId)?true:false;
-               }
-               else{
-                       return false;
-               }
-       },
-
-  /**
-   * @description Dereference the XHR instance and the connection object after the transaction is completed.
-   * @method releaseObject
-   * @private
-   * @static
-   * @param {object} o The connection object
-   * @return {void}
-   */
-       releaseObject:function(o)
-       {
-               if(o && o.conn){
-                       //dereference the XHR instance.
-                       o.conn = null;
-
-                       YAHOO.log('Connection object for transaction ' + o.tId + ' destroyed.', 'info', 'Connection');
-
-                       //dereference the connection object.
-                       o = null;
-               }
-       }
-};
-
-YAHOO.register("connection_core", YAHOO.util.Connect, {version: "2.8.0r4", build: "2449"});
diff --git a/koha-tmpl/intranet-tmpl/prog/en/lib/yui/connection/connection_core-min.js b/koha-tmpl/intranet-tmpl/prog/en/lib/yui/connection/connection_core-min.js
deleted file mode 100644 (file)
index 4083afd..0000000
+++ /dev/null
@@ -1,8 +0,0 @@
-/*
-Copyright (c) 2009, Yahoo! Inc. All rights reserved.
-Code licensed under the BSD License:
-http://developer.yahoo.net/yui/license.txt
-version: 2.8.0r4
-*/
-YAHOO.util.Connect={_msxml_progid:["Microsoft.XMLHTTP","MSXML2.XMLHTTP.3.0","MSXML2.XMLHTTP"],_http_headers:{},_has_http_headers:false,_use_default_post_header:true,_default_post_header:"application/x-www-form-urlencoded; charset=UTF-8",_default_form_header:"application/x-www-form-urlencoded",_use_default_xhr_header:true,_default_xhr_header:"XMLHttpRequest",_has_default_headers:true,_default_headers:{},_poll:{},_timeOut:{},_polling_interval:50,_transaction_id:0,startEvent:new YAHOO.util.CustomEvent("start"),completeEvent:new YAHOO.util.CustomEvent("complete"),successEvent:new YAHOO.util.CustomEvent("success"),failureEvent:new YAHOO.util.CustomEvent("failure"),abortEvent:new YAHOO.util.CustomEvent("abort"),_customEvents:{onStart:["startEvent","start"],onComplete:["completeEvent","complete"],onSuccess:["successEvent","success"],onFailure:["failureEvent","failure"],onUpload:["uploadEvent","upload"],onAbort:["abortEvent","abort"]},setProgId:function(A){this._msxml_progid.unshift(A);},setDefaultPostHeader:function(A){if(typeof A=="string"){this._default_post_header=A;}else{if(typeof A=="boolean"){this._use_default_post_header=A;}}},setDefaultXhrHeader:function(A){if(typeof A=="string"){this._default_xhr_header=A;}else{this._use_default_xhr_header=A;}},setPollingInterval:function(A){if(typeof A=="number"&&isFinite(A)){this._polling_interval=A;}},createXhrObject:function(F){var D,A,B;try{A=new XMLHttpRequest();D={conn:A,tId:F,xhr:true};}catch(C){for(B=0;B<this._msxml_progid.length;++B){try{A=new ActiveXObject(this._msxml_progid[B]);D={conn:A,tId:F,xhr:true};break;}catch(E){}}}finally{return D;}},getConnectionObject:function(A){var C,D=this._transaction_id;try{if(!A){C=this.createXhrObject(D);}else{C={tId:D};if(A==="xdr"){C.conn=this._transport;C.xdr=true;}else{if(A==="upload"){C.upload=true;}}}if(C){this._transaction_id++;}}catch(B){}return C;},asyncRequest:function(G,D,F,A){var E,C,B=(F&&F.argument)?F.argument:null;if(this._isFileUpload){C="upload";}else{if(F.xdr){C="xdr";}}E=this.getConnectionObject(C);if(!E){return null;}else{if(F&&F.customevents){this.initCustomEvents(E,F);}if(this._isFormSubmit){if(this._isFileUpload){this.uploadFile(E,F,D,A);return E;}if(G.toUpperCase()=="GET"){if(this._sFormData.length!==0){D+=((D.indexOf("?")==-1)?"?":"&")+this._sFormData;}}else{if(G.toUpperCase()=="POST"){A=A?this._sFormData+"&"+A:this._sFormData;}}}if(G.toUpperCase()=="GET"&&(F&&F.cache===false)){D+=((D.indexOf("?")==-1)?"?":"&")+"rnd="+new Date().valueOf().toString();}if(this._use_default_xhr_header){if(!this._default_headers["X-Requested-With"]){this.initHeader("X-Requested-With",this._default_xhr_header,true);}}if((G.toUpperCase()==="POST"&&this._use_default_post_header)&&this._isFormSubmit===false){this.initHeader("Content-Type",this._default_post_header);}if(E.xdr){this.xdr(E,G,D,F,A);return E;}E.conn.open(G,D,true);if(this._has_default_headers||this._has_http_headers){this.setHeader(E);}this.handleReadyState(E,F);E.conn.send(A||"");if(this._isFormSubmit===true){this.resetFormState();}this.startEvent.fire(E,B);if(E.startEvent){E.startEvent.fire(E,B);}return E;}},initCustomEvents:function(A,C){var B;for(B in C.customevents){if(this._customEvents[B][0]){A[this._customEvents[B][0]]=new YAHOO.util.CustomEvent(this._customEvents[B][1],(C.scope)?C.scope:null);A[this._customEvents[B][0]].subscribe(C.customevents[B]);}}},handleReadyState:function(C,D){var B=this,A=(D&&D.argument)?D.argument:null;if(D&&D.timeout){this._timeOut[C.tId]=window.setTimeout(function(){B.abort(C,D,true);},D.timeout);}this._poll[C.tId]=window.setInterval(function(){if(C.conn&&C.conn.readyState===4){window.clearInterval(B._poll[C.tId]);delete B._poll[C.tId];if(D&&D.timeout){window.clearTimeout(B._timeOut[C.tId]);delete B._timeOut[C.tId];}B.completeEvent.fire(C,A);if(C.completeEvent){C.completeEvent.fire(C,A);}B.handleTransactionResponse(C,D);}},this._polling_interval);},handleTransactionResponse:function(B,I,D){var E,A,G=(I&&I.argument)?I.argument:null,C=(B.r&&B.r.statusText==="xdr:success")?true:false,H=(B.r&&B.r.statusText==="xdr:failure")?true:false,J=D;try{if((B.conn.status!==undefined&&B.conn.status!==0)||C){E=B.conn.status;}else{if(H&&!J){E=0;}else{E=13030;}}}catch(F){E=13030;}if((E>=200&&E<300)||E===1223||C){A=B.xdr?B.r:this.createResponseObject(B,G);if(I&&I.success){if(!I.scope){I.success(A);}else{I.success.apply(I.scope,[A]);}}this.successEvent.fire(A);if(B.successEvent){B.successEvent.fire(A);}}else{switch(E){case 12002:case 12029:case 12030:case 12031:case 12152:case 13030:A=this.createExceptionObject(B.tId,G,(D?D:false));if(I&&I.failure){if(!I.scope){I.failure(A);}else{I.failure.apply(I.scope,[A]);}}break;default:A=(B.xdr)?B.response:this.createResponseObject(B,G);if(I&&I.failure){if(!I.scope){I.failure(A);}else{I.failure.apply(I.scope,[A]);}}}this.failureEvent.fire(A);if(B.failureEvent){B.failureEvent.fire(A);}}this.releaseObject(B);A=null;},createResponseObject:function(A,G){var D={},I={},E,C,F,B;try{C=A.conn.getAllResponseHeaders();F=C.split("\n");for(E=0;E<F.length;E++){B=F[E].indexOf(":");if(B!=-1){I[F[E].substring(0,B)]=YAHOO.lang.trim(F[E].substring(B+2));}}}catch(H){}D.tId=A.tId;D.status=(A.conn.status==1223)?204:A.conn.status;D.statusText=(A.conn.status==1223)?"No Content":A.conn.statusText;D.getResponseHeader=I;D.getAllResponseHeaders=C;D.responseText=A.conn.responseText;D.responseXML=A.conn.responseXML;if(G){D.argument=G;}return D;},createExceptionObject:function(H,D,A){var F=0,G="communication failure",C=-1,B="transaction aborted",E={};E.tId=H;if(A){E.status=C;E.statusText=B;}else{E.status=F;E.statusText=G;}if(D){E.argument=D;}return E;},initHeader:function(A,D,C){var B=(C)?this._default_headers:this._http_headers;B[A]=D;if(C){this._has_default_headers=true;}else{this._has_http_headers=true;}},setHeader:function(A){var B;if(this._has_default_headers){for(B in this._default_headers){if(YAHOO.lang.hasOwnProperty(this._default_headers,B)){A.conn.setRequestHeader(B,this._default_headers[B]);}}}if(this._has_http_headers){for(B in this._http_headers){if(YAHOO.lang.hasOwnProperty(this._http_headers,B)){A.conn.setRequestHeader(B,this._http_headers[B]);
-}}this._http_headers={};this._has_http_headers=false;}},resetDefaultHeaders:function(){this._default_headers={};this._has_default_headers=false;},abort:function(E,G,A){var D,B=(G&&G.argument)?G.argument:null;E=E||{};if(E.conn){if(E.xhr){if(this.isCallInProgress(E)){E.conn.abort();window.clearInterval(this._poll[E.tId]);delete this._poll[E.tId];if(A){window.clearTimeout(this._timeOut[E.tId]);delete this._timeOut[E.tId];}D=true;}}else{if(E.xdr){E.conn.abort(E.tId);D=true;}}}else{if(E.upload){var C="yuiIO"+E.tId;var F=document.getElementById(C);if(F){YAHOO.util.Event.removeListener(F,"load");document.body.removeChild(F);if(A){window.clearTimeout(this._timeOut[E.tId]);delete this._timeOut[E.tId];}D=true;}}else{D=false;}}if(D===true){this.abortEvent.fire(E,B);if(E.abortEvent){E.abortEvent.fire(E,B);}this.handleTransactionResponse(E,G,true);}return D;},isCallInProgress:function(A){A=A||{};if(A.xhr&&A.conn){return A.conn.readyState!==4&&A.conn.readyState!==0;}else{if(A.xdr&&A.conn){return A.conn.isCallInProgress(A.tId);}else{if(A.upload===true){return document.getElementById("yuiIO"+A.tId)?true:false;}else{return false;}}}},releaseObject:function(A){if(A&&A.conn){A.conn=null;A=null;}}};YAHOO.register("connection_core",YAHOO.util.Connect,{version:"2.8.0r4",build:"2449"});
\ No newline at end of file
diff --git a/koha-tmpl/intranet-tmpl/prog/en/lib/yui/connection/connection_core.js b/koha-tmpl/intranet-tmpl/prog/en/lib/yui/connection/connection_core.js
deleted file mode 100644 (file)
index 6668b63..0000000
+++ /dev/null
@@ -1,957 +0,0 @@
-/*
-Copyright (c) 2009, Yahoo! Inc. All rights reserved.
-Code licensed under the BSD License:
-http://developer.yahoo.net/yui/license.txt
-version: 2.8.0r4
-*/
-/**
- * The Connection Manager provides a simplified interface to the XMLHttpRequest
- * object.  It handles cross-browser instantiantion of XMLHttpRequest, negotiates the
- * interactive states and server response, returning the results to a pre-defined
- * callback you create.
- *
- * @namespace YAHOO.util
- * @module connection
- * @requires yahoo
- * @requires event
- */
-
-/**
- * The Connection Manager singleton provides methods for creating and managing
- * asynchronous transactions.
- *
- * @class Connect
- */
-
-YAHOO.util.Connect =
-{
-  /**
-   * @description Array of MSFT ActiveX ids for XMLHttpRequest.
-   * @property _msxml_progid
-   * @private
-   * @static
-   * @type array
-   */
-       _msxml_progid:[
-               'Microsoft.XMLHTTP',
-               'MSXML2.XMLHTTP.3.0',
-               'MSXML2.XMLHTTP'
-               ],
-
-  /**
-   * @description Object literal of HTTP header(s)
-   * @property _http_header
-   * @private
-   * @static
-   * @type object
-   */
-       _http_headers:{},
-
-  /**
-   * @description Determines if HTTP headers are set.
-   * @property _has_http_headers
-   * @private
-   * @static
-   * @type boolean
-   */
-       _has_http_headers:false,
-
- /**
-  * @description Determines if a default header of
-  * Content-Type of 'application/x-www-form-urlencoded'
-  * will be added to any client HTTP headers sent for POST
-  * transactions.
-  * @property _use_default_post_header
-  * @private
-  * @static
-  * @type boolean
-  */
-    _use_default_post_header:true,
-
- /**
-  * @description The default header used for POST transactions.
-  * @property _default_post_header
-  * @private
-  * @static
-  * @type boolean
-  */
-    _default_post_header:'application/x-www-form-urlencoded; charset=UTF-8',
-
- /**
-  * @description The default header used for transactions involving the
-  * use of HTML forms.
-  * @property _default_form_header
-  * @private
-  * @static
-  * @type boolean
-  */
-    _default_form_header:'application/x-www-form-urlencoded',
-
- /**
-  * @description Determines if a default header of
-  * 'X-Requested-With: XMLHttpRequest'
-  * will be added to each transaction.
-  * @property _use_default_xhr_header
-  * @private
-  * @static
-  * @type boolean
-  */
-    _use_default_xhr_header:true,
-
- /**
-  * @description The default header value for the label
-  * "X-Requested-With".  This is sent with each
-  * transaction, by default, to identify the
-  * request as being made by YUI Connection Manager.
-  * @property _default_xhr_header
-  * @private
-  * @static
-  * @type boolean
-  */
-    _default_xhr_header:'XMLHttpRequest',
-
- /**
-  * @description Determines if custom, default headers
-  * are set for each transaction.
-  * @property _has_default_header
-  * @private
-  * @static
-  * @type boolean
-  */
-    _has_default_headers:true,
-
- /**
-  * @description Determines if custom, default headers
-  * are set for each transaction.
-  * @property _has_default_header
-  * @private
-  * @static
-  * @type boolean
-  */
-    _default_headers:{},
-
- /**
-  * @description Collection of polling references to the polling mechanism in handleReadyState.
-  * @property _poll
-  * @private
-  * @static
-  * @type object
-  */
-    _poll:{},
-
- /**
-  * @description Queue of timeout values for each transaction callback with a defined timeout value.
-  * @property _timeOut
-  * @private
-  * @static
-  * @type object
-  */
-    _timeOut:{},
-
-  /**
-   * @description The polling frequency, in milliseconds, for HandleReadyState.
-   * when attempting to determine a transaction's XHR readyState.
-   * The default is 50 milliseconds.
-   * @property _polling_interval
-   * @private
-   * @static
-   * @type int
-   */
-     _polling_interval:50,
-
-  /**
-   * @description A transaction counter that increments the transaction id for each transaction.
-   * @property _transaction_id
-   * @private
-   * @static
-   * @type int
-   */
-     _transaction_id:0,
-
-  /**
-   * @description Custom event that fires at the start of a transaction
-   * @property startEvent
-   * @private
-   * @static
-   * @type CustomEvent
-   */
-       startEvent: new YAHOO.util.CustomEvent('start'),
-
-  /**
-   * @description Custom event that fires when a transaction response has completed.
-   * @property completeEvent
-   * @private
-   * @static
-   * @type CustomEvent
-   */
-       completeEvent: new YAHOO.util.CustomEvent('complete'),
-
-  /**
-   * @description Custom event that fires when handleTransactionResponse() determines a
-   * response in the HTTP 2xx range.
-   * @property successEvent
-   * @private
-   * @static
-   * @type CustomEvent
-   */
-       successEvent: new YAHOO.util.CustomEvent('success'),
-
-  /**
-   * @description Custom event that fires when handleTransactionResponse() determines a
-   * response in the HTTP 4xx/5xx range.
-   * @property failureEvent
-   * @private
-   * @static
-   * @type CustomEvent
-   */
-       failureEvent: new YAHOO.util.CustomEvent('failure'),
-
-  /**
-   * @description Custom event that fires when a transaction is successfully aborted.
-   * @property abortEvent
-   * @private
-   * @static
-   * @type CustomEvent
-   */
-       abortEvent: new YAHOO.util.CustomEvent('abort'),
-
-  /**
-   * @description A reference table that maps callback custom events members to its specific
-   * event name.
-   * @property _customEvents
-   * @private
-   * @static
-   * @type object
-   */
-       _customEvents:
-       {
-               onStart:['startEvent', 'start'],
-               onComplete:['completeEvent', 'complete'],
-               onSuccess:['successEvent', 'success'],
-               onFailure:['failureEvent', 'failure'],
-               onUpload:['uploadEvent', 'upload'],
-               onAbort:['abortEvent', 'abort']
-       },
-
-  /**
-   * @description Member to add an ActiveX id to the existing xml_progid array.
-   * In the event(unlikely) a new ActiveX id is introduced, it can be added
-   * without internal code modifications.
-   * @method setProgId
-   * @public
-   * @static
-   * @param {string} id The ActiveX id to be added to initialize the XHR object.
-   * @return void
-   */
-       setProgId:function(id)
-       {
-               this._msxml_progid.unshift(id);
-       },
-
-  /**
-   * @description Member to override the default POST header.
-   * @method setDefaultPostHeader
-   * @public
-   * @static
-   * @param {boolean} b Set and use default header - true or false .
-   * @return void
-   */
-       setDefaultPostHeader:function(b)
-       {
-               if(typeof b == 'string'){
-                       this._default_post_header = b;
-               }
-               else if(typeof b == 'boolean'){
-                       this._use_default_post_header = b;
-               }
-       },
-
-  /**
-   * @description Member to override the default transaction header..
-   * @method setDefaultXhrHeader
-   * @public
-   * @static
-   * @param {boolean} b Set and use default header - true or false .
-   * @return void
-   */
-       setDefaultXhrHeader:function(b)
-       {
-               if(typeof b == 'string'){
-                       this._default_xhr_header = b;
-               }
-               else{
-                       this._use_default_xhr_header = b;
-               }
-       },
-
-  /**
-   * @description Member to modify the default polling interval.
-   * @method setPollingInterval
-   * @public
-   * @static
-   * @param {int} i The polling interval in milliseconds.
-   * @return void
-   */
-       setPollingInterval:function(i)
-       {
-               if(typeof i == 'number' && isFinite(i)){
-                       this._polling_interval = i;
-               }
-       },
-
-  /**
-   * @description Instantiates a XMLHttpRequest object and returns an object with two properties:
-   * the XMLHttpRequest instance and the transaction id.
-   * @method createXhrObject
-   * @private
-   * @static
-   * @param {int} transactionId Property containing the transaction id for this transaction.
-   * @return object
-   */
-       createXhrObject:function(transactionId)
-       {
-               var obj,http,i;
-               try
-               {
-                       // Instantiates XMLHttpRequest in non-IE browsers and assigns to http.
-                       http = new XMLHttpRequest();
-                       //  Object literal with http and tId properties
-                       obj = { conn:http, tId:transactionId, xhr: true };
-               }
-               catch(e)
-               {
-                       for(i=0; i<this._msxml_progid.length; ++i){
-                               try
-                               {
-                                       // Instantiates XMLHttpRequest for IE and assign to http
-                                       http = new ActiveXObject(this._msxml_progid[i]);
-                                       //  Object literal with conn and tId properties
-                                       obj = { conn:http, tId:transactionId, xhr: true };
-                                       break;
-                               }
-                               catch(e1){}
-                       }
-               }
-               finally
-               {
-                       return obj;
-               }
-       },
-
-  /**
-   * @description This method is called by asyncRequest to create a
-   * valid connection object for the transaction.  It also passes a
-   * transaction id and increments the transaction id counter.
-   * @method getConnectionObject
-   * @private
-   * @static
-   * @return {object}
-   */
-       getConnectionObject:function(t)
-       {
-               var o, tId = this._transaction_id;
-
-               try
-               {
-                       if(!t){
-                               o = this.createXhrObject(tId);
-                       }
-                       else{
-                               o = {tId:tId};
-                               if(t==='xdr'){
-                                       o.conn = this._transport;
-                                       o.xdr = true;
-                               }
-                               else if(t==='upload'){
-                                       o.upload = true;
-                               }
-                       }
-
-                       if(o){
-                               this._transaction_id++;
-                       }
-               }
-               catch(e){}
-               return o;
-       },
-
-  /**
-   * @description Method for initiating an asynchronous request via the XHR object.
-   * @method asyncRequest
-   * @public
-   * @static
-   * @param {string} method HTTP transaction method
-   * @param {string} uri Fully qualified path of resource
-   * @param {callback} callback User-defined callback function or object
-   * @param {string} postData POST body
-   * @return {object} Returns the connection object
-   */
-       asyncRequest:function(method, uri, callback, postData)
-       {
-               var o,t,args = (callback && callback.argument)?callback.argument:null;
-
-               if(this._isFileUpload){
-                       t = 'upload';
-               }
-               else if(callback.xdr){
-                       t = 'xdr';
-               }
-
-               o = this.getConnectionObject(t);
-               if(!o){
-                       return null;
-               }
-               else{
-
-                       // Intialize any transaction-specific custom events, if provided.
-                       if(callback && callback.customevents){
-                               this.initCustomEvents(o, callback);
-                       }
-
-                       if(this._isFormSubmit){
-                               if(this._isFileUpload){
-                                       this.uploadFile(o, callback, uri, postData);
-                                       return o;
-                               }
-
-                               // If the specified HTTP method is GET, setForm() will return an
-                               // encoded string that is concatenated to the uri to
-                               // create a querystring.
-                               if(method.toUpperCase() == 'GET'){
-                                       if(this._sFormData.length !== 0){
-                                               // If the URI already contains a querystring, append an ampersand
-                                               // and then concatenate _sFormData to the URI.
-                                               uri += ((uri.indexOf('?') == -1)?'?':'&') + this._sFormData;
-                                       }
-                               }
-                               else if(method.toUpperCase() == 'POST'){
-                                       // If POST data exist in addition to the HTML form data,
-                                       // it will be concatenated to the form data.
-                                       postData = postData?this._sFormData + "&" + postData:this._sFormData;
-                               }
-                       }
-
-                       if(method.toUpperCase() == 'GET' && (callback && callback.cache === false)){
-                               // If callback.cache is defined and set to false, a
-                               // timestamp value will be added to the querystring.
-                               uri += ((uri.indexOf('?') == -1)?'?':'&') + "rnd=" + new Date().valueOf().toString();
-                       }
-
-                       // Each transaction will automatically include a custom header of
-                       // "X-Requested-With: XMLHttpRequest" to identify the request as
-                       // having originated from Connection Manager.
-                       if(this._use_default_xhr_header){
-                               if(!this._default_headers['X-Requested-With']){
-                                       this.initHeader('X-Requested-With', this._default_xhr_header, true);
-                               }
-                       }
-
-                       //If the transaction method is POST and the POST header value is set to true
-                       //or a custom value, initalize the Content-Type header to this value.
-                       if((method.toUpperCase() === 'POST' && this._use_default_post_header) && this._isFormSubmit === false){
-                               this.initHeader('Content-Type', this._default_post_header);
-                       }
-
-                       if(o.xdr){
-                               this.xdr(o, method, uri, callback, postData);
-                               return o;
-                       }
-
-                       o.conn.open(method, uri, true);
-                       //Initialize all default and custom HTTP headers,
-                       if(this._has_default_headers || this._has_http_headers){
-                               this.setHeader(o);
-                       }
-
-                       this.handleReadyState(o, callback);
-                       o.conn.send(postData || '');
-
-                       // Reset the HTML form data and state properties as
-                       // soon as the data are submitted.
-                       if(this._isFormSubmit === true){
-                               this.resetFormState();
-                       }
-
-                       // Fire global custom event -- startEvent
-                       this.startEvent.fire(o, args);
-
-                       if(o.startEvent){
-                               // Fire transaction custom event -- startEvent
-                               o.startEvent.fire(o, args);
-                       }
-
-                       return o;
-               }
-       },
-
-  /**
-   * @description This method creates and subscribes custom events,
-   * specific to each transaction
-   * @method initCustomEvents
-   * @private
-   * @static
-   * @param {object} o The connection object
-   * @param {callback} callback The user-defined callback object
-   * @return {void}
-   */
-       initCustomEvents:function(o, callback)
-       {
-               var prop;
-               // Enumerate through callback.customevents members and bind/subscribe
-               // events that match in the _customEvents table.
-               for(prop in callback.customevents){
-                       if(this._customEvents[prop][0]){
-                               // Create the custom event
-                               o[this._customEvents[prop][0]] = new YAHOO.util.CustomEvent(this._customEvents[prop][1], (callback.scope)?callback.scope:null);
-
-                               // Subscribe the custom event
-                               o[this._customEvents[prop][0]].subscribe(callback.customevents[prop]);
-                       }
-               }
-       },
-
-  /**
-   * @description This method serves as a timer that polls the XHR object's readyState
-   * property during a transaction, instead of binding a callback to the
-   * onreadystatechange event.  Upon readyState 4, handleTransactionResponse
-   * will process the response, and the timer will be cleared.
-   * @method handleReadyState
-   * @private
-   * @static
-   * @param {object} o The connection object
-   * @param {callback} callback The user-defined callback object
-   * @return {void}
-   */
-
-    handleReadyState:function(o, callback)
-
-    {
-               var oConn = this,
-                       args = (callback && callback.argument)?callback.argument:null;
-
-               if(callback && callback.timeout){
-                       this._timeOut[o.tId] = window.setTimeout(function(){ oConn.abort(o, callback, true); }, callback.timeout);
-               }
-
-               this._poll[o.tId] = window.setInterval(
-                       function(){
-                               if(o.conn && o.conn.readyState === 4){
-
-                                       // Clear the polling interval for the transaction
-                                       // and remove the reference from _poll.
-                                       window.clearInterval(oConn._poll[o.tId]);
-                                       delete oConn._poll[o.tId];
-
-                                       if(callback && callback.timeout){
-                                               window.clearTimeout(oConn._timeOut[o.tId]);
-                                               delete oConn._timeOut[o.tId];
-                                       }
-
-                                       // Fire global custom event -- completeEvent
-                                       oConn.completeEvent.fire(o, args);
-
-                                       if(o.completeEvent){
-                                               // Fire transaction custom event -- completeEvent
-                                               o.completeEvent.fire(o, args);
-                                       }
-
-                                       oConn.handleTransactionResponse(o, callback);
-                               }
-                       }
-               ,this._polling_interval);
-    },
-
-  /**
-   * @description This method attempts to interpret the server response and
-   * determine whether the transaction was successful, or if an error or
-   * exception was encountered.
-   * @method handleTransactionResponse
-   * @private
-   * @static
-   * @param {object} o The connection object
-   * @param {object} callback The user-defined callback object
-   * @param {boolean} isAbort Determines if the transaction was terminated via abort().
-   * @return {void}
-   */
-    handleTransactionResponse:function(o, callback, isAbort)
-    {
-               var httpStatus, responseObject,
-                       args = (callback && callback.argument)?callback.argument:null,
-                       xdrS = (o.r && o.r.statusText === 'xdr:success')?true:false,
-                       xdrF = (o.r && o.r.statusText === 'xdr:failure')?true:false,
-                       xdrA = isAbort;
-
-               try
-               {
-                       if((o.conn.status !== undefined && o.conn.status !== 0) || xdrS){
-                               // XDR requests will not have HTTP status defined. The
-                               // statusText property will define the response status
-                               // set by the Flash transport.
-                               httpStatus = o.conn.status;
-                       }
-                       else if(xdrF && !xdrA){
-                               // Set XDR transaction failure to a status of 0, which
-                               // resolves as an HTTP failure, instead of an exception.
-                               httpStatus = 0;
-                       }
-                       else{
-                               httpStatus = 13030;
-                       }
-               }
-               catch(e){
-
-                        // 13030 is a custom code to indicate the condition -- in Mozilla/FF --
-                        // when the XHR object's status and statusText properties are
-                        // unavailable, and a query attempt throws an exception.
-                       httpStatus = 13030;
-               }
-
-               if((httpStatus >= 200 && httpStatus < 300) || httpStatus === 1223 || xdrS){
-                       responseObject = o.xdr ? o.r : this.createResponseObject(o, args);
-                       if(callback && callback.success){
-                               if(!callback.scope){
-                                       callback.success(responseObject);
-                               }
-                               else{
-                                       // If a scope property is defined, the callback will be fired from
-                                       // the context of the object.
-                                       callback.success.apply(callback.scope, [responseObject]);
-                               }
-                       }
-
-                       // Fire global custom event -- successEvent
-                       this.successEvent.fire(responseObject);
-
-                       if(o.successEvent){
-                               // Fire transaction custom event -- successEvent
-                               o.successEvent.fire(responseObject);
-                       }
-               }
-               else{
-                       switch(httpStatus){
-                               // The following cases are wininet.dll error codes that may be encountered.
-                               case 12002: // Server timeout
-                               case 12029: // 12029 to 12031 correspond to dropped connections.
-                               case 12030:
-                               case 12031:
-                               case 12152: // Connection closed by server.
-                               case 13030: // See above comments for variable status.
-                                       // XDR transactions will not resolve to this case, since the
-                                       // response object is already built in the xdr response.
-                                       responseObject = this.createExceptionObject(o.tId, args, (isAbort?isAbort:false));
-                                       if(callback && callback.failure){
-                                               if(!callback.scope){
-                                                       callback.failure(responseObject);
-                                               }
-                                               else{
-                                                       callback.failure.apply(callback.scope, [responseObject]);
-                                               }
-                                       }
-
-                                       break;
-                               default:
-                                       responseObject = (o.xdr) ? o.response : this.createResponseObject(o, args);
-                                       if(callback && callback.failure){
-                                               if(!callback.scope){
-                                                       callback.failure(responseObject);
-                                               }
-                                               else{
-                                                       callback.failure.apply(callback.scope, [responseObject]);
-                                               }
-                                       }
-                       }
-
-                       // Fire global custom event -- failureEvent
-                       this.failureEvent.fire(responseObject);
-
-                       if(o.failureEvent){
-                               // Fire transaction custom event -- failureEvent
-                               o.failureEvent.fire(responseObject);
-                       }
-
-               }
-
-               this.releaseObject(o);
-               responseObject = null;
-    },
-
-  /**
-   * @description This method evaluates the server response, creates and returns the results via
-   * its properties.  Success and failure cases will differ in the response
-   * object's property values.
-   * @method createResponseObject
-   * @private
-   * @static
-   * @param {object} o The connection object
-   * @param {callbackArg} callbackArg The user-defined argument or arguments to be passed to the callback
-   * @return {object}
-   */
-    createResponseObject:function(o, callbackArg)
-    {
-               var obj = {}, headerObj = {},
-                       i, headerStr, header, delimitPos;
-
-               try
-               {
-                       headerStr = o.conn.getAllResponseHeaders();
-                       header = headerStr.split('\n');
-                       for(i=0; i<header.length; i++){
-                               delimitPos = header[i].indexOf(':');
-                               if(delimitPos != -1){
-                                       headerObj[header[i].substring(0,delimitPos)] = YAHOO.lang.trim(header[i].substring(delimitPos+2));
-                               }
-                       }
-               }
-               catch(e){}
-
-               obj.tId = o.tId;
-               // Normalize IE's response to HTTP 204 when Win error 1223.
-               obj.status = (o.conn.status == 1223)?204:o.conn.status;
-               // Normalize IE's statusText to "No Content" instead of "Unknown".
-               obj.statusText = (o.conn.status == 1223)?"No Content":o.conn.statusText;
-               obj.getResponseHeader = headerObj;
-               obj.getAllResponseHeaders = headerStr;
-               obj.responseText = o.conn.responseText;
-               obj.responseXML = o.conn.responseXML;
-
-               if(callbackArg){
-                       obj.argument = callbackArg;
-               }
-
-               return obj;
-    },
-
-  /**
-   * @description If a transaction cannot be completed due to dropped or closed connections,
-   * there may be not be enough information to build a full response object.
-   * The failure callback will be fired and this specific condition can be identified
-   * by a status property value of 0.
-   *
-   * If an abort was successful, the status property will report a value of -1.
-   *
-   * @method createExceptionObject
-   * @private
-   * @static
-   * @param {int} tId The Transaction Id
-   * @param {callbackArg} callbackArg The user-defined argument or arguments to be passed to the callback
-   * @param {boolean} isAbort Determines if the exception case is caused by a transaction abort
-   * @return {object}
-   */
-    createExceptionObject:function(tId, callbackArg, isAbort)
-    {
-               var COMM_CODE = 0,
-                       COMM_ERROR = 'communication failure',
-                       ABORT_CODE = -1,
-                       ABORT_ERROR = 'transaction aborted',
-                       obj = {};
-
-               obj.tId = tId;
-               if(isAbort){
-                       obj.status = ABORT_CODE;
-                       obj.statusText = ABORT_ERROR;
-               }
-               else{
-                       obj.status = COMM_CODE;
-                       obj.statusText = COMM_ERROR;
-               }
-
-               if(callbackArg){
-                       obj.argument = callbackArg;
-               }
-
-               return obj;
-    },
-
-  /**
-   * @description Method that initializes the custom HTTP headers for the each transaction.
-   * @method initHeader
-   * @public
-   * @static
-   * @param {string} label The HTTP header label
-   * @param {string} value The HTTP header value
-   * @param {string} isDefault Determines if the specific header is a default header
-   * automatically sent with each transaction.
-   * @return {void}
-   */
-       initHeader:function(label, value, isDefault)
-       {
-               var headerObj = (isDefault)?this._default_headers:this._http_headers;
-
-               headerObj[label] = value;
-               if(isDefault){
-                       this._has_default_headers = true;
-               }
-               else{
-                       this._has_http_headers = true;
-               }
-       },
-
-
-  /**
-   * @description Accessor that sets the HTTP headers for each transaction.
-   * @method setHeader
-   * @private
-   * @static
-   * @param {object} o The connection object for the transaction.
-   * @return {void}
-   */
-       setHeader:function(o)
-       {
-               var prop;
-               if(this._has_default_headers){
-                       for(prop in this._default_headers){
-                               if(YAHOO.lang.hasOwnProperty(this._default_headers, prop)){
-                                       o.conn.setRequestHeader(prop, this._default_headers[prop]);
-                               }
-                       }
-               }
-
-               if(this._has_http_headers){
-                       for(prop in this._http_headers){
-                               if(YAHOO.lang.hasOwnProperty(this._http_headers, prop)){
-                                       o.conn.setRequestHeader(prop, this._http_headers[prop]);
-                               }
-                       }
-
-                       this._http_headers = {};
-                       this._has_http_headers = false;
-               }
-       },
-
-  /**
-   * @description Resets the default HTTP headers object
-   * @method resetDefaultHeaders
-   * @public
-   * @static
-   * @return {void}
-   */
-       resetDefaultHeaders:function(){
-               this._default_headers = {};
-               this._has_default_headers = false;
-       },
-
-  /**
-   * @description Method to terminate a transaction, if it has not reached readyState 4.
-   * @method abort
-   * @public
-   * @static
-   * @param {object} o The connection object returned by asyncRequest.
-   * @param {object} callback  User-defined callback object.
-   * @param {string} isTimeout boolean to indicate if abort resulted from a callback timeout.
-   * @return {boolean}
-   */
-       abort:function(o, callback, isTimeout)
-       {
-               var abortStatus,
-                       args = (callback && callback.argument)?callback.argument:null;
-                       o = o || {};
-
-               if(o.conn){
-                       if(o.xhr){
-                               if(this.isCallInProgress(o)){
-                                       // Issue abort request
-                                       o.conn.abort();
-
-                                       window.clearInterval(this._poll[o.tId]);
-                                       delete this._poll[o.tId];
-
-                                       if(isTimeout){
-                                               window.clearTimeout(this._timeOut[o.tId]);
-                                               delete this._timeOut[o.tId];
-                                       }
-
-                                       abortStatus = true;
-                               }
-                       }
-                       else if(o.xdr){
-                               o.conn.abort(o.tId);
-                               abortStatus = true;
-                       }
-               }
-               else if(o.upload){
-                       var frameId = 'yuiIO' + o.tId;
-                       var io = document.getElementById(frameId);
-
-                       if(io){
-                               // Remove all listeners on the iframe prior to
-                               // its destruction.
-                               YAHOO.util.Event.removeListener(io, "load");
-                               // Destroy the iframe facilitating the transaction.
-                               document.body.removeChild(io);
-
-                               if(isTimeout){
-                                       window.clearTimeout(this._timeOut[o.tId]);
-                                       delete this._timeOut[o.tId];
-                               }
-
-                               abortStatus = true;
-                       }
-               }
-               else{
-                       abortStatus = false;
-               }
-
-               if(abortStatus === true){
-                       // Fire global custom event -- abortEvent
-                       this.abortEvent.fire(o, args);
-
-                       if(o.abortEvent){
-                               // Fire transaction custom event -- abortEvent
-                               o.abortEvent.fire(o, args);
-                       }
-
-                       this.handleTransactionResponse(o, callback, true);
-               }
-
-               return abortStatus;
-       },
-
-  /**
-   * @description Determines if the transaction is still being processed.
-   * @method isCallInProgress
-   * @public
-   * @static
-   * @param {object} o The connection object returned by asyncRequest
-   * @return {boolean}
-   */
-       isCallInProgress:function(o)
-       {
-               o = o || {};
-               // if the XHR object assigned to the transaction has not been dereferenced,
-               // then check its readyState status.  Otherwise, return false.
-               if(o.xhr && o.conn){
-                       return o.conn.readyState !== 4 && o.conn.readyState !== 0;
-               }
-               else if(o.xdr && o.conn){
-                       return o.conn.isCallInProgress(o.tId);
-               }
-               else if(o.upload === true){
-                       return document.getElementById('yuiIO' + o.tId)?true:false;
-               }
-               else{
-                       return false;
-               }
-       },
-
-  /**
-   * @description Dereference the XHR instance and the connection object after the transaction is completed.
-   * @method releaseObject
-   * @private
-   * @static
-   * @param {object} o The connection object
-   * @return {void}
-   */
-       releaseObject:function(o)
-       {
-               if(o && o.conn){
-                       //dereference the XHR instance.
-                       o.conn = null;
-
-
-                       //dereference the connection object.
-                       o = null;
-               }
-       }
-};
-
-YAHOO.register("connection_core", YAHOO.util.Connect, {version: "2.8.0r4", build: "2449"});
diff --git a/koha-tmpl/intranet-tmpl/prog/en/lib/yui/cookie/cookie-debug.js b/koha-tmpl/intranet-tmpl/prog/en/lib/yui/cookie/cookie-debug.js
deleted file mode 100644 (file)
index 4ec1093..0000000
+++ /dev/null
@@ -1,482 +0,0 @@
-/*
-Copyright (c) 2009, Yahoo! Inc. All rights reserved.
-Code licensed under the BSD License:
-http://developer.yahoo.net/yui/license.txt
-version: 2.8.0r4
-*/
-/**
- * Utilities for cookie management
- * @namespace YAHOO.util
- * @module cookie
- */
-YAHOO.namespace("util");
-
-/**
- * Cookie utility.
- * @class Cookie
- * @static
- */
-YAHOO.util.Cookie = {
-    
-    //-------------------------------------------------------------------------
-    // Private Methods
-    //-------------------------------------------------------------------------
-    
-    /**
-     * Creates a cookie string that can be assigned into document.cookie.
-     * @param {String} name The name of the cookie.
-     * @param {String} value The value of the cookie.
-     * @param {Boolean} encodeValue True to encode the value, false to leave as-is.
-     * @param {Object} options (Optional) Options for the cookie.
-     * @return {String} The formatted cookie string.
-     * @method _createCookieString
-     * @private
-     * @static
-     */
-    _createCookieString : function (name /*:String*/, value /*:Variant*/, encodeValue /*:Boolean*/, options /*:Object*/) /*:String*/ {
-        
-        //shortcut
-        var lang = YAHOO.lang,
-            text = encodeURIComponent(name) + "=" + (encodeValue ? encodeURIComponent(value) : value);
-        
-        
-        if (lang.isObject(options)){
-            //expiration date
-            if (options.expires instanceof Date){
-                text += "; expires=" + options.expires.toUTCString();
-            }
-            
-            //path
-            if (lang.isString(options.path) && options.path !== ""){
-                text += "; path=" + options.path;
-            }
-            
-            //domain
-            if (lang.isString(options.domain) && options.domain !== ""){
-                text += "; domain=" + options.domain;
-            }
-            
-            //secure
-            if (options.secure === true){
-                text += "; secure";
-            }
-        }
-        
-        return text;
-    },
-    
-    /**
-     * Formats a cookie value for an object containing multiple values.
-     * @param {Object} hash An object of key-value pairs to create a string for.
-     * @return {String} A string suitable for use as a cookie value.
-     * @method _createCookieHashString
-     * @private
-     * @static
-     */
-    _createCookieHashString : function (hash /*:Object*/) /*:String*/ {
-        
-        //shortcuts
-        var lang = YAHOO.lang;
-        
-        if (!lang.isObject(hash)){
-            throw new TypeError("Cookie._createCookieHashString(): Argument must be an object.");
-        }
-        
-        var text /*:Array*/ = [];
-        
-        for (var key in hash){
-            if (lang.hasOwnProperty(hash, key) && !lang.isFunction(hash[key]) && !lang.isUndefined(hash[key])){
-                text.push(encodeURIComponent(key) + "=" + encodeURIComponent(String(hash[key])));
-            }
-        }
-        
-        return text.join("&");
-    },
-    
-    /**
-     * Parses a cookie hash string into an object.
-     * @param {String} text The cookie hash string to parse. The string should already be URL-decoded.
-     * @return {Object} An object containing entries for each cookie value.
-     * @method _parseCookieHash
-     * @private
-     * @static
-     */
-    _parseCookieHash : function (text /*:String*/) /*:Object*/ {
-        
-        var hashParts /*:Array*/ = text.split("&"),
-            hashPart /*:Array*/ = null,
-            hash /*:Object*/ = {};
-        
-        if (text.length > 0){
-            for (var i=0, len=hashParts.length; i < len; i++){
-                hashPart = hashParts[i].split("=");
-                hash[decodeURIComponent(hashPart[0])] = decodeURIComponent(hashPart[1]);
-            }
-        }
-        
-        return hash;
-    },
-    
-    /**
-     * Parses a cookie string into an object representing all accessible cookies.
-     * @param {String} text The cookie string to parse.
-     * @param {Boolean} decode (Optional) Indicates if the cookie values should be decoded or not. Default is true.
-     * @return {Object} An object containing entries for each accessible cookie.
-     * @method _parseCookieString
-     * @private
-     * @static
-     */
-    _parseCookieString : function (text /*:String*/, decode /*:Boolean*/) /*:Object*/ {
-        
-        var cookies /*:Object*/ = {};
-        
-        if (YAHOO.lang.isString(text) && text.length > 0) {
-            
-            var decodeValue = (decode === false ? function(s){return s;} : decodeURIComponent);
-            
-            //if (/[^=]+=[^=;]?(?:; [^=]+=[^=]?)?/.test(text)){
-                var cookieParts /*:Array*/ = text.split(/;\s/g),
-                    cookieName /*:String*/ = null,
-                    cookieValue /*:String*/ = null,
-                    cookieNameValue /*:Array*/ = null;
-                
-                for (var i=0, len=cookieParts.length; i < len; i++){
-                    
-                    //check for normally-formatted cookie (name-value)
-                    cookieNameValue = cookieParts[i].match(/([^=]+)=/i);
-                    if (cookieNameValue instanceof Array){
-                        try {
-                            cookieName = decodeURIComponent(cookieNameValue[1]);
-                            cookieValue = decodeValue(cookieParts[i].substring(cookieNameValue[1].length+1));
-                        } catch (ex){
-                            //ignore the entire cookie - encoding is likely invalid
-                        }
-                    } else {
-                        //means the cookie does not have an "=", so treat it as a boolean flag
-                        cookieName = decodeURIComponent(cookieParts[i]);
-                        cookieValue = "";
-                    }
-                    cookies[cookieName] = cookieValue;
-                }
-            //}
-        }
-        
-        return cookies;
-    },
-    
-    //-------------------------------------------------------------------------
-    // Public Methods
-    //-------------------------------------------------------------------------
-    
-    /**
-     * Determines if the cookie with the given name exists. This is useful for
-     * Boolean cookies (those that do not follow the name=value convention).
-     * @param {String} name The name of the cookie to check.
-     * @return {Boolean} True if the cookie exists, false if not.
-     * @method exists
-     * @static
-     */
-    exists: function(name) {
-
-        if (!YAHOO.lang.isString(name) || name === ""){
-            throw new TypeError("Cookie.exists(): Cookie name must be a non-empty string.");
-        }
-
-        var cookies /*:Object*/ = this._parseCookieString(document.cookie, true);
-        
-        return cookies.hasOwnProperty(name);
-    },
-    
-    /**
-     * Returns the cookie value for the given name.
-     * @param {String} name The name of the cookie to retrieve.
-     * @param {Object|Function} options (Optional) An object containing one or more
-     *      cookie options: raw (true/false) and converter (a function).
-     *      The converter function is run on the value before returning it. The
-     *      function is not used if the cookie doesn't exist. The function can be
-     *      passed instead of the options object for backwards compatibility.
-     * @return {Variant} If no converter is specified, returns a string or null if
-     *      the cookie doesn't exist. If the converter is specified, returns the value
-     *      returned from the converter or null if the cookie doesn't exist.
-     * @method get
-     * @static
-     */
-    get : function (name /*:String*/, options /*:Variant*/) /*:Variant*/{
-        
-        var lang = YAHOO.lang,
-            converter;
-        
-        if (lang.isFunction(options)) {
-            converter = options;
-            options = {};
-        } else if (lang.isObject(options)) {
-            converter = options.converter;
-        } else {
-            options = {};
-        }
-        
-        var cookies /*:Object*/ = this._parseCookieString(document.cookie, !options.raw);
-        
-        if (!lang.isString(name) || name === ""){
-            throw new TypeError("Cookie.get(): Cookie name must be a non-empty string.");
-        }
-        
-        if (lang.isUndefined(cookies[name])) {
-            return null;
-        }
-        
-        if (!lang.isFunction(converter)){
-            return cookies[name];
-        } else {
-            return converter(cookies[name]);
-        }
-    },
-    
-    /**
-     * Returns the value of a subcookie.
-     * @param {String} name The name of the cookie to retrieve.
-     * @param {String} subName The name of the subcookie to retrieve.
-     * @param {Function} converter (Optional) A function to run on the value before returning
-     *      it. The function is not used if the cookie doesn't exist.
-     * @return {Variant} If the cookie doesn't exist, null is returned. If the subcookie
-     *      doesn't exist, null if also returned. If no converter is specified and the
-     *      subcookie exists, a string is returned. If a converter is specified and the
-     *      subcookie exists, the value returned from the converter is returned.
-     * @method getSub
-     * @static
-     */
-    getSub : function (name, subName, converter) {
-        
-        var lang = YAHOO.lang,
-            hash = this.getSubs(name);
-        
-        if (hash !== null) {
-            
-            if (!lang.isString(subName) || subName === ""){
-                throw new TypeError("Cookie.getSub(): Subcookie name must be a non-empty string.");
-            }
-            
-            if (lang.isUndefined(hash[subName])){
-                return null;
-            }
-            
-            if (!lang.isFunction(converter)){
-                return hash[subName];
-            } else {
-                return converter(hash[subName]);
-            }
-        } else {
-            return null;
-        }
-    
-    },
-    
-    /**
-     * Returns an object containing name-value pairs stored in the cookie with the given name.
-     * @param {String} name The name of the cookie to retrieve.
-     * @return {Object} An object of name-value pairs if the cookie with the given name
-     *      exists, null if it does not.
-     * @method getSubs
-     * @static
-     */
-    getSubs : function (name /*:String*/) /*:Object*/ {
-    
-        var isString = YAHOO.lang.isString;
-        
-        //check cookie name
-        if (!isString(name) || name === ""){
-            throw new TypeError("Cookie.getSubs(): Cookie name must be a non-empty string.");
-        }
-        
-        var cookies = this._parseCookieString(document.cookie, false);
-        if (isString(cookies[name])){
-            return this._parseCookieHash(cookies[name]);
-        }
-        return null;
-    },
-    
-    /**
-     * Removes a cookie from the machine by setting its expiration date to
-     * sometime in the past.
-     * @param {String} name The name of the cookie to remove.
-     * @param {Object} options (Optional) An object containing one or more
-     *      cookie options: path (a string), domain (a string),
-     *      and secure (true/false). The expires option will be overwritten
-     *      by the method.
-     * @return {String} The created cookie string.
-     * @method remove
-     * @static
-     */
-    remove : function (name /*:String*/, options /*:Object*/) /*:String*/ {
-        
-        //check cookie name
-        if (!YAHOO.lang.isString(name) || name === ""){
-            throw new TypeError("Cookie.remove(): Cookie name must be a non-empty string.");
-        }
-        
-        //set options - clone options so the original isn't affected
-        options = YAHOO.lang.merge(options || {}, {
-            expires: new Date(0)
-        });
-        
-        //set cookie
-        return this.set(name, "", options);
-    },
-    
-    /**
-     * Removes a subcookie with a given name. Removing the last subcookie
-     *      won't remove the entire cookie unless options.removeIfEmpty is true.
-     * @param {String} name The name of the cookie in which the subcookie exists.
-     * @param {String} subName The name of the subcookie to remove.
-     * @param {Object} options (Optional) An object containing one or more
-     *      cookie options: path (a string), domain (a string), expires (a Date object),
-     *      removeIfEmpty (true/false), and secure (true/false). This must be the same
-     *      settings as the original subcookie.
-     * @return {String} The created cookie string.
-     * @method removeSub
-     * @static
-     */
-    removeSub : function(name /*:String*/, subName /*:String*/, options /*:Object*/) /*:String*/ {
-        
-        var lang = YAHOO.lang;
-        
-        options = options || {};
-        
-        //check cookie name
-        if (!lang.isString(name) || name === ""){
-            throw new TypeError("Cookie.removeSub(): Cookie name must be a non-empty string.");
-        }
-        
-        //check subcookie name
-        if (!lang.isString(subName) || subName === ""){
-            throw new TypeError("Cookie.removeSub(): Subcookie name must be a non-empty string.");
-        }
-        
-        //get all subcookies for this cookie
-        var subs = this.getSubs(name);
-        
-        //delete the indicated subcookie
-        if (lang.isObject(subs) && lang.hasOwnProperty(subs, subName)){
-            delete subs[subName];
-
-            if (!options.removeIfEmpty) {
-                //reset the cookie
-
-                return this.setSubs(name, subs, options);
-            } else {
-                //reset the cookie if there are subcookies left, else remove
-                for (var key in subs){
-                    if (lang.hasOwnProperty(subs, key) && !lang.isFunction(subs[key]) && !lang.isUndefined(subs[key])){
-                        return this.setSubs(name, subs, options);
-                    }
-                }
-                
-                return this.remove(name, options);
-            }
-        } else {
-            return "";
-        }
-        
-    },
-    
-    /**
-     * Sets a cookie with a given name and value.
-     * @param {String} name The name of the cookie to set.
-     * @param {Variant} value The value to set for the cookie.
-     * @param {Object} options (Optional) An object containing one or more
-     *      cookie options: path (a string), domain (a string), expires (a Date object),
-     *      raw (true/false), and secure (true/false).
-     * @return {String} The created cookie string.
-     * @method set
-     * @static
-     */
-    set : function (name /*:String*/, value /*:Variant*/, options /*:Object*/) /*:String*/ {
-        
-        var lang = YAHOO.lang;
-        
-        options = options || {};
-        
-        if (!lang.isString(name)){
-            throw new TypeError("Cookie.set(): Cookie name must be a string.");
-        }
-        
-        if (lang.isUndefined(value)){
-            throw new TypeError("Cookie.set(): Value cannot be undefined.");
-        }
-        
-        var text /*:String*/ = this._createCookieString(name, value, !options.raw, options);
-        document.cookie = text;
-        return text;
-    },
-    
-    /**
-     * Sets a sub cookie with a given name to a particular value.
-     * @param {String} name The name of the cookie to set.
-     * @param {String} subName The name of the subcookie to set.
-     * @param {Variant} value The value to set.
-     * @param {Object} options (Optional) An object containing one or more
-     *      cookie options: path (a string), domain (a string), expires (a Date object),
-     *      and secure (true/false).
-     * @return {String} The created cookie string.
-     * @method setSub
-     * @static
-     */
-    setSub : function (name /*:String*/, subName /*:String*/, value /*:Variant*/, options /*:Object*/) /*:String*/ {
-        
-        var lang = YAHOO.lang;
-        
-        if (!lang.isString(name) || name === ""){
-            throw new TypeError("Cookie.setSub(): Cookie name must be a non-empty string.");
-        }
-        
-        if (!lang.isString(subName) || subName === ""){
-            throw new TypeError("Cookie.setSub(): Subcookie name must be a non-empty string.");
-        }
-        
-        if (lang.isUndefined(value)){
-            throw new TypeError("Cookie.setSub(): Subcookie value cannot be undefined.");
-        }
-        
-        var hash /*:Object*/ = this.getSubs(name);
-        
-        if (!lang.isObject(hash)){
-            hash = {};
-        }
-        
-        hash[subName] = value;
-        
-        return this.setSubs(name, hash, options);
-        
-    },
-    
-    /**
-     * Sets a cookie with a given name to contain a hash of name-value pairs.
-     * @param {String} name The name of the cookie to set.
-     * @param {Object} value An object containing name-value pairs.
-     * @param {Object} options (Optional) An object containing one or more
-     *      cookie options: path (a string), domain (a string), expires (a Date object),
-     *      and secure (true/false).
-     * @return {String} The created cookie string.
-     * @method setSubs
-     * @static
-     */
-    setSubs : function (name /*:String*/, value /*:Object*/, options /*:Object*/) /*:String*/ {
-        
-        var lang = YAHOO.lang;
-        
-        if (!lang.isString(name)){
-            throw new TypeError("Cookie.setSubs(): Cookie name must be a string.");
-        }
-        
-        if (!lang.isObject(value)){
-            throw new TypeError("Cookie.setSubs(): Cookie value must be an object.");
-        }
-        
-        var text /*:String*/ = this._createCookieString(name, this._createCookieHashString(value), false, options);
-        document.cookie = text;
-        return text;
-    }
-
-};
-
-YAHOO.register("cookie", YAHOO.util.Cookie, {version: "2.8.0r4", build: "2449"});
diff --git a/koha-tmpl/intranet-tmpl/prog/en/lib/yui/cookie/cookie-min.js b/koha-tmpl/intranet-tmpl/prog/en/lib/yui/cookie/cookie-min.js
deleted file mode 100644 (file)
index 8846f12..0000000
+++ /dev/null
@@ -1,7 +0,0 @@
-/*
-Copyright (c) 2009, Yahoo! Inc. All rights reserved.
-Code licensed under the BSD License:
-http://developer.yahoo.net/yui/license.txt
-version: 2.8.0r4
-*/
-YAHOO.namespace("util");YAHOO.util.Cookie={_createCookieString:function(B,D,C,A){var F=YAHOO.lang,E=encodeURIComponent(B)+"="+(C?encodeURIComponent(D):D);if(F.isObject(A)){if(A.expires instanceof Date){E+="; expires="+A.expires.toUTCString();}if(F.isString(A.path)&&A.path!==""){E+="; path="+A.path;}if(F.isString(A.domain)&&A.domain!==""){E+="; domain="+A.domain;}if(A.secure===true){E+="; secure";}}return E;},_createCookieHashString:function(B){var D=YAHOO.lang;if(!D.isObject(B)){throw new TypeError("Cookie._createCookieHashString(): Argument must be an object.");}var C=[];for(var A in B){if(D.hasOwnProperty(B,A)&&!D.isFunction(B[A])&&!D.isUndefined(B[A])){C.push(encodeURIComponent(A)+"="+encodeURIComponent(String(B[A])));}}return C.join("&");},_parseCookieHash:function(E){var D=E.split("&"),F=null,C={};if(E.length>0){for(var B=0,A=D.length;B<A;B++){F=D[B].split("=");C[decodeURIComponent(F[0])]=decodeURIComponent(F[1]);}}return C;},_parseCookieString:function(J,A){var K={};if(YAHOO.lang.isString(J)&&J.length>0){var B=(A===false?function(L){return L;}:decodeURIComponent);var H=J.split(/;\s/g),I=null,C=null,E=null;for(var D=0,F=H.length;D<F;D++){E=H[D].match(/([^=]+)=/i);if(E instanceof Array){try{I=decodeURIComponent(E[1]);C=B(H[D].substring(E[1].length+1));}catch(G){}}else{I=decodeURIComponent(H[D]);C="";}K[I]=C;}}return K;},exists:function(A){if(!YAHOO.lang.isString(A)||A===""){throw new TypeError("Cookie.exists(): Cookie name must be a non-empty string.");}var B=this._parseCookieString(document.cookie,true);return B.hasOwnProperty(A);},get:function(B,A){var E=YAHOO.lang,C;if(E.isFunction(A)){C=A;A={};}else{if(E.isObject(A)){C=A.converter;}else{A={};}}var D=this._parseCookieString(document.cookie,!A.raw);if(!E.isString(B)||B===""){throw new TypeError("Cookie.get(): Cookie name must be a non-empty string.");}if(E.isUndefined(D[B])){return null;}if(!E.isFunction(C)){return D[B];}else{return C(D[B]);}},getSub:function(A,C,B){var E=YAHOO.lang,D=this.getSubs(A);if(D!==null){if(!E.isString(C)||C===""){throw new TypeError("Cookie.getSub(): Subcookie name must be a non-empty string.");}if(E.isUndefined(D[C])){return null;}if(!E.isFunction(B)){return D[C];}else{return B(D[C]);}}else{return null;}},getSubs:function(B){var A=YAHOO.lang.isString;if(!A(B)||B===""){throw new TypeError("Cookie.getSubs(): Cookie name must be a non-empty string.");}var C=this._parseCookieString(document.cookie,false);if(A(C[B])){return this._parseCookieHash(C[B]);}return null;},remove:function(B,A){if(!YAHOO.lang.isString(B)||B===""){throw new TypeError("Cookie.remove(): Cookie name must be a non-empty string.");}A=YAHOO.lang.merge(A||{},{expires:new Date(0)});return this.set(B,"",A);},removeSub:function(B,E,A){var F=YAHOO.lang;A=A||{};if(!F.isString(B)||B===""){throw new TypeError("Cookie.removeSub(): Cookie name must be a non-empty string.");}if(!F.isString(E)||E===""){throw new TypeError("Cookie.removeSub(): Subcookie name must be a non-empty string.");}var D=this.getSubs(B);if(F.isObject(D)&&F.hasOwnProperty(D,E)){delete D[E];if(!A.removeIfEmpty){return this.setSubs(B,D,A);}else{for(var C in D){if(F.hasOwnProperty(D,C)&&!F.isFunction(D[C])&&!F.isUndefined(D[C])){return this.setSubs(B,D,A);}}return this.remove(B,A);}}else{return"";}},set:function(B,C,A){var E=YAHOO.lang;A=A||{};if(!E.isString(B)){throw new TypeError("Cookie.set(): Cookie name must be a string.");}if(E.isUndefined(C)){throw new TypeError("Cookie.set(): Value cannot be undefined.");}var D=this._createCookieString(B,C,!A.raw,A);document.cookie=D;return D;},setSub:function(B,D,C,A){var F=YAHOO.lang;if(!F.isString(B)||B===""){throw new TypeError("Cookie.setSub(): Cookie name must be a non-empty string.");}if(!F.isString(D)||D===""){throw new TypeError("Cookie.setSub(): Subcookie name must be a non-empty string.");}if(F.isUndefined(C)){throw new TypeError("Cookie.setSub(): Subcookie value cannot be undefined.");}var E=this.getSubs(B);if(!F.isObject(E)){E={};}E[D]=C;return this.setSubs(B,E,A);},setSubs:function(B,C,A){var E=YAHOO.lang;if(!E.isString(B)){throw new TypeError("Cookie.setSubs(): Cookie name must be a string.");}if(!E.isObject(C)){throw new TypeError("Cookie.setSubs(): Cookie value must be an object.");}var D=this._createCookieString(B,this._createCookieHashString(C),false,A);document.cookie=D;return D;}};YAHOO.register("cookie",YAHOO.util.Cookie,{version:"2.8.0r4",build:"2449"});
\ No newline at end of file
diff --git a/koha-tmpl/intranet-tmpl/prog/en/lib/yui/cookie/cookie.js b/koha-tmpl/intranet-tmpl/prog/en/lib/yui/cookie/cookie.js
deleted file mode 100644 (file)
index 4ec1093..0000000
+++ /dev/null
@@ -1,482 +0,0 @@
-/*
-Copyright (c) 2009, Yahoo! Inc. All rights reserved.
-Code licensed under the BSD License:
-http://developer.yahoo.net/yui/license.txt
-version: 2.8.0r4
-*/
-/**
- * Utilities for cookie management
- * @namespace YAHOO.util
- * @module cookie
- */
-YAHOO.namespace("util");
-
-/**
- * Cookie utility.
- * @class Cookie
- * @static
- */
-YAHOO.util.Cookie = {
-    
-    //-------------------------------------------------------------------------
-    // Private Methods
-    //-------------------------------------------------------------------------
-    
-    /**
-     * Creates a cookie string that can be assigned into document.cookie.
-     * @param {String} name The name of the cookie.
-     * @param {String} value The value of the cookie.
-     * @param {Boolean} encodeValue True to encode the value, false to leave as-is.
-     * @param {Object} options (Optional) Options for the cookie.
-     * @return {String} The formatted cookie string.
-     * @method _createCookieString
-     * @private
-     * @static
-     */
-    _createCookieString : function (name /*:String*/, value /*:Variant*/, encodeValue /*:Boolean*/, options /*:Object*/) /*:String*/ {
-        
-        //shortcut
-        var lang = YAHOO.lang,
-            text = encodeURIComponent(name) + "=" + (encodeValue ? encodeURIComponent(value) : value);
-        
-        
-        if (lang.isObject(options)){
-            //expiration date
-            if (options.expires instanceof Date){
-                text += "; expires=" + options.expires.toUTCString();
-            }
-            
-            //path
-            if (lang.isString(options.path) && options.path !== ""){
-                text += "; path=" + options.path;
-            }
-            
-            //domain
-            if (lang.isString(options.domain) && options.domain !== ""){
-                text += "; domain=" + options.domain;
-            }
-            
-            //secure
-            if (options.secure === true){
-                text += "; secure";
-            }
-        }
-        
-        return text;
-    },
-    
-    /**
-     * Formats a cookie value for an object containing multiple values.
-     * @param {Object} hash An object of key-value pairs to create a string for.
-     * @return {String} A string suitable for use as a cookie value.
-     * @method _createCookieHashString
-     * @private
-     * @static
-     */
-    _createCookieHashString : function (hash /*:Object*/) /*:String*/ {
-        
-        //shortcuts
-        var lang = YAHOO.lang;
-        
-        if (!lang.isObject(hash)){
-            throw new TypeError("Cookie._createCookieHashString(): Argument must be an object.");
-        }
-        
-        var text /*:Array*/ = [];
-        
-        for (var key in hash){
-            if (lang.hasOwnProperty(hash, key) && !lang.isFunction(hash[key]) && !lang.isUndefined(hash[key])){
-                text.push(encodeURIComponent(key) + "=" + encodeURIComponent(String(hash[key])));
-            }
-        }
-        
-        return text.join("&");
-    },
-    
-    /**
-     * Parses a cookie hash string into an object.
-     * @param {String} text The cookie hash string to parse. The string should already be URL-decoded.
-     * @return {Object} An object containing entries for each cookie value.
-     * @method _parseCookieHash
-     * @private
-     * @static
-     */
-    _parseCookieHash : function (text /*:String*/) /*:Object*/ {
-        
-        var hashParts /*:Array*/ = text.split("&"),
-            hashPart /*:Array*/ = null,
-            hash /*:Object*/ = {};
-        
-        if (text.length > 0){
-            for (var i=0, len=hashParts.length; i < len; i++){
-                hashPart = hashParts[i].split("=");
-                hash[decodeURIComponent(hashPart[0])] = decodeURIComponent(hashPart[1]);
-            }
-        }
-        
-        return hash;
-    },
-    
-    /**
-     * Parses a cookie string into an object representing all accessible cookies.
-     * @param {String} text The cookie string to parse.
-     * @param {Boolean} decode (Optional) Indicates if the cookie values should be decoded or not. Default is true.
-     * @return {Object} An object containing entries for each accessible cookie.
-     * @method _parseCookieString
-     * @private
-     * @static
-     */
-    _parseCookieString : function (text /*:String*/, decode /*:Boolean*/) /*:Object*/ {
-        
-        var cookies /*:Object*/ = {};
-        
-        if (YAHOO.lang.isString(text) && text.length > 0) {
-            
-            var decodeValue = (decode === false ? function(s){return s;} : decodeURIComponent);
-            
-            //if (/[^=]+=[^=;]?(?:; [^=]+=[^=]?)?/.test(text)){
-                var cookieParts /*:Array*/ = text.split(/;\s/g),
-                    cookieName /*:String*/ = null,
-                    cookieValue /*:String*/ = null,
-                    cookieNameValue /*:Array*/ = null;
-                
-                for (var i=0, len=cookieParts.length; i < len; i++){
-                    
-                    //check for normally-formatted cookie (name-value)
-                    cookieNameValue = cookieParts[i].match(/([^=]+)=/i);
-                    if (cookieNameValue instanceof Array){
-                        try {
-                            cookieName = decodeURIComponent(cookieNameValue[1]);
-                            cookieValue = decodeValue(cookieParts[i].substring(cookieNameValue[1].length+1));
-                        } catch (ex){
-                            //ignore the entire cookie - encoding is likely invalid
-                        }
-                    } else {
-                        //means the cookie does not have an "=", so treat it as a boolean flag
-                        cookieName = decodeURIComponent(cookieParts[i]);
-                        cookieValue = "";
-                    }
-                    cookies[cookieName] = cookieValue;
-                }
-            //}
-        }
-        
-        return cookies;
-    },
-    
-    //-------------------------------------------------------------------------
-    // Public Methods
-    //-------------------------------------------------------------------------
-    
-    /**
-     * Determines if the cookie with the given name exists. This is useful for
-     * Boolean cookies (those that do not follow the name=value convention).
-     * @param {String} name The name of the cookie to check.
-     * @return {Boolean} True if the cookie exists, false if not.
-     * @method exists
-     * @static
-     */
-    exists: function(name) {
-
-        if (!YAHOO.lang.isString(name) || name === ""){
-            throw new TypeError("Cookie.exists(): Cookie name must be a non-empty string.");
-        }
-
-        var cookies /*:Object*/ = this._parseCookieString(document.cookie, true);
-        
-        return cookies.hasOwnProperty(name);
-    },
-    
-    /**
-     * Returns the cookie value for the given name.
-     * @param {String} name The name of the cookie to retrieve.
-     * @param {Object|Function} options (Optional) An object containing one or more
-     *      cookie options: raw (true/false) and converter (a function).
-     *      The converter function is run on the value before returning it. The
-     *      function is not used if the cookie doesn't exist. The function can be
-     *      passed instead of the options object for backwards compatibility.
-     * @return {Variant} If no converter is specified, returns a string or null if
-     *      the cookie doesn't exist. If the converter is specified, returns the value
-     *      returned from the converter or null if the cookie doesn't exist.
-     * @method get
-     * @static
-     */
-    get : function (name /*:String*/, options /*:Variant*/) /*:Variant*/{
-        
-        var lang = YAHOO.lang,
-            converter;
-        
-        if (lang.isFunction(options)) {
-            converter = options;
-            options = {};
-        } else if (lang.isObject(options)) {
-            converter = options.converter;
-        } else {
-            options = {};
-        }
-        
-        var cookies /*:Object*/ = this._parseCookieString(document.cookie, !options.raw);
-        
-        if (!lang.isString(name) || name === ""){
-            throw new TypeError("Cookie.get(): Cookie name must be a non-empty string.");
-        }
-        
-        if (lang.isUndefined(cookies[name])) {
-            return null;
-        }
-        
-        if (!lang.isFunction(converter)){
-            return cookies[name];
-        } else {
-            return converter(cookies[name]);
-        }
-    },
-    
-    /**
-     * Returns the value of a subcookie.
-     * @param {String} name The name of the cookie to retrieve.
-     * @param {String} subName The name of the subcookie to retrieve.
-     * @param {Function} converter (Optional) A function to run on the value before returning
-     *      it. The function is not used if the cookie doesn't exist.
-     * @return {Variant} If the cookie doesn't exist, null is returned. If the subcookie
-     *      doesn't exist, null if also returned. If no converter is specified and the
-     *      subcookie exists, a string is returned. If a converter is specified and the
-     *      subcookie exists, the value returned from the converter is returned.
-     * @method getSub
-     * @static
-     */
-    getSub : function (name, subName, converter) {
-        
-        var lang = YAHOO.lang,
-            hash = this.getSubs(name);
-        
-        if (hash !== null) {
-            
-            if (!lang.isString(subName) || subName === ""){
-                throw new TypeError("Cookie.getSub(): Subcookie name must be a non-empty string.");
-            }
-            
-            if (lang.isUndefined(hash[subName])){
-                return null;
-            }
-            
-            if (!lang.isFunction(converter)){
-                return hash[subName];
-            } else {
-                return converter(hash[subName]);
-            }
-        } else {
-            return null;
-        }
-    
-    },
-    
-    /**
-     * Returns an object containing name-value pairs stored in the cookie with the given name.
-     * @param {String} name The name of the cookie to retrieve.
-     * @return {Object} An object of name-value pairs if the cookie with the given name
-     *      exists, null if it does not.
-     * @method getSubs
-     * @static
-     */
-    getSubs : function (name /*:String*/) /*:Object*/ {
-    
-        var isString = YAHOO.lang.isString;
-        
-        //check cookie name
-        if (!isString(name) || name === ""){
-            throw new TypeError("Cookie.getSubs(): Cookie name must be a non-empty string.");
-        }
-        
-        var cookies = this._parseCookieString(document.cookie, false);
-        if (isString(cookies[name])){
-            return this._parseCookieHash(cookies[name]);
-        }
-        return null;
-    },
-    
-    /**
-     * Removes a cookie from the machine by setting its expiration date to
-     * sometime in the past.
-     * @param {String} name The name of the cookie to remove.
-     * @param {Object} options (Optional) An object containing one or more
-     *      cookie options: path (a string), domain (a string),
-     *      and secure (true/false). The expires option will be overwritten
-     *      by the method.
-     * @return {String} The created cookie string.
-     * @method remove
-     * @static
-     */
-    remove : function (name /*:String*/, options /*:Object*/) /*:String*/ {
-        
-        //check cookie name
-        if (!YAHOO.lang.isString(name) || name === ""){
-            throw new TypeError("Cookie.remove(): Cookie name must be a non-empty string.");
-        }
-        
-        //set options - clone options so the original isn't affected
-        options = YAHOO.lang.merge(options || {}, {
-            expires: new Date(0)
-        });
-        
-        //set cookie
-        return this.set(name, "", options);
-    },
-    
-    /**
-     * Removes a subcookie with a given name. Removing the last subcookie
-     *      won't remove the entire cookie unless options.removeIfEmpty is true.
-     * @param {String} name The name of the cookie in which the subcookie exists.
-     * @param {String} subName The name of the subcookie to remove.
-     * @param {Object} options (Optional) An object containing one or more
-     *      cookie options: path (a string), domain (a string), expires (a Date object),
-     *      removeIfEmpty (true/false), and secure (true/false). This must be the same
-     *      settings as the original subcookie.
-     * @return {String} The created cookie string.
-     * @method removeSub
-     * @static
-     */
-    removeSub : function(name /*:String*/, subName /*:String*/, options /*:Object*/) /*:String*/ {
-        
-        var lang = YAHOO.lang;
-        
-        options = options || {};
-        
-        //check cookie name
-        if (!lang.isString(name) || name === ""){
-            throw new TypeError("Cookie.removeSub(): Cookie name must be a non-empty string.");
-        }
-        
-        //check subcookie name
-        if (!lang.isString(subName) || subName === ""){
-            throw new TypeError("Cookie.removeSub(): Subcookie name must be a non-empty string.");
-        }
-        
-        //get all subcookies for this cookie
-        var subs = this.getSubs(name);
-        
-        //delete the indicated subcookie
-        if (lang.isObject(subs) && lang.hasOwnProperty(subs, subName)){
-            delete subs[subName];
-
-            if (!options.removeIfEmpty) {
-                //reset the cookie
-
-                return this.setSubs(name, subs, options);
-            } else {
-                //reset the cookie if there are subcookies left, else remove
-                for (var key in subs){
-                    if (lang.hasOwnProperty(subs, key) && !lang.isFunction(subs[key]) && !lang.isUndefined(subs[key])){
-                        return this.setSubs(name, subs, options);
-                    }
-                }
-                
-                return this.remove(name, options);
-            }
-        } else {
-            return "";
-        }
-        
-    },
-    
-    /**
-     * Sets a cookie with a given name and value.
-     * @param {String} name The name of the cookie to set.
-     * @param {Variant} value The value to set for the cookie.
-     * @param {Object} options (Optional) An object containing one or more
-     *      cookie options: path (a string), domain (a string), expires (a Date object),
-     *      raw (true/false), and secure (true/false).
-     * @return {String} The created cookie string.
-     * @method set
-     * @static
-     */
-    set : function (name /*:String*/, value /*:Variant*/, options /*:Object*/) /*:String*/ {
-        
-        var lang = YAHOO.lang;
-        
-        options = options || {};
-        
-        if (!lang.isString(name)){
-            throw new TypeError("Cookie.set(): Cookie name must be a string.");
-        }
-        
-        if (lang.isUndefined(value)){
-            throw new TypeError("Cookie.set(): Value cannot be undefined.");
-        }
-        
-        var text /*:String*/ = this._createCookieString(name, value, !options.raw, options);
-        document.cookie = text;
-        return text;
-    },
-    
-    /**
-     * Sets a sub cookie with a given name to a particular value.
-     * @param {String} name The name of the cookie to set.
-     * @param {String} subName The name of the subcookie to set.
-     * @param {Variant} value The value to set.
-     * @param {Object} options (Optional) An object containing one or more
-     *      cookie options: path (a string), domain (a string), expires (a Date object),
-     *      and secure (true/false).
-     * @return {String} The created cookie string.
-     * @method setSub
-     * @static
-     */
-    setSub : function (name /*:String*/, subName /*:String*/, value /*:Variant*/, options /*:Object*/) /*:String*/ {
-        
-        var lang = YAHOO.lang;
-        
-        if (!lang.isString(name) || name === ""){
-            throw new TypeError("Cookie.setSub(): Cookie name must be a non-empty string.");
-        }
-        
-        if (!lang.isString(subName) || subName === ""){
-            throw new TypeError("Cookie.setSub(): Subcookie name must be a non-empty string.");
-        }
-        
-        if (lang.isUndefined(value)){
-            throw new TypeError("Cookie.setSub(): Subcookie value cannot be undefined.");
-        }
-        
-        var hash /*:Object*/ = this.getSubs(name);
-        
-        if (!lang.isObject(hash)){
-            hash = {};
-        }
-        
-        hash[subName] = value;
-        
-        return this.setSubs(name, hash, options);
-        
-    },
-    
-    /**
-     * Sets a cookie with a given name to contain a hash of name-value pairs.
-     * @param {String} name The name of the cookie to set.
-     * @param {Object} value An object containing name-value pairs.
-     * @param {Object} options (Optional) An object containing one or more
-     *      cookie options: path (a string), domain (a string), expires (a Date object),
-     *      and secure (true/false).
-     * @return {String} The created cookie string.
-     * @method setSubs
-     * @static
-     */
-    setSubs : function (name /*:String*/, value /*:Object*/, options /*:Object*/) /*:String*/ {
-        
-        var lang = YAHOO.lang;
-        
-        if (!lang.isString(name)){
-            throw new TypeError("Cookie.setSubs(): Cookie name must be a string.");
-        }
-        
-        if (!lang.isObject(value)){
-            throw new TypeError("Cookie.setSubs(): Cookie value must be an object.");
-        }
-        
-        var text /*:String*/ = this._createCookieString(name, this._createCookieHashString(value), false, options);
-        document.cookie = text;
-        return text;
-    }
-
-};
-
-YAHOO.register("cookie", YAHOO.util.Cookie, {version: "2.8.0r4", build: "2449"});
diff --git a/koha-tmpl/intranet-tmpl/prog/en/lib/yui/datatable/assets/datatable-core.css b/koha-tmpl/intranet-tmpl/prog/en/lib/yui/datatable/assets/datatable-core.css
deleted file mode 100644 (file)
index 393dfe7..0000000
+++ /dev/null
@@ -1,93 +0,0 @@
-/*
-Copyright (c) 2009, Yahoo! Inc. All rights reserved.
-Code licensed under the BSD License:
-http://developer.yahoo.net/yui/license.txt
-version: 2.8.0r4
-*/
-/* foundational CSS */
-
-/* mask */
-.yui-skin-sam .yui-dt-mask {
-    position:absolute;
-    z-index:9500;
-}
-
-/* scrollable */
-.yui-dt-tmp {
-    position:absolute;
-    left:-9000px;
-}
-
-.yui-dt-scrollable .yui-dt-bd {
-    overflow:auto;
-}
-.yui-dt-scrollable .yui-dt-hd {
-    overflow:hidden;
-    position:relative; /* for ie overflow bug http://rowanw.com/bugs/overflow_relative.htm */
-} 
-
-.yui-dt-scrollable .yui-dt-bd thead tr,
-.yui-dt-scrollable .yui-dt-bd thead th {
-    position:absolute;
-    left:-1500px;
-}
-
-.yui-dt-scrollable tbody {
-    -moz-outline:none;
-}
-
-/* sortable columns */
-
-.yui-skin-sam thead .yui-dt-sortable {
-    cursor:pointer;
-}
-
-/* draggable columns */
-.yui-skin-sam thead .yui-dt-draggable {
-    cursor: move;
-}
-.yui-dt-coltarget {
-    position: absolute;
-    z-index: 999;
-}
-
-/* resizeable columns */
-.yui-dt-hd {
-    zoom:1; 
-}
-th.yui-dt-resizeable .yui-dt-resizerliner {
-    position:relative;
-}
-.yui-dt-resizer {
-    position:absolute;
-    right:0;
-    bottom:0;
-    height:100%;
-    cursor:e-resize;
-    cursor:col-resize;
-    background-color:#CCC;opacity:0;filter: alpha(opacity=0); /* Bug 1952811: IE transparency z-index */
-}
-.yui-dt-resizerproxy {
-    visibility:hidden;
-    position:absolute;
-    z-index:9000;
-    background-color:#CCC;opacity:0;filter: alpha(opacity=0); /* Bug 1952811: IE transparency z-index */
-}
-
-/* hidden columns */
-th.yui-dt-hidden .yui-dt-liner, 
-td.yui-dt-hidden .yui-dt-liner,
-th.yui-dt-hidden .yui-dt-resizer {
-    /*TODO: document change from 2.5.2 to 2.6
-    margin:0;
-    padding:0;
-    white-space:nowrap;
-    width:1px;
-    overflow:hidden;*/
-    display:none;
-}
-
-/* editing */
-.yui-dt-editor {
-    position:absolute;z-index:9000;
-}
diff --git a/koha-tmpl/intranet-tmpl/prog/en/lib/yui/datatable/assets/datatable.css b/koha-tmpl/intranet-tmpl/prog/en/lib/yui/datatable/assets/datatable.css
deleted file mode 100644 (file)
index ca86804..0000000
+++ /dev/null
@@ -1,49 +0,0 @@
-/*
-Copyright (c) 2009, Yahoo! Inc. All rights reserved.
-Code licensed under the BSD License:
-http://developer.yahoo.net/yui/license.txt
-version: 2.8.0r4
-*/
-/*foundational css*/
-.yui-dt-table th, .yui-dt-table td {
-    overflow:hidden;
-}
-
-th .yui-dt-header {
-    position:relative;
-}
-
-th .yui-dt-label {
-    position:relative;
-    border-right:10px;
-}
-
-th .yui-dt-resizer {
-    position:absolute;
-    margin-right:-6px;
-    right:0;
-    bottom:0;
-    width:6px;
-    height:100%;
-    cursor:w-resize;
-    cursor:col-resize;
-}
-
-/* foundational scrolling css */
-.yui-dt-scrollable  {
-    *overflow-y:auto; /* for ie */
-}
-.yui-dt-scrollable  thead {
-    display:block; /* for safari and opera */
-}
-.yui-dt-scrollable thead tr {
-    position:relative;  /* for ie */
-}
-.yui-dt-scrollbody {
-    display:block; /* for safari and opera */
-    overflow:auto; /* for gecko */
-}
-
-.yui-dt-editor {
-    position:absolute;
-}
diff --git a/koha-tmpl/intranet-tmpl/prog/en/lib/yui/datatable/assets/skins/sam/datatable-skin.css b/koha-tmpl/intranet-tmpl/prog/en/lib/yui/datatable/assets/skins/sam/datatable-skin.css
deleted file mode 100644 (file)
index be484aa..0000000
+++ /dev/null
@@ -1,240 +0,0 @@
-/*
-Copyright (c) 2009, Yahoo! Inc. All rights reserved.
-Code licensed under the BSD License:
-http://developer.yahoo.net/yui/license.txt
-version: 2.8.0r4
-*/
-/* basic skin styles */
-.yui-skin-sam .yui-dt table {
-    margin:0;padding:0;
-    font-family:arial;font-size:inherit;
-    border-collapse:separate;*border-collapse:collapse;border-spacing:0; /* since ie6 and ie7 behave differently */
-    border:1px solid #7F7F7F;
-}
-.yui-skin-sam .yui-dt thead {border-spacing:0;} /* for safari bug */
-
-.yui-skin-sam .yui-dt caption {
-    color:#000000;
-    font-size:85%;
-    font-weight:normal;
-    font-style:italic;
-    line-height:1;
-    padding:1em 0pt;
-    text-align:center;
-}
-
-.yui-skin-sam .yui-dt th {
-    background:#D8D8DA url(../../../../assets/skins/sam/sprite.png) repeat-x 0 0; /* header gradient */
-}
-.yui-skin-sam .yui-dt th,
-.yui-skin-sam .yui-dt th a {
-    font-weight:normal;text-decoration:none;color:#000; /* header text */
-    vertical-align:bottom;
-}
-.yui-skin-sam .yui-dt th {
-    margin:0;padding:0;
-    border:none;
-    border-right:1px solid #CBCBCB;/*  inner column border */
-}
-.yui-skin-sam .yui-dt tr.yui-dt-first td {
-    border-top:1px solid #7F7F7F;  /* tbody top border  */
-}
-.yui-skin-sam .yui-dt th .yui-dt-liner {
-    white-space:nowrap;
-}
-.yui-skin-sam .yui-dt-liner {
-    margin:0;padding:0;
-    padding:4px 10px 4px 10px; /* cell padding */
-}
-.yui-skin-sam .yui-dt-coltarget {
-    width: 5px;
-    background-color: red;
-}
-.yui-skin-sam .yui-dt td {
-    margin:0;padding:0;
-    border:none;
-    border-right:1px solid #CBCBCB; /* inner column border */
-    text-align:left;
-}
-.yui-skin-sam .yui-dt-list td {
-    border-right:none; /* disable inner column border in list mode */
-}
-.yui-skin-sam .yui-dt-resizer {
-    width:6px;
-}
-
-/* mask */
-.yui-skin-sam .yui-dt-mask {
-    background-color: #000;
-    opacity: .25;
-    filter: alpha(opacity=25);  /* Set opacity in IE */
-}
-
-/* messaging */
-.yui-skin-sam .yui-dt-message  {
-    background-color:#FFF;
-}
-
-/* scrolling */
-.yui-skin-sam .yui-dt-scrollable table {border:none;}
-.yui-skin-sam .yui-dt-scrollable .yui-dt-hd {border-left:1px solid #7F7F7F;border-top:1px solid #7F7F7F;border-right:1px solid #7F7F7F;}
-.yui-skin-sam .yui-dt-scrollable .yui-dt-bd {border-left:1px solid #7F7F7F;border-bottom:1px solid #7F7F7F;border-right:1px solid #7F7F7F;background-color:#FFF;}
-.yui-skin-sam .yui-dt-scrollable .yui-dt-data tr.yui-dt-last td {border-bottom:1px solid #7F7F7F;}
-
-/* sortable columns */
-.yui-skin-sam th.yui-dt-asc,
-.yui-skin-sam th.yui-dt-desc {
-    background:url(../../../../assets/skins/sam/sprite.png) repeat-x 0 -100px; /* sorted header gradient */
-}
-.yui-skin-sam th.yui-dt-sortable .yui-dt-label {
-    margin-right:10px;
-}
-.yui-skin-sam th.yui-dt-asc .yui-dt-liner {
-    background:url(dt-arrow-up.png) no-repeat right; /* sorted header gradient */
-}
-.yui-skin-sam th.yui-dt-desc .yui-dt-liner {
-    background:url(dt-arrow-dn.png) no-repeat right; /* sorted header gradient */
-}
-
-/* editing */
-tbody .yui-dt-editable {
-    cursor:pointer;
-}
-.yui-dt-editor {
-    text-align:left;
-    background-color:#F2F2F2;
-    border:1px solid #808080;
-    padding:6px;
-}
-.yui-dt-editor label {
-    padding-left:4px;padding-right:6px;
-}
-.yui-dt-editor .yui-dt-button {
-    padding-top:6px;text-align:right;
-}
-.yui-dt-editor .yui-dt-button button {
-    background:url(../../../../assets/skins/sam/sprite.png) repeat-x 0 0;
-    border:1px solid #999;
-    width:4em;height:1.8em;
-    margin-left:6px;
-}
-.yui-dt-editor .yui-dt-button button.yui-dt-default {
-    background:url(../../../../assets/skins/sam/sprite.png) repeat-x 0 -1400px;
-    background-color: #5584E0;
-    border:1px solid #304369;
-    color:#FFF
-}
-.yui-dt-editor .yui-dt-button button:hover {
-    background:url(../../../../assets/skins/sam/sprite.png) repeat-x 0 -1300px;
-    color:#000;
-}
-.yui-dt-editor .yui-dt-button button:active {
-    background:url(../../../../assets/skins/sam/sprite.png) repeat-x 0 -1700px;
-    color:#000;
-}
-
-/* striping */
-.yui-skin-sam tr.yui-dt-even { background-color:#FFF; } /* white */
-.yui-skin-sam tr.yui-dt-odd { background-color:#EDF5FF; } /* light blue */
-.yui-skin-sam tr.yui-dt-even td.yui-dt-asc,
-.yui-skin-sam tr.yui-dt-even td.yui-dt-desc { background-color:#EDF5FF; } /* light blue sorted */
-.yui-skin-sam tr.yui-dt-odd td.yui-dt-asc,
-.yui-skin-sam tr.yui-dt-odd td.yui-dt-desc { background-color:#DBEAFF; } /* dark blue sorted */
-
-/* disable striping in list mode */
-.yui-skin-sam .yui-dt-list tr.yui-dt-even { background-color:#FFF; } /* white */
-.yui-skin-sam .yui-dt-list tr.yui-dt-odd { background-color:#FFF; } /* white */
-.yui-skin-sam .yui-dt-list tr.yui-dt-even td.yui-dt-asc,
-.yui-skin-sam .yui-dt-list tr.yui-dt-even td.yui-dt-desc { background-color:#EDF5FF; } /* light blue sorted */
-.yui-skin-sam .yui-dt-list tr.yui-dt-odd td.yui-dt-asc,
-.yui-skin-sam .yui-dt-list tr.yui-dt-odd td.yui-dt-desc { background-color:#EDF5FF; } /* light blue sorted */
-
-/* highlighting */
-.yui-skin-sam th.yui-dt-highlighted,
-.yui-skin-sam th.yui-dt-highlighted a {
-    background-color:#B2D2FF; /* med blue hover */
-}
-.yui-skin-sam tr.yui-dt-highlighted,
-.yui-skin-sam tr.yui-dt-highlighted td.yui-dt-asc,
-.yui-skin-sam tr.yui-dt-highlighted td.yui-dt-desc,
-.yui-skin-sam tr.yui-dt-even td.yui-dt-highlighted,
-.yui-skin-sam tr.yui-dt-odd td.yui-dt-highlighted {
-    cursor:pointer;
-    background-color:#B2D2FF; /* med blue hover */
-}
-
-/* enable highlighting in list mode */
-.yui-skin-sam .yui-dt-list th.yui-dt-highlighted,
-.yui-skin-sam .yui-dt-list th.yui-dt-highlighted a {
-    background-color:#B2D2FF; /* med blue hover */
-}
-.yui-skin-sam .yui-dt-list tr.yui-dt-highlighted,
-.yui-skin-sam .yui-dt-list tr.yui-dt-highlighted td.yui-dt-asc,
-.yui-skin-sam .yui-dt-list tr.yui-dt-highlighted td.yui-dt-desc,
-.yui-skin-sam .yui-dt-list tr.yui-dt-even td.yui-dt-highlighted,
-.yui-skin-sam .yui-dt-list tr.yui-dt-odd td.yui-dt-highlighted {
-    cursor:pointer;
-    background-color:#B2D2FF; /* med blue  hover */
-}
-
-/* selection */
-.yui-skin-sam th.yui-dt-selected,
-.yui-skin-sam th.yui-dt-selected a {
-    background-color:#446CD7; /* bright blue selected cell */
-}
-.yui-skin-sam tr.yui-dt-selected td,
-.yui-skin-sam tr.yui-dt-selected td.yui-dt-asc,
-.yui-skin-sam tr.yui-dt-selected td.yui-dt-desc {
-    background-color:#426FD9; /* bright blue selected row */
-    color:#FFF;
-}
-.yui-skin-sam tr.yui-dt-even td.yui-dt-selected,
-.yui-skin-sam tr.yui-dt-odd td.yui-dt-selected {
-    background-color:#446CD7; /* bright blue selected cell */
-    color:#FFF;
-}
-
-/* enable selection in list mode */
-.yui-skin-sam .yui-dt-list th.yui-dt-selected,
-.yui-skin-sam .yui-dt-list th.yui-dt-selected a {
-    background-color:#446CD7; /* bright blue selected cell */
-}
-.yui-skin-sam .yui-dt-list tr.yui-dt-selected td,
-.yui-skin-sam .yui-dt-list tr.yui-dt-selected td.yui-dt-asc,
-.yui-skin-sam .yui-dt-list tr.yui-dt-selected td.yui-dt-desc {
-    background-color:#426FD9; /* bright blue selected row */
-    color:#FFF;
-}
-.yui-skin-sam .yui-dt-list tr.yui-dt-even td.yui-dt-selected,
-.yui-skin-sam .yui-dt-list tr.yui-dt-odd td.yui-dt-selected {
-    background-color:#446CD7; /* bright blue selected cell */
-    color:#FFF;
-}
-
-/* pagination */
-.yui-skin-sam .yui-dt-paginator {
-    display:block;margin:6px 0;white-space:nowrap;
-}
-.yui-skin-sam .yui-dt-paginator .yui-dt-first,
-.yui-skin-sam .yui-dt-paginator .yui-dt-last,
-.yui-skin-sam .yui-dt-paginator .yui-dt-selected {
-    padding:2px 6px;
-}
-.yui-skin-sam .yui-dt-paginator a.yui-dt-first,
-.yui-skin-sam .yui-dt-paginator a.yui-dt-last {
-    text-decoration:none;
-}
-.yui-skin-sam .yui-dt-paginator .yui-dt-previous,
-.yui-skin-sam .yui-dt-paginator .yui-dt-next {
-    display:none;
-}
-.yui-skin-sam a.yui-dt-page {
-    border:1px solid #CBCBCB;
-    padding:2px 6px;
-    text-decoration:none;
-    background-color:#fff
-}
-.yui-skin-sam .yui-dt-selected {
-    border:1px solid #fff;
-    background-color:#fff;
-}
diff --git a/koha-tmpl/intranet-tmpl/prog/en/lib/yui/datatable/assets/skins/sam/datatable.css b/koha-tmpl/intranet-tmpl/prog/en/lib/yui/datatable/assets/skins/sam/datatable.css
deleted file mode 100644 (file)
index 043728c..0000000
+++ /dev/null
@@ -1,8 +0,0 @@
-/*
-Copyright (c) 2009, Yahoo! Inc. All rights reserved.
-Code licensed under the BSD License:
-http://developer.yahoo.net/yui/license.txt
-version: 2.8.0r4
-*/
-.yui-skin-sam .yui-dt-mask{position:absolute;z-index:9500;}.yui-dt-tmp{position:absolute;left:-9000px;}.yui-dt-scrollable .yui-dt-bd{overflow:auto;}.yui-dt-scrollable .yui-dt-hd{overflow:hidden;position:relative;}.yui-dt-scrollable .yui-dt-bd thead tr,.yui-dt-scrollable .yui-dt-bd thead th{position:absolute;left:-1500px;}.yui-dt-scrollable tbody{-moz-outline:none;}.yui-skin-sam thead .yui-dt-sortable{cursor:pointer;}.yui-skin-sam thead .yui-dt-draggable{cursor:move;}.yui-dt-coltarget{position:absolute;z-index:999;}.yui-dt-hd{zoom:1;}th.yui-dt-resizeable .yui-dt-resizerliner{position:relative;}.yui-dt-resizer{position:absolute;right:0;bottom:0;height:100%;cursor:e-resize;cursor:col-resize;background-color:#CCC;opacity:0;filter:alpha(opacity=0);}.yui-dt-resizerproxy{visibility:hidden;position:absolute;z-index:9000;background-color:#CCC;opacity:0;filter:alpha(opacity=0);}th.yui-dt-hidden .yui-dt-liner,td.yui-dt-hidden .yui-dt-liner,th.yui-dt-hidden .yui-dt-resizer{display:none;}.yui-dt-editor{position:absolute;z-index:9000;}.yui-skin-sam .yui-dt table{margin:0;padding:0;font-family:arial;font-size:inherit;border-collapse:separate;*border-collapse:collapse;border-spacing:0;border:1px solid #7F7F7F;}.yui-skin-sam .yui-dt thead{border-spacing:0;}.yui-skin-sam .yui-dt caption{color:#000;font-size:85%;font-weight:normal;font-style:italic;line-height:1;padding:1em 0;text-align:center;}.yui-skin-sam .yui-dt th{background:#D8D8DA url(../../../../assets/skins/sam/sprite.png) repeat-x 0 0;}.yui-skin-sam .yui-dt th,.yui-skin-sam .yui-dt th a{font-weight:normal;text-decoration:none;color:#000;vertical-align:bottom;}.yui-skin-sam .yui-dt th{margin:0;padding:0;border:none;border-right:1px solid #CBCBCB;}.yui-skin-sam .yui-dt tr.yui-dt-first td{border-top:1px solid #7F7F7F;}.yui-skin-sam .yui-dt th .yui-dt-liner{white-space:nowrap;}.yui-skin-sam .yui-dt-liner{margin:0;padding:0;padding:4px 10px 4px 10px;}.yui-skin-sam .yui-dt-coltarget{width:5px;background-color:red;}.yui-skin-sam .yui-dt td{margin:0;padding:0;border:none;border-right:1px solid #CBCBCB;text-align:left;}.yui-skin-sam .yui-dt-list td{border-right:none;}.yui-skin-sam .yui-dt-resizer{width:6px;}.yui-skin-sam .yui-dt-mask{background-color:#000;opacity:.25;filter:alpha(opacity=25);}.yui-skin-sam .yui-dt-message{background-color:#FFF;}.yui-skin-sam .yui-dt-scrollable table{border:none;}.yui-skin-sam .yui-dt-scrollable .yui-dt-hd{border-left:1px solid #7F7F7F;border-top:1px solid #7F7F7F;border-right:1px solid #7F7F7F;}.yui-skin-sam .yui-dt-scrollable .yui-dt-bd{border-left:1px solid #7F7F7F;border-bottom:1px solid #7F7F7F;border-right:1px solid #7F7F7F;background-color:#FFF;}.yui-skin-sam .yui-dt-scrollable .yui-dt-data tr.yui-dt-last td{border-bottom:1px solid #7F7F7F;}.yui-skin-sam th.yui-dt-asc,.yui-skin-sam th.yui-dt-desc{background:url(../../../../assets/skins/sam/sprite.png) repeat-x 0 -100px;}.yui-skin-sam th.yui-dt-sortable .yui-dt-label{margin-right:10px;}.yui-skin-sam th.yui-dt-asc .yui-dt-liner{background:url(dt-arrow-up.png) no-repeat right;}.yui-skin-sam th.yui-dt-desc .yui-dt-liner{background:url(dt-arrow-dn.png) no-repeat right;}tbody .yui-dt-editable{cursor:pointer;}.yui-dt-editor{text-align:left;background-color:#F2F2F2;border:1px solid #808080;padding:6px;}.yui-dt-editor label{padding-left:4px;padding-right:6px;}.yui-dt-editor .yui-dt-button{padding-top:6px;text-align:right;}.yui-dt-editor .yui-dt-button button{background:url(../../../../assets/skins/sam/sprite.png) repeat-x 0 0;border:1px solid #999;width:4em;height:1.8em;margin-left:6px;}.yui-dt-editor .yui-dt-button button.yui-dt-default{background:url(../../../../assets/skins/sam/sprite.png) repeat-x 0 -1400px;background-color:#5584E0;border:1px solid #304369;color:#FFF;}.yui-dt-editor .yui-dt-button button:hover{background:url(../../../../assets/skins/sam/sprite.png) repeat-x 0 -1300px;color:#000;}.yui-dt-editor .yui-dt-button button:active{background:url(../../../../assets/skins/sam/sprite.png) repeat-x 0 -1700px;color:#000;}.yui-skin-sam tr.yui-dt-even{background-color:#FFF;}.yui-skin-sam tr.yui-dt-odd{background-color:#EDF5FF;}.yui-skin-sam tr.yui-dt-even td.yui-dt-asc,.yui-skin-sam tr.yui-dt-even td.yui-dt-desc{background-color:#EDF5FF;}.yui-skin-sam tr.yui-dt-odd td.yui-dt-asc,.yui-skin-sam tr.yui-dt-odd td.yui-dt-desc{background-color:#DBEAFF;}.yui-skin-sam .yui-dt-list tr.yui-dt-even{background-color:#FFF;}.yui-skin-sam .yui-dt-list tr.yui-dt-odd{background-color:#FFF;}.yui-skin-sam .yui-dt-list tr.yui-dt-even td.yui-dt-asc,.yui-skin-sam .yui-dt-list tr.yui-dt-even td.yui-dt-desc{background-color:#EDF5FF;}.yui-skin-sam .yui-dt-list tr.yui-dt-odd td.yui-dt-asc,.yui-skin-sam .yui-dt-list tr.yui-dt-odd td.yui-dt-desc{background-color:#EDF5FF;}.yui-skin-sam th.yui-dt-highlighted,.yui-skin-sam th.yui-dt-highlighted a{background-color:#B2D2FF;}.yui-skin-sam tr.yui-dt-highlighted,.yui-skin-sam tr.yui-dt-highlighted td.yui-dt-asc,.yui-skin-sam tr.yui-dt-highlighted td.yui-dt-desc,.yui-skin-sam tr.yui-dt-even td.yui-dt-highlighted,.yui-skin-sam tr.yui-dt-odd td.yui-dt-highlighted{cursor:pointer;background-color:#B2D2FF;}.yui-skin-sam .yui-dt-list th.yui-dt-highlighted,.yui-skin-sam .yui-dt-list th.yui-dt-highlighted a{background-color:#B2D2FF;}.yui-skin-sam .yui-dt-list tr.yui-dt-highlighted,.yui-skin-sam .yui-dt-list tr.yui-dt-highlighted td.yui-dt-asc,.yui-skin-sam .yui-dt-list tr.yui-dt-highlighted td.yui-dt-desc,.yui-skin-sam .yui-dt-list tr.yui-dt-even td.yui-dt-highlighted,.yui-skin-sam .yui-dt-list tr.yui-dt-odd td.yui-dt-highlighted{cursor:pointer;background-color:#B2D2FF;}.yui-skin-sam th.yui-dt-selected,.yui-skin-sam th.yui-dt-selected a{background-color:#446CD7;}.yui-skin-sam tr.yui-dt-selected td,.yui-skin-sam tr.yui-dt-selected td.yui-dt-asc,.yui-skin-sam tr.yui-dt-selected td.yui-dt-desc{background-color:#426FD9;color:#FFF;}.yui-skin-sam tr.yui-dt-even td.yui-dt-selected,.yui-skin-sam tr.yui-dt-odd td.yui-dt-selected{background-color:#446CD7;color:#FFF;}.yui-skin-sam .yui-dt-list th.yui-dt-selected,.yui-skin-sam .yui-dt-list th.yui-dt-selected a{background-color:#446CD7;}
-.yui-skin-sam .yui-dt-list tr.yui-dt-selected td,.yui-skin-sam .yui-dt-list tr.yui-dt-selected td.yui-dt-asc,.yui-skin-sam .yui-dt-list tr.yui-dt-selected td.yui-dt-desc{background-color:#426FD9;color:#FFF;}.yui-skin-sam .yui-dt-list tr.yui-dt-even td.yui-dt-selected,.yui-skin-sam .yui-dt-list tr.yui-dt-odd td.yui-dt-selected{background-color:#446CD7;color:#FFF;}.yui-skin-sam .yui-dt-paginator{display:block;margin:6px 0;white-space:nowrap;}.yui-skin-sam .yui-dt-paginator .yui-dt-first,.yui-skin-sam .yui-dt-paginator .yui-dt-last,.yui-skin-sam .yui-dt-paginator .yui-dt-selected{padding:2px 6px;}.yui-skin-sam .yui-dt-paginator a.yui-dt-first,.yui-skin-sam .yui-dt-paginator a.yui-dt-last{text-decoration:none;}.yui-skin-sam .yui-dt-paginator .yui-dt-previous,.yui-skin-sam .yui-dt-paginator .yui-dt-next{display:none;}.yui-skin-sam a.yui-dt-page{border:1px solid #CBCBCB;padding:2px 6px;text-decoration:none;background-color:#fff;}.yui-skin-sam .yui-dt-selected{border:1px solid #fff;background-color:#fff;}
diff --git a/koha-tmpl/intranet-tmpl/prog/en/lib/yui/datatable/assets/skins/sam/dt-arrow-dn.png b/koha-tmpl/intranet-tmpl/prog/en/lib/yui/datatable/assets/skins/sam/dt-arrow-dn.png
deleted file mode 100644 (file)
index 85fda0b..0000000
Binary files a/koha-tmpl/intranet-tmpl/prog/en/lib/yui/datatable/assets/skins/sam/dt-arrow-dn.png and /dev/null differ
diff --git a/koha-tmpl/intranet-tmpl/prog/en/lib/yui/datatable/assets/skins/sam/dt-arrow-up.png b/koha-tmpl/intranet-tmpl/prog/en/lib/yui/datatable/assets/skins/sam/dt-arrow-up.png
deleted file mode 100644 (file)
index 1c67431..0000000
Binary files a/koha-tmpl/intranet-tmpl/prog/en/lib/yui/datatable/assets/skins/sam/dt-arrow-up.png and /dev/null differ
diff --git a/koha-tmpl/intranet-tmpl/prog/en/lib/yui/datatable/datatable-debug.js b/koha-tmpl/intranet-tmpl/prog/en/lib/yui/datatable/datatable-debug.js
deleted file mode 100644 (file)
index e1f3f1b..0000000
+++ /dev/null
@@ -1,17360 +0,0 @@
-/*
-Copyright (c) 2009, Yahoo! Inc. All rights reserved.
-Code licensed under the BSD License:
-http://developer.yahoo.net/yui/license.txt
-version: 2.8.0r4
-*/
-/**
- * Mechanism to execute a series of callbacks in a non-blocking queue.  Each callback is executed via setTimout unless configured with a negative timeout, in which case it is run in blocking mode in the same execution thread as the previous callback.  Callbacks can be function references or object literals with the following keys:
- * <ul>
- *    <li><code>method</code> - {Function} REQUIRED the callback function.</li>
- *    <li><code>scope</code> - {Object} the scope from which to execute the callback.  Default is the global window scope.</li>
- *    <li><code>argument</code> - {Array} parameters to be passed to method as individual arguments.</li>
- *    <li><code>timeout</code> - {number} millisecond delay to wait after previous callback completion before executing this callback.  Negative values cause immediate blocking execution.  Default 0.</li>
- *    <li><code>until</code> - {Function} boolean function executed before each iteration.  Return true to indicate completion and proceed to the next callback.</li>
- *    <li><code>iterations</code> - {Number} number of times to execute the callback before proceeding to the next callback in the chain. Incompatible with <code>until</code>.</li>
- * </ul>
- *
- * @namespace YAHOO.util
- * @class Chain
- * @constructor
- * @param callback* {Function|Object} Any number of callbacks to initialize the queue
-*/
-YAHOO.util.Chain = function () {
-    /**
-     * The callback queue
-     * @property q
-     * @type {Array}
-     * @private
-     */
-    this.q = [].slice.call(arguments);
-
-    /**
-     * Event fired when the callback queue is emptied via execution (not via
-     * a call to chain.stop().
-     * @event end
-     */
-    this.createEvent('end');
-};
-
-YAHOO.util.Chain.prototype = {
-    /**
-     * Timeout id used to pause or stop execution and indicate the execution state of the Chain.  0 indicates paused or stopped, -1 indicates blocking execution, and any positive number indicates non-blocking execution.
-     * @property id
-     * @type {number}
-     * @private
-     */
-    id   : 0,
-
-    /**
-     * Begin executing the chain, or resume execution from the last paused position.
-     * @method run
-     * @return {Chain} the Chain instance
-     */
-    run : function () {
-        // Grab the first callback in the queue
-        var c  = this.q[0],
-            fn;
-
-        // If there is no callback in the queue or the Chain is currently
-        // in an execution mode, return
-        if (!c) {
-            this.fireEvent('end');
-            return this;
-        } else if (this.id) {
-            return this;
-        }
-
-        fn = c.method || c;
-
-        if (typeof fn === 'function') {
-            var o    = c.scope || {},
-                args = c.argument || [],
-                ms   = c.timeout || 0,
-                me   = this;
-                
-            if (!(args instanceof Array)) {
-                args = [args];
-            }
-
-            // Execute immediately if the callback timeout is negative.
-            if (ms < 0) {
-                this.id = ms;
-                if (c.until) {
-                    for (;!c.until();) {
-                        // Execute the callback from scope, with argument
-                        fn.apply(o,args);
-                    }
-                } else if (c.iterations) {
-                    for (;c.iterations-- > 0;) {
-                        fn.apply(o,args);
-                    }
-                } else {
-                    fn.apply(o,args);
-                }
-                this.q.shift();
-                this.id = 0;
-                return this.run();
-            } else {
-                // If the until condition is set, check if we're done
-                if (c.until) {
-                    if (c.until()) {
-                        // Shift this callback from the queue and execute the next
-                        // callback
-                        this.q.shift();
-                        return this.run();
-                    }
-                // Otherwise if either iterations is not set or we're
-                // executing the last iteration, shift callback from the queue
-                } else if (!c.iterations || !--c.iterations) {
-                    this.q.shift();
-                }
-
-                // Otherwise set to execute after the configured timeout
-                this.id = setTimeout(function () {
-                    // Execute the callback from scope, with argument
-                    fn.apply(o,args);
-                    // Check if the Chain was not paused from inside the callback
-                    if (me.id) {
-                        // Indicate ready to run state
-                        me.id = 0;
-                        // Start the fun all over again
-                        me.run();
-                    }
-                },ms);
-            }
-        }
-
-        return this;
-    },
-    
-    /**
-     * Add a callback to the end of the queue
-     * @method add
-     * @param c {Function|Object} the callback function ref or object literal
-     * @return {Chain} the Chain instance
-     */
-    add  : function (c) {
-        this.q.push(c);
-        return this;
-    },
-
-    /**
-     * Pause the execution of the Chain after the current execution of the
-     * current callback completes.  If called interstitially, clears the
-     * timeout for the pending callback. Paused Chains can be restarted with
-     * chain.run()
-     * @method pause
-     * @return {Chain} the Chain instance
-     */
-    pause: function () {
-        // Conditional added for Caja compatibility
-        if (this.id > 0) {
-            clearTimeout(this.id);
-        }
-        this.id = 0;
-        return this;
-    },
-
-    /**
-     * Stop and clear the Chain's queue after the current execution of the
-     * current callback completes.
-     * @method stop
-     * @return {Chain} the Chain instance
-     */
-    stop : function () { 
-        this.pause();
-        this.q = [];
-        return this;
-    }
-};
-YAHOO.lang.augmentProto(YAHOO.util.Chain,YAHOO.util.EventProvider);
-
-/****************************************************************************/
-/****************************************************************************/
-/****************************************************************************/
-
-/**
- * The ColumnSet class defines and manages a DataTable's Columns,
- * including nested hierarchies and access to individual Column instances.
- *
- * @namespace YAHOO.widget
- * @class ColumnSet
- * @uses YAHOO.util.EventProvider
- * @constructor
- * @param aDefinitions {Object[]} Array of object literals that define cells in
- * the THEAD.
- */
-YAHOO.widget.ColumnSet = function(aDefinitions) {
-    this._sId = "yui-cs" + YAHOO.widget.ColumnSet._nCount;
-
-    // First clone the defs
-    aDefinitions = YAHOO.widget.DataTable._cloneObject(aDefinitions);
-    this._init(aDefinitions);
-
-    YAHOO.widget.ColumnSet._nCount++;
-    YAHOO.log("ColumnSet initialized", "info", this.toString());
-};
-
-/////////////////////////////////////////////////////////////////////////////
-//
-// Private member variables
-//
-/////////////////////////////////////////////////////////////////////////////
-
-/**
- * Internal class variable to index multiple ColumnSet instances.
- *
- * @property ColumnSet._nCount
- * @type Number
- * @private
- * @static
- */
-YAHOO.widget.ColumnSet._nCount = 0;
-
-YAHOO.widget.ColumnSet.prototype = {
-    /**
-     * Unique instance name.
-     *
-     * @property _sId
-     * @type String
-     * @private
-     */
-    _sId : null,
-
-    /**
-     * Array of object literal Column definitions passed to the constructor.
-     *
-     * @property _aDefinitions
-     * @type Object[]
-     * @private
-     */
-    _aDefinitions : null,
-
-    /////////////////////////////////////////////////////////////////////////////
-    //
-    // Public member variables
-    //
-    /////////////////////////////////////////////////////////////////////////////
-
-    /**
-     * Top-down tree representation of Column hierarchy.
-     *
-     * @property tree
-     * @type YAHOO.widget.Column[]
-     */
-    tree : null,
-
-    /**
-     * Flattened representation of all Columns.
-     *
-     * @property flat
-     * @type YAHOO.widget.Column[]
-     * @default []
-     */
-    flat : null,
-
-    /**
-     * Array of Columns that map one-to-one to a table column.
-     *
-     * @property keys
-     * @type YAHOO.widget.Column[]
-     * @default []
-     */
-    keys : null,
-
-    /**
-     * ID index of nested parent hierarchies for HEADERS accessibility attribute.
-     *
-     * @property headers
-     * @type String[]
-     * @default []
-     */
-    headers : null,
-
-    /////////////////////////////////////////////////////////////////////////////
-    //
-    // Private methods
-    //
-    /////////////////////////////////////////////////////////////////////////////
-
-    /**
-     * Initializes ColumnSet instance with data from Column definitions.
-     *
-     * @method _init
-     * @param aDefinitions {Object[]} Array of object literals that define cells in
-     * the THEAD .
-     * @private
-     */
-
-    _init : function(aDefinitions) {        
-        // DOM tree representation of all Columns
-        var tree = [];
-        // Flat representation of all Columns
-        var flat = [];
-        // Flat representation of only Columns that are meant to display data
-        var keys = [];
-        // Array of HEADERS attribute values for all keys in the "keys" array
-        var headers = [];
-
-        // Tracks current node list depth being tracked
-        var nodeDepth = -1;
-
-        // Internal recursive function to define Column instances
-        var parseColumns = function(nodeList, parent) {
-            // One level down
-            nodeDepth++;
-
-            // Create corresponding tree node if not already there for this depth
-            if(!tree[nodeDepth]) {
-                tree[nodeDepth] = [];
-            }
-
-
-            // Parse each node at this depth for attributes and any children
-            for(var j=0; j<nodeList.length; j++) {
-                var currentNode = nodeList[j];
-
-                // Instantiate a new Column for each node
-                var oColumn = new YAHOO.widget.Column(currentNode);
-                
-                // Cross-reference Column ID back to the original object literal definition
-                currentNode.yuiColumnId = oColumn._sId;
-                
-                // Add the new Column to the flat list
-                flat.push(oColumn);
-
-                // Assign its parent as an attribute, if applicable
-                if(parent) {
-                    oColumn._oParent = parent;
-                }
-
-                // The Column has descendants
-                if(YAHOO.lang.isArray(currentNode.children)) {
-                    oColumn.children = currentNode.children;
-
-                    // Determine COLSPAN value for this Column
-                    var terminalChildNodes = 0;
-                    var countTerminalChildNodes = function(ancestor) {
-                        var descendants = ancestor.children;
-                        // Drill down each branch and count terminal nodes
-                        for(var k=0; k<descendants.length; k++) {
-                            // Keep drilling down
-                            if(YAHOO.lang.isArray(descendants[k].children)) {
-                                countTerminalChildNodes(descendants[k]);
-                            }
-                            // Reached branch terminus
-                            else {
-                                terminalChildNodes++;
-                            }
-                        }
-                    };
-                    countTerminalChildNodes(currentNode);
-                    oColumn._nColspan = terminalChildNodes;
-
-                    // Cascade certain properties to children if not defined on their own
-                    var currentChildren = currentNode.children;
-                    for(var k=0; k<currentChildren.length; k++) {
-                        var child = currentChildren[k];
-                        if(oColumn.className && (child.className === undefined)) {
-                            child.className = oColumn.className;
-                        }
-                        if(oColumn.editor && (child.editor === undefined)) {
-                            child.editor = oColumn.editor;
-                        }
-                        //TODO: Deprecated
-                        if(oColumn.editorOptions && (child.editorOptions === undefined)) {
-                            child.editorOptions = oColumn.editorOptions;
-                        }
-                        if(oColumn.formatter && (child.formatter === undefined)) {
-                            child.formatter = oColumn.formatter;
-                        }
-                        if(oColumn.resizeable && (child.resizeable === undefined)) {
-                            child.resizeable = oColumn.resizeable;
-                        }
-                        if(oColumn.sortable && (child.sortable === undefined)) {
-                            child.sortable = oColumn.sortable;
-                        }
-                        if(oColumn.hidden) {
-                            child.hidden = true;
-                        }
-                        if(oColumn.width && (child.width === undefined)) {
-                            child.width = oColumn.width;
-                        }
-                        if(oColumn.minWidth && (child.minWidth === undefined)) {
-                            child.minWidth = oColumn.minWidth;
-                        }
-                        if(oColumn.maxAutoWidth && (child.maxAutoWidth === undefined)) {
-                            child.maxAutoWidth = oColumn.maxAutoWidth;
-                        }
-                        // Backward compatibility
-                        if(oColumn.type && (child.type === undefined)) {
-                            child.type = oColumn.type;
-                        }
-                        if(oColumn.type && !oColumn.formatter) {
-                            YAHOO.log("The property type has been" +
-                            " deprecated in favor of formatter", "warn", oColumn.toString());
-                            oColumn.formatter = oColumn.type;
-                        }
-                        if(oColumn.text && !YAHOO.lang.isValue(oColumn.label)) {
-                            YAHOO.log("The property text has been" +
-                            " deprecated in favor of label", "warn", oColumn.toString());
-                            oColumn.label = oColumn.text;
-                        }
-                        if(oColumn.parser) {
-                            YAHOO.log("The property parser is no longer supported",
-                            "warn", this.toString());
-                        }
-                        if(oColumn.sortOptions && ((oColumn.sortOptions.ascFunction) ||
-                                (oColumn.sortOptions.descFunction))) {
-                            YAHOO.log("The properties sortOptions.ascFunction and " +
-                            " sortOptions.descFunction have been deprecated in favor " +
-                            " of sortOptions.sortFunction", "warn", oColumn.toString());
-                        }
-                    }
-
-                    // The children themselves must also be parsed for Column instances
-                    if(!tree[nodeDepth+1]) {
-                        tree[nodeDepth+1] = [];
-                    }
-                    parseColumns(currentChildren, oColumn);
-                }
-                // This Column does not have any children
-                else {
-                    oColumn._nKeyIndex = keys.length;
-                    oColumn._nColspan = 1;
-                    keys.push(oColumn);
-                }
-
-                // Add the Column to the top-down tree
-                tree[nodeDepth].push(oColumn);
-            }
-            nodeDepth--;
-        };
-
-        // Parse out Column instances from the array of object literals
-        if(YAHOO.lang.isArray(aDefinitions)) {
-            parseColumns(aDefinitions);
-
-            // Store the array
-            this._aDefinitions = aDefinitions;
-        }
-        else {
-            YAHOO.log("Could not initialize ColumnSet due to invalid definitions","error");
-            return null;
-        }
-
-        var i;
-
-        // Determine ROWSPAN value for each Column in the tree
-        var parseTreeForRowspan = function(tree) {
-            var maxRowDepth = 1;
-            var currentRow;
-            var currentColumn;
-
-            // Calculate the max depth of descendants for this row
-            var countMaxRowDepth = function(row, tmpRowDepth) {
-                tmpRowDepth = tmpRowDepth || 1;
-
-                for(var n=0; n<row.length; n++) {
-                    var col = row[n];
-                    // Column has children, so keep counting
-                    if(YAHOO.lang.isArray(col.children)) {
-                        tmpRowDepth++;
-                        countMaxRowDepth(col.children, tmpRowDepth);
-                        tmpRowDepth--;
-                    }
-                    // No children, is it the max depth?
-                    else {
-                        if(tmpRowDepth > maxRowDepth) {
-                            maxRowDepth = tmpRowDepth;
-                        }
-                    }
-
-                }
-            };
-
-            // Count max row depth for each row
-            for(var m=0; m<tree.length; m++) {
-                currentRow = tree[m];
-                countMaxRowDepth(currentRow);
-
-                // Assign the right ROWSPAN values to each Column in the row
-                for(var p=0; p<currentRow.length; p++) {
-                    currentColumn = currentRow[p];
-                    if(!YAHOO.lang.isArray(currentColumn.children)) {
-                        currentColumn._nRowspan = maxRowDepth;
-                    }
-                    else {
-                        currentColumn._nRowspan = 1;
-                    }
-                }
-
-                // Reset counter for next row
-                maxRowDepth = 1;
-            }
-        };
-        parseTreeForRowspan(tree);
-
-        // Store tree index values
-        for(i=0; i<tree[0].length; i++) {
-            tree[0][i]._nTreeIndex = i;
-        }
-
-        // Store header relationships in an array for HEADERS attribute
-        var recurseAncestorsForHeaders = function(i, oColumn) {
-            headers[i].push(oColumn.getSanitizedKey());
-            if(oColumn._oParent) {
-                recurseAncestorsForHeaders(i, oColumn._oParent);
-            }
-        };
-        for(i=0; i<keys.length; i++) {
-            headers[i] = [];
-            recurseAncestorsForHeaders(i, keys[i]);
-            headers[i] = headers[i].reverse();
-        }
-
-        // Save to the ColumnSet instance
-        this.tree = tree;
-        this.flat = flat;
-        this.keys = keys;
-        this.headers = headers;
-    },
-
-    /////////////////////////////////////////////////////////////////////////////
-    //
-    // Public methods
-    //
-    /////////////////////////////////////////////////////////////////////////////
-
-    /**
-     * Returns unique name of the ColumnSet instance.
-     *
-     * @method getId
-     * @return {String} Unique name of the ColumnSet instance.
-     */
-
-    getId : function() {
-        return this._sId;
-    },
-
-    /**
-     * ColumnSet instance name, for logging.
-     *
-     * @method toString
-     * @return {String} Unique name of the ColumnSet instance.
-     */
-
-    toString : function() {
-        return "ColumnSet instance " + this._sId;
-    },
-
-    /**
-     * Public accessor to the definitions array.
-     *
-     * @method getDefinitions
-     * @return {Object[]} Array of object literal Column definitions.
-     */
-
-    getDefinitions : function() {
-        var aDefinitions = this._aDefinitions;
-        
-        // Internal recursive function to define Column instances
-        var parseColumns = function(nodeList, oSelf) {
-            // Parse each node at this depth for attributes and any children
-            for(var j=0; j<nodeList.length; j++) {
-                var currentNode = nodeList[j];
-                
-                // Get the Column for each node
-                var oColumn = oSelf.getColumnById(currentNode.yuiColumnId);
-                
-                if(oColumn) {    
-                    // Update the current values
-                    var oDefinition = oColumn.getDefinition();
-                    for(var name in oDefinition) {
-                        if(YAHOO.lang.hasOwnProperty(oDefinition, name)) {
-                            currentNode[name] = oDefinition[name];
-                        }
-                    }
-                }
-                            
-                // The Column has descendants
-                if(YAHOO.lang.isArray(currentNode.children)) {
-                    // The children themselves must also be parsed for Column instances
-                    parseColumns(currentNode.children, oSelf);
-                }
-            }
-        };
-
-        parseColumns(aDefinitions, this);
-        this._aDefinitions = aDefinitions;
-        return aDefinitions;
-    },
-
-    /**
-     * Returns Column instance with given ID.
-     *
-     * @method getColumnById
-     * @param column {String} Column ID.
-     * @return {YAHOO.widget.Column} Column instance.
-     */
-
-    getColumnById : function(column) {
-        if(YAHOO.lang.isString(column)) {
-            var allColumns = this.flat;
-            for(var i=allColumns.length-1; i>-1; i--) {
-                if(allColumns[i]._sId === column) {
-                    return allColumns[i];
-                }
-            }
-        }
-        return null;
-    },
-
-    /**
-     * Returns Column instance with given key or ColumnSet key index.
-     *
-     * @method getColumn
-     * @param column {String | Number} Column key or ColumnSet key index.
-     * @return {YAHOO.widget.Column} Column instance.
-     */
-
-    getColumn : function(column) {
-        if(YAHOO.lang.isNumber(column) && this.keys[column]) {
-            return this.keys[column];
-        }
-        else if(YAHOO.lang.isString(column)) {
-            var allColumns = this.flat;
-            var aColumns = [];
-            for(var i=0; i<allColumns.length; i++) {
-                if(allColumns[i].key === column) {
-                    aColumns.push(allColumns[i]);
-                }
-            }
-            if(aColumns.length === 1) {
-                return aColumns[0];
-            }
-            else if(aColumns.length > 1) {
-                return aColumns;
-            }
-        }
-        return null;
-    },
-
-    /**
-     * Public accessor returns array of given Column's desendants (if any), including itself.
-     *
-     * @method getDescendants
-     * @parem {YAHOO.widget.Column} Column instance.
-     * @return {Array} Array including the Column itself and all descendants (if any).
-     */
-    getDescendants : function(oColumn) {
-        var oSelf = this;
-        var allDescendants = [];
-        var i;
-
-        // Recursive function to loop thru all children
-        var parse = function(oParent) {
-            allDescendants.push(oParent);
-            // This Column has children
-            if(oParent.children) {
-                for(i=0; i<oParent.children.length; i++) {
-                    parse(oSelf.getColumn(oParent.children[i].key));
-                }
-            }
-        };
-        parse(oColumn);
-
-        return allDescendants;
-    }
-};
-
-/****************************************************************************/
-/****************************************************************************/
-/****************************************************************************/
-
-/**
- * The Column class defines and manages attributes of DataTable Columns
- *
- * @namespace YAHOO.widget
- * @class Column
- * @constructor
- * @param oConfigs {Object} Object literal of definitions.
- */
-YAHOO.widget.Column = function(oConfigs) {
-    this._sId = "yui-col" + YAHOO.widget.Column._nCount;
-    
-    // Object literal defines Column attributes
-    if(oConfigs && YAHOO.lang.isObject(oConfigs)) {
-        for(var sConfig in oConfigs) {
-            if(sConfig) {
-                this[sConfig] = oConfigs[sConfig];
-            }
-        }
-    }
-
-    // Assign a key if not found
-    if(!YAHOO.lang.isValue(this.key)) {
-        this.key = "yui-dt-col" + YAHOO.widget.Column._nCount;
-    }
-    
-    // Assign a field if not found, defaults to key
-    if(!YAHOO.lang.isValue(this.field)) {
-        this.field = this.key;
-    }
-
-    // Increment counter
-    YAHOO.widget.Column._nCount++;
-
-    // Backward compatibility
-    if(this.width && !YAHOO.lang.isNumber(this.width)) {
-        this.width = null;
-        YAHOO.log("The Column property width must be a number", "warn", this.toString());
-    }
-    if(this.editor && YAHOO.lang.isString(this.editor)) {
-        this.editor = new YAHOO.widget.CellEditor(this.editor, this.editorOptions);
-        YAHOO.log("The Column property editor must be an instance of YAHOO.widget.CellEditor", "warn", this.toString());
-    }
-};
-
-/////////////////////////////////////////////////////////////////////////////
-//
-// Private member variables
-//
-/////////////////////////////////////////////////////////////////////////////
-
-YAHOO.lang.augmentObject(YAHOO.widget.Column, {
-    /**
-     * Internal class variable to index multiple Column instances.
-     *
-     * @property Column._nCount
-     * @type Number
-     * @private
-     * @static
-     */
-    _nCount : 0,
-
-    formatCheckbox : function(elCell, oRecord, oColumn, oData) {
-        YAHOO.log("The method YAHOO.widget.Column.formatCheckbox() has been" +
-        " deprecated in favor of YAHOO.widget.DataTable.formatCheckbox()", "warn",
-        "YAHOO.widget.Column.formatCheckbox");
-        YAHOO.widget.DataTable.formatCheckbox(elCell, oRecord, oColumn, oData);
-    },
-
-    formatCurrency : function(elCell, oRecord, oColumn, oData) {
-        YAHOO.log("The method YAHOO.widget.Column.formatCurrency() has been" +
-        " deprecated in favor of YAHOO.widget.DataTable.formatCurrency()", "warn",
-        "YAHOO.widget.Column.formatCurrency");
-        YAHOO.widget.DataTable.formatCurrency(elCell, oRecord, oColumn, oData);
-    },
-
-    formatDate : function(elCell, oRecord, oColumn, oData) {
-        YAHOO.log("The method YAHOO.widget.Column.formatDate() has been" +
-        " deprecated in favor of YAHOO.widget.DataTable.formatDate()", "warn",
-        "YAHOO.widget.Column.formatDate");
-        YAHOO.widget.DataTable.formatDate(elCell, oRecord, oColumn, oData);
-    },
-
-    formatEmail : function(elCell, oRecord, oColumn, oData) {
-        YAHOO.log("The method YAHOO.widget.Column.formatEmail() has been" +
-        " deprecated in favor of YAHOO.widget.DataTable.formatEmail()", "warn",
-        "YAHOO.widget.Column.formatEmail");
-        YAHOO.widget.DataTable.formatEmail(elCell, oRecord, oColumn, oData);
-    },
-
-    formatLink : function(elCell, oRecord, oColumn, oData) {
-        YAHOO.log("The method YAHOO.widget.Column.formatLink() has been" +
-        " deprecated in favor of YAHOO.widget.DataTable.formatLink()", "warn",
-        "YAHOO.widget.Column.formatLink");
-        YAHOO.widget.DataTable.formatLink(elCell, oRecord, oColumn, oData);
-    },
-
-    formatNumber : function(elCell, oRecord, oColumn, oData) {
-        YAHOO.log("The method YAHOO.widget.Column.formatNumber() has been" +
-        " deprecated in favor of YAHOO.widget.DataTable.formatNumber()", "warn",
-        "YAHOO.widget.Column.formatNumber");
-        YAHOO.widget.DataTable.formatNumber(elCell, oRecord, oColumn, oData);
-    },
-
-    formatSelect : function(elCell, oRecord, oColumn, oData) {
-        YAHOO.log("The method YAHOO.widget.Column.formatSelect() has been" +
-        " deprecated in favor of YAHOO.widget.DataTable.formatDropdown()", "warn",
-        "YAHOO.widget.Column.formatSelect");
-        YAHOO.widget.DataTable.formatDropdown(elCell, oRecord, oColumn, oData);
-    }
-});
-
-YAHOO.widget.Column.prototype = {
-    /**
-     * Unique String identifier assigned at instantiation.
-     *
-     * @property _sId
-     * @type String
-     * @private
-     */
-    _sId : null,
-
-    /**
-     * Reference to Column's current position index within its ColumnSet's keys
-     * array, if applicable. This property only applies to non-nested and bottom-
-     * level child Columns.
-     *
-     * @property _nKeyIndex
-     * @type Number
-     * @private
-     */
-    _nKeyIndex : null,
-
-    /**
-     * Reference to Column's current position index within its ColumnSet's tree
-     * array, if applicable. This property only applies to non-nested and top-
-     * level parent Columns.
-     *
-     * @property _nTreeIndex
-     * @type Number
-     * @private
-     */
-    _nTreeIndex : null,
-
-    /**
-     * Number of table cells the Column spans.
-     *
-     * @property _nColspan
-     * @type Number
-     * @private
-     */
-    _nColspan : 1,
-
-    /**
-     * Number of table rows the Column spans.
-     *
-     * @property _nRowspan
-     * @type Number
-     * @private
-     */
-    _nRowspan : 1,
-
-    /**
-     * Column's parent Column instance, or null.
-     *
-     * @property _oParent
-     * @type YAHOO.widget.Column
-     * @private
-     */
-    _oParent : null,
-
-    /**
-     * The DOM reference to the associated TH element.
-     *
-     * @property _elTh
-     * @type HTMLElement
-     * @private
-     */
-    _elTh : null,
-
-    /**
-     * The DOM reference to the associated TH element's liner DIV element.
-     *
-     * @property _elThLiner
-     * @type HTMLElement
-     * @private
-     */
-    _elThLiner : null,
-
-    /**
-     * The DOM reference to the associated TH element's label SPAN element.
-     *
-     * @property _elThLabel
-     * @type HTMLElement
-     * @private
-     */
-    _elThLabel : null,
-
-    /**
-     * The DOM reference to the associated resizerelement (if any).
-     *
-     * @property _elResizer
-     * @type HTMLElement
-     * @private
-     */
-    _elResizer : null,
-
-    /**
-     * Internal width tracker.
-     *
-     * @property _nWidth
-     * @type Number
-     * @private
-     */
-    _nWidth : null,
-
-    /**
-     * For unreg() purposes, a reference to the Column's DragDrop instance.
-     *
-     * @property _dd
-     * @type YAHOO.util.DragDrop
-     * @private
-     */
-    _dd : null,
-
-    /**
-     * For unreg() purposes, a reference to the Column resizer's DragDrop instance.
-     *
-     * @property _ddResizer
-     * @type YAHOO.util.DragDrop
-     * @private
-     */
-    _ddResizer : null,
-
-    /////////////////////////////////////////////////////////////////////////////
-    //
-    // Public member variables
-    //
-    /////////////////////////////////////////////////////////////////////////////
-
-    /**
-     * Unique name, required.
-     *
-     * @property key
-     * @type String
-     */
-    key : null,
-
-    /**
-     * Associated database field, or null.
-     *
-     * @property field
-     * @type String
-     */
-    field : null,
-
-    /**
-     * Text or HTML for display as Column's label in the TH element.
-     *
-     * @property label
-     * @type String
-     */
-    label : null,
-
-    /**
-     * Column head cell ABBR for accessibility.
-     *
-     * @property abbr
-     * @type String
-     */
-    abbr : null,
-
-    /**
-     * Array of object literals that define children (nested headers) of a Column.
-     *
-     * @property children
-     * @type Object[]
-     */
-    children : null,
-
-    /**
-     * Column width (in pixels).
-     *
-     * @property width
-     * @type Number
-     */
-    width : null,
-
-    /**
-     * Minimum Column width (in pixels).
-     *
-     * @property minWidth
-     * @type Number
-     * @default null
-     */
-    minWidth : null,
-
-    /**
-     * When a width is not defined for a Column, maxAutoWidth defines an upper
-     * limit that the Column should be auto-sized to. If resizeable is enabled, 
-     * users may still resize to a greater width. Most useful for Columns intended
-     * to hold long unbroken, unwrapped Strings, such as URLs, to prevent very
-     * wide Columns from disrupting visual readability by inducing truncation.
-     *
-     * @property maxAutoWidth
-     * @type Number
-     * @default null
-     */
-    maxAutoWidth : null,
-
-    /**
-     * True if Column is in hidden state.
-     *
-     * @property hidden
-     * @type Boolean
-     * @default false     
-     */
-    hidden : false,
-
-    /**
-     * True if Column is in selected state.
-     *
-     * @property selected
-     * @type Boolean
-     * @default false     
-     */
-    selected : false,
-
-    /**
-     * Custom CSS class or array of classes to be applied to every cell in the Column.
-     *
-     * @property className
-     * @type String || String[]
-     */
-    className : null,
-
-    /**
-     * Defines a format function.
-     *
-     * @property formatter
-     * @type String || HTMLFunction
-     */
-    formatter : null,
-    
-    /**
-     * Config passed to YAHOO.util.Number.format() by the 'currency' Column formatter.
-     *
-     * @property currencyOptions
-     * @type Object
-     * @default null
-     */
-    currencyOptions : null,
-
-    /**
-     * Config passed to YAHOO.util.Date.format() by the 'date' Column formatter.
-     *
-     * @property dateOptions
-     * @type Object
-     * @default null
-     */
-    dateOptions : null,
-
-    /**
-     * Array of dropdown values for formatter:"dropdown" cases. Can either be a simple array (e.g.,
-     * ["Alabama","Alaska","Arizona","Arkansas"]) or a an array of objects (e.g.,
-     * [{label:"Alabama", value:"AL"}, {label:"Alaska", value:"AK"},
-     * {label:"Arizona", value:"AZ"}, {label:"Arkansas", value:"AR"}]).
-     *
-     * @property dropdownOptions
-     * @type String[] | Object[]
-     */
-    dropdownOptions : null,
-     
-    /**
-     * A CellEditor instance, otherwise Column is not editable.     
-     *
-     * @property editor
-     * @type YAHOO.widget.CellEditor
-     */
-    editor : null,
-
-    /**
-     * True if Column is resizeable, false otherwise. The Drag & Drop Utility is
-     * required to enable this feature. Only bottom-level and non-nested Columns are
-     * resizeble. 
-     *
-     * @property resizeable
-     * @type Boolean
-     * @default false
-     */
-    resizeable : false,
-
-    /**
-     * True if Column is sortable, false otherwise.
-     *
-     * @property sortable
-     * @type Boolean
-     * @default false
-     */
-    sortable : false,
-
-    /**
-     * @property sortOptions.defaultOrder
-     * @deprecated Use sortOptions.defaultDir.
-     */
-    /**
-     * Default sort direction for Column: YAHOO.widget.DataTable.CLASS_ASC or YAHOO.widget.DataTable.CLASS_DESC.
-     *
-     * @property sortOptions.defaultDir
-     * @type String
-     * @default null
-     */
-    /**
-     * Custom field to sort on.
-     *
-     * @property sortOptions.field
-     * @type String
-     * @default null
-     */
-    /**
-     * Custom sort handler. Signature: sortFunction(a, b, desc, field) where field is the sortOptions.field value
-     *
-     * @property sortOptions.sortFunction
-     * @type Function
-     * @default null
-     */
-    sortOptions : null,
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-    /////////////////////////////////////////////////////////////////////////////
-    //
-    // Public methods
-    //
-    /////////////////////////////////////////////////////////////////////////////
-
-    /**
-     * Returns unique ID string.
-     *
-     * @method getId
-     * @return {String} Unique ID string.
-     */
-    getId : function() {
-        return this._sId;
-    },
-
-    /**
-     * Column instance name, for logging.
-     *
-     * @method toString
-     * @return {String} Column's unique name.
-     */
-    toString : function() {
-        return "Column instance " + this._sId;
-    },
-
-    /**
-     * Returns object literal definition.
-     *
-     * @method getDefinition
-     * @return {Object} Object literal definition.
-     */
-    getDefinition : function() {
-        var oDefinition = {};
-        
-        // Update the definition
-        oDefinition.abbr = this.abbr;
-        oDefinition.className = this.className;
-        oDefinition.editor = this.editor;
-        oDefinition.editorOptions = this.editorOptions; //TODO: deprecated
-        oDefinition.field = this.field;
-        oDefinition.formatter = this.formatter;
-        oDefinition.hidden = this.hidden;
-        oDefinition.key = this.key;
-        oDefinition.label = this.label;
-        oDefinition.minWidth = this.minWidth;
-        oDefinition.maxAutoWidth = this.maxAutoWidth;
-        oDefinition.resizeable = this.resizeable;
-        oDefinition.selected = this.selected;
-        oDefinition.sortable = this.sortable;
-        oDefinition.sortOptions = this.sortOptions;
-        oDefinition.width = this.width;
-
-        return oDefinition;
-    },
-
-    /**
-     * Returns unique Column key.
-     *
-     * @method getKey
-     * @return {String} Column key.
-     */
-    getKey : function() {
-        return this.key;
-    },
-    
-    /**
-     * Returns field.
-     *
-     * @method getField
-     * @return {String} Column field.
-     */
-    getField : function() {
-        return this.field;
-    },
-    
-    /**
-     * Returns Column key which has been sanitized for DOM (class and ID) usage
-     * starts with letter, contains only letters, numbers, hyphen, or period.
-     *
-     * @method getSanitizedKey
-     * @return {String} Sanitized Column key.
-     */
-    getSanitizedKey : function() {
-        return this.getKey().replace(/[^\w\-]/g,"");
-    },
-
-    /**
-     * Public accessor returns Column's current position index within its
-     * ColumnSet's keys array, if applicable. Only non-nested and bottom-level
-     * child Columns will return a value.
-     *
-     * @method getKeyIndex
-     * @return {Number} Position index, or null.
-     */
-    getKeyIndex : function() {
-        return this._nKeyIndex;
-    },
-
-    /**
-     * Public accessor returns Column's current position index within its
-     * ColumnSet's tree array, if applicable. Only non-nested and top-level parent
-     * Columns will return a value;
-     *
-     * @method getTreeIndex
-     * @return {Number} Position index, or null.
-     */
-    getTreeIndex : function() {
-        return this._nTreeIndex;
-    },
-
-    /**
-     * Public accessor returns Column's parent instance if any, or null otherwise.
-     *
-     * @method getParent
-     * @return {YAHOO.widget.Column} Column's parent instance.
-     */
-    getParent : function() {
-        return this._oParent;
-    },
-
-    /**
-     * Public accessor returns Column's calculated COLSPAN value.
-     *
-     * @method getColspan
-     * @return {Number} Column's COLSPAN value.
-     */
-    getColspan : function() {
-        return this._nColspan;
-    },
-    // Backward compatibility
-    getColSpan : function() {
-        YAHOO.log("The method getColSpan() has been" +
-        " deprecated in favor of getColspan()", "warn", this.toString());
-        return this.getColspan();
-    },
-
-    /**
-     * Public accessor returns Column's calculated ROWSPAN value.
-     *
-     * @method getRowspan
-     * @return {Number} Column's ROWSPAN value.
-     */
-    getRowspan : function() {
-        return this._nRowspan;
-    },
-
-    /**
-     * Returns DOM reference to the key TH element.
-     *
-     * @method getThEl
-     * @return {HTMLElement} TH element.
-     */
-    getThEl : function() {
-        return this._elTh;
-    },
-
-    /**
-     * Returns DOM reference to the TH's liner DIV element. Introduced since
-     * resizeable Columns may have an extra resizer liner, making the DIV liner
-     * not reliably the TH element's first child.               
-     *
-     * @method getThLInerEl
-     * @return {HTMLElement} TH element.
-     */
-    getThLinerEl : function() {
-        return this._elThLiner;
-    },
-    
-    /**
-     * Returns DOM reference to the resizer element, or null.
-     *
-     * @method getResizerEl
-     * @return {HTMLElement} DIV element.
-     */
-    getResizerEl : function() {
-        return this._elResizer;
-    },
-
-    // Backward compatibility
-    /**
-     * @method getColEl
-     * @deprecated Use getThEl
-     */
-    getColEl : function() {
-        YAHOO.log("The method getColEl() has been" +
-        " deprecated in favor of getThEl()", "warn",
-        this.toString());
-        return this.getThEl();
-    },
-    getIndex : function() {
-        YAHOO.log("The method getIndex() has been" +
-        " deprecated in favor of getKeyIndex()", "warn",
-        this.toString());
-        return this.getKeyIndex();
-    },
-    format : function() {
-        YAHOO.log("The method format() has been deprecated in favor of the " +
-        "DataTable method formatCell()", "error", this.toString());
-    }
-};
-
-/****************************************************************************/
-/****************************************************************************/
-/****************************************************************************/
-
-/**
- * Sort static utility to support Column sorting.
- *
- * @namespace YAHOO.util
- * @class Sort
- * @static
- */
-YAHOO.util.Sort = {
-    /////////////////////////////////////////////////////////////////////////////
-    //
-    // Public methods
-    //
-    /////////////////////////////////////////////////////////////////////////////
-
-    /**
-     * Comparator function for simple case-insensitive string sorting.
-     *
-     * @method compare
-     * @param a {Object} First sort argument.
-     * @param b {Object} Second sort argument.
-     * @param desc {Boolean} True if sort direction is descending, false if
-     * sort direction is ascending.
-     */
-    compare: function(a, b, desc) {
-        if((a === null) || (typeof a == "undefined")) {
-            if((b === null) || (typeof b == "undefined")) {
-                return 0;
-            }
-            else {
-                return 1;
-            }
-        }
-        else if((b === null) || (typeof b == "undefined")) {
-            return -1;
-        }
-
-        if(a.constructor == String) {
-            a = a.toLowerCase();
-        }
-        if(b.constructor == String) {
-            b = b.toLowerCase();
-        }
-        if(a < b) {
-            return (desc) ? 1 : -1;
-        }
-        else if (a > b) {
-            return (desc) ? -1 : 1;
-        }
-        else {
-            return 0;
-        }
-    }
-};
-
-/****************************************************************************/
-/****************************************************************************/
-/****************************************************************************/
-
-/**
- * ColumnDD subclasses DragDrop to support rearrangeable Columns.
- *
- * @namespace YAHOO.util
- * @class ColumnDD
- * @extends YAHOO.util.DDProxy
- * @constructor
- * @param oDataTable {YAHOO.widget.DataTable} DataTable instance.
- * @param oColumn {YAHOO.widget.Column} Column instance.
- * @param elTh {HTMLElement} TH element reference.
- * @param elTarget {HTMLElement} Drag target element.
- */
-YAHOO.widget.ColumnDD = function(oDataTable, oColumn, elTh, elTarget) {
-    if(oDataTable && oColumn && elTh && elTarget) {
-        this.datatable = oDataTable;
-        this.table = oDataTable.getTableEl();
-        this.column = oColumn;
-        this.headCell = elTh;
-        this.pointer = elTarget;
-        this.newIndex = null;
-        this.init(elTh);
-        this.initFrame(); // Needed for DDProxy
-        this.invalidHandleTypes = {};
-
-        // Set top/bottom padding to account for children of nested columns
-        this.setPadding(10, 0, (this.datatable.getTheadEl().offsetHeight + 10) , 0);
-
-        YAHOO.util.Event.on(window, 'resize', function() {
-            this.initConstraints();
-        }, this, true);
-    }
-    else {
-        YAHOO.log("Column dragdrop could not be created","warn",oDataTable.toString());
-    }
-};
-
-if(YAHOO.util.DDProxy) {
-    YAHOO.extend(YAHOO.widget.ColumnDD, YAHOO.util.DDProxy, {
-        initConstraints: function() {
-            //Get the top, right, bottom and left positions
-            var region = YAHOO.util.Dom.getRegion(this.table),
-                //Get the element we are working on
-                el = this.getEl(),
-                //Get the xy position of it
-                xy = YAHOO.util.Dom.getXY(el),
-                //Get the width and height
-                width = parseInt(YAHOO.util.Dom.getStyle(el, 'width'), 10),
-                height = parseInt(YAHOO.util.Dom.getStyle(el, 'height'), 10),
-                //Set left to x minus left
-                left = ((xy[0] - region.left) + 15), //Buffer of 15px
-                //Set right to right minus x minus width
-                right = ((region.right - xy[0] - width) + 15);
-    
-            //Set the constraints based on the above calculations
-            this.setXConstraint(left, right);
-            this.setYConstraint(10, 10);            
-        },
-        _resizeProxy: function() {
-            YAHOO.widget.ColumnDD.superclass._resizeProxy.apply(this, arguments);
-            var dragEl = this.getDragEl(),
-                el = this.getEl();
-
-            YAHOO.util.Dom.setStyle(this.pointer, 'height', (this.table.parentNode.offsetHeight + 10) + 'px');
-            YAHOO.util.Dom.setStyle(this.pointer, 'display', 'block');
-            var xy = YAHOO.util.Dom.getXY(el);
-            YAHOO.util.Dom.setXY(this.pointer, [xy[0], (xy[1] - 5)]);
-            
-            YAHOO.util.Dom.setStyle(dragEl, 'height', this.datatable.getContainerEl().offsetHeight + "px");
-            YAHOO.util.Dom.setStyle(dragEl, 'width', (parseInt(YAHOO.util.Dom.getStyle(dragEl, 'width'),10) + 4) + 'px');
-            YAHOO.util.Dom.setXY(this.dragEl, xy);
-        },
-        onMouseDown: function() {
-                this.initConstraints();
-                this.resetConstraints();
-        },
-        clickValidator: function(e) {
-            if(!this.column.hidden) {
-                var target = YAHOO.util.Event.getTarget(e);
-                return ( this.isValidHandleChild(target) &&
-                            (this.id == this.handleElId ||
-                                this.DDM.handleWasClicked(target, this.id)) );
-            }
-        },
-        onDragOver: function(ev, id) {
-            // Validate target as a Column
-            var target = this.datatable.getColumn(id);
-            if(target) {                
-                // Validate target as a top-level parent
-                var targetIndex = target.getTreeIndex();
-                while((targetIndex === null) && target.getParent()) {
-                    target = target.getParent();
-                    targetIndex = target.getTreeIndex();
-                }
-                if(targetIndex !== null) {
-                    // Are we placing to left or right of target?
-                    var elTarget = target.getThEl();
-                    var newIndex = targetIndex;
-                    var mouseX = YAHOO.util.Event.getPageX(ev),
-                        targetX = YAHOO.util.Dom.getX(elTarget),
-                        midX = targetX + ((YAHOO.util.Dom.get(elTarget).offsetWidth)/2),
-                        currentIndex =  this.column.getTreeIndex();
-                    
-                    if (mouseX < midX) {
-                       YAHOO.util.Dom.setX(this.pointer, targetX);
-                    } else {
-                        var targetWidth = parseInt(elTarget.offsetWidth, 10);
-                        YAHOO.util.Dom.setX(this.pointer, (targetX + targetWidth));
-                        newIndex++;
-                    }
-                    if (targetIndex > currentIndex) {
-                        newIndex--;
-                    }
-                    if(newIndex < 0) {
-                        newIndex = 0;
-                    }
-                    else if(newIndex > this.datatable.getColumnSet().tree[0].length) {
-                        newIndex = this.datatable.getColumnSet().tree[0].length;
-                    }
-                    this.newIndex = newIndex;
-                }
-            }
-        },
-        onDragDrop: function() {
-            this.datatable.reorderColumn(this.column, this.newIndex);
-        },
-        endDrag: function() {
-            this.newIndex = null;
-            YAHOO.util.Dom.setStyle(this.pointer, 'display', 'none');
-        }
-    });
-}
-
-/****************************************************************************/
-/****************************************************************************/
-/****************************************************************************/
-
-/**
- * ColumnResizer subclasses DragDrop to support resizeable Columns.
- *
- * @namespace YAHOO.util
- * @class ColumnResizer
- * @extends YAHOO.util.DDProxy
- * @constructor
- * @param oDataTable {YAHOO.widget.DataTable} DataTable instance.
- * @param oColumn {YAHOO.widget.Column} Column instance.
- * @param elTh {HTMLElement} TH element reference.
- * @param sHandleElId {String} DOM ID of the handle element that causes the resize.
- * @param elProxy {HTMLElement} Resizer proxy element.
- */
-YAHOO.util.ColumnResizer = function(oDataTable, oColumn, elTh, sHandleId, elProxy) {
-    if(oDataTable && oColumn && elTh && sHandleId) {
-        this.datatable = oDataTable;
-        this.column = oColumn;
-        this.headCell = elTh;
-        this.headCellLiner = oColumn.getThLinerEl();
-        this.resizerLiner = elTh.firstChild;
-        this.init(sHandleId, sHandleId, {dragOnly:true, dragElId: elProxy.id});
-        this.initFrame(); // Needed for proxy
-        this.resetResizerEl(); // Needed when rowspan > 0
-
-        // Set right padding for bug 1858462
-        this.setPadding(0, 1, 0, 0);
-    }
-    else {
-        YAHOO.log("Column resizer could not be created","warn",oDataTable.toString());
-    }
-};
-
-if(YAHOO.util.DD) {
-    YAHOO.extend(YAHOO.util.ColumnResizer, YAHOO.util.DDProxy, {
-        /////////////////////////////////////////////////////////////////////////////
-        //
-        // Public methods
-        //
-        /////////////////////////////////////////////////////////////////////////////
-        /**
-         * Resets resizer element.
-         *
-         * @method resetResizerEl
-         */
-        resetResizerEl : function() {
-            var resizerStyle = YAHOO.util.Dom.get(this.handleElId).style;
-            resizerStyle.left = "auto";
-            resizerStyle.right = 0;
-            resizerStyle.top = "auto";
-            resizerStyle.bottom = 0;
-            resizerStyle.height = this.headCell.offsetHeight+"px";
-        },
-    
-        /////////////////////////////////////////////////////////////////////////////
-        //
-        // Public DOM event handlers
-        //
-        /////////////////////////////////////////////////////////////////////////////
-    
-        /**
-         * Handles mouseup events on the Column resizer.
-         *
-         * @method onMouseUp
-         * @param e {string} The mouseup event
-         */
-        onMouseUp : function(e) {
-            // Reset height of all resizer els in case TH's have changed height
-            var allKeys = this.datatable.getColumnSet().keys,
-                col;
-            for(var i=0, len=allKeys.length; i<len; i++) {
-                col = allKeys[i];
-                if(col._ddResizer) {
-                    col._ddResizer.resetResizerEl();
-                }
-            }
-            this.resetResizerEl();
-            
-            var el = this.headCellLiner;
-            var newWidth = el.offsetWidth -
-                (parseInt(YAHOO.util.Dom.getStyle(el,"paddingLeft"),10)|0) -
-                (parseInt(YAHOO.util.Dom.getStyle(el,"paddingRight"),10)|0);
-
-            this.datatable.fireEvent("columnResizeEvent", {column:this.column,target:this.headCell,width:newWidth});
-        },
-    
-        /**
-         * Handles mousedown events on the Column resizer.
-         *
-         * @method onMouseDown
-         * @param e {string} The mousedown event
-         */
-        onMouseDown : function(e) {
-            this.startWidth = this.headCellLiner.offsetWidth;
-            this.startX = YAHOO.util.Event.getXY(e)[0];
-            this.nLinerPadding = (parseInt(YAHOO.util.Dom.getStyle(this.headCellLiner,"paddingLeft"),10)|0) +
-                    (parseInt(YAHOO.util.Dom.getStyle(this.headCellLiner,"paddingRight"),10)|0);
-        },
-    
-        /**
-         * Custom clickValidator to ensure Column is not in hidden state.
-         *
-         * @method clickValidator
-         * @param {Event} e
-         * @private
-         */
-        clickValidator : function(e) {
-            if(!this.column.hidden) {
-                var target = YAHOO.util.Event.getTarget(e);
-                return ( this.isValidHandleChild(target) &&
-                            (this.id == this.handleElId ||
-                                this.DDM.handleWasClicked(target, this.id)) );
-            }
-        },
-    
-        /**
-         * Handles start drag on the Column resizer.
-         *
-         * @method startDrag
-         * @param e {string} The drag event
-         */
-        startDrag : function() {
-            // Shrinks height of all resizer els to not hold open TH els
-            var allKeys = this.datatable.getColumnSet().keys,
-                thisKey = this.column.getKeyIndex(),
-                col;
-            for(var i=0, len=allKeys.length; i<len; i++) {
-                col = allKeys[i];
-                if(col._ddResizer) {
-                    YAHOO.util.Dom.get(col._ddResizer.handleElId).style.height = "1em";
-                }
-            }
-        },
-
-        /**
-         * Handles drag events on the Column resizer.
-         *
-         * @method onDrag
-         * @param e {string} The drag event
-         */
-        onDrag : function(e) {
-            var newX = YAHOO.util.Event.getXY(e)[0];
-            if(newX > YAHOO.util.Dom.getX(this.headCellLiner)) {
-                var offsetX = newX - this.startX;
-                var newWidth = this.startWidth + offsetX - this.nLinerPadding;
-                if(newWidth > 0) {
-                    this.datatable.setColumnWidth(this.column, newWidth);
-                }
-            }
-        }
-    });
-}
-
-/////////////////////////////////////////////////////////////////////////////
-//
-// Deprecated
-//
-/////////////////////////////////////////////////////////////////////////////
-
-/**
- * @property editorOptions
- * @deprecated Pass configs directly to CellEditor constructor. 
- */
-
-
-(function () {
-
-var lang   = YAHOO.lang,
-    util   = YAHOO.util,
-    widget = YAHOO.widget,
-    
-    Dom    = util.Dom,
-    Ev     = util.Event,
-    DT     = widget.DataTable;
-
-/****************************************************************************/
-/****************************************************************************/
-/****************************************************************************/
-
-/**
- * A RecordSet defines and manages a set of Records.
- *
- * @namespace YAHOO.widget
- * @class RecordSet
- * @param data {Object || Object[]} An object literal or an array of data.
- * @constructor
- */
-YAHOO.widget.RecordSet = function(data) {
-    // Internal variables
-    this._sId = "yui-rs" + widget.RecordSet._nCount;
-    widget.RecordSet._nCount++;
-    this._records = [];
-    //this._length = 0;
-
-    if(data) {
-        if(lang.isArray(data)) {
-            this.addRecords(data);
-        }
-        else if(lang.isObject(data)) {
-            this.addRecord(data);
-        }
-    }
-
-    YAHOO.log("RecordSet initialized", "info", this.toString());
-};
-
-var RS = widget.RecordSet;
-
-/**
- * Internal class variable to name multiple Recordset instances.
- *
- * @property RecordSet._nCount
- * @type Number
- * @private
- * @static
- */
-RS._nCount = 0;
-
-RS.prototype = {
-
-    /////////////////////////////////////////////////////////////////////////////
-    //
-    // Private member variables
-    //
-    /////////////////////////////////////////////////////////////////////////////
-    /**
-     * Unique String identifier assigned at instantiation.
-     *
-     * @property _sId
-     * @type String
-     * @private
-     */
-    _sId : null,
-
-    /**
-     * Internal counter of how many Records are in the RecordSet.
-     *
-     * @property _length
-     * @type Number
-     * @private
-     * @deprecated No longer used
-     */
-    //_length : null,
-
-    /////////////////////////////////////////////////////////////////////////////
-    //
-    // Private methods
-    //
-    /////////////////////////////////////////////////////////////////////////////
-
-    /**
-     * Adds one Record to the RecordSet at the given index. If index is null,
-     * then adds the Record to the end of the RecordSet.
-     *
-     * @method _addRecord
-     * @param oData {Object} An object literal of data.
-     * @param index {Number} (optional) Position index.
-     * @return {YAHOO.widget.Record} A Record instance.
-     * @private
-     */
-    _addRecord : function(oData, index) {
-        var oRecord = new YAHOO.widget.Record(oData);
-        
-        if(YAHOO.lang.isNumber(index) && (index > -1)) {
-            this._records.splice(index,0,oRecord);
-        }
-        else {
-            //index = this.getLength();
-            //this._records[index] = oRecord;
-            this._records[this._records.length] = oRecord;
-        }
-        //this._length++;
-        return oRecord;
-    },
-
-    /**
-     * Sets/replaces one Record to the RecordSet at the given index.  Existing
-     * Records with higher indexes are not shifted.  If no index specified, the
-     * Record is added to the end of the RecordSet.
-     *
-     * @method _setRecord
-     * @param oData {Object} An object literal of data.
-     * @param index {Number} (optional) Position index.
-     * @return {YAHOO.widget.Record} A Record instance.
-     * @private
-     */
-    _setRecord : function(oData, index) {
-        if (!lang.isNumber(index) || index < 0) {
-            index = this._records.length;
-        }
-        return (this._records[index] = new widget.Record(oData));
-        /*
-        if(lang.isNumber(index) && (index > -1)) {
-            this._records[index] = oRecord;
-            if((index+1) > this.getLength()) {
-                this._length = index+1;
-            }
-        }
-        else {
-            this._records[this.getLength()] = oRecord;
-            this._length++;
-        }
-        return oRecord;
-        */
-    },
-
-    /**
-     * Deletes Records from the RecordSet at the given index. If range is null,
-     * then only one Record is deleted.
-     *
-     * @method _deleteRecord
-     * @param index {Number} Position index.
-     * @param range {Number} (optional) How many Records to delete
-     * @private
-     */
-    _deleteRecord : function(index, range) {
-        if(!lang.isNumber(range) || (range < 0)) {
-            range = 1;
-        }
-        this._records.splice(index, range);
-        //this._length = this._length - range;
-    },
-
-    /////////////////////////////////////////////////////////////////////////////
-    //
-    // Public methods
-    //
-    /////////////////////////////////////////////////////////////////////////////
-
-    /**
-     * Returns unique name of the RecordSet instance.
-     *
-     * @method getId
-     * @return {String} Unique name of the RecordSet instance.
-     */
-    getId : function() {
-        return this._sId;
-    },
-
-    /**
-     * Public accessor to the unique name of the RecordSet instance.
-     *
-     * @method toString
-     * @return {String} Unique name of the RecordSet instance.
-     */
-    toString : function() {
-        return "RecordSet instance " + this._sId;
-    },
-
-    /**
-     * Returns the number of Records held in the RecordSet.
-     *
-     * @method getLength
-     * @return {Number} Number of records in the RecordSet.
-     */
-    getLength : function() {
-            //return this._length;
-            return this._records.length;
-    },
-
-    /**
-     * Returns Record by ID or RecordSet position index.
-     *
-     * @method getRecord
-     * @param record {YAHOO.widget.Record | Number | String} Record instance,
-     * RecordSet position index, or Record ID.
-     * @return {YAHOO.widget.Record} Record object.
-     */
-    getRecord : function(record) {
-        var i;
-        if(record instanceof widget.Record) {
-            for(i=0; i<this._records.length; i++) {
-                if(this._records[i] && (this._records[i]._sId === record._sId)) {
-                    return record;
-                }
-            }
-        }
-        else if(lang.isNumber(record)) {
-            if((record > -1) && (record < this.getLength())) {
-                return this._records[record];
-            }
-        }
-        else if(lang.isString(record)) {
-            for(i=0; i<this._records.length; i++) {
-                if(this._records[i] && (this._records[i]._sId === record)) {
-                    return this._records[i];
-                }
-            }
-        }
-        // Not a valid Record for this RecordSet
-        return null;
-
-    },
-
-    /**
-     * Returns an array of Records from the RecordSet.
-     *
-     * @method getRecords
-     * @param index {Number} (optional) Recordset position index of which Record to
-     * start at.
-     * @param range {Number} (optional) Number of Records to get.
-     * @return {YAHOO.widget.Record[]} Array of Records starting at given index and
-     * length equal to given range. If index is not given, all Records are returned.
-     */
-    getRecords : function(index, range) {
-        if(!lang.isNumber(index)) {
-            return this._records;
-        }
-        if(!lang.isNumber(range)) {
-            return this._records.slice(index);
-        }
-        return this._records.slice(index, index+range);
-    },
-
-    /**
-     * Returns a boolean indicating whether Records exist in the RecordSet at the
-     * specified index range.  Returns true if and only if a Record exists at each
-     * index in the range.
-     * @method hasRecords
-     * @param index
-     * @param range
-     * @return {Boolean} true if all indices are populated in the RecordSet
-     */
-    hasRecords : function (index, range) {
-        var recs = this.getRecords(index,range);
-        for (var i = 0; i < range; ++i) {
-            if (typeof recs[i] === 'undefined') {
-                return false;
-            }
-        }
-        return true;
-    },
-
-    /**
-     * Returns current position index for the given Record.
-     *
-     * @method getRecordIndex
-     * @param oRecord {YAHOO.widget.Record} Record instance.
-     * @return {Number} Record's RecordSet position index.
-     */
-
-    getRecordIndex : function(oRecord) {
-        if(oRecord) {
-            for(var i=this._records.length-1; i>-1; i--) {
-                if(this._records[i] && oRecord.getId() === this._records[i].getId()) {
-                    return i;
-                }
-            }
-        }
-        return null;
-
-    },
-
-    /**
-     * Adds one Record to the RecordSet at the given index. If index is null,
-     * then adds the Record to the end of the RecordSet.
-     *
-     * @method addRecord
-     * @param oData {Object} An object literal of data.
-     * @param index {Number} (optional) Position index.
-     * @return {YAHOO.widget.Record} A Record instance.
-     */
-    addRecord : function(oData, index) {
-        if(lang.isObject(oData)) {
-            var oRecord = this._addRecord(oData, index);
-            this.fireEvent("recordAddEvent",{record:oRecord,data:oData});
-            YAHOO.log("Added Record at index " + index +
-                    " with data " + lang.dump(oData), "info", this.toString());
-            return oRecord;
-        }
-        else {
-            YAHOO.log("Could not add Record with data" +
-                    lang.dump(oData), "info", this.toString());
-            return null;
-        }
-    },
-
-    /**
-     * Adds multiple Records at once to the RecordSet at the given index with the
-     * given object literal data. If index is null, then the new Records are
-     * added to the end of the RecordSet.
-     *
-     * @method addRecords
-     * @param aData {Object[]} An object literal data or an array of data object literals.
-     * @param index {Number} (optional) Position index.
-     * @return {YAHOO.widget.Record[]} An array of Record instances.
-     */
-    addRecords : function(aData, index) {
-        if(lang.isArray(aData)) {
-            var newRecords = [],
-                idx,i,len;
-
-            index = lang.isNumber(index) ? index : this._records.length;
-            idx = index;
-
-            // Can't go backwards bc we need to preserve order
-            for(i=0,len=aData.length; i<len; ++i) {
-                if(lang.isObject(aData[i])) {
-                    var record = this._addRecord(aData[i], idx++);
-                    newRecords.push(record);
-                }
-           }
-            this.fireEvent("recordsAddEvent",{records:newRecords,data:aData});
-            YAHOO.log("Added " + newRecords.length + " Record(s) at index " + index +
-                    " with data " + lang.dump(aData), "info", this.toString());
-           return newRecords;
-        }
-        else if(lang.isObject(aData)) {
-            var oRecord = this._addRecord(aData);
-            this.fireEvent("recordsAddEvent",{records:[oRecord],data:aData});
-            YAHOO.log("Added 1 Record at index " + index +
-                    " with data " + lang.dump(aData), "info", this.toString());
-            return oRecord;
-        }
-        else {
-            YAHOO.log("Could not add Records with data " +
-                    lang.dump(aData), "info", this.toString());
-            return null;
-        }
-    },
-
-    /**
-     * Sets or replaces one Record to the RecordSet at the given index. Unlike
-     * addRecord, an existing Record at that index is not shifted to preserve it.
-     * If no index is specified, it adds the Record to the end of the RecordSet.
-     *
-     * @method setRecord
-     * @param oData {Object} An object literal of data.
-     * @param index {Number} (optional) Position index.
-     * @return {YAHOO.widget.Record} A Record instance.
-     */
-    setRecord : function(oData, index) {
-        if(lang.isObject(oData)) {
-            var oRecord = this._setRecord(oData, index);
-            this.fireEvent("recordSetEvent",{record:oRecord,data:oData});
-            YAHOO.log("Set Record at index " + index +
-                    " with data " + lang.dump(oData), "info", this.toString());
-            return oRecord;
-        }
-        else {
-            YAHOO.log("Could not set Record with data" +
-                    lang.dump(oData), "info", this.toString());
-            return null;
-        }
-    },
-
-    /**
-     * Sets or replaces multiple Records at once to the RecordSet with the given
-     * data, starting at the given index. If index is not specified, then the new
-     * Records are added to the end of the RecordSet.
-     *
-     * @method setRecords
-     * @param aData {Object[]} An array of object literal data.
-     * @param index {Number} (optional) Position index.
-     * @return {YAHOO.widget.Record[]} An array of Record instances.
-     */
-    setRecords : function(aData, index) {
-        var Rec   = widget.Record,
-            a     = lang.isArray(aData) ? aData : [aData],
-            added = [],
-            i = 0, l = a.length, j = 0;
-
-        index = parseInt(index,10)|0;
-
-        for(; i < l; ++i) {
-            if (typeof a[i] === 'object' && a[i]) {
-                added[j++] = this._records[index + i] = new Rec(a[i]);
-            }
-        }
-
-        this.fireEvent("recordsSetEvent",{records:added,data:aData});
-        // Backward compatibility for bug 1918245
-        this.fireEvent("recordsSet",{records:added,data:aData});
-        YAHOO.log("Set "+j+" Record(s) at index "+index, "info",
-                  this.toString());
-
-        if (a.length && !added.length) {
-            YAHOO.log("Could not set Records with data " +
-                    lang.dump(aData), "info", this.toString());
-        }
-
-        return added.length > 1 ? added : added[0];
-    },
-
-    /**
-     * Updates given Record with given data.
-     *
-     * @method updateRecord
-     * @param record {YAHOO.widget.Record | Number | String} A Record instance,
-     * a RecordSet position index, or a Record ID.
-     * @param oData {Object} Object literal of new data.
-     * @return {YAHOO.widget.Record} Updated Record, or null.
-     */
-    updateRecord : function(record, oData) {
-        var oRecord = this.getRecord(record);
-        if(oRecord && lang.isObject(oData)) {
-            // Copy data from the Record for the event that gets fired later
-            var oldData = {};
-            for(var key in oRecord._oData) {
-                if(lang.hasOwnProperty(oRecord._oData, key)) {
-                    oldData[key] = oRecord._oData[key];
-                }
-            }
-            oRecord._oData = oData;
-            this.fireEvent("recordUpdateEvent",{record:oRecord,newData:oData,oldData:oldData});
-            YAHOO.log("Record at index " + this.getRecordIndex(oRecord) +
-                    " updated with data " + lang.dump(oData), "info", this.toString());
-            return oRecord;
-        }
-        else {
-            YAHOO.log("Could not update Record " + record, "error", this.toString());
-            return null;
-        }
-    },
-
-    /**
-     * @method updateKey
-     * @deprecated Use updateRecordValue
-     */
-    updateKey : function(record, sKey, oData) {
-        this.updateRecordValue(record, sKey, oData);
-    },
-    /**
-     * Sets given Record at given key to given data.
-     *
-     * @method updateRecordValue
-     * @param record {YAHOO.widget.Record | Number | String} A Record instance,
-     * a RecordSet position index, or a Record ID.
-     * @param sKey {String} Key name.
-     * @param oData {Object} New data.
-     */
-    updateRecordValue : function(record, sKey, oData) {
-        var oRecord = this.getRecord(record);
-        if(oRecord) {
-            var oldData = null;
-            var keyValue = oRecord._oData[sKey];
-            // Copy data from the Record for the event that gets fired later
-            if(keyValue && lang.isObject(keyValue)) {
-                oldData = {};
-                for(var key in keyValue)  {
-                    if(lang.hasOwnProperty(keyValue, key)) {
-                        oldData[key] = keyValue[key];
-                    }
-                }
-            }
-            // Copy by value
-            else {
-                oldData = keyValue;
-            }
-
-            oRecord._oData[sKey] = oData;
-            this.fireEvent("keyUpdateEvent",{record:oRecord,key:sKey,newData:oData,oldData:oldData});
-            this.fireEvent("recordValueUpdateEvent",{record:oRecord,key:sKey,newData:oData,oldData:oldData});
-            YAHOO.log("Key \"" + sKey +
-                    "\" for Record at index " + this.getRecordIndex(oRecord) +
-                    " updated to \"" + lang.dump(oData) + "\"", "info", this.toString());
-        }
-        else {
-            YAHOO.log("Could not update key " + sKey + " for Record " + record, "error", this.toString());
-        }
-    },
-
-    /**
-     * Replaces all Records in RecordSet with new object literal data.
-     *
-     * @method replaceRecords
-     * @param data {Object || Object[]} An object literal of data or an array of
-     * data object literals.
-     * @return {YAHOO.widget.Record || YAHOO.widget.Record[]} A Record instance or
-     * an array of Records.
-     */
-    replaceRecords : function(data) {
-        this.reset();
-        return this.addRecords(data);
-    },
-
-    /**
-     * Sorts all Records by given function. Records keep their unique IDs but will
-     * have new RecordSet position indexes.
-     *
-     * @method sortRecords
-     * @param fnSort {Function} Reference to a sort function.
-     * @param desc {Boolean} True if sort direction is descending, false if sort
-     * direction is ascending.
-     * @param field {String} The field to sort by, from sortOptions.field
-     * @return {YAHOO.widget.Record[]} Sorted array of Records.
-     */
-    sortRecords : function(fnSort, desc, field) {
-        return this._records.sort(function(a, b) {return fnSort(a, b, desc, field);});
-    },
-
-    /**
-     * Reverses all Records, so ["one", "two", "three"] becomes ["three", "two", "one"].
-     *
-     * @method reverseRecords
-     * @return {YAHOO.widget.Record[]} Reverse-sorted array of Records.
-     */
-    reverseRecords : function() {
-        return this._records.reverse();
-    },
-
-    /**
-     * Removes the Record at the given position index from the RecordSet. If a range
-     * is also provided, removes that many Records, starting from the index. Length
-     * of RecordSet is correspondingly shortened.
-     *
-     * @method deleteRecord
-     * @param index {Number} Record's RecordSet position index.
-     * @param range {Number} (optional) How many Records to delete.
-     * @return {Object} A copy of the data held by the deleted Record.
-     */
-    deleteRecord : function(index) {
-        if(lang.isNumber(index) && (index > -1) && (index < this.getLength())) {
-            // Copy data from the Record for the event that gets fired later
-            var oData = widget.DataTable._cloneObject(this.getRecord(index).getData());
-            
-            this._deleteRecord(index);
-            this.fireEvent("recordDeleteEvent",{data:oData,index:index});
-            YAHOO.log("Record deleted at index " + index +
-                    " and containing data " + lang.dump(oData), "info", this.toString());
-            return oData;
-        }
-        else {
-            YAHOO.log("Could not delete Record at index " + index, "error", this.toString());
-            return null;
-        }
-    },
-
-    /**
-     * Removes the Record at the given position index from the RecordSet. If a range
-     * is also provided, removes that many Records, starting from the index. Length
-     * of RecordSet is correspondingly shortened.
-     *
-     * @method deleteRecords
-     * @param index {Number} Record's RecordSet position index.
-     * @param range {Number} (optional) How many Records to delete.
-     * @return {Object[]} An array of copies of the data held by the deleted Records.     
-     */
-    deleteRecords : function(index, range) {
-        if(!lang.isNumber(range)) {
-            range = 1;
-        }
-        if(lang.isNumber(index) && (index > -1) && (index < this.getLength())) {
-            var recordsToDelete = this.getRecords(index, range);
-            // Copy data from each Record for the event that gets fired later
-            var deletedData = [];
-            
-            for(var i=0; i<recordsToDelete.length; i++) {
-                deletedData[deletedData.length] = widget.DataTable._cloneObject(recordsToDelete[i]);
-            }
-            this._deleteRecord(index, range);
-
-            this.fireEvent("recordsDeleteEvent",{data:deletedData,index:index});
-            YAHOO.log(range + "Record(s) deleted at index " + index +
-                    " and containing data " + lang.dump(deletedData), "info", this.toString());
-
-            return deletedData;
-        }
-        else {
-            YAHOO.log("Could not delete Records at index " + index, "error", this.toString());
-            return null;
-        }
-    },
-
-    /**
-     * Deletes all Records from the RecordSet.
-     *
-     * @method reset
-     */
-    reset : function() {
-        this._records = [];
-        //this._length = 0;
-        this.fireEvent("resetEvent");
-        YAHOO.log("All Records deleted from RecordSet", "info", this.toString());
-    }
-};
-
-/////////////////////////////////////////////////////////////////////////////
-//
-// Custom Events
-//
-/////////////////////////////////////////////////////////////////////////////
-
-// RecordSet uses EventProvider
-lang.augmentProto(RS, util.EventProvider);
-
-/**
- * Fired when a new Record is added to the RecordSet.
- *
- * @event recordAddEvent
- * @param oArgs.record {YAHOO.widget.Record} The Record instance.
- * @param oArgs.data {Object} Data added.
- */
-
-/**
- * Fired when multiple Records are added to the RecordSet at once.
- *
- * @event recordsAddEvent
- * @param oArgs.records {YAHOO.widget.Record[]} An array of Record instances.
- * @param oArgs.data {Object[]} Data added.
- */
-
-/**
- * Fired when a Record is set in the RecordSet.
- *
- * @event recordSetEvent
- * @param oArgs.record {YAHOO.widget.Record} The Record instance.
- * @param oArgs.data {Object} Data added.
- */
-
-/**
- * Fired when multiple Records are set in the RecordSet at once.
- *
- * @event recordsSetEvent
- * @param oArgs.records {YAHOO.widget.Record[]} An array of Record instances.
- * @param oArgs.data {Object[]} Data added.
- */
-
-/**
- * Fired when a Record is updated with new data.
- *
- * @event recordUpdateEvent
- * @param oArgs.record {YAHOO.widget.Record} The Record instance.
- * @param oArgs.newData {Object} New data.
- * @param oArgs.oldData {Object} Old data.
- */
-
-/**
- * Fired when a Record is deleted from the RecordSet.
- *
- * @event recordDeleteEvent
- * @param oArgs.data {Object} A copy of the data held by the Record,
- * or an array of data object literals if multiple Records were deleted at once.
- * @param oArgs.index {Object} Index of the deleted Record.
- */
-
-/**
- * Fired when multiple Records are deleted from the RecordSet at once.
- *
- * @event recordsDeleteEvent
- * @param oArgs.data {Object[]} An array of data object literals copied
- * from the Records.
- * @param oArgs.index {Object} Index of the first deleted Record.
- */
-
-/**
- * Fired when all Records are deleted from the RecordSet at once.
- *
- * @event resetEvent
- */
-
-/**
- * @event keyUpdateEvent    
- * @deprecated Use recordValueUpdateEvent     
- */
-
-/**
- * Fired when a Record value is updated with new data.
- *
- * @event recordValueUpdateEvent
- * @param oArgs.record {YAHOO.widget.Record} The Record instance.
- * @param oArgs.key {String} The updated key.
- * @param oArgs.newData {Object} New data.
- * @param oArgs.oldData {Object} Old data.
- *
- */
-
-
-/****************************************************************************/
-/****************************************************************************/
-/****************************************************************************/
-
-/**
- * The Record class defines a DataTable record.
- *
- * @namespace YAHOO.widget
- * @class Record
- * @constructor
- * @param oConfigs {Object} (optional) Object literal of key/value pairs.
- */
-YAHOO.widget.Record = function(oLiteral) {
-    this._nCount = widget.Record._nCount;
-    this._sId = "yui-rec" + this._nCount;
-    widget.Record._nCount++;
-    this._oData = {};
-    if(lang.isObject(oLiteral)) {
-        for(var sKey in oLiteral) {
-            if(lang.hasOwnProperty(oLiteral, sKey)) {
-                this._oData[sKey] = oLiteral[sKey];
-            }
-        }
-    }
-};
-
-/////////////////////////////////////////////////////////////////////////////
-//
-// Private member variables
-//
-/////////////////////////////////////////////////////////////////////////////
-
-/**
- * Internal class variable to give unique IDs to Record instances.
- *
- * @property Record._nCount
- * @type Number
- * @private
- */
-YAHOO.widget.Record._nCount = 0;
-
-YAHOO.widget.Record.prototype = {
-    /**
-     * Immutable unique count assigned at instantiation. Remains constant while a
-     * Record's position index can change from sorting.
-     *
-     * @property _nCount
-     * @type Number
-     * @private
-     */
-    _nCount : null,
-
-    /**
-     * Immutable unique ID assigned at instantiation. Remains constant while a
-     * Record's position index can change from sorting.
-     *
-     * @property _sId
-     * @type String
-     * @private
-     */
-    _sId : null,
-
-    /**
-     * Holds data for the Record in an object literal.
-     *
-     * @property _oData
-     * @type Object
-     * @private
-     */
-    _oData : null,
-
-    /////////////////////////////////////////////////////////////////////////////
-    //
-    // Public member variables
-    //
-    /////////////////////////////////////////////////////////////////////////////
-
-    /////////////////////////////////////////////////////////////////////////////
-    //
-    // Public methods
-    //
-    /////////////////////////////////////////////////////////////////////////////
-
-    /**
-     * Returns unique count assigned at instantiation.
-     *
-     * @method getCount
-     * @return Number
-     */
-    getCount : function() {
-        return this._nCount;
-    },
-
-    /**
-     * Returns unique ID assigned at instantiation.
-     *
-     * @method getId
-     * @return String
-     */
-    getId : function() {
-        return this._sId;
-    },
-
-    /**
-     * Returns data for the Record for a field if given, or the entire object
-     * literal otherwise.
-     *
-     * @method getData
-     * @param sField {String} (Optional) The field from which to retrieve data value.
-     * @return Object
-     */
-    getData : function(sField) {
-        if(lang.isString(sField)) {
-            return this._oData[sField];
-        }
-        else {
-            return this._oData;
-        }
-    },
-
-    /**
-     * Sets given data at the given key. Use the RecordSet method updateRecordValue to trigger
-     * events. 
-     *
-     * @method setData
-     * @param sKey {String} The key of the new value.
-     * @param oData {MIXED} The new value.
-     */
-    setData : function(sKey, oData) {
-        this._oData[sKey] = oData;
-    }
-};
-
-})();
-
-(function () {
-
-var lang   = YAHOO.lang,
-    util   = YAHOO.util,
-    widget = YAHOO.widget,
-    ua     = YAHOO.env.ua,
-    
-    Dom    = util.Dom,
-    Ev     = util.Event,
-    DS     = util.DataSourceBase;
-
-/**
- * The DataTable widget provides a progressively enhanced DHTML control for
- * displaying tabular data across A-grade browsers.
- *
- * @module datatable
- * @requires yahoo, dom, event, element, datasource
- * @optional dragdrop, dragdrop
- * @title DataTable Widget
- */
-
-/****************************************************************************/
-/****************************************************************************/
-/****************************************************************************/
-
-/**
- * DataTable class for the YUI DataTable widget.
- *
- * @namespace YAHOO.widget
- * @class DataTable
- * @extends YAHOO.util.Element
- * @constructor
- * @param elContainer {HTMLElement} Container element for the TABLE.
- * @param aColumnDefs {Object[]} Array of object literal Column definitions.
- * @param oDataSource {YAHOO.util.DataSource} DataSource instance.
- * @param oConfigs {object} (optional) Object literal of configuration values.
- */
-YAHOO.widget.DataTable = function(elContainer,aColumnDefs,oDataSource,oConfigs) {
-    var DT = widget.DataTable;
-    
-    ////////////////////////////////////////////////////////////////////////////
-    // Backward compatibility for SDT, but prevent infinite loops
-    
-    if(oConfigs && oConfigs.scrollable) {
-        return new YAHOO.widget.ScrollingDataTable(elContainer,aColumnDefs,oDataSource,oConfigs);
-    }
-    
-    ////////////////////////////////////////////////////////////////////////////
-    // Initialization
-
-    // Internal vars
-    this._nIndex = DT._nCount;
-    this._sId = "yui-dt"+this._nIndex;
-    this._oChainRender = new YAHOO.util.Chain();
-    this._oChainRender.subscribe("end",this._onRenderChainEnd, this, true);
-
-    // Initialize configs
-    this._initConfigs(oConfigs);
-
-    // Initialize DataSource
-    this._initDataSource(oDataSource);
-    if(!this._oDataSource) {
-        YAHOO.log("Could not instantiate DataTable due to an invalid DataSource", "error", this.toString());
-        return;
-    }
-
-    // Initialize ColumnSet
-    this._initColumnSet(aColumnDefs);
-    if(!this._oColumnSet) {
-        YAHOO.log("Could not instantiate DataTable due to an invalid ColumnSet", "error", this.toString());
-        return;
-    }
-
-    // Initialize RecordSet
-    this._initRecordSet();
-    if(!this._oRecordSet) {
-    }
-
-    // Initialize Attributes
-    DT.superclass.constructor.call(this, elContainer, this.configs);
-
-    // Initialize DOM elements
-    var okDom = this._initDomElements(elContainer);
-    if(!okDom) {
-        YAHOO.log("Could not instantiate DataTable due to an invalid DOM element", "error", this.toString());
-        return;
-    }
-            
-    // Show message as soon as config is available
-    this.showTableMessage(this.get("MSG_LOADING"), DT.CLASS_LOADING);
-    
-    ////////////////////////////////////////////////////////////////////////////
-    // Once per instance
-    this._initEvents();
-
-    DT._nCount++;
-    DT._nCurrentCount++;
-    
-    ////////////////////////////////////////////////////////////////////////////
-    // Data integration
-
-    // Send a simple initial request
-    var oCallback = {
-        success : this.onDataReturnSetRows,
-        failure : this.onDataReturnSetRows,
-        scope   : this,
-        argument: this.getState()
-    };
-    
-    var initialLoad = this.get("initialLoad");
-    if(initialLoad === true) {
-        this._oDataSource.sendRequest(this.get("initialRequest"), oCallback);
-    }
-    // Do not send an initial request at all
-    else if(initialLoad === false) {
-        this.showTableMessage(this.get("MSG_EMPTY"), DT.CLASS_EMPTY);
-    }
-    // Send an initial request with a custom payload
-    else {
-        var oCustom = initialLoad || {};
-        oCallback.argument = oCustom.argument || {};
-        this._oDataSource.sendRequest(oCustom.request, oCallback);
-    }
-};
-
-var DT = widget.DataTable;
-
-/////////////////////////////////////////////////////////////////////////////
-//
-// Public constants
-//
-/////////////////////////////////////////////////////////////////////////////
-
-lang.augmentObject(DT, {
-
-    /**
-     * Class name assigned to outer DataTable container.
-     *
-     * @property DataTable.CLASS_DATATABLE
-     * @type String
-     * @static
-     * @final
-     * @default "yui-dt"
-     */
-    CLASS_DATATABLE : "yui-dt",
-
-    /**
-     * Class name assigned to liner DIV elements.
-     *
-     * @property DataTable.CLASS_LINER
-     * @type String
-     * @static
-     * @final
-     * @default "yui-dt-liner"
-     */
-    CLASS_LINER : "yui-dt-liner",
-
-    /**
-     * Class name assigned to display label elements.
-     *
-     * @property DataTable.CLASS_LABEL
-     * @type String
-     * @static
-     * @final
-     * @default "yui-dt-label"
-     */
-    CLASS_LABEL : "yui-dt-label",
-
-    /**
-     * Class name assigned to messaging elements.
-     *
-     * @property DataTable.CLASS_MESSAGE
-     * @type String
-     * @static
-     * @final
-     * @default "yui-dt-message"
-     */
-    CLASS_MESSAGE : "yui-dt-message",
-
-    /**
-     * Class name assigned to mask element when DataTable is disabled.
-     *
-     * @property DataTable.CLASS_MASK
-     * @type String
-     * @static
-     * @final
-     * @default "yui-dt-mask"
-     */
-    CLASS_MASK : "yui-dt-mask",
-
-    /**
-     * Class name assigned to data elements.
-     *
-     * @property DataTable.CLASS_DATA
-     * @type String
-     * @static
-     * @final
-     * @default "yui-dt-data"
-     */
-    CLASS_DATA : "yui-dt-data",
-
-    /**
-     * Class name assigned to Column drag target.
-     *
-     * @property DataTable.CLASS_COLTARGET
-     * @type String
-     * @static
-     * @final
-     * @default "yui-dt-coltarget"
-     */
-    CLASS_COLTARGET : "yui-dt-coltarget",
-
-    /**
-     * Class name assigned to resizer handle elements.
-     *
-     * @property DataTable.CLASS_RESIZER
-     * @type String
-     * @static
-     * @final
-     * @default "yui-dt-resizer"
-     */
-    CLASS_RESIZER : "yui-dt-resizer",
-
-    /**
-     * Class name assigned to resizer liner elements.
-     *
-     * @property DataTable.CLASS_RESIZERLINER
-     * @type String
-     * @static
-     * @final
-     * @default "yui-dt-resizerliner"
-     */
-    CLASS_RESIZERLINER : "yui-dt-resizerliner",
-
-    /**
-     * Class name assigned to resizer proxy elements.
-     *
-     * @property DataTable.CLASS_RESIZERPROXY
-     * @type String
-     * @static
-     * @final
-     * @default "yui-dt-resizerproxy"
-     */
-    CLASS_RESIZERPROXY : "yui-dt-resizerproxy",
-
-    /**
-     * Class name assigned to CellEditor container elements.
-     *
-     * @property DataTable.CLASS_EDITOR
-     * @type String
-     * @static
-     * @final
-     * @default "yui-dt-editor"
-     */
-    CLASS_EDITOR : "yui-dt-editor",
-
-    /**
-     * Class name assigned to paginator container elements.
-     *
-     * @property DataTable.CLASS_PAGINATOR
-     * @type String
-     * @static
-     * @final
-     * @default "yui-dt-paginator"
-     */
-    CLASS_PAGINATOR : "yui-dt-paginator",
-
-    /**
-     * Class name assigned to page number indicators.
-     *
-     * @property DataTable.CLASS_PAGE
-     * @type String
-     * @static
-     * @final
-     * @default "yui-dt-page"
-     */
-    CLASS_PAGE : "yui-dt-page",
-
-    /**
-     * Class name assigned to default indicators.
-     *
-     * @property DataTable.CLASS_DEFAULT
-     * @type String
-     * @static
-     * @final
-     * @default "yui-dt-default"
-     */
-    CLASS_DEFAULT : "yui-dt-default",
-
-    /**
-     * Class name assigned to previous indicators.
-     *
-     * @property DataTable.CLASS_PREVIOUS
-     * @type String
-     * @static
-     * @final
-     * @default "yui-dt-previous"
-     */
-    CLASS_PREVIOUS : "yui-dt-previous",
-
-    /**
-     * Class name assigned next indicators.
-     *
-     * @property DataTable.CLASS_NEXT
-     * @type String
-     * @static
-     * @final
-     * @default "yui-dt-next"
-     */
-    CLASS_NEXT : "yui-dt-next",
-
-    /**
-     * Class name assigned to first elements.
-     *
-     * @property DataTable.CLASS_FIRST
-     * @type String
-     * @static
-     * @final
-     * @default "yui-dt-first"
-     */
-    CLASS_FIRST : "yui-dt-first",
-
-    /**
-     * Class name assigned to last elements.
-     *
-     * @property DataTable.CLASS_LAST
-     * @type String
-     * @static
-     * @final
-     * @default "yui-dt-last"
-     */
-    CLASS_LAST : "yui-dt-last",
-
-    /**
-     * Class name assigned to even elements.
-     *
-     * @property DataTable.CLASS_EVEN
-     * @type String
-     * @static
-     * @final
-     * @default "yui-dt-even"
-     */
-    CLASS_EVEN : "yui-dt-even",
-
-    /**
-     * Class name assigned to odd elements.
-     *
-     * @property DataTable.CLASS_ODD
-     * @type String
-     * @static
-     * @final
-     * @default "yui-dt-odd"
-     */
-    CLASS_ODD : "yui-dt-odd",
-
-    /**
-     * Class name assigned to selected elements.
-     *
-     * @property DataTable.CLASS_SELECTED
-     * @type String
-     * @static
-     * @final
-     * @default "yui-dt-selected"
-     */
-    CLASS_SELECTED : "yui-dt-selected",
-
-    /**
-     * Class name assigned to highlighted elements.
-     *
-     * @property DataTable.CLASS_HIGHLIGHTED
-     * @type String
-     * @static
-     * @final
-     * @default "yui-dt-highlighted"
-     */
-    CLASS_HIGHLIGHTED : "yui-dt-highlighted",
-
-    /**
-     * Class name assigned to hidden elements.
-     *
-     * @property DataTable.CLASS_HIDDEN
-     * @type String
-     * @static
-     * @final
-     * @default "yui-dt-hidden"
-     */
-    CLASS_HIDDEN : "yui-dt-hidden",
-
-    /**
-     * Class name assigned to disabled elements.
-     *
-     * @property DataTable.CLASS_DISABLED
-     * @type String
-     * @static
-     * @final
-     * @default "yui-dt-disabled"
-     */
-    CLASS_DISABLED : "yui-dt-disabled",
-
-    /**
-     * Class name assigned to empty indicators.
-     *
-     * @property DataTable.CLASS_EMPTY
-     * @type String
-     * @static
-     * @final
-     * @default "yui-dt-empty"
-     */
-    CLASS_EMPTY : "yui-dt-empty",
-
-    /**
-     * Class name assigned to loading indicatorx.
-     *
-     * @property DataTable.CLASS_LOADING
-     * @type String
-     * @static
-     * @final
-     * @default "yui-dt-loading"
-     */
-    CLASS_LOADING : "yui-dt-loading",
-
-    /**
-     * Class name assigned to error indicators.
-     *
-     * @property DataTable.CLASS_ERROR
-     * @type String
-     * @static
-     * @final
-     * @default "yui-dt-error"
-     */
-    CLASS_ERROR : "yui-dt-error",
-
-    /**
-     * Class name assigned to editable elements.
-     *
-     * @property DataTable.CLASS_EDITABLE
-     * @type String
-     * @static
-     * @final
-     * @default "yui-dt-editable"
-     */
-    CLASS_EDITABLE : "yui-dt-editable",
-
-    /**
-     * Class name assigned to draggable elements.
-     *
-     * @property DataTable.CLASS_DRAGGABLE
-     * @type String
-     * @static
-     * @final
-     * @default "yui-dt-draggable"
-     */
-    CLASS_DRAGGABLE : "yui-dt-draggable",
-
-    /**
-     * Class name assigned to resizeable elements.
-     *
-     * @property DataTable.CLASS_RESIZEABLE
-     * @type String
-     * @static
-     * @final
-     * @default "yui-dt-resizeable"
-     */
-    CLASS_RESIZEABLE : "yui-dt-resizeable",
-
-    /**
-     * Class name assigned to scrollable elements.
-     *
-     * @property DataTable.CLASS_SCROLLABLE
-     * @type String
-     * @static
-     * @final
-     * @default "yui-dt-scrollable"
-     */
-    CLASS_SCROLLABLE : "yui-dt-scrollable",
-
-    /**
-     * Class name assigned to sortable elements.
-     *
-     * @property DataTable.CLASS_SORTABLE
-     * @type String
-     * @static
-     * @final
-     * @default "yui-dt-sortable"
-     */
-    CLASS_SORTABLE : "yui-dt-sortable",
-
-    /**
-     * Class name assigned to ascending elements.
-     *
-     * @property DataTable.CLASS_ASC
-     * @type String
-     * @static
-     * @final
-     * @default "yui-dt-asc"
-     */
-    CLASS_ASC : "yui-dt-asc",
-
-    /**
-     * Class name assigned to descending elements.
-     *
-     * @property DataTable.CLASS_DESC
-     * @type String
-     * @static
-     * @final
-     * @default "yui-dt-desc"
-     */
-    CLASS_DESC : "yui-dt-desc",
-
-    /**
-     * Class name assigned to BUTTON elements and/or container elements.
-     *
-     * @property DataTable.CLASS_BUTTON
-     * @type String
-     * @static
-     * @final
-     * @default "yui-dt-button"
-     */
-    CLASS_BUTTON : "yui-dt-button",
-
-    /**
-     * Class name assigned to INPUT TYPE=CHECKBOX elements and/or container elements.
-     *
-     * @property DataTable.CLASS_CHECKBOX
-     * @type String
-     * @static
-     * @final
-     * @default "yui-dt-checkbox"
-     */
-    CLASS_CHECKBOX : "yui-dt-checkbox",
-
-    /**
-     * Class name assigned to SELECT elements and/or container elements.
-     *
-     * @property DataTable.CLASS_DROPDOWN
-     * @type String
-     * @static
-     * @final
-     * @default "yui-dt-dropdown"
-     */
-    CLASS_DROPDOWN : "yui-dt-dropdown",
-
-    /**
-     * Class name assigned to INPUT TYPE=RADIO elements and/or container elements.
-     *
-     * @property DataTable.CLASS_RADIO
-     * @type String
-     * @static
-     * @final
-     * @default "yui-dt-radio"
-     */
-    CLASS_RADIO : "yui-dt-radio",
-
-    /////////////////////////////////////////////////////////////////////////
-    //
-    // Private static properties
-    //
-    /////////////////////////////////////////////////////////////////////////
-
-    /**
-     * Internal class variable for indexing multiple DataTable instances.
-     *
-     * @property DataTable._nCount
-     * @type Number
-     * @private
-     * @static
-     */
-    _nCount : 0,
-
-    /**
-     * Internal class variable tracking current number of DataTable instances,
-     * so that certain class values can be reset when all instances are destroyed.          
-     *
-     * @property DataTable._nCurrentCount
-     * @type Number
-     * @private
-     * @static
-     */
-    _nCurrentCount : 0,
-
-    /**
-     * Reference to the STYLE node that is dynamically created and updated
-     * in order to manage Column widths.
-     *
-     * @property DataTable._elDynStyleNode
-     * @type HTMLElement
-     * @private
-     * @static     
-     */
-    _elDynStyleNode : null,
-
-    /**
-     * Set to true if _elDynStyleNode cannot be populated due to browser incompatibility.
-     *
-     * @property DataTable._bDynStylesFallback
-     * @type boolean
-     * @private
-     * @static     
-     */
-    _bDynStylesFallback : (ua.ie) ? true : false,
-
-    /**
-     * Object literal hash of Columns and their dynamically create style rules.
-     *
-     * @property DataTable._oDynStyles
-     * @type Object
-     * @private
-     * @static     
-     */
-    _oDynStyles : {},
-
-    /**
-     * Element reference to shared Column drag target.
-     *
-     * @property DataTable._elColumnDragTarget
-     * @type HTMLElement
-     * @private
-     * @static 
-     */
-    _elColumnDragTarget : null,
-
-    /**
-     * Element reference to shared Column resizer proxy.
-     *
-     * @property DataTable._elColumnResizerProxy
-     * @type HTMLElement
-     * @private
-     * @static 
-     */
-    _elColumnResizerProxy : null,
-
-    /////////////////////////////////////////////////////////////////////////
-    //
-    // Private static methods
-    //
-    /////////////////////////////////////////////////////////////////////////
-
-    /**
-     * Clones object literal or array of object literals.
-     *
-     * @method DataTable._cloneObject
-     * @param o {Object} Object.
-     * @private
-     * @static     
-     */
-    _cloneObject : function(o) {
-        if(!lang.isValue(o)) {
-            return o;
-        }
-        
-        var copy = {};
-        
-        if(o instanceof YAHOO.widget.BaseCellEditor) {
-            copy = o;
-        }
-        else if(lang.isFunction(o)) {
-            copy = o;
-        }
-        else if(lang.isArray(o)) {
-            var array = [];
-            for(var i=0,len=o.length;i<len;i++) {
-                array[i] = DT._cloneObject(o[i]);
-            }
-            copy = array;
-        }
-        else if(lang.isObject(o)) { 
-            for (var x in o){
-                if(lang.hasOwnProperty(o, x)) {
-                    if(lang.isValue(o[x]) && lang.isObject(o[x]) || lang.isArray(o[x])) {
-                        copy[x] = DT._cloneObject(o[x]);
-                    }
-                    else {
-                        copy[x] = o[x];
-                    }
-                }
-            }
-        }
-        else {
-            copy = o;
-        }
-    
-        return copy;
-    },
-
-    /**
-     * Destroys shared Column drag target.
-     *
-     * @method DataTable._destroyColumnDragTargetEl
-     * @private
-     * @static 
-     */
-    _destroyColumnDragTargetEl : function() {
-        if(DT._elColumnDragTarget) {
-            var el = DT._elColumnDragTarget;
-            YAHOO.util.Event.purgeElement(el);
-            el.parentNode.removeChild(el);
-            DT._elColumnDragTarget = null;
-            
-        }
-    },
-
-    /**
-     * Creates HTML markup for shared Column drag target.
-     *
-     * @method DataTable._initColumnDragTargetEl
-     * @return {HTMLElement} Reference to Column drag target. 
-     * @private
-     * @static 
-     */
-    _initColumnDragTargetEl : function() {
-        if(!DT._elColumnDragTarget) {
-            // Attach Column drag target element as first child of body
-            var elColumnDragTarget = document.createElement('div');
-            elColumnDragTarget.className = DT.CLASS_COLTARGET;
-            elColumnDragTarget.style.display = "none";
-            document.body.insertBefore(elColumnDragTarget, document.body.firstChild);
-
-            // Internal tracker of Column drag target
-            DT._elColumnDragTarget = elColumnDragTarget;
-            
-        }
-        return DT._elColumnDragTarget;
-    },
-
-    /**
-     * Destroys shared Column resizer proxy.
-     *
-     * @method DataTable._destroyColumnResizerProxyEl
-     * @return {HTMLElement} Reference to Column resizer proxy.
-     * @private 
-     * @static 
-     */
-    _destroyColumnResizerProxyEl : function() {
-        if(DT._elColumnResizerProxy) {
-            var el = DT._elColumnResizerProxy;
-            YAHOO.util.Event.purgeElement(el);
-            el.parentNode.removeChild(el);
-            DT._elColumnResizerProxy = null;
-        }
-    },
-
-    /**
-     * Creates HTML markup for shared Column resizer proxy.
-     *
-     * @method DataTable._initColumnResizerProxyEl
-     * @return {HTMLElement} Reference to Column resizer proxy.
-     * @private 
-     * @static 
-     */
-    _initColumnResizerProxyEl : function() {
-        if(!DT._elColumnResizerProxy) {
-            // Attach Column resizer element as first child of body
-            var elColumnResizerProxy = document.createElement("div");
-            elColumnResizerProxy.id = "yui-dt-colresizerproxy"; // Needed for ColumnResizer
-            elColumnResizerProxy.className = DT.CLASS_RESIZERPROXY;
-            document.body.insertBefore(elColumnResizerProxy, document.body.firstChild);
-
-            // Internal tracker of Column resizer proxy
-            DT._elColumnResizerProxy = elColumnResizerProxy;
-        }
-        return DT._elColumnResizerProxy;
-    },
-
-    /**
-     * Formats a BUTTON element.
-     *
-     * @method DataTable.formatButton
-     * @param el {HTMLElement} The element to format with markup.
-     * @param oRecord {YAHOO.widget.Record} Record instance.
-     * @param oColumn {YAHOO.widget.Column} Column instance.
-     * @param oData {Object | Boolean} Data value for the cell. By default, the value
-     * is what gets written to the BUTTON.
-     * @static
-     */
-    formatButton : function(el, oRecord, oColumn, oData) {
-        var sValue = lang.isValue(oData) ? oData : "Click";
-        //TODO: support YAHOO.widget.Button
-        //if(YAHOO.widget.Button) {
-
-        //}
-        //else {
-            el.innerHTML = "<button type=\"button\" class=\""+
-                    DT.CLASS_BUTTON + "\">" + sValue + "</button>";
-        //}
-    },
-
-    /**
-     * Formats a CHECKBOX element.
-     *
-     * @method DataTable.formatCheckbox
-     * @param el {HTMLElement} The element to format with markup.
-     * @param oRecord {YAHOO.widget.Record} Record instance.
-     * @param oColumn {YAHOO.widget.Column} Column instance.
-     * @param oData {Object | Boolean} Data value for the cell. Can be a simple
-     * Boolean to indicate whether checkbox is checked or not. Can be object literal
-     * {checked:bBoolean, label:sLabel}. Other forms of oData require a custom
-     * formatter.
-     * @static
-     */
-    formatCheckbox : function(el, oRecord, oColumn, oData) {
-        var bChecked = oData;
-        bChecked = (bChecked) ? " checked=\"checked\"" : "";
-        el.innerHTML = "<input type=\"checkbox\"" + bChecked +
-                " class=\"" + DT.CLASS_CHECKBOX + "\" />";
-    },
-
-    /**
-     * Formats currency. Default unit is USD.
-     *
-     * @method DataTable.formatCurrency
-     * @param el {HTMLElement} The element to format with markup.
-     * @param oRecord {YAHOO.widget.Record} Record instance.
-     * @param oColumn {YAHOO.widget.Column} Column instance.
-     * @param oData {Number} Data value for the cell.
-     * @static
-     */
-    formatCurrency : function(el, oRecord, oColumn, oData) {
-        el.innerHTML = util.Number.format(oData, oColumn.currencyOptions || this.get("currencyOptions"));
-    },
-
-    /**
-     * Formats JavaScript Dates.
-     *
-     * @method DataTable.formatDate
-     * @param el {HTMLElement} The element to format with markup.
-     * @param oRecord {YAHOO.widget.Record} Record instance.
-     * @param oColumn {YAHOO.widget.Column} Column instance.
-     * @param oData {Object} Data value for the cell, or null.
-     * @static
-     */
-    formatDate : function(el, oRecord, oColumn, oData) {
-        var oConfig = oColumn.dateOptions || this.get("dateOptions");
-        el.innerHTML = util.Date.format(oData, oConfig, oConfig.locale);
-    },
-
-    /**
-     * Formats SELECT elements.
-     *
-     * @method DataTable.formatDropdown
-     * @param el {HTMLElement} The element to format with markup.
-     * @param oRecord {YAHOO.widget.Record} Record instance.
-     * @param oColumn {YAHOO.widget.Column} Column instance.
-     * @param oData {Object} Data value for the cell, or null.
-     * @static
-     */
-    formatDropdown : function(el, oRecord, oColumn, oData) {
-        var selectedValue = (lang.isValue(oData)) ? oData : oRecord.getData(oColumn.field),
-            options = (lang.isArray(oColumn.dropdownOptions)) ?
-                oColumn.dropdownOptions : null,
-
-            selectEl,
-            collection = el.getElementsByTagName("select");
-
-        // Create the form element only once, so we can attach the onChange listener
-        if(collection.length === 0) {
-            // Create SELECT element
-            selectEl = document.createElement("select");
-            selectEl.className = DT.CLASS_DROPDOWN;
-            selectEl = el.appendChild(selectEl);
-
-            // Add event listener
-            Ev.addListener(selectEl,"change",this._onDropdownChange,this);
-        }
-
-        selectEl = collection[0];
-
-        // Update the form element
-        if(selectEl) {
-            // Clear out previous options
-            selectEl.innerHTML = "";
-
-            // We have options to populate
-            if(options) {
-                // Create OPTION elements
-                for(var i=0; i<options.length; i++) {
-                    var option = options[i];
-                    var optionEl = document.createElement("option");
-                    optionEl.value = (lang.isValue(option.value)) ?
-                            option.value : option;
-                    // Bug 2334323: Support legacy text, support label for consistency with DropdownCellEditor
-                    optionEl.innerHTML = (lang.isValue(option.text)) ?
-                            option.text : (lang.isValue(option.label)) ? option.label : option;
-                    optionEl = selectEl.appendChild(optionEl);
-                    if (optionEl.value == selectedValue) {
-                        optionEl.selected = true;
-                    }
-                }
-            }
-            // Selected value is our only option
-            else {
-                selectEl.innerHTML = "<option selected value=\"" + selectedValue + "\">" + selectedValue + "</option>";
-            }
-        }
-        else {
-            el.innerHTML = lang.isValue(oData) ? oData : "";
-        }
-    },
-
-    /**
-     * Formats emails.
-     *
-     * @method DataTable.formatEmail
-     * @param el {HTMLElement} The element to format with markup.
-     * @param oRecord {YAHOO.widget.Record} Record instance.
-     * @param oColumn {YAHOO.widget.Column} Column instance.
-     * @param oData {Object} Data value for the cell, or null.
-     * @static
-     */
-    formatEmail : function(el, oRecord, oColumn, oData) {
-        if(lang.isString(oData)) {
-            el.innerHTML = "<a href=\"mailto:" + oData + "\">" + oData + "</a>";
-        }
-        else {
-            el.innerHTML = lang.isValue(oData) ? oData : "";
-        }
-    },
-
-    /**
-     * Formats links.
-     *
-     * @method DataTable.formatLink
-     * @param el {HTMLElement} The element to format with markup.
-     * @param oRecord {YAHOO.widget.Record} Record instance.
-     * @param oColumn {YAHOO.widget.Column} Column instance.
-     * @param oData {Object} Data value for the cell, or null.
-     * @static
-     */
-    formatLink : function(el, oRecord, oColumn, oData) {
-        if(lang.isString(oData)) {
-            el.innerHTML = "<a href=\"" + oData + "\">" + oData + "</a>";
-        }
-        else {
-            el.innerHTML = lang.isValue(oData) ? oData : "";
-        }
-    },
-
-    /**
-     * Formats numbers.
-     *
-     * @method DataTable.formatNumber
-     * @param el {HTMLElement} The element to format with markup.
-     * @param oRecord {YAHOO.widget.Record} Record instance.
-     * @param oColumn {YAHOO.widget.Column} Column instance.
-     * @param oData {Object} Data value for the cell, or null.
-     * @static
-     */
-    formatNumber : function(el, oRecord, oColumn, oData) {
-        el.innerHTML = util.Number.format(oData, oColumn.numberOptions || this.get("numberOptions"));
-    },
-
-    /**
-     * Formats INPUT TYPE=RADIO elements.
-     *
-     * @method DataTable.formatRadio
-     * @param el {HTMLElement} The element to format with markup.
-     * @param oRecord {YAHOO.widget.Record} Record instance.
-     * @param oColumn {YAHOO.widget.Column} Column instance.
-     * @param oData {Object} (Optional) Data value for the cell.
-     * @static
-     */
-    formatRadio : function(el, oRecord, oColumn, oData) {
-        var bChecked = oData;
-        bChecked = (bChecked) ? " checked=\"checked\"" : "";
-        el.innerHTML = "<input type=\"radio\"" + bChecked +
-                " name=\""+this.getId()+"-col-" + oColumn.getSanitizedKey() + "\"" +
-                " class=\"" + DT.CLASS_RADIO+ "\" />";
-    },
-
-    /**
-     * Formats text strings.
-     *
-     * @method DataTable.formatText
-     * @param el {HTMLElement} The element to format with markup.
-     * @param oRecord {YAHOO.widget.Record} Record instance.
-     * @param oColumn {YAHOO.widget.Column} Column instance.
-     * @param oData {Object} (Optional) Data value for the cell.
-     * @static
-     */
-    formatText : function(el, oRecord, oColumn, oData) {
-        var value = (lang.isValue(oData)) ? oData : "";
-        //TODO: move to util function
-        el.innerHTML = value.toString().replace(/&/g, "&#38;").replace(/</g, "&#60;").replace(/>/g, "&#62;");
-    },
-
-    /**
-     * Formats TEXTAREA elements.
-     *
-     * @method DataTable.formatTextarea
-     * @param el {HTMLElement} The element to format with markup.
-     * @param oRecord {YAHOO.widget.Record} Record instance.
-     * @param oColumn {YAHOO.widget.Column} Column instance.
-     * @param oData {Object} (Optional) Data value for the cell.
-     * @static
-     */
-    formatTextarea : function(el, oRecord, oColumn, oData) {
-        var value = (lang.isValue(oData)) ? oData : "",
-            markup = "<textarea>" + value + "</textarea>";
-        el.innerHTML = markup;
-    },
-
-    /**
-     * Formats INPUT TYPE=TEXT elements.
-     *
-     * @method DataTable.formatTextbox
-     * @param el {HTMLElement} The element to format with markup.
-     * @param oRecord {YAHOO.widget.Record} Record instance.
-     * @param oColumn {YAHOO.widget.Column} Column instance.
-     * @param oData {Object} (Optional) Data value for the cell.
-     * @static
-     */
-    formatTextbox : function(el, oRecord, oColumn, oData) {
-        var value = (lang.isValue(oData)) ? oData : "",
-            markup = "<input type=\"text\" value=\"" + value + "\" />";
-        el.innerHTML = markup;
-    },
-
-    /**
-     * Default cell formatter
-     *
-     * @method DataTable.formatDefault
-     * @param el {HTMLElement} The element to format with markup.
-     * @param oRecord {YAHOO.widget.Record} Record instance.
-     * @param oColumn {YAHOO.widget.Column} Column instance.
-     * @param oData {Object} (Optional) Data value for the cell.
-     * @static
-     */
-    formatDefault : function(el, oRecord, oColumn, oData) {
-        el.innerHTML = oData === undefined ||
-                       oData === null ||
-                       (typeof oData === 'number' && isNaN(oData)) ?
-                       "&#160;" : oData.toString();
-    },
-
-    /**
-     * Validates data value to type Number, doing type conversion as
-     * necessary. A valid Number value is return, else null is returned
-     * if input value does not validate.
-     *
-     *
-     * @method DataTable.validateNumber
-     * @param oData {Object} Data to validate.
-     * @static
-    */
-    validateNumber : function(oData) {
-        //Convert to number
-        var number = oData * 1;
-
-        // Validate
-        if(lang.isNumber(number)) {
-            return number;
-        }
-        else {
-            YAHOO.log("Could not validate data " + lang.dump(oData) + " to type Number", "warn", this.toString());
-            return undefined;
-        }
-    }
-});
-
-// Done in separate step so referenced functions are defined.
-/**
- * Cell formatting functions.
- * @property DataTable.Formatter
- * @type Object
- * @static
- */
-DT.Formatter = {
-    button   : DT.formatButton,
-    checkbox : DT.formatCheckbox,
-    currency : DT.formatCurrency,
-    "date"   : DT.formatDate,
-    dropdown : DT.formatDropdown,
-    email    : DT.formatEmail,
-    link     : DT.formatLink,
-    "number" : DT.formatNumber,
-    radio    : DT.formatRadio,
-    text     : DT.formatText,
-    textarea : DT.formatTextarea,
-    textbox  : DT.formatTextbox,
-
-    defaultFormatter : DT.formatDefault
-};
-
-lang.extend(DT, util.Element, {
-
-/////////////////////////////////////////////////////////////////////////////
-//
-// Superclass methods
-//
-/////////////////////////////////////////////////////////////////////////////
-
-/**
- * Implementation of Element's abstract method. Sets up config values.
- *
- * @method initAttributes
- * @param oConfigs {Object} (Optional) Object literal definition of configuration values.
- * @private
- */
-
-initAttributes : function(oConfigs) {
-    oConfigs = oConfigs || {};
-    DT.superclass.initAttributes.call(this, oConfigs);
-
-    /**
-    * @attribute summary
-    * @description Value for the SUMMARY attribute.
-    * @type String
-    * @default ""    
-    */
-    this.setAttributeConfig("summary", {
-        value: "",
-        validator: lang.isString,
-        method: function(sSummary) {
-            if(this._elTable) {
-                this._elTable.summary = sSummary;
-            }
-        }
-    });
-
-    /**
-    * @attribute selectionMode
-    * @description Specifies row or cell selection mode. Accepts the following strings:
-    *    <dl>
-    *      <dt>"standard"</dt>
-    *      <dd>Standard row selection with support for modifier keys to enable
-    *      multiple selections.</dd>
-    *
-    *      <dt>"single"</dt>
-    *      <dd>Row selection with modifier keys disabled to not allow
-    *      multiple selections.</dd>
-    *
-    *      <dt>"singlecell"</dt>
-    *      <dd>Cell selection with modifier keys disabled to not allow
-    *      multiple selections.</dd>
-    *
-    *      <dt>"cellblock"</dt>
-    *      <dd>Cell selection with support for modifier keys to enable multiple
-    *      selections in a block-fashion, like a spreadsheet.</dd>
-    *
-    *      <dt>"cellrange"</dt>
-    *      <dd>Cell selection with support for modifier keys to enable multiple
-    *      selections in a range-fashion, like a calendar.</dd>
-    *    </dl>
-    *
-    * @default "standard"
-    * @type String
-    */
-    this.setAttributeConfig("selectionMode", {
-        value: "standard",
-        validator: lang.isString
-    });
-
-    /**
-    * @attribute sortedBy
-    * @description Object literal provides metadata for initial sort values if
-    * data will arrive pre-sorted:
-    * <dl>
-    *     <dt>sortedBy.key</dt>
-    *     <dd>{String} Key of sorted Column</dd>
-    *     <dt>sortedBy.dir</dt>
-    *     <dd>{String} Initial sort direction, either YAHOO.widget.DataTable.CLASS_ASC or YAHOO.widget.DataTable.CLASS_DESC</dd>
-    * </dl>
-    * @type Object | null
-    */
-    this.setAttributeConfig("sortedBy", {
-        value: null,
-        // TODO: accepted array for nested sorts
-        validator: function(oNewSortedBy) {
-            if(oNewSortedBy) {
-                return (lang.isObject(oNewSortedBy) && oNewSortedBy.key);
-            }
-            else {
-                return (oNewSortedBy === null);
-            }
-        },
-        method: function(oNewSortedBy) {
-            // Stash the previous value
-            var oOldSortedBy = this.get("sortedBy");
-            
-            // Workaround for bug 1827195
-            this._configs.sortedBy.value = oNewSortedBy;
-
-            // Remove ASC/DESC from TH
-            var oOldColumn,
-                nOldColumnKeyIndex,
-                oNewColumn,
-                nNewColumnKeyIndex;
-                
-            if(this._elThead) {
-                if(oOldSortedBy && oOldSortedBy.key && oOldSortedBy.dir) {
-                    oOldColumn = this._oColumnSet.getColumn(oOldSortedBy.key);
-                    nOldColumnKeyIndex = oOldColumn.getKeyIndex();
-                    
-                    // Remove previous UI from THEAD
-                    var elOldTh = oOldColumn.getThEl();
-                    Dom.removeClass(elOldTh, oOldSortedBy.dir);
-                    this.formatTheadCell(oOldColumn.getThLinerEl().firstChild, oOldColumn, oNewSortedBy);
-                }
-                if(oNewSortedBy) {
-                    oNewColumn = (oNewSortedBy.column) ? oNewSortedBy.column : this._oColumnSet.getColumn(oNewSortedBy.key);
-                    nNewColumnKeyIndex = oNewColumn.getKeyIndex();
-    
-                    // Update THEAD with new UI
-                    var elNewTh = oNewColumn.getThEl();
-                    // Backward compatibility
-                    if(oNewSortedBy.dir && ((oNewSortedBy.dir == "asc") ||  (oNewSortedBy.dir == "desc"))) {
-                        var newClass = (oNewSortedBy.dir == "desc") ?
-                                DT.CLASS_DESC :
-                                DT.CLASS_ASC;
-                        Dom.addClass(elNewTh, newClass);
-                    }
-                    else {
-                         var sortClass = oNewSortedBy.dir || DT.CLASS_ASC;
-                         Dom.addClass(elNewTh, sortClass);
-                    }
-                    this.formatTheadCell(oNewColumn.getThLinerEl().firstChild, oNewColumn, oNewSortedBy);
-                }
-            }
-          
-            if(this._elTbody) {
-                // Update TBODY UI
-                this._elTbody.style.display = "none";
-                var allRows = this._elTbody.rows,
-                    allCells;
-                for(var i=allRows.length-1; i>-1; i--) {
-                    allCells = allRows[i].childNodes;
-                    if(allCells[nOldColumnKeyIndex]) {
-                        Dom.removeClass(allCells[nOldColumnKeyIndex], oOldSortedBy.dir);
-                    }
-                    if(allCells[nNewColumnKeyIndex]) {
-                        Dom.addClass(allCells[nNewColumnKeyIndex], oNewSortedBy.dir);
-                    }
-                }
-                this._elTbody.style.display = "";
-            }
-                
-            this._clearTrTemplateEl();
-        }
-    });
-    
-    /**
-    * @attribute paginator
-    * @description An instance of YAHOO.widget.Paginator.
-    * @default null
-    * @type {Object|YAHOO.widget.Paginator}
-    */
-    this.setAttributeConfig("paginator", {
-        value : null,
-        validator : function (val) {
-            return val === null || val instanceof widget.Paginator;
-        },
-        method : function () { this._updatePaginator.apply(this,arguments); }
-    });
-
-    /**
-    * @attribute caption
-    * @description Value for the CAPTION element. NB: Not supported in
-    * ScrollingDataTable.    
-    * @type String
-    */
-    this.setAttributeConfig("caption", {
-        value: null,
-        validator: lang.isString,
-        method: function(sCaption) {
-            this._initCaptionEl(sCaption);
-        }
-    });
-
-    /**
-    * @attribute draggableColumns
-    * @description True if Columns are draggable to reorder, false otherwise.
-    * The Drag & Drop Utility is required to enable this feature. Only top-level
-    * and non-nested Columns are draggable. Write once.
-    * @default false
-    * @type Boolean
-    */
-    this.setAttributeConfig("draggableColumns", {
-        value: false,
-        validator: lang.isBoolean,
-        method: function(oParam) {
-            if(this._elThead) {
-                if(oParam) {
-                    this._initDraggableColumns();
-                }
-                else {
-                    this._destroyDraggableColumns();
-                }
-            }
-        }
-    });
-
-    /**
-    * @attribute renderLoopSize         
-    * @description A value greater than 0 enables DOM rendering of rows to be
-    * executed from a non-blocking timeout queue and sets how many rows to be
-    * rendered per timeout. Recommended for very large data sets.     
-    * @type Number      
-    * @default 0        
-    */          
-     this.setAttributeConfig("renderLoopSize", {        
-         value: 0,      
-         validator: lang.isNumber       
-     });        
-
-    /**
-    * @attribute formatRow
-    * @description A function that accepts a TR element and its associated Record
-    * for custom formatting. The function must return TRUE in order to automatically
-    * continue formatting of child TD elements, else TD elements will not be
-    * automatically formatted.
-    * @type function
-    * @default null
-    */
-    this.setAttributeConfig("formatRow", {
-        value: null,
-        validator: lang.isFunction
-    });
-
-    /**
-    * @attribute generateRequest
-    * @description A function that converts an object literal of desired DataTable
-    * states into a request value which is then passed to the DataSource's
-    * sendRequest method in order to retrieve data for those states. This
-    * function is passed an object literal of state data and a reference to the
-    * DataTable instance:
-    *     
-    * <dl>
-    *   <dt>pagination<dt>
-    *   <dd>        
-    *         <dt>offsetRecord</dt>
-    *         <dd>{Number} Index of the first Record of the desired page</dd>
-    *         <dt>rowsPerPage</dt>
-    *         <dd>{Number} Number of rows per page</dd>
-    *   </dd>
-    *   <dt>sortedBy</dt>
-    *   <dd>                
-    *         <dt>key</dt>
-    *         <dd>{String} Key of sorted Column</dd>
-    *         <dt>dir</dt>
-    *         <dd>{String} Sort direction, either YAHOO.widget.DataTable.CLASS_ASC or YAHOO.widget.DataTable.CLASS_DESC</dd>
-    *   </dd>
-    *   <dt>self</dt>
-    *   <dd>The DataTable instance</dd>
-    * </dl>
-    * 
-    * and by default returns a String of syntax:
-    * "sort={sortColumn}&dir={sortDir}&startIndex={pageStartIndex}&results={rowsPerPage}"
-    * @type function
-    * @default HTMLFunction
-    */
-    this.setAttributeConfig("generateRequest", {
-        value: function(oState, oSelf) {
-            // Set defaults
-            oState = oState || {pagination:null, sortedBy:null};
-            var sort = encodeURIComponent((oState.sortedBy) ? oState.sortedBy.key : oSelf.getColumnSet().keys[0].getKey());
-            var dir = (oState.sortedBy && oState.sortedBy.dir === YAHOO.widget.DataTable.CLASS_DESC) ? "desc" : "asc";
-            var startIndex = (oState.pagination) ? oState.pagination.recordOffset : 0;
-            var results = (oState.pagination) ? oState.pagination.rowsPerPage : null;
-            
-            // Build the request
-            return  "sort=" + sort +
-                    "&dir=" + dir +
-                    "&startIndex=" + startIndex +
-                    ((results !== null) ? "&results=" + results : "");
-        },
-        validator: lang.isFunction
-    });
-
-    /**
-    * @attribute initialRequest
-    * @description Defines the initial request that gets sent to the DataSource
-    * during initialization. Value is ignored if initialLoad is set to any value
-    * other than true.    
-    * @type MIXED
-    * @default null
-    */
-    this.setAttributeConfig("initialRequest", {
-        value: null
-    });
-
-    /**
-    * @attribute initialLoad
-    * @description Determines whether or not to load data at instantiation. By
-    * default, will trigger a sendRequest() to the DataSource and pass in the
-    * request defined by initialRequest. If set to false, data will not load
-    * at instantiation. Alternatively, implementers who wish to work with a 
-    * custom payload may pass in an object literal with the following values:
-    *     
-    *    <dl>
-    *      <dt>request (MIXED)</dt>
-    *      <dd>Request value.</dd>
-    *
-    *      <dt>argument (MIXED)</dt>
-    *      <dd>Custom data that will be passed through to the callback function.</dd>
-    *    </dl>
-    *
-    *                    
-    * @type Boolean | Object
-    * @default true
-    */
-    this.setAttributeConfig("initialLoad", {
-        value: true
-    });
-    
-    /**
-    * @attribute dynamicData
-    * @description If true, sorting and pagination are relegated to the DataSource
-    * for handling, using the request returned by the "generateRequest" function.
-    * Each new DataSource response blows away all previous Records. False by default, so 
-    * sorting and pagination will be handled directly on the client side, without
-    * causing any new requests for data from the DataSource.
-    * @type Boolean
-    * @default false
-    */
-    this.setAttributeConfig("dynamicData", {
-        value: false,
-        validator: lang.isBoolean
-    });
-
-    /**
-     * @attribute MSG_EMPTY     
-     * @description Message to display if DataTable has no data.     
-     * @type String     
-     * @default "No records found."     
-     */         
-     this.setAttributeConfig("MSG_EMPTY", {     
-         value: "No records found.",    
-         validator: lang.isString       
-     });        
-
-    /**
-     * @attribute MSG_LOADING   
-     * @description Message to display while DataTable is loading data.
-     * @type String     
-     * @default "Loading..."    
-     */         
-     this.setAttributeConfig("MSG_LOADING", {   
-         value: "Loading...",   
-         validator: lang.isString       
-     });        
-
-    /**
-     * @attribute MSG_ERROR     
-     * @description Message to display while DataTable has data error.
-     * @type String     
-     * @default "Data error."   
-     */         
-     this.setAttributeConfig("MSG_ERROR", {     
-         value: "Data error.",          
-         validator: lang.isString       
-     });        
-
-    /**
-     * @attribute MSG_SORTASC 
-     * @description Message to display in tooltip to sort Column in ascending order.
-     * @type String     
-     * @default "Click to sort ascending"       
-     */         
-     this.setAttributeConfig("MSG_SORTASC", {   
-         value: "Click to sort ascending",      
-         validator: lang.isString,
-         method: function(sParam) {
-            if(this._elThead) {
-                for(var i=0, allKeys=this.getColumnSet().keys, len=allKeys.length; i<len; i++) {
-                    if(allKeys[i].sortable && this.getColumnSortDir(allKeys[i]) === DT.CLASS_ASC) {
-                        allKeys[i]._elThLabel.firstChild.title = sParam;
-                    }
-                }
-            }      
-         }
-     });
-
-    /**
-     * @attribute MSG_SORTDESC 
-     * @description Message to display in tooltip to sort Column in descending order.
-     * @type String     
-     * @default "Click to sort descending"      
-     */         
-     this.setAttributeConfig("MSG_SORTDESC", {          
-         value: "Click to sort descending",     
-         validator: lang.isString,
-         method: function(sParam) {
-            if(this._elThead) {
-                for(var i=0, allKeys=this.getColumnSet().keys, len=allKeys.length; i<len; i++) {
-                    if(allKeys[i].sortable && this.getColumnSortDir(allKeys[i]) === DT.CLASS_DESC) {
-                        allKeys[i]._elThLabel.firstChild.title = sParam;
-                    }
-                }
-            }               
-         }
-     });
-     
-    /**
-     * @attribute currencySymbol
-     * @deprecated
-     */
-    this.setAttributeConfig("currencySymbol", {
-        value: "$",
-        validator: lang.isString
-    });
-    
-    /**
-     * Default config passed to YAHOO.util.Number.format() by the 'currency' Column formatter.
-     * @attribute currencyOptions
-     * @type Object
-     * @default {prefix: $, decimalPlaces:2, decimalSeparator:".", thousandsSeparator:","}
-     */
-    this.setAttributeConfig("currencyOptions", {
-        value: {
-            prefix: this.get("currencySymbol"), // TODO: deprecate currencySymbol
-            decimalPlaces:2,
-            decimalSeparator:".",
-            thousandsSeparator:","
-        }
-    });
-    
-    /**
-     * Default config passed to YAHOO.util.Date.format() by the 'date' Column formatter.
-     * @attribute dateOptions
-     * @type Object
-     * @default {format:"%m/%d/%Y", locale:"en"}
-     */
-    this.setAttributeConfig("dateOptions", {
-        value: {format:"%m/%d/%Y", locale:"en"}
-    });
-    
-    /**
-     * Default config passed to YAHOO.util.Number.format() by the 'number' Column formatter.
-     * @attribute numberOptions
-     * @type Object
-     * @default {decimalPlaces:0, thousandsSeparator:","}
-     */
-    this.setAttributeConfig("numberOptions", {
-        value: {
-            decimalPlaces:0,
-            thousandsSeparator:","
-        }
-    });
-
-},
-
-/////////////////////////////////////////////////////////////////////////////
-//
-// Private member variables
-//
-/////////////////////////////////////////////////////////////////////////////
-
-/**
- * True if instance is initialized, so as to fire the initEvent after render.
- *
- * @property _bInit
- * @type Boolean
- * @default true
- * @private
- */
-_bInit : true,
-
-/**
- * Index assigned to instance.
- *
- * @property _nIndex
- * @type Number
- * @private
- */
-_nIndex : null,
-
-/**
- * Counter for IDs assigned to TR elements.
- *
- * @property _nTrCount
- * @type Number
- * @private
- */
-_nTrCount : 0,
-
-/**
- * Counter for IDs assigned to TD elements.
- *
- * @property _nTdCount
- * @type Number
- * @private
- */
-_nTdCount : 0,
-
-/**
- * Unique id assigned to instance "yui-dtN", useful prefix for generating unique
- * DOM ID strings and log messages.
- *
- * @property _sId
- * @type String
- * @private
- */
-_sId : null,
-
-/**
- * Render chain.
- *
- * @property _oChainRender
- * @type YAHOO.util.Chain
- * @private
- */
-_oChainRender : null,
-
-/**
- * DOM reference to the container element for the DataTable instance into which
- * all other elements get created.
- *
- * @property _elContainer
- * @type HTMLElement
- * @private
- */
-_elContainer : null,
-
-/**
- * DOM reference to the mask element for the DataTable instance which disables it.
- *
- * @property _elMask
- * @type HTMLElement
- * @private
- */
-_elMask : null,
-
-/**
- * DOM reference to the TABLE element for the DataTable instance.
- *
- * @property _elTable
- * @type HTMLElement
- * @private
- */
-_elTable : null,
-
-/**
- * DOM reference to the CAPTION element for the DataTable instance.
- *
- * @property _elCaption
- * @type HTMLElement
- * @private
- */
-_elCaption : null,
-
-/**
- * DOM reference to the COLGROUP element for the DataTable instance.
- *
- * @property _elColgroup
- * @type HTMLElement
- * @private
- */
-_elColgroup : null,
-
-/**
- * DOM reference to the THEAD element for the DataTable instance.
- *
- * @property _elThead
- * @type HTMLElement
- * @private
- */
-_elThead : null,
-
-/**
- * DOM reference to the primary TBODY element for the DataTable instance.
- *
- * @property _elTbody
- * @type HTMLElement
- * @private
- */
-_elTbody : null,
-
-/**
- * DOM reference to the secondary TBODY element used to display DataTable messages.
- *
- * @property _elMsgTbody
- * @type HTMLElement
- * @private
- */
-_elMsgTbody : null,
-
-/**
- * DOM reference to the secondary TBODY element's single TR element used to display DataTable messages.
- *
- * @property _elMsgTr
- * @type HTMLElement
- * @private
- */
-_elMsgTr : null,
-
-/**
- * DOM reference to the secondary TBODY element's single TD element used to display DataTable messages.
- *
- * @property _elMsgTd
- * @type HTMLElement
- * @private
- */
-_elMsgTd : null,
-
-/**
- * DataSource instance for the DataTable instance.
- *
- * @property _oDataSource
- * @type YAHOO.util.DataSource
- * @private
- */
-_oDataSource : null,
-
-/**
- * ColumnSet instance for the DataTable instance.
- *
- * @property _oColumnSet
- * @type YAHOO.widget.ColumnSet
- * @private
- */
-_oColumnSet : null,
-
-/**
- * RecordSet instance for the DataTable instance.
- *
- * @property _oRecordSet
- * @type YAHOO.widget.RecordSet
- * @private
- */
-_oRecordSet : null,
-
-/**
- * The active CellEditor instance for the DataTable instance.
- *
- * @property _oCellEditor
- * @type YAHOO.widget.CellEditor
- * @private
- */
-_oCellEditor : null,
-
-/**
- * ID string of first TR element of the current DataTable page.
- *
- * @property _sFirstTrId
- * @type String
- * @private
- */
-_sFirstTrId : null,
-
-/**
- * ID string of the last TR element of the current DataTable page.
- *
- * @property _sLastTrId
- * @type String
- * @private
- */
-_sLastTrId : null,
-
-/**
- * Template row to create all new rows from.
- * @property _elTrTemplate
- * @type {HTMLElement}
- * @private 
- */
-_elTrTemplate : null,
-
-/**
- * Sparse array of custom functions to set column widths for browsers that don't
- * support dynamic CSS rules.  Functions are added at the index representing
- * the number of rows they update.
- *
- * @property _aDynFunctions
- * @type Array
- * @private
- */
-_aDynFunctions : [],
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-/////////////////////////////////////////////////////////////////////////////
-//
-// Private methods
-//
-/////////////////////////////////////////////////////////////////////////////
-
-/**
- * Clears browser text selection. Useful to call on rowSelectEvent or
- * cellSelectEvent to prevent clicks or dblclicks from selecting text in the
- * browser.
- *
- * @method clearTextSelection
- */
-clearTextSelection : function() {
-    var sel;
-    if(window.getSelection) {
-       sel = window.getSelection();
-    }
-    else if(document.getSelection) {
-       sel = document.getSelection();
-    }
-    else if(document.selection) {
-       sel = document.selection;
-    }
-    if(sel) {
-        if(sel.empty) {
-            sel.empty();
-        }
-        else if (sel.removeAllRanges) {
-            sel.removeAllRanges();
-        }
-        else if(sel.collapse) {
-            sel.collapse();
-        }
-    }
-},
-
-/**
- * Sets focus on the given element.
- *
- * @method _focusEl
- * @param el {HTMLElement} Element.
- * @private
- */
-_focusEl : function(el) {
-    el = el || this._elTbody;
-    // http://developer.mozilla.org/en/docs/index.php?title=Key-navigable_custom_DHTML_widgets
-    // The timeout is necessary in both IE and Firefox 1.5, to prevent scripts from doing
-    // strange unexpected things as the user clicks on buttons and other controls.
-    setTimeout(function() {
-        try {
-            el.focus();
-        }
-        catch(e) {
-        }
-    },0);
-},
-
-/**
- * Forces Gecko repaint.
- *
- * @method _repaintGecko
- * @el {HTMLElement} (Optional) Element to repaint, otherwise entire document body.
- * @private
- */
-_repaintGecko : (ua.gecko) ? 
-    function(el) {
-        el = el || this._elContainer;
-        var parent = el.parentNode;
-        var nextSibling = el.nextSibling;
-        parent.insertBefore(parent.removeChild(el), nextSibling);
-    } : function() {},
-
-/**
- * Forces Opera repaint.
- *
- * @method _repaintOpera
- * @private 
- */
-_repaintOpera : (ua.opera) ? 
-    function() {
-        if(ua.opera) {
-            document.documentElement.className += " ";
-            document.documentElement.className = YAHOO.lang.trim(document.documentElement.className);
-        }
-    } : function() {} ,
-
-/**
- * Forces Webkit repaint.
- *
- * @method _repaintWebkit
- * @el {HTMLElement} (Optional) Element to repaint, otherwise entire document body.
- * @private
- */
-_repaintWebkit : (ua.webkit) ? 
-    function(el) {
-        el = el || this._elContainer;
-        var parent = el.parentNode;
-        var nextSibling = el.nextSibling;
-        parent.insertBefore(parent.removeChild(el), nextSibling);
-    } : function() {},
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-// INIT FUNCTIONS
-
-/**
- * Initializes object literal of config values.
- *
- * @method _initConfigs
- * @param oConfig {Object} Object literal of config values.
- * @private
- */
-_initConfigs : function(oConfigs) {
-    if(!oConfigs || !lang.isObject(oConfigs)) {
-        oConfigs = {};
-    }
-    this.configs = oConfigs;
-},
-
-/**
- * Initializes ColumnSet.
- *
- * @method _initColumnSet
- * @param aColumnDefs {Object[]} Array of object literal Column definitions.
- * @private
- */
-_initColumnSet : function(aColumnDefs) {
-    var oColumn, i, len;
-    
-    if(this._oColumnSet) {
-        // First clear _oDynStyles for existing ColumnSet and
-        // uregister CellEditor Custom Events
-        for(i=0, len=this._oColumnSet.keys.length; i<len; i++) {
-            oColumn = this._oColumnSet.keys[i];
-            DT._oDynStyles["."+this.getId()+"-col-"+oColumn.getSanitizedKey()+" ."+DT.CLASS_LINER] = undefined;
-            if(oColumn.editor && oColumn.editor.unsubscribeAll) { // Backward compatibility
-                oColumn.editor.unsubscribeAll();
-            }
-        }
-        
-        this._oColumnSet = null;
-        this._clearTrTemplateEl();
-    }
-    
-    if(lang.isArray(aColumnDefs)) {
-        this._oColumnSet =  new YAHOO.widget.ColumnSet(aColumnDefs);
-    }
-    // Backward compatibility
-    else if(aColumnDefs instanceof YAHOO.widget.ColumnSet) {
-        this._oColumnSet =  aColumnDefs;
-        YAHOO.log("DataTable's constructor now requires an array" +
-        " of object literal Column definitions instead of a ColumnSet instance",
-        "warn", this.toString());
-    }
-
-    // Register CellEditor Custom Events
-    var allKeys = this._oColumnSet.keys;
-    for(i=0, len=allKeys.length; i<len; i++) {
-        oColumn = allKeys[i];
-        if(oColumn.editor && oColumn.editor.subscribe) { // Backward incompatibility
-            oColumn.editor.subscribe("showEvent", this._onEditorShowEvent, this, true);
-            oColumn.editor.subscribe("keydownEvent", this._onEditorKeydownEvent, this, true);
-            oColumn.editor.subscribe("revertEvent", this._onEditorRevertEvent, this, true);
-            oColumn.editor.subscribe("saveEvent", this._onEditorSaveEvent, this, true);
-            oColumn.editor.subscribe("cancelEvent", this._onEditorCancelEvent, this, true);
-            oColumn.editor.subscribe("blurEvent", this._onEditorBlurEvent, this, true);
-            oColumn.editor.subscribe("blockEvent", this._onEditorBlockEvent, this, true);
-            oColumn.editor.subscribe("unblockEvent", this._onEditorUnblockEvent, this, true);
-        }
-    }
-},
-
-/**
- * Initializes DataSource.
- *
- * @method _initDataSource
- * @param oDataSource {YAHOO.util.DataSource} DataSource instance.
- * @private
- */
-_initDataSource : function(oDataSource) {
-    this._oDataSource = null;
-    if(oDataSource && (lang.isFunction(oDataSource.sendRequest))) {
-        this._oDataSource = oDataSource;
-    }
-    // Backward compatibility
-    else {
-        var tmpTable = null;
-        var tmpContainer = this._elContainer;
-        var i=0;
-        //TODO: this will break if re-initing DS at runtime for SDT
-        // Peek in container child nodes to see if TABLE already exists
-        if(tmpContainer.hasChildNodes()) {
-            var tmpChildren = tmpContainer.childNodes;
-            for(i=0; i<tmpChildren.length; i++) {
-                if(tmpChildren[i].nodeName && tmpChildren[i].nodeName.toLowerCase() == "table") {
-                    tmpTable = tmpChildren[i];
-                    break;
-                }
-            }
-            if(tmpTable) {
-                var tmpFieldsArray = [];
-                for(; i<this._oColumnSet.keys.length; i++) {
-                    tmpFieldsArray.push({key:this._oColumnSet.keys[i].key});
-                }
-
-                this._oDataSource = new DS(tmpTable);
-                this._oDataSource.responseType = DS.TYPE_HTMLTABLE;
-                this._oDataSource.responseSchema = {fields: tmpFieldsArray};
-                YAHOO.log("Null DataSource for progressive enhancement from" +
-                " markup has been deprecated", "warn", this.toString());
-            }
-        }
-    }
-},
-
-/**
- * Initializes RecordSet.
- *
- * @method _initRecordSet
- * @private
- */
-_initRecordSet : function() {
-    if(this._oRecordSet) {
-        this._oRecordSet.reset();
-    }
-    else {
-        this._oRecordSet = new YAHOO.widget.RecordSet();
-    }
-},
-
-/**
- * Initializes DOM elements.
- *
- * @method _initDomElements
- * @param elContainer {HTMLElement | String} HTML DIV element by reference or ID. 
- * return {Boolean} False in case of error, otherwise true 
- * @private
- */
-_initDomElements : function(elContainer) {
-    // Outer container
-    this._initContainerEl(elContainer);
-    // TABLE
-    this._initTableEl(this._elContainer);
-    // COLGROUP
-    this._initColgroupEl(this._elTable);
-    // THEAD
-    this._initTheadEl(this._elTable);
-    
-    // Message TBODY
-    this._initMsgTbodyEl(this._elTable);  
-
-    // Primary TBODY
-    this._initTbodyEl(this._elTable);
-
-    if(!this._elContainer || !this._elTable || !this._elColgroup ||  !this._elThead || !this._elTbody || !this._elMsgTbody) {
-        return false;
-    }
-    else {
-        return true;
-    }
-},
-
-/**
- * Destroy's the DataTable outer container element, if available.
- *
- * @method _destroyContainerEl
- * @param elContainer {HTMLElement} Reference to the container element. 
- * @private
- */
-_destroyContainerEl : function(elContainer) {
-    Dom.removeClass(elContainer, DT.CLASS_DATATABLE);
-    Ev.purgeElement(elContainer, true);
-    elContainer.innerHTML = "";
-    
-    this._elContainer = null;
-    this._elColgroup = null;
-    this._elThead = null;
-    this._elTbody = null;
-},
-
-/**
- * Initializes the DataTable outer container element, including a mask.
- *
- * @method _initContainerEl
- * @param elContainer {HTMLElement | String} HTML DIV element by reference or ID.
- * @private
- */
-_initContainerEl : function(elContainer) {
-    // Validate container
-    elContainer = Dom.get(elContainer);
-    
-    if(elContainer && elContainer.nodeName && (elContainer.nodeName.toLowerCase() == "div")) {
-        // Destroy previous
-        this._destroyContainerEl(elContainer);
-
-        Dom.addClass(elContainer, DT.CLASS_DATATABLE);
-        Ev.addListener(elContainer, "focus", this._onTableFocus, this);
-        Ev.addListener(elContainer, "dblclick", this._onTableDblclick, this);
-        this._elContainer = elContainer;
-        
-        var elMask = document.createElement("div");
-        elMask.className = DT.CLASS_MASK;
-        elMask.style.display = "none";
-        this._elMask = elContainer.appendChild(elMask);
-    }
-},
-
-/**
- * Destroy's the DataTable TABLE element, if available.
- *
- * @method _destroyTableEl
- * @private
- */
-_destroyTableEl : function() {
-    var elTable = this._elTable;
-    if(elTable) {
-        Ev.purgeElement(elTable, true);
-        elTable.parentNode.removeChild(elTable);
-        this._elCaption = null;
-        this._elColgroup = null;
-        this._elThead = null;
-        this._elTbody = null;
-    }
-},
-
-/**
- * Creates HTML markup CAPTION element.
- *
- * @method _initCaptionEl
- * @param sCaption {String} Text for caption.
- * @private
- */
-_initCaptionEl : function(sCaption) {
-    if(this._elTable && sCaption) {
-        // Create CAPTION element
-        if(!this._elCaption) { 
-            this._elCaption = this._elTable.createCaption();
-        }
-        // Set CAPTION value
-        this._elCaption.innerHTML = sCaption;
-    }
-    else if(this._elCaption) {
-        this._elCaption.parentNode.removeChild(this._elCaption);
-    }
-},
-
-/**
- * Creates HTML markup for TABLE, COLGROUP, THEAD and TBODY elements in outer
- * container element.
- *
- * @method _initTableEl
- * @param elContainer {HTMLElement} Container element into which to create TABLE.
- * @private
- */
-_initTableEl : function(elContainer) {
-    if(elContainer) {
-        // Destroy previous
-        this._destroyTableEl();
-    
-        // Create TABLE
-        this._elTable = elContainer.appendChild(document.createElement("table"));  
-         
-        // Set SUMMARY attribute
-        this._elTable.summary = this.get("summary");
-        
-        // Create CAPTION element
-        if(this.get("caption")) {
-            this._initCaptionEl(this.get("caption"));
-        }
-    } 
-},
-
-/**
- * Destroy's the DataTable COLGROUP element, if available.
- *
- * @method _destroyColgroupEl
- * @private
- */
-_destroyColgroupEl : function() {
-    var elColgroup = this._elColgroup;
-    if(elColgroup) {
-        var elTable = elColgroup.parentNode;
-        Ev.purgeElement(elColgroup, true);
-        elTable.removeChild(elColgroup);
-        this._elColgroup = null;
-    }
-},
-
-/**
- * Initializes COLGROUP and COL elements for managing minWidth.
- *
- * @method _initColgroupEl
- * @param elTable {HTMLElement} TABLE element into which to create COLGROUP.
- * @private
- */
-_initColgroupEl : function(elTable) {
-    if(elTable) {
-        // Destroy previous
-        this._destroyColgroupEl();
-
-        // Add COLs to DOCUMENT FRAGMENT
-        var allCols = this._aColIds || [],
-            allKeys = this._oColumnSet.keys,
-            i = 0, len = allCols.length,
-            elCol, oColumn,
-            elFragment = document.createDocumentFragment(),
-            elColTemplate = document.createElement("col");
-    
-        for(i=0,len=allKeys.length; i<len; i++) {
-            oColumn = allKeys[i];
-            elCol = elFragment.appendChild(elColTemplate.cloneNode(false));
-        }
-    
-        // Create COLGROUP
-        var elColgroup = elTable.insertBefore(document.createElement("colgroup"), elTable.firstChild);
-        elColgroup.appendChild(elFragment);
-        this._elColgroup = elColgroup;
-    }
-},
-
-/**
- * Adds a COL element to COLGROUP at given index.
- *
- * @method _insertColgroupColEl
- * @param index {Number} Index of new COL element.
- * @private
- */
-_insertColgroupColEl : function(index) {
-    if(lang.isNumber(index)&& this._elColgroup) {
-        var nextSibling = this._elColgroup.childNodes[index] || null;
-        this._elColgroup.insertBefore(document.createElement("col"), nextSibling);
-    }
-},
-
-/**
- * Removes a COL element to COLGROUP at given index.
- *
- * @method _removeColgroupColEl
- * @param index {Number} Index of removed COL element.
- * @private
- */
-_removeColgroupColEl : function(index) {
-    if(lang.isNumber(index) && this._elColgroup && this._elColgroup.childNodes[index]) {
-        this._elColgroup.removeChild(this._elColgroup.childNodes[index]);
-    }
-},
-
-/**
- * Reorders a COL element from old index(es) to new index.
- *
- * @method _reorderColgroupColEl
- * @param aKeyIndexes {Number[]} Array of indexes of removed COL element.
- * @param newIndex {Number} New index. 
- * @private
- */
-_reorderColgroupColEl : function(aKeyIndexes, newIndex) {
-    if(lang.isArray(aKeyIndexes) && lang.isNumber(newIndex) && this._elColgroup && (this._elColgroup.childNodes.length > aKeyIndexes[aKeyIndexes.length-1])) {
-        var i,
-            tmpCols = [];
-        // Remove COL
-        for(i=aKeyIndexes.length-1; i>-1; i--) {
-            tmpCols.push(this._elColgroup.removeChild(this._elColgroup.childNodes[aKeyIndexes[i]]));
-        }
-        // Insert COL
-        var nextSibling = this._elColgroup.childNodes[newIndex] || null;
-        for(i=tmpCols.length-1; i>-1; i--) {
-            this._elColgroup.insertBefore(tmpCols[i], nextSibling);
-        }
-    }
-},
-
-/**
- * Destroy's the DataTable THEAD element, if available.
- *
- * @method _destroyTheadEl
- * @private
- */
-_destroyTheadEl : function() {
-    var elThead = this._elThead;
-    if(elThead) {
-        var elTable = elThead.parentNode;
-        Ev.purgeElement(elThead, true);
-        this._destroyColumnHelpers();
-        elTable.removeChild(elThead);
-        this._elThead = null;
-    }
-},
-
-/**
- * Initializes THEAD element.
- *
- * @method _initTheadEl
- * @param elTable {HTMLElement} TABLE element into which to create COLGROUP.
- * @param {HTMLElement} Initialized THEAD element. 
- * @private
- */
-_initTheadEl : function(elTable) {
-    elTable = elTable || this._elTable;
-    
-    if(elTable) {
-        // Destroy previous
-        this._destroyTheadEl();
-    
-        //TODO: append to DOM later for performance
-        var elThead = (this._elColgroup) ?
-            elTable.insertBefore(document.createElement("thead"), this._elColgroup.nextSibling) :
-            elTable.appendChild(document.createElement("thead"));
-    
-        // Set up DOM events for THEAD
-        Ev.addListener(elThead, "focus", this._onTheadFocus, this);
-        Ev.addListener(elThead, "keydown", this._onTheadKeydown, this);
-        Ev.addListener(elThead, "mouseover", this._onTableMouseover, this);
-        Ev.addListener(elThead, "mouseout", this._onTableMouseout, this);
-        Ev.addListener(elThead, "mousedown", this._onTableMousedown, this);
-        Ev.addListener(elThead, "mouseup", this._onTableMouseup, this);
-        Ev.addListener(elThead, "click", this._onTheadClick, this);
-
-        // Since we can't listen for click and dblclick on the same element...
-        // Attach separately to THEAD and TBODY
-        ///Ev.addListener(elThead, "dblclick", this._onTableDblclick, this);
-        
-       var oColumnSet = this._oColumnSet,
-            oColumn, i,j, l;
-        
-        // Add TRs to the THEAD
-        var colTree = oColumnSet.tree;
-        var elTh;
-        for(i=0; i<colTree.length; i++) {
-            var elTheadTr = elThead.appendChild(document.createElement("tr"));
-    
-            // ...and create TH cells
-            for(j=0; j<colTree[i].length; j++) {
-                oColumn = colTree[i][j];
-                elTh = elTheadTr.appendChild(document.createElement("th"));
-                this._initThEl(elTh,oColumn);
-            }
-    
-                // Set FIRST/LAST on THEAD rows
-                if(i === 0) {
-                    Dom.addClass(elTheadTr, DT.CLASS_FIRST);
-                }
-                if(i === (colTree.length-1)) {
-                    Dom.addClass(elTheadTr, DT.CLASS_LAST);
-                }
-
-        }
-
-        // Set FIRST/LAST on edge TH elements using the values in ColumnSet headers array
-        var aFirstHeaders = oColumnSet.headers[0] || [];
-        for(i=0; i<aFirstHeaders.length; i++) {
-            Dom.addClass(Dom.get(this.getId() +"-th-"+aFirstHeaders[i]), DT.CLASS_FIRST);
-        }
-        var aLastHeaders = oColumnSet.headers[oColumnSet.headers.length-1] || [];
-        for(i=0; i<aLastHeaders.length; i++) {
-            Dom.addClass(Dom.get(this.getId() +"-th-"+aLastHeaders[i]), DT.CLASS_LAST);
-        }
-        
-        YAHOO.log("TH cells for " + this._oColumnSet.keys.length + " keys created","info",this.toString());
-
-        ///TODO: try _repaintGecko(this._elContainer) instead
-        // Bug 1806891
-        if(ua.webkit && ua.webkit < 420) {
-            var oSelf = this;
-            setTimeout(function() {
-                elThead.style.display = "";
-            },0);
-            elThead.style.display = 'none';
-        }
-        
-        this._elThead = elThead;
-        
-        // Column helpers needs _elThead to exist
-        this._initColumnHelpers();  
-    }
-},
-
-/**
- * Populates TH element as defined by Column.
- *
- * @method _initThEl
- * @param elTh {HTMLElement} TH element reference.
- * @param oColumn {YAHOO.widget.Column} Column object.
- * @private
- */
-_initThEl : function(elTh, oColumn) {
-    elTh.id = this.getId() + "-th-" + oColumn.getSanitizedKey(); // Needed for accessibility, getColumn by TH, and ColumnDD
-    elTh.innerHTML = "";
-    elTh.rowSpan = oColumn.getRowspan();
-    elTh.colSpan = oColumn.getColspan();
-    oColumn._elTh = elTh;
-    
-    var elThLiner = elTh.appendChild(document.createElement("div"));
-    elThLiner.id = elTh.id + "-liner"; // Needed for resizer
-    elThLiner.className = DT.CLASS_LINER;
-    oColumn._elThLiner = elThLiner;
-    
-    var elThLabel = elThLiner.appendChild(document.createElement("span"));
-    elThLabel.className = DT.CLASS_LABEL;    
-
-    // Assign abbr attribute
-    if(oColumn.abbr) {
-        elTh.abbr = oColumn.abbr;
-    }
-    // Clear minWidth on hidden Columns
-    if(oColumn.hidden) {
-        this._clearMinWidth(oColumn);
-    }
-        
-    elTh.className = this._getColumnClassNames(oColumn);
-            
-    // Set Column width...
-    if(oColumn.width) {
-        // Validate minWidth
-        var nWidth = (oColumn.minWidth && (oColumn.width < oColumn.minWidth)) ?
-                oColumn.minWidth : oColumn.width;
-        // ...for fallback cases
-        if(DT._bDynStylesFallback) {
-            elTh.firstChild.style.overflow = 'hidden';
-            elTh.firstChild.style.width = nWidth + 'px';        
-        }
-        // ...for non fallback cases
-        else {
-            this._setColumnWidthDynStyles(oColumn, nWidth + 'px', 'hidden');
-        }
-    }
-
-    this.formatTheadCell(elThLabel, oColumn, this.get("sortedBy"));
-    oColumn._elThLabel = elThLabel;
-},
-
-/**
- * Outputs markup into the given TH based on given Column.
- *
- * @method DataTable.formatTheadCell
- * @param elCellLabel {HTMLElement} The label SPAN element within the TH liner,
- * not the liner DIV element.     
- * @param oColumn {YAHOO.widget.Column} Column instance.
- * @param oSortedBy {Object} Sort state object literal.
-*/
-formatTheadCell : function(elCellLabel, oColumn, oSortedBy) {
-    var sKey = oColumn.getKey();
-    var sLabel = lang.isValue(oColumn.label) ? oColumn.label : sKey;
-
-    // Add accessibility link for sortable Columns
-    if(oColumn.sortable) {
-        // Calculate the direction
-        var sSortClass = this.getColumnSortDir(oColumn, oSortedBy);
-        var bDesc = (sSortClass === DT.CLASS_DESC);
-
-        // This is the sorted Column
-        if(oSortedBy && (oColumn.key === oSortedBy.key)) {
-            bDesc = !(oSortedBy.dir === DT.CLASS_DESC);
-        }
-
-        // Generate a unique HREF for visited status
-        var sHref = this.getId() + "-href-" + oColumn.getSanitizedKey();
-        
-        // Generate a dynamic TITLE for sort status
-        var sTitle = (bDesc) ? this.get("MSG_SORTDESC") : this.get("MSG_SORTASC");
-        
-        // Format the element
-        elCellLabel.innerHTML = "<a href=\"" + sHref + "\" title=\"" + sTitle + "\" class=\"" + DT.CLASS_SORTABLE + "\">" + sLabel + "</a>";
-    }
-    // Just display the label for non-sortable Columns
-    else {
-        elCellLabel.innerHTML = sLabel;
-    }
-},
-
-/**
- * Disables DD from top-level Column TH elements.
- *
- * @method _destroyDraggableColumns
- * @private
- */
-_destroyDraggableColumns : function() {
-    var oColumn, elTh;
-    for(var i=0, len=this._oColumnSet.tree[0].length; i<len; i++) {
-        oColumn = this._oColumnSet.tree[0][i];
-        if(oColumn._dd) {
-            oColumn._dd = oColumn._dd.unreg();
-            Dom.removeClass(oColumn.getThEl(), DT.CLASS_DRAGGABLE);       
-        }
-    }
-},
-
-/**
- * Initializes top-level Column TH elements into DD instances.
- *
- * @method _initDraggableColumns
- * @private
- */
-_initDraggableColumns : function() {
-    this._destroyDraggableColumns();
-    if(util.DD) {
-        var oColumn, elTh, elDragTarget;
-        for(var i=0, len=this._oColumnSet.tree[0].length; i<len; i++) {
-            oColumn = this._oColumnSet.tree[0][i];
-            elTh = oColumn.getThEl();
-            Dom.addClass(elTh, DT.CLASS_DRAGGABLE);
-            elDragTarget = DT._initColumnDragTargetEl();
-            oColumn._dd = new YAHOO.widget.ColumnDD(this, oColumn, elTh, elDragTarget);
-        }
-    }
-    else {
-        YAHOO.log("Could not find DragDrop for draggable Columns", "warn", this.toString());
-    }
-},
-
-/**
- * Disables resizeability on key Column TH elements.
- *
- * @method _destroyResizeableColumns
- * @private
- */
-_destroyResizeableColumns : function() {
-    var aKeys = this._oColumnSet.keys;
-    for(var i=0, len=aKeys.length; i<len; i++) {
-        if(aKeys[i]._ddResizer) {
-            aKeys[i]._ddResizer = aKeys[i]._ddResizer.unreg();
-            Dom.removeClass(aKeys[i].getThEl(), DT.CLASS_RESIZEABLE);
-        }
-    }
-},
-
-/**
- * Initializes resizeability on key Column TH elements.
- *
- * @method _initResizeableColumns
- * @private
- */
-_initResizeableColumns : function() {
-    this._destroyResizeableColumns();
-    if(util.DD) {
-        var oColumn, elTh, elThLiner, elThResizerLiner, elThResizer, elResizerProxy, cancelClick;
-        for(var i=0, len=this._oColumnSet.keys.length; i<len; i++) {
-            oColumn = this._oColumnSet.keys[i];
-            if(oColumn.resizeable) {
-                elTh = oColumn.getThEl();
-                Dom.addClass(elTh, DT.CLASS_RESIZEABLE);
-                elThLiner = oColumn.getThLinerEl();
-                
-                // Bug 1915349: So resizer is as tall as TH when rowspan > 1
-                // Create a separate resizer liner with position:relative
-                elThResizerLiner = elTh.appendChild(document.createElement("div"));
-                elThResizerLiner.className = DT.CLASS_RESIZERLINER;
-                
-                // Move TH contents into the new resizer liner
-                elThResizerLiner.appendChild(elThLiner);
-                
-                // Create the resizer
-                elThResizer = elThResizerLiner.appendChild(document.createElement("div"));
-                elThResizer.id = elTh.id + "-resizer"; // Needed for ColumnResizer
-                elThResizer.className = DT.CLASS_RESIZER;
-                oColumn._elResizer = elThResizer;
-
-                // Create the resizer proxy, once globally
-                elResizerProxy = DT._initColumnResizerProxyEl();
-                oColumn._ddResizer = new YAHOO.util.ColumnResizer(
-                        this, oColumn, elTh, elThResizer, elResizerProxy);
-                cancelClick = function(e) {
-                    Ev.stopPropagation(e);
-                };
-                Ev.addListener(elThResizer,"click",cancelClick);
-            }
-        }
-    }
-    else {
-        YAHOO.log("Could not find DragDrop for resizeable Columns", "warn", this.toString());
-    }
-},
-
-/**
- * Destroys elements associated with Column functionality: ColumnDD and ColumnResizers.
- *
- * @method _destroyColumnHelpers
- * @private
- */
-_destroyColumnHelpers : function() {
-    this._destroyDraggableColumns();
-    this._destroyResizeableColumns();
-},
-
-/**
- * Initializes elements associated with Column functionality: ColumnDD and ColumnResizers.
- *
- * @method _initColumnHelpers
- * @private
- */
-_initColumnHelpers : function() {
-    if(this.get("draggableColumns")) {
-        this._initDraggableColumns();
-    }
-    this._initResizeableColumns();
-},
-
-/**
- * Destroy's the DataTable TBODY element, if available.
- *
- * @method _destroyTbodyEl
- * @private
- */
-_destroyTbodyEl : function() {
-    var elTbody = this._elTbody;
-    if(elTbody) {
-        var elTable = elTbody.parentNode;
-        Ev.purgeElement(elTbody, true);
-        elTable.removeChild(elTbody);
-        this._elTbody = null;
-    }
-},
-
-/**
- * Initializes TBODY element for data.
- *
- * @method _initTbodyEl
- * @param elTable {HTMLElement} TABLE element into which to create TBODY .
- * @private
- */
-_initTbodyEl : function(elTable) {
-    if(elTable) {
-        // Destroy previous
-        this._destroyTbodyEl();
-        
-        // Create TBODY
-        var elTbody = elTable.appendChild(document.createElement("tbody"));
-        elTbody.tabIndex = 0;
-        elTbody.className = DT.CLASS_DATA;
-    
-        // Set up DOM events for TBODY
-        Ev.addListener(elTbody, "focus", this._onTbodyFocus, this);
-        Ev.addListener(elTbody, "mouseover", this._onTableMouseover, this);
-        Ev.addListener(elTbody, "mouseout", this._onTableMouseout, this);
-        Ev.addListener(elTbody, "mousedown", this._onTableMousedown, this);
-        Ev.addListener(elTbody, "mouseup", this._onTableMouseup, this);
-        Ev.addListener(elTbody, "keydown", this._onTbodyKeydown, this);
-        Ev.addListener(elTbody, "keypress", this._onTableKeypress, this);
-        Ev.addListener(elTbody, "click", this._onTbodyClick, this);
-        
-        // Since we can't listen for click and dblclick on the same element...
-        // Attach separately to THEAD and TBODY
-        ///Ev.addListener(elTbody, "dblclick", this._onTableDblclick, this);
-        
-    
-        // IE puts focus outline in the wrong place
-        if(ua.ie) {
-            elTbody.hideFocus=true;
-        }
-
-        this._elTbody = elTbody;
-    }
-},
-
-/**
- * Destroy's the DataTable message TBODY element, if available.
- *
- * @method _destroyMsgTbodyEl
- * @private
- */
-_destroyMsgTbodyEl : function() {
-    var elMsgTbody = this._elMsgTbody;
-    if(elMsgTbody) {
-        var elTable = elMsgTbody.parentNode;
-        Ev.purgeElement(elMsgTbody, true);
-        elTable.removeChild(elMsgTbody);
-        this._elTbody = null;
-    }
-},
-
-/**
- * Initializes TBODY element for messaging.
- *
- * @method _initMsgTbodyEl
- * @param elTable {HTMLElement} TABLE element into which to create TBODY 
- * @private
- */
-_initMsgTbodyEl : function(elTable) {
-    if(elTable) {
-        var elMsgTbody = document.createElement("tbody");
-        elMsgTbody.className = DT.CLASS_MESSAGE;
-        var elMsgTr = elMsgTbody.appendChild(document.createElement("tr"));
-        elMsgTr.className = DT.CLASS_FIRST + " " + DT.CLASS_LAST;
-        this._elMsgTr = elMsgTr;
-        var elMsgTd = elMsgTr.appendChild(document.createElement("td"));
-        elMsgTd.colSpan = this._oColumnSet.keys.length || 1;
-        elMsgTd.className = DT.CLASS_FIRST + " " + DT.CLASS_LAST;
-        this._elMsgTd = elMsgTd;
-        elMsgTbody = elTable.insertBefore(elMsgTbody, this._elTbody);
-        var elMsgLiner = elMsgTd.appendChild(document.createElement("div"));
-        elMsgLiner.className = DT.CLASS_LINER;
-        this._elMsgTbody = elMsgTbody;
-
-        // Set up DOM events for TBODY
-        Ev.addListener(elMsgTbody, "focus", this._onTbodyFocus, this);
-        Ev.addListener(elMsgTbody, "mouseover", this._onTableMouseover, this);
-        Ev.addListener(elMsgTbody, "mouseout", this._onTableMouseout, this);
-        Ev.addListener(elMsgTbody, "mousedown", this._onTableMousedown, this);
-        Ev.addListener(elMsgTbody, "mouseup", this._onTableMouseup, this);
-        Ev.addListener(elMsgTbody, "keydown", this._onTbodyKeydown, this);
-        Ev.addListener(elMsgTbody, "keypress", this._onTableKeypress, this);
-        Ev.addListener(elMsgTbody, "click", this._onTbodyClick, this);
-    }
-},
-
-/**
- * Initialize internal event listeners
- *
- * @method _initEvents
- * @private
- */
-_initEvents : function () {
-    // Initialize Column sort
-    this._initColumnSort();
-        
-    // Add the document level click listener
-    YAHOO.util.Event.addListener(document, "click", this._onDocumentClick, this);
-
-    // Paginator integration
-    this.subscribe("paginatorChange",function () {
-        this._handlePaginatorChange.apply(this,arguments);
-    });
-
-    this.subscribe("initEvent",function () {
-        this.renderPaginator();
-    });
-
-    // Initialize CellEditor integration
-    this._initCellEditing();
-},
-
-/**     
-  * Initializes Column sorting.         
-  *     
-  * @method _initColumnSort     
-  * @private    
-  */    
-_initColumnSort : function() {
-    this.subscribe("theadCellClickEvent", this.onEventSortColumn);      
-
-    // Backward compatibility
-    var oSortedBy = this.get("sortedBy");
-    if(oSortedBy) {
-        if(oSortedBy.dir == "desc") {
-            this._configs.sortedBy.value.dir = DT.CLASS_DESC;
-        }
-        else if(oSortedBy.dir == "asc") {
-            this._configs.sortedBy.value.dir = DT.CLASS_ASC;
-        }
-    }
-},
-
-/**     
-  * Initializes CellEditor integration.         
-  *     
-  * @method _initCellEditing    
-  * @private    
-  */    
-_initCellEditing : function() {
-    this.subscribe("editorBlurEvent",function () {
-        this.onEditorBlurEvent.apply(this,arguments);
-    });
-    this.subscribe("editorBlockEvent",function () {
-        this.onEditorBlockEvent.apply(this,arguments);
-    });
-    this.subscribe("editorUnblockEvent",function () {
-        this.onEditorUnblockEvent.apply(this,arguments);
-    });
-},
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-// DOM MUTATION FUNCTIONS
-
-/**
- * Retruns classnames to represent current Column states.
- * @method _getColumnClassnames 
- * @param oColumn {YAHOO.widget.Column} Column instance.
- * @param aAddClasses {String[]} An array of additional classnames to add to the
- * return value.  
- * @return {String} A String of classnames to be assigned to TH or TD elements
- * for given Column.  
- * @private 
- */
-_getColumnClassNames : function (oColumn, aAddClasses) {
-    var allClasses;
-    
-    // Add CSS classes
-    if(lang.isString(oColumn.className)) {
-        // Single custom class
-        allClasses = [oColumn.className];
-    }
-    else if(lang.isArray(oColumn.className)) {
-        // Array of custom classes
-        allClasses = oColumn.className;
-    }
-    else {
-        // no custom classes
-        allClasses = [];
-    }
-    
-    // Hook for setting width with via dynamic style uses key since ID is too disposable
-    allClasses[allClasses.length] = this.getId() + "-col-" +oColumn.getSanitizedKey();
-
-    // Column key - minus any chars other than "A-Z", "a-z", "0-9", "_", "-", ".", or ":"
-    allClasses[allClasses.length] = "yui-dt-col-" +oColumn.getSanitizedKey();
-
-    var isSortedBy = this.get("sortedBy") || {};
-    // Sorted
-    if(oColumn.key === isSortedBy.key) {
-        allClasses[allClasses.length] = isSortedBy.dir || '';
-    }
-    // Hidden
-    if(oColumn.hidden) {
-        allClasses[allClasses.length] = DT.CLASS_HIDDEN;
-    }
-    // Selected
-    if(oColumn.selected) {
-        allClasses[allClasses.length] = DT.CLASS_SELECTED;
-    }
-    // Sortable
-    if(oColumn.sortable) {
-        allClasses[allClasses.length] = DT.CLASS_SORTABLE;
-    }
-    // Resizeable
-    if(oColumn.resizeable) {
-        allClasses[allClasses.length] = DT.CLASS_RESIZEABLE;
-    }
-    // Editable
-    if(oColumn.editor) {
-        allClasses[allClasses.length] = DT.CLASS_EDITABLE;
-    }
-    
-    // Addtnl classes, including First/Last
-    if(aAddClasses) {
-        allClasses = allClasses.concat(aAddClasses);
-    }
-    
-    return allClasses.join(' ');  
-},
-
-/**
- * Clears TR element template in response to any Column state change.
- * @method _clearTrTemplateEl
- * @private 
- */
-_clearTrTemplateEl : function () {
-    this._elTrTemplate = null;
-},
-
-/**
- * Returns a new TR element template with TD elements classed with current
- * Column states.
- * @method _getTrTemplateEl 
- * @return {HTMLElement} A TR element to be cloned and added to the DOM.
- * @private 
- */
-_getTrTemplateEl : function (oRecord, index) {
-    // Template is already available
-    if(this._elTrTemplate) {
-        return this._elTrTemplate;
-    }
-    // Template needs to be created
-    else {
-        var d   = document,
-            tr  = d.createElement('tr'),
-            td  = d.createElement('td'),
-            div = d.createElement('div');
-    
-        // Append the liner element
-        td.appendChild(div);
-
-        // Create TD elements into DOCUMENT FRAGMENT
-        var df = document.createDocumentFragment(),
-            allKeys = this._oColumnSet.keys,
-            elTd;
-
-        // Set state for each TD;
-        var aAddClasses;
-        for(var i=0, keysLen=allKeys.length; i<keysLen; i++) {
-            // Clone the TD template
-            elTd = td.cloneNode(true);
-
-            // Format the base TD
-            elTd = this._formatTdEl(allKeys[i], elTd, i, (i===keysLen-1));
-                        
-            df.appendChild(elTd);
-        }
-        tr.appendChild(df);
-        this._elTrTemplate = tr;
-        return tr;
-    }   
-},
-
-/**
- * Formats a basic TD element.
- * @method _formatTdEl 
- * @param oColumn {YAHOO.widget.Column} Associated Column instance. 
- * @param elTd {HTMLElement} An unformatted TD element.
- * @param index {Number} Column key index. 
- * @param isLast {Boolean} True if Column is last key of the ColumnSet.
- * @return {HTMLElement} A formatted TD element.
- * @private 
- */
-_formatTdEl : function (oColumn, elTd, index, isLast) {
-    var oColumnSet = this._oColumnSet;
-    
-    // Set the TD's accessibility headers
-    var allHeaders = oColumnSet.headers,
-        allColHeaders = allHeaders[index],
-        sTdHeaders = "",
-        sHeader;
-    for(var j=0, headersLen=allColHeaders.length; j < headersLen; j++) {
-        sHeader = this._sId + "-th-" + allColHeaders[j] + ' ';
-        sTdHeaders += sHeader;
-    }
-    elTd.headers = sTdHeaders;
-    
-    // Class the TD element
-    var aAddClasses = [];
-    if(index === 0) {
-        aAddClasses[aAddClasses.length] = DT.CLASS_FIRST;
-    }
-    if(isLast) {
-        aAddClasses[aAddClasses.length] = DT.CLASS_LAST;
-    }
-    elTd.className = this._getColumnClassNames(oColumn, aAddClasses);
-
-    // Class the liner element
-    elTd.firstChild.className = DT.CLASS_LINER;
-
-    // Set Column width for fallback cases
-    if(oColumn.width && DT._bDynStylesFallback) {
-        // Validate minWidth
-        var nWidth = (oColumn.minWidth && (oColumn.width < oColumn.minWidth)) ?
-                oColumn.minWidth : oColumn.width;
-        elTd.firstChild.style.overflow = 'hidden';
-        elTd.firstChild.style.width = nWidth + 'px';
-    }
-    
-    return elTd;
-},
-
-
-/**
- * Create a new TR element for a given Record and appends it with the correct
- * number of Column-state-classed TD elements. Striping is the responsibility of
- * the calling function, which may decide to stripe the single row, a subset of
- * rows, or all the rows.
- * @method _createTrEl
- * @param oRecord {YAHOO.widget.Record} Record instance
- * @return {HTMLElement} The new TR element.  This must be added to the DOM.
- * @private 
- */
-_addTrEl : function (oRecord) {
-    var elTrTemplate = this._getTrTemplateEl();
-    
-    // Clone the TR template.
-    var elTr = elTrTemplate.cloneNode(true);
-    
-    // Populate content
-    return this._updateTrEl(elTr,oRecord);
-},
-
-/**
- * Formats the contents of the given TR's TD elements with data from the given
- * Record. Only innerHTML should change, nothing structural.
- *
- * @method _updateTrEl
- * @param elTr {HTMLElement} The TR element to update.
- * @param oRecord {YAHOO.widget.Record} The associated Record instance.
- * @return {HTMLElement} DOM reference to the new TR element.
- * @private
- */
-_updateTrEl : function(elTr, oRecord) {
-    var ok = this.get("formatRow") ? this.get("formatRow").call(this, elTr, oRecord) : true;
-    if(ok) {
-        // Hide the row to prevent constant reflows
-        elTr.style.display = 'none';
-        
-        // Update TD elements with new data
-        var allTds = elTr.childNodes,
-            elTd;
-        for(var i=0,len=allTds.length; i<len; ++i) {
-            elTd = allTds[i];
-            
-            // Set the cell content
-            this.formatCell(allTds[i].firstChild, oRecord, this._oColumnSet.keys[i]);
-        }
-        
-        // Redisplay the row for reflow
-        elTr.style.display = '';
-    }
-    
-    elTr.id = oRecord.getId(); // Needed for Record association and tracking of FIRST/LAST
-    return elTr;
-},
-
-
-/**
- * Deletes TR element by DOM reference or by DataTable page row index.
- *
- * @method _deleteTrEl
- * @param row {HTMLElement | Number} TR element reference or Datatable page row index.
- * @return {Boolean} Returns true if successful, else returns false.
- * @private
- */
-_deleteTrEl : function(row) {
-    var rowIndex;
-
-    // Get page row index for the element
-    if(!lang.isNumber(row)) {
-        rowIndex = Dom.get(row).sectionRowIndex;
-    }
-    else {
-        rowIndex = row;
-    }
-    if(lang.isNumber(rowIndex) && (rowIndex > -2) && (rowIndex < this._elTbody.rows.length)) {
-        // Cannot use tbody.deleteRow due to IE6 instability
-        //return this._elTbody.deleteRow(rowIndex);
-        return this._elTbody.removeChild(this.getTrEl(row));
-    }
-    else {
-        return null;
-    }
-},
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-// CSS/STATE FUNCTIONS
-
-
-
-
-/**
- * Removes the class YAHOO.widget.DataTable.CLASS_FIRST from the first TR element
- * of the DataTable page and updates internal tracker.
- *
- * @method _unsetFirstRow
- * @private
- */
-_unsetFirstRow : function() {
-    // Remove FIRST
-    if(this._sFirstTrId) {
-        Dom.removeClass(this._sFirstTrId, DT.CLASS_FIRST);
-        this._sFirstTrId = null;
-    }
-},
-
-/**
- * Assigns the class YAHOO.widget.DataTable.CLASS_FIRST to the first TR element
- * of the DataTable page and updates internal tracker.
- *
- * @method _setFirstRow
- * @private
- */
-_setFirstRow : function() {
-    this._unsetFirstRow();
-    var elTr = this.getFirstTrEl();
-    if(elTr) {
-        // Set FIRST
-        Dom.addClass(elTr, DT.CLASS_FIRST);
-        this._sFirstTrId = elTr.id;
-    }
-},
-
-/**
- * Removes the class YAHOO.widget.DataTable.CLASS_LAST from the last TR element
- * of the DataTable page and updates internal tracker.
- *
- * @method _unsetLastRow
- * @private
- */
-_unsetLastRow : function() {
-    // Unassign previous class
-    if(this._sLastTrId) {
-        Dom.removeClass(this._sLastTrId, DT.CLASS_LAST);
-        this._sLastTrId = null;
-    }   
-},
-
-/**
- * Assigns the class YAHOO.widget.DataTable.CLASS_LAST to the last TR element
- * of the DataTable page and updates internal tracker.
- *
- * @method _setLastRow
- * @private
- */
-_setLastRow : function() {
-    this._unsetLastRow();
-    var elTr = this.getLastTrEl();
-    if(elTr) {
-        // Assign class
-        Dom.addClass(elTr, DT.CLASS_LAST);
-        this._sLastTrId = elTr.id;
-    }
-},
-
-/**
- * Assigns the classes DT.CLASS_EVEN and DT.CLASS_ODD to one, many, or all TR elements.
- *
- * @method _setRowStripes
- * @param row {HTMLElement | String | Number} (optional) HTML TR element reference
- * or string ID, or page row index of where to start striping.
- * @param range {Number} (optional) If given, how many rows to stripe, otherwise
- * stripe all the rows until the end.
- * @private
- */
-_setRowStripes : function(row, range) {
-    // Default values stripe all rows
-    var allRows = this._elTbody.rows,
-        nStartIndex = 0,
-        nEndIndex = allRows.length,
-        aOdds = [], nOddIdx = 0,
-        aEvens = [], nEvenIdx = 0;
-
-    // Stripe a subset
-    if((row !== null) && (row !== undefined)) {
-        // Validate given start row
-        var elStartRow = this.getTrEl(row);
-        if(elStartRow) {
-            nStartIndex = elStartRow.sectionRowIndex;
-
-            // Validate given range
-            if(lang.isNumber(range) && (range > 1)) {
-                nEndIndex = nStartIndex + range;
-            }
-        }
-    }
-
-    for(var i=nStartIndex; i<nEndIndex; i++) {
-        if(i%2) {
-            aOdds[nOddIdx++] = allRows[i];
-        } else {
-            aEvens[nEvenIdx++] = allRows[i];
-        }
-    }
-
-    if (aOdds.length) {
-        Dom.replaceClass(aOdds, DT.CLASS_EVEN, DT.CLASS_ODD);
-    }
-
-    if (aEvens.length) {
-        Dom.replaceClass(aEvens, DT.CLASS_ODD, DT.CLASS_EVEN);
-    }
-},
-
-/**
- * Assigns the class DT.CLASS_SELECTED to TR and TD elements.
- *
- * @method _setSelections
- * @private
- */
-_setSelections : function() {
-    // Keep track of selected rows
-    var allSelectedRows = this.getSelectedRows();
-    // Keep track of selected cells
-    var allSelectedCells = this.getSelectedCells();
-    // Anything to select?
-    if((allSelectedRows.length>0) || (allSelectedCells.length > 0)) {
-        var oColumnSet = this._oColumnSet,
-            el;
-        // Loop over each row
-        for(var i=0; i<allSelectedRows.length; i++) {
-            el = Dom.get(allSelectedRows[i]);
-            if(el) {
-                Dom.addClass(el, DT.CLASS_SELECTED);
-            }
-        }
-        // Loop over each cell
-        for(i=0; i<allSelectedCells.length; i++) {
-            el = Dom.get(allSelectedCells[i].recordId);
-            if(el) {
-                Dom.addClass(el.childNodes[oColumnSet.getColumn(allSelectedCells[i].columnKey).getKeyIndex()], DT.CLASS_SELECTED);
-            }
-        }
-    }       
-},
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-/////////////////////////////////////////////////////////////////////////////
-//
-// Private DOM Event Handlers
-//
-/////////////////////////////////////////////////////////////////////////////
-
-/**
- * Validates minWidths whenever the render chain ends.
- *
- * @method _onRenderChainEnd
- * @private
- */
-_onRenderChainEnd : function() {
-    // Hide loading message
-    this.hideTableMessage();
-    
-    // Show empty message
-    if(this._elTbody.rows.length === 0) {
-        this.showTableMessage(this.get("MSG_EMPTY"), DT.CLASS_EMPTY);        
-    }
-
-    // Execute in timeout thread to give implementers a chance
-    // to subscribe after the constructor
-    var oSelf = this;
-    setTimeout(function() {
-        if((oSelf instanceof DT) && oSelf._sId) {        
-            // Init event
-            if(oSelf._bInit) {
-                oSelf._bInit = false;
-                oSelf.fireEvent("initEvent");
-            }
-    
-            // Render event
-            oSelf.fireEvent("renderEvent");
-            // Backward compatibility
-            oSelf.fireEvent("refreshEvent");
-            YAHOO.log("DataTable rendered", "info", oSelf.toString());
-    
-            // Post-render routine
-            oSelf.validateColumnWidths();
-    
-            // Post-render event
-            oSelf.fireEvent("postRenderEvent");
-            
-            /*if(YAHOO.example.Performance.trialStart) {
-                YAHOO.log((new Date()).getTime() - YAHOO.example.Performance.trialStart.getTime() + " ms", "time");
-                YAHOO.example.Performance.trialStart = null;
-            }*/
-            
-            YAHOO.log("Post-render routine executed", "info", oSelf.toString());
-        }
-    }, 0);
-},
-
-/**
- * Handles click events on the DOCUMENT.
- *
- * @method _onDocumentClick
- * @param e {HTMLEvent} The click event.
- * @param oSelf {YAHOO.wiget.DataTable} DataTable instance.
- * @private
- */
-_onDocumentClick : function(e, oSelf) {
-    var elTarget = Ev.getTarget(e);
-    var elTag = elTarget.nodeName.toLowerCase();
-
-    if(!Dom.isAncestor(oSelf._elContainer, elTarget)) {
-        oSelf.fireEvent("tableBlurEvent");
-
-        // Fires editorBlurEvent when click is not within the TABLE.
-        // For cases when click is within the TABLE, due to timing issues,
-        // the editorBlurEvent needs to get fired by the lower-level DOM click
-        // handlers below rather than by the TABLE click handler directly.
-        if(oSelf._oCellEditor) {
-            if(oSelf._oCellEditor.getContainerEl) {
-                var elContainer = oSelf._oCellEditor.getContainerEl();
-                // Only if the click was not within the CellEditor container
-                if(!Dom.isAncestor(elContainer, elTarget) &&
-                        (elContainer.id !== elTarget.id)) {
-                    oSelf._oCellEditor.fireEvent("blurEvent", {editor: oSelf._oCellEditor});
-                }
-            }
-            // Backward Compatibility
-            else if(oSelf._oCellEditor.isActive) {
-                // Only if the click was not within the Cell Editor container
-                if(!Dom.isAncestor(oSelf._oCellEditor.container, elTarget) &&
-                        (oSelf._oCellEditor.container.id !== elTarget.id)) {
-                    oSelf.fireEvent("editorBlurEvent", {editor:oSelf._oCellEditor});
-                }
-            }
-        }
-    }
-},
-
-/**
- * Handles focus events on the DataTable instance.
- *
- * @method _onTableFocus
- * @param e {HTMLEvent} The focus event.
- * @param oSelf {YAHOO.wiget.DataTable} DataTable instance.
- * @private
- */
-_onTableFocus : function(e, oSelf) {
-    oSelf.fireEvent("tableFocusEvent");
-},
-
-/**
- * Handles focus events on the THEAD element.
- *
- * @method _onTheadFocus
- * @param e {HTMLEvent} The focus event.
- * @param oSelf {YAHOO.wiget.DataTable} DataTable instance.
- * @private
- */
-_onTheadFocus : function(e, oSelf) {
-    oSelf.fireEvent("theadFocusEvent");
-    oSelf.fireEvent("tableFocusEvent");
-},
-
-/**
- * Handles focus events on the TBODY element.
- *
- * @method _onTbodyFocus
- * @param e {HTMLEvent} The focus event.
- * @param oSelf {YAHOO.wiget.DataTable} DataTable instance.
- * @private
- */
-_onTbodyFocus : function(e, oSelf) {
-    oSelf.fireEvent("tbodyFocusEvent");
-    oSelf.fireEvent("tableFocusEvent");
-},
-
-/**
- * Handles mouseover events on the DataTable instance.
- *
- * @method _onTableMouseover
- * @param e {HTMLEvent} The mouseover event.
- * @param oSelf {YAHOO.wiget.DataTable} DataTable instance.
- * @private
- */
-_onTableMouseover : function(e, oSelf) {
-    var elTarget = Ev.getTarget(e);
-        var elTag = elTarget.nodeName.toLowerCase();
-        var bKeepBubbling = true;
-        while(elTarget && (elTag != "table")) {
-            switch(elTag) {
-                case "body":
-                     return;
-                case "a":
-                    break;
-                case "td":
-                    bKeepBubbling = oSelf.fireEvent("cellMouseoverEvent",{target:elTarget,event:e});
-                    break;
-                case "span":
-                    if(Dom.hasClass(elTarget, DT.CLASS_LABEL)) {
-                        bKeepBubbling = oSelf.fireEvent("theadLabelMouseoverEvent",{target:elTarget,event:e});
-                        // Backward compatibility
-                        bKeepBubbling = oSelf.fireEvent("headerLabelMouseoverEvent",{target:elTarget,event:e});
-                    }
-                    break;
-                case "th":
-                    bKeepBubbling = oSelf.fireEvent("theadCellMouseoverEvent",{target:elTarget,event:e});
-                    // Backward compatibility
-                    bKeepBubbling = oSelf.fireEvent("headerCellMouseoverEvent",{target:elTarget,event:e});
-                    break;
-                case "tr":
-                    if(elTarget.parentNode.nodeName.toLowerCase() == "thead") {
-                        bKeepBubbling = oSelf.fireEvent("theadRowMouseoverEvent",{target:elTarget,event:e});
-                        // Backward compatibility
-                        bKeepBubbling = oSelf.fireEvent("headerRowMouseoverEvent",{target:elTarget,event:e});
-                    }
-                    else {
-                        bKeepBubbling = oSelf.fireEvent("rowMouseoverEvent",{target:elTarget,event:e});
-                    }
-                    break;
-                default:
-                    break;
-            }
-            if(bKeepBubbling === false) {
-                return;
-            }
-            else {
-                elTarget = elTarget.parentNode;
-                if(elTarget) {
-                    elTag = elTarget.nodeName.toLowerCase();
-                }
-            }
-        }
-        oSelf.fireEvent("tableMouseoverEvent",{target:(elTarget || oSelf._elContainer),event:e});
-},
-
-/**
- * Handles mouseout events on the DataTable instance.
- *
- * @method _onTableMouseout
- * @param e {HTMLEvent} The mouseout event.
- * @param oSelf {YAHOO.wiget.DataTable} DataTable instance.
- * @private
- */
-_onTableMouseout : function(e, oSelf) {
-    var elTarget = Ev.getTarget(e);
-    var elTag = elTarget.nodeName.toLowerCase();
-    var bKeepBubbling = true;
-    while(elTarget && (elTag != "table")) {
-        switch(elTag) {
-            case "body":
-                return;
-            case "a":
-                break;
-            case "td":
-                bKeepBubbling = oSelf.fireEvent("cellMouseoutEvent",{target:elTarget,event:e});
-                break;
-            case "span":
-                if(Dom.hasClass(elTarget, DT.CLASS_LABEL)) {
-                    bKeepBubbling = oSelf.fireEvent("theadLabelMouseoutEvent",{target:elTarget,event:e});
-                    // Backward compatibility
-                    bKeepBubbling = oSelf.fireEvent("headerLabelMouseoutEvent",{target:elTarget,event:e});
-                }
-                break;
-            case "th":
-                bKeepBubbling = oSelf.fireEvent("theadCellMouseoutEvent",{target:elTarget,event:e});
-                // Backward compatibility
-                bKeepBubbling = oSelf.fireEvent("headerCellMouseoutEvent",{target:elTarget,event:e});
-                break;
-            case "tr":
-                if(elTarget.parentNode.nodeName.toLowerCase() == "thead") {
-                    bKeepBubbling = oSelf.fireEvent("theadRowMouseoutEvent",{target:elTarget,event:e});
-                    // Backward compatibility
-                    bKeepBubbling = oSelf.fireEvent("headerRowMouseoutEvent",{target:elTarget,event:e});
-                }
-                else {
-                    bKeepBubbling = oSelf.fireEvent("rowMouseoutEvent",{target:elTarget,event:e});
-                }
-                break;
-            default:
-                break;
-        }
-        if(bKeepBubbling === false) {
-            return;
-        }
-        else {
-            elTarget = elTarget.parentNode;
-            if(elTarget) {
-                elTag = elTarget.nodeName.toLowerCase();
-            }
-        }
-    }
-    oSelf.fireEvent("tableMouseoutEvent",{target:(elTarget || oSelf._elContainer),event:e});
-},
-
-/**
- * Handles mousedown events on the DataTable instance.
- *
- * @method _onTableMousedown
- * @param e {HTMLEvent} The mousedown event.
- * @param oSelf {YAHOO.wiget.DataTable} DataTable instance.
- * @private
- */
-_onTableMousedown : function(e, oSelf) {
-    var elTarget = Ev.getTarget(e);
-    var elTag = elTarget.nodeName.toLowerCase();
-    var bKeepBubbling = true;
-    while(elTarget && (elTag != "table")) {
-        switch(elTag) {
-            case "body":
-                return;
-            case "a":
-                break;
-            case "td":
-                bKeepBubbling = oSelf.fireEvent("cellMousedownEvent",{target:elTarget,event:e});
-                break;
-            case "span":
-                if(Dom.hasClass(elTarget, DT.CLASS_LABEL)) {
-                    bKeepBubbling = oSelf.fireEvent("theadLabelMousedownEvent",{target:elTarget,event:e});
-                    // Backward compatibility
-                    bKeepBubbling = oSelf.fireEvent("headerLabelMousedownEvent",{target:elTarget,event:e});
-                }
-                break;
-            case "th":
-                bKeepBubbling = oSelf.fireEvent("theadCellMousedownEvent",{target:elTarget,event:e});
-                // Backward compatibility
-                bKeepBubbling = oSelf.fireEvent("headerCellMousedownEvent",{target:elTarget,event:e});
-                break;
-            case "tr":
-                if(elTarget.parentNode.nodeName.toLowerCase() == "thead") {
-                    bKeepBubbling = oSelf.fireEvent("theadRowMousedownEvent",{target:elTarget,event:e});
-                    // Backward compatibility
-                    bKeepBubbling = oSelf.fireEvent("headerRowMousedownEvent",{target:elTarget,event:e});
-                }
-                else {
-                    bKeepBubbling = oSelf.fireEvent("rowMousedownEvent",{target:elTarget,event:e});
-                }
-                break;
-            default:
-                break;
-        }
-        if(bKeepBubbling === false) {
-            return;
-        }
-        else {
-            elTarget = elTarget.parentNode;
-            if(elTarget) {
-                elTag = elTarget.nodeName.toLowerCase();
-            }
-        }
-    }
-    oSelf.fireEvent("tableMousedownEvent",{target:(elTarget || oSelf._elContainer),event:e});
-},
-
-/**
- * Handles mouseup events on the DataTable instance.
- *
- * @method _onTableMouseup
- * @param e {HTMLEvent} The mouseup event.
- * @param oSelf {YAHOO.wiget.DataTable} DataTable instance.
- * @private
- */
-_onTableMouseup : function(e, oSelf) {
-    var elTarget = Ev.getTarget(e);
-    var elTag = elTarget.nodeName.toLowerCase();
-    var bKeepBubbling = true;
-    while(elTarget && (elTag != "table")) {
-        switch(elTag) {
-            case "body":
-                return;
-            case "a":
-                break;
-            case "td":
-                bKeepBubbling = oSelf.fireEvent("cellMouseupEvent",{target:elTarget,event:e});
-                break;
-            case "span":
-                if(Dom.hasClass(elTarget, DT.CLASS_LABEL)) {
-                    bKeepBubbling = oSelf.fireEvent("theadLabelMouseupEvent",{target:elTarget,event:e});
-                    // Backward compatibility
-                    bKeepBubbling = oSelf.fireEvent("headerLabelMouseupEvent",{target:elTarget,event:e});
-                }
-                break;
-            case "th":
-                bKeepBubbling = oSelf.fireEvent("theadCellMouseupEvent",{target:elTarget,event:e});
-                // Backward compatibility
-                bKeepBubbling = oSelf.fireEvent("headerCellMouseupEvent",{target:elTarget,event:e});
-                break;
-            case "tr":
-                if(elTarget.parentNode.nodeName.toLowerCase() == "thead") {
-                    bKeepBubbling = oSelf.fireEvent("theadRowMouseupEvent",{target:elTarget,event:e});
-                    // Backward compatibility
-                    bKeepBubbling = oSelf.fireEvent("headerRowMouseupEvent",{target:elTarget,event:e});
-                }
-                else {
-                    bKeepBubbling = oSelf.fireEvent("rowMouseupEvent",{target:elTarget,event:e});
-                }
-                break;
-            default:
-                break;
-        }
-        if(bKeepBubbling === false) {
-            return;
-        }
-        else {
-            elTarget = elTarget.parentNode;
-            if(elTarget) {
-                elTag = elTarget.nodeName.toLowerCase();
-            }
-        }
-    }
-    oSelf.fireEvent("tableMouseupEvent",{target:(elTarget || oSelf._elContainer),event:e});
-},
-
-/**
- * Handles dblclick events on the DataTable instance.
- *
- * @method _onTableDblclick
- * @param e {HTMLEvent} The dblclick event.
- * @param oSelf {YAHOO.wiget.DataTable} DataTable instance.
- * @private
- */
-_onTableDblclick : function(e, oSelf) {
-    var elTarget = Ev.getTarget(e);
-    var elTag = elTarget.nodeName.toLowerCase();
-    var bKeepBubbling = true;
-    while(elTarget && (elTag != "table")) {
-        switch(elTag) {
-            case "body":
-                return;
-            case "td":
-                bKeepBubbling = oSelf.fireEvent("cellDblclickEvent",{target:elTarget,event:e});
-                break;
-            case "span":
-                if(Dom.hasClass(elTarget, DT.CLASS_LABEL)) {
-                    bKeepBubbling = oSelf.fireEvent("theadLabelDblclickEvent",{target:elTarget,event:e});
-                    // Backward compatibility
-                    bKeepBubbling = oSelf.fireEvent("headerLabelDblclickEvent",{target:elTarget,event:e});
-                }
-                break;
-            case "th":
-                bKeepBubbling = oSelf.fireEvent("theadCellDblclickEvent",{target:elTarget,event:e});
-                // Backward compatibility
-                bKeepBubbling = oSelf.fireEvent("headerCellDblclickEvent",{target:elTarget,event:e});
-                break;
-            case "tr":
-                if(elTarget.parentNode.nodeName.toLowerCase() == "thead") {
-                    bKeepBubbling = oSelf.fireEvent("theadRowDblclickEvent",{target:elTarget,event:e});
-                    // Backward compatibility
-                    bKeepBubbling = oSelf.fireEvent("headerRowDblclickEvent",{target:elTarget,event:e});
-                }
-                else {
-                    bKeepBubbling = oSelf.fireEvent("rowDblclickEvent",{target:elTarget,event:e});
-                }
-                break;
-            default:
-                break;
-        }
-        if(bKeepBubbling === false) {
-            return;
-        }
-        else {
-            elTarget = elTarget.parentNode;
-            if(elTarget) {
-                elTag = elTarget.nodeName.toLowerCase();
-            }
-        }
-    }
-    oSelf.fireEvent("tableDblclickEvent",{target:(elTarget || oSelf._elContainer),event:e});
-},
-/**
- * Handles keydown events on the THEAD element.
- *
- * @method _onTheadKeydown
- * @param e {HTMLEvent} The key event.
- * @param oSelf {YAHOO.wiget.DataTable} DataTable instance.
- * @private
- */
-_onTheadKeydown : function(e, oSelf) {
-    var elTarget = Ev.getTarget(e);
-    var elTag = elTarget.nodeName.toLowerCase();
-    var bKeepBubbling = true;
-    while(elTarget && (elTag != "table")) {
-        switch(elTag) {
-            case "body":
-                return;
-            case "input":
-            case "textarea":
-                // TODO: implement textareaKeyEvent
-                break;
-            case "thead":
-                bKeepBubbling = oSelf.fireEvent("theadKeyEvent",{target:elTarget,event:e});
-                break;
-            default:
-                break;
-        }
-        if(bKeepBubbling === false) {
-            return;
-        }
-        else {
-            elTarget = elTarget.parentNode;
-            if(elTarget) {
-                elTag = elTarget.nodeName.toLowerCase();
-            }
-        }
-    }
-    oSelf.fireEvent("tableKeyEvent",{target:(elTarget || oSelf._elContainer),event:e});
-},
-
-/**
- * Handles keydown events on the TBODY element. Handles selection behavior,
- * provides hooks for ENTER to edit functionality.
- *
- * @method _onTbodyKeydown
- * @param e {HTMLEvent} The key event.
- * @param oSelf {YAHOO.wiget.DataTable} DataTable instance.
- * @private
- */
-_onTbodyKeydown : function(e, oSelf) {
-    var sMode = oSelf.get("selectionMode");
-
-    if(sMode == "standard") {
-        oSelf._handleStandardSelectionByKey(e);
-    }
-    else if(sMode == "single") {
-        oSelf._handleSingleSelectionByKey(e);
-    }
-    else if(sMode == "cellblock") {
-        oSelf._handleCellBlockSelectionByKey(e);
-    }
-    else if(sMode == "cellrange") {
-        oSelf._handleCellRangeSelectionByKey(e);
-    }
-    else if(sMode == "singlecell") {
-        oSelf._handleSingleCellSelectionByKey(e);
-    }
-    
-    if(oSelf._oCellEditor) {
-        if(oSelf._oCellEditor.fireEvent) {
-            oSelf._oCellEditor.fireEvent("blurEvent", {editor: oSelf._oCellEditor});
-        }
-        else if(oSelf._oCellEditor.isActive) {
-            oSelf.fireEvent("editorBlurEvent", {editor:oSelf._oCellEditor});
-        }
-    }
-
-    var elTarget = Ev.getTarget(e);
-    var elTag = elTarget.nodeName.toLowerCase();
-    var bKeepBubbling = true;
-    while(elTarget && (elTag != "table")) {
-        switch(elTag) {
-            case "body":
-                return;
-            case "tbody":
-                bKeepBubbling = oSelf.fireEvent("tbodyKeyEvent",{target:elTarget,event:e});
-                break;
-            default:
-                break;
-        }
-        if(bKeepBubbling === false) {
-            return;
-        }
-        else {
-            elTarget = elTarget.parentNode;
-            if(elTarget) {
-                elTag = elTarget.nodeName.toLowerCase();
-            }
-        }
-    }
-    oSelf.fireEvent("tableKeyEvent",{target:(elTarget || oSelf._elContainer),event:e});
-},
-
-/**
- * Handles keypress events on the TABLE. Mainly to support stopEvent on Mac.
- *
- * @method _onTableKeypress
- * @param e {HTMLEvent} The key event.
- * @param oSelf {YAHOO.wiget.DataTable} DataTable instance.
- * @private
- */
-_onTableKeypress : function(e, oSelf) {
-    if(ua.opera || (navigator.userAgent.toLowerCase().indexOf("mac") !== -1) && (ua.webkit < 420)) {
-        var nKey = Ev.getCharCode(e);
-        // arrow down
-        if(nKey == 40) {
-            Ev.stopEvent(e);
-        }
-        // arrow up
-        else if(nKey == 38) {
-            Ev.stopEvent(e);
-        }
-    }
-},
-
-/**
- * Handles click events on the THEAD element.
- *
- * @method _onTheadClick
- * @param e {HTMLEvent} The click event.
- * @param oSelf {YAHOO.wiget.DataTable} DataTable instance.
- * @private
- */
-_onTheadClick : function(e, oSelf) {
-    // This blurs the CellEditor
-    if(oSelf._oCellEditor) {
-        if(oSelf._oCellEditor.fireEvent) {
-            oSelf._oCellEditor.fireEvent("blurEvent", {editor: oSelf._oCellEditor});
-        }
-        // Backward compatibility
-        else if(oSelf._oCellEditor.isActive) {
-            oSelf.fireEvent("editorBlurEvent", {editor:oSelf._oCellEditor});
-        }
-    }
-
-    var elTarget = Ev.getTarget(e),
-        elTag = elTarget.nodeName.toLowerCase(),
-        bKeepBubbling = true;
-    while(elTarget && (elTag != "table")) {
-        switch(elTag) {
-            case "body":
-                return;
-            case "input":
-                var sType = elTarget.type.toLowerCase();
-                if(sType == "checkbox") {
-                    bKeepBubbling = oSelf.fireEvent("theadCheckboxClickEvent",{target:elTarget,event:e});
-                }
-                else if(sType == "radio") {
-                    bKeepBubbling = oSelf.fireEvent("theadRadioClickEvent",{target:elTarget,event:e});
-                }
-                else if((sType == "button") || (sType == "image") || (sType == "submit") || (sType == "reset")) {
-                    bKeepBubbling = oSelf.fireEvent("theadButtonClickEvent",{target:elTarget,event:e});
-                }
-                break;
-            case "a":
-                bKeepBubbling = oSelf.fireEvent("theadLinkClickEvent",{target:elTarget,event:e});
-                break;
-            case "button":
-                bKeepBubbling = oSelf.fireEvent("theadButtonClickEvent",{target:elTarget,event:e});
-                break;
-            case "span":
-                if(Dom.hasClass(elTarget, DT.CLASS_LABEL)) {
-                    bKeepBubbling = oSelf.fireEvent("theadLabelClickEvent",{target:elTarget,event:e});
-                    // Backward compatibility
-                    bKeepBubbling = oSelf.fireEvent("headerLabelClickEvent",{target:elTarget,event:e});
-                }
-                break;
-            case "th":
-                bKeepBubbling = oSelf.fireEvent("theadCellClickEvent",{target:elTarget,event:e});
-                // Backward compatibility
-                bKeepBubbling = oSelf.fireEvent("headerCellClickEvent",{target:elTarget,event:e});
-                break;
-            case "tr":
-                bKeepBubbling = oSelf.fireEvent("theadRowClickEvent",{target:elTarget,event:e});
-                // Backward compatibility
-                bKeepBubbling = oSelf.fireEvent("headerRowClickEvent",{target:elTarget,event:e});
-                break;
-            default:
-                break;
-        }
-        if(bKeepBubbling === false) {
-            return;
-        }
-        else {
-            elTarget = elTarget.parentNode;
-            if(elTarget) {
-                elTag = elTarget.nodeName.toLowerCase();
-            }
-        }
-    }
-    oSelf.fireEvent("tableClickEvent",{target:(elTarget || oSelf._elContainer),event:e});
-},
-
-/**
- * Handles click events on the primary TBODY element.
- *
- * @method _onTbodyClick
- * @param e {HTMLEvent} The click event.
- * @param oSelf {YAHOO.wiget.DataTable} DataTable instance.
- * @private
- */
-_onTbodyClick : function(e, oSelf) {
-    // This blurs the CellEditor
-    if(oSelf._oCellEditor) {
-        if(oSelf._oCellEditor.fireEvent) {
-            oSelf._oCellEditor.fireEvent("blurEvent", {editor: oSelf._oCellEditor});
-        }
-        else if(oSelf._oCellEditor.isActive) {
-            oSelf.fireEvent("editorBlurEvent", {editor:oSelf._oCellEditor});
-        }
-    }
-
-    // Fire Custom Events
-    var elTarget = Ev.getTarget(e),
-        elTag = elTarget.nodeName.toLowerCase(),
-        bKeepBubbling = true;
-    while(elTarget && (elTag != "table")) {
-        switch(elTag) {
-            case "body":
-                return;
-            case "input":
-                var sType = elTarget.type.toLowerCase();
-                if(sType == "checkbox") {
-                    bKeepBubbling = oSelf.fireEvent("checkboxClickEvent",{target:elTarget,event:e});
-                }
-                else if(sType == "radio") {
-                    bKeepBubbling = oSelf.fireEvent("radioClickEvent",{target:elTarget,event:e});
-                }
-                else if((sType == "button") || (sType == "image") || (sType == "submit") || (sType == "reset")) {
-                    bKeepBubbling = oSelf.fireEvent("buttonClickEvent",{target:elTarget,event:e});
-                }
-                break;
-            case "a":
-                bKeepBubbling = oSelf.fireEvent("linkClickEvent",{target:elTarget,event:e});
-                break;
-            case "button":
-                bKeepBubbling = oSelf.fireEvent("buttonClickEvent",{target:elTarget,event:e});
-                break;
-            case "td":
-                bKeepBubbling = oSelf.fireEvent("cellClickEvent",{target:elTarget,event:e});
-                break;
-            case "tr":
-                bKeepBubbling = oSelf.fireEvent("rowClickEvent",{target:elTarget,event:e});
-                break;
-            default:
-                break;
-        }
-        if(bKeepBubbling === false) {
-            return;
-        }
-        else {
-            elTarget = elTarget.parentNode;
-            if(elTarget) {
-                elTag = elTarget.nodeName.toLowerCase();
-            }
-        }
-    }
-    oSelf.fireEvent("tableClickEvent",{target:(elTarget || oSelf._elContainer),event:e});
-},
-
-/**
- * Handles change events on SELECT elements within DataTable.
- *
- * @method _onDropdownChange
- * @param e {HTMLEvent} The change event.
- * @param oSelf {YAHOO.wiget.DataTable} DataTable instance.
- * @private
- */
-_onDropdownChange : function(e, oSelf) {
-    var elTarget = Ev.getTarget(e);
-    oSelf.fireEvent("dropdownChangeEvent", {event:e, target:elTarget});
-},
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-/////////////////////////////////////////////////////////////////////////////
-//
-// Public member variables
-//
-/////////////////////////////////////////////////////////////////////////////
-/**
- * Returns object literal of initial configs.
- *
- * @property configs
- * @type Object
- * @default {} 
- */
-configs: null,
-
-
-/////////////////////////////////////////////////////////////////////////////
-//
-// Public methods
-//
-/////////////////////////////////////////////////////////////////////////////
-
-/**
- * Returns unique id assigned to instance, which is a useful prefix for
- * generating unique DOM ID strings.
- *
- * @method getId
- * @return {String} Unique ID of the DataSource instance.
- */
-getId : function() {
-    return this._sId;
-},
-
-/**
- * DataSource instance name, for logging.
- *
- * @method toString
- * @return {String} Unique name of the DataSource instance.
- */
-
-toString : function() {
-    return "DataTable instance " + this._sId;
-},
-
-/**
- * Returns the DataTable instance's DataSource instance.
- *
- * @method getDataSource
- * @return {YAHOO.util.DataSource} DataSource instance.
- */
-getDataSource : function() {
-    return this._oDataSource;
-},
-
-/**
- * Returns the DataTable instance's ColumnSet instance.
- *
- * @method getColumnSet
- * @return {YAHOO.widget.ColumnSet} ColumnSet instance.
- */
-getColumnSet : function() {
-    return this._oColumnSet;
-},
-
-/**
- * Returns the DataTable instance's RecordSet instance.
- *
- * @method getRecordSet
- * @return {YAHOO.widget.RecordSet} RecordSet instance.
- */
-getRecordSet : function() {
-    return this._oRecordSet;
-},
-
-/**
- * Returns on object literal representing the DataTable instance's current
- * state with the following properties:
- * <dl>
- * <dt>pagination</dt>
- * <dd>Instance of YAHOO.widget.Paginator</dd>
- *
- * <dt>sortedBy</dt>
- * <dd>
- *     <dl>
- *         <dt>sortedBy.key</dt>
- *         <dd>{String} Key of sorted Column</dd>
- *         <dt>sortedBy.dir</dt>
- *         <dd>{String} Initial sort direction, either YAHOO.widget.DataTable.CLASS_ASC or YAHOO.widget.DataTable.CLASS_DESC</dd>
- *     </dl>
- * </dd>
- *
- * <dt>selectedRows</dt>
- * <dd>Array of selected rows by Record ID.</dd>
- *
- * <dt>selectedCells</dt>
- * <dd>Selected cells as an array of object literals:
- *     {recordId:sRecordId, columnKey:sColumnKey}</dd>
- * </dl>
- *  
- * @method getState
- * @return {Object} DataTable instance state object literal values.
- */
-getState : function() {
-    return {
-        totalRecords: this.get('paginator') ? this.get('paginator').get("totalRecords") : this._oRecordSet.getLength(),
-        pagination: this.get("paginator") ? this.get("paginator").getState() : null,
-        sortedBy: this.get("sortedBy"),
-        selectedRows: this.getSelectedRows(),
-        selectedCells: this.getSelectedCells()
-    };
-},
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-// DOM ACCESSORS
-
-/**
- * Returns DOM reference to the DataTable's container element.
- *
- * @method getContainerEl
- * @return {HTMLElement} Reference to DIV element.
- */
-getContainerEl : function() {
-    return this._elContainer;
-},
-
-/**
- * Returns DOM reference to the DataTable's TABLE element.
- *
- * @method getTableEl
- * @return {HTMLElement} Reference to TABLE element.
- */
-getTableEl : function() {
-    return this._elTable;
-},
-
-/**
- * Returns DOM reference to the DataTable's THEAD element.
- *
- * @method getTheadEl
- * @return {HTMLElement} Reference to THEAD element.
- */
-getTheadEl : function() {
-    return this._elThead;
-},
-
-/**
- * Returns DOM reference to the DataTable's primary TBODY element.
- *
- * @method getTbodyEl
- * @return {HTMLElement} Reference to TBODY element.
- */
-getTbodyEl : function() {
-    return this._elTbody;
-},
-
-/**
- * Returns DOM reference to the DataTable's secondary TBODY element that is
- * used to display messages.
- *
- * @method getMsgTbodyEl
- * @return {HTMLElement} Reference to TBODY element.
- */
-getMsgTbodyEl : function() {
-    return this._elMsgTbody;
-},
-
-/**
- * Returns DOM reference to the TD element within the secondary TBODY that is
- * used to display messages.
- *
- * @method getMsgTdEl
- * @return {HTMLElement} Reference to TD element.
- */
-getMsgTdEl : function() {
-    return this._elMsgTd;
-},
-
-/**
- * Returns the corresponding TR reference for a given DOM element, ID string or
- * directly page row index. If the given identifier is a child of a TR element,
- * then DOM tree is traversed until a parent TR element is returned, otherwise
- * null.
- *
- * @method getTrEl
- * @param row {HTMLElement | String | Number | YAHOO.widget.Record} Which row to
- * get: by element reference, ID string, page row index, or Record.
- * @return {HTMLElement} Reference to TR element, or null.
- */
-getTrEl : function(row) {
-    // By Record
-    if(row instanceof YAHOO.widget.Record) {
-        return document.getElementById(row.getId());
-    }
-    // By page row index
-    else if(lang.isNumber(row)) {
-        var allRows = this._elTbody.rows;
-        return ((row > -1) && (row < allRows.length)) ? allRows[row] : null;
-    }
-    // By ID string or element reference
-    else {
-        var elRow = (lang.isString(row)) ? document.getElementById(row) : row;
-
-        // Validate HTML element
-        if(elRow && (elRow.ownerDocument == document)) {
-            // Validate TR element
-            if(elRow.nodeName.toLowerCase() != "tr") {
-                // Traverse up the DOM to find the corresponding TR element
-                elRow = Dom.getAncestorByTagName(elRow,"tr");
-            }
-
-            return elRow;
-        }
-    }
-
-    return null;
-},
-
-/**
- * Returns DOM reference to the first TR element in the DataTable page, or null.
- *
- * @method getFirstTrEl
- * @return {HTMLElement} Reference to TR element.
- */
-getFirstTrEl : function() {
-    return this._elTbody.rows[0] || null;
-},
-
-/**
- * Returns DOM reference to the last TR element in the DataTable page, or null.
- *
- * @method getLastTrEl
- * @return {HTMLElement} Reference to last TR element.
- */
-getLastTrEl : function() {
-    var allRows = this._elTbody.rows;
-        if(allRows.length > 0) {
-            return allRows[allRows.length-1] || null;
-        }
-},
-
-/**
- * Returns DOM reference to the next TR element from the given TR element, or null.
- *
- * @method getNextTrEl
- * @param row {HTMLElement | String | Number | YAHOO.widget.Record} Element
- * reference, ID string, page row index, or Record from which to get next TR element.
- * @return {HTMLElement} Reference to next TR element.
- */
-getNextTrEl : function(row) {
-    var nThisTrIndex = this.getTrIndex(row);
-    if(nThisTrIndex !== null) {
-        var allRows = this._elTbody.rows;
-        if(nThisTrIndex < allRows.length-1) {
-            return allRows[nThisTrIndex+1];
-        }
-    }
-
-    YAHOO.log("Could not get next TR element for row " + row, "info", this.toString());
-    return null;
-},
-
-/**
- * Returns DOM reference to the previous TR element from the given TR element, or null.
- *
- * @method getPreviousTrEl
- * @param row {HTMLElement | String | Number | YAHOO.widget.Record} Element
- * reference, ID string, page row index, or Record from which to get previous TR element.
- * @return {HTMLElement} Reference to previous TR element.
- */
-getPreviousTrEl : function(row) {
-    var nThisTrIndex = this.getTrIndex(row);
-    if(nThisTrIndex !== null) {
-        var allRows = this._elTbody.rows;
-        if(nThisTrIndex > 0) {
-            return allRows[nThisTrIndex-1];
-        }
-    }
-
-    YAHOO.log("Could not get previous TR element for row " + row, "info", this.toString());
-    return null;
-},
-
-/**
- * Returns DOM reference to a TD liner element.
- *
- * @method getTdLinerEl
- * @param cell {HTMLElement | Object} TD element or child of a TD element, or
- * object literal of syntax {record:oRecord, column:oColumn}.
- * @return {HTMLElement} Reference to TD liner element.
- */
-getTdLinerEl : function(cell) {
-    var elCell = this.getTdEl(cell);
-    return elCell.firstChild || null;
-},
-
-/**
- * Returns DOM reference to a TD element.
- *
- * @method getTdEl
- * @param cell {HTMLElement | String | Object} TD element or child of a TD element, or
- * object literal of syntax {record:oRecord, column:oColumn}.
- * @return {HTMLElement} Reference to TD element.
- */
-getTdEl : function(cell) {
-    var elCell;
-    var el = Dom.get(cell);
-
-    // Validate HTML element
-    if(el && (el.ownerDocument == document)) {
-        // Validate TD element
-        if(el.nodeName.toLowerCase() != "td") {
-            // Traverse up the DOM to find the corresponding TR element
-            elCell = Dom.getAncestorByTagName(el, "td");
-        }
-        else {
-            elCell = el;
-        }
-        
-        // Make sure the TD is in this TBODY
-        // Bug 2527707 and bug 2263558
-        if(elCell && ((elCell.parentNode.parentNode == this._elTbody) || (elCell.parentNode.parentNode === null))) {
-            // Now we can return the TD element
-            return elCell;
-        }
-    }
-    else if(cell) {
-        var oRecord, nColKeyIndex;
-
-        if(lang.isString(cell.columnKey) && lang.isString(cell.recordId)) {
-            oRecord = this.getRecord(cell.recordId);
-            var oColumn = this.getColumn(cell.columnKey);
-            if(oColumn) {
-                nColKeyIndex = oColumn.getKeyIndex();
-            }
-
-        }
-        if(cell.record && cell.column && cell.column.getKeyIndex) {
-            oRecord = cell.record;
-            nColKeyIndex = cell.column.getKeyIndex();
-        }
-        var elRow = this.getTrEl(oRecord);
-        if((nColKeyIndex !== null) && elRow && elRow.cells && elRow.cells.length > 0) {
-            return elRow.cells[nColKeyIndex] || null;
-        }
-    }
-
-    return null;
-},
-
-/**
- * Returns DOM reference to the first TD element in the DataTable page (by default),
- * the first TD element of the optionally given row, or null.
- *
- * @method getFirstTdEl
- * @param row {HTMLElement} (optional) row from which to get first TD
- * @return {HTMLElement} Reference to TD element.
- */
-getFirstTdEl : function(row) {
-    var elRow = this.getTrEl(row) || this.getFirstTrEl();
-    if(elRow && (elRow.cells.length > 0)) {
-        return elRow.cells[0];
-    }
-    YAHOO.log("Could not get first TD element for row " + elRow, "info", this.toString());
-    return null;
-},
-
-/**
- * Returns DOM reference to the last TD element in the DataTable page (by default),
- * the first TD element of the optionally given row, or null.
- *
- * @method getLastTdEl
- * @return {HTMLElement} Reference to last TD element.
- */
-getLastTdEl : function(row) {
-    var elRow = this.getTrEl(row) || this.getLastTrEl();
-    if(elRow && (elRow.cells.length > 0)) {
-        return elRow.cells[elRow.cells.length-1];
-    }
-    YAHOO.log("Could not get last TD element for row " + elRow, "info", this.toString());
-    return null;
-},
-
-/**
- * Returns DOM reference to the next TD element from the given cell, or null.
- *
- * @method getNextTdEl
- * @param cell {HTMLElement | String | Object} DOM element reference or string ID, or
- * object literal of syntax {record:oRecord, column:oColumn} from which to get next TD element.
- * @return {HTMLElement} Reference to next TD element, or null.
- */
-getNextTdEl : function(cell) {
-    var elCell = this.getTdEl(cell);
-    if(elCell) {
-        var nThisTdIndex = elCell.cellIndex;
-        var elRow = this.getTrEl(elCell);
-        if(nThisTdIndex < elRow.cells.length-1) {
-            return elRow.cells[nThisTdIndex+1];
-        }
-        else {
-            var elNextRow = this.getNextTrEl(elRow);
-            if(elNextRow) {
-                return elNextRow.cells[0];
-            }
-        }
-    }
-    YAHOO.log("Could not get next TD element for cell " + cell, "info", this.toString());
-    return null;
-},
-
-/**
- * Returns DOM reference to the previous TD element from the given cell, or null.
- *
- * @method getPreviousTdEl
- * @param cell {HTMLElement | String | Object} DOM element reference or string ID, or
- * object literal of syntax {record:oRecord, column:oColumn} from which to get previous TD element.
- * @return {HTMLElement} Reference to previous TD element, or null.
- */
-getPreviousTdEl : function(cell) {
-    var elCell = this.getTdEl(cell);
-    if(elCell) {
-        var nThisTdIndex = elCell.cellIndex;
-        var elRow = this.getTrEl(elCell);
-        if(nThisTdIndex > 0) {
-            return elRow.cells[nThisTdIndex-1];
-        }
-        else {
-            var elPreviousRow = this.getPreviousTrEl(elRow);
-            if(elPreviousRow) {
-                return this.getLastTdEl(elPreviousRow);
-            }
-        }
-    }
-    YAHOO.log("Could not get next TD element for cell " + cell, "info", this.toString());
-    return null;
-},
-
-/**
- * Returns DOM reference to the above TD element from the given cell, or null.
- *
- * @method getAboveTdEl
- * @param cell {HTMLElement | String | Object} DOM element reference or string ID, or
- * object literal of syntax {record:oRecord, column:oColumn} from which to get next TD element.
- * @return {HTMLElement} Reference to next TD element, or null.
- */
-getAboveTdEl : function(cell) {
-    var elCell = this.getTdEl(cell);
-    if(elCell) {
-        var elPreviousRow = this.getPreviousTrEl(elCell);
-        if(elPreviousRow) {
-            return elPreviousRow.cells[elCell.cellIndex];
-        }
-    }
-    YAHOO.log("Could not get above TD element for cell " + cell, "info", this.toString());
-    return null;
-},
-
-/**
- * Returns DOM reference to the below TD element from the given cell, or null.
- *
- * @method getBelowTdEl
- * @param cell {HTMLElement | String | Object} DOM element reference or string ID, or
- * object literal of syntax {record:oRecord, column:oColumn} from which to get previous TD element.
- * @return {HTMLElement} Reference to previous TD element, or null.
- */
-getBelowTdEl : function(cell) {
-    var elCell = this.getTdEl(cell);
-    if(elCell) {
-        var elNextRow = this.getNextTrEl(elCell);
-        if(elNextRow) {
-            return elNextRow.cells[elCell.cellIndex];
-        }
-    }
-    YAHOO.log("Could not get below TD element for cell " + cell, "info", this.toString());
-    return null;
-},
-
-/**
- * Returns DOM reference to a TH liner element. Needed to normalize for resizeable 
- * Columns, which have an additional resizer liner DIV element between the TH
- * element and the liner DIV element. 
- *
- * @method getThLinerEl
- * @param theadCell {YAHOO.widget.Column | HTMLElement | String} Column instance,
- * DOM element reference, or string ID.
- * @return {HTMLElement} Reference to TH liner element.
- */
-getThLinerEl : function(theadCell) {
-    var oColumn = this.getColumn(theadCell);
-    return (oColumn) ? oColumn.getThLinerEl() : null;
-},
-
-/**
- * Returns DOM reference to a TH element.
- *
- * @method getThEl
- * @param theadCell {YAHOO.widget.Column | HTMLElement | String} Column instance,
- * DOM element reference, or string ID.
- * @return {HTMLElement} Reference to TH element.
- */
-getThEl : function(theadCell) {
-    var elTh;
-
-    // Validate Column instance
-    if(theadCell instanceof YAHOO.widget.Column) {
-        var oColumn = theadCell;
-        elTh = oColumn.getThEl();
-        if(elTh) {
-            return elTh;
-        }
-    }
-    // Validate HTML element
-    else {
-        var el = Dom.get(theadCell);
-
-        if(el && (el.ownerDocument == document)) {
-            // Validate TH element
-            if(el.nodeName.toLowerCase() != "th") {
-                // Traverse up the DOM to find the corresponding TR element
-                elTh = Dom.getAncestorByTagName(el,"th");
-            }
-            else {
-                elTh = el;
-            }
-
-            return elTh;
-        }
-    }
-
-    return null;
-},
-
-/**
- * Returns the page row index of given row. Returns null if the row is not on the
- * current DataTable page.
- *
- * @method getTrIndex
- * @param row {HTMLElement | String | YAHOO.widget.Record | Number} DOM or ID
- * string reference to an element within the DataTable page, a Record instance,
- * or a Record's RecordSet index.
- * @return {Number} Page row index, or null if row does not exist or is not on current page.
- */
-getTrIndex : function(row) {
-    var nRecordIndex;
-
-    // By Record
-    if(row instanceof YAHOO.widget.Record) {
-        nRecordIndex = this._oRecordSet.getRecordIndex(row);
-        if(nRecordIndex === null) {
-            // Not a valid Record
-            return null;
-        }
-    }
-    // Calculate page row index from Record index
-    else if(lang.isNumber(row)) {
-        nRecordIndex = row;
-    }
-    if(lang.isNumber(nRecordIndex)) {
-        // Validate the number
-        if((nRecordIndex > -1) && (nRecordIndex < this._oRecordSet.getLength())) {
-            // DataTable is paginated
-            var oPaginator = this.get('paginator');
-            if(oPaginator) {
-                // Check the record index is within the indices of the
-                // current page
-                var rng = oPaginator.getPageRecords();
-                if (rng && nRecordIndex >= rng[0] && nRecordIndex <= rng[1]) {
-                    // This Record is on current page
-                    return nRecordIndex - rng[0];
-                }
-                // This Record is not on current page
-                else {
-                    return null;
-                }
-            }
-            // Not paginated, just return the Record index
-            else {
-                return nRecordIndex;
-            }
-        }
-        // RecordSet index is out of range
-        else {
-            return null;
-        }
-    }
-    // By element reference or ID string
-    else {
-        // Validate TR element
-        var elRow = this.getTrEl(row);
-        if(elRow && (elRow.ownerDocument == document) &&
-                (elRow.parentNode == this._elTbody)) {
-            return elRow.sectionRowIndex;
-        }
-    }
-
-    YAHOO.log("Could not get page row index for row " + row, "info", this.toString());
-    return null;
-},
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-// TABLE FUNCTIONS
-
-/**
- * Resets a RecordSet with the given data and populates the page view
- * with the new data. Any previous data, and selection and sort states are
- * cleared. New data should be added as a separate step. 
- *
- * @method initializeTable
- */
-initializeTable : function() {
-    // Reset init flag
-    this._bInit = true;
-    
-    // Clear the RecordSet
-    this._oRecordSet.reset();
-
-    // Clear the Paginator's totalRecords if paginating
-    var pag = this.get('paginator');
-    if (pag) {
-        pag.set('totalRecords',0);
-    }
-
-    // Clear selections
-    this._unselectAllTrEls();
-    this._unselectAllTdEls();
-    this._aSelections = null;
-    this._oAnchorRecord = null;
-    this._oAnchorCell = null;
-    
-    // Clear sort
-    this.set("sortedBy", null);
-},
-
-/**
- * Internal wrapper calls run() on render Chain instance.
- *
- * @method _runRenderChain
- * @private 
- */
-_runRenderChain : function() {
-    this._oChainRender.run();
-},
-
-/**
- * Renders the view with existing Records from the RecordSet while
- * maintaining sort, pagination, and selection states. For performance, reuses
- * existing DOM elements when possible while deleting extraneous elements.
- *
- * @method render
- */
-render : function() {
-//YAHOO.example.Performance.trialStart = new Date();
-
-    this._oChainRender.stop();
-
-    this.fireEvent("beforeRenderEvent");
-    YAHOO.log("DataTable rendering...", "info", this.toString());
-
-    var i, j, k, len, allRecords;
-
-    var oPaginator = this.get('paginator');
-    // Paginator is enabled, show a subset of Records and update Paginator UI
-    if(oPaginator) {
-        allRecords = this._oRecordSet.getRecords(
-                        oPaginator.getStartIndex(),
-                        oPaginator.getRowsPerPage());
-    }
-    // Not paginated, show all records
-    else {
-        allRecords = this._oRecordSet.getRecords();
-    }
-
-    // From the top, update in-place existing rows, so as to reuse DOM elements
-    var elTbody = this._elTbody,
-        loopN = this.get("renderLoopSize"),
-        nRecordsLength = allRecords.length;
-    
-    // Table has rows
-    if(nRecordsLength > 0) {                
-        elTbody.style.display = "none";
-        while(elTbody.lastChild) {
-            elTbody.removeChild(elTbody.lastChild);
-        }
-        elTbody.style.display = "";
-
-        // Set up the loop Chain to render rows
-        this._oChainRender.add({
-            method: function(oArg) {
-                if((this instanceof DT) && this._sId) {
-                    var i = oArg.nCurrentRecord,
-                        endRecordIndex = ((oArg.nCurrentRecord+oArg.nLoopLength) > nRecordsLength) ?
-                                nRecordsLength : (oArg.nCurrentRecord+oArg.nLoopLength),
-                        elRow, nextSibling;
-
-                    elTbody.style.display = "none";
-                    
-                    for(; i<endRecordIndex; i++) {
-                        elRow = Dom.get(allRecords[i].getId());
-                        elRow = elRow || this._addTrEl(allRecords[i]);
-                        nextSibling = elTbody.childNodes[i] || null;
-                        elTbody.insertBefore(elRow, nextSibling);
-                    }
-                    elTbody.style.display = "";
-                    
-                    // Set up for the next loop
-                    oArg.nCurrentRecord = i;
-                }
-            },
-            scope: this,
-            iterations: (loopN > 0) ? Math.ceil(nRecordsLength/loopN) : 1,
-            argument: {
-                nCurrentRecord: 0,//nRecordsLength-1,  // Start at first Record
-                nLoopLength: (loopN > 0) ? loopN : nRecordsLength
-            },
-            timeout: (loopN > 0) ? 0 : -1
-        });
-        
-        // Post-render tasks
-        this._oChainRender.add({
-            method: function(oArg) {
-                if((this instanceof DT) && this._sId) {
-                    while(elTbody.rows.length > nRecordsLength) {
-                        elTbody.removeChild(elTbody.lastChild);
-                    }
-                    this._setFirstRow();
-                    this._setLastRow();
-                    this._setRowStripes();
-                    this._setSelections();
-                }
-            },
-            scope: this,
-            timeout: (loopN > 0) ? 0 : -1
-        });
-     
-    }
-    // Table has no rows
-    else {
-        // Set up the loop Chain to delete rows
-        var nTotal = elTbody.rows.length;
-        if(nTotal > 0) {
-            this._oChainRender.add({
-                method: function(oArg) {
-                    if((this instanceof DT) && this._sId) {
-                        var i = oArg.nCurrent,
-                            loopN = oArg.nLoopLength,
-                            nIterEnd = (i - loopN < 0) ? -1 : i - loopN;
-    
-                        elTbody.style.display = "none";
-                        
-                        for(; i>nIterEnd; i--) {
-                            elTbody.deleteRow(-1);
-                        }
-                        elTbody.style.display = "";
-                        
-                        // Set up for the next loop
-                        oArg.nCurrent = i;
-                    }
-                },
-                scope: this,
-                iterations: (loopN > 0) ? Math.ceil(nTotal/loopN) : 1,
-                argument: {
-                    nCurrent: nTotal, 
-                    nLoopLength: (loopN > 0) ? loopN : nTotal
-                },
-                timeout: (loopN > 0) ? 0 : -1
-            });
-        }
-    }
-    this._runRenderChain();
-},
-
-/**
- * Disables DataTable UI.
- *
- * @method disable
- */
-disable : function() {
-    var elTable = this._elTable;
-    var elMask = this._elMask;
-    elMask.style.width = elTable.offsetWidth + "px";
-    elMask.style.height = elTable.offsetHeight + "px";
-    elMask.style.display = "";
-    this.fireEvent("disableEvent");
-},
-
-/**
- * Undisables DataTable UI.
- *
- * @method undisable
- */
-undisable : function() {
-    this._elMask.style.display = "none";
-    this.fireEvent("undisableEvent");
-},
-
-/**
- * Nulls out the entire DataTable instance and related objects, removes attached
- * event listeners, and clears out DOM elements inside the container. After
- * calling this method, the instance reference should be expliclitly nulled by
- * implementer, as in myDataTable = null. Use with caution!
- *
- * @method destroy
- */
-destroy : function() {
-    // Store for later
-    var instanceName = this.toString();
-
-    this._oChainRender.stop();
-    
-    // Destroy static resizer proxy and column proxy
-    DT._destroyColumnDragTargetEl();
-    DT._destroyColumnResizerProxyEl();
-    
-    // Destroy ColumnDD and ColumnResizers
-    this._destroyColumnHelpers();
-    
-    // Destroy all CellEditors
-    var oCellEditor;
-    for(var i=0, len=this._oColumnSet.flat.length; i<len; i++) {
-        oCellEditor = this._oColumnSet.flat[i].editor;
-        if(oCellEditor && oCellEditor.destroy) {
-            oCellEditor.destroy();
-            this._oColumnSet.flat[i].editor = null;
-        }
-    }
-
-    // Destroy Paginator
-    this._destroyPaginator();
-
-    // Unhook custom events
-    this._oRecordSet.unsubscribeAll();
-    this.unsubscribeAll();
-
-    // Unhook DOM events
-    Ev.removeListener(document, "click", this._onDocumentClick);
-    
-    // Clear out the container
-    this._destroyContainerEl(this._elContainer);
-
-    // Null out objects
-    for(var param in this) {
-        if(lang.hasOwnProperty(this, param)) {
-            this[param] = null;
-        }
-    }
-    
-    // Clean up static values
-    DT._nCurrentCount--;
-    
-    if(DT._nCurrentCount < 1) {
-        if(DT._elDynStyleNode) {
-            document.getElementsByTagName('head')[0].removeChild(DT._elDynStyleNode);
-            DT._elDynStyleNode = null;
-        }
-    }
-
-    YAHOO.log("DataTable instance destroyed: " + instanceName);
-},
-
-/**
- * Displays message within secondary TBODY.
- *
- * @method showTableMessage
- * @param sHTML {String} (optional) Value for innerHTMlang.
- * @param sClassName {String} (optional) Classname.
- */
-showTableMessage : function(sHTML, sClassName) {
-    var elCell = this._elMsgTd;
-    if(lang.isString(sHTML)) {
-        elCell.firstChild.innerHTML = sHTML;
-    }
-    if(lang.isString(sClassName)) {
-        elCell.className = sClassName;
-    }
-
-    this._elMsgTbody.style.display = "";
-
-    this.fireEvent("tableMsgShowEvent", {html:sHTML, className:sClassName});
-    YAHOO.log("DataTable showing message: " + sHTML, "info", this.toString());
-},
-
-/**
- * Hides secondary TBODY.
- *
- * @method hideTableMessage
- */
-hideTableMessage : function() {
-    if(this._elMsgTbody.style.display != "none") {
-        this._elMsgTbody.style.display = "none";
-        this._elMsgTbody.parentNode.style.width = "";
-        this.fireEvent("tableMsgHideEvent");
-        YAHOO.log("DataTable message hidden", "info", this.toString());
-    }
-},
-
-/**
- * Brings focus to the TBODY element. Alias to focusTbodyEl.
- *
- * @method focus
- */
-focus : function() {
-    this.focusTbodyEl();
-},
-
-/**
- * Brings focus to the THEAD element.
- *
- * @method focusTheadEl
- */
-focusTheadEl : function() {
-    this._focusEl(this._elThead);
-},
-
-/**
- * Brings focus to the TBODY element.
- *
- * @method focusTbodyEl
- */
-focusTbodyEl : function() {
-    this._focusEl(this._elTbody);
-},
-
-/**
- * Setting display:none on DataTable or any parent may impact width validations.
- * After setting display back to "", implementers should call this method to 
- * manually perform those validations.
- *
- * @method onShow
- */
-onShow : function() {
-    this.validateColumnWidths();
-    
-    for(var allKeys = this._oColumnSet.keys, i=0, len=allKeys.length, col; i<len; i++) {
-        col = allKeys[i];
-        if(col._ddResizer) {
-            col._ddResizer.resetResizerEl();
-        }
-    }
-},
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-// RECORDSET FUNCTIONS
-
-/**
- * Returns Record index for given TR element or page row index.
- *
- * @method getRecordIndex
- * @param row {YAHOO.widget.Record | HTMLElement | Number} Record instance, TR
- * element reference or page row index.
- * @return {Number} Record's RecordSet index, or null.
- */
-getRecordIndex : function(row) {
-    var nTrIndex;
-
-    if(!lang.isNumber(row)) {
-        // By Record
-        if(row instanceof YAHOO.widget.Record) {
-            return this._oRecordSet.getRecordIndex(row);
-        }
-        // By element reference
-        else {
-            // Find the TR element
-            var el = this.getTrEl(row);
-            if(el) {
-                nTrIndex = el.sectionRowIndex;
-            }
-        }
-    }
-    // By page row index
-    else {
-        nTrIndex = row;
-    }
-
-    if(lang.isNumber(nTrIndex)) {
-        var oPaginator = this.get("paginator");
-        if(oPaginator) {
-            return oPaginator.get('recordOffset') + nTrIndex;
-        }
-        else {
-            return nTrIndex;
-        }
-    }
-
-    YAHOO.log("Could not get Record index for row " + row, "info", this.toString());
-    return null;
-},
-
-/**
- * For the given identifier, returns the associated Record instance.
- *
- * @method getRecord
- * @param row {HTMLElement | Number | String} DOM reference to a TR element (or
- * child of a TR element), RecordSet position index, or Record ID.
- * @return {YAHOO.widget.Record} Record instance.
- */
-getRecord : function(row) {
-    var oRecord = this._oRecordSet.getRecord(row);
-
-    if(!oRecord) {
-        // Validate TR element
-        var elRow = this.getTrEl(row);
-        if(elRow) {
-            oRecord = this._oRecordSet.getRecord(elRow.id);
-        }
-    }
-
-    if(oRecord instanceof YAHOO.widget.Record) {
-        return this._oRecordSet.getRecord(oRecord);
-    }
-    else {
-        YAHOO.log("Could not get Record for row at " + row, "info", this.toString());
-        return null;
-    }
-},
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-// COLUMN FUNCTIONS
-
-/**
- * For the given identifier, returns the associated Column instance. Note: For
- * getting Columns by Column ID string, please use the method getColumnById().
- *
- * @method getColumn
- * @param column {HTMLElement | String | Number} TH/TD element (or child of a
- * TH/TD element), a Column key, or a ColumnSet key index.
- * @return {YAHOO.widget.Column} Column instance.
- */
-getColumn : function(column) {
-    var oColumn = this._oColumnSet.getColumn(column);
-
-    if(!oColumn) {
-        // Validate TD element
-        var elCell = this.getTdEl(column);
-        if(elCell) {
-            oColumn = this._oColumnSet.getColumn(elCell.cellIndex);
-        }
-        // Validate TH element
-        else {
-            elCell = this.getThEl(column);
-            if(elCell) {
-                // Find by TH el ID
-                var allColumns = this._oColumnSet.flat;
-                for(var i=0, len=allColumns.length; i<len; i++) {
-                    if(allColumns[i].getThEl().id === elCell.id) {
-                        oColumn = allColumns[i];
-                    } 
-                }
-            }
-        }
-    }
-    if(!oColumn) {
-        YAHOO.log("Could not get Column for column at " + column, "info", this.toString());
-    }
-    return oColumn;
-},
-
-/**
- * For the given Column ID, returns the associated Column instance. Note: For
- * getting Columns by key, please use the method getColumn().
- *
- * @method getColumnById
- * @param column {String} Column ID string.
- * @return {YAHOO.widget.Column} Column instance.
- */
-getColumnById : function(column) {
-    return this._oColumnSet.getColumnById(column);
-},
-
-/**
- * For the given Column instance, returns next direction to sort.
- *
- * @method getColumnSortDir
- * @param oColumn {YAHOO.widget.Column} Column instance.
- * @param oSortedBy {Object} (optional) Specify the state, or use current state. 
- * @return {String} YAHOO.widget.DataTable.CLASS_ASC or YAHOO.widget.DataTableCLASS_DESC.
- */
-getColumnSortDir : function(oColumn, oSortedBy) {
-    // Backward compatibility
-    if(oColumn.sortOptions && oColumn.sortOptions.defaultOrder) {
-        if(oColumn.sortOptions.defaultOrder == "asc") {
-            oColumn.sortOptions.defaultDir = DT.CLASS_ASC;
-        }
-        else if (oColumn.sortOptions.defaultOrder == "desc") {
-            oColumn.sortOptions.defaultDir = DT.CLASS_DESC;
-        }
-    }
-    
-    // What is the Column's default sort direction?
-    var sortDir = (oColumn.sortOptions && oColumn.sortOptions.defaultDir) ? oColumn.sortOptions.defaultDir : DT.CLASS_ASC;
-
-    // Is the Column currently sorted?
-    var bSorted = false;
-    oSortedBy = oSortedBy || this.get("sortedBy");
-    if(oSortedBy && (oSortedBy.key === oColumn.key)) {
-        bSorted = true;
-        if(oSortedBy.dir) {
-            sortDir = (oSortedBy.dir === DT.CLASS_ASC) ? DT.CLASS_DESC : DT.CLASS_ASC;
-        }
-        else {
-            sortDir = (sortDir === DT.CLASS_ASC) ? DT.CLASS_DESC : DT.CLASS_ASC;
-        }
-    }
-    return sortDir;
-},
-
-/**
- * Overridable method gives implementers a hook to show loading message before
- * sorting Column.
- *
- * @method doBeforeSortColumn
- * @param oColumn {YAHOO.widget.Column} Column instance.
- * @param sSortDir {String} YAHOO.widget.DataTable.CLASS_ASC or
- * YAHOO.widget.DataTable.CLASS_DESC.
- * @return {Boolean} Return true to continue sorting Column.
- */
-doBeforeSortColumn : function(oColumn, sSortDir) {
-    this.showTableMessage(this.get("MSG_LOADING"), DT.CLASS_LOADING);
-    return true;
-},
-
-/**
- * Sorts given Column. If "dynamicData" is true, current selections are purged before
- * a request is sent to the DataSource for data for the new state (using the
- * request returned by "generateRequest()").
- *
- * @method sortColumn
- * @param oColumn {YAHOO.widget.Column} Column instance.
- * @param sDir {String} (Optional) YAHOO.widget.DataTable.CLASS_ASC or
- * YAHOO.widget.DataTable.CLASS_DESC
- */
-sortColumn : function(oColumn, sDir) {
-    if(oColumn && (oColumn instanceof YAHOO.widget.Column)) {
-        if(!oColumn.sortable) {
-            Dom.addClass(this.getThEl(oColumn), DT.CLASS_SORTABLE);
-        }
-        
-        // Validate given direction
-        if(sDir && (sDir !== DT.CLASS_ASC) && (sDir !== DT.CLASS_DESC)) {
-            sDir = null;
-        }
-        
-        // Get the sort dir
-        var sSortDir = sDir || this.getColumnSortDir(oColumn);
-
-        // Is the Column currently sorted?
-        var oSortedBy = this.get("sortedBy") || {};
-        var bSorted = (oSortedBy.key === oColumn.key) ? true : false;
-
-        var ok = this.doBeforeSortColumn(oColumn, sSortDir);
-        if(ok) {
-            // Server-side sort
-            if(this.get("dynamicData")) {
-                // Get current state
-                var oState = this.getState();
-                
-                // Reset record offset, if paginated
-                if(oState.pagination) {
-                    oState.pagination.recordOffset = 0;
-                }
-                
-                // Update sortedBy to new values
-                oState.sortedBy = {
-                    key: oColumn.key,
-                    dir: sSortDir
-                };
-                
-                // Get the request for the new state
-                var request = this.get("generateRequest")(oState, this);
-
-                // Purge selections
-                this.unselectAllRows();
-                this.unselectAllCells();
-
-                // Send request for new data
-                var callback = {
-                    success : this.onDataReturnSetRows,
-                    failure : this.onDataReturnSetRows,
-                    argument : oState, // Pass along the new state to the callback
-                    scope : this
-                };
-                this._oDataSource.sendRequest(request, callback);            
-            }
-            // Client-side sort
-            else {
-                // Is there a custom sort handler function defined?
-                var sortFnc = (oColumn.sortOptions && lang.isFunction(oColumn.sortOptions.sortFunction)) ?
-                        // Custom sort function
-                        oColumn.sortOptions.sortFunction : null;
-                   
-                // Sort the Records
-                if(!bSorted || sDir || sortFnc) {
-                    // Shortcut for the frequently-used compare method
-                    var compare = YAHOO.util.Sort.compare;
-
-                    // Default sort function if necessary
-                    sortFnc = sortFnc || 
-                        function(a, b, desc, field) {
-                            var sorted = compare(a.getData(field),b.getData(field), desc);
-                            if(sorted === 0) {
-                                return compare(a.getCount(),b.getCount(), desc); // Bug 1932978
-                            }
-                            else {
-                                return sorted;
-                            }
-                        };
-
-                    // Get the field to sort
-                    var sField = (oColumn.sortOptions && oColumn.sortOptions.field) ? oColumn.sortOptions.field : oColumn.field;
-
-                    // Sort the Records        
-                    this._oRecordSet.sortRecords(sortFnc, ((sSortDir == DT.CLASS_DESC) ? true : false), sField);
-                }
-                // Just reverse the Records
-                else {
-                    this._oRecordSet.reverseRecords();
-                }
-        
-                // Reset to first page if paginated
-                var oPaginator = this.get('paginator');
-                if (oPaginator) {
-                    // Set page silently, so as not to fire change event.
-                    oPaginator.setPage(1,true);
-                }
-        
-                // Update UI via sortedBy
-                this.render();
-                this.set("sortedBy", {key:oColumn.key, dir:sSortDir, column:oColumn}); 
-            }       
-            
-            this.fireEvent("columnSortEvent",{column:oColumn,dir:sSortDir});
-            YAHOO.log("Column \"" + oColumn.key + "\" sorted \"" + sSortDir + "\"", "info", this.toString());
-            return;
-        }
-    }
-    YAHOO.log("Could not sort Column \"" + oColumn.key + "\"", "warn", this.toString());
-},
-
-/**
- * Sets given Column to given pixel width. If new width is less than minimum
- * width, sets to minimum width. Updates oColumn.width value.
- *
- * @method setColumnWidth
- * @param oColumn {YAHOO.widget.Column} Column instance.
- * @param nWidth {Number} New width in pixels. A null value auto-sizes Column,
- * subject to minWidth and maxAutoWidth validations. 
- */
-setColumnWidth : function(oColumn, nWidth) {
-    if(!(oColumn instanceof YAHOO.widget.Column)) {
-        oColumn = this.getColumn(oColumn);
-    }
-    if(oColumn) {
-        // Validate new width against minimum width
-        if(lang.isNumber(nWidth)) {
-            // This is why we must require a Number... :-|
-            nWidth = (nWidth > oColumn.minWidth) ? nWidth : oColumn.minWidth;
-
-            // Save state
-            oColumn.width = nWidth;
-            
-            // Resize the DOM elements
-            this._setColumnWidth(oColumn, nWidth+"px");
-            
-            this.fireEvent("columnSetWidthEvent",{column:oColumn,width:nWidth});
-            YAHOO.log("Set width of Column " + oColumn + " to " + nWidth + "px", "info", this.toString());
-        }
-        // Unsets a width to auto-size
-        else if(nWidth === null) {
-            // Save state
-            oColumn.width = nWidth;
-            
-            // Resize the DOM elements
-            this._setColumnWidth(oColumn, "auto");
-            this.validateColumnWidths(oColumn);
-            this.fireEvent("columnUnsetWidthEvent",{column:oColumn});
-            YAHOO.log("Column " + oColumn + " width unset", "info", this.toString());
-        }
-                
-        // Bug 2339454: resize then sort misaligment
-        this._clearTrTemplateEl();
-    }
-    else {
-        YAHOO.log("Could not set width of Column " + oColumn + " to " + nWidth + "px", "warn", this.toString());
-    }
-},
-
-/**
- * Sets liner DIV elements of given Column to given width. When value should be
- * auto-calculated to fit content overflow is set to visible, otherwise overflow
- * is set to hidden. No validations against minimum width and no updating
- * Column.width value.
- *
- * @method _setColumnWidth
- * @param oColumn {YAHOO.widget.Column} Column instance.
- * @param sWidth {String} New width value.
- * @param sOverflow {String} Should be "hidden" when Column width is explicitly
- * being set to a value, but should be "visible" when Column is meant to auto-fit content.  
- * @private
- */
-_setColumnWidth : function(oColumn, sWidth, sOverflow) {
-    if(oColumn && (oColumn.getKeyIndex() !== null)) {
-        sOverflow = sOverflow || (((sWidth === '') || (sWidth === 'auto')) ? 'visible' : 'hidden');
-    
-        // Dynamic style algorithm
-        if(!DT._bDynStylesFallback) {
-            this._setColumnWidthDynStyles(oColumn, sWidth, sOverflow);
-        }
-        // Dynamic function algorithm
-        else {
-            this._setColumnWidthDynFunction(oColumn, sWidth, sOverflow);
-        }
-    }
-    else {
-        YAHOO.log("Could not set width of unknown Column " + oColumn + " to " + sWidth, "warn", this.toString());
-    }
-},
-
-/**
- * Updates width of a Column's liner DIV elements by dynamically creating a
- * STYLE node and writing and updating CSS style rules to it. If this fails during
- * runtime, the fallback method _setColumnWidthDynFunction() will be called.
- * Notes: This technique is not performant in IE6. IE7 crashes if DataTable is
- * nested within another TABLE element. For these cases, it is recommended to
- * use the method _setColumnWidthDynFunction by setting _bDynStylesFallback to TRUE.
- *
- * @method _setColumnWidthDynStyles
- * @param oColumn {YAHOO.widget.Column} Column instance.
- * @param sWidth {String} New width value.
- * @private
- */
-_setColumnWidthDynStyles : function(oColumn, sWidth, sOverflow) {
-    var s = DT._elDynStyleNode,
-        rule;
-    
-    // Create a new STYLE node
-    if(!s) {
-        s = document.createElement('style');
-        s.type = 'text/css';
-        s = document.getElementsByTagName('head').item(0).appendChild(s);
-        DT._elDynStyleNode = s;
-    }
-    
-    // We have a STYLE node to update
-    if(s) {
-        // Use unique classname for this Column instance as a hook for resizing
-        var sClassname = "." + this.getId() + "-col-" + oColumn.getSanitizedKey() + " ." + DT.CLASS_LINER;
-        
-        // Hide for performance
-        if(this._elTbody) {
-            this._elTbody.style.display = 'none';
-        }
-        
-        rule = DT._oDynStyles[sClassname];
-
-        // The Column does not yet have a rule
-        if(!rule) {
-            if(s.styleSheet && s.styleSheet.addRule) {
-                s.styleSheet.addRule(sClassname,"overflow:"+sOverflow);
-                s.styleSheet.addRule(sClassname,'width:'+sWidth);
-                rule = s.styleSheet.rules[s.styleSheet.rules.length-1];
-                DT._oDynStyles[sClassname] = rule;
-            }
-            else if(s.sheet && s.sheet.insertRule) {
-                s.sheet.insertRule(sClassname+" {overflow:"+sOverflow+";width:"+sWidth+";}",s.sheet.cssRules.length);
-                rule = s.sheet.cssRules[s.sheet.cssRules.length-1];
-                DT._oDynStyles[sClassname] = rule;
-            }
-        }
-        // We have a rule to update
-        else {
-            rule.style.overflow = sOverflow;
-            rule.style.width = sWidth;
-        } 
-        
-        // Unhide
-        if(this._elTbody) {
-            this._elTbody.style.display = '';
-        }
-    }
-    
-    // That was not a success, we must call the fallback routine
-    if(!rule) {
-        DT._bDynStylesFallback = true;
-        this._setColumnWidthDynFunction(oColumn, sWidth);
-    }
-},
-
-/**
- * Updates width of a Column's liner DIV elements by dynamically creating a
- * function to update all element style properties in one pass. Note: This
- * technique is not supported in sandboxed environments that prohibit EVALs.    
- *
- * @method _setColumnWidthDynFunction
- * @param oColumn {YAHOO.widget.Column} Column instance.
- * @param sWidth {String} New width value.
- * @private
- */
-_setColumnWidthDynFunction : function(oColumn, sWidth, sOverflow) {
-    // TODO: why is this here?
-    if(sWidth == 'auto') {
-        sWidth = ''; 
-    }
-    
-    // Create one function for each value of rows.length
-    var rowslen = this._elTbody ? this._elTbody.rows.length : 0;
-    
-    // Dynamically create the function
-    if (!this._aDynFunctions[rowslen]) {
-        
-        //Compile a custom function to do all the liner div width
-        //assignments at the same time.  A unique function is required
-        //for each unique number of rows in _elTbody.  This will
-        //result in a function declaration like:
-        //function (oColumn,sWidth,sOverflow) {
-        //    var colIdx = oColumn.getKeyIndex();
-        //    oColumn.getThLinerEl().style.overflow =
-        //    this._elTbody.rows[0].cells[colIdx].firstChild.style.overflow =
-        //    this._elTbody.rows[1].cells[colIdx].firstChild.style.overflow =
-        //    ... (for all row indices in this._elTbody.rows.length - 1)
-        //    this._elTbody.rows[99].cells[colIdx].firstChild.style.overflow =
-        //    sOverflow;
-        //    oColumn.getThLinerEl().style.width =
-        //    this._elTbody.rows[0].cells[colIdx].firstChild.style.width =
-        //    this._elTbody.rows[1].cells[colIdx].firstChild.style.width =
-        //    ... (for all row indices in this._elTbody.rows.length - 1)
-        //    this._elTbody.rows[99].cells[colIdx].firstChild.style.width =
-        //    sWidth;
-        //}
-        
-        var i,j,k;
-        var resizerDef = [
-            'var colIdx=oColumn.getKeyIndex();',
-            'oColumn.getThLinerEl().style.overflow='
-        ];
-        for (i=rowslen-1, j=2; i >= 0; --i) {
-            resizerDef[j++] = 'this._elTbody.rows[';
-            resizerDef[j++] = i;
-            resizerDef[j++] = '].cells[colIdx].firstChild.style.overflow=';
-        }
-        resizerDef[j] = 'sOverflow;';
-        resizerDef[j+1] = 'oColumn.getThLinerEl().style.width=';
-        for (i=rowslen-1, k=j+2; i >= 0; --i) {
-            resizerDef[k++] = 'this._elTbody.rows[';
-            resizerDef[k++] = i;
-            resizerDef[k++] = '].cells[colIdx].firstChild.style.width=';
-        }
-        resizerDef[k] = 'sWidth;';
-        this._aDynFunctions[rowslen] =
-            new Function('oColumn','sWidth','sOverflow',resizerDef.join(''));
-    }
-    
-    // Get the function to execute
-    var resizerFn = this._aDynFunctions[rowslen];
-
-    // TODO: Hide TBODY for performance in _setColumnWidthDynFunction?
-    if (resizerFn) {
-        resizerFn.call(this,oColumn,sWidth,sOverflow);
-    }
-},
-
-/**
- * For one or all Columns, when Column is not hidden, width is not set, and minWidth
- * and/or maxAutoWidth is set, validates auto-width against minWidth and maxAutoWidth.
- *
- * @method validateColumnWidths
- * @param oArg.column {YAHOO.widget.Column} (optional) One Column to validate. If null, all Columns' widths are validated.
- */
-validateColumnWidths : function(oColumn) {
-    var elColgroup = this._elColgroup;
-    var elColgroupClone = elColgroup.cloneNode(true);
-    var bNeedsValidation = false;
-    var allKeys = this._oColumnSet.keys;
-    var elThLiner;
-    // Validate just one Column's minWidth and/or maxAutoWidth
-    if(oColumn && !oColumn.hidden && !oColumn.width && (oColumn.getKeyIndex() !== null)) {
-            elThLiner = oColumn.getThLinerEl();
-            if((oColumn.minWidth > 0) && (elThLiner.offsetWidth < oColumn.minWidth)) {
-                elColgroupClone.childNodes[oColumn.getKeyIndex()].style.width = 
-                        oColumn.minWidth + 
-                        (parseInt(Dom.getStyle(elThLiner,"paddingLeft"),10)|0) +
-                        (parseInt(Dom.getStyle(elThLiner,"paddingRight"),10)|0) + "px";
-                bNeedsValidation = true;
-            }
-            else if((oColumn.maxAutoWidth > 0) && (elThLiner.offsetWidth > oColumn.maxAutoWidth)) {
-                this._setColumnWidth(oColumn, oColumn.maxAutoWidth+"px", "hidden");
-            }
-    }
-    // Validate all Columns
-    else {
-        for(var i=0, len=allKeys.length; i<len; i++) {
-            oColumn = allKeys[i];
-            if(!oColumn.hidden && !oColumn.width) {
-                elThLiner = oColumn.getThLinerEl();
-                if((oColumn.minWidth > 0) && (elThLiner.offsetWidth < oColumn.minWidth)) {
-                    elColgroupClone.childNodes[i].style.width = 
-                            oColumn.minWidth + 
-                            (parseInt(Dom.getStyle(elThLiner,"paddingLeft"),10)|0) +
-                            (parseInt(Dom.getStyle(elThLiner,"paddingRight"),10)|0) + "px";
-                    bNeedsValidation = true;
-                }
-                else if((oColumn.maxAutoWidth > 0) && (elThLiner.offsetWidth > oColumn.maxAutoWidth)) {
-                    this._setColumnWidth(oColumn, oColumn.maxAutoWidth+"px", "hidden");
-                }
-            }
-        }
-    }
-    if(bNeedsValidation) {
-        elColgroup.parentNode.replaceChild(elColgroupClone, elColgroup);
-        this._elColgroup = elColgroupClone;
-    }
-},
-
-/**
- * Clears minWidth.
- *
- * @method _clearMinWidth
- * @param oColumn {YAHOO.widget.Column} Which Column.
- * @private
- */
-_clearMinWidth : function(oColumn) {
-    if(oColumn.getKeyIndex() !== null) {
-        this._elColgroup.childNodes[oColumn.getKeyIndex()].style.width = '';
-    }
-},
-
-/**
- * Restores minWidth.
- *
- * @method _restoreMinWidth
- * @param oColumn {YAHOO.widget.Column} Which Column.
- * @private
- */
-_restoreMinWidth : function(oColumn) {
-    if(oColumn.minWidth && (oColumn.getKeyIndex() !== null)) {
-        this._elColgroup.childNodes[oColumn.getKeyIndex()].style.width = oColumn.minWidth + 'px';
-    }
-},
-
-/**
- * Hides given Column. NOTE: You cannot hide/show nested Columns. You can only
- * hide/show non-nested Columns, and top-level parent Columns (which will
- * hide/show all children Columns).
- *
- * @method hideColumn
- * @param oColumn {YAHOO.widget.Column} Column instance.
- */
-hideColumn : function(oColumn) {
-    if(!(oColumn instanceof YAHOO.widget.Column)) {
-        oColumn = this.getColumn(oColumn);
-    }
-    // Only top-level Columns can get hidden due to issues in FF2 and SF3
-    if(oColumn && !oColumn.hidden && oColumn.getTreeIndex() !== null) {
-        
-        var allrows = this.getTbodyEl().rows;
-        var l = allrows.length;
-        var allDescendants = this._oColumnSet.getDescendants(oColumn);
-        
-        // Hide each nested Column
-        for(var i=0; i<allDescendants.length; i++) {
-            var thisColumn = allDescendants[i];
-            thisColumn.hidden = true;
-
-            // Style the head cell
-            Dom.addClass(thisColumn.getThEl(), DT.CLASS_HIDDEN);
-            
-            // Does this Column have body cells?
-            var thisKeyIndex = thisColumn.getKeyIndex();
-            if(thisKeyIndex !== null) {                    
-                // Clear minWidth
-                this._clearMinWidth(oColumn);
-                
-                // Style the body cells
-                for(var j=0;j<l;j++) {
-                    Dom.addClass(allrows[j].cells[thisKeyIndex],DT.CLASS_HIDDEN);
-                }
-            }
-            
-            this.fireEvent("columnHideEvent",{column:thisColumn});
-            YAHOO.log("Column \"" + oColumn.key + "\" hidden", "info", this.toString());
-        }
-      
-        this._repaintOpera();
-        this._clearTrTemplateEl();
-    }
-    else {
-        YAHOO.log("Could not hide Column \"" + lang.dump(oColumn) + "\". Only non-nested Columns can be hidden", "warn", this.toString());
-    }
-},
-
-/**
- * Shows given Column. NOTE: You cannot hide/show nested Columns. You can only
- * hide/show non-nested Columns, and top-level parent Columns (which will
- * hide/show all children Columns).
- *
- * @method showColumn
- * @param oColumn {YAHOO.widget.Column} Column instance.
- */
-showColumn : function(oColumn) {
-    if(!(oColumn instanceof YAHOO.widget.Column)) {
-        oColumn = this.getColumn(oColumn);
-    }
-    // Only top-level Columns can get hidden
-    if(oColumn && oColumn.hidden && (oColumn.getTreeIndex() !== null)) {
-        var allrows = this.getTbodyEl().rows;
-        var l = allrows.length;
-        var allDescendants = this._oColumnSet.getDescendants(oColumn);
-        
-        // Show each nested Column
-        for(var i=0; i<allDescendants.length; i++) {
-            var thisColumn = allDescendants[i];
-            thisColumn.hidden = false;
-            
-            // Unstyle the head cell
-            Dom.removeClass(thisColumn.getThEl(), DT.CLASS_HIDDEN);
-
-            // Does this Column have body cells?
-            var thisKeyIndex = thisColumn.getKeyIndex();
-            if(thisKeyIndex !== null) {
-                // Restore minWidth
-                this._restoreMinWidth(oColumn);
-                
-            
-                // Unstyle the body cells
-                for(var j=0;j<l;j++) {
-                    Dom.removeClass(allrows[j].cells[thisKeyIndex],DT.CLASS_HIDDEN);
-                }
-            }
-
-            this.fireEvent("columnShowEvent",{column:thisColumn});
-            YAHOO.log("Column \"" + oColumn.key + "\" shown", "info", this.toString());
-        }
-        this._clearTrTemplateEl();
-    }
-    else {
-        YAHOO.log("Could not show Column \"" + lang.dump(oColumn) + "\". Only non-nested Columns can be shown", "warn", this.toString());
-    }
-},
-
-/**
- * Removes given Column. NOTE: You cannot remove nested Columns. You can only remove
- * non-nested Columns, and top-level parent Columns (which will remove all
- * children Columns).
- *
- * @method removeColumn
- * @param oColumn {YAHOO.widget.Column} Column instance.
- * @return oColumn {YAHOO.widget.Column} Removed Column instance.
- */
-removeColumn : function(oColumn) {
-    // Validate Column
-    if(!(oColumn instanceof YAHOO.widget.Column)) {
-        oColumn = this.getColumn(oColumn);
-    }
-    if(oColumn) {
-        var nColTreeIndex = oColumn.getTreeIndex();
-        if(nColTreeIndex !== null) {
-            // Which key index(es)
-            var i, len,
-                aKeyIndexes = oColumn.getKeyIndex();
-            // Must be a parent Column
-            if(aKeyIndexes === null) {
-                var descKeyIndexes = [];
-                var allDescendants = this._oColumnSet.getDescendants(oColumn);
-                for(i=0, len=allDescendants.length; i<len; i++) {
-                    // Is this descendant a key Column?
-                    var thisKey = allDescendants[i].getKeyIndex();
-                    if(thisKey !== null) {
-                        descKeyIndexes[descKeyIndexes.length] = thisKey;
-                    }
-                }
-                if(descKeyIndexes.length > 0) {
-                    aKeyIndexes = descKeyIndexes;
-                }
-            }
-            // Must be a key Column
-            else {
-                aKeyIndexes = [aKeyIndexes];
-            }
-            
-            if(aKeyIndexes !== null) {
-                // Sort the indexes so we can remove from the right
-                aKeyIndexes.sort(function(a, b) {return YAHOO.util.Sort.compare(a, b);});
-                
-                // Destroy previous THEAD
-                this._destroyTheadEl();
-    
-                // Create new THEAD
-                var aOrigColumnDefs = this._oColumnSet.getDefinitions();
-                oColumn = aOrigColumnDefs.splice(nColTreeIndex,1)[0];
-                this._initColumnSet(aOrigColumnDefs);
-                this._initTheadEl();
-                
-                // Remove COL
-                for(i=aKeyIndexes.length-1; i>-1; i--) {
-                    this._removeColgroupColEl(aKeyIndexes[i]);
-                }
-                
-                // Remove TD
-                var allRows = this._elTbody.rows;
-                if(allRows.length > 0) {
-                    var loopN = this.get("renderLoopSize"),
-                        loopEnd = allRows.length;
-                    this._oChainRender.add({
-                        method: function(oArg) {
-                            if((this instanceof DT) && this._sId) {
-                                var i = oArg.nCurrentRow,
-                                    len = loopN > 0 ? Math.min(i + loopN,allRows.length) : allRows.length,
-                                    aIndexes = oArg.aIndexes,
-                                    j;
-                                for(; i < len; ++i) {
-                                    for(j = aIndexes.length-1; j>-1; j--) {
-                                        allRows[i].removeChild(allRows[i].childNodes[aIndexes[j]]);
-                                    }
-                                }
-                                oArg.nCurrentRow = i;
-                            }
-                        },
-                        iterations: (loopN > 0) ? Math.ceil(loopEnd/loopN) : 1,
-                        argument: {nCurrentRow:0, aIndexes:aKeyIndexes},
-                        scope: this,
-                        timeout: (loopN > 0) ? 0 : -1
-                    });
-                    this._runRenderChain();
-                }
-        
-                this.fireEvent("columnRemoveEvent",{column:oColumn});
-                YAHOO.log("Column \"" + oColumn.key + "\" removed", "info", this.toString());
-                return oColumn;
-            }
-        }
-    }
-    YAHOO.log("Could not remove Column \"" + oColumn.key + "\". Only non-nested Columns can be removed", "warn", this.toString());
-},
-
-/**
- * Inserts given Column at the index if given, otherwise at the end. NOTE: You
- * can only add non-nested Columns and top-level parent Columns. You cannot add
- * a nested Column to an existing parent.
- *
- * @method insertColumn
- * @param oColumn {Object | YAHOO.widget.Column} Object literal Column
- * definition or a Column instance.
- * @param index {Number} (optional) New tree index.
- * @return oColumn {YAHOO.widget.Column} Inserted Column instance. 
- */
-insertColumn : function(oColumn, index) {
-    // Validate Column
-    if(oColumn instanceof YAHOO.widget.Column) {
-        oColumn = oColumn.getDefinition();
-    }
-    else if(oColumn.constructor !== Object) {
-        YAHOO.log("Could not insert Column \"" + oColumn + "\" due to invalid argument", "warn", this.toString());
-        return;
-    }
-    
-    // Validate index or append new Column to the end of the ColumnSet
-    var oColumnSet = this._oColumnSet;
-    if(!lang.isValue(index) || !lang.isNumber(index)) {
-        index = oColumnSet.tree[0].length;
-    }
-    
-    // Destroy previous THEAD
-    this._destroyTheadEl();
-    
-    // Create new THEAD
-    var aNewColumnDefs = this._oColumnSet.getDefinitions();
-    aNewColumnDefs.splice(index, 0, oColumn);
-    this._initColumnSet(aNewColumnDefs);
-    this._initTheadEl();
-    
-    // Need to refresh the reference
-    oColumnSet = this._oColumnSet;
-    var oNewColumn = oColumnSet.tree[0][index];
-    
-    // Get key index(es) for new Column
-    var i, len,
-        descKeyIndexes = [];
-    var allDescendants = oColumnSet.getDescendants(oNewColumn);
-    for(i=0, len=allDescendants.length; i<len; i++) {
-        // Is this descendant a key Column?
-        var thisKey = allDescendants[i].getKeyIndex();
-        if(thisKey !== null) {
-            descKeyIndexes[descKeyIndexes.length] = thisKey;
-        }
-    }
-    
-    if(descKeyIndexes.length > 0) {  
-        // Sort the indexes
-        var newIndex = descKeyIndexes.sort(function(a, b) {return YAHOO.util.Sort.compare(a, b);})[0];
-        
-        // Add COL
-        for(i=descKeyIndexes.length-1; i>-1; i--) {
-            this._insertColgroupColEl(descKeyIndexes[i]);
-        }
-            
-        // Add TD
-        var allRows = this._elTbody.rows;
-        if(allRows.length > 0) {
-            var loopN = this.get("renderLoopSize"),
-                loopEnd = allRows.length;
-            
-            // Get templates for each new TD
-            var aTdTemplates = [],
-                elTdTemplate;
-            for(i=0, len=descKeyIndexes.length; i<len; i++) {
-                var thisKeyIndex = descKeyIndexes[i];
-                elTdTemplate = this._getTrTemplateEl().childNodes[i].cloneNode(true);
-                elTdTemplate = this._formatTdEl(this._oColumnSet.keys[thisKeyIndex], elTdTemplate, thisKeyIndex, (thisKeyIndex===this._oColumnSet.keys.length-1));
-                aTdTemplates[thisKeyIndex] = elTdTemplate;
-            }
-            
-            this._oChainRender.add({
-                method: function(oArg) {
-                    if((this instanceof DT) && this._sId) {
-                        var i = oArg.nCurrentRow, j,
-                            descKeyIndexes = oArg.descKeyIndexes,
-                            len = loopN > 0 ? Math.min(i + loopN,allRows.length) : allRows.length,
-                            nextSibling;
-                        for(; i < len; ++i) {
-                            nextSibling = allRows[i].childNodes[newIndex] || null;
-                            for(j=descKeyIndexes.length-1; j>-1; j--) {
-                                allRows[i].insertBefore(oArg.aTdTemplates[descKeyIndexes[j]].cloneNode(true), nextSibling);
-                            }
-                        }
-                        oArg.nCurrentRow = i;
-                    }
-                },
-                iterations: (loopN > 0) ? Math.ceil(loopEnd/loopN) : 1,
-                argument: {nCurrentRow:0,aTdTemplates:aTdTemplates,descKeyIndexes:descKeyIndexes},
-                scope: this,
-                timeout: (loopN > 0) ? 0 : -1
-            });
-            this._runRenderChain(); 
-        }
-
-        this.fireEvent("columnInsertEvent",{column:oColumn,index:index});
-        YAHOO.log("Column \"" + oColumn.key + "\" inserted into index " + index, "info", this.toString());
-        return oNewColumn;
-    }
-},
-
-/**
- * Removes given Column and inserts into given tree index. NOTE: You
- * can only reorder non-nested Columns and top-level parent Columns. You cannot
- * reorder a nested Column to an existing parent.
- *
- * @method reorderColumn
- * @param oColumn {YAHOO.widget.Column} Column instance.
- * @param index {Number} New tree index.
- * @return oColumn {YAHOO.widget.Column} Reordered Column instance. 
- */
-reorderColumn : function(oColumn, index) {
-    // Validate Column and new index
-    if(!(oColumn instanceof YAHOO.widget.Column)) {
-        oColumn = this.getColumn(oColumn);
-    }
-    if(oColumn && YAHOO.lang.isNumber(index)) {
-        var nOrigTreeIndex = oColumn.getTreeIndex();
-        if((nOrigTreeIndex !== null) && (nOrigTreeIndex !== index)) {
-            // Which key index(es)
-            var i, len,
-                aOrigKeyIndexes = oColumn.getKeyIndex(),
-                allDescendants,
-                descKeyIndexes = [],
-                thisKey;
-            // Must be a parent Column...
-            if(aOrigKeyIndexes === null) {
-                allDescendants = this._oColumnSet.getDescendants(oColumn);
-                for(i=0, len=allDescendants.length; i<len; i++) {
-                    // Is this descendant a key Column?
-                    thisKey = allDescendants[i].getKeyIndex();
-                    if(thisKey !== null) {
-                        descKeyIndexes[descKeyIndexes.length] = thisKey;
-                    }
-                }
-                if(descKeyIndexes.length > 0) {
-                    aOrigKeyIndexes = descKeyIndexes;
-                }
-            }
-            // ...or else must be a key Column
-            else {
-                aOrigKeyIndexes = [aOrigKeyIndexes];
-            }
-            
-            if(aOrigKeyIndexes !== null) {                   
-                // Sort the indexes
-                aOrigKeyIndexes.sort(function(a, b) {return YAHOO.util.Sort.compare(a, b);});
-                
-                // Destroy previous THEAD
-                this._destroyTheadEl();
-    
-                // Create new THEAD
-                var aColumnDefs = this._oColumnSet.getDefinitions();
-                var oColumnDef = aColumnDefs.splice(nOrigTreeIndex,1)[0];
-                aColumnDefs.splice(index, 0, oColumnDef);
-                this._initColumnSet(aColumnDefs);
-                this._initTheadEl();
-                
-                // Need to refresh the reference
-                var oNewColumn = this._oColumnSet.tree[0][index];
-
-                // What are new key index(es)
-                var aNewKeyIndexes = oNewColumn.getKeyIndex();
-                // Must be a parent Column
-                if(aNewKeyIndexes === null) {
-                    descKeyIndexes = [];
-                    allDescendants = this._oColumnSet.getDescendants(oNewColumn);
-                    for(i=0, len=allDescendants.length; i<len; i++) {
-                        // Is this descendant a key Column?
-                        thisKey = allDescendants[i].getKeyIndex();
-                        if(thisKey !== null) {
-                            descKeyIndexes[descKeyIndexes.length] = thisKey;
-                        }
-                    }
-                    if(descKeyIndexes.length > 0) {
-                        aNewKeyIndexes = descKeyIndexes;
-                    }
-                }
-                // Must be a key Column
-                else {
-                    aNewKeyIndexes = [aNewKeyIndexes];
-                }
-                
-                // Sort the new indexes and grab the first one for the new location
-                var newIndex = aNewKeyIndexes.sort(function(a, b) {return YAHOO.util.Sort.compare(a, b);})[0];
-
-                // Reorder COL
-                this._reorderColgroupColEl(aOrigKeyIndexes, newIndex);
-                
-                // Reorder TD
-                var allRows = this._elTbody.rows;
-                if(allRows.length > 0) {
-                    var loopN = this.get("renderLoopSize"),
-                        loopEnd = allRows.length;
-                    this._oChainRender.add({
-                        method: function(oArg) {
-                            if((this instanceof DT) && this._sId) {
-                                var i = oArg.nCurrentRow, j, tmpTds, nextSibling,
-                                    len = loopN > 0 ? Math.min(i + loopN,allRows.length) : allRows.length,
-                                    aIndexes = oArg.aIndexes, thisTr;
-                                // For each row
-                                for(; i < len; ++i) {
-                                    tmpTds = [];
-                                    thisTr = allRows[i];
-                                    
-                                    // Remove each TD
-                                    for(j=aIndexes.length-1; j>-1; j--) {
-                                        tmpTds.push(thisTr.removeChild(thisTr.childNodes[aIndexes[j]]));
-                                    }
-                                    
-                                    // Insert each TD
-                                    nextSibling = thisTr.childNodes[newIndex] || null;
-                                    for(j=tmpTds.length-1; j>-1; j--) {
-                                        thisTr.insertBefore(tmpTds[j], nextSibling);
-                                    }                                    
-                                }
-                                oArg.nCurrentRow = i;
-                            }
-                        },
-                        iterations: (loopN > 0) ? Math.ceil(loopEnd/loopN) : 1,
-                        argument: {nCurrentRow:0, aIndexes:aOrigKeyIndexes},
-                        scope: this,
-                        timeout: (loopN > 0) ? 0 : -1
-                    });
-                    this._runRenderChain();
-                }
-        
-                this.fireEvent("columnReorderEvent",{column:oNewColumn});
-                YAHOO.log("Column \"" + oNewColumn.key + "\" reordered", "info", this.toString());
-                return oNewColumn;
-            }
-        }
-    }
-    YAHOO.log("Could not reorder Column \"" + oColumn.key + "\". Only non-nested Columns can be reordered", "warn", this.toString());
-},
-
-/**
- * Selects given Column. NOTE: You cannot select/unselect nested Columns. You can only
- * select/unselect non-nested Columns, and bottom-level key Columns.
- *
- * @method selectColumn
- * @param column {HTMLElement | String | Number} DOM reference or ID string to a
- * TH/TD element (or child of a TH/TD element), a Column key, or a ColumnSet key index.
- */
-selectColumn : function(oColumn) {
-    oColumn = this.getColumn(oColumn);
-    if(oColumn && !oColumn.selected) {
-        // Only bottom-level Columns can get hidden
-        if(oColumn.getKeyIndex() !== null) {
-            oColumn.selected = true;
-            
-            // Update head cell
-            var elTh = oColumn.getThEl();
-            Dom.addClass(elTh,DT.CLASS_SELECTED);
-
-            // Update body cells
-            var allRows = this.getTbodyEl().rows;
-            var oChainRender = this._oChainRender;
-            oChainRender.add({
-                method: function(oArg) {
-                    if((this instanceof DT) && this._sId && allRows[oArg.rowIndex] && allRows[oArg.rowIndex].cells[oArg.cellIndex]) {
-                        Dom.addClass(allRows[oArg.rowIndex].cells[oArg.cellIndex],DT.CLASS_SELECTED);                    
-                    }
-                    oArg.rowIndex++;
-                },
-                scope: this,
-                iterations: allRows.length,
-                argument: {rowIndex:0,cellIndex:oColumn.getKeyIndex()}
-            });
-
-            this._clearTrTemplateEl();
-            
-            this._elTbody.style.display = "none";
-            this._runRenderChain();
-            this._elTbody.style.display = "";      
-            
-            this.fireEvent("columnSelectEvent",{column:oColumn});
-            YAHOO.log("Column \"" + oColumn.key + "\" selected", "info", this.toString());
-        }
-        else {
-            YAHOO.log("Could not select Column \"" + oColumn.key + "\". Only non-nested Columns can be selected", "warn", this.toString());
-        }
-    }
-},
-
-/**
- * Unselects given Column. NOTE: You cannot select/unselect nested Columns. You can only
- * select/unselect non-nested Columns, and bottom-level key Columns.
- *
- * @method unselectColumn
- * @param column {HTMLElement | String | Number} DOM reference or ID string to a
- * TH/TD element (or child of a TH/TD element), a Column key, or a ColumnSet key index.
- */
-unselectColumn : function(oColumn) {
-    oColumn = this.getColumn(oColumn);
-    if(oColumn && oColumn.selected) {
-        // Only bottom-level Columns can get hidden
-        if(oColumn.getKeyIndex() !== null) {
-            oColumn.selected = false;
-            
-            // Update head cell
-            var elTh = oColumn.getThEl();
-            Dom.removeClass(elTh,DT.CLASS_SELECTED);
-
-            // Update body cells
-            var allRows = this.getTbodyEl().rows;
-            var oChainRender = this._oChainRender;
-            oChainRender.add({
-                method: function(oArg) {
-                    if((this instanceof DT) && this._sId && allRows[oArg.rowIndex] && allRows[oArg.rowIndex].cells[oArg.cellIndex]) {
-                        Dom.removeClass(allRows[oArg.rowIndex].cells[oArg.cellIndex],DT.CLASS_SELECTED); 
-                    }                   
-                    oArg.rowIndex++;
-                },
-                scope: this,
-                iterations:allRows.length,
-                argument: {rowIndex:0,cellIndex:oColumn.getKeyIndex()}
-            });
-            
-            this._clearTrTemplateEl();
-
-            this._elTbody.style.display = "none";
-            this._runRenderChain();
-            this._elTbody.style.display = "";      
-            
-            this.fireEvent("columnUnselectEvent",{column:oColumn});
-            YAHOO.log("Column \"" + oColumn.key + "\" unselected", "info", this.toString());
-        }
-        else {
-            YAHOO.log("Could not unselect Column \"" + oColumn.key + "\". Only non-nested Columns can be unselected", "warn", this.toString());
-        }
-    }
-},
-
-/**
- * Returns an array selected Column instances.
- *
- * @method getSelectedColumns
- * @return {YAHOO.widget.Column[]} Array of Column instances.
- */
-getSelectedColumns : function(oColumn) {
-    var selectedColumns = [];
-    var aKeys = this._oColumnSet.keys;
-    for(var i=0,len=aKeys.length; i<len; i++) {
-        if(aKeys[i].selected) {
-            selectedColumns[selectedColumns.length] = aKeys[i];
-        }
-    }
-    return selectedColumns;
-},
-
-/**
- * Assigns the class YAHOO.widget.DataTable.CLASS_HIGHLIGHTED to cells of the given Column.
- * NOTE: You cannot highlight/unhighlight nested Columns. You can only
- * highlight/unhighlight non-nested Columns, and bottom-level key Columns.
- *
- * @method highlightColumn
- * @param column {HTMLElement | String | Number} DOM reference or ID string to a
- * TH/TD element (or child of a TH/TD element), a Column key, or a ColumnSet key index.
- */
-highlightColumn : function(column) {
-    var oColumn = this.getColumn(column);
-    // Only bottom-level Columns can get highlighted
-    if(oColumn && (oColumn.getKeyIndex() !== null)) {            
-        // Update head cell
-        var elTh = oColumn.getThEl();
-        Dom.addClass(elTh,DT.CLASS_HIGHLIGHTED);
-
-        // Update body cells
-        var allRows = this.getTbodyEl().rows;
-        var oChainRender = this._oChainRender;
-        oChainRender.add({
-            method: function(oArg) {
-                if((this instanceof DT) && this._sId && allRows[oArg.rowIndex] && allRows[oArg.rowIndex].cells[oArg.cellIndex]) {
-                    Dom.addClass(allRows[oArg.rowIndex].cells[oArg.cellIndex],DT.CLASS_HIGHLIGHTED);   
-                }                 
-                oArg.rowIndex++;
-            },
-            scope: this,
-            iterations:allRows.length,
-            argument: {rowIndex:0,cellIndex:oColumn.getKeyIndex()},
-            timeout: -1
-        });
-        this._elTbody.style.display = "none";
-        this._runRenderChain();
-        this._elTbody.style.display = "";      
-            
-        this.fireEvent("columnHighlightEvent",{column:oColumn});
-        YAHOO.log("Column \"" + oColumn.key + "\" highlighed", "info", this.toString());
-    }
-    else {
-        YAHOO.log("Could not highlight Column \"" + oColumn.key + "\". Only non-nested Columns can be highlighted", "warn", this.toString());
-    }
-},
-
-/**
- * Removes the class YAHOO.widget.DataTable.CLASS_HIGHLIGHTED to cells of the given Column.
- * NOTE: You cannot highlight/unhighlight nested Columns. You can only
- * highlight/unhighlight non-nested Columns, and bottom-level key Columns.
- *
- * @method unhighlightColumn
- * @param column {HTMLElement | String | Number} DOM reference or ID string to a
- * TH/TD element (or child of a TH/TD element), a Column key, or a ColumnSet key index.
- */
-unhighlightColumn : function(column) {
-    var oColumn = this.getColumn(column);
-    // Only bottom-level Columns can get highlighted
-    if(oColumn && (oColumn.getKeyIndex() !== null)) {
-        // Update head cell
-        var elTh = oColumn.getThEl();
-        Dom.removeClass(elTh,DT.CLASS_HIGHLIGHTED);
-
-        // Update body cells
-        var allRows = this.getTbodyEl().rows;
-        var oChainRender = this._oChainRender;
-        oChainRender.add({
-            method: function(oArg) {
-                if((this instanceof DT) && this._sId && allRows[oArg.rowIndex] && allRows[oArg.rowIndex].cells[oArg.cellIndex]) {
-                    Dom.removeClass(allRows[oArg.rowIndex].cells[oArg.cellIndex],DT.CLASS_HIGHLIGHTED);
-                }                 
-                oArg.rowIndex++;
-            },
-            scope: this,
-            iterations:allRows.length,
-            argument: {rowIndex:0,cellIndex:oColumn.getKeyIndex()},
-            timeout: -1
-        });
-        this._elTbody.style.display = "none";
-        this._runRenderChain();
-        this._elTbody.style.display = "";     
-            
-        this.fireEvent("columnUnhighlightEvent",{column:oColumn});
-        YAHOO.log("Column \"" + oColumn.key + "\" unhighlighted", "info", this.toString());
-    }
-    else {
-        YAHOO.log("Could not unhighlight Column \"" + oColumn.key + "\". Only non-nested Columns can be unhighlighted", "warn", this.toString());
-    }
-},
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-// ROW FUNCTIONS
-
-/**
- * Adds one new Record of data into the RecordSet at the index if given,
- * otherwise at the end. If the new Record is in page view, the
- * corresponding DOM elements are also updated.
- *
- * @method addRow
- * @param oData {Object} Object literal of data for the row.
- * @param index {Number} (optional) RecordSet position index at which to add data.
- */
-addRow : function(oData, index) {
-    if(lang.isNumber(index) && (index < 0 || index > this._oRecordSet.getLength())) {
-        YAHOO.log("Could not add row at index " + index + " with " + lang.dump(oData), "warn", this.toString());
-        return;
-    }
-
-    if(oData && lang.isObject(oData)) {
-        var oRecord = this._oRecordSet.addRecord(oData, index);
-        if(oRecord) {
-            var recIndex;
-            var oPaginator = this.get('paginator');
-
-            // Paginated
-            if (oPaginator) {     
-                // Update the paginator's totalRecords
-                var totalRecords = oPaginator.get('totalRecords');
-                if (totalRecords !== widget.Paginator.VALUE_UNLIMITED) {
-                    oPaginator.set('totalRecords',totalRecords + 1);
-                }
-
-                recIndex = this.getRecordIndex(oRecord);
-                var endRecIndex = (oPaginator.getPageRecords())[1];
-
-                // New record affects the view
-                if (recIndex <= endRecIndex) {
-                    // Defer UI updates to the render method
-                    this.render();
-                }
-                
-                this.fireEvent("rowAddEvent", {record:oRecord});
-                YAHOO.log("Added a row for Record " + YAHOO.lang.dump(oRecord) + " at RecordSet index " + recIndex, "info", this.toString()); 
-                return;
-            }
-            // Not paginated
-            else {
-                recIndex = this.getTrIndex(oRecord);
-                if(lang.isNumber(recIndex)) {
-                    // Add the TR element
-                    this._oChainRender.add({
-                        method: function(oArg) {
-                            if((this instanceof DT) && this._sId) {
-                                var oRecord = oArg.record;
-                                var recIndex = oArg.recIndex;
-                                var elNewTr = this._addTrEl(oRecord);
-                                if(elNewTr) {
-                                    var elNext = (this._elTbody.rows[recIndex]) ? this._elTbody.rows[recIndex] : null;
-                                    this._elTbody.insertBefore(elNewTr, elNext);
-
-                                    // Set FIRST/LAST
-                                    if(recIndex === 0) {
-                                        this._setFirstRow();
-                                    }
-                                    if(elNext === null) {
-                                        this._setLastRow();
-                                    }
-                                    // Set EVEN/ODD
-                                    this._setRowStripes();                           
-                                    
-                                    this.hideTableMessage();
-            
-                                    this.fireEvent("rowAddEvent", {record:oRecord});
-                                    YAHOO.log("Added a row for Record " + YAHOO.lang.dump(oRecord) + " at RecordSet index " + recIndex, "info", this.toString());
-                                }
-                            }
-                        },
-                        argument: {record: oRecord, recIndex: recIndex},
-                        scope: this,
-                        timeout: (this.get("renderLoopSize") > 0) ? 0 : -1
-                    });
-                    this._runRenderChain();
-                    return;
-                }
-            }            
-        }
-    }
-    YAHOO.log("Could not add row at index " + index + " with " + lang.dump(oData), "warn", this.toString());
-},
-
-/**
- * Convenience method to add multiple rows.
- *
- * @method addRows
- * @param aData {Object[]} Array of object literal data for the rows.
- * @param index {Number} (optional) RecordSet position index at which to add data.
- */
-addRows : function(aData, index) {
-    if(lang.isNumber(index) && (index < 0 || index > this._oRecordSet.getLength())) {
-        YAHOO.log("Could not add rows at index " + index + " with " + lang.dump(aData), "warn", this.toString());    
-        return;
-    }
-
-    if(lang.isArray(aData)) {
-        var aRecords = this._oRecordSet.addRecords(aData, index);
-        if(aRecords) {
-            var recIndex = this.getRecordIndex(aRecords[0]);
-            
-            // Paginated
-            var oPaginator = this.get('paginator');
-            if (oPaginator) {
-                // Update the paginator's totalRecords
-                var totalRecords = oPaginator.get('totalRecords');
-                if (totalRecords !== widget.Paginator.VALUE_UNLIMITED) {
-                    oPaginator.set('totalRecords',totalRecords + aRecords.length);
-                }
-    
-                var endRecIndex = (oPaginator.getPageRecords())[1];
-
-                // At least one of the new records affects the view
-                if (recIndex <= endRecIndex) {
-                    this.render();
-                }
-                
-                this.fireEvent("rowsAddEvent", {records:aRecords});
-                YAHOO.log("Added " + aRecords.length + 
-                        " rows at index " + this._oRecordSet.getRecordIndex(aRecords[0]) +
-                        " with data " + lang.dump(aData), "info", this.toString());
-                return;
-            }
-            // Not paginated
-            else {
-                // Add the TR elements
-                var loopN = this.get("renderLoopSize");
-                var loopEnd = recIndex + aData.length;
-                var nRowsNeeded = (loopEnd - recIndex); // how many needed
-                var isLast = (recIndex >= this._elTbody.rows.length);
-                this._oChainRender.add({
-                    method: function(oArg) {
-                        if((this instanceof DT) && this._sId) {
-                            var aRecords = oArg.aRecords,
-                                i = oArg.nCurrentRow,
-                                j = oArg.nCurrentRecord,
-                                len = loopN > 0 ? Math.min(i + loopN,loopEnd) : loopEnd,
-                                df = document.createDocumentFragment(),
-                                elNext = (this._elTbody.rows[i]) ? this._elTbody.rows[i] : null;
-                            for(; i < len; i++, j++) {
-                                df.appendChild(this._addTrEl(aRecords[j]));
-                            }
-                            this._elTbody.insertBefore(df, elNext);
-                            oArg.nCurrentRow = i;
-                            oArg.nCurrentRecord = j;
-                        }
-                    },
-                    iterations: (loopN > 0) ? Math.ceil(loopEnd/loopN) : 1,
-                    argument: {nCurrentRow:recIndex,nCurrentRecord:0,aRecords:aRecords},
-                    scope: this,
-                    timeout: (loopN > 0) ? 0 : -1
-                });
-                this._oChainRender.add({
-                    method: function(oArg) {
-                        var recIndex = oArg.recIndex;
-                        // Set FIRST/LAST
-                        if(recIndex === 0) {
-                            this._setFirstRow();
-                        }
-                        if(oArg.isLast) {
-                            this._setLastRow();
-                        }
-                        // Set EVEN/ODD
-                        this._setRowStripes();                           
-
-                        this.fireEvent("rowsAddEvent", {records:aRecords});
-                        YAHOO.log("Added " + aRecords.length + 
-                                " rows at index " + this._oRecordSet.getRecordIndex(aRecords[0]) +
-                                " with data " + lang.dump(aData), "info", this.toString());
-                    },
-                    argument: {recIndex: recIndex, isLast: isLast},
-                    scope: this,
-                    timeout: -1 // Needs to run immediately after the DOM insertions above
-                });
-                this._runRenderChain();
-                this.hideTableMessage();                
-                return;
-            }            
-        }
-    }
-    YAHOO.log("Could not add rows at index " + index + " with " + lang.dump(aData), "warn", this.toString());    
-},
-
-/**
- * For the given row, updates the associated Record with the given data. If the
- * row is on current page, the corresponding DOM elements are also updated.
- *
- * @method updateRow
- * @param row {YAHOO.widget.Record | Number | HTMLElement | String}
- * Which row to update: By Record instance, by Record's RecordSet
- * position index, by HTMLElement reference to the TR element, or by ID string
- * of the TR element.
- * @param oData {Object} Object literal of data for the row.
- */
-updateRow : function(row, oData) {
-    var index = row;
-    if (!lang.isNumber(index)) {
-        index = this.getRecordIndex(row);
-    }
-
-    // Update the Record
-    if(lang.isNumber(index) && (index >= 0)) {
-        var oRecordSet = this._oRecordSet,
-            oldRecord = oRecordSet.getRecord(index);
-            
-        
-        if(oldRecord) {
-            var updatedRecord = this._oRecordSet.setRecord(oData, index),
-                elRow = this.getTrEl(oldRecord),
-                // Copy data from the Record for the event that gets fired later
-                oldData = oldRecord ? oldRecord.getData() : null;
-               
-            if(updatedRecord) {
-                // Update selected rows as necessary
-                var tracker = this._aSelections || [],
-                i=0,
-                oldId = oldRecord.getId(),
-                newId = updatedRecord.getId();
-                for(; i<tracker.length; i++) {
-                    if((tracker[i] === oldId)) {
-                        tracker[i] = newId;
-                    }
-                    else if(tracker[i].recordId === oldId) {
-                        tracker[i].recordId = newId;
-                    }
-                }
-
-                // Update the TR only if row is on current page
-                this._oChainRender.add({
-                    method: function() {
-                        if((this instanceof DT) && this._sId) {
-                            // Paginated
-                            var oPaginator = this.get('paginator');
-                            if (oPaginator) {
-                                var pageStartIndex = (oPaginator.getPageRecords())[0],
-                                    pageLastIndex = (oPaginator.getPageRecords())[1];
-        
-                                // At least one of the new records affects the view
-                                if ((index >= pageStartIndex) || (index <= pageLastIndex)) {
-                                    this.render();
-                                }
-                            }
-                            else {
-                                if(elRow) {
-                                    this._updateTrEl(elRow, updatedRecord);
-                                }
-                                else {
-                                    this.getTbodyEl().appendChild(this._addTrEl(updatedRecord));
-                                }
-                            }
-                            this.fireEvent("rowUpdateEvent", {record:updatedRecord, oldData:oldData});
-                            YAHOO.log("DataTable row updated: Record ID = " + updatedRecord.getId() +
-                                    ", Record index = " + this.getRecordIndex(updatedRecord) +
-                                    ", page row index = " + this.getTrIndex(updatedRecord), "info", this.toString());
-                        }
-                    },
-                    scope: this,
-                    timeout: (this.get("renderLoopSize") > 0) ? 0 : -1
-                });
-                this._runRenderChain();
-                return;
-            }
-        }
-    }
-    YAHOO.log("Could not update row " + row + " with the data : " + lang.dump(oData), "warn", this.toString());
-    return;
-},
-
-/**
- * Starting with the given row, updates associated Records with the given data.
- * The number of rows to update are determined by the array of data provided.
- * Undefined data (i.e., not an object literal) causes a row to be skipped. If
- * any of the rows are on current page, the corresponding DOM elements are also
- * updated.
- *
- * @method updateRows
- * @param startrow {YAHOO.widget.Record | Number | HTMLElement | String}
- * Starting row to update: By Record instance, by Record's RecordSet
- * position index, by HTMLElement reference to the TR element, or by ID string
- * of the TR element.
- * @param aData {Object[]} Array of object literal of data for the rows.
- */
-updateRows : function(startrow, aData) {
-    if(lang.isArray(aData)) {
-        var startIndex = startrow,
-            oRecordSet = this._oRecordSet;
-            
-        if (!lang.isNumber(startrow)) {
-            startIndex = this.getRecordIndex(startrow);
-        }
-            
-        if(lang.isNumber(startIndex) && (startIndex >= 0) && (startIndex < oRecordSet.getLength())) {
-            var lastIndex = startIndex + aData.length,
-                aOldRecords = oRecordSet.getRecords(startIndex, aData.length),
-                aNewRecords = oRecordSet.setRecords(aData, startIndex);
-            if(aNewRecords) {
-                // Update selected rows as necessary
-                var tracker = this._aSelections || [],
-                    i=0, j, newId, oldId;
-                for(; i<tracker.length; i++) {
-                    for(j=0; j<aOldRecords.length; j++) {
-                        oldId = aOldRecords[j].getId();
-                        if((tracker[i] === oldId)) {
-                            tracker[i] = aNewRecords[j].getId();
-                        }
-                        else if(tracker[i].recordId === oldId) {
-                            tracker[i].recordId = aNewRecords[j].getId();
-                        }
-                    }
-                }
-            
-                // Paginated
-                var oPaginator = this.get('paginator');
-                if (oPaginator) {
-                    var pageStartIndex = (oPaginator.getPageRecords())[0],
-                        pageLastIndex = (oPaginator.getPageRecords())[1];
-    
-                    // At least one of the new records affects the view
-                    if ((startIndex >= pageStartIndex) || (lastIndex <= pageLastIndex)) {
-                        this.render();
-                    }
-                    
-                    this.fireEvent("rowsAddEvent", {newRecords:aNewRecords, oldRecords:aOldRecords});
-                    YAHOO.log("Added " + aNewRecords.length + 
-                            " rows starting at index " + startIndex +
-                            " with data " + lang.dump(aData), "info", this.toString());
-                    return;
-                }
-                // Not paginated
-                else {
-                    // Update the TR elements
-                    var loopN = this.get("renderLoopSize"),
-                        rowCount = aData.length, // how many needed
-                        lastRowIndex = this._elTbody.rows.length,
-                        isLast = (lastIndex >= lastRowIndex),
-                        isAdding = (lastIndex > lastRowIndex);
-                                           
-                    this._oChainRender.add({
-                        method: function(oArg) {
-                            if((this instanceof DT) && this._sId) {
-                                var aRecords = oArg.aRecords,
-                                    i = oArg.nCurrentRow,
-                                    j = oArg.nDataPointer,
-                                    len = loopN > 0 ? Math.min(i+loopN, startIndex+aRecords.length) : startIndex+aRecords.length;
-                                    
-                                for(; i < len; i++,j++) {
-                                    if(isAdding && (i>=lastRowIndex)) {
-                                        this._elTbody.appendChild(this._addTrEl(aRecords[j]));
-                                    }
-                                    else {
-                                        this._updateTrEl(this._elTbody.rows[i], aRecords[j]);
-                                    }
-                                }
-                                oArg.nCurrentRow = i;
-                                oArg.nDataPointer = j;
-                            }
-                        },
-                        iterations: (loopN > 0) ? Math.ceil(rowCount/loopN) : 1,
-                        argument: {nCurrentRow:startIndex,aRecords:aNewRecords,nDataPointer:0,isAdding:isAdding},
-                        scope: this,
-                        timeout: (loopN > 0) ? 0 : -1
-                    });
-                    this._oChainRender.add({
-                        method: function(oArg) {
-                            var recIndex = oArg.recIndex;
-                            // Set FIRST/LAST
-                            if(recIndex === 0) {
-                                this._setFirstRow();
-                            }
-                            if(oArg.isLast) {
-                                this._setLastRow();
-                            }
-                            // Set EVEN/ODD
-                            this._setRowStripes();                           
-    
-                            this.fireEvent("rowsAddEvent", {newRecords:aNewRecords, oldRecords:aOldRecords});
-                            YAHOO.log("Added " + aNewRecords.length + 
-                                    " rows starting at index " + startIndex +
-                                    " with data " + lang.dump(aData), "info", this.toString());
-                        },
-                        argument: {recIndex: startIndex, isLast: isLast},
-                        scope: this,
-                        timeout: -1 // Needs to run immediately after the DOM insertions above
-                    });
-                    this._runRenderChain();
-                    this.hideTableMessage();                
-                    return;
-                }            
-            }
-        }
-    }
-    YAHOO.log("Could not update rows at " + startrow + " with " + lang.dump(aData), "warn", this.toString());
-},
-
-/**
- * Deletes the given row's Record from the RecordSet. If the row is on current page,
- * the corresponding DOM elements are also deleted.
- *
- * @method deleteRow
- * @param row {HTMLElement | String | Number} DOM element reference or ID string
- * to DataTable page element or RecordSet index.
- */
-deleteRow : function(row) {
-    var nRecordIndex = (lang.isNumber(row)) ? row : this.getRecordIndex(row);
-    if(lang.isNumber(nRecordIndex)) {
-        var oRecord = this.getRecord(nRecordIndex);
-        if(oRecord) {
-            var nTrIndex = this.getTrIndex(nRecordIndex);
-            
-            // Remove from selection tracker if there
-            var sRecordId = oRecord.getId();
-            var tracker = this._aSelections || [];
-            for(var j=tracker.length-1; j>-1; j--) {
-                if((lang.isString(tracker[j]) && (tracker[j] === sRecordId)) ||
-                        (lang.isObject(tracker[j]) && (tracker[j].recordId === sRecordId))) {
-                    tracker.splice(j,1);
-                }
-            }
-    
-            // Delete Record from RecordSet
-            var oData = this._oRecordSet.deleteRecord(nRecordIndex);
-    
-            // Update the UI
-            if(oData) {
-                // If paginated and the deleted row was on this or a prior page, just
-                // re-render
-                var oPaginator = this.get('paginator');
-                if (oPaginator) {
-                    // Update the paginator's totalRecords
-                    var totalRecords = oPaginator.get('totalRecords'),
-                        // must capture before the totalRecords change because
-                        // Paginator shifts to previous page automatically
-                        rng = oPaginator.getPageRecords();
-
-                    if (totalRecords !== widget.Paginator.VALUE_UNLIMITED) {
-                        oPaginator.set('totalRecords',totalRecords - 1);
-                    }
-    
-                    // The deleted record was on this or a prior page, re-render
-                    if (!rng || nRecordIndex <= rng[1]) {
-                        this.render();
-                    }
-
-                    this._oChainRender.add({
-                        method: function() {
-                            if((this instanceof DT) && this._sId) {
-                                this.fireEvent("rowDeleteEvent", {recordIndex:nRecordIndex, oldData:oData, trElIndex:nTrIndex});
-                                YAHOO.log("Deleted row with data " + YAHOO.lang.dump(oData) + " at RecordSet index " + nRecordIndex + " and page row index " + nTrIndex, "info", this.toString());     
-                            }
-                        },
-                        scope: this,
-                        timeout: (this.get("renderLoopSize") > 0) ? 0 : -1
-                    });
-                    this._runRenderChain();
-                }
-                // Not paginated
-                else {
-                    if(lang.isNumber(nTrIndex)) {
-                        this._oChainRender.add({
-                            method: function() {
-                                if((this instanceof DT) && this._sId) {
-                                    var isLast = (nRecordIndex === this._oRecordSet.getLength());//(nTrIndex == this.getLastTrEl().sectionRowIndex);
-                                    this._deleteTrEl(nTrIndex);
-                    
-                                    // Post-delete tasks
-                                    if(this._elTbody.rows.length > 0) {
-                                        // Set FIRST/LAST
-                                        if(nTrIndex === 0) {
-                                            this._setFirstRow();
-                                        }
-                                        if(isLast) {
-                                            this._setLastRow();
-                                        }
-                                        // Set EVEN/ODD
-                                        if(nTrIndex != this._elTbody.rows.length) {
-                                            this._setRowStripes(nTrIndex);
-                                        }                                
-                                    }
-                    
-                                    this.fireEvent("rowDeleteEvent", {recordIndex:nRecordIndex,oldData:oData, trElIndex:nTrIndex});
-                                    YAHOO.log("Deleted row with data " + YAHOO.lang.dump(oData) + " at RecordSet index " + nRecordIndex + " and page row index " + nTrIndex, "info", this.toString());     
-                                }
-                            },
-                            scope: this,
-                            timeout: (this.get("renderLoopSize") > 0) ? 0 : -1
-                        });
-                        this._runRenderChain();
-                        return;
-                    }
-                }
-            }
-        }
-    }
-    YAHOO.log("Could not delete row: " + row, "warn", this.toString());
-    return null;
-},
-
-/**
- * Convenience method to delete multiple rows.
- *
- * @method deleteRows
- * @param row {HTMLElement | String | Number} DOM element reference or ID string
- * to DataTable page element or RecordSet index.
- * @param count {Number} (optional) How many rows to delete. A negative value
- * will delete towards the beginning.
- */
-deleteRows : function(row, count) {
-    var nRecordIndex = (lang.isNumber(row)) ? row : this.getRecordIndex(row);
-    if(lang.isNumber(nRecordIndex)) {
-        var oRecord = this.getRecord(nRecordIndex);
-        if(oRecord) {
-            var nTrIndex = this.getTrIndex(nRecordIndex);
-            
-            // Remove from selection tracker if there
-            var sRecordId = oRecord.getId();
-            var tracker = this._aSelections || [];
-            for(var j=tracker.length-1; j>-1; j--) {
-                if((lang.isString(tracker[j]) && (tracker[j] === sRecordId)) ||
-                        (lang.isObject(tracker[j]) && (tracker[j].recordId === sRecordId))) {
-                    tracker.splice(j,1);
-                }
-            }
-    
-            // Delete Record from RecordSet
-            var highIndex = nRecordIndex;
-            var lowIndex = nRecordIndex;
-        
-            // Validate count and account for negative value
-            if(count && lang.isNumber(count)) {
-                highIndex = (count > 0) ? nRecordIndex + count -1 : nRecordIndex;
-                lowIndex = (count > 0) ? nRecordIndex : nRecordIndex + count + 1;
-                count = (count > 0) ? count : count*-1;
-                if(lowIndex < 0) {
-                    lowIndex = 0;
-                    count = highIndex - lowIndex + 1;
-                }
-            }
-            else {
-                count = 1;
-            }
-            
-            var aData = this._oRecordSet.deleteRecords(lowIndex, count);
-    
-            // Update the UI
-            if(aData) {
-                var oPaginator = this.get('paginator'),
-                    loopN = this.get("renderLoopSize");
-                // If paginated and the deleted row was on this or a prior page, just
-                // re-render
-                if (oPaginator) {
-                    // Update the paginator's totalRecords
-                    var totalRecords = oPaginator.get('totalRecords'),
-                        // must capture before the totalRecords change because
-                        // Paginator shifts to previous page automatically
-                        rng = oPaginator.getPageRecords();
-
-                    if (totalRecords !== widget.Paginator.VALUE_UNLIMITED) {
-                        oPaginator.set('totalRecords',totalRecords - aData.length);
-                    }
-    
-                    // The records were on this or a prior page, re-render
-                    if (!rng || lowIndex <= rng[1]) {
-                        this.render();
-                    }
-
-                    this._oChainRender.add({
-                        method: function(oArg) {
-                            if((this instanceof DT) && this._sId) {
-                                this.fireEvent("rowsDeleteEvent", {recordIndex:lowIndex, oldData:aData, count:count});
-                                YAHOO.log("DataTable " + count + " rows deleted starting at index " + lowIndex, "info", this.toString());
-                            }
-                        },
-                        scope: this,
-                        timeout: (loopN > 0) ? 0 : -1
-                    });
-                    this._runRenderChain();
-                    return;
-                }
-                // Not paginated
-                else {
-                    if(lang.isNumber(nTrIndex)) {
-                        // Delete the TR elements starting with highest index
-                        var loopEnd = lowIndex;
-                        var nRowsNeeded = count; // how many needed
-                        this._oChainRender.add({
-                            method: function(oArg) {
-                                if((this instanceof DT) && this._sId) {
-                                    var i = oArg.nCurrentRow,
-                                        len = (loopN > 0) ? (Math.max(i - loopN,loopEnd)-1) : loopEnd-1;
-                                    for(; i>len; --i) {
-                                        this._deleteTrEl(i);
-                                    }
-                                    oArg.nCurrentRow = i;
-                                }
-                            },
-                            iterations: (loopN > 0) ? Math.ceil(count/loopN) : 1,
-                            argument: {nCurrentRow:highIndex},
-                            scope: this,
-                            timeout: (loopN > 0) ? 0 : -1
-                        });
-                        this._oChainRender.add({
-                            method: function() {    
-                                // Post-delete tasks
-                                if(this._elTbody.rows.length > 0) {
-                                    this._setFirstRow();
-                                    this._setLastRow();
-                                    this._setRowStripes();
-                                }
-                                
-                                this.fireEvent("rowsDeleteEvent", {recordIndex:lowIndex, oldData:aData, count:count});
-                                YAHOO.log("DataTable " + count + " rows deleted starting at index " + lowIndex, "info", this.toString());
-                            },
-                            scope: this,
-                            timeout: -1 // Needs to run immediately after the DOM deletions above
-                        });
-                        this._runRenderChain();
-                        return;
-                    }
-                }
-            }
-        }
-    }
-    YAHOO.log("Could not delete " + count + " rows at row " + row, "warn", this.toString());
-    return null;
-},
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-// CELL FUNCTIONS
-
-/**
- * Outputs markup into the given TD based on given Record.
- *
- * @method formatCell
- * @param elLiner {HTMLElement} The liner DIV element within the TD.
- * @param oRecord {YAHOO.widget.Record} (Optional) Record instance.
- * @param oColumn {YAHOO.widget.Column} (Optional) Column instance.
- */
-formatCell : function(elLiner, oRecord, oColumn) {
-    if(!oRecord) {
-        oRecord = this.getRecord(elLiner);
-    }
-    if(!oColumn) {
-        oColumn = this.getColumn(elLiner.parentNode.cellIndex);
-    }
-
-    if(oRecord && oColumn) {
-        var sField = oColumn.field;
-        var oData = oRecord.getData(sField);
-
-        var fnFormatter = typeof oColumn.formatter === 'function' ?
-                          oColumn.formatter :
-                          DT.Formatter[oColumn.formatter+''] ||
-                          DT.Formatter.defaultFormatter;
-
-        // Apply special formatter
-        if(fnFormatter) {
-            fnFormatter.call(this, elLiner, oRecord, oColumn, oData);
-        }
-        else {
-            elLiner.innerHTML = oData;
-        }
-
-        this.fireEvent("cellFormatEvent", {record:oRecord, column:oColumn, key:oColumn.key, el:elLiner});
-    }
-    else {
-        YAHOO.log("Could not format cell " + elLiner, "error", this.toString());
-    }
-},
-
-/**
- * For the given row and column, updates the Record with the given data. If the
- * cell is on current page, the corresponding DOM elements are also updated.
- *
- * @method updateCell
- * @param oRecord {YAHOO.widget.Record} Record instance.
- * @param oColumn {YAHOO.widget.Column | String | Number} A Column key, or a ColumnSet key index.
- * @param oData {Object} New data value for the cell.
- */
-updateCell : function(oRecord, oColumn, oData) {    
-    // Validate Column and Record
-    oColumn = (oColumn instanceof YAHOO.widget.Column) ? oColumn : this.getColumn(oColumn);
-    if(oColumn && oColumn.getField() && (oRecord instanceof YAHOO.widget.Record)) {
-        var sKey = oColumn.getField(),
-        
-        // Copy data from the Record for the event that gets fired later
-        //var oldData = YAHOO.widget.DataTable._cloneObject(oRecord.getData());
-            oldData = oRecord.getData(sKey);
-
-        // Update Record with new data
-        this._oRecordSet.updateRecordValue(oRecord, sKey, oData);
-    
-        // Update the TD only if row is on current page
-        var elTd = this.getTdEl({record: oRecord, column: oColumn});
-        if(elTd) {
-            this._oChainRender.add({
-                method: function() {
-                    if((this instanceof DT) && this._sId) {
-                        this.formatCell(elTd.firstChild);
-                        this.fireEvent("cellUpdateEvent", {record:oRecord, column: oColumn, oldData:oldData});
-                        YAHOO.log("DataTable cell updated: Record ID = " + oRecord.getId() +
-                                ", Record index = " + this.getRecordIndex(oRecord) +
-                                ", page row index = " + this.getTrIndex(oRecord) +
-                                ", Column key = " + oColumn.getKey(), "info", this.toString());
-                    }
-                },
-                scope: this,
-                timeout: (this.get("renderLoopSize") > 0) ? 0 : -1
-            });
-            this._runRenderChain();
-        }
-        else {
-            this.fireEvent("cellUpdateEvent", {record:oRecord, column: oColumn, oldData:oldData});
-            YAHOO.log("DataTable cell updated: Record ID = " + oRecord.getId() +
-                    ", Record index = " + this.getRecordIndex(oRecord) +
-                    ", page row index = " + this.getTrIndex(oRecord) +
-                    ", Column key = " + oColumn.getKey(), "info", this.toString());   
-        }
-    }
-},
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-// PAGINATION
-/**
- * Method executed during set() operation for the "paginator" attribute.
- * Adds and/or severs event listeners between DataTable and Paginator
- *
- * @method _updatePaginator
- * @param newPag {Paginator} Paginator instance (or null) for DataTable to use
- * @private
- */
-_updatePaginator : function (newPag) {
-    var oldPag = this.get('paginator');
-    if (oldPag && newPag !== oldPag) {
-        oldPag.unsubscribe('changeRequest', this.onPaginatorChangeRequest, this, true);
-    }
-    if (newPag) {
-        newPag.subscribe('changeRequest', this.onPaginatorChangeRequest, this, true);
-    }
-},
-
-/**
- * Update the UI infrastructure in response to a "paginator" attribute change.
- *
- * @method _handlePaginatorChange
- * @param e {Object} Change event object containing keys 'type','newValue',
- *                   and 'prevValue'
- * @private
- */
-_handlePaginatorChange : function (e) {
-    if (e.prevValue === e.newValue) { return; }
-
-    var newPag     = e.newValue,
-        oldPag     = e.prevValue,
-        containers = this._defaultPaginatorContainers();
-
-    if (oldPag) {
-        if (oldPag.getContainerNodes()[0] == containers[0]) {
-            oldPag.set('containers',[]);
-        }
-        oldPag.destroy();
-
-        // Convenience: share the default containers if possible.
-        // Otherwise, remove the default containers from the DOM.
-        if (containers[0]) {
-            if (newPag && !newPag.getContainerNodes().length) {
-                newPag.set('containers',containers);
-            } else {
-                // No new Paginator to use existing containers, OR new
-                // Paginator has configured containers.
-                for (var i = containers.length - 1; i >= 0; --i) {
-                    if (containers[i]) {
-                        containers[i].parentNode.removeChild(containers[i]);
-                    }
-                }
-            }
-        }
-    }
-
-    if (!this._bInit) {
-        this.render();
-
-    }
-
-    if (newPag) {
-        this.renderPaginator();
-    }
-
-},
-
-/**
- * Returns the default containers used for Paginators.  If create param is
- * passed, the containers will be created and added to the DataTable container.
- *
- * @method _defaultPaginatorContainers
- * @param create {boolean} Create the default containers if not found
- * @private
- */
-_defaultPaginatorContainers : function (create) {
-    var above_id = this._sId + '-paginator0',
-        below_id = this._sId + '-paginator1',
-        above    = Dom.get(above_id),
-        below    = Dom.get(below_id);
-
-    if (create && (!above || !below)) {
-        // One above and one below the table
-        if (!above) {
-            above    = document.createElement('div');
-            above.id = above_id;
-            Dom.addClass(above, DT.CLASS_PAGINATOR);
-
-            this._elContainer.insertBefore(above,this._elContainer.firstChild);
-        }
-
-        if (!below) {
-            below    = document.createElement('div');
-            below.id = below_id;
-            Dom.addClass(below, DT.CLASS_PAGINATOR);
-
-            this._elContainer.appendChild(below);
-        }
-    }
-
-    return [above,below];
-},
-
-/**
- * Calls Paginator's destroy() method
- *
- * @method _destroyPaginator
- * @private
- */
-_destroyPaginator : function () {
-    var oldPag = this.get('paginator');
-    if (oldPag) {
-        oldPag.destroy();
-    }
-},
-
-/**
- * Renders the Paginator to the DataTable UI
- *
- * @method renderPaginator
- */
-renderPaginator : function () {
-    var pag = this.get("paginator");
-    if (!pag) { return; }
-
-    // Add the containers if the Paginator is not configured with containers
-    if (!pag.getContainerNodes().length) {
-        pag.set('containers',this._defaultPaginatorContainers(true));
-    }
-
-    pag.render();
-},
-
-/**
- * Overridable method gives implementers a hook to show loading message before
- * changing Paginator value.
- *
- * @method doBeforePaginatorChange
- * @param oPaginatorState {Object} An object literal describing the proposed pagination state.
- * @return {Boolean} Return true to continue changing Paginator value.
- */
-doBeforePaginatorChange : function(oPaginatorState) {
-    this.showTableMessage(this.get("MSG_LOADING"), DT.CLASS_LOADING);
-    return true;
-},
-
-/**
- * Responds to new Pagination states. By default, updates the UI to reflect the
- * new state. If "dynamicData" is true, current selections are purged before
- * a request is sent to the DataSource for data for the new state (using the
- * request returned by "generateRequest()").
- *  
- * @method onPaginatorChangeRequest
- * @param oPaginatorState {Object} An object literal describing the proposed pagination state.
- */
-onPaginatorChangeRequest : function (oPaginatorState) {
-    var ok = this.doBeforePaginatorChange(oPaginatorState);
-    if(ok) {
-        // Server-side pagination
-        if(this.get("dynamicData")) {
-            // Get the current state
-            var oState = this.getState();
-            
-            // Update pagination values
-            oState.pagination = oPaginatorState;
-    
-            // Get the request for the new state
-            var request = this.get("generateRequest")(oState, this);
-            
-            // Purge selections
-            this.unselectAllRows();
-            this.unselectAllCells();
-            
-            // Get the new data from the server
-            var callback = {
-                success : this.onDataReturnSetRows,
-                failure : this.onDataReturnSetRows,
-                argument : oState, // Pass along the new state to the callback
-                scope : this
-            };
-            this._oDataSource.sendRequest(request, callback);
-        }
-        // Client-side pagination
-        else {
-            // Set the core pagination values silently (the second param)
-            // to avoid looping back through the changeRequest mechanism
-            oPaginatorState.paginator.setStartIndex(oPaginatorState.recordOffset,true);
-            oPaginatorState.paginator.setRowsPerPage(oPaginatorState.rowsPerPage,true);
-    
-            // Update the UI
-            this.render();
-        }
-    }
-    else {
-        YAHOO.log("Could not change Paginator value \"" + oPaginatorState + "\"", "warn", this.toString());
-    }
-},
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-// SELECTION/HIGHLIGHTING
-
-/*
- * Reference to last highlighted cell element
- *
- * @property _elLastHighlightedTd
- * @type HTMLElement
- * @private
- */
-_elLastHighlightedTd : null,
-
-/*
- * ID string of last highlighted row element
- *
- * @property _sLastHighlightedTrElId
- * @type String
- * @private
- */
-//_sLastHighlightedTrElId : null,
-
-/**
- * Array to track row selections (by sRecordId) and/or cell selections
- * (by {recordId:sRecordId, columnKey:sColumnKey})
- *
- * @property _aSelections
- * @type Object[]
- * @private
- */
-_aSelections : null,
-
-/**
- * Record instance of the row selection anchor.
- *
- * @property _oAnchorRecord
- * @type YAHOO.widget.Record
- * @private
- */
-_oAnchorRecord : null,
-
-/**
- * Object literal representing cell selection anchor:
- * {recordId:sRecordId, columnKey:sColumnKey}.
- *
- * @property _oAnchorCell
- * @type Object
- * @private
- */
-_oAnchorCell : null,
-
-/**
- * Convenience method to remove the class YAHOO.widget.DataTable.CLASS_SELECTED
- * from all TR elements on the page.
- *
- * @method _unselectAllTrEls
- * @private
- */
-_unselectAllTrEls : function() {
-    var selectedRows = Dom.getElementsByClassName(DT.CLASS_SELECTED,"tr",this._elTbody);
-    Dom.removeClass(selectedRows, DT.CLASS_SELECTED);
-},
-
-/**
- * Returns object literal of values that represent the selection trigger. Used
- * to determine selection behavior resulting from a key event.
- *
- * @method _getSelectionTrigger
- * @private
- */
-_getSelectionTrigger : function() {
-    var sMode = this.get("selectionMode");
-    var oTrigger = {};
-    var oTriggerCell, oTriggerRecord, nTriggerRecordIndex, elTriggerRow, nTriggerTrIndex;
-
-    // Cell mode
-    if((sMode == "cellblock") || (sMode == "cellrange") || (sMode == "singlecell")) {
-        oTriggerCell = this.getLastSelectedCell();
-        // No selected cells found
-        if(!oTriggerCell) {
-            return null;
-        }
-        else {
-            oTriggerRecord = this.getRecord(oTriggerCell.recordId);
-            nTriggerRecordIndex = this.getRecordIndex(oTriggerRecord);
-            elTriggerRow = this.getTrEl(oTriggerRecord);
-            nTriggerTrIndex = this.getTrIndex(elTriggerRow);
-
-            // Selected cell not found on this page
-            if(nTriggerTrIndex === null) {
-                return null;
-            }
-            else {
-                oTrigger.record = oTriggerRecord;
-                oTrigger.recordIndex = nTriggerRecordIndex;
-                oTrigger.el = this.getTdEl(oTriggerCell);
-                oTrigger.trIndex = nTriggerTrIndex;
-                oTrigger.column = this.getColumn(oTriggerCell.columnKey);
-                oTrigger.colKeyIndex = oTrigger.column.getKeyIndex();
-                oTrigger.cell = oTriggerCell;
-                return oTrigger;
-            }
-        }
-    }
-    // Row mode
-    else {
-        oTriggerRecord = this.getLastSelectedRecord();
-        // No selected rows found
-        if(!oTriggerRecord) {
-                return null;
-        }
-        else {
-            // Selected row found, but is it on current page?
-            oTriggerRecord = this.getRecord(oTriggerRecord);
-            nTriggerRecordIndex = this.getRecordIndex(oTriggerRecord);
-            elTriggerRow = this.getTrEl(oTriggerRecord);
-            nTriggerTrIndex = this.getTrIndex(elTriggerRow);
-
-            // Selected row not found on this page
-            if(nTriggerTrIndex === null) {
-                return null;
-            }
-            else {
-                oTrigger.record = oTriggerRecord;
-                oTrigger.recordIndex = nTriggerRecordIndex;
-                oTrigger.el = elTriggerRow;
-                oTrigger.trIndex = nTriggerTrIndex;
-                return oTrigger;
-            }
-        }
-    }
-},
-
-/**
- * Returns object literal of values that represent the selection anchor. Used
- * to determine selection behavior resulting from a user event.
- *
- * @method _getSelectionAnchor
- * @param oTrigger {Object} (Optional) Object literal of selection trigger values
- * (for key events).
- * @private
- */
-_getSelectionAnchor : function(oTrigger) {
-    var sMode = this.get("selectionMode");
-    var oAnchor = {};
-    var oAnchorRecord, nAnchorRecordIndex, nAnchorTrIndex;
-
-    // Cell mode
-    if((sMode == "cellblock") || (sMode == "cellrange") || (sMode == "singlecell")) {
-        // Validate anchor cell
-        var oAnchorCell = this._oAnchorCell;
-        if(!oAnchorCell) {
-            if(oTrigger) {
-                oAnchorCell = this._oAnchorCell = oTrigger.cell;
-            }
-            else {
-                return null;
-            }
-        }
-        oAnchorRecord = this._oAnchorCell.record;
-        nAnchorRecordIndex = this._oRecordSet.getRecordIndex(oAnchorRecord);
-        nAnchorTrIndex = this.getTrIndex(oAnchorRecord);
-        // If anchor cell is not on this page...
-        if(nAnchorTrIndex === null) {
-            // ...set TR index equal to top TR
-            if(nAnchorRecordIndex < this.getRecordIndex(this.getFirstTrEl())) {
-                nAnchorTrIndex = 0;
-            }
-            // ...set TR index equal to bottom TR
-            else {
-                nAnchorTrIndex = this.getRecordIndex(this.getLastTrEl());
-            }
-        }
-
-        oAnchor.record = oAnchorRecord;
-        oAnchor.recordIndex = nAnchorRecordIndex;
-        oAnchor.trIndex = nAnchorTrIndex;
-        oAnchor.column = this._oAnchorCell.column;
-        oAnchor.colKeyIndex = oAnchor.column.getKeyIndex();
-        oAnchor.cell = oAnchorCell;
-        return oAnchor;
-    }
-    // Row mode
-    else {
-        oAnchorRecord = this._oAnchorRecord;
-        if(!oAnchorRecord) {
-            if(oTrigger) {
-                oAnchorRecord = this._oAnchorRecord = oTrigger.record;
-            }
-            else {
-                return null;
-            }
-        }
-
-        nAnchorRecordIndex = this.getRecordIndex(oAnchorRecord);
-        nAnchorTrIndex = this.getTrIndex(oAnchorRecord);
-        // If anchor row is not on this page...
-        if(nAnchorTrIndex === null) {
-            // ...set TR index equal to top TR
-            if(nAnchorRecordIndex < this.getRecordIndex(this.getFirstTrEl())) {
-                nAnchorTrIndex = 0;
-            }
-            // ...set TR index equal to bottom TR
-            else {
-                nAnchorTrIndex = this.getRecordIndex(this.getLastTrEl());
-            }
-        }
-
-        oAnchor.record = oAnchorRecord;
-        oAnchor.recordIndex = nAnchorRecordIndex;
-        oAnchor.trIndex = nAnchorTrIndex;
-        return oAnchor;
-    }
-},
-
-/**
- * Determines selection behavior resulting from a mouse event when selection mode
- * is set to "standard".
- *
- * @method _handleStandardSelectionByMouse
- * @param oArgs.event {HTMLEvent} Event object.
- * @param oArgs.target {HTMLElement} Target element.
- * @private
- */
-_handleStandardSelectionByMouse : function(oArgs) {
-    var elTarget = oArgs.target;
-
-    // Validate target row
-    var elTargetRow = this.getTrEl(elTarget);
-    if(elTargetRow) {
-        var e = oArgs.event;
-        var bSHIFT = e.shiftKey;
-        var bCTRL = e.ctrlKey || ((navigator.userAgent.toLowerCase().indexOf("mac") != -1) && e.metaKey);
-
-        var oTargetRecord = this.getRecord(elTargetRow);
-        var nTargetRecordIndex = this._oRecordSet.getRecordIndex(oTargetRecord);
-
-        var oAnchor = this._getSelectionAnchor();
-
-        var i;
-
-        // Both SHIFT and CTRL
-        if(bSHIFT && bCTRL) {
-            // Validate anchor
-            if(oAnchor) {
-                if(this.isSelected(oAnchor.record)) {
-                    // Select all rows between anchor row and target row, including target row
-                    if(oAnchor.recordIndex < nTargetRecordIndex) {
-                        for(i=oAnchor.recordIndex+1; i<=nTargetRecordIndex; i++) {
-                            if(!this.isSelected(i)) {
-                                this.selectRow(i);
-                            }
-                        }
-                    }
-                    // Select all rows between target row and anchor row, including target row
-                    else {
-                        for(i=oAnchor.recordIndex-1; i>=nTargetRecordIndex; i--) {
-                            if(!this.isSelected(i)) {
-                                this.selectRow(i);
-                            }
-                        }
-                    }
-                }
-                else {
-                    // Unselect all rows between anchor row and target row
-                    if(oAnchor.recordIndex < nTargetRecordIndex) {
-                        for(i=oAnchor.recordIndex+1; i<=nTargetRecordIndex-1; i++) {
-                            if(this.isSelected(i)) {
-                                this.unselectRow(i);
-                            }
-                        }
-                    }
-                    // Unselect all rows between target row and anchor row
-                    else {
-                        for(i=nTargetRecordIndex+1; i<=oAnchor.recordIndex-1; i++) {
-                            if(this.isSelected(i)) {
-                                this.unselectRow(i);
-                            }
-                        }
-                    }
-                    // Select the target row
-                    this.selectRow(oTargetRecord);
-                }
-            }
-            // Invalid anchor
-            else {
-                // Set anchor
-                this._oAnchorRecord = oTargetRecord;
-
-                // Toggle selection of target
-                if(this.isSelected(oTargetRecord)) {
-                    this.unselectRow(oTargetRecord);
-                }
-                else {
-                    this.selectRow(oTargetRecord);
-                }
-            }
-        }
-         // Only SHIFT
-        else if(bSHIFT) {
-            this.unselectAllRows();
-
-            // Validate anchor
-            if(oAnchor) {
-                // Select all rows between anchor row and target row,
-                // including the anchor row and target row
-                if(oAnchor.recordIndex < nTargetRecordIndex) {
-                    for(i=oAnchor.recordIndex; i<=nTargetRecordIndex; i++) {
-                        this.selectRow(i);
-                    }
-                }
-                // Select all rows between target row and anchor row,
-                // including the target row and anchor row
-                else {
-                    for(i=oAnchor.recordIndex; i>=nTargetRecordIndex; i--) {
-                        this.selectRow(i);
-                    }
-                }
-            }
-            // Invalid anchor
-            else {
-                // Set anchor
-                this._oAnchorRecord = oTargetRecord;
-
-                // Select target row only
-                this.selectRow(oTargetRecord);
-            }
-        }
-        // Only CTRL
-        else if(bCTRL) {
-            // Set anchor
-            this._oAnchorRecord = oTargetRecord;
-
-            // Toggle selection of target
-            if(this.isSelected(oTargetRecord)) {
-                this.unselectRow(oTargetRecord);
-            }
-            else {
-                this.selectRow(oTargetRecord);
-            }
-        }
-        // Neither SHIFT nor CTRL
-        else {
-            this._handleSingleSelectionByMouse(oArgs);
-            return;
-        }
-    }
-},
-
-/**
- * Determines selection behavior resulting from a key event when selection mode
- * is set to "standard".
- *
- * @method _handleStandardSelectionByKey
- * @param e {HTMLEvent} Event object.
- * @private
- */
-_handleStandardSelectionByKey : function(e) {
-    var nKey = Ev.getCharCode(e);
-
-    if((nKey == 38) || (nKey == 40)) {
-        var bSHIFT = e.shiftKey;
-
-        // Validate trigger
-        var oTrigger = this._getSelectionTrigger();
-        // Arrow selection only works if last selected row is on current page
-        if(!oTrigger) {
-            return null;
-        }
-
-        Ev.stopEvent(e);
-
-        // Validate anchor
-        var oAnchor = this._getSelectionAnchor(oTrigger);
-
-        // Determine which direction we're going to
-        if(bSHIFT) {
-            // Selecting down away from anchor row
-            if((nKey == 40) && (oAnchor.recordIndex <= oTrigger.trIndex)) {
-                this.selectRow(this.getNextTrEl(oTrigger.el));
-            }
-            // Selecting up away from anchor row
-            else if((nKey == 38) && (oAnchor.recordIndex >= oTrigger.trIndex)) {
-                this.selectRow(this.getPreviousTrEl(oTrigger.el));
-            }
-            // Unselect trigger
-            else {
-                this.unselectRow(oTrigger.el);
-            }
-        }
-        else {
-            this._handleSingleSelectionByKey(e);
-        }
-    }
-},
-
-/**
- * Determines selection behavior resulting from a mouse event when selection mode
- * is set to "single".
- *
- * @method _handleSingleSelectionByMouse
- * @param oArgs.event {HTMLEvent} Event object.
- * @param oArgs.target {HTMLElement} Target element.
- * @private
- */
-_handleSingleSelectionByMouse : function(oArgs) {
-    var elTarget = oArgs.target;
-
-    // Validate target row
-    var elTargetRow = this.getTrEl(elTarget);
-    if(elTargetRow) {
-        var oTargetRecord = this.getRecord(elTargetRow);
-
-        // Set anchor
-        this._oAnchorRecord = oTargetRecord;
-
-        // Select only target
-        this.unselectAllRows();
-        this.selectRow(oTargetRecord);
-    }
-},
-
-/**
- * Determines selection behavior resulting from a key event when selection mode
- * is set to "single".
- *
- * @method _handleSingleSelectionByKey
- * @param e {HTMLEvent} Event object.
- * @private
- */
-_handleSingleSelectionByKey : function(e) {
-    var nKey = Ev.getCharCode(e);
-
-    if((nKey == 38) || (nKey == 40)) {
-        // Validate trigger
-        var oTrigger = this._getSelectionTrigger();
-        // Arrow selection only works if last selected row is on current page
-        if(!oTrigger) {
-            return null;
-        }
-
-        Ev.stopEvent(e);
-
-        // Determine the new row to select
-        var elNew;
-        if(nKey == 38) { // arrow up
-            elNew = this.getPreviousTrEl(oTrigger.el);
-
-            // Validate new row
-            if(elNew === null) {
-                //TODO: wrap around to last tr on current page
-                //elNew = this.getLastTrEl();
-
-                //TODO: wrap back to last tr of previous page
-
-                // Top row selection is sticky
-                elNew = this.getFirstTrEl();
-            }
-        }
-        else if(nKey == 40) { // arrow down
-            elNew = this.getNextTrEl(oTrigger.el);
-
-            // Validate new row
-            if(elNew === null) {
-                //TODO: wrap around to first tr on current page
-                //elNew = this.getFirstTrEl();
-
-                //TODO: wrap forward to first tr of previous page
-
-                // Bottom row selection is sticky
-                elNew = this.getLastTrEl();
-            }
-        }
-
-        // Unselect all rows
-        this.unselectAllRows();
-
-        // Select the new row
-        this.selectRow(elNew);
-
-        // Set new anchor
-        this._oAnchorRecord = this.getRecord(elNew);
-    }
-},
-
-/**
- * Determines selection behavior resulting from a mouse event when selection mode
- * is set to "cellblock".
- *
- * @method _handleCellBlockSelectionByMouse
- * @param oArgs.event {HTMLEvent} Event object.
- * @param oArgs.target {HTMLElement} Target element.
- * @private
- */
-_handleCellBlockSelectionByMouse : function(oArgs) {
-    var elTarget = oArgs.target;
-
-    // Validate target cell
-    var elTargetCell = this.getTdEl(elTarget);
-    if(elTargetCell) {
-        var e = oArgs.event;
-        var bSHIFT = e.shiftKey;
-        var bCTRL = e.ctrlKey || ((navigator.userAgent.toLowerCase().indexOf("mac") != -1) && e.metaKey);
-
-        var elTargetRow = this.getTrEl(elTargetCell);
-        var nTargetTrIndex = this.getTrIndex(elTargetRow);
-        var oTargetColumn = this.getColumn(elTargetCell);
-        var nTargetColKeyIndex = oTargetColumn.getKeyIndex();
-        var oTargetRecord = this.getRecord(elTargetRow);
-        var nTargetRecordIndex = this._oRecordSet.getRecordIndex(oTargetRecord);
-        var oTargetCell = {record:oTargetRecord, column:oTargetColumn};
-
-        var oAnchor = this._getSelectionAnchor();
-
-        var allRows = this.getTbodyEl().rows;
-        var startIndex, endIndex, currentRow, i, j;
-
-        // Both SHIFT and CTRL
-        if(bSHIFT && bCTRL) {
-
-            // Validate anchor
-            if(oAnchor) {
-                // Anchor is selected
-                if(this.isSelected(oAnchor.cell)) {
-                    // All cells are on the same row
-                    if(oAnchor.recordIndex === nTargetRecordIndex) {
-                        // Select all cells between anchor cell and target cell, including target cell
-                        if(oAnchor.colKeyIndex < nTargetColKeyIndex) {
-                            for(i=oAnchor.colKeyIndex+1; i<=nTargetColKeyIndex; i++) {
-                                this.selectCell(elTargetRow.cells[i]);
-                            }
-                        }
-                        // Select all cells between target cell and anchor cell, including target cell
-                        else if(nTargetColKeyIndex < oAnchor.colKeyIndex) {
-                            for(i=nTargetColKeyIndex; i<oAnchor.colKeyIndex; i++) {
-                                this.selectCell(elTargetRow.cells[i]);
-                            }
-                        }
-                    }
-                    // Anchor row is above target row
-                    else if(oAnchor.recordIndex < nTargetRecordIndex) {
-                        startIndex = Math.min(oAnchor.colKeyIndex, nTargetColKeyIndex);
-                        endIndex = Math.max(oAnchor.colKeyIndex, nTargetColKeyIndex);
-
-                        // Select all cells from startIndex to endIndex on rows between anchor row and target row
-                        for(i=oAnchor.trIndex; i<=nTargetTrIndex; i++) {
-                            for(j=startIndex; j<=endIndex; j++) {
-                                this.selectCell(allRows[i].cells[j]);
-                            }
-                        }
-                    }
-                    // Anchor row is below target row
-                    else {
-                        startIndex = Math.min(oAnchor.trIndex, nTargetColKeyIndex);
-                        endIndex = Math.max(oAnchor.trIndex, nTargetColKeyIndex);
-
-                        // Select all cells from startIndex to endIndex on rows between target row and anchor row
-                        for(i=oAnchor.trIndex; i>=nTargetTrIndex; i--) {
-                            for(j=endIndex; j>=startIndex; j--) {
-                                this.selectCell(allRows[i].cells[j]);
-                            }
-                        }
-                    }
-                }
-                // Anchor cell is unselected
-                else {
-                    // All cells are on the same row
-                    if(oAnchor.recordIndex === nTargetRecordIndex) {
-                        // Unselect all cells between anchor cell and target cell
-                        if(oAnchor.colKeyIndex < nTargetColKeyIndex) {
-                            for(i=oAnchor.colKeyIndex+1; i<nTargetColKeyIndex; i++) {
-                                this.unselectCell(elTargetRow.cells[i]);
-                            }
-                        }
-                        // Select all cells between target cell and anchor cell
-                        else if(nTargetColKeyIndex < oAnchor.colKeyIndex) {
-                            for(i=nTargetColKeyIndex+1; i<oAnchor.colKeyIndex; i++) {
-                                this.unselectCell(elTargetRow.cells[i]);
-                            }
-                        }
-                    }
-                    // Anchor row is above target row
-                    if(oAnchor.recordIndex < nTargetRecordIndex) {
-                        // Unselect all cells from anchor cell to target cell
-                        for(i=oAnchor.trIndex; i<=nTargetTrIndex; i++) {
-                            currentRow = allRows[i];
-                            for(j=0; j<currentRow.cells.length; j++) {
-                                // This is the anchor row, only unselect cells after the anchor cell
-                                if(currentRow.sectionRowIndex === oAnchor.trIndex) {
-                                    if(j>oAnchor.colKeyIndex) {
-                                        this.unselectCell(currentRow.cells[j]);
-                                    }
-                                }
-                                // This is the target row, only unelect cells before the target cell
-                                else if(currentRow.sectionRowIndex === nTargetTrIndex) {
-                                    if(j<nTargetColKeyIndex) {
-                                        this.unselectCell(currentRow.cells[j]);
-                                    }
-                                }
-                                // Unselect all cells on this row
-                                else {
-                                    this.unselectCell(currentRow.cells[j]);
-                                }
-                            }
-                        }
-                    }
-                    // Anchor row is below target row
-                    else {
-                        // Unselect all cells from target cell to anchor cell
-                        for(i=nTargetTrIndex; i<=oAnchor.trIndex; i++) {
-                            currentRow = allRows[i];
-                            for(j=0; j<currentRow.cells.length; j++) {
-                                // This is the target row, only unselect cells after the target cell
-                                if(currentRow.sectionRowIndex == nTargetTrIndex) {
-                                    if(j>nTargetColKeyIndex) {
-                                        this.unselectCell(currentRow.cells[j]);
-                                    }
-                                }
-                                // This is the anchor row, only unselect cells before the anchor cell
-                                else if(currentRow.sectionRowIndex == oAnchor.trIndex) {
-                                    if(j<oAnchor.colKeyIndex) {
-                                        this.unselectCell(currentRow.cells[j]);
-                                    }
-                                }
-                                // Unselect all cells on this row
-                                else {
-                                    this.unselectCell(currentRow.cells[j]);
-                                }
-                            }
-                        }
-                    }
-
-                    // Select the target cell
-                    this.selectCell(elTargetCell);
-                }
-            }
-            // Invalid anchor
-            else {
-                // Set anchor
-                this._oAnchorCell = oTargetCell;
-
-                // Toggle selection of target
-                if(this.isSelected(oTargetCell)) {
-                    this.unselectCell(oTargetCell);
-                }
-                else {
-                    this.selectCell(oTargetCell);
-                }
-            }
-
-        }
-         // Only SHIFT
-        else if(bSHIFT) {
-            this.unselectAllCells();
-
-            // Validate anchor
-            if(oAnchor) {
-                // All cells are on the same row
-                if(oAnchor.recordIndex === nTargetRecordIndex) {
-                    // Select all cells between anchor cell and target cell,
-                    // including the anchor cell and target cell
-                    if(oAnchor.colKeyIndex < nTargetColKeyIndex) {
-                        for(i=oAnchor.colKeyIndex; i<=nTargetColKeyIndex; i++) {
-                            this.selectCell(elTargetRow.cells[i]);
-                        }
-                    }
-                    // Select all cells between target cell and anchor cell
-                    // including the target cell and anchor cell
-                    else if(nTargetColKeyIndex < oAnchor.colKeyIndex) {
-                        for(i=nTargetColKeyIndex; i<=oAnchor.colKeyIndex; i++) {
-                            this.selectCell(elTargetRow.cells[i]);
-                        }
-                    }
-                }
-                // Anchor row is above target row
-                else if(oAnchor.recordIndex < nTargetRecordIndex) {
-                    // Select the cellblock from anchor cell to target cell
-                    // including the anchor cell and the target cell
-                    startIndex = Math.min(oAnchor.colKeyIndex, nTargetColKeyIndex);
-                    endIndex = Math.max(oAnchor.colKeyIndex, nTargetColKeyIndex);
-
-                    for(i=oAnchor.trIndex; i<=nTargetTrIndex; i++) {
-                        for(j=startIndex; j<=endIndex; j++) {
-                            this.selectCell(allRows[i].cells[j]);
-                        }
-                    }
-                }
-                // Anchor row is below target row
-                else {
-                    // Select the cellblock from target cell to anchor cell
-                    // including the target cell and the anchor cell
-                    startIndex = Math.min(oAnchor.colKeyIndex, nTargetColKeyIndex);
-                    endIndex = Math.max(oAnchor.colKeyIndex, nTargetColKeyIndex);
-
-                    for(i=nTargetTrIndex; i<=oAnchor.trIndex; i++) {
-                        for(j=startIndex; j<=endIndex; j++) {
-                            this.selectCell(allRows[i].cells[j]);
-                        }
-                    }
-                }
-            }
-            // Invalid anchor
-            else {
-                // Set anchor
-                this._oAnchorCell = oTargetCell;
-
-                // Select target only
-                this.selectCell(oTargetCell);
-            }
-        }
-        // Only CTRL
-        else if(bCTRL) {
-
-            // Set anchor
-            this._oAnchorCell = oTargetCell;
-
-            // Toggle selection of target
-            if(this.isSelected(oTargetCell)) {
-                this.unselectCell(oTargetCell);
-            }
-            else {
-                this.selectCell(oTargetCell);
-            }
-
-        }
-        // Neither SHIFT nor CTRL
-        else {
-            this._handleSingleCellSelectionByMouse(oArgs);
-        }
-    }
-},
-
-/**
- * Determines selection behavior resulting from a key event when selection mode
- * is set to "cellblock".
- *
- * @method _handleCellBlockSelectionByKey
- * @param e {HTMLEvent} Event object.
- * @private
- */
-_handleCellBlockSelectionByKey : function(e) {
-    var nKey = Ev.getCharCode(e);
-    var bSHIFT = e.shiftKey;
-    if((nKey == 9) || !bSHIFT) {
-        this._handleSingleCellSelectionByKey(e);
-        return;
-    }
-
-    if((nKey > 36) && (nKey < 41)) {
-        // Validate trigger
-        var oTrigger = this._getSelectionTrigger();
-        // Arrow selection only works if last selected row is on current page
-        if(!oTrigger) {
-            return null;
-        }
-
-        Ev.stopEvent(e);
-
-        // Validate anchor
-        var oAnchor = this._getSelectionAnchor(oTrigger);
-
-        var i, startIndex, endIndex, elNew, elNewRow;
-        var allRows = this.getTbodyEl().rows;
-        var elThisRow = oTrigger.el.parentNode;
-
-        // Determine which direction we're going to
-
-        if(nKey == 40) { // arrow down
-            // Selecting away from anchor cell
-            if(oAnchor.recordIndex <= oTrigger.recordIndex) {
-                // Select the horiz block on the next row...
-                // ...making sure there is room below the trigger row
-                elNewRow = this.getNextTrEl(oTrigger.el);
-                if(elNewRow) {
-                    startIndex = oAnchor.colKeyIndex;
-                    endIndex = oTrigger.colKeyIndex;
-                    // ...going left
-                    if(startIndex > endIndex) {
-                        for(i=startIndex; i>=endIndex; i--) {
-                            elNew = elNewRow.cells[i];
-                            this.selectCell(elNew);
-                        }
-                    }
-                    // ... going right
-                    else {
-                        for(i=startIndex; i<=endIndex; i++) {
-                            elNew = elNewRow.cells[i];
-                            this.selectCell(elNew);
-                        }
-                    }
-                }
-            }
-            // Unselecting towards anchor cell
-            else {
-                startIndex = Math.min(oAnchor.colKeyIndex, oTrigger.colKeyIndex);
-                endIndex = Math.max(oAnchor.colKeyIndex, oTrigger.colKeyIndex);
-                // Unselect the horiz block on this row towards the next row
-                for(i=startIndex; i<=endIndex; i++) {
-                    this.unselectCell(elThisRow.cells[i]);
-                }
-            }
-        }
-        // Arrow up
-        else if(nKey == 38) {
-            // Selecting away from anchor cell
-            if(oAnchor.recordIndex >= oTrigger.recordIndex) {
-                // Select the horiz block on the previous row...
-                // ...making sure there is room
-                elNewRow = this.getPreviousTrEl(oTrigger.el);
-                if(elNewRow) {
-                    // Select in order from anchor to trigger...
-                    startIndex = oAnchor.colKeyIndex;
-                    endIndex = oTrigger.colKeyIndex;
-                    // ...going left
-                    if(startIndex > endIndex) {
-                        for(i=startIndex; i>=endIndex; i--) {
-                            elNew = elNewRow.cells[i];
-                            this.selectCell(elNew);
-                        }
-                    }
-                    // ... going right
-                    else {
-                        for(i=startIndex; i<=endIndex; i++) {
-                            elNew = elNewRow.cells[i];
-                            this.selectCell(elNew);
-                        }
-                    }
-                }
-            }
-            // Unselecting towards anchor cell
-            else {
-                startIndex = Math.min(oAnchor.colKeyIndex, oTrigger.colKeyIndex);
-                endIndex = Math.max(oAnchor.colKeyIndex, oTrigger.colKeyIndex);
-                // Unselect the horiz block on this row towards the previous row
-                for(i=startIndex; i<=endIndex; i++) {
-                    this.unselectCell(elThisRow.cells[i]);
-                }
-            }
-        }
-        // Arrow right
-        else if(nKey == 39) {
-            // Selecting away from anchor cell
-            if(oAnchor.colKeyIndex <= oTrigger.colKeyIndex) {
-                // Select the next vert block to the right...
-                // ...making sure there is room
-                if(oTrigger.colKeyIndex < elThisRow.cells.length-1) {
-                    // Select in order from anchor to trigger...
-                    startIndex = oAnchor.trIndex;
-                    endIndex = oTrigger.trIndex;
-                    // ...going up
-                    if(startIndex > endIndex) {
-                        for(i=startIndex; i>=endIndex; i--) {
-                            elNew = allRows[i].cells[oTrigger.colKeyIndex+1];
-                            this.selectCell(elNew);
-                        }
-                    }
-                    // ... going down
-                    else {
-                        for(i=startIndex; i<=endIndex; i++) {
-                            elNew = allRows[i].cells[oTrigger.colKeyIndex+1];
-                            this.selectCell(elNew);
-                        }
-                    }
-                }
-            }
-            // Unselecting towards anchor cell
-            else {
-                // Unselect the vert block on this column towards the right
-                startIndex = Math.min(oAnchor.trIndex, oTrigger.trIndex);
-                endIndex = Math.max(oAnchor.trIndex, oTrigger.trIndex);
-                for(i=startIndex; i<=endIndex; i++) {
-                    this.unselectCell(allRows[i].cells[oTrigger.colKeyIndex]);
-                }
-            }
-        }
-        // Arrow left
-        else if(nKey == 37) {
-            // Selecting away from anchor cell
-            if(oAnchor.colKeyIndex >= oTrigger.colKeyIndex) {
-                //Select the previous vert block to the left
-                if(oTrigger.colKeyIndex > 0) {
-                    // Select in order from anchor to trigger...
-                    startIndex = oAnchor.trIndex;
-                    endIndex = oTrigger.trIndex;
-                    // ...going up
-                    if(startIndex > endIndex) {
-                        for(i=startIndex; i>=endIndex; i--) {
-                            elNew = allRows[i].cells[oTrigger.colKeyIndex-1];
-                            this.selectCell(elNew);
-                        }
-                    }
-                    // ... going down
-                    else {
-                        for(i=startIndex; i<=endIndex; i++) {
-                            elNew = allRows[i].cells[oTrigger.colKeyIndex-1];
-                            this.selectCell(elNew);
-                        }
-                    }
-                }
-            }
-            // Unselecting towards anchor cell
-            else {
-                // Unselect the vert block on this column towards the left
-                startIndex = Math.min(oAnchor.trIndex, oTrigger.trIndex);
-                endIndex = Math.max(oAnchor.trIndex, oTrigger.trIndex);
-                for(i=startIndex; i<=endIndex; i++) {
-                    this.unselectCell(allRows[i].cells[oTrigger.colKeyIndex]);
-                }
-            }
-        }
-    }
-},
-
-/**
- * Determines selection behavior resulting from a mouse event when selection mode
- * is set to "cellrange".
- *
- * @method _handleCellRangeSelectionByMouse
- * @param oArgs.event {HTMLEvent} Event object.
- * @param oArgs.target {HTMLElement} Target element.
- * @private
- */
-_handleCellRangeSelectionByMouse : function(oArgs) {
-    var elTarget = oArgs.target;
-
-    // Validate target cell
-    var elTargetCell = this.getTdEl(elTarget);
-    if(elTargetCell) {
-        var e = oArgs.event;
-        var bSHIFT = e.shiftKey;
-        var bCTRL = e.ctrlKey || ((navigator.userAgent.toLowerCase().indexOf("mac") != -1) && e.metaKey);
-
-        var elTargetRow = this.getTrEl(elTargetCell);
-        var nTargetTrIndex = this.getTrIndex(elTargetRow);
-        var oTargetColumn = this.getColumn(elTargetCell);
-        var nTargetColKeyIndex = oTargetColumn.getKeyIndex();
-        var oTargetRecord = this.getRecord(elTargetRow);
-        var nTargetRecordIndex = this._oRecordSet.getRecordIndex(oTargetRecord);
-        var oTargetCell = {record:oTargetRecord, column:oTargetColumn};
-
-        var oAnchor = this._getSelectionAnchor();
-
-        var allRows = this.getTbodyEl().rows;
-        var currentRow, i, j;
-
-        // Both SHIFT and CTRL
-        if(bSHIFT && bCTRL) {
-
-            // Validate anchor
-            if(oAnchor) {
-                // Anchor is selected
-                if(this.isSelected(oAnchor.cell)) {
-                    // All cells are on the same row
-                    if(oAnchor.recordIndex === nTargetRecordIndex) {
-                        // Select all cells between anchor cell and target cell, including target cell
-                        if(oAnchor.colKeyIndex < nTargetColKeyIndex) {
-                            for(i=oAnchor.colKeyIndex+1; i<=nTargetColKeyIndex; i++) {
-                                this.selectCell(elTargetRow.cells[i]);
-                            }
-                        }
-                        // Select all cells between target cell and anchor cell, including target cell
-                        else if(nTargetColKeyIndex < oAnchor.colKeyIndex) {
-                            for(i=nTargetColKeyIndex; i<oAnchor.colKeyIndex; i++) {
-                                this.selectCell(elTargetRow.cells[i]);
-                            }
-                        }
-                    }
-                    // Anchor row is above target row
-                    else if(oAnchor.recordIndex < nTargetRecordIndex) {
-                        // Select all cells on anchor row from anchor cell to the end of the row
-                        for(i=oAnchor.colKeyIndex+1; i<elTargetRow.cells.length; i++) {
-                            this.selectCell(elTargetRow.cells[i]);
-                        }
-
-                        // Select all cells on all rows between anchor row and target row
-                        for(i=oAnchor.trIndex+1; i<nTargetTrIndex; i++) {
-                            for(j=0; j<allRows[i].cells.length; j++){
-                                this.selectCell(allRows[i].cells[j]);
-                            }
-                        }
-
-                        // Select all cells on target row from first cell to the target cell
-                        for(i=0; i<=nTargetColKeyIndex; i++) {
-                            this.selectCell(elTargetRow.cells[i]);
-                        }
-                    }
-                    // Anchor row is below target row
-                    else {
-                        // Select all cells on target row from target cell to the end of the row
-                        for(i=nTargetColKeyIndex; i<elTargetRow.cells.length; i++) {
-                            this.selectCell(elTargetRow.cells[i]);
-                        }
-
-                        // Select all cells on all rows between target row and anchor row
-                        for(i=nTargetTrIndex+1; i<oAnchor.trIndex; i++) {
-                            for(j=0; j<allRows[i].cells.length; j++){
-                                this.selectCell(allRows[i].cells[j]);
-                            }
-                        }
-
-                        // Select all cells on anchor row from first cell to the anchor cell
-                        for(i=0; i<oAnchor.colKeyIndex; i++) {
-                            this.selectCell(elTargetRow.cells[i]);
-                        }
-                    }
-                }
-                // Anchor cell is unselected
-                else {
-                    // All cells are on the same row
-                    if(oAnchor.recordIndex === nTargetRecordIndex) {
-                        // Unselect all cells between anchor cell and target cell
-                        if(oAnchor.colKeyIndex < nTargetColKeyIndex) {
-                            for(i=oAnchor.colKeyIndex+1; i<nTargetColKeyIndex; i++) {
-                                this.unselectCell(elTargetRow.cells[i]);
-                            }
-                        }
-                        // Select all cells between target cell and anchor cell
-                        else if(nTargetColKeyIndex < oAnchor.colKeyIndex) {
-                            for(i=nTargetColKeyIndex+1; i<oAnchor.colKeyIndex; i++) {
-                                this.unselectCell(elTargetRow.cells[i]);
-                            }
-                        }
-                    }
-                    // Anchor row is above target row
-                    if(oAnchor.recordIndex < nTargetRecordIndex) {
-                        // Unselect all cells from anchor cell to target cell
-                        for(i=oAnchor.trIndex; i<=nTargetTrIndex; i++) {
-                            currentRow = allRows[i];
-                            for(j=0; j<currentRow.cells.length; j++) {
-                                // This is the anchor row, only unselect cells after the anchor cell
-                                if(currentRow.sectionRowIndex === oAnchor.trIndex) {
-                                    if(j>oAnchor.colKeyIndex) {
-                                        this.unselectCell(currentRow.cells[j]);
-                                    }
-                                }
-                                // This is the target row, only unelect cells before the target cell
-                                else if(currentRow.sectionRowIndex === nTargetTrIndex) {
-                                    if(j<nTargetColKeyIndex) {
-                                        this.unselectCell(currentRow.cells[j]);
-                                    }
-                                }
-                                // Unselect all cells on this row
-                                else {
-                                    this.unselectCell(currentRow.cells[j]);
-                                }
-                            }
-                        }
-                    }
-                    // Anchor row is below target row
-                    else {
-                        // Unselect all cells from target cell to anchor cell
-                        for(i=nTargetTrIndex; i<=oAnchor.trIndex; i++) {
-                            currentRow = allRows[i];
-                            for(j=0; j<currentRow.cells.length; j++) {
-                                // This is the target row, only unselect cells after the target cell
-                                if(currentRow.sectionRowIndex == nTargetTrIndex) {
-                                    if(j>nTargetColKeyIndex) {
-                                        this.unselectCell(currentRow.cells[j]);
-                                    }
-                                }
-                                // This is the anchor row, only unselect cells before the anchor cell
-                                else if(currentRow.sectionRowIndex == oAnchor.trIndex) {
-                                    if(j<oAnchor.colKeyIndex) {
-                                        this.unselectCell(currentRow.cells[j]);
-                                    }
-                                }
-                                // Unselect all cells on this row
-                                else {
-                                    this.unselectCell(currentRow.cells[j]);
-                                }
-                            }
-                        }
-                    }
-
-                    // Select the target cell
-                    this.selectCell(elTargetCell);
-                }
-            }
-            // Invalid anchor
-            else {
-                // Set anchor
-                this._oAnchorCell = oTargetCell;
-
-                // Toggle selection of target
-                if(this.isSelected(oTargetCell)) {
-                    this.unselectCell(oTargetCell);
-                }
-                else {
-                    this.selectCell(oTargetCell);
-                }
-            }
-        }
-         // Only SHIFT
-        else if(bSHIFT) {
-
-            this.unselectAllCells();
-
-            // Validate anchor
-            if(oAnchor) {
-                // All cells are on the same row
-                if(oAnchor.recordIndex === nTargetRecordIndex) {
-                    // Select all cells between anchor cell and target cell,
-                    // including the anchor cell and target cell
-                    if(oAnchor.colKeyIndex < nTargetColKeyIndex) {
-                        for(i=oAnchor.colKeyIndex; i<=nTargetColKeyIndex; i++) {
-                            this.selectCell(elTargetRow.cells[i]);
-                        }
-                    }
-                    // Select all cells between target cell and anchor cell
-                    // including the target cell and anchor cell
-                    else if(nTargetColKeyIndex < oAnchor.colKeyIndex) {
-                        for(i=nTargetColKeyIndex; i<=oAnchor.colKeyIndex; i++) {
-                            this.selectCell(elTargetRow.cells[i]);
-                        }
-                    }
-                }
-                // Anchor row is above target row
-                else if(oAnchor.recordIndex < nTargetRecordIndex) {
-                    // Select all cells from anchor cell to target cell
-                    // including the anchor cell and target cell
-                    for(i=oAnchor.trIndex; i<=nTargetTrIndex; i++) {
-                        currentRow = allRows[i];
-                        for(j=0; j<currentRow.cells.length; j++) {
-                            // This is the anchor row, only select the anchor cell and after
-                            if(currentRow.sectionRowIndex == oAnchor.trIndex) {
-                                if(j>=oAnchor.colKeyIndex) {
-                                    this.selectCell(currentRow.cells[j]);
-                                }
-                            }
-                            // This is the target row, only select the target cell and before
-                            else if(currentRow.sectionRowIndex == nTargetTrIndex) {
-                                if(j<=nTargetColKeyIndex) {
-                                    this.selectCell(currentRow.cells[j]);
-                                }
-                            }
-                            // Select all cells on this row
-                            else {
-                                this.selectCell(currentRow.cells[j]);
-                            }
-                        }
-                    }
-                }
-                // Anchor row is below target row
-                else {
-                    // Select all cells from target cell to anchor cell,
-                    // including the target cell and anchor cell
-                    for(i=nTargetTrIndex; i<=oAnchor.trIndex; i++) {
-                        currentRow = allRows[i];
-                        for(j=0; j<currentRow.cells.length; j++) {
-                            // This is the target row, only select the target cell and after
-                            if(currentRow.sectionRowIndex == nTargetTrIndex) {
-                                if(j>=nTargetColKeyIndex) {
-                                    this.selectCell(currentRow.cells[j]);
-                                }
-                            }
-                            // This is the anchor row, only select the anchor cell and before
-                            else if(currentRow.sectionRowIndex == oAnchor.trIndex) {
-                                if(j<=oAnchor.colKeyIndex) {
-                                    this.selectCell(currentRow.cells[j]);
-                                }
-                            }
-                            // Select all cells on this row
-                            else {
-                                this.selectCell(currentRow.cells[j]);
-                            }
-                        }
-                    }
-                }
-            }
-            // Invalid anchor
-            else {
-                // Set anchor
-                this._oAnchorCell = oTargetCell;
-
-                // Select target only
-                this.selectCell(oTargetCell);
-            }
-
-
-        }
-        // Only CTRL
-        else if(bCTRL) {
-
-            // Set anchor
-            this._oAnchorCell = oTargetCell;
-
-            // Toggle selection of target
-            if(this.isSelected(oTargetCell)) {
-                this.unselectCell(oTargetCell);
-            }
-            else {
-                this.selectCell(oTargetCell);
-            }
-
-        }
-        // Neither SHIFT nor CTRL
-        else {
-            this._handleSingleCellSelectionByMouse(oArgs);
-        }
-    }
-},
-
-/**
- * Determines selection behavior resulting from a key event when selection mode
- * is set to "cellrange".
- *
- * @method _handleCellRangeSelectionByKey
- * @param e {HTMLEvent} Event object.
- * @private
- */
-_handleCellRangeSelectionByKey : function(e) {
-    var nKey = Ev.getCharCode(e);
-    var bSHIFT = e.shiftKey;
-    if((nKey == 9) || !bSHIFT) {
-        this._handleSingleCellSelectionByKey(e);
-        return;
-    }
-
-    if((nKey > 36) && (nKey < 41)) {
-        // Validate trigger
-        var oTrigger = this._getSelectionTrigger();
-        // Arrow selection only works if last selected row is on current page
-        if(!oTrigger) {
-            return null;
-        }
-
-        Ev.stopEvent(e);
-
-        // Validate anchor
-        var oAnchor = this._getSelectionAnchor(oTrigger);
-
-        var i, elNewRow, elNew;
-        var allRows = this.getTbodyEl().rows;
-        var elThisRow = oTrigger.el.parentNode;
-
-        // Arrow down
-        if(nKey == 40) {
-            elNewRow = this.getNextTrEl(oTrigger.el);
-
-            // Selecting away from anchor cell
-            if(oAnchor.recordIndex <= oTrigger.recordIndex) {
-                // Select all cells to the end of this row
-                for(i=oTrigger.colKeyIndex+1; i<elThisRow.cells.length; i++){
-                    elNew = elThisRow.cells[i];
-                    this.selectCell(elNew);
-                }
-
-                // Select some of the cells on the next row down
-                if(elNewRow) {
-                    for(i=0; i<=oTrigger.colKeyIndex; i++){
-                        elNew = elNewRow.cells[i];
-                        this.selectCell(elNew);
-                    }
-                }
-            }
-            // Unselecting towards anchor cell
-            else {
-                // Unselect all cells to the end of this row
-                for(i=oTrigger.colKeyIndex; i<elThisRow.cells.length; i++){
-                    this.unselectCell(elThisRow.cells[i]);
-                }
-
-                // Unselect some of the cells on the next row down
-                if(elNewRow) {
-                    for(i=0; i<oTrigger.colKeyIndex; i++){
-                        this.unselectCell(elNewRow.cells[i]);
-                    }
-                }
-            }
-        }
-        // Arrow up
-        else if(nKey == 38) {
-            elNewRow = this.getPreviousTrEl(oTrigger.el);
-
-            // Selecting away from anchor cell
-            if(oAnchor.recordIndex >= oTrigger.recordIndex) {
-                // Select all the cells to the beginning of this row
-                for(i=oTrigger.colKeyIndex-1; i>-1; i--){
-                    elNew = elThisRow.cells[i];
-                    this.selectCell(elNew);
-                }
-
-                // Select some of the cells from the end of the previous row
-                if(elNewRow) {
-                    for(i=elThisRow.cells.length-1; i>=oTrigger.colKeyIndex; i--){
-                        elNew = elNewRow.cells[i];
-                        this.selectCell(elNew);
-                    }
-                }
-            }
-            // Unselecting towards anchor cell
-            else {
-                // Unselect all the cells to the beginning of this row
-                for(i=oTrigger.colKeyIndex; i>-1; i--){
-                    this.unselectCell(elThisRow.cells[i]);
-                }
-
-                // Unselect some of the cells from the end of the previous row
-                if(elNewRow) {
-                    for(i=elThisRow.cells.length-1; i>oTrigger.colKeyIndex; i--){
-                        this.unselectCell(elNewRow.cells[i]);
-                    }
-                }
-            }
-        }
-        // Arrow right
-        else if(nKey == 39) {
-            elNewRow = this.getNextTrEl(oTrigger.el);
-
-            // Selecting away from anchor cell
-            if(oAnchor.recordIndex < oTrigger.recordIndex) {
-                // Select the next cell to the right
-                if(oTrigger.colKeyIndex < elThisRow.cells.length-1) {
-                    elNew = elThisRow.cells[oTrigger.colKeyIndex+1];
-                    this.selectCell(elNew);
-                }
-                // Select the first cell of the next row
-                else if(elNewRow) {
-                    elNew = elNewRow.cells[0];
-                    this.selectCell(elNew);
-                }
-            }
-            // Unselecting towards anchor cell
-            else if(oAnchor.recordIndex > oTrigger.recordIndex) {
-                this.unselectCell(elThisRow.cells[oTrigger.colKeyIndex]);
-
-                // Unselect this cell towards the right
-                if(oTrigger.colKeyIndex < elThisRow.cells.length-1) {
-                }
-                // Unselect this cells towards the first cell of the next row
-                else {
-                }
-            }
-            // Anchor is on this row
-            else {
-                // Selecting away from anchor
-                if(oAnchor.colKeyIndex <= oTrigger.colKeyIndex) {
-                    // Select the next cell to the right
-                    if(oTrigger.colKeyIndex < elThisRow.cells.length-1) {
-                        elNew = elThisRow.cells[oTrigger.colKeyIndex+1];
-                        this.selectCell(elNew);
-                    }
-                    // Select the first cell on the next row
-                    else if(oTrigger.trIndex < allRows.length-1){
-                        elNew = elNewRow.cells[0];
-                        this.selectCell(elNew);
-                    }
-                }
-                // Unselecting towards anchor
-                else {
-                    // Unselect this cell towards the right
-                    this.unselectCell(elThisRow.cells[oTrigger.colKeyIndex]);
-                }
-            }
-        }
-        // Arrow left
-        else if(nKey == 37) {
-            elNewRow = this.getPreviousTrEl(oTrigger.el);
-
-            // Unselecting towards the anchor
-            if(oAnchor.recordIndex < oTrigger.recordIndex) {
-                this.unselectCell(elThisRow.cells[oTrigger.colKeyIndex]);
-
-                // Unselect this cell towards the left
-                if(oTrigger.colKeyIndex > 0) {
-                }
-                // Unselect this cell towards the last cell of the previous row
-                else {
-                }
-            }
-            // Selecting towards the anchor
-            else if(oAnchor.recordIndex > oTrigger.recordIndex) {
-                // Select the next cell to the left
-                if(oTrigger.colKeyIndex > 0) {
-                    elNew = elThisRow.cells[oTrigger.colKeyIndex-1];
-                    this.selectCell(elNew);
-                }
-                // Select the last cell of the previous row
-                else if(oTrigger.trIndex > 0){
-                    elNew = elNewRow.cells[elNewRow.cells.length-1];
-                    this.selectCell(elNew);
-                }
-            }
-            // Anchor is on this row
-            else {
-                // Selecting away from anchor cell
-                if(oAnchor.colKeyIndex >= oTrigger.colKeyIndex) {
-                    // Select the next cell to the left
-                    if(oTrigger.colKeyIndex > 0) {
-                        elNew = elThisRow.cells[oTrigger.colKeyIndex-1];
-                        this.selectCell(elNew);
-                    }
-                    // Select the last cell of the previous row
-                    else if(oTrigger.trIndex > 0){
-                        elNew = elNewRow.cells[elNewRow.cells.length-1];
-                        this.selectCell(elNew);
-                    }
-                }
-                // Unselecting towards anchor cell
-                else {
-                    this.unselectCell(elThisRow.cells[oTrigger.colKeyIndex]);
-
-                    // Unselect this cell towards the left
-                    if(oTrigger.colKeyIndex > 0) {
-                    }
-                    // Unselect this cell towards the last cell of the previous row
-                    else {
-                    }
-                }
-            }
-        }
-    }
-},
-
-/**
- * Determines selection behavior resulting from a mouse event when selection mode
- * is set to "singlecell".
- *
- * @method _handleSingleCellSelectionByMouse
- * @param oArgs.event {HTMLEvent} Event object.
- * @param oArgs.target {HTMLElement} Target element.
- * @private
- */
-_handleSingleCellSelectionByMouse : function(oArgs) {
-    var elTarget = oArgs.target;
-
-    // Validate target cell
-    var elTargetCell = this.getTdEl(elTarget);
-    if(elTargetCell) {
-        var elTargetRow = this.getTrEl(elTargetCell);
-        var oTargetRecord = this.getRecord(elTargetRow);
-        var oTargetColumn = this.getColumn(elTargetCell);
-        var oTargetCell = {record:oTargetRecord, column:oTargetColumn};
-
-        // Set anchor
-        this._oAnchorCell = oTargetCell;
-
-        // Select only target
-        this.unselectAllCells();
-        this.selectCell(oTargetCell);
-    }
-},
-
-/**
- * Determines selection behavior resulting from a key event when selection mode
- * is set to "singlecell".
- *
- * @method _handleSingleCellSelectionByKey
- * @param e {HTMLEvent} Event object.
- * @private
- */
-_handleSingleCellSelectionByKey : function(e) {
-    var nKey = Ev.getCharCode(e);
-    if((nKey == 9) || ((nKey > 36) && (nKey < 41))) {
-        var bSHIFT = e.shiftKey;
-
-        // Validate trigger
-        var oTrigger = this._getSelectionTrigger();
-        // Arrow selection only works if last selected row is on current page
-        if(!oTrigger) {
-            return null;
-        }
-
-        // Determine the new cell to select
-        var elNew;
-        if(nKey == 40) { // Arrow down
-            elNew = this.getBelowTdEl(oTrigger.el);
-
-            // Validate new cell
-            if(elNew === null) {
-                //TODO: wrap around to first tr on current page
-
-                //TODO: wrap forward to first tr of next page
-
-                // Bottom selection is sticky
-                elNew = oTrigger.el;
-            }
-        }
-        else if(nKey == 38) { // Arrow up
-            elNew = this.getAboveTdEl(oTrigger.el);
-
-            // Validate new cell
-            if(elNew === null) {
-                //TODO: wrap around to last tr on current page
-
-                //TODO: wrap back to last tr of previous page
-
-                // Top selection is sticky
-                elNew = oTrigger.el;
-            }
-        }
-        else if((nKey == 39) || (!bSHIFT && (nKey == 9))) { // Arrow right or tab
-            elNew = this.getNextTdEl(oTrigger.el);
-
-            // Validate new cell
-            if(elNew === null) {
-                //TODO: wrap around to first td on current page
-
-                //TODO: wrap forward to first td of next page
-
-                // Top-left selection is sticky, and release TAB focus
-                //elNew = oTrigger.el;
-                return;
-            }
-        }
-        else if((nKey == 37) || (bSHIFT && (nKey == 9))) { // Arrow left or shift-tab
-            elNew = this.getPreviousTdEl(oTrigger.el);
-
-            // Validate new cell
-            if(elNew === null) {
-                //TODO: wrap around to last td on current page
-
-                //TODO: wrap back to last td of previous page
-
-                // Bottom-right selection is sticky, and release TAB focus
-                //elNew = oTrigger.el;
-                return;
-            }
-        }
-
-        Ev.stopEvent(e);
-        
-        // Unselect all cells
-        this.unselectAllCells();
-
-        // Select the new cell
-        this.selectCell(elNew);
-
-        // Set new anchor
-        this._oAnchorCell = {record:this.getRecord(elNew), column:this.getColumn(elNew)};
-    }
-},
-
-/**
- * Returns array of selected TR elements on the page.
- *
- * @method getSelectedTrEls
- * @return {HTMLElement[]} Array of selected TR elements.
- */
-getSelectedTrEls : function() {
-    return Dom.getElementsByClassName(DT.CLASS_SELECTED,"tr",this._elTbody);
-},
-
-/**
- * Sets given row to the selected state.
- *
- * @method selectRow
- * @param row {HTMLElement | String | YAHOO.widget.Record | Number} HTML element
- * reference or ID string, Record instance, or RecordSet position index.
- */
-selectRow : function(row) {
-    var oRecord, elRow;
-
-    if(row instanceof YAHOO.widget.Record) {
-        oRecord = this._oRecordSet.getRecord(row);
-        elRow = this.getTrEl(oRecord);
-    }
-    else if(lang.isNumber(row)) {
-        oRecord = this.getRecord(row);
-        elRow = this.getTrEl(oRecord);
-    }
-    else {
-        elRow = this.getTrEl(row);
-        oRecord = this.getRecord(elRow);
-    }
-
-    if(oRecord) {
-        // Update selection trackers
-        var tracker = this._aSelections || [];
-        var sRecordId = oRecord.getId();
-        var index = -1;
-
-        // Remove if already there:
-        // Use Array.indexOf if available...
-        /*if(tracker.indexOf && (tracker.indexOf(sRecordId) >  -1)) {
-            tracker.splice(tracker.indexOf(sRecordId),1);
-        }*/
-        if(tracker.indexOf) {
-            index = tracker.indexOf(sRecordId);
-            
-        }
-        // ...or do it the old-fashioned way
-        else {
-            for(var j=tracker.length-1; j>-1; j--) {
-                if(tracker[j] === sRecordId){
-                    index = j;
-                    break;
-                }
-            }
-        }
-        if(index > -1) {
-            tracker.splice(index,1);
-        }
-        
-        // Add to the end
-        tracker.push(sRecordId);
-        this._aSelections = tracker;
-
-        // Update trackers
-        if(!this._oAnchorRecord) {
-            this._oAnchorRecord = oRecord;
-        }
-
-        // Update UI
-        if(elRow) {
-            Dom.addClass(elRow, DT.CLASS_SELECTED);
-        }
-
-        this.fireEvent("rowSelectEvent", {record:oRecord, el:elRow});
-        YAHOO.log("Selected " + elRow, "info", this.toString());
-    }
-    else {
-        YAHOO.log("Could not select row " + row, "warn", this.toString());
-    }
-},
-
-/**
- * Sets given row to the unselected state.
- *
- * @method unselectRow
- * @param row {HTMLElement | String | YAHOO.widget.Record | Number} HTML element
- * reference or ID string, Record instance, or RecordSet position index.
- */
-unselectRow : function(row) {
-    var elRow = this.getTrEl(row);
-
-    var oRecord;
-    if(row instanceof YAHOO.widget.Record) {
-        oRecord = this._oRecordSet.getRecord(row);
-    }
-    else if(lang.isNumber(row)) {
-        oRecord = this.getRecord(row);
-    }
-    else {
-        oRecord = this.getRecord(elRow);
-    }
-
-    if(oRecord) {
-        // Update selection trackers
-        var tracker = this._aSelections || [];
-        var sRecordId = oRecord.getId();
-        var index = -1;
-
-        // Use Array.indexOf if available...
-        if(tracker.indexOf) {
-            index = tracker.indexOf(sRecordId);
-        }
-        // ...or do it the old-fashioned way
-        else {
-            for(var j=tracker.length-1; j>-1; j--) {
-                if(tracker[j] === sRecordId){
-                    index = j;
-                    break;
-                }
-            }
-        }
-        if(index > -1) {
-            // Update tracker
-            tracker.splice(index,1);
-            this._aSelections = tracker;
-
-            // Update the UI
-            Dom.removeClass(elRow, DT.CLASS_SELECTED);
-
-            this.fireEvent("rowUnselectEvent", {record:oRecord, el:elRow});
-            YAHOO.log("Unselected " + elRow, "info", this.toString());
-
-            return;
-        }
-    }
-    YAHOO.log("Could not unselect row " + row, "warn", this.toString());
-},
-
-/**
- * Clears out all row selections.
- *
- * @method unselectAllRows
- */
-unselectAllRows : function() {
-    // Remove all rows from tracker
-    var tracker = this._aSelections || [],
-        recId,
-        removed = [];
-    for(var j=tracker.length-1; j>-1; j--) {
-       if(lang.isString(tracker[j])){
-            recId = tracker.splice(j,1);
-            removed[removed.length] = this.getRecord(lang.isArray(recId) ? recId[0] : recId);
-        }
-    }
-
-    // Update tracker
-    this._aSelections = tracker;
-
-    // Update UI
-    this._unselectAllTrEls();
-
-    this.fireEvent("unselectAllRowsEvent", {records: removed});
-    YAHOO.log("Unselected all rows", "info", this.toString());
-},
-
-/**
- * Convenience method to remove the class YAHOO.widget.DataTable.CLASS_SELECTED
- * from all TD elements in the internal tracker.
- *
- * @method _unselectAllTdEls
- * @private
- */
-_unselectAllTdEls : function() {
-    var selectedCells = Dom.getElementsByClassName(DT.CLASS_SELECTED,"td",this._elTbody);
-    Dom.removeClass(selectedCells, DT.CLASS_SELECTED);
-},
-
-/**
- * Returns array of selected TD elements on the page.
- *
- * @method getSelectedTdEls
- * @return {HTMLElement[]} Array of selected TD elements.
- */
-getSelectedTdEls : function() {
-    return Dom.getElementsByClassName(DT.CLASS_SELECTED,"td",this._elTbody);
-},
-
-/**
- * Sets given cell to the selected state.
- *
- * @method selectCell
- * @param cell {HTMLElement | String} DOM element reference or ID string
- * to DataTable page element or RecordSet index.
- */
-selectCell : function(cell) {
-//TODO: accept {record} in selectCell()
-    var elCell = this.getTdEl(cell);
-
-    if(elCell) {
-        var oRecord = this.getRecord(elCell);
-        var sColumnKey = this.getColumn(elCell.cellIndex).getKey();
-
-        if(oRecord && sColumnKey) {
-            // Get Record ID
-            var tracker = this._aSelections || [];
-            var sRecordId = oRecord.getId();
-
-            // Remove if there
-            for(var j=tracker.length-1; j>-1; j--) {
-               if((tracker[j].recordId === sRecordId) && (tracker[j].columnKey === sColumnKey)){
-                    tracker.splice(j,1);
-                    break;
-                }
-            }
-
-            // Add to the end
-            tracker.push({recordId:sRecordId, columnKey:sColumnKey});
-
-            // Update trackers
-            this._aSelections = tracker;
-            if(!this._oAnchorCell) {
-                this._oAnchorCell = {record:oRecord, column:this.getColumn(sColumnKey)};
-            }
-
-            // Update the UI
-            Dom.addClass(elCell, DT.CLASS_SELECTED);
-
-            this.fireEvent("cellSelectEvent", {record:oRecord, column:this.getColumn(elCell.cellIndex), key: this.getColumn(elCell.cellIndex).getKey(), el:elCell});
-            YAHOO.log("Selected " + elCell, "info", this.toString());
-            return;
-        }
-    }
-    YAHOO.log("Could not select cell " + cell, "warn", this.toString());
-},
-
-/**
- * Sets given cell to the unselected state.
- *
- * @method unselectCell
- * @param cell {HTMLElement | String} DOM element reference or ID string
- * to DataTable page element or RecordSet index.
- */
-unselectCell : function(cell) {
-    var elCell = this.getTdEl(cell);
-
-    if(elCell) {
-        var oRecord = this.getRecord(elCell);
-        var sColumnKey = this.getColumn(elCell.cellIndex).getKey();
-
-        if(oRecord && sColumnKey) {
-            // Get Record ID
-            var tracker = this._aSelections || [];
-            var id = oRecord.getId();
-
-            // Is it selected?
-            for(var j=tracker.length-1; j>-1; j--) {
-                if((tracker[j].recordId === id) && (tracker[j].columnKey === sColumnKey)){
-                    // Remove from tracker
-                    tracker.splice(j,1);
-
-                    // Update tracker
-                    this._aSelections = tracker;
-
-                    // Update the UI
-                    Dom.removeClass(elCell, DT.CLASS_SELECTED);
-
-                    this.fireEvent("cellUnselectEvent", {record:oRecord, column: this.getColumn(elCell.cellIndex), key:this.getColumn(elCell.cellIndex).getKey(), el:elCell});
-                    YAHOO.log("Unselected " + elCell, "info", this.toString());
-                    return;
-                }
-            }
-        }
-    }
-    YAHOO.log("Could not unselect cell " + cell, "warn", this.toString());
-},
-
-/**
- * Clears out all cell selections.
- *
- * @method unselectAllCells
- */
-unselectAllCells : function() {
-    // Remove all cells from tracker
-    var tracker = this._aSelections || [];
-    for(var j=tracker.length-1; j>-1; j--) {
-       if(lang.isObject(tracker[j])){
-            tracker.splice(j,1);
-        }
-    }
-
-    // Update tracker
-    this._aSelections = tracker;
-
-    // Update UI
-    this._unselectAllTdEls();
-
-    //TODO: send data to unselectAllCellsEvent handler
-    this.fireEvent("unselectAllCellsEvent");
-    YAHOO.log("Unselected all cells", "info", this.toString());
-},
-
-/**
- * Returns true if given item is selected, false otherwise.
- *
- * @method isSelected
- * @param o {String | HTMLElement | YAHOO.widget.Record | Number
- * {record:YAHOO.widget.Record, column:YAHOO.widget.Column} } TR or TD element by
- * reference or ID string, a Record instance, a RecordSet position index,
- * or an object literal representation
- * of a cell.
- * @return {Boolean} True if item is selected.
- */
-isSelected : function(o) {
-    if(o && (o.ownerDocument == document)) {
-        return (Dom.hasClass(this.getTdEl(o),DT.CLASS_SELECTED) || Dom.hasClass(this.getTrEl(o),DT.CLASS_SELECTED));
-    }
-    else {
-        var oRecord, sRecordId, j;
-        var tracker = this._aSelections;
-        if(tracker && tracker.length > 0) {
-            // Looking for a Record?
-            if(o instanceof YAHOO.widget.Record) {
-                oRecord = o;
-            }
-            else if(lang.isNumber(o)) {
-                oRecord = this.getRecord(o);
-            }
-            if(oRecord) {
-                sRecordId = oRecord.getId();
-
-                // Is it there?
-                // Use Array.indexOf if available...
-                if(tracker.indexOf) {
-                    if(tracker.indexOf(sRecordId) >  -1) {
-                        return true;
-                    }
-                }
-                // ...or do it the old-fashioned way
-                else {
-                    for(j=tracker.length-1; j>-1; j--) {
-                       if(tracker[j] === sRecordId){
-                        return true;
-                       }
-                    }
-                }
-            }
-            // Looking for a cell
-            else if(o.record && o.column){
-                sRecordId = o.record.getId();
-                var sColumnKey = o.column.getKey();
-
-                for(j=tracker.length-1; j>-1; j--) {
-                    if((tracker[j].recordId === sRecordId) && (tracker[j].columnKey === sColumnKey)){
-                        return true;
-                    }
-                }
-            }
-        }
-    }
-    return false;
-},
-
-/**
- * Returns selected rows as an array of Record IDs.
- *
- * @method getSelectedRows
- * @return {String[]} Array of selected rows by Record ID.
- */
-getSelectedRows : function() {
-    var aSelectedRows = [];
-    var tracker = this._aSelections || [];
-    for(var j=0; j<tracker.length; j++) {
-       if(lang.isString(tracker[j])){
-            aSelectedRows.push(tracker[j]);
-        }
-    }
-    return aSelectedRows;
-},
-
-/**
- * Returns selected cells as an array of object literals:
- *     {recordId:sRecordId, columnKey:sColumnKey}.
- *
- * @method getSelectedCells
- * @return {Object[]} Array of selected cells by Record ID and Column ID.
- */
-getSelectedCells : function() {
-    var aSelectedCells = [];
-    var tracker = this._aSelections || [];
-    for(var j=0; j<tracker.length; j++) {
-       if(tracker[j] && lang.isObject(tracker[j])){
-            aSelectedCells.push(tracker[j]);
-        }
-    }
-    return aSelectedCells;
-},
-
-/**
- * Returns last selected Record ID.
- *
- * @method getLastSelectedRecord
- * @return {String} Record ID of last selected row.
- */
-getLastSelectedRecord : function() {
-    var tracker = this._aSelections;
-    if(tracker && tracker.length > 0) {
-        for(var i=tracker.length-1; i>-1; i--) {
-           if(lang.isString(tracker[i])){
-                return tracker[i];
-            }
-        }
-    }
-},
-
-/**
- * Returns last selected cell as an object literal:
- *     {recordId:sRecordId, columnKey:sColumnKey}.
- *
- * @method getLastSelectedCell
- * @return {Object} Object literal representation of a cell.
- */
-getLastSelectedCell : function() {
-    var tracker = this._aSelections;
-    if(tracker && tracker.length > 0) {
-        for(var i=tracker.length-1; i>-1; i--) {
-           if(tracker[i].recordId && tracker[i].columnKey){
-                return tracker[i];
-            }
-        }
-    }
-},
-
-/**
- * Assigns the class YAHOO.widget.DataTable.CLASS_HIGHLIGHTED to the given row.
- *
- * @method highlightRow
- * @param row {HTMLElement | String} DOM element reference or ID string.
- */
-highlightRow : function(row) {
-    var elRow = this.getTrEl(row);
-
-    if(elRow) {
-        // Make sure previous row is unhighlighted
-/*        if(this._sLastHighlightedTrElId) {
-            Dom.removeClass(this._sLastHighlightedTrElId,DT.CLASS_HIGHLIGHTED);
-        }*/
-        var oRecord = this.getRecord(elRow);
-        Dom.addClass(elRow,DT.CLASS_HIGHLIGHTED);
-        //this._sLastHighlightedTrElId = elRow.id;
-        this.fireEvent("rowHighlightEvent", {record:oRecord, el:elRow});
-        YAHOO.log("Highlighted " + elRow, "info", this.toString());
-        return;
-    }
-    YAHOO.log("Could not highlight row " + row, "warn", this.toString());
-},
-
-/**
- * Removes the class YAHOO.widget.DataTable.CLASS_HIGHLIGHTED from the given row.
- *
- * @method unhighlightRow
- * @param row {HTMLElement | String} DOM element reference or ID string.
- */
-unhighlightRow : function(row) {
-    var elRow = this.getTrEl(row);
-
-    if(elRow) {
-        var oRecord = this.getRecord(elRow);
-        Dom.removeClass(elRow,DT.CLASS_HIGHLIGHTED);
-        this.fireEvent("rowUnhighlightEvent", {record:oRecord, el:elRow});
-        YAHOO.log("Unhighlighted " + elRow, "info", this.toString());
-        return;
-    }
-    YAHOO.log("Could not unhighlight row " + row, "warn", this.toString());
-},
-
-/**
- * Assigns the class YAHOO.widget.DataTable.CLASS_HIGHLIGHTED to the given cell.
- *
- * @method highlightCell
- * @param cell {HTMLElement | String} DOM element reference or ID string.
- */
-highlightCell : function(cell) {
-    var elCell = this.getTdEl(cell);
-
-    if(elCell) {
-        // Make sure previous cell is unhighlighted
-        if(this._elLastHighlightedTd) {
-            this.unhighlightCell(this._elLastHighlightedTd);
-        }
-
-        var oRecord = this.getRecord(elCell);
-        var sColumnKey = this.getColumn(elCell.cellIndex).getKey();
-        Dom.addClass(elCell,DT.CLASS_HIGHLIGHTED);
-        this._elLastHighlightedTd = elCell;
-        this.fireEvent("cellHighlightEvent", {record:oRecord, column:this.getColumn(elCell.cellIndex), key:this.getColumn(elCell.cellIndex).getKey(), el:elCell});
-        YAHOO.log("Highlighted " + elCell, "info", this.toString());
-        return;
-    }
-    YAHOO.log("Could not highlight cell " + cell, "warn", this.toString());
-},
-
-/**
- * Removes the class YAHOO.widget.DataTable.CLASS_HIGHLIGHTED from the given cell.
- *
- * @method unhighlightCell
- * @param cell {HTMLElement | String} DOM element reference or ID string.
- */
-unhighlightCell : function(cell) {
-    var elCell = this.getTdEl(cell);
-
-    if(elCell) {
-        var oRecord = this.getRecord(elCell);
-        Dom.removeClass(elCell,DT.CLASS_HIGHLIGHTED);
-        this._elLastHighlightedTd = null;
-        this.fireEvent("cellUnhighlightEvent", {record:oRecord, column:this.getColumn(elCell.cellIndex), key:this.getColumn(elCell.cellIndex).getKey(), el:elCell});
-        YAHOO.log("Unhighlighted " + elCell, "info", this.toString());
-        return;
-    }
-    YAHOO.log("Could not unhighlight cell " + cell, "warn", this.toString());
-},
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-// INLINE EDITING
-
-/**
- * Returns current CellEditor instance, or null.
- * @method getCellEditor
- * @return {YAHOO.widget.CellEditor} CellEditor instance.
- */
-getCellEditor : function() {
-    return this._oCellEditor;
-},
-
-
-/**
- * Activates and shows CellEditor instance for the given cell while deactivating and
- * canceling previous CellEditor. It is baked into DataTable that only one CellEditor
- * can be active at any given time. 
- *
- * @method showCellEditor
- * @param elCell {HTMLElement | String} Cell to edit.
- */
-showCellEditor : function(elCell, oRecord, oColumn) {
-    // Get a particular CellEditor
-    elCell = this.getTdEl(elCell);
-    if(elCell) {
-        oColumn = this.getColumn(elCell);
-        if(oColumn && oColumn.editor) {
-            var oCellEditor = this._oCellEditor;
-            // Clean up active CellEditor
-            if(oCellEditor) {
-                if(this._oCellEditor.cancel) {
-                    this._oCellEditor.cancel();
-                }
-                else if(oCellEditor.isActive) {
-                    this.cancelCellEditor();
-                }
-            }
-            
-            if(oColumn.editor instanceof YAHOO.widget.BaseCellEditor) {
-                // Get CellEditor
-                oCellEditor = oColumn.editor;
-                var ok = oCellEditor.attach(this, elCell);
-                if(ok) {
-                    oCellEditor.move();
-                    ok = this.doBeforeShowCellEditor(oCellEditor);
-                    if(ok) {
-                        oCellEditor.show();
-                        this._oCellEditor = oCellEditor;
-                    }
-                }
-            }
-            // Backward compatibility
-            else {
-                    if(!oRecord || !(oRecord instanceof YAHOO.widget.Record)) {
-                        oRecord = this.getRecord(elCell);
-                    }
-                    if(!oColumn || !(oColumn instanceof YAHOO.widget.Column)) {
-                        oColumn = this.getColumn(elCell);
-                    }
-                    if(oRecord && oColumn) {
-                        if(!this._oCellEditor || this._oCellEditor.container) {
-                            this._initCellEditorEl();
-                        }
-                        
-                        // Update Editor values
-                        oCellEditor = this._oCellEditor;
-                        oCellEditor.cell = elCell;
-                        oCellEditor.record = oRecord;
-                        oCellEditor.column = oColumn;
-                        oCellEditor.validator = (oColumn.editorOptions &&
-                                lang.isFunction(oColumn.editorOptions.validator)) ?
-                                oColumn.editorOptions.validator : null;
-                        oCellEditor.value = oRecord.getData(oColumn.key);
-                        oCellEditor.defaultValue = null;
-            
-                        // Move Editor
-                        var elContainer = oCellEditor.container;
-                        var x = Dom.getX(elCell);
-                        var y = Dom.getY(elCell);
-            
-                        // SF doesn't get xy for cells in scrolling table
-                        // when tbody display is set to block
-                        if(isNaN(x) || isNaN(y)) {
-                            x = elCell.offsetLeft + // cell pos relative to table
-                                    Dom.getX(this._elTbody.parentNode) - // plus table pos relative to document
-                                    this._elTbody.scrollLeft; // minus tbody scroll
-                            y = elCell.offsetTop + // cell pos relative to table
-                                    Dom.getY(this._elTbody.parentNode) - // plus table pos relative to document
-                                    this._elTbody.scrollTop + // minus tbody scroll
-                                    this._elThead.offsetHeight; // account for fixed THEAD cells
-                        }
-            
-                        elContainer.style.left = x + "px";
-                        elContainer.style.top = y + "px";
-            
-                        // Hook to customize the UI
-                        this.doBeforeShowCellEditor(this._oCellEditor);
-            
-                        //TODO: This is temporarily up here due so elements can be focused
-                        // Show Editor
-                        elContainer.style.display = "";
-            
-                        // Handle ESC key
-                        Ev.addListener(elContainer, "keydown", function(e, oSelf) {
-                            // ESC hides Cell Editor
-                            if((e.keyCode == 27)) {
-                                oSelf.cancelCellEditor();
-                                oSelf.focusTbodyEl();
-                            }
-                            else {
-                                oSelf.fireEvent("editorKeydownEvent", {editor:oSelf._oCellEditor, event:e});
-                            }
-                        }, this);
-            
-                        // Render Editor markup
-                        var fnEditor;
-                        if(lang.isString(oColumn.editor)) {
-                            switch(oColumn.editor) {
-                                case "checkbox":
-                                    fnEditor = DT.editCheckbox;
-                                    break;
-                                case "date":
-                                    fnEditor = DT.editDate;
-                                    break;
-                                case "dropdown":
-                                    fnEditor = DT.editDropdown;
-                                    break;
-                                case "radio":
-                                    fnEditor = DT.editRadio;
-                                    break;
-                                case "textarea":
-                                    fnEditor = DT.editTextarea;
-                                    break;
-                                case "textbox":
-                                    fnEditor = DT.editTextbox;
-                                    break;
-                                default:
-                                    fnEditor = null;
-                            }
-                        }
-                        else if(lang.isFunction(oColumn.editor)) {
-                            fnEditor = oColumn.editor;
-                        }
-            
-                        if(fnEditor) {
-                            // Create DOM input elements
-                            fnEditor(this._oCellEditor, this);
-            
-                            // Show Save/Cancel buttons
-                            if(!oColumn.editorOptions || !oColumn.editorOptions.disableBtns) {
-                                this.showCellEditorBtns(elContainer);
-                            }
-            
-                            oCellEditor.isActive = true;
-            
-                            //TODO: verify which args to pass
-                            this.fireEvent("editorShowEvent", {editor:oCellEditor});
-                            YAHOO.log("Cell Editor shown for " + elCell, "info", this.toString());
-                            return;
-                        }
-                    }
-
-
-
-            
-            }
-        }
-    }
-},
-
-/**
- * Backward compatibility.
- *
- * @method _initCellEditorEl
- * @private
- * @deprecated 
- */
-_initCellEditorEl : function() {
-    // Attach Cell Editor container element as first child of body
-    var elCellEditor = document.createElement("div");
-    elCellEditor.id = this._sId + "-celleditor";
-    elCellEditor.style.display = "none";
-    elCellEditor.tabIndex = 0;
-    Dom.addClass(elCellEditor, DT.CLASS_EDITOR);
-    var elFirstChild = Dom.getFirstChild(document.body);
-    if(elFirstChild) {
-        elCellEditor = Dom.insertBefore(elCellEditor, elFirstChild);
-    }
-    else {
-        elCellEditor = document.body.appendChild(elCellEditor);
-    }
-    
-    // Internal tracker of Cell Editor values
-    var oCellEditor = {};
-    oCellEditor.container = elCellEditor;
-    oCellEditor.value = null;
-    oCellEditor.isActive = false;
-    this._oCellEditor = oCellEditor;
-},
-
-/**
- * Overridable abstract method to customize CellEditor before showing.
- *
- * @method doBeforeShowCellEditor
- * @param oCellEditor {YAHOO.widget.CellEditor} The CellEditor instance.
- * @return {Boolean} Return true to continue showing CellEditor.
- */
-doBeforeShowCellEditor : function(oCellEditor) {
-    return true;
-},
-
-/**
- * Saves active CellEditor input to Record and upates DOM UI.
- *
- * @method saveCellEditor
- */
-saveCellEditor : function() {
-    if(this._oCellEditor) {
-        if(this._oCellEditor.save) {
-            this._oCellEditor.save();
-        }
-        // Backward compatibility
-        else if(this._oCellEditor.isActive) {
-            var newData = this._oCellEditor.value;
-            // Copy the data to pass to the event
-            //var oldData = YAHOO.widget.DataTable._cloneObject(this._oCellEditor.record.getData(this._oCellEditor.column.key));
-            var oldData = this._oCellEditor.record.getData(this._oCellEditor.column.key);
-    
-            // Validate input data
-            if(this._oCellEditor.validator) {
-                newData = this._oCellEditor.value = this._oCellEditor.validator.call(this, newData, oldData, this._oCellEditor);
-                if(newData === null ) {
-                    this.resetCellEditor();
-                    this.fireEvent("editorRevertEvent",
-                            {editor:this._oCellEditor, oldData:oldData, newData:newData});
-                    YAHOO.log("Could not save Cell Editor input due to invalid data " +
-                            lang.dump(newData), "warn", this.toString());
-                    return;
-                }
-            }
-            // Update the Record
-            this._oRecordSet.updateRecordValue(this._oCellEditor.record, this._oCellEditor.column.key, this._oCellEditor.value);
-            // Update the UI
-            this.formatCell(this._oCellEditor.cell.firstChild);
-            
-            // Bug fix 1764044
-            this._oChainRender.add({
-                method: function() {
-                    this.validateColumnWidths();
-                },
-                scope: this
-            });
-            this._oChainRender.run();
-            // Clear out the Cell Editor
-            this.resetCellEditor();
-    
-            this.fireEvent("editorSaveEvent",
-                    {editor:this._oCellEditor, oldData:oldData, newData:newData});
-            YAHOO.log("Cell Editor input saved", "info", this.toString());
-        }
-    }   
-},
-
-/**
- * Cancels active CellEditor.
- *
- * @method cancelCellEditor
- */
-cancelCellEditor : function() {
-    if(this._oCellEditor) {
-        if(this._oCellEditor.cancel) {
-            this._oCellEditor.cancel();
-        }
-        // Backward compatibility
-        else if(this._oCellEditor.isActive) {
-            this.resetCellEditor();
-            //TODO: preserve values for the event?
-            this.fireEvent("editorCancelEvent", {editor:this._oCellEditor});
-            YAHOO.log("Cell Editor input canceled", "info", this.toString());
-        }
-
-        YAHOO.log("CellEditor input canceled", "info", this.toString());
-    }
-},
-
-/**
- * Destroys active CellEditor instance and UI.
- *
- * @method destroyCellEditor
- */
-destroyCellEditor : function() {
-    if(this._oCellEditor) {
-        this._oCellEditor.destroy();
-        this._oCellEditor = null;
-    }   
-},
-
-/**
- * Passes through showEvent of the active CellEditor.
- *
- * @method _onEditorShowEvent
- * @param oArgs {Object}  Custom Event args.
- * @private 
- */
-_onEditorShowEvent : function(oArgs) {
-    this.fireEvent("editorShowEvent", oArgs);
-},
-
-/**
- * Passes through keydownEvent of the active CellEditor.
- * @param oArgs {Object}  Custom Event args. 
- *
- * @method _onEditorKeydownEvent
- * @private 
- */
-_onEditorKeydownEvent : function(oArgs) {
-    this.fireEvent("editorKeydownEvent", oArgs);
-},
-
-/**
- * Passes through revertEvent of the active CellEditor.
- *
- * @method _onEditorRevertEvent
- * @param oArgs {Object}  Custom Event args. 
- * @private  
- */
-_onEditorRevertEvent : function(oArgs) {
-    this.fireEvent("editorRevertEvent", oArgs);
-},
-
-/**
- * Passes through saveEvent of the active CellEditor.
- *
- * @method _onEditorSaveEvent
- * @param oArgs {Object}  Custom Event args.  
- * @private 
- */
-_onEditorSaveEvent : function(oArgs) {
-    this.fireEvent("editorSaveEvent", oArgs);
-},
-
-/**
- * Passes through cancelEvent of the active CellEditor.
- *
- * @method _onEditorCancelEvent
- * @param oArgs {Object}  Custom Event args.
- * @private   
- */
-_onEditorCancelEvent : function(oArgs) {
-    this.fireEvent("editorCancelEvent", oArgs);
-},
-
-/**
- * Passes through blurEvent of the active CellEditor.
- *
- * @method _onEditorBlurEvent
- * @param oArgs {Object}  Custom Event args. 
- * @private  
- */
-_onEditorBlurEvent : function(oArgs) {
-    this.fireEvent("editorBlurEvent", oArgs);
-},
-
-/**
- * Passes through blockEvent of the active CellEditor.
- *
- * @method _onEditorBlockEvent
- * @param oArgs {Object}  Custom Event args. 
- * @private  
- */
-_onEditorBlockEvent : function(oArgs) {
-    this.fireEvent("editorBlockEvent", oArgs);
-},
-
-/**
- * Passes through unblockEvent of the active CellEditor.
- *
- * @method _onEditorUnblockEvent
- * @param oArgs {Object}  Custom Event args. 
- * @private  
- */
-_onEditorUnblockEvent : function(oArgs) {
-    this.fireEvent("editorUnblockEvent", oArgs);
-},
-
-/**
- * Public handler of the editorBlurEvent. By default, saves on blur if
- * disableBtns is true, otherwise cancels on blur. 
- *
- * @method onEditorBlurEvent
- * @param oArgs {Object}  Custom Event args.  
- */
-onEditorBlurEvent : function(oArgs) {
-    if(oArgs.editor.disableBtns) {
-        // Save on blur
-        if(oArgs.editor.save) { // Backward incompatible
-            oArgs.editor.save();
-        }
-    }      
-    else if(oArgs.editor.cancel) { // Backward incompatible
-        // Cancel on blur
-        oArgs.editor.cancel();
-    }      
-},
-
-/**
- * Public handler of the editorBlockEvent. By default, disables DataTable UI.
- *
- * @method onEditorBlockEvent
- * @param oArgs {Object}  Custom Event args.  
- */
-onEditorBlockEvent : function(oArgs) {
-    this.disable();
-},
-
-/**
- * Public handler of the editorUnblockEvent. By default, undisables DataTable UI.
- *
- * @method onEditorUnblockEvent
- * @param oArgs {Object}  Custom Event args.  
- */
-onEditorUnblockEvent : function(oArgs) {
-    this.undisable();
-},
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-// ABSTRACT METHODS
-
-/**
- * Overridable method gives implementers a hook to access data before
- * it gets added to RecordSet and rendered to the TBODY.
- *
- * @method doBeforeLoadData
- * @param sRequest {String} Original request.
- * @param oResponse {Object} Response object.
- * @param oPayload {MIXED} additional arguments
- * @return {Boolean} Return true to continue loading data into RecordSet and
- * updating DataTable with new Records, false to cancel.
- */
-doBeforeLoadData : function(sRequest, oResponse, oPayload) {
-    return true;
-},
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-/////////////////////////////////////////////////////////////////////////////
-//
-// Public Custom Event Handlers
-//
-/////////////////////////////////////////////////////////////////////////////
-
-/**
- * Overridable custom event handler to sort Column.
- *
- * @method onEventSortColumn
- * @param oArgs.event {HTMLEvent} Event object.
- * @param oArgs.target {HTMLElement} Target element.
- */
-onEventSortColumn : function(oArgs) {
-//TODO: support form elements in sortable columns
-    var evt = oArgs.event;
-    var target = oArgs.target;
-
-    var el = this.getThEl(target) || this.getTdEl(target);
-    if(el) {
-        var oColumn = this.getColumn(el);
-        if(oColumn.sortable) {
-            Ev.stopEvent(evt);
-            this.sortColumn(oColumn);
-        }
-    }
-    else {
-        YAHOO.log("Could not find Column for " + target, "warn", this.toString());
-    }
-},
-
-/**
- * Overridable custom event handler to select Column.
- *
- * @method onEventSelectColumn
- * @param oArgs.event {HTMLEvent} Event object.
- * @param oArgs.target {HTMLElement} Target element.
- */
-onEventSelectColumn : function(oArgs) {
-    this.selectColumn(oArgs.target);
-},
-
-/**
- * Overridable custom event handler to highlight Column. Accounts for spurious
- * caused-by-child events. 
- *
- * @method onEventHighlightColumn
- * @param oArgs.event {HTMLEvent} Event object.
- * @param oArgs.target {HTMLElement} Target element.
- */
-onEventHighlightColumn : function(oArgs) {
-    //TODO: filter for all spurious events at a lower level
-    if(!Dom.isAncestor(oArgs.target,Ev.getRelatedTarget(oArgs.event))) {
-        this.highlightColumn(oArgs.target);
-    }
-},
-
-/**
- * Overridable custom event handler to unhighlight Column. Accounts for spurious
- * caused-by-child events. 
- *
- * @method onEventUnhighlightColumn
- * @param oArgs.event {HTMLEvent} Event object.
- * @param oArgs.target {HTMLElement} Target element.
- */
-onEventUnhighlightColumn : function(oArgs) {
-    //TODO: filter for all spurious events at a lower level
-    if(!Dom.isAncestor(oArgs.target,Ev.getRelatedTarget(oArgs.event))) {
-        this.unhighlightColumn(oArgs.target);
-    }
-},
-
-/**
- * Overridable custom event handler to manage selection according to desktop paradigm.
- *
- * @method onEventSelectRow
- * @param oArgs.event {HTMLEvent} Event object.
- * @param oArgs.target {HTMLElement} Target element.
- */
-onEventSelectRow : function(oArgs) {
-    var sMode = this.get("selectionMode");
-    if(sMode == "single") {
-        this._handleSingleSelectionByMouse(oArgs);
-    }
-    else {
-        this._handleStandardSelectionByMouse(oArgs);
-    }
-},
-
-/**
- * Overridable custom event handler to select cell.
- *
- * @method onEventSelectCell
- * @param oArgs.event {HTMLEvent} Event object.
- * @param oArgs.target {HTMLElement} Target element.
- */
-onEventSelectCell : function(oArgs) {
-    var sMode = this.get("selectionMode");
-    if(sMode == "cellblock") {
-        this._handleCellBlockSelectionByMouse(oArgs);
-    }
-    else if(sMode == "cellrange") {
-        this._handleCellRangeSelectionByMouse(oArgs);
-    }
-    else {
-        this._handleSingleCellSelectionByMouse(oArgs);
-    }
-},
-
-/**
- * Overridable custom event handler to highlight row. Accounts for spurious
- * caused-by-child events. 
- *
- * @method onEventHighlightRow
- * @param oArgs.event {HTMLEvent} Event object.
- * @param oArgs.target {HTMLElement} Target element.
- */
-onEventHighlightRow : function(oArgs) {
-    //TODO: filter for all spurious events at a lower level
-    if(!Dom.isAncestor(oArgs.target,Ev.getRelatedTarget(oArgs.event))) {
-        this.highlightRow(oArgs.target);
-    }
-},
-
-/**
- * Overridable custom event handler to unhighlight row. Accounts for spurious
- * caused-by-child events. 
- *
- * @method onEventUnhighlightRow
- * @param oArgs.event {HTMLEvent} Event object.
- * @param oArgs.target {HTMLElement} Target element.
- */
-onEventUnhighlightRow : function(oArgs) {
-    //TODO: filter for all spurious events at a lower level
-    if(!Dom.isAncestor(oArgs.target,Ev.getRelatedTarget(oArgs.event))) {
-        this.unhighlightRow(oArgs.target);
-    }
-},
-
-/**
- * Overridable custom event handler to highlight cell. Accounts for spurious
- * caused-by-child events. 
- *
- * @method onEventHighlightCell
- * @param oArgs.event {HTMLEvent} Event object.
- * @param oArgs.target {HTMLElement} Target element.
- */
-onEventHighlightCell : function(oArgs) {
-    //TODO: filter for all spurious events at a lower level
-    if(!Dom.isAncestor(oArgs.target,Ev.getRelatedTarget(oArgs.event))) {
-        this.highlightCell(oArgs.target);
-    }
-},
-
-/**
- * Overridable custom event handler to unhighlight cell. Accounts for spurious
- * caused-by-child events. 
- *
- * @method onEventUnhighlightCell
- * @param oArgs.event {HTMLEvent} Event object.
- * @param oArgs.target {HTMLElement} Target element.
- */
-onEventUnhighlightCell : function(oArgs) {
-    //TODO: filter for all spurious events at a lower level
-    if(!Dom.isAncestor(oArgs.target,Ev.getRelatedTarget(oArgs.event))) {
-        this.unhighlightCell(oArgs.target);
-    }
-},
-
-/**
- * Overridable custom event handler to format cell.
- *
- * @method onEventFormatCell
- * @param oArgs.event {HTMLEvent} Event object.
- * @param oArgs.target {HTMLElement} Target element.
- */
-onEventFormatCell : function(oArgs) {
-    var target = oArgs.target;
-
-    var elCell = this.getTdEl(target);
-    if(elCell) {
-        var oColumn = this.getColumn(elCell.cellIndex);
-        this.formatCell(elCell.firstChild, this.getRecord(elCell), oColumn);
-    }
-    else {
-        YAHOO.log("Could not format cell " + target, "warn", this.toString());
-    }
-},
-
-/**
- * Overridable custom event handler to edit cell.
- *
- * @method onEventShowCellEditor
- * @param oArgs.event {HTMLEvent} Event object.
- * @param oArgs.target {HTMLElement} Target element.
- */
-onEventShowCellEditor : function(oArgs) {
-    this.showCellEditor(oArgs.target);
-},
-
-/**
- * Overridable custom event handler to save active CellEditor input.
- *
- * @method onEventSaveCellEditor
- */
-onEventSaveCellEditor : function(oArgs) {
-    if(this._oCellEditor) {
-        if(this._oCellEditor.save) {
-            this._oCellEditor.save();
-        }
-        // Backward compatibility
-        else {
-            this.saveCellEditor();
-        }
-    }
-},
-
-/**
- * Overridable custom event handler to cancel active CellEditor.
- *
- * @method onEventCancelCellEditor
- */
-onEventCancelCellEditor : function(oArgs) {
-    if(this._oCellEditor) {
-        if(this._oCellEditor.cancel) {
-            this._oCellEditor.cancel();
-        }
-        // Backward compatibility
-        else {
-            this.cancelCellEditor();
-        }
-    }
-},
-
-/**
- * Callback function receives data from DataSource and populates an entire
- * DataTable with Records and TR elements, clearing previous Records, if any.
- *
- * @method onDataReturnInitializeTable
- * @param sRequest {String} Original request.
- * @param oResponse {Object} Response object.
- * @param oPayload {MIXED} (optional) Additional argument(s)
- */
-onDataReturnInitializeTable : function(sRequest, oResponse, oPayload) {
-    if((this instanceof DT) && this._sId) {
-        this.initializeTable();
-    
-        this.onDataReturnSetRows(sRequest,oResponse,oPayload);
-    }
-},
-
-/**
- * Callback function receives reponse from DataSource, replaces all existing
- * Records in  RecordSet, updates TR elements with new data, and updates state
- * UI for pagination and sorting from payload data, if necessary. 
- *  
- * @method onDataReturnReplaceRows
- * @param oRequest {MIXED} Original generated request.
- * @param oResponse {Object} Response object.
- * @param oPayload {MIXED} (optional) Additional argument(s)
- */
-onDataReturnReplaceRows : function(oRequest, oResponse, oPayload) {
-    if((this instanceof DT) && this._sId) {
-        this.fireEvent("dataReturnEvent", {request:oRequest,response:oResponse,payload:oPayload});
-    
-        // Pass data through abstract method for any transformations
-        var ok    = this.doBeforeLoadData(oRequest, oResponse, oPayload),
-            pag   = this.get('paginator'),
-            index = 0;
-    
-        // Data ok to set
-        if(ok && oResponse && !oResponse.error && lang.isArray(oResponse.results)) {
-            // Update Records
-            this._oRecordSet.reset();
-    
-            if (this.get('dynamicData')) {
-                if (oPayload && oPayload.pagination &&
-                    lang.isNumber(oPayload.pagination.recordOffset)) {
-                    index = oPayload.pagination.recordOffset;
-                } else if (pag) {
-                    index = pag.getStartIndex();
-                }
-            }
-    
-            this._oRecordSet.setRecords(oResponse.results, index | 0);
-            
-            // Update state
-            this._handleDataReturnPayload(oRequest, oResponse, oPayload);
-            
-            // Update UI
-            this.render();    
-        }
-        // Error
-        else if(ok && oResponse.error) {
-            this.showTableMessage(this.get("MSG_ERROR"), DT.CLASS_ERROR);
-        }
-    }
-},
-
-/**
- * Callback function receives data from DataSource and appends to an existing
- * DataTable new Records and, if applicable, creates or updates
- * corresponding TR elements.
- *
- * @method onDataReturnAppendRows
- * @param sRequest {String} Original request.
- * @param oResponse {Object} Response object.
- * @param oPayload {MIXED} (optional) Additional argument(s)
- */
-onDataReturnAppendRows : function(sRequest, oResponse, oPayload) {
-    if((this instanceof DT) && this._sId) {
-        this.fireEvent("dataReturnEvent", {request:sRequest,response:oResponse,payload:oPayload});
-    
-        // Pass data through abstract method for any transformations
-        var ok = this.doBeforeLoadData(sRequest, oResponse, oPayload);
-    
-        // Data ok to append
-        if(ok && oResponse && !oResponse.error && lang.isArray(oResponse.results)) {        
-            // Append rows
-            this.addRows(oResponse.results);
-    
-            // Update state
-            this._handleDataReturnPayload(sRequest, oResponse, oPayload);
-        }
-        // Error
-        else if(ok && oResponse.error) {
-            this.showTableMessage(this.get("MSG_ERROR"), DT.CLASS_ERROR);
-        }
-    }
-},
-
-/**
- * Callback function receives data from DataSource and inserts new records
- * starting at the index specified in oPayload.insertIndex. The value for
- * oPayload.insertIndex can be populated when sending the request to the DataSource,
- * or by accessing oPayload.insertIndex with the doBeforeLoadData() method at runtime.
- * If applicable, creates or updates corresponding TR elements.
- *
- * @method onDataReturnInsertRows
- * @param sRequest {String} Original request.
- * @param oResponse {Object} Response object.
- * @param oPayload {MIXED} Argument payload, looks in oPayload.insertIndex.
- */
-onDataReturnInsertRows : function(sRequest, oResponse, oPayload) {
-    if((this instanceof DT) && this._sId) {
-        this.fireEvent("dataReturnEvent", {request:sRequest,response:oResponse,payload:oPayload});
-    
-        // Pass data through abstract method for any transformations
-        var ok = this.doBeforeLoadData(sRequest, oResponse, oPayload);
-    
-        // Data ok to append
-        if(ok && oResponse && !oResponse.error && lang.isArray(oResponse.results)) {
-            // Insert rows
-            this.addRows(oResponse.results, (oPayload ? oPayload.insertIndex : 0));
-    
-            // Update state
-            this._handleDataReturnPayload(sRequest, oResponse, oPayload);
-        }
-        // Error
-        else if(ok && oResponse.error) {
-            this.showTableMessage(this.get("MSG_ERROR"), DT.CLASS_ERROR);
-        }
-    }
-},
-
-/**
- * Callback function receives data from DataSource and incrementally updates Records
- * starting at the index specified in oPayload.updateIndex. The value for
- * oPayload.updateIndex can be populated when sending the request to the DataSource,
- * or by accessing oPayload.updateIndex with the doBeforeLoadData() method at runtime.
- * If applicable, creates or updates corresponding TR elements.
- *
- * @method onDataReturnUpdateRows
- * @param sRequest {String} Original request.
- * @param oResponse {Object} Response object.
- * @param oPayload {MIXED} Argument payload, looks in oPayload.updateIndex.
- */
-onDataReturnUpdateRows : function(sRequest, oResponse, oPayload) {
-    if((this instanceof DT) && this._sId) {
-        this.fireEvent("dataReturnEvent", {request:sRequest,response:oResponse,payload:oPayload});
-    
-        // Pass data through abstract method for any transformations
-        var ok = this.doBeforeLoadData(sRequest, oResponse, oPayload);
-    
-        // Data ok to append
-        if(ok && oResponse && !oResponse.error && lang.isArray(oResponse.results)) {
-            // Insert rows
-            this.updateRows((oPayload ? oPayload.updateIndex : 0), oResponse.results);
-    
-            // Update state
-            this._handleDataReturnPayload(sRequest, oResponse, oPayload);
-        }
-        // Error
-        else if(ok && oResponse.error) {
-            this.showTableMessage(this.get("MSG_ERROR"), DT.CLASS_ERROR);
-        }
-    }
-},
-
-/**
- * Callback function receives reponse from DataSource and populates the
- * RecordSet with the results.
- *  
- * @method onDataReturnSetRows
- * @param oRequest {MIXED} Original generated request.
- * @param oResponse {Object} Response object.
- * @param oPayload {MIXED} (optional) Additional argument(s)
- */
-onDataReturnSetRows : function(oRequest, oResponse, oPayload) {
-    if((this instanceof DT) && this._sId) {
-        this.fireEvent("dataReturnEvent", {request:oRequest,response:oResponse,payload:oPayload});
-    
-        // Pass data through abstract method for any transformations
-        var ok    = this.doBeforeLoadData(oRequest, oResponse, oPayload),
-            pag   = this.get('paginator'),
-            index = 0;
-    
-        // Data ok to set
-        if(ok && oResponse && !oResponse.error && lang.isArray(oResponse.results)) {
-            // Update Records
-            if (this.get('dynamicData')) {
-                if (oPayload && oPayload.pagination &&
-                    lang.isNumber(oPayload.pagination.recordOffset)) {
-                    index = oPayload.pagination.recordOffset;
-                } else if (pag) {
-                    index = pag.getStartIndex();
-                }
-                
-                this._oRecordSet.reset(); // Bug 2290604: dyanmic data shouldn't keep accumulating by default
-            }
-    
-            this._oRecordSet.setRecords(oResponse.results, index | 0);
-    
-            // Update state
-            this._handleDataReturnPayload(oRequest, oResponse, oPayload);
-            
-            // Update UI
-            this.render();
-        }
-        // Error
-        else if(ok && oResponse.error) {
-            this.showTableMessage(this.get("MSG_ERROR"), DT.CLASS_ERROR);
-        }
-    }
-    else {
-        YAHOO.log("Instance destroyed before data returned.","info",this.toString());
-    }
-},
-
-/**
- * Hook to update oPayload before consumption.
- *  
- * @method handleDataReturnPayload
- * @param oRequest {MIXED} Original generated request.
- * @param oResponse {Object} Response object.
- * @param oPayload {MIXED} State values.
- * @return oPayload {MIXED} State values.
- */
-handleDataReturnPayload : function (oRequest, oResponse, oPayload) {
-    return oPayload;
-},
-
-/**
- * Updates the DataTable with state data sent in an onDataReturn* payload.
- *  
- * @method handleDataReturnPayload
- * @param oRequest {MIXED} Original generated request.
- * @param oResponse {Object} Response object.
- * @param oPayload {MIXED} State values
- */
-_handleDataReturnPayload : function (oRequest, oResponse, oPayload) {
-    oPayload = this.handleDataReturnPayload(oRequest, oResponse, oPayload);
-    if(oPayload) {
-        // Update pagination
-        var oPaginator = this.get('paginator');
-        if (oPaginator) {
-            // Update totalRecords
-            if(this.get("dynamicData")) {
-                if (widget.Paginator.isNumeric(oPayload.totalRecords)) {
-                    oPaginator.set('totalRecords',oPayload.totalRecords);
-                }
-            }
-            else {
-                oPaginator.set('totalRecords',this._oRecordSet.getLength());
-            }
-            // Update other paginator values
-            if (lang.isObject(oPayload.pagination)) {
-                oPaginator.set('rowsPerPage',oPayload.pagination.rowsPerPage);
-                oPaginator.set('recordOffset',oPayload.pagination.recordOffset);
-            }
-        }
-
-        // Update sorting
-        if (oPayload.sortedBy) {
-            // Set the sorting values in preparation for refresh
-            this.set('sortedBy', oPayload.sortedBy);
-        }
-        // Backwards compatibility for sorting
-        else if (oPayload.sorting) {
-            // Set the sorting values in preparation for refresh
-            this.set('sortedBy', oPayload.sorting);
-        }
-    }
-},
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-    /////////////////////////////////////////////////////////////////////////////
-    //
-    // Custom Events
-    //
-    /////////////////////////////////////////////////////////////////////////////
-
-    /**
-     * Fired when the DataTable's rows are rendered from an initialized state.
-     *
-     * @event initEvent
-     */
-
-    /**
-     * Fired before the DataTable's DOM is rendered or modified.
-     *
-     * @event beforeRenderEvent
-     */
-
-    /**
-     * Fired when the DataTable's DOM is rendered or modified.
-     *
-     * @event renderEvent
-     */
-
-    /**
-     * Fired when the DataTable's post-render routine is complete, including
-     * Column width validations.
-     *
-     * @event postRenderEvent
-     */
-
-    /**
-     * Fired when the DataTable is disabled.
-     *
-     * @event disableEvent
-     */
-
-    /**
-     * Fired when the DataTable is undisabled.
-     *
-     * @event undisableEvent
-     */
-
-    /**
-     * Fired when data is returned from DataSource but before it is consumed by
-     * DataTable.
-     *
-     * @event dataReturnEvent
-     * @param oArgs.request {String} Original request.
-     * @param oArgs.response {Object} Response object.
-     */
-
-    /**
-     * Fired when the DataTable has a focus event.
-     *
-     * @event tableFocusEvent
-     */
-
-    /**
-     * Fired when the DataTable THEAD element has a focus event.
-     *
-     * @event theadFocusEvent
-     */
-
-    /**
-     * Fired when the DataTable TBODY element has a focus event.
-     *
-     * @event tbodyFocusEvent
-     */
-
-    /**
-     * Fired when the DataTable has a blur event.
-     *
-     * @event tableBlurEvent
-     */
-
-    /*TODO implement theadBlurEvent
-     * Fired when the DataTable THEAD element has a blur event.
-     *
-     * @event theadBlurEvent
-     */
-
-    /*TODO: implement tbodyBlurEvent
-     * Fired when the DataTable TBODY element has a blur event.
-     *
-     * @event tbodyBlurEvent
-     */
-
-    /**
-     * Fired when the DataTable has a key event.
-     *
-     * @event tableKeyEvent
-     * @param oArgs.event {HTMLEvent} The event object.
-     * @param oArgs.target {HTMLElement} The DataTable's TABLE element.
-     */
-
-    /**
-     * Fired when the DataTable THEAD element has a key event.
-     *
-     * @event theadKeyEvent
-     * @param oArgs.event {HTMLEvent} The event object.
-     * @param oArgs.target {HTMLElement} The DataTable's TABLE element.
-     */
-
-    /**
-     * Fired when the DataTable TBODY element has a key event.
-     *
-     * @event tbodyKeyEvent
-     * @param oArgs.event {HTMLEvent} The event object.
-     * @param oArgs.target {HTMLElement} The DataTable's TABLE element.
-     */
-
-    /**
-     * Fired when the DataTable has a mouseover.
-     *
-     * @event tableMouseoverEvent
-     * @param oArgs.event {HTMLEvent} The event object.
-     * @param oArgs.target {HTMLElement} The DataTable's TABLE element.
-     *
-     */
-
-    /**
-     * Fired when the DataTable has a mouseout.
-     *
-     * @event tableMouseoutEvent
-     * @param oArgs.event {HTMLEvent} The event object.
-     * @param oArgs.target {HTMLElement} The DataTable's TABLE element.
-     *
-     */
-
-    /**
-     * Fired when the DataTable has a mousedown.
-     *
-     * @event tableMousedownEvent
-     * @param oArgs.event {HTMLEvent} The event object.
-     * @param oArgs.target {HTMLElement} The DataTable's TABLE element.
-     *
-     */
-
-    /**
-     * Fired when the DataTable has a mouseup.
-     *
-     * @event tableMouseupEvent
-     * @param oArgs.event {HTMLEvent} The event object.
-     * @param oArgs.target {HTMLElement} The DataTable's TABLE element.
-     *
-     */
-
-    /**
-     * Fired when the DataTable has a click.
-     *
-     * @event tableClickEvent
-     * @param oArgs.event {HTMLEvent} The event object.
-     * @param oArgs.target {HTMLElement} The DataTable's TABLE element.
-     *
-     */
-
-    /**
-     * Fired when the DataTable has a dblclick.
-     *
-     * @event tableDblclickEvent
-     * @param oArgs.event {HTMLEvent} The event object.
-     * @param oArgs.target {HTMLElement} The DataTable's TABLE element.
-     *
-     */
-
-    /**
-     * Fired when a message is shown in the DataTable's message element.
-     *
-     * @event tableMsgShowEvent
-     * @param oArgs.html {String} The HTML displayed.
-     * @param oArgs.className {String} The className assigned.
-     *
-     */
-
-    /**
-     * Fired when the DataTable's message element is hidden.
-     *
-     * @event tableMsgHideEvent
-     */
-
-    /**
-     * Fired when a THEAD row has a mouseover.
-     *
-     * @event theadRowMouseoverEvent
-     * @param oArgs.event {HTMLEvent} The event object.
-     * @param oArgs.target {HTMLElement} The TR element.
-     */
-
-    /**
-     * Fired when a THEAD row has a mouseout.
-     *
-     * @event theadRowMouseoutEvent
-     * @param oArgs.event {HTMLEvent} The event object.
-     * @param oArgs.target {HTMLElement} The TR element.
-     */
-
-    /**
-     * Fired when a THEAD row has a mousedown.
-     *
-     * @event theadRowMousedownEvent
-     * @param oArgs.event {HTMLEvent} The event object.
-     * @param oArgs.target {HTMLElement} The TR element.
-     */
-
-    /**
-     * Fired when a THEAD row has a mouseup.
-     *
-     * @event theadRowMouseupEvent
-     * @param oArgs.event {HTMLEvent} The event object.
-     * @param oArgs.target {HTMLElement} The TR element.
-     */
-
-    /**
-     * Fired when a THEAD row has a click.
-     *
-     * @event theadRowClickEvent
-     * @param oArgs.event {HTMLEvent} The event object.
-     * @param oArgs.target {HTMLElement} The TR element.
-     */
-
-    /**
-     * Fired when a THEAD row has a dblclick.
-     *
-     * @event theadRowDblclickEvent
-     * @param oArgs.event {HTMLEvent} The event object.
-     * @param oArgs.target {HTMLElement} The TR element.
-     */
-
-    /**
-     * Fired when a THEAD cell has a mouseover.
-     *
-     * @event theadCellMouseoverEvent
-     * @param oArgs.event {HTMLEvent} The event object.
-     * @param oArgs.target {HTMLElement} The TH element.
-     *
-     */
-
-    /**
-     * Fired when a THEAD cell has a mouseout.
-     *
-     * @event theadCellMouseoutEvent
-     * @param oArgs.event {HTMLEvent} The event object.
-     * @param oArgs.target {HTMLElement} The TH element.
-     *
-     */
-
-    /**
-     * Fired when a THEAD cell has a mousedown.
-     *
-     * @event theadCellMousedownEvent
-     * @param oArgs.event {HTMLEvent} The event object.
-     * @param oArgs.target {HTMLElement} The TH element.
-     */
-
-    /**
-     * Fired when a THEAD cell has a mouseup.
-     *
-     * @event theadCellMouseupEvent
-     * @param oArgs.event {HTMLEvent} The event object.
-     * @param oArgs.target {HTMLElement} The TH element.
-     */
-
-    /**
-     * Fired when a THEAD cell has a click.
-     *
-     * @event theadCellClickEvent
-     * @param oArgs.event {HTMLEvent} The event object.
-     * @param oArgs.target {HTMLElement} The TH element.
-     */
-
-    /**
-     * Fired when a THEAD cell has a dblclick.
-     *
-     * @event theadCellDblclickEvent
-     * @param oArgs.event {HTMLEvent} The event object.
-     * @param oArgs.target {HTMLElement} The TH element.
-     */
-
-    /**
-     * Fired when a THEAD label has a mouseover.
-     *
-     * @event theadLabelMouseoverEvent
-     * @param oArgs.event {HTMLEvent} The event object.
-     * @param oArgs.target {HTMLElement} The SPAN element.
-     *
-     */
-
-    /**
-     * Fired when a THEAD label has a mouseout.
-     *
-     * @event theadLabelMouseoutEvent
-     * @param oArgs.event {HTMLEvent} The event object.
-     * @param oArgs.target {HTMLElement} The SPAN element.
-     *
-     */
-
-    /**
-     * Fired when a THEAD label has a mousedown.
-     *
-     * @event theadLabelMousedownEvent
-     * @param oArgs.event {HTMLEvent} The event object.
-     * @param oArgs.target {HTMLElement} The SPAN element.
-     */
-
-    /**
-     * Fired when a THEAD label has a mouseup.
-     *
-     * @event theadLabelMouseupEvent
-     * @param oArgs.event {HTMLEvent} The event object.
-     * @param oArgs.target {HTMLElement} The SPAN element.
-     */
-
-    /**
-     * Fired when a THEAD label has a click.
-     *
-     * @event theadLabelClickEvent
-     * @param oArgs.event {HTMLEvent} The event object.
-     * @param oArgs.target {HTMLElement} The SPAN element.
-     */
-
-    /**
-     * Fired when a THEAD label has a dblclick.
-     *
-     * @event theadLabelDblclickEvent
-     * @param oArgs.event {HTMLEvent} The event object.
-     * @param oArgs.target {HTMLElement} The SPAN element.
-     */
-
-    /**
-     * Fired when a column is sorted.
-     *
-     * @event columnSortEvent
-     * @param oArgs.column {YAHOO.widget.Column} The Column instance.
-     * @param oArgs.dir {String} Sort direction: YAHOO.widget.DataTable.CLASS_ASC
-     * or YAHOO.widget.DataTable.CLASS_DESC.
-     */
-
-    /**
-     * Fired when a column width is set.
-     *
-     * @event columnSetWidthEvent
-     * @param oArgs.column {YAHOO.widget.Column} The Column instance.
-     * @param oArgs.width {Number} The width in pixels.
-     */
-
-    /**
-     * Fired when a column width is unset.
-     *
-     * @event columnUnsetWidthEvent
-     * @param oArgs.column {YAHOO.widget.Column} The Column instance.
-     */
-
-    /**
-     * Fired when a column is drag-resized.
-     *
-     * @event columnResizeEvent
-     * @param oArgs.column {YAHOO.widget.Column} The Column instance.
-     * @param oArgs.target {HTMLElement} The TH element.
-     * @param oArgs.width {Number} Width in pixels.     
-     */
-
-    /**
-     * Fired when a Column is moved to a new index.
-     *
-     * @event columnReorderEvent
-     * @param oArgs.column {YAHOO.widget.Column} The Column instance.
-     * @param oArgs.oldIndex {Number} The previous index position.
-     */
-
-    /**
-     * Fired when a column is hidden.
-     *
-     * @event columnHideEvent
-     * @param oArgs.column {YAHOO.widget.Column} The Column instance.
-     */
-
-    /**
-     * Fired when a column is shown.
-     *
-     * @event columnShowEvent
-     * @param oArgs.column {YAHOO.widget.Column} The Column instance.
-     */
-
-    /**
-     * Fired when a column is selected.
-     *
-     * @event columnSelectEvent
-     * @param oArgs.column {YAHOO.widget.Column} The Column instance.
-     */
-
-    /**
-     * Fired when a column is unselected.
-     *
-     * @event columnUnselectEvent
-     * @param oArgs.column {YAHOO.widget.Column} The Column instance.
-     */
-    /**
-     * Fired when a column is removed.
-     *
-     * @event columnRemoveEvent
-     * @param oArgs.column {YAHOO.widget.Column} The Column instance.
-     */
-
-    /**
-     * Fired when a column is inserted.
-     *
-     * @event columnInsertEvent
-     * @param oArgs.column {YAHOO.widget.Column} The Column instance.
-     * @param oArgs.index {Number} The index position.
-     */
-
-    /**
-     * Fired when a column is highlighted.
-     *
-     * @event columnHighlightEvent
-     * @param oArgs.column {YAHOO.widget.Column} The highlighted Column.
-     */
-
-    /**
-     * Fired when a column is unhighlighted.
-     *
-     * @event columnUnhighlightEvent
-     * @param oArgs.column {YAHOO.widget.Column} The unhighlighted Column.
-     */
-
-
-    /**
-     * Fired when a row has a mouseover.
-     *
-     * @event rowMouseoverEvent
-     * @param oArgs.event {HTMLEvent} The event object.
-     * @param oArgs.target {HTMLElement} The TR element.
-     */
-
-    /**
-     * Fired when a row has a mouseout.
-     *
-     * @event rowMouseoutEvent
-     * @param oArgs.event {HTMLEvent} The event object.
-     * @param oArgs.target {HTMLElement} The TR element.
-     */
-
-    /**
-     * Fired when a row has a mousedown.
-     *
-     * @event rowMousedownEvent
-     * @param oArgs.event {HTMLEvent} The event object.
-     * @param oArgs.target {HTMLElement} The TR element.
-     */
-
-    /**
-     * Fired when a row has a mouseup.
-     *
-     * @event rowMouseupEvent
-     * @param oArgs.event {HTMLEvent} The event object.
-     * @param oArgs.target {HTMLElement} The TR element.
-     */
-
-    /**
-     * Fired when a row has a click.
-     *
-     * @event rowClickEvent
-     * @param oArgs.event {HTMLEvent} The event object.
-     * @param oArgs.target {HTMLElement} The TR element.
-     */
-
-    /**
-     * Fired when a row has a dblclick.
-     *
-     * @event rowDblclickEvent
-     * @param oArgs.event {HTMLEvent} The event object.
-     * @param oArgs.target {HTMLElement} The TR element.
-     */
-
-    /**
-     * Fired when a row is added.
-     *
-     * @event rowAddEvent
-     * @param oArgs.record {YAHOO.widget.Record} The added Record.
-     */
-     
-    /**
-     * Fired when rows are added.
-     *
-     * @event rowsAddEvent
-     * @param oArgs.record {YAHOO.widget.Record[]} The added Records.
-     */
-
-    /**
-     * Fired when a row is updated.
-     *
-     * @event rowUpdateEvent
-     * @param oArgs.record {YAHOO.widget.Record} The updated Record.
-     * @param oArgs.oldData {Object} Object literal of the old data.
-     */
-
-    /**
-     * Fired when a row is deleted.
-     *
-     * @event rowDeleteEvent
-     * @param oArgs.oldData {Object} Object literal of the deleted data.
-     * @param oArgs.recordIndex {Number} Index of the deleted Record.
-     * @param oArgs.trElIndex {Number} Index of the deleted TR element, if on current page.
-     */
-     
-    /**
-     * Fired when rows are deleted.
-     *
-     * @event rowsDeleteEvent
-     * @param oArgs.oldData {Object[]} Array of object literals of the deleted data.
-     * @param oArgs.recordIndex {Number} Index of the first deleted Record.
-     * @param oArgs.count {Number} Number of deleted Records.
-     */
-
-    /**
-     * Fired when a row is selected.
-     *
-     * @event rowSelectEvent
-     * @param oArgs.el {HTMLElement} The selected TR element, if applicable.
-     * @param oArgs.record {YAHOO.widget.Record} The selected Record.
-     */
-
-    /**
-     * Fired when a row is unselected.
-     *
-     * @event rowUnselectEvent
-     * @param oArgs.el {HTMLElement} The unselected TR element, if applicable.
-     * @param oArgs.record {YAHOO.widget.Record} The unselected Record.
-     */
-
-    /**
-     * Fired when all row selections are cleared.
-     *
-     * @event unselectAllRowsEvent
-     */
-
-    /**
-     * Fired when a row is highlighted.
-     *
-     * @event rowHighlightEvent
-     * @param oArgs.el {HTMLElement} The highlighted TR element.
-     * @param oArgs.record {YAHOO.widget.Record} The highlighted Record.
-     */
-
-    /**
-     * Fired when a row is unhighlighted.
-     *
-     * @event rowUnhighlightEvent
-     * @param oArgs.el {HTMLElement} The highlighted TR element.
-     * @param oArgs.record {YAHOO.widget.Record} The highlighted Record.
-     */
-
-    /**
-     * Fired when a cell is updated.
-     *
-     * @event cellUpdateEvent
-     * @param oArgs.record {YAHOO.widget.Record} The updated Record.
-     * @param oArgs.column {YAHOO.widget.Column} The updated Column.
-     * @param oArgs.oldData {Object} Original data value of the updated cell.
-     */
-
-    /**
-     * Fired when a cell has a mouseover.
-     *
-     * @event cellMouseoverEvent
-     * @param oArgs.event {HTMLEvent} The event object.
-     * @param oArgs.target {HTMLElement} The TD element.
-     */
-
-    /**
-     * Fired when a cell has a mouseout.
-     *
-     * @event cellMouseoutEvent
-     * @param oArgs.event {HTMLEvent} The event object.
-     * @param oArgs.target {HTMLElement} The TD element.
-     */
-
-    /**
-     * Fired when a cell has a mousedown.
-     *
-     * @event cellMousedownEvent
-     * @param oArgs.event {HTMLEvent} The event object.
-     * @param oArgs.target {HTMLElement} The TD element.
-     */
-
-    /**
-     * Fired when a cell has a mouseup.
-     *
-     * @event cellMouseupEvent
-     * @param oArgs.event {HTMLEvent} The event object.
-     * @param oArgs.target {HTMLElement} The TD element.
-     */
-
-    /**
-     * Fired when a cell has a click.
-     *
-     * @event cellClickEvent
-     * @param oArgs.event {HTMLEvent} The event object.
-     * @param oArgs.target {HTMLElement} The TD element.
-     */
-
-    /**
-     * Fired when a cell has a dblclick.
-     *
-     * @event cellDblclickEvent
-     * @param oArgs.event {HTMLEvent} The event object.
-     * @param oArgs.target {HTMLElement} The TD element.
-     */
-
-    /**
-     * Fired when a cell is formatted.
-     *
-     * @event cellFormatEvent
-     * @param oArgs.el {HTMLElement} The formatted TD element.
-     * @param oArgs.record {YAHOO.widget.Record} The associated Record instance.
-     * @param oArgs.column {YAHOO.widget.Column} The associated Column instance.
-     * @param oArgs.key {String} (deprecated) The key of the formatted cell.
-     */
-
-    /**
-     * Fired when a cell is selected.
-     *
-     * @event cellSelectEvent
-     * @param oArgs.el {HTMLElement} The selected TD element.
-     * @param oArgs.record {YAHOO.widget.Record} The associated Record instance.
-     * @param oArgs.column {YAHOO.widget.Column} The associated Column instance.
-     * @param oArgs.key {String} (deprecated) The key of the selected cell.
-     */
-
-    /**
-     * Fired when a cell is unselected.
-     *
-     * @event cellUnselectEvent
-     * @param oArgs.el {HTMLElement} The unselected TD element.
-     * @param oArgs.record {YAHOO.widget.Record} The associated Record.
-     * @param oArgs.column {YAHOO.widget.Column} The associated Column instance.
-     * @param oArgs.key {String} (deprecated) The key of the unselected cell.
-
-     */
-
-    /**
-     * Fired when a cell is highlighted.
-     *
-     * @event cellHighlightEvent
-     * @param oArgs.el {HTMLElement} The highlighted TD element.
-     * @param oArgs.record {YAHOO.widget.Record} The associated Record instance.
-     * @param oArgs.column {YAHOO.widget.Column} The associated Column instance.
-     * @param oArgs.key {String} (deprecated) The key of the highlighted cell.
-
-     */
-
-    /**
-     * Fired when a cell is unhighlighted.
-     *
-     * @event cellUnhighlightEvent
-     * @param oArgs.el {HTMLElement} The unhighlighted TD element.
-     * @param oArgs.record {YAHOO.widget.Record} The associated Record instance.
-     * @param oArgs.column {YAHOO.widget.Column} The associated Column instance.
-     * @param oArgs.key {String} (deprecated) The key of the unhighlighted cell.
-
-     */
-
-    /**
-     * Fired when all cell selections are cleared.
-     *
-     * @event unselectAllCellsEvent
-     */
-
-    /**
-     * Fired when a CellEditor is shown.
-     *
-     * @event editorShowEvent
-     * @param oArgs.editor {YAHOO.widget.CellEditor} The CellEditor instance.
-     */
-
-    /**
-     * Fired when a CellEditor has a keydown.
-     *
-     * @event editorKeydownEvent
-     * @param oArgs.editor {YAHOO.widget.CellEditor} The CellEditor instance.
-     * @param oArgs.event {HTMLEvent} The event object.
-     */
-
-    /**
-     * Fired when a CellEditor input is reverted.
-     *
-     * @event editorRevertEvent
-     * @param oArgs.editor {YAHOO.widget.CellEditor} The CellEditor instance.
-     * @param oArgs.newData {Object} New data value from form input field.
-     * @param oArgs.oldData {Object} Old data value.
-     */
-
-    /**
-     * Fired when a CellEditor input is saved.
-     *
-     * @event editorSaveEvent
-     * @param oArgs.editor {YAHOO.widget.CellEditor} The CellEditor instance.
-     * @param oArgs.newData {Object} New data value from form input field.
-     * @param oArgs.oldData {Object} Old data value.
-     */
-
-    /**
-     * Fired when a CellEditor input is canceled.
-     *
-     * @event editorCancelEvent
-     * @param oArgs.editor {YAHOO.widget.CellEditor} The CellEditor instance.
-     */
-
-    /**
-     * Fired when a CellEditor has a blur event.
-     *
-     * @event editorBlurEvent
-     * @param oArgs.editor {YAHOO.widget.CellEditor} The CellEditor instance.
-     */
-
-    /**
-     * Fired when a CellEditor is blocked.
-     *
-     * @event editorBlockEvent
-     * @param oArgs.editor {YAHOO.widget.CellEditor} The CellEditor instance.
-     */
-
-    /**
-     * Fired when a CellEditor is unblocked.
-     *
-     * @event editorUnblockEvent
-     * @param oArgs.editor {YAHOO.widget.CellEditor} The CellEditor instance.
-     */
-
-
-
-
-
-    /**
-     * Fired when a link is clicked.
-     *
-     * @event linkClickEvent
-     * @param oArgs.event {HTMLEvent} The event object.
-     * @param oArgs.target {HTMLElement} The A element.
-     */
-
-    /**
-     * Fired when a BUTTON element or INPUT element of type "button", "image",
-     * "submit", "reset" is clicked.
-     *
-     * @event buttonClickEvent
-     * @param oArgs.event {HTMLEvent} The event object.
-     * @param oArgs.target {HTMLElement} The BUTTON element.
-     */
-
-    /**
-     * Fired when a CHECKBOX element is clicked.
-     *
-     * @event checkboxClickEvent
-     * @param oArgs.event {HTMLEvent} The event object.
-     * @param oArgs.target {HTMLElement} The CHECKBOX element.
-     */
-
-    /**
-     * Fired when a SELECT element is changed.
-     *
-     * @event dropdownChangeEvent
-     * @param oArgs.event {HTMLEvent} The event object.
-     * @param oArgs.target {HTMLElement} The SELECT element.
-     */
-
-    /**
-     * Fired when a RADIO element is clicked.
-     *
-     * @event radioClickEvent
-     * @param oArgs.event {HTMLEvent} The event object.
-     * @param oArgs.target {HTMLElement} The RADIO element.
-     */
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-/////////////////////////////////////////////////////////////////////////////
-//
-// Deprecated APIs
-//
-/////////////////////////////////////////////////////////////////////////////
-  
-/*
- * @method showCellEditorBtns
- * @deprecated Use CellEditor.renderBtns() 
- */
-showCellEditorBtns : function(elContainer) {
-    // Buttons
-    var elBtnsDiv = elContainer.appendChild(document.createElement("div"));
-    Dom.addClass(elBtnsDiv, DT.CLASS_BUTTON);
-
-    // Save button
-    var elSaveBtn = elBtnsDiv.appendChild(document.createElement("button"));
-    Dom.addClass(elSaveBtn, DT.CLASS_DEFAULT);
-    elSaveBtn.innerHTML = "OK";
-    Ev.addListener(elSaveBtn, "click", function(oArgs, oSelf) {
-        oSelf.onEventSaveCellEditor(oArgs, oSelf);
-        oSelf.focusTbodyEl();
-    }, this, true);
-
-    // Cancel button
-    var elCancelBtn = elBtnsDiv.appendChild(document.createElement("button"));
-    elCancelBtn.innerHTML = "Cancel";
-    Ev.addListener(elCancelBtn, "click", function(oArgs, oSelf) {
-        oSelf.onEventCancelCellEditor(oArgs, oSelf);
-        oSelf.focusTbodyEl();
-    }, this, true);
-
-    YAHOO.log("The method showCellEditorBtns() has been deprecated." +
-            " Please use the CellEditor class.", "warn", this.toString());
-},
-
-/**
- * @method resetCellEditor
- * @deprecated Use destroyCellEditor 
- */
-resetCellEditor : function() {
-    var elContainer = this._oCellEditor.container;
-    elContainer.style.display = "none";
-    Ev.purgeElement(elContainer, true);
-    elContainer.innerHTML = "";
-    this._oCellEditor.value = null;
-    this._oCellEditor.isActive = false;
-
-    YAHOO.log("The method resetCellEditor() has been deprecated." +
-            " Please use the CellEditor class.", "warn", this.toString());
-},
-
-/**
- * @event editorUpdateEvent
- * @deprecated Use CellEditor class.
- */
-
-/**
- * @method getBody
- * @deprecated Use getTbodyEl().
- */
-getBody : function() {
-    // Backward compatibility
-    YAHOO.log("The method getBody() has been deprecated" +
-            " in favor of getTbodyEl()", "warn", this.toString());
-    return this.getTbodyEl();
-},
-
-/**
- * @method getCell
- * @deprecated Use getTdEl().
- */
-getCell : function(index) {
-    // Backward compatibility
-    YAHOO.log("The method getCell() has been deprecated" +
-            " in favor of getTdEl()", "warn", this.toString());
-    return this.getTdEl(index);
-},
-
-/**
- * @method getRow
- * @deprecated Use getTrEl().
- */
-getRow : function(index) {
-    // Backward compatibility
-    YAHOO.log("The method getRow() has been deprecated" +
-            " in favor of getTrEl()", "warn", this.toString());
-    return this.getTrEl(index);
-},
-
-/**
- * @method refreshView
- * @deprecated Use render.
- */
-refreshView : function() {
-    // Backward compatibility
-    YAHOO.log("The method refreshView() has been deprecated" +
-            " in favor of render()", "warn", this.toString());
-    this.render();
-},
-
-/**
- * @method select
- * @deprecated Use selectRow.
- */
-select : function(els) {
-    // Backward compatibility
-    YAHOO.log("The method select() has been deprecated" +
-            " in favor of selectRow()", "warn", this.toString());
-    if(!lang.isArray(els)) {
-        els = [els];
-    }
-    for(var i=0; i<els.length; i++) {
-        this.selectRow(els[i]);
-    }
-},
-
-/**
- * @method onEventEditCell
- * @deprecated Use onEventShowCellEditor.
- */
-onEventEditCell : function(oArgs) {
-    // Backward compatibility
-    YAHOO.log("The method onEventEditCell() has been deprecated" +
-        " in favor of onEventShowCellEditor()", "warn", this.toString());
-    this.onEventShowCellEditor(oArgs);
-},
-
-/**
- * @method _syncColWidths
- * @deprecated Use validateColumnWidths.
- */
-_syncColWidths : function() {
-    // Backward compatibility
-    YAHOO.log("The method _syncColWidths() has been deprecated" +
-        " in favor of validateColumnWidths()", "warn", this.toString());
-    this.validateColumnWidths();
-}
-
-/**
- * @event headerRowMouseoverEvent
- * @deprecated Use theadRowMouseoverEvent.
- */
-
-/**
- * @event headerRowMouseoutEvent
- * @deprecated Use theadRowMouseoutEvent.
- */
-
-/**
- * @event headerRowMousedownEvent
- * @deprecated Use theadRowMousedownEvent.
- */
-
-/**
- * @event headerRowClickEvent
- * @deprecated Use theadRowClickEvent.
- */
-
-/**
- * @event headerRowDblclickEvent
- * @deprecated Use theadRowDblclickEvent.
- */
-
-/**
- * @event headerCellMouseoverEvent
- * @deprecated Use theadCellMouseoverEvent.
- */
-
-/**
- * @event headerCellMouseoutEvent
- * @deprecated Use theadCellMouseoutEvent.
- */
-
-/**
- * @event headerCellMousedownEvent
- * @deprecated Use theadCellMousedownEvent.
- */
-
-/**
- * @event headerCellClickEvent
- * @deprecated Use theadCellClickEvent.
- */
-
-/**
- * @event headerCellDblclickEvent
- * @deprecated Use theadCellDblclickEvent.
- */
-
-/**
- * @event headerLabelMouseoverEvent
- * @deprecated Use theadLabelMouseoverEvent.
- */
-
-/**
- * @event headerLabelMouseoutEvent
- * @deprecated Use theadLabelMouseoutEvent.
- */
-
-/**
- * @event headerLabelMousedownEvent
- * @deprecated Use theadLabelMousedownEvent.
- */
-
-/**
- * @event headerLabelClickEvent
- * @deprecated Use theadLabelClickEvent.
- */
-
-/**
- * @event headerLabelDbllickEvent
- * @deprecated Use theadLabelDblclickEvent.
- */
-
-});
-
-/**
- * Alias for onDataReturnSetRows for backward compatibility
- * @method onDataReturnSetRecords
- * @deprecated Use onDataReturnSetRows
- */
-DT.prototype.onDataReturnSetRecords = DT.prototype.onDataReturnSetRows;
-
-/**
- * Alias for onPaginatorChange for backward compatibility
- * @method onPaginatorChange
- * @deprecated Use onPaginatorChangeRequest
- */
-DT.prototype.onPaginatorChange = DT.prototype.onPaginatorChangeRequest;
-
-/////////////////////////////////////////////////////////////////////////////
-//
-// Deprecated static APIs
-//
-/////////////////////////////////////////////////////////////////////////////
-/**
- * @method DataTable.formatTheadCell
- * @deprecated  Use formatTheadCell.
- */
-DT.formatTheadCell = function() {};
-
-/**
- * @method DataTable.editCheckbox
- * @deprecated  Use YAHOO.widget.CheckboxCellEditor.
- */
-DT.editCheckbox = function() {};
-
-/**
- * @method DataTable.editDate
- * @deprecated Use YAHOO.widget.DateCellEditor.
- */
-DT.editDate = function() {};
-
-/**
- * @method DataTable.editDropdown
- * @deprecated Use YAHOO.widget.DropdownCellEditor.
- */
-DT.editDropdown = function() {};
-
-/**
- * @method DataTable.editRadio
- * @deprecated Use YAHOO.widget.RadioCellEditor.
- */
-DT.editRadio = function() {};
-
-/**
- * @method DataTable.editTextarea
- * @deprecated Use YAHOO.widget.TextareaCellEditor
- */
-DT.editTextarea = function() {};
-
-/**
- * @method DataTable.editTextbox
- * @deprecated Use YAHOO.widget.TextboxCellEditor
- */
-DT.editTextbox= function() {};
-
-})();
-
-(function () {
-
-var lang   = YAHOO.lang,
-    util   = YAHOO.util,
-    widget = YAHOO.widget,
-    ua     = YAHOO.env.ua,
-    
-    Dom    = util.Dom,
-    Ev     = util.Event,
-    DS     = util.DataSourceBase,
-    DT     = widget.DataTable,
-    Pag    = widget.Paginator;
-    
-/**
- * The ScrollingDataTable class extends the DataTable class to provide
- * functionality for x-scrolling, y-scrolling, and xy-scrolling.
- *
- * @namespace YAHOO.widget
- * @class ScrollingDataTable
- * @extends YAHOO.widget.DataTable
- * @constructor
- * @param elContainer {HTMLElement} Container element for the TABLE.
- * @param aColumnDefs {Object[]} Array of object literal Column definitions.
- * @param oDataSource {YAHOO.util.DataSource} DataSource instance.
- * @param oConfigs {object} (optional) Object literal of configuration values.
- */
-widget.ScrollingDataTable = function(elContainer,aColumnDefs,oDataSource,oConfigs) {
-    oConfigs = oConfigs || {};
-    
-    // Prevent infinite loop
-    if(oConfigs.scrollable) {
-        oConfigs.scrollable = false;
-    }
-
-    widget.ScrollingDataTable.superclass.constructor.call(this, elContainer,aColumnDefs,oDataSource,oConfigs); 
-
-    // Once per instance
-    this.subscribe("columnShowEvent", this._onColumnChange);
-};
-
-var SDT = widget.ScrollingDataTable;
-
-/////////////////////////////////////////////////////////////////////////////
-//
-// Public constants
-//
-/////////////////////////////////////////////////////////////////////////////
-lang.augmentObject(SDT, {
-
-    /**
-     * Class name assigned to inner DataTable header container.
-     *
-     * @property DataTable.CLASS_HEADER
-     * @type String
-     * @static
-     * @final
-     * @default "yui-dt-hd"
-     */
-    CLASS_HEADER : "yui-dt-hd",
-    
-    /**
-     * Class name assigned to inner DataTable body container.
-     *
-     * @property DataTable.CLASS_BODY
-     * @type String
-     * @static
-     * @final
-     * @default "yui-dt-bd"
-     */
-    CLASS_BODY : "yui-dt-bd"
-});
-
-lang.extend(SDT, DT, {
-
-/**
- * Container for fixed header TABLE element.
- *
- * @property _elHdContainer
- * @type HTMLElement
- * @private
- */
-_elHdContainer : null,
-
-/**
- * Fixed header TABLE element.
- *
- * @property _elHdTable
- * @type HTMLElement
- * @private
- */
-_elHdTable : null,
-
-/**
- * Container for scrolling body TABLE element.
- *
- * @property _elBdContainer
- * @type HTMLElement
- * @private
- */
-_elBdContainer : null,
-
-/**
- * Body THEAD element.
- *
- * @property _elBdThead
- * @type HTMLElement
- * @private
- */
-_elBdThead : null,
-
-/**
- * Offscreen container to temporarily clone SDT for auto-width calculation.
- *
- * @property _elTmpContainer
- * @type HTMLElement
- * @private
- */
-_elTmpContainer : null,
-
-/**
- * Offscreen TABLE element for auto-width calculation.
- *
- * @property _elTmpTable
- * @type HTMLElement
- * @private
- */
-_elTmpTable : null,
-
-/**
- * True if x-scrollbar is currently visible.
- * @property _bScrollbarX
- * @type Boolean
- * @private 
- */
-_bScrollbarX : null,
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-/////////////////////////////////////////////////////////////////////////////
-//
-// Superclass methods
-//
-/////////////////////////////////////////////////////////////////////////////
-
-/**
- * Implementation of Element's abstract method. Sets up config values.
- *
- * @method initAttributes
- * @param oConfigs {Object} (Optional) Object literal definition of configuration values.
- * @private
- */
-
-initAttributes : function(oConfigs) {
-    oConfigs = oConfigs || {};
-    SDT.superclass.initAttributes.call(this, oConfigs);
-
-    /**
-    * @attribute width
-    * @description Table width for scrollable tables (e.g., "40em").
-    * @type String
-    */
-    this.setAttributeConfig("width", {
-        value: null,
-        validator: lang.isString,
-        method: function(oParam) {
-            if(this._elHdContainer && this._elBdContainer) {
-                this._elHdContainer.style.width = oParam;
-                this._elBdContainer.style.width = oParam;            
-                this._syncScrollX();      
-                this._syncScrollOverhang();
-            }
-        }
-    });
-
-    /**
-    * @attribute height
-    * @description Table body height for scrollable tables, not including headers (e.g., "40em").
-    * @type String
-    */
-    this.setAttributeConfig("height", {
-        value: null,
-        validator: lang.isString,
-        method: function(oParam) {
-            if(this._elHdContainer && this._elBdContainer) {
-                this._elBdContainer.style.height = oParam;    
-                this._syncScrollX();   
-                this._syncScrollY();
-                this._syncScrollOverhang();
-            }
-        }
-    });
-
-    /**
-    * @attribute COLOR_COLUMNFILLER
-    * @description CSS color value assigned to header filler on scrollable tables.  
-    * @type String
-    * @default "#F2F2F2"
-    */
-    this.setAttributeConfig("COLOR_COLUMNFILLER", {
-        value: "#F2F2F2",
-        validator: lang.isString,
-        method: function(oParam) {
-            this._elHdContainer.style.backgroundColor = oParam;
-        }
-    });
-},
-
-/**
- * Initializes DOM elements for a ScrollingDataTable, including creation of
- * two separate TABLE elements.
- *
- * @method _initDomElements
- * @param elContainer {HTMLElement | String} HTML DIV element by reference or ID. 
- * return {Boolean} False in case of error, otherwise true 
- * @private
- */
-_initDomElements : function(elContainer) {
-    // Outer and inner containers
-    this._initContainerEl(elContainer);
-    if(this._elContainer && this._elHdContainer && this._elBdContainer) {
-        // TABLEs
-        this._initTableEl();
-        
-        if(this._elHdTable && this._elTable) {
-            // COLGROUPs
-            ///this._initColgroupEl(this._elHdTable, this._elTable);  
-            this._initColgroupEl(this._elHdTable);        
-            
-            // THEADs
-            this._initTheadEl(this._elHdTable, this._elTable);
-            
-            // Primary TBODY
-            this._initTbodyEl(this._elTable);
-            // Message TBODY
-            this._initMsgTbodyEl(this._elTable);            
-        }
-    }
-    if(!this._elContainer || !this._elTable || !this._elColgroup ||  !this._elThead || !this._elTbody || !this._elMsgTbody ||
-            !this._elHdTable || !this._elBdThead) {
-        YAHOO.log("Could not instantiate DataTable due to an invalid DOM elements", "error", this.toString());
-        return false;
-    }
-    else {
-        return true;
-    }
-},
-
-/**
- * Destroy's the DataTable outer and inner container elements, if available.
- *
- * @method _destroyContainerEl
- * @param elContainer {HTMLElement} Reference to the container element. 
- * @private
- */
-_destroyContainerEl : function(elContainer) {
-    Dom.removeClass(elContainer, DT.CLASS_SCROLLABLE);
-    SDT.superclass._destroyContainerEl.call(this, elContainer);
-    this._elHdContainer = null;
-    this._elBdContainer = null;
-},
-
-/**
- * Initializes the DataTable outer container element and creates inner header
- * and body container elements.
- *
- * @method _initContainerEl
- * @param elContainer {HTMLElement | String} HTML DIV element by reference or ID.
- * @private
- */
-_initContainerEl : function(elContainer) {
-    SDT.superclass._initContainerEl.call(this, elContainer);
-    
-    if(this._elContainer) {
-        elContainer = this._elContainer; // was constructor input, now is DOM ref
-        Dom.addClass(elContainer, DT.CLASS_SCROLLABLE);
-        
-        // Container for header TABLE
-        var elHdContainer = document.createElement("div");
-        elHdContainer.style.width = this.get("width") || "";
-        elHdContainer.style.backgroundColor = this.get("COLOR_COLUMNFILLER");
-        Dom.addClass(elHdContainer, SDT.CLASS_HEADER);
-        this._elHdContainer = elHdContainer;
-        elContainer.appendChild(elHdContainer);
-    
-        // Container for body TABLE
-        var elBdContainer = document.createElement("div");
-        elBdContainer.style.width = this.get("width") || "";
-        elBdContainer.style.height = this.get("height") || "";
-        Dom.addClass(elBdContainer, SDT.CLASS_BODY);
-        Ev.addListener(elBdContainer, "scroll", this._onScroll, this); // to sync horiz scroll headers
-        this._elBdContainer = elBdContainer;
-        elContainer.appendChild(elBdContainer);
-    }
-},
-
-/**
- * Creates HTML markup CAPTION element.
- *
- * @method _initCaptionEl
- * @param sCaption {String} Text for caption.
- * @private
- */
-_initCaptionEl : function(sCaption) {
-    // Not yet supported
-    /*if(this._elHdTable && sCaption) {
-        // Create CAPTION element
-        if(!this._elCaption) { 
-            this._elCaption = this._elHdTable.createCaption();
-        }
-        // Set CAPTION value
-        this._elCaption.innerHTML = sCaption;
-    }
-    else if(this._elCaption) {
-        this._elCaption.parentNode.removeChild(this._elCaption);
-    }*/
-},
-
-/**
- * Destroy's the DataTable head TABLE element, if available.
- *
- * @method _destroyHdTableEl
- * @private
- */
-_destroyHdTableEl : function() {
-    var elTable = this._elHdTable;
-    if(elTable) {
-        Ev.purgeElement(elTable, true);
-        elTable.parentNode.removeChild(elTable);
-        
-        // A little out of place, but where else can we null out these extra elements?
-        ///this._elBdColgroup = null;
-        this._elBdThead = null;
-    }
-},
-
-/**
- * Initializes ScrollingDataTable TABLE elements into the two inner containers.
- *
- * @method _initTableEl
- * @private
- */
-_initTableEl : function() {
-    // Head TABLE
-    if(this._elHdContainer) {
-        this._destroyHdTableEl();
-    
-        // Create TABLE
-        this._elHdTable = this._elHdContainer.appendChild(document.createElement("table"));   
-    } 
-    // Body TABLE
-    SDT.superclass._initTableEl.call(this, this._elBdContainer);
-},
-
-/**
- * Initializes ScrollingDataTable THEAD elements into the two inner containers.
- *
- * @method _initTheadEl
- * @param elHdTable {HTMLElement} (optional) Fixed header TABLE element reference.
- * @param elTable {HTMLElement} (optional) TABLE element reference.
- * @private
- */
-_initTheadEl : function(elHdTable, elTable) {
-    elHdTable = elHdTable || this._elHdTable;
-    elTable = elTable || this._elTable;
-    
-    // Scrolling body's THEAD
-    this._initBdTheadEl(elTable);
-    // Standard fixed head THEAD
-    SDT.superclass._initTheadEl.call(this, elHdTable);
-},
-
-/**
- * SDT changes ID so as not to duplicate the accessibility TH IDs.
- *
- * @method _initThEl
- * @param elTh {HTMLElement} TH element reference.
- * @param oColumn {YAHOO.widget.Column} Column object.
- * @private
- */
-_initThEl : function(elTh, oColumn) {
-    SDT.superclass._initThEl.call(this, elTh, oColumn);
-    elTh.id = this.getId() +"-fixedth-" + oColumn.getSanitizedKey(); // Needed for getColumn by TH and ColumnDD
-},
-
-/**
- * Destroy's the DataTable body THEAD element, if available.
- *
- * @method _destroyBdTheadEl
- * @private
- */
-_destroyBdTheadEl : function() {
-    var elBdThead = this._elBdThead;
-    if(elBdThead) {
-        var elTable = elBdThead.parentNode;
-        Ev.purgeElement(elBdThead, true);
-        elTable.removeChild(elBdThead);
-        this._elBdThead = null;
-
-        this._destroyColumnHelpers();
-    }
-},
-
-/**
- * Initializes body THEAD element.
- *
- * @method _initBdTheadEl
- * @param elTable {HTMLElement} TABLE element into which to create THEAD.
- * @return {HTMLElement} Initialized THEAD element. 
- * @private
- */
-_initBdTheadEl : function(elTable) {
-    if(elTable) {
-        // Destroy previous
-        this._destroyBdTheadEl();
-
-        var elThead = elTable.insertBefore(document.createElement("thead"), elTable.firstChild);
-        
-        // Add TRs to the THEAD;
-        var oColumnSet = this._oColumnSet,
-            colTree = oColumnSet.tree,
-            elTh, elTheadTr, oColumn, i, j, k, len;
-
-        for(i=0, k=colTree.length; i<k; i++) {
-            elTheadTr = elThead.appendChild(document.createElement("tr"));
-    
-            // ...and create TH cells
-            for(j=0, len=colTree[i].length; j<len; j++) {
-                oColumn = colTree[i][j];
-                elTh = elTheadTr.appendChild(document.createElement("th"));
-                this._initBdThEl(elTh,oColumn,i,j);
-            }
-        }
-        this._elBdThead = elThead;
-        YAHOO.log("Accessibility TH cells for " + this._oColumnSet.keys.length + " keys created","info",this.toString());
-    }
-},
-
-/**
- * Populates TH element for the body THEAD element.
- *
- * @method _initBdThEl
- * @param elTh {HTMLElement} TH element reference.
- * @param oColumn {YAHOO.widget.Column} Column object.
- * @private
- */
-_initBdThEl : function(elTh, oColumn) {
-    elTh.id = this.getId()+"-th-" + oColumn.getSanitizedKey(); // Needed for accessibility
-    elTh.rowSpan = oColumn.getRowspan();
-    elTh.colSpan = oColumn.getColspan();
-    // Assign abbr attribute
-    if(oColumn.abbr) {
-        elTh.abbr = oColumn.abbr;
-    }
-
-    // TODO: strip links and form elements
-    var sKey = oColumn.getKey();
-    var sLabel = lang.isValue(oColumn.label) ? oColumn.label : sKey;
-    elTh.innerHTML = sLabel;
-},
-
-/**
- * Initializes ScrollingDataTable TBODY element for data
- *
- * @method _initTbodyEl
- * @param elTable {HTMLElement} TABLE element into which to create TBODY .
- * @private
- */
-_initTbodyEl : function(elTable) {
-    SDT.superclass._initTbodyEl.call(this, elTable);
-    
-    // Bug 2105534 - Safari 3 gap
-    // Bug 2492591 - IE8 offsetTop
-    elTable.style.marginTop = (this._elTbody.offsetTop > 0) ?
-            "-"+this._elTbody.offsetTop+"px" : 0;
-},
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-/**
- * Sets focus on the given element.
- *
- * @method _focusEl
- * @param el {HTMLElement} Element.
- * @private
- */
-_focusEl : function(el) {
-    el = el || this._elTbody;
-    var oSelf = this;
-    this._storeScrollPositions();
-    // http://developer.mozilla.org/en/docs/index.php?title=Key-navigable_custom_DHTML_widgets
-    // The timeout is necessary in both IE and Firefox 1.5, to prevent scripts from doing
-    // strange unexpected things as the user clicks on buttons and other controls.
-    
-    // Bug 1921135: Wrap the whole thing in a setTimeout
-    setTimeout(function() {
-        setTimeout(function() {
-            try {
-                el.focus();
-                oSelf._restoreScrollPositions();
-            }
-            catch(e) {
-            }
-        },0);
-    }, 0);
-},
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-/**
- * Internal wrapper calls run() on render Chain instance.
- *
- * @method _runRenderChain
- * @private 
- */
-_runRenderChain : function() {
-    this._storeScrollPositions();
-    this._oChainRender.run();
-},
-
-/**
- * Stores scroll positions so they can be restored after a render.
- *
- * @method _storeScrollPositions
- * @private
- */
- _storeScrollPositions : function() {
-    this._nScrollTop = this._elBdContainer.scrollTop;
-    this._nScrollLeft = this._elBdContainer.scrollLeft;
-},
-
-/**
- * Clears stored scroll positions to interrupt the automatic restore mechanism.
- * Useful for setting scroll positions programmatically rather than as part of
- * the post-render cleanup process.
- *
- * @method clearScrollPositions
- * @private
- */
- clearScrollPositions : function() {
-    this._nScrollTop = 0;
-    this._nScrollLeft = 0;
-},
-
-/**
- * Restores scroll positions to stored value. 
- *
- * @method _retoreScrollPositions
- * @private 
- */
- _restoreScrollPositions : function() {
-    // Reset scroll positions
-    if(this._nScrollTop) {
-        this._elBdContainer.scrollTop = this._nScrollTop;
-        this._nScrollTop = null;
-    } 
-    if(this._nScrollLeft) {
-        this._elBdContainer.scrollLeft = this._nScrollLeft;
-        this._nScrollLeft = null;
-    } 
-},
-
-/**
- * Helper function calculates and sets a validated width for a Column in a ScrollingDataTable.
- *
- * @method _validateColumnWidth
- * @param oColumn {YAHOO.widget.Column} Column instance.
- * @param elTd {HTMLElement} TD element to validate against.
- * @private
- */
-_validateColumnWidth : function(oColumn, elTd) {
-    // Only Columns without widths that are not hidden
-    if(!oColumn.width && !oColumn.hidden) {
-        var elTh = oColumn.getThEl();
-        // Unset a calculated auto-width
-        if(oColumn._calculatedWidth) {
-            this._setColumnWidth(oColumn, "auto", "visible");
-        }
-        // Compare auto-widths
-        if(elTh.offsetWidth !== elTd.offsetWidth) {
-            var elWider = (elTh.offsetWidth > elTd.offsetWidth) ?
-                    oColumn.getThLinerEl() : elTd.firstChild;               
-
-            // Grab the wider liner width, unless the minWidth is wider
-            var newWidth = Math.max(0,
-                (elWider.offsetWidth -(parseInt(Dom.getStyle(elWider,"paddingLeft"),10)|0) - (parseInt(Dom.getStyle(elWider,"paddingRight"),10)|0)),
-                oColumn.minWidth);
-                
-            var sOverflow = 'visible';
-            
-            // Now validate against maxAutoWidth
-            if((oColumn.maxAutoWidth > 0) && (newWidth > oColumn.maxAutoWidth)) {
-                newWidth = oColumn.maxAutoWidth;
-                sOverflow = "hidden";
-            }
-
-            // Set to the wider auto-width
-            this._elTbody.style.display = "none";
-            this._setColumnWidth(oColumn, newWidth+'px', sOverflow);
-            oColumn._calculatedWidth = newWidth;
-            this._elTbody.style.display = "";
-        }
-    }
-},
-
-/**
- * For one or all Columns of a ScrollingDataTable, when Column is not hidden,
- * and width is not set, syncs widths of header and body cells and 
- * validates that width against minWidth and/or maxAutoWidth as necessary.
- *
- * @method validateColumnWidths
- * @param oArg.column {YAHOO.widget.Column} (optional) One Column to validate. If null, all Columns' widths are validated.
- */
-validateColumnWidths : function(oColumn) {
-    // Validate there is at least one TR with proper TDs
-    var allKeys   = this._oColumnSet.keys,
-        allKeysLength = allKeys.length,
-        elRow     = this.getFirstTrEl();
-
-    // Reset overhang for IE
-    if(ua.ie) {
-        this._setOverhangValue(1);
-    }
-
-    if(allKeys && elRow && (elRow.childNodes.length === allKeysLength)) {
-        // Temporarily unsnap container since it causes inaccurate calculations
-        var sWidth = this.get("width");
-        if(sWidth) {
-            this._elHdContainer.style.width = "";
-            this._elBdContainer.style.width = "";
-        }
-        this._elContainer.style.width = "";
-        
-        //Validate just one Column
-        if(oColumn && lang.isNumber(oColumn.getKeyIndex())) {
-            this._validateColumnWidth(oColumn, elRow.childNodes[oColumn.getKeyIndex()]);
-        }
-        // Iterate through all Columns to unset calculated widths in one pass
-        else {
-            var elTd, todos = [], thisTodo, i, len;
-            for(i=0; i<allKeysLength; i++) {
-                oColumn = allKeys[i];
-                // Only Columns without widths that are not hidden, unset a calculated auto-width
-                if(!oColumn.width && !oColumn.hidden && oColumn._calculatedWidth) {
-                    todos[todos.length] = oColumn;      
-                }
-            }
-            
-            this._elTbody.style.display = "none";
-            for(i=0, len=todos.length; i<len; i++) {
-                this._setColumnWidth(todos[i], "auto", "visible");
-            }
-            this._elTbody.style.display = "";
-            
-            todos = [];
-
-            // Iterate through all Columns and make the store the adjustments to make in one pass
-            for(i=0; i<allKeysLength; i++) {
-                oColumn = allKeys[i];
-                elTd = elRow.childNodes[i];
-                // Only Columns without widths that are not hidden
-                if(!oColumn.width && !oColumn.hidden) {
-                    var elTh = oColumn.getThEl();
-
-                    // Compare auto-widths
-                    if(elTh.offsetWidth !== elTd.offsetWidth) {
-                        var elWider = (elTh.offsetWidth > elTd.offsetWidth) ?
-                                oColumn.getThLinerEl() : elTd.firstChild;               
-                
-                        // Grab the wider liner width, unless the minWidth is wider
-                        var newWidth = Math.max(0,
-                            (elWider.offsetWidth -(parseInt(Dom.getStyle(elWider,"paddingLeft"),10)|0) - (parseInt(Dom.getStyle(elWider,"paddingRight"),10)|0)),
-                            oColumn.minWidth);
-                            
-                        var sOverflow = 'visible';
-                        
-                        // Now validate against maxAutoWidth
-                        if((oColumn.maxAutoWidth > 0) && (newWidth > oColumn.maxAutoWidth)) {
-                            newWidth = oColumn.maxAutoWidth;
-                            sOverflow = "hidden";
-                        }
-                
-                        todos[todos.length] = [oColumn, newWidth, sOverflow];
-                    }
-                }
-            }
-            
-            this._elTbody.style.display = "none";
-            for(i=0, len=todos.length; i<len; i++) {
-                thisTodo = todos[i];
-                // Set to the wider auto-width
-                this._setColumnWidth(thisTodo[0], thisTodo[1]+"px", thisTodo[2]);
-                thisTodo[0]._calculatedWidth = thisTodo[1];
-            }
-            this._elTbody.style.display = "";
-        }
-    
-        // Resnap unsnapped containers
-        if(sWidth) {
-            this._elHdContainer.style.width = sWidth;
-            this._elBdContainer.style.width = sWidth;
-        } 
-    }
-    
-    this._syncScroll();
-    this._restoreScrollPositions();
-},
-
-/**
- * Syncs padding around scrollable tables, including Column header right-padding
- * and container width and height.
- *
- * @method _syncScroll
- * @private 
- */
-_syncScroll : function() {
-    this._syncScrollX();
-    this._syncScrollY();
-    this._syncScrollOverhang();
-    if(ua.opera) {
-        // Bug 1925874
-        this._elHdContainer.scrollLeft = this._elBdContainer.scrollLeft;
-        if(!this.get("width")) {
-            // Bug 1926125
-            document.body.style += '';
-        }
-    }
- },
-
-/**
- * Snaps container width for y-scrolling tables.
- *
- * @method _syncScrollY
- * @private
- */
-_syncScrollY : function() {
-    var elTbody = this._elTbody,
-        elBdContainer = this._elBdContainer;
-    
-    // X-scrolling not enabled
-    if(!this.get("width")) {
-        // Snap outer container width to content
-        this._elContainer.style.width = 
-                (elBdContainer.scrollHeight > elBdContainer.clientHeight) ?
-                // but account for y-scrollbar since it is visible
-                (elTbody.parentNode.clientWidth + 19) + "px" :
-                // no y-scrollbar, just borders
-                (elTbody.parentNode.clientWidth + 2) + "px";
-    }
-},
-
-/**
- * Snaps container height for x-scrolling tables in IE. Syncs message TBODY width.
- *
- * @method _syncScrollX
- * @private
- */
-_syncScrollX : function() {
-    var elTbody = this._elTbody,
-        elBdContainer = this._elBdContainer;
-    
-    // IE 6 and 7 only when y-scrolling not enabled
-    if(!this.get("height") && (ua.ie)) {
-        // Snap outer container height to content
-        elBdContainer.style.height = 
-                // but account for x-scrollbar if it is visible
-                (elBdContainer.scrollWidth > elBdContainer.offsetWidth ) ?
-                (elTbody.parentNode.offsetHeight + 18) + "px" : 
-                elTbody.parentNode.offsetHeight + "px";
-    }
-
-    // Sync message tbody
-    if(this._elTbody.rows.length === 0) {
-        this._elMsgTbody.parentNode.style.width = this.getTheadEl().parentNode.offsetWidth + "px";
-    }
-    else {
-        this._elMsgTbody.parentNode.style.width = "";
-    }
-},
-
-/**
- * Adds/removes Column header overhang as necesary.
- *
- * @method _syncScrollOverhang
- * @private
- */
-_syncScrollOverhang : function() {
-    var elBdContainer = this._elBdContainer,
-        // Overhang should be either 1 (default) or 18px, depending on the location of the right edge of the table
-        nPadding = 1;
-    
-    // Y-scrollbar is visible, which is when the overhang needs to jut out
-    if((elBdContainer.scrollHeight > elBdContainer.clientHeight) &&
-        // X-scrollbar is also visible, which means the right is jagged, not flush with the Column
-        (elBdContainer.scrollWidth > elBdContainer.clientWidth)) {
-        nPadding = 18;
-    }
-    
-    this._setOverhangValue(nPadding);
-    
-},
-
-/**
- * Sets Column header overhang to given width.
- *
- * @method _setOverhangValue
- * @param nBorderWidth {Number} Value of new border for overhang. 
- * @private
- */
-_setOverhangValue : function(nBorderWidth) {
-    var aLastHeaders = this._oColumnSet.headers[this._oColumnSet.headers.length-1] || [],
-        len = aLastHeaders.length,
-        sPrefix = this._sId+"-fixedth-",
-        sValue = nBorderWidth + "px solid " + this.get("COLOR_COLUMNFILLER");
-
-    this._elThead.style.display = "none";
-    for(var i=0; i<len; i++) {
-        Dom.get(sPrefix+aLastHeaders[i]).style.borderRight = sValue;
-    }
-    this._elThead.style.display = "";
-},
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-/**
- * Returns DOM reference to the DataTable's fixed header container element.
- *
- * @method getHdContainerEl
- * @return {HTMLElement} Reference to DIV element.
- */
-getHdContainerEl : function() {
-    return this._elHdContainer;
-},
-
-/**
- * Returns DOM reference to the DataTable's scrolling body container element.
- *
- * @method getBdContainerEl
- * @return {HTMLElement} Reference to DIV element.
- */
-getBdContainerEl : function() {
-    return this._elBdContainer;
-},
-
-/**
- * Returns DOM reference to the DataTable's fixed header TABLE element.
- *
- * @method getHdTableEl
- * @return {HTMLElement} Reference to TABLE element.
- */
-getHdTableEl : function() {
-    return this._elHdTable;
-},
-
-/**
- * Returns DOM reference to the DataTable's scrolling body TABLE element.
- *
- * @method getBdTableEl
- * @return {HTMLElement} Reference to TABLE element.
- */
-getBdTableEl : function() {
-    return this._elTable;
-},
-
-/**
- * Disables ScrollingDataTable UI.
- *
- * @method disable
- */
-disable : function() {
-    var elMask = this._elMask;
-    elMask.style.width = this._elBdContainer.offsetWidth + "px";
-    elMask.style.height = this._elHdContainer.offsetHeight + this._elBdContainer.offsetHeight + "px";
-    elMask.style.display = "";
-    this.fireEvent("disableEvent");
-},
-
-/**
- * Removes given Column. NOTE: You cannot remove nested Columns. You can only remove
- * non-nested Columns, and top-level parent Columns (which will remove all
- * children Columns).
- *
- * @method removeColumn
- * @param oColumn {YAHOO.widget.Column} Column instance.
- * @return oColumn {YAHOO.widget.Column} Removed Column instance.
- */
-removeColumn : function(oColumn) {
-    // Store scroll pos
-    var hdPos = this._elHdContainer.scrollLeft;
-    var bdPos = this._elBdContainer.scrollLeft;
-    
-    // Call superclass method
-    oColumn = SDT.superclass.removeColumn.call(this, oColumn);
-    
-    // Restore scroll pos
-    this._elHdContainer.scrollLeft = hdPos;
-    this._elBdContainer.scrollLeft = bdPos;
-    
-    return oColumn;
-},
-
-/**
- * Inserts given Column at the index if given, otherwise at the end. NOTE: You
- * can only add non-nested Columns and top-level parent Columns. You cannot add
- * a nested Column to an existing parent.
- *
- * @method insertColumn
- * @param oColumn {Object | YAHOO.widget.Column} Object literal Column
- * definition or a Column instance.
- * @param index {Number} (optional) New tree index.
- * @return oColumn {YAHOO.widget.Column} Inserted Column instance. 
- */
-insertColumn : function(oColumn, index) {
-    // Store scroll pos
-    var hdPos = this._elHdContainer.scrollLeft;
-    var bdPos = this._elBdContainer.scrollLeft;
-    
-    // Call superclass method
-    var oNewColumn = SDT.superclass.insertColumn.call(this, oColumn, index);
-    
-    // Restore scroll pos
-    this._elHdContainer.scrollLeft = hdPos;
-    this._elBdContainer.scrollLeft = bdPos;
-    
-    return oNewColumn;
-},
-
-/**
- * Removes given Column and inserts into given tree index. NOTE: You
- * can only reorder non-nested Columns and top-level parent Columns. You cannot
- * reorder a nested Column to an existing parent.
- *
- * @method reorderColumn
- * @param oColumn {YAHOO.widget.Column} Column instance.
- * @param index {Number} New tree index.
- */
-reorderColumn : function(oColumn, index) {
-    // Store scroll pos
-    var hdPos = this._elHdContainer.scrollLeft;
-    var bdPos = this._elBdContainer.scrollLeft;
-    
-    // Call superclass method
-    var oNewColumn = SDT.superclass.reorderColumn.call(this, oColumn, index);
-    
-    // Restore scroll pos
-    this._elHdContainer.scrollLeft = hdPos;
-    this._elBdContainer.scrollLeft = bdPos;
-
-    return oNewColumn;
-},
-
-/**
- * Sets given Column to given pixel width. If new width is less than minWidth
- * width, sets to minWidth. Updates oColumn.width value.
- *
- * @method setColumnWidth
- * @param oColumn {YAHOO.widget.Column} Column instance.
- * @param nWidth {Number} New width in pixels.
- */
-setColumnWidth : function(oColumn, nWidth) {
-    oColumn = this.getColumn(oColumn);
-    if(oColumn) {
-        this._storeScrollPositions();
-
-        // Validate new width against minWidth
-        if(lang.isNumber(nWidth)) {
-            nWidth = (nWidth > oColumn.minWidth) ? nWidth : oColumn.minWidth;
-
-            // Save state
-            oColumn.width = nWidth;
-            
-            // Resize the DOM elements
-            this._setColumnWidth(oColumn, nWidth+"px");
-            this._syncScroll();
-            
-            this.fireEvent("columnSetWidthEvent",{column:oColumn,width:nWidth});
-            YAHOO.log("Set width of Column " + oColumn + " to " + nWidth + "px", "info", this.toString());
-        }
-        // Unsets a width to auto-size
-        else if(nWidth === null) {
-            // Save state
-            oColumn.width = nWidth;
-            
-            // Resize the DOM elements
-            this._setColumnWidth(oColumn, "auto");
-            this.validateColumnWidths(oColumn);
-            this.fireEvent("columnUnsetWidthEvent",{column:oColumn});
-            YAHOO.log("Column " + oColumn + " width unset", "info", this.toString());
-        }
-        
-        // Bug 2339454: resize then sort misaligment
-        this._clearTrTemplateEl();
-    }
-    else {
-        YAHOO.log("Could not set width of Column " + oColumn + " to " + nWidth + "px", "warn", this.toString());
-    }
-},
-
-/**
- * Scrolls to given row or cell
- *
- * @method scrollTo
- * @param to {YAHOO.widget.Record | HTMLElement } Itme to scroll to.
- */
-scrollTo : function(to) {
-        var td = this.getTdEl(to);
-        if(td) {
-            this.clearScrollPositions();
-            this.getBdContainerEl().scrollLeft = td.offsetLeft;
-            this.getBdContainerEl().scrollTop = td.parentNode.offsetTop;
-        }
-        else {
-            var tr = this.getTrEl(to);
-            if(tr) {
-                this.clearScrollPositions();
-                this.getBdContainerEl().scrollTop = tr.offsetTop;
-            }
-        }
-},
-
-/**
- * Displays message within secondary TBODY.
- *
- * @method showTableMessage
- * @param sHTML {String} (optional) Value for innerHTMlang.
- * @param sClassName {String} (optional) Classname.
- */
-showTableMessage : function(sHTML, sClassName) {
-    var elCell = this._elMsgTd;
-    if(lang.isString(sHTML)) {
-        elCell.firstChild.innerHTML = sHTML;
-    }
-    if(lang.isString(sClassName)) {
-        Dom.addClass(elCell.firstChild, sClassName);
-    }
-
-    // Needed for SDT only
-    var elThead = this.getTheadEl();
-    var elTable = elThead.parentNode;
-    var newWidth = elTable.offsetWidth;
-    this._elMsgTbody.parentNode.style.width = this.getTheadEl().parentNode.offsetWidth + "px";
-
-    this._elMsgTbody.style.display = "";
-
-    this.fireEvent("tableMsgShowEvent", {html:sHTML, className:sClassName});
-    YAHOO.log("DataTable showing message: " + sHTML, "info", this.toString());
-},
-
-
-
-
-
-
-
-
-
-
-
-
-
-/////////////////////////////////////////////////////////////////////////////
-//
-// Private Custom Event Handlers
-//
-/////////////////////////////////////////////////////////////////////////////
-
-/**
- * Handles Column mutations
- *
- * @method onColumnChange
- * @param oArgs {Object} Custom Event data.
- */
-_onColumnChange : function(oArg) {
-    // Figure out which Column changed
-    var oColumn = (oArg.column) ? oArg.column :
-            (oArg.editor) ? oArg.editor.column : null;
-    this._storeScrollPositions();
-    this.validateColumnWidths(oColumn);
-},
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-/////////////////////////////////////////////////////////////////////////////
-//
-// Private DOM Event Handlers
-//
-/////////////////////////////////////////////////////////////////////////////
-
-/**
- * Syncs scrolltop and scrollleft of all TABLEs.
- *
- * @method _onScroll
- * @param e {HTMLEvent} The scroll event.
- * @param oSelf {YAHOO.widget.ScrollingDataTable} ScrollingDataTable instance.
- * @private
- */
-_onScroll : function(e, oSelf) {
-    oSelf._elHdContainer.scrollLeft = oSelf._elBdContainer.scrollLeft;
-
-    if(oSelf._oCellEditor && oSelf._oCellEditor.isActive) {
-        oSelf.fireEvent("editorBlurEvent", {editor:oSelf._oCellEditor});
-        oSelf.cancelCellEditor();
-    }
-
-    var elTarget = Ev.getTarget(e);
-    var elTag = elTarget.nodeName.toLowerCase();
-    oSelf.fireEvent("tableScrollEvent", {event:e, target:elTarget});
-},
-
-/**
- * Handles keydown events on the THEAD element.
- *
- * @method _onTheadKeydown
- * @param e {HTMLEvent} The key event.
- * @param oSelf {YAHOO.widget.ScrollingDataTable} ScrollingDataTable instance.
- * @private
- */
-_onTheadKeydown : function(e, oSelf) {
-    // If tabbing to next TH label link causes THEAD to scroll,
-    // need to sync scrollLeft with TBODY
-    if(Ev.getCharCode(e) === 9) {
-        setTimeout(function() {
-            if((oSelf instanceof SDT) && oSelf._sId) {
-                oSelf._elBdContainer.scrollLeft = oSelf._elHdContainer.scrollLeft;
-            }
-        },0);
-    }
-    
-    var elTarget = Ev.getTarget(e);
-    var elTag = elTarget.nodeName.toLowerCase();
-    var bKeepBubbling = true;
-    while(elTarget && (elTag != "table")) {
-        switch(elTag) {
-            case "body":
-                return;
-            case "input":
-            case "textarea":
-                // TODO: implement textareaKeyEvent
-                break;
-            case "thead":
-                bKeepBubbling = oSelf.fireEvent("theadKeyEvent",{target:elTarget,event:e});
-                break;
-            default:
-                break;
-        }
-        if(bKeepBubbling === false) {
-            return;
-        }
-        else {
-            elTarget = elTarget.parentNode;
-            if(elTarget) {
-                elTag = elTarget.nodeName.toLowerCase();
-            }
-        }
-    }
-    oSelf.fireEvent("tableKeyEvent",{target:(elTarget || oSelf._elContainer),event:e});
-}
-
-
-
-
-/**
- * Fired when a fixed scrolling DataTable has a scroll.
- *
- * @event tableScrollEvent
- * @param oArgs.event {HTMLEvent} The event object.
- * @param oArgs.target {HTMLElement} The DataTable's CONTAINER element (in IE)
- * or the DataTable's TBODY element (everyone else).
- *
- */
-
-
-
-
-});
-
-})();
-
-(function () {
-
-var lang   = YAHOO.lang,
-    util   = YAHOO.util,
-    widget = YAHOO.widget,
-    ua     = YAHOO.env.ua,
-    
-    Dom    = util.Dom,
-    Ev     = util.Event,
-    
-    DT     = widget.DataTable;
-/****************************************************************************/
-/****************************************************************************/
-/****************************************************************************/
-    
-/**
- * The BaseCellEditor class provides base functionality common to all inline cell
- * editors for a DataTable widget.
- *
- * @namespace YAHOO.widget
- * @class BaseCellEditor
- * @uses YAHOO.util.EventProvider 
- * @constructor
- * @param sType {String} Type indicator, to map to YAHOO.widget.DataTable.Editors.
- * @param oConfigs {Object} (Optional) Object literal of configs.
- */
-widget.BaseCellEditor = function(sType, oConfigs) {
-    this._sId = this._sId || "yui-ceditor" + YAHOO.widget.BaseCellEditor._nCount++;
-    this._sType = sType;
-    
-    // Validate inputs
-    this._initConfigs(oConfigs); 
-    
-    // Create Custom Events
-    this._initEvents();
-             
-    // Draw UI
-    this.render();
-};
-
-var BCE = widget.BaseCellEditor;
-
-/////////////////////////////////////////////////////////////////////////////
-//
-// Static members
-//
-/////////////////////////////////////////////////////////////////////////////
-lang.augmentObject(BCE, {
-
-/**
- * Global instance counter.
- *
- * @property CellEditor._nCount
- * @type Number
- * @static
- * @default 0
- * @private 
- */
-_nCount : 0,
-
-/**
- * Class applied to CellEditor container.
- *
- * @property CellEditor.CLASS_CELLEDITOR
- * @type String
- * @static
- * @default "yui-ceditor"
- */
-CLASS_CELLEDITOR : "yui-ceditor"
-
-});
-
-BCE.prototype = {
-/////////////////////////////////////////////////////////////////////////////
-//
-// Private members
-//
-/////////////////////////////////////////////////////////////////////////////
-/**
- * Unique id assigned to instance "yui-ceditorN", useful prefix for generating unique
- * DOM ID strings and log messages.
- *
- * @property _sId
- * @type String
- * @private
- */
-_sId : null,
-
-/**
- * Editor type.
- *
- * @property _sType
- * @type String
- * @private
- */
-_sType : null,
-
-/**
- * DataTable instance.
- *
- * @property _oDataTable
- * @type YAHOO.widget.DataTable
- * @private 
- */
-_oDataTable : null,
-
-/**
- * Column instance.
- *
- * @property _oColumn
- * @type YAHOO.widget.Column
- * @default null
- * @private 
- */
-_oColumn : null,
-
-/**
- * Record instance.
- *
- * @property _oRecord
- * @type YAHOO.widget.Record
- * @default null
- * @private 
- */
-_oRecord : null,
-
-/**
- * TD element.
- *
- * @property _elTd
- * @type HTMLElement
- * @default null
- * @private
- */
-_elTd : null,
-
-/**
- * Container for inline editor.
- *
- * @property _elContainer
- * @type HTMLElement
- * @private 
- */
-_elContainer : null,
-
-/**
- * Reference to Cancel button, if available.
- *
- * @property _elCancelBtn
- * @type HTMLElement
- * @default null
- * @private 
- */
-_elCancelBtn : null,
-
-/**
- * Reference to Save button, if available.
- *
- * @property _elSaveBtn
- * @type HTMLElement
- * @default null
- * @private 
- */
-_elSaveBtn : null,
-
-
-
-
-
-
-
-
-/////////////////////////////////////////////////////////////////////////////
-//
-// Private methods
-//
-/////////////////////////////////////////////////////////////////////////////
-
-/**
- * Initialize configs.
- *
- * @method _initConfigs
- * @private   
- */
-_initConfigs : function(oConfigs) {
-    // Object literal defines CellEditor configs
-    if(oConfigs && YAHOO.lang.isObject(oConfigs)) {
-        for(var sConfig in oConfigs) {
-            if(sConfig) {
-                this[sConfig] = oConfigs[sConfig];
-            }
-        }
-    }
-},
-
-/**
- * Initialize Custom Events.
- *
- * @method _initEvents
- * @private   
- */
-_initEvents : function() {
-    this.createEvent("showEvent");
-    this.createEvent("keydownEvent");
-    this.createEvent("invalidDataEvent");
-    this.createEvent("revertEvent");
-    this.createEvent("saveEvent");
-    this.createEvent("cancelEvent");
-    this.createEvent("blurEvent");
-    this.createEvent("blockEvent");
-    this.createEvent("unblockEvent");
-},
-
-
-
-
-
-
-
-
-
-
-
-
-
-/////////////////////////////////////////////////////////////////////////////
-//
-// Public properties
-//
-/////////////////////////////////////////////////////////////////////////////
-/**
- * Implementer defined function that can submit the input value to a server. This
- * function must accept the arguments fnCallback and oNewValue. When the submission
- * is complete, the function must also call fnCallback(bSuccess, oNewValue) to 
- * finish the save routine in the CellEditor. This function can also be used to 
- * perform extra validation or input value manipulation. 
- *
- * @property asyncSubmitter
- * @type HTMLFunction
- */
-asyncSubmitter : null,
-
-/**
- * Current value.
- *
- * @property value
- * @type MIXED
- */
-value : null,
-
-/**
- * Default value in case Record data is undefined. NB: Null values will not trigger
- * the default value.
- *
- * @property defaultValue
- * @type MIXED
- * @default null
- */
-defaultValue : null,
-
-/**
- * Validator function for input data, called from the DataTable instance scope,
- * receives the arguments (inputValue, currentValue, editorInstance) and returns
- * either the validated (or type-converted) value or undefined.
- *
- * @property validator
- * @type HTMLFunction
- * @default null
- */
-validator : null,
-
-/**
- * If validation is enabled, resets input field of invalid data.
- *
- * @property resetInvalidData
- * @type Boolean
- * @default true
- */
-resetInvalidData : true,
-
-/**
- * True if currently active.
- *
- * @property isActive
- * @type Boolean
- */
-isActive : false,
-
-/**
- * Text to display on Save button.
- *
- * @property LABEL_SAVE
- * @type String
- * @default "Save"
- */
-LABEL_SAVE : "Save",
-
-/**
- * Text to display on Cancel button.
- *
- * @property LABEL_CANCEL
- * @type String
- * @default "Cancel"
- */
-LABEL_CANCEL : "Cancel",
-
-/**
- * True if Save/Cancel buttons should not be displayed in the CellEditor.
- *
- * @property disableBtns
- * @type Boolean
- * @default false
- */
-disableBtns : false,
-
-
-
-
-
-
-
-/////////////////////////////////////////////////////////////////////////////
-//
-// Public methods
-//
-/////////////////////////////////////////////////////////////////////////////
-/**
- * CellEditor instance name, for logging.
- *
- * @method toString
- * @return {String} Unique name of the CellEditor instance.
- */
-
-toString : function() {
-    return "CellEditor instance " + this._sId;
-},
-
-/**
- * CellEditor unique ID.
- *
- * @method getId
- * @return {String} Unique ID of the CellEditor instance.
- */
-
-getId : function() {
-    return this._sId;
-},
-
-/**
- * Returns reference to associated DataTable instance.
- *
- * @method getDataTable
- * @return {YAHOO.widget.DataTable} DataTable instance.
- */
-
-getDataTable : function() {
-    return this._oDataTable;
-},
-
-/**
- * Returns reference to associated Column instance.
- *
- * @method getColumn
- * @return {YAHOO.widget.Column} Column instance.
- */
-
-getColumn : function() {
-    return this._oColumn;
-},
-
-/**
- * Returns reference to associated Record instance.
- *
- * @method getRecord
- * @return {YAHOO.widget.Record} Record instance.
- */
-
-getRecord : function() {
-    return this._oRecord;
-},
-
-
-
-/**
- * Returns reference to associated TD element.
- *
- * @method getTdEl
- * @return {HTMLElement} TD element.
- */
-
-getTdEl : function() {
-    return this._elTd;
-},
-
-/**
- * Returns container element.
- *
- * @method getContainerEl
- * @return {HTMLElement} Reference to container element.
- */
-
-getContainerEl : function() {
-    return this._elContainer;
-},
-
-/**
- * Nulls out the entire CellEditor instance and related objects, removes attached
- * event listeners, and clears out DOM elements inside the container, removes
- * container from the DOM.
- *
- * @method destroy
- */
-destroy : function() {
-    this.unsubscribeAll();
-    
-    // Column is late-binding in attach()
-    var oColumn = this.getColumn();
-    if(oColumn) {
-        oColumn.editor = null;
-    }
-    
-    var elContainer = this.getContainerEl();
-    Ev.purgeElement(elContainer, true);
-    elContainer.parentNode.removeChild(elContainer);
-},
-
-/**
- * Renders DOM elements and attaches event listeners.
- *
- * @method render
- */
-render : function() {
-    if(this._elContainer) {
-        YAHOO.util.Event.purgeElement(this._elContainer, true);
-        this._elContainer.innerHTML = "";
-    }
-
-    // Render Cell Editor container element as first child of body
-    var elContainer = document.createElement("div");
-    elContainer.id = this.getId() + "-container"; // Needed for tracking blur event
-    elContainer.style.display = "none";
-    elContainer.tabIndex = 0;
-    elContainer.className = DT.CLASS_EDITOR;
-    document.body.insertBefore(elContainer, document.body.firstChild);
-    this._elContainer = elContainer;
-    
-    // Handle ESC key
-    Ev.addListener(elContainer, "keydown", function(e, oSelf) {
-        // ESC cancels Cell Editor
-        if((e.keyCode == 27)) {
-            var target = Ev.getTarget(e);
-            // workaround for Mac FF3 bug that disabled clicks when ESC hit when
-            // select is open. [bug 2273056]
-            if (target.nodeName && target.nodeName.toLowerCase() === 'select') {
-                target.blur();
-            }
-            oSelf.cancel();
-        }
-        // Pass through event
-        oSelf.fireEvent("keydownEvent", {editor:this, event:e});
-    }, this);
-    
-    this.renderForm();
-
-    // Show Save/Cancel buttons
-    if(!this.disableBtns) {
-        this.renderBtns();
-    }
-    
-    this.doAfterRender();
-},
-
-/**
- * Renders Save/Cancel buttons.
- *
- * @method renderBtns
- */
-renderBtns : function() {
-    // Buttons
-    var elBtnsDiv = this.getContainerEl().appendChild(document.createElement("div"));
-    elBtnsDiv.className = DT.CLASS_BUTTON;
-
-    // Save button
-    var elSaveBtn = elBtnsDiv.appendChild(document.createElement("button"));
-    elSaveBtn.className = DT.CLASS_DEFAULT;
-    elSaveBtn.innerHTML = this.LABEL_SAVE;
-    Ev.addListener(elSaveBtn, "click", function(oArgs) {
-        this.save();
-    }, this, true);
-    this._elSaveBtn = elSaveBtn;
-
-    // Cancel button
-    var elCancelBtn = elBtnsDiv.appendChild(document.createElement("button"));
-    elCancelBtn.innerHTML = this.LABEL_CANCEL;
-    Ev.addListener(elCancelBtn, "click", function(oArgs) {
-        this.cancel();
-    }, this, true);
-    this._elCancelBtn = elCancelBtn;
-},
-
-/**
- * Attach CellEditor for a new interaction.
- *
- * @method attach
- * @param oDataTable {YAHOO.widget.DataTable} Associated DataTable instance.
- * @param elCell {HTMLElement} Cell to edit.  
- */
-attach : function(oDataTable, elCell) {
-    // Validate 
-    if(oDataTable instanceof YAHOO.widget.DataTable) {
-        this._oDataTable = oDataTable;
-        
-        // Validate cell
-        elCell = oDataTable.getTdEl(elCell);
-        if(elCell) {
-            this._elTd = elCell;
-
-            // Validate Column
-            var oColumn = oDataTable.getColumn(elCell);
-            if(oColumn) {
-                this._oColumn = oColumn;
-                
-                // Validate Record
-                var oRecord = oDataTable.getRecord(elCell);
-                if(oRecord) {
-                    this._oRecord = oRecord;
-                    var value = oRecord.getData(this.getColumn().getField());
-                    this.value = (value !== undefined) ? value : this.defaultValue;
-                    return true;
-                }
-            }            
-        }
-    }
-    YAHOO.log("Could not attach CellEditor","error",this.toString());
-    return false;
-},
-
-/**
- * Moves container into position for display.
- *
- * @method move
- */
-move : function() {
-    // Move Editor
-    var elContainer = this.getContainerEl(),
-        elTd = this.getTdEl(),
-        x = Dom.getX(elTd),
-        y = Dom.getY(elTd);
-
-    //TODO: remove scrolling logic
-    // SF doesn't get xy for cells in scrolling table
-    // when tbody display is set to block
-    if(isNaN(x) || isNaN(y)) {
-        var elTbody = this.getDataTable().getTbodyEl();
-        x = elTd.offsetLeft + // cell pos relative to table
-                Dom.getX(elTbody.parentNode) - // plus table pos relative to document
-                elTbody.scrollLeft; // minus tbody scroll
-        y = elTd.offsetTop + // cell pos relative to table
-                Dom.getY(elTbody.parentNode) - // plus table pos relative to document
-                elTbody.scrollTop + // minus tbody scroll
-                this.getDataTable().getTheadEl().offsetHeight; // account for fixed THEAD cells
-    }
-
-    elContainer.style.left = x + "px";
-    elContainer.style.top = y + "px";
-},
-
-/**
- * Displays CellEditor UI in the correct position.
- *
- * @method show
- */
-show : function() {
-    this.resetForm();
-    this.isActive = true;
-    this.getContainerEl().style.display = "";
-    this.focus();
-    this.fireEvent("showEvent", {editor:this});
-    YAHOO.log("CellEditor shown", "info", this.toString()); 
-},
-
-/**
- * Fires blockEvent
- *
- * @method block
- */
-block : function() {
-    this.fireEvent("blockEvent", {editor:this});
-    YAHOO.log("CellEditor blocked", "info", this.toString()); 
-},
-
-/**
- * Fires unblockEvent
- *
- * @method unblock
- */
-unblock : function() {
-    this.fireEvent("unblockEvent", {editor:this});
-    YAHOO.log("CellEditor unblocked", "info", this.toString()); 
-},
-
-/**
- * Saves value of CellEditor and hides UI.
- *
- * @method save
- */
-save : function() {
-    // Get new value
-    var inputValue = this.getInputValue();
-    var validValue = inputValue;
-    
-    // Validate new value
-    if(this.validator) {
-        validValue = this.validator.call(this.getDataTable(), inputValue, this.value, this);
-        if(validValue === undefined ) {
-            if(this.resetInvalidData) {
-                this.resetForm();
-            }
-            this.fireEvent("invalidDataEvent",
-                    {editor:this, oldData:this.value, newData:inputValue});
-            YAHOO.log("Could not save Cell Editor input due to invalid data " +
-                    lang.dump(inputValue), "warn", this.toString());
-            return;
-        }
-    }
-        
-    var oSelf = this;
-    var finishSave = function(bSuccess, oNewValue) {
-        var oOrigValue = oSelf.value;
-        if(bSuccess) {
-            // Update new value
-            oSelf.value = oNewValue;
-            oSelf.getDataTable().updateCell(oSelf.getRecord(), oSelf.getColumn(), oNewValue);
-            
-            // Hide CellEditor
-            oSelf.getContainerEl().style.display = "none";
-            oSelf.isActive = false;
-            oSelf.getDataTable()._oCellEditor =  null;
-            
-            oSelf.fireEvent("saveEvent",
-                    {editor:oSelf, oldData:oOrigValue, newData:oSelf.value});
-            YAHOO.log("Cell Editor input saved", "info", this.toString());
-        }
-        else {
-            oSelf.resetForm();
-            oSelf.fireEvent("revertEvent",
-                    {editor:oSelf, oldData:oOrigValue, newData:oNewValue});
-            YAHOO.log("Could not save Cell Editor input " +
-                    lang.dump(oNewValue), "warn", oSelf.toString());
-        }
-        oSelf.unblock();
-    };
-    
-    this.block();
-    if(lang.isFunction(this.asyncSubmitter)) {
-        this.asyncSubmitter.call(this, finishSave, validValue);
-    } 
-    else {   
-        finishSave(true, validValue);
-    }
-},
-
-/**
- * Cancels CellEditor input and hides UI.
- *
- * @method cancel
- */
-cancel : function() {
-    if(this.isActive) {
-        this.getContainerEl().style.display = "none";
-        this.isActive = false;
-        this.getDataTable()._oCellEditor =  null;
-        this.fireEvent("cancelEvent", {editor:this});
-        YAHOO.log("CellEditor canceled", "info", this.toString());
-    }
-    else {
-        YAHOO.log("Unable to cancel CellEditor", "warn", this.toString());
-    }
-},
-
-/**
- * Renders form elements.
- *
- * @method renderForm
- */
-renderForm : function() {
-    // To be implemented by subclass
-},
-
-/**
- * Access to add additional event listeners.
- *
- * @method doAfterRender
- */
-doAfterRender : function() {
-    // To be implemented by subclass
-},
-
-
-/**
- * After rendering form, if disabledBtns is set to true, then sets up a mechanism
- * to save input without them. 
- *
- * @method handleDisabledBtns
- */
-handleDisabledBtns : function() {
-    // To be implemented by subclass
-},
-
-/**
- * Resets CellEditor UI to initial state.
- *
- * @method resetForm
- */
-resetForm : function() {
-    // To be implemented by subclass
-},
-
-/**
- * Sets focus in CellEditor.
- *
- * @method focus
- */
-focus : function() {
-    // To be implemented by subclass
-},
-
-/**
- * Retrieves input value from CellEditor.
- *
- * @method getInputValue
- */
-getInputValue : function() {
-    // To be implemented by subclass
-}
-
-};
-
-lang.augmentProto(BCE, util.EventProvider);
-
-
-/////////////////////////////////////////////////////////////////////////////
-//
-// Custom Events
-//
-/////////////////////////////////////////////////////////////////////////////
-
-/**
- * Fired when a CellEditor is shown.
- *
- * @event showEvent
- * @param oArgs.editor {YAHOO.widget.CellEditor} The CellEditor instance.
- */
-
-/**
- * Fired when a CellEditor has a keydown.
- *
- * @event keydownEvent
- * @param oArgs.editor {YAHOO.widget.CellEditor} The CellEditor instance. 
- * @param oArgs.event {HTMLEvent} The event object.
- */
-
-/**
- * Fired when a CellEditor input is reverted due to invalid data.
- *
- * @event invalidDataEvent
- * @param oArgs.editor {YAHOO.widget.CellEditor} The CellEditor instance. 
- * @param oArgs.newData {Object} New data value from form input field.
- * @param oArgs.oldData {Object} Old data value.
- */
-
-/**
- * Fired when a CellEditor input is reverted due to asyncSubmitter failure.
- *
- * @event revertEvent
- * @param oArgs.editor {YAHOO.widget.CellEditor} The CellEditor instance. 
- * @param oArgs.newData {Object} New data value from form input field.
- * @param oArgs.oldData {Object} Old data value.
- */
-
-/**
- * Fired when a CellEditor input is saved.
- *
- * @event saveEvent
- * @param oArgs.editor {YAHOO.widget.CellEditor} The CellEditor instance. 
- * @param oArgs.newData {Object} New data value from form input field.
- * @param oArgs.oldData {Object} Old data value.
- */
-
-/**
- * Fired when a CellEditor input is canceled.
- *
- * @event cancelEvent
- * @param oArgs.editor {YAHOO.widget.CellEditor} The CellEditor instance. 
- */
-
-/**
- * Fired when a CellEditor has a blur event.
- *
- * @event blurEvent
- * @param oArgs.editor {YAHOO.widget.CellEditor} The CellEditor instance. 
- */
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-/****************************************************************************/
-/****************************************************************************/
-/****************************************************************************/
-    
-/**
- * The CheckboxCellEditor class provides functionality for inline editing
- * DataTable cell data with checkboxes.
- *
- * @namespace YAHOO.widget
- * @class CheckboxCellEditor
- * @extends YAHOO.widget.BaseCellEditor
- * @constructor
- * @param oConfigs {Object} (Optional) Object literal of configs.
- */
-widget.CheckboxCellEditor = function(oConfigs) {
-    this._sId = "yui-checkboxceditor" + YAHOO.widget.BaseCellEditor._nCount++;
-    widget.CheckboxCellEditor.superclass.constructor.call(this, "checkbox", oConfigs); 
-};
-
-// CheckboxCellEditor extends BaseCellEditor
-lang.extend(widget.CheckboxCellEditor, BCE, {
-
-/////////////////////////////////////////////////////////////////////////////
-//
-// CheckboxCellEditor public properties
-//
-/////////////////////////////////////////////////////////////////////////////
-/**
- * Array of checkbox values. Can either be a simple array (e.g., ["red","green","blue"])
- * or a an array of objects (e.g., [{label:"red", value:"#FF0000"},
- * {label:"green", value:"#00FF00"}, {label:"blue", value:"#0000FF"}]). 
- *
- * @property checkboxOptions
- * @type String[] | Object[]
- */
-checkboxOptions : null,
-
-/**
- * Reference to the checkbox elements.
- *
- * @property checkboxes
- * @type HTMLElement[] 
- */
-checkboxes : null,
-
-/**
- * Array of checked values
- *
- * @property value
- * @type String[] 
- */
-value : null,
-
-/////////////////////////////////////////////////////////////////////////////
-//
-// CheckboxCellEditor public methods
-//
-/////////////////////////////////////////////////////////////////////////////
-
-/**
- * Render a form with input(s) type=checkbox.
- *
- * @method renderForm
- */
-renderForm : function() {
-    if(lang.isArray(this.checkboxOptions)) {
-        var checkboxOption, checkboxValue, checkboxId, elLabel, j, len;
-        
-        // Create the checkbox buttons in an IE-friendly way...
-        for(j=0,len=this.checkboxOptions.length; j<len; j++) {
-            checkboxOption = this.checkboxOptions[j];
-            checkboxValue = lang.isValue(checkboxOption.value) ?
-                    checkboxOption.value : checkboxOption;
-
-            checkboxId = this.getId() + "-chk" + j;
-            this.getContainerEl().innerHTML += "<input type=\"checkbox\"" +
-                    " id=\"" + checkboxId + "\"" + // Needed for label
-                    " value=\"" + checkboxValue + "\" />";
-            
-            // Create the labels in an IE-friendly way
-            elLabel = this.getContainerEl().appendChild(document.createElement("label"));
-            elLabel.htmlFor = checkboxId;
-            elLabel.innerHTML = lang.isValue(checkboxOption.label) ?
-                    checkboxOption.label : checkboxOption;
-        }
-        
-        // Store the reference to the checkbox elements
-        var allCheckboxes = [];
-        for(j=0; j<len; j++) {
-            allCheckboxes[allCheckboxes.length] = this.getContainerEl().childNodes[j*2];
-        }
-        this.checkboxes = allCheckboxes;
-
-        if(this.disableBtns) {
-            this.handleDisabledBtns();
-        }
-    }
-    else {
-        YAHOO.log("Could not find checkboxOptions", "error", this.toString());
-    }
-},
-
-/**
- * After rendering form, if disabledBtns is set to true, then sets up a mechanism
- * to save input without them. 
- *
- * @method handleDisabledBtns
- */
-handleDisabledBtns : function() {
-    Ev.addListener(this.getContainerEl(), "click", function(v){
-        if(Ev.getTarget(v).tagName.toLowerCase() === "input") {
-            // Save on blur
-            this.save();
-        }
-    }, this, true);
-},
-
-/**
- * Resets CheckboxCellEditor UI to initial state.
- *
- * @method resetForm
- */
-resetForm : function() {
-    // Normalize to array
-    var originalValues = lang.isArray(this.value) ? this.value : [this.value];
-    
-    // Match checks to value
-    for(var i=0, j=this.checkboxes.length; i<j; i++) {
-        this.checkboxes[i].checked = false;
-        for(var k=0, len=originalValues.length; k<len; k++) {
-            if(this.checkboxes[i].value === originalValues[k]) {
-                this.checkboxes[i].checked = true;
-            }
-        }
-    }
-},
-
-/**
- * Sets focus in CheckboxCellEditor.
- *
- * @method focus
- */
-focus : function() {
-    this.checkboxes[0].focus();
-},
-
-/**
- * Retrieves input value from CheckboxCellEditor.
- *
- * @method getInputValue
- */
-getInputValue : function() {
-    var checkedValues = [];
-    for(var i=0, j=this.checkboxes.length; i<j; i++) {
-        if(this.checkboxes[i].checked) {
-            checkedValues[checkedValues.length] = this.checkboxes[i].value;
-        }
-    }  
-    return checkedValues;
-}
-
-});
-
-// Copy static members to CheckboxCellEditor class
-lang.augmentObject(widget.CheckboxCellEditor, BCE);
-
-
-
-
-
-
-
-
-/****************************************************************************/
-/****************************************************************************/
-/****************************************************************************/
-    
-/**
- * The DataCellEditor class provides functionality for inline editing
- * DataTable cell data with a YUI Calendar.
- *
- * @namespace YAHOO.widget
- * @class DateCellEditor
- * @extends YAHOO.widget.BaseCellEditor 
- * @constructor
- * @param oConfigs {Object} (Optional) Object literal of configs.
- */
-widget.DateCellEditor = function(oConfigs) {
-    this._sId = "yui-dateceditor" + YAHOO.widget.BaseCellEditor._nCount++;
-    widget.DateCellEditor.superclass.constructor.call(this, "date", oConfigs); 
-};
-
-// CheckboxCellEditor extends BaseCellEditor
-lang.extend(widget.DateCellEditor, BCE, {
-
-/////////////////////////////////////////////////////////////////////////////
-//
-// DateCellEditor public properties
-//
-/////////////////////////////////////////////////////////////////////////////
-/**
- * Reference to Calendar instance.
- *
- * @property calendar
- * @type YAHOO.widget.Calendar
- */
-calendar : null,
-
-/**
- * Configs for the calendar instance, to be passed to Calendar constructor.
- *
- * @property calendarOptions
- * @type Object
- */
-calendarOptions : null,
-
-/**
- * Default value.
- *
- * @property defaultValue
- * @type Date
- * @default new Date()
- */
-defaultValue : new Date(),
-
-
-/////////////////////////////////////////////////////////////////////////////
-//
-// DateCellEditor public methods
-//
-/////////////////////////////////////////////////////////////////////////////
-
-/**
- * Render a Calendar.
- *
- * @method renderForm
- */
-renderForm : function() {
-    // Calendar widget
-    if(YAHOO.widget.Calendar) {
-        var calContainer = this.getContainerEl().appendChild(document.createElement("div"));
-        calContainer.id = this.getId() + "-dateContainer"; // Needed for Calendar constructor
-        var calendar =
-                new YAHOO.widget.Calendar(this.getId() + "-date",
-                calContainer.id, this.calendarOptions);
-        calendar.render();
-        calContainer.style.cssFloat = "none";
-
-        if(ua.ie) {
-            var calFloatClearer = this.getContainerEl().appendChild(document.createElement("div"));
-            calFloatClearer.style.clear = "both";
-        }
-        
-        this.calendar = calendar;
-
-        if(this.disableBtns) {
-            this.handleDisabledBtns();
-        }
-    }
-    else {
-        YAHOO.log("Could not find YUI Calendar", "error", this.toString());
-    }
-    
-},
-
-/**
- * After rendering form, if disabledBtns is set to true, then sets up a mechanism
- * to save input without them. 
- *
- * @method handleDisabledBtns
- */
-handleDisabledBtns : function() {
-    this.calendar.selectEvent.subscribe(function(v){
-        // Save on select
-        this.save();
-    }, this, true);
-},
-
-/**
- * Resets DateCellEditor UI to initial state.
- *
- * @method resetForm
- */
-resetForm : function() {
-    var value = this.value;
-    var selectedValue = (value.getMonth()+1)+"/"+value.getDate()+"/"+value.getFullYear();
-    this.calendar.cfg.setProperty("selected",selectedValue,false);
-       this.calendar.render();
-},
-
-/**
- * Sets focus in DateCellEditor.
- *
- * @method focus
- */
-focus : function() {
-    // To be impmlemented by subclass
-},
-
-/**
- * Retrieves input value from DateCellEditor.
- *
- * @method getInputValue
- */
-getInputValue : function() {
-    return this.calendar.getSelectedDates()[0];
-}
-
-});
-
-// Copy static members to DateCellEditor class
-lang.augmentObject(widget.DateCellEditor, BCE);
-
-
-
-
-
-
-
-
-
-/****************************************************************************/
-/****************************************************************************/
-/****************************************************************************/
-    
-/**
- * The DropdownCellEditor class provides functionality for inline editing
- * DataTable cell data a SELECT element.
- *
- * @namespace YAHOO.widget
- * @class DropdownCellEditor
- * @extends YAHOO.widget.BaseCellEditor 
- * @constructor
- * @param oConfigs {Object} (Optional) Object literal of configs.
- */
-widget.DropdownCellEditor = function(oConfigs) {
-    this._sId = "yui-dropdownceditor" + YAHOO.widget.BaseCellEditor._nCount++;
-    widget.DropdownCellEditor.superclass.constructor.call(this, "dropdown", oConfigs);
-};
-
-// DropdownCellEditor extends BaseCellEditor
-lang.extend(widget.DropdownCellEditor, BCE, {
-
-/////////////////////////////////////////////////////////////////////////////
-//
-// DropdownCellEditor public properties
-//
-/////////////////////////////////////////////////////////////////////////////
-/**
- * Array of dropdown values. Can either be a simple array (e.g.,
- * ["Alabama","Alaska","Arizona","Arkansas"]) or a an array of objects (e.g., 
- * [{label:"Alabama", value:"AL"}, {label:"Alaska", value:"AK"},
- * {label:"Arizona", value:"AZ"}, {label:"Arkansas", value:"AR"}]). 
- *
- * @property dropdownOptions
- * @type String[] | Object[]
- */
-dropdownOptions : null,
-
-/**
- * Reference to Dropdown element.
- *
- * @property dropdown
- * @type HTMLElement
- */
-dropdown : null,
-
-/**
- * Enables multi-select.
- *
- * @property multiple
- * @type Boolean
- */
-multiple : false,
-
-/**
- * Specifies number of visible options.
- *
- * @property size
- * @type Number
- */
-size : null,
-
-/////////////////////////////////////////////////////////////////////////////
-//
-// DropdownCellEditor public methods
-//
-/////////////////////////////////////////////////////////////////////////////
-
-/**
- * Render a form with select element.
- *
- * @method renderForm
- */
-renderForm : function() {
-    var elDropdown = this.getContainerEl().appendChild(document.createElement("select"));
-    elDropdown.style.zoom = 1;
-    if(this.multiple) {
-        elDropdown.multiple = "multiple";
-    }
-    if(lang.isNumber(this.size)) {
-        elDropdown.size = this.size;
-    }
-    this.dropdown = elDropdown;
-    
-    if(lang.isArray(this.dropdownOptions)) {
-        var dropdownOption, elOption;
-        for(var i=0, j=this.dropdownOptions.length; i<j; i++) {
-            dropdownOption = this.dropdownOptions[i];
-            elOption = document.createElement("option");
-            elOption.value = (lang.isValue(dropdownOption.value)) ?
-                    dropdownOption.value : dropdownOption;
-            elOption.innerHTML = (lang.isValue(dropdownOption.label)) ?
-                    dropdownOption.label : dropdownOption;
-            elOption = elDropdown.appendChild(elOption);
-        }
-        
-        if(this.disableBtns) {
-            this.handleDisabledBtns();
-        }
-    }
-},
-
-/**
- * After rendering form, if disabledBtns is set to true, then sets up a mechanism
- * to save input without them. 
- *
- * @method handleDisabledBtns
- */
-handleDisabledBtns : function() {
-    // Save on blur for multi-select
-    if(this.multiple) {
-        Ev.addListener(this.dropdown, "blur", function(v){
-            // Save on change
-            this.save();
-        }, this, true);
-    }
-    // Save on change for single-select
-    else {
-        Ev.addListener(this.dropdown, "change", function(v){
-            // Save on change
-            this.save();
-        }, this, true);
-    }
-},
-
-/**
- * Resets DropdownCellEditor UI to initial state.
- *
- * @method resetForm
- */
-resetForm : function() {
-    var allOptions = this.dropdown.options,
-        i=0, j=allOptions.length;
-
-    // Look for multi-select selections
-    if(lang.isArray(this.value)) {
-        var allValues = this.value,
-            m=0, n=allValues.length,
-            hash = {};
-        // Reset all selections and stash options in a value hash
-        for(; i<j; i++) {
-            allOptions[i].selected = false;
-            hash[allOptions[i].value] = allOptions[i];
-        }
-        for(; m<n; m++) {
-            if(hash[allValues[m]]) {
-                hash[allValues[m]].selected = true;
-            }
-        }
-    }
-    // Only need to look for a single selection
-    else {
-        for(; i<j; i++) {
-            if(this.value === allOptions[i].value) {
-                allOptions[i].selected = true;
-            }
-        }
-    }
-},
-
-/**
- * Sets focus in DropdownCellEditor.
- *
- * @method focus
- */
-focus : function() {
-    this.getDataTable()._focusEl(this.dropdown);
-},
-
-/**
- * Retrieves input value from DropdownCellEditor.
- *
- * @method getInputValue
- */
-getInputValue : function() {
-    var allOptions = this.dropdown.options;
-    
-    // Look for multiple selections
-    if(this.multiple) {
-        var values = [],
-            i=0, j=allOptions.length;
-        for(; i<j; i++) {
-            if(allOptions[i].selected) {
-                values.push(allOptions[i].value);
-            }
-        }
-        return values;
-    }
-    // Only need to look for single selection
-    else {
-        return allOptions[allOptions.selectedIndex].value;
-    }
-}
-
-});
-
-// Copy static members to DropdownCellEditor class
-lang.augmentObject(widget.DropdownCellEditor, BCE);
-
-
-
-
-
-
-/****************************************************************************/
-/****************************************************************************/
-/****************************************************************************/
-    
-/**
- * The RadioCellEditor class provides functionality for inline editing
- * DataTable cell data with radio buttons.
- *
- * @namespace YAHOO.widget
- * @class RadioCellEditor
- * @extends YAHOO.widget.BaseCellEditor 
- * @constructor
- * @param oConfigs {Object} (Optional) Object literal of configs.
- */
-widget.RadioCellEditor = function(oConfigs) {
-    this._sId = "yui-radioceditor" + YAHOO.widget.BaseCellEditor._nCount++;
-    widget.RadioCellEditor.superclass.constructor.call(this, "radio", oConfigs); 
-};
-
-// RadioCellEditor extends BaseCellEditor
-lang.extend(widget.RadioCellEditor, BCE, {
-
-/////////////////////////////////////////////////////////////////////////////
-//
-// RadioCellEditor public properties
-//
-/////////////////////////////////////////////////////////////////////////////
-/**
- * Reference to radio elements.
- *
- * @property radios
- * @type HTMLElement[]
- */
-radios : null,
-
-/**
- * Array of radio values. Can either be a simple array (e.g., ["yes","no","maybe"])
- * or a an array of objects (e.g., [{label:"yes", value:1}, {label:"no", value:-1},
- * {label:"maybe", value:0}]). 
- *
- * @property radioOptions
- * @type String[] | Object[]
- */
-radioOptions : null,
-
-/////////////////////////////////////////////////////////////////////////////
-//
-// RadioCellEditor public methods
-//
-/////////////////////////////////////////////////////////////////////////////
-
-/**
- * Render a form with input(s) type=radio.
- *
- * @method renderForm
- */
-renderForm : function() {
-    if(lang.isArray(this.radioOptions)) {
-        var radioOption, radioValue, radioId, elLabel;
-        
-        // Create the radio buttons in an IE-friendly way
-        for(var i=0, len=this.radioOptions.length; i<len; i++) {
-            radioOption = this.radioOptions[i];
-            radioValue = lang.isValue(radioOption.value) ?
-                    radioOption.value : radioOption;
-            radioId = this.getId() + "-radio" + i;
-            this.getContainerEl().innerHTML += "<input type=\"radio\"" +
-                    " name=\"" + this.getId() + "\"" +
-                    " value=\"" + radioValue + "\"" +
-                    " id=\"" +  radioId + "\" />"; // Needed for label
-            
-            // Create the labels in an IE-friendly way
-            elLabel = this.getContainerEl().appendChild(document.createElement("label"));
-            elLabel.htmlFor = radioId;
-            elLabel.innerHTML = (lang.isValue(radioOption.label)) ?
-                    radioOption.label : radioOption;
-        }
-        
-        // Store the reference to the checkbox elements
-        var allRadios = [],
-            elRadio;
-        for(var j=0; j<len; j++) {
-            elRadio = this.getContainerEl().childNodes[j*2];
-            allRadios[allRadios.length] = elRadio;
-        }
-        this.radios = allRadios;
-
-        if(this.disableBtns) {
-            this.handleDisabledBtns();
-        }
-    }
-    else {
-        YAHOO.log("Could not find radioOptions", "error", this.toString());
-    }
-},
-
-/**
- * After rendering form, if disabledBtns is set to true, then sets up a mechanism
- * to save input without them. 
- *
- * @method handleDisabledBtns
- */
-handleDisabledBtns : function() {
-    Ev.addListener(this.getContainerEl(), "click", function(v){
-        if(Ev.getTarget(v).tagName.toLowerCase() === "input") {
-            // Save on blur
-            this.save();
-        }
-    }, this, true);
-},
-
-/**
- * Resets RadioCellEditor UI to initial state.
- *
- * @method resetForm
- */
-resetForm : function() {
-    for(var i=0, j=this.radios.length; i<j; i++) {
-        var elRadio = this.radios[i];
-        if(this.value === elRadio.value) {
-            elRadio.checked = true;
-            return;
-        }
-    }
-},
-
-/**
- * Sets focus in RadioCellEditor.
- *
- * @method focus
- */
-focus : function() {
-    for(var i=0, j=this.radios.length; i<j; i++) {
-        if(this.radios[i].checked) {
-            this.radios[i].focus();
-            return;
-        }
-    }
-},
-
-/**
- * Retrieves input value from RadioCellEditor.
- *
- * @method getInputValue
- */
-getInputValue : function() {
-    for(var i=0, j=this.radios.length; i<j; i++) {
-        if(this.radios[i].checked) {
-            return this.radios[i].value;
-        }
-    }
-}
-
-});
-
-// Copy static members to RadioCellEditor class
-lang.augmentObject(widget.RadioCellEditor, BCE);
-
-
-
-
-
-
-/****************************************************************************/
-/****************************************************************************/
-/****************************************************************************/
-    
-/**
- * The TextareaCellEditor class provides functionality for inline editing
- * DataTable cell data with a TEXTAREA element.
- *
- * @namespace YAHOO.widget
- * @class TextareaCellEditor
- * @extends YAHOO.widget.BaseCellEditor 
- * @constructor
- * @param oConfigs {Object} (Optional) Object literal of configs.
- */
-widget.TextareaCellEditor = function(oConfigs) {
-    this._sId = "yui-textareaceditor" + YAHOO.widget.BaseCellEditor._nCount++;
-    widget.TextareaCellEditor.superclass.constructor.call(this, "textarea", oConfigs); 
-};
-
-// TextareaCellEditor extends BaseCellEditor
-lang.extend(widget.TextareaCellEditor, BCE, {
-
-/////////////////////////////////////////////////////////////////////////////
-//
-// TextareaCellEditor public properties
-//
-/////////////////////////////////////////////////////////////////////////////
-/**
- * Reference to textarea element.
- *
- * @property textarea
- * @type HTMLElement
- */
-textarea : null,
-
-
-/////////////////////////////////////////////////////////////////////////////
-//
-// TextareaCellEditor public methods
-//
-/////////////////////////////////////////////////////////////////////////////
-
-/**
- * Render a form with textarea.
- *
- * @method renderForm
- */
-renderForm : function() {
-    var elTextarea = this.getContainerEl().appendChild(document.createElement("textarea"));
-    this.textarea = elTextarea;
-
-    if(this.disableBtns) {
-        this.handleDisabledBtns();
-    }
-},
-
-/**
- * After rendering form, if disabledBtns is set to true, then sets up a mechanism
- * to save input without them. 
- *
- * @method handleDisabledBtns
- */
-handleDisabledBtns : function() {
-    Ev.addListener(this.textarea, "blur", function(v){
-        // Save on blur
-        this.save();
-    }, this, true);        
-},
-
-/**
- * Moves TextareaCellEditor UI to a cell.
- *
- * @method move
- */
-move : function() {
-    this.textarea.style.width = this.getTdEl().offsetWidth + "px";
-    this.textarea.style.height = "3em";
-    YAHOO.widget.TextareaCellEditor.superclass.move.call(this);
-},
-
-/**
- * Resets TextareaCellEditor UI to initial state.
- *
- * @method resetForm
- */
-resetForm : function() {
-    this.textarea.value = this.value;
-},
-
-/**
- * Sets focus in TextareaCellEditor.
- *
- * @method focus
- */
-focus : function() {
-    // Bug 2303181, Bug 2263600
-    this.getDataTable()._focusEl(this.textarea);
-    this.textarea.select();
-},
-
-/**
- * Retrieves input value from TextareaCellEditor.
- *
- * @method getInputValue
- */
-getInputValue : function() {
-    return this.textarea.value;
-}
-
-});
-
-// Copy static members to TextareaCellEditor class
-lang.augmentObject(widget.TextareaCellEditor, BCE);
-
-
-
-
-
-
-
-
-
-/****************************************************************************/
-/****************************************************************************/
-/****************************************************************************/
-    
-/**
- * The TextboxCellEditor class provides functionality for inline editing
- * DataTable cell data with an INPUT TYPE=TEXT element.
- *
- * @namespace YAHOO.widget
- * @class TextboxCellEditor
- * @extends YAHOO.widget.BaseCellEditor 
- * @constructor
- * @param oConfigs {Object} (Optional) Object literal of configs.
- */
-widget.TextboxCellEditor = function(oConfigs) {
-    this._sId = "yui-textboxceditor" + YAHOO.widget.BaseCellEditor._nCount++;
-    widget.TextboxCellEditor.superclass.constructor.call(this, "textbox", oConfigs); 
-};
-
-// TextboxCellEditor extends BaseCellEditor
-lang.extend(widget.TextboxCellEditor, BCE, {
-
-/////////////////////////////////////////////////////////////////////////////
-//
-// TextboxCellEditor public properties
-//
-/////////////////////////////////////////////////////////////////////////////
-/**
- * Reference to the textbox element.
- *
- * @property textbox
- */
-textbox : null,
-
-/////////////////////////////////////////////////////////////////////////////
-//
-// TextboxCellEditor public methods
-//
-/////////////////////////////////////////////////////////////////////////////
-
-/**
- * Render a form with input type=text.
- *
- * @method renderForm
- */
-renderForm : function() {
-    var elTextbox;
-    // Bug 1802582: SF3/Mac needs a form element wrapping the input
-    if(ua.webkit>420) {
-        elTextbox = this.getContainerEl().appendChild(document.createElement("form")).appendChild(document.createElement("input"));
-    }
-    else {
-        elTextbox = this.getContainerEl().appendChild(document.createElement("input"));
-    }
-    elTextbox.type = "text";
-    this.textbox = elTextbox;
-
-    // Save on enter by default
-    // Bug: 1802582 Set up a listener on each textbox to track on keypress
-    // since SF/OP can't preventDefault on keydown
-    Ev.addListener(elTextbox, "keypress", function(v){
-        if((v.keyCode === 13)) {
-            // Prevent form submit
-            YAHOO.util.Event.preventDefault(v);
-            this.save();
-        }
-    }, this, true);
-
-    if(this.disableBtns) {
-        // By default this is no-op since enter saves by default
-        this.handleDisabledBtns();
-    }
-},
-
-/**
- * Moves TextboxCellEditor UI to a cell.
- *
- * @method move
- */
-move : function() {
-    this.textbox.style.width = this.getTdEl().offsetWidth + "px";
-    widget.TextboxCellEditor.superclass.move.call(this);
-},
-
-/**
- * Resets TextboxCellEditor UI to initial state.
- *
- * @method resetForm
- */
-resetForm : function() {
-    this.textbox.value = lang.isValue(this.value) ? this.value.toString() : "";
-},
-
-/**
- * Sets focus in TextboxCellEditor.
- *
- * @method focus
- */
-focus : function() {
-    // Bug 2303181, Bug 2263600
-    this.getDataTable()._focusEl(this.textbox);
-    this.textbox.select();
-},
-
-/**
- * Returns new value for TextboxCellEditor.
- *
- * @method getInputValue
- */
-getInputValue : function() {
-    return this.textbox.value;
-}
-
-});
-
-// Copy static members to TextboxCellEditor class
-lang.augmentObject(widget.TextboxCellEditor, BCE);
-
-
-
-
-
-
-
-/////////////////////////////////////////////////////////////////////////////
-//
-// DataTable extension
-//
-/////////////////////////////////////////////////////////////////////////////
-
-/**
- * CellEditor subclasses.
- * @property DataTable.Editors
- * @type Object
- * @static
- */
-DT.Editors = {
-    checkbox : widget.CheckboxCellEditor,
-    "date"   : widget.DateCellEditor,
-    dropdown : widget.DropdownCellEditor,
-    radio    : widget.RadioCellEditor,
-    textarea : widget.TextareaCellEditor,
-    textbox  : widget.TextboxCellEditor
-};
-
-/****************************************************************************/
-/****************************************************************************/
-/****************************************************************************/
-    
-/**
- * Factory class for instantiating a BaseCellEditor subclass.
- *
- * @namespace YAHOO.widget
- * @class CellEditor
- * @extends YAHOO.widget.BaseCellEditor 
- * @constructor
- * @param sType {String} Type indicator, to map to YAHOO.widget.DataTable.Editors.
- * @param oConfigs {Object} (Optional) Object literal of configs.
- */
-widget.CellEditor = function(sType, oConfigs) {
-    // Point to one of the subclasses
-    if(sType && DT.Editors[sType]) {
-        lang.augmentObject(BCE, DT.Editors[sType]);
-        return new DT.Editors[sType](oConfigs);
-    }
-    else {
-        return new BCE(null, oConfigs);
-    }
-};
-
-var CE = widget.CellEditor;
-
-// Copy static members to CellEditor class
-lang.augmentObject(CE, BCE);
-
-
-})();
-
-YAHOO.register("datatable", YAHOO.widget.DataTable, {version: "2.8.0r4", build: "2449"});
diff --git a/koha-tmpl/intranet-tmpl/prog/en/lib/yui/datatable/datatable-min.js b/koha-tmpl/intranet-tmpl/prog/en/lib/yui/datatable/datatable-min.js
deleted file mode 100644 (file)
index 65bf304..0000000
+++ /dev/null
@@ -1,29 +0,0 @@
-/*
-Copyright (c) 2009, Yahoo! Inc. All rights reserved.
-Code licensed under the BSD License:
-http://developer.yahoo.net/yui/license.txt
-version: 2.8.0r4
-*/
-YAHOO.util.Chain=function(){this.q=[].slice.call(arguments);this.createEvent("end");};YAHOO.util.Chain.prototype={id:0,run:function(){var F=this.q[0],C;if(!F){this.fireEvent("end");return this;}else{if(this.id){return this;}}C=F.method||F;if(typeof C==="function"){var E=F.scope||{},B=F.argument||[],A=F.timeout||0,D=this;if(!(B instanceof Array)){B=[B];}if(A<0){this.id=A;if(F.until){for(;!F.until();){C.apply(E,B);}}else{if(F.iterations){for(;F.iterations-->0;){C.apply(E,B);}}else{C.apply(E,B);}}this.q.shift();this.id=0;return this.run();}else{if(F.until){if(F.until()){this.q.shift();return this.run();}}else{if(!F.iterations||!--F.iterations){this.q.shift();}}this.id=setTimeout(function(){C.apply(E,B);if(D.id){D.id=0;D.run();}},A);}}return this;},add:function(A){this.q.push(A);return this;},pause:function(){if(this.id>0){clearTimeout(this.id);}this.id=0;return this;},stop:function(){this.pause();this.q=[];return this;}};YAHOO.lang.augmentProto(YAHOO.util.Chain,YAHOO.util.EventProvider);YAHOO.widget.ColumnSet=function(A){this._sId="yui-cs"+YAHOO.widget.ColumnSet._nCount;A=YAHOO.widget.DataTable._cloneObject(A);this._init(A);YAHOO.widget.ColumnSet._nCount++;};YAHOO.widget.ColumnSet._nCount=0;YAHOO.widget.ColumnSet.prototype={_sId:null,_aDefinitions:null,tree:null,flat:null,keys:null,headers:null,_init:function(I){var J=[];var A=[];var G=[];var E=[];var C=-1;var B=function(M,S){C++;if(!J[C]){J[C]=[];}for(var O=0;O<M.length;O++){var K=M[O];var Q=new YAHOO.widget.Column(K);K.yuiColumnId=Q._sId;A.push(Q);if(S){Q._oParent=S;}if(YAHOO.lang.isArray(K.children)){Q.children=K.children;var R=0;var P=function(V){var W=V.children;for(var U=0;U<W.length;U++){if(YAHOO.lang.isArray(W[U].children)){P(W[U]);}else{R++;}}};P(K);Q._nColspan=R;var T=K.children;for(var N=0;N<T.length;N++){var L=T[N];if(Q.className&&(L.className===undefined)){L.className=Q.className;}if(Q.editor&&(L.editor===undefined)){L.editor=Q.editor;}if(Q.editorOptions&&(L.editorOptions===undefined)){L.editorOptions=Q.editorOptions;}if(Q.formatter&&(L.formatter===undefined)){L.formatter=Q.formatter;}if(Q.resizeable&&(L.resizeable===undefined)){L.resizeable=Q.resizeable;}if(Q.sortable&&(L.sortable===undefined)){L.sortable=Q.sortable;}if(Q.hidden){L.hidden=true;}if(Q.width&&(L.width===undefined)){L.width=Q.width;}if(Q.minWidth&&(L.minWidth===undefined)){L.minWidth=Q.minWidth;}if(Q.maxAutoWidth&&(L.maxAutoWidth===undefined)){L.maxAutoWidth=Q.maxAutoWidth;}if(Q.type&&(L.type===undefined)){L.type=Q.type;}if(Q.type&&!Q.formatter){Q.formatter=Q.type;}if(Q.text&&!YAHOO.lang.isValue(Q.label)){Q.label=Q.text;}if(Q.parser){}if(Q.sortOptions&&((Q.sortOptions.ascFunction)||(Q.sortOptions.descFunction))){}}if(!J[C+1]){J[C+1]=[];}B(T,Q);}else{Q._nKeyIndex=G.length;Q._nColspan=1;G.push(Q);}J[C].push(Q);}C--;};if(YAHOO.lang.isArray(I)){B(I);this._aDefinitions=I;}else{return null;}var F;var D=function(L){var M=1;var O;var N;var P=function(T,S){S=S||1;for(var U=0;U<T.length;U++){var R=T[U];if(YAHOO.lang.isArray(R.children)){S++;P(R.children,S);S--;}else{if(S>M){M=S;}}}};for(var K=0;K<L.length;K++){O=L[K];P(O);for(var Q=0;Q<O.length;Q++){N=O[Q];if(!YAHOO.lang.isArray(N.children)){N._nRowspan=M;}else{N._nRowspan=1;}}M=1;}};D(J);for(F=0;F<J[0].length;F++){J[0][F]._nTreeIndex=F;}var H=function(K,L){E[K].push(L.getSanitizedKey());if(L._oParent){H(K,L._oParent);}};for(F=0;F<G.length;F++){E[F]=[];H(F,G[F]);E[F]=E[F].reverse();}this.tree=J;this.flat=A;this.keys=G;this.headers=E;},getId:function(){return this._sId;},toString:function(){return"ColumnSet instance "+this._sId;},getDefinitions:function(){var A=this._aDefinitions;var B=function(E,G){for(var D=0;D<E.length;D++){var F=E[D];var I=G.getColumnById(F.yuiColumnId);if(I){var H=I.getDefinition();for(var C in H){if(YAHOO.lang.hasOwnProperty(H,C)){F[C]=H[C];}}}if(YAHOO.lang.isArray(F.children)){B(F.children,G);}}};B(A,this);this._aDefinitions=A;return A;},getColumnById:function(C){if(YAHOO.lang.isString(C)){var A=this.flat;for(var B=A.length-1;B>-1;B--){if(A[B]._sId===C){return A[B];}}}return null;},getColumn:function(C){if(YAHOO.lang.isNumber(C)&&this.keys[C]){return this.keys[C];}else{if(YAHOO.lang.isString(C)){var A=this.flat;var D=[];for(var B=0;B<A.length;B++){if(A[B].key===C){D.push(A[B]);}}if(D.length===1){return D[0];}else{if(D.length>1){return D;}}}}return null;},getDescendants:function(D){var B=this;var C=[];var A;var E=function(F){C.push(F);if(F.children){for(A=0;A<F.children.length;A++){E(B.getColumn(F.children[A].key));}}};E(D);return C;}};YAHOO.widget.Column=function(B){this._sId="yui-col"+YAHOO.widget.Column._nCount;if(B&&YAHOO.lang.isObject(B)){for(var A in B){if(A){this[A]=B[A];}}}if(!YAHOO.lang.isValue(this.key)){this.key="yui-dt-col"+YAHOO.widget.Column._nCount;}if(!YAHOO.lang.isValue(this.field)){this.field=this.key;}YAHOO.widget.Column._nCount++;if(this.width&&!YAHOO.lang.isNumber(this.width)){this.width=null;}if(this.editor&&YAHOO.lang.isString(this.editor)){this.editor=new YAHOO.widget.CellEditor(this.editor,this.editorOptions);}};YAHOO.lang.augmentObject(YAHOO.widget.Column,{_nCount:0,formatCheckbox:function(B,A,C,D){YAHOO.widget.DataTable.formatCheckbox(B,A,C,D);},formatCurrency:function(B,A,C,D){YAHOO.widget.DataTable.formatCurrency(B,A,C,D);},formatDate:function(B,A,C,D){YAHOO.widget.DataTable.formatDate(B,A,C,D);},formatEmail:function(B,A,C,D){YAHOO.widget.DataTable.formatEmail(B,A,C,D);},formatLink:function(B,A,C,D){YAHOO.widget.DataTable.formatLink(B,A,C,D);},formatNumber:function(B,A,C,D){YAHOO.widget.DataTable.formatNumber(B,A,C,D);},formatSelect:function(B,A,C,D){YAHOO.widget.DataTable.formatDropdown(B,A,C,D);}});YAHOO.widget.Column.prototype={_sId:null,_nKeyIndex:null,_nTreeIndex:null,_nColspan:1,_nRowspan:1,_oParent:null,_elTh:null,_elThLiner:null,_elThLabel:null,_elResizer:null,_nWidth:null,_dd:null,_ddResizer:null,key:null,field:null,label:null,abbr:null,children:null,width:null,minWidth:null,maxAutoWidth:null,hidden:false,selected:false,className:null,formatter:null,currencyOptions:null,dateOptions:null,dropdownOptions:null,editor:null,resizeable:false,sortable:false,sortOptions:null,getId:function(){return this._sId;
-},toString:function(){return"Column instance "+this._sId;},getDefinition:function(){var A={};A.abbr=this.abbr;A.className=this.className;A.editor=this.editor;A.editorOptions=this.editorOptions;A.field=this.field;A.formatter=this.formatter;A.hidden=this.hidden;A.key=this.key;A.label=this.label;A.minWidth=this.minWidth;A.maxAutoWidth=this.maxAutoWidth;A.resizeable=this.resizeable;A.selected=this.selected;A.sortable=this.sortable;A.sortOptions=this.sortOptions;A.width=this.width;return A;},getKey:function(){return this.key;},getField:function(){return this.field;},getSanitizedKey:function(){return this.getKey().replace(/[^\w\-]/g,"");},getKeyIndex:function(){return this._nKeyIndex;},getTreeIndex:function(){return this._nTreeIndex;},getParent:function(){return this._oParent;},getColspan:function(){return this._nColspan;},getColSpan:function(){return this.getColspan();},getRowspan:function(){return this._nRowspan;},getThEl:function(){return this._elTh;},getThLinerEl:function(){return this._elThLiner;},getResizerEl:function(){return this._elResizer;},getColEl:function(){return this.getThEl();},getIndex:function(){return this.getKeyIndex();},format:function(){}};YAHOO.util.Sort={compare:function(B,A,C){if((B===null)||(typeof B=="undefined")){if((A===null)||(typeof A=="undefined")){return 0;}else{return 1;}}else{if((A===null)||(typeof A=="undefined")){return -1;}}if(B.constructor==String){B=B.toLowerCase();}if(A.constructor==String){A=A.toLowerCase();}if(B<A){return(C)?1:-1;}else{if(B>A){return(C)?-1:1;}else{return 0;}}}};YAHOO.widget.ColumnDD=function(D,A,C,B){if(D&&A&&C&&B){this.datatable=D;this.table=D.getTableEl();this.column=A;this.headCell=C;this.pointer=B;this.newIndex=null;this.init(C);this.initFrame();this.invalidHandleTypes={};this.setPadding(10,0,(this.datatable.getTheadEl().offsetHeight+10),0);YAHOO.util.Event.on(window,"resize",function(){this.initConstraints();},this,true);}else{}};if(YAHOO.util.DDProxy){YAHOO.extend(YAHOO.widget.ColumnDD,YAHOO.util.DDProxy,{initConstraints:function(){var G=YAHOO.util.Dom.getRegion(this.table),D=this.getEl(),F=YAHOO.util.Dom.getXY(D),C=parseInt(YAHOO.util.Dom.getStyle(D,"width"),10),A=parseInt(YAHOO.util.Dom.getStyle(D,"height"),10),E=((F[0]-G.left)+15),B=((G.right-F[0]-C)+15);this.setXConstraint(E,B);this.setYConstraint(10,10);},_resizeProxy:function(){YAHOO.widget.ColumnDD.superclass._resizeProxy.apply(this,arguments);var A=this.getDragEl(),B=this.getEl();YAHOO.util.Dom.setStyle(this.pointer,"height",(this.table.parentNode.offsetHeight+10)+"px");YAHOO.util.Dom.setStyle(this.pointer,"display","block");var C=YAHOO.util.Dom.getXY(B);YAHOO.util.Dom.setXY(this.pointer,[C[0],(C[1]-5)]);YAHOO.util.Dom.setStyle(A,"height",this.datatable.getContainerEl().offsetHeight+"px");YAHOO.util.Dom.setStyle(A,"width",(parseInt(YAHOO.util.Dom.getStyle(A,"width"),10)+4)+"px");YAHOO.util.Dom.setXY(this.dragEl,C);},onMouseDown:function(){this.initConstraints();this.resetConstraints();},clickValidator:function(B){if(!this.column.hidden){var A=YAHOO.util.Event.getTarget(B);return(this.isValidHandleChild(A)&&(this.id==this.handleElId||this.DDM.handleWasClicked(A,this.id)));}},onDragOver:function(H,A){var F=this.datatable.getColumn(A);if(F){var C=F.getTreeIndex();while((C===null)&&F.getParent()){F=F.getParent();C=F.getTreeIndex();}if(C!==null){var B=F.getThEl();var K=C;var D=YAHOO.util.Event.getPageX(H),I=YAHOO.util.Dom.getX(B),J=I+((YAHOO.util.Dom.get(B).offsetWidth)/2),E=this.column.getTreeIndex();if(D<J){YAHOO.util.Dom.setX(this.pointer,I);}else{var G=parseInt(B.offsetWidth,10);YAHOO.util.Dom.setX(this.pointer,(I+G));K++;}if(C>E){K--;}if(K<0){K=0;}else{if(K>this.datatable.getColumnSet().tree[0].length){K=this.datatable.getColumnSet().tree[0].length;}}this.newIndex=K;}}},onDragDrop:function(){this.datatable.reorderColumn(this.column,this.newIndex);},endDrag:function(){this.newIndex=null;YAHOO.util.Dom.setStyle(this.pointer,"display","none");}});}YAHOO.util.ColumnResizer=function(E,C,D,A,B){if(E&&C&&D&&A){this.datatable=E;this.column=C;this.headCell=D;this.headCellLiner=C.getThLinerEl();this.resizerLiner=D.firstChild;this.init(A,A,{dragOnly:true,dragElId:B.id});this.initFrame();this.resetResizerEl();this.setPadding(0,1,0,0);}else{}};if(YAHOO.util.DD){YAHOO.extend(YAHOO.util.ColumnResizer,YAHOO.util.DDProxy,{resetResizerEl:function(){var A=YAHOO.util.Dom.get(this.handleElId).style;A.left="auto";A.right=0;A.top="auto";A.bottom=0;A.height=this.headCell.offsetHeight+"px";},onMouseUp:function(G){var E=this.datatable.getColumnSet().keys,B;for(var C=0,A=E.length;C<A;C++){B=E[C];if(B._ddResizer){B._ddResizer.resetResizerEl();}}this.resetResizerEl();var D=this.headCellLiner;var F=D.offsetWidth-(parseInt(YAHOO.util.Dom.getStyle(D,"paddingLeft"),10)|0)-(parseInt(YAHOO.util.Dom.getStyle(D,"paddingRight"),10)|0);this.datatable.fireEvent("columnResizeEvent",{column:this.column,target:this.headCell,width:F});},onMouseDown:function(A){this.startWidth=this.headCellLiner.offsetWidth;this.startX=YAHOO.util.Event.getXY(A)[0];this.nLinerPadding=(parseInt(YAHOO.util.Dom.getStyle(this.headCellLiner,"paddingLeft"),10)|0)+(parseInt(YAHOO.util.Dom.getStyle(this.headCellLiner,"paddingRight"),10)|0);},clickValidator:function(B){if(!this.column.hidden){var A=YAHOO.util.Event.getTarget(B);return(this.isValidHandleChild(A)&&(this.id==this.handleElId||this.DDM.handleWasClicked(A,this.id)));}},startDrag:function(){var E=this.datatable.getColumnSet().keys,D=this.column.getKeyIndex(),B;for(var C=0,A=E.length;C<A;C++){B=E[C];if(B._ddResizer){YAHOO.util.Dom.get(B._ddResizer.handleElId).style.height="1em";}}},onDrag:function(C){var D=YAHOO.util.Event.getXY(C)[0];if(D>YAHOO.util.Dom.getX(this.headCellLiner)){var A=D-this.startX;var B=this.startWidth+A-this.nLinerPadding;if(B>0){this.datatable.setColumnWidth(this.column,B);}}}});}(function(){var G=YAHOO.lang,A=YAHOO.util,E=YAHOO.widget,C=A.Dom,F=A.Event,D=E.DataTable;YAHOO.widget.RecordSet=function(H){this._sId="yui-rs"+E.RecordSet._nCount;E.RecordSet._nCount++;this._records=[];
-if(H){if(G.isArray(H)){this.addRecords(H);}else{if(G.isObject(H)){this.addRecord(H);}}}};var B=E.RecordSet;B._nCount=0;B.prototype={_sId:null,_addRecord:function(J,H){var I=new YAHOO.widget.Record(J);if(YAHOO.lang.isNumber(H)&&(H>-1)){this._records.splice(H,0,I);}else{this._records[this._records.length]=I;}return I;},_setRecord:function(I,H){if(!G.isNumber(H)||H<0){H=this._records.length;}return(this._records[H]=new E.Record(I));},_deleteRecord:function(I,H){if(!G.isNumber(H)||(H<0)){H=1;}this._records.splice(I,H);},getId:function(){return this._sId;},toString:function(){return"RecordSet instance "+this._sId;},getLength:function(){return this._records.length;},getRecord:function(H){var I;if(H instanceof E.Record){for(I=0;I<this._records.length;I++){if(this._records[I]&&(this._records[I]._sId===H._sId)){return H;}}}else{if(G.isNumber(H)){if((H>-1)&&(H<this.getLength())){return this._records[H];}}else{if(G.isString(H)){for(I=0;I<this._records.length;I++){if(this._records[I]&&(this._records[I]._sId===H)){return this._records[I];}}}}}return null;},getRecords:function(I,H){if(!G.isNumber(I)){return this._records;}if(!G.isNumber(H)){return this._records.slice(I);}return this._records.slice(I,I+H);},hasRecords:function(I,H){var K=this.getRecords(I,H);for(var J=0;J<H;++J){if(typeof K[J]==="undefined"){return false;}}return true;},getRecordIndex:function(I){if(I){for(var H=this._records.length-1;H>-1;H--){if(this._records[H]&&I.getId()===this._records[H].getId()){return H;}}}return null;},addRecord:function(J,H){if(G.isObject(J)){var I=this._addRecord(J,H);this.fireEvent("recordAddEvent",{record:I,data:J});return I;}else{return null;}},addRecords:function(L,K){if(G.isArray(L)){var O=[],I,M,H;K=G.isNumber(K)?K:this._records.length;I=K;for(M=0,H=L.length;M<H;++M){if(G.isObject(L[M])){var J=this._addRecord(L[M],I++);O.push(J);}}this.fireEvent("recordsAddEvent",{records:O,data:L});return O;}else{if(G.isObject(L)){var N=this._addRecord(L);this.fireEvent("recordsAddEvent",{records:[N],data:L});return N;}else{return null;}}},setRecord:function(J,H){if(G.isObject(J)){var I=this._setRecord(J,H);this.fireEvent("recordSetEvent",{record:I,data:J});return I;}else{return null;}},setRecords:function(L,K){var O=E.Record,I=G.isArray(L)?L:[L],N=[],M=0,H=I.length,J=0;K=parseInt(K,10)|0;for(;M<H;++M){if(typeof I[M]==="object"&&I[M]){N[J++]=this._records[K+M]=new O(I[M]);}}this.fireEvent("recordsSetEvent",{records:N,data:L});this.fireEvent("recordsSet",{records:N,data:L});if(I.length&&!N.length){}return N.length>1?N:N[0];},updateRecord:function(H,L){var J=this.getRecord(H);if(J&&G.isObject(L)){var K={};for(var I in J._oData){if(G.hasOwnProperty(J._oData,I)){K[I]=J._oData[I];}}J._oData=L;this.fireEvent("recordUpdateEvent",{record:J,newData:L,oldData:K});return J;}else{return null;}},updateKey:function(H,I,J){this.updateRecordValue(H,I,J);},updateRecordValue:function(H,K,N){var J=this.getRecord(H);if(J){var M=null;var L=J._oData[K];if(L&&G.isObject(L)){M={};for(var I in L){if(G.hasOwnProperty(L,I)){M[I]=L[I];}}}else{M=L;}J._oData[K]=N;this.fireEvent("keyUpdateEvent",{record:J,key:K,newData:N,oldData:M});this.fireEvent("recordValueUpdateEvent",{record:J,key:K,newData:N,oldData:M});}else{}},replaceRecords:function(H){this.reset();return this.addRecords(H);},sortRecords:function(H,J,I){return this._records.sort(function(L,K){return H(L,K,J,I);});},reverseRecords:function(){return this._records.reverse();},deleteRecord:function(H){if(G.isNumber(H)&&(H>-1)&&(H<this.getLength())){var I=E.DataTable._cloneObject(this.getRecord(H).getData());this._deleteRecord(H);this.fireEvent("recordDeleteEvent",{data:I,index:H});return I;}else{return null;}},deleteRecords:function(J,H){if(!G.isNumber(H)){H=1;}if(G.isNumber(J)&&(J>-1)&&(J<this.getLength())){var L=this.getRecords(J,H);var I=[];for(var K=0;K<L.length;K++){I[I.length]=E.DataTable._cloneObject(L[K]);}this._deleteRecord(J,H);this.fireEvent("recordsDeleteEvent",{data:I,index:J});return I;}else{return null;}},reset:function(){this._records=[];this.fireEvent("resetEvent");}};G.augmentProto(B,A.EventProvider);YAHOO.widget.Record=function(H){this._nCount=E.Record._nCount;this._sId="yui-rec"+this._nCount;E.Record._nCount++;this._oData={};if(G.isObject(H)){for(var I in H){if(G.hasOwnProperty(H,I)){this._oData[I]=H[I];}}}};YAHOO.widget.Record._nCount=0;YAHOO.widget.Record.prototype={_nCount:null,_sId:null,_oData:null,getCount:function(){return this._nCount;},getId:function(){return this._sId;},getData:function(H){if(G.isString(H)){return this._oData[H];}else{return this._oData;}},setData:function(H,I){this._oData[H]=I;}};})();(function(){var H=YAHOO.lang,A=YAHOO.util,E=YAHOO.widget,B=YAHOO.env.ua,C=A.Dom,G=A.Event,F=A.DataSourceBase;YAHOO.widget.DataTable=function(I,M,O,K){var L=E.DataTable;if(K&&K.scrollable){return new YAHOO.widget.ScrollingDataTable(I,M,O,K);}this._nIndex=L._nCount;this._sId="yui-dt"+this._nIndex;this._oChainRender=new YAHOO.util.Chain();this._oChainRender.subscribe("end",this._onRenderChainEnd,this,true);this._initConfigs(K);this._initDataSource(O);if(!this._oDataSource){return;}this._initColumnSet(M);if(!this._oColumnSet){return;}this._initRecordSet();if(!this._oRecordSet){}L.superclass.constructor.call(this,I,this.configs);var Q=this._initDomElements(I);if(!Q){return;}this.showTableMessage(this.get("MSG_LOADING"),L.CLASS_LOADING);this._initEvents();L._nCount++;L._nCurrentCount++;var N={success:this.onDataReturnSetRows,failure:this.onDataReturnSetRows,scope:this,argument:this.getState()};var P=this.get("initialLoad");if(P===true){this._oDataSource.sendRequest(this.get("initialRequest"),N);}else{if(P===false){this.showTableMessage(this.get("MSG_EMPTY"),L.CLASS_EMPTY);}else{var J=P||{};N.argument=J.argument||{};this._oDataSource.sendRequest(J.request,N);}}};var D=E.DataTable;H.augmentObject(D,{CLASS_DATATABLE:"yui-dt",CLASS_LINER:"yui-dt-liner",CLASS_LABEL:"yui-dt-label",CLASS_MESSAGE:"yui-dt-message",CLASS_MASK:"yui-dt-mask",CLASS_DATA:"yui-dt-data",CLASS_COLTARGET:"yui-dt-coltarget",CLASS_RESIZER:"yui-dt-resizer",CLASS_RESIZERLINER:"yui-dt-resizerliner",CLASS_RESIZERPROXY:"yui-dt-resizerproxy",CLASS_EDITOR:"yui-dt-editor",CLASS_PAGINATOR:"yui-dt-paginator",CLASS_PAGE:"yui-dt-page",CLASS_DEFAULT:"yui-dt-default",CLASS_PREVIOUS:"yui-dt-previous",CLASS_NEXT:"yui-dt-next",CLASS_FIRST:"yui-dt-first",CLASS_LAST:"yui-dt-last",CLASS_EVEN:"yui-dt-even",CLASS_ODD:"yui-dt-odd",CLASS_SELECTED:"yui-dt-selected",CLASS_HIGHLIGHTED:"yui-dt-highlighted",CLASS_HIDDEN:"yui-dt-hidden",CLASS_DISABLED:"yui-dt-disabled",CLASS_EMPTY:"yui-dt-empty",CLASS_LOADING:"yui-dt-loading",CLASS_ERROR:"yui-dt-error",CLASS_EDITABLE:"yui-dt-editable",CLASS_DRAGGABLE:"yui-dt-draggable",CLASS_RESIZEABLE:"yui-dt-resizeable",CLASS_SCROLLABLE:"yui-dt-scrollable",CLASS_SORTABLE:"yui-dt-sortable",CLASS_ASC:"yui-dt-asc",CLASS_DESC:"yui-dt-desc",CLASS_BUTTON:"yui-dt-button",CLASS_CHECKBOX:"yui-dt-checkbox",CLASS_DROPDOWN:"yui-dt-dropdown",CLASS_RADIO:"yui-dt-radio",_nCount:0,_nCurrentCount:0,_elDynStyleNode:null,_bDynStylesFallback:(B.ie)?true:false,_oDynStyles:{},_elColumnDragTarget:null,_elColumnResizerProxy:null,_cloneObject:function(L){if(!H.isValue(L)){return L;
-}var N={};if(L instanceof YAHOO.widget.BaseCellEditor){N=L;}else{if(H.isFunction(L)){N=L;}else{if(H.isArray(L)){var M=[];for(var K=0,J=L.length;K<J;K++){M[K]=D._cloneObject(L[K]);}N=M;}else{if(H.isObject(L)){for(var I in L){if(H.hasOwnProperty(L,I)){if(H.isValue(L[I])&&H.isObject(L[I])||H.isArray(L[I])){N[I]=D._cloneObject(L[I]);}else{N[I]=L[I];}}}}else{N=L;}}}}return N;},_destroyColumnDragTargetEl:function(){if(D._elColumnDragTarget){var I=D._elColumnDragTarget;YAHOO.util.Event.purgeElement(I);I.parentNode.removeChild(I);D._elColumnDragTarget=null;}},_initColumnDragTargetEl:function(){if(!D._elColumnDragTarget){var I=document.createElement("div");I.className=D.CLASS_COLTARGET;I.style.display="none";document.body.insertBefore(I,document.body.firstChild);D._elColumnDragTarget=I;}return D._elColumnDragTarget;},_destroyColumnResizerProxyEl:function(){if(D._elColumnResizerProxy){var I=D._elColumnResizerProxy;YAHOO.util.Event.purgeElement(I);I.parentNode.removeChild(I);D._elColumnResizerProxy=null;}},_initColumnResizerProxyEl:function(){if(!D._elColumnResizerProxy){var I=document.createElement("div");I.id="yui-dt-colresizerproxy";I.className=D.CLASS_RESIZERPROXY;document.body.insertBefore(I,document.body.firstChild);D._elColumnResizerProxy=I;}return D._elColumnResizerProxy;},formatButton:function(I,J,K,M){var L=H.isValue(M)?M:"Click";I.innerHTML='<button type="button" class="'+D.CLASS_BUTTON+'">'+L+"</button>";},formatCheckbox:function(I,J,K,M){var L=M;L=(L)?' checked="checked"':"";I.innerHTML='<input type="checkbox"'+L+' class="'+D.CLASS_CHECKBOX+'" />';},formatCurrency:function(I,J,K,L){I.innerHTML=A.Number.format(L,K.currencyOptions||this.get("currencyOptions"));},formatDate:function(I,K,L,M){var J=L.dateOptions||this.get("dateOptions");I.innerHTML=A.Date.format(M,J,J.locale);},formatDropdown:function(K,R,P,I){var Q=(H.isValue(I))?I:R.getData(P.field),S=(H.isArray(P.dropdownOptions))?P.dropdownOptions:null,J,O=K.getElementsByTagName("select");if(O.length===0){J=document.createElement("select");J.className=D.CLASS_DROPDOWN;J=K.appendChild(J);G.addListener(J,"change",this._onDropdownChange,this);}J=O[0];if(J){J.innerHTML="";if(S){for(var M=0;M<S.length;M++){var N=S[M];var L=document.createElement("option");L.value=(H.isValue(N.value))?N.value:N;L.innerHTML=(H.isValue(N.text))?N.text:(H.isValue(N.label))?N.label:N;L=J.appendChild(L);if(L.value==Q){L.selected=true;}}}else{J.innerHTML='<option selected value="'+Q+'">'+Q+"</option>";}}else{K.innerHTML=H.isValue(I)?I:"";}},formatEmail:function(I,J,K,L){if(H.isString(L)){I.innerHTML='<a href="mailto:'+L+'">'+L+"</a>";}else{I.innerHTML=H.isValue(L)?L:"";}},formatLink:function(I,J,K,L){if(H.isString(L)){I.innerHTML='<a href="'+L+'">'+L+"</a>";}else{I.innerHTML=H.isValue(L)?L:"";}},formatNumber:function(I,J,K,L){I.innerHTML=A.Number.format(L,K.numberOptions||this.get("numberOptions"));},formatRadio:function(I,J,K,M){var L=M;L=(L)?' checked="checked"':"";I.innerHTML='<input type="radio"'+L+' name="'+this.getId()+"-col-"+K.getSanitizedKey()+'"'+' class="'+D.CLASS_RADIO+'" />';},formatText:function(I,J,L,M){var K=(H.isValue(M))?M:"";I.innerHTML=K.toString().replace(/&/g,"&#38;").replace(/</g,"&#60;").replace(/>/g,"&#62;");},formatTextarea:function(J,K,M,N){var L=(H.isValue(N))?N:"",I="<textarea>"+L+"</textarea>";J.innerHTML=I;},formatTextbox:function(J,K,M,N){var L=(H.isValue(N))?N:"",I='<input type="text" value="'+L+'" />';J.innerHTML=I;},formatDefault:function(I,J,K,L){I.innerHTML=L===undefined||L===null||(typeof L==="number"&&isNaN(L))?"&#160;":L.toString();},validateNumber:function(J){var I=J*1;if(H.isNumber(I)){return I;}else{return undefined;}}});D.Formatter={button:D.formatButton,checkbox:D.formatCheckbox,currency:D.formatCurrency,"date":D.formatDate,dropdown:D.formatDropdown,email:D.formatEmail,link:D.formatLink,"number":D.formatNumber,radio:D.formatRadio,text:D.formatText,textarea:D.formatTextarea,textbox:D.formatTextbox,defaultFormatter:D.formatDefault};H.extend(D,A.Element,{initAttributes:function(I){I=I||{};D.superclass.initAttributes.call(this,I);this.setAttributeConfig("summary",{value:"",validator:H.isString,method:function(J){if(this._elTable){this._elTable.summary=J;}}});this.setAttributeConfig("selectionMode",{value:"standard",validator:H.isString});this.setAttributeConfig("sortedBy",{value:null,validator:function(J){if(J){return(H.isObject(J)&&J.key);}else{return(J===null);}},method:function(K){var R=this.get("sortedBy");this._configs.sortedBy.value=K;var J,O,M,Q;if(this._elThead){if(R&&R.key&&R.dir){J=this._oColumnSet.getColumn(R.key);O=J.getKeyIndex();var U=J.getThEl();C.removeClass(U,R.dir);this.formatTheadCell(J.getThLinerEl().firstChild,J,K);}if(K){M=(K.column)?K.column:this._oColumnSet.getColumn(K.key);Q=M.getKeyIndex();var V=M.getThEl();if(K.dir&&((K.dir=="asc")||(K.dir=="desc"))){var P=(K.dir=="desc")?D.CLASS_DESC:D.CLASS_ASC;C.addClass(V,P);}else{var L=K.dir||D.CLASS_ASC;C.addClass(V,L);}this.formatTheadCell(M.getThLinerEl().firstChild,M,K);}}if(this._elTbody){this._elTbody.style.display="none";var S=this._elTbody.rows,T;for(var N=S.length-1;N>-1;N--){T=S[N].childNodes;if(T[O]){C.removeClass(T[O],R.dir);}if(T[Q]){C.addClass(T[Q],K.dir);}}this._elTbody.style.display="";}this._clearTrTemplateEl();}});this.setAttributeConfig("paginator",{value:null,validator:function(J){return J===null||J instanceof E.Paginator;},method:function(){this._updatePaginator.apply(this,arguments);}});this.setAttributeConfig("caption",{value:null,validator:H.isString,method:function(J){this._initCaptionEl(J);}});this.setAttributeConfig("draggableColumns",{value:false,validator:H.isBoolean,method:function(J){if(this._elThead){if(J){this._initDraggableColumns();}else{this._destroyDraggableColumns();}}}});this.setAttributeConfig("renderLoopSize",{value:0,validator:H.isNumber});this.setAttributeConfig("formatRow",{value:null,validator:H.isFunction});this.setAttributeConfig("generateRequest",{value:function(K,N){K=K||{pagination:null,sortedBy:null};var M=encodeURIComponent((K.sortedBy)?K.sortedBy.key:N.getColumnSet().keys[0].getKey());
-var J=(K.sortedBy&&K.sortedBy.dir===YAHOO.widget.DataTable.CLASS_DESC)?"desc":"asc";var O=(K.pagination)?K.pagination.recordOffset:0;var L=(K.pagination)?K.pagination.rowsPerPage:null;return"sort="+M+"&dir="+J+"&startIndex="+O+((L!==null)?"&results="+L:"");},validator:H.isFunction});this.setAttributeConfig("initialRequest",{value:null});this.setAttributeConfig("initialLoad",{value:true});this.setAttributeConfig("dynamicData",{value:false,validator:H.isBoolean});this.setAttributeConfig("MSG_EMPTY",{value:"No records found.",validator:H.isString});this.setAttributeConfig("MSG_LOADING",{value:"Loading...",validator:H.isString});this.setAttributeConfig("MSG_ERROR",{value:"Data error.",validator:H.isString});this.setAttributeConfig("MSG_SORTASC",{value:"Click to sort ascending",validator:H.isString,method:function(K){if(this._elThead){for(var L=0,M=this.getColumnSet().keys,J=M.length;L<J;L++){if(M[L].sortable&&this.getColumnSortDir(M[L])===D.CLASS_ASC){M[L]._elThLabel.firstChild.title=K;}}}}});this.setAttributeConfig("MSG_SORTDESC",{value:"Click to sort descending",validator:H.isString,method:function(K){if(this._elThead){for(var L=0,M=this.getColumnSet().keys,J=M.length;L<J;L++){if(M[L].sortable&&this.getColumnSortDir(M[L])===D.CLASS_DESC){M[L]._elThLabel.firstChild.title=K;}}}}});this.setAttributeConfig("currencySymbol",{value:"$",validator:H.isString});this.setAttributeConfig("currencyOptions",{value:{prefix:this.get("currencySymbol"),decimalPlaces:2,decimalSeparator:".",thousandsSeparator:","}});this.setAttributeConfig("dateOptions",{value:{format:"%m/%d/%Y",locale:"en"}});this.setAttributeConfig("numberOptions",{value:{decimalPlaces:0,thousandsSeparator:","}});},_bInit:true,_nIndex:null,_nTrCount:0,_nTdCount:0,_sId:null,_oChainRender:null,_elContainer:null,_elMask:null,_elTable:null,_elCaption:null,_elColgroup:null,_elThead:null,_elTbody:null,_elMsgTbody:null,_elMsgTr:null,_elMsgTd:null,_oDataSource:null,_oColumnSet:null,_oRecordSet:null,_oCellEditor:null,_sFirstTrId:null,_sLastTrId:null,_elTrTemplate:null,_aDynFunctions:[],clearTextSelection:function(){var I;if(window.getSelection){I=window.getSelection();}else{if(document.getSelection){I=document.getSelection();}else{if(document.selection){I=document.selection;}}}if(I){if(I.empty){I.empty();}else{if(I.removeAllRanges){I.removeAllRanges();}else{if(I.collapse){I.collapse();}}}}},_focusEl:function(I){I=I||this._elTbody;setTimeout(function(){try{I.focus();}catch(J){}},0);},_repaintGecko:(B.gecko)?function(J){J=J||this._elContainer;var I=J.parentNode;var K=J.nextSibling;I.insertBefore(I.removeChild(J),K);}:function(){},_repaintOpera:(B.opera)?function(){if(B.opera){document.documentElement.className+=" ";document.documentElement.className=YAHOO.lang.trim(document.documentElement.className);}}:function(){},_repaintWebkit:(B.webkit)?function(J){J=J||this._elContainer;var I=J.parentNode;var K=J.nextSibling;I.insertBefore(I.removeChild(J),K);}:function(){},_initConfigs:function(I){if(!I||!H.isObject(I)){I={};}this.configs=I;},_initColumnSet:function(M){var L,J,I;if(this._oColumnSet){for(J=0,I=this._oColumnSet.keys.length;J<I;J++){L=this._oColumnSet.keys[J];D._oDynStyles["."+this.getId()+"-col-"+L.getSanitizedKey()+" ."+D.CLASS_LINER]=undefined;if(L.editor&&L.editor.unsubscribeAll){L.editor.unsubscribeAll();}}this._oColumnSet=null;this._clearTrTemplateEl();}if(H.isArray(M)){this._oColumnSet=new YAHOO.widget.ColumnSet(M);}else{if(M instanceof YAHOO.widget.ColumnSet){this._oColumnSet=M;}}var K=this._oColumnSet.keys;for(J=0,I=K.length;J<I;J++){L=K[J];if(L.editor&&L.editor.subscribe){L.editor.subscribe("showEvent",this._onEditorShowEvent,this,true);L.editor.subscribe("keydownEvent",this._onEditorKeydownEvent,this,true);L.editor.subscribe("revertEvent",this._onEditorRevertEvent,this,true);L.editor.subscribe("saveEvent",this._onEditorSaveEvent,this,true);L.editor.subscribe("cancelEvent",this._onEditorCancelEvent,this,true);L.editor.subscribe("blurEvent",this._onEditorBlurEvent,this,true);L.editor.subscribe("blockEvent",this._onEditorBlockEvent,this,true);L.editor.subscribe("unblockEvent",this._onEditorUnblockEvent,this,true);}}},_initDataSource:function(I){this._oDataSource=null;if(I&&(H.isFunction(I.sendRequest))){this._oDataSource=I;}else{var J=null;var N=this._elContainer;var K=0;if(N.hasChildNodes()){var M=N.childNodes;for(K=0;K<M.length;K++){if(M[K].nodeName&&M[K].nodeName.toLowerCase()=="table"){J=M[K];break;}}if(J){var L=[];for(;K<this._oColumnSet.keys.length;K++){L.push({key:this._oColumnSet.keys[K].key});}this._oDataSource=new F(J);this._oDataSource.responseType=F.TYPE_HTMLTABLE;this._oDataSource.responseSchema={fields:L};}}}},_initRecordSet:function(){if(this._oRecordSet){this._oRecordSet.reset();}else{this._oRecordSet=new YAHOO.widget.RecordSet();}},_initDomElements:function(I){this._initContainerEl(I);this._initTableEl(this._elContainer);this._initColgroupEl(this._elTable);this._initTheadEl(this._elTable);this._initMsgTbodyEl(this._elTable);this._initTbodyEl(this._elTable);if(!this._elContainer||!this._elTable||!this._elColgroup||!this._elThead||!this._elTbody||!this._elMsgTbody){return false;}else{return true;}},_destroyContainerEl:function(I){C.removeClass(I,D.CLASS_DATATABLE);G.purgeElement(I,true);I.innerHTML="";this._elContainer=null;this._elColgroup=null;this._elThead=null;this._elTbody=null;},_initContainerEl:function(J){J=C.get(J);if(J&&J.nodeName&&(J.nodeName.toLowerCase()=="div")){this._destroyContainerEl(J);C.addClass(J,D.CLASS_DATATABLE);G.addListener(J,"focus",this._onTableFocus,this);G.addListener(J,"dblclick",this._onTableDblclick,this);this._elContainer=J;var I=document.createElement("div");I.className=D.CLASS_MASK;I.style.display="none";this._elMask=J.appendChild(I);}},_destroyTableEl:function(){var I=this._elTable;if(I){G.purgeElement(I,true);I.parentNode.removeChild(I);this._elCaption=null;this._elColgroup=null;this._elThead=null;this._elTbody=null;}},_initCaptionEl:function(I){if(this._elTable&&I){if(!this._elCaption){this._elCaption=this._elTable.createCaption();
-}this._elCaption.innerHTML=I;}else{if(this._elCaption){this._elCaption.parentNode.removeChild(this._elCaption);}}},_initTableEl:function(I){if(I){this._destroyTableEl();this._elTable=I.appendChild(document.createElement("table"));this._elTable.summary=this.get("summary");if(this.get("caption")){this._initCaptionEl(this.get("caption"));}}},_destroyColgroupEl:function(){var I=this._elColgroup;if(I){var J=I.parentNode;G.purgeElement(I,true);J.removeChild(I);this._elColgroup=null;}},_initColgroupEl:function(R){if(R){this._destroyColgroupEl();var K=this._aColIds||[],Q=this._oColumnSet.keys,L=0,O=K.length,I,N,P=document.createDocumentFragment(),M=document.createElement("col");for(L=0,O=Q.length;L<O;L++){N=Q[L];I=P.appendChild(M.cloneNode(false));}var J=R.insertBefore(document.createElement("colgroup"),R.firstChild);J.appendChild(P);this._elColgroup=J;}},_insertColgroupColEl:function(I){if(H.isNumber(I)&&this._elColgroup){var J=this._elColgroup.childNodes[I]||null;this._elColgroup.insertBefore(document.createElement("col"),J);}},_removeColgroupColEl:function(I){if(H.isNumber(I)&&this._elColgroup&&this._elColgroup.childNodes[I]){this._elColgroup.removeChild(this._elColgroup.childNodes[I]);}},_reorderColgroupColEl:function(K,J){if(H.isArray(K)&&H.isNumber(J)&&this._elColgroup&&(this._elColgroup.childNodes.length>K[K.length-1])){var I,M=[];for(I=K.length-1;I>-1;I--){M.push(this._elColgroup.removeChild(this._elColgroup.childNodes[K[I]]));}var L=this._elColgroup.childNodes[J]||null;for(I=M.length-1;I>-1;I--){this._elColgroup.insertBefore(M[I],L);}}},_destroyTheadEl:function(){var J=this._elThead;if(J){var I=J.parentNode;G.purgeElement(J,true);this._destroyColumnHelpers();I.removeChild(J);this._elThead=null;}},_initTheadEl:function(S){S=S||this._elTable;if(S){this._destroyTheadEl();var N=(this._elColgroup)?S.insertBefore(document.createElement("thead"),this._elColgroup.nextSibling):S.appendChild(document.createElement("thead"));G.addListener(N,"focus",this._onTheadFocus,this);G.addListener(N,"keydown",this._onTheadKeydown,this);G.addListener(N,"mouseover",this._onTableMouseover,this);G.addListener(N,"mouseout",this._onTableMouseout,this);G.addListener(N,"mousedown",this._onTableMousedown,this);G.addListener(N,"mouseup",this._onTableMouseup,this);G.addListener(N,"click",this._onTheadClick,this);var U=this._oColumnSet,Q,O,M,K;var T=U.tree;var L;for(O=0;O<T.length;O++){var J=N.appendChild(document.createElement("tr"));for(M=0;M<T[O].length;M++){Q=T[O][M];L=J.appendChild(document.createElement("th"));this._initThEl(L,Q);}if(O===0){C.addClass(J,D.CLASS_FIRST);}if(O===(T.length-1)){C.addClass(J,D.CLASS_LAST);}}var I=U.headers[0]||[];for(O=0;O<I.length;O++){C.addClass(C.get(this.getId()+"-th-"+I[O]),D.CLASS_FIRST);}var P=U.headers[U.headers.length-1]||[];for(O=0;O<P.length;O++){C.addClass(C.get(this.getId()+"-th-"+P[O]),D.CLASS_LAST);}if(B.webkit&&B.webkit<420){var R=this;setTimeout(function(){N.style.display="";},0);N.style.display="none";}this._elThead=N;this._initColumnHelpers();}},_initThEl:function(M,L){M.id=this.getId()+"-th-"+L.getSanitizedKey();M.innerHTML="";M.rowSpan=L.getRowspan();M.colSpan=L.getColspan();L._elTh=M;var I=M.appendChild(document.createElement("div"));I.id=M.id+"-liner";I.className=D.CLASS_LINER;L._elThLiner=I;var J=I.appendChild(document.createElement("span"));J.className=D.CLASS_LABEL;if(L.abbr){M.abbr=L.abbr;}if(L.hidden){this._clearMinWidth(L);}M.className=this._getColumnClassNames(L);if(L.width){var K=(L.minWidth&&(L.width<L.minWidth))?L.minWidth:L.width;if(D._bDynStylesFallback){M.firstChild.style.overflow="hidden";M.firstChild.style.width=K+"px";}else{this._setColumnWidthDynStyles(L,K+"px","hidden");}}this.formatTheadCell(J,L,this.get("sortedBy"));L._elThLabel=J;},formatTheadCell:function(I,M,K){var Q=M.getKey();var P=H.isValue(M.label)?M.label:Q;if(M.sortable){var N=this.getColumnSortDir(M,K);var J=(N===D.CLASS_DESC);if(K&&(M.key===K.key)){J=!(K.dir===D.CLASS_DESC);}var L=this.getId()+"-href-"+M.getSanitizedKey();var O=(J)?this.get("MSG_SORTDESC"):this.get("MSG_SORTASC");I.innerHTML='<a href="'+L+'" title="'+O+'" class="'+D.CLASS_SORTABLE+'">'+P+"</a>";}else{I.innerHTML=P;}},_destroyDraggableColumns:function(){var K,L;for(var J=0,I=this._oColumnSet.tree[0].length;J<I;J++){K=this._oColumnSet.tree[0][J];if(K._dd){K._dd=K._dd.unreg();C.removeClass(K.getThEl(),D.CLASS_DRAGGABLE);}}},_initDraggableColumns:function(){this._destroyDraggableColumns();if(A.DD){var L,M,J;for(var K=0,I=this._oColumnSet.tree[0].length;K<I;K++){L=this._oColumnSet.tree[0][K];M=L.getThEl();C.addClass(M,D.CLASS_DRAGGABLE);J=D._initColumnDragTargetEl();L._dd=new YAHOO.widget.ColumnDD(this,L,M,J);}}else{}},_destroyResizeableColumns:function(){var J=this._oColumnSet.keys;for(var K=0,I=J.length;K<I;K++){if(J[K]._ddResizer){J[K]._ddResizer=J[K]._ddResizer.unreg();C.removeClass(J[K].getThEl(),D.CLASS_RESIZEABLE);}}},_initResizeableColumns:function(){this._destroyResizeableColumns();if(A.DD){var O,J,M,P,I,Q,L;for(var K=0,N=this._oColumnSet.keys.length;K<N;K++){O=this._oColumnSet.keys[K];if(O.resizeable){J=O.getThEl();C.addClass(J,D.CLASS_RESIZEABLE);M=O.getThLinerEl();P=J.appendChild(document.createElement("div"));P.className=D.CLASS_RESIZERLINER;P.appendChild(M);I=P.appendChild(document.createElement("div"));I.id=J.id+"-resizer";I.className=D.CLASS_RESIZER;O._elResizer=I;Q=D._initColumnResizerProxyEl();O._ddResizer=new YAHOO.util.ColumnResizer(this,O,J,I,Q);L=function(R){G.stopPropagation(R);};G.addListener(I,"click",L);}}}else{}},_destroyColumnHelpers:function(){this._destroyDraggableColumns();this._destroyResizeableColumns();},_initColumnHelpers:function(){if(this.get("draggableColumns")){this._initDraggableColumns();}this._initResizeableColumns();},_destroyTbodyEl:function(){var I=this._elTbody;if(I){var J=I.parentNode;G.purgeElement(I,true);J.removeChild(I);this._elTbody=null;}},_initTbodyEl:function(J){if(J){this._destroyTbodyEl();var I=J.appendChild(document.createElement("tbody"));I.tabIndex=0;I.className=D.CLASS_DATA;
-G.addListener(I,"focus",this._onTbodyFocus,this);G.addListener(I,"mouseover",this._onTableMouseover,this);G.addListener(I,"mouseout",this._onTableMouseout,this);G.addListener(I,"mousedown",this._onTableMousedown,this);G.addListener(I,"mouseup",this._onTableMouseup,this);G.addListener(I,"keydown",this._onTbodyKeydown,this);G.addListener(I,"keypress",this._onTableKeypress,this);G.addListener(I,"click",this._onTbodyClick,this);if(B.ie){I.hideFocus=true;}this._elTbody=I;}},_destroyMsgTbodyEl:function(){var I=this._elMsgTbody;if(I){var J=I.parentNode;G.purgeElement(I,true);J.removeChild(I);this._elTbody=null;}},_initMsgTbodyEl:function(L){if(L){var K=document.createElement("tbody");K.className=D.CLASS_MESSAGE;var J=K.appendChild(document.createElement("tr"));J.className=D.CLASS_FIRST+" "+D.CLASS_LAST;this._elMsgTr=J;var M=J.appendChild(document.createElement("td"));M.colSpan=this._oColumnSet.keys.length||1;M.className=D.CLASS_FIRST+" "+D.CLASS_LAST;this._elMsgTd=M;K=L.insertBefore(K,this._elTbody);var I=M.appendChild(document.createElement("div"));I.className=D.CLASS_LINER;this._elMsgTbody=K;G.addListener(K,"focus",this._onTbodyFocus,this);G.addListener(K,"mouseover",this._onTableMouseover,this);G.addListener(K,"mouseout",this._onTableMouseout,this);G.addListener(K,"mousedown",this._onTableMousedown,this);G.addListener(K,"mouseup",this._onTableMouseup,this);G.addListener(K,"keydown",this._onTbodyKeydown,this);G.addListener(K,"keypress",this._onTableKeypress,this);G.addListener(K,"click",this._onTbodyClick,this);}},_initEvents:function(){this._initColumnSort();YAHOO.util.Event.addListener(document,"click",this._onDocumentClick,this);this.subscribe("paginatorChange",function(){this._handlePaginatorChange.apply(this,arguments);});this.subscribe("initEvent",function(){this.renderPaginator();});this._initCellEditing();},_initColumnSort:function(){this.subscribe("theadCellClickEvent",this.onEventSortColumn);var I=this.get("sortedBy");if(I){if(I.dir=="desc"){this._configs.sortedBy.value.dir=D.CLASS_DESC;}else{if(I.dir=="asc"){this._configs.sortedBy.value.dir=D.CLASS_ASC;}}}},_initCellEditing:function(){this.subscribe("editorBlurEvent",function(){this.onEditorBlurEvent.apply(this,arguments);});this.subscribe("editorBlockEvent",function(){this.onEditorBlockEvent.apply(this,arguments);});this.subscribe("editorUnblockEvent",function(){this.onEditorUnblockEvent.apply(this,arguments);});},_getColumnClassNames:function(L,K){var I;if(H.isString(L.className)){I=[L.className];}else{if(H.isArray(L.className)){I=L.className;}else{I=[];}}I[I.length]=this.getId()+"-col-"+L.getSanitizedKey();I[I.length]="yui-dt-col-"+L.getSanitizedKey();var J=this.get("sortedBy")||{};if(L.key===J.key){I[I.length]=J.dir||"";}if(L.hidden){I[I.length]=D.CLASS_HIDDEN;}if(L.selected){I[I.length]=D.CLASS_SELECTED;}if(L.sortable){I[I.length]=D.CLASS_SORTABLE;}if(L.resizeable){I[I.length]=D.CLASS_RESIZEABLE;}if(L.editor){I[I.length]=D.CLASS_EDITABLE;}if(K){I=I.concat(K);}return I.join(" ");},_clearTrTemplateEl:function(){this._elTrTemplate=null;},_getTrTemplateEl:function(T,N){if(this._elTrTemplate){return this._elTrTemplate;}else{var P=document,R=P.createElement("tr"),K=P.createElement("td"),J=P.createElement("div");K.appendChild(J);var S=document.createDocumentFragment(),Q=this._oColumnSet.keys,M;var O;for(var L=0,I=Q.length;L<I;L++){M=K.cloneNode(true);M=this._formatTdEl(Q[L],M,L,(L===I-1));S.appendChild(M);}R.appendChild(S);this._elTrTemplate=R;return R;}},_formatTdEl:function(M,O,P,L){var S=this._oColumnSet;var I=S.headers,J=I[P],N="",U;for(var K=0,T=J.length;K<T;K++){U=this._sId+"-th-"+J[K]+" ";N+=U;}O.headers=N;var R=[];if(P===0){R[R.length]=D.CLASS_FIRST;}if(L){R[R.length]=D.CLASS_LAST;}O.className=this._getColumnClassNames(M,R);O.firstChild.className=D.CLASS_LINER;if(M.width&&D._bDynStylesFallback){var Q=(M.minWidth&&(M.width<M.minWidth))?M.minWidth:M.width;O.firstChild.style.overflow="hidden";O.firstChild.style.width=Q+"px";}return O;},_addTrEl:function(K){var J=this._getTrTemplateEl();var I=J.cloneNode(true);return this._updateTrEl(I,K);},_updateTrEl:function(J,N){var M=this.get("formatRow")?this.get("formatRow").call(this,J,N):true;if(M){J.style.display="none";var O=J.childNodes,K;for(var L=0,I=O.length;L<I;++L){K=O[L];this.formatCell(O[L].firstChild,N,this._oColumnSet.keys[L]);}J.style.display="";}J.id=N.getId();return J;},_deleteTrEl:function(I){var J;if(!H.isNumber(I)){J=C.get(I).sectionRowIndex;}else{J=I;}if(H.isNumber(J)&&(J>-2)&&(J<this._elTbody.rows.length)){return this._elTbody.removeChild(this.getTrEl(I));}else{return null;}},_unsetFirstRow:function(){if(this._sFirstTrId){C.removeClass(this._sFirstTrId,D.CLASS_FIRST);this._sFirstTrId=null;}},_setFirstRow:function(){this._unsetFirstRow();var I=this.getFirstTrEl();if(I){C.addClass(I,D.CLASS_FIRST);this._sFirstTrId=I.id;}},_unsetLastRow:function(){if(this._sLastTrId){C.removeClass(this._sLastTrId,D.CLASS_LAST);this._sLastTrId=null;}},_setLastRow:function(){this._unsetLastRow();var I=this.getLastTrEl();if(I){C.addClass(I,D.CLASS_LAST);this._sLastTrId=I.id;}},_setRowStripes:function(S,K){var L=this._elTbody.rows,P=0,R=L.length,O=[],Q=0,M=[],I=0;if((S!==null)&&(S!==undefined)){var N=this.getTrEl(S);if(N){P=N.sectionRowIndex;if(H.isNumber(K)&&(K>1)){R=P+K;}}}for(var J=P;J<R;J++){if(J%2){O[Q++]=L[J];}else{M[I++]=L[J];}}if(O.length){C.replaceClass(O,D.CLASS_EVEN,D.CLASS_ODD);}if(M.length){C.replaceClass(M,D.CLASS_ODD,D.CLASS_EVEN);}},_setSelections:function(){var K=this.getSelectedRows();var M=this.getSelectedCells();if((K.length>0)||(M.length>0)){var L=this._oColumnSet,J;for(var I=0;I<K.length;I++){J=C.get(K[I]);if(J){C.addClass(J,D.CLASS_SELECTED);}}for(I=0;I<M.length;I++){J=C.get(M[I].recordId);if(J){C.addClass(J.childNodes[L.getColumn(M[I].columnKey).getKeyIndex()],D.CLASS_SELECTED);}}}},_onRenderChainEnd:function(){this.hideTableMessage();if(this._elTbody.rows.length===0){this.showTableMessage(this.get("MSG_EMPTY"),D.CLASS_EMPTY);}var I=this;setTimeout(function(){if((I instanceof D)&&I._sId){if(I._bInit){I._bInit=false;
-I.fireEvent("initEvent");}I.fireEvent("renderEvent");I.fireEvent("refreshEvent");I.validateColumnWidths();I.fireEvent("postRenderEvent");}},0);},_onDocumentClick:function(L,J){var M=G.getTarget(L);var I=M.nodeName.toLowerCase();if(!C.isAncestor(J._elContainer,M)){J.fireEvent("tableBlurEvent");if(J._oCellEditor){if(J._oCellEditor.getContainerEl){var K=J._oCellEditor.getContainerEl();if(!C.isAncestor(K,M)&&(K.id!==M.id)){J._oCellEditor.fireEvent("blurEvent",{editor:J._oCellEditor});}}else{if(J._oCellEditor.isActive){if(!C.isAncestor(J._oCellEditor.container,M)&&(J._oCellEditor.container.id!==M.id)){J.fireEvent("editorBlurEvent",{editor:J._oCellEditor});}}}}}},_onTableFocus:function(J,I){I.fireEvent("tableFocusEvent");},_onTheadFocus:function(J,I){I.fireEvent("theadFocusEvent");I.fireEvent("tableFocusEvent");},_onTbodyFocus:function(J,I){I.fireEvent("tbodyFocusEvent");I.fireEvent("tableFocusEvent");},_onTableMouseover:function(L,J){var M=G.getTarget(L);var I=M.nodeName.toLowerCase();var K=true;while(M&&(I!="table")){switch(I){case"body":return;case"a":break;case"td":K=J.fireEvent("cellMouseoverEvent",{target:M,event:L});break;case"span":if(C.hasClass(M,D.CLASS_LABEL)){K=J.fireEvent("theadLabelMouseoverEvent",{target:M,event:L});K=J.fireEvent("headerLabelMouseoverEvent",{target:M,event:L});}break;case"th":K=J.fireEvent("theadCellMouseoverEvent",{target:M,event:L});K=J.fireEvent("headerCellMouseoverEvent",{target:M,event:L});break;case"tr":if(M.parentNode.nodeName.toLowerCase()=="thead"){K=J.fireEvent("theadRowMouseoverEvent",{target:M,event:L});K=J.fireEvent("headerRowMouseoverEvent",{target:M,event:L});}else{K=J.fireEvent("rowMouseoverEvent",{target:M,event:L});}break;default:break;}if(K===false){return;}else{M=M.parentNode;if(M){I=M.nodeName.toLowerCase();}}}J.fireEvent("tableMouseoverEvent",{target:(M||J._elContainer),event:L});},_onTableMouseout:function(L,J){var M=G.getTarget(L);var I=M.nodeName.toLowerCase();var K=true;while(M&&(I!="table")){switch(I){case"body":return;case"a":break;case"td":K=J.fireEvent("cellMouseoutEvent",{target:M,event:L});break;case"span":if(C.hasClass(M,D.CLASS_LABEL)){K=J.fireEvent("theadLabelMouseoutEvent",{target:M,event:L});K=J.fireEvent("headerLabelMouseoutEvent",{target:M,event:L});}break;case"th":K=J.fireEvent("theadCellMouseoutEvent",{target:M,event:L});K=J.fireEvent("headerCellMouseoutEvent",{target:M,event:L});break;case"tr":if(M.parentNode.nodeName.toLowerCase()=="thead"){K=J.fireEvent("theadRowMouseoutEvent",{target:M,event:L});K=J.fireEvent("headerRowMouseoutEvent",{target:M,event:L});}else{K=J.fireEvent("rowMouseoutEvent",{target:M,event:L});}break;default:break;}if(K===false){return;}else{M=M.parentNode;if(M){I=M.nodeName.toLowerCase();}}}J.fireEvent("tableMouseoutEvent",{target:(M||J._elContainer),event:L});},_onTableMousedown:function(L,J){var M=G.getTarget(L);var I=M.nodeName.toLowerCase();var K=true;while(M&&(I!="table")){switch(I){case"body":return;case"a":break;case"td":K=J.fireEvent("cellMousedownEvent",{target:M,event:L});break;case"span":if(C.hasClass(M,D.CLASS_LABEL)){K=J.fireEvent("theadLabelMousedownEvent",{target:M,event:L});K=J.fireEvent("headerLabelMousedownEvent",{target:M,event:L});}break;case"th":K=J.fireEvent("theadCellMousedownEvent",{target:M,event:L});K=J.fireEvent("headerCellMousedownEvent",{target:M,event:L});break;case"tr":if(M.parentNode.nodeName.toLowerCase()=="thead"){K=J.fireEvent("theadRowMousedownEvent",{target:M,event:L});K=J.fireEvent("headerRowMousedownEvent",{target:M,event:L});}else{K=J.fireEvent("rowMousedownEvent",{target:M,event:L});}break;default:break;}if(K===false){return;}else{M=M.parentNode;if(M){I=M.nodeName.toLowerCase();}}}J.fireEvent("tableMousedownEvent",{target:(M||J._elContainer),event:L});},_onTableMouseup:function(L,J){var M=G.getTarget(L);var I=M.nodeName.toLowerCase();var K=true;while(M&&(I!="table")){switch(I){case"body":return;case"a":break;case"td":K=J.fireEvent("cellMouseupEvent",{target:M,event:L});break;case"span":if(C.hasClass(M,D.CLASS_LABEL)){K=J.fireEvent("theadLabelMouseupEvent",{target:M,event:L});K=J.fireEvent("headerLabelMouseupEvent",{target:M,event:L});}break;case"th":K=J.fireEvent("theadCellMouseupEvent",{target:M,event:L});K=J.fireEvent("headerCellMouseupEvent",{target:M,event:L});break;case"tr":if(M.parentNode.nodeName.toLowerCase()=="thead"){K=J.fireEvent("theadRowMouseupEvent",{target:M,event:L});K=J.fireEvent("headerRowMouseupEvent",{target:M,event:L});}else{K=J.fireEvent("rowMouseupEvent",{target:M,event:L});}break;default:break;}if(K===false){return;}else{M=M.parentNode;if(M){I=M.nodeName.toLowerCase();}}}J.fireEvent("tableMouseupEvent",{target:(M||J._elContainer),event:L});},_onTableDblclick:function(L,J){var M=G.getTarget(L);var I=M.nodeName.toLowerCase();var K=true;while(M&&(I!="table")){switch(I){case"body":return;case"td":K=J.fireEvent("cellDblclickEvent",{target:M,event:L});break;case"span":if(C.hasClass(M,D.CLASS_LABEL)){K=J.fireEvent("theadLabelDblclickEvent",{target:M,event:L});K=J.fireEvent("headerLabelDblclickEvent",{target:M,event:L});}break;case"th":K=J.fireEvent("theadCellDblclickEvent",{target:M,event:L});K=J.fireEvent("headerCellDblclickEvent",{target:M,event:L});break;case"tr":if(M.parentNode.nodeName.toLowerCase()=="thead"){K=J.fireEvent("theadRowDblclickEvent",{target:M,event:L});K=J.fireEvent("headerRowDblclickEvent",{target:M,event:L});}else{K=J.fireEvent("rowDblclickEvent",{target:M,event:L});}break;default:break;}if(K===false){return;}else{M=M.parentNode;if(M){I=M.nodeName.toLowerCase();}}}J.fireEvent("tableDblclickEvent",{target:(M||J._elContainer),event:L});},_onTheadKeydown:function(L,J){var M=G.getTarget(L);var I=M.nodeName.toLowerCase();var K=true;while(M&&(I!="table")){switch(I){case"body":return;case"input":case"textarea":break;case"thead":K=J.fireEvent("theadKeyEvent",{target:M,event:L});break;default:break;}if(K===false){return;}else{M=M.parentNode;if(M){I=M.nodeName.toLowerCase();}}}J.fireEvent("tableKeyEvent",{target:(M||J._elContainer),event:L});
-},_onTbodyKeydown:function(M,K){var J=K.get("selectionMode");if(J=="standard"){K._handleStandardSelectionByKey(M);}else{if(J=="single"){K._handleSingleSelectionByKey(M);}else{if(J=="cellblock"){K._handleCellBlockSelectionByKey(M);}else{if(J=="cellrange"){K._handleCellRangeSelectionByKey(M);}else{if(J=="singlecell"){K._handleSingleCellSelectionByKey(M);}}}}}if(K._oCellEditor){if(K._oCellEditor.fireEvent){K._oCellEditor.fireEvent("blurEvent",{editor:K._oCellEditor});}else{if(K._oCellEditor.isActive){K.fireEvent("editorBlurEvent",{editor:K._oCellEditor});}}}var N=G.getTarget(M);var I=N.nodeName.toLowerCase();var L=true;while(N&&(I!="table")){switch(I){case"body":return;case"tbody":L=K.fireEvent("tbodyKeyEvent",{target:N,event:M});break;default:break;}if(L===false){return;}else{N=N.parentNode;if(N){I=N.nodeName.toLowerCase();}}}K.fireEvent("tableKeyEvent",{target:(N||K._elContainer),event:M});},_onTableKeypress:function(K,J){if(B.opera||(navigator.userAgent.toLowerCase().indexOf("mac")!==-1)&&(B.webkit<420)){var I=G.getCharCode(K);if(I==40){G.stopEvent(K);}else{if(I==38){G.stopEvent(K);}}}},_onTheadClick:function(L,J){if(J._oCellEditor){if(J._oCellEditor.fireEvent){J._oCellEditor.fireEvent("blurEvent",{editor:J._oCellEditor});}else{if(J._oCellEditor.isActive){J.fireEvent("editorBlurEvent",{editor:J._oCellEditor});}}}var M=G.getTarget(L),I=M.nodeName.toLowerCase(),K=true;while(M&&(I!="table")){switch(I){case"body":return;case"input":var N=M.type.toLowerCase();if(N=="checkbox"){K=J.fireEvent("theadCheckboxClickEvent",{target:M,event:L});}else{if(N=="radio"){K=J.fireEvent("theadRadioClickEvent",{target:M,event:L});}else{if((N=="button")||(N=="image")||(N=="submit")||(N=="reset")){K=J.fireEvent("theadButtonClickEvent",{target:M,event:L});}}}break;case"a":K=J.fireEvent("theadLinkClickEvent",{target:M,event:L});break;case"button":K=J.fireEvent("theadButtonClickEvent",{target:M,event:L});break;case"span":if(C.hasClass(M,D.CLASS_LABEL)){K=J.fireEvent("theadLabelClickEvent",{target:M,event:L});K=J.fireEvent("headerLabelClickEvent",{target:M,event:L});}break;case"th":K=J.fireEvent("theadCellClickEvent",{target:M,event:L});K=J.fireEvent("headerCellClickEvent",{target:M,event:L});break;case"tr":K=J.fireEvent("theadRowClickEvent",{target:M,event:L});K=J.fireEvent("headerRowClickEvent",{target:M,event:L});break;default:break;}if(K===false){return;}else{M=M.parentNode;if(M){I=M.nodeName.toLowerCase();}}}J.fireEvent("tableClickEvent",{target:(M||J._elContainer),event:L});},_onTbodyClick:function(L,J){if(J._oCellEditor){if(J._oCellEditor.fireEvent){J._oCellEditor.fireEvent("blurEvent",{editor:J._oCellEditor});}else{if(J._oCellEditor.isActive){J.fireEvent("editorBlurEvent",{editor:J._oCellEditor});}}}var M=G.getTarget(L),I=M.nodeName.toLowerCase(),K=true;while(M&&(I!="table")){switch(I){case"body":return;case"input":var N=M.type.toLowerCase();if(N=="checkbox"){K=J.fireEvent("checkboxClickEvent",{target:M,event:L});}else{if(N=="radio"){K=J.fireEvent("radioClickEvent",{target:M,event:L});}else{if((N=="button")||(N=="image")||(N=="submit")||(N=="reset")){K=J.fireEvent("buttonClickEvent",{target:M,event:L});}}}break;case"a":K=J.fireEvent("linkClickEvent",{target:M,event:L});break;case"button":K=J.fireEvent("buttonClickEvent",{target:M,event:L});break;case"td":K=J.fireEvent("cellClickEvent",{target:M,event:L});break;case"tr":K=J.fireEvent("rowClickEvent",{target:M,event:L});break;default:break;}if(K===false){return;}else{M=M.parentNode;if(M){I=M.nodeName.toLowerCase();}}}J.fireEvent("tableClickEvent",{target:(M||J._elContainer),event:L});},_onDropdownChange:function(J,I){var K=G.getTarget(J);I.fireEvent("dropdownChangeEvent",{event:J,target:K});},configs:null,getId:function(){return this._sId;},toString:function(){return"DataTable instance "+this._sId;},getDataSource:function(){return this._oDataSource;},getColumnSet:function(){return this._oColumnSet;},getRecordSet:function(){return this._oRecordSet;},getState:function(){return{totalRecords:this.get("paginator")?this.get("paginator").get("totalRecords"):this._oRecordSet.getLength(),pagination:this.get("paginator")?this.get("paginator").getState():null,sortedBy:this.get("sortedBy"),selectedRows:this.getSelectedRows(),selectedCells:this.getSelectedCells()};},getContainerEl:function(){return this._elContainer;},getTableEl:function(){return this._elTable;},getTheadEl:function(){return this._elThead;},getTbodyEl:function(){return this._elTbody;},getMsgTbodyEl:function(){return this._elMsgTbody;},getMsgTdEl:function(){return this._elMsgTd;},getTrEl:function(K){if(K instanceof YAHOO.widget.Record){return document.getElementById(K.getId());}else{if(H.isNumber(K)){var J=this._elTbody.rows;return((K>-1)&&(K<J.length))?J[K]:null;}else{var I=(H.isString(K))?document.getElementById(K):K;if(I&&(I.ownerDocument==document)){if(I.nodeName.toLowerCase()!="tr"){I=C.getAncestorByTagName(I,"tr");}return I;}}}return null;},getFirstTrEl:function(){return this._elTbody.rows[0]||null;},getLastTrEl:function(){var I=this._elTbody.rows;if(I.length>0){return I[I.length-1]||null;}},getNextTrEl:function(K){var I=this.getTrIndex(K);if(I!==null){var J=this._elTbody.rows;if(I<J.length-1){return J[I+1];}}return null;},getPreviousTrEl:function(K){var I=this.getTrIndex(K);if(I!==null){var J=this._elTbody.rows;if(I>0){return J[I-1];}}return null;},getTdLinerEl:function(I){var J=this.getTdEl(I);return J.firstChild||null;},getTdEl:function(I){var N;var L=C.get(I);if(L&&(L.ownerDocument==document)){if(L.nodeName.toLowerCase()!="td"){N=C.getAncestorByTagName(L,"td");}else{N=L;}if(N&&((N.parentNode.parentNode==this._elTbody)||(N.parentNode.parentNode===null))){return N;}}else{if(I){var M,K;if(H.isString(I.columnKey)&&H.isString(I.recordId)){M=this.getRecord(I.recordId);var O=this.getColumn(I.columnKey);if(O){K=O.getKeyIndex();}}if(I.record&&I.column&&I.column.getKeyIndex){M=I.record;K=I.column.getKeyIndex();}var J=this.getTrEl(M);if((K!==null)&&J&&J.cells&&J.cells.length>0){return J.cells[K]||null;}}}return null;
-},getFirstTdEl:function(J){var I=this.getTrEl(J)||this.getFirstTrEl();if(I&&(I.cells.length>0)){return I.cells[0];}return null;},getLastTdEl:function(J){var I=this.getTrEl(J)||this.getLastTrEl();if(I&&(I.cells.length>0)){return I.cells[I.cells.length-1];}return null;},getNextTdEl:function(I){var M=this.getTdEl(I);if(M){var K=M.cellIndex;var J=this.getTrEl(M);if(K<J.cells.length-1){return J.cells[K+1];}else{var L=this.getNextTrEl(J);if(L){return L.cells[0];}}}return null;},getPreviousTdEl:function(I){var M=this.getTdEl(I);if(M){var K=M.cellIndex;var J=this.getTrEl(M);if(K>0){return J.cells[K-1];}else{var L=this.getPreviousTrEl(J);if(L){return this.getLastTdEl(L);}}}return null;},getAboveTdEl:function(I){var K=this.getTdEl(I);if(K){var J=this.getPreviousTrEl(K);if(J){return J.cells[K.cellIndex];}}return null;},getBelowTdEl:function(I){var K=this.getTdEl(I);if(K){var J=this.getNextTrEl(K);if(J){return J.cells[K.cellIndex];}}return null;},getThLinerEl:function(J){var I=this.getColumn(J);return(I)?I.getThLinerEl():null;},getThEl:function(K){var L;if(K instanceof YAHOO.widget.Column){var J=K;L=J.getThEl();if(L){return L;}}else{var I=C.get(K);if(I&&(I.ownerDocument==document)){if(I.nodeName.toLowerCase()!="th"){L=C.getAncestorByTagName(I,"th");}else{L=I;}return L;}}return null;},getTrIndex:function(M){var L;if(M instanceof YAHOO.widget.Record){L=this._oRecordSet.getRecordIndex(M);if(L===null){return null;}}else{if(H.isNumber(M)){L=M;}}if(H.isNumber(L)){if((L>-1)&&(L<this._oRecordSet.getLength())){var K=this.get("paginator");if(K){var J=K.getPageRecords();if(J&&L>=J[0]&&L<=J[1]){return L-J[0];}else{return null;}}else{return L;}}else{return null;}}else{var I=this.getTrEl(M);if(I&&(I.ownerDocument==document)&&(I.parentNode==this._elTbody)){return I.sectionRowIndex;}}return null;},initializeTable:function(){this._bInit=true;this._oRecordSet.reset();var I=this.get("paginator");if(I){I.set("totalRecords",0);}this._unselectAllTrEls();this._unselectAllTdEls();this._aSelections=null;this._oAnchorRecord=null;this._oAnchorCell=null;this.set("sortedBy",null);},_runRenderChain:function(){this._oChainRender.run();},render:function(){this._oChainRender.stop();this.fireEvent("beforeRenderEvent");var O,M,L,P,I;var R=this.get("paginator");if(R){I=this._oRecordSet.getRecords(R.getStartIndex(),R.getRowsPerPage());}else{I=this._oRecordSet.getRecords();}var J=this._elTbody,N=this.get("renderLoopSize"),Q=I.length;if(Q>0){J.style.display="none";while(J.lastChild){J.removeChild(J.lastChild);}J.style.display="";this._oChainRender.add({method:function(U){if((this instanceof D)&&this._sId){var T=U.nCurrentRecord,W=((U.nCurrentRecord+U.nLoopLength)>Q)?Q:(U.nCurrentRecord+U.nLoopLength),S,V;J.style.display="none";for(;T<W;T++){S=C.get(I[T].getId());S=S||this._addTrEl(I[T]);V=J.childNodes[T]||null;J.insertBefore(S,V);}J.style.display="";U.nCurrentRecord=T;}},scope:this,iterations:(N>0)?Math.ceil(Q/N):1,argument:{nCurrentRecord:0,nLoopLength:(N>0)?N:Q},timeout:(N>0)?0:-1});this._oChainRender.add({method:function(S){if((this instanceof D)&&this._sId){while(J.rows.length>Q){J.removeChild(J.lastChild);}this._setFirstRow();this._setLastRow();this._setRowStripes();this._setSelections();}},scope:this,timeout:(N>0)?0:-1});}else{var K=J.rows.length;if(K>0){this._oChainRender.add({method:function(T){if((this instanceof D)&&this._sId){var S=T.nCurrent,V=T.nLoopLength,U=(S-V<0)?-1:S-V;J.style.display="none";for(;S>U;S--){J.deleteRow(-1);}J.style.display="";T.nCurrent=S;}},scope:this,iterations:(N>0)?Math.ceil(K/N):1,argument:{nCurrent:K,nLoopLength:(N>0)?N:K},timeout:(N>0)?0:-1});}}this._runRenderChain();},disable:function(){var I=this._elTable;var J=this._elMask;J.style.width=I.offsetWidth+"px";J.style.height=I.offsetHeight+"px";J.style.display="";this.fireEvent("disableEvent");},undisable:function(){this._elMask.style.display="none";this.fireEvent("undisableEvent");},destroy:function(){var J=this.toString();this._oChainRender.stop();D._destroyColumnDragTargetEl();D._destroyColumnResizerProxyEl();this._destroyColumnHelpers();var L;for(var K=0,I=this._oColumnSet.flat.length;K<I;K++){L=this._oColumnSet.flat[K].editor;if(L&&L.destroy){L.destroy();this._oColumnSet.flat[K].editor=null;}}this._destroyPaginator();this._oRecordSet.unsubscribeAll();this.unsubscribeAll();G.removeListener(document,"click",this._onDocumentClick);this._destroyContainerEl(this._elContainer);for(var M in this){if(H.hasOwnProperty(this,M)){this[M]=null;}}D._nCurrentCount--;if(D._nCurrentCount<1){if(D._elDynStyleNode){document.getElementsByTagName("head")[0].removeChild(D._elDynStyleNode);D._elDynStyleNode=null;}}},showTableMessage:function(J,I){var K=this._elMsgTd;if(H.isString(J)){K.firstChild.innerHTML=J;}if(H.isString(I)){K.className=I;}this._elMsgTbody.style.display="";this.fireEvent("tableMsgShowEvent",{html:J,className:I});},hideTableMessage:function(){if(this._elMsgTbody.style.display!="none"){this._elMsgTbody.style.display="none";this._elMsgTbody.parentNode.style.width="";this.fireEvent("tableMsgHideEvent");}},focus:function(){this.focusTbodyEl();},focusTheadEl:function(){this._focusEl(this._elThead);},focusTbodyEl:function(){this._focusEl(this._elTbody);},onShow:function(){this.validateColumnWidths();for(var L=this._oColumnSet.keys,K=0,I=L.length,J;K<I;K++){J=L[K];if(J._ddResizer){J._ddResizer.resetResizerEl();}}},getRecordIndex:function(L){var K;if(!H.isNumber(L)){if(L instanceof YAHOO.widget.Record){return this._oRecordSet.getRecordIndex(L);}else{var J=this.getTrEl(L);if(J){K=J.sectionRowIndex;}}}else{K=L;}if(H.isNumber(K)){var I=this.get("paginator");if(I){return I.get("recordOffset")+K;}else{return K;}}return null;},getRecord:function(K){var J=this._oRecordSet.getRecord(K);if(!J){var I=this.getTrEl(K);if(I){J=this._oRecordSet.getRecord(I.id);}}if(J instanceof YAHOO.widget.Record){return this._oRecordSet.getRecord(J);}else{return null;}},getColumn:function(L){var N=this._oColumnSet.getColumn(L);if(!N){var M=this.getTdEl(L);if(M){N=this._oColumnSet.getColumn(M.cellIndex);
-}else{M=this.getThEl(L);if(M){var J=this._oColumnSet.flat;for(var K=0,I=J.length;K<I;K++){if(J[K].getThEl().id===M.id){N=J[K];}}}}}if(!N){}return N;},getColumnById:function(I){return this._oColumnSet.getColumnById(I);},getColumnSortDir:function(K,L){if(K.sortOptions&&K.sortOptions.defaultOrder){if(K.sortOptions.defaultOrder=="asc"){K.sortOptions.defaultDir=D.CLASS_ASC;}else{if(K.sortOptions.defaultOrder=="desc"){K.sortOptions.defaultDir=D.CLASS_DESC;}}}var J=(K.sortOptions&&K.sortOptions.defaultDir)?K.sortOptions.defaultDir:D.CLASS_ASC;var I=false;L=L||this.get("sortedBy");if(L&&(L.key===K.key)){I=true;if(L.dir){J=(L.dir===D.CLASS_ASC)?D.CLASS_DESC:D.CLASS_ASC;}else{J=(J===D.CLASS_ASC)?D.CLASS_DESC:D.CLASS_ASC;}}return J;},doBeforeSortColumn:function(J,I){this.showTableMessage(this.get("MSG_LOADING"),D.CLASS_LOADING);return true;},sortColumn:function(N,K){if(N&&(N instanceof YAHOO.widget.Column)){if(!N.sortable){C.addClass(this.getThEl(N),D.CLASS_SORTABLE);}if(K&&(K!==D.CLASS_ASC)&&(K!==D.CLASS_DESC)){K=null;}var O=K||this.getColumnSortDir(N);var M=this.get("sortedBy")||{};var U=(M.key===N.key)?true:false;var Q=this.doBeforeSortColumn(N,O);if(Q){if(this.get("dynamicData")){var T=this.getState();if(T.pagination){T.pagination.recordOffset=0;}T.sortedBy={key:N.key,dir:O};var L=this.get("generateRequest")(T,this);this.unselectAllRows();this.unselectAllCells();var S={success:this.onDataReturnSetRows,failure:this.onDataReturnSetRows,argument:T,scope:this};this._oDataSource.sendRequest(L,S);}else{var I=(N.sortOptions&&H.isFunction(N.sortOptions.sortFunction))?N.sortOptions.sortFunction:null;if(!U||K||I){var J=YAHOO.util.Sort.compare;I=I||function(W,V,Z,Y){var X=J(W.getData(Y),V.getData(Y),Z);if(X===0){return J(W.getCount(),V.getCount(),Z);}else{return X;}};var R=(N.sortOptions&&N.sortOptions.field)?N.sortOptions.field:N.field;this._oRecordSet.sortRecords(I,((O==D.CLASS_DESC)?true:false),R);}else{this._oRecordSet.reverseRecords();}var P=this.get("paginator");if(P){P.setPage(1,true);}this.render();this.set("sortedBy",{key:N.key,dir:O,column:N});}this.fireEvent("columnSortEvent",{column:N,dir:O});return;}}},setColumnWidth:function(J,I){if(!(J instanceof YAHOO.widget.Column)){J=this.getColumn(J);}if(J){if(H.isNumber(I)){I=(I>J.minWidth)?I:J.minWidth;J.width=I;this._setColumnWidth(J,I+"px");this.fireEvent("columnSetWidthEvent",{column:J,width:I});}else{if(I===null){J.width=I;this._setColumnWidth(J,"auto");this.validateColumnWidths(J);this.fireEvent("columnUnsetWidthEvent",{column:J});}}this._clearTrTemplateEl();}else{}},_setColumnWidth:function(J,I,K){if(J&&(J.getKeyIndex()!==null)){K=K||(((I==="")||(I==="auto"))?"visible":"hidden");if(!D._bDynStylesFallback){this._setColumnWidthDynStyles(J,I,K);}else{this._setColumnWidthDynFunction(J,I,K);}}else{}},_setColumnWidthDynStyles:function(M,L,N){var J=D._elDynStyleNode,K;if(!J){J=document.createElement("style");J.type="text/css";J=document.getElementsByTagName("head").item(0).appendChild(J);D._elDynStyleNode=J;}if(J){var I="."+this.getId()+"-col-"+M.getSanitizedKey()+" ."+D.CLASS_LINER;if(this._elTbody){this._elTbody.style.display="none";}K=D._oDynStyles[I];if(!K){if(J.styleSheet&&J.styleSheet.addRule){J.styleSheet.addRule(I,"overflow:"+N);J.styleSheet.addRule(I,"width:"+L);K=J.styleSheet.rules[J.styleSheet.rules.length-1];D._oDynStyles[I]=K;}else{if(J.sheet&&J.sheet.insertRule){J.sheet.insertRule(I+" {overflow:"+N+";width:"+L+";}",J.sheet.cssRules.length);K=J.sheet.cssRules[J.sheet.cssRules.length-1];D._oDynStyles[I]=K;}}}else{K.style.overflow=N;K.style.width=L;}if(this._elTbody){this._elTbody.style.display="";}}if(!K){D._bDynStylesFallback=true;this._setColumnWidthDynFunction(M,L);}},_setColumnWidthDynFunction:function(O,J,P){if(J=="auto"){J="";}var I=this._elTbody?this._elTbody.rows.length:0;if(!this._aDynFunctions[I]){var N,M,L;var Q=["var colIdx=oColumn.getKeyIndex();","oColumn.getThLinerEl().style.overflow="];for(N=I-1,M=2;N>=0;--N){Q[M++]="this._elTbody.rows[";Q[M++]=N;Q[M++]="].cells[colIdx].firstChild.style.overflow=";}Q[M]="sOverflow;";Q[M+1]="oColumn.getThLinerEl().style.width=";for(N=I-1,L=M+2;N>=0;--N){Q[L++]="this._elTbody.rows[";Q[L++]=N;Q[L++]="].cells[colIdx].firstChild.style.width=";}Q[L]="sWidth;";this._aDynFunctions[I]=new Function("oColumn","sWidth","sOverflow",Q.join(""));}var K=this._aDynFunctions[I];if(K){K.call(this,O,J,P);}},validateColumnWidths:function(N){var K=this._elColgroup;var P=K.cloneNode(true);var O=false;var M=this._oColumnSet.keys;var J;if(N&&!N.hidden&&!N.width&&(N.getKeyIndex()!==null)){J=N.getThLinerEl();if((N.minWidth>0)&&(J.offsetWidth<N.minWidth)){P.childNodes[N.getKeyIndex()].style.width=N.minWidth+(parseInt(C.getStyle(J,"paddingLeft"),10)|0)+(parseInt(C.getStyle(J,"paddingRight"),10)|0)+"px";O=true;}else{if((N.maxAutoWidth>0)&&(J.offsetWidth>N.maxAutoWidth)){this._setColumnWidth(N,N.maxAutoWidth+"px","hidden");}}}else{for(var L=0,I=M.length;L<I;L++){N=M[L];if(!N.hidden&&!N.width){J=N.getThLinerEl();if((N.minWidth>0)&&(J.offsetWidth<N.minWidth)){P.childNodes[L].style.width=N.minWidth+(parseInt(C.getStyle(J,"paddingLeft"),10)|0)+(parseInt(C.getStyle(J,"paddingRight"),10)|0)+"px";O=true;}else{if((N.maxAutoWidth>0)&&(J.offsetWidth>N.maxAutoWidth)){this._setColumnWidth(N,N.maxAutoWidth+"px","hidden");}}}}}if(O){K.parentNode.replaceChild(P,K);this._elColgroup=P;}},_clearMinWidth:function(I){if(I.getKeyIndex()!==null){this._elColgroup.childNodes[I.getKeyIndex()].style.width="";}},_restoreMinWidth:function(I){if(I.minWidth&&(I.getKeyIndex()!==null)){this._elColgroup.childNodes[I.getKeyIndex()].style.width=I.minWidth+"px";}},hideColumn:function(N){if(!(N instanceof YAHOO.widget.Column)){N=this.getColumn(N);}if(N&&!N.hidden&&N.getTreeIndex()!==null){var O=this.getTbodyEl().rows;var I=O.length;var M=this._oColumnSet.getDescendants(N);for(var L=0;L<M.length;L++){var K=M[L];K.hidden=true;C.addClass(K.getThEl(),D.CLASS_HIDDEN);var P=K.getKeyIndex();if(P!==null){this._clearMinWidth(N);for(var J=0;J<I;J++){C.addClass(O[J].cells[P],D.CLASS_HIDDEN);
-}}this.fireEvent("columnHideEvent",{column:K});}this._repaintOpera();this._clearTrTemplateEl();}else{}},showColumn:function(N){if(!(N instanceof YAHOO.widget.Column)){N=this.getColumn(N);}if(N&&N.hidden&&(N.getTreeIndex()!==null)){var O=this.getTbodyEl().rows;var I=O.length;var M=this._oColumnSet.getDescendants(N);for(var L=0;L<M.length;L++){var K=M[L];K.hidden=false;C.removeClass(K.getThEl(),D.CLASS_HIDDEN);var P=K.getKeyIndex();if(P!==null){this._restoreMinWidth(N);for(var J=0;J<I;J++){C.removeClass(O[J].cells[P],D.CLASS_HIDDEN);}}this.fireEvent("columnShowEvent",{column:K});}this._clearTrTemplateEl();}else{}},removeColumn:function(O){if(!(O instanceof YAHOO.widget.Column)){O=this.getColumn(O);}if(O){var L=O.getTreeIndex();if(L!==null){var N,Q,P=O.getKeyIndex();if(P===null){var T=[];var I=this._oColumnSet.getDescendants(O);for(N=0,Q=I.length;N<Q;N++){var R=I[N].getKeyIndex();if(R!==null){T[T.length]=R;}}if(T.length>0){P=T;}}else{P=[P];}if(P!==null){P.sort(function(V,U){return YAHOO.util.Sort.compare(V,U);});this._destroyTheadEl();var J=this._oColumnSet.getDefinitions();O=J.splice(L,1)[0];this._initColumnSet(J);this._initTheadEl();for(N=P.length-1;N>-1;N--){this._removeColgroupColEl(P[N]);}var S=this._elTbody.rows;if(S.length>0){var M=this.get("renderLoopSize"),K=S.length;this._oChainRender.add({method:function(X){if((this instanceof D)&&this._sId){var W=X.nCurrentRow,U=M>0?Math.min(W+M,S.length):S.length,Y=X.aIndexes,V;for(;W<U;++W){for(V=Y.length-1;V>-1;V--){S[W].removeChild(S[W].childNodes[Y[V]]);}}X.nCurrentRow=W;}},iterations:(M>0)?Math.ceil(K/M):1,argument:{nCurrentRow:0,aIndexes:P},scope:this,timeout:(M>0)?0:-1});this._runRenderChain();}this.fireEvent("columnRemoveEvent",{column:O});return O;}}}},insertColumn:function(Q,R){if(Q instanceof YAHOO.widget.Column){Q=Q.getDefinition();}else{if(Q.constructor!==Object){return;}}var W=this._oColumnSet;if(!H.isValue(R)||!H.isNumber(R)){R=W.tree[0].length;}this._destroyTheadEl();var Y=this._oColumnSet.getDefinitions();Y.splice(R,0,Q);this._initColumnSet(Y);this._initTheadEl();W=this._oColumnSet;var M=W.tree[0][R];var O,S,V=[];var K=W.getDescendants(M);for(O=0,S=K.length;O<S;O++){var T=K[O].getKeyIndex();if(T!==null){V[V.length]=T;}}if(V.length>0){var X=V.sort(function(c,Z){return YAHOO.util.Sort.compare(c,Z);})[0];for(O=V.length-1;O>-1;O--){this._insertColgroupColEl(V[O]);}var U=this._elTbody.rows;if(U.length>0){var N=this.get("renderLoopSize"),L=U.length;var J=[],P;for(O=0,S=V.length;O<S;O++){var I=V[O];P=this._getTrTemplateEl().childNodes[O].cloneNode(true);P=this._formatTdEl(this._oColumnSet.keys[I],P,I,(I===this._oColumnSet.keys.length-1));J[I]=P;}this._oChainRender.add({method:function(c){if((this instanceof D)&&this._sId){var b=c.nCurrentRow,a,e=c.descKeyIndexes,Z=N>0?Math.min(b+N,U.length):U.length,d;for(;b<Z;++b){d=U[b].childNodes[X]||null;for(a=e.length-1;a>-1;a--){U[b].insertBefore(c.aTdTemplates[e[a]].cloneNode(true),d);}}c.nCurrentRow=b;}},iterations:(N>0)?Math.ceil(L/N):1,argument:{nCurrentRow:0,aTdTemplates:J,descKeyIndexes:V},scope:this,timeout:(N>0)?0:-1});this._runRenderChain();}this.fireEvent("columnInsertEvent",{column:Q,index:R});return M;}},reorderColumn:function(P,Q){if(!(P instanceof YAHOO.widget.Column)){P=this.getColumn(P);}if(P&&YAHOO.lang.isNumber(Q)){var Y=P.getTreeIndex();if((Y!==null)&&(Y!==Q)){var O,R,K=P.getKeyIndex(),J,U=[],S;if(K===null){J=this._oColumnSet.getDescendants(P);for(O=0,R=J.length;O<R;O++){S=J[O].getKeyIndex();if(S!==null){U[U.length]=S;}}if(U.length>0){K=U;}}else{K=[K];}if(K!==null){K.sort(function(c,Z){return YAHOO.util.Sort.compare(c,Z);});this._destroyTheadEl();var V=this._oColumnSet.getDefinitions();var I=V.splice(Y,1)[0];V.splice(Q,0,I);this._initColumnSet(V);this._initTheadEl();var M=this._oColumnSet.tree[0][Q];var X=M.getKeyIndex();if(X===null){U=[];J=this._oColumnSet.getDescendants(M);for(O=0,R=J.length;O<R;O++){S=J[O].getKeyIndex();if(S!==null){U[U.length]=S;}}if(U.length>0){X=U;}}else{X=[X];}var W=X.sort(function(c,Z){return YAHOO.util.Sort.compare(c,Z);})[0];this._reorderColgroupColEl(K,W);var T=this._elTbody.rows;if(T.length>0){var N=this.get("renderLoopSize"),L=T.length;this._oChainRender.add({method:function(c){if((this instanceof D)&&this._sId){var b=c.nCurrentRow,a,e,d,Z=N>0?Math.min(b+N,T.length):T.length,g=c.aIndexes,f;for(;b<Z;++b){e=[];f=T[b];for(a=g.length-1;a>-1;a--){e.push(f.removeChild(f.childNodes[g[a]]));}d=f.childNodes[W]||null;for(a=e.length-1;a>-1;a--){f.insertBefore(e[a],d);}}c.nCurrentRow=b;}},iterations:(N>0)?Math.ceil(L/N):1,argument:{nCurrentRow:0,aIndexes:K},scope:this,timeout:(N>0)?0:-1});this._runRenderChain();}this.fireEvent("columnReorderEvent",{column:M});return M;}}}},selectColumn:function(K){K=this.getColumn(K);if(K&&!K.selected){if(K.getKeyIndex()!==null){K.selected=true;var L=K.getThEl();C.addClass(L,D.CLASS_SELECTED);var J=this.getTbodyEl().rows;var I=this._oChainRender;I.add({method:function(M){if((this instanceof D)&&this._sId&&J[M.rowIndex]&&J[M.rowIndex].cells[M.cellIndex]){C.addClass(J[M.rowIndex].cells[M.cellIndex],D.CLASS_SELECTED);}M.rowIndex++;},scope:this,iterations:J.length,argument:{rowIndex:0,cellIndex:K.getKeyIndex()}});this._clearTrTemplateEl();this._elTbody.style.display="none";this._runRenderChain();this._elTbody.style.display="";this.fireEvent("columnSelectEvent",{column:K});}else{}}},unselectColumn:function(K){K=this.getColumn(K);if(K&&K.selected){if(K.getKeyIndex()!==null){K.selected=false;var L=K.getThEl();C.removeClass(L,D.CLASS_SELECTED);var J=this.getTbodyEl().rows;var I=this._oChainRender;I.add({method:function(M){if((this instanceof D)&&this._sId&&J[M.rowIndex]&&J[M.rowIndex].cells[M.cellIndex]){C.removeClass(J[M.rowIndex].cells[M.cellIndex],D.CLASS_SELECTED);}M.rowIndex++;},scope:this,iterations:J.length,argument:{rowIndex:0,cellIndex:K.getKeyIndex()}});this._clearTrTemplateEl();this._elTbody.style.display="none";this._runRenderChain();this._elTbody.style.display="";this.fireEvent("columnUnselectEvent",{column:K});}else{}}},getSelectedColumns:function(M){var J=[];
-var K=this._oColumnSet.keys;for(var L=0,I=K.length;L<I;L++){if(K[L].selected){J[J.length]=K[L];}}return J;},highlightColumn:function(I){var L=this.getColumn(I);if(L&&(L.getKeyIndex()!==null)){var M=L.getThEl();C.addClass(M,D.CLASS_HIGHLIGHTED);var K=this.getTbodyEl().rows;var J=this._oChainRender;J.add({method:function(N){if((this instanceof D)&&this._sId&&K[N.rowIndex]&&K[N.rowIndex].cells[N.cellIndex]){C.addClass(K[N.rowIndex].cells[N.cellIndex],D.CLASS_HIGHLIGHTED);}N.rowIndex++;},scope:this,iterations:K.length,argument:{rowIndex:0,cellIndex:L.getKeyIndex()},timeout:-1});this._elTbody.style.display="none";this._runRenderChain();this._elTbody.style.display="";this.fireEvent("columnHighlightEvent",{column:L});}else{}},unhighlightColumn:function(I){var L=this.getColumn(I);if(L&&(L.getKeyIndex()!==null)){var M=L.getThEl();C.removeClass(M,D.CLASS_HIGHLIGHTED);var K=this.getTbodyEl().rows;var J=this._oChainRender;J.add({method:function(N){if((this instanceof D)&&this._sId&&K[N.rowIndex]&&K[N.rowIndex].cells[N.cellIndex]){C.removeClass(K[N.rowIndex].cells[N.cellIndex],D.CLASS_HIGHLIGHTED);}N.rowIndex++;},scope:this,iterations:K.length,argument:{rowIndex:0,cellIndex:L.getKeyIndex()},timeout:-1});this._elTbody.style.display="none";this._runRenderChain();this._elTbody.style.display="";this.fireEvent("columnUnhighlightEvent",{column:L});}else{}},addRow:function(O,K){if(H.isNumber(K)&&(K<0||K>this._oRecordSet.getLength())){return;}if(O&&H.isObject(O)){var M=this._oRecordSet.addRecord(O,K);if(M){var I;var J=this.get("paginator");if(J){var N=J.get("totalRecords");if(N!==E.Paginator.VALUE_UNLIMITED){J.set("totalRecords",N+1);}I=this.getRecordIndex(M);var L=(J.getPageRecords())[1];if(I<=L){this.render();}this.fireEvent("rowAddEvent",{record:M});return;}else{I=this.getTrIndex(M);if(H.isNumber(I)){this._oChainRender.add({method:function(R){if((this instanceof D)&&this._sId){var S=R.record;var P=R.recIndex;var T=this._addTrEl(S);if(T){var Q=(this._elTbody.rows[P])?this._elTbody.rows[P]:null;this._elTbody.insertBefore(T,Q);if(P===0){this._setFirstRow();}if(Q===null){this._setLastRow();}this._setRowStripes();this.hideTableMessage();this.fireEvent("rowAddEvent",{record:S});}}},argument:{record:M,recIndex:I},scope:this,timeout:(this.get("renderLoopSize")>0)?0:-1});this._runRenderChain();return;}}}}},addRows:function(K,N){if(H.isNumber(N)&&(N<0||N>this._oRecordSet.getLength())){return;}if(H.isArray(K)){var O=this._oRecordSet.addRecords(K,N);if(O){var S=this.getRecordIndex(O[0]);var R=this.get("paginator");if(R){var P=R.get("totalRecords");if(P!==E.Paginator.VALUE_UNLIMITED){R.set("totalRecords",P+O.length);}var Q=(R.getPageRecords())[1];if(S<=Q){this.render();}this.fireEvent("rowsAddEvent",{records:O});return;}else{var M=this.get("renderLoopSize");var J=S+K.length;var I=(J-S);var L=(S>=this._elTbody.rows.length);this._oChainRender.add({method:function(X){if((this instanceof D)&&this._sId){var Y=X.aRecords,W=X.nCurrentRow,V=X.nCurrentRecord,T=M>0?Math.min(W+M,J):J,Z=document.createDocumentFragment(),U=(this._elTbody.rows[W])?this._elTbody.rows[W]:null;for(;W<T;W++,V++){Z.appendChild(this._addTrEl(Y[V]));}this._elTbody.insertBefore(Z,U);X.nCurrentRow=W;X.nCurrentRecord=V;}},iterations:(M>0)?Math.ceil(J/M):1,argument:{nCurrentRow:S,nCurrentRecord:0,aRecords:O},scope:this,timeout:(M>0)?0:-1});this._oChainRender.add({method:function(U){var T=U.recIndex;if(T===0){this._setFirstRow();}if(U.isLast){this._setLastRow();}this._setRowStripes();this.fireEvent("rowsAddEvent",{records:O});},argument:{recIndex:S,isLast:L},scope:this,timeout:-1});this._runRenderChain();this.hideTableMessage();return;}}}},updateRow:function(T,J){var Q=T;if(!H.isNumber(Q)){Q=this.getRecordIndex(T);}if(H.isNumber(Q)&&(Q>=0)){var R=this._oRecordSet,P=R.getRecord(Q);if(P){var N=this._oRecordSet.setRecord(J,Q),I=this.getTrEl(P),O=P?P.getData():null;if(N){var S=this._aSelections||[],M=0,K=P.getId(),L=N.getId();for(;M<S.length;M++){if((S[M]===K)){S[M]=L;}else{if(S[M].recordId===K){S[M].recordId=L;}}}this._oChainRender.add({method:function(){if((this instanceof D)&&this._sId){var V=this.get("paginator");if(V){var U=(V.getPageRecords())[0],W=(V.getPageRecords())[1];if((Q>=U)||(Q<=W)){this.render();}}else{if(I){this._updateTrEl(I,N);}else{this.getTbodyEl().appendChild(this._addTrEl(N));}}this.fireEvent("rowUpdateEvent",{record:N,oldData:O});}},scope:this,timeout:(this.get("renderLoopSize")>0)?0:-1});this._runRenderChain();return;}}}return;},updateRows:function(V,K){if(H.isArray(K)){var O=V,J=this._oRecordSet;if(!H.isNumber(V)){O=this.getRecordIndex(V);}if(H.isNumber(O)&&(O>=0)&&(O<J.getLength())){var Z=O+K.length,W=J.getRecords(O,K.length),b=J.setRecords(K,O);if(b){var Q=this._aSelections||[],Y=0,X,T,U;for(;Y<Q.length;Y++){for(X=0;X<W.length;X++){U=W[X].getId();if((Q[Y]===U)){Q[Y]=b[X].getId();}else{if(Q[Y].recordId===U){Q[Y].recordId=b[X].getId();}}}}var a=this.get("paginator");if(a){var P=(a.getPageRecords())[0],M=(a.getPageRecords())[1];if((O>=P)||(Z<=M)){this.render();}this.fireEvent("rowsAddEvent",{newRecords:b,oldRecords:W});return;}else{var I=this.get("renderLoopSize"),R=K.length,L=this._elTbody.rows.length,S=(Z>=L),N=(Z>L);this._oChainRender.add({method:function(f){if((this instanceof D)&&this._sId){var g=f.aRecords,e=f.nCurrentRow,d=f.nDataPointer,c=I>0?Math.min(e+I,O+g.length):O+g.length;for(;e<c;e++,d++){if(N&&(e>=L)){this._elTbody.appendChild(this._addTrEl(g[d]));}else{this._updateTrEl(this._elTbody.rows[e],g[d]);}}f.nCurrentRow=e;f.nDataPointer=d;}},iterations:(I>0)?Math.ceil(R/I):1,argument:{nCurrentRow:O,aRecords:b,nDataPointer:0,isAdding:N},scope:this,timeout:(I>0)?0:-1});this._oChainRender.add({method:function(d){var c=d.recIndex;if(c===0){this._setFirstRow();}if(d.isLast){this._setLastRow();}this._setRowStripes();this.fireEvent("rowsAddEvent",{newRecords:b,oldRecords:W});},argument:{recIndex:O,isLast:S},scope:this,timeout:-1});this._runRenderChain();this.hideTableMessage();return;}}}}},deleteRow:function(R){var J=(H.isNumber(R))?R:this.getRecordIndex(R);
-if(H.isNumber(J)){var S=this.getRecord(J);if(S){var L=this.getTrIndex(J);var O=S.getId();var Q=this._aSelections||[];for(var M=Q.length-1;M>-1;M--){if((H.isString(Q[M])&&(Q[M]===O))||(H.isObject(Q[M])&&(Q[M].recordId===O))){Q.splice(M,1);}}var K=this._oRecordSet.deleteRecord(J);if(K){var P=this.get("paginator");if(P){var N=P.get("totalRecords"),I=P.getPageRecords();if(N!==E.Paginator.VALUE_UNLIMITED){P.set("totalRecords",N-1);}if(!I||J<=I[1]){this.render();}this._oChainRender.add({method:function(){if((this instanceof D)&&this._sId){this.fireEvent("rowDeleteEvent",{recordIndex:J,oldData:K,trElIndex:L});}},scope:this,timeout:(this.get("renderLoopSize")>0)?0:-1});this._runRenderChain();}else{if(H.isNumber(L)){this._oChainRender.add({method:function(){if((this instanceof D)&&this._sId){var T=(J===this._oRecordSet.getLength());this._deleteTrEl(L);if(this._elTbody.rows.length>0){if(L===0){this._setFirstRow();}if(T){this._setLastRow();}if(L!=this._elTbody.rows.length){this._setRowStripes(L);}}this.fireEvent("rowDeleteEvent",{recordIndex:J,oldData:K,trElIndex:L});}},scope:this,timeout:(this.get("renderLoopSize")>0)?0:-1});this._runRenderChain();return;}}}}}return null;},deleteRows:function(X,R){var K=(H.isNumber(X))?X:this.getRecordIndex(X);if(H.isNumber(K)){var Y=this.getRecord(K);if(Y){var L=this.getTrIndex(K);var T=Y.getId();var W=this._aSelections||[];for(var P=W.length-1;P>-1;P--){if((H.isString(W[P])&&(W[P]===T))||(H.isObject(W[P])&&(W[P].recordId===T))){W.splice(P,1);}}var M=K;var V=K;if(R&&H.isNumber(R)){M=(R>0)?K+R-1:K;V=(R>0)?K:K+R+1;R=(R>0)?R:R*-1;if(V<0){V=0;R=M-V+1;}}else{R=1;}var O=this._oRecordSet.deleteRecords(V,R);if(O){var U=this.get("paginator"),Q=this.get("renderLoopSize");if(U){var S=U.get("totalRecords"),J=U.getPageRecords();if(S!==E.Paginator.VALUE_UNLIMITED){U.set("totalRecords",S-O.length);}if(!J||V<=J[1]){this.render();}this._oChainRender.add({method:function(Z){if((this instanceof D)&&this._sId){this.fireEvent("rowsDeleteEvent",{recordIndex:V,oldData:O,count:R});}},scope:this,timeout:(Q>0)?0:-1});this._runRenderChain();return;}else{if(H.isNumber(L)){var N=V;var I=R;this._oChainRender.add({method:function(b){if((this instanceof D)&&this._sId){var a=b.nCurrentRow,Z=(Q>0)?(Math.max(a-Q,N)-1):N-1;for(;a>Z;--a){this._deleteTrEl(a);}b.nCurrentRow=a;}},iterations:(Q>0)?Math.ceil(R/Q):1,argument:{nCurrentRow:M},scope:this,timeout:(Q>0)?0:-1});this._oChainRender.add({method:function(){if(this._elTbody.rows.length>0){this._setFirstRow();this._setLastRow();this._setRowStripes();}this.fireEvent("rowsDeleteEvent",{recordIndex:V,oldData:O,count:R});},scope:this,timeout:-1});this._runRenderChain();return;}}}}}return null;},formatCell:function(J,L,M){if(!L){L=this.getRecord(J);}if(!M){M=this.getColumn(J.parentNode.cellIndex);}if(L&&M){var I=M.field;var N=L.getData(I);var K=typeof M.formatter==="function"?M.formatter:D.Formatter[M.formatter+""]||D.Formatter.defaultFormatter;if(K){K.call(this,J,L,M,N);}else{J.innerHTML=N;}this.fireEvent("cellFormatEvent",{record:L,column:M,key:M.key,el:J});}else{}},updateCell:function(J,L,N){L=(L instanceof YAHOO.widget.Column)?L:this.getColumn(L);if(L&&L.getField()&&(J instanceof YAHOO.widget.Record)){var K=L.getField(),M=J.getData(K);this._oRecordSet.updateRecordValue(J,K,N);var I=this.getTdEl({record:J,column:L});if(I){this._oChainRender.add({method:function(){if((this instanceof D)&&this._sId){this.formatCell(I.firstChild);this.fireEvent("cellUpdateEvent",{record:J,column:L,oldData:M});}},scope:this,timeout:(this.get("renderLoopSize")>0)?0:-1});this._runRenderChain();}else{this.fireEvent("cellUpdateEvent",{record:J,column:L,oldData:M});}}},_updatePaginator:function(J){var I=this.get("paginator");if(I&&J!==I){I.unsubscribe("changeRequest",this.onPaginatorChangeRequest,this,true);}if(J){J.subscribe("changeRequest",this.onPaginatorChangeRequest,this,true);}},_handlePaginatorChange:function(K){if(K.prevValue===K.newValue){return;}var M=K.newValue,L=K.prevValue,J=this._defaultPaginatorContainers();if(L){if(L.getContainerNodes()[0]==J[0]){L.set("containers",[]);}L.destroy();if(J[0]){if(M&&!M.getContainerNodes().length){M.set("containers",J);}else{for(var I=J.length-1;I>=0;--I){if(J[I]){J[I].parentNode.removeChild(J[I]);}}}}}if(!this._bInit){this.render();}if(M){this.renderPaginator();}},_defaultPaginatorContainers:function(L){var J=this._sId+"-paginator0",K=this._sId+"-paginator1",I=C.get(J),M=C.get(K);if(L&&(!I||!M)){if(!I){I=document.createElement("div");I.id=J;C.addClass(I,D.CLASS_PAGINATOR);this._elContainer.insertBefore(I,this._elContainer.firstChild);}if(!M){M=document.createElement("div");M.id=K;C.addClass(M,D.CLASS_PAGINATOR);this._elContainer.appendChild(M);}}return[I,M];},_destroyPaginator:function(){var I=this.get("paginator");if(I){I.destroy();}},renderPaginator:function(){var I=this.get("paginator");if(!I){return;}if(!I.getContainerNodes().length){I.set("containers",this._defaultPaginatorContainers(true));}I.render();},doBeforePaginatorChange:function(I){this.showTableMessage(this.get("MSG_LOADING"),D.CLASS_LOADING);return true;},onPaginatorChangeRequest:function(L){var J=this.doBeforePaginatorChange(L);if(J){if(this.get("dynamicData")){var I=this.getState();I.pagination=L;var K=this.get("generateRequest")(I,this);this.unselectAllRows();this.unselectAllCells();var M={success:this.onDataReturnSetRows,failure:this.onDataReturnSetRows,argument:I,scope:this};this._oDataSource.sendRequest(K,M);}else{L.paginator.setStartIndex(L.recordOffset,true);L.paginator.setRowsPerPage(L.rowsPerPage,true);this.render();}}else{}},_elLastHighlightedTd:null,_aSelections:null,_oAnchorRecord:null,_oAnchorCell:null,_unselectAllTrEls:function(){var I=C.getElementsByClassName(D.CLASS_SELECTED,"tr",this._elTbody);C.removeClass(I,D.CLASS_SELECTED);},_getSelectionTrigger:function(){var L=this.get("selectionMode");var K={};var O,I,J,N,M;if((L=="cellblock")||(L=="cellrange")||(L=="singlecell")){O=this.getLastSelectedCell();if(!O){return null;}else{I=this.getRecord(O.recordId);
-J=this.getRecordIndex(I);N=this.getTrEl(I);M=this.getTrIndex(N);if(M===null){return null;}else{K.record=I;K.recordIndex=J;K.el=this.getTdEl(O);K.trIndex=M;K.column=this.getColumn(O.columnKey);K.colKeyIndex=K.column.getKeyIndex();K.cell=O;return K;}}}else{I=this.getLastSelectedRecord();if(!I){return null;}else{I=this.getRecord(I);J=this.getRecordIndex(I);N=this.getTrEl(I);M=this.getTrIndex(N);if(M===null){return null;}else{K.record=I;K.recordIndex=J;K.el=N;K.trIndex=M;return K;}}}},_getSelectionAnchor:function(K){var J=this.get("selectionMode");var L={};var M,O,I;if((J=="cellblock")||(J=="cellrange")||(J=="singlecell")){var N=this._oAnchorCell;if(!N){if(K){N=this._oAnchorCell=K.cell;}else{return null;}}M=this._oAnchorCell.record;O=this._oRecordSet.getRecordIndex(M);I=this.getTrIndex(M);if(I===null){if(O<this.getRecordIndex(this.getFirstTrEl())){I=0;}else{I=this.getRecordIndex(this.getLastTrEl());}}L.record=M;L.recordIndex=O;L.trIndex=I;L.column=this._oAnchorCell.column;L.colKeyIndex=L.column.getKeyIndex();L.cell=N;return L;}else{M=this._oAnchorRecord;if(!M){if(K){M=this._oAnchorRecord=K.record;}else{return null;}}O=this.getRecordIndex(M);I=this.getTrIndex(M);if(I===null){if(O<this.getRecordIndex(this.getFirstTrEl())){I=0;}else{I=this.getRecordIndex(this.getLastTrEl());}}L.record=M;L.recordIndex=O;L.trIndex=I;return L;}},_handleStandardSelectionByMouse:function(J){var I=J.target;var L=this.getTrEl(I);if(L){var O=J.event;var R=O.shiftKey;var N=O.ctrlKey||((navigator.userAgent.toLowerCase().indexOf("mac")!=-1)&&O.metaKey);var Q=this.getRecord(L);var K=this._oRecordSet.getRecordIndex(Q);var P=this._getSelectionAnchor();var M;if(R&&N){if(P){if(this.isSelected(P.record)){if(P.recordIndex<K){for(M=P.recordIndex+1;M<=K;M++){if(!this.isSelected(M)){this.selectRow(M);}}}else{for(M=P.recordIndex-1;M>=K;M--){if(!this.isSelected(M)){this.selectRow(M);}}}}else{if(P.recordIndex<K){for(M=P.recordIndex+1;M<=K-1;M++){if(this.isSelected(M)){this.unselectRow(M);}}}else{for(M=K+1;M<=P.recordIndex-1;M++){if(this.isSelected(M)){this.unselectRow(M);}}}this.selectRow(Q);}}else{this._oAnchorRecord=Q;if(this.isSelected(Q)){this.unselectRow(Q);}else{this.selectRow(Q);}}}else{if(R){this.unselectAllRows();if(P){if(P.recordIndex<K){for(M=P.recordIndex;M<=K;M++){this.selectRow(M);}}else{for(M=P.recordIndex;M>=K;M--){this.selectRow(M);}}}else{this._oAnchorRecord=Q;this.selectRow(Q);}}else{if(N){this._oAnchorRecord=Q;if(this.isSelected(Q)){this.unselectRow(Q);}else{this.selectRow(Q);}}else{this._handleSingleSelectionByMouse(J);return;}}}}},_handleStandardSelectionByKey:function(M){var I=G.getCharCode(M);if((I==38)||(I==40)){var K=M.shiftKey;var J=this._getSelectionTrigger();if(!J){return null;}G.stopEvent(M);var L=this._getSelectionAnchor(J);if(K){if((I==40)&&(L.recordIndex<=J.trIndex)){this.selectRow(this.getNextTrEl(J.el));}else{if((I==38)&&(L.recordIndex>=J.trIndex)){this.selectRow(this.getPreviousTrEl(J.el));}else{this.unselectRow(J.el);}}}else{this._handleSingleSelectionByKey(M);}}},_handleSingleSelectionByMouse:function(K){var L=K.target;var J=this.getTrEl(L);if(J){var I=this.getRecord(J);this._oAnchorRecord=I;this.unselectAllRows();this.selectRow(I);}},_handleSingleSelectionByKey:function(L){var I=G.getCharCode(L);if((I==38)||(I==40)){var J=this._getSelectionTrigger();if(!J){return null;}G.stopEvent(L);var K;if(I==38){K=this.getPreviousTrEl(J.el);if(K===null){K=this.getFirstTrEl();}}else{if(I==40){K=this.getNextTrEl(J.el);if(K===null){K=this.getLastTrEl();}}}this.unselectAllRows();this.selectRow(K);this._oAnchorRecord=this.getRecord(K);}},_handleCellBlockSelectionByMouse:function(Y){var Z=Y.target;var J=this.getTdEl(Z);if(J){var X=Y.event;var O=X.shiftKey;var K=X.ctrlKey||((navigator.userAgent.toLowerCase().indexOf("mac")!=-1)&&X.metaKey);var Q=this.getTrEl(J);var P=this.getTrIndex(Q);var T=this.getColumn(J);var U=T.getKeyIndex();var S=this.getRecord(Q);var b=this._oRecordSet.getRecordIndex(S);var N={record:S,column:T};var R=this._getSelectionAnchor();var M=this.getTbodyEl().rows;var L,I,a,W,V;if(O&&K){if(R){if(this.isSelected(R.cell)){if(R.recordIndex===b){if(R.colKeyIndex<U){for(W=R.colKeyIndex+1;W<=U;W++){this.selectCell(Q.cells[W]);}}else{if(U<R.colKeyIndex){for(W=U;W<R.colKeyIndex;W++){this.selectCell(Q.cells[W]);}}}}else{if(R.recordIndex<b){L=Math.min(R.colKeyIndex,U);I=Math.max(R.colKeyIndex,U);for(W=R.trIndex;W<=P;W++){for(V=L;V<=I;V++){this.selectCell(M[W].cells[V]);}}}else{L=Math.min(R.trIndex,U);I=Math.max(R.trIndex,U);for(W=R.trIndex;W>=P;W--){for(V=I;V>=L;V--){this.selectCell(M[W].cells[V]);}}}}}else{if(R.recordIndex===b){if(R.colKeyIndex<U){for(W=R.colKeyIndex+1;W<U;W++){this.unselectCell(Q.cells[W]);}}else{if(U<R.colKeyIndex){for(W=U+1;W<R.colKeyIndex;W++){this.unselectCell(Q.cells[W]);}}}}if(R.recordIndex<b){for(W=R.trIndex;W<=P;W++){a=M[W];for(V=0;V<a.cells.length;V++){if(a.sectionRowIndex===R.trIndex){if(V>R.colKeyIndex){this.unselectCell(a.cells[V]);}}else{if(a.sectionRowIndex===P){if(V<U){this.unselectCell(a.cells[V]);}}else{this.unselectCell(a.cells[V]);}}}}}else{for(W=P;W<=R.trIndex;W++){a=M[W];for(V=0;V<a.cells.length;V++){if(a.sectionRowIndex==P){if(V>U){this.unselectCell(a.cells[V]);}}else{if(a.sectionRowIndex==R.trIndex){if(V<R.colKeyIndex){this.unselectCell(a.cells[V]);}}else{this.unselectCell(a.cells[V]);}}}}}this.selectCell(J);}}else{this._oAnchorCell=N;if(this.isSelected(N)){this.unselectCell(N);}else{this.selectCell(N);}}}else{if(O){this.unselectAllCells();if(R){if(R.recordIndex===b){if(R.colKeyIndex<U){for(W=R.colKeyIndex;W<=U;W++){this.selectCell(Q.cells[W]);}}else{if(U<R.colKeyIndex){for(W=U;W<=R.colKeyIndex;W++){this.selectCell(Q.cells[W]);}}}}else{if(R.recordIndex<b){L=Math.min(R.colKeyIndex,U);I=Math.max(R.colKeyIndex,U);for(W=R.trIndex;W<=P;W++){for(V=L;V<=I;V++){this.selectCell(M[W].cells[V]);}}}else{L=Math.min(R.colKeyIndex,U);I=Math.max(R.colKeyIndex,U);for(W=P;W<=R.trIndex;W++){for(V=L;V<=I;V++){this.selectCell(M[W].cells[V]);}}}}}else{this._oAnchorCell=N;this.selectCell(N);
-}}else{if(K){this._oAnchorCell=N;if(this.isSelected(N)){this.unselectCell(N);}else{this.selectCell(N);}}else{this._handleSingleCellSelectionByMouse(Y);}}}}},_handleCellBlockSelectionByKey:function(N){var I=G.getCharCode(N);var S=N.shiftKey;if((I==9)||!S){this._handleSingleCellSelectionByKey(N);return;}if((I>36)&&(I<41)){var T=this._getSelectionTrigger();if(!T){return null;}G.stopEvent(N);var Q=this._getSelectionAnchor(T);var J,R,K,P,L;var O=this.getTbodyEl().rows;var M=T.el.parentNode;if(I==40){if(Q.recordIndex<=T.recordIndex){L=this.getNextTrEl(T.el);if(L){R=Q.colKeyIndex;K=T.colKeyIndex;if(R>K){for(J=R;J>=K;J--){P=L.cells[J];this.selectCell(P);}}else{for(J=R;J<=K;J++){P=L.cells[J];this.selectCell(P);}}}}else{R=Math.min(Q.colKeyIndex,T.colKeyIndex);K=Math.max(Q.colKeyIndex,T.colKeyIndex);for(J=R;J<=K;J++){this.unselectCell(M.cells[J]);}}}else{if(I==38){if(Q.recordIndex>=T.recordIndex){L=this.getPreviousTrEl(T.el);if(L){R=Q.colKeyIndex;K=T.colKeyIndex;if(R>K){for(J=R;J>=K;J--){P=L.cells[J];this.selectCell(P);}}else{for(J=R;J<=K;J++){P=L.cells[J];this.selectCell(P);}}}}else{R=Math.min(Q.colKeyIndex,T.colKeyIndex);K=Math.max(Q.colKeyIndex,T.colKeyIndex);for(J=R;J<=K;J++){this.unselectCell(M.cells[J]);}}}else{if(I==39){if(Q.colKeyIndex<=T.colKeyIndex){if(T.colKeyIndex<M.cells.length-1){R=Q.trIndex;K=T.trIndex;if(R>K){for(J=R;J>=K;J--){P=O[J].cells[T.colKeyIndex+1];this.selectCell(P);}}else{for(J=R;J<=K;J++){P=O[J].cells[T.colKeyIndex+1];this.selectCell(P);}}}}else{R=Math.min(Q.trIndex,T.trIndex);K=Math.max(Q.trIndex,T.trIndex);for(J=R;J<=K;J++){this.unselectCell(O[J].cells[T.colKeyIndex]);}}}else{if(I==37){if(Q.colKeyIndex>=T.colKeyIndex){if(T.colKeyIndex>0){R=Q.trIndex;K=T.trIndex;if(R>K){for(J=R;J>=K;J--){P=O[J].cells[T.colKeyIndex-1];this.selectCell(P);}}else{for(J=R;J<=K;J++){P=O[J].cells[T.colKeyIndex-1];this.selectCell(P);}}}}else{R=Math.min(Q.trIndex,T.trIndex);K=Math.max(Q.trIndex,T.trIndex);for(J=R;J<=K;J++){this.unselectCell(O[J].cells[T.colKeyIndex]);}}}}}}}},_handleCellRangeSelectionByMouse:function(W){var X=W.target;var I=this.getTdEl(X);if(I){var V=W.event;var M=V.shiftKey;var J=V.ctrlKey||((navigator.userAgent.toLowerCase().indexOf("mac")!=-1)&&V.metaKey);var O=this.getTrEl(I);var N=this.getTrIndex(O);var R=this.getColumn(I);var S=R.getKeyIndex();var Q=this.getRecord(O);var Z=this._oRecordSet.getRecordIndex(Q);var L={record:Q,column:R};var P=this._getSelectionAnchor();var K=this.getTbodyEl().rows;var Y,U,T;if(M&&J){if(P){if(this.isSelected(P.cell)){if(P.recordIndex===Z){if(P.colKeyIndex<S){for(U=P.colKeyIndex+1;U<=S;U++){this.selectCell(O.cells[U]);}}else{if(S<P.colKeyIndex){for(U=S;U<P.colKeyIndex;U++){this.selectCell(O.cells[U]);}}}}else{if(P.recordIndex<Z){for(U=P.colKeyIndex+1;U<O.cells.length;U++){this.selectCell(O.cells[U]);}for(U=P.trIndex+1;U<N;U++){for(T=0;T<K[U].cells.length;T++){this.selectCell(K[U].cells[T]);}}for(U=0;U<=S;U++){this.selectCell(O.cells[U]);}}else{for(U=S;U<O.cells.length;U++){this.selectCell(O.cells[U]);}for(U=N+1;U<P.trIndex;U++){for(T=0;T<K[U].cells.length;T++){this.selectCell(K[U].cells[T]);}}for(U=0;U<P.colKeyIndex;U++){this.selectCell(O.cells[U]);}}}}else{if(P.recordIndex===Z){if(P.colKeyIndex<S){for(U=P.colKeyIndex+1;U<S;U++){this.unselectCell(O.cells[U]);}}else{if(S<P.colKeyIndex){for(U=S+1;U<P.colKeyIndex;U++){this.unselectCell(O.cells[U]);}}}}if(P.recordIndex<Z){for(U=P.trIndex;U<=N;U++){Y=K[U];for(T=0;T<Y.cells.length;T++){if(Y.sectionRowIndex===P.trIndex){if(T>P.colKeyIndex){this.unselectCell(Y.cells[T]);}}else{if(Y.sectionRowIndex===N){if(T<S){this.unselectCell(Y.cells[T]);}}else{this.unselectCell(Y.cells[T]);}}}}}else{for(U=N;U<=P.trIndex;U++){Y=K[U];for(T=0;T<Y.cells.length;T++){if(Y.sectionRowIndex==N){if(T>S){this.unselectCell(Y.cells[T]);}}else{if(Y.sectionRowIndex==P.trIndex){if(T<P.colKeyIndex){this.unselectCell(Y.cells[T]);}}else{this.unselectCell(Y.cells[T]);}}}}}this.selectCell(I);}}else{this._oAnchorCell=L;if(this.isSelected(L)){this.unselectCell(L);}else{this.selectCell(L);}}}else{if(M){this.unselectAllCells();if(P){if(P.recordIndex===Z){if(P.colKeyIndex<S){for(U=P.colKeyIndex;U<=S;U++){this.selectCell(O.cells[U]);}}else{if(S<P.colKeyIndex){for(U=S;U<=P.colKeyIndex;U++){this.selectCell(O.cells[U]);}}}}else{if(P.recordIndex<Z){for(U=P.trIndex;U<=N;U++){Y=K[U];for(T=0;T<Y.cells.length;T++){if(Y.sectionRowIndex==P.trIndex){if(T>=P.colKeyIndex){this.selectCell(Y.cells[T]);}}else{if(Y.sectionRowIndex==N){if(T<=S){this.selectCell(Y.cells[T]);}}else{this.selectCell(Y.cells[T]);}}}}}else{for(U=N;U<=P.trIndex;U++){Y=K[U];for(T=0;T<Y.cells.length;T++){if(Y.sectionRowIndex==N){if(T>=S){this.selectCell(Y.cells[T]);}}else{if(Y.sectionRowIndex==P.trIndex){if(T<=P.colKeyIndex){this.selectCell(Y.cells[T]);}}else{this.selectCell(Y.cells[T]);}}}}}}}else{this._oAnchorCell=L;this.selectCell(L);}}else{if(J){this._oAnchorCell=L;if(this.isSelected(L)){this.unselectCell(L);}else{this.selectCell(L);}}else{this._handleSingleCellSelectionByMouse(W);}}}}},_handleCellRangeSelectionByKey:function(M){var I=G.getCharCode(M);var Q=M.shiftKey;if((I==9)||!Q){this._handleSingleCellSelectionByKey(M);return;}if((I>36)&&(I<41)){var R=this._getSelectionTrigger();if(!R){return null;}G.stopEvent(M);var P=this._getSelectionAnchor(R);var J,K,O;var N=this.getTbodyEl().rows;var L=R.el.parentNode;if(I==40){K=this.getNextTrEl(R.el);if(P.recordIndex<=R.recordIndex){for(J=R.colKeyIndex+1;J<L.cells.length;J++){O=L.cells[J];this.selectCell(O);}if(K){for(J=0;J<=R.colKeyIndex;J++){O=K.cells[J];this.selectCell(O);}}}else{for(J=R.colKeyIndex;J<L.cells.length;J++){this.unselectCell(L.cells[J]);}if(K){for(J=0;J<R.colKeyIndex;J++){this.unselectCell(K.cells[J]);}}}}else{if(I==38){K=this.getPreviousTrEl(R.el);if(P.recordIndex>=R.recordIndex){for(J=R.colKeyIndex-1;J>-1;J--){O=L.cells[J];this.selectCell(O);}if(K){for(J=L.cells.length-1;J>=R.colKeyIndex;J--){O=K.cells[J];this.selectCell(O);}}}else{for(J=R.colKeyIndex;J>-1;J--){this.unselectCell(L.cells[J]);}if(K){for(J=L.cells.length-1;J>R.colKeyIndex;
-J--){this.unselectCell(K.cells[J]);}}}}else{if(I==39){K=this.getNextTrEl(R.el);if(P.recordIndex<R.recordIndex){if(R.colKeyIndex<L.cells.length-1){O=L.cells[R.colKeyIndex+1];this.selectCell(O);}else{if(K){O=K.cells[0];this.selectCell(O);}}}else{if(P.recordIndex>R.recordIndex){this.unselectCell(L.cells[R.colKeyIndex]);if(R.colKeyIndex<L.cells.length-1){}else{}}else{if(P.colKeyIndex<=R.colKeyIndex){if(R.colKeyIndex<L.cells.length-1){O=L.cells[R.colKeyIndex+1];this.selectCell(O);}else{if(R.trIndex<N.length-1){O=K.cells[0];this.selectCell(O);}}}else{this.unselectCell(L.cells[R.colKeyIndex]);}}}}else{if(I==37){K=this.getPreviousTrEl(R.el);if(P.recordIndex<R.recordIndex){this.unselectCell(L.cells[R.colKeyIndex]);if(R.colKeyIndex>0){}else{}}else{if(P.recordIndex>R.recordIndex){if(R.colKeyIndex>0){O=L.cells[R.colKeyIndex-1];this.selectCell(O);}else{if(R.trIndex>0){O=K.cells[K.cells.length-1];this.selectCell(O);}}}else{if(P.colKeyIndex>=R.colKeyIndex){if(R.colKeyIndex>0){O=L.cells[R.colKeyIndex-1];this.selectCell(O);}else{if(R.trIndex>0){O=K.cells[K.cells.length-1];this.selectCell(O);}}}else{this.unselectCell(L.cells[R.colKeyIndex]);if(R.colKeyIndex>0){}else{}}}}}}}}}},_handleSingleCellSelectionByMouse:function(N){var O=N.target;var K=this.getTdEl(O);if(K){var J=this.getTrEl(K);var I=this.getRecord(J);var M=this.getColumn(K);var L={record:I,column:M};this._oAnchorCell=L;this.unselectAllCells();this.selectCell(L);}},_handleSingleCellSelectionByKey:function(M){var I=G.getCharCode(M);if((I==9)||((I>36)&&(I<41))){var K=M.shiftKey;var J=this._getSelectionTrigger();if(!J){return null;}var L;if(I==40){L=this.getBelowTdEl(J.el);if(L===null){L=J.el;}}else{if(I==38){L=this.getAboveTdEl(J.el);if(L===null){L=J.el;}}else{if((I==39)||(!K&&(I==9))){L=this.getNextTdEl(J.el);if(L===null){return;}}else{if((I==37)||(K&&(I==9))){L=this.getPreviousTdEl(J.el);if(L===null){return;}}}}}G.stopEvent(M);this.unselectAllCells();this.selectCell(L);this._oAnchorCell={record:this.getRecord(L),column:this.getColumn(L)};}},getSelectedTrEls:function(){return C.getElementsByClassName(D.CLASS_SELECTED,"tr",this._elTbody);},selectRow:function(O){var N,I;if(O instanceof YAHOO.widget.Record){N=this._oRecordSet.getRecord(O);I=this.getTrEl(N);}else{if(H.isNumber(O)){N=this.getRecord(O);I=this.getTrEl(N);}else{I=this.getTrEl(O);N=this.getRecord(I);}}if(N){var M=this._aSelections||[];var L=N.getId();var K=-1;if(M.indexOf){K=M.indexOf(L);}else{for(var J=M.length-1;J>-1;J--){if(M[J]===L){K=J;break;}}}if(K>-1){M.splice(K,1);}M.push(L);this._aSelections=M;if(!this._oAnchorRecord){this._oAnchorRecord=N;}if(I){C.addClass(I,D.CLASS_SELECTED);}this.fireEvent("rowSelectEvent",{record:N,el:I});}else{}},unselectRow:function(O){var I=this.getTrEl(O);var N;if(O instanceof YAHOO.widget.Record){N=this._oRecordSet.getRecord(O);}else{if(H.isNumber(O)){N=this.getRecord(O);}else{N=this.getRecord(I);}}if(N){var M=this._aSelections||[];var L=N.getId();var K=-1;if(M.indexOf){K=M.indexOf(L);}else{for(var J=M.length-1;J>-1;J--){if(M[J]===L){K=J;break;}}}if(K>-1){M.splice(K,1);this._aSelections=M;C.removeClass(I,D.CLASS_SELECTED);this.fireEvent("rowUnselectEvent",{record:N,el:I});return;}}},unselectAllRows:function(){var J=this._aSelections||[],L,K=[];for(var I=J.length-1;I>-1;I--){if(H.isString(J[I])){L=J.splice(I,1);K[K.length]=this.getRecord(H.isArray(L)?L[0]:L);}}this._aSelections=J;this._unselectAllTrEls();this.fireEvent("unselectAllRowsEvent",{records:K});},_unselectAllTdEls:function(){var I=C.getElementsByClassName(D.CLASS_SELECTED,"td",this._elTbody);C.removeClass(I,D.CLASS_SELECTED);},getSelectedTdEls:function(){return C.getElementsByClassName(D.CLASS_SELECTED,"td",this._elTbody);},selectCell:function(I){var O=this.getTdEl(I);if(O){var N=this.getRecord(O);var L=this.getColumn(O.cellIndex).getKey();if(N&&L){var M=this._aSelections||[];var K=N.getId();for(var J=M.length-1;J>-1;J--){if((M[J].recordId===K)&&(M[J].columnKey===L)){M.splice(J,1);break;}}M.push({recordId:K,columnKey:L});this._aSelections=M;if(!this._oAnchorCell){this._oAnchorCell={record:N,column:this.getColumn(L)};}C.addClass(O,D.CLASS_SELECTED);this.fireEvent("cellSelectEvent",{record:N,column:this.getColumn(O.cellIndex),key:this.getColumn(O.cellIndex).getKey(),el:O});return;}}},unselectCell:function(I){var N=this.getTdEl(I);if(N){var M=this.getRecord(N);var K=this.getColumn(N.cellIndex).getKey();if(M&&K){var L=this._aSelections||[];var O=M.getId();for(var J=L.length-1;J>-1;J--){if((L[J].recordId===O)&&(L[J].columnKey===K)){L.splice(J,1);this._aSelections=L;C.removeClass(N,D.CLASS_SELECTED);this.fireEvent("cellUnselectEvent",{record:M,column:this.getColumn(N.cellIndex),key:this.getColumn(N.cellIndex).getKey(),el:N});return;}}}}},unselectAllCells:function(){var J=this._aSelections||[];for(var I=J.length-1;I>-1;I--){if(H.isObject(J[I])){J.splice(I,1);}}this._aSelections=J;this._unselectAllTdEls();this.fireEvent("unselectAllCellsEvent");},isSelected:function(N){if(N&&(N.ownerDocument==document)){return(C.hasClass(this.getTdEl(N),D.CLASS_SELECTED)||C.hasClass(this.getTrEl(N),D.CLASS_SELECTED));}else{var M,J,I;var L=this._aSelections;if(L&&L.length>0){if(N instanceof YAHOO.widget.Record){M=N;}else{if(H.isNumber(N)){M=this.getRecord(N);}}if(M){J=M.getId();if(L.indexOf){if(L.indexOf(J)>-1){return true;}}else{for(I=L.length-1;I>-1;I--){if(L[I]===J){return true;}}}}else{if(N.record&&N.column){J=N.record.getId();var K=N.column.getKey();for(I=L.length-1;I>-1;I--){if((L[I].recordId===J)&&(L[I].columnKey===K)){return true;}}}}}}return false;},getSelectedRows:function(){var I=[];var K=this._aSelections||[];for(var J=0;J<K.length;J++){if(H.isString(K[J])){I.push(K[J]);}}return I;},getSelectedCells:function(){var J=[];var K=this._aSelections||[];for(var I=0;I<K.length;I++){if(K[I]&&H.isObject(K[I])){J.push(K[I]);}}return J;},getLastSelectedRecord:function(){var J=this._aSelections;if(J&&J.length>0){for(var I=J.length-1;I>-1;I--){if(H.isString(J[I])){return J[I];}}}},getLastSelectedCell:function(){var J=this._aSelections;
-if(J&&J.length>0){for(var I=J.length-1;I>-1;I--){if(J[I].recordId&&J[I].columnKey){return J[I];}}}},highlightRow:function(K){var I=this.getTrEl(K);if(I){var J=this.getRecord(I);C.addClass(I,D.CLASS_HIGHLIGHTED);this.fireEvent("rowHighlightEvent",{record:J,el:I});return;}},unhighlightRow:function(K){var I=this.getTrEl(K);if(I){var J=this.getRecord(I);C.removeClass(I,D.CLASS_HIGHLIGHTED);this.fireEvent("rowUnhighlightEvent",{record:J,el:I});return;}},highlightCell:function(I){var L=this.getTdEl(I);if(L){if(this._elLastHighlightedTd){this.unhighlightCell(this._elLastHighlightedTd);}var K=this.getRecord(L);var J=this.getColumn(L.cellIndex).getKey();C.addClass(L,D.CLASS_HIGHLIGHTED);this._elLastHighlightedTd=L;this.fireEvent("cellHighlightEvent",{record:K,column:this.getColumn(L.cellIndex),key:this.getColumn(L.cellIndex).getKey(),el:L});return;}},unhighlightCell:function(I){var K=this.getTdEl(I);if(K){var J=this.getRecord(K);C.removeClass(K,D.CLASS_HIGHLIGHTED);this._elLastHighlightedTd=null;this.fireEvent("cellUnhighlightEvent",{record:J,column:this.getColumn(K.cellIndex),key:this.getColumn(K.cellIndex).getKey(),el:K});return;}},getCellEditor:function(){return this._oCellEditor;},showCellEditor:function(P,Q,L){P=this.getTdEl(P);if(P){L=this.getColumn(P);if(L&&L.editor){var J=this._oCellEditor;if(J){if(this._oCellEditor.cancel){this._oCellEditor.cancel();}else{if(J.isActive){this.cancelCellEditor();}}}if(L.editor instanceof YAHOO.widget.BaseCellEditor){J=L.editor;var N=J.attach(this,P);if(N){J.move();N=this.doBeforeShowCellEditor(J);if(N){J.show();this._oCellEditor=J;}}}else{if(!Q||!(Q instanceof YAHOO.widget.Record)){Q=this.getRecord(P);}if(!L||!(L instanceof YAHOO.widget.Column)){L=this.getColumn(P);}if(Q&&L){if(!this._oCellEditor||this._oCellEditor.container){this._initCellEditorEl();}J=this._oCellEditor;J.cell=P;J.record=Q;J.column=L;J.validator=(L.editorOptions&&H.isFunction(L.editorOptions.validator))?L.editorOptions.validator:null;J.value=Q.getData(L.key);J.defaultValue=null;var K=J.container;var O=C.getX(P);var M=C.getY(P);if(isNaN(O)||isNaN(M)){O=P.offsetLeft+C.getX(this._elTbody.parentNode)-this._elTbody.scrollLeft;M=P.offsetTop+C.getY(this._elTbody.parentNode)-this._elTbody.scrollTop+this._elThead.offsetHeight;}K.style.left=O+"px";K.style.top=M+"px";this.doBeforeShowCellEditor(this._oCellEditor);K.style.display="";G.addListener(K,"keydown",function(S,R){if((S.keyCode==27)){R.cancelCellEditor();R.focusTbodyEl();}else{R.fireEvent("editorKeydownEvent",{editor:R._oCellEditor,event:S});}},this);var I;if(H.isString(L.editor)){switch(L.editor){case"checkbox":I=D.editCheckbox;break;case"date":I=D.editDate;break;case"dropdown":I=D.editDropdown;break;case"radio":I=D.editRadio;break;case"textarea":I=D.editTextarea;break;case"textbox":I=D.editTextbox;break;default:I=null;}}else{if(H.isFunction(L.editor)){I=L.editor;}}if(I){I(this._oCellEditor,this);if(!L.editorOptions||!L.editorOptions.disableBtns){this.showCellEditorBtns(K);}J.isActive=true;this.fireEvent("editorShowEvent",{editor:J});return;}}}}}},_initCellEditorEl:function(){var I=document.createElement("div");I.id=this._sId+"-celleditor";I.style.display="none";I.tabIndex=0;C.addClass(I,D.CLASS_EDITOR);var K=C.getFirstChild(document.body);if(K){I=C.insertBefore(I,K);}else{I=document.body.appendChild(I);}var J={};J.container=I;J.value=null;J.isActive=false;this._oCellEditor=J;},doBeforeShowCellEditor:function(I){return true;},saveCellEditor:function(){if(this._oCellEditor){if(this._oCellEditor.save){this._oCellEditor.save();}else{if(this._oCellEditor.isActive){var I=this._oCellEditor.value;var J=this._oCellEditor.record.getData(this._oCellEditor.column.key);if(this._oCellEditor.validator){I=this._oCellEditor.value=this._oCellEditor.validator.call(this,I,J,this._oCellEditor);if(I===null){this.resetCellEditor();this.fireEvent("editorRevertEvent",{editor:this._oCellEditor,oldData:J,newData:I});return;}}this._oRecordSet.updateRecordValue(this._oCellEditor.record,this._oCellEditor.column.key,this._oCellEditor.value);this.formatCell(this._oCellEditor.cell.firstChild);this._oChainRender.add({method:function(){this.validateColumnWidths();},scope:this});this._oChainRender.run();this.resetCellEditor();this.fireEvent("editorSaveEvent",{editor:this._oCellEditor,oldData:J,newData:I});}}}},cancelCellEditor:function(){if(this._oCellEditor){if(this._oCellEditor.cancel){this._oCellEditor.cancel();}else{if(this._oCellEditor.isActive){this.resetCellEditor();this.fireEvent("editorCancelEvent",{editor:this._oCellEditor});}}}},destroyCellEditor:function(){if(this._oCellEditor){this._oCellEditor.destroy();this._oCellEditor=null;}},_onEditorShowEvent:function(I){this.fireEvent("editorShowEvent",I);},_onEditorKeydownEvent:function(I){this.fireEvent("editorKeydownEvent",I);},_onEditorRevertEvent:function(I){this.fireEvent("editorRevertEvent",I);},_onEditorSaveEvent:function(I){this.fireEvent("editorSaveEvent",I);},_onEditorCancelEvent:function(I){this.fireEvent("editorCancelEvent",I);},_onEditorBlurEvent:function(I){this.fireEvent("editorBlurEvent",I);},_onEditorBlockEvent:function(I){this.fireEvent("editorBlockEvent",I);},_onEditorUnblockEvent:function(I){this.fireEvent("editorUnblockEvent",I);},onEditorBlurEvent:function(I){if(I.editor.disableBtns){if(I.editor.save){I.editor.save();}}else{if(I.editor.cancel){I.editor.cancel();}}},onEditorBlockEvent:function(I){this.disable();},onEditorUnblockEvent:function(I){this.undisable();},doBeforeLoadData:function(I,J,K){return true;},onEventSortColumn:function(K){var I=K.event;var M=K.target;var J=this.getThEl(M)||this.getTdEl(M);if(J){var L=this.getColumn(J);if(L.sortable){G.stopEvent(I);this.sortColumn(L);}}else{}},onEventSelectColumn:function(I){this.selectColumn(I.target);},onEventHighlightColumn:function(I){if(!C.isAncestor(I.target,G.getRelatedTarget(I.event))){this.highlightColumn(I.target);}},onEventUnhighlightColumn:function(I){if(!C.isAncestor(I.target,G.getRelatedTarget(I.event))){this.unhighlightColumn(I.target);}},onEventSelectRow:function(J){var I=this.get("selectionMode");
-if(I=="single"){this._handleSingleSelectionByMouse(J);}else{this._handleStandardSelectionByMouse(J);}},onEventSelectCell:function(J){var I=this.get("selectionMode");if(I=="cellblock"){this._handleCellBlockSelectionByMouse(J);}else{if(I=="cellrange"){this._handleCellRangeSelectionByMouse(J);}else{this._handleSingleCellSelectionByMouse(J);}}},onEventHighlightRow:function(I){if(!C.isAncestor(I.target,G.getRelatedTarget(I.event))){this.highlightRow(I.target);}},onEventUnhighlightRow:function(I){if(!C.isAncestor(I.target,G.getRelatedTarget(I.event))){this.unhighlightRow(I.target);}},onEventHighlightCell:function(I){if(!C.isAncestor(I.target,G.getRelatedTarget(I.event))){this.highlightCell(I.target);}},onEventUnhighlightCell:function(I){if(!C.isAncestor(I.target,G.getRelatedTarget(I.event))){this.unhighlightCell(I.target);}},onEventFormatCell:function(I){var L=I.target;var J=this.getTdEl(L);if(J){var K=this.getColumn(J.cellIndex);this.formatCell(J.firstChild,this.getRecord(J),K);}else{}},onEventShowCellEditor:function(I){this.showCellEditor(I.target);},onEventSaveCellEditor:function(I){if(this._oCellEditor){if(this._oCellEditor.save){this._oCellEditor.save();}else{this.saveCellEditor();}}},onEventCancelCellEditor:function(I){if(this._oCellEditor){if(this._oCellEditor.cancel){this._oCellEditor.cancel();}else{this.cancelCellEditor();}}},onDataReturnInitializeTable:function(I,J,K){if((this instanceof D)&&this._sId){this.initializeTable();this.onDataReturnSetRows(I,J,K);}},onDataReturnReplaceRows:function(M,L,N){if((this instanceof D)&&this._sId){this.fireEvent("dataReturnEvent",{request:M,response:L,payload:N});var J=this.doBeforeLoadData(M,L,N),K=this.get("paginator"),I=0;if(J&&L&&!L.error&&H.isArray(L.results)){this._oRecordSet.reset();if(this.get("dynamicData")){if(N&&N.pagination&&H.isNumber(N.pagination.recordOffset)){I=N.pagination.recordOffset;}else{if(K){I=K.getStartIndex();}}}this._oRecordSet.setRecords(L.results,I|0);this._handleDataReturnPayload(M,L,N);this.render();}else{if(J&&L.error){this.showTableMessage(this.get("MSG_ERROR"),D.CLASS_ERROR);}}}},onDataReturnAppendRows:function(J,K,L){if((this instanceof D)&&this._sId){this.fireEvent("dataReturnEvent",{request:J,response:K,payload:L});var I=this.doBeforeLoadData(J,K,L);if(I&&K&&!K.error&&H.isArray(K.results)){this.addRows(K.results);this._handleDataReturnPayload(J,K,L);}else{if(I&&K.error){this.showTableMessage(this.get("MSG_ERROR"),D.CLASS_ERROR);}}}},onDataReturnInsertRows:function(J,K,L){if((this instanceof D)&&this._sId){this.fireEvent("dataReturnEvent",{request:J,response:K,payload:L});var I=this.doBeforeLoadData(J,K,L);if(I&&K&&!K.error&&H.isArray(K.results)){this.addRows(K.results,(L?L.insertIndex:0));this._handleDataReturnPayload(J,K,L);}else{if(I&&K.error){this.showTableMessage(this.get("MSG_ERROR"),D.CLASS_ERROR);}}}},onDataReturnUpdateRows:function(J,K,L){if((this instanceof D)&&this._sId){this.fireEvent("dataReturnEvent",{request:J,response:K,payload:L});var I=this.doBeforeLoadData(J,K,L);if(I&&K&&!K.error&&H.isArray(K.results)){this.updateRows((L?L.updateIndex:0),K.results);this._handleDataReturnPayload(J,K,L);}else{if(I&&K.error){this.showTableMessage(this.get("MSG_ERROR"),D.CLASS_ERROR);}}}},onDataReturnSetRows:function(M,L,N){if((this instanceof D)&&this._sId){this.fireEvent("dataReturnEvent",{request:M,response:L,payload:N});var J=this.doBeforeLoadData(M,L,N),K=this.get("paginator"),I=0;if(J&&L&&!L.error&&H.isArray(L.results)){if(this.get("dynamicData")){if(N&&N.pagination&&H.isNumber(N.pagination.recordOffset)){I=N.pagination.recordOffset;}else{if(K){I=K.getStartIndex();}}this._oRecordSet.reset();}this._oRecordSet.setRecords(L.results,I|0);this._handleDataReturnPayload(M,L,N);this.render();}else{if(J&&L.error){this.showTableMessage(this.get("MSG_ERROR"),D.CLASS_ERROR);}}}else{}},handleDataReturnPayload:function(J,I,K){return K;},_handleDataReturnPayload:function(K,J,L){L=this.handleDataReturnPayload(K,J,L);if(L){var I=this.get("paginator");if(I){if(this.get("dynamicData")){if(E.Paginator.isNumeric(L.totalRecords)){I.set("totalRecords",L.totalRecords);}}else{I.set("totalRecords",this._oRecordSet.getLength());}if(H.isObject(L.pagination)){I.set("rowsPerPage",L.pagination.rowsPerPage);I.set("recordOffset",L.pagination.recordOffset);}}if(L.sortedBy){this.set("sortedBy",L.sortedBy);}else{if(L.sorting){this.set("sortedBy",L.sorting);}}}},showCellEditorBtns:function(K){var L=K.appendChild(document.createElement("div"));C.addClass(L,D.CLASS_BUTTON);var J=L.appendChild(document.createElement("button"));C.addClass(J,D.CLASS_DEFAULT);J.innerHTML="OK";G.addListener(J,"click",function(N,M){M.onEventSaveCellEditor(N,M);M.focusTbodyEl();},this,true);var I=L.appendChild(document.createElement("button"));I.innerHTML="Cancel";G.addListener(I,"click",function(N,M){M.onEventCancelCellEditor(N,M);M.focusTbodyEl();},this,true);},resetCellEditor:function(){var I=this._oCellEditor.container;I.style.display="none";G.purgeElement(I,true);I.innerHTML="";this._oCellEditor.value=null;this._oCellEditor.isActive=false;},getBody:function(){return this.getTbodyEl();},getCell:function(I){return this.getTdEl(I);},getRow:function(I){return this.getTrEl(I);},refreshView:function(){this.render();},select:function(J){if(!H.isArray(J)){J=[J];}for(var I=0;I<J.length;I++){this.selectRow(J[I]);}},onEventEditCell:function(I){this.onEventShowCellEditor(I);},_syncColWidths:function(){this.validateColumnWidths();}});D.prototype.onDataReturnSetRecords=D.prototype.onDataReturnSetRows;D.prototype.onPaginatorChange=D.prototype.onPaginatorChangeRequest;D.formatTheadCell=function(){};D.editCheckbox=function(){};D.editDate=function(){};D.editDropdown=function(){};D.editRadio=function(){};D.editTextarea=function(){};D.editTextbox=function(){};})();(function(){var C=YAHOO.lang,F=YAHOO.util,E=YAHOO.widget,A=YAHOO.env.ua,D=F.Dom,J=F.Event,I=F.DataSourceBase,G=E.DataTable,B=E.Paginator;E.ScrollingDataTable=function(N,M,K,L){L=L||{};if(L.scrollable){L.scrollable=false;}E.ScrollingDataTable.superclass.constructor.call(this,N,M,K,L);
-this.subscribe("columnShowEvent",this._onColumnChange);};var H=E.ScrollingDataTable;C.augmentObject(H,{CLASS_HEADER:"yui-dt-hd",CLASS_BODY:"yui-dt-bd"});C.extend(H,G,{_elHdContainer:null,_elHdTable:null,_elBdContainer:null,_elBdThead:null,_elTmpContainer:null,_elTmpTable:null,_bScrollbarX:null,initAttributes:function(K){K=K||{};H.superclass.initAttributes.call(this,K);this.setAttributeConfig("width",{value:null,validator:C.isString,method:function(L){if(this._elHdContainer&&this._elBdContainer){this._elHdContainer.style.width=L;this._elBdContainer.style.width=L;this._syncScrollX();this._syncScrollOverhang();}}});this.setAttributeConfig("height",{value:null,validator:C.isString,method:function(L){if(this._elHdContainer&&this._elBdContainer){this._elBdContainer.style.height=L;this._syncScrollX();this._syncScrollY();this._syncScrollOverhang();}}});this.setAttributeConfig("COLOR_COLUMNFILLER",{value:"#F2F2F2",validator:C.isString,method:function(L){this._elHdContainer.style.backgroundColor=L;}});},_initDomElements:function(K){this._initContainerEl(K);if(this._elContainer&&this._elHdContainer&&this._elBdContainer){this._initTableEl();if(this._elHdTable&&this._elTable){this._initColgroupEl(this._elHdTable);this._initTheadEl(this._elHdTable,this._elTable);this._initTbodyEl(this._elTable);this._initMsgTbodyEl(this._elTable);}}if(!this._elContainer||!this._elTable||!this._elColgroup||!this._elThead||!this._elTbody||!this._elMsgTbody||!this._elHdTable||!this._elBdThead){return false;}else{return true;}},_destroyContainerEl:function(K){D.removeClass(K,G.CLASS_SCROLLABLE);H.superclass._destroyContainerEl.call(this,K);this._elHdContainer=null;this._elBdContainer=null;},_initContainerEl:function(L){H.superclass._initContainerEl.call(this,L);if(this._elContainer){L=this._elContainer;D.addClass(L,G.CLASS_SCROLLABLE);var K=document.createElement("div");K.style.width=this.get("width")||"";K.style.backgroundColor=this.get("COLOR_COLUMNFILLER");D.addClass(K,H.CLASS_HEADER);this._elHdContainer=K;L.appendChild(K);var M=document.createElement("div");M.style.width=this.get("width")||"";M.style.height=this.get("height")||"";D.addClass(M,H.CLASS_BODY);J.addListener(M,"scroll",this._onScroll,this);this._elBdContainer=M;L.appendChild(M);}},_initCaptionEl:function(K){},_destroyHdTableEl:function(){var K=this._elHdTable;if(K){J.purgeElement(K,true);K.parentNode.removeChild(K);this._elBdThead=null;}},_initTableEl:function(){if(this._elHdContainer){this._destroyHdTableEl();this._elHdTable=this._elHdContainer.appendChild(document.createElement("table"));}H.superclass._initTableEl.call(this,this._elBdContainer);},_initTheadEl:function(L,K){L=L||this._elHdTable;K=K||this._elTable;this._initBdTheadEl(K);H.superclass._initTheadEl.call(this,L);},_initThEl:function(L,K){H.superclass._initThEl.call(this,L,K);L.id=this.getId()+"-fixedth-"+K.getSanitizedKey();},_destroyBdTheadEl:function(){var K=this._elBdThead;if(K){var L=K.parentNode;J.purgeElement(K,true);L.removeChild(K);this._elBdThead=null;this._destroyColumnHelpers();}},_initBdTheadEl:function(S){if(S){this._destroyBdTheadEl();var O=S.insertBefore(document.createElement("thead"),S.firstChild);var U=this._oColumnSet,T=U.tree,N,K,R,P,M,L,Q;for(P=0,L=T.length;P<L;P++){K=O.appendChild(document.createElement("tr"));for(M=0,Q=T[P].length;M<Q;M++){R=T[P][M];N=K.appendChild(document.createElement("th"));this._initBdThEl(N,R,P,M);}}this._elBdThead=O;}},_initBdThEl:function(N,M){N.id=this.getId()+"-th-"+M.getSanitizedKey();N.rowSpan=M.getRowspan();N.colSpan=M.getColspan();if(M.abbr){N.abbr=M.abbr;}var L=M.getKey();var K=C.isValue(M.label)?M.label:L;N.innerHTML=K;},_initTbodyEl:function(K){H.superclass._initTbodyEl.call(this,K);K.style.marginTop=(this._elTbody.offsetTop>0)?"-"+this._elTbody.offsetTop+"px":0;},_focusEl:function(L){L=L||this._elTbody;var K=this;this._storeScrollPositions();setTimeout(function(){setTimeout(function(){try{L.focus();K._restoreScrollPositions();}catch(M){}},0);},0);},_runRenderChain:function(){this._storeScrollPositions();this._oChainRender.run();},_storeScrollPositions:function(){this._nScrollTop=this._elBdContainer.scrollTop;this._nScrollLeft=this._elBdContainer.scrollLeft;},clearScrollPositions:function(){this._nScrollTop=0;this._nScrollLeft=0;},_restoreScrollPositions:function(){if(this._nScrollTop){this._elBdContainer.scrollTop=this._nScrollTop;this._nScrollTop=null;}if(this._nScrollLeft){this._elBdContainer.scrollLeft=this._nScrollLeft;this._nScrollLeft=null;}},_validateColumnWidth:function(N,K){if(!N.width&&!N.hidden){var P=N.getThEl();if(N._calculatedWidth){this._setColumnWidth(N,"auto","visible");}if(P.offsetWidth!==K.offsetWidth){var M=(P.offsetWidth>K.offsetWidth)?N.getThLinerEl():K.firstChild;var L=Math.max(0,(M.offsetWidth-(parseInt(D.getStyle(M,"paddingLeft"),10)|0)-(parseInt(D.getStyle(M,"paddingRight"),10)|0)),N.minWidth);var O="visible";if((N.maxAutoWidth>0)&&(L>N.maxAutoWidth)){L=N.maxAutoWidth;O="hidden";}this._elTbody.style.display="none";this._setColumnWidth(N,L+"px",O);N._calculatedWidth=L;this._elTbody.style.display="";}}},validateColumnWidths:function(S){var U=this._oColumnSet.keys,W=U.length,L=this.getFirstTrEl();if(A.ie){this._setOverhangValue(1);}if(U&&L&&(L.childNodes.length===W)){var M=this.get("width");if(M){this._elHdContainer.style.width="";this._elBdContainer.style.width="";}this._elContainer.style.width="";if(S&&C.isNumber(S.getKeyIndex())){this._validateColumnWidth(S,L.childNodes[S.getKeyIndex()]);}else{var T,K=[],O,Q,R;for(Q=0;Q<W;Q++){S=U[Q];if(!S.width&&!S.hidden&&S._calculatedWidth){K[K.length]=S;}}this._elTbody.style.display="none";for(Q=0,R=K.length;Q<R;Q++){this._setColumnWidth(K[Q],"auto","visible");}this._elTbody.style.display="";K=[];for(Q=0;Q<W;Q++){S=U[Q];T=L.childNodes[Q];if(!S.width&&!S.hidden){var N=S.getThEl();if(N.offsetWidth!==T.offsetWidth){var V=(N.offsetWidth>T.offsetWidth)?S.getThLinerEl():T.firstChild;var P=Math.max(0,(V.offsetWidth-(parseInt(D.getStyle(V,"paddingLeft"),10)|0)-(parseInt(D.getStyle(V,"paddingRight"),10)|0)),S.minWidth);
-var X="visible";if((S.maxAutoWidth>0)&&(P>S.maxAutoWidth)){P=S.maxAutoWidth;X="hidden";}K[K.length]=[S,P,X];}}}this._elTbody.style.display="none";for(Q=0,R=K.length;Q<R;Q++){O=K[Q];this._setColumnWidth(O[0],O[1]+"px",O[2]);O[0]._calculatedWidth=O[1];}this._elTbody.style.display="";}if(M){this._elHdContainer.style.width=M;this._elBdContainer.style.width=M;}}this._syncScroll();this._restoreScrollPositions();},_syncScroll:function(){this._syncScrollX();this._syncScrollY();this._syncScrollOverhang();if(A.opera){this._elHdContainer.scrollLeft=this._elBdContainer.scrollLeft;if(!this.get("width")){document.body.style+="";}}},_syncScrollY:function(){var K=this._elTbody,L=this._elBdContainer;if(!this.get("width")){this._elContainer.style.width=(L.scrollHeight>L.clientHeight)?(K.parentNode.clientWidth+19)+"px":(K.parentNode.clientWidth+2)+"px";}},_syncScrollX:function(){var K=this._elTbody,L=this._elBdContainer;if(!this.get("height")&&(A.ie)){L.style.height=(L.scrollWidth>L.offsetWidth)?(K.parentNode.offsetHeight+18)+"px":K.parentNode.offsetHeight+"px";}if(this._elTbody.rows.length===0){this._elMsgTbody.parentNode.style.width=this.getTheadEl().parentNode.offsetWidth+"px";}else{this._elMsgTbody.parentNode.style.width="";}},_syncScrollOverhang:function(){var L=this._elBdContainer,K=1;if((L.scrollHeight>L.clientHeight)&&(L.scrollWidth>L.clientWidth)){K=18;}this._setOverhangValue(K);},_setOverhangValue:function(N){var P=this._oColumnSet.headers[this._oColumnSet.headers.length-1]||[],L=P.length,K=this._sId+"-fixedth-",O=N+"px solid "+this.get("COLOR_COLUMNFILLER");this._elThead.style.display="none";for(var M=0;M<L;M++){D.get(K+P[M]).style.borderRight=O;}this._elThead.style.display="";},getHdContainerEl:function(){return this._elHdContainer;},getBdContainerEl:function(){return this._elBdContainer;},getHdTableEl:function(){return this._elHdTable;},getBdTableEl:function(){return this._elTable;},disable:function(){var K=this._elMask;K.style.width=this._elBdContainer.offsetWidth+"px";K.style.height=this._elHdContainer.offsetHeight+this._elBdContainer.offsetHeight+"px";K.style.display="";this.fireEvent("disableEvent");},removeColumn:function(M){var K=this._elHdContainer.scrollLeft;var L=this._elBdContainer.scrollLeft;M=H.superclass.removeColumn.call(this,M);this._elHdContainer.scrollLeft=K;this._elBdContainer.scrollLeft=L;return M;},insertColumn:function(N,L){var K=this._elHdContainer.scrollLeft;var M=this._elBdContainer.scrollLeft;var O=H.superclass.insertColumn.call(this,N,L);this._elHdContainer.scrollLeft=K;this._elBdContainer.scrollLeft=M;return O;},reorderColumn:function(N,L){var K=this._elHdContainer.scrollLeft;var M=this._elBdContainer.scrollLeft;var O=H.superclass.reorderColumn.call(this,N,L);this._elHdContainer.scrollLeft=K;this._elBdContainer.scrollLeft=M;return O;},setColumnWidth:function(L,K){L=this.getColumn(L);if(L){this._storeScrollPositions();if(C.isNumber(K)){K=(K>L.minWidth)?K:L.minWidth;L.width=K;this._setColumnWidth(L,K+"px");this._syncScroll();this.fireEvent("columnSetWidthEvent",{column:L,width:K});}else{if(K===null){L.width=K;this._setColumnWidth(L,"auto");this.validateColumnWidths(L);this.fireEvent("columnUnsetWidthEvent",{column:L});}}this._clearTrTemplateEl();}else{}},scrollTo:function(M){var L=this.getTdEl(M);if(L){this.clearScrollPositions();this.getBdContainerEl().scrollLeft=L.offsetLeft;this.getBdContainerEl().scrollTop=L.parentNode.offsetTop;}else{var K=this.getTrEl(M);if(K){this.clearScrollPositions();this.getBdContainerEl().scrollTop=K.offsetTop;}}},showTableMessage:function(O,K){var P=this._elMsgTd;if(C.isString(O)){P.firstChild.innerHTML=O;}if(C.isString(K)){D.addClass(P.firstChild,K);}var N=this.getTheadEl();var L=N.parentNode;var M=L.offsetWidth;this._elMsgTbody.parentNode.style.width=this.getTheadEl().parentNode.offsetWidth+"px";this._elMsgTbody.style.display="";this.fireEvent("tableMsgShowEvent",{html:O,className:K});},_onColumnChange:function(K){var L=(K.column)?K.column:(K.editor)?K.editor.column:null;this._storeScrollPositions();this.validateColumnWidths(L);},_onScroll:function(M,L){L._elHdContainer.scrollLeft=L._elBdContainer.scrollLeft;if(L._oCellEditor&&L._oCellEditor.isActive){L.fireEvent("editorBlurEvent",{editor:L._oCellEditor});L.cancelCellEditor();}var N=J.getTarget(M);var K=N.nodeName.toLowerCase();L.fireEvent("tableScrollEvent",{event:M,target:N});},_onTheadKeydown:function(N,L){if(J.getCharCode(N)===9){setTimeout(function(){if((L instanceof H)&&L._sId){L._elBdContainer.scrollLeft=L._elHdContainer.scrollLeft;}},0);}var O=J.getTarget(N);var K=O.nodeName.toLowerCase();var M=true;while(O&&(K!="table")){switch(K){case"body":return;case"input":case"textarea":break;case"thead":M=L.fireEvent("theadKeyEvent",{target:O,event:N});break;default:break;}if(M===false){return;}else{O=O.parentNode;if(O){K=O.nodeName.toLowerCase();}}}L.fireEvent("tableKeyEvent",{target:(O||L._elContainer),event:N});}});})();(function(){var C=YAHOO.lang,F=YAHOO.util,E=YAHOO.widget,B=YAHOO.env.ua,D=F.Dom,I=F.Event,H=E.DataTable;E.BaseCellEditor=function(K,J){this._sId=this._sId||"yui-ceditor"+YAHOO.widget.BaseCellEditor._nCount++;this._sType=K;this._initConfigs(J);this._initEvents();this.render();};var A=E.BaseCellEditor;C.augmentObject(A,{_nCount:0,CLASS_CELLEDITOR:"yui-ceditor"});A.prototype={_sId:null,_sType:null,_oDataTable:null,_oColumn:null,_oRecord:null,_elTd:null,_elContainer:null,_elCancelBtn:null,_elSaveBtn:null,_initConfigs:function(K){if(K&&YAHOO.lang.isObject(K)){for(var J in K){if(J){this[J]=K[J];}}}},_initEvents:function(){this.createEvent("showEvent");this.createEvent("keydownEvent");this.createEvent("invalidDataEvent");this.createEvent("revertEvent");this.createEvent("saveEvent");this.createEvent("cancelEvent");this.createEvent("blurEvent");this.createEvent("blockEvent");this.createEvent("unblockEvent");},asyncSubmitter:null,value:null,defaultValue:null,validator:null,resetInvalidData:true,isActive:false,LABEL_SAVE:"Save",LABEL_CANCEL:"Cancel",disableBtns:false,toString:function(){return"CellEditor instance "+this._sId;
-},getId:function(){return this._sId;},getDataTable:function(){return this._oDataTable;},getColumn:function(){return this._oColumn;},getRecord:function(){return this._oRecord;},getTdEl:function(){return this._elTd;},getContainerEl:function(){return this._elContainer;},destroy:function(){this.unsubscribeAll();var K=this.getColumn();if(K){K.editor=null;}var J=this.getContainerEl();I.purgeElement(J,true);J.parentNode.removeChild(J);},render:function(){if(this._elContainer){YAHOO.util.Event.purgeElement(this._elContainer,true);this._elContainer.innerHTML="";}var J=document.createElement("div");J.id=this.getId()+"-container";J.style.display="none";J.tabIndex=0;J.className=H.CLASS_EDITOR;document.body.insertBefore(J,document.body.firstChild);this._elContainer=J;I.addListener(J,"keydown",function(M,K){if((M.keyCode==27)){var L=I.getTarget(M);if(L.nodeName&&L.nodeName.toLowerCase()==="select"){L.blur();}K.cancel();}K.fireEvent("keydownEvent",{editor:this,event:M});},this);this.renderForm();if(!this.disableBtns){this.renderBtns();}this.doAfterRender();},renderBtns:function(){var L=this.getContainerEl().appendChild(document.createElement("div"));L.className=H.CLASS_BUTTON;var K=L.appendChild(document.createElement("button"));K.className=H.CLASS_DEFAULT;K.innerHTML=this.LABEL_SAVE;I.addListener(K,"click",function(M){this.save();},this,true);this._elSaveBtn=K;var J=L.appendChild(document.createElement("button"));J.innerHTML=this.LABEL_CANCEL;I.addListener(J,"click",function(M){this.cancel();},this,true);this._elCancelBtn=J;},attach:function(N,L){if(N instanceof YAHOO.widget.DataTable){this._oDataTable=N;L=N.getTdEl(L);if(L){this._elTd=L;var M=N.getColumn(L);if(M){this._oColumn=M;var J=N.getRecord(L);if(J){this._oRecord=J;var K=J.getData(this.getColumn().getField());this.value=(K!==undefined)?K:this.defaultValue;return true;}}}}return false;},move:function(){var M=this.getContainerEl(),L=this.getTdEl(),J=D.getX(L),N=D.getY(L);if(isNaN(J)||isNaN(N)){var K=this.getDataTable().getTbodyEl();J=L.offsetLeft+D.getX(K.parentNode)-K.scrollLeft;N=L.offsetTop+D.getY(K.parentNode)-K.scrollTop+this.getDataTable().getTheadEl().offsetHeight;}M.style.left=J+"px";M.style.top=N+"px";},show:function(){this.resetForm();this.isActive=true;this.getContainerEl().style.display="";this.focus();this.fireEvent("showEvent",{editor:this});},block:function(){this.fireEvent("blockEvent",{editor:this});},unblock:function(){this.fireEvent("unblockEvent",{editor:this});},save:function(){var K=this.getInputValue();var L=K;if(this.validator){L=this.validator.call(this.getDataTable(),K,this.value,this);if(L===undefined){if(this.resetInvalidData){this.resetForm();}this.fireEvent("invalidDataEvent",{editor:this,oldData:this.value,newData:K});return;}}var M=this;var J=function(O,N){var P=M.value;if(O){M.value=N;M.getDataTable().updateCell(M.getRecord(),M.getColumn(),N);M.getContainerEl().style.display="none";M.isActive=false;M.getDataTable()._oCellEditor=null;M.fireEvent("saveEvent",{editor:M,oldData:P,newData:M.value});}else{M.resetForm();M.fireEvent("revertEvent",{editor:M,oldData:P,newData:N});}M.unblock();};this.block();if(C.isFunction(this.asyncSubmitter)){this.asyncSubmitter.call(this,J,L);}else{J(true,L);}},cancel:function(){if(this.isActive){this.getContainerEl().style.display="none";this.isActive=false;this.getDataTable()._oCellEditor=null;this.fireEvent("cancelEvent",{editor:this});}else{}},renderForm:function(){},doAfterRender:function(){},handleDisabledBtns:function(){},resetForm:function(){},focus:function(){},getInputValue:function(){}};C.augmentProto(A,F.EventProvider);E.CheckboxCellEditor=function(J){this._sId="yui-checkboxceditor"+YAHOO.widget.BaseCellEditor._nCount++;E.CheckboxCellEditor.superclass.constructor.call(this,"checkbox",J);};C.extend(E.CheckboxCellEditor,A,{checkboxOptions:null,checkboxes:null,value:null,renderForm:function(){if(C.isArray(this.checkboxOptions)){var M,N,P,K,L,J;for(L=0,J=this.checkboxOptions.length;L<J;L++){M=this.checkboxOptions[L];N=C.isValue(M.value)?M.value:M;P=this.getId()+"-chk"+L;this.getContainerEl().innerHTML+='<input type="checkbox"'+' id="'+P+'"'+' value="'+N+'" />';K=this.getContainerEl().appendChild(document.createElement("label"));K.htmlFor=P;K.innerHTML=C.isValue(M.label)?M.label:M;}var O=[];for(L=0;L<J;L++){O[O.length]=this.getContainerEl().childNodes[L*2];}this.checkboxes=O;if(this.disableBtns){this.handleDisabledBtns();}}else{}},handleDisabledBtns:function(){I.addListener(this.getContainerEl(),"click",function(J){if(I.getTarget(J).tagName.toLowerCase()==="input"){this.save();}},this,true);},resetForm:function(){var N=C.isArray(this.value)?this.value:[this.value];for(var M=0,L=this.checkboxes.length;M<L;M++){this.checkboxes[M].checked=false;for(var K=0,J=N.length;K<J;K++){if(this.checkboxes[M].value===N[K]){this.checkboxes[M].checked=true;}}}},focus:function(){this.checkboxes[0].focus();},getInputValue:function(){var J=[];for(var L=0,K=this.checkboxes.length;L<K;L++){if(this.checkboxes[L].checked){J[J.length]=this.checkboxes[L].value;}}return J;}});C.augmentObject(E.CheckboxCellEditor,A);E.DateCellEditor=function(J){this._sId="yui-dateceditor"+YAHOO.widget.BaseCellEditor._nCount++;E.DateCellEditor.superclass.constructor.call(this,"date",J);};C.extend(E.DateCellEditor,A,{calendar:null,calendarOptions:null,defaultValue:new Date(),renderForm:function(){if(YAHOO.widget.Calendar){var K=this.getContainerEl().appendChild(document.createElement("div"));K.id=this.getId()+"-dateContainer";var L=new YAHOO.widget.Calendar(this.getId()+"-date",K.id,this.calendarOptions);L.render();K.style.cssFloat="none";if(B.ie){var J=this.getContainerEl().appendChild(document.createElement("div"));J.style.clear="both";}this.calendar=L;if(this.disableBtns){this.handleDisabledBtns();}}else{}},handleDisabledBtns:function(){this.calendar.selectEvent.subscribe(function(J){this.save();},this,true);},resetForm:function(){var K=this.value;var J=(K.getMonth()+1)+"/"+K.getDate()+"/"+K.getFullYear();this.calendar.cfg.setProperty("selected",J,false);
-this.calendar.render();},focus:function(){},getInputValue:function(){return this.calendar.getSelectedDates()[0];}});C.augmentObject(E.DateCellEditor,A);E.DropdownCellEditor=function(J){this._sId="yui-dropdownceditor"+YAHOO.widget.BaseCellEditor._nCount++;E.DropdownCellEditor.superclass.constructor.call(this,"dropdown",J);};C.extend(E.DropdownCellEditor,A,{dropdownOptions:null,dropdown:null,multiple:false,size:null,renderForm:function(){var M=this.getContainerEl().appendChild(document.createElement("select"));M.style.zoom=1;if(this.multiple){M.multiple="multiple";}if(C.isNumber(this.size)){M.size=this.size;}this.dropdown=M;if(C.isArray(this.dropdownOptions)){var N,L;for(var K=0,J=this.dropdownOptions.length;K<J;K++){N=this.dropdownOptions[K];L=document.createElement("option");L.value=(C.isValue(N.value))?N.value:N;L.innerHTML=(C.isValue(N.label))?N.label:N;L=M.appendChild(L);}if(this.disableBtns){this.handleDisabledBtns();}}},handleDisabledBtns:function(){if(this.multiple){I.addListener(this.dropdown,"blur",function(J){this.save();},this,true);}else{I.addListener(this.dropdown,"change",function(J){this.save();},this,true);}},resetForm:function(){var P=this.dropdown.options,M=0,L=P.length;if(C.isArray(this.value)){var K=this.value,J=0,O=K.length,N={};for(;M<L;M++){P[M].selected=false;N[P[M].value]=P[M];}for(;J<O;J++){if(N[K[J]]){N[K[J]].selected=true;}}}else{for(;M<L;M++){if(this.value===P[M].value){P[M].selected=true;}}}},focus:function(){this.getDataTable()._focusEl(this.dropdown);},getInputValue:function(){var M=this.dropdown.options;if(this.multiple){var J=[],L=0,K=M.length;for(;L<K;L++){if(M[L].selected){J.push(M[L].value);}}return J;}else{return M[M.selectedIndex].value;}}});C.augmentObject(E.DropdownCellEditor,A);E.RadioCellEditor=function(J){this._sId="yui-radioceditor"+YAHOO.widget.BaseCellEditor._nCount++;E.RadioCellEditor.superclass.constructor.call(this,"radio",J);};C.extend(E.RadioCellEditor,A,{radios:null,radioOptions:null,renderForm:function(){if(C.isArray(this.radioOptions)){var J,K,Q,N;for(var M=0,O=this.radioOptions.length;M<O;M++){J=this.radioOptions[M];K=C.isValue(J.value)?J.value:J;Q=this.getId()+"-radio"+M;this.getContainerEl().innerHTML+='<input type="radio"'+' name="'+this.getId()+'"'+' value="'+K+'"'+' id="'+Q+'" />';N=this.getContainerEl().appendChild(document.createElement("label"));N.htmlFor=Q;N.innerHTML=(C.isValue(J.label))?J.label:J;}var P=[],R;for(var L=0;L<O;L++){R=this.getContainerEl().childNodes[L*2];P[P.length]=R;}this.radios=P;if(this.disableBtns){this.handleDisabledBtns();}}else{}},handleDisabledBtns:function(){I.addListener(this.getContainerEl(),"click",function(J){if(I.getTarget(J).tagName.toLowerCase()==="input"){this.save();}},this,true);},resetForm:function(){for(var L=0,K=this.radios.length;L<K;L++){var J=this.radios[L];if(this.value===J.value){J.checked=true;return;}}},focus:function(){for(var K=0,J=this.radios.length;K<J;K++){if(this.radios[K].checked){this.radios[K].focus();return;}}},getInputValue:function(){for(var K=0,J=this.radios.length;K<J;K++){if(this.radios[K].checked){return this.radios[K].value;}}}});C.augmentObject(E.RadioCellEditor,A);E.TextareaCellEditor=function(J){this._sId="yui-textareaceditor"+YAHOO.widget.BaseCellEditor._nCount++;E.TextareaCellEditor.superclass.constructor.call(this,"textarea",J);};C.extend(E.TextareaCellEditor,A,{textarea:null,renderForm:function(){var J=this.getContainerEl().appendChild(document.createElement("textarea"));this.textarea=J;if(this.disableBtns){this.handleDisabledBtns();}},handleDisabledBtns:function(){I.addListener(this.textarea,"blur",function(J){this.save();},this,true);},move:function(){this.textarea.style.width=this.getTdEl().offsetWidth+"px";this.textarea.style.height="3em";YAHOO.widget.TextareaCellEditor.superclass.move.call(this);},resetForm:function(){this.textarea.value=this.value;},focus:function(){this.getDataTable()._focusEl(this.textarea);this.textarea.select();},getInputValue:function(){return this.textarea.value;}});C.augmentObject(E.TextareaCellEditor,A);E.TextboxCellEditor=function(J){this._sId="yui-textboxceditor"+YAHOO.widget.BaseCellEditor._nCount++;E.TextboxCellEditor.superclass.constructor.call(this,"textbox",J);};C.extend(E.TextboxCellEditor,A,{textbox:null,renderForm:function(){var J;if(B.webkit>420){J=this.getContainerEl().appendChild(document.createElement("form")).appendChild(document.createElement("input"));}else{J=this.getContainerEl().appendChild(document.createElement("input"));}J.type="text";this.textbox=J;I.addListener(J,"keypress",function(K){if((K.keyCode===13)){YAHOO.util.Event.preventDefault(K);this.save();}},this,true);if(this.disableBtns){this.handleDisabledBtns();}},move:function(){this.textbox.style.width=this.getTdEl().offsetWidth+"px";E.TextboxCellEditor.superclass.move.call(this);},resetForm:function(){this.textbox.value=C.isValue(this.value)?this.value.toString():"";},focus:function(){this.getDataTable()._focusEl(this.textbox);this.textbox.select();},getInputValue:function(){return this.textbox.value;}});C.augmentObject(E.TextboxCellEditor,A);H.Editors={checkbox:E.CheckboxCellEditor,"date":E.DateCellEditor,dropdown:E.DropdownCellEditor,radio:E.RadioCellEditor,textarea:E.TextareaCellEditor,textbox:E.TextboxCellEditor};E.CellEditor=function(K,J){if(K&&H.Editors[K]){C.augmentObject(A,H.Editors[K]);return new H.Editors[K](J);}else{return new A(null,J);}};var G=E.CellEditor;C.augmentObject(G,A);})();YAHOO.register("datatable",YAHOO.widget.DataTable,{version:"2.8.0r4",build:"2449"});
\ No newline at end of file
diff --git a/koha-tmpl/intranet-tmpl/prog/en/lib/yui/datatable/datatable.js b/koha-tmpl/intranet-tmpl/prog/en/lib/yui/datatable/datatable.js
deleted file mode 100644 (file)
index ca94d65..0000000
+++ /dev/null
@@ -1,17122 +0,0 @@
-/*
-Copyright (c) 2009, Yahoo! Inc. All rights reserved.
-Code licensed under the BSD License:
-http://developer.yahoo.net/yui/license.txt
-version: 2.8.0r4
-*/
-/**
- * Mechanism to execute a series of callbacks in a non-blocking queue.  Each callback is executed via setTimout unless configured with a negative timeout, in which case it is run in blocking mode in the same execution thread as the previous callback.  Callbacks can be function references or object literals with the following keys:
- * <ul>
- *    <li><code>method</code> - {Function} REQUIRED the callback function.</li>
- *    <li><code>scope</code> - {Object} the scope from which to execute the callback.  Default is the global window scope.</li>
- *    <li><code>argument</code> - {Array} parameters to be passed to method as individual arguments.</li>
- *    <li><code>timeout</code> - {number} millisecond delay to wait after previous callback completion before executing this callback.  Negative values cause immediate blocking execution.  Default 0.</li>
- *    <li><code>until</code> - {Function} boolean function executed before each iteration.  Return true to indicate completion and proceed to the next callback.</li>
- *    <li><code>iterations</code> - {Number} number of times to execute the callback before proceeding to the next callback in the chain. Incompatible with <code>until</code>.</li>
- * </ul>
- *
- * @namespace YAHOO.util
- * @class Chain
- * @constructor
- * @param callback* {Function|Object} Any number of callbacks to initialize the queue
-*/
-YAHOO.util.Chain = function () {
-    /**
-     * The callback queue
-     * @property q
-     * @type {Array}
-     * @private
-     */
-    this.q = [].slice.call(arguments);
-
-    /**
-     * Event fired when the callback queue is emptied via execution (not via
-     * a call to chain.stop().
-     * @event end
-     */
-    this.createEvent('end');
-};
-
-YAHOO.util.Chain.prototype = {
-    /**
-     * Timeout id used to pause or stop execution and indicate the execution state of the Chain.  0 indicates paused or stopped, -1 indicates blocking execution, and any positive number indicates non-blocking execution.
-     * @property id
-     * @type {number}
-     * @private
-     */
-    id   : 0,
-
-    /**
-     * Begin executing the chain, or resume execution from the last paused position.
-     * @method run
-     * @return {Chain} the Chain instance
-     */
-    run : function () {
-        // Grab the first callback in the queue
-        var c  = this.q[0],
-            fn;
-
-        // If there is no callback in the queue or the Chain is currently
-        // in an execution mode, return
-        if (!c) {
-            this.fireEvent('end');
-            return this;
-        } else if (this.id) {
-            return this;
-        }
-
-        fn = c.method || c;
-
-        if (typeof fn === 'function') {
-            var o    = c.scope || {},
-                args = c.argument || [],
-                ms   = c.timeout || 0,
-                me   = this;
-                
-            if (!(args instanceof Array)) {
-                args = [args];
-            }
-
-            // Execute immediately if the callback timeout is negative.
-            if (ms < 0) {
-                this.id = ms;
-                if (c.until) {
-                    for (;!c.until();) {
-                        // Execute the callback from scope, with argument
-                        fn.apply(o,args);
-                    }
-                } else if (c.iterations) {
-                    for (;c.iterations-- > 0;) {
-                        fn.apply(o,args);
-                    }
-                } else {
-                    fn.apply(o,args);
-                }
-                this.q.shift();
-                this.id = 0;
-                return this.run();
-            } else {
-                // If the until condition is set, check if we're done
-                if (c.until) {
-                    if (c.until()) {
-                        // Shift this callback from the queue and execute the next
-                        // callback
-                        this.q.shift();
-                        return this.run();
-                    }
-                // Otherwise if either iterations is not set or we're
-                // executing the last iteration, shift callback from the queue
-                } else if (!c.iterations || !--c.iterations) {
-                    this.q.shift();
-                }
-
-                // Otherwise set to execute after the configured timeout
-                this.id = setTimeout(function () {
-                    // Execute the callback from scope, with argument
-                    fn.apply(o,args);
-                    // Check if the Chain was not paused from inside the callback
-                    if (me.id) {
-                        // Indicate ready to run state
-                        me.id = 0;
-                        // Start the fun all over again
-                        me.run();
-                    }
-                },ms);
-            }
-        }
-
-        return this;
-    },
-    
-    /**
-     * Add a callback to the end of the queue
-     * @method add
-     * @param c {Function|Object} the callback function ref or object literal
-     * @return {Chain} the Chain instance
-     */
-    add  : function (c) {
-        this.q.push(c);
-        return this;
-    },
-
-    /**
-     * Pause the execution of the Chain after the current execution of the
-     * current callback completes.  If called interstitially, clears the
-     * timeout for the pending callback. Paused Chains can be restarted with
-     * chain.run()
-     * @method pause
-     * @return {Chain} the Chain instance
-     */
-    pause: function () {
-        // Conditional added for Caja compatibility
-        if (this.id > 0) {
-            clearTimeout(this.id);
-        }
-        this.id = 0;
-        return this;
-    },
-
-    /**
-     * Stop and clear the Chain's queue after the current execution of the
-     * current callback completes.
-     * @method stop
-     * @return {Chain} the Chain instance
-     */
-    stop : function () { 
-        this.pause();
-        this.q = [];
-        return this;
-    }
-};
-YAHOO.lang.augmentProto(YAHOO.util.Chain,YAHOO.util.EventProvider);
-
-/****************************************************************************/
-/****************************************************************************/
-/****************************************************************************/
-
-/**
- * The ColumnSet class defines and manages a DataTable's Columns,
- * including nested hierarchies and access to individual Column instances.
- *
- * @namespace YAHOO.widget
- * @class ColumnSet
- * @uses YAHOO.util.EventProvider
- * @constructor
- * @param aDefinitions {Object[]} Array of object literals that define cells in
- * the THEAD.
- */
-YAHOO.widget.ColumnSet = function(aDefinitions) {
-    this._sId = "yui-cs" + YAHOO.widget.ColumnSet._nCount;
-
-    // First clone the defs
-    aDefinitions = YAHOO.widget.DataTable._cloneObject(aDefinitions);
-    this._init(aDefinitions);
-
-    YAHOO.widget.ColumnSet._nCount++;
-};
-
-/////////////////////////////////////////////////////////////////////////////
-//
-// Private member variables
-//
-/////////////////////////////////////////////////////////////////////////////
-
-/**
- * Internal class variable to index multiple ColumnSet instances.
- *
- * @property ColumnSet._nCount
- * @type Number
- * @private
- * @static
- */
-YAHOO.widget.ColumnSet._nCount = 0;
-
-YAHOO.widget.ColumnSet.prototype = {
-    /**
-     * Unique instance name.
-     *
-     * @property _sId
-     * @type String
-     * @private
-     */
-    _sId : null,
-
-    /**
-     * Array of object literal Column definitions passed to the constructor.
-     *
-     * @property _aDefinitions
-     * @type Object[]
-     * @private
-     */
-    _aDefinitions : null,
-
-    /////////////////////////////////////////////////////////////////////////////
-    //
-    // Public member variables
-    //
-    /////////////////////////////////////////////////////////////////////////////
-
-    /**
-     * Top-down tree representation of Column hierarchy.
-     *
-     * @property tree
-     * @type YAHOO.widget.Column[]
-     */
-    tree : null,
-
-    /**
-     * Flattened representation of all Columns.
-     *
-     * @property flat
-     * @type YAHOO.widget.Column[]
-     * @default []
-     */
-    flat : null,
-
-    /**
-     * Array of Columns that map one-to-one to a table column.
-     *
-     * @property keys
-     * @type YAHOO.widget.Column[]
-     * @default []
-     */
-    keys : null,
-
-    /**
-     * ID index of nested parent hierarchies for HEADERS accessibility attribute.
-     *
-     * @property headers
-     * @type String[]
-     * @default []
-     */
-    headers : null,
-
-    /////////////////////////////////////////////////////////////////////////////
-    //
-    // Private methods
-    //
-    /////////////////////////////////////////////////////////////////////////////
-
-    /**
-     * Initializes ColumnSet instance with data from Column definitions.
-     *
-     * @method _init
-     * @param aDefinitions {Object[]} Array of object literals that define cells in
-     * the THEAD .
-     * @private
-     */
-
-    _init : function(aDefinitions) {        
-        // DOM tree representation of all Columns
-        var tree = [];
-        // Flat representation of all Columns
-        var flat = [];
-        // Flat representation of only Columns that are meant to display data
-        var keys = [];
-        // Array of HEADERS attribute values for all keys in the "keys" array
-        var headers = [];
-
-        // Tracks current node list depth being tracked
-        var nodeDepth = -1;
-
-        // Internal recursive function to define Column instances
-        var parseColumns = function(nodeList, parent) {
-            // One level down
-            nodeDepth++;
-
-            // Create corresponding tree node if not already there for this depth
-            if(!tree[nodeDepth]) {
-                tree[nodeDepth] = [];
-            }
-
-
-            // Parse each node at this depth for attributes and any children
-            for(var j=0; j<nodeList.length; j++) {
-                var currentNode = nodeList[j];
-
-                // Instantiate a new Column for each node
-                var oColumn = new YAHOO.widget.Column(currentNode);
-                
-                // Cross-reference Column ID back to the original object literal definition
-                currentNode.yuiColumnId = oColumn._sId;
-                
-                // Add the new Column to the flat list
-                flat.push(oColumn);
-
-                // Assign its parent as an attribute, if applicable
-                if(parent) {
-                    oColumn._oParent = parent;
-                }
-
-                // The Column has descendants
-                if(YAHOO.lang.isArray(currentNode.children)) {
-                    oColumn.children = currentNode.children;
-
-                    // Determine COLSPAN value for this Column
-                    var terminalChildNodes = 0;
-                    var countTerminalChildNodes = function(ancestor) {
-                        var descendants = ancestor.children;
-                        // Drill down each branch and count terminal nodes
-                        for(var k=0; k<descendants.length; k++) {
-                            // Keep drilling down
-                            if(YAHOO.lang.isArray(descendants[k].children)) {
-                                countTerminalChildNodes(descendants[k]);
-                            }
-                            // Reached branch terminus
-                            else {
-                                terminalChildNodes++;
-                            }
-                        }
-                    };
-                    countTerminalChildNodes(currentNode);
-                    oColumn._nColspan = terminalChildNodes;
-
-                    // Cascade certain properties to children if not defined on their own
-                    var currentChildren = currentNode.children;
-                    for(var k=0; k<currentChildren.length; k++) {
-                        var child = currentChildren[k];
-                        if(oColumn.className && (child.className === undefined)) {
-                            child.className = oColumn.className;
-                        }
-                        if(oColumn.editor && (child.editor === undefined)) {
-                            child.editor = oColumn.editor;
-                        }
-                        //TODO: Deprecated
-                        if(oColumn.editorOptions && (child.editorOptions === undefined)) {
-                            child.editorOptions = oColumn.editorOptions;
-                        }
-                        if(oColumn.formatter && (child.formatter === undefined)) {
-                            child.formatter = oColumn.formatter;
-                        }
-                        if(oColumn.resizeable && (child.resizeable === undefined)) {
-                            child.resizeable = oColumn.resizeable;
-                        }
-                        if(oColumn.sortable && (child.sortable === undefined)) {
-                            child.sortable = oColumn.sortable;
-                        }
-                        if(oColumn.hidden) {
-                            child.hidden = true;
-                        }
-                        if(oColumn.width && (child.width === undefined)) {
-                            child.width = oColumn.width;
-                        }
-                        if(oColumn.minWidth && (child.minWidth === undefined)) {
-                            child.minWidth = oColumn.minWidth;
-                        }
-                        if(oColumn.maxAutoWidth && (child.maxAutoWidth === undefined)) {
-                            child.maxAutoWidth = oColumn.maxAutoWidth;
-                        }
-                        // Backward compatibility
-                        if(oColumn.type && (child.type === undefined)) {
-                            child.type = oColumn.type;
-                        }
-                        if(oColumn.type && !oColumn.formatter) {
-                            oColumn.formatter = oColumn.type;
-                        }
-                        if(oColumn.text && !YAHOO.lang.isValue(oColumn.label)) {
-                            oColumn.label = oColumn.text;
-                        }
-                        if(oColumn.parser) {
-                        }
-                        if(oColumn.sortOptions && ((oColumn.sortOptions.ascFunction) ||
-                                (oColumn.sortOptions.descFunction))) {
-                        }
-                    }
-
-                    // The children themselves must also be parsed for Column instances
-                    if(!tree[nodeDepth+1]) {
-                        tree[nodeDepth+1] = [];
-                    }
-                    parseColumns(currentChildren, oColumn);
-                }
-                // This Column does not have any children
-                else {
-                    oColumn._nKeyIndex = keys.length;
-                    oColumn._nColspan = 1;
-                    keys.push(oColumn);
-                }
-
-                // Add the Column to the top-down tree
-                tree[nodeDepth].push(oColumn);
-            }
-            nodeDepth--;
-        };
-
-        // Parse out Column instances from the array of object literals
-        if(YAHOO.lang.isArray(aDefinitions)) {
-            parseColumns(aDefinitions);
-
-            // Store the array
-            this._aDefinitions = aDefinitions;
-        }
-        else {
-            return null;
-        }
-
-        var i;
-
-        // Determine ROWSPAN value for each Column in the tree
-        var parseTreeForRowspan = function(tree) {
-            var maxRowDepth = 1;
-            var currentRow;
-            var currentColumn;
-
-            // Calculate the max depth of descendants for this row
-            var countMaxRowDepth = function(row, tmpRowDepth) {
-                tmpRowDepth = tmpRowDepth || 1;
-
-                for(var n=0; n<row.length; n++) {
-                    var col = row[n];
-                    // Column has children, so keep counting
-                    if(YAHOO.lang.isArray(col.children)) {
-                        tmpRowDepth++;
-                        countMaxRowDepth(col.children, tmpRowDepth);
-                        tmpRowDepth--;
-                    }
-                    // No children, is it the max depth?
-                    else {
-                        if(tmpRowDepth > maxRowDepth) {
-                            maxRowDepth = tmpRowDepth;
-                        }
-                    }
-
-                }
-            };
-
-            // Count max row depth for each row
-            for(var m=0; m<tree.length; m++) {
-                currentRow = tree[m];
-                countMaxRowDepth(currentRow);
-
-                // Assign the right ROWSPAN values to each Column in the row
-                for(var p=0; p<currentRow.length; p++) {
-                    currentColumn = currentRow[p];
-                    if(!YAHOO.lang.isArray(currentColumn.children)) {
-                        currentColumn._nRowspan = maxRowDepth;
-                    }
-                    else {
-                        currentColumn._nRowspan = 1;
-                    }
-                }
-
-                // Reset counter for next row
-                maxRowDepth = 1;
-            }
-        };
-        parseTreeForRowspan(tree);
-
-        // Store tree index values
-        for(i=0; i<tree[0].length; i++) {
-            tree[0][i]._nTreeIndex = i;
-        }
-
-        // Store header relationships in an array for HEADERS attribute
-        var recurseAncestorsForHeaders = function(i, oColumn) {
-            headers[i].push(oColumn.getSanitizedKey());
-            if(oColumn._oParent) {
-                recurseAncestorsForHeaders(i, oColumn._oParent);
-            }
-        };
-        for(i=0; i<keys.length; i++) {
-            headers[i] = [];
-            recurseAncestorsForHeaders(i, keys[i]);
-            headers[i] = headers[i].reverse();
-        }
-
-        // Save to the ColumnSet instance
-        this.tree = tree;
-        this.flat = flat;
-        this.keys = keys;
-        this.headers = headers;
-    },
-
-    /////////////////////////////////////////////////////////////////////////////
-    //
-    // Public methods
-    //
-    /////////////////////////////////////////////////////////////////////////////
-
-    /**
-     * Returns unique name of the ColumnSet instance.
-     *
-     * @method getId
-     * @return {String} Unique name of the ColumnSet instance.
-     */
-
-    getId : function() {
-        return this._sId;
-    },
-
-    /**
-     * ColumnSet instance name, for logging.
-     *
-     * @method toString
-     * @return {String} Unique name of the ColumnSet instance.
-     */
-
-    toString : function() {
-        return "ColumnSet instance " + this._sId;
-    },
-
-    /**
-     * Public accessor to the definitions array.
-     *
-     * @method getDefinitions
-     * @return {Object[]} Array of object literal Column definitions.
-     */
-
-    getDefinitions : function() {
-        var aDefinitions = this._aDefinitions;
-        
-        // Internal recursive function to define Column instances
-        var parseColumns = function(nodeList, oSelf) {
-            // Parse each node at this depth for attributes and any children
-            for(var j=0; j<nodeList.length; j++) {
-                var currentNode = nodeList[j];
-                
-                // Get the Column for each node
-                var oColumn = oSelf.getColumnById(currentNode.yuiColumnId);
-                
-                if(oColumn) {    
-                    // Update the current values
-                    var oDefinition = oColumn.getDefinition();
-                    for(var name in oDefinition) {
-                        if(YAHOO.lang.hasOwnProperty(oDefinition, name)) {
-                            currentNode[name] = oDefinition[name];
-                        }
-                    }
-                }
-                            
-                // The Column has descendants
-                if(YAHOO.lang.isArray(currentNode.children)) {
-                    // The children themselves must also be parsed for Column instances
-                    parseColumns(currentNode.children, oSelf);
-                }
-            }
-        };
-
-        parseColumns(aDefinitions, this);
-        this._aDefinitions = aDefinitions;
-        return aDefinitions;
-    },
-
-    /**
-     * Returns Column instance with given ID.
-     *
-     * @method getColumnById
-     * @param column {String} Column ID.
-     * @return {YAHOO.widget.Column} Column instance.
-     */
-
-    getColumnById : function(column) {
-        if(YAHOO.lang.isString(column)) {
-            var allColumns = this.flat;
-            for(var i=allColumns.length-1; i>-1; i--) {
-                if(allColumns[i]._sId === column) {
-                    return allColumns[i];
-                }
-            }
-        }
-        return null;
-    },
-
-    /**
-     * Returns Column instance with given key or ColumnSet key index.
-     *
-     * @method getColumn
-     * @param column {String | Number} Column key or ColumnSet key index.
-     * @return {YAHOO.widget.Column} Column instance.
-     */
-
-    getColumn : function(column) {
-        if(YAHOO.lang.isNumber(column) && this.keys[column]) {
-            return this.keys[column];
-        }
-        else if(YAHOO.lang.isString(column)) {
-            var allColumns = this.flat;
-            var aColumns = [];
-            for(var i=0; i<allColumns.length; i++) {
-                if(allColumns[i].key === column) {
-                    aColumns.push(allColumns[i]);
-                }
-            }
-            if(aColumns.length === 1) {
-                return aColumns[0];
-            }
-            else if(aColumns.length > 1) {
-                return aColumns;
-            }
-        }
-        return null;
-    },
-
-    /**
-     * Public accessor returns array of given Column's desendants (if any), including itself.
-     *
-     * @method getDescendants
-     * @parem {YAHOO.widget.Column} Column instance.
-     * @return {Array} Array including the Column itself and all descendants (if any).
-     */
-    getDescendants : function(oColumn) {
-        var oSelf = this;
-        var allDescendants = [];
-        var i;
-
-        // Recursive function to loop thru all children
-        var parse = function(oParent) {
-            allDescendants.push(oParent);
-            // This Column has children
-            if(oParent.children) {
-                for(i=0; i<oParent.children.length; i++) {
-                    parse(oSelf.getColumn(oParent.children[i].key));
-                }
-            }
-        };
-        parse(oColumn);
-
-        return allDescendants;
-    }
-};
-
-/****************************************************************************/
-/****************************************************************************/
-/****************************************************************************/
-
-/**
- * The Column class defines and manages attributes of DataTable Columns
- *
- * @namespace YAHOO.widget
- * @class Column
- * @constructor
- * @param oConfigs {Object} Object literal of definitions.
- */
-YAHOO.widget.Column = function(oConfigs) {
-    this._sId = "yui-col" + YAHOO.widget.Column._nCount;
-    
-    // Object literal defines Column attributes
-    if(oConfigs && YAHOO.lang.isObject(oConfigs)) {
-        for(var sConfig in oConfigs) {
-            if(sConfig) {
-                this[sConfig] = oConfigs[sConfig];
-            }
-        }
-    }
-
-    // Assign a key if not found
-    if(!YAHOO.lang.isValue(this.key)) {
-        this.key = "yui-dt-col" + YAHOO.widget.Column._nCount;
-    }
-    
-    // Assign a field if not found, defaults to key
-    if(!YAHOO.lang.isValue(this.field)) {
-        this.field = this.key;
-    }
-
-    // Increment counter
-    YAHOO.widget.Column._nCount++;
-
-    // Backward compatibility
-    if(this.width && !YAHOO.lang.isNumber(this.width)) {
-        this.width = null;
-    }
-    if(this.editor && YAHOO.lang.isString(this.editor)) {
-        this.editor = new YAHOO.widget.CellEditor(this.editor, this.editorOptions);
-    }
-};
-
-/////////////////////////////////////////////////////////////////////////////
-//
-// Private member variables
-//
-/////////////////////////////////////////////////////////////////////////////
-
-YAHOO.lang.augmentObject(YAHOO.widget.Column, {
-    /**
-     * Internal class variable to index multiple Column instances.
-     *
-     * @property Column._nCount
-     * @type Number
-     * @private
-     * @static
-     */
-    _nCount : 0,
-
-    formatCheckbox : function(elCell, oRecord, oColumn, oData) {
-        YAHOO.widget.DataTable.formatCheckbox(elCell, oRecord, oColumn, oData);
-    },
-
-    formatCurrency : function(elCell, oRecord, oColumn, oData) {
-        YAHOO.widget.DataTable.formatCurrency(elCell, oRecord, oColumn, oData);
-    },
-
-    formatDate : function(elCell, oRecord, oColumn, oData) {
-        YAHOO.widget.DataTable.formatDate(elCell, oRecord, oColumn, oData);
-    },
-
-    formatEmail : function(elCell, oRecord, oColumn, oData) {
-        YAHOO.widget.DataTable.formatEmail(elCell, oRecord, oColumn, oData);
-    },
-
-    formatLink : function(elCell, oRecord, oColumn, oData) {
-        YAHOO.widget.DataTable.formatLink(elCell, oRecord, oColumn, oData);
-    },
-
-    formatNumber : function(elCell, oRecord, oColumn, oData) {
-        YAHOO.widget.DataTable.formatNumber(elCell, oRecord, oColumn, oData);
-    },
-
-    formatSelect : function(elCell, oRecord, oColumn, oData) {
-        YAHOO.widget.DataTable.formatDropdown(elCell, oRecord, oColumn, oData);
-    }
-});
-
-YAHOO.widget.Column.prototype = {
-    /**
-     * Unique String identifier assigned at instantiation.
-     *
-     * @property _sId
-     * @type String
-     * @private
-     */
-    _sId : null,
-
-    /**
-     * Reference to Column's current position index within its ColumnSet's keys
-     * array, if applicable. This property only applies to non-nested and bottom-
-     * level child Columns.
-     *
-     * @property _nKeyIndex
-     * @type Number
-     * @private
-     */
-    _nKeyIndex : null,
-
-    /**
-     * Reference to Column's current position index within its ColumnSet's tree
-     * array, if applicable. This property only applies to non-nested and top-
-     * level parent Columns.
-     *
-     * @property _nTreeIndex
-     * @type Number
-     * @private
-     */
-    _nTreeIndex : null,
-
-    /**
-     * Number of table cells the Column spans.
-     *
-     * @property _nColspan
-     * @type Number
-     * @private
-     */
-    _nColspan : 1,
-
-    /**
-     * Number of table rows the Column spans.
-     *
-     * @property _nRowspan
-     * @type Number
-     * @private
-     */
-    _nRowspan : 1,
-
-    /**
-     * Column's parent Column instance, or null.
-     *
-     * @property _oParent
-     * @type YAHOO.widget.Column
-     * @private
-     */
-    _oParent : null,
-
-    /**
-     * The DOM reference to the associated TH element.
-     *
-     * @property _elTh
-     * @type HTMLElement
-     * @private
-     */
-    _elTh : null,
-
-    /**
-     * The DOM reference to the associated TH element's liner DIV element.
-     *
-     * @property _elThLiner
-     * @type HTMLElement
-     * @private
-     */
-    _elThLiner : null,
-
-    /**
-     * The DOM reference to the associated TH element's label SPAN element.
-     *
-     * @property _elThLabel
-     * @type HTMLElement
-     * @private
-     */
-    _elThLabel : null,
-
-    /**
-     * The DOM reference to the associated resizerelement (if any).
-     *
-     * @property _elResizer
-     * @type HTMLElement
-     * @private
-     */
-    _elResizer : null,
-
-    /**
-     * Internal width tracker.
-     *
-     * @property _nWidth
-     * @type Number
-     * @private
-     */
-    _nWidth : null,
-
-    /**
-     * For unreg() purposes, a reference to the Column's DragDrop instance.
-     *
-     * @property _dd
-     * @type YAHOO.util.DragDrop
-     * @private
-     */
-    _dd : null,
-
-    /**
-     * For unreg() purposes, a reference to the Column resizer's DragDrop instance.
-     *
-     * @property _ddResizer
-     * @type YAHOO.util.DragDrop
-     * @private
-     */
-    _ddResizer : null,
-
-    /////////////////////////////////////////////////////////////////////////////
-    //
-    // Public member variables
-    //
-    /////////////////////////////////////////////////////////////////////////////
-
-    /**
-     * Unique name, required.
-     *
-     * @property key
-     * @type String
-     */
-    key : null,
-
-    /**
-     * Associated database field, or null.
-     *
-     * @property field
-     * @type String
-     */
-    field : null,
-
-    /**
-     * Text or HTML for display as Column's label in the TH element.
-     *
-     * @property label
-     * @type String
-     */
-    label : null,
-
-    /**
-     * Column head cell ABBR for accessibility.
-     *
-     * @property abbr
-     * @type String
-     */
-    abbr : null,
-
-    /**
-     * Array of object literals that define children (nested headers) of a Column.
-     *
-     * @property children
-     * @type Object[]
-     */
-    children : null,
-
-    /**
-     * Column width (in pixels).
-     *
-     * @property width
-     * @type Number
-     */
-    width : null,
-
-    /**
-     * Minimum Column width (in pixels).
-     *
-     * @property minWidth
-     * @type Number
-     * @default null
-     */
-    minWidth : null,
-
-    /**
-     * When a width is not defined for a Column, maxAutoWidth defines an upper
-     * limit that the Column should be auto-sized to. If resizeable is enabled, 
-     * users may still resize to a greater width. Most useful for Columns intended
-     * to hold long unbroken, unwrapped Strings, such as URLs, to prevent very
-     * wide Columns from disrupting visual readability by inducing truncation.
-     *
-     * @property maxAutoWidth
-     * @type Number
-     * @default null
-     */
-    maxAutoWidth : null,
-
-    /**
-     * True if Column is in hidden state.
-     *
-     * @property hidden
-     * @type Boolean
-     * @default false     
-     */
-    hidden : false,
-
-    /**
-     * True if Column is in selected state.
-     *
-     * @property selected
-     * @type Boolean
-     * @default false     
-     */
-    selected : false,
-
-    /**
-     * Custom CSS class or array of classes to be applied to every cell in the Column.
-     *
-     * @property className
-     * @type String || String[]
-     */
-    className : null,
-
-    /**
-     * Defines a format function.
-     *
-     * @property formatter
-     * @type String || HTMLFunction
-     */
-    formatter : null,
-    
-    /**
-     * Config passed to YAHOO.util.Number.format() by the 'currency' Column formatter.
-     *
-     * @property currencyOptions
-     * @type Object
-     * @default null
-     */
-    currencyOptions : null,
-
-    /**
-     * Config passed to YAHOO.util.Date.format() by the 'date' Column formatter.
-     *
-     * @property dateOptions
-     * @type Object
-     * @default null
-     */
-    dateOptions : null,
-
-    /**
-     * Array of dropdown values for formatter:"dropdown" cases. Can either be a simple array (e.g.,
-     * ["Alabama","Alaska","Arizona","Arkansas"]) or a an array of objects (e.g.,
-     * [{label:"Alabama", value:"AL"}, {label:"Alaska", value:"AK"},
-     * {label:"Arizona", value:"AZ"}, {label:"Arkansas", value:"AR"}]).
-     *
-     * @property dropdownOptions
-     * @type String[] | Object[]
-     */
-    dropdownOptions : null,
-     
-    /**
-     * A CellEditor instance, otherwise Column is not editable.     
-     *
-     * @property editor
-     * @type YAHOO.widget.CellEditor
-     */
-    editor : null,
-
-    /**
-     * True if Column is resizeable, false otherwise. The Drag & Drop Utility is
-     * required to enable this feature. Only bottom-level and non-nested Columns are
-     * resizeble. 
-     *
-     * @property resizeable
-     * @type Boolean
-     * @default false
-     */
-    resizeable : false,
-
-    /**
-     * True if Column is sortable, false otherwise.
-     *
-     * @property sortable
-     * @type Boolean
-     * @default false
-     */
-    sortable : false,
-
-    /**
-     * @property sortOptions.defaultOrder
-     * @deprecated Use sortOptions.defaultDir.
-     */
-    /**
-     * Default sort direction for Column: YAHOO.widget.DataTable.CLASS_ASC or YAHOO.widget.DataTable.CLASS_DESC.
-     *
-     * @property sortOptions.defaultDir
-     * @type String
-     * @default null
-     */
-    /**
-     * Custom field to sort on.
-     *
-     * @property sortOptions.field
-     * @type String
-     * @default null
-     */
-    /**
-     * Custom sort handler. Signature: sortFunction(a, b, desc, field) where field is the sortOptions.field value
-     *
-     * @property sortOptions.sortFunction
-     * @type Function
-     * @default null
-     */
-    sortOptions : null,
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-    /////////////////////////////////////////////////////////////////////////////
-    //
-    // Public methods
-    //
-    /////////////////////////////////////////////////////////////////////////////
-
-    /**
-     * Returns unique ID string.
-     *
-     * @method getId
-     * @return {String} Unique ID string.
-     */
-    getId : function() {
-        return this._sId;
-    },
-
-    /**
-     * Column instance name, for logging.
-     *
-     * @method toString
-     * @return {String} Column's unique name.
-     */
-    toString : function() {
-        return "Column instance " + this._sId;
-    },
-
-    /**
-     * Returns object literal definition.
-     *
-     * @method getDefinition
-     * @return {Object} Object literal definition.
-     */
-    getDefinition : function() {
-        var oDefinition = {};
-        
-        // Update the definition
-        oDefinition.abbr = this.abbr;
-        oDefinition.className = this.className;
-        oDefinition.editor = this.editor;
-        oDefinition.editorOptions = this.editorOptions; //TODO: deprecated
-        oDefinition.field = this.field;
-        oDefinition.formatter = this.formatter;
-        oDefinition.hidden = this.hidden;
-        oDefinition.key = this.key;
-        oDefinition.label = this.label;
-        oDefinition.minWidth = this.minWidth;
-        oDefinition.maxAutoWidth = this.maxAutoWidth;
-        oDefinition.resizeable = this.resizeable;
-        oDefinition.selected = this.selected;
-        oDefinition.sortable = this.sortable;
-        oDefinition.sortOptions = this.sortOptions;
-        oDefinition.width = this.width;
-
-        return oDefinition;
-    },
-
-    /**
-     * Returns unique Column key.
-     *
-     * @method getKey
-     * @return {String} Column key.
-     */
-    getKey : function() {
-        return this.key;
-    },
-    
-    /**
-     * Returns field.
-     *
-     * @method getField
-     * @return {String} Column field.
-     */
-    getField : function() {
-        return this.field;
-    },
-    
-    /**
-     * Returns Column key which has been sanitized for DOM (class and ID) usage
-     * starts with letter, contains only letters, numbers, hyphen, or period.
-     *
-     * @method getSanitizedKey
-     * @return {String} Sanitized Column key.
-     */
-    getSanitizedKey : function() {
-        return this.getKey().replace(/[^\w\-]/g,"");
-    },
-
-    /**
-     * Public accessor returns Column's current position index within its
-     * ColumnSet's keys array, if applicable. Only non-nested and bottom-level
-     * child Columns will return a value.
-     *
-     * @method getKeyIndex
-     * @return {Number} Position index, or null.
-     */
-    getKeyIndex : function() {
-        return this._nKeyIndex;
-    },
-
-    /**
-     * Public accessor returns Column's current position index within its
-     * ColumnSet's tree array, if applicable. Only non-nested and top-level parent
-     * Columns will return a value;
-     *
-     * @method getTreeIndex
-     * @return {Number} Position index, or null.
-     */
-    getTreeIndex : function() {
-        return this._nTreeIndex;
-    },
-
-    /**
-     * Public accessor returns Column's parent instance if any, or null otherwise.
-     *
-     * @method getParent
-     * @return {YAHOO.widget.Column} Column's parent instance.
-     */
-    getParent : function() {
-        return this._oParent;
-    },
-
-    /**
-     * Public accessor returns Column's calculated COLSPAN value.
-     *
-     * @method getColspan
-     * @return {Number} Column's COLSPAN value.
-     */
-    getColspan : function() {
-        return this._nColspan;
-    },
-    // Backward compatibility
-    getColSpan : function() {
-        return this.getColspan();
-    },
-
-    /**
-     * Public accessor returns Column's calculated ROWSPAN value.
-     *
-     * @method getRowspan
-     * @return {Number} Column's ROWSPAN value.
-     */
-    getRowspan : function() {
-        return this._nRowspan;
-    },
-
-    /**
-     * Returns DOM reference to the key TH element.
-     *
-     * @method getThEl
-     * @return {HTMLElement} TH element.
-     */
-    getThEl : function() {
-        return this._elTh;
-    },
-
-    /**
-     * Returns DOM reference to the TH's liner DIV element. Introduced since
-     * resizeable Columns may have an extra resizer liner, making the DIV liner
-     * not reliably the TH element's first child.               
-     *
-     * @method getThLInerEl
-     * @return {HTMLElement} TH element.
-     */
-    getThLinerEl : function() {
-        return this._elThLiner;
-    },
-    
-    /**
-     * Returns DOM reference to the resizer element, or null.
-     *
-     * @method getResizerEl
-     * @return {HTMLElement} DIV element.
-     */
-    getResizerEl : function() {
-        return this._elResizer;
-    },
-
-    // Backward compatibility
-    /**
-     * @method getColEl
-     * @deprecated Use getThEl
-     */
-    getColEl : function() {
-        return this.getThEl();
-    },
-    getIndex : function() {
-        return this.getKeyIndex();
-    },
-    format : function() {
-    }
-};
-
-/****************************************************************************/
-/****************************************************************************/
-/****************************************************************************/
-
-/**
- * Sort static utility to support Column sorting.
- *
- * @namespace YAHOO.util
- * @class Sort
- * @static
- */
-YAHOO.util.Sort = {
-    /////////////////////////////////////////////////////////////////////////////
-    //
-    // Public methods
-    //
-    /////////////////////////////////////////////////////////////////////////////
-
-    /**
-     * Comparator function for simple case-insensitive string sorting.
-     *
-     * @method compare
-     * @param a {Object} First sort argument.
-     * @param b {Object} Second sort argument.
-     * @param desc {Boolean} True if sort direction is descending, false if
-     * sort direction is ascending.
-     */
-    compare: function(a, b, desc) {
-        if((a === null) || (typeof a == "undefined")) {
-            if((b === null) || (typeof b == "undefined")) {
-                return 0;
-            }
-            else {
-                return 1;
-            }
-        }
-        else if((b === null) || (typeof b == "undefined")) {
-            return -1;
-        }
-
-        if(a.constructor == String) {
-            a = a.toLowerCase();
-        }
-        if(b.constructor == String) {
-            b = b.toLowerCase();
-        }
-        if(a < b) {
-            return (desc) ? 1 : -1;
-        }
-        else if (a > b) {
-            return (desc) ? -1 : 1;
-        }
-        else {
-            return 0;
-        }
-    }
-};
-
-/****************************************************************************/
-/****************************************************************************/
-/****************************************************************************/
-
-/**
- * ColumnDD subclasses DragDrop to support rearrangeable Columns.
- *
- * @namespace YAHOO.util
- * @class ColumnDD
- * @extends YAHOO.util.DDProxy
- * @constructor
- * @param oDataTable {YAHOO.widget.DataTable} DataTable instance.
- * @param oColumn {YAHOO.widget.Column} Column instance.
- * @param elTh {HTMLElement} TH element reference.
- * @param elTarget {HTMLElement} Drag target element.
- */
-YAHOO.widget.ColumnDD = function(oDataTable, oColumn, elTh, elTarget) {
-    if(oDataTable && oColumn && elTh && elTarget) {
-        this.datatable = oDataTable;
-        this.table = oDataTable.getTableEl();
-        this.column = oColumn;
-        this.headCell = elTh;
-        this.pointer = elTarget;
-        this.newIndex = null;
-        this.init(elTh);
-        this.initFrame(); // Needed for DDProxy
-        this.invalidHandleTypes = {};
-
-        // Set top/bottom padding to account for children of nested columns
-        this.setPadding(10, 0, (this.datatable.getTheadEl().offsetHeight + 10) , 0);
-
-        YAHOO.util.Event.on(window, 'resize', function() {
-            this.initConstraints();
-        }, this, true);
-    }
-    else {
-    }
-};
-
-if(YAHOO.util.DDProxy) {
-    YAHOO.extend(YAHOO.widget.ColumnDD, YAHOO.util.DDProxy, {
-        initConstraints: function() {
-            //Get the top, right, bottom and left positions
-            var region = YAHOO.util.Dom.getRegion(this.table),
-                //Get the element we are working on
-                el = this.getEl(),
-                //Get the xy position of it
-                xy = YAHOO.util.Dom.getXY(el),
-                //Get the width and height
-                width = parseInt(YAHOO.util.Dom.getStyle(el, 'width'), 10),
-                height = parseInt(YAHOO.util.Dom.getStyle(el, 'height'), 10),
-                //Set left to x minus left
-                left = ((xy[0] - region.left) + 15), //Buffer of 15px
-                //Set right to right minus x minus width
-                right = ((region.right - xy[0] - width) + 15);
-    
-            //Set the constraints based on the above calculations
-            this.setXConstraint(left, right);
-            this.setYConstraint(10, 10);            
-        },
-        _resizeProxy: function() {
-            YAHOO.widget.ColumnDD.superclass._resizeProxy.apply(this, arguments);
-            var dragEl = this.getDragEl(),
-                el = this.getEl();
-
-            YAHOO.util.Dom.setStyle(this.pointer, 'height', (this.table.parentNode.offsetHeight + 10) + 'px');
-            YAHOO.util.Dom.setStyle(this.pointer, 'display', 'block');
-            var xy = YAHOO.util.Dom.getXY(el);
-            YAHOO.util.Dom.setXY(this.pointer, [xy[0], (xy[1] - 5)]);
-            
-            YAHOO.util.Dom.setStyle(dragEl, 'height', this.datatable.getContainerEl().offsetHeight + "px");
-            YAHOO.util.Dom.setStyle(dragEl, 'width', (parseInt(YAHOO.util.Dom.getStyle(dragEl, 'width'),10) + 4) + 'px');
-            YAHOO.util.Dom.setXY(this.dragEl, xy);
-        },
-        onMouseDown: function() {
-                this.initConstraints();
-                this.resetConstraints();
-        },
-        clickValidator: function(e) {
-            if(!this.column.hidden) {
-                var target = YAHOO.util.Event.getTarget(e);
-                return ( this.isValidHandleChild(target) &&
-                            (this.id == this.handleElId ||
-                                this.DDM.handleWasClicked(target, this.id)) );
-            }
-        },
-        onDragOver: function(ev, id) {
-            // Validate target as a Column
-            var target = this.datatable.getColumn(id);
-            if(target) {                
-                // Validate target as a top-level parent
-                var targetIndex = target.getTreeIndex();
-                while((targetIndex === null) && target.getParent()) {
-                    target = target.getParent();
-                    targetIndex = target.getTreeIndex();
-                }
-                if(targetIndex !== null) {
-                    // Are we placing to left or right of target?
-                    var elTarget = target.getThEl();
-                    var newIndex = targetIndex;
-                    var mouseX = YAHOO.util.Event.getPageX(ev),
-                        targetX = YAHOO.util.Dom.getX(elTarget),
-                        midX = targetX + ((YAHOO.util.Dom.get(elTarget).offsetWidth)/2),
-                        currentIndex =  this.column.getTreeIndex();
-                    
-                    if (mouseX < midX) {
-                       YAHOO.util.Dom.setX(this.pointer, targetX);
-                    } else {
-                        var targetWidth = parseInt(elTarget.offsetWidth, 10);
-                        YAHOO.util.Dom.setX(this.pointer, (targetX + targetWidth));
-                        newIndex++;
-                    }
-                    if (targetIndex > currentIndex) {
-                        newIndex--;
-                    }
-                    if(newIndex < 0) {
-                        newIndex = 0;
-                    }
-                    else if(newIndex > this.datatable.getColumnSet().tree[0].length) {
-                        newIndex = this.datatable.getColumnSet().tree[0].length;
-                    }
-                    this.newIndex = newIndex;
-                }
-            }
-        },
-        onDragDrop: function() {
-            this.datatable.reorderColumn(this.column, this.newIndex);
-        },
-        endDrag: function() {
-            this.newIndex = null;
-            YAHOO.util.Dom.setStyle(this.pointer, 'display', 'none');
-        }
-    });
-}
-
-/****************************************************************************/
-/****************************************************************************/
-/****************************************************************************/
-
-/**
- * ColumnResizer subclasses DragDrop to support resizeable Columns.
- *
- * @namespace YAHOO.util
- * @class ColumnResizer
- * @extends YAHOO.util.DDProxy
- * @constructor
- * @param oDataTable {YAHOO.widget.DataTable} DataTable instance.
- * @param oColumn {YAHOO.widget.Column} Column instance.
- * @param elTh {HTMLElement} TH element reference.
- * @param sHandleElId {String} DOM ID of the handle element that causes the resize.
- * @param elProxy {HTMLElement} Resizer proxy element.
- */
-YAHOO.util.ColumnResizer = function(oDataTable, oColumn, elTh, sHandleId, elProxy) {
-    if(oDataTable && oColumn && elTh && sHandleId) {
-        this.datatable = oDataTable;
-        this.column = oColumn;
-        this.headCell = elTh;
-        this.headCellLiner = oColumn.getThLinerEl();
-        this.resizerLiner = elTh.firstChild;
-        this.init(sHandleId, sHandleId, {dragOnly:true, dragElId: elProxy.id});
-        this.initFrame(); // Needed for proxy
-        this.resetResizerEl(); // Needed when rowspan > 0
-
-        // Set right padding for bug 1858462
-        this.setPadding(0, 1, 0, 0);
-    }
-    else {
-    }
-};
-
-if(YAHOO.util.DD) {
-    YAHOO.extend(YAHOO.util.ColumnResizer, YAHOO.util.DDProxy, {
-        /////////////////////////////////////////////////////////////////////////////
-        //
-        // Public methods
-        //
-        /////////////////////////////////////////////////////////////////////////////
-        /**
-         * Resets resizer element.
-         *
-         * @method resetResizerEl
-         */
-        resetResizerEl : function() {
-            var resizerStyle = YAHOO.util.Dom.get(this.handleElId).style;
-            resizerStyle.left = "auto";
-            resizerStyle.right = 0;
-            resizerStyle.top = "auto";
-            resizerStyle.bottom = 0;
-            resizerStyle.height = this.headCell.offsetHeight+"px";
-        },
-    
-        /////////////////////////////////////////////////////////////////////////////
-        //
-        // Public DOM event handlers
-        //
-        /////////////////////////////////////////////////////////////////////////////
-    
-        /**
-         * Handles mouseup events on the Column resizer.
-         *
-         * @method onMouseUp
-         * @param e {string} The mouseup event
-         */
-        onMouseUp : function(e) {
-            // Reset height of all resizer els in case TH's have changed height
-            var allKeys = this.datatable.getColumnSet().keys,
-                col;
-            for(var i=0, len=allKeys.length; i<len; i++) {
-                col = allKeys[i];
-                if(col._ddResizer) {
-                    col._ddResizer.resetResizerEl();
-                }
-            }
-            this.resetResizerEl();
-            
-            var el = this.headCellLiner;
-            var newWidth = el.offsetWidth -
-                (parseInt(YAHOO.util.Dom.getStyle(el,"paddingLeft"),10)|0) -
-                (parseInt(YAHOO.util.Dom.getStyle(el,"paddingRight"),10)|0);
-
-            this.datatable.fireEvent("columnResizeEvent", {column:this.column,target:this.headCell,width:newWidth});
-        },
-    
-        /**
-         * Handles mousedown events on the Column resizer.
-         *
-         * @method onMouseDown
-         * @param e {string} The mousedown event
-         */
-        onMouseDown : function(e) {
-            this.startWidth = this.headCellLiner.offsetWidth;
-            this.startX = YAHOO.util.Event.getXY(e)[0];
-            this.nLinerPadding = (parseInt(YAHOO.util.Dom.getStyle(this.headCellLiner,"paddingLeft"),10)|0) +
-                    (parseInt(YAHOO.util.Dom.getStyle(this.headCellLiner,"paddingRight"),10)|0);
-        },
-    
-        /**
-         * Custom clickValidator to ensure Column is not in hidden state.
-         *
-         * @method clickValidator
-         * @param {Event} e
-         * @private
-         */
-        clickValidator : function(e) {
-            if(!this.column.hidden) {
-                var target = YAHOO.util.Event.getTarget(e);
-                return ( this.isValidHandleChild(target) &&
-                            (this.id == this.handleElId ||
-                                this.DDM.handleWasClicked(target, this.id)) );
-            }
-        },
-    
-        /**
-         * Handles start drag on the Column resizer.
-         *
-         * @method startDrag
-         * @param e {string} The drag event
-         */
-        startDrag : function() {
-            // Shrinks height of all resizer els to not hold open TH els
-            var allKeys = this.datatable.getColumnSet().keys,
-                thisKey = this.column.getKeyIndex(),
-                col;
-            for(var i=0, len=allKeys.length; i<len; i++) {
-                col = allKeys[i];
-                if(col._ddResizer) {
-                    YAHOO.util.Dom.get(col._ddResizer.handleElId).style.height = "1em";
-                }
-            }
-        },
-
-        /**
-         * Handles drag events on the Column resizer.
-         *
-         * @method onDrag
-         * @param e {string} The drag event
-         */
-        onDrag : function(e) {
-            var newX = YAHOO.util.Event.getXY(e)[0];
-            if(newX > YAHOO.util.Dom.getX(this.headCellLiner)) {
-                var offsetX = newX - this.startX;
-                var newWidth = this.startWidth + offsetX - this.nLinerPadding;
-                if(newWidth > 0) {
-                    this.datatable.setColumnWidth(this.column, newWidth);
-                }
-            }
-        }
-    });
-}
-
-/////////////////////////////////////////////////////////////////////////////
-//
-// Deprecated
-//
-/////////////////////////////////////////////////////////////////////////////
-
-/**
- * @property editorOptions
- * @deprecated Pass configs directly to CellEditor constructor. 
- */
-
-
-(function () {
-
-var lang   = YAHOO.lang,
-    util   = YAHOO.util,
-    widget = YAHOO.widget,
-    
-    Dom    = util.Dom,
-    Ev     = util.Event,
-    DT     = widget.DataTable;
-
-/****************************************************************************/
-/****************************************************************************/
-/****************************************************************************/
-
-/**
- * A RecordSet defines and manages a set of Records.
- *
- * @namespace YAHOO.widget
- * @class RecordSet
- * @param data {Object || Object[]} An object literal or an array of data.
- * @constructor
- */
-YAHOO.widget.RecordSet = function(data) {
-    // Internal variables
-    this._sId = "yui-rs" + widget.RecordSet._nCount;
-    widget.RecordSet._nCount++;
-    this._records = [];
-    //this._length = 0;
-
-    if(data) {
-        if(lang.isArray(data)) {
-            this.addRecords(data);
-        }
-        else if(lang.isObject(data)) {
-            this.addRecord(data);
-        }
-    }
-
-};
-
-var RS = widget.RecordSet;
-
-/**
- * Internal class variable to name multiple Recordset instances.
- *
- * @property RecordSet._nCount
- * @type Number
- * @private
- * @static
- */
-RS._nCount = 0;
-
-RS.prototype = {
-
-    /////////////////////////////////////////////////////////////////////////////
-    //
-    // Private member variables
-    //
-    /////////////////////////////////////////////////////////////////////////////
-    /**
-     * Unique String identifier assigned at instantiation.
-     *
-     * @property _sId
-     * @type String
-     * @private
-     */
-    _sId : null,
-
-    /**
-     * Internal counter of how many Records are in the RecordSet.
-     *
-     * @property _length
-     * @type Number
-     * @private
-     * @deprecated No longer used
-     */
-    //_length : null,
-
-    /////////////////////////////////////////////////////////////////////////////
-    //
-    // Private methods
-    //
-    /////////////////////////////////////////////////////////////////////////////
-
-    /**
-     * Adds one Record to the RecordSet at the given index. If index is null,
-     * then adds the Record to the end of the RecordSet.
-     *
-     * @method _addRecord
-     * @param oData {Object} An object literal of data.
-     * @param index {Number} (optional) Position index.
-     * @return {YAHOO.widget.Record} A Record instance.
-     * @private
-     */
-    _addRecord : function(oData, index) {
-        var oRecord = new YAHOO.widget.Record(oData);
-        
-        if(YAHOO.lang.isNumber(index) && (index > -1)) {
-            this._records.splice(index,0,oRecord);
-        }
-        else {
-            //index = this.getLength();
-            //this._records[index] = oRecord;
-            this._records[this._records.length] = oRecord;
-        }
-        //this._length++;
-        return oRecord;
-    },
-
-    /**
-     * Sets/replaces one Record to the RecordSet at the given index.  Existing
-     * Records with higher indexes are not shifted.  If no index specified, the
-     * Record is added to the end of the RecordSet.
-     *
-     * @method _setRecord
-     * @param oData {Object} An object literal of data.
-     * @param index {Number} (optional) Position index.
-     * @return {YAHOO.widget.Record} A Record instance.
-     * @private
-     */
-    _setRecord : function(oData, index) {
-        if (!lang.isNumber(index) || index < 0) {
-            index = this._records.length;
-        }
-        return (this._records[index] = new widget.Record(oData));
-        /*
-        if(lang.isNumber(index) && (index > -1)) {
-            this._records[index] = oRecord;
-            if((index+1) > this.getLength()) {
-                this._length = index+1;
-            }
-        }
-        else {
-            this._records[this.getLength()] = oRecord;
-            this._length++;
-        }
-        return oRecord;
-        */
-    },
-
-    /**
-     * Deletes Records from the RecordSet at the given index. If range is null,
-     * then only one Record is deleted.
-     *
-     * @method _deleteRecord
-     * @param index {Number} Position index.
-     * @param range {Number} (optional) How many Records to delete
-     * @private
-     */
-    _deleteRecord : function(index, range) {
-        if(!lang.isNumber(range) || (range < 0)) {
-            range = 1;
-        }
-        this._records.splice(index, range);
-        //this._length = this._length - range;
-    },
-
-    /////////////////////////////////////////////////////////////////////////////
-    //
-    // Public methods
-    //
-    /////////////////////////////////////////////////////////////////////////////
-
-    /**
-     * Returns unique name of the RecordSet instance.
-     *
-     * @method getId
-     * @return {String} Unique name of the RecordSet instance.
-     */
-    getId : function() {
-        return this._sId;
-    },
-
-    /**
-     * Public accessor to the unique name of the RecordSet instance.
-     *
-     * @method toString
-     * @return {String} Unique name of the RecordSet instance.
-     */
-    toString : function() {
-        return "RecordSet instance " + this._sId;
-    },
-
-    /**
-     * Returns the number of Records held in the RecordSet.
-     *
-     * @method getLength
-     * @return {Number} Number of records in the RecordSet.
-     */
-    getLength : function() {
-            //return this._length;
-            return this._records.length;
-    },
-
-    /**
-     * Returns Record by ID or RecordSet position index.
-     *
-     * @method getRecord
-     * @param record {YAHOO.widget.Record | Number | String} Record instance,
-     * RecordSet position index, or Record ID.
-     * @return {YAHOO.widget.Record} Record object.
-     */
-    getRecord : function(record) {
-        var i;
-        if(record instanceof widget.Record) {
-            for(i=0; i<this._records.length; i++) {
-                if(this._records[i] && (this._records[i]._sId === record._sId)) {
-                    return record;
-                }
-            }
-        }
-        else if(lang.isNumber(record)) {
-            if((record > -1) && (record < this.getLength())) {
-                return this._records[record];
-            }
-        }
-        else if(lang.isString(record)) {
-            for(i=0; i<this._records.length; i++) {
-                if(this._records[i] && (this._records[i]._sId === record)) {
-                    return this._records[i];
-                }
-            }
-        }
-        // Not a valid Record for this RecordSet
-        return null;
-
-    },
-
-    /**
-     * Returns an array of Records from the RecordSet.
-     *
-     * @method getRecords
-     * @param index {Number} (optional) Recordset position index of which Record to
-     * start at.
-     * @param range {Number} (optional) Number of Records to get.
-     * @return {YAHOO.widget.Record[]} Array of Records starting at given index and
-     * length equal to given range. If index is not given, all Records are returned.
-     */
-    getRecords : function(index, range) {
-        if(!lang.isNumber(index)) {
-            return this._records;
-        }
-        if(!lang.isNumber(range)) {
-            return this._records.slice(index);
-        }
-        return this._records.slice(index, index+range);
-    },
-
-    /**
-     * Returns a boolean indicating whether Records exist in the RecordSet at the
-     * specified index range.  Returns true if and only if a Record exists at each
-     * index in the range.
-     * @method hasRecords
-     * @param index
-     * @param range
-     * @return {Boolean} true if all indices are populated in the RecordSet
-     */
-    hasRecords : function (index, range) {
-        var recs = this.getRecords(index,range);
-        for (var i = 0; i < range; ++i) {
-            if (typeof recs[i] === 'undefined') {
-                return false;
-            }
-        }
-        return true;
-    },
-
-    /**
-     * Returns current position index for the given Record.
-     *
-     * @method getRecordIndex
-     * @param oRecord {YAHOO.widget.Record} Record instance.
-     * @return {Number} Record's RecordSet position index.
-     */
-
-    getRecordIndex : function(oRecord) {
-        if(oRecord) {
-            for(var i=this._records.length-1; i>-1; i--) {
-                if(this._records[i] && oRecord.getId() === this._records[i].getId()) {
-                    return i;
-                }
-            }
-        }
-        return null;
-
-    },
-
-    /**
-     * Adds one Record to the RecordSet at the given index. If index is null,
-     * then adds the Record to the end of the RecordSet.
-     *
-     * @method addRecord
-     * @param oData {Object} An object literal of data.
-     * @param index {Number} (optional) Position index.
-     * @return {YAHOO.widget.Record} A Record instance.
-     */
-    addRecord : function(oData, index) {
-        if(lang.isObject(oData)) {
-            var oRecord = this._addRecord(oData, index);
-            this.fireEvent("recordAddEvent",{record:oRecord,data:oData});
-            return oRecord;
-        }
-        else {
-            return null;
-        }
-    },
-
-    /**
-     * Adds multiple Records at once to the RecordSet at the given index with the
-     * given object literal data. If index is null, then the new Records are
-     * added to the end of the RecordSet.
-     *
-     * @method addRecords
-     * @param aData {Object[]} An object literal data or an array of data object literals.
-     * @param index {Number} (optional) Position index.
-     * @return {YAHOO.widget.Record[]} An array of Record instances.
-     */
-    addRecords : function(aData, index) {
-        if(lang.isArray(aData)) {
-            var newRecords = [],
-                idx,i,len;
-
-            index = lang.isNumber(index) ? index : this._records.length;
-            idx = index;
-
-            // Can't go backwards bc we need to preserve order
-            for(i=0,len=aData.length; i<len; ++i) {
-                if(lang.isObject(aData[i])) {
-                    var record = this._addRecord(aData[i], idx++);
-                    newRecords.push(record);
-                }
-           }
-            this.fireEvent("recordsAddEvent",{records:newRecords,data:aData});
-           return newRecords;
-        }
-        else if(lang.isObject(aData)) {
-            var oRecord = this._addRecord(aData);
-            this.fireEvent("recordsAddEvent",{records:[oRecord],data:aData});
-            return oRecord;
-        }
-        else {
-            return null;
-        }
-    },
-
-    /**
-     * Sets or replaces one Record to the RecordSet at the given index. Unlike
-     * addRecord, an existing Record at that index is not shifted to preserve it.
-     * If no index is specified, it adds the Record to the end of the RecordSet.
-     *
-     * @method setRecord
-     * @param oData {Object} An object literal of data.
-     * @param index {Number} (optional) Position index.
-     * @return {YAHOO.widget.Record} A Record instance.
-     */
-    setRecord : function(oData, index) {
-        if(lang.isObject(oData)) {
-            var oRecord = this._setRecord(oData, index);
-            this.fireEvent("recordSetEvent",{record:oRecord,data:oData});
-            return oRecord;
-        }
-        else {
-            return null;
-        }
-    },
-
-    /**
-     * Sets or replaces multiple Records at once to the RecordSet with the given
-     * data, starting at the given index. If index is not specified, then the new
-     * Records are added to the end of the RecordSet.
-     *
-     * @method setRecords
-     * @param aData {Object[]} An array of object literal data.
-     * @param index {Number} (optional) Position index.
-     * @return {YAHOO.widget.Record[]} An array of Record instances.
-     */
-    setRecords : function(aData, index) {
-        var Rec   = widget.Record,
-            a     = lang.isArray(aData) ? aData : [aData],
-            added = [],
-            i = 0, l = a.length, j = 0;
-
-        index = parseInt(index,10)|0;
-
-        for(; i < l; ++i) {
-            if (typeof a[i] === 'object' && a[i]) {
-                added[j++] = this._records[index + i] = new Rec(a[i]);
-            }
-        }
-
-        this.fireEvent("recordsSetEvent",{records:added,data:aData});
-        // Backward compatibility for bug 1918245
-        this.fireEvent("recordsSet",{records:added,data:aData});
-
-        if (a.length && !added.length) {
-        }
-
-        return added.length > 1 ? added : added[0];
-    },
-
-    /**
-     * Updates given Record with given data.
-     *
-     * @method updateRecord
-     * @param record {YAHOO.widget.Record | Number | String} A Record instance,
-     * a RecordSet position index, or a Record ID.
-     * @param oData {Object} Object literal of new data.
-     * @return {YAHOO.widget.Record} Updated Record, or null.
-     */
-    updateRecord : function(record, oData) {
-        var oRecord = this.getRecord(record);
-        if(oRecord && lang.isObject(oData)) {
-            // Copy data from the Record for the event that gets fired later
-            var oldData = {};
-            for(var key in oRecord._oData) {
-                if(lang.hasOwnProperty(oRecord._oData, key)) {
-                    oldData[key] = oRecord._oData[key];
-                }
-            }
-            oRecord._oData = oData;
-            this.fireEvent("recordUpdateEvent",{record:oRecord,newData:oData,oldData:oldData});
-            return oRecord;
-        }
-        else {
-            return null;
-        }
-    },
-
-    /**
-     * @method updateKey
-     * @deprecated Use updateRecordValue
-     */
-    updateKey : function(record, sKey, oData) {
-        this.updateRecordValue(record, sKey, oData);
-    },
-    /**
-     * Sets given Record at given key to given data.
-     *
-     * @method updateRecordValue
-     * @param record {YAHOO.widget.Record | Number | String} A Record instance,
-     * a RecordSet position index, or a Record ID.
-     * @param sKey {String} Key name.
-     * @param oData {Object} New data.
-     */
-    updateRecordValue : function(record, sKey, oData) {
-        var oRecord = this.getRecord(record);
-        if(oRecord) {
-            var oldData = null;
-            var keyValue = oRecord._oData[sKey];
-            // Copy data from the Record for the event that gets fired later
-            if(keyValue && lang.isObject(keyValue)) {
-                oldData = {};
-                for(var key in keyValue)  {
-                    if(lang.hasOwnProperty(keyValue, key)) {
-                        oldData[key] = keyValue[key];
-                    }
-                }
-            }
-            // Copy by value
-            else {
-                oldData = keyValue;
-            }
-
-            oRecord._oData[sKey] = oData;
-            this.fireEvent("keyUpdateEvent",{record:oRecord,key:sKey,newData:oData,oldData:oldData});
-            this.fireEvent("recordValueUpdateEvent",{record:oRecord,key:sKey,newData:oData,oldData:oldData});
-        }
-        else {
-        }
-    },
-
-    /**
-     * Replaces all Records in RecordSet with new object literal data.
-     *
-     * @method replaceRecords
-     * @param data {Object || Object[]} An object literal of data or an array of
-     * data object literals.
-     * @return {YAHOO.widget.Record || YAHOO.widget.Record[]} A Record instance or
-     * an array of Records.
-     */
-    replaceRecords : function(data) {
-        this.reset();
-        return this.addRecords(data);
-    },
-
-    /**
-     * Sorts all Records by given function. Records keep their unique IDs but will
-     * have new RecordSet position indexes.
-     *
-     * @method sortRecords
-     * @param fnSort {Function} Reference to a sort function.
-     * @param desc {Boolean} True if sort direction is descending, false if sort
-     * direction is ascending.
-     * @param field {String} The field to sort by, from sortOptions.field
-     * @return {YAHOO.widget.Record[]} Sorted array of Records.
-     */
-    sortRecords : function(fnSort, desc, field) {
-        return this._records.sort(function(a, b) {return fnSort(a, b, desc, field);});
-    },
-
-    /**
-     * Reverses all Records, so ["one", "two", "three"] becomes ["three", "two", "one"].
-     *
-     * @method reverseRecords
-     * @return {YAHOO.widget.Record[]} Reverse-sorted array of Records.
-     */
-    reverseRecords : function() {
-        return this._records.reverse();
-    },
-
-    /**
-     * Removes the Record at the given position index from the RecordSet. If a range
-     * is also provided, removes that many Records, starting from the index. Length
-     * of RecordSet is correspondingly shortened.
-     *
-     * @method deleteRecord
-     * @param index {Number} Record's RecordSet position index.
-     * @param range {Number} (optional) How many Records to delete.
-     * @return {Object} A copy of the data held by the deleted Record.
-     */
-    deleteRecord : function(index) {
-        if(lang.isNumber(index) && (index > -1) && (index < this.getLength())) {
-            // Copy data from the Record for the event that gets fired later
-            var oData = widget.DataTable._cloneObject(this.getRecord(index).getData());
-            
-            this._deleteRecord(index);
-            this.fireEvent("recordDeleteEvent",{data:oData,index:index});
-            return oData;
-        }
-        else {
-            return null;
-        }
-    },
-
-    /**
-     * Removes the Record at the given position index from the RecordSet. If a range
-     * is also provided, removes that many Records, starting from the index. Length
-     * of RecordSet is correspondingly shortened.
-     *
-     * @method deleteRecords
-     * @param index {Number} Record's RecordSet position index.
-     * @param range {Number} (optional) How many Records to delete.
-     * @return {Object[]} An array of copies of the data held by the deleted Records.     
-     */
-    deleteRecords : function(index, range) {
-        if(!lang.isNumber(range)) {
-            range = 1;
-        }
-        if(lang.isNumber(index) && (index > -1) && (index < this.getLength())) {
-            var recordsToDelete = this.getRecords(index, range);
-            // Copy data from each Record for the event that gets fired later
-            var deletedData = [];
-            
-            for(var i=0; i<recordsToDelete.length; i++) {
-                deletedData[deletedData.length] = widget.DataTable._cloneObject(recordsToDelete[i]);
-            }
-            this._deleteRecord(index, range);
-
-            this.fireEvent("recordsDeleteEvent",{data:deletedData,index:index});
-
-            return deletedData;
-        }
-        else {
-            return null;
-        }
-    },
-
-    /**
-     * Deletes all Records from the RecordSet.
-     *
-     * @method reset
-     */
-    reset : function() {
-        this._records = [];
-        //this._length = 0;
-        this.fireEvent("resetEvent");
-    }
-};
-
-/////////////////////////////////////////////////////////////////////////////
-//
-// Custom Events
-//
-/////////////////////////////////////////////////////////////////////////////
-
-// RecordSet uses EventProvider
-lang.augmentProto(RS, util.EventProvider);
-
-/**
- * Fired when a new Record is added to the RecordSet.
- *
- * @event recordAddEvent
- * @param oArgs.record {YAHOO.widget.Record} The Record instance.
- * @param oArgs.data {Object} Data added.
- */
-
-/**
- * Fired when multiple Records are added to the RecordSet at once.
- *
- * @event recordsAddEvent
- * @param oArgs.records {YAHOO.widget.Record[]} An array of Record instances.
- * @param oArgs.data {Object[]} Data added.
- */
-
-/**
- * Fired when a Record is set in the RecordSet.
- *
- * @event recordSetEvent
- * @param oArgs.record {YAHOO.widget.Record} The Record instance.
- * @param oArgs.data {Object} Data added.
- */
-
-/**
- * Fired when multiple Records are set in the RecordSet at once.
- *
- * @event recordsSetEvent
- * @param oArgs.records {YAHOO.widget.Record[]} An array of Record instances.
- * @param oArgs.data {Object[]} Data added.
- */
-
-/**
- * Fired when a Record is updated with new data.
- *
- * @event recordUpdateEvent
- * @param oArgs.record {YAHOO.widget.Record} The Record instance.
- * @param oArgs.newData {Object} New data.
- * @param oArgs.oldData {Object} Old data.
- */
-
-/**
- * Fired when a Record is deleted from the RecordSet.
- *
- * @event recordDeleteEvent
- * @param oArgs.data {Object} A copy of the data held by the Record,
- * or an array of data object literals if multiple Records were deleted at once.
- * @param oArgs.index {Object} Index of the deleted Record.
- */
-
-/**
- * Fired when multiple Records are deleted from the RecordSet at once.
- *
- * @event recordsDeleteEvent
- * @param oArgs.data {Object[]} An array of data object literals copied
- * from the Records.
- * @param oArgs.index {Object} Index of the first deleted Record.
- */
-
-/**
- * Fired when all Records are deleted from the RecordSet at once.
- *
- * @event resetEvent
- */
-
-/**
- * @event keyUpdateEvent    
- * @deprecated Use recordValueUpdateEvent     
- */
-
-/**
- * Fired when a Record value is updated with new data.
- *
- * @event recordValueUpdateEvent
- * @param oArgs.record {YAHOO.widget.Record} The Record instance.
- * @param oArgs.key {String} The updated key.
- * @param oArgs.newData {Object} New data.
- * @param oArgs.oldData {Object} Old data.
- *
- */
-
-
-/****************************************************************************/
-/****************************************************************************/
-/****************************************************************************/
-
-/**
- * The Record class defines a DataTable record.
- *
- * @namespace YAHOO.widget
- * @class Record
- * @constructor
- * @param oConfigs {Object} (optional) Object literal of key/value pairs.
- */
-YAHOO.widget.Record = function(oLiteral) {
-    this._nCount = widget.Record._nCount;
-    this._sId = "yui-rec" + this._nCount;
-    widget.Record._nCount++;
-    this._oData = {};
-    if(lang.isObject(oLiteral)) {
-        for(var sKey in oLiteral) {
-            if(lang.hasOwnProperty(oLiteral, sKey)) {
-                this._oData[sKey] = oLiteral[sKey];
-            }
-        }
-    }
-};
-
-/////////////////////////////////////////////////////////////////////////////
-//
-// Private member variables
-//
-/////////////////////////////////////////////////////////////////////////////
-
-/**
- * Internal class variable to give unique IDs to Record instances.
- *
- * @property Record._nCount
- * @type Number
- * @private
- */
-YAHOO.widget.Record._nCount = 0;
-
-YAHOO.widget.Record.prototype = {
-    /**
-     * Immutable unique count assigned at instantiation. Remains constant while a
-     * Record's position index can change from sorting.
-     *
-     * @property _nCount
-     * @type Number
-     * @private
-     */
-    _nCount : null,
-
-    /**
-     * Immutable unique ID assigned at instantiation. Remains constant while a
-     * Record's position index can change from sorting.
-     *
-     * @property _sId
-     * @type String
-     * @private
-     */
-    _sId : null,
-
-    /**
-     * Holds data for the Record in an object literal.
-     *
-     * @property _oData
-     * @type Object
-     * @private
-     */
-    _oData : null,
-
-    /////////////////////////////////////////////////////////////////////////////
-    //
-    // Public member variables
-    //
-    /////////////////////////////////////////////////////////////////////////////
-
-    /////////////////////////////////////////////////////////////////////////////
-    //
-    // Public methods
-    //
-    /////////////////////////////////////////////////////////////////////////////
-
-    /**
-     * Returns unique count assigned at instantiation.
-     *
-     * @method getCount
-     * @return Number
-     */
-    getCount : function() {
-        return this._nCount;
-    },
-
-    /**
-     * Returns unique ID assigned at instantiation.
-     *
-     * @method getId
-     * @return String
-     */
-    getId : function() {
-        return this._sId;
-    },
-
-    /**
-     * Returns data for the Record for a field if given, or the entire object
-     * literal otherwise.
-     *
-     * @method getData
-     * @param sField {String} (Optional) The field from which to retrieve data value.
-     * @return Object
-     */
-    getData : function(sField) {
-        if(lang.isString(sField)) {
-            return this._oData[sField];
-        }
-        else {
-            return this._oData;
-        }
-    },
-
-    /**
-     * Sets given data at the given key. Use the RecordSet method updateRecordValue to trigger
-     * events. 
-     *
-     * @method setData
-     * @param sKey {String} The key of the new value.
-     * @param oData {MIXED} The new value.
-     */
-    setData : function(sKey, oData) {
-        this._oData[sKey] = oData;
-    }
-};
-
-})();
-
-(function () {
-
-var lang   = YAHOO.lang,
-    util   = YAHOO.util,
-    widget = YAHOO.widget,
-    ua     = YAHOO.env.ua,
-    
-    Dom    = util.Dom,
-    Ev     = util.Event,
-    DS     = util.DataSourceBase;
-
-/**
- * The DataTable widget provides a progressively enhanced DHTML control for
- * displaying tabular data across A-grade browsers.
- *
- * @module datatable
- * @requires yahoo, dom, event, element, datasource
- * @optional dragdrop, dragdrop
- * @title DataTable Widget
- */
-
-/****************************************************************************/
-/****************************************************************************/
-/****************************************************************************/
-
-/**
- * DataTable class for the YUI DataTable widget.
- *
- * @namespace YAHOO.widget
- * @class DataTable
- * @extends YAHOO.util.Element
- * @constructor
- * @param elContainer {HTMLElement} Container element for the TABLE.
- * @param aColumnDefs {Object[]} Array of object literal Column definitions.
- * @param oDataSource {YAHOO.util.DataSource} DataSource instance.
- * @param oConfigs {object} (optional) Object literal of configuration values.
- */
-YAHOO.widget.DataTable = function(elContainer,aColumnDefs,oDataSource,oConfigs) {
-    var DT = widget.DataTable;
-    
-    ////////////////////////////////////////////////////////////////////////////
-    // Backward compatibility for SDT, but prevent infinite loops
-    
-    if(oConfigs && oConfigs.scrollable) {
-        return new YAHOO.widget.ScrollingDataTable(elContainer,aColumnDefs,oDataSource,oConfigs);
-    }
-    
-    ////////////////////////////////////////////////////////////////////////////
-    // Initialization
-
-    // Internal vars
-    this._nIndex = DT._nCount;
-    this._sId = "yui-dt"+this._nIndex;
-    this._oChainRender = new YAHOO.util.Chain();
-    this._oChainRender.subscribe("end",this._onRenderChainEnd, this, true);
-
-    // Initialize configs
-    this._initConfigs(oConfigs);
-
-    // Initialize DataSource
-    this._initDataSource(oDataSource);
-    if(!this._oDataSource) {
-        return;
-    }
-
-    // Initialize ColumnSet
-    this._initColumnSet(aColumnDefs);
-    if(!this._oColumnSet) {
-        return;
-    }
-
-    // Initialize RecordSet
-    this._initRecordSet();
-    if(!this._oRecordSet) {
-    }
-
-    // Initialize Attributes
-    DT.superclass.constructor.call(this, elContainer, this.configs);
-
-    // Initialize DOM elements
-    var okDom = this._initDomElements(elContainer);
-    if(!okDom) {
-        return;
-    }
-            
-    // Show message as soon as config is available
-    this.showTableMessage(this.get("MSG_LOADING"), DT.CLASS_LOADING);
-    
-    ////////////////////////////////////////////////////////////////////////////
-    // Once per instance
-    this._initEvents();
-
-    DT._nCount++;
-    DT._nCurrentCount++;
-    
-    ////////////////////////////////////////////////////////////////////////////
-    // Data integration
-
-    // Send a simple initial request
-    var oCallback = {
-        success : this.onDataReturnSetRows,
-        failure : this.onDataReturnSetRows,
-        scope   : this,
-        argument: this.getState()
-    };
-    
-    var initialLoad = this.get("initialLoad");
-    if(initialLoad === true) {
-        this._oDataSource.sendRequest(this.get("initialRequest"), oCallback);
-    }
-    // Do not send an initial request at all
-    else if(initialLoad === false) {
-        this.showTableMessage(this.get("MSG_EMPTY"), DT.CLASS_EMPTY);
-    }
-    // Send an initial request with a custom payload
-    else {
-        var oCustom = initialLoad || {};
-        oCallback.argument = oCustom.argument || {};
-        this._oDataSource.sendRequest(oCustom.request, oCallback);
-    }
-};
-
-var DT = widget.DataTable;
-
-/////////////////////////////////////////////////////////////////////////////
-//
-// Public constants
-//
-/////////////////////////////////////////////////////////////////////////////
-
-lang.augmentObject(DT, {
-
-    /**
-     * Class name assigned to outer DataTable container.
-     *
-     * @property DataTable.CLASS_DATATABLE
-     * @type String
-     * @static
-     * @final
-     * @default "yui-dt"
-     */
-    CLASS_DATATABLE : "yui-dt",
-
-    /**
-     * Class name assigned to liner DIV elements.
-     *
-     * @property DataTable.CLASS_LINER
-     * @type String
-     * @static
-     * @final
-     * @default "yui-dt-liner"
-     */
-    CLASS_LINER : "yui-dt-liner",
-
-    /**
-     * Class name assigned to display label elements.
-     *
-     * @property DataTable.CLASS_LABEL
-     * @type String
-     * @static
-     * @final
-     * @default "yui-dt-label"
-     */
-    CLASS_LABEL : "yui-dt-label",
-
-    /**
-     * Class name assigned to messaging elements.
-     *
-     * @property DataTable.CLASS_MESSAGE
-     * @type String
-     * @static
-     * @final
-     * @default "yui-dt-message"
-     */
-    CLASS_MESSAGE : "yui-dt-message",
-
-    /**
-     * Class name assigned to mask element when DataTable is disabled.
-     *
-     * @property DataTable.CLASS_MASK
-     * @type String
-     * @static
-     * @final
-     * @default "yui-dt-mask"
-     */
-    CLASS_MASK : "yui-dt-mask",
-
-    /**
-     * Class name assigned to data elements.
-     *
-     * @property DataTable.CLASS_DATA
-     * @type String
-     * @static
-     * @final
-     * @default "yui-dt-data"
-     */
-    CLASS_DATA : "yui-dt-data",
-
-    /**
-     * Class name assigned to Column drag target.
-     *
-     * @property DataTable.CLASS_COLTARGET
-     * @type String
-     * @static
-     * @final
-     * @default "yui-dt-coltarget"
-     */
-    CLASS_COLTARGET : "yui-dt-coltarget",
-
-    /**
-     * Class name assigned to resizer handle elements.
-     *
-     * @property DataTable.CLASS_RESIZER
-     * @type String
-     * @static
-     * @final
-     * @default "yui-dt-resizer"
-     */
-    CLASS_RESIZER : "yui-dt-resizer",
-
-    /**
-     * Class name assigned to resizer liner elements.
-     *
-     * @property DataTable.CLASS_RESIZERLINER
-     * @type String
-     * @static
-     * @final
-     * @default "yui-dt-resizerliner"
-     */
-    CLASS_RESIZERLINER : "yui-dt-resizerliner",
-
-    /**
-     * Class name assigned to resizer proxy elements.
-     *
-     * @property DataTable.CLASS_RESIZERPROXY
-     * @type String
-     * @static
-     * @final
-     * @default "yui-dt-resizerproxy"
-     */
-    CLASS_RESIZERPROXY : "yui-dt-resizerproxy",
-
-    /**
-     * Class name assigned to CellEditor container elements.
-     *
-     * @property DataTable.CLASS_EDITOR
-     * @type String
-     * @static
-     * @final
-     * @default "yui-dt-editor"
-     */
-    CLASS_EDITOR : "yui-dt-editor",
-
-    /**
-     * Class name assigned to paginator container elements.
-     *
-     * @property DataTable.CLASS_PAGINATOR
-     * @type String
-     * @static
-     * @final
-     * @default "yui-dt-paginator"
-     */
-    CLASS_PAGINATOR : "yui-dt-paginator",
-
-    /**
-     * Class name assigned to page number indicators.
-     *
-     * @property DataTable.CLASS_PAGE
-     * @type String
-     * @static
-     * @final
-     * @default "yui-dt-page"
-     */
-    CLASS_PAGE : "yui-dt-page",
-
-    /**
-     * Class name assigned to default indicators.
-     *
-     * @property DataTable.CLASS_DEFAULT
-     * @type String
-     * @static
-     * @final
-     * @default "yui-dt-default"
-     */
-    CLASS_DEFAULT : "yui-dt-default",
-
-    /**
-     * Class name assigned to previous indicators.
-     *
-     * @property DataTable.CLASS_PREVIOUS
-     * @type String
-     * @static
-     * @final
-     * @default "yui-dt-previous"
-     */
-    CLASS_PREVIOUS : "yui-dt-previous",
-
-    /**
-     * Class name assigned next indicators.
-     *
-     * @property DataTable.CLASS_NEXT
-     * @type String
-     * @static
-     * @final
-     * @default "yui-dt-next"
-     */
-    CLASS_NEXT : "yui-dt-next",
-
-    /**
-     * Class name assigned to first elements.
-     *
-     * @property DataTable.CLASS_FIRST
-     * @type String
-     * @static
-     * @final
-     * @default "yui-dt-first"
-     */
-    CLASS_FIRST : "yui-dt-first",
-
-    /**
-     * Class name assigned to last elements.
-     *
-     * @property DataTable.CLASS_LAST
-     * @type String
-     * @static
-     * @final
-     * @default "yui-dt-last"
-     */
-    CLASS_LAST : "yui-dt-last",
-
-    /**
-     * Class name assigned to even elements.
-     *
-     * @property DataTable.CLASS_EVEN
-     * @type String
-     * @static
-     * @final
-     * @default "yui-dt-even"
-     */
-    CLASS_EVEN : "yui-dt-even",
-
-    /**
-     * Class name assigned to odd elements.
-     *
-     * @property DataTable.CLASS_ODD
-     * @type String
-     * @static
-     * @final
-     * @default "yui-dt-odd"
-     */
-    CLASS_ODD : "yui-dt-odd",
-
-    /**
-     * Class name assigned to selected elements.
-     *
-     * @property DataTable.CLASS_SELECTED
-     * @type String
-     * @static
-     * @final
-     * @default "yui-dt-selected"
-     */
-    CLASS_SELECTED : "yui-dt-selected",
-
-    /**
-     * Class name assigned to highlighted elements.
-     *
-     * @property DataTable.CLASS_HIGHLIGHTED
-     * @type String
-     * @static
-     * @final
-     * @default "yui-dt-highlighted"
-     */
-    CLASS_HIGHLIGHTED : "yui-dt-highlighted",
-
-    /**
-     * Class name assigned to hidden elements.
-     *
-     * @property DataTable.CLASS_HIDDEN
-     * @type String
-     * @static
-     * @final
-     * @default "yui-dt-hidden"
-     */
-    CLASS_HIDDEN : "yui-dt-hidden",
-
-    /**
-     * Class name assigned to disabled elements.
-     *
-     * @property DataTable.CLASS_DISABLED
-     * @type String
-     * @static
-     * @final
-     * @default "yui-dt-disabled"
-     */
-    CLASS_DISABLED : "yui-dt-disabled",
-
-    /**
-     * Class name assigned to empty indicators.
-     *
-     * @property DataTable.CLASS_EMPTY
-     * @type String
-     * @static
-     * @final
-     * @default "yui-dt-empty"
-     */
-    CLASS_EMPTY : "yui-dt-empty",
-
-    /**
-     * Class name assigned to loading indicatorx.
-     *
-     * @property DataTable.CLASS_LOADING
-     * @type String
-     * @static
-     * @final
-     * @default "yui-dt-loading"
-     */
-    CLASS_LOADING : "yui-dt-loading",
-
-    /**
-     * Class name assigned to error indicators.
-     *
-     * @property DataTable.CLASS_ERROR
-     * @type String
-     * @static
-     * @final
-     * @default "yui-dt-error"
-     */
-    CLASS_ERROR : "yui-dt-error",
-
-    /**
-     * Class name assigned to editable elements.
-     *
-     * @property DataTable.CLASS_EDITABLE
-     * @type String
-     * @static
-     * @final
-     * @default "yui-dt-editable"
-     */
-    CLASS_EDITABLE : "yui-dt-editable",
-
-    /**
-     * Class name assigned to draggable elements.
-     *
-     * @property DataTable.CLASS_DRAGGABLE
-     * @type String
-     * @static
-     * @final
-     * @default "yui-dt-draggable"
-     */
-    CLASS_DRAGGABLE : "yui-dt-draggable",
-
-    /**
-     * Class name assigned to resizeable elements.
-     *
-     * @property DataTable.CLASS_RESIZEABLE
-     * @type String
-     * @static
-     * @final
-     * @default "yui-dt-resizeable"
-     */
-    CLASS_RESIZEABLE : "yui-dt-resizeable",
-
-    /**
-     * Class name assigned to scrollable elements.
-     *
-     * @property DataTable.CLASS_SCROLLABLE
-     * @type String
-     * @static
-     * @final
-     * @default "yui-dt-scrollable"
-     */
-    CLASS_SCROLLABLE : "yui-dt-scrollable",
-
-    /**
-     * Class name assigned to sortable elements.
-     *
-     * @property DataTable.CLASS_SORTABLE
-     * @type String
-     * @static
-     * @final
-     * @default "yui-dt-sortable"
-     */
-    CLASS_SORTABLE : "yui-dt-sortable",
-
-    /**
-     * Class name assigned to ascending elements.
-     *
-     * @property DataTable.CLASS_ASC
-     * @type String
-     * @static
-     * @final
-     * @default "yui-dt-asc"
-     */
-    CLASS_ASC : "yui-dt-asc",
-
-    /**
-     * Class name assigned to descending elements.
-     *
-     * @property DataTable.CLASS_DESC
-     * @type String
-     * @static
-     * @final
-     * @default "yui-dt-desc"
-     */
-    CLASS_DESC : "yui-dt-desc",
-
-    /**
-     * Class name assigned to BUTTON elements and/or container elements.
-     *
-     * @property DataTable.CLASS_BUTTON
-     * @type String
-     * @static
-     * @final
-     * @default "yui-dt-button"
-     */
-    CLASS_BUTTON : "yui-dt-button",
-
-    /**
-     * Class name assigned to INPUT TYPE=CHECKBOX elements and/or container elements.
-     *
-     * @property DataTable.CLASS_CHECKBOX
-     * @type String
-     * @static
-     * @final
-     * @default "yui-dt-checkbox"
-     */
-    CLASS_CHECKBOX : "yui-dt-checkbox",
-
-    /**
-     * Class name assigned to SELECT elements and/or container elements.
-     *
-     * @property DataTable.CLASS_DROPDOWN
-     * @type String
-     * @static
-     * @final
-     * @default "yui-dt-dropdown"
-     */
-    CLASS_DROPDOWN : "yui-dt-dropdown",
-
-    /**
-     * Class name assigned to INPUT TYPE=RADIO elements and/or container elements.
-     *
-     * @property DataTable.CLASS_RADIO
-     * @type String
-     * @static
-     * @final
-     * @default "yui-dt-radio"
-     */
-    CLASS_RADIO : "yui-dt-radio",
-
-    /////////////////////////////////////////////////////////////////////////
-    //
-    // Private static properties
-    //
-    /////////////////////////////////////////////////////////////////////////
-
-    /**
-     * Internal class variable for indexing multiple DataTable instances.
-     *
-     * @property DataTable._nCount
-     * @type Number
-     * @private
-     * @static
-     */
-    _nCount : 0,
-
-    /**
-     * Internal class variable tracking current number of DataTable instances,
-     * so that certain class values can be reset when all instances are destroyed.          
-     *
-     * @property DataTable._nCurrentCount
-     * @type Number
-     * @private
-     * @static
-     */
-    _nCurrentCount : 0,
-
-    /**
-     * Reference to the STYLE node that is dynamically created and updated
-     * in order to manage Column widths.
-     *
-     * @property DataTable._elDynStyleNode
-     * @type HTMLElement
-     * @private
-     * @static     
-     */
-    _elDynStyleNode : null,
-
-    /**
-     * Set to true if _elDynStyleNode cannot be populated due to browser incompatibility.
-     *
-     * @property DataTable._bDynStylesFallback
-     * @type boolean
-     * @private
-     * @static     
-     */
-    _bDynStylesFallback : (ua.ie) ? true : false,
-
-    /**
-     * Object literal hash of Columns and their dynamically create style rules.
-     *
-     * @property DataTable._oDynStyles
-     * @type Object
-     * @private
-     * @static     
-     */
-    _oDynStyles : {},
-
-    /**
-     * Element reference to shared Column drag target.
-     *
-     * @property DataTable._elColumnDragTarget
-     * @type HTMLElement
-     * @private
-     * @static 
-     */
-    _elColumnDragTarget : null,
-
-    /**
-     * Element reference to shared Column resizer proxy.
-     *
-     * @property DataTable._elColumnResizerProxy
-     * @type HTMLElement
-     * @private
-     * @static 
-     */
-    _elColumnResizerProxy : null,
-
-    /////////////////////////////////////////////////////////////////////////
-    //
-    // Private static methods
-    //
-    /////////////////////////////////////////////////////////////////////////
-
-    /**
-     * Clones object literal or array of object literals.
-     *
-     * @method DataTable._cloneObject
-     * @param o {Object} Object.
-     * @private
-     * @static     
-     */
-    _cloneObject : function(o) {
-        if(!lang.isValue(o)) {
-            return o;
-        }
-        
-        var copy = {};
-        
-        if(o instanceof YAHOO.widget.BaseCellEditor) {
-            copy = o;
-        }
-        else if(lang.isFunction(o)) {
-            copy = o;
-        }
-        else if(lang.isArray(o)) {
-            var array = [];
-            for(var i=0,len=o.length;i<len;i++) {
-                array[i] = DT._cloneObject(o[i]);
-            }
-            copy = array;
-        }
-        else if(lang.isObject(o)) { 
-            for (var x in o){
-                if(lang.hasOwnProperty(o, x)) {
-                    if(lang.isValue(o[x]) && lang.isObject(o[x]) || lang.isArray(o[x])) {
-                        copy[x] = DT._cloneObject(o[x]);
-                    }
-                    else {
-                        copy[x] = o[x];
-                    }
-                }
-            }
-        }
-        else {
-            copy = o;
-        }
-    
-        return copy;
-    },
-
-    /**
-     * Destroys shared Column drag target.
-     *
-     * @method DataTable._destroyColumnDragTargetEl
-     * @private
-     * @static 
-     */
-    _destroyColumnDragTargetEl : function() {
-        if(DT._elColumnDragTarget) {
-            var el = DT._elColumnDragTarget;
-            YAHOO.util.Event.purgeElement(el);
-            el.parentNode.removeChild(el);
-            DT._elColumnDragTarget = null;
-            
-        }
-    },
-
-    /**
-     * Creates HTML markup for shared Column drag target.
-     *
-     * @method DataTable._initColumnDragTargetEl
-     * @return {HTMLElement} Reference to Column drag target. 
-     * @private
-     * @static 
-     */
-    _initColumnDragTargetEl : function() {
-        if(!DT._elColumnDragTarget) {
-            // Attach Column drag target element as first child of body
-            var elColumnDragTarget = document.createElement('div');
-            elColumnDragTarget.className = DT.CLASS_COLTARGET;
-            elColumnDragTarget.style.display = "none";
-            document.body.insertBefore(elColumnDragTarget, document.body.firstChild);
-
-            // Internal tracker of Column drag target
-            DT._elColumnDragTarget = elColumnDragTarget;
-            
-        }
-        return DT._elColumnDragTarget;
-    },
-
-    /**
-     * Destroys shared Column resizer proxy.
-     *
-     * @method DataTable._destroyColumnResizerProxyEl
-     * @return {HTMLElement} Reference to Column resizer proxy.
-     * @private 
-     * @static 
-     */
-    _destroyColumnResizerProxyEl : function() {
-        if(DT._elColumnResizerProxy) {
-            var el = DT._elColumnResizerProxy;
-            YAHOO.util.Event.purgeElement(el);
-            el.parentNode.removeChild(el);
-            DT._elColumnResizerProxy = null;
-        }
-    },
-
-    /**
-     * Creates HTML markup for shared Column resizer proxy.
-     *
-     * @method DataTable._initColumnResizerProxyEl
-     * @return {HTMLElement} Reference to Column resizer proxy.
-     * @private 
-     * @static 
-     */
-    _initColumnResizerProxyEl : function() {
-        if(!DT._elColumnResizerProxy) {
-            // Attach Column resizer element as first child of body
-            var elColumnResizerProxy = document.createElement("div");
-            elColumnResizerProxy.id = "yui-dt-colresizerproxy"; // Needed for ColumnResizer
-            elColumnResizerProxy.className = DT.CLASS_RESIZERPROXY;
-            document.body.insertBefore(elColumnResizerProxy, document.body.firstChild);
-
-            // Internal tracker of Column resizer proxy
-            DT._elColumnResizerProxy = elColumnResizerProxy;
-        }
-        return DT._elColumnResizerProxy;
-    },
-
-    /**
-     * Formats a BUTTON element.
-     *
-     * @method DataTable.formatButton
-     * @param el {HTMLElement} The element to format with markup.
-     * @param oRecord {YAHOO.widget.Record} Record instance.
-     * @param oColumn {YAHOO.widget.Column} Column instance.
-     * @param oData {Object | Boolean} Data value for the cell. By default, the value
-     * is what gets written to the BUTTON.
-     * @static
-     */
-    formatButton : function(el, oRecord, oColumn, oData) {
-        var sValue = lang.isValue(oData) ? oData : "Click";
-        //TODO: support YAHOO.widget.Button
-        //if(YAHOO.widget.Button) {
-
-        //}
-        //else {
-            el.innerHTML = "<button type=\"button\" class=\""+
-                    DT.CLASS_BUTTON + "\">" + sValue + "</button>";
-        //}
-    },
-
-    /**
-     * Formats a CHECKBOX element.
-     *
-     * @method DataTable.formatCheckbox
-     * @param el {HTMLElement} The element to format with markup.
-     * @param oRecord {YAHOO.widget.Record} Record instance.
-     * @param oColumn {YAHOO.widget.Column} Column instance.
-     * @param oData {Object | Boolean} Data value for the cell. Can be a simple
-     * Boolean to indicate whether checkbox is checked or not. Can be object literal
-     * {checked:bBoolean, label:sLabel}. Other forms of oData require a custom
-     * formatter.
-     * @static
-     */
-    formatCheckbox : function(el, oRecord, oColumn, oData) {
-        var bChecked = oData;
-        bChecked = (bChecked) ? " checked=\"checked\"" : "";
-        el.innerHTML = "<input type=\"checkbox\"" + bChecked +
-                " class=\"" + DT.CLASS_CHECKBOX + "\" />";
-    },
-
-    /**
-     * Formats currency. Default unit is USD.
-     *
-     * @method DataTable.formatCurrency
-     * @param el {HTMLElement} The element to format with markup.
-     * @param oRecord {YAHOO.widget.Record} Record instance.
-     * @param oColumn {YAHOO.widget.Column} Column instance.
-     * @param oData {Number} Data value for the cell.
-     * @static
-     */
-    formatCurrency : function(el, oRecord, oColumn, oData) {
-        el.innerHTML = util.Number.format(oData, oColumn.currencyOptions || this.get("currencyOptions"));
-    },
-
-    /**
-     * Formats JavaScript Dates.
-     *
-     * @method DataTable.formatDate
-     * @param el {HTMLElement} The element to format with markup.
-     * @param oRecord {YAHOO.widget.Record} Record instance.
-     * @param oColumn {YAHOO.widget.Column} Column instance.
-     * @param oData {Object} Data value for the cell, or null.
-     * @static
-     */
-    formatDate : function(el, oRecord, oColumn, oData) {
-        var oConfig = oColumn.dateOptions || this.get("dateOptions");
-        el.innerHTML = util.Date.format(oData, oConfig, oConfig.locale);
-    },
-
-    /**
-     * Formats SELECT elements.
-     *
-     * @method DataTable.formatDropdown
-     * @param el {HTMLElement} The element to format with markup.
-     * @param oRecord {YAHOO.widget.Record} Record instance.
-     * @param oColumn {YAHOO.widget.Column} Column instance.
-     * @param oData {Object} Data value for the cell, or null.
-     * @static
-     */
-    formatDropdown : function(el, oRecord, oColumn, oData) {
-        var selectedValue = (lang.isValue(oData)) ? oData : oRecord.getData(oColumn.field),
-            options = (lang.isArray(oColumn.dropdownOptions)) ?
-                oColumn.dropdownOptions : null,
-
-            selectEl,
-            collection = el.getElementsByTagName("select");
-
-        // Create the form element only once, so we can attach the onChange listener
-        if(collection.length === 0) {
-            // Create SELECT element
-            selectEl = document.createElement("select");
-            selectEl.className = DT.CLASS_DROPDOWN;
-            selectEl = el.appendChild(selectEl);
-
-            // Add event listener
-            Ev.addListener(selectEl,"change",this._onDropdownChange,this);
-        }
-
-        selectEl = collection[0];
-
-        // Update the form element
-        if(selectEl) {
-            // Clear out previous options
-            selectEl.innerHTML = "";
-
-            // We have options to populate
-            if(options) {
-                // Create OPTION elements
-                for(var i=0; i<options.length; i++) {
-                    var option = options[i];
-                    var optionEl = document.createElement("option");
-                    optionEl.value = (lang.isValue(option.value)) ?
-                            option.value : option;
-                    // Bug 2334323: Support legacy text, support label for consistency with DropdownCellEditor
-                    optionEl.innerHTML = (lang.isValue(option.text)) ?
-                            option.text : (lang.isValue(option.label)) ? option.label : option;
-                    optionEl = selectEl.appendChild(optionEl);
-                    if (optionEl.value == selectedValue) {
-                        optionEl.selected = true;
-                    }
-                }
-            }
-            // Selected value is our only option
-            else {
-                selectEl.innerHTML = "<option selected value=\"" + selectedValue + "\">" + selectedValue + "</option>";
-            }
-        }
-        else {
-            el.innerHTML = lang.isValue(oData) ? oData : "";
-        }
-    },
-
-    /**
-     * Formats emails.
-     *
-     * @method DataTable.formatEmail
-     * @param el {HTMLElement} The element to format with markup.
-     * @param oRecord {YAHOO.widget.Record} Record instance.
-     * @param oColumn {YAHOO.widget.Column} Column instance.
-     * @param oData {Object} Data value for the cell, or null.
-     * @static
-     */
-    formatEmail : function(el, oRecord, oColumn, oData) {
-        if(lang.isString(oData)) {
-            el.innerHTML = "<a href=\"mailto:" + oData + "\">" + oData + "</a>";
-        }
-        else {
-            el.innerHTML = lang.isValue(oData) ? oData : "";
-        }
-    },
-
-    /**
-     * Formats links.
-     *
-     * @method DataTable.formatLink
-     * @param el {HTMLElement} The element to format with markup.
-     * @param oRecord {YAHOO.widget.Record} Record instance.
-     * @param oColumn {YAHOO.widget.Column} Column instance.
-     * @param oData {Object} Data value for the cell, or null.
-     * @static
-     */
-    formatLink : function(el, oRecord, oColumn, oData) {
-        if(lang.isString(oData)) {
-            el.innerHTML = "<a href=\"" + oData + "\">" + oData + "</a>";
-        }
-        else {
-            el.innerHTML = lang.isValue(oData) ? oData : "";
-        }
-    },
-
-    /**
-     * Formats numbers.
-     *
-     * @method DataTable.formatNumber
-     * @param el {HTMLElement} The element to format with markup.
-     * @param oRecord {YAHOO.widget.Record} Record instance.
-     * @param oColumn {YAHOO.widget.Column} Column instance.
-     * @param oData {Object} Data value for the cell, or null.
-     * @static
-     */
-    formatNumber : function(el, oRecord, oColumn, oData) {
-        el.innerHTML = util.Number.format(oData, oColumn.numberOptions || this.get("numberOptions"));
-    },
-
-    /**
-     * Formats INPUT TYPE=RADIO elements.
-     *
-     * @method DataTable.formatRadio
-     * @param el {HTMLElement} The element to format with markup.
-     * @param oRecord {YAHOO.widget.Record} Record instance.
-     * @param oColumn {YAHOO.widget.Column} Column instance.
-     * @param oData {Object} (Optional) Data value for the cell.
-     * @static
-     */
-    formatRadio : function(el, oRecord, oColumn, oData) {
-        var bChecked = oData;
-        bChecked = (bChecked) ? " checked=\"checked\"" : "";
-        el.innerHTML = "<input type=\"radio\"" + bChecked +
-                " name=\""+this.getId()+"-col-" + oColumn.getSanitizedKey() + "\"" +
-                " class=\"" + DT.CLASS_RADIO+ "\" />";
-    },
-
-    /**
-     * Formats text strings.
-     *
-     * @method DataTable.formatText
-     * @param el {HTMLElement} The element to format with markup.
-     * @param oRecord {YAHOO.widget.Record} Record instance.
-     * @param oColumn {YAHOO.widget.Column} Column instance.
-     * @param oData {Object} (Optional) Data value for the cell.
-     * @static
-     */
-    formatText : function(el, oRecord, oColumn, oData) {
-        var value = (lang.isValue(oData)) ? oData : "";
-        //TODO: move to util function
-        el.innerHTML = value.toString().replace(/&/g, "&#38;").replace(/</g, "&#60;").replace(/>/g, "&#62;");
-    },
-
-    /**
-     * Formats TEXTAREA elements.
-     *
-     * @method DataTable.formatTextarea
-     * @param el {HTMLElement} The element to format with markup.
-     * @param oRecord {YAHOO.widget.Record} Record instance.
-     * @param oColumn {YAHOO.widget.Column} Column instance.
-     * @param oData {Object} (Optional) Data value for the cell.
-     * @static
-     */
-    formatTextarea : function(el, oRecord, oColumn, oData) {
-        var value = (lang.isValue(oData)) ? oData : "",
-            markup = "<textarea>" + value + "</textarea>";
-        el.innerHTML = markup;
-    },
-
-    /**
-     * Formats INPUT TYPE=TEXT elements.
-     *
-     * @method DataTable.formatTextbox
-     * @param el {HTMLElement} The element to format with markup.
-     * @param oRecord {YAHOO.widget.Record} Record instance.
-     * @param oColumn {YAHOO.widget.Column} Column instance.
-     * @param oData {Object} (Optional) Data value for the cell.
-     * @static
-     */
-    formatTextbox : function(el, oRecord, oColumn, oData) {
-        var value = (lang.isValue(oData)) ? oData : "",
-            markup = "<input type=\"text\" value=\"" + value + "\" />";
-        el.innerHTML = markup;
-    },
-
-    /**
-     * Default cell formatter
-     *
-     * @method DataTable.formatDefault
-     * @param el {HTMLElement} The element to format with markup.
-     * @param oRecord {YAHOO.widget.Record} Record instance.
-     * @param oColumn {YAHOO.widget.Column} Column instance.
-     * @param oData {Object} (Optional) Data value for the cell.
-     * @static
-     */
-    formatDefault : function(el, oRecord, oColumn, oData) {
-        el.innerHTML = oData === undefined ||
-                       oData === null ||
-                       (typeof oData === 'number' && isNaN(oData)) ?
-                       "&#160;" : oData.toString();
-    },
-
-    /**
-     * Validates data value to type Number, doing type conversion as
-     * necessary. A valid Number value is return, else null is returned
-     * if input value does not validate.
-     *
-     *
-     * @method DataTable.validateNumber
-     * @param oData {Object} Data to validate.
-     * @static
-    */
-    validateNumber : function(oData) {
-        //Convert to number
-        var number = oData * 1;
-
-        // Validate
-        if(lang.isNumber(number)) {
-            return number;
-        }
-        else {
-            return undefined;
-        }
-    }
-});
-
-// Done in separate step so referenced functions are defined.
-/**
- * Cell formatting functions.
- * @property DataTable.Formatter
- * @type Object
- * @static
- */
-DT.Formatter = {
-    button   : DT.formatButton,
-    checkbox : DT.formatCheckbox,
-    currency : DT.formatCurrency,
-    "date"   : DT.formatDate,
-    dropdown : DT.formatDropdown,
-    email    : DT.formatEmail,
-    link     : DT.formatLink,
-    "number" : DT.formatNumber,
-    radio    : DT.formatRadio,
-    text     : DT.formatText,
-    textarea : DT.formatTextarea,
-    textbox  : DT.formatTextbox,
-
-    defaultFormatter : DT.formatDefault
-};
-
-lang.extend(DT, util.Element, {
-
-/////////////////////////////////////////////////////////////////////////////
-//
-// Superclass methods
-//
-/////////////////////////////////////////////////////////////////////////////
-
-/**
- * Implementation of Element's abstract method. Sets up config values.
- *
- * @method initAttributes
- * @param oConfigs {Object} (Optional) Object literal definition of configuration values.
- * @private
- */
-
-initAttributes : function(oConfigs) {
-    oConfigs = oConfigs || {};
-    DT.superclass.initAttributes.call(this, oConfigs);
-
-    /**
-    * @attribute summary
-    * @description Value for the SUMMARY attribute.
-    * @type String
-    * @default ""    
-    */
-    this.setAttributeConfig("summary", {
-        value: "",
-        validator: lang.isString,
-        method: function(sSummary) {
-            if(this._elTable) {
-                this._elTable.summary = sSummary;
-            }
-        }
-    });
-
-    /**
-    * @attribute selectionMode
-    * @description Specifies row or cell selection mode. Accepts the following strings:
-    *    <dl>
-    *      <dt>"standard"</dt>
-    *      <dd>Standard row selection with support for modifier keys to enable
-    *      multiple selections.</dd>
-    *
-    *      <dt>"single"</dt>
-    *      <dd>Row selection with modifier keys disabled to not allow
-    *      multiple selections.</dd>
-    *
-    *      <dt>"singlecell"</dt>
-    *      <dd>Cell selection with modifier keys disabled to not allow
-    *      multiple selections.</dd>
-    *
-    *      <dt>"cellblock"</dt>
-    *      <dd>Cell selection with support for modifier keys to enable multiple
-    *      selections in a block-fashion, like a spreadsheet.</dd>
-    *
-    *      <dt>"cellrange"</dt>
-    *      <dd>Cell selection with support for modifier keys to enable multiple
-    *      selections in a range-fashion, like a calendar.</dd>
-    *    </dl>
-    *
-    * @default "standard"
-    * @type String
-    */
-    this.setAttributeConfig("selectionMode", {
-        value: "standard",
-        validator: lang.isString
-    });
-
-    /**
-    * @attribute sortedBy
-    * @description Object literal provides metadata for initial sort values if
-    * data will arrive pre-sorted:
-    * <dl>
-    *     <dt>sortedBy.key</dt>
-    *     <dd>{String} Key of sorted Column</dd>
-    *     <dt>sortedBy.dir</dt>
-    *     <dd>{String} Initial sort direction, either YAHOO.widget.DataTable.CLASS_ASC or YAHOO.widget.DataTable.CLASS_DESC</dd>
-    * </dl>
-    * @type Object | null
-    */
-    this.setAttributeConfig("sortedBy", {
-        value: null,
-        // TODO: accepted array for nested sorts
-        validator: function(oNewSortedBy) {
-            if(oNewSortedBy) {
-                return (lang.isObject(oNewSortedBy) && oNewSortedBy.key);
-            }
-            else {
-                return (oNewSortedBy === null);
-            }
-        },
-        method: function(oNewSortedBy) {
-            // Stash the previous value
-            var oOldSortedBy = this.get("sortedBy");
-            
-            // Workaround for bug 1827195
-            this._configs.sortedBy.value = oNewSortedBy;
-
-            // Remove ASC/DESC from TH
-            var oOldColumn,
-                nOldColumnKeyIndex,
-                oNewColumn,
-                nNewColumnKeyIndex;
-                
-            if(this._elThead) {
-                if(oOldSortedBy && oOldSortedBy.key && oOldSortedBy.dir) {
-                    oOldColumn = this._oColumnSet.getColumn(oOldSortedBy.key);
-                    nOldColumnKeyIndex = oOldColumn.getKeyIndex();
-                    
-                    // Remove previous UI from THEAD
-                    var elOldTh = oOldColumn.getThEl();
-                    Dom.removeClass(elOldTh, oOldSortedBy.dir);
-                    this.formatTheadCell(oOldColumn.getThLinerEl().firstChild, oOldColumn, oNewSortedBy);
-                }
-                if(oNewSortedBy) {
-                    oNewColumn = (oNewSortedBy.column) ? oNewSortedBy.column : this._oColumnSet.getColumn(oNewSortedBy.key);
-                    nNewColumnKeyIndex = oNewColumn.getKeyIndex();
-    
-                    // Update THEAD with new UI
-                    var elNewTh = oNewColumn.getThEl();
-                    // Backward compatibility
-                    if(oNewSortedBy.dir && ((oNewSortedBy.dir == "asc") ||  (oNewSortedBy.dir == "desc"))) {
-                        var newClass = (oNewSortedBy.dir == "desc") ?
-                                DT.CLASS_DESC :
-                                DT.CLASS_ASC;
-                        Dom.addClass(elNewTh, newClass);
-                    }
-                    else {
-                         var sortClass = oNewSortedBy.dir || DT.CLASS_ASC;
-                         Dom.addClass(elNewTh, sortClass);
-                    }
-                    this.formatTheadCell(oNewColumn.getThLinerEl().firstChild, oNewColumn, oNewSortedBy);
-                }
-            }
-          
-            if(this._elTbody) {
-                // Update TBODY UI
-                this._elTbody.style.display = "none";
-                var allRows = this._elTbody.rows,
-                    allCells;
-                for(var i=allRows.length-1; i>-1; i--) {
-                    allCells = allRows[i].childNodes;
-                    if(allCells[nOldColumnKeyIndex]) {
-                        Dom.removeClass(allCells[nOldColumnKeyIndex], oOldSortedBy.dir);
-                    }
-                    if(allCells[nNewColumnKeyIndex]) {
-                        Dom.addClass(allCells[nNewColumnKeyIndex], oNewSortedBy.dir);
-                    }
-                }
-                this._elTbody.style.display = "";
-            }
-                
-            this._clearTrTemplateEl();
-        }
-    });
-    
-    /**
-    * @attribute paginator
-    * @description An instance of YAHOO.widget.Paginator.
-    * @default null
-    * @type {Object|YAHOO.widget.Paginator}
-    */
-    this.setAttributeConfig("paginator", {
-        value : null,
-        validator : function (val) {
-            return val === null || val instanceof widget.Paginator;
-        },
-        method : function () { this._updatePaginator.apply(this,arguments); }
-    });
-
-    /**
-    * @attribute caption
-    * @description Value for the CAPTION element. NB: Not supported in
-    * ScrollingDataTable.    
-    * @type String
-    */
-    this.setAttributeConfig("caption", {
-        value: null,
-        validator: lang.isString,
-        method: function(sCaption) {
-            this._initCaptionEl(sCaption);
-        }
-    });
-
-    /**
-    * @attribute draggableColumns
-    * @description True if Columns are draggable to reorder, false otherwise.
-    * The Drag & Drop Utility is required to enable this feature. Only top-level
-    * and non-nested Columns are draggable. Write once.
-    * @default false
-    * @type Boolean
-    */
-    this.setAttributeConfig("draggableColumns", {
-        value: false,
-        validator: lang.isBoolean,
-        method: function(oParam) {
-            if(this._elThead) {
-                if(oParam) {
-                    this._initDraggableColumns();
-                }
-                else {
-                    this._destroyDraggableColumns();
-                }
-            }
-        }
-    });
-
-    /**
-    * @attribute renderLoopSize         
-    * @description A value greater than 0 enables DOM rendering of rows to be
-    * executed from a non-blocking timeout queue and sets how many rows to be
-    * rendered per timeout. Recommended for very large data sets.     
-    * @type Number      
-    * @default 0        
-    */          
-     this.setAttributeConfig("renderLoopSize", {        
-         value: 0,      
-         validator: lang.isNumber       
-     });        
-
-    /**
-    * @attribute formatRow
-    * @description A function that accepts a TR element and its associated Record
-    * for custom formatting. The function must return TRUE in order to automatically
-    * continue formatting of child TD elements, else TD elements will not be
-    * automatically formatted.
-    * @type function
-    * @default null
-    */
-    this.setAttributeConfig("formatRow", {
-        value: null,
-        validator: lang.isFunction
-    });
-
-    /**
-    * @attribute generateRequest
-    * @description A function that converts an object literal of desired DataTable
-    * states into a request value which is then passed to the DataSource's
-    * sendRequest method in order to retrieve data for those states. This
-    * function is passed an object literal of state data and a reference to the
-    * DataTable instance:
-    *     
-    * <dl>
-    *   <dt>pagination<dt>
-    *   <dd>        
-    *         <dt>offsetRecord</dt>
-    *         <dd>{Number} Index of the first Record of the desired page</dd>
-    *         <dt>rowsPerPage</dt>
-    *         <dd>{Number} Number of rows per page</dd>
-    *   </dd>
-    *   <dt>sortedBy</dt>
-    *   <dd>                
-    *         <dt>key</dt>
-    *         <dd>{String} Key of sorted Column</dd>
-    *         <dt>dir</dt>
-    *         <dd>{String} Sort direction, either YAHOO.widget.DataTable.CLASS_ASC or YAHOO.widget.DataTable.CLASS_DESC</dd>
-    *   </dd>
-    *   <dt>self</dt>
-    *   <dd>The DataTable instance</dd>
-    * </dl>
-    * 
-    * and by default returns a String of syntax:
-    * "sort={sortColumn}&dir={sortDir}&startIndex={pageStartIndex}&results={rowsPerPage}"
-    * @type function
-    * @default HTMLFunction
-    */
-    this.setAttributeConfig("generateRequest", {
-        value: function(oState, oSelf) {
-            // Set defaults
-            oState = oState || {pagination:null, sortedBy:null};
-            var sort = encodeURIComponent((oState.sortedBy) ? oState.sortedBy.key : oSelf.getColumnSet().keys[0].getKey());
-            var dir = (oState.sortedBy && oState.sortedBy.dir === YAHOO.widget.DataTable.CLASS_DESC) ? "desc" : "asc";
-            var startIndex = (oState.pagination) ? oState.pagination.recordOffset : 0;
-            var results = (oState.pagination) ? oState.pagination.rowsPerPage : null;
-            
-            // Build the request
-            return  "sort=" + sort +
-                    "&dir=" + dir +
-                    "&startIndex=" + startIndex +
-                    ((results !== null) ? "&results=" + results : "");
-        },
-        validator: lang.isFunction
-    });
-
-    /**
-    * @attribute initialRequest
-    * @description Defines the initial request that gets sent to the DataSource
-    * during initialization. Value is ignored if initialLoad is set to any value
-    * other than true.    
-    * @type MIXED
-    * @default null
-    */
-    this.setAttributeConfig("initialRequest", {
-        value: null
-    });
-
-    /**
-    * @attribute initialLoad
-    * @description Determines whether or not to load data at instantiation. By
-    * default, will trigger a sendRequest() to the DataSource and pass in the
-    * request defined by initialRequest. If set to false, data will not load
-    * at instantiation. Alternatively, implementers who wish to work with a 
-    * custom payload may pass in an object literal with the following values:
-    *     
-    *    <dl>
-    *      <dt>request (MIXED)</dt>
-    *      <dd>Request value.</dd>
-    *
-    *      <dt>argument (MIXED)</dt>
-    *      <dd>Custom data that will be passed through to the callback function.</dd>
-    *    </dl>
-    *
-    *                    
-    * @type Boolean | Object
-    * @default true
-    */
-    this.setAttributeConfig("initialLoad", {
-        value: true
-    });
-    
-    /**
-    * @attribute dynamicData
-    * @description If true, sorting and pagination are relegated to the DataSource
-    * for handling, using the request returned by the "generateRequest" function.
-    * Each new DataSource response blows away all previous Records. False by default, so 
-    * sorting and pagination will be handled directly on the client side, without
-    * causing any new requests for data from the DataSource.
-    * @type Boolean
-    * @default false
-    */
-    this.setAttributeConfig("dynamicData", {
-        value: false,
-        validator: lang.isBoolean
-    });
-
-    /**
-     * @attribute MSG_EMPTY     
-     * @description Message to display if DataTable has no data.     
-     * @type String     
-     * @default "No records found."     
-     */         
-     this.setAttributeConfig("MSG_EMPTY", {     
-         value: "No records found.",    
-         validator: lang.isString       
-     });        
-
-    /**
-     * @attribute MSG_LOADING   
-     * @description Message to display while DataTable is loading data.
-     * @type String     
-     * @default "Loading..."    
-     */         
-     this.setAttributeConfig("MSG_LOADING", {   
-         value: "Loading...",   
-         validator: lang.isString       
-     });        
-
-    /**
-     * @attribute MSG_ERROR     
-     * @description Message to display while DataTable has data error.
-     * @type String     
-     * @default "Data error."   
-     */         
-     this.setAttributeConfig("MSG_ERROR", {     
-         value: "Data error.",          
-         validator: lang.isString       
-     });        
-
-    /**
-     * @attribute MSG_SORTASC 
-     * @description Message to display in tooltip to sort Column in ascending order.
-     * @type String     
-     * @default "Click to sort ascending"       
-     */         
-     this.setAttributeConfig("MSG_SORTASC", {   
-         value: "Click to sort ascending",      
-         validator: lang.isString,
-         method: function(sParam) {
-            if(this._elThead) {
-                for(var i=0, allKeys=this.getColumnSet().keys, len=allKeys.length; i<len; i++) {
-                    if(allKeys[i].sortable && this.getColumnSortDir(allKeys[i]) === DT.CLASS_ASC) {
-                        allKeys[i]._elThLabel.firstChild.title = sParam;
-                    }
-                }
-            }      
-         }
-     });
-
-    /**
-     * @attribute MSG_SORTDESC 
-     * @description Message to display in tooltip to sort Column in descending order.
-     * @type String     
-     * @default "Click to sort descending"      
-     */         
-     this.setAttributeConfig("MSG_SORTDESC", {          
-         value: "Click to sort descending",     
-         validator: lang.isString,
-         method: function(sParam) {
-            if(this._elThead) {
-                for(var i=0, allKeys=this.getColumnSet().keys, len=allKeys.length; i<len; i++) {
-                    if(allKeys[i].sortable && this.getColumnSortDir(allKeys[i]) === DT.CLASS_DESC) {
-                        allKeys[i]._elThLabel.firstChild.title = sParam;
-                    }
-                }
-            }               
-         }
-     });
-     
-    /**
-     * @attribute currencySymbol
-     * @deprecated
-     */
-    this.setAttributeConfig("currencySymbol", {
-        value: "$",
-        validator: lang.isString
-    });
-    
-    /**
-     * Default config passed to YAHOO.util.Number.format() by the 'currency' Column formatter.
-     * @attribute currencyOptions
-     * @type Object
-     * @default {prefix: $, decimalPlaces:2, decimalSeparator:".", thousandsSeparator:","}
-     */
-    this.setAttributeConfig("currencyOptions", {
-        value: {
-            prefix: this.get("currencySymbol"), // TODO: deprecate currencySymbol
-            decimalPlaces:2,
-            decimalSeparator:".",
-            thousandsSeparator:","
-        }
-    });
-    
-    /**
-     * Default config passed to YAHOO.util.Date.format() by the 'date' Column formatter.
-     * @attribute dateOptions
-     * @type Object
-     * @default {format:"%m/%d/%Y", locale:"en"}
-     */
-    this.setAttributeConfig("dateOptions", {
-        value: {format:"%m/%d/%Y", locale:"en"}
-    });
-    
-    /**
-     * Default config passed to YAHOO.util.Number.format() by the 'number' Column formatter.
-     * @attribute numberOptions
-     * @type Object
-     * @default {decimalPlaces:0, thousandsSeparator:","}
-     */
-    this.setAttributeConfig("numberOptions", {
-        value: {
-            decimalPlaces:0,
-            thousandsSeparator:","
-        }
-    });
-
-},
-
-/////////////////////////////////////////////////////////////////////////////
-//
-// Private member variables
-//
-/////////////////////////////////////////////////////////////////////////////
-
-/**
- * True if instance is initialized, so as to fire the initEvent after render.
- *
- * @property _bInit
- * @type Boolean
- * @default true
- * @private
- */
-_bInit : true,
-
-/**
- * Index assigned to instance.
- *
- * @property _nIndex
- * @type Number
- * @private
- */
-_nIndex : null,
-
-/**
- * Counter for IDs assigned to TR elements.
- *
- * @property _nTrCount
- * @type Number
- * @private
- */
-_nTrCount : 0,
-
-/**
- * Counter for IDs assigned to TD elements.
- *
- * @property _nTdCount
- * @type Number
- * @private
- */
-_nTdCount : 0,
-
-/**
- * Unique id assigned to instance "yui-dtN", useful prefix for generating unique
- * DOM ID strings and log messages.
- *
- * @property _sId
- * @type String
- * @private
- */
-_sId : null,
-
-/**
- * Render chain.
- *
- * @property _oChainRender
- * @type YAHOO.util.Chain
- * @private
- */
-_oChainRender : null,
-
-/**
- * DOM reference to the container element for the DataTable instance into which
- * all other elements get created.
- *
- * @property _elContainer
- * @type HTMLElement
- * @private
- */
-_elContainer : null,
-
-/**
- * DOM reference to the mask element for the DataTable instance which disables it.
- *
- * @property _elMask
- * @type HTMLElement
- * @private
- */
-_elMask : null,
-
-/**
- * DOM reference to the TABLE element for the DataTable instance.
- *
- * @property _elTable
- * @type HTMLElement
- * @private
- */
-_elTable : null,
-
-/**
- * DOM reference to the CAPTION element for the DataTable instance.
- *
- * @property _elCaption
- * @type HTMLElement
- * @private
- */
-_elCaption : null,
-
-/**
- * DOM reference to the COLGROUP element for the DataTable instance.
- *
- * @property _elColgroup
- * @type HTMLElement
- * @private
- */
-_elColgroup : null,
-
-/**
- * DOM reference to the THEAD element for the DataTable instance.
- *
- * @property _elThead
- * @type HTMLElement
- * @private
- */
-_elThead : null,
-
-/**
- * DOM reference to the primary TBODY element for the DataTable instance.
- *
- * @property _elTbody
- * @type HTMLElement
- * @private
- */
-_elTbody : null,
-
-/**
- * DOM reference to the secondary TBODY element used to display DataTable messages.
- *
- * @property _elMsgTbody
- * @type HTMLElement
- * @private
- */
-_elMsgTbody : null,
-
-/**
- * DOM reference to the secondary TBODY element's single TR element used to display DataTable messages.
- *
- * @property _elMsgTr
- * @type HTMLElement
- * @private
- */
-_elMsgTr : null,
-
-/**
- * DOM reference to the secondary TBODY element's single TD element used to display DataTable messages.
- *
- * @property _elMsgTd
- * @type HTMLElement
- * @private
- */
-_elMsgTd : null,
-
-/**
- * DataSource instance for the DataTable instance.
- *
- * @property _oDataSource
- * @type YAHOO.util.DataSource
- * @private
- */
-_oDataSource : null,
-
-/**
- * ColumnSet instance for the DataTable instance.
- *
- * @property _oColumnSet
- * @type YAHOO.widget.ColumnSet
- * @private
- */
-_oColumnSet : null,
-
-/**
- * RecordSet instance for the DataTable instance.
- *
- * @property _oRecordSet
- * @type YAHOO.widget.RecordSet
- * @private
- */
-_oRecordSet : null,
-
-/**
- * The active CellEditor instance for the DataTable instance.
- *
- * @property _oCellEditor
- * @type YAHOO.widget.CellEditor
- * @private
- */
-_oCellEditor : null,
-
-/**
- * ID string of first TR element of the current DataTable page.
- *
- * @property _sFirstTrId
- * @type String
- * @private
- */
-_sFirstTrId : null,
-
-/**
- * ID string of the last TR element of the current DataTable page.
- *
- * @property _sLastTrId
- * @type String
- * @private
- */
-_sLastTrId : null,
-
-/**
- * Template row to create all new rows from.
- * @property _elTrTemplate
- * @type {HTMLElement}
- * @private 
- */
-_elTrTemplate : null,
-
-/**
- * Sparse array of custom functions to set column widths for browsers that don't
- * support dynamic CSS rules.  Functions are added at the index representing
- * the number of rows they update.
- *
- * @property _aDynFunctions
- * @type Array
- * @private
- */
-_aDynFunctions : [],
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-/////////////////////////////////////////////////////////////////////////////
-//
-// Private methods
-//
-/////////////////////////////////////////////////////////////////////////////
-
-/**
- * Clears browser text selection. Useful to call on rowSelectEvent or
- * cellSelectEvent to prevent clicks or dblclicks from selecting text in the
- * browser.
- *
- * @method clearTextSelection
- */
-clearTextSelection : function() {
-    var sel;
-    if(window.getSelection) {
-       sel = window.getSelection();
-    }
-    else if(document.getSelection) {
-       sel = document.getSelection();
-    }
-    else if(document.selection) {
-       sel = document.selection;
-    }
-    if(sel) {
-        if(sel.empty) {
-            sel.empty();
-        }
-        else if (sel.removeAllRanges) {
-            sel.removeAllRanges();
-        }
-        else if(sel.collapse) {
-            sel.collapse();
-        }
-    }
-},
-
-/**
- * Sets focus on the given element.
- *
- * @method _focusEl
- * @param el {HTMLElement} Element.
- * @private
- */
-_focusEl : function(el) {
-    el = el || this._elTbody;
-    // http://developer.mozilla.org/en/docs/index.php?title=Key-navigable_custom_DHTML_widgets
-    // The timeout is necessary in both IE and Firefox 1.5, to prevent scripts from doing
-    // strange unexpected things as the user clicks on buttons and other controls.
-    setTimeout(function() {
-        try {
-            el.focus();
-        }
-        catch(e) {
-        }
-    },0);
-},
-
-/**
- * Forces Gecko repaint.
- *
- * @method _repaintGecko
- * @el {HTMLElement} (Optional) Element to repaint, otherwise entire document body.
- * @private
- */
-_repaintGecko : (ua.gecko) ? 
-    function(el) {
-        el = el || this._elContainer;
-        var parent = el.parentNode;
-        var nextSibling = el.nextSibling;
-        parent.insertBefore(parent.removeChild(el), nextSibling);
-    } : function() {},
-
-/**
- * Forces Opera repaint.
- *
- * @method _repaintOpera
- * @private 
- */
-_repaintOpera : (ua.opera) ? 
-    function() {
-        if(ua.opera) {
-            document.documentElement.className += " ";
-            document.documentElement.className = YAHOO.lang.trim(document.documentElement.className);
-        }
-    } : function() {} ,
-
-/**
- * Forces Webkit repaint.
- *
- * @method _repaintWebkit
- * @el {HTMLElement} (Optional) Element to repaint, otherwise entire document body.
- * @private
- */
-_repaintWebkit : (ua.webkit) ? 
-    function(el) {
-        el = el || this._elContainer;
-        var parent = el.parentNode;
-        var nextSibling = el.nextSibling;
-        parent.insertBefore(parent.removeChild(el), nextSibling);
-    } : function() {},
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-// INIT FUNCTIONS
-
-/**
- * Initializes object literal of config values.
- *
- * @method _initConfigs
- * @param oConfig {Object} Object literal of config values.
- * @private
- */
-_initConfigs : function(oConfigs) {
-    if(!oConfigs || !lang.isObject(oConfigs)) {
-        oConfigs = {};
-    }
-    this.configs = oConfigs;
-},
-
-/**
- * Initializes ColumnSet.
- *
- * @method _initColumnSet
- * @param aColumnDefs {Object[]} Array of object literal Column definitions.
- * @private
- */
-_initColumnSet : function(aColumnDefs) {
-    var oColumn, i, len;
-    
-    if(this._oColumnSet) {
-        // First clear _oDynStyles for existing ColumnSet and
-        // uregister CellEditor Custom Events
-        for(i=0, len=this._oColumnSet.keys.length; i<len; i++) {
-            oColumn = this._oColumnSet.keys[i];
-            DT._oDynStyles["."+this.getId()+"-col-"+oColumn.getSanitizedKey()+" ."+DT.CLASS_LINER] = undefined;
-            if(oColumn.editor && oColumn.editor.unsubscribeAll) { // Backward compatibility
-                oColumn.editor.unsubscribeAll();
-            }
-        }
-        
-        this._oColumnSet = null;
-        this._clearTrTemplateEl();
-    }
-    
-    if(lang.isArray(aColumnDefs)) {
-        this._oColumnSet =  new YAHOO.widget.ColumnSet(aColumnDefs);
-    }
-    // Backward compatibility
-    else if(aColumnDefs instanceof YAHOO.widget.ColumnSet) {
-        this._oColumnSet =  aColumnDefs;
-    }
-
-    // Register CellEditor Custom Events
-    var allKeys = this._oColumnSet.keys;
-    for(i=0, len=allKeys.length; i<len; i++) {
-        oColumn = allKeys[i];
-        if(oColumn.editor && oColumn.editor.subscribe) { // Backward incompatibility
-            oColumn.editor.subscribe("showEvent", this._onEditorShowEvent, this, true);
-            oColumn.editor.subscribe("keydownEvent", this._onEditorKeydownEvent, this, true);
-            oColumn.editor.subscribe("revertEvent", this._onEditorRevertEvent, this, true);
-            oColumn.editor.subscribe("saveEvent", this._onEditorSaveEvent, this, true);
-            oColumn.editor.subscribe("cancelEvent", this._onEditorCancelEvent, this, true);
-            oColumn.editor.subscribe("blurEvent", this._onEditorBlurEvent, this, true);
-            oColumn.editor.subscribe("blockEvent", this._onEditorBlockEvent, this, true);
-            oColumn.editor.subscribe("unblockEvent", this._onEditorUnblockEvent, this, true);
-        }
-    }
-},
-
-/**
- * Initializes DataSource.
- *
- * @method _initDataSource
- * @param oDataSource {YAHOO.util.DataSource} DataSource instance.
- * @private
- */
-_initDataSource : function(oDataSource) {
-    this._oDataSource = null;
-    if(oDataSource && (lang.isFunction(oDataSource.sendRequest))) {
-        this._oDataSource = oDataSource;
-    }
-    // Backward compatibility
-    else {
-        var tmpTable = null;
-        var tmpContainer = this._elContainer;
-        var i=0;
-        //TODO: this will break if re-initing DS at runtime for SDT
-        // Peek in container child nodes to see if TABLE already exists
-        if(tmpContainer.hasChildNodes()) {
-            var tmpChildren = tmpContainer.childNodes;
-            for(i=0; i<tmpChildren.length; i++) {
-                if(tmpChildren[i].nodeName && tmpChildren[i].nodeName.toLowerCase() == "table") {
-                    tmpTable = tmpChildren[i];
-                    break;
-                }
-            }
-            if(tmpTable) {
-                var tmpFieldsArray = [];
-                for(; i<this._oColumnSet.keys.length; i++) {
-                    tmpFieldsArray.push({key:this._oColumnSet.keys[i].key});
-                }
-
-                this._oDataSource = new DS(tmpTable);
-                this._oDataSource.responseType = DS.TYPE_HTMLTABLE;
-                this._oDataSource.responseSchema = {fields: tmpFieldsArray};
-            }
-        }
-    }
-},
-
-/**
- * Initializes RecordSet.
- *
- * @method _initRecordSet
- * @private
- */
-_initRecordSet : function() {
-    if(this._oRecordSet) {
-        this._oRecordSet.reset();
-    }
-    else {
-        this._oRecordSet = new YAHOO.widget.RecordSet();
-    }
-},
-
-/**
- * Initializes DOM elements.
- *
- * @method _initDomElements
- * @param elContainer {HTMLElement | String} HTML DIV element by reference or ID. 
- * return {Boolean} False in case of error, otherwise true 
- * @private
- */
-_initDomElements : function(elContainer) {
-    // Outer container
-    this._initContainerEl(elContainer);
-    // TABLE
-    this._initTableEl(this._elContainer);
-    // COLGROUP
-    this._initColgroupEl(this._elTable);
-    // THEAD
-    this._initTheadEl(this._elTable);
-    
-    // Message TBODY
-    this._initMsgTbodyEl(this._elTable);  
-
-    // Primary TBODY
-    this._initTbodyEl(this._elTable);
-
-    if(!this._elContainer || !this._elTable || !this._elColgroup ||  !this._elThead || !this._elTbody || !this._elMsgTbody) {
-        return false;
-    }
-    else {
-        return true;
-    }
-},
-
-/**
- * Destroy's the DataTable outer container element, if available.
- *
- * @method _destroyContainerEl
- * @param elContainer {HTMLElement} Reference to the container element. 
- * @private
- */
-_destroyContainerEl : function(elContainer) {
-    Dom.removeClass(elContainer, DT.CLASS_DATATABLE);
-    Ev.purgeElement(elContainer, true);
-    elContainer.innerHTML = "";
-    
-    this._elContainer = null;
-    this._elColgroup = null;
-    this._elThead = null;
-    this._elTbody = null;
-},
-
-/**
- * Initializes the DataTable outer container element, including a mask.
- *
- * @method _initContainerEl
- * @param elContainer {HTMLElement | String} HTML DIV element by reference or ID.
- * @private
- */
-_initContainerEl : function(elContainer) {
-    // Validate container
-    elContainer = Dom.get(elContainer);
-    
-    if(elContainer && elContainer.nodeName && (elContainer.nodeName.toLowerCase() == "div")) {
-        // Destroy previous
-        this._destroyContainerEl(elContainer);
-
-        Dom.addClass(elContainer, DT.CLASS_DATATABLE);
-        Ev.addListener(elContainer, "focus", this._onTableFocus, this);
-        Ev.addListener(elContainer, "dblclick", this._onTableDblclick, this);
-        this._elContainer = elContainer;
-        
-        var elMask = document.createElement("div");
-        elMask.className = DT.CLASS_MASK;
-        elMask.style.display = "none";
-        this._elMask = elContainer.appendChild(elMask);
-    }
-},
-
-/**
- * Destroy's the DataTable TABLE element, if available.
- *
- * @method _destroyTableEl
- * @private
- */
-_destroyTableEl : function() {
-    var elTable = this._elTable;
-    if(elTable) {
-        Ev.purgeElement(elTable, true);
-        elTable.parentNode.removeChild(elTable);
-        this._elCaption = null;
-        this._elColgroup = null;
-        this._elThead = null;
-        this._elTbody = null;
-    }
-},
-
-/**
- * Creates HTML markup CAPTION element.
- *
- * @method _initCaptionEl
- * @param sCaption {String} Text for caption.
- * @private
- */
-_initCaptionEl : function(sCaption) {
-    if(this._elTable && sCaption) {
-        // Create CAPTION element
-        if(!this._elCaption) { 
-            this._elCaption = this._elTable.createCaption();
-        }
-        // Set CAPTION value
-        this._elCaption.innerHTML = sCaption;
-    }
-    else if(this._elCaption) {
-        this._elCaption.parentNode.removeChild(this._elCaption);
-    }
-},
-
-/**
- * Creates HTML markup for TABLE, COLGROUP, THEAD and TBODY elements in outer
- * container element.
- *
- * @method _initTableEl
- * @param elContainer {HTMLElement} Container element into which to create TABLE.
- * @private
- */
-_initTableEl : function(elContainer) {
-    if(elContainer) {
-        // Destroy previous
-        this._destroyTableEl();
-    
-        // Create TABLE
-        this._elTable = elContainer.appendChild(document.createElement("table"));  
-         
-        // Set SUMMARY attribute
-        this._elTable.summary = this.get("summary");
-        
-        // Create CAPTION element
-        if(this.get("caption")) {
-            this._initCaptionEl(this.get("caption"));
-        }
-    } 
-},
-
-/**
- * Destroy's the DataTable COLGROUP element, if available.
- *
- * @method _destroyColgroupEl
- * @private
- */
-_destroyColgroupEl : function() {
-    var elColgroup = this._elColgroup;
-    if(elColgroup) {
-        var elTable = elColgroup.parentNode;
-        Ev.purgeElement(elColgroup, true);
-        elTable.removeChild(elColgroup);
-        this._elColgroup = null;
-    }
-},
-
-/**
- * Initializes COLGROUP and COL elements for managing minWidth.
- *
- * @method _initColgroupEl
- * @param elTable {HTMLElement} TABLE element into which to create COLGROUP.
- * @private
- */
-_initColgroupEl : function(elTable) {
-    if(elTable) {
-        // Destroy previous
-        this._destroyColgroupEl();
-
-        // Add COLs to DOCUMENT FRAGMENT
-        var allCols = this._aColIds || [],
-            allKeys = this._oColumnSet.keys,
-            i = 0, len = allCols.length,
-            elCol, oColumn,
-            elFragment = document.createDocumentFragment(),
-            elColTemplate = document.createElement("col");
-    
-        for(i=0,len=allKeys.length; i<len; i++) {
-            oColumn = allKeys[i];
-            elCol = elFragment.appendChild(elColTemplate.cloneNode(false));
-        }
-    
-        // Create COLGROUP
-        var elColgroup = elTable.insertBefore(document.createElement("colgroup"), elTable.firstChild);
-        elColgroup.appendChild(elFragment);
-        this._elColgroup = elColgroup;
-    }
-},
-
-/**
- * Adds a COL element to COLGROUP at given index.
- *
- * @method _insertColgroupColEl
- * @param index {Number} Index of new COL element.
- * @private
- */
-_insertColgroupColEl : function(index) {
-    if(lang.isNumber(index)&& this._elColgroup) {
-        var nextSibling = this._elColgroup.childNodes[index] || null;
-        this._elColgroup.insertBefore(document.createElement("col"), nextSibling);
-    }
-},
-
-/**
- * Removes a COL element to COLGROUP at given index.
- *
- * @method _removeColgroupColEl
- * @param index {Number} Index of removed COL element.
- * @private
- */
-_removeColgroupColEl : function(index) {
-    if(lang.isNumber(index) && this._elColgroup && this._elColgroup.childNodes[index]) {
-        this._elColgroup.removeChild(this._elColgroup.childNodes[index]);
-    }
-},
-
-/**
- * Reorders a COL element from old index(es) to new index.
- *
- * @method _reorderColgroupColEl
- * @param aKeyIndexes {Number[]} Array of indexes of removed COL element.
- * @param newIndex {Number} New index. 
- * @private
- */
-_reorderColgroupColEl : function(aKeyIndexes, newIndex) {
-    if(lang.isArray(aKeyIndexes) && lang.isNumber(newIndex) && this._elColgroup && (this._elColgroup.childNodes.length > aKeyIndexes[aKeyIndexes.length-1])) {
-        var i,
-            tmpCols = [];
-        // Remove COL
-        for(i=aKeyIndexes.length-1; i>-1; i--) {
-            tmpCols.push(this._elColgroup.removeChild(this._elColgroup.childNodes[aKeyIndexes[i]]));
-        }
-        // Insert COL
-        var nextSibling = this._elColgroup.childNodes[newIndex] || null;
-        for(i=tmpCols.length-1; i>-1; i--) {
-            this._elColgroup.insertBefore(tmpCols[i], nextSibling);
-        }
-    }
-},
-
-/**
- * Destroy's the DataTable THEAD element, if available.
- *
- * @method _destroyTheadEl
- * @private
- */
-_destroyTheadEl : function() {
-    var elThead = this._elThead;
-    if(elThead) {
-        var elTable = elThead.parentNode;
-        Ev.purgeElement(elThead, true);
-        this._destroyColumnHelpers();
-        elTable.removeChild(elThead);
-        this._elThead = null;
-    }
-},
-
-/**
- * Initializes THEAD element.
- *
- * @method _initTheadEl
- * @param elTable {HTMLElement} TABLE element into which to create COLGROUP.
- * @param {HTMLElement} Initialized THEAD element. 
- * @private
- */
-_initTheadEl : function(elTable) {
-    elTable = elTable || this._elTable;
-    
-    if(elTable) {
-        // Destroy previous
-        this._destroyTheadEl();
-    
-        //TODO: append to DOM later for performance
-        var elThead = (this._elColgroup) ?
-            elTable.insertBefore(document.createElement("thead"), this._elColgroup.nextSibling) :
-            elTable.appendChild(document.createElement("thead"));
-    
-        // Set up DOM events for THEAD
-        Ev.addListener(elThead, "focus", this._onTheadFocus, this);
-        Ev.addListener(elThead, "keydown", this._onTheadKeydown, this);
-        Ev.addListener(elThead, "mouseover", this._onTableMouseover, this);
-        Ev.addListener(elThead, "mouseout", this._onTableMouseout, this);
-        Ev.addListener(elThead, "mousedown", this._onTableMousedown, this);
-        Ev.addListener(elThead, "mouseup", this._onTableMouseup, this);
-        Ev.addListener(elThead, "click", this._onTheadClick, this);
-
-        // Since we can't listen for click and dblclick on the same element...
-        // Attach separately to THEAD and TBODY
-        ///Ev.addListener(elThead, "dblclick", this._onTableDblclick, this);
-        
-       var oColumnSet = this._oColumnSet,
-            oColumn, i,j, l;
-        
-        // Add TRs to the THEAD
-        var colTree = oColumnSet.tree;
-        var elTh;
-        for(i=0; i<colTree.length; i++) {
-            var elTheadTr = elThead.appendChild(document.createElement("tr"));
-    
-            // ...and create TH cells
-            for(j=0; j<colTree[i].length; j++) {
-                oColumn = colTree[i][j];
-                elTh = elTheadTr.appendChild(document.createElement("th"));
-                this._initThEl(elTh,oColumn);
-            }
-    
-                // Set FIRST/LAST on THEAD rows
-                if(i === 0) {
-                    Dom.addClass(elTheadTr, DT.CLASS_FIRST);
-                }
-                if(i === (colTree.length-1)) {
-                    Dom.addClass(elTheadTr, DT.CLASS_LAST);
-                }
-
-        }
-
-        // Set FIRST/LAST on edge TH elements using the values in ColumnSet headers array
-        var aFirstHeaders = oColumnSet.headers[0] || [];
-        for(i=0; i<aFirstHeaders.length; i++) {
-            Dom.addClass(Dom.get(this.getId() +"-th-"+aFirstHeaders[i]), DT.CLASS_FIRST);
-        }
-        var aLastHeaders = oColumnSet.headers[oColumnSet.headers.length-1] || [];
-        for(i=0; i<aLastHeaders.length; i++) {
-            Dom.addClass(Dom.get(this.getId() +"-th-"+aLastHeaders[i]), DT.CLASS_LAST);
-        }
-        
-
-        ///TODO: try _repaintGecko(this._elContainer) instead
-        // Bug 1806891
-        if(ua.webkit && ua.webkit < 420) {
-            var oSelf = this;
-            setTimeout(function() {
-                elThead.style.display = "";
-            },0);
-            elThead.style.display = 'none';
-        }
-        
-        this._elThead = elThead;
-        
-        // Column helpers needs _elThead to exist
-        this._initColumnHelpers();  
-    }
-},
-
-/**
- * Populates TH element as defined by Column.
- *
- * @method _initThEl
- * @param elTh {HTMLElement} TH element reference.
- * @param oColumn {YAHOO.widget.Column} Column object.
- * @private
- */
-_initThEl : function(elTh, oColumn) {
-    elTh.id = this.getId() + "-th-" + oColumn.getSanitizedKey(); // Needed for accessibility, getColumn by TH, and ColumnDD
-    elTh.innerHTML = "";
-    elTh.rowSpan = oColumn.getRowspan();
-    elTh.colSpan = oColumn.getColspan();
-    oColumn._elTh = elTh;
-    
-    var elThLiner = elTh.appendChild(document.createElement("div"));
-    elThLiner.id = elTh.id + "-liner"; // Needed for resizer
-    elThLiner.className = DT.CLASS_LINER;
-    oColumn._elThLiner = elThLiner;
-    
-    var elThLabel = elThLiner.appendChild(document.createElement("span"));
-    elThLabel.className = DT.CLASS_LABEL;    
-
-    // Assign abbr attribute
-    if(oColumn.abbr) {
-        elTh.abbr = oColumn.abbr;
-    }
-    // Clear minWidth on hidden Columns
-    if(oColumn.hidden) {
-        this._clearMinWidth(oColumn);
-    }
-        
-    elTh.className = this._getColumnClassNames(oColumn);
-            
-    // Set Column width...
-    if(oColumn.width) {
-        // Validate minWidth
-        var nWidth = (oColumn.minWidth && (oColumn.width < oColumn.minWidth)) ?
-                oColumn.minWidth : oColumn.width;
-        // ...for fallback cases
-        if(DT._bDynStylesFallback) {
-            elTh.firstChild.style.overflow = 'hidden';
-            elTh.firstChild.style.width = nWidth + 'px';        
-        }
-        // ...for non fallback cases
-        else {
-            this._setColumnWidthDynStyles(oColumn, nWidth + 'px', 'hidden');
-        }
-    }
-
-    this.formatTheadCell(elThLabel, oColumn, this.get("sortedBy"));
-    oColumn._elThLabel = elThLabel;
-},
-
-/**
- * Outputs markup into the given TH based on given Column.
- *
- * @method DataTable.formatTheadCell
- * @param elCellLabel {HTMLElement} The label SPAN element within the TH liner,
- * not the liner DIV element.     
- * @param oColumn {YAHOO.widget.Column} Column instance.
- * @param oSortedBy {Object} Sort state object literal.
-*/
-formatTheadCell : function(elCellLabel, oColumn, oSortedBy) {
-    var sKey = oColumn.getKey();
-    var sLabel = lang.isValue(oColumn.label) ? oColumn.label : sKey;
-
-    // Add accessibility link for sortable Columns
-    if(oColumn.sortable) {
-        // Calculate the direction
-        var sSortClass = this.getColumnSortDir(oColumn, oSortedBy);
-        var bDesc = (sSortClass === DT.CLASS_DESC);
-
-        // This is the sorted Column
-        if(oSortedBy && (oColumn.key === oSortedBy.key)) {
-            bDesc = !(oSortedBy.dir === DT.CLASS_DESC);
-        }
-
-        // Generate a unique HREF for visited status
-        var sHref = this.getId() + "-href-" + oColumn.getSanitizedKey();
-        
-        // Generate a dynamic TITLE for sort status
-        var sTitle = (bDesc) ? this.get("MSG_SORTDESC") : this.get("MSG_SORTASC");
-        
-        // Format the element
-        elCellLabel.innerHTML = "<a href=\"" + sHref + "\" title=\"" + sTitle + "\" class=\"" + DT.CLASS_SORTABLE + "\">" + sLabel + "</a>";
-    }
-    // Just display the label for non-sortable Columns
-    else {
-        elCellLabel.innerHTML = sLabel;
-    }
-},
-
-/**
- * Disables DD from top-level Column TH elements.
- *
- * @method _destroyDraggableColumns
- * @private
- */
-_destroyDraggableColumns : function() {
-    var oColumn, elTh;
-    for(var i=0, len=this._oColumnSet.tree[0].length; i<len; i++) {
-        oColumn = this._oColumnSet.tree[0][i];
-        if(oColumn._dd) {
-            oColumn._dd = oColumn._dd.unreg();
-            Dom.removeClass(oColumn.getThEl(), DT.CLASS_DRAGGABLE);       
-        }
-    }
-},
-
-/**
- * Initializes top-level Column TH elements into DD instances.
- *
- * @method _initDraggableColumns
- * @private
- */
-_initDraggableColumns : function() {
-    this._destroyDraggableColumns();
-    if(util.DD) {
-        var oColumn, elTh, elDragTarget;
-        for(var i=0, len=this._oColumnSet.tree[0].length; i<len; i++) {
-            oColumn = this._oColumnSet.tree[0][i];
-            elTh = oColumn.getThEl();
-            Dom.addClass(elTh, DT.CLASS_DRAGGABLE);
-            elDragTarget = DT._initColumnDragTargetEl();
-            oColumn._dd = new YAHOO.widget.ColumnDD(this, oColumn, elTh, elDragTarget);
-        }
-    }
-    else {
-    }
-},
-
-/**
- * Disables resizeability on key Column TH elements.
- *
- * @method _destroyResizeableColumns
- * @private
- */
-_destroyResizeableColumns : function() {
-    var aKeys = this._oColumnSet.keys;
-    for(var i=0, len=aKeys.length; i<len; i++) {
-        if(aKeys[i]._ddResizer) {
-            aKeys[i]._ddResizer = aKeys[i]._ddResizer.unreg();
-            Dom.removeClass(aKeys[i].getThEl(), DT.CLASS_RESIZEABLE);
-        }
-    }
-},
-
-/**
- * Initializes resizeability on key Column TH elements.
- *
- * @method _initResizeableColumns
- * @private
- */
-_initResizeableColumns : function() {
-    this._destroyResizeableColumns();
-    if(util.DD) {
-        var oColumn, elTh, elThLiner, elThResizerLiner, elThResizer, elResizerProxy, cancelClick;
-        for(var i=0, len=this._oColumnSet.keys.length; i<len; i++) {
-            oColumn = this._oColumnSet.keys[i];
-            if(oColumn.resizeable) {
-                elTh = oColumn.getThEl();
-                Dom.addClass(elTh, DT.CLASS_RESIZEABLE);
-                elThLiner = oColumn.getThLinerEl();
-                
-                // Bug 1915349: So resizer is as tall as TH when rowspan > 1
-                // Create a separate resizer liner with position:relative
-                elThResizerLiner = elTh.appendChild(document.createElement("div"));
-                elThResizerLiner.className = DT.CLASS_RESIZERLINER;
-                
-                // Move TH contents into the new resizer liner
-                elThResizerLiner.appendChild(elThLiner);
-                
-                // Create the resizer
-                elThResizer = elThResizerLiner.appendChild(document.createElement("div"));
-                elThResizer.id = elTh.id + "-resizer"; // Needed for ColumnResizer
-                elThResizer.className = DT.CLASS_RESIZER;
-                oColumn._elResizer = elThResizer;
-
-                // Create the resizer proxy, once globally
-                elResizerProxy = DT._initColumnResizerProxyEl();
-                oColumn._ddResizer = new YAHOO.util.ColumnResizer(
-                        this, oColumn, elTh, elThResizer, elResizerProxy);
-                cancelClick = function(e) {
-                    Ev.stopPropagation(e);
-                };
-                Ev.addListener(elThResizer,"click",cancelClick);
-            }
-        }
-    }
-    else {
-    }
-},
-
-/**
- * Destroys elements associated with Column functionality: ColumnDD and ColumnResizers.
- *
- * @method _destroyColumnHelpers
- * @private
- */
-_destroyColumnHelpers : function() {
-    this._destroyDraggableColumns();
-    this._destroyResizeableColumns();
-},
-
-/**
- * Initializes elements associated with Column functionality: ColumnDD and ColumnResizers.
- *
- * @method _initColumnHelpers
- * @private
- */
-_initColumnHelpers : function() {
-    if(this.get("draggableColumns")) {
-        this._initDraggableColumns();
-    }
-    this._initResizeableColumns();
-},
-
-/**
- * Destroy's the DataTable TBODY element, if available.
- *
- * @method _destroyTbodyEl
- * @private
- */
-_destroyTbodyEl : function() {
-    var elTbody = this._elTbody;
-    if(elTbody) {
-        var elTable = elTbody.parentNode;
-        Ev.purgeElement(elTbody, true);
-        elTable.removeChild(elTbody);
-        this._elTbody = null;
-    }
-},
-
-/**
- * Initializes TBODY element for data.
- *
- * @method _initTbodyEl
- * @param elTable {HTMLElement} TABLE element into which to create TBODY .
- * @private
- */
-_initTbodyEl : function(elTable) {
-    if(elTable) {
-        // Destroy previous
-        this._destroyTbodyEl();
-        
-        // Create TBODY
-        var elTbody = elTable.appendChild(document.createElement("tbody"));
-        elTbody.tabIndex = 0;
-        elTbody.className = DT.CLASS_DATA;
-    
-        // Set up DOM events for TBODY
-        Ev.addListener(elTbody, "focus", this._onTbodyFocus, this);
-        Ev.addListener(elTbody, "mouseover", this._onTableMouseover, this);
-        Ev.addListener(elTbody, "mouseout", this._onTableMouseout, this);
-        Ev.addListener(elTbody, "mousedown", this._onTableMousedown, this);
-        Ev.addListener(elTbody, "mouseup", this._onTableMouseup, this);
-        Ev.addListener(elTbody, "keydown", this._onTbodyKeydown, this);
-        Ev.addListener(elTbody, "keypress", this._onTableKeypress, this);
-        Ev.addListener(elTbody, "click", this._onTbodyClick, this);
-        
-        // Since we can't listen for click and dblclick on the same element...
-        // Attach separately to THEAD and TBODY
-        ///Ev.addListener(elTbody, "dblclick", this._onTableDblclick, this);
-        
-    
-        // IE puts focus outline in the wrong place
-        if(ua.ie) {
-            elTbody.hideFocus=true;
-        }
-
-        this._elTbody = elTbody;
-    }
-},
-
-/**
- * Destroy's the DataTable message TBODY element, if available.
- *
- * @method _destroyMsgTbodyEl
- * @private
- */
-_destroyMsgTbodyEl : function() {
-    var elMsgTbody = this._elMsgTbody;
-    if(elMsgTbody) {
-        var elTable = elMsgTbody.parentNode;
-        Ev.purgeElement(elMsgTbody, true);
-        elTable.removeChild(elMsgTbody);
-        this._elTbody = null;
-    }
-},
-
-/**
- * Initializes TBODY element for messaging.
- *
- * @method _initMsgTbodyEl
- * @param elTable {HTMLElement} TABLE element into which to create TBODY 
- * @private
- */
-_initMsgTbodyEl : function(elTable) {
-    if(elTable) {
-        var elMsgTbody = document.createElement("tbody");
-        elMsgTbody.className = DT.CLASS_MESSAGE;
-        var elMsgTr = elMsgTbody.appendChild(document.createElement("tr"));
-        elMsgTr.className = DT.CLASS_FIRST + " " + DT.CLASS_LAST;
-        this._elMsgTr = elMsgTr;
-        var elMsgTd = elMsgTr.appendChild(document.createElement("td"));
-        elMsgTd.colSpan = this._oColumnSet.keys.length || 1;
-        elMsgTd.className = DT.CLASS_FIRST + " " + DT.CLASS_LAST;
-        this._elMsgTd = elMsgTd;
-        elMsgTbody = elTable.insertBefore(elMsgTbody, this._elTbody);
-        var elMsgLiner = elMsgTd.appendChild(document.createElement("div"));
-        elMsgLiner.className = DT.CLASS_LINER;
-        this._elMsgTbody = elMsgTbody;
-
-        // Set up DOM events for TBODY
-        Ev.addListener(elMsgTbody, "focus", this._onTbodyFocus, this);
-        Ev.addListener(elMsgTbody, "mouseover", this._onTableMouseover, this);
-        Ev.addListener(elMsgTbody, "mouseout", this._onTableMouseout, this);
-        Ev.addListener(elMsgTbody, "mousedown", this._onTableMousedown, this);
-        Ev.addListener(elMsgTbody, "mouseup", this._onTableMouseup, this);
-        Ev.addListener(elMsgTbody, "keydown", this._onTbodyKeydown, this);
-        Ev.addListener(elMsgTbody, "keypress", this._onTableKeypress, this);
-        Ev.addListener(elMsgTbody, "click", this._onTbodyClick, this);
-    }
-},
-
-/**
- * Initialize internal event listeners
- *
- * @method _initEvents
- * @private
- */
-_initEvents : function () {
-    // Initialize Column sort
-    this._initColumnSort();
-        
-    // Add the document level click listener
-    YAHOO.util.Event.addListener(document, "click", this._onDocumentClick, this);
-
-    // Paginator integration
-    this.subscribe("paginatorChange",function () {
-        this._handlePaginatorChange.apply(this,arguments);
-    });
-
-    this.subscribe("initEvent",function () {
-        this.renderPaginator();
-    });
-
-    // Initialize CellEditor integration
-    this._initCellEditing();
-},
-
-/**     
-  * Initializes Column sorting.         
-  *     
-  * @method _initColumnSort     
-  * @private    
-  */    
-_initColumnSort : function() {
-    this.subscribe("theadCellClickEvent", this.onEventSortColumn);      
-
-    // Backward compatibility
-    var oSortedBy = this.get("sortedBy");
-    if(oSortedBy) {
-        if(oSortedBy.dir == "desc") {
-            this._configs.sortedBy.value.dir = DT.CLASS_DESC;
-        }
-        else if(oSortedBy.dir == "asc") {
-            this._configs.sortedBy.value.dir = DT.CLASS_ASC;
-        }
-    }
-},
-
-/**     
-  * Initializes CellEditor integration.         
-  *     
-  * @method _initCellEditing    
-  * @private    
-  */    
-_initCellEditing : function() {
-    this.subscribe("editorBlurEvent",function () {
-        this.onEditorBlurEvent.apply(this,arguments);
-    });
-    this.subscribe("editorBlockEvent",function () {
-        this.onEditorBlockEvent.apply(this,arguments);
-    });
-    this.subscribe("editorUnblockEvent",function () {
-        this.onEditorUnblockEvent.apply(this,arguments);
-    });
-},
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-// DOM MUTATION FUNCTIONS
-
-/**
- * Retruns classnames to represent current Column states.
- * @method _getColumnClassnames 
- * @param oColumn {YAHOO.widget.Column} Column instance.
- * @param aAddClasses {String[]} An array of additional classnames to add to the
- * return value.  
- * @return {String} A String of classnames to be assigned to TH or TD elements
- * for given Column.  
- * @private 
- */
-_getColumnClassNames : function (oColumn, aAddClasses) {
-    var allClasses;
-    
-    // Add CSS classes
-    if(lang.isString(oColumn.className)) {
-        // Single custom class
-        allClasses = [oColumn.className];
-    }
-    else if(lang.isArray(oColumn.className)) {
-        // Array of custom classes
-        allClasses = oColumn.className;
-    }
-    else {
-        // no custom classes
-        allClasses = [];
-    }
-    
-    // Hook for setting width with via dynamic style uses key since ID is too disposable
-    allClasses[allClasses.length] = this.getId() + "-col-" +oColumn.getSanitizedKey();
-
-    // Column key - minus any chars other than "A-Z", "a-z", "0-9", "_", "-", ".", or ":"
-    allClasses[allClasses.length] = "yui-dt-col-" +oColumn.getSanitizedKey();
-
-    var isSortedBy = this.get("sortedBy") || {};
-    // Sorted
-    if(oColumn.key === isSortedBy.key) {
-        allClasses[allClasses.length] = isSortedBy.dir || '';
-    }
-    // Hidden
-    if(oColumn.hidden) {
-        allClasses[allClasses.length] = DT.CLASS_HIDDEN;
-    }
-    // Selected
-    if(oColumn.selected) {
-        allClasses[allClasses.length] = DT.CLASS_SELECTED;
-    }
-    // Sortable
-    if(oColumn.sortable) {
-        allClasses[allClasses.length] = DT.CLASS_SORTABLE;
-    }
-    // Resizeable
-    if(oColumn.resizeable) {
-        allClasses[allClasses.length] = DT.CLASS_RESIZEABLE;
-    }
-    // Editable
-    if(oColumn.editor) {
-        allClasses[allClasses.length] = DT.CLASS_EDITABLE;
-    }
-    
-    // Addtnl classes, including First/Last
-    if(aAddClasses) {
-        allClasses = allClasses.concat(aAddClasses);
-    }
-    
-    return allClasses.join(' ');  
-},
-
-/**
- * Clears TR element template in response to any Column state change.
- * @method _clearTrTemplateEl
- * @private 
- */
-_clearTrTemplateEl : function () {
-    this._elTrTemplate = null;
-},
-
-/**
- * Returns a new TR element template with TD elements classed with current
- * Column states.
- * @method _getTrTemplateEl 
- * @return {HTMLElement} A TR element to be cloned and added to the DOM.
- * @private 
- */
-_getTrTemplateEl : function (oRecord, index) {
-    // Template is already available
-    if(this._elTrTemplate) {
-        return this._elTrTemplate;
-    }
-    // Template needs to be created
-    else {
-        var d   = document,
-            tr  = d.createElement('tr'),
-            td  = d.createElement('td'),
-            div = d.createElement('div');
-    
-        // Append the liner element
-        td.appendChild(div);
-
-        // Create TD elements into DOCUMENT FRAGMENT
-        var df = document.createDocumentFragment(),
-            allKeys = this._oColumnSet.keys,
-            elTd;
-
-        // Set state for each TD;
-        var aAddClasses;
-        for(var i=0, keysLen=allKeys.length; i<keysLen; i++) {
-            // Clone the TD template
-            elTd = td.cloneNode(true);
-
-            // Format the base TD
-            elTd = this._formatTdEl(allKeys[i], elTd, i, (i===keysLen-1));
-                        
-            df.appendChild(elTd);
-        }
-        tr.appendChild(df);
-        this._elTrTemplate = tr;
-        return tr;
-    }   
-},
-
-/**
- * Formats a basic TD element.
- * @method _formatTdEl 
- * @param oColumn {YAHOO.widget.Column} Associated Column instance. 
- * @param elTd {HTMLElement} An unformatted TD element.
- * @param index {Number} Column key index. 
- * @param isLast {Boolean} True if Column is last key of the ColumnSet.
- * @return {HTMLElement} A formatted TD element.
- * @private 
- */
-_formatTdEl : function (oColumn, elTd, index, isLast) {
-    var oColumnSet = this._oColumnSet;
-    
-    // Set the TD's accessibility headers
-    var allHeaders = oColumnSet.headers,
-        allColHeaders = allHeaders[index],
-        sTdHeaders = "",
-        sHeader;
-    for(var j=0, headersLen=allColHeaders.length; j < headersLen; j++) {
-        sHeader = this._sId + "-th-" + allColHeaders[j] + ' ';
-        sTdHeaders += sHeader;
-    }
-    elTd.headers = sTdHeaders;
-    
-    // Class the TD element
-    var aAddClasses = [];
-    if(index === 0) {
-        aAddClasses[aAddClasses.length] = DT.CLASS_FIRST;
-    }
-    if(isLast) {
-        aAddClasses[aAddClasses.length] = DT.CLASS_LAST;
-    }
-    elTd.className = this._getColumnClassNames(oColumn, aAddClasses);
-
-    // Class the liner element
-    elTd.firstChild.className = DT.CLASS_LINER;
-
-    // Set Column width for fallback cases
-    if(oColumn.width && DT._bDynStylesFallback) {
-        // Validate minWidth
-        var nWidth = (oColumn.minWidth && (oColumn.width < oColumn.minWidth)) ?
-                oColumn.minWidth : oColumn.width;
-        elTd.firstChild.style.overflow = 'hidden';
-        elTd.firstChild.style.width = nWidth + 'px';
-    }
-    
-    return elTd;
-},
-
-
-/**
- * Create a new TR element for a given Record and appends it with the correct
- * number of Column-state-classed TD elements. Striping is the responsibility of
- * the calling function, which may decide to stripe the single row, a subset of
- * rows, or all the rows.
- * @method _createTrEl
- * @param oRecord {YAHOO.widget.Record} Record instance
- * @return {HTMLElement} The new TR element.  This must be added to the DOM.
- * @private 
- */
-_addTrEl : function (oRecord) {
-    var elTrTemplate = this._getTrTemplateEl();
-    
-    // Clone the TR template.
-    var elTr = elTrTemplate.cloneNode(true);
-    
-    // Populate content
-    return this._updateTrEl(elTr,oRecord);
-},
-
-/**
- * Formats the contents of the given TR's TD elements with data from the given
- * Record. Only innerHTML should change, nothing structural.
- *
- * @method _updateTrEl
- * @param elTr {HTMLElement} The TR element to update.
- * @param oRecord {YAHOO.widget.Record} The associated Record instance.
- * @return {HTMLElement} DOM reference to the new TR element.
- * @private
- */
-_updateTrEl : function(elTr, oRecord) {
-    var ok = this.get("formatRow") ? this.get("formatRow").call(this, elTr, oRecord) : true;
-    if(ok) {
-        // Hide the row to prevent constant reflows
-        elTr.style.display = 'none';
-        
-        // Update TD elements with new data
-        var allTds = elTr.childNodes,
-            elTd;
-        for(var i=0,len=allTds.length; i<len; ++i) {
-            elTd = allTds[i];
-            
-            // Set the cell content
-            this.formatCell(allTds[i].firstChild, oRecord, this._oColumnSet.keys[i]);
-        }
-        
-        // Redisplay the row for reflow
-        elTr.style.display = '';
-    }
-    
-    elTr.id = oRecord.getId(); // Needed for Record association and tracking of FIRST/LAST
-    return elTr;
-},
-
-
-/**
- * Deletes TR element by DOM reference or by DataTable page row index.
- *
- * @method _deleteTrEl
- * @param row {HTMLElement | Number} TR element reference or Datatable page row index.
- * @return {Boolean} Returns true if successful, else returns false.
- * @private
- */
-_deleteTrEl : function(row) {
-    var rowIndex;
-
-    // Get page row index for the element
-    if(!lang.isNumber(row)) {
-        rowIndex = Dom.get(row).sectionRowIndex;
-    }
-    else {
-        rowIndex = row;
-    }
-    if(lang.isNumber(rowIndex) && (rowIndex > -2) && (rowIndex < this._elTbody.rows.length)) {
-        // Cannot use tbody.deleteRow due to IE6 instability
-        //return this._elTbody.deleteRow(rowIndex);
-        return this._elTbody.removeChild(this.getTrEl(row));
-    }
-    else {
-        return null;
-    }
-},
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-// CSS/STATE FUNCTIONS
-
-
-
-
-/**
- * Removes the class YAHOO.widget.DataTable.CLASS_FIRST from the first TR element
- * of the DataTable page and updates internal tracker.
- *
- * @method _unsetFirstRow
- * @private
- */
-_unsetFirstRow : function() {
-    // Remove FIRST
-    if(this._sFirstTrId) {
-        Dom.removeClass(this._sFirstTrId, DT.CLASS_FIRST);
-        this._sFirstTrId = null;
-    }
-},
-
-/**
- * Assigns the class YAHOO.widget.DataTable.CLASS_FIRST to the first TR element
- * of the DataTable page and updates internal tracker.
- *
- * @method _setFirstRow
- * @private
- */
-_setFirstRow : function() {
-    this._unsetFirstRow();
-    var elTr = this.getFirstTrEl();
-    if(elTr) {
-        // Set FIRST
-        Dom.addClass(elTr, DT.CLASS_FIRST);
-        this._sFirstTrId = elTr.id;
-    }
-},
-
-/**
- * Removes the class YAHOO.widget.DataTable.CLASS_LAST from the last TR element
- * of the DataTable page and updates internal tracker.
- *
- * @method _unsetLastRow
- * @private
- */
-_unsetLastRow : function() {
-    // Unassign previous class
-    if(this._sLastTrId) {
-        Dom.removeClass(this._sLastTrId, DT.CLASS_LAST);
-        this._sLastTrId = null;
-    }   
-},
-
-/**
- * Assigns the class YAHOO.widget.DataTable.CLASS_LAST to the last TR element
- * of the DataTable page and updates internal tracker.
- *
- * @method _setLastRow
- * @private
- */
-_setLastRow : function() {
-    this._unsetLastRow();
-    var elTr = this.getLastTrEl();
-    if(elTr) {
-        // Assign class
-        Dom.addClass(elTr, DT.CLASS_LAST);
-        this._sLastTrId = elTr.id;
-    }
-},
-
-/**
- * Assigns the classes DT.CLASS_EVEN and DT.CLASS_ODD to one, many, or all TR elements.
- *
- * @method _setRowStripes
- * @param row {HTMLElement | String | Number} (optional) HTML TR element reference
- * or string ID, or page row index of where to start striping.
- * @param range {Number} (optional) If given, how many rows to stripe, otherwise
- * stripe all the rows until the end.
- * @private
- */
-_setRowStripes : function(row, range) {
-    // Default values stripe all rows
-    var allRows = this._elTbody.rows,
-        nStartIndex = 0,
-        nEndIndex = allRows.length,
-        aOdds = [], nOddIdx = 0,
-        aEvens = [], nEvenIdx = 0;
-
-    // Stripe a subset
-    if((row !== null) && (row !== undefined)) {
-        // Validate given start row
-        var elStartRow = this.getTrEl(row);
-        if(elStartRow) {
-            nStartIndex = elStartRow.sectionRowIndex;
-
-            // Validate given range
-            if(lang.isNumber(range) && (range > 1)) {
-                nEndIndex = nStartIndex + range;
-            }
-        }
-    }
-
-    for(var i=nStartIndex; i<nEndIndex; i++) {
-        if(i%2) {
-            aOdds[nOddIdx++] = allRows[i];
-        } else {
-            aEvens[nEvenIdx++] = allRows[i];
-        }
-    }
-
-    if (aOdds.length) {
-        Dom.replaceClass(aOdds, DT.CLASS_EVEN, DT.CLASS_ODD);
-    }
-
-    if (aEvens.length) {
-        Dom.replaceClass(aEvens, DT.CLASS_ODD, DT.CLASS_EVEN);
-    }
-},
-
-/**
- * Assigns the class DT.CLASS_SELECTED to TR and TD elements.
- *
- * @method _setSelections
- * @private
- */
-_setSelections : function() {
-    // Keep track of selected rows
-    var allSelectedRows = this.getSelectedRows();
-    // Keep track of selected cells
-    var allSelectedCells = this.getSelectedCells();
-    // Anything to select?
-    if((allSelectedRows.length>0) || (allSelectedCells.length > 0)) {
-        var oColumnSet = this._oColumnSet,
-            el;
-        // Loop over each row
-        for(var i=0; i<allSelectedRows.length; i++) {
-            el = Dom.get(allSelectedRows[i]);
-            if(el) {
-                Dom.addClass(el, DT.CLASS_SELECTED);
-            }
-        }
-        // Loop over each cell
-        for(i=0; i<allSelectedCells.length; i++) {
-            el = Dom.get(allSelectedCells[i].recordId);
-            if(el) {
-                Dom.addClass(el.childNodes[oColumnSet.getColumn(allSelectedCells[i].columnKey).getKeyIndex()], DT.CLASS_SELECTED);
-            }
-        }
-    }       
-},
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-/////////////////////////////////////////////////////////////////////////////
-//
-// Private DOM Event Handlers
-//
-/////////////////////////////////////////////////////////////////////////////
-
-/**
- * Validates minWidths whenever the render chain ends.
- *
- * @method _onRenderChainEnd
- * @private
- */
-_onRenderChainEnd : function() {
-    // Hide loading message
-    this.hideTableMessage();
-    
-    // Show empty message
-    if(this._elTbody.rows.length === 0) {
-        this.showTableMessage(this.get("MSG_EMPTY"), DT.CLASS_EMPTY);        
-    }
-
-    // Execute in timeout thread to give implementers a chance
-    // to subscribe after the constructor
-    var oSelf = this;
-    setTimeout(function() {
-        if((oSelf instanceof DT) && oSelf._sId) {        
-            // Init event
-            if(oSelf._bInit) {
-                oSelf._bInit = false;
-                oSelf.fireEvent("initEvent");
-            }
-    
-            // Render event
-            oSelf.fireEvent("renderEvent");
-            // Backward compatibility
-            oSelf.fireEvent("refreshEvent");
-    
-            // Post-render routine
-            oSelf.validateColumnWidths();
-    
-            // Post-render event
-            oSelf.fireEvent("postRenderEvent");
-            
-            /*if(YAHOO.example.Performance.trialStart) {
-                YAHOO.example.Performance.trialStart = null;
-            }*/
-            
-        }
-    }, 0);
-},
-
-/**
- * Handles click events on the DOCUMENT.
- *
- * @method _onDocumentClick
- * @param e {HTMLEvent} The click event.
- * @param oSelf {YAHOO.wiget.DataTable} DataTable instance.
- * @private
- */
-_onDocumentClick : function(e, oSelf) {
-    var elTarget = Ev.getTarget(e);
-    var elTag = elTarget.nodeName.toLowerCase();
-
-    if(!Dom.isAncestor(oSelf._elContainer, elTarget)) {
-        oSelf.fireEvent("tableBlurEvent");
-
-        // Fires editorBlurEvent when click is not within the TABLE.
-        // For cases when click is within the TABLE, due to timing issues,
-        // the editorBlurEvent needs to get fired by the lower-level DOM click
-        // handlers below rather than by the TABLE click handler directly.
-        if(oSelf._oCellEditor) {
-            if(oSelf._oCellEditor.getContainerEl) {
-                var elContainer = oSelf._oCellEditor.getContainerEl();
-                // Only if the click was not within the CellEditor container
-                if(!Dom.isAncestor(elContainer, elTarget) &&
-                        (elContainer.id !== elTarget.id)) {
-                    oSelf._oCellEditor.fireEvent("blurEvent", {editor: oSelf._oCellEditor});
-                }
-            }
-            // Backward Compatibility
-            else if(oSelf._oCellEditor.isActive) {
-                // Only if the click was not within the Cell Editor container
-                if(!Dom.isAncestor(oSelf._oCellEditor.container, elTarget) &&
-                        (oSelf._oCellEditor.container.id !== elTarget.id)) {
-                    oSelf.fireEvent("editorBlurEvent", {editor:oSelf._oCellEditor});
-                }
-            }
-        }
-    }
-},
-
-/**
- * Handles focus events on the DataTable instance.
- *
- * @method _onTableFocus
- * @param e {HTMLEvent} The focus event.
- * @param oSelf {YAHOO.wiget.DataTable} DataTable instance.
- * @private
- */
-_onTableFocus : function(e, oSelf) {
-    oSelf.fireEvent("tableFocusEvent");
-},
-
-/**
- * Handles focus events on the THEAD element.
- *
- * @method _onTheadFocus
- * @param e {HTMLEvent} The focus event.
- * @param oSelf {YAHOO.wiget.DataTable} DataTable instance.
- * @private
- */
-_onTheadFocus : function(e, oSelf) {
-    oSelf.fireEvent("theadFocusEvent");
-    oSelf.fireEvent("tableFocusEvent");
-},
-
-/**
- * Handles focus events on the TBODY element.
- *
- * @method _onTbodyFocus
- * @param e {HTMLEvent} The focus event.
- * @param oSelf {YAHOO.wiget.DataTable} DataTable instance.
- * @private
- */
-_onTbodyFocus : function(e, oSelf) {
-    oSelf.fireEvent("tbodyFocusEvent");
-    oSelf.fireEvent("tableFocusEvent");
-},
-
-/**
- * Handles mouseover events on the DataTable instance.
- *
- * @method _onTableMouseover
- * @param e {HTMLEvent} The mouseover event.
- * @param oSelf {YAHOO.wiget.DataTable} DataTable instance.
- * @private
- */
-_onTableMouseover : function(e, oSelf) {
-    var elTarget = Ev.getTarget(e);
-        var elTag = elTarget.nodeName.toLowerCase();
-        var bKeepBubbling = true;
-        while(elTarget && (elTag != "table")) {
-            switch(elTag) {
-                case "body":
-                     return;
-                case "a":
-                    break;
-                case "td":
-                    bKeepBubbling = oSelf.fireEvent("cellMouseoverEvent",{target:elTarget,event:e});
-                    break;
-                case "span":
-                    if(Dom.hasClass(elTarget, DT.CLASS_LABEL)) {
-                        bKeepBubbling = oSelf.fireEvent("theadLabelMouseoverEvent",{target:elTarget,event:e});
-                        // Backward compatibility
-                        bKeepBubbling = oSelf.fireEvent("headerLabelMouseoverEvent",{target:elTarget,event:e});
-                    }
-                    break;
-                case "th":
-                    bKeepBubbling = oSelf.fireEvent("theadCellMouseoverEvent",{target:elTarget,event:e});
-                    // Backward compatibility
-                    bKeepBubbling = oSelf.fireEvent("headerCellMouseoverEvent",{target:elTarget,event:e});
-                    break;
-                case "tr":
-                    if(elTarget.parentNode.nodeName.toLowerCase() == "thead") {
-                        bKeepBubbling = oSelf.fireEvent("theadRowMouseoverEvent",{target:elTarget,event:e});
-                        // Backward compatibility
-                        bKeepBubbling = oSelf.fireEvent("headerRowMouseoverEvent",{target:elTarget,event:e});
-                    }
-                    else {
-                        bKeepBubbling = oSelf.fireEvent("rowMouseoverEvent",{target:elTarget,event:e});
-                    }
-                    break;
-                default:
-                    break;
-            }
-            if(bKeepBubbling === false) {
-                return;
-            }
-            else {
-                elTarget = elTarget.parentNode;
-                if(elTarget) {
-                    elTag = elTarget.nodeName.toLowerCase();
-                }
-            }
-        }
-        oSelf.fireEvent("tableMouseoverEvent",{target:(elTarget || oSelf._elContainer),event:e});
-},
-
-/**
- * Handles mouseout events on the DataTable instance.
- *
- * @method _onTableMouseout
- * @param e {HTMLEvent} The mouseout event.
- * @param oSelf {YAHOO.wiget.DataTable} DataTable instance.
- * @private
- */
-_onTableMouseout : function(e, oSelf) {
-    var elTarget = Ev.getTarget(e);
-    var elTag = elTarget.nodeName.toLowerCase();
-    var bKeepBubbling = true;
-    while(elTarget && (elTag != "table")) {
-        switch(elTag) {
-            case "body":
-                return;
-            case "a":
-                break;
-            case "td":
-                bKeepBubbling = oSelf.fireEvent("cellMouseoutEvent",{target:elTarget,event:e});
-                break;
-            case "span":
-                if(Dom.hasClass(elTarget, DT.CLASS_LABEL)) {
-                    bKeepBubbling = oSelf.fireEvent("theadLabelMouseoutEvent",{target:elTarget,event:e});
-                    // Backward compatibility
-                    bKeepBubbling = oSelf.fireEvent("headerLabelMouseoutEvent",{target:elTarget,event:e});
-                }
-                break;
-            case "th":
-                bKeepBubbling = oSelf.fireEvent("theadCellMouseoutEvent",{target:elTarget,event:e});
-                // Backward compatibility
-                bKeepBubbling = oSelf.fireEvent("headerCellMouseoutEvent",{target:elTarget,event:e});
-                break;
-            case "tr":
-                if(elTarget.parentNode.nodeName.toLowerCase() == "thead") {
-                    bKeepBubbling = oSelf.fireEvent("theadRowMouseoutEvent",{target:elTarget,event:e});
-                    // Backward compatibility
-                    bKeepBubbling = oSelf.fireEvent("headerRowMouseoutEvent",{target:elTarget,event:e});
-                }
-                else {
-                    bKeepBubbling = oSelf.fireEvent("rowMouseoutEvent",{target:elTarget,event:e});
-                }
-                break;
-            default:
-                break;
-        }
-        if(bKeepBubbling === false) {
-            return;
-        }
-        else {
-            elTarget = elTarget.parentNode;
-            if(elTarget) {
-                elTag = elTarget.nodeName.toLowerCase();
-            }
-        }
-    }
-    oSelf.fireEvent("tableMouseoutEvent",{target:(elTarget || oSelf._elContainer),event:e});
-},
-
-/**
- * Handles mousedown events on the DataTable instance.
- *
- * @method _onTableMousedown
- * @param e {HTMLEvent} The mousedown event.
- * @param oSelf {YAHOO.wiget.DataTable} DataTable instance.
- * @private
- */
-_onTableMousedown : function(e, oSelf) {
-    var elTarget = Ev.getTarget(e);
-    var elTag = elTarget.nodeName.toLowerCase();
-    var bKeepBubbling = true;
-    while(elTarget && (elTag != "table")) {
-        switch(elTag) {
-            case "body":
-                return;
-            case "a":
-                break;
-            case "td":
-                bKeepBubbling = oSelf.fireEvent("cellMousedownEvent",{target:elTarget,event:e});
-                break;
-            case "span":
-                if(Dom.hasClass(elTarget, DT.CLASS_LABEL)) {
-                    bKeepBubbling = oSelf.fireEvent("theadLabelMousedownEvent",{target:elTarget,event:e});
-                    // Backward compatibility
-                    bKeepBubbling = oSelf.fireEvent("headerLabelMousedownEvent",{target:elTarget,event:e});
-                }
-                break;
-            case "th":
-                bKeepBubbling = oSelf.fireEvent("theadCellMousedownEvent",{target:elTarget,event:e});
-                // Backward compatibility
-                bKeepBubbling = oSelf.fireEvent("headerCellMousedownEvent",{target:elTarget,event:e});
-                break;
-            case "tr":
-                if(elTarget.parentNode.nodeName.toLowerCase() == "thead") {
-                    bKeepBubbling = oSelf.fireEvent("theadRowMousedownEvent",{target:elTarget,event:e});
-                    // Backward compatibility
-                    bKeepBubbling = oSelf.fireEvent("headerRowMousedownEvent",{target:elTarget,event:e});
-                }
-                else {
-                    bKeepBubbling = oSelf.fireEvent("rowMousedownEvent",{target:elTarget,event:e});
-                }
-                break;
-            default:
-                break;
-        }
-        if(bKeepBubbling === false) {
-            return;
-        }
-        else {
-            elTarget = elTarget.parentNode;
-            if(elTarget) {
-                elTag = elTarget.nodeName.toLowerCase();
-            }
-        }
-    }
-    oSelf.fireEvent("tableMousedownEvent",{target:(elTarget || oSelf._elContainer),event:e});
-},
-
-/**
- * Handles mouseup events on the DataTable instance.
- *
- * @method _onTableMouseup
- * @param e {HTMLEvent} The mouseup event.
- * @param oSelf {YAHOO.wiget.DataTable} DataTable instance.
- * @private
- */
-_onTableMouseup : function(e, oSelf) {
-    var elTarget = Ev.getTarget(e);
-    var elTag = elTarget.nodeName.toLowerCase();
-    var bKeepBubbling = true;
-    while(elTarget && (elTag != "table")) {
-        switch(elTag) {
-            case "body":
-                return;
-            case "a":
-                break;
-            case "td":
-                bKeepBubbling = oSelf.fireEvent("cellMouseupEvent",{target:elTarget,event:e});
-                break;
-            case "span":
-                if(Dom.hasClass(elTarget, DT.CLASS_LABEL)) {
-                    bKeepBubbling = oSelf.fireEvent("theadLabelMouseupEvent",{target:elTarget,event:e});
-                    // Backward compatibility
-                    bKeepBubbling = oSelf.fireEvent("headerLabelMouseupEvent",{target:elTarget,event:e});
-                }
-                break;
-            case "th":
-                bKeepBubbling = oSelf.fireEvent("theadCellMouseupEvent",{target:elTarget,event:e});
-                // Backward compatibility
-                bKeepBubbling = oSelf.fireEvent("headerCellMouseupEvent",{target:elTarget,event:e});
-                break;
-            case "tr":
-                if(elTarget.parentNode.nodeName.toLowerCase() == "thead") {
-                    bKeepBubbling = oSelf.fireEvent("theadRowMouseupEvent",{target:elTarget,event:e});
-                    // Backward compatibility
-                    bKeepBubbling = oSelf.fireEvent("headerRowMouseupEvent",{target:elTarget,event:e});
-                }
-                else {
-                    bKeepBubbling = oSelf.fireEvent("rowMouseupEvent",{target:elTarget,event:e});
-                }
-                break;
-            default:
-                break;
-        }
-        if(bKeepBubbling === false) {
-            return;
-        }
-        else {
-            elTarget = elTarget.parentNode;
-            if(elTarget) {
-                elTag = elTarget.nodeName.toLowerCase();
-            }
-        }
-    }
-    oSelf.fireEvent("tableMouseupEvent",{target:(elTarget || oSelf._elContainer),event:e});
-},
-
-/**
- * Handles dblclick events on the DataTable instance.
- *
- * @method _onTableDblclick
- * @param e {HTMLEvent} The dblclick event.
- * @param oSelf {YAHOO.wiget.DataTable} DataTable instance.
- * @private
- */
-_onTableDblclick : function(e, oSelf) {
-    var elTarget = Ev.getTarget(e);
-    var elTag = elTarget.nodeName.toLowerCase();
-    var bKeepBubbling = true;
-    while(elTarget && (elTag != "table")) {
-        switch(elTag) {
-            case "body":
-                return;
-            case "td":
-                bKeepBubbling = oSelf.fireEvent("cellDblclickEvent",{target:elTarget,event:e});
-                break;
-            case "span":
-                if(Dom.hasClass(elTarget, DT.CLASS_LABEL)) {
-                    bKeepBubbling = oSelf.fireEvent("theadLabelDblclickEvent",{target:elTarget,event:e});
-                    // Backward compatibility
-                    bKeepBubbling = oSelf.fireEvent("headerLabelDblclickEvent",{target:elTarget,event:e});
-                }
-                break;
-            case "th":
-                bKeepBubbling = oSelf.fireEvent("theadCellDblclickEvent",{target:elTarget,event:e});
-                // Backward compatibility
-                bKeepBubbling = oSelf.fireEvent("headerCellDblclickEvent",{target:elTarget,event:e});
-                break;
-            case "tr":
-                if(elTarget.parentNode.nodeName.toLowerCase() == "thead") {
-                    bKeepBubbling = oSelf.fireEvent("theadRowDblclickEvent",{target:elTarget,event:e});
-                    // Backward compatibility
-                    bKeepBubbling = oSelf.fireEvent("headerRowDblclickEvent",{target:elTarget,event:e});
-                }
-                else {
-                    bKeepBubbling = oSelf.fireEvent("rowDblclickEvent",{target:elTarget,event:e});
-                }
-                break;
-            default:
-                break;
-        }
-        if(bKeepBubbling === false) {
-            return;
-        }
-        else {
-            elTarget = elTarget.parentNode;
-            if(elTarget) {
-                elTag = elTarget.nodeName.toLowerCase();
-            }
-        }
-    }
-    oSelf.fireEvent("tableDblclickEvent",{target:(elTarget || oSelf._elContainer),event:e});
-},
-/**
- * Handles keydown events on the THEAD element.
- *
- * @method _onTheadKeydown
- * @param e {HTMLEvent} The key event.
- * @param oSelf {YAHOO.wiget.DataTable} DataTable instance.
- * @private
- */
-_onTheadKeydown : function(e, oSelf) {
-    var elTarget = Ev.getTarget(e);
-    var elTag = elTarget.nodeName.toLowerCase();
-    var bKeepBubbling = true;
-    while(elTarget && (elTag != "table")) {
-        switch(elTag) {
-            case "body":
-                return;
-            case "input":
-            case "textarea":
-                // TODO: implement textareaKeyEvent
-                break;
-            case "thead":
-                bKeepBubbling = oSelf.fireEvent("theadKeyEvent",{target:elTarget,event:e});
-                break;
-            default:
-                break;
-        }
-        if(bKeepBubbling === false) {
-            return;
-        }
-        else {
-            elTarget = elTarget.parentNode;
-            if(elTarget) {
-                elTag = elTarget.nodeName.toLowerCase();
-            }
-        }
-    }
-    oSelf.fireEvent("tableKeyEvent",{target:(elTarget || oSelf._elContainer),event:e});
-},
-
-/**
- * Handles keydown events on the TBODY element. Handles selection behavior,
- * provides hooks for ENTER to edit functionality.
- *
- * @method _onTbodyKeydown
- * @param e {HTMLEvent} The key event.
- * @param oSelf {YAHOO.wiget.DataTable} DataTable instance.
- * @private
- */
-_onTbodyKeydown : function(e, oSelf) {
-    var sMode = oSelf.get("selectionMode");
-
-    if(sMode == "standard") {
-        oSelf._handleStandardSelectionByKey(e);
-    }
-    else if(sMode == "single") {
-        oSelf._handleSingleSelectionByKey(e);
-    }
-    else if(sMode == "cellblock") {
-        oSelf._handleCellBlockSelectionByKey(e);
-    }
-    else if(sMode == "cellrange") {
-        oSelf._handleCellRangeSelectionByKey(e);
-    }
-    else if(sMode == "singlecell") {
-        oSelf._handleSingleCellSelectionByKey(e);
-    }
-    
-    if(oSelf._oCellEditor) {
-        if(oSelf._oCellEditor.fireEvent) {
-            oSelf._oCellEditor.fireEvent("blurEvent", {editor: oSelf._oCellEditor});
-        }
-        else if(oSelf._oCellEditor.isActive) {
-            oSelf.fireEvent("editorBlurEvent", {editor:oSelf._oCellEditor});
-        }
-    }
-
-    var elTarget = Ev.getTarget(e);
-    var elTag = elTarget.nodeName.toLowerCase();
-    var bKeepBubbling = true;
-    while(elTarget && (elTag != "table")) {
-        switch(elTag) {
-            case "body":
-                return;
-            case "tbody":
-                bKeepBubbling = oSelf.fireEvent("tbodyKeyEvent",{target:elTarget,event:e});
-                break;
-            default:
-                break;
-        }
-        if(bKeepBubbling === false) {
-            return;
-        }
-        else {
-            elTarget = elTarget.parentNode;
-            if(elTarget) {
-                elTag = elTarget.nodeName.toLowerCase();
-            }
-        }
-    }
-    oSelf.fireEvent("tableKeyEvent",{target:(elTarget || oSelf._elContainer),event:e});
-},
-
-/**
- * Handles keypress events on the TABLE. Mainly to support stopEvent on Mac.
- *
- * @method _onTableKeypress
- * @param e {HTMLEvent} The key event.
- * @param oSelf {YAHOO.wiget.DataTable} DataTable instance.
- * @private
- */
-_onTableKeypress : function(e, oSelf) {
-    if(ua.opera || (navigator.userAgent.toLowerCase().indexOf("mac") !== -1) && (ua.webkit < 420)) {
-        var nKey = Ev.getCharCode(e);
-        // arrow down
-        if(nKey == 40) {
-            Ev.stopEvent(e);
-        }
-        // arrow up
-        else if(nKey == 38) {
-            Ev.stopEvent(e);
-        }
-    }
-},
-
-/**
- * Handles click events on the THEAD element.
- *
- * @method _onTheadClick
- * @param e {HTMLEvent} The click event.
- * @param oSelf {YAHOO.wiget.DataTable} DataTable instance.
- * @private
- */
-_onTheadClick : function(e, oSelf) {
-    // This blurs the CellEditor
-    if(oSelf._oCellEditor) {
-        if(oSelf._oCellEditor.fireEvent) {
-            oSelf._oCellEditor.fireEvent("blurEvent", {editor: oSelf._oCellEditor});
-        }
-        // Backward compatibility
-        else if(oSelf._oCellEditor.isActive) {
-            oSelf.fireEvent("editorBlurEvent", {editor:oSelf._oCellEditor});
-        }
-    }
-
-    var elTarget = Ev.getTarget(e),
-        elTag = elTarget.nodeName.toLowerCase(),
-        bKeepBubbling = true;
-    while(elTarget && (elTag != "table")) {
-        switch(elTag) {
-            case "body":
-                return;
-            case "input":
-                var sType = elTarget.type.toLowerCase();
-                if(sType == "checkbox") {
-                    bKeepBubbling = oSelf.fireEvent("theadCheckboxClickEvent",{target:elTarget,event:e});
-                }
-                else if(sType == "radio") {
-                    bKeepBubbling = oSelf.fireEvent("theadRadioClickEvent",{target:elTarget,event:e});
-                }
-                else if((sType == "button") || (sType == "image") || (sType == "submit") || (sType == "reset")) {
-                    bKeepBubbling = oSelf.fireEvent("theadButtonClickEvent",{target:elTarget,event:e});
-                }
-                break;
-            case "a":
-                bKeepBubbling = oSelf.fireEvent("theadLinkClickEvent",{target:elTarget,event:e});
-                break;
-            case "button":
-                bKeepBubbling = oSelf.fireEvent("theadButtonClickEvent",{target:elTarget,event:e});
-                break;
-            case "span":
-                if(Dom.hasClass(elTarget, DT.CLASS_LABEL)) {
-                    bKeepBubbling = oSelf.fireEvent("theadLabelClickEvent",{target:elTarget,event:e});
-                    // Backward compatibility
-                    bKeepBubbling = oSelf.fireEvent("headerLabelClickEvent",{target:elTarget,event:e});
-                }
-                break;
-            case "th":
-                bKeepBubbling = oSelf.fireEvent("theadCellClickEvent",{target:elTarget,event:e});
-                // Backward compatibility
-                bKeepBubbling = oSelf.fireEvent("headerCellClickEvent",{target:elTarget,event:e});
-                break;
-            case "tr":
-                bKeepBubbling = oSelf.fireEvent("theadRowClickEvent",{target:elTarget,event:e});
-                // Backward compatibility
-                bKeepBubbling = oSelf.fireEvent("headerRowClickEvent",{target:elTarget,event:e});
-                break;
-            default:
-                break;
-        }
-        if(bKeepBubbling === false) {
-            return;
-        }
-        else {
-            elTarget = elTarget.parentNode;
-            if(elTarget) {
-                elTag = elTarget.nodeName.toLowerCase();
-            }
-        }
-    }
-    oSelf.fireEvent("tableClickEvent",{target:(elTarget || oSelf._elContainer),event:e});
-},
-
-/**
- * Handles click events on the primary TBODY element.
- *
- * @method _onTbodyClick
- * @param e {HTMLEvent} The click event.
- * @param oSelf {YAHOO.wiget.DataTable} DataTable instance.
- * @private
- */
-_onTbodyClick : function(e, oSelf) {
-    // This blurs the CellEditor
-    if(oSelf._oCellEditor) {
-        if(oSelf._oCellEditor.fireEvent) {
-            oSelf._oCellEditor.fireEvent("blurEvent", {editor: oSelf._oCellEditor});
-        }
-        else if(oSelf._oCellEditor.isActive) {
-            oSelf.fireEvent("editorBlurEvent", {editor:oSelf._oCellEditor});
-        }
-    }
-
-    // Fire Custom Events
-    var elTarget = Ev.getTarget(e),
-        elTag = elTarget.nodeName.toLowerCase(),
-        bKeepBubbling = true;
-    while(elTarget && (elTag != "table")) {
-        switch(elTag) {
-            case "body":
-                return;
-            case "input":
-                var sType = elTarget.type.toLowerCase();
-                if(sType == "checkbox") {
-                    bKeepBubbling = oSelf.fireEvent("checkboxClickEvent",{target:elTarget,event:e});
-                }
-                else if(sType == "radio") {
-                    bKeepBubbling = oSelf.fireEvent("radioClickEvent",{target:elTarget,event:e});
-                }
-                else if((sType == "button") || (sType == "image") || (sType == "submit") || (sType == "reset")) {
-                    bKeepBubbling = oSelf.fireEvent("buttonClickEvent",{target:elTarget,event:e});
-                }
-                break;
-            case "a":
-                bKeepBubbling = oSelf.fireEvent("linkClickEvent",{target:elTarget,event:e});
-                break;
-            case "button":
-                bKeepBubbling = oSelf.fireEvent("buttonClickEvent",{target:elTarget,event:e});
-                break;
-            case "td":
-                bKeepBubbling = oSelf.fireEvent("cellClickEvent",{target:elTarget,event:e});
-                break;
-            case "tr":
-                bKeepBubbling = oSelf.fireEvent("rowClickEvent",{target:elTarget,event:e});
-                break;
-            default:
-                break;
-        }
-        if(bKeepBubbling === false) {
-            return;
-        }
-        else {
-            elTarget = elTarget.parentNode;
-            if(elTarget) {
-                elTag = elTarget.nodeName.toLowerCase();
-            }
-        }
-    }
-    oSelf.fireEvent("tableClickEvent",{target:(elTarget || oSelf._elContainer),event:e});
-},
-
-/**
- * Handles change events on SELECT elements within DataTable.
- *
- * @method _onDropdownChange
- * @param e {HTMLEvent} The change event.
- * @param oSelf {YAHOO.wiget.DataTable} DataTable instance.
- * @private
- */
-_onDropdownChange : function(e, oSelf) {
-    var elTarget = Ev.getTarget(e);
-    oSelf.fireEvent("dropdownChangeEvent", {event:e, target:elTarget});
-},
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-/////////////////////////////////////////////////////////////////////////////
-//
-// Public member variables
-//
-/////////////////////////////////////////////////////////////////////////////
-/**
- * Returns object literal of initial configs.
- *
- * @property configs
- * @type Object
- * @default {} 
- */
-configs: null,
-
-
-/////////////////////////////////////////////////////////////////////////////
-//
-// Public methods
-//
-/////////////////////////////////////////////////////////////////////////////
-
-/**
- * Returns unique id assigned to instance, which is a useful prefix for
- * generating unique DOM ID strings.
- *
- * @method getId
- * @return {String} Unique ID of the DataSource instance.
- */
-getId : function() {
-    return this._sId;
-},
-
-/**
- * DataSource instance name, for logging.
- *
- * @method toString
- * @return {String} Unique name of the DataSource instance.
- */
-
-toString : function() {
-    return "DataTable instance " + this._sId;
-},
-
-/**
- * Returns the DataTable instance's DataSource instance.
- *
- * @method getDataSource
- * @return {YAHOO.util.DataSource} DataSource instance.
- */
-getDataSource : function() {
-    return this._oDataSource;
-},
-
-/**
- * Returns the DataTable instance's ColumnSet instance.
- *
- * @method getColumnSet
- * @return {YAHOO.widget.ColumnSet} ColumnSet instance.
- */
-getColumnSet : function() {
-    return this._oColumnSet;
-},
-
-/**
- * Returns the DataTable instance's RecordSet instance.
- *
- * @method getRecordSet
- * @return {YAHOO.widget.RecordSet} RecordSet instance.
- */
-getRecordSet : function() {
-    return this._oRecordSet;
-},
-
-/**
- * Returns on object literal representing the DataTable instance's current
- * state with the following properties:
- * <dl>
- * <dt>pagination</dt>
- * <dd>Instance of YAHOO.widget.Paginator</dd>
- *
- * <dt>sortedBy</dt>
- * <dd>
- *     <dl>
- *         <dt>sortedBy.key</dt>
- *         <dd>{String} Key of sorted Column</dd>
- *         <dt>sortedBy.dir</dt>
- *         <dd>{String} Initial sort direction, either YAHOO.widget.DataTable.CLASS_ASC or YAHOO.widget.DataTable.CLASS_DESC</dd>
- *     </dl>
- * </dd>
- *
- * <dt>selectedRows</dt>
- * <dd>Array of selected rows by Record ID.</dd>
- *
- * <dt>selectedCells</dt>
- * <dd>Selected cells as an array of object literals:
- *     {recordId:sRecordId, columnKey:sColumnKey}</dd>
- * </dl>
- *  
- * @method getState
- * @return {Object} DataTable instance state object literal values.
- */
-getState : function() {
-    return {
-        totalRecords: this.get('paginator') ? this.get('paginator').get("totalRecords") : this._oRecordSet.getLength(),
-        pagination: this.get("paginator") ? this.get("paginator").getState() : null,
-        sortedBy: this.get("sortedBy"),
-        selectedRows: this.getSelectedRows(),
-        selectedCells: this.getSelectedCells()
-    };
-},
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-// DOM ACCESSORS
-
-/**
- * Returns DOM reference to the DataTable's container element.
- *
- * @method getContainerEl
- * @return {HTMLElement} Reference to DIV element.
- */
-getContainerEl : function() {
-    return this._elContainer;
-},
-
-/**
- * Returns DOM reference to the DataTable's TABLE element.
- *
- * @method getTableEl
- * @return {HTMLElement} Reference to TABLE element.
- */
-getTableEl : function() {
-    return this._elTable;
-},
-
-/**
- * Returns DOM reference to the DataTable's THEAD element.
- *
- * @method getTheadEl
- * @return {HTMLElement} Reference to THEAD element.
- */
-getTheadEl : function() {
-    return this._elThead;
-},
-
-/**
- * Returns DOM reference to the DataTable's primary TBODY element.
- *
- * @method getTbodyEl
- * @return {HTMLElement} Reference to TBODY element.
- */
-getTbodyEl : function() {
-    return this._elTbody;
-},
-
-/**
- * Returns DOM reference to the DataTable's secondary TBODY element that is
- * used to display messages.
- *
- * @method getMsgTbodyEl
- * @return {HTMLElement} Reference to TBODY element.
- */
-getMsgTbodyEl : function() {
-    return this._elMsgTbody;
-},
-
-/**
- * Returns DOM reference to the TD element within the secondary TBODY that is
- * used to display messages.
- *
- * @method getMsgTdEl
- * @return {HTMLElement} Reference to TD element.
- */
-getMsgTdEl : function() {
-    return this._elMsgTd;
-},
-
-/**
- * Returns the corresponding TR reference for a given DOM element, ID string or
- * directly page row index. If the given identifier is a child of a TR element,
- * then DOM tree is traversed until a parent TR element is returned, otherwise
- * null.
- *
- * @method getTrEl
- * @param row {HTMLElement | String | Number | YAHOO.widget.Record} Which row to
- * get: by element reference, ID string, page row index, or Record.
- * @return {HTMLElement} Reference to TR element, or null.
- */
-getTrEl : function(row) {
-    // By Record
-    if(row instanceof YAHOO.widget.Record) {
-        return document.getElementById(row.getId());
-    }
-    // By page row index
-    else if(lang.isNumber(row)) {
-        var allRows = this._elTbody.rows;
-        return ((row > -1) && (row < allRows.length)) ? allRows[row] : null;
-    }
-    // By ID string or element reference
-    else {
-        var elRow = (lang.isString(row)) ? document.getElementById(row) : row;
-
-        // Validate HTML element
-        if(elRow && (elRow.ownerDocument == document)) {
-            // Validate TR element
-            if(elRow.nodeName.toLowerCase() != "tr") {
-                // Traverse up the DOM to find the corresponding TR element
-                elRow = Dom.getAncestorByTagName(elRow,"tr");
-            }
-
-            return elRow;
-        }
-    }
-
-    return null;
-},
-
-/**
- * Returns DOM reference to the first TR element in the DataTable page, or null.
- *
- * @method getFirstTrEl
- * @return {HTMLElement} Reference to TR element.
- */
-getFirstTrEl : function() {
-    return this._elTbody.rows[0] || null;
-},
-
-/**
- * Returns DOM reference to the last TR element in the DataTable page, or null.
- *
- * @method getLastTrEl
- * @return {HTMLElement} Reference to last TR element.
- */
-getLastTrEl : function() {
-    var allRows = this._elTbody.rows;
-        if(allRows.length > 0) {
-            return allRows[allRows.length-1] || null;
-        }
-},
-
-/**
- * Returns DOM reference to the next TR element from the given TR element, or null.
- *
- * @method getNextTrEl
- * @param row {HTMLElement | String | Number | YAHOO.widget.Record} Element
- * reference, ID string, page row index, or Record from which to get next TR element.
- * @return {HTMLElement} Reference to next TR element.
- */
-getNextTrEl : function(row) {
-    var nThisTrIndex = this.getTrIndex(row);
-    if(nThisTrIndex !== null) {
-        var allRows = this._elTbody.rows;
-        if(nThisTrIndex < allRows.length-1) {
-            return allRows[nThisTrIndex+1];
-        }
-    }
-
-    return null;
-},
-
-/**
- * Returns DOM reference to the previous TR element from the given TR element, or null.
- *
- * @method getPreviousTrEl
- * @param row {HTMLElement | String | Number | YAHOO.widget.Record} Element
- * reference, ID string, page row index, or Record from which to get previous TR element.
- * @return {HTMLElement} Reference to previous TR element.
- */
-getPreviousTrEl : function(row) {
-    var nThisTrIndex = this.getTrIndex(row);
-    if(nThisTrIndex !== null) {
-        var allRows = this._elTbody.rows;
-        if(nThisTrIndex > 0) {
-            return allRows[nThisTrIndex-1];
-        }
-    }
-
-    return null;
-},
-
-/**
- * Returns DOM reference to a TD liner element.
- *
- * @method getTdLinerEl
- * @param cell {HTMLElement | Object} TD element or child of a TD element, or
- * object literal of syntax {record:oRecord, column:oColumn}.
- * @return {HTMLElement} Reference to TD liner element.
- */
-getTdLinerEl : function(cell) {
-    var elCell = this.getTdEl(cell);
-    return elCell.firstChild || null;
-},
-
-/**
- * Returns DOM reference to a TD element.
- *
- * @method getTdEl
- * @param cell {HTMLElement | String | Object} TD element or child of a TD element, or
- * object literal of syntax {record:oRecord, column:oColumn}.
- * @return {HTMLElement} Reference to TD element.
- */
-getTdEl : function(cell) {
-    var elCell;
-    var el = Dom.get(cell);
-
-    // Validate HTML element
-    if(el && (el.ownerDocument == document)) {
-        // Validate TD element
-        if(el.nodeName.toLowerCase() != "td") {
-            // Traverse up the DOM to find the corresponding TR element
-            elCell = Dom.getAncestorByTagName(el, "td");
-        }
-        else {
-            elCell = el;
-        }
-        
-        // Make sure the TD is in this TBODY
-        // Bug 2527707 and bug 2263558
-        if(elCell && ((elCell.parentNode.parentNode == this._elTbody) || (elCell.parentNode.parentNode === null))) {
-            // Now we can return the TD element
-            return elCell;
-        }
-    }
-    else if(cell) {
-        var oRecord, nColKeyIndex;
-
-        if(lang.isString(cell.columnKey) && lang.isString(cell.recordId)) {
-            oRecord = this.getRecord(cell.recordId);
-            var oColumn = this.getColumn(cell.columnKey);
-            if(oColumn) {
-                nColKeyIndex = oColumn.getKeyIndex();
-            }
-
-        }
-        if(cell.record && cell.column && cell.column.getKeyIndex) {
-            oRecord = cell.record;
-            nColKeyIndex = cell.column.getKeyIndex();
-        }
-        var elRow = this.getTrEl(oRecord);
-        if((nColKeyIndex !== null) && elRow && elRow.cells && elRow.cells.length > 0) {
-            return elRow.cells[nColKeyIndex] || null;
-        }
-    }
-
-    return null;
-},
-
-/**
- * Returns DOM reference to the first TD element in the DataTable page (by default),
- * the first TD element of the optionally given row, or null.
- *
- * @method getFirstTdEl
- * @param row {HTMLElement} (optional) row from which to get first TD
- * @return {HTMLElement} Reference to TD element.
- */
-getFirstTdEl : function(row) {
-    var elRow = this.getTrEl(row) || this.getFirstTrEl();
-    if(elRow && (elRow.cells.length > 0)) {
-        return elRow.cells[0];
-    }
-    return null;
-},
-
-/**
- * Returns DOM reference to the last TD element in the DataTable page (by default),
- * the first TD element of the optionally given row, or null.
- *
- * @method getLastTdEl
- * @return {HTMLElement} Reference to last TD element.
- */
-getLastTdEl : function(row) {
-    var elRow = this.getTrEl(row) || this.getLastTrEl();
-    if(elRow && (elRow.cells.length > 0)) {
-        return elRow.cells[elRow.cells.length-1];
-    }
-    return null;
-},
-
-/**
- * Returns DOM reference to the next TD element from the given cell, or null.
- *
- * @method getNextTdEl
- * @param cell {HTMLElement | String | Object} DOM element reference or string ID, or
- * object literal of syntax {record:oRecord, column:oColumn} from which to get next TD element.
- * @return {HTMLElement} Reference to next TD element, or null.
- */
-getNextTdEl : function(cell) {
-    var elCell = this.getTdEl(cell);
-    if(elCell) {
-        var nThisTdIndex = elCell.cellIndex;
-        var elRow = this.getTrEl(elCell);
-        if(nThisTdIndex < elRow.cells.length-1) {
-            return elRow.cells[nThisTdIndex+1];
-        }
-        else {
-            var elNextRow = this.getNextTrEl(elRow);
-            if(elNextRow) {
-                return elNextRow.cells[0];
-            }
-        }
-    }
-    return null;
-},
-
-/**
- * Returns DOM reference to the previous TD element from the given cell, or null.
- *
- * @method getPreviousTdEl
- * @param cell {HTMLElement | String | Object} DOM element reference or string ID, or
- * object literal of syntax {record:oRecord, column:oColumn} from which to get previous TD element.
- * @return {HTMLElement} Reference to previous TD element, or null.
- */
-getPreviousTdEl : function(cell) {
-    var elCell = this.getTdEl(cell);
-    if(elCell) {
-        var nThisTdIndex = elCell.cellIndex;
-        var elRow = this.getTrEl(elCell);
-        if(nThisTdIndex > 0) {
-            return elRow.cells[nThisTdIndex-1];
-        }
-        else {
-            var elPreviousRow = this.getPreviousTrEl(elRow);
-            if(elPreviousRow) {
-                return this.getLastTdEl(elPreviousRow);
-            }
-        }
-    }
-    return null;
-},
-
-/**
- * Returns DOM reference to the above TD element from the given cell, or null.
- *
- * @method getAboveTdEl
- * @param cell {HTMLElement | String | Object} DOM element reference or string ID, or
- * object literal of syntax {record:oRecord, column:oColumn} from which to get next TD element.
- * @return {HTMLElement} Reference to next TD element, or null.
- */
-getAboveTdEl : function(cell) {
-    var elCell = this.getTdEl(cell);
-    if(elCell) {
-        var elPreviousRow = this.getPreviousTrEl(elCell);
-        if(elPreviousRow) {
-            return elPreviousRow.cells[elCell.cellIndex];
-        }
-    }
-    return null;
-},
-
-/**
- * Returns DOM reference to the below TD element from the given cell, or null.
- *
- * @method getBelowTdEl
- * @param cell {HTMLElement | String | Object} DOM element reference or string ID, or
- * object literal of syntax {record:oRecord, column:oColumn} from which to get previous TD element.
- * @return {HTMLElement} Reference to previous TD element, or null.
- */
-getBelowTdEl : function(cell) {
-    var elCell = this.getTdEl(cell);
-    if(elCell) {
-        var elNextRow = this.getNextTrEl(elCell);
-        if(elNextRow) {
-            return elNextRow.cells[elCell.cellIndex];
-        }
-    }
-    return null;
-},
-
-/**
- * Returns DOM reference to a TH liner element. Needed to normalize for resizeable 
- * Columns, which have an additional resizer liner DIV element between the TH
- * element and the liner DIV element. 
- *
- * @method getThLinerEl
- * @param theadCell {YAHOO.widget.Column | HTMLElement | String} Column instance,
- * DOM element reference, or string ID.
- * @return {HTMLElement} Reference to TH liner element.
- */
-getThLinerEl : function(theadCell) {
-    var oColumn = this.getColumn(theadCell);
-    return (oColumn) ? oColumn.getThLinerEl() : null;
-},
-
-/**
- * Returns DOM reference to a TH element.
- *
- * @method getThEl
- * @param theadCell {YAHOO.widget.Column | HTMLElement | String} Column instance,
- * DOM element reference, or string ID.
- * @return {HTMLElement} Reference to TH element.
- */
-getThEl : function(theadCell) {
-    var elTh;
-
-    // Validate Column instance
-    if(theadCell instanceof YAHOO.widget.Column) {
-        var oColumn = theadCell;
-        elTh = oColumn.getThEl();
-        if(elTh) {
-            return elTh;
-        }
-    }
-    // Validate HTML element
-    else {
-        var el = Dom.get(theadCell);
-
-        if(el && (el.ownerDocument == document)) {
-            // Validate TH element
-            if(el.nodeName.toLowerCase() != "th") {
-                // Traverse up the DOM to find the corresponding TR element
-                elTh = Dom.getAncestorByTagName(el,"th");
-            }
-            else {
-                elTh = el;
-            }
-
-            return elTh;
-        }
-    }
-
-    return null;
-},
-
-/**
- * Returns the page row index of given row. Returns null if the row is not on the
- * current DataTable page.
- *
- * @method getTrIndex
- * @param row {HTMLElement | String | YAHOO.widget.Record | Number} DOM or ID
- * string reference to an element within the DataTable page, a Record instance,
- * or a Record's RecordSet index.
- * @return {Number} Page row index, or null if row does not exist or is not on current page.
- */
-getTrIndex : function(row) {
-    var nRecordIndex;
-
-    // By Record
-    if(row instanceof YAHOO.widget.Record) {
-        nRecordIndex = this._oRecordSet.getRecordIndex(row);
-        if(nRecordIndex === null) {
-            // Not a valid Record
-            return null;
-        }
-    }
-    // Calculate page row index from Record index
-    else if(lang.isNumber(row)) {
-        nRecordIndex = row;
-    }
-    if(lang.isNumber(nRecordIndex)) {
-        // Validate the number
-        if((nRecordIndex > -1) && (nRecordIndex < this._oRecordSet.getLength())) {
-            // DataTable is paginated
-            var oPaginator = this.get('paginator');
-            if(oPaginator) {
-                // Check the record index is within the indices of the
-                // current page
-                var rng = oPaginator.getPageRecords();
-                if (rng && nRecordIndex >= rng[0] && nRecordIndex <= rng[1]) {
-                    // This Record is on current page
-                    return nRecordIndex - rng[0];
-                }
-                // This Record is not on current page
-                else {
-                    return null;
-                }
-            }
-            // Not paginated, just return the Record index
-            else {
-                return nRecordIndex;
-            }
-        }
-        // RecordSet index is out of range
-        else {
-            return null;
-        }
-    }
-    // By element reference or ID string
-    else {
-        // Validate TR element
-        var elRow = this.getTrEl(row);
-        if(elRow && (elRow.ownerDocument == document) &&
-                (elRow.parentNode == this._elTbody)) {
-            return elRow.sectionRowIndex;
-        }
-    }
-
-    return null;
-},
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-// TABLE FUNCTIONS
-
-/**
- * Resets a RecordSet with the given data and populates the page view
- * with the new data. Any previous data, and selection and sort states are
- * cleared. New data should be added as a separate step. 
- *
- * @method initializeTable
- */
-initializeTable : function() {
-    // Reset init flag
-    this._bInit = true;
-    
-    // Clear the RecordSet
-    this._oRecordSet.reset();
-
-    // Clear the Paginator's totalRecords if paginating
-    var pag = this.get('paginator');
-    if (pag) {
-        pag.set('totalRecords',0);
-    }
-
-    // Clear selections
-    this._unselectAllTrEls();
-    this._unselectAllTdEls();
-    this._aSelections = null;
-    this._oAnchorRecord = null;
-    this._oAnchorCell = null;
-    
-    // Clear sort
-    this.set("sortedBy", null);
-},
-
-/**
- * Internal wrapper calls run() on render Chain instance.
- *
- * @method _runRenderChain
- * @private 
- */
-_runRenderChain : function() {
-    this._oChainRender.run();
-},
-
-/**
- * Renders the view with existing Records from the RecordSet while
- * maintaining sort, pagination, and selection states. For performance, reuses
- * existing DOM elements when possible while deleting extraneous elements.
- *
- * @method render
- */
-render : function() {
-//YAHOO.example.Performance.trialStart = new Date();
-
-    this._oChainRender.stop();
-
-    this.fireEvent("beforeRenderEvent");
-
-    var i, j, k, len, allRecords;
-
-    var oPaginator = this.get('paginator');
-    // Paginator is enabled, show a subset of Records and update Paginator UI
-    if(oPaginator) {
-        allRecords = this._oRecordSet.getRecords(
-                        oPaginator.getStartIndex(),
-                        oPaginator.getRowsPerPage());
-    }
-    // Not paginated, show all records
-    else {
-        allRecords = this._oRecordSet.getRecords();
-    }
-
-    // From the top, update in-place existing rows, so as to reuse DOM elements
-    var elTbody = this._elTbody,
-        loopN = this.get("renderLoopSize"),
-        nRecordsLength = allRecords.length;
-    
-    // Table has rows
-    if(nRecordsLength > 0) {                
-        elTbody.style.display = "none";
-        while(elTbody.lastChild) {
-            elTbody.removeChild(elTbody.lastChild);
-        }
-        elTbody.style.display = "";
-
-        // Set up the loop Chain to render rows
-        this._oChainRender.add({
-            method: function(oArg) {
-                if((this instanceof DT) && this._sId) {
-                    var i = oArg.nCurrentRecord,
-                        endRecordIndex = ((oArg.nCurrentRecord+oArg.nLoopLength) > nRecordsLength) ?
-                                nRecordsLength : (oArg.nCurrentRecord+oArg.nLoopLength),
-                        elRow, nextSibling;
-
-                    elTbody.style.display = "none";
-                    
-                    for(; i<endRecordIndex; i++) {
-                        elRow = Dom.get(allRecords[i].getId());
-                        elRow = elRow || this._addTrEl(allRecords[i]);
-                        nextSibling = elTbody.childNodes[i] || null;
-                        elTbody.insertBefore(elRow, nextSibling);
-                    }
-                    elTbody.style.display = "";
-                    
-                    // Set up for the next loop
-                    oArg.nCurrentRecord = i;
-                }
-            },
-            scope: this,
-            iterations: (loopN > 0) ? Math.ceil(nRecordsLength/loopN) : 1,
-            argument: {
-                nCurrentRecord: 0,//nRecordsLength-1,  // Start at first Record
-                nLoopLength: (loopN > 0) ? loopN : nRecordsLength
-            },
-            timeout: (loopN > 0) ? 0 : -1
-        });
-        
-        // Post-render tasks
-        this._oChainRender.add({
-            method: function(oArg) {
-                if((this instanceof DT) && this._sId) {
-                    while(elTbody.rows.length > nRecordsLength) {
-                        elTbody.removeChild(elTbody.lastChild);
-                    }
-                    this._setFirstRow();
-                    this._setLastRow();
-                    this._setRowStripes();
-                    this._setSelections();
-                }
-            },
-            scope: this,
-            timeout: (loopN > 0) ? 0 : -1
-        });
-     
-    }
-    // Table has no rows
-    else {
-        // Set up the loop Chain to delete rows
-        var nTotal = elTbody.rows.length;
-        if(nTotal > 0) {
-            this._oChainRender.add({
-                method: function(oArg) {
-                    if((this instanceof DT) && this._sId) {
-                        var i = oArg.nCurrent,
-                            loopN = oArg.nLoopLength,
-                            nIterEnd = (i - loopN < 0) ? -1 : i - loopN;
-    
-                        elTbody.style.display = "none";
-                        
-                        for(; i>nIterEnd; i--) {
-                            elTbody.deleteRow(-1);
-                        }
-                        elTbody.style.display = "";
-                        
-                        // Set up for the next loop
-                        oArg.nCurrent = i;
-                    }
-                },
-                scope: this,
-                iterations: (loopN > 0) ? Math.ceil(nTotal/loopN) : 1,
-                argument: {
-                    nCurrent: nTotal, 
-                    nLoopLength: (loopN > 0) ? loopN : nTotal
-                },
-                timeout: (loopN > 0) ? 0 : -1
-            });
-        }
-    }
-    this._runRenderChain();
-},
-
-/**
- * Disables DataTable UI.
- *
- * @method disable
- */
-disable : function() {
-    var elTable = this._elTable;
-    var elMask = this._elMask;
-    elMask.style.width = elTable.offsetWidth + "px";
-    elMask.style.height = elTable.offsetHeight + "px";
-    elMask.style.display = "";
-    this.fireEvent("disableEvent");
-},
-
-/**
- * Undisables DataTable UI.
- *
- * @method undisable
- */
-undisable : function() {
-    this._elMask.style.display = "none";
-    this.fireEvent("undisableEvent");
-},
-
-/**
- * Nulls out the entire DataTable instance and related objects, removes attached
- * event listeners, and clears out DOM elements inside the container. After
- * calling this method, the instance reference should be expliclitly nulled by
- * implementer, as in myDataTable = null. Use with caution!
- *
- * @method destroy
- */
-destroy : function() {
-    // Store for later
-    var instanceName = this.toString();
-
-    this._oChainRender.stop();
-    
-    // Destroy static resizer proxy and column proxy
-    DT._destroyColumnDragTargetEl();
-    DT._destroyColumnResizerProxyEl();
-    
-    // Destroy ColumnDD and ColumnResizers
-    this._destroyColumnHelpers();
-    
-    // Destroy all CellEditors
-    var oCellEditor;
-    for(var i=0, len=this._oColumnSet.flat.length; i<len; i++) {
-        oCellEditor = this._oColumnSet.flat[i].editor;
-        if(oCellEditor && oCellEditor.destroy) {
-            oCellEditor.destroy();
-            this._oColumnSet.flat[i].editor = null;
-        }
-    }
-
-    // Destroy Paginator
-    this._destroyPaginator();
-
-    // Unhook custom events
-    this._oRecordSet.unsubscribeAll();
-    this.unsubscribeAll();
-
-    // Unhook DOM events
-    Ev.removeListener(document, "click", this._onDocumentClick);
-    
-    // Clear out the container
-    this._destroyContainerEl(this._elContainer);
-
-    // Null out objects
-    for(var param in this) {
-        if(lang.hasOwnProperty(this, param)) {
-            this[param] = null;
-        }
-    }
-    
-    // Clean up static values
-    DT._nCurrentCount--;
-    
-    if(DT._nCurrentCount < 1) {
-        if(DT._elDynStyleNode) {
-            document.getElementsByTagName('head')[0].removeChild(DT._elDynStyleNode);
-            DT._elDynStyleNode = null;
-        }
-    }
-
-},
-
-/**
- * Displays message within secondary TBODY.
- *
- * @method showTableMessage
- * @param sHTML {String} (optional) Value for innerHTMlang.
- * @param sClassName {String} (optional) Classname.
- */
-showTableMessage : function(sHTML, sClassName) {
-    var elCell = this._elMsgTd;
-    if(lang.isString(sHTML)) {
-        elCell.firstChild.innerHTML = sHTML;
-    }
-    if(lang.isString(sClassName)) {
-        elCell.className = sClassName;
-    }
-
-    this._elMsgTbody.style.display = "";
-
-    this.fireEvent("tableMsgShowEvent", {html:sHTML, className:sClassName});
-},
-
-/**
- * Hides secondary TBODY.
- *
- * @method hideTableMessage
- */
-hideTableMessage : function() {
-    if(this._elMsgTbody.style.display != "none") {
-        this._elMsgTbody.style.display = "none";
-        this._elMsgTbody.parentNode.style.width = "";
-        this.fireEvent("tableMsgHideEvent");
-    }
-},
-
-/**
- * Brings focus to the TBODY element. Alias to focusTbodyEl.
- *
- * @method focus
- */
-focus : function() {
-    this.focusTbodyEl();
-},
-
-/**
- * Brings focus to the THEAD element.
- *
- * @method focusTheadEl
- */
-focusTheadEl : function() {
-    this._focusEl(this._elThead);
-},
-
-/**
- * Brings focus to the TBODY element.
- *
- * @method focusTbodyEl
- */
-focusTbodyEl : function() {
-    this._focusEl(this._elTbody);
-},
-
-/**
- * Setting display:none on DataTable or any parent may impact width validations.
- * After setting display back to "", implementers should call this method to 
- * manually perform those validations.
- *
- * @method onShow
- */
-onShow : function() {
-    this.validateColumnWidths();
-    
-    for(var allKeys = this._oColumnSet.keys, i=0, len=allKeys.length, col; i<len; i++) {
-        col = allKeys[i];
-        if(col._ddResizer) {
-            col._ddResizer.resetResizerEl();
-        }
-    }
-},
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-// RECORDSET FUNCTIONS
-
-/**
- * Returns Record index for given TR element or page row index.
- *
- * @method getRecordIndex
- * @param row {YAHOO.widget.Record | HTMLElement | Number} Record instance, TR
- * element reference or page row index.
- * @return {Number} Record's RecordSet index, or null.
- */
-getRecordIndex : function(row) {
-    var nTrIndex;
-
-    if(!lang.isNumber(row)) {
-        // By Record
-        if(row instanceof YAHOO.widget.Record) {
-            return this._oRecordSet.getRecordIndex(row);
-        }
-        // By element reference
-        else {
-            // Find the TR element
-            var el = this.getTrEl(row);
-            if(el) {
-                nTrIndex = el.sectionRowIndex;
-            }
-        }
-    }
-    // By page row index
-    else {
-        nTrIndex = row;
-    }
-
-    if(lang.isNumber(nTrIndex)) {
-        var oPaginator = this.get("paginator");
-        if(oPaginator) {
-            return oPaginator.get('recordOffset') + nTrIndex;
-        }
-        else {
-            return nTrIndex;
-        }
-    }
-
-    return null;
-},
-
-/**
- * For the given identifier, returns the associated Record instance.
- *
- * @method getRecord
- * @param row {HTMLElement | Number | String} DOM reference to a TR element (or
- * child of a TR element), RecordSet position index, or Record ID.
- * @return {YAHOO.widget.Record} Record instance.
- */
-getRecord : function(row) {
-    var oRecord = this._oRecordSet.getRecord(row);
-
-    if(!oRecord) {
-        // Validate TR element
-        var elRow = this.getTrEl(row);
-        if(elRow) {
-            oRecord = this._oRecordSet.getRecord(elRow.id);
-        }
-    }
-
-    if(oRecord instanceof YAHOO.widget.Record) {
-        return this._oRecordSet.getRecord(oRecord);
-    }
-    else {
-        return null;
-    }
-},
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-// COLUMN FUNCTIONS
-
-/**
- * For the given identifier, returns the associated Column instance. Note: For
- * getting Columns by Column ID string, please use the method getColumnById().
- *
- * @method getColumn
- * @param column {HTMLElement | String | Number} TH/TD element (or child of a
- * TH/TD element), a Column key, or a ColumnSet key index.
- * @return {YAHOO.widget.Column} Column instance.
- */
-getColumn : function(column) {
-    var oColumn = this._oColumnSet.getColumn(column);
-
-    if(!oColumn) {
-        // Validate TD element
-        var elCell = this.getTdEl(column);
-        if(elCell) {
-            oColumn = this._oColumnSet.getColumn(elCell.cellIndex);
-        }
-        // Validate TH element
-        else {
-            elCell = this.getThEl(column);
-            if(elCell) {
-                // Find by TH el ID
-                var allColumns = this._oColumnSet.flat;
-                for(var i=0, len=allColumns.length; i<len; i++) {
-                    if(allColumns[i].getThEl().id === elCell.id) {
-                        oColumn = allColumns[i];
-                    } 
-                }
-            }
-        }
-    }
-    if(!oColumn) {
-    }
-    return oColumn;
-},
-
-/**
- * For the given Column ID, returns the associated Column instance. Note: For
- * getting Columns by key, please use the method getColumn().
- *
- * @method getColumnById
- * @param column {String} Column ID string.
- * @return {YAHOO.widget.Column} Column instance.
- */
-getColumnById : function(column) {
-    return this._oColumnSet.getColumnById(column);
-},
-
-/**
- * For the given Column instance, returns next direction to sort.
- *
- * @method getColumnSortDir
- * @param oColumn {YAHOO.widget.Column} Column instance.
- * @param oSortedBy {Object} (optional) Specify the state, or use current state. 
- * @return {String} YAHOO.widget.DataTable.CLASS_ASC or YAHOO.widget.DataTableCLASS_DESC.
- */
-getColumnSortDir : function(oColumn, oSortedBy) {
-    // Backward compatibility
-    if(oColumn.sortOptions && oColumn.sortOptions.defaultOrder) {
-        if(oColumn.sortOptions.defaultOrder == "asc") {
-            oColumn.sortOptions.defaultDir = DT.CLASS_ASC;
-        }
-        else if (oColumn.sortOptions.defaultOrder == "desc") {
-            oColumn.sortOptions.defaultDir = DT.CLASS_DESC;
-        }
-    }
-    
-    // What is the Column's default sort direction?
-    var sortDir = (oColumn.sortOptions && oColumn.sortOptions.defaultDir) ? oColumn.sortOptions.defaultDir : DT.CLASS_ASC;
-
-    // Is the Column currently sorted?
-    var bSorted = false;
-    oSortedBy = oSortedBy || this.get("sortedBy");
-    if(oSortedBy && (oSortedBy.key === oColumn.key)) {
-        bSorted = true;
-        if(oSortedBy.dir) {
-            sortDir = (oSortedBy.dir === DT.CLASS_ASC) ? DT.CLASS_DESC : DT.CLASS_ASC;
-        }
-        else {
-            sortDir = (sortDir === DT.CLASS_ASC) ? DT.CLASS_DESC : DT.CLASS_ASC;
-        }
-    }
-    return sortDir;
-},
-
-/**
- * Overridable method gives implementers a hook to show loading message before
- * sorting Column.
- *
- * @method doBeforeSortColumn
- * @param oColumn {YAHOO.widget.Column} Column instance.
- * @param sSortDir {String} YAHOO.widget.DataTable.CLASS_ASC or
- * YAHOO.widget.DataTable.CLASS_DESC.
- * @return {Boolean} Return true to continue sorting Column.
- */
-doBeforeSortColumn : function(oColumn, sSortDir) {
-    this.showTableMessage(this.get("MSG_LOADING"), DT.CLASS_LOADING);
-    return true;
-},
-
-/**
- * Sorts given Column. If "dynamicData" is true, current selections are purged before
- * a request is sent to the DataSource for data for the new state (using the
- * request returned by "generateRequest()").
- *
- * @method sortColumn
- * @param oColumn {YAHOO.widget.Column} Column instance.
- * @param sDir {String} (Optional) YAHOO.widget.DataTable.CLASS_ASC or
- * YAHOO.widget.DataTable.CLASS_DESC
- */
-sortColumn : function(oColumn, sDir) {
-    if(oColumn && (oColumn instanceof YAHOO.widget.Column)) {
-        if(!oColumn.sortable) {
-            Dom.addClass(this.getThEl(oColumn), DT.CLASS_SORTABLE);
-        }
-        
-        // Validate given direction
-        if(sDir && (sDir !== DT.CLASS_ASC) && (sDir !== DT.CLASS_DESC)) {
-            sDir = null;
-        }
-        
-        // Get the sort dir
-        var sSortDir = sDir || this.getColumnSortDir(oColumn);
-
-        // Is the Column currently sorted?
-        var oSortedBy = this.get("sortedBy") || {};
-        var bSorted = (oSortedBy.key === oColumn.key) ? true : false;
-
-        var ok = this.doBeforeSortColumn(oColumn, sSortDir);
-        if(ok) {
-            // Server-side sort
-            if(this.get("dynamicData")) {
-                // Get current state
-                var oState = this.getState();
-                
-                // Reset record offset, if paginated
-                if(oState.pagination) {
-                    oState.pagination.recordOffset = 0;
-                }
-                
-                // Update sortedBy to new values
-                oState.sortedBy = {
-                    key: oColumn.key,
-                    dir: sSortDir
-                };
-                
-                // Get the request for the new state
-                var request = this.get("generateRequest")(oState, this);
-
-                // Purge selections
-                this.unselectAllRows();
-                this.unselectAllCells();
-
-                // Send request for new data
-                var callback = {
-                    success : this.onDataReturnSetRows,
-                    failure : this.onDataReturnSetRows,
-                    argument : oState, // Pass along the new state to the callback
-                    scope : this
-                };
-                this._oDataSource.sendRequest(request, callback);            
-            }
-            // Client-side sort
-            else {
-                // Is there a custom sort handler function defined?
-                var sortFnc = (oColumn.sortOptions && lang.isFunction(oColumn.sortOptions.sortFunction)) ?
-                        // Custom sort function
-                        oColumn.sortOptions.sortFunction : null;
-                   
-                // Sort the Records
-                if(!bSorted || sDir || sortFnc) {
-                    // Shortcut for the frequently-used compare method
-                    var compare = YAHOO.util.Sort.compare;
-
-                    // Default sort function if necessary
-                    sortFnc = sortFnc || 
-                        function(a, b, desc, field) {
-                            var sorted = compare(a.getData(field),b.getData(field), desc);
-                            if(sorted === 0) {
-                                return compare(a.getCount(),b.getCount(), desc); // Bug 1932978
-                            }
-                            else {
-                                return sorted;
-                            }
-                        };
-
-                    // Get the field to sort
-                    var sField = (oColumn.sortOptions && oColumn.sortOptions.field) ? oColumn.sortOptions.field : oColumn.field;
-
-                    // Sort the Records        
-                    this._oRecordSet.sortRecords(sortFnc, ((sSortDir == DT.CLASS_DESC) ? true : false), sField);
-                }
-                // Just reverse the Records
-                else {
-                    this._oRecordSet.reverseRecords();
-                }
-        
-                // Reset to first page if paginated
-                var oPaginator = this.get('paginator');
-                if (oPaginator) {
-                    // Set page silently, so as not to fire change event.
-                    oPaginator.setPage(1,true);
-                }
-        
-                // Update UI via sortedBy
-                this.render();
-                this.set("sortedBy", {key:oColumn.key, dir:sSortDir, column:oColumn}); 
-            }       
-            
-            this.fireEvent("columnSortEvent",{column:oColumn,dir:sSortDir});
-            return;
-        }
-    }
-},
-
-/**
- * Sets given Column to given pixel width. If new width is less than minimum
- * width, sets to minimum width. Updates oColumn.width value.
- *
- * @method setColumnWidth
- * @param oColumn {YAHOO.widget.Column} Column instance.
- * @param nWidth {Number} New width in pixels. A null value auto-sizes Column,
- * subject to minWidth and maxAutoWidth validations. 
- */
-setColumnWidth : function(oColumn, nWidth) {
-    if(!(oColumn instanceof YAHOO.widget.Column)) {
-        oColumn = this.getColumn(oColumn);
-    }
-    if(oColumn) {
-        // Validate new width against minimum width
-        if(lang.isNumber(nWidth)) {
-            // This is why we must require a Number... :-|
-            nWidth = (nWidth > oColumn.minWidth) ? nWidth : oColumn.minWidth;
-
-            // Save state
-            oColumn.width = nWidth;
-            
-            // Resize the DOM elements
-            this._setColumnWidth(oColumn, nWidth+"px");
-            
-            this.fireEvent("columnSetWidthEvent",{column:oColumn,width:nWidth});
-        }
-        // Unsets a width to auto-size
-        else if(nWidth === null) {
-            // Save state
-            oColumn.width = nWidth;
-            
-            // Resize the DOM elements
-            this._setColumnWidth(oColumn, "auto");
-            this.validateColumnWidths(oColumn);
-            this.fireEvent("columnUnsetWidthEvent",{column:oColumn});
-        }
-                
-        // Bug 2339454: resize then sort misaligment
-        this._clearTrTemplateEl();
-    }
-    else {
-    }
-},
-
-/**
- * Sets liner DIV elements of given Column to given width. When value should be
- * auto-calculated to fit content overflow is set to visible, otherwise overflow
- * is set to hidden. No validations against minimum width and no updating
- * Column.width value.
- *
- * @method _setColumnWidth
- * @param oColumn {YAHOO.widget.Column} Column instance.
- * @param sWidth {String} New width value.
- * @param sOverflow {String} Should be "hidden" when Column width is explicitly
- * being set to a value, but should be "visible" when Column is meant to auto-fit content.  
- * @private
- */
-_setColumnWidth : function(oColumn, sWidth, sOverflow) {
-    if(oColumn && (oColumn.getKeyIndex() !== null)) {
-        sOverflow = sOverflow || (((sWidth === '') || (sWidth === 'auto')) ? 'visible' : 'hidden');
-    
-        // Dynamic style algorithm
-        if(!DT._bDynStylesFallback) {
-            this._setColumnWidthDynStyles(oColumn, sWidth, sOverflow);
-        }
-        // Dynamic function algorithm
-        else {
-            this._setColumnWidthDynFunction(oColumn, sWidth, sOverflow);
-        }
-    }
-    else {
-    }
-},
-
-/**
- * Updates width of a Column's liner DIV elements by dynamically creating a
- * STYLE node and writing and updating CSS style rules to it. If this fails during
- * runtime, the fallback method _setColumnWidthDynFunction() will be called.
- * Notes: This technique is not performant in IE6. IE7 crashes if DataTable is
- * nested within another TABLE element. For these cases, it is recommended to
- * use the method _setColumnWidthDynFunction by setting _bDynStylesFallback to TRUE.
- *
- * @method _setColumnWidthDynStyles
- * @param oColumn {YAHOO.widget.Column} Column instance.
- * @param sWidth {String} New width value.
- * @private
- */
-_setColumnWidthDynStyles : function(oColumn, sWidth, sOverflow) {
-    var s = DT._elDynStyleNode,
-        rule;
-    
-    // Create a new STYLE node
-    if(!s) {
-        s = document.createElement('style');
-        s.type = 'text/css';
-        s = document.getElementsByTagName('head').item(0).appendChild(s);
-        DT._elDynStyleNode = s;
-    }
-    
-    // We have a STYLE node to update
-    if(s) {
-        // Use unique classname for this Column instance as a hook for resizing
-        var sClassname = "." + this.getId() + "-col-" + oColumn.getSanitizedKey() + " ." + DT.CLASS_LINER;
-        
-        // Hide for performance
-        if(this._elTbody) {
-            this._elTbody.style.display = 'none';
-        }
-        
-        rule = DT._oDynStyles[sClassname];
-
-        // The Column does not yet have a rule
-        if(!rule) {
-            if(s.styleSheet && s.styleSheet.addRule) {
-                s.styleSheet.addRule(sClassname,"overflow:"+sOverflow);
-                s.styleSheet.addRule(sClassname,'width:'+sWidth);
-                rule = s.styleSheet.rules[s.styleSheet.rules.length-1];
-                DT._oDynStyles[sClassname] = rule;
-            }
-            else if(s.sheet && s.sheet.insertRule) {
-                s.sheet.insertRule(sClassname+" {overflow:"+sOverflow+";width:"+sWidth+";}",s.sheet.cssRules.length);
-                rule = s.sheet.cssRules[s.sheet.cssRules.length-1];
-                DT._oDynStyles[sClassname] = rule;
-            }
-        }
-        // We have a rule to update
-        else {
-            rule.style.overflow = sOverflow;
-            rule.style.width = sWidth;
-        } 
-        
-        // Unhide
-        if(this._elTbody) {
-            this._elTbody.style.display = '';
-        }
-    }
-    
-    // That was not a success, we must call the fallback routine
-    if(!rule) {
-        DT._bDynStylesFallback = true;
-        this._setColumnWidthDynFunction(oColumn, sWidth);
-    }
-},
-
-/**
- * Updates width of a Column's liner DIV elements by dynamically creating a
- * function to update all element style properties in one pass. Note: This
- * technique is not supported in sandboxed environments that prohibit EVALs.    
- *
- * @method _setColumnWidthDynFunction
- * @param oColumn {YAHOO.widget.Column} Column instance.
- * @param sWidth {String} New width value.
- * @private
- */
-_setColumnWidthDynFunction : function(oColumn, sWidth, sOverflow) {
-    // TODO: why is this here?
-    if(sWidth == 'auto') {
-        sWidth = ''; 
-    }
-    
-    // Create one function for each value of rows.length
-    var rowslen = this._elTbody ? this._elTbody.rows.length : 0;
-    
-    // Dynamically create the function
-    if (!this._aDynFunctions[rowslen]) {
-        
-        //Compile a custom function to do all the liner div width
-        //assignments at the same time.  A unique function is required
-        //for each unique number of rows in _elTbody.  This will
-        //result in a function declaration like:
-        //function (oColumn,sWidth,sOverflow) {
-        //    var colIdx = oColumn.getKeyIndex();
-        //    oColumn.getThLinerEl().style.overflow =
-        //    this._elTbody.rows[0].cells[colIdx].firstChild.style.overflow =
-        //    this._elTbody.rows[1].cells[colIdx].firstChild.style.overflow =
-        //    ... (for all row indices in this._elTbody.rows.length - 1)
-        //    this._elTbody.rows[99].cells[colIdx].firstChild.style.overflow =
-        //    sOverflow;
-        //    oColumn.getThLinerEl().style.width =
-        //    this._elTbody.rows[0].cells[colIdx].firstChild.style.width =
-        //    this._elTbody.rows[1].cells[colIdx].firstChild.style.width =
-        //    ... (for all row indices in this._elTbody.rows.length - 1)
-        //    this._elTbody.rows[99].cells[colIdx].firstChild.style.width =
-        //    sWidth;
-        //}
-        
-        var i,j,k;
-        var resizerDef = [
-            'var colIdx=oColumn.getKeyIndex();',
-            'oColumn.getThLinerEl().style.overflow='
-        ];
-        for (i=rowslen-1, j=2; i >= 0; --i) {
-            resizerDef[j++] = 'this._elTbody.rows[';
-            resizerDef[j++] = i;
-            resizerDef[j++] = '].cells[colIdx].firstChild.style.overflow=';
-        }
-        resizerDef[j] = 'sOverflow;';
-        resizerDef[j+1] = 'oColumn.getThLinerEl().style.width=';
-        for (i=rowslen-1, k=j+2; i >= 0; --i) {
-            resizerDef[k++] = 'this._elTbody.rows[';
-            resizerDef[k++] = i;
-            resizerDef[k++] = '].cells[colIdx].firstChild.style.width=';
-        }
-        resizerDef[k] = 'sWidth;';
-        this._aDynFunctions[rowslen] =
-            new Function('oColumn','sWidth','sOverflow',resizerDef.join(''));
-    }
-    
-    // Get the function to execute
-    var resizerFn = this._aDynFunctions[rowslen];
-
-    // TODO: Hide TBODY for performance in _setColumnWidthDynFunction?
-    if (resizerFn) {
-        resizerFn.call(this,oColumn,sWidth,sOverflow);
-    }
-},
-
-/**
- * For one or all Columns, when Column is not hidden, width is not set, and minWidth
- * and/or maxAutoWidth is set, validates auto-width against minWidth and maxAutoWidth.
- *
- * @method validateColumnWidths
- * @param oArg.column {YAHOO.widget.Column} (optional) One Column to validate. If null, all Columns' widths are validated.
- */
-validateColumnWidths : function(oColumn) {
-    var elColgroup = this._elColgroup;
-    var elColgroupClone = elColgroup.cloneNode(true);
-    var bNeedsValidation = false;
-    var allKeys = this._oColumnSet.keys;
-    var elThLiner;
-    // Validate just one Column's minWidth and/or maxAutoWidth
-    if(oColumn && !oColumn.hidden && !oColumn.width && (oColumn.getKeyIndex() !== null)) {
-            elThLiner = oColumn.getThLinerEl();
-            if((oColumn.minWidth > 0) && (elThLiner.offsetWidth < oColumn.minWidth)) {
-                elColgroupClone.childNodes[oColumn.getKeyIndex()].style.width = 
-                        oColumn.minWidth + 
-                        (parseInt(Dom.getStyle(elThLiner,"paddingLeft"),10)|0) +
-                        (parseInt(Dom.getStyle(elThLiner,"paddingRight"),10)|0) + "px";
-                bNeedsValidation = true;
-            }
-            else if((oColumn.maxAutoWidth > 0) && (elThLiner.offsetWidth > oColumn.maxAutoWidth)) {
-                this._setColumnWidth(oColumn, oColumn.maxAutoWidth+"px", "hidden");
-            }
-    }
-    // Validate all Columns
-    else {
-        for(var i=0, len=allKeys.length; i<len; i++) {
-            oColumn = allKeys[i];
-            if(!oColumn.hidden && !oColumn.width) {
-                elThLiner = oColumn.getThLinerEl();
-                if((oColumn.minWidth > 0) && (elThLiner.offsetWidth < oColumn.minWidth)) {
-                    elColgroupClone.childNodes[i].style.width = 
-                            oColumn.minWidth + 
-                            (parseInt(Dom.getStyle(elThLiner,"paddingLeft"),10)|0) +
-                            (parseInt(Dom.getStyle(elThLiner,"paddingRight"),10)|0) + "px";
-                    bNeedsValidation = true;
-                }
-                else if((oColumn.maxAutoWidth > 0) && (elThLiner.offsetWidth > oColumn.maxAutoWidth)) {
-                    this._setColumnWidth(oColumn, oColumn.maxAutoWidth+"px", "hidden");
-                }
-            }
-        }
-    }
-    if(bNeedsValidation) {
-        elColgroup.parentNode.replaceChild(elColgroupClone, elColgroup);
-        this._elColgroup = elColgroupClone;
-    }
-},
-
-/**
- * Clears minWidth.
- *
- * @method _clearMinWidth
- * @param oColumn {YAHOO.widget.Column} Which Column.
- * @private
- */
-_clearMinWidth : function(oColumn) {
-    if(oColumn.getKeyIndex() !== null) {
-        this._elColgroup.childNodes[oColumn.getKeyIndex()].style.width = '';
-    }
-},
-
-/**
- * Restores minWidth.
- *
- * @method _restoreMinWidth
- * @param oColumn {YAHOO.widget.Column} Which Column.
- * @private
- */
-_restoreMinWidth : function(oColumn) {
-    if(oColumn.minWidth && (oColumn.getKeyIndex() !== null)) {
-        this._elColgroup.childNodes[oColumn.getKeyIndex()].style.width = oColumn.minWidth + 'px';
-    }
-},
-
-/**
- * Hides given Column. NOTE: You cannot hide/show nested Columns. You can only
- * hide/show non-nested Columns, and top-level parent Columns (which will
- * hide/show all children Columns).
- *
- * @method hideColumn
- * @param oColumn {YAHOO.widget.Column} Column instance.
- */
-hideColumn : function(oColumn) {
-    if(!(oColumn instanceof YAHOO.widget.Column)) {
-        oColumn = this.getColumn(oColumn);
-    }
-    // Only top-level Columns can get hidden due to issues in FF2 and SF3
-    if(oColumn && !oColumn.hidden && oColumn.getTreeIndex() !== null) {
-        
-        var allrows = this.getTbodyEl().rows;
-        var l = allrows.length;
-        var allDescendants = this._oColumnSet.getDescendants(oColumn);
-        
-        // Hide each nested Column
-        for(var i=0; i<allDescendants.length; i++) {
-            var thisColumn = allDescendants[i];
-            thisColumn.hidden = true;
-
-            // Style the head cell
-            Dom.addClass(thisColumn.getThEl(), DT.CLASS_HIDDEN);
-            
-            // Does this Column have body cells?
-            var thisKeyIndex = thisColumn.getKeyIndex();
-            if(thisKeyIndex !== null) {                    
-                // Clear minWidth
-                this._clearMinWidth(oColumn);
-                
-                // Style the body cells
-                for(var j=0;j<l;j++) {
-                    Dom.addClass(allrows[j].cells[thisKeyIndex],DT.CLASS_HIDDEN);
-                }
-            }
-            
-            this.fireEvent("columnHideEvent",{column:thisColumn});
-        }
-      
-        this._repaintOpera();
-        this._clearTrTemplateEl();
-    }
-    else {
-    }
-},
-
-/**
- * Shows given Column. NOTE: You cannot hide/show nested Columns. You can only
- * hide/show non-nested Columns, and top-level parent Columns (which will
- * hide/show all children Columns).
- *
- * @method showColumn
- * @param oColumn {YAHOO.widget.Column} Column instance.
- */
-showColumn : function(oColumn) {
-    if(!(oColumn instanceof YAHOO.widget.Column)) {
-        oColumn = this.getColumn(oColumn);
-    }
-    // Only top-level Columns can get hidden
-    if(oColumn && oColumn.hidden && (oColumn.getTreeIndex() !== null)) {
-        var allrows = this.getTbodyEl().rows;
-        var l = allrows.length;
-        var allDescendants = this._oColumnSet.getDescendants(oColumn);
-        
-        // Show each nested Column
-        for(var i=0; i<allDescendants.length; i++) {
-            var thisColumn = allDescendants[i];
-            thisColumn.hidden = false;
-            
-            // Unstyle the head cell
-            Dom.removeClass(thisColumn.getThEl(), DT.CLASS_HIDDEN);
-
-            // Does this Column have body cells?
-            var thisKeyIndex = thisColumn.getKeyIndex();
-            if(thisKeyIndex !== null) {
-                // Restore minWidth
-                this._restoreMinWidth(oColumn);
-                
-            
-                // Unstyle the body cells
-                for(var j=0;j<l;j++) {
-                    Dom.removeClass(allrows[j].cells[thisKeyIndex],DT.CLASS_HIDDEN);
-                }
-            }
-
-            this.fireEvent("columnShowEvent",{column:thisColumn});
-        }
-        this._clearTrTemplateEl();
-    }
-    else {
-    }
-},
-
-/**
- * Removes given Column. NOTE: You cannot remove nested Columns. You can only remove
- * non-nested Columns, and top-level parent Columns (which will remove all
- * children Columns).
- *
- * @method removeColumn
- * @param oColumn {YAHOO.widget.Column} Column instance.
- * @return oColumn {YAHOO.widget.Column} Removed Column instance.
- */
-removeColumn : function(oColumn) {
-    // Validate Column
-    if(!(oColumn instanceof YAHOO.widget.Column)) {
-        oColumn = this.getColumn(oColumn);
-    }
-    if(oColumn) {
-        var nColTreeIndex = oColumn.getTreeIndex();
-        if(nColTreeIndex !== null) {
-            // Which key index(es)
-            var i, len,
-                aKeyIndexes = oColumn.getKeyIndex();
-            // Must be a parent Column
-            if(aKeyIndexes === null) {
-                var descKeyIndexes = [];
-                var allDescendants = this._oColumnSet.getDescendants(oColumn);
-                for(i=0, len=allDescendants.length; i<len; i++) {
-                    // Is this descendant a key Column?
-                    var thisKey = allDescendants[i].getKeyIndex();
-                    if(thisKey !== null) {
-                        descKeyIndexes[descKeyIndexes.length] = thisKey;
-                    }
-                }
-                if(descKeyIndexes.length > 0) {
-                    aKeyIndexes = descKeyIndexes;
-                }
-            }
-            // Must be a key Column
-            else {
-                aKeyIndexes = [aKeyIndexes];
-            }
-            
-            if(aKeyIndexes !== null) {
-                // Sort the indexes so we can remove from the right
-                aKeyIndexes.sort(function(a, b) {return YAHOO.util.Sort.compare(a, b);});
-                
-                // Destroy previous THEAD
-                this._destroyTheadEl();
-    
-                // Create new THEAD
-                var aOrigColumnDefs = this._oColumnSet.getDefinitions();
-                oColumn = aOrigColumnDefs.splice(nColTreeIndex,1)[0];
-                this._initColumnSet(aOrigColumnDefs);
-                this._initTheadEl();
-                
-                // Remove COL
-                for(i=aKeyIndexes.length-1; i>-1; i--) {
-                    this._removeColgroupColEl(aKeyIndexes[i]);
-                }
-                
-                // Remove TD
-                var allRows = this._elTbody.rows;
-                if(allRows.length > 0) {
-                    var loopN = this.get("renderLoopSize"),
-                        loopEnd = allRows.length;
-                    this._oChainRender.add({
-                        method: function(oArg) {
-                            if((this instanceof DT) && this._sId) {
-                                var i = oArg.nCurrentRow,
-                                    len = loopN > 0 ? Math.min(i + loopN,allRows.length) : allRows.length,
-                                    aIndexes = oArg.aIndexes,
-                                    j;
-                                for(; i < len; ++i) {
-                                    for(j = aIndexes.length-1; j>-1; j--) {
-                                        allRows[i].removeChild(allRows[i].childNodes[aIndexes[j]]);
-                                    }
-                                }
-                                oArg.nCurrentRow = i;
-                            }
-                        },
-                        iterations: (loopN > 0) ? Math.ceil(loopEnd/loopN) : 1,
-                        argument: {nCurrentRow:0, aIndexes:aKeyIndexes},
-                        scope: this,
-                        timeout: (loopN > 0) ? 0 : -1
-                    });
-                    this._runRenderChain();
-                }
-        
-                this.fireEvent("columnRemoveEvent",{column:oColumn});
-                return oColumn;
-            }
-        }
-    }
-},
-
-/**
- * Inserts given Column at the index if given, otherwise at the end. NOTE: You
- * can only add non-nested Columns and top-level parent Columns. You cannot add
- * a nested Column to an existing parent.
- *
- * @method insertColumn
- * @param oColumn {Object | YAHOO.widget.Column} Object literal Column
- * definition or a Column instance.
- * @param index {Number} (optional) New tree index.
- * @return oColumn {YAHOO.widget.Column} Inserted Column instance. 
- */
-insertColumn : function(oColumn, index) {
-    // Validate Column
-    if(oColumn instanceof YAHOO.widget.Column) {
-        oColumn = oColumn.getDefinition();
-    }
-    else if(oColumn.constructor !== Object) {
-        return;
-    }
-    
-    // Validate index or append new Column to the end of the ColumnSet
-    var oColumnSet = this._oColumnSet;
-    if(!lang.isValue(index) || !lang.isNumber(index)) {
-        index = oColumnSet.tree[0].length;
-    }
-    
-    // Destroy previous THEAD
-    this._destroyTheadEl();
-    
-    // Create new THEAD
-    var aNewColumnDefs = this._oColumnSet.getDefinitions();
-    aNewColumnDefs.splice(index, 0, oColumn);
-    this._initColumnSet(aNewColumnDefs);
-    this._initTheadEl();
-    
-    // Need to refresh the reference
-    oColumnSet = this._oColumnSet;
-    var oNewColumn = oColumnSet.tree[0][index];
-    
-    // Get key index(es) for new Column
-    var i, len,
-        descKeyIndexes = [];
-    var allDescendants = oColumnSet.getDescendants(oNewColumn);
-    for(i=0, len=allDescendants.length; i<len; i++) {
-        // Is this descendant a key Column?
-        var thisKey = allDescendants[i].getKeyIndex();
-        if(thisKey !== null) {
-            descKeyIndexes[descKeyIndexes.length] = thisKey;
-        }
-    }
-    
-    if(descKeyIndexes.length > 0) {  
-        // Sort the indexes
-        var newIndex = descKeyIndexes.sort(function(a, b) {return YAHOO.util.Sort.compare(a, b);})[0];
-        
-        // Add COL
-        for(i=descKeyIndexes.length-1; i>-1; i--) {
-            this._insertColgroupColEl(descKeyIndexes[i]);
-        }
-            
-        // Add TD
-        var allRows = this._elTbody.rows;
-        if(allRows.length > 0) {
-            var loopN = this.get("renderLoopSize"),
-                loopEnd = allRows.length;
-            
-            // Get templates for each new TD
-            var aTdTemplates = [],
-                elTdTemplate;
-            for(i=0, len=descKeyIndexes.length; i<len; i++) {
-                var thisKeyIndex = descKeyIndexes[i];
-                elTdTemplate = this._getTrTemplateEl().childNodes[i].cloneNode(true);
-                elTdTemplate = this._formatTdEl(this._oColumnSet.keys[thisKeyIndex], elTdTemplate, thisKeyIndex, (thisKeyIndex===this._oColumnSet.keys.length-1));
-                aTdTemplates[thisKeyIndex] = elTdTemplate;
-            }
-            
-            this._oChainRender.add({
-                method: function(oArg) {
-                    if((this instanceof DT) && this._sId) {
-                        var i = oArg.nCurrentRow, j,
-                            descKeyIndexes = oArg.descKeyIndexes,
-                            len = loopN > 0 ? Math.min(i + loopN,allRows.length) : allRows.length,
-                            nextSibling;
-                        for(; i < len; ++i) {
-                            nextSibling = allRows[i].childNodes[newIndex] || null;
-                            for(j=descKeyIndexes.length-1; j>-1; j--) {
-                                allRows[i].insertBefore(oArg.aTdTemplates[descKeyIndexes[j]].cloneNode(true), nextSibling);
-                            }
-                        }
-                        oArg.nCurrentRow = i;
-                    }
-                },
-                iterations: (loopN > 0) ? Math.ceil(loopEnd/loopN) : 1,
-                argument: {nCurrentRow:0,aTdTemplates:aTdTemplates,descKeyIndexes:descKeyIndexes},
-                scope: this,
-                timeout: (loopN > 0) ? 0 : -1
-            });
-            this._runRenderChain(); 
-        }
-
-        this.fireEvent("columnInsertEvent",{column:oColumn,index:index});
-        return oNewColumn;
-    }
-},
-
-/**
- * Removes given Column and inserts into given tree index. NOTE: You
- * can only reorder non-nested Columns and top-level parent Columns. You cannot
- * reorder a nested Column to an existing parent.
- *
- * @method reorderColumn
- * @param oColumn {YAHOO.widget.Column} Column instance.
- * @param index {Number} New tree index.
- * @return oColumn {YAHOO.widget.Column} Reordered Column instance. 
- */
-reorderColumn : function(oColumn, index) {
-    // Validate Column and new index
-    if(!(oColumn instanceof YAHOO.widget.Column)) {
-        oColumn = this.getColumn(oColumn);
-    }
-    if(oColumn && YAHOO.lang.isNumber(index)) {
-        var nOrigTreeIndex = oColumn.getTreeIndex();
-        if((nOrigTreeIndex !== null) && (nOrigTreeIndex !== index)) {
-            // Which key index(es)
-            var i, len,
-                aOrigKeyIndexes = oColumn.getKeyIndex(),
-                allDescendants,
-                descKeyIndexes = [],
-                thisKey;
-            // Must be a parent Column...
-            if(aOrigKeyIndexes === null) {
-                allDescendants = this._oColumnSet.getDescendants(oColumn);
-                for(i=0, len=allDescendants.length; i<len; i++) {
-                    // Is this descendant a key Column?
-                    thisKey = allDescendants[i].getKeyIndex();
-                    if(thisKey !== null) {
-                        descKeyIndexes[descKeyIndexes.length] = thisKey;
-                    }
-                }
-                if(descKeyIndexes.length > 0) {
-                    aOrigKeyIndexes = descKeyIndexes;
-                }
-            }
-            // ...or else must be a key Column
-            else {
-                aOrigKeyIndexes = [aOrigKeyIndexes];
-            }
-            
-            if(aOrigKeyIndexes !== null) {                   
-                // Sort the indexes
-                aOrigKeyIndexes.sort(function(a, b) {return YAHOO.util.Sort.compare(a, b);});
-                
-                // Destroy previous THEAD
-                this._destroyTheadEl();
-    
-                // Create new THEAD
-                var aColumnDefs = this._oColumnSet.getDefinitions();
-                var oColumnDef = aColumnDefs.splice(nOrigTreeIndex,1)[0];
-                aColumnDefs.splice(index, 0, oColumnDef);
-                this._initColumnSet(aColumnDefs);
-                this._initTheadEl();
-                
-                // Need to refresh the reference
-                var oNewColumn = this._oColumnSet.tree[0][index];
-
-                // What are new key index(es)
-                var aNewKeyIndexes = oNewColumn.getKeyIndex();
-                // Must be a parent Column
-                if(aNewKeyIndexes === null) {
-                    descKeyIndexes = [];
-                    allDescendants = this._oColumnSet.getDescendants(oNewColumn);
-                    for(i=0, len=allDescendants.length; i<len; i++) {
-                        // Is this descendant a key Column?
-                        thisKey = allDescendants[i].getKeyIndex();
-                        if(thisKey !== null) {
-                            descKeyIndexes[descKeyIndexes.length] = thisKey;
-                        }
-                    }
-                    if(descKeyIndexes.length > 0) {
-                        aNewKeyIndexes = descKeyIndexes;
-                    }
-                }
-                // Must be a key Column
-                else {
-                    aNewKeyIndexes = [aNewKeyIndexes];
-                }
-                
-                // Sort the new indexes and grab the first one for the new location
-                var newIndex = aNewKeyIndexes.sort(function(a, b) {return YAHOO.util.Sort.compare(a, b);})[0];
-
-                // Reorder COL
-                this._reorderColgroupColEl(aOrigKeyIndexes, newIndex);
-                
-                // Reorder TD
-                var allRows = this._elTbody.rows;
-                if(allRows.length > 0) {
-                    var loopN = this.get("renderLoopSize"),
-                        loopEnd = allRows.length;
-                    this._oChainRender.add({
-                        method: function(oArg) {
-                            if((this instanceof DT) && this._sId) {
-                                var i = oArg.nCurrentRow, j, tmpTds, nextSibling,
-                                    len = loopN > 0 ? Math.min(i + loopN,allRows.length) : allRows.length,
-                                    aIndexes = oArg.aIndexes, thisTr;
-                                // For each row
-                                for(; i < len; ++i) {
-                                    tmpTds = [];
-                                    thisTr = allRows[i];
-                                    
-                                    // Remove each TD
-                                    for(j=aIndexes.length-1; j>-1; j--) {
-                                        tmpTds.push(thisTr.removeChild(thisTr.childNodes[aIndexes[j]]));
-                                    }
-                                    
-                                    // Insert each TD
-                                    nextSibling = thisTr.childNodes[newIndex] || null;
-                                    for(j=tmpTds.length-1; j>-1; j--) {
-                                        thisTr.insertBefore(tmpTds[j], nextSibling);
-                                    }                                    
-                                }
-                                oArg.nCurrentRow = i;
-                            }
-                        },
-                        iterations: (loopN > 0) ? Math.ceil(loopEnd/loopN) : 1,
-                        argument: {nCurrentRow:0, aIndexes:aOrigKeyIndexes},
-                        scope: this,
-                        timeout: (loopN > 0) ? 0 : -1
-                    });
-                    this._runRenderChain();
-                }
-        
-                this.fireEvent("columnReorderEvent",{column:oNewColumn});
-                return oNewColumn;
-            }
-        }
-    }
-},
-
-/**
- * Selects given Column. NOTE: You cannot select/unselect nested Columns. You can only
- * select/unselect non-nested Columns, and bottom-level key Columns.
- *
- * @method selectColumn
- * @param column {HTMLElement | String | Number} DOM reference or ID string to a
- * TH/TD element (or child of a TH/TD element), a Column key, or a ColumnSet key index.
- */
-selectColumn : function(oColumn) {
-    oColumn = this.getColumn(oColumn);
-    if(oColumn && !oColumn.selected) {
-        // Only bottom-level Columns can get hidden
-        if(oColumn.getKeyIndex() !== null) {
-            oColumn.selected = true;
-            
-            // Update head cell
-            var elTh = oColumn.getThEl();
-            Dom.addClass(elTh,DT.CLASS_SELECTED);
-
-            // Update body cells
-            var allRows = this.getTbodyEl().rows;
-            var oChainRender = this._oChainRender;
-            oChainRender.add({
-                method: function(oArg) {
-                    if((this instanceof DT) && this._sId && allRows[oArg.rowIndex] && allRows[oArg.rowIndex].cells[oArg.cellIndex]) {
-                        Dom.addClass(allRows[oArg.rowIndex].cells[oArg.cellIndex],DT.CLASS_SELECTED);                    
-                    }
-                    oArg.rowIndex++;
-                },
-                scope: this,
-                iterations: allRows.length,
-                argument: {rowIndex:0,cellIndex:oColumn.getKeyIndex()}
-            });
-
-            this._clearTrTemplateEl();
-            
-            this._elTbody.style.display = "none";
-            this._runRenderChain();
-            this._elTbody.style.display = "";      
-            
-            this.fireEvent("columnSelectEvent",{column:oColumn});
-        }
-        else {
-        }
-    }
-},
-
-/**
- * Unselects given Column. NOTE: You cannot select/unselect nested Columns. You can only
- * select/unselect non-nested Columns, and bottom-level key Columns.
- *
- * @method unselectColumn
- * @param column {HTMLElement | String | Number} DOM reference or ID string to a
- * TH/TD element (or child of a TH/TD element), a Column key, or a ColumnSet key index.
- */
-unselectColumn : function(oColumn) {
-    oColumn = this.getColumn(oColumn);
-    if(oColumn && oColumn.selected) {
-        // Only bottom-level Columns can get hidden
-        if(oColumn.getKeyIndex() !== null) {
-            oColumn.selected = false;
-            
-            // Update head cell
-            var elTh = oColumn.getThEl();
-            Dom.removeClass(elTh,DT.CLASS_SELECTED);
-
-            // Update body cells
-            var allRows = this.getTbodyEl().rows;
-            var oChainRender = this._oChainRender;
-            oChainRender.add({
-                method: function(oArg) {
-                    if((this instanceof DT) && this._sId && allRows[oArg.rowIndex] && allRows[oArg.rowIndex].cells[oArg.cellIndex]) {
-                        Dom.removeClass(allRows[oArg.rowIndex].cells[oArg.cellIndex],DT.CLASS_SELECTED); 
-                    }                   
-                    oArg.rowIndex++;
-                },
-                scope: this,
-                iterations:allRows.length,
-                argument: {rowIndex:0,cellIndex:oColumn.getKeyIndex()}
-            });
-            
-            this._clearTrTemplateEl();
-
-            this._elTbody.style.display = "none";
-            this._runRenderChain();
-            this._elTbody.style.display = "";      
-            
-            this.fireEvent("columnUnselectEvent",{column:oColumn});
-        }
-        else {
-        }
-    }
-},
-
-/**
- * Returns an array selected Column instances.
- *
- * @method getSelectedColumns
- * @return {YAHOO.widget.Column[]} Array of Column instances.
- */
-getSelectedColumns : function(oColumn) {
-    var selectedColumns = [];
-    var aKeys = this._oColumnSet.keys;
-    for(var i=0,len=aKeys.length; i<len; i++) {
-        if(aKeys[i].selected) {
-            selectedColumns[selectedColumns.length] = aKeys[i];
-        }
-    }
-    return selectedColumns;
-},
-
-/**
- * Assigns the class YAHOO.widget.DataTable.CLASS_HIGHLIGHTED to cells of the given Column.
- * NOTE: You cannot highlight/unhighlight nested Columns. You can only
- * highlight/unhighlight non-nested Columns, and bottom-level key Columns.
- *
- * @method highlightColumn
- * @param column {HTMLElement | String | Number} DOM reference or ID string to a
- * TH/TD element (or child of a TH/TD element), a Column key, or a ColumnSet key index.
- */
-highlightColumn : function(column) {
-    var oColumn = this.getColumn(column);
-    // Only bottom-level Columns can get highlighted
-    if(oColumn && (oColumn.getKeyIndex() !== null)) {            
-        // Update head cell
-        var elTh = oColumn.getThEl();
-        Dom.addClass(elTh,DT.CLASS_HIGHLIGHTED);
-
-        // Update body cells
-        var allRows = this.getTbodyEl().rows;
-        var oChainRender = this._oChainRender;
-        oChainRender.add({
-            method: function(oArg) {
-                if((this instanceof DT) && this._sId && allRows[oArg.rowIndex] && allRows[oArg.rowIndex].cells[oArg.cellIndex]) {
-                    Dom.addClass(allRows[oArg.rowIndex].cells[oArg.cellIndex],DT.CLASS_HIGHLIGHTED);   
-                }                 
-                oArg.rowIndex++;
-            },
-            scope: this,
-            iterations:allRows.length,
-            argument: {rowIndex:0,cellIndex:oColumn.getKeyIndex()},
-            timeout: -1
-        });
-        this._elTbody.style.display = "none";
-        this._runRenderChain();
-        this._elTbody.style.display = "";      
-            
-        this.fireEvent("columnHighlightEvent",{column:oColumn});
-    }
-    else {
-    }
-},
-
-/**
- * Removes the class YAHOO.widget.DataTable.CLASS_HIGHLIGHTED to cells of the given Column.
- * NOTE: You cannot highlight/unhighlight nested Columns. You can only
- * highlight/unhighlight non-nested Columns, and bottom-level key Columns.
- *
- * @method unhighlightColumn
- * @param column {HTMLElement | String | Number} DOM reference or ID string to a
- * TH/TD element (or child of a TH/TD element), a Column key, or a ColumnSet key index.
- */
-unhighlightColumn : function(column) {
-    var oColumn = this.getColumn(column);
-    // Only bottom-level Columns can get highlighted
-    if(oColumn && (oColumn.getKeyIndex() !== null)) {
-        // Update head cell
-        var elTh = oColumn.getThEl();
-        Dom.removeClass(elTh,DT.CLASS_HIGHLIGHTED);
-
-        // Update body cells
-        var allRows = this.getTbodyEl().rows;
-        var oChainRender = this._oChainRender;
-        oChainRender.add({
-            method: function(oArg) {
-                if((this instanceof DT) && this._sId && allRows[oArg.rowIndex] && allRows[oArg.rowIndex].cells[oArg.cellIndex]) {
-                    Dom.removeClass(allRows[oArg.rowIndex].cells[oArg.cellIndex],DT.CLASS_HIGHLIGHTED);
-                }                 
-                oArg.rowIndex++;
-            },
-            scope: this,
-            iterations:allRows.length,
-            argument: {rowIndex:0,cellIndex:oColumn.getKeyIndex()},
-            timeout: -1
-        });
-        this._elTbody.style.display = "none";
-        this._runRenderChain();
-        this._elTbody.style.display = "";     
-            
-        this.fireEvent("columnUnhighlightEvent",{column:oColumn});
-    }
-    else {
-    }
-},
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-// ROW FUNCTIONS
-
-/**
- * Adds one new Record of data into the RecordSet at the index if given,
- * otherwise at the end. If the new Record is in page view, the
- * corresponding DOM elements are also updated.
- *
- * @method addRow
- * @param oData {Object} Object literal of data for the row.
- * @param index {Number} (optional) RecordSet position index at which to add data.
- */
-addRow : function(oData, index) {
-    if(lang.isNumber(index) && (index < 0 || index > this._oRecordSet.getLength())) {
-        return;
-    }
-
-    if(oData && lang.isObject(oData)) {
-        var oRecord = this._oRecordSet.addRecord(oData, index);
-        if(oRecord) {
-            var recIndex;
-            var oPaginator = this.get('paginator');
-
-            // Paginated
-            if (oPaginator) {     
-                // Update the paginator's totalRecords
-                var totalRecords = oPaginator.get('totalRecords');
-                if (totalRecords !== widget.Paginator.VALUE_UNLIMITED) {
-                    oPaginator.set('totalRecords',totalRecords + 1);
-                }
-
-                recIndex = this.getRecordIndex(oRecord);
-                var endRecIndex = (oPaginator.getPageRecords())[1];
-
-                // New record affects the view
-                if (recIndex <= endRecIndex) {
-                    // Defer UI updates to the render method
-                    this.render();
-                }
-                
-                this.fireEvent("rowAddEvent", {record:oRecord});
-                return;
-            }
-            // Not paginated
-            else {
-                recIndex = this.getTrIndex(oRecord);
-                if(lang.isNumber(recIndex)) {
-                    // Add the TR element
-                    this._oChainRender.add({
-                        method: function(oArg) {
-                            if((this instanceof DT) && this._sId) {
-                                var oRecord = oArg.record;
-                                var recIndex = oArg.recIndex;
-                                var elNewTr = this._addTrEl(oRecord);
-                                if(elNewTr) {
-                                    var elNext = (this._elTbody.rows[recIndex]) ? this._elTbody.rows[recIndex] : null;
-                                    this._elTbody.insertBefore(elNewTr, elNext);
-
-                                    // Set FIRST/LAST
-                                    if(recIndex === 0) {
-                                        this._setFirstRow();
-                                    }
-                                    if(elNext === null) {
-                                        this._setLastRow();
-                                    }
-                                    // Set EVEN/ODD
-                                    this._setRowStripes();                           
-                                    
-                                    this.hideTableMessage();
-            
-                                    this.fireEvent("rowAddEvent", {record:oRecord});
-                                }
-                            }
-                        },
-                        argument: {record: oRecord, recIndex: recIndex},
-                        scope: this,
-                        timeout: (this.get("renderLoopSize") > 0) ? 0 : -1
-                    });
-                    this._runRenderChain();
-                    return;
-                }
-            }            
-        }
-    }
-},
-
-/**
- * Convenience method to add multiple rows.
- *
- * @method addRows
- * @param aData {Object[]} Array of object literal data for the rows.
- * @param index {Number} (optional) RecordSet position index at which to add data.
- */
-addRows : function(aData, index) {
-    if(lang.isNumber(index) && (index < 0 || index > this._oRecordSet.getLength())) {
-        return;
-    }
-
-    if(lang.isArray(aData)) {
-        var aRecords = this._oRecordSet.addRecords(aData, index);
-        if(aRecords) {
-            var recIndex = this.getRecordIndex(aRecords[0]);
-            
-            // Paginated
-            var oPaginator = this.get('paginator');
-            if (oPaginator) {
-                // Update the paginator's totalRecords
-                var totalRecords = oPaginator.get('totalRecords');
-                if (totalRecords !== widget.Paginator.VALUE_UNLIMITED) {
-                    oPaginator.set('totalRecords',totalRecords + aRecords.length);
-                }
-    
-                var endRecIndex = (oPaginator.getPageRecords())[1];
-
-                // At least one of the new records affects the view
-                if (recIndex <= endRecIndex) {
-                    this.render();
-                }
-                
-                this.fireEvent("rowsAddEvent", {records:aRecords});
-                return;
-            }
-            // Not paginated
-            else {
-                // Add the TR elements
-                var loopN = this.get("renderLoopSize");
-                var loopEnd = recIndex + aData.length;
-                var nRowsNeeded = (loopEnd - recIndex); // how many needed
-                var isLast = (recIndex >= this._elTbody.rows.length);
-                this._oChainRender.add({
-                    method: function(oArg) {
-                        if((this instanceof DT) && this._sId) {
-                            var aRecords = oArg.aRecords,
-                                i = oArg.nCurrentRow,
-                                j = oArg.nCurrentRecord,
-                                len = loopN > 0 ? Math.min(i + loopN,loopEnd) : loopEnd,
-                                df = document.createDocumentFragment(),
-                                elNext = (this._elTbody.rows[i]) ? this._elTbody.rows[i] : null;
-                            for(; i < len; i++, j++) {
-                                df.appendChild(this._addTrEl(aRecords[j]));
-                            }
-                            this._elTbody.insertBefore(df, elNext);
-                            oArg.nCurrentRow = i;
-                            oArg.nCurrentRecord = j;
-                        }
-                    },
-                    iterations: (loopN > 0) ? Math.ceil(loopEnd/loopN) : 1,
-                    argument: {nCurrentRow:recIndex,nCurrentRecord:0,aRecords:aRecords},
-                    scope: this,
-                    timeout: (loopN > 0) ? 0 : -1
-                });
-                this._oChainRender.add({
-                    method: function(oArg) {
-                        var recIndex = oArg.recIndex;
-                        // Set FIRST/LAST
-                        if(recIndex === 0) {
-                            this._setFirstRow();
-                        }
-                        if(oArg.isLast) {
-                            this._setLastRow();
-                        }
-                        // Set EVEN/ODD
-                        this._setRowStripes();                           
-
-                        this.fireEvent("rowsAddEvent", {records:aRecords});
-                    },
-                    argument: {recIndex: recIndex, isLast: isLast},
-                    scope: this,
-                    timeout: -1 // Needs to run immediately after the DOM insertions above
-                });
-                this._runRenderChain();
-                this.hideTableMessage();                
-                return;
-            }            
-        }
-    }
-},
-
-/**
- * For the given row, updates the associated Record with the given data. If the
- * row is on current page, the corresponding DOM elements are also updated.
- *
- * @method updateRow
- * @param row {YAHOO.widget.Record | Number | HTMLElement | String}
- * Which row to update: By Record instance, by Record's RecordSet
- * position index, by HTMLElement reference to the TR element, or by ID string
- * of the TR element.
- * @param oData {Object} Object literal of data for the row.
- */
-updateRow : function(row, oData) {
-    var index = row;
-    if (!lang.isNumber(index)) {
-        index = this.getRecordIndex(row);
-    }
-
-    // Update the Record
-    if(lang.isNumber(index) && (index >= 0)) {
-        var oRecordSet = this._oRecordSet,
-            oldRecord = oRecordSet.getRecord(index);
-            
-        
-        if(oldRecord) {
-            var updatedRecord = this._oRecordSet.setRecord(oData, index),
-                elRow = this.getTrEl(oldRecord),
-                // Copy data from the Record for the event that gets fired later
-                oldData = oldRecord ? oldRecord.getData() : null;
-               
-            if(updatedRecord) {
-                // Update selected rows as necessary
-                var tracker = this._aSelections || [],
-                i=0,
-                oldId = oldRecord.getId(),
-                newId = updatedRecord.getId();
-                for(; i<tracker.length; i++) {
-                    if((tracker[i] === oldId)) {
-                        tracker[i] = newId;
-                    }
-                    else if(tracker[i].recordId === oldId) {
-                        tracker[i].recordId = newId;
-                    }
-                }
-
-                // Update the TR only if row is on current page
-                this._oChainRender.add({
-                    method: function() {
-                        if((this instanceof DT) && this._sId) {
-                            // Paginated
-                            var oPaginator = this.get('paginator');
-                            if (oPaginator) {
-                                var pageStartIndex = (oPaginator.getPageRecords())[0],
-                                    pageLastIndex = (oPaginator.getPageRecords())[1];
-        
-                                // At least one of the new records affects the view
-                                if ((index >= pageStartIndex) || (index <= pageLastIndex)) {
-                                    this.render();
-                                }
-                            }
-                            else {
-                                if(elRow) {
-                                    this._updateTrEl(elRow, updatedRecord);
-                                }
-                                else {
-                                    this.getTbodyEl().appendChild(this._addTrEl(updatedRecord));
-                                }
-                            }
-                            this.fireEvent("rowUpdateEvent", {record:updatedRecord, oldData:oldData});
-                        }
-                    },
-                    scope: this,
-                    timeout: (this.get("renderLoopSize") > 0) ? 0 : -1
-                });
-                this._runRenderChain();
-                return;
-            }
-        }
-    }
-    return;
-},
-
-/**
- * Starting with the given row, updates associated Records with the given data.
- * The number of rows to update are determined by the array of data provided.
- * Undefined data (i.e., not an object literal) causes a row to be skipped. If
- * any of the rows are on current page, the corresponding DOM elements are also
- * updated.
- *
- * @method updateRows
- * @param startrow {YAHOO.widget.Record | Number | HTMLElement | String}
- * Starting row to update: By Record instance, by Record's RecordSet
- * position index, by HTMLElement reference to the TR element, or by ID string
- * of the TR element.
- * @param aData {Object[]} Array of object literal of data for the rows.
- */
-updateRows : function(startrow, aData) {
-    if(lang.isArray(aData)) {
-        var startIndex = startrow,
-            oRecordSet = this._oRecordSet;
-            
-        if (!lang.isNumber(startrow)) {
-            startIndex = this.getRecordIndex(startrow);
-        }
-            
-        if(lang.isNumber(startIndex) && (startIndex >= 0) && (startIndex < oRecordSet.getLength())) {
-            var lastIndex = startIndex + aData.length,
-                aOldRecords = oRecordSet.getRecords(startIndex, aData.length),
-                aNewRecords = oRecordSet.setRecords(aData, startIndex);
-            if(aNewRecords) {
-                // Update selected rows as necessary
-                var tracker = this._aSelections || [],
-                    i=0, j, newId, oldId;
-                for(; i<tracker.length; i++) {
-                    for(j=0; j<aOldRecords.length; j++) {
-                        oldId = aOldRecords[j].getId();
-                        if((tracker[i] === oldId)) {
-                            tracker[i] = aNewRecords[j].getId();
-                        }
-                        else if(tracker[i].recordId === oldId) {
-                            tracker[i].recordId = aNewRecords[j].getId();
-                        }
-                    }
-                }
-            
-                // Paginated
-                var oPaginator = this.get('paginator');
-                if (oPaginator) {
-                    var pageStartIndex = (oPaginator.getPageRecords())[0],
-                        pageLastIndex = (oPaginator.getPageRecords())[1];
-    
-                    // At least one of the new records affects the view
-                    if ((startIndex >= pageStartIndex) || (lastIndex <= pageLastIndex)) {
-                        this.render();
-                    }
-                    
-                    this.fireEvent("rowsAddEvent", {newRecords:aNewRecords, oldRecords:aOldRecords});
-                    return;
-                }
-                // Not paginated
-                else {
-                    // Update the TR elements
-                    var loopN = this.get("renderLoopSize"),
-                        rowCount = aData.length, // how many needed
-                        lastRowIndex = this._elTbody.rows.length,
-                        isLast = (lastIndex >= lastRowIndex),
-                        isAdding = (lastIndex > lastRowIndex);
-                                           
-                    this._oChainRender.add({
-                        method: function(oArg) {
-                            if((this instanceof DT) && this._sId) {
-                                var aRecords = oArg.aRecords,
-                                    i = oArg.nCurrentRow,
-                                    j = oArg.nDataPointer,
-                                    len = loopN > 0 ? Math.min(i+loopN, startIndex+aRecords.length) : startIndex+aRecords.length;
-                                    
-                                for(; i < len; i++,j++) {
-                                    if(isAdding && (i>=lastRowIndex)) {
-                                        this._elTbody.appendChild(this._addTrEl(aRecords[j]));
-                                    }
-                                    else {
-                                        this._updateTrEl(this._elTbody.rows[i], aRecords[j]);
-                                    }
-                                }
-                                oArg.nCurrentRow = i;
-                                oArg.nDataPointer = j;
-                            }
-                        },
-                        iterations: (loopN > 0) ? Math.ceil(rowCount/loopN) : 1,
-                        argument: {nCurrentRow:startIndex,aRecords:aNewRecords,nDataPointer:0,isAdding:isAdding},
-                        scope: this,
-                        timeout: (loopN > 0) ? 0 : -1
-                    });
-                    this._oChainRender.add({
-                        method: function(oArg) {
-                            var recIndex = oArg.recIndex;
-                            // Set FIRST/LAST
-                            if(recIndex === 0) {
-                                this._setFirstRow();
-                            }
-                            if(oArg.isLast) {
-                                this._setLastRow();
-                            }
-                            // Set EVEN/ODD
-                            this._setRowStripes();                           
-    
-                            this.fireEvent("rowsAddEvent", {newRecords:aNewRecords, oldRecords:aOldRecords});
-                        },
-                        argument: {recIndex: startIndex, isLast: isLast},
-                        scope: this,
-                        timeout: -1 // Needs to run immediately after the DOM insertions above
-                    });
-                    this._runRenderChain();
-                    this.hideTableMessage();                
-                    return;
-                }            
-            }
-        }
-    }
-},
-
-/**
- * Deletes the given row's Record from the RecordSet. If the row is on current page,
- * the corresponding DOM elements are also deleted.
- *
- * @method deleteRow
- * @param row {HTMLElement | String | Number} DOM element reference or ID string
- * to DataTable page element or RecordSet index.
- */
-deleteRow : function(row) {
-    var nRecordIndex = (lang.isNumber(row)) ? row : this.getRecordIndex(row);
-    if(lang.isNumber(nRecordIndex)) {
-        var oRecord = this.getRecord(nRecordIndex);
-        if(oRecord) {
-            var nTrIndex = this.getTrIndex(nRecordIndex);
-            
-            // Remove from selection tracker if there
-            var sRecordId = oRecord.getId();
-            var tracker = this._aSelections || [];
-            for(var j=tracker.length-1; j>-1; j--) {
-                if((lang.isString(tracker[j]) && (tracker[j] === sRecordId)) ||
-                        (lang.isObject(tracker[j]) && (tracker[j].recordId === sRecordId))) {
-                    tracker.splice(j,1);
-                }
-            }
-    
-            // Delete Record from RecordSet
-            var oData = this._oRecordSet.deleteRecord(nRecordIndex);
-    
-            // Update the UI
-            if(oData) {
-                // If paginated and the deleted row was on this or a prior page, just
-                // re-render
-                var oPaginator = this.get('paginator');
-                if (oPaginator) {
-                    // Update the paginator's totalRecords
-                    var totalRecords = oPaginator.get('totalRecords'),
-                        // must capture before the totalRecords change because
-                        // Paginator shifts to previous page automatically
-                        rng = oPaginator.getPageRecords();
-
-                    if (totalRecords !== widget.Paginator.VALUE_UNLIMITED) {
-                        oPaginator.set('totalRecords',totalRecords - 1);
-                    }
-    
-                    // The deleted record was on this or a prior page, re-render
-                    if (!rng || nRecordIndex <= rng[1]) {
-                        this.render();
-                    }
-
-                    this._oChainRender.add({
-                        method: function() {
-                            if((this instanceof DT) && this._sId) {
-                                this.fireEvent("rowDeleteEvent", {recordIndex:nRecordIndex, oldData:oData, trElIndex:nTrIndex});
-                            }
-                        },
-                        scope: this,
-                        timeout: (this.get("renderLoopSize") > 0) ? 0 : -1
-                    });
-                    this._runRenderChain();
-                }
-                // Not paginated
-                else {
-                    if(lang.isNumber(nTrIndex)) {
-                        this._oChainRender.add({
-                            method: function() {
-                                if((this instanceof DT) && this._sId) {
-                                    var isLast = (nRecordIndex === this._oRecordSet.getLength());//(nTrIndex == this.getLastTrEl().sectionRowIndex);
-                                    this._deleteTrEl(nTrIndex);
-                    
-                                    // Post-delete tasks
-                                    if(this._elTbody.rows.length > 0) {
-                                        // Set FIRST/LAST
-                                        if(nTrIndex === 0) {
-                                            this._setFirstRow();
-                                        }
-                                        if(isLast) {
-                                            this._setLastRow();
-                                        }
-                                        // Set EVEN/ODD
-                                        if(nTrIndex != this._elTbody.rows.length) {
-                                            this._setRowStripes(nTrIndex);
-                                        }                                
-                                    }
-                    
-                                    this.fireEvent("rowDeleteEvent", {recordIndex:nRecordIndex,oldData:oData, trElIndex:nTrIndex});
-                                }
-                            },
-                            scope: this,
-                            timeout: (this.get("renderLoopSize") > 0) ? 0 : -1
-                        });
-                        this._runRenderChain();
-                        return;
-                    }
-                }
-            }
-        }
-    }
-    return null;
-},
-
-/**
- * Convenience method to delete multiple rows.
- *
- * @method deleteRows
- * @param row {HTMLElement | String | Number} DOM element reference or ID string
- * to DataTable page element or RecordSet index.
- * @param count {Number} (optional) How many rows to delete. A negative value
- * will delete towards the beginning.
- */
-deleteRows : function(row, count) {
-    var nRecordIndex = (lang.isNumber(row)) ? row : this.getRecordIndex(row);
-    if(lang.isNumber(nRecordIndex)) {
-        var oRecord = this.getRecord(nRecordIndex);
-        if(oRecord) {
-            var nTrIndex = this.getTrIndex(nRecordIndex);
-            
-            // Remove from selection tracker if there
-            var sRecordId = oRecord.getId();
-            var tracker = this._aSelections || [];
-            for(var j=tracker.length-1; j>-1; j--) {
-                if((lang.isString(tracker[j]) && (tracker[j] === sRecordId)) ||
-                        (lang.isObject(tracker[j]) && (tracker[j].recordId === sRecordId))) {
-                    tracker.splice(j,1);
-                }
-            }
-    
-            // Delete Record from RecordSet
-            var highIndex = nRecordIndex;
-            var lowIndex = nRecordIndex;
-        
-            // Validate count and account for negative value
-            if(count && lang.isNumber(count)) {
-                highIndex = (count > 0) ? nRecordIndex + count -1 : nRecordIndex;
-                lowIndex = (count > 0) ? nRecordIndex : nRecordIndex + count + 1;
-                count = (count > 0) ? count : count*-1;
-                if(lowIndex < 0) {
-                    lowIndex = 0;
-                    count = highIndex - lowIndex + 1;
-                }
-            }
-            else {
-                count = 1;
-            }
-            
-            var aData = this._oRecordSet.deleteRecords(lowIndex, count);
-    
-            // Update the UI
-            if(aData) {
-                var oPaginator = this.get('paginator'),
-                    loopN = this.get("renderLoopSize");
-                // If paginated and the deleted row was on this or a prior page, just
-                // re-render
-                if (oPaginator) {
-                    // Update the paginator's totalRecords
-                    var totalRecords = oPaginator.get('totalRecords'),
-                        // must capture before the totalRecords change because
-                        // Paginator shifts to previous page automatically
-                        rng = oPaginator.getPageRecords();
-
-                    if (totalRecords !== widget.Paginator.VALUE_UNLIMITED) {
-                        oPaginator.set('totalRecords',totalRecords - aData.length);
-                    }
-    
-                    // The records were on this or a prior page, re-render
-                    if (!rng || lowIndex <= rng[1]) {
-                        this.render();
-                    }
-
-                    this._oChainRender.add({
-                        method: function(oArg) {
-                            if((this instanceof DT) && this._sId) {
-                                this.fireEvent("rowsDeleteEvent", {recordIndex:lowIndex, oldData:aData, count:count});
-                            }
-                        },
-                        scope: this,
-                        timeout: (loopN > 0) ? 0 : -1
-                    });
-                    this._runRenderChain();
-                    return;
-                }
-                // Not paginated
-                else {
-                    if(lang.isNumber(nTrIndex)) {
-                        // Delete the TR elements starting with highest index
-                        var loopEnd = lowIndex;
-                        var nRowsNeeded = count; // how many needed
-                        this._oChainRender.add({
-                            method: function(oArg) {
-                                if((this instanceof DT) && this._sId) {
-                                    var i = oArg.nCurrentRow,
-                                        len = (loopN > 0) ? (Math.max(i - loopN,loopEnd)-1) : loopEnd-1;
-                                    for(; i>len; --i) {
-                                        this._deleteTrEl(i);
-                                    }
-                                    oArg.nCurrentRow = i;
-                                }
-                            },
-                            iterations: (loopN > 0) ? Math.ceil(count/loopN) : 1,
-                            argument: {nCurrentRow:highIndex},
-                            scope: this,
-                            timeout: (loopN > 0) ? 0 : -1
-                        });
-                        this._oChainRender.add({
-                            method: function() {    
-                                // Post-delete tasks
-                                if(this._elTbody.rows.length > 0) {
-                                    this._setFirstRow();
-                                    this._setLastRow();
-                                    this._setRowStripes();
-                                }
-                                
-                                this.fireEvent("rowsDeleteEvent", {recordIndex:lowIndex, oldData:aData, count:count});
-                            },
-                            scope: this,
-                            timeout: -1 // Needs to run immediately after the DOM deletions above
-                        });
-                        this._runRenderChain();
-                        return;
-                    }
-                }
-            }
-        }
-    }
-    return null;
-},
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-// CELL FUNCTIONS
-
-/**
- * Outputs markup into the given TD based on given Record.
- *
- * @method formatCell
- * @param elLiner {HTMLElement} The liner DIV element within the TD.
- * @param oRecord {YAHOO.widget.Record} (Optional) Record instance.
- * @param oColumn {YAHOO.widget.Column} (Optional) Column instance.
- */
-formatCell : function(elLiner, oRecord, oColumn) {
-    if(!oRecord) {
-        oRecord = this.getRecord(elLiner);
-    }
-    if(!oColumn) {
-        oColumn = this.getColumn(elLiner.parentNode.cellIndex);
-    }
-
-    if(oRecord && oColumn) {
-        var sField = oColumn.field;
-        var oData = oRecord.getData(sField);
-
-        var fnFormatter = typeof oColumn.formatter === 'function' ?
-                          oColumn.formatter :
-                          DT.Formatter[oColumn.formatter+''] ||
-                          DT.Formatter.defaultFormatter;
-
-        // Apply special formatter
-        if(fnFormatter) {
-            fnFormatter.call(this, elLiner, oRecord, oColumn, oData);
-        }
-        else {
-            elLiner.innerHTML = oData;
-        }
-
-        this.fireEvent("cellFormatEvent", {record:oRecord, column:oColumn, key:oColumn.key, el:elLiner});
-    }
-    else {
-    }
-},
-
-/**
- * For the given row and column, updates the Record with the given data. If the
- * cell is on current page, the corresponding DOM elements are also updated.
- *
- * @method updateCell
- * @param oRecord {YAHOO.widget.Record} Record instance.
- * @param oColumn {YAHOO.widget.Column | String | Number} A Column key, or a ColumnSet key index.
- * @param oData {Object} New data value for the cell.
- */
-updateCell : function(oRecord, oColumn, oData) {    
-    // Validate Column and Record
-    oColumn = (oColumn instanceof YAHOO.widget.Column) ? oColumn : this.getColumn(oColumn);
-    if(oColumn && oColumn.getField() && (oRecord instanceof YAHOO.widget.Record)) {
-        var sKey = oColumn.getField(),
-        
-        // Copy data from the Record for the event that gets fired later
-        //var oldData = YAHOO.widget.DataTable._cloneObject(oRecord.getData());
-            oldData = oRecord.getData(sKey);
-
-        // Update Record with new data
-        this._oRecordSet.updateRecordValue(oRecord, sKey, oData);
-    
-        // Update the TD only if row is on current page
-        var elTd = this.getTdEl({record: oRecord, column: oColumn});
-        if(elTd) {
-            this._oChainRender.add({
-                method: function() {
-                    if((this instanceof DT) && this._sId) {
-                        this.formatCell(elTd.firstChild);
-                        this.fireEvent("cellUpdateEvent", {record:oRecord, column: oColumn, oldData:oldData});
-                    }
-                },
-                scope: this,
-                timeout: (this.get("renderLoopSize") > 0) ? 0 : -1
-            });
-            this._runRenderChain();
-        }
-        else {
-            this.fireEvent("cellUpdateEvent", {record:oRecord, column: oColumn, oldData:oldData});
-        }
-    }
-},
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-// PAGINATION
-/**
- * Method executed during set() operation for the "paginator" attribute.
- * Adds and/or severs event listeners between DataTable and Paginator
- *
- * @method _updatePaginator
- * @param newPag {Paginator} Paginator instance (or null) for DataTable to use
- * @private
- */
-_updatePaginator : function (newPag) {
-    var oldPag = this.get('paginator');
-    if (oldPag && newPag !== oldPag) {
-        oldPag.unsubscribe('changeRequest', this.onPaginatorChangeRequest, this, true);
-    }
-    if (newPag) {
-        newPag.subscribe('changeRequest', this.onPaginatorChangeRequest, this, true);
-    }
-},
-
-/**
- * Update the UI infrastructure in response to a "paginator" attribute change.
- *
- * @method _handlePaginatorChange
- * @param e {Object} Change event object containing keys 'type','newValue',
- *                   and 'prevValue'
- * @private
- */
-_handlePaginatorChange : function (e) {
-    if (e.prevValue === e.newValue) { return; }
-
-    var newPag     = e.newValue,
-        oldPag     = e.prevValue,
-        containers = this._defaultPaginatorContainers();
-
-    if (oldPag) {
-        if (oldPag.getContainerNodes()[0] == containers[0]) {
-            oldPag.set('containers',[]);
-        }
-        oldPag.destroy();
-
-        // Convenience: share the default containers if possible.
-        // Otherwise, remove the default containers from the DOM.
-        if (containers[0]) {
-            if (newPag && !newPag.getContainerNodes().length) {
-                newPag.set('containers',containers);
-            } else {
-                // No new Paginator to use existing containers, OR new
-                // Paginator has configured containers.
-                for (var i = containers.length - 1; i >= 0; --i) {
-                    if (containers[i]) {
-                        containers[i].parentNode.removeChild(containers[i]);
-                    }
-                }
-            }
-        }
-    }
-
-    if (!this._bInit) {
-        this.render();
-
-    }
-
-    if (newPag) {
-        this.renderPaginator();
-    }
-
-},
-
-/**
- * Returns the default containers used for Paginators.  If create param is
- * passed, the containers will be created and added to the DataTable container.
- *
- * @method _defaultPaginatorContainers
- * @param create {boolean} Create the default containers if not found
- * @private
- */
-_defaultPaginatorContainers : function (create) {
-    var above_id = this._sId + '-paginator0',
-        below_id = this._sId + '-paginator1',
-        above    = Dom.get(above_id),
-        below    = Dom.get(below_id);
-
-    if (create && (!above || !below)) {
-        // One above and one below the table
-        if (!above) {
-            above    = document.createElement('div');
-            above.id = above_id;
-            Dom.addClass(above, DT.CLASS_PAGINATOR);
-
-            this._elContainer.insertBefore(above,this._elContainer.firstChild);
-        }
-
-        if (!below) {
-            below    = document.createElement('div');
-            below.id = below_id;
-            Dom.addClass(below, DT.CLASS_PAGINATOR);
-
-            this._elContainer.appendChild(below);
-        }
-    }
-
-    return [above,below];
-},
-
-/**
- * Calls Paginator's destroy() method
- *
- * @method _destroyPaginator
- * @private
- */
-_destroyPaginator : function () {
-    var oldPag = this.get('paginator');
-    if (oldPag) {
-        oldPag.destroy();
-    }
-},
-
-/**
- * Renders the Paginator to the DataTable UI
- *
- * @method renderPaginator
- */
-renderPaginator : function () {
-    var pag = this.get("paginator");
-    if (!pag) { return; }
-
-    // Add the containers if the Paginator is not configured with containers
-    if (!pag.getContainerNodes().length) {
-        pag.set('containers',this._defaultPaginatorContainers(true));
-    }
-
-    pag.render();
-},
-
-/**
- * Overridable method gives implementers a hook to show loading message before
- * changing Paginator value.
- *
- * @method doBeforePaginatorChange
- * @param oPaginatorState {Object} An object literal describing the proposed pagination state.
- * @return {Boolean} Return true to continue changing Paginator value.
- */
-doBeforePaginatorChange : function(oPaginatorState) {
-    this.showTableMessage(this.get("MSG_LOADING"), DT.CLASS_LOADING);
-    return true;
-},
-
-/**
- * Responds to new Pagination states. By default, updates the UI to reflect the
- * new state. If "dynamicData" is true, current selections are purged before
- * a request is sent to the DataSource for data for the new state (using the
- * request returned by "generateRequest()").
- *  
- * @method onPaginatorChangeRequest
- * @param oPaginatorState {Object} An object literal describing the proposed pagination state.
- */
-onPaginatorChangeRequest : function (oPaginatorState) {
-    var ok = this.doBeforePaginatorChange(oPaginatorState);
-    if(ok) {
-        // Server-side pagination
-        if(this.get("dynamicData")) {
-            // Get the current state
-            var oState = this.getState();
-            
-            // Update pagination values
-            oState.pagination = oPaginatorState;
-    
-            // Get the request for the new state
-            var request = this.get("generateRequest")(oState, this);
-            
-            // Purge selections
-            this.unselectAllRows();
-            this.unselectAllCells();
-            
-            // Get the new data from the server
-            var callback = {
-                success : this.onDataReturnSetRows,
-                failure : this.onDataReturnSetRows,
-                argument : oState, // Pass along the new state to the callback
-                scope : this
-            };
-            this._oDataSource.sendRequest(request, callback);
-        }
-        // Client-side pagination
-        else {
-            // Set the core pagination values silently (the second param)
-            // to avoid looping back through the changeRequest mechanism
-            oPaginatorState.paginator.setStartIndex(oPaginatorState.recordOffset,true);
-            oPaginatorState.paginator.setRowsPerPage(oPaginatorState.rowsPerPage,true);
-    
-            // Update the UI
-            this.render();
-        }
-    }
-    else {
-    }
-},
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-// SELECTION/HIGHLIGHTING
-
-/*
- * Reference to last highlighted cell element
- *
- * @property _elLastHighlightedTd
- * @type HTMLElement
- * @private
- */
-_elLastHighlightedTd : null,
-
-/*
- * ID string of last highlighted row element
- *
- * @property _sLastHighlightedTrElId
- * @type String
- * @private
- */
-//_sLastHighlightedTrElId : null,
-
-/**
- * Array to track row selections (by sRecordId) and/or cell selections
- * (by {recordId:sRecordId, columnKey:sColumnKey})
- *
- * @property _aSelections
- * @type Object[]
- * @private
- */
-_aSelections : null,
-
-/**
- * Record instance of the row selection anchor.
- *
- * @property _oAnchorRecord
- * @type YAHOO.widget.Record
- * @private
- */
-_oAnchorRecord : null,
-
-/**
- * Object literal representing cell selection anchor:
- * {recordId:sRecordId, columnKey:sColumnKey}.
- *
- * @property _oAnchorCell
- * @type Object
- * @private
- */
-_oAnchorCell : null,
-
-/**
- * Convenience method to remove the class YAHOO.widget.DataTable.CLASS_SELECTED
- * from all TR elements on the page.
- *
- * @method _unselectAllTrEls
- * @private
- */
-_unselectAllTrEls : function() {
-    var selectedRows = Dom.getElementsByClassName(DT.CLASS_SELECTED,"tr",this._elTbody);
-    Dom.removeClass(selectedRows, DT.CLASS_SELECTED);
-},
-
-/**
- * Returns object literal of values that represent the selection trigger. Used
- * to determine selection behavior resulting from a key event.
- *
- * @method _getSelectionTrigger
- * @private
- */
-_getSelectionTrigger : function() {
-    var sMode = this.get("selectionMode");
-    var oTrigger = {};
-    var oTriggerCell, oTriggerRecord, nTriggerRecordIndex, elTriggerRow, nTriggerTrIndex;
-
-    // Cell mode
-    if((sMode == "cellblock") || (sMode == "cellrange") || (sMode == "singlecell")) {
-        oTriggerCell = this.getLastSelectedCell();
-        // No selected cells found
-        if(!oTriggerCell) {
-            return null;
-        }
-        else {
-            oTriggerRecord = this.getRecord(oTriggerCell.recordId);
-            nTriggerRecordIndex = this.getRecordIndex(oTriggerRecord);
-            elTriggerRow = this.getTrEl(oTriggerRecord);
-            nTriggerTrIndex = this.getTrIndex(elTriggerRow);
-
-            // Selected cell not found on this page
-            if(nTriggerTrIndex === null) {
-                return null;
-            }
-            else {
-                oTrigger.record = oTriggerRecord;
-                oTrigger.recordIndex = nTriggerRecordIndex;
-                oTrigger.el = this.getTdEl(oTriggerCell);
-                oTrigger.trIndex = nTriggerTrIndex;
-                oTrigger.column = this.getColumn(oTriggerCell.columnKey);
-                oTrigger.colKeyIndex = oTrigger.column.getKeyIndex();
-                oTrigger.cell = oTriggerCell;
-                return oTrigger;
-            }
-        }
-    }
-    // Row mode
-    else {
-        oTriggerRecord = this.getLastSelectedRecord();
-        // No selected rows found
-        if(!oTriggerRecord) {
-                return null;
-        }
-        else {
-            // Selected row found, but is it on current page?
-            oTriggerRecord = this.getRecord(oTriggerRecord);
-            nTriggerRecordIndex = this.getRecordIndex(oTriggerRecord);
-            elTriggerRow = this.getTrEl(oTriggerRecord);
-            nTriggerTrIndex = this.getTrIndex(elTriggerRow);
-
-            // Selected row not found on this page
-            if(nTriggerTrIndex === null) {
-                return null;
-            }
-            else {
-                oTrigger.record = oTriggerRecord;
-                oTrigger.recordIndex = nTriggerRecordIndex;
-                oTrigger.el = elTriggerRow;
-                oTrigger.trIndex = nTriggerTrIndex;
-                return oTrigger;
-            }
-        }
-    }
-},
-
-/**
- * Returns object literal of values that represent the selection anchor. Used
- * to determine selection behavior resulting from a user event.
- *
- * @method _getSelectionAnchor
- * @param oTrigger {Object} (Optional) Object literal of selection trigger values
- * (for key events).
- * @private
- */
-_getSelectionAnchor : function(oTrigger) {
-    var sMode = this.get("selectionMode");
-    var oAnchor = {};
-    var oAnchorRecord, nAnchorRecordIndex, nAnchorTrIndex;
-
-    // Cell mode
-    if((sMode == "cellblock") || (sMode == "cellrange") || (sMode == "singlecell")) {
-        // Validate anchor cell
-        var oAnchorCell = this._oAnchorCell;
-        if(!oAnchorCell) {
-            if(oTrigger) {
-                oAnchorCell = this._oAnchorCell = oTrigger.cell;
-            }
-            else {
-                return null;
-            }
-        }
-        oAnchorRecord = this._oAnchorCell.record;
-        nAnchorRecordIndex = this._oRecordSet.getRecordIndex(oAnchorRecord);
-        nAnchorTrIndex = this.getTrIndex(oAnchorRecord);
-        // If anchor cell is not on this page...
-        if(nAnchorTrIndex === null) {
-            // ...set TR index equal to top TR
-            if(nAnchorRecordIndex < this.getRecordIndex(this.getFirstTrEl())) {
-                nAnchorTrIndex = 0;
-            }
-            // ...set TR index equal to bottom TR
-            else {
-                nAnchorTrIndex = this.getRecordIndex(this.getLastTrEl());
-            }
-        }
-
-        oAnchor.record = oAnchorRecord;
-        oAnchor.recordIndex = nAnchorRecordIndex;
-        oAnchor.trIndex = nAnchorTrIndex;
-        oAnchor.column = this._oAnchorCell.column;
-        oAnchor.colKeyIndex = oAnchor.column.getKeyIndex();
-        oAnchor.cell = oAnchorCell;
-        return oAnchor;
-    }
-    // Row mode
-    else {
-        oAnchorRecord = this._oAnchorRecord;
-        if(!oAnchorRecord) {
-            if(oTrigger) {
-                oAnchorRecord = this._oAnchorRecord = oTrigger.record;
-            }
-            else {
-                return null;
-            }
-        }
-
-        nAnchorRecordIndex = this.getRecordIndex(oAnchorRecord);
-        nAnchorTrIndex = this.getTrIndex(oAnchorRecord);
-        // If anchor row is not on this page...
-        if(nAnchorTrIndex === null) {
-            // ...set TR index equal to top TR
-            if(nAnchorRecordIndex < this.getRecordIndex(this.getFirstTrEl())) {
-                nAnchorTrIndex = 0;
-            }
-            // ...set TR index equal to bottom TR
-            else {
-                nAnchorTrIndex = this.getRecordIndex(this.getLastTrEl());
-            }
-        }
-
-        oAnchor.record = oAnchorRecord;
-        oAnchor.recordIndex = nAnchorRecordIndex;
-        oAnchor.trIndex = nAnchorTrIndex;
-        return oAnchor;
-    }
-},
-
-/**
- * Determines selection behavior resulting from a mouse event when selection mode
- * is set to "standard".
- *
- * @method _handleStandardSelectionByMouse
- * @param oArgs.event {HTMLEvent} Event object.
- * @param oArgs.target {HTMLElement} Target element.
- * @private
- */
-_handleStandardSelectionByMouse : function(oArgs) {
-    var elTarget = oArgs.target;
-
-    // Validate target row
-    var elTargetRow = this.getTrEl(elTarget);
-    if(elTargetRow) {
-        var e = oArgs.event;
-        var bSHIFT = e.shiftKey;
-        var bCTRL = e.ctrlKey || ((navigator.userAgent.toLowerCase().indexOf("mac") != -1) && e.metaKey);
-
-        var oTargetRecord = this.getRecord(elTargetRow);
-        var nTargetRecordIndex = this._oRecordSet.getRecordIndex(oTargetRecord);
-
-        var oAnchor = this._getSelectionAnchor();
-
-        var i;
-
-        // Both SHIFT and CTRL
-        if(bSHIFT && bCTRL) {
-            // Validate anchor
-            if(oAnchor) {
-                if(this.isSelected(oAnchor.record)) {
-                    // Select all rows between anchor row and target row, including target row
-                    if(oAnchor.recordIndex < nTargetRecordIndex) {
-                        for(i=oAnchor.recordIndex+1; i<=nTargetRecordIndex; i++) {
-                            if(!this.isSelected(i)) {
-                                this.selectRow(i);
-                            }
-                        }
-                    }
-                    // Select all rows between target row and anchor row, including target row
-                    else {
-                        for(i=oAnchor.recordIndex-1; i>=nTargetRecordIndex; i--) {
-                            if(!this.isSelected(i)) {
-                                this.selectRow(i);
-                            }
-                        }
-                    }
-                }
-                else {
-                    // Unselect all rows between anchor row and target row
-                    if(oAnchor.recordIndex < nTargetRecordIndex) {
-                        for(i=oAnchor.recordIndex+1; i<=nTargetRecordIndex-1; i++) {
-                            if(this.isSelected(i)) {
-                                this.unselectRow(i);
-                            }
-                        }
-                    }
-                    // Unselect all rows between target row and anchor row
-                    else {
-                        for(i=nTargetRecordIndex+1; i<=oAnchor.recordIndex-1; i++) {
-                            if(this.isSelected(i)) {
-                                this.unselectRow(i);
-                            }
-                        }
-                    }
-                    // Select the target row
-                    this.selectRow(oTargetRecord);
-                }
-            }
-            // Invalid anchor
-            else {
-                // Set anchor
-                this._oAnchorRecord = oTargetRecord;
-
-                // Toggle selection of target
-                if(this.isSelected(oTargetRecord)) {
-                    this.unselectRow(oTargetRecord);
-                }
-                else {
-                    this.selectRow(oTargetRecord);
-                }
-            }
-        }
-         // Only SHIFT
-        else if(bSHIFT) {
-            this.unselectAllRows();
-
-            // Validate anchor
-            if(oAnchor) {
-                // Select all rows between anchor row and target row,
-                // including the anchor row and target row
-                if(oAnchor.recordIndex < nTargetRecordIndex) {
-                    for(i=oAnchor.recordIndex; i<=nTargetRecordIndex; i++) {
-                        this.selectRow(i);
-                    }
-                }
-                // Select all rows between target row and anchor row,
-                // including the target row and anchor row
-                else {
-                    for(i=oAnchor.recordIndex; i>=nTargetRecordIndex; i--) {
-                        this.selectRow(i);
-                    }
-                }
-            }
-            // Invalid anchor
-            else {
-                // Set anchor
-                this._oAnchorRecord = oTargetRecord;
-
-                // Select target row only
-                this.selectRow(oTargetRecord);
-            }
-        }
-        // Only CTRL
-        else if(bCTRL) {
-            // Set anchor
-            this._oAnchorRecord = oTargetRecord;
-
-            // Toggle selection of target
-            if(this.isSelected(oTargetRecord)) {
-                this.unselectRow(oTargetRecord);
-            }
-            else {
-                this.selectRow(oTargetRecord);
-            }
-        }
-        // Neither SHIFT nor CTRL
-        else {
-            this._handleSingleSelectionByMouse(oArgs);
-            return;
-        }
-    }
-},
-
-/**
- * Determines selection behavior resulting from a key event when selection mode
- * is set to "standard".
- *
- * @method _handleStandardSelectionByKey
- * @param e {HTMLEvent} Event object.
- * @private
- */
-_handleStandardSelectionByKey : function(e) {
-    var nKey = Ev.getCharCode(e);
-
-    if((nKey == 38) || (nKey == 40)) {
-        var bSHIFT = e.shiftKey;
-
-        // Validate trigger
-        var oTrigger = this._getSelectionTrigger();
-        // Arrow selection only works if last selected row is on current page
-        if(!oTrigger) {
-            return null;
-        }
-
-        Ev.stopEvent(e);
-
-        // Validate anchor
-        var oAnchor = this._getSelectionAnchor(oTrigger);
-
-        // Determine which direction we're going to
-        if(bSHIFT) {
-            // Selecting down away from anchor row
-            if((nKey == 40) && (oAnchor.recordIndex <= oTrigger.trIndex)) {
-                this.selectRow(this.getNextTrEl(oTrigger.el));
-            }
-            // Selecting up away from anchor row
-            else if((nKey == 38) && (oAnchor.recordIndex >= oTrigger.trIndex)) {
-                this.selectRow(this.getPreviousTrEl(oTrigger.el));
-            }
-            // Unselect trigger
-            else {
-                this.unselectRow(oTrigger.el);
-            }
-        }
-        else {
-            this._handleSingleSelectionByKey(e);
-        }
-    }
-},
-
-/**
- * Determines selection behavior resulting from a mouse event when selection mode
- * is set to "single".
- *
- * @method _handleSingleSelectionByMouse
- * @param oArgs.event {HTMLEvent} Event object.
- * @param oArgs.target {HTMLElement} Target element.
- * @private
- */
-_handleSingleSelectionByMouse : function(oArgs) {
-    var elTarget = oArgs.target;
-
-    // Validate target row
-    var elTargetRow = this.getTrEl(elTarget);
-    if(elTargetRow) {
-        var oTargetRecord = this.getRecord(elTargetRow);
-
-        // Set anchor
-        this._oAnchorRecord = oTargetRecord;
-
-        // Select only target
-        this.unselectAllRows();
-        this.selectRow(oTargetRecord);
-    }
-},
-
-/**
- * Determines selection behavior resulting from a key event when selection mode
- * is set to "single".
- *
- * @method _handleSingleSelectionByKey
- * @param e {HTMLEvent} Event object.
- * @private
- */
-_handleSingleSelectionByKey : function(e) {
-    var nKey = Ev.getCharCode(e);
-
-    if((nKey == 38) || (nKey == 40)) {
-        // Validate trigger
-        var oTrigger = this._getSelectionTrigger();
-        // Arrow selection only works if last selected row is on current page
-        if(!oTrigger) {
-            return null;
-        }
-
-        Ev.stopEvent(e);
-
-        // Determine the new row to select
-        var elNew;
-        if(nKey == 38) { // arrow up
-            elNew = this.getPreviousTrEl(oTrigger.el);
-
-            // Validate new row
-            if(elNew === null) {
-                //TODO: wrap around to last tr on current page
-                //elNew = this.getLastTrEl();
-
-                //TODO: wrap back to last tr of previous page
-
-                // Top row selection is sticky
-                elNew = this.getFirstTrEl();
-            }
-        }
-        else if(nKey == 40) { // arrow down
-            elNew = this.getNextTrEl(oTrigger.el);
-
-            // Validate new row
-            if(elNew === null) {
-                //TODO: wrap around to first tr on current page
-                //elNew = this.getFirstTrEl();
-
-                //TODO: wrap forward to first tr of previous page
-
-                // Bottom row selection is sticky
-                elNew = this.getLastTrEl();
-            }
-        }
-
-        // Unselect all rows
-        this.unselectAllRows();
-
-        // Select the new row
-        this.selectRow(elNew);
-
-        // Set new anchor
-        this._oAnchorRecord = this.getRecord(elNew);
-    }
-},
-
-/**
- * Determines selection behavior resulting from a mouse event when selection mode
- * is set to "cellblock".
- *
- * @method _handleCellBlockSelectionByMouse
- * @param oArgs.event {HTMLEvent} Event object.
- * @param oArgs.target {HTMLElement} Target element.
- * @private
- */
-_handleCellBlockSelectionByMouse : function(oArgs) {
-    var elTarget = oArgs.target;
-
-    // Validate target cell
-    var elTargetCell = this.getTdEl(elTarget);
-    if(elTargetCell) {
-        var e = oArgs.event;
-        var bSHIFT = e.shiftKey;
-        var bCTRL = e.ctrlKey || ((navigator.userAgent.toLowerCase().indexOf("mac") != -1) && e.metaKey);
-
-        var elTargetRow = this.getTrEl(elTargetCell);
-        var nTargetTrIndex = this.getTrIndex(elTargetRow);
-        var oTargetColumn = this.getColumn(elTargetCell);
-        var nTargetColKeyIndex = oTargetColumn.getKeyIndex();
-        var oTargetRecord = this.getRecord(elTargetRow);
-        var nTargetRecordIndex = this._oRecordSet.getRecordIndex(oTargetRecord);
-        var oTargetCell = {record:oTargetRecord, column:oTargetColumn};
-
-        var oAnchor = this._getSelectionAnchor();
-
-        var allRows = this.getTbodyEl().rows;
-        var startIndex, endIndex, currentRow, i, j;
-
-        // Both SHIFT and CTRL
-        if(bSHIFT && bCTRL) {
-
-            // Validate anchor
-            if(oAnchor) {
-                // Anchor is selected
-                if(this.isSelected(oAnchor.cell)) {
-                    // All cells are on the same row
-                    if(oAnchor.recordIndex === nTargetRecordIndex) {
-                        // Select all cells between anchor cell and target cell, including target cell
-                        if(oAnchor.colKeyIndex < nTargetColKeyIndex) {
-                            for(i=oAnchor.colKeyIndex+1; i<=nTargetColKeyIndex; i++) {
-                                this.selectCell(elTargetRow.cells[i]);
-                            }
-                        }
-                        // Select all cells between target cell and anchor cell, including target cell
-                        else if(nTargetColKeyIndex < oAnchor.colKeyIndex) {
-                            for(i=nTargetColKeyIndex; i<oAnchor.colKeyIndex; i++) {
-                                this.selectCell(elTargetRow.cells[i]);
-                            }
-                        }
-                    }
-                    // Anchor row is above target row
-                    else if(oAnchor.recordIndex < nTargetRecordIndex) {
-                        startIndex = Math.min(oAnchor.colKeyIndex, nTargetColKeyIndex);
-                        endIndex = Math.max(oAnchor.colKeyIndex, nTargetColKeyIndex);
-
-                        // Select all cells from startIndex to endIndex on rows between anchor row and target row
-                        for(i=oAnchor.trIndex; i<=nTargetTrIndex; i++) {
-                            for(j=startIndex; j<=endIndex; j++) {
-                                this.selectCell(allRows[i].cells[j]);
-                            }
-                        }
-                    }
-                    // Anchor row is below target row
-                    else {
-                        startIndex = Math.min(oAnchor.trIndex, nTargetColKeyIndex);
-                        endIndex = Math.max(oAnchor.trIndex, nTargetColKeyIndex);
-
-                        // Select all cells from startIndex to endIndex on rows between target row and anchor row
-                        for(i=oAnchor.trIndex; i>=nTargetTrIndex; i--) {
-                            for(j=endIndex; j>=startIndex; j--) {
-                                this.selectCell(allRows[i].cells[j]);
-                            }
-                        }
-                    }
-                }
-                // Anchor cell is unselected
-                else {
-                    // All cells are on the same row
-                    if(oAnchor.recordIndex === nTargetRecordIndex) {
-                        // Unselect all cells between anchor cell and target cell
-                        if(oAnchor.colKeyIndex < nTargetColKeyIndex) {
-                            for(i=oAnchor.colKeyIndex+1; i<nTargetColKeyIndex; i++) {
-                                this.unselectCell(elTargetRow.cells[i]);
-                            }
-                        }
-                        // Select all cells between target cell and anchor cell
-                        else if(nTargetColKeyIndex < oAnchor.colKeyIndex) {
-                            for(i=nTargetColKeyIndex+1; i<oAnchor.colKeyIndex; i++) {
-                                this.unselectCell(elTargetRow.cells[i]);
-                            }
-                        }
-                    }
-                    // Anchor row is above target row
-                    if(oAnchor.recordIndex < nTargetRecordIndex) {
-                        // Unselect all cells from anchor cell to target cell
-                        for(i=oAnchor.trIndex; i<=nTargetTrIndex; i++) {
-                            currentRow = allRows[i];
-                            for(j=0; j<currentRow.cells.length; j++) {
-                                // This is the anchor row, only unselect cells after the anchor cell
-                                if(currentRow.sectionRowIndex === oAnchor.trIndex) {
-                                    if(j>oAnchor.colKeyIndex) {
-                                        this.unselectCell(currentRow.cells[j]);
-                                    }
-                                }
-                                // This is the target row, only unelect cells before the target cell
-                                else if(currentRow.sectionRowIndex === nTargetTrIndex) {
-                                    if(j<nTargetColKeyIndex) {
-                                        this.unselectCell(currentRow.cells[j]);
-                                    }
-                                }
-                                // Unselect all cells on this row
-                                else {
-                                    this.unselectCell(currentRow.cells[j]);
-                                }
-                            }
-                        }
-                    }
-                    // Anchor row is below target row
-                    else {
-                        // Unselect all cells from target cell to anchor cell
-                        for(i=nTargetTrIndex; i<=oAnchor.trIndex; i++) {
-                            currentRow = allRows[i];
-                            for(j=0; j<currentRow.cells.length; j++) {
-                                // This is the target row, only unselect cells after the target cell
-                                if(currentRow.sectionRowIndex == nTargetTrIndex) {
-                                    if(j>nTargetColKeyIndex) {
-                                        this.unselectCell(currentRow.cells[j]);
-                                    }
-                                }
-                                // This is the anchor row, only unselect cells before the anchor cell
-                                else if(currentRow.sectionRowIndex == oAnchor.trIndex) {
-                                    if(j<oAnchor.colKeyIndex) {
-                                        this.unselectCell(currentRow.cells[j]);
-                                    }
-                                }
-                                // Unselect all cells on this row
-                                else {
-                                    this.unselectCell(currentRow.cells[j]);
-                                }
-                            }
-                        }
-                    }
-
-                    // Select the target cell
-                    this.selectCell(elTargetCell);
-                }
-            }
-            // Invalid anchor
-            else {
-                // Set anchor
-                this._oAnchorCell = oTargetCell;
-
-                // Toggle selection of target
-                if(this.isSelected(oTargetCell)) {
-                    this.unselectCell(oTargetCell);
-                }
-                else {
-                    this.selectCell(oTargetCell);
-                }
-            }
-
-        }
-         // Only SHIFT
-        else if(bSHIFT) {
-            this.unselectAllCells();
-
-            // Validate anchor
-            if(oAnchor) {
-                // All cells are on the same row
-                if(oAnchor.recordIndex === nTargetRecordIndex) {
-                    // Select all cells between anchor cell and target cell,
-                    // including the anchor cell and target cell
-                    if(oAnchor.colKeyIndex < nTargetColKeyIndex) {
-                        for(i=oAnchor.colKeyIndex; i<=nTargetColKeyIndex; i++) {
-                            this.selectCell(elTargetRow.cells[i]);
-                        }
-                    }
-                    // Select all cells between target cell and anchor cell
-                    // including the target cell and anchor cell
-                    else if(nTargetColKeyIndex < oAnchor.colKeyIndex) {
-                        for(i=nTargetColKeyIndex; i<=oAnchor.colKeyIndex; i++) {
-                            this.selectCell(elTargetRow.cells[i]);
-                        }
-                    }
-                }
-                // Anchor row is above target row
-                else if(oAnchor.recordIndex < nTargetRecordIndex) {
-                    // Select the cellblock from anchor cell to target cell
-                    // including the anchor cell and the target cell
-                    startIndex = Math.min(oAnchor.colKeyIndex, nTargetColKeyIndex);
-                    endIndex = Math.max(oAnchor.colKeyIndex, nTargetColKeyIndex);
-
-                    for(i=oAnchor.trIndex; i<=nTargetTrIndex; i++) {
-                        for(j=startIndex; j<=endIndex; j++) {
-                            this.selectCell(allRows[i].cells[j]);
-                        }
-                    }
-                }
-                // Anchor row is below target row
-                else {
-                    // Select the cellblock from target cell to anchor cell
-                    // including the target cell and the anchor cell
-                    startIndex = Math.min(oAnchor.colKeyIndex, nTargetColKeyIndex);
-                    endIndex = Math.max(oAnchor.colKeyIndex, nTargetColKeyIndex);
-
-                    for(i=nTargetTrIndex; i<=oAnchor.trIndex; i++) {
-                        for(j=startIndex; j<=endIndex; j++) {
-                            this.selectCell(allRows[i].cells[j]);
-                        }
-                    }
-                }
-            }
-            // Invalid anchor
-            else {
-                // Set anchor
-                this._oAnchorCell = oTargetCell;
-
-                // Select target only
-                this.selectCell(oTargetCell);
-            }
-        }
-        // Only CTRL
-        else if(bCTRL) {
-
-            // Set anchor
-            this._oAnchorCell = oTargetCell;
-
-            // Toggle selection of target
-            if(this.isSelected(oTargetCell)) {
-                this.unselectCell(oTargetCell);
-            }
-            else {
-                this.selectCell(oTargetCell);
-            }
-
-        }
-        // Neither SHIFT nor CTRL
-        else {
-            this._handleSingleCellSelectionByMouse(oArgs);
-        }
-    }
-},
-
-/**
- * Determines selection behavior resulting from a key event when selection mode
- * is set to "cellblock".
- *
- * @method _handleCellBlockSelectionByKey
- * @param e {HTMLEvent} Event object.
- * @private
- */
-_handleCellBlockSelectionByKey : function(e) {
-    var nKey = Ev.getCharCode(e);
-    var bSHIFT = e.shiftKey;
-    if((nKey == 9) || !bSHIFT) {
-        this._handleSingleCellSelectionByKey(e);
-        return;
-    }
-
-    if((nKey > 36) && (nKey < 41)) {
-        // Validate trigger
-        var oTrigger = this._getSelectionTrigger();
-        // Arrow selection only works if last selected row is on current page
-        if(!oTrigger) {
-            return null;
-        }
-
-        Ev.stopEvent(e);
-
-        // Validate anchor
-        var oAnchor = this._getSelectionAnchor(oTrigger);
-
-        var i, startIndex, endIndex, elNew, elNewRow;
-        var allRows = this.getTbodyEl().rows;
-        var elThisRow = oTrigger.el.parentNode;
-
-        // Determine which direction we're going to
-
-        if(nKey == 40) { // arrow down
-            // Selecting away from anchor cell
-            if(oAnchor.recordIndex <= oTrigger.recordIndex) {
-                // Select the horiz block on the next row...
-                // ...making sure there is room below the trigger row
-                elNewRow = this.getNextTrEl(oTrigger.el);
-                if(elNewRow) {
-                    startIndex = oAnchor.colKeyIndex;
-                    endIndex = oTrigger.colKeyIndex;
-                    // ...going left
-                    if(startIndex > endIndex) {
-                        for(i=startIndex; i>=endIndex; i--) {
-                            elNew = elNewRow.cells[i];
-                            this.selectCell(elNew);
-                        }
-                    }
-                    // ... going right
-                    else {
-                        for(i=startIndex; i<=endIndex; i++) {
-                            elNew = elNewRow.cells[i];
-                            this.selectCell(elNew);
-                        }
-                    }
-                }
-            }
-            // Unselecting towards anchor cell
-            else {
-                startIndex = Math.min(oAnchor.colKeyIndex, oTrigger.colKeyIndex);
-                endIndex = Math.max(oAnchor.colKeyIndex, oTrigger.colKeyIndex);
-                // Unselect the horiz block on this row towards the next row
-                for(i=startIndex; i<=endIndex; i++) {
-                    this.unselectCell(elThisRow.cells[i]);
-                }
-            }
-        }
-        // Arrow up
-        else if(nKey == 38) {
-            // Selecting away from anchor cell
-            if(oAnchor.recordIndex >= oTrigger.recordIndex) {
-                // Select the horiz block on the previous row...
-                // ...making sure there is room
-                elNewRow = this.getPreviousTrEl(oTrigger.el);
-                if(elNewRow) {
-                    // Select in order from anchor to trigger...
-                    startIndex = oAnchor.colKeyIndex;
-                    endIndex = oTrigger.colKeyIndex;
-                    // ...going left
-                    if(startIndex > endIndex) {
-                        for(i=startIndex; i>=endIndex; i--) {
-                            elNew = elNewRow.cells[i];
-                            this.selectCell(elNew);
-                        }
-                    }
-                    // ... going right
-                    else {
-                        for(i=startIndex; i<=endIndex; i++) {
-                            elNew = elNewRow.cells[i];
-                            this.selectCell(elNew);
-                        }
-                    }
-                }
-            }
-            // Unselecting towards anchor cell
-            else {
-                startIndex = Math.min(oAnchor.colKeyIndex, oTrigger.colKeyIndex);
-                endIndex = Math.max(oAnchor.colKeyIndex, oTrigger.colKeyIndex);
-                // Unselect the horiz block on this row towards the previous row
-                for(i=startIndex; i<=endIndex; i++) {
-                    this.unselectCell(elThisRow.cells[i]);
-                }
-            }
-        }
-        // Arrow right
-        else if(nKey == 39) {
-            // Selecting away from anchor cell
-            if(oAnchor.colKeyIndex <= oTrigger.colKeyIndex) {
-                // Select the next vert block to the right...
-                // ...making sure there is room
-                if(oTrigger.colKeyIndex < elThisRow.cells.length-1) {
-                    // Select in order from anchor to trigger...
-                    startIndex = oAnchor.trIndex;
-                    endIndex = oTrigger.trIndex;
-                    // ...going up
-                    if(startIndex > endIndex) {
-                        for(i=startIndex; i>=endIndex; i--) {
-                            elNew = allRows[i].cells[oTrigger.colKeyIndex+1];
-                            this.selectCell(elNew);
-                        }
-                    }
-                    // ... going down
-                    else {
-                        for(i=startIndex; i<=endIndex; i++) {
-                            elNew = allRows[i].cells[oTrigger.colKeyIndex+1];
-                            this.selectCell(elNew);
-                        }
-                    }
-                }
-            }
-            // Unselecting towards anchor cell
-            else {
-                // Unselect the vert block on this column towards the right
-                startIndex = Math.min(oAnchor.trIndex, oTrigger.trIndex);
-                endIndex = Math.max(oAnchor.trIndex, oTrigger.trIndex);
-                for(i=startIndex; i<=endIndex; i++) {
-                    this.unselectCell(allRows[i].cells[oTrigger.colKeyIndex]);
-                }
-            }
-        }
-        // Arrow left
-        else if(nKey == 37) {
-            // Selecting away from anchor cell
-            if(oAnchor.colKeyIndex >= oTrigger.colKeyIndex) {
-                //Select the previous vert block to the left
-                if(oTrigger.colKeyIndex > 0) {
-                    // Select in order from anchor to trigger...
-                    startIndex = oAnchor.trIndex;
-                    endIndex = oTrigger.trIndex;
-                    // ...going up
-                    if(startIndex > endIndex) {
-                        for(i=startIndex; i>=endIndex; i--) {
-                            elNew = allRows[i].cells[oTrigger.colKeyIndex-1];
-                            this.selectCell(elNew);
-                        }
-                    }
-                    // ... going down
-                    else {
-                        for(i=startIndex; i<=endIndex; i++) {
-                            elNew = allRows[i].cells[oTrigger.colKeyIndex-1];
-                            this.selectCell(elNew);
-                        }
-                    }
-                }
-            }
-            // Unselecting towards anchor cell
-            else {
-                // Unselect the vert block on this column towards the left
-                startIndex = Math.min(oAnchor.trIndex, oTrigger.trIndex);
-                endIndex = Math.max(oAnchor.trIndex, oTrigger.trIndex);
-                for(i=startIndex; i<=endIndex; i++) {
-                    this.unselectCell(allRows[i].cells[oTrigger.colKeyIndex]);
-                }
-            }
-        }
-    }
-},
-
-/**
- * Determines selection behavior resulting from a mouse event when selection mode
- * is set to "cellrange".
- *
- * @method _handleCellRangeSelectionByMouse
- * @param oArgs.event {HTMLEvent} Event object.
- * @param oArgs.target {HTMLElement} Target element.
- * @private
- */
-_handleCellRangeSelectionByMouse : function(oArgs) {
-    var elTarget = oArgs.target;
-
-    // Validate target cell
-    var elTargetCell = this.getTdEl(elTarget);
-    if(elTargetCell) {
-        var e = oArgs.event;
-        var bSHIFT = e.shiftKey;
-        var bCTRL = e.ctrlKey || ((navigator.userAgent.toLowerCase().indexOf("mac") != -1) && e.metaKey);
-
-        var elTargetRow = this.getTrEl(elTargetCell);
-        var nTargetTrIndex = this.getTrIndex(elTargetRow);
-        var oTargetColumn = this.getColumn(elTargetCell);
-        var nTargetColKeyIndex = oTargetColumn.getKeyIndex();
-        var oTargetRecord = this.getRecord(elTargetRow);
-        var nTargetRecordIndex = this._oRecordSet.getRecordIndex(oTargetRecord);
-        var oTargetCell = {record:oTargetRecord, column:oTargetColumn};
-
-        var oAnchor = this._getSelectionAnchor();
-
-        var allRows = this.getTbodyEl().rows;
-        var currentRow, i, j;
-
-        // Both SHIFT and CTRL
-        if(bSHIFT && bCTRL) {
-
-            // Validate anchor
-            if(oAnchor) {
-                // Anchor is selected
-                if(this.isSelected(oAnchor.cell)) {
-                    // All cells are on the same row
-                    if(oAnchor.recordIndex === nTargetRecordIndex) {
-                        // Select all cells between anchor cell and target cell, including target cell
-                        if(oAnchor.colKeyIndex < nTargetColKeyIndex) {
-                            for(i=oAnchor.colKeyIndex+1; i<=nTargetColKeyIndex; i++) {
-                                this.selectCell(elTargetRow.cells[i]);
-                            }
-                        }
-                        // Select all cells between target cell and anchor cell, including target cell
-                        else if(nTargetColKeyIndex < oAnchor.colKeyIndex) {
-                            for(i=nTargetColKeyIndex; i<oAnchor.colKeyIndex; i++) {
-                                this.selectCell(elTargetRow.cells[i]);
-                            }
-                        }
-                    }
-                    // Anchor row is above target row
-                    else if(oAnchor.recordIndex < nTargetRecordIndex) {
-                        // Select all cells on anchor row from anchor cell to the end of the row
-                        for(i=oAnchor.colKeyIndex+1; i<elTargetRow.cells.length; i++) {
-                            this.selectCell(elTargetRow.cells[i]);
-                        }
-
-                        // Select all cells on all rows between anchor row and target row
-                        for(i=oAnchor.trIndex+1; i<nTargetTrIndex; i++) {
-                            for(j=0; j<allRows[i].cells.length; j++){
-                                this.selectCell(allRows[i].cells[j]);
-                            }
-                        }
-
-                        // Select all cells on target row from first cell to the target cell
-                        for(i=0; i<=nTargetColKeyIndex; i++) {
-                            this.selectCell(elTargetRow.cells[i]);
-                        }
-                    }
-                    // Anchor row is below target row
-                    else {
-                        // Select all cells on target row from target cell to the end of the row
-                        for(i=nTargetColKeyIndex; i<elTargetRow.cells.length; i++) {
-                            this.selectCell(elTargetRow.cells[i]);
-                        }
-
-                        // Select all cells on all rows between target row and anchor row
-                        for(i=nTargetTrIndex+1; i<oAnchor.trIndex; i++) {
-                            for(j=0; j<allRows[i].cells.length; j++){
-                                this.selectCell(allRows[i].cells[j]);
-                            }
-                        }
-
-                        // Select all cells on anchor row from first cell to the anchor cell
-                        for(i=0; i<oAnchor.colKeyIndex; i++) {
-                            this.selectCell(elTargetRow.cells[i]);
-                        }
-                    }
-                }
-                // Anchor cell is unselected
-                else {
-                    // All cells are on the same row
-                    if(oAnchor.recordIndex === nTargetRecordIndex) {
-                        // Unselect all cells between anchor cell and target cell
-                        if(oAnchor.colKeyIndex < nTargetColKeyIndex) {
-                            for(i=oAnchor.colKeyIndex+1; i<nTargetColKeyIndex; i++) {
-                                this.unselectCell(elTargetRow.cells[i]);
-                            }
-                        }
-                        // Select all cells between target cell and anchor cell
-                        else if(nTargetColKeyIndex < oAnchor.colKeyIndex) {
-                            for(i=nTargetColKeyIndex+1; i<oAnchor.colKeyIndex; i++) {
-                                this.unselectCell(elTargetRow.cells[i]);
-                            }
-                        }
-                    }
-                    // Anchor row is above target row
-                    if(oAnchor.recordIndex < nTargetRecordIndex) {
-                        // Unselect all cells from anchor cell to target cell
-                        for(i=oAnchor.trIndex; i<=nTargetTrIndex; i++) {
-                            currentRow = allRows[i];
-                            for(j=0; j<currentRow.cells.length; j++) {
-                                // This is the anchor row, only unselect cells after the anchor cell
-                                if(currentRow.sectionRowIndex === oAnchor.trIndex) {
-                                    if(j>oAnchor.colKeyIndex) {
-                                        this.unselectCell(currentRow.cells[j]);
-                                    }
-                                }
-                                // This is the target row, only unelect cells before the target cell
-                                else if(currentRow.sectionRowIndex === nTargetTrIndex) {
-                                    if(j<nTargetColKeyIndex) {
-                                        this.unselectCell(currentRow.cells[j]);
-                                    }
-                                }
-                                // Unselect all cells on this row
-                                else {
-                                    this.unselectCell(currentRow.cells[j]);
-                                }
-                            }
-                        }
-                    }
-                    // Anchor row is below target row
-                    else {
-                        // Unselect all cells from target cell to anchor cell
-                        for(i=nTargetTrIndex; i<=oAnchor.trIndex; i++) {
-                            currentRow = allRows[i];
-                            for(j=0; j<currentRow.cells.length; j++) {
-                                // This is the target row, only unselect cells after the target cell
-                                if(currentRow.sectionRowIndex == nTargetTrIndex) {
-                                    if(j>nTargetColKeyIndex) {
-                                        this.unselectCell(currentRow.cells[j]);
-                                    }
-                                }
-                                // This is the anchor row, only unselect cells before the anchor cell
-                                else if(currentRow.sectionRowIndex == oAnchor.trIndex) {
-                                    if(j<oAnchor.colKeyIndex) {
-                                        this.unselectCell(currentRow.cells[j]);
-                                    }
-                                }
-                                // Unselect all cells on this row
-                                else {
-                                    this.unselectCell(currentRow.cells[j]);
-                                }
-                            }
-                        }
-                    }
-
-                    // Select the target cell
-                    this.selectCell(elTargetCell);
-                }
-            }
-            // Invalid anchor
-            else {
-                // Set anchor
-                this._oAnchorCell = oTargetCell;
-
-                // Toggle selection of target
-                if(this.isSelected(oTargetCell)) {
-                    this.unselectCell(oTargetCell);
-                }
-                else {
-                    this.selectCell(oTargetCell);
-                }
-            }
-        }
-         // Only SHIFT
-        else if(bSHIFT) {
-
-            this.unselectAllCells();
-
-            // Validate anchor
-            if(oAnchor) {
-                // All cells are on the same row
-                if(oAnchor.recordIndex === nTargetRecordIndex) {
-                    // Select all cells between anchor cell and target cell,
-                    // including the anchor cell and target cell
-                    if(oAnchor.colKeyIndex < nTargetColKeyIndex) {
-                        for(i=oAnchor.colKeyIndex; i<=nTargetColKeyIndex; i++) {
-                            this.selectCell(elTargetRow.cells[i]);
-                        }
-                    }
-                    // Select all cells between target cell and anchor cell
-                    // including the target cell and anchor cell
-                    else if(nTargetColKeyIndex < oAnchor.colKeyIndex) {
-                        for(i=nTargetColKeyIndex; i<=oAnchor.colKeyIndex; i++) {
-                            this.selectCell(elTargetRow.cells[i]);
-                        }
-                    }
-                }
-                // Anchor row is above target row
-                else if(oAnchor.recordIndex < nTargetRecordIndex) {
-                    // Select all cells from anchor cell to target cell
-                    // including the anchor cell and target cell
-                    for(i=oAnchor.trIndex; i<=nTargetTrIndex; i++) {
-                        currentRow = allRows[i];
-                        for(j=0; j<currentRow.cells.length; j++) {
-                            // This is the anchor row, only select the anchor cell and after
-                            if(currentRow.sectionRowIndex == oAnchor.trIndex) {
-                                if(j>=oAnchor.colKeyIndex) {
-                                    this.selectCell(currentRow.cells[j]);
-                                }
-                            }
-                            // This is the target row, only select the target cell and before
-                            else if(currentRow.sectionRowIndex == nTargetTrIndex) {
-                                if(j<=nTargetColKeyIndex) {
-                                    this.selectCell(currentRow.cells[j]);
-                                }
-                            }
-                            // Select all cells on this row
-                            else {
-                                this.selectCell(currentRow.cells[j]);
-                            }
-                        }
-                    }
-                }
-                // Anchor row is below target row
-                else {
-                    // Select all cells from target cell to anchor cell,
-                    // including the target cell and anchor cell
-                    for(i=nTargetTrIndex; i<=oAnchor.trIndex; i++) {
-                        currentRow = allRows[i];
-                        for(j=0; j<currentRow.cells.length; j++) {
-                            // This is the target row, only select the target cell and after
-                            if(currentRow.sectionRowIndex == nTargetTrIndex) {
-                                if(j>=nTargetColKeyIndex) {
-                                    this.selectCell(currentRow.cells[j]);
-                                }
-                            }
-                            // This is the anchor row, only select the anchor cell and before
-                            else if(currentRow.sectionRowIndex == oAnchor.trIndex) {
-                                if(j<=oAnchor.colKeyIndex) {
-                                    this.selectCell(currentRow.cells[j]);
-                                }
-                            }
-                            // Select all cells on this row
-                            else {
-                                this.selectCell(currentRow.cells[j]);
-                            }
-                        }
-                    }
-                }
-            }
-            // Invalid anchor
-            else {
-                // Set anchor
-                this._oAnchorCell = oTargetCell;
-
-                // Select target only
-                this.selectCell(oTargetCell);
-            }
-
-
-        }
-        // Only CTRL
-        else if(bCTRL) {
-
-            // Set anchor
-            this._oAnchorCell = oTargetCell;
-
-            // Toggle selection of target
-            if(this.isSelected(oTargetCell)) {
-                this.unselectCell(oTargetCell);
-            }
-            else {
-                this.selectCell(oTargetCell);
-            }
-
-        }
-        // Neither SHIFT nor CTRL
-        else {
-            this._handleSingleCellSelectionByMouse(oArgs);
-        }
-    }
-},
-
-/**
- * Determines selection behavior resulting from a key event when selection mode
- * is set to "cellrange".
- *
- * @method _handleCellRangeSelectionByKey
- * @param e {HTMLEvent} Event object.
- * @private
- */
-_handleCellRangeSelectionByKey : function(e) {
-    var nKey = Ev.getCharCode(e);
-    var bSHIFT = e.shiftKey;
-    if((nKey == 9) || !bSHIFT) {
-        this._handleSingleCellSelectionByKey(e);
-        return;
-    }
-
-    if((nKey > 36) && (nKey < 41)) {
-        // Validate trigger
-        var oTrigger = this._getSelectionTrigger();
-        // Arrow selection only works if last selected row is on current page
-        if(!oTrigger) {
-            return null;
-        }
-
-        Ev.stopEvent(e);
-
-        // Validate anchor
-        var oAnchor = this._getSelectionAnchor(oTrigger);
-
-        var i, elNewRow, elNew;
-        var allRows = this.getTbodyEl().rows;
-        var elThisRow = oTrigger.el.parentNode;
-
-        // Arrow down
-        if(nKey == 40) {
-            elNewRow = this.getNextTrEl(oTrigger.el);
-
-            // Selecting away from anchor cell
-            if(oAnchor.recordIndex <= oTrigger.recordIndex) {
-                // Select all cells to the end of this row
-                for(i=oTrigger.colKeyIndex+1; i<elThisRow.cells.length; i++){
-                    elNew = elThisRow.cells[i];
-                    this.selectCell(elNew);
-                }
-
-                // Select some of the cells on the next row down
-                if(elNewRow) {
-                    for(i=0; i<=oTrigger.colKeyIndex; i++){
-                        elNew = elNewRow.cells[i];
-                        this.selectCell(elNew);
-                    }
-                }
-            }
-            // Unselecting towards anchor cell
-            else {
-                // Unselect all cells to the end of this row
-                for(i=oTrigger.colKeyIndex; i<elThisRow.cells.length; i++){
-                    this.unselectCell(elThisRow.cells[i]);
-                }
-
-                // Unselect some of the cells on the next row down
-                if(elNewRow) {
-                    for(i=0; i<oTrigger.colKeyIndex; i++){
-                        this.unselectCell(elNewRow.cells[i]);
-                    }
-                }
-            }
-        }
-        // Arrow up
-        else if(nKey == 38) {
-            elNewRow = this.getPreviousTrEl(oTrigger.el);
-
-            // Selecting away from anchor cell
-            if(oAnchor.recordIndex >= oTrigger.recordIndex) {
-                // Select all the cells to the beginning of this row
-                for(i=oTrigger.colKeyIndex-1; i>-1; i--){
-                    elNew = elThisRow.cells[i];
-                    this.selectCell(elNew);
-                }
-
-                // Select some of the cells from the end of the previous row
-                if(elNewRow) {
-                    for(i=elThisRow.cells.length-1; i>=oTrigger.colKeyIndex; i--){
-                        elNew = elNewRow.cells[i];
-                        this.selectCell(elNew);
-                    }
-                }
-            }
-            // Unselecting towards anchor cell
-            else {
-                // Unselect all the cells to the beginning of this row
-                for(i=oTrigger.colKeyIndex; i>-1; i--){
-                    this.unselectCell(elThisRow.cells[i]);
-                }
-
-                // Unselect some of the cells from the end of the previous row
-                if(elNewRow) {
-                    for(i=elThisRow.cells.length-1; i>oTrigger.colKeyIndex; i--){
-                        this.unselectCell(elNewRow.cells[i]);
-                    }
-                }
-            }
-        }
-        // Arrow right
-        else if(nKey == 39) {
-            elNewRow = this.getNextTrEl(oTrigger.el);
-
-            // Selecting away from anchor cell
-            if(oAnchor.recordIndex < oTrigger.recordIndex) {
-                // Select the next cell to the right
-                if(oTrigger.colKeyIndex < elThisRow.cells.length-1) {
-                    elNew = elThisRow.cells[oTrigger.colKeyIndex+1];
-                    this.selectCell(elNew);
-                }
-                // Select the first cell of the next row
-                else if(elNewRow) {
-                    elNew = elNewRow.cells[0];
-                    this.selectCell(elNew);
-                }
-            }
-            // Unselecting towards anchor cell
-            else if(oAnchor.recordIndex > oTrigger.recordIndex) {
-                this.unselectCell(elThisRow.cells[oTrigger.colKeyIndex]);
-
-                // Unselect this cell towards the right
-                if(oTrigger.colKeyIndex < elThisRow.cells.length-1) {
-                }
-                // Unselect this cells towards the first cell of the next row
-                else {
-                }
-            }
-            // Anchor is on this row
-            else {
-                // Selecting away from anchor
-                if(oAnchor.colKeyIndex <= oTrigger.colKeyIndex) {
-                    // Select the next cell to the right
-                    if(oTrigger.colKeyIndex < elThisRow.cells.length-1) {
-                        elNew = elThisRow.cells[oTrigger.colKeyIndex+1];
-                        this.selectCell(elNew);
-                    }
-                    // Select the first cell on the next row
-                    else if(oTrigger.trIndex < allRows.length-1){
-                        elNew = elNewRow.cells[0];
-                        this.selectCell(elNew);
-                    }
-                }
-                // Unselecting towards anchor
-                else {
-                    // Unselect this cell towards the right
-                    this.unselectCell(elThisRow.cells[oTrigger.colKeyIndex]);
-                }
-            }
-        }
-        // Arrow left
-        else if(nKey == 37) {
-            elNewRow = this.getPreviousTrEl(oTrigger.el);
-
-            // Unselecting towards the anchor
-            if(oAnchor.recordIndex < oTrigger.recordIndex) {
-                this.unselectCell(elThisRow.cells[oTrigger.colKeyIndex]);
-
-                // Unselect this cell towards the left
-                if(oTrigger.colKeyIndex > 0) {
-                }
-                // Unselect this cell towards the last cell of the previous row
-                else {
-                }
-            }
-            // Selecting towards the anchor
-            else if(oAnchor.recordIndex > oTrigger.recordIndex) {
-                // Select the next cell to the left
-                if(oTrigger.colKeyIndex > 0) {
-                    elNew = elThisRow.cells[oTrigger.colKeyIndex-1];
-                    this.selectCell(elNew);
-                }
-                // Select the last cell of the previous row
-                else if(oTrigger.trIndex > 0){
-                    elNew = elNewRow.cells[elNewRow.cells.length-1];
-                    this.selectCell(elNew);
-                }
-            }
-            // Anchor is on this row
-            else {
-                // Selecting away from anchor cell
-                if(oAnchor.colKeyIndex >= oTrigger.colKeyIndex) {
-                    // Select the next cell to the left
-                    if(oTrigger.colKeyIndex > 0) {
-                        elNew = elThisRow.cells[oTrigger.colKeyIndex-1];
-                        this.selectCell(elNew);
-                    }
-                    // Select the last cell of the previous row
-                    else if(oTrigger.trIndex > 0){
-                        elNew = elNewRow.cells[elNewRow.cells.length-1];
-                        this.selectCell(elNew);
-                    }
-                }
-                // Unselecting towards anchor cell
-                else {
-                    this.unselectCell(elThisRow.cells[oTrigger.colKeyIndex]);
-
-                    // Unselect this cell towards the left
-                    if(oTrigger.colKeyIndex > 0) {
-                    }
-                    // Unselect this cell towards the last cell of the previous row
-                    else {
-                    }
-                }
-            }
-        }
-    }
-},
-
-/**
- * Determines selection behavior resulting from a mouse event when selection mode
- * is set to "singlecell".
- *
- * @method _handleSingleCellSelectionByMouse
- * @param oArgs.event {HTMLEvent} Event object.
- * @param oArgs.target {HTMLElement} Target element.
- * @private
- */
-_handleSingleCellSelectionByMouse : function(oArgs) {
-    var elTarget = oArgs.target;
-
-    // Validate target cell
-    var elTargetCell = this.getTdEl(elTarget);
-    if(elTargetCell) {
-        var elTargetRow = this.getTrEl(elTargetCell);
-        var oTargetRecord = this.getRecord(elTargetRow);
-        var oTargetColumn = this.getColumn(elTargetCell);
-        var oTargetCell = {record:oTargetRecord, column:oTargetColumn};
-
-        // Set anchor
-        this._oAnchorCell = oTargetCell;
-
-        // Select only target
-        this.unselectAllCells();
-        this.selectCell(oTargetCell);
-    }
-},
-
-/**
- * Determines selection behavior resulting from a key event when selection mode
- * is set to "singlecell".
- *
- * @method _handleSingleCellSelectionByKey
- * @param e {HTMLEvent} Event object.
- * @private
- */
-_handleSingleCellSelectionByKey : function(e) {
-    var nKey = Ev.getCharCode(e);
-    if((nKey == 9) || ((nKey > 36) && (nKey < 41))) {
-        var bSHIFT = e.shiftKey;
-
-        // Validate trigger
-        var oTrigger = this._getSelectionTrigger();
-        // Arrow selection only works if last selected row is on current page
-        if(!oTrigger) {
-            return null;
-        }
-
-        // Determine the new cell to select
-        var elNew;
-        if(nKey == 40) { // Arrow down
-            elNew = this.getBelowTdEl(oTrigger.el);
-
-            // Validate new cell
-            if(elNew === null) {
-                //TODO: wrap around to first tr on current page
-
-                //TODO: wrap forward to first tr of next page
-
-                // Bottom selection is sticky
-                elNew = oTrigger.el;
-            }
-        }
-        else if(nKey == 38) { // Arrow up
-            elNew = this.getAboveTdEl(oTrigger.el);
-
-            // Validate new cell
-            if(elNew === null) {
-                //TODO: wrap around to last tr on current page
-
-                //TODO: wrap back to last tr of previous page
-
-                // Top selection is sticky
-                elNew = oTrigger.el;
-            }
-        }
-        else if((nKey == 39) || (!bSHIFT && (nKey == 9))) { // Arrow right or tab
-            elNew = this.getNextTdEl(oTrigger.el);
-
-            // Validate new cell
-            if(elNew === null) {
-                //TODO: wrap around to first td on current page
-
-                //TODO: wrap forward to first td of next page
-
-                // Top-left selection is sticky, and release TAB focus
-                //elNew = oTrigger.el;
-                return;
-            }
-        }
-        else if((nKey == 37) || (bSHIFT && (nKey == 9))) { // Arrow left or shift-tab
-            elNew = this.getPreviousTdEl(oTrigger.el);
-
-            // Validate new cell
-            if(elNew === null) {
-                //TODO: wrap around to last td on current page
-
-                //TODO: wrap back to last td of previous page
-
-                // Bottom-right selection is sticky, and release TAB focus
-                //elNew = oTrigger.el;
-                return;
-            }
-        }
-
-        Ev.stopEvent(e);
-        
-        // Unselect all cells
-        this.unselectAllCells();
-
-        // Select the new cell
-        this.selectCell(elNew);
-
-        // Set new anchor
-        this._oAnchorCell = {record:this.getRecord(elNew), column:this.getColumn(elNew)};
-    }
-},
-
-/**
- * Returns array of selected TR elements on the page.
- *
- * @method getSelectedTrEls
- * @return {HTMLElement[]} Array of selected TR elements.
- */
-getSelectedTrEls : function() {
-    return Dom.getElementsByClassName(DT.CLASS_SELECTED,"tr",this._elTbody);
-},
-
-/**
- * Sets given row to the selected state.
- *
- * @method selectRow
- * @param row {HTMLElement | String | YAHOO.widget.Record | Number} HTML element
- * reference or ID string, Record instance, or RecordSet position index.
- */
-selectRow : function(row) {
-    var oRecord, elRow;
-
-    if(row instanceof YAHOO.widget.Record) {
-        oRecord = this._oRecordSet.getRecord(row);
-        elRow = this.getTrEl(oRecord);
-    }
-    else if(lang.isNumber(row)) {
-        oRecord = this.getRecord(row);
-        elRow = this.getTrEl(oRecord);
-    }
-    else {
-        elRow = this.getTrEl(row);
-        oRecord = this.getRecord(elRow);
-    }
-
-    if(oRecord) {
-        // Update selection trackers
-        var tracker = this._aSelections || [];
-        var sRecordId = oRecord.getId();
-        var index = -1;
-
-        // Remove if already there:
-        // Use Array.indexOf if available...
-        /*if(tracker.indexOf && (tracker.indexOf(sRecordId) >  -1)) {
-            tracker.splice(tracker.indexOf(sRecordId),1);
-        }*/
-        if(tracker.indexOf) {
-            index = tracker.indexOf(sRecordId);
-            
-        }
-        // ...or do it the old-fashioned way
-        else {
-            for(var j=tracker.length-1; j>-1; j--) {
-                if(tracker[j] === sRecordId){
-                    index = j;
-                    break;
-                }
-            }
-        }
-        if(index > -1) {
-            tracker.splice(index,1);
-        }
-        
-        // Add to the end
-        tracker.push(sRecordId);
-        this._aSelections = tracker;
-
-        // Update trackers
-        if(!this._oAnchorRecord) {
-            this._oAnchorRecord = oRecord;
-        }
-
-        // Update UI
-        if(elRow) {
-            Dom.addClass(elRow, DT.CLASS_SELECTED);
-        }
-
-        this.fireEvent("rowSelectEvent", {record:oRecord, el:elRow});
-    }
-    else {
-    }
-},
-
-/**
- * Sets given row to the unselected state.
- *
- * @method unselectRow
- * @param row {HTMLElement | String | YAHOO.widget.Record | Number} HTML element
- * reference or ID string, Record instance, or RecordSet position index.
- */
-unselectRow : function(row) {
-    var elRow = this.getTrEl(row);
-
-    var oRecord;
-    if(row instanceof YAHOO.widget.Record) {
-        oRecord = this._oRecordSet.getRecord(row);
-    }
-    else if(lang.isNumber(row)) {
-        oRecord = this.getRecord(row);
-    }
-    else {
-        oRecord = this.getRecord(elRow);
-    }
-
-    if(oRecord) {
-        // Update selection trackers
-        var tracker = this._aSelections || [];
-        var sRecordId = oRecord.getId();
-        var index = -1;
-
-        // Use Array.indexOf if available...
-        if(tracker.indexOf) {
-            index = tracker.indexOf(sRecordId);
-        }
-        // ...or do it the old-fashioned way
-        else {
-            for(var j=tracker.length-1; j>-1; j--) {
-                if(tracker[j] === sRecordId){
-                    index = j;
-                    break;
-                }
-            }
-        }
-        if(index > -1) {
-            // Update tracker
-            tracker.splice(index,1);
-            this._aSelections = tracker;
-
-            // Update the UI
-            Dom.removeClass(elRow, DT.CLASS_SELECTED);
-
-            this.fireEvent("rowUnselectEvent", {record:oRecord, el:elRow});
-
-            return;
-        }
-    }
-},
-
-/**
- * Clears out all row selections.
- *
- * @method unselectAllRows
- */
-unselectAllRows : function() {
-    // Remove all rows from tracker
-    var tracker = this._aSelections || [],
-        recId,
-        removed = [];
-    for(var j=tracker.length-1; j>-1; j--) {
-       if(lang.isString(tracker[j])){
-            recId = tracker.splice(j,1);
-            removed[removed.length] = this.getRecord(lang.isArray(recId) ? recId[0] : recId);
-        }
-    }
-
-    // Update tracker
-    this._aSelections = tracker;
-
-    // Update UI
-    this._unselectAllTrEls();
-
-    this.fireEvent("unselectAllRowsEvent", {records: removed});
-},
-
-/**
- * Convenience method to remove the class YAHOO.widget.DataTable.CLASS_SELECTED
- * from all TD elements in the internal tracker.
- *
- * @method _unselectAllTdEls
- * @private
- */
-_unselectAllTdEls : function() {
-    var selectedCells = Dom.getElementsByClassName(DT.CLASS_SELECTED,"td",this._elTbody);
-    Dom.removeClass(selectedCells, DT.CLASS_SELECTED);
-},
-
-/**
- * Returns array of selected TD elements on the page.
- *
- * @method getSelectedTdEls
- * @return {HTMLElement[]} Array of selected TD elements.
- */
-getSelectedTdEls : function() {
-    return Dom.getElementsByClassName(DT.CLASS_SELECTED,"td",this._elTbody);
-},
-
-/**
- * Sets given cell to the selected state.
- *
- * @method selectCell
- * @param cell {HTMLElement | String} DOM element reference or ID string
- * to DataTable page element or RecordSet index.
- */
-selectCell : function(cell) {
-//TODO: accept {record} in selectCell()
-    var elCell = this.getTdEl(cell);
-
-    if(elCell) {
-        var oRecord = this.getRecord(elCell);
-        var sColumnKey = this.getColumn(elCell.cellIndex).getKey();
-
-        if(oRecord && sColumnKey) {
-            // Get Record ID
-            var tracker = this._aSelections || [];
-            var sRecordId = oRecord.getId();
-
-            // Remove if there
-            for(var j=tracker.length-1; j>-1; j--) {
-               if((tracker[j].recordId === sRecordId) && (tracker[j].columnKey === sColumnKey)){
-                    tracker.splice(j,1);
-                    break;
-                }
-            }
-
-            // Add to the end
-            tracker.push({recordId:sRecordId, columnKey:sColumnKey});
-
-            // Update trackers
-            this._aSelections = tracker;
-            if(!this._oAnchorCell) {
-                this._oAnchorCell = {record:oRecord, column:this.getColumn(sColumnKey)};
-            }
-
-            // Update the UI
-            Dom.addClass(elCell, DT.CLASS_SELECTED);
-
-            this.fireEvent("cellSelectEvent", {record:oRecord, column:this.getColumn(elCell.cellIndex), key: this.getColumn(elCell.cellIndex).getKey(), el:elCell});
-            return;
-        }
-    }
-},
-
-/**
- * Sets given cell to the unselected state.
- *
- * @method unselectCell
- * @param cell {HTMLElement | String} DOM element reference or ID string
- * to DataTable page element or RecordSet index.
- */
-unselectCell : function(cell) {
-    var elCell = this.getTdEl(cell);
-
-    if(elCell) {
-        var oRecord = this.getRecord(elCell);
-        var sColumnKey = this.getColumn(elCell.cellIndex).getKey();
-
-        if(oRecord && sColumnKey) {
-            // Get Record ID
-            var tracker = this._aSelections || [];
-            var id = oRecord.getId();
-
-            // Is it selected?
-            for(var j=tracker.length-1; j>-1; j--) {
-                if((tracker[j].recordId === id) && (tracker[j].columnKey === sColumnKey)){
-                    // Remove from tracker
-                    tracker.splice(j,1);
-
-                    // Update tracker
-                    this._aSelections = tracker;
-
-                    // Update the UI
-                    Dom.removeClass(elCell, DT.CLASS_SELECTED);
-
-                    this.fireEvent("cellUnselectEvent", {record:oRecord, column: this.getColumn(elCell.cellIndex), key:this.getColumn(elCell.cellIndex).getKey(), el:elCell});
-                    return;
-                }
-            }
-        }
-    }
-},
-
-/**
- * Clears out all cell selections.
- *
- * @method unselectAllCells
- */
-unselectAllCells : function() {
-    // Remove all cells from tracker
-    var tracker = this._aSelections || [];
-    for(var j=tracker.length-1; j>-1; j--) {
-       if(lang.isObject(tracker[j])){
-            tracker.splice(j,1);
-        }
-    }
-
-    // Update tracker
-    this._aSelections = tracker;
-
-    // Update UI
-    this._unselectAllTdEls();
-
-    //TODO: send data to unselectAllCellsEvent handler
-    this.fireEvent("unselectAllCellsEvent");
-},
-
-/**
- * Returns true if given item is selected, false otherwise.
- *
- * @method isSelected
- * @param o {String | HTMLElement | YAHOO.widget.Record | Number
- * {record:YAHOO.widget.Record, column:YAHOO.widget.Column} } TR or TD element by
- * reference or ID string, a Record instance, a RecordSet position index,
- * or an object literal representation
- * of a cell.
- * @return {Boolean} True if item is selected.
- */
-isSelected : function(o) {
-    if(o && (o.ownerDocument == document)) {
-        return (Dom.hasClass(this.getTdEl(o),DT.CLASS_SELECTED) || Dom.hasClass(this.getTrEl(o),DT.CLASS_SELECTED));
-    }
-    else {
-        var oRecord, sRecordId, j;
-        var tracker = this._aSelections;
-        if(tracker && tracker.length > 0) {
-            // Looking for a Record?
-            if(o instanceof YAHOO.widget.Record) {
-                oRecord = o;
-            }
-            else if(lang.isNumber(o)) {
-                oRecord = this.getRecord(o);
-            }
-            if(oRecord) {
-                sRecordId = oRecord.getId();
-
-                // Is it there?
-                // Use Array.indexOf if available...
-                if(tracker.indexOf) {
-                    if(tracker.indexOf(sRecordId) >  -1) {
-                        return true;
-                    }
-                }
-                // ...or do it the old-fashioned way
-                else {
-                    for(j=tracker.length-1; j>-1; j--) {
-                       if(tracker[j] === sRecordId){
-                        return true;
-                       }
-                    }
-                }
-            }
-            // Looking for a cell
-            else if(o.record && o.column){
-                sRecordId = o.record.getId();
-                var sColumnKey = o.column.getKey();
-
-                for(j=tracker.length-1; j>-1; j--) {
-                    if((tracker[j].recordId === sRecordId) && (tracker[j].columnKey === sColumnKey)){
-                        return true;
-                    }
-                }
-            }
-        }
-    }
-    return false;
-},
-
-/**
- * Returns selected rows as an array of Record IDs.
- *
- * @method getSelectedRows
- * @return {String[]} Array of selected rows by Record ID.
- */
-getSelectedRows : function() {
-    var aSelectedRows = [];
-    var tracker = this._aSelections || [];
-    for(var j=0; j<tracker.length; j++) {
-       if(lang.isString(tracker[j])){
-            aSelectedRows.push(tracker[j]);
-        }
-    }
-    return aSelectedRows;
-},
-
-/**
- * Returns selected cells as an array of object literals:
- *     {recordId:sRecordId, columnKey:sColumnKey}.
- *
- * @method getSelectedCells
- * @return {Object[]} Array of selected cells by Record ID and Column ID.
- */
-getSelectedCells : function() {
-    var aSelectedCells = [];
-    var tracker = this._aSelections || [];
-    for(var j=0; j<tracker.length; j++) {
-       if(tracker[j] && lang.isObject(tracker[j])){
-            aSelectedCells.push(tracker[j]);
-        }
-    }
-    return aSelectedCells;
-},
-
-/**
- * Returns last selected Record ID.
- *
- * @method getLastSelectedRecord
- * @return {String} Record ID of last selected row.
- */
-getLastSelectedRecord : function() {
-    var tracker = this._aSelections;
-    if(tracker && tracker.length > 0) {
-        for(var i=tracker.length-1; i>-1; i--) {
-           if(lang.isString(tracker[i])){
-                return tracker[i];
-            }
-        }
-    }
-},
-
-/**
- * Returns last selected cell as an object literal:
- *     {recordId:sRecordId, columnKey:sColumnKey}.
- *
- * @method getLastSelectedCell
- * @return {Object} Object literal representation of a cell.
- */
-getLastSelectedCell : function() {
-    var tracker = this._aSelections;
-    if(tracker && tracker.length > 0) {
-        for(var i=tracker.length-1; i>-1; i--) {
-           if(tracker[i].recordId && tracker[i].columnKey){
-                return tracker[i];
-            }
-        }
-    }
-},
-
-/**
- * Assigns the class YAHOO.widget.DataTable.CLASS_HIGHLIGHTED to the given row.
- *
- * @method highlightRow
- * @param row {HTMLElement | String} DOM element reference or ID string.
- */
-highlightRow : function(row) {
-    var elRow = this.getTrEl(row);
-
-    if(elRow) {
-        // Make sure previous row is unhighlighted
-/*        if(this._sLastHighlightedTrElId) {
-            Dom.removeClass(this._sLastHighlightedTrElId,DT.CLASS_HIGHLIGHTED);
-        }*/
-        var oRecord = this.getRecord(elRow);
-        Dom.addClass(elRow,DT.CLASS_HIGHLIGHTED);
-        //this._sLastHighlightedTrElId = elRow.id;
-        this.fireEvent("rowHighlightEvent", {record:oRecord, el:elRow});
-        return;
-    }
-},
-
-/**
- * Removes the class YAHOO.widget.DataTable.CLASS_HIGHLIGHTED from the given row.
- *
- * @method unhighlightRow
- * @param row {HTMLElement | String} DOM element reference or ID string.
- */
-unhighlightRow : function(row) {
-    var elRow = this.getTrEl(row);
-
-    if(elRow) {
-        var oRecord = this.getRecord(elRow);
-        Dom.removeClass(elRow,DT.CLASS_HIGHLIGHTED);
-        this.fireEvent("rowUnhighlightEvent", {record:oRecord, el:elRow});
-        return;
-    }
-},
-
-/**
- * Assigns the class YAHOO.widget.DataTable.CLASS_HIGHLIGHTED to the given cell.
- *
- * @method highlightCell
- * @param cell {HTMLElement | String} DOM element reference or ID string.
- */
-highlightCell : function(cell) {
-    var elCell = this.getTdEl(cell);
-
-    if(elCell) {
-        // Make sure previous cell is unhighlighted
-        if(this._elLastHighlightedTd) {
-            this.unhighlightCell(this._elLastHighlightedTd);
-        }
-
-        var oRecord = this.getRecord(elCell);
-        var sColumnKey = this.getColumn(elCell.cellIndex).getKey();
-        Dom.addClass(elCell,DT.CLASS_HIGHLIGHTED);
-        this._elLastHighlightedTd = elCell;
-        this.fireEvent("cellHighlightEvent", {record:oRecord, column:this.getColumn(elCell.cellIndex), key:this.getColumn(elCell.cellIndex).getKey(), el:elCell});
-        return;
-    }
-},
-
-/**
- * Removes the class YAHOO.widget.DataTable.CLASS_HIGHLIGHTED from the given cell.
- *
- * @method unhighlightCell
- * @param cell {HTMLElement | String} DOM element reference or ID string.
- */
-unhighlightCell : function(cell) {
-    var elCell = this.getTdEl(cell);
-
-    if(elCell) {
-        var oRecord = this.getRecord(elCell);
-        Dom.removeClass(elCell,DT.CLASS_HIGHLIGHTED);
-        this._elLastHighlightedTd = null;
-        this.fireEvent("cellUnhighlightEvent", {record:oRecord, column:this.getColumn(elCell.cellIndex), key:this.getColumn(elCell.cellIndex).getKey(), el:elCell});
-        return;
-    }
-},
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-// INLINE EDITING
-
-/**
- * Returns current CellEditor instance, or null.
- * @method getCellEditor
- * @return {YAHOO.widget.CellEditor} CellEditor instance.
- */
-getCellEditor : function() {
-    return this._oCellEditor;
-},
-
-
-/**
- * Activates and shows CellEditor instance for the given cell while deactivating and
- * canceling previous CellEditor. It is baked into DataTable that only one CellEditor
- * can be active at any given time. 
- *
- * @method showCellEditor
- * @param elCell {HTMLElement | String} Cell to edit.
- */
-showCellEditor : function(elCell, oRecord, oColumn) {
-    // Get a particular CellEditor
-    elCell = this.getTdEl(elCell);
-    if(elCell) {
-        oColumn = this.getColumn(elCell);
-        if(oColumn && oColumn.editor) {
-            var oCellEditor = this._oCellEditor;
-            // Clean up active CellEditor
-            if(oCellEditor) {
-                if(this._oCellEditor.cancel) {
-                    this._oCellEditor.cancel();
-                }
-                else if(oCellEditor.isActive) {
-                    this.cancelCellEditor();
-                }
-            }
-            
-            if(oColumn.editor instanceof YAHOO.widget.BaseCellEditor) {
-                // Get CellEditor
-                oCellEditor = oColumn.editor;
-                var ok = oCellEditor.attach(this, elCell);
-                if(ok) {
-                    oCellEditor.move();
-                    ok = this.doBeforeShowCellEditor(oCellEditor);
-                    if(ok) {
-                        oCellEditor.show();
-                        this._oCellEditor = oCellEditor;
-                    }
-                }
-            }
-            // Backward compatibility
-            else {
-                    if(!oRecord || !(oRecord instanceof YAHOO.widget.Record)) {
-                        oRecord = this.getRecord(elCell);
-                    }
-                    if(!oColumn || !(oColumn instanceof YAHOO.widget.Column)) {
-                        oColumn = this.getColumn(elCell);
-                    }
-                    if(oRecord && oColumn) {
-                        if(!this._oCellEditor || this._oCellEditor.container) {
-                            this._initCellEditorEl();
-                        }
-                        
-                        // Update Editor values
-                        oCellEditor = this._oCellEditor;
-                        oCellEditor.cell = elCell;
-                        oCellEditor.record = oRecord;
-                        oCellEditor.column = oColumn;
-                        oCellEditor.validator = (oColumn.editorOptions &&
-                                lang.isFunction(oColumn.editorOptions.validator)) ?
-                                oColumn.editorOptions.validator : null;
-                        oCellEditor.value = oRecord.getData(oColumn.key);
-                        oCellEditor.defaultValue = null;
-            
-                        // Move Editor
-                        var elContainer = oCellEditor.container;
-                        var x = Dom.getX(elCell);
-                        var y = Dom.getY(elCell);
-            
-                        // SF doesn't get xy for cells in scrolling table
-                        // when tbody display is set to block
-                        if(isNaN(x) || isNaN(y)) {
-                            x = elCell.offsetLeft + // cell pos relative to table
-                                    Dom.getX(this._elTbody.parentNode) - // plus table pos relative to document
-                                    this._elTbody.scrollLeft; // minus tbody scroll
-                            y = elCell.offsetTop + // cell pos relative to table
-                                    Dom.getY(this._elTbody.parentNode) - // plus table pos relative to document
-                                    this._elTbody.scrollTop + // minus tbody scroll
-                                    this._elThead.offsetHeight; // account for fixed THEAD cells
-                        }
-            
-                        elContainer.style.left = x + "px";
-                        elContainer.style.top = y + "px";
-            
-                        // Hook to customize the UI
-                        this.doBeforeShowCellEditor(this._oCellEditor);
-            
-                        //TODO: This is temporarily up here due so elements can be focused
-                        // Show Editor
-                        elContainer.style.display = "";
-            
-                        // Handle ESC key
-                        Ev.addListener(elContainer, "keydown", function(e, oSelf) {
-                            // ESC hides Cell Editor
-                            if((e.keyCode == 27)) {
-                                oSelf.cancelCellEditor();
-                                oSelf.focusTbodyEl();
-                            }
-                            else {
-                                oSelf.fireEvent("editorKeydownEvent", {editor:oSelf._oCellEditor, event:e});
-                            }
-                        }, this);
-            
-                        // Render Editor markup
-                        var fnEditor;
-                        if(lang.isString(oColumn.editor)) {
-                            switch(oColumn.editor) {
-                                case "checkbox":
-                                    fnEditor = DT.editCheckbox;
-                                    break;
-                                case "date":
-                                    fnEditor = DT.editDate;
-                                    break;
-                                case "dropdown":
-                                    fnEditor = DT.editDropdown;
-                                    break;
-                                case "radio":
-                                    fnEditor = DT.editRadio;
-                                    break;
-                                case "textarea":
-                                    fnEditor = DT.editTextarea;
-                                    break;
-                                case "textbox":
-                                    fnEditor = DT.editTextbox;
-                                    break;
-                                default:
-                                    fnEditor = null;
-                            }
-                        }
-                        else if(lang.isFunction(oColumn.editor)) {
-                            fnEditor = oColumn.editor;
-                        }
-            
-                        if(fnEditor) {
-                            // Create DOM input elements
-                            fnEditor(this._oCellEditor, this);
-            
-                            // Show Save/Cancel buttons
-                            if(!oColumn.editorOptions || !oColumn.editorOptions.disableBtns) {
-                                this.showCellEditorBtns(elContainer);
-                            }
-            
-                            oCellEditor.isActive = true;
-            
-                            //TODO: verify which args to pass
-                            this.fireEvent("editorShowEvent", {editor:oCellEditor});
-                            return;
-                        }
-                    }
-
-
-
-            
-            }
-        }
-    }
-},
-
-/**
- * Backward compatibility.
- *
- * @method _initCellEditorEl
- * @private
- * @deprecated 
- */
-_initCellEditorEl : function() {
-    // Attach Cell Editor container element as first child of body
-    var elCellEditor = document.createElement("div");
-    elCellEditor.id = this._sId + "-celleditor";
-    elCellEditor.style.display = "none";
-    elCellEditor.tabIndex = 0;
-    Dom.addClass(elCellEditor, DT.CLASS_EDITOR);
-    var elFirstChild = Dom.getFirstChild(document.body);
-    if(elFirstChild) {
-        elCellEditor = Dom.insertBefore(elCellEditor, elFirstChild);
-    }
-    else {
-        elCellEditor = document.body.appendChild(elCellEditor);
-    }
-    
-    // Internal tracker of Cell Editor values
-    var oCellEditor = {};
-    oCellEditor.container = elCellEditor;
-    oCellEditor.value = null;
-    oCellEditor.isActive = false;
-    this._oCellEditor = oCellEditor;
-},
-
-/**
- * Overridable abstract method to customize CellEditor before showing.
- *
- * @method doBeforeShowCellEditor
- * @param oCellEditor {YAHOO.widget.CellEditor} The CellEditor instance.
- * @return {Boolean} Return true to continue showing CellEditor.
- */
-doBeforeShowCellEditor : function(oCellEditor) {
-    return true;
-},
-
-/**
- * Saves active CellEditor input to Record and upates DOM UI.
- *
- * @method saveCellEditor
- */
-saveCellEditor : function() {
-    if(this._oCellEditor) {
-        if(this._oCellEditor.save) {
-            this._oCellEditor.save();
-        }
-        // Backward compatibility
-        else if(this._oCellEditor.isActive) {
-            var newData = this._oCellEditor.value;
-            // Copy the data to pass to the event
-            //var oldData = YAHOO.widget.DataTable._cloneObject(this._oCellEditor.record.getData(this._oCellEditor.column.key));
-            var oldData = this._oCellEditor.record.getData(this._oCellEditor.column.key);
-    
-            // Validate input data
-            if(this._oCellEditor.validator) {
-                newData = this._oCellEditor.value = this._oCellEditor.validator.call(this, newData, oldData, this._oCellEditor);
-                if(newData === null ) {
-                    this.resetCellEditor();
-                    this.fireEvent("editorRevertEvent",
-                            {editor:this._oCellEditor, oldData:oldData, newData:newData});
-                    return;
-                }
-            }
-            // Update the Record
-            this._oRecordSet.updateRecordValue(this._oCellEditor.record, this._oCellEditor.column.key, this._oCellEditor.value);
-            // Update the UI
-            this.formatCell(this._oCellEditor.cell.firstChild);
-            
-            // Bug fix 1764044
-            this._oChainRender.add({
-                method: function() {
-                    this.validateColumnWidths();
-                },
-                scope: this
-            });
-            this._oChainRender.run();
-            // Clear out the Cell Editor
-            this.resetCellEditor();
-    
-            this.fireEvent("editorSaveEvent",
-                    {editor:this._oCellEditor, oldData:oldData, newData:newData});
-        }
-    }   
-},
-
-/**
- * Cancels active CellEditor.
- *
- * @method cancelCellEditor
- */
-cancelCellEditor : function() {
-    if(this._oCellEditor) {
-        if(this._oCellEditor.cancel) {
-            this._oCellEditor.cancel();
-        }
-        // Backward compatibility
-        else if(this._oCellEditor.isActive) {
-            this.resetCellEditor();
-            //TODO: preserve values for the event?
-            this.fireEvent("editorCancelEvent", {editor:this._oCellEditor});
-        }
-
-    }
-},
-
-/**
- * Destroys active CellEditor instance and UI.
- *
- * @method destroyCellEditor
- */
-destroyCellEditor : function() {
-    if(this._oCellEditor) {
-        this._oCellEditor.destroy();
-        this._oCellEditor = null;
-    }   
-},
-
-/**
- * Passes through showEvent of the active CellEditor.
- *
- * @method _onEditorShowEvent
- * @param oArgs {Object}  Custom Event args.
- * @private 
- */
-_onEditorShowEvent : function(oArgs) {
-    this.fireEvent("editorShowEvent", oArgs);
-},
-
-/**
- * Passes through keydownEvent of the active CellEditor.
- * @param oArgs {Object}  Custom Event args. 
- *
- * @method _onEditorKeydownEvent
- * @private 
- */
-_onEditorKeydownEvent : function(oArgs) {
-    this.fireEvent("editorKeydownEvent", oArgs);
-},
-
-/**
- * Passes through revertEvent of the active CellEditor.
- *
- * @method _onEditorRevertEvent
- * @param oArgs {Object}  Custom Event args. 
- * @private  
- */
-_onEditorRevertEvent : function(oArgs) {
-    this.fireEvent("editorRevertEvent", oArgs);
-},
-
-/**
- * Passes through saveEvent of the active CellEditor.
- *
- * @method _onEditorSaveEvent
- * @param oArgs {Object}  Custom Event args.  
- * @private 
- */
-_onEditorSaveEvent : function(oArgs) {
-    this.fireEvent("editorSaveEvent", oArgs);
-},
-
-/**
- * Passes through cancelEvent of the active CellEditor.
- *
- * @method _onEditorCancelEvent
- * @param oArgs {Object}  Custom Event args.
- * @private   
- */
-_onEditorCancelEvent : function(oArgs) {
-    this.fireEvent("editorCancelEvent", oArgs);
-},
-
-/**
- * Passes through blurEvent of the active CellEditor.
- *
- * @method _onEditorBlurEvent
- * @param oArgs {Object}  Custom Event args. 
- * @private  
- */
-_onEditorBlurEvent : function(oArgs) {
-    this.fireEvent("editorBlurEvent", oArgs);
-},
-
-/**
- * Passes through blockEvent of the active CellEditor.
- *
- * @method _onEditorBlockEvent
- * @param oArgs {Object}  Custom Event args. 
- * @private  
- */
-_onEditorBlockEvent : function(oArgs) {
-    this.fireEvent("editorBlockEvent", oArgs);
-},
-
-/**
- * Passes through unblockEvent of the active CellEditor.
- *
- * @method _onEditorUnblockEvent
- * @param oArgs {Object}  Custom Event args. 
- * @private  
- */
-_onEditorUnblockEvent : function(oArgs) {
-    this.fireEvent("editorUnblockEvent", oArgs);
-},
-
-/**
- * Public handler of the editorBlurEvent. By default, saves on blur if
- * disableBtns is true, otherwise cancels on blur. 
- *
- * @method onEditorBlurEvent
- * @param oArgs {Object}  Custom Event args.  
- */
-onEditorBlurEvent : function(oArgs) {
-    if(oArgs.editor.disableBtns) {
-        // Save on blur
-        if(oArgs.editor.save) { // Backward incompatible
-            oArgs.editor.save();
-        }
-    }      
-    else if(oArgs.editor.cancel) { // Backward incompatible
-        // Cancel on blur
-        oArgs.editor.cancel();
-    }      
-},
-
-/**
- * Public handler of the editorBlockEvent. By default, disables DataTable UI.
- *
- * @method onEditorBlockEvent
- * @param oArgs {Object}  Custom Event args.  
- */
-onEditorBlockEvent : function(oArgs) {
-    this.disable();
-},
-
-/**
- * Public handler of the editorUnblockEvent. By default, undisables DataTable UI.
- *
- * @method onEditorUnblockEvent
- * @param oArgs {Object}  Custom Event args.  
- */
-onEditorUnblockEvent : function(oArgs) {
-    this.undisable();
-},
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-// ABSTRACT METHODS
-
-/**
- * Overridable method gives implementers a hook to access data before
- * it gets added to RecordSet and rendered to the TBODY.
- *
- * @method doBeforeLoadData
- * @param sRequest {String} Original request.
- * @param oResponse {Object} Response object.
- * @param oPayload {MIXED} additional arguments
- * @return {Boolean} Return true to continue loading data into RecordSet and
- * updating DataTable with new Records, false to cancel.
- */
-doBeforeLoadData : function(sRequest, oResponse, oPayload) {
-    return true;
-},
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-/////////////////////////////////////////////////////////////////////////////
-//
-// Public Custom Event Handlers
-//
-/////////////////////////////////////////////////////////////////////////////
-
-/**
- * Overridable custom event handler to sort Column.
- *
- * @method onEventSortColumn
- * @param oArgs.event {HTMLEvent} Event object.
- * @param oArgs.target {HTMLElement} Target element.
- */
-onEventSortColumn : function(oArgs) {
-//TODO: support form elements in sortable columns
-    var evt = oArgs.event;
-    var target = oArgs.target;
-
-    var el = this.getThEl(target) || this.getTdEl(target);
-    if(el) {
-        var oColumn = this.getColumn(el);
-        if(oColumn.sortable) {
-            Ev.stopEvent(evt);
-            this.sortColumn(oColumn);
-        }
-    }
-    else {
-    }
-},
-
-/**
- * Overridable custom event handler to select Column.
- *
- * @method onEventSelectColumn
- * @param oArgs.event {HTMLEvent} Event object.
- * @param oArgs.target {HTMLElement} Target element.
- */
-onEventSelectColumn : function(oArgs) {
-    this.selectColumn(oArgs.target);
-},
-
-/**
- * Overridable custom event handler to highlight Column. Accounts for spurious
- * caused-by-child events. 
- *
- * @method onEventHighlightColumn
- * @param oArgs.event {HTMLEvent} Event object.
- * @param oArgs.target {HTMLElement} Target element.
- */
-onEventHighlightColumn : function(oArgs) {
-    //TODO: filter for all spurious events at a lower level
-    if(!Dom.isAncestor(oArgs.target,Ev.getRelatedTarget(oArgs.event))) {
-        this.highlightColumn(oArgs.target);
-    }
-},
-
-/**
- * Overridable custom event handler to unhighlight Column. Accounts for spurious
- * caused-by-child events. 
- *
- * @method onEventUnhighlightColumn
- * @param oArgs.event {HTMLEvent} Event object.
- * @param oArgs.target {HTMLElement} Target element.
- */
-onEventUnhighlightColumn : function(oArgs) {
-    //TODO: filter for all spurious events at a lower level
-    if(!Dom.isAncestor(oArgs.target,Ev.getRelatedTarget(oArgs.event))) {
-        this.unhighlightColumn(oArgs.target);
-    }
-},
-
-/**
- * Overridable custom event handler to manage selection according to desktop paradigm.
- *
- * @method onEventSelectRow
- * @param oArgs.event {HTMLEvent} Event object.
- * @param oArgs.target {HTMLElement} Target element.
- */
-onEventSelectRow : function(oArgs) {
-    var sMode = this.get("selectionMode");
-    if(sMode == "single") {
-        this._handleSingleSelectionByMouse(oArgs);
-    }
-    else {
-        this._handleStandardSelectionByMouse(oArgs);
-    }
-},
-
-/**
- * Overridable custom event handler to select cell.
- *
- * @method onEventSelectCell
- * @param oArgs.event {HTMLEvent} Event object.
- * @param oArgs.target {HTMLElement} Target element.
- */
-onEventSelectCell : function(oArgs) {
-    var sMode = this.get("selectionMode");
-    if(sMode == "cellblock") {
-        this._handleCellBlockSelectionByMouse(oArgs);
-    }
-    else if(sMode == "cellrange") {
-        this._handleCellRangeSelectionByMouse(oArgs);
-    }
-    else {
-        this._handleSingleCellSelectionByMouse(oArgs);
-    }
-},
-
-/**
- * Overridable custom event handler to highlight row. Accounts for spurious
- * caused-by-child events. 
- *
- * @method onEventHighlightRow
- * @param oArgs.event {HTMLEvent} Event object.
- * @param oArgs.target {HTMLElement} Target element.
- */
-onEventHighlightRow : function(oArgs) {
-    //TODO: filter for all spurious events at a lower level
-    if(!Dom.isAncestor(oArgs.target,Ev.getRelatedTarget(oArgs.event))) {
-        this.highlightRow(oArgs.target);
-    }
-},
-
-/**
- * Overridable custom event handler to unhighlight row. Accounts for spurious
- * caused-by-child events. 
- *
- * @method onEventUnhighlightRow
- * @param oArgs.event {HTMLEvent} Event object.
- * @param oArgs.target {HTMLElement} Target element.
- */
-onEventUnhighlightRow : function(oArgs) {
-    //TODO: filter for all spurious events at a lower level
-    if(!Dom.isAncestor(oArgs.target,Ev.getRelatedTarget(oArgs.event))) {
-        this.unhighlightRow(oArgs.target);
-    }
-},
-
-/**
- * Overridable custom event handler to highlight cell. Accounts for spurious
- * caused-by-child events. 
- *
- * @method onEventHighlightCell
- * @param oArgs.event {HTMLEvent} Event object.
- * @param oArgs.target {HTMLElement} Target element.
- */
-onEventHighlightCell : function(oArgs) {
-    //TODO: filter for all spurious events at a lower level
-    if(!Dom.isAncestor(oArgs.target,Ev.getRelatedTarget(oArgs.event))) {
-        this.highlightCell(oArgs.target);
-    }
-},
-
-/**
- * Overridable custom event handler to unhighlight cell. Accounts for spurious
- * caused-by-child events. 
- *
- * @method onEventUnhighlightCell
- * @param oArgs.event {HTMLEvent} Event object.
- * @param oArgs.target {HTMLElement} Target element.
- */
-onEventUnhighlightCell : function(oArgs) {
-    //TODO: filter for all spurious events at a lower level
-    if(!Dom.isAncestor(oArgs.target,Ev.getRelatedTarget(oArgs.event))) {
-        this.unhighlightCell(oArgs.target);
-    }
-},
-
-/**
- * Overridable custom event handler to format cell.
- *
- * @method onEventFormatCell
- * @param oArgs.event {HTMLEvent} Event object.
- * @param oArgs.target {HTMLElement} Target element.
- */
-onEventFormatCell : function(oArgs) {
-    var target = oArgs.target;
-
-    var elCell = this.getTdEl(target);
-    if(elCell) {
-        var oColumn = this.getColumn(elCell.cellIndex);
-        this.formatCell(elCell.firstChild, this.getRecord(elCell), oColumn);
-    }
-    else {
-    }
-},
-
-/**
- * Overridable custom event handler to edit cell.
- *
- * @method onEventShowCellEditor
- * @param oArgs.event {HTMLEvent} Event object.
- * @param oArgs.target {HTMLElement} Target element.
- */
-onEventShowCellEditor : function(oArgs) {
-    this.showCellEditor(oArgs.target);
-},
-
-/**
- * Overridable custom event handler to save active CellEditor input.
- *
- * @method onEventSaveCellEditor
- */
-onEventSaveCellEditor : function(oArgs) {
-    if(this._oCellEditor) {
-        if(this._oCellEditor.save) {
-            this._oCellEditor.save();
-        }
-        // Backward compatibility
-        else {
-            this.saveCellEditor();
-        }
-    }
-},
-
-/**
- * Overridable custom event handler to cancel active CellEditor.
- *
- * @method onEventCancelCellEditor
- */
-onEventCancelCellEditor : function(oArgs) {
-    if(this._oCellEditor) {
-        if(this._oCellEditor.cancel) {
-            this._oCellEditor.cancel();
-        }
-        // Backward compatibility
-        else {
-            this.cancelCellEditor();
-        }
-    }
-},
-
-/**
- * Callback function receives data from DataSource and populates an entire
- * DataTable with Records and TR elements, clearing previous Records, if any.
- *
- * @method onDataReturnInitializeTable
- * @param sRequest {String} Original request.
- * @param oResponse {Object} Response object.
- * @param oPayload {MIXED} (optional) Additional argument(s)
- */
-onDataReturnInitializeTable : function(sRequest, oResponse, oPayload) {
-    if((this instanceof DT) && this._sId) {
-        this.initializeTable();
-    
-        this.onDataReturnSetRows(sRequest,oResponse,oPayload);
-    }
-},
-
-/**
- * Callback function receives reponse from DataSource, replaces all existing
- * Records in  RecordSet, updates TR elements with new data, and updates state
- * UI for pagination and sorting from payload data, if necessary. 
- *  
- * @method onDataReturnReplaceRows
- * @param oRequest {MIXED} Original generated request.
- * @param oResponse {Object} Response object.
- * @param oPayload {MIXED} (optional) Additional argument(s)
- */
-onDataReturnReplaceRows : function(oRequest, oResponse, oPayload) {
-    if((this instanceof DT) && this._sId) {
-        this.fireEvent("dataReturnEvent", {request:oRequest,response:oResponse,payload:oPayload});
-    
-        // Pass data through abstract method for any transformations
-        var ok    = this.doBeforeLoadData(oRequest, oResponse, oPayload),
-            pag   = this.get('paginator'),
-            index = 0;
-    
-        // Data ok to set
-        if(ok && oResponse && !oResponse.error && lang.isArray(oResponse.results)) {
-            // Update Records
-            this._oRecordSet.reset();
-    
-            if (this.get('dynamicData')) {
-                if (oPayload && oPayload.pagination &&
-                    lang.isNumber(oPayload.pagination.recordOffset)) {
-                    index = oPayload.pagination.recordOffset;
-                } else if (pag) {
-                    index = pag.getStartIndex();
-                }
-            }
-    
-            this._oRecordSet.setRecords(oResponse.results, index | 0);
-            
-            // Update state
-            this._handleDataReturnPayload(oRequest, oResponse, oPayload);
-            
-            // Update UI
-            this.render();    
-        }
-        // Error
-        else if(ok && oResponse.error) {
-            this.showTableMessage(this.get("MSG_ERROR"), DT.CLASS_ERROR);
-        }
-    }
-},
-
-/**
- * Callback function receives data from DataSource and appends to an existing
- * DataTable new Records and, if applicable, creates or updates
- * corresponding TR elements.
- *
- * @method onDataReturnAppendRows
- * @param sRequest {String} Original request.
- * @param oResponse {Object} Response object.
- * @param oPayload {MIXED} (optional) Additional argument(s)
- */
-onDataReturnAppendRows : function(sRequest, oResponse, oPayload) {
-    if((this instanceof DT) && this._sId) {
-        this.fireEvent("dataReturnEvent", {request:sRequest,response:oResponse,payload:oPayload});
-    
-        // Pass data through abstract method for any transformations
-        var ok = this.doBeforeLoadData(sRequest, oResponse, oPayload);
-    
-        // Data ok to append
-        if(ok && oResponse && !oResponse.error && lang.isArray(oResponse.results)) {        
-            // Append rows
-            this.addRows(oResponse.results);
-    
-            // Update state
-            this._handleDataReturnPayload(sRequest, oResponse, oPayload);
-        }
-        // Error
-        else if(ok && oResponse.error) {
-            this.showTableMessage(this.get("MSG_ERROR"), DT.CLASS_ERROR);
-        }
-    }
-},
-
-/**
- * Callback function receives data from DataSource and inserts new records
- * starting at the index specified in oPayload.insertIndex. The value for
- * oPayload.insertIndex can be populated when sending the request to the DataSource,
- * or by accessing oPayload.insertIndex with the doBeforeLoadData() method at runtime.
- * If applicable, creates or updates corresponding TR elements.
- *
- * @method onDataReturnInsertRows
- * @param sRequest {String} Original request.
- * @param oResponse {Object} Response object.
- * @param oPayload {MIXED} Argument payload, looks in oPayload.insertIndex.
- */
-onDataReturnInsertRows : function(sRequest, oResponse, oPayload) {
-    if((this instanceof DT) && this._sId) {
-        this.fireEvent("dataReturnEvent", {request:sRequest,response:oResponse,payload:oPayload});
-    
-        // Pass data through abstract method for any transformations
-        var ok = this.doBeforeLoadData(sRequest, oResponse, oPayload);
-    
-        // Data ok to append
-        if(ok && oResponse && !oResponse.error && lang.isArray(oResponse.results)) {
-            // Insert rows
-            this.addRows(oResponse.results, (oPayload ? oPayload.insertIndex : 0));
-    
-            // Update state
-            this._handleDataReturnPayload(sRequest, oResponse, oPayload);
-        }
-        // Error
-        else if(ok && oResponse.error) {
-            this.showTableMessage(this.get("MSG_ERROR"), DT.CLASS_ERROR);
-        }
-    }
-},
-
-/**
- * Callback function receives data from DataSource and incrementally updates Records
- * starting at the index specified in oPayload.updateIndex. The value for
- * oPayload.updateIndex can be populated when sending the request to the DataSource,
- * or by accessing oPayload.updateIndex with the doBeforeLoadData() method at runtime.
- * If applicable, creates or updates corresponding TR elements.
- *
- * @method onDataReturnUpdateRows
- * @param sRequest {String} Original request.
- * @param oResponse {Object} Response object.
- * @param oPayload {MIXED} Argument payload, looks in oPayload.updateIndex.
- */
-onDataReturnUpdateRows : function(sRequest, oResponse, oPayload) {
-    if((this instanceof DT) && this._sId) {
-        this.fireEvent("dataReturnEvent", {request:sRequest,response:oResponse,payload:oPayload});
-    
-        // Pass data through abstract method for any transformations
-        var ok = this.doBeforeLoadData(sRequest, oResponse, oPayload);
-    
-        // Data ok to append
-        if(ok && oResponse && !oResponse.error && lang.isArray(oResponse.results)) {
-            // Insert rows
-            this.updateRows((oPayload ? oPayload.updateIndex : 0), oResponse.results);
-    
-            // Update state
-            this._handleDataReturnPayload(sRequest, oResponse, oPayload);
-        }
-        // Error
-        else if(ok && oResponse.error) {
-            this.showTableMessage(this.get("MSG_ERROR"), DT.CLASS_ERROR);
-        }
-    }
-},
-
-/**
- * Callback function receives reponse from DataSource and populates the
- * RecordSet with the results.
- *  
- * @method onDataReturnSetRows
- * @param oRequest {MIXED} Original generated request.
- * @param oResponse {Object} Response object.
- * @param oPayload {MIXED} (optional) Additional argument(s)
- */
-onDataReturnSetRows : function(oRequest, oResponse, oPayload) {
-    if((this instanceof DT) && this._sId) {
-        this.fireEvent("dataReturnEvent", {request:oRequest,response:oResponse,payload:oPayload});
-    
-        // Pass data through abstract method for any transformations
-        var ok    = this.doBeforeLoadData(oRequest, oResponse, oPayload),
-            pag   = this.get('paginator'),
-            index = 0;
-    
-        // Data ok to set
-        if(ok && oResponse && !oResponse.error && lang.isArray(oResponse.results)) {
-            // Update Records
-            if (this.get('dynamicData')) {
-                if (oPayload && oPayload.pagination &&
-                    lang.isNumber(oPayload.pagination.recordOffset)) {
-                    index = oPayload.pagination.recordOffset;
-                } else if (pag) {
-                    index = pag.getStartIndex();
-                }
-                
-                this._oRecordSet.reset(); // Bug 2290604: dyanmic data shouldn't keep accumulating by default
-            }
-    
-            this._oRecordSet.setRecords(oResponse.results, index | 0);
-    
-            // Update state
-            this._handleDataReturnPayload(oRequest, oResponse, oPayload);
-            
-            // Update UI
-            this.render();
-        }
-        // Error
-        else if(ok && oResponse.error) {
-            this.showTableMessage(this.get("MSG_ERROR"), DT.CLASS_ERROR);
-        }
-    }
-    else {
-    }
-},
-
-/**
- * Hook to update oPayload before consumption.
- *  
- * @method handleDataReturnPayload
- * @param oRequest {MIXED} Original generated request.
- * @param oResponse {Object} Response object.
- * @param oPayload {MIXED} State values.
- * @return oPayload {MIXED} State values.
- */
-handleDataReturnPayload : function (oRequest, oResponse, oPayload) {
-    return oPayload;
-},
-
-/**
- * Updates the DataTable with state data sent in an onDataReturn* payload.
- *  
- * @method handleDataReturnPayload
- * @param oRequest {MIXED} Original generated request.
- * @param oResponse {Object} Response object.
- * @param oPayload {MIXED} State values
- */
-_handleDataReturnPayload : function (oRequest, oResponse, oPayload) {
-    oPayload = this.handleDataReturnPayload(oRequest, oResponse, oPayload);
-    if(oPayload) {
-        // Update pagination
-        var oPaginator = this.get('paginator');
-        if (oPaginator) {
-            // Update totalRecords
-            if(this.get("dynamicData")) {
-                if (widget.Paginator.isNumeric(oPayload.totalRecords)) {
-                    oPaginator.set('totalRecords',oPayload.totalRecords);
-                }
-            }
-            else {
-                oPaginator.set('totalRecords',this._oRecordSet.getLength());
-            }
-            // Update other paginator values
-            if (lang.isObject(oPayload.pagination)) {
-                oPaginator.set('rowsPerPage',oPayload.pagination.rowsPerPage);
-                oPaginator.set('recordOffset',oPayload.pagination.recordOffset);
-            }
-        }
-
-        // Update sorting
-        if (oPayload.sortedBy) {
-            // Set the sorting values in preparation for refresh
-            this.set('sortedBy', oPayload.sortedBy);
-        }
-        // Backwards compatibility for sorting
-        else if (oPayload.sorting) {
-            // Set the sorting values in preparation for refresh
-            this.set('sortedBy', oPayload.sorting);
-        }
-    }
-},
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-    /////////////////////////////////////////////////////////////////////////////
-    //
-    // Custom Events
-    //
-    /////////////////////////////////////////////////////////////////////////////
-
-    /**
-     * Fired when the DataTable's rows are rendered from an initialized state.
-     *
-     * @event initEvent
-     */
-
-    /**
-     * Fired before the DataTable's DOM is rendered or modified.
-     *
-     * @event beforeRenderEvent
-     */
-
-    /**
-     * Fired when the DataTable's DOM is rendered or modified.
-     *
-     * @event renderEvent
-     */
-
-    /**
-     * Fired when the DataTable's post-render routine is complete, including
-     * Column width validations.
-     *
-     * @event postRenderEvent
-     */
-
-    /**
-     * Fired when the DataTable is disabled.
-     *
-     * @event disableEvent
-     */
-
-    /**
-     * Fired when the DataTable is undisabled.
-     *
-     * @event undisableEvent
-     */
-
-    /**
-     * Fired when data is returned from DataSource but before it is consumed by
-     * DataTable.
-     *
-     * @event dataReturnEvent
-     * @param oArgs.request {String} Original request.
-     * @param oArgs.response {Object} Response object.
-     */
-
-    /**
-     * Fired when the DataTable has a focus event.
-     *
-     * @event tableFocusEvent
-     */
-
-    /**
-     * Fired when the DataTable THEAD element has a focus event.
-     *
-     * @event theadFocusEvent
-     */
-
-    /**
-     * Fired when the DataTable TBODY element has a focus event.
-     *
-     * @event tbodyFocusEvent
-     */
-
-    /**
-     * Fired when the DataTable has a blur event.
-     *
-     * @event tableBlurEvent
-     */
-
-    /*TODO implement theadBlurEvent
-     * Fired when the DataTable THEAD element has a blur event.
-     *
-     * @event theadBlurEvent
-     */
-
-    /*TODO: implement tbodyBlurEvent
-     * Fired when the DataTable TBODY element has a blur event.
-     *
-     * @event tbodyBlurEvent
-     */
-
-    /**
-     * Fired when the DataTable has a key event.
-     *
-     * @event tableKeyEvent
-     * @param oArgs.event {HTMLEvent} The event object.
-     * @param oArgs.target {HTMLElement} The DataTable's TABLE element.
-     */
-
-    /**
-     * Fired when the DataTable THEAD element has a key event.
-     *
-     * @event theadKeyEvent
-     * @param oArgs.event {HTMLEvent} The event object.
-     * @param oArgs.target {HTMLElement} The DataTable's TABLE element.
-     */
-
-    /**
-     * Fired when the DataTable TBODY element has a key event.
-     *
-     * @event tbodyKeyEvent
-     * @param oArgs.event {HTMLEvent} The event object.
-     * @param oArgs.target {HTMLElement} The DataTable's TABLE element.
-     */
-
-    /**
-     * Fired when the DataTable has a mouseover.
-     *
-     * @event tableMouseoverEvent
-     * @param oArgs.event {HTMLEvent} The event object.
-     * @param oArgs.target {HTMLElement} The DataTable's TABLE element.
-     *
-     */
-
-    /**
-     * Fired when the DataTable has a mouseout.
-     *
-     * @event tableMouseoutEvent
-     * @param oArgs.event {HTMLEvent} The event object.
-     * @param oArgs.target {HTMLElement} The DataTable's TABLE element.
-     *
-     */
-
-    /**
-     * Fired when the DataTable has a mousedown.
-     *
-     * @event tableMousedownEvent
-     * @param oArgs.event {HTMLEvent} The event object.
-     * @param oArgs.target {HTMLElement} The DataTable's TABLE element.
-     *
-     */
-
-    /**
-     * Fired when the DataTable has a mouseup.
-     *
-     * @event tableMouseupEvent
-     * @param oArgs.event {HTMLEvent} The event object.
-     * @param oArgs.target {HTMLElement} The DataTable's TABLE element.
-     *
-     */
-
-    /**
-     * Fired when the DataTable has a click.
-     *
-     * @event tableClickEvent
-     * @param oArgs.event {HTMLEvent} The event object.
-     * @param oArgs.target {HTMLElement} The DataTable's TABLE element.
-     *
-     */
-
-    /**
-     * Fired when the DataTable has a dblclick.
-     *
-     * @event tableDblclickEvent
-     * @param oArgs.event {HTMLEvent} The event object.
-     * @param oArgs.target {HTMLElement} The DataTable's TABLE element.
-     *
-     */
-
-    /**
-     * Fired when a message is shown in the DataTable's message element.
-     *
-     * @event tableMsgShowEvent
-     * @param oArgs.html {String} The HTML displayed.
-     * @param oArgs.className {String} The className assigned.
-     *
-     */
-
-    /**
-     * Fired when the DataTable's message element is hidden.
-     *
-     * @event tableMsgHideEvent
-     */
-
-    /**
-     * Fired when a THEAD row has a mouseover.
-     *
-     * @event theadRowMouseoverEvent
-     * @param oArgs.event {HTMLEvent} The event object.
-     * @param oArgs.target {HTMLElement} The TR element.
-     */
-
-    /**
-     * Fired when a THEAD row has a mouseout.
-     *
-     * @event theadRowMouseoutEvent
-     * @param oArgs.event {HTMLEvent} The event object.
-     * @param oArgs.target {HTMLElement} The TR element.
-     */
-
-    /**
-     * Fired when a THEAD row has a mousedown.
-     *
-     * @event theadRowMousedownEvent
-     * @param oArgs.event {HTMLEvent} The event object.
-     * @param oArgs.target {HTMLElement} The TR element.
-     */
-
-    /**
-     * Fired when a THEAD row has a mouseup.
-     *
-     * @event theadRowMouseupEvent
-     * @param oArgs.event {HTMLEvent} The event object.
-     * @param oArgs.target {HTMLElement} The TR element.
-     */
-
-    /**
-     * Fired when a THEAD row has a click.
-     *
-     * @event theadRowClickEvent
-     * @param oArgs.event {HTMLEvent} The event object.
-     * @param oArgs.target {HTMLElement} The TR element.
-     */
-
-    /**
-     * Fired when a THEAD row has a dblclick.
-     *
-     * @event theadRowDblclickEvent
-     * @param oArgs.event {HTMLEvent} The event object.
-     * @param oArgs.target {HTMLElement} The TR element.
-     */
-
-    /**
-     * Fired when a THEAD cell has a mouseover.
-     *
-     * @event theadCellMouseoverEvent
-     * @param oArgs.event {HTMLEvent} The event object.
-     * @param oArgs.target {HTMLElement} The TH element.
-     *
-     */
-
-    /**
-     * Fired when a THEAD cell has a mouseout.
-     *
-     * @event theadCellMouseoutEvent
-     * @param oArgs.event {HTMLEvent} The event object.
-     * @param oArgs.target {HTMLElement} The TH element.
-     *
-     */
-
-    /**
-     * Fired when a THEAD cell has a mousedown.
-     *
-     * @event theadCellMousedownEvent
-     * @param oArgs.event {HTMLEvent} The event object.
-     * @param oArgs.target {HTMLElement} The TH element.
-     */
-
-    /**
-     * Fired when a THEAD cell has a mouseup.
-     *
-     * @event theadCellMouseupEvent
-     * @param oArgs.event {HTMLEvent} The event object.
-     * @param oArgs.target {HTMLElement} The TH element.
-     */
-
-    /**
-     * Fired when a THEAD cell has a click.
-     *
-     * @event theadCellClickEvent
-     * @param oArgs.event {HTMLEvent} The event object.
-     * @param oArgs.target {HTMLElement} The TH element.
-     */
-
-    /**
-     * Fired when a THEAD cell has a dblclick.
-     *
-     * @event theadCellDblclickEvent
-     * @param oArgs.event {HTMLEvent} The event object.
-     * @param oArgs.target {HTMLElement} The TH element.
-     */
-
-    /**
-     * Fired when a THEAD label has a mouseover.
-     *
-     * @event theadLabelMouseoverEvent
-     * @param oArgs.event {HTMLEvent} The event object.
-     * @param oArgs.target {HTMLElement} The SPAN element.
-     *
-     */
-
-    /**
-     * Fired when a THEAD label has a mouseout.
-     *
-     * @event theadLabelMouseoutEvent
-     * @param oArgs.event {HTMLEvent} The event object.
-     * @param oArgs.target {HTMLElement} The SPAN element.
-     *
-     */
-
-    /**
-     * Fired when a THEAD label has a mousedown.
-     *
-     * @event theadLabelMousedownEvent
-     * @param oArgs.event {HTMLEvent} The event object.
-     * @param oArgs.target {HTMLElement} The SPAN element.
-     */
-
-    /**
-     * Fired when a THEAD label has a mouseup.
-     *
-     * @event theadLabelMouseupEvent
-     * @param oArgs.event {HTMLEvent} The event object.
-     * @param oArgs.target {HTMLElement} The SPAN element.
-     */
-
-    /**
-     * Fired when a THEAD label has a click.
-     *
-     * @event theadLabelClickEvent
-     * @param oArgs.event {HTMLEvent} The event object.
-     * @param oArgs.target {HTMLElement} The SPAN element.
-     */
-
-    /**
-     * Fired when a THEAD label has a dblclick.
-     *
-     * @event theadLabelDblclickEvent
-     * @param oArgs.event {HTMLEvent} The event object.
-     * @param oArgs.target {HTMLElement} The SPAN element.
-     */
-
-    /**
-     * Fired when a column is sorted.
-     *
-     * @event columnSortEvent
-     * @param oArgs.column {YAHOO.widget.Column} The Column instance.
-     * @param oArgs.dir {String} Sort direction: YAHOO.widget.DataTable.CLASS_ASC
-     * or YAHOO.widget.DataTable.CLASS_DESC.
-     */
-
-    /**
-     * Fired when a column width is set.
-     *
-     * @event columnSetWidthEvent
-     * @param oArgs.column {YAHOO.widget.Column} The Column instance.
-     * @param oArgs.width {Number} The width in pixels.
-     */
-
-    /**
-     * Fired when a column width is unset.
-     *
-     * @event columnUnsetWidthEvent
-     * @param oArgs.column {YAHOO.widget.Column} The Column instance.
-     */
-
-    /**
-     * Fired when a column is drag-resized.
-     *
-     * @event columnResizeEvent
-     * @param oArgs.column {YAHOO.widget.Column} The Column instance.
-     * @param oArgs.target {HTMLElement} The TH element.
-     * @param oArgs.width {Number} Width in pixels.     
-     */
-
-    /**
-     * Fired when a Column is moved to a new index.
-     *
-     * @event columnReorderEvent
-     * @param oArgs.column {YAHOO.widget.Column} The Column instance.
-     * @param oArgs.oldIndex {Number} The previous index position.
-     */
-
-    /**
-     * Fired when a column is hidden.
-     *
-     * @event columnHideEvent
-     * @param oArgs.column {YAHOO.widget.Column} The Column instance.
-     */
-
-    /**
-     * Fired when a column is shown.
-     *
-     * @event columnShowEvent
-     * @param oArgs.column {YAHOO.widget.Column} The Column instance.
-     */
-
-    /**
-     * Fired when a column is selected.
-     *
-     * @event columnSelectEvent
-     * @param oArgs.column {YAHOO.widget.Column} The Column instance.
-     */
-
-    /**
-     * Fired when a column is unselected.
-     *
-     * @event columnUnselectEvent
-     * @param oArgs.column {YAHOO.widget.Column} The Column instance.
-     */
-    /**
-     * Fired when a column is removed.
-     *
-     * @event columnRemoveEvent
-     * @param oArgs.column {YAHOO.widget.Column} The Column instance.
-     */
-
-    /**
-     * Fired when a column is inserted.
-     *
-     * @event columnInsertEvent
-     * @param oArgs.column {YAHOO.widget.Column} The Column instance.
-     * @param oArgs.index {Number} The index position.
-     */
-
-    /**
-     * Fired when a column is highlighted.
-     *
-     * @event columnHighlightEvent
-     * @param oArgs.column {YAHOO.widget.Column} The highlighted Column.
-     */
-
-    /**
-     * Fired when a column is unhighlighted.
-     *
-     * @event columnUnhighlightEvent
-     * @param oArgs.column {YAHOO.widget.Column} The unhighlighted Column.
-     */
-
-
-    /**
-     * Fired when a row has a mouseover.
-     *
-     * @event rowMouseoverEvent
-     * @param oArgs.event {HTMLEvent} The event object.
-     * @param oArgs.target {HTMLElement} The TR element.
-     */
-
-    /**
-     * Fired when a row has a mouseout.
-     *
-     * @event rowMouseoutEvent
-     * @param oArgs.event {HTMLEvent} The event object.
-     * @param oArgs.target {HTMLElement} The TR element.
-     */
-
-    /**
-     * Fired when a row has a mousedown.
-     *
-     * @event rowMousedownEvent
-     * @param oArgs.event {HTMLEvent} The event object.
-     * @param oArgs.target {HTMLElement} The TR element.
-     */
-
-    /**
-     * Fired when a row has a mouseup.
-     *
-     * @event rowMouseupEvent
-     * @param oArgs.event {HTMLEvent} The event object.
-     * @param oArgs.target {HTMLElement} The TR element.
-     */
-
-    /**
-     * Fired when a row has a click.
-     *
-     * @event rowClickEvent
-     * @param oArgs.event {HTMLEvent} The event object.
-     * @param oArgs.target {HTMLElement} The TR element.
-     */
-
-    /**
-     * Fired when a row has a dblclick.
-     *
-     * @event rowDblclickEvent
-     * @param oArgs.event {HTMLEvent} The event object.
-     * @param oArgs.target {HTMLElement} The TR element.
-     */
-
-    /**
-     * Fired when a row is added.
-     *
-     * @event rowAddEvent
-     * @param oArgs.record {YAHOO.widget.Record} The added Record.
-     */
-     
-    /**
-     * Fired when rows are added.
-     *
-     * @event rowsAddEvent
-     * @param oArgs.record {YAHOO.widget.Record[]} The added Records.
-     */
-
-    /**
-     * Fired when a row is updated.
-     *
-     * @event rowUpdateEvent
-     * @param oArgs.record {YAHOO.widget.Record} The updated Record.
-     * @param oArgs.oldData {Object} Object literal of the old data.
-     */
-
-    /**
-     * Fired when a row is deleted.
-     *
-     * @event rowDeleteEvent
-     * @param oArgs.oldData {Object} Object literal of the deleted data.
-     * @param oArgs.recordIndex {Number} Index of the deleted Record.
-     * @param oArgs.trElIndex {Number} Index of the deleted TR element, if on current page.
-     */
-     
-    /**
-     * Fired when rows are deleted.
-     *
-     * @event rowsDeleteEvent
-     * @param oArgs.oldData {Object[]} Array of object literals of the deleted data.
-     * @param oArgs.recordIndex {Number} Index of the first deleted Record.
-     * @param oArgs.count {Number} Number of deleted Records.
-     */
-
-    /**
-     * Fired when a row is selected.
-     *
-     * @event rowSelectEvent
-     * @param oArgs.el {HTMLElement} The selected TR element, if applicable.
-     * @param oArgs.record {YAHOO.widget.Record} The selected Record.
-     */
-
-    /**
-     * Fired when a row is unselected.
-     *
-     * @event rowUnselectEvent
-     * @param oArgs.el {HTMLElement} The unselected TR element, if applicable.
-     * @param oArgs.record {YAHOO.widget.Record} The unselected Record.
-     */
-
-    /**
-     * Fired when all row selections are cleared.
-     *
-     * @event unselectAllRowsEvent
-     */
-
-    /**
-     * Fired when a row is highlighted.
-     *
-     * @event rowHighlightEvent
-     * @param oArgs.el {HTMLElement} The highlighted TR element.
-     * @param oArgs.record {YAHOO.widget.Record} The highlighted Record.
-     */
-
-    /**
-     * Fired when a row is unhighlighted.
-     *
-     * @event rowUnhighlightEvent
-     * @param oArgs.el {HTMLElement} The highlighted TR element.
-     * @param oArgs.record {YAHOO.widget.Record} The highlighted Record.
-     */
-
-    /**
-     * Fired when a cell is updated.
-     *
-     * @event cellUpdateEvent
-     * @param oArgs.record {YAHOO.widget.Record} The updated Record.
-     * @param oArgs.column {YAHOO.widget.Column} The updated Column.
-     * @param oArgs.oldData {Object} Original data value of the updated cell.
-     */
-
-    /**
-     * Fired when a cell has a mouseover.
-     *
-     * @event cellMouseoverEvent
-     * @param oArgs.event {HTMLEvent} The event object.
-     * @param oArgs.target {HTMLElement} The TD element.
-     */
-
-    /**
-     * Fired when a cell has a mouseout.
-     *
-     * @event cellMouseoutEvent
-     * @param oArgs.event {HTMLEvent} The event object.
-     * @param oArgs.target {HTMLElement} The TD element.
-     */
-
-    /**
-     * Fired when a cell has a mousedown.
-     *
-     * @event cellMousedownEvent
-     * @param oArgs.event {HTMLEvent} The event object.
-     * @param oArgs.target {HTMLElement} The TD element.
-     */
-
-    /**
-     * Fired when a cell has a mouseup.
-     *
-     * @event cellMouseupEvent
-     * @param oArgs.event {HTMLEvent} The event object.
-     * @param oArgs.target {HTMLElement} The TD element.
-     */
-
-    /**
-     * Fired when a cell has a click.
-     *
-     * @event cellClickEvent
-     * @param oArgs.event {HTMLEvent} The event object.
-     * @param oArgs.target {HTMLElement} The TD element.
-     */
-
-    /**
-     * Fired when a cell has a dblclick.
-     *
-     * @event cellDblclickEvent
-     * @param oArgs.event {HTMLEvent} The event object.
-     * @param oArgs.target {HTMLElement} The TD element.
-     */
-
-    /**
-     * Fired when a cell is formatted.
-     *
-     * @event cellFormatEvent
-     * @param oArgs.el {HTMLElement} The formatted TD element.
-     * @param oArgs.record {YAHOO.widget.Record} The associated Record instance.
-     * @param oArgs.column {YAHOO.widget.Column} The associated Column instance.
-     * @param oArgs.key {String} (deprecated) The key of the formatted cell.
-     */
-
-    /**
-     * Fired when a cell is selected.
-     *
-     * @event cellSelectEvent
-     * @param oArgs.el {HTMLElement} The selected TD element.
-     * @param oArgs.record {YAHOO.widget.Record} The associated Record instance.
-     * @param oArgs.column {YAHOO.widget.Column} The associated Column instance.
-     * @param oArgs.key {String} (deprecated) The key of the selected cell.
-     */
-
-    /**
-     * Fired when a cell is unselected.
-     *
-     * @event cellUnselectEvent
-     * @param oArgs.el {HTMLElement} The unselected TD element.
-     * @param oArgs.record {YAHOO.widget.Record} The associated Record.
-     * @param oArgs.column {YAHOO.widget.Column} The associated Column instance.
-     * @param oArgs.key {String} (deprecated) The key of the unselected cell.
-
-     */
-
-    /**
-     * Fired when a cell is highlighted.
-     *
-     * @event cellHighlightEvent
-     * @param oArgs.el {HTMLElement} The highlighted TD element.
-     * @param oArgs.record {YAHOO.widget.Record} The associated Record instance.
-     * @param oArgs.column {YAHOO.widget.Column} The associated Column instance.
-     * @param oArgs.key {String} (deprecated) The key of the highlighted cell.
-
-     */
-
-    /**
-     * Fired when a cell is unhighlighted.
-     *
-     * @event cellUnhighlightEvent
-     * @param oArgs.el {HTMLElement} The unhighlighted TD element.
-     * @param oArgs.record {YAHOO.widget.Record} The associated Record instance.
-     * @param oArgs.column {YAHOO.widget.Column} The associated Column instance.
-     * @param oArgs.key {String} (deprecated) The key of the unhighlighted cell.
-
-     */
-
-    /**
-     * Fired when all cell selections are cleared.
-     *
-     * @event unselectAllCellsEvent
-     */
-
-    /**
-     * Fired when a CellEditor is shown.
-     *
-     * @event editorShowEvent
-     * @param oArgs.editor {YAHOO.widget.CellEditor} The CellEditor instance.
-     */
-
-    /**
-     * Fired when a CellEditor has a keydown.
-     *
-     * @event editorKeydownEvent
-     * @param oArgs.editor {YAHOO.widget.CellEditor} The CellEditor instance.
-     * @param oArgs.event {HTMLEvent} The event object.
-     */
-
-    /**
-     * Fired when a CellEditor input is reverted.
-     *
-     * @event editorRevertEvent
-     * @param oArgs.editor {YAHOO.widget.CellEditor} The CellEditor instance.
-     * @param oArgs.newData {Object} New data value from form input field.
-     * @param oArgs.oldData {Object} Old data value.
-     */
-
-    /**
-     * Fired when a CellEditor input is saved.
-     *
-     * @event editorSaveEvent
-     * @param oArgs.editor {YAHOO.widget.CellEditor} The CellEditor instance.
-     * @param oArgs.newData {Object} New data value from form input field.
-     * @param oArgs.oldData {Object} Old data value.
-     */
-
-    /**
-     * Fired when a CellEditor input is canceled.
-     *
-     * @event editorCancelEvent
-     * @param oArgs.editor {YAHOO.widget.CellEditor} The CellEditor instance.
-     */
-
-    /**
-     * Fired when a CellEditor has a blur event.
-     *
-     * @event editorBlurEvent
-     * @param oArgs.editor {YAHOO.widget.CellEditor} The CellEditor instance.
-     */
-
-    /**
-     * Fired when a CellEditor is blocked.
-     *
-     * @event editorBlockEvent
-     * @param oArgs.editor {YAHOO.widget.CellEditor} The CellEditor instance.
-     */
-
-    /**
-     * Fired when a CellEditor is unblocked.
-     *
-     * @event editorUnblockEvent
-     * @param oArgs.editor {YAHOO.widget.CellEditor} The CellEditor instance.
-     */
-
-
-
-
-
-    /**
-     * Fired when a link is clicked.
-     *
-     * @event linkClickEvent
-     * @param oArgs.event {HTMLEvent} The event object.
-     * @param oArgs.target {HTMLElement} The A element.
-     */
-
-    /**
-     * Fired when a BUTTON element or INPUT element of type "button", "image",
-     * "submit", "reset" is clicked.
-     *
-     * @event buttonClickEvent
-     * @param oArgs.event {HTMLEvent} The event object.
-     * @param oArgs.target {HTMLElement} The BUTTON element.
-     */
-
-    /**
-     * Fired when a CHECKBOX element is clicked.
-     *
-     * @event checkboxClickEvent
-     * @param oArgs.event {HTMLEvent} The event object.
-     * @param oArgs.target {HTMLElement} The CHECKBOX element.
-     */
-
-    /**
-     * Fired when a SELECT element is changed.
-     *
-     * @event dropdownChangeEvent
-     * @param oArgs.event {HTMLEvent} The event object.
-     * @param oArgs.target {HTMLElement} The SELECT element.
-     */
-
-    /**
-     * Fired when a RADIO element is clicked.
-     *
-     * @event radioClickEvent
-     * @param oArgs.event {HTMLEvent} The event object.
-     * @param oArgs.target {HTMLElement} The RADIO element.
-     */
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-/////////////////////////////////////////////////////////////////////////////
-//
-// Deprecated APIs
-//
-/////////////////////////////////////////////////////////////////////////////
-  
-/*
- * @method showCellEditorBtns
- * @deprecated Use CellEditor.renderBtns() 
- */
-showCellEditorBtns : function(elContainer) {
-    // Buttons
-    var elBtnsDiv = elContainer.appendChild(document.createElement("div"));
-    Dom.addClass(elBtnsDiv, DT.CLASS_BUTTON);
-
-    // Save button
-    var elSaveBtn = elBtnsDiv.appendChild(document.createElement("button"));
-    Dom.addClass(elSaveBtn, DT.CLASS_DEFAULT);
-    elSaveBtn.innerHTML = "OK";
-    Ev.addListener(elSaveBtn, "click", function(oArgs, oSelf) {
-        oSelf.onEventSaveCellEditor(oArgs, oSelf);
-        oSelf.focusTbodyEl();
-    }, this, true);
-
-    // Cancel button
-    var elCancelBtn = elBtnsDiv.appendChild(document.createElement("button"));
-    elCancelBtn.innerHTML = "Cancel";
-    Ev.addListener(elCancelBtn, "click", function(oArgs, oSelf) {
-        oSelf.onEventCancelCellEditor(oArgs, oSelf);
-        oSelf.focusTbodyEl();
-    }, this, true);
-
-},
-
-/**
- * @method resetCellEditor
- * @deprecated Use destroyCellEditor 
- */
-resetCellEditor : function() {
-    var elContainer = this._oCellEditor.container;
-    elContainer.style.display = "none";
-    Ev.purgeElement(elContainer, true);
-    elContainer.innerHTML = "";
-    this._oCellEditor.value = null;
-    this._oCellEditor.isActive = false;
-
-},
-
-/**
- * @event editorUpdateEvent
- * @deprecated Use CellEditor class.
- */
-
-/**
- * @method getBody
- * @deprecated Use getTbodyEl().
- */
-getBody : function() {
-    // Backward compatibility
-    return this.getTbodyEl();
-},
-
-/**
- * @method getCell
- * @deprecated Use getTdEl().
- */
-getCell : function(index) {
-    // Backward compatibility
-    return this.getTdEl(index);
-},
-
-/**
- * @method getRow
- * @deprecated Use getTrEl().
- */
-getRow : function(index) {
-    // Backward compatibility
-    return this.getTrEl(index);
-},
-
-/**
- * @method refreshView
- * @deprecated Use render.
- */
-refreshView : function() {
-    // Backward compatibility
-    this.render();
-},
-
-/**
- * @method select
- * @deprecated Use selectRow.
- */
-select : function(els) {
-    // Backward compatibility
-    if(!lang.isArray(els)) {
-        els = [els];
-    }
-    for(var i=0; i<els.length; i++) {
-        this.selectRow(els[i]);
-    }
-},
-
-/**
- * @method onEventEditCell
- * @deprecated Use onEventShowCellEditor.
- */
-onEventEditCell : function(oArgs) {
-    // Backward compatibility
-    this.onEventShowCellEditor(oArgs);
-},
-
-/**
- * @method _syncColWidths
- * @deprecated Use validateColumnWidths.
- */
-_syncColWidths : function() {
-    // Backward compatibility
-    this.validateColumnWidths();
-}
-
-/**
- * @event headerRowMouseoverEvent
- * @deprecated Use theadRowMouseoverEvent.
- */
-
-/**
- * @event headerRowMouseoutEvent
- * @deprecated Use theadRowMouseoutEvent.
- */
-
-/**
- * @event headerRowMousedownEvent
- * @deprecated Use theadRowMousedownEvent.
- */
-
-/**
- * @event headerRowClickEvent
- * @deprecated Use theadRowClickEvent.
- */
-
-/**
- * @event headerRowDblclickEvent
- * @deprecated Use theadRowDblclickEvent.
- */
-
-/**
- * @event headerCellMouseoverEvent
- * @deprecated Use theadCellMouseoverEvent.
- */
-
-/**
- * @event headerCellMouseoutEvent
- * @deprecated Use theadCellMouseoutEvent.
- */
-
-/**
- * @event headerCellMousedownEvent
- * @deprecated Use theadCellMousedownEvent.
- */
-
-/**
- * @event headerCellClickEvent
- * @deprecated Use theadCellClickEvent.
- */
-
-/**
- * @event headerCellDblclickEvent
- * @deprecated Use theadCellDblclickEvent.
- */
-
-/**
- * @event headerLabelMouseoverEvent
- * @deprecated Use theadLabelMouseoverEvent.
- */
-
-/**
- * @event headerLabelMouseoutEvent
- * @deprecated Use theadLabelMouseoutEvent.
- */
-
-/**
- * @event headerLabelMousedownEvent
- * @deprecated Use theadLabelMousedownEvent.
- */
-
-/**
- * @event headerLabelClickEvent
- * @deprecated Use theadLabelClickEvent.
- */
-
-/**
- * @event headerLabelDbllickEvent
- * @deprecated Use theadLabelDblclickEvent.
- */
-
-});
-
-/**
- * Alias for onDataReturnSetRows for backward compatibility
- * @method onDataReturnSetRecords
- * @deprecated Use onDataReturnSetRows
- */
-DT.prototype.onDataReturnSetRecords = DT.prototype.onDataReturnSetRows;
-
-/**
- * Alias for onPaginatorChange for backward compatibility
- * @method onPaginatorChange
- * @deprecated Use onPaginatorChangeRequest
- */
-DT.prototype.onPaginatorChange = DT.prototype.onPaginatorChangeRequest;
-
-/////////////////////////////////////////////////////////////////////////////
-//
-// Deprecated static APIs
-//
-/////////////////////////////////////////////////////////////////////////////
-/**
- * @method DataTable.formatTheadCell
- * @deprecated  Use formatTheadCell.
- */
-DT.formatTheadCell = function() {};
-
-/**
- * @method DataTable.editCheckbox
- * @deprecated  Use YAHOO.widget.CheckboxCellEditor.
- */
-DT.editCheckbox = function() {};
-
-/**
- * @method DataTable.editDate
- * @deprecated Use YAHOO.widget.DateCellEditor.
- */
-DT.editDate = function() {};
-
-/**
- * @method DataTable.editDropdown
- * @deprecated Use YAHOO.widget.DropdownCellEditor.
- */
-DT.editDropdown = function() {};
-
-/**
- * @method DataTable.editRadio
- * @deprecated Use YAHOO.widget.RadioCellEditor.
- */
-DT.editRadio = function() {};
-
-/**
- * @method DataTable.editTextarea
- * @deprecated Use YAHOO.widget.TextareaCellEditor
- */
-DT.editTextarea = function() {};
-
-/**
- * @method DataTable.editTextbox
- * @deprecated Use YAHOO.widget.TextboxCellEditor
- */
-DT.editTextbox= function() {};
-
-})();
-
-(function () {
-
-var lang   = YAHOO.lang,
-    util   = YAHOO.util,
-    widget = YAHOO.widget,
-    ua     = YAHOO.env.ua,
-    
-    Dom    = util.Dom,
-    Ev     = util.Event,
-    DS     = util.DataSourceBase,
-    DT     = widget.DataTable,
-    Pag    = widget.Paginator;
-    
-/**
- * The ScrollingDataTable class extends the DataTable class to provide
- * functionality for x-scrolling, y-scrolling, and xy-scrolling.
- *
- * @namespace YAHOO.widget
- * @class ScrollingDataTable
- * @extends YAHOO.widget.DataTable
- * @constructor
- * @param elContainer {HTMLElement} Container element for the TABLE.
- * @param aColumnDefs {Object[]} Array of object literal Column definitions.
- * @param oDataSource {YAHOO.util.DataSource} DataSource instance.
- * @param oConfigs {object} (optional) Object literal of configuration values.
- */
-widget.ScrollingDataTable = function(elContainer,aColumnDefs,oDataSource,oConfigs) {
-    oConfigs = oConfigs || {};
-    
-    // Prevent infinite loop
-    if(oConfigs.scrollable) {
-        oConfigs.scrollable = false;
-    }
-
-    widget.ScrollingDataTable.superclass.constructor.call(this, elContainer,aColumnDefs,oDataSource,oConfigs); 
-
-    // Once per instance
-    this.subscribe("columnShowEvent", this._onColumnChange);
-};
-
-var SDT = widget.ScrollingDataTable;
-
-/////////////////////////////////////////////////////////////////////////////
-//
-// Public constants
-//
-/////////////////////////////////////////////////////////////////////////////
-lang.augmentObject(SDT, {
-
-    /**
-     * Class name assigned to inner DataTable header container.
-     *
-     * @property DataTable.CLASS_HEADER
-     * @type String
-     * @static
-     * @final
-     * @default "yui-dt-hd"
-     */
-    CLASS_HEADER : "yui-dt-hd",
-    
-    /**
-     * Class name assigned to inner DataTable body container.
-     *
-     * @property DataTable.CLASS_BODY
-     * @type String
-     * @static
-     * @final
-     * @default "yui-dt-bd"
-     */
-    CLASS_BODY : "yui-dt-bd"
-});
-
-lang.extend(SDT, DT, {
-
-/**
- * Container for fixed header TABLE element.
- *
- * @property _elHdContainer
- * @type HTMLElement
- * @private
- */
-_elHdContainer : null,
-
-/**
- * Fixed header TABLE element.
- *
- * @property _elHdTable
- * @type HTMLElement
- * @private
- */
-_elHdTable : null,
-
-/**
- * Container for scrolling body TABLE element.
- *
- * @property _elBdContainer
- * @type HTMLElement
- * @private
- */
-_elBdContainer : null,
-
-/**
- * Body THEAD element.
- *
- * @property _elBdThead
- * @type HTMLElement
- * @private
- */
-_elBdThead : null,
-
-/**
- * Offscreen container to temporarily clone SDT for auto-width calculation.
- *
- * @property _elTmpContainer
- * @type HTMLElement
- * @private
- */
-_elTmpContainer : null,
-
-/**
- * Offscreen TABLE element for auto-width calculation.
- *
- * @property _elTmpTable
- * @type HTMLElement
- * @private
- */
-_elTmpTable : null,
-
-/**
- * True if x-scrollbar is currently visible.
- * @property _bScrollbarX
- * @type Boolean
- * @private 
- */
-_bScrollbarX : null,
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-/////////////////////////////////////////////////////////////////////////////
-//
-// Superclass methods
-//
-/////////////////////////////////////////////////////////////////////////////
-
-/**
- * Implementation of Element's abstract method. Sets up config values.
- *
- * @method initAttributes
- * @param oConfigs {Object} (Optional) Object literal definition of configuration values.
- * @private
- */
-
-initAttributes : function(oConfigs) {
-    oConfigs = oConfigs || {};
-    SDT.superclass.initAttributes.call(this, oConfigs);
-
-    /**
-    * @attribute width
-    * @description Table width for scrollable tables (e.g., "40em").
-    * @type String
-    */
-    this.setAttributeConfig("width", {
-        value: null,
-        validator: lang.isString,
-        method: function(oParam) {
-            if(this._elHdContainer && this._elBdContainer) {
-                this._elHdContainer.style.width = oParam;
-                this._elBdContainer.style.width = oParam;            
-                this._syncScrollX();      
-                this._syncScrollOverhang();
-            }
-        }
-    });
-
-    /**
-    * @attribute height
-    * @description Table body height for scrollable tables, not including headers (e.g., "40em").
-    * @type String
-    */
-    this.setAttributeConfig("height", {
-        value: null,
-        validator: lang.isString,
-        method: function(oParam) {
-            if(this._elHdContainer && this._elBdContainer) {
-                this._elBdContainer.style.height = oParam;    
-                this._syncScrollX();   
-                this._syncScrollY();
-                this._syncScrollOverhang();
-            }
-        }
-    });
-
-    /**
-    * @attribute COLOR_COLUMNFILLER
-    * @description CSS color value assigned to header filler on scrollable tables.  
-    * @type String
-    * @default "#F2F2F2"
-    */
-    this.setAttributeConfig("COLOR_COLUMNFILLER", {
-        value: "#F2F2F2",
-        validator: lang.isString,
-        method: function(oParam) {
-            this._elHdContainer.style.backgroundColor = oParam;
-        }
-    });
-},
-
-/**
- * Initializes DOM elements for a ScrollingDataTable, including creation of
- * two separate TABLE elements.
- *
- * @method _initDomElements
- * @param elContainer {HTMLElement | String} HTML DIV element by reference or ID. 
- * return {Boolean} False in case of error, otherwise true 
- * @private
- */
-_initDomElements : function(elContainer) {
-    // Outer and inner containers
-    this._initContainerEl(elContainer);
-    if(this._elContainer && this._elHdContainer && this._elBdContainer) {
-        // TABLEs
-        this._initTableEl();
-        
-        if(this._elHdTable && this._elTable) {
-            // COLGROUPs
-            ///this._initColgroupEl(this._elHdTable, this._elTable);  
-            this._initColgroupEl(this._elHdTable);        
-            
-            // THEADs
-            this._initTheadEl(this._elHdTable, this._elTable);
-            
-            // Primary TBODY
-            this._initTbodyEl(this._elTable);
-            // Message TBODY
-            this._initMsgTbodyEl(this._elTable);            
-        }
-    }
-    if(!this._elContainer || !this._elTable || !this._elColgroup ||  !this._elThead || !this._elTbody || !this._elMsgTbody ||
-            !this._elHdTable || !this._elBdThead) {
-        return false;
-    }
-    else {
-        return true;
-    }
-},
-
-/**
- * Destroy's the DataTable outer and inner container elements, if available.
- *
- * @method _destroyContainerEl
- * @param elContainer {HTMLElement} Reference to the container element. 
- * @private
- */
-_destroyContainerEl : function(elContainer) {
-    Dom.removeClass(elContainer, DT.CLASS_SCROLLABLE);
-    SDT.superclass._destroyContainerEl.call(this, elContainer);
-    this._elHdContainer = null;
-    this._elBdContainer = null;
-},
-
-/**
- * Initializes the DataTable outer container element and creates inner header
- * and body container elements.
- *
- * @method _initContainerEl
- * @param elContainer {HTMLElement | String} HTML DIV element by reference or ID.
- * @private
- */
-_initContainerEl : function(elContainer) {
-    SDT.superclass._initContainerEl.call(this, elContainer);
-    
-    if(this._elContainer) {
-        elContainer = this._elContainer; // was constructor input, now is DOM ref
-        Dom.addClass(elContainer, DT.CLASS_SCROLLABLE);
-        
-        // Container for header TABLE
-        var elHdContainer = document.createElement("div");
-        elHdContainer.style.width = this.get("width") || "";
-        elHdContainer.style.backgroundColor = this.get("COLOR_COLUMNFILLER");
-        Dom.addClass(elHdContainer, SDT.CLASS_HEADER);
-        this._elHdContainer = elHdContainer;
-        elContainer.appendChild(elHdContainer);
-    
-        // Container for body TABLE
-        var elBdContainer = document.createElement("div");
-        elBdContainer.style.width = this.get("width") || "";
-        elBdContainer.style.height = this.get("height") || "";
-        Dom.addClass(elBdContainer, SDT.CLASS_BODY);
-        Ev.addListener(elBdContainer, "scroll", this._onScroll, this); // to sync horiz scroll headers
-        this._elBdContainer = elBdContainer;
-        elContainer.appendChild(elBdContainer);
-    }
-},
-
-/**
- * Creates HTML markup CAPTION element.
- *
- * @method _initCaptionEl
- * @param sCaption {String} Text for caption.
- * @private
- */
-_initCaptionEl : function(sCaption) {
-    // Not yet supported
-    /*if(this._elHdTable && sCaption) {
-        // Create CAPTION element
-        if(!this._elCaption) { 
-            this._elCaption = this._elHdTable.createCaption();
-        }
-        // Set CAPTION value
-        this._elCaption.innerHTML = sCaption;
-    }
-    else if(this._elCaption) {
-        this._elCaption.parentNode.removeChild(this._elCaption);
-    }*/
-},
-
-/**
- * Destroy's the DataTable head TABLE element, if available.
- *
- * @method _destroyHdTableEl
- * @private
- */
-_destroyHdTableEl : function() {
-    var elTable = this._elHdTable;
-    if(elTable) {
-        Ev.purgeElement(elTable, true);
-        elTable.parentNode.removeChild(elTable);
-        
-        // A little out of place, but where else can we null out these extra elements?
-        ///this._elBdColgroup = null;
-        this._elBdThead = null;
-    }
-},
-
-/**
- * Initializes ScrollingDataTable TABLE elements into the two inner containers.
- *
- * @method _initTableEl
- * @private
- */
-_initTableEl : function() {
-    // Head TABLE
-    if(this._elHdContainer) {
-        this._destroyHdTableEl();
-    
-        // Create TABLE
-        this._elHdTable = this._elHdContainer.appendChild(document.createElement("table"));   
-    } 
-    // Body TABLE
-    SDT.superclass._initTableEl.call(this, this._elBdContainer);
-},
-
-/**
- * Initializes ScrollingDataTable THEAD elements into the two inner containers.
- *
- * @method _initTheadEl
- * @param elHdTable {HTMLElement} (optional) Fixed header TABLE element reference.
- * @param elTable {HTMLElement} (optional) TABLE element reference.
- * @private
- */
-_initTheadEl : function(elHdTable, elTable) {
-    elHdTable = elHdTable || this._elHdTable;
-    elTable = elTable || this._elTable;
-    
-    // Scrolling body's THEAD
-    this._initBdTheadEl(elTable);
-    // Standard fixed head THEAD
-    SDT.superclass._initTheadEl.call(this, elHdTable);
-},
-
-/**
- * SDT changes ID so as not to duplicate the accessibility TH IDs.
- *
- * @method _initThEl
- * @param elTh {HTMLElement} TH element reference.
- * @param oColumn {YAHOO.widget.Column} Column object.
- * @private
- */
-_initThEl : function(elTh, oColumn) {
-    SDT.superclass._initThEl.call(this, elTh, oColumn);
-    elTh.id = this.getId() +"-fixedth-" + oColumn.getSanitizedKey(); // Needed for getColumn by TH and ColumnDD
-},
-
-/**
- * Destroy's the DataTable body THEAD element, if available.
- *
- * @method _destroyBdTheadEl
- * @private
- */
-_destroyBdTheadEl : function() {
-    var elBdThead = this._elBdThead;
-    if(elBdThead) {
-        var elTable = elBdThead.parentNode;
-        Ev.purgeElement(elBdThead, true);
-        elTable.removeChild(elBdThead);
-        this._elBdThead = null;
-
-        this._destroyColumnHelpers();
-    }
-},
-
-/**
- * Initializes body THEAD element.
- *
- * @method _initBdTheadEl
- * @param elTable {HTMLElement} TABLE element into which to create THEAD.
- * @return {HTMLElement} Initialized THEAD element. 
- * @private
- */
-_initBdTheadEl : function(elTable) {
-    if(elTable) {
-        // Destroy previous
-        this._destroyBdTheadEl();
-
-        var elThead = elTable.insertBefore(document.createElement("thead"), elTable.firstChild);
-        
-        // Add TRs to the THEAD;
-        var oColumnSet = this._oColumnSet,
-            colTree = oColumnSet.tree,
-            elTh, elTheadTr, oColumn, i, j, k, len;
-
-        for(i=0, k=colTree.length; i<k; i++) {
-            elTheadTr = elThead.appendChild(document.createElement("tr"));
-    
-            // ...and create TH cells
-            for(j=0, len=colTree[i].length; j<len; j++) {
-                oColumn = colTree[i][j];
-                elTh = elTheadTr.appendChild(document.createElement("th"));
-                this._initBdThEl(elTh,oColumn,i,j);
-            }
-        }
-        this._elBdThead = elThead;
-    }
-},
-
-/**
- * Populates TH element for the body THEAD element.
- *
- * @method _initBdThEl
- * @param elTh {HTMLElement} TH element reference.
- * @param oColumn {YAHOO.widget.Column} Column object.
- * @private
- */
-_initBdThEl : function(elTh, oColumn) {
-    elTh.id = this.getId()+"-th-" + oColumn.getSanitizedKey(); // Needed for accessibility
-    elTh.rowSpan = oColumn.getRowspan();
-    elTh.colSpan = oColumn.getColspan();
-    // Assign abbr attribute
-    if(oColumn.abbr) {
-        elTh.abbr = oColumn.abbr;
-    }
-
-    // TODO: strip links and form elements
-    var sKey = oColumn.getKey();
-    var sLabel = lang.isValue(oColumn.label) ? oColumn.label : sKey;
-    elTh.innerHTML = sLabel;
-},
-
-/**
- * Initializes ScrollingDataTable TBODY element for data
- *
- * @method _initTbodyEl
- * @param elTable {HTMLElement} TABLE element into which to create TBODY .
- * @private
- */
-_initTbodyEl : function(elTable) {
-    SDT.superclass._initTbodyEl.call(this, elTable);
-    
-    // Bug 2105534 - Safari 3 gap
-    // Bug 2492591 - IE8 offsetTop
-    elTable.style.marginTop = (this._elTbody.offsetTop > 0) ?
-            "-"+this._elTbody.offsetTop+"px" : 0;
-},
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-/**
- * Sets focus on the given element.
- *
- * @method _focusEl
- * @param el {HTMLElement} Element.
- * @private
- */
-_focusEl : function(el) {
-    el = el || this._elTbody;
-    var oSelf = this;
-    this._storeScrollPositions();
-    // http://developer.mozilla.org/en/docs/index.php?title=Key-navigable_custom_DHTML_widgets
-    // The timeout is necessary in both IE and Firefox 1.5, to prevent scripts from doing
-    // strange unexpected things as the user clicks on buttons and other controls.
-    
-    // Bug 1921135: Wrap the whole thing in a setTimeout
-    setTimeout(function() {
-        setTimeout(function() {
-            try {
-                el.focus();
-                oSelf._restoreScrollPositions();
-            }
-            catch(e) {
-            }
-        },0);
-    }, 0);
-},
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-/**
- * Internal wrapper calls run() on render Chain instance.
- *
- * @method _runRenderChain
- * @private 
- */
-_runRenderChain : function() {
-    this._storeScrollPositions();
-    this._oChainRender.run();
-},
-
-/**
- * Stores scroll positions so they can be restored after a render.
- *
- * @method _storeScrollPositions
- * @private
- */
- _storeScrollPositions : function() {
-    this._nScrollTop = this._elBdContainer.scrollTop;
-    this._nScrollLeft = this._elBdContainer.scrollLeft;
-},
-
-/**
- * Clears stored scroll positions to interrupt the automatic restore mechanism.
- * Useful for setting scroll positions programmatically rather than as part of
- * the post-render cleanup process.
- *
- * @method clearScrollPositions
- * @private
- */
- clearScrollPositions : function() {
-    this._nScrollTop = 0;
-    this._nScrollLeft = 0;
-},
-
-/**
- * Restores scroll positions to stored value. 
- *
- * @method _retoreScrollPositions
- * @private 
- */
- _restoreScrollPositions : function() {
-    // Reset scroll positions
-    if(this._nScrollTop) {
-        this._elBdContainer.scrollTop = this._nScrollTop;
-        this._nScrollTop = null;
-    } 
-    if(this._nScrollLeft) {
-        this._elBdContainer.scrollLeft = this._nScrollLeft;
-        this._nScrollLeft = null;
-    } 
-},
-
-/**
- * Helper function calculates and sets a validated width for a Column in a ScrollingDataTable.
- *
- * @method _validateColumnWidth
- * @param oColumn {YAHOO.widget.Column} Column instance.
- * @param elTd {HTMLElement} TD element to validate against.
- * @private
- */
-_validateColumnWidth : function(oColumn, elTd) {
-    // Only Columns without widths that are not hidden
-    if(!oColumn.width && !oColumn.hidden) {
-        var elTh = oColumn.getThEl();
-        // Unset a calculated auto-width
-        if(oColumn._calculatedWidth) {
-            this._setColumnWidth(oColumn, "auto", "visible");
-        }
-        // Compare auto-widths
-        if(elTh.offsetWidth !== elTd.offsetWidth) {
-            var elWider = (elTh.offsetWidth > elTd.offsetWidth) ?
-                    oColumn.getThLinerEl() : elTd.firstChild;               
-
-            // Grab the wider liner width, unless the minWidth is wider
-            var newWidth = Math.max(0,
-                (elWider.offsetWidth -(parseInt(Dom.getStyle(elWider,"paddingLeft"),10)|0) - (parseInt(Dom.getStyle(elWider,"paddingRight"),10)|0)),
-                oColumn.minWidth);
-                
-            var sOverflow = 'visible';
-            
-            // Now validate against maxAutoWidth
-            if((oColumn.maxAutoWidth > 0) && (newWidth > oColumn.maxAutoWidth)) {
-                newWidth = oColumn.maxAutoWidth;
-                sOverflow = "hidden";
-            }
-
-            // Set to the wider auto-width
-            this._elTbody.style.display = "none";
-            this._setColumnWidth(oColumn, newWidth+'px', sOverflow);
-            oColumn._calculatedWidth = newWidth;
-            this._elTbody.style.display = "";
-        }
-    }
-},
-
-/**
- * For one or all Columns of a ScrollingDataTable, when Column is not hidden,
- * and width is not set, syncs widths of header and body cells and 
- * validates that width against minWidth and/or maxAutoWidth as necessary.
- *
- * @method validateColumnWidths
- * @param oArg.column {YAHOO.widget.Column} (optional) One Column to validate. If null, all Columns' widths are validated.
- */
-validateColumnWidths : function(oColumn) {
-    // Validate there is at least one TR with proper TDs
-    var allKeys   = this._oColumnSet.keys,
-        allKeysLength = allKeys.length,
-        elRow     = this.getFirstTrEl();
-
-    // Reset overhang for IE
-    if(ua.ie) {
-        this._setOverhangValue(1);
-    }
-
-    if(allKeys && elRow && (elRow.childNodes.length === allKeysLength)) {
-        // Temporarily unsnap container since it causes inaccurate calculations
-        var sWidth = this.get("width");
-        if(sWidth) {
-            this._elHdContainer.style.width = "";
-            this._elBdContainer.style.width = "";
-        }
-        this._elContainer.style.width = "";
-        
-        //Validate just one Column
-        if(oColumn && lang.isNumber(oColumn.getKeyIndex())) {
-            this._validateColumnWidth(oColumn, elRow.childNodes[oColumn.getKeyIndex()]);
-        }
-        // Iterate through all Columns to unset calculated widths in one pass
-        else {
-            var elTd, todos = [], thisTodo, i, len;
-            for(i=0; i<allKeysLength; i++) {
-                oColumn = allKeys[i];
-                // Only Columns without widths that are not hidden, unset a calculated auto-width
-                if(!oColumn.width && !oColumn.hidden && oColumn._calculatedWidth) {
-                    todos[todos.length] = oColumn;      
-                }
-            }
-            
-            this._elTbody.style.display = "none";
-            for(i=0, len=todos.length; i<len; i++) {
-                this._setColumnWidth(todos[i], "auto", "visible");
-            }
-            this._elTbody.style.display = "";
-            
-            todos = [];
-
-            // Iterate through all Columns and make the store the adjustments to make in one pass
-            for(i=0; i<allKeysLength; i++) {
-                oColumn = allKeys[i];
-                elTd = elRow.childNodes[i];
-                // Only Columns without widths that are not hidden
-                if(!oColumn.width && !oColumn.hidden) {
-                    var elTh = oColumn.getThEl();
-
-                    // Compare auto-widths
-                    if(elTh.offsetWidth !== elTd.offsetWidth) {
-                        var elWider = (elTh.offsetWidth > elTd.offsetWidth) ?
-                                oColumn.getThLinerEl() : elTd.firstChild;               
-                
-                        // Grab the wider liner width, unless the minWidth is wider
-                        var newWidth = Math.max(0,
-                            (elWider.offsetWidth -(parseInt(Dom.getStyle(elWider,"paddingLeft"),10)|0) - (parseInt(Dom.getStyle(elWider,"paddingRight"),10)|0)),
-                            oColumn.minWidth);
-                            
-                        var sOverflow = 'visible';
-                        
-                        // Now validate against maxAutoWidth
-                        if((oColumn.maxAutoWidth > 0) && (newWidth > oColumn.maxAutoWidth)) {
-                            newWidth = oColumn.maxAutoWidth;
-                            sOverflow = "hidden";
-                        }
-                
-                        todos[todos.length] = [oColumn, newWidth, sOverflow];
-                    }
-                }
-            }
-            
-            this._elTbody.style.display = "none";
-            for(i=0, len=todos.length; i<len; i++) {
-                thisTodo = todos[i];
-                // Set to the wider auto-width
-                this._setColumnWidth(thisTodo[0], thisTodo[1]+"px", thisTodo[2]);
-                thisTodo[0]._calculatedWidth = thisTodo[1];
-            }
-            this._elTbody.style.display = "";
-        }
-    
-        // Resnap unsnapped containers
-        if(sWidth) {
-            this._elHdContainer.style.width = sWidth;
-            this._elBdContainer.style.width = sWidth;
-        } 
-    }
-    
-    this._syncScroll();
-    this._restoreScrollPositions();
-},
-
-/**
- * Syncs padding around scrollable tables, including Column header right-padding
- * and container width and height.
- *
- * @method _syncScroll
- * @private 
- */
-_syncScroll : function() {
-    this._syncScrollX();
-    this._syncScrollY();
-    this._syncScrollOverhang();
-    if(ua.opera) {
-        // Bug 1925874
-        this._elHdContainer.scrollLeft = this._elBdContainer.scrollLeft;
-        if(!this.get("width")) {
-            // Bug 1926125
-            document.body.style += '';
-        }
-    }
- },
-
-/**
- * Snaps container width for y-scrolling tables.
- *
- * @method _syncScrollY
- * @private
- */
-_syncScrollY : function() {
-    var elTbody = this._elTbody,
-        elBdContainer = this._elBdContainer;
-    
-    // X-scrolling not enabled
-    if(!this.get("width")) {
-        // Snap outer container width to content
-        this._elContainer.style.width = 
-                (elBdContainer.scrollHeight > elBdContainer.clientHeight) ?
-                // but account for y-scrollbar since it is visible
-                (elTbody.parentNode.clientWidth + 19) + "px" :
-                // no y-scrollbar, just borders
-                (elTbody.parentNode.clientWidth + 2) + "px";
-    }
-},
-
-/**
- * Snaps container height for x-scrolling tables in IE. Syncs message TBODY width.
- *
- * @method _syncScrollX
- * @private
- */
-_syncScrollX : function() {
-    var elTbody = this._elTbody,
-        elBdContainer = this._elBdContainer;
-    
-    // IE 6 and 7 only when y-scrolling not enabled
-    if(!this.get("height") && (ua.ie)) {
-        // Snap outer container height to content
-        elBdContainer.style.height = 
-                // but account for x-scrollbar if it is visible
-                (elBdContainer.scrollWidth > elBdContainer.offsetWidth ) ?
-                (elTbody.parentNode.offsetHeight + 18) + "px" : 
-                elTbody.parentNode.offsetHeight + "px";
-    }
-
-    // Sync message tbody
-    if(this._elTbody.rows.length === 0) {
-        this._elMsgTbody.parentNode.style.width = this.getTheadEl().parentNode.offsetWidth + "px";
-    }
-    else {
-        this._elMsgTbody.parentNode.style.width = "";
-    }
-},
-
-/**
- * Adds/removes Column header overhang as necesary.
- *
- * @method _syncScrollOverhang
- * @private
- */
-_syncScrollOverhang : function() {
-    var elBdContainer = this._elBdContainer,
-        // Overhang should be either 1 (default) or 18px, depending on the location of the right edge of the table
-        nPadding = 1;
-    
-    // Y-scrollbar is visible, which is when the overhang needs to jut out
-    if((elBdContainer.scrollHeight > elBdContainer.clientHeight) &&
-        // X-scrollbar is also visible, which means the right is jagged, not flush with the Column
-        (elBdContainer.scrollWidth > elBdContainer.clientWidth)) {
-        nPadding = 18;
-    }
-    
-    this._setOverhangValue(nPadding);
-    
-},
-
-/**
- * Sets Column header overhang to given width.
- *
- * @method _setOverhangValue
- * @param nBorderWidth {Number} Value of new border for overhang. 
- * @private
- */
-_setOverhangValue : function(nBorderWidth) {
-    var aLastHeaders = this._oColumnSet.headers[this._oColumnSet.headers.length-1] || [],
-        len = aLastHeaders.length,
-        sPrefix = this._sId+"-fixedth-",
-        sValue = nBorderWidth + "px solid " + this.get("COLOR_COLUMNFILLER");
-
-    this._elThead.style.display = "none";
-    for(var i=0; i<len; i++) {
-        Dom.get(sPrefix+aLastHeaders[i]).style.borderRight = sValue;
-    }
-    this._elThead.style.display = "";
-},
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-/**
- * Returns DOM reference to the DataTable's fixed header container element.
- *
- * @method getHdContainerEl
- * @return {HTMLElement} Reference to DIV element.
- */
-getHdContainerEl : function() {
-    return this._elHdContainer;
-},
-
-/**
- * Returns DOM reference to the DataTable's scrolling body container element.
- *
- * @method getBdContainerEl
- * @return {HTMLElement} Reference to DIV element.
- */
-getBdContainerEl : function() {
-    return this._elBdContainer;
-},
-
-/**
- * Returns DOM reference to the DataTable's fixed header TABLE element.
- *
- * @method getHdTableEl
- * @return {HTMLElement} Reference to TABLE element.
- */
-getHdTableEl : function() {
-    return this._elHdTable;
-},
-
-/**
- * Returns DOM reference to the DataTable's scrolling body TABLE element.
- *
- * @method getBdTableEl
- * @return {HTMLElement} Reference to TABLE element.
- */
-getBdTableEl : function() {
-    return this._elTable;
-},
-
-/**
- * Disables ScrollingDataTable UI.
- *
- * @method disable
- */
-disable : function() {
-    var elMask = this._elMask;
-    elMask.style.width = this._elBdContainer.offsetWidth + "px";
-    elMask.style.height = this._elHdContainer.offsetHeight + this._elBdContainer.offsetHeight + "px";
-    elMask.style.display = "";
-    this.fireEvent("disableEvent");
-},
-
-/**
- * Removes given Column. NOTE: You cannot remove nested Columns. You can only remove
- * non-nested Columns, and top-level parent Columns (which will remove all
- * children Columns).
- *
- * @method removeColumn
- * @param oColumn {YAHOO.widget.Column} Column instance.
- * @return oColumn {YAHOO.widget.Column} Removed Column instance.
- */
-removeColumn : function(oColumn) {
-    // Store scroll pos
-    var hdPos = this._elHdContainer.scrollLeft;
-    var bdPos = this._elBdContainer.scrollLeft;
-    
-    // Call superclass method
-    oColumn = SDT.superclass.removeColumn.call(this, oColumn);
-    
-    // Restore scroll pos
-    this._elHdContainer.scrollLeft = hdPos;
-    this._elBdContainer.scrollLeft = bdPos;
-    
-    return oColumn;
-},
-
-/**
- * Inserts given Column at the index if given, otherwise at the end. NOTE: You
- * can only add non-nested Columns and top-level parent Columns. You cannot add
- * a nested Column to an existing parent.
- *
- * @method insertColumn
- * @param oColumn {Object | YAHOO.widget.Column} Object literal Column
- * definition or a Column instance.
- * @param index {Number} (optional) New tree index.
- * @return oColumn {YAHOO.widget.Column} Inserted Column instance. 
- */
-insertColumn : function(oColumn, index) {
-    // Store scroll pos
-    var hdPos = this._elHdContainer.scrollLeft;
-    var bdPos = this._elBdContainer.scrollLeft;
-    
-    // Call superclass method
-    var oNewColumn = SDT.superclass.insertColumn.call(this, oColumn, index);
-    
-    // Restore scroll pos
-    this._elHdContainer.scrollLeft = hdPos;
-    this._elBdContainer.scrollLeft = bdPos;
-    
-    return oNewColumn;
-},
-
-/**
- * Removes given Column and inserts into given tree index. NOTE: You
- * can only reorder non-nested Columns and top-level parent Columns. You cannot
- * reorder a nested Column to an existing parent.
- *
- * @method reorderColumn
- * @param oColumn {YAHOO.widget.Column} Column instance.
- * @param index {Number} New tree index.
- */
-reorderColumn : function(oColumn, index) {
-    // Store scroll pos
-    var hdPos = this._elHdContainer.scrollLeft;
-    var bdPos = this._elBdContainer.scrollLeft;
-    
-    // Call superclass method
-    var oNewColumn = SDT.superclass.reorderColumn.call(this, oColumn, index);
-    
-    // Restore scroll pos
-    this._elHdContainer.scrollLeft = hdPos;
-    this._elBdContainer.scrollLeft = bdPos;
-
-    return oNewColumn;
-},
-
-/**
- * Sets given Column to given pixel width. If new width is less than minWidth
- * width, sets to minWidth. Updates oColumn.width value.
- *
- * @method setColumnWidth
- * @param oColumn {YAHOO.widget.Column} Column instance.
- * @param nWidth {Number} New width in pixels.
- */
-setColumnWidth : function(oColumn, nWidth) {
-    oColumn = this.getColumn(oColumn);
-    if(oColumn) {
-        this._storeScrollPositions();
-
-        // Validate new width against minWidth
-        if(lang.isNumber(nWidth)) {
-            nWidth = (nWidth > oColumn.minWidth) ? nWidth : oColumn.minWidth;
-
-            // Save state
-            oColumn.width = nWidth;
-            
-            // Resize the DOM elements
-            this._setColumnWidth(oColumn, nWidth+"px");
-            this._syncScroll();
-            
-            this.fireEvent("columnSetWidthEvent",{column:oColumn,width:nWidth});
-        }
-        // Unsets a width to auto-size
-        else if(nWidth === null) {
-            // Save state
-            oColumn.width = nWidth;
-            
-            // Resize the DOM elements
-            this._setColumnWidth(oColumn, "auto");
-            this.validateColumnWidths(oColumn);
-            this.fireEvent("columnUnsetWidthEvent",{column:oColumn});
-        }
-        
-        // Bug 2339454: resize then sort misaligment
-        this._clearTrTemplateEl();
-    }
-    else {
-    }
-},
-
-/**
- * Scrolls to given row or cell
- *
- * @method scrollTo
- * @param to {YAHOO.widget.Record | HTMLElement } Itme to scroll to.
- */
-scrollTo : function(to) {
-        var td = this.getTdEl(to);
-        if(td) {
-            this.clearScrollPositions();
-            this.getBdContainerEl().scrollLeft = td.offsetLeft;
-            this.getBdContainerEl().scrollTop = td.parentNode.offsetTop;
-        }
-        else {
-            var tr = this.getTrEl(to);
-            if(tr) {
-                this.clearScrollPositions();
-                this.getBdContainerEl().scrollTop = tr.offsetTop;
-            }
-        }
-},
-
-/**
- * Displays message within secondary TBODY.
- *
- * @method showTableMessage
- * @param sHTML {String} (optional) Value for innerHTMlang.
- * @param sClassName {String} (optional) Classname.
- */
-showTableMessage : function(sHTML, sClassName) {
-    var elCell = this._elMsgTd;
-    if(lang.isString(sHTML)) {
-        elCell.firstChild.innerHTML = sHTML;
-    }
-    if(lang.isString(sClassName)) {
-        Dom.addClass(elCell.firstChild, sClassName);
-    }
-
-    // Needed for SDT only
-    var elThead = this.getTheadEl();
-    var elTable = elThead.parentNode;
-    var newWidth = elTable.offsetWidth;
-    this._elMsgTbody.parentNode.style.width = this.getTheadEl().parentNode.offsetWidth + "px";
-
-    this._elMsgTbody.style.display = "";
-
-    this.fireEvent("tableMsgShowEvent", {html:sHTML, className:sClassName});
-},
-
-
-
-
-
-
-
-
-
-
-
-
-
-/////////////////////////////////////////////////////////////////////////////
-//
-// Private Custom Event Handlers
-//
-/////////////////////////////////////////////////////////////////////////////
-
-/**
- * Handles Column mutations
- *
- * @method onColumnChange
- * @param oArgs {Object} Custom Event data.
- */
-_onColumnChange : function(oArg) {
-    // Figure out which Column changed
-    var oColumn = (oArg.column) ? oArg.column :
-            (oArg.editor) ? oArg.editor.column : null;
-    this._storeScrollPositions();
-    this.validateColumnWidths(oColumn);
-},
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-/////////////////////////////////////////////////////////////////////////////
-//
-// Private DOM Event Handlers
-//
-/////////////////////////////////////////////////////////////////////////////
-
-/**
- * Syncs scrolltop and scrollleft of all TABLEs.
- *
- * @method _onScroll
- * @param e {HTMLEvent} The scroll event.
- * @param oSelf {YAHOO.widget.ScrollingDataTable} ScrollingDataTable instance.
- * @private
- */
-_onScroll : function(e, oSelf) {
-    oSelf._elHdContainer.scrollLeft = oSelf._elBdContainer.scrollLeft;
-
-    if(oSelf._oCellEditor && oSelf._oCellEditor.isActive) {
-        oSelf.fireEvent("editorBlurEvent", {editor:oSelf._oCellEditor});
-        oSelf.cancelCellEditor();
-    }
-
-    var elTarget = Ev.getTarget(e);
-    var elTag = elTarget.nodeName.toLowerCase();
-    oSelf.fireEvent("tableScrollEvent", {event:e, target:elTarget});
-},
-
-/**
- * Handles keydown events on the THEAD element.
- *
- * @method _onTheadKeydown
- * @param e {HTMLEvent} The key event.
- * @param oSelf {YAHOO.widget.ScrollingDataTable} ScrollingDataTable instance.
- * @private
- */
-_onTheadKeydown : function(e, oSelf) {
-    // If tabbing to next TH label link causes THEAD to scroll,
-    // need to sync scrollLeft with TBODY
-    if(Ev.getCharCode(e) === 9) {
-        setTimeout(function() {
-            if((oSelf instanceof SDT) && oSelf._sId) {
-                oSelf._elBdContainer.scrollLeft = oSelf._elHdContainer.scrollLeft;
-            }
-        },0);
-    }
-    
-    var elTarget = Ev.getTarget(e);
-    var elTag = elTarget.nodeName.toLowerCase();
-    var bKeepBubbling = true;
-    while(elTarget && (elTag != "table")) {
-        switch(elTag) {
-            case "body":
-                return;
-            case "input":
-            case "textarea":
-                // TODO: implement textareaKeyEvent
-                break;
-            case "thead":
-                bKeepBubbling = oSelf.fireEvent("theadKeyEvent",{target:elTarget,event:e});
-                break;
-            default:
-                break;
-        }
-        if(bKeepBubbling === false) {
-            return;
-        }
-        else {
-            elTarget = elTarget.parentNode;
-            if(elTarget) {
-                elTag = elTarget.nodeName.toLowerCase();
-            }
-        }
-    }
-    oSelf.fireEvent("tableKeyEvent",{target:(elTarget || oSelf._elContainer),event:e});
-}
-
-
-
-
-/**
- * Fired when a fixed scrolling DataTable has a scroll.
- *
- * @event tableScrollEvent
- * @param oArgs.event {HTMLEvent} The event object.
- * @param oArgs.target {HTMLElement} The DataTable's CONTAINER element (in IE)
- * or the DataTable's TBODY element (everyone else).
- *
- */
-
-
-
-
-});
-
-})();
-
-(function () {
-
-var lang   = YAHOO.lang,
-    util   = YAHOO.util,
-    widget = YAHOO.widget,
-    ua     = YAHOO.env.ua,
-    
-    Dom    = util.Dom,
-    Ev     = util.Event,
-    
-    DT     = widget.DataTable;
-/****************************************************************************/
-/****************************************************************************/
-/****************************************************************************/
-    
-/**
- * The BaseCellEditor class provides base functionality common to all inline cell
- * editors for a DataTable widget.
- *
- * @namespace YAHOO.widget
- * @class BaseCellEditor
- * @uses YAHOO.util.EventProvider 
- * @constructor
- * @param sType {String} Type indicator, to map to YAHOO.widget.DataTable.Editors.
- * @param oConfigs {Object} (Optional) Object literal of configs.
- */
-widget.BaseCellEditor = function(sType, oConfigs) {
-    this._sId = this._sId || "yui-ceditor" + YAHOO.widget.BaseCellEditor._nCount++;
-    this._sType = sType;
-    
-    // Validate inputs
-    this._initConfigs(oConfigs); 
-    
-    // Create Custom Events
-    this._initEvents();
-             
-    // Draw UI
-    this.render();
-};
-
-var BCE = widget.BaseCellEditor;
-
-/////////////////////////////////////////////////////////////////////////////
-//
-// Static members
-//
-/////////////////////////////////////////////////////////////////////////////
-lang.augmentObject(BCE, {
-
-/**
- * Global instance counter.
- *
- * @property CellEditor._nCount
- * @type Number
- * @static
- * @default 0
- * @private 
- */
-_nCount : 0,
-
-/**
- * Class applied to CellEditor container.
- *
- * @property CellEditor.CLASS_CELLEDITOR
- * @type String
- * @static
- * @default "yui-ceditor"
- */
-CLASS_CELLEDITOR : "yui-ceditor"
-
-});
-
-BCE.prototype = {
-/////////////////////////////////////////////////////////////////////////////
-//
-// Private members
-//
-/////////////////////////////////////////////////////////////////////////////
-/**
- * Unique id assigned to instance "yui-ceditorN", useful prefix for generating unique
- * DOM ID strings and log messages.
- *
- * @property _sId
- * @type String
- * @private
- */
-_sId : null,
-
-/**
- * Editor type.
- *
- * @property _sType
- * @type String
- * @private
- */
-_sType : null,
-
-/**
- * DataTable instance.
- *
- * @property _oDataTable
- * @type YAHOO.widget.DataTable
- * @private 
- */
-_oDataTable : null,
-
-/**
- * Column instance.
- *
- * @property _oColumn
- * @type YAHOO.widget.Column
- * @default null
- * @private 
- */
-_oColumn : null,
-
-/**
- * Record instance.
- *
- * @property _oRecord
- * @type YAHOO.widget.Record
- * @default null
- * @private 
- */
-_oRecord : null,
-
-/**
- * TD element.
- *
- * @property _elTd
- * @type HTMLElement
- * @default null
- * @private
- */
-_elTd : null,
-
-/**
- * Container for inline editor.
- *
- * @property _elContainer
- * @type HTMLElement
- * @private 
- */
-_elContainer : null,
-
-/**
- * Reference to Cancel button, if available.
- *
- * @property _elCancelBtn
- * @type HTMLElement
- * @default null
- * @private 
- */
-_elCancelBtn : null,
-
-/**
- * Reference to Save button, if available.
- *
- * @property _elSaveBtn
- * @type HTMLElement
- * @default null
- * @private 
- */
-_elSaveBtn : null,
-
-
-
-
-
-
-
-
-/////////////////////////////////////////////////////////////////////////////
-//
-// Private methods
-//
-/////////////////////////////////////////////////////////////////////////////
-
-/**
- * Initialize configs.
- *
- * @method _initConfigs
- * @private   
- */
-_initConfigs : function(oConfigs) {
-    // Object literal defines CellEditor configs
-    if(oConfigs && YAHOO.lang.isObject(oConfigs)) {
-        for(var sConfig in oConfigs) {
-            if(sConfig) {
-                this[sConfig] = oConfigs[sConfig];
-            }
-        }
-    }
-},
-
-/**
- * Initialize Custom Events.
- *
- * @method _initEvents
- * @private   
- */
-_initEvents : function() {
-    this.createEvent("showEvent");
-    this.createEvent("keydownEvent");
-    this.createEvent("invalidDataEvent");
-    this.createEvent("revertEvent");
-    this.createEvent("saveEvent");
-    this.createEvent("cancelEvent");
-    this.createEvent("blurEvent");
-    this.createEvent("blockEvent");
-    this.createEvent("unblockEvent");
-},
-
-
-
-
-
-
-
-
-
-
-
-
-
-/////////////////////////////////////////////////////////////////////////////
-//
-// Public properties
-//
-/////////////////////////////////////////////////////////////////////////////
-/**
- * Implementer defined function that can submit the input value to a server. This
- * function must accept the arguments fnCallback and oNewValue. When the submission
- * is complete, the function must also call fnCallback(bSuccess, oNewValue) to 
- * finish the save routine in the CellEditor. This function can also be used to 
- * perform extra validation or input value manipulation. 
- *
- * @property asyncSubmitter
- * @type HTMLFunction
- */
-asyncSubmitter : null,
-
-/**
- * Current value.
- *
- * @property value
- * @type MIXED
- */
-value : null,
-
-/**
- * Default value in case Record data is undefined. NB: Null values will not trigger
- * the default value.
- *
- * @property defaultValue
- * @type MIXED
- * @default null
- */
-defaultValue : null,
-
-/**
- * Validator function for input data, called from the DataTable instance scope,
- * receives the arguments (inputValue, currentValue, editorInstance) and returns
- * either the validated (or type-converted) value or undefined.
- *
- * @property validator
- * @type HTMLFunction
- * @default null
- */
-validator : null,
-
-/**
- * If validation is enabled, resets input field of invalid data.
- *
- * @property resetInvalidData
- * @type Boolean
- * @default true
- */
-resetInvalidData : true,
-
-/**
- * True if currently active.
- *
- * @property isActive
- * @type Boolean
- */
-isActive : false,
-
-/**
- * Text to display on Save button.
- *
- * @property LABEL_SAVE
- * @type String
- * @default "Save"
- */
-LABEL_SAVE : "Save",
-
-/**
- * Text to display on Cancel button.
- *
- * @property LABEL_CANCEL
- * @type String
- * @default "Cancel"
- */
-LABEL_CANCEL : "Cancel",
-
-/**
- * True if Save/Cancel buttons should not be displayed in the CellEditor.
- *
- * @property disableBtns
- * @type Boolean
- * @default false
- */
-disableBtns : false,
-
-
-
-
-
-
-
-/////////////////////////////////////////////////////////////////////////////
-//
-// Public methods
-//
-/////////////////////////////////////////////////////////////////////////////
-/**
- * CellEditor instance name, for logging.
- *
- * @method toString
- * @return {String} Unique name of the CellEditor instance.
- */
-
-toString : function() {
-    return "CellEditor instance " + this._sId;
-},
-
-/**
- * CellEditor unique ID.
- *
- * @method getId
- * @return {String} Unique ID of the CellEditor instance.
- */
-
-getId : function() {
-    return this._sId;
-},
-
-/**
- * Returns reference to associated DataTable instance.
- *
- * @method getDataTable
- * @return {YAHOO.widget.DataTable} DataTable instance.
- */
-
-getDataTable : function() {
-    return this._oDataTable;
-},
-
-/**
- * Returns reference to associated Column instance.
- *
- * @method getColumn
- * @return {YAHOO.widget.Column} Column instance.
- */
-
-getColumn : function() {
-    return this._oColumn;
-},
-
-/**
- * Returns reference to associated Record instance.
- *
- * @method getRecord
- * @return {YAHOO.widget.Record} Record instance.
- */
-
-getRecord : function() {
-    return this._oRecord;
-},
-
-
-
-/**
- * Returns reference to associated TD element.
- *
- * @method getTdEl
- * @return {HTMLElement} TD element.
- */
-
-getTdEl : function() {
-    return this._elTd;
-},
-
-/**
- * Returns container element.
- *
- * @method getContainerEl
- * @return {HTMLElement} Reference to container element.
- */
-
-getContainerEl : function() {
-    return this._elContainer;
-},
-
-/**
- * Nulls out the entire CellEditor instance and related objects, removes attached
- * event listeners, and clears out DOM elements inside the container, removes
- * container from the DOM.
- *
- * @method destroy
- */
-destroy : function() {
-    this.unsubscribeAll();
-    
-    // Column is late-binding in attach()
-    var oColumn = this.getColumn();
-    if(oColumn) {
-        oColumn.editor = null;
-    }
-    
-    var elContainer = this.getContainerEl();
-    Ev.purgeElement(elContainer, true);
-    elContainer.parentNode.removeChild(elContainer);
-},
-
-/**
- * Renders DOM elements and attaches event listeners.
- *
- * @method render
- */
-render : function() {
-    if(this._elContainer) {
-        YAHOO.util.Event.purgeElement(this._elContainer, true);
-        this._elContainer.innerHTML = "";
-    }
-
-    // Render Cell Editor container element as first child of body
-    var elContainer = document.createElement("div");
-    elContainer.id = this.getId() + "-container"; // Needed for tracking blur event
-    elContainer.style.display = "none";
-    elContainer.tabIndex = 0;
-    elContainer.className = DT.CLASS_EDITOR;
-    document.body.insertBefore(elContainer, document.body.firstChild);
-    this._elContainer = elContainer;
-    
-    // Handle ESC key
-    Ev.addListener(elContainer, "keydown", function(e, oSelf) {
-        // ESC cancels Cell Editor
-        if((e.keyCode == 27)) {
-            var target = Ev.getTarget(e);
-            // workaround for Mac FF3 bug that disabled clicks when ESC hit when
-            // select is open. [bug 2273056]
-            if (target.nodeName && target.nodeName.toLowerCase() === 'select') {
-                target.blur();
-            }
-            oSelf.cancel();
-        }
-        // Pass through event
-        oSelf.fireEvent("keydownEvent", {editor:this, event:e});
-    }, this);
-    
-    this.renderForm();
-
-    // Show Save/Cancel buttons
-    if(!this.disableBtns) {
-        this.renderBtns();
-    }
-    
-    this.doAfterRender();
-},
-
-/**
- * Renders Save/Cancel buttons.
- *
- * @method renderBtns
- */
-renderBtns : function() {
-    // Buttons
-    var elBtnsDiv = this.getContainerEl().appendChild(document.createElement("div"));
-    elBtnsDiv.className = DT.CLASS_BUTTON;
-
-    // Save button
-    var elSaveBtn = elBtnsDiv.appendChild(document.createElement("button"));
-    elSaveBtn.className = DT.CLASS_DEFAULT;
-    elSaveBtn.innerHTML = this.LABEL_SAVE;
-    Ev.addListener(elSaveBtn, "click", function(oArgs) {
-        this.save();
-    }, this, true);
-    this._elSaveBtn = elSaveBtn;
-
-    // Cancel button
-    var elCancelBtn = elBtnsDiv.appendChild(document.createElement("button"));
-    elCancelBtn.innerHTML = this.LABEL_CANCEL;
-    Ev.addListener(elCancelBtn, "click", function(oArgs) {
-        this.cancel();
-    }, this, true);
-    this._elCancelBtn = elCancelBtn;
-},
-
-/**
- * Attach CellEditor for a new interaction.
- *
- * @method attach
- * @param oDataTable {YAHOO.widget.DataTable} Associated DataTable instance.
- * @param elCell {HTMLElement} Cell to edit.  
- */
-attach : function(oDataTable, elCell) {
-    // Validate 
-    if(oDataTable instanceof YAHOO.widget.DataTable) {
-        this._oDataTable = oDataTable;
-        
-        // Validate cell
-        elCell = oDataTable.getTdEl(elCell);
-        if(elCell) {
-            this._elTd = elCell;
-
-            // Validate Column
-            var oColumn = oDataTable.getColumn(elCell);
-            if(oColumn) {
-                this._oColumn = oColumn;
-                
-                // Validate Record
-                var oRecord = oDataTable.getRecord(elCell);
-                if(oRecord) {
-                    this._oRecord = oRecord;
-                    var value = oRecord.getData(this.getColumn().getField());
-                    this.value = (value !== undefined) ? value : this.defaultValue;
-                    return true;
-                }
-            }            
-        }
-    }
-    return false;
-},
-
-/**
- * Moves container into position for display.
- *
- * @method move
- */
-move : function() {
-    // Move Editor
-    var elContainer = this.getContainerEl(),
-        elTd = this.getTdEl(),
-        x = Dom.getX(elTd),
-        y = Dom.getY(elTd);
-
-    //TODO: remove scrolling logic
-    // SF doesn't get xy for cells in scrolling table
-    // when tbody display is set to block
-    if(isNaN(x) || isNaN(y)) {
-        var elTbody = this.getDataTable().getTbodyEl();
-        x = elTd.offsetLeft + // cell pos relative to table
-                Dom.getX(elTbody.parentNode) - // plus table pos relative to document
-                elTbody.scrollLeft; // minus tbody scroll
-        y = elTd.offsetTop + // cell pos relative to table
-                Dom.getY(elTbody.parentNode) - // plus table pos relative to document
-                elTbody.scrollTop + // minus tbody scroll
-                this.getDataTable().getTheadEl().offsetHeight; // account for fixed THEAD cells
-    }
-
-    elContainer.style.left = x + "px";
-    elContainer.style.top = y + "px";
-},
-
-/**
- * Displays CellEditor UI in the correct position.
- *
- * @method show
- */
-show : function() {
-    this.resetForm();
-    this.isActive = true;
-    this.getContainerEl().style.display = "";
-    this.focus();
-    this.fireEvent("showEvent", {editor:this});
-},
-
-/**
- * Fires blockEvent
- *
- * @method block
- */
-block : function() {
-    this.fireEvent("blockEvent", {editor:this});
-},
-
-/**
- * Fires unblockEvent
- *
- * @method unblock
- */
-unblock : function() {
-    this.fireEvent("unblockEvent", {editor:this});
-},
-
-/**
- * Saves value of CellEditor and hides UI.
- *
- * @method save
- */
-save : function() {
-    // Get new value
-    var inputValue = this.getInputValue();
-    var validValue = inputValue;
-    
-    // Validate new value
-    if(this.validator) {
-        validValue = this.validator.call(this.getDataTable(), inputValue, this.value, this);
-        if(validValue === undefined ) {
-            if(this.resetInvalidData) {
-                this.resetForm();
-            }
-            this.fireEvent("invalidDataEvent",
-                    {editor:this, oldData:this.value, newData:inputValue});
-            return;
-        }
-    }
-        
-    var oSelf = this;
-    var finishSave = function(bSuccess, oNewValue) {
-        var oOrigValue = oSelf.value;
-        if(bSuccess) {
-            // Update new value
-            oSelf.value = oNewValue;
-            oSelf.getDataTable().updateCell(oSelf.getRecord(), oSelf.getColumn(), oNewValue);
-            
-            // Hide CellEditor
-            oSelf.getContainerEl().style.display = "none";
-            oSelf.isActive = false;
-            oSelf.getDataTable()._oCellEditor =  null;
-            
-            oSelf.fireEvent("saveEvent",
-                    {editor:oSelf, oldData:oOrigValue, newData:oSelf.value});
-        }
-        else {
-            oSelf.resetForm();
-            oSelf.fireEvent("revertEvent",
-                    {editor:oSelf, oldData:oOrigValue, newData:oNewValue});
-        }
-        oSelf.unblock();
-    };
-    
-    this.block();
-    if(lang.isFunction(this.asyncSubmitter)) {
-        this.asyncSubmitter.call(this, finishSave, validValue);
-    } 
-    else {   
-        finishSave(true, validValue);
-    }
-},
-
-/**
- * Cancels CellEditor input and hides UI.
- *
- * @method cancel
- */
-cancel : function() {
-    if(this.isActive) {
-        this.getContainerEl().style.display = "none";
-        this.isActive = false;
-        this.getDataTable()._oCellEditor =  null;
-        this.fireEvent("cancelEvent", {editor:this});
-    }
-    else {
-    }
-},
-
-/**
- * Renders form elements.
- *
- * @method renderForm
- */
-renderForm : function() {
-    // To be implemented by subclass
-},
-
-/**
- * Access to add additional event listeners.
- *
- * @method doAfterRender
- */
-doAfterRender : function() {
-    // To be implemented by subclass
-},
-
-
-/**
- * After rendering form, if disabledBtns is set to true, then sets up a mechanism
- * to save input without them. 
- *
- * @method handleDisabledBtns
- */
-handleDisabledBtns : function() {
-    // To be implemented by subclass
-},
-
-/**
- * Resets CellEditor UI to initial state.
- *
- * @method resetForm
- */
-resetForm : function() {
-    // To be implemented by subclass
-},
-
-/**
- * Sets focus in CellEditor.
- *
- * @method focus
- */
-focus : function() {
-    // To be implemented by subclass
-},
-
-/**
- * Retrieves input value from CellEditor.
- *
- * @method getInputValue
- */
-getInputValue : function() {
-    // To be implemented by subclass
-}
-
-};
-
-lang.augmentProto(BCE, util.EventProvider);
-
-
-/////////////////////////////////////////////////////////////////////////////
-//
-// Custom Events
-//
-/////////////////////////////////////////////////////////////////////////////
-
-/**
- * Fired when a CellEditor is shown.
- *
- * @event showEvent
- * @param oArgs.editor {YAHOO.widget.CellEditor} The CellEditor instance.
- */
-
-/**
- * Fired when a CellEditor has a keydown.
- *
- * @event keydownEvent
- * @param oArgs.editor {YAHOO.widget.CellEditor} The CellEditor instance. 
- * @param oArgs.event {HTMLEvent} The event object.
- */
-
-/**
- * Fired when a CellEditor input is reverted due to invalid data.
- *
- * @event invalidDataEvent
- * @param oArgs.editor {YAHOO.widget.CellEditor} The CellEditor instance. 
- * @param oArgs.newData {Object} New data value from form input field.
- * @param oArgs.oldData {Object} Old data value.
- */
-
-/**
- * Fired when a CellEditor input is reverted due to asyncSubmitter failure.
- *
- * @event revertEvent
- * @param oArgs.editor {YAHOO.widget.CellEditor} The CellEditor instance. 
- * @param oArgs.newData {Object} New data value from form input field.
- * @param oArgs.oldData {Object} Old data value.
- */
-
-/**
- * Fired when a CellEditor input is saved.
- *
- * @event saveEvent
- * @param oArgs.editor {YAHOO.widget.CellEditor} The CellEditor instance. 
- * @param oArgs.newData {Object} New data value from form input field.
- * @param oArgs.oldData {Object} Old data value.
- */
-
-/**
- * Fired when a CellEditor input is canceled.
- *
- * @event cancelEvent
- * @param oArgs.editor {YAHOO.widget.CellEditor} The CellEditor instance. 
- */
-
-/**
- * Fired when a CellEditor has a blur event.
- *
- * @event blurEvent
- * @param oArgs.editor {YAHOO.widget.CellEditor} The CellEditor instance. 
- */
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-/****************************************************************************/
-/****************************************************************************/
-/****************************************************************************/
-    
-/**
- * The CheckboxCellEditor class provides functionality for inline editing
- * DataTable cell data with checkboxes.
- *
- * @namespace YAHOO.widget
- * @class CheckboxCellEditor
- * @extends YAHOO.widget.BaseCellEditor
- * @constructor
- * @param oConfigs {Object} (Optional) Object literal of configs.
- */
-widget.CheckboxCellEditor = function(oConfigs) {
-    this._sId = "yui-checkboxceditor" + YAHOO.widget.BaseCellEditor._nCount++;
-    widget.CheckboxCellEditor.superclass.constructor.call(this, "checkbox", oConfigs); 
-};
-
-// CheckboxCellEditor extends BaseCellEditor
-lang.extend(widget.CheckboxCellEditor, BCE, {
-
-/////////////////////////////////////////////////////////////////////////////
-//
-// CheckboxCellEditor public properties
-//
-/////////////////////////////////////////////////////////////////////////////
-/**
- * Array of checkbox values. Can either be a simple array (e.g., ["red","green","blue"])
- * or a an array of objects (e.g., [{label:"red", value:"#FF0000"},
- * {label:"green", value:"#00FF00"}, {label:"blue", value:"#0000FF"}]). 
- *
- * @property checkboxOptions
- * @type String[] | Object[]
- */
-checkboxOptions : null,
-
-/**
- * Reference to the checkbox elements.
- *
- * @property checkboxes
- * @type HTMLElement[] 
- */
-checkboxes : null,
-
-/**
- * Array of checked values
- *
- * @property value
- * @type String[] 
- */
-value : null,
-
-/////////////////////////////////////////////////////////////////////////////
-//
-// CheckboxCellEditor public methods
-//
-/////////////////////////////////////////////////////////////////////////////
-
-/**
- * Render a form with input(s) type=checkbox.
- *
- * @method renderForm
- */
-renderForm : function() {
-    if(lang.isArray(this.checkboxOptions)) {
-        var checkboxOption, checkboxValue, checkboxId, elLabel, j, len;
-        
-        // Create the checkbox buttons in an IE-friendly way...
-        for(j=0,len=this.checkboxOptions.length; j<len; j++) {
-            checkboxOption = this.checkboxOptions[j];
-            checkboxValue = lang.isValue(checkboxOption.value) ?
-                    checkboxOption.value : checkboxOption;
-
-            checkboxId = this.getId() + "-chk" + j;
-            this.getContainerEl().innerHTML += "<input type=\"checkbox\"" +
-                    " id=\"" + checkboxId + "\"" + // Needed for label
-                    " value=\"" + checkboxValue + "\" />";
-            
-            // Create the labels in an IE-friendly way
-            elLabel = this.getContainerEl().appendChild(document.createElement("label"));
-            elLabel.htmlFor = checkboxId;
-            elLabel.innerHTML = lang.isValue(checkboxOption.label) ?
-                    checkboxOption.label : checkboxOption;
-        }
-        
-        // Store the reference to the checkbox elements
-        var allCheckboxes = [];
-        for(j=0; j<len; j++) {
-            allCheckboxes[allCheckboxes.length] = this.getContainerEl().childNodes[j*2];
-        }
-        this.checkboxes = allCheckboxes;
-
-        if(this.disableBtns) {
-            this.handleDisabledBtns();
-        }
-    }
-    else {
-    }
-},
-
-/**
- * After rendering form, if disabledBtns is set to true, then sets up a mechanism
- * to save input without them. 
- *
- * @method handleDisabledBtns
- */
-handleDisabledBtns : function() {
-    Ev.addListener(this.getContainerEl(), "click", function(v){
-        if(Ev.getTarget(v).tagName.toLowerCase() === "input") {
-            // Save on blur
-            this.save();
-        }
-    }, this, true);
-},
-
-/**
- * Resets CheckboxCellEditor UI to initial state.
- *
- * @method resetForm
- */
-resetForm : function() {
-    // Normalize to array
-    var originalValues = lang.isArray(this.value) ? this.value : [this.value];
-    
-    // Match checks to value
-    for(var i=0, j=this.checkboxes.length; i<j; i++) {
-        this.checkboxes[i].checked = false;
-        for(var k=0, len=originalValues.length; k<len; k++) {
-            if(this.checkboxes[i].value === originalValues[k]) {
-                this.checkboxes[i].checked = true;
-            }
-        }
-    }
-},
-
-/**
- * Sets focus in CheckboxCellEditor.
- *
- * @method focus
- */
-focus : function() {
-    this.checkboxes[0].focus();
-},
-
-/**
- * Retrieves input value from CheckboxCellEditor.
- *
- * @method getInputValue
- */
-getInputValue : function() {
-    var checkedValues = [];
-    for(var i=0, j=this.checkboxes.length; i<j; i++) {
-        if(this.checkboxes[i].checked) {
-            checkedValues[checkedValues.length] = this.checkboxes[i].value;
-        }
-    }  
-    return checkedValues;
-}
-
-});
-
-// Copy static members to CheckboxCellEditor class
-lang.augmentObject(widget.CheckboxCellEditor, BCE);
-
-
-
-
-
-
-
-
-/****************************************************************************/
-/****************************************************************************/
-/****************************************************************************/
-    
-/**
- * The DataCellEditor class provides functionality for inline editing
- * DataTable cell data with a YUI Calendar.
- *
- * @namespace YAHOO.widget
- * @class DateCellEditor
- * @extends YAHOO.widget.BaseCellEditor 
- * @constructor
- * @param oConfigs {Object} (Optional) Object literal of configs.
- */
-widget.DateCellEditor = function(oConfigs) {
-    this._sId = "yui-dateceditor" + YAHOO.widget.BaseCellEditor._nCount++;
-    widget.DateCellEditor.superclass.constructor.call(this, "date", oConfigs); 
-};
-
-// CheckboxCellEditor extends BaseCellEditor
-lang.extend(widget.DateCellEditor, BCE, {
-
-/////////////////////////////////////////////////////////////////////////////
-//
-// DateCellEditor public properties
-//
-/////////////////////////////////////////////////////////////////////////////
-/**
- * Reference to Calendar instance.
- *
- * @property calendar
- * @type YAHOO.widget.Calendar
- */
-calendar : null,
-
-/**
- * Configs for the calendar instance, to be passed to Calendar constructor.
- *
- * @property calendarOptions
- * @type Object
- */
-calendarOptions : null,
-
-/**
- * Default value.
- *
- * @property defaultValue
- * @type Date
- * @default new Date()
- */
-defaultValue : new Date(),
-
-
-/////////////////////////////////////////////////////////////////////////////
-//
-// DateCellEditor public methods
-//
-/////////////////////////////////////////////////////////////////////////////
-
-/**
- * Render a Calendar.
- *
- * @method renderForm
- */
-renderForm : function() {
-    // Calendar widget
-    if(YAHOO.widget.Calendar) {
-        var calContainer = this.getContainerEl().appendChild(document.createElement("div"));
-        calContainer.id = this.getId() + "-dateContainer"; // Needed for Calendar constructor
-        var calendar =
-                new YAHOO.widget.Calendar(this.getId() + "-date",
-                calContainer.id, this.calendarOptions);
-        calendar.render();
-        calContainer.style.cssFloat = "none";
-
-        if(ua.ie) {
-            var calFloatClearer = this.getContainerEl().appendChild(document.createElement("div"));
-            calFloatClearer.style.clear = "both";
-        }
-        
-        this.calendar = calendar;
-
-        if(this.disableBtns) {
-            this.handleDisabledBtns();
-        }
-    }
-    else {
-    }
-    
-},
-
-/**
- * After rendering form, if disabledBtns is set to true, then sets up a mechanism
- * to save input without them. 
- *
- * @method handleDisabledBtns
- */
-handleDisabledBtns : function() {
-    this.calendar.selectEvent.subscribe(function(v){
-        // Save on select
-        this.save();
-    }, this, true);
-},
-
-/**
- * Resets DateCellEditor UI to initial state.
- *
- * @method resetForm
- */
-resetForm : function() {
-    var value = this.value;
-    var selectedValue = (value.getMonth()+1)+"/"+value.getDate()+"/"+value.getFullYear();
-    this.calendar.cfg.setProperty("selected",selectedValue,false);
-       this.calendar.render();
-},
-
-/**
- * Sets focus in DateCellEditor.
- *
- * @method focus
- */
-focus : function() {
-    // To be impmlemented by subclass
-},
-
-/**
- * Retrieves input value from DateCellEditor.
- *
- * @method getInputValue
- */
-getInputValue : function() {
-    return this.calendar.getSelectedDates()[0];
-}
-
-});
-
-// Copy static members to DateCellEditor class
-lang.augmentObject(widget.DateCellEditor, BCE);
-
-
-
-
-
-
-
-
-
-/****************************************************************************/
-/****************************************************************************/
-/****************************************************************************/
-    
-/**
- * The DropdownCellEditor class provides functionality for inline editing
- * DataTable cell data a SELECT element.
- *
- * @namespace YAHOO.widget
- * @class DropdownCellEditor
- * @extends YAHOO.widget.BaseCellEditor 
- * @constructor
- * @param oConfigs {Object} (Optional) Object literal of configs.
- */
-widget.DropdownCellEditor = function(oConfigs) {
-    this._sId = "yui-dropdownceditor" + YAHOO.widget.BaseCellEditor._nCount++;
-    widget.DropdownCellEditor.superclass.constructor.call(this, "dropdown", oConfigs);
-};
-
-// DropdownCellEditor extends BaseCellEditor
-lang.extend(widget.DropdownCellEditor, BCE, {
-
-/////////////////////////////////////////////////////////////////////////////
-//
-// DropdownCellEditor public properties
-//
-/////////////////////////////////////////////////////////////////////////////
-/**
- * Array of dropdown values. Can either be a simple array (e.g.,
- * ["Alabama","Alaska","Arizona","Arkansas"]) or a an array of objects (e.g., 
- * [{label:"Alabama", value:"AL"}, {label:"Alaska", value:"AK"},
- * {label:"Arizona", value:"AZ"}, {label:"Arkansas", value:"AR"}]). 
- *
- * @property dropdownOptions
- * @type String[] | Object[]
- */
-dropdownOptions : null,
-
-/**
- * Reference to Dropdown element.
- *
- * @property dropdown
- * @type HTMLElement
- */
-dropdown : null,
-
-/**
- * Enables multi-select.
- *
- * @property multiple
- * @type Boolean
- */
-multiple : false,
-
-/**
- * Specifies number of visible options.
- *
- * @property size
- * @type Number
- */
-size : null,
-
-/////////////////////////////////////////////////////////////////////////////
-//
-// DropdownCellEditor public methods
-//
-/////////////////////////////////////////////////////////////////////////////
-
-/**
- * Render a form with select element.
- *
- * @method renderForm
- */
-renderForm : function() {
-    var elDropdown = this.getContainerEl().appendChild(document.createElement("select"));
-    elDropdown.style.zoom = 1;
-    if(this.multiple) {
-        elDropdown.multiple = "multiple";
-    }
-    if(lang.isNumber(this.size)) {
-        elDropdown.size = this.size;
-    }
-    this.dropdown = elDropdown;
-    
-    if(lang.isArray(this.dropdownOptions)) {
-        var dropdownOption, elOption;
-        for(var i=0, j=this.dropdownOptions.length; i<j; i++) {
-            dropdownOption = this.dropdownOptions[i];
-            elOption = document.createElement("option");
-            elOption.value = (lang.isValue(dropdownOption.value)) ?
-                    dropdownOption.value : dropdownOption;
-            elOption.innerHTML = (lang.isValue(dropdownOption.label)) ?
-                    dropdownOption.label : dropdownOption;
-            elOption = elDropdown.appendChild(elOption);
-        }
-        
-        if(this.disableBtns) {
-            this.handleDisabledBtns();
-        }
-    }
-},
-
-/**
- * After rendering form, if disabledBtns is set to true, then sets up a mechanism
- * to save input without them. 
- *
- * @method handleDisabledBtns
- */
-handleDisabledBtns : function() {
-    // Save on blur for multi-select
-    if(this.multiple) {
-        Ev.addListener(this.dropdown, "blur", function(v){
-            // Save on change
-            this.save();
-        }, this, true);
-    }
-    // Save on change for single-select
-    else {
-        Ev.addListener(this.dropdown, "change", function(v){
-            // Save on change
-            this.save();
-        }, this, true);
-    }
-},
-
-/**
- * Resets DropdownCellEditor UI to initial state.
- *
- * @method resetForm
- */
-resetForm : function() {
-    var allOptions = this.dropdown.options,
-        i=0, j=allOptions.length;
-
-    // Look for multi-select selections
-    if(lang.isArray(this.value)) {
-        var allValues = this.value,
-            m=0, n=allValues.length,
-            hash = {};
-        // Reset all selections and stash options in a value hash
-        for(; i<j; i++) {
-            allOptions[i].selected = false;
-            hash[allOptions[i].value] = allOptions[i];
-        }
-        for(; m<n; m++) {
-            if(hash[allValues[m]]) {
-                hash[allValues[m]].selected = true;
-            }
-        }
-    }
-    // Only need to look for a single selection
-    else {
-        for(; i<j; i++) {
-            if(this.value === allOptions[i].value) {
-                allOptions[i].selected = true;
-            }
-        }
-    }
-},
-
-/**
- * Sets focus in DropdownCellEditor.
- *
- * @method focus
- */
-focus : function() {
-    this.getDataTable()._focusEl(this.dropdown);
-},
-
-/**
- * Retrieves input value from DropdownCellEditor.
- *
- * @method getInputValue
- */
-getInputValue : function() {
-    var allOptions = this.dropdown.options;
-    
-    // Look for multiple selections
-    if(this.multiple) {
-        var values = [],
-            i=0, j=allOptions.length;
-        for(; i<j; i++) {
-            if(allOptions[i].selected) {
-                values.push(allOptions[i].value);
-            }
-        }
-        return values;
-    }
-    // Only need to look for single selection
-    else {
-        return allOptions[allOptions.selectedIndex].value;
-    }
-}
-
-});
-
-// Copy static members to DropdownCellEditor class
-lang.augmentObject(widget.DropdownCellEditor, BCE);
-
-
-
-
-
-
-/****************************************************************************/
-/****************************************************************************/
-/****************************************************************************/
-    
-/**
- * The RadioCellEditor class provides functionality for inline editing
- * DataTable cell data with radio buttons.
- *
- * @namespace YAHOO.widget
- * @class RadioCellEditor
- * @extends YAHOO.widget.BaseCellEditor 
- * @constructor
- * @param oConfigs {Object} (Optional) Object literal of configs.
- */
-widget.RadioCellEditor = function(oConfigs) {
-    this._sId = "yui-radioceditor" + YAHOO.widget.BaseCellEditor._nCount++;
-    widget.RadioCellEditor.superclass.constructor.call(this, "radio", oConfigs); 
-};
-
-// RadioCellEditor extends BaseCellEditor
-lang.extend(widget.RadioCellEditor, BCE, {
-
-/////////////////////////////////////////////////////////////////////////////
-//
-// RadioCellEditor public properties
-//
-/////////////////////////////////////////////////////////////////////////////
-/**
- * Reference to radio elements.
- *
- * @property radios
- * @type HTMLElement[]
- */
-radios : null,
-
-/**
- * Array of radio values. Can either be a simple array (e.g., ["yes","no","maybe"])
- * or a an array of objects (e.g., [{label:"yes", value:1}, {label:"no", value:-1},
- * {label:"maybe", value:0}]). 
- *
- * @property radioOptions
- * @type String[] | Object[]
- */
-radioOptions : null,
-
-/////////////////////////////////////////////////////////////////////////////
-//
-// RadioCellEditor public methods
-//
-/////////////////////////////////////////////////////////////////////////////
-
-/**
- * Render a form with input(s) type=radio.
- *
- * @method renderForm
- */
-renderForm : function() {
-    if(lang.isArray(this.radioOptions)) {
-        var radioOption, radioValue, radioId, elLabel;
-        
-        // Create the radio buttons in an IE-friendly way
-        for(var i=0, len=this.radioOptions.length; i<len; i++) {
-            radioOption = this.radioOptions[i];
-            radioValue = lang.isValue(radioOption.value) ?
-                    radioOption.value : radioOption;
-            radioId = this.getId() + "-radio" + i;
-            this.getContainerEl().innerHTML += "<input type=\"radio\"" +
-                    " name=\"" + this.getId() + "\"" +
-                    " value=\"" + radioValue + "\"" +
-                    " id=\"" +  radioId + "\" />"; // Needed for label
-            
-            // Create the labels in an IE-friendly way
-            elLabel = this.getContainerEl().appendChild(document.createElement("label"));
-            elLabel.htmlFor = radioId;
-            elLabel.innerHTML = (lang.isValue(radioOption.label)) ?
-                    radioOption.label : radioOption;
-        }
-        
-        // Store the reference to the checkbox elements
-        var allRadios = [],
-            elRadio;
-        for(var j=0; j<len; j++) {
-            elRadio = this.getContainerEl().childNodes[j*2];
-            allRadios[allRadios.length] = elRadio;
-        }
-        this.radios = allRadios;
-
-        if(this.disableBtns) {
-            this.handleDisabledBtns();
-        }
-    }
-    else {
-    }
-},
-
-/**
- * After rendering form, if disabledBtns is set to true, then sets up a mechanism
- * to save input without them. 
- *
- * @method handleDisabledBtns
- */
-handleDisabledBtns : function() {
-    Ev.addListener(this.getContainerEl(), "click", function(v){
-        if(Ev.getTarget(v).tagName.toLowerCase() === "input") {
-            // Save on blur
-            this.save();
-        }
-    }, this, true);
-},
-
-/**
- * Resets RadioCellEditor UI to initial state.
- *
- * @method resetForm
- */
-resetForm : function() {
-    for(var i=0, j=this.radios.length; i<j; i++) {
-        var elRadio = this.radios[i];
-        if(this.value === elRadio.value) {
-            elRadio.checked = true;
-            return;
-        }
-    }
-},
-
-/**
- * Sets focus in RadioCellEditor.
- *
- * @method focus
- */
-focus : function() {
-    for(var i=0, j=this.radios.length; i<j; i++) {
-        if(this.radios[i].checked) {
-            this.radios[i].focus();
-            return;
-        }
-    }
-},
-
-/**
- * Retrieves input value from RadioCellEditor.
- *
- * @method getInputValue
- */
-getInputValue : function() {
-    for(var i=0, j=this.radios.length; i<j; i++) {
-        if(this.radios[i].checked) {
-            return this.radios[i].value;
-        }
-    }
-}
-
-});
-
-// Copy static members to RadioCellEditor class
-lang.augmentObject(widget.RadioCellEditor, BCE);
-
-
-
-
-
-
-/****************************************************************************/
-/****************************************************************************/
-/****************************************************************************/
-    
-/**
- * The TextareaCellEditor class provides functionality for inline editing
- * DataTable cell data with a TEXTAREA element.
- *
- * @namespace YAHOO.widget
- * @class TextareaCellEditor
- * @extends YAHOO.widget.BaseCellEditor 
- * @constructor
- * @param oConfigs {Object} (Optional) Object literal of configs.
- */
-widget.TextareaCellEditor = function(oConfigs) {
-    this._sId = "yui-textareaceditor" + YAHOO.widget.BaseCellEditor._nCount++;
-    widget.TextareaCellEditor.superclass.constructor.call(this, "textarea", oConfigs); 
-};
-
-// TextareaCellEditor extends BaseCellEditor
-lang.extend(widget.TextareaCellEditor, BCE, {
-
-/////////////////////////////////////////////////////////////////////////////
-//
-// TextareaCellEditor public properties
-//
-/////////////////////////////////////////////////////////////////////////////
-/**
- * Reference to textarea element.
- *
- * @property textarea
- * @type HTMLElement
- */
-textarea : null,
-
-
-/////////////////////////////////////////////////////////////////////////////
-//
-// TextareaCellEditor public methods
-//
-/////////////////////////////////////////////////////////////////////////////
-
-/**
- * Render a form with textarea.
- *
- * @method renderForm
- */
-renderForm : function() {
-    var elTextarea = this.getContainerEl().appendChild(document.createElement("textarea"));
-    this.textarea = elTextarea;
-
-    if(this.disableBtns) {
-        this.handleDisabledBtns();
-    }
-},
-
-/**
- * After rendering form, if disabledBtns is set to true, then sets up a mechanism
- * to save input without them. 
- *
- * @method handleDisabledBtns
- */
-handleDisabledBtns : function() {
-    Ev.addListener(this.textarea, "blur", function(v){
-        // Save on blur
-        this.save();
-    }, this, true);        
-},
-
-/**
- * Moves TextareaCellEditor UI to a cell.
- *
- * @method move
- */
-move : function() {
-    this.textarea.style.width = this.getTdEl().offsetWidth + "px";
-    this.textarea.style.height = "3em";
-    YAHOO.widget.TextareaCellEditor.superclass.move.call(this);
-},
-
-/**
- * Resets TextareaCellEditor UI to initial state.
- *
- * @method resetForm
- */
-resetForm : function() {
-    this.textarea.value = this.value;
-},
-
-/**
- * Sets focus in TextareaCellEditor.
- *
- * @method focus
- */
-focus : function() {
-    // Bug 2303181, Bug 2263600
-    this.getDataTable()._focusEl(this.textarea);
-    this.textarea.select();
-},
-
-/**
- * Retrieves input value from TextareaCellEditor.
- *
- * @method getInputValue
- */
-getInputValue : function() {
-    return this.textarea.value;
-}
-
-});
-
-// Copy static members to TextareaCellEditor class
-lang.augmentObject(widget.TextareaCellEditor, BCE);
-
-
-
-
-
-
-
-
-
-/****************************************************************************/
-/****************************************************************************/
-/****************************************************************************/
-    
-/**
- * The TextboxCellEditor class provides functionality for inline editing
- * DataTable cell data with an INPUT TYPE=TEXT element.
- *
- * @namespace YAHOO.widget
- * @class TextboxCellEditor
- * @extends YAHOO.widget.BaseCellEditor 
- * @constructor
- * @param oConfigs {Object} (Optional) Object literal of configs.
- */
-widget.TextboxCellEditor = function(oConfigs) {
-    this._sId = "yui-textboxceditor" + YAHOO.widget.BaseCellEditor._nCount++;
-    widget.TextboxCellEditor.superclass.constructor.call(this, "textbox", oConfigs); 
-};
-
-// TextboxCellEditor extends BaseCellEditor
-lang.extend(widget.TextboxCellEditor, BCE, {
-
-/////////////////////////////////////////////////////////////////////////////
-//
-// TextboxCellEditor public properties
-//
-/////////////////////////////////////////////////////////////////////////////
-/**
- * Reference to the textbox element.
- *
- * @property textbox
- */
-textbox : null,
-
-/////////////////////////////////////////////////////////////////////////////
-//
-// TextboxCellEditor public methods
-//
-/////////////////////////////////////////////////////////////////////////////
-
-/**
- * Render a form with input type=text.
- *
- * @method renderForm
- */
-renderForm : function() {
-    var elTextbox;
-    // Bug 1802582: SF3/Mac needs a form element wrapping the input
-    if(ua.webkit>420) {
-        elTextbox = this.getContainerEl().appendChild(document.createElement("form")).appendChild(document.createElement("input"));
-    }
-    else {
-        elTextbox = this.getContainerEl().appendChild(document.createElement("input"));
-    }
-    elTextbox.type = "text";
-    this.textbox = elTextbox;
-
-    // Save on enter by default
-    // Bug: 1802582 Set up a listener on each textbox to track on keypress
-    // since SF/OP can't preventDefault on keydown
-    Ev.addListener(elTextbox, "keypress", function(v){
-        if((v.keyCode === 13)) {
-            // Prevent form submit
-            YAHOO.util.Event.preventDefault(v);
-            this.save();
-        }
-    }, this, true);
-
-    if(this.disableBtns) {
-        // By default this is no-op since enter saves by default
-        this.handleDisabledBtns();
-    }
-},
-
-/**
- * Moves TextboxCellEditor UI to a cell.
- *
- * @method move
- */
-move : function() {
-    this.textbox.style.width = this.getTdEl().offsetWidth + "px";
-    widget.TextboxCellEditor.superclass.move.call(this);
-},
-
-/**
- * Resets TextboxCellEditor UI to initial state.
- *
- * @method resetForm
- */
-resetForm : function() {
-    this.textbox.value = lang.isValue(this.value) ? this.value.toString() : "";
-},
-
-/**
- * Sets focus in TextboxCellEditor.
- *
- * @method focus
- */
-focus : function() {
-    // Bug 2303181, Bug 2263600
-    this.getDataTable()._focusEl(this.textbox);
-    this.textbox.select();
-},
-
-/**
- * Returns new value for TextboxCellEditor.
- *
- * @method getInputValue
- */
-getInputValue : function() {
-    return this.textbox.value;
-}
-
-});
-
-// Copy static members to TextboxCellEditor class
-lang.augmentObject(widget.TextboxCellEditor, BCE);
-
-
-
-
-
-
-
-/////////////////////////////////////////////////////////////////////////////
-//
-// DataTable extension
-//
-/////////////////////////////////////////////////////////////////////////////
-
-/**
- * CellEditor subclasses.
- * @property DataTable.Editors
- * @type Object
- * @static
- */
-DT.Editors = {
-    checkbox : widget.CheckboxCellEditor,
-    "date"   : widget.DateCellEditor,
-    dropdown : widget.DropdownCellEditor,
-    radio    : widget.RadioCellEditor,
-    textarea : widget.TextareaCellEditor,
-    textbox  : widget.TextboxCellEditor
-};
-
-/****************************************************************************/
-/****************************************************************************/
-/****************************************************************************/
-    
-/**
- * Factory class for instantiating a BaseCellEditor subclass.
- *
- * @namespace YAHOO.widget
- * @class CellEditor
- * @extends YAHOO.widget.BaseCellEditor 
- * @constructor
- * @param sType {String} Type indicator, to map to YAHOO.widget.DataTable.Editors.
- * @param oConfigs {Object} (Optional) Object literal of configs.
- */
-widget.CellEditor = function(sType, oConfigs) {
-    // Point to one of the subclasses
-    if(sType && DT.Editors[sType]) {
-        lang.augmentObject(BCE, DT.Editors[sType]);
-        return new DT.Editors[sType](oConfigs);
-    }
-    else {
-        return new BCE(null, oConfigs);
-    }
-};
-
-var CE = widget.CellEditor;
-
-// Copy static members to CellEditor class
-lang.augmentObject(CE, BCE);
-
-
-})();
-
-YAHOO.register("datatable", YAHOO.widget.DataTable, {version: "2.8.0r4", build: "2449"});
diff --git a/koha-tmpl/intranet-tmpl/prog/en/lib/yui/datemath/datemath-debug.js b/koha-tmpl/intranet-tmpl/prog/en/lib/yui/datemath/datemath-debug.js
deleted file mode 100644 (file)
index c8ea70b..0000000
+++ /dev/null
@@ -1,408 +0,0 @@
-/*
-Copyright (c) 2009, Yahoo! Inc. All rights reserved.
-Code licensed under the BSD License:
-http://developer.yahoo.net/yui/license.txt
-version: 2.8.0r4
-*/
-/**
-* The datemath module provides utility methods for basic JavaScript Date object manipulation and 
-* comparison. 
-* 
-* @module datemath
-*/
-
-/**
-* YAHOO.widget.DateMath is used for simple date manipulation. The class is a static utility
-* used for adding, subtracting, and comparing dates.
-* @namespace YAHOO.widget
-* @class DateMath
-*/
-YAHOO.widget.DateMath = {
-    /**
-    * Constant field representing Day
-    * @property DAY
-    * @static
-    * @final
-    * @type String
-    */
-    DAY : "D",
-
-    /**
-    * Constant field representing Week
-    * @property WEEK
-    * @static
-    * @final
-    * @type String
-    */
-    WEEK : "W",
-
-    /**
-    * Constant field representing Year
-    * @property YEAR
-    * @static
-    * @final
-    * @type String
-    */
-    YEAR : "Y",
-
-    /**
-    * Constant field representing Month
-    * @property MONTH
-    * @static
-    * @final
-    * @type String
-    */
-    MONTH : "M",
-
-    /**
-    * Constant field representing one day, in milliseconds
-    * @property ONE_DAY_MS
-    * @static
-    * @final
-    * @type Number
-    */
-    ONE_DAY_MS : 1000*60*60*24,
-    
-    /**
-     * Constant field representing the date in first week of January
-     * which identifies the first week of the year.
-     * <p>
-     * In the U.S, Jan 1st is normally used based on a Sunday start of week.
-     * ISO 8601, used widely throughout Europe, uses Jan 4th, based on a Monday start of week.
-     * </p>
-     * @property WEEK_ONE_JAN_DATE
-     * @static
-     * @type Number
-     */
-    WEEK_ONE_JAN_DATE : 1,
-
-    /**
-    * Adds the specified amount of time to the this instance.
-    * @method add
-    * @param {Date} date The JavaScript Date object to perform addition on
-    * @param {String} field The field constant to be used for performing addition.
-    * @param {Number} amount The number of units (measured in the field constant) to add to the date.
-    * @return {Date} The resulting Date object
-    */
-    add : function(date, field, amount) {
-        var d = new Date(date.getTime());
-        switch (field) {
-            case this.MONTH:
-                var newMonth = date.getMonth() + amount;
-                var years = 0;
-
-                if (newMonth < 0) {
-                    while (newMonth < 0) {
-                        newMonth += 12;
-                        years -= 1;
-                    }
-                } else if (newMonth > 11) {
-                    while (newMonth > 11) {
-                        newMonth -= 12;
-                        years += 1;
-                    }
-                }
-
-                d.setMonth(newMonth);
-                d.setFullYear(date.getFullYear() + years);
-                break;
-            case this.DAY:
-                this._addDays(d, amount);
-                // d.setDate(date.getDate() + amount);
-                break;
-            case this.YEAR:
-                d.setFullYear(date.getFullYear() + amount);
-                break;
-            case this.WEEK:
-                this._addDays(d, (amount * 7));
-                // d.setDate(date.getDate() + (amount * 7));
-                break;
-        }
-        return d;
-    },
-
-    /**
-     * Private helper method to account for bug in Safari 2 (webkit < 420)
-     * when Date.setDate(n) is called with n less than -128 or greater than 127.
-     * <p>
-     * Fix approach and original findings are available here:
-     * http://brianary.blogspot.com/2006/03/safari-date-bug.html
-     * </p>
-     * @method _addDays
-     * @param {Date} d JavaScript date object
-     * @param {Number} nDays The number of days to add to the date object (can be negative)
-     * @private
-     */
-    _addDays : function(d, nDays) {
-        if (YAHOO.env.ua.webkit && YAHOO.env.ua.webkit < 420) {
-            if (nDays < 0) {
-                // Ensure we don't go below -128 (getDate() is always 1 to 31, so we won't go above 127)
-                for(var min = -128; nDays < min; nDays -= min) {
-                    d.setDate(d.getDate() + min);
-                }
-            } else {
-                // Ensure we don't go above 96 + 31 = 127
-                for(var max = 96; nDays > max; nDays -= max) {
-                    d.setDate(d.getDate() + max);
-                }
-            }
-            // nDays should be remainder between -128 and 96
-        }
-        d.setDate(d.getDate() + nDays);
-    },
-
-    /**
-    * Subtracts the specified amount of time from the this instance.
-    * @method subtract
-    * @param {Date} date The JavaScript Date object to perform subtraction on
-    * @param {Number} field The this field constant to be used for performing subtraction.
-    * @param {Number} amount The number of units (measured in the field constant) to subtract from the date.
-    * @return {Date} The resulting Date object
-    */
-    subtract : function(date, field, amount) {
-        return this.add(date, field, (amount*-1));
-    },
-
-    /**
-    * Determines whether a given date is before another date on the calendar.
-    * @method before
-    * @param {Date} date  The Date object to compare with the compare argument
-    * @param {Date} compareTo The Date object to use for the comparison
-    * @return {Boolean} true if the date occurs before the compared date; false if not.
-    */
-    before : function(date, compareTo) {
-        var ms = compareTo.getTime();
-        if (date.getTime() < ms) {
-            return true;
-        } else {
-            return false;
-        }
-    },
-
-    /**
-    * Determines whether a given date is after another date on the calendar.
-    * @method after
-    * @param {Date} date  The Date object to compare with the compare argument
-    * @param {Date} compareTo The Date object to use for the comparison
-    * @return {Boolean} true if the date occurs after the compared date; false if not.
-    */
-    after : function(date, compareTo) {
-        var ms = compareTo.getTime();
-        if (date.getTime() > ms) {
-            return true;
-        } else {
-            return false;
-        }
-    },
-
-    /**
-    * Determines whether a given date is between two other dates on the calendar.
-    * @method between
-    * @param {Date} date  The date to check for
-    * @param {Date} dateBegin The start of the range
-    * @param {Date} dateEnd  The end of the range
-    * @return {Boolean} true if the date occurs between the compared dates; false if not.
-    */
-    between : function(date, dateBegin, dateEnd) {
-        if (this.after(date, dateBegin) && this.before(date, dateEnd)) {
-            return true;
-        } else {
-            return false;
-        }
-    },
-    
-    /**
-    * Retrieves a JavaScript Date object representing January 1 of any given year.
-    * @method getJan1
-    * @param {Number} calendarYear  The calendar year for which to retrieve January 1
-    * @return {Date} January 1 of the calendar year specified.
-    */
-    getJan1 : function(calendarYear) {
-        return this.getDate(calendarYear,0,1);
-    },
-
-    /**
-    * Calculates the number of days the specified date is from January 1 of the specified calendar year.
-    * Passing January 1 to this function would return an offset value of zero.
-    * @method getDayOffset
-    * @param {Date} date The JavaScript date for which to find the offset
-    * @param {Number} calendarYear The calendar year to use for determining the offset
-    * @return {Number} The number of days since January 1 of the given year
-    */
-    getDayOffset : function(date, calendarYear) {
-        var beginYear = this.getJan1(calendarYear); // Find the start of the year. This will be in week 1.
-        
-        // Find the number of days the passed in date is away from the calendar year start
-        var dayOffset = Math.ceil((date.getTime()-beginYear.getTime()) / this.ONE_DAY_MS);
-        return dayOffset;
-    },
-
-    /**
-    * Calculates the week number for the given date. Can currently support standard
-    * U.S. week numbers, based on Jan 1st defining the 1st week of the year, and 
-    * ISO8601 week numbers, based on Jan 4th defining the 1st week of the year.
-    * 
-    * @method getWeekNumber
-    * @param {Date} date The JavaScript date for which to find the week number
-    * @param {Number} firstDayOfWeek The index of the first day of the week (0 = Sun, 1 = Mon ... 6 = Sat).
-    * Defaults to 0
-    * @param {Number} janDate The date in the first week of January which defines week one for the year
-    * Defaults to the value of YAHOO.widget.DateMath.WEEK_ONE_JAN_DATE, which is 1 (Jan 1st). 
-    * For the U.S, this is normally Jan 1st. ISO8601 uses Jan 4th to define the first week of the year.
-    * 
-    * @return {Number} The number of the week containing the given date.
-    */
-    getWeekNumber : function(date, firstDayOfWeek, janDate) {
-
-        // Setup Defaults
-        firstDayOfWeek = firstDayOfWeek || 0;
-        janDate = janDate || this.WEEK_ONE_JAN_DATE;
-
-        var targetDate = this.clearTime(date),
-            startOfWeek,
-            endOfWeek;
-
-        if (targetDate.getDay() === firstDayOfWeek) { 
-            startOfWeek = targetDate;
-        } else {
-            startOfWeek = this.getFirstDayOfWeek(targetDate, firstDayOfWeek);
-        }
-
-        var startYear = startOfWeek.getFullYear();
-
-        // DST shouldn't be a problem here, math is quicker than setDate();
-        endOfWeek = new Date(startOfWeek.getTime() + 6*this.ONE_DAY_MS);
-
-        var weekNum;
-        if (startYear !== endOfWeek.getFullYear() && endOfWeek.getDate() >= janDate) {
-            // If years don't match, endOfWeek is in Jan. and if the 
-            // week has WEEK_ONE_JAN_DATE in it, it's week one by definition.
-            weekNum = 1;
-        } else {
-            // Get the 1st day of the 1st week, and 
-            // find how many days away we are from it.
-            var weekOne = this.clearTime(this.getDate(startYear, 0, janDate)),
-                weekOneDayOne = this.getFirstDayOfWeek(weekOne, firstDayOfWeek);
-
-            // Round days to smoothen out 1 hr DST diff
-            var daysDiff  = Math.round((targetDate.getTime() - weekOneDayOne.getTime())/this.ONE_DAY_MS);
-
-            // Calc. Full Weeks
-            var rem = daysDiff % 7;
-            var weeksDiff = (daysDiff - rem)/7;
-            weekNum = weeksDiff + 1;
-        }
-        return weekNum;
-    },
-
-    /**
-     * Get the first day of the week, for the give date. 
-     * @param {Date} dt The date in the week for which the first day is required.
-     * @param {Number} startOfWeek The index for the first day of the week, 0 = Sun, 1 = Mon ... 6 = Sat (defaults to 0)
-     * @return {Date} The first day of the week
-     */
-    getFirstDayOfWeek : function (dt, startOfWeek) {
-        startOfWeek = startOfWeek || 0;
-        var dayOfWeekIndex = dt.getDay(),
-            dayOfWeek = (dayOfWeekIndex - startOfWeek + 7) % 7;
-
-        return this.subtract(dt, this.DAY, dayOfWeek);
-    },
-
-    /**
-    * Determines if a given week overlaps two different years.
-    * @method isYearOverlapWeek
-    * @param {Date} weekBeginDate The JavaScript Date representing the first day of the week.
-    * @return {Boolean} true if the date overlaps two different years.
-    */
-    isYearOverlapWeek : function(weekBeginDate) {
-        var overlaps = false;
-        var nextWeek = this.add(weekBeginDate, this.DAY, 6);
-        if (nextWeek.getFullYear() != weekBeginDate.getFullYear()) {
-            overlaps = true;
-        }
-        return overlaps;
-    },
-
-    /**
-    * Determines if a given week overlaps two different months.
-    * @method isMonthOverlapWeek
-    * @param {Date} weekBeginDate The JavaScript Date representing the first day of the week.
-    * @return {Boolean} true if the date overlaps two different months.
-    */
-    isMonthOverlapWeek : function(weekBeginDate) {
-        var overlaps = false;
-        var nextWeek = this.add(weekBeginDate, this.DAY, 6);
-        if (nextWeek.getMonth() != weekBeginDate.getMonth()) {
-            overlaps = true;
-        }
-        return overlaps;
-    },
-
-    /**
-    * Gets the first day of a month containing a given date.
-    * @method findMonthStart
-    * @param {Date} date The JavaScript Date used to calculate the month start
-    * @return {Date}  The JavaScript Date representing the first day of the month
-    */
-    findMonthStart : function(date) {
-        var start = this.getDate(date.getFullYear(), date.getMonth(), 1);
-        return start;
-    },
-
-    /**
-    * Gets the last day of a month containing a given date.
-    * @method findMonthEnd
-    * @param {Date} date The JavaScript Date used to calculate the month end
-    * @return {Date}  The JavaScript Date representing the last day of the month
-    */
-    findMonthEnd : function(date) {
-        var start = this.findMonthStart(date);
-        var nextMonth = this.add(start, this.MONTH, 1);
-        var end = this.subtract(nextMonth, this.DAY, 1);
-        return end;
-    },
-
-    /**
-    * Clears the time fields from a given date, effectively setting the time to 12 noon.
-    * @method clearTime
-    * @param {Date} date The JavaScript Date for which the time fields will be cleared
-    * @return {Date}  The JavaScript Date cleared of all time fields
-    */
-    clearTime : function(date) {
-        date.setHours(12,0,0,0);
-        return date;
-    },
-
-    /**
-     * Returns a new JavaScript Date object, representing the given year, month and date. Time fields (hr, min, sec, ms) on the new Date object
-     * are set to 0. The method allows Date instances to be created with the a year less than 100. "new Date(year, month, date)" implementations 
-     * set the year to 19xx if a year (xx) which is less than 100 is provided.
-     * <p>
-     * <em>NOTE:</em>Validation on argument values is not performed. It is the caller's responsibility to ensure
-     * arguments are valid as per the ECMAScript-262 Date object specification for the new Date(year, month[, date]) constructor.
-     * </p>
-     * @method getDate
-     * @param {Number} y Year.
-     * @param {Number} m Month index from 0 (Jan) to 11 (Dec).
-     * @param {Number} d (optional) Date from 1 to 31. If not provided, defaults to 1.
-     * @return {Date} The JavaScript date object with year, month, date set as provided.
-     */
-    getDate : function(y, m, d) {
-        var dt = null;
-        if (YAHOO.lang.isUndefined(d)) {
-            d = 1;
-        }
-        if (y >= 100) {
-            dt = new Date(y, m, d);
-        } else {
-            dt = new Date();
-            dt.setFullYear(y);
-            dt.setMonth(m);
-            dt.setDate(d);
-            dt.setHours(0,0,0,0);
-        }
-        return dt;
-    }
-};
-YAHOO.register("datemath", YAHOO.widget.DateMath, {version: "2.8.0r4", build: "2449"});
diff --git a/koha-tmpl/intranet-tmpl/prog/en/lib/yui/datemath/datemath-min.js b/koha-tmpl/intranet-tmpl/prog/en/lib/yui/datemath/datemath-min.js
deleted file mode 100644 (file)
index 38c0a61..0000000
+++ /dev/null
@@ -1,7 +0,0 @@
-/*
-Copyright (c) 2009, Yahoo! Inc. All rights reserved.
-Code licensed under the BSD License:
-http://developer.yahoo.net/yui/license.txt
-version: 2.8.0r4
-*/
-YAHOO.widget.DateMath={DAY:"D",WEEK:"W",YEAR:"Y",MONTH:"M",ONE_DAY_MS:1000*60*60*24,WEEK_ONE_JAN_DATE:1,add:function(A,D,C){var F=new Date(A.getTime());switch(D){case this.MONTH:var E=A.getMonth()+C;var B=0;if(E<0){while(E<0){E+=12;B-=1;}}else{if(E>11){while(E>11){E-=12;B+=1;}}}F.setMonth(E);F.setFullYear(A.getFullYear()+B);break;case this.DAY:this._addDays(F,C);break;case this.YEAR:F.setFullYear(A.getFullYear()+C);break;case this.WEEK:this._addDays(F,(C*7));break;}return F;},_addDays:function(D,C){if(YAHOO.env.ua.webkit&&YAHOO.env.ua.webkit<420){if(C<0){for(var B=-128;C<B;C-=B){D.setDate(D.getDate()+B);}}else{for(var A=96;C>A;C-=A){D.setDate(D.getDate()+A);}}}D.setDate(D.getDate()+C);},subtract:function(A,C,B){return this.add(A,C,(B*-1));},before:function(C,B){var A=B.getTime();if(C.getTime()<A){return true;}else{return false;}},after:function(C,B){var A=B.getTime();if(C.getTime()>A){return true;}else{return false;}},between:function(B,A,C){if(this.after(B,A)&&this.before(B,C)){return true;}else{return false;}},getJan1:function(A){return this.getDate(A,0,1);},getDayOffset:function(B,D){var C=this.getJan1(D);var A=Math.ceil((B.getTime()-C.getTime())/this.ONE_DAY_MS);return A;},getWeekNumber:function(D,B,G){B=B||0;G=G||this.WEEK_ONE_JAN_DATE;var H=this.clearTime(D),L,M;if(H.getDay()===B){L=H;}else{L=this.getFirstDayOfWeek(H,B);}var I=L.getFullYear();M=new Date(L.getTime()+6*this.ONE_DAY_MS);var F;if(I!==M.getFullYear()&&M.getDate()>=G){F=1;}else{var E=this.clearTime(this.getDate(I,0,G)),A=this.getFirstDayOfWeek(E,B);var J=Math.round((H.getTime()-A.getTime())/this.ONE_DAY_MS);var K=J%7;var C=(J-K)/7;F=C+1;}return F;},getFirstDayOfWeek:function(D,A){A=A||0;var B=D.getDay(),C=(B-A+7)%7;return this.subtract(D,this.DAY,C);},isYearOverlapWeek:function(A){var C=false;var B=this.add(A,this.DAY,6);if(B.getFullYear()!=A.getFullYear()){C=true;}return C;},isMonthOverlapWeek:function(A){var C=false;var B=this.add(A,this.DAY,6);if(B.getMonth()!=A.getMonth()){C=true;}return C;},findMonthStart:function(A){var B=this.getDate(A.getFullYear(),A.getMonth(),1);return B;},findMonthEnd:function(B){var D=this.findMonthStart(B);var C=this.add(D,this.MONTH,1);var A=this.subtract(C,this.DAY,1);return A;},clearTime:function(A){A.setHours(12,0,0,0);return A;},getDate:function(D,A,C){var B=null;if(YAHOO.lang.isUndefined(C)){C=1;}if(D>=100){B=new Date(D,A,C);}else{B=new Date();B.setFullYear(D);B.setMonth(A);B.setDate(C);B.setHours(0,0,0,0);}return B;}};YAHOO.register("datemath",YAHOO.widget.DateMath,{version:"2.8.0r4",build:"2449"});
\ No newline at end of file
diff --git a/koha-tmpl/intranet-tmpl/prog/en/lib/yui/datemath/datemath.js b/koha-tmpl/intranet-tmpl/prog/en/lib/yui/datemath/datemath.js
deleted file mode 100644 (file)
index c8ea70b..0000000
+++ /dev/null
@@ -1,408 +0,0 @@
-/*
-Copyright (c) 2009, Yahoo! Inc. All rights reserved.
-Code licensed under the BSD License:
-http://developer.yahoo.net/yui/license.txt
-version: 2.8.0r4
-*/
-/**
-* The datemath module provides utility methods for basic JavaScript Date object manipulation and 
-* comparison. 
-* 
-* @module datemath
-*/
-
-/**
-* YAHOO.widget.DateMath is used for simple date manipulation. The class is a static utility
-* used for adding, subtracting, and comparing dates.
-* @namespace YAHOO.widget
-* @class DateMath
-*/
-YAHOO.widget.DateMath = {
-    /**
-    * Constant field representing Day
-    * @property DAY
-    * @static
-    * @final
-    * @type String
-    */
-    DAY : "D",
-
-    /**
-    * Constant field representing Week
-    * @property WEEK
-    * @static
-    * @final
-    * @type String
-    */
-    WEEK : "W",
-
-    /**
-    * Constant field representing Year
-    * @property YEAR
-    * @static
-    * @final
-    * @type String
-    */
-    YEAR : "Y",
-
-    /**
-    * Constant field representing Month
-    * @property MONTH
-    * @static
-    * @final
-    * @type String
-    */
-    MONTH : "M",
-
-    /**
-    * Constant field representing one day, in milliseconds
-    * @property ONE_DAY_MS
-    * @static
-    * @final
-    * @type Number
-    */
-    ONE_DAY_MS : 1000*60*60*24,
-    
-    /**
-     * Constant field representing the date in first week of January
-     * which identifies the first week of the year.
-     * <p>
-     * In the U.S, Jan 1st is normally used based on a Sunday start of week.
-     * ISO 8601, used widely throughout Europe, uses Jan 4th, based on a Monday start of week.
-     * </p>
-     * @property WEEK_ONE_JAN_DATE
-     * @static
-     * @type Number
-     */
-    WEEK_ONE_JAN_DATE : 1,
-
-    /**
-    * Adds the specified amount of time to the this instance.
-    * @method add
-    * @param {Date} date The JavaScript Date object to perform addition on
-    * @param {String} field The field constant to be used for performing addition.
-    * @param {Number} amount The number of units (measured in the field constant) to add to the date.
-    * @return {Date} The resulting Date object
-    */
-    add : function(date, field, amount) {
-        var d = new Date(date.getTime());
-        switch (field) {
-            case this.MONTH:
-                var newMonth = date.getMonth() + amount;
-                var years = 0;
-
-                if (newMonth < 0) {
-                    while (newMonth < 0) {
-                        newMonth += 12;
-                        years -= 1;
-                    }
-                } else if (newMonth > 11) {
-                    while (newMonth > 11) {
-                        newMonth -= 12;
-                        years += 1;
-                    }
-                }
-
-                d.setMonth(newMonth);
-                d.setFullYear(date.getFullYear() + years);
-                break;
-            case this.DAY:
-                this._addDays(d, amount);
-                // d.setDate(date.getDate() + amount);
-                break;
-            case this.YEAR:
-                d.setFullYear(date.getFullYear() + amount);
-                break;
-            case this.WEEK:
-                this._addDays(d, (amount * 7));
-                // d.setDate(date.getDate() + (amount * 7));
-                break;
-        }
-        return d;
-    },
-
-    /**
-     * Private helper method to account for bug in Safari 2 (webkit < 420)
-     * when Date.setDate(n) is called with n less than -128 or greater than 127.
-     * <p>
-     * Fix approach and original findings are available here:
-     * http://brianary.blogspot.com/2006/03/safari-date-bug.html
-     * </p>
-     * @method _addDays
-     * @param {Date} d JavaScript date object
-     * @param {Number} nDays The number of days to add to the date object (can be negative)
-     * @private
-     */
-    _addDays : function(d, nDays) {
-        if (YAHOO.env.ua.webkit && YAHOO.env.ua.webkit < 420) {
-            if (nDays < 0) {
-                // Ensure we don't go below -128 (getDate() is always 1 to 31, so we won't go above 127)
-                for(var min = -128; nDays < min; nDays -= min) {
-                    d.setDate(d.getDate() + min);
-                }
-            } else {
-                // Ensure we don't go above 96 + 31 = 127
-                for(var max = 96; nDays > max; nDays -= max) {
-                    d.setDate(d.getDate() + max);
-                }
-            }
-            // nDays should be remainder between -128 and 96
-        }
-        d.setDate(d.getDate() + nDays);
-    },
-
-    /**
-    * Subtracts the specified amount of time from the this instance.
-    * @method subtract
-    * @param {Date} date The JavaScript Date object to perform subtraction on
-    * @param {Number} field The this field constant to be used for performing subtraction.
-    * @param {Number} amount The number of units (measured in the field constant) to subtract from the date.
-    * @return {Date} The resulting Date object
-    */
-    subtract : function(date, field, amount) {
-        return this.add(date, field, (amount*-1));
-    },
-
-    /**
-    * Determines whether a given date is before another date on the calendar.
-    * @method before
-    * @param {Date} date  The Date object to compare with the compare argument
-    * @param {Date} compareTo The Date object to use for the comparison
-    * @return {Boolean} true if the date occurs before the compared date; false if not.
-    */
-    before : function(date, compareTo) {
-        var ms = compareTo.getTime();
-        if (date.getTime() < ms) {
-            return true;
-        } else {
-            return false;
-        }
-    },
-
-    /**
-    * Determines whether a given date is after another date on the calendar.
-    * @method after
-    * @param {Date} date  The Date object to compare with the compare argument
-    * @param {Date} compareTo The Date object to use for the comparison
-    * @return {Boolean} true if the date occurs after the compared date; false if not.
-    */
-    after : function(date, compareTo) {
-        var ms = compareTo.getTime();
-        if (date.getTime() > ms) {
-            return true;
-        } else {
-            return false;
-        }
-    },
-
-    /**
-    * Determines whether a given date is between two other dates on the calendar.
-    * @method between
-    * @param {Date} date  The date to check for
-    * @param {Date} dateBegin The start of the range
-    * @param {Date} dateEnd  The end of the range
-    * @return {Boolean} true if the date occurs between the compared dates; false if not.
-    */
-    between : function(date, dateBegin, dateEnd) {
-        if (this.after(date, dateBegin) && this.before(date, dateEnd)) {
-            return true;
-        } else {
-            return false;
-        }
-    },
-    
-    /**
-    * Retrieves a JavaScript Date object representing January 1 of any given year.
-    * @method getJan1
-    * @param {Number} calendarYear  The calendar year for which to retrieve January 1
-    * @return {Date} January 1 of the calendar year specified.
-    */
-    getJan1 : function(calendarYear) {
-        return this.getDate(calendarYear,0,1);
-    },
-
-    /**
-    * Calculates the number of days the specified date is from January 1 of the specified calendar year.
-    * Passing January 1 to this function would return an offset value of zero.
-    * @method getDayOffset
-    * @param {Date} date The JavaScript date for which to find the offset
-    * @param {Number} calendarYear The calendar year to use for determining the offset
-    * @return {Number} The number of days since January 1 of the given year
-    */
-    getDayOffset : function(date, calendarYear) {
-        var beginYear = this.getJan1(calendarYear); // Find the start of the year. This will be in week 1.
-        
-        // Find the number of days the passed in date is away from the calendar year start
-        var dayOffset = Math.ceil((date.getTime()-beginYear.getTime()) / this.ONE_DAY_MS);
-        return dayOffset;
-    },
-
-    /**
-    * Calculates the week number for the given date. Can currently support standard
-    * U.S. week numbers, based on Jan 1st defining the 1st week of the year, and 
-    * ISO8601 week numbers, based on Jan 4th defining the 1st week of the year.
-    * 
-    * @method getWeekNumber
-    * @param {Date} date The JavaScript date for which to find the week number
-    * @param {Number} firstDayOfWeek The index of the first day of the week (0 = Sun, 1 = Mon ... 6 = Sat).
-    * Defaults to 0
-    * @param {Number} janDate The date in the first week of January which defines week one for the year
-    * Defaults to the value of YAHOO.widget.DateMath.WEEK_ONE_JAN_DATE, which is 1 (Jan 1st). 
-    * For the U.S, this is normally Jan 1st. ISO8601 uses Jan 4th to define the first week of the year.
-    * 
-    * @return {Number} The number of the week containing the given date.
-    */
-    getWeekNumber : function(date, firstDayOfWeek, janDate) {
-
-        // Setup Defaults
-        firstDayOfWeek = firstDayOfWeek || 0;
-        janDate = janDate || this.WEEK_ONE_JAN_DATE;
-
-        var targetDate = this.clearTime(date),
-            startOfWeek,
-            endOfWeek;
-
-        if (targetDate.getDay() === firstDayOfWeek) { 
-            startOfWeek = targetDate;
-        } else {
-            startOfWeek = this.getFirstDayOfWeek(targetDate, firstDayOfWeek);
-        }
-
-        var startYear = startOfWeek.getFullYear();
-
-        // DST shouldn't be a problem here, math is quicker than setDate();
-        endOfWeek = new Date(startOfWeek.getTime() + 6*this.ONE_DAY_MS);
-
-        var weekNum;
-        if (startYear !== endOfWeek.getFullYear() && endOfWeek.getDate() >= janDate) {
-            // If years don't match, endOfWeek is in Jan. and if the 
-            // week has WEEK_ONE_JAN_DATE in it, it's week one by definition.
-            weekNum = 1;
-        } else {
-            // Get the 1st day of the 1st week, and 
-            // find how many days away we are from it.
-            var weekOne = this.clearTime(this.getDate(startYear, 0, janDate)),
-                weekOneDayOne = this.getFirstDayOfWeek(weekOne, firstDayOfWeek);
-
-            // Round days to smoothen out 1 hr DST diff
-            var daysDiff  = Math.round((targetDate.getTime() - weekOneDayOne.getTime())/this.ONE_DAY_MS);
-
-            // Calc. Full Weeks
-            var rem = daysDiff % 7;
-            var weeksDiff = (daysDiff - rem)/7;
-            weekNum = weeksDiff + 1;
-        }
-        return weekNum;
-    },
-
-    /**
-     * Get the first day of the week, for the give date. 
-     * @param {Date} dt The date in the week for which the first day is required.
-     * @param {Number} startOfWeek The index for the first day of the week, 0 = Sun, 1 = Mon ... 6 = Sat (defaults to 0)
-     * @return {Date} The first day of the week
-     */
-    getFirstDayOfWeek : function (dt, startOfWeek) {
-        startOfWeek = startOfWeek || 0;
-        var dayOfWeekIndex = dt.getDay(),
-            dayOfWeek = (dayOfWeekIndex - startOfWeek + 7) % 7;
-
-        return this.subtract(dt, this.DAY, dayOfWeek);
-    },
-
-    /**
-    * Determines if a given week overlaps two different years.
-    * @method isYearOverlapWeek
-    * @param {Date} weekBeginDate The JavaScript Date representing the first day of the week.
-    * @return {Boolean} true if the date overlaps two different years.
-    */
-    isYearOverlapWeek : function(weekBeginDate) {
-        var overlaps = false;
-        var nextWeek = this.add(weekBeginDate, this.DAY, 6);
-        if (nextWeek.getFullYear() != weekBeginDate.getFullYear()) {
-            overlaps = true;
-        }
-        return overlaps;
-    },
-
-    /**
-    * Determines if a given week overlaps two different months.
-    * @method isMonthOverlapWeek
-    * @param {Date} weekBeginDate The JavaScript Date representing the first day of the week.
-    * @return {Boolean} true if the date overlaps two different months.
-    */
-    isMonthOverlapWeek : function(weekBeginDate) {
-        var overlaps = false;
-        var nextWeek = this.add(weekBeginDate, this.DAY, 6);
-        if (nextWeek.getMonth() != weekBeginDate.getMonth()) {
-            overlaps = true;
-        }
-        return overlaps;
-    },
-
-    /**
-    * Gets the first day of a month containing a given date.
-    * @method findMonthStart
-    * @param {Date} date The JavaScript Date used to calculate the month start
-    * @return {Date}  The JavaScript Date representing the first day of the month
-    */
-    findMonthStart : function(date) {
-        var start = this.getDate(date.getFullYear(), date.getMonth(), 1);
-        return start;
-    },
-
-    /**
-    * Gets the last day of a month containing a given date.
-    * @method findMonthEnd
-    * @param {Date} date The JavaScript Date used to calculate the month end
-    * @return {Date}  The JavaScript Date representing the last day of the month
-    */
-    findMonthEnd : function(date) {
-        var start = this.findMonthStart(date);
-        var nextMonth = this.add(start, this.MONTH, 1);
-        var end = this.subtract(nextMonth, this.DAY, 1);
-        return end;
-    },
-
-    /**
-    * Clears the time fields from a given date, effectively setting the time to 12 noon.
-    * @method clearTime
-    * @param {Date} date The JavaScript Date for which the time fields will be cleared
-    * @return {Date}  The JavaScript Date cleared of all time fields
-    */
-    clearTime : function(date) {
-        date.setHours(12,0,0,0);
-        return date;
-    },
-
-    /**
-     * Returns a new JavaScript Date object, representing the given year, month and date. Time fields (hr, min, sec, ms) on the new Date object
-     * are set to 0. The method allows Date instances to be created with the a year less than 100. "new Date(year, month, date)" implementations 
-     * set the year to 19xx if a year (xx) which is less than 100 is provided.
-     * <p>
-     * <em>NOTE:</em>Validation on argument values is not performed. It is the caller's responsibility to ensure
-     * arguments are valid as per the ECMAScript-262 Date object specification for the new Date(year, month[, date]) constructor.
-     * </p>
-     * @method getDate
-     * @param {Number} y Year.
-     * @param {Number} m Month index from 0 (Jan) to 11 (Dec).
-     * @param {Number} d (optional) Date from 1 to 31. If not provided, defaults to 1.
-     * @return {Date} The JavaScript date object with year, month, date set as provided.
-     */
-    getDate : function(y, m, d) {
-        var dt = null;
-        if (YAHOO.lang.isUndefined(d)) {
-            d = 1;
-        }
-        if (y >= 100) {
-            dt = new Date(y, m, d);
-        } else {
-            dt = new Date();
-            dt.setFullYear(y);
-            dt.setMonth(m);
-            dt.setDate(d);
-            dt.setHours(0,0,0,0);
-        }
-        return dt;
-    }
-};
-YAHOO.register("datemath", YAHOO.widget.DateMath, {version: "2.8.0r4", build: "2449"});
diff --git a/koha-tmpl/intranet-tmpl/prog/en/lib/yui/dom/dom-debug.js b/koha-tmpl/intranet-tmpl/prog/en/lib/yui/dom/dom-debug.js
deleted file mode 100644 (file)
index 56ddc63..0000000
+++ /dev/null
@@ -1,1872 +0,0 @@
-/*
-Copyright (c) 2009, Yahoo! Inc. All rights reserved.
-Code licensed under the BSD License:
-http://developer.yahoo.net/yui/license.txt
-version: 2.8.0r4
-*/
-/**
- * The dom module provides helper methods for manipulating Dom elements.
- * @module dom
- *
- */
-
-(function() {
-    // for use with generateId (global to save state if Dom is overwritten)
-    YAHOO.env._id_counter = YAHOO.env._id_counter || 0;
-
-    // internal shorthand
-    var Y = YAHOO.util,
-        lang = YAHOO.lang,
-        UA = YAHOO.env.ua,
-        trim = YAHOO.lang.trim,
-        propertyCache = {}, // for faster hyphen converts
-        reCache = {}, // cache className regexes
-        RE_TABLE = /^t(?:able|d|h)$/i, // for _calcBorders
-        RE_COLOR = /color$/i,
-
-        // DOM aliases 
-        document = window.document,     
-        documentElement = document.documentElement,
-
-        // string constants
-        OWNER_DOCUMENT = 'ownerDocument',
-        DEFAULT_VIEW = 'defaultView',
-        DOCUMENT_ELEMENT = 'documentElement',
-        COMPAT_MODE = 'compatMode',
-        OFFSET_LEFT = 'offsetLeft',
-        OFFSET_TOP = 'offsetTop',
-        OFFSET_PARENT = 'offsetParent',
-        PARENT_NODE = 'parentNode',
-        NODE_TYPE = 'nodeType',
-        TAG_NAME = 'tagName',
-        SCROLL_LEFT = 'scrollLeft',
-        SCROLL_TOP = 'scrollTop',
-        GET_BOUNDING_CLIENT_RECT = 'getBoundingClientRect',
-        GET_COMPUTED_STYLE = 'getComputedStyle',
-        CURRENT_STYLE = 'currentStyle',
-        CSS1_COMPAT = 'CSS1Compat',
-        _BACK_COMPAT = 'BackCompat',
-        _CLASS = 'class', // underscore due to reserved word
-        CLASS_NAME = 'className',
-        EMPTY = '',
-        SPACE = ' ',
-        C_START = '(?:^|\\s)',
-        C_END = '(?= |$)',
-        G = 'g',
-        POSITION = 'position',
-        FIXED = 'fixed',
-        RELATIVE = 'relative',
-        LEFT = 'left',
-        TOP = 'top',
-        MEDIUM = 'medium',
-        BORDER_LEFT_WIDTH = 'borderLeftWidth',
-        BORDER_TOP_WIDTH = 'borderTopWidth',
-    
-    // brower detection
-        isOpera = UA.opera,
-        isSafari = UA.webkit, 
-        isGecko = UA.gecko, 
-        isIE = UA.ie; 
-    
-    /**
-     * Provides helper methods for DOM elements.
-     * @namespace YAHOO.util
-     * @class Dom
-     * @requires yahoo, event
-     */
-    Y.Dom = {
-        CUSTOM_ATTRIBUTES: (!documentElement.hasAttribute) ? { // IE < 8
-            'for': 'htmlFor',
-            'class': CLASS_NAME
-        } : { // w3c
-            'htmlFor': 'for',
-            'className': _CLASS
-        },
-
-        DOT_ATTRIBUTES: {},
-
-        /**
-         * Returns an HTMLElement reference.
-         * @method get
-         * @param {String | HTMLElement |Array} el Accepts a string to use as an ID for getting a DOM reference, an actual DOM reference, or an Array of IDs and/or HTMLElements.
-         * @return {HTMLElement | Array} A DOM reference to an HTML element or an array of HTMLElements.
-         */
-        get: function(el) {
-            var id, nodes, c, i, len, attr;
-
-            if (el) {
-                if (el[NODE_TYPE] || el.item) { // Node, or NodeList
-                    return el;
-                }
-
-                if (typeof el === 'string') { // id
-                    id = el;
-                    el = document.getElementById(el);
-                    attr = (el) ? el.attributes : null;
-                    if (el && attr && attr.id && attr.id.value === id) { // IE: avoid false match on "name" attribute
-                        return el;
-                    } else if (el && document.all) { // filter by name
-                        el = null;
-                        nodes = document.all[id];
-                        for (i = 0, len = nodes.length; i < len; ++i) {
-                            if (nodes[i].id === id) {
-                                return nodes[i];
-                            }
-                        }
-                    }
-                    return el;
-                }
-                
-                if (YAHOO.util.Element && el instanceof YAHOO.util.Element) {
-                    el = el.get('element');
-                }
-
-                if ('length' in el) { // array-like 
-                    c = [];
-                    for (i = 0, len = el.length; i < len; ++i) {
-                        c[c.length] = Y.Dom.get(el[i]);
-                    }
-                    
-                    return c;
-                }
-
-                return el; // some other object, just pass it back
-            }
-
-            return null;
-        },
-    
-        getComputedStyle: function(el, property) {
-            if (window[GET_COMPUTED_STYLE]) {
-                return el[OWNER_DOCUMENT][DEFAULT_VIEW][GET_COMPUTED_STYLE](el, null)[property];
-            } else if (el[CURRENT_STYLE]) {
-                return Y.Dom.IE_ComputedStyle.get(el, property);
-            }
-        },
-
-        /**
-         * Normalizes currentStyle and ComputedStyle.
-         * @method getStyle
-         * @param {String | HTMLElement |Array} el Accepts a string to use as an ID, an actual DOM reference, or an Array of IDs and/or HTMLElements.
-         * @param {String} property The style property whose value is returned.
-         * @return {String | Array} The current value of the style property for the element(s).
-         */
-        getStyle: function(el, property) {
-            return Y.Dom.batch(el, Y.Dom._getStyle, property);
-        },
-
-        // branching at load instead of runtime
-        _getStyle: function() {
-            if (window[GET_COMPUTED_STYLE]) { // W3C DOM method
-                return function(el, property) {
-                    property = (property === 'float') ? property = 'cssFloat' :
-                            Y.Dom._toCamel(property);
-
-                    var value = el.style[property],
-                        computed;
-                    
-                    if (!value) {
-                        computed = el[OWNER_DOCUMENT][DEFAULT_VIEW][GET_COMPUTED_STYLE](el, null);
-                        if (computed) { // test computed before touching for safari
-                            value = computed[property];
-                        }
-                    }
-                    
-                    return value;
-                };
-            } else if (documentElement[CURRENT_STYLE]) {
-                return function(el, property) {                         
-                    var value;
-
-                    switch(property) {
-                        case 'opacity' :// IE opacity uses filter
-                            value = 100;
-                            try { // will error if no DXImageTransform
-                                value = el.filters['DXImageTransform.Microsoft.Alpha'].opacity;
-
-                            } catch(e) {
-                                try { // make sure its in the document
-                                    value = el.filters('alpha').opacity;
-                                } catch(err) {
-                                    YAHOO.log('getStyle: IE filter failed',
-                                            'error', 'Dom');
-                                }
-                            }
-                            return value / 100;
-                        case 'float': // fix reserved word
-                            property = 'styleFloat'; // fall through
-                        default: 
-                            property = Y.Dom._toCamel(property);
-                            value = el[CURRENT_STYLE] ? el[CURRENT_STYLE][property] : null;
-                            return ( el.style[property] || value );
-                    }
-                };
-            }
-        }(),
-    
-        /**
-         * Wrapper for setting style properties of HTMLElements.  Normalizes "opacity" across modern browsers.
-         * @method setStyle
-         * @param {String | HTMLElement | Array} el Accepts a string to use as an ID, an actual DOM reference, or an Array of IDs and/or HTMLElements.
-         * @param {String} property The style property to be set.
-         * @param {String} val The value to apply to the given property.
-         */
-        setStyle: function(el, property, val) {
-            Y.Dom.batch(el, Y.Dom._setStyle, { prop: property, val: val });
-        },
-
-        _setStyle: function() {
-            if (isIE) {
-                return function(el, args) {
-                    var property = Y.Dom._toCamel(args.prop),
-                        val = args.val;
-
-                    if (el) {
-                        switch (property) {
-                            case 'opacity':
-                                if ( lang.isString(el.style.filter) ) { // in case not appended
-                                    el.style.filter = 'alpha(opacity=' + val * 100 + ')';
-                                    
-                                    if (!el[CURRENT_STYLE] || !el[CURRENT_STYLE].hasLayout) {
-                                        el.style.zoom = 1; // when no layout or cant tell
-                                    }
-                                }
-                                break;
-                            case 'float':
-                                property = 'styleFloat';
-                            default:
-                            el.style[property] = val;
-                        }
-                    } else {
-                        YAHOO.log('element ' + el + ' is undefined', 'error', 'Dom');
-                    }
-                };
-            } else {
-                return function(el, args) {
-                    var property = Y.Dom._toCamel(args.prop),
-                        val = args.val;
-                    if (el) {
-                        if (property == 'float') {
-                            property = 'cssFloat';
-                        }
-                        el.style[property] = val;
-                    } else {
-                        YAHOO.log('element ' + el + ' is undefined', 'error', 'Dom');
-                    }
-                };
-            }
-
-        }(),
-        
-        /**
-         * Gets the current position of an element based on page coordinates. 
-         * Element must be part of the DOM tree to have page coordinates (display:none or elements not appended return false).
-         * @method getXY
-         * @param {String | HTMLElement | Array} el Accepts a string to use as an ID, an actual DOM
-         * reference, or an Array of IDs and/or HTMLElements
-         * @return {Array} The XY position of the element(s)
-         */
-        getXY: function(el) {
-            return Y.Dom.batch(el, Y.Dom._getXY);
-        },
-
-        _canPosition: function(el) {
-            return ( Y.Dom._getStyle(el, 'display') !== 'none' && Y.Dom._inDoc(el) );
-        },
-
-        _getXY: function() {
-            if (document[DOCUMENT_ELEMENT][GET_BOUNDING_CLIENT_RECT]) {
-                return function(node) {
-                    var scrollLeft, scrollTop, box, doc,
-                        off1, off2, mode, bLeft, bTop,
-                        floor = Math.floor, // TODO: round?
-                        xy = false;
-
-                    if (Y.Dom._canPosition(node)) {
-                        box = node[GET_BOUNDING_CLIENT_RECT]();
-                        doc = node[OWNER_DOCUMENT];
-                        scrollLeft = Y.Dom.getDocumentScrollLeft(doc);
-                        scrollTop = Y.Dom.getDocumentScrollTop(doc);
-                        xy = [floor(box[LEFT]), floor(box[TOP])];
-
-                        if (isIE && UA.ie < 8) { // IE < 8: viewport off by 2
-                            off1 = 2;
-                            off2 = 2;
-                            mode = doc[COMPAT_MODE];
-
-                            if (UA.ie === 6) {
-                                if (mode !== _BACK_COMPAT) {
-                                    off1 = 0;
-                                    off2 = 0;
-                                }
-                            }
-                            
-                            if ((mode === _BACK_COMPAT)) {
-                                bLeft = _getComputedStyle(doc[DOCUMENT_ELEMENT], BORDER_LEFT_WIDTH);
-                                bTop = _getComputedStyle(doc[DOCUMENT_ELEMENT], BORDER_TOP_WIDTH);
-                                if (bLeft !== MEDIUM) {
-                                    off1 = parseInt(bLeft, 10);
-                                }
-                                if (bTop !== MEDIUM) {
-                                    off2 = parseInt(bTop, 10);
-                                }
-                            }
-                            
-                            xy[0] -= off1;
-                            xy[1] -= off2;
-
-                        }
-
-                        if ((scrollTop || scrollLeft)) {
-                            xy[0] += scrollLeft;
-                            xy[1] += scrollTop;
-                        }
-
-                        // gecko may return sub-pixel (non-int) values
-                        xy[0] = floor(xy[0]);
-                        xy[1] = floor(xy[1]);
-                    } else {
-                        YAHOO.log('getXY failed: element not positionable (either not in a document or not displayed)', 'error', 'Dom');
-                    }
-
-                    return xy;
-                };
-            } else {
-                return function(node) { // ff2, safari: manually calculate by crawling up offsetParents
-                    var docScrollLeft, docScrollTop,
-                        scrollTop, scrollLeft,
-                        bCheck,
-                        xy = false,
-                        parentNode = node;
-
-                    if  (Y.Dom._canPosition(node) ) {
-                        xy = [node[OFFSET_LEFT], node[OFFSET_TOP]];
-                        docScrollLeft = Y.Dom.getDocumentScrollLeft(node[OWNER_DOCUMENT]);
-                        docScrollTop = Y.Dom.getDocumentScrollTop(node[OWNER_DOCUMENT]);
-
-                        // TODO: refactor with !! or just falsey
-                        bCheck = ((isGecko || UA.webkit > 519) ? true : false);
-
-                        // TODO: worth refactoring for TOP/LEFT only?
-                        while ((parentNode = parentNode[OFFSET_PARENT])) {
-                            xy[0] += parentNode[OFFSET_LEFT];
-                            xy[1] += parentNode[OFFSET_TOP];
-                            if (bCheck) {
-                                xy = Y.Dom._calcBorders(parentNode, xy);
-                            }
-                        }
-
-                        // account for any scrolled ancestors
-                        if (Y.Dom._getStyle(node, POSITION) !== FIXED) {
-                            parentNode = node;
-
-                            while ((parentNode = parentNode[PARENT_NODE]) && parentNode[TAG_NAME]) {
-                                scrollTop = parentNode[SCROLL_TOP];
-                                scrollLeft = parentNode[SCROLL_LEFT];
-
-                                //Firefox does something funky with borders when overflow is not visible.
-                                if (isGecko && (Y.Dom._getStyle(parentNode, 'overflow') !== 'visible')) {
-                                        xy = Y.Dom._calcBorders(parentNode, xy);
-                                }
-
-                                if (scrollTop || scrollLeft) {
-                                    xy[0] -= scrollLeft;
-                                    xy[1] -= scrollTop;
-                                }
-                            }
-                            xy[0] += docScrollLeft;
-                            xy[1] += docScrollTop;
-
-                        } else {
-                            //Fix FIXED position -- add scrollbars
-                            if (isOpera) {
-                                xy[0] -= docScrollLeft;
-                                xy[1] -= docScrollTop;
-                            } else if (isSafari || isGecko) {
-                                xy[0] += docScrollLeft;
-                                xy[1] += docScrollTop;
-                            }
-                        }
-                        //Round the numbers so we get sane data back
-                        xy[0] = Math.floor(xy[0]);
-                        xy[1] = Math.floor(xy[1]);
-                    } else {
-                        YAHOO.log('getXY failed: element not positionable (either not in a document or not displayed)', 'error', 'Dom');
-                    }
-                    return xy;                
-                };
-            }
-        }(), // NOTE: Executing for loadtime branching
-        
-        /**
-         * Gets the current X position of an element based on page coordinates.  The element must be part of the DOM tree to have page coordinates (display:none or elements not appended return false).
-         * @method getX
-         * @param {String | HTMLElement | Array} el Accepts a string to use as an ID, an actual DOM reference, or an Array of IDs and/or HTMLElements
-         * @return {Number | Array} The X position of the element(s)
-         */
-        getX: function(el) {
-            var f = function(el) {
-                return Y.Dom.getXY(el)[0];
-            };
-            
-            return Y.Dom.batch(el, f, Y.Dom, true);
-        },
-        
-        /**
-         * Gets the current Y position of an element based on page coordinates.  Element must be part of the DOM tree to have page coordinates (display:none or elements not appended return false).
-         * @method getY
-         * @param {String | HTMLElement | Array} el Accepts a string to use as an ID, an actual DOM reference, or an Array of IDs and/or HTMLElements
-         * @return {Number | Array} The Y position of the element(s)
-         */
-        getY: function(el) {
-            var f = function(el) {
-                return Y.Dom.getXY(el)[1];
-            };
-            
-            return Y.Dom.batch(el, f, Y.Dom, true);
-        },
-        
-        /**
-         * Set the position of an html element in page coordinates, regardless of how the element is positioned.
-         * The element(s) must be part of the DOM tree to have page coordinates (display:none or elements not appended return false).
-         * @method setXY
-         * @param {String | HTMLElement | Array} el Accepts a string to use as an ID, an actual DOM reference, or an Array of IDs and/or HTMLElements
-         * @param {Array} pos Contains X & Y values for new position (coordinates are page-based)
-         * @param {Boolean} noRetry By default we try and set the position a second time if the first fails
-         */
-        setXY: function(el, pos, noRetry) {
-            Y.Dom.batch(el, Y.Dom._setXY, { pos: pos, noRetry: noRetry });
-        },
-
-        _setXY: function(node, args) {
-            var pos = Y.Dom._getStyle(node, POSITION),
-                setStyle = Y.Dom.setStyle,
-                xy = args.pos,
-                noRetry = args.noRetry,
-
-                delta = [ // assuming pixels; if not we will have to retry
-                    parseInt( Y.Dom.getComputedStyle(node, LEFT), 10 ),
-                    parseInt( Y.Dom.getComputedStyle(node, TOP), 10 )
-                ],
-
-                currentXY,
-                newXY;
-        
-            if (pos == 'static') { // default to relative
-                pos = RELATIVE;
-                setStyle(node, POSITION, pos);
-            }
-
-            currentXY = Y.Dom._getXY(node);
-
-            if (!xy || currentXY === false) { // has to be part of doc to have xy
-                YAHOO.log('xy failed: node not available', 'error', 'Node');
-                return false; 
-            }
-            
-            if ( isNaN(delta[0]) ) {// in case of 'auto'
-                delta[0] = (pos == RELATIVE) ? 0 : node[OFFSET_LEFT];
-            } 
-            if ( isNaN(delta[1]) ) { // in case of 'auto'
-                delta[1] = (pos == RELATIVE) ? 0 : node[OFFSET_TOP];
-            } 
-
-            if (xy[0] !== null) { // from setX
-                setStyle(node, LEFT, xy[0] - currentXY[0] + delta[0] + 'px');
-            }
-
-            if (xy[1] !== null) { // from setY
-                setStyle(node, TOP, xy[1] - currentXY[1] + delta[1] + 'px');
-            }
-          
-            if (!noRetry) {
-                newXY = Y.Dom._getXY(node);
-
-                // if retry is true, try one more time if we miss 
-               if ( (xy[0] !== null && newXY[0] != xy[0]) || 
-                    (xy[1] !== null && newXY[1] != xy[1]) ) {
-                   Y.Dom._setXY(node, { pos: xy, noRetry: true });
-               }
-            }        
-
-            YAHOO.log('setXY setting position to ' + xy, 'info', 'Node');
-        },
-        
-        /**
-         * Set the X position of an html element in page coordinates, regardless of how the element is positioned.
-         * The element must be part of the DOM tree to have page coordinates (display:none or elements not appended return false).
-         * @method setX
-         * @param {String | HTMLElement | Array} el Accepts a string to use as an ID, an actual DOM reference, or an Array of IDs and/or HTMLElements.
-         * @param {Int} x The value to use as the X coordinate for the element(s).
-         */
-        setX: function(el, x) {
-            Y.Dom.setXY(el, [x, null]);
-        },
-        
-        /**
-         * Set the Y position of an html element in page coordinates, regardless of how the element is positioned.
-         * The element must be part of the DOM tree to have page coordinates (display:none or elements not appended return false).
-         * @method setY
-         * @param {String | HTMLElement | Array} el Accepts a string to use as an ID, an actual DOM reference, or an Array of IDs and/or HTMLElements.
-         * @param {Int} x To use as the Y coordinate for the element(s).
-         */
-        setY: function(el, y) {
-            Y.Dom.setXY(el, [null, y]);
-        },
-        
-        /**
-         * Returns the region position of the given element.
-         * The element must be part of the DOM tree to have a region (display:none or elements not appended return false).
-         * @method getRegion
-         * @param {String | HTMLElement | Array} el Accepts a string to use as an ID, an actual DOM reference, or an Array of IDs and/or HTMLElements.
-         * @return {Region | Array} A Region or array of Region instances containing "top, left, bottom, right" member data.
-         */
-        getRegion: function(el) {
-            var f = function(el) {
-                var region = false;
-                if ( Y.Dom._canPosition(el) ) {
-                    region = Y.Region.getRegion(el);
-                    YAHOO.log('getRegion returning ' + region, 'info', 'Dom');
-                } else {
-                    YAHOO.log('getRegion failed: element not positionable (either not in a document or not displayed)', 'error', 'Dom');
-                }
-
-                return region;
-            };
-            
-            return Y.Dom.batch(el, f, Y.Dom, true);
-        },
-        
-        /**
-         * Returns the width of the client (viewport).
-         * @method getClientWidth
-         * @deprecated Now using getViewportWidth.  This interface left intact for back compat.
-         * @return {Int} The width of the viewable area of the page.
-         */
-        getClientWidth: function() {
-            return Y.Dom.getViewportWidth();
-        },
-        
-        /**
-         * Returns the height of the client (viewport).
-         * @method getClientHeight
-         * @deprecated Now using getViewportHeight.  This interface left intact for back compat.
-         * @return {Int} The height of the viewable area of the page.
-         */
-        getClientHeight: function() {
-            return Y.Dom.getViewportHeight();
-        },
-
-        /**
-         * Returns an array of HTMLElements with the given class.
-         * For optimized performance, include a tag and/or root node when possible.
-         * Note: This method operates against a live collection, so modifying the 
-         * collection in the callback (removing/appending nodes, etc.) will have
-         * side effects.  Instead you should iterate the returned nodes array,
-         * as you would with the native "getElementsByTagName" method. 
-         * @method getElementsByClassName
-         * @param {String} className The class name to match against
-         * @param {String} tag (optional) The tag name of the elements being collected
-         * @param {String | HTMLElement} root (optional) The HTMLElement or an ID to use as the starting point.
-         * This element is not included in the className scan.
-         * @param {Function} apply (optional) A function to apply to each element when found 
-         * @param {Any} o (optional) An optional arg that is passed to the supplied method
-         * @param {Boolean} overrides (optional) Whether or not to override the scope of "method" with "o"
-         * @return {Array} An array of elements that have the given class name
-         */
-        getElementsByClassName: function(className, tag, root, apply, o, overrides) {
-            tag = tag || '*';
-            root = (root) ? Y.Dom.get(root) : null || document; 
-            if (!root) {
-                return [];
-            }
-
-            var nodes = [],
-                elements = root.getElementsByTagName(tag),
-                hasClass = Y.Dom.hasClass;
-
-            for (var i = 0, len = elements.length; i < len; ++i) {
-                if ( hasClass(elements[i], className) ) {
-                    nodes[nodes.length] = elements[i];
-                }
-            }
-            
-            if (apply) {
-                Y.Dom.batch(nodes, apply, o, overrides);
-            }
-
-            return nodes;
-        },
-
-        /**
-         * Determines whether an HTMLElement has the given className.
-         * @method hasClass
-         * @param {String | HTMLElement | Array} el The element or collection to test
-         * @param {String} className the class name to search for
-         * @return {Boolean | Array} A boolean value or array of boolean values
-         */
-        hasClass: function(el, className) {
-            return Y.Dom.batch(el, Y.Dom._hasClass, className);
-        },
-
-        _hasClass: function(el, className) {
-            var ret = false,
-                current;
-            
-            if (el && className) {
-                current = Y.Dom._getAttribute(el, CLASS_NAME) || EMPTY;
-                if (className.exec) {
-                    ret = className.test(current);
-                } else {
-                    ret = className && (SPACE + current + SPACE).
-                        indexOf(SPACE + className + SPACE) > -1;
-                }
-            } else {
-                YAHOO.log('hasClass called with invalid arguments', 'warn', 'Dom');
-            }
-
-            return ret;
-        },
-    
-        /**
-         * Adds a class name to a given element or collection of elements.
-         * @method addClass         
-         * @param {String | HTMLElement | Array} el The element or collection to add the class to
-         * @param {String} className the class name to add to the class attribute
-         * @return {Boolean | Array} A pass/fail boolean or array of booleans
-         */
-        addClass: function(el, className) {
-            return Y.Dom.batch(el, Y.Dom._addClass, className);
-        },
-
-        _addClass: function(el, className) {
-            var ret = false,
-                current;
-
-            if (el && className) {
-                current = Y.Dom._getAttribute(el, CLASS_NAME) || EMPTY;
-                if ( !Y.Dom._hasClass(el, className) ) {
-                    Y.Dom.setAttribute(el, CLASS_NAME, trim(current + SPACE + className));
-                    ret = true;
-                }
-            } else {
-                YAHOO.log('addClass called with invalid arguments', 'warn', 'Dom');
-            }
-
-            return ret;
-        },
-    
-        /**
-         * Removes a class name from a given element or collection of elements.
-         * @method removeClass         
-         * @param {String | HTMLElement | Array} el The element or collection to remove the class from
-         * @param {String} className the class name to remove from the class attribute
-         * @return {Boolean | Array} A pass/fail boolean or array of booleans
-         */
-        removeClass: function(el, className) {
-            return Y.Dom.batch(el, Y.Dom._removeClass, className);
-        },
-        
-        _removeClass: function(el, className) {
-            var ret = false,
-                current,
-                newClass,
-                attr;
-
-            if (el && className) {
-                current = Y.Dom._getAttribute(el, CLASS_NAME) || EMPTY;
-                Y.Dom.setAttribute(el, CLASS_NAME, current.replace(Y.Dom._getClassRegex(className), EMPTY));
-
-                newClass = Y.Dom._getAttribute(el, CLASS_NAME);
-                if (current !== newClass) { // else nothing changed
-                    Y.Dom.setAttribute(el, CLASS_NAME, trim(newClass)); // trim after comparing to current class
-                    ret = true;
-
-                    if (Y.Dom._getAttribute(el, CLASS_NAME) === '') { // remove class attribute if empty
-                        attr = (el.hasAttribute && el.hasAttribute(_CLASS)) ? _CLASS : CLASS_NAME;
-                        YAHOO.log('removeClass removing empty class attribute', 'info', 'Dom');
-                        el.removeAttribute(attr);
-                    }
-                }
-
-            } else {
-                YAHOO.log('removeClass called with invalid arguments', 'warn', 'Dom');
-            }
-
-            return ret;
-        },
-        
-        /**
-         * Replace a class with another class for a given element or collection of elements.
-         * If no oldClassName is present, the newClassName is simply added.
-         * @method replaceClass  
-         * @param {String | HTMLElement | Array} el The element or collection to remove the class from
-         * @param {String} oldClassName the class name to be replaced
-         * @param {String} newClassName the class name that will be replacing the old class name
-         * @return {Boolean | Array} A pass/fail boolean or array of booleans
-         */
-        replaceClass: function(el, oldClassName, newClassName) {
-            return Y.Dom.batch(el, Y.Dom._replaceClass, { from: oldClassName, to: newClassName });
-        },
-
-        _replaceClass: function(el, classObj) {
-            var className,
-                from,
-                to,
-                ret = false,
-                current;
-
-            if (el && classObj) {
-                from = classObj.from;
-                to = classObj.to;
-
-                if (!to) {
-                    ret = false;
-                }  else if (!from) { // just add if no "from"
-                    ret = Y.Dom._addClass(el, classObj.to);
-                } else if (from !== to) { // else nothing to replace
-                    // May need to lead with DBLSPACE?
-                    current = Y.Dom._getAttribute(el, CLASS_NAME) || EMPTY;
-                    className = (SPACE + current.replace(Y.Dom._getClassRegex(from), SPACE + to)).
-                               split(Y.Dom._getClassRegex(to));
-
-                    // insert to into what would have been the first occurrence slot
-                    className.splice(1, 0, SPACE + to);
-                    Y.Dom.setAttribute(el, CLASS_NAME, trim(className.join(EMPTY)));
-                    ret = true;
-                }
-            } else {
-                YAHOO.log('replaceClass called with invalid arguments', 'warn', 'Dom');
-            }
-
-            return ret;
-        },
-        
-        /**
-         * Returns an ID and applies it to the element "el", if provided.
-         * @method generateId  
-         * @param {String | HTMLElement | Array} el (optional) An optional element array of elements to add an ID to (no ID is added if one is already present).
-         * @param {String} prefix (optional) an optional prefix to use (defaults to "yui-gen").
-         * @return {String | Array} The generated ID, or array of generated IDs (or original ID if already present on an element)
-         */
-        generateId: function(el, prefix) {
-            prefix = prefix || 'yui-gen';
-
-            var f = function(el) {
-                if (el && el.id) { // do not override existing ID
-                    YAHOO.log('generateId returning existing id ' + el.id, 'info', 'Dom');
-                    return el.id;
-                }
-
-                var id = prefix + YAHOO.env._id_counter++;
-                YAHOO.log('generateId generating ' + id, 'info', 'Dom');
-
-                if (el) {
-                    if (el[OWNER_DOCUMENT] && el[OWNER_DOCUMENT].getElementById(id)) { // in case one already exists
-                        // use failed id plus prefix to help ensure uniqueness
-                        return Y.Dom.generateId(el, id + prefix);
-                    }
-                    el.id = id;
-                }
-                
-                return id;
-            };
-
-            // batch fails when no element, so just generate and return single ID
-            return Y.Dom.batch(el, f, Y.Dom, true) || f.apply(Y.Dom, arguments);
-        },
-        
-        /**
-         * Determines whether an HTMLElement is an ancestor of another HTML element in the DOM hierarchy.
-         * @method isAncestor
-         * @param {String | HTMLElement} haystack The possible ancestor
-         * @param {String | HTMLElement} needle The possible descendent
-         * @return {Boolean} Whether or not the haystack is an ancestor of needle
-         */
-        isAncestor: function(haystack, needle) {
-            haystack = Y.Dom.get(haystack);
-            needle = Y.Dom.get(needle);
-            
-            var ret = false;
-
-            if ( (haystack && needle) && (haystack[NODE_TYPE] && needle[NODE_TYPE]) ) {
-                if (haystack.contains && haystack !== needle) { // contains returns true when equal
-                    ret = haystack.contains(needle);
-                }
-                else if (haystack.compareDocumentPosition) { // gecko
-                    ret = !!(haystack.compareDocumentPosition(needle) & 16);
-                }
-            } else {
-                YAHOO.log('isAncestor failed; invalid input: ' + haystack + ',' + needle, 'error', 'Dom');
-            }
-            YAHOO.log('isAncestor(' + haystack + ',' + needle + ' returning ' + ret, 'info', 'Dom');
-            return ret;
-        },
-        
-        /**
-         * Determines whether an HTMLElement is present in the current document.
-         * @method inDocument         
-         * @param {String | HTMLElement} el The element to search for
-         * @param {Object} doc An optional document to search, defaults to element's owner document 
-         * @return {Boolean} Whether or not the element is present in the current document
-         */
-        inDocument: function(el, doc) {
-            return Y.Dom._inDoc(Y.Dom.get(el), doc);
-        },
-
-        _inDoc: function(el, doc) {
-            var ret = false;
-            if (el && el[TAG_NAME]) {
-                doc = doc || el[OWNER_DOCUMENT]; 
-                ret = Y.Dom.isAncestor(doc[DOCUMENT_ELEMENT], el);
-            } else {
-                YAHOO.log('inDocument failed: invalid input', 'error', 'Dom');
-            }
-            return ret;
-        },
-        
-        /**
-         * Returns an array of HTMLElements that pass the test applied by supplied boolean method.
-         * For optimized performance, include a tag and/or root node when possible.
-         * Note: This method operates against a live collection, so modifying the 
-         * collection in the callback (removing/appending nodes, etc.) will have
-         * side effects.  Instead you should iterate the returned nodes array,
-         * as you would with the native "getElementsByTagName" method. 
-         * @method getElementsBy
-         * @param {Function} method - A boolean method for testing elements which receives the element as its only argument.
-         * @param {String} tag (optional) The tag name of the elements being collected
-         * @param {String | HTMLElement} root (optional) The HTMLElement or an ID to use as the starting point 
-         * @param {Function} apply (optional) A function to apply to each element when found 
-         * @param {Any} o (optional) An optional arg that is passed to the supplied method
-         * @param {Boolean} overrides (optional) Whether or not to override the scope of "method" with "o"
-         * @return {Array} Array of HTMLElements
-         */
-        getElementsBy: function(method, tag, root, apply, o, overrides, firstOnly) {
-            tag = tag || '*';
-            root = (root) ? Y.Dom.get(root) : null || document; 
-
-            if (!root) {
-                return [];
-            }
-
-            var nodes = [],
-                elements = root.getElementsByTagName(tag);
-            
-            for (var i = 0, len = elements.length; i < len; ++i) {
-                if ( method(elements[i]) ) {
-                    if (firstOnly) {
-                        nodes = elements[i]; 
-                        break;
-                    } else {
-                        nodes[nodes.length] = elements[i];
-                    }
-                }
-            }
-
-            if (apply) {
-                Y.Dom.batch(nodes, apply, o, overrides);
-            }
-
-            YAHOO.log('getElementsBy returning ' + nodes, 'info', 'Dom');
-            
-            return nodes;
-        },
-        
-        /**
-         * Returns the first HTMLElement that passes the test applied by the supplied boolean method.
-         * @method getElementBy
-         * @param {Function} method - A boolean method for testing elements which receives the element as its only argument.
-         * @param {String} tag (optional) The tag name of the elements being collected
-         * @param {String | HTMLElement} root (optional) The HTMLElement or an ID to use as the starting point 
-         * @return {HTMLElement}
-         */
-        getElementBy: function(method, tag, root) {
-            return Y.Dom.getElementsBy(method, tag, root, null, null, null, true); 
-        },
-
-        /**
-         * Runs the supplied method against each item in the Collection/Array.
-         * The method is called with the element(s) as the first arg, and the optional param as the second ( method(el, o) ).
-         * @method batch
-         * @param {String | HTMLElement | Array} el (optional) An element or array of elements to apply the method to
-         * @param {Function} method The method to apply to the element(s)
-         * @param {Any} o (optional) An optional arg that is passed to the supplied method
-         * @param {Boolean} overrides (optional) Whether or not to override the scope of "method" with "o"
-         * @return {Any | Array} The return value(s) from the supplied method
-         */
-        batch: function(el, method, o, overrides) {
-            var collection = [],
-                scope = (overrides) ? o : window;
-                
-            el = (el && (el[TAG_NAME] || el.item)) ? el : Y.Dom.get(el); // skip get() when possible
-            if (el && method) {
-                if (el[TAG_NAME] || el.length === undefined) { // element or not array-like 
-                    return method.call(scope, el, o);
-                } 
-
-                for (var i = 0; i < el.length; ++i) {
-                    collection[collection.length] = method.call(scope, el[i], o);
-                }
-            } else {
-                YAHOO.log('batch called with invalid arguments', 'warn', 'Dom');
-                return false;
-            } 
-            return collection;
-        },
-        
-        /**
-         * Returns the height of the document.
-         * @method getDocumentHeight
-         * @return {Int} The height of the actual document (which includes the body and its margin).
-         */
-        getDocumentHeight: function() {
-            var scrollHeight = (document[COMPAT_MODE] != CSS1_COMPAT || isSafari) ? document.body.scrollHeight : documentElement.scrollHeight,
-                h = Math.max(scrollHeight, Y.Dom.getViewportHeight());
-
-            YAHOO.log('getDocumentHeight returning ' + h, 'info', 'Dom');
-            return h;
-        },
-        
-        /**
-         * Returns the width of the document.
-         * @method getDocumentWidth
-         * @return {Int} The width of the actual document (which includes the body and its margin).
-         */
-        getDocumentWidth: function() {
-            var scrollWidth = (document[COMPAT_MODE] != CSS1_COMPAT || isSafari) ? document.body.scrollWidth : documentElement.scrollWidth,
-                w = Math.max(scrollWidth, Y.Dom.getViewportWidth());
-            YAHOO.log('getDocumentWidth returning ' + w, 'info', 'Dom');
-            return w;
-        },
-
-        /**
-         * Returns the current height of the viewport.
-         * @method getViewportHeight
-         * @return {Int} The height of the viewable area of the page (excludes scrollbars).
-         */
-        getViewportHeight: function() {
-            var height = self.innerHeight, // Safari, Opera
-                mode = document[COMPAT_MODE];
-        
-            if ( (mode || isIE) && !isOpera ) { // IE, Gecko
-                height = (mode == CSS1_COMPAT) ?
-                        documentElement.clientHeight : // Standards
-                        document.body.clientHeight; // Quirks
-            }
-        
-            YAHOO.log('getViewportHeight returning ' + height, 'info', 'Dom');
-            return height;
-        },
-        
-        /**
-         * Returns the current width of the viewport.
-         * @method getViewportWidth
-         * @return {Int} The width of the viewable area of the page (excludes scrollbars).
-         */
-        
-        getViewportWidth: function() {
-            var width = self.innerWidth,  // Safari
-                mode = document[COMPAT_MODE];
-            
-            if (mode || isIE) { // IE, Gecko, Opera
-                width = (mode == CSS1_COMPAT) ?
-                        documentElement.clientWidth : // Standards
-                        document.body.clientWidth; // Quirks
-            }
-            YAHOO.log('getViewportWidth returning ' + width, 'info', 'Dom');
-            return width;
-        },
-
-       /**
-         * Returns the nearest ancestor that passes the test applied by supplied boolean method.
-         * For performance reasons, IDs are not accepted and argument validation omitted.
-         * @method getAncestorBy
-         * @param {HTMLElement} node The HTMLElement to use as the starting point 
-         * @param {Function} method - A boolean method for testing elements which receives the element as its only argument.
-         * @return {Object} HTMLElement or null if not found
-         */
-        getAncestorBy: function(node, method) {
-            while ( (node = node[PARENT_NODE]) ) { // NOTE: assignment
-                if ( Y.Dom._testElement(node, method) ) {
-                    YAHOO.log('getAncestorBy returning ' + node, 'info', 'Dom');
-                    return node;
-                }
-            } 
-
-            YAHOO.log('getAncestorBy returning null (no ancestor passed test)', 'error', 'Dom');
-            return null;
-        },
-        
-        /**
-         * Returns the nearest ancestor with the given className.
-         * @method getAncestorByClassName
-         * @param {String | HTMLElement} node The HTMLElement or an ID to use as the starting point 
-         * @param {String} className
-         * @return {Object} HTMLElement
-         */
-        getAncestorByClassName: function(node, className) {
-            node = Y.Dom.get(node);
-            if (!node) {
-                YAHOO.log('getAncestorByClassName failed: invalid node argument', 'error', 'Dom');
-                return null;
-            }
-            var method = function(el) { return Y.Dom.hasClass(el, className); };
-            return Y.Dom.getAncestorBy(node, method);
-        },
-
-        /**
-         * Returns the nearest ancestor with the given tagName.
-         * @method getAncestorByTagName
-         * @param {String | HTMLElement} node The HTMLElement or an ID to use as the starting point 
-         * @param {String} tagName
-         * @return {Object} HTMLElement
-         */
-        getAncestorByTagName: function(node, tagName) {
-            node = Y.Dom.get(node);
-            if (!node) {
-                YAHOO.log('getAncestorByTagName failed: invalid node argument', 'error', 'Dom');
-                return null;
-            }
-            var method = function(el) {
-                 return el[TAG_NAME] && el[TAG_NAME].toUpperCase() == tagName.toUpperCase();
-            };
-
-            return Y.Dom.getAncestorBy(node, method);
-        },
-
-        /**
-         * Returns the previous sibling that is an HTMLElement. 
-         * For performance reasons, IDs are not accepted and argument validation omitted.
-         * Returns the nearest HTMLElement sibling if no method provided.
-         * @method getPreviousSiblingBy
-         * @param {HTMLElement} node The HTMLElement to use as the starting point 
-         * @param {Function} method A boolean function used to test siblings
-         * that receives the sibling node being tested as its only argument
-         * @return {Object} HTMLElement or null if not found
-         */
-        getPreviousSiblingBy: function(node, method) {
-            while (node) {
-                node = node.previousSibling;
-                if ( Y.Dom._testElement(node, method) ) {
-                    return node;
-                }
-            }
-            return null;
-        }, 
-
-        /**
-         * Returns the previous sibling that is an HTMLElement 
-         * @method getPreviousSibling
-         * @param {String | HTMLElement} node The HTMLElement or an ID to use as the starting point 
-         * @return {Object} HTMLElement or null if not found
-         */
-        getPreviousSibling: function(node) {
-            node = Y.Dom.get(node);
-            if (!node) {
-                YAHOO.log('getPreviousSibling failed: invalid node argument', 'error', 'Dom');
-                return null;
-            }
-
-            return Y.Dom.getPreviousSiblingBy(node);
-        }, 
-
-        /**
-         * Returns the next HTMLElement sibling that passes the boolean method. 
-         * For performance reasons, IDs are not accepted and argument validation omitted.
-         * Returns the nearest HTMLElement sibling if no method provided.
-         * @method getNextSiblingBy
-         * @param {HTMLElement} node The HTMLElement to use as the starting point 
-         * @param {Function} method A boolean function used to test siblings
-         * that receives the sibling node being tested as its only argument
-         * @return {Object} HTMLElement or null if not found
-         */
-        getNextSiblingBy: function(node, method) {
-            while (node) {
-                node = node.nextSibling;
-                if ( Y.Dom._testElement(node, method) ) {
-                    return node;
-                }
-            }
-            return null;
-        }, 
-
-        /**
-         * Returns the next sibling that is an HTMLElement 
-         * @method getNextSibling
-         * @param {String | HTMLElement} node The HTMLElement or an ID to use as the starting point 
-         * @return {Object} HTMLElement or null if not found
-         */
-        getNextSibling: function(node) {
-            node = Y.Dom.get(node);
-            if (!node) {
-                YAHOO.log('getNextSibling failed: invalid node argument', 'error', 'Dom');
-                return null;
-            }
-
-            return Y.Dom.getNextSiblingBy(node);
-        }, 
-
-        /**
-         * Returns the first HTMLElement child that passes the test method. 
-         * @method getFirstChildBy
-         * @param {HTMLElement} node The HTMLElement to use as the starting point 
-         * @param {Function} method A boolean function used to test children
-         * that receives the node being tested as its only argument
-         * @return {Object} HTMLElement or null if not found
-         */
-        getFirstChildBy: function(node, method) {
-            var child = ( Y.Dom._testElement(node.firstChild, method) ) ? node.firstChild : null;
-            return child || Y.Dom.getNextSiblingBy(node.firstChild, method);
-        }, 
-
-        /**
-         * Returns the first HTMLElement child. 
-         * @method getFirstChild
-         * @param {String | HTMLElement} node The HTMLElement or an ID to use as the starting point 
-         * @return {Object} HTMLElement or null if not found
-         */
-        getFirstChild: function(node, method) {
-            node = Y.Dom.get(node);
-            if (!node) {
-                YAHOO.log('getFirstChild failed: invalid node argument', 'error', 'Dom');
-                return null;
-            }
-            return Y.Dom.getFirstChildBy(node);
-        }, 
-
-        /**
-         * Returns the last HTMLElement child that passes the test method. 
-         * @method getLastChildBy
-         * @param {HTMLElement} node The HTMLElement to use as the starting point 
-         * @param {Function} method A boolean function used to test children
-         * that receives the node being tested as its only argument
-         * @return {Object} HTMLElement or null if not found
-         */
-        getLastChildBy: function(node, method) {
-            if (!node) {
-                YAHOO.log('getLastChild failed: invalid node argument', 'error', 'Dom');
-                return null;
-            }
-            var child = ( Y.Dom._testElement(node.lastChild, method) ) ? node.lastChild : null;
-            return child || Y.Dom.getPreviousSiblingBy(node.lastChild, method);
-        }, 
-
-        /**
-         * Returns the last HTMLElement child. 
-         * @method getLastChild
-         * @param {String | HTMLElement} node The HTMLElement or an ID to use as the starting point 
-         * @return {Object} HTMLElement or null if not found
-         */
-        getLastChild: function(node) {
-            node = Y.Dom.get(node);
-            return Y.Dom.getLastChildBy(node);
-        }, 
-
-        /**
-         * Returns an array of HTMLElement childNodes that pass the test method. 
-         * @method getChildrenBy
-         * @param {HTMLElement} node The HTMLElement to start from
-         * @param {Function} method A boolean function used to test children
-         * that receives the node being tested as its only argument
-         * @return {Array} A static array of HTMLElements
-         */
-        getChildrenBy: function(node, method) {
-            var child = Y.Dom.getFirstChildBy(node, method),
-                children = child ? [child] : [];
-
-            Y.Dom.getNextSiblingBy(child, function(node) {
-                if ( !method || method(node) ) {
-                    children[children.length] = node;
-                }
-                return false; // fail test to collect all children
-            });
-
-            return children;
-        },
-        /**
-         * Returns an array of HTMLElement childNodes. 
-         * @method getChildren
-         * @param {String | HTMLElement} node The HTMLElement or an ID to use as the starting point 
-         * @return {Array} A static array of HTMLElements
-         */
-        getChildren: function(node) {
-            node = Y.Dom.get(node);
-            if (!node) {
-                YAHOO.log('getChildren failed: invalid node argument', 'error', 'Dom');
-            }
-
-            return Y.Dom.getChildrenBy(node);
-        },
-
-        /**
-         * Returns the left scroll value of the document 
-         * @method getDocumentScrollLeft
-         * @param {HTMLDocument} document (optional) The document to get the scroll value of
-         * @return {Int}  The amount that the document is scrolled to the left
-         */
-        getDocumentScrollLeft: function(doc) {
-            doc = doc || document;
-            return Math.max(doc[DOCUMENT_ELEMENT].scrollLeft, doc.body.scrollLeft);
-        }, 
-
-        /**
-         * Returns the top scroll value of the document 
-         * @method getDocumentScrollTop
-         * @param {HTMLDocument} document (optional) The document to get the scroll value of
-         * @return {Int}  The amount that the document is scrolled to the top
-         */
-        getDocumentScrollTop: function(doc) {
-            doc = doc || document;
-            return Math.max(doc[DOCUMENT_ELEMENT].scrollTop, doc.body.scrollTop);
-        },
-
-        /**
-         * Inserts the new node as the previous sibling of the reference node 
-         * @method insertBefore
-         * @param {String | HTMLElement} newNode The node to be inserted
-         * @param {String | HTMLElement} referenceNode The node to insert the new node before 
-         * @return {HTMLElement} The node that was inserted (or null if insert fails) 
-         */
-        insertBefore: function(newNode, referenceNode) {
-            newNode = Y.Dom.get(newNode); 
-            referenceNode = Y.Dom.get(referenceNode); 
-            
-            if (!newNode || !referenceNode || !referenceNode[PARENT_NODE]) {
-                YAHOO.log('insertAfter failed: missing or invalid arg(s)', 'error', 'Dom');
-                return null;
-            }       
-
-            return referenceNode[PARENT_NODE].insertBefore(newNode, referenceNode); 
-        },
-
-        /**
-         * Inserts the new node as the next sibling of the reference node 
-         * @method insertAfter
-         * @param {String | HTMLElement} newNode The node to be inserted
-         * @param {String | HTMLElement} referenceNode The node to insert the new node after 
-         * @return {HTMLElement} The node that was inserted (or null if insert fails) 
-         */
-        insertAfter: function(newNode, referenceNode) {
-            newNode = Y.Dom.get(newNode); 
-            referenceNode = Y.Dom.get(referenceNode); 
-            
-            if (!newNode || !referenceNode || !referenceNode[PARENT_NODE]) {
-                YAHOO.log('insertAfter failed: missing or invalid arg(s)', 'error', 'Dom');
-                return null;
-            }       
-
-            if (referenceNode.nextSibling) {
-                return referenceNode[PARENT_NODE].insertBefore(newNode, referenceNode.nextSibling); 
-            } else {
-                return referenceNode[PARENT_NODE].appendChild(newNode);
-            }
-        },
-
-        /**
-         * Creates a Region based on the viewport relative to the document. 
-         * @method getClientRegion
-         * @return {Region} A Region object representing the viewport which accounts for document scroll
-         */
-        getClientRegion: function() {
-            var t = Y.Dom.getDocumentScrollTop(),
-                l = Y.Dom.getDocumentScrollLeft(),
-                r = Y.Dom.getViewportWidth() + l,
-                b = Y.Dom.getViewportHeight() + t;
-
-            return new Y.Region(t, r, b, l);
-        },
-
-        /**
-         * Provides a normalized attribute interface. 
-         * @method setAttribute
-         * @param {String | HTMLElement} el The target element for the attribute.
-         * @param {String} attr The attribute to set.
-         * @param {String} val The value of the attribute.
-         */
-        setAttribute: function(el, attr, val) {
-            Y.Dom.batch(el, Y.Dom._setAttribute, { attr: attr, val: val });
-        },
-
-        _setAttribute: function(el, args) {
-            var attr = Y.Dom._toCamel(args.attr),
-                val = args.val;
-
-            if (el && el.setAttribute) {
-                if (Y.Dom.DOT_ATTRIBUTES[attr]) {
-                    el[attr] = val;
-                } else {
-                    attr = Y.Dom.CUSTOM_ATTRIBUTES[attr] || attr;
-                    el.setAttribute(attr, val);
-                }
-            } else {
-                YAHOO.log('setAttribute method not available for ' + el, 'error', 'Dom');
-            }
-        },
-
-        /**
-         * Provides a normalized attribute interface. 
-         * @method getAttribute
-         * @param {String | HTMLElement} el The target element for the attribute.
-         * @param {String} attr The attribute to get.
-         * @return {String} The current value of the attribute. 
-         */
-        getAttribute: function(el, attr) {
-            return Y.Dom.batch(el, Y.Dom._getAttribute, attr);
-        },
-
-
-        _getAttribute: function(el, attr) {
-            var val;
-            attr = Y.Dom.CUSTOM_ATTRIBUTES[attr] || attr;
-
-            if (el && el.getAttribute) {
-                val = el.getAttribute(attr, 2);
-            } else {
-                YAHOO.log('getAttribute method not available for ' + el, 'error', 'Dom');
-            }
-
-            return val;
-        },
-
-        _toCamel: function(property) {
-            var c = propertyCache;
-
-            function tU(x,l) {
-                return l.toUpperCase();
-            }
-
-            return c[property] || (c[property] = property.indexOf('-') === -1 ? 
-                                    property :
-                                    property.replace( /-([a-z])/gi, tU ));
-        },
-
-        _getClassRegex: function(className) {
-            var re;
-            if (className !== undefined) { // allow empty string to pass
-                if (className.exec) { // already a RegExp
-                    re = className;
-                } else {
-                    re = reCache[className];
-                    if (!re) {
-                        // escape special chars (".", "[", etc.)
-                        className = className.replace(Y.Dom._patterns.CLASS_RE_TOKENS, '\\$1');
-                        re = reCache[className] = new RegExp(C_START + className + C_END, G);
-                    }
-                }
-            }
-            return re;
-        },
-
-        _patterns: {
-            ROOT_TAG: /^body|html$/i, // body for quirks mode, html for standards,
-            CLASS_RE_TOKENS: /([\.\(\)\^\$\*\+\?\|\[\]\{\}\\])/g
-        },
-
-
-        _testElement: function(node, method) {
-            return node && node[NODE_TYPE] == 1 && ( !method || method(node) );
-        },
-
-        _calcBorders: function(node, xy2) {
-            var t = parseInt(Y.Dom[GET_COMPUTED_STYLE](node, BORDER_TOP_WIDTH), 10) || 0,
-                l = parseInt(Y.Dom[GET_COMPUTED_STYLE](node, BORDER_LEFT_WIDTH), 10) || 0;
-            if (isGecko) {
-                if (RE_TABLE.test(node[TAG_NAME])) {
-                    t = 0;
-                    l = 0;
-                }
-            }
-            xy2[0] += l;
-            xy2[1] += t;
-            return xy2;
-        }
-    };
-        
-    var _getComputedStyle = Y.Dom[GET_COMPUTED_STYLE];
-    // fix opera computedStyle default color unit (convert to rgb)
-    if (UA.opera) {
-        Y.Dom[GET_COMPUTED_STYLE] = function(node, att) {
-            var val = _getComputedStyle(node, att);
-            if (RE_COLOR.test(att)) {
-                val = Y.Dom.Color.toRGB(val);
-            }
-
-            return val;
-        };
-
-    }
-
-    // safari converts transparent to rgba(), others use "transparent"
-    if (UA.webkit) {
-        Y.Dom[GET_COMPUTED_STYLE] = function(node, att) {
-            var val = _getComputedStyle(node, att);
-
-            if (val === 'rgba(0, 0, 0, 0)') {
-                val = 'transparent'; 
-            }
-
-            return val;
-        };
-
-    }
-
-    if (UA.ie && UA.ie >= 8 && document.documentElement.hasAttribute) { // IE 8 standards
-        Y.Dom.DOT_ATTRIBUTES.type = true; // IE 8 errors on input.setAttribute('type')
-    }
-})();
-/**
- * A region is a representation of an object on a grid.  It is defined
- * by the top, right, bottom, left extents, so is rectangular by default.  If 
- * other shapes are required, this class could be extended to support it.
- * @namespace YAHOO.util
- * @class Region
- * @param {Int} t the top extent
- * @param {Int} r the right extent
- * @param {Int} b the bottom extent
- * @param {Int} l the left extent
- * @constructor
- */
-YAHOO.util.Region = function(t, r, b, l) {
-
-    /**
-     * The region's top extent
-     * @property top
-     * @type Int
-     */
-    this.top = t;
-    
-    /**
-     * The region's top extent
-     * @property y
-     * @type Int
-     */
-    this.y = t;
-    
-    /**
-     * The region's top extent as index, for symmetry with set/getXY
-     * @property 1
-     * @type Int
-     */
-    this[1] = t;
-
-    /**
-     * The region's right extent
-     * @property right
-     * @type int
-     */
-    this.right = r;
-
-    /**
-     * The region's bottom extent
-     * @property bottom
-     * @type Int
-     */
-    this.bottom = b;
-
-    /**
-     * The region's left extent
-     * @property left
-     * @type Int
-     */
-    this.left = l;
-    
-    /**
-     * The region's left extent
-     * @property x
-     * @type Int
-     */
-    this.x = l;
-    
-    /**
-     * The region's left extent as index, for symmetry with set/getXY
-     * @property 0
-     * @type Int
-     */
-    this[0] = l;
-
-    /**
-     * The region's total width 
-     * @property width 
-     * @type Int
-     */
-    this.width = this.right - this.left;
-
-    /**
-     * The region's total height 
-     * @property height 
-     * @type Int
-     */
-    this.height = this.bottom - this.top;
-};
-
-/**
- * Returns true if this region contains the region passed in
- * @method contains
- * @param  {Region}  region The region to evaluate
- * @return {Boolean}        True if the region is contained with this region, 
- *                          else false
- */
-YAHOO.util.Region.prototype.contains = function(region) {
-    return ( region.left   >= this.left   && 
-             region.right  <= this.right  && 
-             region.top    >= this.top    && 
-             region.bottom <= this.bottom    );
-
-    // this.logger.debug("does " + this + " contain " + region + " ... " + ret);
-};
-
-/**
- * Returns the area of the region
- * @method getArea
- * @return {Int} the region's area
- */
-YAHOO.util.Region.prototype.getArea = function() {
-    return ( (this.bottom - this.top) * (this.right - this.left) );
-};
-
-/**
- * Returns the region where the passed in region overlaps with this one
- * @method intersect
- * @param  {Region} region The region that intersects
- * @return {Region}        The overlap region, or null if there is no overlap
- */
-YAHOO.util.Region.prototype.intersect = function(region) {
-    var t = Math.max( this.top,    region.top    ),
-        r = Math.min( this.right,  region.right  ),
-        b = Math.min( this.bottom, region.bottom ),
-        l = Math.max( this.left,   region.left   );
-    
-    if (b >= t && r >= l) {
-        return new YAHOO.util.Region(t, r, b, l);
-    } else {
-        return null;
-    }
-};
-
-/**
- * Returns the region representing the smallest region that can contain both
- * the passed in region and this region.
- * @method union
- * @param  {Region} region The region that to create the union with
- * @return {Region}        The union region
- */
-YAHOO.util.Region.prototype.union = function(region) {
-    var t = Math.min( this.top,    region.top    ),
-        r = Math.max( this.right,  region.right  ),
-        b = Math.max( this.bottom, region.bottom ),
-        l = Math.min( this.left,   region.left   );
-
-    return new YAHOO.util.Region(t, r, b, l);
-};
-
-/**
- * toString
- * @method toString
- * @return string the region properties
- */
-YAHOO.util.Region.prototype.toString = function() {
-    return ( "Region {"    +
-             "top: "       + this.top    + 
-             ", right: "   + this.right  + 
-             ", bottom: "  + this.bottom + 
-             ", left: "    + this.left   + 
-             ", height: "  + this.height + 
-             ", width: "    + this.width   + 
-             "}" );
-};
-
-/**
- * Returns a region that is occupied by the DOM element
- * @method getRegion
- * @param  {HTMLElement} el The element
- * @return {Region}         The region that the element occupies
- * @static
- */
-YAHOO.util.Region.getRegion = function(el) {
-    var p = YAHOO.util.Dom.getXY(el),
-        t = p[1],
-        r = p[0] + el.offsetWidth,
-        b = p[1] + el.offsetHeight,
-        l = p[0];
-
-    return new YAHOO.util.Region(t, r, b, l);
-};
-
-/////////////////////////////////////////////////////////////////////////////
-
-
-/**
- * A point is a region that is special in that it represents a single point on 
- * the grid.
- * @namespace YAHOO.util
- * @class Point
- * @param {Int} x The X position of the point
- * @param {Int} y The Y position of the point
- * @constructor
- * @extends YAHOO.util.Region
- */
-YAHOO.util.Point = function(x, y) {
-   if (YAHOO.lang.isArray(x)) { // accept input from Dom.getXY, Event.getXY, etc.
-      y = x[1]; // dont blow away x yet
-      x = x[0];
-   }
-    YAHOO.util.Point.superclass.constructor.call(this, y, x, y, x);
-};
-
-YAHOO.extend(YAHOO.util.Point, YAHOO.util.Region);
-
-(function() {
-/**
- * Add style management functionality to DOM.
- * @module dom
- * @for Dom
- */
-
-var Y = YAHOO.util, 
-    CLIENT_TOP = 'clientTop',
-    CLIENT_LEFT = 'clientLeft',
-    PARENT_NODE = 'parentNode',
-    RIGHT = 'right',
-    HAS_LAYOUT = 'hasLayout',
-    PX = 'px',
-    OPACITY = 'opacity',
-    AUTO = 'auto',
-    BORDER_LEFT_WIDTH = 'borderLeftWidth',
-    BORDER_TOP_WIDTH = 'borderTopWidth',
-    BORDER_RIGHT_WIDTH = 'borderRightWidth',
-    BORDER_BOTTOM_WIDTH = 'borderBottomWidth',
-    VISIBLE = 'visible',
-    TRANSPARENT = 'transparent',
-    HEIGHT = 'height',
-    WIDTH = 'width',
-    STYLE = 'style',
-    CURRENT_STYLE = 'currentStyle',
-
-// IE getComputedStyle
-// TODO: unit-less lineHeight (e.g. 1.22)
-    re_size = /^width|height$/,
-    re_unit = /^(\d[.\d]*)+(em|ex|px|gd|rem|vw|vh|vm|ch|mm|cm|in|pt|pc|deg|rad|ms|s|hz|khz|%){1}?/i,
-
-    ComputedStyle = {
-        get: function(el, property) {
-            var value = '',
-                current = el[CURRENT_STYLE][property];
-
-            if (property === OPACITY) {
-                value = Y.Dom.getStyle(el, OPACITY);        
-            } else if (!current || (current.indexOf && current.indexOf(PX) > -1)) { // no need to convert
-                value = current;
-            } else if (Y.Dom.IE_COMPUTED[property]) { // use compute function
-                value = Y.Dom.IE_COMPUTED[property](el, property);
-            } else if (re_unit.test(current)) { // convert to pixel
-                value = Y.Dom.IE.ComputedStyle.getPixel(el, property);
-            } else {
-                value = current;
-            }
-
-            return value;
-        },
-
-        getOffset: function(el, prop) {
-            var current = el[CURRENT_STYLE][prop],                        // value of "width", "top", etc.
-                capped = prop.charAt(0).toUpperCase() + prop.substr(1), // "Width", "Top", etc.
-                offset = 'offset' + capped,                             // "offsetWidth", "offsetTop", etc.
-                pixel = 'pixel' + capped,                               // "pixelWidth", "pixelTop", etc.
-                value = '',
-                actual;
-
-            if (current == AUTO) {
-                actual = el[offset]; // offsetHeight/Top etc.
-                if (actual === undefined) { // likely "right" or "bottom"
-                    value = 0;
-                }
-
-                value = actual;
-                if (re_size.test(prop)) { // account for box model diff 
-                    el[STYLE][prop] = actual; 
-                    if (el[offset] > actual) {
-                        // the difference is padding + border (works in Standards & Quirks modes)
-                        value = actual - (el[offset] - actual);
-                    }
-                    el[STYLE][prop] = AUTO; // revert to auto
-                }
-            } else { // convert units to px
-                if (!el[STYLE][pixel] && !el[STYLE][prop]) { // need to map style.width to currentStyle (no currentStyle.pixelWidth)
-                    el[STYLE][prop] = current;              // no style.pixelWidth if no style.width
-                }
-                value = el[STYLE][pixel];
-            }
-            return value + PX;
-        },
-
-        getBorderWidth: function(el, property) {
-            // clientHeight/Width = paddingBox (e.g. offsetWidth - borderWidth)
-            // clientTop/Left = borderWidth
-            var value = null;
-            if (!el[CURRENT_STYLE][HAS_LAYOUT]) { // TODO: unset layout?
-                el[STYLE].zoom = 1; // need layout to measure client
-            }
-
-            switch(property) {
-                case BORDER_TOP_WIDTH:
-                    value = el[CLIENT_TOP];
-                    break;
-                case BORDER_BOTTOM_WIDTH:
-                    value = el.offsetHeight - el.clientHeight - el[CLIENT_TOP];
-                    break;
-                case BORDER_LEFT_WIDTH:
-                    value = el[CLIENT_LEFT];
-                    break;
-                case BORDER_RIGHT_WIDTH:
-                    value = el.offsetWidth - el.clientWidth - el[CLIENT_LEFT];
-                    break;
-            }
-            return value + PX;
-        },
-
-        getPixel: function(node, att) {
-            // use pixelRight to convert to px
-            var val = null,
-                styleRight = node[CURRENT_STYLE][RIGHT],
-                current = node[CURRENT_STYLE][att];
-
-            node[STYLE][RIGHT] = current;
-            val = node[STYLE].pixelRight;
-            node[STYLE][RIGHT] = styleRight; // revert
-
-            return val + PX;
-        },
-
-        getMargin: function(node, att) {
-            var val;
-            if (node[CURRENT_STYLE][att] == AUTO) {
-                val = 0 + PX;
-            } else {
-                val = Y.Dom.IE.ComputedStyle.getPixel(node, att);
-            }
-            return val;
-        },
-
-        getVisibility: function(node, att) {
-            var current;
-            while ( (current = node[CURRENT_STYLE]) && current[att] == 'inherit') { // NOTE: assignment in test
-                node = node[PARENT_NODE];
-            }
-            return (current) ? current[att] : VISIBLE;
-        },
-
-        getColor: function(node, att) {
-            return Y.Dom.Color.toRGB(node[CURRENT_STYLE][att]) || TRANSPARENT;
-        },
-
-        getBorderColor: function(node, att) {
-            var current = node[CURRENT_STYLE],
-                val = current[att] || current.color;
-            return Y.Dom.Color.toRGB(Y.Dom.Color.toHex(val));
-        }
-
-    },
-
-//fontSize: getPixelFont,
-    IEComputed = {};
-
-IEComputed.top = IEComputed.right = IEComputed.bottom = IEComputed.left = 
-        IEComputed[WIDTH] = IEComputed[HEIGHT] = ComputedStyle.getOffset;
-
-IEComputed.color = ComputedStyle.getColor;
-
-IEComputed[BORDER_TOP_WIDTH] = IEComputed[BORDER_RIGHT_WIDTH] =
-        IEComputed[BORDER_BOTTOM_WIDTH] = IEComputed[BORDER_LEFT_WIDTH] =
-        ComputedStyle.getBorderWidth;
-
-IEComputed.marginTop = IEComputed.marginRight = IEComputed.marginBottom =
-        IEComputed.marginLeft = ComputedStyle.getMargin;
-
-IEComputed.visibility = ComputedStyle.getVisibility;
-IEComputed.borderColor = IEComputed.borderTopColor =
-        IEComputed.borderRightColor = IEComputed.borderBottomColor =
-        IEComputed.borderLeftColor = ComputedStyle.getBorderColor;
-
-Y.Dom.IE_COMPUTED = IEComputed;
-Y.Dom.IE_ComputedStyle = ComputedStyle;
-})();
-(function() {
-/**
- * Add style management functionality to DOM.
- * @module dom
- * @for Dom
- */
-
-var TO_STRING = 'toString',
-    PARSE_INT = parseInt,
-    RE = RegExp,
-    Y = YAHOO.util;
-
-Y.Dom.Color = {
-    KEYWORDS: {
-        black: '000',
-        silver: 'c0c0c0',
-        gray: '808080',
-        white: 'fff',
-        maroon: '800000',
-        red: 'f00',
-        purple: '800080',
-        fuchsia: 'f0f',
-        green: '008000',
-        lime: '0f0',
-        olive: '808000',
-        yellow: 'ff0',
-        navy: '000080',
-        blue: '00f',
-        teal: '008080',
-        aqua: '0ff'
-    },
-
-    re_RGB: /^rgb\(([0-9]+)\s*,\s*([0-9]+)\s*,\s*([0-9]+)\)$/i,
-    re_hex: /^#?([0-9A-F]{2})([0-9A-F]{2})([0-9A-F]{2})$/i,
-    re_hex3: /([0-9A-F])/gi,
-
-    toRGB: function(val) {
-        if (!Y.Dom.Color.re_RGB.test(val)) {
-            val = Y.Dom.Color.toHex(val);
-        }
-
-        if(Y.Dom.Color.re_hex.exec(val)) {
-            val = 'rgb(' + [
-                PARSE_INT(RE.$1, 16),
-                PARSE_INT(RE.$2, 16),
-                PARSE_INT(RE.$3, 16)
-            ].join(', ') + ')';
-        }
-        return val;
-    },
-
-    toHex: function(val) {
-        val = Y.Dom.Color.KEYWORDS[val] || val;
-        if (Y.Dom.Color.re_RGB.exec(val)) {
-            var r = (RE.$1.length === 1) ? '0' + RE.$1 : Number(RE.$1),
-                g = (RE.$2.length === 1) ? '0' + RE.$2 : Number(RE.$2),
-                b = (RE.$3.length === 1) ? '0' + RE.$3 : Number(RE.$3);
-
-            val = [
-                r[TO_STRING](16),
-                g[TO_STRING](16),
-                b[TO_STRING](16)
-            ].join('');
-        }
-
-        if (val.length < 6) {
-            val = val.replace(Y.Dom.Color.re_hex3, '$1$1');
-        }
-
-        if (val !== 'transparent' && val.indexOf('#') < 0) {
-            val = '#' + val;
-        }
-
-        return val.toLowerCase();
-    }
-};
-}());
-YAHOO.register("dom", YAHOO.util.Dom, {version: "2.8.0r4", build: "2449"});
diff --git a/koha-tmpl/intranet-tmpl/prog/en/lib/yui/dom/dom-min.js b/koha-tmpl/intranet-tmpl/prog/en/lib/yui/dom/dom-min.js
deleted file mode 100644 (file)
index 3ba4b89..0000000
+++ /dev/null
@@ -1,9 +0,0 @@
-/*
-Copyright (c) 2009, Yahoo! Inc. All rights reserved.
-Code licensed under the BSD License:
-http://developer.yahoo.net/yui/license.txt
-version: 2.8.0r4
-*/
-(function(){YAHOO.env._id_counter=YAHOO.env._id_counter||0;var E=YAHOO.util,L=YAHOO.lang,m=YAHOO.env.ua,A=YAHOO.lang.trim,d={},h={},N=/^t(?:able|d|h)$/i,X=/color$/i,K=window.document,W=K.documentElement,e="ownerDocument",n="defaultView",v="documentElement",t="compatMode",b="offsetLeft",P="offsetTop",u="offsetParent",Z="parentNode",l="nodeType",C="tagName",O="scrollLeft",i="scrollTop",Q="getBoundingClientRect",w="getComputedStyle",a="currentStyle",M="CSS1Compat",c="BackCompat",g="class",F="className",J="",B=" ",s="(?:^|\\s)",k="(?= |$)",U="g",p="position",f="fixed",V="relative",j="left",o="top",r="medium",q="borderLeftWidth",R="borderTopWidth",D=m.opera,I=m.webkit,H=m.gecko,T=m.ie;E.Dom={CUSTOM_ATTRIBUTES:(!W.hasAttribute)?{"for":"htmlFor","class":F}:{"htmlFor":"for","className":g},DOT_ATTRIBUTES:{},get:function(z){var AB,x,AA,y,Y,G;if(z){if(z[l]||z.item){return z;}if(typeof z==="string"){AB=z;z=K.getElementById(z);G=(z)?z.attributes:null;if(z&&G&&G.id&&G.id.value===AB){return z;}else{if(z&&K.all){z=null;x=K.all[AB];for(y=0,Y=x.length;y<Y;++y){if(x[y].id===AB){return x[y];}}}}return z;}if(YAHOO.util.Element&&z instanceof YAHOO.util.Element){z=z.get("element");}if("length" in z){AA=[];for(y=0,Y=z.length;y<Y;++y){AA[AA.length]=E.Dom.get(z[y]);}return AA;}return z;}return null;},getComputedStyle:function(G,Y){if(window[w]){return G[e][n][w](G,null)[Y];}else{if(G[a]){return E.Dom.IE_ComputedStyle.get(G,Y);}}},getStyle:function(G,Y){return E.Dom.batch(G,E.Dom._getStyle,Y);},_getStyle:function(){if(window[w]){return function(G,y){y=(y==="float")?y="cssFloat":E.Dom._toCamel(y);var x=G.style[y],Y;if(!x){Y=G[e][n][w](G,null);if(Y){x=Y[y];}}return x;};}else{if(W[a]){return function(G,y){var x;switch(y){case"opacity":x=100;try{x=G.filters["DXImageTransform.Microsoft.Alpha"].opacity;}catch(z){try{x=G.filters("alpha").opacity;}catch(Y){}}return x/100;case"float":y="styleFloat";default:y=E.Dom._toCamel(y);x=G[a]?G[a][y]:null;return(G.style[y]||x);}};}}}(),setStyle:function(G,Y,x){E.Dom.batch(G,E.Dom._setStyle,{prop:Y,val:x});},_setStyle:function(){if(T){return function(Y,G){var x=E.Dom._toCamel(G.prop),y=G.val;if(Y){switch(x){case"opacity":if(L.isString(Y.style.filter)){Y.style.filter="alpha(opacity="+y*100+")";if(!Y[a]||!Y[a].hasLayout){Y.style.zoom=1;}}break;case"float":x="styleFloat";default:Y.style[x]=y;}}else{}};}else{return function(Y,G){var x=E.Dom._toCamel(G.prop),y=G.val;if(Y){if(x=="float"){x="cssFloat";}Y.style[x]=y;}else{}};}}(),getXY:function(G){return E.Dom.batch(G,E.Dom._getXY);},_canPosition:function(G){return(E.Dom._getStyle(G,"display")!=="none"&&E.Dom._inDoc(G));},_getXY:function(){if(K[v][Q]){return function(y){var z,Y,AA,AF,AE,AD,AC,G,x,AB=Math.floor,AG=false;if(E.Dom._canPosition(y)){AA=y[Q]();AF=y[e];z=E.Dom.getDocumentScrollLeft(AF);Y=E.Dom.getDocumentScrollTop(AF);AG=[AB(AA[j]),AB(AA[o])];if(T&&m.ie<8){AE=2;AD=2;AC=AF[t];if(m.ie===6){if(AC!==c){AE=0;AD=0;}}if((AC===c)){G=S(AF[v],q);x=S(AF[v],R);if(G!==r){AE=parseInt(G,10);}if(x!==r){AD=parseInt(x,10);}}AG[0]-=AE;AG[1]-=AD;}if((Y||z)){AG[0]+=z;AG[1]+=Y;}AG[0]=AB(AG[0]);AG[1]=AB(AG[1]);}else{}return AG;};}else{return function(y){var x,Y,AA,AB,AC,z=false,G=y;if(E.Dom._canPosition(y)){z=[y[b],y[P]];x=E.Dom.getDocumentScrollLeft(y[e]);Y=E.Dom.getDocumentScrollTop(y[e]);AC=((H||m.webkit>519)?true:false);while((G=G[u])){z[0]+=G[b];z[1]+=G[P];if(AC){z=E.Dom._calcBorders(G,z);}}if(E.Dom._getStyle(y,p)!==f){G=y;while((G=G[Z])&&G[C]){AA=G[i];AB=G[O];if(H&&(E.Dom._getStyle(G,"overflow")!=="visible")){z=E.Dom._calcBorders(G,z);}if(AA||AB){z[0]-=AB;z[1]-=AA;}}z[0]+=x;z[1]+=Y;}else{if(D){z[0]-=x;z[1]-=Y;}else{if(I||H){z[0]+=x;z[1]+=Y;}}}z[0]=Math.floor(z[0]);z[1]=Math.floor(z[1]);}else{}return z;};}}(),getX:function(G){var Y=function(x){return E.Dom.getXY(x)[0];};return E.Dom.batch(G,Y,E.Dom,true);},getY:function(G){var Y=function(x){return E.Dom.getXY(x)[1];};return E.Dom.batch(G,Y,E.Dom,true);},setXY:function(G,x,Y){E.Dom.batch(G,E.Dom._setXY,{pos:x,noRetry:Y});},_setXY:function(G,z){var AA=E.Dom._getStyle(G,p),y=E.Dom.setStyle,AD=z.pos,Y=z.noRetry,AB=[parseInt(E.Dom.getComputedStyle(G,j),10),parseInt(E.Dom.getComputedStyle(G,o),10)],AC,x;if(AA=="static"){AA=V;y(G,p,AA);}AC=E.Dom._getXY(G);if(!AD||AC===false){return false;}if(isNaN(AB[0])){AB[0]=(AA==V)?0:G[b];}if(isNaN(AB[1])){AB[1]=(AA==V)?0:G[P];}if(AD[0]!==null){y(G,j,AD[0]-AC[0]+AB[0]+"px");}if(AD[1]!==null){y(G,o,AD[1]-AC[1]+AB[1]+"px");}if(!Y){x=E.Dom._getXY(G);if((AD[0]!==null&&x[0]!=AD[0])||(AD[1]!==null&&x[1]!=AD[1])){E.Dom._setXY(G,{pos:AD,noRetry:true});}}},setX:function(Y,G){E.Dom.setXY(Y,[G,null]);},setY:function(G,Y){E.Dom.setXY(G,[null,Y]);},getRegion:function(G){var Y=function(x){var y=false;if(E.Dom._canPosition(x)){y=E.Region.getRegion(x);}else{}return y;};return E.Dom.batch(G,Y,E.Dom,true);},getClientWidth:function(){return E.Dom.getViewportWidth();},getClientHeight:function(){return E.Dom.getViewportHeight();},getElementsByClassName:function(AB,AF,AC,AE,x,AD){AF=AF||"*";AC=(AC)?E.Dom.get(AC):null||K;if(!AC){return[];}var Y=[],G=AC.getElementsByTagName(AF),z=E.Dom.hasClass;for(var y=0,AA=G.length;y<AA;++y){if(z(G[y],AB)){Y[Y.length]=G[y];}}if(AE){E.Dom.batch(Y,AE,x,AD);}return Y;},hasClass:function(Y,G){return E.Dom.batch(Y,E.Dom._hasClass,G);},_hasClass:function(x,Y){var G=false,y;if(x&&Y){y=E.Dom._getAttribute(x,F)||J;if(Y.exec){G=Y.test(y);}else{G=Y&&(B+y+B).indexOf(B+Y+B)>-1;}}else{}return G;},addClass:function(Y,G){return E.Dom.batch(Y,E.Dom._addClass,G);},_addClass:function(x,Y){var G=false,y;if(x&&Y){y=E.Dom._getAttribute(x,F)||J;if(!E.Dom._hasClass(x,Y)){E.Dom.setAttribute(x,F,A(y+B+Y));G=true;}}else{}return G;},removeClass:function(Y,G){return E.Dom.batch(Y,E.Dom._removeClass,G);},_removeClass:function(y,x){var Y=false,AA,z,G;if(y&&x){AA=E.Dom._getAttribute(y,F)||J;E.Dom.setAttribute(y,F,AA.replace(E.Dom._getClassRegex(x),J));z=E.Dom._getAttribute(y,F);if(AA!==z){E.Dom.setAttribute(y,F,A(z));Y=true;if(E.Dom._getAttribute(y,F)===""){G=(y.hasAttribute&&y.hasAttribute(g))?g:F;
-y.removeAttribute(G);}}}else{}return Y;},replaceClass:function(x,Y,G){return E.Dom.batch(x,E.Dom._replaceClass,{from:Y,to:G});},_replaceClass:function(y,x){var Y,AB,AA,G=false,z;if(y&&x){AB=x.from;AA=x.to;if(!AA){G=false;}else{if(!AB){G=E.Dom._addClass(y,x.to);}else{if(AB!==AA){z=E.Dom._getAttribute(y,F)||J;Y=(B+z.replace(E.Dom._getClassRegex(AB),B+AA)).split(E.Dom._getClassRegex(AA));Y.splice(1,0,B+AA);E.Dom.setAttribute(y,F,A(Y.join(J)));G=true;}}}}else{}return G;},generateId:function(G,x){x=x||"yui-gen";var Y=function(y){if(y&&y.id){return y.id;}var z=x+YAHOO.env._id_counter++;if(y){if(y[e]&&y[e].getElementById(z)){return E.Dom.generateId(y,z+x);}y.id=z;}return z;};return E.Dom.batch(G,Y,E.Dom,true)||Y.apply(E.Dom,arguments);},isAncestor:function(Y,x){Y=E.Dom.get(Y);x=E.Dom.get(x);var G=false;if((Y&&x)&&(Y[l]&&x[l])){if(Y.contains&&Y!==x){G=Y.contains(x);}else{if(Y.compareDocumentPosition){G=!!(Y.compareDocumentPosition(x)&16);}}}else{}return G;},inDocument:function(G,Y){return E.Dom._inDoc(E.Dom.get(G),Y);},_inDoc:function(Y,x){var G=false;if(Y&&Y[C]){x=x||Y[e];G=E.Dom.isAncestor(x[v],Y);}else{}return G;},getElementsBy:function(Y,AF,AB,AD,y,AC,AE){AF=AF||"*";AB=(AB)?E.Dom.get(AB):null||K;if(!AB){return[];}var x=[],G=AB.getElementsByTagName(AF);for(var z=0,AA=G.length;z<AA;++z){if(Y(G[z])){if(AE){x=G[z];break;}else{x[x.length]=G[z];}}}if(AD){E.Dom.batch(x,AD,y,AC);}return x;},getElementBy:function(x,G,Y){return E.Dom.getElementsBy(x,G,Y,null,null,null,true);},batch:function(x,AB,AA,z){var y=[],Y=(z)?AA:window;x=(x&&(x[C]||x.item))?x:E.Dom.get(x);if(x&&AB){if(x[C]||x.length===undefined){return AB.call(Y,x,AA);}for(var G=0;G<x.length;++G){y[y.length]=AB.call(Y,x[G],AA);}}else{return false;}return y;},getDocumentHeight:function(){var Y=(K[t]!=M||I)?K.body.scrollHeight:W.scrollHeight,G=Math.max(Y,E.Dom.getViewportHeight());return G;},getDocumentWidth:function(){var Y=(K[t]!=M||I)?K.body.scrollWidth:W.scrollWidth,G=Math.max(Y,E.Dom.getViewportWidth());return G;},getViewportHeight:function(){var G=self.innerHeight,Y=K[t];if((Y||T)&&!D){G=(Y==M)?W.clientHeight:K.body.clientHeight;}return G;},getViewportWidth:function(){var G=self.innerWidth,Y=K[t];if(Y||T){G=(Y==M)?W.clientWidth:K.body.clientWidth;}return G;},getAncestorBy:function(G,Y){while((G=G[Z])){if(E.Dom._testElement(G,Y)){return G;}}return null;},getAncestorByClassName:function(Y,G){Y=E.Dom.get(Y);if(!Y){return null;}var x=function(y){return E.Dom.hasClass(y,G);};return E.Dom.getAncestorBy(Y,x);},getAncestorByTagName:function(Y,G){Y=E.Dom.get(Y);if(!Y){return null;}var x=function(y){return y[C]&&y[C].toUpperCase()==G.toUpperCase();};return E.Dom.getAncestorBy(Y,x);},getPreviousSiblingBy:function(G,Y){while(G){G=G.previousSibling;if(E.Dom._testElement(G,Y)){return G;}}return null;},getPreviousSibling:function(G){G=E.Dom.get(G);if(!G){return null;}return E.Dom.getPreviousSiblingBy(G);},getNextSiblingBy:function(G,Y){while(G){G=G.nextSibling;if(E.Dom._testElement(G,Y)){return G;}}return null;},getNextSibling:function(G){G=E.Dom.get(G);if(!G){return null;}return E.Dom.getNextSiblingBy(G);},getFirstChildBy:function(G,x){var Y=(E.Dom._testElement(G.firstChild,x))?G.firstChild:null;return Y||E.Dom.getNextSiblingBy(G.firstChild,x);},getFirstChild:function(G,Y){G=E.Dom.get(G);if(!G){return null;}return E.Dom.getFirstChildBy(G);},getLastChildBy:function(G,x){if(!G){return null;}var Y=(E.Dom._testElement(G.lastChild,x))?G.lastChild:null;return Y||E.Dom.getPreviousSiblingBy(G.lastChild,x);},getLastChild:function(G){G=E.Dom.get(G);return E.Dom.getLastChildBy(G);},getChildrenBy:function(Y,y){var x=E.Dom.getFirstChildBy(Y,y),G=x?[x]:[];E.Dom.getNextSiblingBy(x,function(z){if(!y||y(z)){G[G.length]=z;}return false;});return G;},getChildren:function(G){G=E.Dom.get(G);if(!G){}return E.Dom.getChildrenBy(G);},getDocumentScrollLeft:function(G){G=G||K;return Math.max(G[v].scrollLeft,G.body.scrollLeft);},getDocumentScrollTop:function(G){G=G||K;return Math.max(G[v].scrollTop,G.body.scrollTop);},insertBefore:function(Y,G){Y=E.Dom.get(Y);G=E.Dom.get(G);if(!Y||!G||!G[Z]){return null;}return G[Z].insertBefore(Y,G);},insertAfter:function(Y,G){Y=E.Dom.get(Y);G=E.Dom.get(G);if(!Y||!G||!G[Z]){return null;}if(G.nextSibling){return G[Z].insertBefore(Y,G.nextSibling);}else{return G[Z].appendChild(Y);}},getClientRegion:function(){var x=E.Dom.getDocumentScrollTop(),Y=E.Dom.getDocumentScrollLeft(),y=E.Dom.getViewportWidth()+Y,G=E.Dom.getViewportHeight()+x;return new E.Region(x,y,G,Y);},setAttribute:function(Y,G,x){E.Dom.batch(Y,E.Dom._setAttribute,{attr:G,val:x});},_setAttribute:function(x,Y){var G=E.Dom._toCamel(Y.attr),y=Y.val;if(x&&x.setAttribute){if(E.Dom.DOT_ATTRIBUTES[G]){x[G]=y;}else{G=E.Dom.CUSTOM_ATTRIBUTES[G]||G;x.setAttribute(G,y);}}else{}},getAttribute:function(Y,G){return E.Dom.batch(Y,E.Dom._getAttribute,G);},_getAttribute:function(Y,G){var x;G=E.Dom.CUSTOM_ATTRIBUTES[G]||G;if(Y&&Y.getAttribute){x=Y.getAttribute(G,2);}else{}return x;},_toCamel:function(Y){var x=d;function G(y,z){return z.toUpperCase();}return x[Y]||(x[Y]=Y.indexOf("-")===-1?Y:Y.replace(/-([a-z])/gi,G));},_getClassRegex:function(Y){var G;if(Y!==undefined){if(Y.exec){G=Y;}else{G=h[Y];if(!G){Y=Y.replace(E.Dom._patterns.CLASS_RE_TOKENS,"\\$1");G=h[Y]=new RegExp(s+Y+k,U);}}}return G;},_patterns:{ROOT_TAG:/^body|html$/i,CLASS_RE_TOKENS:/([\.\(\)\^\$\*\+\?\|\[\]\{\}\\])/g},_testElement:function(G,Y){return G&&G[l]==1&&(!Y||Y(G));},_calcBorders:function(x,y){var Y=parseInt(E.Dom[w](x,R),10)||0,G=parseInt(E.Dom[w](x,q),10)||0;if(H){if(N.test(x[C])){Y=0;G=0;}}y[0]+=G;y[1]+=Y;return y;}};var S=E.Dom[w];if(m.opera){E.Dom[w]=function(Y,G){var x=S(Y,G);if(X.test(G)){x=E.Dom.Color.toRGB(x);}return x;};}if(m.webkit){E.Dom[w]=function(Y,G){var x=S(Y,G);if(x==="rgba(0, 0, 0, 0)"){x="transparent";}return x;};}if(m.ie&&m.ie>=8&&K.documentElement.hasAttribute){E.Dom.DOT_ATTRIBUTES.type=true;}})();YAHOO.util.Region=function(C,D,A,B){this.top=C;this.y=C;this[1]=C;this.right=D;this.bottom=A;this.left=B;this.x=B;this[0]=B;
-this.width=this.right-this.left;this.height=this.bottom-this.top;};YAHOO.util.Region.prototype.contains=function(A){return(A.left>=this.left&&A.right<=this.right&&A.top>=this.top&&A.bottom<=this.bottom);};YAHOO.util.Region.prototype.getArea=function(){return((this.bottom-this.top)*(this.right-this.left));};YAHOO.util.Region.prototype.intersect=function(E){var C=Math.max(this.top,E.top),D=Math.min(this.right,E.right),A=Math.min(this.bottom,E.bottom),B=Math.max(this.left,E.left);if(A>=C&&D>=B){return new YAHOO.util.Region(C,D,A,B);}else{return null;}};YAHOO.util.Region.prototype.union=function(E){var C=Math.min(this.top,E.top),D=Math.max(this.right,E.right),A=Math.max(this.bottom,E.bottom),B=Math.min(this.left,E.left);return new YAHOO.util.Region(C,D,A,B);};YAHOO.util.Region.prototype.toString=function(){return("Region {"+"top: "+this.top+", right: "+this.right+", bottom: "+this.bottom+", left: "+this.left+", height: "+this.height+", width: "+this.width+"}");};YAHOO.util.Region.getRegion=function(D){var F=YAHOO.util.Dom.getXY(D),C=F[1],E=F[0]+D.offsetWidth,A=F[1]+D.offsetHeight,B=F[0];return new YAHOO.util.Region(C,E,A,B);};YAHOO.util.Point=function(A,B){if(YAHOO.lang.isArray(A)){B=A[1];A=A[0];}YAHOO.util.Point.superclass.constructor.call(this,B,A,B,A);};YAHOO.extend(YAHOO.util.Point,YAHOO.util.Region);(function(){var B=YAHOO.util,A="clientTop",F="clientLeft",J="parentNode",K="right",W="hasLayout",I="px",U="opacity",L="auto",D="borderLeftWidth",G="borderTopWidth",P="borderRightWidth",V="borderBottomWidth",S="visible",Q="transparent",N="height",E="width",H="style",T="currentStyle",R=/^width|height$/,O=/^(\d[.\d]*)+(em|ex|px|gd|rem|vw|vh|vm|ch|mm|cm|in|pt|pc|deg|rad|ms|s|hz|khz|%){1}?/i,M={get:function(X,Z){var Y="",a=X[T][Z];if(Z===U){Y=B.Dom.getStyle(X,U);}else{if(!a||(a.indexOf&&a.indexOf(I)>-1)){Y=a;}else{if(B.Dom.IE_COMPUTED[Z]){Y=B.Dom.IE_COMPUTED[Z](X,Z);}else{if(O.test(a)){Y=B.Dom.IE.ComputedStyle.getPixel(X,Z);}else{Y=a;}}}}return Y;},getOffset:function(Z,e){var b=Z[T][e],X=e.charAt(0).toUpperCase()+e.substr(1),c="offset"+X,Y="pixel"+X,a="",d;if(b==L){d=Z[c];if(d===undefined){a=0;}a=d;if(R.test(e)){Z[H][e]=d;if(Z[c]>d){a=d-(Z[c]-d);}Z[H][e]=L;}}else{if(!Z[H][Y]&&!Z[H][e]){Z[H][e]=b;}a=Z[H][Y];}return a+I;},getBorderWidth:function(X,Z){var Y=null;if(!X[T][W]){X[H].zoom=1;}switch(Z){case G:Y=X[A];break;case V:Y=X.offsetHeight-X.clientHeight-X[A];break;case D:Y=X[F];break;case P:Y=X.offsetWidth-X.clientWidth-X[F];break;}return Y+I;},getPixel:function(Y,X){var a=null,b=Y[T][K],Z=Y[T][X];Y[H][K]=Z;a=Y[H].pixelRight;Y[H][K]=b;return a+I;},getMargin:function(Y,X){var Z;if(Y[T][X]==L){Z=0+I;}else{Z=B.Dom.IE.ComputedStyle.getPixel(Y,X);}return Z;},getVisibility:function(Y,X){var Z;while((Z=Y[T])&&Z[X]=="inherit"){Y=Y[J];}return(Z)?Z[X]:S;},getColor:function(Y,X){return B.Dom.Color.toRGB(Y[T][X])||Q;},getBorderColor:function(Y,X){var Z=Y[T],a=Z[X]||Z.color;return B.Dom.Color.toRGB(B.Dom.Color.toHex(a));}},C={};C.top=C.right=C.bottom=C.left=C[E]=C[N]=M.getOffset;C.color=M.getColor;C[G]=C[P]=C[V]=C[D]=M.getBorderWidth;C.marginTop=C.marginRight=C.marginBottom=C.marginLeft=M.getMargin;C.visibility=M.getVisibility;C.borderColor=C.borderTopColor=C.borderRightColor=C.borderBottomColor=C.borderLeftColor=M.getBorderColor;B.Dom.IE_COMPUTED=C;B.Dom.IE_ComputedStyle=M;})();(function(){var C="toString",A=parseInt,B=RegExp,D=YAHOO.util;D.Dom.Color={KEYWORDS:{black:"000",silver:"c0c0c0",gray:"808080",white:"fff",maroon:"800000",red:"f00",purple:"800080",fuchsia:"f0f",green:"008000",lime:"0f0",olive:"808000",yellow:"ff0",navy:"000080",blue:"00f",teal:"008080",aqua:"0ff"},re_RGB:/^rgb\(([0-9]+)\s*,\s*([0-9]+)\s*,\s*([0-9]+)\)$/i,re_hex:/^#?([0-9A-F]{2})([0-9A-F]{2})([0-9A-F]{2})$/i,re_hex3:/([0-9A-F])/gi,toRGB:function(E){if(!D.Dom.Color.re_RGB.test(E)){E=D.Dom.Color.toHex(E);}if(D.Dom.Color.re_hex.exec(E)){E="rgb("+[A(B.$1,16),A(B.$2,16),A(B.$3,16)].join(", ")+")";}return E;},toHex:function(H){H=D.Dom.Color.KEYWORDS[H]||H;if(D.Dom.Color.re_RGB.exec(H)){var G=(B.$1.length===1)?"0"+B.$1:Number(B.$1),F=(B.$2.length===1)?"0"+B.$2:Number(B.$2),E=(B.$3.length===1)?"0"+B.$3:Number(B.$3);H=[G[C](16),F[C](16),E[C](16)].join("");}if(H.length<6){H=H.replace(D.Dom.Color.re_hex3,"$1$1");}if(H!=="transparent"&&H.indexOf("#")<0){H="#"+H;}return H.toLowerCase();}};}());YAHOO.register("dom",YAHOO.util.Dom,{version:"2.8.0r4",build:"2449"});
\ No newline at end of file
diff --git a/koha-tmpl/intranet-tmpl/prog/en/lib/yui/dom/dom.js b/koha-tmpl/intranet-tmpl/prog/en/lib/yui/dom/dom.js
deleted file mode 100644 (file)
index 82f809b..0000000
+++ /dev/null
@@ -1,1832 +0,0 @@
-/*
-Copyright (c) 2009, Yahoo! Inc. All rights reserved.
-Code licensed under the BSD License:
-http://developer.yahoo.net/yui/license.txt
-version: 2.8.0r4
-*/
-/**
- * The dom module provides helper methods for manipulating Dom elements.
- * @module dom
- *
- */
-
-(function() {
-    // for use with generateId (global to save state if Dom is overwritten)
-    YAHOO.env._id_counter = YAHOO.env._id_counter || 0;
-
-    // internal shorthand
-    var Y = YAHOO.util,
-        lang = YAHOO.lang,
-        UA = YAHOO.env.ua,
-        trim = YAHOO.lang.trim,
-        propertyCache = {}, // for faster hyphen converts
-        reCache = {}, // cache className regexes
-        RE_TABLE = /^t(?:able|d|h)$/i, // for _calcBorders
-        RE_COLOR = /color$/i,
-
-        // DOM aliases 
-        document = window.document,     
-        documentElement = document.documentElement,
-
-        // string constants
-        OWNER_DOCUMENT = 'ownerDocument',
-        DEFAULT_VIEW = 'defaultView',
-        DOCUMENT_ELEMENT = 'documentElement',
-        COMPAT_MODE = 'compatMode',
-        OFFSET_LEFT = 'offsetLeft',
-        OFFSET_TOP = 'offsetTop',
-        OFFSET_PARENT = 'offsetParent',
-        PARENT_NODE = 'parentNode',
-        NODE_TYPE = 'nodeType',
-        TAG_NAME = 'tagName',
-        SCROLL_LEFT = 'scrollLeft',
-        SCROLL_TOP = 'scrollTop',
-        GET_BOUNDING_CLIENT_RECT = 'getBoundingClientRect',
-        GET_COMPUTED_STYLE = 'getComputedStyle',
-        CURRENT_STYLE = 'currentStyle',
-        CSS1_COMPAT = 'CSS1Compat',
-        _BACK_COMPAT = 'BackCompat',
-        _CLASS = 'class', // underscore due to reserved word
-        CLASS_NAME = 'className',
-        EMPTY = '',
-        SPACE = ' ',
-        C_START = '(?:^|\\s)',
-        C_END = '(?= |$)',
-        G = 'g',
-        POSITION = 'position',
-        FIXED = 'fixed',
-        RELATIVE = 'relative',
-        LEFT = 'left',
-        TOP = 'top',
-        MEDIUM = 'medium',
-        BORDER_LEFT_WIDTH = 'borderLeftWidth',
-        BORDER_TOP_WIDTH = 'borderTopWidth',
-    
-    // brower detection
-        isOpera = UA.opera,
-        isSafari = UA.webkit, 
-        isGecko = UA.gecko, 
-        isIE = UA.ie; 
-    
-    /**
-     * Provides helper methods for DOM elements.
-     * @namespace YAHOO.util
-     * @class Dom
-     * @requires yahoo, event
-     */
-    Y.Dom = {
-        CUSTOM_ATTRIBUTES: (!documentElement.hasAttribute) ? { // IE < 8
-            'for': 'htmlFor',
-            'class': CLASS_NAME
-        } : { // w3c
-            'htmlFor': 'for',
-            'className': _CLASS
-        },
-
-        DOT_ATTRIBUTES: {},
-
-        /**
-         * Returns an HTMLElement reference.
-         * @method get
-         * @param {String | HTMLElement |Array} el Accepts a string to use as an ID for getting a DOM reference, an actual DOM reference, or an Array of IDs and/or HTMLElements.
-         * @return {HTMLElement | Array} A DOM reference to an HTML element or an array of HTMLElements.
-         */
-        get: function(el) {
-            var id, nodes, c, i, len, attr;
-
-            if (el) {
-                if (el[NODE_TYPE] || el.item) { // Node, or NodeList
-                    return el;
-                }
-
-                if (typeof el === 'string') { // id
-                    id = el;
-                    el = document.getElementById(el);
-                    attr = (el) ? el.attributes : null;
-                    if (el && attr && attr.id && attr.id.value === id) { // IE: avoid false match on "name" attribute
-                        return el;
-                    } else if (el && document.all) { // filter by name
-                        el = null;
-                        nodes = document.all[id];
-                        for (i = 0, len = nodes.length; i < len; ++i) {
-                            if (nodes[i].id === id) {
-                                return nodes[i];
-                            }
-                        }
-                    }
-                    return el;
-                }
-                
-                if (YAHOO.util.Element && el instanceof YAHOO.util.Element) {
-                    el = el.get('element');
-                }
-
-                if ('length' in el) { // array-like 
-                    c = [];
-                    for (i = 0, len = el.length; i < len; ++i) {
-                        c[c.length] = Y.Dom.get(el[i]);
-                    }
-                    
-                    return c;
-                }
-
-                return el; // some other object, just pass it back
-            }
-
-            return null;
-        },
-    
-        getComputedStyle: function(el, property) {
-            if (window[GET_COMPUTED_STYLE]) {
-                return el[OWNER_DOCUMENT][DEFAULT_VIEW][GET_COMPUTED_STYLE](el, null)[property];
-            } else if (el[CURRENT_STYLE]) {
-                return Y.Dom.IE_ComputedStyle.get(el, property);
-            }
-        },
-
-        /**
-         * Normalizes currentStyle and ComputedStyle.
-         * @method getStyle
-         * @param {String | HTMLElement |Array} el Accepts a string to use as an ID, an actual DOM reference, or an Array of IDs and/or HTMLElements.
-         * @param {String} property The style property whose value is returned.
-         * @return {String | Array} The current value of the style property for the element(s).
-         */
-        getStyle: function(el, property) {
-            return Y.Dom.batch(el, Y.Dom._getStyle, property);
-        },
-
-        // branching at load instead of runtime
-        _getStyle: function() {
-            if (window[GET_COMPUTED_STYLE]) { // W3C DOM method
-                return function(el, property) {
-                    property = (property === 'float') ? property = 'cssFloat' :
-                            Y.Dom._toCamel(property);
-
-                    var value = el.style[property],
-                        computed;
-                    
-                    if (!value) {
-                        computed = el[OWNER_DOCUMENT][DEFAULT_VIEW][GET_COMPUTED_STYLE](el, null);
-                        if (computed) { // test computed before touching for safari
-                            value = computed[property];
-                        }
-                    }
-                    
-                    return value;
-                };
-            } else if (documentElement[CURRENT_STYLE]) {
-                return function(el, property) {                         
-                    var value;
-
-                    switch(property) {
-                        case 'opacity' :// IE opacity uses filter
-                            value = 100;
-                            try { // will error if no DXImageTransform
-                                value = el.filters['DXImageTransform.Microsoft.Alpha'].opacity;
-
-                            } catch(e) {
-                                try { // make sure its in the document
-                                    value = el.filters('alpha').opacity;
-                                } catch(err) {
-                                }
-                            }
-                            return value / 100;
-                        case 'float': // fix reserved word
-                            property = 'styleFloat'; // fall through
-                        default: 
-                            property = Y.Dom._toCamel(property);
-                            value = el[CURRENT_STYLE] ? el[CURRENT_STYLE][property] : null;
-                            return ( el.style[property] || value );
-                    }
-                };
-            }
-        }(),
-    
-        /**
-         * Wrapper for setting style properties of HTMLElements.  Normalizes "opacity" across modern browsers.
-         * @method setStyle
-         * @param {String | HTMLElement | Array} el Accepts a string to use as an ID, an actual DOM reference, or an Array of IDs and/or HTMLElements.
-         * @param {String} property The style property to be set.
-         * @param {String} val The value to apply to the given property.
-         */
-        setStyle: function(el, property, val) {
-            Y.Dom.batch(el, Y.Dom._setStyle, { prop: property, val: val });
-        },
-
-        _setStyle: function() {
-            if (isIE) {
-                return function(el, args) {
-                    var property = Y.Dom._toCamel(args.prop),
-                        val = args.val;
-
-                    if (el) {
-                        switch (property) {
-                            case 'opacity':
-                                if ( lang.isString(el.style.filter) ) { // in case not appended
-                                    el.style.filter = 'alpha(opacity=' + val * 100 + ')';
-                                    
-                                    if (!el[CURRENT_STYLE] || !el[CURRENT_STYLE].hasLayout) {
-                                        el.style.zoom = 1; // when no layout or cant tell
-                                    }
-                                }
-                                break;
-                            case 'float':
-                                property = 'styleFloat';
-                            default:
-                            el.style[property] = val;
-                        }
-                    } else {
-                    }
-                };
-            } else {
-                return function(el, args) {
-                    var property = Y.Dom._toCamel(args.prop),
-                        val = args.val;
-                    if (el) {
-                        if (property == 'float') {
-                            property = 'cssFloat';
-                        }
-                        el.style[property] = val;
-                    } else {
-                    }
-                };
-            }
-
-        }(),
-        
-        /**
-         * Gets the current position of an element based on page coordinates. 
-         * Element must be part of the DOM tree to have page coordinates (display:none or elements not appended return false).
-         * @method getXY
-         * @param {String | HTMLElement | Array} el Accepts a string to use as an ID, an actual DOM
-         * reference, or an Array of IDs and/or HTMLElements
-         * @return {Array} The XY position of the element(s)
-         */
-        getXY: function(el) {
-            return Y.Dom.batch(el, Y.Dom._getXY);
-        },
-
-        _canPosition: function(el) {
-            return ( Y.Dom._getStyle(el, 'display') !== 'none' && Y.Dom._inDoc(el) );
-        },
-
-        _getXY: function() {
-            if (document[DOCUMENT_ELEMENT][GET_BOUNDING_CLIENT_RECT]) {
-                return function(node) {
-                    var scrollLeft, scrollTop, box, doc,
-                        off1, off2, mode, bLeft, bTop,
-                        floor = Math.floor, // TODO: round?
-                        xy = false;
-
-                    if (Y.Dom._canPosition(node)) {
-                        box = node[GET_BOUNDING_CLIENT_RECT]();
-                        doc = node[OWNER_DOCUMENT];
-                        scrollLeft = Y.Dom.getDocumentScrollLeft(doc);
-                        scrollTop = Y.Dom.getDocumentScrollTop(doc);
-                        xy = [floor(box[LEFT]), floor(box[TOP])];
-
-                        if (isIE && UA.ie < 8) { // IE < 8: viewport off by 2
-                            off1 = 2;
-                            off2 = 2;
-                            mode = doc[COMPAT_MODE];
-
-                            if (UA.ie === 6) {
-                                if (mode !== _BACK_COMPAT) {
-                                    off1 = 0;
-                                    off2 = 0;
-                                }
-                            }
-                            
-                            if ((mode === _BACK_COMPAT)) {
-                                bLeft = _getComputedStyle(doc[DOCUMENT_ELEMENT], BORDER_LEFT_WIDTH);
-                                bTop = _getComputedStyle(doc[DOCUMENT_ELEMENT], BORDER_TOP_WIDTH);
-                                if (bLeft !== MEDIUM) {
-                                    off1 = parseInt(bLeft, 10);
-                                }
-                                if (bTop !== MEDIUM) {
-                                    off2 = parseInt(bTop, 10);
-                                }
-                            }
-                            
-                            xy[0] -= off1;
-                            xy[1] -= off2;
-
-                        }
-
-                        if ((scrollTop || scrollLeft)) {
-                            xy[0] += scrollLeft;
-                            xy[1] += scrollTop;
-                        }
-
-                        // gecko may return sub-pixel (non-int) values
-                        xy[0] = floor(xy[0]);
-                        xy[1] = floor(xy[1]);
-                    } else {
-                    }
-
-                    return xy;
-                };
-            } else {
-                return function(node) { // ff2, safari: manually calculate by crawling up offsetParents
-                    var docScrollLeft, docScrollTop,
-                        scrollTop, scrollLeft,
-                        bCheck,
-                        xy = false,
-                        parentNode = node;
-
-                    if  (Y.Dom._canPosition(node) ) {
-                        xy = [node[OFFSET_LEFT], node[OFFSET_TOP]];
-                        docScrollLeft = Y.Dom.getDocumentScrollLeft(node[OWNER_DOCUMENT]);
-                        docScrollTop = Y.Dom.getDocumentScrollTop(node[OWNER_DOCUMENT]);
-
-                        // TODO: refactor with !! or just falsey
-                        bCheck = ((isGecko || UA.webkit > 519) ? true : false);
-
-                        // TODO: worth refactoring for TOP/LEFT only?
-                        while ((parentNode = parentNode[OFFSET_PARENT])) {
-                            xy[0] += parentNode[OFFSET_LEFT];
-                            xy[1] += parentNode[OFFSET_TOP];
-                            if (bCheck) {
-                                xy = Y.Dom._calcBorders(parentNode, xy);
-                            }
-                        }
-
-                        // account for any scrolled ancestors
-                        if (Y.Dom._getStyle(node, POSITION) !== FIXED) {
-                            parentNode = node;
-
-                            while ((parentNode = parentNode[PARENT_NODE]) && parentNode[TAG_NAME]) {
-                                scrollTop = parentNode[SCROLL_TOP];
-                                scrollLeft = parentNode[SCROLL_LEFT];
-
-                                //Firefox does something funky with borders when overflow is not visible.
-                                if (isGecko && (Y.Dom._getStyle(parentNode, 'overflow') !== 'visible')) {
-                                        xy = Y.Dom._calcBorders(parentNode, xy);
-                                }
-
-                                if (scrollTop || scrollLeft) {
-                                    xy[0] -= scrollLeft;
-                                    xy[1] -= scrollTop;
-                                }
-                            }
-                            xy[0] += docScrollLeft;
-                            xy[1] += docScrollTop;
-
-                        } else {
-                            //Fix FIXED position -- add scrollbars
-                            if (isOpera) {
-                                xy[0] -= docScrollLeft;
-                                xy[1] -= docScrollTop;
-                            } else if (isSafari || isGecko) {
-                                xy[0] += docScrollLeft;
-                                xy[1] += docScrollTop;
-                            }
-                        }
-                        //Round the numbers so we get sane data back
-                        xy[0] = Math.floor(xy[0]);
-                        xy[1] = Math.floor(xy[1]);
-                    } else {
-                    }
-                    return xy;                
-                };
-            }
-        }(), // NOTE: Executing for loadtime branching
-        
-        /**
-         * Gets the current X position of an element based on page coordinates.  The element must be part of the DOM tree to have page coordinates (display:none or elements not appended return false).
-         * @method getX
-         * @param {String | HTMLElement | Array} el Accepts a string to use as an ID, an actual DOM reference, or an Array of IDs and/or HTMLElements
-         * @return {Number | Array} The X position of the element(s)
-         */
-        getX: function(el) {
-            var f = function(el) {
-                return Y.Dom.getXY(el)[0];
-            };
-            
-            return Y.Dom.batch(el, f, Y.Dom, true);
-        },
-        
-        /**
-         * Gets the current Y position of an element based on page coordinates.  Element must be part of the DOM tree to have page coordinates (display:none or elements not appended return false).
-         * @method getY
-         * @param {String | HTMLElement | Array} el Accepts a string to use as an ID, an actual DOM reference, or an Array of IDs and/or HTMLElements
-         * @return {Number | Array} The Y position of the element(s)
-         */
-        getY: function(el) {
-            var f = function(el) {
-                return Y.Dom.getXY(el)[1];
-            };
-            
-            return Y.Dom.batch(el, f, Y.Dom, true);
-        },
-        
-        /**
-         * Set the position of an html element in page coordinates, regardless of how the element is positioned.
-         * The element(s) must be part of the DOM tree to have page coordinates (display:none or elements not appended return false).
-         * @method setXY
-         * @param {String | HTMLElement | Array} el Accepts a string to use as an ID, an actual DOM reference, or an Array of IDs and/or HTMLElements
-         * @param {Array} pos Contains X & Y values for new position (coordinates are page-based)
-         * @param {Boolean} noRetry By default we try and set the position a second time if the first fails
-         */
-        setXY: function(el, pos, noRetry) {
-            Y.Dom.batch(el, Y.Dom._setXY, { pos: pos, noRetry: noRetry });
-        },
-
-        _setXY: function(node, args) {
-            var pos = Y.Dom._getStyle(node, POSITION),
-                setStyle = Y.Dom.setStyle,
-                xy = args.pos,
-                noRetry = args.noRetry,
-
-                delta = [ // assuming pixels; if not we will have to retry
-                    parseInt( Y.Dom.getComputedStyle(node, LEFT), 10 ),
-                    parseInt( Y.Dom.getComputedStyle(node, TOP), 10 )
-                ],
-
-                currentXY,
-                newXY;
-        
-            if (pos == 'static') { // default to relative
-                pos = RELATIVE;
-                setStyle(node, POSITION, pos);
-            }
-
-            currentXY = Y.Dom._getXY(node);
-
-            if (!xy || currentXY === false) { // has to be part of doc to have xy
-                return false; 
-            }
-            
-            if ( isNaN(delta[0]) ) {// in case of 'auto'
-                delta[0] = (pos == RELATIVE) ? 0 : node[OFFSET_LEFT];
-            } 
-            if ( isNaN(delta[1]) ) { // in case of 'auto'
-                delta[1] = (pos == RELATIVE) ? 0 : node[OFFSET_TOP];
-            } 
-
-            if (xy[0] !== null) { // from setX
-                setStyle(node, LEFT, xy[0] - currentXY[0] + delta[0] + 'px');
-            }
-
-            if (xy[1] !== null) { // from setY
-                setStyle(node, TOP, xy[1] - currentXY[1] + delta[1] + 'px');
-            }
-          
-            if (!noRetry) {
-                newXY = Y.Dom._getXY(node);
-
-                // if retry is true, try one more time if we miss 
-               if ( (xy[0] !== null && newXY[0] != xy[0]) || 
-                    (xy[1] !== null && newXY[1] != xy[1]) ) {
-                   Y.Dom._setXY(node, { pos: xy, noRetry: true });
-               }
-            }        
-
-        },
-        
-        /**
-         * Set the X position of an html element in page coordinates, regardless of how the element is positioned.
-         * The element must be part of the DOM tree to have page coordinates (display:none or elements not appended return false).
-         * @method setX
-         * @param {String | HTMLElement | Array} el Accepts a string to use as an ID, an actual DOM reference, or an Array of IDs and/or HTMLElements.
-         * @param {Int} x The value to use as the X coordinate for the element(s).
-         */
-        setX: function(el, x) {
-            Y.Dom.setXY(el, [x, null]);
-        },
-        
-        /**
-         * Set the Y position of an html element in page coordinates, regardless of how the element is positioned.
-         * The element must be part of the DOM tree to have page coordinates (display:none or elements not appended return false).
-         * @method setY
-         * @param {String | HTMLElement | Array} el Accepts a string to use as an ID, an actual DOM reference, or an Array of IDs and/or HTMLElements.
-         * @param {Int} x To use as the Y coordinate for the element(s).
-         */
-        setY: function(el, y) {
-            Y.Dom.setXY(el, [null, y]);
-        },
-        
-        /**
-         * Returns the region position of the given element.
-         * The element must be part of the DOM tree to have a region (display:none or elements not appended return false).
-         * @method getRegion
-         * @param {String | HTMLElement | Array} el Accepts a string to use as an ID, an actual DOM reference, or an Array of IDs and/or HTMLElements.
-         * @return {Region | Array} A Region or array of Region instances containing "top, left, bottom, right" member data.
-         */
-        getRegion: function(el) {
-            var f = function(el) {
-                var region = false;
-                if ( Y.Dom._canPosition(el) ) {
-                    region = Y.Region.getRegion(el);
-                } else {
-                }
-
-                return region;
-            };
-            
-            return Y.Dom.batch(el, f, Y.Dom, true);
-        },
-        
-        /**
-         * Returns the width of the client (viewport).
-         * @method getClientWidth
-         * @deprecated Now using getViewportWidth.  This interface left intact for back compat.
-         * @return {Int} The width of the viewable area of the page.
-         */
-        getClientWidth: function() {
-            return Y.Dom.getViewportWidth();
-        },
-        
-        /**
-         * Returns the height of the client (viewport).
-         * @method getClientHeight
-         * @deprecated Now using getViewportHeight.  This interface left intact for back compat.
-         * @return {Int} The height of the viewable area of the page.
-         */
-        getClientHeight: function() {
-            return Y.Dom.getViewportHeight();
-        },
-
-        /**
-         * Returns an array of HTMLElements with the given class.
-         * For optimized performance, include a tag and/or root node when possible.
-         * Note: This method operates against a live collection, so modifying the 
-         * collection in the callback (removing/appending nodes, etc.) will have
-         * side effects.  Instead you should iterate the returned nodes array,
-         * as you would with the native "getElementsByTagName" method. 
-         * @method getElementsByClassName
-         * @param {String} className The class name to match against
-         * @param {String} tag (optional) The tag name of the elements being collected
-         * @param {String | HTMLElement} root (optional) The HTMLElement or an ID to use as the starting point.
-         * This element is not included in the className scan.
-         * @param {Function} apply (optional) A function to apply to each element when found 
-         * @param {Any} o (optional) An optional arg that is passed to the supplied method
-         * @param {Boolean} overrides (optional) Whether or not to override the scope of "method" with "o"
-         * @return {Array} An array of elements that have the given class name
-         */
-        getElementsByClassName: function(className, tag, root, apply, o, overrides) {
-            tag = tag || '*';
-            root = (root) ? Y.Dom.get(root) : null || document; 
-            if (!root) {
-                return [];
-            }
-
-            var nodes = [],
-                elements = root.getElementsByTagName(tag),
-                hasClass = Y.Dom.hasClass;
-
-            for (var i = 0, len = elements.length; i < len; ++i) {
-                if ( hasClass(elements[i], className) ) {
-                    nodes[nodes.length] = elements[i];
-                }
-            }
-            
-            if (apply) {
-                Y.Dom.batch(nodes, apply, o, overrides);
-            }
-
-            return nodes;
-        },
-
-        /**
-         * Determines whether an HTMLElement has the given className.
-         * @method hasClass
-         * @param {String | HTMLElement | Array} el The element or collection to test
-         * @param {String} className the class name to search for
-         * @return {Boolean | Array} A boolean value or array of boolean values
-         */
-        hasClass: function(el, className) {
-            return Y.Dom.batch(el, Y.Dom._hasClass, className);
-        },
-
-        _hasClass: function(el, className) {
-            var ret = false,
-                current;
-            
-            if (el && className) {
-                current = Y.Dom._getAttribute(el, CLASS_NAME) || EMPTY;
-                if (className.exec) {
-                    ret = className.test(current);
-                } else {
-                    ret = className && (SPACE + current + SPACE).
-                        indexOf(SPACE + className + SPACE) > -1;
-                }
-            } else {
-            }
-
-            return ret;
-        },
-    
-        /**
-         * Adds a class name to a given element or collection of elements.
-         * @method addClass         
-         * @param {String | HTMLElement | Array} el The element or collection to add the class to
-         * @param {String} className the class name to add to the class attribute
-         * @return {Boolean | Array} A pass/fail boolean or array of booleans
-         */
-        addClass: function(el, className) {
-            return Y.Dom.batch(el, Y.Dom._addClass, className);
-        },
-
-        _addClass: function(el, className) {
-            var ret = false,
-                current;
-
-            if (el && className) {
-                current = Y.Dom._getAttribute(el, CLASS_NAME) || EMPTY;
-                if ( !Y.Dom._hasClass(el, className) ) {
-                    Y.Dom.setAttribute(el, CLASS_NAME, trim(current + SPACE + className));
-                    ret = true;
-                }
-            } else {
-            }
-
-            return ret;
-        },
-    
-        /**
-         * Removes a class name from a given element or collection of elements.
-         * @method removeClass         
-         * @param {String | HTMLElement | Array} el The element or collection to remove the class from
-         * @param {String} className the class name to remove from the class attribute
-         * @return {Boolean | Array} A pass/fail boolean or array of booleans
-         */
-        removeClass: function(el, className) {
-            return Y.Dom.batch(el, Y.Dom._removeClass, className);
-        },
-        
-        _removeClass: function(el, className) {
-            var ret = false,
-                current,
-                newClass,
-                attr;
-
-            if (el && className) {
-                current = Y.Dom._getAttribute(el, CLASS_NAME) || EMPTY;
-                Y.Dom.setAttribute(el, CLASS_NAME, current.replace(Y.Dom._getClassRegex(className), EMPTY));
-
-                newClass = Y.Dom._getAttribute(el, CLASS_NAME);
-                if (current !== newClass) { // else nothing changed
-                    Y.Dom.setAttribute(el, CLASS_NAME, trim(newClass)); // trim after comparing to current class
-                    ret = true;
-
-                    if (Y.Dom._getAttribute(el, CLASS_NAME) === '') { // remove class attribute if empty
-                        attr = (el.hasAttribute && el.hasAttribute(_CLASS)) ? _CLASS : CLASS_NAME;
-                        el.removeAttribute(attr);
-                    }
-                }
-
-            } else {
-            }
-
-            return ret;
-        },
-        
-        /**
-         * Replace a class with another class for a given element or collection of elements.
-         * If no oldClassName is present, the newClassName is simply added.
-         * @method replaceClass  
-         * @param {String | HTMLElement | Array} el The element or collection to remove the class from
-         * @param {String} oldClassName the class name to be replaced
-         * @param {String} newClassName the class name that will be replacing the old class name
-         * @return {Boolean | Array} A pass/fail boolean or array of booleans
-         */
-        replaceClass: function(el, oldClassName, newClassName) {
-            return Y.Dom.batch(el, Y.Dom._replaceClass, { from: oldClassName, to: newClassName });
-        },
-
-        _replaceClass: function(el, classObj) {
-            var className,
-                from,
-                to,
-                ret = false,
-                current;
-
-            if (el && classObj) {
-                from = classObj.from;
-                to = classObj.to;
-
-                if (!to) {
-                    ret = false;
-                }  else if (!from) { // just add if no "from"
-                    ret = Y.Dom._addClass(el, classObj.to);
-                } else if (from !== to) { // else nothing to replace
-                    // May need to lead with DBLSPACE?
-                    current = Y.Dom._getAttribute(el, CLASS_NAME) || EMPTY;
-                    className = (SPACE + current.replace(Y.Dom._getClassRegex(from), SPACE + to)).
-                               split(Y.Dom._getClassRegex(to));
-
-                    // insert to into what would have been the first occurrence slot
-                    className.splice(1, 0, SPACE + to);
-                    Y.Dom.setAttribute(el, CLASS_NAME, trim(className.join(EMPTY)));
-                    ret = true;
-                }
-            } else {
-            }
-
-            return ret;
-        },
-        
-        /**
-         * Returns an ID and applies it to the element "el", if provided.
-         * @method generateId  
-         * @param {String | HTMLElement | Array} el (optional) An optional element array of elements to add an ID to (no ID is added if one is already present).
-         * @param {String} prefix (optional) an optional prefix to use (defaults to "yui-gen").
-         * @return {String | Array} The generated ID, or array of generated IDs (or original ID if already present on an element)
-         */
-        generateId: function(el, prefix) {
-            prefix = prefix || 'yui-gen';
-
-            var f = function(el) {
-                if (el && el.id) { // do not override existing ID
-                    return el.id;
-                }
-
-                var id = prefix + YAHOO.env._id_counter++;
-
-                if (el) {
-                    if (el[OWNER_DOCUMENT] && el[OWNER_DOCUMENT].getElementById(id)) { // in case one already exists
-                        // use failed id plus prefix to help ensure uniqueness
-                        return Y.Dom.generateId(el, id + prefix);
-                    }
-                    el.id = id;
-                }
-                
-                return id;
-            };
-
-            // batch fails when no element, so just generate and return single ID
-            return Y.Dom.batch(el, f, Y.Dom, true) || f.apply(Y.Dom, arguments);
-        },
-        
-        /**
-         * Determines whether an HTMLElement is an ancestor of another HTML element in the DOM hierarchy.
-         * @method isAncestor
-         * @param {String | HTMLElement} haystack The possible ancestor
-         * @param {String | HTMLElement} needle The possible descendent
-         * @return {Boolean} Whether or not the haystack is an ancestor of needle
-         */
-        isAncestor: function(haystack, needle) {
-            haystack = Y.Dom.get(haystack);
-            needle = Y.Dom.get(needle);
-            
-            var ret = false;
-
-            if ( (haystack && needle) && (haystack[NODE_TYPE] && needle[NODE_TYPE]) ) {
-                if (haystack.contains && haystack !== needle) { // contains returns true when equal
-                    ret = haystack.contains(needle);
-                }
-                else if (haystack.compareDocumentPosition) { // gecko
-                    ret = !!(haystack.compareDocumentPosition(needle) & 16);
-                }
-            } else {
-            }
-            return ret;
-        },
-        
-        /**
-         * Determines whether an HTMLElement is present in the current document.
-         * @method inDocument         
-         * @param {String | HTMLElement} el The element to search for
-         * @param {Object} doc An optional document to search, defaults to element's owner document 
-         * @return {Boolean} Whether or not the element is present in the current document
-         */
-        inDocument: function(el, doc) {
-            return Y.Dom._inDoc(Y.Dom.get(el), doc);
-        },
-
-        _inDoc: function(el, doc) {
-            var ret = false;
-            if (el && el[TAG_NAME]) {
-                doc = doc || el[OWNER_DOCUMENT]; 
-                ret = Y.Dom.isAncestor(doc[DOCUMENT_ELEMENT], el);
-            } else {
-            }
-            return ret;
-        },
-        
-        /**
-         * Returns an array of HTMLElements that pass the test applied by supplied boolean method.
-         * For optimized performance, include a tag and/or root node when possible.
-         * Note: This method operates against a live collection, so modifying the 
-         * collection in the callback (removing/appending nodes, etc.) will have
-         * side effects.  Instead you should iterate the returned nodes array,
-         * as you would with the native "getElementsByTagName" method. 
-         * @method getElementsBy
-         * @param {Function} method - A boolean method for testing elements which receives the element as its only argument.
-         * @param {String} tag (optional) The tag name of the elements being collected
-         * @param {String | HTMLElement} root (optional) The HTMLElement or an ID to use as the starting point 
-         * @param {Function} apply (optional) A function to apply to each element when found 
-         * @param {Any} o (optional) An optional arg that is passed to the supplied method
-         * @param {Boolean} overrides (optional) Whether or not to override the scope of "method" with "o"
-         * @return {Array} Array of HTMLElements
-         */
-        getElementsBy: function(method, tag, root, apply, o, overrides, firstOnly) {
-            tag = tag || '*';
-            root = (root) ? Y.Dom.get(root) : null || document; 
-
-            if (!root) {
-                return [];
-            }
-
-            var nodes = [],
-                elements = root.getElementsByTagName(tag);
-            
-            for (var i = 0, len = elements.length; i < len; ++i) {
-                if ( method(elements[i]) ) {
-                    if (firstOnly) {
-                        nodes = elements[i]; 
-                        break;
-                    } else {
-                        nodes[nodes.length] = elements[i];
-                    }
-                }
-            }
-
-            if (apply) {
-                Y.Dom.batch(nodes, apply, o, overrides);
-            }
-
-            
-            return nodes;
-        },
-        
-        /**
-         * Returns the first HTMLElement that passes the test applied by the supplied boolean method.
-         * @method getElementBy
-         * @param {Function} method - A boolean method for testing elements which receives the element as its only argument.
-         * @param {String} tag (optional) The tag name of the elements being collected
-         * @param {String | HTMLElement} root (optional) The HTMLElement or an ID to use as the starting point 
-         * @return {HTMLElement}
-         */
-        getElementBy: function(method, tag, root) {
-            return Y.Dom.getElementsBy(method, tag, root, null, null, null, true); 
-        },
-
-        /**
-         * Runs the supplied method against each item in the Collection/Array.
-         * The method is called with the element(s) as the first arg, and the optional param as the second ( method(el, o) ).
-         * @method batch
-         * @param {String | HTMLElement | Array} el (optional) An element or array of elements to apply the method to
-         * @param {Function} method The method to apply to the element(s)
-         * @param {Any} o (optional) An optional arg that is passed to the supplied method
-         * @param {Boolean} overrides (optional) Whether or not to override the scope of "method" with "o"
-         * @return {Any | Array} The return value(s) from the supplied method
-         */
-        batch: function(el, method, o, overrides) {
-            var collection = [],
-                scope = (overrides) ? o : window;
-                
-            el = (el && (el[TAG_NAME] || el.item)) ? el : Y.Dom.get(el); // skip get() when possible
-            if (el && method) {
-                if (el[TAG_NAME] || el.length === undefined) { // element or not array-like 
-                    return method.call(scope, el, o);
-                } 
-
-                for (var i = 0; i < el.length; ++i) {
-                    collection[collection.length] = method.call(scope, el[i], o);
-                }
-            } else {
-                return false;
-            } 
-            return collection;
-        },
-        
-        /**
-         * Returns the height of the document.
-         * @method getDocumentHeight
-         * @return {Int} The height of the actual document (which includes the body and its margin).
-         */
-        getDocumentHeight: function() {
-            var scrollHeight = (document[COMPAT_MODE] != CSS1_COMPAT || isSafari) ? document.body.scrollHeight : documentElement.scrollHeight,
-                h = Math.max(scrollHeight, Y.Dom.getViewportHeight());
-
-            return h;
-        },
-        
-        /**
-         * Returns the width of the document.
-         * @method getDocumentWidth
-         * @return {Int} The width of the actual document (which includes the body and its margin).
-         */
-        getDocumentWidth: function() {
-            var scrollWidth = (document[COMPAT_MODE] != CSS1_COMPAT || isSafari) ? document.body.scrollWidth : documentElement.scrollWidth,
-                w = Math.max(scrollWidth, Y.Dom.getViewportWidth());
-            return w;
-        },
-
-        /**
-         * Returns the current height of the viewport.
-         * @method getViewportHeight
-         * @return {Int} The height of the viewable area of the page (excludes scrollbars).
-         */
-        getViewportHeight: function() {
-            var height = self.innerHeight, // Safari, Opera
-                mode = document[COMPAT_MODE];
-        
-            if ( (mode || isIE) && !isOpera ) { // IE, Gecko
-                height = (mode == CSS1_COMPAT) ?
-                        documentElement.clientHeight : // Standards
-                        document.body.clientHeight; // Quirks
-            }
-        
-            return height;
-        },
-        
-        /**
-         * Returns the current width of the viewport.
-         * @method getViewportWidth
-         * @return {Int} The width of the viewable area of the page (excludes scrollbars).
-         */
-        
-        getViewportWidth: function() {
-            var width = self.innerWidth,  // Safari
-                mode = document[COMPAT_MODE];
-            
-            if (mode || isIE) { // IE, Gecko, Opera
-                width = (mode == CSS1_COMPAT) ?
-                        documentElement.clientWidth : // Standards
-                        document.body.clientWidth; // Quirks
-            }
-            return width;
-        },
-
-       /**
-         * Returns the nearest ancestor that passes the test applied by supplied boolean method.
-         * For performance reasons, IDs are not accepted and argument validation omitted.
-         * @method getAncestorBy
-         * @param {HTMLElement} node The HTMLElement to use as the starting point 
-         * @param {Function} method - A boolean method for testing elements which receives the element as its only argument.
-         * @return {Object} HTMLElement or null if not found
-         */
-        getAncestorBy: function(node, method) {
-            while ( (node = node[PARENT_NODE]) ) { // NOTE: assignment
-                if ( Y.Dom._testElement(node, method) ) {
-                    return node;
-                }
-            } 
-
-            return null;
-        },
-        
-        /**
-         * Returns the nearest ancestor with the given className.
-         * @method getAncestorByClassName
-         * @param {String | HTMLElement} node The HTMLElement or an ID to use as the starting point 
-         * @param {String} className
-         * @return {Object} HTMLElement
-         */
-        getAncestorByClassName: function(node, className) {
-            node = Y.Dom.get(node);
-            if (!node) {
-                return null;
-            }
-            var method = function(el) { return Y.Dom.hasClass(el, className); };
-            return Y.Dom.getAncestorBy(node, method);
-        },
-
-        /**
-         * Returns the nearest ancestor with the given tagName.
-         * @method getAncestorByTagName
-         * @param {String | HTMLElement} node The HTMLElement or an ID to use as the starting point 
-         * @param {String} tagName
-         * @return {Object} HTMLElement
-         */
-        getAncestorByTagName: function(node, tagName) {
-            node = Y.Dom.get(node);
-            if (!node) {
-                return null;
-            }
-            var method = function(el) {
-                 return el[TAG_NAME] && el[TAG_NAME].toUpperCase() == tagName.toUpperCase();
-            };
-
-            return Y.Dom.getAncestorBy(node, method);
-        },
-
-        /**
-         * Returns the previous sibling that is an HTMLElement. 
-         * For performance reasons, IDs are not accepted and argument validation omitted.
-         * Returns the nearest HTMLElement sibling if no method provided.
-         * @method getPreviousSiblingBy
-         * @param {HTMLElement} node The HTMLElement to use as the starting point 
-         * @param {Function} method A boolean function used to test siblings
-         * that receives the sibling node being tested as its only argument
-         * @return {Object} HTMLElement or null if not found
-         */
-        getPreviousSiblingBy: function(node, method) {
-            while (node) {
-                node = node.previousSibling;
-                if ( Y.Dom._testElement(node, method) ) {
-                    return node;
-                }
-            }
-            return null;
-        }, 
-
-        /**
-         * Returns the previous sibling that is an HTMLElement 
-         * @method getPreviousSibling
-         * @param {String | HTMLElement} node The HTMLElement or an ID to use as the starting point 
-         * @return {Object} HTMLElement or null if not found
-         */
-        getPreviousSibling: function(node) {
-            node = Y.Dom.get(node);
-            if (!node) {
-                return null;
-            }
-
-            return Y.Dom.getPreviousSiblingBy(node);
-        }, 
-
-        /**
-         * Returns the next HTMLElement sibling that passes the boolean method. 
-         * For performance reasons, IDs are not accepted and argument validation omitted.
-         * Returns the nearest HTMLElement sibling if no method provided.
-         * @method getNextSiblingBy
-         * @param {HTMLElement} node The HTMLElement to use as the starting point 
-         * @param {Function} method A boolean function used to test siblings
-         * that receives the sibling node being tested as its only argument
-         * @return {Object} HTMLElement or null if not found
-         */
-        getNextSiblingBy: function(node, method) {
-            while (node) {
-                node = node.nextSibling;
-                if ( Y.Dom._testElement(node, method) ) {
-                    return node;
-                }
-            }
-            return null;
-        }, 
-
-        /**
-         * Returns the next sibling that is an HTMLElement 
-         * @method getNextSibling
-         * @param {String | HTMLElement} node The HTMLElement or an ID to use as the starting point 
-         * @return {Object} HTMLElement or null if not found
-         */
-        getNextSibling: function(node) {
-            node = Y.Dom.get(node);
-            if (!node) {
-                return null;
-            }
-
-            return Y.Dom.getNextSiblingBy(node);
-        }, 
-
-        /**
-         * Returns the first HTMLElement child that passes the test method. 
-         * @method getFirstChildBy
-         * @param {HTMLElement} node The HTMLElement to use as the starting point 
-         * @param {Function} method A boolean function used to test children
-         * that receives the node being tested as its only argument
-         * @return {Object} HTMLElement or null if not found
-         */
-        getFirstChildBy: function(node, method) {
-            var child = ( Y.Dom._testElement(node.firstChild, method) ) ? node.firstChild : null;
-            return child || Y.Dom.getNextSiblingBy(node.firstChild, method);
-        }, 
-
-        /**
-         * Returns the first HTMLElement child. 
-         * @method getFirstChild
-         * @param {String | HTMLElement} node The HTMLElement or an ID to use as the starting point 
-         * @return {Object} HTMLElement or null if not found
-         */
-        getFirstChild: function(node, method) {
-            node = Y.Dom.get(node);
-            if (!node) {
-                return null;
-            }
-            return Y.Dom.getFirstChildBy(node);
-        }, 
-
-        /**
-         * Returns the last HTMLElement child that passes the test method. 
-         * @method getLastChildBy
-         * @param {HTMLElement} node The HTMLElement to use as the starting point 
-         * @param {Function} method A boolean function used to test children
-         * that receives the node being tested as its only argument
-         * @return {Object} HTMLElement or null if not found
-         */
-        getLastChildBy: function(node, method) {
-            if (!node) {
-                return null;
-            }
-            var child = ( Y.Dom._testElement(node.lastChild, method) ) ? node.lastChild : null;
-            return child || Y.Dom.getPreviousSiblingBy(node.lastChild, method);
-        }, 
-
-        /**
-         * Returns the last HTMLElement child. 
-         * @method getLastChild
-         * @param {String | HTMLElement} node The HTMLElement or an ID to use as the starting point 
-         * @return {Object} HTMLElement or null if not found
-         */
-        getLastChild: function(node) {
-            node = Y.Dom.get(node);
-            return Y.Dom.getLastChildBy(node);
-        }, 
-
-        /**
-         * Returns an array of HTMLElement childNodes that pass the test method. 
-         * @method getChildrenBy
-         * @param {HTMLElement} node The HTMLElement to start from
-         * @param {Function} method A boolean function used to test children
-         * that receives the node being tested as its only argument
-         * @return {Array} A static array of HTMLElements
-         */
-        getChildrenBy: function(node, method) {
-            var child = Y.Dom.getFirstChildBy(node, method),
-                children = child ? [child] : [];
-
-            Y.Dom.getNextSiblingBy(child, function(node) {
-                if ( !method || method(node) ) {
-                    children[children.length] = node;
-                }
-                return false; // fail test to collect all children
-            });
-
-            return children;
-        },
-        /**
-         * Returns an array of HTMLElement childNodes. 
-         * @method getChildren
-         * @param {String | HTMLElement} node The HTMLElement or an ID to use as the starting point 
-         * @return {Array} A static array of HTMLElements
-         */
-        getChildren: function(node) {
-            node = Y.Dom.get(node);
-            if (!node) {
-            }
-
-            return Y.Dom.getChildrenBy(node);
-        },
-
-        /**
-         * Returns the left scroll value of the document 
-         * @method getDocumentScrollLeft
-         * @param {HTMLDocument} document (optional) The document to get the scroll value of
-         * @return {Int}  The amount that the document is scrolled to the left
-         */
-        getDocumentScrollLeft: function(doc) {
-            doc = doc || document;
-            return Math.max(doc[DOCUMENT_ELEMENT].scrollLeft, doc.body.scrollLeft);
-        }, 
-
-        /**
-         * Returns the top scroll value of the document 
-         * @method getDocumentScrollTop
-         * @param {HTMLDocument} document (optional) The document to get the scroll value of
-         * @return {Int}  The amount that the document is scrolled to the top
-         */
-        getDocumentScrollTop: function(doc) {
-            doc = doc || document;
-            return Math.max(doc[DOCUMENT_ELEMENT].scrollTop, doc.body.scrollTop);
-        },
-
-        /**
-         * Inserts the new node as the previous sibling of the reference node 
-         * @method insertBefore
-         * @param {String | HTMLElement} newNode The node to be inserted
-         * @param {String | HTMLElement} referenceNode The node to insert the new node before 
-         * @return {HTMLElement} The node that was inserted (or null if insert fails) 
-         */
-        insertBefore: function(newNode, referenceNode) {
-            newNode = Y.Dom.get(newNode); 
-            referenceNode = Y.Dom.get(referenceNode); 
-            
-            if (!newNode || !referenceNode || !referenceNode[PARENT_NODE]) {
-                return null;
-            }       
-
-            return referenceNode[PARENT_NODE].insertBefore(newNode, referenceNode); 
-        },
-
-        /**
-         * Inserts the new node as the next sibling of the reference node 
-         * @method insertAfter
-         * @param {String | HTMLElement} newNode The node to be inserted
-         * @param {String | HTMLElement} referenceNode The node to insert the new node after 
-         * @return {HTMLElement} The node that was inserted (or null if insert fails) 
-         */
-        insertAfter: function(newNode, referenceNode) {
-            newNode = Y.Dom.get(newNode); 
-            referenceNode = Y.Dom.get(referenceNode); 
-            
-            if (!newNode || !referenceNode || !referenceNode[PARENT_NODE]) {
-                return null;
-            }       
-
-            if (referenceNode.nextSibling) {
-                return referenceNode[PARENT_NODE].insertBefore(newNode, referenceNode.nextSibling); 
-            } else {
-                return referenceNode[PARENT_NODE].appendChild(newNode);
-            }
-        },
-
-        /**
-         * Creates a Region based on the viewport relative to the document. 
-         * @method getClientRegion
-         * @return {Region} A Region object representing the viewport which accounts for document scroll
-         */
-        getClientRegion: function() {
-            var t = Y.Dom.getDocumentScrollTop(),
-                l = Y.Dom.getDocumentScrollLeft(),
-                r = Y.Dom.getViewportWidth() + l,
-                b = Y.Dom.getViewportHeight() + t;
-
-            return new Y.Region(t, r, b, l);
-        },
-
-        /**
-         * Provides a normalized attribute interface. 
-         * @method setAttribute
-         * @param {String | HTMLElement} el The target element for the attribute.
-         * @param {String} attr The attribute to set.
-         * @param {String} val The value of the attribute.
-         */
-        setAttribute: function(el, attr, val) {
-            Y.Dom.batch(el, Y.Dom._setAttribute, { attr: attr, val: val });
-        },
-
-        _setAttribute: function(el, args) {
-            var attr = Y.Dom._toCamel(args.attr),
-                val = args.val;
-
-            if (el && el.setAttribute) {
-                if (Y.Dom.DOT_ATTRIBUTES[attr]) {
-                    el[attr] = val;
-                } else {
-                    attr = Y.Dom.CUSTOM_ATTRIBUTES[attr] || attr;
-                    el.setAttribute(attr, val);
-                }
-            } else {
-            }
-        },
-
-        /**
-         * Provides a normalized attribute interface. 
-         * @method getAttribute
-         * @param {String | HTMLElement} el The target element for the attribute.
-         * @param {String} attr The attribute to get.
-         * @return {String} The current value of the attribute. 
-         */
-        getAttribute: function(el, attr) {
-            return Y.Dom.batch(el, Y.Dom._getAttribute, attr);
-        },
-
-
-        _getAttribute: function(el, attr) {
-            var val;
-            attr = Y.Dom.CUSTOM_ATTRIBUTES[attr] || attr;
-
-            if (el && el.getAttribute) {
-                val = el.getAttribute(attr, 2);
-            } else {
-            }
-
-            return val;
-        },
-
-        _toCamel: function(property) {
-            var c = propertyCache;
-
-            function tU(x,l) {
-                return l.toUpperCase();
-            }
-
-            return c[property] || (c[property] = property.indexOf('-') === -1 ? 
-                                    property :
-                                    property.replace( /-([a-z])/gi, tU ));
-        },
-
-        _getClassRegex: function(className) {
-            var re;
-            if (className !== undefined) { // allow empty string to pass
-                if (className.exec) { // already a RegExp
-                    re = className;
-                } else {
-                    re = reCache[className];
-                    if (!re) {
-                        // escape special chars (".", "[", etc.)
-                        className = className.replace(Y.Dom._patterns.CLASS_RE_TOKENS, '\\$1');
-                        re = reCache[className] = new RegExp(C_START + className + C_END, G);
-                    }
-                }
-            }
-            return re;
-        },
-
-        _patterns: {
-            ROOT_TAG: /^body|html$/i, // body for quirks mode, html for standards,
-            CLASS_RE_TOKENS: /([\.\(\)\^\$\*\+\?\|\[\]\{\}\\])/g
-        },
-
-
-        _testElement: function(node, method) {
-            return node && node[NODE_TYPE] == 1 && ( !method || method(node) );
-        },
-
-        _calcBorders: function(node, xy2) {
-            var t = parseInt(Y.Dom[GET_COMPUTED_STYLE](node, BORDER_TOP_WIDTH), 10) || 0,
-                l = parseInt(Y.Dom[GET_COMPUTED_STYLE](node, BORDER_LEFT_WIDTH), 10) || 0;
-            if (isGecko) {
-                if (RE_TABLE.test(node[TAG_NAME])) {
-                    t = 0;
-                    l = 0;
-                }
-            }
-            xy2[0] += l;
-            xy2[1] += t;
-            return xy2;
-        }
-    };
-        
-    var _getComputedStyle = Y.Dom[GET_COMPUTED_STYLE];
-    // fix opera computedStyle default color unit (convert to rgb)
-    if (UA.opera) {
-        Y.Dom[GET_COMPUTED_STYLE] = function(node, att) {
-            var val = _getComputedStyle(node, att);
-            if (RE_COLOR.test(att)) {
-                val = Y.Dom.Color.toRGB(val);
-            }
-
-            return val;
-        };
-
-    }
-
-    // safari converts transparent to rgba(), others use "transparent"
-    if (UA.webkit) {
-        Y.Dom[GET_COMPUTED_STYLE] = function(node, att) {
-            var val = _getComputedStyle(node, att);
-
-            if (val === 'rgba(0, 0, 0, 0)') {
-                val = 'transparent'; 
-            }
-
-            return val;
-        };
-
-    }
-
-    if (UA.ie && UA.ie >= 8 && document.documentElement.hasAttribute) { // IE 8 standards
-        Y.Dom.DOT_ATTRIBUTES.type = true; // IE 8 errors on input.setAttribute('type')
-    }
-})();
-/**
- * A region is a representation of an object on a grid.  It is defined
- * by the top, right, bottom, left extents, so is rectangular by default.  If 
- * other shapes are required, this class could be extended to support it.
- * @namespace YAHOO.util
- * @class Region
- * @param {Int} t the top extent
- * @param {Int} r the right extent
- * @param {Int} b the bottom extent
- * @param {Int} l the left extent
- * @constructor
- */
-YAHOO.util.Region = function(t, r, b, l) {
-
-    /**
-     * The region's top extent
-     * @property top
-     * @type Int
-     */
-    this.top = t;
-    
-    /**
-     * The region's top extent
-     * @property y
-     * @type Int
-     */
-    this.y = t;
-    
-    /**
-     * The region's top extent as index, for symmetry with set/getXY
-     * @property 1
-     * @type Int
-     */
-    this[1] = t;
-
-    /**
-     * The region's right extent
-     * @property right
-     * @type int
-     */
-    this.right = r;
-
-    /**
-     * The region's bottom extent
-     * @property bottom
-     * @type Int
-     */
-    this.bottom = b;
-
-    /**
-     * The region's left extent
-     * @property left
-     * @type Int
-     */
-    this.left = l;
-    
-    /**
-     * The region's left extent
-     * @property x
-     * @type Int
-     */
-    this.x = l;
-    
-    /**
-     * The region's left extent as index, for symmetry with set/getXY
-     * @property 0
-     * @type Int
-     */
-    this[0] = l;
-
-    /**
-     * The region's total width 
-     * @property width 
-     * @type Int
-     */
-    this.width = this.right - this.left;
-
-    /**
-     * The region's total height 
-     * @property height 
-     * @type Int
-     */
-    this.height = this.bottom - this.top;
-};
-
-/**
- * Returns true if this region contains the region passed in
- * @method contains
- * @param  {Region}  region The region to evaluate
- * @return {Boolean}        True if the region is contained with this region, 
- *                          else false
- */
-YAHOO.util.Region.prototype.contains = function(region) {
-    return ( region.left   >= this.left   && 
-             region.right  <= this.right  && 
-             region.top    >= this.top    && 
-             region.bottom <= this.bottom    );
-
-};
-
-/**
- * Returns the area of the region
- * @method getArea
- * @return {Int} the region's area
- */
-YAHOO.util.Region.prototype.getArea = function() {
-    return ( (this.bottom - this.top) * (this.right - this.left) );
-};
-
-/**
- * Returns the region where the passed in region overlaps with this one
- * @method intersect
- * @param  {Region} region The region that intersects
- * @return {Region}        The overlap region, or null if there is no overlap
- */
-YAHOO.util.Region.prototype.intersect = function(region) {
-    var t = Math.max( this.top,    region.top    ),
-        r = Math.min( this.right,  region.right  ),
-        b = Math.min( this.bottom, region.bottom ),
-        l = Math.max( this.left,   region.left   );
-    
-    if (b >= t && r >= l) {
-        return new YAHOO.util.Region(t, r, b, l);
-    } else {
-        return null;
-    }
-};
-
-/**
- * Returns the region representing the smallest region that can contain both
- * the passed in region and this region.
- * @method union
- * @param  {Region} region The region that to create the union with
- * @return {Region}        The union region
- */
-YAHOO.util.Region.prototype.union = function(region) {
-    var t = Math.min( this.top,    region.top    ),
-        r = Math.max( this.right,  region.right  ),
-        b = Math.max( this.bottom, region.bottom ),
-        l = Math.min( this.left,   region.left   );
-
-    return new YAHOO.util.Region(t, r, b, l);
-};
-
-/**
- * toString
- * @method toString
- * @return string the region properties
- */
-YAHOO.util.Region.prototype.toString = function() {
-    return ( "Region {"    +
-             "top: "       + this.top    + 
-             ", right: "   + this.right  + 
-             ", bottom: "  + this.bottom + 
-             ", left: "    + this.left   + 
-             ", height: "  + this.height + 
-             ", width: "    + this.width   + 
-             "}" );
-};
-
-/**
- * Returns a region that is occupied by the DOM element
- * @method getRegion
- * @param  {HTMLElement} el The element
- * @return {Region}         The region that the element occupies
- * @static
- */
-YAHOO.util.Region.getRegion = function(el) {
-    var p = YAHOO.util.Dom.getXY(el),
-        t = p[1],
-        r = p[0] + el.offsetWidth,
-        b = p[1] + el.offsetHeight,
-        l = p[0];
-
-    return new YAHOO.util.Region(t, r, b, l);
-};
-
-/////////////////////////////////////////////////////////////////////////////
-
-
-/**
- * A point is a region that is special in that it represents a single point on 
- * the grid.
- * @namespace YAHOO.util
- * @class Point
- * @param {Int} x The X position of the point
- * @param {Int} y The Y position of the point
- * @constructor
- * @extends YAHOO.util.Region
- */
-YAHOO.util.Point = function(x, y) {
-   if (YAHOO.lang.isArray(x)) { // accept input from Dom.getXY, Event.getXY, etc.
-      y = x[1]; // dont blow away x yet
-      x = x[0];
-   }
-    YAHOO.util.Point.superclass.constructor.call(this, y, x, y, x);
-};
-
-YAHOO.extend(YAHOO.util.Point, YAHOO.util.Region);
-
-(function() {
-/**
- * Add style management functionality to DOM.
- * @module dom
- * @for Dom
- */
-
-var Y = YAHOO.util, 
-    CLIENT_TOP = 'clientTop',
-    CLIENT_LEFT = 'clientLeft',
-    PARENT_NODE = 'parentNode',
-    RIGHT = 'right',
-    HAS_LAYOUT = 'hasLayout',
-    PX = 'px',
-    OPACITY = 'opacity',
-    AUTO = 'auto',
-    BORDER_LEFT_WIDTH = 'borderLeftWidth',
-    BORDER_TOP_WIDTH = 'borderTopWidth',
-    BORDER_RIGHT_WIDTH = 'borderRightWidth',
-    BORDER_BOTTOM_WIDTH = 'borderBottomWidth',
-    VISIBLE = 'visible',
-    TRANSPARENT = 'transparent',
-    HEIGHT = 'height',
-    WIDTH = 'width',
-    STYLE = 'style',
-    CURRENT_STYLE = 'currentStyle',
-
-// IE getComputedStyle
-// TODO: unit-less lineHeight (e.g. 1.22)
-    re_size = /^width|height$/,
-    re_unit = /^(\d[.\d]*)+(em|ex|px|gd|rem|vw|vh|vm|ch|mm|cm|in|pt|pc|deg|rad|ms|s|hz|khz|%){1}?/i,
-
-    ComputedStyle = {
-        get: function(el, property) {
-            var value = '',
-                current = el[CURRENT_STYLE][property];
-
-            if (property === OPACITY) {
-                value = Y.Dom.getStyle(el, OPACITY);        
-            } else if (!current || (current.indexOf && current.indexOf(PX) > -1)) { // no need to convert
-                value = current;
-            } else if (Y.Dom.IE_COMPUTED[property]) { // use compute function
-                value = Y.Dom.IE_COMPUTED[property](el, property);
-            } else if (re_unit.test(current)) { // convert to pixel
-                value = Y.Dom.IE.ComputedStyle.getPixel(el, property);
-            } else {
-                value = current;
-            }
-
-            return value;
-        },
-
-        getOffset: function(el, prop) {
-            var current = el[CURRENT_STYLE][prop],                        // value of "width", "top", etc.
-                capped = prop.charAt(0).toUpperCase() + prop.substr(1), // "Width", "Top", etc.
-                offset = 'offset' + capped,                             // "offsetWidth", "offsetTop", etc.
-                pixel = 'pixel' + capped,                               // "pixelWidth", "pixelTop", etc.
-                value = '',
-                actual;
-
-            if (current == AUTO) {
-                actual = el[offset]; // offsetHeight/Top etc.
-                if (actual === undefined) { // likely "right" or "bottom"
-                    value = 0;
-                }
-
-                value = actual;
-                if (re_size.test(prop)) { // account for box model diff 
-                    el[STYLE][prop] = actual; 
-                    if (el[offset] > actual) {
-                        // the difference is padding + border (works in Standards & Quirks modes)
-                        value = actual - (el[offset] - actual);
-                    }
-                    el[STYLE][prop] = AUTO; // revert to auto
-                }
-            } else { // convert units to px
-                if (!el[STYLE][pixel] && !el[STYLE][prop]) { // need to map style.width to currentStyle (no currentStyle.pixelWidth)
-                    el[STYLE][prop] = current;              // no style.pixelWidth if no style.width
-                }
-                value = el[STYLE][pixel];
-            }
-            return value + PX;
-        },
-
-        getBorderWidth: function(el, property) {
-            // clientHeight/Width = paddingBox (e.g. offsetWidth - borderWidth)
-            // clientTop/Left = borderWidth
-            var value = null;
-            if (!el[CURRENT_STYLE][HAS_LAYOUT]) { // TODO: unset layout?
-                el[STYLE].zoom = 1; // need layout to measure client
-            }
-
-            switch(property) {
-                case BORDER_TOP_WIDTH:
-                    value = el[CLIENT_TOP];
-                    break;
-                case BORDER_BOTTOM_WIDTH:
-                    value = el.offsetHeight - el.clientHeight - el[CLIENT_TOP];
-                    break;
-                case BORDER_LEFT_WIDTH:
-                    value = el[CLIENT_LEFT];
-                    break;
-                case BORDER_RIGHT_WIDTH:
-                    value = el.offsetWidth - el.clientWidth - el[CLIENT_LEFT];
-                    break;
-            }
-            return value + PX;
-        },
-
-        getPixel: function(node, att) {
-            // use pixelRight to convert to px
-            var val = null,
-                styleRight = node[CURRENT_STYLE][RIGHT],
-                current = node[CURRENT_STYLE][att];
-
-            node[STYLE][RIGHT] = current;
-            val = node[STYLE].pixelRight;
-            node[STYLE][RIGHT] = styleRight; // revert
-
-            return val + PX;
-        },
-
-        getMargin: function(node, att) {
-            var val;
-            if (node[CURRENT_STYLE][att] == AUTO) {
-                val = 0 + PX;
-            } else {
-                val = Y.Dom.IE.ComputedStyle.getPixel(node, att);
-            }
-            return val;
-        },
-
-        getVisibility: function(node, att) {
-            var current;
-            while ( (current = node[CURRENT_STYLE]) && current[att] == 'inherit') { // NOTE: assignment in test
-                node = node[PARENT_NODE];
-            }
-            return (current) ? current[att] : VISIBLE;
-        },
-
-        getColor: function(node, att) {
-            return Y.Dom.Color.toRGB(node[CURRENT_STYLE][att]) || TRANSPARENT;
-        },
-
-        getBorderColor: function(node, att) {
-            var current = node[CURRENT_STYLE],
-                val = current[att] || current.color;
-            return Y.Dom.Color.toRGB(Y.Dom.Color.toHex(val));
-        }
-
-    },
-
-//fontSize: getPixelFont,
-    IEComputed = {};
-
-IEComputed.top = IEComputed.right = IEComputed.bottom = IEComputed.left = 
-        IEComputed[WIDTH] = IEComputed[HEIGHT] = ComputedStyle.getOffset;
-
-IEComputed.color = ComputedStyle.getColor;
-
-IEComputed[BORDER_TOP_WIDTH] = IEComputed[BORDER_RIGHT_WIDTH] =
-        IEComputed[BORDER_BOTTOM_WIDTH] = IEComputed[BORDER_LEFT_WIDTH] =
-        ComputedStyle.getBorderWidth;
-
-IEComputed.marginTop = IEComputed.marginRight = IEComputed.marginBottom =
-        IEComputed.marginLeft = ComputedStyle.getMargin;
-
-IEComputed.visibility = ComputedStyle.getVisibility;
-IEComputed.borderColor = IEComputed.borderTopColor =
-        IEComputed.borderRightColor = IEComputed.borderBottomColor =
-        IEComputed.borderLeftColor = ComputedStyle.getBorderColor;
-
-Y.Dom.IE_COMPUTED = IEComputed;
-Y.Dom.IE_ComputedStyle = ComputedStyle;
-})();
-(function() {
-/**
- * Add style management functionality to DOM.
- * @module dom
- * @for Dom
- */
-
-var TO_STRING = 'toString',
-    PARSE_INT = parseInt,
-    RE = RegExp,
-    Y = YAHOO.util;
-
-Y.Dom.Color = {
-    KEYWORDS: {
-        black: '000',
-        silver: 'c0c0c0',
-        gray: '808080',
-        white: 'fff',
-        maroon: '800000',
-        red: 'f00',
-        purple: '800080',
-        fuchsia: 'f0f',
-        green: '008000',
-        lime: '0f0',
-        olive: '808000',
-        yellow: 'ff0',
-        navy: '000080',
-        blue: '00f',
-        teal: '008080',
-        aqua: '0ff'
-    },
-
-    re_RGB: /^rgb\(([0-9]+)\s*,\s*([0-9]+)\s*,\s*([0-9]+)\)$/i,
-    re_hex: /^#?([0-9A-F]{2})([0-9A-F]{2})([0-9A-F]{2})$/i,
-    re_hex3: /([0-9A-F])/gi,
-
-    toRGB: function(val) {
-        if (!Y.Dom.Color.re_RGB.test(val)) {
-            val = Y.Dom.Color.toHex(val);
-        }
-
-        if(Y.Dom.Color.re_hex.exec(val)) {
-            val = 'rgb(' + [
-                PARSE_INT(RE.$1, 16),
-                PARSE_INT(RE.$2, 16),
-                PARSE_INT(RE.$3, 16)
-            ].join(', ') + ')';
-        }
-        return val;
-    },
-
-    toHex: function(val) {
-        val = Y.Dom.Color.KEYWORDS[val] || val;
-        if (Y.Dom.Color.re_RGB.exec(val)) {
-            var r = (RE.$1.length === 1) ? '0' + RE.$1 : Number(RE.$1),
-                g = (RE.$2.length === 1) ? '0' + RE.$2 : Number(RE.$2),
-                b = (RE.$3.length === 1) ? '0' + RE.$3 : Number(RE.$3);
-
-            val = [
-                r[TO_STRING](16),
-                g[TO_STRING](16),
-                b[TO_STRING](16)
-            ].join('');
-        }
-
-        if (val.length < 6) {
-            val = val.replace(Y.Dom.Color.re_hex3, '$1$1');
-        }
-
-        if (val !== 'transparent' && val.indexOf('#') < 0) {
-            val = '#' + val;
-        }
-
-        return val.toLowerCase();
-    }
-};
-}());
-YAHOO.register("dom", YAHOO.util.Dom, {version: "2.8.0r4", build: "2449"});
diff --git a/koha-tmpl/intranet-tmpl/prog/en/lib/yui/editor/assets/editor-core.css b/koha-tmpl/intranet-tmpl/prog/en/lib/yui/editor/assets/editor-core.css
deleted file mode 100644 (file)
index 839f7a5..0000000
+++ /dev/null
@@ -1,602 +0,0 @@
-/*
-Copyright (c) 2009, Yahoo! Inc. All rights reserved.
-Code licensed under the BSD License:
-http://developer.yahoo.net/yui/license.txt
-version: 2.8.0r4
-*/
-/* Set the cursor to busy when we are doing something */
-.yui-busy {
-    cursor: wait !important;
-}
-.yui-toolbar-container fieldset,
-.yui-editor-container fieldset {
-    padding: 0;
-    margin: 0;
-    border: 0;
-}
-.yui-toolbar-container legend {
-    display: none;
-}
-.yui-skin-sam .yui-toolbar-container .yui-button button,
-.yui-skin-sam .yui-toolbar-container .yui-button a,
-.yui-skin-sam .yui-toolbar-container .yui-button a:visited {
-    font-size: 0px;
-}
-.yui-skin-sam .yui-toolbar-container .yui-toolbar-select button,
-.yui-skin-sam .yui-toolbar-container .yui-toolbar-select a,
-.yui-skin-sam .yui-toolbar-container .yui-toolbar-select a:visited,
-.yui-skin-sam .yui-toolbar-container .yui-toolbar-spinbutton button,
-.yui-skin-sam .yui-toolbar-container .yui-toolbar-spinbutton a,
-.yui-skin-sam .yui-toolbar-container .yui-toolbar-spinbutton a:visited {
-    font-size: 12px;
-}
-.yui-skin-sam .yui-toolbar-container .yui-toolbar-spinbutton a.up,
-.yui-skin-sam .yui-toolbar-container .yui-toolbar-spinbutton a.down {
-    font-size: 0;
-    line-height: 0;
-    padding: 0;
-}
-
-/* Setup the container with some padding and zoom it for IE's hasLayout */
-.yui-toolbar-container .yui-toolbar-subcont {
-    padding: .25em 0;
-    zoom: 1;
-}
-/* When collapsed set the toolbars container to display none */
-.yui-toolbar-container-collapsed .yui-toolbar-subcont {
-    display: none;
-}
-/* Setup the :after so that compliant browsers don't loose the bounding box */
-.yui-toolbar-container .yui-toolbar-subcont:after { display: block; clear: both; visibility: hidden; content: '.'; height: 0;}
-
-/* Drag handle for the toolbar's draggable property */
-.yui-toolbar-container span.yui-toolbar-draghandle {
-    cursor: move;
-    border-left: 1px solid #999;
-    border-right: 1px solid #999;
-    overflow: hidden;
-    text-indent: 77777px;
-    width: 2px;
-    height: 20px;
-    display: block;
-    clear: none;
-    float: left;
-    margin: 0 0 0 .2em;
-}
-/* If the titlebar is draggable, the set the cursor */
-.yui-toolbar-container .yui-toolbar-titlebar.draggable {
-    cursor: move;
-}
-/* Set the titlebar to relative so we can position the collapse button */
-.yui-toolbar-container .yui-toolbar-titlebar {
-    position: relative;
-}
-/* Toolbar's titlebar styles */
-.yui-toolbar-container .yui-toolbar-titlebar h2 {
-    font-weight: bold;
-    letter-spacing: 0;
-    border: none;
-    color: #000;
-    margin: 0;
-    padding: .2em;
-}
-.yui-toolbar-container .yui-toolbar-titlebar h2 a {
-    text-decoration: none;
-    color: #000;
-    cursor: default;
-}
-/* If the toolbar is grouped the draghandle needs to be bigger */
-.yui-toolbar-container.yui-toolbar-grouped span.yui-toolbar-draghandle {
-    height: 40px;
-}
-
-/* Float the groups so they position nicely and zoom them for IE */
-.yui-toolbar-container .yui-toolbar-group {
-    float: left;
-    margin-right: .5em;
-    zoom: 1;
-}
-/* Setup the :after so that compliant browsers don't loose the bounding box */
-.yui-toolbar-container .yui-toolbar-group:after { display: block; clear: both; visibility: hidden; content: '.'; height: 0;}
-/* Grouped title styles */
-.yui-toolbar-container .yui-toolbar-group h3 {
-    font-size: 75%;
-    padding: 0 0 0 .25em;
-    margin: 0;
-}
-/* Style the separators with a left border */
-.yui-toolbar-container span.yui-toolbar-separator {
-    width: 2px;
-    padding: 0;
-    height: 18px;
-    margin: .2em 0 .2em .1em;
-    display: none;
-    float: left;
-
-}
-/* Set the height of a grouped separator to a little bit bigger */
-.yui-toolbar-container.yui-toolbar-grouped span.yui-toolbar-separator {
-    height: 45px;
-    *height: 50px;
-}
-
-/* Reset the height of a separator inside of a group */
-.yui-toolbar-container.yui-toolbar-grouped .yui-toolbar-group span.yui-toolbar-separator {
-    height: 18px;
-    display: block;
-}
-
-/* Kill the default styles of the list */
-.yui-toolbar-container ul li {
-    margin: 0;
-    padding: 0;
-    list-style-type: none;
-}
-/* Hide the group labels when the .yui-toolbar-nogrouplabels class is applied */
-.yui-toolbar-container .yui-toolbar-nogrouplabels h3 {
-    display: none;
-}
-
-/* Setup the default style of a button in the toolbar */
-.yui-toolbar-container .yui-push-button,
-.yui-toolbar-container .yui-color-button,
-.yui-toolbar-container .yui-menu-button {
-/*.yui-toolbar-container .yui-button {*/
-    position: relative;
-    cursor: pointer;
-}
-
-/* setup the default style of the A inside of the toolbar button */
-.yui-toolbar-container .yui-button .first-child, .yui-toolbar-container .yui-button .first-child a {
-    height: 100%;
-    width: 100%;
-    overflow: hidden;
-    font-size: 0px;
-}
-
-/* Setup the disabled state of a button */
-.yui-toolbar-container .yui-button-disabled {
-    cursor: default;
-}
-/* Disable the icon too */
-.yui-toolbar-container .yui-button-disabled .yui-toolbar-icon {
-    opacity: .5;
-    filter: alpha(opacity=50);
-}
-/*Disabled Spin button arrows*/
-.yui-toolbar-container .yui-button-disabled .up,
-.yui-toolbar-container .yui-button-disabled .down {
-    opacity: .5;
-    filter: alpha(opacity=50);
-}
-/* remove any padding from the A */
-.yui-toolbar-container .yui-button a {
-    overflow: hidden;
-}
-
-/* Override the default Button style for select menu*/
-.yui-toolbar-container .yui-toolbar-select .first-child a {
-    cursor: pointer;
-}
-
-/* Font Family Menu Style - This styles the menu items and the selected menu item */
-.yui-toolbar-fontname-arial { font-family: Arial; }
-.yui-toolbar-fontname-arial-black { font-family: Arial Black; }
-.yui-toolbar-fontname-comic-sans-ms { font-family: Comic Sans MS; }
-.yui-toolbar-fontname-courier-new { font-family: Courier New; }
-.yui-toolbar-fontname-times-new-roman { font-family: Times New Roman; }
-.yui-toolbar-fontname-verdana { font-family: Verdana; }
-.yui-toolbar-fontname-impact { font-family: Impact; }
-.yui-toolbar-fontname-lucida-console { font-family: Lucida Console; }
-.yui-toolbar-fontname-tahoma { font-family: Tahoma; }
-.yui-toolbar-fontname-trebuchet-ms { font-family: Trebuchet MS; }
-
-/* Spin Button */
-.yui-toolbar-container .yui-toolbar-spinbutton {
-    position: relative;
-}
-
-/* Setup the default style for the A */
-.yui-toolbar-container .yui-toolbar-spinbutton .first-child a {
-    z-index: 0;
-    opacity: 1;
-}
-
-/* Setup the position and style for the up and down arrows */
-.yui-toolbar-container .yui-toolbar-spinbutton a.up, .yui-toolbar-container .yui-toolbar-spinbutton a.down {
-    position: absolute;
-    display: block;
-    right: 0;
-    cursor: pointer;
-    z-index: 1;
-    padding: 0;
-    margin: 0;
-}
-/* Position all panels/overlays as absolute by default */
-.yui-toolbar-container .yui-overlay {
-    position: absolute;
-}
-/* Smash the default style for lists */
-.yui-toolbar-container .yui-overlay ul li {
-    margin: 0;
-    list-style-type: none;
-}
-
-/* Reset the z-index of the toolbar container so that menu's appear over the iframe in IE and Safari */
-.yui-toolbar-container {
-    z-index: 1;
-}
-
-/* The div around the iFrame */
-.yui-editor-container .yui-editor-editable-container {
-    position: relative;
-    z-index: 0;
-    width: 100%;
-}
-/* The disbled state of the Editor */
-.yui-editor-container .yui-editor-masked {
-    background-color: #CCC;
-    height: 100%;
-    width: 100%;
-    position: absolute;
-    top: 0;
-    left: 0;
-    opacity: .5;
-    filter: alpha(opacity=50);
-}
-/* Style the editable iframe to hide it */
-.yui-editor-container iframe {
-    border: 0px;
-    padding: 0;
-    margin: 0;
-    zoom: 1;
-    display: block;
-}
-/* Reset some padding on the editable iframes container */
-.yui-editor-container .yui-editor-editable {
-    padding: 0;
-    margin: 0;
-}
-/* Style the dom path box at the bottom of the editor */
-.yui-editor-container .dompath {
-    font-size: 85%;
-}
-/* Header styles for the Property Editor */
-.yui-editor-panel .hd {
-    text-align: left;
-    position: relative;
-}
-/* Setup some padding around the h3 */
-.yui-editor-panel .hd h3 {
-    font-weight: bold;
-    padding: 0.25em 0pt 0.25em 0.25em;
-    margin: 0;
-}
-
-/* set it to relative so we can position the close button - Zoom it for IE */
-.yui-editor-panel .bd {
-    width: 100%;
-    zoom: 1;
-    position: relative;
-}
-/* Setup some padding for the body container - Zoom it for IE */
-.yui-editor-panel .bd div.yui-editor-body-cont {
-    padding: .25em .1em;
-    zoom: 1;
-}
-/* Get the caret back in Geckp */
-.yui-editor-panel .bd .gecko form {
-    overflow: auto;
-}
-
-/* Setup the :after so that compliant browsers don't loose the bounding box */
-.yui-editor-panel .bd div.yui-editor-body-cont:after { display: block; clear: both; visibility: hidden; content: '.'; height: 0;}
-
-/* style the footer of the property editor */
-.yui-editor-panel .ft {
-    text-align: right;
-    width: 99%;
-    float: left;
-    clear: both;
-}
-
-/* Style the "tip" icon */
-.yui-editor-panel .ft span.tip {
-    display: block;
-    position: relative;
-    padding: .5em .5em .5em 23px;
-    text-align:left;
-    zoom: 1;
-}
-
-
-/* setup some form fields */
-.yui-editor-panel label {
-    clear: both;
-    float: left;
-    padding: 0;
-    width: 100%;
-    text-align: left;
-    zoom: 1;
-}
-/* This fixes the caret issue in Firefox */
-.yui-editor-panel .gecko label {
-    overflow: auto; 
-}
-/* more form fields */
-.yui-editor-panel label strong {
-    float: left;
-    width: 6em;
-}
-
-/* The remove link in the Link Property Editor */
-.yui-editor-panel .removeLink {
-    width: 80%;
-    text-align: right;
-}
-
-/* More form styling */
-.yui-editor-panel label input {
-    margin-left: .25em;
-    float: left;
-}
-
-.yui-editor-panel .yui-toolbar-group {
-    margin-bottom: 0.75em;
-}
-
-/* Image Padding in the Property Editor */
-.yui-editor-panel .yui-toolbar-group-padding {
-}
-
-/* Image Border in the Property Editor */
-.yui-editor-panel .yui-toolbar-group-border {
-}
-
-/* Image Text Flow in the Property Editor */
-.yui-editor-panel .yui-toolbar-group-textflow {
-}
-
-/* Image Height/Width in the Property Editor */
-.yui-editor-panel .height-width {
-    float: left;
-}
-/* Image Height/Width title */
-.yui-editor-panel .height-width h3 {
-}
-/* Image Height/Width container */
-.yui-editor-panel .height-width span {
-    font-style: italic;
-    display: block;
-    float: left;
-    overflow: visible;
-}
-/* Image Height/Width original info container */
-.yui-editor-panel .height-width span.info {
-    font-size: 70%;
-    margin-top: 3px;
-    float: none;
-}
-
-/* Border Size/Type button widths */
-.yui-editor-panel .yui-toolbar-bordersize, .yui-editor-panel .yui-toolbar-bordertype {
-    font-size: 75%;
-}
-
-/* Kill the separators in the Property Editor */
-.yui-editor-panel .yui-toolbar-container span.yui-toolbar-separator {
-    border: none;
-}
-
-/* Border Type solid */
-.yui-editor-panel .yui-toolbar-bordersize span a span,
-.yui-editor-panel .yui-toolbar-bordertype span a span {
-    display: block;
-    height: 8px;
-    left: 4px;
-    position: absolute;
-    top: 3px;
-    _top: -5px;
-    width: 24px;
-    text-indent: 52px;
-    font-size: 0%;
-}
-/* Border Type solid */
-.yui-editor-panel .yui-toolbar-bordertype span a span.yui-toolbar-bordertype-solid {
-    border-bottom: 1px solid black;
-}
-/* Border Type dotted */
-.yui-editor-panel .yui-toolbar-bordertype span a span.yui-toolbar-bordertype-dotted {
-    border-bottom: 1px dotted black;
-}
-/* Border Type dashed */
-.yui-editor-panel .yui-toolbar-bordertype span a span.yui-toolbar-bordertype-dashed {
-    border-bottom: 1px dashed black;
-}
-/* Border Size 0 */
-.yui-editor-panel .yui-toolbar-bordersize span a span.yui-toolbar-bordersize-0 {
-    *top: 0px;
-    text-indent: 0px;
-    font-size: 75%;
-}
-/* Border Size 1 */
-.yui-editor-panel .yui-toolbar-bordersize span a span.yui-toolbar-bordersize-1 {
-    border-bottom: 1px solid black;
-}
-/* Border Size 2 */
-.yui-editor-panel .yui-toolbar-bordersize span a span.yui-toolbar-bordersize-2 {
-    border-bottom: 2px solid black;
-}
-/* Border Size 3 */
-.yui-editor-panel .yui-toolbar-bordersize span a span.yui-toolbar-bordersize-3 {
-    top: 2px;
-    *top: -5px;
-    border-bottom: 3px solid black;
-}
-/* Border Size 4 */
-.yui-editor-panel .yui-toolbar-bordersize span a span.yui-toolbar-bordersize-4 {
-    top: 1px;
-    *top: -5px;
-    border-bottom: 4px solid black;
-}
-/* Border Size 5 */
-.yui-editor-panel .yui-toolbar-bordersize span a span.yui-toolbar-bordersize-5 {
-    top: 1px;
-    *top: -5px;
-    border-bottom: 5px solid black;
-}
-
-/* Border Size menu size */
-.yui-toolbar-container .yui-toolbar-bordersize-menu,
-.yui-toolbar-container .yui-toolbar-bordertype-menu {
-    width: 95px !important;
-}
-/* Border Size menu styles */
-.yui-toolbar-bordersize-menu .yuimenuitemlabel, .yui-toolbar-bordertype-menu .yuimenuitemlabel, 
-.yui-toolbar-bordersize-menu .yuimenuitemlabel, .yui-toolbar-bordertype-menu .yuimenuitemlabel:hover {
-    margin:0px 3px 7px 17px;
-}
-/* Border Size menu styles - Checked */
-.yui-toolbar-bordersize-menu .yuimenuitemlabel .checkedindicator, .yui-toolbar-bordertype-menu .yuimenuitemlabel .checkedindicator {
-    position: absolute;
-    left: -12px;
-    *top: 14px;
-    *left: 0px;
-}
-
-/* Border Size 1 - Menu Item */
-.yui-toolbar-bordersize-menu li.yui-toolbar-bordersize-1 a {
-    border-bottom: 1px solid black;
-    height: 14px;
-}
-/* Border Size 2 - Menu Item */
-.yui-toolbar-bordersize-menu li.yui-toolbar-bordersize-2 a {
-    border-bottom: 2px solid black;
-    height: 14px;
-}
-/* Border Size 3 - Menu Item */
-.yui-toolbar-bordersize-menu li.yui-toolbar-bordersize-3 a {
-    border-bottom: 3px solid black;
-    height: 14px;
-}
-/* Border Size 4 - Menu Item */
-.yui-toolbar-bordersize-menu li.yui-toolbar-bordersize-4 a {
-    border-bottom: 4px solid black;
-    height: 14px;
-}
-/* Border Size 5 - Menu Item */
-.yui-toolbar-bordersize-menu li.yui-toolbar-bordersize-5 a {
-    border-bottom: 5px solid black;
-    height: 14px;
-}
-
-
-/* Border Type Solid - Menu Item */
-.yui-toolbar-bordertype-menu li.yui-toolbar-bordertype-solid a {
-    border-bottom: 1px solid black;
-    height: 14px;
-}
-/* Border Type Dashed - Menu Item */
-.yui-toolbar-bordertype-menu li.yui-toolbar-bordertype-dashed a {
-    border-bottom: 1px dashed black;
-    height: 14px;
-}
-/* Border Type Dotted - Menu Item */
-.yui-toolbar-bordertype-menu li.yui-toolbar-bordertype-dotted a {
-    border-bottom: 1px dotted black;
-    height: 14px;
-}
-
-/* Hidden Headers for Accessibility */
-h2.yui-editor-skipheader, h3.yui-editor-skipheader {
-    height: 0;
-    margin: 0;
-    padding: 0;
-    border: none;
-    width: 0;
-    overflow: hidden;
-    position: absolute;
-}
-
-/* Setup the default look of a color menu and Zoom it for IE */
-.yui-toolbar-colors {
-    width: 133px;
-    zoom: 1;
-    display: none;
-    z-index: 100;
-    overflow: hidden;
-}
-
-/* Setup the :after so that compliant browsers don't loose the bounding box */
-.yui-toolbar-colors:after { display: block; clear: both; visibility: hidden; content: '.'; height: 0;}
-/* Style all of the A's so the float properly */
-.yui-toolbar-colors a {
-    height: 9px;
-    width: 9px;
-    float: left;
-    display: block;
-    overflow: hidden;
-    text-indent: 999px;
-    margin: 0;
-    cursor: pointer;
-    border: 1px solid #F6F7EE;
-}
-/* Put a little border around one that is hovered over */
-.yui-toolbar-colors a:hover {
-    border: 1px solid black;
-}
-
-/* Smash the inhertited Menu style */
-.yui-color-button-menu {
-    overflow: visible;
-    background-color: transparent;
-}
-
-/* This is the preview box at the bottom of the menu - Zoom it for IE */
-.yui-toolbar-colors span {
-    position: relative;
-    display: block;
-    padding: 3px;
-    overflow: hidden;
-    float: left;
-    width: 100%;
-    zoom: 1;
-}
-/* Setup the :after so that compliant browsers don't loose the bounding box */
-.yui-toolbar-colors span:after { display: block; clear: both; visibility: hidden; content: '.'; height: 0;}
-
-/* This is the box with the color preview in it */
-.yui-toolbar-colors span em {
-    height: 35px;
-    width: 30px;
-    float: left;
-    display: block;
-    overflow: hidden;
-    text-indent: 999px;
-    margin: 0.75px;
-    border: 1px solid black;
-}
-
-/* The container for the name and hex code */
-.yui-toolbar-colors span strong {
-    font-weight: normal;
-    padding-left: 3px;
-    display: block;
-    font-size: 85%;
-    float: left;
-    width: 65%;
-}
-
-
-.yui-toolbar-group-undoredo h3,
-.yui-toolbar-group-insertitem h3,
-.yui-toolbar-group-indentlist h3 {
-    width: 68px;
-}
-.yui-toolbar-group-indentlist2 h3 {
-    width: 122px;
-}
-.yui-toolbar-group-alignment h3 {
-    width: 130px;
-}
-
diff --git a/koha-tmpl/intranet-tmpl/prog/en/lib/yui/editor/assets/simpleeditor-core.css b/koha-tmpl/intranet-tmpl/prog/en/lib/yui/editor/assets/simpleeditor-core.css
deleted file mode 100644 (file)
index 839f7a5..0000000
+++ /dev/null
@@ -1,602 +0,0 @@
-/*
-Copyright (c) 2009, Yahoo! Inc. All rights reserved.
-Code licensed under the BSD License:
-http://developer.yahoo.net/yui/license.txt
-version: 2.8.0r4
-*/
-/* Set the cursor to busy when we are doing something */
-.yui-busy {
-    cursor: wait !important;
-}
-.yui-toolbar-container fieldset,
-.yui-editor-container fieldset {
-    padding: 0;
-    margin: 0;
-    border: 0;
-}
-.yui-toolbar-container legend {
-    display: none;
-}
-.yui-skin-sam .yui-toolbar-container .yui-button button,
-.yui-skin-sam .yui-toolbar-container .yui-button a,
-.yui-skin-sam .yui-toolbar-container .yui-button a:visited {
-    font-size: 0px;
-}
-.yui-skin-sam .yui-toolbar-container .yui-toolbar-select button,
-.yui-skin-sam .yui-toolbar-container .yui-toolbar-select a,
-.yui-skin-sam .yui-toolbar-container .yui-toolbar-select a:visited,
-.yui-skin-sam .yui-toolbar-container .yui-toolbar-spinbutton button,
-.yui-skin-sam .yui-toolbar-container .yui-toolbar-spinbutton a,
-.yui-skin-sam .yui-toolbar-container .yui-toolbar-spinbutton a:visited {
-    font-size: 12px;
-}
-.yui-skin-sam .yui-toolbar-container .yui-toolbar-spinbutton a.up,
-.yui-skin-sam .yui-toolbar-container .yui-toolbar-spinbutton a.down {
-    font-size: 0;
-    line-height: 0;
-    padding: 0;
-}
-
-/* Setup the container with some padding and zoom it for IE's hasLayout */
-.yui-toolbar-container .yui-toolbar-subcont {
-    padding: .25em 0;
-    zoom: 1;
-}
-/* When collapsed set the toolbars container to display none */
-.yui-toolbar-container-collapsed .yui-toolbar-subcont {
-    display: none;
-}
-/* Setup the :after so that compliant browsers don't loose the bounding box */
-.yui-toolbar-container .yui-toolbar-subcont:after { display: block; clear: both; visibility: hidden; content: '.'; height: 0;}
-
-/* Drag handle for the toolbar's draggable property */
-.yui-toolbar-container span.yui-toolbar-draghandle {
-    cursor: move;
-    border-left: 1px solid #999;
-    border-right: 1px solid #999;
-    overflow: hidden;
-    text-indent: 77777px;
-    width: 2px;
-    height: 20px;
-    display: block;
-    clear: none;
-    float: left;
-    margin: 0 0 0 .2em;
-}
-/* If the titlebar is draggable, the set the cursor */
-.yui-toolbar-container .yui-toolbar-titlebar.draggable {
-    cursor: move;
-}
-/* Set the titlebar to relative so we can position the collapse button */
-.yui-toolbar-container .yui-toolbar-titlebar {
-    position: relative;
-}
-/* Toolbar's titlebar styles */
-.yui-toolbar-container .yui-toolbar-titlebar h2 {
-    font-weight: bold;
-    letter-spacing: 0;
-    border: none;
-    color: #000;
-    margin: 0;
-    padding: .2em;
-}
-.yui-toolbar-container .yui-toolbar-titlebar h2 a {
-    text-decoration: none;
-    color: #000;
-    cursor: default;
-}
-/* If the toolbar is grouped the draghandle needs to be bigger */
-.yui-toolbar-container.yui-toolbar-grouped span.yui-toolbar-draghandle {
-    height: 40px;
-}
-
-/* Float the groups so they position nicely and zoom them for IE */
-.yui-toolbar-container .yui-toolbar-group {
-    float: left;
-    margin-right: .5em;
-    zoom: 1;
-}
-/* Setup the :after so that compliant browsers don't loose the bounding box */
-.yui-toolbar-container .yui-toolbar-group:after { display: block; clear: both; visibility: hidden; content: '.'; height: 0;}
-/* Grouped title styles */
-.yui-toolbar-container .yui-toolbar-group h3 {
-    font-size: 75%;
-    padding: 0 0 0 .25em;
-    margin: 0;
-}
-/* Style the separators with a left border */
-.yui-toolbar-container span.yui-toolbar-separator {
-    width: 2px;
-    padding: 0;
-    height: 18px;
-    margin: .2em 0 .2em .1em;
-    display: none;
-    float: left;
-
-}
-/* Set the height of a grouped separator to a little bit bigger */
-.yui-toolbar-container.yui-toolbar-grouped span.yui-toolbar-separator {
-    height: 45px;
-    *height: 50px;
-}
-
-/* Reset the height of a separator inside of a group */
-.yui-toolbar-container.yui-toolbar-grouped .yui-toolbar-group span.yui-toolbar-separator {
-    height: 18px;
-    display: block;
-}
-
-/* Kill the default styles of the list */
-.yui-toolbar-container ul li {
-    margin: 0;
-    padding: 0;
-    list-style-type: none;
-}
-/* Hide the group labels when the .yui-toolbar-nogrouplabels class is applied */
-.yui-toolbar-container .yui-toolbar-nogrouplabels h3 {
-    display: none;
-}
-
-/* Setup the default style of a button in the toolbar */
-.yui-toolbar-container .yui-push-button,
-.yui-toolbar-container .yui-color-button,
-.yui-toolbar-container .yui-menu-button {
-/*.yui-toolbar-container .yui-button {*/
-    position: relative;
-    cursor: pointer;
-}
-
-/* setup the default style of the A inside of the toolbar button */
-.yui-toolbar-container .yui-button .first-child, .yui-toolbar-container .yui-button .first-child a {
-    height: 100%;
-    width: 100%;
-    overflow: hidden;
-    font-size: 0px;
-}
-
-/* Setup the disabled state of a button */
-.yui-toolbar-container .yui-button-disabled {
-    cursor: default;
-}
-/* Disable the icon too */
-.yui-toolbar-container .yui-button-disabled .yui-toolbar-icon {
-    opacity: .5;
-    filter: alpha(opacity=50);
-}
-/*Disabled Spin button arrows*/
-.yui-toolbar-container .yui-button-disabled .up,
-.yui-toolbar-container .yui-button-disabled .down {
-    opacity: .5;
-    filter: alpha(opacity=50);
-}
-/* remove any padding from the A */
-.yui-toolbar-container .yui-button a {
-    overflow: hidden;
-}
-
-/* Override the default Button style for select menu*/
-.yui-toolbar-container .yui-toolbar-select .first-child a {
-    cursor: pointer;
-}
-
-/* Font Family Menu Style - This styles the menu items and the selected menu item */
-.yui-toolbar-fontname-arial { font-family: Arial; }
-.yui-toolbar-fontname-arial-black { font-family: Arial Black; }
-.yui-toolbar-fontname-comic-sans-ms { font-family: Comic Sans MS; }
-.yui-toolbar-fontname-courier-new { font-family: Courier New; }
-.yui-toolbar-fontname-times-new-roman { font-family: Times New Roman; }
-.yui-toolbar-fontname-verdana { font-family: Verdana; }
-.yui-toolbar-fontname-impact { font-family: Impact; }
-.yui-toolbar-fontname-lucida-console { font-family: Lucida Console; }
-.yui-toolbar-fontname-tahoma { font-family: Tahoma; }
-.yui-toolbar-fontname-trebuchet-ms { font-family: Trebuchet MS; }
-
-/* Spin Button */
-.yui-toolbar-container .yui-toolbar-spinbutton {
-    position: relative;
-}
-
-/* Setup the default style for the A */
-.yui-toolbar-container .yui-toolbar-spinbutton .first-child a {
-    z-index: 0;
-    opacity: 1;
-}
-
-/* Setup the position and style for the up and down arrows */
-.yui-toolbar-container .yui-toolbar-spinbutton a.up, .yui-toolbar-container .yui-toolbar-spinbutton a.down {
-    position: absolute;
-    display: block;
-    right: 0;
-    cursor: pointer;
-    z-index: 1;
-    padding: 0;
-    margin: 0;
-}
-/* Position all panels/overlays as absolute by default */
-.yui-toolbar-container .yui-overlay {
-    position: absolute;
-}
-/* Smash the default style for lists */
-.yui-toolbar-container .yui-overlay ul li {
-    margin: 0;
-    list-style-type: none;
-}
-
-/* Reset the z-index of the toolbar container so that menu's appear over the iframe in IE and Safari */
-.yui-toolbar-container {
-    z-index: 1;
-}
-
-/* The div around the iFrame */
-.yui-editor-container .yui-editor-editable-container {
-    position: relative;
-    z-index: 0;
-    width: 100%;
-}
-/* The disbled state of the Editor */
-.yui-editor-container .yui-editor-masked {
-    background-color: #CCC;
-    height: 100%;
-    width: 100%;
-    position: absolute;
-    top: 0;
-    left: 0;
-    opacity: .5;
-    filter: alpha(opacity=50);
-}
-/* Style the editable iframe to hide it */
-.yui-editor-container iframe {
-    border: 0px;
-    padding: 0;
-    margin: 0;
-    zoom: 1;
-    display: block;
-}
-/* Reset some padding on the editable iframes container */
-.yui-editor-container .yui-editor-editable {
-    padding: 0;
-    margin: 0;
-}
-/* Style the dom path box at the bottom of the editor */
-.yui-editor-container .dompath {
-    font-size: 85%;
-}
-/* Header styles for the Property Editor */
-.yui-editor-panel .hd {
-    text-align: left;
-    position: relative;
-}
-/* Setup some padding around the h3 */
-.yui-editor-panel .hd h3 {
-    font-weight: bold;
-    padding: 0.25em 0pt 0.25em 0.25em;
-    margin: 0;
-}
-
-/* set it to relative so we can position the close button - Zoom it for IE */
-.yui-editor-panel .bd {
-    width: 100%;
-    zoom: 1;
-    position: relative;
-}
-/* Setup some padding for the body container - Zoom it for IE */
-.yui-editor-panel .bd div.yui-editor-body-cont {
-    padding: .25em .1em;
-    zoom: 1;
-}
-/* Get the caret back in Geckp */
-.yui-editor-panel .bd .gecko form {
-    overflow: auto;
-}
-
-/* Setup the :after so that compliant browsers don't loose the bounding box */
-.yui-editor-panel .bd div.yui-editor-body-cont:after { display: block; clear: both; visibility: hidden; content: '.'; height: 0;}
-
-/* style the footer of the property editor */
-.yui-editor-panel .ft {
-    text-align: right;
-    width: 99%;
-    float: left;
-    clear: both;
-}
-
-/* Style the "tip" icon */
-.yui-editor-panel .ft span.tip {
-    display: block;
-    position: relative;
-    padding: .5em .5em .5em 23px;
-    text-align:left;
-    zoom: 1;
-}
-
-
-/* setup some form fields */
-.yui-editor-panel label {
-    clear: both;
-    float: left;
-    padding: 0;
-    width: 100%;
-    text-align: left;
-    zoom: 1;
-}
-/* This fixes the caret issue in Firefox */
-.yui-editor-panel .gecko label {
-    overflow: auto; 
-}
-/* more form fields */
-.yui-editor-panel label strong {
-    float: left;
-    width: 6em;
-}
-
-/* The remove link in the Link Property Editor */
-.yui-editor-panel .removeLink {
-    width: 80%;
-    text-align: right;
-}
-
-/* More form styling */
-.yui-editor-panel label input {
-    margin-left: .25em;
-    float: left;
-}
-
-.yui-editor-panel .yui-toolbar-group {
-    margin-bottom: 0.75em;
-}
-
-/* Image Padding in the Property Editor */
-.yui-editor-panel .yui-toolbar-group-padding {
-}
-
-/* Image Border in the Property Editor */
-.yui-editor-panel .yui-toolbar-group-border {
-}
-
-/* Image Text Flow in the Property Editor */
-.yui-editor-panel .yui-toolbar-group-textflow {
-}
-
-/* Image Height/Width in the Property Editor */
-.yui-editor-panel .height-width {
-    float: left;
-}
-/* Image Height/Width title */
-.yui-editor-panel .height-width h3 {
-}
-/* Image Height/Width container */
-.yui-editor-panel .height-width span {
-    font-style: italic;
-    display: block;
-    float: left;
-    overflow: visible;
-}
-/* Image Height/Width original info container */
-.yui-editor-panel .height-width span.info {
-    font-size: 70%;
-    margin-top: 3px;
-    float: none;
-}
-
-/* Border Size/Type button widths */
-.yui-editor-panel .yui-toolbar-bordersize, .yui-editor-panel .yui-toolbar-bordertype {
-    font-size: 75%;
-}
-
-/* Kill the separators in the Property Editor */
-.yui-editor-panel .yui-toolbar-container span.yui-toolbar-separator {
-    border: none;
-}
-
-/* Border Type solid */
-.yui-editor-panel .yui-toolbar-bordersize span a span,
-.yui-editor-panel .yui-toolbar-bordertype span a span {
-    display: block;
-    height: 8px;
-    left: 4px;
-    position: absolute;
-    top: 3px;
-    _top: -5px;
-    width: 24px;
-    text-indent: 52px;
-    font-size: 0%;
-}
-/* Border Type solid */
-.yui-editor-panel .yui-toolbar-bordertype span a span.yui-toolbar-bordertype-solid {
-    border-bottom: 1px solid black;
-}
-/* Border Type dotted */
-.yui-editor-panel .yui-toolbar-bordertype span a span.yui-toolbar-bordertype-dotted {
-    border-bottom: 1px dotted black;
-}
-/* Border Type dashed */
-.yui-editor-panel .yui-toolbar-bordertype span a span.yui-toolbar-bordertype-dashed {
-    border-bottom: 1px dashed black;
-}
-/* Border Size 0 */
-.yui-editor-panel .yui-toolbar-bordersize span a span.yui-toolbar-bordersize-0 {
-    *top: 0px;
-    text-indent: 0px;
-    font-size: 75%;
-}
-/* Border Size 1 */
-.yui-editor-panel .yui-toolbar-bordersize span a span.yui-toolbar-bordersize-1 {
-    border-bottom: 1px solid black;
-}
-/* Border Size 2 */
-.yui-editor-panel .yui-toolbar-bordersize span a span.yui-toolbar-bordersize-2 {
-    border-bottom: 2px solid black;
-}
-/* Border Size 3 */
-.yui-editor-panel .yui-toolbar-bordersize span a span.yui-toolbar-bordersize-3 {
-    top: 2px;
-    *top: -5px;
-    border-bottom: 3px solid black;
-}
-/* Border Size 4 */
-.yui-editor-panel .yui-toolbar-bordersize span a span.yui-toolbar-bordersize-4 {
-    top: 1px;
-    *top: -5px;
-    border-bottom: 4px solid black;
-}
-/* Border Size 5 */
-.yui-editor-panel .yui-toolbar-bordersize span a span.yui-toolbar-bordersize-5 {
-    top: 1px;
-    *top: -5px;
-    border-bottom: 5px solid black;
-}
-
-/* Border Size menu size */
-.yui-toolbar-container .yui-toolbar-bordersize-menu,
-.yui-toolbar-container .yui-toolbar-bordertype-menu {
-    width: 95px !important;
-}
-/* Border Size menu styles */
-.yui-toolbar-bordersize-menu .yuimenuitemlabel, .yui-toolbar-bordertype-menu .yuimenuitemlabel, 
-.yui-toolbar-bordersize-menu .yuimenuitemlabel, .yui-toolbar-bordertype-menu .yuimenuitemlabel:hover {
-    margin:0px 3px 7px 17px;
-}
-/* Border Size menu styles - Checked */
-.yui-toolbar-bordersize-menu .yuimenuitemlabel .checkedindicator, .yui-toolbar-bordertype-menu .yuimenuitemlabel .checkedindicator {
-    position: absolute;
-    left: -12px;
-    *top: 14px;
-    *left: 0px;
-}
-
-/* Border Size 1 - Menu Item */
-.yui-toolbar-bordersize-menu li.yui-toolbar-bordersize-1 a {
-    border-bottom: 1px solid black;
-    height: 14px;
-}
-/* Border Size 2 - Menu Item */
-.yui-toolbar-bordersize-menu li.yui-toolbar-bordersize-2 a {
-    border-bottom: 2px solid black;
-    height: 14px;
-}
-/* Border Size 3 - Menu Item */
-.yui-toolbar-bordersize-menu li.yui-toolbar-bordersize-3 a {
-    border-bottom: 3px solid black;
-    height: 14px;
-}
-/* Border Size 4 - Menu Item */
-.yui-toolbar-bordersize-menu li.yui-toolbar-bordersize-4 a {
-    border-bottom: 4px solid black;
-    height: 14px;
-}
-/* Border Size 5 - Menu Item */
-.yui-toolbar-bordersize-menu li.yui-toolbar-bordersize-5 a {
-    border-bottom: 5px solid black;
-    height: 14px;
-}
-
-
-/* Border Type Solid - Menu Item */
-.yui-toolbar-bordertype-menu li.yui-toolbar-bordertype-solid a {
-    border-bottom: 1px solid black;
-    height: 14px;
-}
-/* Border Type Dashed - Menu Item */
-.yui-toolbar-bordertype-menu li.yui-toolbar-bordertype-dashed a {
-    border-bottom: 1px dashed black;
-    height: 14px;
-}
-/* Border Type Dotted - Menu Item */
-.yui-toolbar-bordertype-menu li.yui-toolbar-bordertype-dotted a {
-    border-bottom: 1px dotted black;
-    height: 14px;
-}
-
-/* Hidden Headers for Accessibility */
-h2.yui-editor-skipheader, h3.yui-editor-skipheader {
-    height: 0;
-    margin: 0;
-    padding: 0;
-    border: none;
-    width: 0;
-    overflow: hidden;
-    position: absolute;
-}
-
-/* Setup the default look of a color menu and Zoom it for IE */
-.yui-toolbar-colors {
-    width: 133px;
-    zoom: 1;
-    display: none;
-    z-index: 100;
-    overflow: hidden;
-}
-
-/* Setup the :after so that compliant browsers don't loose the bounding box */
-.yui-toolbar-colors:after { display: block; clear: both; visibility: hidden; content: '.'; height: 0;}
-/* Style all of the A's so the float properly */
-.yui-toolbar-colors a {
-    height: 9px;
-    width: 9px;
-    float: left;
-    display: block;
-    overflow: hidden;
-    text-indent: 999px;
-    margin: 0;
-    cursor: pointer;
-    border: 1px solid #F6F7EE;
-}
-/* Put a little border around one that is hovered over */
-.yui-toolbar-colors a:hover {
-    border: 1px solid black;
-}
-
-/* Smash the inhertited Menu style */
-.yui-color-button-menu {
-    overflow: visible;
-    background-color: transparent;
-}
-
-/* This is the preview box at the bottom of the menu - Zoom it for IE */
-.yui-toolbar-colors span {
-    position: relative;
-    display: block;
-    padding: 3px;
-    overflow: hidden;
-    float: left;
-    width: 100%;
-    zoom: 1;
-}
-/* Setup the :after so that compliant browsers don't loose the bounding box */
-.yui-toolbar-colors span:after { display: block; clear: both; visibility: hidden; content: '.'; height: 0;}
-
-/* This is the box with the color preview in it */
-.yui-toolbar-colors span em {
-    height: 35px;
-    width: 30px;
-    float: left;
-    display: block;
-    overflow: hidden;
-    text-indent: 999px;
-    margin: 0.75px;
-    border: 1px solid black;
-}
-
-/* The container for the name and hex code */
-.yui-toolbar-colors span strong {
-    font-weight: normal;
-    padding-left: 3px;
-    display: block;
-    font-size: 85%;
-    float: left;
-    width: 65%;
-}
-
-
-.yui-toolbar-group-undoredo h3,
-.yui-toolbar-group-insertitem h3,
-.yui-toolbar-group-indentlist h3 {
-    width: 68px;
-}
-.yui-toolbar-group-indentlist2 h3 {
-    width: 122px;
-}
-.yui-toolbar-group-alignment h3 {
-    width: 130px;
-}
-
diff --git a/koha-tmpl/intranet-tmpl/prog/en/lib/yui/editor/assets/skins/sam/blankimage.png b/koha-tmpl/intranet-tmpl/prog/en/lib/yui/editor/assets/skins/sam/blankimage.png
deleted file mode 100644 (file)
index b87bb24..0000000
Binary files a/koha-tmpl/intranet-tmpl/prog/en/lib/yui/editor/assets/skins/sam/blankimage.png and /dev/null differ
diff --git a/koha-tmpl/intranet-tmpl/prog/en/lib/yui/editor/assets/skins/sam/editor-knob.gif b/koha-tmpl/intranet-tmpl/prog/en/lib/yui/editor/assets/skins/sam/editor-knob.gif
deleted file mode 100644 (file)
index 03feab3..0000000
Binary files a/koha-tmpl/intranet-tmpl/prog/en/lib/yui/editor/assets/skins/sam/editor-knob.gif and /dev/null differ
diff --git a/koha-tmpl/intranet-tmpl/prog/en/lib/yui/editor/assets/skins/sam/editor-skin.css b/koha-tmpl/intranet-tmpl/prog/en/lib/yui/editor/assets/skins/sam/editor-skin.css
deleted file mode 100644 (file)
index 1f131c3..0000000
+++ /dev/null
@@ -1,711 +0,0 @@
-/*
-Copyright (c) 2009, Yahoo! Inc. All rights reserved.
-Code licensed under the BSD License:
-http://developer.yahoo.net/yui/license.txt
-version: 2.8.0r4
-*/
-/* Place the border around the editor */
-.yui-skin-sam .yui-editor-container {
-    border: 1px solid #808080;
-}
-/* Color the border of the container */
-.yui-skin-sam .yui-toolbar-container {
-    zoom: 1;
-}
-/* Load the background image on the Toolbars titlebar */
-.yui-skin-sam .yui-toolbar-container .yui-toolbar-titlebar {
-    background: url(../../../../assets/skins/sam/sprite.png) repeat-x 0 -200px;
-    position: relative;
-}
-.yui-skin-sam .yui-editor-container .draggable .yui-toolbar-titlebar {
-    cursor: move;
-}
-
-/* Give the titlebar some color and padding */
-.yui-skin-sam .yui-toolbar-container .yui-toolbar-titlebar h2 {
-    color: #000000;
-    font-weight: bold;
-    margin: 0;
-    padding: 0.3em 1em;
-    font-size: 100%;
-    text-align: left;
-}
-
-/* Give the toolbars groups titles some color and padding */
-.yui-skin-sam .yui-toolbar-container .yui-toolbar-group h3 {
-    color: #808080;
-    font-size: 75%;
-    margin: 1em 0 0;
-    padding-bottom: 0;
-    padding-left: 0.25em;
-    text-align: left;
-}
-
-/* Hide all of the sepatators borders */
-.yui-toolbar-container span.yui-toolbar-separator {
-    border: none;
-    text-indent: 33px;
-    overflow: hidden;
-    margin: 0 .25em;
-}
-
-/* Background color of the toolbar */
-.yui-skin-sam .yui-toolbar-container {
-    background-color: #F2F2F2;
-}
-
-/* Add some padding to the toolbars sub container */
-.yui-skin-sam .yui-toolbar-container .yui-toolbar-subcont {
-    padding: 0 1em 0.35em;
-    border-bottom:1px solid #808080;
-}
-/* When the collapsed class is added, add a border to the bottom of the titlebar (since the toolbar itself is display none) */
-.yui-skin-sam .yui-toolbar-container-collapsed .yui-toolbar-titlebar {
-    border-bottom:1px solid #808080;
-}
-
-/* Remove the shadows from the menus in the toolbar - Menu.css override */
-.yui-skin-sam .yui-editor-container .visible .yui-menu-shadow,
-.yui-skin-sam .yui-editor-panel .visible .yui-menu-shadow {
-    display: none;
-}
-
-/* Remove padding/margin from lists */
-.yui-skin-sam .yui-editor-container ul {
-    list-style-type: none;
-    margin: 0;
-    padding: 0;
-}
-/* Remove padding/margin from list items */
-.yui-skin-sam .yui-editor-container ul li {
-    list-style-type: none;
-    margin: 0;
-    padding: 0;
-}
-/* Float the LI's that wrap the buttons */
-.yui-skin-sam .yui-toolbar-group ul li.yui-toolbar-groupitem {
-    float: left;
-}
-
-/* Set the color and the border of the dompath container at the bottom of the editor */
-.yui-skin-sam .yui-editor-container .dompath {
-    background-color: #F2F2F2;
-    border-top:1px solid #808080;
-    color: #999;
-    text-align: left;
-    padding: 0.25em;
-}
-
-/* Set the image for the collapse button on the toolbar */
-.yui-skin-sam .yui-toolbar-container .collapse {
-    background: url(../../../../assets/skins/sam/sprite.png) no-repeat 0 -400px;
-}
-/* Set the image for the collapse button on the toolbar */
-.yui-skin-sam .yui-toolbar-container .collapsed {
-    background: url(../../../../assets/skins/sam/sprite.png) no-repeat 0 -350px;
-}
-/* Position the image and the container */
-.yui-skin-sam .yui-toolbar-container .yui-toolbar-titlebar span.collapse {
-    cursor: pointer;
-    position: absolute;
-    top: 4px;
-    right: 2px;
-    display: block;
-    overflow: hidden;
-    height: 15px;
-    width: 15px;
-    text-indent: 9999px;
-}
-
-/* Set the default styles for the buttons */
-.yui-skin-sam .yui-toolbar-container .yui-push-button,
-.yui-skin-sam .yui-toolbar-container .yui-color-button,
-.yui-skin-sam .yui-toolbar-container .yui-menu-button {
-    background: url(../../../../assets/skins/sam/sprite.png) repeat-x 0 0;
-    position: relative;
-    display: block;
-    height: 22px;
-    width: 30px;
-    _font-size: 0;
-    margin: 0;
-    border-color: #808080;
-    color: #f2f2f2;
-    border-style: solid;
-    border-width: 1px 0;
-    zoom: 1;
-}
-/* Set the height of the buttons and pad them on the left for the icon */
-.yui-skin-sam .yui-toolbar-container .yui-push-button a,
-.yui-skin-sam .yui-toolbar-container .yui-color-button a,
-.yui-skin-sam .yui-toolbar-container .yui-menu-button a {
-    padding-left: 35px;
-    height: 20px;
-    text-decoration: none;
-    font-size: 0px;
-    line-height: 2;
-    display: block;
-    color: #000;
-    overflow: hidden;
-    white-space: nowrap;
-}
-.yui-skin-sam .yui-toolbar-container .yui-toolbar-spinbutton a,
-.yui-skin-sam .yui-toolbar-container .yui-toolbar-select a {
-    font-size: 12px;
-}
-/* Set the height of the buttons and pad them on the left for the icon */
-.yui-skin-sam .yui-toolbar-container .yui-push-button .first-child,
-.yui-skin-sam .yui-toolbar-container .yui-color-button .first-child,
-.yui-skin-sam .yui-toolbar-container .yui-menu-button .first-child {
-    border-color: #808080;
-    border-style: solid;
-    border-width: 0 1px;
-    margin: 0 -1px;
-    display: block;
-    position: relative;
-}
-.yui-skin-sam .yui-toolbar-container .yui-push-button-disabled .first-child,
-.yui-skin-sam .yui-toolbar-container .yui-color-button-disabled .first-child,
-.yui-skin-sam .yui-toolbar-container .yui-menu-button-disabled .first-child {
-    border-color: #ccc;
-}
-.yui-skin-sam .yui-toolbar-container .yui-push-button-disabled a,
-.yui-skin-sam .yui-toolbar-container .yui-color-button-disabled a,
-.yui-skin-sam .yui-toolbar-container .yui-menu-button-disabled a {
-    color: #A6A6A6;
-    cursor: default;
-}
-.yui-skin-sam .yui-toolbar-container .yui-push-button-disabled,
-.yui-skin-sam .yui-toolbar-container .yui-color-button-disabled,
-.yui-skin-sam .yui-toolbar-container .yui-menu-button-disabled {
-    border-color: #ccc;
-}
-/* IE needs a little help positioning the first child */
-.yui-skin-sam .yui-toolbar-container .yui-button .first-child {
-    *left: 0px;
-}
-
-/* Font Family Drop Down */
-.yui-skin-sam .yui-toolbar-container .yui-toolbar-fontname {
-    width: 135px;
-}
-
-/* Header Drop Down */
-.yui-skin-sam .yui-toolbar-container .yui-toolbar-heading {
-    width: 92px;
-}
-
-/* Handle the hover state of the buttons */
-.yui-skin-sam .yui-toolbar-container .yui-button-hover {
-    background:url(../../../../assets/skins/sam/sprite.png) repeat-x 0 -1300px;
-    border-color: #808080;
-}
-
-/* Handle the selected state of the buttons */
-.yui-skin-sam .yui-toolbar-container .yui-button-selected {
-    background: url(../../../../assets/skins/sam/sprite.png) repeat-x 0 -1700px;
-    border-color: #808080;
-}
-/* When the nogrouplabels class is applied, set the h3's to display none */
-.yui-skin-sam .yui-toolbar-container .yui-toolbar-nogrouplabels h3 {
-    display: none;
-}
-/* When not showing the h3 group labels, add some margin to make up for them*/
-.yui-skin-sam .yui-toolbar-container .yui-toolbar-nogrouplabels .yui-toolbar-group {
-       margin-top: .75em;
-}
-
-
-/* Handle the icon placeholder for the buttons
-    This is very important - position of this must be absolute.
-    If it is not positioned absolute, IE will place it over the a in the Toolbar
-    Doing this will cause the editor to loose focus and loose the selection.
-*/
-.yui-skin-sam .yui-toolbar-container .yui-push-button span.yui-toolbar-icon,
-.yui-skin-sam .yui-toolbar-container .yui-color-button span.yui-toolbar-icon,
-.yui-skin-sam .yui-toolbar-container .yui-menu-button span.yui-toolbar-icon {
-    display: block;
-    position: absolute;
-    top: 2px;
-    height: 18px;
-    width: 18px;
-    overflow: hidden;
-    background: url(editor-sprite.gif) no-repeat 30px 30px;
-}
-
-/* Swap out the image to an active image */
-.yui-skin-sam .yui-toolbar-container .yui-button-selected span.yui-toolbar-icon, .yui-skin-sam .yui-toolbar-container .yui-button-hover span.yui-toolbar-icon {
-    background-image: url(editor-sprite-active.gif);
-}
-/* Change the defaults to make them look more like the editor */
-.yui-skin-sam .yui-toolbar-container .visible .yuimenuitemlabel {
-    cursor: pointer;
-    color: #000;
-    *position: relative;
-}
-
-/* Set the background color of all menu containers */
-.yui-skin-sam .yui-toolbar-container .yui-button-menu {
-    background-color: #fff;
-}
-/* Adding this style to Menu's allows the scrolled menu to work in IE */
-.yui-skin-sam .yui-toolbar-container .yui-button-menu .yui-menu-body-scrolled {
-    position: relative;
-}
-/* Set the background of all menu items that are selected */
-.yui-skin-sam div.yuimenu li.selected {
-    background-color: #B3D4FF;
-}
-/* Set the color of the hrefs in a selected menu item */
-.yui-skin-sam div.yuimenu li.selected a.selected {
-    color: #000;
-}
-/* Setting the background position of the sprite */
-.yui-skin-sam .yui-toolbar-container .yui-toolbar-bold span.yui-toolbar-icon {
-    background-position: 0 0;
-    left: 5px;
-}
-/* Setting the background position of the sprite */
-.yui-skin-sam .yui-toolbar-container .yui-toolbar-strikethrough span.yui-toolbar-icon {
-    background-position: 0 -108px;
-    left: 5px;
-}
-/* Setting the background position of the sprite */
-.yui-skin-sam .yui-toolbar-container .yui-toolbar-italic span.yui-toolbar-icon {
-    background-position: 0 -36px;
-    left: 5px;
-}
-/* Setting the background position of the sprite */
-.yui-skin-sam .yui-toolbar-container .yui-toolbar-undo span.yui-toolbar-icon {
-    background-position: 0 -1326px;
-    left: 5px;
-}
-/* Setting the background position of the sprite */
-.yui-skin-sam .yui-toolbar-container .yui-toolbar-redo span.yui-toolbar-icon {
-    background-position: 0 -1355px;
-    left: 5px;
-}
-/* Setting the background position of the sprite */
-.yui-skin-sam .yui-toolbar-container .yui-toolbar-underline span.yui-toolbar-icon {
-    background-position: 0 -72px;
-    left: 5px;
-}
-/* Setting the background position of the sprite */
-.yui-skin-sam .yui-toolbar-container .yui-toolbar-subscript span.yui-toolbar-icon {
-    background-position: 0 -180px;
-    left: 5px;
-}
-/* Setting the background position of the sprite */
-.yui-skin-sam .yui-toolbar-container .yui-toolbar-superscript span.yui-toolbar-icon {
-    background-position: 0 -144px;
-    left: 5px;
-}
-/* Setting the background position of the sprite */
-.yui-skin-sam .yui-toolbar-container .yui-toolbar-forecolor span.yui-toolbar-icon {
-    background-position: 0 -216px;
-    left: 5px;
-}
-/* Setting the background position of the sprite */
-.yui-skin-sam .yui-toolbar-container .yui-toolbar-backcolor span.yui-toolbar-icon {
-    background-position: 0 -288px;
-    left: 5px;
-}
-/* Setting the background position of the sprite */
-.yui-skin-sam .yui-toolbar-container .yui-toolbar-justifyleft span.yui-toolbar-icon {
-    background-position: 0 -324px;
-    left: 5px;
-}
-/* Setting the background position of the sprite */
-.yui-skin-sam .yui-toolbar-container .yui-toolbar-justifycenter span.yui-toolbar-icon {
-    background-position: 0 -360px;
-    left: 5px;
-}
-/* Setting the background position of the sprite */
-.yui-skin-sam .yui-toolbar-container .yui-toolbar-justifyright span.yui-toolbar-icon {
-    background-position: 0 -396px;
-    left: 5px;
-}
-/* Setting the background position of the sprite */
-.yui-skin-sam .yui-toolbar-container .yui-toolbar-justifyfull span.yui-toolbar-icon {
-    background-position: 0 -432px;
-    left: 5px;
-}
-/* Setting the background position of the sprite */
-.yui-skin-sam .yui-toolbar-container .yui-toolbar-indent span.yui-toolbar-icon {
-    background-position: 0 -720px;
-    left: 5px;
-}
-/* Setting the background position of the sprite */
-.yui-skin-sam .yui-toolbar-container .yui-toolbar-outdent span.yui-toolbar-icon {
-    background-position: 0 -684px;
-    left: 5px;
-}
-/* Setting the background position of the sprite */
-.yui-skin-sam .yui-toolbar-container .yui-toolbar-createlink span.yui-toolbar-icon {
-    background-position: 0 -792px;
-    left: 5px;
-}
-/* Setting the background position of the sprite */
-.yui-skin-sam .yui-toolbar-container .yui-toolbar-insertimage span.yui-toolbar-icon {
-    background-position: 1px -756px;
-    left: 5px;
-}
-/* Setting the background position of the sprite */
-.yui-skin-sam .yui-toolbar-container .yui-toolbar-left span.yui-toolbar-icon {
-    background-position: 0 -972px;
-    left: 5px;
-}
-/* Setting the background position of the sprite */
-.yui-skin-sam .yui-toolbar-container .yui-toolbar-right span.yui-toolbar-icon {
-    background-position: 0 -936px;
-    left: 5px;
-}
-/* Setting the background position of the sprite */
-.yui-skin-sam .yui-toolbar-container .yui-toolbar-inline span.yui-toolbar-icon {
-    background-position: 0 -900px;
-    left: 5px;
-}
-/* Setting the background position of the sprite */
-.yui-skin-sam .yui-toolbar-container .yui-toolbar-block span.yui-toolbar-icon {
-    background-position: 0 -864px;
-    left: 5px;
-}
-/* Setting the background position of the sprite */
-.yui-skin-sam .yui-toolbar-container .yui-toolbar-bordercolor span.yui-toolbar-icon {
-    background-position: 0 -252px;
-    left: 5px;
-}
-/* Setting the background position of the sprite */
-.yui-skin-sam .yui-toolbar-container .yui-toolbar-removeformat span.yui-toolbar-icon {
-    background-position: 0 -1080px;
-    left: 5px;
-}
-/* Setting the background position of the sprite */
-.yui-skin-sam .yui-toolbar-container .yui-toolbar-hiddenelements span.yui-toolbar-icon {
-    background-position: 0 -1044px;
-    left: 5px;
-}
-/* Setting the background position of the sprite */
-.yui-skin-sam .yui-toolbar-container .yui-toolbar-insertunorderedlist span.yui-toolbar-icon {
-    background-position: 0 -468px;
-    left: 5px;
-}
-/* Setting the background position of the sprite */
-.yui-skin-sam .yui-toolbar-container .yui-toolbar-insertorderedlist span.yui-toolbar-icon {
-    background-position: 0 -504px;
-    left: 5px;
-}
-/* Set the width of the spin buttons */
-.yui-skin-sam .yui-toolbar-container .yui-toolbar-spinbutton,
-.yui-skin-sam .yui-toolbar-container .yui-toolbar-spinbutton .first-child {
-    width: 35px;
-}
-/* Pad the first child */
-.yui-skin-sam .yui-toolbar-container .yui-toolbar-spinbutton .first-child a {
-    padding-left: 2px;
-    text-align: left;    
-}
-
-/* Spin Buttons - Remove the icon holder, they don't need it */
-.yui-skin-sam .yui-toolbar-container .yui-toolbar-spinbutton span.yui-toolbar-icon {
-    display: none;
-}
-
-/* Spin Buttons - Prep the arrows */
-.yui-skin-sam .yui-toolbar-container .yui-toolbar-spinbutton a.up,
-.yui-skin-sam .yui-toolbar-container .yui-toolbar-spinbutton a.down {
-    right: 2px;
-    background: url(editor-sprite.gif) no-repeat 0 -1222px;
-    overflow: hidden;
-    height: 6px;
-    width: 7px;
-    min-height: 0;
-    padding: 0;
-}
-/* Spin Buttons - The up arrow */
-.yui-skin-sam .yui-toolbar-container .yui-toolbar-spinbutton a.up {
-    top: 2px;
-    background-position: 0 -1222px;
-}
-/* Spin Buttons - The down arrow */
-.yui-skin-sam .yui-toolbar-container .yui-toolbar-spinbutton a.down {
-    bottom: 2px;
-    background-position: 0 -1187px;
-}
-/* Handle plain Select Elements */
-.yui-skin-sam .yui-toolbar-container select {
-    height: 22px;
-    border: 1px solid #808080;
-}
-/* Pad and align the Select Menus */
-.yui-skin-sam .yui-toolbar-container .yui-toolbar-select .first-child a {
-    padding-left: 5px;
-    text-align: left;    
-}
-/* Set the icon of the select menu for the drop down arrow */
-.yui-skin-sam .yui-toolbar-container .yui-toolbar-select span.yui-toolbar-icon {
-    background: url( editor-sprite.gif ) no-repeat 0 -1144px;
-    overflow: hidden;
-    right: -2px;
-    top: 0px;
-    height: 20px;
-}
-/* Fix the color menu background if it's inside a Property Editor */
-.yui-skin-sam .yui-editor-panel .yui-color-button-menu .bd {
-    background-color: transparent;
-    border: none;
-    width: 135px;
-}
-
-/* Place a border around the color menu */
-.yui-skin-sam .yui-color-button-menu .yui-toolbar-colors {
-    border: 1px solid #808080;
-}
-
-
-/* Property Editor Panel styles */
-.yui-skin-sam .yui-editor-panel {
-    padding: 0;
-    margin: 0;
-    border: none;
-    background-color: transparent;
-    overflow: visible;
-    position: absolute;
-}
-
-/* Margins on the header of the Property Editor */
-.yui-skin-sam .yui-editor-panel .hd {
-    margin: 10px 0 0;
-    padding: 0;
-    border: none;
-}
-/* Setup the background image on the title bar
-    We are styling the h3 instead if the div so we can make room
-    for the "knob" that floats on the top of the window.
-*/
-.yui-skin-sam .yui-editor-panel .hd h3 {
-    color: #000;
-    border: 1px solid #808080;
-    background: url(../../../../assets/skins/sam/sprite.png) repeat-x 0 -200px;
-    width: 99%;
-    position: relative;
-    margin: 0;
-    padding: 3px 0 0 0;
-    font-size: 93%;
-    text-indent: 5px;
-    height: 20px;
-}
-/* Style the body of the Property Editor */
-.yui-skin-sam .yui-editor-panel .bd {
-    background-color: #F2F2F2;
-    border-left: 1px solid #808080;
-    border-right: 1px solid #808080;
-    width: 99%;
-    margin: 0;
-    padding: 0;
-    overflow: visible;
-}
-/* Remove the padding/margin on lists in the Property Editor */
-.yui-skin-sam .yui-editor-panel ul {
-    list-style-type: none;
-    margin: 0;
-    padding: 0;
-}
-
-/* Remove the padding/margin on list items in the Property Editor */
-.yui-skin-sam .yui-editor-panel ul li {
-    margin: 0;
-    padding: 0;
-}
-/* IE is havig trouble with our menu sizes here */
-.yui-skin-sam .yui-editor-panel .yuimenu {
-    /**width: 90px !important;*/
-}
-/* Remove the border from the toolbar's container and add some margin to it */
-.yui-skin-sam .yui-editor-panel .yui-toolbar-container .yui-toolbar-subcont {
-    padding: 0;
-    border: none;
-    margin-top: 0.35em;
-}
-/* Set the width of the bordersize and bordertype menu buttons */
-.yui-skin-sam .yui-editor-panel .yui-toolbar-bordersize, .yui-skin-sam .yui-editor-panel .yui-toolbar-bordertype {
-    width: 50px;
-}
-
-/* Form styling */
-.yui-skin-sam .yui-editor-panel label {
-    display: block;
-    float: none;
-    padding: 4px 0;
-    margin-bottom: 7px;
-}
-/* Form styling */
-.yui-skin-sam .yui-editor-panel label strong {
-    font-weight: normal;
-    font-size: 93%;
-    text-align: right;
-    padding-top: 2px;
-}
-
-/* Form styling */
-.yui-skin-sam .yui-editor-panel label input {
-    width: 75%;
-}
-/* Form styling */
-.yui-skin-sam .yui-editor-panel .createlink_target,
-.yui-skin-sam .yui-editor-panel .insertimage_target {
-    width: auto;
-    margin-right: 5px;
-}
-
-/* Form styling */
-.yui-skin-sam .yui-editor-panel .removeLink {
-    width: 98%;
-}
-/* Color the input yellow if it has the warning class applied */
-.yui-skin-sam .yui-editor-panel label input.warning {
-    background-color: #FFEE69;
-}
-
-/* Style the titles of the toolbar groups */
-.yui-skin-sam .yui-editor-panel .yui-toolbar-group h3 {
-    color: #000;
-    float: left;
-    font-weight: normal;
-    font-size: 93%;
-    margin: 5px 0 0 0;
-    padding: 0 3px 0 0;
-    text-align: right;
-}
-/* Style the header for the Height and Width boxes */
-.yui-skin-sam .yui-editor-panel .height-width h3 {
-    margin: 3px 0 0 10px;
-}
-/* Style the height and width container */
-.yui-skin-sam .yui-editor-panel .height-width {
-    margin: 3px 0 0 35px;
-    *margin-left: 14px;
-    width: 42%;
-    *width: 44%;
-}
-/* Give the border group a width */
-.yui-skin-sam .yui-editor-panel .yui-toolbar-group-border {
-    width: 190px;
-}
-.yui-skin-sam .yui-editor-panel .no-button .yui-toolbar-group-border {
-    width: 210px;
-}
-/* Give the padding group a width */
-.yui-skin-sam .yui-editor-panel .yui-toolbar-group-padding {
-    width: 203px;
-    _width: 198px;
-}
-.yui-skin-sam .yui-editor-panel .no-button .yui-toolbar-group-padding {
-    width: 172px;
-}
-/* Fix some margins for the H3's */
-.yui-skin-sam .yui-editor-panel .yui-toolbar-group-padding h3 {
-    margin-left: 25px;
-    *margin-left: 12px;
-}
-/* Image Properties - Text flow container size */
-.yui-skin-sam .yui-editor-panel .yui-toolbar-group-textflow {
-    width: 182px;
-}
-
-/* Remove the background image set in Panel.css */
-.yui-skin-sam .yui-editor-panel .hd {
-    background: none;
-}
-
-/* Give the footer som color and a border */
-.yui-skin-sam .yui-editor-panel .ft {
-    background-color: #F2F2F2;
-    border: 1px solid #808080;
-    border-top: none;
-    padding: 0;
-    margin: 0 0 2px 0;
-}
-
-/* Style the close button in the Property Editor */
-.yui-skin-sam .yui-editor-panel .hd span.close {
-    background:url(../../../../assets/skins/sam/sprite.png) no-repeat 0 -300px;
-    cursor:pointer;
-    display:block;
-    height:16px;
-    overflow:hidden;
-    position:absolute;
-    right:5px;
-    text-indent:500px;
-    top:2px;
-    width:26px;
-}
-/* Style the tip in the footer */
-.yui-skin-sam .yui-editor-panel .ft span.tip {
-    background-color: #EDF5FF;
-    border-top: 1px solid #808080;
-    font-size: 85%;
-}
-/* Style the tip in the footer */
-.yui-skin-sam .yui-editor-panel .ft span.tip strong {
-    display: block;
-    float: left;
-    margin: 0 2px 8px 0;
-}
-
-
-/* Setup the icon for a tip */
-.yui-skin-sam .yui-editor-panel .ft span.tip span.icon {
-    background: url( editor-sprite.gif ) no-repeat 0 -1260px;
-    display: block;
-    height: 20px;
-    left: 2px;
-    position: absolute;
-    top: 8px;
-    width: 20px;
-}
-/* Setup the background image for an info icon */
-.yui-skin-sam .yui-editor-panel .ft span.tip span.icon-info {
-    background-position: 2px -1260px;
-}
-/* Setup the background image for a warning icon */
-.yui-skin-sam .yui-editor-panel .ft span.tip span.icon-warn {
-    background-position: 2px -1296px;
-}
-
-/* Handle the knob that floats on top of the panel */
-.yui-skin-sam .yui-editor-panel .hd span.knob {
-    position: absolute;
-    height: 10px;
-    width: 28px;
-    top: -10px;
-    left: 25px;
-    text-indent: 9999px;
-    overflow: hidden;
-    background: url( editor-knob.gif ) no-repeat 0 0;
-}
-/* Reset some styles from the editor toolbar, when a toolbar is inside the Property Editor */
-.yui-skin-sam .yui-editor-panel .yui-toolbar-container {
-    float: left;
-    width: 100%;
-    background-image: none;
-    border: none;
-}
-/* Reset styles for menu buttons inside the Property Editor */
-.yui-skin-sam .yui-editor-panel .yui-toolbar-container .bd {
-    background-color: #ffffff;
-}
-
-/* This image is the one used to place the blankimage placeholder into the editor when you click on Insert an Image */
-.yui-editor-blankimage {
-    background-image: url( blankimage.png );
-}
-
-.yui-skin-sam .yui-editor-container .yui-resize-handle-br {
-    /* Make the handle a little bigger than the default */
-    height: 11px;
-    width: 11px;
-    /* Resposition the image */
-    background-position: -20px -60px;
-    /* Kill the hover on the handle */
-    background-color: transparent;
-}
diff --git a/koha-tmpl/intranet-tmpl/prog/en/lib/yui/editor/assets/skins/sam/editor-sprite-active.gif b/koha-tmpl/intranet-tmpl/prog/en/lib/yui/editor/assets/skins/sam/editor-sprite-active.gif
deleted file mode 100644 (file)
index 3e9d420..0000000
Binary files a/koha-tmpl/intranet-tmpl/prog/en/lib/yui/editor/assets/skins/sam/editor-sprite-active.gif and /dev/null differ
diff --git a/koha-tmpl/intranet-tmpl/prog/en/lib/yui/editor/assets/skins/sam/editor-sprite.gif b/koha-tmpl/intranet-tmpl/prog/en/lib/yui/editor/assets/skins/sam/editor-sprite.gif
deleted file mode 100644 (file)
index 02042fa..0000000
Binary files a/koha-tmpl/intranet-tmpl/prog/en/lib/yui/editor/assets/skins/sam/editor-sprite.gif and /dev/null differ
diff --git a/koha-tmpl/intranet-tmpl/prog/en/lib/yui/editor/assets/skins/sam/editor.css b/koha-tmpl/intranet-tmpl/prog/en/lib/yui/editor/assets/skins/sam/editor.css
deleted file mode 100644 (file)
index 62866ef..0000000
+++ /dev/null
@@ -1,10 +0,0 @@
-/*
-Copyright (c) 2009, Yahoo! Inc. All rights reserved.
-Code licensed under the BSD License:
-http://developer.yahoo.net/yui/license.txt
-version: 2.8.0r4
-*/
-.yui-busy{cursor:wait!important;}.yui-toolbar-container fieldset,.yui-editor-container fieldset{padding:0;margin:0;border:0;}.yui-toolbar-container legend{display:none;}.yui-skin-sam .yui-toolbar-container .yui-button button,.yui-skin-sam .yui-toolbar-container .yui-button a,.yui-skin-sam .yui-toolbar-container .yui-button a:visited{font-size:0;}.yui-skin-sam .yui-toolbar-container .yui-toolbar-select button,.yui-skin-sam .yui-toolbar-container .yui-toolbar-select a,.yui-skin-sam .yui-toolbar-container .yui-toolbar-select a:visited,.yui-skin-sam .yui-toolbar-container .yui-toolbar-spinbutton button,.yui-skin-sam .yui-toolbar-container .yui-toolbar-spinbutton a,.yui-skin-sam .yui-toolbar-container .yui-toolbar-spinbutton a:visited{font-size:12px;}.yui-skin-sam .yui-toolbar-container .yui-toolbar-spinbutton a.up,.yui-skin-sam .yui-toolbar-container .yui-toolbar-spinbutton a.down{font-size:0;line-height:0;padding:0;}.yui-toolbar-container .yui-toolbar-subcont{padding:.25em 0;zoom:1;}.yui-toolbar-container-collapsed .yui-toolbar-subcont{display:none;}.yui-toolbar-container .yui-toolbar-subcont:after{display:block;clear:both;visibility:hidden;content:'.';height:0;}.yui-toolbar-container span.yui-toolbar-draghandle{cursor:move;border-left:1px solid #999;border-right:1px solid #999;overflow:hidden;text-indent:77777px;width:2px;height:20px;display:block;clear:none;float:left;margin:0 0 0 .2em;}.yui-toolbar-container .yui-toolbar-titlebar.draggable{cursor:move;}.yui-toolbar-container .yui-toolbar-titlebar{position:relative;}.yui-toolbar-container .yui-toolbar-titlebar h2{font-weight:bold;letter-spacing:0;border:none;color:#000;margin:0;padding:.2em;}.yui-toolbar-container .yui-toolbar-titlebar h2 a{text-decoration:none;color:#000;cursor:default;}.yui-toolbar-container.yui-toolbar-grouped span.yui-toolbar-draghandle{height:40px;}.yui-toolbar-container .yui-toolbar-group{float:left;margin-right:.5em;zoom:1;}.yui-toolbar-container .yui-toolbar-group:after{display:block;clear:both;visibility:hidden;content:'.';height:0;}.yui-toolbar-container .yui-toolbar-group h3{font-size:75%;padding:0 0 0 .25em;margin:0;}.yui-toolbar-container span.yui-toolbar-separator{width:2px;padding:0;height:18px;margin:.2em 0 .2em .1em;display:none;float:left;}.yui-toolbar-container.yui-toolbar-grouped span.yui-toolbar-separator{height:45px;*height:50px;}.yui-toolbar-container.yui-toolbar-grouped .yui-toolbar-group span.yui-toolbar-separator{height:18px;display:block;}.yui-toolbar-container ul li{margin:0;padding:0;list-style-type:none;}.yui-toolbar-container .yui-toolbar-nogrouplabels h3{display:none;}.yui-toolbar-container .yui-push-button,.yui-toolbar-container .yui-color-button,.yui-toolbar-container .yui-menu-button{position:relative;cursor:pointer;}.yui-toolbar-container .yui-button .first-child,.yui-toolbar-container .yui-button .first-child a{height:100%;width:100%;overflow:hidden;font-size:0;}.yui-toolbar-container .yui-button-disabled{cursor:default;}.yui-toolbar-container .yui-button-disabled .yui-toolbar-icon{opacity:.5;filter:alpha(opacity=50);}.yui-toolbar-container .yui-button-disabled .up,.yui-toolbar-container .yui-button-disabled .down{opacity:.5;filter:alpha(opacity=50);}.yui-toolbar-container .yui-button a{overflow:hidden;}.yui-toolbar-container .yui-toolbar-select .first-child a{cursor:pointer;}.yui-toolbar-fontname-arial{font-family:Arial;}.yui-toolbar-fontname-arial-black{font-family:Arial Black;}.yui-toolbar-fontname-comic-sans-ms{font-family:Comic Sans MS;}.yui-toolbar-fontname-courier-new{font-family:Courier New;}.yui-toolbar-fontname-times-new-roman{font-family:Times New Roman;}.yui-toolbar-fontname-verdana{font-family:Verdana;}.yui-toolbar-fontname-impact{font-family:Impact;}.yui-toolbar-fontname-lucida-console{font-family:Lucida Console;}.yui-toolbar-fontname-tahoma{font-family:Tahoma;}.yui-toolbar-fontname-trebuchet-ms{font-family:Trebuchet MS;}.yui-toolbar-container .yui-toolbar-spinbutton{position:relative;}.yui-toolbar-container .yui-toolbar-spinbutton .first-child a{z-index:0;opacity:1;}.yui-toolbar-container .yui-toolbar-spinbutton a.up,.yui-toolbar-container .yui-toolbar-spinbutton a.down{position:absolute;display:block;right:0;cursor:pointer;z-index:1;padding:0;margin:0;}.yui-toolbar-container .yui-overlay{position:absolute;}.yui-toolbar-container .yui-overlay ul li{margin:0;list-style-type:none;}.yui-toolbar-container{z-index:1;}.yui-editor-container .yui-editor-editable-container{position:relative;z-index:0;width:100%;}.yui-editor-container .yui-editor-masked{background-color:#CCC;height:100%;width:100%;position:absolute;top:0;left:0;opacity:.5;filter:alpha(opacity=50);}.yui-editor-container iframe{border:0;padding:0;margin:0;zoom:1;display:block;}.yui-editor-container .yui-editor-editable{padding:0;margin:0;}.yui-editor-container .dompath{font-size:85%;}.yui-editor-panel .hd{text-align:left;position:relative;}.yui-editor-panel .hd h3{font-weight:bold;padding:.25em 0 .25em .25em;margin:0;}.yui-editor-panel .bd{width:100%;zoom:1;position:relative;}.yui-editor-panel .bd div.yui-editor-body-cont{padding:.25em .1em;zoom:1;}.yui-editor-panel .bd .gecko form{overflow:auto;}.yui-editor-panel .bd div.yui-editor-body-cont:after{display:block;clear:both;visibility:hidden;content:'.';height:0;}.yui-editor-panel .ft{text-align:right;width:99%;float:left;clear:both;}.yui-editor-panel .ft span.tip{display:block;position:relative;padding:.5em .5em .5em 23px;text-align:left;zoom:1;}.yui-editor-panel label{clear:both;float:left;padding:0;width:100%;text-align:left;zoom:1;}.yui-editor-panel .gecko label{overflow:auto;}.yui-editor-panel label strong{float:left;width:6em;}.yui-editor-panel .removeLink{width:80%;text-align:right;}.yui-editor-panel label input{margin-left:.25em;float:left;}.yui-editor-panel .yui-toolbar-group{margin-bottom:.75em;}.yui-editor-panel .height-width{float:left;}.yui-editor-panel .height-width span{font-style:italic;display:block;float:left;overflow:visible;}.yui-editor-panel .height-width span.info{font-size:70%;margin-top:3px;float:none;}
-.yui-editor-panel .yui-toolbar-bordersize,.yui-editor-panel .yui-toolbar-bordertype{font-size:75%;}.yui-editor-panel .yui-toolbar-container span.yui-toolbar-separator{border:none;}.yui-editor-panel .yui-toolbar-bordersize span a span,.yui-editor-panel .yui-toolbar-bordertype span a span{display:block;height:8px;left:4px;position:absolute;top:3px;_top:-5px;width:24px;text-indent:52px;font-size:0;}.yui-editor-panel .yui-toolbar-bordertype span a span.yui-toolbar-bordertype-solid{border-bottom:1px solid black;}.yui-editor-panel .yui-toolbar-bordertype span a span.yui-toolbar-bordertype-dotted{border-bottom:1px dotted black;}.yui-editor-panel .yui-toolbar-bordertype span a span.yui-toolbar-bordertype-dashed{border-bottom:1px dashed black;}.yui-editor-panel .yui-toolbar-bordersize span a span.yui-toolbar-bordersize-0{*top:0;text-indent:0;font-size:75%;}.yui-editor-panel .yui-toolbar-bordersize span a span.yui-toolbar-bordersize-1{border-bottom:1px solid black;}.yui-editor-panel .yui-toolbar-bordersize span a span.yui-toolbar-bordersize-2{border-bottom:2px solid black;}.yui-editor-panel .yui-toolbar-bordersize span a span.yui-toolbar-bordersize-3{top:2px;*top:-5px;border-bottom:3px solid black;}.yui-editor-panel .yui-toolbar-bordersize span a span.yui-toolbar-bordersize-4{top:1px;*top:-5px;border-bottom:4px solid black;}.yui-editor-panel .yui-toolbar-bordersize span a span.yui-toolbar-bordersize-5{top:1px;*top:-5px;border-bottom:5px solid black;}.yui-toolbar-container .yui-toolbar-bordersize-menu,.yui-toolbar-container .yui-toolbar-bordertype-menu{width:95px!important;}.yui-toolbar-bordersize-menu .yuimenuitemlabel,.yui-toolbar-bordertype-menu .yuimenuitemlabel,.yui-toolbar-bordersize-menu .yuimenuitemlabel,.yui-toolbar-bordertype-menu .yuimenuitemlabel:hover{margin:0 3px 7px 17px;}.yui-toolbar-bordersize-menu .yuimenuitemlabel .checkedindicator,.yui-toolbar-bordertype-menu .yuimenuitemlabel .checkedindicator{position:absolute;left:-12px;*top:14px;*left:0;}.yui-toolbar-bordersize-menu li.yui-toolbar-bordersize-1 a{border-bottom:1px solid black;height:14px;}.yui-toolbar-bordersize-menu li.yui-toolbar-bordersize-2 a{border-bottom:2px solid black;height:14px;}.yui-toolbar-bordersize-menu li.yui-toolbar-bordersize-3 a{border-bottom:3px solid black;height:14px;}.yui-toolbar-bordersize-menu li.yui-toolbar-bordersize-4 a{border-bottom:4px solid black;height:14px;}.yui-toolbar-bordersize-menu li.yui-toolbar-bordersize-5 a{border-bottom:5px solid black;height:14px;}.yui-toolbar-bordertype-menu li.yui-toolbar-bordertype-solid a{border-bottom:1px solid black;height:14px;}.yui-toolbar-bordertype-menu li.yui-toolbar-bordertype-dashed a{border-bottom:1px dashed black;height:14px;}.yui-toolbar-bordertype-menu li.yui-toolbar-bordertype-dotted a{border-bottom:1px dotted black;height:14px;}h2.yui-editor-skipheader,h3.yui-editor-skipheader{height:0;margin:0;padding:0;border:none;width:0;overflow:hidden;position:absolute;}.yui-toolbar-colors{width:133px;zoom:1;display:none;z-index:100;overflow:hidden;}.yui-toolbar-colors:after{display:block;clear:both;visibility:hidden;content:'.';height:0;}.yui-toolbar-colors a{height:9px;width:9px;float:left;display:block;overflow:hidden;text-indent:999px;margin:0;cursor:pointer;border:1px solid #F6F7EE;}.yui-toolbar-colors a:hover{border:1px solid black;}.yui-color-button-menu{overflow:visible;background-color:transparent;}.yui-toolbar-colors span{position:relative;display:block;padding:3px;overflow:hidden;float:left;width:100%;zoom:1;}.yui-toolbar-colors span:after{display:block;clear:both;visibility:hidden;content:'.';height:0;}.yui-toolbar-colors span em{height:35px;width:30px;float:left;display:block;overflow:hidden;text-indent:999px;margin:.75px;border:1px solid black;}.yui-toolbar-colors span strong{font-weight:normal;padding-left:3px;display:block;font-size:85%;float:left;width:65%;}.yui-toolbar-group-undoredo h3,.yui-toolbar-group-insertitem h3,.yui-toolbar-group-indentlist h3{width:68px;}.yui-toolbar-group-indentlist2 h3{width:122px;}.yui-toolbar-group-alignment h3{width:130px;}.yui-skin-sam .yui-editor-container{border:1px solid #808080;}.yui-skin-sam .yui-toolbar-container{zoom:1;}.yui-skin-sam .yui-toolbar-container .yui-toolbar-titlebar{background:url(../../../../assets/skins/sam/sprite.png) repeat-x 0 -200px;position:relative;}.yui-skin-sam .yui-editor-container .draggable .yui-toolbar-titlebar{cursor:move;}.yui-skin-sam .yui-toolbar-container .yui-toolbar-titlebar h2{color:#000;font-weight:bold;margin:0;padding:.3em 1em;font-size:100%;text-align:left;}.yui-skin-sam .yui-toolbar-container .yui-toolbar-group h3{color:#808080;font-size:75%;margin:1em 0 0;padding-bottom:0;padding-left:.25em;text-align:left;}.yui-toolbar-container span.yui-toolbar-separator{border:none;text-indent:33px;overflow:hidden;margin:0 .25em;}.yui-skin-sam .yui-toolbar-container{background-color:#F2F2F2;}.yui-skin-sam .yui-toolbar-container .yui-toolbar-subcont{padding:0 1em .35em;border-bottom:1px solid #808080;}.yui-skin-sam .yui-toolbar-container-collapsed .yui-toolbar-titlebar{border-bottom:1px solid #808080;}.yui-skin-sam .yui-editor-container .visible .yui-menu-shadow,.yui-skin-sam .yui-editor-panel .visible .yui-menu-shadow{display:none;}.yui-skin-sam .yui-editor-container ul{list-style-type:none;margin:0;padding:0;}.yui-skin-sam .yui-editor-container ul li{list-style-type:none;margin:0;padding:0;}.yui-skin-sam .yui-toolbar-group ul li.yui-toolbar-groupitem{float:left;}.yui-skin-sam .yui-editor-container .dompath{background-color:#F2F2F2;border-top:1px solid #808080;color:#999;text-align:left;padding:.25em;}.yui-skin-sam .yui-toolbar-container .collapse{background:url(../../../../assets/skins/sam/sprite.png) no-repeat 0 -400px;}.yui-skin-sam .yui-toolbar-container .collapsed{background:url(../../../../assets/skins/sam/sprite.png) no-repeat 0 -350px;}.yui-skin-sam .yui-toolbar-container .yui-toolbar-titlebar span.collapse{cursor:pointer;position:absolute;top:4px;right:2px;display:block;overflow:hidden;height:15px;width:15px;text-indent:9999px;}
-.yui-skin-sam .yui-toolbar-container .yui-push-button,.yui-skin-sam .yui-toolbar-container .yui-color-button,.yui-skin-sam .yui-toolbar-container .yui-menu-button{background:url(../../../../assets/skins/sam/sprite.png) repeat-x 0 0;position:relative;display:block;height:22px;width:30px;_font-size:0;margin:0;border-color:#808080;color:#f2f2f2;border-style:solid;border-width:1px 0;zoom:1;}.yui-skin-sam .yui-toolbar-container .yui-push-button a,.yui-skin-sam .yui-toolbar-container .yui-color-button a,.yui-skin-sam .yui-toolbar-container .yui-menu-button a{padding-left:35px;height:20px;text-decoration:none;font-size:0;line-height:2;display:block;color:#000;overflow:hidden;white-space:nowrap;}.yui-skin-sam .yui-toolbar-container .yui-toolbar-spinbutton a,.yui-skin-sam .yui-toolbar-container .yui-toolbar-select a{font-size:12px;}.yui-skin-sam .yui-toolbar-container .yui-push-button .first-child,.yui-skin-sam .yui-toolbar-container .yui-color-button .first-child,.yui-skin-sam .yui-toolbar-container .yui-menu-button .first-child{border-color:#808080;border-style:solid;border-width:0 1px;margin:0 -1px;display:block;position:relative;}.yui-skin-sam .yui-toolbar-container .yui-push-button-disabled .first-child,.yui-skin-sam .yui-toolbar-container .yui-color-button-disabled .first-child,.yui-skin-sam .yui-toolbar-container .yui-menu-button-disabled .first-child{border-color:#ccc;}.yui-skin-sam .yui-toolbar-container .yui-push-button-disabled a,.yui-skin-sam .yui-toolbar-container .yui-color-button-disabled a,.yui-skin-sam .yui-toolbar-container .yui-menu-button-disabled a{color:#A6A6A6;cursor:default;}.yui-skin-sam .yui-toolbar-container .yui-push-button-disabled,.yui-skin-sam .yui-toolbar-container .yui-color-button-disabled,.yui-skin-sam .yui-toolbar-container .yui-menu-button-disabled{border-color:#ccc;}.yui-skin-sam .yui-toolbar-container .yui-button .first-child{*left:0;}.yui-skin-sam .yui-toolbar-container .yui-toolbar-fontname{width:135px;}.yui-skin-sam .yui-toolbar-container .yui-toolbar-heading{width:92px;}.yui-skin-sam .yui-toolbar-container .yui-button-hover{background:url(../../../../assets/skins/sam/sprite.png) repeat-x 0 -1300px;border-color:#808080;}.yui-skin-sam .yui-toolbar-container .yui-button-selected{background:url(../../../../assets/skins/sam/sprite.png) repeat-x 0 -1700px;border-color:#808080;}.yui-skin-sam .yui-toolbar-container .yui-toolbar-nogrouplabels h3{display:none;}.yui-skin-sam .yui-toolbar-container .yui-toolbar-nogrouplabels .yui-toolbar-group{margin-top:.75em;}.yui-skin-sam .yui-toolbar-container .yui-push-button span.yui-toolbar-icon,.yui-skin-sam .yui-toolbar-container .yui-color-button span.yui-toolbar-icon,.yui-skin-sam .yui-toolbar-container .yui-menu-button span.yui-toolbar-icon{display:block;position:absolute;top:2px;height:18px;width:18px;overflow:hidden;background:url(editor-sprite.gif) no-repeat 30px 30px;}.yui-skin-sam .yui-toolbar-container .yui-button-selected span.yui-toolbar-icon,.yui-skin-sam .yui-toolbar-container .yui-button-hover span.yui-toolbar-icon{background-image:url(editor-sprite-active.gif);}.yui-skin-sam .yui-toolbar-container .visible .yuimenuitemlabel{cursor:pointer;color:#000;*position:relative;}.yui-skin-sam .yui-toolbar-container .yui-button-menu{background-color:#fff;}.yui-skin-sam .yui-toolbar-container .yui-button-menu .yui-menu-body-scrolled{position:relative;}.yui-skin-sam div.yuimenu li.selected{background-color:#B3D4FF;}.yui-skin-sam div.yuimenu li.selected a.selected{color:#000;}.yui-skin-sam .yui-toolbar-container .yui-toolbar-bold span.yui-toolbar-icon{background-position:0 0;left:5px;}.yui-skin-sam .yui-toolbar-container .yui-toolbar-strikethrough span.yui-toolbar-icon{background-position:0 -108px;left:5px;}.yui-skin-sam .yui-toolbar-container .yui-toolbar-italic span.yui-toolbar-icon{background-position:0 -36px;left:5px;}.yui-skin-sam .yui-toolbar-container .yui-toolbar-undo span.yui-toolbar-icon{background-position:0 -1326px;left:5px;}.yui-skin-sam .yui-toolbar-container .yui-toolbar-redo span.yui-toolbar-icon{background-position:0 -1355px;left:5px;}.yui-skin-sam .yui-toolbar-container .yui-toolbar-underline span.yui-toolbar-icon{background-position:0 -72px;left:5px;}.yui-skin-sam .yui-toolbar-container .yui-toolbar-subscript span.yui-toolbar-icon{background-position:0 -180px;left:5px;}.yui-skin-sam .yui-toolbar-container .yui-toolbar-superscript span.yui-toolbar-icon{background-position:0 -144px;left:5px;}.yui-skin-sam .yui-toolbar-container .yui-toolbar-forecolor span.yui-toolbar-icon{background-position:0 -216px;left:5px;}.yui-skin-sam .yui-toolbar-container .yui-toolbar-backcolor span.yui-toolbar-icon{background-position:0 -288px;left:5px;}.yui-skin-sam .yui-toolbar-container .yui-toolbar-justifyleft span.yui-toolbar-icon{background-position:0 -324px;left:5px;}.yui-skin-sam .yui-toolbar-container .yui-toolbar-justifycenter span.yui-toolbar-icon{background-position:0 -360px;left:5px;}.yui-skin-sam .yui-toolbar-container .yui-toolbar-justifyright span.yui-toolbar-icon{background-position:0 -396px;left:5px;}.yui-skin-sam .yui-toolbar-container .yui-toolbar-justifyfull span.yui-toolbar-icon{background-position:0 -432px;left:5px;}.yui-skin-sam .yui-toolbar-container .yui-toolbar-indent span.yui-toolbar-icon{background-position:0 -720px;left:5px;}.yui-skin-sam .yui-toolbar-container .yui-toolbar-outdent span.yui-toolbar-icon{background-position:0 -684px;left:5px;}.yui-skin-sam .yui-toolbar-container .yui-toolbar-createlink span.yui-toolbar-icon{background-position:0 -792px;left:5px;}.yui-skin-sam .yui-toolbar-container .yui-toolbar-insertimage span.yui-toolbar-icon{background-position:1px -756px;left:5px;}.yui-skin-sam .yui-toolbar-container .yui-toolbar-left span.yui-toolbar-icon{background-position:0 -972px;left:5px;}.yui-skin-sam .yui-toolbar-container .yui-toolbar-right span.yui-toolbar-icon{background-position:0 -936px;left:5px;}.yui-skin-sam .yui-toolbar-container .yui-toolbar-inline span.yui-toolbar-icon{background-position:0 -900px;left:5px;}
-.yui-skin-sam .yui-toolbar-container .yui-toolbar-block span.yui-toolbar-icon{background-position:0 -864px;left:5px;}.yui-skin-sam .yui-toolbar-container .yui-toolbar-bordercolor span.yui-toolbar-icon{background-position:0 -252px;left:5px;}.yui-skin-sam .yui-toolbar-container .yui-toolbar-removeformat span.yui-toolbar-icon{background-position:0 -1080px;left:5px;}.yui-skin-sam .yui-toolbar-container .yui-toolbar-hiddenelements span.yui-toolbar-icon{background-position:0 -1044px;left:5px;}.yui-skin-sam .yui-toolbar-container .yui-toolbar-insertunorderedlist span.yui-toolbar-icon{background-position:0 -468px;left:5px;}.yui-skin-sam .yui-toolbar-container .yui-toolbar-insertorderedlist span.yui-toolbar-icon{background-position:0 -504px;left:5px;}.yui-skin-sam .yui-toolbar-container .yui-toolbar-spinbutton,.yui-skin-sam .yui-toolbar-container .yui-toolbar-spinbutton .first-child{width:35px;}.yui-skin-sam .yui-toolbar-container .yui-toolbar-spinbutton .first-child a{padding-left:2px;text-align:left;}.yui-skin-sam .yui-toolbar-container .yui-toolbar-spinbutton span.yui-toolbar-icon{display:none;}.yui-skin-sam .yui-toolbar-container .yui-toolbar-spinbutton a.up,.yui-skin-sam .yui-toolbar-container .yui-toolbar-spinbutton a.down{right:2px;background:url(editor-sprite.gif) no-repeat 0 -1222px;overflow:hidden;height:6px;width:7px;min-height:0;padding:0;}.yui-skin-sam .yui-toolbar-container .yui-toolbar-spinbutton a.up{top:2px;background-position:0 -1222px;}.yui-skin-sam .yui-toolbar-container .yui-toolbar-spinbutton a.down{bottom:2px;background-position:0 -1187px;}.yui-skin-sam .yui-toolbar-container select{height:22px;border:1px solid #808080;}.yui-skin-sam .yui-toolbar-container .yui-toolbar-select .first-child a{padding-left:5px;text-align:left;}.yui-skin-sam .yui-toolbar-container .yui-toolbar-select span.yui-toolbar-icon{background:url(editor-sprite.gif) no-repeat 0 -1144px;overflow:hidden;right:-2px;top:0;height:20px;}.yui-skin-sam .yui-editor-panel .yui-color-button-menu .bd{background-color:transparent;border:none;width:135px;}.yui-skin-sam .yui-color-button-menu .yui-toolbar-colors{border:1px solid #808080;}.yui-skin-sam .yui-editor-panel{padding:0;margin:0;border:none;background-color:transparent;overflow:visible;position:absolute;}.yui-skin-sam .yui-editor-panel .hd{margin:10px 0 0;padding:0;border:none;}.yui-skin-sam .yui-editor-panel .hd h3{color:#000;border:1px solid #808080;background:url(../../../../assets/skins/sam/sprite.png) repeat-x 0 -200px;width:99%;position:relative;margin:0;padding:3px 0 0 0;font-size:93%;text-indent:5px;height:20px;}.yui-skin-sam .yui-editor-panel .bd{background-color:#F2F2F2;border-left:1px solid #808080;border-right:1px solid #808080;width:99%;margin:0;padding:0;overflow:visible;}.yui-skin-sam .yui-editor-panel ul{list-style-type:none;margin:0;padding:0;}.yui-skin-sam .yui-editor-panel ul li{margin:0;padding:0;}.yui-skin-sam .yui-editor-panel .yui-toolbar-container .yui-toolbar-subcont{padding:0;border:none;margin-top:.35em;}.yui-skin-sam .yui-editor-panel .yui-toolbar-bordersize,.yui-skin-sam .yui-editor-panel .yui-toolbar-bordertype{width:50px;}.yui-skin-sam .yui-editor-panel label{display:block;float:none;padding:4px 0;margin-bottom:7px;}.yui-skin-sam .yui-editor-panel label strong{font-weight:normal;font-size:93%;text-align:right;padding-top:2px;}.yui-skin-sam .yui-editor-panel label input{width:75%;}.yui-skin-sam .yui-editor-panel .createlink_target,.yui-skin-sam .yui-editor-panel .insertimage_target{width:auto;margin-right:5px;}.yui-skin-sam .yui-editor-panel .removeLink{width:98%;}.yui-skin-sam .yui-editor-panel label input.warning{background-color:#FFEE69;}.yui-skin-sam .yui-editor-panel .yui-toolbar-group h3{color:#000;float:left;font-weight:normal;font-size:93%;margin:5px 0 0 0;padding:0 3px 0 0;text-align:right;}.yui-skin-sam .yui-editor-panel .height-width h3{margin:3px 0 0 10px;}.yui-skin-sam .yui-editor-panel .height-width{margin:3px 0 0 35px;*margin-left:14px;width:42%;*width:44%;}.yui-skin-sam .yui-editor-panel .yui-toolbar-group-border{width:190px;}.yui-skin-sam .yui-editor-panel .no-button .yui-toolbar-group-border{width:210px;}.yui-skin-sam .yui-editor-panel .yui-toolbar-group-padding{width:203px;_width:198px;}.yui-skin-sam .yui-editor-panel .no-button .yui-toolbar-group-padding{width:172px;}.yui-skin-sam .yui-editor-panel .yui-toolbar-group-padding h3{margin-left:25px;*margin-left:12px;}.yui-skin-sam .yui-editor-panel .yui-toolbar-group-textflow{width:182px;}.yui-skin-sam .yui-editor-panel .hd{background:none;}.yui-skin-sam .yui-editor-panel .ft{background-color:#F2F2F2;border:1px solid #808080;border-top:none;padding:0;margin:0 0 2px 0;}.yui-skin-sam .yui-editor-panel .hd span.close{background:url(../../../../assets/skins/sam/sprite.png) no-repeat 0 -300px;cursor:pointer;display:block;height:16px;overflow:hidden;position:absolute;right:5px;text-indent:500px;top:2px;width:26px;}.yui-skin-sam .yui-editor-panel .ft span.tip{background-color:#EDF5FF;border-top:1px solid #808080;font-size:85%;}.yui-skin-sam .yui-editor-panel .ft span.tip strong{display:block;float:left;margin:0 2px 8px 0;}.yui-skin-sam .yui-editor-panel .ft span.tip span.icon{background:url(editor-sprite.gif) no-repeat 0 -1260px;display:block;height:20px;left:2px;position:absolute;top:8px;width:20px;}.yui-skin-sam .yui-editor-panel .ft span.tip span.icon-info{background-position:2px -1260px;}.yui-skin-sam .yui-editor-panel .ft span.tip span.icon-warn{background-position:2px -1296px;}.yui-skin-sam .yui-editor-panel .hd span.knob{position:absolute;height:10px;width:28px;top:-10px;left:25px;text-indent:9999px;overflow:hidden;background:url(editor-knob.gif) no-repeat 0 0;}.yui-skin-sam .yui-editor-panel .yui-toolbar-container{float:left;width:100%;background-image:none;border:none;}.yui-skin-sam .yui-editor-panel .yui-toolbar-container .bd{background-color:#fff;}.yui-editor-blankimage{background-image:url(blankimage.png);}.yui-skin-sam .yui-editor-container .yui-resize-handle-br{height:11px;width:11px;background-position:-20px -60px;background-color:transparent;}
diff --git a/koha-tmpl/intranet-tmpl/prog/en/lib/yui/editor/assets/skins/sam/simpleeditor-skin.css b/koha-tmpl/intranet-tmpl/prog/en/lib/yui/editor/assets/skins/sam/simpleeditor-skin.css
deleted file mode 100644 (file)
index 1f131c3..0000000
+++ /dev/null
@@ -1,711 +0,0 @@
-/*
-Copyright (c) 2009, Yahoo! Inc. All rights reserved.
-Code licensed under the BSD License:
-http://developer.yahoo.net/yui/license.txt
-version: 2.8.0r4
-*/
-/* Place the border around the editor */
-.yui-skin-sam .yui-editor-container {
-    border: 1px solid #808080;
-}
-/* Color the border of the container */
-.yui-skin-sam .yui-toolbar-container {
-    zoom: 1;
-}
-/* Load the background image on the Toolbars titlebar */
-.yui-skin-sam .yui-toolbar-container .yui-toolbar-titlebar {
-    background: url(../../../../assets/skins/sam/sprite.png) repeat-x 0 -200px;
-    position: relative;
-}
-.yui-skin-sam .yui-editor-container .draggable .yui-toolbar-titlebar {
-    cursor: move;
-}
-
-/* Give the titlebar some color and padding */
-.yui-skin-sam .yui-toolbar-container .yui-toolbar-titlebar h2 {
-    color: #000000;
-    font-weight: bold;
-    margin: 0;
-    padding: 0.3em 1em;
-    font-size: 100%;
-    text-align: left;
-}
-
-/* Give the toolbars groups titles some color and padding */
-.yui-skin-sam .yui-toolbar-container .yui-toolbar-group h3 {
-    color: #808080;
-    font-size: 75%;
-    margin: 1em 0 0;
-    padding-bottom: 0;
-    padding-left: 0.25em;
-    text-align: left;
-}
-
-/* Hide all of the sepatators borders */
-.yui-toolbar-container span.yui-toolbar-separator {
-    border: none;
-    text-indent: 33px;
-    overflow: hidden;
-    margin: 0 .25em;
-}
-
-/* Background color of the toolbar */
-.yui-skin-sam .yui-toolbar-container {
-    background-color: #F2F2F2;
-}
-
-/* Add some padding to the toolbars sub container */
-.yui-skin-sam .yui-toolbar-container .yui-toolbar-subcont {
-    padding: 0 1em 0.35em;
-    border-bottom:1px solid #808080;
-}
-/* When the collapsed class is added, add a border to the bottom of the titlebar (since the toolbar itself is display none) */
-.yui-skin-sam .yui-toolbar-container-collapsed .yui-toolbar-titlebar {
-    border-bottom:1px solid #808080;
-}
-
-/* Remove the shadows from the menus in the toolbar - Menu.css override */
-.yui-skin-sam .yui-editor-container .visible .yui-menu-shadow,
-.yui-skin-sam .yui-editor-panel .visible .yui-menu-shadow {
-    display: none;
-}
-
-/* Remove padding/margin from lists */
-.yui-skin-sam .yui-editor-container ul {
-    list-style-type: none;
-    margin: 0;
-    padding: 0;
-}
-/* Remove padding/margin from list items */
-.yui-skin-sam .yui-editor-container ul li {
-    list-style-type: none;
-    margin: 0;
-    padding: 0;
-}
-/* Float the LI's that wrap the buttons */
-.yui-skin-sam .yui-toolbar-group ul li.yui-toolbar-groupitem {
-    float: left;
-}
-
-/* Set the color and the border of the dompath container at the bottom of the editor */
-.yui-skin-sam .yui-editor-container .dompath {
-    background-color: #F2F2F2;
-    border-top:1px solid #808080;
-    color: #999;
-    text-align: left;
-    padding: 0.25em;
-}
-
-/* Set the image for the collapse button on the toolbar */
-.yui-skin-sam .yui-toolbar-container .collapse {
-    background: url(../../../../assets/skins/sam/sprite.png) no-repeat 0 -400px;
-}
-/* Set the image for the collapse button on the toolbar */
-.yui-skin-sam .yui-toolbar-container .collapsed {
-    background: url(../../../../assets/skins/sam/sprite.png) no-repeat 0 -350px;
-}
-/* Position the image and the container */
-.yui-skin-sam .yui-toolbar-container .yui-toolbar-titlebar span.collapse {
-    cursor: pointer;
-    position: absolute;
-    top: 4px;
-    right: 2px;
-    display: block;
-    overflow: hidden;
-    height: 15px;
-    width: 15px;
-    text-indent: 9999px;
-}
-
-/* Set the default styles for the buttons */
-.yui-skin-sam .yui-toolbar-container .yui-push-button,
-.yui-skin-sam .yui-toolbar-container .yui-color-button,
-.yui-skin-sam .yui-toolbar-container .yui-menu-button {
-    background: url(../../../../assets/skins/sam/sprite.png) repeat-x 0 0;
-    position: relative;
-    display: block;
-    height: 22px;
-    width: 30px;
-    _font-size: 0;
-    margin: 0;
-    border-color: #808080;
-    color: #f2f2f2;
-    border-style: solid;
-    border-width: 1px 0;
-    zoom: 1;
-}
-/* Set the height of the buttons and pad them on the left for the icon */
-.yui-skin-sam .yui-toolbar-container .yui-push-button a,
-.yui-skin-sam .yui-toolbar-container .yui-color-button a,
-.yui-skin-sam .yui-toolbar-container .yui-menu-button a {
-    padding-left: 35px;
-    height: 20px;
-    text-decoration: none;
-    font-size: 0px;
-    line-height: 2;
-    display: block;
-    color: #000;
-    overflow: hidden;
-    white-space: nowrap;
-}
-.yui-skin-sam .yui-toolbar-container .yui-toolbar-spinbutton a,
-.yui-skin-sam .yui-toolbar-container .yui-toolbar-select a {
-    font-size: 12px;
-}
-/* Set the height of the buttons and pad them on the left for the icon */
-.yui-skin-sam .yui-toolbar-container .yui-push-button .first-child,
-.yui-skin-sam .yui-toolbar-container .yui-color-button .first-child,
-.yui-skin-sam .yui-toolbar-container .yui-menu-button .first-child {
-    border-color: #808080;
-    border-style: solid;
-    border-width: 0 1px;
-    margin: 0 -1px;
-    display: block;
-    position: relative;
-}
-.yui-skin-sam .yui-toolbar-container .yui-push-button-disabled .first-child,
-.yui-skin-sam .yui-toolbar-container .yui-color-button-disabled .first-child,
-.yui-skin-sam .yui-toolbar-container .yui-menu-button-disabled .first-child {
-    border-color: #ccc;
-}
-.yui-skin-sam .yui-toolbar-container .yui-push-button-disabled a,
-.yui-skin-sam .yui-toolbar-container .yui-color-button-disabled a,
-.yui-skin-sam .yui-toolbar-container .yui-menu-button-disabled a {
-    color: #A6A6A6;
-    cursor: default;
-}
-.yui-skin-sam .yui-toolbar-container .yui-push-button-disabled,
-.yui-skin-sam .yui-toolbar-container .yui-color-button-disabled,
-.yui-skin-sam .yui-toolbar-container .yui-menu-button-disabled {
-    border-color: #ccc;
-}
-/* IE needs a little help positioning the first child */
-.yui-skin-sam .yui-toolbar-container .yui-button .first-child {
-    *left: 0px;
-}
-
-/* Font Family Drop Down */
-.yui-skin-sam .yui-toolbar-container .yui-toolbar-fontname {
-    width: 135px;
-}
-
-/* Header Drop Down */
-.yui-skin-sam .yui-toolbar-container .yui-toolbar-heading {
-    width: 92px;
-}
-
-/* Handle the hover state of the buttons */
-.yui-skin-sam .yui-toolbar-container .yui-button-hover {
-    background:url(../../../../assets/skins/sam/sprite.png) repeat-x 0 -1300px;
-    border-color: #808080;
-}
-
-/* Handle the selected state of the buttons */
-.yui-skin-sam .yui-toolbar-container .yui-button-selected {
-    background: url(../../../../assets/skins/sam/sprite.png) repeat-x 0 -1700px;
-    border-color: #808080;
-}
-/* When the nogrouplabels class is applied, set the h3's to display none */
-.yui-skin-sam .yui-toolbar-container .yui-toolbar-nogrouplabels h3 {
-    display: none;
-}
-/* When not showing the h3 group labels, add some margin to make up for them*/
-.yui-skin-sam .yui-toolbar-container .yui-toolbar-nogrouplabels .yui-toolbar-group {
-       margin-top: .75em;
-}
-
-
-/* Handle the icon placeholder for the buttons
-    This is very important - position of this must be absolute.
-    If it is not positioned absolute, IE will place it over the a in the Toolbar
-    Doing this will cause the editor to loose focus and loose the selection.
-*/
-.yui-skin-sam .yui-toolbar-container .yui-push-button span.yui-toolbar-icon,
-.yui-skin-sam .yui-toolbar-container .yui-color-button span.yui-toolbar-icon,
-.yui-skin-sam .yui-toolbar-container .yui-menu-button span.yui-toolbar-icon {
-    display: block;
-    position: absolute;
-    top: 2px;
-    height: 18px;
-    width: 18px;
-    overflow: hidden;
-    background: url(editor-sprite.gif) no-repeat 30px 30px;
-}
-
-/* Swap out the image to an active image */
-.yui-skin-sam .yui-toolbar-container .yui-button-selected span.yui-toolbar-icon, .yui-skin-sam .yui-toolbar-container .yui-button-hover span.yui-toolbar-icon {
-    background-image: url(editor-sprite-active.gif);
-}
-/* Change the defaults to make them look more like the editor */
-.yui-skin-sam .yui-toolbar-container .visible .yuimenuitemlabel {
-    cursor: pointer;
-    color: #000;
-    *position: relative;
-}
-
-/* Set the background color of all menu containers */
-.yui-skin-sam .yui-toolbar-container .yui-button-menu {
-    background-color: #fff;
-}
-/* Adding this style to Menu's allows the scrolled menu to work in IE */
-.yui-skin-sam .yui-toolbar-container .yui-button-menu .yui-menu-body-scrolled {
-    position: relative;
-}
-/* Set the background of all menu items that are selected */
-.yui-skin-sam div.yuimenu li.selected {
-    background-color: #B3D4FF;
-}
-/* Set the color of the hrefs in a selected menu item */
-.yui-skin-sam div.yuimenu li.selected a.selected {
-    color: #000;
-}
-/* Setting the background position of the sprite */
-.yui-skin-sam .yui-toolbar-container .yui-toolbar-bold span.yui-toolbar-icon {
-    background-position: 0 0;
-    left: 5px;
-}
-/* Setting the background position of the sprite */
-.yui-skin-sam .yui-toolbar-container .yui-toolbar-strikethrough span.yui-toolbar-icon {
-    background-position: 0 -108px;
-    left: 5px;
-}
-/* Setting the background position of the sprite */
-.yui-skin-sam .yui-toolbar-container .yui-toolbar-italic span.yui-toolbar-icon {
-    background-position: 0 -36px;
-    left: 5px;
-}
-/* Setting the background position of the sprite */
-.yui-skin-sam .yui-toolbar-container .yui-toolbar-undo span.yui-toolbar-icon {
-    background-position: 0 -1326px;
-    left: 5px;
-}
-/* Setting the background position of the sprite */
-.yui-skin-sam .yui-toolbar-container .yui-toolbar-redo span.yui-toolbar-icon {
-    background-position: 0 -1355px;
-    left: 5px;
-}
-/* Setting the background position of the sprite */
-.yui-skin-sam .yui-toolbar-container .yui-toolbar-underline span.yui-toolbar-icon {
-    background-position: 0 -72px;
-    left: 5px;
-}
-/* Setting the background position of the sprite */
-.yui-skin-sam .yui-toolbar-container .yui-toolbar-subscript span.yui-toolbar-icon {
-    background-position: 0 -180px;
-    left: 5px;
-}
-/* Setting the background position of the sprite */
-.yui-skin-sam .yui-toolbar-container .yui-toolbar-superscript span.yui-toolbar-icon {
-    background-position: 0 -144px;
-    left: 5px;
-}
-/* Setting the background position of the sprite */
-.yui-skin-sam .yui-toolbar-container .yui-toolbar-forecolor span.yui-toolbar-icon {
-    background-position: 0 -216px;
-    left: 5px;
-}
-/* Setting the background position of the sprite */
-.yui-skin-sam .yui-toolbar-container .yui-toolbar-backcolor span.yui-toolbar-icon {
-    background-position: 0 -288px;
-    left: 5px;
-}
-/* Setting the background position of the sprite */
-.yui-skin-sam .yui-toolbar-container .yui-toolbar-justifyleft span.yui-toolbar-icon {
-    background-position: 0 -324px;
-    left: 5px;
-}
-/* Setting the background position of the sprite */
-.yui-skin-sam .yui-toolbar-container .yui-toolbar-justifycenter span.yui-toolbar-icon {
-    background-position: 0 -360px;
-    left: 5px;
-}
-/* Setting the background position of the sprite */
-.yui-skin-sam .yui-toolbar-container .yui-toolbar-justifyright span.yui-toolbar-icon {
-    background-position: 0 -396px;
-    left: 5px;
-}
-/* Setting the background position of the sprite */
-.yui-skin-sam .yui-toolbar-container .yui-toolbar-justifyfull span.yui-toolbar-icon {
-    background-position: 0 -432px;
-    left: 5px;
-}
-/* Setting the background position of the sprite */
-.yui-skin-sam .yui-toolbar-container .yui-toolbar-indent span.yui-toolbar-icon {
-    background-position: 0 -720px;
-    left: 5px;
-}
-/* Setting the background position of the sprite */
-.yui-skin-sam .yui-toolbar-container .yui-toolbar-outdent span.yui-toolbar-icon {
-    background-position: 0 -684px;
-    left: 5px;
-}
-/* Setting the background position of the sprite */
-.yui-skin-sam .yui-toolbar-container .yui-toolbar-createlink span.yui-toolbar-icon {
-    background-position: 0 -792px;
-    left: 5px;
-}
-/* Setting the background position of the sprite */
-.yui-skin-sam .yui-toolbar-container .yui-toolbar-insertimage span.yui-toolbar-icon {
-    background-position: 1px -756px;
-    left: 5px;
-}
-/* Setting the background position of the sprite */
-.yui-skin-sam .yui-toolbar-container .yui-toolbar-left span.yui-toolbar-icon {
-    background-position: 0 -972px;
-    left: 5px;
-}
-/* Setting the background position of the sprite */
-.yui-skin-sam .yui-toolbar-container .yui-toolbar-right span.yui-toolbar-icon {
-    background-position: 0 -936px;
-    left: 5px;
-}
-/* Setting the background position of the sprite */
-.yui-skin-sam .yui-toolbar-container .yui-toolbar-inline span.yui-toolbar-icon {
-    background-position: 0 -900px;
-    left: 5px;
-}
-/* Setting the background position of the sprite */
-.yui-skin-sam .yui-toolbar-container .yui-toolbar-block span.yui-toolbar-icon {
-    background-position: 0 -864px;
-    left: 5px;
-}
-/* Setting the background position of the sprite */
-.yui-skin-sam .yui-toolbar-container .yui-toolbar-bordercolor span.yui-toolbar-icon {
-    background-position: 0 -252px;
-    left: 5px;
-}
-/* Setting the background position of the sprite */
-.yui-skin-sam .yui-toolbar-container .yui-toolbar-removeformat span.yui-toolbar-icon {
-    background-position: 0 -1080px;
-    left: 5px;
-}
-/* Setting the background position of the sprite */
-.yui-skin-sam .yui-toolbar-container .yui-toolbar-hiddenelements span.yui-toolbar-icon {
-    background-position: 0 -1044px;
-    left: 5px;
-}
-/* Setting the background position of the sprite */
-.yui-skin-sam .yui-toolbar-container .yui-toolbar-insertunorderedlist span.yui-toolbar-icon {
-    background-position: 0 -468px;
-    left: 5px;
-}
-/* Setting the background position of the sprite */
-.yui-skin-sam .yui-toolbar-container .yui-toolbar-insertorderedlist span.yui-toolbar-icon {
-    background-position: 0 -504px;
-    left: 5px;
-}
-/* Set the width of the spin buttons */
-.yui-skin-sam .yui-toolbar-container .yui-toolbar-spinbutton,
-.yui-skin-sam .yui-toolbar-container .yui-toolbar-spinbutton .first-child {
-    width: 35px;
-}
-/* Pad the first child */
-.yui-skin-sam .yui-toolbar-container .yui-toolbar-spinbutton .first-child a {
-    padding-left: 2px;
-    text-align: left;    
-}
-
-/* Spin Buttons - Remove the icon holder, they don't need it */
-.yui-skin-sam .yui-toolbar-container .yui-toolbar-spinbutton span.yui-toolbar-icon {
-    display: none;
-}
-
-/* Spin Buttons - Prep the arrows */
-.yui-skin-sam .yui-toolbar-container .yui-toolbar-spinbutton a.up,
-.yui-skin-sam .yui-toolbar-container .yui-toolbar-spinbutton a.down {
-    right: 2px;
-    background: url(editor-sprite.gif) no-repeat 0 -1222px;
-    overflow: hidden;
-    height: 6px;
-    width: 7px;
-    min-height: 0;
-    padding: 0;
-}
-/* Spin Buttons - The up arrow */
-.yui-skin-sam .yui-toolbar-container .yui-toolbar-spinbutton a.up {
-    top: 2px;
-    background-position: 0 -1222px;
-}
-/* Spin Buttons - The down arrow */
-.yui-skin-sam .yui-toolbar-container .yui-toolbar-spinbutton a.down {
-    bottom: 2px;
-    background-position: 0 -1187px;
-}
-/* Handle plain Select Elements */
-.yui-skin-sam .yui-toolbar-container select {
-    height: 22px;
-    border: 1px solid #808080;
-}
-/* Pad and align the Select Menus */
-.yui-skin-sam .yui-toolbar-container .yui-toolbar-select .first-child a {
-    padding-left: 5px;
-    text-align: left;    
-}
-/* Set the icon of the select menu for the drop down arrow */
-.yui-skin-sam .yui-toolbar-container .yui-toolbar-select span.yui-toolbar-icon {
-    background: url( editor-sprite.gif ) no-repeat 0 -1144px;
-    overflow: hidden;
-    right: -2px;
-    top: 0px;
-    height: 20px;
-}
-/* Fix the color menu background if it's inside a Property Editor */
-.yui-skin-sam .yui-editor-panel .yui-color-button-menu .bd {
-    background-color: transparent;
-    border: none;
-    width: 135px;
-}
-
-/* Place a border around the color menu */
-.yui-skin-sam .yui-color-button-menu .yui-toolbar-colors {
-    border: 1px solid #808080;
-}
-
-
-/* Property Editor Panel styles */
-.yui-skin-sam .yui-editor-panel {
-    padding: 0;
-    margin: 0;
-    border: none;
-    background-color: transparent;
-    overflow: visible;
-    position: absolute;
-}
-
-/* Margins on the header of the Property Editor */
-.yui-skin-sam .yui-editor-panel .hd {
-    margin: 10px 0 0;
-    padding: 0;
-    border: none;
-}
-/* Setup the background image on the title bar
-    We are styling the h3 instead if the div so we can make room
-    for the "knob" that floats on the top of the window.
-*/
-.yui-skin-sam .yui-editor-panel .hd h3 {
-    color: #000;
-    border: 1px solid #808080;
-    background: url(../../../../assets/skins/sam/sprite.png) repeat-x 0 -200px;
-    width: 99%;
-    position: relative;
-    margin: 0;
-    padding: 3px 0 0 0;
-    font-size: 93%;
-    text-indent: 5px;
-    height: 20px;
-}
-/* Style the body of the Property Editor */
-.yui-skin-sam .yui-editor-panel .bd {
-    background-color: #F2F2F2;
-    border-left: 1px solid #808080;
-    border-right: 1px solid #808080;
-    width: 99%;
-    margin: 0;
-    padding: 0;
-    overflow: visible;
-}
-/* Remove the padding/margin on lists in the Property Editor */
-.yui-skin-sam .yui-editor-panel ul {
-    list-style-type: none;
-    margin: 0;
-    padding: 0;
-}
-
-/* Remove the padding/margin on list items in the Property Editor */
-.yui-skin-sam .yui-editor-panel ul li {
-    margin: 0;
-    padding: 0;
-}
-/* IE is havig trouble with our menu sizes here */
-.yui-skin-sam .yui-editor-panel .yuimenu {
-    /**width: 90px !important;*/
-}
-/* Remove the border from the toolbar's container and add some margin to it */
-.yui-skin-sam .yui-editor-panel .yui-toolbar-container .yui-toolbar-subcont {
-    padding: 0;
-    border: none;
-    margin-top: 0.35em;
-}
-/* Set the width of the bordersize and bordertype menu buttons */
-.yui-skin-sam .yui-editor-panel .yui-toolbar-bordersize, .yui-skin-sam .yui-editor-panel .yui-toolbar-bordertype {
-    width: 50px;
-}
-
-/* Form styling */
-.yui-skin-sam .yui-editor-panel label {
-    display: block;
-    float: none;
-    padding: 4px 0;
-    margin-bottom: 7px;
-}
-/* Form styling */
-.yui-skin-sam .yui-editor-panel label strong {
-    font-weight: normal;
-    font-size: 93%;
-    text-align: right;
-    padding-top: 2px;
-}
-
-/* Form styling */
-.yui-skin-sam .yui-editor-panel label input {
-    width: 75%;
-}
-/* Form styling */
-.yui-skin-sam .yui-editor-panel .createlink_target,
-.yui-skin-sam .yui-editor-panel .insertimage_target {
-    width: auto;
-    margin-right: 5px;
-}
-
-/* Form styling */
-.yui-skin-sam .yui-editor-panel .removeLink {
-    width: 98%;
-}
-/* Color the input yellow if it has the warning class applied */
-.yui-skin-sam .yui-editor-panel label input.warning {
-    background-color: #FFEE69;
-}
-
-/* Style the titles of the toolbar groups */
-.yui-skin-sam .yui-editor-panel .yui-toolbar-group h3 {
-    color: #000;
-    float: left;
-    font-weight: normal;
-    font-size: 93%;
-    margin: 5px 0 0 0;
-    padding: 0 3px 0 0;
-    text-align: right;
-}
-/* Style the header for the Height and Width boxes */
-.yui-skin-sam .yui-editor-panel .height-width h3 {
-    margin: 3px 0 0 10px;
-}
-/* Style the height and width container */
-.yui-skin-sam .yui-editor-panel .height-width {
-    margin: 3px 0 0 35px;
-    *margin-left: 14px;
-    width: 42%;
-    *width: 44%;
-}
-/* Give the border group a width */
-.yui-skin-sam .yui-editor-panel .yui-toolbar-group-border {
-    width: 190px;
-}
-.yui-skin-sam .yui-editor-panel .no-button .yui-toolbar-group-border {
-    width: 210px;
-}
-/* Give the padding group a width */
-.yui-skin-sam .yui-editor-panel .yui-toolbar-group-padding {
-    width: 203px;
-    _width: 198px;
-}
-.yui-skin-sam .yui-editor-panel .no-button .yui-toolbar-group-padding {
-    width: 172px;
-}
-/* Fix some margins for the H3's */
-.yui-skin-sam .yui-editor-panel .yui-toolbar-group-padding h3 {
-    margin-left: 25px;
-    *margin-left: 12px;
-}
-/* Image Properties - Text flow container size */
-.yui-skin-sam .yui-editor-panel .yui-toolbar-group-textflow {
-    width: 182px;
-}
-
-/* Remove the background image set in Panel.css */
-.yui-skin-sam .yui-editor-panel .hd {
-    background: none;
-}
-
-/* Give the footer som color and a border */
-.yui-skin-sam .yui-editor-panel .ft {
-    background-color: #F2F2F2;
-    border: 1px solid #808080;
-    border-top: none;
-    padding: 0;
-    margin: 0 0 2px 0;
-}
-
-/* Style the close button in the Property Editor */
-.yui-skin-sam .yui-editor-panel .hd span.close {
-    background:url(../../../../assets/skins/sam/sprite.png) no-repeat 0 -300px;
-    cursor:pointer;
-    display:block;
-    height:16px;
-    overflow:hidden;
-    position:absolute;
-    right:5px;
-    text-indent:500px;
-    top:2px;
-    width:26px;
-}
-/* Style the tip in the footer */
-.yui-skin-sam .yui-editor-panel .ft span.tip {
-    background-color: #EDF5FF;
-    border-top: 1px solid #808080;
-    font-size: 85%;
-}
-/* Style the tip in the footer */
-.yui-skin-sam .yui-editor-panel .ft span.tip strong {
-    display: block;
-    float: left;
-    margin: 0 2px 8px 0;
-}
-
-
-/* Setup the icon for a tip */
-.yui-skin-sam .yui-editor-panel .ft span.tip span.icon {
-    background: url( editor-sprite.gif ) no-repeat 0 -1260px;
-    display: block;
-    height: 20px;
-    left: 2px;
-    position: absolute;
-    top: 8px;
-    width: 20px;
-}
-/* Setup the background image for an info icon */
-.yui-skin-sam .yui-editor-panel .ft span.tip span.icon-info {
-    background-position: 2px -1260px;
-}
-/* Setup the background image for a warning icon */
-.yui-skin-sam .yui-editor-panel .ft span.tip span.icon-warn {
-    background-position: 2px -1296px;
-}
-
-/* Handle the knob that floats on top of the panel */
-.yui-skin-sam .yui-editor-panel .hd span.knob {
-    position: absolute;
-    height: 10px;
-    width: 28px;
-    top: -10px;
-    left: 25px;
-    text-indent: 9999px;
-    overflow: hidden;
-    background: url( editor-knob.gif ) no-repeat 0 0;
-}
-/* Reset some styles from the editor toolbar, when a toolbar is inside the Property Editor */
-.yui-skin-sam .yui-editor-panel .yui-toolbar-container {
-    float: left;
-    width: 100%;
-    background-image: none;
-    border: none;
-}
-/* Reset styles for menu buttons inside the Property Editor */
-.yui-skin-sam .yui-editor-panel .yui-toolbar-container .bd {
-    background-color: #ffffff;
-}
-
-/* This image is the one used to place the blankimage placeholder into the editor when you click on Insert an Image */
-.yui-editor-blankimage {
-    background-image: url( blankimage.png );
-}
-
-.yui-skin-sam .yui-editor-container .yui-resize-handle-br {
-    /* Make the handle a little bigger than the default */
-    height: 11px;
-    width: 11px;
-    /* Resposition the image */
-    background-position: -20px -60px;
-    /* Kill the hover on the handle */
-    background-color: transparent;
-}
diff --git a/koha-tmpl/intranet-tmpl/prog/en/lib/yui/editor/assets/skins/sam/simpleeditor.css b/koha-tmpl/intranet-tmpl/prog/en/lib/yui/editor/assets/skins/sam/simpleeditor.css
deleted file mode 100644 (file)
index 62866ef..0000000
+++ /dev/null
@@ -1,10 +0,0 @@
-/*
-Copyright (c) 2009, Yahoo! Inc. All rights reserved.
-Code licensed under the BSD License:
-http://developer.yahoo.net/yui/license.txt
-version: 2.8.0r4
-*/
-.yui-busy{cursor:wait!important;}.yui-toolbar-container fieldset,.yui-editor-container fieldset{padding:0;margin:0;border:0;}.yui-toolbar-container legend{display:none;}.yui-skin-sam .yui-toolbar-container .yui-button button,.yui-skin-sam .yui-toolbar-container .yui-button a,.yui-skin-sam .yui-toolbar-container .yui-button a:visited{font-size:0;}.yui-skin-sam .yui-toolbar-container .yui-toolbar-select button,.yui-skin-sam .yui-toolbar-container .yui-toolbar-select a,.yui-skin-sam .yui-toolbar-container .yui-toolbar-select a:visited,.yui-skin-sam .yui-toolbar-container .yui-toolbar-spinbutton button,.yui-skin-sam .yui-toolbar-container .yui-toolbar-spinbutton a,.yui-skin-sam .yui-toolbar-container .yui-toolbar-spinbutton a:visited{font-size:12px;}.yui-skin-sam .yui-toolbar-container .yui-toolbar-spinbutton a.up,.yui-skin-sam .yui-toolbar-container .yui-toolbar-spinbutton a.down{font-size:0;line-height:0;padding:0;}.yui-toolbar-container .yui-toolbar-subcont{padding:.25em 0;zoom:1;}.yui-toolbar-container-collapsed .yui-toolbar-subcont{display:none;}.yui-toolbar-container .yui-toolbar-subcont:after{display:block;clear:both;visibility:hidden;content:'.';height:0;}.yui-toolbar-container span.yui-toolbar-draghandle{cursor:move;border-left:1px solid #999;border-right:1px solid #999;overflow:hidden;text-indent:77777px;width:2px;height:20px;display:block;clear:none;float:left;margin:0 0 0 .2em;}.yui-toolbar-container .yui-toolbar-titlebar.draggable{cursor:move;}.yui-toolbar-container .yui-toolbar-titlebar{position:relative;}.yui-toolbar-container .yui-toolbar-titlebar h2{font-weight:bold;letter-spacing:0;border:none;color:#000;margin:0;padding:.2em;}.yui-toolbar-container .yui-toolbar-titlebar h2 a{text-decoration:none;color:#000;cursor:default;}.yui-toolbar-container.yui-toolbar-grouped span.yui-toolbar-draghandle{height:40px;}.yui-toolbar-container .yui-toolbar-group{float:left;margin-right:.5em;zoom:1;}.yui-toolbar-container .yui-toolbar-group:after{display:block;clear:both;visibility:hidden;content:'.';height:0;}.yui-toolbar-container .yui-toolbar-group h3{font-size:75%;padding:0 0 0 .25em;margin:0;}.yui-toolbar-container span.yui-toolbar-separator{width:2px;padding:0;height:18px;margin:.2em 0 .2em .1em;display:none;float:left;}.yui-toolbar-container.yui-toolbar-grouped span.yui-toolbar-separator{height:45px;*height:50px;}.yui-toolbar-container.yui-toolbar-grouped .yui-toolbar-group span.yui-toolbar-separator{height:18px;display:block;}.yui-toolbar-container ul li{margin:0;padding:0;list-style-type:none;}.yui-toolbar-container .yui-toolbar-nogrouplabels h3{display:none;}.yui-toolbar-container .yui-push-button,.yui-toolbar-container .yui-color-button,.yui-toolbar-container .yui-menu-button{position:relative;cursor:pointer;}.yui-toolbar-container .yui-button .first-child,.yui-toolbar-container .yui-button .first-child a{height:100%;width:100%;overflow:hidden;font-size:0;}.yui-toolbar-container .yui-button-disabled{cursor:default;}.yui-toolbar-container .yui-button-disabled .yui-toolbar-icon{opacity:.5;filter:alpha(opacity=50);}.yui-toolbar-container .yui-button-disabled .up,.yui-toolbar-container .yui-button-disabled .down{opacity:.5;filter:alpha(opacity=50);}.yui-toolbar-container .yui-button a{overflow:hidden;}.yui-toolbar-container .yui-toolbar-select .first-child a{cursor:pointer;}.yui-toolbar-fontname-arial{font-family:Arial;}.yui-toolbar-fontname-arial-black{font-family:Arial Black;}.yui-toolbar-fontname-comic-sans-ms{font-family:Comic Sans MS;}.yui-toolbar-fontname-courier-new{font-family:Courier New;}.yui-toolbar-fontname-times-new-roman{font-family:Times New Roman;}.yui-toolbar-fontname-verdana{font-family:Verdana;}.yui-toolbar-fontname-impact{font-family:Impact;}.yui-toolbar-fontname-lucida-console{font-family:Lucida Console;}.yui-toolbar-fontname-tahoma{font-family:Tahoma;}.yui-toolbar-fontname-trebuchet-ms{font-family:Trebuchet MS;}.yui-toolbar-container .yui-toolbar-spinbutton{position:relative;}.yui-toolbar-container .yui-toolbar-spinbutton .first-child a{z-index:0;opacity:1;}.yui-toolbar-container .yui-toolbar-spinbutton a.up,.yui-toolbar-container .yui-toolbar-spinbutton a.down{position:absolute;display:block;right:0;cursor:pointer;z-index:1;padding:0;margin:0;}.yui-toolbar-container .yui-overlay{position:absolute;}.yui-toolbar-container .yui-overlay ul li{margin:0;list-style-type:none;}.yui-toolbar-container{z-index:1;}.yui-editor-container .yui-editor-editable-container{position:relative;z-index:0;width:100%;}.yui-editor-container .yui-editor-masked{background-color:#CCC;height:100%;width:100%;position:absolute;top:0;left:0;opacity:.5;filter:alpha(opacity=50);}.yui-editor-container iframe{border:0;padding:0;margin:0;zoom:1;display:block;}.yui-editor-container .yui-editor-editable{padding:0;margin:0;}.yui-editor-container .dompath{font-size:85%;}.yui-editor-panel .hd{text-align:left;position:relative;}.yui-editor-panel .hd h3{font-weight:bold;padding:.25em 0 .25em .25em;margin:0;}.yui-editor-panel .bd{width:100%;zoom:1;position:relative;}.yui-editor-panel .bd div.yui-editor-body-cont{padding:.25em .1em;zoom:1;}.yui-editor-panel .bd .gecko form{overflow:auto;}.yui-editor-panel .bd div.yui-editor-body-cont:after{display:block;clear:both;visibility:hidden;content:'.';height:0;}.yui-editor-panel .ft{text-align:right;width:99%;float:left;clear:both;}.yui-editor-panel .ft span.tip{display:block;position:relative;padding:.5em .5em .5em 23px;text-align:left;zoom:1;}.yui-editor-panel label{clear:both;float:left;padding:0;width:100%;text-align:left;zoom:1;}.yui-editor-panel .gecko label{overflow:auto;}.yui-editor-panel label strong{float:left;width:6em;}.yui-editor-panel .removeLink{width:80%;text-align:right;}.yui-editor-panel label input{margin-left:.25em;float:left;}.yui-editor-panel .yui-toolbar-group{margin-bottom:.75em;}.yui-editor-panel .height-width{float:left;}.yui-editor-panel .height-width span{font-style:italic;display:block;float:left;overflow:visible;}.yui-editor-panel .height-width span.info{font-size:70%;margin-top:3px;float:none;}
-.yui-editor-panel .yui-toolbar-bordersize,.yui-editor-panel .yui-toolbar-bordertype{font-size:75%;}.yui-editor-panel .yui-toolbar-container span.yui-toolbar-separator{border:none;}.yui-editor-panel .yui-toolbar-bordersize span a span,.yui-editor-panel .yui-toolbar-bordertype span a span{display:block;height:8px;left:4px;position:absolute;top:3px;_top:-5px;width:24px;text-indent:52px;font-size:0;}.yui-editor-panel .yui-toolbar-bordertype span a span.yui-toolbar-bordertype-solid{border-bottom:1px solid black;}.yui-editor-panel .yui-toolbar-bordertype span a span.yui-toolbar-bordertype-dotted{border-bottom:1px dotted black;}.yui-editor-panel .yui-toolbar-bordertype span a span.yui-toolbar-bordertype-dashed{border-bottom:1px dashed black;}.yui-editor-panel .yui-toolbar-bordersize span a span.yui-toolbar-bordersize-0{*top:0;text-indent:0;font-size:75%;}.yui-editor-panel .yui-toolbar-bordersize span a span.yui-toolbar-bordersize-1{border-bottom:1px solid black;}.yui-editor-panel .yui-toolbar-bordersize span a span.yui-toolbar-bordersize-2{border-bottom:2px solid black;}.yui-editor-panel .yui-toolbar-bordersize span a span.yui-toolbar-bordersize-3{top:2px;*top:-5px;border-bottom:3px solid black;}.yui-editor-panel .yui-toolbar-bordersize span a span.yui-toolbar-bordersize-4{top:1px;*top:-5px;border-bottom:4px solid black;}.yui-editor-panel .yui-toolbar-bordersize span a span.yui-toolbar-bordersize-5{top:1px;*top:-5px;border-bottom:5px solid black;}.yui-toolbar-container .yui-toolbar-bordersize-menu,.yui-toolbar-container .yui-toolbar-bordertype-menu{width:95px!important;}.yui-toolbar-bordersize-menu .yuimenuitemlabel,.yui-toolbar-bordertype-menu .yuimenuitemlabel,.yui-toolbar-bordersize-menu .yuimenuitemlabel,.yui-toolbar-bordertype-menu .yuimenuitemlabel:hover{margin:0 3px 7px 17px;}.yui-toolbar-bordersize-menu .yuimenuitemlabel .checkedindicator,.yui-toolbar-bordertype-menu .yuimenuitemlabel .checkedindicator{position:absolute;left:-12px;*top:14px;*left:0;}.yui-toolbar-bordersize-menu li.yui-toolbar-bordersize-1 a{border-bottom:1px solid black;height:14px;}.yui-toolbar-bordersize-menu li.yui-toolbar-bordersize-2 a{border-bottom:2px solid black;height:14px;}.yui-toolbar-bordersize-menu li.yui-toolbar-bordersize-3 a{border-bottom:3px solid black;height:14px;}.yui-toolbar-bordersize-menu li.yui-toolbar-bordersize-4 a{border-bottom:4px solid black;height:14px;}.yui-toolbar-bordersize-menu li.yui-toolbar-bordersize-5 a{border-bottom:5px solid black;height:14px;}.yui-toolbar-bordertype-menu li.yui-toolbar-bordertype-solid a{border-bottom:1px solid black;height:14px;}.yui-toolbar-bordertype-menu li.yui-toolbar-bordertype-dashed a{border-bottom:1px dashed black;height:14px;}.yui-toolbar-bordertype-menu li.yui-toolbar-bordertype-dotted a{border-bottom:1px dotted black;height:14px;}h2.yui-editor-skipheader,h3.yui-editor-skipheader{height:0;margin:0;padding:0;border:none;width:0;overflow:hidden;position:absolute;}.yui-toolbar-colors{width:133px;zoom:1;display:none;z-index:100;overflow:hidden;}.yui-toolbar-colors:after{display:block;clear:both;visibility:hidden;content:'.';height:0;}.yui-toolbar-colors a{height:9px;width:9px;float:left;display:block;overflow:hidden;text-indent:999px;margin:0;cursor:pointer;border:1px solid #F6F7EE;}.yui-toolbar-colors a:hover{border:1px solid black;}.yui-color-button-menu{overflow:visible;background-color:transparent;}.yui-toolbar-colors span{position:relative;display:block;padding:3px;overflow:hidden;float:left;width:100%;zoom:1;}.yui-toolbar-colors span:after{display:block;clear:both;visibility:hidden;content:'.';height:0;}.yui-toolbar-colors span em{height:35px;width:30px;float:left;display:block;overflow:hidden;text-indent:999px;margin:.75px;border:1px solid black;}.yui-toolbar-colors span strong{font-weight:normal;padding-left:3px;display:block;font-size:85%;float:left;width:65%;}.yui-toolbar-group-undoredo h3,.yui-toolbar-group-insertitem h3,.yui-toolbar-group-indentlist h3{width:68px;}.yui-toolbar-group-indentlist2 h3{width:122px;}.yui-toolbar-group-alignment h3{width:130px;}.yui-skin-sam .yui-editor-container{border:1px solid #808080;}.yui-skin-sam .yui-toolbar-container{zoom:1;}.yui-skin-sam .yui-toolbar-container .yui-toolbar-titlebar{background:url(../../../../assets/skins/sam/sprite.png) repeat-x 0 -200px;position:relative;}.yui-skin-sam .yui-editor-container .draggable .yui-toolbar-titlebar{cursor:move;}.yui-skin-sam .yui-toolbar-container .yui-toolbar-titlebar h2{color:#000;font-weight:bold;margin:0;padding:.3em 1em;font-size:100%;text-align:left;}.yui-skin-sam .yui-toolbar-container .yui-toolbar-group h3{color:#808080;font-size:75%;margin:1em 0 0;padding-bottom:0;padding-left:.25em;text-align:left;}.yui-toolbar-container span.yui-toolbar-separator{border:none;text-indent:33px;overflow:hidden;margin:0 .25em;}.yui-skin-sam .yui-toolbar-container{background-color:#F2F2F2;}.yui-skin-sam .yui-toolbar-container .yui-toolbar-subcont{padding:0 1em .35em;border-bottom:1px solid #808080;}.yui-skin-sam .yui-toolbar-container-collapsed .yui-toolbar-titlebar{border-bottom:1px solid #808080;}.yui-skin-sam .yui-editor-container .visible .yui-menu-shadow,.yui-skin-sam .yui-editor-panel .visible .yui-menu-shadow{display:none;}.yui-skin-sam .yui-editor-container ul{list-style-type:none;margin:0;padding:0;}.yui-skin-sam .yui-editor-container ul li{list-style-type:none;margin:0;padding:0;}.yui-skin-sam .yui-toolbar-group ul li.yui-toolbar-groupitem{float:left;}.yui-skin-sam .yui-editor-container .dompath{background-color:#F2F2F2;border-top:1px solid #808080;color:#999;text-align:left;padding:.25em;}.yui-skin-sam .yui-toolbar-container .collapse{background:url(../../../../assets/skins/sam/sprite.png) no-repeat 0 -400px;}.yui-skin-sam .yui-toolbar-container .collapsed{background:url(../../../../assets/skins/sam/sprite.png) no-repeat 0 -350px;}.yui-skin-sam .yui-toolbar-container .yui-toolbar-titlebar span.collapse{cursor:pointer;position:absolute;top:4px;right:2px;display:block;overflow:hidden;height:15px;width:15px;text-indent:9999px;}
-.yui-skin-sam .yui-toolbar-container .yui-push-button,.yui-skin-sam .yui-toolbar-container .yui-color-button,.yui-skin-sam .yui-toolbar-container .yui-menu-button{background:url(../../../../assets/skins/sam/sprite.png) repeat-x 0 0;position:relative;display:block;height:22px;width:30px;_font-size:0;margin:0;border-color:#808080;color:#f2f2f2;border-style:solid;border-width:1px 0;zoom:1;}.yui-skin-sam .yui-toolbar-container .yui-push-button a,.yui-skin-sam .yui-toolbar-container .yui-color-button a,.yui-skin-sam .yui-toolbar-container .yui-menu-button a{padding-left:35px;height:20px;text-decoration:none;font-size:0;line-height:2;display:block;color:#000;overflow:hidden;white-space:nowrap;}.yui-skin-sam .yui-toolbar-container .yui-toolbar-spinbutton a,.yui-skin-sam .yui-toolbar-container .yui-toolbar-select a{font-size:12px;}.yui-skin-sam .yui-toolbar-container .yui-push-button .first-child,.yui-skin-sam .yui-toolbar-container .yui-color-button .first-child,.yui-skin-sam .yui-toolbar-container .yui-menu-button .first-child{border-color:#808080;border-style:solid;border-width:0 1px;margin:0 -1px;display:block;position:relative;}.yui-skin-sam .yui-toolbar-container .yui-push-button-disabled .first-child,.yui-skin-sam .yui-toolbar-container .yui-color-button-disabled .first-child,.yui-skin-sam .yui-toolbar-container .yui-menu-button-disabled .first-child{border-color:#ccc;}.yui-skin-sam .yui-toolbar-container .yui-push-button-disabled a,.yui-skin-sam .yui-toolbar-container .yui-color-button-disabled a,.yui-skin-sam .yui-toolbar-container .yui-menu-button-disabled a{color:#A6A6A6;cursor:default;}.yui-skin-sam .yui-toolbar-container .yui-push-button-disabled,.yui-skin-sam .yui-toolbar-container .yui-color-button-disabled,.yui-skin-sam .yui-toolbar-container .yui-menu-button-disabled{border-color:#ccc;}.yui-skin-sam .yui-toolbar-container .yui-button .first-child{*left:0;}.yui-skin-sam .yui-toolbar-container .yui-toolbar-fontname{width:135px;}.yui-skin-sam .yui-toolbar-container .yui-toolbar-heading{width:92px;}.yui-skin-sam .yui-toolbar-container .yui-button-hover{background:url(../../../../assets/skins/sam/sprite.png) repeat-x 0 -1300px;border-color:#808080;}.yui-skin-sam .yui-toolbar-container .yui-button-selected{background:url(../../../../assets/skins/sam/sprite.png) repeat-x 0 -1700px;border-color:#808080;}.yui-skin-sam .yui-toolbar-container .yui-toolbar-nogrouplabels h3{display:none;}.yui-skin-sam .yui-toolbar-container .yui-toolbar-nogrouplabels .yui-toolbar-group{margin-top:.75em;}.yui-skin-sam .yui-toolbar-container .yui-push-button span.yui-toolbar-icon,.yui-skin-sam .yui-toolbar-container .yui-color-button span.yui-toolbar-icon,.yui-skin-sam .yui-toolbar-container .yui-menu-button span.yui-toolbar-icon{display:block;position:absolute;top:2px;height:18px;width:18px;overflow:hidden;background:url(editor-sprite.gif) no-repeat 30px 30px;}.yui-skin-sam .yui-toolbar-container .yui-button-selected span.yui-toolbar-icon,.yui-skin-sam .yui-toolbar-container .yui-button-hover span.yui-toolbar-icon{background-image:url(editor-sprite-active.gif);}.yui-skin-sam .yui-toolbar-container .visible .yuimenuitemlabel{cursor:pointer;color:#000;*position:relative;}.yui-skin-sam .yui-toolbar-container .yui-button-menu{background-color:#fff;}.yui-skin-sam .yui-toolbar-container .yui-button-menu .yui-menu-body-scrolled{position:relative;}.yui-skin-sam div.yuimenu li.selected{background-color:#B3D4FF;}.yui-skin-sam div.yuimenu li.selected a.selected{color:#000;}.yui-skin-sam .yui-toolbar-container .yui-toolbar-bold span.yui-toolbar-icon{background-position:0 0;left:5px;}.yui-skin-sam .yui-toolbar-container .yui-toolbar-strikethrough span.yui-toolbar-icon{background-position:0 -108px;left:5px;}.yui-skin-sam .yui-toolbar-container .yui-toolbar-italic span.yui-toolbar-icon{background-position:0 -36px;left:5px;}.yui-skin-sam .yui-toolbar-container .yui-toolbar-undo span.yui-toolbar-icon{background-position:0 -1326px;left:5px;}.yui-skin-sam .yui-toolbar-container .yui-toolbar-redo span.yui-toolbar-icon{background-position:0 -1355px;left:5px;}.yui-skin-sam .yui-toolbar-container .yui-toolbar-underline span.yui-toolbar-icon{background-position:0 -72px;left:5px;}.yui-skin-sam .yui-toolbar-container .yui-toolbar-subscript span.yui-toolbar-icon{background-position:0 -180px;left:5px;}.yui-skin-sam .yui-toolbar-container .yui-toolbar-superscript span.yui-toolbar-icon{background-position:0 -144px;left:5px;}.yui-skin-sam .yui-toolbar-container .yui-toolbar-forecolor span.yui-toolbar-icon{background-position:0 -216px;left:5px;}.yui-skin-sam .yui-toolbar-container .yui-toolbar-backcolor span.yui-toolbar-icon{background-position:0 -288px;left:5px;}.yui-skin-sam .yui-toolbar-container .yui-toolbar-justifyleft span.yui-toolbar-icon{background-position:0 -324px;left:5px;}.yui-skin-sam .yui-toolbar-container .yui-toolbar-justifycenter span.yui-toolbar-icon{background-position:0 -360px;left:5px;}.yui-skin-sam .yui-toolbar-container .yui-toolbar-justifyright span.yui-toolbar-icon{background-position:0 -396px;left:5px;}.yui-skin-sam .yui-toolbar-container .yui-toolbar-justifyfull span.yui-toolbar-icon{background-position:0 -432px;left:5px;}.yui-skin-sam .yui-toolbar-container .yui-toolbar-indent span.yui-toolbar-icon{background-position:0 -720px;left:5px;}.yui-skin-sam .yui-toolbar-container .yui-toolbar-outdent span.yui-toolbar-icon{background-position:0 -684px;left:5px;}.yui-skin-sam .yui-toolbar-container .yui-toolbar-createlink span.yui-toolbar-icon{background-position:0 -792px;left:5px;}.yui-skin-sam .yui-toolbar-container .yui-toolbar-insertimage span.yui-toolbar-icon{background-position:1px -756px;left:5px;}.yui-skin-sam .yui-toolbar-container .yui-toolbar-left span.yui-toolbar-icon{background-position:0 -972px;left:5px;}.yui-skin-sam .yui-toolbar-container .yui-toolbar-right span.yui-toolbar-icon{background-position:0 -936px;left:5px;}.yui-skin-sam .yui-toolbar-container .yui-toolbar-inline span.yui-toolbar-icon{background-position:0 -900px;left:5px;}
-.yui-skin-sam .yui-toolbar-container .yui-toolbar-block span.yui-toolbar-icon{background-position:0 -864px;left:5px;}.yui-skin-sam .yui-toolbar-container .yui-toolbar-bordercolor span.yui-toolbar-icon{background-position:0 -252px;left:5px;}.yui-skin-sam .yui-toolbar-container .yui-toolbar-removeformat span.yui-toolbar-icon{background-position:0 -1080px;left:5px;}.yui-skin-sam .yui-toolbar-container .yui-toolbar-hiddenelements span.yui-toolbar-icon{background-position:0 -1044px;left:5px;}.yui-skin-sam .yui-toolbar-container .yui-toolbar-insertunorderedlist span.yui-toolbar-icon{background-position:0 -468px;left:5px;}.yui-skin-sam .yui-toolbar-container .yui-toolbar-insertorderedlist span.yui-toolbar-icon{background-position:0 -504px;left:5px;}.yui-skin-sam .yui-toolbar-container .yui-toolbar-spinbutton,.yui-skin-sam .yui-toolbar-container .yui-toolbar-spinbutton .first-child{width:35px;}.yui-skin-sam .yui-toolbar-container .yui-toolbar-spinbutton .first-child a{padding-left:2px;text-align:left;}.yui-skin-sam .yui-toolbar-container .yui-toolbar-spinbutton span.yui-toolbar-icon{display:none;}.yui-skin-sam .yui-toolbar-container .yui-toolbar-spinbutton a.up,.yui-skin-sam .yui-toolbar-container .yui-toolbar-spinbutton a.down{right:2px;background:url(editor-sprite.gif) no-repeat 0 -1222px;overflow:hidden;height:6px;width:7px;min-height:0;padding:0;}.yui-skin-sam .yui-toolbar-container .yui-toolbar-spinbutton a.up{top:2px;background-position:0 -1222px;}.yui-skin-sam .yui-toolbar-container .yui-toolbar-spinbutton a.down{bottom:2px;background-position:0 -1187px;}.yui-skin-sam .yui-toolbar-container select{height:22px;border:1px solid #808080;}.yui-skin-sam .yui-toolbar-container .yui-toolbar-select .first-child a{padding-left:5px;text-align:left;}.yui-skin-sam .yui-toolbar-container .yui-toolbar-select span.yui-toolbar-icon{background:url(editor-sprite.gif) no-repeat 0 -1144px;overflow:hidden;right:-2px;top:0;height:20px;}.yui-skin-sam .yui-editor-panel .yui-color-button-menu .bd{background-color:transparent;border:none;width:135px;}.yui-skin-sam .yui-color-button-menu .yui-toolbar-colors{border:1px solid #808080;}.yui-skin-sam .yui-editor-panel{padding:0;margin:0;border:none;background-color:transparent;overflow:visible;position:absolute;}.yui-skin-sam .yui-editor-panel .hd{margin:10px 0 0;padding:0;border:none;}.yui-skin-sam .yui-editor-panel .hd h3{color:#000;border:1px solid #808080;background:url(../../../../assets/skins/sam/sprite.png) repeat-x 0 -200px;width:99%;position:relative;margin:0;padding:3px 0 0 0;font-size:93%;text-indent:5px;height:20px;}.yui-skin-sam .yui-editor-panel .bd{background-color:#F2F2F2;border-left:1px solid #808080;border-right:1px solid #808080;width:99%;margin:0;padding:0;overflow:visible;}.yui-skin-sam .yui-editor-panel ul{list-style-type:none;margin:0;padding:0;}.yui-skin-sam .yui-editor-panel ul li{margin:0;padding:0;}.yui-skin-sam .yui-editor-panel .yui-toolbar-container .yui-toolbar-subcont{padding:0;border:none;margin-top:.35em;}.yui-skin-sam .yui-editor-panel .yui-toolbar-bordersize,.yui-skin-sam .yui-editor-panel .yui-toolbar-bordertype{width:50px;}.yui-skin-sam .yui-editor-panel label{display:block;float:none;padding:4px 0;margin-bottom:7px;}.yui-skin-sam .yui-editor-panel label strong{font-weight:normal;font-size:93%;text-align:right;padding-top:2px;}.yui-skin-sam .yui-editor-panel label input{width:75%;}.yui-skin-sam .yui-editor-panel .createlink_target,.yui-skin-sam .yui-editor-panel .insertimage_target{width:auto;margin-right:5px;}.yui-skin-sam .yui-editor-panel .removeLink{width:98%;}.yui-skin-sam .yui-editor-panel label input.warning{background-color:#FFEE69;}.yui-skin-sam .yui-editor-panel .yui-toolbar-group h3{color:#000;float:left;font-weight:normal;font-size:93%;margin:5px 0 0 0;padding:0 3px 0 0;text-align:right;}.yui-skin-sam .yui-editor-panel .height-width h3{margin:3px 0 0 10px;}.yui-skin-sam .yui-editor-panel .height-width{margin:3px 0 0 35px;*margin-left:14px;width:42%;*width:44%;}.yui-skin-sam .yui-editor-panel .yui-toolbar-group-border{width:190px;}.yui-skin-sam .yui-editor-panel .no-button .yui-toolbar-group-border{width:210px;}.yui-skin-sam .yui-editor-panel .yui-toolbar-group-padding{width:203px;_width:198px;}.yui-skin-sam .yui-editor-panel .no-button .yui-toolbar-group-padding{width:172px;}.yui-skin-sam .yui-editor-panel .yui-toolbar-group-padding h3{margin-left:25px;*margin-left:12px;}.yui-skin-sam .yui-editor-panel .yui-toolbar-group-textflow{width:182px;}.yui-skin-sam .yui-editor-panel .hd{background:none;}.yui-skin-sam .yui-editor-panel .ft{background-color:#F2F2F2;border:1px solid #808080;border-top:none;padding:0;margin:0 0 2px 0;}.yui-skin-sam .yui-editor-panel .hd span.close{background:url(../../../../assets/skins/sam/sprite.png) no-repeat 0 -300px;cursor:pointer;display:block;height:16px;overflow:hidden;position:absolute;right:5px;text-indent:500px;top:2px;width:26px;}.yui-skin-sam .yui-editor-panel .ft span.tip{background-color:#EDF5FF;border-top:1px solid #808080;font-size:85%;}.yui-skin-sam .yui-editor-panel .ft span.tip strong{display:block;float:left;margin:0 2px 8px 0;}.yui-skin-sam .yui-editor-panel .ft span.tip span.icon{background:url(editor-sprite.gif) no-repeat 0 -1260px;display:block;height:20px;left:2px;position:absolute;top:8px;width:20px;}.yui-skin-sam .yui-editor-panel .ft span.tip span.icon-info{background-position:2px -1260px;}.yui-skin-sam .yui-editor-panel .ft span.tip span.icon-warn{background-position:2px -1296px;}.yui-skin-sam .yui-editor-panel .hd span.knob{position:absolute;height:10px;width:28px;top:-10px;left:25px;text-indent:9999px;overflow:hidden;background:url(editor-knob.gif) no-repeat 0 0;}.yui-skin-sam .yui-editor-panel .yui-toolbar-container{float:left;width:100%;background-image:none;border:none;}.yui-skin-sam .yui-editor-panel .yui-toolbar-container .bd{background-color:#fff;}.yui-editor-blankimage{background-image:url(blankimage.png);}.yui-skin-sam .yui-editor-container .yui-resize-handle-br{height:11px;width:11px;background-position:-20px -60px;background-color:transparent;}
diff --git a/koha-tmpl/intranet-tmpl/prog/en/lib/yui/editor/editor-debug.js b/koha-tmpl/intranet-tmpl/prog/en/lib/yui/editor/editor-debug.js
deleted file mode 100644 (file)
index d4ba08f..0000000
+++ /dev/null
@@ -1,9557 +0,0 @@
-/*
-Copyright (c) 2009, Yahoo! Inc. All rights reserved.
-Code licensed under the BSD License:
-http://developer.yahoo.net/yui/license.txt
-version: 2.8.0r4
-*/
-(function() {
-var Dom = YAHOO.util.Dom,
-    Event = YAHOO.util.Event,
-    Lang = YAHOO.lang;
-    /**
-     * @module editor    
-     * @description <p>Creates a rich custom Toolbar Button. Primarily used with the Rich Text Editor's Toolbar</p>
-     * @class ToolbarButtonAdvanced
-     * @namespace YAHOO.widget
-     * @requires yahoo, dom, element, event, container_core, menu, button
-     * 
-     * Provides a toolbar button based on the button and menu widgets.
-     * @constructor
-     * @class ToolbarButtonAdvanced
-     * @param {String/HTMLElement} el The element to turn into a button.
-     * @param {Object} attrs Object liternal containing configuration parameters.
-    */
-    if (YAHOO.widget.Button) {
-        YAHOO.widget.ToolbarButtonAdvanced = YAHOO.widget.Button;
-        /**
-        * @property buttonType
-        * @private
-        * @description Tells if the Button is a Rich Button or a Simple Button
-        */
-        YAHOO.widget.ToolbarButtonAdvanced.prototype.buttonType = 'rich';
-        /**
-        * @method checkValue
-        * @param {String} value The value of the option that we want to mark as selected
-        * @description Select an option by value
-        */
-        YAHOO.widget.ToolbarButtonAdvanced.prototype.checkValue = function(value) {
-            var _menuItems = this.getMenu().getItems();
-            if (_menuItems.length === 0) {
-                this.getMenu()._onBeforeShow();
-                _menuItems = this.getMenu().getItems();
-            }
-            for (var i = 0; i < _menuItems.length; i++) {
-                _menuItems[i].cfg.setProperty('checked', false);
-                if (_menuItems[i].value == value) {
-                    _menuItems[i].cfg.setProperty('checked', true);
-                }
-            }      
-        };
-    } else {
-        YAHOO.widget.ToolbarButtonAdvanced = function() {};
-    }
-
-
-    /**
-     * @description <p>Creates a basic custom Toolbar Button. Primarily used with the Rich Text Editor's Toolbar</p><p>Provides a toolbar button based on the button and menu widgets, &lt;select&gt; elements are used in place of menu's.</p>
-     * @class ToolbarButton
-     * @namespace YAHOO.widget
-     * @requires yahoo, dom, element, event
-     * @extends YAHOO.util.Element
-     * 
-     * 
-     * @constructor
-     * @param {String/HTMLElement} el The element to turn into a button.
-     * @param {Object} attrs Object liternal containing configuration parameters.
-    */
-
-    YAHOO.widget.ToolbarButton = function(el, attrs) {
-        YAHOO.log('ToolbarButton Initalizing', 'info', 'ToolbarButton');
-        YAHOO.log(arguments.length + ' arguments passed to constructor', 'info', 'Toolbar');
-        
-        if (Lang.isObject(arguments[0]) && !Dom.get(el).nodeType) {
-            attrs = el;
-        }
-        var local_attrs = (attrs || {});
-
-        var oConfig = {
-            element: null,
-            attributes: local_attrs
-        };
-
-        if (!oConfig.attributes.type) {
-            oConfig.attributes.type = 'push';
-        }
-        
-        oConfig.element = document.createElement('span');
-        oConfig.element.setAttribute('unselectable', 'on');
-        oConfig.element.className = 'yui-button yui-' + oConfig.attributes.type + '-button';
-        oConfig.element.innerHTML = '<span class="first-child"><a href="#">LABEL</a></span>';
-        oConfig.element.firstChild.firstChild.tabIndex = '-1';
-        oConfig.attributes.id = (oConfig.attributes.id || Dom.generateId());
-        oConfig.element.id = oConfig.attributes.id;
-
-        YAHOO.widget.ToolbarButton.superclass.constructor.call(this, oConfig.element, oConfig.attributes);
-    };
-
-    YAHOO.extend(YAHOO.widget.ToolbarButton, YAHOO.util.Element, {
-        /**
-        * @property buttonType
-        * @private
-        * @description Tells if the Button is a Rich Button or a Simple Button
-        */
-        buttonType: 'normal',
-        /**
-        * @method _handleMouseOver
-        * @private
-        * @description Adds classes to the button elements on mouseover (hover)
-        */
-        _handleMouseOver: function() {
-            if (!this.get('disabled')) {
-                this.addClass('yui-button-hover');
-                this.addClass('yui-' + this.get('type') + '-button-hover');
-            }
-        },
-        /**
-        * @method _handleMouseOut
-        * @private
-        * @description Removes classes from the button elements on mouseout (hover)
-        */
-        _handleMouseOut: function() {
-            this.removeClass('yui-button-hover');
-            this.removeClass('yui-' + this.get('type') + '-button-hover');
-        },
-        /**
-        * @method checkValue
-        * @param {String} value The value of the option that we want to mark as selected
-        * @description Select an option by value
-        */
-        checkValue: function(value) {
-            if (this.get('type') == 'menu') {
-                var opts = this._button.options;
-                for (var i = 0; i < opts.length; i++) {
-                    if (opts[i].value == value) {
-                        opts.selectedIndex = i;
-                    }
-                }
-            }
-        },
-        /** 
-        * @method init
-        * @description The ToolbarButton class's initialization method
-        */        
-        init: function(p_oElement, p_oAttributes) {
-            YAHOO.widget.ToolbarButton.superclass.init.call(this, p_oElement, p_oAttributes);
-
-            this.on('mouseover', this._handleMouseOver, this, true);
-            this.on('mouseout', this._handleMouseOut, this, true);
-            this.on('click', function(ev) {
-                Event.stopEvent(ev);
-                return false;
-            }, this, true);
-        },
-        /**
-        * @method initAttributes
-        * @description Initializes all of the configuration attributes used to create 
-        * the toolbar.
-        * @param {Object} attr Object literal specifying a set of 
-        * configuration attributes used to create the toolbar.
-        */        
-        initAttributes: function(attr) {
-            YAHOO.widget.ToolbarButton.superclass.initAttributes.call(this, attr);
-            /**
-            * @attribute value
-            * @description The value of the button
-            * @type String
-            */            
-            this.setAttributeConfig('value', {
-                value: attr.value
-            });
-            /**
-            * @attribute menu
-            * @description The menu attribute, see YAHOO.widget.Button
-            * @type Object
-            */            
-            this.setAttributeConfig('menu', {
-                value: attr.menu || false
-            });
-            /**
-            * @attribute type
-            * @description The type of button to create: push, menu, color, select, spin
-            * @type String
-            */            
-            this.setAttributeConfig('type', {
-                value: attr.type,
-                writeOnce: true,
-                method: function(type) {
-                    var el, opt;
-                    if (!this._button) {
-                        this._button = this.get('element').getElementsByTagName('a')[0];
-                    }
-                    switch (type) {
-                        case 'select':
-                        case 'menu':
-                            el = document.createElement('select');
-                            el.id = this.get('id');
-                            var menu = this.get('menu');
-                            for (var i = 0; i < menu.length; i++) {
-                                opt = document.createElement('option');
-                                opt.innerHTML = menu[i].text;
-                                opt.value = menu[i].value;
-                                if (menu[i].checked) {
-                                    opt.selected = true;
-                                }
-                                el.appendChild(opt);
-                            }
-                            this._button.parentNode.replaceChild(el, this._button);
-                            Event.on(el, 'change', this._handleSelect, this, true);
-                            this._button = el;
-                            break;
-                    }
-                }
-            });
-
-            /**
-            * @attribute disabled
-            * @description Set the button into a disabled state
-            * @type String
-            */            
-            this.setAttributeConfig('disabled', {
-                value: attr.disabled || false,
-                method: function(disabled) {
-                    if (disabled) {
-                        this.addClass('yui-button-disabled');
-                        this.addClass('yui-' + this.get('type') + '-button-disabled');
-                    } else {
-                        this.removeClass('yui-button-disabled');
-                        this.removeClass('yui-' + this.get('type') + '-button-disabled');
-                    }
-                    if ((this.get('type') == 'menu') || (this.get('type') == 'select')) {
-                        this._button.disabled = disabled;
-                    }
-                }
-            });
-
-            /**
-            * @attribute label
-            * @description The text label for the button
-            * @type String
-            */            
-            this.setAttributeConfig('label', {
-                value: attr.label,
-                method: function(label) {
-                    if (!this._button) {
-                        this._button = this.get('element').getElementsByTagName('a')[0];
-                    }
-                    if (this.get('type') == 'push') {
-                        this._button.innerHTML = label;
-                    }
-                }
-            });
-
-            /**
-            * @attribute title
-            * @description The title of the button
-            * @type String
-            */            
-            this.setAttributeConfig('title', {
-                value: attr.title
-            });
-
-            /**
-            * @config container
-            * @description The container that the button is rendered to, handled by Toolbar
-            * @type String
-            */            
-            this.setAttributeConfig('container', {
-                value: null,
-                writeOnce: true,
-                method: function(cont) {
-                    this.appendTo(cont);
-                }
-            });
-
-        },
-        /** 
-        * @private
-        * @method _handleSelect
-        * @description The event fired when a change event gets fired on a select element
-        * @param {Event} ev The change event.
-        */        
-        _handleSelect: function(ev) {
-            var tar = Event.getTarget(ev);
-            var value = tar.options[tar.selectedIndex].value;
-            this.fireEvent('change', {type: 'change', value: value });
-        },
-        /** 
-        * @method getMenu
-        * @description A stub function to mimic YAHOO.widget.Button's getMenu method
-        */        
-        getMenu: function() {
-            return this.get('menu');
-        },
-        /** 
-        * @method destroy
-        * @description Destroy the button
-        */        
-        destroy: function() {
-            Event.purgeElement(this.get('element'), true);
-            this.get('element').parentNode.removeChild(this.get('element'));
-            //Brutal Object Destroy
-            for (var i in this) {
-                if (Lang.hasOwnProperty(this, i)) {
-                    this[i] = null;
-                }
-            }       
-        },
-        /** 
-        * @method fireEvent
-        * @description Overridden fireEvent method to prevent DOM events from firing if the button is disabled.
-        */        
-        fireEvent: function(p_sType, p_aArgs) {
-            //  Disabled buttons should not respond to DOM events
-            if (this.DOM_EVENTS[p_sType] && this.get('disabled')) {
-                Event.stopEvent(p_aArgs);
-                return;
-            }
-        
-            YAHOO.widget.ToolbarButton.superclass.fireEvent.call(this, p_sType, p_aArgs);
-        },
-        /**
-        * @method toString
-        * @description Returns a string representing the toolbar.
-        * @return {String}
-        */        
-        toString: function() {
-            return 'ToolbarButton (' + this.get('id') + ')';
-        }
-        
-    });
-})();
-/**
- * @module editor
- * @description <p>Creates a rich Toolbar widget based on Button. Primarily used with the Rich Text Editor</p>
- * @namespace YAHOO.widget
- * @requires yahoo, dom, element, event, toolbarbutton
- * @optional container_core, dragdrop
- */
-(function() {
-var Dom = YAHOO.util.Dom,
-    Event = YAHOO.util.Event,
-    Lang = YAHOO.lang;
-    
-    var getButton = function(id) {
-        var button = id;
-        if (Lang.isString(id)) {
-            button = this.getButtonById(id);
-        }
-        if (Lang.isNumber(id)) {
-            button = this.getButtonByIndex(id);
-        }
-        if ((!(button instanceof YAHOO.widget.ToolbarButton)) && (!(button instanceof YAHOO.widget.ToolbarButtonAdvanced))) {
-            button = this.getButtonByValue(id);
-        }
-        if ((button instanceof YAHOO.widget.ToolbarButton) || (button instanceof YAHOO.widget.ToolbarButtonAdvanced)) {
-            return button;
-        }
-        return false;
-    };
-
-    /**
-     * Provides a rich toolbar widget based on the button and menu widgets
-     * @constructor
-     * @class Toolbar
-     * @extends YAHOO.util.Element
-     * @param {String/HTMLElement} el The element to turn into a toolbar.
-     * @param {Object} attrs Object liternal containing configuration parameters.
-    */
-    YAHOO.widget.Toolbar = function(el, attrs) {
-        YAHOO.log('Toolbar Initalizing', 'info', 'Toolbar');
-        YAHOO.log(arguments.length + ' arguments passed to constructor', 'info', 'Toolbar');
-        
-        if (Lang.isObject(arguments[0]) && !Dom.get(el).nodeType) {
-            attrs = el;
-        }
-        var local_attrs = {};
-        if (attrs) {
-            Lang.augmentObject(local_attrs, attrs); //Break the config reference
-        }
-        
-
-        var oConfig = {
-            element: null,
-            attributes: local_attrs
-        };
-        
-        
-        if (Lang.isString(el) && Dom.get(el)) {
-            oConfig.element = Dom.get(el);
-        } else if (Lang.isObject(el) && Dom.get(el) && Dom.get(el).nodeType) {  
-            oConfig.element = Dom.get(el);
-        }
-        
-
-        if (!oConfig.element) {
-            YAHOO.log('No element defined, creating toolbar container', 'warn', 'Toolbar');
-            oConfig.element = document.createElement('DIV');
-            oConfig.element.id = Dom.generateId();
-            
-            if (local_attrs.container && Dom.get(local_attrs.container)) {
-                YAHOO.log('Container found in config appending to it (' + Dom.get(local_attrs.container).id + ')', 'info', 'Toolbar');
-                Dom.get(local_attrs.container).appendChild(oConfig.element);
-            }
-        }
-        
-
-        if (!oConfig.element.id) {
-            oConfig.element.id = ((Lang.isString(el)) ? el : Dom.generateId());
-            YAHOO.log('No element ID defined for toolbar container, creating..', 'warn', 'Toolbar');
-        }
-        YAHOO.log('Initing toolbar with id: ' + oConfig.element.id, 'info', 'Toolbar');
-        
-        var fs = document.createElement('fieldset');
-        var lg = document.createElement('legend');
-        lg.innerHTML = 'Toolbar';
-        fs.appendChild(lg);
-        
-        var cont = document.createElement('DIV');
-        oConfig.attributes.cont = cont;
-        Dom.addClass(cont, 'yui-toolbar-subcont');
-        fs.appendChild(cont);
-        oConfig.element.appendChild(fs);
-
-        oConfig.element.tabIndex = -1;
-
-        
-        oConfig.attributes.element = oConfig.element;
-        oConfig.attributes.id = oConfig.element.id;
-
-        this._configuredButtons = [];
-
-        YAHOO.widget.Toolbar.superclass.constructor.call(this, oConfig.element, oConfig.attributes);
-         
-    };
-
-    YAHOO.extend(YAHOO.widget.Toolbar, YAHOO.util.Element, {
-        /**
-        * @protected
-        * @property _configuredButtons
-        * @type Array
-        */
-        _configuredButtons: null,
-        /**
-        * @method _addMenuClasses
-        * @private
-        * @description This method is called from Menu's renderEvent to add a few more classes to the menu items
-        * @param {String} ev The event that fired.
-        * @param {Array} na Array of event information.
-        * @param {Object} o Button config object. 
-        */
-        _addMenuClasses: function(ev, na, o) {
-            Dom.addClass(this.element, 'yui-toolbar-' + o.get('value') + '-menu');
-            if (Dom.hasClass(o._button.parentNode.parentNode, 'yui-toolbar-select')) {
-                Dom.addClass(this.element, 'yui-toolbar-select-menu');
-            }
-            var items = this.getItems();
-            for (var i = 0; i < items.length; i++) {
-                Dom.addClass(items[i].element, 'yui-toolbar-' + o.get('value') + '-' + ((items[i].value) ? items[i].value.replace(/ /g, '-').toLowerCase() : items[i]._oText.nodeValue.replace(/ /g, '-').toLowerCase()));
-                Dom.addClass(items[i].element, 'yui-toolbar-' + o.get('value') + '-' + ((items[i].value) ? items[i].value.replace(/ /g, '-') : items[i]._oText.nodeValue.replace(/ /g, '-')));
-            }
-        },
-        /** 
-        * @property buttonType
-        * @description The default button to use
-        * @type Object
-        */
-        buttonType: YAHOO.widget.ToolbarButton,
-        /** 
-        * @property dd
-        * @description The DragDrop instance associated with the Toolbar
-        * @type Object
-        */
-        dd: null,
-        /** 
-        * @property _colorData
-        * @description Object reference containing colors hex and text values.
-        * @type Object
-        */
-        _colorData: {
-/* {{{ _colorData */
-    '#111111': 'Obsidian',
-    '#2D2D2D': 'Dark Gray',
-    '#434343': 'Shale',
-    '#5B5B5B': 'Flint',
-    '#737373': 'Gray',
-    '#8B8B8B': 'Concrete',
-    '#A2A2A2': 'Gray',
-    '#B9B9B9': 'Titanium',
-    '#000000': 'Black',
-    '#D0D0D0': 'Light Gray',
-    '#E6E6E6': 'Silver',
-    '#FFFFFF': 'White',
-    '#BFBF00': 'Pumpkin',
-    '#FFFF00': 'Yellow',
-    '#FFFF40': 'Banana',
-    '#FFFF80': 'Pale Yellow',
-    '#FFFFBF': 'Butter',
-    '#525330': 'Raw Siena',
-    '#898A49': 'Mildew',
-    '#AEA945': 'Olive',
-    '#7F7F00': 'Paprika',
-    '#C3BE71': 'Earth',
-    '#E0DCAA': 'Khaki',
-    '#FCFAE1': 'Cream',
-    '#60BF00': 'Cactus',
-    '#80FF00': 'Chartreuse',
-    '#A0FF40': 'Green',
-    '#C0FF80': 'Pale Lime',
-    '#DFFFBF': 'Light Mint',
-    '#3B5738': 'Green',
-    '#668F5A': 'Lime Gray',
-    '#7F9757': 'Yellow',
-    '#407F00': 'Clover',
-    '#8A9B55': 'Pistachio',
-    '#B7C296': 'Light Jade',
-    '#E6EBD5': 'Breakwater',
-    '#00BF00': 'Spring Frost',
-    '#00FF80': 'Pastel Green',
-    '#40FFA0': 'Light Emerald',
-    '#80FFC0': 'Sea Foam',
-    '#BFFFDF': 'Sea Mist',
-    '#033D21': 'Dark Forrest',
-    '#438059': 'Moss',
-    '#7FA37C': 'Medium Green',
-    '#007F40': 'Pine',
-    '#8DAE94': 'Yellow Gray Green',
-    '#ACC6B5': 'Aqua Lung',
-    '#DDEBE2': 'Sea Vapor',
-    '#00BFBF': 'Fog',
-    '#00FFFF': 'Cyan',
-    '#40FFFF': 'Turquoise Blue',
-    '#80FFFF': 'Light Aqua',
-    '#BFFFFF': 'Pale Cyan',
-    '#033D3D': 'Dark Teal',
-    '#347D7E': 'Gray Turquoise',
-    '#609A9F': 'Green Blue',
-    '#007F7F': 'Seaweed',
-    '#96BDC4': 'Green Gray',
-    '#B5D1D7': 'Soapstone',
-    '#E2F1F4': 'Light Turquoise',
-    '#0060BF': 'Summer Sky',
-    '#0080FF': 'Sky Blue',
-    '#40A0FF': 'Electric Blue',
-    '#80C0FF': 'Light Azure',
-    '#BFDFFF': 'Ice Blue',
-    '#1B2C48': 'Navy',
-    '#385376': 'Biscay',
-    '#57708F': 'Dusty Blue',
-    '#00407F': 'Sea Blue',
-    '#7792AC': 'Sky Blue Gray',
-    '#A8BED1': 'Morning Sky',
-    '#DEEBF6': 'Vapor',
-    '#0000BF': 'Deep Blue',
-    '#0000FF': 'Blue',
-    '#4040FF': 'Cerulean Blue',
-    '#8080FF': 'Evening Blue',
-    '#BFBFFF': 'Light Blue',
-    '#212143': 'Deep Indigo',
-    '#373E68': 'Sea Blue',
-    '#444F75': 'Night Blue',
-    '#00007F': 'Indigo Blue',
-    '#585E82': 'Dockside',
-    '#8687A4': 'Blue Gray',
-    '#D2D1E1': 'Light Blue Gray',
-    '#6000BF': 'Neon Violet',
-    '#8000FF': 'Blue Violet',
-    '#A040FF': 'Violet Purple',
-    '#C080FF': 'Violet Dusk',
-    '#DFBFFF': 'Pale Lavender',
-    '#302449': 'Cool Shale',
-    '#54466F': 'Dark Indigo',
-    '#655A7F': 'Dark Violet',
-    '#40007F': 'Violet',
-    '#726284': 'Smoky Violet',
-    '#9E8FA9': 'Slate Gray',
-    '#DCD1DF': 'Violet White',
-    '#BF00BF': 'Royal Violet',
-    '#FF00FF': 'Fuchsia',
-    '#FF40FF': 'Magenta',
-    '#FF80FF': 'Orchid',
-    '#FFBFFF': 'Pale Magenta',
-    '#4A234A': 'Dark Purple',
-    '#794A72': 'Medium Purple',
-    '#936386': 'Cool Granite',
-    '#7F007F': 'Purple',
-    '#9D7292': 'Purple Moon',
-    '#C0A0B6': 'Pale Purple',
-    '#ECDAE5': 'Pink Cloud',
-    '#BF005F': 'Hot Pink',
-    '#FF007F': 'Deep Pink',
-    '#FF409F': 'Grape',
-    '#FF80BF': 'Electric Pink',
-    '#FFBFDF': 'Pink',
-    '#451528': 'Purple Red',
-    '#823857': 'Purple Dino',
-    '#A94A76': 'Purple Gray',
-    '#7F003F': 'Rose',
-    '#BC6F95': 'Antique Mauve',
-    '#D8A5BB': 'Cool Marble',
-    '#F7DDE9': 'Pink Granite',
-    '#C00000': 'Apple',
-    '#FF0000': 'Fire Truck',
-    '#FF4040': 'Pale Red',
-    '#FF8080': 'Salmon',
-    '#FFC0C0': 'Warm Pink',
-    '#441415': 'Sepia',
-    '#82393C': 'Rust',
-    '#AA4D4E': 'Brick',
-    '#800000': 'Brick Red',
-    '#BC6E6E': 'Mauve',
-    '#D8A3A4': 'Shrimp Pink',
-    '#F8DDDD': 'Shell Pink',
-    '#BF5F00': 'Dark Orange',
-    '#FF7F00': 'Orange',
-    '#FF9F40': 'Grapefruit',
-    '#FFBF80': 'Canteloupe',
-    '#FFDFBF': 'Wax',
-    '#482C1B': 'Dark Brick',
-    '#855A40': 'Dirt',
-    '#B27C51': 'Tan',
-    '#7F3F00': 'Nutmeg',
-    '#C49B71': 'Mustard',
-    '#E1C4A8': 'Pale Tan',
-    '#FDEEE0': 'Marble'
-/* }}} */
-        },
-        /** 
-        * @property _colorPicker
-        * @description The HTML Element containing the colorPicker
-        * @type HTMLElement
-        */
-        _colorPicker: null,
-        /** 
-        * @property STR_COLLAPSE
-        * @description String for Toolbar Collapse Button
-        * @type String
-        */
-        STR_COLLAPSE: 'Collapse Toolbar',
-        /** 
-        * @property STR_EXPAND
-        * @description String for Toolbar Collapse Button - Expand
-        * @type String
-        */
-        STR_EXPAND: 'Expand Toolbar',
-        /** 
-        * @property STR_SPIN_LABEL
-        * @description String for spinbutton dynamic label. Note the {VALUE} will be replaced with YAHOO.lang.substitute
-        * @type String
-        */
-        STR_SPIN_LABEL: 'Spin Button with value {VALUE}. Use Control Shift Up Arrow and Control Shift Down arrow keys to increase or decrease the value.',
-        /** 
-        * @property STR_SPIN_UP
-        * @description String for spinbutton up
-        * @type String
-        */
-        STR_SPIN_UP: 'Click to increase the value of this input',
-        /** 
-        * @property STR_SPIN_DOWN
-        * @description String for spinbutton down
-        * @type String
-        */
-        STR_SPIN_DOWN: 'Click to decrease the value of this input',
-        /** 
-        * @property _titlebar
-        * @description Object reference to the titlebar
-        * @type HTMLElement
-        */
-        _titlebar: null,
-        /** 
-        * @property browser
-        * @description Standard browser detection
-        * @type Object
-        */
-        browser: YAHOO.env.ua,
-        /**
-        * @protected
-        * @property _buttonList
-        * @description Internal property list of current buttons in the toolbar
-        * @type Array
-        */
-        _buttonList: null,
-        /**
-        * @protected
-        * @property _buttonGroupList
-        * @description Internal property list of current button groups in the toolbar
-        * @type Array
-        */
-        _buttonGroupList: null,
-        /**
-        * @protected
-        * @property _sep
-        * @description Internal reference to the separator HTML Element for cloning
-        * @type HTMLElement
-        */
-        _sep: null,
-        /**
-        * @protected
-        * @property _sepCount
-        * @description Internal refernce for counting separators, so we can give them a useful class name for styling
-        * @type Number
-        */
-        _sepCount: null,
-        /**
-        * @protected
-        * @property draghandle
-        * @type HTMLElement
-        */
-        _dragHandle: null,
-        /**
-        * @protected
-        * @property _toolbarConfigs
-        * @type Object
-        */
-        _toolbarConfigs: {
-            renderer: true
-        },
-        /**
-        * @protected
-        * @property CLASS_CONTAINER
-        * @description Default CSS class to apply to the toolbar container element
-        * @type String
-        */
-        CLASS_CONTAINER: 'yui-toolbar-container',
-        /**
-        * @protected
-        * @property CLASS_DRAGHANDLE
-        * @description Default CSS class to apply to the toolbar's drag handle element
-        * @type String
-        */
-        CLASS_DRAGHANDLE: 'yui-toolbar-draghandle',
-        /**
-        * @protected
-        * @property CLASS_SEPARATOR
-        * @description Default CSS class to apply to all separators in the toolbar
-        * @type String
-        */
-        CLASS_SEPARATOR: 'yui-toolbar-separator',
-        /**
-        * @protected
-        * @property CLASS_DISABLED
-        * @description Default CSS class to apply when the toolbar is disabled
-        * @type String
-        */
-        CLASS_DISABLED: 'yui-toolbar-disabled',
-        /**
-        * @protected
-        * @property CLASS_PREFIX
-        * @description Default prefix for dynamically created class names
-        * @type String
-        */
-        CLASS_PREFIX: 'yui-toolbar',
-        /** 
-        * @method init
-        * @description The Toolbar class's initialization method
-        */
-        init: function(p_oElement, p_oAttributes) {
-            YAHOO.widget.Toolbar.superclass.init.call(this, p_oElement, p_oAttributes);
-        },
-        /**
-        * @method initAttributes
-        * @description Initializes all of the configuration attributes used to create 
-        * the toolbar.
-        * @param {Object} attr Object literal specifying a set of 
-        * configuration attributes used to create the toolbar.
-        */
-        initAttributes: function(attr) {
-            YAHOO.widget.Toolbar.superclass.initAttributes.call(this, attr);
-            this.addClass(this.CLASS_CONTAINER);
-
-            /**
-            * @attribute buttonType
-            * @description The buttonType to use (advanced or basic)
-            * @type String
-            */
-            this.setAttributeConfig('buttonType', {
-                value: attr.buttonType || 'basic',
-                writeOnce: true,
-                validator: function(type) {
-                    switch (type) {
-                        case 'advanced':
-                        case 'basic':
-                            return true;
-                    }
-                    return false;
-                },
-                method: function(type) {
-                    if (type == 'advanced') {
-                        if (YAHOO.widget.Button) {
-                            this.buttonType = YAHOO.widget.ToolbarButtonAdvanced;
-                        } else {
-                            YAHOO.log('Can not find YAHOO.widget.Button', 'error', 'Toolbar');
-                            this.buttonType = YAHOO.widget.ToolbarButton;
-                        }
-                    } else {
-                        this.buttonType = YAHOO.widget.ToolbarButton;
-                    }
-                }
-            });
-
-
-            /**
-            * @attribute buttons
-            * @description Object specifying the buttons to include in the toolbar
-            * Example:
-            * <code><pre>
-            * {
-            *   { id: 'b3', type: 'button', label: 'Underline', value: 'underline' },
-            *   { type: 'separator' },
-            *   { id: 'b4', type: 'menu', label: 'Align', value: 'align',
-            *       menu: [
-            *           { text: "Left", value: 'alignleft' },
-            *           { text: "Center", value: 'aligncenter' },
-            *           { text: "Right", value: 'alignright' }
-            *       ]
-            *   }
-            * }
-            * </pre></code>
-            * @type Array
-            */
-            
-            this.setAttributeConfig('buttons', {
-                value: [],
-                writeOnce: true,
-                method: function(data) {
-                    var i, button, buttons, len, b;
-                    for (i in data) {
-                        if (Lang.hasOwnProperty(data, i)) {
-                            if (data[i].type == 'separator') {
-                                this.addSeparator();
-                            } else if (data[i].group !== undefined) {
-                                buttons = this.addButtonGroup(data[i]);
-                                if (buttons) {
-                                    len = buttons.length;
-                                    for(b = 0; b < len; b++) {
-                                        if (buttons[b]) {
-                                            this._configuredButtons[this._configuredButtons.length] = buttons[b].id;
-                                        }
-                                    }
-                                }
-                                
-                            } else {
-                                button = this.addButton(data[i]);
-                                if (button) {
-                                    this._configuredButtons[this._configuredButtons.length] = button.id;
-                                }
-                            }
-                        }
-                    }
-                }
-            });
-
-            /**
-            * @attribute disabled
-            * @description Boolean indicating if the toolbar should be disabled. It will also disable the draggable attribute if it is on.
-            * @default false
-            * @type Boolean
-            */
-            this.setAttributeConfig('disabled', {
-                value: false,
-                method: function(disabled) {
-                    if (this.get('disabled') === disabled) {
-                        return false;
-                    }
-                    if (disabled) {
-                        this.addClass(this.CLASS_DISABLED);
-                        this.set('draggable', false);
-                        this.disableAllButtons();
-                    } else {
-                        this.removeClass(this.CLASS_DISABLED);
-                        if (this._configs.draggable._initialConfig.value) {
-                            //Draggable by default, set it back
-                            this.set('draggable', true);
-                        }
-                        this.resetAllButtons();
-                    }
-                }
-            });
-
-            /**
-            * @config cont
-            * @description The container for the toolbar.
-            * @type HTMLElement
-            */
-            this.setAttributeConfig('cont', {
-                value: attr.cont,
-                readOnly: true
-            });
-
-
-            /**
-            * @attribute grouplabels
-            * @description Boolean indicating if the toolbar should show the group label's text string.
-            * @default true
-            * @type Boolean
-            */
-            this.setAttributeConfig('grouplabels', {
-                value: ((attr.grouplabels === false) ? false : true),
-                method: function(grouplabels) {
-                    if (grouplabels) {
-                        Dom.removeClass(this.get('cont'), (this.CLASS_PREFIX + '-nogrouplabels'));
-                    } else {
-                        Dom.addClass(this.get('cont'), (this.CLASS_PREFIX + '-nogrouplabels'));
-                    }
-                }
-            });
-            /**
-            * @attribute titlebar
-            * @description Boolean indicating if the toolbar should have a titlebar. If
-            * passed a string, it will use that as the titlebar text
-            * @default false
-            * @type Boolean or String
-            */
-            this.setAttributeConfig('titlebar', {
-                value: false,
-                method: function(titlebar) {
-                    if (titlebar) {
-                        if (this._titlebar && this._titlebar.parentNode) {
-                            this._titlebar.parentNode.removeChild(this._titlebar);
-                        }
-                        this._titlebar = document.createElement('DIV');
-                        this._titlebar.tabIndex = '-1';
-                        Event.on(this._titlebar, 'focus', function() {
-                            this._handleFocus();
-                        }, this, true);
-                        Dom.addClass(this._titlebar, this.CLASS_PREFIX + '-titlebar');
-                        if (Lang.isString(titlebar)) {
-                            var h2 = document.createElement('h2');
-                            h2.tabIndex = '-1';
-                            h2.innerHTML = '<a href="#" tabIndex="0">' + titlebar + '</a>';
-                            this._titlebar.appendChild(h2);
-                            Event.on(h2.firstChild, 'click', function(ev) {
-                                Event.stopEvent(ev);
-                            });
-                            Event.on([h2, h2.firstChild], 'focus', function() {
-                                this._handleFocus();
-                            }, this, true);
-                        }
-                        if (this.get('firstChild')) {
-                            this.insertBefore(this._titlebar, this.get('firstChild'));
-                        } else {
-                            this.appendChild(this._titlebar);
-                        }
-                        if (this.get('collapse')) {
-                            this.set('collapse', true);
-                        }
-                    } else if (this._titlebar) {
-                        if (this._titlebar && this._titlebar.parentNode) {
-                            this._titlebar.parentNode.removeChild(this._titlebar);
-                        }
-                    }
-                }
-            });
-
-
-            /**
-            * @attribute collapse
-            * @description Boolean indicating if the titlebar should have a collapse button.
-            * The collapse button will not remove the toolbar, it will minimize it to the titlebar
-            * @default false
-            * @type Boolean
-            */
-            this.setAttributeConfig('collapse', {
-                value: false,
-                method: function(collapse) {
-                    if (this._titlebar) {
-                        var collapseEl = null;
-                        var el = Dom.getElementsByClassName('collapse', 'span', this._titlebar);
-                        if (collapse) {
-                            if (el.length > 0) {
-                                //There is already a collapse button
-                                return true;
-                            }
-                            collapseEl = document.createElement('SPAN');
-                            collapseEl.innerHTML = 'X';
-                            collapseEl.title = this.STR_COLLAPSE;
-
-                            Dom.addClass(collapseEl, 'collapse');
-                            this._titlebar.appendChild(collapseEl);
-                            Event.addListener(collapseEl, 'click', function() {
-                                if (Dom.hasClass(this.get('cont').parentNode, 'yui-toolbar-container-collapsed')) {
-                                    this.collapse(false); //Expand Toolbar
-                                } else {
-                                    this.collapse(); //Collapse Toolbar
-                                }
-                            }, this, true);
-                        } else {
-                            collapseEl = Dom.getElementsByClassName('collapse', 'span', this._titlebar);
-                            if (collapseEl[0]) {
-                                if (Dom.hasClass(this.get('cont').parentNode, 'yui-toolbar-container-collapsed')) {
-                                    //We are closed, reopen the titlebar..
-                                    this.collapse(false); //Expand Toolbar
-                                }
-                                collapseEl[0].parentNode.removeChild(collapseEl[0]);
-                            }
-                        }
-                    }
-                }
-            });
-
-            /**
-            * @attribute draggable
-            * @description Boolean indicating if the toolbar should be draggable.  
-            * @default false
-            * @type Boolean
-            */
-
-            this.setAttributeConfig('draggable', {
-                value: (attr.draggable || false),
-                method: function(draggable) {
-                    if (draggable && !this.get('titlebar')) {
-                        YAHOO.log('Dragging enabled', 'info', 'Toolbar');
-                        if (!this._dragHandle) {
-                            this._dragHandle = document.createElement('SPAN');
-                            this._dragHandle.innerHTML = '|';
-                            this._dragHandle.setAttribute('title', 'Click to drag the toolbar');
-                            this._dragHandle.id = this.get('id') + '_draghandle';
-                            Dom.addClass(this._dragHandle, this.CLASS_DRAGHANDLE);
-                            if (this.get('cont').hasChildNodes()) {
-                                this.get('cont').insertBefore(this._dragHandle, this.get('cont').firstChild);
-                            } else {
-                                this.get('cont').appendChild(this._dragHandle);
-                            }
-                            this.dd = new YAHOO.util.DD(this.get('id'));
-                            this.dd.setHandleElId(this._dragHandle.id);
-                            
-                        }
-                    } else {
-                        YAHOO.log('Dragging disabled', 'info', 'Toolbar');
-                        if (this._dragHandle) {
-                            this._dragHandle.parentNode.removeChild(this._dragHandle);
-                            this._dragHandle = null;
-                            this.dd = null;
-                        }
-                    }
-                    if (this._titlebar) {
-                        if (draggable) {
-                            this.dd = new YAHOO.util.DD(this.get('id'));
-                            this.dd.setHandleElId(this._titlebar);
-                            Dom.addClass(this._titlebar, 'draggable');
-                        } else {
-                            Dom.removeClass(this._titlebar, 'draggable');
-                            if (this.dd) {
-                                this.dd.unreg();
-                                this.dd = null;
-                            }
-                        }
-                    }
-                },
-                validator: function(value) {
-                    var ret = true;
-                    if (!YAHOO.util.DD) {
-                        ret = false;
-                    }
-                    return ret;
-                }
-            });
-
-        },
-        /**
-        * @method addButtonGroup
-        * @description Add a new button group to the toolbar. (uses addButton)
-        * @param {Object} oGroup Object literal reference to the Groups Config (contains an array of button configs as well as the group label)
-        */
-        addButtonGroup: function(oGroup) {
-            if (!this.get('element')) {
-                this._queue[this._queue.length] = ['addButtonGroup', arguments];
-                return false;
-            }
-            
-            if (!this.hasClass(this.CLASS_PREFIX + '-grouped')) {
-                this.addClass(this.CLASS_PREFIX + '-grouped');
-            }
-            var div = document.createElement('DIV');
-            Dom.addClass(div, this.CLASS_PREFIX + '-group');
-            Dom.addClass(div, this.CLASS_PREFIX + '-group-' + oGroup.group);
-            if (oGroup.label) {
-                var label = document.createElement('h3');
-                label.innerHTML = oGroup.label;
-                div.appendChild(label);
-            }
-            if (!this.get('grouplabels')) {
-                Dom.addClass(this.get('cont'), this.CLASS_PREFIX, '-nogrouplabels');
-            }
-
-            this.get('cont').appendChild(div);
-
-            //For accessibility, let's put all of the group buttons in an Unordered List
-            var ul = document.createElement('ul');
-            div.appendChild(ul);
-
-            if (!this._buttonGroupList) {
-                this._buttonGroupList = {};
-            }
-            
-            this._buttonGroupList[oGroup.group] = ul;
-
-            //An array of the button ids added to this group
-            //This is used for destruction later...
-            var addedButtons = [],
-                button;
-            
-
-            for (var i = 0; i < oGroup.buttons.length; i++) {
-                var li = document.createElement('li');
-                li.className = this.CLASS_PREFIX + '-groupitem';
-                ul.appendChild(li);
-                if ((oGroup.buttons[i].type !== undefined) && oGroup.buttons[i].type == 'separator') {
-                    this.addSeparator(li);
-                } else {
-                    oGroup.buttons[i].container = li;
-                    button = this.addButton(oGroup.buttons[i]);
-                    if (button) {
-                        addedButtons[addedButtons.length]  = button.id;
-                    }
-                }
-            }
-            return addedButtons;
-        },
-        /**
-        * @method addButtonToGroup
-        * @description Add a new button to a toolbar group. Buttons supported:
-        *   push, split, menu, select, color, spin
-        * @param {Object} oButton Object literal reference to the Button's Config
-        * @param {String} group The Group identifier passed into the initial config
-        * @param {HTMLElement} after Optional HTML element to insert this button after in the DOM.
-        */
-        addButtonToGroup: function(oButton, group, after) {
-            var groupCont = this._buttonGroupList[group],
-                li = document.createElement('li');
-
-            li.className = this.CLASS_PREFIX + '-groupitem';
-            oButton.container = li;
-            this.addButton(oButton, after);
-            groupCont.appendChild(li);
-        },
-        /**
-        * @method addButton
-        * @description Add a new button to the toolbar. Buttons supported:
-        *   push, split, menu, select, color, spin
-        * @param {Object} oButton Object literal reference to the Button's Config
-        * @param {HTMLElement} after Optional HTML element to insert this button after in the DOM.
-        */
-        addButton: function(oButton, after) {
-            if (!this.get('element')) {
-                this._queue[this._queue.length] = ['addButton', arguments];
-                return false;
-            }
-            if (!this._buttonList) {
-                this._buttonList = [];
-            }
-            YAHOO.log('Adding button of type: ' + oButton.type, 'info', 'Toolbar');
-            if (!oButton.container) {
-                oButton.container = this.get('cont');
-            }
-
-            if ((oButton.type == 'menu') || (oButton.type == 'split') || (oButton.type == 'select')) {
-                if (Lang.isArray(oButton.menu)) {
-                    for (var i in oButton.menu) {
-                        if (Lang.hasOwnProperty(oButton.menu, i)) {
-                            var funcObject = {
-                                fn: function(ev, x, oMenu) {
-                                    if (!oButton.menucmd) {
-                                        oButton.menucmd = oButton.value;
-                                    }
-                                    oButton.value = ((oMenu.value) ? oMenu.value : oMenu._oText.nodeValue);
-                                },
-                                scope: this
-                            };
-                            oButton.menu[i].onclick = funcObject;
-                        }
-                    }
-                }
-            }
-            var _oButton = {}, skip = false;
-            for (var o in oButton) {
-                if (Lang.hasOwnProperty(oButton, o)) {
-                    if (!this._toolbarConfigs[o]) {
-                        _oButton[o] = oButton[o];
-                    }
-                }
-            }
-            if (oButton.type == 'select') {
-                _oButton.type = 'menu';
-            }
-            if (oButton.type == 'spin') {
-                _oButton.type = 'push';
-            }
-            if (_oButton.type == 'color') {
-                if (YAHOO.widget.Overlay) {
-                    _oButton = this._makeColorButton(_oButton);
-                } else {
-                    skip = true;
-                }
-            }
-            if (_oButton.menu) {
-                if ((YAHOO.widget.Overlay) && (oButton.menu instanceof YAHOO.widget.Overlay)) {
-                    oButton.menu.showEvent.subscribe(function() {
-                        this._button = _oButton;
-                    });
-                } else {
-                    for (var m = 0; m < _oButton.menu.length; m++) {
-                        if (!_oButton.menu[m].value) {
-                            _oButton.menu[m].value = _oButton.menu[m].text;
-                        }
-                    }
-                    if (this.browser.webkit) {
-                        _oButton.focusmenu = false;
-                    }
-                }
-            }
-            if (skip) {
-                oButton = false;
-            } else {
-                //Add to .get('buttons') manually
-                this._configs.buttons.value[this._configs.buttons.value.length] = oButton;
-                
-                var tmp = new this.buttonType(_oButton);
-                tmp.get('element').tabIndex = '-1';
-                tmp.get('element').setAttribute('role', 'button');
-                tmp._selected = true;
-                
-                if (this.get('disabled')) {
-                    //Toolbar is disabled, disable the new button too!
-                    tmp.set('disabled', true);
-                }
-                if (!oButton.id) {
-                    oButton.id = tmp.get('id');
-                }
-                YAHOO.log('Button created (' + oButton.type + ')', 'info', 'Toolbar');
-                
-                if (after) {
-                    var el = tmp.get('element');
-                    var nextSib = null;
-                    if (after.get) {
-                        nextSib = after.get('element').nextSibling;
-                    } else if (after.nextSibling) {
-                        nextSib = after.nextSibling;
-                    }
-                    if (nextSib) {
-                        nextSib.parentNode.insertBefore(el, nextSib);
-                    }
-                }
-                tmp.addClass(this.CLASS_PREFIX + '-' + tmp.get('value'));
-
-                var icon = document.createElement('span');
-                icon.className = this.CLASS_PREFIX + '-icon';
-                tmp.get('element').insertBefore(icon, tmp.get('firstChild'));
-                if (tmp._button.tagName.toLowerCase() == 'button') {
-                    tmp.get('element').setAttribute('unselectable', 'on');
-                    //Replace the Button HTML Element with an a href if it exists
-                    var a = document.createElement('a');
-                    a.innerHTML = tmp._button.innerHTML;
-                    a.href = '#';
-                    a.tabIndex = '-1';
-                    Event.on(a, 'click', function(ev) {
-                        Event.stopEvent(ev);
-                    });
-                    tmp._button.parentNode.replaceChild(a, tmp._button);
-                    tmp._button = a;
-                }
-
-                if (oButton.type == 'select') {
-                    if (tmp._button.tagName.toLowerCase() == 'select') {
-                        icon.parentNode.removeChild(icon);
-                        var iel = tmp._button,
-                            parEl = tmp.get('element');
-                        parEl.parentNode.replaceChild(iel, parEl);
-                        //The 'element' value is currently the orphaned element
-                        //In order for "destroy" to execute we need to get('element') to reference the correct node.
-                        //I'm not sure if there is a direct approach to setting this value.
-                        tmp._configs.element.value = iel;
-                    } else {
-                        //Don't put a class on it if it's a real select element
-                        tmp.addClass(this.CLASS_PREFIX + '-select');
-                    }
-                }
-                if (oButton.type == 'spin') {
-                    if (!Lang.isArray(oButton.range)) {
-                        oButton.range = [ 10, 100 ];
-                    }
-                    this._makeSpinButton(tmp, oButton);
-                }
-                tmp.get('element').setAttribute('title', tmp.get('label'));
-                if (oButton.type != 'spin') {
-                    if ((YAHOO.widget.Overlay) && (_oButton.menu instanceof YAHOO.widget.Overlay)) {
-                        var showPicker = function(ev) {
-                            var exec = true;
-                            if (ev.keyCode && (ev.keyCode == 9)) {
-                                exec = false;
-                            }
-                            if (exec) {
-                                if (this._colorPicker) {
-                                    this._colorPicker._button = oButton.value;
-                                }
-                                var menuEL = tmp.getMenu().element;
-                                if (Dom.getStyle(menuEL, 'visibility') == 'hidden') {
-                                    tmp.getMenu().show();
-                                } else {
-                                    tmp.getMenu().hide();
-                                }
-                            }
-                            YAHOO.util.Event.stopEvent(ev);
-                        };
-                        tmp.on('mousedown', showPicker, oButton, this);
-                        tmp.on('keydown', showPicker, oButton, this);
-                        
-                    } else if ((oButton.type != 'menu') && (oButton.type != 'select')) {
-                        tmp.on('keypress', this._buttonClick, oButton, this);
-                        tmp.on('mousedown', function(ev) {
-                            YAHOO.util.Event.stopEvent(ev);
-                            this._buttonClick(ev, oButton);
-                        }, oButton, this);
-                        tmp.on('click', function(ev) {
-                            YAHOO.util.Event.stopEvent(ev);
-                        });
-                    } else {
-                        //Stop the mousedown event so we can trap the selection in the editor!
-                        tmp.on('mousedown', function(ev) {
-                            YAHOO.util.Event.stopEvent(ev);
-                        });
-                        tmp.on('click', function(ev) {
-                            YAHOO.util.Event.stopEvent(ev);
-                        });
-                        tmp.on('change', function(ev) {
-                            if (!ev.target) {
-                                if (!oButton.menucmd) {
-                                    oButton.menucmd = oButton.value;
-                                }
-                                oButton.value = ev.value;
-                                this._buttonClick(ev, oButton);
-                            }
-                        }, this, true);
-
-                        var self = this;
-                        //Hijack the mousedown event in the menu and make it fire a button click..
-                        tmp.on('appendTo', function() {
-                            var tmp = this;
-                            if (tmp.getMenu() && tmp.getMenu().mouseDownEvent) {
-                                tmp.getMenu().mouseDownEvent.subscribe(function(ev, args) {
-                                    YAHOO.log('mouseDownEvent', 'warn', 'Toolbar');
-                                    var oMenu = args[1];
-                                    YAHOO.util.Event.stopEvent(args[0]);
-                                    tmp._onMenuClick(args[0], tmp);
-                                    if (!oButton.menucmd) {
-                                        oButton.menucmd = oButton.value;
-                                    }
-                                    oButton.value = ((oMenu.value) ? oMenu.value : oMenu._oText.nodeValue);
-                                    self._buttonClick.call(self, args[1], oButton);
-                                    tmp._hideMenu();
-                                    return false;
-                                });
-                                tmp.getMenu().clickEvent.subscribe(function(ev, args) {
-                                    YAHOO.log('clickEvent', 'warn', 'Toolbar');
-                                    YAHOO.util.Event.stopEvent(args[0]);
-                                });
-                                tmp.getMenu().mouseUpEvent.subscribe(function(ev, args) {
-                                    YAHOO.log('mouseUpEvent', 'warn', 'Toolbar');
-                                    YAHOO.util.Event.stopEvent(args[0]);
-                                });
-                            }
-                        });
-                        
-                    }
-                } else {
-                    //Stop the mousedown event so we can trap the selection in the editor!
-                    tmp.on('mousedown', function(ev) {
-                        YAHOO.util.Event.stopEvent(ev);
-                    });
-                    tmp.on('click', function(ev) {
-                        YAHOO.util.Event.stopEvent(ev);
-                    });
-                }
-                if (this.browser.ie) {
-                    /*
-                    //Add a couple of new events for IE
-                    tmp.DOM_EVENTS.focusin = true;
-                    tmp.DOM_EVENTS.focusout = true;
-                    
-                    //Stop them so we don't loose focus in the Editor
-                    tmp.on('focusin', function(ev) {
-                        YAHOO.util.Event.stopEvent(ev);
-                    }, oButton, this);
-                    
-                    tmp.on('focusout', function(ev) {
-                        YAHOO.util.Event.stopEvent(ev);
-                    }, oButton, this);
-                    tmp.on('click', function(ev) {
-                        YAHOO.util.Event.stopEvent(ev);
-                    }, oButton, this);
-                    */
-                }
-                if (this.browser.webkit) {
-                    //This will keep the document from gaining focus and the editor from loosing it..
-                    //Forcefully remove the focus calls in button!
-                    tmp.hasFocus = function() {
-                        return true;
-                    };
-                }
-                this._buttonList[this._buttonList.length] = tmp;
-                if ((oButton.type == 'menu') || (oButton.type == 'split') || (oButton.type == 'select')) {
-                    if (Lang.isArray(oButton.menu)) {
-                        YAHOO.log('Button type is (' + oButton.type + '), doing extra renderer work.', 'info', 'Toolbar');
-                        var menu = tmp.getMenu();
-                        if (menu && menu.renderEvent) {
-                            menu.renderEvent.subscribe(this._addMenuClasses, tmp);
-                            if (oButton.renderer) {
-                                menu.renderEvent.subscribe(oButton.renderer, tmp);
-                            }
-                        }
-                    }
-                }
-            }
-            return oButton;
-        },
-        /**
-        * @method addSeparator
-        * @description Add a new button separator to the toolbar.
-        * @param {HTMLElement} cont Optional HTML element to insert this button into.
-        * @param {HTMLElement} after Optional HTML element to insert this button after in the DOM.
-        */
-        addSeparator: function(cont, after) {
-            if (!this.get('element')) {
-                this._queue[this._queue.length] = ['addSeparator', arguments];
-                return false;
-            }
-            var sepCont = ((cont) ? cont : this.get('cont'));
-            if (!this.get('element')) {
-                this._queue[this._queue.length] = ['addSeparator', arguments];
-                return false;
-            }
-            if (this._sepCount === null) {
-                this._sepCount = 0;
-            }
-            if (!this._sep) {
-                YAHOO.log('Separator does not yet exist, creating', 'info', 'Toolbar');
-                this._sep = document.createElement('SPAN');
-                Dom.addClass(this._sep, this.CLASS_SEPARATOR);
-                this._sep.innerHTML = '|';
-            }
-            YAHOO.log('Separator does exist, cloning', 'info', 'Toolbar');
-            var _sep = this._sep.cloneNode(true);
-            this._sepCount++;
-            Dom.addClass(_sep, this.CLASS_SEPARATOR + '-' + this._sepCount);
-            if (after) {
-                var nextSib = null;
-                if (after.get) {
-                    nextSib = after.get('element').nextSibling;
-                } else if (after.nextSibling) {
-                    nextSib = after.nextSibling;
-                } else {
-                    nextSib = after;
-                }
-                if (nextSib) {
-                    if (nextSib == after) {
-                        nextSib.parentNode.appendChild(_sep);
-                    } else {
-                        nextSib.parentNode.insertBefore(_sep, nextSib);
-                    }
-                }
-            } else {
-                sepCont.appendChild(_sep);
-            }
-            return _sep;
-        },
-        /**
-        * @method _createColorPicker
-        * @private
-        * @description Creates the core DOM reference to the color picker menu item.
-        * @param {String} id the id of the toolbar to prefix this DOM container with.
-        */
-        _createColorPicker: function(id) {
-            if (Dom.get(id + '_colors')) {
-               Dom.get(id + '_colors').parentNode.removeChild(Dom.get(id + '_colors'));
-            }
-            var picker = document.createElement('div');
-            picker.className = 'yui-toolbar-colors';
-            picker.id = id + '_colors';
-            picker.style.display = 'none';
-            Event.on(window, 'load', function() {
-                document.body.appendChild(picker);
-            }, this, true);
-
-            this._colorPicker = picker;
-
-            var html = '';
-            for (var i in this._colorData) {
-                if (Lang.hasOwnProperty(this._colorData, i)) {
-                    html += '<a style="background-color: ' + i + '" href="#">' + i.replace('#', '') + '</a>';
-                }
-            }
-            html += '<span><em>X</em><strong></strong></span>';
-            window.setTimeout(function() {
-                picker.innerHTML = html;
-            }, 0);
-
-            Event.on(picker, 'mouseover', function(ev) {
-                var picker = this._colorPicker;
-                var em = picker.getElementsByTagName('em')[0];
-                var strong = picker.getElementsByTagName('strong')[0];
-                var tar = Event.getTarget(ev);
-                if (tar.tagName.toLowerCase() == 'a') {
-                    em.style.backgroundColor = tar.style.backgroundColor;
-                    strong.innerHTML = this._colorData['#' + tar.innerHTML] + '<br>' + tar.innerHTML;
-                }
-            }, this, true);
-            Event.on(picker, 'focus', function(ev) {
-                Event.stopEvent(ev);
-            });
-            Event.on(picker, 'click', function(ev) {
-                Event.stopEvent(ev);
-            });
-            Event.on(picker, 'mousedown', function(ev) {
-                Event.stopEvent(ev);
-                var tar = Event.getTarget(ev);
-                if (tar.tagName.toLowerCase() == 'a') {
-                    var retVal = this.fireEvent('colorPickerClicked', { type: 'colorPickerClicked', target: this, button: this._colorPicker._button, color: tar.innerHTML, colorName: this._colorData['#' + tar.innerHTML] } );
-                    if (retVal !== false) {
-                        var info = {
-                            color: tar.innerHTML,
-                            colorName: this._colorData['#' + tar.innerHTML],
-                            value: this._colorPicker._button 
-                        };
-                    
-                        this.fireEvent('buttonClick', { type: 'buttonClick', target: this.get('element'), button: info });
-                    }
-                    this.getButtonByValue(this._colorPicker._button).getMenu().hide();
-                }
-            }, this, true);
-        },
-        /**
-        * @method _resetColorPicker
-        * @private
-        * @description Clears the currently selected color or mouseover color in the color picker.
-        */
-        _resetColorPicker: function() {
-            var em = this._colorPicker.getElementsByTagName('em')[0];
-            var strong = this._colorPicker.getElementsByTagName('strong')[0];
-            em.style.backgroundColor = 'transparent';
-            strong.innerHTML = '';
-        },
-        /**
-        * @method _makeColorButton
-        * @private
-        * @description Called to turn a "color" button into a menu button with an Overlay for the menu.
-        * @param {Object} _oButton <a href="YAHOO.widget.ToolbarButton.html">YAHOO.widget.ToolbarButton</a> reference
-        */
-        _makeColorButton: function(_oButton) {
-            if (!this._colorPicker) {   
-                this._createColorPicker(this.get('id'));
-            }
-            _oButton.type = 'color';
-            _oButton.menu = new YAHOO.widget.Overlay(this.get('id') + '_' + _oButton.value + '_menu', { visible: false, position: 'absolute', iframe: true });
-            _oButton.menu.setBody('');
-            _oButton.menu.render(this.get('cont'));
-            Dom.addClass(_oButton.menu.element, 'yui-button-menu');
-            Dom.addClass(_oButton.menu.element, 'yui-color-button-menu');
-            _oButton.menu.beforeShowEvent.subscribe(function() {
-                _oButton.menu.cfg.setProperty('zindex', 5); //Re Adjust the overlays zIndex.. not sure why.
-                _oButton.menu.cfg.setProperty('context', [this.getButtonById(_oButton.id).get('element'), 'tl', 'bl']); //Re Adjust the overlay.. not sure why.
-                //Move the DOM reference of the color picker to the Overlay that we are about to show.
-                this._resetColorPicker();
-                var _p = this._colorPicker;
-                if (_p.parentNode) {
-                    _p.parentNode.removeChild(_p);
-                }
-                _oButton.menu.setBody('');
-                _oButton.menu.appendToBody(_p);
-                this._colorPicker.style.display = 'block';
-            }, this, true);
-            return _oButton;
-        },
-        /**
-        * @private
-        * @method _makeSpinButton
-        * @description Create a button similar to an OS Spin button.. It has an up/down arrow combo to scroll through a range of int values.
-        * @param {Object} _button <a href="YAHOO.widget.ToolbarButton.html">YAHOO.widget.ToolbarButton</a> reference
-        * @param {Object} oButton Object literal containing the buttons initial config
-        */
-        _makeSpinButton: function(_button, oButton) {
-            _button.addClass(this.CLASS_PREFIX + '-spinbutton');
-            var self = this,
-                _par = _button._button.parentNode.parentNode, //parentNode of Button Element for appending child
-                range = oButton.range,
-                _b1 = document.createElement('a'),
-                _b2 = document.createElement('a');
-                _b1.href = '#';
-                _b2.href = '#';
-                _b1.tabIndex = '-1';
-                _b2.tabIndex = '-1';
-            
-            //Setup the up and down arrows
-            _b1.className = 'up';
-            _b1.title = this.STR_SPIN_UP;
-            _b1.innerHTML = this.STR_SPIN_UP;
-            _b2.className = 'down';
-            _b2.title = this.STR_SPIN_DOWN;
-            _b2.innerHTML = this.STR_SPIN_DOWN;
-
-            //Append them to the container
-            _par.appendChild(_b1);
-            _par.appendChild(_b2);
-            
-            var label = YAHOO.lang.substitute(this.STR_SPIN_LABEL, { VALUE: _button.get('label') });
-            _button.set('title', label);
-
-            var cleanVal = function(value) {
-                value = ((value < range[0]) ? range[0] : value);
-                value = ((value > range[1]) ? range[1] : value);
-                return value;
-            };
-
-            var br = this.browser;
-            var tbar = false;
-            var strLabel = this.STR_SPIN_LABEL;
-            if (this._titlebar && this._titlebar.firstChild) {
-                tbar = this._titlebar.firstChild;
-            }
-            
-            var _intUp = function(ev) {
-                YAHOO.util.Event.stopEvent(ev);
-                if (!_button.get('disabled') && (ev.keyCode != 9)) {
-                    var value = parseInt(_button.get('label'), 10);
-                    value++;
-                    value = cleanVal(value);
-                    _button.set('label', ''+value);
-                    var label = YAHOO.lang.substitute(strLabel, { VALUE: _button.get('label') });
-                    _button.set('title', label);
-                    if (!br.webkit && tbar) {
-                        //tbar.focus(); //We do this for accessibility, on the re-focus of the element, a screen reader will re-read the title that was just changed
-                        //_button.focus();
-                    }
-                    self._buttonClick(ev, oButton);
-                }
-            };
-
-            var _intDown = function(ev) {
-                YAHOO.util.Event.stopEvent(ev);
-                if (!_button.get('disabled') && (ev.keyCode != 9)) {
-                    var value = parseInt(_button.get('label'), 10);
-                    value--;
-                    value = cleanVal(value);
-
-                    _button.set('label', ''+value);
-                    var label = YAHOO.lang.substitute(strLabel, { VALUE: _button.get('label') });
-                    _button.set('title', label);
-                    if (!br.webkit && tbar) {
-                        //tbar.focus(); //We do this for accessibility, on the re-focus of the element, a screen reader will re-read the title that was just changed
-                        //_button.focus();
-                    }
-                    self._buttonClick(ev, oButton);
-                }
-            };
-
-            var _intKeyUp = function(ev) {
-                if (ev.keyCode == 38) {
-                    _intUp(ev);
-                } else if (ev.keyCode == 40) {
-                    _intDown(ev);
-                } else if (ev.keyCode == 107 && ev.shiftKey) {  //Plus Key
-                    _intUp(ev);
-                } else if (ev.keyCode == 109 && ev.shiftKey) {  //Minus Key
-                    _intDown(ev);
-                }
-            };
-
-            //Handle arrow keys..
-            _button.on('keydown', _intKeyUp, this, true);
-
-            //Listen for the click on the up button and act on it
-            //Listen for the click on the down button and act on it
-            Event.on(_b1, 'mousedown',function(ev) {
-                Event.stopEvent(ev);
-            }, this, true);
-            Event.on(_b2, 'mousedown', function(ev) {
-                Event.stopEvent(ev);
-            }, this, true);
-            Event.on(_b1, 'click', _intUp, this, true);
-            Event.on(_b2, 'click', _intDown, this, true);
-        },
-        /**
-        * @protected
-        * @method _buttonClick
-        * @description Click handler for all buttons in the toolbar.
-        * @param {String} ev The event that was passed in.
-        * @param {Object} info Object literal of information about the button that was clicked.
-        */
-        _buttonClick: function(ev, info) {
-            var doEvent = true;
-            
-            if (ev && ev.type == 'keypress') {
-                if (ev.keyCode == 9) {
-                    doEvent = false;
-                } else if ((ev.keyCode === 13) || (ev.keyCode === 0) || (ev.keyCode === 32)) {
-                } else {
-                    doEvent = false;
-                }
-            }
-
-            if (doEvent) {
-                var fireNextEvent = true,
-                    retValue = false;
-                    
-                info.isSelected = this.isSelected(info.id);
-
-                if (info.value) {
-                    YAHOO.log('fireEvent::' + info.value + 'Click', 'info', 'Toolbar');
-                    retValue = this.fireEvent(info.value + 'Click', { type: info.value + 'Click', target: this.get('element'), button: info });
-                    if (retValue === false) {
-                        fireNextEvent = false;
-                    }
-                }
-                
-                if (info.menucmd && fireNextEvent) {
-                    YAHOO.log('fireEvent::' + info.menucmd + 'Click', 'info', 'Toolbar');
-                    retValue = this.fireEvent(info.menucmd + 'Click', { type: info.menucmd + 'Click', target: this.get('element'), button: info });
-                    if (retValue === false) {
-                        fireNextEvent = false;
-                    }
-                }
-                if (fireNextEvent) {
-                    YAHOO.log('fireEvent::buttonClick', 'info', 'Toolbar');
-                    this.fireEvent('buttonClick', { type: 'buttonClick', target: this.get('element'), button: info });
-                }
-
-                if (info.type == 'select') {
-                    var button = this.getButtonById(info.id);
-                    if (button.buttonType == 'rich') {
-                        var txt = info.value;
-                        for (var i = 0; i < info.menu.length; i++) {
-                            if (info.menu[i].value == info.value) {
-                                txt = info.menu[i].text;
-                                break;
-                            }
-                        }
-                        button.set('label', '<span class="yui-toolbar-' + info.menucmd + '-' + (info.value).replace(/ /g, '-').toLowerCase() + '">' + txt + '</span>');
-                        var _items = button.getMenu().getItems();
-                        for (var m = 0; m < _items.length; m++) {
-                            if (_items[m].value.toLowerCase() == info.value.toLowerCase()) {
-                                _items[m].cfg.setProperty('checked', true);
-                            } else {
-                                _items[m].cfg.setProperty('checked', false);
-                            }
-                        }
-                    }
-                }
-                if (ev) {
-                    Event.stopEvent(ev);
-                }
-            }
-        },
-        /**
-        * @private
-        * @property _keyNav
-        * @description Flag to determine if the arrow nav listeners have been attached
-        * @type Boolean
-        */
-        _keyNav: null,
-        /**
-        * @private
-        * @property _navCounter
-        * @description Internal counter for walking the buttons in the toolbar with the arrow keys
-        * @type Number
-        */
-        _navCounter: null,
-        /**
-        * @private
-        * @method _navigateButtons
-        * @description Handles the navigation/focus of toolbar buttons with the Arrow Keys
-        * @param {Event} ev The Key Event
-        */
-        _navigateButtons: function(ev) {
-            switch (ev.keyCode) {
-                case 37:
-                case 39:
-                    if (ev.keyCode == 37) {
-                        this._navCounter--;
-                    } else {
-                        this._navCounter++;
-                    }
-                    if (this._navCounter > (this._buttonList.length - 1)) {
-                        this._navCounter = 0;
-                    }
-                    if (this._navCounter < 0) {
-                        this._navCounter = (this._buttonList.length - 1);
-                    }
-                    if (this._buttonList[this._navCounter]) {
-                        var el = this._buttonList[this._navCounter].get('element');
-                        if (this.browser.ie) {
-                            el = this._buttonList[this._navCounter].get('element').getElementsByTagName('a')[0];
-                        }
-                        if (this._buttonList[this._navCounter].get('disabled')) {
-                            this._navigateButtons(ev);
-                        } else {
-                            el.focus();
-                        }
-                    }
-                    break;
-            }
-        },
-        /**
-        * @private
-        * @method _handleFocus
-        * @description Sets up the listeners for the arrow key navigation
-        */
-        _handleFocus: function() {
-            if (!this._keyNav) {
-                var ev = 'keypress';
-                if (this.browser.ie) {
-                    ev = 'keydown';
-                }
-                Event.on(this.get('element'), ev, this._navigateButtons, this, true);
-                this._keyNav = true;
-                this._navCounter = -1;
-            }
-        },
-        /**
-        * @method getButtonById
-        * @description Gets a button instance from the toolbar by is Dom id.
-        * @param {String} id The Dom id to query for.
-        * @return {<a href="YAHOO.widget.ToolbarButton.html">YAHOO.widget.ToolbarButton</a>}
-        */
-        getButtonById: function(id) {
-            var len = this._buttonList.length;
-            for (var i = 0; i < len; i++) {
-                if (this._buttonList[i] && this._buttonList[i].get('id') == id) {
-                    return this._buttonList[i];
-                }
-            }
-            return false;
-        },
-        /**
-        * @method getButtonByValue
-        * @description Gets a button instance or a menuitem instance from the toolbar by it's value.
-        * @param {String} value The button value to query for.
-        * @return {<a href="YAHOO.widget.ToolbarButton.html">YAHOO.widget.ToolbarButton</a> or <a href="YAHOO.widget.MenuItem.html">YAHOO.widget.MenuItem</a>}
-        */
-        getButtonByValue: function(value) {
-            var _buttons = this.get('buttons');
-            if (!_buttons) {
-                return false;
-            }
-            var len = _buttons.length;
-            for (var i = 0; i < len; i++) {
-                if (_buttons[i].group !== undefined) {
-                    for (var m = 0; m < _buttons[i].buttons.length; m++) {
-                        if ((_buttons[i].buttons[m].value == value) || (_buttons[i].buttons[m].menucmd == value)) {
-                            return this.getButtonById(_buttons[i].buttons[m].id);
-                        }
-                        if (_buttons[i].buttons[m].menu) { //Menu Button, loop through the values
-                            for (var s = 0; s < _buttons[i].buttons[m].menu.length; s++) {
-                                if (_buttons[i].buttons[m].menu[s].value == value) {
-                                    return this.getButtonById(_buttons[i].buttons[m].id);
-                                }
-                            }
-                        }
-                    }
-                } else {
-                    if ((_buttons[i].value == value) || (_buttons[i].menucmd == value)) {
-                        return this.getButtonById(_buttons[i].id);
-                    }
-                    if (_buttons[i].menu) { //Menu Button, loop through the values
-                        for (var j = 0; j < _buttons[i].menu.length; j++) {
-                            if (_buttons[i].menu[j].value == value) {
-                                return this.getButtonById(_buttons[i].id);
-                            }
-                        }
-                    }
-                }
-            }
-            return false;
-        },
-        /**
-        * @method getButtonByIndex
-        * @description Gets a button instance from the toolbar by is index in _buttonList.
-        * @param {Number} index The index of the button in _buttonList.
-        * @return {<a href="YAHOO.widget.ToolbarButton.html">YAHOO.widget.ToolbarButton</a>}
-        */
-        getButtonByIndex: function(index) {
-            if (this._buttonList[index]) {
-                return this._buttonList[index];
-            } else {
-                return false;
-            }
-        },
-        /**
-        * @method getButtons
-        * @description Returns an array of buttons in the current toolbar
-        * @return {Array}
-        */
-        getButtons: function() {
-            return this._buttonList;
-        },
-        /**
-        * @method disableButton
-        * @description Disables a button in the toolbar.
-        * @param {String/Number} id Disable a button by it's id, index or value.
-        * @return {Boolean}
-        */
-        disableButton: function(id) {
-            var button = getButton.call(this, id);
-            if (button) {
-                button.set('disabled', true);
-            } else {
-                return false;
-            }
-        },
-        /**
-        * @method enableButton
-        * @description Enables a button in the toolbar.
-        * @param {String/Number} id Enable a button by it's id, index or value.
-        * @return {Boolean}
-        */
-        enableButton: function(id) {
-            if (this.get('disabled')) {
-                return false;
-            }
-            var button = getButton.call(this, id);
-            if (button) {
-                if (button.get('disabled')) {
-                    button.set('disabled', false);
-                }
-            } else {
-                return false;
-            }
-        },
-        /**
-        * @method isSelected
-        * @description Tells if a button is selected or not.
-        * @param {String/Number} id A button by it's id, index or value.
-        * @return {Boolean}
-        */
-        isSelected: function(id) {
-            var button = getButton.call(this, id);
-            if (button) {
-                return button._selected;
-            }
-            return false;
-        },
-        /**
-        * @method selectButton
-        * @description Selects a button in the toolbar.
-        * @param {String/Number} id Select a button by it's id, index or value.
-        * @param {String} value If this is a Menu Button, check this item in the menu
-        * @return {Boolean}
-        */
-        selectButton: function(id, value) {
-            var button = getButton.call(this, id);
-            if (button) {
-                button.addClass('yui-button-selected');
-                button.addClass('yui-button-' + button.get('value') + '-selected');
-                button._selected = true;
-                if (value) {
-                    if (button.buttonType == 'rich') {
-                        var _items = button.getMenu().getItems();
-                        for (var m = 0; m < _items.length; m++) {
-                            if (_items[m].value == value) {
-                                _items[m].cfg.setProperty('checked', true);
-                                button.set('label', '<span class="yui-toolbar-' + button.get('value') + '-' + (value).replace(/ /g, '-').toLowerCase() + '">' + _items[m]._oText.nodeValue + '</span>');
-                            } else {
-                                _items[m].cfg.setProperty('checked', false);
-                            }
-                        }
-                    }
-                }
-            } else {
-                return false;
-            }
-        },
-        /**
-        * @method deselectButton
-        * @description Deselects a button in the toolbar.
-        * @param {String/Number} id Deselect a button by it's id, index or value.
-        * @return {Boolean}
-        */
-        deselectButton: function(id) {
-            var button = getButton.call(this, id);
-            if (button) {
-                button.removeClass('yui-button-selected');
-                button.removeClass('yui-button-' + button.get('value') + '-selected');
-                button.removeClass('yui-button-hover');
-                button._selected = false;
-            } else {
-                return false;
-            }
-        },
-        /**
-        * @method deselectAllButtons
-        * @description Deselects all buttons in the toolbar.
-        * @return {Boolean}
-        */
-        deselectAllButtons: function() {
-            var len = this._buttonList.length;
-            for (var i = 0; i < len; i++) {
-                this.deselectButton(this._buttonList[i]);
-            }
-        },
-        /**
-        * @method disableAllButtons
-        * @description Disables all buttons in the toolbar.
-        * @return {Boolean}
-        */
-        disableAllButtons: function() {
-            if (this.get('disabled')) {
-                return false;
-            }
-            var len = this._buttonList.length;
-            for (var i = 0; i < len; i++) {
-                this.disableButton(this._buttonList[i]);
-            }
-        },
-        /**
-        * @method enableAllButtons
-        * @description Enables all buttons in the toolbar.
-        * @return {Boolean}
-        */
-        enableAllButtons: function() {
-            if (this.get('disabled')) {
-                return false;
-            }
-            var len = this._buttonList.length;
-            for (var i = 0; i < len; i++) {
-                this.enableButton(this._buttonList[i]);
-            }
-        },
-        /**
-        * @method resetAllButtons
-        * @description Resets all buttons to their initial state.
-        * @param {Object} _ex Except these buttons
-        * @return {Boolean}
-        */
-        resetAllButtons: function(_ex) {
-            if (!Lang.isObject(_ex)) {
-                _ex = {};
-            }
-            if (this.get('disabled') || !this._buttonList) {
-                return false;
-            }
-            var len = this._buttonList.length;
-            for (var i = 0; i < len; i++) {
-                var _button = this._buttonList[i];
-                if (_button) {
-                    var disabled = _button._configs.disabled._initialConfig.value;
-                    if (_ex[_button.get('id')]) {
-                        this.enableButton(_button);
-                        this.selectButton(_button);
-                    } else {
-                        if (disabled) {
-                            this.disableButton(_button);
-                        } else {
-                            this.enableButton(_button);
-                        }
-                        this.deselectButton(_button);
-                    }
-                }
-            }
-        },
-        /**
-        * @method destroyButton
-        * @description Destroy a button in the toolbar.
-        * @param {String/Number} id Destroy a button by it's id or index.
-        * @return {Boolean}
-        */
-        destroyButton: function(id) {
-            var button = getButton.call(this, id);
-            if (button) {
-                var thisID = button.get('id'),
-                    new_list = [], i = 0,
-                    len = this._buttonList.length;
-
-                button.destroy();
-                
-                for (i = 0; i < len; i++) {
-                    if (this._buttonList[i].get('id') != thisID) {
-                        new_list[new_list.length]= this._buttonList[i];
-                    }
-                }
-
-                this._buttonList = new_list;
-            } else {
-                return false;
-            }
-        },
-        /**
-        * @method destroy
-        * @description Destroys the toolbar, all of it's elements and objects.
-        * @return {Boolean}
-        */
-        destroy: function() {
-            var len = this._configuredButtons.length, j, i;
-            for(b = 0; b < len; b++) {
-                this.destroyButton(this._configuredButtons[b]);
-            }
-
-            this._configuredButtons = null;
-        
-            this.get('element').innerHTML = '';
-            this.get('element').className = '';
-            //Brutal Object Destroy
-            for (i in this) {
-                if (Lang.hasOwnProperty(this, i)) {
-                    this[i] = null;
-                }
-            }
-            return true;
-        },
-        /**
-        * @method collapse
-        * @description Programatically collapse the toolbar.
-        * @param {Boolean} collapse True to collapse, false to expand.
-        */
-        collapse: function(collapse) {
-            var el = Dom.getElementsByClassName('collapse', 'span', this._titlebar);
-            if (collapse === false) {
-                Dom.removeClass(this.get('cont').parentNode, 'yui-toolbar-container-collapsed');
-                if (el[0]) {
-                    Dom.removeClass(el[0], 'collapsed');
-                    el[0].title = this.STR_COLLAPSE;
-                }
-                this.fireEvent('toolbarExpanded', { type: 'toolbarExpanded', target: this });
-            } else {
-                if (el[0]) {
-                    Dom.addClass(el[0], 'collapsed');
-                    el[0].title = this.STR_EXPAND;
-                }
-                Dom.addClass(this.get('cont').parentNode, 'yui-toolbar-container-collapsed');
-                this.fireEvent('toolbarCollapsed', { type: 'toolbarCollapsed', target: this });
-            }
-        },
-        /**
-        * @method toString
-        * @description Returns a string representing the toolbar.
-        * @return {String}
-        */
-        toString: function() {
-            return 'Toolbar (#' + this.get('element').id + ') with ' + this._buttonList.length + ' buttons.';
-        }
-    });
-/**
-* @event buttonClick
-* @param {Object} o The object passed to this handler is the button config used to create the button.
-* @description Fires when any botton receives a click event. Passes back a single object representing the buttons config object. See <a href="YAHOO.util.Element.html#addListener">Element.addListener</a> for more information on listening for this event.
-* @type YAHOO.util.CustomEvent
-*/
-/**
-* @event valueClick
-* @param {Object} o The object passed to this handler is the button config used to create the button.
-* @description This is a special dynamic event that is created and dispatched based on the value property
-* of the button config. See <a href="YAHOO.util.Element.html#addListener">Element.addListener</a> for more information on listening for this event.
-* Example:
-* <code><pre>
-* buttons : [
-*   { type: 'button', value: 'test', value: 'testButton' }
-* ]</pre>
-* </code>
-* With the valueClick event you could subscribe to this buttons click event with this:
-* tbar.in('testButtonClick', function() { alert('test button clicked'); })
-* @type YAHOO.util.CustomEvent
-*/
-/**
-* @event toolbarExpanded
-* @description Fires when the toolbar is expanded via the collapse button. See <a href="YAHOO.util.Element.html#addListener">Element.addListener</a> for more information on listening for this event.
-* @type YAHOO.util.CustomEvent
-*/
-/**
-* @event toolbarCollapsed
-* @description Fires when the toolbar is collapsed via the collapse button. See <a href="YAHOO.util.Element.html#addListener">Element.addListener</a> for more information on listening for this event.
-* @type YAHOO.util.CustomEvent
-*/
-})();
-/**
- * @module editor
- * @description <p>The Rich Text Editor is a UI control that replaces a standard HTML textarea; it allows for the rich formatting of text content, including common structural treatments like lists, formatting treatments like bold and italic text, and drag-and-drop inclusion and sizing of images. The Rich Text Editor's toolbar is extensible via a plugin architecture so that advanced implementations can achieve a high degree of customization.</p>
- * @namespace YAHOO.widget
- * @requires yahoo, dom, element, event, toolbar
- * @optional animation, container_core, resize, dragdrop
- */
-
-(function() {
-var Dom = YAHOO.util.Dom,
-    Event = YAHOO.util.Event,
-    Lang = YAHOO.lang,
-    Toolbar = YAHOO.widget.Toolbar;
-
-    /**
-     * The Rich Text Editor is a UI control that replaces a standard HTML textarea; it allows for the rich formatting of text content, including common structural treatments like lists, formatting treatments like bold and italic text, and drag-and-drop inclusion and sizing of images. The Rich Text Editor's toolbar is extensible via a plugin architecture so that advanced implementations can achieve a high degree of customization.
-     * @constructor
-     * @class SimpleEditor
-     * @extends YAHOO.util.Element
-     * @param {String/HTMLElement} el The textarea element to turn into an editor.
-     * @param {Object} attrs Object liternal containing configuration parameters.
-    */
-    
-    YAHOO.widget.SimpleEditor = function(el, attrs) {
-        YAHOO.log('SimpleEditor Initalizing', 'info', 'SimpleEditor');
-        
-        var o = {};
-        if (Lang.isObject(el) && (!el.tagName) && !attrs) {
-            Lang.augmentObject(o, el); //Break the config reference
-            el = document.createElement('textarea');
-            this.DOMReady = true;
-            if (o.container) {
-                var c = Dom.get(o.container);
-                c.appendChild(el);
-            } else {
-                document.body.appendChild(el);
-            }
-        } else {
-            if (attrs) {
-                Lang.augmentObject(o, attrs); //Break the config reference
-            }
-        }
-
-        var oConfig = {
-            element: null,
-            attributes: o
-        }, id = null;
-
-        if (Lang.isString(el)) {
-            id = el;
-        } else {
-            if (oConfig.attributes.id) {
-                id = oConfig.attributes.id;
-            } else {
-                this.DOMReady = true;
-                id = Dom.generateId(el);
-            }
-        }
-        oConfig.element = el;
-
-        var element_cont = document.createElement('DIV');
-        oConfig.attributes.element_cont = new YAHOO.util.Element(element_cont, {
-            id: id + '_container'
-        });
-        var div = document.createElement('div');
-        Dom.addClass(div, 'first-child');
-        oConfig.attributes.element_cont.appendChild(div);
-        
-        if (!oConfig.attributes.toolbar_cont) {
-            oConfig.attributes.toolbar_cont = document.createElement('DIV');
-            oConfig.attributes.toolbar_cont.id = id + '_toolbar';
-            div.appendChild(oConfig.attributes.toolbar_cont);
-        }
-        var editorWrapper = document.createElement('DIV');
-        div.appendChild(editorWrapper);
-        oConfig.attributes.editor_wrapper = editorWrapper;
-
-        YAHOO.widget.SimpleEditor.superclass.constructor.call(this, oConfig.element, oConfig.attributes);
-    };
-
-
-    YAHOO.extend(YAHOO.widget.SimpleEditor, YAHOO.util.Element, {
-        /**
-        * @private
-        * @property _resizeConfig
-        * @description The default config for the Resize Utility
-        */
-        _resizeConfig: {
-            handles: ['br'],
-            autoRatio: true,
-            status: true,
-            proxy: true,
-            useShim: true,
-            setSize: false
-        },
-        /**
-        * @private
-        * @method _setupResize
-        * @description Creates the Resize instance and binds its events.
-        */
-        _setupResize: function() {
-            if (!YAHOO.util.DD || !YAHOO.util.Resize) { return false; }
-            if (this.get('resize')) {
-                var config = {};
-                Lang.augmentObject(config, this._resizeConfig); //Break the config reference
-                this.resize = new YAHOO.util.Resize(this.get('element_cont').get('element'), config);
-                this.resize.on('resize', function(args) {
-                    var anim = this.get('animate');
-                    this.set('animate', false);
-                    this.set('width', args.width + 'px');
-                    var h = args.height,
-                        th = (this.toolbar.get('element').clientHeight + 2),
-                        dh = 0;
-                    if (this.dompath) {
-                        dh = (this.dompath.clientHeight + 1); //It has a 1px top border..
-                    }
-                    var newH = (h - th - dh);
-                    this.set('height', newH + 'px');
-                    this.get('element_cont').setStyle('height', '');
-                    this.set('animate', anim);
-                }, this, true);
-            }
-        },
-        /**
-        * @property resize
-        * @description A reference to the Resize object
-        * @type YAHOO.util.Resize
-        */
-        resize: null,
-        /**
-        * @private
-        * @method _setupDD
-        * @description Sets up the DD instance used from the 'drag' config option.
-        */
-        _setupDD: function() {
-            if (!YAHOO.util.DD) { return false; }
-            if (this.get('drag')) {
-                YAHOO.log('Attaching DD instance to Editor', 'info', 'SimpleEditor');
-                var d = this.get('drag'),
-                    dd = YAHOO.util.DD;
-                if (d === 'proxy') {
-                    dd = YAHOO.util.DDProxy;
-                }
-
-                this.dd = new dd(this.get('element_cont').get('element'));
-                this.toolbar.addClass('draggable'); 
-                this.dd.setHandleElId(this.toolbar._titlebar); 
-            }
-        },
-        /**
-        * @property dd
-        * @description A reference to the DragDrop object.
-        * @type YAHOO.util.DD/YAHOO.util.DDProxy
-        */
-        dd: null,
-        /**
-        * @private
-        * @property _lastCommand
-        * @description A cache of the last execCommand (used for Undo/Redo so they don't mark an undo level)
-        * @type String
-        */
-        _lastCommand: null,
-        _undoNodeChange: function() {},
-        _storeUndo: function() {},
-        /**
-        * @private
-        * @method _checkKey
-        * @description Checks a keyMap entry against a key event
-        * @param {Object} k The _keyMap object
-        * @param {Event} e The Mouse Event
-        * @return {Boolean}
-        */
-        _checkKey: function(k, e) {
-            var ret = false;
-            if ((e.keyCode === k.key)) {
-                if (k.mods && (k.mods.length > 0)) {
-                    var val = 0;
-                    for (var i = 0; i < k.mods.length; i++) {
-                        if (this.browser.mac) {
-                            if (k.mods[i] == 'ctrl') {
-                                k.mods[i] = 'meta';
-                            }
-                        }
-                        if (e[k.mods[i] + 'Key'] === true) {
-                            val++;
-                        }
-                    }
-                    if (val === k.mods.length) {
-                        ret = true;
-                    }
-                } else {
-                    ret = true;
-                }
-            }
-            //YAHOO.log('Shortcut Key Check: (' + k.key + ') return: ' + ret, 'info', 'SimpleEditor');
-            return ret;
-        },
-        /**
-        * @private
-        * @property _keyMap
-        * @description Named key maps for various actions in the Editor. Example: <code>CLOSE_WINDOW: { key: 87, mods: ['shift', 'ctrl'] }</code>. 
-        * This entry shows that when key 87 (W) is found with the modifiers of shift and control, the window will close. You can customize this object to tweak keyboard shortcuts.
-        * @type {Object/Mixed}
-        */
-        _keyMap: {
-            SELECT_ALL: {
-                key: 65, //A key
-                mods: ['ctrl']
-            },
-            CLOSE_WINDOW: {
-                key: 87, //W key
-                mods: ['shift', 'ctrl']
-            },
-            FOCUS_TOOLBAR: {
-                key: 27,
-                mods: ['shift']
-            },
-            FOCUS_AFTER: {
-                key: 27
-            },
-            FONT_SIZE_UP: {
-                key: 38,
-                mods: ['shift', 'ctrl']
-            },
-            FONT_SIZE_DOWN: {
-                key: 40,
-                mods: ['shift', 'ctrl']
-            },
-            CREATE_LINK: {
-                key: 76,
-                mods: ['shift', 'ctrl']
-            },
-            BOLD: {
-                key: 66,
-                mods: ['shift', 'ctrl']
-            },
-            ITALIC: {
-                key: 73,
-                mods: ['shift', 'ctrl']
-            },
-            UNDERLINE: {
-                key: 85,
-                mods: ['shift', 'ctrl']
-            },
-            UNDO: {
-                key: 90,
-                mods: ['ctrl']
-            },
-            REDO: {
-                key: 90,
-                mods: ['shift', 'ctrl']
-            },
-            JUSTIFY_LEFT: {
-                key: 219,
-                mods: ['shift', 'ctrl']
-            },
-            JUSTIFY_CENTER: {
-                key: 220,
-                mods: ['shift', 'ctrl']
-            },
-            JUSTIFY_RIGHT: {
-                key: 221,
-                mods: ['shift', 'ctrl']
-            }
-        },
-        /**
-        * @private
-        * @method _cleanClassName
-        * @description Makes a useable classname from dynamic data, by dropping it to lowercase and replacing spaces with -'s.
-        * @param {String} str The classname to clean up
-        * @return {String}
-        */
-        _cleanClassName: function(str) {
-            return str.replace(/ /g, '-').toLowerCase();
-        },
-        /**
-        * @property _textarea
-        * @description Flag to determine if we are using a textarea or an HTML Node.
-        * @type Boolean
-        */
-        _textarea: null,
-        /**
-        * @property _docType
-        * @description The DOCTYPE to use in the editable container.
-        * @type String
-        */
-        _docType: '<!DOCTYPE HTML PUBLIC "-/'+'/W3C/'+'/DTD HTML 4.01/'+'/EN" "http:/'+'/www.w3.org/TR/html4/strict.dtd">',
-        /**
-        * @property editorDirty
-        * @description This flag will be set when certain things in the Editor happen. It is to be used by the developer to check to see if content has changed.
-        * @type Boolean
-        */
-        editorDirty: null,
-        /**
-        * @property _defaultCSS
-        * @description The default CSS used in the config for 'css'. This way you can add to the config like this: { css: YAHOO.widget.SimpleEditor.prototype._defaultCSS + 'ADD MYY CSS HERE' }
-        * @type String
-        */
-        _defaultCSS: 'html { height: 95%; } body { padding: 7px; background-color: #fff; font: 13px/1.22 arial,helvetica,clean,sans-serif;*font-size:small;*font:x-small; } a, a:visited, a:hover { color: blue !important; text-decoration: underline !important; cursor: text !important; } .warning-localfile { border-bottom: 1px dashed red !important; } .yui-busy { cursor: wait !important; } img.selected { border: 2px dotted #808080; } img { cursor: pointer !important; border: none; } body.ptags.webkit div.yui-wk-p { margin: 11px 0; } body.ptags.webkit div.yui-wk-div { margin: 0; }',
-        /**
-        * @property _defaultToolbar
-        * @private
-        * @description Default toolbar config.
-        * @type Object
-        */
-        _defaultToolbar: null,
-        /**
-        * @property _lastButton
-        * @private
-        * @description The last button pressed, so we don't disable it.
-        * @type Object
-        */
-        _lastButton: null,
-        /**
-        * @property _baseHREF
-        * @private
-        * @description The base location of the editable page (this page) so that relative paths for image work.
-        * @type String
-        */
-        _baseHREF: function() {
-            var href = document.location.href;
-            if (href.indexOf('?') !== -1) { //Remove the query string
-                href = href.substring(0, href.indexOf('?'));
-            }
-            href = href.substring(0, href.lastIndexOf('/')) + '/';
-            return href;
-        }(),
-        /**
-        * @property _lastImage
-        * @private
-        * @description Safari reference for the last image selected (for styling as selected).
-        * @type HTMLElement
-        */
-        _lastImage: null,
-        /**
-        * @property _blankImageLoaded
-        * @private
-        * @description Don't load the blank image more than once..
-        * @type Boolean
-        */
-        _blankImageLoaded: null,
-        /**
-        * @property _fixNodesTimer
-        * @private
-        * @description Holder for the fixNodes timer
-        * @type Date
-        */
-        _fixNodesTimer: null,
-        /**
-        * @property _nodeChangeTimer
-        * @private
-        * @description Holds a reference to the nodeChange setTimeout call
-        * @type Number
-        */
-        _nodeChangeTimer: null,
-        /**
-        * @property _nodeChangeDelayTimer
-        * @private
-        * @description Holds a reference to the nodeChangeDelay setTimeout call
-        * @type Number
-        */
-        _nodeChangeDelayTimer: null,
-        /**
-        * @property _lastNodeChangeEvent
-        * @private
-        * @description Flag to determine the last event that fired a node change
-        * @type Event
-        */
-        _lastNodeChangeEvent: null,
-        /**
-        * @property _lastNodeChange
-        * @private
-        * @description Flag to determine when the last node change was fired
-        * @type Date
-        */
-        _lastNodeChange: 0,
-        /**
-        * @property _rendered
-        * @private
-        * @description Flag to determine if editor has been rendered or not
-        * @type Boolean
-        */
-        _rendered: null,
-        /**
-        * @property DOMReady
-        * @private
-        * @description Flag to determine if DOM is ready or not
-        * @type Boolean
-        */
-        DOMReady: null,
-        /**
-        * @property _selection
-        * @private
-        * @description Holder for caching iframe selections
-        * @type Object
-        */
-        _selection: null,
-        /**
-        * @property _mask
-        * @private
-        * @description DOM Element holder for the editor Mask when disabled
-        * @type Object
-        */
-        _mask: null,
-        /**
-        * @property _showingHiddenElements
-        * @private
-        * @description Status of the hidden elements button
-        * @type Boolean
-        */
-        _showingHiddenElements: null,
-        /**
-        * @property currentWindow
-        * @description A reference to the currently open EditorWindow
-        * @type Object
-        */
-        currentWindow: null,
-        /**
-        * @property currentEvent
-        * @description A reference to the current editor event
-        * @type Event
-        */
-        currentEvent: null,
-        /**
-        * @property operaEvent
-        * @private
-        * @description setTimeout holder for Opera and Image DoubleClick event..
-        * @type Object
-        */
-        operaEvent: null,
-        /**
-        * @property currentFont
-        * @description A reference to the last font selected from the Toolbar
-        * @type HTMLElement
-        */
-        currentFont: null,
-        /**
-        * @property currentElement
-        * @description A reference to the current working element in the editor
-        * @type Array
-        */
-        currentElement: null,
-        /**
-        * @property dompath
-        * @description A reference to the dompath container for writing the current working dom path to.
-        * @type HTMLElement
-        */
-        dompath: null,
-        /**
-        * @property beforeElement
-        * @description A reference to the H2 placed before the editor for Accessibilty.
-        * @type HTMLElement
-        */
-        beforeElement: null,
-        /**
-        * @property afterElement
-        * @description A reference to the H2 placed after the editor for Accessibilty.
-        * @type HTMLElement
-        */
-        afterElement: null,
-        /**
-        * @property invalidHTML
-        * @description Contains a list of HTML elements that are invalid inside the editor. They will be removed when they are found. If you set the value of a key to "{ keepContents: true }", then the element will be replaced with a yui-non span to be filtered out when cleanHTML is called. The only tag that is ignored here is the span tag as it will force the Editor into a loop and freeze the browser. However.. all of these tags will be removed in the cleanHTML routine.
-        * @type Object
-        */
-        invalidHTML: {
-            form: true,
-            input: true,
-            button: true,
-            select: true,
-            link: true,
-            html: true,
-            body: true,
-            iframe: true,
-            script: true,
-            style: true,
-            textarea: true
-        },
-        /**
-        * @property toolbar
-        * @description Local property containing the <a href="YAHOO.widget.Toolbar.html">YAHOO.widget.Toolbar</a> instance
-        * @type <a href="YAHOO.widget.Toolbar.html">YAHOO.widget.Toolbar</a>
-        */
-        toolbar: null,
-        /**
-        * @private
-        * @property _contentTimer
-        * @description setTimeout holder for documentReady check
-        */
-        _contentTimer: null,
-        /**
-        * @private
-        * @property _contentTimerMax
-        * @description The number of times the loaded content should be checked before giving up. Default: 500
-        */
-        _contentTimerMax: 500,
-        /**
-        * @private
-        * @property _contentTimerCounter
-        * @description Counter to check the number of times the body is polled for before giving up
-        * @type Number
-        */
-        _contentTimerCounter: 0,
-        /**
-        * @private
-        * @property _disabled
-        * @description The Toolbar items that should be disabled if there is no selection present in the editor.
-        * @type Array
-        */
-        _disabled: [ 'createlink', 'fontname', 'fontsize', 'forecolor', 'backcolor' ],
-        /**
-        * @private
-        * @property _alwaysDisabled
-        * @description The Toolbar items that should ALWAYS be disabled event if there is a selection present in the editor.
-        * @type Object
-        */
-        _alwaysDisabled: { undo: true, redo: true },
-        /**
-        * @private
-        * @property _alwaysEnabled
-        * @description The Toolbar items that should ALWAYS be enabled event if there isn't a selection present in the editor.
-        * @type Object
-        */
-        _alwaysEnabled: { },
-        /**
-        * @private
-        * @property _semantic
-        * @description The Toolbar commands that we should attempt to make tags out of instead of using styles.
-        * @type Object
-        */
-        _semantic: { 'bold': true, 'italic' : true, 'underline' : true },
-        /**
-        * @private
-        * @property _tag2cmd
-        * @description A tag map of HTML tags to convert to the different types of commands so we can select the proper toolbar button.
-        * @type Object
-        */
-        _tag2cmd: {
-            'b': 'bold',
-            'strong': 'bold',
-            'i': 'italic',
-            'em': 'italic',
-            'u': 'underline',
-            'sup': 'superscript',
-            'sub': 'subscript',
-            'img': 'insertimage',
-            'a' : 'createlink',
-            'ul' : 'insertunorderedlist',
-            'ol' : 'insertorderedlist'
-        },
-
-        /**
-        * @private _createIframe
-        * @description Creates the DOM and YUI Element for the iFrame editor area.
-        * @param {String} id The string ID to prefix the iframe with
-        * @return {Object} iFrame object
-        */
-        _createIframe: function() {
-            var ifrmDom = document.createElement('iframe');
-            ifrmDom.id = this.get('id') + '_editor';
-            var config = {
-                border: '0',
-                frameBorder: '0',
-                marginWidth: '0',
-                marginHeight: '0',
-                leftMargin: '0',
-                topMargin: '0',
-                allowTransparency: 'true',
-                width: '100%'
-            };
-            if (this.get('autoHeight')) {
-                config.scrolling = 'no';
-            }
-            for (var i in config) {
-                if (Lang.hasOwnProperty(config, i)) {
-                    ifrmDom.setAttribute(i, config[i]);
-                }
-            }
-            var isrc = 'javascript:;';
-            if (this.browser.ie) {
-                //isrc = 'about:blank';
-                //TODO - Check this, I have changed it before..
-                isrc = 'javascript:false;';
-            }
-            ifrmDom.setAttribute('src', isrc);
-            var ifrm = new YAHOO.util.Element(ifrmDom);
-            ifrm.setStyle('visibility', 'hidden');
-            return ifrm;
-        },
-        /**
-        * @private _isElement
-        * @description Checks to see if an Element reference is a valid one and has a certain tag type
-        * @param {HTMLElement} el The element to check
-        * @param {String} tag The tag that the element needs to be
-        * @return {Boolean}
-        */
-        _isElement: function(el, tag) {
-            if (el && el.tagName && (el.tagName.toLowerCase() == tag)) {
-                return true;
-            }
-            if (el && el.getAttribute && (el.getAttribute('tag') == tag)) {
-                return true;
-            }
-            return false;
-        },
-        /**
-        * @private _hasParent
-        * @description Checks to see if an Element reference or one of it's parents is a valid one and has a certain tag type
-        * @param {HTMLElement} el The element to check
-        * @param {String} tag The tag that the element needs to be
-        * @return HTMLElement
-        */
-        _hasParent: function(el, tag) {
-            if (!el || !el.parentNode) {
-                return false;
-            }
-            
-            while (el.parentNode) {
-                if (this._isElement(el, tag)) {
-                    return el;
-                }
-                if (el.parentNode) {
-                    el = el.parentNode;
-                } else {
-                    return false;
-                }
-            }
-            return false;
-        },
-        /**
-        * @private
-        * @method _getDoc
-        * @description Get the Document of the IFRAME
-        * @return {Object}
-        */
-        _getDoc: function() {
-            var value = false;
-            try {
-                if (this.get('iframe').get('element').contentWindow.document) {
-                    value = this.get('iframe').get('element').contentWindow.document;
-                    return value;
-                }
-            } catch (e) {
-                return false;
-            }
-        },
-        /**
-        * @private
-        * @method _getWindow
-        * @description Get the Window of the IFRAME
-        * @return {Object}
-        */
-        _getWindow: function() {
-            return this.get('iframe').get('element').contentWindow;
-        },
-        /**
-        * @method focus
-        * @description Attempt to set the focus of the iframes window.
-        */
-        focus: function() {
-            this._getWindow().focus();
-        },
-        /**
-        * @private
-        * @depreciated - This should not be used, moved to this.focus();
-        * @method _focusWindow
-        * @description Attempt to set the focus of the iframes window.
-        */
-        _focusWindow: function() {
-            YAHOO.log('_focusWindow: depreciated in favor of this.focus()', 'warn', 'Editor');
-            this.focus();
-        },
-        /**
-        * @private
-        * @method _hasSelection
-        * @description Determines if there is a selection in the editor document.
-        * @return {Boolean}
-        */
-        _hasSelection: function() {
-            var sel = this._getSelection();
-            var range = this._getRange();
-            var hasSel = false;
-
-            if (!sel || !range) {
-                return hasSel;
-            }
-
-            //Internet Explorer
-            if (this.browser.ie || this.browser.opera) {
-                if (range.text) {
-                    hasSel = true;
-                }
-                if (range.html) {
-                    hasSel = true;
-                }
-            } else {
-                if (this.browser.webkit) {
-                    if (sel+'' !== '') {
-                        hasSel = true;
-                    }
-                } else {
-                    if (sel && (sel.toString() !== '') && (sel !== undefined)) {
-                        hasSel = true;
-                    }
-                }
-            }
-            return hasSel;
-        },
-        /**
-        * @private
-        * @method _getSelection
-        * @description Handles the different selection objects across the A-Grade list.
-        * @return {Object} Selection Object
-        */
-        _getSelection: function() {
-            var _sel = null;
-            if (this._getDoc() && this._getWindow()) {
-                if (this._getDoc().selection) {
-                    _sel = this._getDoc().selection;
-                } else {
-                    _sel = this._getWindow().getSelection();
-                }
-                //Handle Safari's lack of Selection Object
-                if (this.browser.webkit) {
-                    if (_sel.baseNode) {
-                            this._selection = {};
-                            this._selection.baseNode = _sel.baseNode;
-                            this._selection.baseOffset = _sel.baseOffset;
-                            this._selection.extentNode = _sel.extentNode;
-                            this._selection.extentOffset = _sel.extentOffset;
-                    } else if (this._selection !== null) {
-                        _sel = this._getWindow().getSelection();
-                        _sel.setBaseAndExtent(
-                            this._selection.baseNode,
-                            this._selection.baseOffset,
-                            this._selection.extentNode,
-                            this._selection.extentOffset);
-                        this._selection = null;
-                    }
-                }
-            }
-            return _sel;
-        },
-        /**
-        * @private
-        * @method _selectNode
-        * @description Places the highlight around a given node
-        * @param {HTMLElement} node The node to select
-        */
-        _selectNode: function(node, collapse) {
-            if (!node) {
-                return false;
-            }
-            var sel = this._getSelection(),
-                range = null;
-
-            if (this.browser.ie) {
-                try { //IE freaks out here sometimes..
-                    range = this._getDoc().body.createTextRange();
-                    range.moveToElementText(node);
-                    range.select();
-                } catch (e) {
-                    YAHOO.log('IE failed to select element: ' + node.tagName, 'warn', 'SimpleEditor');
-                }
-            } else if (this.browser.webkit) {
-                if (collapse) {
-                                   sel.setBaseAndExtent(node, 1, node, node.innerText.length);
-                } else {
-                                   sel.setBaseAndExtent(node, 0, node, node.innerText.length);
-                }
-            } else if (this.browser.opera) {
-                sel = this._getWindow().getSelection();
-                range = this._getDoc().createRange();
-                range.selectNode(node);
-                sel.removeAllRanges();
-                sel.addRange(range);
-            } else {
-                range = this._getDoc().createRange();
-                range.selectNodeContents(node);
-                sel.removeAllRanges();
-                sel.addRange(range);
-            }
-            //TODO - Check Performance
-            this.nodeChange();
-        },
-        /**
-        * @private
-        * @method _getRange
-        * @description Handles the different range objects across the A-Grade list.
-        * @return {Object} Range Object
-        */
-        _getRange: function() {
-            var sel = this._getSelection();
-
-            if (sel === null) {
-                return null;
-            }
-
-            if (this.browser.webkit && !sel.getRangeAt) {
-                var _range = this._getDoc().createRange();
-                try {
-                    _range.setStart(sel.anchorNode, sel.anchorOffset);
-                    _range.setEnd(sel.focusNode, sel.focusOffset);
-                } catch (e) {
-                    _range = this._getWindow().getSelection()+'';
-                }
-                return _range;
-            }
-
-            if (this.browser.ie || this.browser.opera) {
-                try {
-                    return sel.createRange();
-                } catch (e2) {
-                    return null;
-                }
-            }
-
-            if (sel.rangeCount > 0) {
-                return sel.getRangeAt(0);
-            }
-            return null;
-        },
-        /**
-        * @private
-        * @method _setDesignMode
-        * @description Sets the designMode property of the iFrame document's body.
-        * @param {String} state This should be either on or off
-        */
-        _setDesignMode: function(state) {
-            if (this.get('setDesignMode')) {
-                try {
-                    this._getDoc().designMode = ((state.toLowerCase() == 'off') ? 'off' : 'on');
-                } catch(e) { }
-            }
-        },
-        /**
-        * @private
-        * @method _toggleDesignMode
-        * @description Toggles the designMode property of the iFrame document on and off.
-        * @return {String} The state that it was set to.
-        */
-        _toggleDesignMode: function() {
-            YAHOO.log('It is not recommended to use this method and it will be depreciated.', 'warn', 'SimpleEditor');
-            var _dMode = this._getDoc().designMode,
-                _state = ((_dMode.toLowerCase() == 'on') ? 'off' : 'on');
-            this._setDesignMode(_state);
-            return _state;
-        },
-        /**
-        * @private
-        * @property _focused
-        * @description Holder for trapping focus/blur state and prevent double events
-        * @type Boolean
-        */
-        _focused: null,
-        /**
-        * @private
-        * @method _handleFocus
-        * @description Handles the focus of the iframe. Note, this is window focus event, not an Editor focus event.
-        * @param {Event} e The DOM Event
-        */
-        _handleFocus: function(e) {
-            if (!this._focused) {
-                //YAHOO.log('Editor Window Focused', 'info', 'SimpleEditor');
-                this._focused = true;
-                this.fireEvent('editorWindowFocus', { type: 'editorWindowFocus', target: this });
-            }
-        },
-        /**
-        * @private
-        * @method _handleBlur
-        * @description Handles the blur of the iframe. Note, this is window blur event, not an Editor blur event.
-        * @param {Event} e The DOM Event
-        */
-        _handleBlur: function(e) {
-            if (this._focused) {
-                //YAHOO.log('Editor Window Blurred', 'info', 'SimpleEditor');
-                this._focused = false;
-                this.fireEvent('editorWindowBlur', { type: 'editorWindowBlur', target: this });
-            }
-        },
-        /**
-        * @private
-        * @method _initEditorEvents
-        * @description This method sets up the listeners on the Editors document.
-        */
-        _initEditorEvents: function() {
-            //Setup Listeners on iFrame
-            var doc = this._getDoc(),
-                win = this._getWindow();
-
-            Event.on(doc, 'mouseup', this._handleMouseUp, this, true);
-            Event.on(doc, 'mousedown', this._handleMouseDown, this, true);
-            Event.on(doc, 'click', this._handleClick, this, true);
-            Event.on(doc, 'dblclick', this._handleDoubleClick, this, true);
-            Event.on(doc, 'keypress', this._handleKeyPress, this, true);
-            Event.on(doc, 'keyup', this._handleKeyUp, this, true);
-            Event.on(doc, 'keydown', this._handleKeyDown, this, true);
-            /* TODO -- Everyone but Opera works here..
-            Event.on(doc, 'paste', function() {
-                YAHOO.log('PASTE', 'info', 'SimpleEditor');
-            }, this, true);
-            */
-            //Focus and blur..
-            Event.on(win, 'focus', this._handleFocus, this, true);
-            Event.on(win, 'blur', this._handleBlur, this, true);
-        },
-        /**
-        * @private
-        * @method _removeEditorEvents
-        * @description This method removes the listeners on the Editors document (for disabling).
-        */
-        _removeEditorEvents: function() {
-            //Remove Listeners on iFrame
-            var doc = this._getDoc(),
-                win = this._getWindow();
-
-            Event.removeListener(doc, 'mouseup', this._handleMouseUp, this, true);
-            Event.removeListener(doc, 'mousedown', this._handleMouseDown, this, true);
-            Event.removeListener(doc, 'click', this._handleClick, this, true);
-            Event.removeListener(doc, 'dblclick', this._handleDoubleClick, this, true);
-            Event.removeListener(doc, 'keypress', this._handleKeyPress, this, true);
-            Event.removeListener(doc, 'keyup', this._handleKeyUp, this, true);
-            Event.removeListener(doc, 'keydown', this._handleKeyDown, this, true);
-
-            //Focus and blur..
-            Event.removeListener(win, 'focus', this._handleFocus, this, true);
-            Event.removeListener(win, 'blur', this._handleBlur, this, true);
-        },
-        _fixWebkitDivs: function() {
-            if (this.browser.webkit) {
-                var divs = this._getDoc().body.getElementsByTagName('div');
-                Dom.addClass(divs, 'yui-wk-div');
-            }
-        },
-        /**
-        * @private
-        * @method _initEditor
-        * @param {Boolean} raw Don't add events.
-        * @description This method is fired from _checkLoaded when the document is ready. It turns on designMode and set's up the listeners.
-        */
-        _initEditor: function(raw) {
-            if (this._editorInit) {
-                return;
-            }
-            this._editorInit = true;
-            if (this.browser.ie) {
-                this._getDoc().body.style.margin = '0';
-            }
-            if (!this.get('disabled')) {
-                this._setDesignMode('on');
-                this._contentTimerCounter = 0;
-            }
-            if (!this._getDoc().body) {
-                YAHOO.log('Body is null, check again', 'error', 'SimpleEditor');
-                this._contentTimerCounter = 0;
-                this._editorInit = false;
-                this._checkLoaded();
-                return false;
-            }
-            
-            YAHOO.log('editorLoaded', 'info', 'SimpleEditor');
-            if (!raw) {
-                this.toolbar.on('buttonClick', this._handleToolbarClick, this, true);
-            }
-            if (!this.get('disabled')) {
-                this._initEditorEvents();
-                this.toolbar.set('disabled', false);
-            }
-
-            if (raw) {
-                this.fireEvent('editorContentReloaded', { type: 'editorreloaded', target: this });
-            } else {
-                this.fireEvent('editorContentLoaded', { type: 'editorLoaded', target: this });
-            }
-            this._fixWebkitDivs();
-            if (this.get('dompath')) {
-                YAHOO.log('Delayed DomPath write', 'info', 'SimpleEditor');
-                var self = this;
-                setTimeout(function() {
-                    self._writeDomPath.call(self);
-                    self._setupResize.call(self);
-                }, 150);
-            }
-            var br = [];
-            for (var i in this.browser) {
-                if (this.browser[i]) {
-                    br.push(i);
-                }
-            }
-            if (this.get('ptags')) {
-                br.push('ptags');
-            }
-            Dom.addClass(this._getDoc().body, br.join(' '));
-            this.nodeChange(true);
-        },
-        /**
-        * @private
-        * @method _checkLoaded
-        * @param {Boolean} raw Don't add events.
-        * @description Called from a setTimeout loop to check if the iframes body.onload event has fired, then it will init the editor.
-        */
-        _checkLoaded: function(raw) {
-            this._editorInit = false;
-            this._contentTimerCounter++;
-            if (this._contentTimer) {
-                clearTimeout(this._contentTimer);
-            }
-            if (this._contentTimerCounter > this._contentTimerMax) {
-                YAHOO.log('ERROR: Body Did Not load', 'error', 'SimpleEditor');
-                return false;
-            }
-            var init = false;
-            try {
-                if (this._getDoc() && this._getDoc().body) {
-                    if (this.browser.ie) {
-                        if (this._getDoc().body.readyState == 'complete') {
-                            init = true;
-                        }
-                    } else {
-                        if (this._getDoc().body._rteLoaded === true) {
-                            init = true;
-                        }
-                    }
-                }
-            } catch (e) {
-                init = false;
-                YAHOO.log('checking body (e)' + e, 'error', 'SimpleEditor');
-            }
-
-            if (init === true) {
-                //The onload event has fired, clean up after ourselves and fire the _initEditor method
-                YAHOO.log('Firing _initEditor', 'info', 'SimpleEditor');
-                this._initEditor(raw);
-            } else {
-                var self = this;
-                this._contentTimer = setTimeout(function() {
-                    self._checkLoaded.call(self, raw);
-                }, 20);
-            }
-        },
-        /**
-        * @private
-        * @method _setInitialContent
-        * @param {Boolean} raw Don't add events.
-        * @description This method will open the iframes content document and write the textareas value into it, then start the body.onload checking.
-        */
-        _setInitialContent: function(raw) {
-            YAHOO.log('Populating editor body with contents of the text area', 'info', 'SimpleEditor');
-
-            var value = ((this._textarea) ? this.get('element').value : this.get('element').innerHTML),
-                doc = null;
-
-            if (value === '') {
-                value = '<br>';
-            }
-
-            var html = Lang.substitute(this.get('html'), {
-                TITLE: this.STR_TITLE,
-                CONTENT: this._cleanIncomingHTML(value),
-                CSS: this.get('css'),
-                HIDDEN_CSS: ((this.get('hiddencss')) ? this.get('hiddencss') : '/* No Hidden CSS */'),
-                EXTRA_CSS: ((this.get('extracss')) ? this.get('extracss') : '/* No Extra CSS */')
-            }),
-            check = true;
-
-            html = html.replace(/RIGHT_BRACKET/gi, '{');
-            html = html.replace(/LEFT_BRACKET/gi, '}');
-
-            if (document.compatMode != 'BackCompat') {
-                YAHOO.log('Adding Doctype to editable area', 'info', 'SimpleEditor');
-                html = this._docType + "\n" + html;
-            } else {
-                YAHOO.log('DocType skipped because we are in BackCompat Mode.', 'warn', 'SimpleEditor');
-            }
-
-            if (this.browser.ie || this.browser.webkit || this.browser.opera || (navigator.userAgent.indexOf('Firefox/1.5') != -1)) {
-                //Firefox 1.5 doesn't like setting designMode on an document created with a data url
-                try {
-                    //Adobe AIR Code
-                    if (this.browser.air) {
-                        doc = this._getDoc().implementation.createHTMLDocument();
-                        var origDoc = this._getDoc();
-                        origDoc.open();
-                        origDoc.close();
-                        doc.open();
-                        doc.write(html);
-                        doc.close();
-                        var node = origDoc.importNode(doc.getElementsByTagName("html")[0], true);
-                        origDoc.replaceChild(node, origDoc.getElementsByTagName("html")[0]);
-                        origDoc.body._rteLoaded = true;
-                    } else {
-                        doc = this._getDoc();
-                        doc.open();
-                        doc.write(html);
-                        doc.close();
-                    }
-                } catch (e) {
-                    YAHOO.log('Setting doc failed.. (_setInitialContent)', 'error', 'SimpleEditor');
-                    //Safari will only be here if we are hidden
-                    check = false;
-                }
-            } else {
-                //This keeps Firefox 2 from writing the iframe to history preserving the back buttons functionality
-                this.get('iframe').get('element').src = 'data:text/html;charset=utf-8,' + encodeURIComponent(html);
-            }
-            this.get('iframe').setStyle('visibility', '');
-            if (check) {
-                this._checkLoaded(raw);
-            }            
-        },
-        /**
-        * @private
-        * @method _setMarkupType
-        * @param {String} action The action to take. Possible values are: css, default or semantic
-        * @description This method will turn on/off the useCSS execCommand.
-        */
-        _setMarkupType: function(action) {
-            switch (this.get('markup')) {
-                case 'css':
-                    this._setEditorStyle(true);
-                    break;
-                case 'default':
-                    this._setEditorStyle(false);
-                    break;
-                case 'semantic':
-                case 'xhtml':
-                    if (this._semantic[action]) {
-                        this._setEditorStyle(false);
-                    } else {
-                        this._setEditorStyle(true);
-                    }
-                    break;
-            }
-        },
-        /**
-        * Set the editor to use CSS instead of HTML
-        * @param {Booleen} stat True/False
-        */
-        _setEditorStyle: function(stat) {
-            try {
-                this._getDoc().execCommand('useCSS', false, !stat);
-            } catch (ex) {
-            }
-        },
-        /**
-        * @private
-        * @method _getSelectedElement
-        * @description This method will attempt to locate the element that was last interacted with, either via selection, location or event.
-        * @return {HTMLElement} The currently selected element.
-        */
-        _getSelectedElement: function() {
-            var doc = this._getDoc(),
-                range = null,
-                sel = null,
-                elm = null,
-                check = true;
-
-            if (this.browser.ie) {
-                this.currentEvent = this._getWindow().event; //Event utility assumes window.event, so we need to reset it to this._getWindow().event;
-                range = this._getRange();
-                if (range) {
-                    elm = range.item ? range.item(0) : range.parentElement();
-                    if (this._hasSelection()) {
-                        //TODO
-                        //WTF.. Why can't I get an element reference here?!??!
-                    }
-                    if (elm === doc.body) {
-                        elm = null;
-                    }
-                }
-                if ((this.currentEvent !== null) && (this.currentEvent.keyCode === 0)) {
-                    elm = Event.getTarget(this.currentEvent);
-                }
-            } else {
-                sel = this._getSelection();
-                range = this._getRange();
-
-                if (!sel || !range) {
-                    return null;
-                }
-                //TODO
-                if (!this._hasSelection() && this.browser.webkit3) {
-                    //check = false;
-                }
-                if (this.browser.gecko) {
-                    //Added in 2.6.0
-                    if (range.startContainer) {
-                        if (range.startContainer.nodeType === 3) {
-                            elm = range.startContainer.parentNode;
-                        } else if (range.startContainer.nodeType === 1) {
-                            elm = range.startContainer;
-                        }
-                        //Added in 2.7.0
-                        if (this.currentEvent) {
-                            var tar = Event.getTarget(this.currentEvent);
-                            if (!this._isElement(tar, 'html')) {
-                                if (elm !== tar) {
-                                    elm = tar;
-                                }
-                            }
-                        }
-                    }
-                }
-                
-                if (check) {
-                    if (sel.anchorNode && (sel.anchorNode.nodeType == 3)) {
-                        if (sel.anchorNode.parentNode) { //next check parentNode
-                            elm = sel.anchorNode.parentNode;
-                        }
-                        if (sel.anchorNode.nextSibling != sel.focusNode.nextSibling) {
-                            elm = sel.anchorNode.nextSibling;
-                        }
-                    }
-                    if (this._isElement(elm, 'br')) {
-                        elm = null;
-                    }
-                    if (!elm) {
-                        elm = range.commonAncestorContainer;
-                        if (!range.collapsed) {
-                            if (range.startContainer == range.endContainer) {
-                                if (range.startOffset - range.endOffset < 2) {
-                                    if (range.startContainer.hasChildNodes()) {
-                                        elm = range.startContainer.childNodes[range.startOffset];
-                                    }
-                                }
-                            }
-                        }
-                    }
-               }
-            }
-            
-            if (this.currentEvent !== null) {
-                try {
-                    switch (this.currentEvent.type) {
-                        case 'click':
-                        case 'mousedown':
-                        case 'mouseup':
-                            if (this.browser.webkit) {
-                                elm = Event.getTarget(this.currentEvent);
-                            }
-                            break;
-                        default:
-                            //Do nothing
-                            break;
-                    }
-                } catch (e) {
-                    YAHOO.log('Firefox 1.5 errors here: ' + e, 'error', 'SimpleEditor');
-                }
-            } else if ((this.currentElement && this.currentElement[0]) && (!this.browser.ie)) {
-                //TODO is this still needed?
-                //elm = this.currentElement[0];
-            }
-
-
-            if (this.browser.opera || this.browser.webkit) {
-                if (this.currentEvent && !elm) {
-                    elm = YAHOO.util.Event.getTarget(this.currentEvent);
-                }
-            }
-            if (!elm || !elm.tagName) {
-                elm = doc.body;
-            }
-            if (this._isElement(elm, 'html')) {
-                //Safari sometimes gives us the HTML node back..
-                elm = doc.body;
-            }
-            if (this._isElement(elm, 'body')) {
-                //make sure that body means this body not the parent..
-                elm = doc.body;
-            }
-            if (elm && !elm.parentNode) { //Not in document
-                elm = doc.body;
-            }
-            if (elm === undefined) {
-                elm = null;
-            }
-            return elm;
-        },
-        /**
-        * @private
-        * @method _getDomPath
-        * @description This method will attempt to build the DOM path from the currently selected element.
-        * @param HTMLElement el The element to start with, if not provided _getSelectedElement is used
-        * @return {Array} An array of node references that will create the DOM Path.
-        */
-        _getDomPath: function(el) {
-            if (!el) {
-                           el = this._getSelectedElement();
-            }
-                       var domPath = [];
-            while (el !== null) {
-                if (el.ownerDocument != this._getDoc()) {
-                    el = null;
-                    break;
-                }
-                //Check to see if we get el.nodeName and nodeType
-                if (el.nodeName && el.nodeType && (el.nodeType == 1)) {
-                    domPath[domPath.length] = el;
-                }
-
-                if (this._isElement(el, 'body')) {
-                    break;
-                }
-
-                el = el.parentNode;
-            }
-            if (domPath.length === 0) {
-                if (this._getDoc() && this._getDoc().body) {
-                    domPath[0] = this._getDoc().body;
-                }
-            }
-            return domPath.reverse();
-        },
-        /**
-        * @private
-        * @method _writeDomPath
-        * @description Write the current DOM path out to the dompath container below the editor.
-        */
-        _writeDomPath: function() { 
-            var path = this._getDomPath(),
-                pathArr = [],
-                classPath = '',
-                pathStr = '';
-
-            for (var i = 0; i < path.length; i++) {
-                var tag = path[i].tagName.toLowerCase();
-                if ((tag == 'ol') && (path[i].type)) {
-                    tag += ':' + path[i].type;
-                }
-                if (Dom.hasClass(path[i], 'yui-tag')) {
-                    tag = path[i].getAttribute('tag');
-                }
-                if ((this.get('markup') == 'semantic') || (this.get('markup') == 'xhtml')) {
-                    switch (tag) {
-                        case 'b': tag = 'strong'; break;
-                        case 'i': tag = 'em'; break;
-                    }
-                }
-                if (!Dom.hasClass(path[i], 'yui-non')) {
-                    if (Dom.hasClass(path[i], 'yui-tag')) {
-                        pathStr = tag;
-                    } else {
-                        classPath = ((path[i].className !== '') ? '.' + path[i].className.replace(/ /g, '.') : '');
-                        if ((classPath.indexOf('yui') != -1) || (classPath.toLowerCase().indexOf('apple-style-span') != -1)) {
-                            classPath = '';
-                        }
-                        pathStr = tag + ((path[i].id) ? '#' + path[i].id : '') + classPath;
-                    }
-                    switch (tag) {
-                        case 'body':
-                            pathStr = 'body';
-                            break;
-                        case 'a':
-                            if (path[i].getAttribute('href', 2)) {
-                                pathStr += ':' + path[i].getAttribute('href', 2).replace('mailto:', '').replace('http:/'+'/', '').replace('https:/'+'/', ''); //May need to add others here ftp
-                            }
-                            break;
-                        case 'img':
-                            var h = path[i].height;
-                            var w = path[i].width;
-                            if (path[i].style.height) {
-                                h = parseInt(path[i].style.height, 10);
-                            }
-                            if (path[i].style.width) {
-                                w = parseInt(path[i].style.width, 10);
-                            }
-                            pathStr += '(' + w + 'x' + h + ')';
-                        break;
-                    }
-
-                    if (pathStr.length > 10) {
-                        pathStr = '<span title="' + pathStr + '">' + pathStr.substring(0, 10) + '...' + '</span>';
-                    } else {
-                        pathStr = '<span title="' + pathStr + '">' + pathStr + '</span>';
-                    }
-                    pathArr[pathArr.length] = pathStr;
-                }
-            }
-            var str = pathArr.join(' ' + this.SEP_DOMPATH + ' ');
-            //Prevent flickering
-            if (this.dompath.innerHTML != str) {
-                this.dompath.innerHTML = str;
-            }
-        },
-        /**
-        * @private
-        * @method _fixNodes
-        * @description Fix href and imgs as well as remove invalid HTML.
-        */
-        _fixNodes: function() {
-            try {
-                var doc = this._getDoc(),
-                    els = [];
-
-                for (var v in this.invalidHTML) {
-                    if (YAHOO.lang.hasOwnProperty(this.invalidHTML, v)) {
-                        if (v.toLowerCase() != 'span') {
-                            var tags = doc.body.getElementsByTagName(v);
-                            if (tags.length) {
-                                for (var i = 0; i < tags.length; i++) {
-                                    els.push(tags[i]);
-                                }
-                            }
-                        }
-                    }
-                }
-                for (var h = 0; h < els.length; h++) {
-                    if (els[h].parentNode) {
-                        if (Lang.isObject(this.invalidHTML[els[h].tagName.toLowerCase()]) && this.invalidHTML[els[h].tagName.toLowerCase()].keepContents) {
-                            this._swapEl(els[h], 'span', function(el) {
-                                el.className = 'yui-non';
-                            });
-                        } else {
-                            els[h].parentNode.removeChild(els[h]);
-                        }
-                    }
-                }
-                var imgs = this._getDoc().getElementsByTagName('img');
-                Dom.addClass(imgs, 'yui-img');
-            } catch(e) {}
-        },
-        /**
-        * @private
-        * @method _isNonEditable
-        * @param Event ev The Dom event being checked
-        * @description Method is called at the beginning of all event handlers to check if this element or a parent element has the class yui-noedit (this.CLASS_NOEDIT) applied.
-        * If it does, then this method will stop the event and return true. The event handlers will then return false and stop the nodeChange from occuring. This method will also
-        * disable and enable the Editor's toolbar based on the noedit state.
-        * @return Boolean
-        */
-        _isNonEditable: function(ev) {
-            if (this.get('allowNoEdit')) {
-                var el = Event.getTarget(ev);
-                if (this._isElement(el, 'html')) {
-                    el = null;
-                }
-                var path = this._getDomPath(el);
-                for (var i = (path.length - 1); i > -1; i--) {
-                    if (Dom.hasClass(path[i], this.CLASS_NOEDIT)) {
-                        //if (this.toolbar.get('disabled') === false) {
-                        //    this.toolbar.set('disabled', true);
-                        //}
-                        try {
-                             this._getDoc().execCommand('enableObjectResizing', false, 'false');
-                        } catch (e) {}
-                        this.nodeChange();
-                        Event.stopEvent(ev);
-                        YAHOO.log('CLASS_NOEDIT found in DOM Path, stopping event', 'info', 'SimpleEditor');
-                        return true;
-                    }
-                }
-                //if (this.toolbar.get('disabled') === true) {
-                    //Should only happen once..
-                    //this.toolbar.set('disabled', false);
-                    try {
-                         this._getDoc().execCommand('enableObjectResizing', false, 'true');
-                    } catch (e2) {}
-                //}
-            }
-            return false;
-        },
-        /**
-        * @private
-        * @method _setCurrentEvent
-        * @param {Event} ev The event to cache
-        * @description Sets the current event property
-        */
-        _setCurrentEvent: function(ev) {
-            this.currentEvent = ev;
-        },
-        /**
-        * @private
-        * @method _handleClick
-        * @param {Event} ev The event we are working on.
-        * @description Handles all click events inside the iFrame document.
-        */
-        _handleClick: function(ev) {
-            var ret = this.fireEvent('beforeEditorClick', { type: 'beforeEditorClick', target: this, ev: ev });
-            if (ret === false) {
-                return false;
-            }
-            if (this._isNonEditable(ev)) {
-                return false;
-            }
-            this._setCurrentEvent(ev);
-            if (this.currentWindow) {
-                this.closeWindow();
-            }
-            if (this.currentWindow) {
-                this.closeWindow();
-            }
-            if (this.browser.webkit) {
-                var tar =Event.getTarget(ev);
-                if (this._isElement(tar, 'a') || this._isElement(tar.parentNode, 'a')) {
-                    Event.stopEvent(ev);
-                    this.nodeChange();
-                }
-            } else {
-                this.nodeChange();
-            }
-            this.fireEvent('editorClick', { type: 'editorClick', target: this, ev: ev });
-        },
-        /**
-        * @private
-        * @method _handleMouseUp
-        * @param {Event} ev The event we are working on.
-        * @description Handles all mouseup events inside the iFrame document.
-        */
-        _handleMouseUp: function(ev) {
-            var ret = this.fireEvent('beforeEditorMouseUp', { type: 'beforeEditorMouseUp', target: this, ev: ev });
-            if (ret === false) {
-                return false;
-            }
-            if (this._isNonEditable(ev)) {
-                return false;
-            }
-            //Don't set current event for mouseup.
-            //It get's fired after a menu is closed and gives up a bogus event to work with
-            //this._setCurrentEvent(ev);
-            var self = this;
-            if (this.browser.opera) {
-                /*
-                * @knownissue Opera appears to stop the MouseDown, Click and DoubleClick events on an image inside of a document with designMode on..
-                * @browser Opera
-                * @description This work around traps the MouseUp event and sets a timer to check if another MouseUp event fires in so many seconds. If another event is fired, they we internally fire the DoubleClick event.
-                */
-                var sel = Event.getTarget(ev);
-                if (this._isElement(sel, 'img')) {
-                    this.nodeChange();
-                    if (this.operaEvent) {
-                        clearTimeout(this.operaEvent);
-                        this.operaEvent = null;
-                        this._handleDoubleClick(ev);
-                    } else {
-                        this.operaEvent = window.setTimeout(function() {
-                            self.operaEvent = false;
-                        }, 700);
-                    }
-                }
-            }
-            //This will stop Safari from selecting the entire document if you select all the text in the editor
-            if (this.browser.webkit || this.browser.opera) {
-                if (this.browser.webkit) {
-                    Event.stopEvent(ev);
-                }
-            }
-            this.nodeChange();
-            this.fireEvent('editorMouseUp', { type: 'editorMouseUp', target: this, ev: ev });
-        },
-        /**
-        * @private
-        * @method _handleMouseDown
-        * @param {Event} ev The event we are working on.
-        * @description Handles all mousedown events inside the iFrame document.
-        */
-        _handleMouseDown: function(ev) {
-            var ret = this.fireEvent('beforeEditorMouseDown', { type: 'beforeEditorMouseDown', target: this, ev: ev });
-            if (ret === false) {
-                return false;
-            }
-            if (this._isNonEditable(ev)) {
-                return false;
-            }
-            this._setCurrentEvent(ev);
-            var sel = Event.getTarget(ev);
-            if (this.browser.webkit && this._hasSelection()) {
-                var _sel = this._getSelection();
-                if (!this.browser.webkit3) {
-                    _sel.collapse(true);
-                } else {
-                    _sel.collapseToStart();
-                }
-            }
-            if (this.browser.webkit && this._lastImage) {
-                Dom.removeClass(this._lastImage, 'selected');
-                this._lastImage = null;
-            }
-            if (this._isElement(sel, 'img') || this._isElement(sel, 'a')) {
-                if (this.browser.webkit) {
-                    Event.stopEvent(ev);
-                    if (this._isElement(sel, 'img')) {
-                        Dom.addClass(sel, 'selected');
-                        this._lastImage = sel;
-                    }
-                }
-                if (this.currentWindow) {
-                    this.closeWindow();
-                }
-                this.nodeChange();
-            }
-            this.fireEvent('editorMouseDown', { type: 'editorMouseDown', target: this, ev: ev });
-        },
-        /**
-        * @private
-        * @method _handleDoubleClick
-        * @param {Event} ev The event we are working on.
-        * @description Handles all doubleclick events inside the iFrame document.
-        */
-        _handleDoubleClick: function(ev) {
-            var ret = this.fireEvent('beforeEditorDoubleClick', { type: 'beforeEditorDoubleClick', target: this, ev: ev });
-            if (ret === false) {
-                return false;
-            }
-            if (this._isNonEditable(ev)) {
-                return false;
-            }
-            this._setCurrentEvent(ev);
-            var sel = Event.getTarget(ev);
-            if (this._isElement(sel, 'img')) {
-                this.currentElement[0] = sel;
-                this.toolbar.fireEvent('insertimageClick', { type: 'insertimageClick', target: this.toolbar });
-                this.fireEvent('afterExecCommand', { type: 'afterExecCommand', target: this });
-            } else if (this._hasParent(sel, 'a')) { //Handle elements inside an a
-                this.currentElement[0] = this._hasParent(sel, 'a');
-                this.toolbar.fireEvent('createlinkClick', { type: 'createlinkClick', target: this.toolbar });
-                this.fireEvent('afterExecCommand', { type: 'afterExecCommand', target: this });
-            }
-            this.nodeChange();
-            this.fireEvent('editorDoubleClick', { type: 'editorDoubleClick', target: this, ev: ev });
-        },
-        /**
-        * @private
-        * @method _handleKeyUp
-        * @param {Event} ev The event we are working on.
-        * @description Handles all keyup events inside the iFrame document.
-        */
-        _handleKeyUp: function(ev) {
-            var ret = this.fireEvent('beforeEditorKeyUp', { type: 'beforeEditorKeyUp', target: this, ev: ev });
-            if (ret === false) {
-                return false;
-            }
-            if (this._isNonEditable(ev)) {
-                return false;
-            }
-            this._storeUndo();
-            this._setCurrentEvent(ev);
-            switch (ev.keyCode) {
-                case this._keyMap.SELECT_ALL.key:
-                    if (this._checkKey(this._keyMap.SELECT_ALL, ev)) {
-                        this.nodeChange();
-                    }
-                    break;
-                case 32: //Space Bar
-                case 35: //End
-                case 36: //Home
-                case 37: //Left Arrow
-                case 38: //Up Arrow
-                case 39: //Right Arrow
-                case 40: //Down Arrow
-                case 46: //Forward Delete
-                case 8: //Delete
-                case this._keyMap.CLOSE_WINDOW.key: //W key if window is open
-                    if ((ev.keyCode == this._keyMap.CLOSE_WINDOW.key) && this.currentWindow) {
-                        if (this._checkKey(this._keyMap.CLOSE_WINDOW, ev)) {
-                            this.closeWindow();
-                        }
-                    } else {
-                        if (!this.browser.ie) {
-                            if (this._nodeChangeTimer) {
-                                clearTimeout(this._nodeChangeTimer);
-                            }
-                            var self = this;
-                            this._nodeChangeTimer = setTimeout(function() {
-                                self._nodeChangeTimer = null;
-                                self.nodeChange.call(self);
-                            }, 100);
-                        } else {
-                            this.nodeChange();
-                        }
-                        this.editorDirty = true;
-                    }
-                    break;
-            }
-            this.fireEvent('editorKeyUp', { type: 'editorKeyUp', target: this, ev: ev });
-        },
-        /**
-        * @private
-        * @method _handleKeyPress
-        * @param {Event} ev The event we are working on.
-        * @description Handles all keypress events inside the iFrame document.
-        */
-        _handleKeyPress: function(ev) {
-            var ret = this.fireEvent('beforeEditorKeyPress', { type: 'beforeEditorKeyPress', target: this, ev: ev });
-            if (ret === false) {
-                return false;
-            }
-
-            if (this.get('allowNoEdit')) {
-                //if (ev && ev.keyCode && ((ev.keyCode == 46) || ev.keyCode == 63272)) {
-                if (ev && ev.keyCode && (ev.keyCode == 63272)) {
-                    //Forward delete key
-                    YAHOO.log('allowNoEdit is set, forward delete key has been disabled', 'warn', 'SimpleEditor');
-                    Event.stopEvent(ev);
-                }
-            }
-            if (this._isNonEditable(ev)) {
-                return false;
-            }
-            this._setCurrentEvent(ev);
-            this._storeUndo();
-            if (this.browser.opera) {
-                if (ev.keyCode === 13) {
-                    var tar = this._getSelectedElement();
-                    if (!this._isElement(tar, 'li')) {
-                        this.execCommand('inserthtml', '<br>');
-                        Event.stopEvent(ev);
-                    }
-                }
-            }
-            if (this.browser.webkit) {
-                if (!this.browser.webkit3) {
-                    if (ev.keyCode && (ev.keyCode == 122) && (ev.metaKey)) {
-                        //This is CMD + z (for undo)
-                        if (this._hasParent(this._getSelectedElement(), 'li')) {
-                            YAHOO.log('We are in an LI and we found CMD + z, stopping the event', 'warn', 'SimpleEditor');
-                            Event.stopEvent(ev);
-                        }
-                    }
-                }
-                this._listFix(ev);
-            }
-            this._fixListDupIds();
-            this.fireEvent('editorKeyPress', { type: 'editorKeyPress', target: this, ev: ev });
-        },
-        /**
-        * @private
-        * @method _handleKeyDown
-        * @param {Event} ev The event we are working on.
-        * @description Handles all keydown events inside the iFrame document.
-        */
-        _handleKeyDown: function(ev) {
-            var ret = this.fireEvent('beforeEditorKeyDown', { type: 'beforeEditorKeyDown', target: this, ev: ev });
-            if (ret === false) {
-                return false;
-            }
-            var tar = null, _range = null;
-            if (this._isNonEditable(ev)) {
-                return false;
-            }
-            this._setCurrentEvent(ev);
-            if (this.currentWindow) {
-                this.closeWindow();
-            }
-            if (this.currentWindow) {
-                this.closeWindow();
-            }
-            var doExec = false,
-                action = null,
-                value = null,
-                exec = false;
-
-            //YAHOO.log('keyCode: ' + ev.keyCode, 'info', 'SimpleEditor');
-
-            switch (ev.keyCode) {
-                case this._keyMap.FOCUS_TOOLBAR.key:
-                    if (this._checkKey(this._keyMap.FOCUS_TOOLBAR, ev)) {
-                        var h = this.toolbar.getElementsByTagName('h2')[0];
-                        if (h && h.firstChild) {
-                            h.firstChild.focus();
-                        }
-                    } else if (this._checkKey(this._keyMap.FOCUS_AFTER, ev)) {
-                        //Focus After Element - Esc
-                        this.afterElement.focus();
-                    }
-                    Event.stopEvent(ev);
-                    doExec = false;
-                    break;
-                //case 76: //L
-                case this._keyMap.CREATE_LINK.key: //L
-                    if (this._hasSelection()) {
-                        if (this._checkKey(this._keyMap.CREATE_LINK, ev)) {
-                            var makeLink = true;
-                            if (this.get('limitCommands')) {
-                                if (!this.toolbar.getButtonByValue('createlink')) {
-                                    YAHOO.log('Toolbar Button for (createlink) was not found, skipping exec.', 'info', 'SimpleEditor');
-                                    makeLink = false;
-                                }
-                            }
-                            if (makeLink) {
-                                this.execCommand('createlink', '');
-                                this.toolbar.fireEvent('createlinkClick', { type: 'createlinkClick', target: this.toolbar });
-                                this.fireEvent('afterExecCommand', { type: 'afterExecCommand', target: this });
-                                doExec = false;
-                            }
-                        }
-                    }
-                    break;
-                //case 90: //Z
-                case this._keyMap.UNDO.key:
-                case this._keyMap.REDO.key:
-                    if (this._checkKey(this._keyMap.REDO, ev)) {
-                        action = 'redo';
-                        doExec = true;
-                    } else if (this._checkKey(this._keyMap.UNDO, ev)) {
-                        action = 'undo';
-                        doExec = true;
-                    }
-                    break;
-                //case 66: //B
-                case this._keyMap.BOLD.key:
-                    if (this._checkKey(this._keyMap.BOLD, ev)) {
-                        action = 'bold';
-                        doExec = true;
-                    }
-                    break;
-                case this._keyMap.FONT_SIZE_UP.key:
-                case this._keyMap.FONT_SIZE_DOWN.key:
-                    var uk = false, dk = false;
-                    if (this._checkKey(this._keyMap.FONT_SIZE_UP, ev)) {
-                        uk = true;
-                    }
-                    if (this._checkKey(this._keyMap.FONT_SIZE_DOWN, ev)) {
-                        dk = true;
-                    }
-                    if (uk || dk) {
-                        var fs_button = this.toolbar.getButtonByValue('fontsize'),
-                            label = parseInt(fs_button.get('label'), 10),
-                            newValue = (label + 1);
-
-                        if (dk) {
-                            newValue = (label - 1);
-                        }
-
-                        action = 'fontsize';
-                        value = newValue + 'px';
-                        doExec = true;
-                    }
-                    break;
-                //case 73: //I
-                case this._keyMap.ITALIC.key:
-                    if (this._checkKey(this._keyMap.ITALIC, ev)) {
-                        action = 'italic';
-                        doExec = true;
-                    }
-                    break;
-                //case 85: //U
-                case this._keyMap.UNDERLINE.key:
-                    if (this._checkKey(this._keyMap.UNDERLINE, ev)) {
-                        action = 'underline';
-                        doExec = true;
-                    }
-                    break;
-                case 9:
-                    if (this.browser.ie) {
-                        //Insert a tab in Internet Explorer
-                        _range = this._getRange();
-                        tar = this._getSelectedElement();
-                        if (!this._isElement(tar, 'li')) {
-                            if (_range) {
-                                _range.pasteHTML('&nbsp;&nbsp;&nbsp;&nbsp;');
-                                _range.collapse(false);
-                                _range.select();
-                            }
-                            Event.stopEvent(ev);
-                        }
-                    }
-                    //Firefox 3 code
-                    if (this.browser.gecko > 1.8) {
-                        tar = this._getSelectedElement();
-                        if (this._isElement(tar, 'li')) {
-                            if (ev.shiftKey) {
-                                this._getDoc().execCommand('outdent', null, '');
-                            } else {
-                                this._getDoc().execCommand('indent', null, '');
-                            }
-                            
-                        } else if (!this._hasSelection()) {
-                            this.execCommand('inserthtml', '&nbsp;&nbsp;&nbsp;&nbsp;');
-                        }
-                        Event.stopEvent(ev);
-                    }
-                    break;
-                case 13:
-                    var p = null, i = 0;
-                    if (this.get('ptags') && !ev.shiftKey) {
-                        if (this.browser.gecko) {
-                            tar = this._getSelectedElement();
-                            if (!this._hasParent(tar, 'li')) {
-                                if (this._hasParent(tar, 'p')) {
-                                    p = this._getDoc().createElement('p');
-                                    p.innerHTML = '&nbsp;';
-                                    Dom.insertAfter(p, tar);
-                                    this._selectNode(p.firstChild);
-                                } else if (this._isElement(tar, 'body')) {
-                                    this.execCommand('insertparagraph', null);
-                                    var ps = this._getDoc().body.getElementsByTagName('p');
-                                    for (i = 0; i < ps.length; i++) {
-                                        if (ps[i].getAttribute('_moz_dirty') !== null) {
-                                            p = this._getDoc().createElement('p');
-                                            p.innerHTML = '&nbsp;';
-                                            Dom.insertAfter(p, ps[i]);
-                                            this._selectNode(p.firstChild);
-                                            ps[i].removeAttribute('_moz_dirty');
-                                        }
-                                    }
-                                } else {
-                                    YAHOO.log('Something went wrong with paragraphs, please file a bug!!', 'error', 'SimpleEditor');
-                                    doExec = true;
-                                    action = 'insertparagraph';
-                                }
-                                Event.stopEvent(ev);
-                            }
-                        }
-                        if (this.browser.webkit) {
-                            tar = this._getSelectedElement();
-                            if (!this._hasParent(tar, 'li')) {
-                                this.execCommand('insertparagraph', null);
-                                var divs = this._getDoc().body.getElementsByTagName('div');
-                                for (i = 0; i < divs.length; i++) {
-                                    if (!Dom.hasClass(divs[i], 'yui-wk-div')) {
-                                        Dom.addClass(divs[i], 'yui-wk-p');
-                                    }
-                                }
-                                Event.stopEvent(ev);
-                            }
-                        }
-                    } else {
-                        if (this.browser.webkit) {
-                            tar = this._getSelectedElement();
-                            if (!this._hasParent(tar, 'li')) {
-                                if (this.browser.webkit4) {
-                                    this.execCommand('insertlinebreak');
-                                } else {
-                                    this.execCommand('inserthtml', '<var id="yui-br"></var>');
-                                    var holder = this._getDoc().getElementById('yui-br'),
-                                        br = this._getDoc().createElement('br'),
-                                        caret = this._getDoc().createElement('span');
-
-                                    holder.parentNode.replaceChild(br, holder);
-                                    caret.className = 'yui-non';
-                                    caret.innerHTML = '&nbsp;';
-                                    Dom.insertAfter(caret, br);
-                                    this._selectNode(caret);
-                                }
-                                Event.stopEvent(ev);
-                            }
-                        }
-                        if (this.browser.ie) {
-                            YAHOO.log('Stopping P tags', 'info', 'SimpleEditor');
-                            //Insert a <br> instead of a <p></p> in Internet Explorer
-                            _range = this._getRange();
-                            tar = this._getSelectedElement();
-                            if (!this._isElement(tar, 'li')) {
-                                if (_range) {
-                                    _range.pasteHTML('<br>');
-                                    _range.collapse(false);
-                                    _range.select();
-                                }
-                                Event.stopEvent(ev);
-                            }
-                        }
-                    }
-                    break;
-            }
-            if (this.browser.ie) {
-                this._listFix(ev);
-            }
-            if (doExec && action) {
-                this.execCommand(action, value);
-                Event.stopEvent(ev);
-                this.nodeChange();
-            }
-            this._storeUndo();
-            this.fireEvent('editorKeyDown', { type: 'editorKeyDown', target: this, ev: ev });
-        },
-        /**
-        * @private
-        * @property _fixListRunning
-        * @type Boolean
-        * @description Keeps more than one _fixListDupIds from running at the same time.
-        */
-        _fixListRunning: null,
-        /**
-        * @private
-        * @method _fixListDupIds
-        * @description Some browsers will duplicate the id of an LI when created in designMode.
-        * This method will fix the duplicate id issue. However it will only preserve the first element 
-        * in the document list with the unique id. 
-        */
-        _fixListDupIds: function() {
-            if (this._fixListRunning) {
-                return false;
-            }
-            if (this._getDoc()) {
-                this._fixListRunning = true;
-                var lis = this._getDoc().body.getElementsByTagName('li'),
-                    i = 0, ids = {};
-                for (i = 0; i < lis.length; i++) {
-                    if (lis[i].id) {
-                        if (ids[lis[i].id]) {
-                            lis[i].id = '';
-                        }
-                        ids[lis[i].id] = true;
-                    }
-                }
-                this._fixListRunning = false;
-            }
-        },
-        /**
-        * @private
-        * @method _listFix
-        * @param {Event} ev The event we are working on.
-        * @description Handles the Enter key, Tab Key and Shift + Tab keys for List Items.
-        */
-        _listFix: function(ev) {
-            //YAHOO.log('Lists Fix (' + ev.keyCode + ')', 'info', 'SimpleEditor');
-            var testLi = null, par = null, preContent = false, range = null;
-            //Enter Key
-            if (this.browser.webkit) {
-                if (ev.keyCode && (ev.keyCode == 13)) {
-                    if (this._hasParent(this._getSelectedElement(), 'li')) {
-                        var tar = this._hasParent(this._getSelectedElement(), 'li');
-                        if (tar.previousSibling) {
-                            if (tar.firstChild && (tar.firstChild.length == 1)) {
-                                this._selectNode(tar);
-                            }
-                        }
-                    }
-                }
-            }
-            //Shift + Tab Key
-            if (ev.keyCode && ((!this.browser.webkit3 && (ev.keyCode == 25)) || ((this.browser.webkit3 || !this.browser.webkit) && ((ev.keyCode == 9) && ev.shiftKey)))) {
-                testLi = this._getSelectedElement();
-                if (this._hasParent(testLi, 'li')) {
-                    testLi = this._hasParent(testLi, 'li');
-                    YAHOO.log('We have a SHIFT tab in an LI, reverse it..', 'info', 'SimpleEditor');
-                    if (this._hasParent(testLi, 'ul') || this._hasParent(testLi, 'ol')) {
-                        YAHOO.log('We have a double parent, move up a level', 'info', 'SimpleEditor');
-                        par = this._hasParent(testLi, 'ul');
-                        if (!par) {
-                            par = this._hasParent(testLi, 'ol');
-                        }
-                        //YAHOO.log(par.previousSibling + ' :: ' + par.previousSibling.innerHTML);
-                        if (this._isElement(par.previousSibling, 'li')) {
-                            par.removeChild(testLi);
-                            par.parentNode.insertBefore(testLi, par.nextSibling);
-                            if (this.browser.ie) {
-                                range = this._getDoc().body.createTextRange();
-                                range.moveToElementText(testLi);
-                                range.collapse(false);
-                                range.select();
-                            }
-                            if (this.browser.webkit) {
-                                this._selectNode(testLi.firstChild);
-                            }
-                            Event.stopEvent(ev);
-                        }
-                    }
-                }
-            }
-            //Tab Key
-            if (ev.keyCode && ((ev.keyCode == 9) && (!ev.shiftKey))) {
-                YAHOO.log('List Fix - Tab', 'info', 'SimpleEditor');
-                var preLi = this._getSelectedElement();
-                if (this._hasParent(preLi, 'li')) {
-                    preContent = this._hasParent(preLi, 'li').innerHTML;
-                }
-                //YAHOO.log('preLI: ' + preLi.tagName + ' :: ' + preLi.innerHTML);
-                if (this.browser.webkit) {
-                    this._getDoc().execCommand('inserttext', false, '\t');
-                }
-                testLi = this._getSelectedElement();
-                if (this._hasParent(testLi, 'li')) {
-                    YAHOO.log('We have a tab in an LI', 'info', 'SimpleEditor');
-                    par = this._hasParent(testLi, 'li');
-                    YAHOO.log('parLI: ' + par.tagName + ' :: ' + par.innerHTML);
-                    var newUl = this._getDoc().createElement(par.parentNode.tagName.toLowerCase());
-                    if (this.browser.webkit) {
-                        var span = Dom.getElementsByClassName('Apple-tab-span', 'span', par);
-                        //Remove the span element that Safari puts in
-                        if (span[0]) {
-                            par.removeChild(span[0]);
-                            par.innerHTML = Lang.trim(par.innerHTML);
-                            //Put the HTML from the LI into this new LI
-                            if (preContent) {
-                                par.innerHTML = '<span class="yui-non">' + preContent + '</span>&nbsp;';
-                            } else {
-                                par.innerHTML = '<span class="yui-non">&nbsp;</span>&nbsp;';
-                            }
-                        }
-                    } else {
-                        if (preContent) {
-                            par.innerHTML = preContent + '&nbsp;';
-                        } else {
-                            par.innerHTML = '&nbsp;';
-                        }
-                    }
-
-                    par.parentNode.replaceChild(newUl, par);
-                    newUl.appendChild(par);
-                    if (this.browser.webkit) {
-                        this._getSelection().setBaseAndExtent(par.firstChild, 1, par.firstChild, par.firstChild.innerText.length);
-                        if (!this.browser.webkit3) {
-                            par.parentNode.parentNode.style.display = 'list-item';
-                            setTimeout(function() {
-                                par.parentNode.parentNode.style.display = 'block';
-                            }, 1);
-                        }
-                    } else if (this.browser.ie) {
-                        range = this._getDoc().body.createTextRange();
-                        range.moveToElementText(par);
-                        range.collapse(false);
-                        range.select();
-                    } else {
-                        this._selectNode(par);
-                    }
-                    Event.stopEvent(ev);
-                }
-                if (this.browser.webkit) {
-                    Event.stopEvent(ev);
-                }
-                this.nodeChange();
-            }
-        },
-        /**
-        * @method nodeChange
-        * @param {Boolean} force Optional paramenter to skip the threshold counter
-        * @description Handles setting up the toolbar buttons, getting the Dom path, fixing nodes.
-        */
-        nodeChange: function(force) {
-            var NCself = this;
-            this._storeUndo();
-            if (this.get('nodeChangeDelay')) {
-                this._nodeChangeDelayTimer = window.setTimeout(function() {
-                    NCself._nodeChangeDelayTimer = null;
-                    NCself._nodeChange.apply(NCself, arguments);
-                }, 0);
-            } else {
-                this._nodeChange();
-            }
-        },
-        /**
-        * @private
-        * @method _nodeChange
-        * @param {Boolean} force Optional paramenter to skip the threshold counter
-        * @description Fired from nodeChange in a setTimeout.
-        */
-        _nodeChange: function(force) {
-            var threshold = parseInt(this.get('nodeChangeThreshold'), 10),
-                thisNodeChange = Math.round(new Date().getTime() / 1000),
-                self = this;
-
-            if (force === true) {
-                this._lastNodeChange = 0;
-            }
-            
-            if ((this._lastNodeChange + threshold) < thisNodeChange) {
-                if (this._fixNodesTimer === null) {
-                    this._fixNodesTimer = window.setTimeout(function() {
-                        self._fixNodes.call(self);
-                        self._fixNodesTimer = null;
-                    }, 0);
-                }
-            }
-            this._lastNodeChange = thisNodeChange;
-            if (this.currentEvent) {
-                try {
-                    this._lastNodeChangeEvent = this.currentEvent.type;
-                } catch (e) {}
-            }
-
-            var beforeNodeChange = this.fireEvent('beforeNodeChange', { type: 'beforeNodeChange', target: this });
-            if (beforeNodeChange === false) {
-                return false;
-            }
-            if (this.get('dompath')) {
-                window.setTimeout(function() {
-                    self._writeDomPath.call(self);
-                }, 0);
-            }
-            //Check to see if we are disabled before continuing
-            if (!this.get('disabled')) {
-                if (this.STOP_NODE_CHANGE) {
-                    //Reset this var for next action
-                    this.STOP_NODE_CHANGE = false;
-                    return false;
-                } else {
-                    var sel = this._getSelection(),
-                        range = this._getRange(),
-                        el = this._getSelectedElement(),
-                        fn_button = this.toolbar.getButtonByValue('fontname'),
-                        fs_button = this.toolbar.getButtonByValue('fontsize'),
-                        undo_button = this.toolbar.getButtonByValue('undo'),
-                        redo_button = this.toolbar.getButtonByValue('redo');
-
-                    //Handle updating the toolbar with active buttons
-                    var _ex = {};
-                    if (this._lastButton) {
-                        _ex[this._lastButton.id] = true;
-                        //this._lastButton = null;
-                    }
-                    if (!this._isElement(el, 'body')) {
-                        if (fn_button) {
-                            _ex[fn_button.get('id')] = true;
-                        }
-                        if (fs_button) {
-                            _ex[fs_button.get('id')] = true;
-                        }
-                    }
-                    if (redo_button) {
-                        delete _ex[redo_button.get('id')];
-                    }
-                    this.toolbar.resetAllButtons(_ex);
-
-                    //Handle disabled buttons
-                    for (var d = 0; d < this._disabled.length; d++) {
-                        var _button = this.toolbar.getButtonByValue(this._disabled[d]);
-                        if (_button && _button.get) {
-                            if (this._lastButton && (_button.get('id') === this._lastButton.id)) {
-                                //Skip
-                            } else {
-                                if (!this._hasSelection() && !this.get('insert')) {
-                                    switch (this._disabled[d]) {
-                                        case 'fontname':
-                                        case 'fontsize':
-                                            break;
-                                        default:
-                                            //No Selection - disable
-                                            this.toolbar.disableButton(_button);
-                                    }
-                                } else {
-                                    if (!this._alwaysDisabled[this._disabled[d]]) {
-                                        this.toolbar.enableButton(_button);
-                                    }
-                                }
-                                if (!this._alwaysEnabled[this._disabled[d]]) {
-                                    this.toolbar.deselectButton(_button);
-                                }
-                            }
-                        }
-                    }
-                    var path = this._getDomPath();
-                    var tag = null, cmd = null;
-                    for (var i = 0; i < path.length; i++) {
-                        tag = path[i].tagName.toLowerCase();
-                        if (path[i].getAttribute('tag')) {
-                            tag = path[i].getAttribute('tag').toLowerCase();
-                        }
-                        cmd = this._tag2cmd[tag];
-                        if (cmd === undefined) {
-                            cmd = [];
-                        }
-                        if (!Lang.isArray(cmd)) {
-                            cmd = [cmd];
-                        }
-
-                        //Bold and Italic styles
-                        if (path[i].style.fontWeight.toLowerCase() == 'bold') {
-                            cmd[cmd.length] = 'bold';
-                        }
-                        if (path[i].style.fontStyle.toLowerCase() == 'italic') {
-                            cmd[cmd.length] = 'italic';
-                        }
-                        if (path[i].style.textDecoration.toLowerCase() == 'underline') {
-                            cmd[cmd.length] = 'underline';
-                        }
-                        if (path[i].style.textDecoration.toLowerCase() == 'line-through') {
-                            cmd[cmd.length] = 'strikethrough';
-                        }
-                        if (cmd.length > 0) {
-                            for (var j = 0; j < cmd.length; j++) {
-                                this.toolbar.selectButton(cmd[j]);
-                                this.toolbar.enableButton(cmd[j]);
-                            }
-                        }
-                        //Handle Alignment
-                        switch (path[i].style.textAlign.toLowerCase()) {
-                            case 'left':
-                            case 'right':
-                            case 'center':
-                            case 'justify':
-                                var alignType = path[i].style.textAlign.toLowerCase();
-                                if (path[i].style.textAlign.toLowerCase() == 'justify') {
-                                    alignType = 'full';
-                                }
-                                this.toolbar.selectButton('justify' + alignType);
-                                this.toolbar.enableButton('justify' + alignType);
-                                break;
-                        }
-                    }
-                    //After for loop
-
-                    //Reset Font Family and Size to the inital configs
-                    if (fn_button) {
-                        var family = fn_button._configs.label._initialConfig.value;
-                        fn_button.set('label', '<span class="yui-toolbar-fontname-' + this._cleanClassName(family) + '">' + family + '</span>');
-                        this._updateMenuChecked('fontname', family);
-                    }
-
-                    if (fs_button) {
-                        fs_button.set('label', fs_button._configs.label._initialConfig.value);
-                    }
-
-                    var hd_button = this.toolbar.getButtonByValue('heading');
-                    if (hd_button) {
-                        hd_button.set('label', hd_button._configs.label._initialConfig.value);
-                        this._updateMenuChecked('heading', 'none');
-                    }
-                    var img_button = this.toolbar.getButtonByValue('insertimage');
-                    if (img_button && this.currentWindow && (this.currentWindow.name == 'insertimage')) {
-                        this.toolbar.disableButton(img_button);
-                    }
-                    if (this._lastButton && this._lastButton.isSelected) {
-                        this.toolbar.deselectButton(this._lastButton.id);
-                    }
-                    this._undoNodeChange();
-                }
-            }
-
-            this.fireEvent('afterNodeChange', { type: 'afterNodeChange', target: this });
-        },
-        /**
-        * @private
-        * @method _updateMenuChecked
-        * @param {Object} button The command identifier of the button you want to check
-        * @param {String} value The value of the menu item you want to check
-        * @param {<a href="YAHOO.widget.Toolbar.html">YAHOO.widget.Toolbar</a>} The Toolbar instance the button belongs to (defaults to this.toolbar) 
-        * @description Gets the menu from a button instance, if the menu is not rendered it will render it. It will then search the menu for the specified value, unchecking all other items and checking the specified on.
-        */
-        _updateMenuChecked: function(button, value, tbar) {
-            if (!tbar) {
-                tbar = this.toolbar;
-            }
-            var _button = tbar.getButtonByValue(button);
-            _button.checkValue(value);
-        },
-        /**
-        * @private
-        * @method _handleToolbarClick
-        * @param {Event} ev The event that triggered the button click
-        * @description This is an event handler attached to the Toolbar's buttonClick event. It will fire execCommand with the command identifier from the Toolbar Button.
-        */
-        _handleToolbarClick: function(ev) {
-            var value = '';
-            var str = '';
-            var cmd = ev.button.value;
-            if (ev.button.menucmd) {
-                value = cmd;
-                cmd = ev.button.menucmd;
-            }
-            this._lastButton = ev.button;
-            if (this.STOP_EXEC_COMMAND) {
-                YAHOO.log('execCommand skipped because we found the STOP_EXEC_COMMAND flag set to true', 'warn', 'SimpleEditor');
-                YAHOO.log('NOEXEC::execCommand::(' + cmd + '), (' + value + ')', 'warn', 'SimpleEditor');
-                this.STOP_EXEC_COMMAND = false;
-                return false;
-            } else {
-                this.execCommand(cmd, value);
-                if (!this.browser.webkit) {
-                     var Fself = this;
-                     setTimeout(function() {
-                         Fself.focus.call(Fself);
-                     }, 5);
-                 }
-            }
-            Event.stopEvent(ev);
-        },
-        /**
-        * @private
-        * @method _setupAfterElement
-        * @description Creates the accessibility h2 header and places it after the iframe in the Dom for navigation.
-        */
-        _setupAfterElement: function() {
-            if (!this.beforeElement) {
-                this.beforeElement = document.createElement('h2');
-                this.beforeElement.className = 'yui-editor-skipheader';
-                this.beforeElement.tabIndex = '-1';
-                this.beforeElement.innerHTML = this.STR_BEFORE_EDITOR;
-                this.get('element_cont').get('firstChild').insertBefore(this.beforeElement, this.toolbar.get('nextSibling'));
-            }
-            if (!this.afterElement) {
-                this.afterElement = document.createElement('h2');
-                this.afterElement.className = 'yui-editor-skipheader';
-                this.afterElement.tabIndex = '-1';
-                this.afterElement.innerHTML = this.STR_LEAVE_EDITOR;
-                this.get('element_cont').get('firstChild').appendChild(this.afterElement);
-            }
-        },
-        /**
-        * @private
-        * @method _disableEditor
-        * @param {Boolean} disabled Pass true to disable, false to enable
-        * @description Creates a mask to place over the Editor.
-        */
-        _disableEditor: function(disabled) {
-            var iframe, par, html, height;
-            if (!this.get('disabled_iframe')) {
-                iframe = this._createIframe();
-                iframe.set('id', 'disabled_' + this.get('iframe').get('id'));
-                iframe.setStyle('height', '100%');
-                iframe.setStyle('display', 'none');
-                iframe.setStyle('visibility', 'visible');
-                this.set('disabled_iframe', iframe);
-                par = this.get('iframe').get('parentNode');
-                par.appendChild(iframe.get('element'));
-            }
-            if (!iframe) {
-                iframe = this.get('disabled_iframe');
-            }
-            if (disabled) {
-                this._orgIframe = this.get('iframe');
-
-                if (this.toolbar) {
-                    this.toolbar.set('disabled', true);
-                }
-
-                html = this.getEditorHTML();
-                height = this.get('iframe').get('offsetHeight');
-                iframe.setStyle('visibility', '');
-                iframe.setStyle('position', '');
-                iframe.setStyle('top', '');
-                iframe.setStyle('left', '');
-                this._orgIframe.setStyle('visibility', 'hidden');
-                this._orgIframe.setStyle('position', 'absolute');
-                this._orgIframe.setStyle('top', '-99999px');
-                this._orgIframe.setStyle('left', '-99999px');
-                this.set('iframe', iframe);
-                this._setInitialContent(true);
-                
-                if (!this._mask) {
-                    this._mask = document.createElement('DIV');
-                    Dom.addClass(this._mask, 'yui-editor-masked');
-                    if (this.browser.ie) {
-                        this._mask.style.height = height + 'px';
-                    }
-                    this.get('iframe').get('parentNode').appendChild(this._mask);
-                }
-                this.on('editorContentReloaded', function() {
-                    this._getDoc().body._rteLoaded = false;
-                    this.setEditorHTML(html);
-                    iframe.setStyle('display', 'block');
-                    this.unsubscribeAll('editorContentReloaded');
-                });
-            } else {
-                if (this._mask) {
-                    this._mask.parentNode.removeChild(this._mask);
-                    this._mask = null;
-                    if (this.toolbar) {
-                        this.toolbar.set('disabled', false);
-                    }
-                    iframe.setStyle('visibility', 'hidden');
-                    iframe.setStyle('position', 'absolute');
-                    iframe.setStyle('top', '-99999px');
-                    iframe.setStyle('left', '-99999px');
-                    this._orgIframe.setStyle('visibility', '');
-                    this._orgIframe.setStyle('position', '');
-                    this._orgIframe.setStyle('top', '');
-                    this._orgIframe.setStyle('left', '');
-                    this.set('iframe', this._orgIframe);
-
-                    this.focus();
-                    var self = this;
-                    window.setTimeout(function() {
-                        self.nodeChange.call(self);
-                    }, 100);
-                }
-            }
-        },
-        /**
-        * @property SEP_DOMPATH
-        * @description The value to place in between the Dom path items
-        * @type String
-        */
-        SEP_DOMPATH: '<',
-        /**
-        * @property STR_LEAVE_EDITOR
-        * @description The accessibility string for the element after the iFrame
-        * @type String
-        */
-        STR_LEAVE_EDITOR: 'You have left the Rich Text Editor.',
-        /**
-        * @property STR_BEFORE_EDITOR
-        * @description The accessibility string for the element before the iFrame
-        * @type String
-        */
-        STR_BEFORE_EDITOR: 'This text field can contain stylized text and graphics. To cycle through all formatting options, use the keyboard shortcut Shift + Escape to place focus on the toolbar and navigate between options with your arrow keys. To exit this text editor use the Escape key and continue tabbing. <h4>Common formatting keyboard shortcuts:</h4><ul><li>Control Shift B sets text to bold</li> <li>Control Shift I sets text to italic</li> <li>Control Shift U underlines text</li> <li>Control Shift L adds an HTML link</li></ul>',
-        /**
-        * @property STR_TITLE
-        * @description The Title of the HTML document that is created in the iFrame
-        * @type String
-        */
-        STR_TITLE: 'Rich Text Area.',
-        /**
-        * @property STR_IMAGE_HERE
-        * @description The text to place in the URL textbox when using the blankimage.
-        * @type String
-        */
-        STR_IMAGE_HERE: 'Image URL Here',
-        /**
-        * @property STR_IMAGE_URL
-        * @description The label string for Image URL
-        * @type String
-        */
-        STR_IMAGE_URL: 'Image URL',        
-        /**
-        * @property STR_LINK_URL
-        * @description The label string for the Link URL.
-        * @type String
-        */
-        STR_LINK_URL: 'Link URL',
-        /**
-        * @protected
-        * @property STOP_EXEC_COMMAND
-        * @description Set to true when you want the default execCommand function to not process anything
-        * @type Boolean
-        */
-        STOP_EXEC_COMMAND: false,
-        /**
-        * @protected
-        * @property STOP_NODE_CHANGE
-        * @description Set to true when you want the default nodeChange function to not process anything
-        * @type Boolean
-        */
-        STOP_NODE_CHANGE: false,
-        /**
-        * @protected
-        * @property CLASS_NOEDIT
-        * @description CSS class applied to elements that are not editable.
-        * @type String
-        */
-        CLASS_NOEDIT: 'yui-noedit',
-        /**
-        * @protected
-        * @property CLASS_CONTAINER
-        * @description Default CSS class to apply to the editors container element
-        * @type String
-        */
-        CLASS_CONTAINER: 'yui-editor-container',
-        /**
-        * @protected
-        * @property CLASS_EDITABLE
-        * @description Default CSS class to apply to the editors iframe element
-        * @type String
-        */
-        CLASS_EDITABLE: 'yui-editor-editable',
-        /**
-        * @protected
-        * @property CLASS_EDITABLE_CONT
-        * @description Default CSS class to apply to the editors iframe's parent element
-        * @type String
-        */
-        CLASS_EDITABLE_CONT: 'yui-editor-editable-container',
-        /**
-        * @protected
-        * @property CLASS_PREFIX
-        * @description Default prefix for dynamically created class names
-        * @type String
-        */
-        CLASS_PREFIX: 'yui-editor',
-        /** 
-        * @property browser
-        * @description Standard browser detection
-        * @type Object
-        */
-        browser: function() {
-            var br = YAHOO.env.ua;
-            //Check for webkit3
-            if (br.webkit >= 420) {
-                br.webkit3 = br.webkit;
-            } else {
-                br.webkit3 = 0;
-            }
-            if (br.webkit >= 530) {
-                br.webkit4 = br.webkit;
-            } else {
-                br.webkit4 = 0;
-            }
-            br.mac = false;
-            //Check for Mac
-            if (navigator.userAgent.indexOf('Macintosh') !== -1) {
-                br.mac = true;
-            }
-
-            return br;
-        }(),
-        /** 
-        * @method init
-        * @description The Editor class' initialization method
-        */
-        init: function(p_oElement, p_oAttributes) {
-            YAHOO.log('init', 'info', 'SimpleEditor');
-
-            if (!this._defaultToolbar) {
-                this._defaultToolbar = {
-                    collapse: true,
-                    titlebar: 'Text Editing Tools',
-                    draggable: false,
-                    buttons: [
-                        { group: 'fontstyle', label: 'Font Name and Size',
-                            buttons: [
-                                { type: 'select', label: 'Arial', value: 'fontname', disabled: true,
-                                    menu: [
-                                        { text: 'Arial', checked: true },
-                                        { text: 'Arial Black' },
-                                        { text: 'Comic Sans MS' },
-                                        { text: 'Courier New' },
-                                        { text: 'Lucida Console' },
-                                        { text: 'Tahoma' },
-                                        { text: 'Times New Roman' },
-                                        { text: 'Trebuchet MS' },
-                                        { text: 'Verdana' }
-                                    ]
-                                },
-                                { type: 'spin', label: '13', value: 'fontsize', range: [ 9, 75 ], disabled: true }
-                            ]
-                        },
-                        { type: 'separator' },
-                        { group: 'textstyle', label: 'Font Style',
-                            buttons: [
-                                { type: 'push', label: 'Bold CTRL + SHIFT + B', value: 'bold' },
-                                { type: 'push', label: 'Italic CTRL + SHIFT + I', value: 'italic' },
-                                { type: 'push', label: 'Underline CTRL + SHIFT + U', value: 'underline' },
-                                { type: 'push', label: 'Strike Through', value: 'strikethrough' },
-                                { type: 'separator' },
-                                { type: 'color', label: 'Font Color', value: 'forecolor', disabled: true },
-                                { type: 'color', label: 'Background Color', value: 'backcolor', disabled: true }
-                                
-                            ]
-                        },
-                        { type: 'separator' },
-                        { group: 'indentlist', label: 'Lists',
-                            buttons: [
-                                { type: 'push', label: 'Create an Unordered List', value: 'insertunorderedlist' },
-                                { type: 'push', label: 'Create an Ordered List', value: 'insertorderedlist' }
-                            ]
-                        },
-                        { type: 'separator' },
-                        { group: 'insertitem', label: 'Insert Item',
-                            buttons: [
-                                { type: 'push', label: 'HTML Link CTRL + SHIFT + L', value: 'createlink', disabled: true },
-                                { type: 'push', label: 'Insert Image', value: 'insertimage' }
-                            ]
-                        }
-                    ]
-                };
-            }
-
-            YAHOO.widget.SimpleEditor.superclass.init.call(this, p_oElement, p_oAttributes);
-            YAHOO.widget.EditorInfo._instances[this.get('id')] = this;
-
-
-            this.currentElement = [];
-            this.on('contentReady', function() {
-                this.DOMReady = true;
-                this.fireQueue();
-            }, this, true);
-
-        },
-        /**
-        * @method initAttributes
-        * @description Initializes all of the configuration attributes used to create 
-        * the editor.
-        * @param {Object} attr Object literal specifying a set of 
-        * configuration attributes used to create the editor.
-        */
-        initAttributes: function(attr) {
-            YAHOO.widget.SimpleEditor.superclass.initAttributes.call(this, attr);
-            var self = this;
-
-            /**
-            * @config setDesignMode
-            * @description Should the Editor set designMode on the document. Default: true.
-            * @default true
-            * @type Boolean
-            */
-            this.setAttributeConfig('setDesignMode', {
-                value: ((attr.setDesignMode === false) ? false : true)
-            });
-            /**
-            * @config nodeChangeDelay
-            * @description Do we wrap the nodeChange method in a timeout for performance. Default: true.
-            * @default true
-            * @type Boolean
-            */
-            this.setAttributeConfig('nodeChangeDelay', {
-                value: ((attr.nodeChangeDelay === false) ? false : true)
-            });
-            /**
-            * @config maxUndo
-            * @description The max number of undo levels to store.
-            * @default 30
-            * @type Number
-            */
-            this.setAttributeConfig('maxUndo', {
-                writeOnce: true,
-                value: attr.maxUndo || 30
-            });
-
-            /**
-            * @config ptags
-            * @description If true, the editor uses &lt;P&gt; tags instead of &lt;br&gt; tags. (Use Shift + Enter to get a &lt;br&gt;)
-            * @default false
-            * @type Boolean
-            */
-            this.setAttributeConfig('ptags', {
-                writeOnce: true,
-                value: attr.ptags || false
-            });
-            /**
-            * @config insert
-            * @description If true, selection is not required for: fontname, fontsize, forecolor, backcolor.
-            * @default false
-            * @type Boolean
-            */
-            this.setAttributeConfig('insert', {
-                writeOnce: true,
-                value: attr.insert || false,
-                method: function(insert) {
-                    if (insert) {
-                        var buttons = {
-                            fontname: true,
-                            fontsize: true,
-                            forecolor: true,
-                            backcolor: true
-                        };
-                        var tmp = this._defaultToolbar.buttons;
-                        for (var i = 0; i < tmp.length; i++) {
-                            if (tmp[i].buttons) {
-                                for (var a = 0; a < tmp[i].buttons.length; a++) {
-                                    if (tmp[i].buttons[a].value) {
-                                        if (buttons[tmp[i].buttons[a].value]) {
-                                            delete tmp[i].buttons[a].disabled;
-                                        }
-                                    }
-                                }
-                            }
-                        }
-                    }
-                }
-            });
-            /**
-            * @config container
-            * @description Used when dynamically creating the Editor from Javascript with no default textarea.
-            * We will create one and place it in this container. If no container is passed we will append to document.body.
-            * @default false
-            * @type HTMLElement
-            */
-            this.setAttributeConfig('container', {
-                writeOnce: true,
-                value: attr.container || false
-            });
-            /**
-            * @config plainText
-            * @description Process the inital textarea data as if it was plain text. Accounting for spaces, tabs and line feeds.
-            * @default false
-            * @type Boolean
-            */
-            this.setAttributeConfig('plainText', {
-                writeOnce: true,
-                value: attr.plainText || false
-            });
-            /**
-            * @private
-            * @config iframe
-            * @description Internal config for holding the iframe element.
-            * @default null
-            * @type HTMLElement
-            */
-            this.setAttributeConfig('iframe', {
-                value: null
-            });
-            /**
-            * @private
-            * @config disabled_iframe
-            * @description Internal config for holding the iframe element used when disabling the Editor.
-            * @default null
-            * @type HTMLElement
-            */
-            this.setAttributeConfig('disabled_iframe', {
-                value: null
-            });
-            /**
-            * @private
-            * @depreciated - No longer used, should use this.get('element')
-            * @config textarea
-            * @description Internal config for holding the textarea element (replaced with element).
-            * @default null
-            * @type HTMLElement
-            */
-            this.setAttributeConfig('textarea', {
-                value: null,
-                writeOnce: true
-            });
-            /**
-            * @config nodeChangeThreshold
-            * @description The number of seconds that need to be in between nodeChange processing
-            * @default 3
-            * @type Number
-            */            
-            this.setAttributeConfig('nodeChangeThreshold', {
-                value: attr.nodeChangeThreshold || 3,
-                validator: YAHOO.lang.isNumber
-            });
-            /**
-            * @config allowNoEdit
-            * @description Should the editor check for non-edit fields. It should be noted that this technique is not perfect. If the user does the right things, they will still be able to make changes.
-            * Such as highlighting an element below and above the content and hitting a toolbar button or a shortcut key.
-            * @default false
-            * @type Boolean
-            */            
-            this.setAttributeConfig('allowNoEdit', {
-                value: attr.allowNoEdit || false,
-                validator: YAHOO.lang.isBoolean
-            });
-            /**
-            * @config limitCommands
-            * @description Should the Editor limit the allowed execCommands to the ones available in the toolbar. If true, then execCommand and keyboard shortcuts will fail if they are not defined in the toolbar.
-            * @default false
-            * @type Boolean
-            */            
-            this.setAttributeConfig('limitCommands', {
-                value: attr.limitCommands || false,
-                validator: YAHOO.lang.isBoolean
-            });
-            /**
-            * @config element_cont
-            * @description Internal config for the editors container
-            * @default false
-            * @type HTMLElement
-            */
-            this.setAttributeConfig('element_cont', {
-                value: attr.element_cont
-            });
-            /**
-            * @private
-            * @config editor_wrapper
-            * @description The outter wrapper for the entire editor.
-            * @default null
-            * @type HTMLElement
-            */
-            this.setAttributeConfig('editor_wrapper', {
-                value: attr.editor_wrapper || null,
-                writeOnce: true
-            });
-            /**
-            * @attribute height
-            * @description The height of the editor iframe container, not including the toolbar..
-            * @default Best guessed size of the textarea, for best results use CSS to style the height of the textarea or pass it in as an argument
-            * @type String
-            */
-            this.setAttributeConfig('height', {
-                value: attr.height || Dom.getStyle(self.get('element'), 'height'),
-                method: function(height) {
-                    if (this._rendered) {
-                        //We have been rendered, change the height
-                        if (this.get('animate')) {
-                            var anim = new YAHOO.util.Anim(this.get('iframe').get('parentNode'), {
-                                height: {
-                                    to: parseInt(height, 10)
-                                }
-                            }, 0.5);
-                            anim.animate();
-                        } else {
-                            Dom.setStyle(this.get('iframe').get('parentNode'), 'height', height);
-                        }
-                    }
-                }
-            });
-            /**
-            * @config autoHeight
-            * @description Remove the scrollbars from the edit area and resize it to fit the content. It will not go any lower than the current config height.
-            * @default false
-            * @type Boolean || Number
-            */
-            this.setAttributeConfig('autoHeight', {
-                value: attr.autoHeight || false,
-                method: function(a) {
-                    if (a) {
-                        if (this.get('iframe')) {
-                            this.get('iframe').get('element').setAttribute('scrolling', 'no');
-                        }
-                        this.on('afterNodeChange', this._handleAutoHeight, this, true);
-                        this.on('editorKeyDown', this._handleAutoHeight, this, true);
-                        this.on('editorKeyPress', this._handleAutoHeight, this, true);
-                    } else {
-                        if (this.get('iframe')) {
-                            this.get('iframe').get('element').setAttribute('scrolling', 'auto');
-                        }
-                        this.unsubscribe('afterNodeChange', this._handleAutoHeight);
-                        this.unsubscribe('editorKeyDown', this._handleAutoHeight);
-                        this.unsubscribe('editorKeyPress', this._handleAutoHeight);
-                    }
-                }
-            });
-            /**
-            * @attribute width
-            * @description The width of the editor container.
-            * @default Best guessed size of the textarea, for best results use CSS to style the width of the textarea or pass it in as an argument
-            * @type String
-            */            
-            this.setAttributeConfig('width', {
-                value: attr.width || Dom.getStyle(this.get('element'), 'width'),
-                method: function(width) {
-                    if (this._rendered) {
-                        //We have been rendered, change the width
-                        if (this.get('animate')) {
-                            var anim = new YAHOO.util.Anim(this.get('element_cont').get('element'), {
-                                width: {
-                                    to: parseInt(width, 10)
-                                }
-                            }, 0.5);
-                            anim.animate();
-                        } else {
-                            this.get('element_cont').setStyle('width', width);
-                        }
-                    }
-                }
-            });
-                        
-            /**
-            * @attribute blankimage
-            * @description The URL for the image placeholder to put in when inserting an image.
-            * @default The yahooapis.com address for the current release + 'assets/blankimage.png'
-            * @type String
-            */            
-            this.setAttributeConfig('blankimage', {
-                value: attr.blankimage || this._getBlankImage()
-            });
-            /**
-            * @attribute css
-            * @description The Base CSS used to format the content of the editor
-            * @default <code><pre>html {
-                height: 95%;
-            }
-            body {
-                height: 100%;
-                padding: 7px; background-color: #fff; font:13px/1.22 arial,helvetica,clean,sans-serif;*font-size:small;*font:x-small;
-            }
-            a {
-                color: blue;
-                text-decoration: underline;
-                cursor: pointer;
-            }
-            .warning-localfile {
-                border-bottom: 1px dashed red !important;
-            }
-            .yui-busy {
-                cursor: wait !important;
-            }
-            img.selected { //Safari image selection
-                border: 2px dotted #808080;
-            }
-            img {
-                cursor: pointer !important;
-                border: none;
-            }
-            </pre></code>
-            * @type String
-            */            
-            this.setAttributeConfig('css', {
-                value: attr.css || this._defaultCSS,
-                writeOnce: true
-            });
-            /**
-            * @attribute html
-            * @description The default HTML to be written to the iframe document before the contents are loaded (Note that the DOCTYPE attr will be added at render item)
-            * @default This HTML requires a few things if you are to override:
-                <p><code>{TITLE}, {CSS}, {HIDDEN_CSS}, {EXTRA_CSS}</code> and <code>{CONTENT}</code> need to be there, they are passed to YAHOO.lang.substitute to be replace with other strings.<p>
-                <p><code>onload="document.body._rteLoaded = true;"</code> : the onload statement must be there or the editor will not finish loading.</p>
-                <code>
-                <pre>
-                &lt;html&gt;
-                    &lt;head&gt;
-                        &lt;title&gt;{TITLE}&lt;/title&gt;
-                        &lt;meta http-equiv="Content-Type" content="text/html; charset=UTF-8" /&gt;
-                        &lt;style&gt;
-                        {CSS}
-                        &lt;/style&gt;
-                        &lt;style&gt;
-                        {HIDDEN_CSS}
-                        &lt;/style&gt;
-                        &lt;style&gt;
-                        {EXTRA_CSS}
-                        &lt;/style&gt;
-                    &lt;/head&gt;
-                &lt;body onload="document.body._rteLoaded = true;"&gt;
-                {CONTENT}
-                &lt;/body&gt;
-                &lt;/html&gt;
-                </pre>
-                </code>
-            * @type String
-            */            
-            this.setAttributeConfig('html', {
-                value: attr.html || '<html><head><title>{TITLE}</title><meta http-equiv="Content-Type" content="text/html; charset=UTF-8" /><base href="' + this._baseHREF + '"><style>{CSS}</style><style>{HIDDEN_CSS}</style><style>{EXTRA_CSS}</style></head><body onload="document.body._rteLoaded = true;">{CONTENT}</body></html>',
-                writeOnce: true
-            });
-
-            /**
-            * @attribute extracss
-            * @description Extra user defined css to load after the default SimpleEditor CSS
-            * @default ''
-            * @type String
-            */            
-            this.setAttributeConfig('extracss', {
-                value: attr.extracss || '',
-                writeOnce: true
-            });
-
-            /**
-            * @attribute handleSubmit
-            * @description Config handles if the editor will attach itself to the textareas parent form's submit handler.
-            If it is set to true, the editor will attempt to attach a submit listener to the textareas parent form.
-            Then it will trigger the editors save handler and place the new content back into the text area before the form is submitted.
-            * @default false
-            * @type Boolean
-            */            
-            this.setAttributeConfig('handleSubmit', {
-                value: attr.handleSubmit || false,
-                method: function(exec) {
-                    if (this.get('element').form) {
-                        if (!this._formButtons) {
-                            this._formButtons = [];
-                        }
-                        if (exec) {
-                            Event.on(this.get('element').form, 'submit', this._handleFormSubmit, this, true);
-                            var i = this.get('element').form.getElementsByTagName('input');
-                            for (var s = 0; s < i.length; s++) {
-                                var type = i[s].getAttribute('type');
-                                if (type && (type.toLowerCase() == 'submit')) {
-                                    Event.on(i[s], 'click', this._handleFormButtonClick, this, true);
-                                    this._formButtons[this._formButtons.length] = i[s];
-                                }
-                            }
-                        } else {
-                            Event.removeListener(this.get('element').form, 'submit', this._handleFormSubmit);
-                            if (this._formButtons) {
-                                Event.removeListener(this._formButtons, 'click', this._handleFormButtonClick);
-                            }
-                        }
-                    }
-                }
-            });
-            /**
-            * @attribute disabled
-            * @description This will toggle the editor's disabled state. When the editor is disabled, designMode is turned off and a mask is placed over the iframe so no interaction can take place.
-            All Toolbar buttons are also disabled so they cannot be used.
-            * @default false
-            * @type Boolean
-            */
-
-            this.setAttributeConfig('disabled', {
-                value: false,
-                method: function(disabled) {
-                    if (this._rendered) {
-                        this._disableEditor(disabled);
-                    }
-                }
-            });
-            /**
-            * @config saveEl
-            * @description When save HTML is called, this element will be updated as well as the source of data.
-            * @default element
-            * @type HTMLElement
-            */
-            this.setAttributeConfig('saveEl', {
-                value: this.get('element')
-            });
-            /**
-            * @config toolbar_cont
-            * @description Internal config for the toolbars container
-            * @default false
-            * @type Boolean
-            */
-            this.setAttributeConfig('toolbar_cont', {
-                value: null,
-                writeOnce: true
-            });
-            /**
-            * @attribute toolbar
-            * @description The default toolbar config.
-            * @type Object
-            */            
-            this.setAttributeConfig('toolbar', {
-                value: attr.toolbar || this._defaultToolbar,
-                writeOnce: true,
-                method: function(toolbar) {
-                    if (!toolbar.buttonType) {
-                        toolbar.buttonType = this._defaultToolbar.buttonType;
-                    }
-                    this._defaultToolbar = toolbar;
-                }
-            });
-            /**
-            * @attribute animate
-            * @description Should the editor animate window movements
-            * @default false unless Animation is found, then true
-            * @type Boolean
-            */            
-            this.setAttributeConfig('animate', {
-                value: ((attr.animate) ? ((YAHOO.util.Anim) ? true : false) : false),
-                validator: function(value) {
-                    var ret = true;
-                    if (!YAHOO.util.Anim) {
-                        ret = false;
-                    }
-                    return ret;
-                }
-            });
-            /**
-            * @config panel
-            * @description A reference to the panel we are using for windows.
-            * @default false
-            * @type Boolean
-            */            
-            this.setAttributeConfig('panel', {
-                value: null,
-                writeOnce: true,
-                validator: function(value) {
-                    var ret = true;
-                    if (!YAHOO.widget.Overlay) {
-                        ret = false;
-                    }
-                    return ret;
-                }               
-            });
-            /**
-            * @attribute focusAtStart
-            * @description Should we focus the window when the content is ready?
-            * @default false
-            * @type Boolean
-            */            
-            this.setAttributeConfig('focusAtStart', {
-                value: attr.focusAtStart || false,
-                writeOnce: true,
-                method: function(fs) {
-                    if (fs) {
-                        this.on('editorContentLoaded', function() {
-                            var self = this;
-                            setTimeout(function() {
-                                self.focus.call(self);
-                                self.editorDirty = false;
-                            }, 400);
-                        }, this, true);
-                    }
-                }
-            });
-            /**
-            * @attribute dompath
-            * @description Toggle the display of the current Dom path below the editor
-            * @default false
-            * @type Boolean
-            */            
-            this.setAttributeConfig('dompath', {
-                value: attr.dompath || false,
-                method: function(dompath) {
-                    if (dompath && !this.dompath) {
-                        this.dompath = document.createElement('DIV');
-                        this.dompath.id = this.get('id') + '_dompath';
-                        Dom.addClass(this.dompath, 'dompath');
-                        this.get('element_cont').get('firstChild').appendChild(this.dompath);
-                        if (this.get('iframe')) {
-                            this._writeDomPath();
-                        }
-                    } else if (!dompath && this.dompath) {
-                        this.dompath.parentNode.removeChild(this.dompath);
-                        this.dompath = null;
-                    }
-                }
-            });
-            /**
-            * @attribute markup
-            * @description Should we try to adjust the markup for the following types: semantic, css, default or xhtml
-            * @default "semantic"
-            * @type String
-            */            
-            this.setAttributeConfig('markup', {
-                value: attr.markup || 'semantic',
-                validator: function(markup) {
-                    switch (markup.toLowerCase()) {
-                        case 'semantic':
-                        case 'css':
-                        case 'default':
-                        case 'xhtml':
-                        return true;
-                    }
-                    return false;
-                }
-            });
-            /**
-            * @attribute removeLineBreaks
-            * @description Should we remove linebreaks and extra spaces on cleanup
-            * @default false
-            * @type Boolean
-            */            
-            this.setAttributeConfig('removeLineBreaks', {
-                value: attr.removeLineBreaks || false,
-                validator: YAHOO.lang.isBoolean
-            });
-            
-            /**
-            * @config drag
-            * @description Set this config to make the Editor draggable, pass 'proxy' to make use YAHOO.util.DDProxy.
-            * @type {Boolean/String}
-            */
-            this.setAttributeConfig('drag', {
-                writeOnce: true,
-                value: attr.drag || false
-            });
-
-            /**
-            * @config resize
-            * @description Set this to true to make the Editor Resizable with YAHOO.util.Resize. The default config is available: myEditor._resizeConfig
-            * Animation will be ignored while performing this resize to allow for the dynamic change in size of the toolbar.
-            * @type Boolean
-            */
-            this.setAttributeConfig('resize', {
-                writeOnce: true,
-                value: attr.resize || false
-            });
-
-            /**
-            * @config filterWord
-            * @description Attempt to filter out MS Word HTML from the Editor's output.
-            * @type Boolean
-            */
-            this.setAttributeConfig('filterWord', {
-                value: attr.filterWord || false,
-                validator: YAHOO.lang.isBoolean
-            });
-
-        },
-        /**
-        * @private
-        * @method _getBlankImage
-        * @description Retrieves the full url of the image to use as the blank image.
-        * @return {String} The URL to the blank image
-        */
-        _getBlankImage: function() {
-            if (!this.DOMReady) {
-                this._queue[this._queue.length] = ['_getBlankImage', arguments];
-                return '';
-            }
-            var img = '';
-            if (!this._blankImageLoaded) {
-                if (YAHOO.widget.EditorInfo.blankImage) {
-                    this.set('blankimage', YAHOO.widget.EditorInfo.blankImage);
-                    this._blankImageLoaded = true;
-                } else {
-                    var div = document.createElement('div');
-                    div.style.position = 'absolute';
-                    div.style.top = '-9999px';
-                    div.style.left = '-9999px';
-                    div.className = this.CLASS_PREFIX + '-blankimage';
-                    document.body.appendChild(div);
-                    img = YAHOO.util.Dom.getStyle(div, 'background-image');
-                    img = img.replace('url(', '').replace(')', '').replace(/"/g, '');
-                    //Adobe AIR Code
-                    img = img.replace('app:/', '');             
-                    this.set('blankimage', img);
-                    this._blankImageLoaded = true;
-                    div.parentNode.removeChild(div);
-                    YAHOO.widget.EditorInfo.blankImage = img;
-                }
-            } else {
-                img = this.get('blankimage');
-            }
-            return img;
-        },
-        /**
-        * @private
-        * @method _handleAutoHeight
-        * @description Handles resizing the editor's height based on the content
-        */
-        _handleAutoHeight: function() {
-            var doc = this._getDoc(),
-                body = doc.body,
-                docEl = doc.documentElement;
-
-            var height = parseInt(Dom.getStyle(this.get('editor_wrapper'), 'height'), 10);
-            var newHeight = body.scrollHeight;
-            if (this.browser.webkit) {
-                newHeight = docEl.scrollHeight;
-            }
-            if (newHeight < parseInt(this.get('height'), 10)) {
-                newHeight = parseInt(this.get('height'), 10);
-            }
-            if ((height != newHeight) && (newHeight >= parseInt(this.get('height'), 10))) {   
-                var anim = this.get('animate');
-                this.set('animate', false);
-                this.set('height', newHeight + 'px');
-                this.set('animate', anim);
-                if (this.browser.ie) {
-                    //Internet Explorer needs this
-                    this.get('iframe').setStyle('height', '99%');
-                    this.get('iframe').setStyle('zoom', '1');
-                    var self = this;
-                    window.setTimeout(function() {
-                        self.get('iframe').setStyle('height', '100%');
-                    }, 1);
-                }
-            }
-        },
-        /**
-        * @private
-        * @property _formButtons
-        * @description Array of buttons that are in the Editor's parent form (for handleSubmit)
-        * @type Array
-        */
-        _formButtons: null,
-        /**
-        * @private
-        * @property _formButtonClicked
-        * @description The form button that was clicked to submit the form.
-        * @type HTMLElement
-        */
-        _formButtonClicked: null,
-        /**
-        * @private
-        * @method _handleFormButtonClick
-        * @description The click listener assigned to each submit button in the Editor's parent form.
-        * @param {Event} ev The click event
-        */
-        _handleFormButtonClick: function(ev) {
-            var tar = Event.getTarget(ev);
-            this._formButtonClicked = tar;
-        },
-        /**
-        * @private
-        * @method _handleFormSubmit
-        * @description Handles the form submission.
-        * @param {Object} ev The Form Submit Event
-        */
-        _handleFormSubmit: function(ev) {
-            this.saveHTML();
-
-            var form = this.get('element').form,
-                tar = this._formButtonClicked || false;
-
-            Event.removeListener(form, 'submit', this._handleFormSubmit);
-            if (YAHOO.env.ua.ie) {
-                //form.fireEvent("onsubmit");
-                if (tar && !tar.disabled) {
-                    tar.click();
-                }
-            } else {  // Gecko, Opera, and Safari
-                if (tar && !tar.disabled) {
-                    tar.click();
-                }
-                var oEvent = document.createEvent("HTMLEvents");
-                oEvent.initEvent("submit", true, true);
-                form.dispatchEvent(oEvent);
-                if (YAHOO.env.ua.webkit) {
-                    if (YAHOO.lang.isFunction(form.submit)) {
-                        form.submit();
-                    }
-                }
-            }
-            //2.6.0
-            //Removed this, not need since removing Safari 2.x
-            //Event.stopEvent(ev);
-        },
-        /**
-        * @private
-        * @method _handleFontSize
-        * @description Handles the font size button in the toolbar.
-        * @param {Object} o Object returned from Toolbar's buttonClick Event
-        */
-        _handleFontSize: function(o) {
-            var button = this.toolbar.getButtonById(o.button.id);
-            var value = button.get('label') + 'px';
-            this.execCommand('fontsize', value);
-            return false;
-        },
-        /**
-        * @private
-        * @description Handles the colorpicker buttons in the toolbar.
-        * @param {Object} o Object returned from Toolbar's buttonClick Event
-        */
-        _handleColorPicker: function(o) {
-            var cmd = o.button;
-            var value = '#' + o.color;
-            if ((cmd == 'forecolor') || (cmd == 'backcolor')) {
-                this.execCommand(cmd, value);
-            }
-        },
-        /**
-        * @private
-        * @method _handleAlign
-        * @description Handles the alignment buttons in the toolbar.
-        * @param {Object} o Object returned from Toolbar's buttonClick Event
-        */
-        _handleAlign: function(o) {
-            var cmd = null;
-            for (var i = 0; i < o.button.menu.length; i++) {
-                if (o.button.menu[i].value == o.button.value) {
-                    cmd = o.button.menu[i].value;
-                }
-            }
-            var value = this._getSelection();
-
-            this.execCommand(cmd, value);
-            return false;
-        },
-        /**
-        * @private
-        * @method _handleAfterNodeChange
-        * @description Fires after a nodeChange happens to setup the things that where reset on the node change (button state).
-        */
-        _handleAfterNodeChange: function() {
-            var path = this._getDomPath(),
-                elm = null,
-                family = null,
-                fontsize = null,
-                validFont = false,
-                fn_button = this.toolbar.getButtonByValue('fontname'),
-                fs_button = this.toolbar.getButtonByValue('fontsize'),
-                hd_button = this.toolbar.getButtonByValue('heading');
-
-            for (var i = 0; i < path.length; i++) {
-                elm = path[i];
-
-                var tag = elm.tagName.toLowerCase();
-
-
-                if (elm.getAttribute('tag')) {
-                    tag = elm.getAttribute('tag');
-                }
-
-                family = elm.getAttribute('face');
-                if (Dom.getStyle(elm, 'font-family')) {
-                    family = Dom.getStyle(elm, 'font-family');
-                    //Adobe AIR Code
-                    family = family.replace(/'/g, '');                    
-                }
-
-                if (tag.substring(0, 1) == 'h') {
-                    if (hd_button) {
-                        for (var h = 0; h < hd_button._configs.menu.value.length; h++) {
-                            if (hd_button._configs.menu.value[h].value.toLowerCase() == tag) {
-                                hd_button.set('label', hd_button._configs.menu.value[h].text);
-                            }
-                        }
-                        this._updateMenuChecked('heading', tag);
-                    }
-                }
-            }
-
-            if (fn_button) {
-                for (var b = 0; b < fn_button._configs.menu.value.length; b++) {
-                    if (family && fn_button._configs.menu.value[b].text.toLowerCase() == family.toLowerCase()) {
-                        validFont = true;
-                        family = fn_button._configs.menu.value[b].text; //Put the proper menu name in the button
-                    }
-                }
-                if (!validFont) {
-                    family = fn_button._configs.label._initialConfig.value;
-                }
-                var familyLabel = '<span class="yui-toolbar-fontname-' + this._cleanClassName(family) + '">' + family + '</span>';
-                if (fn_button.get('label') != familyLabel) {
-                    fn_button.set('label', familyLabel);
-                    this._updateMenuChecked('fontname', family);
-                }
-            }
-
-            if (fs_button) {
-                fontsize = parseInt(Dom.getStyle(elm, 'fontSize'), 10);
-                if ((fontsize === null) || isNaN(fontsize)) {
-                    fontsize = fs_button._configs.label._initialConfig.value;
-                }
-                fs_button.set('label', ''+fontsize);
-            }
-            
-            if (!this._isElement(elm, 'body') && !this._isElement(elm, 'img')) {
-                this.toolbar.enableButton(fn_button);
-                this.toolbar.enableButton(fs_button);
-                this.toolbar.enableButton('forecolor');
-                this.toolbar.enableButton('backcolor');
-            }
-            if (this._isElement(elm, 'img')) {
-                if (YAHOO.widget.Overlay) {
-                    this.toolbar.enableButton('createlink');
-                }
-            }
-            if (this._hasParent(elm, 'blockquote')) {
-                this.toolbar.selectButton('indent');
-                this.toolbar.disableButton('indent');
-                this.toolbar.enableButton('outdent');
-            }
-            if (this._hasParent(elm, 'ol') || this._hasParent(elm, 'ul')) {
-                this.toolbar.disableButton('indent');
-            }
-            this._lastButton = null;
-            
-        },
-        /**
-        * @private
-        * @method _handleInsertImageClick
-        * @description Opens the Image Properties Window when the insert Image button is clicked or an Image is Double Clicked.
-        */
-        _handleInsertImageClick: function() {
-            if (this.get('limitCommands')) {
-                if (!this.toolbar.getButtonByValue('insertimage')) {
-                    YAHOO.log('Toolbar Button for (insertimage) was not found, skipping exec.', 'info', 'SimpleEditor');
-                    return false;
-                }
-            }
-        
-            this.toolbar.set('disabled', true); //Disable the toolbar when the prompt is showing
-            var _handleAEC = function() {
-                var el = this.currentElement[0],
-                    src = 'http://';
-                if (!el) {
-                    el = this._getSelectedElement();
-                }
-                if (el) {
-                    if (el.getAttribute('src')) {
-                        src = el.getAttribute('src', 2);
-                        if (src.indexOf(this.get('blankimage')) != -1) {
-                            src = this.STR_IMAGE_HERE;
-                        }
-                    }
-                }
-                var str = prompt(this.STR_IMAGE_URL + ': ', src);
-                if ((str !== '') && (str !== null)) {
-                    el.setAttribute('src', str);
-                } else if (str === '') {
-                    el.parentNode.removeChild(el);
-                    this.currentElement = [];
-                    this.nodeChange();
-                } else if ((str === null)) {
-                    src = el.getAttribute('src', 2);
-                    if (src.indexOf(this.get('blankimage')) != -1) {
-                        el.parentNode.removeChild(el);
-                        this.currentElement = [];
-                        this.nodeChange();
-                    }
-                }
-                this.closeWindow();
-                this.toolbar.set('disabled', false);
-                this.unsubscribe('afterExecCommand', _handleAEC, this, true);
-            };
-            this.on('afterExecCommand', _handleAEC, this, true);
-        },
-        /**
-        * @private
-        * @method _handleInsertImageWindowClose
-        * @description Handles the closing of the Image Properties Window.
-        */
-        _handleInsertImageWindowClose: function() {
-            this.nodeChange();
-        },
-        /**
-        * @private
-        * @method _isLocalFile
-        * @param {String} url THe url/string to check
-        * @description Checks to see if a string (href or img src) is possibly a local file reference..
-        */
-        _isLocalFile: function(url) {
-            if ((url) && (url !== '') && ((url.indexOf('file:/') != -1) || (url.indexOf(':\\') != -1))) {
-                return true;
-            }
-            return false;
-        },
-        /**
-        * @private
-        * @method _handleCreateLinkClick
-        * @description Handles the opening of the Link Properties Window when the Create Link button is clicked or an href is doubleclicked.
-        */
-        _handleCreateLinkClick: function() {
-            if (this.get('limitCommands')) {
-                if (!this.toolbar.getButtonByValue('createlink')) {
-                    YAHOO.log('Toolbar Button for (createlink) was not found, skipping exec.', 'info', 'SimpleEditor');
-                    return false;
-                }
-            }
-        
-            this.toolbar.set('disabled', true); //Disable the toolbar when the prompt is showing
-
-            var _handleAEC = function() {
-                var el = this.currentElement[0],
-                    url = '';
-
-                if (el) {
-                    if (el.getAttribute('href', 2) !== null) {
-                        url = el.getAttribute('href', 2);
-                    }
-                }
-                var str = prompt(this.STR_LINK_URL + ': ', url);
-                if ((str !== '') && (str !== null)) {
-                    var urlValue = str;
-                    if ((urlValue.indexOf(':/'+'/') == -1) && (urlValue.substring(0,1) != '/') && (urlValue.substring(0, 6).toLowerCase() != 'mailto')) {
-                        if ((urlValue.indexOf('@') != -1) && (urlValue.substring(0, 6).toLowerCase() != 'mailto')) {
-                            //Found an @ sign, prefix with mailto:
-                            urlValue = 'mailto:' + urlValue;
-                        } else {
-                            /* :// not found adding */
-                            if (urlValue.substring(0, 1) != '#') {
-                                //urlValue = 'http:/'+'/' + urlValue;
-                            }
-                        }
-                    }
-                    el.setAttribute('href', urlValue);
-                } else if (str !== null) {
-                    var _span = this._getDoc().createElement('span');
-                    _span.innerHTML = el.innerHTML;
-                    Dom.addClass(_span, 'yui-non');
-                    el.parentNode.replaceChild(_span, el);
-                }
-                this.closeWindow();
-                this.toolbar.set('disabled', false);
-                this.unsubscribe('afterExecCommand', _handleAEC, this, true);
-            };
-            this.on('afterExecCommand', _handleAEC, this);
-
-        },
-        /**
-        * @private
-        * @method _handleCreateLinkWindowClose
-        * @description Handles the closing of the Link Properties Window.
-        */
-        _handleCreateLinkWindowClose: function() {
-            this.nodeChange();
-            this.currentElement = [];
-        },
-        /**
-        * @method render
-        * @description Calls the private method _render in a setTimeout to allow for other things on the page to continue to load.
-        */
-        render: function() {
-            if (this._rendered) {
-                return false;
-            }
-            YAHOO.log('Render', 'info', 'SimpleEditor');
-            if (!this.DOMReady) {
-                YAHOO.log('!DOMReady', 'info', 'SimpleEditor');
-                this._queue[this._queue.length] = ['render', arguments];
-                return false;
-            }
-            if (this.get('element')) {
-                if (this.get('element').tagName) {
-                    this._textarea = true;
-                    if (this.get('element').tagName.toLowerCase() !== 'textarea') {
-                        this._textarea = false;
-                    }
-                } else {
-                    YAHOO.log('No Valid Element', 'error', 'SimpleEditor');
-                    return false;
-                }
-            } else {
-                YAHOO.log('No Element', 'error', 'SimpleEditor');
-                return false;
-            }
-            this._rendered = true;
-            var self = this;
-            window.setTimeout(function() {
-                self._render.call(self);
-            }, 4);
-        },
-        /**
-        * @private
-        * @method _render
-        * @description Causes the toolbar and the editor to render and replace the textarea.
-        */
-        _render: function() {
-            var self = this;
-            this.set('textarea', this.get('element'));
-
-            this.get('element_cont').setStyle('display', 'none');
-            this.get('element_cont').addClass(this.CLASS_CONTAINER);
-            
-            this.set('iframe', this._createIframe());
-
-            window.setTimeout(function() {
-                self._setInitialContent.call(self);
-            }, 10);
-
-            this.get('editor_wrapper').appendChild(this.get('iframe').get('element'));
-
-            if (this.get('disabled')) {
-                this._disableEditor(true);
-            }
-
-            var tbarConf = this.get('toolbar');
-            //Create Toolbar instance
-            if (tbarConf instanceof Toolbar) {
-                this.toolbar = tbarConf;
-                //Set the toolbar to disabled until content is loaded
-                this.toolbar.set('disabled', true);
-            } else {
-                //Set the toolbar to disabled until content is loaded
-                tbarConf.disabled = true;
-                this.toolbar = new Toolbar(this.get('toolbar_cont'), tbarConf);
-            }
-
-            YAHOO.log('fireEvent::toolbarLoaded', 'info', 'SimpleEditor');
-            this.fireEvent('toolbarLoaded', { type: 'toolbarLoaded', target: this.toolbar });
-
-            
-            this.toolbar.on('toolbarCollapsed', function() {
-                if (this.currentWindow) {
-                    this.moveWindow();
-                }
-            }, this, true);
-            this.toolbar.on('toolbarExpanded', function() {
-                if (this.currentWindow) {
-                    this.moveWindow();
-                }
-            }, this, true);
-            this.toolbar.on('fontsizeClick', this._handleFontSize, this, true);
-            
-            this.toolbar.on('colorPickerClicked', function(o) {
-                this._handleColorPicker(o);
-                return false; //Stop the buttonClick event
-            }, this, true);
-
-            this.toolbar.on('alignClick', this._handleAlign, this, true);
-            this.on('afterNodeChange', this._handleAfterNodeChange, this, true);
-            this.toolbar.on('insertimageClick', this._handleInsertImageClick, this, true);
-            this.on('windowinsertimageClose', this._handleInsertImageWindowClose, this, true);
-            this.toolbar.on('createlinkClick', this._handleCreateLinkClick, this, true);
-            this.on('windowcreatelinkClose', this._handleCreateLinkWindowClose, this, true);
-            
-
-            //Replace Textarea with editable area
-            this.get('parentNode').replaceChild(this.get('element_cont').get('element'), this.get('element'));
-
-            
-            this.setStyle('visibility', 'hidden');
-            this.setStyle('position', 'absolute');
-            this.setStyle('top', '-9999px');
-            this.setStyle('left', '-9999px');
-            this.get('element_cont').appendChild(this.get('element'));
-            this.get('element_cont').setStyle('display', 'block');
-
-
-            Dom.addClass(this.get('iframe').get('parentNode'), this.CLASS_EDITABLE_CONT);
-            this.get('iframe').addClass(this.CLASS_EDITABLE);
-
-            //Set height and width of editor container
-            this.get('element_cont').setStyle('width', this.get('width'));
-            Dom.setStyle(this.get('iframe').get('parentNode'), 'height', this.get('height'));
-
-            this.get('iframe').setStyle('width', '100%'); //WIDTH
-            this.get('iframe').setStyle('height', '100%');
-
-            this._setupDD();
-
-            window.setTimeout(function() {
-                self._setupAfterElement.call(self);
-            }, 0);
-            this.fireEvent('afterRender', { type: 'afterRender', target: this });
-        },
-        /**
-        * @method execCommand
-        * @param {String} action The "execCommand" action to try to execute (Example: bold, insertimage, inserthtml)
-        * @param {String} value (optional) The value for a given action such as action: fontname value: 'Verdana'
-        * @description This method attempts to try and level the differences in the various browsers and their support for execCommand actions
-        */
-        execCommand: function(action, value) {
-            var beforeExec = this.fireEvent('beforeExecCommand', { type: 'beforeExecCommand', target: this, args: arguments });
-            if ((beforeExec === false) || (this.STOP_EXEC_COMMAND)) {
-                this.STOP_EXEC_COMMAND = false;
-                return false;
-            }
-            this._lastCommand = action;
-            this._setMarkupType(action);
-            if (this.browser.ie) {
-                this._getWindow().focus();
-            }
-            var exec = true;
-            
-            if (this.get('limitCommands')) {
-                if (!this.toolbar.getButtonByValue(action)) {
-                    YAHOO.log('Toolbar Button for (' + action + ') was not found, skipping exec.', 'info', 'SimpleEditor');
-                    exec = false;
-                }
-            }
-
-            this.editorDirty = true;
-            
-            if ((typeof this['cmd_' + action.toLowerCase()] == 'function') && exec) {
-                YAHOO.log('Found execCommand override method: (cmd_' + action.toLowerCase() + ')', 'info', 'SimpleEditor');
-                var retValue = this['cmd_' + action.toLowerCase()](value);
-                exec = retValue[0];
-                if (retValue[1]) {
-                    action = retValue[1];
-                }
-                if (retValue[2]) {
-                    value = retValue[2];
-                }
-            }
-            if (exec) {
-                YAHOO.log('execCommand::(' + action + '), (' + value + ')', 'info', 'SimpleEditor');
-                try {
-                    this._getDoc().execCommand(action, false, value);
-                } catch(e) {
-                    YAHOO.log('execCommand Failed', 'error', 'SimpleEditor');
-                }
-            } else {
-                YAHOO.log('OVERRIDE::execCommand::(' + action + '),(' + value + ') skipped', 'warn', 'SimpleEditor');
-            }
-            this.on('afterExecCommand', function() {
-                this.unsubscribeAll('afterExecCommand');
-                this.nodeChange();
-            }, this, true);
-            this.fireEvent('afterExecCommand', { type: 'afterExecCommand', target: this });
-            
-        },
-    /* {{{  Command Overrides */
-
-        /**
-        * @method cmd_bold
-        * @param value Value passed from the execCommand method
-        * @description This is an execCommand override method. It is called from execCommand when the execCommand('bold') is used.
-        */
-        cmd_bold: function(value) {
-            if (!this.browser.webkit) {
-                var el = this._getSelectedElement();
-                if (el && this._isElement(el, 'span') && this._hasSelection()) {
-                    if (el.style.fontWeight == 'bold') {
-                        el.style.fontWeight = '';
-                        var b = this._getDoc().createElement('b'),
-                        par = el.parentNode;
-                        par.replaceChild(b, el);
-                        b.appendChild(el);
-                    }
-                }
-            }
-            return [true];
-        },
-        /**
-        * @method cmd_italic
-        * @param value Value passed from the execCommand method
-        * @description This is an execCommand override method. It is called from execCommand when the execCommand('italic') is used.
-        */
-
-        cmd_italic: function(value) {
-            if (!this.browser.webkit) {
-                var el = this._getSelectedElement();
-                if (el && this._isElement(el, 'span') && this._hasSelection()) {
-                    if (el.style.fontStyle == 'italic') {
-                        el.style.fontStyle = '';
-                        var i = this._getDoc().createElement('i'),
-                        par = el.parentNode;
-                        par.replaceChild(i, el);
-                        i.appendChild(el);
-                    }
-                }
-            }
-            return [true];
-        },
-
-
-        /**
-        * @method cmd_underline
-        * @param value Value passed from the execCommand method
-        * @description This is an execCommand override method. It is called from execCommand when the execCommand('underline') is used.
-        */
-        cmd_underline: function(value) {
-            if (!this.browser.webkit) {
-                var el = this._getSelectedElement();
-                if (el && this._isElement(el, 'span')) {
-                    if (el.style.textDecoration == 'underline') {
-                        el.style.textDecoration = 'none';
-                    } else {
-                        el.style.textDecoration = 'underline';
-                    }
-                    return [false];
-                }
-            }
-            return [true];
-        },
-        /**
-        * @method cmd_backcolor
-        * @param value Value passed from the execCommand method
-        * @description This is an execCommand override method. It is called from execCommand when the execCommand('backcolor') is used.
-        */
-        cmd_backcolor: function(value) {
-            var exec = true,
-                el = this._getSelectedElement(),
-                action = 'backcolor';
-
-            if (this.browser.gecko || this.browser.opera) {
-                this._setEditorStyle(true);
-                action = 'hilitecolor';
-            }
-
-            if (!this._isElement(el, 'body') && !this._hasSelection()) {
-                el.style.backgroundColor = value;
-                this._selectNode(el);
-                exec = false;
-            } else {
-                if (this.get('insert')) {
-                    el = this._createInsertElement({ backgroundColor: value });
-                } else {
-                    this._createCurrentElement('span', { backgroundColor: value, color: el.style.color, fontSize: el.style.fontSize, fontFamily: el.style.fontFamily });
-                    this._selectNode(this.currentElement[0]);
-                }
-                exec = false;
-            }
-
-            return [exec, action];
-        },
-        /**
-        * @method cmd_forecolor
-        * @param value Value passed from the execCommand method
-        * @description This is an execCommand override method. It is called from execCommand when the execCommand('forecolor') is used.
-        */
-        cmd_forecolor: function(value) {
-            var exec = true,
-                el = this._getSelectedElement();
-                
-                if (!this._isElement(el, 'body') && !this._hasSelection()) {
-                    Dom.setStyle(el, 'color', value);
-                    this._selectNode(el);
-                    exec = false;
-                } else {
-                    if (this.get('insert')) {
-                        el = this._createInsertElement({ color: value });
-                    } else {
-                        this._createCurrentElement('span', { color: value, fontSize: el.style.fontSize, fontFamily: el.style.fontFamily, backgroundColor: el.style.backgroundColor });
-                        this._selectNode(this.currentElement[0]);
-                    }
-                    exec = false;
-                }
-                return [exec];
-        },
-        /**
-        * @method cmd_unlink
-        * @param value Value passed from the execCommand method
-        * @description This is an execCommand override method. It is called from execCommand when the execCommand('unlink') is used.
-        */
-        cmd_unlink: function(value) {
-            this._swapEl(this.currentElement[0], 'span', function(el) {
-                el.className = 'yui-non';
-            });
-            return [false];
-        },
-        /**
-        * @method cmd_createlink
-        * @param value Value passed from the execCommand method
-        * @description This is an execCommand override method. It is called from execCommand when the execCommand('createlink') is used.
-        */
-        cmd_createlink: function(value) {
-            var el = this._getSelectedElement(), _a = null;
-            if (this._hasParent(el, 'a')) {
-                this.currentElement[0] = this._hasParent(el, 'a');
-            } else if (this._isElement(el, 'li')) {
-                _a = this._getDoc().createElement('a');
-                _a.innerHTML = el.innerHTML;
-                el.innerHTML = '';
-                el.appendChild(_a);
-                this.currentElement[0] = _a;
-            } else if (!this._isElement(el, 'a')) {
-                this._createCurrentElement('a');
-                _a = this._swapEl(this.currentElement[0], 'a');
-                this.currentElement[0] = _a;
-            } else {
-                this.currentElement[0] = el;
-            }
-            return [false];
-        },
-        /**
-        * @method cmd_insertimage
-        * @param value Value passed from the execCommand method
-        * @description This is an execCommand override method. It is called from execCommand when the execCommand('insertimage') is used.
-        */
-        cmd_insertimage: function(value) {
-            var exec = true, _img = null, action = 'insertimage',
-                el = this._getSelectedElement();
-
-            if (value === '') {
-                value = this.get('blankimage');
-            }
-
-            /*
-            * @knownissue Safari Cursor Position
-            * @browser Safari 2.x
-            * @description The issue here is that we have no way of knowing where the cursor position is
-            * inside of the iframe, so we have to place the newly inserted data in the best place that we can.
-            */
-            
-            YAHOO.log('InsertImage: ' + el.tagName, 'info', 'SimpleEditor');
-            if (this._isElement(el, 'img')) {
-                this.currentElement[0] = el;
-                exec = false;
-            } else {
-                if (this._getDoc().queryCommandEnabled(action)) {
-                    this._getDoc().execCommand(action, false, value);
-                    var imgs = this._getDoc().getElementsByTagName('img');
-                    for (var i = 0; i < imgs.length; i++) {
-                        if (!YAHOO.util.Dom.hasClass(imgs[i], 'yui-img')) {
-                            YAHOO.util.Dom.addClass(imgs[i], 'yui-img');
-                            this.currentElement[0] = imgs[i];
-                        }
-                    }
-                    exec = false;
-                } else {
-                    if (el == this._getDoc().body) {
-                        _img = this._getDoc().createElement('img');
-                        _img.setAttribute('src', value);
-                        YAHOO.util.Dom.addClass(_img, 'yui-img');
-                        this._getDoc().body.appendChild(_img);
-                    } else {
-                        this._createCurrentElement('img');
-                        _img = this._getDoc().createElement('img');
-                        _img.setAttribute('src', value);
-                        YAHOO.util.Dom.addClass(_img, 'yui-img');
-                        this.currentElement[0].parentNode.replaceChild(_img, this.currentElement[0]);
-                    }
-                    this.currentElement[0] = _img;
-                    exec = false;
-                }
-            }
-            return [exec];
-        },
-        /**
-        * @method cmd_inserthtml
-        * @param value Value passed from the execCommand method
-        * @description This is an execCommand override method. It is called from execCommand when the execCommand('inserthtml') is used.
-        */
-        cmd_inserthtml: function(value) {
-            var exec = true, action = 'inserthtml', _span = null, _range = null;
-            /*
-            * @knownissue Safari cursor position
-            * @browser Safari 2.x
-            * @description The issue here is that we have no way of knowing where the cursor position is
-            * inside of the iframe, so we have to place the newly inserted data in the best place that we can.
-            */
-            if (this.browser.webkit && !this._getDoc().queryCommandEnabled(action)) {
-                YAHOO.log('More Safari DOM tricks (inserthtml)', 'info', 'EditorSafari');
-                this._createCurrentElement('img');
-                _span = this._getDoc().createElement('span');
-                _span.innerHTML = value;
-                this.currentElement[0].parentNode.replaceChild(_span, this.currentElement[0]);
-                exec = false;
-            } else if (this.browser.ie) {
-                _range = this._getRange();
-                if (_range.item) {
-                    _range.item(0).outerHTML = value;
-                } else {
-                    _range.pasteHTML(value);
-                }
-                exec = false;                    
-            }
-            return [exec];
-        },
-        /**
-        * @method cmd_list
-        * @param tag The tag of the list you want to create (eg, ul or ol)
-        * @description This is a combined execCommand override method. It is called from the cmd_insertorderedlist and cmd_insertunorderedlist methods.
-        */
-        cmd_list: function(tag) {
-            var exec = true, list = null, li = 0, el = null, str = '',
-                selEl = this._getSelectedElement(), action = 'insertorderedlist';
-                if (tag == 'ul') {
-                    action = 'insertunorderedlist';
-                }
-            /*
-            * @knownissue Safari 2.+ doesn't support ordered and unordered lists
-            * @browser Safari 2.x
-            * The issue with this workaround is that when applied to a set of text
-            * that has BR's in it, Safari may or may not pick up the individual items as
-            * list items. This is fixed in WebKit (Safari 3)
-            * 2.6.0: Seems there are still some issues with List Creation and Safari 3, reverting to previously working Safari 2.x code
-            */
-            //if ((this.browser.webkit && !this._getDoc().queryCommandEnabled(action))) {
-            if ((this.browser.webkit && !this.browser.webkit4) || (this.browser.opera)) {
-                if (this._isElement(selEl, 'li') && this._isElement(selEl.parentNode, tag)) {
-                    YAHOO.log('We already have a list, undo it', 'info', 'SimpleEditor');
-                    el = selEl.parentNode;
-                    list = this._getDoc().createElement('span');
-                    YAHOO.util.Dom.addClass(list, 'yui-non');
-                    str = '';
-                    var lis = el.getElementsByTagName('li'), p_tag = ((this.browser.opera && this.get('ptags')) ? 'p' : 'div');
-                    for (li = 0; li < lis.length; li++) {
-                        str += '<' + p_tag + '>' + lis[li].innerHTML + '</' + p_tag + '>';
-                    }
-                    list.innerHTML = str;
-                    this.currentElement[0] = el;
-                    this.currentElement[0].parentNode.replaceChild(list, this.currentElement[0]);
-                } else {
-                    YAHOO.log('Create list item', 'info', 'SimpleEditor');
-                    this._createCurrentElement(tag.toLowerCase());
-                    list = this._getDoc().createElement(tag);
-                    for (li = 0; li < this.currentElement.length; li++) {
-                        var newli = this._getDoc().createElement('li');
-                        newli.innerHTML = this.currentElement[li].innerHTML + '<span class="yui-non">&nbsp;</span>&nbsp;';
-                        list.appendChild(newli);
-                        if (li > 0) {
-                            this.currentElement[li].parentNode.removeChild(this.currentElement[li]);
-                        }
-                    }
-                    var b_tag = ((this.browser.opera) ? '<BR>' : '<br>'),
-                    items = list.firstChild.innerHTML.split(b_tag), i, item;
-                    if (items.length > 0) {
-                        list.innerHTML = '';
-                        for (i = 0; i < items.length; i++) {
-                            item = this._getDoc().createElement('li');
-                            item.innerHTML = items[i];
-                            list.appendChild(item);
-                        }
-                    }
-
-                    this.currentElement[0].parentNode.replaceChild(list, this.currentElement[0]);
-                    this.currentElement[0] = list;
-                    var _h = this.currentElement[0].firstChild;
-                    _h = Dom.getElementsByClassName('yui-non', 'span', _h)[0];
-                    if (this.browser.webkit) {
-                        this._getSelection().setBaseAndExtent(_h, 1, _h, _h.innerText.length);
-                    }
-                }
-                exec = false;
-            } else {
-                el = this._getSelectedElement();
-                YAHOO.log(el.tagName);
-                if (this._isElement(el, 'li') && this._isElement(el.parentNode, tag) || (this.browser.ie && this._isElement(this._getRange().parentElement, 'li')) || (this.browser.ie && this._isElement(el, 'ul')) || (this.browser.ie && this._isElement(el, 'ol'))) { //we are in a list..
-                    YAHOO.log('We already have a list, undo it', 'info', 'SimpleEditor');
-                    if (this.browser.ie) {
-                        if ((this.browser.ie && this._isElement(el, 'ul')) || (this.browser.ie && this._isElement(el, 'ol'))) {
-                            el = el.getElementsByTagName('li')[0];
-                        }
-                        YAHOO.log('Undo IE', 'info', 'SimpleEditor');
-                        str = '';
-                        var lis2 = el.parentNode.getElementsByTagName('li');
-                        for (var j = 0; j < lis2.length; j++) {
-                            str += lis2[j].innerHTML + '<br>';
-                        }
-                        var newEl = this._getDoc().createElement('span');
-                        newEl.innerHTML = str;
-                        el.parentNode.parentNode.replaceChild(newEl, el.parentNode);
-                    } else {
-                        this.nodeChange();
-                        this._getDoc().execCommand(action, '', el.parentNode);
-                        this.nodeChange();
-                    }
-                    exec = false;
-                }
-                if (this.browser.opera) {
-                    var self = this;
-                    window.setTimeout(function() {
-                        var liso = self._getDoc().getElementsByTagName('li');
-                        for (var i = 0; i < liso.length; i++) {
-                            if (liso[i].innerHTML.toLowerCase() == '<br>') {
-                                liso[i].parentNode.parentNode.removeChild(liso[i].parentNode);
-                            }
-                        }
-                    },30);
-                }
-                if (this.browser.ie && exec) {
-                    var html = '';
-                    if (this._getRange().html) {
-                        html = '<li>' + this._getRange().html+ '</li>';
-                    } else {
-                        var t = this._getRange().text.split('\n');
-                        if (t.length > 1) {
-                            html = '';
-                            for (var ie = 0; ie < t.length; ie++) {
-                                html += '<li>' + t[ie] + '</li>';
-                            }
-                        } else {
-                            var txt = this._getRange().text;
-                            if (txt === '') {
-                                html = '<li id="new_list_item">' + txt + '</li>';
-                            } else {
-                                html = '<li>' + txt + '</li>';
-                            }
-                        }
-                    }
-                    this._getRange().pasteHTML('<' + tag + '>' + html + '</' + tag + '>');
-                    var new_item = this._getDoc().getElementById('new_list_item');
-                    if (new_item) {
-                        var range = this._getDoc().body.createTextRange();
-                        range.moveToElementText(new_item);
-                        range.collapse(false);
-                        range.select();                       
-                        new_item.id = '';
-                    }
-                    exec = false;
-                }
-            }
-            return exec;
-        },
-        /**
-        * @method cmd_insertorderedlist
-        * @param value Value passed from the execCommand method
-        * @description This is an execCommand override method. It is called from execCommand when the execCommand('insertorderedlist ') is used.
-        */
-        cmd_insertorderedlist: function(value) {
-            return [this.cmd_list('ol')];
-        },
-        /**
-        * @method cmd_insertunorderedlist 
-        * @param value Value passed from the execCommand method
-        * @description This is an execCommand override method. It is called from execCommand when the execCommand('insertunorderedlist') is used.
-        */
-        cmd_insertunorderedlist: function(value) {
-            return [this.cmd_list('ul')];
-        },
-        /**
-        * @method cmd_fontname
-        * @param value Value passed from the execCommand method
-        * @description This is an execCommand override method. It is called from execCommand when the execCommand('fontname') is used.
-        */
-        cmd_fontname: function(value) {
-            var exec = true,
-                selEl = this._getSelectedElement();
-
-            this.currentFont = value;
-            if (selEl && selEl.tagName && !this._hasSelection() && !this._isElement(selEl, 'body') && !this.get('insert')) {
-                YAHOO.util.Dom.setStyle(selEl, 'font-family', value);
-                exec = false;
-            } else if (this.get('insert') && !this._hasSelection()) {
-                YAHOO.log('No selection and no selected element and we are in insert mode', 'info', 'SimpleEditor');
-                var el = this._createInsertElement({ fontFamily: value });
-                exec = false;
-            }
-            return [exec];
-        },
-        /**
-        * @method cmd_fontsize
-        * @param value Value passed from the execCommand method
-        * @description This is an execCommand override method. It is called from execCommand when the execCommand('fontsize') is used.
-        */
-        cmd_fontsize: function(value) {
-            var el = null, go = true;
-            el = this._getSelectedElement();
-            if (this.browser.webkit) {
-                if (this.currentElement[0]) {
-                    if (el == this.currentElement[0]) {
-                        go = false;
-                        YAHOO.util.Dom.setStyle(el, 'fontSize', value);
-                        this._selectNode(el);
-                        this.currentElement[0] = el;
-                    }
-                }
-            }
-            if (go) {
-                if (!this._isElement(this._getSelectedElement(), 'body') && (!this._hasSelection())) {
-                    el = this._getSelectedElement();
-                    YAHOO.util.Dom.setStyle(el, 'fontSize', value);
-                    if (this.get('insert') && this.browser.ie) {
-                        var r = this._getRange();
-                        r.collapse(false);
-                        r.select();
-                    } else {
-                        this._selectNode(el);
-                    }
-                } else if (this.currentElement && (this.currentElement.length > 0) && (!this._hasSelection()) && (!this.get('insert'))) {
-                    YAHOO.util.Dom.setStyle(this.currentElement, 'fontSize', value);
-                } else {
-                    if (this.get('insert') && !this._hasSelection()) {
-                        el = this._createInsertElement({ fontSize: value });
-                        this.currentElement[0] = el;
-                        this._selectNode(this.currentElement[0]);
-                    } else {
-                        this._createCurrentElement('span', {'fontSize': value, fontFamily: el.style.fontFamily, color: el.style.color, backgroundColor: el.style.backgroundColor });
-                        this._selectNode(this.currentElement[0]);
-                    }
-                }
-            }
-            return [false];
-        },
-    /* }}} */
-        /**
-        * @private
-        * @method _swapEl
-        * @param {HTMLElement} el The element to swap with
-        * @param {String} tagName The tagname of the element that you wish to create
-        * @param {Function} callback (optional) A function to run on the element after it is created, but before it is replaced. An element reference is passed to this function.
-        * @description This function will create a new element in the DOM and populate it with the contents of another element. Then it will assume it's place.
-        */
-        _swapEl: function(el, tagName, callback) {
-            var _el = this._getDoc().createElement(tagName);
-            if (el) {
-                _el.innerHTML = el.innerHTML;
-            }
-            if (typeof callback == 'function') {
-                callback.call(this, _el);
-            }
-            if (el) {
-                el.parentNode.replaceChild(_el, el);
-            }
-            return _el;
-        },
-        /**
-        * @private
-        * @method _createInsertElement
-        * @description Creates a new "currentElement" then adds some text (and other things) to make it selectable and stylable. Then the user can continue typing.
-        * @param {Object} css (optional) Object literal containing styles to apply to the new element.
-        * @return {HTMLElement}
-        */
-        _createInsertElement: function(css) {
-            this._createCurrentElement('span', css);
-            var el = this.currentElement[0];
-            if (this.browser.webkit) {
-                //Little Safari Hackery here..
-                el.innerHTML = '<span class="yui-non">&nbsp;</span>';
-                el = el.firstChild;
-                this._getSelection().setBaseAndExtent(el, 1, el, el.innerText.length);                    
-            } else if (this.browser.ie || this.browser.opera) {
-                el.innerHTML = '&nbsp;';
-            }
-            this.focus();
-            this._selectNode(el, true);
-            return el;
-        },
-        /**
-        * @private
-        * @method _createCurrentElement
-        * @param {String} tagName (optional defaults to a) The tagname of the element that you wish to create
-        * @param {Object} tagStyle (optional) Object literal containing styles to apply to the new element.
-        * @description This is a work around for the various browser issues with execCommand. This method will run <code>execCommand('fontname', false, 'yui-tmp')</code> on the given selection.
-        * It will then search the document for an element with the font-family set to <strong>yui-tmp</strong> and replace that with another span that has other information in it, then assign the new span to the 
-        * <code>this.currentElement</code> array, so we now have element references to the elements that were just modified. At this point we can use standard DOM manipulation to change them as we see fit.
-        */
-        _createCurrentElement: function(tagName, tagStyle) {
-            tagName = ((tagName) ? tagName : 'a');
-            var tar = null,
-                el = [],
-                _doc = this._getDoc();
-            
-            if (this.currentFont) {
-                if (!tagStyle) {
-                    tagStyle = {};
-                }
-                tagStyle.fontFamily = this.currentFont;
-                this.currentFont = null;
-            }
-            this.currentElement = [];
-
-            var _elCreate = function(tagName, tagStyle) {
-                var el = null;
-                tagName = ((tagName) ? tagName : 'span');
-                tagName = tagName.toLowerCase();
-                switch (tagName) {
-                    case 'h1':
-                    case 'h2':
-                    case 'h3':
-                    case 'h4':
-                    case 'h5':
-                    case 'h6':
-                        el = _doc.createElement(tagName);
-                        break;
-                    default:
-                        el = _doc.createElement(tagName);
-                        if (tagName === 'span') {
-                            YAHOO.util.Dom.addClass(el, 'yui-tag-' + tagName);
-                            YAHOO.util.Dom.addClass(el, 'yui-tag');
-                            el.setAttribute('tag', tagName);
-                        }
-
-                        for (var k in tagStyle) {
-                            if (YAHOO.lang.hasOwnProperty(tagStyle, k)) {
-                                el.style[k] = tagStyle[k];
-                            }
-                        }
-                        break;
-                }
-                return el;
-            };
-
-            if (!this._hasSelection()) {
-                if (this._getDoc().queryCommandEnabled('insertimage')) {
-                    this._getDoc().execCommand('insertimage', false, 'yui-tmp-img');
-                    var imgs = this._getDoc().getElementsByTagName('img');
-                    for (var j = 0; j < imgs.length; j++) {
-                        if (imgs[j].getAttribute('src', 2) == 'yui-tmp-img') {
-                            el = _elCreate(tagName, tagStyle);
-                            imgs[j].parentNode.replaceChild(el, imgs[j]);
-                            this.currentElement[this.currentElement.length] = el;
-                        }
-                    }
-                } else {
-                    if (this.currentEvent) {
-                        tar = YAHOO.util.Event.getTarget(this.currentEvent);
-                    } else {
-                        //For Safari..
-                        tar = this._getDoc().body;                        
-                    }
-                }
-                if (tar) {
-                    /*
-                    * @knownissue Safari Cursor Position
-                    * @browser Safari 2.x
-                    * @description The issue here is that we have no way of knowing where the cursor position is
-                    * inside of the iframe, so we have to place the newly inserted data in the best place that we can.
-                    */
-                    el = _elCreate(tagName, tagStyle);
-                    if (this._isElement(tar, 'body') || this._isElement(tar, 'html')) {
-                        if (this._isElement(tar, 'html')) {
-                            tar = this._getDoc().body;
-                        }
-                        tar.appendChild(el);
-                    } else if (tar.nextSibling) {
-                        tar.parentNode.insertBefore(el, tar.nextSibling);
-                    } else {
-                        tar.parentNode.appendChild(el);
-                    }
-                    //this.currentElement = el;
-                    this.currentElement[this.currentElement.length] = el;
-                    this.currentEvent = null;
-                    if (this.browser.webkit) {
-                        //Force Safari to focus the new element
-                        this._getSelection().setBaseAndExtent(el, 0, el, 0);
-                        if (this.browser.webkit3) {
-                            this._getSelection().collapseToStart();
-                        } else {
-                            this._getSelection().collapse(true);
-                        }
-                    }
-                }
-            } else {
-                //Force CSS Styling for this action...
-                this._setEditorStyle(true);
-                this._getDoc().execCommand('fontname', false, 'yui-tmp');
-                var _tmp = [], __tmp, __els = ['font', 'span', 'i', 'b', 'u'];
-
-                if (!this._isElement(this._getSelectedElement(), 'body')) {
-                    __els[__els.length] = this._getDoc().getElementsByTagName(this._getSelectedElement().tagName);
-                    __els[__els.length] = this._getDoc().getElementsByTagName(this._getSelectedElement().parentNode.tagName);
-                }
-                for (var _els = 0; _els < __els.length; _els++) {
-                    var _tmp1 = this._getDoc().getElementsByTagName(__els[_els]);
-                    for (var e = 0; e < _tmp1.length; e++) {
-                        _tmp[_tmp.length] = _tmp1[e];
-                    }
-                }
-
-                
-                for (var i = 0; i < _tmp.length; i++) {
-                    if ((YAHOO.util.Dom.getStyle(_tmp[i], 'font-family') == 'yui-tmp') || (_tmp[i].face && (_tmp[i].face == 'yui-tmp'))) {
-                        if (tagName !== 'span') {
-                            el = _elCreate(tagName, tagStyle);
-                        } else {
-                            el = _elCreate(_tmp[i].tagName, tagStyle);
-                        }
-                        el.innerHTML = _tmp[i].innerHTML;
-                        if (this._isElement(_tmp[i], 'ol') || (this._isElement(_tmp[i], 'ul'))) {
-                            var fc = _tmp[i].getElementsByTagName('li')[0];
-                            _tmp[i].style.fontFamily = 'inherit';
-                            fc.style.fontFamily = 'inherit';
-                            el.innerHTML = fc.innerHTML;
-                            fc.innerHTML = '';
-                            fc.appendChild(el);
-                            this.currentElement[this.currentElement.length] = el;
-                        } else if (this._isElement(_tmp[i], 'li')) {
-                            _tmp[i].innerHTML = '';
-                            _tmp[i].appendChild(el);
-                            _tmp[i].style.fontFamily = 'inherit';
-                            this.currentElement[this.currentElement.length] = el;
-                        } else {
-                            if (_tmp[i].parentNode) {
-                                _tmp[i].parentNode.replaceChild(el, _tmp[i]);
-                                this.currentElement[this.currentElement.length] = el;
-                                this.currentEvent = null;
-                                if (this.browser.webkit) {
-                                    //Force Safari to focus the new element
-                                    this._getSelection().setBaseAndExtent(el, 0, el, 0);
-                                    if (this.browser.webkit3) {
-                                        this._getSelection().collapseToStart();
-                                    } else {
-                                        this._getSelection().collapse(true);
-                                    }
-                                }
-                                if (this.browser.ie && tagStyle && tagStyle.fontSize) {
-                                    this._getSelection().empty();
-                                }
-                                if (this.browser.gecko) {
-                                    this._getSelection().collapseToStart();
-                                }
-                            }
-                        }
-                    }
-                }
-                var len = this.currentElement.length;
-                for (var o = 0; o < len; o++) {
-                    if ((o + 1) != len) { //Skip the last one in the list
-                        if (this.currentElement[o] && this.currentElement[o].nextSibling) {
-                            if (this._isElement(this.currentElement[o], 'br')) {
-                                this.currentElement[this.currentElement.length] = this.currentElement[o].nextSibling;
-                            }
-                        }
-                    }
-                }
-            }
-        },
-        /**
-        * @method saveHTML
-        * @description Cleans the HTML with the cleanHTML method then places that string back into the textarea.
-        * @return String
-        */
-        saveHTML: function() {
-            var html = this.cleanHTML();
-            if (this._textarea) {
-                this.get('element').value = html;
-            } else {
-                this.get('element').innerHTML = html;
-            }
-            if (this.get('saveEl') !== this.get('element')) {
-                var out = this.get('saveEl');
-                if (Lang.isString(out)) {
-                    out = Dom.get(out);
-                }
-                if (out) {
-                    if (out.tagName.toLowerCase() === 'textarea') {
-                        out.value = html;
-                    } else {
-                        out.innerHTML = html;
-                    }
-                }
-            }
-            return html;
-        },
-        /**
-        * @method setEditorHTML
-        * @param {String} incomingHTML The html content to load into the editor
-        * @description Loads HTML into the editors body
-        */
-        setEditorHTML: function(incomingHTML) {
-            var html = this._cleanIncomingHTML(incomingHTML);
-            html = html.replace(/RIGHT_BRACKET/gi, '{');
-            html = html.replace(/LEFT_BRACKET/gi, '}');
-            this._getDoc().body.innerHTML = html;
-            this.nodeChange();
-        },
-        /**
-        * @method getEditorHTML
-        * @description Gets the unprocessed/unfiltered HTML from the editor
-        */
-        getEditorHTML: function() {
-            try {
-                var b = this._getDoc().body;
-                if (b === null) {
-                    YAHOO.log('Body is null, returning null.', 'error', 'SimpleEditor');
-                    return null;
-                }
-                return this._getDoc().body.innerHTML;
-            } catch (e) {
-                return '';
-            }
-        },
-        /**
-        * @method show
-        * @description This method needs to be called if the Editor was hidden (like in a TabView or Panel). It is used to reset the editor after being in a container that was set to display none.
-        */
-        show: function() {
-            if (this.browser.gecko) {
-                this._setDesignMode('on');
-                this.focus();
-            }
-            if (this.browser.webkit) {
-                var self = this;
-                window.setTimeout(function() {
-                    self._setInitialContent.call(self);
-                }, 10);
-            }
-            //Adding this will close all other Editor window's when showing this one.
-            if (this.currentWindow) {
-                this.closeWindow();
-            }
-            //Put the iframe back in place
-            this.get('iframe').setStyle('position', 'static');
-            this.get('iframe').setStyle('left', '');
-        },
-        /**
-        * @method hide
-        * @description This method needs to be called if the Editor is to be hidden (like in a TabView or Panel). It should be called to clear timeouts and close open editor windows.
-        */
-        hide: function() {
-            //Adding this will close all other Editor window's.
-            if (this.currentWindow) {
-                this.closeWindow();
-            }
-            if (this._fixNodesTimer) {
-                clearTimeout(this._fixNodesTimer);
-                this._fixNodesTimer = null;
-            }
-            if (this._nodeChangeTimer) {
-                clearTimeout(this._nodeChangeTimer);
-                this._nodeChangeTimer = null;
-            }
-            this._lastNodeChange = 0;
-            //Move the iframe off of the screen, so that in containers with visiblity hidden, IE will not cover other elements.
-            this.get('iframe').setStyle('position', 'absolute');
-            this.get('iframe').setStyle('left', '-9999px');
-        },
-        /**
-        * @method _cleanIncomingHTML
-        * @param {String} html The unfiltered HTML
-        * @description Process the HTML with a few regexes to clean it up and stabilize the input
-        * @return {String} The filtered HTML
-        */
-        _cleanIncomingHTML: function(html) {
-            html = html.replace(/{/gi, 'RIGHT_BRACKET');
-            html = html.replace(/}/gi, 'LEFT_BRACKET');
-
-            html = html.replace(/<strong([^>]*)>/gi, '<b$1>');
-            html = html.replace(/<\/strong>/gi, '</b>');   
-
-            //replace embed before em check
-            html = html.replace(/<embed([^>]*)>/gi, '<YUI_EMBED$1>');
-            html = html.replace(/<\/embed>/gi, '</YUI_EMBED>');
-
-            html = html.replace(/<em([^>]*)>/gi, '<i$1>');
-            html = html.replace(/<\/em>/gi, '</i>');
-            html = html.replace(/_moz_dirty=""/gi, '');
-            
-            //Put embed tags back in..
-            html = html.replace(/<YUI_EMBED([^>]*)>/gi, '<embed$1>');
-            html = html.replace(/<\/YUI_EMBED>/gi, '</embed>');
-            if (this.get('plainText')) {
-                YAHOO.log('Filtering as plain text', 'info', 'SimpleEditor');
-                html = html.replace(/\n/g, '<br>').replace(/\r/g, '<br>');
-                html = html.replace(/  /gi, '&nbsp;&nbsp;'); //Replace all double spaces
-                html = html.replace(/\t/gi, '&nbsp;&nbsp;&nbsp;&nbsp;'); //Replace all tabs
-            }
-            //Removing Script Tags from the Editor
-            html = html.replace(/<script([^>]*)>/gi, '<bad>');
-            html = html.replace(/<\/script([^>]*)>/gi, '</bad>');
-            html = html.replace(/&lt;script([^>]*)&gt;/gi, '<bad>');
-            html = html.replace(/&lt;\/script([^>]*)&gt;/gi, '</bad>');
-            //Replace the line feeds
-            html = html.replace(/\r\n/g, '<YUI_LF>').replace(/\n/g, '<YUI_LF>').replace(/\r/g, '<YUI_LF>');
-            
-            //Remove Bad HTML elements (used to be script nodes)
-            html = html.replace(new RegExp('<bad([^>]*)>(.*?)<\/bad>', 'gi'), '');
-            //Replace the lines feeds
-            html = html.replace(/<YUI_LF>/g, '\n');
-            return html;
-        },
-        /**
-        * @method cleanHTML
-        * @param {String} html The unfiltered HTML
-        * @description Process the HTML with a few regexes to clean it up and stabilize the output
-        * @return {String} The filtered HTML
-        */
-        cleanHTML: function(html) {
-            //Start Filtering Output
-            //Begin RegExs..
-            if (!html) { 
-                html = this.getEditorHTML();
-            }
-            var markup = this.get('markup');
-            //Make some backups...
-            html = this.pre_filter_linebreaks(html, markup);
-
-            //Filter MS Word
-            html = this.filter_msword(html);
-
-                   html = html.replace(/<img([^>]*)\/>/gi, '<YUI_IMG$1>');
-                   html = html.replace(/<img([^>]*)>/gi, '<YUI_IMG$1>');
-
-                   html = html.replace(/<input([^>]*)\/>/gi, '<YUI_INPUT$1>');
-                   html = html.replace(/<input([^>]*)>/gi, '<YUI_INPUT$1>');
-
-                   html = html.replace(/<ul([^>]*)>/gi, '<YUI_UL$1>');
-                   html = html.replace(/<\/ul>/gi, '<\/YUI_UL>');
-                   html = html.replace(/<blockquote([^>]*)>/gi, '<YUI_BQ$1>');
-                   html = html.replace(/<\/blockquote>/gi, '<\/YUI_BQ>');
-
-                   html = html.replace(/<embed([^>]*)>/gi, '<YUI_EMBED$1>');
-                   html = html.replace(/<\/embed>/gi, '<\/YUI_EMBED>');
-
-            //Convert b and i tags to strong and em tags
-            if ((markup == 'semantic') || (markup == 'xhtml')) {
-                html = html.replace(/<i(\s+[^>]*)?>/gi, '<em$1>');
-                html = html.replace(/<\/i>/gi, '</em>');
-                html = html.replace(/<b(\s+[^>]*)?>/gi, '<strong$1>');
-                html = html.replace(/<\/b>/gi, '</strong>');
-            }
-
-            html = html.replace(/_moz_dirty=""/gi, '');
-
-            //normalize strikethrough
-            html = html.replace(/<strike/gi, '<span style="text-decoration: line-through;"');
-            html = html.replace(/\/strike>/gi, '/span>');
-            
-            
-            //Case Changing
-            if (this.browser.ie) {
-                html = html.replace(/text-decoration/gi, 'text-decoration');
-                html = html.replace(/font-weight/gi, 'font-weight');
-                html = html.replace(/_width="([^>]*)"/gi, '');
-                html = html.replace(/_height="([^>]*)"/gi, '');
-                //Cleanup Image URL's
-                var url = this._baseHREF.replace(/\//gi, '\\/'),
-                    re = new RegExp('src="' + url, 'gi');
-                html = html.replace(re, 'src="');
-            }
-                   html = html.replace(/<font/gi, '<font');
-                   html = html.replace(/<\/font>/gi, '</font>');
-                   html = html.replace(/<span/gi, '<span');
-                   html = html.replace(/<\/span>/gi, '</span>');
-            if ((markup == 'semantic') || (markup == 'xhtml') || (markup == 'css')) {
-                html = html.replace(new RegExp('<font([^>]*)face="([^>]*)">(.*?)<\/font>', 'gi'), '<span $1 style="font-family: $2;">$3</span>');
-                html = html.replace(/<u/gi, '<span style="text-decoration: underline;"');
-                if (this.browser.webkit) {
-                    html = html.replace(new RegExp('<span class="Apple-style-span" style="font-weight: bold;">([^>]*)<\/span>', 'gi'), '<strong>$1</strong>');
-                    html = html.replace(new RegExp('<span class="Apple-style-span" style="font-style: italic;">([^>]*)<\/span>', 'gi'), '<em>$1</em>');
-                }
-                html = html.replace(/\/u>/gi, '/span>');
-                if (markup == 'css') {
-                    html = html.replace(/<em([^>]*)>/gi, '<i$1>');
-                    html = html.replace(/<\/em>/gi, '</i>');
-                    html = html.replace(/<strong([^>]*)>/gi, '<b$1>');
-                    html = html.replace(/<\/strong>/gi, '</b>');
-                    html = html.replace(/<b/gi, '<span style="font-weight: bold;"');
-                    html = html.replace(/\/b>/gi, '/span>');
-                    html = html.replace(/<i/gi, '<span style="font-style: italic;"');
-                    html = html.replace(/\/i>/gi, '/span>');
-                }
-                html = html.replace(/  /gi, ' '); //Replace all double spaces and replace with a single
-            } else {
-                       html = html.replace(/<u/gi, '<u');
-                       html = html.replace(/\/u>/gi, '/u>');
-            }
-                   html = html.replace(/<ol([^>]*)>/gi, '<ol$1>');
-                   html = html.replace(/\/ol>/gi, '/ol>');
-                   html = html.replace(/<li/gi, '<li');
-                   html = html.replace(/\/li>/gi, '/li>');
-            html = this.filter_safari(html);
-
-            html = this.filter_internals(html);
-
-            html = this.filter_all_rgb(html);
-
-            //Replace our backups with the real thing
-            html = this.post_filter_linebreaks(html, markup);
-
-            if (markup == 'xhtml') {
-                       html = html.replace(/<YUI_IMG([^>]*)>/g, '<img $1 />');
-                       html = html.replace(/<YUI_INPUT([^>]*)>/g, '<input $1 />');
-            } else {
-                       html = html.replace(/<YUI_IMG([^>]*)>/g, '<img $1>');
-                       html = html.replace(/<YUI_INPUT([^>]*)>/g, '<input $1>');
-            }
-                   html = html.replace(/<YUI_UL([^>]*)>/g, '<ul$1>');
-                   html = html.replace(/<\/YUI_UL>/g, '<\/ul>');
-
-            html = this.filter_invalid_lists(html);
-
-                   html = html.replace(/<YUI_BQ([^>]*)>/g, '<blockquote$1>');
-                   html = html.replace(/<\/YUI_BQ>/g, '<\/blockquote>');
-
-                   html = html.replace(/<YUI_EMBED([^>]*)>/g, '<embed$1>');
-                   html = html.replace(/<\/YUI_EMBED>/g, '<\/embed>');
-            
-            //This should fix &amp;'s in URL's
-            html = html.replace(/ &amp; /gi, ' YUI_AMP ');
-            html = html.replace(/ &amp;/gi, ' YUI_AMP_F ');
-            html = html.replace(/&amp; /gi, ' YUI_AMP_R ');
-            html = html.replace(/&amp;/gi, '&');
-            html = html.replace(/ YUI_AMP /gi, ' &amp; ');
-            html = html.replace(/ YUI_AMP_F /gi, ' &amp;');
-            html = html.replace(/ YUI_AMP_R /gi, '&amp; ');
-
-            //Trim the output, removing whitespace from the beginning and end
-            html = YAHOO.lang.trim(html);
-
-            if (this.get('removeLineBreaks')) {
-                html = html.replace(/\n/g, '').replace(/\r/g, '');
-                html = html.replace(/  /gi, ' '); //Replace all double spaces and replace with a single
-            }
-            
-            for (var v in this.invalidHTML) {
-                if (YAHOO.lang.hasOwnProperty(this.invalidHTML, v)) {
-                    if (Lang.isObject(v) && v.keepContents) {
-                        html = html.replace(new RegExp('<' + v + '([^>]*)>(.*?)<\/' + v + '>', 'gi'), '$1');
-                    } else {
-                        html = html.replace(new RegExp('<' + v + '([^>]*)>(.*?)<\/' + v + '>', 'gi'), '');
-                    }
-                }
-            }
-
-            /* LATER -- Add DOM manipulation
-            console.log(html);
-            var frag = document.createDocumentFragment();
-            frag.innerHTML = html;
-
-            var ps = frag.getElementsByTagName('p'),
-                len = ps.length;
-            for (var i = 0; i < len; i++) {
-                var ps2 = ps[i].getElementsByTagName('p');
-                if (ps2.length) {
-                    
-                }
-                
-            }
-            html = frag.innerHTML;
-            console.log(html);
-            */
-
-            this.fireEvent('cleanHTML', { type: 'cleanHTML', target: this, html: html });
-
-            return html;
-        },
-        /**
-        * @method filter_msword
-        * @param String html The HTML string to filter
-        * @description Filters out msword html attributes and other junk. Activate with filterWord: true in config
-        */
-        filter_msword: function(html) {
-            if (!this.get('filterWord')) {
-                return html;
-            }
-            //Remove the ms o: tags
-            html = html.replace(/<o:p>\s*<\/o:p>/g, '');
-            html = html.replace(/<o:p>[\s\S]*?<\/o:p>/g, '&nbsp;');
-
-            //Remove the ms w: tags
-            html = html.replace( /<w:[^>]*>[\s\S]*?<\/w:[^>]*>/gi, '');
-
-            //Remove mso-? styles.
-            html = html.replace( /\s*mso-[^:]+:[^;"]+;?/gi, '');
-
-            //Remove more bogus MS styles.
-            html = html.replace( /\s*MARGIN: 0cm 0cm 0pt\s*;/gi, '');
-            html = html.replace( /\s*MARGIN: 0cm 0cm 0pt\s*"/gi, "\"");
-            html = html.replace( /\s*TEXT-INDENT: 0cm\s*;/gi, '');
-            html = html.replace( /\s*TEXT-INDENT: 0cm\s*"/gi, "\"");
-            html = html.replace( /\s*PAGE-BREAK-BEFORE: [^\s;]+;?"/gi, "\"");
-            html = html.replace( /\s*FONT-VARIANT: [^\s;]+;?"/gi, "\"" );
-            html = html.replace( /\s*tab-stops:[^;"]*;?/gi, '');
-            html = html.replace( /\s*tab-stops:[^"]*/gi, '');
-
-            //Remove XML declarations
-            html = html.replace(/<\\?\?xml[^>]*>/gi, '');
-
-            //Remove lang
-            html = html.replace(/<(\w[^>]*) lang=([^ |>]*)([^>]*)/gi, "<$1$3");
-
-            //Remove language tags
-            html = html.replace( /<(\w[^>]*) language=([^ |>]*)([^>]*)/gi, "<$1$3");
-
-            //Remove onmouseover and onmouseout events (from MS Word comments effect)
-            html = html.replace( /<(\w[^>]*) onmouseover="([^\"]*)"([^>]*)/gi, "<$1$3");
-            html = html.replace( /<(\w[^>]*) onmouseout="([^\"]*)"([^>]*)/gi, "<$1$3");
-            
-            return html;
-        },
-        /**
-        * @method filter_invalid_lists
-        * @param String html The HTML string to filter
-        * @description Filters invalid ol and ul list markup, converts this: <li></li><ol>..</ol> to this: <li></li><li><ol>..</ol></li>
-        */
-        filter_invalid_lists: function(html) {
-            html = html.replace(/<\/li>\n/gi, '</li>');
-
-            html = html.replace(/<\/li><ol>/gi, '</li><li><ol>');
-            html = html.replace(/<\/ol>/gi, '</ol></li>');
-            html = html.replace(/<\/ol><\/li>\n/gi, "</ol>");
-
-            html = html.replace(/<\/li><ul>/gi, '</li><li><ul>');
-            html = html.replace(/<\/ul>/gi, '</ul></li>');
-            html = html.replace(/<\/ul><\/li>\n?/gi, "</ul>");
-
-            html = html.replace(/<\/li>/gi, "</li>");
-            html = html.replace(/<\/ol>/gi, "</ol>");
-            html = html.replace(/<ol>/gi, "<ol>");
-            html = html.replace(/<ul>/gi, "<ul>");
-            return html;
-        },
-        /**
-        * @method filter_safari
-        * @param String html The HTML string to filter
-        * @description Filters strings specific to Safari
-        * @return String
-        */
-        filter_safari: function(html) {
-            if (this.browser.webkit) {
-                //<span class="Apple-tab-span" style="white-space:pre">        </span>
-                html = html.replace(/<span class="Apple-tab-span" style="white-space:pre">([^>])<\/span>/gi, '&nbsp;&nbsp;&nbsp;&nbsp;');
-                html = html.replace(/Apple-style-span/gi, '');
-                html = html.replace(/style="line-height: normal;"/gi, '');
-                html = html.replace(/yui-wk-div/gi, '');
-                html = html.replace(/yui-wk-p/gi, '');
-
-
-                //Remove bogus LI's
-                html = html.replace(/<li><\/li>/gi, '');
-                html = html.replace(/<li> <\/li>/gi, '');
-                html = html.replace(/<li>  <\/li>/gi, '');
-                //Remove bogus DIV's - updated from just removing the div's to replacing /div with a break
-                if (this.get('ptags')) {
-                           html = html.replace(/<div([^>]*)>/g, '<p$1>');
-                                   html = html.replace(/<\/div>/gi, '</p>');
-                } else {
-                    //html = html.replace(/<div>/gi, '<br>');
-                    html = html.replace(/<div([^>]*)>([ tnr]*)<\/div>/gi, '<br>');
-                                   html = html.replace(/<\/div>/gi, '');
-                }
-            }
-            return html;
-        },
-        /**
-        * @method filter_internals
-        * @param String html The HTML string to filter
-        * @description Filters internal RTE strings and bogus attrs we don't want
-        * @return String
-        */
-        filter_internals: function(html) {
-                   html = html.replace(/\r/g, '');
-            //Fix stuff we don't want
-               html = html.replace(/<\/?(body|head|html)[^>]*>/gi, '');
-            //Fix last BR in LI
-                   html = html.replace(/<YUI_BR><\/li>/gi, '</li>');
-
-                   html = html.replace(/yui-tag-span/gi, '');
-                   html = html.replace(/yui-tag/gi, '');
-                   html = html.replace(/yui-non/gi, '');
-                   html = html.replace(/yui-img/gi, '');
-                   html = html.replace(/ tag="span"/gi, '');
-                   html = html.replace(/ class=""/gi, '');
-                   html = html.replace(/ style=""/gi, '');
-                   html = html.replace(/ class=" "/gi, '');
-                   html = html.replace(/ class="  "/gi, '');
-                   html = html.replace(/ target=""/gi, '');
-                   html = html.replace(/ title=""/gi, '');
-
-            if (this.browser.ie) {
-                       html = html.replace(/ class= /gi, '');
-                       html = html.replace(/ class= >/gi, '');
-            }
-            
-            return html;
-        },
-        /**
-        * @method filter_all_rgb
-        * @param String str The HTML string to filter
-        * @description Converts all RGB color strings found in passed string to a hex color, example: style="color: rgb(0, 255, 0)" converts to style="color: #00ff00"
-        * @return String
-        */
-        filter_all_rgb: function(str) {
-            var exp = new RegExp("rgb\\s*?\\(\\s*?([0-9]+).*?,\\s*?([0-9]+).*?,\\s*?([0-9]+).*?\\)", "gi");
-            var arr = str.match(exp);
-            if (Lang.isArray(arr)) {
-                for (var i = 0; i < arr.length; i++) {
-                    var color = this.filter_rgb(arr[i]);
-                    str = str.replace(arr[i].toString(), color);
-                }
-            }
-            
-            return str;
-        },
-        /**
-        * @method filter_rgb
-        * @param String css The CSS string containing rgb(#,#,#);
-        * @description Converts an RGB color string to a hex color, example: rgb(0, 255, 0) converts to #00ff00
-        * @return String
-        */
-        filter_rgb: function(css) {
-            if (css.toLowerCase().indexOf('rgb') != -1) {
-                var exp = new RegExp("(.*?)rgb\\s*?\\(\\s*?([0-9]+).*?,\\s*?([0-9]+).*?,\\s*?([0-9]+).*?\\)(.*?)", "gi");
-                var rgb = css.replace(exp, "$1,$2,$3,$4,$5").split(',');
-            
-                if (rgb.length == 5) {
-                    var r = parseInt(rgb[1], 10).toString(16);
-                    var g = parseInt(rgb[2], 10).toString(16);
-                    var b = parseInt(rgb[3], 10).toString(16);
-
-                    r = r.length == 1 ? '0' + r : r;
-                    g = g.length == 1 ? '0' + g : g;
-                    b = b.length == 1 ? '0' + b : b;
-
-                    css = "#" + r + g + b;
-                }
-            }
-            return css;
-        },
-        /**
-        * @method pre_filter_linebreaks
-        * @param String html The HTML to filter
-        * @param String markup The markup type to filter to
-        * @description HTML Pre Filter
-        * @return String
-        */
-        pre_filter_linebreaks: function(html, markup) {
-            if (this.browser.webkit) {
-                       html = html.replace(/<br class="khtml-block-placeholder">/gi, '<YUI_BR>');
-                       html = html.replace(/<br class="webkit-block-placeholder">/gi, '<YUI_BR>');
-            }
-                   html = html.replace(/<br>/gi, '<YUI_BR>');
-                   html = html.replace(/<br (.*?)>/gi, '<YUI_BR>');
-                   html = html.replace(/<br\/>/gi, '<YUI_BR>');
-                   html = html.replace(/<br \/>/gi, '<YUI_BR>');
-                   html = html.replace(/<div><YUI_BR><\/div>/gi, '<YUI_BR>');
-                   html = html.replace(/<p>(&nbsp;|&#160;)<\/p>/g, '<YUI_BR>');            
-                   html = html.replace(/<p><br>&nbsp;<\/p>/gi, '<YUI_BR>');
-                   html = html.replace(/<p>&nbsp;<\/p>/gi, '<YUI_BR>');
-            //Fix last BR
-               html = html.replace(/<YUI_BR>$/, '');
-            //Fix last BR in P
-               html = html.replace(/<YUI_BR><\/p>/g, '</p>');
-            if (this.browser.ie) {
-                   html = html.replace(/&nbsp;&nbsp;&nbsp;&nbsp;/g, '\t');
-            }
-            return html;
-        },
-        /**
-        * @method post_filter_linebreaks
-        * @param String html The HTML to filter
-        * @param String markup The markup type to filter to
-        * @description HTML Pre Filter
-        * @return String
-        */
-        post_filter_linebreaks: function(html, markup) {
-            if (markup == 'xhtml') {
-                       html = html.replace(/<YUI_BR>/g, '<br />');
-            } else {
-                       html = html.replace(/<YUI_BR>/g, '<br>');
-            }
-            return html;
-        },
-        /**
-        * @method clearEditorDoc
-        * @description Clear the doc of the Editor
-        */
-        clearEditorDoc: function() {
-            this._getDoc().body.innerHTML = '&nbsp;';
-        },
-        /**
-        * @method openWindow
-        * @description Override Method for Advanced Editor
-        */
-        openWindow: function(win) {
-        },
-        /**
-        * @method moveWindow
-        * @description Override Method for Advanced Editor
-        */
-        moveWindow: function() {
-        },
-        /**
-        * @private
-        * @method _closeWindow
-        * @description Override Method for Advanced Editor
-        */
-        _closeWindow: function() {
-        },
-        /**
-        * @method closeWindow
-        * @description Override Method for Advanced Editor
-        */
-        closeWindow: function() {
-            //this.unsubscribeAll('afterExecCommand');
-            this.toolbar.resetAllButtons();
-            this.focus();        
-        },
-        /**
-        * @method destroy
-        * @description Destroys the editor, all of it's elements and objects.
-        * @return {Boolean}
-        */
-        destroy: function() {
-            if (this._nodeChangeDelayTimer) {
-                clearTimeout(this._nodeChangeDelayTimer);
-            }
-            this.hide();
-        
-            YAHOO.log('Destroying Editor', 'warn', 'SimpleEditor');
-            if (this.resize) {
-                YAHOO.log('Destroying Resize', 'warn', 'SimpleEditor');
-                this.resize.destroy();
-            }
-            if (this.dd) {
-                YAHOO.log('Unreg DragDrop Instance', 'warn', 'SimpleEditor');
-                this.dd.unreg();
-            }
-            if (this.get('panel')) {
-                YAHOO.log('Destroying Editor Panel', 'warn', 'SimpleEditor');
-                this.get('panel').destroy();
-            }
-            this.saveHTML();
-            this.toolbar.destroy();
-            YAHOO.log('Restoring TextArea', 'info', 'SimpleEditor');
-            this.setStyle('visibility', 'visible');
-            this.setStyle('position', 'static');
-            this.setStyle('top', '');
-            this.setStyle('left', '');
-            var textArea = this.get('element');
-            this.get('element_cont').get('parentNode').replaceChild(textArea, this.get('element_cont').get('element'));
-            this.get('element_cont').get('element').innerHTML = '';
-            this.set('handleSubmit', false); //Remove the submit handler
-            return true;
-        },        
-        /**
-        * @method toString
-        * @description Returns a string representing the editor.
-        * @return {String}
-        */
-        toString: function() {
-            var str = 'SimpleEditor';
-            if (this.get && this.get('element_cont')) {
-                str = 'SimpleEditor (#' + this.get('element_cont').get('id') + ')' + ((this.get('disabled') ? ' Disabled' : ''));
-            }
-            return str;
-        }
-    });
-
-/**
-* @event toolbarLoaded
-* @description Event is fired during the render process directly after the Toolbar is loaded. Allowing you to attach events to the toolbar. See <a href="YAHOO.util.Element.html#addListener">Element.addListener</a> for more information on listening for this event.
-* @type YAHOO.util.CustomEvent
-*/
-/**
-* @event cleanHTML
-* @description Event is fired after the cleanHTML method is called.
-* @type YAHOO.util.CustomEvent
-*/
-/**
-* @event afterRender
-* @description Event is fired after the render process finishes. See <a href="YAHOO.util.Element.html#addListener">Element.addListener</a> for more information on listening for this event.
-* @type YAHOO.util.CustomEvent
-*/
-/**
-* @event editorContentLoaded
-* @description Event is fired after the editor iframe's document fully loads and fires it's onload event. From here you can start injecting your own things into the document. See <a href="YAHOO.util.Element.html#addListener">Element.addListener</a> for more information on listening for this event.
-* @type YAHOO.util.CustomEvent
-*/
-/**
-* @event beforeNodeChange
-* @description Event fires at the beginning of the nodeChange process. See <a href="YAHOO.util.Element.html#addListener">Element.addListener</a> for more information on listening for this event.
-* @type YAHOO.util.CustomEvent
-*/
-/**
-* @event afterNodeChange
-* @description Event fires at the end of the nodeChange process. See <a href="YAHOO.util.Element.html#addListener">Element.addListener</a> for more information on listening for this event.
-* @type YAHOO.util.CustomEvent
-*/
-/**
-* @event beforeExecCommand
-* @description Event fires at the beginning of the execCommand process. See <a href="YAHOO.util.Element.html#addListener">Element.addListener</a> for more information on listening for this event.
-* @type YAHOO.util.CustomEvent
-*/
-/**
-* @event afterExecCommand
-* @description Event fires at the end of the execCommand process. See <a href="YAHOO.util.Element.html#addListener">Element.addListener</a> for more information on listening for this event.
-* @type YAHOO.util.CustomEvent
-*/
-/**
-* @event editorMouseUp
-* @param {Event} ev The DOM Event that occured
-* @description Passed through HTML Event. See <a href="YAHOO.util.Element.html#addListener">Element.addListener</a> for more information on listening for this event.
-* @type YAHOO.util.CustomEvent
-*/
-/**
-* @event editorMouseDown
-* @param {Event} ev The DOM Event that occured
-* @description Passed through HTML Event. See <a href="YAHOO.util.Element.html#addListener">Element.addListener</a> for more information on listening for this event.
-* @type YAHOO.util.CustomEvent
-*/
-/**
-* @event editorDoubleClick
-* @param {Event} ev The DOM Event that occured
-* @description Passed through HTML Event. See <a href="YAHOO.util.Element.html#addListener">Element.addListener</a> for more information on listening for this event.
-* @type YAHOO.util.CustomEvent
-*/
-/**
-* @event editorClick
-* @param {Event} ev The DOM Event that occured
-* @description Passed through HTML Event. See <a href="YAHOO.util.Element.html#addListener">Element.addListener</a> for more information on listening for this event.
-* @type YAHOO.util.CustomEvent
-*/
-/**
-* @event editorKeyUp
-* @param {Event} ev The DOM Event that occured
-* @description Passed through HTML Event. See <a href="YAHOO.util.Element.html#addListener">Element.addListener</a> for more information on listening for this event.
-* @type YAHOO.util.CustomEvent
-*/
-/**
-* @event editorKeyPress
-* @param {Event} ev The DOM Event that occured
-* @description Passed through HTML Event. See <a href="YAHOO.util.Element.html#addListener">Element.addListener</a> for more information on listening for this event.
-* @type YAHOO.util.CustomEvent
-*/
-/**
-* @event editorKeyDown
-* @param {Event} ev The DOM Event that occured
-* @description Passed through HTML Event. See <a href="YAHOO.util.Element.html#addListener">Element.addListener</a> for more information on listening for this event.
-* @type YAHOO.util.CustomEvent
-*/
-/**
-* @event beforeEditorMouseUp
-* @param {Event} ev The DOM Event that occured
-* @description Fires before editor event, returning false will stop the internal processing.
-* @type YAHOO.util.CustomEvent
-*/
-/**
-* @event beforeEditorMouseDown
-* @param {Event} ev The DOM Event that occured
-* @description Fires before editor event, returning false will stop the internal processing.
-* @type YAHOO.util.CustomEvent
-*/
-/**
-* @event beforeEditorDoubleClick
-* @param {Event} ev The DOM Event that occured
-* @description Fires before editor event, returning false will stop the internal processing.
-* @type YAHOO.util.CustomEvent
-*/
-/**
-* @event beforeEditorClick
-* @param {Event} ev The DOM Event that occured
-* @description Fires before editor event, returning false will stop the internal processing.
-* @type YAHOO.util.CustomEvent
-*/
-/**
-* @event beforeEditorKeyUp
-* @param {Event} ev The DOM Event that occured
-* @description Fires before editor event, returning false will stop the internal processing.
-* @type YAHOO.util.CustomEvent
-*/
-/**
-* @event beforeEditorKeyPress
-* @param {Event} ev The DOM Event that occured
-* @description Fires before editor event, returning false will stop the internal processing.
-* @type YAHOO.util.CustomEvent
-*/
-/**
-* @event beforeEditorKeyDown
-* @param {Event} ev The DOM Event that occured
-* @description Fires before editor event, returning false will stop the internal processing.
-* @type YAHOO.util.CustomEvent
-*/
-
-/**
-* @event editorWindowFocus
-* @description Fires when the iframe is focused. Note, this is window focus event, not an Editor focus event.
-* @type YAHOO.util.CustomEvent
-*/
-/**
-* @event editorWindowBlur
-* @description Fires when the iframe is blurred. Note, this is window blur event, not an Editor blur event.
-* @type YAHOO.util.CustomEvent
-*/
-
-
-/**
- * @description Singleton object used to track the open window objects and panels across the various open editors
- * @class EditorInfo
- * @static
-*/
-YAHOO.widget.EditorInfo = {
-    /**
-    * @private
-    * @property _instances
-    * @description A reference to all editors on the page.
-    * @type Object
-    */
-    _instances: {},
-    /**
-    * @private
-    * @property blankImage
-    * @description A reference to the blankImage url
-    * @type String 
-    */
-    blankImage: '',
-    /**
-    * @private
-    * @property window
-    * @description A reference to the currently open window object in any editor on the page.
-    * @type Object <a href="YAHOO.widget.EditorWindow.html">YAHOO.widget.EditorWindow</a>
-    */
-    window: {},
-    /**
-    * @private
-    * @property panel
-    * @description A reference to the currently open panel in any editor on the page.
-    * @type Object <a href="YAHOO.widget.Overlay.html">YAHOO.widget.Overlay</a>
-    */
-    panel: null,
-    /**
-    * @method getEditorById
-    * @description Returns a reference to the Editor object associated with the given textarea
-    * @param {String/HTMLElement} id The id or reference of the textarea to return the Editor instance of
-    * @return Object <a href="YAHOO.widget.Editor.html">YAHOO.widget.Editor</a>
-    */
-    getEditorById: function(id) {
-        if (!YAHOO.lang.isString(id)) {
-            //Not a string, assume a node Reference
-            id = id.id;
-        }
-        if (this._instances[id]) {
-            return this._instances[id];
-        }
-        return false;
-    },
-    /**
-    * @method saveAll
-    * @description Saves all Editor instances on the page. If a form reference is passed, only Editor's bound to this form will be saved.
-    * @param {HTMLElement} form The form to check if this Editor instance belongs to
-    */
-    saveAll: function(form) {
-        var i, e, items = YAHOO.widget.EditorInfo._instances;
-        if (form) {
-            for (i in items) {
-                if (Lang.hasOwnProperty(items, i)) {
-                    e = items[i];
-                    if (e.get('element').form && (e.get('element').form == form)) {
-                        e.saveHTML();
-                    }
-                }
-            }
-        } else {
-            for (i in items) {
-                if (Lang.hasOwnProperty(items, i)) {
-                    items[i].saveHTML();
-                }
-            }
-        }
-    },
-    /**
-    * @method toString
-    * @description Returns a string representing the EditorInfo.
-    * @return {String}
-    */
-    toString: function() {
-        var len = 0;
-        for (var i in this._instances) {
-            if (Lang.hasOwnProperty(this._instances, i)) {
-                len++;
-            }
-        }
-        return 'Editor Info (' + len + ' registered intance' + ((len > 1) ? 's' : '') + ')';
-    }
-};
-
-
-
-    
-})();
-/**
- * @module editor
- * @description <p>The Rich Text Editor is a UI control that replaces a standard HTML textarea; it allows for the rich formatting of text content, including common structural treatments like lists, formatting treatments like bold and italic text, and drag-and-drop inclusion and sizing of images. The Rich Text Editor's toolbar is extensible via a plugin architecture so that advanced implementations can achieve a high degree of customization.</p>
- * @namespace YAHOO.widget
- * @requires yahoo, dom, element, event, container_core, simpleeditor
- * @optional dragdrop, animation, menu, button, resize
- */
-
-(function() {
-var Dom = YAHOO.util.Dom,
-    Event = YAHOO.util.Event,
-    Lang = YAHOO.lang,
-    Toolbar = YAHOO.widget.Toolbar;
-
-    /**
-     * The Rich Text Editor is a UI control that replaces a standard HTML textarea; it allows for the rich formatting of text content, including common structural treatments like lists, formatting treatments like bold and italic text, and drag-and-drop inclusion and sizing of images. The Rich Text Editor's toolbar is extensible via a plugin architecture so that advanced implementations can achieve a high degree of customization.
-     * @constructor
-     * @class Editor
-     * @extends YAHOO.widget.SimpleEditor
-     * @param {String/HTMLElement} el The textarea element to turn into an editor.
-     * @param {Object} attrs Object liternal containing configuration parameters.
-    */
-    
-    YAHOO.widget.Editor = function(el, attrs) {
-        YAHOO.log('Editor Initalizing', 'info', 'Editor');
-        YAHOO.widget.Editor.superclass.constructor.call(this, el, attrs);
-    };
-
-    YAHOO.extend(YAHOO.widget.Editor, YAHOO.widget.SimpleEditor, {
-        /**
-        * @private
-        * @property _undoCache
-        * @description An Array hash of the Undo Levels.
-        * @type Array
-        */
-        _undoCache: null,
-        /**
-        * @private
-        * @property _undoLevel
-        * @description The index of the current undo state.
-        * @type Number
-        */
-        _undoLevel: null,    
-        /**
-        * @private
-        * @method _hasUndoLevel
-        * @description Checks to see if we have an undo level available
-        * @return Boolean
-        */
-        _hasUndoLevel: function() {
-            return ((this._undoCache.length > 1) && this._undoLevel);
-        },
-        /**
-        * @private
-        * @method _undoNodeChange
-        * @description nodeChange listener for undo processing
-        */
-        _undoNodeChange: function() {
-            var undo_button = this.toolbar.getButtonByValue('undo'),
-                redo_button = this.toolbar.getButtonByValue('redo');
-            if (undo_button && redo_button) {
-                if (this._hasUndoLevel()) {
-                    this.toolbar.enableButton(undo_button);
-                }
-                if (this._undoLevel < this._undoCache.length) {
-                    this.toolbar.enableButton(redo_button);
-                }
-            }
-            this._lastCommand = null;
-        },
-        /**
-        * @private
-        * @method _checkUndo
-        * @description Prunes the undo cache when it reaches the maxUndo config
-        */
-        _checkUndo: function() {
-            var len = this._undoCache.length,
-            tmp = [];
-            if (len >= this.get('maxUndo')) {
-                //YAHOO.log('Undo cache too large (' + len + '), pruning..', 'info', 'SimpleEditor');
-                for (var i = (len - this.get('maxUndo')); i < len; i++) {
-                    tmp.push(this._undoCache[i]);
-                }
-                this._undoCache = tmp;
-            }
-        },
-        /**
-        * @private
-        * @method _putUndo
-        * @description Puts the content of the Editor into the _undoCache.
-        * //TODO Convert the hash to a series of TEXTAREAS to store state in.
-        * @param {String} str The content of the Editor
-        */
-        _putUndo: function(str) {
-            if (this._undoLevel === this._undoCache.length) {
-                this._undoCache.push(str);
-                this._undoLevel = this._undoCache.length;
-            } else {
-                var str = this.getEditorHTML();
-                var last = this._undoCache[this._undoLevel];
-                if (last) {
-                    if (str !== last) {
-                        this._undoCache = [];
-                        this._undoLevel = 0;
-                    }
-                }
-            }
-        },
-        /**
-        * @private
-        * @method _getUndo
-        * @description Get's a level from the undo cache.
-        * @param {Number} index The index of the undo level we want to get.
-        * @return {String}
-        */
-        _getUndo: function(index) {
-            this._undoLevel = index;
-            return this._undoCache[index];
-        },
-        /**
-        * @private
-        * @method _storeUndo
-        * @description Method to call when you want to store an undo state. Currently called from nodeChange and _handleKeyUp
-        */
-        _storeUndo: function() {
-            if (this._lastCommand === 'undo' || this._lastCommand === 'redo') {
-                return false;
-            }
-            if (!this._undoCache) {
-                this._undoCache = [];
-                this._undoLevel = 0;
-            }
-            this._checkUndo();
-            var str = this.getEditorHTML();
-            //var last = this._undoCache[this._undoCache.length - 1];
-            var last = this._undoCache[this._undoLevel - 1];
-            if (last) {
-                if (str !== last) {
-                    //YAHOO.log('Storing Undo', 'info', 'SimpleEditor');
-                    this._putUndo(str);
-                }
-            } else {
-                //YAHOO.log('Storing Undo', 'info', 'SimpleEditor');
-                this._putUndo(str);
-            }
-            this._undoNodeChange();
-        },    
-        /**
-        * @property STR_BEFORE_EDITOR
-        * @description The accessibility string for the element before the iFrame
-        * @type String
-        */
-        STR_BEFORE_EDITOR: 'This text field can contain stylized text and graphics. To cycle through all formatting options, use the keyboard shortcut Control + Shift + T to place focus on the toolbar and navigate between option heading names. <h4>Common formatting keyboard shortcuts:</h4><ul><li>Control Shift B sets text to bold</li> <li>Control Shift I sets text to italic</li> <li>Control Shift U underlines text</li> <li>Control Shift [ aligns text left</li> <li>Control Shift | centers text</li> <li>Control Shift ] aligns text right</li> <li>Control Shift L adds an HTML link</li> <li>To exit this text editor use the keyboard shortcut Control + Shift + ESC.</li></ul>',    
-        /**
-        * @property STR_CLOSE_WINDOW
-        * @description The Title of the close button in the Editor Window
-        * @type String
-        */
-        STR_CLOSE_WINDOW: 'Close Window',
-        /**
-        * @property STR_CLOSE_WINDOW_NOTE
-        * @description A note appearing in the Editor Window to tell the user that the Escape key will close the window
-        * @type String
-        */
-        STR_CLOSE_WINDOW_NOTE: 'To close this window use the Control + Shift + W key',
-        /**
-        * @property STR_IMAGE_PROP_TITLE
-        * @description The title for the Image Property Editor Window
-        * @type String
-        */
-        STR_IMAGE_PROP_TITLE: 'Image Options',
-        /**
-        * @property STR_IMAGE_TITLE
-        * @description The label string for Image Description
-        * @type String
-        */
-        STR_IMAGE_TITLE: 'Description',
-        /**
-        * @property STR_IMAGE_SIZE
-        * @description The label string for Image Size
-        * @type String
-        */
-        STR_IMAGE_SIZE: 'Size',
-        /**
-        * @property STR_IMAGE_ORIG_SIZE
-        * @description The label string for Original Image Size
-        * @type String
-        */
-        STR_IMAGE_ORIG_SIZE: 'Original Size',
-        /**
-        * @property STR_IMAGE_COPY
-        * @description The label string for the image copy and paste message for Opera and Safari
-        * @type String
-        */
-        STR_IMAGE_COPY: '<span class="tip"><span class="icon icon-info"></span><strong>Note:</strong>To move this image just highlight it, cut, and paste where ever you\'d like.</span>',
-        /**
-        * @property STR_IMAGE_PADDING
-        * @description The label string for the image padding.
-        * @type String
-        */
-        STR_IMAGE_PADDING: 'Padding',
-        /**
-        * @property STR_IMAGE_BORDER
-        * @description The label string for the image border.
-        * @type String
-        */
-        STR_IMAGE_BORDER: 'Border',
-        /**
-        * @property STR_IMAGE_BORDER_SIZE
-        * @description The label string for the image border size.
-        * @type String
-        */
-        STR_IMAGE_BORDER_SIZE: 'Border Size',
-        /**
-        * @property STR_IMAGE_BORDER_TYPE
-        * @description The label string for the image border type.
-        * @type String
-        */
-        STR_IMAGE_BORDER_TYPE: 'Border Type',
-        /**
-        * @property STR_IMAGE_TEXTFLOW
-        * @description The label string for the image text flow.
-        * @type String
-        */
-        STR_IMAGE_TEXTFLOW: 'Text Flow',
-        /**
-        * @property STR_LOCAL_FILE_WARNING
-        * @description The label string for the local file warning.
-        * @type String
-        */
-        STR_LOCAL_FILE_WARNING: '<span class="tip"><span class="icon icon-warn"></span><strong>Note:</strong>This image/link points to a file on your computer and will not be accessible to others on the internet.</span>',
-        /**
-        * @property STR_LINK_PROP_TITLE
-        * @description The label string for the Link Property Editor Window.
-        * @type String
-        */
-        STR_LINK_PROP_TITLE: 'Link Options',
-        /**
-        * @property STR_LINK_PROP_REMOVE
-        * @description The label string for the Remove link from text link inside the property editor.
-        * @type String
-        */
-        STR_LINK_PROP_REMOVE: 'Remove link from text',
-        /**
-        * @property STR_LINK_NEW_WINDOW
-        * @description The string for the open in a new window label.
-        * @type String
-        */
-        STR_LINK_NEW_WINDOW: 'Open in a new window.',
-        /**
-        * @property STR_LINK_TITLE
-        * @description The string for the link description.
-        * @type String
-        */
-        STR_LINK_TITLE: 'Description',
-        /**
-        * @property STR_NONE
-        * @description The string for the word none.
-        * @type String
-        */
-        STR_NONE: 'none',
-        /**
-        * @protected
-        * @property CLASS_LOCAL_FILE
-        * @description CSS class applied to an element when it's found to have a local url.
-        * @type String
-        */
-        CLASS_LOCAL_FILE: 'warning-localfile',
-        /**
-        * @protected
-        * @property CLASS_HIDDEN
-        * @description CSS class applied to the body when the hiddenelements button is pressed.
-        * @type String
-        */
-        CLASS_HIDDEN: 'yui-hidden',
-        /** 
-        * @method init
-        * @description The Editor class' initialization method
-        */
-        init: function(p_oElement, p_oAttributes) {
-            YAHOO.log('init', 'info', 'Editor');
-            
-            this._windows = {};
-            if (!this._defaultToolbar) {            
-                this._defaultToolbar = {
-                    collapse: true,
-                    titlebar: 'Text Editing Tools',
-                    draggable: false,
-                    buttonType: 'advanced',
-                    buttons: [
-                        { group: 'fontstyle', label: 'Font Name and Size',
-                            buttons: [
-                                { type: 'select', label: 'Arial', value: 'fontname', disabled: true,
-                                    menu: [
-                                        { text: 'Arial', checked: true },
-                                        { text: 'Arial Black' },
-                                        { text: 'Comic Sans MS' },
-                                        { text: 'Courier New' },
-                                        { text: 'Lucida Console' },
-                                        { text: 'Tahoma' },
-                                        { text: 'Times New Roman' },
-                                        { text: 'Trebuchet MS' },
-                                        { text: 'Verdana' }
-                                    ]
-                                },
-                                { type: 'spin', label: '13', value: 'fontsize', range: [ 9, 75 ], disabled: true }
-                            ]
-                        },
-                        { type: 'separator' },
-                        { group: 'textstyle', label: 'Font Style',
-                            buttons: [
-                                { type: 'push', label: 'Bold CTRL + SHIFT + B', value: 'bold' },
-                                { type: 'push', label: 'Italic CTRL + SHIFT + I', value: 'italic' },
-                                { type: 'push', label: 'Underline CTRL + SHIFT + U', value: 'underline' },
-                                { type: 'separator' },
-                                { type: 'push', label: 'Subscript', value: 'subscript', disabled: true },
-                                { type: 'push', label: 'Superscript', value: 'superscript', disabled: true }
-                            ]
-                        },
-                        { type: 'separator' },
-                        { group: 'textstyle2', label: '&nbsp;',
-                            buttons: [
-                                { type: 'color', label: 'Font Color', value: 'forecolor', disabled: true },
-                                { type: 'color', label: 'Background Color', value: 'backcolor', disabled: true },
-                                { type: 'separator' },
-                                { type: 'push', label: 'Remove Formatting', value: 'removeformat', disabled: true },
-                                { type: 'push', label: 'Show/Hide Hidden Elements', value: 'hiddenelements' }
-                            ]
-                        },
-                        { type: 'separator' },
-                        { group: 'undoredo', label: 'Undo/Redo',
-                            buttons: [
-                                { type: 'push', label: 'Undo', value: 'undo', disabled: true },
-                                { type: 'push', label: 'Redo', value: 'redo', disabled: true }
-                                
-                            ]
-                        },
-                        { type: 'separator' },
-                        { group: 'alignment', label: 'Alignment',
-                            buttons: [
-                                { type: 'push', label: 'Align Left CTRL + SHIFT + [', value: 'justifyleft' },
-                                { type: 'push', label: 'Align Center CTRL + SHIFT + |', value: 'justifycenter' },
-                                { type: 'push', label: 'Align Right CTRL + SHIFT + ]', value: 'justifyright' },
-                                { type: 'push', label: 'Justify', value: 'justifyfull' }
-                            ]
-                        },
-                        { type: 'separator' },
-                        { group: 'parastyle', label: 'Paragraph Style',
-                            buttons: [
-                            { type: 'select', label: 'Normal', value: 'heading', disabled: true,
-                                menu: [
-                                    { text: 'Normal', value: 'none', checked: true },
-                                    { text: 'Header 1', value: 'h1' },
-                                    { text: 'Header 2', value: 'h2' },
-                                    { text: 'Header 3', value: 'h3' },
-                                    { text: 'Header 4', value: 'h4' },
-                                    { text: 'Header 5', value: 'h5' },
-                                    { text: 'Header 6', value: 'h6' }
-                                ]
-                            }
-                            ]
-                        },
-                        { type: 'separator' },
-                        
-                        { group: 'indentlist2', label: 'Indenting and Lists',
-                            buttons: [
-                                { type: 'push', label: 'Indent', value: 'indent', disabled: true },
-                                { type: 'push', label: 'Outdent', value: 'outdent', disabled: true },
-                                { type: 'push', label: 'Create an Unordered List', value: 'insertunorderedlist' },
-                                { type: 'push', label: 'Create an Ordered List', value: 'insertorderedlist' }
-                            ]
-                        },
-                        { type: 'separator' },
-                        { group: 'insertitem', label: 'Insert Item',
-                            buttons: [
-                                { type: 'push', label: 'HTML Link CTRL + SHIFT + L', value: 'createlink', disabled: true },
-                                { type: 'push', label: 'Insert Image', value: 'insertimage' }
-                            ]
-                        }
-                    ]
-                };
-            }
-
-            if (!this._defaultImageToolbarConfig) {
-                this._defaultImageToolbarConfig = {
-                    buttonType: this._defaultToolbar.buttonType,
-                    buttons: [
-                        { group: 'textflow', label: this.STR_IMAGE_TEXTFLOW + ':',
-                            buttons: [
-                                { type: 'push', label: 'Left', value: 'left' },
-                                { type: 'push', label: 'Inline', value: 'inline' },
-                                { type: 'push', label: 'Block', value: 'block' },
-                                { type: 'push', label: 'Right', value: 'right' }
-                            ]
-                        },
-                        { type: 'separator' },
-                        { group: 'padding', label: this.STR_IMAGE_PADDING + ':',
-                            buttons: [
-                                { type: 'spin', label: '0', value: 'padding', range: [0, 50] }
-                            ]
-                        },
-                        { type: 'separator' },
-                        { group: 'border', label: this.STR_IMAGE_BORDER + ':',
-                            buttons: [
-                                { type: 'select', label: this.STR_IMAGE_BORDER_SIZE, value: 'bordersize',
-                                    menu: [
-                                        { text: 'none', value: '0', checked: true },
-                                        { text: '1px', value: '1' },
-                                        { text: '2px', value: '2' },
-                                        { text: '3px', value: '3' },
-                                        { text: '4px', value: '4' },
-                                        { text: '5px', value: '5' }
-                                    ]
-                                },
-                                { type: 'select', label: this.STR_IMAGE_BORDER_TYPE, value: 'bordertype', disabled: true,
-                                    menu: [
-                                        { text: 'Solid', value: 'solid', checked: true },
-                                        { text: 'Dashed', value: 'dashed' },
-                                        { text: 'Dotted', value: 'dotted' }
-                                    ]
-                                },
-                                { type: 'color', label: 'Border Color', value: 'bordercolor', disabled: true }
-                            ]
-                        }
-                    ]
-                };
-            }
-
-            YAHOO.widget.Editor.superclass.init.call(this, p_oElement, p_oAttributes);
-        },
-        _render: function() {
-            YAHOO.widget.Editor.superclass._render.apply(this, arguments);
-            var self = this;
-            //Render the panel in another thread and delay it a little..
-            window.setTimeout(function() {
-                self._renderPanel.call(self);
-            }, 800);
-        },
-        /**
-        * @method initAttributes
-        * @description Initializes all of the configuration attributes used to create 
-        * the editor.
-        * @param {Object} attr Object literal specifying a set of 
-        * configuration attributes used to create the editor.
-        */
-        initAttributes: function(attr) {
-            YAHOO.widget.Editor.superclass.initAttributes.call(this, attr);
-
-            /**
-            * @attribute localFileWarning
-            * @description Should we throw the warning if we detect a file that is local to their machine?
-            * @default true
-            * @type Boolean
-            */            
-            this.setAttributeConfig('localFileWarning', {
-                value: attr.locaFileWarning || true
-            });
-
-            /**
-            * @attribute hiddencss
-            * @description The CSS used to show/hide hidden elements on the page, these rules must be prefixed with the class provided in <code>this.CLASS_HIDDEN</code>
-            * @default <code><pre>
-            .yui-hidden font, .yui-hidden strong, .yui-hidden b, .yui-hidden em, .yui-hidden i, .yui-hidden u,
-            .yui-hidden div, .yui-hidden p, .yui-hidden span, .yui-hidden img, .yui-hidden ul, .yui-hidden ol,
-            .yui-hidden li, .yui-hidden table {
-                border: 1px dotted #ccc;
-            }
-            .yui-hidden .yui-non {
-                border: none;
-            }
-            .yui-hidden img {
-                padding: 2px;
-            }</pre></code>
-            * @type String
-            */            
-            this.setAttributeConfig('hiddencss', {
-                value: attr.hiddencss || '.yui-hidden font, .yui-hidden strong, .yui-hidden b, .yui-hidden em, .yui-hidden i, .yui-hidden u, .yui-hidden div,.yui-hidden p,.yui-hidden span,.yui-hidden img, .yui-hidden ul, .yui-hidden ol, .yui-hidden li, .yui-hidden table { border: 1px dotted #ccc; } .yui-hidden .yui-non { border: none; } .yui-hidden img { padding: 2px; }',
-                writeOnce: true
-            });
-           
-        },
-        /**
-        * @private
-        * @method _windows
-        * @description A reference to the HTML elements used for the body of Editor Windows.
-        */
-        _windows: null,
-        /**
-        * @private
-        * @method _defaultImageToolbar
-        * @description A reference to the Toolbar Object inside Image Editor Window.
-        */
-        _defaultImageToolbar: null,
-        /**
-        * @private
-        * @method _defaultImageToolbarConfig
-        * @description Config to be used for the default Image Editor Window.
-        */
-        _defaultImageToolbarConfig: null,
-        /**
-        * @private
-        * @method _fixNodes
-        * @description Fix href and imgs as well as remove invalid HTML.
-        */
-        _fixNodes: function() {
-            YAHOO.widget.Editor.superclass._fixNodes.call(this);
-            try {
-                var url = '';
-
-                var imgs = this._getDoc().getElementsByTagName('img');
-                for (var im = 0; im < imgs.length; im++) {
-                    if (imgs[im].getAttribute('href', 2)) {
-                        url = imgs[im].getAttribute('src', 2);
-                        if (this._isLocalFile(url)) {
-                            Dom.addClass(imgs[im], this.CLASS_LOCAL_FILE);
-                        } else {
-                            Dom.removeClass(imgs[im], this.CLASS_LOCAL_FILE);
-                        }
-                    }
-                }
-                var fakeAs = this._getDoc().body.getElementsByTagName('a');
-                for (var a = 0; a < fakeAs.length; a++) {
-                    if (fakeAs[a].getAttribute('href', 2)) {
-                        url = fakeAs[a].getAttribute('href', 2);
-                        if (this._isLocalFile(url)) {
-                            Dom.addClass(fakeAs[a], this.CLASS_LOCAL_FILE);
-                        } else {
-                            Dom.removeClass(fakeAs[a], this.CLASS_LOCAL_FILE);
-                        }
-                    }
-                }
-            } catch(e) {}
-        },
-        /**
-        * @private
-        * @property _disabled
-        * @description The Toolbar items that should be disabled if there is no selection present in the editor.
-        * @type Array
-        */
-        _disabled: [ 'createlink', 'forecolor', 'backcolor', 'fontname', 'fontsize', 'superscript', 'subscript', 'removeformat', 'heading', 'indent' ],
-        /**
-        * @private
-        * @property _alwaysDisabled
-        * @description The Toolbar items that should ALWAYS be disabled event if there is a selection present in the editor.
-        * @type Object
-        */
-        _alwaysDisabled: { 'outdent': true },
-        /**
-        * @private
-        * @property _alwaysEnabled
-        * @description The Toolbar items that should ALWAYS be enabled event if there isn't a selection present in the editor.
-        * @type Object
-        */
-        _alwaysEnabled: { hiddenelements: true },
-        /**
-        * @private
-        * @method _handleKeyDown
-        * @param {Event} ev The event we are working on.
-        * @description Override method that handles some new keydown events inside the iFrame document.
-        */
-        _handleKeyDown: function(ev) {
-            YAHOO.widget.Editor.superclass._handleKeyDown.call(this, ev);
-            var doExec = false,
-                action = null,
-                exec = false;
-
-            switch (ev.keyCode) {
-                //case 219: //Left
-                case this._keyMap.JUSTIFY_LEFT.key: //Left
-                    if (this._checkKey(this._keyMap.JUSTIFY_LEFT, ev)) {
-                        action = 'justifyleft';
-                        doExec = true;
-                    }
-                    break;
-                //case 220: //Center
-                case this._keyMap.JUSTIFY_CENTER.key:
-                    if (this._checkKey(this._keyMap.JUSTIFY_CENTER, ev)) {
-                        action = 'justifycenter';
-                        doExec = true;
-                    }
-                    break;
-                case 221: //Right
-                case this._keyMap.JUSTIFY_RIGHT.key:
-                    if (this._checkKey(this._keyMap.JUSTIFY_RIGHT, ev)) {
-                        action = 'justifyright';
-                        doExec = true;
-                    }
-                    break;
-            }
-            if (doExec && action) {
-                this.execCommand(action, null);
-                Event.stopEvent(ev);
-                this.nodeChange();
-            }
-        },        
-        /**
-        * @private
-        * @method _renderCreateLinkWindow
-        * @description Pre renders the CreateLink window so we get faster window opening.
-        */
-        _renderCreateLinkWindow: function() {
-                var str = '<label for="' + this.get('id') + '_createlink_url"><strong>' + this.STR_LINK_URL + ':</strong> <input type="text" name="' + this.get('id') + '_createlink_url" id="' + this.get('id') + '_createlink_url" value=""></label>';
-                str += '<label for="' + this.get('id') + '_createlink_target"><strong>&nbsp;</strong><input type="checkbox" name="' + this.get('id') + '_createlink_target" id="' + this.get('id') + '_createlink_target" value="_blank" class="createlink_target"> ' + this.STR_LINK_NEW_WINDOW + '</label>';
-                str += '<label for="' + this.get('id') + '_createlink_title"><strong>' + this.STR_LINK_TITLE + ':</strong> <input type="text" name="' + this.get('id') + '_createlink_title" id="' + this.get('id') + '_createlink_title" value=""></label>';
-                
-                var body = document.createElement('div');
-                body.innerHTML = str;
-
-                var unlinkCont = document.createElement('div');
-                unlinkCont.className = 'removeLink';
-                var unlink = document.createElement('a');
-                unlink.href = '#';
-                unlink.innerHTML = this.STR_LINK_PROP_REMOVE;
-                unlink.title = this.STR_LINK_PROP_REMOVE;
-                Event.on(unlink, 'click', function(ev) {
-                    Event.stopEvent(ev);
-                    this.unsubscribeAll('afterExecCommand');
-                    this.execCommand('unlink');
-                    this.closeWindow();
-                }, this, true);
-                unlinkCont.appendChild(unlink);
-                body.appendChild(unlinkCont);
-                
-                this._windows.createlink = {};
-                this._windows.createlink.body = body;
-                //body.style.display = 'none';
-                Event.on(body, 'keyup', function(e) {
-                    Event.stopPropagation(e);
-                });
-                this.get('panel').editor_form.appendChild(body);
-                this.fireEvent('windowCreateLinkRender', { type: 'windowCreateLinkRender', panel: this.get('panel'), body: body });
-                return body;
-        },
-        _handleCreateLinkClick: function() {
-            var el = this._getSelectedElement();
-            if (this._isElement(el, 'img')) {
-                this.STOP_EXEC_COMMAND = true;
-                this.currentElement[0] = el;
-                this.toolbar.fireEvent('insertimageClick', { type: 'insertimageClick', target: this.toolbar });
-                this.fireEvent('afterExecCommand', { type: 'afterExecCommand', target: this });
-                return false;
-            }
-            if (this.get('limitCommands')) {
-                if (!this.toolbar.getButtonByValue('createlink')) {
-                    YAHOO.log('Toolbar Button for (createlink) was not found, skipping exec.', 'info', 'Editor');
-                    return false;
-                }
-            }
-            
-            this.on('afterExecCommand', function() {
-                var win = new YAHOO.widget.EditorWindow('createlink', {
-                    width: '350px'
-                });
-                
-                var el = this.currentElement[0],
-                    url = '',
-                    title = '',
-                    target = '',
-                    localFile = false;
-                if (el) {
-                    win.el = el;
-                    if (el.getAttribute('href', 2) !== null) {
-                        url = el.getAttribute('href', 2);
-                        if (this._isLocalFile(url)) {
-                            //Local File throw Warning
-                            YAHOO.log('Local file reference found, show local warning', 'warn', 'Editor');
-                            win.setFooter(this.STR_LOCAL_FILE_WARNING);
-                            localFile = true;
-                        } else {
-                            win.setFooter(' ');
-                        }
-                    }
-                    if (el.getAttribute('title') !== null) {
-                        title = el.getAttribute('title');
-                    }
-                    if (el.getAttribute('target') !== null) {
-                        target = el.getAttribute('target');
-                    }
-                }
-                var body = null;
-                if (this._windows.createlink && this._windows.createlink.body) {
-                    body = this._windows.createlink.body;
-                } else {
-                    body = this._renderCreateLinkWindow();
-                }
-
-                win.setHeader(this.STR_LINK_PROP_TITLE);
-                win.setBody(body);
-
-                Event.purgeElement(this.get('id') + '_createlink_url');
-
-                Dom.get(this.get('id') + '_createlink_url').value = url;
-                Dom.get(this.get('id') + '_createlink_title').value = title;
-                Dom.get(this.get('id') + '_createlink_target').checked = ((target) ? true : false);
-                
-
-                Event.onAvailable(this.get('id') + '_createlink_url', function() {
-                    var id = this.get('id');
-                    window.setTimeout(function() {
-                        try {
-                            YAHOO.util.Dom.get(id + '_createlink_url').focus();
-                        } catch (e) {}
-                    }, 50);
-
-                    if (this._isLocalFile(url)) {
-                        //Local File throw Warning
-                        Dom.addClass(this.get('id') + '_createlink_url', 'warning');
-                        YAHOO.log('Local file reference found, show local warning', 'warn', 'Editor');
-                        this.get('panel').setFooter(this.STR_LOCAL_FILE_WARNING);
-                    } else {
-                        Dom.removeClass(this.get('id') + '_createlink_url', 'warning');
-                        this.get('panel').setFooter(' ');
-                    }
-                    Event.on(this.get('id') + '_createlink_url', 'blur', function() {
-                        var url = Dom.get(this.get('id') + '_createlink_url');
-                        if (this._isLocalFile(url.value)) {
-                            //Local File throw Warning
-                            Dom.addClass(url, 'warning');
-                            YAHOO.log('Local file reference found, show local warning', 'warn', 'Editor');
-                            this.get('panel').setFooter(this.STR_LOCAL_FILE_WARNING);
-                        } else {
-                            Dom.removeClass(url, 'warning');
-                            this.get('panel').setFooter(' ');
-                        }
-                    }, this, true);
-                }, this, true);
-                
-                this.openWindow(win);
-
-            });
-        },
-        /**
-        * @private
-        * @method _handleCreateLinkWindowClose
-        * @description Handles the closing of the Link Properties Window.
-        */
-        _handleCreateLinkWindowClose: function() {
-            
-            var url = Dom.get(this.get('id') + '_createlink_url'),
-                target = Dom.get(this.get('id') + '_createlink_target'),
-                title = Dom.get(this.get('id') + '_createlink_title'),
-                el = arguments[0].win.el,
-                a = el;
-
-            if (url && url.value) {
-                var urlValue = url.value;
-                if ((urlValue.indexOf(':/'+'/') == -1) && (urlValue.substring(0,1) != '/') && (urlValue.substring(0, 6).toLowerCase() != 'mailto')) {
-                    if ((urlValue.indexOf('@') != -1) && (urlValue.substring(0, 6).toLowerCase() != 'mailto')) {
-                        //Found an @ sign, prefix with mailto:
-                        urlValue = 'mailto:' + urlValue;
-                    } else {
-                        // :// not found adding
-                        if (urlValue.substring(0, 1) != '#') {
-                            urlValue = 'http:/'+'/' + urlValue;
-                        }
-                        
-                    }
-                }
-                el.setAttribute('href', urlValue);
-                if (target.checked) {
-                    el.setAttribute('target', target.value);
-                } else {
-                    el.setAttribute('target', '');
-                }
-                el.setAttribute('title', ((title.value) ? title.value : ''));
-
-            } else {
-                var _span = this._getDoc().createElement('span');
-                _span.innerHTML = el.innerHTML;
-                Dom.addClass(_span, 'yui-non');
-                el.parentNode.replaceChild(_span, el);
-            }
-            Dom.removeClass(url, 'warning');
-            Dom.get(this.get('id') + '_createlink_url').value = '';
-            Dom.get(this.get('id') + '_createlink_title').value = '';
-            Dom.get(this.get('id') + '_createlink_target').checked = false;
-            this.nodeChange();
-            this.currentElement = [];
-            
-        },
-        /**
-        * @private
-        * @method _renderInsertImageWindow
-        * @description Pre renders the InsertImage window so we get faster window opening.
-        */
-        _renderInsertImageWindow: function() {
-                var el = this.currentElement[0];
-                var str = '<label for="' + this.get('id') + '_insertimage_url"><strong>' + this.STR_IMAGE_URL + ':</strong> <input type="text" id="' + this.get('id') + '_insertimage_url" value="" size="40"></label>';
-                var body = document.createElement('div');
-                body.innerHTML = str;
-
-                var tbarCont = document.createElement('div');
-                tbarCont.id = this.get('id') + '_img_toolbar';
-                body.appendChild(tbarCont);
-
-                var str2 = '<label for="' + this.get('id') + '_insertimage_title"><strong>' + this.STR_IMAGE_TITLE + ':</strong> <input type="text" id="' + this.get('id') + '_insertimage_title" value="" size="40"></label>';
-                str2 += '<label for="' + this.get('id') + '_insertimage_link"><strong>' + this.STR_LINK_URL + ':</strong> <input type="text" name="' + this.get('id') + '_insertimage_link" id="' + this.get('id') + '_insertimage_link" value=""></label>';
-                str2 += '<label for="' + this.get('id') + '_insertimage_target"><strong>&nbsp;</strong><input type="checkbox" name="' + this.get('id') + '_insertimage_target_" id="' + this.get('id') + '_insertimage_target" value="_blank" class="insertimage_target"> ' + this.STR_LINK_NEW_WINDOW + '</label>';
-                var div = document.createElement('div');
-                div.innerHTML = str2;
-                body.appendChild(div);
-
-                var o = {};
-                Lang.augmentObject(o, this._defaultImageToolbarConfig); //Break the config reference
-
-                var tbar = new YAHOO.widget.Toolbar(tbarCont, o);
-                tbar.editor_el = el;
-                this._defaultImageToolbar = tbar;
-                
-                var cont = tbar.get('cont');
-                var hw = document.createElement('div');
-                hw.className = 'yui-toolbar-group yui-toolbar-group-height-width height-width';
-                hw.innerHTML = '<h3>' + this.STR_IMAGE_SIZE + ':</h3>';
-                hw.innerHTML += '<span tabIndex="-1"><input type="text" size="3" value="" id="' + this.get('id') + '_insertimage_width"> x <input type="text" size="3" value="" id="' + this.get('id') + '_insertimage_height"></span>';
-                cont.insertBefore(hw, cont.firstChild);
-
-                Event.onAvailable(this.get('id') + '_insertimage_width', function() {
-                    Event.on(this.get('id') + '_insertimage_width', 'blur', function() {
-                        var value = parseInt(Dom.get(this.get('id') + '_insertimage_width').value, 10);
-                        if (value > 5) {
-                           this._defaultImageToolbar.editor_el.style.width = value + 'px';
-                            //Removed moveWindow call so the window doesn't jump
-                            //this.moveWindow();
-                        }
-                    }, this, true);
-                }, this, true);
-                Event.onAvailable(this.get('id') + '_insertimage_height', function() {
-                    Event.on(this.get('id') + '_insertimage_height', 'blur', function() {
-                        var value = parseInt(Dom.get(this.get('id') + '_insertimage_height').value, 10);
-                        if (value > 5) {
-                            this._defaultImageToolbar.editor_el.style.height = value + 'px';
-                            //Removed moveWindow call so the window doesn't jump
-                            //this.moveWindow();
-                        }
-                    }, this, true);
-                }, this, true);
-
-
-                tbar.on('colorPickerClicked', function(o) {
-                    var size = '1', type = 'solid', color = 'black', el = this._defaultImageToolbar.editor_el;
-
-                    if (el.style.borderLeftWidth) {
-                        size = parseInt(el.style.borderLeftWidth, 10);
-                    }
-                    if (el.style.borderLeftStyle) {
-                        type = el.style.borderLeftStyle;
-                    }
-                    if (el.style.borderLeftColor) {
-                        color = el.style.borderLeftColor;
-                    }
-                    var borderString = size + 'px ' + type + ' #' + o.color;
-                    el.style.border = borderString;
-                }, this, true);
-
-                tbar.on('buttonClick', function(o) {
-                    var value = o.button.value,
-                        el = this._defaultImageToolbar.editor_el,
-                        borderString = '';
-                    if (o.button.menucmd) {
-                        value = o.button.menucmd;
-                    }
-                    var size = '1', type = 'solid', color = 'black';
-
-                    /* All border calcs are done on the left border
-                        since our default interface only supports
-                        one border size/type and color */
-                    if (el.style.borderLeftWidth) {
-                        size = parseInt(el.style.borderLeftWidth, 10);
-                    }
-                    if (el.style.borderLeftStyle) {
-                        type = el.style.borderLeftStyle;
-                    }
-                    if (el.style.borderLeftColor) {
-                        color = el.style.borderLeftColor;
-                    }
-                    switch(value) {
-                        case 'bordersize':
-                            if (this.browser.webkit && this._lastImage) {
-                                Dom.removeClass(this._lastImage, 'selected');
-                                this._lastImage = null;
-                            }
-
-                            borderString = parseInt(o.button.value, 10) + 'px ' + type + ' ' + color;
-                            el.style.border = borderString;
-                            if (parseInt(o.button.value, 10) > 0) {
-                                tbar.enableButton('bordertype');
-                                tbar.enableButton('bordercolor');
-                            } else {
-                                tbar.disableButton('bordertype');
-                                tbar.disableButton('bordercolor');
-                            }
-                            break;
-                        case 'bordertype':
-                            if (this.browser.webkit && this._lastImage) {
-                                Dom.removeClass(this._lastImage, 'selected');
-                                this._lastImage = null;
-                            }
-                            borderString = size + 'px ' + o.button.value + ' ' + color;
-                            el.style.border = borderString;
-                            break;
-                        case 'right':
-                        case 'left':
-                            tbar.deselectAllButtons();
-                            el.style.display = '';
-                            el.align = o.button.value;
-                            break;
-                        case 'inline':
-                            tbar.deselectAllButtons();
-                            el.style.display = '';
-                            el.align = '';
-                            break;
-                        case 'block':
-                            tbar.deselectAllButtons();
-                            el.style.display = 'block';
-                            el.align = 'center';
-                            break;
-                        case 'padding':
-                            var _button = tbar.getButtonById(o.button.id);
-                            el.style.margin = _button.get('label') + 'px';
-                            break;
-                    }
-                    tbar.selectButton(o.button.value);
-                    if (value !== 'padding') {
-                        this.moveWindow();
-                    }
-                }, this, true);
-
-
-
-                if (this.get('localFileWarning')) {
-                    Event.on(this.get('id') + '_insertimage_link', 'blur', function() {
-                        var url = Dom.get(this.get('id') + '_insertimage_link');
-                        if (this._isLocalFile(url.value)) {
-                            //Local File throw Warning
-                            Dom.addClass(url, 'warning');
-                            YAHOO.log('Local file reference found, show local warning', 'warn', 'Editor');
-                            this.get('panel').setFooter(this.STR_LOCAL_FILE_WARNING);
-                        } else {
-                            Dom.removeClass(url, 'warning');
-                            this.get('panel').setFooter(' ');
-                            //Adobe AIR Code
-                            if ((this.browser.webkit && !this.browser.webkit3 || this.browser.air) || this.browser.opera) {                
-                                this.get('panel').setFooter(this.STR_IMAGE_COPY);
-                            }
-                        }
-                    }, this, true);
-                }
-
-                Event.on(this.get('id') + '_insertimage_url', 'blur', function() {
-                    var url = Dom.get(this.get('id') + '_insertimage_url'),
-                        el = this.currentElement[0];
-
-                    if (url.value && el) {
-                        if (url.value == el.getAttribute('src', 2)) {
-                            YAHOO.log('Images are the same, bail on blur handler', 'info', 'Editor');
-                            return false;
-                        }
-                    }
-                    YAHOO.log('Images are different, process blur handler', 'info', 'Editor');
-                    if (this._isLocalFile(url.value)) {
-                        //Local File throw Warning
-                        Dom.addClass(url, 'warning');
-                        YAHOO.log('Local file reference found, show local warning', 'warn', 'Editor');
-                        this.get('panel').setFooter(this.STR_LOCAL_FILE_WARNING);
-                    } else if (this.currentElement[0]) {
-                        Dom.removeClass(url, 'warning');
-                        this.get('panel').setFooter(' ');
-                        //Adobe AIR Code
-                        if ((this.browser.webkit && !this.browser.webkit3 || this.browser.air) || this.browser.opera) {                
-                            this.get('panel').setFooter(this.STR_IMAGE_COPY);
-                        }
-                        
-                        if (url && url.value && (url.value != this.STR_IMAGE_HERE)) {
-                            this.currentElement[0].setAttribute('src', url.value);
-                            var self = this,
-                                img = new Image();
-
-                            img.onerror = function() {
-                                url.value = self.STR_IMAGE_HERE;
-                                img.setAttribute('src', self.get('blankimage'));
-                                self.currentElement[0].setAttribute('src', self.get('blankimage'));
-                                YAHOO.util.Dom.get(self.get('id') + '_insertimage_height').value = img.height;
-                                YAHOO.util.Dom.get(self.get('id') + '_insertimage_width').value = img.width;
-                            };
-                            var id = this.get('id');
-                            window.setTimeout(function() {
-                                YAHOO.util.Dom.get(id + '_insertimage_height').value = img.height;
-                                YAHOO.util.Dom.get(id + '_insertimage_width').value = img.width;
-                                if (self.currentElement && self.currentElement[0]) {
-                                    if (!self.currentElement[0]._height) {
-                                        self.currentElement[0]._height = img.height;
-                                    }
-                                    if (!self.currentElement[0]._width) {
-                                        self.currentElement[0]._width = img.width;
-                                    }
-                                }
-                                //Removed moveWindow call so the window doesn't jump
-                                //self.moveWindow();
-                            }, 800); //Bumped the timeout up to account for larger images..
-
-                            if (url.value != this.STR_IMAGE_HERE) {
-                                img.src = url.value;
-                            }
-                        }
-                    }
-                    }, this, true);
-
-
-
-                this._windows.insertimage = {};
-                this._windows.insertimage.body = body;
-                //body.style.display = 'none';
-                this.get('panel').editor_form.appendChild(body);
-                this.fireEvent('windowInsertImageRender', { type: 'windowInsertImageRender', panel: this.get('panel'), body: body, toolbar: tbar });
-                return body;
-        },
-        /**
-        * @private
-        * @method _handleInsertImageClick
-        * @description Opens the Image Properties Window when the insert Image button is clicked or an Image is Double Clicked.
-        */
-        _handleInsertImageClick: function() {
-            if (this.get('limitCommands')) {
-                if (!this.toolbar.getButtonByValue('insertimage')) {
-                    YAHOO.log('Toolbar Button for (insertimage) was not found, skipping exec.', 'info', 'Editor');
-                    return false;
-                }
-            }
-            this.on('afterExecCommand', function() {
-                YAHOO.log('afterExecCommand :: _handleInsertImageClick', 'info', 'Editor');
-                var el = this.currentElement[0],
-                    body = null,
-                    link = '',
-                    target = '',
-                    tbar = null,
-                    title = '',
-                    src = '',
-                    align = '',
-                    height = 75,
-                    width = 75,
-                    padding = 0,
-                    oheight = 0,
-                    owidth = 0,
-                    blankimage = false,
-                    win = new YAHOO.widget.EditorWindow('insertimage', {
-                        width: '415px'
-                    });
-
-                if (!el) {
-                    el = this._getSelectedElement();
-                }
-                if (el) {
-                    win.el = el;
-                    if (el.getAttribute('src')) {
-                        src = el.getAttribute('src', 2);
-                        if (src.indexOf(this.get('blankimage')) != -1) {
-                            src = this.STR_IMAGE_HERE;
-                            blankimage = true;
-                        }
-                    }
-                    if (el.getAttribute('alt', 2)) {
-                        title = el.getAttribute('alt', 2);
-                    }
-                    if (el.getAttribute('title', 2)) {
-                        title = el.getAttribute('title', 2);
-                    }
-
-                    if (el.parentNode && this._isElement(el.parentNode, 'a')) {
-                        link = el.parentNode.getAttribute('href', 2);
-                        if (el.parentNode.getAttribute('target') !== null) {
-                            target = el.parentNode.getAttribute('target');
-                        }
-                    }
-                    height = parseInt(el.height, 10);
-                    width = parseInt(el.width, 10);
-                    if (el.style.height) {
-                        height = parseInt(el.style.height, 10);
-                    }
-                    if (el.style.width) {
-                        width = parseInt(el.style.width, 10);
-                    }
-                    if (el.style.margin) {
-                        padding = parseInt(el.style.margin, 10);
-                    }
-                    if (!blankimage) {
-                        if (!el._height) {
-                            el._height = height;
-                        }
-                        if (!el._width) {
-                            el._width = width;
-                        }
-                        oheight = el._height;
-                        owidth = el._width;
-                    }
-                }
-                if (this._windows.insertimage && this._windows.insertimage.body) {
-                    body = this._windows.insertimage.body;
-                    this._defaultImageToolbar.resetAllButtons();
-                } else {
-                    body = this._renderInsertImageWindow();
-                }
-
-                tbar = this._defaultImageToolbar;
-                tbar.editor_el = el;
-                
-
-                var bsize = '0',
-                    btype = 'solid';
-
-                if (el.style.borderLeftWidth) {
-                    bsize = parseInt(el.style.borderLeftWidth, 10);
-                }
-                if (el.style.borderLeftStyle) {
-                    btype = el.style.borderLeftStyle;
-                }
-                var bs_button = tbar.getButtonByValue('bordersize'),
-                    bSizeStr = ((parseInt(bsize, 10) > 0) ? '' : this.STR_NONE);
-                bs_button.set('label', '<span class="yui-toolbar-bordersize-' + bsize + '">' + bSizeStr + '</span>');
-                this._updateMenuChecked('bordersize', bsize, tbar);
-
-                var bt_button = tbar.getButtonByValue('bordertype');
-                bt_button.set('label', '<span class="yui-toolbar-bordertype-' + btype + '">asdfa</span>');
-                this._updateMenuChecked('bordertype', btype, tbar);
-                if (parseInt(bsize, 10) > 0) {
-                    tbar.enableButton(bt_button);
-                    tbar.enableButton(bs_button);
-                    tbar.enableButton('bordercolor');
-                }
-
-                if ((el.align == 'right') || (el.align == 'left')) {
-                    tbar.selectButton(el.align);
-                } else if (el.style.display == 'block') {
-                    tbar.selectButton('block');
-                } else {
-                    tbar.selectButton('inline');
-                }
-                if (parseInt(el.style.marginLeft, 10) > 0) {
-                    tbar.getButtonByValue('padding').set('label', ''+parseInt(el.style.marginLeft, 10));
-                }
-                if (el.style.borderSize) {
-                    tbar.selectButton('bordersize');
-                    tbar.selectButton(parseInt(el.style.borderSize, 10));
-                }
-                tbar.getButtonByValue('padding').set('label', ''+padding);
-
-
-
-                win.setHeader(this.STR_IMAGE_PROP_TITLE);
-                win.setBody(body);
-                //Adobe AIR Code
-                if ((this.browser.webkit && !this.browser.webkit3 || this.browser.air) || this.browser.opera) {                
-                    win.setFooter(this.STR_IMAGE_COPY);
-                }
-                this.openWindow(win);
-                Dom.get(this.get('id') + '_insertimage_url').value = src;
-                Dom.get(this.get('id') + '_insertimage_title').value = title;
-                Dom.get(this.get('id') + '_insertimage_link').value = link;
-                Dom.get(this.get('id') + '_insertimage_target').checked = ((target) ? true : false);
-                Dom.get(this.get('id') + '_insertimage_width').value = width;
-                Dom.get(this.get('id') + '_insertimage_height').value = height;
-
-
-                if (((height != oheight) || (width != owidth)) && (!blankimage)) {
-                    var s = document.createElement('span');
-                    s.className = 'info';
-                    s.innerHTML = this.STR_IMAGE_ORIG_SIZE + ': ('+ owidth +' x ' + oheight + ')';
-                    if (Dom.get(this.get('id') + '_insertimage_height').nextSibling) {
-                        var old = Dom.get(this.get('id') + '_insertimage_height').nextSibling;
-                        old.parentNode.removeChild(old);
-                    }
-                    Dom.get(this.get('id') + '_insertimage_height').parentNode.appendChild(s);
-                }
-
-                this.toolbar.selectButton('insertimage');
-                var id = this.get('id');
-                window.setTimeout(function() {
-                    try {
-                        YAHOO.util.Dom.get(id + '_insertimage_url').focus();
-                        if (blankimage) {
-                            YAHOO.util.Dom.get(id + '_insertimage_url').select();
-                        }
-                    } catch (e) {}
-                }, 50);
-
-            });
-        },
-        /**
-        * @private
-        * @method _handleInsertImageWindowClose
-        * @description Handles the closing of the Image Properties Window.
-        */
-        _handleInsertImageWindowClose: function() {
-            var url = Dom.get(this.get('id') + '_insertimage_url'),
-                title = Dom.get(this.get('id') + '_insertimage_title'),
-                link = Dom.get(this.get('id') + '_insertimage_link'),
-                target = Dom.get(this.get('id') + '_insertimage_target'),
-                el = arguments[0].win.el;
-
-            if (url && url.value && (url.value != this.STR_IMAGE_HERE)) {
-                el.setAttribute('src', url.value);
-                el.setAttribute('title', title.value);
-                el.setAttribute('alt', title.value);
-                var par = el.parentNode;
-                if (link.value) {
-                    var urlValue = link.value;
-                    if ((urlValue.indexOf(':/'+'/') == -1) && (urlValue.substring(0,1) != '/') && (urlValue.substring(0, 6).toLowerCase() != 'mailto')) {
-                        if ((urlValue.indexOf('@') != -1) && (urlValue.substring(0, 6).toLowerCase() != 'mailto')) {
-                            //Found an @ sign, prefix with mailto:
-                            urlValue = 'mailto:' + urlValue;
-                        } else {
-                            // :// not found adding
-                            urlValue = 'http:/'+'/' + urlValue;
-                        }
-                    }
-                    if (par && this._isElement(par, 'a')) {
-                        par.setAttribute('href', urlValue);
-                        if (target.checked) {
-                            par.setAttribute('target', target.value);
-                        } else {
-                            par.setAttribute('target', '');
-                        }
-                    } else {
-                        var _a = this._getDoc().createElement('a');
-                        _a.setAttribute('href', urlValue);
-                        if (target.checked) {
-                            _a.setAttribute('target', target.value);
-                        } else {
-                            _a.setAttribute('target', '');
-                        }
-                        el.parentNode.replaceChild(_a, el);
-                        _a.appendChild(el);
-                    }
-                } else {
-                    if (par && this._isElement(par, 'a')) {
-                        par.parentNode.replaceChild(el, par);
-                    }
-                }
-            } else {
-                //No url/src given, remove the node from the document
-                el.parentNode.removeChild(el);
-            }
-            Dom.get(this.get('id') + '_insertimage_url').value = '';
-            Dom.get(this.get('id') + '_insertimage_title').value = '';
-            Dom.get(this.get('id') + '_insertimage_link').value = '';
-            Dom.get(this.get('id') + '_insertimage_target').checked = false;
-            Dom.get(this.get('id') + '_insertimage_width').value = 0;
-            Dom.get(this.get('id') + '_insertimage_height').value = 0;
-            this._defaultImageToolbar.resetAllButtons();
-            this.currentElement = [];
-            this.nodeChange();
-        },
-        /**
-        * @property EDITOR_PANEL_ID
-        * @description HTML id to give the properties window in the DOM.
-        * @type String
-        */
-        EDITOR_PANEL_ID: '-panel',
-        /**
-        * @private
-        * @method _renderPanel
-        * @description Renders the panel used for Editor Windows to the document so we can start using it..
-        * @return {<a href="YAHOO.widget.Overlay.html">YAHOO.widget.Overlay</a>}
-        */
-        _renderPanel: function() {
-            var panelEl = document.createElement('div');
-            Dom.addClass(panelEl, 'yui-editor-panel');
-            panelEl.id = this.get('id') + this.EDITOR_PANEL_ID;
-            panelEl.style.position = 'absolute';
-            panelEl.style.top = '-9999px';
-            panelEl.style.left = '-9999px';
-            document.body.appendChild(panelEl);
-            this.get('element_cont').insertBefore(panelEl, this.get('element_cont').get('firstChild'));
-
-                
-
-            var panel = new YAHOO.widget.Overlay(this.get('id') + this.EDITOR_PANEL_ID, {
-                    width: '300px',
-                    iframe: true,
-                    visible: false,
-                    underlay: 'none',
-                    draggable: false,
-                    close: false
-                });
-            this.set('panel', panel);
-
-            panel.setBody('---');
-            panel.setHeader(' ');
-            panel.setFooter(' ');
-
-
-            var body = document.createElement('div');
-            body.className = this.CLASS_PREFIX + '-body-cont';
-            for (var b in this.browser) {
-                if (this.browser[b]) {
-                    Dom.addClass(body, b);
-                    break;
-                }
-            }
-            Dom.addClass(body, ((YAHOO.widget.Button && (this._defaultToolbar.buttonType == 'advanced')) ? 'good-button' : 'no-button'));
-
-            var _note = document.createElement('h3');
-            _note.className = 'yui-editor-skipheader';
-            _note.innerHTML = this.STR_CLOSE_WINDOW_NOTE;
-            body.appendChild(_note);
-            var form = document.createElement('fieldset');
-            panel.editor_form = form;
-
-            body.appendChild(form);
-            var _close = document.createElement('span');
-            _close.innerHTML = 'X';
-            _close.title = this.STR_CLOSE_WINDOW;
-            _close.className = 'close';
-            
-            Event.on(_close, 'click', this.closeWindow, this, true);
-
-            var _knob = document.createElement('span');
-            _knob.innerHTML = '^';
-            _knob.className = 'knob';
-            panel.editor_knob = _knob;
-
-            var _header = document.createElement('h3');
-            panel.editor_header = _header;
-            _header.innerHTML = '<span></span>';
-
-            panel.setHeader(' '); //Clear the current header
-            panel.appendToHeader(_header);
-            _header.appendChild(_close);
-            _header.appendChild(_knob);
-            panel.setBody(' '); //Clear the current body
-            panel.setFooter(' '); //Clear the current footer
-            panel.appendToBody(body); //Append the new DOM node to it
-
-            Event.on(panel.element, 'click', function(ev) {
-                Event.stopPropagation(ev);
-            });
-
-            var fireShowEvent = function() {
-                panel.bringToTop();
-                YAHOO.util.Dom.setStyle(this.element, 'display', 'block');
-                this._handleWindowInputs(false);
-            };
-            panel.showEvent.subscribe(fireShowEvent, this, true);
-            panel.hideEvent.subscribe(function() {
-                this._handleWindowInputs(true);
-            }, this, true);
-            panel.renderEvent.subscribe(function() {
-                this._renderInsertImageWindow();
-                this._renderCreateLinkWindow();
-                this.fireEvent('windowRender', { type: 'windowRender', panel: panel });
-                this._handleWindowInputs(true);
-            }, this, true);
-
-            if (this.DOMReady) {
-                this.get('panel').render();
-            } else {
-                Event.onDOMReady(function() {
-                    this.get('panel').render();
-                }, this, true);
-            }
-            return this.get('panel');
-        },
-        /**
-        * @method _handleWindowInputs
-        * @param {Boolean} disable The state to set all inputs in all Editor windows to. Defaults to: false.
-        * @description Disables/Enables all fields inside Editor windows. Used in show/hide events to keep window fields from submitting when the parent form is submitted.
-        */
-        _handleWindowInputs: function(disable) {
-            if (!Lang.isBoolean(disable)) {
-                disable = false;
-            }
-            var inputs = this.get('panel').element.getElementsByTagName('input');
-            for (var i = 0; i < inputs.length; i++) {
-                try {
-                    inputs[i].disabled = disable;
-                } catch (e) {}
-            }
-        },
-        /**
-        * @method openWindow
-        * @param {<a href="YAHOO.widget.EditorWindow.html">YAHOO.widget.EditorWindow</a>} win A <a href="YAHOO.widget.EditorWindow.html">YAHOO.widget.EditorWindow</a> instance
-        * @description Opens a new "window/panel"
-        */
-        openWindow: function(win) {
-            
-            YAHOO.log('openWindow: ' + win.name, 'info', 'Editor');
-            var self = this;
-            window.setTimeout(function() {
-                self.toolbar.set('disabled', true); //Disable the toolbar when an editor window is open..
-            }, 10);
-            Event.on(document, 'keydown', this._closeWindow, this, true);
-            
-            if (this.currentWindow) {
-                this.closeWindow();
-            }
-            
-            var xy = Dom.getXY(this.currentElement[0]),
-            elXY = Dom.getXY(this.get('iframe').get('element')),
-            panel = this.get('panel'),
-            newXY = [(xy[0] + elXY[0] - 20), (xy[1] + elXY[1] + 10)],
-            wWidth = (parseInt(win.attrs.width, 10) / 2),
-            align = 'center',
-            body = null;
-
-            this.fireEvent('beforeOpenWindow', { type: 'beforeOpenWindow', win: win, panel: panel });
-
-            var form = panel.editor_form;
-            
-            var wins = this._windows;
-            for (var b in wins) {
-                if (Lang.hasOwnProperty(wins, b)) {
-                    if (wins[b] && wins[b].body) {
-                        if (b == win.name) {
-                            Dom.setStyle(wins[b].body, 'display', 'block');
-                        } else {
-                            Dom.setStyle(wins[b].body, 'display', 'none');
-                        }
-                    }
-                }
-            }
-            
-            if (this._windows[win.name].body) {
-                Dom.setStyle(this._windows[win.name].body, 'display', 'block');
-                form.appendChild(this._windows[win.name].body);
-            } else {
-                if (Lang.isObject(win.body)) { //Assume it's a reference
-                    form.appendChild(win.body);
-                } else { //Assume it's a string
-                    var _tmp = document.createElement('div');
-                    _tmp.innerHTML = win.body;
-                    form.appendChild(_tmp);
-                }
-            }
-            panel.editor_header.firstChild.innerHTML = win.header;
-            if (win.footer !== null) {
-                panel.setFooter(win.footer);
-            }
-            panel.cfg.setProperty('width', win.attrs.width);
-
-            this.currentWindow = win;
-            this.moveWindow(true);
-            panel.show();
-            this.fireEvent('afterOpenWindow', { type: 'afterOpenWindow', win: win, panel: panel });
-        },
-        /**
-        * @method moveWindow
-        * @param {Boolean} force Boolean to tell it to move but not use any animation (Usually done the first time the window is loaded.)
-        * @description Realign the window with the currentElement and reposition the knob above the panel.
-        */
-        moveWindow: function(force) {
-            if (!this.currentWindow) {
-                return false;
-            }
-            var win = this.currentWindow,
-                xy = Dom.getXY(this.currentElement[0]),
-                elXY = Dom.getXY(this.get('iframe').get('element')),
-                panel = this.get('panel'),
-                //newXY = [(xy[0] + elXY[0] - 20), (xy[1] + elXY[1] + 10)],
-                newXY = [(xy[0] + elXY[0]), (xy[1] + elXY[1])],
-                wWidth = (parseInt(win.attrs.width, 10) / 2),
-                align = 'center',
-                orgXY = panel.cfg.getProperty('xy') || [0,0],
-                _knob = panel.editor_knob,
-                xDiff = 0,
-                yDiff = 0,
-                anim = false;
-
-
-            newXY[0] = ((newXY[0] - wWidth) + 20);
-            //Account for the Scroll bars in a scrolled editor window.
-            newXY[0] = newXY[0] - Dom.getDocumentScrollLeft(this._getDoc());
-            newXY[1] = newXY[1] - Dom.getDocumentScrollTop(this._getDoc());
-            
-            if (this._isElement(this.currentElement[0], 'img')) {
-                if (this.currentElement[0].src.indexOf(this.get('blankimage')) != -1) {
-                    newXY[0] = (newXY[0] + (75 / 2)); //Placeholder size
-                    newXY[1] = (newXY[1] + 75); //Placeholder sizea
-                } else {
-                    var w = parseInt(this.currentElement[0].width, 10);
-                    var h = parseInt(this.currentElement[0].height, 10);
-                    newXY[0] = (newXY[0] + (w / 2));
-                    newXY[1] = (newXY[1] + h);
-                }
-                newXY[1] = newXY[1] + 15;
-            } else {
-                var fs = Dom.getStyle(this.currentElement[0], 'fontSize');
-                if (fs && fs.indexOf && fs.indexOf('px') != -1) {
-                    newXY[1] = newXY[1] + parseInt(Dom.getStyle(this.currentElement[0], 'fontSize'), 10) + 5;
-                } else {
-                    newXY[1] = newXY[1] + 20;
-                }
-            }
-            if (newXY[0] < elXY[0]) {
-                newXY[0] = elXY[0] + 5;
-                align = 'left';
-            }
-
-            if ((newXY[0] + (wWidth * 2)) > (elXY[0] + parseInt(this.get('iframe').get('element').clientWidth, 10))) {
-                newXY[0] = ((elXY[0] + parseInt(this.get('iframe').get('element').clientWidth, 10)) - (wWidth * 2) - 5);
-                align = 'right';
-            }
-            
-            try {
-                xDiff = (newXY[0] - orgXY[0]);
-                yDiff = (newXY[1] - orgXY[1]);
-            } catch (e) {}
-
-
-            var iTop = elXY[1] + parseInt(this.get('height'), 10);
-            var iLeft = elXY[0] + parseInt(this.get('width'), 10);
-            if (newXY[1] > iTop) {
-                newXY[1] = iTop;
-            }
-            if (newXY[0] > iLeft) {
-                newXY[0] = (iLeft / 2);
-            }
-            
-            //Convert negative numbers to positive so we can get the difference in distance
-            xDiff = ((xDiff < 0) ? (xDiff * -1) : xDiff);
-            yDiff = ((yDiff < 0) ? (yDiff * -1) : yDiff);
-
-            if (((xDiff > 10) || (yDiff > 10)) || force) { //Only move the window if it's supposed to move more than 10px or force was passed (new window)
-                var _knobLeft = 0,
-                    elW = 0;
-
-                if (this.currentElement[0].width) {
-                    elW = (parseInt(this.currentElement[0].width, 10) / 2);
-                }
-
-                var leftOffset = xy[0] + elXY[0] + elW;
-                _knobLeft = leftOffset - newXY[0];
-                //Check to see if the knob will go off either side & reposition it
-                if (_knobLeft > (parseInt(win.attrs.width, 10) - 1)) {
-                    _knobLeft = ((parseInt(win.attrs.width, 10) - 30) - 1);
-                } else if (_knobLeft < 40) {
-                    _knobLeft = 1;
-                }
-                if (isNaN(_knobLeft)) {
-                    _knobLeft = 1;
-                }
-                if (force) {
-                    if (_knob) {
-                        _knob.style.left = _knobLeft + 'px';
-                    }
-                    //Removed Animation from a forced move..
-                    panel.cfg.setProperty('xy', newXY);
-                } else {
-                    if (this.get('animate')) {
-                        anim = new YAHOO.util.Anim(panel.element, {}, 0.5, YAHOO.util.Easing.easeOut);
-                        anim.attributes = {
-                            top: {
-                                to: newXY[1]
-                            },
-                            left: {
-                                to: newXY[0]
-                            }
-                        };
-                        anim.onComplete.subscribe(function() {
-                            panel.cfg.setProperty('xy', newXY);
-                        });
-                        //We have to animate the iframe shim at the same time as the panel or we get scrollbar bleed ..
-                        var iframeAnim = new YAHOO.util.Anim(panel.iframe, anim.attributes, 0.5, YAHOO.util.Easing.easeOut);
-
-                        var _knobAnim = new YAHOO.util.Anim(_knob, {
-                            left: {
-                                to: _knobLeft
-                            }
-                        }, 0.6, YAHOO.util.Easing.easeOut);
-                        anim.animate();
-                        iframeAnim.animate();
-                        _knobAnim.animate();
-                    } else {
-                        _knob.style.left = _knobLeft + 'px';
-                        panel.cfg.setProperty('xy', newXY);
-                    }
-                }
-            }
-        },
-        /**
-        * @private
-        * @method _closeWindow
-        * @description Close the currently open EditorWindow with the Escape key.
-        * @param {Event} ev The keypress Event that we are trapping
-        */
-        _closeWindow: function(ev) {
-            //if ((ev.charCode == 87) && ev.shiftKey && ev.ctrlKey) {
-            if (this._checkKey(this._keyMap.CLOSE_WINDOW, ev)) {            
-                if (this.currentWindow) {
-                    this.closeWindow();
-                }
-            }
-        },
-        /**
-        * @method closeWindow
-        * @description Close the currently open EditorWindow.
-        */
-        closeWindow: function(keepOpen) {
-            YAHOO.log('closeWindow: ' + this.currentWindow.name, 'info', 'Editor');
-            this.fireEvent('window' + this.currentWindow.name + 'Close', { type: 'window' + this.currentWindow.name + 'Close', win: this.currentWindow, el: this.currentElement[0] });
-            this.fireEvent('closeWindow', { type: 'closeWindow', win: this.currentWindow });
-            this.currentWindow = null;
-            this.get('panel').hide();
-            this.get('panel').cfg.setProperty('xy', [-900,-900]);
-            this.get('panel').syncIframe(); //Needed to move the iframe with the hidden panel
-            this.unsubscribeAll('afterExecCommand');
-            this.toolbar.set('disabled', false); //enable the toolbar now that the window is closed
-            this.toolbar.resetAllButtons();
-            this.focus();
-            Event.removeListener(document, 'keydown', this._closeWindow);
-        },
-
-        /* {{{  Command Overrides - These commands are only over written when we are using the advanced version */
-        
-        /**
-        * @method cmd_undo
-        * @description Pulls an item from the Undo stack and updates the Editor
-        * @param value Value passed from the execCommand method
-        */
-        cmd_undo: function(value) {
-            if (this._hasUndoLevel()) {
-                var c_html = this.getEditorHTML(), html;
-                if (!this._undoLevel) {
-                    this._undoLevel = this._undoCache.length;
-                }
-                this._undoLevel = (this._undoLevel - 1);
-                if (this._undoCache[this._undoLevel]) {
-                    html = this._getUndo(this._undoLevel);
-                    if (html != c_html) {
-                        this.setEditorHTML(html);
-                    } else {
-                        this._undoLevel = (this._undoLevel - 1);
-                        html = this._getUndo(this._undoLevel);
-                        if (html != c_html) {
-                            this.setEditorHTML(html);
-                        }
-                    }
-                } else {
-                    this._undoLevel = 0;
-                    this.toolbar.disableButton('undo');
-                }
-            }
-            return [false];
-        },
-
-        /**
-        * @method cmd_redo
-        * @description Pulls an item from the Undo stack and updates the Editor
-        * @param value Value passed from the execCommand method
-        */
-        cmd_redo: function(value) {
-            this._undoLevel = this._undoLevel + 1;
-            if (this._undoLevel >= this._undoCache.length) {
-                this._undoLevel = this._undoCache.length;
-            }
-            YAHOO.log(this._undoLevel + ' :: ' + this._undoCache.length, 'warn', 'SimpleEditor');
-            if (this._undoCache[this._undoLevel]) {
-                var html = this._getUndo(this._undoLevel);
-                this.setEditorHTML(html);
-            } else {
-                this.toolbar.disableButton('redo');
-            }
-            return [false];
-        },       
-        
-        /**
-        * @method cmd_heading
-        * @param value Value passed from the execCommand method
-        * @description This is an execCommand override method. It is called from execCommand when the execCommand('heading') is used.
-        */
-        cmd_heading: function(value) {
-            var exec = true,
-                el = null,
-                action = 'heading',
-                _sel = this._getSelection(),
-                _selEl = this._getSelectedElement();
-
-            if (_selEl) {
-                _sel = _selEl;
-            }
-            
-            if (this.browser.ie) {
-                action = 'formatblock';
-            }
-            if (value == this.STR_NONE) {
-                if ((_sel && _sel.tagName && (_sel.tagName.toLowerCase().substring(0,1) == 'h')) || (_sel && _sel.parentNode && _sel.parentNode.tagName && (_sel.parentNode.tagName.toLowerCase().substring(0,1) == 'h'))) {
-                    if (_sel.parentNode.tagName.toLowerCase().substring(0,1) == 'h') {
-                        _sel = _sel.parentNode;
-                    }
-                    if (this._isElement(_sel, 'html')) {
-                        return [false];
-                    }
-                    el = this._swapEl(_selEl, 'span', function(el) {
-                        el.className = 'yui-non';
-                    });
-                    this._selectNode(el);
-                    this.currentElement[0] = el;
-                }
-                exec = false;
-            } else {
-                if (this._isElement(_selEl, 'h1') || this._isElement(_selEl, 'h2') || this._isElement(_selEl, 'h3') || this._isElement(_selEl, 'h4') || this._isElement(_selEl, 'h5') || this._isElement(_selEl, 'h6')) {
-                    el = this._swapEl(_selEl, value);
-                    this._selectNode(el);
-                    this.currentElement[0] = el;
-                } else {
-                    this._createCurrentElement(value);
-                    this._selectNode(this.currentElement[0]);
-                }
-                exec = false;
-            }
-            return [exec, action];
-        },
-        /**
-        * @method cmd_hiddenelements
-        * @param value Value passed from the execCommand method
-        * @description This is an execCommand override method. It is called from execCommand when the execCommand('hiddenelements') is used.
-        */
-        cmd_hiddenelements: function(value) {
-            if (this._showingHiddenElements) {
-                //Don't auto highlight the hidden button
-                this._lastButton = null;
-                YAHOO.log('Enabling hidden CSS File', 'info', 'SimpleEditor');
-                this._showingHiddenElements = false;
-                this.toolbar.deselectButton('hiddenelements');
-                Dom.removeClass(this._getDoc().body, this.CLASS_HIDDEN);
-            } else {
-                YAHOO.log('Disabling hidden CSS File', 'info', 'SimpleEditor');
-                this._showingHiddenElements = true;
-                Dom.addClass(this._getDoc().body, this.CLASS_HIDDEN);
-                this.toolbar.selectButton('hiddenelements');
-            }
-            return [false];
-        },
-        /**
-        * @method cmd_removeformat
-        * @param value Value passed from the execCommand method
-        * @description This is an execCommand override method. It is called from execCommand when the execCommand('removeformat') is used.
-        */
-        cmd_removeformat: function(value) {
-            var exec = true;
-            /*
-            * @knownissue Remove Format issue
-            * @browser Safari 2.x
-            * @description There is an issue here with Safari, that it may not always remove the format of the item that is selected.
-            * Due to the way that Safari 2.x handles ranges, it is very difficult to determine what the selection holds.
-            * So here we are making the best possible guess and acting on it.
-            */
-            if (this.browser.webkit && !this._getDoc().queryCommandEnabled('removeformat')) {
-                var _txt = this._getSelection()+'';
-                this._createCurrentElement('span');
-                this.currentElement[0].className = 'yui-non';
-                this.currentElement[0].innerHTML = _txt;
-                for (var i = 1; i < this.currentElement.length; i++) {
-                    this.currentElement[i].parentNode.removeChild(this.currentElement[i]);
-                }
-                
-                exec = false;
-            }
-            return [exec];
-        },
-        /**
-        * @method cmd_script
-        * @param action action passed from the execCommand method
-        * @param value Value passed from the execCommand method
-        * @description This is a combined execCommand override method. It is called from the cmd_superscript and cmd_subscript methods.
-        */
-        cmd_script: function(action, value) {
-            var exec = true, tag = action.toLowerCase().substring(0, 3),
-                _span = null, _selEl = this._getSelectedElement();
-
-            if (this.browser.webkit) {
-                YAHOO.log('Safari dom fun again (' + action + ')..', 'info', 'EditorSafari');
-                if (this._isElement(_selEl, tag)) {
-                    YAHOO.log('we are a child of tag (' + tag + '), reverse process', 'info', 'EditorSafari');
-                    _span = this._swapEl(this.currentElement[0], 'span', function(el) {
-                        el.className = 'yui-non';
-                    });
-                    this._selectNode(_span);
-                } else {
-                    this._createCurrentElement(tag);
-                    var _sub = this._swapEl(this.currentElement[0], tag);
-                    this._selectNode(_sub);
-                    this.currentElement[0] = _sub;
-                }
-                exec = false;
-            }
-            return exec;
-        },
-        /**
-        * @method cmd_superscript
-        * @param value Value passed from the execCommand method
-        * @description This is an execCommand override method. It is called from execCommand when the execCommand('superscript') is used.
-        */
-        cmd_superscript: function(value) {
-            return [this.cmd_script('superscript', value)];
-        },
-        /**
-        * @method cmd_subscript
-        * @param value Value passed from the execCommand method
-        * @description This is an execCommand override method. It is called from execCommand when the execCommand('subscript') is used.
-        */
-        cmd_subscript: function(value) {
-            return [this.cmd_script('subscript', value)];
-        },
-        /**
-        * @method cmd_indent
-        * @param value Value passed from the execCommand method
-        * @description This is an execCommand override method. It is called from execCommand when the execCommand('indent') is used.
-        */
-        cmd_indent: function(value) {
-            var exec = true, selEl = this._getSelectedElement(), _bq = null;
-
-            //if (this.browser.webkit || this.browser.ie || this.browser.gecko) {
-            //if (this.browser.webkit || this.browser.ie) {
-            if (this.browser.ie) {
-                if (this._isElement(selEl, 'blockquote')) {
-                    _bq = this._getDoc().createElement('blockquote');
-                    _bq.innerHTML = selEl.innerHTML;
-                    selEl.innerHTML = '';
-                    selEl.appendChild(_bq);
-                    this._selectNode(_bq);
-                } else {
-                    _bq = this._getDoc().createElement('blockquote');
-                    var html = this._getRange().htmlText;
-                    _bq.innerHTML = html;
-                    this._createCurrentElement('blockquote');
-                    /*
-                    for (var i = 0; i < this.currentElement.length; i++) {
-                        _bq = this._getDoc().createElement('blockquote');
-                        _bq.innerHTML = this.currentElement[i].innerHTML;
-                        this.currentElement[i].parentNode.replaceChild(_bq, this.currentElement[i]);
-                        this.currentElement[i] = _bq;
-                    }
-                    */
-                    this.currentElement[0].parentNode.replaceChild(_bq, this.currentElement[0]);
-                    this.currentElement[0] = _bq;
-                    this._selectNode(this.currentElement[0]);
-                }
-                exec = false;
-            } else {
-                value = 'blockquote';
-            }
-            return [exec, 'formatblock', value];
-        },
-        /**
-        * @method cmd_outdent
-        * @param value Value passed from the execCommand method
-        * @description This is an execCommand override method. It is called from execCommand when the execCommand('outdent') is used.
-        */
-        cmd_outdent: function(value) {
-            var exec = true, selEl = this._getSelectedElement(), _bq = null, _span = null;
-            //if (this.browser.webkit || this.browser.ie || this.browser.gecko) {
-            if (this.browser.webkit || this.browser.ie) {
-            //if (this.browser.ie) {
-                selEl = this._getSelectedElement();
-                if (this._isElement(selEl, 'blockquote')) {
-                    var par = selEl.parentNode;
-                    if (this._isElement(selEl.parentNode, 'blockquote')) {
-                        par.innerHTML = selEl.innerHTML;
-                        this._selectNode(par);
-                    } else {
-                        _span = this._getDoc().createElement('span');
-                        _span.innerHTML = selEl.innerHTML;
-                        YAHOO.util.Dom.addClass(_span, 'yui-non');
-                        par.replaceChild(_span, selEl);
-                        this._selectNode(_span);
-                    }
-                } else {
-                    YAHOO.log('Can not outdent, we are not inside a blockquote', 'warn', 'Editor');
-                }
-                exec = false;
-            } else {
-                value = false;
-            }
-            return [exec, 'outdent', value];
-        },
-        /**
-        * @method cmd_justify
-        * @param dir The direction to justify
-        * @description This is a factory method for the justify family of commands.
-        */
-        cmd_justify: function(dir) {
-            if (this.browser.ie) {
-                if (this._hasSelection()) {
-                    this._createCurrentElement('span');
-                    this._swapEl(this.currentElement[0], 'div', function(el) {
-                        el.style.textAlign = dir;
-                    });
-                    
-                    return [false];
-                }
-            }
-            return [true, 'justify' + dir, ''];
-        },
-        /**
-        * @method cmd_justifycenter
-        * @param value Value passed from the execCommand method
-        * @description This is an execCommand override method. It is called from execCommand when the execCommand('justifycenter') is used.
-        */
-        cmd_justifycenter: function() {
-            return [this.cmd_justify('center')];
-        },
-        /**
-        * @method cmd_justifyleft
-        * @param value Value passed from the execCommand method
-        * @description This is an execCommand override method. It is called from execCommand when the execCommand('justifyleft') is used.
-        */
-        cmd_justifyleft: function() {
-            return [this.cmd_justify('left')];
-        },
-        /**
-        * @method cmd_justifyright
-        * @param value Value passed from the execCommand method
-        * @description This is an execCommand override method. It is called from execCommand when the execCommand('justifyright') is used.
-        */
-        cmd_justifyright: function() {
-            return [this.cmd_justify('right')];
-        },
-        /* }}}*/        
-        /**
-        * @method toString
-        * @description Returns a string representing the editor.
-        * @return {String}
-        */
-        toString: function() {
-            var str = 'Editor';
-            if (this.get && this.get('element_cont')) {
-                str = 'Editor (#' + this.get('element_cont').get('id') + ')' + ((this.get('disabled') ? ' Disabled' : ''));
-            }
-            return str;
-        }
-    });
-/**
-* @event beforeOpenWindow
-* @param {<a href="YAHOO.widget.EditorWindow.html">EditorWindow</a>} win The EditorWindow object
-* @param {Overlay} panel The Overlay object that is used to create the window.
-* @description Event fires before an Editor Window is opened. See <a href="YAHOO.util.Element.html#addListener">Element.addListener</a> for more information on listening for this event.
-* @type YAHOO.util.CustomEvent
-*/
-/**
-* @event afterOpenWindow
-* @param {<a href="YAHOO.widget.EditorWindow.html">EditorWindow</a>} win The EditorWindow object
-* @param {Overlay} panel The Overlay object that is used to create the window.
-* @description Event fires after an Editor Window is opened. See <a href="YAHOO.util.Element.html#addListener">Element.addListener</a> for more information on listening for this event.
-* @type YAHOO.util.CustomEvent
-*/
-/**
-* @event closeWindow
-* @param {<a href="YAHOO.widget.EditorWindow.html">EditorWindow</a>} win The EditorWindow object
-* @description Event fires after an Editor Window is closed. See <a href="YAHOO.util.Element.html#addListener">Element.addListener</a> for more information on listening for this event.
-* @type YAHOO.util.CustomEvent
-*/
-/**
-* @event windowCMDOpen
-* @param {<a href="YAHOO.widget.EditorWindow.html">EditorWindow</a>} win The EditorWindow object
-* @param {Overlay} panel The Overlay object that is used to create the window.
-* @description Dynamic event fired when an <a href="YAHOO.widget.EditorWindow.html">EditorWindow</a> is opened.. The dynamic event is based on the name of the window. Example Window: createlink, opening this window would fire the windowcreatelinkOpen event. See <a href="YAHOO.util.Element.html#addListener">Element.addListener</a> for more information on listening for this event.
-* @type YAHOO.util.CustomEvent
-*/
-/**
-* @event windowCMDClose
-* @param {<a href="YAHOO.widget.EditorWindow.html">EditorWindow</a>} win The EditorWindow object
-* @param {Overlay} panel The Overlay object that is used to create the window.
-* @description Dynamic event fired when an <a href="YAHOO.widget.EditorWindow.html">EditorWindow</a> is closed.. The dynamic event is based on the name of the window. Example Window: createlink, opening this window would fire the windowcreatelinkClose event. See <a href="YAHOO.util.Element.html#addListener">Element.addListener</a> for more information on listening for this event.
-* @type YAHOO.util.CustomEvent
-*/
-/**
-* @event windowRender
-* @param {<a href="YAHOO.widget.EditorWindow.html">EditorWindow</a>} win The EditorWindow object
-* @param {Overlay} panel The Overlay object that is used to create the window.
-* @description Event fired when the initial Overlay is rendered. Can be used to manipulate the content of the panel.
-* @type YAHOO.util.CustomEvent
-*/
-/**
-* @event windowInsertImageRender
-* @param {Overlay} panel The Overlay object that is used to create the window.
-* @param {HTMLElement} body The HTML element used as the body of the window..
-* @param {Toolbar} toolbar A reference to the toolbar object used inside this window.
-* @description Event fired when the pre render of the Insert Image window has finished.
-* @type YAHOO.util.CustomEvent
-*/
-/**
-* @event windowCreateLinkRender
-* @param {Overlay} panel The Overlay object that is used to create the window.
-* @param {HTMLElement} body The HTML element used as the body of the window..
-* @description Event fired when the pre render of the Create Link window has finished.
-* @type YAHOO.util.CustomEvent
-*/
-
-
-
-    /**
-     * @description Class to hold Window information between uses. We use the same panel to show the windows, so using this will allow you to configure a window before it is shown.
-     * This is what you pass to Editor.openWindow();. These parameters will not take effect until the openWindow() is called in the editor.
-     * @class EditorWindow
-     * @param {String} name The name of the window.
-     * @param {Object} attrs Attributes for the window. Current attributes used are : height and width
-    */
-    YAHOO.widget.EditorWindow = function(name, attrs) {
-        /**
-        * @private
-        * @property name
-        * @description A unique name for the window
-        */
-        this.name = name.replace(' ', '_');
-        /**
-        * @private
-        * @property attrs
-        * @description The window attributes
-        */
-        this.attrs = attrs;
-    };
-
-    YAHOO.widget.EditorWindow.prototype = {
-        /**
-        * @private
-        * @property header
-        * @description Holder for the header of the window, used in Editor.openWindow
-        */
-        header: null,
-        /**
-        * @private
-        * @property body
-        * @description Holder for the body of the window, used in Editor.openWindow
-        */
-        body: null,
-        /**
-        * @private
-        * @property footer
-        * @description Holder for the footer of the window, used in Editor.openWindow
-        */
-        footer: null,
-        /**
-        * @method setHeader
-        * @description Sets the header for the window.
-        * @param {String/HTMLElement} str The string or DOM reference to be used as the windows header.
-        */
-        setHeader: function(str) {
-            this.header = str;
-        },
-        /**
-        * @method setBody
-        * @description Sets the body for the window.
-        * @param {String/HTMLElement} str The string or DOM reference to be used as the windows body.
-        */
-        setBody: function(str) {
-            this.body = str;
-        },
-        /**
-        * @method setFooter
-        * @description Sets the footer for the window.
-        * @param {String/HTMLElement} str The string or DOM reference to be used as the windows footer.
-        */
-        setFooter: function(str) {
-            this.footer = str;
-        },
-        /**
-        * @method toString
-        * @description Returns a string representing the EditorWindow.
-        * @return {String}
-        */
-        toString: function() {
-            return 'Editor Window (' + this.name + ')';
-        }
-    };
-})();
-YAHOO.register("editor", YAHOO.widget.Editor, {version: "2.8.0r4", build: "2449"});
diff --git a/koha-tmpl/intranet-tmpl/prog/en/lib/yui/editor/editor-min.js b/koha-tmpl/intranet-tmpl/prog/en/lib/yui/editor/editor-min.js
deleted file mode 100644 (file)
index 8bcbe4c..0000000
+++ /dev/null
@@ -1,30 +0,0 @@
-/*
-Copyright (c) 2009, Yahoo! Inc. All rights reserved.
-Code licensed under the BSD License:
-http://developer.yahoo.net/yui/license.txt
-version: 2.8.0r4
-*/
-(function(){var B=YAHOO.util.Dom,A=YAHOO.util.Event,C=YAHOO.lang;if(YAHOO.widget.Button){YAHOO.widget.ToolbarButtonAdvanced=YAHOO.widget.Button;YAHOO.widget.ToolbarButtonAdvanced.prototype.buttonType="rich";YAHOO.widget.ToolbarButtonAdvanced.prototype.checkValue=function(F){var E=this.getMenu().getItems();if(E.length===0){this.getMenu()._onBeforeShow();E=this.getMenu().getItems();}for(var D=0;D<E.length;D++){E[D].cfg.setProperty("checked",false);if(E[D].value==F){E[D].cfg.setProperty("checked",true);}}};}else{YAHOO.widget.ToolbarButtonAdvanced=function(){};}YAHOO.widget.ToolbarButton=function(E,D){if(C.isObject(arguments[0])&&!B.get(E).nodeType){D=E;}var G=(D||{});var F={element:null,attributes:G};if(!F.attributes.type){F.attributes.type="push";}F.element=document.createElement("span");F.element.setAttribute("unselectable","on");F.element.className="yui-button yui-"+F.attributes.type+"-button";F.element.innerHTML='<span class="first-child"><a href="#">LABEL</a></span>';F.element.firstChild.firstChild.tabIndex="-1";F.attributes.id=(F.attributes.id||B.generateId());F.element.id=F.attributes.id;YAHOO.widget.ToolbarButton.superclass.constructor.call(this,F.element,F.attributes);};YAHOO.extend(YAHOO.widget.ToolbarButton,YAHOO.util.Element,{buttonType:"normal",_handleMouseOver:function(){if(!this.get("disabled")){this.addClass("yui-button-hover");this.addClass("yui-"+this.get("type")+"-button-hover");}},_handleMouseOut:function(){this.removeClass("yui-button-hover");this.removeClass("yui-"+this.get("type")+"-button-hover");},checkValue:function(F){if(this.get("type")=="menu"){var E=this._button.options;for(var D=0;D<E.length;D++){if(E[D].value==F){E.selectedIndex=D;}}}},init:function(E,D){YAHOO.widget.ToolbarButton.superclass.init.call(this,E,D);this.on("mouseover",this._handleMouseOver,this,true);this.on("mouseout",this._handleMouseOut,this,true);this.on("click",function(F){A.stopEvent(F);return false;},this,true);},initAttributes:function(D){YAHOO.widget.ToolbarButton.superclass.initAttributes.call(this,D);this.setAttributeConfig("value",{value:D.value});this.setAttributeConfig("menu",{value:D.menu||false});this.setAttributeConfig("type",{value:D.type,writeOnce:true,method:function(H){var G,F;if(!this._button){this._button=this.get("element").getElementsByTagName("a")[0];}switch(H){case"select":case"menu":G=document.createElement("select");G.id=this.get("id");var I=this.get("menu");for(var E=0;E<I.length;E++){F=document.createElement("option");F.innerHTML=I[E].text;F.value=I[E].value;if(I[E].checked){F.selected=true;}G.appendChild(F);}this._button.parentNode.replaceChild(G,this._button);A.on(G,"change",this._handleSelect,this,true);this._button=G;break;}}});this.setAttributeConfig("disabled",{value:D.disabled||false,method:function(E){if(E){this.addClass("yui-button-disabled");this.addClass("yui-"+this.get("type")+"-button-disabled");}else{this.removeClass("yui-button-disabled");this.removeClass("yui-"+this.get("type")+"-button-disabled");}if((this.get("type")=="menu")||(this.get("type")=="select")){this._button.disabled=E;}}});this.setAttributeConfig("label",{value:D.label,method:function(E){if(!this._button){this._button=this.get("element").getElementsByTagName("a")[0];}if(this.get("type")=="push"){this._button.innerHTML=E;}}});this.setAttributeConfig("title",{value:D.title});this.setAttributeConfig("container",{value:null,writeOnce:true,method:function(E){this.appendTo(E);}});},_handleSelect:function(E){var D=A.getTarget(E);var F=D.options[D.selectedIndex].value;this.fireEvent("change",{type:"change",value:F});},getMenu:function(){return this.get("menu");},destroy:function(){A.purgeElement(this.get("element"),true);this.get("element").parentNode.removeChild(this.get("element"));for(var D in this){if(C.hasOwnProperty(this,D)){this[D]=null;}}},fireEvent:function(E,D){if(this.DOM_EVENTS[E]&&this.get("disabled")){A.stopEvent(D);return;}YAHOO.widget.ToolbarButton.superclass.fireEvent.call(this,E,D);},toString:function(){return"ToolbarButton ("+this.get("id")+")";}});})();(function(){var C=YAHOO.util.Dom,A=YAHOO.util.Event,D=YAHOO.lang;var B=function(F){var E=F;if(D.isString(F)){E=this.getButtonById(F);}if(D.isNumber(F)){E=this.getButtonByIndex(F);}if((!(E instanceof YAHOO.widget.ToolbarButton))&&(!(E instanceof YAHOO.widget.ToolbarButtonAdvanced))){E=this.getButtonByValue(F);}if((E instanceof YAHOO.widget.ToolbarButton)||(E instanceof YAHOO.widget.ToolbarButtonAdvanced)){return E;}return false;};YAHOO.widget.Toolbar=function(I,H){if(D.isObject(arguments[0])&&!C.get(I).nodeType){H=I;}var K={};if(H){D.augmentObject(K,H);}var J={element:null,attributes:K};if(D.isString(I)&&C.get(I)){J.element=C.get(I);}else{if(D.isObject(I)&&C.get(I)&&C.get(I).nodeType){J.element=C.get(I);}}if(!J.element){J.element=document.createElement("DIV");J.element.id=C.generateId();if(K.container&&C.get(K.container)){C.get(K.container).appendChild(J.element);}}if(!J.element.id){J.element.id=((D.isString(I))?I:C.generateId());}var F=document.createElement("fieldset");var G=document.createElement("legend");G.innerHTML="Toolbar";F.appendChild(G);var E=document.createElement("DIV");J.attributes.cont=E;C.addClass(E,"yui-toolbar-subcont");F.appendChild(E);J.element.appendChild(F);J.element.tabIndex=-1;J.attributes.element=J.element;J.attributes.id=J.element.id;this._configuredButtons=[];YAHOO.widget.Toolbar.superclass.constructor.call(this,J.element,J.attributes);};YAHOO.extend(YAHOO.widget.Toolbar,YAHOO.util.Element,{_configuredButtons:null,_addMenuClasses:function(H,E,I){C.addClass(this.element,"yui-toolbar-"+I.get("value")+"-menu");if(C.hasClass(I._button.parentNode.parentNode,"yui-toolbar-select")){C.addClass(this.element,"yui-toolbar-select-menu");}var F=this.getItems();for(var G=0;G<F.length;G++){C.addClass(F[G].element,"yui-toolbar-"+I.get("value")+"-"+((F[G].value)?F[G].value.replace(/ /g,"-").toLowerCase():F[G]._oText.nodeValue.replace(/ /g,"-").toLowerCase()));C.addClass(F[G].element,"yui-toolbar-"+I.get("value")+"-"+((F[G].value)?F[G].value.replace(/ /g,"-"):F[G]._oText.nodeValue.replace(/ /g,"-")));
-}},buttonType:YAHOO.widget.ToolbarButton,dd:null,_colorData:{"#111111":"Obsidian","#2D2D2D":"Dark Gray","#434343":"Shale","#5B5B5B":"Flint","#737373":"Gray","#8B8B8B":"Concrete","#A2A2A2":"Gray","#B9B9B9":"Titanium","#000000":"Black","#D0D0D0":"Light Gray","#E6E6E6":"Silver","#FFFFFF":"White","#BFBF00":"Pumpkin","#FFFF00":"Yellow","#FFFF40":"Banana","#FFFF80":"Pale Yellow","#FFFFBF":"Butter","#525330":"Raw Siena","#898A49":"Mildew","#AEA945":"Olive","#7F7F00":"Paprika","#C3BE71":"Earth","#E0DCAA":"Khaki","#FCFAE1":"Cream","#60BF00":"Cactus","#80FF00":"Chartreuse","#A0FF40":"Green","#C0FF80":"Pale Lime","#DFFFBF":"Light Mint","#3B5738":"Green","#668F5A":"Lime Gray","#7F9757":"Yellow","#407F00":"Clover","#8A9B55":"Pistachio","#B7C296":"Light Jade","#E6EBD5":"Breakwater","#00BF00":"Spring Frost","#00FF80":"Pastel Green","#40FFA0":"Light Emerald","#80FFC0":"Sea Foam","#BFFFDF":"Sea Mist","#033D21":"Dark Forrest","#438059":"Moss","#7FA37C":"Medium Green","#007F40":"Pine","#8DAE94":"Yellow Gray Green","#ACC6B5":"Aqua Lung","#DDEBE2":"Sea Vapor","#00BFBF":"Fog","#00FFFF":"Cyan","#40FFFF":"Turquoise Blue","#80FFFF":"Light Aqua","#BFFFFF":"Pale Cyan","#033D3D":"Dark Teal","#347D7E":"Gray Turquoise","#609A9F":"Green Blue","#007F7F":"Seaweed","#96BDC4":"Green Gray","#B5D1D7":"Soapstone","#E2F1F4":"Light Turquoise","#0060BF":"Summer Sky","#0080FF":"Sky Blue","#40A0FF":"Electric Blue","#80C0FF":"Light Azure","#BFDFFF":"Ice Blue","#1B2C48":"Navy","#385376":"Biscay","#57708F":"Dusty Blue","#00407F":"Sea Blue","#7792AC":"Sky Blue Gray","#A8BED1":"Morning Sky","#DEEBF6":"Vapor","#0000BF":"Deep Blue","#0000FF":"Blue","#4040FF":"Cerulean Blue","#8080FF":"Evening Blue","#BFBFFF":"Light Blue","#212143":"Deep Indigo","#373E68":"Sea Blue","#444F75":"Night Blue","#00007F":"Indigo Blue","#585E82":"Dockside","#8687A4":"Blue Gray","#D2D1E1":"Light Blue Gray","#6000BF":"Neon Violet","#8000FF":"Blue Violet","#A040FF":"Violet Purple","#C080FF":"Violet Dusk","#DFBFFF":"Pale Lavender","#302449":"Cool Shale","#54466F":"Dark Indigo","#655A7F":"Dark Violet","#40007F":"Violet","#726284":"Smoky Violet","#9E8FA9":"Slate Gray","#DCD1DF":"Violet White","#BF00BF":"Royal Violet","#FF00FF":"Fuchsia","#FF40FF":"Magenta","#FF80FF":"Orchid","#FFBFFF":"Pale Magenta","#4A234A":"Dark Purple","#794A72":"Medium Purple","#936386":"Cool Granite","#7F007F":"Purple","#9D7292":"Purple Moon","#C0A0B6":"Pale Purple","#ECDAE5":"Pink Cloud","#BF005F":"Hot Pink","#FF007F":"Deep Pink","#FF409F":"Grape","#FF80BF":"Electric Pink","#FFBFDF":"Pink","#451528":"Purple Red","#823857":"Purple Dino","#A94A76":"Purple Gray","#7F003F":"Rose","#BC6F95":"Antique Mauve","#D8A5BB":"Cool Marble","#F7DDE9":"Pink Granite","#C00000":"Apple","#FF0000":"Fire Truck","#FF4040":"Pale Red","#FF8080":"Salmon","#FFC0C0":"Warm Pink","#441415":"Sepia","#82393C":"Rust","#AA4D4E":"Brick","#800000":"Brick Red","#BC6E6E":"Mauve","#D8A3A4":"Shrimp Pink","#F8DDDD":"Shell Pink","#BF5F00":"Dark Orange","#FF7F00":"Orange","#FF9F40":"Grapefruit","#FFBF80":"Canteloupe","#FFDFBF":"Wax","#482C1B":"Dark Brick","#855A40":"Dirt","#B27C51":"Tan","#7F3F00":"Nutmeg","#C49B71":"Mustard","#E1C4A8":"Pale Tan","#FDEEE0":"Marble"},_colorPicker:null,STR_COLLAPSE:"Collapse Toolbar",STR_EXPAND:"Expand Toolbar",STR_SPIN_LABEL:"Spin Button with value {VALUE}. Use Control Shift Up Arrow and Control Shift Down arrow keys to increase or decrease the value.",STR_SPIN_UP:"Click to increase the value of this input",STR_SPIN_DOWN:"Click to decrease the value of this input",_titlebar:null,browser:YAHOO.env.ua,_buttonList:null,_buttonGroupList:null,_sep:null,_sepCount:null,_dragHandle:null,_toolbarConfigs:{renderer:true},CLASS_CONTAINER:"yui-toolbar-container",CLASS_DRAGHANDLE:"yui-toolbar-draghandle",CLASS_SEPARATOR:"yui-toolbar-separator",CLASS_DISABLED:"yui-toolbar-disabled",CLASS_PREFIX:"yui-toolbar",init:function(F,E){YAHOO.widget.Toolbar.superclass.init.call(this,F,E);},initAttributes:function(E){YAHOO.widget.Toolbar.superclass.initAttributes.call(this,E);this.addClass(this.CLASS_CONTAINER);this.setAttributeConfig("buttonType",{value:E.buttonType||"basic",writeOnce:true,validator:function(F){switch(F){case"advanced":case"basic":return true;}return false;},method:function(F){if(F=="advanced"){if(YAHOO.widget.Button){this.buttonType=YAHOO.widget.ToolbarButtonAdvanced;}else{this.buttonType=YAHOO.widget.ToolbarButton;}}else{this.buttonType=YAHOO.widget.ToolbarButton;}}});this.setAttributeConfig("buttons",{value:[],writeOnce:true,method:function(K){var I,H,J,G,F;for(I in K){if(D.hasOwnProperty(K,I)){if(K[I].type=="separator"){this.addSeparator();}else{if(K[I].group!==undefined){J=this.addButtonGroup(K[I]);if(J){G=J.length;for(F=0;F<G;F++){if(J[F]){this._configuredButtons[this._configuredButtons.length]=J[F].id;}}}}else{H=this.addButton(K[I]);if(H){this._configuredButtons[this._configuredButtons.length]=H.id;}}}}}}});this.setAttributeConfig("disabled",{value:false,method:function(F){if(this.get("disabled")===F){return false;}if(F){this.addClass(this.CLASS_DISABLED);this.set("draggable",false);this.disableAllButtons();}else{this.removeClass(this.CLASS_DISABLED);if(this._configs.draggable._initialConfig.value){this.set("draggable",true);}this.resetAllButtons();}}});this.setAttributeConfig("cont",{value:E.cont,readOnly:true});this.setAttributeConfig("grouplabels",{value:((E.grouplabels===false)?false:true),method:function(F){if(F){C.removeClass(this.get("cont"),(this.CLASS_PREFIX+"-nogrouplabels"));}else{C.addClass(this.get("cont"),(this.CLASS_PREFIX+"-nogrouplabels"));}}});this.setAttributeConfig("titlebar",{value:false,method:function(G){if(G){if(this._titlebar&&this._titlebar.parentNode){this._titlebar.parentNode.removeChild(this._titlebar);}this._titlebar=document.createElement("DIV");this._titlebar.tabIndex="-1";A.on(this._titlebar,"focus",function(){this._handleFocus();},this,true);C.addClass(this._titlebar,this.CLASS_PREFIX+"-titlebar");if(D.isString(G)){var F=document.createElement("h2");F.tabIndex="-1";F.innerHTML='<a href="#" tabIndex="0">'+G+"</a>";
-this._titlebar.appendChild(F);A.on(F.firstChild,"click",function(H){A.stopEvent(H);});A.on([F,F.firstChild],"focus",function(){this._handleFocus();},this,true);}if(this.get("firstChild")){this.insertBefore(this._titlebar,this.get("firstChild"));}else{this.appendChild(this._titlebar);}if(this.get("collapse")){this.set("collapse",true);}}else{if(this._titlebar){if(this._titlebar&&this._titlebar.parentNode){this._titlebar.parentNode.removeChild(this._titlebar);}}}}});this.setAttributeConfig("collapse",{value:false,method:function(H){if(this._titlebar){var G=null;var F=C.getElementsByClassName("collapse","span",this._titlebar);if(H){if(F.length>0){return true;}G=document.createElement("SPAN");G.innerHTML="X";G.title=this.STR_COLLAPSE;C.addClass(G,"collapse");this._titlebar.appendChild(G);A.addListener(G,"click",function(){if(C.hasClass(this.get("cont").parentNode,"yui-toolbar-container-collapsed")){this.collapse(false);}else{this.collapse();}},this,true);}else{G=C.getElementsByClassName("collapse","span",this._titlebar);if(G[0]){if(C.hasClass(this.get("cont").parentNode,"yui-toolbar-container-collapsed")){this.collapse(false);}G[0].parentNode.removeChild(G[0]);}}}}});this.setAttributeConfig("draggable",{value:(E.draggable||false),method:function(F){if(F&&!this.get("titlebar")){if(!this._dragHandle){this._dragHandle=document.createElement("SPAN");this._dragHandle.innerHTML="|";this._dragHandle.setAttribute("title","Click to drag the toolbar");this._dragHandle.id=this.get("id")+"_draghandle";C.addClass(this._dragHandle,this.CLASS_DRAGHANDLE);if(this.get("cont").hasChildNodes()){this.get("cont").insertBefore(this._dragHandle,this.get("cont").firstChild);}else{this.get("cont").appendChild(this._dragHandle);}this.dd=new YAHOO.util.DD(this.get("id"));this.dd.setHandleElId(this._dragHandle.id);}}else{if(this._dragHandle){this._dragHandle.parentNode.removeChild(this._dragHandle);this._dragHandle=null;this.dd=null;}}if(this._titlebar){if(F){this.dd=new YAHOO.util.DD(this.get("id"));this.dd.setHandleElId(this._titlebar);C.addClass(this._titlebar,"draggable");}else{C.removeClass(this._titlebar,"draggable");if(this.dd){this.dd.unreg();this.dd=null;}}}},validator:function(G){var F=true;if(!YAHOO.util.DD){F=false;}return F;}});},addButtonGroup:function(J){if(!this.get("element")){this._queue[this._queue.length]=["addButtonGroup",arguments];return false;}if(!this.hasClass(this.CLASS_PREFIX+"-grouped")){this.addClass(this.CLASS_PREFIX+"-grouped");}var L=document.createElement("DIV");C.addClass(L,this.CLASS_PREFIX+"-group");C.addClass(L,this.CLASS_PREFIX+"-group-"+J.group);if(J.label){var F=document.createElement("h3");F.innerHTML=J.label;L.appendChild(F);}if(!this.get("grouplabels")){C.addClass(this.get("cont"),this.CLASS_PREFIX,"-nogrouplabels");}this.get("cont").appendChild(L);var I=document.createElement("ul");L.appendChild(I);if(!this._buttonGroupList){this._buttonGroupList={};}this._buttonGroupList[J.group]=I;var K=[],H;for(var G=0;G<J.buttons.length;G++){var E=document.createElement("li");E.className=this.CLASS_PREFIX+"-groupitem";I.appendChild(E);if((J.buttons[G].type!==undefined)&&J.buttons[G].type=="separator"){this.addSeparator(E);}else{J.buttons[G].container=E;H=this.addButton(J.buttons[G]);if(H){K[K.length]=H.id;}}}return K;},addButtonToGroup:function(G,H,I){var F=this._buttonGroupList[H],E=document.createElement("li");E.className=this.CLASS_PREFIX+"-groupitem";G.container=E;this.addButton(G,I);F.appendChild(E);},addButton:function(J,I){if(!this.get("element")){this._queue[this._queue.length]=["addButton",arguments];return false;}if(!this._buttonList){this._buttonList=[];}if(!J.container){J.container=this.get("cont");}if((J.type=="menu")||(J.type=="split")||(J.type=="select")){if(D.isArray(J.menu)){for(var P in J.menu){if(D.hasOwnProperty(J.menu,P)){var V={fn:function(Y,W,X){if(!J.menucmd){J.menucmd=J.value;}J.value=((X.value)?X.value:X._oText.nodeValue);},scope:this};J.menu[P].onclick=V;}}}}var Q={},N=false;for(var L in J){if(D.hasOwnProperty(J,L)){if(!this._toolbarConfigs[L]){Q[L]=J[L];}}}if(J.type=="select"){Q.type="menu";}if(J.type=="spin"){Q.type="push";}if(Q.type=="color"){if(YAHOO.widget.Overlay){Q=this._makeColorButton(Q);}else{N=true;}}if(Q.menu){if((YAHOO.widget.Overlay)&&(J.menu instanceof YAHOO.widget.Overlay)){J.menu.showEvent.subscribe(function(){this._button=Q;});}else{for(var O=0;O<Q.menu.length;O++){if(!Q.menu[O].value){Q.menu[O].value=Q.menu[O].text;}}if(this.browser.webkit){Q.focusmenu=false;}}}if(N){J=false;}else{this._configs.buttons.value[this._configs.buttons.value.length]=J;var T=new this.buttonType(Q);T.get("element").tabIndex="-1";T.get("element").setAttribute("role","button");T._selected=true;if(this.get("disabled")){T.set("disabled",true);}if(!J.id){J.id=T.get("id");}if(I){var F=T.get("element");var M=null;if(I.get){M=I.get("element").nextSibling;}else{if(I.nextSibling){M=I.nextSibling;}}if(M){M.parentNode.insertBefore(F,M);}}T.addClass(this.CLASS_PREFIX+"-"+T.get("value"));var S=document.createElement("span");S.className=this.CLASS_PREFIX+"-icon";T.get("element").insertBefore(S,T.get("firstChild"));if(T._button.tagName.toLowerCase()=="button"){T.get("element").setAttribute("unselectable","on");var U=document.createElement("a");U.innerHTML=T._button.innerHTML;U.href="#";U.tabIndex="-1";A.on(U,"click",function(W){A.stopEvent(W);});T._button.parentNode.replaceChild(U,T._button);T._button=U;}if(J.type=="select"){if(T._button.tagName.toLowerCase()=="select"){S.parentNode.removeChild(S);var G=T._button,R=T.get("element");R.parentNode.replaceChild(G,R);T._configs.element.value=G;}else{T.addClass(this.CLASS_PREFIX+"-select");}}if(J.type=="spin"){if(!D.isArray(J.range)){J.range=[10,100];}this._makeSpinButton(T,J);}T.get("element").setAttribute("title",T.get("label"));if(J.type!="spin"){if((YAHOO.widget.Overlay)&&(Q.menu instanceof YAHOO.widget.Overlay)){var H=function(Y){var W=true;if(Y.keyCode&&(Y.keyCode==9)){W=false;}if(W){if(this._colorPicker){this._colorPicker._button=J.value;
-}var X=T.getMenu().element;if(C.getStyle(X,"visibility")=="hidden"){T.getMenu().show();}else{T.getMenu().hide();}}YAHOO.util.Event.stopEvent(Y);};T.on("mousedown",H,J,this);T.on("keydown",H,J,this);}else{if((J.type!="menu")&&(J.type!="select")){T.on("keypress",this._buttonClick,J,this);T.on("mousedown",function(W){YAHOO.util.Event.stopEvent(W);this._buttonClick(W,J);},J,this);T.on("click",function(W){YAHOO.util.Event.stopEvent(W);});}else{T.on("mousedown",function(W){YAHOO.util.Event.stopEvent(W);});T.on("click",function(W){YAHOO.util.Event.stopEvent(W);});T.on("change",function(W){if(!W.target){if(!J.menucmd){J.menucmd=J.value;}J.value=W.value;this._buttonClick(W,J);}},this,true);var K=this;T.on("appendTo",function(){var W=this;if(W.getMenu()&&W.getMenu().mouseDownEvent){W.getMenu().mouseDownEvent.subscribe(function(Z,Y){var X=Y[1];YAHOO.util.Event.stopEvent(Y[0]);W._onMenuClick(Y[0],W);if(!J.menucmd){J.menucmd=J.value;}J.value=((X.value)?X.value:X._oText.nodeValue);K._buttonClick.call(K,Y[1],J);W._hideMenu();return false;});W.getMenu().clickEvent.subscribe(function(Y,X){YAHOO.util.Event.stopEvent(X[0]);});W.getMenu().mouseUpEvent.subscribe(function(Y,X){YAHOO.util.Event.stopEvent(X[0]);});}});}}}else{T.on("mousedown",function(W){YAHOO.util.Event.stopEvent(W);});T.on("click",function(W){YAHOO.util.Event.stopEvent(W);});}if(this.browser.ie){}if(this.browser.webkit){T.hasFocus=function(){return true;};}this._buttonList[this._buttonList.length]=T;if((J.type=="menu")||(J.type=="split")||(J.type=="select")){if(D.isArray(J.menu)){var E=T.getMenu();if(E&&E.renderEvent){E.renderEvent.subscribe(this._addMenuClasses,T);if(J.renderer){E.renderEvent.subscribe(J.renderer,T);}}}}}return J;},addSeparator:function(E,H){if(!this.get("element")){this._queue[this._queue.length]=["addSeparator",arguments];return false;}var F=((E)?E:this.get("cont"));if(!this.get("element")){this._queue[this._queue.length]=["addSeparator",arguments];return false;}if(this._sepCount===null){this._sepCount=0;}if(!this._sep){this._sep=document.createElement("SPAN");C.addClass(this._sep,this.CLASS_SEPARATOR);this._sep.innerHTML="|";}var G=this._sep.cloneNode(true);this._sepCount++;C.addClass(G,this.CLASS_SEPARATOR+"-"+this._sepCount);if(H){var I=null;if(H.get){I=H.get("element").nextSibling;}else{if(H.nextSibling){I=H.nextSibling;}else{I=H;}}if(I){if(I==H){I.parentNode.appendChild(G);}else{I.parentNode.insertBefore(G,I);}}}else{F.appendChild(G);}return G;},_createColorPicker:function(H){if(C.get(H+"_colors")){C.get(H+"_colors").parentNode.removeChild(C.get(H+"_colors"));}var E=document.createElement("div");E.className="yui-toolbar-colors";E.id=H+"_colors";E.style.display="none";A.on(window,"load",function(){document.body.appendChild(E);},this,true);this._colorPicker=E;var G="";for(var F in this._colorData){if(D.hasOwnProperty(this._colorData,F)){G+='<a style="background-color: '+F+'" href="#">'+F.replace("#","")+"</a>";}}G+="<span><em>X</em><strong></strong></span>";window.setTimeout(function(){E.innerHTML=G;},0);A.on(E,"mouseover",function(M){var K=this._colorPicker;var L=K.getElementsByTagName("em")[0];var J=K.getElementsByTagName("strong")[0];var I=A.getTarget(M);if(I.tagName.toLowerCase()=="a"){L.style.backgroundColor=I.style.backgroundColor;J.innerHTML=this._colorData["#"+I.innerHTML]+"<br>"+I.innerHTML;}},this,true);A.on(E,"focus",function(I){A.stopEvent(I);});A.on(E,"click",function(I){A.stopEvent(I);});A.on(E,"mousedown",function(J){A.stopEvent(J);var I=A.getTarget(J);if(I.tagName.toLowerCase()=="a"){var L=this.fireEvent("colorPickerClicked",{type:"colorPickerClicked",target:this,button:this._colorPicker._button,color:I.innerHTML,colorName:this._colorData["#"+I.innerHTML]});if(L!==false){var K={color:I.innerHTML,colorName:this._colorData["#"+I.innerHTML],value:this._colorPicker._button};this.fireEvent("buttonClick",{type:"buttonClick",target:this.get("element"),button:K});}this.getButtonByValue(this._colorPicker._button).getMenu().hide();}},this,true);},_resetColorPicker:function(){var F=this._colorPicker.getElementsByTagName("em")[0];var E=this._colorPicker.getElementsByTagName("strong")[0];F.style.backgroundColor="transparent";E.innerHTML="";},_makeColorButton:function(E){if(!this._colorPicker){this._createColorPicker(this.get("id"));}E.type="color";E.menu=new YAHOO.widget.Overlay(this.get("id")+"_"+E.value+"_menu",{visible:false,position:"absolute",iframe:true});E.menu.setBody("");E.menu.render(this.get("cont"));C.addClass(E.menu.element,"yui-button-menu");C.addClass(E.menu.element,"yui-color-button-menu");E.menu.beforeShowEvent.subscribe(function(){E.menu.cfg.setProperty("zindex",5);E.menu.cfg.setProperty("context",[this.getButtonById(E.id).get("element"),"tl","bl"]);this._resetColorPicker();var F=this._colorPicker;if(F.parentNode){F.parentNode.removeChild(F);}E.menu.setBody("");E.menu.appendToBody(F);this._colorPicker.style.display="block";},this,true);return E;},_makeSpinButton:function(R,L){R.addClass(this.CLASS_PREFIX+"-spinbutton");var S=this,N=R._button.parentNode.parentNode,I=L.range,H=document.createElement("a"),G=document.createElement("a");H.href="#";G.href="#";H.tabIndex="-1";G.tabIndex="-1";H.className="up";H.title=this.STR_SPIN_UP;H.innerHTML=this.STR_SPIN_UP;G.className="down";G.title=this.STR_SPIN_DOWN;G.innerHTML=this.STR_SPIN_DOWN;N.appendChild(H);N.appendChild(G);var M=YAHOO.lang.substitute(this.STR_SPIN_LABEL,{VALUE:R.get("label")});R.set("title",M);var Q=function(T){T=((T<I[0])?I[0]:T);T=((T>I[1])?I[1]:T);return T;};var P=this.browser;var F=false;var K=this.STR_SPIN_LABEL;if(this._titlebar&&this._titlebar.firstChild){F=this._titlebar.firstChild;}var E=function(U){YAHOO.util.Event.stopEvent(U);if(!R.get("disabled")&&(U.keyCode!=9)){var V=parseInt(R.get("label"),10);V++;V=Q(V);R.set("label",""+V);var T=YAHOO.lang.substitute(K,{VALUE:R.get("label")});R.set("title",T);if(!P.webkit&&F){}S._buttonClick(U,L);}};var O=function(U){YAHOO.util.Event.stopEvent(U);if(!R.get("disabled")&&(U.keyCode!=9)){var V=parseInt(R.get("label"),10);
-V--;V=Q(V);R.set("label",""+V);var T=YAHOO.lang.substitute(K,{VALUE:R.get("label")});R.set("title",T);if(!P.webkit&&F){}S._buttonClick(U,L);}};var J=function(T){if(T.keyCode==38){E(T);}else{if(T.keyCode==40){O(T);}else{if(T.keyCode==107&&T.shiftKey){E(T);}else{if(T.keyCode==109&&T.shiftKey){O(T);}}}}};R.on("keydown",J,this,true);A.on(H,"mousedown",function(T){A.stopEvent(T);},this,true);A.on(G,"mousedown",function(T){A.stopEvent(T);},this,true);A.on(H,"click",E,this,true);A.on(G,"click",O,this,true);},_buttonClick:function(L,F){var E=true;if(L&&L.type=="keypress"){if(L.keyCode==9){E=false;}else{if((L.keyCode===13)||(L.keyCode===0)||(L.keyCode===32)){}else{E=false;}}}if(E){var N=true,H=false;F.isSelected=this.isSelected(F.id);if(F.value){H=this.fireEvent(F.value+"Click",{type:F.value+"Click",target:this.get("element"),button:F});if(H===false){N=false;}}if(F.menucmd&&N){H=this.fireEvent(F.menucmd+"Click",{type:F.menucmd+"Click",target:this.get("element"),button:F});if(H===false){N=false;}}if(N){this.fireEvent("buttonClick",{type:"buttonClick",target:this.get("element"),button:F});}if(F.type=="select"){var K=this.getButtonById(F.id);if(K.buttonType=="rich"){var J=F.value;for(var I=0;I<F.menu.length;I++){if(F.menu[I].value==F.value){J=F.menu[I].text;break;}}K.set("label",'<span class="yui-toolbar-'+F.menucmd+"-"+(F.value).replace(/ /g,"-").toLowerCase()+'">'+J+"</span>");var M=K.getMenu().getItems();for(var G=0;G<M.length;G++){if(M[G].value.toLowerCase()==F.value.toLowerCase()){M[G].cfg.setProperty("checked",true);}else{M[G].cfg.setProperty("checked",false);}}}}if(L){A.stopEvent(L);}}},_keyNav:null,_navCounter:null,_navigateButtons:function(F){switch(F.keyCode){case 37:case 39:if(F.keyCode==37){this._navCounter--;}else{this._navCounter++;}if(this._navCounter>(this._buttonList.length-1)){this._navCounter=0;}if(this._navCounter<0){this._navCounter=(this._buttonList.length-1);}if(this._buttonList[this._navCounter]){var E=this._buttonList[this._navCounter].get("element");if(this.browser.ie){E=this._buttonList[this._navCounter].get("element").getElementsByTagName("a")[0];}if(this._buttonList[this._navCounter].get("disabled")){this._navigateButtons(F);}else{E.focus();}}break;}},_handleFocus:function(){if(!this._keyNav){var E="keypress";if(this.browser.ie){E="keydown";}A.on(this.get("element"),E,this._navigateButtons,this,true);this._keyNav=true;this._navCounter=-1;}},getButtonById:function(G){var E=this._buttonList.length;for(var F=0;F<E;F++){if(this._buttonList[F]&&this._buttonList[F].get("id")==G){return this._buttonList[F];}}return false;},getButtonByValue:function(K){var H=this.get("buttons");if(!H){return false;}var F=H.length;for(var I=0;I<F;I++){if(H[I].group!==undefined){for(var E=0;E<H[I].buttons.length;E++){if((H[I].buttons[E].value==K)||(H[I].buttons[E].menucmd==K)){return this.getButtonById(H[I].buttons[E].id);}if(H[I].buttons[E].menu){for(var J=0;J<H[I].buttons[E].menu.length;J++){if(H[I].buttons[E].menu[J].value==K){return this.getButtonById(H[I].buttons[E].id);}}}}}else{if((H[I].value==K)||(H[I].menucmd==K)){return this.getButtonById(H[I].id);}if(H[I].menu){for(var G=0;G<H[I].menu.length;G++){if(H[I].menu[G].value==K){return this.getButtonById(H[I].id);}}}}}return false;},getButtonByIndex:function(E){if(this._buttonList[E]){return this._buttonList[E];}else{return false;}},getButtons:function(){return this._buttonList;},disableButton:function(F){var E=B.call(this,F);if(E){E.set("disabled",true);}else{return false;}},enableButton:function(F){if(this.get("disabled")){return false;}var E=B.call(this,F);if(E){if(E.get("disabled")){E.set("disabled",false);}}else{return false;}},isSelected:function(F){var E=B.call(this,F);if(E){return E._selected;}return false;},selectButton:function(I,G){var F=B.call(this,I);if(F){F.addClass("yui-button-selected");F.addClass("yui-button-"+F.get("value")+"-selected");F._selected=true;if(G){if(F.buttonType=="rich"){var H=F.getMenu().getItems();for(var E=0;E<H.length;E++){if(H[E].value==G){H[E].cfg.setProperty("checked",true);F.set("label",'<span class="yui-toolbar-'+F.get("value")+"-"+(G).replace(/ /g,"-").toLowerCase()+'">'+H[E]._oText.nodeValue+"</span>");}else{H[E].cfg.setProperty("checked",false);}}}}}else{return false;}},deselectButton:function(F){var E=B.call(this,F);if(E){E.removeClass("yui-button-selected");E.removeClass("yui-button-"+E.get("value")+"-selected");E.removeClass("yui-button-hover");E._selected=false;}else{return false;}},deselectAllButtons:function(){var E=this._buttonList.length;for(var F=0;F<E;F++){this.deselectButton(this._buttonList[F]);}},disableAllButtons:function(){if(this.get("disabled")){return false;}var E=this._buttonList.length;for(var F=0;F<E;F++){this.disableButton(this._buttonList[F]);}},enableAllButtons:function(){if(this.get("disabled")){return false;}var E=this._buttonList.length;for(var F=0;F<E;F++){this.enableButton(this._buttonList[F]);}},resetAllButtons:function(I){if(!D.isObject(I)){I={};}if(this.get("disabled")||!this._buttonList){return false;}var E=this._buttonList.length;for(var F=0;F<E;F++){var H=this._buttonList[F];if(H){var G=H._configs.disabled._initialConfig.value;if(I[H.get("id")]){this.enableButton(H);this.selectButton(H);}else{if(G){this.disableButton(H);}else{this.enableButton(H);}this.deselectButton(H);}}}},destroyButton:function(J){var H=B.call(this,J);if(H){var I=H.get("id"),F=[],G=0,E=this._buttonList.length;H.destroy();for(G=0;G<E;G++){if(this._buttonList[G].get("id")!=I){F[F.length]=this._buttonList[G];}}this._buttonList=F;}else{return false;}},destroy:function(){var E=this._configuredButtons.length,F,G;for(b=0;b<E;b++){this.destroyButton(this._configuredButtons[b]);}this._configuredButtons=null;this.get("element").innerHTML="";this.get("element").className="";for(G in this){if(D.hasOwnProperty(this,G)){this[G]=null;}}return true;},collapse:function(F){var E=C.getElementsByClassName("collapse","span",this._titlebar);if(F===false){C.removeClass(this.get("cont").parentNode,"yui-toolbar-container-collapsed");
-if(E[0]){C.removeClass(E[0],"collapsed");E[0].title=this.STR_COLLAPSE;}this.fireEvent("toolbarExpanded",{type:"toolbarExpanded",target:this});}else{if(E[0]){C.addClass(E[0],"collapsed");E[0].title=this.STR_EXPAND;}C.addClass(this.get("cont").parentNode,"yui-toolbar-container-collapsed");this.fireEvent("toolbarCollapsed",{type:"toolbarCollapsed",target:this});}},toString:function(){return"Toolbar (#"+this.get("element").id+") with "+this._buttonList.length+" buttons.";}});})();(function(){var C=YAHOO.util.Dom,A=YAHOO.util.Event,D=YAHOO.lang,B=YAHOO.widget.Toolbar;YAHOO.widget.SimpleEditor=function(H,M){var G={};if(D.isObject(H)&&(!H.tagName)&&!M){D.augmentObject(G,H);H=document.createElement("textarea");this.DOMReady=true;if(G.container){var K=C.get(G.container);K.appendChild(H);}else{document.body.appendChild(H);}}else{if(M){D.augmentObject(G,M);}}var I={element:null,attributes:G},F=null;if(D.isString(H)){F=H;}else{if(I.attributes.id){F=I.attributes.id;}else{this.DOMReady=true;F=C.generateId(H);}}I.element=H;var J=document.createElement("DIV");I.attributes.element_cont=new YAHOO.util.Element(J,{id:F+"_container"});var E=document.createElement("div");C.addClass(E,"first-child");I.attributes.element_cont.appendChild(E);if(!I.attributes.toolbar_cont){I.attributes.toolbar_cont=document.createElement("DIV");I.attributes.toolbar_cont.id=F+"_toolbar";E.appendChild(I.attributes.toolbar_cont);}var L=document.createElement("DIV");E.appendChild(L);I.attributes.editor_wrapper=L;YAHOO.widget.SimpleEditor.superclass.constructor.call(this,I.element,I.attributes);};YAHOO.extend(YAHOO.widget.SimpleEditor,YAHOO.util.Element,{_resizeConfig:{handles:["br"],autoRatio:true,status:true,proxy:true,useShim:true,setSize:false},_setupResize:function(){if(!YAHOO.util.DD||!YAHOO.util.Resize){return false;}if(this.get("resize")){var E={};D.augmentObject(E,this._resizeConfig);this.resize=new YAHOO.util.Resize(this.get("element_cont").get("element"),E);this.resize.on("resize",function(G){var K=this.get("animate");this.set("animate",false);this.set("width",G.width+"px");var H=G.height,I=(this.toolbar.get("element").clientHeight+2),J=0;if(this.dompath){J=(this.dompath.clientHeight+1);}var F=(H-I-J);this.set("height",F+"px");this.get("element_cont").setStyle("height","");this.set("animate",K);},this,true);}},resize:null,_setupDD:function(){if(!YAHOO.util.DD){return false;}if(this.get("drag")){var F=this.get("drag"),E=YAHOO.util.DD;if(F==="proxy"){E=YAHOO.util.DDProxy;}this.dd=new E(this.get("element_cont").get("element"));this.toolbar.addClass("draggable");this.dd.setHandleElId(this.toolbar._titlebar);}},dd:null,_lastCommand:null,_undoNodeChange:function(){},_storeUndo:function(){},_checkKey:function(E,H){var F=false;if((H.keyCode===E.key)){if(E.mods&&(E.mods.length>0)){var I=0;for(var G=0;G<E.mods.length;G++){if(this.browser.mac){if(E.mods[G]=="ctrl"){E.mods[G]="meta";}}if(H[E.mods[G]+"Key"]===true){I++;}}if(I===E.mods.length){F=true;}}else{F=true;}}return F;},_keyMap:{SELECT_ALL:{key:65,mods:["ctrl"]},CLOSE_WINDOW:{key:87,mods:["shift","ctrl"]},FOCUS_TOOLBAR:{key:27,mods:["shift"]},FOCUS_AFTER:{key:27},FONT_SIZE_UP:{key:38,mods:["shift","ctrl"]},FONT_SIZE_DOWN:{key:40,mods:["shift","ctrl"]},CREATE_LINK:{key:76,mods:["shift","ctrl"]},BOLD:{key:66,mods:["shift","ctrl"]},ITALIC:{key:73,mods:["shift","ctrl"]},UNDERLINE:{key:85,mods:["shift","ctrl"]},UNDO:{key:90,mods:["ctrl"]},REDO:{key:90,mods:["shift","ctrl"]},JUSTIFY_LEFT:{key:219,mods:["shift","ctrl"]},JUSTIFY_CENTER:{key:220,mods:["shift","ctrl"]},JUSTIFY_RIGHT:{key:221,mods:["shift","ctrl"]}},_cleanClassName:function(E){return E.replace(/ /g,"-").toLowerCase();},_textarea:null,_docType:'<!DOCTYPE HTML PUBLIC "-/'+"/W3C/"+"/DTD HTML 4.01/"+'/EN" "http:/'+'/www.w3.org/TR/html4/strict.dtd">',editorDirty:null,_defaultCSS:"html { height: 95%; } body { padding: 7px; background-color: #fff; font: 13px/1.22 arial,helvetica,clean,sans-serif;*font-size:small;*font:x-small; } a, a:visited, a:hover { color: blue !important; text-decoration: underline !important; cursor: text !important; } .warning-localfile { border-bottom: 1px dashed red !important; } .yui-busy { cursor: wait !important; } img.selected { border: 2px dotted #808080; } img { cursor: pointer !important; border: none; } body.ptags.webkit div.yui-wk-p { margin: 11px 0; } body.ptags.webkit div.yui-wk-div { margin: 0; }",_defaultToolbar:null,_lastButton:null,_baseHREF:function(){var E=document.location.href;if(E.indexOf("?")!==-1){E=E.substring(0,E.indexOf("?"));}E=E.substring(0,E.lastIndexOf("/"))+"/";return E;}(),_lastImage:null,_blankImageLoaded:null,_fixNodesTimer:null,_nodeChangeTimer:null,_nodeChangeDelayTimer:null,_lastNodeChangeEvent:null,_lastNodeChange:0,_rendered:null,DOMReady:null,_selection:null,_mask:null,_showingHiddenElements:null,currentWindow:null,currentEvent:null,operaEvent:null,currentFont:null,currentElement:null,dompath:null,beforeElement:null,afterElement:null,invalidHTML:{form:true,input:true,button:true,select:true,link:true,html:true,body:true,iframe:true,script:true,style:true,textarea:true},toolbar:null,_contentTimer:null,_contentTimerMax:500,_contentTimerCounter:0,_disabled:["createlink","fontname","fontsize","forecolor","backcolor"],_alwaysDisabled:{undo:true,redo:true},_alwaysEnabled:{},_semantic:{"bold":true,"italic":true,"underline":true},_tag2cmd:{"b":"bold","strong":"bold","i":"italic","em":"italic","u":"underline","sup":"superscript","sub":"subscript","img":"insertimage","a":"createlink","ul":"insertunorderedlist","ol":"insertorderedlist"},_createIframe:function(){var I=document.createElement("iframe");I.id=this.get("id")+"_editor";var G={border:"0",frameBorder:"0",marginWidth:"0",marginHeight:"0",leftMargin:"0",topMargin:"0",allowTransparency:"true",width:"100%"};if(this.get("autoHeight")){G.scrolling="no";}for(var H in G){if(D.hasOwnProperty(G,H)){I.setAttribute(H,G[H]);}}var F="javascript:;";if(this.browser.ie){F="javascript:false;";}I.setAttribute("src",F);var E=new YAHOO.util.Element(I);
-E.setStyle("visibility","hidden");return E;},_isElement:function(F,E){if(F&&F.tagName&&(F.tagName.toLowerCase()==E)){return true;}if(F&&F.getAttribute&&(F.getAttribute("tag")==E)){return true;}return false;},_hasParent:function(F,E){if(!F||!F.parentNode){return false;}while(F.parentNode){if(this._isElement(F,E)){return F;}if(F.parentNode){F=F.parentNode;}else{return false;}}return false;},_getDoc:function(){var E=false;try{if(this.get("iframe").get("element").contentWindow.document){E=this.get("iframe").get("element").contentWindow.document;return E;}}catch(F){return false;}},_getWindow:function(){return this.get("iframe").get("element").contentWindow;},focus:function(){this._getWindow().focus();},_focusWindow:function(){this.focus();},_hasSelection:function(){var G=this._getSelection();var E=this._getRange();var F=false;if(!G||!E){return F;}if(this.browser.ie||this.browser.opera){if(E.text){F=true;}if(E.html){F=true;}}else{if(this.browser.webkit){if(G+""!==""){F=true;}}else{if(G&&(G.toString()!=="")&&(G!==undefined)){F=true;}}}return F;},_getSelection:function(){var E=null;if(this._getDoc()&&this._getWindow()){if(this._getDoc().selection){E=this._getDoc().selection;}else{E=this._getWindow().getSelection();}if(this.browser.webkit){if(E.baseNode){this._selection={};this._selection.baseNode=E.baseNode;this._selection.baseOffset=E.baseOffset;this._selection.extentNode=E.extentNode;this._selection.extentOffset=E.extentOffset;}else{if(this._selection!==null){E=this._getWindow().getSelection();E.setBaseAndExtent(this._selection.baseNode,this._selection.baseOffset,this._selection.extentNode,this._selection.extentOffset);this._selection=null;}}}}return E;},_selectNode:function(F,I){if(!F){return false;}var G=this._getSelection(),E=null;if(this.browser.ie){try{E=this._getDoc().body.createTextRange();E.moveToElementText(F);E.select();}catch(H){}}else{if(this.browser.webkit){if(I){G.setBaseAndExtent(F,1,F,F.innerText.length);}else{G.setBaseAndExtent(F,0,F,F.innerText.length);}}else{if(this.browser.opera){G=this._getWindow().getSelection();E=this._getDoc().createRange();E.selectNode(F);G.removeAllRanges();G.addRange(E);}else{E=this._getDoc().createRange();E.selectNodeContents(F);G.removeAllRanges();G.addRange(E);}}}this.nodeChange();},_getRange:function(){var E=this._getSelection();if(E===null){return null;}if(this.browser.webkit&&!E.getRangeAt){var H=this._getDoc().createRange();try{H.setStart(E.anchorNode,E.anchorOffset);H.setEnd(E.focusNode,E.focusOffset);}catch(G){H=this._getWindow().getSelection()+"";}return H;}if(this.browser.ie||this.browser.opera){try{return E.createRange();}catch(F){return null;}}if(E.rangeCount>0){return E.getRangeAt(0);}return null;},_setDesignMode:function(E){if(this.get("setDesignMode")){try{this._getDoc().designMode=((E.toLowerCase()=="off")?"off":"on");}catch(F){}}},_toggleDesignMode:function(){var F=this._getDoc().designMode,E=((F.toLowerCase()=="on")?"off":"on");this._setDesignMode(E);return E;},_focused:null,_handleFocus:function(E){if(!this._focused){this._focused=true;this.fireEvent("editorWindowFocus",{type:"editorWindowFocus",target:this});}},_handleBlur:function(E){if(this._focused){this._focused=false;this.fireEvent("editorWindowBlur",{type:"editorWindowBlur",target:this});}},_initEditorEvents:function(){var F=this._getDoc(),E=this._getWindow();A.on(F,"mouseup",this._handleMouseUp,this,true);A.on(F,"mousedown",this._handleMouseDown,this,true);A.on(F,"click",this._handleClick,this,true);A.on(F,"dblclick",this._handleDoubleClick,this,true);A.on(F,"keypress",this._handleKeyPress,this,true);A.on(F,"keyup",this._handleKeyUp,this,true);A.on(F,"keydown",this._handleKeyDown,this,true);A.on(E,"focus",this._handleFocus,this,true);A.on(E,"blur",this._handleBlur,this,true);},_removeEditorEvents:function(){var F=this._getDoc(),E=this._getWindow();A.removeListener(F,"mouseup",this._handleMouseUp,this,true);A.removeListener(F,"mousedown",this._handleMouseDown,this,true);A.removeListener(F,"click",this._handleClick,this,true);A.removeListener(F,"dblclick",this._handleDoubleClick,this,true);A.removeListener(F,"keypress",this._handleKeyPress,this,true);A.removeListener(F,"keyup",this._handleKeyUp,this,true);A.removeListener(F,"keydown",this._handleKeyDown,this,true);A.removeListener(E,"focus",this._handleFocus,this,true);A.removeListener(E,"blur",this._handleBlur,this,true);},_fixWebkitDivs:function(){if(this.browser.webkit){var E=this._getDoc().body.getElementsByTagName("div");C.addClass(E,"yui-wk-div");}},_initEditor:function(F){if(this._editorInit){return;}this._editorInit=true;if(this.browser.ie){this._getDoc().body.style.margin="0";}if(!this.get("disabled")){this._setDesignMode("on");this._contentTimerCounter=0;}if(!this._getDoc().body){this._contentTimerCounter=0;this._editorInit=false;this._checkLoaded();return false;}if(!F){this.toolbar.on("buttonClick",this._handleToolbarClick,this,true);}if(!this.get("disabled")){this._initEditorEvents();this.toolbar.set("disabled",false);}if(F){this.fireEvent("editorContentReloaded",{type:"editorreloaded",target:this});}else{this.fireEvent("editorContentLoaded",{type:"editorLoaded",target:this});}this._fixWebkitDivs();if(this.get("dompath")){var E=this;setTimeout(function(){E._writeDomPath.call(E);E._setupResize.call(E);},150);}var H=[];for(var G in this.browser){if(this.browser[G]){H.push(G);}}if(this.get("ptags")){H.push("ptags");}C.addClass(this._getDoc().body,H.join(" "));this.nodeChange(true);},_checkLoaded:function(F){this._editorInit=false;this._contentTimerCounter++;if(this._contentTimer){clearTimeout(this._contentTimer);}if(this._contentTimerCounter>this._contentTimerMax){return false;}var H=false;try{if(this._getDoc()&&this._getDoc().body){if(this.browser.ie){if(this._getDoc().body.readyState=="complete"){H=true;}}else{if(this._getDoc().body._rteLoaded===true){H=true;}}}}catch(G){H=false;}if(H===true){this._initEditor(F);}else{var E=this;this._contentTimer=setTimeout(function(){E._checkLoaded.call(E,F);},20);}},_setInitialContent:function(F){var I=((this._textarea)?this.get("element").value:this.get("element").innerHTML),K=null;
-if(I===""){I="<br>";}var G=D.substitute(this.get("html"),{TITLE:this.STR_TITLE,CONTENT:this._cleanIncomingHTML(I),CSS:this.get("css"),HIDDEN_CSS:((this.get("hiddencss"))?this.get("hiddencss"):"/* No Hidden CSS */"),EXTRA_CSS:((this.get("extracss"))?this.get("extracss"):"/* No Extra CSS */")}),E=true;G=G.replace(/RIGHT_BRACKET/gi,"{");G=G.replace(/LEFT_BRACKET/gi,"}");if(document.compatMode!="BackCompat"){G=this._docType+"\n"+G;}else{}if(this.browser.ie||this.browser.webkit||this.browser.opera||(navigator.userAgent.indexOf("Firefox/1.5")!=-1)){try{if(this.browser.air){K=this._getDoc().implementation.createHTMLDocument();var L=this._getDoc();L.open();L.close();K.open();K.write(G);K.close();var H=L.importNode(K.getElementsByTagName("html")[0],true);L.replaceChild(H,L.getElementsByTagName("html")[0]);L.body._rteLoaded=true;}else{K=this._getDoc();K.open();K.write(G);K.close();}}catch(J){E=false;}}else{this.get("iframe").get("element").src="data:text/html;charset=utf-8,"+encodeURIComponent(G);}this.get("iframe").setStyle("visibility","");if(E){this._checkLoaded(F);}},_setMarkupType:function(E){switch(this.get("markup")){case"css":this._setEditorStyle(true);break;case"default":this._setEditorStyle(false);break;case"semantic":case"xhtml":if(this._semantic[E]){this._setEditorStyle(false);}else{this._setEditorStyle(true);}break;}},_setEditorStyle:function(F){try{this._getDoc().execCommand("useCSS",false,!F);}catch(E){}},_getSelectedElement:function(){var J=this._getDoc(),G=null,H=null,K=null,F=true;if(this.browser.ie){this.currentEvent=this._getWindow().event;G=this._getRange();if(G){K=G.item?G.item(0):G.parentElement();if(this._hasSelection()){}if(K===J.body){K=null;}}if((this.currentEvent!==null)&&(this.currentEvent.keyCode===0)){K=A.getTarget(this.currentEvent);}}else{H=this._getSelection();G=this._getRange();if(!H||!G){return null;}if(!this._hasSelection()&&this.browser.webkit3){}if(this.browser.gecko){if(G.startContainer){if(G.startContainer.nodeType===3){K=G.startContainer.parentNode;}else{if(G.startContainer.nodeType===1){K=G.startContainer;}}if(this.currentEvent){var E=A.getTarget(this.currentEvent);if(!this._isElement(E,"html")){if(K!==E){K=E;}}}}}if(F){if(H.anchorNode&&(H.anchorNode.nodeType==3)){if(H.anchorNode.parentNode){K=H.anchorNode.parentNode;}if(H.anchorNode.nextSibling!=H.focusNode.nextSibling){K=H.anchorNode.nextSibling;}}if(this._isElement(K,"br")){K=null;}if(!K){K=G.commonAncestorContainer;if(!G.collapsed){if(G.startContainer==G.endContainer){if(G.startOffset-G.endOffset<2){if(G.startContainer.hasChildNodes()){K=G.startContainer.childNodes[G.startOffset];}}}}}}}if(this.currentEvent!==null){try{switch(this.currentEvent.type){case"click":case"mousedown":case"mouseup":if(this.browser.webkit){K=A.getTarget(this.currentEvent);}break;default:break;}}catch(I){}}else{if((this.currentElement&&this.currentElement[0])&&(!this.browser.ie)){}}if(this.browser.opera||this.browser.webkit){if(this.currentEvent&&!K){K=YAHOO.util.Event.getTarget(this.currentEvent);}}if(!K||!K.tagName){K=J.body;}if(this._isElement(K,"html")){K=J.body;}if(this._isElement(K,"body")){K=J.body;}if(K&&!K.parentNode){K=J.body;}if(K===undefined){K=null;}return K;},_getDomPath:function(E){if(!E){E=this._getSelectedElement();}var F=[];while(E!==null){if(E.ownerDocument!=this._getDoc()){E=null;break;}if(E.nodeName&&E.nodeType&&(E.nodeType==1)){F[F.length]=E;}if(this._isElement(E,"body")){break;}E=E.parentNode;}if(F.length===0){if(this._getDoc()&&this._getDoc().body){F[0]=this._getDoc().body;}}return F.reverse();},_writeDomPath:function(){var K=this._getDomPath(),I=[],G="",L="";for(var E=0;E<K.length;E++){var M=K[E].tagName.toLowerCase();if((M=="ol")&&(K[E].type)){M+=":"+K[E].type;}if(C.hasClass(K[E],"yui-tag")){M=K[E].getAttribute("tag");}if((this.get("markup")=="semantic")||(this.get("markup")=="xhtml")){switch(M){case"b":M="strong";break;case"i":M="em";break;}}if(!C.hasClass(K[E],"yui-non")){if(C.hasClass(K[E],"yui-tag")){L=M;}else{G=((K[E].className!=="")?"."+K[E].className.replace(/ /g,"."):"");if((G.indexOf("yui")!=-1)||(G.toLowerCase().indexOf("apple-style-span")!=-1)){G="";}L=M+((K[E].id)?"#"+K[E].id:"")+G;}switch(M){case"body":L="body";break;case"a":if(K[E].getAttribute("href",2)){L+=":"+K[E].getAttribute("href",2).replace("mailto:","").replace("http:/"+"/","").replace("https:/"+"/","");}break;case"img":var F=K[E].height;var J=K[E].width;if(K[E].style.height){F=parseInt(K[E].style.height,10);}if(K[E].style.width){J=parseInt(K[E].style.width,10);}L+="("+J+"x"+F+")";break;}if(L.length>10){L='<span title="'+L+'">'+L.substring(0,10)+"..."+"</span>";}else{L='<span title="'+L+'">'+L+"</span>";}I[I.length]=L;}}var H=I.join(" "+this.SEP_DOMPATH+" ");if(this.dompath.innerHTML!=H){this.dompath.innerHTML=H;}},_fixNodes:function(){try{var K=this._getDoc(),H=[];for(var E in this.invalidHTML){if(YAHOO.lang.hasOwnProperty(this.invalidHTML,E)){if(E.toLowerCase()!="span"){var F=K.body.getElementsByTagName(E);if(F.length){for(var G=0;G<F.length;G++){H.push(F[G]);}}}}}for(var I=0;I<H.length;I++){if(H[I].parentNode){if(D.isObject(this.invalidHTML[H[I].tagName.toLowerCase()])&&this.invalidHTML[H[I].tagName.toLowerCase()].keepContents){this._swapEl(H[I],"span",function(M){M.className="yui-non";});}else{H[I].parentNode.removeChild(H[I]);}}}var L=this._getDoc().getElementsByTagName("img");C.addClass(L,"yui-img");}catch(J){}},_isNonEditable:function(G){if(this.get("allowNoEdit")){var F=A.getTarget(G);if(this._isElement(F,"html")){F=null;}var J=this._getDomPath(F);for(var E=(J.length-1);E>-1;E--){if(C.hasClass(J[E],this.CLASS_NOEDIT)){try{this._getDoc().execCommand("enableObjectResizing",false,"false");}catch(I){}this.nodeChange();A.stopEvent(G);return true;}}try{this._getDoc().execCommand("enableObjectResizing",false,"true");}catch(H){}}return false;},_setCurrentEvent:function(E){this.currentEvent=E;},_handleClick:function(G){var F=this.fireEvent("beforeEditorClick",{type:"beforeEditorClick",target:this,ev:G});if(F===false){return false;}if(this._isNonEditable(G)){return false;
-}this._setCurrentEvent(G);if(this.currentWindow){this.closeWindow();}if(this.currentWindow){this.closeWindow();}if(this.browser.webkit){var E=A.getTarget(G);if(this._isElement(E,"a")||this._isElement(E.parentNode,"a")){A.stopEvent(G);this.nodeChange();}}else{this.nodeChange();}this.fireEvent("editorClick",{type:"editorClick",target:this,ev:G});},_handleMouseUp:function(G){var F=this.fireEvent("beforeEditorMouseUp",{type:"beforeEditorMouseUp",target:this,ev:G});if(F===false){return false;}if(this._isNonEditable(G)){return false;}var E=this;if(this.browser.opera){var H=A.getTarget(G);if(this._isElement(H,"img")){this.nodeChange();if(this.operaEvent){clearTimeout(this.operaEvent);this.operaEvent=null;this._handleDoubleClick(G);}else{this.operaEvent=window.setTimeout(function(){E.operaEvent=false;},700);}}}if(this.browser.webkit||this.browser.opera){if(this.browser.webkit){A.stopEvent(G);}}this.nodeChange();this.fireEvent("editorMouseUp",{type:"editorMouseUp",target:this,ev:G});},_handleMouseDown:function(F){var E=this.fireEvent("beforeEditorMouseDown",{type:"beforeEditorMouseDown",target:this,ev:F});if(E===false){return false;}if(this._isNonEditable(F)){return false;}this._setCurrentEvent(F);var G=A.getTarget(F);if(this.browser.webkit&&this._hasSelection()){var H=this._getSelection();if(!this.browser.webkit3){H.collapse(true);}else{H.collapseToStart();}}if(this.browser.webkit&&this._lastImage){C.removeClass(this._lastImage,"selected");this._lastImage=null;}if(this._isElement(G,"img")||this._isElement(G,"a")){if(this.browser.webkit){A.stopEvent(F);if(this._isElement(G,"img")){C.addClass(G,"selected");this._lastImage=G;}}if(this.currentWindow){this.closeWindow();}this.nodeChange();}this.fireEvent("editorMouseDown",{type:"editorMouseDown",target:this,ev:F});},_handleDoubleClick:function(F){var E=this.fireEvent("beforeEditorDoubleClick",{type:"beforeEditorDoubleClick",target:this,ev:F});if(E===false){return false;}if(this._isNonEditable(F)){return false;}this._setCurrentEvent(F);var G=A.getTarget(F);if(this._isElement(G,"img")){this.currentElement[0]=G;this.toolbar.fireEvent("insertimageClick",{type:"insertimageClick",target:this.toolbar});this.fireEvent("afterExecCommand",{type:"afterExecCommand",target:this});}else{if(this._hasParent(G,"a")){this.currentElement[0]=this._hasParent(G,"a");this.toolbar.fireEvent("createlinkClick",{type:"createlinkClick",target:this.toolbar});this.fireEvent("afterExecCommand",{type:"afterExecCommand",target:this});}}this.nodeChange();this.fireEvent("editorDoubleClick",{type:"editorDoubleClick",target:this,ev:F});},_handleKeyUp:function(G){var F=this.fireEvent("beforeEditorKeyUp",{type:"beforeEditorKeyUp",target:this,ev:G});if(F===false){return false;}if(this._isNonEditable(G)){return false;}this._storeUndo();this._setCurrentEvent(G);switch(G.keyCode){case this._keyMap.SELECT_ALL.key:if(this._checkKey(this._keyMap.SELECT_ALL,G)){this.nodeChange();}break;case 32:case 35:case 36:case 37:case 38:case 39:case 40:case 46:case 8:case this._keyMap.CLOSE_WINDOW.key:if((G.keyCode==this._keyMap.CLOSE_WINDOW.key)&&this.currentWindow){if(this._checkKey(this._keyMap.CLOSE_WINDOW,G)){this.closeWindow();}}else{if(!this.browser.ie){if(this._nodeChangeTimer){clearTimeout(this._nodeChangeTimer);}var E=this;this._nodeChangeTimer=setTimeout(function(){E._nodeChangeTimer=null;E.nodeChange.call(E);},100);}else{this.nodeChange();}this.editorDirty=true;}break;}this.fireEvent("editorKeyUp",{type:"editorKeyUp",target:this,ev:G});},_handleKeyPress:function(G){var F=this.fireEvent("beforeEditorKeyPress",{type:"beforeEditorKeyPress",target:this,ev:G});if(F===false){return false;}if(this.get("allowNoEdit")){if(G&&G.keyCode&&(G.keyCode==63272)){A.stopEvent(G);}}if(this._isNonEditable(G)){return false;}this._setCurrentEvent(G);this._storeUndo();if(this.browser.opera){if(G.keyCode===13){var E=this._getSelectedElement();if(!this._isElement(E,"li")){this.execCommand("inserthtml","<br>");A.stopEvent(G);}}}if(this.browser.webkit){if(!this.browser.webkit3){if(G.keyCode&&(G.keyCode==122)&&(G.metaKey)){if(this._hasParent(this._getSelectedElement(),"li")){A.stopEvent(G);}}}this._listFix(G);}this._fixListDupIds();this.fireEvent("editorKeyPress",{type:"editorKeyPress",target:this,ev:G});},_handleKeyDown:function(X){var Z=this.fireEvent("beforeEditorKeyDown",{type:"beforeEditorKeyDown",target:this,ev:X});if(Z===false){return false;}var U=null,E=null;if(this._isNonEditable(X)){return false;}this._setCurrentEvent(X);if(this.currentWindow){this.closeWindow();}if(this.currentWindow){this.closeWindow();}var N=false,S=null,P=null,R=false;switch(X.keyCode){case this._keyMap.FOCUS_TOOLBAR.key:if(this._checkKey(this._keyMap.FOCUS_TOOLBAR,X)){var W=this.toolbar.getElementsByTagName("h2")[0];if(W&&W.firstChild){W.firstChild.focus();}}else{if(this._checkKey(this._keyMap.FOCUS_AFTER,X)){this.afterElement.focus();}}A.stopEvent(X);N=false;break;case this._keyMap.CREATE_LINK.key:if(this._hasSelection()){if(this._checkKey(this._keyMap.CREATE_LINK,X)){var F=true;if(this.get("limitCommands")){if(!this.toolbar.getButtonByValue("createlink")){F=false;}}if(F){this.execCommand("createlink","");this.toolbar.fireEvent("createlinkClick",{type:"createlinkClick",target:this.toolbar});this.fireEvent("afterExecCommand",{type:"afterExecCommand",target:this});N=false;}}}break;case this._keyMap.UNDO.key:case this._keyMap.REDO.key:if(this._checkKey(this._keyMap.REDO,X)){S="redo";N=true;}else{if(this._checkKey(this._keyMap.UNDO,X)){S="undo";N=true;}}break;case this._keyMap.BOLD.key:if(this._checkKey(this._keyMap.BOLD,X)){S="bold";N=true;}break;case this._keyMap.FONT_SIZE_UP.key:case this._keyMap.FONT_SIZE_DOWN.key:var K=false,T=false;if(this._checkKey(this._keyMap.FONT_SIZE_UP,X)){K=true;}if(this._checkKey(this._keyMap.FONT_SIZE_DOWN,X)){T=true;}if(K||T){var H=this.toolbar.getButtonByValue("fontsize"),G=parseInt(H.get("label"),10),I=(G+1);if(T){I=(G-1);}S="fontsize";P=I+"px";N=true;}break;case this._keyMap.ITALIC.key:if(this._checkKey(this._keyMap.ITALIC,X)){S="italic";
-N=true;}break;case this._keyMap.UNDERLINE.key:if(this._checkKey(this._keyMap.UNDERLINE,X)){S="underline";N=true;}break;case 9:if(this.browser.ie){E=this._getRange();U=this._getSelectedElement();if(!this._isElement(U,"li")){if(E){E.pasteHTML("&nbsp;&nbsp;&nbsp;&nbsp;");E.collapse(false);E.select();}A.stopEvent(X);}}if(this.browser.gecko>1.8){U=this._getSelectedElement();if(this._isElement(U,"li")){if(X.shiftKey){this._getDoc().execCommand("outdent",null,"");}else{this._getDoc().execCommand("indent",null,"");}}else{if(!this._hasSelection()){this.execCommand("inserthtml","&nbsp;&nbsp;&nbsp;&nbsp;");}}A.stopEvent(X);}break;case 13:var M=null,V=0;if(this.get("ptags")&&!X.shiftKey){if(this.browser.gecko){U=this._getSelectedElement();if(!this._hasParent(U,"li")){if(this._hasParent(U,"p")){M=this._getDoc().createElement("p");M.innerHTML="&nbsp;";C.insertAfter(M,U);this._selectNode(M.firstChild);}else{if(this._isElement(U,"body")){this.execCommand("insertparagraph",null);var O=this._getDoc().body.getElementsByTagName("p");for(V=0;V<O.length;V++){if(O[V].getAttribute("_moz_dirty")!==null){M=this._getDoc().createElement("p");M.innerHTML="&nbsp;";C.insertAfter(M,O[V]);this._selectNode(M.firstChild);O[V].removeAttribute("_moz_dirty");}}}else{N=true;S="insertparagraph";}}A.stopEvent(X);}}if(this.browser.webkit){U=this._getSelectedElement();if(!this._hasParent(U,"li")){this.execCommand("insertparagraph",null);var Q=this._getDoc().body.getElementsByTagName("div");for(V=0;V<Q.length;V++){if(!C.hasClass(Q[V],"yui-wk-div")){C.addClass(Q[V],"yui-wk-p");}}A.stopEvent(X);}}}else{if(this.browser.webkit){U=this._getSelectedElement();if(!this._hasParent(U,"li")){if(this.browser.webkit4){this.execCommand("insertlinebreak");}else{this.execCommand("inserthtml",'<var id="yui-br"></var>');var L=this._getDoc().getElementById("yui-br"),Y=this._getDoc().createElement("br"),J=this._getDoc().createElement("span");L.parentNode.replaceChild(Y,L);J.className="yui-non";J.innerHTML="&nbsp;";C.insertAfter(J,Y);this._selectNode(J);}A.stopEvent(X);}}if(this.browser.ie){E=this._getRange();U=this._getSelectedElement();if(!this._isElement(U,"li")){if(E){E.pasteHTML("<br>");E.collapse(false);E.select();}A.stopEvent(X);}}}break;}if(this.browser.ie){this._listFix(X);}if(N&&S){this.execCommand(S,P);A.stopEvent(X);this.nodeChange();}this._storeUndo();this.fireEvent("editorKeyDown",{type:"editorKeyDown",target:this,ev:X});},_fixListRunning:null,_fixListDupIds:function(){if(this._fixListRunning){return false;}if(this._getDoc()){this._fixListRunning=true;var E=this._getDoc().body.getElementsByTagName("li"),F=0,G={};for(F=0;F<E.length;F++){if(E[F].id){if(G[E[F].id]){E[F].id="";}G[E[F].id]=true;}}this._fixListRunning=false;}},_listFix:function(K){var M=null,I=null,E=false,G=null;if(this.browser.webkit){if(K.keyCode&&(K.keyCode==13)){if(this._hasParent(this._getSelectedElement(),"li")){var H=this._hasParent(this._getSelectedElement(),"li");if(H.previousSibling){if(H.firstChild&&(H.firstChild.length==1)){this._selectNode(H);}}}}}if(K.keyCode&&((!this.browser.webkit3&&(K.keyCode==25))||((this.browser.webkit3||!this.browser.webkit)&&((K.keyCode==9)&&K.shiftKey)))){M=this._getSelectedElement();if(this._hasParent(M,"li")){M=this._hasParent(M,"li");if(this._hasParent(M,"ul")||this._hasParent(M,"ol")){I=this._hasParent(M,"ul");if(!I){I=this._hasParent(M,"ol");}if(this._isElement(I.previousSibling,"li")){I.removeChild(M);I.parentNode.insertBefore(M,I.nextSibling);if(this.browser.ie){G=this._getDoc().body.createTextRange();G.moveToElementText(M);G.collapse(false);G.select();}if(this.browser.webkit){this._selectNode(M.firstChild);}A.stopEvent(K);}}}}if(K.keyCode&&((K.keyCode==9)&&(!K.shiftKey))){var F=this._getSelectedElement();if(this._hasParent(F,"li")){E=this._hasParent(F,"li").innerHTML;}if(this.browser.webkit){this._getDoc().execCommand("inserttext",false,"\t");}M=this._getSelectedElement();if(this._hasParent(M,"li")){I=this._hasParent(M,"li");var J=this._getDoc().createElement(I.parentNode.tagName.toLowerCase());if(this.browser.webkit){var L=C.getElementsByClassName("Apple-tab-span","span",I);if(L[0]){I.removeChild(L[0]);I.innerHTML=D.trim(I.innerHTML);if(E){I.innerHTML='<span class="yui-non">'+E+"</span>&nbsp;";}else{I.innerHTML='<span class="yui-non">&nbsp;</span>&nbsp;';}}}else{if(E){I.innerHTML=E+"&nbsp;";}else{I.innerHTML="&nbsp;";}}I.parentNode.replaceChild(J,I);J.appendChild(I);if(this.browser.webkit){this._getSelection().setBaseAndExtent(I.firstChild,1,I.firstChild,I.firstChild.innerText.length);if(!this.browser.webkit3){I.parentNode.parentNode.style.display="list-item";setTimeout(function(){I.parentNode.parentNode.style.display="block";},1);}}else{if(this.browser.ie){G=this._getDoc().body.createTextRange();G.moveToElementText(I);G.collapse(false);G.select();}else{this._selectNode(I);}}A.stopEvent(K);}if(this.browser.webkit){A.stopEvent(K);}this.nodeChange();}},nodeChange:function(E){var F=this;this._storeUndo();if(this.get("nodeChangeDelay")){this._nodeChangeDelayTimer=window.setTimeout(function(){F._nodeChangeDelayTimer=null;F._nodeChange.apply(F,arguments);},0);}else{this._nodeChange();}},_nodeChange:function(F){var H=parseInt(this.get("nodeChangeThreshold"),10),O=Math.round(new Date().getTime()/1000),R=this;if(F===true){this._lastNodeChange=0;}if((this._lastNodeChange+H)<O){if(this._fixNodesTimer===null){this._fixNodesTimer=window.setTimeout(function(){R._fixNodes.call(R);R._fixNodesTimer=null;},0);}}this._lastNodeChange=O;if(this.currentEvent){try{this._lastNodeChangeEvent=this.currentEvent.type;}catch(a){}}var Z=this.fireEvent("beforeNodeChange",{type:"beforeNodeChange",target:this});if(Z===false){return false;}if(this.get("dompath")){window.setTimeout(function(){R._writeDomPath.call(R);},0);}if(!this.get("disabled")){if(this.STOP_NODE_CHANGE){this.STOP_NODE_CHANGE=false;return false;}else{var T=this._getSelection(),Q=this._getRange(),E=this._getSelectedElement(),M=this.toolbar.getButtonByValue("fontname"),L=this.toolbar.getButtonByValue("fontsize"),J=this.toolbar.getButtonByValue("undo"),G=this.toolbar.getButtonByValue("redo");
-var N={};if(this._lastButton){N[this._lastButton.id]=true;}if(!this._isElement(E,"body")){if(M){N[M.get("id")]=true;}if(L){N[L.get("id")]=true;}}if(G){delete N[G.get("id")];}this.toolbar.resetAllButtons(N);for(var c=0;c<this._disabled.length;c++){var P=this.toolbar.getButtonByValue(this._disabled[c]);if(P&&P.get){if(this._lastButton&&(P.get("id")===this._lastButton.id)){}else{if(!this._hasSelection()&&!this.get("insert")){switch(this._disabled[c]){case"fontname":case"fontsize":break;default:this.toolbar.disableButton(P);}}else{if(!this._alwaysDisabled[this._disabled[c]]){this.toolbar.enableButton(P);}}if(!this._alwaysEnabled[this._disabled[c]]){this.toolbar.deselectButton(P);}}}}var S=this._getDomPath();var f=null,W=null;for(var X=0;X<S.length;X++){f=S[X].tagName.toLowerCase();if(S[X].getAttribute("tag")){f=S[X].getAttribute("tag").toLowerCase();}W=this._tag2cmd[f];if(W===undefined){W=[];}if(!D.isArray(W)){W=[W];}if(S[X].style.fontWeight.toLowerCase()=="bold"){W[W.length]="bold";}if(S[X].style.fontStyle.toLowerCase()=="italic"){W[W.length]="italic";}if(S[X].style.textDecoration.toLowerCase()=="underline"){W[W.length]="underline";}if(S[X].style.textDecoration.toLowerCase()=="line-through"){W[W.length]="strikethrough";}if(W.length>0){for(var V=0;V<W.length;V++){this.toolbar.selectButton(W[V]);this.toolbar.enableButton(W[V]);}}switch(S[X].style.textAlign.toLowerCase()){case"left":case"right":case"center":case"justify":var U=S[X].style.textAlign.toLowerCase();if(S[X].style.textAlign.toLowerCase()=="justify"){U="full";}this.toolbar.selectButton("justify"+U);this.toolbar.enableButton("justify"+U);break;}}if(M){var Y=M._configs.label._initialConfig.value;M.set("label",'<span class="yui-toolbar-fontname-'+this._cleanClassName(Y)+'">'+Y+"</span>");this._updateMenuChecked("fontname",Y);}if(L){L.set("label",L._configs.label._initialConfig.value);}var K=this.toolbar.getButtonByValue("heading");if(K){K.set("label",K._configs.label._initialConfig.value);this._updateMenuChecked("heading","none");}var I=this.toolbar.getButtonByValue("insertimage");if(I&&this.currentWindow&&(this.currentWindow.name=="insertimage")){this.toolbar.disableButton(I);}if(this._lastButton&&this._lastButton.isSelected){this.toolbar.deselectButton(this._lastButton.id);}this._undoNodeChange();}}this.fireEvent("afterNodeChange",{type:"afterNodeChange",target:this});},_updateMenuChecked:function(E,F,H){if(!H){H=this.toolbar;}var G=H.getButtonByValue(E);G.checkValue(F);},_handleToolbarClick:function(F){var H="";var I="";var G=F.button.value;if(F.button.menucmd){H=G;G=F.button.menucmd;}this._lastButton=F.button;if(this.STOP_EXEC_COMMAND){this.STOP_EXEC_COMMAND=false;return false;}else{this.execCommand(G,H);if(!this.browser.webkit){var E=this;setTimeout(function(){E.focus.call(E);},5);}}A.stopEvent(F);},_setupAfterElement:function(){if(!this.beforeElement){this.beforeElement=document.createElement("h2");this.beforeElement.className="yui-editor-skipheader";this.beforeElement.tabIndex="-1";this.beforeElement.innerHTML=this.STR_BEFORE_EDITOR;this.get("element_cont").get("firstChild").insertBefore(this.beforeElement,this.toolbar.get("nextSibling"));}if(!this.afterElement){this.afterElement=document.createElement("h2");this.afterElement.className="yui-editor-skipheader";this.afterElement.tabIndex="-1";this.afterElement.innerHTML=this.STR_LEAVE_EDITOR;this.get("element_cont").get("firstChild").appendChild(this.afterElement);}},_disableEditor:function(J){var I,H,G,E;if(!this.get("disabled_iframe")){I=this._createIframe();I.set("id","disabled_"+this.get("iframe").get("id"));I.setStyle("height","100%");I.setStyle("display","none");I.setStyle("visibility","visible");this.set("disabled_iframe",I);H=this.get("iframe").get("parentNode");H.appendChild(I.get("element"));}if(!I){I=this.get("disabled_iframe");}if(J){this._orgIframe=this.get("iframe");if(this.toolbar){this.toolbar.set("disabled",true);}G=this.getEditorHTML();E=this.get("iframe").get("offsetHeight");I.setStyle("visibility","");I.setStyle("position","");I.setStyle("top","");I.setStyle("left","");this._orgIframe.setStyle("visibility","hidden");this._orgIframe.setStyle("position","absolute");this._orgIframe.setStyle("top","-99999px");this._orgIframe.setStyle("left","-99999px");this.set("iframe",I);this._setInitialContent(true);if(!this._mask){this._mask=document.createElement("DIV");C.addClass(this._mask,"yui-editor-masked");if(this.browser.ie){this._mask.style.height=E+"px";}this.get("iframe").get("parentNode").appendChild(this._mask);}this.on("editorContentReloaded",function(){this._getDoc().body._rteLoaded=false;this.setEditorHTML(G);I.setStyle("display","block");this.unsubscribeAll("editorContentReloaded");});}else{if(this._mask){this._mask.parentNode.removeChild(this._mask);this._mask=null;if(this.toolbar){this.toolbar.set("disabled",false);}I.setStyle("visibility","hidden");I.setStyle("position","absolute");I.setStyle("top","-99999px");I.setStyle("left","-99999px");this._orgIframe.setStyle("visibility","");this._orgIframe.setStyle("position","");this._orgIframe.setStyle("top","");this._orgIframe.setStyle("left","");this.set("iframe",this._orgIframe);this.focus();var F=this;window.setTimeout(function(){F.nodeChange.call(F);},100);}}},SEP_DOMPATH:"<",STR_LEAVE_EDITOR:"You have left the Rich Text Editor.",STR_BEFORE_EDITOR:"This text field can contain stylized text and graphics. To cycle through all formatting options, use the keyboard shortcut Shift + Escape to place focus on the toolbar and navigate between options with your arrow keys. To exit this text editor use the Escape key and continue tabbing. <h4>Common formatting keyboard shortcuts:</h4><ul><li>Control Shift B sets text to bold</li> <li>Control Shift I sets text to italic</li> <li>Control Shift U underlines text</li> <li>Control Shift L adds an HTML link</li></ul>",STR_TITLE:"Rich Text Area.",STR_IMAGE_HERE:"Image URL Here",STR_IMAGE_URL:"Image URL",STR_LINK_URL:"Link URL",STOP_EXEC_COMMAND:false,STOP_NODE_CHANGE:false,CLASS_NOEDIT:"yui-noedit",CLASS_CONTAINER:"yui-editor-container",CLASS_EDITABLE:"yui-editor-editable",CLASS_EDITABLE_CONT:"yui-editor-editable-container",CLASS_PREFIX:"yui-editor",browser:function(){var E=YAHOO.env.ua;
-if(E.webkit>=420){E.webkit3=E.webkit;}else{E.webkit3=0;}if(E.webkit>=530){E.webkit4=E.webkit;}else{E.webkit4=0;}E.mac=false;if(navigator.userAgent.indexOf("Macintosh")!==-1){E.mac=true;}return E;}(),init:function(F,E){if(!this._defaultToolbar){this._defaultToolbar={collapse:true,titlebar:"Text Editing Tools",draggable:false,buttons:[{group:"fontstyle",label:"Font Name and Size",buttons:[{type:"select",label:"Arial",value:"fontname",disabled:true,menu:[{text:"Arial",checked:true},{text:"Arial Black"},{text:"Comic Sans MS"},{text:"Courier New"},{text:"Lucida Console"},{text:"Tahoma"},{text:"Times New Roman"},{text:"Trebuchet MS"},{text:"Verdana"}]},{type:"spin",label:"13",value:"fontsize",range:[9,75],disabled:true}]},{type:"separator"},{group:"textstyle",label:"Font Style",buttons:[{type:"push",label:"Bold CTRL + SHIFT + B",value:"bold"},{type:"push",label:"Italic CTRL + SHIFT + I",value:"italic"},{type:"push",label:"Underline CTRL + SHIFT + U",value:"underline"},{type:"push",label:"Strike Through",value:"strikethrough"},{type:"separator"},{type:"color",label:"Font Color",value:"forecolor",disabled:true},{type:"color",label:"Background Color",value:"backcolor",disabled:true}]},{type:"separator"},{group:"indentlist",label:"Lists",buttons:[{type:"push",label:"Create an Unordered List",value:"insertunorderedlist"},{type:"push",label:"Create an Ordered List",value:"insertorderedlist"}]},{type:"separator"},{group:"insertitem",label:"Insert Item",buttons:[{type:"push",label:"HTML Link CTRL + SHIFT + L",value:"createlink",disabled:true},{type:"push",label:"Insert Image",value:"insertimage"}]}]};}YAHOO.widget.SimpleEditor.superclass.init.call(this,F,E);YAHOO.widget.EditorInfo._instances[this.get("id")]=this;this.currentElement=[];this.on("contentReady",function(){this.DOMReady=true;this.fireQueue();},this,true);},initAttributes:function(E){YAHOO.widget.SimpleEditor.superclass.initAttributes.call(this,E);var F=this;this.setAttributeConfig("setDesignMode",{value:((E.setDesignMode===false)?false:true)});this.setAttributeConfig("nodeChangeDelay",{value:((E.nodeChangeDelay===false)?false:true)});this.setAttributeConfig("maxUndo",{writeOnce:true,value:E.maxUndo||30});this.setAttributeConfig("ptags",{writeOnce:true,value:E.ptags||false});this.setAttributeConfig("insert",{writeOnce:true,value:E.insert||false,method:function(K){if(K){var J={fontname:true,fontsize:true,forecolor:true,backcolor:true};var I=this._defaultToolbar.buttons;for(var H=0;H<I.length;H++){if(I[H].buttons){for(var G=0;G<I[H].buttons.length;G++){if(I[H].buttons[G].value){if(J[I[H].buttons[G].value]){delete I[H].buttons[G].disabled;}}}}}}}});this.setAttributeConfig("container",{writeOnce:true,value:E.container||false});this.setAttributeConfig("plainText",{writeOnce:true,value:E.plainText||false});this.setAttributeConfig("iframe",{value:null});this.setAttributeConfig("disabled_iframe",{value:null});this.setAttributeConfig("textarea",{value:null,writeOnce:true});this.setAttributeConfig("nodeChangeThreshold",{value:E.nodeChangeThreshold||3,validator:YAHOO.lang.isNumber});this.setAttributeConfig("allowNoEdit",{value:E.allowNoEdit||false,validator:YAHOO.lang.isBoolean});this.setAttributeConfig("limitCommands",{value:E.limitCommands||false,validator:YAHOO.lang.isBoolean});this.setAttributeConfig("element_cont",{value:E.element_cont});this.setAttributeConfig("editor_wrapper",{value:E.editor_wrapper||null,writeOnce:true});this.setAttributeConfig("height",{value:E.height||C.getStyle(F.get("element"),"height"),method:function(G){if(this._rendered){if(this.get("animate")){var H=new YAHOO.util.Anim(this.get("iframe").get("parentNode"),{height:{to:parseInt(G,10)}},0.5);H.animate();}else{C.setStyle(this.get("iframe").get("parentNode"),"height",G);}}}});this.setAttributeConfig("autoHeight",{value:E.autoHeight||false,method:function(G){if(G){if(this.get("iframe")){this.get("iframe").get("element").setAttribute("scrolling","no");}this.on("afterNodeChange",this._handleAutoHeight,this,true);this.on("editorKeyDown",this._handleAutoHeight,this,true);this.on("editorKeyPress",this._handleAutoHeight,this,true);}else{if(this.get("iframe")){this.get("iframe").get("element").setAttribute("scrolling","auto");}this.unsubscribe("afterNodeChange",this._handleAutoHeight);this.unsubscribe("editorKeyDown",this._handleAutoHeight);this.unsubscribe("editorKeyPress",this._handleAutoHeight);}}});this.setAttributeConfig("width",{value:E.width||C.getStyle(this.get("element"),"width"),method:function(G){if(this._rendered){if(this.get("animate")){var H=new YAHOO.util.Anim(this.get("element_cont").get("element"),{width:{to:parseInt(G,10)}},0.5);H.animate();}else{this.get("element_cont").setStyle("width",G);}}}});this.setAttributeConfig("blankimage",{value:E.blankimage||this._getBlankImage()});this.setAttributeConfig("css",{value:E.css||this._defaultCSS,writeOnce:true});this.setAttributeConfig("html",{value:E.html||'<html><head><title>{TITLE}</title><meta http-equiv="Content-Type" content="text/html; charset=UTF-8" /><base href="'+this._baseHREF+'"><style>{CSS}</style><style>{HIDDEN_CSS}</style><style>{EXTRA_CSS}</style></head><body onload="document.body._rteLoaded = true;">{CONTENT}</body></html>',writeOnce:true});this.setAttributeConfig("extracss",{value:E.extracss||"",writeOnce:true});this.setAttributeConfig("handleSubmit",{value:E.handleSubmit||false,method:function(G){if(this.get("element").form){if(!this._formButtons){this._formButtons=[];}if(G){A.on(this.get("element").form,"submit",this._handleFormSubmit,this,true);var H=this.get("element").form.getElementsByTagName("input");for(var J=0;J<H.length;J++){var I=H[J].getAttribute("type");if(I&&(I.toLowerCase()=="submit")){A.on(H[J],"click",this._handleFormButtonClick,this,true);this._formButtons[this._formButtons.length]=H[J];}}}else{A.removeListener(this.get("element").form,"submit",this._handleFormSubmit);if(this._formButtons){A.removeListener(this._formButtons,"click",this._handleFormButtonClick);}}}}});this.setAttributeConfig("disabled",{value:false,method:function(G){if(this._rendered){this._disableEditor(G);
-}}});this.setAttributeConfig("saveEl",{value:this.get("element")});this.setAttributeConfig("toolbar_cont",{value:null,writeOnce:true});this.setAttributeConfig("toolbar",{value:E.toolbar||this._defaultToolbar,writeOnce:true,method:function(G){if(!G.buttonType){G.buttonType=this._defaultToolbar.buttonType;}this._defaultToolbar=G;}});this.setAttributeConfig("animate",{value:((E.animate)?((YAHOO.util.Anim)?true:false):false),validator:function(H){var G=true;if(!YAHOO.util.Anim){G=false;}return G;}});this.setAttributeConfig("panel",{value:null,writeOnce:true,validator:function(H){var G=true;if(!YAHOO.widget.Overlay){G=false;}return G;}});this.setAttributeConfig("focusAtStart",{value:E.focusAtStart||false,writeOnce:true,method:function(G){if(G){this.on("editorContentLoaded",function(){var H=this;setTimeout(function(){H.focus.call(H);H.editorDirty=false;},400);},this,true);}}});this.setAttributeConfig("dompath",{value:E.dompath||false,method:function(G){if(G&&!this.dompath){this.dompath=document.createElement("DIV");this.dompath.id=this.get("id")+"_dompath";C.addClass(this.dompath,"dompath");this.get("element_cont").get("firstChild").appendChild(this.dompath);if(this.get("iframe")){this._writeDomPath();}}else{if(!G&&this.dompath){this.dompath.parentNode.removeChild(this.dompath);this.dompath=null;}}}});this.setAttributeConfig("markup",{value:E.markup||"semantic",validator:function(G){switch(G.toLowerCase()){case"semantic":case"css":case"default":case"xhtml":return true;}return false;}});this.setAttributeConfig("removeLineBreaks",{value:E.removeLineBreaks||false,validator:YAHOO.lang.isBoolean});this.setAttributeConfig("drag",{writeOnce:true,value:E.drag||false});this.setAttributeConfig("resize",{writeOnce:true,value:E.resize||false});this.setAttributeConfig("filterWord",{value:E.filterWord||false,validator:YAHOO.lang.isBoolean});},_getBlankImage:function(){if(!this.DOMReady){this._queue[this._queue.length]=["_getBlankImage",arguments];return"";}var E="";if(!this._blankImageLoaded){if(YAHOO.widget.EditorInfo.blankImage){this.set("blankimage",YAHOO.widget.EditorInfo.blankImage);this._blankImageLoaded=true;}else{var F=document.createElement("div");F.style.position="absolute";F.style.top="-9999px";F.style.left="-9999px";F.className=this.CLASS_PREFIX+"-blankimage";document.body.appendChild(F);E=YAHOO.util.Dom.getStyle(F,"background-image");E=E.replace("url(","").replace(")","").replace(/"/g,"");E=E.replace("app:/","");this.set("blankimage",E);this._blankImageLoaded=true;F.parentNode.removeChild(F);YAHOO.widget.EditorInfo.blankImage=E;}}else{E=this.get("blankimage");}return E;},_handleAutoHeight:function(){var J=this._getDoc(),F=J.body,K=J.documentElement;var E=parseInt(C.getStyle(this.get("editor_wrapper"),"height"),10);var G=F.scrollHeight;if(this.browser.webkit){G=K.scrollHeight;}if(G<parseInt(this.get("height"),10)){G=parseInt(this.get("height"),10);}if((E!=G)&&(G>=parseInt(this.get("height"),10))){var I=this.get("animate");this.set("animate",false);this.set("height",G+"px");this.set("animate",I);if(this.browser.ie){this.get("iframe").setStyle("height","99%");this.get("iframe").setStyle("zoom","1");var H=this;window.setTimeout(function(){H.get("iframe").setStyle("height","100%");},1);}}},_formButtons:null,_formButtonClicked:null,_handleFormButtonClick:function(F){var E=A.getTarget(F);this._formButtonClicked=E;},_handleFormSubmit:function(H){this.saveHTML();var G=this.get("element").form,E=this._formButtonClicked||false;A.removeListener(G,"submit",this._handleFormSubmit);if(YAHOO.env.ua.ie){if(E&&!E.disabled){E.click();}}else{if(E&&!E.disabled){E.click();}var F=document.createEvent("HTMLEvents");F.initEvent("submit",true,true);G.dispatchEvent(F);if(YAHOO.env.ua.webkit){if(YAHOO.lang.isFunction(G.submit)){G.submit();}}}},_handleFontSize:function(G){var E=this.toolbar.getButtonById(G.button.id);var F=E.get("label")+"px";this.execCommand("fontsize",F);return false;},_handleColorPicker:function(G){var F=G.button;var E="#"+G.color;if((F=="forecolor")||(F=="backcolor")){this.execCommand(F,E);}},_handleAlign:function(H){var G=null;for(var E=0;E<H.button.menu.length;E++){if(H.button.menu[E].value==H.button.value){G=H.button.menu[E].value;}}var F=this._getSelection();this.execCommand(G,F);return false;},_handleAfterNodeChange:function(){var Q=this._getDomPath(),L=null,H=null,M=null,F=false,J=this.toolbar.getButtonByValue("fontname"),K=this.toolbar.getButtonByValue("fontsize"),E=this.toolbar.getButtonByValue("heading");for(var G=0;G<Q.length;G++){L=Q[G];var P=L.tagName.toLowerCase();if(L.getAttribute("tag")){P=L.getAttribute("tag");}H=L.getAttribute("face");if(C.getStyle(L,"font-family")){H=C.getStyle(L,"font-family");H=H.replace(/'/g,"");}if(P.substring(0,1)=="h"){if(E){for(var I=0;I<E._configs.menu.value.length;I++){if(E._configs.menu.value[I].value.toLowerCase()==P){E.set("label",E._configs.menu.value[I].text);}}this._updateMenuChecked("heading",P);}}}if(J){for(var O=0;O<J._configs.menu.value.length;O++){if(H&&J._configs.menu.value[O].text.toLowerCase()==H.toLowerCase()){F=true;H=J._configs.menu.value[O].text;}}if(!F){H=J._configs.label._initialConfig.value;}var N='<span class="yui-toolbar-fontname-'+this._cleanClassName(H)+'">'+H+"</span>";if(J.get("label")!=N){J.set("label",N);this._updateMenuChecked("fontname",H);}}if(K){M=parseInt(C.getStyle(L,"fontSize"),10);if((M===null)||isNaN(M)){M=K._configs.label._initialConfig.value;}K.set("label",""+M);}if(!this._isElement(L,"body")&&!this._isElement(L,"img")){this.toolbar.enableButton(J);this.toolbar.enableButton(K);this.toolbar.enableButton("forecolor");this.toolbar.enableButton("backcolor");}if(this._isElement(L,"img")){if(YAHOO.widget.Overlay){this.toolbar.enableButton("createlink");}}if(this._hasParent(L,"blockquote")){this.toolbar.selectButton("indent");this.toolbar.disableButton("indent");this.toolbar.enableButton("outdent");}if(this._hasParent(L,"ol")||this._hasParent(L,"ul")){this.toolbar.disableButton("indent");}this._lastButton=null;},_handleInsertImageClick:function(){if(this.get("limitCommands")){if(!this.toolbar.getButtonByValue("insertimage")){return false;
-}}this.toolbar.set("disabled",true);var E=function(){var F=this.currentElement[0],H="http://";if(!F){F=this._getSelectedElement();}if(F){if(F.getAttribute("src")){H=F.getAttribute("src",2);if(H.indexOf(this.get("blankimage"))!=-1){H=this.STR_IMAGE_HERE;}}}var G=prompt(this.STR_IMAGE_URL+": ",H);if((G!=="")&&(G!==null)){F.setAttribute("src",G);}else{if(G===""){F.parentNode.removeChild(F);this.currentElement=[];this.nodeChange();}else{if((G===null)){H=F.getAttribute("src",2);if(H.indexOf(this.get("blankimage"))!=-1){F.parentNode.removeChild(F);this.currentElement=[];this.nodeChange();}}}}this.closeWindow();this.toolbar.set("disabled",false);this.unsubscribe("afterExecCommand",E,this,true);};this.on("afterExecCommand",E,this,true);},_handleInsertImageWindowClose:function(){this.nodeChange();},_isLocalFile:function(E){if((E)&&(E!=="")&&((E.indexOf("file:/")!=-1)||(E.indexOf(":\\")!=-1))){return true;}return false;},_handleCreateLinkClick:function(){if(this.get("limitCommands")){if(!this.toolbar.getButtonByValue("createlink")){return false;}}this.toolbar.set("disabled",true);var E=function(){var H=this.currentElement[0],G="";if(H){if(H.getAttribute("href",2)!==null){G=H.getAttribute("href",2);}}var J=prompt(this.STR_LINK_URL+": ",G);if((J!=="")&&(J!==null)){var I=J;if((I.indexOf(":/"+"/")==-1)&&(I.substring(0,1)!="/")&&(I.substring(0,6).toLowerCase()!="mailto")){if((I.indexOf("@")!=-1)&&(I.substring(0,6).toLowerCase()!="mailto")){I="mailto:"+I;}else{if(I.substring(0,1)!="#"){}}}H.setAttribute("href",I);}else{if(J!==null){var F=this._getDoc().createElement("span");F.innerHTML=H.innerHTML;C.addClass(F,"yui-non");H.parentNode.replaceChild(F,H);}}this.closeWindow();this.toolbar.set("disabled",false);this.unsubscribe("afterExecCommand",E,this,true);};this.on("afterExecCommand",E,this);},_handleCreateLinkWindowClose:function(){this.nodeChange();this.currentElement=[];},render:function(){if(this._rendered){return false;}if(!this.DOMReady){this._queue[this._queue.length]=["render",arguments];return false;}if(this.get("element")){if(this.get("element").tagName){this._textarea=true;if(this.get("element").tagName.toLowerCase()!=="textarea"){this._textarea=false;}}else{return false;}}else{return false;}this._rendered=true;var E=this;window.setTimeout(function(){E._render.call(E);},4);},_render:function(){var E=this;this.set("textarea",this.get("element"));this.get("element_cont").setStyle("display","none");this.get("element_cont").addClass(this.CLASS_CONTAINER);this.set("iframe",this._createIframe());window.setTimeout(function(){E._setInitialContent.call(E);},10);this.get("editor_wrapper").appendChild(this.get("iframe").get("element"));if(this.get("disabled")){this._disableEditor(true);}var F=this.get("toolbar");if(F instanceof B){this.toolbar=F;this.toolbar.set("disabled",true);}else{F.disabled=true;this.toolbar=new B(this.get("toolbar_cont"),F);}this.fireEvent("toolbarLoaded",{type:"toolbarLoaded",target:this.toolbar});this.toolbar.on("toolbarCollapsed",function(){if(this.currentWindow){this.moveWindow();}},this,true);this.toolbar.on("toolbarExpanded",function(){if(this.currentWindow){this.moveWindow();}},this,true);this.toolbar.on("fontsizeClick",this._handleFontSize,this,true);this.toolbar.on("colorPickerClicked",function(G){this._handleColorPicker(G);return false;},this,true);this.toolbar.on("alignClick",this._handleAlign,this,true);this.on("afterNodeChange",this._handleAfterNodeChange,this,true);this.toolbar.on("insertimageClick",this._handleInsertImageClick,this,true);this.on("windowinsertimageClose",this._handleInsertImageWindowClose,this,true);this.toolbar.on("createlinkClick",this._handleCreateLinkClick,this,true);this.on("windowcreatelinkClose",this._handleCreateLinkWindowClose,this,true);this.get("parentNode").replaceChild(this.get("element_cont").get("element"),this.get("element"));this.setStyle("visibility","hidden");this.setStyle("position","absolute");this.setStyle("top","-9999px");this.setStyle("left","-9999px");this.get("element_cont").appendChild(this.get("element"));this.get("element_cont").setStyle("display","block");C.addClass(this.get("iframe").get("parentNode"),this.CLASS_EDITABLE_CONT);this.get("iframe").addClass(this.CLASS_EDITABLE);this.get("element_cont").setStyle("width",this.get("width"));C.setStyle(this.get("iframe").get("parentNode"),"height",this.get("height"));this.get("iframe").setStyle("width","100%");this.get("iframe").setStyle("height","100%");this._setupDD();window.setTimeout(function(){E._setupAfterElement.call(E);},0);this.fireEvent("afterRender",{type:"afterRender",target:this});},execCommand:function(G,F){var J=this.fireEvent("beforeExecCommand",{type:"beforeExecCommand",target:this,args:arguments});if((J===false)||(this.STOP_EXEC_COMMAND)){this.STOP_EXEC_COMMAND=false;return false;}this._lastCommand=G;this._setMarkupType(G);if(this.browser.ie){this._getWindow().focus();}var E=true;if(this.get("limitCommands")){if(!this.toolbar.getButtonByValue(G)){E=false;}}this.editorDirty=true;if((typeof this["cmd_"+G.toLowerCase()]=="function")&&E){var I=this["cmd_"+G.toLowerCase()](F);E=I[0];if(I[1]){G=I[1];}if(I[2]){F=I[2];}}if(E){try{this._getDoc().execCommand(G,false,F);}catch(H){}}else{}this.on("afterExecCommand",function(){this.unsubscribeAll("afterExecCommand");this.nodeChange();},this,true);this.fireEvent("afterExecCommand",{type:"afterExecCommand",target:this});},cmd_bold:function(H){if(!this.browser.webkit){var G=this._getSelectedElement();if(G&&this._isElement(G,"span")&&this._hasSelection()){if(G.style.fontWeight=="bold"){G.style.fontWeight="";var E=this._getDoc().createElement("b"),F=G.parentNode;F.replaceChild(E,G);E.appendChild(G);}}}return[true];},cmd_italic:function(H){if(!this.browser.webkit){var G=this._getSelectedElement();if(G&&this._isElement(G,"span")&&this._hasSelection()){if(G.style.fontStyle=="italic"){G.style.fontStyle="";var E=this._getDoc().createElement("i"),F=G.parentNode;F.replaceChild(E,G);E.appendChild(G);}}}return[true];},cmd_underline:function(F){if(!this.browser.webkit){var E=this._getSelectedElement();
-if(E&&this._isElement(E,"span")){if(E.style.textDecoration=="underline"){E.style.textDecoration="none";}else{E.style.textDecoration="underline";}return[false];}}return[true];},cmd_backcolor:function(H){var E=true,F=this._getSelectedElement(),G="backcolor";if(this.browser.gecko||this.browser.opera){this._setEditorStyle(true);G="hilitecolor";}if(!this._isElement(F,"body")&&!this._hasSelection()){F.style.backgroundColor=H;this._selectNode(F);E=false;}else{if(this.get("insert")){F=this._createInsertElement({backgroundColor:H});}else{this._createCurrentElement("span",{backgroundColor:H,color:F.style.color,fontSize:F.style.fontSize,fontFamily:F.style.fontFamily});this._selectNode(this.currentElement[0]);}E=false;}return[E,G];},cmd_forecolor:function(G){var E=true,F=this._getSelectedElement();if(!this._isElement(F,"body")&&!this._hasSelection()){C.setStyle(F,"color",G);this._selectNode(F);E=false;}else{if(this.get("insert")){F=this._createInsertElement({color:G});}else{this._createCurrentElement("span",{color:G,fontSize:F.style.fontSize,fontFamily:F.style.fontFamily,backgroundColor:F.style.backgroundColor});this._selectNode(this.currentElement[0]);}E=false;}return[E];},cmd_unlink:function(E){this._swapEl(this.currentElement[0],"span",function(F){F.className="yui-non";});return[false];},cmd_createlink:function(G){var F=this._getSelectedElement(),E=null;if(this._hasParent(F,"a")){this.currentElement[0]=this._hasParent(F,"a");}else{if(this._isElement(F,"li")){E=this._getDoc().createElement("a");E.innerHTML=F.innerHTML;F.innerHTML="";F.appendChild(E);this.currentElement[0]=E;}else{if(!this._isElement(F,"a")){this._createCurrentElement("a");E=this._swapEl(this.currentElement[0],"a");this.currentElement[0]=E;}else{this.currentElement[0]=F;}}}return[false];},cmd_insertimage:function(J){var E=true,F=null,I="insertimage",H=this._getSelectedElement();if(J===""){J=this.get("blankimage");}if(this._isElement(H,"img")){this.currentElement[0]=H;E=false;}else{if(this._getDoc().queryCommandEnabled(I)){this._getDoc().execCommand(I,false,J);var K=this._getDoc().getElementsByTagName("img");for(var G=0;G<K.length;G++){if(!YAHOO.util.Dom.hasClass(K[G],"yui-img")){YAHOO.util.Dom.addClass(K[G],"yui-img");this.currentElement[0]=K[G];}}E=false;}else{if(H==this._getDoc().body){F=this._getDoc().createElement("img");F.setAttribute("src",J);YAHOO.util.Dom.addClass(F,"yui-img");this._getDoc().body.appendChild(F);}else{this._createCurrentElement("img");F=this._getDoc().createElement("img");F.setAttribute("src",J);YAHOO.util.Dom.addClass(F,"yui-img");this.currentElement[0].parentNode.replaceChild(F,this.currentElement[0]);}this.currentElement[0]=F;E=false;}}return[E];},cmd_inserthtml:function(H){var E=true,G="inserthtml",F=null,I=null;if(this.browser.webkit&&!this._getDoc().queryCommandEnabled(G)){this._createCurrentElement("img");F=this._getDoc().createElement("span");F.innerHTML=H;this.currentElement[0].parentNode.replaceChild(F,this.currentElement[0]);E=false;}else{if(this.browser.ie){I=this._getRange();if(I.item){I.item(0).outerHTML=H;}else{I.pasteHTML(H);}E=false;}}return[E];},cmd_list:function(e){var V=true,Z=null,N=0,G=null,U="",d=this._getSelectedElement(),W="insertorderedlist";if(e=="ul"){W="insertunorderedlist";}if((this.browser.webkit&&!this.browser.webkit4)||(this.browser.opera)){if(this._isElement(d,"li")&&this._isElement(d.parentNode,e)){G=d.parentNode;Z=this._getDoc().createElement("span");YAHOO.util.Dom.addClass(Z,"yui-non");U="";var F=G.getElementsByTagName("li"),I=((this.browser.opera&&this.get("ptags"))?"p":"div");for(N=0;N<F.length;N++){U+="<"+I+">"+F[N].innerHTML+"</"+I+">";}Z.innerHTML=U;this.currentElement[0]=G;this.currentElement[0].parentNode.replaceChild(Z,this.currentElement[0]);}else{this._createCurrentElement(e.toLowerCase());Z=this._getDoc().createElement(e);for(N=0;N<this.currentElement.length;N++){var K=this._getDoc().createElement("li");K.innerHTML=this.currentElement[N].innerHTML+'<span class="yui-non">&nbsp;</span>&nbsp;';Z.appendChild(K);if(N>0){this.currentElement[N].parentNode.removeChild(this.currentElement[N]);}}var T=((this.browser.opera)?"<BR>":"<br>"),S=Z.firstChild.innerHTML.split(T),Y,a;if(S.length>0){Z.innerHTML="";for(Y=0;Y<S.length;Y++){a=this._getDoc().createElement("li");a.innerHTML=S[Y];Z.appendChild(a);}}this.currentElement[0].parentNode.replaceChild(Z,this.currentElement[0]);this.currentElement[0]=Z;var H=this.currentElement[0].firstChild;H=C.getElementsByClassName("yui-non","span",H)[0];if(this.browser.webkit){this._getSelection().setBaseAndExtent(H,1,H,H.innerText.length);}}V=false;}else{G=this._getSelectedElement();if(this._isElement(G,"li")&&this._isElement(G.parentNode,e)||(this.browser.ie&&this._isElement(this._getRange().parentElement,"li"))||(this.browser.ie&&this._isElement(G,"ul"))||(this.browser.ie&&this._isElement(G,"ol"))){if(this.browser.ie){if((this.browser.ie&&this._isElement(G,"ul"))||(this.browser.ie&&this._isElement(G,"ol"))){G=G.getElementsByTagName("li")[0];}U="";var J=G.parentNode.getElementsByTagName("li");for(var X=0;X<J.length;X++){U+=J[X].innerHTML+"<br>";}var c=this._getDoc().createElement("span");c.innerHTML=U;G.parentNode.parentNode.replaceChild(c,G.parentNode);}else{this.nodeChange();this._getDoc().execCommand(W,"",G.parentNode);this.nodeChange();}V=false;}if(this.browser.opera){var R=this;window.setTimeout(function(){var f=R._getDoc().getElementsByTagName("li");for(var g=0;g<f.length;g++){if(f[g].innerHTML.toLowerCase()=="<br>"){f[g].parentNode.parentNode.removeChild(f[g].parentNode);}}},30);}if(this.browser.ie&&V){var L="";if(this._getRange().html){L="<li>"+this._getRange().html+"</li>";}else{var M=this._getRange().text.split("\n");if(M.length>1){L="";for(var Q=0;Q<M.length;Q++){L+="<li>"+M[Q]+"</li>";}}else{var P=this._getRange().text;if(P===""){L='<li id="new_list_item">'+P+"</li>";}else{L="<li>"+P+"</li>";}}}this._getRange().pasteHTML("<"+e+">"+L+"</"+e+">");var E=this._getDoc().getElementById("new_list_item");if(E){var O=this._getDoc().body.createTextRange();
-O.moveToElementText(E);O.collapse(false);O.select();E.id="";}V=false;}}return V;},cmd_insertorderedlist:function(E){return[this.cmd_list("ol")];},cmd_insertunorderedlist:function(E){return[this.cmd_list("ul")];},cmd_fontname:function(H){var E=true,G=this._getSelectedElement();this.currentFont=H;if(G&&G.tagName&&!this._hasSelection()&&!this._isElement(G,"body")&&!this.get("insert")){YAHOO.util.Dom.setStyle(G,"font-family",H);E=false;}else{if(this.get("insert")&&!this._hasSelection()){var F=this._createInsertElement({fontFamily:H});E=false;}}return[E];},cmd_fontsize:function(H){var E=null,G=true;E=this._getSelectedElement();if(this.browser.webkit){if(this.currentElement[0]){if(E==this.currentElement[0]){G=false;YAHOO.util.Dom.setStyle(E,"fontSize",H);this._selectNode(E);this.currentElement[0]=E;}}}if(G){if(!this._isElement(this._getSelectedElement(),"body")&&(!this._hasSelection())){E=this._getSelectedElement();YAHOO.util.Dom.setStyle(E,"fontSize",H);if(this.get("insert")&&this.browser.ie){var F=this._getRange();F.collapse(false);F.select();}else{this._selectNode(E);}}else{if(this.currentElement&&(this.currentElement.length>0)&&(!this._hasSelection())&&(!this.get("insert"))){YAHOO.util.Dom.setStyle(this.currentElement,"fontSize",H);}else{if(this.get("insert")&&!this._hasSelection()){E=this._createInsertElement({fontSize:H});this.currentElement[0]=E;this._selectNode(this.currentElement[0]);}else{this._createCurrentElement("span",{"fontSize":H,fontFamily:E.style.fontFamily,color:E.style.color,backgroundColor:E.style.backgroundColor});this._selectNode(this.currentElement[0]);}}}}return[false];},_swapEl:function(F,E,H){var G=this._getDoc().createElement(E);if(F){G.innerHTML=F.innerHTML;}if(typeof H=="function"){H.call(this,G);}if(F){F.parentNode.replaceChild(G,F);}return G;},_createInsertElement:function(E){this._createCurrentElement("span",E);var F=this.currentElement[0];if(this.browser.webkit){F.innerHTML='<span class="yui-non">&nbsp;</span>';F=F.firstChild;this._getSelection().setBaseAndExtent(F,1,F,F.innerText.length);}else{if(this.browser.ie||this.browser.opera){F.innerHTML="&nbsp;";}}this.focus();this._selectNode(F,true);return F;},_createCurrentElement:function(G,J){G=((G)?G:"a");var R=null,F=[],H=this._getDoc();if(this.currentFont){if(!J){J={};}J.fontFamily=this.currentFont;this.currentFont=null;}this.currentElement=[];var M=function(X,Z){var Y=null;X=((X)?X:"span");X=X.toLowerCase();switch(X){case"h1":case"h2":case"h3":case"h4":case"h5":case"h6":Y=H.createElement(X);break;default:Y=H.createElement(X);if(X==="span"){YAHOO.util.Dom.addClass(Y,"yui-tag-"+X);YAHOO.util.Dom.addClass(Y,"yui-tag");Y.setAttribute("tag",X);}for(var W in Z){if(YAHOO.lang.hasOwnProperty(Z,W)){Y.style[W]=Z[W];}}break;}return Y;};if(!this._hasSelection()){if(this._getDoc().queryCommandEnabled("insertimage")){this._getDoc().execCommand("insertimage",false,"yui-tmp-img");var L=this._getDoc().getElementsByTagName("img");for(var Q=0;Q<L.length;Q++){if(L[Q].getAttribute("src",2)=="yui-tmp-img"){F=M(G,J);L[Q].parentNode.replaceChild(F,L[Q]);this.currentElement[this.currentElement.length]=F;}}}else{if(this.currentEvent){R=YAHOO.util.Event.getTarget(this.currentEvent);}else{R=this._getDoc().body;}}if(R){F=M(G,J);if(this._isElement(R,"body")||this._isElement(R,"html")){if(this._isElement(R,"html")){R=this._getDoc().body;}R.appendChild(F);}else{if(R.nextSibling){R.parentNode.insertBefore(F,R.nextSibling);}else{R.parentNode.appendChild(F);}}this.currentElement[this.currentElement.length]=F;this.currentEvent=null;if(this.browser.webkit){this._getSelection().setBaseAndExtent(F,0,F,0);if(this.browser.webkit3){this._getSelection().collapseToStart();}else{this._getSelection().collapse(true);}}}}else{this._setEditorStyle(true);this._getDoc().execCommand("fontname",false,"yui-tmp");var E=[],P,V=["font","span","i","b","u"];if(!this._isElement(this._getSelectedElement(),"body")){V[V.length]=this._getDoc().getElementsByTagName(this._getSelectedElement().tagName);V[V.length]=this._getDoc().getElementsByTagName(this._getSelectedElement().parentNode.tagName);}for(var K=0;K<V.length;K++){var I=this._getDoc().getElementsByTagName(V[K]);for(var U=0;U<I.length;U++){E[E.length]=I[U];}}for(var S=0;S<E.length;S++){if((YAHOO.util.Dom.getStyle(E[S],"font-family")=="yui-tmp")||(E[S].face&&(E[S].face=="yui-tmp"))){if(G!=="span"){F=M(G,J);}else{F=M(E[S].tagName,J);}F.innerHTML=E[S].innerHTML;if(this._isElement(E[S],"ol")||(this._isElement(E[S],"ul"))){var N=E[S].getElementsByTagName("li")[0];E[S].style.fontFamily="inherit";N.style.fontFamily="inherit";F.innerHTML=N.innerHTML;N.innerHTML="";N.appendChild(F);this.currentElement[this.currentElement.length]=F;}else{if(this._isElement(E[S],"li")){E[S].innerHTML="";E[S].appendChild(F);E[S].style.fontFamily="inherit";this.currentElement[this.currentElement.length]=F;}else{if(E[S].parentNode){E[S].parentNode.replaceChild(F,E[S]);this.currentElement[this.currentElement.length]=F;this.currentEvent=null;if(this.browser.webkit){this._getSelection().setBaseAndExtent(F,0,F,0);if(this.browser.webkit3){this._getSelection().collapseToStart();}else{this._getSelection().collapse(true);}}if(this.browser.ie&&J&&J.fontSize){this._getSelection().empty();}if(this.browser.gecko){this._getSelection().collapseToStart();}}}}}}var T=this.currentElement.length;for(var O=0;O<T;O++){if((O+1)!=T){if(this.currentElement[O]&&this.currentElement[O].nextSibling){if(this._isElement(this.currentElement[O],"br")){this.currentElement[this.currentElement.length]=this.currentElement[O].nextSibling;}}}}}},saveHTML:function(){var F=this.cleanHTML();if(this._textarea){this.get("element").value=F;}else{this.get("element").innerHTML=F;}if(this.get("saveEl")!==this.get("element")){var E=this.get("saveEl");if(D.isString(E)){E=C.get(E);}if(E){if(E.tagName.toLowerCase()==="textarea"){E.value=F;}else{E.innerHTML=F;}}}return F;},setEditorHTML:function(F){var E=this._cleanIncomingHTML(F);E=E.replace(/RIGHT_BRACKET/gi,"{");E=E.replace(/LEFT_BRACKET/gi,"}");
-this._getDoc().body.innerHTML=E;this.nodeChange();},getEditorHTML:function(){try{var E=this._getDoc().body;if(E===null){return null;}return this._getDoc().body.innerHTML;}catch(F){return"";}},show:function(){if(this.browser.gecko){this._setDesignMode("on");this.focus();}if(this.browser.webkit){var E=this;window.setTimeout(function(){E._setInitialContent.call(E);},10);}if(this.currentWindow){this.closeWindow();}this.get("iframe").setStyle("position","static");this.get("iframe").setStyle("left","");},hide:function(){if(this.currentWindow){this.closeWindow();}if(this._fixNodesTimer){clearTimeout(this._fixNodesTimer);this._fixNodesTimer=null;}if(this._nodeChangeTimer){clearTimeout(this._nodeChangeTimer);this._nodeChangeTimer=null;}this._lastNodeChange=0;this.get("iframe").setStyle("position","absolute");this.get("iframe").setStyle("left","-9999px");},_cleanIncomingHTML:function(E){E=E.replace(/{/gi,"RIGHT_BRACKET");E=E.replace(/}/gi,"LEFT_BRACKET");E=E.replace(/<strong([^>]*)>/gi,"<b$1>");E=E.replace(/<\/strong>/gi,"</b>");E=E.replace(/<embed([^>]*)>/gi,"<YUI_EMBED$1>");E=E.replace(/<\/embed>/gi,"</YUI_EMBED>");E=E.replace(/<em([^>]*)>/gi,"<i$1>");E=E.replace(/<\/em>/gi,"</i>");E=E.replace(/_moz_dirty=""/gi,"");E=E.replace(/<YUI_EMBED([^>]*)>/gi,"<embed$1>");E=E.replace(/<\/YUI_EMBED>/gi,"</embed>");if(this.get("plainText")){E=E.replace(/\n/g,"<br>").replace(/\r/g,"<br>");E=E.replace(/  /gi,"&nbsp;&nbsp;");E=E.replace(/\t/gi,"&nbsp;&nbsp;&nbsp;&nbsp;");}E=E.replace(/<script([^>]*)>/gi,"<bad>");E=E.replace(/<\/script([^>]*)>/gi,"</bad>");E=E.replace(/&lt;script([^>]*)&gt;/gi,"<bad>");E=E.replace(/&lt;\/script([^>]*)&gt;/gi,"</bad>");E=E.replace(/\r\n/g,"<YUI_LF>").replace(/\n/g,"<YUI_LF>").replace(/\r/g,"<YUI_LF>");E=E.replace(new RegExp("<bad([^>]*)>(.*?)</bad>","gi"),"");E=E.replace(/<YUI_LF>/g,"\n");return E;},cleanHTML:function(H){if(!H){H=this.getEditorHTML();}var F=this.get("markup");H=this.pre_filter_linebreaks(H,F);H=this.filter_msword(H);H=H.replace(/<img([^>]*)\/>/gi,"<YUI_IMG$1>");H=H.replace(/<img([^>]*)>/gi,"<YUI_IMG$1>");H=H.replace(/<input([^>]*)\/>/gi,"<YUI_INPUT$1>");H=H.replace(/<input([^>]*)>/gi,"<YUI_INPUT$1>");H=H.replace(/<ul([^>]*)>/gi,"<YUI_UL$1>");H=H.replace(/<\/ul>/gi,"</YUI_UL>");H=H.replace(/<blockquote([^>]*)>/gi,"<YUI_BQ$1>");H=H.replace(/<\/blockquote>/gi,"</YUI_BQ>");H=H.replace(/<embed([^>]*)>/gi,"<YUI_EMBED$1>");H=H.replace(/<\/embed>/gi,"</YUI_EMBED>");if((F=="semantic")||(F=="xhtml")){H=H.replace(/<i(\s+[^>]*)?>/gi,"<em$1>");H=H.replace(/<\/i>/gi,"</em>");H=H.replace(/<b(\s+[^>]*)?>/gi,"<strong$1>");H=H.replace(/<\/b>/gi,"</strong>");}H=H.replace(/_moz_dirty=""/gi,"");H=H.replace(/<strike/gi,'<span style="text-decoration: line-through;"');H=H.replace(/\/strike>/gi,"/span>");if(this.browser.ie){H=H.replace(/text-decoration/gi,"text-decoration");H=H.replace(/font-weight/gi,"font-weight");H=H.replace(/_width="([^>]*)"/gi,"");H=H.replace(/_height="([^>]*)"/gi,"");var G=this._baseHREF.replace(/\//gi,"\\/"),I=new RegExp('src="'+G,"gi");H=H.replace(I,'src="');}H=H.replace(/<font/gi,"<font");H=H.replace(/<\/font>/gi,"</font>");H=H.replace(/<span/gi,"<span");H=H.replace(/<\/span>/gi,"</span>");if((F=="semantic")||(F=="xhtml")||(F=="css")){H=H.replace(new RegExp('<font([^>]*)face="([^>]*)">(.*?)</font>',"gi"),'<span $1 style="font-family: $2;">$3</span>');H=H.replace(/<u/gi,'<span style="text-decoration: underline;"');if(this.browser.webkit){H=H.replace(new RegExp('<span class="Apple-style-span" style="font-weight: bold;">([^>]*)</span>',"gi"),"<strong>$1</strong>");H=H.replace(new RegExp('<span class="Apple-style-span" style="font-style: italic;">([^>]*)</span>',"gi"),"<em>$1</em>");}H=H.replace(/\/u>/gi,"/span>");if(F=="css"){H=H.replace(/<em([^>]*)>/gi,"<i$1>");H=H.replace(/<\/em>/gi,"</i>");H=H.replace(/<strong([^>]*)>/gi,"<b$1>");H=H.replace(/<\/strong>/gi,"</b>");H=H.replace(/<b/gi,'<span style="font-weight: bold;"');H=H.replace(/\/b>/gi,"/span>");H=H.replace(/<i/gi,'<span style="font-style: italic;"');H=H.replace(/\/i>/gi,"/span>");}H=H.replace(/  /gi," ");}else{H=H.replace(/<u/gi,"<u");H=H.replace(/\/u>/gi,"/u>");}H=H.replace(/<ol([^>]*)>/gi,"<ol$1>");H=H.replace(/\/ol>/gi,"/ol>");H=H.replace(/<li/gi,"<li");H=H.replace(/\/li>/gi,"/li>");H=this.filter_safari(H);H=this.filter_internals(H);H=this.filter_all_rgb(H);H=this.post_filter_linebreaks(H,F);if(F=="xhtml"){H=H.replace(/<YUI_IMG([^>]*)>/g,"<img $1 />");H=H.replace(/<YUI_INPUT([^>]*)>/g,"<input $1 />");}else{H=H.replace(/<YUI_IMG([^>]*)>/g,"<img $1>");H=H.replace(/<YUI_INPUT([^>]*)>/g,"<input $1>");}H=H.replace(/<YUI_UL([^>]*)>/g,"<ul$1>");H=H.replace(/<\/YUI_UL>/g,"</ul>");H=this.filter_invalid_lists(H);H=H.replace(/<YUI_BQ([^>]*)>/g,"<blockquote$1>");H=H.replace(/<\/YUI_BQ>/g,"</blockquote>");H=H.replace(/<YUI_EMBED([^>]*)>/g,"<embed$1>");H=H.replace(/<\/YUI_EMBED>/g,"</embed>");H=H.replace(/ &amp; /gi," YUI_AMP ");H=H.replace(/ &amp;/gi," YUI_AMP_F ");H=H.replace(/&amp; /gi," YUI_AMP_R ");H=H.replace(/&amp;/gi,"&");H=H.replace(/ YUI_AMP /gi," &amp; ");H=H.replace(/ YUI_AMP_F /gi," &amp;");H=H.replace(/ YUI_AMP_R /gi,"&amp; ");H=YAHOO.lang.trim(H);if(this.get("removeLineBreaks")){H=H.replace(/\n/g,"").replace(/\r/g,"");H=H.replace(/  /gi," ");}for(var E in this.invalidHTML){if(YAHOO.lang.hasOwnProperty(this.invalidHTML,E)){if(D.isObject(E)&&E.keepContents){H=H.replace(new RegExp("<"+E+"([^>]*)>(.*?)</"+E+">","gi"),"$1");}else{H=H.replace(new RegExp("<"+E+"([^>]*)>(.*?)</"+E+">","gi"),"");}}}this.fireEvent("cleanHTML",{type:"cleanHTML",target:this,html:H});return H;},filter_msword:function(E){if(!this.get("filterWord")){return E;}E=E.replace(/<o:p>\s*<\/o:p>/g,"");E=E.replace(/<o:p>[\s\S]*?<\/o:p>/g,"&nbsp;");E=E.replace(/<w:[^>]*>[\s\S]*?<\/w:[^>]*>/gi,"");E=E.replace(/\s*mso-[^:]+:[^;"]+;?/gi,"");E=E.replace(/\s*MARGIN: 0cm 0cm 0pt\s*;/gi,"");E=E.replace(/\s*MARGIN: 0cm 0cm 0pt\s*"/gi,'"');E=E.replace(/\s*TEXT-INDENT: 0cm\s*;/gi,"");E=E.replace(/\s*TEXT-INDENT: 0cm\s*"/gi,'"');E=E.replace(/\s*PAGE-BREAK-BEFORE: [^\s;]+;?"/gi,'"');
-E=E.replace(/\s*FONT-VARIANT: [^\s;]+;?"/gi,'"');E=E.replace(/\s*tab-stops:[^;"]*;?/gi,"");E=E.replace(/\s*tab-stops:[^"]*/gi,"");E=E.replace(/<\\?\?xml[^>]*>/gi,"");E=E.replace(/<(\w[^>]*) lang=([^ |>]*)([^>]*)/gi,"<$1$3");E=E.replace(/<(\w[^>]*) language=([^ |>]*)([^>]*)/gi,"<$1$3");E=E.replace(/<(\w[^>]*) onmouseover="([^\"]*)"([^>]*)/gi,"<$1$3");E=E.replace(/<(\w[^>]*) onmouseout="([^\"]*)"([^>]*)/gi,"<$1$3");return E;},filter_invalid_lists:function(E){E=E.replace(/<\/li>\n/gi,"</li>");E=E.replace(/<\/li><ol>/gi,"</li><li><ol>");E=E.replace(/<\/ol>/gi,"</ol></li>");E=E.replace(/<\/ol><\/li>\n/gi,"</ol>");E=E.replace(/<\/li><ul>/gi,"</li><li><ul>");E=E.replace(/<\/ul>/gi,"</ul></li>");E=E.replace(/<\/ul><\/li>\n?/gi,"</ul>");E=E.replace(/<\/li>/gi,"</li>");E=E.replace(/<\/ol>/gi,"</ol>");E=E.replace(/<ol>/gi,"<ol>");E=E.replace(/<ul>/gi,"<ul>");return E;},filter_safari:function(E){if(this.browser.webkit){E=E.replace(/<span class="Apple-tab-span" style="white-space:pre">([^>])<\/span>/gi,"&nbsp;&nbsp;&nbsp;&nbsp;");E=E.replace(/Apple-style-span/gi,"");E=E.replace(/style="line-height: normal;"/gi,"");E=E.replace(/yui-wk-div/gi,"");E=E.replace(/yui-wk-p/gi,"");E=E.replace(/<li><\/li>/gi,"");E=E.replace(/<li> <\/li>/gi,"");E=E.replace(/<li>  <\/li>/gi,"");if(this.get("ptags")){E=E.replace(/<div([^>]*)>/g,"<p$1>");E=E.replace(/<\/div>/gi,"</p>");}else{E=E.replace(/<div([^>]*)>([ tnr]*)<\/div>/gi,"<br>");E=E.replace(/<\/div>/gi,"");}}return E;},filter_internals:function(E){E=E.replace(/\r/g,"");E=E.replace(/<\/?(body|head|html)[^>]*>/gi,"");E=E.replace(/<YUI_BR><\/li>/gi,"</li>");E=E.replace(/yui-tag-span/gi,"");E=E.replace(/yui-tag/gi,"");E=E.replace(/yui-non/gi,"");E=E.replace(/yui-img/gi,"");E=E.replace(/ tag="span"/gi,"");E=E.replace(/ class=""/gi,"");E=E.replace(/ style=""/gi,"");E=E.replace(/ class=" "/gi,"");E=E.replace(/ class="  "/gi,"");E=E.replace(/ target=""/gi,"");E=E.replace(/ title=""/gi,"");if(this.browser.ie){E=E.replace(/ class= /gi,"");E=E.replace(/ class= >/gi,"");}return E;},filter_all_rgb:function(I){var H=new RegExp("rgb\\s*?\\(\\s*?([0-9]+).*?,\\s*?([0-9]+).*?,\\s*?([0-9]+).*?\\)","gi");var E=I.match(H);if(D.isArray(E)){for(var G=0;G<E.length;G++){var F=this.filter_rgb(E[G]);I=I.replace(E[G].toString(),F);}}return I;},filter_rgb:function(G){if(G.toLowerCase().indexOf("rgb")!=-1){var J=new RegExp("(.*?)rgb\\s*?\\(\\s*?([0-9]+).*?,\\s*?([0-9]+).*?,\\s*?([0-9]+).*?\\)(.*?)","gi");var F=G.replace(J,"$1,$2,$3,$4,$5").split(",");if(F.length==5){var I=parseInt(F[1],10).toString(16);var H=parseInt(F[2],10).toString(16);var E=parseInt(F[3],10).toString(16);I=I.length==1?"0"+I:I;H=H.length==1?"0"+H:H;E=E.length==1?"0"+E:E;G="#"+I+H+E;}}return G;},pre_filter_linebreaks:function(F,E){if(this.browser.webkit){F=F.replace(/<br class="khtml-block-placeholder">/gi,"<YUI_BR>");F=F.replace(/<br class="webkit-block-placeholder">/gi,"<YUI_BR>");}F=F.replace(/<br>/gi,"<YUI_BR>");F=F.replace(/<br (.*?)>/gi,"<YUI_BR>");F=F.replace(/<br\/>/gi,"<YUI_BR>");F=F.replace(/<br \/>/gi,"<YUI_BR>");F=F.replace(/<div><YUI_BR><\/div>/gi,"<YUI_BR>");F=F.replace(/<p>(&nbsp;|&#160;)<\/p>/g,"<YUI_BR>");F=F.replace(/<p><br>&nbsp;<\/p>/gi,"<YUI_BR>");F=F.replace(/<p>&nbsp;<\/p>/gi,"<YUI_BR>");F=F.replace(/<YUI_BR>$/,"");F=F.replace(/<YUI_BR><\/p>/g,"</p>");if(this.browser.ie){F=F.replace(/&nbsp;&nbsp;&nbsp;&nbsp;/g,"\t");}return F;},post_filter_linebreaks:function(F,E){if(E=="xhtml"){F=F.replace(/<YUI_BR>/g,"<br />");}else{F=F.replace(/<YUI_BR>/g,"<br>");}return F;},clearEditorDoc:function(){this._getDoc().body.innerHTML="&nbsp;";},openWindow:function(E){},moveWindow:function(){},_closeWindow:function(){},closeWindow:function(){this.toolbar.resetAllButtons();this.focus();},destroy:function(){if(this._nodeChangeDelayTimer){clearTimeout(this._nodeChangeDelayTimer);}this.hide();if(this.resize){this.resize.destroy();}if(this.dd){this.dd.unreg();}if(this.get("panel")){this.get("panel").destroy();}this.saveHTML();this.toolbar.destroy();this.setStyle("visibility","visible");this.setStyle("position","static");this.setStyle("top","");this.setStyle("left","");var E=this.get("element");this.get("element_cont").get("parentNode").replaceChild(E,this.get("element_cont").get("element"));this.get("element_cont").get("element").innerHTML="";this.set("handleSubmit",false);return true;},toString:function(){var E="SimpleEditor";if(this.get&&this.get("element_cont")){E="SimpleEditor (#"+this.get("element_cont").get("id")+")"+((this.get("disabled")?" Disabled":""));}return E;}});YAHOO.widget.EditorInfo={_instances:{},blankImage:"",window:{},panel:null,getEditorById:function(E){if(!YAHOO.lang.isString(E)){E=E.id;}if(this._instances[E]){return this._instances[E];}return false;},saveAll:function(G){var F,H,E=YAHOO.widget.EditorInfo._instances;if(G){for(F in E){if(D.hasOwnProperty(E,F)){H=E[F];if(H.get("element").form&&(H.get("element").form==G)){H.saveHTML();}}}}else{for(F in E){if(D.hasOwnProperty(E,F)){E[F].saveHTML();}}}},toString:function(){var E=0;for(var F in this._instances){if(D.hasOwnProperty(this._instances,F)){E++;}}return"Editor Info ("+E+" registered intance"+((E>1)?"s":"")+")";}};})();(function(){var C=YAHOO.util.Dom,A=YAHOO.util.Event,D=YAHOO.lang,B=YAHOO.widget.Toolbar;YAHOO.widget.Editor=function(F,E){YAHOO.widget.Editor.superclass.constructor.call(this,F,E);};YAHOO.extend(YAHOO.widget.Editor,YAHOO.widget.SimpleEditor,{_undoCache:null,_undoLevel:null,_hasUndoLevel:function(){return((this._undoCache.length>1)&&this._undoLevel);},_undoNodeChange:function(){var E=this.toolbar.getButtonByValue("undo"),F=this.toolbar.getButtonByValue("redo");if(E&&F){if(this._hasUndoLevel()){this.toolbar.enableButton(E);}if(this._undoLevel<this._undoCache.length){this.toolbar.enableButton(F);}}this._lastCommand=null;},_checkUndo:function(){var E=this._undoCache.length,G=[];if(E>=this.get("maxUndo")){for(var F=(E-this.get("maxUndo"));F<E;F++){G.push(this._undoCache[F]);}this._undoCache=G;}},_putUndo:function(F){if(this._undoLevel===this._undoCache.length){this._undoCache.push(F);
-this._undoLevel=this._undoCache.length;}else{var F=this.getEditorHTML();var E=this._undoCache[this._undoLevel];if(E){if(F!==E){this._undoCache=[];this._undoLevel=0;}}}},_getUndo:function(E){this._undoLevel=E;return this._undoCache[E];},_storeUndo:function(){if(this._lastCommand==="undo"||this._lastCommand==="redo"){return false;}if(!this._undoCache){this._undoCache=[];this._undoLevel=0;}this._checkUndo();var F=this.getEditorHTML();var E=this._undoCache[this._undoLevel-1];if(E){if(F!==E){this._putUndo(F);}}else{this._putUndo(F);}this._undoNodeChange();},STR_BEFORE_EDITOR:"This text field can contain stylized text and graphics. To cycle through all formatting options, use the keyboard shortcut Control + Shift + T to place focus on the toolbar and navigate between option heading names. <h4>Common formatting keyboard shortcuts:</h4><ul><li>Control Shift B sets text to bold</li> <li>Control Shift I sets text to italic</li> <li>Control Shift U underlines text</li> <li>Control Shift [ aligns text left</li> <li>Control Shift | centers text</li> <li>Control Shift ] aligns text right</li> <li>Control Shift L adds an HTML link</li> <li>To exit this text editor use the keyboard shortcut Control + Shift + ESC.</li></ul>",STR_CLOSE_WINDOW:"Close Window",STR_CLOSE_WINDOW_NOTE:"To close this window use the Control + Shift + W key",STR_IMAGE_PROP_TITLE:"Image Options",STR_IMAGE_TITLE:"Description",STR_IMAGE_SIZE:"Size",STR_IMAGE_ORIG_SIZE:"Original Size",STR_IMAGE_COPY:'<span class="tip"><span class="icon icon-info"></span><strong>Note:</strong>To move this image just highlight it, cut, and paste where ever you\'d like.</span>',STR_IMAGE_PADDING:"Padding",STR_IMAGE_BORDER:"Border",STR_IMAGE_BORDER_SIZE:"Border Size",STR_IMAGE_BORDER_TYPE:"Border Type",STR_IMAGE_TEXTFLOW:"Text Flow",STR_LOCAL_FILE_WARNING:'<span class="tip"><span class="icon icon-warn"></span><strong>Note:</strong>This image/link points to a file on your computer and will not be accessible to others on the internet.</span>',STR_LINK_PROP_TITLE:"Link Options",STR_LINK_PROP_REMOVE:"Remove link from text",STR_LINK_NEW_WINDOW:"Open in a new window.",STR_LINK_TITLE:"Description",STR_NONE:"none",CLASS_LOCAL_FILE:"warning-localfile",CLASS_HIDDEN:"yui-hidden",init:function(F,E){this._windows={};if(!this._defaultToolbar){this._defaultToolbar={collapse:true,titlebar:"Text Editing Tools",draggable:false,buttonType:"advanced",buttons:[{group:"fontstyle",label:"Font Name and Size",buttons:[{type:"select",label:"Arial",value:"fontname",disabled:true,menu:[{text:"Arial",checked:true},{text:"Arial Black"},{text:"Comic Sans MS"},{text:"Courier New"},{text:"Lucida Console"},{text:"Tahoma"},{text:"Times New Roman"},{text:"Trebuchet MS"},{text:"Verdana"}]},{type:"spin",label:"13",value:"fontsize",range:[9,75],disabled:true}]},{type:"separator"},{group:"textstyle",label:"Font Style",buttons:[{type:"push",label:"Bold CTRL + SHIFT + B",value:"bold"},{type:"push",label:"Italic CTRL + SHIFT + I",value:"italic"},{type:"push",label:"Underline CTRL + SHIFT + U",value:"underline"},{type:"separator"},{type:"push",label:"Subscript",value:"subscript",disabled:true},{type:"push",label:"Superscript",value:"superscript",disabled:true}]},{type:"separator"},{group:"textstyle2",label:"&nbsp;",buttons:[{type:"color",label:"Font Color",value:"forecolor",disabled:true},{type:"color",label:"Background Color",value:"backcolor",disabled:true},{type:"separator"},{type:"push",label:"Remove Formatting",value:"removeformat",disabled:true},{type:"push",label:"Show/Hide Hidden Elements",value:"hiddenelements"}]},{type:"separator"},{group:"undoredo",label:"Undo/Redo",buttons:[{type:"push",label:"Undo",value:"undo",disabled:true},{type:"push",label:"Redo",value:"redo",disabled:true}]},{type:"separator"},{group:"alignment",label:"Alignment",buttons:[{type:"push",label:"Align Left CTRL + SHIFT + [",value:"justifyleft"},{type:"push",label:"Align Center CTRL + SHIFT + |",value:"justifycenter"},{type:"push",label:"Align Right CTRL + SHIFT + ]",value:"justifyright"},{type:"push",label:"Justify",value:"justifyfull"}]},{type:"separator"},{group:"parastyle",label:"Paragraph Style",buttons:[{type:"select",label:"Normal",value:"heading",disabled:true,menu:[{text:"Normal",value:"none",checked:true},{text:"Header 1",value:"h1"},{text:"Header 2",value:"h2"},{text:"Header 3",value:"h3"},{text:"Header 4",value:"h4"},{text:"Header 5",value:"h5"},{text:"Header 6",value:"h6"}]}]},{type:"separator"},{group:"indentlist2",label:"Indenting and Lists",buttons:[{type:"push",label:"Indent",value:"indent",disabled:true},{type:"push",label:"Outdent",value:"outdent",disabled:true},{type:"push",label:"Create an Unordered List",value:"insertunorderedlist"},{type:"push",label:"Create an Ordered List",value:"insertorderedlist"}]},{type:"separator"},{group:"insertitem",label:"Insert Item",buttons:[{type:"push",label:"HTML Link CTRL + SHIFT + L",value:"createlink",disabled:true},{type:"push",label:"Insert Image",value:"insertimage"}]}]};}if(!this._defaultImageToolbarConfig){this._defaultImageToolbarConfig={buttonType:this._defaultToolbar.buttonType,buttons:[{group:"textflow",label:this.STR_IMAGE_TEXTFLOW+":",buttons:[{type:"push",label:"Left",value:"left"},{type:"push",label:"Inline",value:"inline"},{type:"push",label:"Block",value:"block"},{type:"push",label:"Right",value:"right"}]},{type:"separator"},{group:"padding",label:this.STR_IMAGE_PADDING+":",buttons:[{type:"spin",label:"0",value:"padding",range:[0,50]}]},{type:"separator"},{group:"border",label:this.STR_IMAGE_BORDER+":",buttons:[{type:"select",label:this.STR_IMAGE_BORDER_SIZE,value:"bordersize",menu:[{text:"none",value:"0",checked:true},{text:"1px",value:"1"},{text:"2px",value:"2"},{text:"3px",value:"3"},{text:"4px",value:"4"},{text:"5px",value:"5"}]},{type:"select",label:this.STR_IMAGE_BORDER_TYPE,value:"bordertype",disabled:true,menu:[{text:"Solid",value:"solid",checked:true},{text:"Dashed",value:"dashed"},{text:"Dotted",value:"dotted"}]},{type:"color",label:"Border Color",value:"bordercolor",disabled:true}]}]};
-}YAHOO.widget.Editor.superclass.init.call(this,F,E);},_render:function(){YAHOO.widget.Editor.superclass._render.apply(this,arguments);var E=this;window.setTimeout(function(){E._renderPanel.call(E);},800);},initAttributes:function(E){YAHOO.widget.Editor.superclass.initAttributes.call(this,E);this.setAttributeConfig("localFileWarning",{value:E.locaFileWarning||true});this.setAttributeConfig("hiddencss",{value:E.hiddencss||".yui-hidden font, .yui-hidden strong, .yui-hidden b, .yui-hidden em, .yui-hidden i, .yui-hidden u, .yui-hidden div,.yui-hidden p,.yui-hidden span,.yui-hidden img, .yui-hidden ul, .yui-hidden ol, .yui-hidden li, .yui-hidden table { border: 1px dotted #ccc; } .yui-hidden .yui-non { border: none; } .yui-hidden img { padding: 2px; }",writeOnce:true});},_windows:null,_defaultImageToolbar:null,_defaultImageToolbarConfig:null,_fixNodes:function(){YAHOO.widget.Editor.superclass._fixNodes.call(this);try{var H="";var J=this._getDoc().getElementsByTagName("img");for(var F=0;F<J.length;F++){if(J[F].getAttribute("href",2)){H=J[F].getAttribute("src",2);if(this._isLocalFile(H)){C.addClass(J[F],this.CLASS_LOCAL_FILE);}else{C.removeClass(J[F],this.CLASS_LOCAL_FILE);}}}var G=this._getDoc().body.getElementsByTagName("a");for(var E=0;E<G.length;E++){if(G[E].getAttribute("href",2)){H=G[E].getAttribute("href",2);if(this._isLocalFile(H)){C.addClass(G[E],this.CLASS_LOCAL_FILE);}else{C.removeClass(G[E],this.CLASS_LOCAL_FILE);}}}}catch(I){}},_disabled:["createlink","forecolor","backcolor","fontname","fontsize","superscript","subscript","removeformat","heading","indent"],_alwaysDisabled:{"outdent":true},_alwaysEnabled:{hiddenelements:true},_handleKeyDown:function(G){YAHOO.widget.Editor.superclass._handleKeyDown.call(this,G);var F=false,H=null,E=false;switch(G.keyCode){case this._keyMap.JUSTIFY_LEFT.key:if(this._checkKey(this._keyMap.JUSTIFY_LEFT,G)){H="justifyleft";F=true;}break;case this._keyMap.JUSTIFY_CENTER.key:if(this._checkKey(this._keyMap.JUSTIFY_CENTER,G)){H="justifycenter";F=true;}break;case 221:case this._keyMap.JUSTIFY_RIGHT.key:if(this._checkKey(this._keyMap.JUSTIFY_RIGHT,G)){H="justifyright";F=true;}break;}if(F&&H){this.execCommand(H,null);A.stopEvent(G);this.nodeChange();}},_renderCreateLinkWindow:function(){var H='<label for="'+this.get("id")+'_createlink_url"><strong>'+this.STR_LINK_URL+':</strong> <input type="text" name="'+this.get("id")+'_createlink_url" id="'+this.get("id")+'_createlink_url" value=""></label>';H+='<label for="'+this.get("id")+'_createlink_target"><strong>&nbsp;</strong><input type="checkbox" name="'+this.get("id")+'_createlink_target" id="'+this.get("id")+'_createlink_target" value="_blank" class="createlink_target"> '+this.STR_LINK_NEW_WINDOW+"</label>";H+='<label for="'+this.get("id")+'_createlink_title"><strong>'+this.STR_LINK_TITLE+':</strong> <input type="text" name="'+this.get("id")+'_createlink_title" id="'+this.get("id")+'_createlink_title" value=""></label>';var E=document.createElement("div");E.innerHTML=H;var G=document.createElement("div");G.className="removeLink";var F=document.createElement("a");F.href="#";F.innerHTML=this.STR_LINK_PROP_REMOVE;F.title=this.STR_LINK_PROP_REMOVE;A.on(F,"click",function(I){A.stopEvent(I);this.unsubscribeAll("afterExecCommand");this.execCommand("unlink");this.closeWindow();},this,true);G.appendChild(F);E.appendChild(G);this._windows.createlink={};this._windows.createlink.body=E;A.on(E,"keyup",function(I){A.stopPropagation(I);});this.get("panel").editor_form.appendChild(E);this.fireEvent("windowCreateLinkRender",{type:"windowCreateLinkRender",panel:this.get("panel"),body:E});return E;},_handleCreateLinkClick:function(){var E=this._getSelectedElement();if(this._isElement(E,"img")){this.STOP_EXEC_COMMAND=true;this.currentElement[0]=E;this.toolbar.fireEvent("insertimageClick",{type:"insertimageClick",target:this.toolbar});this.fireEvent("afterExecCommand",{type:"afterExecCommand",target:this});return false;}if(this.get("limitCommands")){if(!this.toolbar.getButtonByValue("createlink")){return false;}}this.on("afterExecCommand",function(){var K=new YAHOO.widget.EditorWindow("createlink",{width:"350px"});var I=this.currentElement[0],H="",L="",J="",G=false;if(I){K.el=I;if(I.getAttribute("href",2)!==null){H=I.getAttribute("href",2);if(this._isLocalFile(H)){K.setFooter(this.STR_LOCAL_FILE_WARNING);G=true;}else{K.setFooter(" ");}}if(I.getAttribute("title")!==null){L=I.getAttribute("title");}if(I.getAttribute("target")!==null){J=I.getAttribute("target");}}var F=null;if(this._windows.createlink&&this._windows.createlink.body){F=this._windows.createlink.body;}else{F=this._renderCreateLinkWindow();}K.setHeader(this.STR_LINK_PROP_TITLE);K.setBody(F);A.purgeElement(this.get("id")+"_createlink_url");C.get(this.get("id")+"_createlink_url").value=H;C.get(this.get("id")+"_createlink_title").value=L;C.get(this.get("id")+"_createlink_target").checked=((J)?true:false);A.onAvailable(this.get("id")+"_createlink_url",function(){var M=this.get("id");window.setTimeout(function(){try{YAHOO.util.Dom.get(M+"_createlink_url").focus();}catch(N){}},50);if(this._isLocalFile(H)){C.addClass(this.get("id")+"_createlink_url","warning");this.get("panel").setFooter(this.STR_LOCAL_FILE_WARNING);}else{C.removeClass(this.get("id")+"_createlink_url","warning");this.get("panel").setFooter(" ");}A.on(this.get("id")+"_createlink_url","blur",function(){var N=C.get(this.get("id")+"_createlink_url");if(this._isLocalFile(N.value)){C.addClass(N,"warning");this.get("panel").setFooter(this.STR_LOCAL_FILE_WARNING);}else{C.removeClass(N,"warning");this.get("panel").setFooter(" ");}},this,true);},this,true);this.openWindow(K);});},_handleCreateLinkWindowClose:function(){var G=C.get(this.get("id")+"_createlink_url"),I=C.get(this.get("id")+"_createlink_target"),K=C.get(this.get("id")+"_createlink_title"),H=arguments[0].win.el,E=H;if(G&&G.value){var J=G.value;if((J.indexOf(":/"+"/")==-1)&&(J.substring(0,1)!="/")&&(J.substring(0,6).toLowerCase()!="mailto")){if((J.indexOf("@")!=-1)&&(J.substring(0,6).toLowerCase()!="mailto")){J="mailto:"+J;
-}else{if(J.substring(0,1)!="#"){J="http:/"+"/"+J;}}}H.setAttribute("href",J);if(I.checked){H.setAttribute("target",I.value);}else{H.setAttribute("target","");}H.setAttribute("title",((K.value)?K.value:""));}else{var F=this._getDoc().createElement("span");F.innerHTML=H.innerHTML;C.addClass(F,"yui-non");H.parentNode.replaceChild(F,H);}C.removeClass(G,"warning");C.get(this.get("id")+"_createlink_url").value="";C.get(this.get("id")+"_createlink_title").value="";C.get(this.get("id")+"_createlink_target").checked=false;this.nodeChange();this.currentElement=[];},_renderInsertImageWindow:function(){var G=this.currentElement[0];var M='<label for="'+this.get("id")+'_insertimage_url"><strong>'+this.STR_IMAGE_URL+':</strong> <input type="text" id="'+this.get("id")+'_insertimage_url" value="" size="40"></label>';var K=document.createElement("div");K.innerHTML=M;var J=document.createElement("div");J.id=this.get("id")+"_img_toolbar";K.appendChild(J);var I='<label for="'+this.get("id")+'_insertimage_title"><strong>'+this.STR_IMAGE_TITLE+':</strong> <input type="text" id="'+this.get("id")+'_insertimage_title" value="" size="40"></label>';I+='<label for="'+this.get("id")+'_insertimage_link"><strong>'+this.STR_LINK_URL+':</strong> <input type="text" name="'+this.get("id")+'_insertimage_link" id="'+this.get("id")+'_insertimage_link" value=""></label>';I+='<label for="'+this.get("id")+'_insertimage_target"><strong>&nbsp;</strong><input type="checkbox" name="'+this.get("id")+'_insertimage_target_" id="'+this.get("id")+'_insertimage_target" value="_blank" class="insertimage_target"> '+this.STR_LINK_NEW_WINDOW+"</label>";var E=document.createElement("div");E.innerHTML=I;K.appendChild(E);var F={};D.augmentObject(F,this._defaultImageToolbarConfig);var H=new YAHOO.widget.Toolbar(J,F);H.editor_el=G;this._defaultImageToolbar=H;var N=H.get("cont");var L=document.createElement("div");L.className="yui-toolbar-group yui-toolbar-group-height-width height-width";L.innerHTML="<h3>"+this.STR_IMAGE_SIZE+":</h3>";L.innerHTML+='<span tabIndex="-1"><input type="text" size="3" value="" id="'+this.get("id")+'_insertimage_width"> x <input type="text" size="3" value="" id="'+this.get("id")+'_insertimage_height"></span>';N.insertBefore(L,N.firstChild);A.onAvailable(this.get("id")+"_insertimage_width",function(){A.on(this.get("id")+"_insertimage_width","blur",function(){var O=parseInt(C.get(this.get("id")+"_insertimage_width").value,10);if(O>5){this._defaultImageToolbar.editor_el.style.width=O+"px";}},this,true);},this,true);A.onAvailable(this.get("id")+"_insertimage_height",function(){A.on(this.get("id")+"_insertimage_height","blur",function(){var O=parseInt(C.get(this.get("id")+"_insertimage_height").value,10);if(O>5){this._defaultImageToolbar.editor_el.style.height=O+"px";}},this,true);},this,true);H.on("colorPickerClicked",function(T){var P="1",S="solid",O="black",R=this._defaultImageToolbar.editor_el;if(R.style.borderLeftWidth){P=parseInt(R.style.borderLeftWidth,10);}if(R.style.borderLeftStyle){S=R.style.borderLeftStyle;}if(R.style.borderLeftColor){O=R.style.borderLeftColor;}var Q=P+"px "+S+" #"+T.color;R.style.border=Q;},this,true);H.on("buttonClick",function(V){var T=V.button.value,S=this._defaultImageToolbar.editor_el,R="";if(V.button.menucmd){T=V.button.menucmd;}var P="1",Q="solid",O="black";if(S.style.borderLeftWidth){P=parseInt(S.style.borderLeftWidth,10);}if(S.style.borderLeftStyle){Q=S.style.borderLeftStyle;}if(S.style.borderLeftColor){O=S.style.borderLeftColor;}switch(T){case"bordersize":if(this.browser.webkit&&this._lastImage){C.removeClass(this._lastImage,"selected");this._lastImage=null;}R=parseInt(V.button.value,10)+"px "+Q+" "+O;S.style.border=R;if(parseInt(V.button.value,10)>0){H.enableButton("bordertype");H.enableButton("bordercolor");}else{H.disableButton("bordertype");H.disableButton("bordercolor");}break;case"bordertype":if(this.browser.webkit&&this._lastImage){C.removeClass(this._lastImage,"selected");this._lastImage=null;}R=P+"px "+V.button.value+" "+O;S.style.border=R;break;case"right":case"left":H.deselectAllButtons();S.style.display="";S.align=V.button.value;break;case"inline":H.deselectAllButtons();S.style.display="";S.align="";break;case"block":H.deselectAllButtons();S.style.display="block";S.align="center";break;case"padding":var U=H.getButtonById(V.button.id);S.style.margin=U.get("label")+"px";break;}H.selectButton(V.button.value);if(T!=="padding"){this.moveWindow();}},this,true);if(this.get("localFileWarning")){A.on(this.get("id")+"_insertimage_link","blur",function(){var O=C.get(this.get("id")+"_insertimage_link");if(this._isLocalFile(O.value)){C.addClass(O,"warning");this.get("panel").setFooter(this.STR_LOCAL_FILE_WARNING);}else{C.removeClass(O,"warning");this.get("panel").setFooter(" ");if((this.browser.webkit&&!this.browser.webkit3||this.browser.air)||this.browser.opera){this.get("panel").setFooter(this.STR_IMAGE_COPY);}}},this,true);}A.on(this.get("id")+"_insertimage_url","blur",function(){var Q=C.get(this.get("id")+"_insertimage_url"),R=this.currentElement[0];if(Q.value&&R){if(Q.value==R.getAttribute("src",2)){return false;}}if(this._isLocalFile(Q.value)){C.addClass(Q,"warning");this.get("panel").setFooter(this.STR_LOCAL_FILE_WARNING);}else{if(this.currentElement[0]){C.removeClass(Q,"warning");this.get("panel").setFooter(" ");if((this.browser.webkit&&!this.browser.webkit3||this.browser.air)||this.browser.opera){this.get("panel").setFooter(this.STR_IMAGE_COPY);}if(Q&&Q.value&&(Q.value!=this.STR_IMAGE_HERE)){this.currentElement[0].setAttribute("src",Q.value);var P=this,O=new Image();O.onerror=function(){Q.value=P.STR_IMAGE_HERE;O.setAttribute("src",P.get("blankimage"));P.currentElement[0].setAttribute("src",P.get("blankimage"));YAHOO.util.Dom.get(P.get("id")+"_insertimage_height").value=O.height;YAHOO.util.Dom.get(P.get("id")+"_insertimage_width").value=O.width;};var S=this.get("id");window.setTimeout(function(){YAHOO.util.Dom.get(S+"_insertimage_height").value=O.height;YAHOO.util.Dom.get(S+"_insertimage_width").value=O.width;
-if(P.currentElement&&P.currentElement[0]){if(!P.currentElement[0]._height){P.currentElement[0]._height=O.height;}if(!P.currentElement[0]._width){P.currentElement[0]._width=O.width;}}},800);if(Q.value!=this.STR_IMAGE_HERE){O.src=Q.value;}}}}},this,true);this._windows.insertimage={};this._windows.insertimage.body=K;this.get("panel").editor_form.appendChild(K);this.fireEvent("windowInsertImageRender",{type:"windowInsertImageRender",panel:this.get("panel"),body:K,toolbar:H});return K;},_handleInsertImageClick:function(){if(this.get("limitCommands")){if(!this.toolbar.getButtonByValue("insertimage")){return false;}}this.on("afterExecCommand",function(){var H=this.currentElement[0],O=null,L="",Z="",G=null,a="",K="",X="",R=75,V=75,Q=0,M=0,J=0,S=false,I=new YAHOO.widget.EditorWindow("insertimage",{width:"415px"});if(!H){H=this._getSelectedElement();}if(H){I.el=H;if(H.getAttribute("src")){K=H.getAttribute("src",2);if(K.indexOf(this.get("blankimage"))!=-1){K=this.STR_IMAGE_HERE;S=true;}}if(H.getAttribute("alt",2)){a=H.getAttribute("alt",2);}if(H.getAttribute("title",2)){a=H.getAttribute("title",2);}if(H.parentNode&&this._isElement(H.parentNode,"a")){L=H.parentNode.getAttribute("href",2);if(H.parentNode.getAttribute("target")!==null){Z=H.parentNode.getAttribute("target");}}R=parseInt(H.height,10);V=parseInt(H.width,10);if(H.style.height){R=parseInt(H.style.height,10);}if(H.style.width){V=parseInt(H.style.width,10);}if(H.style.margin){Q=parseInt(H.style.margin,10);}if(!S){if(!H._height){H._height=R;}if(!H._width){H._width=V;}M=H._height;J=H._width;}}if(this._windows.insertimage&&this._windows.insertimage.body){O=this._windows.insertimage.body;this._defaultImageToolbar.resetAllButtons();}else{O=this._renderInsertImageWindow();}G=this._defaultImageToolbar;G.editor_el=H;var F="0",U="solid";if(H.style.borderLeftWidth){F=parseInt(H.style.borderLeftWidth,10);}if(H.style.borderLeftStyle){U=H.style.borderLeftStyle;}var Y=G.getButtonByValue("bordersize"),W=((parseInt(F,10)>0)?"":this.STR_NONE);Y.set("label",'<span class="yui-toolbar-bordersize-'+F+'">'+W+"</span>");this._updateMenuChecked("bordersize",F,G);var N=G.getButtonByValue("bordertype");N.set("label",'<span class="yui-toolbar-bordertype-'+U+'">asdfa</span>');this._updateMenuChecked("bordertype",U,G);if(parseInt(F,10)>0){G.enableButton(N);G.enableButton(Y);G.enableButton("bordercolor");}if((H.align=="right")||(H.align=="left")){G.selectButton(H.align);}else{if(H.style.display=="block"){G.selectButton("block");}else{G.selectButton("inline");}}if(parseInt(H.style.marginLeft,10)>0){G.getButtonByValue("padding").set("label",""+parseInt(H.style.marginLeft,10));}if(H.style.borderSize){G.selectButton("bordersize");G.selectButton(parseInt(H.style.borderSize,10));}G.getButtonByValue("padding").set("label",""+Q);I.setHeader(this.STR_IMAGE_PROP_TITLE);I.setBody(O);if((this.browser.webkit&&!this.browser.webkit3||this.browser.air)||this.browser.opera){I.setFooter(this.STR_IMAGE_COPY);}this.openWindow(I);C.get(this.get("id")+"_insertimage_url").value=K;C.get(this.get("id")+"_insertimage_title").value=a;C.get(this.get("id")+"_insertimage_link").value=L;C.get(this.get("id")+"_insertimage_target").checked=((Z)?true:false);C.get(this.get("id")+"_insertimage_width").value=V;C.get(this.get("id")+"_insertimage_height").value=R;if(((R!=M)||(V!=J))&&(!S)){var P=document.createElement("span");P.className="info";P.innerHTML=this.STR_IMAGE_ORIG_SIZE+": ("+J+" x "+M+")";if(C.get(this.get("id")+"_insertimage_height").nextSibling){var E=C.get(this.get("id")+"_insertimage_height").nextSibling;E.parentNode.removeChild(E);}C.get(this.get("id")+"_insertimage_height").parentNode.appendChild(P);}this.toolbar.selectButton("insertimage");var T=this.get("id");window.setTimeout(function(){try{YAHOO.util.Dom.get(T+"_insertimage_url").focus();if(S){YAHOO.util.Dom.get(T+"_insertimage_url").select();}}catch(c){}},50);});},_handleInsertImageWindowClose:function(){var E=C.get(this.get("id")+"_insertimage_url"),L=C.get(this.get("id")+"_insertimage_title"),I=C.get(this.get("id")+"_insertimage_link"),J=C.get(this.get("id")+"_insertimage_target"),H=arguments[0].win.el;if(E&&E.value&&(E.value!=this.STR_IMAGE_HERE)){H.setAttribute("src",E.value);H.setAttribute("title",L.value);H.setAttribute("alt",L.value);var G=H.parentNode;if(I.value){var K=I.value;if((K.indexOf(":/"+"/")==-1)&&(K.substring(0,1)!="/")&&(K.substring(0,6).toLowerCase()!="mailto")){if((K.indexOf("@")!=-1)&&(K.substring(0,6).toLowerCase()!="mailto")){K="mailto:"+K;}else{K="http:/"+"/"+K;}}if(G&&this._isElement(G,"a")){G.setAttribute("href",K);if(J.checked){G.setAttribute("target",J.value);}else{G.setAttribute("target","");}}else{var F=this._getDoc().createElement("a");F.setAttribute("href",K);if(J.checked){F.setAttribute("target",J.value);}else{F.setAttribute("target","");}H.parentNode.replaceChild(F,H);F.appendChild(H);}}else{if(G&&this._isElement(G,"a")){G.parentNode.replaceChild(H,G);}}}else{H.parentNode.removeChild(H);}C.get(this.get("id")+"_insertimage_url").value="";C.get(this.get("id")+"_insertimage_title").value="";C.get(this.get("id")+"_insertimage_link").value="";C.get(this.get("id")+"_insertimage_target").checked=false;C.get(this.get("id")+"_insertimage_width").value=0;C.get(this.get("id")+"_insertimage_height").value=0;this._defaultImageToolbar.resetAllButtons();this.currentElement=[];this.nodeChange();},EDITOR_PANEL_ID:"-panel",_renderPanel:function(){var H=document.createElement("div");C.addClass(H,"yui-editor-panel");H.id=this.get("id")+this.EDITOR_PANEL_ID;H.style.position="absolute";H.style.top="-9999px";H.style.left="-9999px";document.body.appendChild(H);this.get("element_cont").insertBefore(H,this.get("element_cont").get("firstChild"));var E=new YAHOO.widget.Overlay(this.get("id")+this.EDITOR_PANEL_ID,{width:"300px",iframe:true,visible:false,underlay:"none",draggable:false,close:false});this.set("panel",E);E.setBody("---");E.setHeader(" ");E.setFooter(" ");var K=document.createElement("div");K.className=this.CLASS_PREFIX+"-body-cont";
-for(var L in this.browser){if(this.browser[L]){C.addClass(K,L);break;}}C.addClass(K,((YAHOO.widget.Button&&(this._defaultToolbar.buttonType=="advanced"))?"good-button":"no-button"));var I=document.createElement("h3");I.className="yui-editor-skipheader";I.innerHTML=this.STR_CLOSE_WINDOW_NOTE;K.appendChild(I);var F=document.createElement("fieldset");E.editor_form=F;K.appendChild(F);var G=document.createElement("span");G.innerHTML="X";G.title=this.STR_CLOSE_WINDOW;G.className="close";A.on(G,"click",this.closeWindow,this,true);var M=document.createElement("span");M.innerHTML="^";M.className="knob";E.editor_knob=M;var N=document.createElement("h3");E.editor_header=N;N.innerHTML="<span></span>";E.setHeader(" ");E.appendToHeader(N);N.appendChild(G);N.appendChild(M);E.setBody(" ");E.setFooter(" ");E.appendToBody(K);A.on(E.element,"click",function(O){A.stopPropagation(O);});var J=function(){E.bringToTop();YAHOO.util.Dom.setStyle(this.element,"display","block");this._handleWindowInputs(false);};E.showEvent.subscribe(J,this,true);E.hideEvent.subscribe(function(){this._handleWindowInputs(true);},this,true);E.renderEvent.subscribe(function(){this._renderInsertImageWindow();this._renderCreateLinkWindow();this.fireEvent("windowRender",{type:"windowRender",panel:E});this._handleWindowInputs(true);},this,true);if(this.DOMReady){this.get("panel").render();}else{A.onDOMReady(function(){this.get("panel").render();},this,true);}return this.get("panel");},_handleWindowInputs:function(F){if(!D.isBoolean(F)){F=false;}var E=this.get("panel").element.getElementsByTagName("input");for(var G=0;G<E.length;G++){try{E[G].disabled=F;}catch(H){}}},openWindow:function(K){var P=this;window.setTimeout(function(){P.toolbar.set("disabled",true);},10);A.on(document,"keydown",this._closeWindow,this,true);if(this.currentWindow){this.closeWindow();}var Q=C.getXY(this.currentElement[0]),N=C.getXY(this.get("iframe").get("element")),E=this.get("panel"),H=[(Q[0]+N[0]-20),(Q[1]+N[1]+10)],G=(parseInt(K.attrs.width,10)/2),L="center",J=null;this.fireEvent("beforeOpenWindow",{type:"beforeOpenWindow",win:K,panel:E});var F=E.editor_form;var I=this._windows;for(var O in I){if(D.hasOwnProperty(I,O)){if(I[O]&&I[O].body){if(O==K.name){C.setStyle(I[O].body,"display","block");}else{C.setStyle(I[O].body,"display","none");}}}}if(this._windows[K.name].body){C.setStyle(this._windows[K.name].body,"display","block");F.appendChild(this._windows[K.name].body);}else{if(D.isObject(K.body)){F.appendChild(K.body);}else{var M=document.createElement("div");M.innerHTML=K.body;F.appendChild(M);}}E.editor_header.firstChild.innerHTML=K.header;if(K.footer!==null){E.setFooter(K.footer);}E.cfg.setProperty("width",K.attrs.width);this.currentWindow=K;this.moveWindow(true);E.show();this.fireEvent("afterOpenWindow",{type:"afterOpenWindow",win:K,panel:E});},moveWindow:function(F){if(!this.currentWindow){return false;}var I=this.currentWindow,J=C.getXY(this.currentElement[0]),a=C.getXY(this.get("iframe").get("element")),O=this.get("panel"),Y=[(J[0]+a[0]),(J[1]+a[1])],R=(parseInt(I.attrs.width,10)/2),U="center",Q=O.cfg.getProperty("xy")||[0,0],G=O.editor_knob,X=0,L=0,T=false;Y[0]=((Y[0]-R)+20);Y[0]=Y[0]-C.getDocumentScrollLeft(this._getDoc());Y[1]=Y[1]-C.getDocumentScrollTop(this._getDoc());if(this._isElement(this.currentElement[0],"img")){if(this.currentElement[0].src.indexOf(this.get("blankimage"))!=-1){Y[0]=(Y[0]+(75/2));Y[1]=(Y[1]+75);}else{var N=parseInt(this.currentElement[0].width,10);var W=parseInt(this.currentElement[0].height,10);Y[0]=(Y[0]+(N/2));Y[1]=(Y[1]+W);}Y[1]=Y[1]+15;}else{var K=C.getStyle(this.currentElement[0],"fontSize");if(K&&K.indexOf&&K.indexOf("px")!=-1){Y[1]=Y[1]+parseInt(C.getStyle(this.currentElement[0],"fontSize"),10)+5;}else{Y[1]=Y[1]+20;}}if(Y[0]<a[0]){Y[0]=a[0]+5;U="left";}if((Y[0]+(R*2))>(a[0]+parseInt(this.get("iframe").get("element").clientWidth,10))){Y[0]=((a[0]+parseInt(this.get("iframe").get("element").clientWidth,10))-(R*2)-5);U="right";}try{X=(Y[0]-Q[0]);L=(Y[1]-Q[1]);}catch(c){}var P=a[1]+parseInt(this.get("height"),10);var H=a[0]+parseInt(this.get("width"),10);if(Y[1]>P){Y[1]=P;}if(Y[0]>H){Y[0]=(H/2);}X=((X<0)?(X*-1):X);L=((L<0)?(L*-1):L);if(((X>10)||(L>10))||F){var S=0,V=0;if(this.currentElement[0].width){V=(parseInt(this.currentElement[0].width,10)/2);}var M=J[0]+a[0]+V;S=M-Y[0];if(S>(parseInt(I.attrs.width,10)-1)){S=((parseInt(I.attrs.width,10)-30)-1);}else{if(S<40){S=1;}}if(isNaN(S)){S=1;}if(F){if(G){G.style.left=S+"px";}O.cfg.setProperty("xy",Y);}else{if(this.get("animate")){T=new YAHOO.util.Anim(O.element,{},0.5,YAHOO.util.Easing.easeOut);T.attributes={top:{to:Y[1]},left:{to:Y[0]}};T.onComplete.subscribe(function(){O.cfg.setProperty("xy",Y);});var Z=new YAHOO.util.Anim(O.iframe,T.attributes,0.5,YAHOO.util.Easing.easeOut);var E=new YAHOO.util.Anim(G,{left:{to:S}},0.6,YAHOO.util.Easing.easeOut);T.animate();Z.animate();E.animate();}else{G.style.left=S+"px";O.cfg.setProperty("xy",Y);}}}},_closeWindow:function(E){if(this._checkKey(this._keyMap.CLOSE_WINDOW,E)){if(this.currentWindow){this.closeWindow();}}},closeWindow:function(E){this.fireEvent("window"+this.currentWindow.name+"Close",{type:"window"+this.currentWindow.name+"Close",win:this.currentWindow,el:this.currentElement[0]});this.fireEvent("closeWindow",{type:"closeWindow",win:this.currentWindow});this.currentWindow=null;this.get("panel").hide();this.get("panel").cfg.setProperty("xy",[-900,-900]);this.get("panel").syncIframe();this.unsubscribeAll("afterExecCommand");this.toolbar.set("disabled",false);this.toolbar.resetAllButtons();this.focus();A.removeListener(document,"keydown",this._closeWindow);},cmd_undo:function(G){if(this._hasUndoLevel()){var F=this.getEditorHTML(),E;if(!this._undoLevel){this._undoLevel=this._undoCache.length;}this._undoLevel=(this._undoLevel-1);if(this._undoCache[this._undoLevel]){E=this._getUndo(this._undoLevel);if(E!=F){this.setEditorHTML(E);}else{this._undoLevel=(this._undoLevel-1);E=this._getUndo(this._undoLevel);if(E!=F){this.setEditorHTML(E);}}}else{this._undoLevel=0;
-this.toolbar.disableButton("undo");}}return[false];},cmd_redo:function(F){this._undoLevel=this._undoLevel+1;if(this._undoLevel>=this._undoCache.length){this._undoLevel=this._undoCache.length;}if(this._undoCache[this._undoLevel]){var E=this._getUndo(this._undoLevel);this.setEditorHTML(E);}else{this.toolbar.disableButton("redo");}return[false];},cmd_heading:function(I){var F=true,G=null,H="heading",J=this._getSelection(),E=this._getSelectedElement();if(E){J=E;}if(this.browser.ie){H="formatblock";}if(I==this.STR_NONE){if((J&&J.tagName&&(J.tagName.toLowerCase().substring(0,1)=="h"))||(J&&J.parentNode&&J.parentNode.tagName&&(J.parentNode.tagName.toLowerCase().substring(0,1)=="h"))){if(J.parentNode.tagName.toLowerCase().substring(0,1)=="h"){J=J.parentNode;}if(this._isElement(J,"html")){return[false];}G=this._swapEl(E,"span",function(K){K.className="yui-non";});this._selectNode(G);this.currentElement[0]=G;}F=false;}else{if(this._isElement(E,"h1")||this._isElement(E,"h2")||this._isElement(E,"h3")||this._isElement(E,"h4")||this._isElement(E,"h5")||this._isElement(E,"h6")){G=this._swapEl(E,I);this._selectNode(G);this.currentElement[0]=G;}else{this._createCurrentElement(I);this._selectNode(this.currentElement[0]);}F=false;}return[F,H];},cmd_hiddenelements:function(E){if(this._showingHiddenElements){this._lastButton=null;this._showingHiddenElements=false;this.toolbar.deselectButton("hiddenelements");C.removeClass(this._getDoc().body,this.CLASS_HIDDEN);}else{this._showingHiddenElements=true;C.addClass(this._getDoc().body,this.CLASS_HIDDEN);this.toolbar.selectButton("hiddenelements");}return[false];},cmd_removeformat:function(H){var F=true;if(this.browser.webkit&&!this._getDoc().queryCommandEnabled("removeformat")){var E=this._getSelection()+"";this._createCurrentElement("span");this.currentElement[0].className="yui-non";this.currentElement[0].innerHTML=E;for(var G=1;G<this.currentElement.length;G++){this.currentElement[G].parentNode.removeChild(this.currentElement[G]);}F=false;}return[F];},cmd_script:function(K,J){var G=true,E=K.toLowerCase().substring(0,3),H=null,F=this._getSelectedElement();if(this.browser.webkit){if(this._isElement(F,E)){H=this._swapEl(this.currentElement[0],"span",function(L){L.className="yui-non";});this._selectNode(H);}else{this._createCurrentElement(E);var I=this._swapEl(this.currentElement[0],E);this._selectNode(I);this.currentElement[0]=I;}G=false;}return G;},cmd_superscript:function(E){return[this.cmd_script("superscript",E)];},cmd_subscript:function(E){return[this.cmd_script("subscript",E)];},cmd_indent:function(H){var E=true,G=this._getSelectedElement(),I=null;if(this.browser.ie){if(this._isElement(G,"blockquote")){I=this._getDoc().createElement("blockquote");I.innerHTML=G.innerHTML;G.innerHTML="";G.appendChild(I);this._selectNode(I);}else{I=this._getDoc().createElement("blockquote");var F=this._getRange().htmlText;I.innerHTML=F;this._createCurrentElement("blockquote");this.currentElement[0].parentNode.replaceChild(I,this.currentElement[0]);this.currentElement[0]=I;this._selectNode(this.currentElement[0]);}E=false;}else{H="blockquote";}return[E,"formatblock",H];},cmd_outdent:function(I){var E=true,H=this._getSelectedElement(),J=null,F=null;if(this.browser.webkit||this.browser.ie){H=this._getSelectedElement();if(this._isElement(H,"blockquote")){var G=H.parentNode;if(this._isElement(H.parentNode,"blockquote")){G.innerHTML=H.innerHTML;this._selectNode(G);}else{F=this._getDoc().createElement("span");F.innerHTML=H.innerHTML;YAHOO.util.Dom.addClass(F,"yui-non");G.replaceChild(F,H);this._selectNode(F);}}else{}E=false;}else{I=false;}return[E,"outdent",I];},cmd_justify:function(E){if(this.browser.ie){if(this._hasSelection()){this._createCurrentElement("span");this._swapEl(this.currentElement[0],"div",function(F){F.style.textAlign=E;});return[false];}}return[true,"justify"+E,""];},cmd_justifycenter:function(){return[this.cmd_justify("center")];},cmd_justifyleft:function(){return[this.cmd_justify("left")];},cmd_justifyright:function(){return[this.cmd_justify("right")];},toString:function(){var E="Editor";if(this.get&&this.get("element_cont")){E="Editor (#"+this.get("element_cont").get("id")+")"+((this.get("disabled")?" Disabled":""));}return E;}});YAHOO.widget.EditorWindow=function(F,E){this.name=F.replace(" ","_");this.attrs=E;};YAHOO.widget.EditorWindow.prototype={header:null,body:null,footer:null,setHeader:function(E){this.header=E;},setBody:function(E){this.body=E;},setFooter:function(E){this.footer=E;},toString:function(){return"Editor Window ("+this.name+")";}};})();YAHOO.register("editor",YAHOO.widget.Editor,{version:"2.8.0r4",build:"2449"});
\ No newline at end of file
diff --git a/koha-tmpl/intranet-tmpl/prog/en/lib/yui/editor/editor.js b/koha-tmpl/intranet-tmpl/prog/en/lib/yui/editor/editor.js
deleted file mode 100644 (file)
index f967f7e..0000000
+++ /dev/null
@@ -1,9447 +0,0 @@
-/*
-Copyright (c) 2009, Yahoo! Inc. All rights reserved.
-Code licensed under the BSD License:
-http://developer.yahoo.net/yui/license.txt
-version: 2.8.0r4
-*/
-(function() {
-var Dom = YAHOO.util.Dom,
-    Event = YAHOO.util.Event,
-    Lang = YAHOO.lang;
-    /**
-     * @module editor    
-     * @description <p>Creates a rich custom Toolbar Button. Primarily used with the Rich Text Editor's Toolbar</p>
-     * @class ToolbarButtonAdvanced
-     * @namespace YAHOO.widget
-     * @requires yahoo, dom, element, event, container_core, menu, button
-     * 
-     * Provides a toolbar button based on the button and menu widgets.
-     * @constructor
-     * @class ToolbarButtonAdvanced
-     * @param {String/HTMLElement} el The element to turn into a button.
-     * @param {Object} attrs Object liternal containing configuration parameters.
-    */
-    if (YAHOO.widget.Button) {
-        YAHOO.widget.ToolbarButtonAdvanced = YAHOO.widget.Button;
-        /**
-        * @property buttonType
-        * @private
-        * @description Tells if the Button is a Rich Button or a Simple Button
-        */
-        YAHOO.widget.ToolbarButtonAdvanced.prototype.buttonType = 'rich';
-        /**
-        * @method checkValue
-        * @param {String} value The value of the option that we want to mark as selected
-        * @description Select an option by value
-        */
-        YAHOO.widget.ToolbarButtonAdvanced.prototype.checkValue = function(value) {
-            var _menuItems = this.getMenu().getItems();
-            if (_menuItems.length === 0) {
-                this.getMenu()._onBeforeShow();
-                _menuItems = this.getMenu().getItems();
-            }
-            for (var i = 0; i < _menuItems.length; i++) {
-                _menuItems[i].cfg.setProperty('checked', false);
-                if (_menuItems[i].value == value) {
-                    _menuItems[i].cfg.setProperty('checked', true);
-                }
-            }      
-        };
-    } else {
-        YAHOO.widget.ToolbarButtonAdvanced = function() {};
-    }
-
-
-    /**
-     * @description <p>Creates a basic custom Toolbar Button. Primarily used with the Rich Text Editor's Toolbar</p><p>Provides a toolbar button based on the button and menu widgets, &lt;select&gt; elements are used in place of menu's.</p>
-     * @class ToolbarButton
-     * @namespace YAHOO.widget
-     * @requires yahoo, dom, element, event
-     * @extends YAHOO.util.Element
-     * 
-     * 
-     * @constructor
-     * @param {String/HTMLElement} el The element to turn into a button.
-     * @param {Object} attrs Object liternal containing configuration parameters.
-    */
-
-    YAHOO.widget.ToolbarButton = function(el, attrs) {
-        
-        if (Lang.isObject(arguments[0]) && !Dom.get(el).nodeType) {
-            attrs = el;
-        }
-        var local_attrs = (attrs || {});
-
-        var oConfig = {
-            element: null,
-            attributes: local_attrs
-        };
-
-        if (!oConfig.attributes.type) {
-            oConfig.attributes.type = 'push';
-        }
-        
-        oConfig.element = document.createElement('span');
-        oConfig.element.setAttribute('unselectable', 'on');
-        oConfig.element.className = 'yui-button yui-' + oConfig.attributes.type + '-button';
-        oConfig.element.innerHTML = '<span class="first-child"><a href="#">LABEL</a></span>';
-        oConfig.element.firstChild.firstChild.tabIndex = '-1';
-        oConfig.attributes.id = (oConfig.attributes.id || Dom.generateId());
-        oConfig.element.id = oConfig.attributes.id;
-
-        YAHOO.widget.ToolbarButton.superclass.constructor.call(this, oConfig.element, oConfig.attributes);
-    };
-
-    YAHOO.extend(YAHOO.widget.ToolbarButton, YAHOO.util.Element, {
-        /**
-        * @property buttonType
-        * @private
-        * @description Tells if the Button is a Rich Button or a Simple Button
-        */
-        buttonType: 'normal',
-        /**
-        * @method _handleMouseOver
-        * @private
-        * @description Adds classes to the button elements on mouseover (hover)
-        */
-        _handleMouseOver: function() {
-            if (!this.get('disabled')) {
-                this.addClass('yui-button-hover');
-                this.addClass('yui-' + this.get('type') + '-button-hover');
-            }
-        },
-        /**
-        * @method _handleMouseOut
-        * @private
-        * @description Removes classes from the button elements on mouseout (hover)
-        */
-        _handleMouseOut: function() {
-            this.removeClass('yui-button-hover');
-            this.removeClass('yui-' + this.get('type') + '-button-hover');
-        },
-        /**
-        * @method checkValue
-        * @param {String} value The value of the option that we want to mark as selected
-        * @description Select an option by value
-        */
-        checkValue: function(value) {
-            if (this.get('type') == 'menu') {
-                var opts = this._button.options;
-                for (var i = 0; i < opts.length; i++) {
-                    if (opts[i].value == value) {
-                        opts.selectedIndex = i;
-                    }
-                }
-            }
-        },
-        /** 
-        * @method init
-        * @description The ToolbarButton class's initialization method
-        */        
-        init: function(p_oElement, p_oAttributes) {
-            YAHOO.widget.ToolbarButton.superclass.init.call(this, p_oElement, p_oAttributes);
-
-            this.on('mouseover', this._handleMouseOver, this, true);
-            this.on('mouseout', this._handleMouseOut, this, true);
-            this.on('click', function(ev) {
-                Event.stopEvent(ev);
-                return false;
-            }, this, true);
-        },
-        /**
-        * @method initAttributes
-        * @description Initializes all of the configuration attributes used to create 
-        * the toolbar.
-        * @param {Object} attr Object literal specifying a set of 
-        * configuration attributes used to create the toolbar.
-        */        
-        initAttributes: function(attr) {
-            YAHOO.widget.ToolbarButton.superclass.initAttributes.call(this, attr);
-            /**
-            * @attribute value
-            * @description The value of the button
-            * @type String
-            */            
-            this.setAttributeConfig('value', {
-                value: attr.value
-            });
-            /**
-            * @attribute menu
-            * @description The menu attribute, see YAHOO.widget.Button
-            * @type Object
-            */            
-            this.setAttributeConfig('menu', {
-                value: attr.menu || false
-            });
-            /**
-            * @attribute type
-            * @description The type of button to create: push, menu, color, select, spin
-            * @type String
-            */            
-            this.setAttributeConfig('type', {
-                value: attr.type,
-                writeOnce: true,
-                method: function(type) {
-                    var el, opt;
-                    if (!this._button) {
-                        this._button = this.get('element').getElementsByTagName('a')[0];
-                    }
-                    switch (type) {
-                        case 'select':
-                        case 'menu':
-                            el = document.createElement('select');
-                            el.id = this.get('id');
-                            var menu = this.get('menu');
-                            for (var i = 0; i < menu.length; i++) {
-                                opt = document.createElement('option');
-                                opt.innerHTML = menu[i].text;
-                                opt.value = menu[i].value;
-                                if (menu[i].checked) {
-                                    opt.selected = true;
-                                }
-                                el.appendChild(opt);
-                            }
-                            this._button.parentNode.replaceChild(el, this._button);
-                            Event.on(el, 'change', this._handleSelect, this, true);
-                            this._button = el;
-                            break;
-                    }
-                }
-            });
-
-            /**
-            * @attribute disabled
-            * @description Set the button into a disabled state
-            * @type String
-            */            
-            this.setAttributeConfig('disabled', {
-                value: attr.disabled || false,
-                method: function(disabled) {
-                    if (disabled) {
-                        this.addClass('yui-button-disabled');
-                        this.addClass('yui-' + this.get('type') + '-button-disabled');
-                    } else {
-                        this.removeClass('yui-button-disabled');
-                        this.removeClass('yui-' + this.get('type') + '-button-disabled');
-                    }
-                    if ((this.get('type') == 'menu') || (this.get('type') == 'select')) {
-                        this._button.disabled = disabled;
-                    }
-                }
-            });
-
-            /**
-            * @attribute label
-            * @description The text label for the button
-            * @type String
-            */            
-            this.setAttributeConfig('label', {
-                value: attr.label,
-                method: function(label) {
-                    if (!this._button) {
-                        this._button = this.get('element').getElementsByTagName('a')[0];
-                    }
-                    if (this.get('type') == 'push') {
-                        this._button.innerHTML = label;
-                    }
-                }
-            });
-
-            /**
-            * @attribute title
-            * @description The title of the button
-            * @type String
-            */            
-            this.setAttributeConfig('title', {
-                value: attr.title
-            });
-
-            /**
-            * @config container
-            * @description The container that the button is rendered to, handled by Toolbar
-            * @type String
-            */            
-            this.setAttributeConfig('container', {
-                value: null,
-                writeOnce: true,
-                method: function(cont) {
-                    this.appendTo(cont);
-                }
-            });
-
-        },
-        /** 
-        * @private
-        * @method _handleSelect
-        * @description The event fired when a change event gets fired on a select element
-        * @param {Event} ev The change event.
-        */        
-        _handleSelect: function(ev) {
-            var tar = Event.getTarget(ev);
-            var value = tar.options[tar.selectedIndex].value;
-            this.fireEvent('change', {type: 'change', value: value });
-        },
-        /** 
-        * @method getMenu
-        * @description A stub function to mimic YAHOO.widget.Button's getMenu method
-        */        
-        getMenu: function() {
-            return this.get('menu');
-        },
-        /** 
-        * @method destroy
-        * @description Destroy the button
-        */        
-        destroy: function() {
-            Event.purgeElement(this.get('element'), true);
-            this.get('element').parentNode.removeChild(this.get('element'));
-            //Brutal Object Destroy
-            for (var i in this) {
-                if (Lang.hasOwnProperty(this, i)) {
-                    this[i] = null;
-                }
-            }       
-        },
-        /** 
-        * @method fireEvent
-        * @description Overridden fireEvent method to prevent DOM events from firing if the button is disabled.
-        */        
-        fireEvent: function(p_sType, p_aArgs) {
-            //  Disabled buttons should not respond to DOM events
-            if (this.DOM_EVENTS[p_sType] && this.get('disabled')) {
-                Event.stopEvent(p_aArgs);
-                return;
-            }
-        
-            YAHOO.widget.ToolbarButton.superclass.fireEvent.call(this, p_sType, p_aArgs);
-        },
-        /**
-        * @method toString
-        * @description Returns a string representing the toolbar.
-        * @return {String}
-        */        
-        toString: function() {
-            return 'ToolbarButton (' + this.get('id') + ')';
-        }
-        
-    });
-})();
-/**
- * @module editor
- * @description <p>Creates a rich Toolbar widget based on Button. Primarily used with the Rich Text Editor</p>
- * @namespace YAHOO.widget
- * @requires yahoo, dom, element, event, toolbarbutton
- * @optional container_core, dragdrop
- */
-(function() {
-var Dom = YAHOO.util.Dom,
-    Event = YAHOO.util.Event,
-    Lang = YAHOO.lang;
-    
-    var getButton = function(id) {
-        var button = id;
-        if (Lang.isString(id)) {
-            button = this.getButtonById(id);
-        }
-        if (Lang.isNumber(id)) {
-            button = this.getButtonByIndex(id);
-        }
-        if ((!(button instanceof YAHOO.widget.ToolbarButton)) && (!(button instanceof YAHOO.widget.ToolbarButtonAdvanced))) {
-            button = this.getButtonByValue(id);
-        }
-        if ((button instanceof YAHOO.widget.ToolbarButton) || (button instanceof YAHOO.widget.ToolbarButtonAdvanced)) {
-            return button;
-        }
-        return false;
-    };
-
-    /**
-     * Provides a rich toolbar widget based on the button and menu widgets
-     * @constructor
-     * @class Toolbar
-     * @extends YAHOO.util.Element
-     * @param {String/HTMLElement} el The element to turn into a toolbar.
-     * @param {Object} attrs Object liternal containing configuration parameters.
-    */
-    YAHOO.widget.Toolbar = function(el, attrs) {
-        
-        if (Lang.isObject(arguments[0]) && !Dom.get(el).nodeType) {
-            attrs = el;
-        }
-        var local_attrs = {};
-        if (attrs) {
-            Lang.augmentObject(local_attrs, attrs); //Break the config reference
-        }
-        
-
-        var oConfig = {
-            element: null,
-            attributes: local_attrs
-        };
-        
-        
-        if (Lang.isString(el) && Dom.get(el)) {
-            oConfig.element = Dom.get(el);
-        } else if (Lang.isObject(el) && Dom.get(el) && Dom.get(el).nodeType) {  
-            oConfig.element = Dom.get(el);
-        }
-        
-
-        if (!oConfig.element) {
-            oConfig.element = document.createElement('DIV');
-            oConfig.element.id = Dom.generateId();
-            
-            if (local_attrs.container && Dom.get(local_attrs.container)) {
-                Dom.get(local_attrs.container).appendChild(oConfig.element);
-            }
-        }
-        
-
-        if (!oConfig.element.id) {
-            oConfig.element.id = ((Lang.isString(el)) ? el : Dom.generateId());
-        }
-        
-        var fs = document.createElement('fieldset');
-        var lg = document.createElement('legend');
-        lg.innerHTML = 'Toolbar';
-        fs.appendChild(lg);
-        
-        var cont = document.createElement('DIV');
-        oConfig.attributes.cont = cont;
-        Dom.addClass(cont, 'yui-toolbar-subcont');
-        fs.appendChild(cont);
-        oConfig.element.appendChild(fs);
-
-        oConfig.element.tabIndex = -1;
-
-        
-        oConfig.attributes.element = oConfig.element;
-        oConfig.attributes.id = oConfig.element.id;
-
-        this._configuredButtons = [];
-
-        YAHOO.widget.Toolbar.superclass.constructor.call(this, oConfig.element, oConfig.attributes);
-         
-    };
-
-    YAHOO.extend(YAHOO.widget.Toolbar, YAHOO.util.Element, {
-        /**
-        * @protected
-        * @property _configuredButtons
-        * @type Array
-        */
-        _configuredButtons: null,
-        /**
-        * @method _addMenuClasses
-        * @private
-        * @description This method is called from Menu's renderEvent to add a few more classes to the menu items
-        * @param {String} ev The event that fired.
-        * @param {Array} na Array of event information.
-        * @param {Object} o Button config object. 
-        */
-        _addMenuClasses: function(ev, na, o) {
-            Dom.addClass(this.element, 'yui-toolbar-' + o.get('value') + '-menu');
-            if (Dom.hasClass(o._button.parentNode.parentNode, 'yui-toolbar-select')) {
-                Dom.addClass(this.element, 'yui-toolbar-select-menu');
-            }
-            var items = this.getItems();
-            for (var i = 0; i < items.length; i++) {
-                Dom.addClass(items[i].element, 'yui-toolbar-' + o.get('value') + '-' + ((items[i].value) ? items[i].value.replace(/ /g, '-').toLowerCase() : items[i]._oText.nodeValue.replace(/ /g, '-').toLowerCase()));
-                Dom.addClass(items[i].element, 'yui-toolbar-' + o.get('value') + '-' + ((items[i].value) ? items[i].value.replace(/ /g, '-') : items[i]._oText.nodeValue.replace(/ /g, '-')));
-            }
-        },
-        /** 
-        * @property buttonType
-        * @description The default button to use
-        * @type Object
-        */
-        buttonType: YAHOO.widget.ToolbarButton,
-        /** 
-        * @property dd
-        * @description The DragDrop instance associated with the Toolbar
-        * @type Object
-        */
-        dd: null,
-        /** 
-        * @property _colorData
-        * @description Object reference containing colors hex and text values.
-        * @type Object
-        */
-        _colorData: {
-/* {{{ _colorData */
-    '#111111': 'Obsidian',
-    '#2D2D2D': 'Dark Gray',
-    '#434343': 'Shale',
-    '#5B5B5B': 'Flint',
-    '#737373': 'Gray',
-    '#8B8B8B': 'Concrete',
-    '#A2A2A2': 'Gray',
-    '#B9B9B9': 'Titanium',
-    '#000000': 'Black',
-    '#D0D0D0': 'Light Gray',
-    '#E6E6E6': 'Silver',
-    '#FFFFFF': 'White',
-    '#BFBF00': 'Pumpkin',
-    '#FFFF00': 'Yellow',
-    '#FFFF40': 'Banana',
-    '#FFFF80': 'Pale Yellow',
-    '#FFFFBF': 'Butter',
-    '#525330': 'Raw Siena',
-    '#898A49': 'Mildew',
-    '#AEA945': 'Olive',
-    '#7F7F00': 'Paprika',
-    '#C3BE71': 'Earth',
-    '#E0DCAA': 'Khaki',
-    '#FCFAE1': 'Cream',
-    '#60BF00': 'Cactus',
-    '#80FF00': 'Chartreuse',
-    '#A0FF40': 'Green',
-    '#C0FF80': 'Pale Lime',
-    '#DFFFBF': 'Light Mint',
-    '#3B5738': 'Green',
-    '#668F5A': 'Lime Gray',
-    '#7F9757': 'Yellow',
-    '#407F00': 'Clover',
-    '#8A9B55': 'Pistachio',
-    '#B7C296': 'Light Jade',
-    '#E6EBD5': 'Breakwater',
-    '#00BF00': 'Spring Frost',
-    '#00FF80': 'Pastel Green',
-    '#40FFA0': 'Light Emerald',
-    '#80FFC0': 'Sea Foam',
-    '#BFFFDF': 'Sea Mist',
-    '#033D21': 'Dark Forrest',
-    '#438059': 'Moss',
-    '#7FA37C': 'Medium Green',
-    '#007F40': 'Pine',
-    '#8DAE94': 'Yellow Gray Green',
-    '#ACC6B5': 'Aqua Lung',
-    '#DDEBE2': 'Sea Vapor',
-    '#00BFBF': 'Fog',
-    '#00FFFF': 'Cyan',
-    '#40FFFF': 'Turquoise Blue',
-    '#80FFFF': 'Light Aqua',
-    '#BFFFFF': 'Pale Cyan',
-    '#033D3D': 'Dark Teal',
-    '#347D7E': 'Gray Turquoise',
-    '#609A9F': 'Green Blue',
-    '#007F7F': 'Seaweed',
-    '#96BDC4': 'Green Gray',
-    '#B5D1D7': 'Soapstone',
-    '#E2F1F4': 'Light Turquoise',
-    '#0060BF': 'Summer Sky',
-    '#0080FF': 'Sky Blue',
-    '#40A0FF': 'Electric Blue',
-    '#80C0FF': 'Light Azure',
-    '#BFDFFF': 'Ice Blue',
-    '#1B2C48': 'Navy',
-    '#385376': 'Biscay',
-    '#57708F': 'Dusty Blue',
-    '#00407F': 'Sea Blue',
-    '#7792AC': 'Sky Blue Gray',
-    '#A8BED1': 'Morning Sky',
-    '#DEEBF6': 'Vapor',
-    '#0000BF': 'Deep Blue',
-    '#0000FF': 'Blue',
-    '#4040FF': 'Cerulean Blue',
-    '#8080FF': 'Evening Blue',
-    '#BFBFFF': 'Light Blue',
-    '#212143': 'Deep Indigo',
-    '#373E68': 'Sea Blue',
-    '#444F75': 'Night Blue',
-    '#00007F': 'Indigo Blue',
-    '#585E82': 'Dockside',
-    '#8687A4': 'Blue Gray',
-    '#D2D1E1': 'Light Blue Gray',
-    '#6000BF': 'Neon Violet',
-    '#8000FF': 'Blue Violet',
-    '#A040FF': 'Violet Purple',
-    '#C080FF': 'Violet Dusk',
-    '#DFBFFF': 'Pale Lavender',
-    '#302449': 'Cool Shale',
-    '#54466F': 'Dark Indigo',
-    '#655A7F': 'Dark Violet',
-    '#40007F': 'Violet',
-    '#726284': 'Smoky Violet',
-    '#9E8FA9': 'Slate Gray',
-    '#DCD1DF': 'Violet White',
-    '#BF00BF': 'Royal Violet',
-    '#FF00FF': 'Fuchsia',
-    '#FF40FF': 'Magenta',
-    '#FF80FF': 'Orchid',
-    '#FFBFFF': 'Pale Magenta',
-    '#4A234A': 'Dark Purple',
-    '#794A72': 'Medium Purple',
-    '#936386': 'Cool Granite',
-    '#7F007F': 'Purple',
-    '#9D7292': 'Purple Moon',
-    '#C0A0B6': 'Pale Purple',
-    '#ECDAE5': 'Pink Cloud',
-    '#BF005F': 'Hot Pink',
-    '#FF007F': 'Deep Pink',
-    '#FF409F': 'Grape',
-    '#FF80BF': 'Electric Pink',
-    '#FFBFDF': 'Pink',
-    '#451528': 'Purple Red',
-    '#823857': 'Purple Dino',
-    '#A94A76': 'Purple Gray',
-    '#7F003F': 'Rose',
-    '#BC6F95': 'Antique Mauve',
-    '#D8A5BB': 'Cool Marble',
-    '#F7DDE9': 'Pink Granite',
-    '#C00000': 'Apple',
-    '#FF0000': 'Fire Truck',
-    '#FF4040': 'Pale Red',
-    '#FF8080': 'Salmon',
-    '#FFC0C0': 'Warm Pink',
-    '#441415': 'Sepia',
-    '#82393C': 'Rust',
-    '#AA4D4E': 'Brick',
-    '#800000': 'Brick Red',
-    '#BC6E6E': 'Mauve',
-    '#D8A3A4': 'Shrimp Pink',
-    '#F8DDDD': 'Shell Pink',
-    '#BF5F00': 'Dark Orange',
-    '#FF7F00': 'Orange',
-    '#FF9F40': 'Grapefruit',
-    '#FFBF80': 'Canteloupe',
-    '#FFDFBF': 'Wax',
-    '#482C1B': 'Dark Brick',
-    '#855A40': 'Dirt',
-    '#B27C51': 'Tan',
-    '#7F3F00': 'Nutmeg',
-    '#C49B71': 'Mustard',
-    '#E1C4A8': 'Pale Tan',
-    '#FDEEE0': 'Marble'
-/* }}} */
-        },
-        /** 
-        * @property _colorPicker
-        * @description The HTML Element containing the colorPicker
-        * @type HTMLElement
-        */
-        _colorPicker: null,
-        /** 
-        * @property STR_COLLAPSE
-        * @description String for Toolbar Collapse Button
-        * @type String
-        */
-        STR_COLLAPSE: 'Collapse Toolbar',
-        /** 
-        * @property STR_EXPAND
-        * @description String for Toolbar Collapse Button - Expand
-        * @type String
-        */
-        STR_EXPAND: 'Expand Toolbar',
-        /** 
-        * @property STR_SPIN_LABEL
-        * @description String for spinbutton dynamic label. Note the {VALUE} will be replaced with YAHOO.lang.substitute
-        * @type String
-        */
-        STR_SPIN_LABEL: 'Spin Button with value {VALUE}. Use Control Shift Up Arrow and Control Shift Down arrow keys to increase or decrease the value.',
-        /** 
-        * @property STR_SPIN_UP
-        * @description String for spinbutton up
-        * @type String
-        */
-        STR_SPIN_UP: 'Click to increase the value of this input',
-        /** 
-        * @property STR_SPIN_DOWN
-        * @description String for spinbutton down
-        * @type String
-        */
-        STR_SPIN_DOWN: 'Click to decrease the value of this input',
-        /** 
-        * @property _titlebar
-        * @description Object reference to the titlebar
-        * @type HTMLElement
-        */
-        _titlebar: null,
-        /** 
-        * @property browser
-        * @description Standard browser detection
-        * @type Object
-        */
-        browser: YAHOO.env.ua,
-        /**
-        * @protected
-        * @property _buttonList
-        * @description Internal property list of current buttons in the toolbar
-        * @type Array
-        */
-        _buttonList: null,
-        /**
-        * @protected
-        * @property _buttonGroupList
-        * @description Internal property list of current button groups in the toolbar
-        * @type Array
-        */
-        _buttonGroupList: null,
-        /**
-        * @protected
-        * @property _sep
-        * @description Internal reference to the separator HTML Element for cloning
-        * @type HTMLElement
-        */
-        _sep: null,
-        /**
-        * @protected
-        * @property _sepCount
-        * @description Internal refernce for counting separators, so we can give them a useful class name for styling
-        * @type Number
-        */
-        _sepCount: null,
-        /**
-        * @protected
-        * @property draghandle
-        * @type HTMLElement
-        */
-        _dragHandle: null,
-        /**
-        * @protected
-        * @property _toolbarConfigs
-        * @type Object
-        */
-        _toolbarConfigs: {
-            renderer: true
-        },
-        /**
-        * @protected
-        * @property CLASS_CONTAINER
-        * @description Default CSS class to apply to the toolbar container element
-        * @type String
-        */
-        CLASS_CONTAINER: 'yui-toolbar-container',
-        /**
-        * @protected
-        * @property CLASS_DRAGHANDLE
-        * @description Default CSS class to apply to the toolbar's drag handle element
-        * @type String
-        */
-        CLASS_DRAGHANDLE: 'yui-toolbar-draghandle',
-        /**
-        * @protected
-        * @property CLASS_SEPARATOR
-        * @description Default CSS class to apply to all separators in the toolbar
-        * @type String
-        */
-        CLASS_SEPARATOR: 'yui-toolbar-separator',
-        /**
-        * @protected
-        * @property CLASS_DISABLED
-        * @description Default CSS class to apply when the toolbar is disabled
-        * @type String
-        */
-        CLASS_DISABLED: 'yui-toolbar-disabled',
-        /**
-        * @protected
-        * @property CLASS_PREFIX
-        * @description Default prefix for dynamically created class names
-        * @type String
-        */
-        CLASS_PREFIX: 'yui-toolbar',
-        /** 
-        * @method init
-        * @description The Toolbar class's initialization method
-        */
-        init: function(p_oElement, p_oAttributes) {
-            YAHOO.widget.Toolbar.superclass.init.call(this, p_oElement, p_oAttributes);
-        },
-        /**
-        * @method initAttributes
-        * @description Initializes all of the configuration attributes used to create 
-        * the toolbar.
-        * @param {Object} attr Object literal specifying a set of 
-        * configuration attributes used to create the toolbar.
-        */
-        initAttributes: function(attr) {
-            YAHOO.widget.Toolbar.superclass.initAttributes.call(this, attr);
-            this.addClass(this.CLASS_CONTAINER);
-
-            /**
-            * @attribute buttonType
-            * @description The buttonType to use (advanced or basic)
-            * @type String
-            */
-            this.setAttributeConfig('buttonType', {
-                value: attr.buttonType || 'basic',
-                writeOnce: true,
-                validator: function(type) {
-                    switch (type) {
-                        case 'advanced':
-                        case 'basic':
-                            return true;
-                    }
-                    return false;
-                },
-                method: function(type) {
-                    if (type == 'advanced') {
-                        if (YAHOO.widget.Button) {
-                            this.buttonType = YAHOO.widget.ToolbarButtonAdvanced;
-                        } else {
-                            this.buttonType = YAHOO.widget.ToolbarButton;
-                        }
-                    } else {
-                        this.buttonType = YAHOO.widget.ToolbarButton;
-                    }
-                }
-            });
-
-
-            /**
-            * @attribute buttons
-            * @description Object specifying the buttons to include in the toolbar
-            * Example:
-            * <code><pre>
-            * {
-            *   { id: 'b3', type: 'button', label: 'Underline', value: 'underline' },
-            *   { type: 'separator' },
-            *   { id: 'b4', type: 'menu', label: 'Align', value: 'align',
-            *       menu: [
-            *           { text: "Left", value: 'alignleft' },
-            *           { text: "Center", value: 'aligncenter' },
-            *           { text: "Right", value: 'alignright' }
-            *       ]
-            *   }
-            * }
-            * </pre></code>
-            * @type Array
-            */
-            
-            this.setAttributeConfig('buttons', {
-                value: [],
-                writeOnce: true,
-                method: function(data) {
-                    var i, button, buttons, len, b;
-                    for (i in data) {
-                        if (Lang.hasOwnProperty(data, i)) {
-                            if (data[i].type == 'separator') {
-                                this.addSeparator();
-                            } else if (data[i].group !== undefined) {
-                                buttons = this.addButtonGroup(data[i]);
-                                if (buttons) {
-                                    len = buttons.length;
-                                    for(b = 0; b < len; b++) {
-                                        if (buttons[b]) {
-                                            this._configuredButtons[this._configuredButtons.length] = buttons[b].id;
-                                        }
-                                    }
-                                }
-                                
-                            } else {
-                                button = this.addButton(data[i]);
-                                if (button) {
-                                    this._configuredButtons[this._configuredButtons.length] = button.id;
-                                }
-                            }
-                        }
-                    }
-                }
-            });
-
-            /**
-            * @attribute disabled
-            * @description Boolean indicating if the toolbar should be disabled. It will also disable the draggable attribute if it is on.
-            * @default false
-            * @type Boolean
-            */
-            this.setAttributeConfig('disabled', {
-                value: false,
-                method: function(disabled) {
-                    if (this.get('disabled') === disabled) {
-                        return false;
-                    }
-                    if (disabled) {
-                        this.addClass(this.CLASS_DISABLED);
-                        this.set('draggable', false);
-                        this.disableAllButtons();
-                    } else {
-                        this.removeClass(this.CLASS_DISABLED);
-                        if (this._configs.draggable._initialConfig.value) {
-                            //Draggable by default, set it back
-                            this.set('draggable', true);
-                        }
-                        this.resetAllButtons();
-                    }
-                }
-            });
-
-            /**
-            * @config cont
-            * @description The container for the toolbar.
-            * @type HTMLElement
-            */
-            this.setAttributeConfig('cont', {
-                value: attr.cont,
-                readOnly: true
-            });
-
-
-            /**
-            * @attribute grouplabels
-            * @description Boolean indicating if the toolbar should show the group label's text string.
-            * @default true
-            * @type Boolean
-            */
-            this.setAttributeConfig('grouplabels', {
-                value: ((attr.grouplabels === false) ? false : true),
-                method: function(grouplabels) {
-                    if (grouplabels) {
-                        Dom.removeClass(this.get('cont'), (this.CLASS_PREFIX + '-nogrouplabels'));
-                    } else {
-                        Dom.addClass(this.get('cont'), (this.CLASS_PREFIX + '-nogrouplabels'));
-                    }
-                }
-            });
-            /**
-            * @attribute titlebar
-            * @description Boolean indicating if the toolbar should have a titlebar. If
-            * passed a string, it will use that as the titlebar text
-            * @default false
-            * @type Boolean or String
-            */
-            this.setAttributeConfig('titlebar', {
-                value: false,
-                method: function(titlebar) {
-                    if (titlebar) {
-                        if (this._titlebar && this._titlebar.parentNode) {
-                            this._titlebar.parentNode.removeChild(this._titlebar);
-                        }
-                        this._titlebar = document.createElement('DIV');
-                        this._titlebar.tabIndex = '-1';
-                        Event.on(this._titlebar, 'focus', function() {
-                            this._handleFocus();
-                        }, this, true);
-                        Dom.addClass(this._titlebar, this.CLASS_PREFIX + '-titlebar');
-                        if (Lang.isString(titlebar)) {
-                            var h2 = document.createElement('h2');
-                            h2.tabIndex = '-1';
-                            h2.innerHTML = '<a href="#" tabIndex="0">' + titlebar + '</a>';
-                            this._titlebar.appendChild(h2);
-                            Event.on(h2.firstChild, 'click', function(ev) {
-                                Event.stopEvent(ev);
-                            });
-                            Event.on([h2, h2.firstChild], 'focus', function() {
-                                this._handleFocus();
-                            }, this, true);
-                        }
-                        if (this.get('firstChild')) {
-                            this.insertBefore(this._titlebar, this.get('firstChild'));
-                        } else {
-                            this.appendChild(this._titlebar);
-                        }
-                        if (this.get('collapse')) {
-                            this.set('collapse', true);
-                        }
-                    } else if (this._titlebar) {
-                        if (this._titlebar && this._titlebar.parentNode) {
-                            this._titlebar.parentNode.removeChild(this._titlebar);
-                        }
-                    }
-                }
-            });
-
-
-            /**
-            * @attribute collapse
-            * @description Boolean indicating if the titlebar should have a collapse button.
-            * The collapse button will not remove the toolbar, it will minimize it to the titlebar
-            * @default false
-            * @type Boolean
-            */
-            this.setAttributeConfig('collapse', {
-                value: false,
-                method: function(collapse) {
-                    if (this._titlebar) {
-                        var collapseEl = null;
-                        var el = Dom.getElementsByClassName('collapse', 'span', this._titlebar);
-                        if (collapse) {
-                            if (el.length > 0) {
-                                //There is already a collapse button
-                                return true;
-                            }
-                            collapseEl = document.createElement('SPAN');
-                            collapseEl.innerHTML = 'X';
-                            collapseEl.title = this.STR_COLLAPSE;
-
-                            Dom.addClass(collapseEl, 'collapse');
-                            this._titlebar.appendChild(collapseEl);
-                            Event.addListener(collapseEl, 'click', function() {
-                                if (Dom.hasClass(this.get('cont').parentNode, 'yui-toolbar-container-collapsed')) {
-                                    this.collapse(false); //Expand Toolbar
-                                } else {
-                                    this.collapse(); //Collapse Toolbar
-                                }
-                            }, this, true);
-                        } else {
-                            collapseEl = Dom.getElementsByClassName('collapse', 'span', this._titlebar);
-                            if (collapseEl[0]) {
-                                if (Dom.hasClass(this.get('cont').parentNode, 'yui-toolbar-container-collapsed')) {
-                                    //We are closed, reopen the titlebar..
-                                    this.collapse(false); //Expand Toolbar
-                                }
-                                collapseEl[0].parentNode.removeChild(collapseEl[0]);
-                            }
-                        }
-                    }
-                }
-            });
-
-            /**
-            * @attribute draggable
-            * @description Boolean indicating if the toolbar should be draggable.  
-            * @default false
-            * @type Boolean
-            */
-
-            this.setAttributeConfig('draggable', {
-                value: (attr.draggable || false),
-                method: function(draggable) {
-                    if (draggable && !this.get('titlebar')) {
-                        if (!this._dragHandle) {
-                            this._dragHandle = document.createElement('SPAN');
-                            this._dragHandle.innerHTML = '|';
-                            this._dragHandle.setAttribute('title', 'Click to drag the toolbar');
-                            this._dragHandle.id = this.get('id') + '_draghandle';
-                            Dom.addClass(this._dragHandle, this.CLASS_DRAGHANDLE);
-                            if (this.get('cont').hasChildNodes()) {
-                                this.get('cont').insertBefore(this._dragHandle, this.get('cont').firstChild);
-                            } else {
-                                this.get('cont').appendChild(this._dragHandle);
-                            }
-                            this.dd = new YAHOO.util.DD(this.get('id'));
-                            this.dd.setHandleElId(this._dragHandle.id);
-                            
-                        }
-                    } else {
-                        if (this._dragHandle) {
-                            this._dragHandle.parentNode.removeChild(this._dragHandle);
-                            this._dragHandle = null;
-                            this.dd = null;
-                        }
-                    }
-                    if (this._titlebar) {
-                        if (draggable) {
-                            this.dd = new YAHOO.util.DD(this.get('id'));
-                            this.dd.setHandleElId(this._titlebar);
-                            Dom.addClass(this._titlebar, 'draggable');
-                        } else {
-                            Dom.removeClass(this._titlebar, 'draggable');
-                            if (this.dd) {
-                                this.dd.unreg();
-                                this.dd = null;
-                            }
-                        }
-                    }
-                },
-                validator: function(value) {
-                    var ret = true;
-                    if (!YAHOO.util.DD) {
-                        ret = false;
-                    }
-                    return ret;
-                }
-            });
-
-        },
-        /**
-        * @method addButtonGroup
-        * @description Add a new button group to the toolbar. (uses addButton)
-        * @param {Object} oGroup Object literal reference to the Groups Config (contains an array of button configs as well as the group label)
-        */
-        addButtonGroup: function(oGroup) {
-            if (!this.get('element')) {
-                this._queue[this._queue.length] = ['addButtonGroup', arguments];
-                return false;
-            }
-            
-            if (!this.hasClass(this.CLASS_PREFIX + '-grouped')) {
-                this.addClass(this.CLASS_PREFIX + '-grouped');
-            }
-            var div = document.createElement('DIV');
-            Dom.addClass(div, this.CLASS_PREFIX + '-group');
-            Dom.addClass(div, this.CLASS_PREFIX + '-group-' + oGroup.group);
-            if (oGroup.label) {
-                var label = document.createElement('h3');
-                label.innerHTML = oGroup.label;
-                div.appendChild(label);
-            }
-            if (!this.get('grouplabels')) {
-                Dom.addClass(this.get('cont'), this.CLASS_PREFIX, '-nogrouplabels');
-            }
-
-            this.get('cont').appendChild(div);
-
-            //For accessibility, let's put all of the group buttons in an Unordered List
-            var ul = document.createElement('ul');
-            div.appendChild(ul);
-
-            if (!this._buttonGroupList) {
-                this._buttonGroupList = {};
-            }
-            
-            this._buttonGroupList[oGroup.group] = ul;
-
-            //An array of the button ids added to this group
-            //This is used for destruction later...
-            var addedButtons = [],
-                button;
-            
-
-            for (var i = 0; i < oGroup.buttons.length; i++) {
-                var li = document.createElement('li');
-                li.className = this.CLASS_PREFIX + '-groupitem';
-                ul.appendChild(li);
-                if ((oGroup.buttons[i].type !== undefined) && oGroup.buttons[i].type == 'separator') {
-                    this.addSeparator(li);
-                } else {
-                    oGroup.buttons[i].container = li;
-                    button = this.addButton(oGroup.buttons[i]);
-                    if (button) {
-                        addedButtons[addedButtons.length]  = button.id;
-                    }
-                }
-            }
-            return addedButtons;
-        },
-        /**
-        * @method addButtonToGroup
-        * @description Add a new button to a toolbar group. Buttons supported:
-        *   push, split, menu, select, color, spin
-        * @param {Object} oButton Object literal reference to the Button's Config
-        * @param {String} group The Group identifier passed into the initial config
-        * @param {HTMLElement} after Optional HTML element to insert this button after in the DOM.
-        */
-        addButtonToGroup: function(oButton, group, after) {
-            var groupCont = this._buttonGroupList[group],
-                li = document.createElement('li');
-
-            li.className = this.CLASS_PREFIX + '-groupitem';
-            oButton.container = li;
-            this.addButton(oButton, after);
-            groupCont.appendChild(li);
-        },
-        /**
-        * @method addButton
-        * @description Add a new button to the toolbar. Buttons supported:
-        *   push, split, menu, select, color, spin
-        * @param {Object} oButton Object literal reference to the Button's Config
-        * @param {HTMLElement} after Optional HTML element to insert this button after in the DOM.
-        */
-        addButton: function(oButton, after) {
-            if (!this.get('element')) {
-                this._queue[this._queue.length] = ['addButton', arguments];
-                return false;
-            }
-            if (!this._buttonList) {
-                this._buttonList = [];
-            }
-            if (!oButton.container) {
-                oButton.container = this.get('cont');
-            }
-
-            if ((oButton.type == 'menu') || (oButton.type == 'split') || (oButton.type == 'select')) {
-                if (Lang.isArray(oButton.menu)) {
-                    for (var i in oButton.menu) {
-                        if (Lang.hasOwnProperty(oButton.menu, i)) {
-                            var funcObject = {
-                                fn: function(ev, x, oMenu) {
-                                    if (!oButton.menucmd) {
-                                        oButton.menucmd = oButton.value;
-                                    }
-                                    oButton.value = ((oMenu.value) ? oMenu.value : oMenu._oText.nodeValue);
-                                },
-                                scope: this
-                            };
-                            oButton.menu[i].onclick = funcObject;
-                        }
-                    }
-                }
-            }
-            var _oButton = {}, skip = false;
-            for (var o in oButton) {
-                if (Lang.hasOwnProperty(oButton, o)) {
-                    if (!this._toolbarConfigs[o]) {
-                        _oButton[o] = oButton[o];
-                    }
-                }
-            }
-            if (oButton.type == 'select') {
-                _oButton.type = 'menu';
-            }
-            if (oButton.type == 'spin') {
-                _oButton.type = 'push';
-            }
-            if (_oButton.type == 'color') {
-                if (YAHOO.widget.Overlay) {
-                    _oButton = this._makeColorButton(_oButton);
-                } else {
-                    skip = true;
-                }
-            }
-            if (_oButton.menu) {
-                if ((YAHOO.widget.Overlay) && (oButton.menu instanceof YAHOO.widget.Overlay)) {
-                    oButton.menu.showEvent.subscribe(function() {
-                        this._button = _oButton;
-                    });
-                } else {
-                    for (var m = 0; m < _oButton.menu.length; m++) {
-                        if (!_oButton.menu[m].value) {
-                            _oButton.menu[m].value = _oButton.menu[m].text;
-                        }
-                    }
-                    if (this.browser.webkit) {
-                        _oButton.focusmenu = false;
-                    }
-                }
-            }
-            if (skip) {
-                oButton = false;
-            } else {
-                //Add to .get('buttons') manually
-                this._configs.buttons.value[this._configs.buttons.value.length] = oButton;
-                
-                var tmp = new this.buttonType(_oButton);
-                tmp.get('element').tabIndex = '-1';
-                tmp.get('element').setAttribute('role', 'button');
-                tmp._selected = true;
-                
-                if (this.get('disabled')) {
-                    //Toolbar is disabled, disable the new button too!
-                    tmp.set('disabled', true);
-                }
-                if (!oButton.id) {
-                    oButton.id = tmp.get('id');
-                }
-                
-                if (after) {
-                    var el = tmp.get('element');
-                    var nextSib = null;
-                    if (after.get) {
-                        nextSib = after.get('element').nextSibling;
-                    } else if (after.nextSibling) {
-                        nextSib = after.nextSibling;
-                    }
-                    if (nextSib) {
-                        nextSib.parentNode.insertBefore(el, nextSib);
-                    }
-                }
-                tmp.addClass(this.CLASS_PREFIX + '-' + tmp.get('value'));
-
-                var icon = document.createElement('span');
-                icon.className = this.CLASS_PREFIX + '-icon';
-                tmp.get('element').insertBefore(icon, tmp.get('firstChild'));
-                if (tmp._button.tagName.toLowerCase() == 'button') {
-                    tmp.get('element').setAttribute('unselectable', 'on');
-                    //Replace the Button HTML Element with an a href if it exists
-                    var a = document.createElement('a');
-                    a.innerHTML = tmp._button.innerHTML;
-                    a.href = '#';
-                    a.tabIndex = '-1';
-                    Event.on(a, 'click', function(ev) {
-                        Event.stopEvent(ev);
-                    });
-                    tmp._button.parentNode.replaceChild(a, tmp._button);
-                    tmp._button = a;
-                }
-
-                if (oButton.type == 'select') {
-                    if (tmp._button.tagName.toLowerCase() == 'select') {
-                        icon.parentNode.removeChild(icon);
-                        var iel = tmp._button,
-                            parEl = tmp.get('element');
-                        parEl.parentNode.replaceChild(iel, parEl);
-                        //The 'element' value is currently the orphaned element
-                        //In order for "destroy" to execute we need to get('element') to reference the correct node.
-                        //I'm not sure if there is a direct approach to setting this value.
-                        tmp._configs.element.value = iel;
-                    } else {
-                        //Don't put a class on it if it's a real select element
-                        tmp.addClass(this.CLASS_PREFIX + '-select');
-                    }
-                }
-                if (oButton.type == 'spin') {
-                    if (!Lang.isArray(oButton.range)) {
-                        oButton.range = [ 10, 100 ];
-                    }
-                    this._makeSpinButton(tmp, oButton);
-                }
-                tmp.get('element').setAttribute('title', tmp.get('label'));
-                if (oButton.type != 'spin') {
-                    if ((YAHOO.widget.Overlay) && (_oButton.menu instanceof YAHOO.widget.Overlay)) {
-                        var showPicker = function(ev) {
-                            var exec = true;
-                            if (ev.keyCode && (ev.keyCode == 9)) {
-                                exec = false;
-                            }
-                            if (exec) {
-                                if (this._colorPicker) {
-                                    this._colorPicker._button = oButton.value;
-                                }
-                                var menuEL = tmp.getMenu().element;
-                                if (Dom.getStyle(menuEL, 'visibility') == 'hidden') {
-                                    tmp.getMenu().show();
-                                } else {
-                                    tmp.getMenu().hide();
-                                }
-                            }
-                            YAHOO.util.Event.stopEvent(ev);
-                        };
-                        tmp.on('mousedown', showPicker, oButton, this);
-                        tmp.on('keydown', showPicker, oButton, this);
-                        
-                    } else if ((oButton.type != 'menu') && (oButton.type != 'select')) {
-                        tmp.on('keypress', this._buttonClick, oButton, this);
-                        tmp.on('mousedown', function(ev) {
-                            YAHOO.util.Event.stopEvent(ev);
-                            this._buttonClick(ev, oButton);
-                        }, oButton, this);
-                        tmp.on('click', function(ev) {
-                            YAHOO.util.Event.stopEvent(ev);
-                        });
-                    } else {
-                        //Stop the mousedown event so we can trap the selection in the editor!
-                        tmp.on('mousedown', function(ev) {
-                            YAHOO.util.Event.stopEvent(ev);
-                        });
-                        tmp.on('click', function(ev) {
-                            YAHOO.util.Event.stopEvent(ev);
-                        });
-                        tmp.on('change', function(ev) {
-                            if (!ev.target) {
-                                if (!oButton.menucmd) {
-                                    oButton.menucmd = oButton.value;
-                                }
-                                oButton.value = ev.value;
-                                this._buttonClick(ev, oButton);
-                            }
-                        }, this, true);
-
-                        var self = this;
-                        //Hijack the mousedown event in the menu and make it fire a button click..
-                        tmp.on('appendTo', function() {
-                            var tmp = this;
-                            if (tmp.getMenu() && tmp.getMenu().mouseDownEvent) {
-                                tmp.getMenu().mouseDownEvent.subscribe(function(ev, args) {
-                                    var oMenu = args[1];
-                                    YAHOO.util.Event.stopEvent(args[0]);
-                                    tmp._onMenuClick(args[0], tmp);
-                                    if (!oButton.menucmd) {
-                                        oButton.menucmd = oButton.value;
-                                    }
-                                    oButton.value = ((oMenu.value) ? oMenu.value : oMenu._oText.nodeValue);
-                                    self._buttonClick.call(self, args[1], oButton);
-                                    tmp._hideMenu();
-                                    return false;
-                                });
-                                tmp.getMenu().clickEvent.subscribe(function(ev, args) {
-                                    YAHOO.util.Event.stopEvent(args[0]);
-                                });
-                                tmp.getMenu().mouseUpEvent.subscribe(function(ev, args) {
-                                    YAHOO.util.Event.stopEvent(args[0]);
-                                });
-                            }
-                        });
-                        
-                    }
-                } else {
-                    //Stop the mousedown event so we can trap the selection in the editor!
-                    tmp.on('mousedown', function(ev) {
-                        YAHOO.util.Event.stopEvent(ev);
-                    });
-                    tmp.on('click', function(ev) {
-                        YAHOO.util.Event.stopEvent(ev);
-                    });
-                }
-                if (this.browser.ie) {
-                    /*
-                    //Add a couple of new events for IE
-                    tmp.DOM_EVENTS.focusin = true;
-                    tmp.DOM_EVENTS.focusout = true;
-                    
-                    //Stop them so we don't loose focus in the Editor
-                    tmp.on('focusin', function(ev) {
-                        YAHOO.util.Event.stopEvent(ev);
-                    }, oButton, this);
-                    
-                    tmp.on('focusout', function(ev) {
-                        YAHOO.util.Event.stopEvent(ev);
-                    }, oButton, this);
-                    tmp.on('click', function(ev) {
-                        YAHOO.util.Event.stopEvent(ev);
-                    }, oButton, this);
-                    */
-                }
-                if (this.browser.webkit) {
-                    //This will keep the document from gaining focus and the editor from loosing it..
-                    //Forcefully remove the focus calls in button!
-                    tmp.hasFocus = function() {
-                        return true;
-                    };
-                }
-                this._buttonList[this._buttonList.length] = tmp;
-                if ((oButton.type == 'menu') || (oButton.type == 'split') || (oButton.type == 'select')) {
-                    if (Lang.isArray(oButton.menu)) {
-                        var menu = tmp.getMenu();
-                        if (menu && menu.renderEvent) {
-                            menu.renderEvent.subscribe(this._addMenuClasses, tmp);
-                            if (oButton.renderer) {
-                                menu.renderEvent.subscribe(oButton.renderer, tmp);
-                            }
-                        }
-                    }
-                }
-            }
-            return oButton;
-        },
-        /**
-        * @method addSeparator
-        * @description Add a new button separator to the toolbar.
-        * @param {HTMLElement} cont Optional HTML element to insert this button into.
-        * @param {HTMLElement} after Optional HTML element to insert this button after in the DOM.
-        */
-        addSeparator: function(cont, after) {
-            if (!this.get('element')) {
-                this._queue[this._queue.length] = ['addSeparator', arguments];
-                return false;
-            }
-            var sepCont = ((cont) ? cont : this.get('cont'));
-            if (!this.get('element')) {
-                this._queue[this._queue.length] = ['addSeparator', arguments];
-                return false;
-            }
-            if (this._sepCount === null) {
-                this._sepCount = 0;
-            }
-            if (!this._sep) {
-                this._sep = document.createElement('SPAN');
-                Dom.addClass(this._sep, this.CLASS_SEPARATOR);
-                this._sep.innerHTML = '|';
-            }
-            var _sep = this._sep.cloneNode(true);
-            this._sepCount++;
-            Dom.addClass(_sep, this.CLASS_SEPARATOR + '-' + this._sepCount);
-            if (after) {
-                var nextSib = null;
-                if (after.get) {
-                    nextSib = after.get('element').nextSibling;
-                } else if (after.nextSibling) {
-                    nextSib = after.nextSibling;
-                } else {
-                    nextSib = after;
-                }
-                if (nextSib) {
-                    if (nextSib == after) {
-                        nextSib.parentNode.appendChild(_sep);
-                    } else {
-                        nextSib.parentNode.insertBefore(_sep, nextSib);
-                    }
-                }
-            } else {
-                sepCont.appendChild(_sep);
-            }
-            return _sep;
-        },
-        /**
-        * @method _createColorPicker
-        * @private
-        * @description Creates the core DOM reference to the color picker menu item.
-        * @param {String} id the id of the toolbar to prefix this DOM container with.
-        */
-        _createColorPicker: function(id) {
-            if (Dom.get(id + '_colors')) {
-               Dom.get(id + '_colors').parentNode.removeChild(Dom.get(id + '_colors'));
-            }
-            var picker = document.createElement('div');
-            picker.className = 'yui-toolbar-colors';
-            picker.id = id + '_colors';
-            picker.style.display = 'none';
-            Event.on(window, 'load', function() {
-                document.body.appendChild(picker);
-            }, this, true);
-
-            this._colorPicker = picker;
-
-            var html = '';
-            for (var i in this._colorData) {
-                if (Lang.hasOwnProperty(this._colorData, i)) {
-                    html += '<a style="background-color: ' + i + '" href="#">' + i.replace('#', '') + '</a>';
-                }
-            }
-            html += '<span><em>X</em><strong></strong></span>';
-            window.setTimeout(function() {
-                picker.innerHTML = html;
-            }, 0);
-
-            Event.on(picker, 'mouseover', function(ev) {
-                var picker = this._colorPicker;
-                var em = picker.getElementsByTagName('em')[0];
-                var strong = picker.getElementsByTagName('strong')[0];
-                var tar = Event.getTarget(ev);
-                if (tar.tagName.toLowerCase() == 'a') {
-                    em.style.backgroundColor = tar.style.backgroundColor;
-                    strong.innerHTML = this._colorData['#' + tar.innerHTML] + '<br>' + tar.innerHTML;
-                }
-            }, this, true);
-            Event.on(picker, 'focus', function(ev) {
-                Event.stopEvent(ev);
-            });
-            Event.on(picker, 'click', function(ev) {
-                Event.stopEvent(ev);
-            });
-            Event.on(picker, 'mousedown', function(ev) {
-                Event.stopEvent(ev);
-                var tar = Event.getTarget(ev);
-                if (tar.tagName.toLowerCase() == 'a') {
-                    var retVal = this.fireEvent('colorPickerClicked', { type: 'colorPickerClicked', target: this, button: this._colorPicker._button, color: tar.innerHTML, colorName: this._colorData['#' + tar.innerHTML] } );
-                    if (retVal !== false) {
-                        var info = {
-                            color: tar.innerHTML,
-                            colorName: this._colorData['#' + tar.innerHTML],
-                            value: this._colorPicker._button 
-                        };
-                    
-                        this.fireEvent('buttonClick', { type: 'buttonClick', target: this.get('element'), button: info });
-                    }
-                    this.getButtonByValue(this._colorPicker._button).getMenu().hide();
-                }
-            }, this, true);
-        },
-        /**
-        * @method _resetColorPicker
-        * @private
-        * @description Clears the currently selected color or mouseover color in the color picker.
-        */
-        _resetColorPicker: function() {
-            var em = this._colorPicker.getElementsByTagName('em')[0];
-            var strong = this._colorPicker.getElementsByTagName('strong')[0];
-            em.style.backgroundColor = 'transparent';
-            strong.innerHTML = '';
-        },
-        /**
-        * @method _makeColorButton
-        * @private
-        * @description Called to turn a "color" button into a menu button with an Overlay for the menu.
-        * @param {Object} _oButton <a href="YAHOO.widget.ToolbarButton.html">YAHOO.widget.ToolbarButton</a> reference
-        */
-        _makeColorButton: function(_oButton) {
-            if (!this._colorPicker) {   
-                this._createColorPicker(this.get('id'));
-            }
-            _oButton.type = 'color';
-            _oButton.menu = new YAHOO.widget.Overlay(this.get('id') + '_' + _oButton.value + '_menu', { visible: false, position: 'absolute', iframe: true });
-            _oButton.menu.setBody('');
-            _oButton.menu.render(this.get('cont'));
-            Dom.addClass(_oButton.menu.element, 'yui-button-menu');
-            Dom.addClass(_oButton.menu.element, 'yui-color-button-menu');
-            _oButton.menu.beforeShowEvent.subscribe(function() {
-                _oButton.menu.cfg.setProperty('zindex', 5); //Re Adjust the overlays zIndex.. not sure why.
-                _oButton.menu.cfg.setProperty('context', [this.getButtonById(_oButton.id).get('element'), 'tl', 'bl']); //Re Adjust the overlay.. not sure why.
-                //Move the DOM reference of the color picker to the Overlay that we are about to show.
-                this._resetColorPicker();
-                var _p = this._colorPicker;
-                if (_p.parentNode) {
-                    _p.parentNode.removeChild(_p);
-                }
-                _oButton.menu.setBody('');
-                _oButton.menu.appendToBody(_p);
-                this._colorPicker.style.display = 'block';
-            }, this, true);
-            return _oButton;
-        },
-        /**
-        * @private
-        * @method _makeSpinButton
-        * @description Create a button similar to an OS Spin button.. It has an up/down arrow combo to scroll through a range of int values.
-        * @param {Object} _button <a href="YAHOO.widget.ToolbarButton.html">YAHOO.widget.ToolbarButton</a> reference
-        * @param {Object} oButton Object literal containing the buttons initial config
-        */
-        _makeSpinButton: function(_button, oButton) {
-            _button.addClass(this.CLASS_PREFIX + '-spinbutton');
-            var self = this,
-                _par = _button._button.parentNode.parentNode, //parentNode of Button Element for appending child
-                range = oButton.range,
-                _b1 = document.createElement('a'),
-                _b2 = document.createElement('a');
-                _b1.href = '#';
-                _b2.href = '#';
-                _b1.tabIndex = '-1';
-                _b2.tabIndex = '-1';
-            
-            //Setup the up and down arrows
-            _b1.className = 'up';
-            _b1.title = this.STR_SPIN_UP;
-            _b1.innerHTML = this.STR_SPIN_UP;
-            _b2.className = 'down';
-            _b2.title = this.STR_SPIN_DOWN;
-            _b2.innerHTML = this.STR_SPIN_DOWN;
-
-            //Append them to the container
-            _par.appendChild(_b1);
-            _par.appendChild(_b2);
-            
-            var label = YAHOO.lang.substitute(this.STR_SPIN_LABEL, { VALUE: _button.get('label') });
-            _button.set('title', label);
-
-            var cleanVal = function(value) {
-                value = ((value < range[0]) ? range[0] : value);
-                value = ((value > range[1]) ? range[1] : value);
-                return value;
-            };
-
-            var br = this.browser;
-            var tbar = false;
-            var strLabel = this.STR_SPIN_LABEL;
-            if (this._titlebar && this._titlebar.firstChild) {
-                tbar = this._titlebar.firstChild;
-            }
-            
-            var _intUp = function(ev) {
-                YAHOO.util.Event.stopEvent(ev);
-                if (!_button.get('disabled') && (ev.keyCode != 9)) {
-                    var value = parseInt(_button.get('label'), 10);
-                    value++;
-                    value = cleanVal(value);
-                    _button.set('label', ''+value);
-                    var label = YAHOO.lang.substitute(strLabel, { VALUE: _button.get('label') });
-                    _button.set('title', label);
-                    if (!br.webkit && tbar) {
-                        //tbar.focus(); //We do this for accessibility, on the re-focus of the element, a screen reader will re-read the title that was just changed
-                        //_button.focus();
-                    }
-                    self._buttonClick(ev, oButton);
-                }
-            };
-
-            var _intDown = function(ev) {
-                YAHOO.util.Event.stopEvent(ev);
-                if (!_button.get('disabled') && (ev.keyCode != 9)) {
-                    var value = parseInt(_button.get('label'), 10);
-                    value--;
-                    value = cleanVal(value);
-
-                    _button.set('label', ''+value);
-                    var label = YAHOO.lang.substitute(strLabel, { VALUE: _button.get('label') });
-                    _button.set('title', label);
-                    if (!br.webkit && tbar) {
-                        //tbar.focus(); //We do this for accessibility, on the re-focus of the element, a screen reader will re-read the title that was just changed
-                        //_button.focus();
-                    }
-                    self._buttonClick(ev, oButton);
-                }
-            };
-
-            var _intKeyUp = function(ev) {
-                if (ev.keyCode == 38) {
-                    _intUp(ev);
-                } else if (ev.keyCode == 40) {
-                    _intDown(ev);
-                } else if (ev.keyCode == 107 && ev.shiftKey) {  //Plus Key
-                    _intUp(ev);
-                } else if (ev.keyCode == 109 && ev.shiftKey) {  //Minus Key
-                    _intDown(ev);
-                }
-            };
-
-            //Handle arrow keys..
-            _button.on('keydown', _intKeyUp, this, true);
-
-            //Listen for the click on the up button and act on it
-            //Listen for the click on the down button and act on it
-            Event.on(_b1, 'mousedown',function(ev) {
-                Event.stopEvent(ev);
-            }, this, true);
-            Event.on(_b2, 'mousedown', function(ev) {
-                Event.stopEvent(ev);
-            }, this, true);
-            Event.on(_b1, 'click', _intUp, this, true);
-            Event.on(_b2, 'click', _intDown, this, true);
-        },
-        /**
-        * @protected
-        * @method _buttonClick
-        * @description Click handler for all buttons in the toolbar.
-        * @param {String} ev The event that was passed in.
-        * @param {Object} info Object literal of information about the button that was clicked.
-        */
-        _buttonClick: function(ev, info) {
-            var doEvent = true;
-            
-            if (ev && ev.type == 'keypress') {
-                if (ev.keyCode == 9) {
-                    doEvent = false;
-                } else if ((ev.keyCode === 13) || (ev.keyCode === 0) || (ev.keyCode === 32)) {
-                } else {
-                    doEvent = false;
-                }
-            }
-
-            if (doEvent) {
-                var fireNextEvent = true,
-                    retValue = false;
-                    
-                info.isSelected = this.isSelected(info.id);
-
-                if (info.value) {
-                    retValue = this.fireEvent(info.value + 'Click', { type: info.value + 'Click', target: this.get('element'), button: info });
-                    if (retValue === false) {
-                        fireNextEvent = false;
-                    }
-                }
-                
-                if (info.menucmd && fireNextEvent) {
-                    retValue = this.fireEvent(info.menucmd + 'Click', { type: info.menucmd + 'Click', target: this.get('element'), button: info });
-                    if (retValue === false) {
-                        fireNextEvent = false;
-                    }
-                }
-                if (fireNextEvent) {
-                    this.fireEvent('buttonClick', { type: 'buttonClick', target: this.get('element'), button: info });
-                }
-
-                if (info.type == 'select') {
-                    var button = this.getButtonById(info.id);
-                    if (button.buttonType == 'rich') {
-                        var txt = info.value;
-                        for (var i = 0; i < info.menu.length; i++) {
-                            if (info.menu[i].value == info.value) {
-                                txt = info.menu[i].text;
-                                break;
-                            }
-                        }
-                        button.set('label', '<span class="yui-toolbar-' + info.menucmd + '-' + (info.value).replace(/ /g, '-').toLowerCase() + '">' + txt + '</span>');
-                        var _items = button.getMenu().getItems();
-                        for (var m = 0; m < _items.length; m++) {
-                            if (_items[m].value.toLowerCase() == info.value.toLowerCase()) {
-                                _items[m].cfg.setProperty('checked', true);
-                            } else {
-                                _items[m].cfg.setProperty('checked', false);
-                            }
-                        }
-                    }
-                }
-                if (ev) {
-                    Event.stopEvent(ev);
-                }
-            }
-        },
-        /**
-        * @private
-        * @property _keyNav
-        * @description Flag to determine if the arrow nav listeners have been attached
-        * @type Boolean
-        */
-        _keyNav: null,
-        /**
-        * @private
-        * @property _navCounter
-        * @description Internal counter for walking the buttons in the toolbar with the arrow keys
-        * @type Number
-        */
-        _navCounter: null,
-        /**
-        * @private
-        * @method _navigateButtons
-        * @description Handles the navigation/focus of toolbar buttons with the Arrow Keys
-        * @param {Event} ev The Key Event
-        */
-        _navigateButtons: function(ev) {
-            switch (ev.keyCode) {
-                case 37:
-                case 39:
-                    if (ev.keyCode == 37) {
-                        this._navCounter--;
-                    } else {
-                        this._navCounter++;
-                    }
-                    if (this._navCounter > (this._buttonList.length - 1)) {
-                        this._navCounter = 0;
-                    }
-                    if (this._navCounter < 0) {
-                        this._navCounter = (this._buttonList.length - 1);
-                    }
-                    if (this._buttonList[this._navCounter]) {
-                        var el = this._buttonList[this._navCounter].get('element');
-                        if (this.browser.ie) {
-                            el = this._buttonList[this._navCounter].get('element').getElementsByTagName('a')[0];
-                        }
-                        if (this._buttonList[this._navCounter].get('disabled')) {
-                            this._navigateButtons(ev);
-                        } else {
-                            el.focus();
-                        }
-                    }
-                    break;
-            }
-        },
-        /**
-        * @private
-        * @method _handleFocus
-        * @description Sets up the listeners for the arrow key navigation
-        */
-        _handleFocus: function() {
-            if (!this._keyNav) {
-                var ev = 'keypress';
-                if (this.browser.ie) {
-                    ev = 'keydown';
-                }
-                Event.on(this.get('element'), ev, this._navigateButtons, this, true);
-                this._keyNav = true;
-                this._navCounter = -1;
-            }
-        },
-        /**
-        * @method getButtonById
-        * @description Gets a button instance from the toolbar by is Dom id.
-        * @param {String} id The Dom id to query for.
-        * @return {<a href="YAHOO.widget.ToolbarButton.html">YAHOO.widget.ToolbarButton</a>}
-        */
-        getButtonById: function(id) {
-            var len = this._buttonList.length;
-            for (var i = 0; i < len; i++) {
-                if (this._buttonList[i] && this._buttonList[i].get('id') == id) {
-                    return this._buttonList[i];
-                }
-            }
-            return false;
-        },
-        /**
-        * @method getButtonByValue
-        * @description Gets a button instance or a menuitem instance from the toolbar by it's value.
-        * @param {String} value The button value to query for.
-        * @return {<a href="YAHOO.widget.ToolbarButton.html">YAHOO.widget.ToolbarButton</a> or <a href="YAHOO.widget.MenuItem.html">YAHOO.widget.MenuItem</a>}
-        */
-        getButtonByValue: function(value) {
-            var _buttons = this.get('buttons');
-            if (!_buttons) {
-                return false;
-            }
-            var len = _buttons.length;
-            for (var i = 0; i < len; i++) {
-                if (_buttons[i].group !== undefined) {
-                    for (var m = 0; m < _buttons[i].buttons.length; m++) {
-                        if ((_buttons[i].buttons[m].value == value) || (_buttons[i].buttons[m].menucmd == value)) {
-                            return this.getButtonById(_buttons[i].buttons[m].id);
-                        }
-                        if (_buttons[i].buttons[m].menu) { //Menu Button, loop through the values
-                            for (var s = 0; s < _buttons[i].buttons[m].menu.length; s++) {
-                                if (_buttons[i].buttons[m].menu[s].value == value) {
-                                    return this.getButtonById(_buttons[i].buttons[m].id);
-                                }
-                            }
-                        }
-                    }
-                } else {
-                    if ((_buttons[i].value == value) || (_buttons[i].menucmd == value)) {
-                        return this.getButtonById(_buttons[i].id);
-                    }
-                    if (_buttons[i].menu) { //Menu Button, loop through the values
-                        for (var j = 0; j < _buttons[i].menu.length; j++) {
-                            if (_buttons[i].menu[j].value == value) {
-                                return this.getButtonById(_buttons[i].id);
-                            }
-                        }
-                    }
-                }
-            }
-            return false;
-        },
-        /**
-        * @method getButtonByIndex
-        * @description Gets a button instance from the toolbar by is index in _buttonList.
-        * @param {Number} index The index of the button in _buttonList.
-        * @return {<a href="YAHOO.widget.ToolbarButton.html">YAHOO.widget.ToolbarButton</a>}
-        */
-        getButtonByIndex: function(index) {
-            if (this._buttonList[index]) {
-                return this._buttonList[index];
-            } else {
-                return false;
-            }
-        },
-        /**
-        * @method getButtons
-        * @description Returns an array of buttons in the current toolbar
-        * @return {Array}
-        */
-        getButtons: function() {
-            return this._buttonList;
-        },
-        /**
-        * @method disableButton
-        * @description Disables a button in the toolbar.
-        * @param {String/Number} id Disable a button by it's id, index or value.
-        * @return {Boolean}
-        */
-        disableButton: function(id) {
-            var button = getButton.call(this, id);
-            if (button) {
-                button.set('disabled', true);
-            } else {
-                return false;
-            }
-        },
-        /**
-        * @method enableButton
-        * @description Enables a button in the toolbar.
-        * @param {String/Number} id Enable a button by it's id, index or value.
-        * @return {Boolean}
-        */
-        enableButton: function(id) {
-            if (this.get('disabled')) {
-                return false;
-            }
-            var button = getButton.call(this, id);
-            if (button) {
-                if (button.get('disabled')) {
-                    button.set('disabled', false);
-                }
-            } else {
-                return false;
-            }
-        },
-        /**
-        * @method isSelected
-        * @description Tells if a button is selected or not.
-        * @param {String/Number} id A button by it's id, index or value.
-        * @return {Boolean}
-        */
-        isSelected: function(id) {
-            var button = getButton.call(this, id);
-            if (button) {
-                return button._selected;
-            }
-            return false;
-        },
-        /**
-        * @method selectButton
-        * @description Selects a button in the toolbar.
-        * @param {String/Number} id Select a button by it's id, index or value.
-        * @param {String} value If this is a Menu Button, check this item in the menu
-        * @return {Boolean}
-        */
-        selectButton: function(id, value) {
-            var button = getButton.call(this, id);
-            if (button) {
-                button.addClass('yui-button-selected');
-                button.addClass('yui-button-' + button.get('value') + '-selected');
-                button._selected = true;
-                if (value) {
-                    if (button.buttonType == 'rich') {
-                        var _items = button.getMenu().getItems();
-                        for (var m = 0; m < _items.length; m++) {
-                            if (_items[m].value == value) {
-                                _items[m].cfg.setProperty('checked', true);
-                                button.set('label', '<span class="yui-toolbar-' + button.get('value') + '-' + (value).replace(/ /g, '-').toLowerCase() + '">' + _items[m]._oText.nodeValue + '</span>');
-                            } else {
-                                _items[m].cfg.setProperty('checked', false);
-                            }
-                        }
-                    }
-                }
-            } else {
-                return false;
-            }
-        },
-        /**
-        * @method deselectButton
-        * @description Deselects a button in the toolbar.
-        * @param {String/Number} id Deselect a button by it's id, index or value.
-        * @return {Boolean}
-        */
-        deselectButton: function(id) {
-            var button = getButton.call(this, id);
-            if (button) {
-                button.removeClass('yui-button-selected');
-                button.removeClass('yui-button-' + button.get('value') + '-selected');
-                button.removeClass('yui-button-hover');
-                button._selected = false;
-            } else {
-                return false;
-            }
-        },
-        /**
-        * @method deselectAllButtons
-        * @description Deselects all buttons in the toolbar.
-        * @return {Boolean}
-        */
-        deselectAllButtons: function() {
-            var len = this._buttonList.length;
-            for (var i = 0; i < len; i++) {
-                this.deselectButton(this._buttonList[i]);
-            }
-        },
-        /**
-        * @method disableAllButtons
-        * @description Disables all buttons in the toolbar.
-        * @return {Boolean}
-        */
-        disableAllButtons: function() {
-            if (this.get('disabled')) {
-                return false;
-            }
-            var len = this._buttonList.length;
-            for (var i = 0; i < len; i++) {
-                this.disableButton(this._buttonList[i]);
-            }
-        },
-        /**
-        * @method enableAllButtons
-        * @description Enables all buttons in the toolbar.
-        * @return {Boolean}
-        */
-        enableAllButtons: function() {
-            if (this.get('disabled')) {
-                return false;
-            }
-            var len = this._buttonList.length;
-            for (var i = 0; i < len; i++) {
-                this.enableButton(this._buttonList[i]);
-            }
-        },
-        /**
-        * @method resetAllButtons
-        * @description Resets all buttons to their initial state.
-        * @param {Object} _ex Except these buttons
-        * @return {Boolean}
-        */
-        resetAllButtons: function(_ex) {
-            if (!Lang.isObject(_ex)) {
-                _ex = {};
-            }
-            if (this.get('disabled') || !this._buttonList) {
-                return false;
-            }
-            var len = this._buttonList.length;
-            for (var i = 0; i < len; i++) {
-                var _button = this._buttonList[i];
-                if (_button) {
-                    var disabled = _button._configs.disabled._initialConfig.value;
-                    if (_ex[_button.get('id')]) {
-                        this.enableButton(_button);
-                        this.selectButton(_button);
-                    } else {
-                        if (disabled) {
-                            this.disableButton(_button);
-                        } else {
-                            this.enableButton(_button);
-                        }
-                        this.deselectButton(_button);
-                    }
-                }
-            }
-        },
-        /**
-        * @method destroyButton
-        * @description Destroy a button in the toolbar.
-        * @param {String/Number} id Destroy a button by it's id or index.
-        * @return {Boolean}
-        */
-        destroyButton: function(id) {
-            var button = getButton.call(this, id);
-            if (button) {
-                var thisID = button.get('id'),
-                    new_list = [], i = 0,
-                    len = this._buttonList.length;
-
-                button.destroy();
-                
-                for (i = 0; i < len; i++) {
-                    if (this._buttonList[i].get('id') != thisID) {
-                        new_list[new_list.length]= this._buttonList[i];
-                    }
-                }
-
-                this._buttonList = new_list;
-            } else {
-                return false;
-            }
-        },
-        /**
-        * @method destroy
-        * @description Destroys the toolbar, all of it's elements and objects.
-        * @return {Boolean}
-        */
-        destroy: function() {
-            var len = this._configuredButtons.length, j, i;
-            for(b = 0; b < len; b++) {
-                this.destroyButton(this._configuredButtons[b]);
-            }
-
-            this._configuredButtons = null;
-        
-            this.get('element').innerHTML = '';
-            this.get('element').className = '';
-            //Brutal Object Destroy
-            for (i in this) {
-                if (Lang.hasOwnProperty(this, i)) {
-                    this[i] = null;
-                }
-            }
-            return true;
-        },
-        /**
-        * @method collapse
-        * @description Programatically collapse the toolbar.
-        * @param {Boolean} collapse True to collapse, false to expand.
-        */
-        collapse: function(collapse) {
-            var el = Dom.getElementsByClassName('collapse', 'span', this._titlebar);
-            if (collapse === false) {
-                Dom.removeClass(this.get('cont').parentNode, 'yui-toolbar-container-collapsed');
-                if (el[0]) {
-                    Dom.removeClass(el[0], 'collapsed');
-                    el[0].title = this.STR_COLLAPSE;
-                }
-                this.fireEvent('toolbarExpanded', { type: 'toolbarExpanded', target: this });
-            } else {
-                if (el[0]) {
-                    Dom.addClass(el[0], 'collapsed');
-                    el[0].title = this.STR_EXPAND;
-                }
-                Dom.addClass(this.get('cont').parentNode, 'yui-toolbar-container-collapsed');
-                this.fireEvent('toolbarCollapsed', { type: 'toolbarCollapsed', target: this });
-            }
-        },
-        /**
-        * @method toString
-        * @description Returns a string representing the toolbar.
-        * @return {String}
-        */
-        toString: function() {
-            return 'Toolbar (#' + this.get('element').id + ') with ' + this._buttonList.length + ' buttons.';
-        }
-    });
-/**
-* @event buttonClick
-* @param {Object} o The object passed to this handler is the button config used to create the button.
-* @description Fires when any botton receives a click event. Passes back a single object representing the buttons config object. See <a href="YAHOO.util.Element.html#addListener">Element.addListener</a> for more information on listening for this event.
-* @type YAHOO.util.CustomEvent
-*/
-/**
-* @event valueClick
-* @param {Object} o The object passed to this handler is the button config used to create the button.
-* @description This is a special dynamic event that is created and dispatched based on the value property
-* of the button config. See <a href="YAHOO.util.Element.html#addListener">Element.addListener</a> for more information on listening for this event.
-* Example:
-* <code><pre>
-* buttons : [
-*   { type: 'button', value: 'test', value: 'testButton' }
-* ]</pre>
-* </code>
-* With the valueClick event you could subscribe to this buttons click event with this:
-* tbar.in('testButtonClick', function() { alert('test button clicked'); })
-* @type YAHOO.util.CustomEvent
-*/
-/**
-* @event toolbarExpanded
-* @description Fires when the toolbar is expanded via the collapse button. See <a href="YAHOO.util.Element.html#addListener">Element.addListener</a> for more information on listening for this event.
-* @type YAHOO.util.CustomEvent
-*/
-/**
-* @event toolbarCollapsed
-* @description Fires when the toolbar is collapsed via the collapse button. See <a href="YAHOO.util.Element.html#addListener">Element.addListener</a> for more information on listening for this event.
-* @type YAHOO.util.CustomEvent
-*/
-})();
-/**
- * @module editor
- * @description <p>The Rich Text Editor is a UI control that replaces a standard HTML textarea; it allows for the rich formatting of text content, including common structural treatments like lists, formatting treatments like bold and italic text, and drag-and-drop inclusion and sizing of images. The Rich Text Editor's toolbar is extensible via a plugin architecture so that advanced implementations can achieve a high degree of customization.</p>
- * @namespace YAHOO.widget
- * @requires yahoo, dom, element, event, toolbar
- * @optional animation, container_core, resize, dragdrop
- */
-
-(function() {
-var Dom = YAHOO.util.Dom,
-    Event = YAHOO.util.Event,
-    Lang = YAHOO.lang,
-    Toolbar = YAHOO.widget.Toolbar;
-
-    /**
-     * The Rich Text Editor is a UI control that replaces a standard HTML textarea; it allows for the rich formatting of text content, including common structural treatments like lists, formatting treatments like bold and italic text, and drag-and-drop inclusion and sizing of images. The Rich Text Editor's toolbar is extensible via a plugin architecture so that advanced implementations can achieve a high degree of customization.
-     * @constructor
-     * @class SimpleEditor
-     * @extends YAHOO.util.Element
-     * @param {String/HTMLElement} el The textarea element to turn into an editor.
-     * @param {Object} attrs Object liternal containing configuration parameters.
-    */
-    
-    YAHOO.widget.SimpleEditor = function(el, attrs) {
-        
-        var o = {};
-        if (Lang.isObject(el) && (!el.tagName) && !attrs) {
-            Lang.augmentObject(o, el); //Break the config reference
-            el = document.createElement('textarea');
-            this.DOMReady = true;
-            if (o.container) {
-                var c = Dom.get(o.container);
-                c.appendChild(el);
-            } else {
-                document.body.appendChild(el);
-            }
-        } else {
-            if (attrs) {
-                Lang.augmentObject(o, attrs); //Break the config reference
-            }
-        }
-
-        var oConfig = {
-            element: null,
-            attributes: o
-        }, id = null;
-
-        if (Lang.isString(el)) {
-            id = el;
-        } else {
-            if (oConfig.attributes.id) {
-                id = oConfig.attributes.id;
-            } else {
-                this.DOMReady = true;
-                id = Dom.generateId(el);
-            }
-        }
-        oConfig.element = el;
-
-        var element_cont = document.createElement('DIV');
-        oConfig.attributes.element_cont = new YAHOO.util.Element(element_cont, {
-            id: id + '_container'
-        });
-        var div = document.createElement('div');
-        Dom.addClass(div, 'first-child');
-        oConfig.attributes.element_cont.appendChild(div);
-        
-        if (!oConfig.attributes.toolbar_cont) {
-            oConfig.attributes.toolbar_cont = document.createElement('DIV');
-            oConfig.attributes.toolbar_cont.id = id + '_toolbar';
-            div.appendChild(oConfig.attributes.toolbar_cont);
-        }
-        var editorWrapper = document.createElement('DIV');
-        div.appendChild(editorWrapper);
-        oConfig.attributes.editor_wrapper = editorWrapper;
-
-        YAHOO.widget.SimpleEditor.superclass.constructor.call(this, oConfig.element, oConfig.attributes);
-    };
-
-
-    YAHOO.extend(YAHOO.widget.SimpleEditor, YAHOO.util.Element, {
-        /**
-        * @private
-        * @property _resizeConfig
-        * @description The default config for the Resize Utility
-        */
-        _resizeConfig: {
-            handles: ['br'],
-            autoRatio: true,
-            status: true,
-            proxy: true,
-            useShim: true,
-            setSize: false
-        },
-        /**
-        * @private
-        * @method _setupResize
-        * @description Creates the Resize instance and binds its events.
-        */
-        _setupResize: function() {
-            if (!YAHOO.util.DD || !YAHOO.util.Resize) { return false; }
-            if (this.get('resize')) {
-                var config = {};
-                Lang.augmentObject(config, this._resizeConfig); //Break the config reference
-                this.resize = new YAHOO.util.Resize(this.get('element_cont').get('element'), config);
-                this.resize.on('resize', function(args) {
-                    var anim = this.get('animate');
-                    this.set('animate', false);
-                    this.set('width', args.width + 'px');
-                    var h = args.height,
-                        th = (this.toolbar.get('element').clientHeight + 2),
-                        dh = 0;
-                    if (this.dompath) {
-                        dh = (this.dompath.clientHeight + 1); //It has a 1px top border..
-                    }
-                    var newH = (h - th - dh);
-                    this.set('height', newH + 'px');
-                    this.get('element_cont').setStyle('height', '');
-                    this.set('animate', anim);
-                }, this, true);
-            }
-        },
-        /**
-        * @property resize
-        * @description A reference to the Resize object
-        * @type YAHOO.util.Resize
-        */
-        resize: null,
-        /**
-        * @private
-        * @method _setupDD
-        * @description Sets up the DD instance used from the 'drag' config option.
-        */
-        _setupDD: function() {
-            if (!YAHOO.util.DD) { return false; }
-            if (this.get('drag')) {
-                var d = this.get('drag'),
-                    dd = YAHOO.util.DD;
-                if (d === 'proxy') {
-                    dd = YAHOO.util.DDProxy;
-                }
-
-                this.dd = new dd(this.get('element_cont').get('element'));
-                this.toolbar.addClass('draggable'); 
-                this.dd.setHandleElId(this.toolbar._titlebar); 
-            }
-        },
-        /**
-        * @property dd
-        * @description A reference to the DragDrop object.
-        * @type YAHOO.util.DD/YAHOO.util.DDProxy
-        */
-        dd: null,
-        /**
-        * @private
-        * @property _lastCommand
-        * @description A cache of the last execCommand (used for Undo/Redo so they don't mark an undo level)
-        * @type String
-        */
-        _lastCommand: null,
-        _undoNodeChange: function() {},
-        _storeUndo: function() {},
-        /**
-        * @private
-        * @method _checkKey
-        * @description Checks a keyMap entry against a key event
-        * @param {Object} k The _keyMap object
-        * @param {Event} e The Mouse Event
-        * @return {Boolean}
-        */
-        _checkKey: function(k, e) {
-            var ret = false;
-            if ((e.keyCode === k.key)) {
-                if (k.mods && (k.mods.length > 0)) {
-                    var val = 0;
-                    for (var i = 0; i < k.mods.length; i++) {
-                        if (this.browser.mac) {
-                            if (k.mods[i] == 'ctrl') {
-                                k.mods[i] = 'meta';
-                            }
-                        }
-                        if (e[k.mods[i] + 'Key'] === true) {
-                            val++;
-                        }
-                    }
-                    if (val === k.mods.length) {
-                        ret = true;
-                    }
-                } else {
-                    ret = true;
-                }
-            }
-            return ret;
-        },
-        /**
-        * @private
-        * @property _keyMap
-        * @description Named key maps for various actions in the Editor. Example: <code>CLOSE_WINDOW: { key: 87, mods: ['shift', 'ctrl'] }</code>. 
-        * This entry shows that when key 87 (W) is found with the modifiers of shift and control, the window will close. You can customize this object to tweak keyboard shortcuts.
-        * @type {Object/Mixed}
-        */
-        _keyMap: {
-            SELECT_ALL: {
-                key: 65, //A key
-                mods: ['ctrl']
-            },
-            CLOSE_WINDOW: {
-                key: 87, //W key
-                mods: ['shift', 'ctrl']
-            },
-            FOCUS_TOOLBAR: {
-                key: 27,
-                mods: ['shift']
-            },
-            FOCUS_AFTER: {
-                key: 27
-            },
-            FONT_SIZE_UP: {
-                key: 38,
-                mods: ['shift', 'ctrl']
-            },
-            FONT_SIZE_DOWN: {
-                key: 40,
-                mods: ['shift', 'ctrl']
-            },
-            CREATE_LINK: {
-                key: 76,
-                mods: ['shift', 'ctrl']
-            },
-            BOLD: {
-                key: 66,
-                mods: ['shift', 'ctrl']
-            },
-            ITALIC: {
-                key: 73,
-                mods: ['shift', 'ctrl']
-            },
-            UNDERLINE: {
-                key: 85,
-                mods: ['shift', 'ctrl']
-            },
-            UNDO: {
-                key: 90,
-                mods: ['ctrl']
-            },
-            REDO: {
-                key: 90,
-                mods: ['shift', 'ctrl']
-            },
-            JUSTIFY_LEFT: {
-                key: 219,
-                mods: ['shift', 'ctrl']
-            },
-            JUSTIFY_CENTER: {
-                key: 220,
-                mods: ['shift', 'ctrl']
-            },
-            JUSTIFY_RIGHT: {
-                key: 221,
-                mods: ['shift', 'ctrl']
-            }
-        },
-        /**
-        * @private
-        * @method _cleanClassName
-        * @description Makes a useable classname from dynamic data, by dropping it to lowercase and replacing spaces with -'s.
-        * @param {String} str The classname to clean up
-        * @return {String}
-        */
-        _cleanClassName: function(str) {
-            return str.replace(/ /g, '-').toLowerCase();
-        },
-        /**
-        * @property _textarea
-        * @description Flag to determine if we are using a textarea or an HTML Node.
-        * @type Boolean
-        */
-        _textarea: null,
-        /**
-        * @property _docType
-        * @description The DOCTYPE to use in the editable container.
-        * @type String
-        */
-        _docType: '<!DOCTYPE HTML PUBLIC "-/'+'/W3C/'+'/DTD HTML 4.01/'+'/EN" "http:/'+'/www.w3.org/TR/html4/strict.dtd">',
-        /**
-        * @property editorDirty
-        * @description This flag will be set when certain things in the Editor happen. It is to be used by the developer to check to see if content has changed.
-        * @type Boolean
-        */
-        editorDirty: null,
-        /**
-        * @property _defaultCSS
-        * @description The default CSS used in the config for 'css'. This way you can add to the config like this: { css: YAHOO.widget.SimpleEditor.prototype._defaultCSS + 'ADD MYY CSS HERE' }
-        * @type String
-        */
-        _defaultCSS: 'html { height: 95%; } body { padding: 7px; background-color: #fff; font: 13px/1.22 arial,helvetica,clean,sans-serif;*font-size:small;*font:x-small; } a, a:visited, a:hover { color: blue !important; text-decoration: underline !important; cursor: text !important; } .warning-localfile { border-bottom: 1px dashed red !important; } .yui-busy { cursor: wait !important; } img.selected { border: 2px dotted #808080; } img { cursor: pointer !important; border: none; } body.ptags.webkit div.yui-wk-p { margin: 11px 0; } body.ptags.webkit div.yui-wk-div { margin: 0; }',
-        /**
-        * @property _defaultToolbar
-        * @private
-        * @description Default toolbar config.
-        * @type Object
-        */
-        _defaultToolbar: null,
-        /**
-        * @property _lastButton
-        * @private
-        * @description The last button pressed, so we don't disable it.
-        * @type Object
-        */
-        _lastButton: null,
-        /**
-        * @property _baseHREF
-        * @private
-        * @description The base location of the editable page (this page) so that relative paths for image work.
-        * @type String
-        */
-        _baseHREF: function() {
-            var href = document.location.href;
-            if (href.indexOf('?') !== -1) { //Remove the query string
-                href = href.substring(0, href.indexOf('?'));
-            }
-            href = href.substring(0, href.lastIndexOf('/')) + '/';
-            return href;
-        }(),
-        /**
-        * @property _lastImage
-        * @private
-        * @description Safari reference for the last image selected (for styling as selected).
-        * @type HTMLElement
-        */
-        _lastImage: null,
-        /**
-        * @property _blankImageLoaded
-        * @private
-        * @description Don't load the blank image more than once..
-        * @type Boolean
-        */
-        _blankImageLoaded: null,
-        /**
-        * @property _fixNodesTimer
-        * @private
-        * @description Holder for the fixNodes timer
-        * @type Date
-        */
-        _fixNodesTimer: null,
-        /**
-        * @property _nodeChangeTimer
-        * @private
-        * @description Holds a reference to the nodeChange setTimeout call
-        * @type Number
-        */
-        _nodeChangeTimer: null,
-        /**
-        * @property _nodeChangeDelayTimer
-        * @private
-        * @description Holds a reference to the nodeChangeDelay setTimeout call
-        * @type Number
-        */
-        _nodeChangeDelayTimer: null,
-        /**
-        * @property _lastNodeChangeEvent
-        * @private
-        * @description Flag to determine the last event that fired a node change
-        * @type Event
-        */
-        _lastNodeChangeEvent: null,
-        /**
-        * @property _lastNodeChange
-        * @private
-        * @description Flag to determine when the last node change was fired
-        * @type Date
-        */
-        _lastNodeChange: 0,
-        /**
-        * @property _rendered
-        * @private
-        * @description Flag to determine if editor has been rendered or not
-        * @type Boolean
-        */
-        _rendered: null,
-        /**
-        * @property DOMReady
-        * @private
-        * @description Flag to determine if DOM is ready or not
-        * @type Boolean
-        */
-        DOMReady: null,
-        /**
-        * @property _selection
-        * @private
-        * @description Holder for caching iframe selections
-        * @type Object
-        */
-        _selection: null,
-        /**
-        * @property _mask
-        * @private
-        * @description DOM Element holder for the editor Mask when disabled
-        * @type Object
-        */
-        _mask: null,
-        /**
-        * @property _showingHiddenElements
-        * @private
-        * @description Status of the hidden elements button
-        * @type Boolean
-        */
-        _showingHiddenElements: null,
-        /**
-        * @property currentWindow
-        * @description A reference to the currently open EditorWindow
-        * @type Object
-        */
-        currentWindow: null,
-        /**
-        * @property currentEvent
-        * @description A reference to the current editor event
-        * @type Event
-        */
-        currentEvent: null,
-        /**
-        * @property operaEvent
-        * @private
-        * @description setTimeout holder for Opera and Image DoubleClick event..
-        * @type Object
-        */
-        operaEvent: null,
-        /**
-        * @property currentFont
-        * @description A reference to the last font selected from the Toolbar
-        * @type HTMLElement
-        */
-        currentFont: null,
-        /**
-        * @property currentElement
-        * @description A reference to the current working element in the editor
-        * @type Array
-        */
-        currentElement: null,
-        /**
-        * @property dompath
-        * @description A reference to the dompath container for writing the current working dom path to.
-        * @type HTMLElement
-        */
-        dompath: null,
-        /**
-        * @property beforeElement
-        * @description A reference to the H2 placed before the editor for Accessibilty.
-        * @type HTMLElement
-        */
-        beforeElement: null,
-        /**
-        * @property afterElement
-        * @description A reference to the H2 placed after the editor for Accessibilty.
-        * @type HTMLElement
-        */
-        afterElement: null,
-        /**
-        * @property invalidHTML
-        * @description Contains a list of HTML elements that are invalid inside the editor. They will be removed when they are found. If you set the value of a key to "{ keepContents: true }", then the element will be replaced with a yui-non span to be filtered out when cleanHTML is called. The only tag that is ignored here is the span tag as it will force the Editor into a loop and freeze the browser. However.. all of these tags will be removed in the cleanHTML routine.
-        * @type Object
-        */
-        invalidHTML: {
-            form: true,
-            input: true,
-            button: true,
-            select: true,
-            link: true,
-            html: true,
-            body: true,
-            iframe: true,
-            script: true,
-            style: true,
-            textarea: true
-        },
-        /**
-        * @property toolbar
-        * @description Local property containing the <a href="YAHOO.widget.Toolbar.html">YAHOO.widget.Toolbar</a> instance
-        * @type <a href="YAHOO.widget.Toolbar.html">YAHOO.widget.Toolbar</a>
-        */
-        toolbar: null,
-        /**
-        * @private
-        * @property _contentTimer
-        * @description setTimeout holder for documentReady check
-        */
-        _contentTimer: null,
-        /**
-        * @private
-        * @property _contentTimerMax
-        * @description The number of times the loaded content should be checked before giving up. Default: 500
-        */
-        _contentTimerMax: 500,
-        /**
-        * @private
-        * @property _contentTimerCounter
-        * @description Counter to check the number of times the body is polled for before giving up
-        * @type Number
-        */
-        _contentTimerCounter: 0,
-        /**
-        * @private
-        * @property _disabled
-        * @description The Toolbar items that should be disabled if there is no selection present in the editor.
-        * @type Array
-        */
-        _disabled: [ 'createlink', 'fontname', 'fontsize', 'forecolor', 'backcolor' ],
-        /**
-        * @private
-        * @property _alwaysDisabled
-        * @description The Toolbar items that should ALWAYS be disabled event if there is a selection present in the editor.
-        * @type Object
-        */
-        _alwaysDisabled: { undo: true, redo: true },
-        /**
-        * @private
-        * @property _alwaysEnabled
-        * @description The Toolbar items that should ALWAYS be enabled event if there isn't a selection present in the editor.
-        * @type Object
-        */
-        _alwaysEnabled: { },
-        /**
-        * @private
-        * @property _semantic
-        * @description The Toolbar commands that we should attempt to make tags out of instead of using styles.
-        * @type Object
-        */
-        _semantic: { 'bold': true, 'italic' : true, 'underline' : true },
-        /**
-        * @private
-        * @property _tag2cmd
-        * @description A tag map of HTML tags to convert to the different types of commands so we can select the proper toolbar button.
-        * @type Object
-        */
-        _tag2cmd: {
-            'b': 'bold',
-            'strong': 'bold',
-            'i': 'italic',
-            'em': 'italic',
-            'u': 'underline',
-            'sup': 'superscript',
-            'sub': 'subscript',
-            'img': 'insertimage',
-            'a' : 'createlink',
-            'ul' : 'insertunorderedlist',
-            'ol' : 'insertorderedlist'
-        },
-
-        /**
-        * @private _createIframe
-        * @description Creates the DOM and YUI Element for the iFrame editor area.
-        * @param {String} id The string ID to prefix the iframe with
-        * @return {Object} iFrame object
-        */
-        _createIframe: function() {
-            var ifrmDom = document.createElement('iframe');
-            ifrmDom.id = this.get('id') + '_editor';
-            var config = {
-                border: '0',
-                frameBorder: '0',
-                marginWidth: '0',
-                marginHeight: '0',
-                leftMargin: '0',
-                topMargin: '0',
-                allowTransparency: 'true',
-                width: '100%'
-            };
-            if (this.get('autoHeight')) {
-                config.scrolling = 'no';
-            }
-            for (var i in config) {
-                if (Lang.hasOwnProperty(config, i)) {
-                    ifrmDom.setAttribute(i, config[i]);
-                }
-            }
-            var isrc = 'javascript:;';
-            if (this.browser.ie) {
-                //isrc = 'about:blank';
-                //TODO - Check this, I have changed it before..
-                isrc = 'javascript:false;';
-            }
-            ifrmDom.setAttribute('src', isrc);
-            var ifrm = new YAHOO.util.Element(ifrmDom);
-            ifrm.setStyle('visibility', 'hidden');
-            return ifrm;
-        },
-        /**
-        * @private _isElement
-        * @description Checks to see if an Element reference is a valid one and has a certain tag type
-        * @param {HTMLElement} el The element to check
-        * @param {String} tag The tag that the element needs to be
-        * @return {Boolean}
-        */
-        _isElement: function(el, tag) {
-            if (el && el.tagName && (el.tagName.toLowerCase() == tag)) {
-                return true;
-            }
-            if (el && el.getAttribute && (el.getAttribute('tag') == tag)) {
-                return true;
-            }
-            return false;
-        },
-        /**
-        * @private _hasParent
-        * @description Checks to see if an Element reference or one of it's parents is a valid one and has a certain tag type
-        * @param {HTMLElement} el The element to check
-        * @param {String} tag The tag that the element needs to be
-        * @return HTMLElement
-        */
-        _hasParent: function(el, tag) {
-            if (!el || !el.parentNode) {
-                return false;
-            }
-            
-            while (el.parentNode) {
-                if (this._isElement(el, tag)) {
-                    return el;
-                }
-                if (el.parentNode) {
-                    el = el.parentNode;
-                } else {
-                    return false;
-                }
-            }
-            return false;
-        },
-        /**
-        * @private
-        * @method _getDoc
-        * @description Get the Document of the IFRAME
-        * @return {Object}
-        */
-        _getDoc: function() {
-            var value = false;
-            try {
-                if (this.get('iframe').get('element').contentWindow.document) {
-                    value = this.get('iframe').get('element').contentWindow.document;
-                    return value;
-                }
-            } catch (e) {
-                return false;
-            }
-        },
-        /**
-        * @private
-        * @method _getWindow
-        * @description Get the Window of the IFRAME
-        * @return {Object}
-        */
-        _getWindow: function() {
-            return this.get('iframe').get('element').contentWindow;
-        },
-        /**
-        * @method focus
-        * @description Attempt to set the focus of the iframes window.
-        */
-        focus: function() {
-            this._getWindow().focus();
-        },
-        /**
-        * @private
-        * @depreciated - This should not be used, moved to this.focus();
-        * @method _focusWindow
-        * @description Attempt to set the focus of the iframes window.
-        */
-        _focusWindow: function() {
-            this.focus();
-        },
-        /**
-        * @private
-        * @method _hasSelection
-        * @description Determines if there is a selection in the editor document.
-        * @return {Boolean}
-        */
-        _hasSelection: function() {
-            var sel = this._getSelection();
-            var range = this._getRange();
-            var hasSel = false;
-
-            if (!sel || !range) {
-                return hasSel;
-            }
-
-            //Internet Explorer
-            if (this.browser.ie || this.browser.opera) {
-                if (range.text) {
-                    hasSel = true;
-                }
-                if (range.html) {
-                    hasSel = true;
-                }
-            } else {
-                if (this.browser.webkit) {
-                    if (sel+'' !== '') {
-                        hasSel = true;
-                    }
-                } else {
-                    if (sel && (sel.toString() !== '') && (sel !== undefined)) {
-                        hasSel = true;
-                    }
-                }
-            }
-            return hasSel;
-        },
-        /**
-        * @private
-        * @method _getSelection
-        * @description Handles the different selection objects across the A-Grade list.
-        * @return {Object} Selection Object
-        */
-        _getSelection: function() {
-            var _sel = null;
-            if (this._getDoc() && this._getWindow()) {
-                if (this._getDoc().selection) {
-                    _sel = this._getDoc().selection;
-                } else {
-                    _sel = this._getWindow().getSelection();
-                }
-                //Handle Safari's lack of Selection Object
-                if (this.browser.webkit) {
-                    if (_sel.baseNode) {
-                            this._selection = {};
-                            this._selection.baseNode = _sel.baseNode;
-                            this._selection.baseOffset = _sel.baseOffset;
-                            this._selection.extentNode = _sel.extentNode;
-                            this._selection.extentOffset = _sel.extentOffset;
-                    } else if (this._selection !== null) {
-                        _sel = this._getWindow().getSelection();
-                        _sel.setBaseAndExtent(
-                            this._selection.baseNode,
-                            this._selection.baseOffset,
-                            this._selection.extentNode,
-                            this._selection.extentOffset);
-                        this._selection = null;
-                    }
-                }
-            }
-            return _sel;
-        },
-        /**
-        * @private
-        * @method _selectNode
-        * @description Places the highlight around a given node
-        * @param {HTMLElement} node The node to select
-        */
-        _selectNode: function(node, collapse) {
-            if (!node) {
-                return false;
-            }
-            var sel = this._getSelection(),
-                range = null;
-
-            if (this.browser.ie) {
-                try { //IE freaks out here sometimes..
-                    range = this._getDoc().body.createTextRange();
-                    range.moveToElementText(node);
-                    range.select();
-                } catch (e) {
-                }
-            } else if (this.browser.webkit) {
-                if (collapse) {
-                                   sel.setBaseAndExtent(node, 1, node, node.innerText.length);
-                } else {
-                                   sel.setBaseAndExtent(node, 0, node, node.innerText.length);
-                }
-            } else if (this.browser.opera) {
-                sel = this._getWindow().getSelection();
-                range = this._getDoc().createRange();
-                range.selectNode(node);
-                sel.removeAllRanges();
-                sel.addRange(range);
-            } else {
-                range = this._getDoc().createRange();
-                range.selectNodeContents(node);
-                sel.removeAllRanges();
-                sel.addRange(range);
-            }
-            //TODO - Check Performance
-            this.nodeChange();
-        },
-        /**
-        * @private
-        * @method _getRange
-        * @description Handles the different range objects across the A-Grade list.
-        * @return {Object} Range Object
-        */
-        _getRange: function() {
-            var sel = this._getSelection();
-
-            if (sel === null) {
-                return null;
-            }
-
-            if (this.browser.webkit && !sel.getRangeAt) {
-                var _range = this._getDoc().createRange();
-                try {
-                    _range.setStart(sel.anchorNode, sel.anchorOffset);
-                    _range.setEnd(sel.focusNode, sel.focusOffset);
-                } catch (e) {
-                    _range = this._getWindow().getSelection()+'';
-                }
-                return _range;
-            }
-
-            if (this.browser.ie || this.browser.opera) {
-                try {
-                    return sel.createRange();
-                } catch (e2) {
-                    return null;
-                }
-            }
-
-            if (sel.rangeCount > 0) {
-                return sel.getRangeAt(0);
-            }
-            return null;
-        },
-        /**
-        * @private
-        * @method _setDesignMode
-        * @description Sets the designMode property of the iFrame document's body.
-        * @param {String} state This should be either on or off
-        */
-        _setDesignMode: function(state) {
-            if (this.get('setDesignMode')) {
-                try {
-                    this._getDoc().designMode = ((state.toLowerCase() == 'off') ? 'off' : 'on');
-                } catch(e) { }
-            }
-        },
-        /**
-        * @private
-        * @method _toggleDesignMode
-        * @description Toggles the designMode property of the iFrame document on and off.
-        * @return {String} The state that it was set to.
-        */
-        _toggleDesignMode: function() {
-            var _dMode = this._getDoc().designMode,
-                _state = ((_dMode.toLowerCase() == 'on') ? 'off' : 'on');
-            this._setDesignMode(_state);
-            return _state;
-        },
-        /**
-        * @private
-        * @property _focused
-        * @description Holder for trapping focus/blur state and prevent double events
-        * @type Boolean
-        */
-        _focused: null,
-        /**
-        * @private
-        * @method _handleFocus
-        * @description Handles the focus of the iframe. Note, this is window focus event, not an Editor focus event.
-        * @param {Event} e The DOM Event
-        */
-        _handleFocus: function(e) {
-            if (!this._focused) {
-                this._focused = true;
-                this.fireEvent('editorWindowFocus', { type: 'editorWindowFocus', target: this });
-            }
-        },
-        /**
-        * @private
-        * @method _handleBlur
-        * @description Handles the blur of the iframe. Note, this is window blur event, not an Editor blur event.
-        * @param {Event} e The DOM Event
-        */
-        _handleBlur: function(e) {
-            if (this._focused) {
-                this._focused = false;
-                this.fireEvent('editorWindowBlur', { type: 'editorWindowBlur', target: this });
-            }
-        },
-        /**
-        * @private
-        * @method _initEditorEvents
-        * @description This method sets up the listeners on the Editors document.
-        */
-        _initEditorEvents: function() {
-            //Setup Listeners on iFrame
-            var doc = this._getDoc(),
-                win = this._getWindow();
-
-            Event.on(doc, 'mouseup', this._handleMouseUp, this, true);
-            Event.on(doc, 'mousedown', this._handleMouseDown, this, true);
-            Event.on(doc, 'click', this._handleClick, this, true);
-            Event.on(doc, 'dblclick', this._handleDoubleClick, this, true);
-            Event.on(doc, 'keypress', this._handleKeyPress, this, true);
-            Event.on(doc, 'keyup', this._handleKeyUp, this, true);
-            Event.on(doc, 'keydown', this._handleKeyDown, this, true);
-            /* TODO -- Everyone but Opera works here..
-            Event.on(doc, 'paste', function() {
-            }, this, true);
-            */
-            //Focus and blur..
-            Event.on(win, 'focus', this._handleFocus, this, true);
-            Event.on(win, 'blur', this._handleBlur, this, true);
-        },
-        /**
-        * @private
-        * @method _removeEditorEvents
-        * @description This method removes the listeners on the Editors document (for disabling).
-        */
-        _removeEditorEvents: function() {
-            //Remove Listeners on iFrame
-            var doc = this._getDoc(),
-                win = this._getWindow();
-
-            Event.removeListener(doc, 'mouseup', this._handleMouseUp, this, true);
-            Event.removeListener(doc, 'mousedown', this._handleMouseDown, this, true);
-            Event.removeListener(doc, 'click', this._handleClick, this, true);
-            Event.removeListener(doc, 'dblclick', this._handleDoubleClick, this, true);
-            Event.removeListener(doc, 'keypress', this._handleKeyPress, this, true);
-            Event.removeListener(doc, 'keyup', this._handleKeyUp, this, true);
-            Event.removeListener(doc, 'keydown', this._handleKeyDown, this, true);
-
-            //Focus and blur..
-            Event.removeListener(win, 'focus', this._handleFocus, this, true);
-            Event.removeListener(win, 'blur', this._handleBlur, this, true);
-        },
-        _fixWebkitDivs: function() {
-            if (this.browser.webkit) {
-                var divs = this._getDoc().body.getElementsByTagName('div');
-                Dom.addClass(divs, 'yui-wk-div');
-            }
-        },
-        /**
-        * @private
-        * @method _initEditor
-        * @param {Boolean} raw Don't add events.
-        * @description This method is fired from _checkLoaded when the document is ready. It turns on designMode and set's up the listeners.
-        */
-        _initEditor: function(raw) {
-            if (this._editorInit) {
-                return;
-            }
-            this._editorInit = true;
-            if (this.browser.ie) {
-                this._getDoc().body.style.margin = '0';
-            }
-            if (!this.get('disabled')) {
-                this._setDesignMode('on');
-                this._contentTimerCounter = 0;
-            }
-            if (!this._getDoc().body) {
-                this._contentTimerCounter = 0;
-                this._editorInit = false;
-                this._checkLoaded();
-                return false;
-            }
-            
-            if (!raw) {
-                this.toolbar.on('buttonClick', this._handleToolbarClick, this, true);
-            }
-            if (!this.get('disabled')) {
-                this._initEditorEvents();
-                this.toolbar.set('disabled', false);
-            }
-
-            if (raw) {
-                this.fireEvent('editorContentReloaded', { type: 'editorreloaded', target: this });
-            } else {
-                this.fireEvent('editorContentLoaded', { type: 'editorLoaded', target: this });
-            }
-            this._fixWebkitDivs();
-            if (this.get('dompath')) {
-                var self = this;
-                setTimeout(function() {
-                    self._writeDomPath.call(self);
-                    self._setupResize.call(self);
-                }, 150);
-            }
-            var br = [];
-            for (var i in this.browser) {
-                if (this.browser[i]) {
-                    br.push(i);
-                }
-            }
-            if (this.get('ptags')) {
-                br.push('ptags');
-            }
-            Dom.addClass(this._getDoc().body, br.join(' '));
-            this.nodeChange(true);
-        },
-        /**
-        * @private
-        * @method _checkLoaded
-        * @param {Boolean} raw Don't add events.
-        * @description Called from a setTimeout loop to check if the iframes body.onload event has fired, then it will init the editor.
-        */
-        _checkLoaded: function(raw) {
-            this._editorInit = false;
-            this._contentTimerCounter++;
-            if (this._contentTimer) {
-                clearTimeout(this._contentTimer);
-            }
-            if (this._contentTimerCounter > this._contentTimerMax) {
-                return false;
-            }
-            var init = false;
-            try {
-                if (this._getDoc() && this._getDoc().body) {
-                    if (this.browser.ie) {
-                        if (this._getDoc().body.readyState == 'complete') {
-                            init = true;
-                        }
-                    } else {
-                        if (this._getDoc().body._rteLoaded === true) {
-                            init = true;
-                        }
-                    }
-                }
-            } catch (e) {
-                init = false;
-            }
-
-            if (init === true) {
-                //The onload event has fired, clean up after ourselves and fire the _initEditor method
-                this._initEditor(raw);
-            } else {
-                var self = this;
-                this._contentTimer = setTimeout(function() {
-                    self._checkLoaded.call(self, raw);
-                }, 20);
-            }
-        },
-        /**
-        * @private
-        * @method _setInitialContent
-        * @param {Boolean} raw Don't add events.
-        * @description This method will open the iframes content document and write the textareas value into it, then start the body.onload checking.
-        */
-        _setInitialContent: function(raw) {
-
-            var value = ((this._textarea) ? this.get('element').value : this.get('element').innerHTML),
-                doc = null;
-
-            if (value === '') {
-                value = '<br>';
-            }
-
-            var html = Lang.substitute(this.get('html'), {
-                TITLE: this.STR_TITLE,
-                CONTENT: this._cleanIncomingHTML(value),
-                CSS: this.get('css'),
-                HIDDEN_CSS: ((this.get('hiddencss')) ? this.get('hiddencss') : '/* No Hidden CSS */'),
-                EXTRA_CSS: ((this.get('extracss')) ? this.get('extracss') : '/* No Extra CSS */')
-            }),
-            check = true;
-
-            html = html.replace(/RIGHT_BRACKET/gi, '{');
-            html = html.replace(/LEFT_BRACKET/gi, '}');
-
-            if (document.compatMode != 'BackCompat') {
-                html = this._docType + "\n" + html;
-            } else {
-            }
-
-            if (this.browser.ie || this.browser.webkit || this.browser.opera || (navigator.userAgent.indexOf('Firefox/1.5') != -1)) {
-                //Firefox 1.5 doesn't like setting designMode on an document created with a data url
-                try {
-                    //Adobe AIR Code
-                    if (this.browser.air) {
-                        doc = this._getDoc().implementation.createHTMLDocument();
-                        var origDoc = this._getDoc();
-                        origDoc.open();
-                        origDoc.close();
-                        doc.open();
-                        doc.write(html);
-                        doc.close();
-                        var node = origDoc.importNode(doc.getElementsByTagName("html")[0], true);
-                        origDoc.replaceChild(node, origDoc.getElementsByTagName("html")[0]);
-                        origDoc.body._rteLoaded = true;
-                    } else {
-                        doc = this._getDoc();
-                        doc.open();
-                        doc.write(html);
-                        doc.close();
-                    }
-                } catch (e) {
-                    //Safari will only be here if we are hidden
-                    check = false;
-                }
-            } else {
-                //This keeps Firefox 2 from writing the iframe to history preserving the back buttons functionality
-                this.get('iframe').get('element').src = 'data:text/html;charset=utf-8,' + encodeURIComponent(html);
-            }
-            this.get('iframe').setStyle('visibility', '');
-            if (check) {
-                this._checkLoaded(raw);
-            }            
-        },
-        /**
-        * @private
-        * @method _setMarkupType
-        * @param {String} action The action to take. Possible values are: css, default or semantic
-        * @description This method will turn on/off the useCSS execCommand.
-        */
-        _setMarkupType: function(action) {
-            switch (this.get('markup')) {
-                case 'css':
-                    this._setEditorStyle(true);
-                    break;
-                case 'default':
-                    this._setEditorStyle(false);
-                    break;
-                case 'semantic':
-                case 'xhtml':
-                    if (this._semantic[action]) {
-                        this._setEditorStyle(false);
-                    } else {
-                        this._setEditorStyle(true);
-                    }
-                    break;
-            }
-        },
-        /**
-        * Set the editor to use CSS instead of HTML
-        * @param {Booleen} stat True/False
-        */
-        _setEditorStyle: function(stat) {
-            try {
-                this._getDoc().execCommand('useCSS', false, !stat);
-            } catch (ex) {
-            }
-        },
-        /**
-        * @private
-        * @method _getSelectedElement
-        * @description This method will attempt to locate the element that was last interacted with, either via selection, location or event.
-        * @return {HTMLElement} The currently selected element.
-        */
-        _getSelectedElement: function() {
-            var doc = this._getDoc(),
-                range = null,
-                sel = null,
-                elm = null,
-                check = true;
-
-            if (this.browser.ie) {
-                this.currentEvent = this._getWindow().event; //Event utility assumes window.event, so we need to reset it to this._getWindow().event;
-                range = this._getRange();
-                if (range) {
-                    elm = range.item ? range.item(0) : range.parentElement();
-                    if (this._hasSelection()) {
-                        //TODO
-                        //WTF.. Why can't I get an element reference here?!??!
-                    }
-                    if (elm === doc.body) {
-                        elm = null;
-                    }
-                }
-                if ((this.currentEvent !== null) && (this.currentEvent.keyCode === 0)) {
-                    elm = Event.getTarget(this.currentEvent);
-                }
-            } else {
-                sel = this._getSelection();
-                range = this._getRange();
-
-                if (!sel || !range) {
-                    return null;
-                }
-                //TODO
-                if (!this._hasSelection() && this.browser.webkit3) {
-                    //check = false;
-                }
-                if (this.browser.gecko) {
-                    //Added in 2.6.0
-                    if (range.startContainer) {
-                        if (range.startContainer.nodeType === 3) {
-                            elm = range.startContainer.parentNode;
-                        } else if (range.startContainer.nodeType === 1) {
-                            elm = range.startContainer;
-                        }
-                        //Added in 2.7.0
-                        if (this.currentEvent) {
-                            var tar = Event.getTarget(this.currentEvent);
-                            if (!this._isElement(tar, 'html')) {
-                                if (elm !== tar) {
-                                    elm = tar;
-                                }
-                            }
-                        }
-                    }
-                }
-                
-                if (check) {
-                    if (sel.anchorNode && (sel.anchorNode.nodeType == 3)) {
-                        if (sel.anchorNode.parentNode) { //next check parentNode
-                            elm = sel.anchorNode.parentNode;
-                        }
-                        if (sel.anchorNode.nextSibling != sel.focusNode.nextSibling) {
-                            elm = sel.anchorNode.nextSibling;
-                        }
-                    }
-                    if (this._isElement(elm, 'br')) {
-                        elm = null;
-                    }
-                    if (!elm) {
-                        elm = range.commonAncestorContainer;
-                        if (!range.collapsed) {
-                            if (range.startContainer == range.endContainer) {
-                                if (range.startOffset - range.endOffset < 2) {
-                                    if (range.startContainer.hasChildNodes()) {
-                                        elm = range.startContainer.childNodes[range.startOffset];
-                                    }
-                                }
-                            }
-                        }
-                    }
-               }
-            }
-            
-            if (this.currentEvent !== null) {
-                try {
-                    switch (this.currentEvent.type) {
-                        case 'click':
-                        case 'mousedown':
-                        case 'mouseup':
-                            if (this.browser.webkit) {
-                                elm = Event.getTarget(this.currentEvent);
-                            }
-                            break;
-                        default:
-                            //Do nothing
-                            break;
-                    }
-                } catch (e) {
-                }
-            } else if ((this.currentElement && this.currentElement[0]) && (!this.browser.ie)) {
-                //TODO is this still needed?
-                //elm = this.currentElement[0];
-            }
-
-
-            if (this.browser.opera || this.browser.webkit) {
-                if (this.currentEvent && !elm) {
-                    elm = YAHOO.util.Event.getTarget(this.currentEvent);
-                }
-            }
-            if (!elm || !elm.tagName) {
-                elm = doc.body;
-            }
-            if (this._isElement(elm, 'html')) {
-                //Safari sometimes gives us the HTML node back..
-                elm = doc.body;
-            }
-            if (this._isElement(elm, 'body')) {
-                //make sure that body means this body not the parent..
-                elm = doc.body;
-            }
-            if (elm && !elm.parentNode) { //Not in document
-                elm = doc.body;
-            }
-            if (elm === undefined) {
-                elm = null;
-            }
-            return elm;
-        },
-        /**
-        * @private
-        * @method _getDomPath
-        * @description This method will attempt to build the DOM path from the currently selected element.
-        * @param HTMLElement el The element to start with, if not provided _getSelectedElement is used
-        * @return {Array} An array of node references that will create the DOM Path.
-        */
-        _getDomPath: function(el) {
-            if (!el) {
-                           el = this._getSelectedElement();
-            }
-                       var domPath = [];
-            while (el !== null) {
-                if (el.ownerDocument != this._getDoc()) {
-                    el = null;
-                    break;
-                }
-                //Check to see if we get el.nodeName and nodeType
-                if (el.nodeName && el.nodeType && (el.nodeType == 1)) {
-                    domPath[domPath.length] = el;
-                }
-
-                if (this._isElement(el, 'body')) {
-                    break;
-                }
-
-                el = el.parentNode;
-            }
-            if (domPath.length === 0) {
-                if (this._getDoc() && this._getDoc().body) {
-                    domPath[0] = this._getDoc().body;
-                }
-            }
-            return domPath.reverse();
-        },
-        /**
-        * @private
-        * @method _writeDomPath
-        * @description Write the current DOM path out to the dompath container below the editor.
-        */
-        _writeDomPath: function() { 
-            var path = this._getDomPath(),
-                pathArr = [],
-                classPath = '',
-                pathStr = '';
-
-            for (var i = 0; i < path.length; i++) {
-                var tag = path[i].tagName.toLowerCase();
-                if ((tag == 'ol') && (path[i].type)) {
-                    tag += ':' + path[i].type;
-                }
-                if (Dom.hasClass(path[i], 'yui-tag')) {
-                    tag = path[i].getAttribute('tag');
-                }
-                if ((this.get('markup') == 'semantic') || (this.get('markup') == 'xhtml')) {
-                    switch (tag) {
-                        case 'b': tag = 'strong'; break;
-                        case 'i': tag = 'em'; break;
-                    }
-                }
-                if (!Dom.hasClass(path[i], 'yui-non')) {
-                    if (Dom.hasClass(path[i], 'yui-tag')) {
-                        pathStr = tag;
-                    } else {
-                        classPath = ((path[i].className !== '') ? '.' + path[i].className.replace(/ /g, '.') : '');
-                        if ((classPath.indexOf('yui') != -1) || (classPath.toLowerCase().indexOf('apple-style-span') != -1)) {
-                            classPath = '';
-                        }
-                        pathStr = tag + ((path[i].id) ? '#' + path[i].id : '') + classPath;
-                    }
-                    switch (tag) {
-                        case 'body':
-                            pathStr = 'body';
-                            break;
-                        case 'a':
-                            if (path[i].getAttribute('href', 2)) {
-                                pathStr += ':' + path[i].getAttribute('href', 2).replace('mailto:', '').replace('http:/'+'/', '').replace('https:/'+'/', ''); //May need to add others here ftp
-                            }
-                            break;
-                        case 'img':
-                            var h = path[i].height;
-                            var w = path[i].width;
-                            if (path[i].style.height) {
-                                h = parseInt(path[i].style.height, 10);
-                            }
-                            if (path[i].style.width) {
-                                w = parseInt(path[i].style.width, 10);
-                            }
-                            pathStr += '(' + w + 'x' + h + ')';
-                        break;
-                    }
-
-                    if (pathStr.length > 10) {
-                        pathStr = '<span title="' + pathStr + '">' + pathStr.substring(0, 10) + '...' + '</span>';
-                    } else {
-                        pathStr = '<span title="' + pathStr + '">' + pathStr + '</span>';
-                    }
-                    pathArr[pathArr.length] = pathStr;
-                }
-            }
-            var str = pathArr.join(' ' + this.SEP_DOMPATH + ' ');
-            //Prevent flickering
-            if (this.dompath.innerHTML != str) {
-                this.dompath.innerHTML = str;
-            }
-        },
-        /**
-        * @private
-        * @method _fixNodes
-        * @description Fix href and imgs as well as remove invalid HTML.
-        */
-        _fixNodes: function() {
-            try {
-                var doc = this._getDoc(),
-                    els = [];
-
-                for (var v in this.invalidHTML) {
-                    if (YAHOO.lang.hasOwnProperty(this.invalidHTML, v)) {
-                        if (v.toLowerCase() != 'span') {
-                            var tags = doc.body.getElementsByTagName(v);
-                            if (tags.length) {
-                                for (var i = 0; i < tags.length; i++) {
-                                    els.push(tags[i]);
-                                }
-                            }
-                        }
-                    }
-                }
-                for (var h = 0; h < els.length; h++) {
-                    if (els[h].parentNode) {
-                        if (Lang.isObject(this.invalidHTML[els[h].tagName.toLowerCase()]) && this.invalidHTML[els[h].tagName.toLowerCase()].keepContents) {
-                            this._swapEl(els[h], 'span', function(el) {
-                                el.className = 'yui-non';
-                            });
-                        } else {
-                            els[h].parentNode.removeChild(els[h]);
-                        }
-                    }
-                }
-                var imgs = this._getDoc().getElementsByTagName('img');
-                Dom.addClass(imgs, 'yui-img');
-            } catch(e) {}
-        },
-        /**
-        * @private
-        * @method _isNonEditable
-        * @param Event ev The Dom event being checked
-        * @description Method is called at the beginning of all event handlers to check if this element or a parent element has the class yui-noedit (this.CLASS_NOEDIT) applied.
-        * If it does, then this method will stop the event and return true. The event handlers will then return false and stop the nodeChange from occuring. This method will also
-        * disable and enable the Editor's toolbar based on the noedit state.
-        * @return Boolean
-        */
-        _isNonEditable: function(ev) {
-            if (this.get('allowNoEdit')) {
-                var el = Event.getTarget(ev);
-                if (this._isElement(el, 'html')) {
-                    el = null;
-                }
-                var path = this._getDomPath(el);
-                for (var i = (path.length - 1); i > -1; i--) {
-                    if (Dom.hasClass(path[i], this.CLASS_NOEDIT)) {
-                        //if (this.toolbar.get('disabled') === false) {
-                        //    this.toolbar.set('disabled', true);
-                        //}
-                        try {
-                             this._getDoc().execCommand('enableObjectResizing', false, 'false');
-                        } catch (e) {}
-                        this.nodeChange();
-                        Event.stopEvent(ev);
-                        return true;
-                    }
-                }
-                //if (this.toolbar.get('disabled') === true) {
-                    //Should only happen once..
-                    //this.toolbar.set('disabled', false);
-                    try {
-                         this._getDoc().execCommand('enableObjectResizing', false, 'true');
-                    } catch (e2) {}
-                //}
-            }
-            return false;
-        },
-        /**
-        * @private
-        * @method _setCurrentEvent
-        * @param {Event} ev The event to cache
-        * @description Sets the current event property
-        */
-        _setCurrentEvent: function(ev) {
-            this.currentEvent = ev;
-        },
-        /**
-        * @private
-        * @method _handleClick
-        * @param {Event} ev The event we are working on.
-        * @description Handles all click events inside the iFrame document.
-        */
-        _handleClick: function(ev) {
-            var ret = this.fireEvent('beforeEditorClick', { type: 'beforeEditorClick', target: this, ev: ev });
-            if (ret === false) {
-                return false;
-            }
-            if (this._isNonEditable(ev)) {
-                return false;
-            }
-            this._setCurrentEvent(ev);
-            if (this.currentWindow) {
-                this.closeWindow();
-            }
-            if (this.currentWindow) {
-                this.closeWindow();
-            }
-            if (this.browser.webkit) {
-                var tar =Event.getTarget(ev);
-                if (this._isElement(tar, 'a') || this._isElement(tar.parentNode, 'a')) {
-                    Event.stopEvent(ev);
-                    this.nodeChange();
-                }
-            } else {
-                this.nodeChange();
-            }
-            this.fireEvent('editorClick', { type: 'editorClick', target: this, ev: ev });
-        },
-        /**
-        * @private
-        * @method _handleMouseUp
-        * @param {Event} ev The event we are working on.
-        * @description Handles all mouseup events inside the iFrame document.
-        */
-        _handleMouseUp: function(ev) {
-            var ret = this.fireEvent('beforeEditorMouseUp', { type: 'beforeEditorMouseUp', target: this, ev: ev });
-            if (ret === false) {
-                return false;
-            }
-            if (this._isNonEditable(ev)) {
-                return false;
-            }
-            //Don't set current event for mouseup.
-            //It get's fired after a menu is closed and gives up a bogus event to work with
-            //this._setCurrentEvent(ev);
-            var self = this;
-            if (this.browser.opera) {
-                /*
-                * @knownissue Opera appears to stop the MouseDown, Click and DoubleClick events on an image inside of a document with designMode on..
-                * @browser Opera
-                * @description This work around traps the MouseUp event and sets a timer to check if another MouseUp event fires in so many seconds. If another event is fired, they we internally fire the DoubleClick event.
-                */
-                var sel = Event.getTarget(ev);
-                if (this._isElement(sel, 'img')) {
-                    this.nodeChange();
-                    if (this.operaEvent) {
-                        clearTimeout(this.operaEvent);
-                        this.operaEvent = null;
-                        this._handleDoubleClick(ev);
-                    } else {
-                        this.operaEvent = window.setTimeout(function() {
-                            self.operaEvent = false;
-                        }, 700);
-                    }
-                }
-            }
-            //This will stop Safari from selecting the entire document if you select all the text in the editor
-            if (this.browser.webkit || this.browser.opera) {
-                if (this.browser.webkit) {
-                    Event.stopEvent(ev);
-                }
-            }
-            this.nodeChange();
-            this.fireEvent('editorMouseUp', { type: 'editorMouseUp', target: this, ev: ev });
-        },
-        /**
-        * @private
-        * @method _handleMouseDown
-        * @param {Event} ev The event we are working on.
-        * @description Handles all mousedown events inside the iFrame document.
-        */
-        _handleMouseDown: function(ev) {
-            var ret = this.fireEvent('beforeEditorMouseDown', { type: 'beforeEditorMouseDown', target: this, ev: ev });
-            if (ret === false) {
-                return false;
-            }
-            if (this._isNonEditable(ev)) {
-                return false;
-            }
-            this._setCurrentEvent(ev);
-            var sel = Event.getTarget(ev);
-            if (this.browser.webkit && this._hasSelection()) {
-                var _sel = this._getSelection();
-                if (!this.browser.webkit3) {
-                    _sel.collapse(true);
-                } else {
-                    _sel.collapseToStart();
-                }
-            }
-            if (this.browser.webkit && this._lastImage) {
-                Dom.removeClass(this._lastImage, 'selected');
-                this._lastImage = null;
-            }
-            if (this._isElement(sel, 'img') || this._isElement(sel, 'a')) {
-                if (this.browser.webkit) {
-                    Event.stopEvent(ev);
-                    if (this._isElement(sel, 'img')) {
-                        Dom.addClass(sel, 'selected');
-                        this._lastImage = sel;
-                    }
-                }
-                if (this.currentWindow) {
-                    this.closeWindow();
-                }
-                this.nodeChange();
-            }
-            this.fireEvent('editorMouseDown', { type: 'editorMouseDown', target: this, ev: ev });
-        },
-        /**
-        * @private
-        * @method _handleDoubleClick
-        * @param {Event} ev The event we are working on.
-        * @description Handles all doubleclick events inside the iFrame document.
-        */
-        _handleDoubleClick: function(ev) {
-            var ret = this.fireEvent('beforeEditorDoubleClick', { type: 'beforeEditorDoubleClick', target: this, ev: ev });
-            if (ret === false) {
-                return false;
-            }
-            if (this._isNonEditable(ev)) {
-                return false;
-            }
-            this._setCurrentEvent(ev);
-            var sel = Event.getTarget(ev);
-            if (this._isElement(sel, 'img')) {
-                this.currentElement[0] = sel;
-                this.toolbar.fireEvent('insertimageClick', { type: 'insertimageClick', target: this.toolbar });
-                this.fireEvent('afterExecCommand', { type: 'afterExecCommand', target: this });
-            } else if (this._hasParent(sel, 'a')) { //Handle elements inside an a
-                this.currentElement[0] = this._hasParent(sel, 'a');
-                this.toolbar.fireEvent('createlinkClick', { type: 'createlinkClick', target: this.toolbar });
-                this.fireEvent('afterExecCommand', { type: 'afterExecCommand', target: this });
-            }
-            this.nodeChange();
-            this.fireEvent('editorDoubleClick', { type: 'editorDoubleClick', target: this, ev: ev });
-        },
-        /**
-        * @private
-        * @method _handleKeyUp
-        * @param {Event} ev The event we are working on.
-        * @description Handles all keyup events inside the iFrame document.
-        */
-        _handleKeyUp: function(ev) {
-            var ret = this.fireEvent('beforeEditorKeyUp', { type: 'beforeEditorKeyUp', target: this, ev: ev });
-            if (ret === false) {
-                return false;
-            }
-            if (this._isNonEditable(ev)) {
-                return false;
-            }
-            this._storeUndo();
-            this._setCurrentEvent(ev);
-            switch (ev.keyCode) {
-                case this._keyMap.SELECT_ALL.key:
-                    if (this._checkKey(this._keyMap.SELECT_ALL, ev)) {
-                        this.nodeChange();
-                    }
-                    break;
-                case 32: //Space Bar
-                case 35: //End
-                case 36: //Home
-                case 37: //Left Arrow
-                case 38: //Up Arrow
-                case 39: //Right Arrow
-                case 40: //Down Arrow
-                case 46: //Forward Delete
-                case 8: //Delete
-                case this._keyMap.CLOSE_WINDOW.key: //W key if window is open
-                    if ((ev.keyCode == this._keyMap.CLOSE_WINDOW.key) && this.currentWindow) {
-                        if (this._checkKey(this._keyMap.CLOSE_WINDOW, ev)) {
-                            this.closeWindow();
-                        }
-                    } else {
-                        if (!this.browser.ie) {
-                            if (this._nodeChangeTimer) {
-                                clearTimeout(this._nodeChangeTimer);
-                            }
-                            var self = this;
-                            this._nodeChangeTimer = setTimeout(function() {
-                                self._nodeChangeTimer = null;
-                                self.nodeChange.call(self);
-                            }, 100);
-                        } else {
-                            this.nodeChange();
-                        }
-                        this.editorDirty = true;
-                    }
-                    break;
-            }
-            this.fireEvent('editorKeyUp', { type: 'editorKeyUp', target: this, ev: ev });
-        },
-        /**
-        * @private
-        * @method _handleKeyPress
-        * @param {Event} ev The event we are working on.
-        * @description Handles all keypress events inside the iFrame document.
-        */
-        _handleKeyPress: function(ev) {
-            var ret = this.fireEvent('beforeEditorKeyPress', { type: 'beforeEditorKeyPress', target: this, ev: ev });
-            if (ret === false) {
-                return false;
-            }
-
-            if (this.get('allowNoEdit')) {
-                //if (ev && ev.keyCode && ((ev.keyCode == 46) || ev.keyCode == 63272)) {
-                if (ev && ev.keyCode && (ev.keyCode == 63272)) {
-                    //Forward delete key
-                    Event.stopEvent(ev);
-                }
-            }
-            if (this._isNonEditable(ev)) {
-                return false;
-            }
-            this._setCurrentEvent(ev);
-            this._storeUndo();
-            if (this.browser.opera) {
-                if (ev.keyCode === 13) {
-                    var tar = this._getSelectedElement();
-                    if (!this._isElement(tar, 'li')) {
-                        this.execCommand('inserthtml', '<br>');
-                        Event.stopEvent(ev);
-                    }
-                }
-            }
-            if (this.browser.webkit) {
-                if (!this.browser.webkit3) {
-                    if (ev.keyCode && (ev.keyCode == 122) && (ev.metaKey)) {
-                        //This is CMD + z (for undo)
-                        if (this._hasParent(this._getSelectedElement(), 'li')) {
-                            Event.stopEvent(ev);
-                        }
-                    }
-                }
-                this._listFix(ev);
-            }
-            this._fixListDupIds();
-            this.fireEvent('editorKeyPress', { type: 'editorKeyPress', target: this, ev: ev });
-        },
-        /**
-        * @private
-        * @method _handleKeyDown
-        * @param {Event} ev The event we are working on.
-        * @description Handles all keydown events inside the iFrame document.
-        */
-        _handleKeyDown: function(ev) {
-            var ret = this.fireEvent('beforeEditorKeyDown', { type: 'beforeEditorKeyDown', target: this, ev: ev });
-            if (ret === false) {
-                return false;
-            }
-            var tar = null, _range = null;
-            if (this._isNonEditable(ev)) {
-                return false;
-            }
-            this._setCurrentEvent(ev);
-            if (this.currentWindow) {
-                this.closeWindow();
-            }
-            if (this.currentWindow) {
-                this.closeWindow();
-            }
-            var doExec = false,
-                action = null,
-                value = null,
-                exec = false;
-
-
-            switch (ev.keyCode) {
-                case this._keyMap.FOCUS_TOOLBAR.key:
-                    if (this._checkKey(this._keyMap.FOCUS_TOOLBAR, ev)) {
-                        var h = this.toolbar.getElementsByTagName('h2')[0];
-                        if (h && h.firstChild) {
-                            h.firstChild.focus();
-                        }
-                    } else if (this._checkKey(this._keyMap.FOCUS_AFTER, ev)) {
-                        //Focus After Element - Esc
-                        this.afterElement.focus();
-                    }
-                    Event.stopEvent(ev);
-                    doExec = false;
-                    break;
-                //case 76: //L
-                case this._keyMap.CREATE_LINK.key: //L
-                    if (this._hasSelection()) {
-                        if (this._checkKey(this._keyMap.CREATE_LINK, ev)) {
-                            var makeLink = true;
-                            if (this.get('limitCommands')) {
-                                if (!this.toolbar.getButtonByValue('createlink')) {
-                                    makeLink = false;
-                                }
-                            }
-                            if (makeLink) {
-                                this.execCommand('createlink', '');
-                                this.toolbar.fireEvent('createlinkClick', { type: 'createlinkClick', target: this.toolbar });
-                                this.fireEvent('afterExecCommand', { type: 'afterExecCommand', target: this });
-                                doExec = false;
-                            }
-                        }
-                    }
-                    break;
-                //case 90: //Z
-                case this._keyMap.UNDO.key:
-                case this._keyMap.REDO.key:
-                    if (this._checkKey(this._keyMap.REDO, ev)) {
-                        action = 'redo';
-                        doExec = true;
-                    } else if (this._checkKey(this._keyMap.UNDO, ev)) {
-                        action = 'undo';
-                        doExec = true;
-                    }
-                    break;
-                //case 66: //B
-                case this._keyMap.BOLD.key:
-                    if (this._checkKey(this._keyMap.BOLD, ev)) {
-                        action = 'bold';
-                        doExec = true;
-                    }
-                    break;
-                case this._keyMap.FONT_SIZE_UP.key:
-                case this._keyMap.FONT_SIZE_DOWN.key:
-                    var uk = false, dk = false;
-                    if (this._checkKey(this._keyMap.FONT_SIZE_UP, ev)) {
-                        uk = true;
-                    }
-                    if (this._checkKey(this._keyMap.FONT_SIZE_DOWN, ev)) {
-                        dk = true;
-                    }
-                    if (uk || dk) {
-                        var fs_button = this.toolbar.getButtonByValue('fontsize'),
-                            label = parseInt(fs_button.get('label'), 10),
-                            newValue = (label + 1);
-
-                        if (dk) {
-                            newValue = (label - 1);
-                        }
-
-                        action = 'fontsize';
-                        value = newValue + 'px';
-                        doExec = true;
-                    }
-                    break;
-                //case 73: //I
-                case this._keyMap.ITALIC.key:
-                    if (this._checkKey(this._keyMap.ITALIC, ev)) {
-                        action = 'italic';
-                        doExec = true;
-                    }
-                    break;
-                //case 85: //U
-                case this._keyMap.UNDERLINE.key:
-                    if (this._checkKey(this._keyMap.UNDERLINE, ev)) {
-                        action = 'underline';
-                        doExec = true;
-                    }
-                    break;
-                case 9:
-                    if (this.browser.ie) {
-                        //Insert a tab in Internet Explorer
-                        _range = this._getRange();
-                        tar = this._getSelectedElement();
-                        if (!this._isElement(tar, 'li')) {
-                            if (_range) {
-                                _range.pasteHTML('&nbsp;&nbsp;&nbsp;&nbsp;');
-                                _range.collapse(false);
-                                _range.select();
-                            }
-                            Event.stopEvent(ev);
-                        }
-                    }
-                    //Firefox 3 code
-                    if (this.browser.gecko > 1.8) {
-                        tar = this._getSelectedElement();
-                        if (this._isElement(tar, 'li')) {
-                            if (ev.shiftKey) {
-                                this._getDoc().execCommand('outdent', null, '');
-                            } else {
-                                this._getDoc().execCommand('indent', null, '');
-                            }
-                            
-                        } else if (!this._hasSelection()) {
-                            this.execCommand('inserthtml', '&nbsp;&nbsp;&nbsp;&nbsp;');
-                        }
-                        Event.stopEvent(ev);
-                    }
-                    break;
-                case 13:
-                    var p = null, i = 0;
-                    if (this.get('ptags') && !ev.shiftKey) {
-                        if (this.browser.gecko) {
-                            tar = this._getSelectedElement();
-                            if (!this._hasParent(tar, 'li')) {
-                                if (this._hasParent(tar, 'p')) {
-                                    p = this._getDoc().createElement('p');
-                                    p.innerHTML = '&nbsp;';
-                                    Dom.insertAfter(p, tar);
-                                    this._selectNode(p.firstChild);
-                                } else if (this._isElement(tar, 'body')) {
-                                    this.execCommand('insertparagraph', null);
-                                    var ps = this._getDoc().body.getElementsByTagName('p');
-                                    for (i = 0; i < ps.length; i++) {
-                                        if (ps[i].getAttribute('_moz_dirty') !== null) {
-                                            p = this._getDoc().createElement('p');
-                                            p.innerHTML = '&nbsp;';
-                                            Dom.insertAfter(p, ps[i]);
-                                            this._selectNode(p.firstChild);
-                                            ps[i].removeAttribute('_moz_dirty');
-                                        }
-                                    }
-                                } else {
-                                    doExec = true;
-                                    action = 'insertparagraph';
-                                }
-                                Event.stopEvent(ev);
-                            }
-                        }
-                        if (this.browser.webkit) {
-                            tar = this._getSelectedElement();
-                            if (!this._hasParent(tar, 'li')) {
-                                this.execCommand('insertparagraph', null);
-                                var divs = this._getDoc().body.getElementsByTagName('div');
-                                for (i = 0; i < divs.length; i++) {
-                                    if (!Dom.hasClass(divs[i], 'yui-wk-div')) {
-                                        Dom.addClass(divs[i], 'yui-wk-p');
-                                    }
-                                }
-                                Event.stopEvent(ev);
-                            }
-                        }
-                    } else {
-                        if (this.browser.webkit) {
-                            tar = this._getSelectedElement();
-                            if (!this._hasParent(tar, 'li')) {
-                                if (this.browser.webkit4) {
-                                    this.execCommand('insertlinebreak');
-                                } else {
-                                    this.execCommand('inserthtml', '<var id="yui-br"></var>');
-                                    var holder = this._getDoc().getElementById('yui-br'),
-                                        br = this._getDoc().createElement('br'),
-                                        caret = this._getDoc().createElement('span');
-
-                                    holder.parentNode.replaceChild(br, holder);
-                                    caret.className = 'yui-non';
-                                    caret.innerHTML = '&nbsp;';
-                                    Dom.insertAfter(caret, br);
-                                    this._selectNode(caret);
-                                }
-                                Event.stopEvent(ev);
-                            }
-                        }
-                        if (this.browser.ie) {
-                            //Insert a <br> instead of a <p></p> in Internet Explorer
-                            _range = this._getRange();
-                            tar = this._getSelectedElement();
-                            if (!this._isElement(tar, 'li')) {
-                                if (_range) {
-                                    _range.pasteHTML('<br>');
-                                    _range.collapse(false);
-                                    _range.select();
-                                }
-                                Event.stopEvent(ev);
-                            }
-                        }
-                    }
-                    break;
-            }
-            if (this.browser.ie) {
-                this._listFix(ev);
-            }
-            if (doExec && action) {
-                this.execCommand(action, value);
-                Event.stopEvent(ev);
-                this.nodeChange();
-            }
-            this._storeUndo();
-            this.fireEvent('editorKeyDown', { type: 'editorKeyDown', target: this, ev: ev });
-        },
-        /**
-        * @private
-        * @property _fixListRunning
-        * @type Boolean
-        * @description Keeps more than one _fixListDupIds from running at the same time.
-        */
-        _fixListRunning: null,
-        /**
-        * @private
-        * @method _fixListDupIds
-        * @description Some browsers will duplicate the id of an LI when created in designMode.
-        * This method will fix the duplicate id issue. However it will only preserve the first element 
-        * in the document list with the unique id. 
-        */
-        _fixListDupIds: function() {
-            if (this._fixListRunning) {
-                return false;
-            }
-            if (this._getDoc()) {
-                this._fixListRunning = true;
-                var lis = this._getDoc().body.getElementsByTagName('li'),
-                    i = 0, ids = {};
-                for (i = 0; i < lis.length; i++) {
-                    if (lis[i].id) {
-                        if (ids[lis[i].id]) {
-                            lis[i].id = '';
-                        }
-                        ids[lis[i].id] = true;
-                    }
-                }
-                this._fixListRunning = false;
-            }
-        },
-        /**
-        * @private
-        * @method _listFix
-        * @param {Event} ev The event we are working on.
-        * @description Handles the Enter key, Tab Key and Shift + Tab keys for List Items.
-        */
-        _listFix: function(ev) {
-            var testLi = null, par = null, preContent = false, range = null;
-            //Enter Key
-            if (this.browser.webkit) {
-                if (ev.keyCode && (ev.keyCode == 13)) {
-                    if (this._hasParent(this._getSelectedElement(), 'li')) {
-                        var tar = this._hasParent(this._getSelectedElement(), 'li');
-                        if (tar.previousSibling) {
-                            if (tar.firstChild && (tar.firstChild.length == 1)) {
-                                this._selectNode(tar);
-                            }
-                        }
-                    }
-                }
-            }
-            //Shift + Tab Key
-            if (ev.keyCode && ((!this.browser.webkit3 && (ev.keyCode == 25)) || ((this.browser.webkit3 || !this.browser.webkit) && ((ev.keyCode == 9) && ev.shiftKey)))) {
-                testLi = this._getSelectedElement();
-                if (this._hasParent(testLi, 'li')) {
-                    testLi = this._hasParent(testLi, 'li');
-                    if (this._hasParent(testLi, 'ul') || this._hasParent(testLi, 'ol')) {
-                        par = this._hasParent(testLi, 'ul');
-                        if (!par) {
-                            par = this._hasParent(testLi, 'ol');
-                        }
-                        if (this._isElement(par.previousSibling, 'li')) {
-                            par.removeChild(testLi);
-                            par.parentNode.insertBefore(testLi, par.nextSibling);
-                            if (this.browser.ie) {
-                                range = this._getDoc().body.createTextRange();
-                                range.moveToElementText(testLi);
-                                range.collapse(false);
-                                range.select();
-                            }
-                            if (this.browser.webkit) {
-                                this._selectNode(testLi.firstChild);
-                            }
-                            Event.stopEvent(ev);
-                        }
-                    }
-                }
-            }
-            //Tab Key
-            if (ev.keyCode && ((ev.keyCode == 9) && (!ev.shiftKey))) {
-                var preLi = this._getSelectedElement();
-                if (this._hasParent(preLi, 'li')) {
-                    preContent = this._hasParent(preLi, 'li').innerHTML;
-                }
-                if (this.browser.webkit) {
-                    this._getDoc().execCommand('inserttext', false, '\t');
-                }
-                testLi = this._getSelectedElement();
-                if (this._hasParent(testLi, 'li')) {
-                    par = this._hasParent(testLi, 'li');
-                    var newUl = this._getDoc().createElement(par.parentNode.tagName.toLowerCase());
-                    if (this.browser.webkit) {
-                        var span = Dom.getElementsByClassName('Apple-tab-span', 'span', par);
-                        //Remove the span element that Safari puts in
-                        if (span[0]) {
-                            par.removeChild(span[0]);
-                            par.innerHTML = Lang.trim(par.innerHTML);
-                            //Put the HTML from the LI into this new LI
-                            if (preContent) {
-                                par.innerHTML = '<span class="yui-non">' + preContent + '</span>&nbsp;';
-                            } else {
-                                par.innerHTML = '<span class="yui-non">&nbsp;</span>&nbsp;';
-                            }
-                        }
-                    } else {
-                        if (preContent) {
-                            par.innerHTML = preContent + '&nbsp;';
-                        } else {
-                            par.innerHTML = '&nbsp;';
-                        }
-                    }
-
-                    par.parentNode.replaceChild(newUl, par);
-                    newUl.appendChild(par);
-                    if (this.browser.webkit) {
-                        this._getSelection().setBaseAndExtent(par.firstChild, 1, par.firstChild, par.firstChild.innerText.length);
-                        if (!this.browser.webkit3) {
-                            par.parentNode.parentNode.style.display = 'list-item';
-                            setTimeout(function() {
-                                par.parentNode.parentNode.style.display = 'block';
-                            }, 1);
-                        }
-                    } else if (this.browser.ie) {
-                        range = this._getDoc().body.createTextRange();
-                        range.moveToElementText(par);
-                        range.collapse(false);
-                        range.select();
-                    } else {
-                        this._selectNode(par);
-                    }
-                    Event.stopEvent(ev);
-                }
-                if (this.browser.webkit) {
-                    Event.stopEvent(ev);
-                }
-                this.nodeChange();
-            }
-        },
-        /**
-        * @method nodeChange
-        * @param {Boolean} force Optional paramenter to skip the threshold counter
-        * @description Handles setting up the toolbar buttons, getting the Dom path, fixing nodes.
-        */
-        nodeChange: function(force) {
-            var NCself = this;
-            this._storeUndo();
-            if (this.get('nodeChangeDelay')) {
-                this._nodeChangeDelayTimer = window.setTimeout(function() {
-                    NCself._nodeChangeDelayTimer = null;
-                    NCself._nodeChange.apply(NCself, arguments);
-                }, 0);
-            } else {
-                this._nodeChange();
-            }
-        },
-        /**
-        * @private
-        * @method _nodeChange
-        * @param {Boolean} force Optional paramenter to skip the threshold counter
-        * @description Fired from nodeChange in a setTimeout.
-        */
-        _nodeChange: function(force) {
-            var threshold = parseInt(this.get('nodeChangeThreshold'), 10),
-                thisNodeChange = Math.round(new Date().getTime() / 1000),
-                self = this;
-
-            if (force === true) {
-                this._lastNodeChange = 0;
-            }
-            
-            if ((this._lastNodeChange + threshold) < thisNodeChange) {
-                if (this._fixNodesTimer === null) {
-                    this._fixNodesTimer = window.setTimeout(function() {
-                        self._fixNodes.call(self);
-                        self._fixNodesTimer = null;
-                    }, 0);
-                }
-            }
-            this._lastNodeChange = thisNodeChange;
-            if (this.currentEvent) {
-                try {
-                    this._lastNodeChangeEvent = this.currentEvent.type;
-                } catch (e) {}
-            }
-
-            var beforeNodeChange = this.fireEvent('beforeNodeChange', { type: 'beforeNodeChange', target: this });
-            if (beforeNodeChange === false) {
-                return false;
-            }
-            if (this.get('dompath')) {
-                window.setTimeout(function() {
-                    self._writeDomPath.call(self);
-                }, 0);
-            }
-            //Check to see if we are disabled before continuing
-            if (!this.get('disabled')) {
-                if (this.STOP_NODE_CHANGE) {
-                    //Reset this var for next action
-                    this.STOP_NODE_CHANGE = false;
-                    return false;
-                } else {
-                    var sel = this._getSelection(),
-                        range = this._getRange(),
-                        el = this._getSelectedElement(),
-                        fn_button = this.toolbar.getButtonByValue('fontname'),
-                        fs_button = this.toolbar.getButtonByValue('fontsize'),
-                        undo_button = this.toolbar.getButtonByValue('undo'),
-                        redo_button = this.toolbar.getButtonByValue('redo');
-
-                    //Handle updating the toolbar with active buttons
-                    var _ex = {};
-                    if (this._lastButton) {
-                        _ex[this._lastButton.id] = true;
-                        //this._lastButton = null;
-                    }
-                    if (!this._isElement(el, 'body')) {
-                        if (fn_button) {
-                            _ex[fn_button.get('id')] = true;
-                        }
-                        if (fs_button) {
-                            _ex[fs_button.get('id')] = true;
-                        }
-                    }
-                    if (redo_button) {
-                        delete _ex[redo_button.get('id')];
-                    }
-                    this.toolbar.resetAllButtons(_ex);
-
-                    //Handle disabled buttons
-                    for (var d = 0; d < this._disabled.length; d++) {
-                        var _button = this.toolbar.getButtonByValue(this._disabled[d]);
-                        if (_button && _button.get) {
-                            if (this._lastButton && (_button.get('id') === this._lastButton.id)) {
-                                //Skip
-                            } else {
-                                if (!this._hasSelection() && !this.get('insert')) {
-                                    switch (this._disabled[d]) {
-                                        case 'fontname':
-                                        case 'fontsize':
-                                            break;
-                                        default:
-                                            //No Selection - disable
-                                            this.toolbar.disableButton(_button);
-                                    }
-                                } else {
-                                    if (!this._alwaysDisabled[this._disabled[d]]) {
-                                        this.toolbar.enableButton(_button);
-                                    }
-                                }
-                                if (!this._alwaysEnabled[this._disabled[d]]) {
-                                    this.toolbar.deselectButton(_button);
-                                }
-                            }
-                        }
-                    }
-                    var path = this._getDomPath();
-                    var tag = null, cmd = null;
-                    for (var i = 0; i < path.length; i++) {
-                        tag = path[i].tagName.toLowerCase();
-                        if (path[i].getAttribute('tag')) {
-                            tag = path[i].getAttribute('tag').toLowerCase();
-                        }
-                        cmd = this._tag2cmd[tag];
-                        if (cmd === undefined) {
-                            cmd = [];
-                        }
-                        if (!Lang.isArray(cmd)) {
-                            cmd = [cmd];
-                        }
-
-                        //Bold and Italic styles
-                        if (path[i].style.fontWeight.toLowerCase() == 'bold') {
-                            cmd[cmd.length] = 'bold';
-                        }
-                        if (path[i].style.fontStyle.toLowerCase() == 'italic') {
-                            cmd[cmd.length] = 'italic';
-                        }
-                        if (path[i].style.textDecoration.toLowerCase() == 'underline') {
-                            cmd[cmd.length] = 'underline';
-                        }
-                        if (path[i].style.textDecoration.toLowerCase() == 'line-through') {
-                            cmd[cmd.length] = 'strikethrough';
-                        }
-                        if (cmd.length > 0) {
-                            for (var j = 0; j < cmd.length; j++) {
-                                this.toolbar.selectButton(cmd[j]);
-                                this.toolbar.enableButton(cmd[j]);
-                            }
-                        }
-                        //Handle Alignment
-                        switch (path[i].style.textAlign.toLowerCase()) {
-                            case 'left':
-                            case 'right':
-                            case 'center':
-                            case 'justify':
-                                var alignType = path[i].style.textAlign.toLowerCase();
-                                if (path[i].style.textAlign.toLowerCase() == 'justify') {
-                                    alignType = 'full';
-                                }
-                                this.toolbar.selectButton('justify' + alignType);
-                                this.toolbar.enableButton('justify' + alignType);
-                                break;
-                        }
-                    }
-                    //After for loop
-
-                    //Reset Font Family and Size to the inital configs
-                    if (fn_button) {
-                        var family = fn_button._configs.label._initialConfig.value;
-                        fn_button.set('label', '<span class="yui-toolbar-fontname-' + this._cleanClassName(family) + '">' + family + '</span>');
-                        this._updateMenuChecked('fontname', family);
-                    }
-
-                    if (fs_button) {
-                        fs_button.set('label', fs_button._configs.label._initialConfig.value);
-                    }
-
-                    var hd_button = this.toolbar.getButtonByValue('heading');
-                    if (hd_button) {
-                        hd_button.set('label', hd_button._configs.label._initialConfig.value);
-                        this._updateMenuChecked('heading', 'none');
-                    }
-                    var img_button = this.toolbar.getButtonByValue('insertimage');
-                    if (img_button && this.currentWindow && (this.currentWindow.name == 'insertimage')) {
-                        this.toolbar.disableButton(img_button);
-                    }
-                    if (this._lastButton && this._lastButton.isSelected) {
-                        this.toolbar.deselectButton(this._lastButton.id);
-                    }
-                    this._undoNodeChange();
-                }
-            }
-
-            this.fireEvent('afterNodeChange', { type: 'afterNodeChange', target: this });
-        },
-        /**
-        * @private
-        * @method _updateMenuChecked
-        * @param {Object} button The command identifier of the button you want to check
-        * @param {String} value The value of the menu item you want to check
-        * @param {<a href="YAHOO.widget.Toolbar.html">YAHOO.widget.Toolbar</a>} The Toolbar instance the button belongs to (defaults to this.toolbar) 
-        * @description Gets the menu from a button instance, if the menu is not rendered it will render it. It will then search the menu for the specified value, unchecking all other items and checking the specified on.
-        */
-        _updateMenuChecked: function(button, value, tbar) {
-            if (!tbar) {
-                tbar = this.toolbar;
-            }
-            var _button = tbar.getButtonByValue(button);
-            _button.checkValue(value);
-        },
-        /**
-        * @private
-        * @method _handleToolbarClick
-        * @param {Event} ev The event that triggered the button click
-        * @description This is an event handler attached to the Toolbar's buttonClick event. It will fire execCommand with the command identifier from the Toolbar Button.
-        */
-        _handleToolbarClick: function(ev) {
-            var value = '';
-            var str = '';
-            var cmd = ev.button.value;
-            if (ev.button.menucmd) {
-                value = cmd;
-                cmd = ev.button.menucmd;
-            }
-            this._lastButton = ev.button;
-            if (this.STOP_EXEC_COMMAND) {
-                this.STOP_EXEC_COMMAND = false;
-                return false;
-            } else {
-                this.execCommand(cmd, value);
-                if (!this.browser.webkit) {
-                     var Fself = this;
-                     setTimeout(function() {
-                         Fself.focus.call(Fself);
-                     }, 5);
-                 }
-            }
-            Event.stopEvent(ev);
-        },
-        /**
-        * @private
-        * @method _setupAfterElement
-        * @description Creates the accessibility h2 header and places it after the iframe in the Dom for navigation.
-        */
-        _setupAfterElement: function() {
-            if (!this.beforeElement) {
-                this.beforeElement = document.createElement('h2');
-                this.beforeElement.className = 'yui-editor-skipheader';
-                this.beforeElement.tabIndex = '-1';
-                this.beforeElement.innerHTML = this.STR_BEFORE_EDITOR;
-                this.get('element_cont').get('firstChild').insertBefore(this.beforeElement, this.toolbar.get('nextSibling'));
-            }
-            if (!this.afterElement) {
-                this.afterElement = document.createElement('h2');
-                this.afterElement.className = 'yui-editor-skipheader';
-                this.afterElement.tabIndex = '-1';
-                this.afterElement.innerHTML = this.STR_LEAVE_EDITOR;
-                this.get('element_cont').get('firstChild').appendChild(this.afterElement);
-            }
-        },
-        /**
-        * @private
-        * @method _disableEditor
-        * @param {Boolean} disabled Pass true to disable, false to enable
-        * @description Creates a mask to place over the Editor.
-        */
-        _disableEditor: function(disabled) {
-            var iframe, par, html, height;
-            if (!this.get('disabled_iframe')) {
-                iframe = this._createIframe();
-                iframe.set('id', 'disabled_' + this.get('iframe').get('id'));
-                iframe.setStyle('height', '100%');
-                iframe.setStyle('display', 'none');
-                iframe.setStyle('visibility', 'visible');
-                this.set('disabled_iframe', iframe);
-                par = this.get('iframe').get('parentNode');
-                par.appendChild(iframe.get('element'));
-            }
-            if (!iframe) {
-                iframe = this.get('disabled_iframe');
-            }
-            if (disabled) {
-                this._orgIframe = this.get('iframe');
-
-                if (this.toolbar) {
-                    this.toolbar.set('disabled', true);
-                }
-
-                html = this.getEditorHTML();
-                height = this.get('iframe').get('offsetHeight');
-                iframe.setStyle('visibility', '');
-                iframe.setStyle('position', '');
-                iframe.setStyle('top', '');
-                iframe.setStyle('left', '');
-                this._orgIframe.setStyle('visibility', 'hidden');
-                this._orgIframe.setStyle('position', 'absolute');
-                this._orgIframe.setStyle('top', '-99999px');
-                this._orgIframe.setStyle('left', '-99999px');
-                this.set('iframe', iframe);
-                this._setInitialContent(true);
-                
-                if (!this._mask) {
-                    this._mask = document.createElement('DIV');
-                    Dom.addClass(this._mask, 'yui-editor-masked');
-                    if (this.browser.ie) {
-                        this._mask.style.height = height + 'px';
-                    }
-                    this.get('iframe').get('parentNode').appendChild(this._mask);
-                }
-                this.on('editorContentReloaded', function() {
-                    this._getDoc().body._rteLoaded = false;
-                    this.setEditorHTML(html);
-                    iframe.setStyle('display', 'block');
-                    this.unsubscribeAll('editorContentReloaded');
-                });
-            } else {
-                if (this._mask) {
-                    this._mask.parentNode.removeChild(this._mask);
-                    this._mask = null;
-                    if (this.toolbar) {
-                        this.toolbar.set('disabled', false);
-                    }
-                    iframe.setStyle('visibility', 'hidden');
-                    iframe.setStyle('position', 'absolute');
-                    iframe.setStyle('top', '-99999px');
-                    iframe.setStyle('left', '-99999px');
-                    this._orgIframe.setStyle('visibility', '');
-                    this._orgIframe.setStyle('position', '');
-                    this._orgIframe.setStyle('top', '');
-                    this._orgIframe.setStyle('left', '');
-                    this.set('iframe', this._orgIframe);
-
-                    this.focus();
-                    var self = this;
-                    window.setTimeout(function() {
-                        self.nodeChange.call(self);
-                    }, 100);
-                }
-            }
-        },
-        /**
-        * @property SEP_DOMPATH
-        * @description The value to place in between the Dom path items
-        * @type String
-        */
-        SEP_DOMPATH: '<',
-        /**
-        * @property STR_LEAVE_EDITOR
-        * @description The accessibility string for the element after the iFrame
-        * @type String
-        */
-        STR_LEAVE_EDITOR: 'You have left the Rich Text Editor.',
-        /**
-        * @property STR_BEFORE_EDITOR
-        * @description The accessibility string for the element before the iFrame
-        * @type String
-        */
-        STR_BEFORE_EDITOR: 'This text field can contain stylized text and graphics. To cycle through all formatting options, use the keyboard shortcut Shift + Escape to place focus on the toolbar and navigate between options with your arrow keys. To exit this text editor use the Escape key and continue tabbing. <h4>Common formatting keyboard shortcuts:</h4><ul><li>Control Shift B sets text to bold</li> <li>Control Shift I sets text to italic</li> <li>Control Shift U underlines text</li> <li>Control Shift L adds an HTML link</li></ul>',
-        /**
-        * @property STR_TITLE
-        * @description The Title of the HTML document that is created in the iFrame
-        * @type String
-        */
-        STR_TITLE: 'Rich Text Area.',
-        /**
-        * @property STR_IMAGE_HERE
-        * @description The text to place in the URL textbox when using the blankimage.
-        * @type String
-        */
-        STR_IMAGE_HERE: 'Image URL Here',
-        /**
-        * @property STR_IMAGE_URL
-        * @description The label string for Image URL
-        * @type String
-        */
-        STR_IMAGE_URL: 'Image URL',        
-        /**
-        * @property STR_LINK_URL
-        * @description The label string for the Link URL.
-        * @type String
-        */
-        STR_LINK_URL: 'Link URL',
-        /**
-        * @protected
-        * @property STOP_EXEC_COMMAND
-        * @description Set to true when you want the default execCommand function to not process anything
-        * @type Boolean
-        */
-        STOP_EXEC_COMMAND: false,
-        /**
-        * @protected
-        * @property STOP_NODE_CHANGE
-        * @description Set to true when you want the default nodeChange function to not process anything
-        * @type Boolean
-        */
-        STOP_NODE_CHANGE: false,
-        /**
-        * @protected
-        * @property CLASS_NOEDIT
-        * @description CSS class applied to elements that are not editable.
-        * @type String
-        */
-        CLASS_NOEDIT: 'yui-noedit',
-        /**
-        * @protected
-        * @property CLASS_CONTAINER
-        * @description Default CSS class to apply to the editors container element
-        * @type String
-        */
-        CLASS_CONTAINER: 'yui-editor-container',
-        /**
-        * @protected
-        * @property CLASS_EDITABLE
-        * @description Default CSS class to apply to the editors iframe element
-        * @type String
-        */
-        CLASS_EDITABLE: 'yui-editor-editable',
-        /**
-        * @protected
-        * @property CLASS_EDITABLE_CONT
-        * @description Default CSS class to apply to the editors iframe's parent element
-        * @type String
-        */
-        CLASS_EDITABLE_CONT: 'yui-editor-editable-container',
-        /**
-        * @protected
-        * @property CLASS_PREFIX
-        * @description Default prefix for dynamically created class names
-        * @type String
-        */
-        CLASS_PREFIX: 'yui-editor',
-        /** 
-        * @property browser
-        * @description Standard browser detection
-        * @type Object
-        */
-        browser: function() {
-            var br = YAHOO.env.ua;
-            //Check for webkit3
-            if (br.webkit >= 420) {
-                br.webkit3 = br.webkit;
-            } else {
-                br.webkit3 = 0;
-            }
-            if (br.webkit >= 530) {
-                br.webkit4 = br.webkit;
-            } else {
-                br.webkit4 = 0;
-            }
-            br.mac = false;
-            //Check for Mac
-            if (navigator.userAgent.indexOf('Macintosh') !== -1) {
-                br.mac = true;
-            }
-
-            return br;
-        }(),
-        /** 
-        * @method init
-        * @description The Editor class' initialization method
-        */
-        init: function(p_oElement, p_oAttributes) {
-
-            if (!this._defaultToolbar) {
-                this._defaultToolbar = {
-                    collapse: true,
-                    titlebar: 'Text Editing Tools',
-                    draggable: false,
-                    buttons: [
-                        { group: 'fontstyle', label: 'Font Name and Size',
-                            buttons: [
-                                { type: 'select', label: 'Arial', value: 'fontname', disabled: true,
-                                    menu: [
-                                        { text: 'Arial', checked: true },
-                                        { text: 'Arial Black' },
-                                        { text: 'Comic Sans MS' },
-                                        { text: 'Courier New' },
-                                        { text: 'Lucida Console' },
-                                        { text: 'Tahoma' },
-                                        { text: 'Times New Roman' },
-                                        { text: 'Trebuchet MS' },
-                                        { text: 'Verdana' }
-                                    ]
-                                },
-                                { type: 'spin', label: '13', value: 'fontsize', range: [ 9, 75 ], disabled: true }
-                            ]
-                        },
-                        { type: 'separator' },
-                        { group: 'textstyle', label: 'Font Style',
-                            buttons: [
-                                { type: 'push', label: 'Bold CTRL + SHIFT + B', value: 'bold' },
-                                { type: 'push', label: 'Italic CTRL + SHIFT + I', value: 'italic' },
-                                { type: 'push', label: 'Underline CTRL + SHIFT + U', value: 'underline' },
-                                { type: 'push', label: 'Strike Through', value: 'strikethrough' },
-                                { type: 'separator' },
-                                { type: 'color', label: 'Font Color', value: 'forecolor', disabled: true },
-                                { type: 'color', label: 'Background Color', value: 'backcolor', disabled: true }
-                                
-                            ]
-                        },
-                        { type: 'separator' },
-                        { group: 'indentlist', label: 'Lists',
-                            buttons: [
-                                { type: 'push', label: 'Create an Unordered List', value: 'insertunorderedlist' },
-                                { type: 'push', label: 'Create an Ordered List', value: 'insertorderedlist' }
-                            ]
-                        },
-                        { type: 'separator' },
-                        { group: 'insertitem', label: 'Insert Item',
-                            buttons: [
-                                { type: 'push', label: 'HTML Link CTRL + SHIFT + L', value: 'createlink', disabled: true },
-                                { type: 'push', label: 'Insert Image', value: 'insertimage' }
-                            ]
-                        }
-                    ]
-                };
-            }
-
-            YAHOO.widget.SimpleEditor.superclass.init.call(this, p_oElement, p_oAttributes);
-            YAHOO.widget.EditorInfo._instances[this.get('id')] = this;
-
-
-            this.currentElement = [];
-            this.on('contentReady', function() {
-                this.DOMReady = true;
-                this.fireQueue();
-            }, this, true);
-
-        },
-        /**
-        * @method initAttributes
-        * @description Initializes all of the configuration attributes used to create 
-        * the editor.
-        * @param {Object} attr Object literal specifying a set of 
-        * configuration attributes used to create the editor.
-        */
-        initAttributes: function(attr) {
-            YAHOO.widget.SimpleEditor.superclass.initAttributes.call(this, attr);
-            var self = this;
-
-            /**
-            * @config setDesignMode
-            * @description Should the Editor set designMode on the document. Default: true.
-            * @default true
-            * @type Boolean
-            */
-            this.setAttributeConfig('setDesignMode', {
-                value: ((attr.setDesignMode === false) ? false : true)
-            });
-            /**
-            * @config nodeChangeDelay
-            * @description Do we wrap the nodeChange method in a timeout for performance. Default: true.
-            * @default true
-            * @type Boolean
-            */
-            this.setAttributeConfig('nodeChangeDelay', {
-                value: ((attr.nodeChangeDelay === false) ? false : true)
-            });
-            /**
-            * @config maxUndo
-            * @description The max number of undo levels to store.
-            * @default 30
-            * @type Number
-            */
-            this.setAttributeConfig('maxUndo', {
-                writeOnce: true,
-                value: attr.maxUndo || 30
-            });
-
-            /**
-            * @config ptags
-            * @description If true, the editor uses &lt;P&gt; tags instead of &lt;br&gt; tags. (Use Shift + Enter to get a &lt;br&gt;)
-            * @default false
-            * @type Boolean
-            */
-            this.setAttributeConfig('ptags', {
-                writeOnce: true,
-                value: attr.ptags || false
-            });
-            /**
-            * @config insert
-            * @description If true, selection is not required for: fontname, fontsize, forecolor, backcolor.
-            * @default false
-            * @type Boolean
-            */
-            this.setAttributeConfig('insert', {
-                writeOnce: true,
-                value: attr.insert || false,
-                method: function(insert) {
-                    if (insert) {
-                        var buttons = {
-                            fontname: true,
-                            fontsize: true,
-                            forecolor: true,
-                            backcolor: true
-                        };
-                        var tmp = this._defaultToolbar.buttons;
-                        for (var i = 0; i < tmp.length; i++) {
-                            if (tmp[i].buttons) {
-                                for (var a = 0; a < tmp[i].buttons.length; a++) {
-                                    if (tmp[i].buttons[a].value) {
-                                        if (buttons[tmp[i].buttons[a].value]) {
-                                            delete tmp[i].buttons[a].disabled;
-                                        }
-                                    }
-                                }
-                            }
-                        }
-                    }
-                }
-            });
-            /**
-            * @config container
-            * @description Used when dynamically creating the Editor from Javascript with no default textarea.
-            * We will create one and place it in this container. If no container is passed we will append to document.body.
-            * @default false
-            * @type HTMLElement
-            */
-            this.setAttributeConfig('container', {
-                writeOnce: true,
-                value: attr.container || false
-            });
-            /**
-            * @config plainText
-            * @description Process the inital textarea data as if it was plain text. Accounting for spaces, tabs and line feeds.
-            * @default false
-            * @type Boolean
-            */
-            this.setAttributeConfig('plainText', {
-                writeOnce: true,
-                value: attr.plainText || false
-            });
-            /**
-            * @private
-            * @config iframe
-            * @description Internal config for holding the iframe element.
-            * @default null
-            * @type HTMLElement
-            */
-            this.setAttributeConfig('iframe', {
-                value: null
-            });
-            /**
-            * @private
-            * @config disabled_iframe
-            * @description Internal config for holding the iframe element used when disabling the Editor.
-            * @default null
-            * @type HTMLElement
-            */
-            this.setAttributeConfig('disabled_iframe', {
-                value: null
-            });
-            /**
-            * @private
-            * @depreciated - No longer used, should use this.get('element')
-            * @config textarea
-            * @description Internal config for holding the textarea element (replaced with element).
-            * @default null
-            * @type HTMLElement
-            */
-            this.setAttributeConfig('textarea', {
-                value: null,
-                writeOnce: true
-            });
-            /**
-            * @config nodeChangeThreshold
-            * @description The number of seconds that need to be in between nodeChange processing
-            * @default 3
-            * @type Number
-            */            
-            this.setAttributeConfig('nodeChangeThreshold', {
-                value: attr.nodeChangeThreshold || 3,
-                validator: YAHOO.lang.isNumber
-            });
-            /**
-            * @config allowNoEdit
-            * @description Should the editor check for non-edit fields. It should be noted that this technique is not perfect. If the user does the right things, they will still be able to make changes.
-            * Such as highlighting an element below and above the content and hitting a toolbar button or a shortcut key.
-            * @default false
-            * @type Boolean
-            */            
-            this.setAttributeConfig('allowNoEdit', {
-                value: attr.allowNoEdit || false,
-                validator: YAHOO.lang.isBoolean
-            });
-            /**
-            * @config limitCommands
-            * @description Should the Editor limit the allowed execCommands to the ones available in the toolbar. If true, then execCommand and keyboard shortcuts will fail if they are not defined in the toolbar.
-            * @default false
-            * @type Boolean
-            */            
-            this.setAttributeConfig('limitCommands', {
-                value: attr.limitCommands || false,
-                validator: YAHOO.lang.isBoolean
-            });
-            /**
-            * @config element_cont
-            * @description Internal config for the editors container
-            * @default false
-            * @type HTMLElement
-            */
-            this.setAttributeConfig('element_cont', {
-                value: attr.element_cont
-            });
-            /**
-            * @private
-            * @config editor_wrapper
-            * @description The outter wrapper for the entire editor.
-            * @default null
-            * @type HTMLElement
-            */
-            this.setAttributeConfig('editor_wrapper', {
-                value: attr.editor_wrapper || null,
-                writeOnce: true
-            });
-            /**
-            * @attribute height
-            * @description The height of the editor iframe container, not including the toolbar..
-            * @default Best guessed size of the textarea, for best results use CSS to style the height of the textarea or pass it in as an argument
-            * @type String
-            */
-            this.setAttributeConfig('height', {
-                value: attr.height || Dom.getStyle(self.get('element'), 'height'),
-                method: function(height) {
-                    if (this._rendered) {
-                        //We have been rendered, change the height
-                        if (this.get('animate')) {
-                            var anim = new YAHOO.util.Anim(this.get('iframe').get('parentNode'), {
-                                height: {
-                                    to: parseInt(height, 10)
-                                }
-                            }, 0.5);
-                            anim.animate();
-                        } else {
-                            Dom.setStyle(this.get('iframe').get('parentNode'), 'height', height);
-                        }
-                    }
-                }
-            });
-            /**
-            * @config autoHeight
-            * @description Remove the scrollbars from the edit area and resize it to fit the content. It will not go any lower than the current config height.
-            * @default false
-            * @type Boolean || Number
-            */
-            this.setAttributeConfig('autoHeight', {
-                value: attr.autoHeight || false,
-                method: function(a) {
-                    if (a) {
-                        if (this.get('iframe')) {
-                            this.get('iframe').get('element').setAttribute('scrolling', 'no');
-                        }
-                        this.on('afterNodeChange', this._handleAutoHeight, this, true);
-                        this.on('editorKeyDown', this._handleAutoHeight, this, true);
-                        this.on('editorKeyPress', this._handleAutoHeight, this, true);
-                    } else {
-                        if (this.get('iframe')) {
-                            this.get('iframe').get('element').setAttribute('scrolling', 'auto');
-                        }
-                        this.unsubscribe('afterNodeChange', this._handleAutoHeight);
-                        this.unsubscribe('editorKeyDown', this._handleAutoHeight);
-                        this.unsubscribe('editorKeyPress', this._handleAutoHeight);
-                    }
-                }
-            });
-            /**
-            * @attribute width
-            * @description The width of the editor container.
-            * @default Best guessed size of the textarea, for best results use CSS to style the width of the textarea or pass it in as an argument
-            * @type String
-            */            
-            this.setAttributeConfig('width', {
-                value: attr.width || Dom.getStyle(this.get('element'), 'width'),
-                method: function(width) {
-                    if (this._rendered) {
-                        //We have been rendered, change the width
-                        if (this.get('animate')) {
-                            var anim = new YAHOO.util.Anim(this.get('element_cont').get('element'), {
-                                width: {
-                                    to: parseInt(width, 10)
-                                }
-                            }, 0.5);
-                            anim.animate();
-                        } else {
-                            this.get('element_cont').setStyle('width', width);
-                        }
-                    }
-                }
-            });
-                        
-            /**
-            * @attribute blankimage
-            * @description The URL for the image placeholder to put in when inserting an image.
-            * @default The yahooapis.com address for the current release + 'assets/blankimage.png'
-            * @type String
-            */            
-            this.setAttributeConfig('blankimage', {
-                value: attr.blankimage || this._getBlankImage()
-            });
-            /**
-            * @attribute css
-            * @description The Base CSS used to format the content of the editor
-            * @default <code><pre>html {
-                height: 95%;
-            }
-            body {
-                height: 100%;
-                padding: 7px; background-color: #fff; font:13px/1.22 arial,helvetica,clean,sans-serif;*font-size:small;*font:x-small;
-            }
-            a {
-                color: blue;
-                text-decoration: underline;
-                cursor: pointer;
-            }
-            .warning-localfile {
-                border-bottom: 1px dashed red !important;
-            }
-            .yui-busy {
-                cursor: wait !important;
-            }
-            img.selected { //Safari image selection
-                border: 2px dotted #808080;
-            }
-            img {
-                cursor: pointer !important;
-                border: none;
-            }
-            </pre></code>
-            * @type String
-            */            
-            this.setAttributeConfig('css', {
-                value: attr.css || this._defaultCSS,
-                writeOnce: true
-            });
-            /**
-            * @attribute html
-            * @description The default HTML to be written to the iframe document before the contents are loaded (Note that the DOCTYPE attr will be added at render item)
-            * @default This HTML requires a few things if you are to override:
-                <p><code>{TITLE}, {CSS}, {HIDDEN_CSS}, {EXTRA_CSS}</code> and <code>{CONTENT}</code> need to be there, they are passed to YAHOO.lang.substitute to be replace with other strings.<p>
-                <p><code>onload="document.body._rteLoaded = true;"</code> : the onload statement must be there or the editor will not finish loading.</p>
-                <code>
-                <pre>
-                &lt;html&gt;
-                    &lt;head&gt;
-                        &lt;title&gt;{TITLE}&lt;/title&gt;
-                        &lt;meta http-equiv="Content-Type" content="text/html; charset=UTF-8" /&gt;
-                        &lt;style&gt;
-                        {CSS}
-                        &lt;/style&gt;
-                        &lt;style&gt;
-                        {HIDDEN_CSS}
-                        &lt;/style&gt;
-                        &lt;style&gt;
-                        {EXTRA_CSS}
-                        &lt;/style&gt;
-                    &lt;/head&gt;
-                &lt;body onload="document.body._rteLoaded = true;"&gt;
-                {CONTENT}
-                &lt;/body&gt;
-                &lt;/html&gt;
-                </pre>
-                </code>
-            * @type String
-            */            
-            this.setAttributeConfig('html', {
-                value: attr.html || '<html><head><title>{TITLE}</title><meta http-equiv="Content-Type" content="text/html; charset=UTF-8" /><base href="' + this._baseHREF + '"><style>{CSS}</style><style>{HIDDEN_CSS}</style><style>{EXTRA_CSS}</style></head><body onload="document.body._rteLoaded = true;">{CONTENT}</body></html>',
-                writeOnce: true
-            });
-
-            /**
-            * @attribute extracss
-            * @description Extra user defined css to load after the default SimpleEditor CSS
-            * @default ''
-            * @type String
-            */            
-            this.setAttributeConfig('extracss', {
-                value: attr.extracss || '',
-                writeOnce: true
-            });
-
-            /**
-            * @attribute handleSubmit
-            * @description Config handles if the editor will attach itself to the textareas parent form's submit handler.
-            If it is set to true, the editor will attempt to attach a submit listener to the textareas parent form.
-            Then it will trigger the editors save handler and place the new content back into the text area before the form is submitted.
-            * @default false
-            * @type Boolean
-            */            
-            this.setAttributeConfig('handleSubmit', {
-                value: attr.handleSubmit || false,
-                method: function(exec) {
-                    if (this.get('element').form) {
-                        if (!this._formButtons) {
-                            this._formButtons = [];
-                        }
-                        if (exec) {
-                            Event.on(this.get('element').form, 'submit', this._handleFormSubmit, this, true);
-                            var i = this.get('element').form.getElementsByTagName('input');
-                            for (var s = 0; s < i.length; s++) {
-                                var type = i[s].getAttribute('type');
-                                if (type && (type.toLowerCase() == 'submit')) {
-                                    Event.on(i[s], 'click', this._handleFormButtonClick, this, true);
-                                    this._formButtons[this._formButtons.length] = i[s];
-                                }
-                            }
-                        } else {
-                            Event.removeListener(this.get('element').form, 'submit', this._handleFormSubmit);
-                            if (this._formButtons) {
-                                Event.removeListener(this._formButtons, 'click', this._handleFormButtonClick);
-                            }
-                        }
-                    }
-                }
-            });
-            /**
-            * @attribute disabled
-            * @description This will toggle the editor's disabled state. When the editor is disabled, designMode is turned off and a mask is placed over the iframe so no interaction can take place.
-            All Toolbar buttons are also disabled so they cannot be used.
-            * @default false
-            * @type Boolean
-            */
-
-            this.setAttributeConfig('disabled', {
-                value: false,
-                method: function(disabled) {
-                    if (this._rendered) {
-                        this._disableEditor(disabled);
-                    }
-                }
-            });
-            /**
-            * @config saveEl
-            * @description When save HTML is called, this element will be updated as well as the source of data.
-            * @default element
-            * @type HTMLElement
-            */
-            this.setAttributeConfig('saveEl', {
-                value: this.get('element')
-            });
-            /**
-            * @config toolbar_cont
-            * @description Internal config for the toolbars container
-            * @default false
-            * @type Boolean
-            */
-            this.setAttributeConfig('toolbar_cont', {
-                value: null,
-                writeOnce: true
-            });
-            /**
-            * @attribute toolbar
-            * @description The default toolbar config.
-            * @type Object
-            */            
-            this.setAttributeConfig('toolbar', {
-                value: attr.toolbar || this._defaultToolbar,
-                writeOnce: true,
-                method: function(toolbar) {
-                    if (!toolbar.buttonType) {
-                        toolbar.buttonType = this._defaultToolbar.buttonType;
-                    }
-                    this._defaultToolbar = toolbar;
-                }
-            });
-            /**
-            * @attribute animate
-            * @description Should the editor animate window movements
-            * @default false unless Animation is found, then true
-            * @type Boolean
-            */            
-            this.setAttributeConfig('animate', {
-                value: ((attr.animate) ? ((YAHOO.util.Anim) ? true : false) : false),
-                validator: function(value) {
-                    var ret = true;
-                    if (!YAHOO.util.Anim) {
-                        ret = false;
-                    }
-                    return ret;
-                }
-            });
-            /**
-            * @config panel
-            * @description A reference to the panel we are using for windows.
-            * @default false
-            * @type Boolean
-            */            
-            this.setAttributeConfig('panel', {
-                value: null,
-                writeOnce: true,
-                validator: function(value) {
-                    var ret = true;
-                    if (!YAHOO.widget.Overlay) {
-                        ret = false;
-                    }
-                    return ret;
-                }               
-            });
-            /**
-            * @attribute focusAtStart
-            * @description Should we focus the window when the content is ready?
-            * @default false
-            * @type Boolean
-            */            
-            this.setAttributeConfig('focusAtStart', {
-                value: attr.focusAtStart || false,
-                writeOnce: true,
-                method: function(fs) {
-                    if (fs) {
-                        this.on('editorContentLoaded', function() {
-                            var self = this;
-                            setTimeout(function() {
-                                self.focus.call(self);
-                                self.editorDirty = false;
-                            }, 400);
-                        }, this, true);
-                    }
-                }
-            });
-            /**
-            * @attribute dompath
-            * @description Toggle the display of the current Dom path below the editor
-            * @default false
-            * @type Boolean
-            */            
-            this.setAttributeConfig('dompath', {
-                value: attr.dompath || false,
-                method: function(dompath) {
-                    if (dompath && !this.dompath) {
-                        this.dompath = document.createElement('DIV');
-                        this.dompath.id = this.get('id') + '_dompath';
-                        Dom.addClass(this.dompath, 'dompath');
-                        this.get('element_cont').get('firstChild').appendChild(this.dompath);
-                        if (this.get('iframe')) {
-                            this._writeDomPath();
-                        }
-                    } else if (!dompath && this.dompath) {
-                        this.dompath.parentNode.removeChild(this.dompath);
-                        this.dompath = null;
-                    }
-                }
-            });
-            /**
-            * @attribute markup
-            * @description Should we try to adjust the markup for the following types: semantic, css, default or xhtml
-            * @default "semantic"
-            * @type String
-            */            
-            this.setAttributeConfig('markup', {
-                value: attr.markup || 'semantic',
-                validator: function(markup) {
-                    switch (markup.toLowerCase()) {
-                        case 'semantic':
-                        case 'css':
-                        case 'default':
-                        case 'xhtml':
-                        return true;
-                    }
-                    return false;
-                }
-            });
-            /**
-            * @attribute removeLineBreaks
-            * @description Should we remove linebreaks and extra spaces on cleanup
-            * @default false
-            * @type Boolean
-            */            
-            this.setAttributeConfig('removeLineBreaks', {
-                value: attr.removeLineBreaks || false,
-                validator: YAHOO.lang.isBoolean
-            });
-            
-            /**
-            * @config drag
-            * @description Set this config to make the Editor draggable, pass 'proxy' to make use YAHOO.util.DDProxy.
-            * @type {Boolean/String}
-            */
-            this.setAttributeConfig('drag', {
-                writeOnce: true,
-                value: attr.drag || false
-            });
-
-            /**
-            * @config resize
-            * @description Set this to true to make the Editor Resizable with YAHOO.util.Resize. The default config is available: myEditor._resizeConfig
-            * Animation will be ignored while performing this resize to allow for the dynamic change in size of the toolbar.
-            * @type Boolean
-            */
-            this.setAttributeConfig('resize', {
-                writeOnce: true,
-                value: attr.resize || false
-            });
-
-            /**
-            * @config filterWord
-            * @description Attempt to filter out MS Word HTML from the Editor's output.
-            * @type Boolean
-            */
-            this.setAttributeConfig('filterWord', {
-                value: attr.filterWord || false,
-                validator: YAHOO.lang.isBoolean
-            });
-
-        },
-        /**
-        * @private
-        * @method _getBlankImage
-        * @description Retrieves the full url of the image to use as the blank image.
-        * @return {String} The URL to the blank image
-        */
-        _getBlankImage: function() {
-            if (!this.DOMReady) {
-                this._queue[this._queue.length] = ['_getBlankImage', arguments];
-                return '';
-            }
-            var img = '';
-            if (!this._blankImageLoaded) {
-                if (YAHOO.widget.EditorInfo.blankImage) {
-                    this.set('blankimage', YAHOO.widget.EditorInfo.blankImage);
-                    this._blankImageLoaded = true;
-                } else {
-                    var div = document.createElement('div');
-                    div.style.position = 'absolute';
-                    div.style.top = '-9999px';
-                    div.style.left = '-9999px';
-                    div.className = this.CLASS_PREFIX + '-blankimage';
-                    document.body.appendChild(div);
-                    img = YAHOO.util.Dom.getStyle(div, 'background-image');
-                    img = img.replace('url(', '').replace(')', '').replace(/"/g, '');
-                    //Adobe AIR Code
-                    img = img.replace('app:/', '');             
-                    this.set('blankimage', img);
-                    this._blankImageLoaded = true;
-                    div.parentNode.removeChild(div);
-                    YAHOO.widget.EditorInfo.blankImage = img;
-                }
-            } else {
-                img = this.get('blankimage');
-            }
-            return img;
-        },
-        /**
-        * @private
-        * @method _handleAutoHeight
-        * @description Handles resizing the editor's height based on the content
-        */
-        _handleAutoHeight: function() {
-            var doc = this._getDoc(),
-                body = doc.body,
-                docEl = doc.documentElement;
-
-            var height = parseInt(Dom.getStyle(this.get('editor_wrapper'), 'height'), 10);
-            var newHeight = body.scrollHeight;
-            if (this.browser.webkit) {
-                newHeight = docEl.scrollHeight;
-            }
-            if (newHeight < parseInt(this.get('height'), 10)) {
-                newHeight = parseInt(this.get('height'), 10);
-            }
-            if ((height != newHeight) && (newHeight >= parseInt(this.get('height'), 10))) {   
-                var anim = this.get('animate');
-                this.set('animate', false);
-                this.set('height', newHeight + 'px');
-                this.set('animate', anim);
-                if (this.browser.ie) {
-                    //Internet Explorer needs this
-                    this.get('iframe').setStyle('height', '99%');
-                    this.get('iframe').setStyle('zoom', '1');
-                    var self = this;
-                    window.setTimeout(function() {
-                        self.get('iframe').setStyle('height', '100%');
-                    }, 1);
-                }
-            }
-        },
-        /**
-        * @private
-        * @property _formButtons
-        * @description Array of buttons that are in the Editor's parent form (for handleSubmit)
-        * @type Array
-        */
-        _formButtons: null,
-        /**
-        * @private
-        * @property _formButtonClicked
-        * @description The form button that was clicked to submit the form.
-        * @type HTMLElement
-        */
-        _formButtonClicked: null,
-        /**
-        * @private
-        * @method _handleFormButtonClick
-        * @description The click listener assigned to each submit button in the Editor's parent form.
-        * @param {Event} ev The click event
-        */
-        _handleFormButtonClick: function(ev) {
-            var tar = Event.getTarget(ev);
-            this._formButtonClicked = tar;
-        },
-        /**
-        * @private
-        * @method _handleFormSubmit
-        * @description Handles the form submission.
-        * @param {Object} ev The Form Submit Event
-        */
-        _handleFormSubmit: function(ev) {
-            this.saveHTML();
-
-            var form = this.get('element').form,
-                tar = this._formButtonClicked || false;
-
-            Event.removeListener(form, 'submit', this._handleFormSubmit);
-            if (YAHOO.env.ua.ie) {
-                //form.fireEvent("onsubmit");
-                if (tar && !tar.disabled) {
-                    tar.click();
-                }
-            } else {  // Gecko, Opera, and Safari
-                if (tar && !tar.disabled) {
-                    tar.click();
-                }
-                var oEvent = document.createEvent("HTMLEvents");
-                oEvent.initEvent("submit", true, true);
-                form.dispatchEvent(oEvent);
-                if (YAHOO.env.ua.webkit) {
-                    if (YAHOO.lang.isFunction(form.submit)) {
-                        form.submit();
-                    }
-                }
-            }
-            //2.6.0
-            //Removed this, not need since removing Safari 2.x
-            //Event.stopEvent(ev);
-        },
-        /**
-        * @private
-        * @method _handleFontSize
-        * @description Handles the font size button in the toolbar.
-        * @param {Object} o Object returned from Toolbar's buttonClick Event
-        */
-        _handleFontSize: function(o) {
-            var button = this.toolbar.getButtonById(o.button.id);
-            var value = button.get('label') + 'px';
-            this.execCommand('fontsize', value);
-            return false;
-        },
-        /**
-        * @private
-        * @description Handles the colorpicker buttons in the toolbar.
-        * @param {Object} o Object returned from Toolbar's buttonClick Event
-        */
-        _handleColorPicker: function(o) {
-            var cmd = o.button;
-            var value = '#' + o.color;
-            if ((cmd == 'forecolor') || (cmd == 'backcolor')) {
-                this.execCommand(cmd, value);
-            }
-        },
-        /**
-        * @private
-        * @method _handleAlign
-        * @description Handles the alignment buttons in the toolbar.
-        * @param {Object} o Object returned from Toolbar's buttonClick Event
-        */
-        _handleAlign: function(o) {
-            var cmd = null;
-            for (var i = 0; i < o.button.menu.length; i++) {
-                if (o.button.menu[i].value == o.button.value) {
-                    cmd = o.button.menu[i].value;
-                }
-            }
-            var value = this._getSelection();
-
-            this.execCommand(cmd, value);
-            return false;
-        },
-        /**
-        * @private
-        * @method _handleAfterNodeChange
-        * @description Fires after a nodeChange happens to setup the things that where reset on the node change (button state).
-        */
-        _handleAfterNodeChange: function() {
-            var path = this._getDomPath(),
-                elm = null,
-                family = null,
-                fontsize = null,
-                validFont = false,
-                fn_button = this.toolbar.getButtonByValue('fontname'),
-                fs_button = this.toolbar.getButtonByValue('fontsize'),
-                hd_button = this.toolbar.getButtonByValue('heading');
-
-            for (var i = 0; i < path.length; i++) {
-                elm = path[i];
-
-                var tag = elm.tagName.toLowerCase();
-
-
-                if (elm.getAttribute('tag')) {
-                    tag = elm.getAttribute('tag');
-                }
-
-                family = elm.getAttribute('face');
-                if (Dom.getStyle(elm, 'font-family')) {
-                    family = Dom.getStyle(elm, 'font-family');
-                    //Adobe AIR Code
-                    family = family.replace(/'/g, '');                    
-                }
-
-                if (tag.substring(0, 1) == 'h') {
-                    if (hd_button) {
-                        for (var h = 0; h < hd_button._configs.menu.value.length; h++) {
-                            if (hd_button._configs.menu.value[h].value.toLowerCase() == tag) {
-                                hd_button.set('label', hd_button._configs.menu.value[h].text);
-                            }
-                        }
-                        this._updateMenuChecked('heading', tag);
-                    }
-                }
-            }
-
-            if (fn_button) {
-                for (var b = 0; b < fn_button._configs.menu.value.length; b++) {
-                    if (family && fn_button._configs.menu.value[b].text.toLowerCase() == family.toLowerCase()) {
-                        validFont = true;
-                        family = fn_button._configs.menu.value[b].text; //Put the proper menu name in the button
-                    }
-                }
-                if (!validFont) {
-                    family = fn_button._configs.label._initialConfig.value;
-                }
-                var familyLabel = '<span class="yui-toolbar-fontname-' + this._cleanClassName(family) + '">' + family + '</span>';
-                if (fn_button.get('label') != familyLabel) {
-                    fn_button.set('label', familyLabel);
-                    this._updateMenuChecked('fontname', family);
-                }
-            }
-
-            if (fs_button) {
-                fontsize = parseInt(Dom.getStyle(elm, 'fontSize'), 10);
-                if ((fontsize === null) || isNaN(fontsize)) {
-                    fontsize = fs_button._configs.label._initialConfig.value;
-                }
-                fs_button.set('label', ''+fontsize);
-            }
-            
-            if (!this._isElement(elm, 'body') && !this._isElement(elm, 'img')) {
-                this.toolbar.enableButton(fn_button);
-                this.toolbar.enableButton(fs_button);
-                this.toolbar.enableButton('forecolor');
-                this.toolbar.enableButton('backcolor');
-            }
-            if (this._isElement(elm, 'img')) {
-                if (YAHOO.widget.Overlay) {
-                    this.toolbar.enableButton('createlink');
-                }
-            }
-            if (this._hasParent(elm, 'blockquote')) {
-                this.toolbar.selectButton('indent');
-                this.toolbar.disableButton('indent');
-                this.toolbar.enableButton('outdent');
-            }
-            if (this._hasParent(elm, 'ol') || this._hasParent(elm, 'ul')) {
-                this.toolbar.disableButton('indent');
-            }
-            this._lastButton = null;
-            
-        },
-        /**
-        * @private
-        * @method _handleInsertImageClick
-        * @description Opens the Image Properties Window when the insert Image button is clicked or an Image is Double Clicked.
-        */
-        _handleInsertImageClick: function() {
-            if (this.get('limitCommands')) {
-                if (!this.toolbar.getButtonByValue('insertimage')) {
-                    return false;
-                }
-            }
-        
-            this.toolbar.set('disabled', true); //Disable the toolbar when the prompt is showing
-            var _handleAEC = function() {
-                var el = this.currentElement[0],
-                    src = 'http://';
-                if (!el) {
-                    el = this._getSelectedElement();
-                }
-                if (el) {
-                    if (el.getAttribute('src')) {
-                        src = el.getAttribute('src', 2);
-                        if (src.indexOf(this.get('blankimage')) != -1) {
-                            src = this.STR_IMAGE_HERE;
-                        }
-                    }
-                }
-                var str = prompt(this.STR_IMAGE_URL + ': ', src);
-                if ((str !== '') && (str !== null)) {
-                    el.setAttribute('src', str);
-                } else if (str === '') {
-                    el.parentNode.removeChild(el);
-                    this.currentElement = [];
-                    this.nodeChange();
-                } else if ((str === null)) {
-                    src = el.getAttribute('src', 2);
-                    if (src.indexOf(this.get('blankimage')) != -1) {
-                        el.parentNode.removeChild(el);
-                        this.currentElement = [];
-                        this.nodeChange();
-                    }
-                }
-                this.closeWindow();
-                this.toolbar.set('disabled', false);
-                this.unsubscribe('afterExecCommand', _handleAEC, this, true);
-            };
-            this.on('afterExecCommand', _handleAEC, this, true);
-        },
-        /**
-        * @private
-        * @method _handleInsertImageWindowClose
-        * @description Handles the closing of the Image Properties Window.
-        */
-        _handleInsertImageWindowClose: function() {
-            this.nodeChange();
-        },
-        /**
-        * @private
-        * @method _isLocalFile
-        * @param {String} url THe url/string to check
-        * @description Checks to see if a string (href or img src) is possibly a local file reference..
-        */
-        _isLocalFile: function(url) {
-            if ((url) && (url !== '') && ((url.indexOf('file:/') != -1) || (url.indexOf(':\\') != -1))) {
-                return true;
-            }
-            return false;
-        },
-        /**
-        * @private
-        * @method _handleCreateLinkClick
-        * @description Handles the opening of the Link Properties Window when the Create Link button is clicked or an href is doubleclicked.
-        */
-        _handleCreateLinkClick: function() {
-            if (this.get('limitCommands')) {
-                if (!this.toolbar.getButtonByValue('createlink')) {
-                    return false;
-                }
-            }
-        
-            this.toolbar.set('disabled', true); //Disable the toolbar when the prompt is showing
-
-            var _handleAEC = function() {
-                var el = this.currentElement[0],
-                    url = '';
-
-                if (el) {
-                    if (el.getAttribute('href', 2) !== null) {
-                        url = el.getAttribute('href', 2);
-                    }
-                }
-                var str = prompt(this.STR_LINK_URL + ': ', url);
-                if ((str !== '') && (str !== null)) {
-                    var urlValue = str;
-                    if ((urlValue.indexOf(':/'+'/') == -1) && (urlValue.substring(0,1) != '/') && (urlValue.substring(0, 6).toLowerCase() != 'mailto')) {
-                        if ((urlValue.indexOf('@') != -1) && (urlValue.substring(0, 6).toLowerCase() != 'mailto')) {
-                            //Found an @ sign, prefix with mailto:
-                            urlValue = 'mailto:' + urlValue;
-                        } else {
-                            /* :// not found adding */
-                            if (urlValue.substring(0, 1) != '#') {
-                                //urlValue = 'http:/'+'/' + urlValue;
-                            }
-                        }
-                    }
-                    el.setAttribute('href', urlValue);
-                } else if (str !== null) {
-                    var _span = this._getDoc().createElement('span');
-                    _span.innerHTML = el.innerHTML;
-                    Dom.addClass(_span, 'yui-non');
-                    el.parentNode.replaceChild(_span, el);
-                }
-                this.closeWindow();
-                this.toolbar.set('disabled', false);
-                this.unsubscribe('afterExecCommand', _handleAEC, this, true);
-            };
-            this.on('afterExecCommand', _handleAEC, this);
-
-        },
-        /**
-        * @private
-        * @method _handleCreateLinkWindowClose
-        * @description Handles the closing of the Link Properties Window.
-        */
-        _handleCreateLinkWindowClose: function() {
-            this.nodeChange();
-            this.currentElement = [];
-        },
-        /**
-        * @method render
-        * @description Calls the private method _render in a setTimeout to allow for other things on the page to continue to load.
-        */
-        render: function() {
-            if (this._rendered) {
-                return false;
-            }
-            if (!this.DOMReady) {
-                this._queue[this._queue.length] = ['render', arguments];
-                return false;
-            }
-            if (this.get('element')) {
-                if (this.get('element').tagName) {
-                    this._textarea = true;
-                    if (this.get('element').tagName.toLowerCase() !== 'textarea') {
-                        this._textarea = false;
-                    }
-                } else {
-                    return false;
-                }
-            } else {
-                return false;
-            }
-            this._rendered = true;
-            var self = this;
-            window.setTimeout(function() {
-                self._render.call(self);
-            }, 4);
-        },
-        /**
-        * @private
-        * @method _render
-        * @description Causes the toolbar and the editor to render and replace the textarea.
-        */
-        _render: function() {
-            var self = this;
-            this.set('textarea', this.get('element'));
-
-            this.get('element_cont').setStyle('display', 'none');
-            this.get('element_cont').addClass(this.CLASS_CONTAINER);
-            
-            this.set('iframe', this._createIframe());
-
-            window.setTimeout(function() {
-                self._setInitialContent.call(self);
-            }, 10);
-
-            this.get('editor_wrapper').appendChild(this.get('iframe').get('element'));
-
-            if (this.get('disabled')) {
-                this._disableEditor(true);
-            }
-
-            var tbarConf = this.get('toolbar');
-            //Create Toolbar instance
-            if (tbarConf instanceof Toolbar) {
-                this.toolbar = tbarConf;
-                //Set the toolbar to disabled until content is loaded
-                this.toolbar.set('disabled', true);
-            } else {
-                //Set the toolbar to disabled until content is loaded
-                tbarConf.disabled = true;
-                this.toolbar = new Toolbar(this.get('toolbar_cont'), tbarConf);
-            }
-
-            this.fireEvent('toolbarLoaded', { type: 'toolbarLoaded', target: this.toolbar });
-
-            
-            this.toolbar.on('toolbarCollapsed', function() {
-                if (this.currentWindow) {
-                    this.moveWindow();
-                }
-            }, this, true);
-            this.toolbar.on('toolbarExpanded', function() {
-                if (this.currentWindow) {
-                    this.moveWindow();
-                }
-            }, this, true);
-            this.toolbar.on('fontsizeClick', this._handleFontSize, this, true);
-            
-            this.toolbar.on('colorPickerClicked', function(o) {
-                this._handleColorPicker(o);
-                return false; //Stop the buttonClick event
-            }, this, true);
-
-            this.toolbar.on('alignClick', this._handleAlign, this, true);
-            this.on('afterNodeChange', this._handleAfterNodeChange, this, true);
-            this.toolbar.on('insertimageClick', this._handleInsertImageClick, this, true);
-            this.on('windowinsertimageClose', this._handleInsertImageWindowClose, this, true);
-            this.toolbar.on('createlinkClick', this._handleCreateLinkClick, this, true);
-            this.on('windowcreatelinkClose', this._handleCreateLinkWindowClose, this, true);
-            
-
-            //Replace Textarea with editable area
-            this.get('parentNode').replaceChild(this.get('element_cont').get('element'), this.get('element'));
-
-            
-            this.setStyle('visibility', 'hidden');
-            this.setStyle('position', 'absolute');
-            this.setStyle('top', '-9999px');
-            this.setStyle('left', '-9999px');
-            this.get('element_cont').appendChild(this.get('element'));
-            this.get('element_cont').setStyle('display', 'block');
-
-
-            Dom.addClass(this.get('iframe').get('parentNode'), this.CLASS_EDITABLE_CONT);
-            this.get('iframe').addClass(this.CLASS_EDITABLE);
-
-            //Set height and width of editor container
-            this.get('element_cont').setStyle('width', this.get('width'));
-            Dom.setStyle(this.get('iframe').get('parentNode'), 'height', this.get('height'));
-
-            this.get('iframe').setStyle('width', '100%'); //WIDTH
-            this.get('iframe').setStyle('height', '100%');
-
-            this._setupDD();
-
-            window.setTimeout(function() {
-                self._setupAfterElement.call(self);
-            }, 0);
-            this.fireEvent('afterRender', { type: 'afterRender', target: this });
-        },
-        /**
-        * @method execCommand
-        * @param {String} action The "execCommand" action to try to execute (Example: bold, insertimage, inserthtml)
-        * @param {String} value (optional) The value for a given action such as action: fontname value: 'Verdana'
-        * @description This method attempts to try and level the differences in the various browsers and their support for execCommand actions
-        */
-        execCommand: function(action, value) {
-            var beforeExec = this.fireEvent('beforeExecCommand', { type: 'beforeExecCommand', target: this, args: arguments });
-            if ((beforeExec === false) || (this.STOP_EXEC_COMMAND)) {
-                this.STOP_EXEC_COMMAND = false;
-                return false;
-            }
-            this._lastCommand = action;
-            this._setMarkupType(action);
-            if (this.browser.ie) {
-                this._getWindow().focus();
-            }
-            var exec = true;
-            
-            if (this.get('limitCommands')) {
-                if (!this.toolbar.getButtonByValue(action)) {
-                    exec = false;
-                }
-            }
-
-            this.editorDirty = true;
-            
-            if ((typeof this['cmd_' + action.toLowerCase()] == 'function') && exec) {
-                var retValue = this['cmd_' + action.toLowerCase()](value);
-                exec = retValue[0];
-                if (retValue[1]) {
-                    action = retValue[1];
-                }
-                if (retValue[2]) {
-                    value = retValue[2];
-                }
-            }
-            if (exec) {
-                try {
-                    this._getDoc().execCommand(action, false, value);
-                } catch(e) {
-                }
-            } else {
-            }
-            this.on('afterExecCommand', function() {
-                this.unsubscribeAll('afterExecCommand');
-                this.nodeChange();
-            }, this, true);
-            this.fireEvent('afterExecCommand', { type: 'afterExecCommand', target: this });
-            
-        },
-    /* {{{  Command Overrides */
-
-        /**
-        * @method cmd_bold
-        * @param value Value passed from the execCommand method
-        * @description This is an execCommand override method. It is called from execCommand when the execCommand('bold') is used.
-        */
-        cmd_bold: function(value) {
-            if (!this.browser.webkit) {
-                var el = this._getSelectedElement();
-                if (el && this._isElement(el, 'span') && this._hasSelection()) {
-                    if (el.style.fontWeight == 'bold') {
-                        el.style.fontWeight = '';
-                        var b = this._getDoc().createElement('b'),
-                        par = el.parentNode;
-                        par.replaceChild(b, el);
-                        b.appendChild(el);
-                    }
-                }
-            }
-            return [true];
-        },
-        /**
-        * @method cmd_italic
-        * @param value Value passed from the execCommand method
-        * @description This is an execCommand override method. It is called from execCommand when the execCommand('italic') is used.
-        */
-
-        cmd_italic: function(value) {
-            if (!this.browser.webkit) {
-                var el = this._getSelectedElement();
-                if (el && this._isElement(el, 'span') && this._hasSelection()) {
-                    if (el.style.fontStyle == 'italic') {
-                        el.style.fontStyle = '';
-                        var i = this._getDoc().createElement('i'),
-                        par = el.parentNode;
-                        par.replaceChild(i, el);
-                        i.appendChild(el);
-                    }
-                }
-            }
-            return [true];
-        },
-
-
-        /**
-        * @method cmd_underline
-        * @param value Value passed from the execCommand method
-        * @description This is an execCommand override method. It is called from execCommand when the execCommand('underline') is used.
-        */
-        cmd_underline: function(value) {
-            if (!this.browser.webkit) {
-                var el = this._getSelectedElement();
-                if (el && this._isElement(el, 'span')) {
-                    if (el.style.textDecoration == 'underline') {
-                        el.style.textDecoration = 'none';
-                    } else {
-                        el.style.textDecoration = 'underline';
-                    }
-                    return [false];
-                }
-            }
-            return [true];
-        },
-        /**
-        * @method cmd_backcolor
-        * @param value Value passed from the execCommand method
-        * @description This is an execCommand override method. It is called from execCommand when the execCommand('backcolor') is used.
-        */
-        cmd_backcolor: function(value) {
-            var exec = true,
-                el = this._getSelectedElement(),
-                action = 'backcolor';
-
-            if (this.browser.gecko || this.browser.opera) {
-                this._setEditorStyle(true);
-                action = 'hilitecolor';
-            }
-
-            if (!this._isElement(el, 'body') && !this._hasSelection()) {
-                el.style.backgroundColor = value;
-                this._selectNode(el);
-                exec = false;
-            } else {
-                if (this.get('insert')) {
-                    el = this._createInsertElement({ backgroundColor: value });
-                } else {
-                    this._createCurrentElement('span', { backgroundColor: value, color: el.style.color, fontSize: el.style.fontSize, fontFamily: el.style.fontFamily });
-                    this._selectNode(this.currentElement[0]);
-                }
-                exec = false;
-            }
-
-            return [exec, action];
-        },
-        /**
-        * @method cmd_forecolor
-        * @param value Value passed from the execCommand method
-        * @description This is an execCommand override method. It is called from execCommand when the execCommand('forecolor') is used.
-        */
-        cmd_forecolor: function(value) {
-            var exec = true,
-                el = this._getSelectedElement();
-                
-                if (!this._isElement(el, 'body') && !this._hasSelection()) {
-                    Dom.setStyle(el, 'color', value);
-                    this._selectNode(el);
-                    exec = false;
-                } else {
-                    if (this.get('insert')) {
-                        el = this._createInsertElement({ color: value });
-                    } else {
-                        this._createCurrentElement('span', { color: value, fontSize: el.style.fontSize, fontFamily: el.style.fontFamily, backgroundColor: el.style.backgroundColor });
-                        this._selectNode(this.currentElement[0]);
-                    }
-                    exec = false;
-                }
-                return [exec];
-        },
-        /**
-        * @method cmd_unlink
-        * @param value Value passed from the execCommand method
-        * @description This is an execCommand override method. It is called from execCommand when the execCommand('unlink') is used.
-        */
-        cmd_unlink: function(value) {
-            this._swapEl(this.currentElement[0], 'span', function(el) {
-                el.className = 'yui-non';
-            });
-            return [false];
-        },
-        /**
-        * @method cmd_createlink
-        * @param value Value passed from the execCommand method
-        * @description This is an execCommand override method. It is called from execCommand when the execCommand('createlink') is used.
-        */
-        cmd_createlink: function(value) {
-            var el = this._getSelectedElement(), _a = null;
-            if (this._hasParent(el, 'a')) {
-                this.currentElement[0] = this._hasParent(el, 'a');
-            } else if (this._isElement(el, 'li')) {
-                _a = this._getDoc().createElement('a');
-                _a.innerHTML = el.innerHTML;
-                el.innerHTML = '';
-                el.appendChild(_a);
-                this.currentElement[0] = _a;
-            } else if (!this._isElement(el, 'a')) {
-                this._createCurrentElement('a');
-                _a = this._swapEl(this.currentElement[0], 'a');
-                this.currentElement[0] = _a;
-            } else {
-                this.currentElement[0] = el;
-            }
-            return [false];
-        },
-        /**
-        * @method cmd_insertimage
-        * @param value Value passed from the execCommand method
-        * @description This is an execCommand override method. It is called from execCommand when the execCommand('insertimage') is used.
-        */
-        cmd_insertimage: function(value) {
-            var exec = true, _img = null, action = 'insertimage',
-                el = this._getSelectedElement();
-
-            if (value === '') {
-                value = this.get('blankimage');
-            }
-
-            /*
-            * @knownissue Safari Cursor Position
-            * @browser Safari 2.x
-            * @description The issue here is that we have no way of knowing where the cursor position is
-            * inside of the iframe, so we have to place the newly inserted data in the best place that we can.
-            */
-            
-            if (this._isElement(el, 'img')) {
-                this.currentElement[0] = el;
-                exec = false;
-            } else {
-                if (this._getDoc().queryCommandEnabled(action)) {
-                    this._getDoc().execCommand(action, false, value);
-                    var imgs = this._getDoc().getElementsByTagName('img');
-                    for (var i = 0; i < imgs.length; i++) {
-                        if (!YAHOO.util.Dom.hasClass(imgs[i], 'yui-img')) {
-                            YAHOO.util.Dom.addClass(imgs[i], 'yui-img');
-                            this.currentElement[0] = imgs[i];
-                        }
-                    }
-                    exec = false;
-                } else {
-                    if (el == this._getDoc().body) {
-                        _img = this._getDoc().createElement('img');
-                        _img.setAttribute('src', value);
-                        YAHOO.util.Dom.addClass(_img, 'yui-img');
-                        this._getDoc().body.appendChild(_img);
-                    } else {
-                        this._createCurrentElement('img');
-                        _img = this._getDoc().createElement('img');
-                        _img.setAttribute('src', value);
-                        YAHOO.util.Dom.addClass(_img, 'yui-img');
-                        this.currentElement[0].parentNode.replaceChild(_img, this.currentElement[0]);
-                    }
-                    this.currentElement[0] = _img;
-                    exec = false;
-                }
-            }
-            return [exec];
-        },
-        /**
-        * @method cmd_inserthtml
-        * @param value Value passed from the execCommand method
-        * @description This is an execCommand override method. It is called from execCommand when the execCommand('inserthtml') is used.
-        */
-        cmd_inserthtml: function(value) {
-            var exec = true, action = 'inserthtml', _span = null, _range = null;
-            /*
-            * @knownissue Safari cursor position
-            * @browser Safari 2.x
-            * @description The issue here is that we have no way of knowing where the cursor position is
-            * inside of the iframe, so we have to place the newly inserted data in the best place that we can.
-            */
-            if (this.browser.webkit && !this._getDoc().queryCommandEnabled(action)) {
-                this._createCurrentElement('img');
-                _span = this._getDoc().createElement('span');
-                _span.innerHTML = value;
-                this.currentElement[0].parentNode.replaceChild(_span, this.currentElement[0]);
-                exec = false;
-            } else if (this.browser.ie) {
-                _range = this._getRange();
-                if (_range.item) {
-                    _range.item(0).outerHTML = value;
-                } else {
-                    _range.pasteHTML(value);
-                }
-                exec = false;                    
-            }
-            return [exec];
-        },
-        /**
-        * @method cmd_list
-        * @param tag The tag of the list you want to create (eg, ul or ol)
-        * @description This is a combined execCommand override method. It is called from the cmd_insertorderedlist and cmd_insertunorderedlist methods.
-        */
-        cmd_list: function(tag) {
-            var exec = true, list = null, li = 0, el = null, str = '',
-                selEl = this._getSelectedElement(), action = 'insertorderedlist';
-                if (tag == 'ul') {
-                    action = 'insertunorderedlist';
-                }
-            /*
-            * @knownissue Safari 2.+ doesn't support ordered and unordered lists
-            * @browser Safari 2.x
-            * The issue with this workaround is that when applied to a set of text
-            * that has BR's in it, Safari may or may not pick up the individual items as
-            * list items. This is fixed in WebKit (Safari 3)
-            * 2.6.0: Seems there are still some issues with List Creation and Safari 3, reverting to previously working Safari 2.x code
-            */
-            //if ((this.browser.webkit && !this._getDoc().queryCommandEnabled(action))) {
-            if ((this.browser.webkit && !this.browser.webkit4) || (this.browser.opera)) {
-                if (this._isElement(selEl, 'li') && this._isElement(selEl.parentNode, tag)) {
-                    el = selEl.parentNode;
-                    list = this._getDoc().createElement('span');
-                    YAHOO.util.Dom.addClass(list, 'yui-non');
-                    str = '';
-                    var lis = el.getElementsByTagName('li'), p_tag = ((this.browser.opera && this.get('ptags')) ? 'p' : 'div');
-                    for (li = 0; li < lis.length; li++) {
-                        str += '<' + p_tag + '>' + lis[li].innerHTML + '</' + p_tag + '>';
-                    }
-                    list.innerHTML = str;
-                    this.currentElement[0] = el;
-                    this.currentElement[0].parentNode.replaceChild(list, this.currentElement[0]);
-                } else {
-                    this._createCurrentElement(tag.toLowerCase());
-                    list = this._getDoc().createElement(tag);
-                    for (li = 0; li < this.currentElement.length; li++) {
-                        var newli = this._getDoc().createElement('li');
-                        newli.innerHTML = this.currentElement[li].innerHTML + '<span class="yui-non">&nbsp;</span>&nbsp;';
-                        list.appendChild(newli);
-                        if (li > 0) {
-                            this.currentElement[li].parentNode.removeChild(this.currentElement[li]);
-                        }
-                    }
-                    var b_tag = ((this.browser.opera) ? '<BR>' : '<br>'),
-                    items = list.firstChild.innerHTML.split(b_tag), i, item;
-                    if (items.length > 0) {
-                        list.innerHTML = '';
-                        for (i = 0; i < items.length; i++) {
-                            item = this._getDoc().createElement('li');
-                            item.innerHTML = items[i];
-                            list.appendChild(item);
-                        }
-                    }
-
-                    this.currentElement[0].parentNode.replaceChild(list, this.currentElement[0]);
-                    this.currentElement[0] = list;
-                    var _h = this.currentElement[0].firstChild;
-                    _h = Dom.getElementsByClassName('yui-non', 'span', _h)[0];
-                    if (this.browser.webkit) {
-                        this._getSelection().setBaseAndExtent(_h, 1, _h, _h.innerText.length);
-                    }
-                }
-                exec = false;
-            } else {
-                el = this._getSelectedElement();
-                if (this._isElement(el, 'li') && this._isElement(el.parentNode, tag) || (this.browser.ie && this._isElement(this._getRange().parentElement, 'li')) || (this.browser.ie && this._isElement(el, 'ul')) || (this.browser.ie && this._isElement(el, 'ol'))) { //we are in a list..
-                    if (this.browser.ie) {
-                        if ((this.browser.ie && this._isElement(el, 'ul')) || (this.browser.ie && this._isElement(el, 'ol'))) {
-                            el = el.getElementsByTagName('li')[0];
-                        }
-                        str = '';
-                        var lis2 = el.parentNode.getElementsByTagName('li');
-                        for (var j = 0; j < lis2.length; j++) {
-                            str += lis2[j].innerHTML + '<br>';
-                        }
-                        var newEl = this._getDoc().createElement('span');
-                        newEl.innerHTML = str;
-                        el.parentNode.parentNode.replaceChild(newEl, el.parentNode);
-                    } else {
-                        this.nodeChange();
-                        this._getDoc().execCommand(action, '', el.parentNode);
-                        this.nodeChange();
-                    }
-                    exec = false;
-                }
-                if (this.browser.opera) {
-                    var self = this;
-                    window.setTimeout(function() {
-                        var liso = self._getDoc().getElementsByTagName('li');
-                        for (var i = 0; i < liso.length; i++) {
-                            if (liso[i].innerHTML.toLowerCase() == '<br>') {
-                                liso[i].parentNode.parentNode.removeChild(liso[i].parentNode);
-                            }
-                        }
-                    },30);
-                }
-                if (this.browser.ie && exec) {
-                    var html = '';
-                    if (this._getRange().html) {
-                        html = '<li>' + this._getRange().html+ '</li>';
-                    } else {
-                        var t = this._getRange().text.split('\n');
-                        if (t.length > 1) {
-                            html = '';
-                            for (var ie = 0; ie < t.length; ie++) {
-                                html += '<li>' + t[ie] + '</li>';
-                            }
-                        } else {
-                            var txt = this._getRange().text;
-                            if (txt === '') {
-                                html = '<li id="new_list_item">' + txt + '</li>';
-                            } else {
-                                html = '<li>' + txt + '</li>';
-                            }
-                        }
-                    }
-                    this._getRange().pasteHTML('<' + tag + '>' + html + '</' + tag + '>');
-                    var new_item = this._getDoc().getElementById('new_list_item');
-                    if (new_item) {
-                        var range = this._getDoc().body.createTextRange();
-                        range.moveToElementText(new_item);
-                        range.collapse(false);
-                        range.select();                       
-                        new_item.id = '';
-                    }
-                    exec = false;
-                }
-            }
-            return exec;
-        },
-        /**
-        * @method cmd_insertorderedlist
-        * @param value Value passed from the execCommand method
-        * @description This is an execCommand override method. It is called from execCommand when the execCommand('insertorderedlist ') is used.
-        */
-        cmd_insertorderedlist: function(value) {
-            return [this.cmd_list('ol')];
-        },
-        /**
-        * @method cmd_insertunorderedlist 
-        * @param value Value passed from the execCommand method
-        * @description This is an execCommand override method. It is called from execCommand when the execCommand('insertunorderedlist') is used.
-        */
-        cmd_insertunorderedlist: function(value) {
-            return [this.cmd_list('ul')];
-        },
-        /**
-        * @method cmd_fontname
-        * @param value Value passed from the execCommand method
-        * @description This is an execCommand override method. It is called from execCommand when the execCommand('fontname') is used.
-        */
-        cmd_fontname: function(value) {
-            var exec = true,
-                selEl = this._getSelectedElement();
-
-            this.currentFont = value;
-            if (selEl && selEl.tagName && !this._hasSelection() && !this._isElement(selEl, 'body') && !this.get('insert')) {
-                YAHOO.util.Dom.setStyle(selEl, 'font-family', value);
-                exec = false;
-            } else if (this.get('insert') && !this._hasSelection()) {
-                var el = this._createInsertElement({ fontFamily: value });
-                exec = false;
-            }
-            return [exec];
-        },
-        /**
-        * @method cmd_fontsize
-        * @param value Value passed from the execCommand method
-        * @description This is an execCommand override method. It is called from execCommand when the execCommand('fontsize') is used.
-        */
-        cmd_fontsize: function(value) {
-            var el = null, go = true;
-            el = this._getSelectedElement();
-            if (this.browser.webkit) {
-                if (this.currentElement[0]) {
-                    if (el == this.currentElement[0]) {
-                        go = false;
-                        YAHOO.util.Dom.setStyle(el, 'fontSize', value);
-                        this._selectNode(el);
-                        this.currentElement[0] = el;
-                    }
-                }
-            }
-            if (go) {
-                if (!this._isElement(this._getSelectedElement(), 'body') && (!this._hasSelection())) {
-                    el = this._getSelectedElement();
-                    YAHOO.util.Dom.setStyle(el, 'fontSize', value);
-                    if (this.get('insert') && this.browser.ie) {
-                        var r = this._getRange();
-                        r.collapse(false);
-                        r.select();
-                    } else {
-                        this._selectNode(el);
-                    }
-                } else if (this.currentElement && (this.currentElement.length > 0) && (!this._hasSelection()) && (!this.get('insert'))) {
-                    YAHOO.util.Dom.setStyle(this.currentElement, 'fontSize', value);
-                } else {
-                    if (this.get('insert') && !this._hasSelection()) {
-                        el = this._createInsertElement({ fontSize: value });
-                        this.currentElement[0] = el;
-                        this._selectNode(this.currentElement[0]);
-                    } else {
-                        this._createCurrentElement('span', {'fontSize': value, fontFamily: el.style.fontFamily, color: el.style.color, backgroundColor: el.style.backgroundColor });
-                        this._selectNode(this.currentElement[0]);
-                    }
-                }
-            }
-            return [false];
-        },
-    /* }}} */
-        /**
-        * @private
-        * @method _swapEl
-        * @param {HTMLElement} el The element to swap with
-        * @param {String} tagName The tagname of the element that you wish to create
-        * @param {Function} callback (optional) A function to run on the element after it is created, but before it is replaced. An element reference is passed to this function.
-        * @description This function will create a new element in the DOM and populate it with the contents of another element. Then it will assume it's place.
-        */
-        _swapEl: function(el, tagName, callback) {
-            var _el = this._getDoc().createElement(tagName);
-            if (el) {
-                _el.innerHTML = el.innerHTML;
-            }
-            if (typeof callback == 'function') {
-                callback.call(this, _el);
-            }
-            if (el) {
-                el.parentNode.replaceChild(_el, el);
-            }
-            return _el;
-        },
-        /**
-        * @private
-        * @method _createInsertElement
-        * @description Creates a new "currentElement" then adds some text (and other things) to make it selectable and stylable. Then the user can continue typing.
-        * @param {Object} css (optional) Object literal containing styles to apply to the new element.
-        * @return {HTMLElement}
-        */
-        _createInsertElement: function(css) {
-            this._createCurrentElement('span', css);
-            var el = this.currentElement[0];
-            if (this.browser.webkit) {
-                //Little Safari Hackery here..
-                el.innerHTML = '<span class="yui-non">&nbsp;</span>';
-                el = el.firstChild;
-                this._getSelection().setBaseAndExtent(el, 1, el, el.innerText.length);                    
-            } else if (this.browser.ie || this.browser.opera) {
-                el.innerHTML = '&nbsp;';
-            }
-            this.focus();
-            this._selectNode(el, true);
-            return el;
-        },
-        /**
-        * @private
-        * @method _createCurrentElement
-        * @param {String} tagName (optional defaults to a) The tagname of the element that you wish to create
-        * @param {Object} tagStyle (optional) Object literal containing styles to apply to the new element.
-        * @description This is a work around for the various browser issues with execCommand. This method will run <code>execCommand('fontname', false, 'yui-tmp')</code> on the given selection.
-        * It will then search the document for an element with the font-family set to <strong>yui-tmp</strong> and replace that with another span that has other information in it, then assign the new span to the 
-        * <code>this.currentElement</code> array, so we now have element references to the elements that were just modified. At this point we can use standard DOM manipulation to change them as we see fit.
-        */
-        _createCurrentElement: function(tagName, tagStyle) {
-            tagName = ((tagName) ? tagName : 'a');
-            var tar = null,
-                el = [],
-                _doc = this._getDoc();
-            
-            if (this.currentFont) {
-                if (!tagStyle) {
-                    tagStyle = {};
-                }
-                tagStyle.fontFamily = this.currentFont;
-                this.currentFont = null;
-            }
-            this.currentElement = [];
-
-            var _elCreate = function(tagName, tagStyle) {
-                var el = null;
-                tagName = ((tagName) ? tagName : 'span');
-                tagName = tagName.toLowerCase();
-                switch (tagName) {
-                    case 'h1':
-                    case 'h2':
-                    case 'h3':
-                    case 'h4':
-                    case 'h5':
-                    case 'h6':
-                        el = _doc.createElement(tagName);
-                        break;
-                    default:
-                        el = _doc.createElement(tagName);
-                        if (tagName === 'span') {
-                            YAHOO.util.Dom.addClass(el, 'yui-tag-' + tagName);
-                            YAHOO.util.Dom.addClass(el, 'yui-tag');
-                            el.setAttribute('tag', tagName);
-                        }
-
-                        for (var k in tagStyle) {
-                            if (YAHOO.lang.hasOwnProperty(tagStyle, k)) {
-                                el.style[k] = tagStyle[k];
-                            }
-                        }
-                        break;
-                }
-                return el;
-            };
-
-            if (!this._hasSelection()) {
-                if (this._getDoc().queryCommandEnabled('insertimage')) {
-                    this._getDoc().execCommand('insertimage', false, 'yui-tmp-img');
-                    var imgs = this._getDoc().getElementsByTagName('img');
-                    for (var j = 0; j < imgs.length; j++) {
-                        if (imgs[j].getAttribute('src', 2) == 'yui-tmp-img') {
-                            el = _elCreate(tagName, tagStyle);
-                            imgs[j].parentNode.replaceChild(el, imgs[j]);
-                            this.currentElement[this.currentElement.length] = el;
-                        }
-                    }
-                } else {
-                    if (this.currentEvent) {
-                        tar = YAHOO.util.Event.getTarget(this.currentEvent);
-                    } else {
-                        //For Safari..
-                        tar = this._getDoc().body;                        
-                    }
-                }
-                if (tar) {
-                    /*
-                    * @knownissue Safari Cursor Position
-                    * @browser Safari 2.x
-                    * @description The issue here is that we have no way of knowing where the cursor position is
-                    * inside of the iframe, so we have to place the newly inserted data in the best place that we can.
-                    */
-                    el = _elCreate(tagName, tagStyle);
-                    if (this._isElement(tar, 'body') || this._isElement(tar, 'html')) {
-                        if (this._isElement(tar, 'html')) {
-                            tar = this._getDoc().body;
-                        }
-                        tar.appendChild(el);
-                    } else if (tar.nextSibling) {
-                        tar.parentNode.insertBefore(el, tar.nextSibling);
-                    } else {
-                        tar.parentNode.appendChild(el);
-                    }
-                    //this.currentElement = el;
-                    this.currentElement[this.currentElement.length] = el;
-                    this.currentEvent = null;
-                    if (this.browser.webkit) {
-                        //Force Safari to focus the new element
-                        this._getSelection().setBaseAndExtent(el, 0, el, 0);
-                        if (this.browser.webkit3) {
-                            this._getSelection().collapseToStart();
-                        } else {
-                            this._getSelection().collapse(true);
-                        }
-                    }
-                }
-            } else {
-                //Force CSS Styling for this action...
-                this._setEditorStyle(true);
-                this._getDoc().execCommand('fontname', false, 'yui-tmp');
-                var _tmp = [], __tmp, __els = ['font', 'span', 'i', 'b', 'u'];
-
-                if (!this._isElement(this._getSelectedElement(), 'body')) {
-                    __els[__els.length] = this._getDoc().getElementsByTagName(this._getSelectedElement().tagName);
-                    __els[__els.length] = this._getDoc().getElementsByTagName(this._getSelectedElement().parentNode.tagName);
-                }
-                for (var _els = 0; _els < __els.length; _els++) {
-                    var _tmp1 = this._getDoc().getElementsByTagName(__els[_els]);
-                    for (var e = 0; e < _tmp1.length; e++) {
-                        _tmp[_tmp.length] = _tmp1[e];
-                    }
-                }
-
-                
-                for (var i = 0; i < _tmp.length; i++) {
-                    if ((YAHOO.util.Dom.getStyle(_tmp[i], 'font-family') == 'yui-tmp') || (_tmp[i].face && (_tmp[i].face == 'yui-tmp'))) {
-                        if (tagName !== 'span') {
-                            el = _elCreate(tagName, tagStyle);
-                        } else {
-                            el = _elCreate(_tmp[i].tagName, tagStyle);
-                        }
-                        el.innerHTML = _tmp[i].innerHTML;
-                        if (this._isElement(_tmp[i], 'ol') || (this._isElement(_tmp[i], 'ul'))) {
-                            var fc = _tmp[i].getElementsByTagName('li')[0];
-                            _tmp[i].style.fontFamily = 'inherit';
-                            fc.style.fontFamily = 'inherit';
-                            el.innerHTML = fc.innerHTML;
-                            fc.innerHTML = '';
-                            fc.appendChild(el);
-                            this.currentElement[this.currentElement.length] = el;
-                        } else if (this._isElement(_tmp[i], 'li')) {
-                            _tmp[i].innerHTML = '';
-                            _tmp[i].appendChild(el);
-                            _tmp[i].style.fontFamily = 'inherit';
-                            this.currentElement[this.currentElement.length] = el;
-                        } else {
-                            if (_tmp[i].parentNode) {
-                                _tmp[i].parentNode.replaceChild(el, _tmp[i]);
-                                this.currentElement[this.currentElement.length] = el;
-                                this.currentEvent = null;
-                                if (this.browser.webkit) {
-                                    //Force Safari to focus the new element
-                                    this._getSelection().setBaseAndExtent(el, 0, el, 0);
-                                    if (this.browser.webkit3) {
-                                        this._getSelection().collapseToStart();
-                                    } else {
-                                        this._getSelection().collapse(true);
-                                    }
-                                }
-                                if (this.browser.ie && tagStyle && tagStyle.fontSize) {
-                                    this._getSelection().empty();
-                                }
-                                if (this.browser.gecko) {
-                                    this._getSelection().collapseToStart();
-                                }
-                            }
-                        }
-                    }
-                }
-                var len = this.currentElement.length;
-                for (var o = 0; o < len; o++) {
-                    if ((o + 1) != len) { //Skip the last one in the list
-                        if (this.currentElement[o] && this.currentElement[o].nextSibling) {
-                            if (this._isElement(this.currentElement[o], 'br')) {
-                                this.currentElement[this.currentElement.length] = this.currentElement[o].nextSibling;
-                            }
-                        }
-                    }
-                }
-            }
-        },
-        /**
-        * @method saveHTML
-        * @description Cleans the HTML with the cleanHTML method then places that string back into the textarea.
-        * @return String
-        */
-        saveHTML: function() {
-            var html = this.cleanHTML();
-            if (this._textarea) {
-                this.get('element').value = html;
-            } else {
-                this.get('element').innerHTML = html;
-            }
-            if (this.get('saveEl') !== this.get('element')) {
-                var out = this.get('saveEl');
-                if (Lang.isString(out)) {
-                    out = Dom.get(out);
-                }
-                if (out) {
-                    if (out.tagName.toLowerCase() === 'textarea') {
-                        out.value = html;
-                    } else {
-                        out.innerHTML = html;
-                    }
-                }
-            }
-            return html;
-        },
-        /**
-        * @method setEditorHTML
-        * @param {String} incomingHTML The html content to load into the editor
-        * @description Loads HTML into the editors body
-        */
-        setEditorHTML: function(incomingHTML) {
-            var html = this._cleanIncomingHTML(incomingHTML);
-            html = html.replace(/RIGHT_BRACKET/gi, '{');
-            html = html.replace(/LEFT_BRACKET/gi, '}');
-            this._getDoc().body.innerHTML = html;
-            this.nodeChange();
-        },
-        /**
-        * @method getEditorHTML
-        * @description Gets the unprocessed/unfiltered HTML from the editor
-        */
-        getEditorHTML: function() {
-            try {
-                var b = this._getDoc().body;
-                if (b === null) {
-                    return null;
-                }
-                return this._getDoc().body.innerHTML;
-            } catch (e) {
-                return '';
-            }
-        },
-        /**
-        * @method show
-        * @description This method needs to be called if the Editor was hidden (like in a TabView or Panel). It is used to reset the editor after being in a container that was set to display none.
-        */
-        show: function() {
-            if (this.browser.gecko) {
-                this._setDesignMode('on');
-                this.focus();
-            }
-            if (this.browser.webkit) {
-                var self = this;
-                window.setTimeout(function() {
-                    self._setInitialContent.call(self);
-                }, 10);
-            }
-            //Adding this will close all other Editor window's when showing this one.
-            if (this.currentWindow) {
-                this.closeWindow();
-            }
-            //Put the iframe back in place
-            this.get('iframe').setStyle('position', 'static');
-            this.get('iframe').setStyle('left', '');
-        },
-        /**
-        * @method hide
-        * @description This method needs to be called if the Editor is to be hidden (like in a TabView or Panel). It should be called to clear timeouts and close open editor windows.
-        */
-        hide: function() {
-            //Adding this will close all other Editor window's.
-            if (this.currentWindow) {
-                this.closeWindow();
-            }
-            if (this._fixNodesTimer) {
-                clearTimeout(this._fixNodesTimer);
-                this._fixNodesTimer = null;
-            }
-            if (this._nodeChangeTimer) {
-                clearTimeout(this._nodeChangeTimer);
-                this._nodeChangeTimer = null;
-            }
-            this._lastNodeChange = 0;
-            //Move the iframe off of the screen, so that in containers with visiblity hidden, IE will not cover other elements.
-            this.get('iframe').setStyle('position', 'absolute');
-            this.get('iframe').setStyle('left', '-9999px');
-        },
-        /**
-        * @method _cleanIncomingHTML
-        * @param {String} html The unfiltered HTML
-        * @description Process the HTML with a few regexes to clean it up and stabilize the input
-        * @return {String} The filtered HTML
-        */
-        _cleanIncomingHTML: function(html) {
-            html = html.replace(/{/gi, 'RIGHT_BRACKET');
-            html = html.replace(/}/gi, 'LEFT_BRACKET');
-
-            html = html.replace(/<strong([^>]*)>/gi, '<b$1>');
-            html = html.replace(/<\/strong>/gi, '</b>');   
-
-            //replace embed before em check
-            html = html.replace(/<embed([^>]*)>/gi, '<YUI_EMBED$1>');
-            html = html.replace(/<\/embed>/gi, '</YUI_EMBED>');
-
-            html = html.replace(/<em([^>]*)>/gi, '<i$1>');
-            html = html.replace(/<\/em>/gi, '</i>');
-            html = html.replace(/_moz_dirty=""/gi, '');
-            
-            //Put embed tags back in..
-            html = html.replace(/<YUI_EMBED([^>]*)>/gi, '<embed$1>');
-            html = html.replace(/<\/YUI_EMBED>/gi, '</embed>');
-            if (this.get('plainText')) {
-                html = html.replace(/\n/g, '<br>').replace(/\r/g, '<br>');
-                html = html.replace(/  /gi, '&nbsp;&nbsp;'); //Replace all double spaces
-                html = html.replace(/\t/gi, '&nbsp;&nbsp;&nbsp;&nbsp;'); //Replace all tabs
-            }
-            //Removing Script Tags from the Editor
-            html = html.replace(/<script([^>]*)>/gi, '<bad>');
-            html = html.replace(/<\/script([^>]*)>/gi, '</bad>');
-            html = html.replace(/&lt;script([^>]*)&gt;/gi, '<bad>');
-            html = html.replace(/&lt;\/script([^>]*)&gt;/gi, '</bad>');
-            //Replace the line feeds
-            html = html.replace(/\r\n/g, '<YUI_LF>').replace(/\n/g, '<YUI_LF>').replace(/\r/g, '<YUI_LF>');
-            
-            //Remove Bad HTML elements (used to be script nodes)
-            html = html.replace(new RegExp('<bad([^>]*)>(.*?)<\/bad>', 'gi'), '');
-            //Replace the lines feeds
-            html = html.replace(/<YUI_LF>/g, '\n');
-            return html;
-        },
-        /**
-        * @method cleanHTML
-        * @param {String} html The unfiltered HTML
-        * @description Process the HTML with a few regexes to clean it up and stabilize the output
-        * @return {String} The filtered HTML
-        */
-        cleanHTML: function(html) {
-            //Start Filtering Output
-            //Begin RegExs..
-            if (!html) { 
-                html = this.getEditorHTML();
-            }
-            var markup = this.get('markup');
-            //Make some backups...
-            html = this.pre_filter_linebreaks(html, markup);
-
-            //Filter MS Word
-            html = this.filter_msword(html);
-
-                   html = html.replace(/<img([^>]*)\/>/gi, '<YUI_IMG$1>');
-                   html = html.replace(/<img([^>]*)>/gi, '<YUI_IMG$1>');
-
-                   html = html.replace(/<input([^>]*)\/>/gi, '<YUI_INPUT$1>');
-                   html = html.replace(/<input([^>]*)>/gi, '<YUI_INPUT$1>');
-
-                   html = html.replace(/<ul([^>]*)>/gi, '<YUI_UL$1>');
-                   html = html.replace(/<\/ul>/gi, '<\/YUI_UL>');
-                   html = html.replace(/<blockquote([^>]*)>/gi, '<YUI_BQ$1>');
-                   html = html.replace(/<\/blockquote>/gi, '<\/YUI_BQ>');
-
-                   html = html.replace(/<embed([^>]*)>/gi, '<YUI_EMBED$1>');
-                   html = html.replace(/<\/embed>/gi, '<\/YUI_EMBED>');
-
-            //Convert b and i tags to strong and em tags
-            if ((markup == 'semantic') || (markup == 'xhtml')) {
-                html = html.replace(/<i(\s+[^>]*)?>/gi, '<em$1>');
-                html = html.replace(/<\/i>/gi, '</em>');
-                html = html.replace(/<b(\s+[^>]*)?>/gi, '<strong$1>');
-                html = html.replace(/<\/b>/gi, '</strong>');
-            }
-
-            html = html.replace(/_moz_dirty=""/gi, '');
-
-            //normalize strikethrough
-            html = html.replace(/<strike/gi, '<span style="text-decoration: line-through;"');
-            html = html.replace(/\/strike>/gi, '/span>');
-            
-            
-            //Case Changing
-            if (this.browser.ie) {
-                html = html.replace(/text-decoration/gi, 'text-decoration');
-                html = html.replace(/font-weight/gi, 'font-weight');
-                html = html.replace(/_width="([^>]*)"/gi, '');
-                html = html.replace(/_height="([^>]*)"/gi, '');
-                //Cleanup Image URL's
-                var url = this._baseHREF.replace(/\//gi, '\\/'),
-                    re = new RegExp('src="' + url, 'gi');
-                html = html.replace(re, 'src="');
-            }
-                   html = html.replace(/<font/gi, '<font');
-                   html = html.replace(/<\/font>/gi, '</font>');
-                   html = html.replace(/<span/gi, '<span');
-                   html = html.replace(/<\/span>/gi, '</span>');
-            if ((markup == 'semantic') || (markup == 'xhtml') || (markup == 'css')) {
-                html = html.replace(new RegExp('<font([^>]*)face="([^>]*)">(.*?)<\/font>', 'gi'), '<span $1 style="font-family: $2;">$3</span>');
-                html = html.replace(/<u/gi, '<span style="text-decoration: underline;"');
-                if (this.browser.webkit) {
-                    html = html.replace(new RegExp('<span class="Apple-style-span" style="font-weight: bold;">([^>]*)<\/span>', 'gi'), '<strong>$1</strong>');
-                    html = html.replace(new RegExp('<span class="Apple-style-span" style="font-style: italic;">([^>]*)<\/span>', 'gi'), '<em>$1</em>');
-                }
-                html = html.replace(/\/u>/gi, '/span>');
-                if (markup == 'css') {
-                    html = html.replace(/<em([^>]*)>/gi, '<i$1>');
-                    html = html.replace(/<\/em>/gi, '</i>');
-                    html = html.replace(/<strong([^>]*)>/gi, '<b$1>');
-                    html = html.replace(/<\/strong>/gi, '</b>');
-                    html = html.replace(/<b/gi, '<span style="font-weight: bold;"');
-                    html = html.replace(/\/b>/gi, '/span>');
-                    html = html.replace(/<i/gi, '<span style="font-style: italic;"');
-                    html = html.replace(/\/i>/gi, '/span>');
-                }
-                html = html.replace(/  /gi, ' '); //Replace all double spaces and replace with a single
-            } else {
-                       html = html.replace(/<u/gi, '<u');
-                       html = html.replace(/\/u>/gi, '/u>');
-            }
-                   html = html.replace(/<ol([^>]*)>/gi, '<ol$1>');
-                   html = html.replace(/\/ol>/gi, '/ol>');
-                   html = html.replace(/<li/gi, '<li');
-                   html = html.replace(/\/li>/gi, '/li>');
-            html = this.filter_safari(html);
-
-            html = this.filter_internals(html);
-
-            html = this.filter_all_rgb(html);
-
-            //Replace our backups with the real thing
-            html = this.post_filter_linebreaks(html, markup);
-
-            if (markup == 'xhtml') {
-                       html = html.replace(/<YUI_IMG([^>]*)>/g, '<img $1 />');
-                       html = html.replace(/<YUI_INPUT([^>]*)>/g, '<input $1 />');
-            } else {
-                       html = html.replace(/<YUI_IMG([^>]*)>/g, '<img $1>');
-                       html = html.replace(/<YUI_INPUT([^>]*)>/g, '<input $1>');
-            }
-                   html = html.replace(/<YUI_UL([^>]*)>/g, '<ul$1>');
-                   html = html.replace(/<\/YUI_UL>/g, '<\/ul>');
-
-            html = this.filter_invalid_lists(html);
-
-                   html = html.replace(/<YUI_BQ([^>]*)>/g, '<blockquote$1>');
-                   html = html.replace(/<\/YUI_BQ>/g, '<\/blockquote>');
-
-                   html = html.replace(/<YUI_EMBED([^>]*)>/g, '<embed$1>');
-                   html = html.replace(/<\/YUI_EMBED>/g, '<\/embed>');
-            
-            //This should fix &amp;'s in URL's
-            html = html.replace(/ &amp; /gi, ' YUI_AMP ');
-            html = html.replace(/ &amp;/gi, ' YUI_AMP_F ');
-            html = html.replace(/&amp; /gi, ' YUI_AMP_R ');
-            html = html.replace(/&amp;/gi, '&');
-            html = html.replace(/ YUI_AMP /gi, ' &amp; ');
-            html = html.replace(/ YUI_AMP_F /gi, ' &amp;');
-            html = html.replace(/ YUI_AMP_R /gi, '&amp; ');
-
-            //Trim the output, removing whitespace from the beginning and end
-            html = YAHOO.lang.trim(html);
-
-            if (this.get('removeLineBreaks')) {
-                html = html.replace(/\n/g, '').replace(/\r/g, '');
-                html = html.replace(/  /gi, ' '); //Replace all double spaces and replace with a single
-            }
-            
-            for (var v in this.invalidHTML) {
-                if (YAHOO.lang.hasOwnProperty(this.invalidHTML, v)) {
-                    if (Lang.isObject(v) && v.keepContents) {
-                        html = html.replace(new RegExp('<' + v + '([^>]*)>(.*?)<\/' + v + '>', 'gi'), '$1');
-                    } else {
-                        html = html.replace(new RegExp('<' + v + '([^>]*)>(.*?)<\/' + v + '>', 'gi'), '');
-                    }
-                }
-            }
-
-            /* LATER -- Add DOM manipulation
-            console.log(html);
-            var frag = document.createDocumentFragment();
-            frag.innerHTML = html;
-
-            var ps = frag.getElementsByTagName('p'),
-                len = ps.length;
-            for (var i = 0; i < len; i++) {
-                var ps2 = ps[i].getElementsByTagName('p');
-                if (ps2.length) {
-                    
-                }
-                
-            }
-            html = frag.innerHTML;
-            console.log(html);
-            */
-
-            this.fireEvent('cleanHTML', { type: 'cleanHTML', target: this, html: html });
-
-            return html;
-        },
-        /**
-        * @method filter_msword
-        * @param String html The HTML string to filter
-        * @description Filters out msword html attributes and other junk. Activate with filterWord: true in config
-        */
-        filter_msword: function(html) {
-            if (!this.get('filterWord')) {
-                return html;
-            }
-            //Remove the ms o: tags
-            html = html.replace(/<o:p>\s*<\/o:p>/g, '');
-            html = html.replace(/<o:p>[\s\S]*?<\/o:p>/g, '&nbsp;');
-
-            //Remove the ms w: tags
-            html = html.replace( /<w:[^>]*>[\s\S]*?<\/w:[^>]*>/gi, '');
-
-            //Remove mso-? styles.
-            html = html.replace( /\s*mso-[^:]+:[^;"]+;?/gi, '');
-
-            //Remove more bogus MS styles.
-            html = html.replace( /\s*MARGIN: 0cm 0cm 0pt\s*;/gi, '');
-            html = html.replace( /\s*MARGIN: 0cm 0cm 0pt\s*"/gi, "\"");
-            html = html.replace( /\s*TEXT-INDENT: 0cm\s*;/gi, '');
-            html = html.replace( /\s*TEXT-INDENT: 0cm\s*"/gi, "\"");
-            html = html.replace( /\s*PAGE-BREAK-BEFORE: [^\s;]+;?"/gi, "\"");
-            html = html.replace( /\s*FONT-VARIANT: [^\s;]+;?"/gi, "\"" );
-            html = html.replace( /\s*tab-stops:[^;"]*;?/gi, '');
-            html = html.replace( /\s*tab-stops:[^"]*/gi, '');
-
-            //Remove XML declarations
-            html = html.replace(/<\\?\?xml[^>]*>/gi, '');
-
-            //Remove lang
-            html = html.replace(/<(\w[^>]*) lang=([^ |>]*)([^>]*)/gi, "<$1$3");
-
-            //Remove language tags
-            html = html.replace( /<(\w[^>]*) language=([^ |>]*)([^>]*)/gi, "<$1$3");
-
-            //Remove onmouseover and onmouseout events (from MS Word comments effect)
-            html = html.replace( /<(\w[^>]*) onmouseover="([^\"]*)"([^>]*)/gi, "<$1$3");
-            html = html.replace( /<(\w[^>]*) onmouseout="([^\"]*)"([^>]*)/gi, "<$1$3");
-            
-            return html;
-        },
-        /**
-        * @method filter_invalid_lists
-        * @param String html The HTML string to filter
-        * @description Filters invalid ol and ul list markup, converts this: <li></li><ol>..</ol> to this: <li></li><li><ol>..</ol></li>
-        */
-        filter_invalid_lists: function(html) {
-            html = html.replace(/<\/li>\n/gi, '</li>');
-
-            html = html.replace(/<\/li><ol>/gi, '</li><li><ol>');
-            html = html.replace(/<\/ol>/gi, '</ol></li>');
-            html = html.replace(/<\/ol><\/li>\n/gi, "</ol>");
-
-            html = html.replace(/<\/li><ul>/gi, '</li><li><ul>');
-            html = html.replace(/<\/ul>/gi, '</ul></li>');
-            html = html.replace(/<\/ul><\/li>\n?/gi, "</ul>");
-
-            html = html.replace(/<\/li>/gi, "</li>");
-            html = html.replace(/<\/ol>/gi, "</ol>");
-            html = html.replace(/<ol>/gi, "<ol>");
-            html = html.replace(/<ul>/gi, "<ul>");
-            return html;
-        },
-        /**
-        * @method filter_safari
-        * @param String html The HTML string to filter
-        * @description Filters strings specific to Safari
-        * @return String
-        */
-        filter_safari: function(html) {
-            if (this.browser.webkit) {
-                //<span class="Apple-tab-span" style="white-space:pre">        </span>
-                html = html.replace(/<span class="Apple-tab-span" style="white-space:pre">([^>])<\/span>/gi, '&nbsp;&nbsp;&nbsp;&nbsp;');
-                html = html.replace(/Apple-style-span/gi, '');
-                html = html.replace(/style="line-height: normal;"/gi, '');
-                html = html.replace(/yui-wk-div/gi, '');
-                html = html.replace(/yui-wk-p/gi, '');
-
-
-                //Remove bogus LI's
-                html = html.replace(/<li><\/li>/gi, '');
-                html = html.replace(/<li> <\/li>/gi, '');
-                html = html.replace(/<li>  <\/li>/gi, '');
-                //Remove bogus DIV's - updated from just removing the div's to replacing /div with a break
-                if (this.get('ptags')) {
-                           html = html.replace(/<div([^>]*)>/g, '<p$1>');
-                                   html = html.replace(/<\/div>/gi, '</p>');
-                } else {
-                    //html = html.replace(/<div>/gi, '<br>');
-                    html = html.replace(/<div([^>]*)>([ tnr]*)<\/div>/gi, '<br>');
-                                   html = html.replace(/<\/div>/gi, '');
-                }
-            }
-            return html;
-        },
-        /**
-        * @method filter_internals
-        * @param String html The HTML string to filter
-        * @description Filters internal RTE strings and bogus attrs we don't want
-        * @return String
-        */
-        filter_internals: function(html) {
-                   html = html.replace(/\r/g, '');
-            //Fix stuff we don't want
-               html = html.replace(/<\/?(body|head|html)[^>]*>/gi, '');
-            //Fix last BR in LI
-                   html = html.replace(/<YUI_BR><\/li>/gi, '</li>');
-
-                   html = html.replace(/yui-tag-span/gi, '');
-                   html = html.replace(/yui-tag/gi, '');
-                   html = html.replace(/yui-non/gi, '');
-                   html = html.replace(/yui-img/gi, '');
-                   html = html.replace(/ tag="span"/gi, '');
-                   html = html.replace(/ class=""/gi, '');
-                   html = html.replace(/ style=""/gi, '');
-                   html = html.replace(/ class=" "/gi, '');
-                   html = html.replace(/ class="  "/gi, '');
-                   html = html.replace(/ target=""/gi, '');
-                   html = html.replace(/ title=""/gi, '');
-
-            if (this.browser.ie) {
-                       html = html.replace(/ class= /gi, '');
-                       html = html.replace(/ class= >/gi, '');
-            }
-            
-            return html;
-        },
-        /**
-        * @method filter_all_rgb
-        * @param String str The HTML string to filter
-        * @description Converts all RGB color strings found in passed string to a hex color, example: style="color: rgb(0, 255, 0)" converts to style="color: #00ff00"
-        * @return String
-        */
-        filter_all_rgb: function(str) {
-            var exp = new RegExp("rgb\\s*?\\(\\s*?([0-9]+).*?,\\s*?([0-9]+).*?,\\s*?([0-9]+).*?\\)", "gi");
-            var arr = str.match(exp);
-            if (Lang.isArray(arr)) {
-                for (var i = 0; i < arr.length; i++) {
-                    var color = this.filter_rgb(arr[i]);
-                    str = str.replace(arr[i].toString(), color);
-                }
-            }
-            
-            return str;
-        },
-        /**
-        * @method filter_rgb
-        * @param String css The CSS string containing rgb(#,#,#);
-        * @description Converts an RGB color string to a hex color, example: rgb(0, 255, 0) converts to #00ff00
-        * @return String
-        */
-        filter_rgb: function(css) {
-            if (css.toLowerCase().indexOf('rgb') != -1) {
-                var exp = new RegExp("(.*?)rgb\\s*?\\(\\s*?([0-9]+).*?,\\s*?([0-9]+).*?,\\s*?([0-9]+).*?\\)(.*?)", "gi");
-                var rgb = css.replace(exp, "$1,$2,$3,$4,$5").split(',');
-            
-                if (rgb.length == 5) {
-                    var r = parseInt(rgb[1], 10).toString(16);
-                    var g = parseInt(rgb[2], 10).toString(16);
-                    var b = parseInt(rgb[3], 10).toString(16);
-
-                    r = r.length == 1 ? '0' + r : r;
-                    g = g.length == 1 ? '0' + g : g;
-                    b = b.length == 1 ? '0' + b : b;
-
-                    css = "#" + r + g + b;
-                }
-            }
-            return css;
-        },
-        /**
-        * @method pre_filter_linebreaks
-        * @param String html The HTML to filter
-        * @param String markup The markup type to filter to
-        * @description HTML Pre Filter
-        * @return String
-        */
-        pre_filter_linebreaks: function(html, markup) {
-            if (this.browser.webkit) {
-                       html = html.replace(/<br class="khtml-block-placeholder">/gi, '<YUI_BR>');
-                       html = html.replace(/<br class="webkit-block-placeholder">/gi, '<YUI_BR>');
-            }
-                   html = html.replace(/<br>/gi, '<YUI_BR>');
-                   html = html.replace(/<br (.*?)>/gi, '<YUI_BR>');
-                   html = html.replace(/<br\/>/gi, '<YUI_BR>');
-                   html = html.replace(/<br \/>/gi, '<YUI_BR>');
-                   html = html.replace(/<div><YUI_BR><\/div>/gi, '<YUI_BR>');
-                   html = html.replace(/<p>(&nbsp;|&#160;)<\/p>/g, '<YUI_BR>');            
-                   html = html.replace(/<p><br>&nbsp;<\/p>/gi, '<YUI_BR>');
-                   html = html.replace(/<p>&nbsp;<\/p>/gi, '<YUI_BR>');
-            //Fix last BR
-               html = html.replace(/<YUI_BR>$/, '');
-            //Fix last BR in P
-               html = html.replace(/<YUI_BR><\/p>/g, '</p>');
-            if (this.browser.ie) {
-                   html = html.replace(/&nbsp;&nbsp;&nbsp;&nbsp;/g, '\t');
-            }
-            return html;
-        },
-        /**
-        * @method post_filter_linebreaks
-        * @param String html The HTML to filter
-        * @param String markup The markup type to filter to
-        * @description HTML Pre Filter
-        * @return String
-        */
-        post_filter_linebreaks: function(html, markup) {
-            if (markup == 'xhtml') {
-                       html = html.replace(/<YUI_BR>/g, '<br />');
-            } else {
-                       html = html.replace(/<YUI_BR>/g, '<br>');
-            }
-            return html;
-        },
-        /**
-        * @method clearEditorDoc
-        * @description Clear the doc of the Editor
-        */
-        clearEditorDoc: function() {
-            this._getDoc().body.innerHTML = '&nbsp;';
-        },
-        /**
-        * @method openWindow
-        * @description Override Method for Advanced Editor
-        */
-        openWindow: function(win) {
-        },
-        /**
-        * @method moveWindow
-        * @description Override Method for Advanced Editor
-        */
-        moveWindow: function() {
-        },
-        /**
-        * @private
-        * @method _closeWindow
-        * @description Override Method for Advanced Editor
-        */
-        _closeWindow: function() {
-        },
-        /**
-        * @method closeWindow
-        * @description Override Method for Advanced Editor
-        */
-        closeWindow: function() {
-            //this.unsubscribeAll('afterExecCommand');
-            this.toolbar.resetAllButtons();
-            this.focus();        
-        },
-        /**
-        * @method destroy
-        * @description Destroys the editor, all of it's elements and objects.
-        * @return {Boolean}
-        */
-        destroy: function() {
-            if (this._nodeChangeDelayTimer) {
-                clearTimeout(this._nodeChangeDelayTimer);
-            }
-            this.hide();
-        
-            if (this.resize) {
-                this.resize.destroy();
-            }
-            if (this.dd) {
-                this.dd.unreg();
-            }
-            if (this.get('panel')) {
-                this.get('panel').destroy();
-            }
-            this.saveHTML();
-            this.toolbar.destroy();
-            this.setStyle('visibility', 'visible');
-            this.setStyle('position', 'static');
-            this.setStyle('top', '');
-            this.setStyle('left', '');
-            var textArea = this.get('element');
-            this.get('element_cont').get('parentNode').replaceChild(textArea, this.get('element_cont').get('element'));
-            this.get('element_cont').get('element').innerHTML = '';
-            this.set('handleSubmit', false); //Remove the submit handler
-            return true;
-        },        
-        /**
-        * @method toString
-        * @description Returns a string representing the editor.
-        * @return {String}
-        */
-        toString: function() {
-            var str = 'SimpleEditor';
-            if (this.get && this.get('element_cont')) {
-                str = 'SimpleEditor (#' + this.get('element_cont').get('id') + ')' + ((this.get('disabled') ? ' Disabled' : ''));
-            }
-            return str;
-        }
-    });
-
-/**
-* @event toolbarLoaded
-* @description Event is fired during the render process directly after the Toolbar is loaded. Allowing you to attach events to the toolbar. See <a href="YAHOO.util.Element.html#addListener">Element.addListener</a> for more information on listening for this event.
-* @type YAHOO.util.CustomEvent
-*/
-/**
-* @event cleanHTML
-* @description Event is fired after the cleanHTML method is called.
-* @type YAHOO.util.CustomEvent
-*/
-/**
-* @event afterRender
-* @description Event is fired after the render process finishes. See <a href="YAHOO.util.Element.html#addListener">Element.addListener</a> for more information on listening for this event.
-* @type YAHOO.util.CustomEvent
-*/
-/**
-* @event editorContentLoaded
-* @description Event is fired after the editor iframe's document fully loads and fires it's onload event. From here you can start injecting your own things into the document. See <a href="YAHOO.util.Element.html#addListener">Element.addListener</a> for more information on listening for this event.
-* @type YAHOO.util.CustomEvent
-*/
-/**
-* @event beforeNodeChange
-* @description Event fires at the beginning of the nodeChange process. See <a href="YAHOO.util.Element.html#addListener">Element.addListener</a> for more information on listening for this event.
-* @type YAHOO.util.CustomEvent
-*/
-/**
-* @event afterNodeChange
-* @description Event fires at the end of the nodeChange process. See <a href="YAHOO.util.Element.html#addListener">Element.addListener</a> for more information on listening for this event.
-* @type YAHOO.util.CustomEvent
-*/
-/**
-* @event beforeExecCommand
-* @description Event fires at the beginning of the execCommand process. See <a href="YAHOO.util.Element.html#addListener">Element.addListener</a> for more information on listening for this event.
-* @type YAHOO.util.CustomEvent
-*/
-/**
-* @event afterExecCommand
-* @description Event fires at the end of the execCommand process. See <a href="YAHOO.util.Element.html#addListener">Element.addListener</a> for more information on listening for this event.
-* @type YAHOO.util.CustomEvent
-*/
-/**
-* @event editorMouseUp
-* @param {Event} ev The DOM Event that occured
-* @description Passed through HTML Event. See <a href="YAHOO.util.Element.html#addListener">Element.addListener</a> for more information on listening for this event.
-* @type YAHOO.util.CustomEvent
-*/
-/**
-* @event editorMouseDown
-* @param {Event} ev The DOM Event that occured
-* @description Passed through HTML Event. See <a href="YAHOO.util.Element.html#addListener">Element.addListener</a> for more information on listening for this event.
-* @type YAHOO.util.CustomEvent
-*/
-/**
-* @event editorDoubleClick
-* @param {Event} ev The DOM Event that occured
-* @description Passed through HTML Event. See <a href="YAHOO.util.Element.html#addListener">Element.addListener</a> for more information on listening for this event.
-* @type YAHOO.util.CustomEvent
-*/
-/**
-* @event editorClick
-* @param {Event} ev The DOM Event that occured
-* @description Passed through HTML Event. See <a href="YAHOO.util.Element.html#addListener">Element.addListener</a> for more information on listening for this event.
-* @type YAHOO.util.CustomEvent
-*/
-/**
-* @event editorKeyUp
-* @param {Event} ev The DOM Event that occured
-* @description Passed through HTML Event. See <a href="YAHOO.util.Element.html#addListener">Element.addListener</a> for more information on listening for this event.
-* @type YAHOO.util.CustomEvent
-*/
-/**
-* @event editorKeyPress
-* @param {Event} ev The DOM Event that occured
-* @description Passed through HTML Event. See <a href="YAHOO.util.Element.html#addListener">Element.addListener</a> for more information on listening for this event.
-* @type YAHOO.util.CustomEvent
-*/
-/**
-* @event editorKeyDown
-* @param {Event} ev The DOM Event that occured
-* @description Passed through HTML Event. See <a href="YAHOO.util.Element.html#addListener">Element.addListener</a> for more information on listening for this event.
-* @type YAHOO.util.CustomEvent
-*/
-/**
-* @event beforeEditorMouseUp
-* @param {Event} ev The DOM Event that occured
-* @description Fires before editor event, returning false will stop the internal processing.
-* @type YAHOO.util.CustomEvent
-*/
-/**
-* @event beforeEditorMouseDown
-* @param {Event} ev The DOM Event that occured
-* @description Fires before editor event, returning false will stop the internal processing.
-* @type YAHOO.util.CustomEvent
-*/
-/**
-* @event beforeEditorDoubleClick
-* @param {Event} ev The DOM Event that occured
-* @description Fires before editor event, returning false will stop the internal processing.
-* @type YAHOO.util.CustomEvent
-*/
-/**
-* @event beforeEditorClick
-* @param {Event} ev The DOM Event that occured
-* @description Fires before editor event, returning false will stop the internal processing.
-* @type YAHOO.util.CustomEvent
-*/
-/**
-* @event beforeEditorKeyUp
-* @param {Event} ev The DOM Event that occured
-* @description Fires before editor event, returning false will stop the internal processing.
-* @type YAHOO.util.CustomEvent
-*/
-/**
-* @event beforeEditorKeyPress
-* @param {Event} ev The DOM Event that occured
-* @description Fires before editor event, returning false will stop the internal processing.
-* @type YAHOO.util.CustomEvent
-*/
-/**
-* @event beforeEditorKeyDown
-* @param {Event} ev The DOM Event that occured
-* @description Fires before editor event, returning false will stop the internal processing.
-* @type YAHOO.util.CustomEvent
-*/
-
-/**
-* @event editorWindowFocus
-* @description Fires when the iframe is focused. Note, this is window focus event, not an Editor focus event.
-* @type YAHOO.util.CustomEvent
-*/
-/**
-* @event editorWindowBlur
-* @description Fires when the iframe is blurred. Note, this is window blur event, not an Editor blur event.
-* @type YAHOO.util.CustomEvent
-*/
-
-
-/**
- * @description Singleton object used to track the open window objects and panels across the various open editors
- * @class EditorInfo
- * @static
-*/
-YAHOO.widget.EditorInfo = {
-    /**
-    * @private
-    * @property _instances
-    * @description A reference to all editors on the page.
-    * @type Object
-    */
-    _instances: {},
-    /**
-    * @private
-    * @property blankImage
-    * @description A reference to the blankImage url
-    * @type String 
-    */
-    blankImage: '',
-    /**
-    * @private
-    * @property window
-    * @description A reference to the currently open window object in any editor on the page.
-    * @type Object <a href="YAHOO.widget.EditorWindow.html">YAHOO.widget.EditorWindow</a>
-    */
-    window: {},
-    /**
-    * @private
-    * @property panel
-    * @description A reference to the currently open panel in any editor on the page.
-    * @type Object <a href="YAHOO.widget.Overlay.html">YAHOO.widget.Overlay</a>
-    */
-    panel: null,
-    /**
-    * @method getEditorById
-    * @description Returns a reference to the Editor object associated with the given textarea
-    * @param {String/HTMLElement} id The id or reference of the textarea to return the Editor instance of
-    * @return Object <a href="YAHOO.widget.Editor.html">YAHOO.widget.Editor</a>
-    */
-    getEditorById: function(id) {
-        if (!YAHOO.lang.isString(id)) {
-            //Not a string, assume a node Reference
-            id = id.id;
-        }
-        if (this._instances[id]) {
-            return this._instances[id];
-        }
-        return false;
-    },
-    /**
-    * @method saveAll
-    * @description Saves all Editor instances on the page. If a form reference is passed, only Editor's bound to this form will be saved.
-    * @param {HTMLElement} form The form to check if this Editor instance belongs to
-    */
-    saveAll: function(form) {
-        var i, e, items = YAHOO.widget.EditorInfo._instances;
-        if (form) {
-            for (i in items) {
-                if (Lang.hasOwnProperty(items, i)) {
-                    e = items[i];
-                    if (e.get('element').form && (e.get('element').form == form)) {
-                        e.saveHTML();
-                    }
-                }
-            }
-        } else {
-            for (i in items) {
-                if (Lang.hasOwnProperty(items, i)) {
-                    items[i].saveHTML();
-                }
-            }
-        }
-    },
-    /**
-    * @method toString
-    * @description Returns a string representing the EditorInfo.
-    * @return {String}
-    */
-    toString: function() {
-        var len = 0;
-        for (var i in this._instances) {
-            if (Lang.hasOwnProperty(this._instances, i)) {
-                len++;
-            }
-        }
-        return 'Editor Info (' + len + ' registered intance' + ((len > 1) ? 's' : '') + ')';
-    }
-};
-
-
-
-    
-})();
-/**
- * @module editor
- * @description <p>The Rich Text Editor is a UI control that replaces a standard HTML textarea; it allows for the rich formatting of text content, including common structural treatments like lists, formatting treatments like bold and italic text, and drag-and-drop inclusion and sizing of images. The Rich Text Editor's toolbar is extensible via a plugin architecture so that advanced implementations can achieve a high degree of customization.</p>
- * @namespace YAHOO.widget
- * @requires yahoo, dom, element, event, container_core, simpleeditor
- * @optional dragdrop, animation, menu, button, resize
- */
-
-(function() {
-var Dom = YAHOO.util.Dom,
-    Event = YAHOO.util.Event,
-    Lang = YAHOO.lang,
-    Toolbar = YAHOO.widget.Toolbar;
-
-    /**
-     * The Rich Text Editor is a UI control that replaces a standard HTML textarea; it allows for the rich formatting of text content, including common structural treatments like lists, formatting treatments like bold and italic text, and drag-and-drop inclusion and sizing of images. The Rich Text Editor's toolbar is extensible via a plugin architecture so that advanced implementations can achieve a high degree of customization.
-     * @constructor
-     * @class Editor
-     * @extends YAHOO.widget.SimpleEditor
-     * @param {String/HTMLElement} el The textarea element to turn into an editor.
-     * @param {Object} attrs Object liternal containing configuration parameters.
-    */
-    
-    YAHOO.widget.Editor = function(el, attrs) {
-        YAHOO.widget.Editor.superclass.constructor.call(this, el, attrs);
-    };
-
-    YAHOO.extend(YAHOO.widget.Editor, YAHOO.widget.SimpleEditor, {
-        /**
-        * @private
-        * @property _undoCache
-        * @description An Array hash of the Undo Levels.
-        * @type Array
-        */
-        _undoCache: null,
-        /**
-        * @private
-        * @property _undoLevel
-        * @description The index of the current undo state.
-        * @type Number
-        */
-        _undoLevel: null,    
-        /**
-        * @private
-        * @method _hasUndoLevel
-        * @description Checks to see if we have an undo level available
-        * @return Boolean
-        */
-        _hasUndoLevel: function() {
-            return ((this._undoCache.length > 1) && this._undoLevel);
-        },
-        /**
-        * @private
-        * @method _undoNodeChange
-        * @description nodeChange listener for undo processing
-        */
-        _undoNodeChange: function() {
-            var undo_button = this.toolbar.getButtonByValue('undo'),
-                redo_button = this.toolbar.getButtonByValue('redo');
-            if (undo_button && redo_button) {
-                if (this._hasUndoLevel()) {
-                    this.toolbar.enableButton(undo_button);
-                }
-                if (this._undoLevel < this._undoCache.length) {
-                    this.toolbar.enableButton(redo_button);
-                }
-            }
-            this._lastCommand = null;
-        },
-        /**
-        * @private
-        * @method _checkUndo
-        * @description Prunes the undo cache when it reaches the maxUndo config
-        */
-        _checkUndo: function() {
-            var len = this._undoCache.length,
-            tmp = [];
-            if (len >= this.get('maxUndo')) {
-                for (var i = (len - this.get('maxUndo')); i < len; i++) {
-                    tmp.push(this._undoCache[i]);
-                }
-                this._undoCache = tmp;
-            }
-        },
-        /**
-        * @private
-        * @method _putUndo
-        * @description Puts the content of the Editor into the _undoCache.
-        * //TODO Convert the hash to a series of TEXTAREAS to store state in.
-        * @param {String} str The content of the Editor
-        */
-        _putUndo: function(str) {
-            if (this._undoLevel === this._undoCache.length) {
-                this._undoCache.push(str);
-                this._undoLevel = this._undoCache.length;
-            } else {
-                var str = this.getEditorHTML();
-                var last = this._undoCache[this._undoLevel];
-                if (last) {
-                    if (str !== last) {
-                        this._undoCache = [];
-                        this._undoLevel = 0;
-                    }
-                }
-            }
-        },
-        /**
-        * @private
-        * @method _getUndo
-        * @description Get's a level from the undo cache.
-        * @param {Number} index The index of the undo level we want to get.
-        * @return {String}
-        */
-        _getUndo: function(index) {
-            this._undoLevel = index;
-            return this._undoCache[index];
-        },
-        /**
-        * @private
-        * @method _storeUndo
-        * @description Method to call when you want to store an undo state. Currently called from nodeChange and _handleKeyUp
-        */
-        _storeUndo: function() {
-            if (this._lastCommand === 'undo' || this._lastCommand === 'redo') {
-                return false;
-            }
-            if (!this._undoCache) {
-                this._undoCache = [];
-                this._undoLevel = 0;
-            }
-            this._checkUndo();
-            var str = this.getEditorHTML();
-            //var last = this._undoCache[this._undoCache.length - 1];
-            var last = this._undoCache[this._undoLevel - 1];
-            if (last) {
-                if (str !== last) {
-                    this._putUndo(str);
-                }
-            } else {
-                this._putUndo(str);
-            }
-            this._undoNodeChange();
-        },    
-        /**
-        * @property STR_BEFORE_EDITOR
-        * @description The accessibility string for the element before the iFrame
-        * @type String
-        */
-        STR_BEFORE_EDITOR: 'This text field can contain stylized text and graphics. To cycle through all formatting options, use the keyboard shortcut Control + Shift + T to place focus on the toolbar and navigate between option heading names. <h4>Common formatting keyboard shortcuts:</h4><ul><li>Control Shift B sets text to bold</li> <li>Control Shift I sets text to italic</li> <li>Control Shift U underlines text</li> <li>Control Shift [ aligns text left</li> <li>Control Shift | centers text</li> <li>Control Shift ] aligns text right</li> <li>Control Shift L adds an HTML link</li> <li>To exit this text editor use the keyboard shortcut Control + Shift + ESC.</li></ul>',    
-        /**
-        * @property STR_CLOSE_WINDOW
-        * @description The Title of the close button in the Editor Window
-        * @type String
-        */
-        STR_CLOSE_WINDOW: 'Close Window',
-        /**
-        * @property STR_CLOSE_WINDOW_NOTE
-        * @description A note appearing in the Editor Window to tell the user that the Escape key will close the window
-        * @type String
-        */
-        STR_CLOSE_WINDOW_NOTE: 'To close this window use the Control + Shift + W key',
-        /**
-        * @property STR_IMAGE_PROP_TITLE
-        * @description The title for the Image Property Editor Window
-        * @type String
-        */
-        STR_IMAGE_PROP_TITLE: 'Image Options',
-        /**
-        * @property STR_IMAGE_TITLE
-        * @description The label string for Image Description
-        * @type String
-        */
-        STR_IMAGE_TITLE: 'Description',
-        /**
-        * @property STR_IMAGE_SIZE
-        * @description The label string for Image Size
-        * @type String
-        */
-        STR_IMAGE_SIZE: 'Size',
-        /**
-        * @property STR_IMAGE_ORIG_SIZE
-        * @description The label string for Original Image Size
-        * @type String
-        */
-        STR_IMAGE_ORIG_SIZE: 'Original Size',
-        /**
-        * @property STR_IMAGE_COPY
-        * @description The label string for the image copy and paste message for Opera and Safari
-        * @type String
-        */
-        STR_IMAGE_COPY: '<span class="tip"><span class="icon icon-info"></span><strong>Note:</strong>To move this image just highlight it, cut, and paste where ever you\'d like.</span>',
-        /**
-        * @property STR_IMAGE_PADDING
-        * @description The label string for the image padding.
-        * @type String
-        */
-        STR_IMAGE_PADDING: 'Padding',
-        /**
-        * @property STR_IMAGE_BORDER
-        * @description The label string for the image border.
-        * @type String
-        */
-        STR_IMAGE_BORDER: 'Border',
-        /**
-        * @property STR_IMAGE_BORDER_SIZE
-        * @description The label string for the image border size.
-        * @type String
-        */
-        STR_IMAGE_BORDER_SIZE: 'Border Size',
-        /**
-        * @property STR_IMAGE_BORDER_TYPE
-        * @description The label string for the image border type.
-        * @type String
-        */
-        STR_IMAGE_BORDER_TYPE: 'Border Type',
-        /**
-        * @property STR_IMAGE_TEXTFLOW
-        * @description The label string for the image text flow.
-        * @type String
-        */
-        STR_IMAGE_TEXTFLOW: 'Text Flow',
-        /**
-        * @property STR_LOCAL_FILE_WARNING
-        * @description The label string for the local file warning.
-        * @type String
-        */
-        STR_LOCAL_FILE_WARNING: '<span class="tip"><span class="icon icon-warn"></span><strong>Note:</strong>This image/link points to a file on your computer and will not be accessible to others on the internet.</span>',
-        /**
-        * @property STR_LINK_PROP_TITLE
-        * @description The label string for the Link Property Editor Window.
-        * @type String
-        */
-        STR_LINK_PROP_TITLE: 'Link Options',
-        /**
-        * @property STR_LINK_PROP_REMOVE
-        * @description The label string for the Remove link from text link inside the property editor.
-        * @type String
-        */
-        STR_LINK_PROP_REMOVE: 'Remove link from text',
-        /**
-        * @property STR_LINK_NEW_WINDOW
-        * @description The string for the open in a new window label.
-        * @type String
-        */
-        STR_LINK_NEW_WINDOW: 'Open in a new window.',
-        /**
-        * @property STR_LINK_TITLE
-        * @description The string for the link description.
-        * @type String
-        */
-        STR_LINK_TITLE: 'Description',
-        /**
-        * @property STR_NONE
-        * @description The string for the word none.
-        * @type String
-        */
-        STR_NONE: 'none',
-        /**
-        * @protected
-        * @property CLASS_LOCAL_FILE
-        * @description CSS class applied to an element when it's found to have a local url.
-        * @type String
-        */
-        CLASS_LOCAL_FILE: 'warning-localfile',
-        /**
-        * @protected
-        * @property CLASS_HIDDEN
-        * @description CSS class applied to the body when the hiddenelements button is pressed.
-        * @type String
-        */
-        CLASS_HIDDEN: 'yui-hidden',
-        /** 
-        * @method init
-        * @description The Editor class' initialization method
-        */
-        init: function(p_oElement, p_oAttributes) {
-            
-            this._windows = {};
-            if (!this._defaultToolbar) {            
-                this._defaultToolbar = {
-                    collapse: true,
-                    titlebar: 'Text Editing Tools',
-                    draggable: false,
-                    buttonType: 'advanced',
-                    buttons: [
-                        { group: 'fontstyle', label: 'Font Name and Size',
-                            buttons: [
-                                { type: 'select', label: 'Arial', value: 'fontname', disabled: true,
-                                    menu: [
-                                        { text: 'Arial', checked: true },
-                                        { text: 'Arial Black' },
-                                        { text: 'Comic Sans MS' },
-                                        { text: 'Courier New' },
-                                        { text: 'Lucida Console' },
-                                        { text: 'Tahoma' },
-                                        { text: 'Times New Roman' },
-                                        { text: 'Trebuchet MS' },
-                                        { text: 'Verdana' }
-                                    ]
-                                },
-                                { type: 'spin', label: '13', value: 'fontsize', range: [ 9, 75 ], disabled: true }
-                            ]
-                        },
-                        { type: 'separator' },
-                        { group: 'textstyle', label: 'Font Style',
-                            buttons: [
-                                { type: 'push', label: 'Bold CTRL + SHIFT + B', value: 'bold' },
-                                { type: 'push', label: 'Italic CTRL + SHIFT + I', value: 'italic' },
-                                { type: 'push', label: 'Underline CTRL + SHIFT + U', value: 'underline' },
-                                { type: 'separator' },
-                                { type: 'push', label: 'Subscript', value: 'subscript', disabled: true },
-                                { type: 'push', label: 'Superscript', value: 'superscript', disabled: true }
-                            ]
-                        },
-                        { type: 'separator' },
-                        { group: 'textstyle2', label: '&nbsp;',
-                            buttons: [
-                                { type: 'color', label: 'Font Color', value: 'forecolor', disabled: true },
-                                { type: 'color', label: 'Background Color', value: 'backcolor', disabled: true },
-                                { type: 'separator' },
-                                { type: 'push', label: 'Remove Formatting', value: 'removeformat', disabled: true },
-                                { type: 'push', label: 'Show/Hide Hidden Elements', value: 'hiddenelements' }
-                            ]
-                        },
-                        { type: 'separator' },
-                        { group: 'undoredo', label: 'Undo/Redo',
-                            buttons: [
-                                { type: 'push', label: 'Undo', value: 'undo', disabled: true },
-                                { type: 'push', label: 'Redo', value: 'redo', disabled: true }
-                                
-                            ]
-                        },
-                        { type: 'separator' },
-                        { group: 'alignment', label: 'Alignment',
-                            buttons: [
-                                { type: 'push', label: 'Align Left CTRL + SHIFT + [', value: 'justifyleft' },
-                                { type: 'push', label: 'Align Center CTRL + SHIFT + |', value: 'justifycenter' },
-                                { type: 'push', label: 'Align Right CTRL + SHIFT + ]', value: 'justifyright' },
-                                { type: 'push', label: 'Justify', value: 'justifyfull' }
-                            ]
-                        },
-                        { type: 'separator' },
-                        { group: 'parastyle', label: 'Paragraph Style',
-                            buttons: [
-                            { type: 'select', label: 'Normal', value: 'heading', disabled: true,
-                                menu: [
-                                    { text: 'Normal', value: 'none', checked: true },
-                                    { text: 'Header 1', value: 'h1' },
-                                    { text: 'Header 2', value: 'h2' },
-                                    { text: 'Header 3', value: 'h3' },
-                                    { text: 'Header 4', value: 'h4' },
-                                    { text: 'Header 5', value: 'h5' },
-                                    { text: 'Header 6', value: 'h6' }
-                                ]
-                            }
-                            ]
-                        },
-                        { type: 'separator' },
-                        
-                        { group: 'indentlist2', label: 'Indenting and Lists',
-                            buttons: [
-                                { type: 'push', label: 'Indent', value: 'indent', disabled: true },
-                                { type: 'push', label: 'Outdent', value: 'outdent', disabled: true },
-                                { type: 'push', label: 'Create an Unordered List', value: 'insertunorderedlist' },
-                                { type: 'push', label: 'Create an Ordered List', value: 'insertorderedlist' }
-                            ]
-                        },
-                        { type: 'separator' },
-                        { group: 'insertitem', label: 'Insert Item',
-                            buttons: [
-                                { type: 'push', label: 'HTML Link CTRL + SHIFT + L', value: 'createlink', disabled: true },
-                                { type: 'push', label: 'Insert Image', value: 'insertimage' }
-                            ]
-                        }
-                    ]
-                };
-            }
-
-            if (!this._defaultImageToolbarConfig) {
-                this._defaultImageToolbarConfig = {
-                    buttonType: this._defaultToolbar.buttonType,
-                    buttons: [
-                        { group: 'textflow', label: this.STR_IMAGE_TEXTFLOW + ':',
-                            buttons: [
-                                { type: 'push', label: 'Left', value: 'left' },
-                                { type: 'push', label: 'Inline', value: 'inline' },
-                                { type: 'push', label: 'Block', value: 'block' },
-                                { type: 'push', label: 'Right', value: 'right' }
-                            ]
-                        },
-                        { type: 'separator' },
-                        { group: 'padding', label: this.STR_IMAGE_PADDING + ':',
-                            buttons: [
-                                { type: 'spin', label: '0', value: 'padding', range: [0, 50] }
-                            ]
-                        },
-                        { type: 'separator' },
-                        { group: 'border', label: this.STR_IMAGE_BORDER + ':',
-                            buttons: [
-                                { type: 'select', label: this.STR_IMAGE_BORDER_SIZE, value: 'bordersize',
-                                    menu: [
-                                        { text: 'none', value: '0', checked: true },
-                                        { text: '1px', value: '1' },
-                                        { text: '2px', value: '2' },
-                                        { text: '3px', value: '3' },
-                                        { text: '4px', value: '4' },
-                                        { text: '5px', value: '5' }
-                                    ]
-                                },
-                                { type: 'select', label: this.STR_IMAGE_BORDER_TYPE, value: 'bordertype', disabled: true,
-                                    menu: [
-                                        { text: 'Solid', value: 'solid', checked: true },
-                                        { text: 'Dashed', value: 'dashed' },
-                                        { text: 'Dotted', value: 'dotted' }
-                                    ]
-                                },
-                                { type: 'color', label: 'Border Color', value: 'bordercolor', disabled: true }
-                            ]
-                        }
-                    ]
-                };
-            }
-
-            YAHOO.widget.Editor.superclass.init.call(this, p_oElement, p_oAttributes);
-        },
-        _render: function() {
-            YAHOO.widget.Editor.superclass._render.apply(this, arguments);
-            var self = this;
-            //Render the panel in another thread and delay it a little..
-            window.setTimeout(function() {
-                self._renderPanel.call(self);
-            }, 800);
-        },
-        /**
-        * @method initAttributes
-        * @description Initializes all of the configuration attributes used to create 
-        * the editor.
-        * @param {Object} attr Object literal specifying a set of 
-        * configuration attributes used to create the editor.
-        */
-        initAttributes: function(attr) {
-            YAHOO.widget.Editor.superclass.initAttributes.call(this, attr);
-
-            /**
-            * @attribute localFileWarning
-            * @description Should we throw the warning if we detect a file that is local to their machine?
-            * @default true
-            * @type Boolean
-            */            
-            this.setAttributeConfig('localFileWarning', {
-                value: attr.locaFileWarning || true
-            });
-
-            /**
-            * @attribute hiddencss
-            * @description The CSS used to show/hide hidden elements on the page, these rules must be prefixed with the class provided in <code>this.CLASS_HIDDEN</code>
-            * @default <code><pre>
-            .yui-hidden font, .yui-hidden strong, .yui-hidden b, .yui-hidden em, .yui-hidden i, .yui-hidden u,
-            .yui-hidden div, .yui-hidden p, .yui-hidden span, .yui-hidden img, .yui-hidden ul, .yui-hidden ol,
-            .yui-hidden li, .yui-hidden table {
-                border: 1px dotted #ccc;
-            }
-            .yui-hidden .yui-non {
-                border: none;
-            }
-            .yui-hidden img {
-                padding: 2px;
-            }</pre></code>
-            * @type String
-            */            
-            this.setAttributeConfig('hiddencss', {
-                value: attr.hiddencss || '.yui-hidden font, .yui-hidden strong, .yui-hidden b, .yui-hidden em, .yui-hidden i, .yui-hidden u, .yui-hidden div,.yui-hidden p,.yui-hidden span,.yui-hidden img, .yui-hidden ul, .yui-hidden ol, .yui-hidden li, .yui-hidden table { border: 1px dotted #ccc; } .yui-hidden .yui-non { border: none; } .yui-hidden img { padding: 2px; }',
-                writeOnce: true
-            });
-           
-        },
-        /**
-        * @private
-        * @method _windows
-        * @description A reference to the HTML elements used for the body of Editor Windows.
-        */
-        _windows: null,
-        /**
-        * @private
-        * @method _defaultImageToolbar
-        * @description A reference to the Toolbar Object inside Image Editor Window.
-        */
-        _defaultImageToolbar: null,
-        /**
-        * @private
-        * @method _defaultImageToolbarConfig
-        * @description Config to be used for the default Image Editor Window.
-        */
-        _defaultImageToolbarConfig: null,
-        /**
-        * @private
-        * @method _fixNodes
-        * @description Fix href and imgs as well as remove invalid HTML.
-        */
-        _fixNodes: function() {
-            YAHOO.widget.Editor.superclass._fixNodes.call(this);
-            try {
-                var url = '';
-
-                var imgs = this._getDoc().getElementsByTagName('img');
-                for (var im = 0; im < imgs.length; im++) {
-                    if (imgs[im].getAttribute('href', 2)) {
-                        url = imgs[im].getAttribute('src', 2);
-                        if (this._isLocalFile(url)) {
-                            Dom.addClass(imgs[im], this.CLASS_LOCAL_FILE);
-                        } else {
-                            Dom.removeClass(imgs[im], this.CLASS_LOCAL_FILE);
-                        }
-                    }
-                }
-                var fakeAs = this._getDoc().body.getElementsByTagName('a');
-                for (var a = 0; a < fakeAs.length; a++) {
-                    if (fakeAs[a].getAttribute('href', 2)) {
-                        url = fakeAs[a].getAttribute('href', 2);
-                        if (this._isLocalFile(url)) {
-                            Dom.addClass(fakeAs[a], this.CLASS_LOCAL_FILE);
-                        } else {
-                            Dom.removeClass(fakeAs[a], this.CLASS_LOCAL_FILE);
-                        }
-                    }
-                }
-            } catch(e) {}
-        },
-        /**
-        * @private
-        * @property _disabled
-        * @description The Toolbar items that should be disabled if there is no selection present in the editor.
-        * @type Array
-        */
-        _disabled: [ 'createlink', 'forecolor', 'backcolor', 'fontname', 'fontsize', 'superscript', 'subscript', 'removeformat', 'heading', 'indent' ],
-        /**
-        * @private
-        * @property _alwaysDisabled
-        * @description The Toolbar items that should ALWAYS be disabled event if there is a selection present in the editor.
-        * @type Object
-        */
-        _alwaysDisabled: { 'outdent': true },
-        /**
-        * @private
-        * @property _alwaysEnabled
-        * @description The Toolbar items that should ALWAYS be enabled event if there isn't a selection present in the editor.
-        * @type Object
-        */
-        _alwaysEnabled: { hiddenelements: true },
-        /**
-        * @private
-        * @method _handleKeyDown
-        * @param {Event} ev The event we are working on.
-        * @description Override method that handles some new keydown events inside the iFrame document.
-        */
-        _handleKeyDown: function(ev) {
-            YAHOO.widget.Editor.superclass._handleKeyDown.call(this, ev);
-            var doExec = false,
-                action = null,
-                exec = false;
-
-            switch (ev.keyCode) {
-                //case 219: //Left
-                case this._keyMap.JUSTIFY_LEFT.key: //Left
-                    if (this._checkKey(this._keyMap.JUSTIFY_LEFT, ev)) {
-                        action = 'justifyleft';
-                        doExec = true;
-                    }
-                    break;
-                //case 220: //Center
-                case this._keyMap.JUSTIFY_CENTER.key:
-                    if (this._checkKey(this._keyMap.JUSTIFY_CENTER, ev)) {
-                        action = 'justifycenter';
-                        doExec = true;
-                    }
-                    break;
-                case 221: //Right
-                case this._keyMap.JUSTIFY_RIGHT.key:
-                    if (this._checkKey(this._keyMap.JUSTIFY_RIGHT, ev)) {
-                        action = 'justifyright';
-                        doExec = true;
-                    }
-                    break;
-            }
-            if (doExec && action) {
-                this.execCommand(action, null);
-                Event.stopEvent(ev);
-                this.nodeChange();
-            }
-        },        
-        /**
-        * @private
-        * @method _renderCreateLinkWindow
-        * @description Pre renders the CreateLink window so we get faster window opening.
-        */
-        _renderCreateLinkWindow: function() {
-                var str = '<label for="' + this.get('id') + '_createlink_url"><strong>' + this.STR_LINK_URL + ':</strong> <input type="text" name="' + this.get('id') + '_createlink_url" id="' + this.get('id') + '_createlink_url" value=""></label>';
-                str += '<label for="' + this.get('id') + '_createlink_target"><strong>&nbsp;</strong><input type="checkbox" name="' + this.get('id') + '_createlink_target" id="' + this.get('id') + '_createlink_target" value="_blank" class="createlink_target"> ' + this.STR_LINK_NEW_WINDOW + '</label>';
-                str += '<label for="' + this.get('id') + '_createlink_title"><strong>' + this.STR_LINK_TITLE + ':</strong> <input type="text" name="' + this.get('id') + '_createlink_title" id="' + this.get('id') + '_createlink_title" value=""></label>';
-                
-                var body = document.createElement('div');
-                body.innerHTML = str;
-
-                var unlinkCont = document.createElement('div');
-                unlinkCont.className = 'removeLink';
-                var unlink = document.createElement('a');
-                unlink.href = '#';
-                unlink.innerHTML = this.STR_LINK_PROP_REMOVE;
-                unlink.title = this.STR_LINK_PROP_REMOVE;
-                Event.on(unlink, 'click', function(ev) {
-                    Event.stopEvent(ev);
-                    this.unsubscribeAll('afterExecCommand');
-                    this.execCommand('unlink');
-                    this.closeWindow();
-                }, this, true);
-                unlinkCont.appendChild(unlink);
-                body.appendChild(unlinkCont);
-                
-                this._windows.createlink = {};
-                this._windows.createlink.body = body;
-                //body.style.display = 'none';
-                Event.on(body, 'keyup', function(e) {
-                    Event.stopPropagation(e);
-                });
-                this.get('panel').editor_form.appendChild(body);
-                this.fireEvent('windowCreateLinkRender', { type: 'windowCreateLinkRender', panel: this.get('panel'), body: body });
-                return body;
-        },
-        _handleCreateLinkClick: function() {
-            var el = this._getSelectedElement();
-            if (this._isElement(el, 'img')) {
-                this.STOP_EXEC_COMMAND = true;
-                this.currentElement[0] = el;
-                this.toolbar.fireEvent('insertimageClick', { type: 'insertimageClick', target: this.toolbar });
-                this.fireEvent('afterExecCommand', { type: 'afterExecCommand', target: this });
-                return false;
-            }
-            if (this.get('limitCommands')) {
-                if (!this.toolbar.getButtonByValue('createlink')) {
-                    return false;
-                }
-            }
-            
-            this.on('afterExecCommand', function() {
-                var win = new YAHOO.widget.EditorWindow('createlink', {
-                    width: '350px'
-                });
-                
-                var el = this.currentElement[0],
-                    url = '',
-                    title = '',
-                    target = '',
-                    localFile = false;
-                if (el) {
-                    win.el = el;
-                    if (el.getAttribute('href', 2) !== null) {
-                        url = el.getAttribute('href', 2);
-                        if (this._isLocalFile(url)) {
-                            //Local File throw Warning
-                            win.setFooter(this.STR_LOCAL_FILE_WARNING);
-                            localFile = true;
-                        } else {
-                            win.setFooter(' ');
-                        }
-                    }
-                    if (el.getAttribute('title') !== null) {
-                        title = el.getAttribute('title');
-                    }
-                    if (el.getAttribute('target') !== null) {
-                        target = el.getAttribute('target');
-                    }
-                }
-                var body = null;
-                if (this._windows.createlink && this._windows.createlink.body) {
-                    body = this._windows.createlink.body;
-                } else {
-                    body = this._renderCreateLinkWindow();
-                }
-
-                win.setHeader(this.STR_LINK_PROP_TITLE);
-                win.setBody(body);
-
-                Event.purgeElement(this.get('id') + '_createlink_url');
-
-                Dom.get(this.get('id') + '_createlink_url').value = url;
-                Dom.get(this.get('id') + '_createlink_title').value = title;
-                Dom.get(this.get('id') + '_createlink_target').checked = ((target) ? true : false);
-                
-
-                Event.onAvailable(this.get('id') + '_createlink_url', function() {
-                    var id = this.get('id');
-                    window.setTimeout(function() {
-                        try {
-                            YAHOO.util.Dom.get(id + '_createlink_url').focus();
-                        } catch (e) {}
-                    }, 50);
-
-                    if (this._isLocalFile(url)) {
-                        //Local File throw Warning
-                        Dom.addClass(this.get('id') + '_createlink_url', 'warning');
-                        this.get('panel').setFooter(this.STR_LOCAL_FILE_WARNING);
-                    } else {
-                        Dom.removeClass(this.get('id') + '_createlink_url', 'warning');
-                        this.get('panel').setFooter(' ');
-                    }
-                    Event.on(this.get('id') + '_createlink_url', 'blur', function() {
-                        var url = Dom.get(this.get('id') + '_createlink_url');
-                        if (this._isLocalFile(url.value)) {
-                            //Local File throw Warning
-                            Dom.addClass(url, 'warning');
-                            this.get('panel').setFooter(this.STR_LOCAL_FILE_WARNING);
-                        } else {
-                            Dom.removeClass(url, 'warning');
-                            this.get('panel').setFooter(' ');
-                        }
-                    }, this, true);
-                }, this, true);
-                
-                this.openWindow(win);
-
-            });
-        },
-        /**
-        * @private
-        * @method _handleCreateLinkWindowClose
-        * @description Handles the closing of the Link Properties Window.
-        */
-        _handleCreateLinkWindowClose: function() {
-            
-            var url = Dom.get(this.get('id') + '_createlink_url'),
-                target = Dom.get(this.get('id') + '_createlink_target'),
-                title = Dom.get(this.get('id') + '_createlink_title'),
-                el = arguments[0].win.el,
-                a = el;
-
-            if (url && url.value) {
-                var urlValue = url.value;
-                if ((urlValue.indexOf(':/'+'/') == -1) && (urlValue.substring(0,1) != '/') && (urlValue.substring(0, 6).toLowerCase() != 'mailto')) {
-                    if ((urlValue.indexOf('@') != -1) && (urlValue.substring(0, 6).toLowerCase() != 'mailto')) {
-                        //Found an @ sign, prefix with mailto:
-                        urlValue = 'mailto:' + urlValue;
-                    } else {
-                        // :// not found adding
-                        if (urlValue.substring(0, 1) != '#') {
-                            urlValue = 'http:/'+'/' + urlValue;
-                        }
-                        
-                    }
-                }
-                el.setAttribute('href', urlValue);
-                if (target.checked) {
-                    el.setAttribute('target', target.value);
-                } else {
-                    el.setAttribute('target', '');
-                }
-                el.setAttribute('title', ((title.value) ? title.value : ''));
-
-            } else {
-                var _span = this._getDoc().createElement('span');
-                _span.innerHTML = el.innerHTML;
-                Dom.addClass(_span, 'yui-non');
-                el.parentNode.replaceChild(_span, el);
-            }
-            Dom.removeClass(url, 'warning');
-            Dom.get(this.get('id') + '_createlink_url').value = '';
-            Dom.get(this.get('id') + '_createlink_title').value = '';
-            Dom.get(this.get('id') + '_createlink_target').checked = false;
-            this.nodeChange();
-            this.currentElement = [];
-            
-        },
-        /**
-        * @private
-        * @method _renderInsertImageWindow
-        * @description Pre renders the InsertImage window so we get faster window opening.
-        */
-        _renderInsertImageWindow: function() {
-                var el = this.currentElement[0];
-                var str = '<label for="' + this.get('id') + '_insertimage_url"><strong>' + this.STR_IMAGE_URL + ':</strong> <input type="text" id="' + this.get('id') + '_insertimage_url" value="" size="40"></label>';
-                var body = document.createElement('div');
-                body.innerHTML = str;
-
-                var tbarCont = document.createElement('div');
-                tbarCont.id = this.get('id') + '_img_toolbar';
-                body.appendChild(tbarCont);
-
-                var str2 = '<label for="' + this.get('id') + '_insertimage_title"><strong>' + this.STR_IMAGE_TITLE + ':</strong> <input type="text" id="' + this.get('id') + '_insertimage_title" value="" size="40"></label>';
-                str2 += '<label for="' + this.get('id') + '_insertimage_link"><strong>' + this.STR_LINK_URL + ':</strong> <input type="text" name="' + this.get('id') + '_insertimage_link" id="' + this.get('id') + '_insertimage_link" value=""></label>';
-                str2 += '<label for="' + this.get('id') + '_insertimage_target"><strong>&nbsp;</strong><input type="checkbox" name="' + this.get('id') + '_insertimage_target_" id="' + this.get('id') + '_insertimage_target" value="_blank" class="insertimage_target"> ' + this.STR_LINK_NEW_WINDOW + '</label>';
-                var div = document.createElement('div');
-                div.innerHTML = str2;
-                body.appendChild(div);
-
-                var o = {};
-                Lang.augmentObject(o, this._defaultImageToolbarConfig); //Break the config reference
-
-                var tbar = new YAHOO.widget.Toolbar(tbarCont, o);
-                tbar.editor_el = el;
-                this._defaultImageToolbar = tbar;
-                
-                var cont = tbar.get('cont');
-                var hw = document.createElement('div');
-                hw.className = 'yui-toolbar-group yui-toolbar-group-height-width height-width';
-                hw.innerHTML = '<h3>' + this.STR_IMAGE_SIZE + ':</h3>';
-                hw.innerHTML += '<span tabIndex="-1"><input type="text" size="3" value="" id="' + this.get('id') + '_insertimage_width"> x <input type="text" size="3" value="" id="' + this.get('id') + '_insertimage_height"></span>';
-                cont.insertBefore(hw, cont.firstChild);
-
-                Event.onAvailable(this.get('id') + '_insertimage_width', function() {
-                    Event.on(this.get('id') + '_insertimage_width', 'blur', function() {
-                        var value = parseInt(Dom.get(this.get('id') + '_insertimage_width').value, 10);
-                        if (value > 5) {
-                           this._defaultImageToolbar.editor_el.style.width = value + 'px';
-                            //Removed moveWindow call so the window doesn't jump
-                            //this.moveWindow();
-                        }
-                    }, this, true);
-                }, this, true);
-                Event.onAvailable(this.get('id') + '_insertimage_height', function() {
-                    Event.on(this.get('id') + '_insertimage_height', 'blur', function() {
-                        var value = parseInt(Dom.get(this.get('id') + '_insertimage_height').value, 10);
-                        if (value > 5) {
-                            this._defaultImageToolbar.editor_el.style.height = value + 'px';
-                            //Removed moveWindow call so the window doesn't jump
-                            //this.moveWindow();
-                        }
-                    }, this, true);
-                }, this, true);
-
-
-                tbar.on('colorPickerClicked', function(o) {
-                    var size = '1', type = 'solid', color = 'black', el = this._defaultImageToolbar.editor_el;
-
-                    if (el.style.borderLeftWidth) {
-                        size = parseInt(el.style.borderLeftWidth, 10);
-                    }
-                    if (el.style.borderLeftStyle) {
-                        type = el.style.borderLeftStyle;
-                    }
-                    if (el.style.borderLeftColor) {
-                        color = el.style.borderLeftColor;
-                    }
-                    var borderString = size + 'px ' + type + ' #' + o.color;
-                    el.style.border = borderString;
-                }, this, true);
-
-                tbar.on('buttonClick', function(o) {
-                    var value = o.button.value,
-                        el = this._defaultImageToolbar.editor_el,
-                        borderString = '';
-                    if (o.button.menucmd) {
-                        value = o.button.menucmd;
-                    }
-                    var size = '1', type = 'solid', color = 'black';
-
-                    /* All border calcs are done on the left border
-                        since our default interface only supports
-                        one border size/type and color */
-                    if (el.style.borderLeftWidth) {
-                        size = parseInt(el.style.borderLeftWidth, 10);
-                    }
-                    if (el.style.borderLeftStyle) {
-                        type = el.style.borderLeftStyle;
-                    }
-                    if (el.style.borderLeftColor) {
-                        color = el.style.borderLeftColor;
-                    }
-                    switch(value) {
-                        case 'bordersize':
-                            if (this.browser.webkit && this._lastImage) {
-                                Dom.removeClass(this._lastImage, 'selected');
-                                this._lastImage = null;
-                            }
-
-                            borderString = parseInt(o.button.value, 10) + 'px ' + type + ' ' + color;
-                            el.style.border = borderString;
-                            if (parseInt(o.button.value, 10) > 0) {
-                                tbar.enableButton('bordertype');
-                                tbar.enableButton('bordercolor');
-                            } else {
-                                tbar.disableButton('bordertype');
-                                tbar.disableButton('bordercolor');
-                            }
-                            break;
-                        case 'bordertype':
-                            if (this.browser.webkit && this._lastImage) {
-                                Dom.removeClass(this._lastImage, 'selected');
-                                this._lastImage = null;
-                            }
-                            borderString = size + 'px ' + o.button.value + ' ' + color;
-                            el.style.border = borderString;
-                            break;
-                        case 'right':
-                        case 'left':
-                            tbar.deselectAllButtons();
-                            el.style.display = '';
-                            el.align = o.button.value;
-                            break;
-                        case 'inline':
-                            tbar.deselectAllButtons();
-                            el.style.display = '';
-                            el.align = '';
-                            break;
-                        case 'block':
-                            tbar.deselectAllButtons();
-                            el.style.display = 'block';
-                            el.align = 'center';
-                            break;
-                        case 'padding':
-                            var _button = tbar.getButtonById(o.button.id);
-                            el.style.margin = _button.get('label') + 'px';
-                            break;
-                    }
-                    tbar.selectButton(o.button.value);
-                    if (value !== 'padding') {
-                        this.moveWindow();
-                    }
-                }, this, true);
-
-
-
-                if (this.get('localFileWarning')) {
-                    Event.on(this.get('id') + '_insertimage_link', 'blur', function() {
-                        var url = Dom.get(this.get('id') + '_insertimage_link');
-                        if (this._isLocalFile(url.value)) {
-                            //Local File throw Warning
-                            Dom.addClass(url, 'warning');
-                            this.get('panel').setFooter(this.STR_LOCAL_FILE_WARNING);
-                        } else {
-                            Dom.removeClass(url, 'warning');
-                            this.get('panel').setFooter(' ');
-                            //Adobe AIR Code
-                            if ((this.browser.webkit && !this.browser.webkit3 || this.browser.air) || this.browser.opera) {                
-                                this.get('panel').setFooter(this.STR_IMAGE_COPY);
-                            }
-                        }
-                    }, this, true);
-                }
-
-                Event.on(this.get('id') + '_insertimage_url', 'blur', function() {
-                    var url = Dom.get(this.get('id') + '_insertimage_url'),
-                        el = this.currentElement[0];
-
-                    if (url.value && el) {
-                        if (url.value == el.getAttribute('src', 2)) {
-                            return false;
-                        }
-                    }
-                    if (this._isLocalFile(url.value)) {
-                        //Local File throw Warning
-                        Dom.addClass(url, 'warning');
-                        this.get('panel').setFooter(this.STR_LOCAL_FILE_WARNING);
-                    } else if (this.currentElement[0]) {
-                        Dom.removeClass(url, 'warning');
-                        this.get('panel').setFooter(' ');
-                        //Adobe AIR Code
-                        if ((this.browser.webkit && !this.browser.webkit3 || this.browser.air) || this.browser.opera) {                
-                            this.get('panel').setFooter(this.STR_IMAGE_COPY);
-                        }
-                        
-                        if (url && url.value && (url.value != this.STR_IMAGE_HERE)) {
-                            this.currentElement[0].setAttribute('src', url.value);
-                            var self = this,
-                                img = new Image();
-
-                            img.onerror = function() {
-                                url.value = self.STR_IMAGE_HERE;
-                                img.setAttribute('src', self.get('blankimage'));
-                                self.currentElement[0].setAttribute('src', self.get('blankimage'));
-                                YAHOO.util.Dom.get(self.get('id') + '_insertimage_height').value = img.height;
-                                YAHOO.util.Dom.get(self.get('id') + '_insertimage_width').value = img.width;
-                            };
-                            var id = this.get('id');
-                            window.setTimeout(function() {
-                                YAHOO.util.Dom.get(id + '_insertimage_height').value = img.height;
-                                YAHOO.util.Dom.get(id + '_insertimage_width').value = img.width;
-                                if (self.currentElement && self.currentElement[0]) {
-                                    if (!self.currentElement[0]._height) {
-                                        self.currentElement[0]._height = img.height;
-                                    }
-                                    if (!self.currentElement[0]._width) {
-                                        self.currentElement[0]._width = img.width;
-                                    }
-                                }
-                                //Removed moveWindow call so the window doesn't jump
-                                //self.moveWindow();
-                            }, 800); //Bumped the timeout up to account for larger images..
-
-                            if (url.value != this.STR_IMAGE_HERE) {
-                                img.src = url.value;
-                            }
-                        }
-                    }
-                    }, this, true);
-
-
-
-                this._windows.insertimage = {};
-                this._windows.insertimage.body = body;
-                //body.style.display = 'none';
-                this.get('panel').editor_form.appendChild(body);
-                this.fireEvent('windowInsertImageRender', { type: 'windowInsertImageRender', panel: this.get('panel'), body: body, toolbar: tbar });
-                return body;
-        },
-        /**
-        * @private
-        * @method _handleInsertImageClick
-        * @description Opens the Image Properties Window when the insert Image button is clicked or an Image is Double Clicked.
-        */
-        _handleInsertImageClick: function() {
-            if (this.get('limitCommands')) {
-                if (!this.toolbar.getButtonByValue('insertimage')) {
-                    return false;
-                }
-            }
-            this.on('afterExecCommand', function() {
-                var el = this.currentElement[0],
-                    body = null,
-                    link = '',
-                    target = '',
-                    tbar = null,
-                    title = '',
-                    src = '',
-                    align = '',
-                    height = 75,
-                    width = 75,
-                    padding = 0,
-                    oheight = 0,
-                    owidth = 0,
-                    blankimage = false,
-                    win = new YAHOO.widget.EditorWindow('insertimage', {
-                        width: '415px'
-                    });
-
-                if (!el) {
-                    el = this._getSelectedElement();
-                }
-                if (el) {
-                    win.el = el;
-                    if (el.getAttribute('src')) {
-                        src = el.getAttribute('src', 2);
-                        if (src.indexOf(this.get('blankimage')) != -1) {
-                            src = this.STR_IMAGE_HERE;
-                            blankimage = true;
-                        }
-                    }
-                    if (el.getAttribute('alt', 2)) {
-                        title = el.getAttribute('alt', 2);
-                    }
-                    if (el.getAttribute('title', 2)) {
-                        title = el.getAttribute('title', 2);
-                    }
-
-                    if (el.parentNode && this._isElement(el.parentNode, 'a')) {
-                        link = el.parentNode.getAttribute('href', 2);
-                        if (el.parentNode.getAttribute('target') !== null) {
-                            target = el.parentNode.getAttribute('target');
-                        }
-                    }
-                    height = parseInt(el.height, 10);
-                    width = parseInt(el.width, 10);
-                    if (el.style.height) {
-                        height = parseInt(el.style.height, 10);
-                    }
-                    if (el.style.width) {
-                        width = parseInt(el.style.width, 10);
-                    }
-                    if (el.style.margin) {
-                        padding = parseInt(el.style.margin, 10);
-                    }
-                    if (!blankimage) {
-                        if (!el._height) {
-                            el._height = height;
-                        }
-                        if (!el._width) {
-                            el._width = width;
-                        }
-                        oheight = el._height;
-                        owidth = el._width;
-                    }
-                }
-                if (this._windows.insertimage && this._windows.insertimage.body) {
-                    body = this._windows.insertimage.body;
-                    this._defaultImageToolbar.resetAllButtons();
-                } else {
-                    body = this._renderInsertImageWindow();
-                }
-
-                tbar = this._defaultImageToolbar;
-                tbar.editor_el = el;
-                
-
-                var bsize = '0',
-                    btype = 'solid';
-
-                if (el.style.borderLeftWidth) {
-                    bsize = parseInt(el.style.borderLeftWidth, 10);
-                }
-                if (el.style.borderLeftStyle) {
-                    btype = el.style.borderLeftStyle;
-                }
-                var bs_button = tbar.getButtonByValue('bordersize'),
-                    bSizeStr = ((parseInt(bsize, 10) > 0) ? '' : this.STR_NONE);
-                bs_button.set('label', '<span class="yui-toolbar-bordersize-' + bsize + '">' + bSizeStr + '</span>');
-                this._updateMenuChecked('bordersize', bsize, tbar);
-
-                var bt_button = tbar.getButtonByValue('bordertype');
-                bt_button.set('label', '<span class="yui-toolbar-bordertype-' + btype + '">asdfa</span>');
-                this._updateMenuChecked('bordertype', btype, tbar);
-                if (parseInt(bsize, 10) > 0) {
-                    tbar.enableButton(bt_button);
-                    tbar.enableButton(bs_button);
-                    tbar.enableButton('bordercolor');
-                }
-
-                if ((el.align == 'right') || (el.align == 'left')) {
-                    tbar.selectButton(el.align);
-                } else if (el.style.display == 'block') {
-                    tbar.selectButton('block');
-                } else {
-                    tbar.selectButton('inline');
-                }
-                if (parseInt(el.style.marginLeft, 10) > 0) {
-                    tbar.getButtonByValue('padding').set('label', ''+parseInt(el.style.marginLeft, 10));
-                }
-                if (el.style.borderSize) {
-                    tbar.selectButton('bordersize');
-                    tbar.selectButton(parseInt(el.style.borderSize, 10));
-                }
-                tbar.getButtonByValue('padding').set('label', ''+padding);
-
-
-
-                win.setHeader(this.STR_IMAGE_PROP_TITLE);
-                win.setBody(body);
-                //Adobe AIR Code
-                if ((this.browser.webkit && !this.browser.webkit3 || this.browser.air) || this.browser.opera) {                
-                    win.setFooter(this.STR_IMAGE_COPY);
-                }
-                this.openWindow(win);
-                Dom.get(this.get('id') + '_insertimage_url').value = src;
-                Dom.get(this.get('id') + '_insertimage_title').value = title;
-                Dom.get(this.get('id') + '_insertimage_link').value = link;
-                Dom.get(this.get('id') + '_insertimage_target').checked = ((target) ? true : false);
-                Dom.get(this.get('id') + '_insertimage_width').value = width;
-                Dom.get(this.get('id') + '_insertimage_height').value = height;
-
-
-                if (((height != oheight) || (width != owidth)) && (!blankimage)) {
-                    var s = document.createElement('span');
-                    s.className = 'info';
-                    s.innerHTML = this.STR_IMAGE_ORIG_SIZE + ': ('+ owidth +' x ' + oheight + ')';
-                    if (Dom.get(this.get('id') + '_insertimage_height').nextSibling) {
-                        var old = Dom.get(this.get('id') + '_insertimage_height').nextSibling;
-                        old.parentNode.removeChild(old);
-                    }
-                    Dom.get(this.get('id') + '_insertimage_height').parentNode.appendChild(s);
-                }
-
-                this.toolbar.selectButton('insertimage');
-                var id = this.get('id');
-                window.setTimeout(function() {
-                    try {
-                        YAHOO.util.Dom.get(id + '_insertimage_url').focus();
-                        if (blankimage) {
-                            YAHOO.util.Dom.get(id + '_insertimage_url').select();
-                        }
-                    } catch (e) {}
-                }, 50);
-
-            });
-        },
-        /**
-        * @private
-        * @method _handleInsertImageWindowClose
-        * @description Handles the closing of the Image Properties Window.
-        */
-        _handleInsertImageWindowClose: function() {
-            var url = Dom.get(this.get('id') + '_insertimage_url'),
-                title = Dom.get(this.get('id') + '_insertimage_title'),
-                link = Dom.get(this.get('id') + '_insertimage_link'),
-                target = Dom.get(this.get('id') + '_insertimage_target'),
-                el = arguments[0].win.el;
-
-            if (url && url.value && (url.value != this.STR_IMAGE_HERE)) {
-                el.setAttribute('src', url.value);
-                el.setAttribute('title', title.value);
-                el.setAttribute('alt', title.value);
-                var par = el.parentNode;
-                if (link.value) {
-                    var urlValue = link.value;
-                    if ((urlValue.indexOf(':/'+'/') == -1) && (urlValue.substring(0,1) != '/') && (urlValue.substring(0, 6).toLowerCase() != 'mailto')) {
-                        if ((urlValue.indexOf('@') != -1) && (urlValue.substring(0, 6).toLowerCase() != 'mailto')) {
-                            //Found an @ sign, prefix with mailto:
-                            urlValue = 'mailto:' + urlValue;
-                        } else {
-                            // :// not found adding
-                            urlValue = 'http:/'+'/' + urlValue;
-                        }
-                    }
-                    if (par && this._isElement(par, 'a')) {
-                        par.setAttribute('href', urlValue);
-                        if (target.checked) {
-                            par.setAttribute('target', target.value);
-                        } else {
-                            par.setAttribute('target', '');
-                        }
-                    } else {
-                        var _a = this._getDoc().createElement('a');
-                        _a.setAttribute('href', urlValue);
-                        if (target.checked) {
-                            _a.setAttribute('target', target.value);
-                        } else {
-                            _a.setAttribute('target', '');
-                        }
-                        el.parentNode.replaceChild(_a, el);
-                        _a.appendChild(el);
-                    }
-                } else {
-                    if (par && this._isElement(par, 'a')) {
-                        par.parentNode.replaceChild(el, par);
-                    }
-                }
-            } else {
-                //No url/src given, remove the node from the document
-                el.parentNode.removeChild(el);
-            }
-            Dom.get(this.get('id') + '_insertimage_url').value = '';
-            Dom.get(this.get('id') + '_insertimage_title').value = '';
-            Dom.get(this.get('id') + '_insertimage_link').value = '';
-            Dom.get(this.get('id') + '_insertimage_target').checked = false;
-            Dom.get(this.get('id') + '_insertimage_width').value = 0;
-            Dom.get(this.get('id') + '_insertimage_height').value = 0;
-            this._defaultImageToolbar.resetAllButtons();
-            this.currentElement = [];
-            this.nodeChange();
-        },
-        /**
-        * @property EDITOR_PANEL_ID
-        * @description HTML id to give the properties window in the DOM.
-        * @type String
-        */
-        EDITOR_PANEL_ID: '-panel',
-        /**
-        * @private
-        * @method _renderPanel
-        * @description Renders the panel used for Editor Windows to the document so we can start using it..
-        * @return {<a href="YAHOO.widget.Overlay.html">YAHOO.widget.Overlay</a>}
-        */
-        _renderPanel: function() {
-            var panelEl = document.createElement('div');
-            Dom.addClass(panelEl, 'yui-editor-panel');
-            panelEl.id = this.get('id') + this.EDITOR_PANEL_ID;
-            panelEl.style.position = 'absolute';
-            panelEl.style.top = '-9999px';
-            panelEl.style.left = '-9999px';
-            document.body.appendChild(panelEl);
-            this.get('element_cont').insertBefore(panelEl, this.get('element_cont').get('firstChild'));
-
-                
-
-            var panel = new YAHOO.widget.Overlay(this.get('id') + this.EDITOR_PANEL_ID, {
-                    width: '300px',
-                    iframe: true,
-                    visible: false,
-                    underlay: 'none',
-                    draggable: false,
-                    close: false
-                });
-            this.set('panel', panel);
-
-            panel.setBody('---');
-            panel.setHeader(' ');
-            panel.setFooter(' ');
-
-
-            var body = document.createElement('div');
-            body.className = this.CLASS_PREFIX + '-body-cont';
-            for (var b in this.browser) {
-                if (this.browser[b]) {
-                    Dom.addClass(body, b);
-                    break;
-                }
-            }
-            Dom.addClass(body, ((YAHOO.widget.Button && (this._defaultToolbar.buttonType == 'advanced')) ? 'good-button' : 'no-button'));
-
-            var _note = document.createElement('h3');
-            _note.className = 'yui-editor-skipheader';
-            _note.innerHTML = this.STR_CLOSE_WINDOW_NOTE;
-            body.appendChild(_note);
-            var form = document.createElement('fieldset');
-            panel.editor_form = form;
-
-            body.appendChild(form);
-            var _close = document.createElement('span');
-            _close.innerHTML = 'X';
-            _close.title = this.STR_CLOSE_WINDOW;
-            _close.className = 'close';
-            
-            Event.on(_close, 'click', this.closeWindow, this, true);
-
-            var _knob = document.createElement('span');
-            _knob.innerHTML = '^';
-            _knob.className = 'knob';
-            panel.editor_knob = _knob;
-
-            var _header = document.createElement('h3');
-            panel.editor_header = _header;
-            _header.innerHTML = '<span></span>';
-
-            panel.setHeader(' '); //Clear the current header
-            panel.appendToHeader(_header);
-            _header.appendChild(_close);
-            _header.appendChild(_knob);
-            panel.setBody(' '); //Clear the current body
-            panel.setFooter(' '); //Clear the current footer
-            panel.appendToBody(body); //Append the new DOM node to it
-
-            Event.on(panel.element, 'click', function(ev) {
-                Event.stopPropagation(ev);
-            });
-
-            var fireShowEvent = function() {
-                panel.bringToTop();
-                YAHOO.util.Dom.setStyle(this.element, 'display', 'block');
-                this._handleWindowInputs(false);
-            };
-            panel.showEvent.subscribe(fireShowEvent, this, true);
-            panel.hideEvent.subscribe(function() {
-                this._handleWindowInputs(true);
-            }, this, true);
-            panel.renderEvent.subscribe(function() {
-                this._renderInsertImageWindow();
-                this._renderCreateLinkWindow();
-                this.fireEvent('windowRender', { type: 'windowRender', panel: panel });
-                this._handleWindowInputs(true);
-            }, this, true);
-
-            if (this.DOMReady) {
-                this.get('panel').render();
-            } else {
-                Event.onDOMReady(function() {
-                    this.get('panel').render();
-                }, this, true);
-            }
-            return this.get('panel');
-        },
-        /**
-        * @method _handleWindowInputs
-        * @param {Boolean} disable The state to set all inputs in all Editor windows to. Defaults to: false.
-        * @description Disables/Enables all fields inside Editor windows. Used in show/hide events to keep window fields from submitting when the parent form is submitted.
-        */
-        _handleWindowInputs: function(disable) {
-            if (!Lang.isBoolean(disable)) {
-                disable = false;
-            }
-            var inputs = this.get('panel').element.getElementsByTagName('input');
-            for (var i = 0; i < inputs.length; i++) {
-                try {
-                    inputs[i].disabled = disable;
-                } catch (e) {}
-            }
-        },
-        /**
-        * @method openWindow
-        * @param {<a href="YAHOO.widget.EditorWindow.html">YAHOO.widget.EditorWindow</a>} win A <a href="YAHOO.widget.EditorWindow.html">YAHOO.widget.EditorWindow</a> instance
-        * @description Opens a new "window/panel"
-        */
-        openWindow: function(win) {
-            
-            var self = this;
-            window.setTimeout(function() {
-                self.toolbar.set('disabled', true); //Disable the toolbar when an editor window is open..
-            }, 10);
-            Event.on(document, 'keydown', this._closeWindow, this, true);
-            
-            if (this.currentWindow) {
-                this.closeWindow();
-            }
-            
-            var xy = Dom.getXY(this.currentElement[0]),
-            elXY = Dom.getXY(this.get('iframe').get('element')),
-            panel = this.get('panel'),
-            newXY = [(xy[0] + elXY[0] - 20), (xy[1] + elXY[1] + 10)],
-            wWidth = (parseInt(win.attrs.width, 10) / 2),
-            align = 'center',
-            body = null;
-
-            this.fireEvent('beforeOpenWindow', { type: 'beforeOpenWindow', win: win, panel: panel });
-
-            var form = panel.editor_form;
-            
-            var wins = this._windows;
-            for (var b in wins) {
-                if (Lang.hasOwnProperty(wins, b)) {
-                    if (wins[b] && wins[b].body) {
-                        if (b == win.name) {
-                            Dom.setStyle(wins[b].body, 'display', 'block');
-                        } else {
-                            Dom.setStyle(wins[b].body, 'display', 'none');
-                        }
-                    }
-                }
-            }
-            
-            if (this._windows[win.name].body) {
-                Dom.setStyle(this._windows[win.name].body, 'display', 'block');
-                form.appendChild(this._windows[win.name].body);
-            } else {
-                if (Lang.isObject(win.body)) { //Assume it's a reference
-                    form.appendChild(win.body);
-                } else { //Assume it's a string
-                    var _tmp = document.createElement('div');
-                    _tmp.innerHTML = win.body;
-                    form.appendChild(_tmp);
-                }
-            }
-            panel.editor_header.firstChild.innerHTML = win.header;
-            if (win.footer !== null) {
-                panel.setFooter(win.footer);
-            }
-            panel.cfg.setProperty('width', win.attrs.width);
-
-            this.currentWindow = win;
-            this.moveWindow(true);
-            panel.show();
-            this.fireEvent('afterOpenWindow', { type: 'afterOpenWindow', win: win, panel: panel });
-        },
-        /**
-        * @method moveWindow
-        * @param {Boolean} force Boolean to tell it to move but not use any animation (Usually done the first time the window is loaded.)
-        * @description Realign the window with the currentElement and reposition the knob above the panel.
-        */
-        moveWindow: function(force) {
-            if (!this.currentWindow) {
-                return false;
-            }
-            var win = this.currentWindow,
-                xy = Dom.getXY(this.currentElement[0]),
-                elXY = Dom.getXY(this.get('iframe').get('element')),
-                panel = this.get('panel'),
-                //newXY = [(xy[0] + elXY[0] - 20), (xy[1] + elXY[1] + 10)],
-                newXY = [(xy[0] + elXY[0]), (xy[1] + elXY[1])],
-                wWidth = (parseInt(win.attrs.width, 10) / 2),
-                align = 'center',
-                orgXY = panel.cfg.getProperty('xy') || [0,0],
-                _knob = panel.editor_knob,
-                xDiff = 0,
-                yDiff = 0,
-                anim = false;
-
-
-            newXY[0] = ((newXY[0] - wWidth) + 20);
-            //Account for the Scroll bars in a scrolled editor window.
-            newXY[0] = newXY[0] - Dom.getDocumentScrollLeft(this._getDoc());
-            newXY[1] = newXY[1] - Dom.getDocumentScrollTop(this._getDoc());
-            
-            if (this._isElement(this.currentElement[0], 'img')) {
-                if (this.currentElement[0].src.indexOf(this.get('blankimage')) != -1) {
-                    newXY[0] = (newXY[0] + (75 / 2)); //Placeholder size
-                    newXY[1] = (newXY[1] + 75); //Placeholder sizea
-                } else {
-                    var w = parseInt(this.currentElement[0].width, 10);
-                    var h = parseInt(this.currentElement[0].height, 10);
-                    newXY[0] = (newXY[0] + (w / 2));
-                    newXY[1] = (newXY[1] + h);
-                }
-                newXY[1] = newXY[1] + 15;
-            } else {
-                var fs = Dom.getStyle(this.currentElement[0], 'fontSize');
-                if (fs && fs.indexOf && fs.indexOf('px') != -1) {
-                    newXY[1] = newXY[1] + parseInt(Dom.getStyle(this.currentElement[0], 'fontSize'), 10) + 5;
-                } else {
-                    newXY[1] = newXY[1] + 20;
-                }
-            }
-            if (newXY[0] < elXY[0]) {
-                newXY[0] = elXY[0] + 5;
-                align = 'left';
-            }
-
-            if ((newXY[0] + (wWidth * 2)) > (elXY[0] + parseInt(this.get('iframe').get('element').clientWidth, 10))) {
-                newXY[0] = ((elXY[0] + parseInt(this.get('iframe').get('element').clientWidth, 10)) - (wWidth * 2) - 5);
-                align = 'right';
-            }
-            
-            try {
-                xDiff = (newXY[0] - orgXY[0]);
-                yDiff = (newXY[1] - orgXY[1]);
-            } catch (e) {}
-
-
-            var iTop = elXY[1] + parseInt(this.get('height'), 10);
-            var iLeft = elXY[0] + parseInt(this.get('width'), 10);
-            if (newXY[1] > iTop) {
-                newXY[1] = iTop;
-            }
-            if (newXY[0] > iLeft) {
-                newXY[0] = (iLeft / 2);
-            }
-            
-            //Convert negative numbers to positive so we can get the difference in distance
-            xDiff = ((xDiff < 0) ? (xDiff * -1) : xDiff);
-            yDiff = ((yDiff < 0) ? (yDiff * -1) : yDiff);
-
-            if (((xDiff > 10) || (yDiff > 10)) || force) { //Only move the window if it's supposed to move more than 10px or force was passed (new window)
-                var _knobLeft = 0,
-                    elW = 0;
-
-                if (this.currentElement[0].width) {
-                    elW = (parseInt(this.currentElement[0].width, 10) / 2);
-                }
-
-                var leftOffset = xy[0] + elXY[0] + elW;
-                _knobLeft = leftOffset - newXY[0];
-                //Check to see if the knob will go off either side & reposition it
-                if (_knobLeft > (parseInt(win.attrs.width, 10) - 1)) {
-                    _knobLeft = ((parseInt(win.attrs.width, 10) - 30) - 1);
-                } else if (_knobLeft < 40) {
-                    _knobLeft = 1;
-                }
-                if (isNaN(_knobLeft)) {
-                    _knobLeft = 1;
-                }
-                if (force) {
-                    if (_knob) {
-                        _knob.style.left = _knobLeft + 'px';
-                    }
-                    //Removed Animation from a forced move..
-                    panel.cfg.setProperty('xy', newXY);
-                } else {
-                    if (this.get('animate')) {
-                        anim = new YAHOO.util.Anim(panel.element, {}, 0.5, YAHOO.util.Easing.easeOut);
-                        anim.attributes = {
-                            top: {
-                                to: newXY[1]
-                            },
-                            left: {
-                                to: newXY[0]
-                            }
-                        };
-                        anim.onComplete.subscribe(function() {
-                            panel.cfg.setProperty('xy', newXY);
-                        });
-                        //We have to animate the iframe shim at the same time as the panel or we get scrollbar bleed ..
-                        var iframeAnim = new YAHOO.util.Anim(panel.iframe, anim.attributes, 0.5, YAHOO.util.Easing.easeOut);
-
-                        var _knobAnim = new YAHOO.util.Anim(_knob, {
-                            left: {
-                                to: _knobLeft
-                            }
-                        }, 0.6, YAHOO.util.Easing.easeOut);
-                        anim.animate();
-                        iframeAnim.animate();
-                        _knobAnim.animate();
-                    } else {
-                        _knob.style.left = _knobLeft + 'px';
-                        panel.cfg.setProperty('xy', newXY);
-                    }
-                }
-            }
-        },
-        /**
-        * @private
-        * @method _closeWindow
-        * @description Close the currently open EditorWindow with the Escape key.
-        * @param {Event} ev The keypress Event that we are trapping
-        */
-        _closeWindow: function(ev) {
-            //if ((ev.charCode == 87) && ev.shiftKey && ev.ctrlKey) {
-            if (this._checkKey(this._keyMap.CLOSE_WINDOW, ev)) {            
-                if (this.currentWindow) {
-                    this.closeWindow();
-                }
-            }
-        },
-        /**
-        * @method closeWindow
-        * @description Close the currently open EditorWindow.
-        */
-        closeWindow: function(keepOpen) {
-            this.fireEvent('window' + this.currentWindow.name + 'Close', { type: 'window' + this.currentWindow.name + 'Close', win: this.currentWindow, el: this.currentElement[0] });
-            this.fireEvent('closeWindow', { type: 'closeWindow', win: this.currentWindow });
-            this.currentWindow = null;
-            this.get('panel').hide();
-            this.get('panel').cfg.setProperty('xy', [-900,-900]);
-            this.get('panel').syncIframe(); //Needed to move the iframe with the hidden panel
-            this.unsubscribeAll('afterExecCommand');
-            this.toolbar.set('disabled', false); //enable the toolbar now that the window is closed
-            this.toolbar.resetAllButtons();
-            this.focus();
-            Event.removeListener(document, 'keydown', this._closeWindow);
-        },
-
-        /* {{{  Command Overrides - These commands are only over written when we are using the advanced version */
-        
-        /**
-        * @method cmd_undo
-        * @description Pulls an item from the Undo stack and updates the Editor
-        * @param value Value passed from the execCommand method
-        */
-        cmd_undo: function(value) {
-            if (this._hasUndoLevel()) {
-                var c_html = this.getEditorHTML(), html;
-                if (!this._undoLevel) {
-                    this._undoLevel = this._undoCache.length;
-                }
-                this._undoLevel = (this._undoLevel - 1);
-                if (this._undoCache[this._undoLevel]) {
-                    html = this._getUndo(this._undoLevel);
-                    if (html != c_html) {
-                        this.setEditorHTML(html);
-                    } else {
-                        this._undoLevel = (this._undoLevel - 1);
-                        html = this._getUndo(this._undoLevel);
-                        if (html != c_html) {
-                            this.setEditorHTML(html);
-                        }
-                    }
-                } else {
-                    this._undoLevel = 0;
-                    this.toolbar.disableButton('undo');
-                }
-            }
-            return [false];
-        },
-
-        /**
-        * @method cmd_redo
-        * @description Pulls an item from the Undo stack and updates the Editor
-        * @param value Value passed from the execCommand method
-        */
-        cmd_redo: function(value) {
-            this._undoLevel = this._undoLevel + 1;
-            if (this._undoLevel >= this._undoCache.length) {
-                this._undoLevel = this._undoCache.length;
-            }
-            if (this._undoCache[this._undoLevel]) {
-                var html = this._getUndo(this._undoLevel);
-                this.setEditorHTML(html);
-            } else {
-                this.toolbar.disableButton('redo');
-            }
-            return [false];
-        },       
-        
-        /**
-        * @method cmd_heading
-        * @param value Value passed from the execCommand method
-        * @description This is an execCommand override method. It is called from execCommand when the execCommand('heading') is used.
-        */
-        cmd_heading: function(value) {
-            var exec = true,
-                el = null,
-                action = 'heading',
-                _sel = this._getSelection(),
-                _selEl = this._getSelectedElement();
-
-            if (_selEl) {
-                _sel = _selEl;
-            }
-            
-            if (this.browser.ie) {
-                action = 'formatblock';
-            }
-            if (value == this.STR_NONE) {
-                if ((_sel && _sel.tagName && (_sel.tagName.toLowerCase().substring(0,1) == 'h')) || (_sel && _sel.parentNode && _sel.parentNode.tagName && (_sel.parentNode.tagName.toLowerCase().substring(0,1) == 'h'))) {
-                    if (_sel.parentNode.tagName.toLowerCase().substring(0,1) == 'h') {
-                        _sel = _sel.parentNode;
-                    }
-                    if (this._isElement(_sel, 'html')) {
-                        return [false];
-                    }
-                    el = this._swapEl(_selEl, 'span', function(el) {
-                        el.className = 'yui-non';
-                    });
-                    this._selectNode(el);
-                    this.currentElement[0] = el;
-                }
-                exec = false;
-            } else {
-                if (this._isElement(_selEl, 'h1') || this._isElement(_selEl, 'h2') || this._isElement(_selEl, 'h3') || this._isElement(_selEl, 'h4') || this._isElement(_selEl, 'h5') || this._isElement(_selEl, 'h6')) {
-                    el = this._swapEl(_selEl, value);
-                    this._selectNode(el);
-                    this.currentElement[0] = el;
-                } else {
-                    this._createCurrentElement(value);
-                    this._selectNode(this.currentElement[0]);
-                }
-                exec = false;
-            }
-            return [exec, action];
-        },
-        /**
-        * @method cmd_hiddenelements
-        * @param value Value passed from the execCommand method
-        * @description This is an execCommand override method. It is called from execCommand when the execCommand('hiddenelements') is used.
-        */
-        cmd_hiddenelements: function(value) {
-            if (this._showingHiddenElements) {
-                //Don't auto highlight the hidden button
-                this._lastButton = null;
-                this._showingHiddenElements = false;
-                this.toolbar.deselectButton('hiddenelements');
-                Dom.removeClass(this._getDoc().body, this.CLASS_HIDDEN);
-            } else {
-                this._showingHiddenElements = true;
-                Dom.addClass(this._getDoc().body, this.CLASS_HIDDEN);
-                this.toolbar.selectButton('hiddenelements');
-            }
-            return [false];
-        },
-        /**
-        * @method cmd_removeformat
-        * @param value Value passed from the execCommand method
-        * @description This is an execCommand override method. It is called from execCommand when the execCommand('removeformat') is used.
-        */
-        cmd_removeformat: function(value) {
-            var exec = true;
-            /*
-            * @knownissue Remove Format issue
-            * @browser Safari 2.x
-            * @description There is an issue here with Safari, that it may not always remove the format of the item that is selected.
-            * Due to the way that Safari 2.x handles ranges, it is very difficult to determine what the selection holds.
-            * So here we are making the best possible guess and acting on it.
-            */
-            if (this.browser.webkit && !this._getDoc().queryCommandEnabled('removeformat')) {
-                var _txt = this._getSelection()+'';
-                this._createCurrentElement('span');
-                this.currentElement[0].className = 'yui-non';
-                this.currentElement[0].innerHTML = _txt;
-                for (var i = 1; i < this.currentElement.length; i++) {
-                    this.currentElement[i].parentNode.removeChild(this.currentElement[i]);
-                }
-                
-                exec = false;
-            }
-            return [exec];
-        },
-        /**
-        * @method cmd_script
-        * @param action action passed from the execCommand method
-        * @param value Value passed from the execCommand method
-        * @description This is a combined execCommand override method. It is called from the cmd_superscript and cmd_subscript methods.
-        */
-        cmd_script: function(action, value) {
-            var exec = true, tag = action.toLowerCase().substring(0, 3),
-                _span = null, _selEl = this._getSelectedElement();
-
-            if (this.browser.webkit) {
-                if (this._isElement(_selEl, tag)) {
-                    _span = this._swapEl(this.currentElement[0], 'span', function(el) {
-                        el.className = 'yui-non';
-                    });
-                    this._selectNode(_span);
-                } else {
-                    this._createCurrentElement(tag);
-                    var _sub = this._swapEl(this.currentElement[0], tag);
-                    this._selectNode(_sub);
-                    this.currentElement[0] = _sub;
-                }
-                exec = false;
-            }
-            return exec;
-        },
-        /**
-        * @method cmd_superscript
-        * @param value Value passed from the execCommand method
-        * @description This is an execCommand override method. It is called from execCommand when the execCommand('superscript') is used.
-        */
-        cmd_superscript: function(value) {
-            return [this.cmd_script('superscript', value)];
-        },
-        /**
-        * @method cmd_subscript
-        * @param value Value passed from the execCommand method
-        * @description This is an execCommand override method. It is called from execCommand when the execCommand('subscript') is used.
-        */
-        cmd_subscript: function(value) {
-            return [this.cmd_script('subscript', value)];
-        },
-        /**
-        * @method cmd_indent
-        * @param value Value passed from the execCommand method
-        * @description This is an execCommand override method. It is called from execCommand when the execCommand('indent') is used.
-        */
-        cmd_indent: function(value) {
-            var exec = true, selEl = this._getSelectedElement(), _bq = null;
-
-            //if (this.browser.webkit || this.browser.ie || this.browser.gecko) {
-            //if (this.browser.webkit || this.browser.ie) {
-            if (this.browser.ie) {
-                if (this._isElement(selEl, 'blockquote')) {
-                    _bq = this._getDoc().createElement('blockquote');
-                    _bq.innerHTML = selEl.innerHTML;
-                    selEl.innerHTML = '';
-                    selEl.appendChild(_bq);
-                    this._selectNode(_bq);
-                } else {
-                    _bq = this._getDoc().createElement('blockquote');
-                    var html = this._getRange().htmlText;
-                    _bq.innerHTML = html;
-                    this._createCurrentElement('blockquote');
-                    /*
-                    for (var i = 0; i < this.currentElement.length; i++) {
-                        _bq = this._getDoc().createElement('blockquote');
-                        _bq.innerHTML = this.currentElement[i].innerHTML;
-                        this.currentElement[i].parentNode.replaceChild(_bq, this.currentElement[i]);
-                        this.currentElement[i] = _bq;
-                    }
-                    */
-                    this.currentElement[0].parentNode.replaceChild(_bq, this.currentElement[0]);
-                    this.currentElement[0] = _bq;
-                    this._selectNode(this.currentElement[0]);
-                }
-                exec = false;
-            } else {
-                value = 'blockquote';
-            }
-            return [exec, 'formatblock', value];
-        },
-        /**
-        * @method cmd_outdent
-        * @param value Value passed from the execCommand method
-        * @description This is an execCommand override method. It is called from execCommand when the execCommand('outdent') is used.
-        */
-        cmd_outdent: function(value) {
-            var exec = true, selEl = this._getSelectedElement(), _bq = null, _span = null;
-            //if (this.browser.webkit || this.browser.ie || this.browser.gecko) {
-            if (this.browser.webkit || this.browser.ie) {
-            //if (this.browser.ie) {
-                selEl = this._getSelectedElement();
-                if (this._isElement(selEl, 'blockquote')) {
-                    var par = selEl.parentNode;
-                    if (this._isElement(selEl.parentNode, 'blockquote')) {
-                        par.innerHTML = selEl.innerHTML;
-                        this._selectNode(par);
-                    } else {
-                        _span = this._getDoc().createElement('span');
-                        _span.innerHTML = selEl.innerHTML;
-                        YAHOO.util.Dom.addClass(_span, 'yui-non');
-                        par.replaceChild(_span, selEl);
-                        this._selectNode(_span);
-                    }
-                } else {
-                }
-                exec = false;
-            } else {
-                value = false;
-            }
-            return [exec, 'outdent', value];
-        },
-        /**
-        * @method cmd_justify
-        * @param dir The direction to justify
-        * @description This is a factory method for the justify family of commands.
-        */
-        cmd_justify: function(dir) {
-            if (this.browser.ie) {
-                if (this._hasSelection()) {
-                    this._createCurrentElement('span');
-                    this._swapEl(this.currentElement[0], 'div', function(el) {
-                        el.style.textAlign = dir;
-                    });
-                    
-                    return [false];
-                }
-            }
-            return [true, 'justify' + dir, ''];
-        },
-        /**
-        * @method cmd_justifycenter
-        * @param value Value passed from the execCommand method
-        * @description This is an execCommand override method. It is called from execCommand when the execCommand('justifycenter') is used.
-        */
-        cmd_justifycenter: function() {
-            return [this.cmd_justify('center')];
-        },
-        /**
-        * @method cmd_justifyleft
-        * @param value Value passed from the execCommand method
-        * @description This is an execCommand override method. It is called from execCommand when the execCommand('justifyleft') is used.
-        */
-        cmd_justifyleft: function() {
-            return [this.cmd_justify('left')];
-        },
-        /**
-        * @method cmd_justifyright
-        * @param value Value passed from the execCommand method
-        * @description This is an execCommand override method. It is called from execCommand when the execCommand('justifyright') is used.
-        */
-        cmd_justifyright: function() {
-            return [this.cmd_justify('right')];
-        },
-        /* }}}*/        
-        /**
-        * @method toString
-        * @description Returns a string representing the editor.
-        * @return {String}
-        */
-        toString: function() {
-            var str = 'Editor';
-            if (this.get && this.get('element_cont')) {
-                str = 'Editor (#' + this.get('element_cont').get('id') + ')' + ((this.get('disabled') ? ' Disabled' : ''));
-            }
-            return str;
-        }
-    });
-/**
-* @event beforeOpenWindow
-* @param {<a href="YAHOO.widget.EditorWindow.html">EditorWindow</a>} win The EditorWindow object
-* @param {Overlay} panel The Overlay object that is used to create the window.
-* @description Event fires before an Editor Window is opened. See <a href="YAHOO.util.Element.html#addListener">Element.addListener</a> for more information on listening for this event.
-* @type YAHOO.util.CustomEvent
-*/
-/**
-* @event afterOpenWindow
-* @param {<a href="YAHOO.widget.EditorWindow.html">EditorWindow</a>} win The EditorWindow object
-* @param {Overlay} panel The Overlay object that is used to create the window.
-* @description Event fires after an Editor Window is opened. See <a href="YAHOO.util.Element.html#addListener">Element.addListener</a> for more information on listening for this event.
-* @type YAHOO.util.CustomEvent
-*/
-/**
-* @event closeWindow
-* @param {<a href="YAHOO.widget.EditorWindow.html">EditorWindow</a>} win The EditorWindow object
-* @description Event fires after an Editor Window is closed. See <a href="YAHOO.util.Element.html#addListener">Element.addListener</a> for more information on listening for this event.
-* @type YAHOO.util.CustomEvent
-*/
-/**
-* @event windowCMDOpen
-* @param {<a href="YAHOO.widget.EditorWindow.html">EditorWindow</a>} win The EditorWindow object
-* @param {Overlay} panel The Overlay object that is used to create the window.
-* @description Dynamic event fired when an <a href="YAHOO.widget.EditorWindow.html">EditorWindow</a> is opened.. The dynamic event is based on the name of the window. Example Window: createlink, opening this window would fire the windowcreatelinkOpen event. See <a href="YAHOO.util.Element.html#addListener">Element.addListener</a> for more information on listening for this event.
-* @type YAHOO.util.CustomEvent
-*/
-/**
-* @event windowCMDClose
-* @param {<a href="YAHOO.widget.EditorWindow.html">EditorWindow</a>} win The EditorWindow object
-* @param {Overlay} panel The Overlay object that is used to create the window.
-* @description Dynamic event fired when an <a href="YAHOO.widget.EditorWindow.html">EditorWindow</a> is closed.. The dynamic event is based on the name of the window. Example Window: createlink, opening this window would fire the windowcreatelinkClose event. See <a href="YAHOO.util.Element.html#addListener">Element.addListener</a> for more information on listening for this event.
-* @type YAHOO.util.CustomEvent
-*/
-/**
-* @event windowRender
-* @param {<a href="YAHOO.widget.EditorWindow.html">EditorWindow</a>} win The EditorWindow object
-* @param {Overlay} panel The Overlay object that is used to create the window.
-* @description Event fired when the initial Overlay is rendered. Can be used to manipulate the content of the panel.
-* @type YAHOO.util.CustomEvent
-*/
-/**
-* @event windowInsertImageRender
-* @param {Overlay} panel The Overlay object that is used to create the window.
-* @param {HTMLElement} body The HTML element used as the body of the window..
-* @param {Toolbar} toolbar A reference to the toolbar object used inside this window.
-* @description Event fired when the pre render of the Insert Image window has finished.
-* @type YAHOO.util.CustomEvent
-*/
-/**
-* @event windowCreateLinkRender
-* @param {Overlay} panel The Overlay object that is used to create the window.
-* @param {HTMLElement} body The HTML element used as the body of the window..
-* @description Event fired when the pre render of the Create Link window has finished.
-* @type YAHOO.util.CustomEvent
-*/
-
-
-
-    /**
-     * @description Class to hold Window information between uses. We use the same panel to show the windows, so using this will allow you to configure a window before it is shown.
-     * This is what you pass to Editor.openWindow();. These parameters will not take effect until the openWindow() is called in the editor.
-     * @class EditorWindow
-     * @param {String} name The name of the window.
-     * @param {Object} attrs Attributes for the window. Current attributes used are : height and width
-    */
-    YAHOO.widget.EditorWindow = function(name, attrs) {
-        /**
-        * @private
-        * @property name
-        * @description A unique name for the window
-        */
-        this.name = name.replace(' ', '_');
-        /**
-        * @private
-        * @property attrs
-        * @description The window attributes
-        */
-        this.attrs = attrs;
-    };
-
-    YAHOO.widget.EditorWindow.prototype = {
-        /**
-        * @private
-        * @property header
-        * @description Holder for the header of the window, used in Editor.openWindow
-        */
-        header: null,
-        /**
-        * @private
-        * @property body
-        * @description Holder for the body of the window, used in Editor.openWindow
-        */
-        body: null,
-        /**
-        * @private
-        * @property footer
-        * @description Holder for the footer of the window, used in Editor.openWindow
-        */
-        footer: null,
-        /**
-        * @method setHeader
-        * @description Sets the header for the window.
-        * @param {String/HTMLElement} str The string or DOM reference to be used as the windows header.
-        */
-        setHeader: function(str) {
-            this.header = str;
-        },
-        /**
-        * @method setBody
-        * @description Sets the body for the window.
-        * @param {String/HTMLElement} str The string or DOM reference to be used as the windows body.
-        */
-        setBody: function(str) {
-            this.body = str;
-        },
-        /**
-        * @method setFooter
-        * @description Sets the footer for the window.
-        * @param {String/HTMLElement} str The string or DOM reference to be used as the windows footer.
-        */
-        setFooter: function(str) {
-            this.footer = str;
-        },
-        /**
-        * @method toString
-        * @description Returns a string representing the EditorWindow.
-        * @return {String}
-        */
-        toString: function() {
-            return 'Editor Window (' + this.name + ')';
-        }
-    };
-})();
-YAHOO.register("editor", YAHOO.widget.Editor, {version: "2.8.0r4", build: "2449"});
diff --git a/koha-tmpl/intranet-tmpl/prog/en/lib/yui/editor/simpleeditor-debug.js b/koha-tmpl/intranet-tmpl/prog/en/lib/yui/editor/simpleeditor-debug.js
deleted file mode 100644 (file)
index f24d180..0000000
+++ /dev/null
@@ -1,7493 +0,0 @@
-/*
-Copyright (c) 2009, Yahoo! Inc. All rights reserved.
-Code licensed under the BSD License:
-http://developer.yahoo.net/yui/license.txt
-version: 2.8.0r4
-*/
-(function() {
-var Dom = YAHOO.util.Dom,
-    Event = YAHOO.util.Event,
-    Lang = YAHOO.lang;
-    /**
-     * @module editor    
-     * @description <p>Creates a rich custom Toolbar Button. Primarily used with the Rich Text Editor's Toolbar</p>
-     * @class ToolbarButtonAdvanced
-     * @namespace YAHOO.widget
-     * @requires yahoo, dom, element, event, container_core, menu, button
-     * 
-     * Provides a toolbar button based on the button and menu widgets.
-     * @constructor
-     * @class ToolbarButtonAdvanced
-     * @param {String/HTMLElement} el The element to turn into a button.
-     * @param {Object} attrs Object liternal containing configuration parameters.
-    */
-    if (YAHOO.widget.Button) {
-        YAHOO.widget.ToolbarButtonAdvanced = YAHOO.widget.Button;
-        /**
-        * @property buttonType
-        * @private
-        * @description Tells if the Button is a Rich Button or a Simple Button
-        */
-        YAHOO.widget.ToolbarButtonAdvanced.prototype.buttonType = 'rich';
-        /**
-        * @method checkValue
-        * @param {String} value The value of the option that we want to mark as selected
-        * @description Select an option by value
-        */
-        YAHOO.widget.ToolbarButtonAdvanced.prototype.checkValue = function(value) {
-            var _menuItems = this.getMenu().getItems();
-            if (_menuItems.length === 0) {
-                this.getMenu()._onBeforeShow();
-                _menuItems = this.getMenu().getItems();
-            }
-            for (var i = 0; i < _menuItems.length; i++) {
-                _menuItems[i].cfg.setProperty('checked', false);
-                if (_menuItems[i].value == value) {
-                    _menuItems[i].cfg.setProperty('checked', true);
-                }
-            }      
-        };
-    } else {
-        YAHOO.widget.ToolbarButtonAdvanced = function() {};
-    }
-
-
-    /**
-     * @description <p>Creates a basic custom Toolbar Button. Primarily used with the Rich Text Editor's Toolbar</p><p>Provides a toolbar button based on the button and menu widgets, &lt;select&gt; elements are used in place of menu's.</p>
-     * @class ToolbarButton
-     * @namespace YAHOO.widget
-     * @requires yahoo, dom, element, event
-     * @extends YAHOO.util.Element
-     * 
-     * 
-     * @constructor
-     * @param {String/HTMLElement} el The element to turn into a button.
-     * @param {Object} attrs Object liternal containing configuration parameters.
-    */
-
-    YAHOO.widget.ToolbarButton = function(el, attrs) {
-        YAHOO.log('ToolbarButton Initalizing', 'info', 'ToolbarButton');
-        YAHOO.log(arguments.length + ' arguments passed to constructor', 'info', 'Toolbar');
-        
-        if (Lang.isObject(arguments[0]) && !Dom.get(el).nodeType) {
-            attrs = el;
-        }
-        var local_attrs = (attrs || {});
-
-        var oConfig = {
-            element: null,
-            attributes: local_attrs
-        };
-
-        if (!oConfig.attributes.type) {
-            oConfig.attributes.type = 'push';
-        }
-        
-        oConfig.element = document.createElement('span');
-        oConfig.element.setAttribute('unselectable', 'on');
-        oConfig.element.className = 'yui-button yui-' + oConfig.attributes.type + '-button';
-        oConfig.element.innerHTML = '<span class="first-child"><a href="#">LABEL</a></span>';
-        oConfig.element.firstChild.firstChild.tabIndex = '-1';
-        oConfig.attributes.id = (oConfig.attributes.id || Dom.generateId());
-        oConfig.element.id = oConfig.attributes.id;
-
-        YAHOO.widget.ToolbarButton.superclass.constructor.call(this, oConfig.element, oConfig.attributes);
-    };
-
-    YAHOO.extend(YAHOO.widget.ToolbarButton, YAHOO.util.Element, {
-        /**
-        * @property buttonType
-        * @private
-        * @description Tells if the Button is a Rich Button or a Simple Button
-        */
-        buttonType: 'normal',
-        /**
-        * @method _handleMouseOver
-        * @private
-        * @description Adds classes to the button elements on mouseover (hover)
-        */
-        _handleMouseOver: function() {
-            if (!this.get('disabled')) {
-                this.addClass('yui-button-hover');
-                this.addClass('yui-' + this.get('type') + '-button-hover');
-            }
-        },
-        /**
-        * @method _handleMouseOut
-        * @private
-        * @description Removes classes from the button elements on mouseout (hover)
-        */
-        _handleMouseOut: function() {
-            this.removeClass('yui-button-hover');
-            this.removeClass('yui-' + this.get('type') + '-button-hover');
-        },
-        /**
-        * @method checkValue
-        * @param {String} value The value of the option that we want to mark as selected
-        * @description Select an option by value
-        */
-        checkValue: function(value) {
-            if (this.get('type') == 'menu') {
-                var opts = this._button.options;
-                for (var i = 0; i < opts.length; i++) {
-                    if (opts[i].value == value) {
-                        opts.selectedIndex = i;
-                    }
-                }
-            }
-        },
-        /** 
-        * @method init
-        * @description The ToolbarButton class's initialization method
-        */        
-        init: function(p_oElement, p_oAttributes) {
-            YAHOO.widget.ToolbarButton.superclass.init.call(this, p_oElement, p_oAttributes);
-
-            this.on('mouseover', this._handleMouseOver, this, true);
-            this.on('mouseout', this._handleMouseOut, this, true);
-            this.on('click', function(ev) {
-                Event.stopEvent(ev);
-                return false;
-            }, this, true);
-        },
-        /**
-        * @method initAttributes
-        * @description Initializes all of the configuration attributes used to create 
-        * the toolbar.
-        * @param {Object} attr Object literal specifying a set of 
-        * configuration attributes used to create the toolbar.
-        */        
-        initAttributes: function(attr) {
-            YAHOO.widget.ToolbarButton.superclass.initAttributes.call(this, attr);
-            /**
-            * @attribute value
-            * @description The value of the button
-            * @type String
-            */            
-            this.setAttributeConfig('value', {
-                value: attr.value
-            });
-            /**
-            * @attribute menu
-            * @description The menu attribute, see YAHOO.widget.Button
-            * @type Object
-            */            
-            this.setAttributeConfig('menu', {
-                value: attr.menu || false
-            });
-            /**
-            * @attribute type
-            * @description The type of button to create: push, menu, color, select, spin
-            * @type String
-            */            
-            this.setAttributeConfig('type', {
-                value: attr.type,
-                writeOnce: true,
-                method: function(type) {
-                    var el, opt;
-                    if (!this._button) {
-                        this._button = this.get('element').getElementsByTagName('a')[0];
-                    }
-                    switch (type) {
-                        case 'select':
-                        case 'menu':
-                            el = document.createElement('select');
-                            el.id = this.get('id');
-                            var menu = this.get('menu');
-                            for (var i = 0; i < menu.length; i++) {
-                                opt = document.createElement('option');
-                                opt.innerHTML = menu[i].text;
-                                opt.value = menu[i].value;
-                                if (menu[i].checked) {
-                                    opt.selected = true;
-                                }
-                                el.appendChild(opt);
-                            }
-                            this._button.parentNode.replaceChild(el, this._button);
-                            Event.on(el, 'change', this._handleSelect, this, true);
-                            this._button = el;
-                            break;
-                    }
-                }
-            });
-
-            /**
-            * @attribute disabled
-            * @description Set the button into a disabled state
-            * @type String
-            */            
-            this.setAttributeConfig('disabled', {
-                value: attr.disabled || false,
-                method: function(disabled) {
-                    if (disabled) {
-                        this.addClass('yui-button-disabled');
-                        this.addClass('yui-' + this.get('type') + '-button-disabled');
-                    } else {
-                        this.removeClass('yui-button-disabled');
-                        this.removeClass('yui-' + this.get('type') + '-button-disabled');
-                    }
-                    if ((this.get('type') == 'menu') || (this.get('type') == 'select')) {
-                        this._button.disabled = disabled;
-                    }
-                }
-            });
-
-            /**
-            * @attribute label
-            * @description The text label for the button
-            * @type String
-            */            
-            this.setAttributeConfig('label', {
-                value: attr.label,
-                method: function(label) {
-                    if (!this._button) {
-                        this._button = this.get('element').getElementsByTagName('a')[0];
-                    }
-                    if (this.get('type') == 'push') {
-                        this._button.innerHTML = label;
-                    }
-                }
-            });
-
-            /**
-            * @attribute title
-            * @description The title of the button
-            * @type String
-            */            
-            this.setAttributeConfig('title', {
-                value: attr.title
-            });
-
-            /**
-            * @config container
-            * @description The container that the button is rendered to, handled by Toolbar
-            * @type String
-            */            
-            this.setAttributeConfig('container', {
-                value: null,
-                writeOnce: true,
-                method: function(cont) {
-                    this.appendTo(cont);
-                }
-            });
-
-        },
-        /** 
-        * @private
-        * @method _handleSelect
-        * @description The event fired when a change event gets fired on a select element
-        * @param {Event} ev The change event.
-        */        
-        _handleSelect: function(ev) {
-            var tar = Event.getTarget(ev);
-            var value = tar.options[tar.selectedIndex].value;
-            this.fireEvent('change', {type: 'change', value: value });
-        },
-        /** 
-        * @method getMenu
-        * @description A stub function to mimic YAHOO.widget.Button's getMenu method
-        */        
-        getMenu: function() {
-            return this.get('menu');
-        },
-        /** 
-        * @method destroy
-        * @description Destroy the button
-        */        
-        destroy: function() {
-            Event.purgeElement(this.get('element'), true);
-            this.get('element').parentNode.removeChild(this.get('element'));
-            //Brutal Object Destroy
-            for (var i in this) {
-                if (Lang.hasOwnProperty(this, i)) {
-                    this[i] = null;
-                }
-            }       
-        },
-        /** 
-        * @method fireEvent
-        * @description Overridden fireEvent method to prevent DOM events from firing if the button is disabled.
-        */        
-        fireEvent: function(p_sType, p_aArgs) {
-            //  Disabled buttons should not respond to DOM events
-            if (this.DOM_EVENTS[p_sType] && this.get('disabled')) {
-                Event.stopEvent(p_aArgs);
-                return;
-            }
-        
-            YAHOO.widget.ToolbarButton.superclass.fireEvent.call(this, p_sType, p_aArgs);
-        },
-        /**
-        * @method toString
-        * @description Returns a string representing the toolbar.
-        * @return {String}
-        */        
-        toString: function() {
-            return 'ToolbarButton (' + this.get('id') + ')';
-        }
-        
-    });
-})();
-/**
- * @module editor
- * @description <p>Creates a rich Toolbar widget based on Button. Primarily used with the Rich Text Editor</p>
- * @namespace YAHOO.widget
- * @requires yahoo, dom, element, event, toolbarbutton
- * @optional container_core, dragdrop
- */
-(function() {
-var Dom = YAHOO.util.Dom,
-    Event = YAHOO.util.Event,
-    Lang = YAHOO.lang;
-    
-    var getButton = function(id) {
-        var button = id;
-        if (Lang.isString(id)) {
-            button = this.getButtonById(id);
-        }
-        if (Lang.isNumber(id)) {
-            button = this.getButtonByIndex(id);
-        }
-        if ((!(button instanceof YAHOO.widget.ToolbarButton)) && (!(button instanceof YAHOO.widget.ToolbarButtonAdvanced))) {
-            button = this.getButtonByValue(id);
-        }
-        if ((button instanceof YAHOO.widget.ToolbarButton) || (button instanceof YAHOO.widget.ToolbarButtonAdvanced)) {
-            return button;
-        }
-        return false;
-    };
-
-    /**
-     * Provides a rich toolbar widget based on the button and menu widgets
-     * @constructor
-     * @class Toolbar
-     * @extends YAHOO.util.Element
-     * @param {String/HTMLElement} el The element to turn into a toolbar.
-     * @param {Object} attrs Object liternal containing configuration parameters.
-    */
-    YAHOO.widget.Toolbar = function(el, attrs) {
-        YAHOO.log('Toolbar Initalizing', 'info', 'Toolbar');
-        YAHOO.log(arguments.length + ' arguments passed to constructor', 'info', 'Toolbar');
-        
-        if (Lang.isObject(arguments[0]) && !Dom.get(el).nodeType) {
-            attrs = el;
-        }
-        var local_attrs = {};
-        if (attrs) {
-            Lang.augmentObject(local_attrs, attrs); //Break the config reference
-        }
-        
-
-        var oConfig = {
-            element: null,
-            attributes: local_attrs
-        };
-        
-        
-        if (Lang.isString(el) && Dom.get(el)) {
-            oConfig.element = Dom.get(el);
-        } else if (Lang.isObject(el) && Dom.get(el) && Dom.get(el).nodeType) {  
-            oConfig.element = Dom.get(el);
-        }
-        
-
-        if (!oConfig.element) {
-            YAHOO.log('No element defined, creating toolbar container', 'warn', 'Toolbar');
-            oConfig.element = document.createElement('DIV');
-            oConfig.element.id = Dom.generateId();
-            
-            if (local_attrs.container && Dom.get(local_attrs.container)) {
-                YAHOO.log('Container found in config appending to it (' + Dom.get(local_attrs.container).id + ')', 'info', 'Toolbar');
-                Dom.get(local_attrs.container).appendChild(oConfig.element);
-            }
-        }
-        
-
-        if (!oConfig.element.id) {
-            oConfig.element.id = ((Lang.isString(el)) ? el : Dom.generateId());
-            YAHOO.log('No element ID defined for toolbar container, creating..', 'warn', 'Toolbar');
-        }
-        YAHOO.log('Initing toolbar with id: ' + oConfig.element.id, 'info', 'Toolbar');
-        
-        var fs = document.createElement('fieldset');
-        var lg = document.createElement('legend');
-        lg.innerHTML = 'Toolbar';
-        fs.appendChild(lg);
-        
-        var cont = document.createElement('DIV');
-        oConfig.attributes.cont = cont;
-        Dom.addClass(cont, 'yui-toolbar-subcont');
-        fs.appendChild(cont);
-        oConfig.element.appendChild(fs);
-
-        oConfig.element.tabIndex = -1;
-
-        
-        oConfig.attributes.element = oConfig.element;
-        oConfig.attributes.id = oConfig.element.id;
-
-        this._configuredButtons = [];
-
-        YAHOO.widget.Toolbar.superclass.constructor.call(this, oConfig.element, oConfig.attributes);
-         
-    };
-
-    YAHOO.extend(YAHOO.widget.Toolbar, YAHOO.util.Element, {
-        /**
-        * @protected
-        * @property _configuredButtons
-        * @type Array
-        */
-        _configuredButtons: null,
-        /**
-        * @method _addMenuClasses
-        * @private
-        * @description This method is called from Menu's renderEvent to add a few more classes to the menu items
-        * @param {String} ev The event that fired.
-        * @param {Array} na Array of event information.
-        * @param {Object} o Button config object. 
-        */
-        _addMenuClasses: function(ev, na, o) {
-            Dom.addClass(this.element, 'yui-toolbar-' + o.get('value') + '-menu');
-            if (Dom.hasClass(o._button.parentNode.parentNode, 'yui-toolbar-select')) {
-                Dom.addClass(this.element, 'yui-toolbar-select-menu');
-            }
-            var items = this.getItems();
-            for (var i = 0; i < items.length; i++) {
-                Dom.addClass(items[i].element, 'yui-toolbar-' + o.get('value') + '-' + ((items[i].value) ? items[i].value.replace(/ /g, '-').toLowerCase() : items[i]._oText.nodeValue.replace(/ /g, '-').toLowerCase()));
-                Dom.addClass(items[i].element, 'yui-toolbar-' + o.get('value') + '-' + ((items[i].value) ? items[i].value.replace(/ /g, '-') : items[i]._oText.nodeValue.replace(/ /g, '-')));
-            }
-        },
-        /** 
-        * @property buttonType
-        * @description The default button to use
-        * @type Object
-        */
-        buttonType: YAHOO.widget.ToolbarButton,
-        /** 
-        * @property dd
-        * @description The DragDrop instance associated with the Toolbar
-        * @type Object
-        */
-        dd: null,
-        /** 
-        * @property _colorData
-        * @description Object reference containing colors hex and text values.
-        * @type Object
-        */
-        _colorData: {
-/* {{{ _colorData */
-    '#111111': 'Obsidian',
-    '#2D2D2D': 'Dark Gray',
-    '#434343': 'Shale',
-    '#5B5B5B': 'Flint',
-    '#737373': 'Gray',
-    '#8B8B8B': 'Concrete',
-    '#A2A2A2': 'Gray',
-    '#B9B9B9': 'Titanium',
-    '#000000': 'Black',
-    '#D0D0D0': 'Light Gray',
-    '#E6E6E6': 'Silver',
-    '#FFFFFF': 'White',
-    '#BFBF00': 'Pumpkin',
-    '#FFFF00': 'Yellow',
-    '#FFFF40': 'Banana',
-    '#FFFF80': 'Pale Yellow',
-    '#FFFFBF': 'Butter',
-    '#525330': 'Raw Siena',
-    '#898A49': 'Mildew',
-    '#AEA945': 'Olive',
-    '#7F7F00': 'Paprika',
-    '#C3BE71': 'Earth',
-    '#E0DCAA': 'Khaki',
-    '#FCFAE1': 'Cream',
-    '#60BF00': 'Cactus',
-    '#80FF00': 'Chartreuse',
-    '#A0FF40': 'Green',
-    '#C0FF80': 'Pale Lime',
-    '#DFFFBF': 'Light Mint',
-    '#3B5738': 'Green',
-    '#668F5A': 'Lime Gray',
-    '#7F9757': 'Yellow',
-    '#407F00': 'Clover',
-    '#8A9B55': 'Pistachio',
-    '#B7C296': 'Light Jade',
-    '#E6EBD5': 'Breakwater',
-    '#00BF00': 'Spring Frost',
-    '#00FF80': 'Pastel Green',
-    '#40FFA0': 'Light Emerald',
-    '#80FFC0': 'Sea Foam',
-    '#BFFFDF': 'Sea Mist',
-    '#033D21': 'Dark Forrest',
-    '#438059': 'Moss',
-    '#7FA37C': 'Medium Green',
-    '#007F40': 'Pine',
-    '#8DAE94': 'Yellow Gray Green',
-    '#ACC6B5': 'Aqua Lung',
-    '#DDEBE2': 'Sea Vapor',
-    '#00BFBF': 'Fog',
-    '#00FFFF': 'Cyan',
-    '#40FFFF': 'Turquoise Blue',
-    '#80FFFF': 'Light Aqua',
-    '#BFFFFF': 'Pale Cyan',
-    '#033D3D': 'Dark Teal',
-    '#347D7E': 'Gray Turquoise',
-    '#609A9F': 'Green Blue',
-    '#007F7F': 'Seaweed',
-    '#96BDC4': 'Green Gray',
-    '#B5D1D7': 'Soapstone',
-    '#E2F1F4': 'Light Turquoise',
-    '#0060BF': 'Summer Sky',
-    '#0080FF': 'Sky Blue',
-    '#40A0FF': 'Electric Blue',
-    '#80C0FF': 'Light Azure',
-    '#BFDFFF': 'Ice Blue',
-    '#1B2C48': 'Navy',
-    '#385376': 'Biscay',
-    '#57708F': 'Dusty Blue',
-    '#00407F': 'Sea Blue',
-    '#7792AC': 'Sky Blue Gray',
-    '#A8BED1': 'Morning Sky',
-    '#DEEBF6': 'Vapor',
-    '#0000BF': 'Deep Blue',
-    '#0000FF': 'Blue',
-    '#4040FF': 'Cerulean Blue',
-    '#8080FF': 'Evening Blue',
-    '#BFBFFF': 'Light Blue',
-    '#212143': 'Deep Indigo',
-    '#373E68': 'Sea Blue',
-    '#444F75': 'Night Blue',
-    '#00007F': 'Indigo Blue',
-    '#585E82': 'Dockside',
-    '#8687A4': 'Blue Gray',
-    '#D2D1E1': 'Light Blue Gray',
-    '#6000BF': 'Neon Violet',
-    '#8000FF': 'Blue Violet',
-    '#A040FF': 'Violet Purple',
-    '#C080FF': 'Violet Dusk',
-    '#DFBFFF': 'Pale Lavender',
-    '#302449': 'Cool Shale',
-    '#54466F': 'Dark Indigo',
-    '#655A7F': 'Dark Violet',
-    '#40007F': 'Violet',
-    '#726284': 'Smoky Violet',
-    '#9E8FA9': 'Slate Gray',
-    '#DCD1DF': 'Violet White',
-    '#BF00BF': 'Royal Violet',
-    '#FF00FF': 'Fuchsia',
-    '#FF40FF': 'Magenta',
-    '#FF80FF': 'Orchid',
-    '#FFBFFF': 'Pale Magenta',
-    '#4A234A': 'Dark Purple',
-    '#794A72': 'Medium Purple',
-    '#936386': 'Cool Granite',
-    '#7F007F': 'Purple',
-    '#9D7292': 'Purple Moon',
-    '#C0A0B6': 'Pale Purple',
-    '#ECDAE5': 'Pink Cloud',
-    '#BF005F': 'Hot Pink',
-    '#FF007F': 'Deep Pink',
-    '#FF409F': 'Grape',
-    '#FF80BF': 'Electric Pink',
-    '#FFBFDF': 'Pink',
-    '#451528': 'Purple Red',
-    '#823857': 'Purple Dino',
-    '#A94A76': 'Purple Gray',
-    '#7F003F': 'Rose',
-    '#BC6F95': 'Antique Mauve',
-    '#D8A5BB': 'Cool Marble',
-    '#F7DDE9': 'Pink Granite',
-    '#C00000': 'Apple',
-    '#FF0000': 'Fire Truck',
-    '#FF4040': 'Pale Red',
-    '#FF8080': 'Salmon',
-    '#FFC0C0': 'Warm Pink',
-    '#441415': 'Sepia',
-    '#82393C': 'Rust',
-    '#AA4D4E': 'Brick',
-    '#800000': 'Brick Red',
-    '#BC6E6E': 'Mauve',
-    '#D8A3A4': 'Shrimp Pink',
-    '#F8DDDD': 'Shell Pink',
-    '#BF5F00': 'Dark Orange',
-    '#FF7F00': 'Orange',
-    '#FF9F40': 'Grapefruit',
-    '#FFBF80': 'Canteloupe',
-    '#FFDFBF': 'Wax',
-    '#482C1B': 'Dark Brick',
-    '#855A40': 'Dirt',
-    '#B27C51': 'Tan',
-    '#7F3F00': 'Nutmeg',
-    '#C49B71': 'Mustard',
-    '#E1C4A8': 'Pale Tan',
-    '#FDEEE0': 'Marble'
-/* }}} */
-        },
-        /** 
-        * @property _colorPicker
-        * @description The HTML Element containing the colorPicker
-        * @type HTMLElement
-        */
-        _colorPicker: null,
-        /** 
-        * @property STR_COLLAPSE
-        * @description String for Toolbar Collapse Button
-        * @type String
-        */
-        STR_COLLAPSE: 'Collapse Toolbar',
-        /** 
-        * @property STR_EXPAND
-        * @description String for Toolbar Collapse Button - Expand
-        * @type String
-        */
-        STR_EXPAND: 'Expand Toolbar',
-        /** 
-        * @property STR_SPIN_LABEL
-        * @description String for spinbutton dynamic label. Note the {VALUE} will be replaced with YAHOO.lang.substitute
-        * @type String
-        */
-        STR_SPIN_LABEL: 'Spin Button with value {VALUE}. Use Control Shift Up Arrow and Control Shift Down arrow keys to increase or decrease the value.',
-        /** 
-        * @property STR_SPIN_UP
-        * @description String for spinbutton up
-        * @type String
-        */
-        STR_SPIN_UP: 'Click to increase the value of this input',
-        /** 
-        * @property STR_SPIN_DOWN
-        * @description String for spinbutton down
-        * @type String
-        */
-        STR_SPIN_DOWN: 'Click to decrease the value of this input',
-        /** 
-        * @property _titlebar
-        * @description Object reference to the titlebar
-        * @type HTMLElement
-        */
-        _titlebar: null,
-        /** 
-        * @property browser
-        * @description Standard browser detection
-        * @type Object
-        */
-        browser: YAHOO.env.ua,
-        /**
-        * @protected
-        * @property _buttonList
-        * @description Internal property list of current buttons in the toolbar
-        * @type Array
-        */
-        _buttonList: null,
-        /**
-        * @protected
-        * @property _buttonGroupList
-        * @description Internal property list of current button groups in the toolbar
-        * @type Array
-        */
-        _buttonGroupList: null,
-        /**
-        * @protected
-        * @property _sep
-        * @description Internal reference to the separator HTML Element for cloning
-        * @type HTMLElement
-        */
-        _sep: null,
-        /**
-        * @protected
-        * @property _sepCount
-        * @description Internal refernce for counting separators, so we can give them a useful class name for styling
-        * @type Number
-        */
-        _sepCount: null,
-        /**
-        * @protected
-        * @property draghandle
-        * @type HTMLElement
-        */
-        _dragHandle: null,
-        /**
-        * @protected
-        * @property _toolbarConfigs
-        * @type Object
-        */
-        _toolbarConfigs: {
-            renderer: true
-        },
-        /**
-        * @protected
-        * @property CLASS_CONTAINER
-        * @description Default CSS class to apply to the toolbar container element
-        * @type String
-        */
-        CLASS_CONTAINER: 'yui-toolbar-container',
-        /**
-        * @protected
-        * @property CLASS_DRAGHANDLE
-        * @description Default CSS class to apply to the toolbar's drag handle element
-        * @type String
-        */
-        CLASS_DRAGHANDLE: 'yui-toolbar-draghandle',
-        /**
-        * @protected
-        * @property CLASS_SEPARATOR
-        * @description Default CSS class to apply to all separators in the toolbar
-        * @type String
-        */
-        CLASS_SEPARATOR: 'yui-toolbar-separator',
-        /**
-        * @protected
-        * @property CLASS_DISABLED
-        * @description Default CSS class to apply when the toolbar is disabled
-        * @type String
-        */
-        CLASS_DISABLED: 'yui-toolbar-disabled',
-        /**
-        * @protected
-        * @property CLASS_PREFIX
-        * @description Default prefix for dynamically created class names
-        * @type String
-        */
-        CLASS_PREFIX: 'yui-toolbar',
-        /** 
-        * @method init
-        * @description The Toolbar class's initialization method
-        */
-        init: function(p_oElement, p_oAttributes) {
-            YAHOO.widget.Toolbar.superclass.init.call(this, p_oElement, p_oAttributes);
-        },
-        /**
-        * @method initAttributes
-        * @description Initializes all of the configuration attributes used to create 
-        * the toolbar.
-        * @param {Object} attr Object literal specifying a set of 
-        * configuration attributes used to create the toolbar.
-        */
-        initAttributes: function(attr) {
-            YAHOO.widget.Toolbar.superclass.initAttributes.call(this, attr);
-            this.addClass(this.CLASS_CONTAINER);
-
-            /**
-            * @attribute buttonType
-            * @description The buttonType to use (advanced or basic)
-            * @type String
-            */
-            this.setAttributeConfig('buttonType', {
-                value: attr.buttonType || 'basic',
-                writeOnce: true,
-                validator: function(type) {
-                    switch (type) {
-                        case 'advanced':
-                        case 'basic':
-                            return true;
-                    }
-                    return false;
-                },
-                method: function(type) {
-                    if (type == 'advanced') {
-                        if (YAHOO.widget.Button) {
-                            this.buttonType = YAHOO.widget.ToolbarButtonAdvanced;
-                        } else {
-                            YAHOO.log('Can not find YAHOO.widget.Button', 'error', 'Toolbar');
-                            this.buttonType = YAHOO.widget.ToolbarButton;
-                        }
-                    } else {
-                        this.buttonType = YAHOO.widget.ToolbarButton;
-                    }
-                }
-            });
-
-
-            /**
-            * @attribute buttons
-            * @description Object specifying the buttons to include in the toolbar
-            * Example:
-            * <code><pre>
-            * {
-            *   { id: 'b3', type: 'button', label: 'Underline', value: 'underline' },
-            *   { type: 'separator' },
-            *   { id: 'b4', type: 'menu', label: 'Align', value: 'align',
-            *       menu: [
-            *           { text: "Left", value: 'alignleft' },
-            *           { text: "Center", value: 'aligncenter' },
-            *           { text: "Right", value: 'alignright' }
-            *       ]
-            *   }
-            * }
-            * </pre></code>
-            * @type Array
-            */
-            
-            this.setAttributeConfig('buttons', {
-                value: [],
-                writeOnce: true,
-                method: function(data) {
-                    var i, button, buttons, len, b;
-                    for (i in data) {
-                        if (Lang.hasOwnProperty(data, i)) {
-                            if (data[i].type == 'separator') {
-                                this.addSeparator();
-                            } else if (data[i].group !== undefined) {
-                                buttons = this.addButtonGroup(data[i]);
-                                if (buttons) {
-                                    len = buttons.length;
-                                    for(b = 0; b < len; b++) {
-                                        if (buttons[b]) {
-                                            this._configuredButtons[this._configuredButtons.length] = buttons[b].id;
-                                        }
-                                    }
-                                }
-                                
-                            } else {
-                                button = this.addButton(data[i]);
-                                if (button) {
-                                    this._configuredButtons[this._configuredButtons.length] = button.id;
-                                }
-                            }
-                        }
-                    }
-                }
-            });
-
-            /**
-            * @attribute disabled
-            * @description Boolean indicating if the toolbar should be disabled. It will also disable the draggable attribute if it is on.
-            * @default false
-            * @type Boolean
-            */
-            this.setAttributeConfig('disabled', {
-                value: false,
-                method: function(disabled) {
-                    if (this.get('disabled') === disabled) {
-                        return false;
-                    }
-                    if (disabled) {
-                        this.addClass(this.CLASS_DISABLED);
-                        this.set('draggable', false);
-                        this.disableAllButtons();
-                    } else {
-                        this.removeClass(this.CLASS_DISABLED);
-                        if (this._configs.draggable._initialConfig.value) {
-                            //Draggable by default, set it back
-                            this.set('draggable', true);
-                        }
-                        this.resetAllButtons();
-                    }
-                }
-            });
-
-            /**
-            * @config cont
-            * @description The container for the toolbar.
-            * @type HTMLElement
-            */
-            this.setAttributeConfig('cont', {
-                value: attr.cont,
-                readOnly: true
-            });
-
-
-            /**
-            * @attribute grouplabels
-            * @description Boolean indicating if the toolbar should show the group label's text string.
-            * @default true
-            * @type Boolean
-            */
-            this.setAttributeConfig('grouplabels', {
-                value: ((attr.grouplabels === false) ? false : true),
-                method: function(grouplabels) {
-                    if (grouplabels) {
-                        Dom.removeClass(this.get('cont'), (this.CLASS_PREFIX + '-nogrouplabels'));
-                    } else {
-                        Dom.addClass(this.get('cont'), (this.CLASS_PREFIX + '-nogrouplabels'));
-                    }
-                }
-            });
-            /**
-            * @attribute titlebar
-            * @description Boolean indicating if the toolbar should have a titlebar. If
-            * passed a string, it will use that as the titlebar text
-            * @default false
-            * @type Boolean or String
-            */
-            this.setAttributeConfig('titlebar', {
-                value: false,
-                method: function(titlebar) {
-                    if (titlebar) {
-                        if (this._titlebar && this._titlebar.parentNode) {
-                            this._titlebar.parentNode.removeChild(this._titlebar);
-                        }
-                        this._titlebar = document.createElement('DIV');
-                        this._titlebar.tabIndex = '-1';
-                        Event.on(this._titlebar, 'focus', function() {
-                            this._handleFocus();
-                        }, this, true);
-                        Dom.addClass(this._titlebar, this.CLASS_PREFIX + '-titlebar');
-                        if (Lang.isString(titlebar)) {
-                            var h2 = document.createElement('h2');
-                            h2.tabIndex = '-1';
-                            h2.innerHTML = '<a href="#" tabIndex="0">' + titlebar + '</a>';
-                            this._titlebar.appendChild(h2);
-                            Event.on(h2.firstChild, 'click', function(ev) {
-                                Event.stopEvent(ev);
-                            });
-                            Event.on([h2, h2.firstChild], 'focus', function() {
-                                this._handleFocus();
-                            }, this, true);
-                        }
-                        if (this.get('firstChild')) {
-                            this.insertBefore(this._titlebar, this.get('firstChild'));
-                        } else {
-                            this.appendChild(this._titlebar);
-                        }
-                        if (this.get('collapse')) {
-                            this.set('collapse', true);
-                        }
-                    } else if (this._titlebar) {
-                        if (this._titlebar && this._titlebar.parentNode) {
-                            this._titlebar.parentNode.removeChild(this._titlebar);
-                        }
-                    }
-                }
-            });
-
-
-            /**
-            * @attribute collapse
-            * @description Boolean indicating if the titlebar should have a collapse button.
-            * The collapse button will not remove the toolbar, it will minimize it to the titlebar
-            * @default false
-            * @type Boolean
-            */
-            this.setAttributeConfig('collapse', {
-                value: false,
-                method: function(collapse) {
-                    if (this._titlebar) {
-                        var collapseEl = null;
-                        var el = Dom.getElementsByClassName('collapse', 'span', this._titlebar);
-                        if (collapse) {
-                            if (el.length > 0) {
-                                //There is already a collapse button
-                                return true;
-                            }
-                            collapseEl = document.createElement('SPAN');
-                            collapseEl.innerHTML = 'X';
-                            collapseEl.title = this.STR_COLLAPSE;
-
-                            Dom.addClass(collapseEl, 'collapse');
-                            this._titlebar.appendChild(collapseEl);
-                            Event.addListener(collapseEl, 'click', function() {
-                                if (Dom.hasClass(this.get('cont').parentNode, 'yui-toolbar-container-collapsed')) {
-                                    this.collapse(false); //Expand Toolbar
-                                } else {
-                                    this.collapse(); //Collapse Toolbar
-                                }
-                            }, this, true);
-                        } else {
-                            collapseEl = Dom.getElementsByClassName('collapse', 'span', this._titlebar);
-                            if (collapseEl[0]) {
-                                if (Dom.hasClass(this.get('cont').parentNode, 'yui-toolbar-container-collapsed')) {
-                                    //We are closed, reopen the titlebar..
-                                    this.collapse(false); //Expand Toolbar
-                                }
-                                collapseEl[0].parentNode.removeChild(collapseEl[0]);
-                            }
-                        }
-                    }
-                }
-            });
-
-            /**
-            * @attribute draggable
-            * @description Boolean indicating if the toolbar should be draggable.  
-            * @default false
-            * @type Boolean
-            */
-
-            this.setAttributeConfig('draggable', {
-                value: (attr.draggable || false),
-                method: function(draggable) {
-                    if (draggable && !this.get('titlebar')) {
-                        YAHOO.log('Dragging enabled', 'info', 'Toolbar');
-                        if (!this._dragHandle) {
-                            this._dragHandle = document.createElement('SPAN');
-                            this._dragHandle.innerHTML = '|';
-                            this._dragHandle.setAttribute('title', 'Click to drag the toolbar');
-                            this._dragHandle.id = this.get('id') + '_draghandle';
-                            Dom.addClass(this._dragHandle, this.CLASS_DRAGHANDLE);
-                            if (this.get('cont').hasChildNodes()) {
-                                this.get('cont').insertBefore(this._dragHandle, this.get('cont').firstChild);
-                            } else {
-                                this.get('cont').appendChild(this._dragHandle);
-                            }
-                            this.dd = new YAHOO.util.DD(this.get('id'));
-                            this.dd.setHandleElId(this._dragHandle.id);
-                            
-                        }
-                    } else {
-                        YAHOO.log('Dragging disabled', 'info', 'Toolbar');
-                        if (this._dragHandle) {
-                            this._dragHandle.parentNode.removeChild(this._dragHandle);
-                            this._dragHandle = null;
-                            this.dd = null;
-                        }
-                    }
-                    if (this._titlebar) {
-                        if (draggable) {
-                            this.dd = new YAHOO.util.DD(this.get('id'));
-                            this.dd.setHandleElId(this._titlebar);
-                            Dom.addClass(this._titlebar, 'draggable');
-                        } else {
-                            Dom.removeClass(this._titlebar, 'draggable');
-                            if (this.dd) {
-                                this.dd.unreg();
-                                this.dd = null;
-                            }
-                        }
-                    }
-                },
-                validator: function(value) {
-                    var ret = true;
-                    if (!YAHOO.util.DD) {
-                        ret = false;
-                    }
-                    return ret;
-                }
-            });
-
-        },
-        /**
-        * @method addButtonGroup
-        * @description Add a new button group to the toolbar. (uses addButton)
-        * @param {Object} oGroup Object literal reference to the Groups Config (contains an array of button configs as well as the group label)
-        */
-        addButtonGroup: function(oGroup) {
-            if (!this.get('element')) {
-                this._queue[this._queue.length] = ['addButtonGroup', arguments];
-                return false;
-            }
-            
-            if (!this.hasClass(this.CLASS_PREFIX + '-grouped')) {
-                this.addClass(this.CLASS_PREFIX + '-grouped');
-            }
-            var div = document.createElement('DIV');
-            Dom.addClass(div, this.CLASS_PREFIX + '-group');
-            Dom.addClass(div, this.CLASS_PREFIX + '-group-' + oGroup.group);
-            if (oGroup.label) {
-                var label = document.createElement('h3');
-                label.innerHTML = oGroup.label;
-                div.appendChild(label);
-            }
-            if (!this.get('grouplabels')) {
-                Dom.addClass(this.get('cont'), this.CLASS_PREFIX, '-nogrouplabels');
-            }
-
-            this.get('cont').appendChild(div);
-
-            //For accessibility, let's put all of the group buttons in an Unordered List
-            var ul = document.createElement('ul');
-            div.appendChild(ul);
-
-            if (!this._buttonGroupList) {
-                this._buttonGroupList = {};
-            }
-            
-            this._buttonGroupList[oGroup.group] = ul;
-
-            //An array of the button ids added to this group
-            //This is used for destruction later...
-            var addedButtons = [],
-                button;
-            
-
-            for (var i = 0; i < oGroup.buttons.length; i++) {
-                var li = document.createElement('li');
-                li.className = this.CLASS_PREFIX + '-groupitem';
-                ul.appendChild(li);
-                if ((oGroup.buttons[i].type !== undefined) && oGroup.buttons[i].type == 'separator') {
-                    this.addSeparator(li);
-                } else {
-                    oGroup.buttons[i].container = li;
-                    button = this.addButton(oGroup.buttons[i]);
-                    if (button) {
-                        addedButtons[addedButtons.length]  = button.id;
-                    }
-                }
-            }
-            return addedButtons;
-        },
-        /**
-        * @method addButtonToGroup
-        * @description Add a new button to a toolbar group. Buttons supported:
-        *   push, split, menu, select, color, spin
-        * @param {Object} oButton Object literal reference to the Button's Config
-        * @param {String} group The Group identifier passed into the initial config
-        * @param {HTMLElement} after Optional HTML element to insert this button after in the DOM.
-        */
-        addButtonToGroup: function(oButton, group, after) {
-            var groupCont = this._buttonGroupList[group],
-                li = document.createElement('li');
-
-            li.className = this.CLASS_PREFIX + '-groupitem';
-            oButton.container = li;
-            this.addButton(oButton, after);
-            groupCont.appendChild(li);
-        },
-        /**
-        * @method addButton
-        * @description Add a new button to the toolbar. Buttons supported:
-        *   push, split, menu, select, color, spin
-        * @param {Object} oButton Object literal reference to the Button's Config
-        * @param {HTMLElement} after Optional HTML element to insert this button after in the DOM.
-        */
-        addButton: function(oButton, after) {
-            if (!this.get('element')) {
-                this._queue[this._queue.length] = ['addButton', arguments];
-                return false;
-            }
-            if (!this._buttonList) {
-                this._buttonList = [];
-            }
-            YAHOO.log('Adding button of type: ' + oButton.type, 'info', 'Toolbar');
-            if (!oButton.container) {
-                oButton.container = this.get('cont');
-            }
-
-            if ((oButton.type == 'menu') || (oButton.type == 'split') || (oButton.type == 'select')) {
-                if (Lang.isArray(oButton.menu)) {
-                    for (var i in oButton.menu) {
-                        if (Lang.hasOwnProperty(oButton.menu, i)) {
-                            var funcObject = {
-                                fn: function(ev, x, oMenu) {
-                                    if (!oButton.menucmd) {
-                                        oButton.menucmd = oButton.value;
-                                    }
-                                    oButton.value = ((oMenu.value) ? oMenu.value : oMenu._oText.nodeValue);
-                                },
-                                scope: this
-                            };
-                            oButton.menu[i].onclick = funcObject;
-                        }
-                    }
-                }
-            }
-            var _oButton = {}, skip = false;
-            for (var o in oButton) {
-                if (Lang.hasOwnProperty(oButton, o)) {
-                    if (!this._toolbarConfigs[o]) {
-                        _oButton[o] = oButton[o];
-                    }
-                }
-            }
-            if (oButton.type == 'select') {
-                _oButton.type = 'menu';
-            }
-            if (oButton.type == 'spin') {
-                _oButton.type = 'push';
-            }
-            if (_oButton.type == 'color') {
-                if (YAHOO.widget.Overlay) {
-                    _oButton = this._makeColorButton(_oButton);
-                } else {
-                    skip = true;
-                }
-            }
-            if (_oButton.menu) {
-                if ((YAHOO.widget.Overlay) && (oButton.menu instanceof YAHOO.widget.Overlay)) {
-                    oButton.menu.showEvent.subscribe(function() {
-                        this._button = _oButton;
-                    });
-                } else {
-                    for (var m = 0; m < _oButton.menu.length; m++) {
-                        if (!_oButton.menu[m].value) {
-                            _oButton.menu[m].value = _oButton.menu[m].text;
-                        }
-                    }
-                    if (this.browser.webkit) {
-                        _oButton.focusmenu = false;
-                    }
-                }
-            }
-            if (skip) {
-                oButton = false;
-            } else {
-                //Add to .get('buttons') manually
-                this._configs.buttons.value[this._configs.buttons.value.length] = oButton;
-                
-                var tmp = new this.buttonType(_oButton);
-                tmp.get('element').tabIndex = '-1';
-                tmp.get('element').setAttribute('role', 'button');
-                tmp._selected = true;
-                
-                if (this.get('disabled')) {
-                    //Toolbar is disabled, disable the new button too!
-                    tmp.set('disabled', true);
-                }
-                if (!oButton.id) {
-                    oButton.id = tmp.get('id');
-                }
-                YAHOO.log('Button created (' + oButton.type + ')', 'info', 'Toolbar');
-                
-                if (after) {
-                    var el = tmp.get('element');
-                    var nextSib = null;
-                    if (after.get) {
-                        nextSib = after.get('element').nextSibling;
-                    } else if (after.nextSibling) {
-                        nextSib = after.nextSibling;
-                    }
-                    if (nextSib) {
-                        nextSib.parentNode.insertBefore(el, nextSib);
-                    }
-                }
-                tmp.addClass(this.CLASS_PREFIX + '-' + tmp.get('value'));
-
-                var icon = document.createElement('span');
-                icon.className = this.CLASS_PREFIX + '-icon';
-                tmp.get('element').insertBefore(icon, tmp.get('firstChild'));
-                if (tmp._button.tagName.toLowerCase() == 'button') {
-                    tmp.get('element').setAttribute('unselectable', 'on');
-                    //Replace the Button HTML Element with an a href if it exists
-                    var a = document.createElement('a');
-                    a.innerHTML = tmp._button.innerHTML;
-                    a.href = '#';
-                    a.tabIndex = '-1';
-                    Event.on(a, 'click', function(ev) {
-                        Event.stopEvent(ev);
-                    });
-                    tmp._button.parentNode.replaceChild(a, tmp._button);
-                    tmp._button = a;
-                }
-
-                if (oButton.type == 'select') {
-                    if (tmp._button.tagName.toLowerCase() == 'select') {
-                        icon.parentNode.removeChild(icon);
-                        var iel = tmp._button,
-                            parEl = tmp.get('element');
-                        parEl.parentNode.replaceChild(iel, parEl);
-                        //The 'element' value is currently the orphaned element
-                        //In order for "destroy" to execute we need to get('element') to reference the correct node.
-                        //I'm not sure if there is a direct approach to setting this value.
-                        tmp._configs.element.value = iel;
-                    } else {
-                        //Don't put a class on it if it's a real select element
-                        tmp.addClass(this.CLASS_PREFIX + '-select');
-                    }
-                }
-                if (oButton.type == 'spin') {
-                    if (!Lang.isArray(oButton.range)) {
-                        oButton.range = [ 10, 100 ];
-                    }
-                    this._makeSpinButton(tmp, oButton);
-                }
-                tmp.get('element').setAttribute('title', tmp.get('label'));
-                if (oButton.type != 'spin') {
-                    if ((YAHOO.widget.Overlay) && (_oButton.menu instanceof YAHOO.widget.Overlay)) {
-                        var showPicker = function(ev) {
-                            var exec = true;
-                            if (ev.keyCode && (ev.keyCode == 9)) {
-                                exec = false;
-                            }
-                            if (exec) {
-                                if (this._colorPicker) {
-                                    this._colorPicker._button = oButton.value;
-                                }
-                                var menuEL = tmp.getMenu().element;
-                                if (Dom.getStyle(menuEL, 'visibility') == 'hidden') {
-                                    tmp.getMenu().show();
-                                } else {
-                                    tmp.getMenu().hide();
-                                }
-                            }
-                            YAHOO.util.Event.stopEvent(ev);
-                        };
-                        tmp.on('mousedown', showPicker, oButton, this);
-                        tmp.on('keydown', showPicker, oButton, this);
-                        
-                    } else if ((oButton.type != 'menu') && (oButton.type != 'select')) {
-                        tmp.on('keypress', this._buttonClick, oButton, this);
-                        tmp.on('mousedown', function(ev) {
-                            YAHOO.util.Event.stopEvent(ev);
-                            this._buttonClick(ev, oButton);
-                        }, oButton, this);
-                        tmp.on('click', function(ev) {
-                            YAHOO.util.Event.stopEvent(ev);
-                        });
-                    } else {
-                        //Stop the mousedown event so we can trap the selection in the editor!
-                        tmp.on('mousedown', function(ev) {
-                            YAHOO.util.Event.stopEvent(ev);
-                        });
-                        tmp.on('click', function(ev) {
-                            YAHOO.util.Event.stopEvent(ev);
-                        });
-                        tmp.on('change', function(ev) {
-                            if (!ev.target) {
-                                if (!oButton.menucmd) {
-                                    oButton.menucmd = oButton.value;
-                                }
-                                oButton.value = ev.value;
-                                this._buttonClick(ev, oButton);
-                            }
-                        }, this, true);
-
-                        var self = this;
-                        //Hijack the mousedown event in the menu and make it fire a button click..
-                        tmp.on('appendTo', function() {
-                            var tmp = this;
-                            if (tmp.getMenu() && tmp.getMenu().mouseDownEvent) {
-                                tmp.getMenu().mouseDownEvent.subscribe(function(ev, args) {
-                                    YAHOO.log('mouseDownEvent', 'warn', 'Toolbar');
-                                    var oMenu = args[1];
-                                    YAHOO.util.Event.stopEvent(args[0]);
-                                    tmp._onMenuClick(args[0], tmp);
-                                    if (!oButton.menucmd) {
-                                        oButton.menucmd = oButton.value;
-                                    }
-                                    oButton.value = ((oMenu.value) ? oMenu.value : oMenu._oText.nodeValue);
-                                    self._buttonClick.call(self, args[1], oButton);
-                                    tmp._hideMenu();
-                                    return false;
-                                });
-                                tmp.getMenu().clickEvent.subscribe(function(ev, args) {
-                                    YAHOO.log('clickEvent', 'warn', 'Toolbar');
-                                    YAHOO.util.Event.stopEvent(args[0]);
-                                });
-                                tmp.getMenu().mouseUpEvent.subscribe(function(ev, args) {
-                                    YAHOO.log('mouseUpEvent', 'warn', 'Toolbar');
-                                    YAHOO.util.Event.stopEvent(args[0]);
-                                });
-                            }
-                        });
-                        
-                    }
-                } else {
-                    //Stop the mousedown event so we can trap the selection in the editor!
-                    tmp.on('mousedown', function(ev) {
-                        YAHOO.util.Event.stopEvent(ev);
-                    });
-                    tmp.on('click', function(ev) {
-                        YAHOO.util.Event.stopEvent(ev);
-                    });
-                }
-                if (this.browser.ie) {
-                    /*
-                    //Add a couple of new events for IE
-                    tmp.DOM_EVENTS.focusin = true;
-                    tmp.DOM_EVENTS.focusout = true;
-                    
-                    //Stop them so we don't loose focus in the Editor
-                    tmp.on('focusin', function(ev) {
-                        YAHOO.util.Event.stopEvent(ev);
-                    }, oButton, this);
-                    
-                    tmp.on('focusout', function(ev) {
-                        YAHOO.util.Event.stopEvent(ev);
-                    }, oButton, this);
-                    tmp.on('click', function(ev) {
-                        YAHOO.util.Event.stopEvent(ev);
-                    }, oButton, this);
-                    */
-                }
-                if (this.browser.webkit) {
-                    //This will keep the document from gaining focus and the editor from loosing it..
-                    //Forcefully remove the focus calls in button!
-                    tmp.hasFocus = function() {
-                        return true;
-                    };
-                }
-                this._buttonList[this._buttonList.length] = tmp;
-                if ((oButton.type == 'menu') || (oButton.type == 'split') || (oButton.type == 'select')) {
-                    if (Lang.isArray(oButton.menu)) {
-                        YAHOO.log('Button type is (' + oButton.type + '), doing extra renderer work.', 'info', 'Toolbar');
-                        var menu = tmp.getMenu();
-                        if (menu && menu.renderEvent) {
-                            menu.renderEvent.subscribe(this._addMenuClasses, tmp);
-                            if (oButton.renderer) {
-                                menu.renderEvent.subscribe(oButton.renderer, tmp);
-                            }
-                        }
-                    }
-                }
-            }
-            return oButton;
-        },
-        /**
-        * @method addSeparator
-        * @description Add a new button separator to the toolbar.
-        * @param {HTMLElement} cont Optional HTML element to insert this button into.
-        * @param {HTMLElement} after Optional HTML element to insert this button after in the DOM.
-        */
-        addSeparator: function(cont, after) {
-            if (!this.get('element')) {
-                this._queue[this._queue.length] = ['addSeparator', arguments];
-                return false;
-            }
-            var sepCont = ((cont) ? cont : this.get('cont'));
-            if (!this.get('element')) {
-                this._queue[this._queue.length] = ['addSeparator', arguments];
-                return false;
-            }
-            if (this._sepCount === null) {
-                this._sepCount = 0;
-            }
-            if (!this._sep) {
-                YAHOO.log('Separator does not yet exist, creating', 'info', 'Toolbar');
-                this._sep = document.createElement('SPAN');
-                Dom.addClass(this._sep, this.CLASS_SEPARATOR);
-                this._sep.innerHTML = '|';
-            }
-            YAHOO.log('Separator does exist, cloning', 'info', 'Toolbar');
-            var _sep = this._sep.cloneNode(true);
-            this._sepCount++;
-            Dom.addClass(_sep, this.CLASS_SEPARATOR + '-' + this._sepCount);
-            if (after) {
-                var nextSib = null;
-                if (after.get) {
-                    nextSib = after.get('element').nextSibling;
-                } else if (after.nextSibling) {
-                    nextSib = after.nextSibling;
-                } else {
-                    nextSib = after;
-                }
-                if (nextSib) {
-                    if (nextSib == after) {
-                        nextSib.parentNode.appendChild(_sep);
-                    } else {
-                        nextSib.parentNode.insertBefore(_sep, nextSib);
-                    }
-                }
-            } else {
-                sepCont.appendChild(_sep);
-            }
-            return _sep;
-        },
-        /**
-        * @method _createColorPicker
-        * @private
-        * @description Creates the core DOM reference to the color picker menu item.
-        * @param {String} id the id of the toolbar to prefix this DOM container with.
-        */
-        _createColorPicker: function(id) {
-            if (Dom.get(id + '_colors')) {
-               Dom.get(id + '_colors').parentNode.removeChild(Dom.get(id + '_colors'));
-            }
-            var picker = document.createElement('div');
-            picker.className = 'yui-toolbar-colors';
-            picker.id = id + '_colors';
-            picker.style.display = 'none';
-            Event.on(window, 'load', function() {
-                document.body.appendChild(picker);
-            }, this, true);
-
-            this._colorPicker = picker;
-
-            var html = '';
-            for (var i in this._colorData) {
-                if (Lang.hasOwnProperty(this._colorData, i)) {
-                    html += '<a style="background-color: ' + i + '" href="#">' + i.replace('#', '') + '</a>';
-                }
-            }
-            html += '<span><em>X</em><strong></strong></span>';
-            window.setTimeout(function() {
-                picker.innerHTML = html;
-            }, 0);
-
-            Event.on(picker, 'mouseover', function(ev) {
-                var picker = this._colorPicker;
-                var em = picker.getElementsByTagName('em')[0];
-                var strong = picker.getElementsByTagName('strong')[0];
-                var tar = Event.getTarget(ev);
-                if (tar.tagName.toLowerCase() == 'a') {
-                    em.style.backgroundColor = tar.style.backgroundColor;
-                    strong.innerHTML = this._colorData['#' + tar.innerHTML] + '<br>' + tar.innerHTML;
-                }
-            }, this, true);
-            Event.on(picker, 'focus', function(ev) {
-                Event.stopEvent(ev);
-            });
-            Event.on(picker, 'click', function(ev) {
-                Event.stopEvent(ev);
-            });
-            Event.on(picker, 'mousedown', function(ev) {
-                Event.stopEvent(ev);
-                var tar = Event.getTarget(ev);
-                if (tar.tagName.toLowerCase() == 'a') {
-                    var retVal = this.fireEvent('colorPickerClicked', { type: 'colorPickerClicked', target: this, button: this._colorPicker._button, color: tar.innerHTML, colorName: this._colorData['#' + tar.innerHTML] } );
-                    if (retVal !== false) {
-                        var info = {
-                            color: tar.innerHTML,
-                            colorName: this._colorData['#' + tar.innerHTML],
-                            value: this._colorPicker._button 
-                        };
-                    
-                        this.fireEvent('buttonClick', { type: 'buttonClick', target: this.get('element'), button: info });
-                    }
-                    this.getButtonByValue(this._colorPicker._button).getMenu().hide();
-                }
-            }, this, true);
-        },
-        /**
-        * @method _resetColorPicker
-        * @private
-        * @description Clears the currently selected color or mouseover color in the color picker.
-        */
-        _resetColorPicker: function() {
-            var em = this._colorPicker.getElementsByTagName('em')[0];
-            var strong = this._colorPicker.getElementsByTagName('strong')[0];
-            em.style.backgroundColor = 'transparent';
-            strong.innerHTML = '';
-        },
-        /**
-        * @method _makeColorButton
-        * @private
-        * @description Called to turn a "color" button into a menu button with an Overlay for the menu.
-        * @param {Object} _oButton <a href="YAHOO.widget.ToolbarButton.html">YAHOO.widget.ToolbarButton</a> reference
-        */
-        _makeColorButton: function(_oButton) {
-            if (!this._colorPicker) {   
-                this._createColorPicker(this.get('id'));
-            }
-            _oButton.type = 'color';
-            _oButton.menu = new YAHOO.widget.Overlay(this.get('id') + '_' + _oButton.value + '_menu', { visible: false, position: 'absolute', iframe: true });
-            _oButton.menu.setBody('');
-            _oButton.menu.render(this.get('cont'));
-            Dom.addClass(_oButton.menu.element, 'yui-button-menu');
-            Dom.addClass(_oButton.menu.element, 'yui-color-button-menu');
-            _oButton.menu.beforeShowEvent.subscribe(function() {
-                _oButton.menu.cfg.setProperty('zindex', 5); //Re Adjust the overlays zIndex.. not sure why.
-                _oButton.menu.cfg.setProperty('context', [this.getButtonById(_oButton.id).get('element'), 'tl', 'bl']); //Re Adjust the overlay.. not sure why.
-                //Move the DOM reference of the color picker to the Overlay that we are about to show.
-                this._resetColorPicker();
-                var _p = this._colorPicker;
-                if (_p.parentNode) {
-                    _p.parentNode.removeChild(_p);
-                }
-                _oButton.menu.setBody('');
-                _oButton.menu.appendToBody(_p);
-                this._colorPicker.style.display = 'block';
-            }, this, true);
-            return _oButton;
-        },
-        /**
-        * @private
-        * @method _makeSpinButton
-        * @description Create a button similar to an OS Spin button.. It has an up/down arrow combo to scroll through a range of int values.
-        * @param {Object} _button <a href="YAHOO.widget.ToolbarButton.html">YAHOO.widget.ToolbarButton</a> reference
-        * @param {Object} oButton Object literal containing the buttons initial config
-        */
-        _makeSpinButton: function(_button, oButton) {
-            _button.addClass(this.CLASS_PREFIX + '-spinbutton');
-            var self = this,
-                _par = _button._button.parentNode.parentNode, //parentNode of Button Element for appending child
-                range = oButton.range,
-                _b1 = document.createElement('a'),
-                _b2 = document.createElement('a');
-                _b1.href = '#';
-                _b2.href = '#';
-                _b1.tabIndex = '-1';
-                _b2.tabIndex = '-1';
-            
-            //Setup the up and down arrows
-            _b1.className = 'up';
-            _b1.title = this.STR_SPIN_UP;
-            _b1.innerHTML = this.STR_SPIN_UP;
-            _b2.className = 'down';
-            _b2.title = this.STR_SPIN_DOWN;
-            _b2.innerHTML = this.STR_SPIN_DOWN;
-
-            //Append them to the container
-            _par.appendChild(_b1);
-            _par.appendChild(_b2);
-            
-            var label = YAHOO.lang.substitute(this.STR_SPIN_LABEL, { VALUE: _button.get('label') });
-            _button.set('title', label);
-
-            var cleanVal = function(value) {
-                value = ((value < range[0]) ? range[0] : value);
-                value = ((value > range[1]) ? range[1] : value);
-                return value;
-            };
-
-            var br = this.browser;
-            var tbar = false;
-            var strLabel = this.STR_SPIN_LABEL;
-            if (this._titlebar && this._titlebar.firstChild) {
-                tbar = this._titlebar.firstChild;
-            }
-            
-            var _intUp = function(ev) {
-                YAHOO.util.Event.stopEvent(ev);
-                if (!_button.get('disabled') && (ev.keyCode != 9)) {
-                    var value = parseInt(_button.get('label'), 10);
-                    value++;
-                    value = cleanVal(value);
-                    _button.set('label', ''+value);
-                    var label = YAHOO.lang.substitute(strLabel, { VALUE: _button.get('label') });
-                    _button.set('title', label);
-                    if (!br.webkit && tbar) {
-                        //tbar.focus(); //We do this for accessibility, on the re-focus of the element, a screen reader will re-read the title that was just changed
-                        //_button.focus();
-                    }
-                    self._buttonClick(ev, oButton);
-                }
-            };
-
-            var _intDown = function(ev) {
-                YAHOO.util.Event.stopEvent(ev);
-                if (!_button.get('disabled') && (ev.keyCode != 9)) {
-                    var value = parseInt(_button.get('label'), 10);
-                    value--;
-                    value = cleanVal(value);
-
-                    _button.set('label', ''+value);
-                    var label = YAHOO.lang.substitute(strLabel, { VALUE: _button.get('label') });
-                    _button.set('title', label);
-                    if (!br.webkit && tbar) {
-                        //tbar.focus(); //We do this for accessibility, on the re-focus of the element, a screen reader will re-read the title that was just changed
-                        //_button.focus();
-                    }
-                    self._buttonClick(ev, oButton);
-                }
-            };
-
-            var _intKeyUp = function(ev) {
-                if (ev.keyCode == 38) {
-                    _intUp(ev);
-                } else if (ev.keyCode == 40) {
-                    _intDown(ev);
-                } else if (ev.keyCode == 107 && ev.shiftKey) {  //Plus Key
-                    _intUp(ev);
-                } else if (ev.keyCode == 109 && ev.shiftKey) {  //Minus Key
-                    _intDown(ev);
-                }
-            };
-
-            //Handle arrow keys..
-            _button.on('keydown', _intKeyUp, this, true);
-
-            //Listen for the click on the up button and act on it
-            //Listen for the click on the down button and act on it
-            Event.on(_b1, 'mousedown',function(ev) {
-                Event.stopEvent(ev);
-            }, this, true);
-            Event.on(_b2, 'mousedown', function(ev) {
-                Event.stopEvent(ev);
-            }, this, true);
-            Event.on(_b1, 'click', _intUp, this, true);
-            Event.on(_b2, 'click', _intDown, this, true);
-        },
-        /**
-        * @protected
-        * @method _buttonClick
-        * @description Click handler for all buttons in the toolbar.
-        * @param {String} ev The event that was passed in.
-        * @param {Object} info Object literal of information about the button that was clicked.
-        */
-        _buttonClick: function(ev, info) {
-            var doEvent = true;
-            
-            if (ev && ev.type == 'keypress') {
-                if (ev.keyCode == 9) {
-                    doEvent = false;
-                } else if ((ev.keyCode === 13) || (ev.keyCode === 0) || (ev.keyCode === 32)) {
-                } else {
-                    doEvent = false;
-                }
-            }
-
-            if (doEvent) {
-                var fireNextEvent = true,
-                    retValue = false;
-                    
-                info.isSelected = this.isSelected(info.id);
-
-                if (info.value) {
-                    YAHOO.log('fireEvent::' + info.value + 'Click', 'info', 'Toolbar');
-                    retValue = this.fireEvent(info.value + 'Click', { type: info.value + 'Click', target: this.get('element'), button: info });
-                    if (retValue === false) {
-                        fireNextEvent = false;
-                    }
-                }
-                
-                if (info.menucmd && fireNextEvent) {
-                    YAHOO.log('fireEvent::' + info.menucmd + 'Click', 'info', 'Toolbar');
-                    retValue = this.fireEvent(info.menucmd + 'Click', { type: info.menucmd + 'Click', target: this.get('element'), button: info });
-                    if (retValue === false) {
-                        fireNextEvent = false;
-                    }
-                }
-                if (fireNextEvent) {
-                    YAHOO.log('fireEvent::buttonClick', 'info', 'Toolbar');
-                    this.fireEvent('buttonClick', { type: 'buttonClick', target: this.get('element'), button: info });
-                }
-
-                if (info.type == 'select') {
-                    var button = this.getButtonById(info.id);
-                    if (button.buttonType == 'rich') {
-                        var txt = info.value;
-                        for (var i = 0; i < info.menu.length; i++) {
-                            if (info.menu[i].value == info.value) {
-                                txt = info.menu[i].text;
-                                break;
-                            }
-                        }
-                        button.set('label', '<span class="yui-toolbar-' + info.menucmd + '-' + (info.value).replace(/ /g, '-').toLowerCase() + '">' + txt + '</span>');
-                        var _items = button.getMenu().getItems();
-                        for (var m = 0; m < _items.length; m++) {
-                            if (_items[m].value.toLowerCase() == info.value.toLowerCase()) {
-                                _items[m].cfg.setProperty('checked', true);
-                            } else {
-                                _items[m].cfg.setProperty('checked', false);
-                            }
-                        }
-                    }
-                }
-                if (ev) {
-                    Event.stopEvent(ev);
-                }
-            }
-        },
-        /**
-        * @private
-        * @property _keyNav
-        * @description Flag to determine if the arrow nav listeners have been attached
-        * @type Boolean
-        */
-        _keyNav: null,
-        /**
-        * @private
-        * @property _navCounter
-        * @description Internal counter for walking the buttons in the toolbar with the arrow keys
-        * @type Number
-        */
-        _navCounter: null,
-        /**
-        * @private
-        * @method _navigateButtons
-        * @description Handles the navigation/focus of toolbar buttons with the Arrow Keys
-        * @param {Event} ev The Key Event
-        */
-        _navigateButtons: function(ev) {
-            switch (ev.keyCode) {
-                case 37:
-                case 39:
-                    if (ev.keyCode == 37) {
-                        this._navCounter--;
-                    } else {
-                        this._navCounter++;
-                    }
-                    if (this._navCounter > (this._buttonList.length - 1)) {
-                        this._navCounter = 0;
-                    }
-                    if (this._navCounter < 0) {
-                        this._navCounter = (this._buttonList.length - 1);
-                    }
-                    if (this._buttonList[this._navCounter]) {
-                        var el = this._buttonList[this._navCounter].get('element');
-                        if (this.browser.ie) {
-                            el = this._buttonList[this._navCounter].get('element').getElementsByTagName('a')[0];
-                        }
-                        if (this._buttonList[this._navCounter].get('disabled')) {
-                            this._navigateButtons(ev);
-                        } else {
-                            el.focus();
-                        }
-                    }
-                    break;
-            }
-        },
-        /**
-        * @private
-        * @method _handleFocus
-        * @description Sets up the listeners for the arrow key navigation
-        */
-        _handleFocus: function() {
-            if (!this._keyNav) {
-                var ev = 'keypress';
-                if (this.browser.ie) {
-                    ev = 'keydown';
-                }
-                Event.on(this.get('element'), ev, this._navigateButtons, this, true);
-                this._keyNav = true;
-                this._navCounter = -1;
-            }
-        },
-        /**
-        * @method getButtonById
-        * @description Gets a button instance from the toolbar by is Dom id.
-        * @param {String} id The Dom id to query for.
-        * @return {<a href="YAHOO.widget.ToolbarButton.html">YAHOO.widget.ToolbarButton</a>}
-        */
-        getButtonById: function(id) {
-            var len = this._buttonList.length;
-            for (var i = 0; i < len; i++) {
-                if (this._buttonList[i] && this._buttonList[i].get('id') == id) {
-                    return this._buttonList[i];
-                }
-            }
-            return false;
-        },
-        /**
-        * @method getButtonByValue
-        * @description Gets a button instance or a menuitem instance from the toolbar by it's value.
-        * @param {String} value The button value to query for.
-        * @return {<a href="YAHOO.widget.ToolbarButton.html">YAHOO.widget.ToolbarButton</a> or <a href="YAHOO.widget.MenuItem.html">YAHOO.widget.MenuItem</a>}
-        */
-        getButtonByValue: function(value) {
-            var _buttons = this.get('buttons');
-            if (!_buttons) {
-                return false;
-            }
-            var len = _buttons.length;
-            for (var i = 0; i < len; i++) {
-                if (_buttons[i].group !== undefined) {
-                    for (var m = 0; m < _buttons[i].buttons.length; m++) {
-                        if ((_buttons[i].buttons[m].value == value) || (_buttons[i].buttons[m].menucmd == value)) {
-                            return this.getButtonById(_buttons[i].buttons[m].id);
-                        }
-                        if (_buttons[i].buttons[m].menu) { //Menu Button, loop through the values
-                            for (var s = 0; s < _buttons[i].buttons[m].menu.length; s++) {
-                                if (_buttons[i].buttons[m].menu[s].value == value) {
-                                    return this.getButtonById(_buttons[i].buttons[m].id);
-                                }
-                            }
-                        }
-                    }
-                } else {
-                    if ((_buttons[i].value == value) || (_buttons[i].menucmd == value)) {
-                        return this.getButtonById(_buttons[i].id);
-                    }
-                    if (_buttons[i].menu) { //Menu Button, loop through the values
-                        for (var j = 0; j < _buttons[i].menu.length; j++) {
-                            if (_buttons[i].menu[j].value == value) {
-                                return this.getButtonById(_buttons[i].id);
-                            }
-                        }
-                    }
-                }
-            }
-            return false;
-        },
-        /**
-        * @method getButtonByIndex
-        * @description Gets a button instance from the toolbar by is index in _buttonList.
-        * @param {Number} index The index of the button in _buttonList.
-        * @return {<a href="YAHOO.widget.ToolbarButton.html">YAHOO.widget.ToolbarButton</a>}
-        */
-        getButtonByIndex: function(index) {
-            if (this._buttonList[index]) {
-                return this._buttonList[index];
-            } else {
-                return false;
-            }
-        },
-        /**
-        * @method getButtons
-        * @description Returns an array of buttons in the current toolbar
-        * @return {Array}
-        */
-        getButtons: function() {
-            return this._buttonList;
-        },
-        /**
-        * @method disableButton
-        * @description Disables a button in the toolbar.
-        * @param {String/Number} id Disable a button by it's id, index or value.
-        * @return {Boolean}
-        */
-        disableButton: function(id) {
-            var button = getButton.call(this, id);
-            if (button) {
-                button.set('disabled', true);
-            } else {
-                return false;
-            }
-        },
-        /**
-        * @method enableButton
-        * @description Enables a button in the toolbar.
-        * @param {String/Number} id Enable a button by it's id, index or value.
-        * @return {Boolean}
-        */
-        enableButton: function(id) {
-            if (this.get('disabled')) {
-                return false;
-            }
-            var button = getButton.call(this, id);
-            if (button) {
-                if (button.get('disabled')) {
-                    button.set('disabled', false);
-                }
-            } else {
-                return false;
-            }
-        },
-        /**
-        * @method isSelected
-        * @description Tells if a button is selected or not.
-        * @param {String/Number} id A button by it's id, index or value.
-        * @return {Boolean}
-        */
-        isSelected: function(id) {
-            var button = getButton.call(this, id);
-            if (button) {
-                return button._selected;
-            }
-            return false;
-        },
-        /**
-        * @method selectButton
-        * @description Selects a button in the toolbar.
-        * @param {String/Number} id Select a button by it's id, index or value.
-        * @param {String} value If this is a Menu Button, check this item in the menu
-        * @return {Boolean}
-        */
-        selectButton: function(id, value) {
-            var button = getButton.call(this, id);
-            if (button) {
-                button.addClass('yui-button-selected');
-                button.addClass('yui-button-' + button.get('value') + '-selected');
-                button._selected = true;
-                if (value) {
-                    if (button.buttonType == 'rich') {
-                        var _items = button.getMenu().getItems();
-                        for (var m = 0; m < _items.length; m++) {
-                            if (_items[m].value == value) {
-                                _items[m].cfg.setProperty('checked', true);
-                                button.set('label', '<span class="yui-toolbar-' + button.get('value') + '-' + (value).replace(/ /g, '-').toLowerCase() + '">' + _items[m]._oText.nodeValue + '</span>');
-                            } else {
-                                _items[m].cfg.setProperty('checked', false);
-                            }
-                        }
-                    }
-                }
-            } else {
-                return false;
-            }
-        },
-        /**
-        * @method deselectButton
-        * @description Deselects a button in the toolbar.
-        * @param {String/Number} id Deselect a button by it's id, index or value.
-        * @return {Boolean}
-        */
-        deselectButton: function(id) {
-            var button = getButton.call(this, id);
-            if (button) {
-                button.removeClass('yui-button-selected');
-                button.removeClass('yui-button-' + button.get('value') + '-selected');
-                button.removeClass('yui-button-hover');
-                button._selected = false;
-            } else {
-                return false;
-            }
-        },
-        /**
-        * @method deselectAllButtons
-        * @description Deselects all buttons in the toolbar.
-        * @return {Boolean}
-        */
-        deselectAllButtons: function() {
-            var len = this._buttonList.length;
-            for (var i = 0; i < len; i++) {
-                this.deselectButton(this._buttonList[i]);
-            }
-        },
-        /**
-        * @method disableAllButtons
-        * @description Disables all buttons in the toolbar.
-        * @return {Boolean}
-        */
-        disableAllButtons: function() {
-            if (this.get('disabled')) {
-                return false;
-            }
-            var len = this._buttonList.length;
-            for (var i = 0; i < len; i++) {
-                this.disableButton(this._buttonList[i]);
-            }
-        },
-        /**
-        * @method enableAllButtons
-        * @description Enables all buttons in the toolbar.
-        * @return {Boolean}
-        */
-        enableAllButtons: function() {
-            if (this.get('disabled')) {
-                return false;
-            }
-            var len = this._buttonList.length;
-            for (var i = 0; i < len; i++) {
-                this.enableButton(this._buttonList[i]);
-            }
-        },
-        /**
-        * @method resetAllButtons
-        * @description Resets all buttons to their initial state.
-        * @param {Object} _ex Except these buttons
-        * @return {Boolean}
-        */
-        resetAllButtons: function(_ex) {
-            if (!Lang.isObject(_ex)) {
-                _ex = {};
-            }
-            if (this.get('disabled') || !this._buttonList) {
-                return false;
-            }
-            var len = this._buttonList.length;
-            for (var i = 0; i < len; i++) {
-                var _button = this._buttonList[i];
-                if (_button) {
-                    var disabled = _button._configs.disabled._initialConfig.value;
-                    if (_ex[_button.get('id')]) {
-                        this.enableButton(_button);
-                        this.selectButton(_button);
-                    } else {
-                        if (disabled) {
-                            this.disableButton(_button);
-                        } else {
-                            this.enableButton(_button);
-                        }
-                        this.deselectButton(_button);
-                    }
-                }
-            }
-        },
-        /**
-        * @method destroyButton
-        * @description Destroy a button in the toolbar.
-        * @param {String/Number} id Destroy a button by it's id or index.
-        * @return {Boolean}
-        */
-        destroyButton: function(id) {
-            var button = getButton.call(this, id);
-            if (button) {
-                var thisID = button.get('id'),
-                    new_list = [], i = 0,
-                    len = this._buttonList.length;
-
-                button.destroy();
-                
-                for (i = 0; i < len; i++) {
-                    if (this._buttonList[i].get('id') != thisID) {
-                        new_list[new_list.length]= this._buttonList[i];
-                    }
-                }
-
-                this._buttonList = new_list;
-            } else {
-                return false;
-            }
-        },
-        /**
-        * @method destroy
-        * @description Destroys the toolbar, all of it's elements and objects.
-        * @return {Boolean}
-        */
-        destroy: function() {
-            var len = this._configuredButtons.length, j, i;
-            for(b = 0; b < len; b++) {
-                this.destroyButton(this._configuredButtons[b]);
-            }
-
-            this._configuredButtons = null;
-        
-            this.get('element').innerHTML = '';
-            this.get('element').className = '';
-            //Brutal Object Destroy
-            for (i in this) {
-                if (Lang.hasOwnProperty(this, i)) {
-                    this[i] = null;
-                }
-            }
-            return true;
-        },
-        /**
-        * @method collapse
-        * @description Programatically collapse the toolbar.
-        * @param {Boolean} collapse True to collapse, false to expand.
-        */
-        collapse: function(collapse) {
-            var el = Dom.getElementsByClassName('collapse', 'span', this._titlebar);
-            if (collapse === false) {
-                Dom.removeClass(this.get('cont').parentNode, 'yui-toolbar-container-collapsed');
-                if (el[0]) {
-                    Dom.removeClass(el[0], 'collapsed');
-                    el[0].title = this.STR_COLLAPSE;
-                }
-                this.fireEvent('toolbarExpanded', { type: 'toolbarExpanded', target: this });
-            } else {
-                if (el[0]) {
-                    Dom.addClass(el[0], 'collapsed');
-                    el[0].title = this.STR_EXPAND;
-                }
-                Dom.addClass(this.get('cont').parentNode, 'yui-toolbar-container-collapsed');
-                this.fireEvent('toolbarCollapsed', { type: 'toolbarCollapsed', target: this });
-            }
-        },
-        /**
-        * @method toString
-        * @description Returns a string representing the toolbar.
-        * @return {String}
-        */
-        toString: function() {
-            return 'Toolbar (#' + this.get('element').id + ') with ' + this._buttonList.length + ' buttons.';
-        }
-    });
-/**
-* @event buttonClick
-* @param {Object} o The object passed to this handler is the button config used to create the button.
-* @description Fires when any botton receives a click event. Passes back a single object representing the buttons config object. See <a href="YAHOO.util.Element.html#addListener">Element.addListener</a> for more information on listening for this event.
-* @type YAHOO.util.CustomEvent
-*/
-/**
-* @event valueClick
-* @param {Object} o The object passed to this handler is the button config used to create the button.
-* @description This is a special dynamic event that is created and dispatched based on the value property
-* of the button config. See <a href="YAHOO.util.Element.html#addListener">Element.addListener</a> for more information on listening for this event.
-* Example:
-* <code><pre>
-* buttons : [
-*   { type: 'button', value: 'test', value: 'testButton' }
-* ]</pre>
-* </code>
-* With the valueClick event you could subscribe to this buttons click event with this:
-* tbar.in('testButtonClick', function() { alert('test button clicked'); })
-* @type YAHOO.util.CustomEvent
-*/
-/**
-* @event toolbarExpanded
-* @description Fires when the toolbar is expanded via the collapse button. See <a href="YAHOO.util.Element.html#addListener">Element.addListener</a> for more information on listening for this event.
-* @type YAHOO.util.CustomEvent
-*/
-/**
-* @event toolbarCollapsed
-* @description Fires when the toolbar is collapsed via the collapse button. See <a href="YAHOO.util.Element.html#addListener">Element.addListener</a> for more information on listening for this event.
-* @type YAHOO.util.CustomEvent
-*/
-})();
-/**
- * @module editor
- * @description <p>The Rich Text Editor is a UI control that replaces a standard HTML textarea; it allows for the rich formatting of text content, including common structural treatments like lists, formatting treatments like bold and italic text, and drag-and-drop inclusion and sizing of images. The Rich Text Editor's toolbar is extensible via a plugin architecture so that advanced implementations can achieve a high degree of customization.</p>
- * @namespace YAHOO.widget
- * @requires yahoo, dom, element, event, toolbar
- * @optional animation, container_core, resize, dragdrop
- */
-
-(function() {
-var Dom = YAHOO.util.Dom,
-    Event = YAHOO.util.Event,
-    Lang = YAHOO.lang,
-    Toolbar = YAHOO.widget.Toolbar;
-
-    /**
-     * The Rich Text Editor is a UI control that replaces a standard HTML textarea; it allows for the rich formatting of text content, including common structural treatments like lists, formatting treatments like bold and italic text, and drag-and-drop inclusion and sizing of images. The Rich Text Editor's toolbar is extensible via a plugin architecture so that advanced implementations can achieve a high degree of customization.
-     * @constructor
-     * @class SimpleEditor
-     * @extends YAHOO.util.Element
-     * @param {String/HTMLElement} el The textarea element to turn into an editor.
-     * @param {Object} attrs Object liternal containing configuration parameters.
-    */
-    
-    YAHOO.widget.SimpleEditor = function(el, attrs) {
-        YAHOO.log('SimpleEditor Initalizing', 'info', 'SimpleEditor');
-        
-        var o = {};
-        if (Lang.isObject(el) && (!el.tagName) && !attrs) {
-            Lang.augmentObject(o, el); //Break the config reference
-            el = document.createElement('textarea');
-            this.DOMReady = true;
-            if (o.container) {
-                var c = Dom.get(o.container);
-                c.appendChild(el);
-            } else {
-                document.body.appendChild(el);
-            }
-        } else {
-            if (attrs) {
-                Lang.augmentObject(o, attrs); //Break the config reference
-            }
-        }
-
-        var oConfig = {
-            element: null,
-            attributes: o
-        }, id = null;
-
-        if (Lang.isString(el)) {
-            id = el;
-        } else {
-            if (oConfig.attributes.id) {
-                id = oConfig.attributes.id;
-            } else {
-                this.DOMReady = true;
-                id = Dom.generateId(el);
-            }
-        }
-        oConfig.element = el;
-
-        var element_cont = document.createElement('DIV');
-        oConfig.attributes.element_cont = new YAHOO.util.Element(element_cont, {
-            id: id + '_container'
-        });
-        var div = document.createElement('div');
-        Dom.addClass(div, 'first-child');
-        oConfig.attributes.element_cont.appendChild(div);
-        
-        if (!oConfig.attributes.toolbar_cont) {
-            oConfig.attributes.toolbar_cont = document.createElement('DIV');
-            oConfig.attributes.toolbar_cont.id = id + '_toolbar';
-            div.appendChild(oConfig.attributes.toolbar_cont);
-        }
-        var editorWrapper = document.createElement('DIV');
-        div.appendChild(editorWrapper);
-        oConfig.attributes.editor_wrapper = editorWrapper;
-
-        YAHOO.widget.SimpleEditor.superclass.constructor.call(this, oConfig.element, oConfig.attributes);
-    };
-
-
-    YAHOO.extend(YAHOO.widget.SimpleEditor, YAHOO.util.Element, {
-        /**
-        * @private
-        * @property _resizeConfig
-        * @description The default config for the Resize Utility
-        */
-        _resizeConfig: {
-            handles: ['br'],
-            autoRatio: true,
-            status: true,
-            proxy: true,
-            useShim: true,
-            setSize: false
-        },
-        /**
-        * @private
-        * @method _setupResize
-        * @description Creates the Resize instance and binds its events.
-        */
-        _setupResize: function() {
-            if (!YAHOO.util.DD || !YAHOO.util.Resize) { return false; }
-            if (this.get('resize')) {
-                var config = {};
-                Lang.augmentObject(config, this._resizeConfig); //Break the config reference
-                this.resize = new YAHOO.util.Resize(this.get('element_cont').get('element'), config);
-                this.resize.on('resize', function(args) {
-                    var anim = this.get('animate');
-                    this.set('animate', false);
-                    this.set('width', args.width + 'px');
-                    var h = args.height,
-                        th = (this.toolbar.get('element').clientHeight + 2),
-                        dh = 0;
-                    if (this.dompath) {
-                        dh = (this.dompath.clientHeight + 1); //It has a 1px top border..
-                    }
-                    var newH = (h - th - dh);
-                    this.set('height', newH + 'px');
-                    this.get('element_cont').setStyle('height', '');
-                    this.set('animate', anim);
-                }, this, true);
-            }
-        },
-        /**
-        * @property resize
-        * @description A reference to the Resize object
-        * @type YAHOO.util.Resize
-        */
-        resize: null,
-        /**
-        * @private
-        * @method _setupDD
-        * @description Sets up the DD instance used from the 'drag' config option.
-        */
-        _setupDD: function() {
-            if (!YAHOO.util.DD) { return false; }
-            if (this.get('drag')) {
-                YAHOO.log('Attaching DD instance to Editor', 'info', 'SimpleEditor');
-                var d = this.get('drag'),
-                    dd = YAHOO.util.DD;
-                if (d === 'proxy') {
-                    dd = YAHOO.util.DDProxy;
-                }
-
-                this.dd = new dd(this.get('element_cont').get('element'));
-                this.toolbar.addClass('draggable'); 
-                this.dd.setHandleElId(this.toolbar._titlebar); 
-            }
-        },
-        /**
-        * @property dd
-        * @description A reference to the DragDrop object.
-        * @type YAHOO.util.DD/YAHOO.util.DDProxy
-        */
-        dd: null,
-        /**
-        * @private
-        * @property _lastCommand
-        * @description A cache of the last execCommand (used for Undo/Redo so they don't mark an undo level)
-        * @type String
-        */
-        _lastCommand: null,
-        _undoNodeChange: function() {},
-        _storeUndo: function() {},
-        /**
-        * @private
-        * @method _checkKey
-        * @description Checks a keyMap entry against a key event
-        * @param {Object} k The _keyMap object
-        * @param {Event} e The Mouse Event
-        * @return {Boolean}
-        */
-        _checkKey: function(k, e) {
-            var ret = false;
-            if ((e.keyCode === k.key)) {
-                if (k.mods && (k.mods.length > 0)) {
-                    var val = 0;
-                    for (var i = 0; i < k.mods.length; i++) {
-                        if (this.browser.mac) {
-                            if (k.mods[i] == 'ctrl') {
-                                k.mods[i] = 'meta';
-                            }
-                        }
-                        if (e[k.mods[i] + 'Key'] === true) {
-                            val++;
-                        }
-                    }
-                    if (val === k.mods.length) {
-                        ret = true;
-                    }
-                } else {
-                    ret = true;
-                }
-            }
-            //YAHOO.log('Shortcut Key Check: (' + k.key + ') return: ' + ret, 'info', 'SimpleEditor');
-            return ret;
-        },
-        /**
-        * @private
-        * @property _keyMap
-        * @description Named key maps for various actions in the Editor. Example: <code>CLOSE_WINDOW: { key: 87, mods: ['shift', 'ctrl'] }</code>. 
-        * This entry shows that when key 87 (W) is found with the modifiers of shift and control, the window will close. You can customize this object to tweak keyboard shortcuts.
-        * @type {Object/Mixed}
-        */
-        _keyMap: {
-            SELECT_ALL: {
-                key: 65, //A key
-                mods: ['ctrl']
-            },
-            CLOSE_WINDOW: {
-                key: 87, //W key
-                mods: ['shift', 'ctrl']
-            },
-            FOCUS_TOOLBAR: {
-                key: 27,
-                mods: ['shift']
-            },
-            FOCUS_AFTER: {
-                key: 27
-            },
-            FONT_SIZE_UP: {
-                key: 38,
-                mods: ['shift', 'ctrl']
-            },
-            FONT_SIZE_DOWN: {
-                key: 40,
-                mods: ['shift', 'ctrl']
-            },
-            CREATE_LINK: {
-                key: 76,
-                mods: ['shift', 'ctrl']
-            },
-            BOLD: {
-                key: 66,
-                mods: ['shift', 'ctrl']
-            },
-            ITALIC: {
-                key: 73,
-                mods: ['shift', 'ctrl']
-            },
-            UNDERLINE: {
-                key: 85,
-                mods: ['shift', 'ctrl']
-            },
-            UNDO: {
-                key: 90,
-                mods: ['ctrl']
-            },
-            REDO: {
-                key: 90,
-                mods: ['shift', 'ctrl']
-            },
-            JUSTIFY_LEFT: {
-                key: 219,
-                mods: ['shift', 'ctrl']
-            },
-            JUSTIFY_CENTER: {
-                key: 220,
-                mods: ['shift', 'ctrl']
-            },
-            JUSTIFY_RIGHT: {
-                key: 221,
-                mods: ['shift', 'ctrl']
-            }
-        },
-        /**
-        * @private
-        * @method _cleanClassName
-        * @description Makes a useable classname from dynamic data, by dropping it to lowercase and replacing spaces with -'s.
-        * @param {String} str The classname to clean up
-        * @return {String}
-        */
-        _cleanClassName: function(str) {
-            return str.replace(/ /g, '-').toLowerCase();
-        },
-        /**
-        * @property _textarea
-        * @description Flag to determine if we are using a textarea or an HTML Node.
-        * @type Boolean
-        */
-        _textarea: null,
-        /**
-        * @property _docType
-        * @description The DOCTYPE to use in the editable container.
-        * @type String
-        */
-        _docType: '<!DOCTYPE HTML PUBLIC "-/'+'/W3C/'+'/DTD HTML 4.01/'+'/EN" "http:/'+'/www.w3.org/TR/html4/strict.dtd">',
-        /**
-        * @property editorDirty
-        * @description This flag will be set when certain things in the Editor happen. It is to be used by the developer to check to see if content has changed.
-        * @type Boolean
-        */
-        editorDirty: null,
-        /**
-        * @property _defaultCSS
-        * @description The default CSS used in the config for 'css'. This way you can add to the config like this: { css: YAHOO.widget.SimpleEditor.prototype._defaultCSS + 'ADD MYY CSS HERE' }
-        * @type String
-        */
-        _defaultCSS: 'html { height: 95%; } body { padding: 7px; background-color: #fff; font: 13px/1.22 arial,helvetica,clean,sans-serif;*font-size:small;*font:x-small; } a, a:visited, a:hover { color: blue !important; text-decoration: underline !important; cursor: text !important; } .warning-localfile { border-bottom: 1px dashed red !important; } .yui-busy { cursor: wait !important; } img.selected { border: 2px dotted #808080; } img { cursor: pointer !important; border: none; } body.ptags.webkit div.yui-wk-p { margin: 11px 0; } body.ptags.webkit div.yui-wk-div { margin: 0; }',
-        /**
-        * @property _defaultToolbar
-        * @private
-        * @description Default toolbar config.
-        * @type Object
-        */
-        _defaultToolbar: null,
-        /**
-        * @property _lastButton
-        * @private
-        * @description The last button pressed, so we don't disable it.
-        * @type Object
-        */
-        _lastButton: null,
-        /**
-        * @property _baseHREF
-        * @private
-        * @description The base location of the editable page (this page) so that relative paths for image work.
-        * @type String
-        */
-        _baseHREF: function() {
-            var href = document.location.href;
-            if (href.indexOf('?') !== -1) { //Remove the query string
-                href = href.substring(0, href.indexOf('?'));
-            }
-            href = href.substring(0, href.lastIndexOf('/')) + '/';
-            return href;
-        }(),
-        /**
-        * @property _lastImage
-        * @private
-        * @description Safari reference for the last image selected (for styling as selected).
-        * @type HTMLElement
-        */
-        _lastImage: null,
-        /**
-        * @property _blankImageLoaded
-        * @private
-        * @description Don't load the blank image more than once..
-        * @type Boolean
-        */
-        _blankImageLoaded: null,
-        /**
-        * @property _fixNodesTimer
-        * @private
-        * @description Holder for the fixNodes timer
-        * @type Date
-        */
-        _fixNodesTimer: null,
-        /**
-        * @property _nodeChangeTimer
-        * @private
-        * @description Holds a reference to the nodeChange setTimeout call
-        * @type Number
-        */
-        _nodeChangeTimer: null,
-        /**
-        * @property _nodeChangeDelayTimer
-        * @private
-        * @description Holds a reference to the nodeChangeDelay setTimeout call
-        * @type Number
-        */
-        _nodeChangeDelayTimer: null,
-        /**
-        * @property _lastNodeChangeEvent
-        * @private
-        * @description Flag to determine the last event that fired a node change
-        * @type Event
-        */
-        _lastNodeChangeEvent: null,
-        /**
-        * @property _lastNodeChange
-        * @private
-        * @description Flag to determine when the last node change was fired
-        * @type Date
-        */
-        _lastNodeChange: 0,
-        /**
-        * @property _rendered
-        * @private
-        * @description Flag to determine if editor has been rendered or not
-        * @type Boolean
-        */
-        _rendered: null,
-        /**
-        * @property DOMReady
-        * @private
-        * @description Flag to determine if DOM is ready or not
-        * @type Boolean
-        */
-        DOMReady: null,
-        /**
-        * @property _selection
-        * @private
-        * @description Holder for caching iframe selections
-        * @type Object
-        */
-        _selection: null,
-        /**
-        * @property _mask
-        * @private
-        * @description DOM Element holder for the editor Mask when disabled
-        * @type Object
-        */
-        _mask: null,
-        /**
-        * @property _showingHiddenElements
-        * @private
-        * @description Status of the hidden elements button
-        * @type Boolean
-        */
-        _showingHiddenElements: null,
-        /**
-        * @property currentWindow
-        * @description A reference to the currently open EditorWindow
-        * @type Object
-        */
-        currentWindow: null,
-        /**
-        * @property currentEvent
-        * @description A reference to the current editor event
-        * @type Event
-        */
-        currentEvent: null,
-        /**
-        * @property operaEvent
-        * @private
-        * @description setTimeout holder for Opera and Image DoubleClick event..
-        * @type Object
-        */
-        operaEvent: null,
-        /**
-        * @property currentFont
-        * @description A reference to the last font selected from the Toolbar
-        * @type HTMLElement
-        */
-        currentFont: null,
-        /**
-        * @property currentElement
-        * @description A reference to the current working element in the editor
-        * @type Array
-        */
-        currentElement: null,
-        /**
-        * @property dompath
-        * @description A reference to the dompath container for writing the current working dom path to.
-        * @type HTMLElement
-        */
-        dompath: null,
-        /**
-        * @property beforeElement
-        * @description A reference to the H2 placed before the editor for Accessibilty.
-        * @type HTMLElement
-        */
-        beforeElement: null,
-        /**
-        * @property afterElement
-        * @description A reference to the H2 placed after the editor for Accessibilty.
-        * @type HTMLElement
-        */
-        afterElement: null,
-        /**
-        * @property invalidHTML
-        * @description Contains a list of HTML elements that are invalid inside the editor. They will be removed when they are found. If you set the value of a key to "{ keepContents: true }", then the element will be replaced with a yui-non span to be filtered out when cleanHTML is called. The only tag that is ignored here is the span tag as it will force the Editor into a loop and freeze the browser. However.. all of these tags will be removed in the cleanHTML routine.
-        * @type Object
-        */
-        invalidHTML: {
-            form: true,
-            input: true,
-            button: true,
-            select: true,
-            link: true,
-            html: true,
-            body: true,
-            iframe: true,
-            script: true,
-            style: true,
-            textarea: true
-        },
-        /**
-        * @property toolbar
-        * @description Local property containing the <a href="YAHOO.widget.Toolbar.html">YAHOO.widget.Toolbar</a> instance
-        * @type <a href="YAHOO.widget.Toolbar.html">YAHOO.widget.Toolbar</a>
-        */
-        toolbar: null,
-        /**
-        * @private
-        * @property _contentTimer
-        * @description setTimeout holder for documentReady check
-        */
-        _contentTimer: null,
-        /**
-        * @private
-        * @property _contentTimerMax
-        * @description The number of times the loaded content should be checked before giving up. Default: 500
-        */
-        _contentTimerMax: 500,
-        /**
-        * @private
-        * @property _contentTimerCounter
-        * @description Counter to check the number of times the body is polled for before giving up
-        * @type Number
-        */
-        _contentTimerCounter: 0,
-        /**
-        * @private
-        * @property _disabled
-        * @description The Toolbar items that should be disabled if there is no selection present in the editor.
-        * @type Array
-        */
-        _disabled: [ 'createlink', 'fontname', 'fontsize', 'forecolor', 'backcolor' ],
-        /**
-        * @private
-        * @property _alwaysDisabled
-        * @description The Toolbar items that should ALWAYS be disabled event if there is a selection present in the editor.
-        * @type Object
-        */
-        _alwaysDisabled: { undo: true, redo: true },
-        /**
-        * @private
-        * @property _alwaysEnabled
-        * @description The Toolbar items that should ALWAYS be enabled event if there isn't a selection present in the editor.
-        * @type Object
-        */
-        _alwaysEnabled: { },
-        /**
-        * @private
-        * @property _semantic
-        * @description The Toolbar commands that we should attempt to make tags out of instead of using styles.
-        * @type Object
-        */
-        _semantic: { 'bold': true, 'italic' : true, 'underline' : true },
-        /**
-        * @private
-        * @property _tag2cmd
-        * @description A tag map of HTML tags to convert to the different types of commands so we can select the proper toolbar button.
-        * @type Object
-        */
-        _tag2cmd: {
-            'b': 'bold',
-            'strong': 'bold',
-            'i': 'italic',
-            'em': 'italic',
-            'u': 'underline',
-            'sup': 'superscript',
-            'sub': 'subscript',
-            'img': 'insertimage',
-            'a' : 'createlink',
-            'ul' : 'insertunorderedlist',
-            'ol' : 'insertorderedlist'
-        },
-
-        /**
-        * @private _createIframe
-        * @description Creates the DOM and YUI Element for the iFrame editor area.
-        * @param {String} id The string ID to prefix the iframe with
-        * @return {Object} iFrame object
-        */
-        _createIframe: function() {
-            var ifrmDom = document.createElement('iframe');
-            ifrmDom.id = this.get('id') + '_editor';
-            var config = {
-                border: '0',
-                frameBorder: '0',
-                marginWidth: '0',
-                marginHeight: '0',
-                leftMargin: '0',
-                topMargin: '0',
-                allowTransparency: 'true',
-                width: '100%'
-            };
-            if (this.get('autoHeight')) {
-                config.scrolling = 'no';
-            }
-            for (var i in config) {
-                if (Lang.hasOwnProperty(config, i)) {
-                    ifrmDom.setAttribute(i, config[i]);
-                }
-            }
-            var isrc = 'javascript:;';
-            if (this.browser.ie) {
-                //isrc = 'about:blank';
-                //TODO - Check this, I have changed it before..
-                isrc = 'javascript:false;';
-            }
-            ifrmDom.setAttribute('src', isrc);
-            var ifrm = new YAHOO.util.Element(ifrmDom);
-            ifrm.setStyle('visibility', 'hidden');
-            return ifrm;
-        },
-        /**
-        * @private _isElement
-        * @description Checks to see if an Element reference is a valid one and has a certain tag type
-        * @param {HTMLElement} el The element to check
-        * @param {String} tag The tag that the element needs to be
-        * @return {Boolean}
-        */
-        _isElement: function(el, tag) {
-            if (el && el.tagName && (el.tagName.toLowerCase() == tag)) {
-                return true;
-            }
-            if (el && el.getAttribute && (el.getAttribute('tag') == tag)) {
-                return true;
-            }
-            return false;
-        },
-        /**
-        * @private _hasParent
-        * @description Checks to see if an Element reference or one of it's parents is a valid one and has a certain tag type
-        * @param {HTMLElement} el The element to check
-        * @param {String} tag The tag that the element needs to be
-        * @return HTMLElement
-        */
-        _hasParent: function(el, tag) {
-            if (!el || !el.parentNode) {
-                return false;
-            }
-            
-            while (el.parentNode) {
-                if (this._isElement(el, tag)) {
-                    return el;
-                }
-                if (el.parentNode) {
-                    el = el.parentNode;
-                } else {
-                    return false;
-                }
-            }
-            return false;
-        },
-        /**
-        * @private
-        * @method _getDoc
-        * @description Get the Document of the IFRAME
-        * @return {Object}
-        */
-        _getDoc: function() {
-            var value = false;
-            try {
-                if (this.get('iframe').get('element').contentWindow.document) {
-                    value = this.get('iframe').get('element').contentWindow.document;
-                    return value;
-                }
-            } catch (e) {
-                return false;
-            }
-        },
-        /**
-        * @private
-        * @method _getWindow
-        * @description Get the Window of the IFRAME
-        * @return {Object}
-        */
-        _getWindow: function() {
-            return this.get('iframe').get('element').contentWindow;
-        },
-        /**
-        * @method focus
-        * @description Attempt to set the focus of the iframes window.
-        */
-        focus: function() {
-            this._getWindow().focus();
-        },
-        /**
-        * @private
-        * @depreciated - This should not be used, moved to this.focus();
-        * @method _focusWindow
-        * @description Attempt to set the focus of the iframes window.
-        */
-        _focusWindow: function() {
-            YAHOO.log('_focusWindow: depreciated in favor of this.focus()', 'warn', 'Editor');
-            this.focus();
-        },
-        /**
-        * @private
-        * @method _hasSelection
-        * @description Determines if there is a selection in the editor document.
-        * @return {Boolean}
-        */
-        _hasSelection: function() {
-            var sel = this._getSelection();
-            var range = this._getRange();
-            var hasSel = false;
-
-            if (!sel || !range) {
-                return hasSel;
-            }
-
-            //Internet Explorer
-            if (this.browser.ie || this.browser.opera) {
-                if (range.text) {
-                    hasSel = true;
-                }
-                if (range.html) {
-                    hasSel = true;
-                }
-            } else {
-                if (this.browser.webkit) {
-                    if (sel+'' !== '') {
-                        hasSel = true;
-                    }
-                } else {
-                    if (sel && (sel.toString() !== '') && (sel !== undefined)) {
-                        hasSel = true;
-                    }
-                }
-            }
-            return hasSel;
-        },
-        /**
-        * @private
-        * @method _getSelection
-        * @description Handles the different selection objects across the A-Grade list.
-        * @return {Object} Selection Object
-        */
-        _getSelection: function() {
-            var _sel = null;
-            if (this._getDoc() && this._getWindow()) {
-                if (this._getDoc().selection) {
-                    _sel = this._getDoc().selection;
-                } else {
-                    _sel = this._getWindow().getSelection();
-                }
-                //Handle Safari's lack of Selection Object
-                if (this.browser.webkit) {
-                    if (_sel.baseNode) {
-                            this._selection = {};
-                            this._selection.baseNode = _sel.baseNode;
-                            this._selection.baseOffset = _sel.baseOffset;
-                            this._selection.extentNode = _sel.extentNode;
-                            this._selection.extentOffset = _sel.extentOffset;
-                    } else if (this._selection !== null) {
-                        _sel = this._getWindow().getSelection();
-                        _sel.setBaseAndExtent(
-                            this._selection.baseNode,
-                            this._selection.baseOffset,
-                            this._selection.extentNode,
-                            this._selection.extentOffset);
-                        this._selection = null;
-                    }
-                }
-            }
-            return _sel;
-        },
-        /**
-        * @private
-        * @method _selectNode
-        * @description Places the highlight around a given node
-        * @param {HTMLElement} node The node to select
-        */
-        _selectNode: function(node, collapse) {
-            if (!node) {
-                return false;
-            }
-            var sel = this._getSelection(),
-                range = null;
-
-            if (this.browser.ie) {
-                try { //IE freaks out here sometimes..
-                    range = this._getDoc().body.createTextRange();
-                    range.moveToElementText(node);
-                    range.select();
-                } catch (e) {
-                    YAHOO.log('IE failed to select element: ' + node.tagName, 'warn', 'SimpleEditor');
-                }
-            } else if (this.browser.webkit) {
-                if (collapse) {
-                                   sel.setBaseAndExtent(node, 1, node, node.innerText.length);
-                } else {
-                                   sel.setBaseAndExtent(node, 0, node, node.innerText.length);
-                }
-            } else if (this.browser.opera) {
-                sel = this._getWindow().getSelection();
-                range = this._getDoc().createRange();
-                range.selectNode(node);
-                sel.removeAllRanges();
-                sel.addRange(range);
-            } else {
-                range = this._getDoc().createRange();
-                range.selectNodeContents(node);
-                sel.removeAllRanges();
-                sel.addRange(range);
-            }
-            //TODO - Check Performance
-            this.nodeChange();
-        },
-        /**
-        * @private
-        * @method _getRange
-        * @description Handles the different range objects across the A-Grade list.
-        * @return {Object} Range Object
-        */
-        _getRange: function() {
-            var sel = this._getSelection();
-
-            if (sel === null) {
-                return null;
-            }
-
-            if (this.browser.webkit && !sel.getRangeAt) {
-                var _range = this._getDoc().createRange();
-                try {
-                    _range.setStart(sel.anchorNode, sel.anchorOffset);
-                    _range.setEnd(sel.focusNode, sel.focusOffset);
-                } catch (e) {
-                    _range = this._getWindow().getSelection()+'';
-                }
-                return _range;
-            }
-
-            if (this.browser.ie || this.browser.opera) {
-                try {
-                    return sel.createRange();
-                } catch (e2) {
-                    return null;
-                }
-            }
-
-            if (sel.rangeCount > 0) {
-                return sel.getRangeAt(0);
-            }
-            return null;
-        },
-        /**
-        * @private
-        * @method _setDesignMode
-        * @description Sets the designMode property of the iFrame document's body.
-        * @param {String} state This should be either on or off
-        */
-        _setDesignMode: function(state) {
-            if (this.get('setDesignMode')) {
-                try {
-                    this._getDoc().designMode = ((state.toLowerCase() == 'off') ? 'off' : 'on');
-                } catch(e) { }
-            }
-        },
-        /**
-        * @private
-        * @method _toggleDesignMode
-        * @description Toggles the designMode property of the iFrame document on and off.
-        * @return {String} The state that it was set to.
-        */
-        _toggleDesignMode: function() {
-            YAHOO.log('It is not recommended to use this method and it will be depreciated.', 'warn', 'SimpleEditor');
-            var _dMode = this._getDoc().designMode,
-                _state = ((_dMode.toLowerCase() == 'on') ? 'off' : 'on');
-            this._setDesignMode(_state);
-            return _state;
-        },
-        /**
-        * @private
-        * @property _focused
-        * @description Holder for trapping focus/blur state and prevent double events
-        * @type Boolean
-        */
-        _focused: null,
-        /**
-        * @private
-        * @method _handleFocus
-        * @description Handles the focus of the iframe. Note, this is window focus event, not an Editor focus event.
-        * @param {Event} e The DOM Event
-        */
-        _handleFocus: function(e) {
-            if (!this._focused) {
-                //YAHOO.log('Editor Window Focused', 'info', 'SimpleEditor');
-                this._focused = true;
-                this.fireEvent('editorWindowFocus', { type: 'editorWindowFocus', target: this });
-            }
-        },
-        /**
-        * @private
-        * @method _handleBlur
-        * @description Handles the blur of the iframe. Note, this is window blur event, not an Editor blur event.
-        * @param {Event} e The DOM Event
-        */
-        _handleBlur: function(e) {
-            if (this._focused) {
-                //YAHOO.log('Editor Window Blurred', 'info', 'SimpleEditor');
-                this._focused = false;
-                this.fireEvent('editorWindowBlur', { type: 'editorWindowBlur', target: this });
-            }
-        },
-        /**
-        * @private
-        * @method _initEditorEvents
-        * @description This method sets up the listeners on the Editors document.
-        */
-        _initEditorEvents: function() {
-            //Setup Listeners on iFrame
-            var doc = this._getDoc(),
-                win = this._getWindow();
-
-            Event.on(doc, 'mouseup', this._handleMouseUp, this, true);
-            Event.on(doc, 'mousedown', this._handleMouseDown, this, true);
-            Event.on(doc, 'click', this._handleClick, this, true);
-            Event.on(doc, 'dblclick', this._handleDoubleClick, this, true);
-            Event.on(doc, 'keypress', this._handleKeyPress, this, true);
-            Event.on(doc, 'keyup', this._handleKeyUp, this, true);
-            Event.on(doc, 'keydown', this._handleKeyDown, this, true);
-            /* TODO -- Everyone but Opera works here..
-            Event.on(doc, 'paste', function() {
-                YAHOO.log('PASTE', 'info', 'SimpleEditor');
-            }, this, true);
-            */
-            //Focus and blur..
-            Event.on(win, 'focus', this._handleFocus, this, true);
-            Event.on(win, 'blur', this._handleBlur, this, true);
-        },
-        /**
-        * @private
-        * @method _removeEditorEvents
-        * @description This method removes the listeners on the Editors document (for disabling).
-        */
-        _removeEditorEvents: function() {
-            //Remove Listeners on iFrame
-            var doc = this._getDoc(),
-                win = this._getWindow();
-
-            Event.removeListener(doc, 'mouseup', this._handleMouseUp, this, true);
-            Event.removeListener(doc, 'mousedown', this._handleMouseDown, this, true);
-            Event.removeListener(doc, 'click', this._handleClick, this, true);
-            Event.removeListener(doc, 'dblclick', this._handleDoubleClick, this, true);
-            Event.removeListener(doc, 'keypress', this._handleKeyPress, this, true);
-            Event.removeListener(doc, 'keyup', this._handleKeyUp, this, true);
-            Event.removeListener(doc, 'keydown', this._handleKeyDown, this, true);
-
-            //Focus and blur..
-            Event.removeListener(win, 'focus', this._handleFocus, this, true);
-            Event.removeListener(win, 'blur', this._handleBlur, this, true);
-        },
-        _fixWebkitDivs: function() {
-            if (this.browser.webkit) {
-                var divs = this._getDoc().body.getElementsByTagName('div');
-                Dom.addClass(divs, 'yui-wk-div');
-            }
-        },
-        /**
-        * @private
-        * @method _initEditor
-        * @param {Boolean} raw Don't add events.
-        * @description This method is fired from _checkLoaded when the document is ready. It turns on designMode and set's up the listeners.
-        */
-        _initEditor: function(raw) {
-            if (this._editorInit) {
-                return;
-            }
-            this._editorInit = true;
-            if (this.browser.ie) {
-                this._getDoc().body.style.margin = '0';
-            }
-            if (!this.get('disabled')) {
-                this._setDesignMode('on');
-                this._contentTimerCounter = 0;
-            }
-            if (!this._getDoc().body) {
-                YAHOO.log('Body is null, check again', 'error', 'SimpleEditor');
-                this._contentTimerCounter = 0;
-                this._editorInit = false;
-                this._checkLoaded();
-                return false;
-            }
-            
-            YAHOO.log('editorLoaded', 'info', 'SimpleEditor');
-            if (!raw) {
-                this.toolbar.on('buttonClick', this._handleToolbarClick, this, true);
-            }
-            if (!this.get('disabled')) {
-                this._initEditorEvents();
-                this.toolbar.set('disabled', false);
-            }
-
-            if (raw) {
-                this.fireEvent('editorContentReloaded', { type: 'editorreloaded', target: this });
-            } else {
-                this.fireEvent('editorContentLoaded', { type: 'editorLoaded', target: this });
-            }
-            this._fixWebkitDivs();
-            if (this.get('dompath')) {
-                YAHOO.log('Delayed DomPath write', 'info', 'SimpleEditor');
-                var self = this;
-                setTimeout(function() {
-                    self._writeDomPath.call(self);
-                    self._setupResize.call(self);
-                }, 150);
-            }
-            var br = [];
-            for (var i in this.browser) {
-                if (this.browser[i]) {
-                    br.push(i);
-                }
-            }
-            if (this.get('ptags')) {
-                br.push('ptags');
-            }
-            Dom.addClass(this._getDoc().body, br.join(' '));
-            this.nodeChange(true);
-        },
-        /**
-        * @private
-        * @method _checkLoaded
-        * @param {Boolean} raw Don't add events.
-        * @description Called from a setTimeout loop to check if the iframes body.onload event has fired, then it will init the editor.
-        */
-        _checkLoaded: function(raw) {
-            this._editorInit = false;
-            this._contentTimerCounter++;
-            if (this._contentTimer) {
-                clearTimeout(this._contentTimer);
-            }
-            if (this._contentTimerCounter > this._contentTimerMax) {
-                YAHOO.log('ERROR: Body Did Not load', 'error', 'SimpleEditor');
-                return false;
-            }
-            var init = false;
-            try {
-                if (this._getDoc() && this._getDoc().body) {
-                    if (this.browser.ie) {
-                        if (this._getDoc().body.readyState == 'complete') {
-                            init = true;
-                        }
-                    } else {
-                        if (this._getDoc().body._rteLoaded === true) {
-                            init = true;
-                        }
-                    }
-                }
-            } catch (e) {
-                init = false;
-                YAHOO.log('checking body (e)' + e, 'error', 'SimpleEditor');
-            }
-
-            if (init === true) {
-                //The onload event has fired, clean up after ourselves and fire the _initEditor method
-                YAHOO.log('Firing _initEditor', 'info', 'SimpleEditor');
-                this._initEditor(raw);
-            } else {
-                var self = this;
-                this._contentTimer = setTimeout(function() {
-                    self._checkLoaded.call(self, raw);
-                }, 20);
-            }
-        },
-        /**
-        * @private
-        * @method _setInitialContent
-        * @param {Boolean} raw Don't add events.
-        * @description This method will open the iframes content document and write the textareas value into it, then start the body.onload checking.
-        */
-        _setInitialContent: function(raw) {
-            YAHOO.log('Populating editor body with contents of the text area', 'info', 'SimpleEditor');
-
-            var value = ((this._textarea) ? this.get('element').value : this.get('element').innerHTML),
-                doc = null;
-
-            if (value === '') {
-                value = '<br>';
-            }
-
-            var html = Lang.substitute(this.get('html'), {
-                TITLE: this.STR_TITLE,
-                CONTENT: this._cleanIncomingHTML(value),
-                CSS: this.get('css'),
-                HIDDEN_CSS: ((this.get('hiddencss')) ? this.get('hiddencss') : '/* No Hidden CSS */'),
-                EXTRA_CSS: ((this.get('extracss')) ? this.get('extracss') : '/* No Extra CSS */')
-            }),
-            check = true;
-
-            html = html.replace(/RIGHT_BRACKET/gi, '{');
-            html = html.replace(/LEFT_BRACKET/gi, '}');
-
-            if (document.compatMode != 'BackCompat') {
-                YAHOO.log('Adding Doctype to editable area', 'info', 'SimpleEditor');
-                html = this._docType + "\n" + html;
-            } else {
-                YAHOO.log('DocType skipped because we are in BackCompat Mode.', 'warn', 'SimpleEditor');
-            }
-
-            if (this.browser.ie || this.browser.webkit || this.browser.opera || (navigator.userAgent.indexOf('Firefox/1.5') != -1)) {
-                //Firefox 1.5 doesn't like setting designMode on an document created with a data url
-                try {
-                    //Adobe AIR Code
-                    if (this.browser.air) {
-                        doc = this._getDoc().implementation.createHTMLDocument();
-                        var origDoc = this._getDoc();
-                        origDoc.open();
-                        origDoc.close();
-                        doc.open();
-                        doc.write(html);
-                        doc.close();
-                        var node = origDoc.importNode(doc.getElementsByTagName("html")[0], true);
-                        origDoc.replaceChild(node, origDoc.getElementsByTagName("html")[0]);
-                        origDoc.body._rteLoaded = true;
-                    } else {
-                        doc = this._getDoc();
-                        doc.open();
-                        doc.write(html);
-                        doc.close();
-                    }
-                } catch (e) {
-                    YAHOO.log('Setting doc failed.. (_setInitialContent)', 'error', 'SimpleEditor');
-                    //Safari will only be here if we are hidden
-                    check = false;
-                }
-            } else {
-                //This keeps Firefox 2 from writing the iframe to history preserving the back buttons functionality
-                this.get('iframe').get('element').src = 'data:text/html;charset=utf-8,' + encodeURIComponent(html);
-            }
-            this.get('iframe').setStyle('visibility', '');
-            if (check) {
-                this._checkLoaded(raw);
-            }            
-        },
-        /**
-        * @private
-        * @method _setMarkupType
-        * @param {String} action The action to take. Possible values are: css, default or semantic
-        * @description This method will turn on/off the useCSS execCommand.
-        */
-        _setMarkupType: function(action) {
-            switch (this.get('markup')) {
-                case 'css':
-                    this._setEditorStyle(true);
-                    break;
-                case 'default':
-                    this._setEditorStyle(false);
-                    break;
-                case 'semantic':
-                case 'xhtml':
-                    if (this._semantic[action]) {
-                        this._setEditorStyle(false);
-                    } else {
-                        this._setEditorStyle(true);
-                    }
-                    break;
-            }
-        },
-        /**
-        * Set the editor to use CSS instead of HTML
-        * @param {Booleen} stat True/False
-        */
-        _setEditorStyle: function(stat) {
-            try {
-                this._getDoc().execCommand('useCSS', false, !stat);
-            } catch (ex) {
-            }
-        },
-        /**
-        * @private
-        * @method _getSelectedElement
-        * @description This method will attempt to locate the element that was last interacted with, either via selection, location or event.
-        * @return {HTMLElement} The currently selected element.
-        */
-        _getSelectedElement: function() {
-            var doc = this._getDoc(),
-                range = null,
-                sel = null,
-                elm = null,
-                check = true;
-
-            if (this.browser.ie) {
-                this.currentEvent = this._getWindow().event; //Event utility assumes window.event, so we need to reset it to this._getWindow().event;
-                range = this._getRange();
-                if (range) {
-                    elm = range.item ? range.item(0) : range.parentElement();
-                    if (this._hasSelection()) {
-                        //TODO
-                        //WTF.. Why can't I get an element reference here?!??!
-                    }
-                    if (elm === doc.body) {
-                        elm = null;
-                    }
-                }
-                if ((this.currentEvent !== null) && (this.currentEvent.keyCode === 0)) {
-                    elm = Event.getTarget(this.currentEvent);
-                }
-            } else {
-                sel = this._getSelection();
-                range = this._getRange();
-
-                if (!sel || !range) {
-                    return null;
-                }
-                //TODO
-                if (!this._hasSelection() && this.browser.webkit3) {
-                    //check = false;
-                }
-                if (this.browser.gecko) {
-                    //Added in 2.6.0
-                    if (range.startContainer) {
-                        if (range.startContainer.nodeType === 3) {
-                            elm = range.startContainer.parentNode;
-                        } else if (range.startContainer.nodeType === 1) {
-                            elm = range.startContainer;
-                        }
-                        //Added in 2.7.0
-                        if (this.currentEvent) {
-                            var tar = Event.getTarget(this.currentEvent);
-                            if (!this._isElement(tar, 'html')) {
-                                if (elm !== tar) {
-                                    elm = tar;
-                                }
-                            }
-                        }
-                    }
-                }
-                
-                if (check) {
-                    if (sel.anchorNode && (sel.anchorNode.nodeType == 3)) {
-                        if (sel.anchorNode.parentNode) { //next check parentNode
-                            elm = sel.anchorNode.parentNode;
-                        }
-                        if (sel.anchorNode.nextSibling != sel.focusNode.nextSibling) {
-                            elm = sel.anchorNode.nextSibling;
-                        }
-                    }
-                    if (this._isElement(elm, 'br')) {
-                        elm = null;
-                    }
-                    if (!elm) {
-                        elm = range.commonAncestorContainer;
-                        if (!range.collapsed) {
-                            if (range.startContainer == range.endContainer) {
-                                if (range.startOffset - range.endOffset < 2) {
-                                    if (range.startContainer.hasChildNodes()) {
-                                        elm = range.startContainer.childNodes[range.startOffset];
-                                    }
-                                }
-                            }
-                        }
-                    }
-               }
-            }
-            
-            if (this.currentEvent !== null) {
-                try {
-                    switch (this.currentEvent.type) {
-                        case 'click':
-                        case 'mousedown':
-                        case 'mouseup':
-                            if (this.browser.webkit) {
-                                elm = Event.getTarget(this.currentEvent);
-                            }
-                            break;
-                        default:
-                            //Do nothing
-                            break;
-                    }
-                } catch (e) {
-                    YAHOO.log('Firefox 1.5 errors here: ' + e, 'error', 'SimpleEditor');
-                }
-            } else if ((this.currentElement && this.currentElement[0]) && (!this.browser.ie)) {
-                //TODO is this still needed?
-                //elm = this.currentElement[0];
-            }
-
-
-            if (this.browser.opera || this.browser.webkit) {
-                if (this.currentEvent && !elm) {
-                    elm = YAHOO.util.Event.getTarget(this.currentEvent);
-                }
-            }
-            if (!elm || !elm.tagName) {
-                elm = doc.body;
-            }
-            if (this._isElement(elm, 'html')) {
-                //Safari sometimes gives us the HTML node back..
-                elm = doc.body;
-            }
-            if (this._isElement(elm, 'body')) {
-                //make sure that body means this body not the parent..
-                elm = doc.body;
-            }
-            if (elm && !elm.parentNode) { //Not in document
-                elm = doc.body;
-            }
-            if (elm === undefined) {
-                elm = null;
-            }
-            return elm;
-        },
-        /**
-        * @private
-        * @method _getDomPath
-        * @description This method will attempt to build the DOM path from the currently selected element.
-        * @param HTMLElement el The element to start with, if not provided _getSelectedElement is used
-        * @return {Array} An array of node references that will create the DOM Path.
-        */
-        _getDomPath: function(el) {
-            if (!el) {
-                           el = this._getSelectedElement();
-            }
-                       var domPath = [];
-            while (el !== null) {
-                if (el.ownerDocument != this._getDoc()) {
-                    el = null;
-                    break;
-                }
-                //Check to see if we get el.nodeName and nodeType
-                if (el.nodeName && el.nodeType && (el.nodeType == 1)) {
-                    domPath[domPath.length] = el;
-                }
-
-                if (this._isElement(el, 'body')) {
-                    break;
-                }
-
-                el = el.parentNode;
-            }
-            if (domPath.length === 0) {
-                if (this._getDoc() && this._getDoc().body) {
-                    domPath[0] = this._getDoc().body;
-                }
-            }
-            return domPath.reverse();
-        },
-        /**
-        * @private
-        * @method _writeDomPath
-        * @description Write the current DOM path out to the dompath container below the editor.
-        */
-        _writeDomPath: function() { 
-            var path = this._getDomPath(),
-                pathArr = [],
-                classPath = '',
-                pathStr = '';
-
-            for (var i = 0; i < path.length; i++) {
-                var tag = path[i].tagName.toLowerCase();
-                if ((tag == 'ol') && (path[i].type)) {
-                    tag += ':' + path[i].type;
-                }
-                if (Dom.hasClass(path[i], 'yui-tag')) {
-                    tag = path[i].getAttribute('tag');
-                }
-                if ((this.get('markup') == 'semantic') || (this.get('markup') == 'xhtml')) {
-                    switch (tag) {
-                        case 'b': tag = 'strong'; break;
-                        case 'i': tag = 'em'; break;
-                    }
-                }
-                if (!Dom.hasClass(path[i], 'yui-non')) {
-                    if (Dom.hasClass(path[i], 'yui-tag')) {
-                        pathStr = tag;
-                    } else {
-                        classPath = ((path[i].className !== '') ? '.' + path[i].className.replace(/ /g, '.') : '');
-                        if ((classPath.indexOf('yui') != -1) || (classPath.toLowerCase().indexOf('apple-style-span') != -1)) {
-                            classPath = '';
-                        }
-                        pathStr = tag + ((path[i].id) ? '#' + path[i].id : '') + classPath;
-                    }
-                    switch (tag) {
-                        case 'body':
-                            pathStr = 'body';
-                            break;
-                        case 'a':
-                            if (path[i].getAttribute('href', 2)) {
-                                pathStr += ':' + path[i].getAttribute('href', 2).replace('mailto:', '').replace('http:/'+'/', '').replace('https:/'+'/', ''); //May need to add others here ftp
-                            }
-                            break;
-                        case 'img':
-                            var h = path[i].height;
-                            var w = path[i].width;
-                            if (path[i].style.height) {
-                                h = parseInt(path[i].style.height, 10);
-                            }
-                            if (path[i].style.width) {
-                                w = parseInt(path[i].style.width, 10);
-                            }
-                            pathStr += '(' + w + 'x' + h + ')';
-                        break;
-                    }
-
-                    if (pathStr.length > 10) {
-                        pathStr = '<span title="' + pathStr + '">' + pathStr.substring(0, 10) + '...' + '</span>';
-                    } else {
-                        pathStr = '<span title="' + pathStr + '">' + pathStr + '</span>';
-                    }
-                    pathArr[pathArr.length] = pathStr;
-                }
-            }
-            var str = pathArr.join(' ' + this.SEP_DOMPATH + ' ');
-            //Prevent flickering
-            if (this.dompath.innerHTML != str) {
-                this.dompath.innerHTML = str;
-            }
-        },
-        /**
-        * @private
-        * @method _fixNodes
-        * @description Fix href and imgs as well as remove invalid HTML.
-        */
-        _fixNodes: function() {
-            try {
-                var doc = this._getDoc(),
-                    els = [];
-
-                for (var v in this.invalidHTML) {
-                    if (YAHOO.lang.hasOwnProperty(this.invalidHTML, v)) {
-                        if (v.toLowerCase() != 'span') {
-                            var tags = doc.body.getElementsByTagName(v);
-                            if (tags.length) {
-                                for (var i = 0; i < tags.length; i++) {
-                                    els.push(tags[i]);
-                                }
-                            }
-                        }
-                    }
-                }
-                for (var h = 0; h < els.length; h++) {
-                    if (els[h].parentNode) {
-                        if (Lang.isObject(this.invalidHTML[els[h].tagName.toLowerCase()]) && this.invalidHTML[els[h].tagName.toLowerCase()].keepContents) {
-                            this._swapEl(els[h], 'span', function(el) {
-                                el.className = 'yui-non';
-                            });
-                        } else {
-                            els[h].parentNode.removeChild(els[h]);
-                        }
-                    }
-                }
-                var imgs = this._getDoc().getElementsByTagName('img');
-                Dom.addClass(imgs, 'yui-img');
-            } catch(e) {}
-        },
-        /**
-        * @private
-        * @method _isNonEditable
-        * @param Event ev The Dom event being checked
-        * @description Method is called at the beginning of all event handlers to check if this element or a parent element has the class yui-noedit (this.CLASS_NOEDIT) applied.
-        * If it does, then this method will stop the event and return true. The event handlers will then return false and stop the nodeChange from occuring. This method will also
-        * disable and enable the Editor's toolbar based on the noedit state.
-        * @return Boolean
-        */
-        _isNonEditable: function(ev) {
-            if (this.get('allowNoEdit')) {
-                var el = Event.getTarget(ev);
-                if (this._isElement(el, 'html')) {
-                    el = null;
-                }
-                var path = this._getDomPath(el);
-                for (var i = (path.length - 1); i > -1; i--) {
-                    if (Dom.hasClass(path[i], this.CLASS_NOEDIT)) {
-                        //if (this.toolbar.get('disabled') === false) {
-                        //    this.toolbar.set('disabled', true);
-                        //}
-                        try {
-                             this._getDoc().execCommand('enableObjectResizing', false, 'false');
-                        } catch (e) {}
-                        this.nodeChange();
-                        Event.stopEvent(ev);
-                        YAHOO.log('CLASS_NOEDIT found in DOM Path, stopping event', 'info', 'SimpleEditor');
-                        return true;
-                    }
-                }
-                //if (this.toolbar.get('disabled') === true) {
-                    //Should only happen once..
-                    //this.toolbar.set('disabled', false);
-                    try {
-                         this._getDoc().execCommand('enableObjectResizing', false, 'true');
-                    } catch (e2) {}
-                //}
-            }
-            return false;
-        },
-        /**
-        * @private
-        * @method _setCurrentEvent
-        * @param {Event} ev The event to cache
-        * @description Sets the current event property
-        */
-        _setCurrentEvent: function(ev) {
-            this.currentEvent = ev;
-        },
-        /**
-        * @private
-        * @method _handleClick
-        * @param {Event} ev The event we are working on.
-        * @description Handles all click events inside the iFrame document.
-        */
-        _handleClick: function(ev) {
-            var ret = this.fireEvent('beforeEditorClick', { type: 'beforeEditorClick', target: this, ev: ev });
-            if (ret === false) {
-                return false;
-            }
-            if (this._isNonEditable(ev)) {
-                return false;
-            }
-            this._setCurrentEvent(ev);
-            if (this.currentWindow) {
-                this.closeWindow();
-            }
-            if (this.currentWindow) {
-                this.closeWindow();
-            }
-            if (this.browser.webkit) {
-                var tar =Event.getTarget(ev);
-                if (this._isElement(tar, 'a') || this._isElement(tar.parentNode, 'a')) {
-                    Event.stopEvent(ev);
-                    this.nodeChange();
-                }
-            } else {
-                this.nodeChange();
-            }
-            this.fireEvent('editorClick', { type: 'editorClick', target: this, ev: ev });
-        },
-        /**
-        * @private
-        * @method _handleMouseUp
-        * @param {Event} ev The event we are working on.
-        * @description Handles all mouseup events inside the iFrame document.
-        */
-        _handleMouseUp: function(ev) {
-            var ret = this.fireEvent('beforeEditorMouseUp', { type: 'beforeEditorMouseUp', target: this, ev: ev });
-            if (ret === false) {
-                return false;
-            }
-            if (this._isNonEditable(ev)) {
-                return false;
-            }
-            //Don't set current event for mouseup.
-            //It get's fired after a menu is closed and gives up a bogus event to work with
-            //this._setCurrentEvent(ev);
-            var self = this;
-            if (this.browser.opera) {
-                /*
-                * @knownissue Opera appears to stop the MouseDown, Click and DoubleClick events on an image inside of a document with designMode on..
-                * @browser Opera
-                * @description This work around traps the MouseUp event and sets a timer to check if another MouseUp event fires in so many seconds. If another event is fired, they we internally fire the DoubleClick event.
-                */
-                var sel = Event.getTarget(ev);
-                if (this._isElement(sel, 'img')) {
-                    this.nodeChange();
-                    if (this.operaEvent) {
-                        clearTimeout(this.operaEvent);
-                        this.operaEvent = null;
-                        this._handleDoubleClick(ev);
-                    } else {
-                        this.operaEvent = window.setTimeout(function() {
-                            self.operaEvent = false;
-                        }, 700);
-                    }
-                }
-            }
-            //This will stop Safari from selecting the entire document if you select all the text in the editor
-            if (this.browser.webkit || this.browser.opera) {
-                if (this.browser.webkit) {
-                    Event.stopEvent(ev);
-                }
-            }
-            this.nodeChange();
-            this.fireEvent('editorMouseUp', { type: 'editorMouseUp', target: this, ev: ev });
-        },
-        /**
-        * @private
-        * @method _handleMouseDown
-        * @param {Event} ev The event we are working on.
-        * @description Handles all mousedown events inside the iFrame document.
-        */
-        _handleMouseDown: function(ev) {
-            var ret = this.fireEvent('beforeEditorMouseDown', { type: 'beforeEditorMouseDown', target: this, ev: ev });
-            if (ret === false) {
-                return false;
-            }
-            if (this._isNonEditable(ev)) {
-                return false;
-            }
-            this._setCurrentEvent(ev);
-            var sel = Event.getTarget(ev);
-            if (this.browser.webkit && this._hasSelection()) {
-                var _sel = this._getSelection();
-                if (!this.browser.webkit3) {
-                    _sel.collapse(true);
-                } else {
-                    _sel.collapseToStart();
-                }
-            }
-            if (this.browser.webkit && this._lastImage) {
-                Dom.removeClass(this._lastImage, 'selected');
-                this._lastImage = null;
-            }
-            if (this._isElement(sel, 'img') || this._isElement(sel, 'a')) {
-                if (this.browser.webkit) {
-                    Event.stopEvent(ev);
-                    if (this._isElement(sel, 'img')) {
-                        Dom.addClass(sel, 'selected');
-                        this._lastImage = sel;
-                    }
-                }
-                if (this.currentWindow) {
-                    this.closeWindow();
-                }
-                this.nodeChange();
-            }
-            this.fireEvent('editorMouseDown', { type: 'editorMouseDown', target: this, ev: ev });
-        },
-        /**
-        * @private
-        * @method _handleDoubleClick
-        * @param {Event} ev The event we are working on.
-        * @description Handles all doubleclick events inside the iFrame document.
-        */
-        _handleDoubleClick: function(ev) {
-            var ret = this.fireEvent('beforeEditorDoubleClick', { type: 'beforeEditorDoubleClick', target: this, ev: ev });
-            if (ret === false) {
-                return false;
-            }
-            if (this._isNonEditable(ev)) {
-                return false;
-            }
-            this._setCurrentEvent(ev);
-            var sel = Event.getTarget(ev);
-            if (this._isElement(sel, 'img')) {
-                this.currentElement[0] = sel;
-                this.toolbar.fireEvent('insertimageClick', { type: 'insertimageClick', target: this.toolbar });
-                this.fireEvent('afterExecCommand', { type: 'afterExecCommand', target: this });
-            } else if (this._hasParent(sel, 'a')) { //Handle elements inside an a
-                this.currentElement[0] = this._hasParent(sel, 'a');
-                this.toolbar.fireEvent('createlinkClick', { type: 'createlinkClick', target: this.toolbar });
-                this.fireEvent('afterExecCommand', { type: 'afterExecCommand', target: this });
-            }
-            this.nodeChange();
-            this.fireEvent('editorDoubleClick', { type: 'editorDoubleClick', target: this, ev: ev });
-        },
-        /**
-        * @private
-        * @method _handleKeyUp
-        * @param {Event} ev The event we are working on.
-        * @description Handles all keyup events inside the iFrame document.
-        */
-        _handleKeyUp: function(ev) {
-            var ret = this.fireEvent('beforeEditorKeyUp', { type: 'beforeEditorKeyUp', target: this, ev: ev });
-            if (ret === false) {
-                return false;
-            }
-            if (this._isNonEditable(ev)) {
-                return false;
-            }
-            this._storeUndo();
-            this._setCurrentEvent(ev);
-            switch (ev.keyCode) {
-                case this._keyMap.SELECT_ALL.key:
-                    if (this._checkKey(this._keyMap.SELECT_ALL, ev)) {
-                        this.nodeChange();
-                    }
-                    break;
-                case 32: //Space Bar
-                case 35: //End
-                case 36: //Home
-                case 37: //Left Arrow
-                case 38: //Up Arrow
-                case 39: //Right Arrow
-                case 40: //Down Arrow
-                case 46: //Forward Delete
-                case 8: //Delete
-                case this._keyMap.CLOSE_WINDOW.key: //W key if window is open
-                    if ((ev.keyCode == this._keyMap.CLOSE_WINDOW.key) && this.currentWindow) {
-                        if (this._checkKey(this._keyMap.CLOSE_WINDOW, ev)) {
-                            this.closeWindow();
-                        }
-                    } else {
-                        if (!this.browser.ie) {
-                            if (this._nodeChangeTimer) {
-                                clearTimeout(this._nodeChangeTimer);
-                            }
-                            var self = this;
-                            this._nodeChangeTimer = setTimeout(function() {
-                                self._nodeChangeTimer = null;
-                                self.nodeChange.call(self);
-                            }, 100);
-                        } else {
-                            this.nodeChange();
-                        }
-                        this.editorDirty = true;
-                    }
-                    break;
-            }
-            this.fireEvent('editorKeyUp', { type: 'editorKeyUp', target: this, ev: ev });
-        },
-        /**
-        * @private
-        * @method _handleKeyPress
-        * @param {Event} ev The event we are working on.
-        * @description Handles all keypress events inside the iFrame document.
-        */
-        _handleKeyPress: function(ev) {
-            var ret = this.fireEvent('beforeEditorKeyPress', { type: 'beforeEditorKeyPress', target: this, ev: ev });
-            if (ret === false) {
-                return false;
-            }
-
-            if (this.get('allowNoEdit')) {
-                //if (ev && ev.keyCode && ((ev.keyCode == 46) || ev.keyCode == 63272)) {
-                if (ev && ev.keyCode && (ev.keyCode == 63272)) {
-                    //Forward delete key
-                    YAHOO.log('allowNoEdit is set, forward delete key has been disabled', 'warn', 'SimpleEditor');
-                    Event.stopEvent(ev);
-                }
-            }
-            if (this._isNonEditable(ev)) {
-                return false;
-            }
-            this._setCurrentEvent(ev);
-            this._storeUndo();
-            if (this.browser.opera) {
-                if (ev.keyCode === 13) {
-                    var tar = this._getSelectedElement();
-                    if (!this._isElement(tar, 'li')) {
-                        this.execCommand('inserthtml', '<br>');
-                        Event.stopEvent(ev);
-                    }
-                }
-            }
-            if (this.browser.webkit) {
-                if (!this.browser.webkit3) {
-                    if (ev.keyCode && (ev.keyCode == 122) && (ev.metaKey)) {
-                        //This is CMD + z (for undo)
-                        if (this._hasParent(this._getSelectedElement(), 'li')) {
-                            YAHOO.log('We are in an LI and we found CMD + z, stopping the event', 'warn', 'SimpleEditor');
-                            Event.stopEvent(ev);
-                        }
-                    }
-                }
-                this._listFix(ev);
-            }
-            this._fixListDupIds();
-            this.fireEvent('editorKeyPress', { type: 'editorKeyPress', target: this, ev: ev });
-        },
-        /**
-        * @private
-        * @method _handleKeyDown
-        * @param {Event} ev The event we are working on.
-        * @description Handles all keydown events inside the iFrame document.
-        */
-        _handleKeyDown: function(ev) {
-            var ret = this.fireEvent('beforeEditorKeyDown', { type: 'beforeEditorKeyDown', target: this, ev: ev });
-            if (ret === false) {
-                return false;
-            }
-            var tar = null, _range = null;
-            if (this._isNonEditable(ev)) {
-                return false;
-            }
-            this._setCurrentEvent(ev);
-            if (this.currentWindow) {
-                this.closeWindow();
-            }
-            if (this.currentWindow) {
-                this.closeWindow();
-            }
-            var doExec = false,
-                action = null,
-                value = null,
-                exec = false;
-
-            //YAHOO.log('keyCode: ' + ev.keyCode, 'info', 'SimpleEditor');
-
-            switch (ev.keyCode) {
-                case this._keyMap.FOCUS_TOOLBAR.key:
-                    if (this._checkKey(this._keyMap.FOCUS_TOOLBAR, ev)) {
-                        var h = this.toolbar.getElementsByTagName('h2')[0];
-                        if (h && h.firstChild) {
-                            h.firstChild.focus();
-                        }
-                    } else if (this._checkKey(this._keyMap.FOCUS_AFTER, ev)) {
-                        //Focus After Element - Esc
-                        this.afterElement.focus();
-                    }
-                    Event.stopEvent(ev);
-                    doExec = false;
-                    break;
-                //case 76: //L
-                case this._keyMap.CREATE_LINK.key: //L
-                    if (this._hasSelection()) {
-                        if (this._checkKey(this._keyMap.CREATE_LINK, ev)) {
-                            var makeLink = true;
-                            if (this.get('limitCommands')) {
-                                if (!this.toolbar.getButtonByValue('createlink')) {
-                                    YAHOO.log('Toolbar Button for (createlink) was not found, skipping exec.', 'info', 'SimpleEditor');
-                                    makeLink = false;
-                                }
-                            }
-                            if (makeLink) {
-                                this.execCommand('createlink', '');
-                                this.toolbar.fireEvent('createlinkClick', { type: 'createlinkClick', target: this.toolbar });
-                                this.fireEvent('afterExecCommand', { type: 'afterExecCommand', target: this });
-                                doExec = false;
-                            }
-                        }
-                    }
-                    break;
-                //case 90: //Z
-                case this._keyMap.UNDO.key:
-                case this._keyMap.REDO.key:
-                    if (this._checkKey(this._keyMap.REDO, ev)) {
-                        action = 'redo';
-                        doExec = true;
-                    } else if (this._checkKey(this._keyMap.UNDO, ev)) {
-                        action = 'undo';
-                        doExec = true;
-                    }
-                    break;
-                //case 66: //B
-                case this._keyMap.BOLD.key:
-                    if (this._checkKey(this._keyMap.BOLD, ev)) {
-                        action = 'bold';
-                        doExec = true;
-                    }
-                    break;
-                case this._keyMap.FONT_SIZE_UP.key:
-                case this._keyMap.FONT_SIZE_DOWN.key:
-                    var uk = false, dk = false;
-                    if (this._checkKey(this._keyMap.FONT_SIZE_UP, ev)) {
-                        uk = true;
-                    }
-                    if (this._checkKey(this._keyMap.FONT_SIZE_DOWN, ev)) {
-                        dk = true;
-                    }
-                    if (uk || dk) {
-                        var fs_button = this.toolbar.getButtonByValue('fontsize'),
-                            label = parseInt(fs_button.get('label'), 10),
-                            newValue = (label + 1);
-
-                        if (dk) {
-                            newValue = (label - 1);
-                        }
-
-                        action = 'fontsize';
-                        value = newValue + 'px';
-                        doExec = true;
-                    }
-                    break;
-                //case 73: //I
-                case this._keyMap.ITALIC.key:
-                    if (this._checkKey(this._keyMap.ITALIC, ev)) {
-                        action = 'italic';
-                        doExec = true;
-                    }
-                    break;
-                //case 85: //U
-                case this._keyMap.UNDERLINE.key:
-                    if (this._checkKey(this._keyMap.UNDERLINE, ev)) {
-                        action = 'underline';
-                        doExec = true;
-                    }
-                    break;
-                case 9:
-                    if (this.browser.ie) {
-                        //Insert a tab in Internet Explorer
-                        _range = this._getRange();
-                        tar = this._getSelectedElement();
-                        if (!this._isElement(tar, 'li')) {
-                            if (_range) {
-                                _range.pasteHTML('&nbsp;&nbsp;&nbsp;&nbsp;');
-                                _range.collapse(false);
-                                _range.select();
-                            }
-                            Event.stopEvent(ev);
-                        }
-                    }
-                    //Firefox 3 code
-                    if (this.browser.gecko > 1.8) {
-                        tar = this._getSelectedElement();
-                        if (this._isElement(tar, 'li')) {
-                            if (ev.shiftKey) {
-                                this._getDoc().execCommand('outdent', null, '');
-                            } else {
-                                this._getDoc().execCommand('indent', null, '');
-                            }
-                            
-                        } else if (!this._hasSelection()) {
-                            this.execCommand('inserthtml', '&nbsp;&nbsp;&nbsp;&nbsp;');
-                        }
-                        Event.stopEvent(ev);
-                    }
-                    break;
-                case 13:
-                    var p = null, i = 0;
-                    if (this.get('ptags') && !ev.shiftKey) {
-                        if (this.browser.gecko) {
-                            tar = this._getSelectedElement();
-                            if (!this._hasParent(tar, 'li')) {
-                                if (this._hasParent(tar, 'p')) {
-                                    p = this._getDoc().createElement('p');
-                                    p.innerHTML = '&nbsp;';
-                                    Dom.insertAfter(p, tar);
-                                    this._selectNode(p.firstChild);
-                                } else if (this._isElement(tar, 'body')) {
-                                    this.execCommand('insertparagraph', null);
-                                    var ps = this._getDoc().body.getElementsByTagName('p');
-                                    for (i = 0; i < ps.length; i++) {
-                                        if (ps[i].getAttribute('_moz_dirty') !== null) {
-                                            p = this._getDoc().createElement('p');
-                                            p.innerHTML = '&nbsp;';
-                                            Dom.insertAfter(p, ps[i]);
-                                            this._selectNode(p.firstChild);
-                                            ps[i].removeAttribute('_moz_dirty');
-                                        }
-                                    }
-                                } else {
-                                    YAHOO.log('Something went wrong with paragraphs, please file a bug!!', 'error', 'SimpleEditor');
-                                    doExec = true;
-                                    action = 'insertparagraph';
-                                }
-                                Event.stopEvent(ev);
-                            }
-                        }
-                        if (this.browser.webkit) {
-                            tar = this._getSelectedElement();
-                            if (!this._hasParent(tar, 'li')) {
-                                this.execCommand('insertparagraph', null);
-                                var divs = this._getDoc().body.getElementsByTagName('div');
-                                for (i = 0; i < divs.length; i++) {
-                                    if (!Dom.hasClass(divs[i], 'yui-wk-div')) {
-                                        Dom.addClass(divs[i], 'yui-wk-p');
-                                    }
-                                }
-                                Event.stopEvent(ev);
-                            }
-                        }
-                    } else {
-                        if (this.browser.webkit) {
-                            tar = this._getSelectedElement();
-                            if (!this._hasParent(tar, 'li')) {
-                                if (this.browser.webkit4) {
-                                    this.execCommand('insertlinebreak');
-                                } else {
-                                    this.execCommand('inserthtml', '<var id="yui-br"></var>');
-                                    var holder = this._getDoc().getElementById('yui-br'),
-                                        br = this._getDoc().createElement('br'),
-                                        caret = this._getDoc().createElement('span');
-
-                                    holder.parentNode.replaceChild(br, holder);
-                                    caret.className = 'yui-non';
-                                    caret.innerHTML = '&nbsp;';
-                                    Dom.insertAfter(caret, br);
-                                    this._selectNode(caret);
-                                }
-                                Event.stopEvent(ev);
-                            }
-                        }
-                        if (this.browser.ie) {
-                            YAHOO.log('Stopping P tags', 'info', 'SimpleEditor');
-                            //Insert a <br> instead of a <p></p> in Internet Explorer
-                            _range = this._getRange();
-                            tar = this._getSelectedElement();
-                            if (!this._isElement(tar, 'li')) {
-                                if (_range) {
-                                    _range.pasteHTML('<br>');
-                                    _range.collapse(false);
-                                    _range.select();
-                                }
-                                Event.stopEvent(ev);
-                            }
-                        }
-                    }
-                    break;
-            }
-            if (this.browser.ie) {
-                this._listFix(ev);
-            }
-            if (doExec && action) {
-                this.execCommand(action, value);
-                Event.stopEvent(ev);
-                this.nodeChange();
-            }
-            this._storeUndo();
-            this.fireEvent('editorKeyDown', { type: 'editorKeyDown', target: this, ev: ev });
-        },
-        /**
-        * @private
-        * @property _fixListRunning
-        * @type Boolean
-        * @description Keeps more than one _fixListDupIds from running at the same time.
-        */
-        _fixListRunning: null,
-        /**
-        * @private
-        * @method _fixListDupIds
-        * @description Some browsers will duplicate the id of an LI when created in designMode.
-        * This method will fix the duplicate id issue. However it will only preserve the first element 
-        * in the document list with the unique id. 
-        */
-        _fixListDupIds: function() {
-            if (this._fixListRunning) {
-                return false;
-            }
-            if (this._getDoc()) {
-                this._fixListRunning = true;
-                var lis = this._getDoc().body.getElementsByTagName('li'),
-                    i = 0, ids = {};
-                for (i = 0; i < lis.length; i++) {
-                    if (lis[i].id) {
-                        if (ids[lis[i].id]) {
-                            lis[i].id = '';
-                        }
-                        ids[lis[i].id] = true;
-                    }
-                }
-                this._fixListRunning = false;
-            }
-        },
-        /**
-        * @private
-        * @method _listFix
-        * @param {Event} ev The event we are working on.
-        * @description Handles the Enter key, Tab Key and Shift + Tab keys for List Items.
-        */
-        _listFix: function(ev) {
-            //YAHOO.log('Lists Fix (' + ev.keyCode + ')', 'info', 'SimpleEditor');
-            var testLi = null, par = null, preContent = false, range = null;
-            //Enter Key
-            if (this.browser.webkit) {
-                if (ev.keyCode && (ev.keyCode == 13)) {
-                    if (this._hasParent(this._getSelectedElement(), 'li')) {
-                        var tar = this._hasParent(this._getSelectedElement(), 'li');
-                        if (tar.previousSibling) {
-                            if (tar.firstChild && (tar.firstChild.length == 1)) {
-                                this._selectNode(tar);
-                            }
-                        }
-                    }
-                }
-            }
-            //Shift + Tab Key
-            if (ev.keyCode && ((!this.browser.webkit3 && (ev.keyCode == 25)) || ((this.browser.webkit3 || !this.browser.webkit) && ((ev.keyCode == 9) && ev.shiftKey)))) {
-                testLi = this._getSelectedElement();
-                if (this._hasParent(testLi, 'li')) {
-                    testLi = this._hasParent(testLi, 'li');
-                    YAHOO.log('We have a SHIFT tab in an LI, reverse it..', 'info', 'SimpleEditor');
-                    if (this._hasParent(testLi, 'ul') || this._hasParent(testLi, 'ol')) {
-                        YAHOO.log('We have a double parent, move up a level', 'info', 'SimpleEditor');
-                        par = this._hasParent(testLi, 'ul');
-                        if (!par) {
-                            par = this._hasParent(testLi, 'ol');
-                        }
-                        //YAHOO.log(par.previousSibling + ' :: ' + par.previousSibling.innerHTML);
-                        if (this._isElement(par.previousSibling, 'li')) {
-                            par.removeChild(testLi);
-                            par.parentNode.insertBefore(testLi, par.nextSibling);
-                            if (this.browser.ie) {
-                                range = this._getDoc().body.createTextRange();
-                                range.moveToElementText(testLi);
-                                range.collapse(false);
-                                range.select();
-                            }
-                            if (this.browser.webkit) {
-                                this._selectNode(testLi.firstChild);
-                            }
-                            Event.stopEvent(ev);
-                        }
-                    }
-                }
-            }
-            //Tab Key
-            if (ev.keyCode && ((ev.keyCode == 9) && (!ev.shiftKey))) {
-                YAHOO.log('List Fix - Tab', 'info', 'SimpleEditor');
-                var preLi = this._getSelectedElement();
-                if (this._hasParent(preLi, 'li')) {
-                    preContent = this._hasParent(preLi, 'li').innerHTML;
-                }
-                //YAHOO.log('preLI: ' + preLi.tagName + ' :: ' + preLi.innerHTML);
-                if (this.browser.webkit) {
-                    this._getDoc().execCommand('inserttext', false, '\t');
-                }
-                testLi = this._getSelectedElement();
-                if (this._hasParent(testLi, 'li')) {
-                    YAHOO.log('We have a tab in an LI', 'info', 'SimpleEditor');
-                    par = this._hasParent(testLi, 'li');
-                    YAHOO.log('parLI: ' + par.tagName + ' :: ' + par.innerHTML);
-                    var newUl = this._getDoc().createElement(par.parentNode.tagName.toLowerCase());
-                    if (this.browser.webkit) {
-                        var span = Dom.getElementsByClassName('Apple-tab-span', 'span', par);
-                        //Remove the span element that Safari puts in
-                        if (span[0]) {
-                            par.removeChild(span[0]);
-                            par.innerHTML = Lang.trim(par.innerHTML);
-                            //Put the HTML from the LI into this new LI
-                            if (preContent) {
-                                par.innerHTML = '<span class="yui-non">' + preContent + '</span>&nbsp;';
-                            } else {
-                                par.innerHTML = '<span class="yui-non">&nbsp;</span>&nbsp;';
-                            }
-                        }
-                    } else {
-                        if (preContent) {
-                            par.innerHTML = preContent + '&nbsp;';
-                        } else {
-                            par.innerHTML = '&nbsp;';
-                        }
-                    }
-
-                    par.parentNode.replaceChild(newUl, par);
-                    newUl.appendChild(par);
-                    if (this.browser.webkit) {
-                        this._getSelection().setBaseAndExtent(par.firstChild, 1, par.firstChild, par.firstChild.innerText.length);
-                        if (!this.browser.webkit3) {
-                            par.parentNode.parentNode.style.display = 'list-item';
-                            setTimeout(function() {
-                                par.parentNode.parentNode.style.display = 'block';
-                            }, 1);
-                        }
-                    } else if (this.browser.ie) {
-                        range = this._getDoc().body.createTextRange();
-                        range.moveToElementText(par);
-                        range.collapse(false);
-                        range.select();
-                    } else {
-                        this._selectNode(par);
-                    }
-                    Event.stopEvent(ev);
-                }
-                if (this.browser.webkit) {
-                    Event.stopEvent(ev);
-                }
-                this.nodeChange();
-            }
-        },
-        /**
-        * @method nodeChange
-        * @param {Boolean} force Optional paramenter to skip the threshold counter
-        * @description Handles setting up the toolbar buttons, getting the Dom path, fixing nodes.
-        */
-        nodeChange: function(force) {
-            var NCself = this;
-            this._storeUndo();
-            if (this.get('nodeChangeDelay')) {
-                this._nodeChangeDelayTimer = window.setTimeout(function() {
-                    NCself._nodeChangeDelayTimer = null;
-                    NCself._nodeChange.apply(NCself, arguments);
-                }, 0);
-            } else {
-                this._nodeChange();
-            }
-        },
-        /**
-        * @private
-        * @method _nodeChange
-        * @param {Boolean} force Optional paramenter to skip the threshold counter
-        * @description Fired from nodeChange in a setTimeout.
-        */
-        _nodeChange: function(force) {
-            var threshold = parseInt(this.get('nodeChangeThreshold'), 10),
-                thisNodeChange = Math.round(new Date().getTime() / 1000),
-                self = this;
-
-            if (force === true) {
-                this._lastNodeChange = 0;
-            }
-            
-            if ((this._lastNodeChange + threshold) < thisNodeChange) {
-                if (this._fixNodesTimer === null) {
-                    this._fixNodesTimer = window.setTimeout(function() {
-                        self._fixNodes.call(self);
-                        self._fixNodesTimer = null;
-                    }, 0);
-                }
-            }
-            this._lastNodeChange = thisNodeChange;
-            if (this.currentEvent) {
-                try {
-                    this._lastNodeChangeEvent = this.currentEvent.type;
-                } catch (e) {}
-            }
-
-            var beforeNodeChange = this.fireEvent('beforeNodeChange', { type: 'beforeNodeChange', target: this });
-            if (beforeNodeChange === false) {
-                return false;
-            }
-            if (this.get('dompath')) {
-                window.setTimeout(function() {
-                    self._writeDomPath.call(self);
-                }, 0);
-            }
-            //Check to see if we are disabled before continuing
-            if (!this.get('disabled')) {
-                if (this.STOP_NODE_CHANGE) {
-                    //Reset this var for next action
-                    this.STOP_NODE_CHANGE = false;
-                    return false;
-                } else {
-                    var sel = this._getSelection(),
-                        range = this._getRange(),
-                        el = this._getSelectedElement(),
-                        fn_button = this.toolbar.getButtonByValue('fontname'),
-                        fs_button = this.toolbar.getButtonByValue('fontsize'),
-                        undo_button = this.toolbar.getButtonByValue('undo'),
-                        redo_button = this.toolbar.getButtonByValue('redo');
-
-                    //Handle updating the toolbar with active buttons
-                    var _ex = {};
-                    if (this._lastButton) {
-                        _ex[this._lastButton.id] = true;
-                        //this._lastButton = null;
-                    }
-                    if (!this._isElement(el, 'body')) {
-                        if (fn_button) {
-                            _ex[fn_button.get('id')] = true;
-                        }
-                        if (fs_button) {
-                            _ex[fs_button.get('id')] = true;
-                        }
-                    }
-                    if (redo_button) {
-                        delete _ex[redo_button.get('id')];
-                    }
-                    this.toolbar.resetAllButtons(_ex);
-
-                    //Handle disabled buttons
-                    for (var d = 0; d < this._disabled.length; d++) {
-                        var _button = this.toolbar.getButtonByValue(this._disabled[d]);
-                        if (_button && _button.get) {
-                            if (this._lastButton && (_button.get('id') === this._lastButton.id)) {
-                                //Skip
-                            } else {
-                                if (!this._hasSelection() && !this.get('insert')) {
-                                    switch (this._disabled[d]) {
-                                        case 'fontname':
-                                        case 'fontsize':
-                                            break;
-                                        default:
-                                            //No Selection - disable
-                                            this.toolbar.disableButton(_button);
-                                    }
-                                } else {
-                                    if (!this._alwaysDisabled[this._disabled[d]]) {
-                                        this.toolbar.enableButton(_button);
-                                    }
-                                }
-                                if (!this._alwaysEnabled[this._disabled[d]]) {
-                                    this.toolbar.deselectButton(_button);
-                                }
-                            }
-                        }
-                    }
-                    var path = this._getDomPath();
-                    var tag = null, cmd = null;
-                    for (var i = 0; i < path.length; i++) {
-                        tag = path[i].tagName.toLowerCase();
-                        if (path[i].getAttribute('tag')) {
-                            tag = path[i].getAttribute('tag').toLowerCase();
-                        }
-                        cmd = this._tag2cmd[tag];
-                        if (cmd === undefined) {
-                            cmd = [];
-                        }
-                        if (!Lang.isArray(cmd)) {
-                            cmd = [cmd];
-                        }
-
-                        //Bold and Italic styles
-                        if (path[i].style.fontWeight.toLowerCase() == 'bold') {
-                            cmd[cmd.length] = 'bold';
-                        }
-                        if (path[i].style.fontStyle.toLowerCase() == 'italic') {
-                            cmd[cmd.length] = 'italic';
-                        }
-                        if (path[i].style.textDecoration.toLowerCase() == 'underline') {
-                            cmd[cmd.length] = 'underline';
-                        }
-                        if (path[i].style.textDecoration.toLowerCase() == 'line-through') {
-                            cmd[cmd.length] = 'strikethrough';
-                        }
-                        if (cmd.length > 0) {
-                            for (var j = 0; j < cmd.length; j++) {
-                                this.toolbar.selectButton(cmd[j]);
-                                this.toolbar.enableButton(cmd[j]);
-                            }
-                        }
-                        //Handle Alignment
-                        switch (path[i].style.textAlign.toLowerCase()) {
-                            case 'left':
-                            case 'right':
-                            case 'center':
-                            case 'justify':
-                                var alignType = path[i].style.textAlign.toLowerCase();
-                                if (path[i].style.textAlign.toLowerCase() == 'justify') {
-                                    alignType = 'full';
-                                }
-                                this.toolbar.selectButton('justify' + alignType);
-                                this.toolbar.enableButton('justify' + alignType);
-                                break;
-                        }
-                    }
-                    //After for loop
-
-                    //Reset Font Family and Size to the inital configs
-                    if (fn_button) {
-                        var family = fn_button._configs.label._initialConfig.value;
-                        fn_button.set('label', '<span class="yui-toolbar-fontname-' + this._cleanClassName(family) + '">' + family + '</span>');
-                        this._updateMenuChecked('fontname', family);
-                    }
-
-                    if (fs_button) {
-                        fs_button.set('label', fs_button._configs.label._initialConfig.value);
-                    }
-
-                    var hd_button = this.toolbar.getButtonByValue('heading');
-                    if (hd_button) {
-                        hd_button.set('label', hd_button._configs.label._initialConfig.value);
-                        this._updateMenuChecked('heading', 'none');
-                    }
-                    var img_button = this.toolbar.getButtonByValue('insertimage');
-                    if (img_button && this.currentWindow && (this.currentWindow.name == 'insertimage')) {
-                        this.toolbar.disableButton(img_button);
-                    }
-                    if (this._lastButton && this._lastButton.isSelected) {
-                        this.toolbar.deselectButton(this._lastButton.id);
-                    }
-                    this._undoNodeChange();
-                }
-            }
-
-            this.fireEvent('afterNodeChange', { type: 'afterNodeChange', target: this });
-        },
-        /**
-        * @private
-        * @method _updateMenuChecked
-        * @param {Object} button The command identifier of the button you want to check
-        * @param {String} value The value of the menu item you want to check
-        * @param {<a href="YAHOO.widget.Toolbar.html">YAHOO.widget.Toolbar</a>} The Toolbar instance the button belongs to (defaults to this.toolbar) 
-        * @description Gets the menu from a button instance, if the menu is not rendered it will render it. It will then search the menu for the specified value, unchecking all other items and checking the specified on.
-        */
-        _updateMenuChecked: function(button, value, tbar) {
-            if (!tbar) {
-                tbar = this.toolbar;
-            }
-            var _button = tbar.getButtonByValue(button);
-            _button.checkValue(value);
-        },
-        /**
-        * @private
-        * @method _handleToolbarClick
-        * @param {Event} ev The event that triggered the button click
-        * @description This is an event handler attached to the Toolbar's buttonClick event. It will fire execCommand with the command identifier from the Toolbar Button.
-        */
-        _handleToolbarClick: function(ev) {
-            var value = '';
-            var str = '';
-            var cmd = ev.button.value;
-            if (ev.button.menucmd) {
-                value = cmd;
-                cmd = ev.button.menucmd;
-            }
-            this._lastButton = ev.button;
-            if (this.STOP_EXEC_COMMAND) {
-                YAHOO.log('execCommand skipped because we found the STOP_EXEC_COMMAND flag set to true', 'warn', 'SimpleEditor');
-                YAHOO.log('NOEXEC::execCommand::(' + cmd + '), (' + value + ')', 'warn', 'SimpleEditor');
-                this.STOP_EXEC_COMMAND = false;
-                return false;
-            } else {
-                this.execCommand(cmd, value);
-                if (!this.browser.webkit) {
-                     var Fself = this;
-                     setTimeout(function() {
-                         Fself.focus.call(Fself);
-                     }, 5);
-                 }
-            }
-            Event.stopEvent(ev);
-        },
-        /**
-        * @private
-        * @method _setupAfterElement
-        * @description Creates the accessibility h2 header and places it after the iframe in the Dom for navigation.
-        */
-        _setupAfterElement: function() {
-            if (!this.beforeElement) {
-                this.beforeElement = document.createElement('h2');
-                this.beforeElement.className = 'yui-editor-skipheader';
-                this.beforeElement.tabIndex = '-1';
-                this.beforeElement.innerHTML = this.STR_BEFORE_EDITOR;
-                this.get('element_cont').get('firstChild').insertBefore(this.beforeElement, this.toolbar.get('nextSibling'));
-            }
-            if (!this.afterElement) {
-                this.afterElement = document.createElement('h2');
-                this.afterElement.className = 'yui-editor-skipheader';
-                this.afterElement.tabIndex = '-1';
-                this.afterElement.innerHTML = this.STR_LEAVE_EDITOR;
-                this.get('element_cont').get('firstChild').appendChild(this.afterElement);
-            }
-        },
-        /**
-        * @private
-        * @method _disableEditor
-        * @param {Boolean} disabled Pass true to disable, false to enable
-        * @description Creates a mask to place over the Editor.
-        */
-        _disableEditor: function(disabled) {
-            var iframe, par, html, height;
-            if (!this.get('disabled_iframe')) {
-                iframe = this._createIframe();
-                iframe.set('id', 'disabled_' + this.get('iframe').get('id'));
-                iframe.setStyle('height', '100%');
-                iframe.setStyle('display', 'none');
-                iframe.setStyle('visibility', 'visible');
-                this.set('disabled_iframe', iframe);
-                par = this.get('iframe').get('parentNode');
-                par.appendChild(iframe.get('element'));
-            }
-            if (!iframe) {
-                iframe = this.get('disabled_iframe');
-            }
-            if (disabled) {
-                this._orgIframe = this.get('iframe');
-
-                if (this.toolbar) {
-                    this.toolbar.set('disabled', true);
-                }
-
-                html = this.getEditorHTML();
-                height = this.get('iframe').get('offsetHeight');
-                iframe.setStyle('visibility', '');
-                iframe.setStyle('position', '');
-                iframe.setStyle('top', '');
-                iframe.setStyle('left', '');
-                this._orgIframe.setStyle('visibility', 'hidden');
-                this._orgIframe.setStyle('position', 'absolute');
-                this._orgIframe.setStyle('top', '-99999px');
-                this._orgIframe.setStyle('left', '-99999px');
-                this.set('iframe', iframe);
-                this._setInitialContent(true);
-                
-                if (!this._mask) {
-                    this._mask = document.createElement('DIV');
-                    Dom.addClass(this._mask, 'yui-editor-masked');
-                    if (this.browser.ie) {
-                        this._mask.style.height = height + 'px';
-                    }
-                    this.get('iframe').get('parentNode').appendChild(this._mask);
-                }
-                this.on('editorContentReloaded', function() {
-                    this._getDoc().body._rteLoaded = false;
-                    this.setEditorHTML(html);
-                    iframe.setStyle('display', 'block');
-                    this.unsubscribeAll('editorContentReloaded');
-                });
-            } else {
-                if (this._mask) {
-                    this._mask.parentNode.removeChild(this._mask);
-                    this._mask = null;
-                    if (this.toolbar) {
-                        this.toolbar.set('disabled', false);
-                    }
-                    iframe.setStyle('visibility', 'hidden');
-                    iframe.setStyle('position', 'absolute');
-                    iframe.setStyle('top', '-99999px');
-                    iframe.setStyle('left', '-99999px');
-                    this._orgIframe.setStyle('visibility', '');
-                    this._orgIframe.setStyle('position', '');
-                    this._orgIframe.setStyle('top', '');
-                    this._orgIframe.setStyle('left', '');
-                    this.set('iframe', this._orgIframe);
-
-                    this.focus();
-                    var self = this;
-                    window.setTimeout(function() {
-                        self.nodeChange.call(self);
-                    }, 100);
-                }
-            }
-        },
-        /**
-        * @property SEP_DOMPATH
-        * @description The value to place in between the Dom path items
-        * @type String
-        */
-        SEP_DOMPATH: '<',
-        /**
-        * @property STR_LEAVE_EDITOR
-        * @description The accessibility string for the element after the iFrame
-        * @type String
-        */
-        STR_LEAVE_EDITOR: 'You have left the Rich Text Editor.',
-        /**
-        * @property STR_BEFORE_EDITOR
-        * @description The accessibility string for the element before the iFrame
-        * @type String
-        */
-        STR_BEFORE_EDITOR: 'This text field can contain stylized text and graphics. To cycle through all formatting options, use the keyboard shortcut Shift + Escape to place focus on the toolbar and navigate between options with your arrow keys. To exit this text editor use the Escape key and continue tabbing. <h4>Common formatting keyboard shortcuts:</h4><ul><li>Control Shift B sets text to bold</li> <li>Control Shift I sets text to italic</li> <li>Control Shift U underlines text</li> <li>Control Shift L adds an HTML link</li></ul>',
-        /**
-        * @property STR_TITLE
-        * @description The Title of the HTML document that is created in the iFrame
-        * @type String
-        */
-        STR_TITLE: 'Rich Text Area.',
-        /**
-        * @property STR_IMAGE_HERE
-        * @description The text to place in the URL textbox when using the blankimage.
-        * @type String
-        */
-        STR_IMAGE_HERE: 'Image URL Here',
-        /**
-        * @property STR_IMAGE_URL
-        * @description The label string for Image URL
-        * @type String
-        */
-        STR_IMAGE_URL: 'Image URL',        
-        /**
-        * @property STR_LINK_URL
-        * @description The label string for the Link URL.
-        * @type String
-        */
-        STR_LINK_URL: 'Link URL',
-        /**
-        * @protected
-        * @property STOP_EXEC_COMMAND
-        * @description Set to true when you want the default execCommand function to not process anything
-        * @type Boolean
-        */
-        STOP_EXEC_COMMAND: false,
-        /**
-        * @protected
-        * @property STOP_NODE_CHANGE
-        * @description Set to true when you want the default nodeChange function to not process anything
-        * @type Boolean
-        */
-        STOP_NODE_CHANGE: false,
-        /**
-        * @protected
-        * @property CLASS_NOEDIT
-        * @description CSS class applied to elements that are not editable.
-        * @type String
-        */
-        CLASS_NOEDIT: 'yui-noedit',
-        /**
-        * @protected
-        * @property CLASS_CONTAINER
-        * @description Default CSS class to apply to the editors container element
-        * @type String
-        */
-        CLASS_CONTAINER: 'yui-editor-container',
-        /**
-        * @protected
-        * @property CLASS_EDITABLE
-        * @description Default CSS class to apply to the editors iframe element
-        * @type String
-        */
-        CLASS_EDITABLE: 'yui-editor-editable',
-        /**
-        * @protected
-        * @property CLASS_EDITABLE_CONT
-        * @description Default CSS class to apply to the editors iframe's parent element
-        * @type String
-        */
-        CLASS_EDITABLE_CONT: 'yui-editor-editable-container',
-        /**
-        * @protected
-        * @property CLASS_PREFIX
-        * @description Default prefix for dynamically created class names
-        * @type String
-        */
-        CLASS_PREFIX: 'yui-editor',
-        /** 
-        * @property browser
-        * @description Standard browser detection
-        * @type Object
-        */
-        browser: function() {
-            var br = YAHOO.env.ua;
-            //Check for webkit3
-            if (br.webkit >= 420) {
-                br.webkit3 = br.webkit;
-            } else {
-                br.webkit3 = 0;
-            }
-            if (br.webkit >= 530) {
-                br.webkit4 = br.webkit;
-            } else {
-                br.webkit4 = 0;
-            }
-            br.mac = false;
-            //Check for Mac
-            if (navigator.userAgent.indexOf('Macintosh') !== -1) {
-                br.mac = true;
-            }
-
-            return br;
-        }(),
-        /** 
-        * @method init
-        * @description The Editor class' initialization method
-        */
-        init: function(p_oElement, p_oAttributes) {
-            YAHOO.log('init', 'info', 'SimpleEditor');
-
-            if (!this._defaultToolbar) {
-                this._defaultToolbar = {
-                    collapse: true,
-                    titlebar: 'Text Editing Tools',
-                    draggable: false,
-                    buttons: [
-                        { group: 'fontstyle', label: 'Font Name and Size',
-                            buttons: [
-                                { type: 'select', label: 'Arial', value: 'fontname', disabled: true,
-                                    menu: [
-                                        { text: 'Arial', checked: true },
-                                        { text: 'Arial Black' },
-                                        { text: 'Comic Sans MS' },
-                                        { text: 'Courier New' },
-                                        { text: 'Lucida Console' },
-                                        { text: 'Tahoma' },
-                                        { text: 'Times New Roman' },
-                                        { text: 'Trebuchet MS' },
-                                        { text: 'Verdana' }
-                                    ]
-                                },
-                                { type: 'spin', label: '13', value: 'fontsize', range: [ 9, 75 ], disabled: true }
-                            ]
-                        },
-                        { type: 'separator' },
-                        { group: 'textstyle', label: 'Font Style',
-                            buttons: [
-                                { type: 'push', label: 'Bold CTRL + SHIFT + B', value: 'bold' },
-                                { type: 'push', label: 'Italic CTRL + SHIFT + I', value: 'italic' },
-                                { type: 'push', label: 'Underline CTRL + SHIFT + U', value: 'underline' },
-                                { type: 'push', label: 'Strike Through', value: 'strikethrough' },
-                                { type: 'separator' },
-                                { type: 'color', label: 'Font Color', value: 'forecolor', disabled: true },
-                                { type: 'color', label: 'Background Color', value: 'backcolor', disabled: true }
-                                
-                            ]
-                        },
-                        { type: 'separator' },
-                        { group: 'indentlist', label: 'Lists',
-                            buttons: [
-                                { type: 'push', label: 'Create an Unordered List', value: 'insertunorderedlist' },
-                                { type: 'push', label: 'Create an Ordered List', value: 'insertorderedlist' }
-                            ]
-                        },
-                        { type: 'separator' },
-                        { group: 'insertitem', label: 'Insert Item',
-                            buttons: [
-                                { type: 'push', label: 'HTML Link CTRL + SHIFT + L', value: 'createlink', disabled: true },
-                                { type: 'push', label: 'Insert Image', value: 'insertimage' }
-                            ]
-                        }
-                    ]
-                };
-            }
-
-            YAHOO.widget.SimpleEditor.superclass.init.call(this, p_oElement, p_oAttributes);
-            YAHOO.widget.EditorInfo._instances[this.get('id')] = this;
-
-
-            this.currentElement = [];
-            this.on('contentReady', function() {
-                this.DOMReady = true;
-                this.fireQueue();
-            }, this, true);
-
-        },
-        /**
-        * @method initAttributes
-        * @description Initializes all of the configuration attributes used to create 
-        * the editor.
-        * @param {Object} attr Object literal specifying a set of 
-        * configuration attributes used to create the editor.
-        */
-        initAttributes: function(attr) {
-            YAHOO.widget.SimpleEditor.superclass.initAttributes.call(this, attr);
-            var self = this;
-
-            /**
-            * @config setDesignMode
-            * @description Should the Editor set designMode on the document. Default: true.
-            * @default true
-            * @type Boolean
-            */
-            this.setAttributeConfig('setDesignMode', {
-                value: ((attr.setDesignMode === false) ? false : true)
-            });
-            /**
-            * @config nodeChangeDelay
-            * @description Do we wrap the nodeChange method in a timeout for performance. Default: true.
-            * @default true
-            * @type Boolean
-            */
-            this.setAttributeConfig('nodeChangeDelay', {
-                value: ((attr.nodeChangeDelay === false) ? false : true)
-            });
-            /**
-            * @config maxUndo
-            * @description The max number of undo levels to store.
-            * @default 30
-            * @type Number
-            */
-            this.setAttributeConfig('maxUndo', {
-                writeOnce: true,
-                value: attr.maxUndo || 30
-            });
-
-            /**
-            * @config ptags
-            * @description If true, the editor uses &lt;P&gt; tags instead of &lt;br&gt; tags. (Use Shift + Enter to get a &lt;br&gt;)
-            * @default false
-            * @type Boolean
-            */
-            this.setAttributeConfig('ptags', {
-                writeOnce: true,
-                value: attr.ptags || false
-            });
-            /**
-            * @config insert
-            * @description If true, selection is not required for: fontname, fontsize, forecolor, backcolor.
-            * @default false
-            * @type Boolean
-            */
-            this.setAttributeConfig('insert', {
-                writeOnce: true,
-                value: attr.insert || false,
-                method: function(insert) {
-                    if (insert) {
-                        var buttons = {
-                            fontname: true,
-                            fontsize: true,
-                            forecolor: true,
-                            backcolor: true
-                        };
-                        var tmp = this._defaultToolbar.buttons;
-                        for (var i = 0; i < tmp.length; i++) {
-                            if (tmp[i].buttons) {
-                                for (var a = 0; a < tmp[i].buttons.length; a++) {
-                                    if (tmp[i].buttons[a].value) {
-                                        if (buttons[tmp[i].buttons[a].value]) {
-                                            delete tmp[i].buttons[a].disabled;
-                                        }
-                                    }
-                                }
-                            }
-                        }
-                    }
-                }
-            });
-            /**
-            * @config container
-            * @description Used when dynamically creating the Editor from Javascript with no default textarea.
-            * We will create one and place it in this container. If no container is passed we will append to document.body.
-            * @default false
-            * @type HTMLElement
-            */
-            this.setAttributeConfig('container', {
-                writeOnce: true,
-                value: attr.container || false
-            });
-            /**
-            * @config plainText
-            * @description Process the inital textarea data as if it was plain text. Accounting for spaces, tabs and line feeds.
-            * @default false
-            * @type Boolean
-            */
-            this.setAttributeConfig('plainText', {
-                writeOnce: true,
-                value: attr.plainText || false
-            });
-            /**
-            * @private
-            * @config iframe
-            * @description Internal config for holding the iframe element.
-            * @default null
-            * @type HTMLElement
-            */
-            this.setAttributeConfig('iframe', {
-                value: null
-            });
-            /**
-            * @private
-            * @config disabled_iframe
-            * @description Internal config for holding the iframe element used when disabling the Editor.
-            * @default null
-            * @type HTMLElement
-            */
-            this.setAttributeConfig('disabled_iframe', {
-                value: null
-            });
-            /**
-            * @private
-            * @depreciated - No longer used, should use this.get('element')
-            * @config textarea
-            * @description Internal config for holding the textarea element (replaced with element).
-            * @default null
-            * @type HTMLElement
-            */
-            this.setAttributeConfig('textarea', {
-                value: null,
-                writeOnce: true
-            });
-            /**
-            * @config nodeChangeThreshold
-            * @description The number of seconds that need to be in between nodeChange processing
-            * @default 3
-            * @type Number
-            */            
-            this.setAttributeConfig('nodeChangeThreshold', {
-                value: attr.nodeChangeThreshold || 3,
-                validator: YAHOO.lang.isNumber
-            });
-            /**
-            * @config allowNoEdit
-            * @description Should the editor check for non-edit fields. It should be noted that this technique is not perfect. If the user does the right things, they will still be able to make changes.
-            * Such as highlighting an element below and above the content and hitting a toolbar button or a shortcut key.
-            * @default false
-            * @type Boolean
-            */            
-            this.setAttributeConfig('allowNoEdit', {
-                value: attr.allowNoEdit || false,
-                validator: YAHOO.lang.isBoolean
-            });
-            /**
-            * @config limitCommands
-            * @description Should the Editor limit the allowed execCommands to the ones available in the toolbar. If true, then execCommand and keyboard shortcuts will fail if they are not defined in the toolbar.
-            * @default false
-            * @type Boolean
-            */            
-            this.setAttributeConfig('limitCommands', {
-                value: attr.limitCommands || false,
-                validator: YAHOO.lang.isBoolean
-            });
-            /**
-            * @config element_cont
-            * @description Internal config for the editors container
-            * @default false
-            * @type HTMLElement
-            */
-            this.setAttributeConfig('element_cont', {
-                value: attr.element_cont
-            });
-            /**
-            * @private
-            * @config editor_wrapper
-            * @description The outter wrapper for the entire editor.
-            * @default null
-            * @type HTMLElement
-            */
-            this.setAttributeConfig('editor_wrapper', {
-                value: attr.editor_wrapper || null,
-                writeOnce: true
-            });
-            /**
-            * @attribute height
-            * @description The height of the editor iframe container, not including the toolbar..
-            * @default Best guessed size of the textarea, for best results use CSS to style the height of the textarea or pass it in as an argument
-            * @type String
-            */
-            this.setAttributeConfig('height', {
-                value: attr.height || Dom.getStyle(self.get('element'), 'height'),
-                method: function(height) {
-                    if (this._rendered) {
-                        //We have been rendered, change the height
-                        if (this.get('animate')) {
-                            var anim = new YAHOO.util.Anim(this.get('iframe').get('parentNode'), {
-                                height: {
-                                    to: parseInt(height, 10)
-                                }
-                            }, 0.5);
-                            anim.animate();
-                        } else {
-                            Dom.setStyle(this.get('iframe').get('parentNode'), 'height', height);
-                        }
-                    }
-                }
-            });
-            /**
-            * @config autoHeight
-            * @description Remove the scrollbars from the edit area and resize it to fit the content. It will not go any lower than the current config height.
-            * @default false
-            * @type Boolean || Number
-            */
-            this.setAttributeConfig('autoHeight', {
-                value: attr.autoHeight || false,
-                method: function(a) {
-                    if (a) {
-                        if (this.get('iframe')) {
-                            this.get('iframe').get('element').setAttribute('scrolling', 'no');
-                        }
-                        this.on('afterNodeChange', this._handleAutoHeight, this, true);
-                        this.on('editorKeyDown', this._handleAutoHeight, this, true);
-                        this.on('editorKeyPress', this._handleAutoHeight, this, true);
-                    } else {
-                        if (this.get('iframe')) {
-                            this.get('iframe').get('element').setAttribute('scrolling', 'auto');
-                        }
-                        this.unsubscribe('afterNodeChange', this._handleAutoHeight);
-                        this.unsubscribe('editorKeyDown', this._handleAutoHeight);
-                        this.unsubscribe('editorKeyPress', this._handleAutoHeight);
-                    }
-                }
-            });
-            /**
-            * @attribute width
-            * @description The width of the editor container.
-            * @default Best guessed size of the textarea, for best results use CSS to style the width of the textarea or pass it in as an argument
-            * @type String
-            */            
-            this.setAttributeConfig('width', {
-                value: attr.width || Dom.getStyle(this.get('element'), 'width'),
-                method: function(width) {
-                    if (this._rendered) {
-                        //We have been rendered, change the width
-                        if (this.get('animate')) {
-                            var anim = new YAHOO.util.Anim(this.get('element_cont').get('element'), {
-                                width: {
-                                    to: parseInt(width, 10)
-                                }
-                            }, 0.5);
-                            anim.animate();
-                        } else {
-                            this.get('element_cont').setStyle('width', width);
-                        }
-                    }
-                }
-            });
-                        
-            /**
-            * @attribute blankimage
-            * @description The URL for the image placeholder to put in when inserting an image.
-            * @default The yahooapis.com address for the current release + 'assets/blankimage.png'
-            * @type String
-            */            
-            this.setAttributeConfig('blankimage', {
-                value: attr.blankimage || this._getBlankImage()
-            });
-            /**
-            * @attribute css
-            * @description The Base CSS used to format the content of the editor
-            * @default <code><pre>html {
-                height: 95%;
-            }
-            body {
-                height: 100%;
-                padding: 7px; background-color: #fff; font:13px/1.22 arial,helvetica,clean,sans-serif;*font-size:small;*font:x-small;
-            }
-            a {
-                color: blue;
-                text-decoration: underline;
-                cursor: pointer;
-            }
-            .warning-localfile {
-                border-bottom: 1px dashed red !important;
-            }
-            .yui-busy {
-                cursor: wait !important;
-            }
-            img.selected { //Safari image selection
-                border: 2px dotted #808080;
-            }
-            img {
-                cursor: pointer !important;
-                border: none;
-            }
-            </pre></code>
-            * @type String
-            */            
-            this.setAttributeConfig('css', {
-                value: attr.css || this._defaultCSS,
-                writeOnce: true
-            });
-            /**
-            * @attribute html
-            * @description The default HTML to be written to the iframe document before the contents are loaded (Note that the DOCTYPE attr will be added at render item)
-            * @default This HTML requires a few things if you are to override:
-                <p><code>{TITLE}, {CSS}, {HIDDEN_CSS}, {EXTRA_CSS}</code> and <code>{CONTENT}</code> need to be there, they are passed to YAHOO.lang.substitute to be replace with other strings.<p>
-                <p><code>onload="document.body._rteLoaded = true;"</code> : the onload statement must be there or the editor will not finish loading.</p>
-                <code>
-                <pre>
-                &lt;html&gt;
-                    &lt;head&gt;
-                        &lt;title&gt;{TITLE}&lt;/title&gt;
-                        &lt;meta http-equiv="Content-Type" content="text/html; charset=UTF-8" /&gt;
-                        &lt;style&gt;
-                        {CSS}
-                        &lt;/style&gt;
-                        &lt;style&gt;
-                        {HIDDEN_CSS}
-                        &lt;/style&gt;
-                        &lt;style&gt;
-                        {EXTRA_CSS}
-                        &lt;/style&gt;
-                    &lt;/head&gt;
-                &lt;body onload="document.body._rteLoaded = true;"&gt;
-                {CONTENT}
-                &lt;/body&gt;
-                &lt;/html&gt;
-                </pre>
-                </code>
-            * @type String
-            */            
-            this.setAttributeConfig('html', {
-                value: attr.html || '<html><head><title>{TITLE}</title><meta http-equiv="Content-Type" content="text/html; charset=UTF-8" /><base href="' + this._baseHREF + '"><style>{CSS}</style><style>{HIDDEN_CSS}</style><style>{EXTRA_CSS}</style></head><body onload="document.body._rteLoaded = true;">{CONTENT}</body></html>',
-                writeOnce: true
-            });
-
-            /**
-            * @attribute extracss
-            * @description Extra user defined css to load after the default SimpleEditor CSS
-            * @default ''
-            * @type String
-            */            
-            this.setAttributeConfig('extracss', {
-                value: attr.extracss || '',
-                writeOnce: true
-            });
-
-            /**
-            * @attribute handleSubmit
-            * @description Config handles if the editor will attach itself to the textareas parent form's submit handler.
-            If it is set to true, the editor will attempt to attach a submit listener to the textareas parent form.
-            Then it will trigger the editors save handler and place the new content back into the text area before the form is submitted.
-            * @default false
-            * @type Boolean
-            */            
-            this.setAttributeConfig('handleSubmit', {
-                value: attr.handleSubmit || false,
-                method: function(exec) {
-                    if (this.get('element').form) {
-                        if (!this._formButtons) {
-                            this._formButtons = [];
-                        }
-                        if (exec) {
-                            Event.on(this.get('element').form, 'submit', this._handleFormSubmit, this, true);
-                            var i = this.get('element').form.getElementsByTagName('input');
-                            for (var s = 0; s < i.length; s++) {
-                                var type = i[s].getAttribute('type');
-                                if (type && (type.toLowerCase() == 'submit')) {
-                                    Event.on(i[s], 'click', this._handleFormButtonClick, this, true);
-                                    this._formButtons[this._formButtons.length] = i[s];
-                                }
-                            }
-                        } else {
-                            Event.removeListener(this.get('element').form, 'submit', this._handleFormSubmit);
-                            if (this._formButtons) {
-                                Event.removeListener(this._formButtons, 'click', this._handleFormButtonClick);
-                            }
-                        }
-                    }
-                }
-            });
-            /**
-            * @attribute disabled
-            * @description This will toggle the editor's disabled state. When the editor is disabled, designMode is turned off and a mask is placed over the iframe so no interaction can take place.
-            All Toolbar buttons are also disabled so they cannot be used.
-            * @default false
-            * @type Boolean
-            */
-
-            this.setAttributeConfig('disabled', {
-                value: false,
-                method: function(disabled) {
-                    if (this._rendered) {
-                        this._disableEditor(disabled);
-                    }
-                }
-            });
-            /**
-            * @config saveEl
-            * @description When save HTML is called, this element will be updated as well as the source of data.
-            * @default element
-            * @type HTMLElement
-            */
-            this.setAttributeConfig('saveEl', {
-                value: this.get('element')
-            });
-            /**
-            * @config toolbar_cont
-            * @description Internal config for the toolbars container
-            * @default false
-            * @type Boolean
-            */
-            this.setAttributeConfig('toolbar_cont', {
-                value: null,
-                writeOnce: true
-            });
-            /**
-            * @attribute toolbar
-            * @description The default toolbar config.
-            * @type Object
-            */            
-            this.setAttributeConfig('toolbar', {
-                value: attr.toolbar || this._defaultToolbar,
-                writeOnce: true,
-                method: function(toolbar) {
-                    if (!toolbar.buttonType) {
-                        toolbar.buttonType = this._defaultToolbar.buttonType;
-                    }
-                    this._defaultToolbar = toolbar;
-                }
-            });
-            /**
-            * @attribute animate
-            * @description Should the editor animate window movements
-            * @default false unless Animation is found, then true
-            * @type Boolean
-            */            
-            this.setAttributeConfig('animate', {
-                value: ((attr.animate) ? ((YAHOO.util.Anim) ? true : false) : false),
-                validator: function(value) {
-                    var ret = true;
-                    if (!YAHOO.util.Anim) {
-                        ret = false;
-                    }
-                    return ret;
-                }
-            });
-            /**
-            * @config panel
-            * @description A reference to the panel we are using for windows.
-            * @default false
-            * @type Boolean
-            */            
-            this.setAttributeConfig('panel', {
-                value: null,
-                writeOnce: true,
-                validator: function(value) {
-                    var ret = true;
-                    if (!YAHOO.widget.Overlay) {
-                        ret = false;
-                    }
-                    return ret;
-                }               
-            });
-            /**
-            * @attribute focusAtStart
-            * @description Should we focus the window when the content is ready?
-            * @default false
-            * @type Boolean
-            */            
-            this.setAttributeConfig('focusAtStart', {
-                value: attr.focusAtStart || false,
-                writeOnce: true,
-                method: function(fs) {
-                    if (fs) {
-                        this.on('editorContentLoaded', function() {
-                            var self = this;
-                            setTimeout(function() {
-                                self.focus.call(self);
-                                self.editorDirty = false;
-                            }, 400);
-                        }, this, true);
-                    }
-                }
-            });
-            /**
-            * @attribute dompath
-            * @description Toggle the display of the current Dom path below the editor
-            * @default false
-            * @type Boolean
-            */            
-            this.setAttributeConfig('dompath', {
-                value: attr.dompath || false,
-                method: function(dompath) {
-                    if (dompath && !this.dompath) {
-                        this.dompath = document.createElement('DIV');
-                        this.dompath.id = this.get('id') + '_dompath';
-                        Dom.addClass(this.dompath, 'dompath');
-                        this.get('element_cont').get('firstChild').appendChild(this.dompath);
-                        if (this.get('iframe')) {
-                            this._writeDomPath();
-                        }
-                    } else if (!dompath && this.dompath) {
-                        this.dompath.parentNode.removeChild(this.dompath);
-                        this.dompath = null;
-                    }
-                }
-            });
-            /**
-            * @attribute markup
-            * @description Should we try to adjust the markup for the following types: semantic, css, default or xhtml
-            * @default "semantic"
-            * @type String
-            */            
-            this.setAttributeConfig('markup', {
-                value: attr.markup || 'semantic',
-                validator: function(markup) {
-                    switch (markup.toLowerCase()) {
-                        case 'semantic':
-                        case 'css':
-                        case 'default':
-                        case 'xhtml':
-                        return true;
-                    }
-                    return false;
-                }
-            });
-            /**
-            * @attribute removeLineBreaks
-            * @description Should we remove linebreaks and extra spaces on cleanup
-            * @default false
-            * @type Boolean
-            */            
-            this.setAttributeConfig('removeLineBreaks', {
-                value: attr.removeLineBreaks || false,
-                validator: YAHOO.lang.isBoolean
-            });
-            
-            /**
-            * @config drag
-            * @description Set this config to make the Editor draggable, pass 'proxy' to make use YAHOO.util.DDProxy.
-            * @type {Boolean/String}
-            */
-            this.setAttributeConfig('drag', {
-                writeOnce: true,
-                value: attr.drag || false
-            });
-
-            /**
-            * @config resize
-            * @description Set this to true to make the Editor Resizable with YAHOO.util.Resize. The default config is available: myEditor._resizeConfig
-            * Animation will be ignored while performing this resize to allow for the dynamic change in size of the toolbar.
-            * @type Boolean
-            */
-            this.setAttributeConfig('resize', {
-                writeOnce: true,
-                value: attr.resize || false
-            });
-
-            /**
-            * @config filterWord
-            * @description Attempt to filter out MS Word HTML from the Editor's output.
-            * @type Boolean
-            */
-            this.setAttributeConfig('filterWord', {
-                value: attr.filterWord || false,
-                validator: YAHOO.lang.isBoolean
-            });
-
-        },
-        /**
-        * @private
-        * @method _getBlankImage
-        * @description Retrieves the full url of the image to use as the blank image.
-        * @return {String} The URL to the blank image
-        */
-        _getBlankImage: function() {
-            if (!this.DOMReady) {
-                this._queue[this._queue.length] = ['_getBlankImage', arguments];
-                return '';
-            }
-            var img = '';
-            if (!this._blankImageLoaded) {
-                if (YAHOO.widget.EditorInfo.blankImage) {
-                    this.set('blankimage', YAHOO.widget.EditorInfo.blankImage);
-                    this._blankImageLoaded = true;
-                } else {
-                    var div = document.createElement('div');
-                    div.style.position = 'absolute';
-                    div.style.top = '-9999px';
-                    div.style.left = '-9999px';
-                    div.className = this.CLASS_PREFIX + '-blankimage';
-                    document.body.appendChild(div);
-                    img = YAHOO.util.Dom.getStyle(div, 'background-image');
-                    img = img.replace('url(', '').replace(')', '').replace(/"/g, '');
-                    //Adobe AIR Code
-                    img = img.replace('app:/', '');             
-                    this.set('blankimage', img);
-                    this._blankImageLoaded = true;
-                    div.parentNode.removeChild(div);
-                    YAHOO.widget.EditorInfo.blankImage = img;
-                }
-            } else {
-                img = this.get('blankimage');
-            }
-            return img;
-        },
-        /**
-        * @private
-        * @method _handleAutoHeight
-        * @description Handles resizing the editor's height based on the content
-        */
-        _handleAutoHeight: function() {
-            var doc = this._getDoc(),
-                body = doc.body,
-                docEl = doc.documentElement;
-
-            var height = parseInt(Dom.getStyle(this.get('editor_wrapper'), 'height'), 10);
-            var newHeight = body.scrollHeight;
-            if (this.browser.webkit) {
-                newHeight = docEl.scrollHeight;
-            }
-            if (newHeight < parseInt(this.get('height'), 10)) {
-                newHeight = parseInt(this.get('height'), 10);
-            }
-            if ((height != newHeight) && (newHeight >= parseInt(this.get('height'), 10))) {   
-                var anim = this.get('animate');
-                this.set('animate', false);
-                this.set('height', newHeight + 'px');
-                this.set('animate', anim);
-                if (this.browser.ie) {
-                    //Internet Explorer needs this
-                    this.get('iframe').setStyle('height', '99%');
-                    this.get('iframe').setStyle('zoom', '1');
-                    var self = this;
-                    window.setTimeout(function() {
-                        self.get('iframe').setStyle('height', '100%');
-                    }, 1);
-                }
-            }
-        },
-        /**
-        * @private
-        * @property _formButtons
-        * @description Array of buttons that are in the Editor's parent form (for handleSubmit)
-        * @type Array
-        */
-        _formButtons: null,
-        /**
-        * @private
-        * @property _formButtonClicked
-        * @description The form button that was clicked to submit the form.
-        * @type HTMLElement
-        */
-        _formButtonClicked: null,
-        /**
-        * @private
-        * @method _handleFormButtonClick
-        * @description The click listener assigned to each submit button in the Editor's parent form.
-        * @param {Event} ev The click event
-        */
-        _handleFormButtonClick: function(ev) {
-            var tar = Event.getTarget(ev);
-            this._formButtonClicked = tar;
-        },
-        /**
-        * @private
-        * @method _handleFormSubmit
-        * @description Handles the form submission.
-        * @param {Object} ev The Form Submit Event
-        */
-        _handleFormSubmit: function(ev) {
-            this.saveHTML();
-
-            var form = this.get('element').form,
-                tar = this._formButtonClicked || false;
-
-            Event.removeListener(form, 'submit', this._handleFormSubmit);
-            if (YAHOO.env.ua.ie) {
-                //form.fireEvent("onsubmit");
-                if (tar && !tar.disabled) {
-                    tar.click();
-                }
-            } else {  // Gecko, Opera, and Safari
-                if (tar && !tar.disabled) {
-                    tar.click();
-                }
-                var oEvent = document.createEvent("HTMLEvents");
-                oEvent.initEvent("submit", true, true);
-                form.dispatchEvent(oEvent);
-                if (YAHOO.env.ua.webkit) {
-                    if (YAHOO.lang.isFunction(form.submit)) {
-                        form.submit();
-                    }
-                }
-            }
-            //2.6.0
-            //Removed this, not need since removing Safari 2.x
-            //Event.stopEvent(ev);
-        },
-        /**
-        * @private
-        * @method _handleFontSize
-        * @description Handles the font size button in the toolbar.
-        * @param {Object} o Object returned from Toolbar's buttonClick Event
-        */
-        _handleFontSize: function(o) {
-            var button = this.toolbar.getButtonById(o.button.id);
-            var value = button.get('label') + 'px';
-            this.execCommand('fontsize', value);
-            return false;
-        },
-        /**
-        * @private
-        * @description Handles the colorpicker buttons in the toolbar.
-        * @param {Object} o Object returned from Toolbar's buttonClick Event
-        */
-        _handleColorPicker: function(o) {
-            var cmd = o.button;
-            var value = '#' + o.color;
-            if ((cmd == 'forecolor') || (cmd == 'backcolor')) {
-                this.execCommand(cmd, value);
-            }
-        },
-        /**
-        * @private
-        * @method _handleAlign
-        * @description Handles the alignment buttons in the toolbar.
-        * @param {Object} o Object returned from Toolbar's buttonClick Event
-        */
-        _handleAlign: function(o) {
-            var cmd = null;
-            for (var i = 0; i < o.button.menu.length; i++) {
-                if (o.button.menu[i].value == o.button.value) {
-                    cmd = o.button.menu[i].value;
-                }
-            }
-            var value = this._getSelection();
-
-            this.execCommand(cmd, value);
-            return false;
-        },
-        /**
-        * @private
-        * @method _handleAfterNodeChange
-        * @description Fires after a nodeChange happens to setup the things that where reset on the node change (button state).
-        */
-        _handleAfterNodeChange: function() {
-            var path = this._getDomPath(),
-                elm = null,
-                family = null,
-                fontsize = null,
-                validFont = false,
-                fn_button = this.toolbar.getButtonByValue('fontname'),
-                fs_button = this.toolbar.getButtonByValue('fontsize'),
-                hd_button = this.toolbar.getButtonByValue('heading');
-
-            for (var i = 0; i < path.length; i++) {
-                elm = path[i];
-
-                var tag = elm.tagName.toLowerCase();
-
-
-                if (elm.getAttribute('tag')) {
-                    tag = elm.getAttribute('tag');
-                }
-
-                family = elm.getAttribute('face');
-                if (Dom.getStyle(elm, 'font-family')) {
-                    family = Dom.getStyle(elm, 'font-family');
-                    //Adobe AIR Code
-                    family = family.replace(/'/g, '');                    
-                }
-
-                if (tag.substring(0, 1) == 'h') {
-                    if (hd_button) {
-                        for (var h = 0; h < hd_button._configs.menu.value.length; h++) {
-                            if (hd_button._configs.menu.value[h].value.toLowerCase() == tag) {
-                                hd_button.set('label', hd_button._configs.menu.value[h].text);
-                            }
-                        }
-                        this._updateMenuChecked('heading', tag);
-                    }
-                }
-            }
-
-            if (fn_button) {
-                for (var b = 0; b < fn_button._configs.menu.value.length; b++) {
-                    if (family && fn_button._configs.menu.value[b].text.toLowerCase() == family.toLowerCase()) {
-                        validFont = true;
-                        family = fn_button._configs.menu.value[b].text; //Put the proper menu name in the button
-                    }
-                }
-                if (!validFont) {
-                    family = fn_button._configs.label._initialConfig.value;
-                }
-                var familyLabel = '<span class="yui-toolbar-fontname-' + this._cleanClassName(family) + '">' + family + '</span>';
-                if (fn_button.get('label') != familyLabel) {
-                    fn_button.set('label', familyLabel);
-                    this._updateMenuChecked('fontname', family);
-                }
-            }
-
-            if (fs_button) {
-                fontsize = parseInt(Dom.getStyle(elm, 'fontSize'), 10);
-                if ((fontsize === null) || isNaN(fontsize)) {
-                    fontsize = fs_button._configs.label._initialConfig.value;
-                }
-                fs_button.set('label', ''+fontsize);
-            }
-            
-            if (!this._isElement(elm, 'body') && !this._isElement(elm, 'img')) {
-                this.toolbar.enableButton(fn_button);
-                this.toolbar.enableButton(fs_button);
-                this.toolbar.enableButton('forecolor');
-                this.toolbar.enableButton('backcolor');
-            }
-            if (this._isElement(elm, 'img')) {
-                if (YAHOO.widget.Overlay) {
-                    this.toolbar.enableButton('createlink');
-                }
-            }
-            if (this._hasParent(elm, 'blockquote')) {
-                this.toolbar.selectButton('indent');
-                this.toolbar.disableButton('indent');
-                this.toolbar.enableButton('outdent');
-            }
-            if (this._hasParent(elm, 'ol') || this._hasParent(elm, 'ul')) {
-                this.toolbar.disableButton('indent');
-            }
-            this._lastButton = null;
-            
-        },
-        /**
-        * @private
-        * @method _handleInsertImageClick
-        * @description Opens the Image Properties Window when the insert Image button is clicked or an Image is Double Clicked.
-        */
-        _handleInsertImageClick: function() {
-            if (this.get('limitCommands')) {
-                if (!this.toolbar.getButtonByValue('insertimage')) {
-                    YAHOO.log('Toolbar Button for (insertimage) was not found, skipping exec.', 'info', 'SimpleEditor');
-                    return false;
-                }
-            }
-        
-            this.toolbar.set('disabled', true); //Disable the toolbar when the prompt is showing
-            var _handleAEC = function() {
-                var el = this.currentElement[0],
-                    src = 'http://';
-                if (!el) {
-                    el = this._getSelectedElement();
-                }
-                if (el) {
-                    if (el.getAttribute('src')) {
-                        src = el.getAttribute('src', 2);
-                        if (src.indexOf(this.get('blankimage')) != -1) {
-                            src = this.STR_IMAGE_HERE;
-                        }
-                    }
-                }
-                var str = prompt(this.STR_IMAGE_URL + ': ', src);
-                if ((str !== '') && (str !== null)) {
-                    el.setAttribute('src', str);
-                } else if (str === '') {
-                    el.parentNode.removeChild(el);
-                    this.currentElement = [];
-                    this.nodeChange();
-                } else if ((str === null)) {
-                    src = el.getAttribute('src', 2);
-                    if (src.indexOf(this.get('blankimage')) != -1) {
-                        el.parentNode.removeChild(el);
-                        this.currentElement = [];
-                        this.nodeChange();
-                    }
-                }
-                this.closeWindow();
-                this.toolbar.set('disabled', false);
-                this.unsubscribe('afterExecCommand', _handleAEC, this, true);
-            };
-            this.on('afterExecCommand', _handleAEC, this, true);
-        },
-        /**
-        * @private
-        * @method _handleInsertImageWindowClose
-        * @description Handles the closing of the Image Properties Window.
-        */
-        _handleInsertImageWindowClose: function() {
-            this.nodeChange();
-        },
-        /**
-        * @private
-        * @method _isLocalFile
-        * @param {String} url THe url/string to check
-        * @description Checks to see if a string (href or img src) is possibly a local file reference..
-        */
-        _isLocalFile: function(url) {
-            if ((url) && (url !== '') && ((url.indexOf('file:/') != -1) || (url.indexOf(':\\') != -1))) {
-                return true;
-            }
-            return false;
-        },
-        /**
-        * @private
-        * @method _handleCreateLinkClick
-        * @description Handles the opening of the Link Properties Window when the Create Link button is clicked or an href is doubleclicked.
-        */
-        _handleCreateLinkClick: function() {
-            if (this.get('limitCommands')) {
-                if (!this.toolbar.getButtonByValue('createlink')) {
-                    YAHOO.log('Toolbar Button for (createlink) was not found, skipping exec.', 'info', 'SimpleEditor');
-                    return false;
-                }
-            }
-        
-            this.toolbar.set('disabled', true); //Disable the toolbar when the prompt is showing
-
-            var _handleAEC = function() {
-                var el = this.currentElement[0],
-                    url = '';
-
-                if (el) {
-                    if (el.getAttribute('href', 2) !== null) {
-                        url = el.getAttribute('href', 2);
-                    }
-                }
-                var str = prompt(this.STR_LINK_URL + ': ', url);
-                if ((str !== '') && (str !== null)) {
-                    var urlValue = str;
-                    if ((urlValue.indexOf(':/'+'/') == -1) && (urlValue.substring(0,1) != '/') && (urlValue.substring(0, 6).toLowerCase() != 'mailto')) {
-                        if ((urlValue.indexOf('@') != -1) && (urlValue.substring(0, 6).toLowerCase() != 'mailto')) {
-                            //Found an @ sign, prefix with mailto:
-                            urlValue = 'mailto:' + urlValue;
-                        } else {
-                            /* :// not found adding */
-                            if (urlValue.substring(0, 1) != '#') {
-                                //urlValue = 'http:/'+'/' + urlValue;
-                            }
-                        }
-                    }
-                    el.setAttribute('href', urlValue);
-                } else if (str !== null) {
-                    var _span = this._getDoc().createElement('span');
-                    _span.innerHTML = el.innerHTML;
-                    Dom.addClass(_span, 'yui-non');
-                    el.parentNode.replaceChild(_span, el);
-                }
-                this.closeWindow();
-                this.toolbar.set('disabled', false);
-                this.unsubscribe('afterExecCommand', _handleAEC, this, true);
-            };
-            this.on('afterExecCommand', _handleAEC, this);
-
-        },
-        /**
-        * @private
-        * @method _handleCreateLinkWindowClose
-        * @description Handles the closing of the Link Properties Window.
-        */
-        _handleCreateLinkWindowClose: function() {
-            this.nodeChange();
-            this.currentElement = [];
-        },
-        /**
-        * @method render
-        * @description Calls the private method _render in a setTimeout to allow for other things on the page to continue to load.
-        */
-        render: function() {
-            if (this._rendered) {
-                return false;
-            }
-            YAHOO.log('Render', 'info', 'SimpleEditor');
-            if (!this.DOMReady) {
-                YAHOO.log('!DOMReady', 'info', 'SimpleEditor');
-                this._queue[this._queue.length] = ['render', arguments];
-                return false;
-            }
-            if (this.get('element')) {
-                if (this.get('element').tagName) {
-                    this._textarea = true;
-                    if (this.get('element').tagName.toLowerCase() !== 'textarea') {
-                        this._textarea = false;
-                    }
-                } else {
-                    YAHOO.log('No Valid Element', 'error', 'SimpleEditor');
-                    return false;
-                }
-            } else {
-                YAHOO.log('No Element', 'error', 'SimpleEditor');
-                return false;
-            }
-            this._rendered = true;
-            var self = this;
-            window.setTimeout(function() {
-                self._render.call(self);
-            }, 4);
-        },
-        /**
-        * @private
-        * @method _render
-        * @description Causes the toolbar and the editor to render and replace the textarea.
-        */
-        _render: function() {
-            var self = this;
-            this.set('textarea', this.get('element'));
-
-            this.get('element_cont').setStyle('display', 'none');
-            this.get('element_cont').addClass(this.CLASS_CONTAINER);
-            
-            this.set('iframe', this._createIframe());
-
-            window.setTimeout(function() {
-                self._setInitialContent.call(self);
-            }, 10);
-
-            this.get('editor_wrapper').appendChild(this.get('iframe').get('element'));
-
-            if (this.get('disabled')) {
-                this._disableEditor(true);
-            }
-
-            var tbarConf = this.get('toolbar');
-            //Create Toolbar instance
-            if (tbarConf instanceof Toolbar) {
-                this.toolbar = tbarConf;
-                //Set the toolbar to disabled until content is loaded
-                this.toolbar.set('disabled', true);
-            } else {
-                //Set the toolbar to disabled until content is loaded
-                tbarConf.disabled = true;
-                this.toolbar = new Toolbar(this.get('toolbar_cont'), tbarConf);
-            }
-
-            YAHOO.log('fireEvent::toolbarLoaded', 'info', 'SimpleEditor');
-            this.fireEvent('toolbarLoaded', { type: 'toolbarLoaded', target: this.toolbar });
-
-            
-            this.toolbar.on('toolbarCollapsed', function() {
-                if (this.currentWindow) {
-                    this.moveWindow();
-                }
-            }, this, true);
-            this.toolbar.on('toolbarExpanded', function() {
-                if (this.currentWindow) {
-                    this.moveWindow();
-                }
-            }, this, true);
-            this.toolbar.on('fontsizeClick', this._handleFontSize, this, true);
-            
-            this.toolbar.on('colorPickerClicked', function(o) {
-                this._handleColorPicker(o);
-                return false; //Stop the buttonClick event
-            }, this, true);
-
-            this.toolbar.on('alignClick', this._handleAlign, this, true);
-            this.on('afterNodeChange', this._handleAfterNodeChange, this, true);
-            this.toolbar.on('insertimageClick', this._handleInsertImageClick, this, true);
-            this.on('windowinsertimageClose', this._handleInsertImageWindowClose, this, true);
-            this.toolbar.on('createlinkClick', this._handleCreateLinkClick, this, true);
-            this.on('windowcreatelinkClose', this._handleCreateLinkWindowClose, this, true);
-            
-
-            //Replace Textarea with editable area
-            this.get('parentNode').replaceChild(this.get('element_cont').get('element'), this.get('element'));
-
-            
-            this.setStyle('visibility', 'hidden');
-            this.setStyle('position', 'absolute');
-            this.setStyle('top', '-9999px');
-            this.setStyle('left', '-9999px');
-            this.get('element_cont').appendChild(this.get('element'));
-            this.get('element_cont').setStyle('display', 'block');
-
-
-            Dom.addClass(this.get('iframe').get('parentNode'), this.CLASS_EDITABLE_CONT);
-            this.get('iframe').addClass(this.CLASS_EDITABLE);
-
-            //Set height and width of editor container
-            this.get('element_cont').setStyle('width', this.get('width'));
-            Dom.setStyle(this.get('iframe').get('parentNode'), 'height', this.get('height'));
-
-            this.get('iframe').setStyle('width', '100%'); //WIDTH
-            this.get('iframe').setStyle('height', '100%');
-
-            this._setupDD();
-
-            window.setTimeout(function() {
-                self._setupAfterElement.call(self);
-            }, 0);
-            this.fireEvent('afterRender', { type: 'afterRender', target: this });
-        },
-        /**
-        * @method execCommand
-        * @param {String} action The "execCommand" action to try to execute (Example: bold, insertimage, inserthtml)
-        * @param {String} value (optional) The value for a given action such as action: fontname value: 'Verdana'
-        * @description This method attempts to try and level the differences in the various browsers and their support for execCommand actions
-        */
-        execCommand: function(action, value) {
-            var beforeExec = this.fireEvent('beforeExecCommand', { type: 'beforeExecCommand', target: this, args: arguments });
-            if ((beforeExec === false) || (this.STOP_EXEC_COMMAND)) {
-                this.STOP_EXEC_COMMAND = false;
-                return false;
-            }
-            this._lastCommand = action;
-            this._setMarkupType(action);
-            if (this.browser.ie) {
-                this._getWindow().focus();
-            }
-            var exec = true;
-            
-            if (this.get('limitCommands')) {
-                if (!this.toolbar.getButtonByValue(action)) {
-                    YAHOO.log('Toolbar Button for (' + action + ') was not found, skipping exec.', 'info', 'SimpleEditor');
-                    exec = false;
-                }
-            }
-
-            this.editorDirty = true;
-            
-            if ((typeof this['cmd_' + action.toLowerCase()] == 'function') && exec) {
-                YAHOO.log('Found execCommand override method: (cmd_' + action.toLowerCase() + ')', 'info', 'SimpleEditor');
-                var retValue = this['cmd_' + action.toLowerCase()](value);
-                exec = retValue[0];
-                if (retValue[1]) {
-                    action = retValue[1];
-                }
-                if (retValue[2]) {
-                    value = retValue[2];
-                }
-            }
-            if (exec) {
-                YAHOO.log('execCommand::(' + action + '), (' + value + ')', 'info', 'SimpleEditor');
-                try {
-                    this._getDoc().execCommand(action, false, value);
-                } catch(e) {
-                    YAHOO.log('execCommand Failed', 'error', 'SimpleEditor');
-                }
-            } else {
-                YAHOO.log('OVERRIDE::execCommand::(' + action + '),(' + value + ') skipped', 'warn', 'SimpleEditor');
-            }
-            this.on('afterExecCommand', function() {
-                this.unsubscribeAll('afterExecCommand');
-                this.nodeChange();
-            }, this, true);
-            this.fireEvent('afterExecCommand', { type: 'afterExecCommand', target: this });
-            
-        },
-    /* {{{  Command Overrides */
-
-        /**
-        * @method cmd_bold
-        * @param value Value passed from the execCommand method
-        * @description This is an execCommand override method. It is called from execCommand when the execCommand('bold') is used.
-        */
-        cmd_bold: function(value) {
-            if (!this.browser.webkit) {
-                var el = this._getSelectedElement();
-                if (el && this._isElement(el, 'span') && this._hasSelection()) {
-                    if (el.style.fontWeight == 'bold') {
-                        el.style.fontWeight = '';
-                        var b = this._getDoc().createElement('b'),
-                        par = el.parentNode;
-                        par.replaceChild(b, el);
-                        b.appendChild(el);
-                    }
-                }
-            }
-            return [true];
-        },
-        /**
-        * @method cmd_italic
-        * @param value Value passed from the execCommand method
-        * @description This is an execCommand override method. It is called from execCommand when the execCommand('italic') is used.
-        */
-
-        cmd_italic: function(value) {
-            if (!this.browser.webkit) {
-                var el = this._getSelectedElement();
-                if (el && this._isElement(el, 'span') && this._hasSelection()) {
-                    if (el.style.fontStyle == 'italic') {
-                        el.style.fontStyle = '';
-                        var i = this._getDoc().createElement('i'),
-                        par = el.parentNode;
-                        par.replaceChild(i, el);
-                        i.appendChild(el);
-                    }
-                }
-            }
-            return [true];
-        },
-
-
-        /**
-        * @method cmd_underline
-        * @param value Value passed from the execCommand method
-        * @description This is an execCommand override method. It is called from execCommand when the execCommand('underline') is used.
-        */
-        cmd_underline: function(value) {
-            if (!this.browser.webkit) {
-                var el = this._getSelectedElement();
-                if (el && this._isElement(el, 'span')) {
-                    if (el.style.textDecoration == 'underline') {
-                        el.style.textDecoration = 'none';
-                    } else {
-                        el.style.textDecoration = 'underline';
-                    }
-                    return [false];
-                }
-            }
-            return [true];
-        },
-        /**
-        * @method cmd_backcolor
-        * @param value Value passed from the execCommand method
-        * @description This is an execCommand override method. It is called from execCommand when the execCommand('backcolor') is used.
-        */
-        cmd_backcolor: function(value) {
-            var exec = true,
-                el = this._getSelectedElement(),
-                action = 'backcolor';
-
-            if (this.browser.gecko || this.browser.opera) {
-                this._setEditorStyle(true);
-                action = 'hilitecolor';
-            }
-
-            if (!this._isElement(el, 'body') && !this._hasSelection()) {
-                el.style.backgroundColor = value;
-                this._selectNode(el);
-                exec = false;
-            } else {
-                if (this.get('insert')) {
-                    el = this._createInsertElement({ backgroundColor: value });
-                } else {
-                    this._createCurrentElement('span', { backgroundColor: value, color: el.style.color, fontSize: el.style.fontSize, fontFamily: el.style.fontFamily });
-                    this._selectNode(this.currentElement[0]);
-                }
-                exec = false;
-            }
-
-            return [exec, action];
-        },
-        /**
-        * @method cmd_forecolor
-        * @param value Value passed from the execCommand method
-        * @description This is an execCommand override method. It is called from execCommand when the execCommand('forecolor') is used.
-        */
-        cmd_forecolor: function(value) {
-            var exec = true,
-                el = this._getSelectedElement();
-                
-                if (!this._isElement(el, 'body') && !this._hasSelection()) {
-                    Dom.setStyle(el, 'color', value);
-                    this._selectNode(el);
-                    exec = false;
-                } else {
-                    if (this.get('insert')) {
-                        el = this._createInsertElement({ color: value });
-                    } else {
-                        this._createCurrentElement('span', { color: value, fontSize: el.style.fontSize, fontFamily: el.style.fontFamily, backgroundColor: el.style.backgroundColor });
-                        this._selectNode(this.currentElement[0]);
-                    }
-                    exec = false;
-                }
-                return [exec];
-        },
-        /**
-        * @method cmd_unlink
-        * @param value Value passed from the execCommand method
-        * @description This is an execCommand override method. It is called from execCommand when the execCommand('unlink') is used.
-        */
-        cmd_unlink: function(value) {
-            this._swapEl(this.currentElement[0], 'span', function(el) {
-                el.className = 'yui-non';
-            });
-            return [false];
-        },
-        /**
-        * @method cmd_createlink
-        * @param value Value passed from the execCommand method
-        * @description This is an execCommand override method. It is called from execCommand when the execCommand('createlink') is used.
-        */
-        cmd_createlink: function(value) {
-            var el = this._getSelectedElement(), _a = null;
-            if (this._hasParent(el, 'a')) {
-                this.currentElement[0] = this._hasParent(el, 'a');
-            } else if (this._isElement(el, 'li')) {
-                _a = this._getDoc().createElement('a');
-                _a.innerHTML = el.innerHTML;
-                el.innerHTML = '';
-                el.appendChild(_a);
-                this.currentElement[0] = _a;
-            } else if (!this._isElement(el, 'a')) {
-                this._createCurrentElement('a');
-                _a = this._swapEl(this.currentElement[0], 'a');
-                this.currentElement[0] = _a;
-            } else {
-                this.currentElement[0] = el;
-            }
-            return [false];
-        },
-        /**
-        * @method cmd_insertimage
-        * @param value Value passed from the execCommand method
-        * @description This is an execCommand override method. It is called from execCommand when the execCommand('insertimage') is used.
-        */
-        cmd_insertimage: function(value) {
-            var exec = true, _img = null, action = 'insertimage',
-                el = this._getSelectedElement();
-
-            if (value === '') {
-                value = this.get('blankimage');
-            }
-
-            /*
-            * @knownissue Safari Cursor Position
-            * @browser Safari 2.x
-            * @description The issue here is that we have no way of knowing where the cursor position is
-            * inside of the iframe, so we have to place the newly inserted data in the best place that we can.
-            */
-            
-            YAHOO.log('InsertImage: ' + el.tagName, 'info', 'SimpleEditor');
-            if (this._isElement(el, 'img')) {
-                this.currentElement[0] = el;
-                exec = false;
-            } else {
-                if (this._getDoc().queryCommandEnabled(action)) {
-                    this._getDoc().execCommand(action, false, value);
-                    var imgs = this._getDoc().getElementsByTagName('img');
-                    for (var i = 0; i < imgs.length; i++) {
-                        if (!YAHOO.util.Dom.hasClass(imgs[i], 'yui-img')) {
-                            YAHOO.util.Dom.addClass(imgs[i], 'yui-img');
-                            this.currentElement[0] = imgs[i];
-                        }
-                    }
-                    exec = false;
-                } else {
-                    if (el == this._getDoc().body) {
-                        _img = this._getDoc().createElement('img');
-                        _img.setAttribute('src', value);
-                        YAHOO.util.Dom.addClass(_img, 'yui-img');
-                        this._getDoc().body.appendChild(_img);
-                    } else {
-                        this._createCurrentElement('img');
-                        _img = this._getDoc().createElement('img');
-                        _img.setAttribute('src', value);
-                        YAHOO.util.Dom.addClass(_img, 'yui-img');
-                        this.currentElement[0].parentNode.replaceChild(_img, this.currentElement[0]);
-                    }
-                    this.currentElement[0] = _img;
-                    exec = false;
-                }
-            }
-            return [exec];
-        },
-        /**
-        * @method cmd_inserthtml
-        * @param value Value passed from the execCommand method
-        * @description This is an execCommand override method. It is called from execCommand when the execCommand('inserthtml') is used.
-        */
-        cmd_inserthtml: function(value) {
-            var exec = true, action = 'inserthtml', _span = null, _range = null;
-            /*
-            * @knownissue Safari cursor position
-            * @browser Safari 2.x
-            * @description The issue here is that we have no way of knowing where the cursor position is
-            * inside of the iframe, so we have to place the newly inserted data in the best place that we can.
-            */
-            if (this.browser.webkit && !this._getDoc().queryCommandEnabled(action)) {
-                YAHOO.log('More Safari DOM tricks (inserthtml)', 'info', 'EditorSafari');
-                this._createCurrentElement('img');
-                _span = this._getDoc().createElement('span');
-                _span.innerHTML = value;
-                this.currentElement[0].parentNode.replaceChild(_span, this.currentElement[0]);
-                exec = false;
-            } else if (this.browser.ie) {
-                _range = this._getRange();
-                if (_range.item) {
-                    _range.item(0).outerHTML = value;
-                } else {
-                    _range.pasteHTML(value);
-                }
-                exec = false;                    
-            }
-            return [exec];
-        },
-        /**
-        * @method cmd_list
-        * @param tag The tag of the list you want to create (eg, ul or ol)
-        * @description This is a combined execCommand override method. It is called from the cmd_insertorderedlist and cmd_insertunorderedlist methods.
-        */
-        cmd_list: function(tag) {
-            var exec = true, list = null, li = 0, el = null, str = '',
-                selEl = this._getSelectedElement(), action = 'insertorderedlist';
-                if (tag == 'ul') {
-                    action = 'insertunorderedlist';
-                }
-            /*
-            * @knownissue Safari 2.+ doesn't support ordered and unordered lists
-            * @browser Safari 2.x
-            * The issue with this workaround is that when applied to a set of text
-            * that has BR's in it, Safari may or may not pick up the individual items as
-            * list items. This is fixed in WebKit (Safari 3)
-            * 2.6.0: Seems there are still some issues with List Creation and Safari 3, reverting to previously working Safari 2.x code
-            */
-            //if ((this.browser.webkit && !this._getDoc().queryCommandEnabled(action))) {
-            if ((this.browser.webkit && !this.browser.webkit4) || (this.browser.opera)) {
-                if (this._isElement(selEl, 'li') && this._isElement(selEl.parentNode, tag)) {
-                    YAHOO.log('We already have a list, undo it', 'info', 'SimpleEditor');
-                    el = selEl.parentNode;
-                    list = this._getDoc().createElement('span');
-                    YAHOO.util.Dom.addClass(list, 'yui-non');
-                    str = '';
-                    var lis = el.getElementsByTagName('li'), p_tag = ((this.browser.opera && this.get('ptags')) ? 'p' : 'div');
-                    for (li = 0; li < lis.length; li++) {
-                        str += '<' + p_tag + '>' + lis[li].innerHTML + '</' + p_tag + '>';
-                    }
-                    list.innerHTML = str;
-                    this.currentElement[0] = el;
-                    this.currentElement[0].parentNode.replaceChild(list, this.currentElement[0]);
-                } else {
-                    YAHOO.log('Create list item', 'info', 'SimpleEditor');
-                    this._createCurrentElement(tag.toLowerCase());
-                    list = this._getDoc().createElement(tag);
-                    for (li = 0; li < this.currentElement.length; li++) {
-                        var newli = this._getDoc().createElement('li');
-                        newli.innerHTML = this.currentElement[li].innerHTML + '<span class="yui-non">&nbsp;</span>&nbsp;';
-                        list.appendChild(newli);
-                        if (li > 0) {
-                            this.currentElement[li].parentNode.removeChild(this.currentElement[li]);
-                        }
-                    }
-                    var b_tag = ((this.browser.opera) ? '<BR>' : '<br>'),
-                    items = list.firstChild.innerHTML.split(b_tag), i, item;
-                    if (items.length > 0) {
-                        list.innerHTML = '';
-                        for (i = 0; i < items.length; i++) {
-                            item = this._getDoc().createElement('li');
-                            item.innerHTML = items[i];
-                            list.appendChild(item);
-                        }
-                    }
-
-                    this.currentElement[0].parentNode.replaceChild(list, this.currentElement[0]);
-                    this.currentElement[0] = list;
-                    var _h = this.currentElement[0].firstChild;
-                    _h = Dom.getElementsByClassName('yui-non', 'span', _h)[0];
-                    if (this.browser.webkit) {
-                        this._getSelection().setBaseAndExtent(_h, 1, _h, _h.innerText.length);
-                    }
-                }
-                exec = false;
-            } else {
-                el = this._getSelectedElement();
-                YAHOO.log(el.tagName);
-                if (this._isElement(el, 'li') && this._isElement(el.parentNode, tag) || (this.browser.ie && this._isElement(this._getRange().parentElement, 'li')) || (this.browser.ie && this._isElement(el, 'ul')) || (this.browser.ie && this._isElement(el, 'ol'))) { //we are in a list..
-                    YAHOO.log('We already have a list, undo it', 'info', 'SimpleEditor');
-                    if (this.browser.ie) {
-                        if ((this.browser.ie && this._isElement(el, 'ul')) || (this.browser.ie && this._isElement(el, 'ol'))) {
-                            el = el.getElementsByTagName('li')[0];
-                        }
-                        YAHOO.log('Undo IE', 'info', 'SimpleEditor');
-                        str = '';
-                        var lis2 = el.parentNode.getElementsByTagName('li');
-                        for (var j = 0; j < lis2.length; j++) {
-                            str += lis2[j].innerHTML + '<br>';
-                        }
-                        var newEl = this._getDoc().createElement('span');
-                        newEl.innerHTML = str;
-                        el.parentNode.parentNode.replaceChild(newEl, el.parentNode);
-                    } else {
-                        this.nodeChange();
-                        this._getDoc().execCommand(action, '', el.parentNode);
-                        this.nodeChange();
-                    }
-                    exec = false;
-                }
-                if (this.browser.opera) {
-                    var self = this;
-                    window.setTimeout(function() {
-                        var liso = self._getDoc().getElementsByTagName('li');
-                        for (var i = 0; i < liso.length; i++) {
-                            if (liso[i].innerHTML.toLowerCase() == '<br>') {
-                                liso[i].parentNode.parentNode.removeChild(liso[i].parentNode);
-                            }
-                        }
-                    },30);
-                }
-                if (this.browser.ie && exec) {
-                    var html = '';
-                    if (this._getRange().html) {
-                        html = '<li>' + this._getRange().html+ '</li>';
-                    } else {
-                        var t = this._getRange().text.split('\n');
-                        if (t.length > 1) {
-                            html = '';
-                            for (var ie = 0; ie < t.length; ie++) {
-                                html += '<li>' + t[ie] + '</li>';
-                            }
-                        } else {
-                            var txt = this._getRange().text;
-                            if (txt === '') {
-                                html = '<li id="new_list_item">' + txt + '</li>';
-                            } else {
-                                html = '<li>' + txt + '</li>';
-                            }
-                        }
-                    }
-                    this._getRange().pasteHTML('<' + tag + '>' + html + '</' + tag + '>');
-                    var new_item = this._getDoc().getElementById('new_list_item');
-                    if (new_item) {
-                        var range = this._getDoc().body.createTextRange();
-                        range.moveToElementText(new_item);
-                        range.collapse(false);
-                        range.select();                       
-                        new_item.id = '';
-                    }
-                    exec = false;
-                }
-            }
-            return exec;
-        },
-        /**
-        * @method cmd_insertorderedlist
-        * @param value Value passed from the execCommand method
-        * @description This is an execCommand override method. It is called from execCommand when the execCommand('insertorderedlist ') is used.
-        */
-        cmd_insertorderedlist: function(value) {
-            return [this.cmd_list('ol')];
-        },
-        /**
-        * @method cmd_insertunorderedlist 
-        * @param value Value passed from the execCommand method
-        * @description This is an execCommand override method. It is called from execCommand when the execCommand('insertunorderedlist') is used.
-        */
-        cmd_insertunorderedlist: function(value) {
-            return [this.cmd_list('ul')];
-        },
-        /**
-        * @method cmd_fontname
-        * @param value Value passed from the execCommand method
-        * @description This is an execCommand override method. It is called from execCommand when the execCommand('fontname') is used.
-        */
-        cmd_fontname: function(value) {
-            var exec = true,
-                selEl = this._getSelectedElement();
-
-            this.currentFont = value;
-            if (selEl && selEl.tagName && !this._hasSelection() && !this._isElement(selEl, 'body') && !this.get('insert')) {
-                YAHOO.util.Dom.setStyle(selEl, 'font-family', value);
-                exec = false;
-            } else if (this.get('insert') && !this._hasSelection()) {
-                YAHOO.log('No selection and no selected element and we are in insert mode', 'info', 'SimpleEditor');
-                var el = this._createInsertElement({ fontFamily: value });
-                exec = false;
-            }
-            return [exec];
-        },
-        /**
-        * @method cmd_fontsize
-        * @param value Value passed from the execCommand method
-        * @description This is an execCommand override method. It is called from execCommand when the execCommand('fontsize') is used.
-        */
-        cmd_fontsize: function(value) {
-            var el = null, go = true;
-            el = this._getSelectedElement();
-            if (this.browser.webkit) {
-                if (this.currentElement[0]) {
-                    if (el == this.currentElement[0]) {
-                        go = false;
-                        YAHOO.util.Dom.setStyle(el, 'fontSize', value);
-                        this._selectNode(el);
-                        this.currentElement[0] = el;
-                    }
-                }
-            }
-            if (go) {
-                if (!this._isElement(this._getSelectedElement(), 'body') && (!this._hasSelection())) {
-                    el = this._getSelectedElement();
-                    YAHOO.util.Dom.setStyle(el, 'fontSize', value);
-                    if (this.get('insert') && this.browser.ie) {
-                        var r = this._getRange();
-                        r.collapse(false);
-                        r.select();
-                    } else {
-                        this._selectNode(el);
-                    }
-                } else if (this.currentElement && (this.currentElement.length > 0) && (!this._hasSelection()) && (!this.get('insert'))) {
-                    YAHOO.util.Dom.setStyle(this.currentElement, 'fontSize', value);
-                } else {
-                    if (this.get('insert') && !this._hasSelection()) {
-                        el = this._createInsertElement({ fontSize: value });
-                        this.currentElement[0] = el;
-                        this._selectNode(this.currentElement[0]);
-                    } else {
-                        this._createCurrentElement('span', {'fontSize': value, fontFamily: el.style.fontFamily, color: el.style.color, backgroundColor: el.style.backgroundColor });
-                        this._selectNode(this.currentElement[0]);
-                    }
-                }
-            }
-            return [false];
-        },
-    /* }}} */
-        /**
-        * @private
-        * @method _swapEl
-        * @param {HTMLElement} el The element to swap with
-        * @param {String} tagName The tagname of the element that you wish to create
-        * @param {Function} callback (optional) A function to run on the element after it is created, but before it is replaced. An element reference is passed to this function.
-        * @description This function will create a new element in the DOM and populate it with the contents of another element. Then it will assume it's place.
-        */
-        _swapEl: function(el, tagName, callback) {
-            var _el = this._getDoc().createElement(tagName);
-            if (el) {
-                _el.innerHTML = el.innerHTML;
-            }
-            if (typeof callback == 'function') {
-                callback.call(this, _el);
-            }
-            if (el) {
-                el.parentNode.replaceChild(_el, el);
-            }
-            return _el;
-        },
-        /**
-        * @private
-        * @method _createInsertElement
-        * @description Creates a new "currentElement" then adds some text (and other things) to make it selectable and stylable. Then the user can continue typing.
-        * @param {Object} css (optional) Object literal containing styles to apply to the new element.
-        * @return {HTMLElement}
-        */
-        _createInsertElement: function(css) {
-            this._createCurrentElement('span', css);
-            var el = this.currentElement[0];
-            if (this.browser.webkit) {
-                //Little Safari Hackery here..
-                el.innerHTML = '<span class="yui-non">&nbsp;</span>';
-                el = el.firstChild;
-                this._getSelection().setBaseAndExtent(el, 1, el, el.innerText.length);                    
-            } else if (this.browser.ie || this.browser.opera) {
-                el.innerHTML = '&nbsp;';
-            }
-            this.focus();
-            this._selectNode(el, true);
-            return el;
-        },
-        /**
-        * @private
-        * @method _createCurrentElement
-        * @param {String} tagName (optional defaults to a) The tagname of the element that you wish to create
-        * @param {Object} tagStyle (optional) Object literal containing styles to apply to the new element.
-        * @description This is a work around for the various browser issues with execCommand. This method will run <code>execCommand('fontname', false, 'yui-tmp')</code> on the given selection.
-        * It will then search the document for an element with the font-family set to <strong>yui-tmp</strong> and replace that with another span that has other information in it, then assign the new span to the 
-        * <code>this.currentElement</code> array, so we now have element references to the elements that were just modified. At this point we can use standard DOM manipulation to change them as we see fit.
-        */
-        _createCurrentElement: function(tagName, tagStyle) {
-            tagName = ((tagName) ? tagName : 'a');
-            var tar = null,
-                el = [],
-                _doc = this._getDoc();
-            
-            if (this.currentFont) {
-                if (!tagStyle) {
-                    tagStyle = {};
-                }
-                tagStyle.fontFamily = this.currentFont;
-                this.currentFont = null;
-            }
-            this.currentElement = [];
-
-            var _elCreate = function(tagName, tagStyle) {
-                var el = null;
-                tagName = ((tagName) ? tagName : 'span');
-                tagName = tagName.toLowerCase();
-                switch (tagName) {
-                    case 'h1':
-                    case 'h2':
-                    case 'h3':
-                    case 'h4':
-                    case 'h5':
-                    case 'h6':
-                        el = _doc.createElement(tagName);
-                        break;
-                    default:
-                        el = _doc.createElement(tagName);
-                        if (tagName === 'span') {
-                            YAHOO.util.Dom.addClass(el, 'yui-tag-' + tagName);
-                            YAHOO.util.Dom.addClass(el, 'yui-tag');
-                            el.setAttribute('tag', tagName);
-                        }
-
-                        for (var k in tagStyle) {
-                            if (YAHOO.lang.hasOwnProperty(tagStyle, k)) {
-                                el.style[k] = tagStyle[k];
-                            }
-                        }
-                        break;
-                }
-                return el;
-            };
-
-            if (!this._hasSelection()) {
-                if (this._getDoc().queryCommandEnabled('insertimage')) {
-                    this._getDoc().execCommand('insertimage', false, 'yui-tmp-img');
-                    var imgs = this._getDoc().getElementsByTagName('img');
-                    for (var j = 0; j < imgs.length; j++) {
-                        if (imgs[j].getAttribute('src', 2) == 'yui-tmp-img') {
-                            el = _elCreate(tagName, tagStyle);
-                            imgs[j].parentNode.replaceChild(el, imgs[j]);
-                            this.currentElement[this.currentElement.length] = el;
-                        }
-                    }
-                } else {
-                    if (this.currentEvent) {
-                        tar = YAHOO.util.Event.getTarget(this.currentEvent);
-                    } else {
-                        //For Safari..
-                        tar = this._getDoc().body;                        
-                    }
-                }
-                if (tar) {
-                    /*
-                    * @knownissue Safari Cursor Position
-                    * @browser Safari 2.x
-                    * @description The issue here is that we have no way of knowing where the cursor position is
-                    * inside of the iframe, so we have to place the newly inserted data in the best place that we can.
-                    */
-                    el = _elCreate(tagName, tagStyle);
-                    if (this._isElement(tar, 'body') || this._isElement(tar, 'html')) {
-                        if (this._isElement(tar, 'html')) {
-                            tar = this._getDoc().body;
-                        }
-                        tar.appendChild(el);
-                    } else if (tar.nextSibling) {
-                        tar.parentNode.insertBefore(el, tar.nextSibling);
-                    } else {
-                        tar.parentNode.appendChild(el);
-                    }
-                    //this.currentElement = el;
-                    this.currentElement[this.currentElement.length] = el;
-                    this.currentEvent = null;
-                    if (this.browser.webkit) {
-                        //Force Safari to focus the new element
-                        this._getSelection().setBaseAndExtent(el, 0, el, 0);
-                        if (this.browser.webkit3) {
-                            this._getSelection().collapseToStart();
-                        } else {
-                            this._getSelection().collapse(true);
-                        }
-                    }
-                }
-            } else {
-                //Force CSS Styling for this action...
-                this._setEditorStyle(true);
-                this._getDoc().execCommand('fontname', false, 'yui-tmp');
-                var _tmp = [], __tmp, __els = ['font', 'span', 'i', 'b', 'u'];
-
-                if (!this._isElement(this._getSelectedElement(), 'body')) {
-                    __els[__els.length] = this._getDoc().getElementsByTagName(this._getSelectedElement().tagName);
-                    __els[__els.length] = this._getDoc().getElementsByTagName(this._getSelectedElement().parentNode.tagName);
-                }
-                for (var _els = 0; _els < __els.length; _els++) {
-                    var _tmp1 = this._getDoc().getElementsByTagName(__els[_els]);
-                    for (var e = 0; e < _tmp1.length; e++) {
-                        _tmp[_tmp.length] = _tmp1[e];
-                    }
-                }
-
-                
-                for (var i = 0; i < _tmp.length; i++) {
-                    if ((YAHOO.util.Dom.getStyle(_tmp[i], 'font-family') == 'yui-tmp') || (_tmp[i].face && (_tmp[i].face == 'yui-tmp'))) {
-                        if (tagName !== 'span') {
-                            el = _elCreate(tagName, tagStyle);
-                        } else {
-                            el = _elCreate(_tmp[i].tagName, tagStyle);
-                        }
-                        el.innerHTML = _tmp[i].innerHTML;
-                        if (this._isElement(_tmp[i], 'ol') || (this._isElement(_tmp[i], 'ul'))) {
-                            var fc = _tmp[i].getElementsByTagName('li')[0];
-                            _tmp[i].style.fontFamily = 'inherit';
-                            fc.style.fontFamily = 'inherit';
-                            el.innerHTML = fc.innerHTML;
-                            fc.innerHTML = '';
-                            fc.appendChild(el);
-                            this.currentElement[this.currentElement.length] = el;
-                        } else if (this._isElement(_tmp[i], 'li')) {
-                            _tmp[i].innerHTML = '';
-                            _tmp[i].appendChild(el);
-                            _tmp[i].style.fontFamily = 'inherit';
-                            this.currentElement[this.currentElement.length] = el;
-                        } else {
-                            if (_tmp[i].parentNode) {
-                                _tmp[i].parentNode.replaceChild(el, _tmp[i]);
-                                this.currentElement[this.currentElement.length] = el;
-                                this.currentEvent = null;
-                                if (this.browser.webkit) {
-                                    //Force Safari to focus the new element
-                                    this._getSelection().setBaseAndExtent(el, 0, el, 0);
-                                    if (this.browser.webkit3) {
-                                        this._getSelection().collapseToStart();
-                                    } else {
-                                        this._getSelection().collapse(true);
-                                    }
-                                }
-                                if (this.browser.ie && tagStyle && tagStyle.fontSize) {
-                                    this._getSelection().empty();
-                                }
-                                if (this.browser.gecko) {
-                                    this._getSelection().collapseToStart();
-                                }
-                            }
-                        }
-                    }
-                }
-                var len = this.currentElement.length;
-                for (var o = 0; o < len; o++) {
-                    if ((o + 1) != len) { //Skip the last one in the list
-                        if (this.currentElement[o] && this.currentElement[o].nextSibling) {
-                            if (this._isElement(this.currentElement[o], 'br')) {
-                                this.currentElement[this.currentElement.length] = this.currentElement[o].nextSibling;
-                            }
-                        }
-                    }
-                }
-            }
-        },
-        /**
-        * @method saveHTML
-        * @description Cleans the HTML with the cleanHTML method then places that string back into the textarea.
-        * @return String
-        */
-        saveHTML: function() {
-            var html = this.cleanHTML();
-            if (this._textarea) {
-                this.get('element').value = html;
-            } else {
-                this.get('element').innerHTML = html;
-            }
-            if (this.get('saveEl') !== this.get('element')) {
-                var out = this.get('saveEl');
-                if (Lang.isString(out)) {
-                    out = Dom.get(out);
-                }
-                if (out) {
-                    if (out.tagName.toLowerCase() === 'textarea') {
-                        out.value = html;
-                    } else {
-                        out.innerHTML = html;
-                    }
-                }
-            }
-            return html;
-        },
-        /**
-        * @method setEditorHTML
-        * @param {String} incomingHTML The html content to load into the editor
-        * @description Loads HTML into the editors body
-        */
-        setEditorHTML: function(incomingHTML) {
-            var html = this._cleanIncomingHTML(incomingHTML);
-            html = html.replace(/RIGHT_BRACKET/gi, '{');
-            html = html.replace(/LEFT_BRACKET/gi, '}');
-            this._getDoc().body.innerHTML = html;
-            this.nodeChange();
-        },
-        /**
-        * @method getEditorHTML
-        * @description Gets the unprocessed/unfiltered HTML from the editor
-        */
-        getEditorHTML: function() {
-            try {
-                var b = this._getDoc().body;
-                if (b === null) {
-                    YAHOO.log('Body is null, returning null.', 'error', 'SimpleEditor');
-                    return null;
-                }
-                return this._getDoc().body.innerHTML;
-            } catch (e) {
-                return '';
-            }
-        },
-        /**
-        * @method show
-        * @description This method needs to be called if the Editor was hidden (like in a TabView or Panel). It is used to reset the editor after being in a container that was set to display none.
-        */
-        show: function() {
-            if (this.browser.gecko) {
-                this._setDesignMode('on');
-                this.focus();
-            }
-            if (this.browser.webkit) {
-                var self = this;
-                window.setTimeout(function() {
-                    self._setInitialContent.call(self);
-                }, 10);
-            }
-            //Adding this will close all other Editor window's when showing this one.
-            if (this.currentWindow) {
-                this.closeWindow();
-            }
-            //Put the iframe back in place
-            this.get('iframe').setStyle('position', 'static');
-            this.get('iframe').setStyle('left', '');
-        },
-        /**
-        * @method hide
-        * @description This method needs to be called if the Editor is to be hidden (like in a TabView or Panel). It should be called to clear timeouts and close open editor windows.
-        */
-        hide: function() {
-            //Adding this will close all other Editor window's.
-            if (this.currentWindow) {
-                this.closeWindow();
-            }
-            if (this._fixNodesTimer) {
-                clearTimeout(this._fixNodesTimer);
-                this._fixNodesTimer = null;
-            }
-            if (this._nodeChangeTimer) {
-                clearTimeout(this._nodeChangeTimer);
-                this._nodeChangeTimer = null;
-            }
-            this._lastNodeChange = 0;
-            //Move the iframe off of the screen, so that in containers with visiblity hidden, IE will not cover other elements.
-            this.get('iframe').setStyle('position', 'absolute');
-            this.get('iframe').setStyle('left', '-9999px');
-        },
-        /**
-        * @method _cleanIncomingHTML
-        * @param {String} html The unfiltered HTML
-        * @description Process the HTML with a few regexes to clean it up and stabilize the input
-        * @return {String} The filtered HTML
-        */
-        _cleanIncomingHTML: function(html) {
-            html = html.replace(/{/gi, 'RIGHT_BRACKET');
-            html = html.replace(/}/gi, 'LEFT_BRACKET');
-
-            html = html.replace(/<strong([^>]*)>/gi, '<b$1>');
-            html = html.replace(/<\/strong>/gi, '</b>');   
-
-            //replace embed before em check
-            html = html.replace(/<embed([^>]*)>/gi, '<YUI_EMBED$1>');
-            html = html.replace(/<\/embed>/gi, '</YUI_EMBED>');
-
-            html = html.replace(/<em([^>]*)>/gi, '<i$1>');
-            html = html.replace(/<\/em>/gi, '</i>');
-            html = html.replace(/_moz_dirty=""/gi, '');
-            
-            //Put embed tags back in..
-            html = html.replace(/<YUI_EMBED([^>]*)>/gi, '<embed$1>');
-            html = html.replace(/<\/YUI_EMBED>/gi, '</embed>');
-            if (this.get('plainText')) {
-                YAHOO.log('Filtering as plain text', 'info', 'SimpleEditor');
-                html = html.replace(/\n/g, '<br>').replace(/\r/g, '<br>');
-                html = html.replace(/  /gi, '&nbsp;&nbsp;'); //Replace all double spaces
-                html = html.replace(/\t/gi, '&nbsp;&nbsp;&nbsp;&nbsp;'); //Replace all tabs
-            }
-            //Removing Script Tags from the Editor
-            html = html.replace(/<script([^>]*)>/gi, '<bad>');
-            html = html.replace(/<\/script([^>]*)>/gi, '</bad>');
-            html = html.replace(/&lt;script([^>]*)&gt;/gi, '<bad>');
-            html = html.replace(/&lt;\/script([^>]*)&gt;/gi, '</bad>');
-            //Replace the line feeds
-            html = html.replace(/\r\n/g, '<YUI_LF>').replace(/\n/g, '<YUI_LF>').replace(/\r/g, '<YUI_LF>');
-            
-            //Remove Bad HTML elements (used to be script nodes)
-            html = html.replace(new RegExp('<bad([^>]*)>(.*?)<\/bad>', 'gi'), '');
-            //Replace the lines feeds
-            html = html.replace(/<YUI_LF>/g, '\n');
-            return html;
-        },
-        /**
-        * @method cleanHTML
-        * @param {String} html The unfiltered HTML
-        * @description Process the HTML with a few regexes to clean it up and stabilize the output
-        * @return {String} The filtered HTML
-        */
-        cleanHTML: function(html) {
-            //Start Filtering Output
-            //Begin RegExs..
-            if (!html) { 
-                html = this.getEditorHTML();
-            }
-            var markup = this.get('markup');
-            //Make some backups...
-            html = this.pre_filter_linebreaks(html, markup);
-
-            //Filter MS Word
-            html = this.filter_msword(html);
-
-                   html = html.replace(/<img([^>]*)\/>/gi, '<YUI_IMG$1>');
-                   html = html.replace(/<img([^>]*)>/gi, '<YUI_IMG$1>');
-
-                   html = html.replace(/<input([^>]*)\/>/gi, '<YUI_INPUT$1>');
-                   html = html.replace(/<input([^>]*)>/gi, '<YUI_INPUT$1>');
-
-                   html = html.replace(/<ul([^>]*)>/gi, '<YUI_UL$1>');
-                   html = html.replace(/<\/ul>/gi, '<\/YUI_UL>');
-                   html = html.replace(/<blockquote([^>]*)>/gi, '<YUI_BQ$1>');
-                   html = html.replace(/<\/blockquote>/gi, '<\/YUI_BQ>');
-
-                   html = html.replace(/<embed([^>]*)>/gi, '<YUI_EMBED$1>');
-                   html = html.replace(/<\/embed>/gi, '<\/YUI_EMBED>');
-
-            //Convert b and i tags to strong and em tags
-            if ((markup == 'semantic') || (markup == 'xhtml')) {
-                html = html.replace(/<i(\s+[^>]*)?>/gi, '<em$1>');
-                html = html.replace(/<\/i>/gi, '</em>');
-                html = html.replace(/<b(\s+[^>]*)?>/gi, '<strong$1>');
-                html = html.replace(/<\/b>/gi, '</strong>');
-            }
-
-            html = html.replace(/_moz_dirty=""/gi, '');
-
-            //normalize strikethrough
-            html = html.replace(/<strike/gi, '<span style="text-decoration: line-through;"');
-            html = html.replace(/\/strike>/gi, '/span>');
-            
-            
-            //Case Changing
-            if (this.browser.ie) {
-                html = html.replace(/text-decoration/gi, 'text-decoration');
-                html = html.replace(/font-weight/gi, 'font-weight');
-                html = html.replace(/_width="([^>]*)"/gi, '');
-                html = html.replace(/_height="([^>]*)"/gi, '');
-                //Cleanup Image URL's
-                var url = this._baseHREF.replace(/\//gi, '\\/'),
-                    re = new RegExp('src="' + url, 'gi');
-                html = html.replace(re, 'src="');
-            }
-                   html = html.replace(/<font/gi, '<font');
-                   html = html.replace(/<\/font>/gi, '</font>');
-                   html = html.replace(/<span/gi, '<span');
-                   html = html.replace(/<\/span>/gi, '</span>');
-            if ((markup == 'semantic') || (markup == 'xhtml') || (markup == 'css')) {
-                html = html.replace(new RegExp('<font([^>]*)face="([^>]*)">(.*?)<\/font>', 'gi'), '<span $1 style="font-family: $2;">$3</span>');
-                html = html.replace(/<u/gi, '<span style="text-decoration: underline;"');
-                if (this.browser.webkit) {
-                    html = html.replace(new RegExp('<span class="Apple-style-span" style="font-weight: bold;">([^>]*)<\/span>', 'gi'), '<strong>$1</strong>');
-                    html = html.replace(new RegExp('<span class="Apple-style-span" style="font-style: italic;">([^>]*)<\/span>', 'gi'), '<em>$1</em>');
-                }
-                html = html.replace(/\/u>/gi, '/span>');
-                if (markup == 'css') {
-                    html = html.replace(/<em([^>]*)>/gi, '<i$1>');
-                    html = html.replace(/<\/em>/gi, '</i>');
-                    html = html.replace(/<strong([^>]*)>/gi, '<b$1>');
-                    html = html.replace(/<\/strong>/gi, '</b>');
-                    html = html.replace(/<b/gi, '<span style="font-weight: bold;"');
-                    html = html.replace(/\/b>/gi, '/span>');
-                    html = html.replace(/<i/gi, '<span style="font-style: italic;"');
-                    html = html.replace(/\/i>/gi, '/span>');
-                }
-                html = html.replace(/  /gi, ' '); //Replace all double spaces and replace with a single
-            } else {
-                       html = html.replace(/<u/gi, '<u');
-                       html = html.replace(/\/u>/gi, '/u>');
-            }
-                   html = html.replace(/<ol([^>]*)>/gi, '<ol$1>');
-                   html = html.replace(/\/ol>/gi, '/ol>');
-                   html = html.replace(/<li/gi, '<li');
-                   html = html.replace(/\/li>/gi, '/li>');
-            html = this.filter_safari(html);
-
-            html = this.filter_internals(html);
-
-            html = this.filter_all_rgb(html);
-
-            //Replace our backups with the real thing
-            html = this.post_filter_linebreaks(html, markup);
-
-            if (markup == 'xhtml') {
-                       html = html.replace(/<YUI_IMG([^>]*)>/g, '<img $1 />');
-                       html = html.replace(/<YUI_INPUT([^>]*)>/g, '<input $1 />');
-            } else {
-                       html = html.replace(/<YUI_IMG([^>]*)>/g, '<img $1>');
-                       html = html.replace(/<YUI_INPUT([^>]*)>/g, '<input $1>');
-            }
-                   html = html.replace(/<YUI_UL([^>]*)>/g, '<ul$1>');
-                   html = html.replace(/<\/YUI_UL>/g, '<\/ul>');
-
-            html = this.filter_invalid_lists(html);
-
-                   html = html.replace(/<YUI_BQ([^>]*)>/g, '<blockquote$1>');
-                   html = html.replace(/<\/YUI_BQ>/g, '<\/blockquote>');
-
-                   html = html.replace(/<YUI_EMBED([^>]*)>/g, '<embed$1>');
-                   html = html.replace(/<\/YUI_EMBED>/g, '<\/embed>');
-            
-            //This should fix &amp;'s in URL's
-            html = html.replace(/ &amp; /gi, ' YUI_AMP ');
-            html = html.replace(/ &amp;/gi, ' YUI_AMP_F ');
-            html = html.replace(/&amp; /gi, ' YUI_AMP_R ');
-            html = html.replace(/&amp;/gi, '&');
-            html = html.replace(/ YUI_AMP /gi, ' &amp; ');
-            html = html.replace(/ YUI_AMP_F /gi, ' &amp;');
-            html = html.replace(/ YUI_AMP_R /gi, '&amp; ');
-
-            //Trim the output, removing whitespace from the beginning and end
-            html = YAHOO.lang.trim(html);
-
-            if (this.get('removeLineBreaks')) {
-                html = html.replace(/\n/g, '').replace(/\r/g, '');
-                html = html.replace(/  /gi, ' '); //Replace all double spaces and replace with a single
-            }
-            
-            for (var v in this.invalidHTML) {
-                if (YAHOO.lang.hasOwnProperty(this.invalidHTML, v)) {
-                    if (Lang.isObject(v) && v.keepContents) {
-                        html = html.replace(new RegExp('<' + v + '([^>]*)>(.*?)<\/' + v + '>', 'gi'), '$1');
-                    } else {
-                        html = html.replace(new RegExp('<' + v + '([^>]*)>(.*?)<\/' + v + '>', 'gi'), '');
-                    }
-                }
-            }
-
-            /* LATER -- Add DOM manipulation
-            console.log(html);
-            var frag = document.createDocumentFragment();
-            frag.innerHTML = html;
-
-            var ps = frag.getElementsByTagName('p'),
-                len = ps.length;
-            for (var i = 0; i < len; i++) {
-                var ps2 = ps[i].getElementsByTagName('p');
-                if (ps2.length) {
-                    
-                }
-                
-            }
-            html = frag.innerHTML;
-            console.log(html);
-            */
-
-            this.fireEvent('cleanHTML', { type: 'cleanHTML', target: this, html: html });
-
-            return html;
-        },
-        /**
-        * @method filter_msword
-        * @param String html The HTML string to filter
-        * @description Filters out msword html attributes and other junk. Activate with filterWord: true in config
-        */
-        filter_msword: function(html) {
-            if (!this.get('filterWord')) {
-                return html;
-            }
-            //Remove the ms o: tags
-            html = html.replace(/<o:p>\s*<\/o:p>/g, '');
-            html = html.replace(/<o:p>[\s\S]*?<\/o:p>/g, '&nbsp;');
-
-            //Remove the ms w: tags
-            html = html.replace( /<w:[^>]*>[\s\S]*?<\/w:[^>]*>/gi, '');
-
-            //Remove mso-? styles.
-            html = html.replace( /\s*mso-[^:]+:[^;"]+;?/gi, '');
-
-            //Remove more bogus MS styles.
-            html = html.replace( /\s*MARGIN: 0cm 0cm 0pt\s*;/gi, '');
-            html = html.replace( /\s*MARGIN: 0cm 0cm 0pt\s*"/gi, "\"");
-            html = html.replace( /\s*TEXT-INDENT: 0cm\s*;/gi, '');
-            html = html.replace( /\s*TEXT-INDENT: 0cm\s*"/gi, "\"");
-            html = html.replace( /\s*PAGE-BREAK-BEFORE: [^\s;]+;?"/gi, "\"");
-            html = html.replace( /\s*FONT-VARIANT: [^\s;]+;?"/gi, "\"" );
-            html = html.replace( /\s*tab-stops:[^;"]*;?/gi, '');
-            html = html.replace( /\s*tab-stops:[^"]*/gi, '');
-
-            //Remove XML declarations
-            html = html.replace(/<\\?\?xml[^>]*>/gi, '');
-
-            //Remove lang
-            html = html.replace(/<(\w[^>]*) lang=([^ |>]*)([^>]*)/gi, "<$1$3");
-
-            //Remove language tags
-            html = html.replace( /<(\w[^>]*) language=([^ |>]*)([^>]*)/gi, "<$1$3");
-
-            //Remove onmouseover and onmouseout events (from MS Word comments effect)
-            html = html.replace( /<(\w[^>]*) onmouseover="([^\"]*)"([^>]*)/gi, "<$1$3");
-            html = html.replace( /<(\w[^>]*) onmouseout="([^\"]*)"([^>]*)/gi, "<$1$3");
-            
-            return html;
-        },
-        /**
-        * @method filter_invalid_lists
-        * @param String html The HTML string to filter
-        * @description Filters invalid ol and ul list markup, converts this: <li></li><ol>..</ol> to this: <li></li><li><ol>..</ol></li>
-        */
-        filter_invalid_lists: function(html) {
-            html = html.replace(/<\/li>\n/gi, '</li>');
-
-            html = html.replace(/<\/li><ol>/gi, '</li><li><ol>');
-            html = html.replace(/<\/ol>/gi, '</ol></li>');
-            html = html.replace(/<\/ol><\/li>\n/gi, "</ol>");
-
-            html = html.replace(/<\/li><ul>/gi, '</li><li><ul>');
-            html = html.replace(/<\/ul>/gi, '</ul></li>');
-            html = html.replace(/<\/ul><\/li>\n?/gi, "</ul>");
-
-            html = html.replace(/<\/li>/gi, "</li>");
-            html = html.replace(/<\/ol>/gi, "</ol>");
-            html = html.replace(/<ol>/gi, "<ol>");
-            html = html.replace(/<ul>/gi, "<ul>");
-            return html;
-        },
-        /**
-        * @method filter_safari
-        * @param String html The HTML string to filter
-        * @description Filters strings specific to Safari
-        * @return String
-        */
-        filter_safari: function(html) {
-            if (this.browser.webkit) {
-                //<span class="Apple-tab-span" style="white-space:pre">        </span>
-                html = html.replace(/<span class="Apple-tab-span" style="white-space:pre">([^>])<\/span>/gi, '&nbsp;&nbsp;&nbsp;&nbsp;');
-                html = html.replace(/Apple-style-span/gi, '');
-                html = html.replace(/style="line-height: normal;"/gi, '');
-                html = html.replace(/yui-wk-div/gi, '');
-                html = html.replace(/yui-wk-p/gi, '');
-
-
-                //Remove bogus LI's
-                html = html.replace(/<li><\/li>/gi, '');
-                html = html.replace(/<li> <\/li>/gi, '');
-                html = html.replace(/<li>  <\/li>/gi, '');
-                //Remove bogus DIV's - updated from just removing the div's to replacing /div with a break
-                if (this.get('ptags')) {
-                           html = html.replace(/<div([^>]*)>/g, '<p$1>');
-                                   html = html.replace(/<\/div>/gi, '</p>');
-                } else {
-                    //html = html.replace(/<div>/gi, '<br>');
-                    html = html.replace(/<div([^>]*)>([ tnr]*)<\/div>/gi, '<br>');
-                                   html = html.replace(/<\/div>/gi, '');
-                }
-            }
-            return html;
-        },
-        /**
-        * @method filter_internals
-        * @param String html The HTML string to filter
-        * @description Filters internal RTE strings and bogus attrs we don't want
-        * @return String
-        */
-        filter_internals: function(html) {
-                   html = html.replace(/\r/g, '');
-            //Fix stuff we don't want
-               html = html.replace(/<\/?(body|head|html)[^>]*>/gi, '');
-            //Fix last BR in LI
-                   html = html.replace(/<YUI_BR><\/li>/gi, '</li>');
-
-                   html = html.replace(/yui-tag-span/gi, '');
-                   html = html.replace(/yui-tag/gi, '');
-                   html = html.replace(/yui-non/gi, '');
-                   html = html.replace(/yui-img/gi, '');
-                   html = html.replace(/ tag="span"/gi, '');
-                   html = html.replace(/ class=""/gi, '');
-                   html = html.replace(/ style=""/gi, '');
-                   html = html.replace(/ class=" "/gi, '');
-                   html = html.replace(/ class="  "/gi, '');
-                   html = html.replace(/ target=""/gi, '');
-                   html = html.replace(/ title=""/gi, '');
-
-            if (this.browser.ie) {
-                       html = html.replace(/ class= /gi, '');
-                       html = html.replace(/ class= >/gi, '');
-            }
-            
-            return html;
-        },
-        /**
-        * @method filter_all_rgb
-        * @param String str The HTML string to filter
-        * @description Converts all RGB color strings found in passed string to a hex color, example: style="color: rgb(0, 255, 0)" converts to style="color: #00ff00"
-        * @return String
-        */
-        filter_all_rgb: function(str) {
-            var exp = new RegExp("rgb\\s*?\\(\\s*?([0-9]+).*?,\\s*?([0-9]+).*?,\\s*?([0-9]+).*?\\)", "gi");
-            var arr = str.match(exp);
-            if (Lang.isArray(arr)) {
-                for (var i = 0; i < arr.length; i++) {
-                    var color = this.filter_rgb(arr[i]);
-                    str = str.replace(arr[i].toString(), color);
-                }
-            }
-            
-            return str;
-        },
-        /**
-        * @method filter_rgb
-        * @param String css The CSS string containing rgb(#,#,#);
-        * @description Converts an RGB color string to a hex color, example: rgb(0, 255, 0) converts to #00ff00
-        * @return String
-        */
-        filter_rgb: function(css) {
-            if (css.toLowerCase().indexOf('rgb') != -1) {
-                var exp = new RegExp("(.*?)rgb\\s*?\\(\\s*?([0-9]+).*?,\\s*?([0-9]+).*?,\\s*?([0-9]+).*?\\)(.*?)", "gi");
-                var rgb = css.replace(exp, "$1,$2,$3,$4,$5").split(',');
-            
-                if (rgb.length == 5) {
-                    var r = parseInt(rgb[1], 10).toString(16);
-                    var g = parseInt(rgb[2], 10).toString(16);
-                    var b = parseInt(rgb[3], 10).toString(16);
-
-                    r = r.length == 1 ? '0' + r : r;
-                    g = g.length == 1 ? '0' + g : g;
-                    b = b.length == 1 ? '0' + b : b;
-
-                    css = "#" + r + g + b;
-                }
-            }
-            return css;
-        },
-        /**
-        * @method pre_filter_linebreaks
-        * @param String html The HTML to filter
-        * @param String markup The markup type to filter to
-        * @description HTML Pre Filter
-        * @return String
-        */
-        pre_filter_linebreaks: function(html, markup) {
-            if (this.browser.webkit) {
-                       html = html.replace(/<br class="khtml-block-placeholder">/gi, '<YUI_BR>');
-                       html = html.replace(/<br class="webkit-block-placeholder">/gi, '<YUI_BR>');
-            }
-                   html = html.replace(/<br>/gi, '<YUI_BR>');
-                   html = html.replace(/<br (.*?)>/gi, '<YUI_BR>');
-                   html = html.replace(/<br\/>/gi, '<YUI_BR>');
-                   html = html.replace(/<br \/>/gi, '<YUI_BR>');
-                   html = html.replace(/<div><YUI_BR><\/div>/gi, '<YUI_BR>');
-                   html = html.replace(/<p>(&nbsp;|&#160;)<\/p>/g, '<YUI_BR>');            
-                   html = html.replace(/<p><br>&nbsp;<\/p>/gi, '<YUI_BR>');
-                   html = html.replace(/<p>&nbsp;<\/p>/gi, '<YUI_BR>');
-            //Fix last BR
-               html = html.replace(/<YUI_BR>$/, '');
-            //Fix last BR in P
-               html = html.replace(/<YUI_BR><\/p>/g, '</p>');
-            if (this.browser.ie) {
-                   html = html.replace(/&nbsp;&nbsp;&nbsp;&nbsp;/g, '\t');
-            }
-            return html;
-        },
-        /**
-        * @method post_filter_linebreaks
-        * @param String html The HTML to filter
-        * @param String markup The markup type to filter to
-        * @description HTML Pre Filter
-        * @return String
-        */
-        post_filter_linebreaks: function(html, markup) {
-            if (markup == 'xhtml') {
-                       html = html.replace(/<YUI_BR>/g, '<br />');
-            } else {
-                       html = html.replace(/<YUI_BR>/g, '<br>');
-            }
-            return html;
-        },
-        /**
-        * @method clearEditorDoc
-        * @description Clear the doc of the Editor
-        */
-        clearEditorDoc: function() {
-            this._getDoc().body.innerHTML = '&nbsp;';
-        },
-        /**
-        * @method openWindow
-        * @description Override Method for Advanced Editor
-        */
-        openWindow: function(win) {
-        },
-        /**
-        * @method moveWindow
-        * @description Override Method for Advanced Editor
-        */
-        moveWindow: function() {
-        },
-        /**
-        * @private
-        * @method _closeWindow
-        * @description Override Method for Advanced Editor
-        */
-        _closeWindow: function() {
-        },
-        /**
-        * @method closeWindow
-        * @description Override Method for Advanced Editor
-        */
-        closeWindow: function() {
-            //this.unsubscribeAll('afterExecCommand');
-            this.toolbar.resetAllButtons();
-            this.focus();        
-        },
-        /**
-        * @method destroy
-        * @description Destroys the editor, all of it's elements and objects.
-        * @return {Boolean}
-        */
-        destroy: function() {
-            if (this._nodeChangeDelayTimer) {
-                clearTimeout(this._nodeChangeDelayTimer);
-            }
-            this.hide();
-        
-            YAHOO.log('Destroying Editor', 'warn', 'SimpleEditor');
-            if (this.resize) {
-                YAHOO.log('Destroying Resize', 'warn', 'SimpleEditor');
-                this.resize.destroy();
-            }
-            if (this.dd) {
-                YAHOO.log('Unreg DragDrop Instance', 'warn', 'SimpleEditor');
-                this.dd.unreg();
-            }
-            if (this.get('panel')) {
-                YAHOO.log('Destroying Editor Panel', 'warn', 'SimpleEditor');
-                this.get('panel').destroy();
-            }
-            this.saveHTML();
-            this.toolbar.destroy();
-            YAHOO.log('Restoring TextArea', 'info', 'SimpleEditor');
-            this.setStyle('visibility', 'visible');
-            this.setStyle('position', 'static');
-            this.setStyle('top', '');
-            this.setStyle('left', '');
-            var textArea = this.get('element');
-            this.get('element_cont').get('parentNode').replaceChild(textArea, this.get('element_cont').get('element'));
-            this.get('element_cont').get('element').innerHTML = '';
-            this.set('handleSubmit', false); //Remove the submit handler
-            return true;
-        },        
-        /**
-        * @method toString
-        * @description Returns a string representing the editor.
-        * @return {String}
-        */
-        toString: function() {
-            var str = 'SimpleEditor';
-            if (this.get && this.get('element_cont')) {
-                str = 'SimpleEditor (#' + this.get('element_cont').get('id') + ')' + ((this.get('disabled') ? ' Disabled' : ''));
-            }
-            return str;
-        }
-    });
-
-/**
-* @event toolbarLoaded
-* @description Event is fired during the render process directly after the Toolbar is loaded. Allowing you to attach events to the toolbar. See <a href="YAHOO.util.Element.html#addListener">Element.addListener</a> for more information on listening for this event.
-* @type YAHOO.util.CustomEvent
-*/
-/**
-* @event cleanHTML
-* @description Event is fired after the cleanHTML method is called.
-* @type YAHOO.util.CustomEvent
-*/
-/**
-* @event afterRender
-* @description Event is fired after the render process finishes. See <a href="YAHOO.util.Element.html#addListener">Element.addListener</a> for more information on listening for this event.
-* @type YAHOO.util.CustomEvent
-*/
-/**
-* @event editorContentLoaded
-* @description Event is fired after the editor iframe's document fully loads and fires it's onload event. From here you can start injecting your own things into the document. See <a href="YAHOO.util.Element.html#addListener">Element.addListener</a> for more information on listening for this event.
-* @type YAHOO.util.CustomEvent
-*/
-/**
-* @event beforeNodeChange
-* @description Event fires at the beginning of the nodeChange process. See <a href="YAHOO.util.Element.html#addListener">Element.addListener</a> for more information on listening for this event.
-* @type YAHOO.util.CustomEvent
-*/
-/**
-* @event afterNodeChange
-* @description Event fires at the end of the nodeChange process. See <a href="YAHOO.util.Element.html#addListener">Element.addListener</a> for more information on listening for this event.
-* @type YAHOO.util.CustomEvent
-*/
-/**
-* @event beforeExecCommand
-* @description Event fires at the beginning of the execCommand process. See <a href="YAHOO.util.Element.html#addListener">Element.addListener</a> for more information on listening for this event.
-* @type YAHOO.util.CustomEvent
-*/
-/**
-* @event afterExecCommand
-* @description Event fires at the end of the execCommand process. See <a href="YAHOO.util.Element.html#addListener">Element.addListener</a> for more information on listening for this event.
-* @type YAHOO.util.CustomEvent
-*/
-/**
-* @event editorMouseUp
-* @param {Event} ev The DOM Event that occured
-* @description Passed through HTML Event. See <a href="YAHOO.util.Element.html#addListener">Element.addListener</a> for more information on listening for this event.
-* @type YAHOO.util.CustomEvent
-*/
-/**
-* @event editorMouseDown
-* @param {Event} ev The DOM Event that occured
-* @description Passed through HTML Event. See <a href="YAHOO.util.Element.html#addListener">Element.addListener</a> for more information on listening for this event.
-* @type YAHOO.util.CustomEvent
-*/
-/**
-* @event editorDoubleClick
-* @param {Event} ev The DOM Event that occured
-* @description Passed through HTML Event. See <a href="YAHOO.util.Element.html#addListener">Element.addListener</a> for more information on listening for this event.
-* @type YAHOO.util.CustomEvent
-*/
-/**
-* @event editorClick
-* @param {Event} ev The DOM Event that occured
-* @description Passed through HTML Event. See <a href="YAHOO.util.Element.html#addListener">Element.addListener</a> for more information on listening for this event.
-* @type YAHOO.util.CustomEvent
-*/
-/**
-* @event editorKeyUp
-* @param {Event} ev The DOM Event that occured
-* @description Passed through HTML Event. See <a href="YAHOO.util.Element.html#addListener">Element.addListener</a> for more information on listening for this event.
-* @type YAHOO.util.CustomEvent
-*/
-/**
-* @event editorKeyPress
-* @param {Event} ev The DOM Event that occured
-* @description Passed through HTML Event. See <a href="YAHOO.util.Element.html#addListener">Element.addListener</a> for more information on listening for this event.
-* @type YAHOO.util.CustomEvent
-*/
-/**
-* @event editorKeyDown
-* @param {Event} ev The DOM Event that occured
-* @description Passed through HTML Event. See <a href="YAHOO.util.Element.html#addListener">Element.addListener</a> for more information on listening for this event.
-* @type YAHOO.util.CustomEvent
-*/
-/**
-* @event beforeEditorMouseUp
-* @param {Event} ev The DOM Event that occured
-* @description Fires before editor event, returning false will stop the internal processing.
-* @type YAHOO.util.CustomEvent
-*/
-/**
-* @event beforeEditorMouseDown
-* @param {Event} ev The DOM Event that occured
-* @description Fires before editor event, returning false will stop the internal processing.
-* @type YAHOO.util.CustomEvent
-*/
-/**
-* @event beforeEditorDoubleClick
-* @param {Event} ev The DOM Event that occured
-* @description Fires before editor event, returning false will stop the internal processing.
-* @type YAHOO.util.CustomEvent
-*/
-/**
-* @event beforeEditorClick
-* @param {Event} ev The DOM Event that occured
-* @description Fires before editor event, returning false will stop the internal processing.
-* @type YAHOO.util.CustomEvent
-*/
-/**
-* @event beforeEditorKeyUp
-* @param {Event} ev The DOM Event that occured
-* @description Fires before editor event, returning false will stop the internal processing.
-* @type YAHOO.util.CustomEvent
-*/
-/**
-* @event beforeEditorKeyPress
-* @param {Event} ev The DOM Event that occured
-* @description Fires before editor event, returning false will stop the internal processing.
-* @type YAHOO.util.CustomEvent
-*/
-/**
-* @event beforeEditorKeyDown
-* @param {Event} ev The DOM Event that occured
-* @description Fires before editor event, returning false will stop the internal processing.
-* @type YAHOO.util.CustomEvent
-*/
-
-/**
-* @event editorWindowFocus
-* @description Fires when the iframe is focused. Note, this is window focus event, not an Editor focus event.
-* @type YAHOO.util.CustomEvent
-*/
-/**
-* @event editorWindowBlur
-* @description Fires when the iframe is blurred. Note, this is window blur event, not an Editor blur event.
-* @type YAHOO.util.CustomEvent
-*/
-
-
-/**
- * @description Singleton object used to track the open window objects and panels across the various open editors
- * @class EditorInfo
- * @static
-*/
-YAHOO.widget.EditorInfo = {
-    /**
-    * @private
-    * @property _instances
-    * @description A reference to all editors on the page.
-    * @type Object
-    */
-    _instances: {},
-    /**
-    * @private
-    * @property blankImage
-    * @description A reference to the blankImage url
-    * @type String 
-    */
-    blankImage: '',
-    /**
-    * @private
-    * @property window
-    * @description A reference to the currently open window object in any editor on the page.
-    * @type Object <a href="YAHOO.widget.EditorWindow.html">YAHOO.widget.EditorWindow</a>
-    */
-    window: {},
-    /**
-    * @private
-    * @property panel
-    * @description A reference to the currently open panel in any editor on the page.
-    * @type Object <a href="YAHOO.widget.Overlay.html">YAHOO.widget.Overlay</a>
-    */
-    panel: null,
-    /**
-    * @method getEditorById
-    * @description Returns a reference to the Editor object associated with the given textarea
-    * @param {String/HTMLElement} id The id or reference of the textarea to return the Editor instance of
-    * @return Object <a href="YAHOO.widget.Editor.html">YAHOO.widget.Editor</a>
-    */
-    getEditorById: function(id) {
-        if (!YAHOO.lang.isString(id)) {
-            //Not a string, assume a node Reference
-            id = id.id;
-        }
-        if (this._instances[id]) {
-            return this._instances[id];
-        }
-        return false;
-    },
-    /**
-    * @method saveAll
-    * @description Saves all Editor instances on the page. If a form reference is passed, only Editor's bound to this form will be saved.
-    * @param {HTMLElement} form The form to check if this Editor instance belongs to
-    */
-    saveAll: function(form) {
-        var i, e, items = YAHOO.widget.EditorInfo._instances;
-        if (form) {
-            for (i in items) {
-                if (Lang.hasOwnProperty(items, i)) {
-                    e = items[i];
-                    if (e.get('element').form && (e.get('element').form == form)) {
-                        e.saveHTML();
-                    }
-                }
-            }
-        } else {
-            for (i in items) {
-                if (Lang.hasOwnProperty(items, i)) {
-                    items[i].saveHTML();
-                }
-            }
-        }
-    },
-    /**
-    * @method toString
-    * @description Returns a string representing the EditorInfo.
-    * @return {String}
-    */
-    toString: function() {
-        var len = 0;
-        for (var i in this._instances) {
-            if (Lang.hasOwnProperty(this._instances, i)) {
-                len++;
-            }
-        }
-        return 'Editor Info (' + len + ' registered intance' + ((len > 1) ? 's' : '') + ')';
-    }
-};
-
-
-
-    
-})();
-YAHOO.register("simpleeditor", YAHOO.widget.SimpleEditor, {version: "2.8.0r4", build: "2449"});
diff --git a/koha-tmpl/intranet-tmpl/prog/en/lib/yui/editor/simpleeditor-min.js b/koha-tmpl/intranet-tmpl/prog/en/lib/yui/editor/simpleeditor-min.js
deleted file mode 100644 (file)
index 859c78e..0000000
+++ /dev/null
@@ -1,24 +0,0 @@
-/*
-Copyright (c) 2009, Yahoo! Inc. All rights reserved.
-Code licensed under the BSD License:
-http://developer.yahoo.net/yui/license.txt
-version: 2.8.0r4
-*/
-(function(){var B=YAHOO.util.Dom,A=YAHOO.util.Event,C=YAHOO.lang;if(YAHOO.widget.Button){YAHOO.widget.ToolbarButtonAdvanced=YAHOO.widget.Button;YAHOO.widget.ToolbarButtonAdvanced.prototype.buttonType="rich";YAHOO.widget.ToolbarButtonAdvanced.prototype.checkValue=function(F){var E=this.getMenu().getItems();if(E.length===0){this.getMenu()._onBeforeShow();E=this.getMenu().getItems();}for(var D=0;D<E.length;D++){E[D].cfg.setProperty("checked",false);if(E[D].value==F){E[D].cfg.setProperty("checked",true);}}};}else{YAHOO.widget.ToolbarButtonAdvanced=function(){};}YAHOO.widget.ToolbarButton=function(E,D){if(C.isObject(arguments[0])&&!B.get(E).nodeType){D=E;}var G=(D||{});var F={element:null,attributes:G};if(!F.attributes.type){F.attributes.type="push";}F.element=document.createElement("span");F.element.setAttribute("unselectable","on");F.element.className="yui-button yui-"+F.attributes.type+"-button";F.element.innerHTML='<span class="first-child"><a href="#">LABEL</a></span>';F.element.firstChild.firstChild.tabIndex="-1";F.attributes.id=(F.attributes.id||B.generateId());F.element.id=F.attributes.id;YAHOO.widget.ToolbarButton.superclass.constructor.call(this,F.element,F.attributes);};YAHOO.extend(YAHOO.widget.ToolbarButton,YAHOO.util.Element,{buttonType:"normal",_handleMouseOver:function(){if(!this.get("disabled")){this.addClass("yui-button-hover");this.addClass("yui-"+this.get("type")+"-button-hover");}},_handleMouseOut:function(){this.removeClass("yui-button-hover");this.removeClass("yui-"+this.get("type")+"-button-hover");},checkValue:function(F){if(this.get("type")=="menu"){var E=this._button.options;for(var D=0;D<E.length;D++){if(E[D].value==F){E.selectedIndex=D;}}}},init:function(E,D){YAHOO.widget.ToolbarButton.superclass.init.call(this,E,D);this.on("mouseover",this._handleMouseOver,this,true);this.on("mouseout",this._handleMouseOut,this,true);this.on("click",function(F){A.stopEvent(F);return false;},this,true);},initAttributes:function(D){YAHOO.widget.ToolbarButton.superclass.initAttributes.call(this,D);this.setAttributeConfig("value",{value:D.value});this.setAttributeConfig("menu",{value:D.menu||false});this.setAttributeConfig("type",{value:D.type,writeOnce:true,method:function(H){var G,F;if(!this._button){this._button=this.get("element").getElementsByTagName("a")[0];}switch(H){case"select":case"menu":G=document.createElement("select");G.id=this.get("id");var I=this.get("menu");for(var E=0;E<I.length;E++){F=document.createElement("option");F.innerHTML=I[E].text;F.value=I[E].value;if(I[E].checked){F.selected=true;}G.appendChild(F);}this._button.parentNode.replaceChild(G,this._button);A.on(G,"change",this._handleSelect,this,true);this._button=G;break;}}});this.setAttributeConfig("disabled",{value:D.disabled||false,method:function(E){if(E){this.addClass("yui-button-disabled");this.addClass("yui-"+this.get("type")+"-button-disabled");}else{this.removeClass("yui-button-disabled");this.removeClass("yui-"+this.get("type")+"-button-disabled");}if((this.get("type")=="menu")||(this.get("type")=="select")){this._button.disabled=E;}}});this.setAttributeConfig("label",{value:D.label,method:function(E){if(!this._button){this._button=this.get("element").getElementsByTagName("a")[0];}if(this.get("type")=="push"){this._button.innerHTML=E;}}});this.setAttributeConfig("title",{value:D.title});this.setAttributeConfig("container",{value:null,writeOnce:true,method:function(E){this.appendTo(E);}});},_handleSelect:function(E){var D=A.getTarget(E);var F=D.options[D.selectedIndex].value;this.fireEvent("change",{type:"change",value:F});},getMenu:function(){return this.get("menu");},destroy:function(){A.purgeElement(this.get("element"),true);this.get("element").parentNode.removeChild(this.get("element"));for(var D in this){if(C.hasOwnProperty(this,D)){this[D]=null;}}},fireEvent:function(E,D){if(this.DOM_EVENTS[E]&&this.get("disabled")){A.stopEvent(D);return;}YAHOO.widget.ToolbarButton.superclass.fireEvent.call(this,E,D);},toString:function(){return"ToolbarButton ("+this.get("id")+")";}});})();(function(){var C=YAHOO.util.Dom,A=YAHOO.util.Event,D=YAHOO.lang;var B=function(F){var E=F;if(D.isString(F)){E=this.getButtonById(F);}if(D.isNumber(F)){E=this.getButtonByIndex(F);}if((!(E instanceof YAHOO.widget.ToolbarButton))&&(!(E instanceof YAHOO.widget.ToolbarButtonAdvanced))){E=this.getButtonByValue(F);}if((E instanceof YAHOO.widget.ToolbarButton)||(E instanceof YAHOO.widget.ToolbarButtonAdvanced)){return E;}return false;};YAHOO.widget.Toolbar=function(I,H){if(D.isObject(arguments[0])&&!C.get(I).nodeType){H=I;}var K={};if(H){D.augmentObject(K,H);}var J={element:null,attributes:K};if(D.isString(I)&&C.get(I)){J.element=C.get(I);}else{if(D.isObject(I)&&C.get(I)&&C.get(I).nodeType){J.element=C.get(I);}}if(!J.element){J.element=document.createElement("DIV");J.element.id=C.generateId();if(K.container&&C.get(K.container)){C.get(K.container).appendChild(J.element);}}if(!J.element.id){J.element.id=((D.isString(I))?I:C.generateId());}var F=document.createElement("fieldset");var G=document.createElement("legend");G.innerHTML="Toolbar";F.appendChild(G);var E=document.createElement("DIV");J.attributes.cont=E;C.addClass(E,"yui-toolbar-subcont");F.appendChild(E);J.element.appendChild(F);J.element.tabIndex=-1;J.attributes.element=J.element;J.attributes.id=J.element.id;this._configuredButtons=[];YAHOO.widget.Toolbar.superclass.constructor.call(this,J.element,J.attributes);};YAHOO.extend(YAHOO.widget.Toolbar,YAHOO.util.Element,{_configuredButtons:null,_addMenuClasses:function(H,E,I){C.addClass(this.element,"yui-toolbar-"+I.get("value")+"-menu");if(C.hasClass(I._button.parentNode.parentNode,"yui-toolbar-select")){C.addClass(this.element,"yui-toolbar-select-menu");}var F=this.getItems();for(var G=0;G<F.length;G++){C.addClass(F[G].element,"yui-toolbar-"+I.get("value")+"-"+((F[G].value)?F[G].value.replace(/ /g,"-").toLowerCase():F[G]._oText.nodeValue.replace(/ /g,"-").toLowerCase()));C.addClass(F[G].element,"yui-toolbar-"+I.get("value")+"-"+((F[G].value)?F[G].value.replace(/ /g,"-"):F[G]._oText.nodeValue.replace(/ /g,"-")));
-}},buttonType:YAHOO.widget.ToolbarButton,dd:null,_colorData:{"#111111":"Obsidian","#2D2D2D":"Dark Gray","#434343":"Shale","#5B5B5B":"Flint","#737373":"Gray","#8B8B8B":"Concrete","#A2A2A2":"Gray","#B9B9B9":"Titanium","#000000":"Black","#D0D0D0":"Light Gray","#E6E6E6":"Silver","#FFFFFF":"White","#BFBF00":"Pumpkin","#FFFF00":"Yellow","#FFFF40":"Banana","#FFFF80":"Pale Yellow","#FFFFBF":"Butter","#525330":"Raw Siena","#898A49":"Mildew","#AEA945":"Olive","#7F7F00":"Paprika","#C3BE71":"Earth","#E0DCAA":"Khaki","#FCFAE1":"Cream","#60BF00":"Cactus","#80FF00":"Chartreuse","#A0FF40":"Green","#C0FF80":"Pale Lime","#DFFFBF":"Light Mint","#3B5738":"Green","#668F5A":"Lime Gray","#7F9757":"Yellow","#407F00":"Clover","#8A9B55":"Pistachio","#B7C296":"Light Jade","#E6EBD5":"Breakwater","#00BF00":"Spring Frost","#00FF80":"Pastel Green","#40FFA0":"Light Emerald","#80FFC0":"Sea Foam","#BFFFDF":"Sea Mist","#033D21":"Dark Forrest","#438059":"Moss","#7FA37C":"Medium Green","#007F40":"Pine","#8DAE94":"Yellow Gray Green","#ACC6B5":"Aqua Lung","#DDEBE2":"Sea Vapor","#00BFBF":"Fog","#00FFFF":"Cyan","#40FFFF":"Turquoise Blue","#80FFFF":"Light Aqua","#BFFFFF":"Pale Cyan","#033D3D":"Dark Teal","#347D7E":"Gray Turquoise","#609A9F":"Green Blue","#007F7F":"Seaweed","#96BDC4":"Green Gray","#B5D1D7":"Soapstone","#E2F1F4":"Light Turquoise","#0060BF":"Summer Sky","#0080FF":"Sky Blue","#40A0FF":"Electric Blue","#80C0FF":"Light Azure","#BFDFFF":"Ice Blue","#1B2C48":"Navy","#385376":"Biscay","#57708F":"Dusty Blue","#00407F":"Sea Blue","#7792AC":"Sky Blue Gray","#A8BED1":"Morning Sky","#DEEBF6":"Vapor","#0000BF":"Deep Blue","#0000FF":"Blue","#4040FF":"Cerulean Blue","#8080FF":"Evening Blue","#BFBFFF":"Light Blue","#212143":"Deep Indigo","#373E68":"Sea Blue","#444F75":"Night Blue","#00007F":"Indigo Blue","#585E82":"Dockside","#8687A4":"Blue Gray","#D2D1E1":"Light Blue Gray","#6000BF":"Neon Violet","#8000FF":"Blue Violet","#A040FF":"Violet Purple","#C080FF":"Violet Dusk","#DFBFFF":"Pale Lavender","#302449":"Cool Shale","#54466F":"Dark Indigo","#655A7F":"Dark Violet","#40007F":"Violet","#726284":"Smoky Violet","#9E8FA9":"Slate Gray","#DCD1DF":"Violet White","#BF00BF":"Royal Violet","#FF00FF":"Fuchsia","#FF40FF":"Magenta","#FF80FF":"Orchid","#FFBFFF":"Pale Magenta","#4A234A":"Dark Purple","#794A72":"Medium Purple","#936386":"Cool Granite","#7F007F":"Purple","#9D7292":"Purple Moon","#C0A0B6":"Pale Purple","#ECDAE5":"Pink Cloud","#BF005F":"Hot Pink","#FF007F":"Deep Pink","#FF409F":"Grape","#FF80BF":"Electric Pink","#FFBFDF":"Pink","#451528":"Purple Red","#823857":"Purple Dino","#A94A76":"Purple Gray","#7F003F":"Rose","#BC6F95":"Antique Mauve","#D8A5BB":"Cool Marble","#F7DDE9":"Pink Granite","#C00000":"Apple","#FF0000":"Fire Truck","#FF4040":"Pale Red","#FF8080":"Salmon","#FFC0C0":"Warm Pink","#441415":"Sepia","#82393C":"Rust","#AA4D4E":"Brick","#800000":"Brick Red","#BC6E6E":"Mauve","#D8A3A4":"Shrimp Pink","#F8DDDD":"Shell Pink","#BF5F00":"Dark Orange","#FF7F00":"Orange","#FF9F40":"Grapefruit","#FFBF80":"Canteloupe","#FFDFBF":"Wax","#482C1B":"Dark Brick","#855A40":"Dirt","#B27C51":"Tan","#7F3F00":"Nutmeg","#C49B71":"Mustard","#E1C4A8":"Pale Tan","#FDEEE0":"Marble"},_colorPicker:null,STR_COLLAPSE:"Collapse Toolbar",STR_EXPAND:"Expand Toolbar",STR_SPIN_LABEL:"Spin Button with value {VALUE}. Use Control Shift Up Arrow and Control Shift Down arrow keys to increase or decrease the value.",STR_SPIN_UP:"Click to increase the value of this input",STR_SPIN_DOWN:"Click to decrease the value of this input",_titlebar:null,browser:YAHOO.env.ua,_buttonList:null,_buttonGroupList:null,_sep:null,_sepCount:null,_dragHandle:null,_toolbarConfigs:{renderer:true},CLASS_CONTAINER:"yui-toolbar-container",CLASS_DRAGHANDLE:"yui-toolbar-draghandle",CLASS_SEPARATOR:"yui-toolbar-separator",CLASS_DISABLED:"yui-toolbar-disabled",CLASS_PREFIX:"yui-toolbar",init:function(F,E){YAHOO.widget.Toolbar.superclass.init.call(this,F,E);},initAttributes:function(E){YAHOO.widget.Toolbar.superclass.initAttributes.call(this,E);this.addClass(this.CLASS_CONTAINER);this.setAttributeConfig("buttonType",{value:E.buttonType||"basic",writeOnce:true,validator:function(F){switch(F){case"advanced":case"basic":return true;}return false;},method:function(F){if(F=="advanced"){if(YAHOO.widget.Button){this.buttonType=YAHOO.widget.ToolbarButtonAdvanced;}else{this.buttonType=YAHOO.widget.ToolbarButton;}}else{this.buttonType=YAHOO.widget.ToolbarButton;}}});this.setAttributeConfig("buttons",{value:[],writeOnce:true,method:function(K){var I,H,J,G,F;for(I in K){if(D.hasOwnProperty(K,I)){if(K[I].type=="separator"){this.addSeparator();}else{if(K[I].group!==undefined){J=this.addButtonGroup(K[I]);if(J){G=J.length;for(F=0;F<G;F++){if(J[F]){this._configuredButtons[this._configuredButtons.length]=J[F].id;}}}}else{H=this.addButton(K[I]);if(H){this._configuredButtons[this._configuredButtons.length]=H.id;}}}}}}});this.setAttributeConfig("disabled",{value:false,method:function(F){if(this.get("disabled")===F){return false;}if(F){this.addClass(this.CLASS_DISABLED);this.set("draggable",false);this.disableAllButtons();}else{this.removeClass(this.CLASS_DISABLED);if(this._configs.draggable._initialConfig.value){this.set("draggable",true);}this.resetAllButtons();}}});this.setAttributeConfig("cont",{value:E.cont,readOnly:true});this.setAttributeConfig("grouplabels",{value:((E.grouplabels===false)?false:true),method:function(F){if(F){C.removeClass(this.get("cont"),(this.CLASS_PREFIX+"-nogrouplabels"));}else{C.addClass(this.get("cont"),(this.CLASS_PREFIX+"-nogrouplabels"));}}});this.setAttributeConfig("titlebar",{value:false,method:function(G){if(G){if(this._titlebar&&this._titlebar.parentNode){this._titlebar.parentNode.removeChild(this._titlebar);}this._titlebar=document.createElement("DIV");this._titlebar.tabIndex="-1";A.on(this._titlebar,"focus",function(){this._handleFocus();},this,true);C.addClass(this._titlebar,this.CLASS_PREFIX+"-titlebar");if(D.isString(G)){var F=document.createElement("h2");F.tabIndex="-1";F.innerHTML='<a href="#" tabIndex="0">'+G+"</a>";
-this._titlebar.appendChild(F);A.on(F.firstChild,"click",function(H){A.stopEvent(H);});A.on([F,F.firstChild],"focus",function(){this._handleFocus();},this,true);}if(this.get("firstChild")){this.insertBefore(this._titlebar,this.get("firstChild"));}else{this.appendChild(this._titlebar);}if(this.get("collapse")){this.set("collapse",true);}}else{if(this._titlebar){if(this._titlebar&&this._titlebar.parentNode){this._titlebar.parentNode.removeChild(this._titlebar);}}}}});this.setAttributeConfig("collapse",{value:false,method:function(H){if(this._titlebar){var G=null;var F=C.getElementsByClassName("collapse","span",this._titlebar);if(H){if(F.length>0){return true;}G=document.createElement("SPAN");G.innerHTML="X";G.title=this.STR_COLLAPSE;C.addClass(G,"collapse");this._titlebar.appendChild(G);A.addListener(G,"click",function(){if(C.hasClass(this.get("cont").parentNode,"yui-toolbar-container-collapsed")){this.collapse(false);}else{this.collapse();}},this,true);}else{G=C.getElementsByClassName("collapse","span",this._titlebar);if(G[0]){if(C.hasClass(this.get("cont").parentNode,"yui-toolbar-container-collapsed")){this.collapse(false);}G[0].parentNode.removeChild(G[0]);}}}}});this.setAttributeConfig("draggable",{value:(E.draggable||false),method:function(F){if(F&&!this.get("titlebar")){if(!this._dragHandle){this._dragHandle=document.createElement("SPAN");this._dragHandle.innerHTML="|";this._dragHandle.setAttribute("title","Click to drag the toolbar");this._dragHandle.id=this.get("id")+"_draghandle";C.addClass(this._dragHandle,this.CLASS_DRAGHANDLE);if(this.get("cont").hasChildNodes()){this.get("cont").insertBefore(this._dragHandle,this.get("cont").firstChild);}else{this.get("cont").appendChild(this._dragHandle);}this.dd=new YAHOO.util.DD(this.get("id"));this.dd.setHandleElId(this._dragHandle.id);}}else{if(this._dragHandle){this._dragHandle.parentNode.removeChild(this._dragHandle);this._dragHandle=null;this.dd=null;}}if(this._titlebar){if(F){this.dd=new YAHOO.util.DD(this.get("id"));this.dd.setHandleElId(this._titlebar);C.addClass(this._titlebar,"draggable");}else{C.removeClass(this._titlebar,"draggable");if(this.dd){this.dd.unreg();this.dd=null;}}}},validator:function(G){var F=true;if(!YAHOO.util.DD){F=false;}return F;}});},addButtonGroup:function(J){if(!this.get("element")){this._queue[this._queue.length]=["addButtonGroup",arguments];return false;}if(!this.hasClass(this.CLASS_PREFIX+"-grouped")){this.addClass(this.CLASS_PREFIX+"-grouped");}var L=document.createElement("DIV");C.addClass(L,this.CLASS_PREFIX+"-group");C.addClass(L,this.CLASS_PREFIX+"-group-"+J.group);if(J.label){var F=document.createElement("h3");F.innerHTML=J.label;L.appendChild(F);}if(!this.get("grouplabels")){C.addClass(this.get("cont"),this.CLASS_PREFIX,"-nogrouplabels");}this.get("cont").appendChild(L);var I=document.createElement("ul");L.appendChild(I);if(!this._buttonGroupList){this._buttonGroupList={};}this._buttonGroupList[J.group]=I;var K=[],H;for(var G=0;G<J.buttons.length;G++){var E=document.createElement("li");E.className=this.CLASS_PREFIX+"-groupitem";I.appendChild(E);if((J.buttons[G].type!==undefined)&&J.buttons[G].type=="separator"){this.addSeparator(E);}else{J.buttons[G].container=E;H=this.addButton(J.buttons[G]);if(H){K[K.length]=H.id;}}}return K;},addButtonToGroup:function(G,H,I){var F=this._buttonGroupList[H],E=document.createElement("li");E.className=this.CLASS_PREFIX+"-groupitem";G.container=E;this.addButton(G,I);F.appendChild(E);},addButton:function(J,I){if(!this.get("element")){this._queue[this._queue.length]=["addButton",arguments];return false;}if(!this._buttonList){this._buttonList=[];}if(!J.container){J.container=this.get("cont");}if((J.type=="menu")||(J.type=="split")||(J.type=="select")){if(D.isArray(J.menu)){for(var P in J.menu){if(D.hasOwnProperty(J.menu,P)){var V={fn:function(Y,W,X){if(!J.menucmd){J.menucmd=J.value;}J.value=((X.value)?X.value:X._oText.nodeValue);},scope:this};J.menu[P].onclick=V;}}}}var Q={},N=false;for(var L in J){if(D.hasOwnProperty(J,L)){if(!this._toolbarConfigs[L]){Q[L]=J[L];}}}if(J.type=="select"){Q.type="menu";}if(J.type=="spin"){Q.type="push";}if(Q.type=="color"){if(YAHOO.widget.Overlay){Q=this._makeColorButton(Q);}else{N=true;}}if(Q.menu){if((YAHOO.widget.Overlay)&&(J.menu instanceof YAHOO.widget.Overlay)){J.menu.showEvent.subscribe(function(){this._button=Q;});}else{for(var O=0;O<Q.menu.length;O++){if(!Q.menu[O].value){Q.menu[O].value=Q.menu[O].text;}}if(this.browser.webkit){Q.focusmenu=false;}}}if(N){J=false;}else{this._configs.buttons.value[this._configs.buttons.value.length]=J;var T=new this.buttonType(Q);T.get("element").tabIndex="-1";T.get("element").setAttribute("role","button");T._selected=true;if(this.get("disabled")){T.set("disabled",true);}if(!J.id){J.id=T.get("id");}if(I){var F=T.get("element");var M=null;if(I.get){M=I.get("element").nextSibling;}else{if(I.nextSibling){M=I.nextSibling;}}if(M){M.parentNode.insertBefore(F,M);}}T.addClass(this.CLASS_PREFIX+"-"+T.get("value"));var S=document.createElement("span");S.className=this.CLASS_PREFIX+"-icon";T.get("element").insertBefore(S,T.get("firstChild"));if(T._button.tagName.toLowerCase()=="button"){T.get("element").setAttribute("unselectable","on");var U=document.createElement("a");U.innerHTML=T._button.innerHTML;U.href="#";U.tabIndex="-1";A.on(U,"click",function(W){A.stopEvent(W);});T._button.parentNode.replaceChild(U,T._button);T._button=U;}if(J.type=="select"){if(T._button.tagName.toLowerCase()=="select"){S.parentNode.removeChild(S);var G=T._button,R=T.get("element");R.parentNode.replaceChild(G,R);T._configs.element.value=G;}else{T.addClass(this.CLASS_PREFIX+"-select");}}if(J.type=="spin"){if(!D.isArray(J.range)){J.range=[10,100];}this._makeSpinButton(T,J);}T.get("element").setAttribute("title",T.get("label"));if(J.type!="spin"){if((YAHOO.widget.Overlay)&&(Q.menu instanceof YAHOO.widget.Overlay)){var H=function(Y){var W=true;if(Y.keyCode&&(Y.keyCode==9)){W=false;}if(W){if(this._colorPicker){this._colorPicker._button=J.value;
-}var X=T.getMenu().element;if(C.getStyle(X,"visibility")=="hidden"){T.getMenu().show();}else{T.getMenu().hide();}}YAHOO.util.Event.stopEvent(Y);};T.on("mousedown",H,J,this);T.on("keydown",H,J,this);}else{if((J.type!="menu")&&(J.type!="select")){T.on("keypress",this._buttonClick,J,this);T.on("mousedown",function(W){YAHOO.util.Event.stopEvent(W);this._buttonClick(W,J);},J,this);T.on("click",function(W){YAHOO.util.Event.stopEvent(W);});}else{T.on("mousedown",function(W){YAHOO.util.Event.stopEvent(W);});T.on("click",function(W){YAHOO.util.Event.stopEvent(W);});T.on("change",function(W){if(!W.target){if(!J.menucmd){J.menucmd=J.value;}J.value=W.value;this._buttonClick(W,J);}},this,true);var K=this;T.on("appendTo",function(){var W=this;if(W.getMenu()&&W.getMenu().mouseDownEvent){W.getMenu().mouseDownEvent.subscribe(function(Z,Y){var X=Y[1];YAHOO.util.Event.stopEvent(Y[0]);W._onMenuClick(Y[0],W);if(!J.menucmd){J.menucmd=J.value;}J.value=((X.value)?X.value:X._oText.nodeValue);K._buttonClick.call(K,Y[1],J);W._hideMenu();return false;});W.getMenu().clickEvent.subscribe(function(Y,X){YAHOO.util.Event.stopEvent(X[0]);});W.getMenu().mouseUpEvent.subscribe(function(Y,X){YAHOO.util.Event.stopEvent(X[0]);});}});}}}else{T.on("mousedown",function(W){YAHOO.util.Event.stopEvent(W);});T.on("click",function(W){YAHOO.util.Event.stopEvent(W);});}if(this.browser.ie){}if(this.browser.webkit){T.hasFocus=function(){return true;};}this._buttonList[this._buttonList.length]=T;if((J.type=="menu")||(J.type=="split")||(J.type=="select")){if(D.isArray(J.menu)){var E=T.getMenu();if(E&&E.renderEvent){E.renderEvent.subscribe(this._addMenuClasses,T);if(J.renderer){E.renderEvent.subscribe(J.renderer,T);}}}}}return J;},addSeparator:function(E,H){if(!this.get("element")){this._queue[this._queue.length]=["addSeparator",arguments];return false;}var F=((E)?E:this.get("cont"));if(!this.get("element")){this._queue[this._queue.length]=["addSeparator",arguments];return false;}if(this._sepCount===null){this._sepCount=0;}if(!this._sep){this._sep=document.createElement("SPAN");C.addClass(this._sep,this.CLASS_SEPARATOR);this._sep.innerHTML="|";}var G=this._sep.cloneNode(true);this._sepCount++;C.addClass(G,this.CLASS_SEPARATOR+"-"+this._sepCount);if(H){var I=null;if(H.get){I=H.get("element").nextSibling;}else{if(H.nextSibling){I=H.nextSibling;}else{I=H;}}if(I){if(I==H){I.parentNode.appendChild(G);}else{I.parentNode.insertBefore(G,I);}}}else{F.appendChild(G);}return G;},_createColorPicker:function(H){if(C.get(H+"_colors")){C.get(H+"_colors").parentNode.removeChild(C.get(H+"_colors"));}var E=document.createElement("div");E.className="yui-toolbar-colors";E.id=H+"_colors";E.style.display="none";A.on(window,"load",function(){document.body.appendChild(E);},this,true);this._colorPicker=E;var G="";for(var F in this._colorData){if(D.hasOwnProperty(this._colorData,F)){G+='<a style="background-color: '+F+'" href="#">'+F.replace("#","")+"</a>";}}G+="<span><em>X</em><strong></strong></span>";window.setTimeout(function(){E.innerHTML=G;},0);A.on(E,"mouseover",function(M){var K=this._colorPicker;var L=K.getElementsByTagName("em")[0];var J=K.getElementsByTagName("strong")[0];var I=A.getTarget(M);if(I.tagName.toLowerCase()=="a"){L.style.backgroundColor=I.style.backgroundColor;J.innerHTML=this._colorData["#"+I.innerHTML]+"<br>"+I.innerHTML;}},this,true);A.on(E,"focus",function(I){A.stopEvent(I);});A.on(E,"click",function(I){A.stopEvent(I);});A.on(E,"mousedown",function(J){A.stopEvent(J);var I=A.getTarget(J);if(I.tagName.toLowerCase()=="a"){var L=this.fireEvent("colorPickerClicked",{type:"colorPickerClicked",target:this,button:this._colorPicker._button,color:I.innerHTML,colorName:this._colorData["#"+I.innerHTML]});if(L!==false){var K={color:I.innerHTML,colorName:this._colorData["#"+I.innerHTML],value:this._colorPicker._button};this.fireEvent("buttonClick",{type:"buttonClick",target:this.get("element"),button:K});}this.getButtonByValue(this._colorPicker._button).getMenu().hide();}},this,true);},_resetColorPicker:function(){var F=this._colorPicker.getElementsByTagName("em")[0];var E=this._colorPicker.getElementsByTagName("strong")[0];F.style.backgroundColor="transparent";E.innerHTML="";},_makeColorButton:function(E){if(!this._colorPicker){this._createColorPicker(this.get("id"));}E.type="color";E.menu=new YAHOO.widget.Overlay(this.get("id")+"_"+E.value+"_menu",{visible:false,position:"absolute",iframe:true});E.menu.setBody("");E.menu.render(this.get("cont"));C.addClass(E.menu.element,"yui-button-menu");C.addClass(E.menu.element,"yui-color-button-menu");E.menu.beforeShowEvent.subscribe(function(){E.menu.cfg.setProperty("zindex",5);E.menu.cfg.setProperty("context",[this.getButtonById(E.id).get("element"),"tl","bl"]);this._resetColorPicker();var F=this._colorPicker;if(F.parentNode){F.parentNode.removeChild(F);}E.menu.setBody("");E.menu.appendToBody(F);this._colorPicker.style.display="block";},this,true);return E;},_makeSpinButton:function(R,L){R.addClass(this.CLASS_PREFIX+"-spinbutton");var S=this,N=R._button.parentNode.parentNode,I=L.range,H=document.createElement("a"),G=document.createElement("a");H.href="#";G.href="#";H.tabIndex="-1";G.tabIndex="-1";H.className="up";H.title=this.STR_SPIN_UP;H.innerHTML=this.STR_SPIN_UP;G.className="down";G.title=this.STR_SPIN_DOWN;G.innerHTML=this.STR_SPIN_DOWN;N.appendChild(H);N.appendChild(G);var M=YAHOO.lang.substitute(this.STR_SPIN_LABEL,{VALUE:R.get("label")});R.set("title",M);var Q=function(T){T=((T<I[0])?I[0]:T);T=((T>I[1])?I[1]:T);return T;};var P=this.browser;var F=false;var K=this.STR_SPIN_LABEL;if(this._titlebar&&this._titlebar.firstChild){F=this._titlebar.firstChild;}var E=function(U){YAHOO.util.Event.stopEvent(U);if(!R.get("disabled")&&(U.keyCode!=9)){var V=parseInt(R.get("label"),10);V++;V=Q(V);R.set("label",""+V);var T=YAHOO.lang.substitute(K,{VALUE:R.get("label")});R.set("title",T);if(!P.webkit&&F){}S._buttonClick(U,L);}};var O=function(U){YAHOO.util.Event.stopEvent(U);if(!R.get("disabled")&&(U.keyCode!=9)){var V=parseInt(R.get("label"),10);
-V--;V=Q(V);R.set("label",""+V);var T=YAHOO.lang.substitute(K,{VALUE:R.get("label")});R.set("title",T);if(!P.webkit&&F){}S._buttonClick(U,L);}};var J=function(T){if(T.keyCode==38){E(T);}else{if(T.keyCode==40){O(T);}else{if(T.keyCode==107&&T.shiftKey){E(T);}else{if(T.keyCode==109&&T.shiftKey){O(T);}}}}};R.on("keydown",J,this,true);A.on(H,"mousedown",function(T){A.stopEvent(T);},this,true);A.on(G,"mousedown",function(T){A.stopEvent(T);},this,true);A.on(H,"click",E,this,true);A.on(G,"click",O,this,true);},_buttonClick:function(L,F){var E=true;if(L&&L.type=="keypress"){if(L.keyCode==9){E=false;}else{if((L.keyCode===13)||(L.keyCode===0)||(L.keyCode===32)){}else{E=false;}}}if(E){var N=true,H=false;F.isSelected=this.isSelected(F.id);if(F.value){H=this.fireEvent(F.value+"Click",{type:F.value+"Click",target:this.get("element"),button:F});if(H===false){N=false;}}if(F.menucmd&&N){H=this.fireEvent(F.menucmd+"Click",{type:F.menucmd+"Click",target:this.get("element"),button:F});if(H===false){N=false;}}if(N){this.fireEvent("buttonClick",{type:"buttonClick",target:this.get("element"),button:F});}if(F.type=="select"){var K=this.getButtonById(F.id);if(K.buttonType=="rich"){var J=F.value;for(var I=0;I<F.menu.length;I++){if(F.menu[I].value==F.value){J=F.menu[I].text;break;}}K.set("label",'<span class="yui-toolbar-'+F.menucmd+"-"+(F.value).replace(/ /g,"-").toLowerCase()+'">'+J+"</span>");var M=K.getMenu().getItems();for(var G=0;G<M.length;G++){if(M[G].value.toLowerCase()==F.value.toLowerCase()){M[G].cfg.setProperty("checked",true);}else{M[G].cfg.setProperty("checked",false);}}}}if(L){A.stopEvent(L);}}},_keyNav:null,_navCounter:null,_navigateButtons:function(F){switch(F.keyCode){case 37:case 39:if(F.keyCode==37){this._navCounter--;}else{this._navCounter++;}if(this._navCounter>(this._buttonList.length-1)){this._navCounter=0;}if(this._navCounter<0){this._navCounter=(this._buttonList.length-1);}if(this._buttonList[this._navCounter]){var E=this._buttonList[this._navCounter].get("element");if(this.browser.ie){E=this._buttonList[this._navCounter].get("element").getElementsByTagName("a")[0];}if(this._buttonList[this._navCounter].get("disabled")){this._navigateButtons(F);}else{E.focus();}}break;}},_handleFocus:function(){if(!this._keyNav){var E="keypress";if(this.browser.ie){E="keydown";}A.on(this.get("element"),E,this._navigateButtons,this,true);this._keyNav=true;this._navCounter=-1;}},getButtonById:function(G){var E=this._buttonList.length;for(var F=0;F<E;F++){if(this._buttonList[F]&&this._buttonList[F].get("id")==G){return this._buttonList[F];}}return false;},getButtonByValue:function(K){var H=this.get("buttons");if(!H){return false;}var F=H.length;for(var I=0;I<F;I++){if(H[I].group!==undefined){for(var E=0;E<H[I].buttons.length;E++){if((H[I].buttons[E].value==K)||(H[I].buttons[E].menucmd==K)){return this.getButtonById(H[I].buttons[E].id);}if(H[I].buttons[E].menu){for(var J=0;J<H[I].buttons[E].menu.length;J++){if(H[I].buttons[E].menu[J].value==K){return this.getButtonById(H[I].buttons[E].id);}}}}}else{if((H[I].value==K)||(H[I].menucmd==K)){return this.getButtonById(H[I].id);}if(H[I].menu){for(var G=0;G<H[I].menu.length;G++){if(H[I].menu[G].value==K){return this.getButtonById(H[I].id);}}}}}return false;},getButtonByIndex:function(E){if(this._buttonList[E]){return this._buttonList[E];}else{return false;}},getButtons:function(){return this._buttonList;},disableButton:function(F){var E=B.call(this,F);if(E){E.set("disabled",true);}else{return false;}},enableButton:function(F){if(this.get("disabled")){return false;}var E=B.call(this,F);if(E){if(E.get("disabled")){E.set("disabled",false);}}else{return false;}},isSelected:function(F){var E=B.call(this,F);if(E){return E._selected;}return false;},selectButton:function(I,G){var F=B.call(this,I);if(F){F.addClass("yui-button-selected");F.addClass("yui-button-"+F.get("value")+"-selected");F._selected=true;if(G){if(F.buttonType=="rich"){var H=F.getMenu().getItems();for(var E=0;E<H.length;E++){if(H[E].value==G){H[E].cfg.setProperty("checked",true);F.set("label",'<span class="yui-toolbar-'+F.get("value")+"-"+(G).replace(/ /g,"-").toLowerCase()+'">'+H[E]._oText.nodeValue+"</span>");}else{H[E].cfg.setProperty("checked",false);}}}}}else{return false;}},deselectButton:function(F){var E=B.call(this,F);if(E){E.removeClass("yui-button-selected");E.removeClass("yui-button-"+E.get("value")+"-selected");E.removeClass("yui-button-hover");E._selected=false;}else{return false;}},deselectAllButtons:function(){var E=this._buttonList.length;for(var F=0;F<E;F++){this.deselectButton(this._buttonList[F]);}},disableAllButtons:function(){if(this.get("disabled")){return false;}var E=this._buttonList.length;for(var F=0;F<E;F++){this.disableButton(this._buttonList[F]);}},enableAllButtons:function(){if(this.get("disabled")){return false;}var E=this._buttonList.length;for(var F=0;F<E;F++){this.enableButton(this._buttonList[F]);}},resetAllButtons:function(I){if(!D.isObject(I)){I={};}if(this.get("disabled")||!this._buttonList){return false;}var E=this._buttonList.length;for(var F=0;F<E;F++){var H=this._buttonList[F];if(H){var G=H._configs.disabled._initialConfig.value;if(I[H.get("id")]){this.enableButton(H);this.selectButton(H);}else{if(G){this.disableButton(H);}else{this.enableButton(H);}this.deselectButton(H);}}}},destroyButton:function(J){var H=B.call(this,J);if(H){var I=H.get("id"),F=[],G=0,E=this._buttonList.length;H.destroy();for(G=0;G<E;G++){if(this._buttonList[G].get("id")!=I){F[F.length]=this._buttonList[G];}}this._buttonList=F;}else{return false;}},destroy:function(){var E=this._configuredButtons.length,F,G;for(b=0;b<E;b++){this.destroyButton(this._configuredButtons[b]);}this._configuredButtons=null;this.get("element").innerHTML="";this.get("element").className="";for(G in this){if(D.hasOwnProperty(this,G)){this[G]=null;}}return true;},collapse:function(F){var E=C.getElementsByClassName("collapse","span",this._titlebar);if(F===false){C.removeClass(this.get("cont").parentNode,"yui-toolbar-container-collapsed");
-if(E[0]){C.removeClass(E[0],"collapsed");E[0].title=this.STR_COLLAPSE;}this.fireEvent("toolbarExpanded",{type:"toolbarExpanded",target:this});}else{if(E[0]){C.addClass(E[0],"collapsed");E[0].title=this.STR_EXPAND;}C.addClass(this.get("cont").parentNode,"yui-toolbar-container-collapsed");this.fireEvent("toolbarCollapsed",{type:"toolbarCollapsed",target:this});}},toString:function(){return"Toolbar (#"+this.get("element").id+") with "+this._buttonList.length+" buttons.";}});})();(function(){var C=YAHOO.util.Dom,A=YAHOO.util.Event,D=YAHOO.lang,B=YAHOO.widget.Toolbar;YAHOO.widget.SimpleEditor=function(H,M){var G={};if(D.isObject(H)&&(!H.tagName)&&!M){D.augmentObject(G,H);H=document.createElement("textarea");this.DOMReady=true;if(G.container){var K=C.get(G.container);K.appendChild(H);}else{document.body.appendChild(H);}}else{if(M){D.augmentObject(G,M);}}var I={element:null,attributes:G},F=null;if(D.isString(H)){F=H;}else{if(I.attributes.id){F=I.attributes.id;}else{this.DOMReady=true;F=C.generateId(H);}}I.element=H;var J=document.createElement("DIV");I.attributes.element_cont=new YAHOO.util.Element(J,{id:F+"_container"});var E=document.createElement("div");C.addClass(E,"first-child");I.attributes.element_cont.appendChild(E);if(!I.attributes.toolbar_cont){I.attributes.toolbar_cont=document.createElement("DIV");I.attributes.toolbar_cont.id=F+"_toolbar";E.appendChild(I.attributes.toolbar_cont);}var L=document.createElement("DIV");E.appendChild(L);I.attributes.editor_wrapper=L;YAHOO.widget.SimpleEditor.superclass.constructor.call(this,I.element,I.attributes);};YAHOO.extend(YAHOO.widget.SimpleEditor,YAHOO.util.Element,{_resizeConfig:{handles:["br"],autoRatio:true,status:true,proxy:true,useShim:true,setSize:false},_setupResize:function(){if(!YAHOO.util.DD||!YAHOO.util.Resize){return false;}if(this.get("resize")){var E={};D.augmentObject(E,this._resizeConfig);this.resize=new YAHOO.util.Resize(this.get("element_cont").get("element"),E);this.resize.on("resize",function(G){var K=this.get("animate");this.set("animate",false);this.set("width",G.width+"px");var H=G.height,I=(this.toolbar.get("element").clientHeight+2),J=0;if(this.dompath){J=(this.dompath.clientHeight+1);}var F=(H-I-J);this.set("height",F+"px");this.get("element_cont").setStyle("height","");this.set("animate",K);},this,true);}},resize:null,_setupDD:function(){if(!YAHOO.util.DD){return false;}if(this.get("drag")){var F=this.get("drag"),E=YAHOO.util.DD;if(F==="proxy"){E=YAHOO.util.DDProxy;}this.dd=new E(this.get("element_cont").get("element"));this.toolbar.addClass("draggable");this.dd.setHandleElId(this.toolbar._titlebar);}},dd:null,_lastCommand:null,_undoNodeChange:function(){},_storeUndo:function(){},_checkKey:function(E,H){var F=false;if((H.keyCode===E.key)){if(E.mods&&(E.mods.length>0)){var I=0;for(var G=0;G<E.mods.length;G++){if(this.browser.mac){if(E.mods[G]=="ctrl"){E.mods[G]="meta";}}if(H[E.mods[G]+"Key"]===true){I++;}}if(I===E.mods.length){F=true;}}else{F=true;}}return F;},_keyMap:{SELECT_ALL:{key:65,mods:["ctrl"]},CLOSE_WINDOW:{key:87,mods:["shift","ctrl"]},FOCUS_TOOLBAR:{key:27,mods:["shift"]},FOCUS_AFTER:{key:27},FONT_SIZE_UP:{key:38,mods:["shift","ctrl"]},FONT_SIZE_DOWN:{key:40,mods:["shift","ctrl"]},CREATE_LINK:{key:76,mods:["shift","ctrl"]},BOLD:{key:66,mods:["shift","ctrl"]},ITALIC:{key:73,mods:["shift","ctrl"]},UNDERLINE:{key:85,mods:["shift","ctrl"]},UNDO:{key:90,mods:["ctrl"]},REDO:{key:90,mods:["shift","ctrl"]},JUSTIFY_LEFT:{key:219,mods:["shift","ctrl"]},JUSTIFY_CENTER:{key:220,mods:["shift","ctrl"]},JUSTIFY_RIGHT:{key:221,mods:["shift","ctrl"]}},_cleanClassName:function(E){return E.replace(/ /g,"-").toLowerCase();},_textarea:null,_docType:'<!DOCTYPE HTML PUBLIC "-/'+"/W3C/"+"/DTD HTML 4.01/"+'/EN" "http:/'+'/www.w3.org/TR/html4/strict.dtd">',editorDirty:null,_defaultCSS:"html { height: 95%; } body { padding: 7px; background-color: #fff; font: 13px/1.22 arial,helvetica,clean,sans-serif;*font-size:small;*font:x-small; } a, a:visited, a:hover { color: blue !important; text-decoration: underline !important; cursor: text !important; } .warning-localfile { border-bottom: 1px dashed red !important; } .yui-busy { cursor: wait !important; } img.selected { border: 2px dotted #808080; } img { cursor: pointer !important; border: none; } body.ptags.webkit div.yui-wk-p { margin: 11px 0; } body.ptags.webkit div.yui-wk-div { margin: 0; }",_defaultToolbar:null,_lastButton:null,_baseHREF:function(){var E=document.location.href;if(E.indexOf("?")!==-1){E=E.substring(0,E.indexOf("?"));}E=E.substring(0,E.lastIndexOf("/"))+"/";return E;}(),_lastImage:null,_blankImageLoaded:null,_fixNodesTimer:null,_nodeChangeTimer:null,_nodeChangeDelayTimer:null,_lastNodeChangeEvent:null,_lastNodeChange:0,_rendered:null,DOMReady:null,_selection:null,_mask:null,_showingHiddenElements:null,currentWindow:null,currentEvent:null,operaEvent:null,currentFont:null,currentElement:null,dompath:null,beforeElement:null,afterElement:null,invalidHTML:{form:true,input:true,button:true,select:true,link:true,html:true,body:true,iframe:true,script:true,style:true,textarea:true},toolbar:null,_contentTimer:null,_contentTimerMax:500,_contentTimerCounter:0,_disabled:["createlink","fontname","fontsize","forecolor","backcolor"],_alwaysDisabled:{undo:true,redo:true},_alwaysEnabled:{},_semantic:{"bold":true,"italic":true,"underline":true},_tag2cmd:{"b":"bold","strong":"bold","i":"italic","em":"italic","u":"underline","sup":"superscript","sub":"subscript","img":"insertimage","a":"createlink","ul":"insertunorderedlist","ol":"insertorderedlist"},_createIframe:function(){var I=document.createElement("iframe");I.id=this.get("id")+"_editor";var G={border:"0",frameBorder:"0",marginWidth:"0",marginHeight:"0",leftMargin:"0",topMargin:"0",allowTransparency:"true",width:"100%"};if(this.get("autoHeight")){G.scrolling="no";}for(var H in G){if(D.hasOwnProperty(G,H)){I.setAttribute(H,G[H]);}}var F="javascript:;";if(this.browser.ie){F="javascript:false;";}I.setAttribute("src",F);var E=new YAHOO.util.Element(I);
-E.setStyle("visibility","hidden");return E;},_isElement:function(F,E){if(F&&F.tagName&&(F.tagName.toLowerCase()==E)){return true;}if(F&&F.getAttribute&&(F.getAttribute("tag")==E)){return true;}return false;},_hasParent:function(F,E){if(!F||!F.parentNode){return false;}while(F.parentNode){if(this._isElement(F,E)){return F;}if(F.parentNode){F=F.parentNode;}else{return false;}}return false;},_getDoc:function(){var E=false;try{if(this.get("iframe").get("element").contentWindow.document){E=this.get("iframe").get("element").contentWindow.document;return E;}}catch(F){return false;}},_getWindow:function(){return this.get("iframe").get("element").contentWindow;},focus:function(){this._getWindow().focus();},_focusWindow:function(){this.focus();},_hasSelection:function(){var G=this._getSelection();var E=this._getRange();var F=false;if(!G||!E){return F;}if(this.browser.ie||this.browser.opera){if(E.text){F=true;}if(E.html){F=true;}}else{if(this.browser.webkit){if(G+""!==""){F=true;}}else{if(G&&(G.toString()!=="")&&(G!==undefined)){F=true;}}}return F;},_getSelection:function(){var E=null;if(this._getDoc()&&this._getWindow()){if(this._getDoc().selection){E=this._getDoc().selection;}else{E=this._getWindow().getSelection();}if(this.browser.webkit){if(E.baseNode){this._selection={};this._selection.baseNode=E.baseNode;this._selection.baseOffset=E.baseOffset;this._selection.extentNode=E.extentNode;this._selection.extentOffset=E.extentOffset;}else{if(this._selection!==null){E=this._getWindow().getSelection();E.setBaseAndExtent(this._selection.baseNode,this._selection.baseOffset,this._selection.extentNode,this._selection.extentOffset);this._selection=null;}}}}return E;},_selectNode:function(F,I){if(!F){return false;}var G=this._getSelection(),E=null;if(this.browser.ie){try{E=this._getDoc().body.createTextRange();E.moveToElementText(F);E.select();}catch(H){}}else{if(this.browser.webkit){if(I){G.setBaseAndExtent(F,1,F,F.innerText.length);}else{G.setBaseAndExtent(F,0,F,F.innerText.length);}}else{if(this.browser.opera){G=this._getWindow().getSelection();E=this._getDoc().createRange();E.selectNode(F);G.removeAllRanges();G.addRange(E);}else{E=this._getDoc().createRange();E.selectNodeContents(F);G.removeAllRanges();G.addRange(E);}}}this.nodeChange();},_getRange:function(){var E=this._getSelection();if(E===null){return null;}if(this.browser.webkit&&!E.getRangeAt){var H=this._getDoc().createRange();try{H.setStart(E.anchorNode,E.anchorOffset);H.setEnd(E.focusNode,E.focusOffset);}catch(G){H=this._getWindow().getSelection()+"";}return H;}if(this.browser.ie||this.browser.opera){try{return E.createRange();}catch(F){return null;}}if(E.rangeCount>0){return E.getRangeAt(0);}return null;},_setDesignMode:function(E){if(this.get("setDesignMode")){try{this._getDoc().designMode=((E.toLowerCase()=="off")?"off":"on");}catch(F){}}},_toggleDesignMode:function(){var F=this._getDoc().designMode,E=((F.toLowerCase()=="on")?"off":"on");this._setDesignMode(E);return E;},_focused:null,_handleFocus:function(E){if(!this._focused){this._focused=true;this.fireEvent("editorWindowFocus",{type:"editorWindowFocus",target:this});}},_handleBlur:function(E){if(this._focused){this._focused=false;this.fireEvent("editorWindowBlur",{type:"editorWindowBlur",target:this});}},_initEditorEvents:function(){var F=this._getDoc(),E=this._getWindow();A.on(F,"mouseup",this._handleMouseUp,this,true);A.on(F,"mousedown",this._handleMouseDown,this,true);A.on(F,"click",this._handleClick,this,true);A.on(F,"dblclick",this._handleDoubleClick,this,true);A.on(F,"keypress",this._handleKeyPress,this,true);A.on(F,"keyup",this._handleKeyUp,this,true);A.on(F,"keydown",this._handleKeyDown,this,true);A.on(E,"focus",this._handleFocus,this,true);A.on(E,"blur",this._handleBlur,this,true);},_removeEditorEvents:function(){var F=this._getDoc(),E=this._getWindow();A.removeListener(F,"mouseup",this._handleMouseUp,this,true);A.removeListener(F,"mousedown",this._handleMouseDown,this,true);A.removeListener(F,"click",this._handleClick,this,true);A.removeListener(F,"dblclick",this._handleDoubleClick,this,true);A.removeListener(F,"keypress",this._handleKeyPress,this,true);A.removeListener(F,"keyup",this._handleKeyUp,this,true);A.removeListener(F,"keydown",this._handleKeyDown,this,true);A.removeListener(E,"focus",this._handleFocus,this,true);A.removeListener(E,"blur",this._handleBlur,this,true);},_fixWebkitDivs:function(){if(this.browser.webkit){var E=this._getDoc().body.getElementsByTagName("div");C.addClass(E,"yui-wk-div");}},_initEditor:function(F){if(this._editorInit){return;}this._editorInit=true;if(this.browser.ie){this._getDoc().body.style.margin="0";}if(!this.get("disabled")){this._setDesignMode("on");this._contentTimerCounter=0;}if(!this._getDoc().body){this._contentTimerCounter=0;this._editorInit=false;this._checkLoaded();return false;}if(!F){this.toolbar.on("buttonClick",this._handleToolbarClick,this,true);}if(!this.get("disabled")){this._initEditorEvents();this.toolbar.set("disabled",false);}if(F){this.fireEvent("editorContentReloaded",{type:"editorreloaded",target:this});}else{this.fireEvent("editorContentLoaded",{type:"editorLoaded",target:this});}this._fixWebkitDivs();if(this.get("dompath")){var E=this;setTimeout(function(){E._writeDomPath.call(E);E._setupResize.call(E);},150);}var H=[];for(var G in this.browser){if(this.browser[G]){H.push(G);}}if(this.get("ptags")){H.push("ptags");}C.addClass(this._getDoc().body,H.join(" "));this.nodeChange(true);},_checkLoaded:function(F){this._editorInit=false;this._contentTimerCounter++;if(this._contentTimer){clearTimeout(this._contentTimer);}if(this._contentTimerCounter>this._contentTimerMax){return false;}var H=false;try{if(this._getDoc()&&this._getDoc().body){if(this.browser.ie){if(this._getDoc().body.readyState=="complete"){H=true;}}else{if(this._getDoc().body._rteLoaded===true){H=true;}}}}catch(G){H=false;}if(H===true){this._initEditor(F);}else{var E=this;this._contentTimer=setTimeout(function(){E._checkLoaded.call(E,F);},20);}},_setInitialContent:function(F){var I=((this._textarea)?this.get("element").value:this.get("element").innerHTML),K=null;
-if(I===""){I="<br>";}var G=D.substitute(this.get("html"),{TITLE:this.STR_TITLE,CONTENT:this._cleanIncomingHTML(I),CSS:this.get("css"),HIDDEN_CSS:((this.get("hiddencss"))?this.get("hiddencss"):"/* No Hidden CSS */"),EXTRA_CSS:((this.get("extracss"))?this.get("extracss"):"/* No Extra CSS */")}),E=true;G=G.replace(/RIGHT_BRACKET/gi,"{");G=G.replace(/LEFT_BRACKET/gi,"}");if(document.compatMode!="BackCompat"){G=this._docType+"\n"+G;}else{}if(this.browser.ie||this.browser.webkit||this.browser.opera||(navigator.userAgent.indexOf("Firefox/1.5")!=-1)){try{if(this.browser.air){K=this._getDoc().implementation.createHTMLDocument();var L=this._getDoc();L.open();L.close();K.open();K.write(G);K.close();var H=L.importNode(K.getElementsByTagName("html")[0],true);L.replaceChild(H,L.getElementsByTagName("html")[0]);L.body._rteLoaded=true;}else{K=this._getDoc();K.open();K.write(G);K.close();}}catch(J){E=false;}}else{this.get("iframe").get("element").src="data:text/html;charset=utf-8,"+encodeURIComponent(G);}this.get("iframe").setStyle("visibility","");if(E){this._checkLoaded(F);}},_setMarkupType:function(E){switch(this.get("markup")){case"css":this._setEditorStyle(true);break;case"default":this._setEditorStyle(false);break;case"semantic":case"xhtml":if(this._semantic[E]){this._setEditorStyle(false);}else{this._setEditorStyle(true);}break;}},_setEditorStyle:function(F){try{this._getDoc().execCommand("useCSS",false,!F);}catch(E){}},_getSelectedElement:function(){var J=this._getDoc(),G=null,H=null,K=null,F=true;if(this.browser.ie){this.currentEvent=this._getWindow().event;G=this._getRange();if(G){K=G.item?G.item(0):G.parentElement();if(this._hasSelection()){}if(K===J.body){K=null;}}if((this.currentEvent!==null)&&(this.currentEvent.keyCode===0)){K=A.getTarget(this.currentEvent);}}else{H=this._getSelection();G=this._getRange();if(!H||!G){return null;}if(!this._hasSelection()&&this.browser.webkit3){}if(this.browser.gecko){if(G.startContainer){if(G.startContainer.nodeType===3){K=G.startContainer.parentNode;}else{if(G.startContainer.nodeType===1){K=G.startContainer;}}if(this.currentEvent){var E=A.getTarget(this.currentEvent);if(!this._isElement(E,"html")){if(K!==E){K=E;}}}}}if(F){if(H.anchorNode&&(H.anchorNode.nodeType==3)){if(H.anchorNode.parentNode){K=H.anchorNode.parentNode;}if(H.anchorNode.nextSibling!=H.focusNode.nextSibling){K=H.anchorNode.nextSibling;}}if(this._isElement(K,"br")){K=null;}if(!K){K=G.commonAncestorContainer;if(!G.collapsed){if(G.startContainer==G.endContainer){if(G.startOffset-G.endOffset<2){if(G.startContainer.hasChildNodes()){K=G.startContainer.childNodes[G.startOffset];}}}}}}}if(this.currentEvent!==null){try{switch(this.currentEvent.type){case"click":case"mousedown":case"mouseup":if(this.browser.webkit){K=A.getTarget(this.currentEvent);}break;default:break;}}catch(I){}}else{if((this.currentElement&&this.currentElement[0])&&(!this.browser.ie)){}}if(this.browser.opera||this.browser.webkit){if(this.currentEvent&&!K){K=YAHOO.util.Event.getTarget(this.currentEvent);}}if(!K||!K.tagName){K=J.body;}if(this._isElement(K,"html")){K=J.body;}if(this._isElement(K,"body")){K=J.body;}if(K&&!K.parentNode){K=J.body;}if(K===undefined){K=null;}return K;},_getDomPath:function(E){if(!E){E=this._getSelectedElement();}var F=[];while(E!==null){if(E.ownerDocument!=this._getDoc()){E=null;break;}if(E.nodeName&&E.nodeType&&(E.nodeType==1)){F[F.length]=E;}if(this._isElement(E,"body")){break;}E=E.parentNode;}if(F.length===0){if(this._getDoc()&&this._getDoc().body){F[0]=this._getDoc().body;}}return F.reverse();},_writeDomPath:function(){var K=this._getDomPath(),I=[],G="",L="";for(var E=0;E<K.length;E++){var M=K[E].tagName.toLowerCase();if((M=="ol")&&(K[E].type)){M+=":"+K[E].type;}if(C.hasClass(K[E],"yui-tag")){M=K[E].getAttribute("tag");}if((this.get("markup")=="semantic")||(this.get("markup")=="xhtml")){switch(M){case"b":M="strong";break;case"i":M="em";break;}}if(!C.hasClass(K[E],"yui-non")){if(C.hasClass(K[E],"yui-tag")){L=M;}else{G=((K[E].className!=="")?"."+K[E].className.replace(/ /g,"."):"");if((G.indexOf("yui")!=-1)||(G.toLowerCase().indexOf("apple-style-span")!=-1)){G="";}L=M+((K[E].id)?"#"+K[E].id:"")+G;}switch(M){case"body":L="body";break;case"a":if(K[E].getAttribute("href",2)){L+=":"+K[E].getAttribute("href",2).replace("mailto:","").replace("http:/"+"/","").replace("https:/"+"/","");}break;case"img":var F=K[E].height;var J=K[E].width;if(K[E].style.height){F=parseInt(K[E].style.height,10);}if(K[E].style.width){J=parseInt(K[E].style.width,10);}L+="("+J+"x"+F+")";break;}if(L.length>10){L='<span title="'+L+'">'+L.substring(0,10)+"..."+"</span>";}else{L='<span title="'+L+'">'+L+"</span>";}I[I.length]=L;}}var H=I.join(" "+this.SEP_DOMPATH+" ");if(this.dompath.innerHTML!=H){this.dompath.innerHTML=H;}},_fixNodes:function(){try{var K=this._getDoc(),H=[];for(var E in this.invalidHTML){if(YAHOO.lang.hasOwnProperty(this.invalidHTML,E)){if(E.toLowerCase()!="span"){var F=K.body.getElementsByTagName(E);if(F.length){for(var G=0;G<F.length;G++){H.push(F[G]);}}}}}for(var I=0;I<H.length;I++){if(H[I].parentNode){if(D.isObject(this.invalidHTML[H[I].tagName.toLowerCase()])&&this.invalidHTML[H[I].tagName.toLowerCase()].keepContents){this._swapEl(H[I],"span",function(M){M.className="yui-non";});}else{H[I].parentNode.removeChild(H[I]);}}}var L=this._getDoc().getElementsByTagName("img");C.addClass(L,"yui-img");}catch(J){}},_isNonEditable:function(G){if(this.get("allowNoEdit")){var F=A.getTarget(G);if(this._isElement(F,"html")){F=null;}var J=this._getDomPath(F);for(var E=(J.length-1);E>-1;E--){if(C.hasClass(J[E],this.CLASS_NOEDIT)){try{this._getDoc().execCommand("enableObjectResizing",false,"false");}catch(I){}this.nodeChange();A.stopEvent(G);return true;}}try{this._getDoc().execCommand("enableObjectResizing",false,"true");}catch(H){}}return false;},_setCurrentEvent:function(E){this.currentEvent=E;},_handleClick:function(G){var F=this.fireEvent("beforeEditorClick",{type:"beforeEditorClick",target:this,ev:G});if(F===false){return false;}if(this._isNonEditable(G)){return false;
-}this._setCurrentEvent(G);if(this.currentWindow){this.closeWindow();}if(this.currentWindow){this.closeWindow();}if(this.browser.webkit){var E=A.getTarget(G);if(this._isElement(E,"a")||this._isElement(E.parentNode,"a")){A.stopEvent(G);this.nodeChange();}}else{this.nodeChange();}this.fireEvent("editorClick",{type:"editorClick",target:this,ev:G});},_handleMouseUp:function(G){var F=this.fireEvent("beforeEditorMouseUp",{type:"beforeEditorMouseUp",target:this,ev:G});if(F===false){return false;}if(this._isNonEditable(G)){return false;}var E=this;if(this.browser.opera){var H=A.getTarget(G);if(this._isElement(H,"img")){this.nodeChange();if(this.operaEvent){clearTimeout(this.operaEvent);this.operaEvent=null;this._handleDoubleClick(G);}else{this.operaEvent=window.setTimeout(function(){E.operaEvent=false;},700);}}}if(this.browser.webkit||this.browser.opera){if(this.browser.webkit){A.stopEvent(G);}}this.nodeChange();this.fireEvent("editorMouseUp",{type:"editorMouseUp",target:this,ev:G});},_handleMouseDown:function(F){var E=this.fireEvent("beforeEditorMouseDown",{type:"beforeEditorMouseDown",target:this,ev:F});if(E===false){return false;}if(this._isNonEditable(F)){return false;}this._setCurrentEvent(F);var G=A.getTarget(F);if(this.browser.webkit&&this._hasSelection()){var H=this._getSelection();if(!this.browser.webkit3){H.collapse(true);}else{H.collapseToStart();}}if(this.browser.webkit&&this._lastImage){C.removeClass(this._lastImage,"selected");this._lastImage=null;}if(this._isElement(G,"img")||this._isElement(G,"a")){if(this.browser.webkit){A.stopEvent(F);if(this._isElement(G,"img")){C.addClass(G,"selected");this._lastImage=G;}}if(this.currentWindow){this.closeWindow();}this.nodeChange();}this.fireEvent("editorMouseDown",{type:"editorMouseDown",target:this,ev:F});},_handleDoubleClick:function(F){var E=this.fireEvent("beforeEditorDoubleClick",{type:"beforeEditorDoubleClick",target:this,ev:F});if(E===false){return false;}if(this._isNonEditable(F)){return false;}this._setCurrentEvent(F);var G=A.getTarget(F);if(this._isElement(G,"img")){this.currentElement[0]=G;this.toolbar.fireEvent("insertimageClick",{type:"insertimageClick",target:this.toolbar});this.fireEvent("afterExecCommand",{type:"afterExecCommand",target:this});}else{if(this._hasParent(G,"a")){this.currentElement[0]=this._hasParent(G,"a");this.toolbar.fireEvent("createlinkClick",{type:"createlinkClick",target:this.toolbar});this.fireEvent("afterExecCommand",{type:"afterExecCommand",target:this});}}this.nodeChange();this.fireEvent("editorDoubleClick",{type:"editorDoubleClick",target:this,ev:F});},_handleKeyUp:function(G){var F=this.fireEvent("beforeEditorKeyUp",{type:"beforeEditorKeyUp",target:this,ev:G});if(F===false){return false;}if(this._isNonEditable(G)){return false;}this._storeUndo();this._setCurrentEvent(G);switch(G.keyCode){case this._keyMap.SELECT_ALL.key:if(this._checkKey(this._keyMap.SELECT_ALL,G)){this.nodeChange();}break;case 32:case 35:case 36:case 37:case 38:case 39:case 40:case 46:case 8:case this._keyMap.CLOSE_WINDOW.key:if((G.keyCode==this._keyMap.CLOSE_WINDOW.key)&&this.currentWindow){if(this._checkKey(this._keyMap.CLOSE_WINDOW,G)){this.closeWindow();}}else{if(!this.browser.ie){if(this._nodeChangeTimer){clearTimeout(this._nodeChangeTimer);}var E=this;this._nodeChangeTimer=setTimeout(function(){E._nodeChangeTimer=null;E.nodeChange.call(E);},100);}else{this.nodeChange();}this.editorDirty=true;}break;}this.fireEvent("editorKeyUp",{type:"editorKeyUp",target:this,ev:G});},_handleKeyPress:function(G){var F=this.fireEvent("beforeEditorKeyPress",{type:"beforeEditorKeyPress",target:this,ev:G});if(F===false){return false;}if(this.get("allowNoEdit")){if(G&&G.keyCode&&(G.keyCode==63272)){A.stopEvent(G);}}if(this._isNonEditable(G)){return false;}this._setCurrentEvent(G);this._storeUndo();if(this.browser.opera){if(G.keyCode===13){var E=this._getSelectedElement();if(!this._isElement(E,"li")){this.execCommand("inserthtml","<br>");A.stopEvent(G);}}}if(this.browser.webkit){if(!this.browser.webkit3){if(G.keyCode&&(G.keyCode==122)&&(G.metaKey)){if(this._hasParent(this._getSelectedElement(),"li")){A.stopEvent(G);}}}this._listFix(G);}this._fixListDupIds();this.fireEvent("editorKeyPress",{type:"editorKeyPress",target:this,ev:G});},_handleKeyDown:function(X){var Z=this.fireEvent("beforeEditorKeyDown",{type:"beforeEditorKeyDown",target:this,ev:X});if(Z===false){return false;}var U=null,E=null;if(this._isNonEditable(X)){return false;}this._setCurrentEvent(X);if(this.currentWindow){this.closeWindow();}if(this.currentWindow){this.closeWindow();}var N=false,S=null,P=null,R=false;switch(X.keyCode){case this._keyMap.FOCUS_TOOLBAR.key:if(this._checkKey(this._keyMap.FOCUS_TOOLBAR,X)){var W=this.toolbar.getElementsByTagName("h2")[0];if(W&&W.firstChild){W.firstChild.focus();}}else{if(this._checkKey(this._keyMap.FOCUS_AFTER,X)){this.afterElement.focus();}}A.stopEvent(X);N=false;break;case this._keyMap.CREATE_LINK.key:if(this._hasSelection()){if(this._checkKey(this._keyMap.CREATE_LINK,X)){var F=true;if(this.get("limitCommands")){if(!this.toolbar.getButtonByValue("createlink")){F=false;}}if(F){this.execCommand("createlink","");this.toolbar.fireEvent("createlinkClick",{type:"createlinkClick",target:this.toolbar});this.fireEvent("afterExecCommand",{type:"afterExecCommand",target:this});N=false;}}}break;case this._keyMap.UNDO.key:case this._keyMap.REDO.key:if(this._checkKey(this._keyMap.REDO,X)){S="redo";N=true;}else{if(this._checkKey(this._keyMap.UNDO,X)){S="undo";N=true;}}break;case this._keyMap.BOLD.key:if(this._checkKey(this._keyMap.BOLD,X)){S="bold";N=true;}break;case this._keyMap.FONT_SIZE_UP.key:case this._keyMap.FONT_SIZE_DOWN.key:var K=false,T=false;if(this._checkKey(this._keyMap.FONT_SIZE_UP,X)){K=true;}if(this._checkKey(this._keyMap.FONT_SIZE_DOWN,X)){T=true;}if(K||T){var H=this.toolbar.getButtonByValue("fontsize"),G=parseInt(H.get("label"),10),I=(G+1);if(T){I=(G-1);}S="fontsize";P=I+"px";N=true;}break;case this._keyMap.ITALIC.key:if(this._checkKey(this._keyMap.ITALIC,X)){S="italic";
-N=true;}break;case this._keyMap.UNDERLINE.key:if(this._checkKey(this._keyMap.UNDERLINE,X)){S="underline";N=true;}break;case 9:if(this.browser.ie){E=this._getRange();U=this._getSelectedElement();if(!this._isElement(U,"li")){if(E){E.pasteHTML("&nbsp;&nbsp;&nbsp;&nbsp;");E.collapse(false);E.select();}A.stopEvent(X);}}if(this.browser.gecko>1.8){U=this._getSelectedElement();if(this._isElement(U,"li")){if(X.shiftKey){this._getDoc().execCommand("outdent",null,"");}else{this._getDoc().execCommand("indent",null,"");}}else{if(!this._hasSelection()){this.execCommand("inserthtml","&nbsp;&nbsp;&nbsp;&nbsp;");}}A.stopEvent(X);}break;case 13:var M=null,V=0;if(this.get("ptags")&&!X.shiftKey){if(this.browser.gecko){U=this._getSelectedElement();if(!this._hasParent(U,"li")){if(this._hasParent(U,"p")){M=this._getDoc().createElement("p");M.innerHTML="&nbsp;";C.insertAfter(M,U);this._selectNode(M.firstChild);}else{if(this._isElement(U,"body")){this.execCommand("insertparagraph",null);var O=this._getDoc().body.getElementsByTagName("p");for(V=0;V<O.length;V++){if(O[V].getAttribute("_moz_dirty")!==null){M=this._getDoc().createElement("p");M.innerHTML="&nbsp;";C.insertAfter(M,O[V]);this._selectNode(M.firstChild);O[V].removeAttribute("_moz_dirty");}}}else{N=true;S="insertparagraph";}}A.stopEvent(X);}}if(this.browser.webkit){U=this._getSelectedElement();if(!this._hasParent(U,"li")){this.execCommand("insertparagraph",null);var Q=this._getDoc().body.getElementsByTagName("div");for(V=0;V<Q.length;V++){if(!C.hasClass(Q[V],"yui-wk-div")){C.addClass(Q[V],"yui-wk-p");}}A.stopEvent(X);}}}else{if(this.browser.webkit){U=this._getSelectedElement();if(!this._hasParent(U,"li")){if(this.browser.webkit4){this.execCommand("insertlinebreak");}else{this.execCommand("inserthtml",'<var id="yui-br"></var>');var L=this._getDoc().getElementById("yui-br"),Y=this._getDoc().createElement("br"),J=this._getDoc().createElement("span");L.parentNode.replaceChild(Y,L);J.className="yui-non";J.innerHTML="&nbsp;";C.insertAfter(J,Y);this._selectNode(J);}A.stopEvent(X);}}if(this.browser.ie){E=this._getRange();U=this._getSelectedElement();if(!this._isElement(U,"li")){if(E){E.pasteHTML("<br>");E.collapse(false);E.select();}A.stopEvent(X);}}}break;}if(this.browser.ie){this._listFix(X);}if(N&&S){this.execCommand(S,P);A.stopEvent(X);this.nodeChange();}this._storeUndo();this.fireEvent("editorKeyDown",{type:"editorKeyDown",target:this,ev:X});},_fixListRunning:null,_fixListDupIds:function(){if(this._fixListRunning){return false;}if(this._getDoc()){this._fixListRunning=true;var E=this._getDoc().body.getElementsByTagName("li"),F=0,G={};for(F=0;F<E.length;F++){if(E[F].id){if(G[E[F].id]){E[F].id="";}G[E[F].id]=true;}}this._fixListRunning=false;}},_listFix:function(K){var M=null,I=null,E=false,G=null;if(this.browser.webkit){if(K.keyCode&&(K.keyCode==13)){if(this._hasParent(this._getSelectedElement(),"li")){var H=this._hasParent(this._getSelectedElement(),"li");if(H.previousSibling){if(H.firstChild&&(H.firstChild.length==1)){this._selectNode(H);}}}}}if(K.keyCode&&((!this.browser.webkit3&&(K.keyCode==25))||((this.browser.webkit3||!this.browser.webkit)&&((K.keyCode==9)&&K.shiftKey)))){M=this._getSelectedElement();if(this._hasParent(M,"li")){M=this._hasParent(M,"li");if(this._hasParent(M,"ul")||this._hasParent(M,"ol")){I=this._hasParent(M,"ul");if(!I){I=this._hasParent(M,"ol");}if(this._isElement(I.previousSibling,"li")){I.removeChild(M);I.parentNode.insertBefore(M,I.nextSibling);if(this.browser.ie){G=this._getDoc().body.createTextRange();G.moveToElementText(M);G.collapse(false);G.select();}if(this.browser.webkit){this._selectNode(M.firstChild);}A.stopEvent(K);}}}}if(K.keyCode&&((K.keyCode==9)&&(!K.shiftKey))){var F=this._getSelectedElement();if(this._hasParent(F,"li")){E=this._hasParent(F,"li").innerHTML;}if(this.browser.webkit){this._getDoc().execCommand("inserttext",false,"\t");}M=this._getSelectedElement();if(this._hasParent(M,"li")){I=this._hasParent(M,"li");var J=this._getDoc().createElement(I.parentNode.tagName.toLowerCase());if(this.browser.webkit){var L=C.getElementsByClassName("Apple-tab-span","span",I);if(L[0]){I.removeChild(L[0]);I.innerHTML=D.trim(I.innerHTML);if(E){I.innerHTML='<span class="yui-non">'+E+"</span>&nbsp;";}else{I.innerHTML='<span class="yui-non">&nbsp;</span>&nbsp;';}}}else{if(E){I.innerHTML=E+"&nbsp;";}else{I.innerHTML="&nbsp;";}}I.parentNode.replaceChild(J,I);J.appendChild(I);if(this.browser.webkit){this._getSelection().setBaseAndExtent(I.firstChild,1,I.firstChild,I.firstChild.innerText.length);if(!this.browser.webkit3){I.parentNode.parentNode.style.display="list-item";setTimeout(function(){I.parentNode.parentNode.style.display="block";},1);}}else{if(this.browser.ie){G=this._getDoc().body.createTextRange();G.moveToElementText(I);G.collapse(false);G.select();}else{this._selectNode(I);}}A.stopEvent(K);}if(this.browser.webkit){A.stopEvent(K);}this.nodeChange();}},nodeChange:function(E){var F=this;this._storeUndo();if(this.get("nodeChangeDelay")){this._nodeChangeDelayTimer=window.setTimeout(function(){F._nodeChangeDelayTimer=null;F._nodeChange.apply(F,arguments);},0);}else{this._nodeChange();}},_nodeChange:function(F){var H=parseInt(this.get("nodeChangeThreshold"),10),O=Math.round(new Date().getTime()/1000),R=this;if(F===true){this._lastNodeChange=0;}if((this._lastNodeChange+H)<O){if(this._fixNodesTimer===null){this._fixNodesTimer=window.setTimeout(function(){R._fixNodes.call(R);R._fixNodesTimer=null;},0);}}this._lastNodeChange=O;if(this.currentEvent){try{this._lastNodeChangeEvent=this.currentEvent.type;}catch(a){}}var Z=this.fireEvent("beforeNodeChange",{type:"beforeNodeChange",target:this});if(Z===false){return false;}if(this.get("dompath")){window.setTimeout(function(){R._writeDomPath.call(R);},0);}if(!this.get("disabled")){if(this.STOP_NODE_CHANGE){this.STOP_NODE_CHANGE=false;return false;}else{var T=this._getSelection(),Q=this._getRange(),E=this._getSelectedElement(),M=this.toolbar.getButtonByValue("fontname"),L=this.toolbar.getButtonByValue("fontsize"),J=this.toolbar.getButtonByValue("undo"),G=this.toolbar.getButtonByValue("redo");
-var N={};if(this._lastButton){N[this._lastButton.id]=true;}if(!this._isElement(E,"body")){if(M){N[M.get("id")]=true;}if(L){N[L.get("id")]=true;}}if(G){delete N[G.get("id")];}this.toolbar.resetAllButtons(N);for(var c=0;c<this._disabled.length;c++){var P=this.toolbar.getButtonByValue(this._disabled[c]);if(P&&P.get){if(this._lastButton&&(P.get("id")===this._lastButton.id)){}else{if(!this._hasSelection()&&!this.get("insert")){switch(this._disabled[c]){case"fontname":case"fontsize":break;default:this.toolbar.disableButton(P);}}else{if(!this._alwaysDisabled[this._disabled[c]]){this.toolbar.enableButton(P);}}if(!this._alwaysEnabled[this._disabled[c]]){this.toolbar.deselectButton(P);}}}}var S=this._getDomPath();var f=null,W=null;for(var X=0;X<S.length;X++){f=S[X].tagName.toLowerCase();if(S[X].getAttribute("tag")){f=S[X].getAttribute("tag").toLowerCase();}W=this._tag2cmd[f];if(W===undefined){W=[];}if(!D.isArray(W)){W=[W];}if(S[X].style.fontWeight.toLowerCase()=="bold"){W[W.length]="bold";}if(S[X].style.fontStyle.toLowerCase()=="italic"){W[W.length]="italic";}if(S[X].style.textDecoration.toLowerCase()=="underline"){W[W.length]="underline";}if(S[X].style.textDecoration.toLowerCase()=="line-through"){W[W.length]="strikethrough";}if(W.length>0){for(var V=0;V<W.length;V++){this.toolbar.selectButton(W[V]);this.toolbar.enableButton(W[V]);}}switch(S[X].style.textAlign.toLowerCase()){case"left":case"right":case"center":case"justify":var U=S[X].style.textAlign.toLowerCase();if(S[X].style.textAlign.toLowerCase()=="justify"){U="full";}this.toolbar.selectButton("justify"+U);this.toolbar.enableButton("justify"+U);break;}}if(M){var Y=M._configs.label._initialConfig.value;M.set("label",'<span class="yui-toolbar-fontname-'+this._cleanClassName(Y)+'">'+Y+"</span>");this._updateMenuChecked("fontname",Y);}if(L){L.set("label",L._configs.label._initialConfig.value);}var K=this.toolbar.getButtonByValue("heading");if(K){K.set("label",K._configs.label._initialConfig.value);this._updateMenuChecked("heading","none");}var I=this.toolbar.getButtonByValue("insertimage");if(I&&this.currentWindow&&(this.currentWindow.name=="insertimage")){this.toolbar.disableButton(I);}if(this._lastButton&&this._lastButton.isSelected){this.toolbar.deselectButton(this._lastButton.id);}this._undoNodeChange();}}this.fireEvent("afterNodeChange",{type:"afterNodeChange",target:this});},_updateMenuChecked:function(E,F,H){if(!H){H=this.toolbar;}var G=H.getButtonByValue(E);G.checkValue(F);},_handleToolbarClick:function(F){var H="";var I="";var G=F.button.value;if(F.button.menucmd){H=G;G=F.button.menucmd;}this._lastButton=F.button;if(this.STOP_EXEC_COMMAND){this.STOP_EXEC_COMMAND=false;return false;}else{this.execCommand(G,H);if(!this.browser.webkit){var E=this;setTimeout(function(){E.focus.call(E);},5);}}A.stopEvent(F);},_setupAfterElement:function(){if(!this.beforeElement){this.beforeElement=document.createElement("h2");this.beforeElement.className="yui-editor-skipheader";this.beforeElement.tabIndex="-1";this.beforeElement.innerHTML=this.STR_BEFORE_EDITOR;this.get("element_cont").get("firstChild").insertBefore(this.beforeElement,this.toolbar.get("nextSibling"));}if(!this.afterElement){this.afterElement=document.createElement("h2");this.afterElement.className="yui-editor-skipheader";this.afterElement.tabIndex="-1";this.afterElement.innerHTML=this.STR_LEAVE_EDITOR;this.get("element_cont").get("firstChild").appendChild(this.afterElement);}},_disableEditor:function(J){var I,H,G,E;if(!this.get("disabled_iframe")){I=this._createIframe();I.set("id","disabled_"+this.get("iframe").get("id"));I.setStyle("height","100%");I.setStyle("display","none");I.setStyle("visibility","visible");this.set("disabled_iframe",I);H=this.get("iframe").get("parentNode");H.appendChild(I.get("element"));}if(!I){I=this.get("disabled_iframe");}if(J){this._orgIframe=this.get("iframe");if(this.toolbar){this.toolbar.set("disabled",true);}G=this.getEditorHTML();E=this.get("iframe").get("offsetHeight");I.setStyle("visibility","");I.setStyle("position","");I.setStyle("top","");I.setStyle("left","");this._orgIframe.setStyle("visibility","hidden");this._orgIframe.setStyle("position","absolute");this._orgIframe.setStyle("top","-99999px");this._orgIframe.setStyle("left","-99999px");this.set("iframe",I);this._setInitialContent(true);if(!this._mask){this._mask=document.createElement("DIV");C.addClass(this._mask,"yui-editor-masked");if(this.browser.ie){this._mask.style.height=E+"px";}this.get("iframe").get("parentNode").appendChild(this._mask);}this.on("editorContentReloaded",function(){this._getDoc().body._rteLoaded=false;this.setEditorHTML(G);I.setStyle("display","block");this.unsubscribeAll("editorContentReloaded");});}else{if(this._mask){this._mask.parentNode.removeChild(this._mask);this._mask=null;if(this.toolbar){this.toolbar.set("disabled",false);}I.setStyle("visibility","hidden");I.setStyle("position","absolute");I.setStyle("top","-99999px");I.setStyle("left","-99999px");this._orgIframe.setStyle("visibility","");this._orgIframe.setStyle("position","");this._orgIframe.setStyle("top","");this._orgIframe.setStyle("left","");this.set("iframe",this._orgIframe);this.focus();var F=this;window.setTimeout(function(){F.nodeChange.call(F);},100);}}},SEP_DOMPATH:"<",STR_LEAVE_EDITOR:"You have left the Rich Text Editor.",STR_BEFORE_EDITOR:"This text field can contain stylized text and graphics. To cycle through all formatting options, use the keyboard shortcut Shift + Escape to place focus on the toolbar and navigate between options with your arrow keys. To exit this text editor use the Escape key and continue tabbing. <h4>Common formatting keyboard shortcuts:</h4><ul><li>Control Shift B sets text to bold</li> <li>Control Shift I sets text to italic</li> <li>Control Shift U underlines text</li> <li>Control Shift L adds an HTML link</li></ul>",STR_TITLE:"Rich Text Area.",STR_IMAGE_HERE:"Image URL Here",STR_IMAGE_URL:"Image URL",STR_LINK_URL:"Link URL",STOP_EXEC_COMMAND:false,STOP_NODE_CHANGE:false,CLASS_NOEDIT:"yui-noedit",CLASS_CONTAINER:"yui-editor-container",CLASS_EDITABLE:"yui-editor-editable",CLASS_EDITABLE_CONT:"yui-editor-editable-container",CLASS_PREFIX:"yui-editor",browser:function(){var E=YAHOO.env.ua;
-if(E.webkit>=420){E.webkit3=E.webkit;}else{E.webkit3=0;}if(E.webkit>=530){E.webkit4=E.webkit;}else{E.webkit4=0;}E.mac=false;if(navigator.userAgent.indexOf("Macintosh")!==-1){E.mac=true;}return E;}(),init:function(F,E){if(!this._defaultToolbar){this._defaultToolbar={collapse:true,titlebar:"Text Editing Tools",draggable:false,buttons:[{group:"fontstyle",label:"Font Name and Size",buttons:[{type:"select",label:"Arial",value:"fontname",disabled:true,menu:[{text:"Arial",checked:true},{text:"Arial Black"},{text:"Comic Sans MS"},{text:"Courier New"},{text:"Lucida Console"},{text:"Tahoma"},{text:"Times New Roman"},{text:"Trebuchet MS"},{text:"Verdana"}]},{type:"spin",label:"13",value:"fontsize",range:[9,75],disabled:true}]},{type:"separator"},{group:"textstyle",label:"Font Style",buttons:[{type:"push",label:"Bold CTRL + SHIFT + B",value:"bold"},{type:"push",label:"Italic CTRL + SHIFT + I",value:"italic"},{type:"push",label:"Underline CTRL + SHIFT + U",value:"underline"},{type:"push",label:"Strike Through",value:"strikethrough"},{type:"separator"},{type:"color",label:"Font Color",value:"forecolor",disabled:true},{type:"color",label:"Background Color",value:"backcolor",disabled:true}]},{type:"separator"},{group:"indentlist",label:"Lists",buttons:[{type:"push",label:"Create an Unordered List",value:"insertunorderedlist"},{type:"push",label:"Create an Ordered List",value:"insertorderedlist"}]},{type:"separator"},{group:"insertitem",label:"Insert Item",buttons:[{type:"push",label:"HTML Link CTRL + SHIFT + L",value:"createlink",disabled:true},{type:"push",label:"Insert Image",value:"insertimage"}]}]};}YAHOO.widget.SimpleEditor.superclass.init.call(this,F,E);YAHOO.widget.EditorInfo._instances[this.get("id")]=this;this.currentElement=[];this.on("contentReady",function(){this.DOMReady=true;this.fireQueue();},this,true);},initAttributes:function(E){YAHOO.widget.SimpleEditor.superclass.initAttributes.call(this,E);var F=this;this.setAttributeConfig("setDesignMode",{value:((E.setDesignMode===false)?false:true)});this.setAttributeConfig("nodeChangeDelay",{value:((E.nodeChangeDelay===false)?false:true)});this.setAttributeConfig("maxUndo",{writeOnce:true,value:E.maxUndo||30});this.setAttributeConfig("ptags",{writeOnce:true,value:E.ptags||false});this.setAttributeConfig("insert",{writeOnce:true,value:E.insert||false,method:function(K){if(K){var J={fontname:true,fontsize:true,forecolor:true,backcolor:true};var I=this._defaultToolbar.buttons;for(var H=0;H<I.length;H++){if(I[H].buttons){for(var G=0;G<I[H].buttons.length;G++){if(I[H].buttons[G].value){if(J[I[H].buttons[G].value]){delete I[H].buttons[G].disabled;}}}}}}}});this.setAttributeConfig("container",{writeOnce:true,value:E.container||false});this.setAttributeConfig("plainText",{writeOnce:true,value:E.plainText||false});this.setAttributeConfig("iframe",{value:null});this.setAttributeConfig("disabled_iframe",{value:null});this.setAttributeConfig("textarea",{value:null,writeOnce:true});this.setAttributeConfig("nodeChangeThreshold",{value:E.nodeChangeThreshold||3,validator:YAHOO.lang.isNumber});this.setAttributeConfig("allowNoEdit",{value:E.allowNoEdit||false,validator:YAHOO.lang.isBoolean});this.setAttributeConfig("limitCommands",{value:E.limitCommands||false,validator:YAHOO.lang.isBoolean});this.setAttributeConfig("element_cont",{value:E.element_cont});this.setAttributeConfig("editor_wrapper",{value:E.editor_wrapper||null,writeOnce:true});this.setAttributeConfig("height",{value:E.height||C.getStyle(F.get("element"),"height"),method:function(G){if(this._rendered){if(this.get("animate")){var H=new YAHOO.util.Anim(this.get("iframe").get("parentNode"),{height:{to:parseInt(G,10)}},0.5);H.animate();}else{C.setStyle(this.get("iframe").get("parentNode"),"height",G);}}}});this.setAttributeConfig("autoHeight",{value:E.autoHeight||false,method:function(G){if(G){if(this.get("iframe")){this.get("iframe").get("element").setAttribute("scrolling","no");}this.on("afterNodeChange",this._handleAutoHeight,this,true);this.on("editorKeyDown",this._handleAutoHeight,this,true);this.on("editorKeyPress",this._handleAutoHeight,this,true);}else{if(this.get("iframe")){this.get("iframe").get("element").setAttribute("scrolling","auto");}this.unsubscribe("afterNodeChange",this._handleAutoHeight);this.unsubscribe("editorKeyDown",this._handleAutoHeight);this.unsubscribe("editorKeyPress",this._handleAutoHeight);}}});this.setAttributeConfig("width",{value:E.width||C.getStyle(this.get("element"),"width"),method:function(G){if(this._rendered){if(this.get("animate")){var H=new YAHOO.util.Anim(this.get("element_cont").get("element"),{width:{to:parseInt(G,10)}},0.5);H.animate();}else{this.get("element_cont").setStyle("width",G);}}}});this.setAttributeConfig("blankimage",{value:E.blankimage||this._getBlankImage()});this.setAttributeConfig("css",{value:E.css||this._defaultCSS,writeOnce:true});this.setAttributeConfig("html",{value:E.html||'<html><head><title>{TITLE}</title><meta http-equiv="Content-Type" content="text/html; charset=UTF-8" /><base href="'+this._baseHREF+'"><style>{CSS}</style><style>{HIDDEN_CSS}</style><style>{EXTRA_CSS}</style></head><body onload="document.body._rteLoaded = true;">{CONTENT}</body></html>',writeOnce:true});this.setAttributeConfig("extracss",{value:E.extracss||"",writeOnce:true});this.setAttributeConfig("handleSubmit",{value:E.handleSubmit||false,method:function(G){if(this.get("element").form){if(!this._formButtons){this._formButtons=[];}if(G){A.on(this.get("element").form,"submit",this._handleFormSubmit,this,true);var H=this.get("element").form.getElementsByTagName("input");for(var J=0;J<H.length;J++){var I=H[J].getAttribute("type");if(I&&(I.toLowerCase()=="submit")){A.on(H[J],"click",this._handleFormButtonClick,this,true);this._formButtons[this._formButtons.length]=H[J];}}}else{A.removeListener(this.get("element").form,"submit",this._handleFormSubmit);if(this._formButtons){A.removeListener(this._formButtons,"click",this._handleFormButtonClick);}}}}});this.setAttributeConfig("disabled",{value:false,method:function(G){if(this._rendered){this._disableEditor(G);
-}}});this.setAttributeConfig("saveEl",{value:this.get("element")});this.setAttributeConfig("toolbar_cont",{value:null,writeOnce:true});this.setAttributeConfig("toolbar",{value:E.toolbar||this._defaultToolbar,writeOnce:true,method:function(G){if(!G.buttonType){G.buttonType=this._defaultToolbar.buttonType;}this._defaultToolbar=G;}});this.setAttributeConfig("animate",{value:((E.animate)?((YAHOO.util.Anim)?true:false):false),validator:function(H){var G=true;if(!YAHOO.util.Anim){G=false;}return G;}});this.setAttributeConfig("panel",{value:null,writeOnce:true,validator:function(H){var G=true;if(!YAHOO.widget.Overlay){G=false;}return G;}});this.setAttributeConfig("focusAtStart",{value:E.focusAtStart||false,writeOnce:true,method:function(G){if(G){this.on("editorContentLoaded",function(){var H=this;setTimeout(function(){H.focus.call(H);H.editorDirty=false;},400);},this,true);}}});this.setAttributeConfig("dompath",{value:E.dompath||false,method:function(G){if(G&&!this.dompath){this.dompath=document.createElement("DIV");this.dompath.id=this.get("id")+"_dompath";C.addClass(this.dompath,"dompath");this.get("element_cont").get("firstChild").appendChild(this.dompath);if(this.get("iframe")){this._writeDomPath();}}else{if(!G&&this.dompath){this.dompath.parentNode.removeChild(this.dompath);this.dompath=null;}}}});this.setAttributeConfig("markup",{value:E.markup||"semantic",validator:function(G){switch(G.toLowerCase()){case"semantic":case"css":case"default":case"xhtml":return true;}return false;}});this.setAttributeConfig("removeLineBreaks",{value:E.removeLineBreaks||false,validator:YAHOO.lang.isBoolean});this.setAttributeConfig("drag",{writeOnce:true,value:E.drag||false});this.setAttributeConfig("resize",{writeOnce:true,value:E.resize||false});this.setAttributeConfig("filterWord",{value:E.filterWord||false,validator:YAHOO.lang.isBoolean});},_getBlankImage:function(){if(!this.DOMReady){this._queue[this._queue.length]=["_getBlankImage",arguments];return"";}var E="";if(!this._blankImageLoaded){if(YAHOO.widget.EditorInfo.blankImage){this.set("blankimage",YAHOO.widget.EditorInfo.blankImage);this._blankImageLoaded=true;}else{var F=document.createElement("div");F.style.position="absolute";F.style.top="-9999px";F.style.left="-9999px";F.className=this.CLASS_PREFIX+"-blankimage";document.body.appendChild(F);E=YAHOO.util.Dom.getStyle(F,"background-image");E=E.replace("url(","").replace(")","").replace(/"/g,"");E=E.replace("app:/","");this.set("blankimage",E);this._blankImageLoaded=true;F.parentNode.removeChild(F);YAHOO.widget.EditorInfo.blankImage=E;}}else{E=this.get("blankimage");}return E;},_handleAutoHeight:function(){var J=this._getDoc(),F=J.body,K=J.documentElement;var E=parseInt(C.getStyle(this.get("editor_wrapper"),"height"),10);var G=F.scrollHeight;if(this.browser.webkit){G=K.scrollHeight;}if(G<parseInt(this.get("height"),10)){G=parseInt(this.get("height"),10);}if((E!=G)&&(G>=parseInt(this.get("height"),10))){var I=this.get("animate");this.set("animate",false);this.set("height",G+"px");this.set("animate",I);if(this.browser.ie){this.get("iframe").setStyle("height","99%");this.get("iframe").setStyle("zoom","1");var H=this;window.setTimeout(function(){H.get("iframe").setStyle("height","100%");},1);}}},_formButtons:null,_formButtonClicked:null,_handleFormButtonClick:function(F){var E=A.getTarget(F);this._formButtonClicked=E;},_handleFormSubmit:function(H){this.saveHTML();var G=this.get("element").form,E=this._formButtonClicked||false;A.removeListener(G,"submit",this._handleFormSubmit);if(YAHOO.env.ua.ie){if(E&&!E.disabled){E.click();}}else{if(E&&!E.disabled){E.click();}var F=document.createEvent("HTMLEvents");F.initEvent("submit",true,true);G.dispatchEvent(F);if(YAHOO.env.ua.webkit){if(YAHOO.lang.isFunction(G.submit)){G.submit();}}}},_handleFontSize:function(G){var E=this.toolbar.getButtonById(G.button.id);var F=E.get("label")+"px";this.execCommand("fontsize",F);return false;},_handleColorPicker:function(G){var F=G.button;var E="#"+G.color;if((F=="forecolor")||(F=="backcolor")){this.execCommand(F,E);}},_handleAlign:function(H){var G=null;for(var E=0;E<H.button.menu.length;E++){if(H.button.menu[E].value==H.button.value){G=H.button.menu[E].value;}}var F=this._getSelection();this.execCommand(G,F);return false;},_handleAfterNodeChange:function(){var Q=this._getDomPath(),L=null,H=null,M=null,F=false,J=this.toolbar.getButtonByValue("fontname"),K=this.toolbar.getButtonByValue("fontsize"),E=this.toolbar.getButtonByValue("heading");for(var G=0;G<Q.length;G++){L=Q[G];var P=L.tagName.toLowerCase();if(L.getAttribute("tag")){P=L.getAttribute("tag");}H=L.getAttribute("face");if(C.getStyle(L,"font-family")){H=C.getStyle(L,"font-family");H=H.replace(/'/g,"");}if(P.substring(0,1)=="h"){if(E){for(var I=0;I<E._configs.menu.value.length;I++){if(E._configs.menu.value[I].value.toLowerCase()==P){E.set("label",E._configs.menu.value[I].text);}}this._updateMenuChecked("heading",P);}}}if(J){for(var O=0;O<J._configs.menu.value.length;O++){if(H&&J._configs.menu.value[O].text.toLowerCase()==H.toLowerCase()){F=true;H=J._configs.menu.value[O].text;}}if(!F){H=J._configs.label._initialConfig.value;}var N='<span class="yui-toolbar-fontname-'+this._cleanClassName(H)+'">'+H+"</span>";if(J.get("label")!=N){J.set("label",N);this._updateMenuChecked("fontname",H);}}if(K){M=parseInt(C.getStyle(L,"fontSize"),10);if((M===null)||isNaN(M)){M=K._configs.label._initialConfig.value;}K.set("label",""+M);}if(!this._isElement(L,"body")&&!this._isElement(L,"img")){this.toolbar.enableButton(J);this.toolbar.enableButton(K);this.toolbar.enableButton("forecolor");this.toolbar.enableButton("backcolor");}if(this._isElement(L,"img")){if(YAHOO.widget.Overlay){this.toolbar.enableButton("createlink");}}if(this._hasParent(L,"blockquote")){this.toolbar.selectButton("indent");this.toolbar.disableButton("indent");this.toolbar.enableButton("outdent");}if(this._hasParent(L,"ol")||this._hasParent(L,"ul")){this.toolbar.disableButton("indent");}this._lastButton=null;},_handleInsertImageClick:function(){if(this.get("limitCommands")){if(!this.toolbar.getButtonByValue("insertimage")){return false;
-}}this.toolbar.set("disabled",true);var E=function(){var F=this.currentElement[0],H="http://";if(!F){F=this._getSelectedElement();}if(F){if(F.getAttribute("src")){H=F.getAttribute("src",2);if(H.indexOf(this.get("blankimage"))!=-1){H=this.STR_IMAGE_HERE;}}}var G=prompt(this.STR_IMAGE_URL+": ",H);if((G!=="")&&(G!==null)){F.setAttribute("src",G);}else{if(G===""){F.parentNode.removeChild(F);this.currentElement=[];this.nodeChange();}else{if((G===null)){H=F.getAttribute("src",2);if(H.indexOf(this.get("blankimage"))!=-1){F.parentNode.removeChild(F);this.currentElement=[];this.nodeChange();}}}}this.closeWindow();this.toolbar.set("disabled",false);this.unsubscribe("afterExecCommand",E,this,true);};this.on("afterExecCommand",E,this,true);},_handleInsertImageWindowClose:function(){this.nodeChange();},_isLocalFile:function(E){if((E)&&(E!=="")&&((E.indexOf("file:/")!=-1)||(E.indexOf(":\\")!=-1))){return true;}return false;},_handleCreateLinkClick:function(){if(this.get("limitCommands")){if(!this.toolbar.getButtonByValue("createlink")){return false;}}this.toolbar.set("disabled",true);var E=function(){var H=this.currentElement[0],G="";if(H){if(H.getAttribute("href",2)!==null){G=H.getAttribute("href",2);}}var J=prompt(this.STR_LINK_URL+": ",G);if((J!=="")&&(J!==null)){var I=J;if((I.indexOf(":/"+"/")==-1)&&(I.substring(0,1)!="/")&&(I.substring(0,6).toLowerCase()!="mailto")){if((I.indexOf("@")!=-1)&&(I.substring(0,6).toLowerCase()!="mailto")){I="mailto:"+I;}else{if(I.substring(0,1)!="#"){}}}H.setAttribute("href",I);}else{if(J!==null){var F=this._getDoc().createElement("span");F.innerHTML=H.innerHTML;C.addClass(F,"yui-non");H.parentNode.replaceChild(F,H);}}this.closeWindow();this.toolbar.set("disabled",false);this.unsubscribe("afterExecCommand",E,this,true);};this.on("afterExecCommand",E,this);},_handleCreateLinkWindowClose:function(){this.nodeChange();this.currentElement=[];},render:function(){if(this._rendered){return false;}if(!this.DOMReady){this._queue[this._queue.length]=["render",arguments];return false;}if(this.get("element")){if(this.get("element").tagName){this._textarea=true;if(this.get("element").tagName.toLowerCase()!=="textarea"){this._textarea=false;}}else{return false;}}else{return false;}this._rendered=true;var E=this;window.setTimeout(function(){E._render.call(E);},4);},_render:function(){var E=this;this.set("textarea",this.get("element"));this.get("element_cont").setStyle("display","none");this.get("element_cont").addClass(this.CLASS_CONTAINER);this.set("iframe",this._createIframe());window.setTimeout(function(){E._setInitialContent.call(E);},10);this.get("editor_wrapper").appendChild(this.get("iframe").get("element"));if(this.get("disabled")){this._disableEditor(true);}var F=this.get("toolbar");if(F instanceof B){this.toolbar=F;this.toolbar.set("disabled",true);}else{F.disabled=true;this.toolbar=new B(this.get("toolbar_cont"),F);}this.fireEvent("toolbarLoaded",{type:"toolbarLoaded",target:this.toolbar});this.toolbar.on("toolbarCollapsed",function(){if(this.currentWindow){this.moveWindow();}},this,true);this.toolbar.on("toolbarExpanded",function(){if(this.currentWindow){this.moveWindow();}},this,true);this.toolbar.on("fontsizeClick",this._handleFontSize,this,true);this.toolbar.on("colorPickerClicked",function(G){this._handleColorPicker(G);return false;},this,true);this.toolbar.on("alignClick",this._handleAlign,this,true);this.on("afterNodeChange",this._handleAfterNodeChange,this,true);this.toolbar.on("insertimageClick",this._handleInsertImageClick,this,true);this.on("windowinsertimageClose",this._handleInsertImageWindowClose,this,true);this.toolbar.on("createlinkClick",this._handleCreateLinkClick,this,true);this.on("windowcreatelinkClose",this._handleCreateLinkWindowClose,this,true);this.get("parentNode").replaceChild(this.get("element_cont").get("element"),this.get("element"));this.setStyle("visibility","hidden");this.setStyle("position","absolute");this.setStyle("top","-9999px");this.setStyle("left","-9999px");this.get("element_cont").appendChild(this.get("element"));this.get("element_cont").setStyle("display","block");C.addClass(this.get("iframe").get("parentNode"),this.CLASS_EDITABLE_CONT);this.get("iframe").addClass(this.CLASS_EDITABLE);this.get("element_cont").setStyle("width",this.get("width"));C.setStyle(this.get("iframe").get("parentNode"),"height",this.get("height"));this.get("iframe").setStyle("width","100%");this.get("iframe").setStyle("height","100%");this._setupDD();window.setTimeout(function(){E._setupAfterElement.call(E);},0);this.fireEvent("afterRender",{type:"afterRender",target:this});},execCommand:function(G,F){var J=this.fireEvent("beforeExecCommand",{type:"beforeExecCommand",target:this,args:arguments});if((J===false)||(this.STOP_EXEC_COMMAND)){this.STOP_EXEC_COMMAND=false;return false;}this._lastCommand=G;this._setMarkupType(G);if(this.browser.ie){this._getWindow().focus();}var E=true;if(this.get("limitCommands")){if(!this.toolbar.getButtonByValue(G)){E=false;}}this.editorDirty=true;if((typeof this["cmd_"+G.toLowerCase()]=="function")&&E){var I=this["cmd_"+G.toLowerCase()](F);E=I[0];if(I[1]){G=I[1];}if(I[2]){F=I[2];}}if(E){try{this._getDoc().execCommand(G,false,F);}catch(H){}}else{}this.on("afterExecCommand",function(){this.unsubscribeAll("afterExecCommand");this.nodeChange();},this,true);this.fireEvent("afterExecCommand",{type:"afterExecCommand",target:this});},cmd_bold:function(H){if(!this.browser.webkit){var G=this._getSelectedElement();if(G&&this._isElement(G,"span")&&this._hasSelection()){if(G.style.fontWeight=="bold"){G.style.fontWeight="";var E=this._getDoc().createElement("b"),F=G.parentNode;F.replaceChild(E,G);E.appendChild(G);}}}return[true];},cmd_italic:function(H){if(!this.browser.webkit){var G=this._getSelectedElement();if(G&&this._isElement(G,"span")&&this._hasSelection()){if(G.style.fontStyle=="italic"){G.style.fontStyle="";var E=this._getDoc().createElement("i"),F=G.parentNode;F.replaceChild(E,G);E.appendChild(G);}}}return[true];},cmd_underline:function(F){if(!this.browser.webkit){var E=this._getSelectedElement();
-if(E&&this._isElement(E,"span")){if(E.style.textDecoration=="underline"){E.style.textDecoration="none";}else{E.style.textDecoration="underline";}return[false];}}return[true];},cmd_backcolor:function(H){var E=true,F=this._getSelectedElement(),G="backcolor";if(this.browser.gecko||this.browser.opera){this._setEditorStyle(true);G="hilitecolor";}if(!this._isElement(F,"body")&&!this._hasSelection()){F.style.backgroundColor=H;this._selectNode(F);E=false;}else{if(this.get("insert")){F=this._createInsertElement({backgroundColor:H});}else{this._createCurrentElement("span",{backgroundColor:H,color:F.style.color,fontSize:F.style.fontSize,fontFamily:F.style.fontFamily});this._selectNode(this.currentElement[0]);}E=false;}return[E,G];},cmd_forecolor:function(G){var E=true,F=this._getSelectedElement();if(!this._isElement(F,"body")&&!this._hasSelection()){C.setStyle(F,"color",G);this._selectNode(F);E=false;}else{if(this.get("insert")){F=this._createInsertElement({color:G});}else{this._createCurrentElement("span",{color:G,fontSize:F.style.fontSize,fontFamily:F.style.fontFamily,backgroundColor:F.style.backgroundColor});this._selectNode(this.currentElement[0]);}E=false;}return[E];},cmd_unlink:function(E){this._swapEl(this.currentElement[0],"span",function(F){F.className="yui-non";});return[false];},cmd_createlink:function(G){var F=this._getSelectedElement(),E=null;if(this._hasParent(F,"a")){this.currentElement[0]=this._hasParent(F,"a");}else{if(this._isElement(F,"li")){E=this._getDoc().createElement("a");E.innerHTML=F.innerHTML;F.innerHTML="";F.appendChild(E);this.currentElement[0]=E;}else{if(!this._isElement(F,"a")){this._createCurrentElement("a");E=this._swapEl(this.currentElement[0],"a");this.currentElement[0]=E;}else{this.currentElement[0]=F;}}}return[false];},cmd_insertimage:function(J){var E=true,F=null,I="insertimage",H=this._getSelectedElement();if(J===""){J=this.get("blankimage");}if(this._isElement(H,"img")){this.currentElement[0]=H;E=false;}else{if(this._getDoc().queryCommandEnabled(I)){this._getDoc().execCommand(I,false,J);var K=this._getDoc().getElementsByTagName("img");for(var G=0;G<K.length;G++){if(!YAHOO.util.Dom.hasClass(K[G],"yui-img")){YAHOO.util.Dom.addClass(K[G],"yui-img");this.currentElement[0]=K[G];}}E=false;}else{if(H==this._getDoc().body){F=this._getDoc().createElement("img");F.setAttribute("src",J);YAHOO.util.Dom.addClass(F,"yui-img");this._getDoc().body.appendChild(F);}else{this._createCurrentElement("img");F=this._getDoc().createElement("img");F.setAttribute("src",J);YAHOO.util.Dom.addClass(F,"yui-img");this.currentElement[0].parentNode.replaceChild(F,this.currentElement[0]);}this.currentElement[0]=F;E=false;}}return[E];},cmd_inserthtml:function(H){var E=true,G="inserthtml",F=null,I=null;if(this.browser.webkit&&!this._getDoc().queryCommandEnabled(G)){this._createCurrentElement("img");F=this._getDoc().createElement("span");F.innerHTML=H;this.currentElement[0].parentNode.replaceChild(F,this.currentElement[0]);E=false;}else{if(this.browser.ie){I=this._getRange();if(I.item){I.item(0).outerHTML=H;}else{I.pasteHTML(H);}E=false;}}return[E];},cmd_list:function(e){var V=true,Z=null,N=0,G=null,U="",d=this._getSelectedElement(),W="insertorderedlist";if(e=="ul"){W="insertunorderedlist";}if((this.browser.webkit&&!this.browser.webkit4)||(this.browser.opera)){if(this._isElement(d,"li")&&this._isElement(d.parentNode,e)){G=d.parentNode;Z=this._getDoc().createElement("span");YAHOO.util.Dom.addClass(Z,"yui-non");U="";var F=G.getElementsByTagName("li"),I=((this.browser.opera&&this.get("ptags"))?"p":"div");for(N=0;N<F.length;N++){U+="<"+I+">"+F[N].innerHTML+"</"+I+">";}Z.innerHTML=U;this.currentElement[0]=G;this.currentElement[0].parentNode.replaceChild(Z,this.currentElement[0]);}else{this._createCurrentElement(e.toLowerCase());Z=this._getDoc().createElement(e);for(N=0;N<this.currentElement.length;N++){var K=this._getDoc().createElement("li");K.innerHTML=this.currentElement[N].innerHTML+'<span class="yui-non">&nbsp;</span>&nbsp;';Z.appendChild(K);if(N>0){this.currentElement[N].parentNode.removeChild(this.currentElement[N]);}}var T=((this.browser.opera)?"<BR>":"<br>"),S=Z.firstChild.innerHTML.split(T),Y,a;if(S.length>0){Z.innerHTML="";for(Y=0;Y<S.length;Y++){a=this._getDoc().createElement("li");a.innerHTML=S[Y];Z.appendChild(a);}}this.currentElement[0].parentNode.replaceChild(Z,this.currentElement[0]);this.currentElement[0]=Z;var H=this.currentElement[0].firstChild;H=C.getElementsByClassName("yui-non","span",H)[0];if(this.browser.webkit){this._getSelection().setBaseAndExtent(H,1,H,H.innerText.length);}}V=false;}else{G=this._getSelectedElement();if(this._isElement(G,"li")&&this._isElement(G.parentNode,e)||(this.browser.ie&&this._isElement(this._getRange().parentElement,"li"))||(this.browser.ie&&this._isElement(G,"ul"))||(this.browser.ie&&this._isElement(G,"ol"))){if(this.browser.ie){if((this.browser.ie&&this._isElement(G,"ul"))||(this.browser.ie&&this._isElement(G,"ol"))){G=G.getElementsByTagName("li")[0];}U="";var J=G.parentNode.getElementsByTagName("li");for(var X=0;X<J.length;X++){U+=J[X].innerHTML+"<br>";}var c=this._getDoc().createElement("span");c.innerHTML=U;G.parentNode.parentNode.replaceChild(c,G.parentNode);}else{this.nodeChange();this._getDoc().execCommand(W,"",G.parentNode);this.nodeChange();}V=false;}if(this.browser.opera){var R=this;window.setTimeout(function(){var f=R._getDoc().getElementsByTagName("li");for(var g=0;g<f.length;g++){if(f[g].innerHTML.toLowerCase()=="<br>"){f[g].parentNode.parentNode.removeChild(f[g].parentNode);}}},30);}if(this.browser.ie&&V){var L="";if(this._getRange().html){L="<li>"+this._getRange().html+"</li>";}else{var M=this._getRange().text.split("\n");if(M.length>1){L="";for(var Q=0;Q<M.length;Q++){L+="<li>"+M[Q]+"</li>";}}else{var P=this._getRange().text;if(P===""){L='<li id="new_list_item">'+P+"</li>";}else{L="<li>"+P+"</li>";}}}this._getRange().pasteHTML("<"+e+">"+L+"</"+e+">");var E=this._getDoc().getElementById("new_list_item");if(E){var O=this._getDoc().body.createTextRange();
-O.moveToElementText(E);O.collapse(false);O.select();E.id="";}V=false;}}return V;},cmd_insertorderedlist:function(E){return[this.cmd_list("ol")];},cmd_insertunorderedlist:function(E){return[this.cmd_list("ul")];},cmd_fontname:function(H){var E=true,G=this._getSelectedElement();this.currentFont=H;if(G&&G.tagName&&!this._hasSelection()&&!this._isElement(G,"body")&&!this.get("insert")){YAHOO.util.Dom.setStyle(G,"font-family",H);E=false;}else{if(this.get("insert")&&!this._hasSelection()){var F=this._createInsertElement({fontFamily:H});E=false;}}return[E];},cmd_fontsize:function(H){var E=null,G=true;E=this._getSelectedElement();if(this.browser.webkit){if(this.currentElement[0]){if(E==this.currentElement[0]){G=false;YAHOO.util.Dom.setStyle(E,"fontSize",H);this._selectNode(E);this.currentElement[0]=E;}}}if(G){if(!this._isElement(this._getSelectedElement(),"body")&&(!this._hasSelection())){E=this._getSelectedElement();YAHOO.util.Dom.setStyle(E,"fontSize",H);if(this.get("insert")&&this.browser.ie){var F=this._getRange();F.collapse(false);F.select();}else{this._selectNode(E);}}else{if(this.currentElement&&(this.currentElement.length>0)&&(!this._hasSelection())&&(!this.get("insert"))){YAHOO.util.Dom.setStyle(this.currentElement,"fontSize",H);}else{if(this.get("insert")&&!this._hasSelection()){E=this._createInsertElement({fontSize:H});this.currentElement[0]=E;this._selectNode(this.currentElement[0]);}else{this._createCurrentElement("span",{"fontSize":H,fontFamily:E.style.fontFamily,color:E.style.color,backgroundColor:E.style.backgroundColor});this._selectNode(this.currentElement[0]);}}}}return[false];},_swapEl:function(F,E,H){var G=this._getDoc().createElement(E);if(F){G.innerHTML=F.innerHTML;}if(typeof H=="function"){H.call(this,G);}if(F){F.parentNode.replaceChild(G,F);}return G;},_createInsertElement:function(E){this._createCurrentElement("span",E);var F=this.currentElement[0];if(this.browser.webkit){F.innerHTML='<span class="yui-non">&nbsp;</span>';F=F.firstChild;this._getSelection().setBaseAndExtent(F,1,F,F.innerText.length);}else{if(this.browser.ie||this.browser.opera){F.innerHTML="&nbsp;";}}this.focus();this._selectNode(F,true);return F;},_createCurrentElement:function(G,J){G=((G)?G:"a");var R=null,F=[],H=this._getDoc();if(this.currentFont){if(!J){J={};}J.fontFamily=this.currentFont;this.currentFont=null;}this.currentElement=[];var M=function(X,Z){var Y=null;X=((X)?X:"span");X=X.toLowerCase();switch(X){case"h1":case"h2":case"h3":case"h4":case"h5":case"h6":Y=H.createElement(X);break;default:Y=H.createElement(X);if(X==="span"){YAHOO.util.Dom.addClass(Y,"yui-tag-"+X);YAHOO.util.Dom.addClass(Y,"yui-tag");Y.setAttribute("tag",X);}for(var W in Z){if(YAHOO.lang.hasOwnProperty(Z,W)){Y.style[W]=Z[W];}}break;}return Y;};if(!this._hasSelection()){if(this._getDoc().queryCommandEnabled("insertimage")){this._getDoc().execCommand("insertimage",false,"yui-tmp-img");var L=this._getDoc().getElementsByTagName("img");for(var Q=0;Q<L.length;Q++){if(L[Q].getAttribute("src",2)=="yui-tmp-img"){F=M(G,J);L[Q].parentNode.replaceChild(F,L[Q]);this.currentElement[this.currentElement.length]=F;}}}else{if(this.currentEvent){R=YAHOO.util.Event.getTarget(this.currentEvent);}else{R=this._getDoc().body;}}if(R){F=M(G,J);if(this._isElement(R,"body")||this._isElement(R,"html")){if(this._isElement(R,"html")){R=this._getDoc().body;}R.appendChild(F);}else{if(R.nextSibling){R.parentNode.insertBefore(F,R.nextSibling);}else{R.parentNode.appendChild(F);}}this.currentElement[this.currentElement.length]=F;this.currentEvent=null;if(this.browser.webkit){this._getSelection().setBaseAndExtent(F,0,F,0);if(this.browser.webkit3){this._getSelection().collapseToStart();}else{this._getSelection().collapse(true);}}}}else{this._setEditorStyle(true);this._getDoc().execCommand("fontname",false,"yui-tmp");var E=[],P,V=["font","span","i","b","u"];if(!this._isElement(this._getSelectedElement(),"body")){V[V.length]=this._getDoc().getElementsByTagName(this._getSelectedElement().tagName);V[V.length]=this._getDoc().getElementsByTagName(this._getSelectedElement().parentNode.tagName);}for(var K=0;K<V.length;K++){var I=this._getDoc().getElementsByTagName(V[K]);for(var U=0;U<I.length;U++){E[E.length]=I[U];}}for(var S=0;S<E.length;S++){if((YAHOO.util.Dom.getStyle(E[S],"font-family")=="yui-tmp")||(E[S].face&&(E[S].face=="yui-tmp"))){if(G!=="span"){F=M(G,J);}else{F=M(E[S].tagName,J);}F.innerHTML=E[S].innerHTML;if(this._isElement(E[S],"ol")||(this._isElement(E[S],"ul"))){var N=E[S].getElementsByTagName("li")[0];E[S].style.fontFamily="inherit";N.style.fontFamily="inherit";F.innerHTML=N.innerHTML;N.innerHTML="";N.appendChild(F);this.currentElement[this.currentElement.length]=F;}else{if(this._isElement(E[S],"li")){E[S].innerHTML="";E[S].appendChild(F);E[S].style.fontFamily="inherit";this.currentElement[this.currentElement.length]=F;}else{if(E[S].parentNode){E[S].parentNode.replaceChild(F,E[S]);this.currentElement[this.currentElement.length]=F;this.currentEvent=null;if(this.browser.webkit){this._getSelection().setBaseAndExtent(F,0,F,0);if(this.browser.webkit3){this._getSelection().collapseToStart();}else{this._getSelection().collapse(true);}}if(this.browser.ie&&J&&J.fontSize){this._getSelection().empty();}if(this.browser.gecko){this._getSelection().collapseToStart();}}}}}}var T=this.currentElement.length;for(var O=0;O<T;O++){if((O+1)!=T){if(this.currentElement[O]&&this.currentElement[O].nextSibling){if(this._isElement(this.currentElement[O],"br")){this.currentElement[this.currentElement.length]=this.currentElement[O].nextSibling;}}}}}},saveHTML:function(){var F=this.cleanHTML();if(this._textarea){this.get("element").value=F;}else{this.get("element").innerHTML=F;}if(this.get("saveEl")!==this.get("element")){var E=this.get("saveEl");if(D.isString(E)){E=C.get(E);}if(E){if(E.tagName.toLowerCase()==="textarea"){E.value=F;}else{E.innerHTML=F;}}}return F;},setEditorHTML:function(F){var E=this._cleanIncomingHTML(F);E=E.replace(/RIGHT_BRACKET/gi,"{");E=E.replace(/LEFT_BRACKET/gi,"}");
-this._getDoc().body.innerHTML=E;this.nodeChange();},getEditorHTML:function(){try{var E=this._getDoc().body;if(E===null){return null;}return this._getDoc().body.innerHTML;}catch(F){return"";}},show:function(){if(this.browser.gecko){this._setDesignMode("on");this.focus();}if(this.browser.webkit){var E=this;window.setTimeout(function(){E._setInitialContent.call(E);},10);}if(this.currentWindow){this.closeWindow();}this.get("iframe").setStyle("position","static");this.get("iframe").setStyle("left","");},hide:function(){if(this.currentWindow){this.closeWindow();}if(this._fixNodesTimer){clearTimeout(this._fixNodesTimer);this._fixNodesTimer=null;}if(this._nodeChangeTimer){clearTimeout(this._nodeChangeTimer);this._nodeChangeTimer=null;}this._lastNodeChange=0;this.get("iframe").setStyle("position","absolute");this.get("iframe").setStyle("left","-9999px");},_cleanIncomingHTML:function(E){E=E.replace(/{/gi,"RIGHT_BRACKET");E=E.replace(/}/gi,"LEFT_BRACKET");E=E.replace(/<strong([^>]*)>/gi,"<b$1>");E=E.replace(/<\/strong>/gi,"</b>");E=E.replace(/<embed([^>]*)>/gi,"<YUI_EMBED$1>");E=E.replace(/<\/embed>/gi,"</YUI_EMBED>");E=E.replace(/<em([^>]*)>/gi,"<i$1>");E=E.replace(/<\/em>/gi,"</i>");E=E.replace(/_moz_dirty=""/gi,"");E=E.replace(/<YUI_EMBED([^>]*)>/gi,"<embed$1>");E=E.replace(/<\/YUI_EMBED>/gi,"</embed>");if(this.get("plainText")){E=E.replace(/\n/g,"<br>").replace(/\r/g,"<br>");E=E.replace(/  /gi,"&nbsp;&nbsp;");E=E.replace(/\t/gi,"&nbsp;&nbsp;&nbsp;&nbsp;");}E=E.replace(/<script([^>]*)>/gi,"<bad>");E=E.replace(/<\/script([^>]*)>/gi,"</bad>");E=E.replace(/&lt;script([^>]*)&gt;/gi,"<bad>");E=E.replace(/&lt;\/script([^>]*)&gt;/gi,"</bad>");E=E.replace(/\r\n/g,"<YUI_LF>").replace(/\n/g,"<YUI_LF>").replace(/\r/g,"<YUI_LF>");E=E.replace(new RegExp("<bad([^>]*)>(.*?)</bad>","gi"),"");E=E.replace(/<YUI_LF>/g,"\n");return E;},cleanHTML:function(H){if(!H){H=this.getEditorHTML();}var F=this.get("markup");H=this.pre_filter_linebreaks(H,F);H=this.filter_msword(H);H=H.replace(/<img([^>]*)\/>/gi,"<YUI_IMG$1>");H=H.replace(/<img([^>]*)>/gi,"<YUI_IMG$1>");H=H.replace(/<input([^>]*)\/>/gi,"<YUI_INPUT$1>");H=H.replace(/<input([^>]*)>/gi,"<YUI_INPUT$1>");H=H.replace(/<ul([^>]*)>/gi,"<YUI_UL$1>");H=H.replace(/<\/ul>/gi,"</YUI_UL>");H=H.replace(/<blockquote([^>]*)>/gi,"<YUI_BQ$1>");H=H.replace(/<\/blockquote>/gi,"</YUI_BQ>");H=H.replace(/<embed([^>]*)>/gi,"<YUI_EMBED$1>");H=H.replace(/<\/embed>/gi,"</YUI_EMBED>");if((F=="semantic")||(F=="xhtml")){H=H.replace(/<i(\s+[^>]*)?>/gi,"<em$1>");H=H.replace(/<\/i>/gi,"</em>");H=H.replace(/<b(\s+[^>]*)?>/gi,"<strong$1>");H=H.replace(/<\/b>/gi,"</strong>");}H=H.replace(/_moz_dirty=""/gi,"");H=H.replace(/<strike/gi,'<span style="text-decoration: line-through;"');H=H.replace(/\/strike>/gi,"/span>");if(this.browser.ie){H=H.replace(/text-decoration/gi,"text-decoration");H=H.replace(/font-weight/gi,"font-weight");H=H.replace(/_width="([^>]*)"/gi,"");H=H.replace(/_height="([^>]*)"/gi,"");var G=this._baseHREF.replace(/\//gi,"\\/"),I=new RegExp('src="'+G,"gi");H=H.replace(I,'src="');}H=H.replace(/<font/gi,"<font");H=H.replace(/<\/font>/gi,"</font>");H=H.replace(/<span/gi,"<span");H=H.replace(/<\/span>/gi,"</span>");if((F=="semantic")||(F=="xhtml")||(F=="css")){H=H.replace(new RegExp('<font([^>]*)face="([^>]*)">(.*?)</font>',"gi"),'<span $1 style="font-family: $2;">$3</span>');H=H.replace(/<u/gi,'<span style="text-decoration: underline;"');if(this.browser.webkit){H=H.replace(new RegExp('<span class="Apple-style-span" style="font-weight: bold;">([^>]*)</span>',"gi"),"<strong>$1</strong>");H=H.replace(new RegExp('<span class="Apple-style-span" style="font-style: italic;">([^>]*)</span>',"gi"),"<em>$1</em>");}H=H.replace(/\/u>/gi,"/span>");if(F=="css"){H=H.replace(/<em([^>]*)>/gi,"<i$1>");H=H.replace(/<\/em>/gi,"</i>");H=H.replace(/<strong([^>]*)>/gi,"<b$1>");H=H.replace(/<\/strong>/gi,"</b>");H=H.replace(/<b/gi,'<span style="font-weight: bold;"');H=H.replace(/\/b>/gi,"/span>");H=H.replace(/<i/gi,'<span style="font-style: italic;"');H=H.replace(/\/i>/gi,"/span>");}H=H.replace(/  /gi," ");}else{H=H.replace(/<u/gi,"<u");H=H.replace(/\/u>/gi,"/u>");}H=H.replace(/<ol([^>]*)>/gi,"<ol$1>");H=H.replace(/\/ol>/gi,"/ol>");H=H.replace(/<li/gi,"<li");H=H.replace(/\/li>/gi,"/li>");H=this.filter_safari(H);H=this.filter_internals(H);H=this.filter_all_rgb(H);H=this.post_filter_linebreaks(H,F);if(F=="xhtml"){H=H.replace(/<YUI_IMG([^>]*)>/g,"<img $1 />");H=H.replace(/<YUI_INPUT([^>]*)>/g,"<input $1 />");}else{H=H.replace(/<YUI_IMG([^>]*)>/g,"<img $1>");H=H.replace(/<YUI_INPUT([^>]*)>/g,"<input $1>");}H=H.replace(/<YUI_UL([^>]*)>/g,"<ul$1>");H=H.replace(/<\/YUI_UL>/g,"</ul>");H=this.filter_invalid_lists(H);H=H.replace(/<YUI_BQ([^>]*)>/g,"<blockquote$1>");H=H.replace(/<\/YUI_BQ>/g,"</blockquote>");H=H.replace(/<YUI_EMBED([^>]*)>/g,"<embed$1>");H=H.replace(/<\/YUI_EMBED>/g,"</embed>");H=H.replace(/ &amp; /gi," YUI_AMP ");H=H.replace(/ &amp;/gi," YUI_AMP_F ");H=H.replace(/&amp; /gi," YUI_AMP_R ");H=H.replace(/&amp;/gi,"&");H=H.replace(/ YUI_AMP /gi," &amp; ");H=H.replace(/ YUI_AMP_F /gi," &amp;");H=H.replace(/ YUI_AMP_R /gi,"&amp; ");H=YAHOO.lang.trim(H);if(this.get("removeLineBreaks")){H=H.replace(/\n/g,"").replace(/\r/g,"");H=H.replace(/  /gi," ");}for(var E in this.invalidHTML){if(YAHOO.lang.hasOwnProperty(this.invalidHTML,E)){if(D.isObject(E)&&E.keepContents){H=H.replace(new RegExp("<"+E+"([^>]*)>(.*?)</"+E+">","gi"),"$1");}else{H=H.replace(new RegExp("<"+E+"([^>]*)>(.*?)</"+E+">","gi"),"");}}}this.fireEvent("cleanHTML",{type:"cleanHTML",target:this,html:H});return H;},filter_msword:function(E){if(!this.get("filterWord")){return E;}E=E.replace(/<o:p>\s*<\/o:p>/g,"");E=E.replace(/<o:p>[\s\S]*?<\/o:p>/g,"&nbsp;");E=E.replace(/<w:[^>]*>[\s\S]*?<\/w:[^>]*>/gi,"");E=E.replace(/\s*mso-[^:]+:[^;"]+;?/gi,"");E=E.replace(/\s*MARGIN: 0cm 0cm 0pt\s*;/gi,"");E=E.replace(/\s*MARGIN: 0cm 0cm 0pt\s*"/gi,'"');E=E.replace(/\s*TEXT-INDENT: 0cm\s*;/gi,"");E=E.replace(/\s*TEXT-INDENT: 0cm\s*"/gi,'"');E=E.replace(/\s*PAGE-BREAK-BEFORE: [^\s;]+;?"/gi,'"');
-E=E.replace(/\s*FONT-VARIANT: [^\s;]+;?"/gi,'"');E=E.replace(/\s*tab-stops:[^;"]*;?/gi,"");E=E.replace(/\s*tab-stops:[^"]*/gi,"");E=E.replace(/<\\?\?xml[^>]*>/gi,"");E=E.replace(/<(\w[^>]*) lang=([^ |>]*)([^>]*)/gi,"<$1$3");E=E.replace(/<(\w[^>]*) language=([^ |>]*)([^>]*)/gi,"<$1$3");E=E.replace(/<(\w[^>]*) onmouseover="([^\"]*)"([^>]*)/gi,"<$1$3");E=E.replace(/<(\w[^>]*) onmouseout="([^\"]*)"([^>]*)/gi,"<$1$3");return E;},filter_invalid_lists:function(E){E=E.replace(/<\/li>\n/gi,"</li>");E=E.replace(/<\/li><ol>/gi,"</li><li><ol>");E=E.replace(/<\/ol>/gi,"</ol></li>");E=E.replace(/<\/ol><\/li>\n/gi,"</ol>");E=E.replace(/<\/li><ul>/gi,"</li><li><ul>");E=E.replace(/<\/ul>/gi,"</ul></li>");E=E.replace(/<\/ul><\/li>\n?/gi,"</ul>");E=E.replace(/<\/li>/gi,"</li>");E=E.replace(/<\/ol>/gi,"</ol>");E=E.replace(/<ol>/gi,"<ol>");E=E.replace(/<ul>/gi,"<ul>");return E;},filter_safari:function(E){if(this.browser.webkit){E=E.replace(/<span class="Apple-tab-span" style="white-space:pre">([^>])<\/span>/gi,"&nbsp;&nbsp;&nbsp;&nbsp;");E=E.replace(/Apple-style-span/gi,"");E=E.replace(/style="line-height: normal;"/gi,"");E=E.replace(/yui-wk-div/gi,"");E=E.replace(/yui-wk-p/gi,"");E=E.replace(/<li><\/li>/gi,"");E=E.replace(/<li> <\/li>/gi,"");E=E.replace(/<li>  <\/li>/gi,"");if(this.get("ptags")){E=E.replace(/<div([^>]*)>/g,"<p$1>");E=E.replace(/<\/div>/gi,"</p>");}else{E=E.replace(/<div([^>]*)>([ tnr]*)<\/div>/gi,"<br>");E=E.replace(/<\/div>/gi,"");}}return E;},filter_internals:function(E){E=E.replace(/\r/g,"");E=E.replace(/<\/?(body|head|html)[^>]*>/gi,"");E=E.replace(/<YUI_BR><\/li>/gi,"</li>");E=E.replace(/yui-tag-span/gi,"");E=E.replace(/yui-tag/gi,"");E=E.replace(/yui-non/gi,"");E=E.replace(/yui-img/gi,"");E=E.replace(/ tag="span"/gi,"");E=E.replace(/ class=""/gi,"");E=E.replace(/ style=""/gi,"");E=E.replace(/ class=" "/gi,"");E=E.replace(/ class="  "/gi,"");E=E.replace(/ target=""/gi,"");E=E.replace(/ title=""/gi,"");if(this.browser.ie){E=E.replace(/ class= /gi,"");E=E.replace(/ class= >/gi,"");}return E;},filter_all_rgb:function(I){var H=new RegExp("rgb\\s*?\\(\\s*?([0-9]+).*?,\\s*?([0-9]+).*?,\\s*?([0-9]+).*?\\)","gi");var E=I.match(H);if(D.isArray(E)){for(var G=0;G<E.length;G++){var F=this.filter_rgb(E[G]);I=I.replace(E[G].toString(),F);}}return I;},filter_rgb:function(G){if(G.toLowerCase().indexOf("rgb")!=-1){var J=new RegExp("(.*?)rgb\\s*?\\(\\s*?([0-9]+).*?,\\s*?([0-9]+).*?,\\s*?([0-9]+).*?\\)(.*?)","gi");var F=G.replace(J,"$1,$2,$3,$4,$5").split(",");if(F.length==5){var I=parseInt(F[1],10).toString(16);var H=parseInt(F[2],10).toString(16);var E=parseInt(F[3],10).toString(16);I=I.length==1?"0"+I:I;H=H.length==1?"0"+H:H;E=E.length==1?"0"+E:E;G="#"+I+H+E;}}return G;},pre_filter_linebreaks:function(F,E){if(this.browser.webkit){F=F.replace(/<br class="khtml-block-placeholder">/gi,"<YUI_BR>");F=F.replace(/<br class="webkit-block-placeholder">/gi,"<YUI_BR>");}F=F.replace(/<br>/gi,"<YUI_BR>");F=F.replace(/<br (.*?)>/gi,"<YUI_BR>");F=F.replace(/<br\/>/gi,"<YUI_BR>");F=F.replace(/<br \/>/gi,"<YUI_BR>");F=F.replace(/<div><YUI_BR><\/div>/gi,"<YUI_BR>");F=F.replace(/<p>(&nbsp;|&#160;)<\/p>/g,"<YUI_BR>");F=F.replace(/<p><br>&nbsp;<\/p>/gi,"<YUI_BR>");F=F.replace(/<p>&nbsp;<\/p>/gi,"<YUI_BR>");F=F.replace(/<YUI_BR>$/,"");F=F.replace(/<YUI_BR><\/p>/g,"</p>");if(this.browser.ie){F=F.replace(/&nbsp;&nbsp;&nbsp;&nbsp;/g,"\t");}return F;},post_filter_linebreaks:function(F,E){if(E=="xhtml"){F=F.replace(/<YUI_BR>/g,"<br />");}else{F=F.replace(/<YUI_BR>/g,"<br>");}return F;},clearEditorDoc:function(){this._getDoc().body.innerHTML="&nbsp;";},openWindow:function(E){},moveWindow:function(){},_closeWindow:function(){},closeWindow:function(){this.toolbar.resetAllButtons();this.focus();},destroy:function(){if(this._nodeChangeDelayTimer){clearTimeout(this._nodeChangeDelayTimer);}this.hide();if(this.resize){this.resize.destroy();}if(this.dd){this.dd.unreg();}if(this.get("panel")){this.get("panel").destroy();}this.saveHTML();this.toolbar.destroy();this.setStyle("visibility","visible");this.setStyle("position","static");this.setStyle("top","");this.setStyle("left","");var E=this.get("element");this.get("element_cont").get("parentNode").replaceChild(E,this.get("element_cont").get("element"));this.get("element_cont").get("element").innerHTML="";this.set("handleSubmit",false);return true;},toString:function(){var E="SimpleEditor";if(this.get&&this.get("element_cont")){E="SimpleEditor (#"+this.get("element_cont").get("id")+")"+((this.get("disabled")?" Disabled":""));}return E;}});YAHOO.widget.EditorInfo={_instances:{},blankImage:"",window:{},panel:null,getEditorById:function(E){if(!YAHOO.lang.isString(E)){E=E.id;}if(this._instances[E]){return this._instances[E];}return false;},saveAll:function(G){var F,H,E=YAHOO.widget.EditorInfo._instances;if(G){for(F in E){if(D.hasOwnProperty(E,F)){H=E[F];if(H.get("element").form&&(H.get("element").form==G)){H.saveHTML();}}}}else{for(F in E){if(D.hasOwnProperty(E,F)){E[F].saveHTML();}}}},toString:function(){var E=0;for(var F in this._instances){if(D.hasOwnProperty(this._instances,F)){E++;}}return"Editor Info ("+E+" registered intance"+((E>1)?"s":"")+")";}};})();YAHOO.register("simpleeditor",YAHOO.widget.SimpleEditor,{version:"2.8.0r4",build:"2449"});
\ No newline at end of file
diff --git a/koha-tmpl/intranet-tmpl/prog/en/lib/yui/editor/simpleeditor.js b/koha-tmpl/intranet-tmpl/prog/en/lib/yui/editor/simpleeditor.js
deleted file mode 100644 (file)
index f59b1e5..0000000
+++ /dev/null
@@ -1,7406 +0,0 @@
-/*
-Copyright (c) 2009, Yahoo! Inc. All rights reserved.
-Code licensed under the BSD License:
-http://developer.yahoo.net/yui/license.txt
-version: 2.8.0r4
-*/
-(function() {
-var Dom = YAHOO.util.Dom,
-    Event = YAHOO.util.Event,
-    Lang = YAHOO.lang;
-    /**
-     * @module editor    
-     * @description <p>Creates a rich custom Toolbar Button. Primarily used with the Rich Text Editor's Toolbar</p>
-     * @class ToolbarButtonAdvanced
-     * @namespace YAHOO.widget
-     * @requires yahoo, dom, element, event, container_core, menu, button
-     * 
-     * Provides a toolbar button based on the button and menu widgets.
-     * @constructor
-     * @class ToolbarButtonAdvanced
-     * @param {String/HTMLElement} el The element to turn into a button.
-     * @param {Object} attrs Object liternal containing configuration parameters.
-    */
-    if (YAHOO.widget.Button) {
-        YAHOO.widget.ToolbarButtonAdvanced = YAHOO.widget.Button;
-        /**
-        * @property buttonType
-        * @private
-        * @description Tells if the Button is a Rich Button or a Simple Button
-        */
-        YAHOO.widget.ToolbarButtonAdvanced.prototype.buttonType = 'rich';
-        /**
-        * @method checkValue
-        * @param {String} value The value of the option that we want to mark as selected
-        * @description Select an option by value
-        */
-        YAHOO.widget.ToolbarButtonAdvanced.prototype.checkValue = function(value) {
-            var _menuItems = this.getMenu().getItems();
-            if (_menuItems.length === 0) {
-                this.getMenu()._onBeforeShow();
-                _menuItems = this.getMenu().getItems();
-            }
-            for (var i = 0; i < _menuItems.length; i++) {
-                _menuItems[i].cfg.setProperty('checked', false);
-                if (_menuItems[i].value == value) {
-                    _menuItems[i].cfg.setProperty('checked', true);
-                }
-            }      
-        };
-    } else {
-        YAHOO.widget.ToolbarButtonAdvanced = function() {};
-    }
-
-
-    /**
-     * @description <p>Creates a basic custom Toolbar Button. Primarily used with the Rich Text Editor's Toolbar</p><p>Provides a toolbar button based on the button and menu widgets, &lt;select&gt; elements are used in place of menu's.</p>
-     * @class ToolbarButton
-     * @namespace YAHOO.widget
-     * @requires yahoo, dom, element, event
-     * @extends YAHOO.util.Element
-     * 
-     * 
-     * @constructor
-     * @param {String/HTMLElement} el The element to turn into a button.
-     * @param {Object} attrs Object liternal containing configuration parameters.
-    */
-
-    YAHOO.widget.ToolbarButton = function(el, attrs) {
-        
-        if (Lang.isObject(arguments[0]) && !Dom.get(el).nodeType) {
-            attrs = el;
-        }
-        var local_attrs = (attrs || {});
-
-        var oConfig = {
-            element: null,
-            attributes: local_attrs
-        };
-
-        if (!oConfig.attributes.type) {
-            oConfig.attributes.type = 'push';
-        }
-        
-        oConfig.element = document.createElement('span');
-        oConfig.element.setAttribute('unselectable', 'on');
-        oConfig.element.className = 'yui-button yui-' + oConfig.attributes.type + '-button';
-        oConfig.element.innerHTML = '<span class="first-child"><a href="#">LABEL</a></span>';
-        oConfig.element.firstChild.firstChild.tabIndex = '-1';
-        oConfig.attributes.id = (oConfig.attributes.id || Dom.generateId());
-        oConfig.element.id = oConfig.attributes.id;
-
-        YAHOO.widget.ToolbarButton.superclass.constructor.call(this, oConfig.element, oConfig.attributes);
-    };
-
-    YAHOO.extend(YAHOO.widget.ToolbarButton, YAHOO.util.Element, {
-        /**
-        * @property buttonType
-        * @private
-        * @description Tells if the Button is a Rich Button or a Simple Button
-        */
-        buttonType: 'normal',
-        /**
-        * @method _handleMouseOver
-        * @private
-        * @description Adds classes to the button elements on mouseover (hover)
-        */
-        _handleMouseOver: function() {
-            if (!this.get('disabled')) {
-                this.addClass('yui-button-hover');
-                this.addClass('yui-' + this.get('type') + '-button-hover');
-            }
-        },
-        /**
-        * @method _handleMouseOut
-        * @private
-        * @description Removes classes from the button elements on mouseout (hover)
-        */
-        _handleMouseOut: function() {
-            this.removeClass('yui-button-hover');
-            this.removeClass('yui-' + this.get('type') + '-button-hover');
-        },
-        /**
-        * @method checkValue
-        * @param {String} value The value of the option that we want to mark as selected
-        * @description Select an option by value
-        */
-        checkValue: function(value) {
-            if (this.get('type') == 'menu') {
-                var opts = this._button.options;
-                for (var i = 0; i < opts.length; i++) {
-                    if (opts[i].value == value) {
-                        opts.selectedIndex = i;
-                    }
-                }
-            }
-        },
-        /** 
-        * @method init
-        * @description The ToolbarButton class's initialization method
-        */        
-        init: function(p_oElement, p_oAttributes) {
-            YAHOO.widget.ToolbarButton.superclass.init.call(this, p_oElement, p_oAttributes);
-
-            this.on('mouseover', this._handleMouseOver, this, true);
-            this.on('mouseout', this._handleMouseOut, this, true);
-            this.on('click', function(ev) {
-                Event.stopEvent(ev);
-                return false;
-            }, this, true);
-        },
-        /**
-        * @method initAttributes
-        * @description Initializes all of the configuration attributes used to create 
-        * the toolbar.
-        * @param {Object} attr Object literal specifying a set of 
-        * configuration attributes used to create the toolbar.
-        */        
-        initAttributes: function(attr) {
-            YAHOO.widget.ToolbarButton.superclass.initAttributes.call(this, attr);
-            /**
-            * @attribute value
-            * @description The value of the button
-            * @type String
-            */            
-            this.setAttributeConfig('value', {
-                value: attr.value
-            });
-            /**
-            * @attribute menu
-            * @description The menu attribute, see YAHOO.widget.Button
-            * @type Object
-            */            
-            this.setAttributeConfig('menu', {
-                value: attr.menu || false
-            });
-            /**
-            * @attribute type
-            * @description The type of button to create: push, menu, color, select, spin
-            * @type String
-            */            
-            this.setAttributeConfig('type', {
-                value: attr.type,
-                writeOnce: true,
-                method: function(type) {
-                    var el, opt;
-                    if (!this._button) {
-                        this._button = this.get('element').getElementsByTagName('a')[0];
-                    }
-                    switch (type) {
-                        case 'select':
-                        case 'menu':
-                            el = document.createElement('select');
-                            el.id = this.get('id');
-                            var menu = this.get('menu');
-                            for (var i = 0; i < menu.length; i++) {
-                                opt = document.createElement('option');
-                                opt.innerHTML = menu[i].text;
-                                opt.value = menu[i].value;
-                                if (menu[i].checked) {
-                                    opt.selected = true;
-                                }
-                                el.appendChild(opt);
-                            }
-                            this._button.parentNode.replaceChild(el, this._button);
-                            Event.on(el, 'change', this._handleSelect, this, true);
-                            this._button = el;
-                            break;
-                    }
-                }
-            });
-
-            /**
-            * @attribute disabled
-            * @description Set the button into a disabled state
-            * @type String
-            */            
-            this.setAttributeConfig('disabled', {
-                value: attr.disabled || false,
-                method: function(disabled) {
-                    if (disabled) {
-                        this.addClass('yui-button-disabled');
-                        this.addClass('yui-' + this.get('type') + '-button-disabled');
-                    } else {
-                        this.removeClass('yui-button-disabled');
-                        this.removeClass('yui-' + this.get('type') + '-button-disabled');
-                    }
-                    if ((this.get('type') == 'menu') || (this.get('type') == 'select')) {
-                        this._button.disabled = disabled;
-                    }
-                }
-            });
-
-            /**
-            * @attribute label
-            * @description The text label for the button
-            * @type String
-            */            
-            this.setAttributeConfig('label', {
-                value: attr.label,
-                method: function(label) {
-                    if (!this._button) {
-                        this._button = this.get('element').getElementsByTagName('a')[0];
-                    }
-                    if (this.get('type') == 'push') {
-                        this._button.innerHTML = label;
-                    }
-                }
-            });
-
-            /**
-            * @attribute title
-            * @description The title of the button
-            * @type String
-            */            
-            this.setAttributeConfig('title', {
-                value: attr.title
-            });
-
-            /**
-            * @config container
-            * @description The container that the button is rendered to, handled by Toolbar
-            * @type String
-            */            
-            this.setAttributeConfig('container', {
-                value: null,
-                writeOnce: true,
-                method: function(cont) {
-                    this.appendTo(cont);
-                }
-            });
-
-        },
-        /** 
-        * @private
-        * @method _handleSelect
-        * @description The event fired when a change event gets fired on a select element
-        * @param {Event} ev The change event.
-        */        
-        _handleSelect: function(ev) {
-            var tar = Event.getTarget(ev);
-            var value = tar.options[tar.selectedIndex].value;
-            this.fireEvent('change', {type: 'change', value: value });
-        },
-        /** 
-        * @method getMenu
-        * @description A stub function to mimic YAHOO.widget.Button's getMenu method
-        */        
-        getMenu: function() {
-            return this.get('menu');
-        },
-        /** 
-        * @method destroy
-        * @description Destroy the button
-        */        
-        destroy: function() {
-            Event.purgeElement(this.get('element'), true);
-            this.get('element').parentNode.removeChild(this.get('element'));
-            //Brutal Object Destroy
-            for (var i in this) {
-                if (Lang.hasOwnProperty(this, i)) {
-                    this[i] = null;
-                }
-            }       
-        },
-        /** 
-        * @method fireEvent
-        * @description Overridden fireEvent method to prevent DOM events from firing if the button is disabled.
-        */        
-        fireEvent: function(p_sType, p_aArgs) {
-            //  Disabled buttons should not respond to DOM events
-            if (this.DOM_EVENTS[p_sType] && this.get('disabled')) {
-                Event.stopEvent(p_aArgs);
-                return;
-            }
-        
-            YAHOO.widget.ToolbarButton.superclass.fireEvent.call(this, p_sType, p_aArgs);
-        },
-        /**
-        * @method toString
-        * @description Returns a string representing the toolbar.
-        * @return {String}
-        */        
-        toString: function() {
-            return 'ToolbarButton (' + this.get('id') + ')';
-        }
-        
-    });
-})();
-/**
- * @module editor
- * @description <p>Creates a rich Toolbar widget based on Button. Primarily used with the Rich Text Editor</p>
- * @namespace YAHOO.widget
- * @requires yahoo, dom, element, event, toolbarbutton
- * @optional container_core, dragdrop
- */
-(function() {
-var Dom = YAHOO.util.Dom,
-    Event = YAHOO.util.Event,
-    Lang = YAHOO.lang;
-    
-    var getButton = function(id) {
-        var button = id;
-        if (Lang.isString(id)) {
-            button = this.getButtonById(id);
-        }
-        if (Lang.isNumber(id)) {
-            button = this.getButtonByIndex(id);
-        }
-        if ((!(button instanceof YAHOO.widget.ToolbarButton)) && (!(button instanceof YAHOO.widget.ToolbarButtonAdvanced))) {
-            button = this.getButtonByValue(id);
-        }
-        if ((button instanceof YAHOO.widget.ToolbarButton) || (button instanceof YAHOO.widget.ToolbarButtonAdvanced)) {
-            return button;
-        }
-        return false;
-    };
-
-    /**
-     * Provides a rich toolbar widget based on the button and menu widgets
-     * @constructor
-     * @class Toolbar
-     * @extends YAHOO.util.Element
-     * @param {String/HTMLElement} el The element to turn into a toolbar.
-     * @param {Object} attrs Object liternal containing configuration parameters.
-    */
-    YAHOO.widget.Toolbar = function(el, attrs) {
-        
-        if (Lang.isObject(arguments[0]) && !Dom.get(el).nodeType) {
-            attrs = el;
-        }
-        var local_attrs = {};
-        if (attrs) {
-            Lang.augmentObject(local_attrs, attrs); //Break the config reference
-        }
-        
-
-        var oConfig = {
-            element: null,
-            attributes: local_attrs
-        };
-        
-        
-        if (Lang.isString(el) && Dom.get(el)) {
-            oConfig.element = Dom.get(el);
-        } else if (Lang.isObject(el) && Dom.get(el) && Dom.get(el).nodeType) {  
-            oConfig.element = Dom.get(el);
-        }
-        
-
-        if (!oConfig.element) {
-            oConfig.element = document.createElement('DIV');
-            oConfig.element.id = Dom.generateId();
-            
-            if (local_attrs.container && Dom.get(local_attrs.container)) {
-                Dom.get(local_attrs.container).appendChild(oConfig.element);
-            }
-        }
-        
-
-        if (!oConfig.element.id) {
-            oConfig.element.id = ((Lang.isString(el)) ? el : Dom.generateId());
-        }
-        
-        var fs = document.createElement('fieldset');
-        var lg = document.createElement('legend');
-        lg.innerHTML = 'Toolbar';
-        fs.appendChild(lg);
-        
-        var cont = document.createElement('DIV');
-        oConfig.attributes.cont = cont;
-        Dom.addClass(cont, 'yui-toolbar-subcont');
-        fs.appendChild(cont);
-        oConfig.element.appendChild(fs);
-
-        oConfig.element.tabIndex = -1;
-
-        
-        oConfig.attributes.element = oConfig.element;
-        oConfig.attributes.id = oConfig.element.id;
-
-        this._configuredButtons = [];
-
-        YAHOO.widget.Toolbar.superclass.constructor.call(this, oConfig.element, oConfig.attributes);
-         
-    };
-
-    YAHOO.extend(YAHOO.widget.Toolbar, YAHOO.util.Element, {
-        /**
-        * @protected
-        * @property _configuredButtons
-        * @type Array
-        */
-        _configuredButtons: null,
-        /**
-        * @method _addMenuClasses
-        * @private
-        * @description This method is called from Menu's renderEvent to add a few more classes to the menu items
-        * @param {String} ev The event that fired.
-        * @param {Array} na Array of event information.
-        * @param {Object} o Button config object. 
-        */
-        _addMenuClasses: function(ev, na, o) {
-            Dom.addClass(this.element, 'yui-toolbar-' + o.get('value') + '-menu');
-            if (Dom.hasClass(o._button.parentNode.parentNode, 'yui-toolbar-select')) {
-                Dom.addClass(this.element, 'yui-toolbar-select-menu');
-            }
-            var items = this.getItems();
-            for (var i = 0; i < items.length; i++) {
-                Dom.addClass(items[i].element, 'yui-toolbar-' + o.get('value') + '-' + ((items[i].value) ? items[i].value.replace(/ /g, '-').toLowerCase() : items[i]._oText.nodeValue.replace(/ /g, '-').toLowerCase()));
-                Dom.addClass(items[i].element, 'yui-toolbar-' + o.get('value') + '-' + ((items[i].value) ? items[i].value.replace(/ /g, '-') : items[i]._oText.nodeValue.replace(/ /g, '-')));
-            }
-        },
-        /** 
-        * @property buttonType
-        * @description The default button to use
-        * @type Object
-        */
-        buttonType: YAHOO.widget.ToolbarButton,
-        /** 
-        * @property dd
-        * @description The DragDrop instance associated with the Toolbar
-        * @type Object
-        */
-        dd: null,
-        /** 
-        * @property _colorData
-        * @description Object reference containing colors hex and text values.
-        * @type Object
-        */
-        _colorData: {
-/* {{{ _colorData */
-    '#111111': 'Obsidian',
-    '#2D2D2D': 'Dark Gray',
-    '#434343': 'Shale',
-    '#5B5B5B': 'Flint',
-    '#737373': 'Gray',
-    '#8B8B8B': 'Concrete',
-    '#A2A2A2': 'Gray',
-    '#B9B9B9': 'Titanium',
-    '#000000': 'Black',
-    '#D0D0D0': 'Light Gray',
-    '#E6E6E6': 'Silver',
-    '#FFFFFF': 'White',
-    '#BFBF00': 'Pumpkin',
-    '#FFFF00': 'Yellow',
-    '#FFFF40': 'Banana',
-    '#FFFF80': 'Pale Yellow',
-    '#FFFFBF': 'Butter',
-    '#525330': 'Raw Siena',
-    '#898A49': 'Mildew',
-    '#AEA945': 'Olive',
-    '#7F7F00': 'Paprika',
-    '#C3BE71': 'Earth',
-    '#E0DCAA': 'Khaki',
-    '#FCFAE1': 'Cream',
-    '#60BF00': 'Cactus',
-    '#80FF00': 'Chartreuse',
-    '#A0FF40': 'Green',
-    '#C0FF80': 'Pale Lime',
-    '#DFFFBF': 'Light Mint',
-    '#3B5738': 'Green',
-    '#668F5A': 'Lime Gray',
-    '#7F9757': 'Yellow',
-    '#407F00': 'Clover',
-    '#8A9B55': 'Pistachio',
-    '#B7C296': 'Light Jade',
-    '#E6EBD5': 'Breakwater',
-    '#00BF00': 'Spring Frost',
-    '#00FF80': 'Pastel Green',
-    '#40FFA0': 'Light Emerald',
-    '#80FFC0': 'Sea Foam',
-    '#BFFFDF': 'Sea Mist',
-    '#033D21': 'Dark Forrest',
-    '#438059': 'Moss',
-    '#7FA37C': 'Medium Green',
-    '#007F40': 'Pine',
-    '#8DAE94': 'Yellow Gray Green',
-    '#ACC6B5': 'Aqua Lung',
-    '#DDEBE2': 'Sea Vapor',
-    '#00BFBF': 'Fog',
-    '#00FFFF': 'Cyan',
-    '#40FFFF': 'Turquoise Blue',
-    '#80FFFF': 'Light Aqua',
-    '#BFFFFF': 'Pale Cyan',
-    '#033D3D': 'Dark Teal',
-    '#347D7E': 'Gray Turquoise',
-    '#609A9F': 'Green Blue',
-    '#007F7F': 'Seaweed',
-    '#96BDC4': 'Green Gray',
-    '#B5D1D7': 'Soapstone',
-    '#E2F1F4': 'Light Turquoise',
-    '#0060BF': 'Summer Sky',
-    '#0080FF': 'Sky Blue',
-    '#40A0FF': 'Electric Blue',
-    '#80C0FF': 'Light Azure',
-    '#BFDFFF': 'Ice Blue',
-    '#1B2C48': 'Navy',
-    '#385376': 'Biscay',
-    '#57708F': 'Dusty Blue',
-    '#00407F': 'Sea Blue',
-    '#7792AC': 'Sky Blue Gray',
-    '#A8BED1': 'Morning Sky',
-    '#DEEBF6': 'Vapor',
-    '#0000BF': 'Deep Blue',
-    '#0000FF': 'Blue',
-    '#4040FF': 'Cerulean Blue',
-    '#8080FF': 'Evening Blue',
-    '#BFBFFF': 'Light Blue',
-    '#212143': 'Deep Indigo',
-    '#373E68': 'Sea Blue',
-    '#444F75': 'Night Blue',
-    '#00007F': 'Indigo Blue',
-    '#585E82': 'Dockside',
-    '#8687A4': 'Blue Gray',
-    '#D2D1E1': 'Light Blue Gray',
-    '#6000BF': 'Neon Violet',
-    '#8000FF': 'Blue Violet',
-    '#A040FF': 'Violet Purple',
-    '#C080FF': 'Violet Dusk',
-    '#DFBFFF': 'Pale Lavender',
-    '#302449': 'Cool Shale',
-    '#54466F': 'Dark Indigo',
-    '#655A7F': 'Dark Violet',
-    '#40007F': 'Violet',
-    '#726284': 'Smoky Violet',
-    '#9E8FA9': 'Slate Gray',
-    '#DCD1DF': 'Violet White',
-    '#BF00BF': 'Royal Violet',
-    '#FF00FF': 'Fuchsia',
-    '#FF40FF': 'Magenta',
-    '#FF80FF': 'Orchid',
-    '#FFBFFF': 'Pale Magenta',
-    '#4A234A': 'Dark Purple',
-    '#794A72': 'Medium Purple',
-    '#936386': 'Cool Granite',
-    '#7F007F': 'Purple',
-    '#9D7292': 'Purple Moon',
-    '#C0A0B6': 'Pale Purple',
-    '#ECDAE5': 'Pink Cloud',
-    '#BF005F': 'Hot Pink',
-    '#FF007F': 'Deep Pink',
-    '#FF409F': 'Grape',
-    '#FF80BF': 'Electric Pink',
-    '#FFBFDF': 'Pink',
-    '#451528': 'Purple Red',
-    '#823857': 'Purple Dino',
-    '#A94A76': 'Purple Gray',
-    '#7F003F': 'Rose',
-    '#BC6F95': 'Antique Mauve',
-    '#D8A5BB': 'Cool Marble',
-    '#F7DDE9': 'Pink Granite',
-    '#C00000': 'Apple',
-    '#FF0000': 'Fire Truck',
-    '#FF4040': 'Pale Red',
-    '#FF8080': 'Salmon',
-    '#FFC0C0': 'Warm Pink',
-    '#441415': 'Sepia',
-    '#82393C': 'Rust',
-    '#AA4D4E': 'Brick',
-    '#800000': 'Brick Red',
-    '#BC6E6E': 'Mauve',
-    '#D8A3A4': 'Shrimp Pink',
-    '#F8DDDD': 'Shell Pink',
-    '#BF5F00': 'Dark Orange',
-    '#FF7F00': 'Orange',
-    '#FF9F40': 'Grapefruit',
-    '#FFBF80': 'Canteloupe',
-    '#FFDFBF': 'Wax',
-    '#482C1B': 'Dark Brick',
-    '#855A40': 'Dirt',
-    '#B27C51': 'Tan',
-    '#7F3F00': 'Nutmeg',
-    '#C49B71': 'Mustard',
-    '#E1C4A8': 'Pale Tan',
-    '#FDEEE0': 'Marble'
-/* }}} */
-        },
-        /** 
-        * @property _colorPicker
-        * @description The HTML Element containing the colorPicker
-        * @type HTMLElement
-        */
-        _colorPicker: null,
-        /** 
-        * @property STR_COLLAPSE
-        * @description String for Toolbar Collapse Button
-        * @type String
-        */
-        STR_COLLAPSE: 'Collapse Toolbar',
-        /** 
-        * @property STR_EXPAND
-        * @description String for Toolbar Collapse Button - Expand
-        * @type String
-        */
-        STR_EXPAND: 'Expand Toolbar',
-        /** 
-        * @property STR_SPIN_LABEL
-        * @description String for spinbutton dynamic label. Note the {VALUE} will be replaced with YAHOO.lang.substitute
-        * @type String
-        */
-        STR_SPIN_LABEL: 'Spin Button with value {VALUE}. Use Control Shift Up Arrow and Control Shift Down arrow keys to increase or decrease the value.',
-        /** 
-        * @property STR_SPIN_UP
-        * @description String for spinbutton up
-        * @type String
-        */
-        STR_SPIN_UP: 'Click to increase the value of this input',
-        /** 
-        * @property STR_SPIN_DOWN
-        * @description String for spinbutton down
-        * @type String
-        */
-        STR_SPIN_DOWN: 'Click to decrease the value of this input',
-        /** 
-        * @property _titlebar
-        * @description Object reference to the titlebar
-        * @type HTMLElement
-        */
-        _titlebar: null,
-        /** 
-        * @property browser
-        * @description Standard browser detection
-        * @type Object
-        */
-        browser: YAHOO.env.ua,
-        /**
-        * @protected
-        * @property _buttonList
-        * @description Internal property list of current buttons in the toolbar
-        * @type Array
-        */
-        _buttonList: null,
-        /**
-        * @protected
-        * @property _buttonGroupList
-        * @description Internal property list of current button groups in the toolbar
-        * @type Array
-        */
-        _buttonGroupList: null,
-        /**
-        * @protected
-        * @property _sep
-        * @description Internal reference to the separator HTML Element for cloning
-        * @type HTMLElement
-        */
-        _sep: null,
-        /**
-        * @protected
-        * @property _sepCount
-        * @description Internal refernce for counting separators, so we can give them a useful class name for styling
-        * @type Number
-        */
-        _sepCount: null,
-        /**
-        * @protected
-        * @property draghandle
-        * @type HTMLElement
-        */
-        _dragHandle: null,
-        /**
-        * @protected
-        * @property _toolbarConfigs
-        * @type Object
-        */
-        _toolbarConfigs: {
-            renderer: true
-        },
-        /**
-        * @protected
-        * @property CLASS_CONTAINER
-        * @description Default CSS class to apply to the toolbar container element
-        * @type String
-        */
-        CLASS_CONTAINER: 'yui-toolbar-container',
-        /**
-        * @protected
-        * @property CLASS_DRAGHANDLE
-        * @description Default CSS class to apply to the toolbar's drag handle element
-        * @type String
-        */
-        CLASS_DRAGHANDLE: 'yui-toolbar-draghandle',
-        /**
-        * @protected
-        * @property CLASS_SEPARATOR
-        * @description Default CSS class to apply to all separators in the toolbar
-        * @type String
-        */
-        CLASS_SEPARATOR: 'yui-toolbar-separator',
-        /**
-        * @protected
-        * @property CLASS_DISABLED
-        * @description Default CSS class to apply when the toolbar is disabled
-        * @type String
-        */
-        CLASS_DISABLED: 'yui-toolbar-disabled',
-        /**
-        * @protected
-        * @property CLASS_PREFIX
-        * @description Default prefix for dynamically created class names
-        * @type String
-        */
-        CLASS_PREFIX: 'yui-toolbar',
-        /** 
-        * @method init
-        * @description The Toolbar class's initialization method
-        */
-        init: function(p_oElement, p_oAttributes) {
-            YAHOO.widget.Toolbar.superclass.init.call(this, p_oElement, p_oAttributes);
-        },
-        /**
-        * @method initAttributes
-        * @description Initializes all of the configuration attributes used to create 
-        * the toolbar.
-        * @param {Object} attr Object literal specifying a set of 
-        * configuration attributes used to create the toolbar.
-        */
-        initAttributes: function(attr) {
-            YAHOO.widget.Toolbar.superclass.initAttributes.call(this, attr);
-            this.addClass(this.CLASS_CONTAINER);
-
-            /**
-            * @attribute buttonType
-            * @description The buttonType to use (advanced or basic)
-            * @type String
-            */
-            this.setAttributeConfig('buttonType', {
-                value: attr.buttonType || 'basic',
-                writeOnce: true,
-                validator: function(type) {
-                    switch (type) {
-                        case 'advanced':
-                        case 'basic':
-                            return true;
-                    }
-                    return false;
-                },
-                method: function(type) {
-                    if (type == 'advanced') {
-                        if (YAHOO.widget.Button) {
-                            this.buttonType = YAHOO.widget.ToolbarButtonAdvanced;
-                        } else {
-                            this.buttonType = YAHOO.widget.ToolbarButton;
-                        }
-                    } else {
-                        this.buttonType = YAHOO.widget.ToolbarButton;
-                    }
-                }
-            });
-
-
-            /**
-            * @attribute buttons
-            * @description Object specifying the buttons to include in the toolbar
-            * Example:
-            * <code><pre>
-            * {
-            *   { id: 'b3', type: 'button', label: 'Underline', value: 'underline' },
-            *   { type: 'separator' },
-            *   { id: 'b4', type: 'menu', label: 'Align', value: 'align',
-            *       menu: [
-            *           { text: "Left", value: 'alignleft' },
-            *           { text: "Center", value: 'aligncenter' },
-            *           { text: "Right", value: 'alignright' }
-            *       ]
-            *   }
-            * }
-            * </pre></code>
-            * @type Array
-            */
-            
-            this.setAttributeConfig('buttons', {
-                value: [],
-                writeOnce: true,
-                method: function(data) {
-                    var i, button, buttons, len, b;
-                    for (i in data) {
-                        if (Lang.hasOwnProperty(data, i)) {
-                            if (data[i].type == 'separator') {
-                                this.addSeparator();
-                            } else if (data[i].group !== undefined) {
-                                buttons = this.addButtonGroup(data[i]);
-                                if (buttons) {
-                                    len = buttons.length;
-                                    for(b = 0; b < len; b++) {
-                                        if (buttons[b]) {
-                                            this._configuredButtons[this._configuredButtons.length] = buttons[b].id;
-                                        }
-                                    }
-                                }
-                                
-                            } else {
-                                button = this.addButton(data[i]);
-                                if (button) {
-                                    this._configuredButtons[this._configuredButtons.length] = button.id;
-                                }
-                            }
-                        }
-                    }
-                }
-            });
-
-            /**
-            * @attribute disabled
-            * @description Boolean indicating if the toolbar should be disabled. It will also disable the draggable attribute if it is on.
-            * @default false
-            * @type Boolean
-            */
-            this.setAttributeConfig('disabled', {
-                value: false,
-                method: function(disabled) {
-                    if (this.get('disabled') === disabled) {
-                        return false;
-                    }
-                    if (disabled) {
-                        this.addClass(this.CLASS_DISABLED);
-                        this.set('draggable', false);
-                        this.disableAllButtons();
-                    } else {
-                        this.removeClass(this.CLASS_DISABLED);
-                        if (this._configs.draggable._initialConfig.value) {
-                            //Draggable by default, set it back
-                            this.set('draggable', true);
-                        }
-                        this.resetAllButtons();
-                    }
-                }
-            });
-
-            /**
-            * @config cont
-            * @description The container for the toolbar.
-            * @type HTMLElement
-            */
-            this.setAttributeConfig('cont', {
-                value: attr.cont,
-                readOnly: true
-            });
-
-
-            /**
-            * @attribute grouplabels
-            * @description Boolean indicating if the toolbar should show the group label's text string.
-            * @default true
-            * @type Boolean
-            */
-            this.setAttributeConfig('grouplabels', {
-                value: ((attr.grouplabels === false) ? false : true),
-                method: function(grouplabels) {
-                    if (grouplabels) {
-                        Dom.removeClass(this.get('cont'), (this.CLASS_PREFIX + '-nogrouplabels'));
-                    } else {
-                        Dom.addClass(this.get('cont'), (this.CLASS_PREFIX + '-nogrouplabels'));
-                    }
-                }
-            });
-            /**
-            * @attribute titlebar
-            * @description Boolean indicating if the toolbar should have a titlebar. If
-            * passed a string, it will use that as the titlebar text
-            * @default false
-            * @type Boolean or String
-            */
-            this.setAttributeConfig('titlebar', {
-                value: false,
-                method: function(titlebar) {
-                    if (titlebar) {
-                        if (this._titlebar && this._titlebar.parentNode) {
-                            this._titlebar.parentNode.removeChild(this._titlebar);
-                        }
-                        this._titlebar = document.createElement('DIV');
-                        this._titlebar.tabIndex = '-1';
-                        Event.on(this._titlebar, 'focus', function() {
-                            this._handleFocus();
-                        }, this, true);
-                        Dom.addClass(this._titlebar, this.CLASS_PREFIX + '-titlebar');
-                        if (Lang.isString(titlebar)) {
-                            var h2 = document.createElement('h2');
-                            h2.tabIndex = '-1';
-                            h2.innerHTML = '<a href="#" tabIndex="0">' + titlebar + '</a>';
-                            this._titlebar.appendChild(h2);
-                            Event.on(h2.firstChild, 'click', function(ev) {
-                                Event.stopEvent(ev);
-                            });
-                            Event.on([h2, h2.firstChild], 'focus', function() {
-                                this._handleFocus();
-                            }, this, true);
-                        }
-                        if (this.get('firstChild')) {
-                            this.insertBefore(this._titlebar, this.get('firstChild'));
-                        } else {
-                            this.appendChild(this._titlebar);
-                        }
-                        if (this.get('collapse')) {
-                            this.set('collapse', true);
-                        }
-                    } else if (this._titlebar) {
-                        if (this._titlebar && this._titlebar.parentNode) {
-                            this._titlebar.parentNode.removeChild(this._titlebar);
-                        }
-                    }
-                }
-            });
-
-
-            /**
-            * @attribute collapse
-            * @description Boolean indicating if the titlebar should have a collapse button.
-            * The collapse button will not remove the toolbar, it will minimize it to the titlebar
-            * @default false
-            * @type Boolean
-            */
-            this.setAttributeConfig('collapse', {
-                value: false,
-                method: function(collapse) {
-                    if (this._titlebar) {
-                        var collapseEl = null;
-                        var el = Dom.getElementsByClassName('collapse', 'span', this._titlebar);
-                        if (collapse) {
-                            if (el.length > 0) {
-                                //There is already a collapse button
-                                return true;
-                            }
-                            collapseEl = document.createElement('SPAN');
-                            collapseEl.innerHTML = 'X';
-                            collapseEl.title = this.STR_COLLAPSE;
-
-                            Dom.addClass(collapseEl, 'collapse');
-                            this._titlebar.appendChild(collapseEl);
-                            Event.addListener(collapseEl, 'click', function() {
-                                if (Dom.hasClass(this.get('cont').parentNode, 'yui-toolbar-container-collapsed')) {
-                                    this.collapse(false); //Expand Toolbar
-                                } else {
-                                    this.collapse(); //Collapse Toolbar
-                                }
-                            }, this, true);
-                        } else {
-                            collapseEl = Dom.getElementsByClassName('collapse', 'span', this._titlebar);
-                            if (collapseEl[0]) {
-                                if (Dom.hasClass(this.get('cont').parentNode, 'yui-toolbar-container-collapsed')) {
-                                    //We are closed, reopen the titlebar..
-                                    this.collapse(false); //Expand Toolbar
-                                }
-                                collapseEl[0].parentNode.removeChild(collapseEl[0]);
-                            }
-                        }
-                    }
-                }
-            });
-
-            /**
-            * @attribute draggable
-            * @description Boolean indicating if the toolbar should be draggable.  
-            * @default false
-            * @type Boolean
-            */
-
-            this.setAttributeConfig('draggable', {
-                value: (attr.draggable || false),
-                method: function(draggable) {
-                    if (draggable && !this.get('titlebar')) {
-                        if (!this._dragHandle) {
-                            this._dragHandle = document.createElement('SPAN');
-                            this._dragHandle.innerHTML = '|';
-                            this._dragHandle.setAttribute('title', 'Click to drag the toolbar');
-                            this._dragHandle.id = this.get('id') + '_draghandle';
-                            Dom.addClass(this._dragHandle, this.CLASS_DRAGHANDLE);
-                            if (this.get('cont').hasChildNodes()) {
-                                this.get('cont').insertBefore(this._dragHandle, this.get('cont').firstChild);
-                            } else {
-                                this.get('cont').appendChild(this._dragHandle);
-                            }
-                            this.dd = new YAHOO.util.DD(this.get('id'));
-                            this.dd.setHandleElId(this._dragHandle.id);
-                            
-                        }
-                    } else {
-                        if (this._dragHandle) {
-                            this._dragHandle.parentNode.removeChild(this._dragHandle);
-                            this._dragHandle = null;
-                            this.dd = null;
-                        }
-                    }
-                    if (this._titlebar) {
-                        if (draggable) {
-                            this.dd = new YAHOO.util.DD(this.get('id'));
-                            this.dd.setHandleElId(this._titlebar);
-                            Dom.addClass(this._titlebar, 'draggable');
-                        } else {
-                            Dom.removeClass(this._titlebar, 'draggable');
-                            if (this.dd) {
-                                this.dd.unreg();
-                                this.dd = null;
-                            }
-                        }
-                    }
-                },
-                validator: function(value) {
-                    var ret = true;
-                    if (!YAHOO.util.DD) {
-                        ret = false;
-                    }
-                    return ret;
-                }
-            });
-
-        },
-        /**
-        * @method addButtonGroup
-        * @description Add a new button group to the toolbar. (uses addButton)
-        * @param {Object} oGroup Object literal reference to the Groups Config (contains an array of button configs as well as the group label)
-        */
-        addButtonGroup: function(oGroup) {
-            if (!this.get('element')) {
-                this._queue[this._queue.length] = ['addButtonGroup', arguments];
-                return false;
-            }
-            
-            if (!this.hasClass(this.CLASS_PREFIX + '-grouped')) {
-                this.addClass(this.CLASS_PREFIX + '-grouped');
-            }
-            var div = document.createElement('DIV');
-            Dom.addClass(div, this.CLASS_PREFIX + '-group');
-            Dom.addClass(div, this.CLASS_PREFIX + '-group-' + oGroup.group);
-            if (oGroup.label) {
-                var label = document.createElement('h3');
-                label.innerHTML = oGroup.label;
-                div.appendChild(label);
-            }
-            if (!this.get('grouplabels')) {
-                Dom.addClass(this.get('cont'), this.CLASS_PREFIX, '-nogrouplabels');
-            }
-
-            this.get('cont').appendChild(div);
-
-            //For accessibility, let's put all of the group buttons in an Unordered List
-            var ul = document.createElement('ul');
-            div.appendChild(ul);
-
-            if (!this._buttonGroupList) {
-                this._buttonGroupList = {};
-            }
-            
-            this._buttonGroupList[oGroup.group] = ul;
-
-            //An array of the button ids added to this group
-            //This is used for destruction later...
-            var addedButtons = [],
-                button;
-            
-
-            for (var i = 0; i < oGroup.buttons.length; i++) {
-                var li = document.createElement('li');
-                li.className = this.CLASS_PREFIX + '-groupitem';
-                ul.appendChild(li);
-                if ((oGroup.buttons[i].type !== undefined) && oGroup.buttons[i].type == 'separator') {
-                    this.addSeparator(li);
-                } else {
-                    oGroup.buttons[i].container = li;
-                    button = this.addButton(oGroup.buttons[i]);
-                    if (button) {
-                        addedButtons[addedButtons.length]  = button.id;
-                    }
-                }
-            }
-            return addedButtons;
-        },
-        /**
-        * @method addButtonToGroup
-        * @description Add a new button to a toolbar group. Buttons supported:
-        *   push, split, menu, select, color, spin
-        * @param {Object} oButton Object literal reference to the Button's Config
-        * @param {String} group The Group identifier passed into the initial config
-        * @param {HTMLElement} after Optional HTML element to insert this button after in the DOM.
-        */
-        addButtonToGroup: function(oButton, group, after) {
-            var groupCont = this._buttonGroupList[group],
-                li = document.createElement('li');
-
-            li.className = this.CLASS_PREFIX + '-groupitem';
-            oButton.container = li;
-            this.addButton(oButton, after);
-            groupCont.appendChild(li);
-        },
-        /**
-        * @method addButton
-        * @description Add a new button to the toolbar. Buttons supported:
-        *   push, split, menu, select, color, spin
-        * @param {Object} oButton Object literal reference to the Button's Config
-        * @param {HTMLElement} after Optional HTML element to insert this button after in the DOM.
-        */
-        addButton: function(oButton, after) {
-            if (!this.get('element')) {
-                this._queue[this._queue.length] = ['addButton', arguments];
-                return false;
-            }
-            if (!this._buttonList) {
-                this._buttonList = [];
-            }
-            if (!oButton.container) {
-                oButton.container = this.get('cont');
-            }
-
-            if ((oButton.type == 'menu') || (oButton.type == 'split') || (oButton.type == 'select')) {
-                if (Lang.isArray(oButton.menu)) {
-                    for (var i in oButton.menu) {
-                        if (Lang.hasOwnProperty(oButton.menu, i)) {
-                            var funcObject = {
-                                fn: function(ev, x, oMenu) {
-                                    if (!oButton.menucmd) {
-                                        oButton.menucmd = oButton.value;
-                                    }
-                                    oButton.value = ((oMenu.value) ? oMenu.value : oMenu._oText.nodeValue);
-                                },
-                                scope: this
-                            };
-                            oButton.menu[i].onclick = funcObject;
-                        }
-                    }
-                }
-            }
-            var _oButton = {}, skip = false;
-            for (var o in oButton) {
-                if (Lang.hasOwnProperty(oButton, o)) {
-                    if (!this._toolbarConfigs[o]) {
-                        _oButton[o] = oButton[o];
-                    }
-                }
-            }
-            if (oButton.type == 'select') {
-                _oButton.type = 'menu';
-            }
-            if (oButton.type == 'spin') {
-                _oButton.type = 'push';
-            }
-            if (_oButton.type == 'color') {
-                if (YAHOO.widget.Overlay) {
-                    _oButton = this._makeColorButton(_oButton);
-                } else {
-                    skip = true;
-                }
-            }
-            if (_oButton.menu) {
-                if ((YAHOO.widget.Overlay) && (oButton.menu instanceof YAHOO.widget.Overlay)) {
-                    oButton.menu.showEvent.subscribe(function() {
-                        this._button = _oButton;
-                    });
-                } else {
-                    for (var m = 0; m < _oButton.menu.length; m++) {
-                        if (!_oButton.menu[m].value) {
-                            _oButton.menu[m].value = _oButton.menu[m].text;
-                        }
-                    }
-                    if (this.browser.webkit) {
-                        _oButton.focusmenu = false;
-                    }
-                }
-            }
-            if (skip) {
-                oButton = false;
-            } else {
-                //Add to .get('buttons') manually
-                this._configs.buttons.value[this._configs.buttons.value.length] = oButton;
-                
-                var tmp = new this.buttonType(_oButton);
-                tmp.get('element').tabIndex = '-1';
-                tmp.get('element').setAttribute('role', 'button');
-                tmp._selected = true;
-                
-                if (this.get('disabled')) {
-                    //Toolbar is disabled, disable the new button too!
-                    tmp.set('disabled', true);
-                }
-                if (!oButton.id) {
-                    oButton.id = tmp.get('id');
-                }
-                
-                if (after) {
-                    var el = tmp.get('element');
-                    var nextSib = null;
-                    if (after.get) {
-                        nextSib = after.get('element').nextSibling;
-                    } else if (after.nextSibling) {
-                        nextSib = after.nextSibling;
-                    }
-                    if (nextSib) {
-                        nextSib.parentNode.insertBefore(el, nextSib);
-                    }
-                }
-                tmp.addClass(this.CLASS_PREFIX + '-' + tmp.get('value'));
-
-                var icon = document.createElement('span');
-                icon.className = this.CLASS_PREFIX + '-icon';
-                tmp.get('element').insertBefore(icon, tmp.get('firstChild'));
-                if (tmp._button.tagName.toLowerCase() == 'button') {
-                    tmp.get('element').setAttribute('unselectable', 'on');
-                    //Replace the Button HTML Element with an a href if it exists
-                    var a = document.createElement('a');
-                    a.innerHTML = tmp._button.innerHTML;
-                    a.href = '#';
-                    a.tabIndex = '-1';
-                    Event.on(a, 'click', function(ev) {
-                        Event.stopEvent(ev);
-                    });
-                    tmp._button.parentNode.replaceChild(a, tmp._button);
-                    tmp._button = a;
-                }
-
-                if (oButton.type == 'select') {
-                    if (tmp._button.tagName.toLowerCase() == 'select') {
-                        icon.parentNode.removeChild(icon);
-                        var iel = tmp._button,
-                            parEl = tmp.get('element');
-                        parEl.parentNode.replaceChild(iel, parEl);
-                        //The 'element' value is currently the orphaned element
-                        //In order for "destroy" to execute we need to get('element') to reference the correct node.
-                        //I'm not sure if there is a direct approach to setting this value.
-                        tmp._configs.element.value = iel;
-                    } else {
-                        //Don't put a class on it if it's a real select element
-                        tmp.addClass(this.CLASS_PREFIX + '-select');
-                    }
-                }
-                if (oButton.type == 'spin') {
-                    if (!Lang.isArray(oButton.range)) {
-                        oButton.range = [ 10, 100 ];
-                    }
-                    this._makeSpinButton(tmp, oButton);
-                }
-                tmp.get('element').setAttribute('title', tmp.get('label'));
-                if (oButton.type != 'spin') {
-                    if ((YAHOO.widget.Overlay) && (_oButton.menu instanceof YAHOO.widget.Overlay)) {
-                        var showPicker = function(ev) {
-                            var exec = true;
-                            if (ev.keyCode && (ev.keyCode == 9)) {
-                                exec = false;
-                            }
-                            if (exec) {
-                                if (this._colorPicker) {
-                                    this._colorPicker._button = oButton.value;
-                                }
-                                var menuEL = tmp.getMenu().element;
-                                if (Dom.getStyle(menuEL, 'visibility') == 'hidden') {
-                                    tmp.getMenu().show();
-                                } else {
-                                    tmp.getMenu().hide();
-                                }
-                            }
-                            YAHOO.util.Event.stopEvent(ev);
-                        };
-                        tmp.on('mousedown', showPicker, oButton, this);
-                        tmp.on('keydown', showPicker, oButton, this);
-                        
-                    } else if ((oButton.type != 'menu') && (oButton.type != 'select')) {
-                        tmp.on('keypress', this._buttonClick, oButton, this);
-                        tmp.on('mousedown', function(ev) {
-                            YAHOO.util.Event.stopEvent(ev);
-                            this._buttonClick(ev, oButton);
-                        }, oButton, this);
-                        tmp.on('click', function(ev) {
-                            YAHOO.util.Event.stopEvent(ev);
-                        });
-                    } else {
-                        //Stop the mousedown event so we can trap the selection in the editor!
-                        tmp.on('mousedown', function(ev) {
-                            YAHOO.util.Event.stopEvent(ev);
-                        });
-                        tmp.on('click', function(ev) {
-                            YAHOO.util.Event.stopEvent(ev);
-                        });
-                        tmp.on('change', function(ev) {
-                            if (!ev.target) {
-                                if (!oButton.menucmd) {
-                                    oButton.menucmd = oButton.value;
-                                }
-                                oButton.value = ev.value;
-                                this._buttonClick(ev, oButton);
-                            }
-                        }, this, true);
-
-                        var self = this;
-                        //Hijack the mousedown event in the menu and make it fire a button click..
-                        tmp.on('appendTo', function() {
-                            var tmp = this;
-                            if (tmp.getMenu() && tmp.getMenu().mouseDownEvent) {
-                                tmp.getMenu().mouseDownEvent.subscribe(function(ev, args) {
-                                    var oMenu = args[1];
-                                    YAHOO.util.Event.stopEvent(args[0]);
-                                    tmp._onMenuClick(args[0], tmp);
-                                    if (!oButton.menucmd) {
-                                        oButton.menucmd = oButton.value;
-                                    }
-                                    oButton.value = ((oMenu.value) ? oMenu.value : oMenu._oText.nodeValue);
-                                    self._buttonClick.call(self, args[1], oButton);
-                                    tmp._hideMenu();
-                                    return false;
-                                });
-                                tmp.getMenu().clickEvent.subscribe(function(ev, args) {
-                                    YAHOO.util.Event.stopEvent(args[0]);
-                                });
-                                tmp.getMenu().mouseUpEvent.subscribe(function(ev, args) {
-                                    YAHOO.util.Event.stopEvent(args[0]);
-                                });
-                            }
-                        });
-                        
-                    }
-                } else {
-                    //Stop the mousedown event so we can trap the selection in the editor!
-                    tmp.on('mousedown', function(ev) {
-                        YAHOO.util.Event.stopEvent(ev);
-                    });
-                    tmp.on('click', function(ev) {
-                        YAHOO.util.Event.stopEvent(ev);
-                    });
-                }
-                if (this.browser.ie) {
-                    /*
-                    //Add a couple of new events for IE
-                    tmp.DOM_EVENTS.focusin = true;
-                    tmp.DOM_EVENTS.focusout = true;
-                    
-                    //Stop them so we don't loose focus in the Editor
-                    tmp.on('focusin', function(ev) {
-                        YAHOO.util.Event.stopEvent(ev);
-                    }, oButton, this);
-                    
-                    tmp.on('focusout', function(ev) {
-                        YAHOO.util.Event.stopEvent(ev);
-                    }, oButton, this);
-                    tmp.on('click', function(ev) {
-                        YAHOO.util.Event.stopEvent(ev);
-                    }, oButton, this);
-                    */
-                }
-                if (this.browser.webkit) {
-                    //This will keep the document from gaining focus and the editor from loosing it..
-                    //Forcefully remove the focus calls in button!
-                    tmp.hasFocus = function() {
-                        return true;
-                    };
-                }
-                this._buttonList[this._buttonList.length] = tmp;
-                if ((oButton.type == 'menu') || (oButton.type == 'split') || (oButton.type == 'select')) {
-                    if (Lang.isArray(oButton.menu)) {
-                        var menu = tmp.getMenu();
-                        if (menu && menu.renderEvent) {
-                            menu.renderEvent.subscribe(this._addMenuClasses, tmp);
-                            if (oButton.renderer) {
-                                menu.renderEvent.subscribe(oButton.renderer, tmp);
-                            }
-                        }
-                    }
-                }
-            }
-            return oButton;
-        },
-        /**
-        * @method addSeparator
-        * @description Add a new button separator to the toolbar.
-        * @param {HTMLElement} cont Optional HTML element to insert this button into.
-        * @param {HTMLElement} after Optional HTML element to insert this button after in the DOM.
-        */
-        addSeparator: function(cont, after) {
-            if (!this.get('element')) {
-                this._queue[this._queue.length] = ['addSeparator', arguments];
-                return false;
-            }
-            var sepCont = ((cont) ? cont : this.get('cont'));
-            if (!this.get('element')) {
-                this._queue[this._queue.length] = ['addSeparator', arguments];
-                return false;
-            }
-            if (this._sepCount === null) {
-                this._sepCount = 0;
-            }
-            if (!this._sep) {
-                this._sep = document.createElement('SPAN');
-                Dom.addClass(this._sep, this.CLASS_SEPARATOR);
-                this._sep.innerHTML = '|';
-            }
-            var _sep = this._sep.cloneNode(true);
-            this._sepCount++;
-            Dom.addClass(_sep, this.CLASS_SEPARATOR + '-' + this._sepCount);
-            if (after) {
-                var nextSib = null;
-                if (after.get) {
-                    nextSib = after.get('element').nextSibling;
-                } else if (after.nextSibling) {
-                    nextSib = after.nextSibling;
-                } else {
-                    nextSib = after;
-                }
-                if (nextSib) {
-                    if (nextSib == after) {
-                        nextSib.parentNode.appendChild(_sep);
-                    } else {
-                        nextSib.parentNode.insertBefore(_sep, nextSib);
-                    }
-                }
-            } else {
-                sepCont.appendChild(_sep);
-            }
-            return _sep;
-        },
-        /**
-        * @method _createColorPicker
-        * @private
-        * @description Creates the core DOM reference to the color picker menu item.
-        * @param {String} id the id of the toolbar to prefix this DOM container with.
-        */
-        _createColorPicker: function(id) {
-            if (Dom.get(id + '_colors')) {
-               Dom.get(id + '_colors').parentNode.removeChild(Dom.get(id + '_colors'));
-            }
-            var picker = document.createElement('div');
-            picker.className = 'yui-toolbar-colors';
-            picker.id = id + '_colors';
-            picker.style.display = 'none';
-            Event.on(window, 'load', function() {
-                document.body.appendChild(picker);
-            }, this, true);
-
-            this._colorPicker = picker;
-
-            var html = '';
-            for (var i in this._colorData) {
-                if (Lang.hasOwnProperty(this._colorData, i)) {
-                    html += '<a style="background-color: ' + i + '" href="#">' + i.replace('#', '') + '</a>';
-                }
-            }
-            html += '<span><em>X</em><strong></strong></span>';
-            window.setTimeout(function() {
-                picker.innerHTML = html;
-            }, 0);
-
-            Event.on(picker, 'mouseover', function(ev) {
-                var picker = this._colorPicker;
-                var em = picker.getElementsByTagName('em')[0];
-                var strong = picker.getElementsByTagName('strong')[0];
-                var tar = Event.getTarget(ev);
-                if (tar.tagName.toLowerCase() == 'a') {
-                    em.style.backgroundColor = tar.style.backgroundColor;
-                    strong.innerHTML = this._colorData['#' + tar.innerHTML] + '<br>' + tar.innerHTML;
-                }
-            }, this, true);
-            Event.on(picker, 'focus', function(ev) {
-                Event.stopEvent(ev);
-            });
-            Event.on(picker, 'click', function(ev) {
-                Event.stopEvent(ev);
-            });
-            Event.on(picker, 'mousedown', function(ev) {
-                Event.stopEvent(ev);
-                var tar = Event.getTarget(ev);
-                if (tar.tagName.toLowerCase() == 'a') {
-                    var retVal = this.fireEvent('colorPickerClicked', { type: 'colorPickerClicked', target: this, button: this._colorPicker._button, color: tar.innerHTML, colorName: this._colorData['#' + tar.innerHTML] } );
-                    if (retVal !== false) {
-                        var info = {
-                            color: tar.innerHTML,
-                            colorName: this._colorData['#' + tar.innerHTML],
-                            value: this._colorPicker._button 
-                        };
-                    
-                        this.fireEvent('buttonClick', { type: 'buttonClick', target: this.get('element'), button: info });
-                    }
-                    this.getButtonByValue(this._colorPicker._button).getMenu().hide();
-                }
-            }, this, true);
-        },
-        /**
-        * @method _resetColorPicker
-        * @private
-        * @description Clears the currently selected color or mouseover color in the color picker.
-        */
-        _resetColorPicker: function() {
-            var em = this._colorPicker.getElementsByTagName('em')[0];
-            var strong = this._colorPicker.getElementsByTagName('strong')[0];
-            em.style.backgroundColor = 'transparent';
-            strong.innerHTML = '';
-        },
-        /**
-        * @method _makeColorButton
-        * @private
-        * @description Called to turn a "color" button into a menu button with an Overlay for the menu.
-        * @param {Object} _oButton <a href="YAHOO.widget.ToolbarButton.html">YAHOO.widget.ToolbarButton</a> reference
-        */
-        _makeColorButton: function(_oButton) {
-            if (!this._colorPicker) {   
-                this._createColorPicker(this.get('id'));
-            }
-            _oButton.type = 'color';
-            _oButton.menu = new YAHOO.widget.Overlay(this.get('id') + '_' + _oButton.value + '_menu', { visible: false, position: 'absolute', iframe: true });
-            _oButton.menu.setBody('');
-            _oButton.menu.render(this.get('cont'));
-            Dom.addClass(_oButton.menu.element, 'yui-button-menu');
-            Dom.addClass(_oButton.menu.element, 'yui-color-button-menu');
-            _oButton.menu.beforeShowEvent.subscribe(function() {
-                _oButton.menu.cfg.setProperty('zindex', 5); //Re Adjust the overlays zIndex.. not sure why.
-                _oButton.menu.cfg.setProperty('context', [this.getButtonById(_oButton.id).get('element'), 'tl', 'bl']); //Re Adjust the overlay.. not sure why.
-                //Move the DOM reference of the color picker to the Overlay that we are about to show.
-                this._resetColorPicker();
-                var _p = this._colorPicker;
-                if (_p.parentNode) {
-                    _p.parentNode.removeChild(_p);
-                }
-                _oButton.menu.setBody('');
-                _oButton.menu.appendToBody(_p);
-                this._colorPicker.style.display = 'block';
-            }, this, true);
-            return _oButton;
-        },
-        /**
-        * @private
-        * @method _makeSpinButton
-        * @description Create a button similar to an OS Spin button.. It has an up/down arrow combo to scroll through a range of int values.
-        * @param {Object} _button <a href="YAHOO.widget.ToolbarButton.html">YAHOO.widget.ToolbarButton</a> reference
-        * @param {Object} oButton Object literal containing the buttons initial config
-        */
-        _makeSpinButton: function(_button, oButton) {
-            _button.addClass(this.CLASS_PREFIX + '-spinbutton');
-            var self = this,
-                _par = _button._button.parentNode.parentNode, //parentNode of Button Element for appending child
-                range = oButton.range,
-                _b1 = document.createElement('a'),
-                _b2 = document.createElement('a');
-                _b1.href = '#';
-                _b2.href = '#';
-                _b1.tabIndex = '-1';
-                _b2.tabIndex = '-1';
-            
-            //Setup the up and down arrows
-            _b1.className = 'up';
-            _b1.title = this.STR_SPIN_UP;
-            _b1.innerHTML = this.STR_SPIN_UP;
-            _b2.className = 'down';
-            _b2.title = this.STR_SPIN_DOWN;
-            _b2.innerHTML = this.STR_SPIN_DOWN;
-
-            //Append them to the container
-            _par.appendChild(_b1);
-            _par.appendChild(_b2);
-            
-            var label = YAHOO.lang.substitute(this.STR_SPIN_LABEL, { VALUE: _button.get('label') });
-            _button.set('title', label);
-
-            var cleanVal = function(value) {
-                value = ((value < range[0]) ? range[0] : value);
-                value = ((value > range[1]) ? range[1] : value);
-                return value;
-            };
-
-            var br = this.browser;
-            var tbar = false;
-            var strLabel = this.STR_SPIN_LABEL;
-            if (this._titlebar && this._titlebar.firstChild) {
-                tbar = this._titlebar.firstChild;
-            }
-            
-            var _intUp = function(ev) {
-                YAHOO.util.Event.stopEvent(ev);
-                if (!_button.get('disabled') && (ev.keyCode != 9)) {
-                    var value = parseInt(_button.get('label'), 10);
-                    value++;
-                    value = cleanVal(value);
-                    _button.set('label', ''+value);
-                    var label = YAHOO.lang.substitute(strLabel, { VALUE: _button.get('label') });
-                    _button.set('title', label);
-                    if (!br.webkit && tbar) {
-                        //tbar.focus(); //We do this for accessibility, on the re-focus of the element, a screen reader will re-read the title that was just changed
-                        //_button.focus();
-                    }
-                    self._buttonClick(ev, oButton);
-                }
-            };
-
-            var _intDown = function(ev) {
-                YAHOO.util.Event.stopEvent(ev);
-                if (!_button.get('disabled') && (ev.keyCode != 9)) {
-                    var value = parseInt(_button.get('label'), 10);
-                    value--;
-                    value = cleanVal(value);
-
-                    _button.set('label', ''+value);
-                    var label = YAHOO.lang.substitute(strLabel, { VALUE: _button.get('label') });
-                    _button.set('title', label);
-                    if (!br.webkit && tbar) {
-                        //tbar.focus(); //We do this for accessibility, on the re-focus of the element, a screen reader will re-read the title that was just changed
-                        //_button.focus();
-                    }
-                    self._buttonClick(ev, oButton);
-                }
-            };
-
-            var _intKeyUp = function(ev) {
-                if (ev.keyCode == 38) {
-                    _intUp(ev);
-                } else if (ev.keyCode == 40) {
-                    _intDown(ev);
-                } else if (ev.keyCode == 107 && ev.shiftKey) {  //Plus Key
-                    _intUp(ev);
-                } else if (ev.keyCode == 109 && ev.shiftKey) {  //Minus Key
-                    _intDown(ev);
-                }
-            };
-
-            //Handle arrow keys..
-            _button.on('keydown', _intKeyUp, this, true);
-
-            //Listen for the click on the up button and act on it
-            //Listen for the click on the down button and act on it
-            Event.on(_b1, 'mousedown',function(ev) {
-                Event.stopEvent(ev);
-            }, this, true);
-            Event.on(_b2, 'mousedown', function(ev) {
-                Event.stopEvent(ev);
-            }, this, true);
-            Event.on(_b1, 'click', _intUp, this, true);
-            Event.on(_b2, 'click', _intDown, this, true);
-        },
-        /**
-        * @protected
-        * @method _buttonClick
-        * @description Click handler for all buttons in the toolbar.
-        * @param {String} ev The event that was passed in.
-        * @param {Object} info Object literal of information about the button that was clicked.
-        */
-        _buttonClick: function(ev, info) {
-            var doEvent = true;
-            
-            if (ev && ev.type == 'keypress') {
-                if (ev.keyCode == 9) {
-                    doEvent = false;
-                } else if ((ev.keyCode === 13) || (ev.keyCode === 0) || (ev.keyCode === 32)) {
-                } else {
-                    doEvent = false;
-                }
-            }
-
-            if (doEvent) {
-                var fireNextEvent = true,
-                    retValue = false;
-                    
-                info.isSelected = this.isSelected(info.id);
-
-                if (info.value) {
-                    retValue = this.fireEvent(info.value + 'Click', { type: info.value + 'Click', target: this.get('element'), button: info });
-                    if (retValue === false) {
-                        fireNextEvent = false;
-                    }
-                }
-                
-                if (info.menucmd && fireNextEvent) {
-                    retValue = this.fireEvent(info.menucmd + 'Click', { type: info.menucmd + 'Click', target: this.get('element'), button: info });
-                    if (retValue === false) {
-                        fireNextEvent = false;
-                    }
-                }
-                if (fireNextEvent) {
-                    this.fireEvent('buttonClick', { type: 'buttonClick', target: this.get('element'), button: info });
-                }
-
-                if (info.type == 'select') {
-                    var button = this.getButtonById(info.id);
-                    if (button.buttonType == 'rich') {
-                        var txt = info.value;
-                        for (var i = 0; i < info.menu.length; i++) {
-                            if (info.menu[i].value == info.value) {
-                                txt = info.menu[i].text;
-                                break;
-                            }
-                        }
-                        button.set('label', '<span class="yui-toolbar-' + info.menucmd + '-' + (info.value).replace(/ /g, '-').toLowerCase() + '">' + txt + '</span>');
-                        var _items = button.getMenu().getItems();
-                        for (var m = 0; m < _items.length; m++) {
-                            if (_items[m].value.toLowerCase() == info.value.toLowerCase()) {
-                                _items[m].cfg.setProperty('checked', true);
-                            } else {
-                                _items[m].cfg.setProperty('checked', false);
-                            }
-                        }
-                    }
-                }
-                if (ev) {
-                    Event.stopEvent(ev);
-                }
-            }
-        },
-        /**
-        * @private
-        * @property _keyNav
-        * @description Flag to determine if the arrow nav listeners have been attached
-        * @type Boolean
-        */
-        _keyNav: null,
-        /**
-        * @private
-        * @property _navCounter
-        * @description Internal counter for walking the buttons in the toolbar with the arrow keys
-        * @type Number
-        */
-        _navCounter: null,
-        /**
-        * @private
-        * @method _navigateButtons
-        * @description Handles the navigation/focus of toolbar buttons with the Arrow Keys
-        * @param {Event} ev The Key Event
-        */
-        _navigateButtons: function(ev) {
-            switch (ev.keyCode) {
-                case 37:
-                case 39:
-                    if (ev.keyCode == 37) {
-                        this._navCounter--;
-                    } else {
-                        this._navCounter++;
-                    }
-                    if (this._navCounter > (this._buttonList.length - 1)) {
-                        this._navCounter = 0;
-                    }
-                    if (this._navCounter < 0) {
-                        this._navCounter = (this._buttonList.length - 1);
-                    }
-                    if (this._buttonList[this._navCounter]) {
-                        var el = this._buttonList[this._navCounter].get('element');
-                        if (this.browser.ie) {
-                            el = this._buttonList[this._navCounter].get('element').getElementsByTagName('a')[0];
-                        }
-                        if (this._buttonList[this._navCounter].get('disabled')) {
-                            this._navigateButtons(ev);
-                        } else {
-                            el.focus();
-                        }
-                    }
-                    break;
-            }
-        },
-        /**
-        * @private
-        * @method _handleFocus
-        * @description Sets up the listeners for the arrow key navigation
-        */
-        _handleFocus: function() {
-            if (!this._keyNav) {
-                var ev = 'keypress';
-                if (this.browser.ie) {
-                    ev = 'keydown';
-                }
-                Event.on(this.get('element'), ev, this._navigateButtons, this, true);
-                this._keyNav = true;
-                this._navCounter = -1;
-            }
-        },
-        /**
-        * @method getButtonById
-        * @description Gets a button instance from the toolbar by is Dom id.
-        * @param {String} id The Dom id to query for.
-        * @return {<a href="YAHOO.widget.ToolbarButton.html">YAHOO.widget.ToolbarButton</a>}
-        */
-        getButtonById: function(id) {
-            var len = this._buttonList.length;
-            for (var i = 0; i < len; i++) {
-                if (this._buttonList[i] && this._buttonList[i].get('id') == id) {
-                    return this._buttonList[i];
-                }
-            }
-            return false;
-        },
-        /**
-        * @method getButtonByValue
-        * @description Gets a button instance or a menuitem instance from the toolbar by it's value.
-        * @param {String} value The button value to query for.
-        * @return {<a href="YAHOO.widget.ToolbarButton.html">YAHOO.widget.ToolbarButton</a> or <a href="YAHOO.widget.MenuItem.html">YAHOO.widget.MenuItem</a>}
-        */
-        getButtonByValue: function(value) {
-            var _buttons = this.get('buttons');
-            if (!_buttons) {
-                return false;
-            }
-            var len = _buttons.length;
-            for (var i = 0; i < len; i++) {
-                if (_buttons[i].group !== undefined) {
-                    for (var m = 0; m < _buttons[i].buttons.length; m++) {
-                        if ((_buttons[i].buttons[m].value == value) || (_buttons[i].buttons[m].menucmd == value)) {
-                            return this.getButtonById(_buttons[i].buttons[m].id);
-                        }
-                        if (_buttons[i].buttons[m].menu) { //Menu Button, loop through the values
-                            for (var s = 0; s < _buttons[i].buttons[m].menu.length; s++) {
-                                if (_buttons[i].buttons[m].menu[s].value == value) {
-                                    return this.getButtonById(_buttons[i].buttons[m].id);
-                                }
-                            }
-                        }
-                    }
-                } else {
-                    if ((_buttons[i].value == value) || (_buttons[i].menucmd == value)) {
-                        return this.getButtonById(_buttons[i].id);
-                    }
-                    if (_buttons[i].menu) { //Menu Button, loop through the values
-                        for (var j = 0; j < _buttons[i].menu.length; j++) {
-                            if (_buttons[i].menu[j].value == value) {
-                                return this.getButtonById(_buttons[i].id);
-                            }
-                        }
-                    }
-                }
-            }
-            return false;
-        },
-        /**
-        * @method getButtonByIndex
-        * @description Gets a button instance from the toolbar by is index in _buttonList.
-        * @param {Number} index The index of the button in _buttonList.
-        * @return {<a href="YAHOO.widget.ToolbarButton.html">YAHOO.widget.ToolbarButton</a>}
-        */
-        getButtonByIndex: function(index) {
-            if (this._buttonList[index]) {
-                return this._buttonList[index];
-            } else {
-                return false;
-            }
-        },
-        /**
-        * @method getButtons
-        * @description Returns an array of buttons in the current toolbar
-        * @return {Array}
-        */
-        getButtons: function() {
-            return this._buttonList;
-        },
-        /**
-        * @method disableButton
-        * @description Disables a button in the toolbar.
-        * @param {String/Number} id Disable a button by it's id, index or value.
-        * @return {Boolean}
-        */
-        disableButton: function(id) {
-            var button = getButton.call(this, id);
-            if (button) {
-                button.set('disabled', true);
-            } else {
-                return false;
-            }
-        },
-        /**
-        * @method enableButton
-        * @description Enables a button in the toolbar.
-        * @param {String/Number} id Enable a button by it's id, index or value.
-        * @return {Boolean}
-        */
-        enableButton: function(id) {
-            if (this.get('disabled')) {
-                return false;
-            }
-            var button = getButton.call(this, id);
-            if (button) {
-                if (button.get('disabled')) {
-                    button.set('disabled', false);
-                }
-            } else {
-                return false;
-            }
-        },
-        /**
-        * @method isSelected
-        * @description Tells if a button is selected or not.
-        * @param {String/Number} id A button by it's id, index or value.
-        * @return {Boolean}
-        */
-        isSelected: function(id) {
-            var button = getButton.call(this, id);
-            if (button) {
-                return button._selected;
-            }
-            return false;
-        },
-        /**
-        * @method selectButton
-        * @description Selects a button in the toolbar.
-        * @param {String/Number} id Select a button by it's id, index or value.
-        * @param {String} value If this is a Menu Button, check this item in the menu
-        * @return {Boolean}
-        */
-        selectButton: function(id, value) {
-            var button = getButton.call(this, id);
-            if (button) {
-                button.addClass('yui-button-selected');
-                button.addClass('yui-button-' + button.get('value') + '-selected');
-                button._selected = true;
-                if (value) {
-                    if (button.buttonType == 'rich') {
-                        var _items = button.getMenu().getItems();
-                        for (var m = 0; m < _items.length; m++) {
-                            if (_items[m].value == value) {
-                                _items[m].cfg.setProperty('checked', true);
-                                button.set('label', '<span class="yui-toolbar-' + button.get('value') + '-' + (value).replace(/ /g, '-').toLowerCase() + '">' + _items[m]._oText.nodeValue + '</span>');
-                            } else {
-                                _items[m].cfg.setProperty('checked', false);
-                            }
-                        }
-                    }
-                }
-            } else {
-                return false;
-            }
-        },
-        /**
-        * @method deselectButton
-        * @description Deselects a button in the toolbar.
-        * @param {String/Number} id Deselect a button by it's id, index or value.
-        * @return {Boolean}
-        */
-        deselectButton: function(id) {
-            var button = getButton.call(this, id);
-            if (button) {
-                button.removeClass('yui-button-selected');
-                button.removeClass('yui-button-' + button.get('value') + '-selected');
-                button.removeClass('yui-button-hover');
-                button._selected = false;
-            } else {
-                return false;
-            }
-        },
-        /**
-        * @method deselectAllButtons
-        * @description Deselects all buttons in the toolbar.
-        * @return {Boolean}
-        */
-        deselectAllButtons: function() {
-            var len = this._buttonList.length;
-            for (var i = 0; i < len; i++) {
-                this.deselectButton(this._buttonList[i]);
-            }
-        },
-        /**
-        * @method disableAllButtons
-        * @description Disables all buttons in the toolbar.
-        * @return {Boolean}
-        */
-        disableAllButtons: function() {
-            if (this.get('disabled')) {
-                return false;
-            }
-            var len = this._buttonList.length;
-            for (var i = 0; i < len; i++) {
-                this.disableButton(this._buttonList[i]);
-            }
-        },
-        /**
-        * @method enableAllButtons
-        * @description Enables all buttons in the toolbar.
-        * @return {Boolean}
-        */
-        enableAllButtons: function() {
-            if (this.get('disabled')) {
-                return false;
-            }
-            var len = this._buttonList.length;
-            for (var i = 0; i < len; i++) {
-                this.enableButton(this._buttonList[i]);
-            }
-        },
-        /**
-        * @method resetAllButtons
-        * @description Resets all buttons to their initial state.
-        * @param {Object} _ex Except these buttons
-        * @return {Boolean}
-        */
-        resetAllButtons: function(_ex) {
-            if (!Lang.isObject(_ex)) {
-                _ex = {};
-            }
-            if (this.get('disabled') || !this._buttonList) {
-                return false;
-            }
-            var len = this._buttonList.length;
-            for (var i = 0; i < len; i++) {
-                var _button = this._buttonList[i];
-                if (_button) {
-                    var disabled = _button._configs.disabled._initialConfig.value;
-                    if (_ex[_button.get('id')]) {
-                        this.enableButton(_button);
-                        this.selectButton(_button);
-                    } else {
-                        if (disabled) {
-                            this.disableButton(_button);
-                        } else {
-                            this.enableButton(_button);
-                        }
-                        this.deselectButton(_button);
-                    }
-                }
-            }
-        },
-        /**
-        * @method destroyButton
-        * @description Destroy a button in the toolbar.
-        * @param {String/Number} id Destroy a button by it's id or index.
-        * @return {Boolean}
-        */
-        destroyButton: function(id) {
-            var button = getButton.call(this, id);
-            if (button) {
-                var thisID = button.get('id'),
-                    new_list = [], i = 0,
-                    len = this._buttonList.length;
-
-                button.destroy();
-                
-                for (i = 0; i < len; i++) {
-                    if (this._buttonList[i].get('id') != thisID) {
-                        new_list[new_list.length]= this._buttonList[i];
-                    }
-                }
-
-                this._buttonList = new_list;
-            } else {
-                return false;
-            }
-        },
-        /**
-        * @method destroy
-        * @description Destroys the toolbar, all of it's elements and objects.
-        * @return {Boolean}
-        */
-        destroy: function() {
-            var len = this._configuredButtons.length, j, i;
-            for(b = 0; b < len; b++) {
-                this.destroyButton(this._configuredButtons[b]);
-            }
-
-            this._configuredButtons = null;
-        
-            this.get('element').innerHTML = '';
-            this.get('element').className = '';
-            //Brutal Object Destroy
-            for (i in this) {
-                if (Lang.hasOwnProperty(this, i)) {
-                    this[i] = null;
-                }
-            }
-            return true;
-        },
-        /**
-        * @method collapse
-        * @description Programatically collapse the toolbar.
-        * @param {Boolean} collapse True to collapse, false to expand.
-        */
-        collapse: function(collapse) {
-            var el = Dom.getElementsByClassName('collapse', 'span', this._titlebar);
-            if (collapse === false) {
-                Dom.removeClass(this.get('cont').parentNode, 'yui-toolbar-container-collapsed');
-                if (el[0]) {
-                    Dom.removeClass(el[0], 'collapsed');
-                    el[0].title = this.STR_COLLAPSE;
-                }
-                this.fireEvent('toolbarExpanded', { type: 'toolbarExpanded', target: this });
-            } else {
-                if (el[0]) {
-                    Dom.addClass(el[0], 'collapsed');
-                    el[0].title = this.STR_EXPAND;
-                }
-                Dom.addClass(this.get('cont').parentNode, 'yui-toolbar-container-collapsed');
-                this.fireEvent('toolbarCollapsed', { type: 'toolbarCollapsed', target: this });
-            }
-        },
-        /**
-        * @method toString
-        * @description Returns a string representing the toolbar.
-        * @return {String}
-        */
-        toString: function() {
-            return 'Toolbar (#' + this.get('element').id + ') with ' + this._buttonList.length + ' buttons.';
-        }
-    });
-/**
-* @event buttonClick
-* @param {Object} o The object passed to this handler is the button config used to create the button.
-* @description Fires when any botton receives a click event. Passes back a single object representing the buttons config object. See <a href="YAHOO.util.Element.html#addListener">Element.addListener</a> for more information on listening for this event.
-* @type YAHOO.util.CustomEvent
-*/
-/**
-* @event valueClick
-* @param {Object} o The object passed to this handler is the button config used to create the button.
-* @description This is a special dynamic event that is created and dispatched based on the value property
-* of the button config. See <a href="YAHOO.util.Element.html#addListener">Element.addListener</a> for more information on listening for this event.
-* Example:
-* <code><pre>
-* buttons : [
-*   { type: 'button', value: 'test', value: 'testButton' }
-* ]</pre>
-* </code>
-* With the valueClick event you could subscribe to this buttons click event with this:
-* tbar.in('testButtonClick', function() { alert('test button clicked'); })
-* @type YAHOO.util.CustomEvent
-*/
-/**
-* @event toolbarExpanded
-* @description Fires when the toolbar is expanded via the collapse button. See <a href="YAHOO.util.Element.html#addListener">Element.addListener</a> for more information on listening for this event.
-* @type YAHOO.util.CustomEvent
-*/
-/**
-* @event toolbarCollapsed
-* @description Fires when the toolbar is collapsed via the collapse button. See <a href="YAHOO.util.Element.html#addListener">Element.addListener</a> for more information on listening for this event.
-* @type YAHOO.util.CustomEvent
-*/
-})();
-/**
- * @module editor
- * @description <p>The Rich Text Editor is a UI control that replaces a standard HTML textarea; it allows for the rich formatting of text content, including common structural treatments like lists, formatting treatments like bold and italic text, and drag-and-drop inclusion and sizing of images. The Rich Text Editor's toolbar is extensible via a plugin architecture so that advanced implementations can achieve a high degree of customization.</p>
- * @namespace YAHOO.widget
- * @requires yahoo, dom, element, event, toolbar
- * @optional animation, container_core, resize, dragdrop
- */
-
-(function() {
-var Dom = YAHOO.util.Dom,
-    Event = YAHOO.util.Event,
-    Lang = YAHOO.lang,
-    Toolbar = YAHOO.widget.Toolbar;
-
-    /**
-     * The Rich Text Editor is a UI control that replaces a standard HTML textarea; it allows for the rich formatting of text content, including common structural treatments like lists, formatting treatments like bold and italic text, and drag-and-drop inclusion and sizing of images. The Rich Text Editor's toolbar is extensible via a plugin architecture so that advanced implementations can achieve a high degree of customization.
-     * @constructor
-     * @class SimpleEditor
-     * @extends YAHOO.util.Element
-     * @param {String/HTMLElement} el The textarea element to turn into an editor.
-     * @param {Object} attrs Object liternal containing configuration parameters.
-    */
-    
-    YAHOO.widget.SimpleEditor = function(el, attrs) {
-        
-        var o = {};
-        if (Lang.isObject(el) && (!el.tagName) && !attrs) {
-            Lang.augmentObject(o, el); //Break the config reference
-            el = document.createElement('textarea');
-            this.DOMReady = true;
-            if (o.container) {
-                var c = Dom.get(o.container);
-                c.appendChild(el);
-            } else {
-                document.body.appendChild(el);
-            }
-        } else {
-            if (attrs) {
-                Lang.augmentObject(o, attrs); //Break the config reference
-            }
-        }
-
-        var oConfig = {
-            element: null,
-            attributes: o
-        }, id = null;
-
-        if (Lang.isString(el)) {
-            id = el;
-        } else {
-            if (oConfig.attributes.id) {
-                id = oConfig.attributes.id;
-            } else {
-                this.DOMReady = true;
-                id = Dom.generateId(el);
-            }
-        }
-        oConfig.element = el;
-
-        var element_cont = document.createElement('DIV');
-        oConfig.attributes.element_cont = new YAHOO.util.Element(element_cont, {
-            id: id + '_container'
-        });
-        var div = document.createElement('div');
-        Dom.addClass(div, 'first-child');
-        oConfig.attributes.element_cont.appendChild(div);
-        
-        if (!oConfig.attributes.toolbar_cont) {
-            oConfig.attributes.toolbar_cont = document.createElement('DIV');
-            oConfig.attributes.toolbar_cont.id = id + '_toolbar';
-            div.appendChild(oConfig.attributes.toolbar_cont);
-        }
-        var editorWrapper = document.createElement('DIV');
-        div.appendChild(editorWrapper);
-        oConfig.attributes.editor_wrapper = editorWrapper;
-
-        YAHOO.widget.SimpleEditor.superclass.constructor.call(this, oConfig.element, oConfig.attributes);
-    };
-
-
-    YAHOO.extend(YAHOO.widget.SimpleEditor, YAHOO.util.Element, {
-        /**
-        * @private
-        * @property _resizeConfig
-        * @description The default config for the Resize Utility
-        */
-        _resizeConfig: {
-            handles: ['br'],
-            autoRatio: true,
-            status: true,
-            proxy: true,
-            useShim: true,
-            setSize: false
-        },
-        /**
-        * @private
-        * @method _setupResize
-        * @description Creates the Resize instance and binds its events.
-        */
-        _setupResize: function() {
-            if (!YAHOO.util.DD || !YAHOO.util.Resize) { return false; }
-            if (this.get('resize')) {
-                var config = {};
-                Lang.augmentObject(config, this._resizeConfig); //Break the config reference
-                this.resize = new YAHOO.util.Resize(this.get('element_cont').get('element'), config);
-                this.resize.on('resize', function(args) {
-                    var anim = this.get('animate');
-                    this.set('animate', false);
-                    this.set('width', args.width + 'px');
-                    var h = args.height,
-                        th = (this.toolbar.get('element').clientHeight + 2),
-                        dh = 0;
-                    if (this.dompath) {
-                        dh = (this.dompath.clientHeight + 1); //It has a 1px top border..
-                    }
-                    var newH = (h - th - dh);
-                    this.set('height', newH + 'px');
-                    this.get('element_cont').setStyle('height', '');
-                    this.set('animate', anim);
-                }, this, true);
-            }
-        },
-        /**
-        * @property resize
-        * @description A reference to the Resize object
-        * @type YAHOO.util.Resize
-        */
-        resize: null,
-        /**
-        * @private
-        * @method _setupDD
-        * @description Sets up the DD instance used from the 'drag' config option.
-        */
-        _setupDD: function() {
-            if (!YAHOO.util.DD) { return false; }
-            if (this.get('drag')) {
-                var d = this.get('drag'),
-                    dd = YAHOO.util.DD;
-                if (d === 'proxy') {
-                    dd = YAHOO.util.DDProxy;
-                }
-
-                this.dd = new dd(this.get('element_cont').get('element'));
-                this.toolbar.addClass('draggable'); 
-                this.dd.setHandleElId(this.toolbar._titlebar); 
-            }
-        },
-        /**
-        * @property dd
-        * @description A reference to the DragDrop object.
-        * @type YAHOO.util.DD/YAHOO.util.DDProxy
-        */
-        dd: null,
-        /**
-        * @private
-        * @property _lastCommand
-        * @description A cache of the last execCommand (used for Undo/Redo so they don't mark an undo level)
-        * @type String
-        */
-        _lastCommand: null,
-        _undoNodeChange: function() {},
-        _storeUndo: function() {},
-        /**
-        * @private
-        * @method _checkKey
-        * @description Checks a keyMap entry against a key event
-        * @param {Object} k The _keyMap object
-        * @param {Event} e The Mouse Event
-        * @return {Boolean}
-        */
-        _checkKey: function(k, e) {
-            var ret = false;
-            if ((e.keyCode === k.key)) {
-                if (k.mods && (k.mods.length > 0)) {
-                    var val = 0;
-                    for (var i = 0; i < k.mods.length; i++) {
-                        if (this.browser.mac) {
-                            if (k.mods[i] == 'ctrl') {
-                                k.mods[i] = 'meta';
-                            }
-                        }
-                        if (e[k.mods[i] + 'Key'] === true) {
-                            val++;
-                        }
-                    }
-                    if (val === k.mods.length) {
-                        ret = true;
-                    }
-                } else {
-                    ret = true;
-                }
-            }
-            return ret;
-        },
-        /**
-        * @private
-        * @property _keyMap
-        * @description Named key maps for various actions in the Editor. Example: <code>CLOSE_WINDOW: { key: 87, mods: ['shift', 'ctrl'] }</code>. 
-        * This entry shows that when key 87 (W) is found with the modifiers of shift and control, the window will close. You can customize this object to tweak keyboard shortcuts.
-        * @type {Object/Mixed}
-        */
-        _keyMap: {
-            SELECT_ALL: {
-                key: 65, //A key
-                mods: ['ctrl']
-            },
-            CLOSE_WINDOW: {
-                key: 87, //W key
-                mods: ['shift', 'ctrl']
-            },
-            FOCUS_TOOLBAR: {
-                key: 27,
-                mods: ['shift']
-            },
-            FOCUS_AFTER: {
-                key: 27
-            },
-            FONT_SIZE_UP: {
-                key: 38,
-                mods: ['shift', 'ctrl']
-            },
-            FONT_SIZE_DOWN: {
-                key: 40,
-                mods: ['shift', 'ctrl']
-            },
-            CREATE_LINK: {
-                key: 76,
-                mods: ['shift', 'ctrl']
-            },
-            BOLD: {
-                key: 66,
-                mods: ['shift', 'ctrl']
-            },
-            ITALIC: {
-                key: 73,
-                mods: ['shift', 'ctrl']
-            },
-            UNDERLINE: {
-                key: 85,
-                mods: ['shift', 'ctrl']
-            },
-            UNDO: {
-                key: 90,
-                mods: ['ctrl']
-            },
-            REDO: {
-                key: 90,
-                mods: ['shift', 'ctrl']
-            },
-            JUSTIFY_LEFT: {
-                key: 219,
-                mods: ['shift', 'ctrl']
-            },
-            JUSTIFY_CENTER: {
-                key: 220,
-                mods: ['shift', 'ctrl']
-            },
-            JUSTIFY_RIGHT: {
-                key: 221,
-                mods: ['shift', 'ctrl']
-            }
-        },
-        /**
-        * @private
-        * @method _cleanClassName
-        * @description Makes a useable classname from dynamic data, by dropping it to lowercase and replacing spaces with -'s.
-        * @param {String} str The classname to clean up
-        * @return {String}
-        */
-        _cleanClassName: function(str) {
-            return str.replace(/ /g, '-').toLowerCase();
-        },
-        /**
-        * @property _textarea
-        * @description Flag to determine if we are using a textarea or an HTML Node.
-        * @type Boolean
-        */
-        _textarea: null,
-        /**
-        * @property _docType
-        * @description The DOCTYPE to use in the editable container.
-        * @type String
-        */
-        _docType: '<!DOCTYPE HTML PUBLIC "-/'+'/W3C/'+'/DTD HTML 4.01/'+'/EN" "http:/'+'/www.w3.org/TR/html4/strict.dtd">',
-        /**
-        * @property editorDirty
-        * @description This flag will be set when certain things in the Editor happen. It is to be used by the developer to check to see if content has changed.
-        * @type Boolean
-        */
-        editorDirty: null,
-        /**
-        * @property _defaultCSS
-        * @description The default CSS used in the config for 'css'. This way you can add to the config like this: { css: YAHOO.widget.SimpleEditor.prototype._defaultCSS + 'ADD MYY CSS HERE' }
-        * @type String
-        */
-        _defaultCSS: 'html { height: 95%; } body { padding: 7px; background-color: #fff; font: 13px/1.22 arial,helvetica,clean,sans-serif;*font-size:small;*font:x-small; } a, a:visited, a:hover { color: blue !important; text-decoration: underline !important; cursor: text !important; } .warning-localfile { border-bottom: 1px dashed red !important; } .yui-busy { cursor: wait !important; } img.selected { border: 2px dotted #808080; } img { cursor: pointer !important; border: none; } body.ptags.webkit div.yui-wk-p { margin: 11px 0; } body.ptags.webkit div.yui-wk-div { margin: 0; }',
-        /**
-        * @property _defaultToolbar
-        * @private
-        * @description Default toolbar config.
-        * @type Object
-        */
-        _defaultToolbar: null,
-        /**
-        * @property _lastButton
-        * @private
-        * @description The last button pressed, so we don't disable it.
-        * @type Object
-        */
-        _lastButton: null,
-        /**
-        * @property _baseHREF
-        * @private
-        * @description The base location of the editable page (this page) so that relative paths for image work.
-        * @type String
-        */
-        _baseHREF: function() {
-            var href = document.location.href;
-            if (href.indexOf('?') !== -1) { //Remove the query string
-                href = href.substring(0, href.indexOf('?'));
-            }
-            href = href.substring(0, href.lastIndexOf('/')) + '/';
-            return href;
-        }(),
-        /**
-        * @property _lastImage
-        * @private
-        * @description Safari reference for the last image selected (for styling as selected).
-        * @type HTMLElement
-        */
-        _lastImage: null,
-        /**
-        * @property _blankImageLoaded
-        * @private
-        * @description Don't load the blank image more than once..
-        * @type Boolean
-        */
-        _blankImageLoaded: null,
-        /**
-        * @property _fixNodesTimer
-        * @private
-        * @description Holder for the fixNodes timer
-        * @type Date
-        */
-        _fixNodesTimer: null,
-        /**
-        * @property _nodeChangeTimer
-        * @private
-        * @description Holds a reference to the nodeChange setTimeout call
-        * @type Number
-        */
-        _nodeChangeTimer: null,
-        /**
-        * @property _nodeChangeDelayTimer
-        * @private
-        * @description Holds a reference to the nodeChangeDelay setTimeout call
-        * @type Number
-        */
-        _nodeChangeDelayTimer: null,
-        /**
-        * @property _lastNodeChangeEvent
-        * @private
-        * @description Flag to determine the last event that fired a node change
-        * @type Event
-        */
-        _lastNodeChangeEvent: null,
-        /**
-        * @property _lastNodeChange
-        * @private
-        * @description Flag to determine when the last node change was fired
-        * @type Date
-        */
-        _lastNodeChange: 0,
-        /**
-        * @property _rendered
-        * @private
-        * @description Flag to determine if editor has been rendered or not
-        * @type Boolean
-        */
-        _rendered: null,
-        /**
-        * @property DOMReady
-        * @private
-        * @description Flag to determine if DOM is ready or not
-        * @type Boolean
-        */
-        DOMReady: null,
-        /**
-        * @property _selection
-        * @private
-        * @description Holder for caching iframe selections
-        * @type Object
-        */
-        _selection: null,
-        /**
-        * @property _mask
-        * @private
-        * @description DOM Element holder for the editor Mask when disabled
-        * @type Object
-        */
-        _mask: null,
-        /**
-        * @property _showingHiddenElements
-        * @private
-        * @description Status of the hidden elements button
-        * @type Boolean
-        */
-        _showingHiddenElements: null,
-        /**
-        * @property currentWindow
-        * @description A reference to the currently open EditorWindow
-        * @type Object
-        */
-        currentWindow: null,
-        /**
-        * @property currentEvent
-        * @description A reference to the current editor event
-        * @type Event
-        */
-        currentEvent: null,
-        /**
-        * @property operaEvent
-        * @private
-        * @description setTimeout holder for Opera and Image DoubleClick event..
-        * @type Object
-        */
-        operaEvent: null,
-        /**
-        * @property currentFont
-        * @description A reference to the last font selected from the Toolbar
-        * @type HTMLElement
-        */
-        currentFont: null,
-        /**
-        * @property currentElement
-        * @description A reference to the current working element in the editor
-        * @type Array
-        */
-        currentElement: null,
-        /**
-        * @property dompath
-        * @description A reference to the dompath container for writing the current working dom path to.
-        * @type HTMLElement
-        */
-        dompath: null,
-        /**
-        * @property beforeElement
-        * @description A reference to the H2 placed before the editor for Accessibilty.
-        * @type HTMLElement
-        */
-        beforeElement: null,
-        /**
-        * @property afterElement
-        * @description A reference to the H2 placed after the editor for Accessibilty.
-        * @type HTMLElement
-        */
-        afterElement: null,
-        /**
-        * @property invalidHTML
-        * @description Contains a list of HTML elements that are invalid inside the editor. They will be removed when they are found. If you set the value of a key to "{ keepContents: true }", then the element will be replaced with a yui-non span to be filtered out when cleanHTML is called. The only tag that is ignored here is the span tag as it will force the Editor into a loop and freeze the browser. However.. all of these tags will be removed in the cleanHTML routine.
-        * @type Object
-        */
-        invalidHTML: {
-            form: true,
-            input: true,
-            button: true,
-            select: true,
-            link: true,
-            html: true,
-            body: true,
-            iframe: true,
-            script: true,
-            style: true,
-            textarea: true
-        },
-        /**
-        * @property toolbar
-        * @description Local property containing the <a href="YAHOO.widget.Toolbar.html">YAHOO.widget.Toolbar</a> instance
-        * @type <a href="YAHOO.widget.Toolbar.html">YAHOO.widget.Toolbar</a>
-        */
-        toolbar: null,
-        /**
-        * @private
-        * @property _contentTimer
-        * @description setTimeout holder for documentReady check
-        */
-        _contentTimer: null,
-        /**
-        * @private
-        * @property _contentTimerMax
-        * @description The number of times the loaded content should be checked before giving up. Default: 500
-        */
-        _contentTimerMax: 500,
-        /**
-        * @private
-        * @property _contentTimerCounter
-        * @description Counter to check the number of times the body is polled for before giving up
-        * @type Number
-        */
-        _contentTimerCounter: 0,
-        /**
-        * @private
-        * @property _disabled
-        * @description The Toolbar items that should be disabled if there is no selection present in the editor.
-        * @type Array
-        */
-        _disabled: [ 'createlink', 'fontname', 'fontsize', 'forecolor', 'backcolor' ],
-        /**
-        * @private
-        * @property _alwaysDisabled
-        * @description The Toolbar items that should ALWAYS be disabled event if there is a selection present in the editor.
-        * @type Object
-        */
-        _alwaysDisabled: { undo: true, redo: true },
-        /**
-        * @private
-        * @property _alwaysEnabled
-        * @description The Toolbar items that should ALWAYS be enabled event if there isn't a selection present in the editor.
-        * @type Object
-        */
-        _alwaysEnabled: { },
-        /**
-        * @private
-        * @property _semantic
-        * @description The Toolbar commands that we should attempt to make tags out of instead of using styles.
-        * @type Object
-        */
-        _semantic: { 'bold': true, 'italic' : true, 'underline' : true },
-        /**
-        * @private
-        * @property _tag2cmd
-        * @description A tag map of HTML tags to convert to the different types of commands so we can select the proper toolbar button.
-        * @type Object
-        */
-        _tag2cmd: {
-            'b': 'bold',
-            'strong': 'bold',
-            'i': 'italic',
-            'em': 'italic',
-            'u': 'underline',
-            'sup': 'superscript',
-            'sub': 'subscript',
-            'img': 'insertimage',
-            'a' : 'createlink',
-            'ul' : 'insertunorderedlist',
-            'ol' : 'insertorderedlist'
-        },
-
-        /**
-        * @private _createIframe
-        * @description Creates the DOM and YUI Element for the iFrame editor area.
-        * @param {String} id The string ID to prefix the iframe with
-        * @return {Object} iFrame object
-        */
-        _createIframe: function() {
-            var ifrmDom = document.createElement('iframe');
-            ifrmDom.id = this.get('id') + '_editor';
-            var config = {
-                border: '0',
-                frameBorder: '0',
-                marginWidth: '0',
-                marginHeight: '0',
-                leftMargin: '0',
-                topMargin: '0',
-                allowTransparency: 'true',
-                width: '100%'
-            };
-            if (this.get('autoHeight')) {
-                config.scrolling = 'no';
-            }
-            for (var i in config) {
-                if (Lang.hasOwnProperty(config, i)) {
-                    ifrmDom.setAttribute(i, config[i]);
-                }
-            }
-            var isrc = 'javascript:;';
-            if (this.browser.ie) {
-                //isrc = 'about:blank';
-                //TODO - Check this, I have changed it before..
-                isrc = 'javascript:false;';
-            }
-            ifrmDom.setAttribute('src', isrc);
-            var ifrm = new YAHOO.util.Element(ifrmDom);
-            ifrm.setStyle('visibility', 'hidden');
-            return ifrm;
-        },
-        /**
-        * @private _isElement
-        * @description Checks to see if an Element reference is a valid one and has a certain tag type
-        * @param {HTMLElement} el The element to check
-        * @param {String} tag The tag that the element needs to be
-        * @return {Boolean}
-        */
-        _isElement: function(el, tag) {
-            if (el && el.tagName && (el.tagName.toLowerCase() == tag)) {
-                return true;
-            }
-            if (el && el.getAttribute && (el.getAttribute('tag') == tag)) {
-                return true;
-            }
-            return false;
-        },
-        /**
-        * @private _hasParent
-        * @description Checks to see if an Element reference or one of it's parents is a valid one and has a certain tag type
-        * @param {HTMLElement} el The element to check
-        * @param {String} tag The tag that the element needs to be
-        * @return HTMLElement
-        */
-        _hasParent: function(el, tag) {
-            if (!el || !el.parentNode) {
-                return false;
-            }
-            
-            while (el.parentNode) {
-                if (this._isElement(el, tag)) {
-                    return el;
-                }
-                if (el.parentNode) {
-                    el = el.parentNode;
-                } else {
-                    return false;
-                }
-            }
-            return false;
-        },
-        /**
-        * @private
-        * @method _getDoc
-        * @description Get the Document of the IFRAME
-        * @return {Object}
-        */
-        _getDoc: function() {
-            var value = false;
-            try {
-                if (this.get('iframe').get('element').contentWindow.document) {
-                    value = this.get('iframe').get('element').contentWindow.document;
-                    return value;
-                }
-            } catch (e) {
-                return false;
-            }
-        },
-        /**
-        * @private
-        * @method _getWindow
-        * @description Get the Window of the IFRAME
-        * @return {Object}
-        */
-        _getWindow: function() {
-            return this.get('iframe').get('element').contentWindow;
-        },
-        /**
-        * @method focus
-        * @description Attempt to set the focus of the iframes window.
-        */
-        focus: function() {
-            this._getWindow().focus();
-        },
-        /**
-        * @private
-        * @depreciated - This should not be used, moved to this.focus();
-        * @method _focusWindow
-        * @description Attempt to set the focus of the iframes window.
-        */
-        _focusWindow: function() {
-            this.focus();
-        },
-        /**
-        * @private
-        * @method _hasSelection
-        * @description Determines if there is a selection in the editor document.
-        * @return {Boolean}
-        */
-        _hasSelection: function() {
-            var sel = this._getSelection();
-            var range = this._getRange();
-            var hasSel = false;
-
-            if (!sel || !range) {
-                return hasSel;
-            }
-
-            //Internet Explorer
-            if (this.browser.ie || this.browser.opera) {
-                if (range.text) {
-                    hasSel = true;
-                }
-                if (range.html) {
-                    hasSel = true;
-                }
-            } else {
-                if (this.browser.webkit) {
-                    if (sel+'' !== '') {
-                        hasSel = true;
-                    }
-                } else {
-                    if (sel && (sel.toString() !== '') && (sel !== undefined)) {
-                        hasSel = true;
-                    }
-                }
-            }
-            return hasSel;
-        },
-        /**
-        * @private
-        * @method _getSelection
-        * @description Handles the different selection objects across the A-Grade list.
-        * @return {Object} Selection Object
-        */
-        _getSelection: function() {
-            var _sel = null;
-            if (this._getDoc() && this._getWindow()) {
-                if (this._getDoc().selection) {
-                    _sel = this._getDoc().selection;
-                } else {
-                    _sel = this._getWindow().getSelection();
-                }
-                //Handle Safari's lack of Selection Object
-                if (this.browser.webkit) {
-                    if (_sel.baseNode) {
-                            this._selection = {};
-                            this._selection.baseNode = _sel.baseNode;
-                            this._selection.baseOffset = _sel.baseOffset;
-                            this._selection.extentNode = _sel.extentNode;
-                            this._selection.extentOffset = _sel.extentOffset;
-                    } else if (this._selection !== null) {
-                        _sel = this._getWindow().getSelection();
-                        _sel.setBaseAndExtent(
-                            this._selection.baseNode,
-                            this._selection.baseOffset,
-                            this._selection.extentNode,
-                            this._selection.extentOffset);
-                        this._selection = null;
-                    }
-                }
-            }
-            return _sel;
-        },
-        /**
-        * @private
-        * @method _selectNode
-        * @description Places the highlight around a given node
-        * @param {HTMLElement} node The node to select
-        */
-        _selectNode: function(node, collapse) {
-            if (!node) {
-                return false;
-            }
-            var sel = this._getSelection(),
-                range = null;
-
-            if (this.browser.ie) {
-                try { //IE freaks out here sometimes..
-                    range = this._getDoc().body.createTextRange();
-                    range.moveToElementText(node);
-                    range.select();
-                } catch (e) {
-                }
-            } else if (this.browser.webkit) {
-                if (collapse) {
-                                   sel.setBaseAndExtent(node, 1, node, node.innerText.length);
-                } else {
-                                   sel.setBaseAndExtent(node, 0, node, node.innerText.length);
-                }
-            } else if (this.browser.opera) {
-                sel = this._getWindow().getSelection();
-                range = this._getDoc().createRange();
-                range.selectNode(node);
-                sel.removeAllRanges();
-                sel.addRange(range);
-            } else {
-                range = this._getDoc().createRange();
-                range.selectNodeContents(node);
-                sel.removeAllRanges();
-                sel.addRange(range);
-            }
-            //TODO - Check Performance
-            this.nodeChange();
-        },
-        /**
-        * @private
-        * @method _getRange
-        * @description Handles the different range objects across the A-Grade list.
-        * @return {Object} Range Object
-        */
-        _getRange: function() {
-            var sel = this._getSelection();
-
-            if (sel === null) {
-                return null;
-            }
-
-            if (this.browser.webkit && !sel.getRangeAt) {
-                var _range = this._getDoc().createRange();
-                try {
-                    _range.setStart(sel.anchorNode, sel.anchorOffset);
-                    _range.setEnd(sel.focusNode, sel.focusOffset);
-                } catch (e) {
-                    _range = this._getWindow().getSelection()+'';
-                }
-                return _range;
-            }
-
-            if (this.browser.ie || this.browser.opera) {
-                try {
-                    return sel.createRange();
-                } catch (e2) {
-                    return null;
-                }
-            }
-
-            if (sel.rangeCount > 0) {
-                return sel.getRangeAt(0);
-            }
-            return null;
-        },
-        /**
-        * @private
-        * @method _setDesignMode
-        * @description Sets the designMode property of the iFrame document's body.
-        * @param {String} state This should be either on or off
-        */
-        _setDesignMode: function(state) {
-            if (this.get('setDesignMode')) {
-                try {
-                    this._getDoc().designMode = ((state.toLowerCase() == 'off') ? 'off' : 'on');
-                } catch(e) { }
-            }
-        },
-        /**
-        * @private
-        * @method _toggleDesignMode
-        * @description Toggles the designMode property of the iFrame document on and off.
-        * @return {String} The state that it was set to.
-        */
-        _toggleDesignMode: function() {
-            var _dMode = this._getDoc().designMode,
-                _state = ((_dMode.toLowerCase() == 'on') ? 'off' : 'on');
-            this._setDesignMode(_state);
-            return _state;
-        },
-        /**
-        * @private
-        * @property _focused
-        * @description Holder for trapping focus/blur state and prevent double events
-        * @type Boolean
-        */
-        _focused: null,
-        /**
-        * @private
-        * @method _handleFocus
-        * @description Handles the focus of the iframe. Note, this is window focus event, not an Editor focus event.
-        * @param {Event} e The DOM Event
-        */
-        _handleFocus: function(e) {
-            if (!this._focused) {
-                this._focused = true;
-                this.fireEvent('editorWindowFocus', { type: 'editorWindowFocus', target: this });
-            }
-        },
-        /**
-        * @private
-        * @method _handleBlur
-        * @description Handles the blur of the iframe. Note, this is window blur event, not an Editor blur event.
-        * @param {Event} e The DOM Event
-        */
-        _handleBlur: function(e) {
-            if (this._focused) {
-                this._focused = false;
-                this.fireEvent('editorWindowBlur', { type: 'editorWindowBlur', target: this });
-            }
-        },
-        /**
-        * @private
-        * @method _initEditorEvents
-        * @description This method sets up the listeners on the Editors document.
-        */
-        _initEditorEvents: function() {
-            //Setup Listeners on iFrame
-            var doc = this._getDoc(),
-                win = this._getWindow();
-
-            Event.on(doc, 'mouseup', this._handleMouseUp, this, true);
-            Event.on(doc, 'mousedown', this._handleMouseDown, this, true);
-            Event.on(doc, 'click', this._handleClick, this, true);
-            Event.on(doc, 'dblclick', this._handleDoubleClick, this, true);
-            Event.on(doc, 'keypress', this._handleKeyPress, this, true);
-            Event.on(doc, 'keyup', this._handleKeyUp, this, true);
-            Event.on(doc, 'keydown', this._handleKeyDown, this, true);
-            /* TODO -- Everyone but Opera works here..
-            Event.on(doc, 'paste', function() {
-            }, this, true);
-            */
-            //Focus and blur..
-            Event.on(win, 'focus', this._handleFocus, this, true);
-            Event.on(win, 'blur', this._handleBlur, this, true);
-        },
-        /**
-        * @private
-        * @method _removeEditorEvents
-        * @description This method removes the listeners on the Editors document (for disabling).
-        */
-        _removeEditorEvents: function() {
-            //Remove Listeners on iFrame
-            var doc = this._getDoc(),
-                win = this._getWindow();
-
-            Event.removeListener(doc, 'mouseup', this._handleMouseUp, this, true);
-            Event.removeListener(doc, 'mousedown', this._handleMouseDown, this, true);
-            Event.removeListener(doc, 'click', this._handleClick, this, true);
-            Event.removeListener(doc, 'dblclick', this._handleDoubleClick, this, true);
-            Event.removeListener(doc, 'keypress', this._handleKeyPress, this, true);
-            Event.removeListener(doc, 'keyup', this._handleKeyUp, this, true);
-            Event.removeListener(doc, 'keydown', this._handleKeyDown, this, true);
-
-            //Focus and blur..
-            Event.removeListener(win, 'focus', this._handleFocus, this, true);
-            Event.removeListener(win, 'blur', this._handleBlur, this, true);
-        },
-        _fixWebkitDivs: function() {
-            if (this.browser.webkit) {
-                var divs = this._getDoc().body.getElementsByTagName('div');
-                Dom.addClass(divs, 'yui-wk-div');
-            }
-        },
-        /**
-        * @private
-        * @method _initEditor
-        * @param {Boolean} raw Don't add events.
-        * @description This method is fired from _checkLoaded when the document is ready. It turns on designMode and set's up the listeners.
-        */
-        _initEditor: function(raw) {
-            if (this._editorInit) {
-                return;
-            }
-            this._editorInit = true;
-            if (this.browser.ie) {
-                this._getDoc().body.style.margin = '0';
-            }
-            if (!this.get('disabled')) {
-                this._setDesignMode('on');
-                this._contentTimerCounter = 0;
-            }
-            if (!this._getDoc().body) {
-                this._contentTimerCounter = 0;
-                this._editorInit = false;
-                this._checkLoaded();
-                return false;
-            }
-            
-            if (!raw) {
-                this.toolbar.on('buttonClick', this._handleToolbarClick, this, true);
-            }
-            if (!this.get('disabled')) {
-                this._initEditorEvents();
-                this.toolbar.set('disabled', false);
-            }
-
-            if (raw) {
-                this.fireEvent('editorContentReloaded', { type: 'editorreloaded', target: this });
-            } else {
-                this.fireEvent('editorContentLoaded', { type: 'editorLoaded', target: this });
-            }
-            this._fixWebkitDivs();
-            if (this.get('dompath')) {
-                var self = this;
-                setTimeout(function() {
-                    self._writeDomPath.call(self);
-                    self._setupResize.call(self);
-                }, 150);
-            }
-            var br = [];
-            for (var i in this.browser) {
-                if (this.browser[i]) {
-                    br.push(i);
-                }
-            }
-            if (this.get('ptags')) {
-                br.push('ptags');
-            }
-            Dom.addClass(this._getDoc().body, br.join(' '));
-            this.nodeChange(true);
-        },
-        /**
-        * @private
-        * @method _checkLoaded
-        * @param {Boolean} raw Don't add events.
-        * @description Called from a setTimeout loop to check if the iframes body.onload event has fired, then it will init the editor.
-        */
-        _checkLoaded: function(raw) {
-            this._editorInit = false;
-            this._contentTimerCounter++;
-            if (this._contentTimer) {
-                clearTimeout(this._contentTimer);
-            }
-            if (this._contentTimerCounter > this._contentTimerMax) {
-                return false;
-            }
-            var init = false;
-            try {
-                if (this._getDoc() && this._getDoc().body) {
-                    if (this.browser.ie) {
-                        if (this._getDoc().body.readyState == 'complete') {
-                            init = true;
-                        }
-                    } else {
-                        if (this._getDoc().body._rteLoaded === true) {
-                            init = true;
-                        }
-                    }
-                }
-            } catch (e) {
-                init = false;
-            }
-
-            if (init === true) {
-                //The onload event has fired, clean up after ourselves and fire the _initEditor method
-                this._initEditor(raw);
-            } else {
-                var self = this;
-                this._contentTimer = setTimeout(function() {
-                    self._checkLoaded.call(self, raw);
-                }, 20);
-            }
-        },
-        /**
-        * @private
-        * @method _setInitialContent
-        * @param {Boolean} raw Don't add events.
-        * @description This method will open the iframes content document and write the textareas value into it, then start the body.onload checking.
-        */
-        _setInitialContent: function(raw) {
-
-            var value = ((this._textarea) ? this.get('element').value : this.get('element').innerHTML),
-                doc = null;
-
-            if (value === '') {
-                value = '<br>';
-            }
-
-            var html = Lang.substitute(this.get('html'), {
-                TITLE: this.STR_TITLE,
-                CONTENT: this._cleanIncomingHTML(value),
-                CSS: this.get('css'),
-                HIDDEN_CSS: ((this.get('hiddencss')) ? this.get('hiddencss') : '/* No Hidden CSS */'),
-                EXTRA_CSS: ((this.get('extracss')) ? this.get('extracss') : '/* No Extra CSS */')
-            }),
-            check = true;
-
-            html = html.replace(/RIGHT_BRACKET/gi, '{');
-            html = html.replace(/LEFT_BRACKET/gi, '}');
-
-            if (document.compatMode != 'BackCompat') {
-                html = this._docType + "\n" + html;
-            } else {
-            }
-
-            if (this.browser.ie || this.browser.webkit || this.browser.opera || (navigator.userAgent.indexOf('Firefox/1.5') != -1)) {
-                //Firefox 1.5 doesn't like setting designMode on an document created with a data url
-                try {
-                    //Adobe AIR Code
-                    if (this.browser.air) {
-                        doc = this._getDoc().implementation.createHTMLDocument();
-                        var origDoc = this._getDoc();
-                        origDoc.open();
-                        origDoc.close();
-                        doc.open();
-                        doc.write(html);
-                        doc.close();
-                        var node = origDoc.importNode(doc.getElementsByTagName("html")[0], true);
-                        origDoc.replaceChild(node, origDoc.getElementsByTagName("html")[0]);
-                        origDoc.body._rteLoaded = true;
-                    } else {
-                        doc = this._getDoc();
-                        doc.open();
-                        doc.write(html);
-                        doc.close();
-                    }
-                } catch (e) {
-                    //Safari will only be here if we are hidden
-                    check = false;
-                }
-            } else {
-                //This keeps Firefox 2 from writing the iframe to history preserving the back buttons functionality
-                this.get('iframe').get('element').src = 'data:text/html;charset=utf-8,' + encodeURIComponent(html);
-            }
-            this.get('iframe').setStyle('visibility', '');
-            if (check) {
-                this._checkLoaded(raw);
-            }            
-        },
-        /**
-        * @private
-        * @method _setMarkupType
-        * @param {String} action The action to take. Possible values are: css, default or semantic
-        * @description This method will turn on/off the useCSS execCommand.
-        */
-        _setMarkupType: function(action) {
-            switch (this.get('markup')) {
-                case 'css':
-                    this._setEditorStyle(true);
-                    break;
-                case 'default':
-                    this._setEditorStyle(false);
-                    break;
-                case 'semantic':
-                case 'xhtml':
-                    if (this._semantic[action]) {
-                        this._setEditorStyle(false);
-                    } else {
-                        this._setEditorStyle(true);
-                    }
-                    break;
-            }
-        },
-        /**
-        * Set the editor to use CSS instead of HTML
-        * @param {Booleen} stat True/False
-        */
-        _setEditorStyle: function(stat) {
-            try {
-                this._getDoc().execCommand('useCSS', false, !stat);
-            } catch (ex) {
-            }
-        },
-        /**
-        * @private
-        * @method _getSelectedElement
-        * @description This method will attempt to locate the element that was last interacted with, either via selection, location or event.
-        * @return {HTMLElement} The currently selected element.
-        */
-        _getSelectedElement: function() {
-            var doc = this._getDoc(),
-                range = null,
-                sel = null,
-                elm = null,
-                check = true;
-
-            if (this.browser.ie) {
-                this.currentEvent = this._getWindow().event; //Event utility assumes window.event, so we need to reset it to this._getWindow().event;
-                range = this._getRange();
-                if (range) {
-                    elm = range.item ? range.item(0) : range.parentElement();
-                    if (this._hasSelection()) {
-                        //TODO
-                        //WTF.. Why can't I get an element reference here?!??!
-                    }
-                    if (elm === doc.body) {
-                        elm = null;
-                    }
-                }
-                if ((this.currentEvent !== null) && (this.currentEvent.keyCode === 0)) {
-                    elm = Event.getTarget(this.currentEvent);
-                }
-            } else {
-                sel = this._getSelection();
-                range = this._getRange();
-
-                if (!sel || !range) {
-                    return null;
-                }
-                //TODO
-                if (!this._hasSelection() && this.browser.webkit3) {
-                    //check = false;
-                }
-                if (this.browser.gecko) {
-                    //Added in 2.6.0
-                    if (range.startContainer) {
-                        if (range.startContainer.nodeType === 3) {
-                            elm = range.startContainer.parentNode;
-                        } else if (range.startContainer.nodeType === 1) {
-                            elm = range.startContainer;
-                        }
-                        //Added in 2.7.0
-                        if (this.currentEvent) {
-                            var tar = Event.getTarget(this.currentEvent);
-                            if (!this._isElement(tar, 'html')) {
-                                if (elm !== tar) {
-                                    elm = tar;
-                                }
-                            }
-                        }
-                    }
-                }
-                
-                if (check) {
-                    if (sel.anchorNode && (sel.anchorNode.nodeType == 3)) {
-                        if (sel.anchorNode.parentNode) { //next check parentNode
-                            elm = sel.anchorNode.parentNode;
-                        }
-                        if (sel.anchorNode.nextSibling != sel.focusNode.nextSibling) {
-                            elm = sel.anchorNode.nextSibling;
-                        }
-                    }
-                    if (this._isElement(elm, 'br')) {
-                        elm = null;
-                    }
-                    if (!elm) {
-                        elm = range.commonAncestorContainer;
-                        if (!range.collapsed) {
-                            if (range.startContainer == range.endContainer) {
-                                if (range.startOffset - range.endOffset < 2) {
-                                    if (range.startContainer.hasChildNodes()) {
-                                        elm = range.startContainer.childNodes[range.startOffset];
-                                    }
-                                }
-                            }
-                        }
-                    }
-               }
-            }
-            
-            if (this.currentEvent !== null) {
-                try {
-                    switch (this.currentEvent.type) {
-                        case 'click':
-                        case 'mousedown':
-                        case 'mouseup':
-                            if (this.browser.webkit) {
-                                elm = Event.getTarget(this.currentEvent);
-                            }
-                            break;
-                        default:
-                            //Do nothing
-                            break;
-                    }
-                } catch (e) {
-                }
-            } else if ((this.currentElement && this.currentElement[0]) && (!this.browser.ie)) {
-                //TODO is this still needed?
-                //elm = this.currentElement[0];
-            }
-
-
-            if (this.browser.opera || this.browser.webkit) {
-                if (this.currentEvent && !elm) {
-                    elm = YAHOO.util.Event.getTarget(this.currentEvent);
-                }
-            }
-            if (!elm || !elm.tagName) {
-                elm = doc.body;
-            }
-            if (this._isElement(elm, 'html')) {
-                //Safari sometimes gives us the HTML node back..
-                elm = doc.body;
-            }
-            if (this._isElement(elm, 'body')) {
-                //make sure that body means this body not the parent..
-                elm = doc.body;
-            }
-            if (elm && !elm.parentNode) { //Not in document
-                elm = doc.body;
-            }
-            if (elm === undefined) {
-                elm = null;
-            }
-            return elm;
-        },
-        /**
-        * @private
-        * @method _getDomPath
-        * @description This method will attempt to build the DOM path from the currently selected element.
-        * @param HTMLElement el The element to start with, if not provided _getSelectedElement is used
-        * @return {Array} An array of node references that will create the DOM Path.
-        */
-        _getDomPath: function(el) {
-            if (!el) {
-                           el = this._getSelectedElement();
-            }
-                       var domPath = [];
-            while (el !== null) {
-                if (el.ownerDocument != this._getDoc()) {
-                    el = null;
-                    break;
-                }
-                //Check to see if we get el.nodeName and nodeType
-                if (el.nodeName && el.nodeType && (el.nodeType == 1)) {
-                    domPath[domPath.length] = el;
-                }
-
-                if (this._isElement(el, 'body')) {
-                    break;
-                }
-
-                el = el.parentNode;
-            }
-            if (domPath.length === 0) {
-                if (this._getDoc() && this._getDoc().body) {
-                    domPath[0] = this._getDoc().body;
-                }
-            }
-            return domPath.reverse();
-        },
-        /**
-        * @private
-        * @method _writeDomPath
-        * @description Write the current DOM path out to the dompath container below the editor.
-        */
-        _writeDomPath: function() { 
-            var path = this._getDomPath(),
-                pathArr = [],
-                classPath = '',
-                pathStr = '';
-
-            for (var i = 0; i < path.length; i++) {
-                var tag = path[i].tagName.toLowerCase();
-                if ((tag == 'ol') && (path[i].type)) {
-                    tag += ':' + path[i].type;
-                }
-                if (Dom.hasClass(path[i], 'yui-tag')) {
-                    tag = path[i].getAttribute('tag');
-                }
-                if ((this.get('markup') == 'semantic') || (this.get('markup') == 'xhtml')) {
-                    switch (tag) {
-                        case 'b': tag = 'strong'; break;
-                        case 'i': tag = 'em'; break;
-                    }
-                }
-                if (!Dom.hasClass(path[i], 'yui-non')) {
-                    if (Dom.hasClass(path[i], 'yui-tag')) {
-                        pathStr = tag;
-                    } else {
-                        classPath = ((path[i].className !== '') ? '.' + path[i].className.replace(/ /g, '.') : '');
-                        if ((classPath.indexOf('yui') != -1) || (classPath.toLowerCase().indexOf('apple-style-span') != -1)) {
-                            classPath = '';
-                        }
-                        pathStr = tag + ((path[i].id) ? '#' + path[i].id : '') + classPath;
-                    }
-                    switch (tag) {
-                        case 'body':
-                            pathStr = 'body';
-                            break;
-                        case 'a':
-                            if (path[i].getAttribute('href', 2)) {
-                                pathStr += ':' + path[i].getAttribute('href', 2).replace('mailto:', '').replace('http:/'+'/', '').replace('https:/'+'/', ''); //May need to add others here ftp
-                            }
-                            break;
-                        case 'img':
-                            var h = path[i].height;
-                            var w = path[i].width;
-                            if (path[i].style.height) {
-                                h = parseInt(path[i].style.height, 10);
-                            }
-                            if (path[i].style.width) {
-                                w = parseInt(path[i].style.width, 10);
-                            }
-                            pathStr += '(' + w + 'x' + h + ')';
-                        break;
-                    }
-
-                    if (pathStr.length > 10) {
-                        pathStr = '<span title="' + pathStr + '">' + pathStr.substring(0, 10) + '...' + '</span>';
-                    } else {
-                        pathStr = '<span title="' + pathStr + '">' + pathStr + '</span>';
-                    }
-                    pathArr[pathArr.length] = pathStr;
-                }
-            }
-            var str = pathArr.join(' ' + this.SEP_DOMPATH + ' ');
-            //Prevent flickering
-            if (this.dompath.innerHTML != str) {
-                this.dompath.innerHTML = str;
-            }
-        },
-        /**
-        * @private
-        * @method _fixNodes
-        * @description Fix href and imgs as well as remove invalid HTML.
-        */
-        _fixNodes: function() {
-            try {
-                var doc = this._getDoc(),
-                    els = [];
-
-                for (var v in this.invalidHTML) {
-                    if (YAHOO.lang.hasOwnProperty(this.invalidHTML, v)) {
-                        if (v.toLowerCase() != 'span') {
-                            var tags = doc.body.getElementsByTagName(v);
-                            if (tags.length) {
-                                for (var i = 0; i < tags.length; i++) {
-                                    els.push(tags[i]);
-                                }
-                            }
-                        }
-                    }
-                }
-                for (var h = 0; h < els.length; h++) {
-                    if (els[h].parentNode) {
-                        if (Lang.isObject(this.invalidHTML[els[h].tagName.toLowerCase()]) && this.invalidHTML[els[h].tagName.toLowerCase()].keepContents) {
-                            this._swapEl(els[h], 'span', function(el) {
-                                el.className = 'yui-non';
-                            });
-                        } else {
-                            els[h].parentNode.removeChild(els[h]);
-                        }
-                    }
-                }
-                var imgs = this._getDoc().getElementsByTagName('img');
-                Dom.addClass(imgs, 'yui-img');
-            } catch(e) {}
-        },
-        /**
-        * @private
-        * @method _isNonEditable
-        * @param Event ev The Dom event being checked
-        * @description Method is called at the beginning of all event handlers to check if this element or a parent element has the class yui-noedit (this.CLASS_NOEDIT) applied.
-        * If it does, then this method will stop the event and return true. The event handlers will then return false and stop the nodeChange from occuring. This method will also
-        * disable and enable the Editor's toolbar based on the noedit state.
-        * @return Boolean
-        */
-        _isNonEditable: function(ev) {
-            if (this.get('allowNoEdit')) {
-                var el = Event.getTarget(ev);
-                if (this._isElement(el, 'html')) {
-                    el = null;
-                }
-                var path = this._getDomPath(el);
-                for (var i = (path.length - 1); i > -1; i--) {
-                    if (Dom.hasClass(path[i], this.CLASS_NOEDIT)) {
-                        //if (this.toolbar.get('disabled') === false) {
-                        //    this.toolbar.set('disabled', true);
-                        //}
-                        try {
-                             this._getDoc().execCommand('enableObjectResizing', false, 'false');
-                        } catch (e) {}
-                        this.nodeChange();
-                        Event.stopEvent(ev);
-                        return true;
-                    }
-                }
-                //if (this.toolbar.get('disabled') === true) {
-                    //Should only happen once..
-                    //this.toolbar.set('disabled', false);
-                    try {
-                         this._getDoc().execCommand('enableObjectResizing', false, 'true');
-                    } catch (e2) {}
-                //}
-            }
-            return false;
-        },
-        /**
-        * @private
-        * @method _setCurrentEvent
-        * @param {Event} ev The event to cache
-        * @description Sets the current event property
-        */
-        _setCurrentEvent: function(ev) {
-            this.currentEvent = ev;
-        },
-        /**
-        * @private
-        * @method _handleClick
-        * @param {Event} ev The event we are working on.
-        * @description Handles all click events inside the iFrame document.
-        */
-        _handleClick: function(ev) {
-            var ret = this.fireEvent('beforeEditorClick', { type: 'beforeEditorClick', target: this, ev: ev });
-            if (ret === false) {
-                return false;
-            }
-            if (this._isNonEditable(ev)) {
-                return false;
-            }
-            this._setCurrentEvent(ev);
-            if (this.currentWindow) {
-                this.closeWindow();
-            }
-            if (this.currentWindow) {
-                this.closeWindow();
-            }
-            if (this.browser.webkit) {
-                var tar =Event.getTarget(ev);
-                if (this._isElement(tar, 'a') || this._isElement(tar.parentNode, 'a')) {
-                    Event.stopEvent(ev);
-                    this.nodeChange();
-                }
-            } else {
-                this.nodeChange();
-            }
-            this.fireEvent('editorClick', { type: 'editorClick', target: this, ev: ev });
-        },
-        /**
-        * @private
-        * @method _handleMouseUp
-        * @param {Event} ev The event we are working on.
-        * @description Handles all mouseup events inside the iFrame document.
-        */
-        _handleMouseUp: function(ev) {
-            var ret = this.fireEvent('beforeEditorMouseUp', { type: 'beforeEditorMouseUp', target: this, ev: ev });
-            if (ret === false) {
-                return false;
-            }
-            if (this._isNonEditable(ev)) {
-                return false;
-            }
-            //Don't set current event for mouseup.
-            //It get's fired after a menu is closed and gives up a bogus event to work with
-            //this._setCurrentEvent(ev);
-            var self = this;
-            if (this.browser.opera) {
-                /*
-                * @knownissue Opera appears to stop the MouseDown, Click and DoubleClick events on an image inside of a document with designMode on..
-                * @browser Opera
-                * @description This work around traps the MouseUp event and sets a timer to check if another MouseUp event fires in so many seconds. If another event is fired, they we internally fire the DoubleClick event.
-                */
-                var sel = Event.getTarget(ev);
-                if (this._isElement(sel, 'img')) {
-                    this.nodeChange();
-                    if (this.operaEvent) {
-                        clearTimeout(this.operaEvent);
-                        this.operaEvent = null;
-                        this._handleDoubleClick(ev);
-                    } else {
-                        this.operaEvent = window.setTimeout(function() {
-                            self.operaEvent = false;
-                        }, 700);
-                    }
-                }
-            }
-            //This will stop Safari from selecting the entire document if you select all the text in the editor
-            if (this.browser.webkit || this.browser.opera) {
-                if (this.browser.webkit) {
-                    Event.stopEvent(ev);
-                }
-            }
-            this.nodeChange();
-            this.fireEvent('editorMouseUp', { type: 'editorMouseUp', target: this, ev: ev });
-        },
-        /**
-        * @private
-        * @method _handleMouseDown
-        * @param {Event} ev The event we are working on.
-        * @description Handles all mousedown events inside the iFrame document.
-        */
-        _handleMouseDown: function(ev) {
-            var ret = this.fireEvent('beforeEditorMouseDown', { type: 'beforeEditorMouseDown', target: this, ev: ev });
-            if (ret === false) {
-                return false;
-            }
-            if (this._isNonEditable(ev)) {
-                return false;
-            }
-            this._setCurrentEvent(ev);
-            var sel = Event.getTarget(ev);
-            if (this.browser.webkit && this._hasSelection()) {
-                var _sel = this._getSelection();
-                if (!this.browser.webkit3) {
-                    _sel.collapse(true);
-                } else {
-                    _sel.collapseToStart();
-                }
-            }
-            if (this.browser.webkit && this._lastImage) {
-                Dom.removeClass(this._lastImage, 'selected');
-                this._lastImage = null;
-            }
-            if (this._isElement(sel, 'img') || this._isElement(sel, 'a')) {
-                if (this.browser.webkit) {
-                    Event.stopEvent(ev);
-                    if (this._isElement(sel, 'img')) {
-                        Dom.addClass(sel, 'selected');
-                        this._lastImage = sel;
-                    }
-                }
-                if (this.currentWindow) {
-                    this.closeWindow();
-                }
-                this.nodeChange();
-            }
-            this.fireEvent('editorMouseDown', { type: 'editorMouseDown', target: this, ev: ev });
-        },
-        /**
-        * @private
-        * @method _handleDoubleClick
-        * @param {Event} ev The event we are working on.
-        * @description Handles all doubleclick events inside the iFrame document.
-        */
-        _handleDoubleClick: function(ev) {
-            var ret = this.fireEvent('beforeEditorDoubleClick', { type: 'beforeEditorDoubleClick', target: this, ev: ev });
-            if (ret === false) {
-                return false;
-            }
-            if (this._isNonEditable(ev)) {
-                return false;
-            }
-            this._setCurrentEvent(ev);
-            var sel = Event.getTarget(ev);
-            if (this._isElement(sel, 'img')) {
-                this.currentElement[0] = sel;
-                this.toolbar.fireEvent('insertimageClick', { type: 'insertimageClick', target: this.toolbar });
-                this.fireEvent('afterExecCommand', { type: 'afterExecCommand', target: this });
-            } else if (this._hasParent(sel, 'a')) { //Handle elements inside an a
-                this.currentElement[0] = this._hasParent(sel, 'a');
-                this.toolbar.fireEvent('createlinkClick', { type: 'createlinkClick', target: this.toolbar });
-                this.fireEvent('afterExecCommand', { type: 'afterExecCommand', target: this });
-            }
-            this.nodeChange();
-            this.fireEvent('editorDoubleClick', { type: 'editorDoubleClick', target: this, ev: ev });
-        },
-        /**
-        * @private
-        * @method _handleKeyUp
-        * @param {Event} ev The event we are working on.
-        * @description Handles all keyup events inside the iFrame document.
-        */
-        _handleKeyUp: function(ev) {
-            var ret = this.fireEvent('beforeEditorKeyUp', { type: 'beforeEditorKeyUp', target: this, ev: ev });
-            if (ret === false) {
-                return false;
-            }
-            if (this._isNonEditable(ev)) {
-                return false;
-            }
-            this._storeUndo();
-            this._setCurrentEvent(ev);
-            switch (ev.keyCode) {
-                case this._keyMap.SELECT_ALL.key:
-                    if (this._checkKey(this._keyMap.SELECT_ALL, ev)) {
-                        this.nodeChange();
-                    }
-                    break;
-                case 32: //Space Bar
-                case 35: //End
-                case 36: //Home
-                case 37: //Left Arrow
-                case 38: //Up Arrow
-                case 39: //Right Arrow
-                case 40: //Down Arrow
-                case 46: //Forward Delete
-                case 8: //Delete
-                case this._keyMap.CLOSE_WINDOW.key: //W key if window is open
-                    if ((ev.keyCode == this._keyMap.CLOSE_WINDOW.key) && this.currentWindow) {
-                        if (this._checkKey(this._keyMap.CLOSE_WINDOW, ev)) {
-                            this.closeWindow();
-                        }
-                    } else {
-                        if (!this.browser.ie) {
-                            if (this._nodeChangeTimer) {
-                                clearTimeout(this._nodeChangeTimer);
-                            }
-                            var self = this;
-                            this._nodeChangeTimer = setTimeout(function() {
-                                self._nodeChangeTimer = null;
-                                self.nodeChange.call(self);
-                            }, 100);
-                        } else {
-                            this.nodeChange();
-                        }
-                        this.editorDirty = true;
-                    }
-                    break;
-            }
-            this.fireEvent('editorKeyUp', { type: 'editorKeyUp', target: this, ev: ev });
-        },
-        /**
-        * @private
-        * @method _handleKeyPress
-        * @param {Event} ev The event we are working on.
-        * @description Handles all keypress events inside the iFrame document.
-        */
-        _handleKeyPress: function(ev) {
-            var ret = this.fireEvent('beforeEditorKeyPress', { type: 'beforeEditorKeyPress', target: this, ev: ev });
-            if (ret === false) {
-                return false;
-            }
-
-            if (this.get('allowNoEdit')) {
-                //if (ev && ev.keyCode && ((ev.keyCode == 46) || ev.keyCode == 63272)) {
-                if (ev && ev.keyCode && (ev.keyCode == 63272)) {
-                    //Forward delete key
-                    Event.stopEvent(ev);
-                }
-            }
-            if (this._isNonEditable(ev)) {
-                return false;
-            }
-            this._setCurrentEvent(ev);
-            this._storeUndo();
-            if (this.browser.opera) {
-                if (ev.keyCode === 13) {
-                    var tar = this._getSelectedElement();
-                    if (!this._isElement(tar, 'li')) {
-                        this.execCommand('inserthtml', '<br>');
-                        Event.stopEvent(ev);
-                    }
-                }
-            }
-            if (this.browser.webkit) {
-                if (!this.browser.webkit3) {
-                    if (ev.keyCode && (ev.keyCode == 122) && (ev.metaKey)) {
-                        //This is CMD + z (for undo)
-                        if (this._hasParent(this._getSelectedElement(), 'li')) {
-                            Event.stopEvent(ev);
-                        }
-                    }
-                }
-                this._listFix(ev);
-            }
-            this._fixListDupIds();
-            this.fireEvent('editorKeyPress', { type: 'editorKeyPress', target: this, ev: ev });
-        },
-        /**
-        * @private
-        * @method _handleKeyDown
-        * @param {Event} ev The event we are working on.
-        * @description Handles all keydown events inside the iFrame document.
-        */
-        _handleKeyDown: function(ev) {
-            var ret = this.fireEvent('beforeEditorKeyDown', { type: 'beforeEditorKeyDown', target: this, ev: ev });
-            if (ret === false) {
-                return false;
-            }
-            var tar = null, _range = null;
-            if (this._isNonEditable(ev)) {
-                return false;
-            }
-            this._setCurrentEvent(ev);
-            if (this.currentWindow) {
-                this.closeWindow();
-            }
-            if (this.currentWindow) {
-                this.closeWindow();
-            }
-            var doExec = false,
-                action = null,
-                value = null,
-                exec = false;
-
-
-            switch (ev.keyCode) {
-                case this._keyMap.FOCUS_TOOLBAR.key:
-                    if (this._checkKey(this._keyMap.FOCUS_TOOLBAR, ev)) {
-                        var h = this.toolbar.getElementsByTagName('h2')[0];
-                        if (h && h.firstChild) {
-                            h.firstChild.focus();
-                        }
-                    } else if (this._checkKey(this._keyMap.FOCUS_AFTER, ev)) {
-                        //Focus After Element - Esc
-                        this.afterElement.focus();
-                    }
-                    Event.stopEvent(ev);
-                    doExec = false;
-                    break;
-                //case 76: //L
-                case this._keyMap.CREATE_LINK.key: //L
-                    if (this._hasSelection()) {
-                        if (this._checkKey(this._keyMap.CREATE_LINK, ev)) {
-                            var makeLink = true;
-                            if (this.get('limitCommands')) {
-                                if (!this.toolbar.getButtonByValue('createlink')) {
-                                    makeLink = false;
-                                }
-                            }
-                            if (makeLink) {
-                                this.execCommand('createlink', '');
-                                this.toolbar.fireEvent('createlinkClick', { type: 'createlinkClick', target: this.toolbar });
-                                this.fireEvent('afterExecCommand', { type: 'afterExecCommand', target: this });
-                                doExec = false;
-                            }
-                        }
-                    }
-                    break;
-                //case 90: //Z
-                case this._keyMap.UNDO.key:
-                case this._keyMap.REDO.key:
-                    if (this._checkKey(this._keyMap.REDO, ev)) {
-                        action = 'redo';
-                        doExec = true;
-                    } else if (this._checkKey(this._keyMap.UNDO, ev)) {
-                        action = 'undo';
-                        doExec = true;
-                    }
-                    break;
-                //case 66: //B
-                case this._keyMap.BOLD.key:
-                    if (this._checkKey(this._keyMap.BOLD, ev)) {
-                        action = 'bold';
-                        doExec = true;
-                    }
-                    break;
-                case this._keyMap.FONT_SIZE_UP.key:
-                case this._keyMap.FONT_SIZE_DOWN.key:
-                    var uk = false, dk = false;
-                    if (this._checkKey(this._keyMap.FONT_SIZE_UP, ev)) {
-                        uk = true;
-                    }
-                    if (this._checkKey(this._keyMap.FONT_SIZE_DOWN, ev)) {
-                        dk = true;
-                    }
-                    if (uk || dk) {
-                        var fs_button = this.toolbar.getButtonByValue('fontsize'),
-                            label = parseInt(fs_button.get('label'), 10),
-                            newValue = (label + 1);
-
-                        if (dk) {
-                            newValue = (label - 1);
-                        }
-
-                        action = 'fontsize';
-                        value = newValue + 'px';
-                        doExec = true;
-                    }
-                    break;
-                //case 73: //I
-                case this._keyMap.ITALIC.key:
-                    if (this._checkKey(this._keyMap.ITALIC, ev)) {
-                        action = 'italic';
-                        doExec = true;
-                    }
-                    break;
-                //case 85: //U
-                case this._keyMap.UNDERLINE.key:
-                    if (this._checkKey(this._keyMap.UNDERLINE, ev)) {
-                        action = 'underline';
-                        doExec = true;
-                    }
-                    break;
-                case 9:
-                    if (this.browser.ie) {
-                        //Insert a tab in Internet Explorer
-                        _range = this._getRange();
-                        tar = this._getSelectedElement();
-                        if (!this._isElement(tar, 'li')) {
-                            if (_range) {
-                                _range.pasteHTML('&nbsp;&nbsp;&nbsp;&nbsp;');
-                                _range.collapse(false);
-                                _range.select();
-                            }
-                            Event.stopEvent(ev);
-                        }
-                    }
-                    //Firefox 3 code
-                    if (this.browser.gecko > 1.8) {
-                        tar = this._getSelectedElement();
-                        if (this._isElement(tar, 'li')) {
-                            if (ev.shiftKey) {
-                                this._getDoc().execCommand('outdent', null, '');
-                            } else {
-                                this._getDoc().execCommand('indent', null, '');
-                            }
-                            
-                        } else if (!this._hasSelection()) {
-                            this.execCommand('inserthtml', '&nbsp;&nbsp;&nbsp;&nbsp;');
-                        }
-                        Event.stopEvent(ev);
-                    }
-                    break;
-                case 13:
-                    var p = null, i = 0;
-                    if (this.get('ptags') && !ev.shiftKey) {
-                        if (this.browser.gecko) {
-                            tar = this._getSelectedElement();
-                            if (!this._hasParent(tar, 'li')) {
-                                if (this._hasParent(tar, 'p')) {
-                                    p = this._getDoc().createElement('p');
-                                    p.innerHTML = '&nbsp;';
-                                    Dom.insertAfter(p, tar);
-                                    this._selectNode(p.firstChild);
-                                } else if (this._isElement(tar, 'body')) {
-                                    this.execCommand('insertparagraph', null);
-                                    var ps = this._getDoc().body.getElementsByTagName('p');
-                                    for (i = 0; i < ps.length; i++) {
-                                        if (ps[i].getAttribute('_moz_dirty') !== null) {
-                                            p = this._getDoc().createElement('p');
-                                            p.innerHTML = '&nbsp;';
-                                            Dom.insertAfter(p, ps[i]);
-                                            this._selectNode(p.firstChild);
-                                            ps[i].removeAttribute('_moz_dirty');
-                                        }
-                                    }
-                                } else {
-                                    doExec = true;
-                                    action = 'insertparagraph';
-                                }
-                                Event.stopEvent(ev);
-                            }
-                        }
-                        if (this.browser.webkit) {
-                            tar = this._getSelectedElement();
-                            if (!this._hasParent(tar, 'li')) {
-                                this.execCommand('insertparagraph', null);
-                                var divs = this._getDoc().body.getElementsByTagName('div');
-                                for (i = 0; i < divs.length; i++) {
-                                    if (!Dom.hasClass(divs[i], 'yui-wk-div')) {
-                                        Dom.addClass(divs[i], 'yui-wk-p');
-                                    }
-                                }
-                                Event.stopEvent(ev);
-                            }
-                        }
-                    } else {
-                        if (this.browser.webkit) {
-                            tar = this._getSelectedElement();
-                            if (!this._hasParent(tar, 'li')) {
-                                if (this.browser.webkit4) {
-                                    this.execCommand('insertlinebreak');
-                                } else {
-                                    this.execCommand('inserthtml', '<var id="yui-br"></var>');
-                                    var holder = this._getDoc().getElementById('yui-br'),
-                                        br = this._getDoc().createElement('br'),
-                                        caret = this._getDoc().createElement('span');
-
-                                    holder.parentNode.replaceChild(br, holder);
-                                    caret.className = 'yui-non';
-                                    caret.innerHTML = '&nbsp;';
-                                    Dom.insertAfter(caret, br);
-                                    this._selectNode(caret);
-                                }
-                                Event.stopEvent(ev);
-                            }
-                        }
-                        if (this.browser.ie) {
-                            //Insert a <br> instead of a <p></p> in Internet Explorer
-                            _range = this._getRange();
-                            tar = this._getSelectedElement();
-                            if (!this._isElement(tar, 'li')) {
-                                if (_range) {
-                                    _range.pasteHTML('<br>');
-                                    _range.collapse(false);
-                                    _range.select();
-                                }
-                                Event.stopEvent(ev);
-                            }
-                        }
-                    }
-                    break;
-            }
-            if (this.browser.ie) {
-                this._listFix(ev);
-            }
-            if (doExec && action) {
-                this.execCommand(action, value);
-                Event.stopEvent(ev);
-                this.nodeChange();
-            }
-            this._storeUndo();
-            this.fireEvent('editorKeyDown', { type: 'editorKeyDown', target: this, ev: ev });
-        },
-        /**
-        * @private
-        * @property _fixListRunning
-        * @type Boolean
-        * @description Keeps more than one _fixListDupIds from running at the same time.
-        */
-        _fixListRunning: null,
-        /**
-        * @private
-        * @method _fixListDupIds
-        * @description Some browsers will duplicate the id of an LI when created in designMode.
-        * This method will fix the duplicate id issue. However it will only preserve the first element 
-        * in the document list with the unique id. 
-        */
-        _fixListDupIds: function() {
-            if (this._fixListRunning) {
-                return false;
-            }
-            if (this._getDoc()) {
-                this._fixListRunning = true;
-                var lis = this._getDoc().body.getElementsByTagName('li'),
-                    i = 0, ids = {};
-                for (i = 0; i < lis.length; i++) {
-                    if (lis[i].id) {
-                        if (ids[lis[i].id]) {
-                            lis[i].id = '';
-                        }
-                        ids[lis[i].id] = true;
-                    }
-                }
-                this._fixListRunning = false;
-            }
-        },
-        /**
-        * @private
-        * @method _listFix
-        * @param {Event} ev The event we are working on.
-        * @description Handles the Enter key, Tab Key and Shift + Tab keys for List Items.
-        */
-        _listFix: function(ev) {
-            var testLi = null, par = null, preContent = false, range = null;
-            //Enter Key
-            if (this.browser.webkit) {
-                if (ev.keyCode && (ev.keyCode == 13)) {
-                    if (this._hasParent(this._getSelectedElement(), 'li')) {
-                        var tar = this._hasParent(this._getSelectedElement(), 'li');
-                        if (tar.previousSibling) {
-                            if (tar.firstChild && (tar.firstChild.length == 1)) {
-                                this._selectNode(tar);
-                            }
-                        }
-                    }
-                }
-            }
-            //Shift + Tab Key
-            if (ev.keyCode && ((!this.browser.webkit3 && (ev.keyCode == 25)) || ((this.browser.webkit3 || !this.browser.webkit) && ((ev.keyCode == 9) && ev.shiftKey)))) {
-                testLi = this._getSelectedElement();
-                if (this._hasParent(testLi, 'li')) {
-                    testLi = this._hasParent(testLi, 'li');
-                    if (this._hasParent(testLi, 'ul') || this._hasParent(testLi, 'ol')) {
-                        par = this._hasParent(testLi, 'ul');
-                        if (!par) {
-                            par = this._hasParent(testLi, 'ol');
-                        }
-                        if (this._isElement(par.previousSibling, 'li')) {
-                            par.removeChild(testLi);
-                            par.parentNode.insertBefore(testLi, par.nextSibling);
-                            if (this.browser.ie) {
-                                range = this._getDoc().body.createTextRange();
-                                range.moveToElementText(testLi);
-                                range.collapse(false);
-                                range.select();
-                            }
-                            if (this.browser.webkit) {
-                                this._selectNode(testLi.firstChild);
-                            }
-                            Event.stopEvent(ev);
-                        }
-                    }
-                }
-            }
-            //Tab Key
-            if (ev.keyCode && ((ev.keyCode == 9) && (!ev.shiftKey))) {
-                var preLi = this._getSelectedElement();
-                if (this._hasParent(preLi, 'li')) {
-                    preContent = this._hasParent(preLi, 'li').innerHTML;
-                }
-                if (this.browser.webkit) {
-                    this._getDoc().execCommand('inserttext', false, '\t');
-                }
-                testLi = this._getSelectedElement();
-                if (this._hasParent(testLi, 'li')) {
-                    par = this._hasParent(testLi, 'li');
-                    var newUl = this._getDoc().createElement(par.parentNode.tagName.toLowerCase());
-                    if (this.browser.webkit) {
-                        var span = Dom.getElementsByClassName('Apple-tab-span', 'span', par);
-                        //Remove the span element that Safari puts in
-                        if (span[0]) {
-                            par.removeChild(span[0]);
-                            par.innerHTML = Lang.trim(par.innerHTML);
-                            //Put the HTML from the LI into this new LI
-                            if (preContent) {
-                                par.innerHTML = '<span class="yui-non">' + preContent + '</span>&nbsp;';
-                            } else {
-                                par.innerHTML = '<span class="yui-non">&nbsp;</span>&nbsp;';
-                            }
-                        }
-                    } else {
-                        if (preContent) {
-                            par.innerHTML = preContent + '&nbsp;';
-                        } else {
-                            par.innerHTML = '&nbsp;';
-                        }
-                    }
-
-                    par.parentNode.replaceChild(newUl, par);
-                    newUl.appendChild(par);
-                    if (this.browser.webkit) {
-                        this._getSelection().setBaseAndExtent(par.firstChild, 1, par.firstChild, par.firstChild.innerText.length);
-                        if (!this.browser.webkit3) {
-                            par.parentNode.parentNode.style.display = 'list-item';
-                            setTimeout(function() {
-                                par.parentNode.parentNode.style.display = 'block';
-                            }, 1);
-                        }
-                    } else if (this.browser.ie) {
-                        range = this._getDoc().body.createTextRange();
-                        range.moveToElementText(par);
-                        range.collapse(false);
-                        range.select();
-                    } else {
-                        this._selectNode(par);
-                    }
-                    Event.stopEvent(ev);
-                }
-                if (this.browser.webkit) {
-                    Event.stopEvent(ev);
-                }
-                this.nodeChange();
-            }
-        },
-        /**
-        * @method nodeChange
-        * @param {Boolean} force Optional paramenter to skip the threshold counter
-        * @description Handles setting up the toolbar buttons, getting the Dom path, fixing nodes.
-        */
-        nodeChange: function(force) {
-            var NCself = this;
-            this._storeUndo();
-            if (this.get('nodeChangeDelay')) {
-                this._nodeChangeDelayTimer = window.setTimeout(function() {
-                    NCself._nodeChangeDelayTimer = null;
-                    NCself._nodeChange.apply(NCself, arguments);
-                }, 0);
-            } else {
-                this._nodeChange();
-            }
-        },
-        /**
-        * @private
-        * @method _nodeChange
-        * @param {Boolean} force Optional paramenter to skip the threshold counter
-        * @description Fired from nodeChange in a setTimeout.
-        */
-        _nodeChange: function(force) {
-            var threshold = parseInt(this.get('nodeChangeThreshold'), 10),
-                thisNodeChange = Math.round(new Date().getTime() / 1000),
-                self = this;
-
-            if (force === true) {
-                this._lastNodeChange = 0;
-            }
-            
-            if ((this._lastNodeChange + threshold) < thisNodeChange) {
-                if (this._fixNodesTimer === null) {
-                    this._fixNodesTimer = window.setTimeout(function() {
-                        self._fixNodes.call(self);
-                        self._fixNodesTimer = null;
-                    }, 0);
-                }
-            }
-            this._lastNodeChange = thisNodeChange;
-            if (this.currentEvent) {
-                try {
-                    this._lastNodeChangeEvent = this.currentEvent.type;
-                } catch (e) {}
-            }
-
-            var beforeNodeChange = this.fireEvent('beforeNodeChange', { type: 'beforeNodeChange', target: this });
-            if (beforeNodeChange === false) {
-                return false;
-            }
-            if (this.get('dompath')) {
-                window.setTimeout(function() {
-                    self._writeDomPath.call(self);
-                }, 0);
-            }
-            //Check to see if we are disabled before continuing
-            if (!this.get('disabled')) {
-                if (this.STOP_NODE_CHANGE) {
-                    //Reset this var for next action
-                    this.STOP_NODE_CHANGE = false;
-                    return false;
-                } else {
-                    var sel = this._getSelection(),
-                        range = this._getRange(),
-                        el = this._getSelectedElement(),
-                        fn_button = this.toolbar.getButtonByValue('fontname'),
-                        fs_button = this.toolbar.getButtonByValue('fontsize'),
-                        undo_button = this.toolbar.getButtonByValue('undo'),
-                        redo_button = this.toolbar.getButtonByValue('redo');
-
-                    //Handle updating the toolbar with active buttons
-                    var _ex = {};
-                    if (this._lastButton) {
-                        _ex[this._lastButton.id] = true;
-                        //this._lastButton = null;
-                    }
-                    if (!this._isElement(el, 'body')) {
-                        if (fn_button) {
-                            _ex[fn_button.get('id')] = true;
-                        }
-                        if (fs_button) {
-                            _ex[fs_button.get('id')] = true;
-                        }
-                    }
-                    if (redo_button) {
-                        delete _ex[redo_button.get('id')];
-                    }
-                    this.toolbar.resetAllButtons(_ex);
-
-                    //Handle disabled buttons
-                    for (var d = 0; d < this._disabled.length; d++) {
-                        var _button = this.toolbar.getButtonByValue(this._disabled[d]);
-                        if (_button && _button.get) {
-                            if (this._lastButton && (_button.get('id') === this._lastButton.id)) {
-                                //Skip
-                            } else {
-                                if (!this._hasSelection() && !this.get('insert')) {
-                                    switch (this._disabled[d]) {
-                                        case 'fontname':
-                                        case 'fontsize':
-                                            break;
-                                        default:
-                                            //No Selection - disable
-                                            this.toolbar.disableButton(_button);
-                                    }
-                                } else {
-                                    if (!this._alwaysDisabled[this._disabled[d]]) {
-                                        this.toolbar.enableButton(_button);
-                                    }
-                                }
-                                if (!this._alwaysEnabled[this._disabled[d]]) {
-                                    this.toolbar.deselectButton(_button);
-                                }
-                            }
-                        }
-                    }
-                    var path = this._getDomPath();
-                    var tag = null, cmd = null;
-                    for (var i = 0; i < path.length; i++) {
-                        tag = path[i].tagName.toLowerCase();
-                        if (path[i].getAttribute('tag')) {
-                            tag = path[i].getAttribute('tag').toLowerCase();
-                        }
-                        cmd = this._tag2cmd[tag];
-                        if (cmd === undefined) {
-                            cmd = [];
-                        }
-                        if (!Lang.isArray(cmd)) {
-                            cmd = [cmd];
-                        }
-
-                        //Bold and Italic styles
-                        if (path[i].style.fontWeight.toLowerCase() == 'bold') {
-                            cmd[cmd.length] = 'bold';
-                        }
-                        if (path[i].style.fontStyle.toLowerCase() == 'italic') {
-                            cmd[cmd.length] = 'italic';
-                        }
-                        if (path[i].style.textDecoration.toLowerCase() == 'underline') {
-                            cmd[cmd.length] = 'underline';
-                        }
-                        if (path[i].style.textDecoration.toLowerCase() == 'line-through') {
-                            cmd[cmd.length] = 'strikethrough';
-                        }
-                        if (cmd.length > 0) {
-                            for (var j = 0; j < cmd.length; j++) {
-                                this.toolbar.selectButton(cmd[j]);
-                                this.toolbar.enableButton(cmd[j]);
-                            }
-                        }
-                        //Handle Alignment
-                        switch (path[i].style.textAlign.toLowerCase()) {
-                            case 'left':
-                            case 'right':
-                            case 'center':
-                            case 'justify':
-                                var alignType = path[i].style.textAlign.toLowerCase();
-                                if (path[i].style.textAlign.toLowerCase() == 'justify') {
-                                    alignType = 'full';
-                                }
-                                this.toolbar.selectButton('justify' + alignType);
-                                this.toolbar.enableButton('justify' + alignType);
-                                break;
-                        }
-                    }
-                    //After for loop
-
-                    //Reset Font Family and Size to the inital configs
-                    if (fn_button) {
-                        var family = fn_button._configs.label._initialConfig.value;
-                        fn_button.set('label', '<span class="yui-toolbar-fontname-' + this._cleanClassName(family) + '">' + family + '</span>');
-                        this._updateMenuChecked('fontname', family);
-                    }
-
-                    if (fs_button) {
-                        fs_button.set('label', fs_button._configs.label._initialConfig.value);
-                    }
-
-                    var hd_button = this.toolbar.getButtonByValue('heading');
-                    if (hd_button) {
-                        hd_button.set('label', hd_button._configs.label._initialConfig.value);
-                        this._updateMenuChecked('heading', 'none');
-                    }
-                    var img_button = this.toolbar.getButtonByValue('insertimage');
-                    if (img_button && this.currentWindow && (this.currentWindow.name == 'insertimage')) {
-                        this.toolbar.disableButton(img_button);
-                    }
-                    if (this._lastButton && this._lastButton.isSelected) {
-                        this.toolbar.deselectButton(this._lastButton.id);
-                    }
-                    this._undoNodeChange();
-                }
-            }
-
-            this.fireEvent('afterNodeChange', { type: 'afterNodeChange', target: this });
-        },
-        /**
-        * @private
-        * @method _updateMenuChecked
-        * @param {Object} button The command identifier of the button you want to check
-        * @param {String} value The value of the menu item you want to check
-        * @param {<a href="YAHOO.widget.Toolbar.html">YAHOO.widget.Toolbar</a>} The Toolbar instance the button belongs to (defaults to this.toolbar) 
-        * @description Gets the menu from a button instance, if the menu is not rendered it will render it. It will then search the menu for the specified value, unchecking all other items and checking the specified on.
-        */
-        _updateMenuChecked: function(button, value, tbar) {
-            if (!tbar) {
-                tbar = this.toolbar;
-            }
-            var _button = tbar.getButtonByValue(button);
-            _button.checkValue(value);
-        },
-        /**
-        * @private
-        * @method _handleToolbarClick
-        * @param {Event} ev The event that triggered the button click
-        * @description This is an event handler attached to the Toolbar's buttonClick event. It will fire execCommand with the command identifier from the Toolbar Button.
-        */
-        _handleToolbarClick: function(ev) {
-            var value = '';
-            var str = '';
-            var cmd = ev.button.value;
-            if (ev.button.menucmd) {
-                value = cmd;
-                cmd = ev.button.menucmd;
-            }
-            this._lastButton = ev.button;
-            if (this.STOP_EXEC_COMMAND) {
-                this.STOP_EXEC_COMMAND = false;
-                return false;
-            } else {
-                this.execCommand(cmd, value);
-                if (!this.browser.webkit) {
-                     var Fself = this;
-                     setTimeout(function() {
-                         Fself.focus.call(Fself);
-                     }, 5);
-                 }
-            }
-            Event.stopEvent(ev);
-        },
-        /**
-        * @private
-        * @method _setupAfterElement
-        * @description Creates the accessibility h2 header and places it after the iframe in the Dom for navigation.
-        */
-        _setupAfterElement: function() {
-            if (!this.beforeElement) {
-                this.beforeElement = document.createElement('h2');
-                this.beforeElement.className = 'yui-editor-skipheader';
-                this.beforeElement.tabIndex = '-1';
-                this.beforeElement.innerHTML = this.STR_BEFORE_EDITOR;
-                this.get('element_cont').get('firstChild').insertBefore(this.beforeElement, this.toolbar.get('nextSibling'));
-            }
-            if (!this.afterElement) {
-                this.afterElement = document.createElement('h2');
-                this.afterElement.className = 'yui-editor-skipheader';
-                this.afterElement.tabIndex = '-1';
-                this.afterElement.innerHTML = this.STR_LEAVE_EDITOR;
-                this.get('element_cont').get('firstChild').appendChild(this.afterElement);
-            }
-        },
-        /**
-        * @private
-        * @method _disableEditor
-        * @param {Boolean} disabled Pass true to disable, false to enable
-        * @description Creates a mask to place over the Editor.
-        */
-        _disableEditor: function(disabled) {
-            var iframe, par, html, height;
-            if (!this.get('disabled_iframe')) {
-                iframe = this._createIframe();
-                iframe.set('id', 'disabled_' + this.get('iframe').get('id'));
-                iframe.setStyle('height', '100%');
-                iframe.setStyle('display', 'none');
-                iframe.setStyle('visibility', 'visible');
-                this.set('disabled_iframe', iframe);
-                par = this.get('iframe').get('parentNode');
-                par.appendChild(iframe.get('element'));
-            }
-            if (!iframe) {
-                iframe = this.get('disabled_iframe');
-            }
-            if (disabled) {
-                this._orgIframe = this.get('iframe');
-
-                if (this.toolbar) {
-                    this.toolbar.set('disabled', true);
-                }
-
-                html = this.getEditorHTML();
-                height = this.get('iframe').get('offsetHeight');
-                iframe.setStyle('visibility', '');
-                iframe.setStyle('position', '');
-                iframe.setStyle('top', '');
-                iframe.setStyle('left', '');
-                this._orgIframe.setStyle('visibility', 'hidden');
-                this._orgIframe.setStyle('position', 'absolute');
-                this._orgIframe.setStyle('top', '-99999px');
-                this._orgIframe.setStyle('left', '-99999px');
-                this.set('iframe', iframe);
-                this._setInitialContent(true);
-                
-                if (!this._mask) {
-                    this._mask = document.createElement('DIV');
-                    Dom.addClass(this._mask, 'yui-editor-masked');
-                    if (this.browser.ie) {
-                        this._mask.style.height = height + 'px';
-                    }
-                    this.get('iframe').get('parentNode').appendChild(this._mask);
-                }
-                this.on('editorContentReloaded', function() {
-                    this._getDoc().body._rteLoaded = false;
-                    this.setEditorHTML(html);
-                    iframe.setStyle('display', 'block');
-                    this.unsubscribeAll('editorContentReloaded');
-                });
-            } else {
-                if (this._mask) {
-                    this._mask.parentNode.removeChild(this._mask);
-                    this._mask = null;
-                    if (this.toolbar) {
-                        this.toolbar.set('disabled', false);
-                    }
-                    iframe.setStyle('visibility', 'hidden');
-                    iframe.setStyle('position', 'absolute');
-                    iframe.setStyle('top', '-99999px');
-                    iframe.setStyle('left', '-99999px');
-                    this._orgIframe.setStyle('visibility', '');
-                    this._orgIframe.setStyle('position', '');
-                    this._orgIframe.setStyle('top', '');
-                    this._orgIframe.setStyle('left', '');
-                    this.set('iframe', this._orgIframe);
-
-                    this.focus();
-                    var self = this;
-                    window.setTimeout(function() {
-                        self.nodeChange.call(self);
-                    }, 100);
-                }
-            }
-        },
-        /**
-        * @property SEP_DOMPATH
-        * @description The value to place in between the Dom path items
-        * @type String
-        */
-        SEP_DOMPATH: '<',
-        /**
-        * @property STR_LEAVE_EDITOR
-        * @description The accessibility string for the element after the iFrame
-        * @type String
-        */
-        STR_LEAVE_EDITOR: 'You have left the Rich Text Editor.',
-        /**
-        * @property STR_BEFORE_EDITOR
-        * @description The accessibility string for the element before the iFrame
-        * @type String
-        */
-        STR_BEFORE_EDITOR: 'This text field can contain stylized text and graphics. To cycle through all formatting options, use the keyboard shortcut Shift + Escape to place focus on the toolbar and navigate between options with your arrow keys. To exit this text editor use the Escape key and continue tabbing. <h4>Common formatting keyboard shortcuts:</h4><ul><li>Control Shift B sets text to bold</li> <li>Control Shift I sets text to italic</li> <li>Control Shift U underlines text</li> <li>Control Shift L adds an HTML link</li></ul>',
-        /**
-        * @property STR_TITLE
-        * @description The Title of the HTML document that is created in the iFrame
-        * @type String
-        */
-        STR_TITLE: 'Rich Text Area.',
-        /**
-        * @property STR_IMAGE_HERE
-        * @description The text to place in the URL textbox when using the blankimage.
-        * @type String
-        */
-        STR_IMAGE_HERE: 'Image URL Here',
-        /**
-        * @property STR_IMAGE_URL
-        * @description The label string for Image URL
-        * @type String
-        */
-        STR_IMAGE_URL: 'Image URL',        
-        /**
-        * @property STR_LINK_URL
-        * @description The label string for the Link URL.
-        * @type String
-        */
-        STR_LINK_URL: 'Link URL',
-        /**
-        * @protected
-        * @property STOP_EXEC_COMMAND
-        * @description Set to true when you want the default execCommand function to not process anything
-        * @type Boolean
-        */
-        STOP_EXEC_COMMAND: false,
-        /**
-        * @protected
-        * @property STOP_NODE_CHANGE
-        * @description Set to true when you want the default nodeChange function to not process anything
-        * @type Boolean
-        */
-        STOP_NODE_CHANGE: false,
-        /**
-        * @protected
-        * @property CLASS_NOEDIT
-        * @description CSS class applied to elements that are not editable.
-        * @type String
-        */
-        CLASS_NOEDIT: 'yui-noedit',
-        /**
-        * @protected
-        * @property CLASS_CONTAINER
-        * @description Default CSS class to apply to the editors container element
-        * @type String
-        */
-        CLASS_CONTAINER: 'yui-editor-container',
-        /**
-        * @protected
-        * @property CLASS_EDITABLE
-        * @description Default CSS class to apply to the editors iframe element
-        * @type String
-        */
-        CLASS_EDITABLE: 'yui-editor-editable',
-        /**
-        * @protected
-        * @property CLASS_EDITABLE_CONT
-        * @description Default CSS class to apply to the editors iframe's parent element
-        * @type String
-        */
-        CLASS_EDITABLE_CONT: 'yui-editor-editable-container',
-        /**
-        * @protected
-        * @property CLASS_PREFIX
-        * @description Default prefix for dynamically created class names
-        * @type String
-        */
-        CLASS_PREFIX: 'yui-editor',
-        /** 
-        * @property browser
-        * @description Standard browser detection
-        * @type Object
-        */
-        browser: function() {
-            var br = YAHOO.env.ua;
-            //Check for webkit3
-            if (br.webkit >= 420) {
-                br.webkit3 = br.webkit;
-            } else {
-                br.webkit3 = 0;
-            }
-            if (br.webkit >= 530) {
-                br.webkit4 = br.webkit;
-            } else {
-                br.webkit4 = 0;
-            }
-            br.mac = false;
-            //Check for Mac
-            if (navigator.userAgent.indexOf('Macintosh') !== -1) {
-                br.mac = true;
-            }
-
-            return br;
-        }(),
-        /** 
-        * @method init
-        * @description The Editor class' initialization method
-        */
-        init: function(p_oElement, p_oAttributes) {
-
-            if (!this._defaultToolbar) {
-                this._defaultToolbar = {
-                    collapse: true,
-                    titlebar: 'Text Editing Tools',
-                    draggable: false,
-                    buttons: [
-                        { group: 'fontstyle', label: 'Font Name and Size',
-                            buttons: [
-                                { type: 'select', label: 'Arial', value: 'fontname', disabled: true,
-                                    menu: [
-                                        { text: 'Arial', checked: true },
-                                        { text: 'Arial Black' },
-                                        { text: 'Comic Sans MS' },
-                                        { text: 'Courier New' },
-                                        { text: 'Lucida Console' },
-                                        { text: 'Tahoma' },
-                                        { text: 'Times New Roman' },
-                                        { text: 'Trebuchet MS' },
-                                        { text: 'Verdana' }
-                                    ]
-                                },
-                                { type: 'spin', label: '13', value: 'fontsize', range: [ 9, 75 ], disabled: true }
-                            ]
-                        },
-                        { type: 'separator' },
-                        { group: 'textstyle', label: 'Font Style',
-                            buttons: [
-                                { type: 'push', label: 'Bold CTRL + SHIFT + B', value: 'bold' },
-                                { type: 'push', label: 'Italic CTRL + SHIFT + I', value: 'italic' },
-                                { type: 'push', label: 'Underline CTRL + SHIFT + U', value: 'underline' },
-                                { type: 'push', label: 'Strike Through', value: 'strikethrough' },
-                                { type: 'separator' },
-                                { type: 'color', label: 'Font Color', value: 'forecolor', disabled: true },
-                                { type: 'color', label: 'Background Color', value: 'backcolor', disabled: true }
-                                
-                            ]
-                        },
-                        { type: 'separator' },
-                        { group: 'indentlist', label: 'Lists',
-                            buttons: [
-                                { type: 'push', label: 'Create an Unordered List', value: 'insertunorderedlist' },
-                                { type: 'push', label: 'Create an Ordered List', value: 'insertorderedlist' }
-                            ]
-                        },
-                        { type: 'separator' },
-                        { group: 'insertitem', label: 'Insert Item',
-                            buttons: [
-                                { type: 'push', label: 'HTML Link CTRL + SHIFT + L', value: 'createlink', disabled: true },
-                                { type: 'push', label: 'Insert Image', value: 'insertimage' }
-                            ]
-                        }
-                    ]
-                };
-            }
-
-            YAHOO.widget.SimpleEditor.superclass.init.call(this, p_oElement, p_oAttributes);
-            YAHOO.widget.EditorInfo._instances[this.get('id')] = this;
-
-
-            this.currentElement = [];
-            this.on('contentReady', function() {
-                this.DOMReady = true;
-                this.fireQueue();
-            }, this, true);
-
-        },
-        /**
-        * @method initAttributes
-        * @description Initializes all of the configuration attributes used to create 
-        * the editor.
-        * @param {Object} attr Object literal specifying a set of 
-        * configuration attributes used to create the editor.
-        */
-        initAttributes: function(attr) {
-            YAHOO.widget.SimpleEditor.superclass.initAttributes.call(this, attr);
-            var self = this;
-
-            /**
-            * @config setDesignMode
-            * @description Should the Editor set designMode on the document. Default: true.
-            * @default true
-            * @type Boolean
-            */
-            this.setAttributeConfig('setDesignMode', {
-                value: ((attr.setDesignMode === false) ? false : true)
-            });
-            /**
-            * @config nodeChangeDelay
-            * @description Do we wrap the nodeChange method in a timeout for performance. Default: true.
-            * @default true
-            * @type Boolean
-            */
-            this.setAttributeConfig('nodeChangeDelay', {
-                value: ((attr.nodeChangeDelay === false) ? false : true)
-            });
-            /**
-            * @config maxUndo
-            * @description The max number of undo levels to store.
-            * @default 30
-            * @type Number
-            */
-            this.setAttributeConfig('maxUndo', {
-                writeOnce: true,
-                value: attr.maxUndo || 30
-            });
-
-            /**
-            * @config ptags
-            * @description If true, the editor uses &lt;P&gt; tags instead of &lt;br&gt; tags. (Use Shift + Enter to get a &lt;br&gt;)
-            * @default false
-            * @type Boolean
-            */
-            this.setAttributeConfig('ptags', {
-                writeOnce: true,
-                value: attr.ptags || false
-            });
-            /**
-            * @config insert
-            * @description If true, selection is not required for: fontname, fontsize, forecolor, backcolor.
-            * @default false
-            * @type Boolean
-            */
-            this.setAttributeConfig('insert', {
-                writeOnce: true,
-                value: attr.insert || false,
-                method: function(insert) {
-                    if (insert) {
-                        var buttons = {
-                            fontname: true,
-                            fontsize: true,
-                            forecolor: true,
-                            backcolor: true
-                        };
-                        var tmp = this._defaultToolbar.buttons;
-                        for (var i = 0; i < tmp.length; i++) {
-                            if (tmp[i].buttons) {
-                                for (var a = 0; a < tmp[i].buttons.length; a++) {
-                                    if (tmp[i].buttons[a].value) {
-                                        if (buttons[tmp[i].buttons[a].value]) {
-                                            delete tmp[i].buttons[a].disabled;
-                                        }
-                                    }
-                                }
-                            }
-                        }
-                    }
-                }
-            });
-            /**
-            * @config container
-            * @description Used when dynamically creating the Editor from Javascript with no default textarea.
-            * We will create one and place it in this container. If no container is passed we will append to document.body.
-            * @default false
-            * @type HTMLElement
-            */
-            this.setAttributeConfig('container', {
-                writeOnce: true,
-                value: attr.container || false
-            });
-            /**
-            * @config plainText
-            * @description Process the inital textarea data as if it was plain text. Accounting for spaces, tabs and line feeds.
-            * @default false
-            * @type Boolean
-            */
-            this.setAttributeConfig('plainText', {
-                writeOnce: true,
-                value: attr.plainText || false
-            });
-            /**
-            * @private
-            * @config iframe
-            * @description Internal config for holding the iframe element.
-            * @default null
-            * @type HTMLElement
-            */
-            this.setAttributeConfig('iframe', {
-                value: null
-            });
-            /**
-            * @private
-            * @config disabled_iframe
-            * @description Internal config for holding the iframe element used when disabling the Editor.
-            * @default null
-            * @type HTMLElement
-            */
-            this.setAttributeConfig('disabled_iframe', {
-                value: null
-            });
-            /**
-            * @private
-            * @depreciated - No longer used, should use this.get('element')
-            * @config textarea
-            * @description Internal config for holding the textarea element (replaced with element).
-            * @default null
-            * @type HTMLElement
-            */
-            this.setAttributeConfig('textarea', {
-                value: null,
-                writeOnce: true
-            });
-            /**
-            * @config nodeChangeThreshold
-            * @description The number of seconds that need to be in between nodeChange processing
-            * @default 3
-            * @type Number
-            */            
-            this.setAttributeConfig('nodeChangeThreshold', {
-                value: attr.nodeChangeThreshold || 3,
-                validator: YAHOO.lang.isNumber
-            });
-            /**
-            * @config allowNoEdit
-            * @description Should the editor check for non-edit fields. It should be noted that this technique is not perfect. If the user does the right things, they will still be able to make changes.
-            * Such as highlighting an element below and above the content and hitting a toolbar button or a shortcut key.
-            * @default false
-            * @type Boolean
-            */            
-            this.setAttributeConfig('allowNoEdit', {
-                value: attr.allowNoEdit || false,
-                validator: YAHOO.lang.isBoolean
-            });
-            /**
-            * @config limitCommands
-            * @description Should the Editor limit the allowed execCommands to the ones available in the toolbar. If true, then execCommand and keyboard shortcuts will fail if they are not defined in the toolbar.
-            * @default false
-            * @type Boolean
-            */            
-            this.setAttributeConfig('limitCommands', {
-                value: attr.limitCommands || false,
-                validator: YAHOO.lang.isBoolean
-            });
-            /**
-            * @config element_cont
-            * @description Internal config for the editors container
-            * @default false
-            * @type HTMLElement
-            */
-            this.setAttributeConfig('element_cont', {
-                value: attr.element_cont
-            });
-            /**
-            * @private
-            * @config editor_wrapper
-            * @description The outter wrapper for the entire editor.
-            * @default null
-            * @type HTMLElement
-            */
-            this.setAttributeConfig('editor_wrapper', {
-                value: attr.editor_wrapper || null,
-                writeOnce: true
-            });
-            /**
-            * @attribute height
-            * @description The height of the editor iframe container, not including the toolbar..
-            * @default Best guessed size of the textarea, for best results use CSS to style the height of the textarea or pass it in as an argument
-            * @type String
-            */
-            this.setAttributeConfig('height', {
-                value: attr.height || Dom.getStyle(self.get('element'), 'height'),
-                method: function(height) {
-                    if (this._rendered) {
-                        //We have been rendered, change the height
-                        if (this.get('animate')) {
-                            var anim = new YAHOO.util.Anim(this.get('iframe').get('parentNode'), {
-                                height: {
-                                    to: parseInt(height, 10)
-                                }
-                            }, 0.5);
-                            anim.animate();
-                        } else {
-                            Dom.setStyle(this.get('iframe').get('parentNode'), 'height', height);
-                        }
-                    }
-                }
-            });
-            /**
-            * @config autoHeight
-            * @description Remove the scrollbars from the edit area and resize it to fit the content. It will not go any lower than the current config height.
-            * @default false
-            * @type Boolean || Number
-            */
-            this.setAttributeConfig('autoHeight', {
-                value: attr.autoHeight || false,
-                method: function(a) {
-                    if (a) {
-                        if (this.get('iframe')) {
-                            this.get('iframe').get('element').setAttribute('scrolling', 'no');
-                        }
-                        this.on('afterNodeChange', this._handleAutoHeight, this, true);
-                        this.on('editorKeyDown', this._handleAutoHeight, this, true);
-                        this.on('editorKeyPress', this._handleAutoHeight, this, true);
-                    } else {
-                        if (this.get('iframe')) {
-                            this.get('iframe').get('element').setAttribute('scrolling', 'auto');
-                        }
-                        this.unsubscribe('afterNodeChange', this._handleAutoHeight);
-                        this.unsubscribe('editorKeyDown', this._handleAutoHeight);
-                        this.unsubscribe('editorKeyPress', this._handleAutoHeight);
-                    }
-                }
-            });
-            /**
-            * @attribute width
-            * @description The width of the editor container.
-            * @default Best guessed size of the textarea, for best results use CSS to style the width of the textarea or pass it in as an argument
-            * @type String
-            */            
-            this.setAttributeConfig('width', {
-                value: attr.width || Dom.getStyle(this.get('element'), 'width'),
-                method: function(width) {
-                    if (this._rendered) {
-                        //We have been rendered, change the width
-                        if (this.get('animate')) {
-                            var anim = new YAHOO.util.Anim(this.get('element_cont').get('element'), {
-                                width: {
-                                    to: parseInt(width, 10)
-                                }
-                            }, 0.5);
-                            anim.animate();
-                        } else {
-                            this.get('element_cont').setStyle('width', width);
-                        }
-                    }
-                }
-            });
-                        
-            /**
-            * @attribute blankimage
-            * @description The URL for the image placeholder to put in when inserting an image.
-            * @default The yahooapis.com address for the current release + 'assets/blankimage.png'
-            * @type String
-            */            
-            this.setAttributeConfig('blankimage', {
-                value: attr.blankimage || this._getBlankImage()
-            });
-            /**
-            * @attribute css
-            * @description The Base CSS used to format the content of the editor
-            * @default <code><pre>html {
-                height: 95%;
-            }
-            body {
-                height: 100%;
-                padding: 7px; background-color: #fff; font:13px/1.22 arial,helvetica,clean,sans-serif;*font-size:small;*font:x-small;
-            }
-            a {
-                color: blue;
-                text-decoration: underline;
-                cursor: pointer;
-            }
-            .warning-localfile {
-                border-bottom: 1px dashed red !important;
-            }
-            .yui-busy {
-                cursor: wait !important;
-            }
-            img.selected { //Safari image selection
-                border: 2px dotted #808080;
-            }
-            img {
-                cursor: pointer !important;
-                border: none;
-            }
-            </pre></code>
-            * @type String
-            */            
-            this.setAttributeConfig('css', {
-                value: attr.css || this._defaultCSS,
-                writeOnce: true
-            });
-            /**
-            * @attribute html
-            * @description The default HTML to be written to the iframe document before the contents are loaded (Note that the DOCTYPE attr will be added at render item)
-            * @default This HTML requires a few things if you are to override:
-                <p><code>{TITLE}, {CSS}, {HIDDEN_CSS}, {EXTRA_CSS}</code> and <code>{CONTENT}</code> need to be there, they are passed to YAHOO.lang.substitute to be replace with other strings.<p>
-                <p><code>onload="document.body._rteLoaded = true;"</code> : the onload statement must be there or the editor will not finish loading.</p>
-                <code>
-                <pre>
-                &lt;html&gt;
-                    &lt;head&gt;
-                        &lt;title&gt;{TITLE}&lt;/title&gt;
-                        &lt;meta http-equiv="Content-Type" content="text/html; charset=UTF-8" /&gt;
-                        &lt;style&gt;
-                        {CSS}
-                        &lt;/style&gt;
-                        &lt;style&gt;
-                        {HIDDEN_CSS}
-                        &lt;/style&gt;
-                        &lt;style&gt;
-                        {EXTRA_CSS}
-                        &lt;/style&gt;
-                    &lt;/head&gt;
-                &lt;body onload="document.body._rteLoaded = true;"&gt;
-                {CONTENT}
-                &lt;/body&gt;
-                &lt;/html&gt;
-                </pre>
-                </code>
-            * @type String
-            */            
-            this.setAttributeConfig('html', {
-                value: attr.html || '<html><head><title>{TITLE}</title><meta http-equiv="Content-Type" content="text/html; charset=UTF-8" /><base href="' + this._baseHREF + '"><style>{CSS}</style><style>{HIDDEN_CSS}</style><style>{EXTRA_CSS}</style></head><body onload="document.body._rteLoaded = true;">{CONTENT}</body></html>',
-                writeOnce: true
-            });
-
-            /**
-            * @attribute extracss
-            * @description Extra user defined css to load after the default SimpleEditor CSS
-            * @default ''
-            * @type String
-            */            
-            this.setAttributeConfig('extracss', {
-                value: attr.extracss || '',
-                writeOnce: true
-            });
-
-            /**
-            * @attribute handleSubmit
-            * @description Config handles if the editor will attach itself to the textareas parent form's submit handler.
-            If it is set to true, the editor will attempt to attach a submit listener to the textareas parent form.
-            Then it will trigger the editors save handler and place the new content back into the text area before the form is submitted.
-            * @default false
-            * @type Boolean
-            */            
-            this.setAttributeConfig('handleSubmit', {
-                value: attr.handleSubmit || false,
-                method: function(exec) {
-                    if (this.get('element').form) {
-                        if (!this._formButtons) {
-                            this._formButtons = [];
-                        }
-                        if (exec) {
-                            Event.on(this.get('element').form, 'submit', this._handleFormSubmit, this, true);
-                            var i = this.get('element').form.getElementsByTagName('input');
-                            for (var s = 0; s < i.length; s++) {
-                                var type = i[s].getAttribute('type');
-                                if (type && (type.toLowerCase() == 'submit')) {
-                                    Event.on(i[s], 'click', this._handleFormButtonClick, this, true);
-                                    this._formButtons[this._formButtons.length] = i[s];
-                                }
-                            }
-                        } else {
-                            Event.removeListener(this.get('element').form, 'submit', this._handleFormSubmit);
-                            if (this._formButtons) {
-                                Event.removeListener(this._formButtons, 'click', this._handleFormButtonClick);
-                            }
-                        }
-                    }
-                }
-            });
-            /**
-            * @attribute disabled
-            * @description This will toggle the editor's disabled state. When the editor is disabled, designMode is turned off and a mask is placed over the iframe so no interaction can take place.
-            All Toolbar buttons are also disabled so they cannot be used.
-            * @default false
-            * @type Boolean
-            */
-
-            this.setAttributeConfig('disabled', {
-                value: false,
-                method: function(disabled) {
-                    if (this._rendered) {
-                        this._disableEditor(disabled);
-                    }
-                }
-            });
-            /**
-            * @config saveEl
-            * @description When save HTML is called, this element will be updated as well as the source of data.
-            * @default element
-            * @type HTMLElement
-            */
-            this.setAttributeConfig('saveEl', {
-                value: this.get('element')
-            });
-            /**
-            * @config toolbar_cont
-            * @description Internal config for the toolbars container
-            * @default false
-            * @type Boolean
-            */
-            this.setAttributeConfig('toolbar_cont', {
-                value: null,
-                writeOnce: true
-            });
-            /**
-            * @attribute toolbar
-            * @description The default toolbar config.
-            * @type Object
-            */            
-            this.setAttributeConfig('toolbar', {
-                value: attr.toolbar || this._defaultToolbar,
-                writeOnce: true,
-                method: function(toolbar) {
-                    if (!toolbar.buttonType) {
-                        toolbar.buttonType = this._defaultToolbar.buttonType;
-                    }
-                    this._defaultToolbar = toolbar;
-                }
-            });
-            /**
-            * @attribute animate
-            * @description Should the editor animate window movements
-            * @default false unless Animation is found, then true
-            * @type Boolean
-            */            
-            this.setAttributeConfig('animate', {
-                value: ((attr.animate) ? ((YAHOO.util.Anim) ? true : false) : false),
-                validator: function(value) {
-                    var ret = true;
-                    if (!YAHOO.util.Anim) {
-                        ret = false;
-                    }
-                    return ret;
-                }
-            });
-            /**
-            * @config panel
-            * @description A reference to the panel we are using for windows.
-            * @default false
-            * @type Boolean
-            */            
-            this.setAttributeConfig('panel', {
-                value: null,
-                writeOnce: true,
-                validator: function(value) {
-                    var ret = true;
-                    if (!YAHOO.widget.Overlay) {
-                        ret = false;
-                    }
-                    return ret;
-                }               
-            });
-            /**
-            * @attribute focusAtStart
-            * @description Should we focus the window when the content is ready?
-            * @default false
-            * @type Boolean
-            */            
-            this.setAttributeConfig('focusAtStart', {
-                value: attr.focusAtStart || false,
-                writeOnce: true,
-                method: function(fs) {
-                    if (fs) {
-                        this.on('editorContentLoaded', function() {
-                            var self = this;
-                            setTimeout(function() {
-                                self.focus.call(self);
-                                self.editorDirty = false;
-                            }, 400);
-                        }, this, true);
-                    }
-                }
-            });
-            /**
-            * @attribute dompath
-            * @description Toggle the display of the current Dom path below the editor
-            * @default false
-            * @type Boolean
-            */            
-            this.setAttributeConfig('dompath', {
-                value: attr.dompath || false,
-                method: function(dompath) {
-                    if (dompath && !this.dompath) {
-                        this.dompath = document.createElement('DIV');
-                        this.dompath.id = this.get('id') + '_dompath';
-                        Dom.addClass(this.dompath, 'dompath');
-                        this.get('element_cont').get('firstChild').appendChild(this.dompath);
-                        if (this.get('iframe')) {
-                            this._writeDomPath();
-                        }
-                    } else if (!dompath && this.dompath) {
-                        this.dompath.parentNode.removeChild(this.dompath);
-                        this.dompath = null;
-                    }
-                }
-            });
-            /**
-            * @attribute markup
-            * @description Should we try to adjust the markup for the following types: semantic, css, default or xhtml
-            * @default "semantic"
-            * @type String
-            */            
-            this.setAttributeConfig('markup', {
-                value: attr.markup || 'semantic',
-                validator: function(markup) {
-                    switch (markup.toLowerCase()) {
-                        case 'semantic':
-                        case 'css':
-                        case 'default':
-                        case 'xhtml':
-                        return true;
-                    }
-                    return false;
-                }
-            });
-            /**
-            * @attribute removeLineBreaks
-            * @description Should we remove linebreaks and extra spaces on cleanup
-            * @default false
-            * @type Boolean
-            */            
-            this.setAttributeConfig('removeLineBreaks', {
-                value: attr.removeLineBreaks || false,
-                validator: YAHOO.lang.isBoolean
-            });
-            
-            /**
-            * @config drag
-            * @description Set this config to make the Editor draggable, pass 'proxy' to make use YAHOO.util.DDProxy.
-            * @type {Boolean/String}
-            */
-            this.setAttributeConfig('drag', {
-                writeOnce: true,
-                value: attr.drag || false
-            });
-
-            /**
-            * @config resize
-            * @description Set this to true to make the Editor Resizable with YAHOO.util.Resize. The default config is available: myEditor._resizeConfig
-            * Animation will be ignored while performing this resize to allow for the dynamic change in size of the toolbar.
-            * @type Boolean
-            */
-            this.setAttributeConfig('resize', {
-                writeOnce: true,
-                value: attr.resize || false
-            });
-
-            /**
-            * @config filterWord
-            * @description Attempt to filter out MS Word HTML from the Editor's output.
-            * @type Boolean
-            */
-            this.setAttributeConfig('filterWord', {
-                value: attr.filterWord || false,
-                validator: YAHOO.lang.isBoolean
-            });
-
-        },
-        /**
-        * @private
-        * @method _getBlankImage
-        * @description Retrieves the full url of the image to use as the blank image.
-        * @return {String} The URL to the blank image
-        */
-        _getBlankImage: function() {
-            if (!this.DOMReady) {
-                this._queue[this._queue.length] = ['_getBlankImage', arguments];
-                return '';
-            }
-            var img = '';
-            if (!this._blankImageLoaded) {
-                if (YAHOO.widget.EditorInfo.blankImage) {
-                    this.set('blankimage', YAHOO.widget.EditorInfo.blankImage);
-                    this._blankImageLoaded = true;
-                } else {
-                    var div = document.createElement('div');
-                    div.style.position = 'absolute';
-                    div.style.top = '-9999px';
-                    div.style.left = '-9999px';
-                    div.className = this.CLASS_PREFIX + '-blankimage';
-                    document.body.appendChild(div);
-                    img = YAHOO.util.Dom.getStyle(div, 'background-image');
-                    img = img.replace('url(', '').replace(')', '').replace(/"/g, '');
-                    //Adobe AIR Code
-                    img = img.replace('app:/', '');             
-                    this.set('blankimage', img);
-                    this._blankImageLoaded = true;
-                    div.parentNode.removeChild(div);
-                    YAHOO.widget.EditorInfo.blankImage = img;
-                }
-            } else {
-                img = this.get('blankimage');
-            }
-            return img;
-        },
-        /**
-        * @private
-        * @method _handleAutoHeight
-        * @description Handles resizing the editor's height based on the content
-        */
-        _handleAutoHeight: function() {
-            var doc = this._getDoc(),
-                body = doc.body,
-                docEl = doc.documentElement;
-
-            var height = parseInt(Dom.getStyle(this.get('editor_wrapper'), 'height'), 10);
-            var newHeight = body.scrollHeight;
-            if (this.browser.webkit) {
-                newHeight = docEl.scrollHeight;
-            }
-            if (newHeight < parseInt(this.get('height'), 10)) {
-                newHeight = parseInt(this.get('height'), 10);
-            }
-            if ((height != newHeight) && (newHeight >= parseInt(this.get('height'), 10))) {   
-                var anim = this.get('animate');
-                this.set('animate', false);
-                this.set('height', newHeight + 'px');
-                this.set('animate', anim);
-                if (this.browser.ie) {
-                    //Internet Explorer needs this
-                    this.get('iframe').setStyle('height', '99%');
-                    this.get('iframe').setStyle('zoom', '1');
-                    var self = this;
-                    window.setTimeout(function() {
-                        self.get('iframe').setStyle('height', '100%');
-                    }, 1);
-                }
-            }
-        },
-        /**
-        * @private
-        * @property _formButtons
-        * @description Array of buttons that are in the Editor's parent form (for handleSubmit)
-        * @type Array
-        */
-        _formButtons: null,
-        /**
-        * @private
-        * @property _formButtonClicked
-        * @description The form button that was clicked to submit the form.
-        * @type HTMLElement
-        */
-        _formButtonClicked: null,
-        /**
-        * @private
-        * @method _handleFormButtonClick
-        * @description The click listener assigned to each submit button in the Editor's parent form.
-        * @param {Event} ev The click event
-        */
-        _handleFormButtonClick: function(ev) {
-            var tar = Event.getTarget(ev);
-            this._formButtonClicked = tar;
-        },
-        /**
-        * @private
-        * @method _handleFormSubmit
-        * @description Handles the form submission.
-        * @param {Object} ev The Form Submit Event
-        */
-        _handleFormSubmit: function(ev) {
-            this.saveHTML();
-
-            var form = this.get('element').form,
-                tar = this._formButtonClicked || false;
-
-            Event.removeListener(form, 'submit', this._handleFormSubmit);
-            if (YAHOO.env.ua.ie) {
-                //form.fireEvent("onsubmit");
-                if (tar && !tar.disabled) {
-                    tar.click();
-                }
-            } else {  // Gecko, Opera, and Safari
-                if (tar && !tar.disabled) {
-                    tar.click();
-                }
-                var oEvent = document.createEvent("HTMLEvents");
-                oEvent.initEvent("submit", true, true);
-                form.dispatchEvent(oEvent);
-                if (YAHOO.env.ua.webkit) {
-                    if (YAHOO.lang.isFunction(form.submit)) {
-                        form.submit();
-                    }
-                }
-            }
-            //2.6.0
-            //Removed this, not need since removing Safari 2.x
-            //Event.stopEvent(ev);
-        },
-        /**
-        * @private
-        * @method _handleFontSize
-        * @description Handles the font size button in the toolbar.
-        * @param {Object} o Object returned from Toolbar's buttonClick Event
-        */
-        _handleFontSize: function(o) {
-            var button = this.toolbar.getButtonById(o.button.id);
-            var value = button.get('label') + 'px';
-            this.execCommand('fontsize', value);
-            return false;
-        },
-        /**
-        * @private
-        * @description Handles the colorpicker buttons in the toolbar.
-        * @param {Object} o Object returned from Toolbar's buttonClick Event
-        */
-        _handleColorPicker: function(o) {
-            var cmd = o.button;
-            var value = '#' + o.color;
-            if ((cmd == 'forecolor') || (cmd == 'backcolor')) {
-                this.execCommand(cmd, value);
-            }
-        },
-        /**
-        * @private
-        * @method _handleAlign
-        * @description Handles the alignment buttons in the toolbar.
-        * @param {Object} o Object returned from Toolbar's buttonClick Event
-        */
-        _handleAlign: function(o) {
-            var cmd = null;
-            for (var i = 0; i < o.button.menu.length; i++) {
-                if (o.button.menu[i].value == o.button.value) {
-                    cmd = o.button.menu[i].value;
-                }
-            }
-            var value = this._getSelection();
-
-            this.execCommand(cmd, value);
-            return false;
-        },
-        /**
-        * @private
-        * @method _handleAfterNodeChange
-        * @description Fires after a nodeChange happens to setup the things that where reset on the node change (button state).
-        */
-        _handleAfterNodeChange: function() {
-            var path = this._getDomPath(),
-                elm = null,
-                family = null,
-                fontsize = null,
-                validFont = false,
-                fn_button = this.toolbar.getButtonByValue('fontname'),
-                fs_button = this.toolbar.getButtonByValue('fontsize'),
-                hd_button = this.toolbar.getButtonByValue('heading');
-
-            for (var i = 0; i < path.length; i++) {
-                elm = path[i];
-
-                var tag = elm.tagName.toLowerCase();
-
-
-                if (elm.getAttribute('tag')) {
-                    tag = elm.getAttribute('tag');
-                }
-
-                family = elm.getAttribute('face');
-                if (Dom.getStyle(elm, 'font-family')) {
-                    family = Dom.getStyle(elm, 'font-family');
-                    //Adobe AIR Code
-                    family = family.replace(/'/g, '');                    
-                }
-
-                if (tag.substring(0, 1) == 'h') {
-                    if (hd_button) {
-                        for (var h = 0; h < hd_button._configs.menu.value.length; h++) {
-                            if (hd_button._configs.menu.value[h].value.toLowerCase() == tag) {
-                                hd_button.set('label', hd_button._configs.menu.value[h].text);
-                            }
-                        }
-                        this._updateMenuChecked('heading', tag);
-                    }
-                }
-            }
-
-            if (fn_button) {
-                for (var b = 0; b < fn_button._configs.menu.value.length; b++) {
-                    if (family && fn_button._configs.menu.value[b].text.toLowerCase() == family.toLowerCase()) {
-                        validFont = true;
-                        family = fn_button._configs.menu.value[b].text; //Put the proper menu name in the button
-                    }
-                }
-                if (!validFont) {
-                    family = fn_button._configs.label._initialConfig.value;
-                }
-                var familyLabel = '<span class="yui-toolbar-fontname-' + this._cleanClassName(family) + '">' + family + '</span>';
-                if (fn_button.get('label') != familyLabel) {
-                    fn_button.set('label', familyLabel);
-                    this._updateMenuChecked('fontname', family);
-                }
-            }
-
-            if (fs_button) {
-                fontsize = parseInt(Dom.getStyle(elm, 'fontSize'), 10);
-                if ((fontsize === null) || isNaN(fontsize)) {
-                    fontsize = fs_button._configs.label._initialConfig.value;
-                }
-                fs_button.set('label', ''+fontsize);
-            }
-            
-            if (!this._isElement(elm, 'body') && !this._isElement(elm, 'img')) {
-                this.toolbar.enableButton(fn_button);
-                this.toolbar.enableButton(fs_button);
-                this.toolbar.enableButton('forecolor');
-                this.toolbar.enableButton('backcolor');
-            }
-            if (this._isElement(elm, 'img')) {
-                if (YAHOO.widget.Overlay) {
-                    this.toolbar.enableButton('createlink');
-                }
-            }
-            if (this._hasParent(elm, 'blockquote')) {
-                this.toolbar.selectButton('indent');
-                this.toolbar.disableButton('indent');
-                this.toolbar.enableButton('outdent');
-            }
-            if (this._hasParent(elm, 'ol') || this._hasParent(elm, 'ul')) {
-                this.toolbar.disableButton('indent');
-            }
-            this._lastButton = null;
-            
-        },
-        /**
-        * @private
-        * @method _handleInsertImageClick
-        * @description Opens the Image Properties Window when the insert Image button is clicked or an Image is Double Clicked.
-        */
-        _handleInsertImageClick: function() {
-            if (this.get('limitCommands')) {
-                if (!this.toolbar.getButtonByValue('insertimage')) {
-                    return false;
-                }
-            }
-        
-            this.toolbar.set('disabled', true); //Disable the toolbar when the prompt is showing
-            var _handleAEC = function() {
-                var el = this.currentElement[0],
-                    src = 'http://';
-                if (!el) {
-                    el = this._getSelectedElement();
-                }
-                if (el) {
-                    if (el.getAttribute('src')) {
-                        src = el.getAttribute('src', 2);
-                        if (src.indexOf(this.get('blankimage')) != -1) {
-                            src = this.STR_IMAGE_HERE;
-                        }
-                    }
-                }
-                var str = prompt(this.STR_IMAGE_URL + ': ', src);
-                if ((str !== '') && (str !== null)) {
-                    el.setAttribute('src', str);
-                } else if (str === '') {
-                    el.parentNode.removeChild(el);
-                    this.currentElement = [];
-                    this.nodeChange();
-                } else if ((str === null)) {
-                    src = el.getAttribute('src', 2);
-                    if (src.indexOf(this.get('blankimage')) != -1) {
-                        el.parentNode.removeChild(el);
-                        this.currentElement = [];
-                        this.nodeChange();
-                    }
-                }
-                this.closeWindow();
-                this.toolbar.set('disabled', false);
-                this.unsubscribe('afterExecCommand', _handleAEC, this, true);
-            };
-            this.on('afterExecCommand', _handleAEC, this, true);
-        },
-        /**
-        * @private
-        * @method _handleInsertImageWindowClose
-        * @description Handles the closing of the Image Properties Window.
-        */
-        _handleInsertImageWindowClose: function() {
-            this.nodeChange();
-        },
-        /**
-        * @private
-        * @method _isLocalFile
-        * @param {String} url THe url/string to check
-        * @description Checks to see if a string (href or img src) is possibly a local file reference..
-        */
-        _isLocalFile: function(url) {
-            if ((url) && (url !== '') && ((url.indexOf('file:/') != -1) || (url.indexOf(':\\') != -1))) {
-                return true;
-            }
-            return false;
-        },
-        /**
-        * @private
-        * @method _handleCreateLinkClick
-        * @description Handles the opening of the Link Properties Window when the Create Link button is clicked or an href is doubleclicked.
-        */
-        _handleCreateLinkClick: function() {
-            if (this.get('limitCommands')) {
-                if (!this.toolbar.getButtonByValue('createlink')) {
-                    return false;
-                }
-            }
-        
-            this.toolbar.set('disabled', true); //Disable the toolbar when the prompt is showing
-
-            var _handleAEC = function() {
-                var el = this.currentElement[0],
-                    url = '';
-
-                if (el) {
-                    if (el.getAttribute('href', 2) !== null) {
-                        url = el.getAttribute('href', 2);
-                    }
-                }
-                var str = prompt(this.STR_LINK_URL + ': ', url);
-                if ((str !== '') && (str !== null)) {
-                    var urlValue = str;
-                    if ((urlValue.indexOf(':/'+'/') == -1) && (urlValue.substring(0,1) != '/') && (urlValue.substring(0, 6).toLowerCase() != 'mailto')) {
-                        if ((urlValue.indexOf('@') != -1) && (urlValue.substring(0, 6).toLowerCase() != 'mailto')) {
-                            //Found an @ sign, prefix with mailto:
-                            urlValue = 'mailto:' + urlValue;
-                        } else {
-                            /* :// not found adding */
-                            if (urlValue.substring(0, 1) != '#') {
-                                //urlValue = 'http:/'+'/' + urlValue;
-                            }
-                        }
-                    }
-                    el.setAttribute('href', urlValue);
-                } else if (str !== null) {
-                    var _span = this._getDoc().createElement('span');
-                    _span.innerHTML = el.innerHTML;
-                    Dom.addClass(_span, 'yui-non');
-                    el.parentNode.replaceChild(_span, el);
-                }
-                this.closeWindow();
-                this.toolbar.set('disabled', false);
-                this.unsubscribe('afterExecCommand', _handleAEC, this, true);
-            };
-            this.on('afterExecCommand', _handleAEC, this);
-
-        },
-        /**
-        * @private
-        * @method _handleCreateLinkWindowClose
-        * @description Handles the closing of the Link Properties Window.
-        */
-        _handleCreateLinkWindowClose: function() {
-            this.nodeChange();
-            this.currentElement = [];
-        },
-        /**
-        * @method render
-        * @description Calls the private method _render in a setTimeout to allow for other things on the page to continue to load.
-        */
-        render: function() {
-            if (this._rendered) {
-                return false;
-            }
-            if (!this.DOMReady) {
-                this._queue[this._queue.length] = ['render', arguments];
-                return false;
-            }
-            if (this.get('element')) {
-                if (this.get('element').tagName) {
-                    this._textarea = true;
-                    if (this.get('element').tagName.toLowerCase() !== 'textarea') {
-                        this._textarea = false;
-                    }
-                } else {
-                    return false;
-                }
-            } else {
-                return false;
-            }
-            this._rendered = true;
-            var self = this;
-            window.setTimeout(function() {
-                self._render.call(self);
-            }, 4);
-        },
-        /**
-        * @private
-        * @method _render
-        * @description Causes the toolbar and the editor to render and replace the textarea.
-        */
-        _render: function() {
-            var self = this;
-            this.set('textarea', this.get('element'));
-
-            this.get('element_cont').setStyle('display', 'none');
-            this.get('element_cont').addClass(this.CLASS_CONTAINER);
-            
-            this.set('iframe', this._createIframe());
-
-            window.setTimeout(function() {
-                self._setInitialContent.call(self);
-            }, 10);
-
-            this.get('editor_wrapper').appendChild(this.get('iframe').get('element'));
-
-            if (this.get('disabled')) {
-                this._disableEditor(true);
-            }
-
-            var tbarConf = this.get('toolbar');
-            //Create Toolbar instance
-            if (tbarConf instanceof Toolbar) {
-                this.toolbar = tbarConf;
-                //Set the toolbar to disabled until content is loaded
-                this.toolbar.set('disabled', true);
-            } else {
-                //Set the toolbar to disabled until content is loaded
-                tbarConf.disabled = true;
-                this.toolbar = new Toolbar(this.get('toolbar_cont'), tbarConf);
-            }
-
-            this.fireEvent('toolbarLoaded', { type: 'toolbarLoaded', target: this.toolbar });
-
-            
-            this.toolbar.on('toolbarCollapsed', function() {
-                if (this.currentWindow) {
-                    this.moveWindow();
-                }
-            }, this, true);
-            this.toolbar.on('toolbarExpanded', function() {
-                if (this.currentWindow) {
-                    this.moveWindow();
-                }
-            }, this, true);
-            this.toolbar.on('fontsizeClick', this._handleFontSize, this, true);
-            
-            this.toolbar.on('colorPickerClicked', function(o) {
-                this._handleColorPicker(o);
-                return false; //Stop the buttonClick event
-            }, this, true);
-
-            this.toolbar.on('alignClick', this._handleAlign, this, true);
-            this.on('afterNodeChange', this._handleAfterNodeChange, this, true);
-            this.toolbar.on('insertimageClick', this._handleInsertImageClick, this, true);
-            this.on('windowinsertimageClose', this._handleInsertImageWindowClose, this, true);
-            this.toolbar.on('createlinkClick', this._handleCreateLinkClick, this, true);
-            this.on('windowcreatelinkClose', this._handleCreateLinkWindowClose, this, true);
-            
-
-            //Replace Textarea with editable area
-            this.get('parentNode').replaceChild(this.get('element_cont').get('element'), this.get('element'));
-
-            
-            this.setStyle('visibility', 'hidden');
-            this.setStyle('position', 'absolute');
-            this.setStyle('top', '-9999px');
-            this.setStyle('left', '-9999px');
-            this.get('element_cont').appendChild(this.get('element'));
-            this.get('element_cont').setStyle('display', 'block');
-
-
-            Dom.addClass(this.get('iframe').get('parentNode'), this.CLASS_EDITABLE_CONT);
-            this.get('iframe').addClass(this.CLASS_EDITABLE);
-
-            //Set height and width of editor container
-            this.get('element_cont').setStyle('width', this.get('width'));
-            Dom.setStyle(this.get('iframe').get('parentNode'), 'height', this.get('height'));
-
-            this.get('iframe').setStyle('width', '100%'); //WIDTH
-            this.get('iframe').setStyle('height', '100%');
-
-            this._setupDD();
-
-            window.setTimeout(function() {
-                self._setupAfterElement.call(self);
-            }, 0);
-            this.fireEvent('afterRender', { type: 'afterRender', target: this });
-        },
-        /**
-        * @method execCommand
-        * @param {String} action The "execCommand" action to try to execute (Example: bold, insertimage, inserthtml)
-        * @param {String} value (optional) The value for a given action such as action: fontname value: 'Verdana'
-        * @description This method attempts to try and level the differences in the various browsers and their support for execCommand actions
-        */
-        execCommand: function(action, value) {
-            var beforeExec = this.fireEvent('beforeExecCommand', { type: 'beforeExecCommand', target: this, args: arguments });
-            if ((beforeExec === false) || (this.STOP_EXEC_COMMAND)) {
-                this.STOP_EXEC_COMMAND = false;
-                return false;
-            }
-            this._lastCommand = action;
-            this._setMarkupType(action);
-            if (this.browser.ie) {
-                this._getWindow().focus();
-            }
-            var exec = true;
-            
-            if (this.get('limitCommands')) {
-                if (!this.toolbar.getButtonByValue(action)) {
-                    exec = false;
-                }
-            }
-
-            this.editorDirty = true;
-            
-            if ((typeof this['cmd_' + action.toLowerCase()] == 'function') && exec) {
-                var retValue = this['cmd_' + action.toLowerCase()](value);
-                exec = retValue[0];
-                if (retValue[1]) {
-                    action = retValue[1];
-                }
-                if (retValue[2]) {
-                    value = retValue[2];
-                }
-            }
-            if (exec) {
-                try {
-                    this._getDoc().execCommand(action, false, value);
-                } catch(e) {
-                }
-            } else {
-            }
-            this.on('afterExecCommand', function() {
-                this.unsubscribeAll('afterExecCommand');
-                this.nodeChange();
-            }, this, true);
-            this.fireEvent('afterExecCommand', { type: 'afterExecCommand', target: this });
-            
-        },
-    /* {{{  Command Overrides */
-
-        /**
-        * @method cmd_bold
-        * @param value Value passed from the execCommand method
-        * @description This is an execCommand override method. It is called from execCommand when the execCommand('bold') is used.
-        */
-        cmd_bold: function(value) {
-            if (!this.browser.webkit) {
-                var el = this._getSelectedElement();
-                if (el && this._isElement(el, 'span') && this._hasSelection()) {
-                    if (el.style.fontWeight == 'bold') {
-                        el.style.fontWeight = '';
-                        var b = this._getDoc().createElement('b'),
-                        par = el.parentNode;
-                        par.replaceChild(b, el);
-                        b.appendChild(el);
-                    }
-                }
-            }
-            return [true];
-        },
-        /**
-        * @method cmd_italic
-        * @param value Value passed from the execCommand method
-        * @description This is an execCommand override method. It is called from execCommand when the execCommand('italic') is used.
-        */
-
-        cmd_italic: function(value) {
-            if (!this.browser.webkit) {
-                var el = this._getSelectedElement();
-                if (el && this._isElement(el, 'span') && this._hasSelection()) {
-                    if (el.style.fontStyle == 'italic') {
-                        el.style.fontStyle = '';
-                        var i = this._getDoc().createElement('i'),
-                        par = el.parentNode;
-                        par.replaceChild(i, el);
-                        i.appendChild(el);
-                    }
-                }
-            }
-            return [true];
-        },
-
-
-        /**
-        * @method cmd_underline
-        * @param value Value passed from the execCommand method
-        * @description This is an execCommand override method. It is called from execCommand when the execCommand('underline') is used.
-        */
-        cmd_underline: function(value) {
-            if (!this.browser.webkit) {
-                var el = this._getSelectedElement();
-                if (el && this._isElement(el, 'span')) {
-                    if (el.style.textDecoration == 'underline') {
-                        el.style.textDecoration = 'none';
-                    } else {
-                        el.style.textDecoration = 'underline';
-                    }
-                    return [false];
-                }
-            }
-            return [true];
-        },
-        /**
-        * @method cmd_backcolor
-        * @param value Value passed from the execCommand method
-        * @description This is an execCommand override method. It is called from execCommand when the execCommand('backcolor') is used.
-        */
-        cmd_backcolor: function(value) {
-            var exec = true,
-                el = this._getSelectedElement(),
-                action = 'backcolor';
-
-            if (this.browser.gecko || this.browser.opera) {
-                this._setEditorStyle(true);
-                action = 'hilitecolor';
-            }
-
-            if (!this._isElement(el, 'body') && !this._hasSelection()) {
-                el.style.backgroundColor = value;
-                this._selectNode(el);
-                exec = false;
-            } else {
-                if (this.get('insert')) {
-                    el = this._createInsertElement({ backgroundColor: value });
-                } else {
-                    this._createCurrentElement('span', { backgroundColor: value, color: el.style.color, fontSize: el.style.fontSize, fontFamily: el.style.fontFamily });
-                    this._selectNode(this.currentElement[0]);
-                }
-                exec = false;
-            }
-
-            return [exec, action];
-        },
-        /**
-        * @method cmd_forecolor
-        * @param value Value passed from the execCommand method
-        * @description This is an execCommand override method. It is called from execCommand when the execCommand('forecolor') is used.
-        */
-        cmd_forecolor: function(value) {
-            var exec = true,
-                el = this._getSelectedElement();
-                
-                if (!this._isElement(el, 'body') && !this._hasSelection()) {
-                    Dom.setStyle(el, 'color', value);
-                    this._selectNode(el);
-                    exec = false;
-                } else {
-                    if (this.get('insert')) {
-                        el = this._createInsertElement({ color: value });
-                    } else {
-                        this._createCurrentElement('span', { color: value, fontSize: el.style.fontSize, fontFamily: el.style.fontFamily, backgroundColor: el.style.backgroundColor });
-                        this._selectNode(this.currentElement[0]);
-                    }
-                    exec = false;
-                }
-                return [exec];
-        },
-        /**
-        * @method cmd_unlink
-        * @param value Value passed from the execCommand method
-        * @description This is an execCommand override method. It is called from execCommand when the execCommand('unlink') is used.
-        */
-        cmd_unlink: function(value) {
-            this._swapEl(this.currentElement[0], 'span', function(el) {
-                el.className = 'yui-non';
-            });
-            return [false];
-        },
-        /**
-        * @method cmd_createlink
-        * @param value Value passed from the execCommand method
-        * @description This is an execCommand override method. It is called from execCommand when the execCommand('createlink') is used.
-        */
-        cmd_createlink: function(value) {
-            var el = this._getSelectedElement(), _a = null;
-            if (this._hasParent(el, 'a')) {
-                this.currentElement[0] = this._hasParent(el, 'a');
-            } else if (this._isElement(el, 'li')) {
-                _a = this._getDoc().createElement('a');
-                _a.innerHTML = el.innerHTML;
-                el.innerHTML = '';
-                el.appendChild(_a);
-                this.currentElement[0] = _a;
-            } else if (!this._isElement(el, 'a')) {
-                this._createCurrentElement('a');
-                _a = this._swapEl(this.currentElement[0], 'a');
-                this.currentElement[0] = _a;
-            } else {
-                this.currentElement[0] = el;
-            }
-            return [false];
-        },
-        /**
-        * @method cmd_insertimage
-        * @param value Value passed from the execCommand method
-        * @description This is an execCommand override method. It is called from execCommand when the execCommand('insertimage') is used.
-        */
-        cmd_insertimage: function(value) {
-            var exec = true, _img = null, action = 'insertimage',
-                el = this._getSelectedElement();
-
-            if (value === '') {
-                value = this.get('blankimage');
-            }
-
-            /*
-            * @knownissue Safari Cursor Position
-            * @browser Safari 2.x
-            * @description The issue here is that we have no way of knowing where the cursor position is
-            * inside of the iframe, so we have to place the newly inserted data in the best place that we can.
-            */
-            
-            if (this._isElement(el, 'img')) {
-                this.currentElement[0] = el;
-                exec = false;
-            } else {
-                if (this._getDoc().queryCommandEnabled(action)) {
-                    this._getDoc().execCommand(action, false, value);
-                    var imgs = this._getDoc().getElementsByTagName('img');
-                    for (var i = 0; i < imgs.length; i++) {
-                        if (!YAHOO.util.Dom.hasClass(imgs[i], 'yui-img')) {
-                            YAHOO.util.Dom.addClass(imgs[i], 'yui-img');
-                            this.currentElement[0] = imgs[i];
-                        }
-                    }
-                    exec = false;
-                } else {
-                    if (el == this._getDoc().body) {
-                        _img = this._getDoc().createElement('img');
-                        _img.setAttribute('src', value);
-                        YAHOO.util.Dom.addClass(_img, 'yui-img');
-                        this._getDoc().body.appendChild(_img);
-                    } else {
-                        this._createCurrentElement('img');
-                        _img = this._getDoc().createElement('img');
-                        _img.setAttribute('src', value);
-                        YAHOO.util.Dom.addClass(_img, 'yui-img');
-                        this.currentElement[0].parentNode.replaceChild(_img, this.currentElement[0]);
-                    }
-                    this.currentElement[0] = _img;
-                    exec = false;
-                }
-            }
-            return [exec];
-        },
-        /**
-        * @method cmd_inserthtml
-        * @param value Value passed from the execCommand method
-        * @description This is an execCommand override method. It is called from execCommand when the execCommand('inserthtml') is used.
-        */
-        cmd_inserthtml: function(value) {
-            var exec = true, action = 'inserthtml', _span = null, _range = null;
-            /*
-            * @knownissue Safari cursor position
-            * @browser Safari 2.x
-            * @description The issue here is that we have no way of knowing where the cursor position is
-            * inside of the iframe, so we have to place the newly inserted data in the best place that we can.
-            */
-            if (this.browser.webkit && !this._getDoc().queryCommandEnabled(action)) {
-                this._createCurrentElement('img');
-                _span = this._getDoc().createElement('span');
-                _span.innerHTML = value;
-                this.currentElement[0].parentNode.replaceChild(_span, this.currentElement[0]);
-                exec = false;
-            } else if (this.browser.ie) {
-                _range = this._getRange();
-                if (_range.item) {
-                    _range.item(0).outerHTML = value;
-                } else {
-                    _range.pasteHTML(value);
-                }
-                exec = false;                    
-            }
-            return [exec];
-        },
-        /**
-        * @method cmd_list
-        * @param tag The tag of the list you want to create (eg, ul or ol)
-        * @description This is a combined execCommand override method. It is called from the cmd_insertorderedlist and cmd_insertunorderedlist methods.
-        */
-        cmd_list: function(tag) {
-            var exec = true, list = null, li = 0, el = null, str = '',
-                selEl = this._getSelectedElement(), action = 'insertorderedlist';
-                if (tag == 'ul') {
-                    action = 'insertunorderedlist';
-                }
-            /*
-            * @knownissue Safari 2.+ doesn't support ordered and unordered lists
-            * @browser Safari 2.x
-            * The issue with this workaround is that when applied to a set of text
-            * that has BR's in it, Safari may or may not pick up the individual items as
-            * list items. This is fixed in WebKit (Safari 3)
-            * 2.6.0: Seems there are still some issues with List Creation and Safari 3, reverting to previously working Safari 2.x code
-            */
-            //if ((this.browser.webkit && !this._getDoc().queryCommandEnabled(action))) {
-            if ((this.browser.webkit && !this.browser.webkit4) || (this.browser.opera)) {
-                if (this._isElement(selEl, 'li') && this._isElement(selEl.parentNode, tag)) {
-                    el = selEl.parentNode;
-                    list = this._getDoc().createElement('span');
-                    YAHOO.util.Dom.addClass(list, 'yui-non');
-                    str = '';
-                    var lis = el.getElementsByTagName('li'), p_tag = ((this.browser.opera && this.get('ptags')) ? 'p' : 'div');
-                    for (li = 0; li < lis.length; li++) {
-                        str += '<' + p_tag + '>' + lis[li].innerHTML + '</' + p_tag + '>';
-                    }
-                    list.innerHTML = str;
-                    this.currentElement[0] = el;
-                    this.currentElement[0].parentNode.replaceChild(list, this.currentElement[0]);
-                } else {
-                    this._createCurrentElement(tag.toLowerCase());
-                    list = this._getDoc().createElement(tag);
-                    for (li = 0; li < this.currentElement.length; li++) {
-                        var newli = this._getDoc().createElement('li');
-                        newli.innerHTML = this.currentElement[li].innerHTML + '<span class="yui-non">&nbsp;</span>&nbsp;';
-                        list.appendChild(newli);
-                        if (li > 0) {
-                            this.currentElement[li].parentNode.removeChild(this.currentElement[li]);
-                        }
-                    }
-                    var b_tag = ((this.browser.opera) ? '<BR>' : '<br>'),
-                    items = list.firstChild.innerHTML.split(b_tag), i, item;
-                    if (items.length > 0) {
-                        list.innerHTML = '';
-                        for (i = 0; i < items.length; i++) {
-                            item = this._getDoc().createElement('li');
-                            item.innerHTML = items[i];
-                            list.appendChild(item);
-                        }
-                    }
-
-                    this.currentElement[0].parentNode.replaceChild(list, this.currentElement[0]);
-                    this.currentElement[0] = list;
-                    var _h = this.currentElement[0].firstChild;
-                    _h = Dom.getElementsByClassName('yui-non', 'span', _h)[0];
-                    if (this.browser.webkit) {
-                        this._getSelection().setBaseAndExtent(_h, 1, _h, _h.innerText.length);
-                    }
-                }
-                exec = false;
-            } else {
-                el = this._getSelectedElement();
-                if (this._isElement(el, 'li') && this._isElement(el.parentNode, tag) || (this.browser.ie && this._isElement(this._getRange().parentElement, 'li')) || (this.browser.ie && this._isElement(el, 'ul')) || (this.browser.ie && this._isElement(el, 'ol'))) { //we are in a list..
-                    if (this.browser.ie) {
-                        if ((this.browser.ie && this._isElement(el, 'ul')) || (this.browser.ie && this._isElement(el, 'ol'))) {
-                            el = el.getElementsByTagName('li')[0];
-                        }
-                        str = '';
-                        var lis2 = el.parentNode.getElementsByTagName('li');
-                        for (var j = 0; j < lis2.length; j++) {
-                            str += lis2[j].innerHTML + '<br>';
-                        }
-                        var newEl = this._getDoc().createElement('span');
-                        newEl.innerHTML = str;
-                        el.parentNode.parentNode.replaceChild(newEl, el.parentNode);
-                    } else {
-                        this.nodeChange();
-                        this._getDoc().execCommand(action, '', el.parentNode);
-                        this.nodeChange();
-                    }
-                    exec = false;
-                }
-                if (this.browser.opera) {
-                    var self = this;
-                    window.setTimeout(function() {
-                        var liso = self._getDoc().getElementsByTagName('li');
-                        for (var i = 0; i < liso.length; i++) {
-                            if (liso[i].innerHTML.toLowerCase() == '<br>') {
-                                liso[i].parentNode.parentNode.removeChild(liso[i].parentNode);
-                            }
-                        }
-                    },30);
-                }
-                if (this.browser.ie && exec) {
-                    var html = '';
-                    if (this._getRange().html) {
-                        html = '<li>' + this._getRange().html+ '</li>';
-                    } else {
-                        var t = this._getRange().text.split('\n');
-                        if (t.length > 1) {
-                            html = '';
-                            for (var ie = 0; ie < t.length; ie++) {
-                                html += '<li>' + t[ie] + '</li>';
-                            }
-                        } else {
-                            var txt = this._getRange().text;
-                            if (txt === '') {
-                                html = '<li id="new_list_item">' + txt + '</li>';
-                            } else {
-                                html = '<li>' + txt + '</li>';
-                            }
-                        }
-                    }
-                    this._getRange().pasteHTML('<' + tag + '>' + html + '</' + tag + '>');
-                    var new_item = this._getDoc().getElementById('new_list_item');
-                    if (new_item) {
-                        var range = this._getDoc().body.createTextRange();
-                        range.moveToElementText(new_item);
-                        range.collapse(false);
-                        range.select();                       
-                        new_item.id = '';
-                    }
-                    exec = false;
-                }
-            }
-            return exec;
-        },
-        /**
-        * @method cmd_insertorderedlist
-        * @param value Value passed from the execCommand method
-        * @description This is an execCommand override method. It is called from execCommand when the execCommand('insertorderedlist ') is used.
-        */
-        cmd_insertorderedlist: function(value) {
-            return [this.cmd_list('ol')];
-        },
-        /**
-        * @method cmd_insertunorderedlist 
-        * @param value Value passed from the execCommand method
-        * @description This is an execCommand override method. It is called from execCommand when the execCommand('insertunorderedlist') is used.
-        */
-        cmd_insertunorderedlist: function(value) {
-            return [this.cmd_list('ul')];
-        },
-        /**
-        * @method cmd_fontname
-        * @param value Value passed from the execCommand method
-        * @description This is an execCommand override method. It is called from execCommand when the execCommand('fontname') is used.
-        */
-        cmd_fontname: function(value) {
-            var exec = true,
-                selEl = this._getSelectedElement();
-
-            this.currentFont = value;
-            if (selEl && selEl.tagName && !this._hasSelection() && !this._isElement(selEl, 'body') && !this.get('insert')) {
-                YAHOO.util.Dom.setStyle(selEl, 'font-family', value);
-                exec = false;
-            } else if (this.get('insert') && !this._hasSelection()) {
-                var el = this._createInsertElement({ fontFamily: value });
-                exec = false;
-            }
-            return [exec];
-        },
-        /**
-        * @method cmd_fontsize
-        * @param value Value passed from the execCommand method
-        * @description This is an execCommand override method. It is called from execCommand when the execCommand('fontsize') is used.
-        */
-        cmd_fontsize: function(value) {
-            var el = null, go = true;
-            el = this._getSelectedElement();
-            if (this.browser.webkit) {
-                if (this.currentElement[0]) {
-                    if (el == this.currentElement[0]) {
-                        go = false;
-                        YAHOO.util.Dom.setStyle(el, 'fontSize', value);
-                        this._selectNode(el);
-                        this.currentElement[0] = el;
-                    }
-                }
-            }
-            if (go) {
-                if (!this._isElement(this._getSelectedElement(), 'body') && (!this._hasSelection())) {
-                    el = this._getSelectedElement();
-                    YAHOO.util.Dom.setStyle(el, 'fontSize', value);
-                    if (this.get('insert') && this.browser.ie) {
-                        var r = this._getRange();
-                        r.collapse(false);
-                        r.select();
-                    } else {
-                        this._selectNode(el);
-                    }
-                } else if (this.currentElement && (this.currentElement.length > 0) && (!this._hasSelection()) && (!this.get('insert'))) {
-                    YAHOO.util.Dom.setStyle(this.currentElement, 'fontSize', value);
-                } else {
-                    if (this.get('insert') && !this._hasSelection()) {
-                        el = this._createInsertElement({ fontSize: value });
-                        this.currentElement[0] = el;
-                        this._selectNode(this.currentElement[0]);
-                    } else {
-                        this._createCurrentElement('span', {'fontSize': value, fontFamily: el.style.fontFamily, color: el.style.color, backgroundColor: el.style.backgroundColor });
-                        this._selectNode(this.currentElement[0]);
-                    }
-                }
-            }
-            return [false];
-        },
-    /* }}} */
-        /**
-        * @private
-        * @method _swapEl
-        * @param {HTMLElement} el The element to swap with
-        * @param {String} tagName The tagname of the element that you wish to create
-        * @param {Function} callback (optional) A function to run on the element after it is created, but before it is replaced. An element reference is passed to this function.
-        * @description This function will create a new element in the DOM and populate it with the contents of another element. Then it will assume it's place.
-        */
-        _swapEl: function(el, tagName, callback) {
-            var _el = this._getDoc().createElement(tagName);
-            if (el) {
-                _el.innerHTML = el.innerHTML;
-            }
-            if (typeof callback == 'function') {
-                callback.call(this, _el);
-            }
-            if (el) {
-                el.parentNode.replaceChild(_el, el);
-            }
-            return _el;
-        },
-        /**
-        * @private
-        * @method _createInsertElement
-        * @description Creates a new "currentElement" then adds some text (and other things) to make it selectable and stylable. Then the user can continue typing.
-        * @param {Object} css (optional) Object literal containing styles to apply to the new element.
-        * @return {HTMLElement}
-        */
-        _createInsertElement: function(css) {
-            this._createCurrentElement('span', css);
-            var el = this.currentElement[0];
-            if (this.browser.webkit) {
-                //Little Safari Hackery here..
-                el.innerHTML = '<span class="yui-non">&nbsp;</span>';
-                el = el.firstChild;
-                this._getSelection().setBaseAndExtent(el, 1, el, el.innerText.length);                    
-            } else if (this.browser.ie || this.browser.opera) {
-                el.innerHTML = '&nbsp;';
-            }
-            this.focus();
-            this._selectNode(el, true);
-            return el;
-        },
-        /**
-        * @private
-        * @method _createCurrentElement
-        * @param {String} tagName (optional defaults to a) The tagname of the element that you wish to create
-        * @param {Object} tagStyle (optional) Object literal containing styles to apply to the new element.
-        * @description This is a work around for the various browser issues with execCommand. This method will run <code>execCommand('fontname', false, 'yui-tmp')</code> on the given selection.
-        * It will then search the document for an element with the font-family set to <strong>yui-tmp</strong> and replace that with another span that has other information in it, then assign the new span to the 
-        * <code>this.currentElement</code> array, so we now have element references to the elements that were just modified. At this point we can use standard DOM manipulation to change them as we see fit.
-        */
-        _createCurrentElement: function(tagName, tagStyle) {
-            tagName = ((tagName) ? tagName : 'a');
-            var tar = null,
-                el = [],
-                _doc = this._getDoc();
-            
-            if (this.currentFont) {
-                if (!tagStyle) {
-                    tagStyle = {};
-                }
-                tagStyle.fontFamily = this.currentFont;
-                this.currentFont = null;
-            }
-            this.currentElement = [];
-
-            var _elCreate = function(tagName, tagStyle) {
-                var el = null;
-                tagName = ((tagName) ? tagName : 'span');
-                tagName = tagName.toLowerCase();
-                switch (tagName) {
-                    case 'h1':
-                    case 'h2':
-                    case 'h3':
-                    case 'h4':
-                    case 'h5':
-                    case 'h6':
-                        el = _doc.createElement(tagName);
-                        break;
-                    default:
-                        el = _doc.createElement(tagName);
-                        if (tagName === 'span') {
-                            YAHOO.util.Dom.addClass(el, 'yui-tag-' + tagName);
-                            YAHOO.util.Dom.addClass(el, 'yui-tag');
-                            el.setAttribute('tag', tagName);
-                        }
-
-                        for (var k in tagStyle) {
-                            if (YAHOO.lang.hasOwnProperty(tagStyle, k)) {
-                                el.style[k] = tagStyle[k];
-                            }
-                        }
-                        break;
-                }
-                return el;
-            };
-
-            if (!this._hasSelection()) {
-                if (this._getDoc().queryCommandEnabled('insertimage')) {
-                    this._getDoc().execCommand('insertimage', false, 'yui-tmp-img');
-                    var imgs = this._getDoc().getElementsByTagName('img');
-                    for (var j = 0; j < imgs.length; j++) {
-                        if (imgs[j].getAttribute('src', 2) == 'yui-tmp-img') {
-                            el = _elCreate(tagName, tagStyle);
-                            imgs[j].parentNode.replaceChild(el, imgs[j]);
-                            this.currentElement[this.currentElement.length] = el;
-                        }
-                    }
-                } else {
-                    if (this.currentEvent) {
-                        tar = YAHOO.util.Event.getTarget(this.currentEvent);
-                    } else {
-                        //For Safari..
-                        tar = this._getDoc().body;                        
-                    }
-                }
-                if (tar) {
-                    /*
-                    * @knownissue Safari Cursor Position
-                    * @browser Safari 2.x
-                    * @description The issue here is that we have no way of knowing where the cursor position is
-                    * inside of the iframe, so we have to place the newly inserted data in the best place that we can.
-                    */
-                    el = _elCreate(tagName, tagStyle);
-                    if (this._isElement(tar, 'body') || this._isElement(tar, 'html')) {
-                        if (this._isElement(tar, 'html')) {
-                            tar = this._getDoc().body;
-                        }
-                        tar.appendChild(el);
-                    } else if (tar.nextSibling) {
-                        tar.parentNode.insertBefore(el, tar.nextSibling);
-                    } else {
-                        tar.parentNode.appendChild(el);
-                    }
-                    //this.currentElement = el;
-                    this.currentElement[this.currentElement.length] = el;
-                    this.currentEvent = null;
-                    if (this.browser.webkit) {
-                        //Force Safari to focus the new element
-                        this._getSelection().setBaseAndExtent(el, 0, el, 0);
-                        if (this.browser.webkit3) {
-                            this._getSelection().collapseToStart();
-                        } else {
-                            this._getSelection().collapse(true);
-                        }
-                    }
-                }
-            } else {
-                //Force CSS Styling for this action...
-                this._setEditorStyle(true);
-                this._getDoc().execCommand('fontname', false, 'yui-tmp');
-                var _tmp = [], __tmp, __els = ['font', 'span', 'i', 'b', 'u'];
-
-                if (!this._isElement(this._getSelectedElement(), 'body')) {
-                    __els[__els.length] = this._getDoc().getElementsByTagName(this._getSelectedElement().tagName);
-                    __els[__els.length] = this._getDoc().getElementsByTagName(this._getSelectedElement().parentNode.tagName);
-                }
-                for (var _els = 0; _els < __els.length; _els++) {
-                    var _tmp1 = this._getDoc().getElementsByTagName(__els[_els]);
-                    for (var e = 0; e < _tmp1.length; e++) {
-                        _tmp[_tmp.length] = _tmp1[e];
-                    }
-                }
-
-                
-                for (var i = 0; i < _tmp.length; i++) {
-                    if ((YAHOO.util.Dom.getStyle(_tmp[i], 'font-family') == 'yui-tmp') || (_tmp[i].face && (_tmp[i].face == 'yui-tmp'))) {
-                        if (tagName !== 'span') {
-                            el = _elCreate(tagName, tagStyle);
-                        } else {
-                            el = _elCreate(_tmp[i].tagName, tagStyle);
-                        }
-                        el.innerHTML = _tmp[i].innerHTML;
-                        if (this._isElement(_tmp[i], 'ol') || (this._isElement(_tmp[i], 'ul'))) {
-                            var fc = _tmp[i].getElementsByTagName('li')[0];
-                            _tmp[i].style.fontFamily = 'inherit';
-                            fc.style.fontFamily = 'inherit';
-                            el.innerHTML = fc.innerHTML;
-                            fc.innerHTML = '';
-                            fc.appendChild(el);
-                            this.currentElement[this.currentElement.length] = el;
-                        } else if (this._isElement(_tmp[i], 'li')) {
-                            _tmp[i].innerHTML = '';
-                            _tmp[i].appendChild(el);
-                            _tmp[i].style.fontFamily = 'inherit';
-                            this.currentElement[this.currentElement.length] = el;
-                        } else {
-                            if (_tmp[i].parentNode) {
-                                _tmp[i].parentNode.replaceChild(el, _tmp[i]);
-                                this.currentElement[this.currentElement.length] = el;
-                                this.currentEvent = null;
-                                if (this.browser.webkit) {
-                                    //Force Safari to focus the new element
-                                    this._getSelection().setBaseAndExtent(el, 0, el, 0);
-                                    if (this.browser.webkit3) {
-                                        this._getSelection().collapseToStart();
-                                    } else {
-                                        this._getSelection().collapse(true);
-                                    }
-                                }
-                                if (this.browser.ie && tagStyle && tagStyle.fontSize) {
-                                    this._getSelection().empty();
-                                }
-                                if (this.browser.gecko) {
-                                    this._getSelection().collapseToStart();
-                                }
-                            }
-                        }
-                    }
-                }
-                var len = this.currentElement.length;
-                for (var o = 0; o < len; o++) {
-                    if ((o + 1) != len) { //Skip the last one in the list
-                        if (this.currentElement[o] && this.currentElement[o].nextSibling) {
-                            if (this._isElement(this.currentElement[o], 'br')) {
-                                this.currentElement[this.currentElement.length] = this.currentElement[o].nextSibling;
-                            }
-                        }
-                    }
-                }
-            }
-        },
-        /**
-        * @method saveHTML
-        * @description Cleans the HTML with the cleanHTML method then places that string back into the textarea.
-        * @return String
-        */
-        saveHTML: function() {
-            var html = this.cleanHTML();
-            if (this._textarea) {
-                this.get('element').value = html;
-            } else {
-                this.get('element').innerHTML = html;
-            }
-            if (this.get('saveEl') !== this.get('element')) {
-                var out = this.get('saveEl');
-                if (Lang.isString(out)) {
-                    out = Dom.get(out);
-                }
-                if (out) {
-                    if (out.tagName.toLowerCase() === 'textarea') {
-                        out.value = html;
-                    } else {
-                        out.innerHTML = html;
-                    }
-                }
-            }
-            return html;
-        },
-        /**
-        * @method setEditorHTML
-        * @param {String} incomingHTML The html content to load into the editor
-        * @description Loads HTML into the editors body
-        */
-        setEditorHTML: function(incomingHTML) {
-            var html = this._cleanIncomingHTML(incomingHTML);
-            html = html.replace(/RIGHT_BRACKET/gi, '{');
-            html = html.replace(/LEFT_BRACKET/gi, '}');
-            this._getDoc().body.innerHTML = html;
-            this.nodeChange();
-        },
-        /**
-        * @method getEditorHTML
-        * @description Gets the unprocessed/unfiltered HTML from the editor
-        */
-        getEditorHTML: function() {
-            try {
-                var b = this._getDoc().body;
-                if (b === null) {
-                    return null;
-                }
-                return this._getDoc().body.innerHTML;
-            } catch (e) {
-                return '';
-            }
-        },
-        /**
-        * @method show
-        * @description This method needs to be called if the Editor was hidden (like in a TabView or Panel). It is used to reset the editor after being in a container that was set to display none.
-        */
-        show: function() {
-            if (this.browser.gecko) {
-                this._setDesignMode('on');
-                this.focus();
-            }
-            if (this.browser.webkit) {
-                var self = this;
-                window.setTimeout(function() {
-                    self._setInitialContent.call(self);
-                }, 10);
-            }
-            //Adding this will close all other Editor window's when showing this one.
-            if (this.currentWindow) {
-                this.closeWindow();
-            }
-            //Put the iframe back in place
-            this.get('iframe').setStyle('position', 'static');
-            this.get('iframe').setStyle('left', '');
-        },
-        /**
-        * @method hide
-        * @description This method needs to be called if the Editor is to be hidden (like in a TabView or Panel). It should be called to clear timeouts and close open editor windows.
-        */
-        hide: function() {
-            //Adding this will close all other Editor window's.
-            if (this.currentWindow) {
-                this.closeWindow();
-            }
-            if (this._fixNodesTimer) {
-                clearTimeout(this._fixNodesTimer);
-                this._fixNodesTimer = null;
-            }
-            if (this._nodeChangeTimer) {
-                clearTimeout(this._nodeChangeTimer);
-                this._nodeChangeTimer = null;
-            }
-            this._lastNodeChange = 0;
-            //Move the iframe off of the screen, so that in containers with visiblity hidden, IE will not cover other elements.
-            this.get('iframe').setStyle('position', 'absolute');
-            this.get('iframe').setStyle('left', '-9999px');
-        },
-        /**
-        * @method _cleanIncomingHTML
-        * @param {String} html The unfiltered HTML
-        * @description Process the HTML with a few regexes to clean it up and stabilize the input
-        * @return {String} The filtered HTML
-        */
-        _cleanIncomingHTML: function(html) {
-            html = html.replace(/{/gi, 'RIGHT_BRACKET');
-            html = html.replace(/}/gi, 'LEFT_BRACKET');
-
-            html = html.replace(/<strong([^>]*)>/gi, '<b$1>');
-            html = html.replace(/<\/strong>/gi, '</b>');   
-
-            //replace embed before em check
-            html = html.replace(/<embed([^>]*)>/gi, '<YUI_EMBED$1>');
-            html = html.replace(/<\/embed>/gi, '</YUI_EMBED>');
-
-            html = html.replace(/<em([^>]*)>/gi, '<i$1>');
-            html = html.replace(/<\/em>/gi, '</i>');
-            html = html.replace(/_moz_dirty=""/gi, '');
-            
-            //Put embed tags back in..
-            html = html.replace(/<YUI_EMBED([^>]*)>/gi, '<embed$1>');
-            html = html.replace(/<\/YUI_EMBED>/gi, '</embed>');
-            if (this.get('plainText')) {
-                html = html.replace(/\n/g, '<br>').replace(/\r/g, '<br>');
-                html = html.replace(/  /gi, '&nbsp;&nbsp;'); //Replace all double spaces
-                html = html.replace(/\t/gi, '&nbsp;&nbsp;&nbsp;&nbsp;'); //Replace all tabs
-            }
-            //Removing Script Tags from the Editor
-            html = html.replace(/<script([^>]*)>/gi, '<bad>');
-            html = html.replace(/<\/script([^>]*)>/gi, '</bad>');
-            html = html.replace(/&lt;script([^>]*)&gt;/gi, '<bad>');
-            html = html.replace(/&lt;\/script([^>]*)&gt;/gi, '</bad>');
-            //Replace the line feeds
-            html = html.replace(/\r\n/g, '<YUI_LF>').replace(/\n/g, '<YUI_LF>').replace(/\r/g, '<YUI_LF>');
-            
-            //Remove Bad HTML elements (used to be script nodes)
-            html = html.replace(new RegExp('<bad([^>]*)>(.*?)<\/bad>', 'gi'), '');
-            //Replace the lines feeds
-            html = html.replace(/<YUI_LF>/g, '\n');
-            return html;
-        },
-        /**
-        * @method cleanHTML
-        * @param {String} html The unfiltered HTML
-        * @description Process the HTML with a few regexes to clean it up and stabilize the output
-        * @return {String} The filtered HTML
-        */
-        cleanHTML: function(html) {
-            //Start Filtering Output
-            //Begin RegExs..
-            if (!html) { 
-                html = this.getEditorHTML();
-            }
-            var markup = this.get('markup');
-            //Make some backups...
-            html = this.pre_filter_linebreaks(html, markup);
-
-            //Filter MS Word
-            html = this.filter_msword(html);
-
-                   html = html.replace(/<img([^>]*)\/>/gi, '<YUI_IMG$1>');
-                   html = html.replace(/<img([^>]*)>/gi, '<YUI_IMG$1>');
-
-                   html = html.replace(/<input([^>]*)\/>/gi, '<YUI_INPUT$1>');
-                   html = html.replace(/<input([^>]*)>/gi, '<YUI_INPUT$1>');
-
-                   html = html.replace(/<ul([^>]*)>/gi, '<YUI_UL$1>');
-                   html = html.replace(/<\/ul>/gi, '<\/YUI_UL>');
-                   html = html.replace(/<blockquote([^>]*)>/gi, '<YUI_BQ$1>');
-                   html = html.replace(/<\/blockquote>/gi, '<\/YUI_BQ>');
-
-                   html = html.replace(/<embed([^>]*)>/gi, '<YUI_EMBED$1>');
-                   html = html.replace(/<\/embed>/gi, '<\/YUI_EMBED>');
-
-            //Convert b and i tags to strong and em tags
-            if ((markup == 'semantic') || (markup == 'xhtml')) {
-                html = html.replace(/<i(\s+[^>]*)?>/gi, '<em$1>');
-                html = html.replace(/<\/i>/gi, '</em>');
-                html = html.replace(/<b(\s+[^>]*)?>/gi, '<strong$1>');
-                html = html.replace(/<\/b>/gi, '</strong>');
-            }
-
-            html = html.replace(/_moz_dirty=""/gi, '');
-
-            //normalize strikethrough
-            html = html.replace(/<strike/gi, '<span style="text-decoration: line-through;"');
-            html = html.replace(/\/strike>/gi, '/span>');
-            
-            
-            //Case Changing
-            if (this.browser.ie) {
-                html = html.replace(/text-decoration/gi, 'text-decoration');
-                html = html.replace(/font-weight/gi, 'font-weight');
-                html = html.replace(/_width="([^>]*)"/gi, '');
-                html = html.replace(/_height="([^>]*)"/gi, '');
-                //Cleanup Image URL's
-                var url = this._baseHREF.replace(/\//gi, '\\/'),
-                    re = new RegExp('src="' + url, 'gi');
-                html = html.replace(re, 'src="');
-            }
-                   html = html.replace(/<font/gi, '<font');
-                   html = html.replace(/<\/font>/gi, '</font>');
-                   html = html.replace(/<span/gi, '<span');
-                   html = html.replace(/<\/span>/gi, '</span>');
-            if ((markup == 'semantic') || (markup == 'xhtml') || (markup == 'css')) {
-                html = html.replace(new RegExp('<font([^>]*)face="([^>]*)">(.*?)<\/font>', 'gi'), '<span $1 style="font-family: $2;">$3</span>');
-                html = html.replace(/<u/gi, '<span style="text-decoration: underline;"');
-                if (this.browser.webkit) {
-                    html = html.replace(new RegExp('<span class="Apple-style-span" style="font-weight: bold;">([^>]*)<\/span>', 'gi'), '<strong>$1</strong>');
-                    html = html.replace(new RegExp('<span class="Apple-style-span" style="font-style: italic;">([^>]*)<\/span>', 'gi'), '<em>$1</em>');
-                }
-                html = html.replace(/\/u>/gi, '/span>');
-                if (markup == 'css') {
-                    html = html.replace(/<em([^>]*)>/gi, '<i$1>');
-                    html = html.replace(/<\/em>/gi, '</i>');
-                    html = html.replace(/<strong([^>]*)>/gi, '<b$1>');
-                    html = html.replace(/<\/strong>/gi, '</b>');
-                    html = html.replace(/<b/gi, '<span style="font-weight: bold;"');
-                    html = html.replace(/\/b>/gi, '/span>');
-                    html = html.replace(/<i/gi, '<span style="font-style: italic;"');
-                    html = html.replace(/\/i>/gi, '/span>');
-                }
-                html = html.replace(/  /gi, ' '); //Replace all double spaces and replace with a single
-            } else {
-                       html = html.replace(/<u/gi, '<u');
-                       html = html.replace(/\/u>/gi, '/u>');
-            }
-                   html = html.replace(/<ol([^>]*)>/gi, '<ol$1>');
-                   html = html.replace(/\/ol>/gi, '/ol>');
-                   html = html.replace(/<li/gi, '<li');
-                   html = html.replace(/\/li>/gi, '/li>');
-            html = this.filter_safari(html);
-
-            html = this.filter_internals(html);
-
-            html = this.filter_all_rgb(html);
-
-            //Replace our backups with the real thing
-            html = this.post_filter_linebreaks(html, markup);
-
-            if (markup == 'xhtml') {
-                       html = html.replace(/<YUI_IMG([^>]*)>/g, '<img $1 />');
-                       html = html.replace(/<YUI_INPUT([^>]*)>/g, '<input $1 />');
-            } else {
-                       html = html.replace(/<YUI_IMG([^>]*)>/g, '<img $1>');
-                       html = html.replace(/<YUI_INPUT([^>]*)>/g, '<input $1>');
-            }
-                   html = html.replace(/<YUI_UL([^>]*)>/g, '<ul$1>');
-                   html = html.replace(/<\/YUI_UL>/g, '<\/ul>');
-
-            html = this.filter_invalid_lists(html);
-
-                   html = html.replace(/<YUI_BQ([^>]*)>/g, '<blockquote$1>');
-                   html = html.replace(/<\/YUI_BQ>/g, '<\/blockquote>');
-
-                   html = html.replace(/<YUI_EMBED([^>]*)>/g, '<embed$1>');
-                   html = html.replace(/<\/YUI_EMBED>/g, '<\/embed>');
-            
-            //This should fix &amp;'s in URL's
-            html = html.replace(/ &amp; /gi, ' YUI_AMP ');
-            html = html.replace(/ &amp;/gi, ' YUI_AMP_F ');
-            html = html.replace(/&amp; /gi, ' YUI_AMP_R ');
-            html = html.replace(/&amp;/gi, '&');
-            html = html.replace(/ YUI_AMP /gi, ' &amp; ');
-            html = html.replace(/ YUI_AMP_F /gi, ' &amp;');
-            html = html.replace(/ YUI_AMP_R /gi, '&amp; ');
-
-            //Trim the output, removing whitespace from the beginning and end
-            html = YAHOO.lang.trim(html);
-
-            if (this.get('removeLineBreaks')) {
-                html = html.replace(/\n/g, '').replace(/\r/g, '');
-                html = html.replace(/  /gi, ' '); //Replace all double spaces and replace with a single
-            }
-            
-            for (var v in this.invalidHTML) {
-                if (YAHOO.lang.hasOwnProperty(this.invalidHTML, v)) {
-                    if (Lang.isObject(v) && v.keepContents) {
-                        html = html.replace(new RegExp('<' + v + '([^>]*)>(.*?)<\/' + v + '>', 'gi'), '$1');
-                    } else {
-                        html = html.replace(new RegExp('<' + v + '([^>]*)>(.*?)<\/' + v + '>', 'gi'), '');
-                    }
-                }
-            }
-
-            /* LATER -- Add DOM manipulation
-            console.log(html);
-            var frag = document.createDocumentFragment();
-            frag.innerHTML = html;
-
-            var ps = frag.getElementsByTagName('p'),
-                len = ps.length;
-            for (var i = 0; i < len; i++) {
-                var ps2 = ps[i].getElementsByTagName('p');
-                if (ps2.length) {
-                    
-                }
-                
-            }
-            html = frag.innerHTML;
-            console.log(html);
-            */
-
-            this.fireEvent('cleanHTML', { type: 'cleanHTML', target: this, html: html });
-
-            return html;
-        },
-        /**
-        * @method filter_msword
-        * @param String html The HTML string to filter
-        * @description Filters out msword html attributes and other junk. Activate with filterWord: true in config
-        */
-        filter_msword: function(html) {
-            if (!this.get('filterWord')) {
-                return html;
-            }
-            //Remove the ms o: tags
-            html = html.replace(/<o:p>\s*<\/o:p>/g, '');
-            html = html.replace(/<o:p>[\s\S]*?<\/o:p>/g, '&nbsp;');
-
-            //Remove the ms w: tags
-            html = html.replace( /<w:[^>]*>[\s\S]*?<\/w:[^>]*>/gi, '');
-
-            //Remove mso-? styles.
-            html = html.replace( /\s*mso-[^:]+:[^;"]+;?/gi, '');
-
-            //Remove more bogus MS styles.
-            html = html.replace( /\s*MARGIN: 0cm 0cm 0pt\s*;/gi, '');
-            html = html.replace( /\s*MARGIN: 0cm 0cm 0pt\s*"/gi, "\"");
-            html = html.replace( /\s*TEXT-INDENT: 0cm\s*;/gi, '');
-            html = html.replace( /\s*TEXT-INDENT: 0cm\s*"/gi, "\"");
-            html = html.replace( /\s*PAGE-BREAK-BEFORE: [^\s;]+;?"/gi, "\"");
-            html = html.replace( /\s*FONT-VARIANT: [^\s;]+;?"/gi, "\"" );
-            html = html.replace( /\s*tab-stops:[^;"]*;?/gi, '');
-            html = html.replace( /\s*tab-stops:[^"]*/gi, '');
-
-            //Remove XML declarations
-            html = html.replace(/<\\?\?xml[^>]*>/gi, '');
-
-            //Remove lang
-            html = html.replace(/<(\w[^>]*) lang=([^ |>]*)([^>]*)/gi, "<$1$3");
-
-            //Remove language tags
-            html = html.replace( /<(\w[^>]*) language=([^ |>]*)([^>]*)/gi, "<$1$3");
-
-            //Remove onmouseover and onmouseout events (from MS Word comments effect)
-            html = html.replace( /<(\w[^>]*) onmouseover="([^\"]*)"([^>]*)/gi, "<$1$3");
-            html = html.replace( /<(\w[^>]*) onmouseout="([^\"]*)"([^>]*)/gi, "<$1$3");
-            
-            return html;
-        },
-        /**
-        * @method filter_invalid_lists
-        * @param String html The HTML string to filter
-        * @description Filters invalid ol and ul list markup, converts this: <li></li><ol>..</ol> to this: <li></li><li><ol>..</ol></li>
-        */
-        filter_invalid_lists: function(html) {
-            html = html.replace(/<\/li>\n/gi, '</li>');
-
-            html = html.replace(/<\/li><ol>/gi, '</li><li><ol>');
-            html = html.replace(/<\/ol>/gi, '</ol></li>');
-            html = html.replace(/<\/ol><\/li>\n/gi, "</ol>");
-
-            html = html.replace(/<\/li><ul>/gi, '</li><li><ul>');
-            html = html.replace(/<\/ul>/gi, '</ul></li>');
-            html = html.replace(/<\/ul><\/li>\n?/gi, "</ul>");
-
-            html = html.replace(/<\/li>/gi, "</li>");
-            html = html.replace(/<\/ol>/gi, "</ol>");
-            html = html.replace(/<ol>/gi, "<ol>");
-            html = html.replace(/<ul>/gi, "<ul>");
-            return html;
-        },
-        /**
-        * @method filter_safari
-        * @param String html The HTML string to filter
-        * @description Filters strings specific to Safari
-        * @return String
-        */
-        filter_safari: function(html) {
-            if (this.browser.webkit) {
-                //<span class="Apple-tab-span" style="white-space:pre">        </span>
-                html = html.replace(/<span class="Apple-tab-span" style="white-space:pre">([^>])<\/span>/gi, '&nbsp;&nbsp;&nbsp;&nbsp;');
-                html = html.replace(/Apple-style-span/gi, '');
-                html = html.replace(/style="line-height: normal;"/gi, '');
-                html = html.replace(/yui-wk-div/gi, '');
-                html = html.replace(/yui-wk-p/gi, '');
-
-
-                //Remove bogus LI's
-                html = html.replace(/<li><\/li>/gi, '');
-                html = html.replace(/<li> <\/li>/gi, '');
-                html = html.replace(/<li>  <\/li>/gi, '');
-                //Remove bogus DIV's - updated from just removing the div's to replacing /div with a break
-                if (this.get('ptags')) {
-                           html = html.replace(/<div([^>]*)>/g, '<p$1>');
-                                   html = html.replace(/<\/div>/gi, '</p>');
-                } else {
-                    //html = html.replace(/<div>/gi, '<br>');
-                    html = html.replace(/<div([^>]*)>([ tnr]*)<\/div>/gi, '<br>');
-                                   html = html.replace(/<\/div>/gi, '');
-                }
-            }
-            return html;
-        },
-        /**
-        * @method filter_internals
-        * @param String html The HTML string to filter
-        * @description Filters internal RTE strings and bogus attrs we don't want
-        * @return String
-        */
-        filter_internals: function(html) {
-                   html = html.replace(/\r/g, '');
-            //Fix stuff we don't want
-               html = html.replace(/<\/?(body|head|html)[^>]*>/gi, '');
-            //Fix last BR in LI
-                   html = html.replace(/<YUI_BR><\/li>/gi, '</li>');
-
-                   html = html.replace(/yui-tag-span/gi, '');
-                   html = html.replace(/yui-tag/gi, '');
-                   html = html.replace(/yui-non/gi, '');
-                   html = html.replace(/yui-img/gi, '');
-                   html = html.replace(/ tag="span"/gi, '');
-                   html = html.replace(/ class=""/gi, '');
-                   html = html.replace(/ style=""/gi, '');
-                   html = html.replace(/ class=" "/gi, '');
-                   html = html.replace(/ class="  "/gi, '');
-                   html = html.replace(/ target=""/gi, '');
-                   html = html.replace(/ title=""/gi, '');
-
-            if (this.browser.ie) {
-                       html = html.replace(/ class= /gi, '');
-                       html = html.replace(/ class= >/gi, '');
-            }
-            
-            return html;
-        },
-        /**
-        * @method filter_all_rgb
-        * @param String str The HTML string to filter
-        * @description Converts all RGB color strings found in passed string to a hex color, example: style="color: rgb(0, 255, 0)" converts to style="color: #00ff00"
-        * @return String
-        */
-        filter_all_rgb: function(str) {
-            var exp = new RegExp("rgb\\s*?\\(\\s*?([0-9]+).*?,\\s*?([0-9]+).*?,\\s*?([0-9]+).*?\\)", "gi");
-            var arr = str.match(exp);
-            if (Lang.isArray(arr)) {
-                for (var i = 0; i < arr.length; i++) {
-                    var color = this.filter_rgb(arr[i]);
-                    str = str.replace(arr[i].toString(), color);
-                }
-            }
-            
-            return str;
-        },
-        /**
-        * @method filter_rgb
-        * @param String css The CSS string containing rgb(#,#,#);
-        * @description Converts an RGB color string to a hex color, example: rgb(0, 255, 0) converts to #00ff00
-        * @return String
-        */
-        filter_rgb: function(css) {
-            if (css.toLowerCase().indexOf('rgb') != -1) {
-                var exp = new RegExp("(.*?)rgb\\s*?\\(\\s*?([0-9]+).*?,\\s*?([0-9]+).*?,\\s*?([0-9]+).*?\\)(.*?)", "gi");
-                var rgb = css.replace(exp, "$1,$2,$3,$4,$5").split(',');
-            
-                if (rgb.length == 5) {
-                    var r = parseInt(rgb[1], 10).toString(16);
-                    var g = parseInt(rgb[2], 10).toString(16);
-                    var b = parseInt(rgb[3], 10).toString(16);
-
-                    r = r.length == 1 ? '0' + r : r;
-                    g = g.length == 1 ? '0' + g : g;
-                    b = b.length == 1 ? '0' + b : b;
-
-                    css = "#" + r + g + b;
-                }
-            }
-            return css;
-        },
-        /**
-        * @method pre_filter_linebreaks
-        * @param String html The HTML to filter
-        * @param String markup The markup type to filter to
-        * @description HTML Pre Filter
-        * @return String
-        */
-        pre_filter_linebreaks: function(html, markup) {
-            if (this.browser.webkit) {
-                       html = html.replace(/<br class="khtml-block-placeholder">/gi, '<YUI_BR>');
-                       html = html.replace(/<br class="webkit-block-placeholder">/gi, '<YUI_BR>');
-            }
-                   html = html.replace(/<br>/gi, '<YUI_BR>');
-                   html = html.replace(/<br (.*?)>/gi, '<YUI_BR>');
-                   html = html.replace(/<br\/>/gi, '<YUI_BR>');
-                   html = html.replace(/<br \/>/gi, '<YUI_BR>');
-                   html = html.replace(/<div><YUI_BR><\/div>/gi, '<YUI_BR>');
-                   html = html.replace(/<p>(&nbsp;|&#160;)<\/p>/g, '<YUI_BR>');            
-                   html = html.replace(/<p><br>&nbsp;<\/p>/gi, '<YUI_BR>');
-                   html = html.replace(/<p>&nbsp;<\/p>/gi, '<YUI_BR>');
-            //Fix last BR
-               html = html.replace(/<YUI_BR>$/, '');
-            //Fix last BR in P
-               html = html.replace(/<YUI_BR><\/p>/g, '</p>');
-            if (this.browser.ie) {
-                   html = html.replace(/&nbsp;&nbsp;&nbsp;&nbsp;/g, '\t');
-            }
-            return html;
-        },
-        /**
-        * @method post_filter_linebreaks
-        * @param String html The HTML to filter
-        * @param String markup The markup type to filter to
-        * @description HTML Pre Filter
-        * @return String
-        */
-        post_filter_linebreaks: function(html, markup) {
-            if (markup == 'xhtml') {
-                       html = html.replace(/<YUI_BR>/g, '<br />');
-            } else {
-                       html = html.replace(/<YUI_BR>/g, '<br>');
-            }
-            return html;
-        },
-        /**
-        * @method clearEditorDoc
-        * @description Clear the doc of the Editor
-        */
-        clearEditorDoc: function() {
-            this._getDoc().body.innerHTML = '&nbsp;';
-        },
-        /**
-        * @method openWindow
-        * @description Override Method for Advanced Editor
-        */
-        openWindow: function(win) {
-        },
-        /**
-        * @method moveWindow
-        * @description Override Method for Advanced Editor
-        */
-        moveWindow: function() {
-        },
-        /**
-        * @private
-        * @method _closeWindow
-        * @description Override Method for Advanced Editor
-        */
-        _closeWindow: function() {
-        },
-        /**
-        * @method closeWindow
-        * @description Override Method for Advanced Editor
-        */
-        closeWindow: function() {
-            //this.unsubscribeAll('afterExecCommand');
-            this.toolbar.resetAllButtons();
-            this.focus();        
-        },
-        /**
-        * @method destroy
-        * @description Destroys the editor, all of it's elements and objects.
-        * @return {Boolean}
-        */
-        destroy: function() {
-            if (this._nodeChangeDelayTimer) {
-                clearTimeout(this._nodeChangeDelayTimer);
-            }
-            this.hide();
-        
-            if (this.resize) {
-                this.resize.destroy();
-            }
-            if (this.dd) {
-                this.dd.unreg();
-            }
-            if (this.get('panel')) {
-                this.get('panel').destroy();
-            }
-            this.saveHTML();
-            this.toolbar.destroy();
-            this.setStyle('visibility', 'visible');
-            this.setStyle('position', 'static');
-            this.setStyle('top', '');
-            this.setStyle('left', '');
-            var textArea = this.get('element');
-            this.get('element_cont').get('parentNode').replaceChild(textArea, this.get('element_cont').get('element'));
-            this.get('element_cont').get('element').innerHTML = '';
-            this.set('handleSubmit', false); //Remove the submit handler
-            return true;
-        },        
-        /**
-        * @method toString
-        * @description Returns a string representing the editor.
-        * @return {String}
-        */
-        toString: function() {
-            var str = 'SimpleEditor';
-            if (this.get && this.get('element_cont')) {
-                str = 'SimpleEditor (#' + this.get('element_cont').get('id') + ')' + ((this.get('disabled') ? ' Disabled' : ''));
-            }
-            return str;
-        }
-    });
-
-/**
-* @event toolbarLoaded
-* @description Event is fired during the render process directly after the Toolbar is loaded. Allowing you to attach events to the toolbar. See <a href="YAHOO.util.Element.html#addListener">Element.addListener</a> for more information on listening for this event.
-* @type YAHOO.util.CustomEvent
-*/
-/**
-* @event cleanHTML
-* @description Event is fired after the cleanHTML method is called.
-* @type YAHOO.util.CustomEvent
-*/
-/**
-* @event afterRender
-* @description Event is fired after the render process finishes. See <a href="YAHOO.util.Element.html#addListener">Element.addListener</a> for more information on listening for this event.
-* @type YAHOO.util.CustomEvent
-*/
-/**
-* @event editorContentLoaded
-* @description Event is fired after the editor iframe's document fully loads and fires it's onload event. From here you can start injecting your own things into the document. See <a href="YAHOO.util.Element.html#addListener">Element.addListener</a> for more information on listening for this event.
-* @type YAHOO.util.CustomEvent
-*/
-/**
-* @event beforeNodeChange
-* @description Event fires at the beginning of the nodeChange process. See <a href="YAHOO.util.Element.html#addListener">Element.addListener</a> for more information on listening for this event.
-* @type YAHOO.util.CustomEvent
-*/
-/**
-* @event afterNodeChange
-* @description Event fires at the end of the nodeChange process. See <a href="YAHOO.util.Element.html#addListener">Element.addListener</a> for more information on listening for this event.
-* @type YAHOO.util.CustomEvent
-*/
-/**
-* @event beforeExecCommand
-* @description Event fires at the beginning of the execCommand process. See <a href="YAHOO.util.Element.html#addListener">Element.addListener</a> for more information on listening for this event.
-* @type YAHOO.util.CustomEvent
-*/
-/**
-* @event afterExecCommand
-* @description Event fires at the end of the execCommand process. See <a href="YAHOO.util.Element.html#addListener">Element.addListener</a> for more information on listening for this event.
-* @type YAHOO.util.CustomEvent
-*/
-/**
-* @event editorMouseUp
-* @param {Event} ev The DOM Event that occured
-* @description Passed through HTML Event. See <a href="YAHOO.util.Element.html#addListener">Element.addListener</a> for more information on listening for this event.
-* @type YAHOO.util.CustomEvent
-*/
-/**
-* @event editorMouseDown
-* @param {Event} ev The DOM Event that occured
-* @description Passed through HTML Event. See <a href="YAHOO.util.Element.html#addListener">Element.addListener</a> for more information on listening for this event.
-* @type YAHOO.util.CustomEvent
-*/
-/**
-* @event editorDoubleClick
-* @param {Event} ev The DOM Event that occured
-* @description Passed through HTML Event. See <a href="YAHOO.util.Element.html#addListener">Element.addListener</a> for more information on listening for this event.
-* @type YAHOO.util.CustomEvent
-*/
-/**
-* @event editorClick
-* @param {Event} ev The DOM Event that occured
-* @description Passed through HTML Event. See <a href="YAHOO.util.Element.html#addListener">Element.addListener</a> for more information on listening for this event.
-* @type YAHOO.util.CustomEvent
-*/
-/**
-* @event editorKeyUp
-* @param {Event} ev The DOM Event that occured
-* @description Passed through HTML Event. See <a href="YAHOO.util.Element.html#addListener">Element.addListener</a> for more information on listening for this event.
-* @type YAHOO.util.CustomEvent
-*/
-/**
-* @event editorKeyPress
-* @param {Event} ev The DOM Event that occured
-* @description Passed through HTML Event. See <a href="YAHOO.util.Element.html#addListener">Element.addListener</a> for more information on listening for this event.
-* @type YAHOO.util.CustomEvent
-*/
-/**
-* @event editorKeyDown
-* @param {Event} ev The DOM Event that occured
-* @description Passed through HTML Event. See <a href="YAHOO.util.Element.html#addListener">Element.addListener</a> for more information on listening for this event.
-* @type YAHOO.util.CustomEvent
-*/
-/**
-* @event beforeEditorMouseUp
-* @param {Event} ev The DOM Event that occured
-* @description Fires before editor event, returning false will stop the internal processing.
-* @type YAHOO.util.CustomEvent
-*/
-/**
-* @event beforeEditorMouseDown
-* @param {Event} ev The DOM Event that occured
-* @description Fires before editor event, returning false will stop the internal processing.
-* @type YAHOO.util.CustomEvent
-*/
-/**
-* @event beforeEditorDoubleClick
-* @param {Event} ev The DOM Event that occured
-* @description Fires before editor event, returning false will stop the internal processing.
-* @type YAHOO.util.CustomEvent
-*/
-/**
-* @event beforeEditorClick
-* @param {Event} ev The DOM Event that occured
-* @description Fires before editor event, returning false will stop the internal processing.
-* @type YAHOO.util.CustomEvent
-*/
-/**
-* @event beforeEditorKeyUp
-* @param {Event} ev The DOM Event that occured
-* @description Fires before editor event, returning false will stop the internal processing.
-* @type YAHOO.util.CustomEvent
-*/
-/**
-* @event beforeEditorKeyPress
-* @param {Event} ev The DOM Event that occured
-* @description Fires before editor event, returning false will stop the internal processing.
-* @type YAHOO.util.CustomEvent
-*/
-/**
-* @event beforeEditorKeyDown
-* @param {Event} ev The DOM Event that occured
-* @description Fires before editor event, returning false will stop the internal processing.
-* @type YAHOO.util.CustomEvent
-*/
-
-/**
-* @event editorWindowFocus
-* @description Fires when the iframe is focused. Note, this is window focus event, not an Editor focus event.
-* @type YAHOO.util.CustomEvent
-*/
-/**
-* @event editorWindowBlur
-* @description Fires when the iframe is blurred. Note, this is window blur event, not an Editor blur event.
-* @type YAHOO.util.CustomEvent
-*/
-
-
-/**
- * @description Singleton object used to track the open window objects and panels across the various open editors
- * @class EditorInfo
- * @static
-*/
-YAHOO.widget.EditorInfo = {
-    /**
-    * @private
-    * @property _instances
-    * @description A reference to all editors on the page.
-    * @type Object
-    */
-    _instances: {},
-    /**
-    * @private
-    * @property blankImage
-    * @description A reference to the blankImage url
-    * @type String 
-    */
-    blankImage: '',
-    /**
-    * @private
-    * @property window
-    * @description A reference to the currently open window object in any editor on the page.
-    * @type Object <a href="YAHOO.widget.EditorWindow.html">YAHOO.widget.EditorWindow</a>
-    */
-    window: {},
-    /**
-    * @private
-    * @property panel
-    * @description A reference to the currently open panel in any editor on the page.
-    * @type Object <a href="YAHOO.widget.Overlay.html">YAHOO.widget.Overlay</a>
-    */
-    panel: null,
-    /**
-    * @method getEditorById
-    * @description Returns a reference to the Editor object associated with the given textarea
-    * @param {String/HTMLElement} id The id or reference of the textarea to return the Editor instance of
-    * @return Object <a href="YAHOO.widget.Editor.html">YAHOO.widget.Editor</a>
-    */
-    getEditorById: function(id) {
-        if (!YAHOO.lang.isString(id)) {
-            //Not a string, assume a node Reference
-            id = id.id;
-        }
-        if (this._instances[id]) {
-            return this._instances[id];
-        }
-        return false;
-    },
-    /**
-    * @method saveAll
-    * @description Saves all Editor instances on the page. If a form reference is passed, only Editor's bound to this form will be saved.
-    * @param {HTMLElement} form The form to check if this Editor instance belongs to
-    */
-    saveAll: function(form) {
-        var i, e, items = YAHOO.widget.EditorInfo._instances;
-        if (form) {
-            for (i in items) {
-                if (Lang.hasOwnProperty(items, i)) {
-                    e = items[i];
-                    if (e.get('element').form && (e.get('element').form == form)) {
-                        e.saveHTML();
-                    }
-                }
-            }
-        } else {
-            for (i in items) {
-                if (Lang.hasOwnProperty(items, i)) {
-                    items[i].saveHTML();
-                }
-            }
-        }
-    },
-    /**
-    * @method toString
-    * @description Returns a string representing the EditorInfo.
-    * @return {String}
-    */
-    toString: function() {
-        var len = 0;
-        for (var i in this._instances) {
-            if (Lang.hasOwnProperty(this._instances, i)) {
-                len++;
-            }
-        }
-        return 'Editor Info (' + len + ' registered intance' + ((len > 1) ? 's' : '') + ')';
-    }
-};
-
-
-
-    
-})();
-YAHOO.register("simpleeditor", YAHOO.widget.SimpleEditor, {version: "2.8.0r4", build: "2449"});
diff --git a/koha-tmpl/intranet-tmpl/prog/en/lib/yui/element-delegate/element-delegate-debug.js b/koha-tmpl/intranet-tmpl/prog/en/lib/yui/element-delegate/element-delegate-debug.js
deleted file mode 100644 (file)
index e5b3c61..0000000
+++ /dev/null
@@ -1,141 +0,0 @@
-/*
-Copyright (c) 2009, Yahoo! Inc. All rights reserved.
-Code licensed under the BSD License:
-http://developer.yahoo.net/yui/license.txt
-version: 2.8.0r4
-*/
-/**
- * Augments the Element Utility with a <code>delegate</code> method that 
- * facilitates easy creation of delegated event listeners.  (Note: Using CSS 
- * selectors as the filtering criteria for delegated event listeners requires 
- * inclusion of the Selector Utility.)
- *
- * @module element-delegate
- * @title Element Event Delegation Module
- * @namespace YAHOO.util
- * @requires element, event-delegate
- */
-
-(function () {
-
-       var Event = YAHOO.util.Event,
-               delegates = [],
-               specialTypes = {
-                       mouseenter: true,
-                       mouseleave: true
-               };
-
-       YAHOO.lang.augmentObject(YAHOO.util.Element.prototype, {
-
-           /**
-         * Appends a delegated event listener.  Delegated event listeners 
-                * receive two arguments by default: the DOM event and the element  
-                * specified by the filtering function or CSS selector.
-                * (Note: Using the delegate method requires the element-delegate 
-                * module.  Using CSS selectors as the filtering criteria for delegated 
-                * event listeners requires inclusion of the Selector Utility.)
-            * @method delegate
-            * @param {String} type The name of the event to listen for
-            * @param {Function} fn The handler to call when the event fires
-                * @param {Function|string} filter Function or CSS selector used to 
-                * determine for what element(s) the event listener should be called. 
-                * When a function is specified, the function should return an 
-                * HTML element.  Using a CSS Selector requires the inclusion of the 
-                * CSS Selector Utility.
-            * @param {Any} obj A variable to pass to the handler
-            * @param {Object} scope The object to use for the scope of the handler 
-         * @return {boolean} Returns true if the delegated event listener 
-                * was added successfully
-         * @for Element
-            */
-               delegate: function (type, fn, filter, obj, overrideContext) {
-
-                       if (YAHOO.lang.isString(filter) && !YAHOO.util.Selector) {
-                               YAHOO.log("Using a CSS selector to define the filtering criteria for a delegated listener requires the Selector Utility.", "error", "Element");
-                       return false;
-                       }
-                       
-                       if (!Event._createDelegate) {
-                       YAHOO.log("Using delegate functionality requires the event-delegate module.", "error", "Element");
-                       return false;
-                       }                       
-
-                       var sType = Event._getType(type),
-                               el = this.get("element"),
-                               fnDelegate,
-                               fnMouseDelegate,
-
-                               fnWrapper = function (e) {
-
-                                       return fnDelegate.call(el, e);
-
-                               };
-
-                       if (specialTypes[type]) {
-
-                               if (!Event._createMouseDelegate) {
-                               YAHOO.log("Delegating a " + type + " event requires the event-mouseleave module.", "error", "Element");
-                               return false;                           
-                               }
-
-                               fnMouseDelegate = Event._createMouseDelegate(fn, obj, overrideContext);
-
-                               fnDelegate = Event._createDelegate(function (event, matchedEl, container) {
-
-                                       return fnMouseDelegate.call(matchedEl, event, container);
-
-                               }, filter, obj, overrideContext);
-
-                       }
-                       else {
-                               fnDelegate = Event._createDelegate(fn, filter, obj, overrideContext);
-                       }
-
-
-                       delegates.push([el, sType, fn, fnWrapper]);
-
-                       return this.on(sType, fnWrapper);
-
-               },
-
-
-           /**
-            * Remove a delegated event listener
-            * @method removeDelegate
-            * @param {String} type The name of the event to listen for
-            * @param {Function} fn The function call when the event fires
-         * @return {boolean} Returns true if the unbind was successful, false 
-         *  otherwise.
-         * @for Element
-            */
-               removeDelegate: function (type, fn) {
-
-                       var sType = Event._getType(type),
-                               index = Event._getCacheIndex(delegates, this.get("element"), sType, fn),
-                               returnVal,
-                               cacheItem;
-
-                   if (index >= 0) {
-                       cacheItem = delegates[index];
-                   }
-
-                   if (cacheItem) {
-
-                       returnVal = this.removeListener(cacheItem[1], cacheItem[3]);
-
-                               if (returnVal) {
-                           delete delegates[index][2];
-                           delete delegates[index][3];
-                           delegates.splice(index, 1);
-                               }
-
-                       }
-
-                       return returnVal;
-
-               }
-               
-       });
-
-}());
-YAHOO.register("element-delegate", YAHOO.util.Element, {version: "2.8.0r4", build: "2449"});
diff --git a/koha-tmpl/intranet-tmpl/prog/en/lib/yui/element-delegate/element-delegate-min.js b/koha-tmpl/intranet-tmpl/prog/en/lib/yui/element-delegate/element-delegate-min.js
deleted file mode 100644 (file)
index e745a5e..0000000
+++ /dev/null
@@ -1,7 +0,0 @@
-/*
-Copyright (c) 2009, Yahoo! Inc. All rights reserved.
-Code licensed under the BSD License:
-http://developer.yahoo.net/yui/license.txt
-version: 2.8.0r4
-*/
-(function(){var A=YAHOO.util.Event,B=[],C={mouseenter:true,mouseleave:true};YAHOO.lang.augmentObject(YAHOO.util.Element.prototype,{delegate:function(J,L,F,H,I){if(YAHOO.lang.isString(F)&&!YAHOO.util.Selector){return false;}if(!A._createDelegate){return false;}var E=A._getType(J),G=this.get("element"),M,K,D=function(N){return M.call(G,N);};if(C[J]){if(!A._createMouseDelegate){return false;}K=A._createMouseDelegate(L,H,I);M=A._createDelegate(function(P,O,N){return K.call(O,P,N);},F,H,I);}else{M=A._createDelegate(L,F,H,I);}B.push([G,E,L,D]);return this.on(E,D);},removeDelegate:function(H,G){var I=A._getType(H),E=A._getCacheIndex(B,this.get("element"),I,G),F,D;if(E>=0){D=B[E];}if(D){F=this.removeListener(D[1],D[3]);if(F){delete B[E][2];delete B[E][3];B.splice(E,1);}}return F;}});}());YAHOO.register("element-delegate",YAHOO.util.Element,{version:"2.8.0r4",build:"2449"});
\ No newline at end of file
diff --git a/koha-tmpl/intranet-tmpl/prog/en/lib/yui/element-delegate/element-delegate.js b/koha-tmpl/intranet-tmpl/prog/en/lib/yui/element-delegate/element-delegate.js
deleted file mode 100644 (file)
index 02ed4bd..0000000
+++ /dev/null
@@ -1,138 +0,0 @@
-/*
-Copyright (c) 2009, Yahoo! Inc. All rights reserved.
-Code licensed under the BSD License:
-http://developer.yahoo.net/yui/license.txt
-version: 2.8.0r4
-*/
-/**
- * Augments the Element Utility with a <code>delegate</code> method that 
- * facilitates easy creation of delegated event listeners.  (Note: Using CSS 
- * selectors as the filtering criteria for delegated event listeners requires 
- * inclusion of the Selector Utility.)
- *
- * @module element-delegate
- * @title Element Event Delegation Module
- * @namespace YAHOO.util
- * @requires element, event-delegate
- */
-
-(function () {
-
-       var Event = YAHOO.util.Event,
-               delegates = [],
-               specialTypes = {
-                       mouseenter: true,
-                       mouseleave: true
-               };
-
-       YAHOO.lang.augmentObject(YAHOO.util.Element.prototype, {
-
-           /**
-         * Appends a delegated event listener.  Delegated event listeners 
-                * receive two arguments by default: the DOM event and the element  
-                * specified by the filtering function or CSS selector.
-                * (Note: Using the delegate method requires the element-delegate 
-                * module.  Using CSS selectors as the filtering criteria for delegated 
-                * event listeners requires inclusion of the Selector Utility.)
-            * @method delegate
-            * @param {String} type The name of the event to listen for
-            * @param {Function} fn The handler to call when the event fires
-                * @param {Function|string} filter Function or CSS selector used to 
-                * determine for what element(s) the event listener should be called. 
-                * When a function is specified, the function should return an 
-                * HTML element.  Using a CSS Selector requires the inclusion of the 
-                * CSS Selector Utility.
-            * @param {Any} obj A variable to pass to the handler
-            * @param {Object} scope The object to use for the scope of the handler 
-         * @return {boolean} Returns true if the delegated event listener 
-                * was added successfully
-         * @for Element
-            */
-               delegate: function (type, fn, filter, obj, overrideContext) {
-
-                       if (YAHOO.lang.isString(filter) && !YAHOO.util.Selector) {
-                       return false;
-                       }
-                       
-                       if (!Event._createDelegate) {
-                       return false;
-                       }                       
-
-                       var sType = Event._getType(type),
-                               el = this.get("element"),
-                               fnDelegate,
-                               fnMouseDelegate,
-
-                               fnWrapper = function (e) {
-
-                                       return fnDelegate.call(el, e);
-
-                               };
-
-                       if (specialTypes[type]) {
-
-                               if (!Event._createMouseDelegate) {
-                               return false;                           
-                               }
-
-                               fnMouseDelegate = Event._createMouseDelegate(fn, obj, overrideContext);
-
-                               fnDelegate = Event._createDelegate(function (event, matchedEl, container) {
-
-                                       return fnMouseDelegate.call(matchedEl, event, container);
-
-                               }, filter, obj, overrideContext);
-
-                       }
-                       else {
-                               fnDelegate = Event._createDelegate(fn, filter, obj, overrideContext);
-                       }
-
-
-                       delegates.push([el, sType, fn, fnWrapper]);
-
-                       return this.on(sType, fnWrapper);
-
-               },
-
-
-           /**
-            * Remove a delegated event listener
-            * @method removeDelegate
-            * @param {String} type The name of the event to listen for
-            * @param {Function} fn The function call when the event fires
-         * @return {boolean} Returns true if the unbind was successful, false 
-         *  otherwise.
-         * @for Element
-            */
-               removeDelegate: function (type, fn) {
-
-                       var sType = Event._getType(type),
-                               index = Event._getCacheIndex(delegates, this.get("element"), sType, fn),
-                               returnVal,
-                               cacheItem;
-
-                   if (index >= 0) {
-                       cacheItem = delegates[index];
-                   }
-
-                   if (cacheItem) {
-
-                       returnVal = this.removeListener(cacheItem[1], cacheItem[3]);
-
-                               if (returnVal) {
-                           delete delegates[index][2];
-                           delete delegates[index][3];
-                           delegates.splice(index, 1);
-                               }
-
-                       }
-
-                       return returnVal;
-
-               }
-               
-       });
-
-}());
-YAHOO.register("element-delegate", YAHOO.util.Element, {version: "2.8.0r4", build: "2449"});
diff --git a/koha-tmpl/intranet-tmpl/prog/en/lib/yui/event-delegate/event-delegate-debug.js b/koha-tmpl/intranet-tmpl/prog/en/lib/yui/event-delegate/event-delegate-debug.js
deleted file mode 100644 (file)
index df27eb1..0000000
+++ /dev/null
@@ -1,283 +0,0 @@
-/*
-Copyright (c) 2009, Yahoo! Inc. All rights reserved.
-Code licensed under the BSD License:
-http://developer.yahoo.net/yui/license.txt
-version: 2.8.0r4
-*/
-/**
- * Augments the Event Utility with a <code>delegate</code> method that 
- * facilitates easy creation of delegated event listeners.  (Note: Using CSS 
- * selectors as the filtering criteria for delegated event listeners requires 
- * inclusion of the Selector Utility.)
- *
- * @module event-delegate
- * @title Event Utility Event Delegation Module
- * @namespace YAHOO.util
- * @requires event
- */
-
-(function () {
-
-       var Event = YAHOO.util.Event,
-               Lang = YAHOO.lang,
-               delegates = [],
-
-
-               getMatch = function(el, selector, container) {
-               
-                       var returnVal;
-               
-                       if (!el || el === container) {
-                               returnVal = false;
-                       }
-                       else {
-                               returnVal = YAHOO.util.Selector.test(el, selector) ? el: getMatch(el.parentNode, selector, container);
-                       }
-               
-                       return returnVal;
-               
-               };
-
-
-       Lang.augmentObject(Event, {
-
-               /**
-                * Creates a delegate function used to call event listeners specified 
-                * via the <code>YAHOO.util.Event.delegate</code> method.
-                *
-                * @method _createDelegate
-                *
-                * @param {Function} fn        The method (event listener) to call.
-                * @param {Function|string} filter Function or CSS selector used to 
-                * determine for what element(s) the event listener should be called.           
-                * @param {Object}   obj        An arbitrary object that will be 
-                *                             passed as a parameter to the listener.
-                * @param {Boolean|object}  overrideContext  If true, the value of the 
-                *                                                      obj parameter becomes the execution context
-                *                          of the listener. If an object, this object
-                *                          becomes the execution context.
-                * @return {Function} Function that will call the event listener 
-                * specified by the <code>YAHOO.util.Event.delegate</code> method.
-         * @private
-         * @for Event
-                * @static
-                */
-               _createDelegate: function (fn, filter, obj, overrideContext) {
-
-                       return function (event) {
-
-                               var container = this,
-                                       target = Event.getTarget(event),
-                                       selector = filter,
-
-                                       //      The user might have specified the document object 
-                                       //      as the delegation container, in which case it is not 
-                                       //      nessary to scope the provided CSS selector(s) to the 
-                                       //      delegation container
-                                       bDocument = (container.nodeType === 9),
-
-                                       matchedEl,
-                                       context,
-                                       sID,
-                                       sIDSelector;
-
-
-                               if (Lang.isFunction(filter)) {
-                                       matchedEl = filter(target);
-                               }
-                               else if (Lang.isString(filter)) {
-
-                                       if (!bDocument) {
-
-                                               sID = container.id;
-
-                                               if (!sID) {
-                                                       sID = Event.generateId(container);
-                                               }                                               
-
-                                               //      Scope all selectors to the container
-                                               sIDSelector = ("#" + sID + " ");
-                                               selector = (sIDSelector + filter).replace(/,/gi, ("," + sIDSelector));
-
-                                       }
-
-
-                                       if (YAHOO.util.Selector.test(target, selector)) {
-                                               matchedEl = target;
-                                       }
-                                       else if (YAHOO.util.Selector.test(target, ((selector.replace(/,/gi, " *,")) + " *"))) {
-
-                                               //      The target is a descendant of an element matching 
-                                               //      the selector, so crawl up to find the ancestor that 
-                                               //      matches the selector
-
-                                               matchedEl = getMatch(target, selector, container);
-
-                                       }
-
-                               }
-
-
-                               if (matchedEl) {
-
-                                       //      The default context for delegated listeners is the 
-                                       //      element that matched the filter.
-
-                                       context = matchedEl;
-
-                           if (overrideContext) {
-                               if (overrideContext === true) {
-                                   context = obj;
-                               } else {
-                                   context = overrideContext;
-                               }
-                           }
-
-                                       //      Call the listener passing in the container and the 
-                                       //      element that matched the filter in case the user 
-                                       //      needs those.
-
-                                       return fn.call(context, event, matchedEl, container, obj);
-
-                               }
-
-                       };
-
-               },
-
-
-        /**
-         * Appends a delegated event listener.  Delegated event listeners 
-                * receive three arguments by default: the DOM event, the element  
-                * specified by the filtering function or CSS selector, and the 
-                * container element (the element to which the event listener is 
-                * bound).  (Note: Using the delegate method requires the event-delegate 
-                * module.  Using CSS selectors as the filtering criteria for delegated 
-                * event listeners requires inclusion of the Selector Utility.)
-         *
-         * @method delegate
-         *
-         * @param {String|HTMLElement|Array|NodeList} container An id, an element 
-         *  reference, or a collection of ids and/or elements to assign the 
-         *  listener to.
-         * @param {String}   type     The type of event listener to append
-         * @param {Function} fn        The method the event invokes
-                * @param {Function|string} filter Function or CSS selector used to 
-                * determine for what element(s) the event listener should be called. 
-                * When a function is specified, the function should return an 
-                * HTML element.  Using a CSS Selector requires the inclusion of the 
-                * CSS Selector Utility.
-         * @param {Object}   obj    An arbitrary object that will be 
-         *                             passed as a parameter to the listener
-         * @param {Boolean|object}  overrideContext  If true, the value of the obj parameter becomes
-         *                             the execution context of the listener. If an
-         *                             object, this object becomes the execution
-         *                             context.
-         * @return {Boolean} Returns true if the action was successful or defered,
-         *                   false if one or more of the elements 
-         *                   could not have the listener attached,
-         *                   or if the operation throws an exception.
-         * @static
-         * @for Event
-         */
-               delegate: function (container, type, fn, filter, obj, overrideContext) {
-
-                       var sType = type,
-                               fnMouseDelegate,
-                               fnDelegate;
-
-
-                       if (Lang.isString(filter) && !YAHOO.util.Selector) {
-                               YAHOO.log("Using a CSS selector to define the filtering criteria for a delegated listener requires the Selector Utility.", "error", "Event");
-                       return false;
-                       }
-
-
-                       if (type == "mouseenter" || type == "mouseleave") {
-
-                               if (!Event._createMouseDelegate) {
-                                       YAHOO.log("Delegating a " + type + " event requires the event-mouseenter module.", "error", "Event");
-                               return false;
-                               }
-
-                               //      Look up the real event--either mouseover or mouseout
-                               sType = Event._getType(type);
-
-                               fnMouseDelegate = Event._createMouseDelegate(fn, obj, overrideContext);
-
-                               fnDelegate = Event._createDelegate(function (event, matchedEl, container) {
-
-                                       return fnMouseDelegate.call(matchedEl, event, container);
-
-                               }, filter, obj, overrideContext);
-
-                       }
-                       else {
-
-                               fnDelegate = Event._createDelegate(fn, filter, obj, overrideContext);
-
-                       }
-
-                       delegates.push([container, sType, fn, fnDelegate]);
-                       
-                       return Event.on(container, sType, fnDelegate);
-
-               },
-
-
-        /**
-         * Removes a delegated event listener.
-         *
-         * @method removeDelegate
-         *
-         * @param {String|HTMLElement|Array|NodeList} container An id, an element 
-         *  reference, or a collection of ids and/or elements to remove
-         *  the listener from.
-         * @param {String} type The type of event to remove.
-         * @param {Function} fn The method the event invokes.  If fn is
-         *  undefined, then all event listeners for the type of event are 
-         *  removed.
-         * @return {boolean} Returns true if the unbind was successful, false 
-         *  otherwise.
-         * @static
-         * @for Event
-         */
-               removeDelegate: function (container, type, fn) {
-
-                       var sType = type,
-                               returnVal = false,
-                               index,
-                               cacheItem;
-
-                       //      Look up the real event--either mouseover or mouseout
-                       if (type == "mouseenter" || type == "mouseleave") {
-                               sType = Event._getType(type);
-                       }
-
-                       index = Event._getCacheIndex(delegates, container, sType, fn);
-
-                   if (index >= 0) {
-                       cacheItem = delegates[index];
-                   }
-
-
-                   if (container && cacheItem) {
-
-                       returnVal = Event.removeListener(cacheItem[0], cacheItem[1], cacheItem[3]);
-
-                               if (returnVal) {
-                       delete delegates[index][2];
-                       delete delegates[index][3];
-                       delegates.splice(index, 1);
-                               }               
-               
-                   }
-
-                       return returnVal;
-
-               }
-               
-       });
-
-}());
-YAHOO.register("event-delegate", YAHOO.util.Event, {version: "2.8.0r4", build: "2449"});
diff --git a/koha-tmpl/intranet-tmpl/prog/en/lib/yui/event-delegate/event-delegate-min.js b/koha-tmpl/intranet-tmpl/prog/en/lib/yui/event-delegate/event-delegate-min.js
deleted file mode 100644 (file)
index c20abeb..0000000
+++ /dev/null
@@ -1,7 +0,0 @@
-/*
-Copyright (c) 2009, Yahoo! Inc. All rights reserved.
-Code licensed under the BSD License:
-http://developer.yahoo.net/yui/license.txt
-version: 2.8.0r4
-*/
-(function(){var A=YAHOO.util.Event,C=YAHOO.lang,B=[],D=function(H,E,F){var G;if(!H||H===F){G=false;}else{G=YAHOO.util.Selector.test(H,E)?H:D(H.parentNode,E,F);}return G;};C.augmentObject(A,{_createDelegate:function(F,E,G,H){return function(I){var J=this,N=A.getTarget(I),L=E,P=(J.nodeType===9),Q,K,O,M;if(C.isFunction(E)){Q=E(N);}else{if(C.isString(E)){if(!P){O=J.id;if(!O){O=A.generateId(J);}M=("#"+O+" ");L=(M+E).replace(/,/gi,(","+M));}if(YAHOO.util.Selector.test(N,L)){Q=N;}else{if(YAHOO.util.Selector.test(N,((L.replace(/,/gi," *,"))+" *"))){Q=D(N,L,J);}}}}if(Q){K=Q;if(H){if(H===true){K=G;}else{K=H;}}return F.call(K,I,Q,J,G);}};},delegate:function(F,J,L,G,H,I){var E=J,K,M;if(C.isString(G)&&!YAHOO.util.Selector){return false;}if(J=="mouseenter"||J=="mouseleave"){if(!A._createMouseDelegate){return false;}E=A._getType(J);K=A._createMouseDelegate(L,H,I);M=A._createDelegate(function(P,O,N){return K.call(O,P,N);},G,H,I);}else{M=A._createDelegate(L,G,H,I);}B.push([F,E,L,M]);return A.on(F,E,M);},removeDelegate:function(F,J,I){var K=J,H=false,G,E;if(J=="mouseenter"||J=="mouseleave"){K=A._getType(J);}G=A._getCacheIndex(B,F,K,I);if(G>=0){E=B[G];}if(F&&E){H=A.removeListener(E[0],E[1],E[3]);if(H){delete B[G][2];delete B[G][3];B.splice(G,1);}}return H;}});}());YAHOO.register("event-delegate",YAHOO.util.Event,{version:"2.8.0r4",build:"2449"});
\ No newline at end of file
diff --git a/koha-tmpl/intranet-tmpl/prog/en/lib/yui/event-delegate/event-delegate.js b/koha-tmpl/intranet-tmpl/prog/en/lib/yui/event-delegate/event-delegate.js
deleted file mode 100644 (file)
index 12171d0..0000000
+++ /dev/null
@@ -1,281 +0,0 @@
-/*
-Copyright (c) 2009, Yahoo! Inc. All rights reserved.
-Code licensed under the BSD License:
-http://developer.yahoo.net/yui/license.txt
-version: 2.8.0r4
-*/
-/**
- * Augments the Event Utility with a <code>delegate</code> method that 
- * facilitates easy creation of delegated event listeners.  (Note: Using CSS 
- * selectors as the filtering criteria for delegated event listeners requires 
- * inclusion of the Selector Utility.)
- *
- * @module event-delegate
- * @title Event Utility Event Delegation Module
- * @namespace YAHOO.util
- * @requires event
- */
-
-(function () {
-
-       var Event = YAHOO.util.Event,
-               Lang = YAHOO.lang,
-               delegates = [],
-
-
-               getMatch = function(el, selector, container) {
-               
-                       var returnVal;
-               
-                       if (!el || el === container) {
-                               returnVal = false;
-                       }
-                       else {
-                               returnVal = YAHOO.util.Selector.test(el, selector) ? el: getMatch(el.parentNode, selector, container);
-                       }
-               
-                       return returnVal;
-               
-               };
-
-
-       Lang.augmentObject(Event, {
-
-               /**
-                * Creates a delegate function used to call event listeners specified 
-                * via the <code>YAHOO.util.Event.delegate</code> method.
-                *
-                * @method _createDelegate
-                *
-                * @param {Function} fn        The method (event listener) to call.
-                * @param {Function|string} filter Function or CSS selector used to 
-                * determine for what element(s) the event listener should be called.           
-                * @param {Object}   obj        An arbitrary object that will be 
-                *                             passed as a parameter to the listener.
-                * @param {Boolean|object}  overrideContext  If true, the value of the 
-                *                                                      obj parameter becomes the execution context
-                *                          of the listener. If an object, this object
-                *                          becomes the execution context.
-                * @return {Function} Function that will call the event listener 
-                * specified by the <code>YAHOO.util.Event.delegate</code> method.
-         * @private
-         * @for Event
-                * @static
-                */
-               _createDelegate: function (fn, filter, obj, overrideContext) {
-
-                       return function (event) {
-
-                               var container = this,
-                                       target = Event.getTarget(event),
-                                       selector = filter,
-
-                                       //      The user might have specified the document object 
-                                       //      as the delegation container, in which case it is not 
-                                       //      nessary to scope the provided CSS selector(s) to the 
-                                       //      delegation container
-                                       bDocument = (container.nodeType === 9),
-
-                                       matchedEl,
-                                       context,
-                                       sID,
-                                       sIDSelector;
-
-
-                               if (Lang.isFunction(filter)) {
-                                       matchedEl = filter(target);
-                               }
-                               else if (Lang.isString(filter)) {
-
-                                       if (!bDocument) {
-
-                                               sID = container.id;
-
-                                               if (!sID) {
-                                                       sID = Event.generateId(container);
-                                               }                                               
-
-                                               //      Scope all selectors to the container
-                                               sIDSelector = ("#" + sID + " ");
-                                               selector = (sIDSelector + filter).replace(/,/gi, ("," + sIDSelector));
-
-                                       }
-
-
-                                       if (YAHOO.util.Selector.test(target, selector)) {
-                                               matchedEl = target;
-                                       }
-                                       else if (YAHOO.util.Selector.test(target, ((selector.replace(/,/gi, " *,")) + " *"))) {
-
-                                               //      The target is a descendant of an element matching 
-                                               //      the selector, so crawl up to find the ancestor that 
-                                               //      matches the selector
-
-                                               matchedEl = getMatch(target, selector, container);
-
-                                       }
-
-                               }
-
-
-                               if (matchedEl) {
-
-                                       //      The default context for delegated listeners is the 
-                                       //      element that matched the filter.
-
-                                       context = matchedEl;
-
-                           if (overrideContext) {
-                               if (overrideContext === true) {
-                                   context = obj;
-                               } else {
-                                   context = overrideContext;
-                               }
-                           }
-
-                                       //      Call the listener passing in the container and the 
-                                       //      element that matched the filter in case the user 
-                                       //      needs those.
-
-                                       return fn.call(context, event, matchedEl, container, obj);
-
-                               }
-
-                       };
-
-               },
-
-
-        /**
-         * Appends a delegated event listener.  Delegated event listeners 
-                * receive three arguments by default: the DOM event, the element  
-                * specified by the filtering function or CSS selector, and the 
-                * container element (the element to which the event listener is 
-                * bound).  (Note: Using the delegate method requires the event-delegate 
-                * module.  Using CSS selectors as the filtering criteria for delegated 
-                * event listeners requires inclusion of the Selector Utility.)
-         *
-         * @method delegate
-         *
-         * @param {String|HTMLElement|Array|NodeList} container An id, an element 
-         *  reference, or a collection of ids and/or elements to assign the 
-         *  listener to.
-         * @param {String}   type     The type of event listener to append
-         * @param {Function} fn        The method the event invokes
-                * @param {Function|string} filter Function or CSS selector used to 
-                * determine for what element(s) the event listener should be called. 
-                * When a function is specified, the function should return an 
-                * HTML element.  Using a CSS Selector requires the inclusion of the 
-                * CSS Selector Utility.
-         * @param {Object}   obj    An arbitrary object that will be 
-         *                             passed as a parameter to the listener
-         * @param {Boolean|object}  overrideContext  If true, the value of the obj parameter becomes
-         *                             the execution context of the listener. If an
-         *                             object, this object becomes the execution
-         *                             context.
-         * @return {Boolean} Returns true if the action was successful or defered,
-         *                   false if one or more of the elements 
-         *                   could not have the listener attached,
-         *                   or if the operation throws an exception.
-         * @static
-         * @for Event
-         */
-               delegate: function (container, type, fn, filter, obj, overrideContext) {
-
-                       var sType = type,
-                               fnMouseDelegate,
-                               fnDelegate;
-
-
-                       if (Lang.isString(filter) && !YAHOO.util.Selector) {
-                       return false;
-                       }
-
-
-                       if (type == "mouseenter" || type == "mouseleave") {
-
-                               if (!Event._createMouseDelegate) {
-                               return false;
-                               }
-
-                               //      Look up the real event--either mouseover or mouseout
-                               sType = Event._getType(type);
-
-                               fnMouseDelegate = Event._createMouseDelegate(fn, obj, overrideContext);
-
-                               fnDelegate = Event._createDelegate(function (event, matchedEl, container) {
-
-                                       return fnMouseDelegate.call(matchedEl, event, container);
-
-                               }, filter, obj, overrideContext);
-
-                       }
-                       else {
-
-                               fnDelegate = Event._createDelegate(fn, filter, obj, overrideContext);
-
-                       }
-
-                       delegates.push([container, sType, fn, fnDelegate]);
-                       
-                       return Event.on(container, sType, fnDelegate);
-
-               },
-
-
-        /**
-         * Removes a delegated event listener.
-         *
-         * @method removeDelegate
-         *
-         * @param {String|HTMLElement|Array|NodeList} container An id, an element 
-         *  reference, or a collection of ids and/or elements to remove
-         *  the listener from.
-         * @param {String} type The type of event to remove.
-         * @param {Function} fn The method the event invokes.  If fn is
-         *  undefined, then all event listeners for the type of event are 
-         *  removed.
-         * @return {boolean} Returns true if the unbind was successful, false 
-         *  otherwise.
-         * @static
-         * @for Event
-         */
-               removeDelegate: function (container, type, fn) {
-
-                       var sType = type,
-                               returnVal = false,
-                               index,
-                               cacheItem;
-
-                       //      Look up the real event--either mouseover or mouseout
-                       if (type == "mouseenter" || type == "mouseleave") {
-                               sType = Event._getType(type);
-                       }
-
-                       index = Event._getCacheIndex(delegates, container, sType, fn);
-
-                   if (index >= 0) {
-                       cacheItem = delegates[index];
-                   }
-
-
-                   if (container && cacheItem) {
-
-                       returnVal = Event.removeListener(cacheItem[0], cacheItem[1], cacheItem[3]);
-
-                               if (returnVal) {
-                       delete delegates[index][2];
-                       delete delegates[index][3];
-                       delegates.splice(index, 1);
-                               }               
-               
-                   }
-
-                       return returnVal;
-
-               }
-               
-       });
-
-}());
-YAHOO.register("event-delegate", YAHOO.util.Event, {version: "2.8.0r4", build: "2449"});
diff --git a/koha-tmpl/intranet-tmpl/prog/en/lib/yui/event-mouseenter/event-mouseenter-debug.js b/koha-tmpl/intranet-tmpl/prog/en/lib/yui/event-mouseenter/event-mouseenter-debug.js
deleted file mode 100644 (file)
index e6d5883..0000000
+++ /dev/null
@@ -1,219 +0,0 @@
-/*
-Copyright (c) 2009, Yahoo! Inc. All rights reserved.
-Code licensed under the BSD License:
-http://developer.yahoo.net/yui/license.txt
-version: 2.8.0r4
-*/
-/**
- * Augments the Event Utility with support for the mouseenter and mouseleave 
- * events:  A mouseenter event fires the first time the mouse enters an 
- * element; a mouseleave event first the first time the mouse leaves an 
- * element.
- * 
- * @module event-mouseenter
- * @title Event Utility mouseenter and mouseout Module
- * @namespace YAHOO.util
- * @requires event
- */
-
-(function () {
-
-       var Event = YAHOO.util.Event,
-               Lang = YAHOO.lang,
-
-               addListener = Event.addListener,
-               removeListener = Event.removeListener,
-               getListeners = Event.getListeners,
-
-               delegates = [],
-               
-               specialTypes = {
-                       mouseenter: "mouseover",
-                       mouseleave: "mouseout"
-               }, 
-
-               remove = function(el, type, fn) {
-
-                       var index = Event._getCacheIndex(delegates, el, type, fn),
-                               cacheItem,
-                               returnVal;
-
-                   if (index >= 0) {
-                       cacheItem = delegates[index];
-                   }
-
-                   if (el && cacheItem) {
-
-                               //      removeListener will translate the value of type                         
-                       returnVal = removeListener.call(Event, cacheItem[0], type, cacheItem[3]);
-               
-                               if (returnVal) {
-                       delete delegates[index][2];
-                       delete delegates[index][3];
-                       delegates.splice(index, 1);
-                               }
-               
-                   }
-
-                       return returnVal;
-
-               };              
-
-
-       Lang.augmentObject(Event._specialTypes, specialTypes); 
-
-       Lang.augmentObject(Event, {
-
-               /**
-                * Creates a delegate function used to call mouseover and mouseleave 
-                * event listeners specified via the 
-                * <code>YAHOO.util.Event.addListener</code> 
-                * or <code>YAHOO.util.Event.on</code> method.
-                *
-                * @method _createMouseDelegate
-                *
-                * @param {Function} fn        The method (event listener) to call
-                * @param {Object}   obj    An arbitrary object that will be 
-                *                             passed as a parameter to the listener
-                * @param {Boolean|object}  overrideContext  If true, the value of the 
-                *                                                      obj parameter becomes the execution context
-                *                          of the listener. If an object, this object
-                *                          becomes the execution context. 
-                * @return {Function} Function that will call the event listener 
-                * specified by either the <code>YAHOO.util.Event.addListener</code> 
-                * or <code>YAHOO.util.Event.on</code> method.
-            * @private
-                * @static
-            * @for Event
-                */
-               _createMouseDelegate: function (fn, obj, overrideContext) {
-
-                       return function (event, container) {
-
-                               var el = this,
-                                       relatedTarget = Event.getRelatedTarget(event),
-                                       context,
-                                       args;
-
-                               if (el != relatedTarget && !YAHOO.util.Dom.isAncestor(el, relatedTarget)) {
-
-                                       context = el;
-
-                               if (overrideContext) {
-                                   if (overrideContext === true) {
-                                       context = obj;
-                                   } else {
-                                       context = overrideContext;
-                                   }
-                               }
-
-                                       //      The default args passed back to a mouseenter or 
-                                       //      mouseleave listener are: the event, the element 
-                                       //      to which the listener is bound, and any object the  
-                                       //      user passed when subscribing
-
-                                       args = [event, el, obj];
-
-                                       //      Add the delegation container as an argument when 
-                                       //      delegating mouseenter and mouseleave
-
-                                       if (container) {
-                                               args.splice(2, 0, container);
-                                       }
-
-                                       return fn.apply(context, args);
-
-                               }
-
-                       };
-
-               },
-               
-               addListener: function (el, type, fn, obj, overrideContext) {
-
-                       var fnDelegate,
-                               returnVal;
-
-                       if (specialTypes[type]) {
-
-                               fnDelegate = Event._createMouseDelegate(fn, obj, overrideContext);
-                               
-                               fnDelegate.mouseDelegate = true;
-
-                               delegates.push([el, type, fn, fnDelegate]);
-
-                               //      addListener will translate the value of type
-                               returnVal = addListener.call(Event, el, type, fnDelegate);
-
-                       }
-                       else {
-                               returnVal = addListener.apply(Event, arguments);
-                       }
-
-                       return returnVal;
-
-               },
-               
-               removeListener: function (el, type, fn) {
-
-                       var returnVal;
-
-                       if (specialTypes[type]) {
-                               returnVal = remove.apply(Event, arguments);
-                       }
-                       else {
-                               returnVal = removeListener.apply(Event, arguments);
-                       }
-
-                       return returnVal;
-
-               },
-               
-               getListeners: function (el, type) {
-
-                       //      If the user specified the type as mouseover or mouseout, 
-                       //      need to filter out those used by mouseenter and mouseleave.
-                       //      If the user specified the type as mouseenter or mouseleave, 
-                       //      need to filter out the true mouseover and mouseout listeners.
-
-                       var listeners = [],
-                               elListeners,
-                               bMouseOverOrOut = (type === "mouseover" || type === "mouseout"),
-                               bMouseDelegate,
-                               i,
-                               l;
-                       
-                       if (type && (bMouseOverOrOut || specialTypes[type])) {
-                               
-                               elListeners = getListeners.call(Event, el, this._getType(type));
-
-                   if (elListeners) {
-
-                       for (i=elListeners.length-1; i>-1; i--) {
-
-                           l = elListeners[i];
-                                               bMouseDelegate = l.fn.mouseDelegate;
-
-                                               if ((specialTypes[type] && bMouseDelegate) || (bMouseOverOrOut && !bMouseDelegate)) {
-                                                       listeners.push(l);
-                                               }
-
-                       }
-
-                   }
-                               
-                       }
-                       else {
-                               listeners = getListeners.apply(Event, arguments);
-                       }
-
-            return (listeners && listeners.length) ? listeners : null;
-                       
-               }
-               
-       }, true);
-       
-       Event.on = Event.addListener;
-
-}());
-YAHOO.register("event-mouseenter", YAHOO.util.Event, {version: "2.8.0r4", build: "2449"});
diff --git a/koha-tmpl/intranet-tmpl/prog/en/lib/yui/event-mouseenter/event-mouseenter-min.js b/koha-tmpl/intranet-tmpl/prog/en/lib/yui/event-mouseenter/event-mouseenter-min.js
deleted file mode 100644 (file)
index 768157f..0000000
+++ /dev/null
@@ -1,7 +0,0 @@
-/*
-Copyright (c) 2009, Yahoo! Inc. All rights reserved.
-Code licensed under the BSD License:
-http://developer.yahoo.net/yui/license.txt
-version: 2.8.0r4
-*/
-(function(){var B=YAHOO.util.Event,G=YAHOO.lang,E=B.addListener,F=B.removeListener,C=B.getListeners,D=[],H={mouseenter:"mouseover",mouseleave:"mouseout"},A=function(N,M,L){var J=B._getCacheIndex(D,N,M,L),I,K;if(J>=0){I=D[J];}if(N&&I){K=F.call(B,I[0],M,I[3]);if(K){delete D[J][2];delete D[J][3];D.splice(J,1);}}return K;};G.augmentObject(B._specialTypes,H);G.augmentObject(B,{_createMouseDelegate:function(I,J,K){return function(Q,M){var P=this,L=B.getRelatedTarget(Q),O,N;if(P!=L&&!YAHOO.util.Dom.isAncestor(P,L)){O=P;if(K){if(K===true){O=J;}else{O=K;}}N=[Q,P,J];if(M){N.splice(2,0,M);}return I.apply(O,N);}};},addListener:function(M,L,K,N,O){var I,J;if(H[L]){I=B._createMouseDelegate(K,N,O);I.mouseDelegate=true;D.push([M,L,K,I]);J=E.call(B,M,L,I);}else{J=E.apply(B,arguments);}return J;},removeListener:function(L,K,J){var I;if(H[K]){I=A.apply(B,arguments);}else{I=F.apply(B,arguments);}return I;},getListeners:function(N,M){var L=[],P,K=(M==="mouseover"||M==="mouseout"),O,J,I;if(M&&(K||H[M])){P=C.call(B,N,this._getType(M));if(P){for(J=P.length-1;J>-1;J--){I=P[J];O=I.fn.mouseDelegate;if((H[M]&&O)||(K&&!O)){L.push(I);}}}}else{L=C.apply(B,arguments);}return(L&&L.length)?L:null;}},true);B.on=B.addListener;}());YAHOO.register("event-mouseenter",YAHOO.util.Event,{version:"2.8.0r4",build:"2449"});
\ No newline at end of file
diff --git a/koha-tmpl/intranet-tmpl/prog/en/lib/yui/event-mouseenter/event-mouseenter.js b/koha-tmpl/intranet-tmpl/prog/en/lib/yui/event-mouseenter/event-mouseenter.js
deleted file mode 100644 (file)
index e6d5883..0000000
+++ /dev/null
@@ -1,219 +0,0 @@
-/*
-Copyright (c) 2009, Yahoo! Inc. All rights reserved.
-Code licensed under the BSD License:
-http://developer.yahoo.net/yui/license.txt
-version: 2.8.0r4
-*/
-/**
- * Augments the Event Utility with support for the mouseenter and mouseleave 
- * events:  A mouseenter event fires the first time the mouse enters an 
- * element; a mouseleave event first the first time the mouse leaves an 
- * element.
- * 
- * @module event-mouseenter
- * @title Event Utility mouseenter and mouseout Module
- * @namespace YAHOO.util
- * @requires event
- */
-
-(function () {
-
-       var Event = YAHOO.util.Event,
-               Lang = YAHOO.lang,
-
-               addListener = Event.addListener,
-               removeListener = Event.removeListener,
-               getListeners = Event.getListeners,
-
-               delegates = [],
-               
-               specialTypes = {
-                       mouseenter: "mouseover",
-                       mouseleave: "mouseout"
-               }, 
-
-               remove = function(el, type, fn) {
-
-                       var index = Event._getCacheIndex(delegates, el, type, fn),
-                               cacheItem,
-                               returnVal;
-
-                   if (index >= 0) {
-                       cacheItem = delegates[index];
-                   }
-
-                   if (el && cacheItem) {
-
-                               //      removeListener will translate the value of type                         
-                       returnVal = removeListener.call(Event, cacheItem[0], type, cacheItem[3]);
-               
-                               if (returnVal) {
-                       delete delegates[index][2];
-                       delete delegates[index][3];
-                       delegates.splice(index, 1);
-                               }
-               
-                   }
-
-                       return returnVal;
-
-               };              
-
-
-       Lang.augmentObject(Event._specialTypes, specialTypes); 
-
-       Lang.augmentObject(Event, {
-
-               /**
-                * Creates a delegate function used to call mouseover and mouseleave 
-                * event listeners specified via the 
-                * <code>YAHOO.util.Event.addListener</code> 
-                * or <code>YAHOO.util.Event.on</code> method.
-                *
-                * @method _createMouseDelegate
-                *
-                * @param {Function} fn        The method (event listener) to call
-                * @param {Object}   obj    An arbitrary object that will be 
-                *                             passed as a parameter to the listener
-                * @param {Boolean|object}  overrideContext  If true, the value of the 
-                *                                                      obj parameter becomes the execution context
-                *                          of the listener. If an object, this object
-                *                          becomes the execution context. 
-                * @return {Function} Function that will call the event listener 
-                * specified by either the <code>YAHOO.util.Event.addListener</code> 
-                * or <code>YAHOO.util.Event.on</code> method.
-            * @private
-                * @static
-            * @for Event
-                */
-               _createMouseDelegate: function (fn, obj, overrideContext) {
-
-                       return function (event, container) {
-
-                               var el = this,
-                                       relatedTarget = Event.getRelatedTarget(event),
-                                       context,
-                                       args;
-
-                               if (el != relatedTarget && !YAHOO.util.Dom.isAncestor(el, relatedTarget)) {
-
-                                       context = el;
-
-                               if (overrideContext) {
-                                   if (overrideContext === true) {
-                                       context = obj;
-                                   } else {
-                                       context = overrideContext;
-                                   }
-                               }
-
-                                       //      The default args passed back to a mouseenter or 
-                                       //      mouseleave listener are: the event, the element 
-                                       //      to which the listener is bound, and any object the  
-                                       //      user passed when subscribing
-
-                                       args = [event, el, obj];
-
-                                       //      Add the delegation container as an argument when 
-                                       //      delegating mouseenter and mouseleave
-
-                                       if (container) {
-                                               args.splice(2, 0, container);
-                                       }
-
-                                       return fn.apply(context, args);
-
-                               }
-
-                       };
-
-               },
-               
-               addListener: function (el, type, fn, obj, overrideContext) {
-
-                       var fnDelegate,
-                               returnVal;
-
-                       if (specialTypes[type]) {
-
-                               fnDelegate = Event._createMouseDelegate(fn, obj, overrideContext);
-                               
-                               fnDelegate.mouseDelegate = true;
-
-                               delegates.push([el, type, fn, fnDelegate]);
-
-                               //      addListener will translate the value of type
-                               returnVal = addListener.call(Event, el, type, fnDelegate);
-
-                       }
-                       else {
-                               returnVal = addListener.apply(Event, arguments);
-                       }
-
-                       return returnVal;
-
-               },
-               
-               removeListener: function (el, type, fn) {
-
-                       var returnVal;
-
-                       if (specialTypes[type]) {
-                               returnVal = remove.apply(Event, arguments);
-                       }
-                       else {
-                               returnVal = removeListener.apply(Event, arguments);
-                       }
-
-                       return returnVal;
-
-               },
-               
-               getListeners: function (el, type) {
-
-                       //      If the user specified the type as mouseover or mouseout, 
-                       //      need to filter out those used by mouseenter and mouseleave.
-                       //      If the user specified the type as mouseenter or mouseleave, 
-                       //      need to filter out the true mouseover and mouseout listeners.
-
-                       var listeners = [],
-                               elListeners,
-                               bMouseOverOrOut = (type === "mouseover" || type === "mouseout"),
-                               bMouseDelegate,
-                               i,
-                               l;
-                       
-                       if (type && (bMouseOverOrOut || specialTypes[type])) {
-                               
-                               elListeners = getListeners.call(Event, el, this._getType(type));
-
-                   if (elListeners) {
-
-                       for (i=elListeners.length-1; i>-1; i--) {
-
-                           l = elListeners[i];
-                                               bMouseDelegate = l.fn.mouseDelegate;
-
-                                               if ((specialTypes[type] && bMouseDelegate) || (bMouseOverOrOut && !bMouseDelegate)) {
-                                                       listeners.push(l);
-                                               }
-
-                       }
-
-                   }
-                               
-                       }
-                       else {
-                               listeners = getListeners.apply(Event, arguments);
-                       }
-
-            return (listeners && listeners.length) ? listeners : null;
-                       
-               }
-               
-       }, true);
-       
-       Event.on = Event.addListener;
-
-}());
-YAHOO.register("event-mouseenter", YAHOO.util.Event, {version: "2.8.0r4", build: "2449"});
diff --git a/koha-tmpl/intranet-tmpl/prog/en/lib/yui/event-simulate/event-simulate-debug.js b/koha-tmpl/intranet-tmpl/prog/en/lib/yui/event-simulate/event-simulate-debug.js
deleted file mode 100644 (file)
index dd18b0a..0000000
+++ /dev/null
@@ -1,622 +0,0 @@
-/*
-Copyright (c) 2009, Yahoo! Inc. All rights reserved.
-Code licensed under the BSD License:
-http://developer.yahoo.net/yui/license.txt
-version: 2.8.0r4
-*/
-
-/**
- * DOM event simulation utility
- * @module event-simulate
- * @namespace YAHOO.util
- * @requires yahoo,dom,event
- */
-
-/**
- * The UserAction object provides functions that simulate events occurring in
- * the browser. Since these are simulated events, they do not behave exactly
- * as regular, user-initiated events do, but can be used to test simple
- * user interactions safely.
- *
- * @namespace YAHOO.util
- * @class UserAction
- * @static
- */
-YAHOO.util.UserAction = {
-
-    //--------------------------------------------------------------------------
-    // Generic event methods
-    //--------------------------------------------------------------------------
-
-    /**
-     * Simulates a key event using the given event information to populate
-     * the generated event object. This method does browser-equalizing
-     * calculations to account for differences in the DOM and IE event models
-     * as well as different browser quirks. Note: keydown causes Safari 2.x to
-     * crash.
-     * @method simulateKeyEvent
-     * @private
-     * @static
-     * @param {HTMLElement} target The target of the given event.
-     * @param {String} type The type of event to fire. This can be any one of
-     *      the following: keyup, keydown, and keypress.
-     * @param {Boolean} bubbles (Optional) Indicates if the event can be
-     *      bubbled up. DOM Level 3 specifies that all key events bubble by
-     *      default. The default is true.
-     * @param {Boolean} cancelable (Optional) Indicates if the event can be
-     *      canceled using preventDefault(). DOM Level 3 specifies that all
-     *      key events can be cancelled. The default 
-     *      is true.
-     * @param {Window} view (Optional) The view containing the target. This is
-     *      typically the window object. The default is window.
-     * @param {Boolean} ctrlKey (Optional) Indicates if one of the CTRL keys
-     *      is pressed while the event is firing. The default is false.
-     * @param {Boolean} altKey (Optional) Indicates if one of the ALT keys
-     *      is pressed while the event is firing. The default is false.
-     * @param {Boolean} shiftKey (Optional) Indicates if one of the SHIFT keys
-     *      is pressed while the event is firing. The default is false.
-     * @param {Boolean} metaKey (Optional) Indicates if one of the META keys
-     *      is pressed while the event is firing. The default is false.
-     * @param {int} keyCode (Optional) The code for the key that is in use. 
-     *      The default is 0.
-     * @param {int} charCode (Optional) The Unicode code for the character
-     *      associated with the key being used. The default is 0.
-     */
-    simulateKeyEvent : function (target /*:HTMLElement*/, type /*:String*/, 
-                                 bubbles /*:Boolean*/,  cancelable /*:Boolean*/,    
-                                 view /*:Window*/,
-                                 ctrlKey /*:Boolean*/,    altKey /*:Boolean*/, 
-                                 shiftKey /*:Boolean*/,   metaKey /*:Boolean*/, 
-                                 keyCode /*:int*/,        charCode /*:int*/) /*:Void*/                             
-    {
-        //check target
-        target = YAHOO.util.Dom.get(target);        
-        if (!target){
-            throw new Error("simulateKeyEvent(): Invalid target.");
-        }
-        
-        //check event type
-        if (YAHOO.lang.isString(type)){
-            type = type.toLowerCase();
-            switch(type){
-                case "keyup":
-                case "keydown":
-                case "keypress":
-                    break;
-                case "textevent": //DOM Level 3
-                    type = "keypress";
-                    break;
-                    // @TODO was the fallthrough intentional, if so throw error
-                default:
-                    throw new Error("simulateKeyEvent(): Event type '" + type + "' not supported.");
-            }
-        } else {
-            throw new Error("simulateKeyEvent(): Event type must be a string.");
-        }
-        
-        //setup default values
-        if (!YAHOO.lang.isBoolean(bubbles)){
-            bubbles = true; //all key events bubble
-        }
-        if (!YAHOO.lang.isBoolean(cancelable)){
-            cancelable = true; //all key events can be cancelled
-        }
-        if (!YAHOO.lang.isObject(view)){
-            view = window; //view is typically window
-        }
-        if (!YAHOO.lang.isBoolean(ctrlKey)){
-            ctrlKey = false;
-        }
-        if (!YAHOO.lang.isBoolean(altKey)){
-            altKey = false;
-        }
-        if (!YAHOO.lang.isBoolean(shiftKey)){
-            shiftKey = false;
-        }
-        if (!YAHOO.lang.isBoolean(metaKey)){
-            metaKey = false;
-        }
-        if (!YAHOO.lang.isNumber(keyCode)){
-            keyCode = 0;
-        }
-        if (!YAHOO.lang.isNumber(charCode)){
-            charCode = 0; 
-        }
-
-        //try to create a mouse event
-        var customEvent /*:MouseEvent*/ = null;
-            
-        //check for DOM-compliant browsers first
-        if (YAHOO.lang.isFunction(document.createEvent)){
-        
-            try {
-                
-                //try to create key event
-                customEvent = document.createEvent("KeyEvents");
-                
-                /*
-                 * Interesting problem: Firefox implemented a non-standard
-                 * version of initKeyEvent() based on DOM Level 2 specs.
-                 * Key event was removed from DOM Level 2 and re-introduced
-                 * in DOM Level 3 with a different interface. Firefox is the
-                 * only browser with any implementation of Key Events, so for
-                 * now, assume it's Firefox if the above line doesn't error.
-                 */
-                //TODO: Decipher between Firefox's implementation and a correct one.
-                customEvent.initKeyEvent(type, bubbles, cancelable, view, ctrlKey,
-                    altKey, shiftKey, metaKey, keyCode, charCode);       
-                
-            } catch (ex /*:Error*/){
-
-                /*
-                 * If it got here, that means key events aren't officially supported. 
-                 * Safari/WebKit is a real problem now. WebKit 522 won't let you
-                 * set keyCode, charCode, or other properties if you use a
-                 * UIEvent, so we first must try to create a generic event. The
-                 * fun part is that this will throw an error on Safari 2.x. The
-                 * end result is that we need another try...catch statement just to
-                 * deal with this mess.
-                 */
-                try {
-
-                    //try to create generic event - will fail in Safari 2.x
-                    customEvent = document.createEvent("Events");
-
-                } catch (uierror /*:Error*/){
-
-                    //the above failed, so create a UIEvent for Safari 2.x
-                    customEvent = document.createEvent("UIEvents");
-
-                } finally {
-
-                    customEvent.initEvent(type, bubbles, cancelable);
-    
-                    //initialize
-                    customEvent.view = view;
-                    customEvent.altKey = altKey;
-                    customEvent.ctrlKey = ctrlKey;
-                    customEvent.shiftKey = shiftKey;
-                    customEvent.metaKey = metaKey;
-                    customEvent.keyCode = keyCode;
-                    customEvent.charCode = charCode;
-          
-                }          
-             
-            }
-            
-            //fire the event
-            target.dispatchEvent(customEvent);
-
-        } else if (YAHOO.lang.isObject(document.createEventObject)){ //IE
-        
-            //create an IE event object
-            customEvent = document.createEventObject();
-            
-            //assign available properties
-            customEvent.bubbles = bubbles;
-            customEvent.cancelable = cancelable;
-            customEvent.view = view;
-            customEvent.ctrlKey = ctrlKey;
-            customEvent.altKey = altKey;
-            customEvent.shiftKey = shiftKey;
-            customEvent.metaKey = metaKey;
-            
-            /*
-             * IE doesn't support charCode explicitly. CharCode should
-             * take precedence over any keyCode value for accurate
-             * representation.
-             */
-            customEvent.keyCode = (charCode > 0) ? charCode : keyCode;
-            
-            //fire the event
-            target.fireEvent("on" + type, customEvent);  
-                    
-        } else {
-            throw new Error("simulateKeyEvent(): No event simulation framework present.");
-        }
-    },
-
-    /**
-     * Simulates a mouse event using the given event information to populate
-     * the generated event object. This method does browser-equalizing
-     * calculations to account for differences in the DOM and IE event models
-     * as well as different browser quirks.
-     * @method simulateMouseEvent
-     * @private
-     * @static
-     * @param {HTMLElement} target The target of the given event.
-     * @param {String} type The type of event to fire. This can be any one of
-     *      the following: click, dblclick, mousedown, mouseup, mouseout,
-     *      mouseover, and mousemove.
-     * @param {Boolean} bubbles (Optional) Indicates if the event can be
-     *      bubbled up. DOM Level 2 specifies that all mouse events bubble by
-     *      default. The default is true.
-     * @param {Boolean} cancelable (Optional) Indicates if the event can be
-     *      canceled using preventDefault(). DOM Level 2 specifies that all
-     *      mouse events except mousemove can be cancelled. The default 
-     *      is true for all events except mousemove, for which the default 
-     *      is false.
-     * @param {Window} view (Optional) The view containing the target. This is
-     *      typically the window object. The default is window.
-     * @param {int} detail (Optional) The number of times the mouse button has
-     *      been used. The default value is 1.
-     * @param {int} screenX (Optional) The x-coordinate on the screen at which
-     *      point the event occured. The default is 0.
-     * @param {int} screenY (Optional) The y-coordinate on the screen at which
-     *      point the event occured. The default is 0.
-     * @param {int} clientX (Optional) The x-coordinate on the client at which
-     *      point the event occured. The default is 0.
-     * @param {int} clientY (Optional) The y-coordinate on the client at which
-     *      point the event occured. The default is 0.
-     * @param {Boolean} ctrlKey (Optional) Indicates if one of the CTRL keys
-     *      is pressed while the event is firing. The default is false.
-     * @param {Boolean} altKey (Optional) Indicates if one of the ALT keys
-     *      is pressed while the event is firing. The default is false.
-     * @param {Boolean} shiftKey (Optional) Indicates if one of the SHIFT keys
-     *      is pressed while the event is firing. The default is false.
-     * @param {Boolean} metaKey (Optional) Indicates if one of the META keys
-     *      is pressed while the event is firing. The default is false.
-     * @param {int} button (Optional) The button being pressed while the event
-     *      is executing. The value should be 0 for the primary mouse button
-     *      (typically the left button), 1 for the terciary mouse button
-     *      (typically the middle button), and 2 for the secondary mouse button
-     *      (typically the right button). The default is 0.
-     * @param {HTMLElement} relatedTarget (Optional) For mouseout events,
-     *      this is the element that the mouse has moved to. For mouseover
-     *      events, this is the element that the mouse has moved from. This
-     *      argument is ignored for all other events. The default is null.
-     */
-    simulateMouseEvent : function (target /*:HTMLElement*/, type /*:String*/, 
-                                   bubbles /*:Boolean*/,  cancelable /*:Boolean*/,    
-                                   view /*:Window*/,        detail /*:int*/, 
-                                   screenX /*:int*/,        screenY /*:int*/, 
-                                   clientX /*:int*/,        clientY /*:int*/,       
-                                   ctrlKey /*:Boolean*/,    altKey /*:Boolean*/, 
-                                   shiftKey /*:Boolean*/,   metaKey /*:Boolean*/, 
-                                   button /*:int*/,         relatedTarget /*:HTMLElement*/) /*:Void*/
-    {
-        
-        //check target
-        target = YAHOO.util.Dom.get(target);        
-        if (!target){
-            throw new Error("simulateMouseEvent(): Invalid target.");
-        }
-        
-        //check event type
-        if (YAHOO.lang.isString(type)){
-            type = type.toLowerCase();
-            switch(type){
-                case "mouseover":
-                case "mouseout":
-                case "mousedown":
-                case "mouseup":
-                case "click":
-                case "dblclick":
-                case "mousemove":
-                    break;
-                default:
-                    throw new Error("simulateMouseEvent(): Event type '" + type + "' not supported.");
-            }
-        } else {
-            throw new Error("simulateMouseEvent(): Event type must be a string.");
-        }
-        
-        //setup default values
-        if (!YAHOO.lang.isBoolean(bubbles)){
-            bubbles = true; //all mouse events bubble
-        }
-        if (!YAHOO.lang.isBoolean(cancelable)){
-            cancelable = (type != "mousemove"); //mousemove is the only one that can't be cancelled
-        }
-        if (!YAHOO.lang.isObject(view)){
-            view = window; //view is typically window
-        }
-        if (!YAHOO.lang.isNumber(detail)){
-            detail = 1;  //number of mouse clicks must be at least one
-        }
-        if (!YAHOO.lang.isNumber(screenX)){
-            screenX = 0; 
-        }
-        if (!YAHOO.lang.isNumber(screenY)){
-            screenY = 0; 
-        }
-        if (!YAHOO.lang.isNumber(clientX)){
-            clientX = 0; 
-        }
-        if (!YAHOO.lang.isNumber(clientY)){
-            clientY = 0; 
-        }
-        if (!YAHOO.lang.isBoolean(ctrlKey)){
-            ctrlKey = false;
-        }
-        if (!YAHOO.lang.isBoolean(altKey)){
-            altKey = false;
-        }
-        if (!YAHOO.lang.isBoolean(shiftKey)){
-            shiftKey = false;
-        }
-        if (!YAHOO.lang.isBoolean(metaKey)){
-            metaKey = false;
-        }
-        if (!YAHOO.lang.isNumber(button)){
-            button = 0; 
-        }
-
-        //try to create a mouse event
-        var customEvent /*:MouseEvent*/ = null;
-            
-        //check for DOM-compliant browsers first
-        if (YAHOO.lang.isFunction(document.createEvent)){
-        
-            customEvent = document.createEvent("MouseEvents");
-        
-            //Safari 2.x (WebKit 418) still doesn't implement initMouseEvent()
-            if (customEvent.initMouseEvent){
-                customEvent.initMouseEvent(type, bubbles, cancelable, view, detail,
-                                     screenX, screenY, clientX, clientY, 
-                                     ctrlKey, altKey, shiftKey, metaKey, 
-                                     button, relatedTarget);
-            } else { //Safari
-            
-                //the closest thing available in Safari 2.x is UIEvents
-                customEvent = document.createEvent("UIEvents");
-                customEvent.initEvent(type, bubbles, cancelable);
-                customEvent.view = view;
-                customEvent.detail = detail;
-                customEvent.screenX = screenX;
-                customEvent.screenY = screenY;
-                customEvent.clientX = clientX;
-                customEvent.clientY = clientY;
-                customEvent.ctrlKey = ctrlKey;
-                customEvent.altKey = altKey;
-                customEvent.metaKey = metaKey;
-                customEvent.shiftKey = shiftKey;
-                customEvent.button = button;
-                customEvent.relatedTarget = relatedTarget;
-            }
-            
-            /*
-             * Check to see if relatedTarget has been assigned. Firefox
-             * versions less than 2.0 don't allow it to be assigned via
-             * initMouseEvent() and the property is readonly after event
-             * creation, so in order to keep YAHOO.util.getRelatedTarget()
-             * working, assign to the IE proprietary toElement property
-             * for mouseout event and fromElement property for mouseover
-             * event.
-             */
-            if (relatedTarget && !customEvent.relatedTarget){
-                if (type == "mouseout"){
-                    customEvent.toElement = relatedTarget;
-                } else if (type == "mouseover"){
-                    customEvent.fromElement = relatedTarget;
-                }
-            }
-            
-            //fire the event
-            target.dispatchEvent(customEvent);
-
-        } else if (YAHOO.lang.isObject(document.createEventObject)){ //IE
-        
-            //create an IE event object
-            customEvent = document.createEventObject();
-            
-            //assign available properties
-            customEvent.bubbles = bubbles;
-            customEvent.cancelable = cancelable;
-            customEvent.view = view;
-            customEvent.detail = detail;
-            customEvent.screenX = screenX;
-            customEvent.screenY = screenY;
-            customEvent.clientX = clientX;
-            customEvent.clientY = clientY;
-            customEvent.ctrlKey = ctrlKey;
-            customEvent.altKey = altKey;
-            customEvent.metaKey = metaKey;
-            customEvent.shiftKey = shiftKey;
-
-            //fix button property for IE's wacky implementation
-            switch(button){
-                case 0:
-                    customEvent.button = 1;
-                    break;
-                case 1:
-                    customEvent.button = 4;
-                    break;
-                case 2:
-                    //leave as is
-                    break;
-                default:
-                    customEvent.button = 0;                    
-            }    
-
-            /*
-             * Have to use relatedTarget because IE won't allow assignment
-             * to toElement or fromElement on generic events. This keeps
-             * YAHOO.util.customEvent.getRelatedTarget() functional.
-             */
-            customEvent.relatedTarget = relatedTarget;
-            
-            //fire the event
-            target.fireEvent("on" + type, customEvent);
-                    
-        } else {
-            throw new Error("simulateMouseEvent(): No event simulation framework present.");
-        }
-    },
-   
-    //--------------------------------------------------------------------------
-    // Mouse events
-    //--------------------------------------------------------------------------
-
-    /**
-     * Simulates a mouse event on a particular element.
-     * @param {HTMLElement} target The element to click on.
-     * @param {String} type The type of event to fire. This can be any one of
-     *      the following: click, dblclick, mousedown, mouseup, mouseout,
-     *      mouseover, and mousemove.
-     * @param {Object} options Additional event options (use DOM standard names).
-     * @method mouseEvent
-     * @static
-     */
-    fireMouseEvent : function (target /*:HTMLElement*/, type /*:String*/, 
-                           options /*:Object*/) /*:Void*/
-    {
-        options = options || {};
-        this.simulateMouseEvent(target, type, options.bubbles,
-            options.cancelable, options.view, options.detail, options.screenX,        
-            options.screenY, options.clientX, options.clientY, options.ctrlKey,
-            options.altKey, options.shiftKey, options.metaKey, options.button,         
-            options.relatedTarget);        
-    },
-
-    /**
-     * Simulates a click on a particular element.
-     * @param {HTMLElement} target The element to click on.
-     * @param {Object} options Additional event options (use DOM standard names).
-     * @method click
-     * @static     
-     */
-    click : function (target /*:HTMLElement*/, options /*:Object*/) /*:Void*/ {
-        this.fireMouseEvent(target, "click", options);
-    },
-    
-    /**
-     * Simulates a double click on a particular element.
-     * @param {HTMLElement} target The element to double click on.
-     * @param {Object} options Additional event options (use DOM standard names).
-     * @method dblclick
-     * @static
-     */
-    dblclick : function (target /*:HTMLElement*/, options /*:Object*/) /*:Void*/ {
-        this.fireMouseEvent( target, "dblclick", options);
-    },
-    
-    /**
-     * Simulates a mousedown on a particular element.
-     * @param {HTMLElement} target The element to act on.
-     * @param {Object} options Additional event options (use DOM standard names).
-     * @method mousedown
-     * @static
-     */
-    mousedown : function (target /*:HTMLElement*/, options /*Object*/) /*:Void*/ {
-        this.fireMouseEvent(target, "mousedown", options);
-    },
-    
-    /**
-     * Simulates a mousemove on a particular element.
-     * @param {HTMLElement} target The element to act on.
-     * @param {Object} options Additional event options (use DOM standard names).
-     * @method mousemove
-     * @static
-     */
-    mousemove : function (target /*:HTMLElement*/, options /*Object*/) /*:Void*/ {
-        this.fireMouseEvent(target, "mousemove", options);
-    },
-    
-    /**
-     * Simulates a mouseout event on a particular element. Use "relatedTarget"
-     * on the options object to specify where the mouse moved to.
-     * Quirks: Firefox less than 2.0 doesn't set relatedTarget properly, so
-     * toElement is assigned in its place. IE doesn't allow toElement to be
-     * be assigned, so relatedTarget is assigned in its place. Both of these
-     * concessions allow YAHOO.util.Event.getRelatedTarget() to work correctly
-     * in both browsers.
-     * @param {HTMLElement} target The element to act on.
-     * @param {Object} options Additional event options (use DOM standard names).
-     * @method mouseout
-     * @static
-     */
-    mouseout : function (target /*:HTMLElement*/, options /*Object*/) /*:Void*/ {
-        this.fireMouseEvent(target, "mouseout", options);
-    },
-    
-    /**
-     * Simulates a mouseover event on a particular element. Use "relatedTarget"
-     * on the options object to specify where the mouse moved from.
-     * Quirks: Firefox less than 2.0 doesn't set relatedTarget properly, so
-     * fromElement is assigned in its place. IE doesn't allow fromElement to be
-     * be assigned, so relatedTarget is assigned in its place. Both of these
-     * concessions allow YAHOO.util.Event.getRelatedTarget() to work correctly
-     * in both browsers.
-     * @param {HTMLElement} target The element to act on.
-     * @param {Object} options Additional event options (use DOM standard names).
-     * @method mouseover
-     * @static
-     */
-    mouseover : function (target /*:HTMLElement*/, options /*Object*/) /*:Void*/ {
-        this.fireMouseEvent(target, "mouseover", options);
-    },
-    
-    /**
-     * Simulates a mouseup on a particular element.
-     * @param {HTMLElement} target The element to act on.
-     * @param {Object} options Additional event options (use DOM standard names).
-     * @method mouseup
-     * @static
-     */
-    mouseup : function (target /*:HTMLElement*/, options /*Object*/) /*:Void*/ {
-        this.fireMouseEvent(target, "mouseup", options);
-    },
-    
-    //--------------------------------------------------------------------------
-    // Key events
-    //--------------------------------------------------------------------------
-
-    /**
-     * Fires an event that normally would be fired by the keyboard (keyup,
-     * keydown, keypress). Make sure to specify either keyCode or charCode as
-     * an option.
-     * @private
-     * @param {String} type The type of event ("keyup", "keydown" or "keypress").
-     * @param {HTMLElement} target The target of the event.
-     * @param {Object} options Options for the event. Either keyCode or charCode
-     *                         are required.
-     * @method fireKeyEvent
-     * @static
-     */     
-    fireKeyEvent : function (type /*:String*/, target /*:HTMLElement*/,
-                             options /*:Object*/) /*:Void*/ 
-    {
-        options = options || {};
-        this.simulateKeyEvent(target, type, options.bubbles,
-            options.cancelable, options.view, options.ctrlKey,
-            options.altKey, options.shiftKey, options.metaKey, 
-            options.keyCode, options.charCode);    
-    },
-    
-    /**
-     * Simulates a keydown event on a particular element.
-     * @param {HTMLElement} target The element to act on.
-     * @param {Object} options Additional event options (use DOM standard names).
-     * @method keydown
-     * @static
-     */
-    keydown : function (target /*:HTMLElement*/, options /*:Object*/) /*:Void*/ {
-        this.fireKeyEvent("keydown", target, options);
-    },
-    
-    /**
-     * Simulates a keypress on a particular element.
-     * @param {HTMLElement} target The element to act on.
-     * @param {Object} options Additional event options (use DOM standard names).
-     * @method keypress
-     * @static
-     */
-    keypress : function (target /*:HTMLElement*/, options /*:Object*/) /*:Void*/ {
-        this.fireKeyEvent("keypress", target, options);
-    },
-    
-    /**
-     * Simulates a keyup event on a particular element.
-     * @param {HTMLElement} target The element to act on.
-     * @param {Object} options Additional event options (use DOM standard names).
-     * @method keyup
-     * @static
-     */
-    keyup : function (target /*:HTMLElement*/, options /*Object*/) /*:Void*/ {
-        this.fireKeyEvent("keyup", target, options);
-    }
-    
-
-};
-YAHOO.register("event-simulate", YAHOO.util.UserAction, {version: "2.8.0r4", build: "2449"});
diff --git a/koha-tmpl/intranet-tmpl/prog/en/lib/yui/event-simulate/event-simulate-min.js b/koha-tmpl/intranet-tmpl/prog/en/lib/yui/event-simulate/event-simulate-min.js
deleted file mode 100644 (file)
index 02429c8..0000000
+++ /dev/null
@@ -1,7 +0,0 @@
-/*
-Copyright (c) 2009, Yahoo! Inc. All rights reserved.
-Code licensed under the BSD License:
-http://developer.yahoo.net/yui/license.txt
-version: 2.8.0r4
-*/
-YAHOO.util.UserAction={simulateKeyEvent:function(F,J,E,C,L,B,A,K,H,N,M){F=YAHOO.util.Dom.get(F);if(!F){throw new Error("simulateKeyEvent(): Invalid target.");}if(YAHOO.lang.isString(J)){J=J.toLowerCase();switch(J){case"keyup":case"keydown":case"keypress":break;case"textevent":J="keypress";break;default:throw new Error("simulateKeyEvent(): Event type '"+J+"' not supported.");}}else{throw new Error("simulateKeyEvent(): Event type must be a string.");}if(!YAHOO.lang.isBoolean(E)){E=true;}if(!YAHOO.lang.isBoolean(C)){C=true;}if(!YAHOO.lang.isObject(L)){L=window;}if(!YAHOO.lang.isBoolean(B)){B=false;}if(!YAHOO.lang.isBoolean(A)){A=false;}if(!YAHOO.lang.isBoolean(K)){K=false;}if(!YAHOO.lang.isBoolean(H)){H=false;}if(!YAHOO.lang.isNumber(N)){N=0;}if(!YAHOO.lang.isNumber(M)){M=0;}var I=null;if(YAHOO.lang.isFunction(document.createEvent)){try{I=document.createEvent("KeyEvents");I.initKeyEvent(J,E,C,L,B,A,K,H,N,M);}catch(G){try{I=document.createEvent("Events");}catch(D){I=document.createEvent("UIEvents");}finally{I.initEvent(J,E,C);I.view=L;I.altKey=A;I.ctrlKey=B;I.shiftKey=K;I.metaKey=H;I.keyCode=N;I.charCode=M;}}F.dispatchEvent(I);}else{if(YAHOO.lang.isObject(document.createEventObject)){I=document.createEventObject();I.bubbles=E;I.cancelable=C;I.view=L;I.ctrlKey=B;I.altKey=A;I.shiftKey=K;I.metaKey=H;I.keyCode=(M>0)?M:N;F.fireEvent("on"+J,I);}else{throw new Error("simulateKeyEvent(): No event simulation framework present.");}}},simulateMouseEvent:function(K,P,H,E,Q,J,G,F,D,B,C,A,O,M,I,L){K=YAHOO.util.Dom.get(K);if(!K){throw new Error("simulateMouseEvent(): Invalid target.");}if(YAHOO.lang.isString(P)){P=P.toLowerCase();switch(P){case"mouseover":case"mouseout":case"mousedown":case"mouseup":case"click":case"dblclick":case"mousemove":break;default:throw new Error("simulateMouseEvent(): Event type '"+P+"' not supported.");}}else{throw new Error("simulateMouseEvent(): Event type must be a string.");}if(!YAHOO.lang.isBoolean(H)){H=true;}if(!YAHOO.lang.isBoolean(E)){E=(P!="mousemove");}if(!YAHOO.lang.isObject(Q)){Q=window;}if(!YAHOO.lang.isNumber(J)){J=1;}if(!YAHOO.lang.isNumber(G)){G=0;}if(!YAHOO.lang.isNumber(F)){F=0;}if(!YAHOO.lang.isNumber(D)){D=0;}if(!YAHOO.lang.isNumber(B)){B=0;}if(!YAHOO.lang.isBoolean(C)){C=false;}if(!YAHOO.lang.isBoolean(A)){A=false;}if(!YAHOO.lang.isBoolean(O)){O=false;}if(!YAHOO.lang.isBoolean(M)){M=false;}if(!YAHOO.lang.isNumber(I)){I=0;}var N=null;if(YAHOO.lang.isFunction(document.createEvent)){N=document.createEvent("MouseEvents");if(N.initMouseEvent){N.initMouseEvent(P,H,E,Q,J,G,F,D,B,C,A,O,M,I,L);}else{N=document.createEvent("UIEvents");N.initEvent(P,H,E);N.view=Q;N.detail=J;N.screenX=G;N.screenY=F;N.clientX=D;N.clientY=B;N.ctrlKey=C;N.altKey=A;N.metaKey=M;N.shiftKey=O;N.button=I;N.relatedTarget=L;}if(L&&!N.relatedTarget){if(P=="mouseout"){N.toElement=L;}else{if(P=="mouseover"){N.fromElement=L;}}}K.dispatchEvent(N);}else{if(YAHOO.lang.isObject(document.createEventObject)){N=document.createEventObject();N.bubbles=H;N.cancelable=E;N.view=Q;N.detail=J;N.screenX=G;N.screenY=F;N.clientX=D;N.clientY=B;N.ctrlKey=C;N.altKey=A;N.metaKey=M;N.shiftKey=O;switch(I){case 0:N.button=1;break;case 1:N.button=4;break;case 2:break;default:N.button=0;}N.relatedTarget=L;K.fireEvent("on"+P,N);}else{throw new Error("simulateMouseEvent(): No event simulation framework present.");}}},fireMouseEvent:function(C,B,A){A=A||{};this.simulateMouseEvent(C,B,A.bubbles,A.cancelable,A.view,A.detail,A.screenX,A.screenY,A.clientX,A.clientY,A.ctrlKey,A.altKey,A.shiftKey,A.metaKey,A.button,A.relatedTarget);},click:function(B,A){this.fireMouseEvent(B,"click",A);},dblclick:function(B,A){this.fireMouseEvent(B,"dblclick",A);},mousedown:function(B,A){this.fireMouseEvent(B,"mousedown",A);},mousemove:function(B,A){this.fireMouseEvent(B,"mousemove",A);},mouseout:function(B,A){this.fireMouseEvent(B,"mouseout",A);},mouseover:function(B,A){this.fireMouseEvent(B,"mouseover",A);},mouseup:function(B,A){this.fireMouseEvent(B,"mouseup",A);},fireKeyEvent:function(B,C,A){A=A||{};this.simulateKeyEvent(C,B,A.bubbles,A.cancelable,A.view,A.ctrlKey,A.altKey,A.shiftKey,A.metaKey,A.keyCode,A.charCode);},keydown:function(B,A){this.fireKeyEvent("keydown",B,A);},keypress:function(B,A){this.fireKeyEvent("keypress",B,A);},keyup:function(B,A){this.fireKeyEvent("keyup",B,A);}};YAHOO.register("event-simulate",YAHOO.util.UserAction,{version:"2.8.0r4",build:"2449"});
\ No newline at end of file
diff --git a/koha-tmpl/intranet-tmpl/prog/en/lib/yui/event-simulate/event-simulate.js b/koha-tmpl/intranet-tmpl/prog/en/lib/yui/event-simulate/event-simulate.js
deleted file mode 100644 (file)
index dd18b0a..0000000
+++ /dev/null
@@ -1,622 +0,0 @@
-/*
-Copyright (c) 2009, Yahoo! Inc. All rights reserved.
-Code licensed under the BSD License:
-http://developer.yahoo.net/yui/license.txt
-version: 2.8.0r4
-*/
-
-/**
- * DOM event simulation utility
- * @module event-simulate
- * @namespace YAHOO.util
- * @requires yahoo,dom,event
- */
-
-/**
- * The UserAction object provides functions that simulate events occurring in
- * the browser. Since these are simulated events, they do not behave exactly
- * as regular, user-initiated events do, but can be used to test simple
- * user interactions safely.
- *
- * @namespace YAHOO.util
- * @class UserAction
- * @static
- */
-YAHOO.util.UserAction = {
-
-    //--------------------------------------------------------------------------
-    // Generic event methods
-    //--------------------------------------------------------------------------
-
-    /**
-     * Simulates a key event using the given event information to populate
-     * the generated event object. This method does browser-equalizing
-     * calculations to account for differences in the DOM and IE event models
-     * as well as different browser quirks. Note: keydown causes Safari 2.x to
-     * crash.
-     * @method simulateKeyEvent
-     * @private
-     * @static
-     * @param {HTMLElement} target The target of the given event.
-     * @param {String} type The type of event to fire. This can be any one of
-     *      the following: keyup, keydown, and keypress.
-     * @param {Boolean} bubbles (Optional) Indicates if the event can be
-     *      bubbled up. DOM Level 3 specifies that all key events bubble by
-     *      default. The default is true.
-     * @param {Boolean} cancelable (Optional) Indicates if the event can be
-     *      canceled using preventDefault(). DOM Level 3 specifies that all
-     *      key events can be cancelled. The default 
-     *      is true.
-     * @param {Window} view (Optional) The view containing the target. This is
-     *      typically the window object. The default is window.
-     * @param {Boolean} ctrlKey (Optional) Indicates if one of the CTRL keys
-     *      is pressed while the event is firing. The default is false.
-     * @param {Boolean} altKey (Optional) Indicates if one of the ALT keys
-     *      is pressed while the event is firing. The default is false.
-     * @param {Boolean} shiftKey (Optional) Indicates if one of the SHIFT keys
-     *      is pressed while the event is firing. The default is false.
-     * @param {Boolean} metaKey (Optional) Indicates if one of the META keys
-     *      is pressed while the event is firing. The default is false.
-     * @param {int} keyCode (Optional) The code for the key that is in use. 
-     *      The default is 0.
-     * @param {int} charCode (Optional) The Unicode code for the character
-     *      associated with the key being used. The default is 0.
-     */
-    simulateKeyEvent : function (target /*:HTMLElement*/, type /*:String*/, 
-                                 bubbles /*:Boolean*/,  cancelable /*:Boolean*/,    
-                                 view /*:Window*/,
-                                 ctrlKey /*:Boolean*/,    altKey /*:Boolean*/, 
-                                 shiftKey /*:Boolean*/,   metaKey /*:Boolean*/, 
-                                 keyCode /*:int*/,        charCode /*:int*/) /*:Void*/                             
-    {
-        //check target
-        target = YAHOO.util.Dom.get(target);        
-        if (!target){
-            throw new Error("simulateKeyEvent(): Invalid target.");
-        }
-        
-        //check event type
-        if (YAHOO.lang.isString(type)){
-            type = type.toLowerCase();
-            switch(type){
-                case "keyup":
-                case "keydown":
-                case "keypress":
-                    break;
-                case "textevent": //DOM Level 3
-                    type = "keypress";
-                    break;
-                    // @TODO was the fallthrough intentional, if so throw error
-                default:
-                    throw new Error("simulateKeyEvent(): Event type '" + type + "' not supported.");
-            }
-        } else {
-            throw new Error("simulateKeyEvent(): Event type must be a string.");
-        }
-        
-        //setup default values
-        if (!YAHOO.lang.isBoolean(bubbles)){
-            bubbles = true; //all key events bubble
-        }
-        if (!YAHOO.lang.isBoolean(cancelable)){
-            cancelable = true; //all key events can be cancelled
-        }
-        if (!YAHOO.lang.isObject(view)){
-            view = window; //view is typically window
-        }
-        if (!YAHOO.lang.isBoolean(ctrlKey)){
-            ctrlKey = false;
-        }
-        if (!YAHOO.lang.isBoolean(altKey)){
-            altKey = false;
-        }
-        if (!YAHOO.lang.isBoolean(shiftKey)){
-            shiftKey = false;
-        }
-        if (!YAHOO.lang.isBoolean(metaKey)){
-            metaKey = false;
-        }
-        if (!YAHOO.lang.isNumber(keyCode)){
-            keyCode = 0;
-        }
-        if (!YAHOO.lang.isNumber(charCode)){
-            charCode = 0; 
-        }
-
-        //try to create a mouse event
-        var customEvent /*:MouseEvent*/ = null;
-            
-        //check for DOM-compliant browsers first
-        if (YAHOO.lang.isFunction(document.createEvent)){
-        
-            try {
-                
-                //try to create key event
-                customEvent = document.createEvent("KeyEvents");
-                
-                /*
-                 * Interesting problem: Firefox implemented a non-standard
-                 * version of initKeyEvent() based on DOM Level 2 specs.
-                 * Key event was removed from DOM Level 2 and re-introduced
-                 * in DOM Level 3 with a different interface. Firefox is the
-                 * only browser with any implementation of Key Events, so for
-                 * now, assume it's Firefox if the above line doesn't error.
-                 */
-                //TODO: Decipher between Firefox's implementation and a correct one.
-                customEvent.initKeyEvent(type, bubbles, cancelable, view, ctrlKey,
-                    altKey, shiftKey, metaKey, keyCode, charCode);       
-                
-            } catch (ex /*:Error*/){
-
-                /*
-                 * If it got here, that means key events aren't officially supported. 
-                 * Safari/WebKit is a real problem now. WebKit 522 won't let you
-                 * set keyCode, charCode, or other properties if you use a
-                 * UIEvent, so we first must try to create a generic event. The
-                 * fun part is that this will throw an error on Safari 2.x. The
-                 * end result is that we need another try...catch statement just to
-                 * deal with this mess.
-                 */
-                try {
-
-                    //try to create generic event - will fail in Safari 2.x
-                    customEvent = document.createEvent("Events");
-
-                } catch (uierror /*:Error*/){
-
-                    //the above failed, so create a UIEvent for Safari 2.x
-                    customEvent = document.createEvent("UIEvents");
-
-                } finally {
-
-                    customEvent.initEvent(type, bubbles, cancelable);
-    
-                    //initialize
-                    customEvent.view = view;
-                    customEvent.altKey = altKey;
-                    customEvent.ctrlKey = ctrlKey;
-                    customEvent.shiftKey = shiftKey;
-                    customEvent.metaKey = metaKey;
-                    customEvent.keyCode = keyCode;
-                    customEvent.charCode = charCode;
-          
-                }          
-             
-            }
-            
-            //fire the event
-            target.dispatchEvent(customEvent);
-
-        } else if (YAHOO.lang.isObject(document.createEventObject)){ //IE
-        
-            //create an IE event object
-            customEvent = document.createEventObject();
-            
-            //assign available properties
-            customEvent.bubbles = bubbles;
-            customEvent.cancelable = cancelable;
-            customEvent.view = view;
-            customEvent.ctrlKey = ctrlKey;
-            customEvent.altKey = altKey;
-            customEvent.shiftKey = shiftKey;
-            customEvent.metaKey = metaKey;
-            
-            /*
-             * IE doesn't support charCode explicitly. CharCode should
-             * take precedence over any keyCode value for accurate
-             * representation.
-             */
-            customEvent.keyCode = (charCode > 0) ? charCode : keyCode;
-            
-            //fire the event
-            target.fireEvent("on" + type, customEvent);  
-                    
-        } else {
-            throw new Error("simulateKeyEvent(): No event simulation framework present.");
-        }
-    },
-
-    /**
-     * Simulates a mouse event using the given event information to populate
-     * the generated event object. This method does browser-equalizing
-     * calculations to account for differences in the DOM and IE event models
-     * as well as different browser quirks.
-     * @method simulateMouseEvent
-     * @private
-     * @static
-     * @param {HTMLElement} target The target of the given event.
-     * @param {String} type The type of event to fire. This can be any one of
-     *      the following: click, dblclick, mousedown, mouseup, mouseout,
-     *      mouseover, and mousemove.
-     * @param {Boolean} bubbles (Optional) Indicates if the event can be
-     *      bubbled up. DOM Level 2 specifies that all mouse events bubble by
-     *      default. The default is true.
-     * @param {Boolean} cancelable (Optional) Indicates if the event can be
-     *      canceled using preventDefault(). DOM Level 2 specifies that all
-     *      mouse events except mousemove can be cancelled. The default 
-     *      is true for all events except mousemove, for which the default 
-     *      is false.
-     * @param {Window} view (Optional) The view containing the target. This is
-     *      typically the window object. The default is window.
-     * @param {int} detail (Optional) The number of times the mouse button has
-     *      been used. The default value is 1.
-     * @param {int} screenX (Optional) The x-coordinate on the screen at which
-     *      point the event occured. The default is 0.
-     * @param {int} screenY (Optional) The y-coordinate on the screen at which
-     *      point the event occured. The default is 0.
-     * @param {int} clientX (Optional) The x-coordinate on the client at which
-     *      point the event occured. The default is 0.
-     * @param {int} clientY (Optional) The y-coordinate on the client at which
-     *      point the event occured. The default is 0.
-     * @param {Boolean} ctrlKey (Optional) Indicates if one of the CTRL keys
-     *      is pressed while the event is firing. The default is false.
-     * @param {Boolean} altKey (Optional) Indicates if one of the ALT keys
-     *      is pressed while the event is firing. The default is false.
-     * @param {Boolean} shiftKey (Optional) Indicates if one of the SHIFT keys
-     *      is pressed while the event is firing. The default is false.
-     * @param {Boolean} metaKey (Optional) Indicates if one of the META keys
-     *      is pressed while the event is firing. The default is false.
-     * @param {int} button (Optional) The button being pressed while the event
-     *      is executing. The value should be 0 for the primary mouse button
-     *      (typically the left button), 1 for the terciary mouse button
-     *      (typically the middle button), and 2 for the secondary mouse button
-     *      (typically the right button). The default is 0.
-     * @param {HTMLElement} relatedTarget (Optional) For mouseout events,
-     *      this is the element that the mouse has moved to. For mouseover
-     *      events, this is the element that the mouse has moved from. This
-     *      argument is ignored for all other events. The default is null.
-     */
-    simulateMouseEvent : function (target /*:HTMLElement*/, type /*:String*/, 
-                                   bubbles /*:Boolean*/,  cancelable /*:Boolean*/,    
-                                   view /*:Window*/,        detail /*:int*/, 
-                                   screenX /*:int*/,        screenY /*:int*/, 
-                                   clientX /*:int*/,        clientY /*:int*/,       
-                                   ctrlKey /*:Boolean*/,    altKey /*:Boolean*/, 
-                                   shiftKey /*:Boolean*/,   metaKey /*:Boolean*/, 
-                                   button /*:int*/,         relatedTarget /*:HTMLElement*/) /*:Void*/
-    {
-        
-        //check target
-        target = YAHOO.util.Dom.get(target);        
-        if (!target){
-            throw new Error("simulateMouseEvent(): Invalid target.");
-        }
-        
-        //check event type
-        if (YAHOO.lang.isString(type)){
-            type = type.toLowerCase();
-            switch(type){
-                case "mouseover":
-                case "mouseout":
-                case "mousedown":
-                case "mouseup":
-                case "click":
-                case "dblclick":
-                case "mousemove":
-                    break;
-                default:
-                    throw new Error("simulateMouseEvent(): Event type '" + type + "' not supported.");
-            }
-        } else {
-            throw new Error("simulateMouseEvent(): Event type must be a string.");
-        }
-        
-        //setup default values
-        if (!YAHOO.lang.isBoolean(bubbles)){
-            bubbles = true; //all mouse events bubble
-        }
-        if (!YAHOO.lang.isBoolean(cancelable)){
-            cancelable = (type != "mousemove"); //mousemove is the only one that can't be cancelled
-        }
-        if (!YAHOO.lang.isObject(view)){
-            view = window; //view is typically window
-        }
-        if (!YAHOO.lang.isNumber(detail)){
-            detail = 1;  //number of mouse clicks must be at least one
-        }
-        if (!YAHOO.lang.isNumber(screenX)){
-            screenX = 0; 
-        }
-        if (!YAHOO.lang.isNumber(screenY)){
-            screenY = 0; 
-        }
-        if (!YAHOO.lang.isNumber(clientX)){
-            clientX = 0; 
-        }
-        if (!YAHOO.lang.isNumber(clientY)){
-            clientY = 0; 
-        }
-        if (!YAHOO.lang.isBoolean(ctrlKey)){
-            ctrlKey = false;
-        }
-        if (!YAHOO.lang.isBoolean(altKey)){
-            altKey = false;
-        }
-        if (!YAHOO.lang.isBoolean(shiftKey)){
-            shiftKey = false;
-        }
-        if (!YAHOO.lang.isBoolean(metaKey)){
-            metaKey = false;
-        }
-        if (!YAHOO.lang.isNumber(button)){
-            button = 0; 
-        }
-
-        //try to create a mouse event
-        var customEvent /*:MouseEvent*/ = null;
-            
-        //check for DOM-compliant browsers first
-        if (YAHOO.lang.isFunction(document.createEvent)){
-        
-            customEvent = document.createEvent("MouseEvents");
-        
-            //Safari 2.x (WebKit 418) still doesn't implement initMouseEvent()
-            if (customEvent.initMouseEvent){
-                customEvent.initMouseEvent(type, bubbles, cancelable, view, detail,
-                                     screenX, screenY, clientX, clientY, 
-                                     ctrlKey, altKey, shiftKey, metaKey, 
-                                     button, relatedTarget);
-            } else { //Safari
-            
-                //the closest thing available in Safari 2.x is UIEvents
-                customEvent = document.createEvent("UIEvents");
-                customEvent.initEvent(type, bubbles, cancelable);
-                customEvent.view = view;
-                customEvent.detail = detail;
-                customEvent.screenX = screenX;
-                customEvent.screenY = screenY;
-                customEvent.clientX = clientX;
-                customEvent.clientY = clientY;
-                customEvent.ctrlKey = ctrlKey;
-                customEvent.altKey = altKey;
-                customEvent.metaKey = metaKey;
-                customEvent.shiftKey = shiftKey;
-                customEvent.button = button;
-                customEvent.relatedTarget = relatedTarget;
-            }
-            
-            /*
-             * Check to see if relatedTarget has been assigned. Firefox
-             * versions less than 2.0 don't allow it to be assigned via
-             * initMouseEvent() and the property is readonly after event
-             * creation, so in order to keep YAHOO.util.getRelatedTarget()
-             * working, assign to the IE proprietary toElement property
-             * for mouseout event and fromElement property for mouseover
-             * event.
-             */
-            if (relatedTarget && !customEvent.relatedTarget){
-                if (type == "mouseout"){
-                    customEvent.toElement = relatedTarget;
-                } else if (type == "mouseover"){
-                    customEvent.fromElement = relatedTarget;
-                }
-            }
-            
-            //fire the event
-            target.dispatchEvent(customEvent);
-
-        } else if (YAHOO.lang.isObject(document.createEventObject)){ //IE
-        
-            //create an IE event object
-            customEvent = document.createEventObject();
-            
-            //assign available properties
-            customEvent.bubbles = bubbles;
-            customEvent.cancelable = cancelable;
-            customEvent.view = view;
-            customEvent.detail = detail;
-            customEvent.screenX = screenX;
-            customEvent.screenY = screenY;
-            customEvent.clientX = clientX;
-            customEvent.clientY = clientY;
-            customEvent.ctrlKey = ctrlKey;
-            customEvent.altKey = altKey;
-            customEvent.metaKey = metaKey;
-            customEvent.shiftKey = shiftKey;
-
-            //fix button property for IE's wacky implementation
-            switch(button){
-                case 0:
-                    customEvent.button = 1;
-                    break;
-                case 1:
-                    customEvent.button = 4;
-                    break;
-                case 2:
-                    //leave as is
-                    break;
-                default:
-                    customEvent.button = 0;                    
-            }    
-
-            /*
-             * Have to use relatedTarget because IE won't allow assignment
-             * to toElement or fromElement on generic events. This keeps
-             * YAHOO.util.customEvent.getRelatedTarget() functional.
-             */
-            customEvent.relatedTarget = relatedTarget;
-            
-            //fire the event
-            target.fireEvent("on" + type, customEvent);
-                    
-        } else {
-            throw new Error("simulateMouseEvent(): No event simulation framework present.");
-        }
-    },
-   
-    //--------------------------------------------------------------------------
-    // Mouse events
-    //--------------------------------------------------------------------------
-
-    /**
-     * Simulates a mouse event on a particular element.
-     * @param {HTMLElement} target The element to click on.
-     * @param {String} type The type of event to fire. This can be any one of
-     *      the following: click, dblclick, mousedown, mouseup, mouseout,
-     *      mouseover, and mousemove.
-     * @param {Object} options Additional event options (use DOM standard names).
-     * @method mouseEvent
-     * @static
-     */
-    fireMouseEvent : function (target /*:HTMLElement*/, type /*:String*/, 
-                           options /*:Object*/) /*:Void*/
-    {
-        options = options || {};
-        this.simulateMouseEvent(target, type, options.bubbles,
-            options.cancelable, options.view, options.detail, options.screenX,        
-            options.screenY, options.clientX, options.clientY, options.ctrlKey,
-            options.altKey, options.shiftKey, options.metaKey, options.button,         
-            options.relatedTarget);        
-    },
-
-    /**
-     * Simulates a click on a particular element.
-     * @param {HTMLElement} target The element to click on.
-     * @param {Object} options Additional event options (use DOM standard names).
-     * @method click
-     * @static     
-     */
-    click : function (target /*:HTMLElement*/, options /*:Object*/) /*:Void*/ {
-        this.fireMouseEvent(target, "click", options);
-    },
-    
-    /**
-     * Simulates a double click on a particular element.
-     * @param {HTMLElement} target The element to double click on.
-     * @param {Object} options Additional event options (use DOM standard names).
-     * @method dblclick
-     * @static
-     */
-    dblclick : function (target /*:HTMLElement*/, options /*:Object*/) /*:Void*/ {
-        this.fireMouseEvent( target, "dblclick", options);
-    },
-    
-    /**
-     * Simulates a mousedown on a particular element.
-     * @param {HTMLElement} target The element to act on.
-     * @param {Object} options Additional event options (use DOM standard names).
-     * @method mousedown
-     * @static
-     */
-    mousedown : function (target /*:HTMLElement*/, options /*Object*/) /*:Void*/ {
-        this.fireMouseEvent(target, "mousedown", options);
-    },
-    
-    /**
-     * Simulates a mousemove on a particular element.
-     * @param {HTMLElement} target The element to act on.
-     * @param {Object} options Additional event options (use DOM standard names).
-     * @method mousemove
-     * @static
-     */
-    mousemove : function (target /*:HTMLElement*/, options /*Object*/) /*:Void*/ {
-        this.fireMouseEvent(target, "mousemove", options);
-    },
-    
-    /**
-     * Simulates a mouseout event on a particular element. Use "relatedTarget"
-     * on the options object to specify where the mouse moved to.
-     * Quirks: Firefox less than 2.0 doesn't set relatedTarget properly, so
-     * toElement is assigned in its place. IE doesn't allow toElement to be
-     * be assigned, so relatedTarget is assigned in its place. Both of these
-     * concessions allow YAHOO.util.Event.getRelatedTarget() to work correctly
-     * in both browsers.
-     * @param {HTMLElement} target The element to act on.
-     * @param {Object} options Additional event options (use DOM standard names).
-     * @method mouseout
-     * @static
-     */
-    mouseout : function (target /*:HTMLElement*/, options /*Object*/) /*:Void*/ {
-        this.fireMouseEvent(target, "mouseout", options);
-    },
-    
-    /**
-     * Simulates a mouseover event on a particular element. Use "relatedTarget"
-     * on the options object to specify where the mouse moved from.
-     * Quirks: Firefox less than 2.0 doesn't set relatedTarget properly, so
-     * fromElement is assigned in its place. IE doesn't allow fromElement to be
-     * be assigned, so relatedTarget is assigned in its place. Both of these
-     * concessions allow YAHOO.util.Event.getRelatedTarget() to work correctly
-     * in both browsers.
-     * @param {HTMLElement} target The element to act on.
-     * @param {Object} options Additional event options (use DOM standard names).
-     * @method mouseover
-     * @static
-     */
-    mouseover : function (target /*:HTMLElement*/, options /*Object*/) /*:Void*/ {
-        this.fireMouseEvent(target, "mouseover", options);
-    },
-    
-    /**
-     * Simulates a mouseup on a particular element.
-     * @param {HTMLElement} target The element to act on.
-     * @param {Object} options Additional event options (use DOM standard names).
-     * @method mouseup
-     * @static
-     */
-    mouseup : function (target /*:HTMLElement*/, options /*Object*/) /*:Void*/ {
-        this.fireMouseEvent(target, "mouseup", options);
-    },
-    
-    //--------------------------------------------------------------------------
-    // Key events
-    //--------------------------------------------------------------------------
-
-    /**
-     * Fires an event that normally would be fired by the keyboard (keyup,
-     * keydown, keypress). Make sure to specify either keyCode or charCode as
-     * an option.
-     * @private
-     * @param {String} type The type of event ("keyup", "keydown" or "keypress").
-     * @param {HTMLElement} target The target of the event.
-     * @param {Object} options Options for the event. Either keyCode or charCode
-     *                         are required.
-     * @method fireKeyEvent
-     * @static
-     */     
-    fireKeyEvent : function (type /*:String*/, target /*:HTMLElement*/,
-                             options /*:Object*/) /*:Void*/ 
-    {
-        options = options || {};
-        this.simulateKeyEvent(target, type, options.bubbles,
-            options.cancelable, options.view, options.ctrlKey,
-            options.altKey, options.shiftKey, options.metaKey, 
-            options.keyCode, options.charCode);    
-    },
-    
-    /**
-     * Simulates a keydown event on a particular element.
-     * @param {HTMLElement} target The element to act on.
-     * @param {Object} options Additional event options (use DOM standard names).
-     * @method keydown
-     * @static
-     */
-    keydown : function (target /*:HTMLElement*/, options /*:Object*/) /*:Void*/ {
-        this.fireKeyEvent("keydown", target, options);
-    },
-    
-    /**
-     * Simulates a keypress on a particular element.
-     * @param {HTMLElement} target The element to act on.
-     * @param {Object} options Additional event options (use DOM standard names).
-     * @method keypress
-     * @static
-     */
-    keypress : function (target /*:HTMLElement*/, options /*:Object*/) /*:Void*/ {
-        this.fireKeyEvent("keypress", target, options);
-    },
-    
-    /**
-     * Simulates a keyup event on a particular element.
-     * @param {HTMLElement} target The element to act on.
-     * @param {Object} options Additional event options (use DOM standard names).
-     * @method keyup
-     * @static
-     */
-    keyup : function (target /*:HTMLElement*/, options /*Object*/) /*:Void*/ {
-        this.fireKeyEvent("keyup", target, options);
-    }
-    
-
-};
-YAHOO.register("event-simulate", YAHOO.util.UserAction, {version: "2.8.0r4", build: "2449"});
diff --git a/koha-tmpl/intranet-tmpl/prog/en/lib/yui/event/event-debug.js b/koha-tmpl/intranet-tmpl/prog/en/lib/yui/event/event-debug.js
deleted file mode 100644 (file)
index 916e0bb..0000000
+++ /dev/null
@@ -1,2524 +0,0 @@
-/*
-Copyright (c) 2009, Yahoo! Inc. All rights reserved.
-Code licensed under the BSD License:
-http://developer.yahoo.net/yui/license.txt
-version: 2.8.0r4
-*/
-
-/**
- * The CustomEvent class lets you define events for your application
- * that can be subscribed to by one or more independent component.
- *
- * @param {String}  type The type of event, which is passed to the callback
- *                  when the event fires
- * @param {Object}  context The context the event will fire from.  "this" will
- *                  refer to this object in the callback.  Default value: 
- *                  the window object.  The listener can override this.
- * @param {boolean} silent pass true to prevent the event from writing to
- *                  the debugsystem
- * @param {int}     signature the signature that the custom event subscriber
- *                  will receive. YAHOO.util.CustomEvent.LIST or 
- *                  YAHOO.util.CustomEvent.FLAT.  The default is
- *                  YAHOO.util.CustomEvent.LIST.
- * @param fireOnce {boolean} If configured to fire once, the custom event 
- * will only notify subscribers a single time regardless of how many times 
- * the event is fired.  In addition, new subscribers will be notified 
- * immediately if the event has already been fired.
- * @namespace YAHOO.util
- * @class CustomEvent
- * @constructor
- */
-YAHOO.util.CustomEvent = function(type, context, silent, signature, fireOnce) {
-
-    /**
-     * The type of event, returned to subscribers when the event fires
-     * @property type
-     * @type string
-     */
-    this.type = type;
-
-    /**
-     * The context the event will fire from by default. Defaults to the window obj.
-     * @property scope
-     * @type object
-     */
-    this.scope = context || window;
-
-    /**
-     * By default all custom events are logged in the debug build. Set silent to true 
-     * to disable debug output for this event.
-     * @property silent
-     * @type boolean
-     */
-    this.silent = silent;
-
-    /**
-     * If configured to fire once, the custom event will only notify subscribers
-     * a single time regardless of how many times the event is fired.  In addition,
-     * new subscribers will be notified immediately if the event has already been
-     * fired.
-     * @property fireOnce
-     * @type boolean
-     * @default false
-     */
-    this.fireOnce = fireOnce;
-
-    /**
-     * Indicates whether or not this event has ever been fired.
-     * @property fired
-     * @type boolean
-     * @default false
-     */
-    this.fired = false;
-
-    /**
-     * For fireOnce events the arguments the event was fired with are stored
-     * so that new subscribers get the proper payload.
-     * @property firedWith
-     * @type Array
-     */
-    this.firedWith = null;
-
-    /**
-     * Custom events support two styles of arguments provided to the event
-     * subscribers.  
-     * <ul>
-     * <li>YAHOO.util.CustomEvent.LIST: 
-     *   <ul>
-     *   <li>param1: event name</li>
-     *   <li>param2: array of arguments sent to fire</li>
-     *   <li>param3: <optional> a custom object supplied by the subscriber</li>
-     *   </ul>
-     * </li>
-     * <li>YAHOO.util.CustomEvent.FLAT
-     *   <ul>
-     *   <li>param1: the first argument passed to fire.  If you need to
-     *           pass multiple parameters, use and array or object literal</li>
-     *   <li>param2: <optional> a custom object supplied by the subscriber</li>
-     *   </ul>
-     * </li>
-     * </ul>
-     *   @property signature
-     *   @type int
-     */
-    this.signature = signature || YAHOO.util.CustomEvent.LIST;
-
-    /**
-     * The subscribers to this event
-     * @property subscribers
-     * @type Subscriber[]
-     */
-    this.subscribers = [];
-
-    if (!this.silent) {
-        YAHOO.log( "Creating " + this, "info", "Event" );
-    }
-
-    var onsubscribeType = "_YUICEOnSubscribe";
-
-    // Only add subscribe events for events that are not generated by 
-    // CustomEvent
-    if (type !== onsubscribeType) {
-
-        /**
-         * Custom events provide a custom event that fires whenever there is
-         * a new subscriber to the event.  This provides an opportunity to
-         * handle the case where there is a non-repeating event that has
-         * already fired has a new subscriber.  
-         *
-         * @event subscribeEvent
-         * @type YAHOO.util.CustomEvent
-         * @param fn {Function} The function to execute
-         * @param obj <Object> An object to be passed along when the event fires. 
-         * Defaults to the custom event.
-         * @param override <boolean|Object> If true, the obj passed in becomes the 
-         * execution context of the listener. If an object, that object becomes 
-         * the execution context. Defaults to the custom event.
-         */
-        this.subscribeEvent = 
-                new YAHOO.util.CustomEvent(onsubscribeType, this, true);
-
-    } 
-
-
-    /**
-     * In order to make it possible to execute the rest of the subscriber
-     * stack when one thows an exception, the subscribers exceptions are
-     * caught.  The most recent exception is stored in this property
-     * @property lastError
-     * @type Error
-     */
-    this.lastError = null;
-};
-
-/**
- * Subscriber listener sigature constant.  The LIST type returns three
- * parameters: the event type, the array of args passed to fire, and
- * the optional custom object
- * @property YAHOO.util.CustomEvent.LIST
- * @static
- * @type int
- */
-YAHOO.util.CustomEvent.LIST = 0;
-
-/**
- * Subscriber listener sigature constant.  The FLAT type returns two
- * parameters: the first argument passed to fire and the optional 
- * custom object
- * @property YAHOO.util.CustomEvent.FLAT
- * @static
- * @type int
- */
-YAHOO.util.CustomEvent.FLAT = 1;
-
-YAHOO.util.CustomEvent.prototype = {
-
-    /**
-     * Subscribes the caller to this event
-     * @method subscribe
-     * @param {Function} fn        The function to execute
-     * @param {Object}   obj       An object to be passed along when the event fires.
-     * overrideContext <boolean|Object> If true, the obj passed in becomes the execution 
-     * context of the listener. If an object, that object becomes the execution context.
-     */
-    subscribe: function(fn, obj, overrideContext) {
-
-        if (!fn) {
-throw new Error("Invalid callback for subscriber to '" + this.type + "'");
-        }
-
-        if (this.subscribeEvent) {
-            this.subscribeEvent.fire(fn, obj, overrideContext);
-        }
-
-        var s = new YAHOO.util.Subscriber(fn, obj, overrideContext);
-
-        if (this.fireOnce && this.fired) {
-            this.notify(s, this.firedWith);
-        } else {
-            this.subscribers.push(s);
-        }
-    },
-
-    /**
-     * Unsubscribes subscribers.
-     * @method unsubscribe
-     * @param {Function} fn  The subscribed function to remove, if not supplied
-     *                       all will be removed
-     * @param {Object}   obj  The custom object passed to subscribe.  This is
-     *                        optional, but if supplied will be used to
-     *                        disambiguate multiple listeners that are the same
-     *                        (e.g., you subscribe many object using a function
-     *                        that lives on the prototype)
-     * @return {boolean} True if the subscriber was found and detached.
-     */
-    unsubscribe: function(fn, obj) {
-
-        if (!fn) {
-            return this.unsubscribeAll();
-        }
-
-        var found = false;
-        for (var i=0, len=this.subscribers.length; i<len; ++i) {
-            var s = this.subscribers[i];
-            if (s && s.contains(fn, obj)) {
-                this._delete(i);
-                found = true;
-            }
-        }
-
-        return found;
-    },
-
-    /**
-     * Notifies the subscribers.  The callback functions will be executed
-     * from the context specified when the event was created, and with the 
-     * following parameters:
-     *   <ul>
-     *   <li>The type of event</li>
-     *   <li>All of the arguments fire() was executed with as an array</li>
-     *   <li>The custom object (if any) that was passed into the subscribe() 
-     *       method</li>
-     *   </ul>
-     * @method fire 
-     * @param {Object*} arguments an arbitrary set of parameters to pass to 
-     *                            the handler.
-     * @return {boolean} false if one of the subscribers returned false, 
-     *                   true otherwise
-     */
-    fire: function() {
-
-        this.lastError = null;
-
-        var errors = [],
-            len=this.subscribers.length;
-
-
-        var args=[].slice.call(arguments, 0), ret=true, i, rebuild=false;
-
-        if (this.fireOnce) {
-            if (this.fired) {
-                YAHOO.log('fireOnce event has already fired: ' + this.type);
-                return true;
-            } else {
-                this.firedWith = args;
-            }
-        }
-
-        this.fired = true;
-
-        if (!len && this.silent) {
-            //YAHOO.log('DEBUG no subscribers');
-            return true;
-        }
-
-        if (!this.silent) {
-            YAHOO.log( "Firing "       + this  + ", " + 
-                       "args: "        + args  + ", " +
-                       "subscribers: " + len,                 
-                       "info", "Event"                  );
-        }
-
-        // make a copy of the subscribers so that there are
-        // no index problems if one subscriber removes another.
-        var subs = this.subscribers.slice();
-
-        for (i=0; i<len; ++i) {
-            var s = subs[i];
-            if (!s) {
-                rebuild=true;
-            } else {
-
-                ret = this.notify(s, args);
-
-                if (false === ret) {
-                    if (!this.silent) {
-                        YAHOO.log("Event stopped, sub " + i + " of " + len, "info", "Event");
-                    }
-
-                    break;
-                }
-            }
-        }
-
-        return (ret !== false);
-    },
-
-    notify: function(s, args) {
-
-        var ret, param=null, scope = s.getScope(this.scope),
-                 throwErrors = YAHOO.util.Event.throwErrors;
-
-        if (!this.silent) {
-            YAHOO.log( this.type + "-> " + s, "info", "Event" );
-        }
-
-        if (this.signature == YAHOO.util.CustomEvent.FLAT) {
-
-            if (args.length > 0) {
-                param = args[0];
-            }
-
-            try {
-                ret = s.fn.call(scope, param, s.obj);
-            } catch(e) {
-                this.lastError = e;
-                // errors.push(e);
-                YAHOO.log(this + " subscriber exception: " + e, "error", "Event");
-                if (throwErrors) {
-                    throw e;
-                }
-            }
-        } else {
-            try {
-                ret = s.fn.call(scope, this.type, args, s.obj);
-            } catch(ex) {
-                this.lastError = ex;
-                YAHOO.log(this + " subscriber exception: " + ex, "error", "Event");
-                if (throwErrors) {
-                    throw ex;
-                }
-            }
-        }
-
-        return ret;
-    },
-
-    /**
-     * Removes all listeners
-     * @method unsubscribeAll
-     * @return {int} The number of listeners unsubscribed
-     */
-    unsubscribeAll: function() {
-        var l = this.subscribers.length, i;
-        for (i=l-1; i>-1; i--) {
-            this._delete(i);
-        }
-
-        this.subscribers=[];
-
-        return l;
-    },
-
-    /**
-     * @method _delete
-     * @private
-     */
-    _delete: function(index) {
-        var s = this.subscribers[index];
-        if (s) {
-            delete s.fn;
-            delete s.obj;
-        }
-
-        // this.subscribers[index]=null;
-        this.subscribers.splice(index, 1);
-    },
-
-    /**
-     * @method toString
-     */
-    toString: function() {
-         return "CustomEvent: " + "'" + this.type  + "', " + 
-             "context: " + this.scope;
-
-    }
-};
-
-/////////////////////////////////////////////////////////////////////
-
-/**
- * Stores the subscriber information to be used when the event fires.
- * @param {Function} fn       The function to execute
- * @param {Object}   obj      An object to be passed along when the event fires
- * @param {boolean}  overrideContext If true, the obj passed in becomes the execution
- *                            context of the listener
- * @class Subscriber
- * @constructor
- */
-YAHOO.util.Subscriber = function(fn, obj, overrideContext) {
-
-    /**
-     * The callback that will be execute when the event fires
-     * @property fn
-     * @type function
-     */
-    this.fn = fn;
-
-    /**
-     * An optional custom object that will passed to the callback when
-     * the event fires
-     * @property obj
-     * @type object
-     */
-    this.obj = YAHOO.lang.isUndefined(obj) ? null : obj;
-
-    /**
-     * The default execution context for the event listener is defined when the
-     * event is created (usually the object which contains the event).
-     * By setting overrideContext to true, the execution context becomes the custom
-     * object passed in by the subscriber.  If overrideContext is an object, that 
-     * object becomes the context.
-     * @property overrideContext
-     * @type boolean|object
-     */
-    this.overrideContext = overrideContext;
-
-};
-
-/**
- * Returns the execution context for this listener.  If overrideContext was set to true
- * the custom obj will be the context.  If overrideContext is an object, that is the
- * context, otherwise the default context will be used.
- * @method getScope
- * @param {Object} defaultScope the context to use if this listener does not
- *                              override it.
- */
-YAHOO.util.Subscriber.prototype.getScope = function(defaultScope) {
-    if (this.overrideContext) {
-        if (this.overrideContext === true) {
-            return this.obj;
-        } else {
-            return this.overrideContext;
-        }
-    }
-    return defaultScope;
-};
-
-/**
- * Returns true if the fn and obj match this objects properties.
- * Used by the unsubscribe method to match the right subscriber.
- *
- * @method contains
- * @param {Function} fn the function to execute
- * @param {Object} obj an object to be passed along when the event fires
- * @return {boolean} true if the supplied arguments match this 
- *                   subscriber's signature.
- */
-YAHOO.util.Subscriber.prototype.contains = function(fn, obj) {
-    if (obj) {
-        return (this.fn == fn && this.obj == obj);
-    } else {
-        return (this.fn == fn);
-    }
-};
-
-/**
- * @method toString
- */
-YAHOO.util.Subscriber.prototype.toString = function() {
-    return "Subscriber { obj: " + this.obj  + 
-           ", overrideContext: " +  (this.overrideContext || "no") + " }";
-};
-
-/**
- * The Event Utility provides utilities for managing DOM Events and tools
- * for building event systems
- *
- * @module event
- * @title Event Utility
- * @namespace YAHOO.util
- * @requires yahoo
- */
-
-// The first instance of Event will win if it is loaded more than once.
-// @TODO this needs to be changed so that only the state data that needs to
-// be preserved is kept, while methods are overwritten/added as needed.
-// This means that the module pattern can't be used.
-if (!YAHOO.util.Event) {
-
-/**
- * The event utility provides functions to add and remove event listeners,
- * event cleansing.  It also tries to automatically remove listeners it
- * registers during the unload event.
- *
- * @class Event
- * @static
- */
-    YAHOO.util.Event = function() {
-
-        /**
-         * True after the onload event has fired
-         * @property loadComplete
-         * @type boolean
-         * @static
-         * @private
-         */
-        var loadComplete =  false,
-
-        /**
-         * Cache of wrapped listeners
-         * @property listeners
-         * @type array
-         * @static
-         * @private
-         */
-        listeners = [],
-
-
-        /**
-         * User-defined unload function that will be fired before all events
-         * are detached
-         * @property unloadListeners
-         * @type array
-         * @static
-         * @private
-         */
-        unloadListeners = [],
-
-        /**
-         * The number of times to poll after window.onload.  This number is
-         * increased if additional late-bound handlers are requested after
-         * the page load.
-         * @property retryCount
-         * @static
-         * @private
-         */
-        retryCount = 0,
-
-        /**
-         * onAvailable listeners
-         * @property onAvailStack
-         * @static
-         * @private
-         */
-        onAvailStack = [],
-
-        /**
-         * Counter for auto id generation
-         * @property counter
-         * @static
-         * @private
-         */
-        counter = 0,
-        
-        /**
-         * Normalized keycodes for webkit/safari
-         * @property webkitKeymap
-         * @type {int: int}
-         * @private
-         * @static
-         * @final
-         */
-         webkitKeymap = {
-            63232: 38, // up
-            63233: 40, // down
-            63234: 37, // left
-            63235: 39, // right
-            63276: 33, // page up
-            63277: 34, // page down
-            25: 9      // SHIFT-TAB (Safari provides a different key code in
-                       // this case, even though the shiftKey modifier is set)
-        },
-
-               isIE = YAHOO.env.ua.ie,
-
-        // String constants used by the addFocusListener and removeFocusListener methods
-               
-               FOCUSIN = "focusin",
-               FOCUSOUT = "focusout";
-
-        return {
-
-            /**
-             * The number of times we should look for elements that are not
-             * in the DOM at the time the event is requested after the document
-             * has been loaded.  The default is 500@amp;40 ms, so it will poll
-             * for 20 seconds or until all outstanding handlers are bound
-             * (whichever comes first).
-             * @property POLL_RETRYS
-             * @type int
-             * @static
-             * @final
-             */
-            POLL_RETRYS: 500,
-
-            /**
-             * The poll interval in milliseconds
-             * @property POLL_INTERVAL
-             * @type int
-             * @static
-             * @final
-             */
-            POLL_INTERVAL: 40,
-
-            /**
-             * Element to bind, int constant
-             * @property EL
-             * @type int
-             * @static
-             * @final
-             */
-            EL: 0,
-
-            /**
-             * Type of event, int constant
-             * @property TYPE
-             * @type int
-             * @static
-             * @final
-             */
-            TYPE: 1,
-
-            /**
-             * Function to execute, int constant
-             * @property FN
-             * @type int
-             * @static
-             * @final
-             */
-            FN: 2,
-
-            /**
-             * Function wrapped for context correction and cleanup, int constant
-             * @property WFN
-             * @type int
-             * @static
-             * @final
-             */
-            WFN: 3,
-
-            /**
-             * Object passed in by the user that will be returned as a 
-             * parameter to the callback, int constant.  Specific to
-             * unload listeners
-             * @property OBJ
-             * @type int
-             * @static
-             * @final
-             */
-            UNLOAD_OBJ: 3,
-
-            /**
-             * Adjusted context, either the element we are registering the event
-             * on or the custom object passed in by the listener, int constant
-             * @property ADJ_SCOPE
-             * @type int
-             * @static
-             * @final
-             */
-            ADJ_SCOPE: 4,
-
-            /**
-             * The original obj passed into addListener
-             * @property OBJ
-             * @type int
-             * @static
-             * @final
-             */
-            OBJ: 5,
-
-            /**
-             * The original context parameter passed into addListener
-             * @property OVERRIDE
-             * @type int
-             * @static
-             * @final
-             */
-            OVERRIDE: 6,
-
-            /**
-             * The original capture parameter passed into addListener
-             * @property CAPTURE
-             * @type int
-             * @static
-             * @final
-             */
-                       CAPTURE: 7,
-
-            /**
-             * addListener/removeListener can throw errors in unexpected scenarios.
-             * These errors are suppressed, the method returns false, and this property
-             * is set
-             * @property lastError
-             * @static
-             * @type Error
-             */
-            lastError: null,
-
-            /**
-             * Safari detection
-             * @property isSafari
-             * @private
-             * @static
-             * @deprecated use YAHOO.env.ua.webkit
-             */
-            isSafari: YAHOO.env.ua.webkit,
-            
-            /**
-             * webkit version
-             * @property webkit
-             * @type string
-             * @private
-             * @static
-             * @deprecated use YAHOO.env.ua.webkit
-             */
-            webkit: YAHOO.env.ua.webkit,
-            
-            /**
-             * IE detection 
-             * @property isIE
-             * @private
-             * @static
-             * @deprecated use YAHOO.env.ua.ie
-             */
-            isIE: isIE,
-
-            /**
-             * poll handle
-             * @property _interval
-             * @static
-             * @private
-             */
-            _interval: null,
-
-            /**
-             * document readystate poll handle
-             * @property _dri
-             * @static
-             * @private
-             */
-             _dri: null,
-
-
-            /**
-             * Map of special event types
-             * @property _specialTypes
-             * @static
-             * @private
-             */
-                       _specialTypes: {
-                               focusin: (isIE ? "focusin" : "focus"),
-                               focusout: (isIE ? "focusout" : "blur")
-                       },
-
-
-            /**
-             * True when the document is initially usable
-             * @property DOMReady
-             * @type boolean
-             * @static
-             */
-            DOMReady: false,
-
-            /**
-             * Errors thrown by subscribers of custom events are caught
-             * and the error message is written to the debug console.  If
-             * this property is set to true, it will also re-throw the
-             * error.
-             * @property throwErrors
-             * @type boolean
-             * @default false
-             */
-            throwErrors: false,
-
-
-            /**
-             * @method startInterval
-             * @static
-             * @private
-             */
-            startInterval: function() {
-                if (!this._interval) {
-                    // var self = this;
-                    // var callback = function() { self._tryPreloadAttach(); };
-                    // this._interval = setInterval(callback, this.POLL_INTERVAL);
-                    this._interval = YAHOO.lang.later(this.POLL_INTERVAL, this, this._tryPreloadAttach, null, true);
-                }
-            },
-
-            /**
-             * Executes the supplied callback when the item with the supplied
-             * id is found.  This is meant to be used to execute behavior as
-             * soon as possible as the page loads.  If you use this after the
-             * initial page load it will poll for a fixed time for the element.
-             * The number of times it will poll and the frequency are
-             * configurable.  By default it will poll for 10 seconds.
-             *
-             * <p>The callback is executed with a single parameter:
-             * the custom object parameter, if provided.</p>
-             *
-             * @method onAvailable
-             *
-             * @param {string||string[]}   id the id of the element, or an array
-             * of ids to look for.
-             * @param {function} fn what to execute when the element is found.
-             * @param {object}   obj an optional object to be passed back as
-             *                   a parameter to fn.
-             * @param {boolean|object}  overrideContext If set to true, fn will execute
-             *                   in the context of obj, if set to an object it
-             *                   will execute in the context of that object
-             * @param checkContent {boolean} check child node readiness (onContentReady)
-             * @static
-             */
-            onAvailable: function(id, fn, obj, overrideContext, checkContent) {
-
-                var a = (YAHOO.lang.isString(id)) ? [id] : id;
-
-                for (var i=0; i<a.length; i=i+1) {
-                    onAvailStack.push({id:         a[i], 
-                                       fn:         fn, 
-                                       obj:        obj, 
-                                       overrideContext:   overrideContext, 
-                                       checkReady: checkContent });
-                }
-
-                retryCount = this.POLL_RETRYS;
-
-                this.startInterval();
-            },
-
-            /**
-             * Works the same way as onAvailable, but additionally checks the
-             * state of sibling elements to determine if the content of the
-             * available element is safe to modify.
-             *
-             * <p>The callback is executed with a single parameter:
-             * the custom object parameter, if provided.</p>
-             *
-             * @method onContentReady
-             *
-             * @param {string}   id the id of the element to look for.
-             * @param {function} fn what to execute when the element is ready.
-             * @param {object}   obj an optional object to be passed back as
-             *                   a parameter to fn.
-             * @param {boolean|object}  overrideContext If set to true, fn will execute
-             *                   in the context of obj.  If an object, fn will
-             *                   exectute in the context of that object
-             *
-             * @static
-             */
-            onContentReady: function(id, fn, obj, overrideContext) {
-                this.onAvailable(id, fn, obj, overrideContext, true);
-            },
-
-            /**
-             * Executes the supplied callback when the DOM is first usable.  This
-             * will execute immediately if called after the DOMReady event has
-             * fired.   @todo the DOMContentReady event does not fire when the
-             * script is dynamically injected into the page.  This means the
-             * DOMReady custom event will never fire in FireFox or Opera when the
-             * library is injected.  It _will_ fire in Safari, and the IE 
-             * implementation would allow for us to fire it if the defered script
-             * is not available.  We want this to behave the same in all browsers.
-             * Is there a way to identify when the script has been injected 
-             * instead of included inline?  Is there a way to know whether the 
-             * window onload event has fired without having had a listener attached 
-             * to it when it did so?
-             *
-             * <p>The callback is a CustomEvent, so the signature is:</p>
-             * <p>type &lt;string&gt;, args &lt;array&gt;, customobject &lt;object&gt;</p>
-             * <p>For DOMReady events, there are no fire argments, so the
-             * signature is:</p>
-             * <p>"DOMReady", [], obj</p>
-             *
-             *
-             * @method onDOMReady
-             *
-             * @param {function} fn what to execute when the element is found.
-             * @param {object}   obj an optional object to be passed back as
-             *                   a parameter to fn.
-             * @param {boolean|object}  overrideContext If set to true, fn will execute
-             *                   in the context of obj, if set to an object it
-             *                   will execute in the context of that object
-             *
-             * @static
-             */
-            // onDOMReady: function(fn, obj, overrideContext) {
-            onDOMReady: function() {
-                this.DOMReadyEvent.subscribe.apply(this.DOMReadyEvent, arguments);
-            },
-
-
-            /**
-             * Appends an event handler
-             *
-             * @method _addListener
-             *
-             * @param {String|HTMLElement|Array|NodeList} el An id, an element 
-             *  reference, or a collection of ids and/or elements to assign the 
-             *  listener to.
-             * @param {String}   sType     The type of event to append
-             * @param {Function} fn        The method the event invokes
-             * @param {Object}   obj    An arbitrary object that will be 
-             *                             passed as a parameter to the handler
-             * @param {Boolean|object}  overrideContext  If true, the obj passed in becomes
-             *                             the execution context of the listener. If an
-             *                             object, this object becomes the execution
-             *                             context.
-             * @param {boolen}      capture capture or bubble phase
-             * @return {Boolean} True if the action was successful or defered,
-             *                        false if one or more of the elements 
-             *                        could not have the listener attached,
-             *                        or if the operation throws an exception.
-             * @private
-             * @static
-             */
-            _addListener: function(el, sType, fn, obj, overrideContext, bCapture) {
-
-                if (!fn || !fn.call) {
-                    YAHOO.log(sType + " addListener failed, invalid callback", "error", "Event");
-                    return false;
-                }
-
-                // The el argument can be an array of elements or element ids.
-                if ( this._isValidCollection(el)) {
-                    var ok = true;
-                    for (var i=0,len=el.length; i<len; ++i) {
-                        ok = this.on(el[i], 
-                                       sType, 
-                                       fn, 
-                                       obj, 
-                                       overrideContext) && ok;
-                    }
-                    return ok;
-
-                } else if (YAHOO.lang.isString(el)) {
-                    var oEl = this.getEl(el);
-                    // If the el argument is a string, we assume it is 
-                    // actually the id of the element.  If the page is loaded
-                    // we convert el to the actual element, otherwise we 
-                    // defer attaching the event until onload event fires
-
-                    // check to see if we need to delay hooking up the event 
-                    // until after the page loads.
-                    if (oEl) {
-                        el = oEl;
-                    } else {
-                        // defer adding the event until the element is available
-                        this.onAvailable(el, function() {
-                           YAHOO.util.Event._addListener(el, sType, fn, obj, overrideContext, bCapture);
-                        });
-
-                        return true;
-                    }
-                }
-
-                // Element should be an html element or an array if we get 
-                // here.
-                if (!el) {
-                    // this.logger.debug("unable to attach event " + sType);
-                    return false;
-                }
-
-                // we need to make sure we fire registered unload events 
-                // prior to automatically unhooking them.  So we hang on to 
-                // these instead of attaching them to the window and fire the
-                // handles explicitly during our one unload event.
-                if ("unload" == sType && obj !== this) {
-                    unloadListeners[unloadListeners.length] =
-                            [el, sType, fn, obj, overrideContext];
-                    return true;
-                }
-
-                // this.logger.debug("Adding handler: " + el + ", " + sType);
-
-                // if the user chooses to override the context, we use the custom
-                // object passed in, otherwise the executing context will be the
-                // HTML element that the event is registered on
-                var context = el;
-                if (overrideContext) {
-                    if (overrideContext === true) {
-                        context = obj;
-                    } else {
-                        context = overrideContext;
-                    }
-                }
-
-                // wrap the function so we can return the obj object when
-                // the event fires;
-                var wrappedFn = function(e) {
-                        return fn.call(context, YAHOO.util.Event.getEvent(e, el), 
-                                obj);
-                    };
-
-                var li = [el, sType, fn, wrappedFn, context, obj, overrideContext, bCapture];
-                var index = listeners.length;
-                // cache the listener so we can try to automatically unload
-                listeners[index] = li;
-
-                try {
-                    this._simpleAdd(el, sType, wrappedFn, bCapture);
-                } catch(ex) {
-                    // handle an error trying to attach an event.  If it fails
-                    // we need to clean up the cache
-                    this.lastError = ex;
-                    this.removeListener(el, sType, fn);
-                    return false;
-                }
-
-                return true;
-                
-            },
-
-            /**
-             * Checks to see if the type requested is a special type 
-                        * (as defined by the _specialTypes hash), and (if so) returns 
-                        * the special type name.
-             *
-             * @method _getType
-             *
-             * @param {String}   sType     The type to look up
-             * @private
-             */
-                       _getType: function (type) {
-                       
-                               return this._specialTypes[type] || type;
-                               
-                       },
-
-
-            /**
-             * Appends an event handler
-             *
-             * @method addListener
-             *
-             * @param {String|HTMLElement|Array|NodeList} el An id, an element 
-             *  reference, or a collection of ids and/or elements to assign the 
-             *  listener to.
-             * @param {String}   sType     The type of event to append
-             * @param {Function} fn        The method the event invokes
-             * @param {Object}   obj    An arbitrary object that will be 
-             *                             passed as a parameter to the handler
-             * @param {Boolean|object}  overrideContext  If true, the obj passed in becomes
-             *                             the execution context of the listener. If an
-             *                             object, this object becomes the execution
-             *                             context.
-             * @return {Boolean} True if the action was successful or defered,
-             *                        false if one or more of the elements 
-             *                        could not have the listener attached,
-             *                        or if the operation throws an exception.
-             * @static
-             */
-            addListener: function (el, sType, fn, obj, overrideContext) {
-
-                               var capture = ((sType == FOCUSIN || sType == FOCUSOUT) && !YAHOO.env.ua.ie) ? true : false;
-
-                return this._addListener(el, this._getType(sType), fn, obj, overrideContext, capture);
-
-               },
-
-
-            /**
-             * Attaches a focusin event listener to the specified element for 
-                        * the purpose of listening for the focus event on the element's 
-             * descendants.
-             * @method addFocusListener
-             *
-             * @param {String|HTMLElement|Array|NodeList} el An id, an element 
-             *  reference, or a collection of ids and/or elements to assign the 
-             *  listener to.
-             * @param {Function} fn        The method the event invokes
-             * @param {Object}   obj    An arbitrary object that will be 
-             *                             passed as a parameter to the handler
-             * @param {Boolean|object}  overrideContext  If true, the obj passed in becomes
-             *                             the execution context of the listener. If an
-             *                             object, this object becomes the execution
-             *                             context.
-             * @return {Boolean} True if the action was successful or defered,
-             *                        false if one or more of the elements 
-             *                        could not have the listener attached,
-             *                        or if the operation throws an exception.
-             * @static
-                       * @deprecated use YAHOO.util.Event.on and specify "focusin" as the event type.
-             */
-            addFocusListener: function (el, fn, obj, overrideContext) {
-                return this.on(el, FOCUSIN, fn, obj, overrideContext);
-            },          
-
-
-            /**
-             * Removes a focusin event listener to the specified element for 
-                        * the purpose of listening for the focus event on the element's 
-             * descendants.
-             *
-             * @method removeFocusListener
-             *
-             * @param {String|HTMLElement|Array|NodeList} el An id, an element 
-             *  reference, or a collection of ids and/or elements to remove
-             *  the listener from.
-             * @param {Function} fn the method the event invokes.  If fn is
-             *  undefined, then all event handlers for the type of event are 
-             *  removed.
-             * @return {boolean} true if the unbind was successful, false 
-             *  otherwise.
-             * @static
-                * @deprecated use YAHOO.util.Event.removeListener and specify "focusin" as the event type.
-             */
-            removeFocusListener: function (el, fn) { 
-                return this.removeListener(el, FOCUSIN, fn);
-            },
-
-            /**
-             * Attaches a focusout event listener to the specified element for 
-                        * the purpose of listening for the blur event on the element's 
-                        * descendants.
-             *
-             * @method addBlurListener
-             *
-             * @param {String|HTMLElement|Array|NodeList} el An id, an element 
-             *  reference, or a collection of ids and/or elements to assign the 
-             *  listener to.
-             * @param {Function} fn        The method the event invokes
-             * @param {Object}   obj    An arbitrary object that will be 
-             *                             passed as a parameter to the handler
-             * @param {Boolean|object}  overrideContext  If true, the obj passed in becomes
-             *                             the execution context of the listener. If an
-             *                             object, this object becomes the execution
-             *                             context.
-             * @return {Boolean} True if the action was successful or defered,
-             *                        false if one or more of the elements 
-             *                        could not have the listener attached,
-             *                        or if the operation throws an exception.
-             * @static
-                * @deprecated use YAHOO.util.Event.on and specify "focusout" as the event type.
-             */
-            addBlurListener: function (el, fn, obj, overrideContext) {
-                return this.on(el, FOCUSOUT, fn, obj, overrideContext);
-            },          
-
-            /**
-             * Removes a focusout event listener to the specified element for 
-                        * the purpose of listening for the blur event on the element's 
-                        * descendants.
-             *
-             * @method removeBlurListener
-             *
-             * @param {String|HTMLElement|Array|NodeList} el An id, an element 
-             *  reference, or a collection of ids and/or elements to remove
-             *  the listener from.
-             * @param {Function} fn the method the event invokes.  If fn is
-             *  undefined, then all event handlers for the type of event are 
-             *  removed.
-             * @return {boolean} true if the unbind was successful, false 
-             *  otherwise.
-             * @static
-                * @deprecated use YAHOO.util.Event.removeListener and specify "focusout" as the event type.
-             */
-            removeBlurListener: function (el, fn) { 
-                return this.removeListener(el, FOCUSOUT, fn);
-            },
-
-            /**
-             * Removes an event listener
-             *
-             * @method removeListener
-             *
-             * @param {String|HTMLElement|Array|NodeList} el An id, an element 
-             *  reference, or a collection of ids and/or elements to remove
-             *  the listener from.
-             * @param {String} sType the type of event to remove.
-             * @param {Function} fn the method the event invokes.  If fn is
-             *  undefined, then all event handlers for the type of event are 
-             *  removed.
-             * @return {boolean} true if the unbind was successful, false 
-             *  otherwise.
-             * @static
-             */
-            removeListener: function(el, sType, fn) {
-                var i, len, li;
-
-                               sType = this._getType(sType);
-
-                // The el argument can be a string
-                if (typeof el == "string") {
-                    el = this.getEl(el);
-                // The el argument can be an array of elements or element ids.
-                } else if ( this._isValidCollection(el)) {
-                    var ok = true;
-                    for (i=el.length-1; i>-1; i--) {
-                        ok = ( this.removeListener(el[i], sType, fn) && ok );
-                    }
-                    return ok;
-                }
-
-                if (!fn || !fn.call) {
-                    // this.logger.debug("Error, function is not valid " + fn);
-                    //return false;
-                    return this.purgeElement(el, false, sType);
-                }
-
-                if ("unload" == sType) {
-
-                    for (i=unloadListeners.length-1; i>-1; i--) {
-                        li = unloadListeners[i];
-                        if (li && 
-                            li[0] == el && 
-                            li[1] == sType && 
-                            li[2] == fn) {
-                                unloadListeners.splice(i, 1);
-                                // unloadListeners[i]=null;
-                                return true;
-                        }
-                    }
-
-                    return false;
-                }
-
-                var cacheItem = null;
-
-                // The index is a hidden parameter; needed to remove it from
-                // the method signature because it was tempting users to
-                // try and take advantage of it, which is not possible.
-                var index = arguments[3];
-  
-                if ("undefined" === typeof index) {
-                    index = this._getCacheIndex(listeners, el, sType, fn);
-                }
-
-                if (index >= 0) {
-                    cacheItem = listeners[index];
-                }
-
-                if (!el || !cacheItem) {
-                    // this.logger.debug("cached listener not found");
-                    return false;
-                }
-
-                // this.logger.debug("Removing handler: " + el + ", " + sType);
-
-                               var bCapture = cacheItem[this.CAPTURE] === true ? true : false;
-
-                try {
-                    this._simpleRemove(el, sType, cacheItem[this.WFN], bCapture);
-                } catch(ex) {
-                    this.lastError = ex;
-                    return false;
-                }
-
-                // removed the wrapped handler
-                delete listeners[index][this.WFN];
-                delete listeners[index][this.FN];
-                listeners.splice(index, 1);
-                // listeners[index]=null;
-
-                return true;
-
-            },
-
-            /**
-             * Returns the event's target element.  Safari sometimes provides
-             * a text node, and this is automatically resolved to the text
-             * node's parent so that it behaves like other browsers.
-             * @method getTarget
-             * @param {Event} ev the event
-             * @param {boolean} resolveTextNode when set to true the target's
-             *                  parent will be returned if the target is a 
-             *                  text node.  @deprecated, the text node is
-             *                  now resolved automatically
-             * @return {HTMLElement} the event's target
-             * @static
-             */
-            getTarget: function(ev, resolveTextNode) {
-                var t = ev.target || ev.srcElement;
-                return this.resolveTextNode(t);
-            },
-
-            /**
-             * In some cases, some browsers will return a text node inside
-             * the actual element that was targeted.  This normalizes the
-             * return value for getTarget and getRelatedTarget.
-             * @method resolveTextNode
-             * @param {HTMLElement} node node to resolve
-             * @return {HTMLElement} the normized node
-             * @static
-             */
-            resolveTextNode: function(n) {
-                try {
-                    if (n && 3 == n.nodeType) {
-                        return n.parentNode;
-                    }
-                } catch(e) { }
-
-                return n;
-            },
-
-            /**
-             * Returns the event's pageX
-             * @method getPageX
-             * @param {Event} ev the event
-             * @return {int} the event's pageX
-             * @static
-             */
-            getPageX: function(ev) {
-                var x = ev.pageX;
-                if (!x && 0 !== x) {
-                    x = ev.clientX || 0;
-
-                    if ( this.isIE ) {
-                        x += this._getScrollLeft();
-                    }
-                }
-
-                return x;
-            },
-
-            /**
-             * Returns the event's pageY
-             * @method getPageY
-             * @param {Event} ev the event
-             * @return {int} the event's pageY
-             * @static
-             */
-            getPageY: function(ev) {
-                var y = ev.pageY;
-                if (!y && 0 !== y) {
-                    y = ev.clientY || 0;
-
-                    if ( this.isIE ) {
-                        y += this._getScrollTop();
-                    }
-                }
-
-
-                return y;
-            },
-
-            /**
-             * Returns the pageX and pageY properties as an indexed array.
-             * @method getXY
-             * @param {Event} ev the event
-             * @return {[x, y]} the pageX and pageY properties of the event
-             * @static
-             */
-            getXY: function(ev) {
-                return [this.getPageX(ev), this.getPageY(ev)];
-            },
-
-            /**
-             * Returns the event's related target 
-             * @method getRelatedTarget
-             * @param {Event} ev the event
-             * @return {HTMLElement} the event's relatedTarget
-             * @static
-             */
-            getRelatedTarget: function(ev) {
-                var t = ev.relatedTarget;
-                if (!t) {
-                    if (ev.type == "mouseout") {
-                        t = ev.toElement;
-                    } else if (ev.type == "mouseover") {
-                        t = ev.fromElement;
-                    }
-                }
-
-                return this.resolveTextNode(t);
-            },
-
-            /**
-             * Returns the time of the event.  If the time is not included, the
-             * event is modified using the current time.
-             * @method getTime
-             * @param {Event} ev the event
-             * @return {Date} the time of the event
-             * @static
-             */
-            getTime: function(ev) {
-                if (!ev.time) {
-                    var t = new Date().getTime();
-                    try {
-                        ev.time = t;
-                    } catch(ex) { 
-                        this.lastError = ex;
-                        return t;
-                    }
-                }
-
-                return ev.time;
-            },
-
-            /**
-             * Convenience method for stopPropagation + preventDefault
-             * @method stopEvent
-             * @param {Event} ev the event
-             * @static
-             */
-            stopEvent: function(ev) {
-                this.stopPropagation(ev);
-                this.preventDefault(ev);
-            },
-
-            /**
-             * Stops event propagation
-             * @method stopPropagation
-             * @param {Event} ev the event
-             * @static
-             */
-            stopPropagation: function(ev) {
-                if (ev.stopPropagation) {
-                    ev.stopPropagation();
-                } else {
-                    ev.cancelBubble = true;
-                }
-            },
-
-            /**
-             * Prevents the default behavior of the event
-             * @method preventDefault
-             * @param {Event} ev the event
-             * @static
-             */
-            preventDefault: function(ev) {
-                if (ev.preventDefault) {
-                    ev.preventDefault();
-                } else {
-                    ev.returnValue = false;
-                }
-            },
-             
-            /**
-             * Finds the event in the window object, the caller's arguments, or
-             * in the arguments of another method in the callstack.  This is
-             * executed automatically for events registered through the event
-             * manager, so the implementer should not normally need to execute
-             * this function at all.
-             * @method getEvent
-             * @param {Event} e the event parameter from the handler
-             * @param {HTMLElement} boundEl the element the listener is attached to
-             * @return {Event} the event 
-             * @static
-             */
-            getEvent: function(e, boundEl) {
-                var ev = e || window.event;
-
-                if (!ev) {
-                    var c = this.getEvent.caller;
-                    while (c) {
-                        ev = c.arguments[0];
-                        if (ev && Event == ev.constructor) {
-                            break;
-                        }
-                        c = c.caller;
-                    }
-                }
-
-                return ev;
-            },
-
-            /**
-             * Returns the charcode for an event
-             * @method getCharCode
-             * @param {Event} ev the event
-             * @return {int} the event's charCode
-             * @static
-             */
-            getCharCode: function(ev) {
-                var code = ev.keyCode || ev.charCode || 0;
-
-                // webkit key normalization
-                if (YAHOO.env.ua.webkit && (code in webkitKeymap)) {
-                    code = webkitKeymap[code];
-                }
-                return code;
-            },
-
-            /**
-             * Locating the saved event handler data by function ref
-             *
-             * @method _getCacheIndex
-             * @static
-             * @private
-             */
-            _getCacheIndex: function(a, el, sType, fn) {
-                for (var i=0, l=a.length; i<l; i=i+1) {
-                    var li = a[i];
-                    if ( li                 && 
-                         li[this.FN] == fn  && 
-                         li[this.EL] == el  && 
-                         li[this.TYPE] == sType ) {
-                        return i;
-                    }
-                }
-
-                return -1;
-            },
-
-            /**
-             * Generates an unique ID for the element if it does not already 
-             * have one.
-             * @method generateId
-             * @param el the element to create the id for
-             * @return {string} the resulting id of the element
-             * @static
-             */
-            generateId: function(el) {
-                var id = el.id;
-
-                if (!id) {
-                    id = "yuievtautoid-" + counter;
-                    ++counter;
-                    el.id = id;
-                }
-
-                return id;
-            },
-
-
-            /**
-             * We want to be able to use getElementsByTagName as a collection
-             * to attach a group of events to.  Unfortunately, different 
-             * browsers return different types of collections.  This function
-             * tests to determine if the object is array-like.  It will also 
-             * fail if the object is an array, but is empty.
-             * @method _isValidCollection
-             * @param o the object to test
-             * @return {boolean} true if the object is array-like and populated
-             * @static
-             * @private
-             */
-            _isValidCollection: function(o) {
-                try {
-                    return ( o                     && // o is something
-                             typeof o !== "string" && // o is not a string
-                             o.length              && // o is indexed
-                             !o.tagName            && // o is not an HTML element
-                             !o.alert              && // o is not a window
-                             typeof o[0] !== "undefined" );
-                } catch(ex) {
-                    YAHOO.log("node access error (xframe?)", "warn");
-                    return false;
-                }
-
-            },
-
-            /**
-             * @private
-             * @property elCache
-             * DOM element cache
-             * @static
-             * @deprecated Elements are not cached due to issues that arise when
-             * elements are removed and re-added
-             */
-            elCache: {},
-
-            /**
-             * We cache elements bound by id because when the unload event 
-             * fires, we can no longer use document.getElementById
-             * @method getEl
-             * @static
-             * @private
-             * @deprecated Elements are not cached any longer
-             */
-            getEl: function(id) {
-                return (typeof id === "string") ? document.getElementById(id) : id;
-            },
-
-            /**
-             * Clears the element cache
-             * @deprecated Elements are not cached any longer
-             * @method clearCache
-             * @static
-             * @private
-             */
-            clearCache: function() { },
-
-            /**
-             * Custom event the fires when the dom is initially usable
-             * @event DOMReadyEvent
-             */
-            DOMReadyEvent: new YAHOO.util.CustomEvent("DOMReady", YAHOO, 0, 0, 1),
-
-            /**
-             * hook up any deferred listeners
-             * @method _load
-             * @static
-             * @private
-             */
-            _load: function(e) {
-
-                if (!loadComplete) {
-                    loadComplete = true;
-                    var EU = YAHOO.util.Event;
-
-                    // Just in case DOMReady did not go off for some reason
-                    EU._ready();
-
-                    // Available elements may not have been detected before the
-                    // window load event fires. Try to find them now so that the
-                    // the user is more likely to get the onAvailable notifications
-                    // before the window load notification
-                    EU._tryPreloadAttach();
-
-                }
-            },
-
-            /**
-             * Fires the DOMReady event listeners the first time the document is
-             * usable.
-             * @method _ready
-             * @static
-             * @private
-             */
-            _ready: function(e) {
-                var EU = YAHOO.util.Event;
-                if (!EU.DOMReady) {
-                    EU.DOMReady=true;
-
-                    // Fire the content ready custom event
-                    EU.DOMReadyEvent.fire();
-
-                    // Remove the DOMContentLoaded (FF/Opera)
-                    EU._simpleRemove(document, "DOMContentLoaded", EU._ready);
-                }
-            },
-
-            /**
-             * Polling function that runs before the onload event fires, 
-             * attempting to attach to DOM Nodes as soon as they are 
-             * available
-             * @method _tryPreloadAttach
-             * @static
-             * @private
-             */
-            _tryPreloadAttach: function() {
-
-                if (onAvailStack.length === 0) {
-                    retryCount = 0;
-                    if (this._interval) {
-                        // clearInterval(this._interval);
-                        this._interval.cancel();
-                        this._interval = null;
-                    } 
-                    return;
-                }
-
-                if (this.locked) {
-                    return;
-                }
-
-                if (this.isIE) {
-                    // Hold off if DOMReady has not fired and check current
-                    // readyState to protect against the IE operation aborted
-                    // issue.
-                    if (!this.DOMReady) {
-                        this.startInterval();
-                        return;
-                    }
-                }
-
-                this.locked = true;
-
-                // this.logger.debug("tryPreloadAttach");
-
-                // keep trying until after the page is loaded.  We need to 
-                // check the page load state prior to trying to bind the 
-                // elements so that we can be certain all elements have been 
-                // tested appropriately
-                var tryAgain = !loadComplete;
-                if (!tryAgain) {
-                    tryAgain = (retryCount > 0 && onAvailStack.length > 0);
-                }
-
-                // onAvailable
-                var notAvail = [];
-
-                var executeItem = function (el, item) {
-                    var context = el;
-                    if (item.overrideContext) {
-                        if (item.overrideContext === true) {
-                            context = item.obj;
-                        } else {
-                            context = item.overrideContext;
-                        }
-                    }
-                    item.fn.call(context, item.obj);
-                };
-
-                var i, len, item, el, ready=[];
-
-                // onAvailable onContentReady
-                for (i=0, len=onAvailStack.length; i<len; i=i+1) {
-                    item = onAvailStack[i];
-                    if (item) {
-                        el = this.getEl(item.id);
-                        if (el) {
-                            if (item.checkReady) {
-                                if (loadComplete || el.nextSibling || !tryAgain) {
-                                    ready.push(item);
-                                    onAvailStack[i] = null;
-                                }
-                            } else {
-                                executeItem(el, item);
-                                onAvailStack[i] = null;
-                            }
-                        } else {
-                            notAvail.push(item);
-                        }
-                    }
-                }
-                
-                // make sure onContentReady fires after onAvailable
-                for (i=0, len=ready.length; i<len; i=i+1) {
-                    item = ready[i];
-                    executeItem(this.getEl(item.id), item);
-                }
-
-
-                retryCount--;
-
-                if (tryAgain) {
-                    for (i=onAvailStack.length-1; i>-1; i--) {
-                        item = onAvailStack[i];
-                        if (!item || !item.id) {
-                            onAvailStack.splice(i, 1);
-                        }
-                    }
-
-                    this.startInterval();
-                } else {
-                    if (this._interval) {
-                        // clearInterval(this._interval);
-                        this._interval.cancel();
-                        this._interval = null;
-                    }
-                }
-
-                this.locked = false;
-
-            },
-
-            /**
-             * Removes all listeners attached to the given element via addListener.
-             * Optionally, the node's children can also be purged.
-             * Optionally, you can specify a specific type of event to remove.
-             * @method purgeElement
-             * @param {HTMLElement} el the element to purge
-             * @param {boolean} recurse recursively purge this element's children
-             * as well.  Use with caution.
-             * @param {string} sType optional type of listener to purge. If
-             * left out, all listeners will be removed
-             * @static
-             */
-            purgeElement: function(el, recurse, sType) {
-                var oEl = (YAHOO.lang.isString(el)) ? this.getEl(el) : el;
-                var elListeners = this.getListeners(oEl, sType), i, len;
-                if (elListeners) {
-                    for (i=elListeners.length-1; i>-1; i--) {
-                        var l = elListeners[i];
-                        this.removeListener(oEl, l.type, l.fn);
-                    }
-                }
-
-                if (recurse && oEl && oEl.childNodes) {
-                    for (i=0,len=oEl.childNodes.length; i<len ; ++i) {
-                        this.purgeElement(oEl.childNodes[i], recurse, sType);
-                    }
-                }
-            },
-
-            /**
-             * Returns all listeners attached to the given element via addListener.
-             * Optionally, you can specify a specific type of event to return.
-             * @method getListeners
-             * @param el {HTMLElement|string} the element or element id to inspect 
-             * @param sType {string} optional type of listener to return. If
-             * left out, all listeners will be returned
-             * @return {Object} the listener. Contains the following fields:
-             * &nbsp;&nbsp;type:   (string)   the type of event
-             * &nbsp;&nbsp;fn:     (function) the callback supplied to addListener
-             * &nbsp;&nbsp;obj:    (object)   the custom object supplied to addListener
-             * &nbsp;&nbsp;adjust: (boolean|object)  whether or not to adjust the default context
-             * &nbsp;&nbsp;scope: (boolean)  the derived context based on the adjust parameter
-             * &nbsp;&nbsp;index:  (int)      its position in the Event util listener cache
-             * @static
-             */           
-            getListeners: function(el, sType) {
-                var results=[], searchLists;
-                if (!sType) {
-                    searchLists = [listeners, unloadListeners];
-                } else if (sType === "unload") {
-                    searchLists = [unloadListeners];
-                } else {
-                                       sType = this._getType(sType);
-                    searchLists = [listeners];
-                }
-
-                var oEl = (YAHOO.lang.isString(el)) ? this.getEl(el) : el;
-
-                for (var j=0;j<searchLists.length; j=j+1) {
-                    var searchList = searchLists[j];
-                    if (searchList) {
-                        for (var i=0,len=searchList.length; i<len ; ++i) {
-                            var l = searchList[i];
-                            if ( l  && l[this.EL] === oEl && 
-                                    (!sType || sType === l[this.TYPE]) ) {
-                                results.push({
-                                    type:   l[this.TYPE],
-                                    fn:     l[this.FN],
-                                    obj:    l[this.OBJ],
-                                    adjust: l[this.OVERRIDE],
-                                    scope:  l[this.ADJ_SCOPE],
-                                    index:  i
-                                });
-                            }
-                        }
-                    }
-                }
-
-                return (results.length) ? results : null;
-            },
-
-            /**
-             * Removes all listeners registered by pe.event.  Called 
-             * automatically during the unload event.
-             * @method _unload
-             * @static
-             * @private
-             */
-            _unload: function(e) {
-
-                var EU = YAHOO.util.Event, i, j, l, len, index,
-                         ul = unloadListeners.slice(), context;
-
-                // execute and clear stored unload listeners
-                for (i=0, len=unloadListeners.length; i<len; ++i) {
-                    l = ul[i];
-                    if (l) {
-                        context = window;
-                        if (l[EU.ADJ_SCOPE]) {
-                            if (l[EU.ADJ_SCOPE] === true) {
-                                context = l[EU.UNLOAD_OBJ];
-                            } else {
-                                context = l[EU.ADJ_SCOPE];
-                            }
-                        }
-                        l[EU.FN].call(context, EU.getEvent(e, l[EU.EL]), l[EU.UNLOAD_OBJ] );
-                        ul[i] = null;
-                    }
-                }
-
-                l = null;
-                context = null;
-                unloadListeners = null;
-
-                // Remove listeners to handle IE memory leaks
-                // 2.5.0 listeners are removed for all browsers again.  FireFox preserves
-                // at least some listeners between page refreshes, potentially causing
-                // errors during page load (mouseover listeners firing before they
-                // should if the user moves the mouse at the correct moment).
-                if (listeners) {
-                    for (j=listeners.length-1; j>-1; j--) {
-                        l = listeners[j];
-                        if (l) {
-                            EU.removeListener(l[EU.EL], l[EU.TYPE], l[EU.FN], j);
-                        } 
-                    }
-                    l=null;
-                }
-
-                EU._simpleRemove(window, "unload", EU._unload);
-
-            },
-
-            /**
-             * Returns scrollLeft
-             * @method _getScrollLeft
-             * @static
-             * @private
-             */
-            _getScrollLeft: function() {
-                return this._getScroll()[1];
-            },
-
-            /**
-             * Returns scrollTop
-             * @method _getScrollTop
-             * @static
-             * @private
-             */
-            _getScrollTop: function() {
-                return this._getScroll()[0];
-            },
-
-            /**
-             * Returns the scrollTop and scrollLeft.  Used to calculate the 
-             * pageX and pageY in Internet Explorer
-             * @method _getScroll
-             * @static
-             * @private
-             */
-            _getScroll: function() {
-                var dd = document.documentElement, db = document.body;
-                if (dd && (dd.scrollTop || dd.scrollLeft)) {
-                    return [dd.scrollTop, dd.scrollLeft];
-                } else if (db) {
-                    return [db.scrollTop, db.scrollLeft];
-                } else {
-                    return [0, 0];
-                }
-            },
-            
-            /**
-             * Used by old versions of CustomEvent, restored for backwards
-             * compatibility
-             * @method regCE
-             * @private
-             * @static
-             * @deprecated still here for backwards compatibility
-             */
-            regCE: function() {},
-
-            /**
-             * Adds a DOM event directly without the caching, cleanup, context adj, etc
-             *
-             * @method _simpleAdd
-             * @param {HTMLElement} el      the element to bind the handler to
-             * @param {string}      sType   the type of event handler
-             * @param {function}    fn      the callback to invoke
-             * @param {boolen}      capture capture or bubble phase
-             * @static
-             * @private
-             */
-            _simpleAdd: function () {
-                if (window.addEventListener) {
-                    return function(el, sType, fn, capture) {
-                        el.addEventListener(sType, fn, (capture));
-                    };
-                } else if (window.attachEvent) {
-                    return function(el, sType, fn, capture) {
-                        el.attachEvent("on" + sType, fn);
-                    };
-                } else {
-                    return function(){};
-                }
-            }(),
-
-            /**
-             * Basic remove listener
-             *
-             * @method _simpleRemove
-             * @param {HTMLElement} el      the element to bind the handler to
-             * @param {string}      sType   the type of event handler
-             * @param {function}    fn      the callback to invoke
-             * @param {boolen}      capture capture or bubble phase
-             * @static
-             * @private
-             */
-            _simpleRemove: function() {
-                if (window.removeEventListener) {
-                    return function (el, sType, fn, capture) {
-                        el.removeEventListener(sType, fn, (capture));
-                    };
-                } else if (window.detachEvent) {
-                    return function (el, sType, fn) {
-                        el.detachEvent("on" + sType, fn);
-                    };
-                } else {
-                    return function(){};
-                }
-            }()
-        };
-
-    }();
-
-    (function() {
-        var EU = YAHOO.util.Event;
-
-        /**
-         * YAHOO.util.Event.on is an alias for addListener
-         * @method on
-         * @see addListener
-         * @static
-         */
-        EU.on = EU.addListener;
-
-        /**
-         * YAHOO.util.Event.onFocus is an alias for addFocusListener
-         * @method onFocus
-         * @see addFocusListener
-         * @static
-                * @deprecated use YAHOO.util.Event.on and specify "focusin" as the event type.
-         */
-        EU.onFocus = EU.addFocusListener;
-
-        /**
-         * YAHOO.util.Event.onBlur is an alias for addBlurListener
-         * @method onBlur
-         * @see addBlurListener
-         * @static
-                * @deprecated use YAHOO.util.Event.on and specify "focusout" as the event type.
-         */     
-        EU.onBlur = EU.addBlurListener;
-
-/*! DOMReady: based on work by: Dean Edwards/John Resig/Matthias Miller/Diego Perini */
-
-        // Internet Explorer: use the readyState of a defered script.
-        // This isolates what appears to be a safe moment to manipulate
-        // the DOM prior to when the document's readyState suggests
-        // it is safe to do so.
-        if (EU.isIE) {
-            if (self !== self.top) {
-                document.onreadystatechange = function() {
-                    if (document.readyState == 'complete') {
-                        document.onreadystatechange = null;
-                        EU._ready();
-                    }
-                };
-            } else {
-
-                // Process onAvailable/onContentReady items when the 
-                // DOM is ready.
-                YAHOO.util.Event.onDOMReady(
-                        YAHOO.util.Event._tryPreloadAttach,
-                        YAHOO.util.Event, true);
-                
-                var n = document.createElement('p');  
-
-                EU._dri = setInterval(function() {
-                    try {
-                        // throws an error if doc is not ready
-                        n.doScroll('left');
-                        clearInterval(EU._dri);
-                        EU._dri = null;
-                        EU._ready();
-                        n = null;
-                    } catch (ex) { 
-                    }
-                }, EU.POLL_INTERVAL); 
-            }
-
-        // The document's readyState in Safari currently will
-        // change to loaded/complete before images are loaded.
-        } else if (EU.webkit && EU.webkit < 525) {
-
-            EU._dri = setInterval(function() {
-                var rs=document.readyState;
-                if ("loaded" == rs || "complete" == rs) {
-                    clearInterval(EU._dri);
-                    EU._dri = null;
-                    EU._ready();
-                }
-            }, EU.POLL_INTERVAL); 
-
-        // FireFox and Opera: These browsers provide a event for this
-        // moment.  The latest WebKit releases now support this event.
-        } else {
-
-            EU._simpleAdd(document, "DOMContentLoaded", EU._ready);
-
-        }
-        /////////////////////////////////////////////////////////////
-
-
-        EU._simpleAdd(window, "load", EU._load);
-        EU._simpleAdd(window, "unload", EU._unload);
-        EU._tryPreloadAttach();
-    })();
-
-}
-/**
- * EventProvider is designed to be used with YAHOO.augment to wrap 
- * CustomEvents in an interface that allows events to be subscribed to 
- * and fired by name.  This makes it possible for implementing code to
- * subscribe to an event that either has not been created yet, or will
- * not be created at all.
- *
- * @Class EventProvider
- */
-YAHOO.util.EventProvider = function() { };
-
-YAHOO.util.EventProvider.prototype = {
-
-    /**
-     * Private storage of custom events
-     * @property __yui_events
-     * @type Object[]
-     * @private
-     */
-    __yui_events: null,
-
-    /**
-     * Private storage of custom event subscribers
-     * @property __yui_subscribers
-     * @type Object[]
-     * @private
-     */
-    __yui_subscribers: null,
-    
-    /**
-     * Subscribe to a CustomEvent by event type
-     *
-     * @method subscribe
-     * @param p_type     {string}   the type, or name of the event
-     * @param p_fn       {function} the function to exectute when the event fires
-     * @param p_obj      {Object}   An object to be passed along when the event 
-     *                              fires
-     * @param overrideContext {boolean}  If true, the obj passed in becomes the 
-     *                              execution scope of the listener
-     */
-    subscribe: function(p_type, p_fn, p_obj, overrideContext) {
-
-        this.__yui_events = this.__yui_events || {};
-        var ce = this.__yui_events[p_type];
-
-        if (ce) {
-            ce.subscribe(p_fn, p_obj, overrideContext);
-        } else {
-            this.__yui_subscribers = this.__yui_subscribers || {};
-            var subs = this.__yui_subscribers;
-            if (!subs[p_type]) {
-                subs[p_type] = [];
-            }
-            subs[p_type].push(
-                { fn: p_fn, obj: p_obj, overrideContext: overrideContext } );
-        }
-    },
-
-    /**
-     * Unsubscribes one or more listeners the from the specified event
-     * @method unsubscribe
-     * @param p_type {string}   The type, or name of the event.  If the type
-     *                          is not specified, it will attempt to remove
-     *                          the listener from all hosted events.
-     * @param p_fn   {Function} The subscribed function to unsubscribe, if not
-     *                          supplied, all subscribers will be removed.
-     * @param p_obj  {Object}   The custom object passed to subscribe.  This is
-     *                        optional, but if supplied will be used to
-     *                        disambiguate multiple listeners that are the same
-     *                        (e.g., you subscribe many object using a function
-     *                        that lives on the prototype)
-     * @return {boolean} true if the subscriber was found and detached.
-     */
-    unsubscribe: function(p_type, p_fn, p_obj) {
-        this.__yui_events = this.__yui_events || {};
-        var evts = this.__yui_events;
-        if (p_type) {
-            var ce = evts[p_type];
-            if (ce) {
-                return ce.unsubscribe(p_fn, p_obj);
-            }
-        } else {
-            var ret = true;
-            for (var i in evts) {
-                if (YAHOO.lang.hasOwnProperty(evts, i)) {
-                    ret = ret && evts[i].unsubscribe(p_fn, p_obj);
-                }
-            }
-            return ret;
-        }
-
-        return false;
-    },
-    
-    /**
-     * Removes all listeners from the specified event.  If the event type
-     * is not specified, all listeners from all hosted custom events will
-     * be removed.
-     * @method unsubscribeAll
-     * @param p_type {string}   The type, or name of the event
-     */
-    unsubscribeAll: function(p_type) {
-        return this.unsubscribe(p_type);
-    },
-
-    /**
-     * Creates a new custom event of the specified type.  If a custom event
-     * by that name already exists, it will not be re-created.  In either
-     * case the custom event is returned. 
-     *
-     * @method createEvent
-     *
-     * @param p_type {string} the type, or name of the event
-     * @param p_config {object} optional config params.  Valid properties are:
-     *
-     *  <ul>
-     *    <li>
-     *      scope: defines the default execution scope.  If not defined
-     *      the default scope will be this instance.
-     *    </li>
-     *    <li>
-     *      silent: if true, the custom event will not generate log messages.
-     *      This is false by default.
-     *    </li>
-     *    <li>
-     *      fireOnce: if true, the custom event will only notify subscribers
-     *      once regardless of the number of times the event is fired.  In
-     *      addition, new subscribers will be executed immediately if the
-     *      event has already fired.
-     *      This is false by default.
-     *    </li>
-     *    <li>
-     *      onSubscribeCallback: specifies a callback to execute when the
-     *      event has a new subscriber.  This will fire immediately for
-     *      each queued subscriber if any exist prior to the creation of
-     *      the event.
-     *    </li>
-     *  </ul>
-     *
-     *  @return {CustomEvent} the custom event
-     *
-     */
-    createEvent: function(p_type, p_config) {
-
-        this.__yui_events = this.__yui_events || {};
-        var opts = p_config || {},
-            events = this.__yui_events, ce;
-
-        if (events[p_type]) {
-YAHOO.log("EventProvider createEvent skipped: '"+p_type+"' already exists");
-        } else {
-
-            ce = new YAHOO.util.CustomEvent(p_type, opts.scope || this, opts.silent,
-                         YAHOO.util.CustomEvent.FLAT, opts.fireOnce);
-
-            events[p_type] = ce;
-
-            if (opts.onSubscribeCallback) {
-                ce.subscribeEvent.subscribe(opts.onSubscribeCallback);
-            }
-
-            this.__yui_subscribers = this.__yui_subscribers || {};
-            var qs = this.__yui_subscribers[p_type];
-
-            if (qs) {
-                for (var i=0; i<qs.length; ++i) {
-                    ce.subscribe(qs[i].fn, qs[i].obj, qs[i].overrideContext);
-                }
-            }
-        }
-
-        return events[p_type];
-    },
-
-
-   /**
-     * Fire a custom event by name.  The callback functions will be executed
-     * from the scope specified when the event was created, and with the 
-     * following parameters:
-     *   <ul>
-     *   <li>The first argument fire() was executed with</li>
-     *   <li>The custom object (if any) that was passed into the subscribe() 
-     *       method</li>
-     *   </ul>
-     * @method fireEvent
-     * @param p_type    {string}  the type, or name of the event
-     * @param arguments {Object*} an arbitrary set of parameters to pass to 
-     *                            the handler.
-     * @return {boolean} the return value from CustomEvent.fire
-     *                   
-     */
-    fireEvent: function(p_type) {
-
-        this.__yui_events = this.__yui_events || {};
-        var ce = this.__yui_events[p_type];
-
-        if (!ce) {
-YAHOO.log(p_type + "event fired before it was created.");
-            return null;
-        }
-
-        var args = [];
-        for (var i=1; i<arguments.length; ++i) {
-            args.push(arguments[i]);
-        }
-        return ce.fire.apply(ce, args);
-    },
-
-    /**
-     * Returns true if the custom event of the provided type has been created
-     * with createEvent.
-     * @method hasEvent
-     * @param type {string} the type, or name of the event
-     */
-    hasEvent: function(type) {
-        if (this.__yui_events) {
-            if (this.__yui_events[type]) {
-                return true;
-            }
-        }
-        return false;
-    }
-
-};
-
-(function() {
-
-    var Event = YAHOO.util.Event, Lang = YAHOO.lang;
-
-/**
-* KeyListener is a utility that provides an easy interface for listening for
-* keydown/keyup events fired against DOM elements.
-* @namespace YAHOO.util
-* @class KeyListener
-* @constructor
-* @param {HTMLElement} attachTo The element or element ID to which the key 
-*                               event should be attached
-* @param {String}      attachTo The element or element ID to which the key
-*                               event should be attached
-* @param {Object}      keyData  The object literal representing the key(s) 
-*                               to detect. Possible attributes are 
-*                               shift(boolean), alt(boolean), ctrl(boolean) 
-*                               and keys(either an int or an array of ints 
-*                               representing keycodes).
-* @param {Function}    handler  The CustomEvent handler to fire when the 
-*                               key event is detected
-* @param {Object}      handler  An object literal representing the handler. 
-* @param {String}      event    Optional. The event (keydown or keyup) to 
-*                               listen for. Defaults automatically to keydown.
-*
-* @knownissue the "keypress" event is completely broken in Safari 2.x and below.
-*             the workaround is use "keydown" for key listening.  However, if
-*             it is desired to prevent the default behavior of the keystroke,
-*             that can only be done on the keypress event.  This makes key
-*             handling quite ugly.
-* @knownissue keydown is also broken in Safari 2.x and below for the ESC key.
-*             There currently is no workaround other than choosing another
-*             key to listen for.
-*/
-YAHOO.util.KeyListener = function(attachTo, keyData, handler, event) {
-    if (!attachTo) {
-        YAHOO.log("No attachTo element specified", "error");
-    } else if (!keyData) {
-        YAHOO.log("No keyData specified", "error");
-    } else if (!handler) {
-        YAHOO.log("No handler specified", "error");
-    } 
-    
-    if (!event) {
-        event = YAHOO.util.KeyListener.KEYDOWN;
-    }
-
-    /**
-    * The CustomEvent fired internally when a key is pressed
-    * @event keyEvent
-    * @private
-    * @param {Object} keyData The object literal representing the key(s) to 
-    *                         detect. Possible attributes are shift(boolean), 
-    *                         alt(boolean), ctrl(boolean) and keys(either an 
-    *                         int or an array of ints representing keycodes).
-    */
-    var keyEvent = new YAHOO.util.CustomEvent("keyPressed");
-    
-    /**
-    * The CustomEvent fired when the KeyListener is enabled via the enable() 
-    * function
-    * @event enabledEvent
-    * @param {Object} keyData The object literal representing the key(s) to 
-    *                         detect. Possible attributes are shift(boolean), 
-    *                         alt(boolean), ctrl(boolean) and keys(either an 
-    *                         int or an array of ints representing keycodes).
-    */
-    this.enabledEvent = new YAHOO.util.CustomEvent("enabled");
-
-    /**
-    * The CustomEvent fired when the KeyListener is disabled via the 
-    * disable() function
-    * @event disabledEvent
-    * @param {Object} keyData The object literal representing the key(s) to 
-    *                         detect. Possible attributes are shift(boolean), 
-    *                         alt(boolean), ctrl(boolean) and keys(either an 
-    *                         int or an array of ints representing keycodes).
-    */
-    this.disabledEvent = new YAHOO.util.CustomEvent("disabled");
-
-    if (Lang.isString(attachTo)) {
-        attachTo = document.getElementById(attachTo); // No Dom util
-    }
-
-    if (Lang.isFunction(handler)) {
-        keyEvent.subscribe(handler);
-    } else {
-        keyEvent.subscribe(handler.fn, handler.scope, handler.correctScope);
-    }
-
-    /**
-    * Handles the key event when a key is pressed.
-    * @method handleKeyPress
-    * @param {DOMEvent} e   The keypress DOM event
-    * @param {Object}   obj The DOM event scope object
-    * @private
-    */
-    function handleKeyPress(e, obj) {
-        if (! keyData.shift) {  
-            keyData.shift = false; 
-        }
-        if (! keyData.alt) {    
-            keyData.alt = false;
-        }
-        if (! keyData.ctrl) {
-            keyData.ctrl = false;
-        }
-
-        // check held down modifying keys first
-        if (e.shiftKey == keyData.shift && 
-            e.altKey   == keyData.alt &&
-            e.ctrlKey  == keyData.ctrl) { // if we pass this, all modifiers match
-            
-            var dataItem, keys = keyData.keys, key;
-
-            if (YAHOO.lang.isArray(keys)) {
-                for (var i=0;i<keys.length;i++) {
-                    dataItem = keys[i];
-                    key = Event.getCharCode(e);
-
-                    if (dataItem == key) {
-                        keyEvent.fire(key, e);
-                        break;
-                    }
-                }
-            } else {
-                key = Event.getCharCode(e);
-                if (keys == key ) {
-                    keyEvent.fire(key, e);
-                }
-            }
-        }
-    }
-
-    /**
-    * Enables the KeyListener by attaching the DOM event listeners to the 
-    * target DOM element
-    * @method enable
-    */
-    this.enable = function() {
-        if (! this.enabled) {
-            Event.on(attachTo, event, handleKeyPress);
-            this.enabledEvent.fire(keyData);
-        }
-        /**
-        * Boolean indicating the enabled/disabled state of the Tooltip
-        * @property enabled
-        * @type Boolean
-        */
-        this.enabled = true;
-    };
-
-    /**
-    * Disables the KeyListener by removing the DOM event listeners from the 
-    * target DOM element
-    * @method disable
-    */
-    this.disable = function() {
-        if (this.enabled) {
-            Event.removeListener(attachTo, event, handleKeyPress);
-            this.disabledEvent.fire(keyData);
-        }
-        this.enabled = false;
-    };
-
-    /**
-    * Returns a String representation of the object.
-    * @method toString
-    * @return {String}  The string representation of the KeyListener
-    */ 
-    this.toString = function() {
-        return "KeyListener [" + keyData.keys + "] " + attachTo.tagName + 
-                (attachTo.id ? "[" + attachTo.id + "]" : "");
-    };
-
-};
-
-var KeyListener = YAHOO.util.KeyListener;
-
-/**
- * Constant representing the DOM "keydown" event.
- * @property YAHOO.util.KeyListener.KEYDOWN
- * @static
- * @final
- * @type String
- */
-KeyListener.KEYDOWN = "keydown";
-
-/**
- * Constant representing the DOM "keyup" event.
- * @property YAHOO.util.KeyListener.KEYUP
- * @static
- * @final
- * @type String
- */
-KeyListener.KEYUP = "keyup";
-
-/**
- * keycode constants for a subset of the special keys
- * @property KEY
- * @static
- * @final
- */
-KeyListener.KEY = {
-    ALT          : 18,
-    BACK_SPACE   : 8,
-    CAPS_LOCK    : 20,
-    CONTROL      : 17,
-    DELETE       : 46,
-    DOWN         : 40,
-    END          : 35,
-    ENTER        : 13,
-    ESCAPE       : 27,
-    HOME         : 36,
-    LEFT         : 37,
-    META         : 224,
-    NUM_LOCK     : 144,
-    PAGE_DOWN    : 34,
-    PAGE_UP      : 33, 
-    PAUSE        : 19,
-    PRINTSCREEN  : 44,
-    RIGHT        : 39,
-    SCROLL_LOCK  : 145,
-    SHIFT        : 16,
-    SPACE        : 32,
-    TAB          : 9,
-    UP           : 38
-};
-
-})();
-YAHOO.register("event", YAHOO.util.Event, {version: "2.8.0r4", build: "2449"});
diff --git a/koha-tmpl/intranet-tmpl/prog/en/lib/yui/event/event-min.js b/koha-tmpl/intranet-tmpl/prog/en/lib/yui/event/event-min.js
deleted file mode 100644 (file)
index 27cb4a3..0000000
+++ /dev/null
@@ -1,11 +0,0 @@
-/*
-Copyright (c) 2009, Yahoo! Inc. All rights reserved.
-Code licensed under the BSD License:
-http://developer.yahoo.net/yui/license.txt
-version: 2.8.0r4
-*/
-YAHOO.util.CustomEvent=function(D,C,B,A,E){this.type=D;this.scope=C||window;this.silent=B;this.fireOnce=E;this.fired=false;this.firedWith=null;this.signature=A||YAHOO.util.CustomEvent.LIST;this.subscribers=[];if(!this.silent){}var F="_YUICEOnSubscribe";if(D!==F){this.subscribeEvent=new YAHOO.util.CustomEvent(F,this,true);}this.lastError=null;};YAHOO.util.CustomEvent.LIST=0;YAHOO.util.CustomEvent.FLAT=1;YAHOO.util.CustomEvent.prototype={subscribe:function(B,C,D){if(!B){throw new Error("Invalid callback for subscriber to '"+this.type+"'");}if(this.subscribeEvent){this.subscribeEvent.fire(B,C,D);}var A=new YAHOO.util.Subscriber(B,C,D);if(this.fireOnce&&this.fired){this.notify(A,this.firedWith);}else{this.subscribers.push(A);}},unsubscribe:function(D,F){if(!D){return this.unsubscribeAll();}var E=false;for(var B=0,A=this.subscribers.length;B<A;++B){var C=this.subscribers[B];if(C&&C.contains(D,F)){this._delete(B);E=true;}}return E;},fire:function(){this.lastError=null;var H=[],A=this.subscribers.length;var D=[].slice.call(arguments,0),C=true,F,B=false;if(this.fireOnce){if(this.fired){return true;}else{this.firedWith=D;}}this.fired=true;if(!A&&this.silent){return true;}if(!this.silent){}var E=this.subscribers.slice();for(F=0;F<A;++F){var G=E[F];if(!G){B=true;}else{C=this.notify(G,D);if(false===C){if(!this.silent){}break;}}}return(C!==false);},notify:function(F,C){var B,H=null,E=F.getScope(this.scope),A=YAHOO.util.Event.throwErrors;if(!this.silent){}if(this.signature==YAHOO.util.CustomEvent.FLAT){if(C.length>0){H=C[0];}try{B=F.fn.call(E,H,F.obj);}catch(G){this.lastError=G;if(A){throw G;}}}else{try{B=F.fn.call(E,this.type,C,F.obj);}catch(D){this.lastError=D;if(A){throw D;}}}return B;},unsubscribeAll:function(){var A=this.subscribers.length,B;for(B=A-1;B>-1;B--){this._delete(B);}this.subscribers=[];return A;},_delete:function(A){var B=this.subscribers[A];if(B){delete B.fn;delete B.obj;}this.subscribers.splice(A,1);},toString:function(){return"CustomEvent: "+"'"+this.type+"', "+"context: "+this.scope;}};YAHOO.util.Subscriber=function(A,B,C){this.fn=A;this.obj=YAHOO.lang.isUndefined(B)?null:B;this.overrideContext=C;};YAHOO.util.Subscriber.prototype.getScope=function(A){if(this.overrideContext){if(this.overrideContext===true){return this.obj;}else{return this.overrideContext;}}return A;};YAHOO.util.Subscriber.prototype.contains=function(A,B){if(B){return(this.fn==A&&this.obj==B);}else{return(this.fn==A);}};YAHOO.util.Subscriber.prototype.toString=function(){return"Subscriber { obj: "+this.obj+", overrideContext: "+(this.overrideContext||"no")+" }";};if(!YAHOO.util.Event){YAHOO.util.Event=function(){var G=false,H=[],J=[],A=0,E=[],B=0,C={63232:38,63233:40,63234:37,63235:39,63276:33,63277:34,25:9},D=YAHOO.env.ua.ie,F="focusin",I="focusout";return{POLL_RETRYS:500,POLL_INTERVAL:40,EL:0,TYPE:1,FN:2,WFN:3,UNLOAD_OBJ:3,ADJ_SCOPE:4,OBJ:5,OVERRIDE:6,CAPTURE:7,lastError:null,isSafari:YAHOO.env.ua.webkit,webkit:YAHOO.env.ua.webkit,isIE:D,_interval:null,_dri:null,_specialTypes:{focusin:(D?"focusin":"focus"),focusout:(D?"focusout":"blur")},DOMReady:false,throwErrors:false,startInterval:function(){if(!this._interval){this._interval=YAHOO.lang.later(this.POLL_INTERVAL,this,this._tryPreloadAttach,null,true);}},onAvailable:function(Q,M,O,P,N){var K=(YAHOO.lang.isString(Q))?[Q]:Q;for(var L=0;L<K.length;L=L+1){E.push({id:K[L],fn:M,obj:O,overrideContext:P,checkReady:N});}A=this.POLL_RETRYS;this.startInterval();},onContentReady:function(N,K,L,M){this.onAvailable(N,K,L,M,true);},onDOMReady:function(){this.DOMReadyEvent.subscribe.apply(this.DOMReadyEvent,arguments);},_addListener:function(M,K,V,P,T,Y){if(!V||!V.call){return false;}if(this._isValidCollection(M)){var W=true;for(var Q=0,S=M.length;Q<S;++Q){W=this.on(M[Q],K,V,P,T)&&W;}return W;}else{if(YAHOO.lang.isString(M)){var O=this.getEl(M);if(O){M=O;}else{this.onAvailable(M,function(){YAHOO.util.Event._addListener(M,K,V,P,T,Y);});return true;}}}if(!M){return false;}if("unload"==K&&P!==this){J[J.length]=[M,K,V,P,T];return true;}var L=M;if(T){if(T===true){L=P;}else{L=T;}}var N=function(Z){return V.call(L,YAHOO.util.Event.getEvent(Z,M),P);};var X=[M,K,V,N,L,P,T,Y];var R=H.length;H[R]=X;try{this._simpleAdd(M,K,N,Y);}catch(U){this.lastError=U;this.removeListener(M,K,V);return false;}return true;},_getType:function(K){return this._specialTypes[K]||K;},addListener:function(M,P,L,N,O){var K=((P==F||P==I)&&!YAHOO.env.ua.ie)?true:false;return this._addListener(M,this._getType(P),L,N,O,K);},addFocusListener:function(L,K,M,N){return this.on(L,F,K,M,N);},removeFocusListener:function(L,K){return this.removeListener(L,F,K);},addBlurListener:function(L,K,M,N){return this.on(L,I,K,M,N);},removeBlurListener:function(L,K){return this.removeListener(L,I,K);},removeListener:function(L,K,R){var M,P,U;K=this._getType(K);if(typeof L=="string"){L=this.getEl(L);}else{if(this._isValidCollection(L)){var S=true;for(M=L.length-1;M>-1;M--){S=(this.removeListener(L[M],K,R)&&S);}return S;}}if(!R||!R.call){return this.purgeElement(L,false,K);}if("unload"==K){for(M=J.length-1;M>-1;M--){U=J[M];if(U&&U[0]==L&&U[1]==K&&U[2]==R){J.splice(M,1);return true;}}return false;}var N=null;var O=arguments[3];if("undefined"===typeof O){O=this._getCacheIndex(H,L,K,R);}if(O>=0){N=H[O];}if(!L||!N){return false;}var T=N[this.CAPTURE]===true?true:false;try{this._simpleRemove(L,K,N[this.WFN],T);}catch(Q){this.lastError=Q;return false;}delete H[O][this.WFN];delete H[O][this.FN];H.splice(O,1);return true;},getTarget:function(M,L){var K=M.target||M.srcElement;return this.resolveTextNode(K);},resolveTextNode:function(L){try{if(L&&3==L.nodeType){return L.parentNode;}}catch(K){}return L;},getPageX:function(L){var K=L.pageX;if(!K&&0!==K){K=L.clientX||0;if(this.isIE){K+=this._getScrollLeft();}}return K;},getPageY:function(K){var L=K.pageY;if(!L&&0!==L){L=K.clientY||0;if(this.isIE){L+=this._getScrollTop();}}return L;},getXY:function(K){return[this.getPageX(K),this.getPageY(K)];},getRelatedTarget:function(L){var K=L.relatedTarget;if(!K){if(L.type=="mouseout"){K=L.toElement;
-}else{if(L.type=="mouseover"){K=L.fromElement;}}}return this.resolveTextNode(K);},getTime:function(M){if(!M.time){var L=new Date().getTime();try{M.time=L;}catch(K){this.lastError=K;return L;}}return M.time;},stopEvent:function(K){this.stopPropagation(K);this.preventDefault(K);},stopPropagation:function(K){if(K.stopPropagation){K.stopPropagation();}else{K.cancelBubble=true;}},preventDefault:function(K){if(K.preventDefault){K.preventDefault();}else{K.returnValue=false;}},getEvent:function(M,K){var L=M||window.event;if(!L){var N=this.getEvent.caller;while(N){L=N.arguments[0];if(L&&Event==L.constructor){break;}N=N.caller;}}return L;},getCharCode:function(L){var K=L.keyCode||L.charCode||0;if(YAHOO.env.ua.webkit&&(K in C)){K=C[K];}return K;},_getCacheIndex:function(M,P,Q,O){for(var N=0,L=M.length;N<L;N=N+1){var K=M[N];if(K&&K[this.FN]==O&&K[this.EL]==P&&K[this.TYPE]==Q){return N;}}return -1;},generateId:function(K){var L=K.id;if(!L){L="yuievtautoid-"+B;++B;K.id=L;}return L;},_isValidCollection:function(L){try{return(L&&typeof L!=="string"&&L.length&&!L.tagName&&!L.alert&&typeof L[0]!=="undefined");}catch(K){return false;}},elCache:{},getEl:function(K){return(typeof K==="string")?document.getElementById(K):K;},clearCache:function(){},DOMReadyEvent:new YAHOO.util.CustomEvent("DOMReady",YAHOO,0,0,1),_load:function(L){if(!G){G=true;var K=YAHOO.util.Event;K._ready();K._tryPreloadAttach();}},_ready:function(L){var K=YAHOO.util.Event;if(!K.DOMReady){K.DOMReady=true;K.DOMReadyEvent.fire();K._simpleRemove(document,"DOMContentLoaded",K._ready);}},_tryPreloadAttach:function(){if(E.length===0){A=0;if(this._interval){this._interval.cancel();this._interval=null;}return;}if(this.locked){return;}if(this.isIE){if(!this.DOMReady){this.startInterval();return;}}this.locked=true;var Q=!G;if(!Q){Q=(A>0&&E.length>0);}var P=[];var R=function(T,U){var S=T;if(U.overrideContext){if(U.overrideContext===true){S=U.obj;}else{S=U.overrideContext;}}U.fn.call(S,U.obj);};var L,K,O,N,M=[];for(L=0,K=E.length;L<K;L=L+1){O=E[L];if(O){N=this.getEl(O.id);if(N){if(O.checkReady){if(G||N.nextSibling||!Q){M.push(O);E[L]=null;}}else{R(N,O);E[L]=null;}}else{P.push(O);}}}for(L=0,K=M.length;L<K;L=L+1){O=M[L];R(this.getEl(O.id),O);}A--;if(Q){for(L=E.length-1;L>-1;L--){O=E[L];if(!O||!O.id){E.splice(L,1);}}this.startInterval();}else{if(this._interval){this._interval.cancel();this._interval=null;}}this.locked=false;},purgeElement:function(O,P,R){var M=(YAHOO.lang.isString(O))?this.getEl(O):O;var Q=this.getListeners(M,R),N,K;if(Q){for(N=Q.length-1;N>-1;N--){var L=Q[N];this.removeListener(M,L.type,L.fn);}}if(P&&M&&M.childNodes){for(N=0,K=M.childNodes.length;N<K;++N){this.purgeElement(M.childNodes[N],P,R);}}},getListeners:function(M,K){var P=[],L;if(!K){L=[H,J];}else{if(K==="unload"){L=[J];}else{K=this._getType(K);L=[H];}}var R=(YAHOO.lang.isString(M))?this.getEl(M):M;for(var O=0;O<L.length;O=O+1){var T=L[O];if(T){for(var Q=0,S=T.length;Q<S;++Q){var N=T[Q];if(N&&N[this.EL]===R&&(!K||K===N[this.TYPE])){P.push({type:N[this.TYPE],fn:N[this.FN],obj:N[this.OBJ],adjust:N[this.OVERRIDE],scope:N[this.ADJ_SCOPE],index:Q});}}}}return(P.length)?P:null;},_unload:function(R){var L=YAHOO.util.Event,O,N,M,Q,P,S=J.slice(),K;for(O=0,Q=J.length;O<Q;++O){M=S[O];if(M){K=window;if(M[L.ADJ_SCOPE]){if(M[L.ADJ_SCOPE]===true){K=M[L.UNLOAD_OBJ];}else{K=M[L.ADJ_SCOPE];}}M[L.FN].call(K,L.getEvent(R,M[L.EL]),M[L.UNLOAD_OBJ]);S[O]=null;}}M=null;K=null;J=null;if(H){for(N=H.length-1;N>-1;N--){M=H[N];if(M){L.removeListener(M[L.EL],M[L.TYPE],M[L.FN],N);}}M=null;}L._simpleRemove(window,"unload",L._unload);},_getScrollLeft:function(){return this._getScroll()[1];},_getScrollTop:function(){return this._getScroll()[0];},_getScroll:function(){var K=document.documentElement,L=document.body;if(K&&(K.scrollTop||K.scrollLeft)){return[K.scrollTop,K.scrollLeft];}else{if(L){return[L.scrollTop,L.scrollLeft];}else{return[0,0];}}},regCE:function(){},_simpleAdd:function(){if(window.addEventListener){return function(M,N,L,K){M.addEventListener(N,L,(K));};}else{if(window.attachEvent){return function(M,N,L,K){M.attachEvent("on"+N,L);};}else{return function(){};}}}(),_simpleRemove:function(){if(window.removeEventListener){return function(M,N,L,K){M.removeEventListener(N,L,(K));};}else{if(window.detachEvent){return function(L,M,K){L.detachEvent("on"+M,K);};}else{return function(){};}}}()};}();(function(){var EU=YAHOO.util.Event;EU.on=EU.addListener;EU.onFocus=EU.addFocusListener;EU.onBlur=EU.addBlurListener;
-/* DOMReady: based on work by: Dean Edwards/John Resig/Matthias Miller/Diego Perini */
-if(EU.isIE){if(self!==self.top){document.onreadystatechange=function(){if(document.readyState=="complete"){document.onreadystatechange=null;EU._ready();}};}else{YAHOO.util.Event.onDOMReady(YAHOO.util.Event._tryPreloadAttach,YAHOO.util.Event,true);var n=document.createElement("p");EU._dri=setInterval(function(){try{n.doScroll("left");clearInterval(EU._dri);EU._dri=null;EU._ready();n=null;}catch(ex){}},EU.POLL_INTERVAL);}}else{if(EU.webkit&&EU.webkit<525){EU._dri=setInterval(function(){var rs=document.readyState;if("loaded"==rs||"complete"==rs){clearInterval(EU._dri);EU._dri=null;EU._ready();}},EU.POLL_INTERVAL);}else{EU._simpleAdd(document,"DOMContentLoaded",EU._ready);}}EU._simpleAdd(window,"load",EU._load);EU._simpleAdd(window,"unload",EU._unload);EU._tryPreloadAttach();})();}YAHOO.util.EventProvider=function(){};YAHOO.util.EventProvider.prototype={__yui_events:null,__yui_subscribers:null,subscribe:function(A,C,F,E){this.__yui_events=this.__yui_events||{};var D=this.__yui_events[A];if(D){D.subscribe(C,F,E);}else{this.__yui_subscribers=this.__yui_subscribers||{};var B=this.__yui_subscribers;if(!B[A]){B[A]=[];}B[A].push({fn:C,obj:F,overrideContext:E});}},unsubscribe:function(C,E,G){this.__yui_events=this.__yui_events||{};var A=this.__yui_events;if(C){var F=A[C];if(F){return F.unsubscribe(E,G);}}else{var B=true;for(var D in A){if(YAHOO.lang.hasOwnProperty(A,D)){B=B&&A[D].unsubscribe(E,G);}}return B;}return false;},unsubscribeAll:function(A){return this.unsubscribe(A);
-},createEvent:function(B,G){this.__yui_events=this.__yui_events||{};var E=G||{},D=this.__yui_events,F;if(D[B]){}else{F=new YAHOO.util.CustomEvent(B,E.scope||this,E.silent,YAHOO.util.CustomEvent.FLAT,E.fireOnce);D[B]=F;if(E.onSubscribeCallback){F.subscribeEvent.subscribe(E.onSubscribeCallback);}this.__yui_subscribers=this.__yui_subscribers||{};var A=this.__yui_subscribers[B];if(A){for(var C=0;C<A.length;++C){F.subscribe(A[C].fn,A[C].obj,A[C].overrideContext);}}}return D[B];},fireEvent:function(B){this.__yui_events=this.__yui_events||{};var D=this.__yui_events[B];if(!D){return null;}var A=[];for(var C=1;C<arguments.length;++C){A.push(arguments[C]);}return D.fire.apply(D,A);},hasEvent:function(A){if(this.__yui_events){if(this.__yui_events[A]){return true;}}return false;}};(function(){var A=YAHOO.util.Event,C=YAHOO.lang;YAHOO.util.KeyListener=function(D,I,E,F){if(!D){}else{if(!I){}else{if(!E){}}}if(!F){F=YAHOO.util.KeyListener.KEYDOWN;}var G=new YAHOO.util.CustomEvent("keyPressed");this.enabledEvent=new YAHOO.util.CustomEvent("enabled");this.disabledEvent=new YAHOO.util.CustomEvent("disabled");if(C.isString(D)){D=document.getElementById(D);}if(C.isFunction(E)){G.subscribe(E);}else{G.subscribe(E.fn,E.scope,E.correctScope);}function H(O,N){if(!I.shift){I.shift=false;}if(!I.alt){I.alt=false;}if(!I.ctrl){I.ctrl=false;}if(O.shiftKey==I.shift&&O.altKey==I.alt&&O.ctrlKey==I.ctrl){var J,M=I.keys,L;if(YAHOO.lang.isArray(M)){for(var K=0;K<M.length;K++){J=M[K];L=A.getCharCode(O);if(J==L){G.fire(L,O);break;}}}else{L=A.getCharCode(O);if(M==L){G.fire(L,O);}}}}this.enable=function(){if(!this.enabled){A.on(D,F,H);this.enabledEvent.fire(I);}this.enabled=true;};this.disable=function(){if(this.enabled){A.removeListener(D,F,H);this.disabledEvent.fire(I);}this.enabled=false;};this.toString=function(){return"KeyListener ["+I.keys+"] "+D.tagName+(D.id?"["+D.id+"]":"");};};var B=YAHOO.util.KeyListener;B.KEYDOWN="keydown";B.KEYUP="keyup";B.KEY={ALT:18,BACK_SPACE:8,CAPS_LOCK:20,CONTROL:17,DELETE:46,DOWN:40,END:35,ENTER:13,ESCAPE:27,HOME:36,LEFT:37,META:224,NUM_LOCK:144,PAGE_DOWN:34,PAGE_UP:33,PAUSE:19,PRINTSCREEN:44,RIGHT:39,SCROLL_LOCK:145,SHIFT:16,SPACE:32,TAB:9,UP:38};})();YAHOO.register("event",YAHOO.util.Event,{version:"2.8.0r4",build:"2449"});
\ No newline at end of file
diff --git a/koha-tmpl/intranet-tmpl/prog/en/lib/yui/event/event.js b/koha-tmpl/intranet-tmpl/prog/en/lib/yui/event/event.js
deleted file mode 100644 (file)
index fd47c30..0000000
+++ /dev/null
@@ -1,2500 +0,0 @@
-/*
-Copyright (c) 2009, Yahoo! Inc. All rights reserved.
-Code licensed under the BSD License:
-http://developer.yahoo.net/yui/license.txt
-version: 2.8.0r4
-*/
-
-/**
- * The CustomEvent class lets you define events for your application
- * that can be subscribed to by one or more independent component.
- *
- * @param {String}  type The type of event, which is passed to the callback
- *                  when the event fires
- * @param {Object}  context The context the event will fire from.  "this" will
- *                  refer to this object in the callback.  Default value: 
- *                  the window object.  The listener can override this.
- * @param {boolean} silent pass true to prevent the event from writing to
- *                  the debugsystem
- * @param {int}     signature the signature that the custom event subscriber
- *                  will receive. YAHOO.util.CustomEvent.LIST or 
- *                  YAHOO.util.CustomEvent.FLAT.  The default is
- *                  YAHOO.util.CustomEvent.LIST.
- * @param fireOnce {boolean} If configured to fire once, the custom event 
- * will only notify subscribers a single time regardless of how many times 
- * the event is fired.  In addition, new subscribers will be notified 
- * immediately if the event has already been fired.
- * @namespace YAHOO.util
- * @class CustomEvent
- * @constructor
- */
-YAHOO.util.CustomEvent = function(type, context, silent, signature, fireOnce) {
-
-    /**
-     * The type of event, returned to subscribers when the event fires
-     * @property type
-     * @type string
-     */
-    this.type = type;
-
-    /**
-     * The context the event will fire from by default. Defaults to the window obj.
-     * @property scope
-     * @type object
-     */
-    this.scope = context || window;
-
-    /**
-     * By default all custom events are logged in the debug build. Set silent to true 
-     * to disable debug output for this event.
-     * @property silent
-     * @type boolean
-     */
-    this.silent = silent;
-
-    /**
-     * If configured to fire once, the custom event will only notify subscribers
-     * a single time regardless of how many times the event is fired.  In addition,
-     * new subscribers will be notified immediately if the event has already been
-     * fired.
-     * @property fireOnce
-     * @type boolean
-     * @default false
-     */
-    this.fireOnce = fireOnce;
-
-    /**
-     * Indicates whether or not this event has ever been fired.
-     * @property fired
-     * @type boolean
-     * @default false
-     */
-    this.fired = false;
-
-    /**
-     * For fireOnce events the arguments the event was fired with are stored
-     * so that new subscribers get the proper payload.
-     * @property firedWith
-     * @type Array
-     */
-    this.firedWith = null;
-
-    /**
-     * Custom events support two styles of arguments provided to the event
-     * subscribers.  
-     * <ul>
-     * <li>YAHOO.util.CustomEvent.LIST: 
-     *   <ul>
-     *   <li>param1: event name</li>
-     *   <li>param2: array of arguments sent to fire</li>
-     *   <li>param3: <optional> a custom object supplied by the subscriber</li>
-     *   </ul>
-     * </li>
-     * <li>YAHOO.util.CustomEvent.FLAT
-     *   <ul>
-     *   <li>param1: the first argument passed to fire.  If you need to
-     *           pass multiple parameters, use and array or object literal</li>
-     *   <li>param2: <optional> a custom object supplied by the subscriber</li>
-     *   </ul>
-     * </li>
-     * </ul>
-     *   @property signature
-     *   @type int
-     */
-    this.signature = signature || YAHOO.util.CustomEvent.LIST;
-
-    /**
-     * The subscribers to this event
-     * @property subscribers
-     * @type Subscriber[]
-     */
-    this.subscribers = [];
-
-    if (!this.silent) {
-    }
-
-    var onsubscribeType = "_YUICEOnSubscribe";
-
-    // Only add subscribe events for events that are not generated by 
-    // CustomEvent
-    if (type !== onsubscribeType) {
-
-        /**
-         * Custom events provide a custom event that fires whenever there is
-         * a new subscriber to the event.  This provides an opportunity to
-         * handle the case where there is a non-repeating event that has
-         * already fired has a new subscriber.  
-         *
-         * @event subscribeEvent
-         * @type YAHOO.util.CustomEvent
-         * @param fn {Function} The function to execute
-         * @param obj <Object> An object to be passed along when the event fires. 
-         * Defaults to the custom event.
-         * @param override <boolean|Object> If true, the obj passed in becomes the 
-         * execution context of the listener. If an object, that object becomes 
-         * the execution context. Defaults to the custom event.
-         */
-        this.subscribeEvent = 
-                new YAHOO.util.CustomEvent(onsubscribeType, this, true);
-
-    } 
-
-
-    /**
-     * In order to make it possible to execute the rest of the subscriber
-     * stack when one thows an exception, the subscribers exceptions are
-     * caught.  The most recent exception is stored in this property
-     * @property lastError
-     * @type Error
-     */
-    this.lastError = null;
-};
-
-/**
- * Subscriber listener sigature constant.  The LIST type returns three
- * parameters: the event type, the array of args passed to fire, and
- * the optional custom object
- * @property YAHOO.util.CustomEvent.LIST
- * @static
- * @type int
- */
-YAHOO.util.CustomEvent.LIST = 0;
-
-/**
- * Subscriber listener sigature constant.  The FLAT type returns two
- * parameters: the first argument passed to fire and the optional 
- * custom object
- * @property YAHOO.util.CustomEvent.FLAT
- * @static
- * @type int
- */
-YAHOO.util.CustomEvent.FLAT = 1;
-
-YAHOO.util.CustomEvent.prototype = {
-
-    /**
-     * Subscribes the caller to this event
-     * @method subscribe
-     * @param {Function} fn        The function to execute
-     * @param {Object}   obj       An object to be passed along when the event fires.
-     * overrideContext <boolean|Object> If true, the obj passed in becomes the execution 
-     * context of the listener. If an object, that object becomes the execution context.
-     */
-    subscribe: function(fn, obj, overrideContext) {
-
-        if (!fn) {
-throw new Error("Invalid callback for subscriber to '" + this.type + "'");
-        }
-
-        if (this.subscribeEvent) {
-            this.subscribeEvent.fire(fn, obj, overrideContext);
-        }
-
-        var s = new YAHOO.util.Subscriber(fn, obj, overrideContext);
-
-        if (this.fireOnce && this.fired) {
-            this.notify(s, this.firedWith);
-        } else {
-            this.subscribers.push(s);
-        }
-    },
-
-    /**
-     * Unsubscribes subscribers.
-     * @method unsubscribe
-     * @param {Function} fn  The subscribed function to remove, if not supplied
-     *                       all will be removed
-     * @param {Object}   obj  The custom object passed to subscribe.  This is
-     *                        optional, but if supplied will be used to
-     *                        disambiguate multiple listeners that are the same
-     *                        (e.g., you subscribe many object using a function
-     *                        that lives on the prototype)
-     * @return {boolean} True if the subscriber was found and detached.
-     */
-    unsubscribe: function(fn, obj) {
-
-        if (!fn) {
-            return this.unsubscribeAll();
-        }
-
-        var found = false;
-        for (var i=0, len=this.subscribers.length; i<len; ++i) {
-            var s = this.subscribers[i];
-            if (s && s.contains(fn, obj)) {
-                this._delete(i);
-                found = true;
-            }
-        }
-
-        return found;
-    },
-
-    /**
-     * Notifies the subscribers.  The callback functions will be executed
-     * from the context specified when the event was created, and with the 
-     * following parameters:
-     *   <ul>
-     *   <li>The type of event</li>
-     *   <li>All of the arguments fire() was executed with as an array</li>
-     *   <li>The custom object (if any) that was passed into the subscribe() 
-     *       method</li>
-     *   </ul>
-     * @method fire 
-     * @param {Object*} arguments an arbitrary set of parameters to pass to 
-     *                            the handler.
-     * @return {boolean} false if one of the subscribers returned false, 
-     *                   true otherwise
-     */
-    fire: function() {
-
-        this.lastError = null;
-
-        var errors = [],
-            len=this.subscribers.length;
-
-
-        var args=[].slice.call(arguments, 0), ret=true, i, rebuild=false;
-
-        if (this.fireOnce) {
-            if (this.fired) {
-                return true;
-            } else {
-                this.firedWith = args;
-            }
-        }
-
-        this.fired = true;
-
-        if (!len && this.silent) {
-            return true;
-        }
-
-        if (!this.silent) {
-        }
-
-        // make a copy of the subscribers so that there are
-        // no index problems if one subscriber removes another.
-        var subs = this.subscribers.slice();
-
-        for (i=0; i<len; ++i) {
-            var s = subs[i];
-            if (!s) {
-                rebuild=true;
-            } else {
-
-                ret = this.notify(s, args);
-
-                if (false === ret) {
-                    if (!this.silent) {
-                    }
-
-                    break;
-                }
-            }
-        }
-
-        return (ret !== false);
-    },
-
-    notify: function(s, args) {
-
-        var ret, param=null, scope = s.getScope(this.scope),
-                 throwErrors = YAHOO.util.Event.throwErrors;
-
-        if (!this.silent) {
-        }
-
-        if (this.signature == YAHOO.util.CustomEvent.FLAT) {
-
-            if (args.length > 0) {
-                param = args[0];
-            }
-
-            try {
-                ret = s.fn.call(scope, param, s.obj);
-            } catch(e) {
-                this.lastError = e;
-                // errors.push(e);
-                if (throwErrors) {
-                    throw e;
-                }
-            }
-        } else {
-            try {
-                ret = s.fn.call(scope, this.type, args, s.obj);
-            } catch(ex) {
-                this.lastError = ex;
-                if (throwErrors) {
-                    throw ex;
-                }
-            }
-        }
-
-        return ret;
-    },
-
-    /**
-     * Removes all listeners
-     * @method unsubscribeAll
-     * @return {int} The number of listeners unsubscribed
-     */
-    unsubscribeAll: function() {
-        var l = this.subscribers.length, i;
-        for (i=l-1; i>-1; i--) {
-            this._delete(i);
-        }
-
-        this.subscribers=[];
-
-        return l;
-    },
-
-    /**
-     * @method _delete
-     * @private
-     */
-    _delete: function(index) {
-        var s = this.subscribers[index];
-        if (s) {
-            delete s.fn;
-            delete s.obj;
-        }
-
-        // this.subscribers[index]=null;
-        this.subscribers.splice(index, 1);
-    },
-
-    /**
-     * @method toString
-     */
-    toString: function() {
-         return "CustomEvent: " + "'" + this.type  + "', " + 
-             "context: " + this.scope;
-
-    }
-};
-
-/////////////////////////////////////////////////////////////////////
-
-/**
- * Stores the subscriber information to be used when the event fires.
- * @param {Function} fn       The function to execute
- * @param {Object}   obj      An object to be passed along when the event fires
- * @param {boolean}  overrideContext If true, the obj passed in becomes the execution
- *                            context of the listener
- * @class Subscriber
- * @constructor
- */
-YAHOO.util.Subscriber = function(fn, obj, overrideContext) {
-
-    /**
-     * The callback that will be execute when the event fires
-     * @property fn
-     * @type function
-     */
-    this.fn = fn;
-
-    /**
-     * An optional custom object that will passed to the callback when
-     * the event fires
-     * @property obj
-     * @type object
-     */
-    this.obj = YAHOO.lang.isUndefined(obj) ? null : obj;
-
-    /**
-     * The default execution context for the event listener is defined when the
-     * event is created (usually the object which contains the event).
-     * By setting overrideContext to true, the execution context becomes the custom
-     * object passed in by the subscriber.  If overrideContext is an object, that 
-     * object becomes the context.
-     * @property overrideContext
-     * @type boolean|object
-     */
-    this.overrideContext = overrideContext;
-
-};
-
-/**
- * Returns the execution context for this listener.  If overrideContext was set to true
- * the custom obj will be the context.  If overrideContext is an object, that is the
- * context, otherwise the default context will be used.
- * @method getScope
- * @param {Object} defaultScope the context to use if this listener does not
- *                              override it.
- */
-YAHOO.util.Subscriber.prototype.getScope = function(defaultScope) {
-    if (this.overrideContext) {
-        if (this.overrideContext === true) {
-            return this.obj;
-        } else {
-            return this.overrideContext;
-        }
-    }
-    return defaultScope;
-};
-
-/**
- * Returns true if the fn and obj match this objects properties.
- * Used by the unsubscribe method to match the right subscriber.
- *
- * @method contains
- * @param {Function} fn the function to execute
- * @param {Object} obj an object to be passed along when the event fires
- * @return {boolean} true if the supplied arguments match this 
- *                   subscriber's signature.
- */
-YAHOO.util.Subscriber.prototype.contains = function(fn, obj) {
-    if (obj) {
-        return (this.fn == fn && this.obj == obj);
-    } else {
-        return (this.fn == fn);
-    }
-};
-
-/**
- * @method toString
- */
-YAHOO.util.Subscriber.prototype.toString = function() {
-    return "Subscriber { obj: " + this.obj  + 
-           ", overrideContext: " +  (this.overrideContext || "no") + " }";
-};
-
-/**
- * The Event Utility provides utilities for managing DOM Events and tools
- * for building event systems
- *
- * @module event
- * @title Event Utility
- * @namespace YAHOO.util
- * @requires yahoo
- */
-
-// The first instance of Event will win if it is loaded more than once.
-// @TODO this needs to be changed so that only the state data that needs to
-// be preserved is kept, while methods are overwritten/added as needed.
-// This means that the module pattern can't be used.
-if (!YAHOO.util.Event) {
-
-/**
- * The event utility provides functions to add and remove event listeners,
- * event cleansing.  It also tries to automatically remove listeners it
- * registers during the unload event.
- *
- * @class Event
- * @static
- */
-    YAHOO.util.Event = function() {
-
-        /**
-         * True after the onload event has fired
-         * @property loadComplete
-         * @type boolean
-         * @static
-         * @private
-         */
-        var loadComplete =  false,
-
-        /**
-         * Cache of wrapped listeners
-         * @property listeners
-         * @type array
-         * @static
-         * @private
-         */
-        listeners = [],
-
-
-        /**
-         * User-defined unload function that will be fired before all events
-         * are detached
-         * @property unloadListeners
-         * @type array
-         * @static
-         * @private
-         */
-        unloadListeners = [],
-
-        /**
-         * The number of times to poll after window.onload.  This number is
-         * increased if additional late-bound handlers are requested after
-         * the page load.
-         * @property retryCount
-         * @static
-         * @private
-         */
-        retryCount = 0,
-
-        /**
-         * onAvailable listeners
-         * @property onAvailStack
-         * @static
-         * @private
-         */
-        onAvailStack = [],
-
-        /**
-         * Counter for auto id generation
-         * @property counter
-         * @static
-         * @private
-         */
-        counter = 0,
-        
-        /**
-         * Normalized keycodes for webkit/safari
-         * @property webkitKeymap
-         * @type {int: int}
-         * @private
-         * @static
-         * @final
-         */
-         webkitKeymap = {
-            63232: 38, // up
-            63233: 40, // down
-            63234: 37, // left
-            63235: 39, // right
-            63276: 33, // page up
-            63277: 34, // page down
-            25: 9      // SHIFT-TAB (Safari provides a different key code in
-                       // this case, even though the shiftKey modifier is set)
-        },
-
-               isIE = YAHOO.env.ua.ie,
-
-        // String constants used by the addFocusListener and removeFocusListener methods
-               
-               FOCUSIN = "focusin",
-               FOCUSOUT = "focusout";
-
-        return {
-
-            /**
-             * The number of times we should look for elements that are not
-             * in the DOM at the time the event is requested after the document
-             * has been loaded.  The default is 500@amp;40 ms, so it will poll
-             * for 20 seconds or until all outstanding handlers are bound
-             * (whichever comes first).
-             * @property POLL_RETRYS
-             * @type int
-             * @static
-             * @final
-             */
-            POLL_RETRYS: 500,
-
-            /**
-             * The poll interval in milliseconds
-             * @property POLL_INTERVAL
-             * @type int
-             * @static
-             * @final
-             */
-            POLL_INTERVAL: 40,
-
-            /**
-             * Element to bind, int constant
-             * @property EL
-             * @type int
-             * @static
-             * @final
-             */
-            EL: 0,
-
-            /**
-             * Type of event, int constant
-             * @property TYPE
-             * @type int
-             * @static
-             * @final
-             */
-            TYPE: 1,
-
-            /**
-             * Function to execute, int constant
-             * @property FN
-             * @type int
-             * @static
-             * @final
-             */
-            FN: 2,
-
-            /**
-             * Function wrapped for context correction and cleanup, int constant
-             * @property WFN
-             * @type int
-             * @static
-             * @final
-             */
-            WFN: 3,
-
-            /**
-             * Object passed in by the user that will be returned as a 
-             * parameter to the callback, int constant.  Specific to
-             * unload listeners
-             * @property OBJ
-             * @type int
-             * @static
-             * @final
-             */
-            UNLOAD_OBJ: 3,
-
-            /**
-             * Adjusted context, either the element we are registering the event
-             * on or the custom object passed in by the listener, int constant
-             * @property ADJ_SCOPE
-             * @type int
-             * @static
-             * @final
-             */
-            ADJ_SCOPE: 4,
-
-            /**
-             * The original obj passed into addListener
-             * @property OBJ
-             * @type int
-             * @static
-             * @final
-             */
-            OBJ: 5,
-
-            /**
-             * The original context parameter passed into addListener
-             * @property OVERRIDE
-             * @type int
-             * @static
-             * @final
-             */
-            OVERRIDE: 6,
-
-            /**
-             * The original capture parameter passed into addListener
-             * @property CAPTURE
-             * @type int
-             * @static
-             * @final
-             */
-                       CAPTURE: 7,
-
-            /**
-             * addListener/removeListener can throw errors in unexpected scenarios.
-             * These errors are suppressed, the method returns false, and this property
-             * is set
-             * @property lastError
-             * @static
-             * @type Error
-             */
-            lastError: null,
-
-            /**
-             * Safari detection
-             * @property isSafari
-             * @private
-             * @static
-             * @deprecated use YAHOO.env.ua.webkit
-             */
-            isSafari: YAHOO.env.ua.webkit,
-            
-            /**
-             * webkit version
-             * @property webkit
-             * @type string
-             * @private
-             * @static
-             * @deprecated use YAHOO.env.ua.webkit
-             */
-            webkit: YAHOO.env.ua.webkit,
-            
-            /**
-             * IE detection 
-             * @property isIE
-             * @private
-             * @static
-             * @deprecated use YAHOO.env.ua.ie
-             */
-            isIE: isIE,
-
-            /**
-             * poll handle
-             * @property _interval
-             * @static
-             * @private
-             */
-            _interval: null,
-
-            /**
-             * document readystate poll handle
-             * @property _dri
-             * @static
-             * @private
-             */
-             _dri: null,
-
-
-            /**
-             * Map of special event types
-             * @property _specialTypes
-             * @static
-             * @private
-             */
-                       _specialTypes: {
-                               focusin: (isIE ? "focusin" : "focus"),
-                               focusout: (isIE ? "focusout" : "blur")
-                       },
-
-
-            /**
-             * True when the document is initially usable
-             * @property DOMReady
-             * @type boolean
-             * @static
-             */
-            DOMReady: false,
-
-            /**
-             * Errors thrown by subscribers of custom events are caught
-             * and the error message is written to the debug console.  If
-             * this property is set to true, it will also re-throw the
-             * error.
-             * @property throwErrors
-             * @type boolean
-             * @default false
-             */
-            throwErrors: false,
-
-
-            /**
-             * @method startInterval
-             * @static
-             * @private
-             */
-            startInterval: function() {
-                if (!this._interval) {
-                    // var self = this;
-                    // var callback = function() { self._tryPreloadAttach(); };
-                    // this._interval = setInterval(callback, this.POLL_INTERVAL);
-                    this._interval = YAHOO.lang.later(this.POLL_INTERVAL, this, this._tryPreloadAttach, null, true);
-                }
-            },
-
-            /**
-             * Executes the supplied callback when the item with the supplied
-             * id is found.  This is meant to be used to execute behavior as
-             * soon as possible as the page loads.  If you use this after the
-             * initial page load it will poll for a fixed time for the element.
-             * The number of times it will poll and the frequency are
-             * configurable.  By default it will poll for 10 seconds.
-             *
-             * <p>The callback is executed with a single parameter:
-             * the custom object parameter, if provided.</p>
-             *
-             * @method onAvailable
-             *
-             * @param {string||string[]}   id the id of the element, or an array
-             * of ids to look for.
-             * @param {function} fn what to execute when the element is found.
-             * @param {object}   obj an optional object to be passed back as
-             *                   a parameter to fn.
-             * @param {boolean|object}  overrideContext If set to true, fn will execute
-             *                   in the context of obj, if set to an object it
-             *                   will execute in the context of that object
-             * @param checkContent {boolean} check child node readiness (onContentReady)
-             * @static
-             */
-            onAvailable: function(id, fn, obj, overrideContext, checkContent) {
-
-                var a = (YAHOO.lang.isString(id)) ? [id] : id;
-
-                for (var i=0; i<a.length; i=i+1) {
-                    onAvailStack.push({id:         a[i], 
-                                       fn:         fn, 
-                                       obj:        obj, 
-                                       overrideContext:   overrideContext, 
-                                       checkReady: checkContent });
-                }
-
-                retryCount = this.POLL_RETRYS;
-
-                this.startInterval();
-            },
-
-            /**
-             * Works the same way as onAvailable, but additionally checks the
-             * state of sibling elements to determine if the content of the
-             * available element is safe to modify.
-             *
-             * <p>The callback is executed with a single parameter:
-             * the custom object parameter, if provided.</p>
-             *
-             * @method onContentReady
-             *
-             * @param {string}   id the id of the element to look for.
-             * @param {function} fn what to execute when the element is ready.
-             * @param {object}   obj an optional object to be passed back as
-             *                   a parameter to fn.
-             * @param {boolean|object}  overrideContext If set to true, fn will execute
-             *                   in the context of obj.  If an object, fn will
-             *                   exectute in the context of that object
-             *
-             * @static
-             */
-            onContentReady: function(id, fn, obj, overrideContext) {
-                this.onAvailable(id, fn, obj, overrideContext, true);
-            },
-
-            /**
-             * Executes the supplied callback when the DOM is first usable.  This
-             * will execute immediately if called after the DOMReady event has
-             * fired.   @todo the DOMContentReady event does not fire when the
-             * script is dynamically injected into the page.  This means the
-             * DOMReady custom event will never fire in FireFox or Opera when the
-             * library is injected.  It _will_ fire in Safari, and the IE 
-             * implementation would allow for us to fire it if the defered script
-             * is not available.  We want this to behave the same in all browsers.
-             * Is there a way to identify when the script has been injected 
-             * instead of included inline?  Is there a way to know whether the 
-             * window onload event has fired without having had a listener attached 
-             * to it when it did so?
-             *
-             * <p>The callback is a CustomEvent, so the signature is:</p>
-             * <p>type &lt;string&gt;, args &lt;array&gt;, customobject &lt;object&gt;</p>
-             * <p>For DOMReady events, there are no fire argments, so the
-             * signature is:</p>
-             * <p>"DOMReady", [], obj</p>
-             *
-             *
-             * @method onDOMReady
-             *
-             * @param {function} fn what to execute when the element is found.
-             * @param {object}   obj an optional object to be passed back as
-             *                   a parameter to fn.
-             * @param {boolean|object}  overrideContext If set to true, fn will execute
-             *                   in the context of obj, if set to an object it
-             *                   will execute in the context of that object
-             *
-             * @static
-             */
-            // onDOMReady: function(fn, obj, overrideContext) {
-            onDOMReady: function() {
-                this.DOMReadyEvent.subscribe.apply(this.DOMReadyEvent, arguments);
-            },
-
-
-            /**
-             * Appends an event handler
-             *
-             * @method _addListener
-             *
-             * @param {String|HTMLElement|Array|NodeList} el An id, an element 
-             *  reference, or a collection of ids and/or elements to assign the 
-             *  listener to.
-             * @param {String}   sType     The type of event to append
-             * @param {Function} fn        The method the event invokes
-             * @param {Object}   obj    An arbitrary object that will be 
-             *                             passed as a parameter to the handler
-             * @param {Boolean|object}  overrideContext  If true, the obj passed in becomes
-             *                             the execution context of the listener. If an
-             *                             object, this object becomes the execution
-             *                             context.
-             * @param {boolen}      capture capture or bubble phase
-             * @return {Boolean} True if the action was successful or defered,
-             *                        false if one or more of the elements 
-             *                        could not have the listener attached,
-             *                        or if the operation throws an exception.
-             * @private
-             * @static
-             */
-            _addListener: function(el, sType, fn, obj, overrideContext, bCapture) {
-
-                if (!fn || !fn.call) {
-                    return false;
-                }
-
-                // The el argument can be an array of elements or element ids.
-                if ( this._isValidCollection(el)) {
-                    var ok = true;
-                    for (var i=0,len=el.length; i<len; ++i) {
-                        ok = this.on(el[i], 
-                                       sType, 
-                                       fn, 
-                                       obj, 
-                                       overrideContext) && ok;
-                    }
-                    return ok;
-
-                } else if (YAHOO.lang.isString(el)) {
-                    var oEl = this.getEl(el);
-                    // If the el argument is a string, we assume it is 
-                    // actually the id of the element.  If the page is loaded
-                    // we convert el to the actual element, otherwise we 
-                    // defer attaching the event until onload event fires
-
-                    // check to see if we need to delay hooking up the event 
-                    // until after the page loads.
-                    if (oEl) {
-                        el = oEl;
-                    } else {
-                        // defer adding the event until the element is available
-                        this.onAvailable(el, function() {
-                           YAHOO.util.Event._addListener(el, sType, fn, obj, overrideContext, bCapture);
-                        });
-
-                        return true;
-                    }
-                }
-
-                // Element should be an html element or an array if we get 
-                // here.
-                if (!el) {
-                    return false;
-                }
-
-                // we need to make sure we fire registered unload events 
-                // prior to automatically unhooking them.  So we hang on to 
-                // these instead of attaching them to the window and fire the
-                // handles explicitly during our one unload event.
-                if ("unload" == sType && obj !== this) {
-                    unloadListeners[unloadListeners.length] =
-                            [el, sType, fn, obj, overrideContext];
-                    return true;
-                }
-
-
-                // if the user chooses to override the context, we use the custom
-                // object passed in, otherwise the executing context will be the
-                // HTML element that the event is registered on
-                var context = el;
-                if (overrideContext) {
-                    if (overrideContext === true) {
-                        context = obj;
-                    } else {
-                        context = overrideContext;
-                    }
-                }
-
-                // wrap the function so we can return the obj object when
-                // the event fires;
-                var wrappedFn = function(e) {
-                        return fn.call(context, YAHOO.util.Event.getEvent(e, el), 
-                                obj);
-                    };
-
-                var li = [el, sType, fn, wrappedFn, context, obj, overrideContext, bCapture];
-                var index = listeners.length;
-                // cache the listener so we can try to automatically unload
-                listeners[index] = li;
-
-                try {
-                    this._simpleAdd(el, sType, wrappedFn, bCapture);
-                } catch(ex) {
-                    // handle an error trying to attach an event.  If it fails
-                    // we need to clean up the cache
-                    this.lastError = ex;
-                    this.removeListener(el, sType, fn);
-                    return false;
-                }
-
-                return true;
-                
-            },
-
-            /**
-             * Checks to see if the type requested is a special type 
-                        * (as defined by the _specialTypes hash), and (if so) returns 
-                        * the special type name.
-             *
-             * @method _getType
-             *
-             * @param {String}   sType     The type to look up
-             * @private
-             */
-                       _getType: function (type) {
-                       
-                               return this._specialTypes[type] || type;
-                               
-                       },
-
-
-            /**
-             * Appends an event handler
-             *
-             * @method addListener
-             *
-             * @param {String|HTMLElement|Array|NodeList} el An id, an element 
-             *  reference, or a collection of ids and/or elements to assign the 
-             *  listener to.
-             * @param {String}   sType     The type of event to append
-             * @param {Function} fn        The method the event invokes
-             * @param {Object}   obj    An arbitrary object that will be 
-             *                             passed as a parameter to the handler
-             * @param {Boolean|object}  overrideContext  If true, the obj passed in becomes
-             *                             the execution context of the listener. If an
-             *                             object, this object becomes the execution
-             *                             context.
-             * @return {Boolean} True if the action was successful or defered,
-             *                        false if one or more of the elements 
-             *                        could not have the listener attached,
-             *                        or if the operation throws an exception.
-             * @static
-             */
-            addListener: function (el, sType, fn, obj, overrideContext) {
-
-                               var capture = ((sType == FOCUSIN || sType == FOCUSOUT) && !YAHOO.env.ua.ie) ? true : false;
-
-                return this._addListener(el, this._getType(sType), fn, obj, overrideContext, capture);
-
-               },
-
-
-            /**
-             * Attaches a focusin event listener to the specified element for 
-                        * the purpose of listening for the focus event on the element's 
-             * descendants.
-             * @method addFocusListener
-             *
-             * @param {String|HTMLElement|Array|NodeList} el An id, an element 
-             *  reference, or a collection of ids and/or elements to assign the 
-             *  listener to.
-             * @param {Function} fn        The method the event invokes
-             * @param {Object}   obj    An arbitrary object that will be 
-             *                             passed as a parameter to the handler
-             * @param {Boolean|object}  overrideContext  If true, the obj passed in becomes
-             *                             the execution context of the listener. If an
-             *                             object, this object becomes the execution
-             *                             context.
-             * @return {Boolean} True if the action was successful or defered,
-             *                        false if one or more of the elements 
-             *                        could not have the listener attached,
-             *                        or if the operation throws an exception.
-             * @static
-                       * @deprecated use YAHOO.util.Event.on and specify "focusin" as the event type.
-             */
-            addFocusListener: function (el, fn, obj, overrideContext) {
-                return this.on(el, FOCUSIN, fn, obj, overrideContext);
-            },          
-
-
-            /**
-             * Removes a focusin event listener to the specified element for 
-                        * the purpose of listening for the focus event on the element's 
-             * descendants.
-             *
-             * @method removeFocusListener
-             *
-             * @param {String|HTMLElement|Array|NodeList} el An id, an element 
-             *  reference, or a collection of ids and/or elements to remove
-             *  the listener from.
-             * @param {Function} fn the method the event invokes.  If fn is
-             *  undefined, then all event handlers for the type of event are 
-             *  removed.
-             * @return {boolean} true if the unbind was successful, false 
-             *  otherwise.
-             * @static
-                * @deprecated use YAHOO.util.Event.removeListener and specify "focusin" as the event type.
-             */
-            removeFocusListener: function (el, fn) { 
-                return this.removeListener(el, FOCUSIN, fn);
-            },
-
-            /**
-             * Attaches a focusout event listener to the specified element for 
-                        * the purpose of listening for the blur event on the element's 
-                        * descendants.
-             *
-             * @method addBlurListener
-             *
-             * @param {String|HTMLElement|Array|NodeList} el An id, an element 
-             *  reference, or a collection of ids and/or elements to assign the 
-             *  listener to.
-             * @param {Function} fn        The method the event invokes
-             * @param {Object}   obj    An arbitrary object that will be 
-             *                             passed as a parameter to the handler
-             * @param {Boolean|object}  overrideContext  If true, the obj passed in becomes
-             *                             the execution context of the listener. If an
-             *                             object, this object becomes the execution
-             *                             context.
-             * @return {Boolean} True if the action was successful or defered,
-             *                        false if one or more of the elements 
-             *                        could not have the listener attached,
-             *                        or if the operation throws an exception.
-             * @static
-                * @deprecated use YAHOO.util.Event.on and specify "focusout" as the event type.
-             */
-            addBlurListener: function (el, fn, obj, overrideContext) {
-                return this.on(el, FOCUSOUT, fn, obj, overrideContext);
-            },          
-
-            /**
-             * Removes a focusout event listener to the specified element for 
-                        * the purpose of listening for the blur event on the element's 
-                        * descendants.
-             *
-             * @method removeBlurListener
-             *
-             * @param {String|HTMLElement|Array|NodeList} el An id, an element 
-             *  reference, or a collection of ids and/or elements to remove
-             *  the listener from.
-             * @param {Function} fn the method the event invokes.  If fn is
-             *  undefined, then all event handlers for the type of event are 
-             *  removed.
-             * @return {boolean} true if the unbind was successful, false 
-             *  otherwise.
-             * @static
-                * @deprecated use YAHOO.util.Event.removeListener and specify "focusout" as the event type.
-             */
-            removeBlurListener: function (el, fn) { 
-                return this.removeListener(el, FOCUSOUT, fn);
-            },
-
-            /**
-             * Removes an event listener
-             *
-             * @method removeListener
-             *
-             * @param {String|HTMLElement|Array|NodeList} el An id, an element 
-             *  reference, or a collection of ids and/or elements to remove
-             *  the listener from.
-             * @param {String} sType the type of event to remove.
-             * @param {Function} fn the method the event invokes.  If fn is
-             *  undefined, then all event handlers for the type of event are 
-             *  removed.
-             * @return {boolean} true if the unbind was successful, false 
-             *  otherwise.
-             * @static
-             */
-            removeListener: function(el, sType, fn) {
-                var i, len, li;
-
-                               sType = this._getType(sType);
-
-                // The el argument can be a string
-                if (typeof el == "string") {
-                    el = this.getEl(el);
-                // The el argument can be an array of elements or element ids.
-                } else if ( this._isValidCollection(el)) {
-                    var ok = true;
-                    for (i=el.length-1; i>-1; i--) {
-                        ok = ( this.removeListener(el[i], sType, fn) && ok );
-                    }
-                    return ok;
-                }
-
-                if (!fn || !fn.call) {
-                    //return false;
-                    return this.purgeElement(el, false, sType);
-                }
-
-                if ("unload" == sType) {
-
-                    for (i=unloadListeners.length-1; i>-1; i--) {
-                        li = unloadListeners[i];
-                        if (li && 
-                            li[0] == el && 
-                            li[1] == sType && 
-                            li[2] == fn) {
-                                unloadListeners.splice(i, 1);
-                                // unloadListeners[i]=null;
-                                return true;
-                        }
-                    }
-
-                    return false;
-                }
-
-                var cacheItem = null;
-
-                // The index is a hidden parameter; needed to remove it from
-                // the method signature because it was tempting users to
-                // try and take advantage of it, which is not possible.
-                var index = arguments[3];
-  
-                if ("undefined" === typeof index) {
-                    index = this._getCacheIndex(listeners, el, sType, fn);
-                }
-
-                if (index >= 0) {
-                    cacheItem = listeners[index];
-                }
-
-                if (!el || !cacheItem) {
-                    return false;
-                }
-
-
-                               var bCapture = cacheItem[this.CAPTURE] === true ? true : false;
-
-                try {
-                    this._simpleRemove(el, sType, cacheItem[this.WFN], bCapture);
-                } catch(ex) {
-                    this.lastError = ex;
-                    return false;
-                }
-
-                // removed the wrapped handler
-                delete listeners[index][this.WFN];
-                delete listeners[index][this.FN];
-                listeners.splice(index, 1);
-                // listeners[index]=null;
-
-                return true;
-
-            },
-
-            /**
-             * Returns the event's target element.  Safari sometimes provides
-             * a text node, and this is automatically resolved to the text
-             * node's parent so that it behaves like other browsers.
-             * @method getTarget
-             * @param {Event} ev the event
-             * @param {boolean} resolveTextNode when set to true the target's
-             *                  parent will be returned if the target is a 
-             *                  text node.  @deprecated, the text node is
-             *                  now resolved automatically
-             * @return {HTMLElement} the event's target
-             * @static
-             */
-            getTarget: function(ev, resolveTextNode) {
-                var t = ev.target || ev.srcElement;
-                return this.resolveTextNode(t);
-            },
-
-            /**
-             * In some cases, some browsers will return a text node inside
-             * the actual element that was targeted.  This normalizes the
-             * return value for getTarget and getRelatedTarget.
-             * @method resolveTextNode
-             * @param {HTMLElement} node node to resolve
-             * @return {HTMLElement} the normized node
-             * @static
-             */
-            resolveTextNode: function(n) {
-                try {
-                    if (n && 3 == n.nodeType) {
-                        return n.parentNode;
-                    }
-                } catch(e) { }
-
-                return n;
-            },
-
-            /**
-             * Returns the event's pageX
-             * @method getPageX
-             * @param {Event} ev the event
-             * @return {int} the event's pageX
-             * @static
-             */
-            getPageX: function(ev) {
-                var x = ev.pageX;
-                if (!x && 0 !== x) {
-                    x = ev.clientX || 0;
-
-                    if ( this.isIE ) {
-                        x += this._getScrollLeft();
-                    }
-                }
-
-                return x;
-            },
-
-            /**
-             * Returns the event's pageY
-             * @method getPageY
-             * @param {Event} ev the event
-             * @return {int} the event's pageY
-             * @static
-             */
-            getPageY: function(ev) {
-                var y = ev.pageY;
-                if (!y && 0 !== y) {
-                    y = ev.clientY || 0;
-
-                    if ( this.isIE ) {
-                        y += this._getScrollTop();
-                    }
-                }
-
-
-                return y;
-            },
-
-            /**
-             * Returns the pageX and pageY properties as an indexed array.
-             * @method getXY
-             * @param {Event} ev the event
-             * @return {[x, y]} the pageX and pageY properties of the event
-             * @static
-             */
-            getXY: function(ev) {
-                return [this.getPageX(ev), this.getPageY(ev)];
-            },
-
-            /**
-             * Returns the event's related target 
-             * @method getRelatedTarget
-             * @param {Event} ev the event
-             * @return {HTMLElement} the event's relatedTarget
-             * @static
-             */
-            getRelatedTarget: function(ev) {
-                var t = ev.relatedTarget;
-                if (!t) {
-                    if (ev.type == "mouseout") {
-                        t = ev.toElement;
-                    } else if (ev.type == "mouseover") {
-                        t = ev.fromElement;
-                    }
-                }
-
-                return this.resolveTextNode(t);
-            },
-
-            /**
-             * Returns the time of the event.  If the time is not included, the
-             * event is modified using the current time.
-             * @method getTime
-             * @param {Event} ev the event
-             * @return {Date} the time of the event
-             * @static
-             */
-            getTime: function(ev) {
-                if (!ev.time) {
-                    var t = new Date().getTime();
-                    try {
-                        ev.time = t;
-                    } catch(ex) { 
-                        this.lastError = ex;
-                        return t;
-                    }
-                }
-
-                return ev.time;
-            },
-
-            /**
-             * Convenience method for stopPropagation + preventDefault
-             * @method stopEvent
-             * @param {Event} ev the event
-             * @static
-             */
-            stopEvent: function(ev) {
-                this.stopPropagation(ev);
-                this.preventDefault(ev);
-            },
-
-            /**
-             * Stops event propagation
-             * @method stopPropagation
-             * @param {Event} ev the event
-             * @static
-             */
-            stopPropagation: function(ev) {
-                if (ev.stopPropagation) {
-                    ev.stopPropagation();
-                } else {
-                    ev.cancelBubble = true;
-                }
-            },
-
-            /**
-             * Prevents the default behavior of the event
-             * @method preventDefault
-             * @param {Event} ev the event
-             * @static
-             */
-            preventDefault: function(ev) {
-                if (ev.preventDefault) {
-                    ev.preventDefault();
-                } else {
-                    ev.returnValue = false;
-                }
-            },
-             
-            /**
-             * Finds the event in the window object, the caller's arguments, or
-             * in the arguments of another method in the callstack.  This is
-             * executed automatically for events registered through the event
-             * manager, so the implementer should not normally need to execute
-             * this function at all.
-             * @method getEvent
-             * @param {Event} e the event parameter from the handler
-             * @param {HTMLElement} boundEl the element the listener is attached to
-             * @return {Event} the event 
-             * @static
-             */
-            getEvent: function(e, boundEl) {
-                var ev = e || window.event;
-
-                if (!ev) {
-                    var c = this.getEvent.caller;
-                    while (c) {
-                        ev = c.arguments[0];
-                        if (ev && Event == ev.constructor) {
-                            break;
-                        }
-                        c = c.caller;
-                    }
-                }
-
-                return ev;
-            },
-
-            /**
-             * Returns the charcode for an event
-             * @method getCharCode
-             * @param {Event} ev the event
-             * @return {int} the event's charCode
-             * @static
-             */
-            getCharCode: function(ev) {
-                var code = ev.keyCode || ev.charCode || 0;
-
-                // webkit key normalization
-                if (YAHOO.env.ua.webkit && (code in webkitKeymap)) {
-                    code = webkitKeymap[code];
-                }
-                return code;
-            },
-
-            /**
-             * Locating the saved event handler data by function ref
-             *
-             * @method _getCacheIndex
-             * @static
-             * @private
-             */
-            _getCacheIndex: function(a, el, sType, fn) {
-                for (var i=0, l=a.length; i<l; i=i+1) {
-                    var li = a[i];
-                    if ( li                 && 
-                         li[this.FN] == fn  && 
-                         li[this.EL] == el  && 
-                         li[this.TYPE] == sType ) {
-                        return i;
-                    }
-                }
-
-                return -1;
-            },
-
-            /**
-             * Generates an unique ID for the element if it does not already 
-             * have one.
-             * @method generateId
-             * @param el the element to create the id for
-             * @return {string} the resulting id of the element
-             * @static
-             */
-            generateId: function(el) {
-                var id = el.id;
-
-                if (!id) {
-                    id = "yuievtautoid-" + counter;
-                    ++counter;
-                    el.id = id;
-                }
-
-                return id;
-            },
-
-
-            /**
-             * We want to be able to use getElementsByTagName as a collection
-             * to attach a group of events to.  Unfortunately, different 
-             * browsers return different types of collections.  This function
-             * tests to determine if the object is array-like.  It will also 
-             * fail if the object is an array, but is empty.
-             * @method _isValidCollection
-             * @param o the object to test
-             * @return {boolean} true if the object is array-like and populated
-             * @static
-             * @private
-             */
-            _isValidCollection: function(o) {
-                try {
-                    return ( o                     && // o is something
-                             typeof o !== "string" && // o is not a string
-                             o.length              && // o is indexed
-                             !o.tagName            && // o is not an HTML element
-                             !o.alert              && // o is not a window
-                             typeof o[0] !== "undefined" );
-                } catch(ex) {
-                    return false;
-                }
-
-            },
-
-            /**
-             * @private
-             * @property elCache
-             * DOM element cache
-             * @static
-             * @deprecated Elements are not cached due to issues that arise when
-             * elements are removed and re-added
-             */
-            elCache: {},
-
-            /**
-             * We cache elements bound by id because when the unload event 
-             * fires, we can no longer use document.getElementById
-             * @method getEl
-             * @static
-             * @private
-             * @deprecated Elements are not cached any longer
-             */
-            getEl: function(id) {
-                return (typeof id === "string") ? document.getElementById(id) : id;
-            },
-
-            /**
-             * Clears the element cache
-             * @deprecated Elements are not cached any longer
-             * @method clearCache
-             * @static
-             * @private
-             */
-            clearCache: function() { },
-
-            /**
-             * Custom event the fires when the dom is initially usable
-             * @event DOMReadyEvent
-             */
-            DOMReadyEvent: new YAHOO.util.CustomEvent("DOMReady", YAHOO, 0, 0, 1),
-
-            /**
-             * hook up any deferred listeners
-             * @method _load
-             * @static
-             * @private
-             */
-            _load: function(e) {
-
-                if (!loadComplete) {
-                    loadComplete = true;
-                    var EU = YAHOO.util.Event;
-
-                    // Just in case DOMReady did not go off for some reason
-                    EU._ready();
-
-                    // Available elements may not have been detected before the
-                    // window load event fires. Try to find them now so that the
-                    // the user is more likely to get the onAvailable notifications
-                    // before the window load notification
-                    EU._tryPreloadAttach();
-
-                }
-            },
-
-            /**
-             * Fires the DOMReady event listeners the first time the document is
-             * usable.
-             * @method _ready
-             * @static
-             * @private
-             */
-            _ready: function(e) {
-                var EU = YAHOO.util.Event;
-                if (!EU.DOMReady) {
-                    EU.DOMReady=true;
-
-                    // Fire the content ready custom event
-                    EU.DOMReadyEvent.fire();
-
-                    // Remove the DOMContentLoaded (FF/Opera)
-                    EU._simpleRemove(document, "DOMContentLoaded", EU._ready);
-                }
-            },
-
-            /**
-             * Polling function that runs before the onload event fires, 
-             * attempting to attach to DOM Nodes as soon as they are 
-             * available
-             * @method _tryPreloadAttach
-             * @static
-             * @private
-             */
-            _tryPreloadAttach: function() {
-
-                if (onAvailStack.length === 0) {
-                    retryCount = 0;
-                    if (this._interval) {
-                        // clearInterval(this._interval);
-                        this._interval.cancel();
-                        this._interval = null;
-                    } 
-                    return;
-                }
-
-                if (this.locked) {
-                    return;
-                }
-
-                if (this.isIE) {
-                    // Hold off if DOMReady has not fired and check current
-                    // readyState to protect against the IE operation aborted
-                    // issue.
-                    if (!this.DOMReady) {
-                        this.startInterval();
-                        return;
-                    }
-                }
-
-                this.locked = true;
-
-
-                // keep trying until after the page is loaded.  We need to 
-                // check the page load state prior to trying to bind the 
-                // elements so that we can be certain all elements have been 
-                // tested appropriately
-                var tryAgain = !loadComplete;
-                if (!tryAgain) {
-                    tryAgain = (retryCount > 0 && onAvailStack.length > 0);
-                }
-
-                // onAvailable
-                var notAvail = [];
-
-                var executeItem = function (el, item) {
-                    var context = el;
-                    if (item.overrideContext) {
-                        if (item.overrideContext === true) {
-                            context = item.obj;
-                        } else {
-                            context = item.overrideContext;
-                        }
-                    }
-                    item.fn.call(context, item.obj);
-                };
-
-                var i, len, item, el, ready=[];
-
-                // onAvailable onContentReady
-                for (i=0, len=onAvailStack.length; i<len; i=i+1) {
-                    item = onAvailStack[i];
-                    if (item) {
-                        el = this.getEl(item.id);
-                        if (el) {
-                            if (item.checkReady) {
-                                if (loadComplete || el.nextSibling || !tryAgain) {
-                                    ready.push(item);
-                                    onAvailStack[i] = null;
-                                }
-                            } else {
-                                executeItem(el, item);
-                                onAvailStack[i] = null;
-                            }
-                        } else {
-                            notAvail.push(item);
-                        }
-                    }
-                }
-                
-                // make sure onContentReady fires after onAvailable
-                for (i=0, len=ready.length; i<len; i=i+1) {
-                    item = ready[i];
-                    executeItem(this.getEl(item.id), item);
-                }
-
-
-                retryCount--;
-
-                if (tryAgain) {
-                    for (i=onAvailStack.length-1; i>-1; i--) {
-                        item = onAvailStack[i];
-                        if (!item || !item.id) {
-                            onAvailStack.splice(i, 1);
-                        }
-                    }
-
-                    this.startInterval();
-                } else {
-                    if (this._interval) {
-                        // clearInterval(this._interval);
-                        this._interval.cancel();
-                        this._interval = null;
-                    }
-                }
-
-                this.locked = false;
-
-            },
-
-            /**
-             * Removes all listeners attached to the given element via addListener.
-             * Optionally, the node's children can also be purged.
-             * Optionally, you can specify a specific type of event to remove.
-             * @method purgeElement
-             * @param {HTMLElement} el the element to purge
-             * @param {boolean} recurse recursively purge this element's children
-             * as well.  Use with caution.
-             * @param {string} sType optional type of listener to purge. If
-             * left out, all listeners will be removed
-             * @static
-             */
-            purgeElement: function(el, recurse, sType) {
-                var oEl = (YAHOO.lang.isString(el)) ? this.getEl(el) : el;
-                var elListeners = this.getListeners(oEl, sType), i, len;
-                if (elListeners) {
-                    for (i=elListeners.length-1; i>-1; i--) {
-                        var l = elListeners[i];
-                        this.removeListener(oEl, l.type, l.fn);
-                    }
-                }
-
-                if (recurse && oEl && oEl.childNodes) {
-                    for (i=0,len=oEl.childNodes.length; i<len ; ++i) {
-                        this.purgeElement(oEl.childNodes[i], recurse, sType);
-                    }
-                }
-            },
-
-            /**
-             * Returns all listeners attached to the given element via addListener.
-             * Optionally, you can specify a specific type of event to return.
-             * @method getListeners
-             * @param el {HTMLElement|string} the element or element id to inspect 
-             * @param sType {string} optional type of listener to return. If
-             * left out, all listeners will be returned
-             * @return {Object} the listener. Contains the following fields:
-             * &nbsp;&nbsp;type:   (string)   the type of event
-             * &nbsp;&nbsp;fn:     (function) the callback supplied to addListener
-             * &nbsp;&nbsp;obj:    (object)   the custom object supplied to addListener
-             * &nbsp;&nbsp;adjust: (boolean|object)  whether or not to adjust the default context
-             * &nbsp;&nbsp;scope: (boolean)  the derived context based on the adjust parameter
-             * &nbsp;&nbsp;index:  (int)      its position in the Event util listener cache
-             * @static
-             */           
-            getListeners: function(el, sType) {
-                var results=[], searchLists;
-                if (!sType) {
-                    searchLists = [listeners, unloadListeners];
-                } else if (sType === "unload") {
-                    searchLists = [unloadListeners];
-                } else {
-                                       sType = this._getType(sType);
-                    searchLists = [listeners];
-                }
-
-                var oEl = (YAHOO.lang.isString(el)) ? this.getEl(el) : el;
-
-                for (var j=0;j<searchLists.length; j=j+1) {
-                    var searchList = searchLists[j];
-                    if (searchList) {
-                        for (var i=0,len=searchList.length; i<len ; ++i) {
-                            var l = searchList[i];
-                            if ( l  && l[this.EL] === oEl && 
-                                    (!sType || sType === l[this.TYPE]) ) {
-                                results.push({
-                                    type:   l[this.TYPE],
-                                    fn:     l[this.FN],
-                                    obj:    l[this.OBJ],
-                                    adjust: l[this.OVERRIDE],
-                                    scope:  l[this.ADJ_SCOPE],
-                                    index:  i
-                                });
-                            }
-                        }
-                    }
-                }
-
-                return (results.length) ? results : null;
-            },
-
-            /**
-             * Removes all listeners registered by pe.event.  Called 
-             * automatically during the unload event.
-             * @method _unload
-             * @static
-             * @private
-             */
-            _unload: function(e) {
-
-                var EU = YAHOO.util.Event, i, j, l, len, index,
-                         ul = unloadListeners.slice(), context;
-
-                // execute and clear stored unload listeners
-                for (i=0, len=unloadListeners.length; i<len; ++i) {
-                    l = ul[i];
-                    if (l) {
-                        context = window;
-                        if (l[EU.ADJ_SCOPE]) {
-                            if (l[EU.ADJ_SCOPE] === true) {
-                                context = l[EU.UNLOAD_OBJ];
-                            } else {
-                                context = l[EU.ADJ_SCOPE];
-                            }
-                        }
-                        l[EU.FN].call(context, EU.getEvent(e, l[EU.EL]), l[EU.UNLOAD_OBJ] );
-                        ul[i] = null;
-                    }
-                }
-
-                l = null;
-                context = null;
-                unloadListeners = null;
-
-                // Remove listeners to handle IE memory leaks
-                // 2.5.0 listeners are removed for all browsers again.  FireFox preserves
-                // at least some listeners between page refreshes, potentially causing
-                // errors during page load (mouseover listeners firing before they
-                // should if the user moves the mouse at the correct moment).
-                if (listeners) {
-                    for (j=listeners.length-1; j>-1; j--) {
-                        l = listeners[j];
-                        if (l) {
-                            EU.removeListener(l[EU.EL], l[EU.TYPE], l[EU.FN], j);
-                        } 
-                    }
-                    l=null;
-                }
-
-                EU._simpleRemove(window, "unload", EU._unload);
-
-            },
-
-            /**
-             * Returns scrollLeft
-             * @method _getScrollLeft
-             * @static
-             * @private
-             */
-            _getScrollLeft: function() {
-                return this._getScroll()[1];
-            },
-
-            /**
-             * Returns scrollTop
-             * @method _getScrollTop
-             * @static
-             * @private
-             */
-            _getScrollTop: function() {
-                return this._getScroll()[0];
-            },
-
-            /**
-             * Returns the scrollTop and scrollLeft.  Used to calculate the 
-             * pageX and pageY in Internet Explorer
-             * @method _getScroll
-             * @static
-             * @private
-             */
-            _getScroll: function() {
-                var dd = document.documentElement, db = document.body;
-                if (dd && (dd.scrollTop || dd.scrollLeft)) {
-                    return [dd.scrollTop, dd.scrollLeft];
-                } else if (db) {
-                    return [db.scrollTop, db.scrollLeft];
-                } else {
-                    return [0, 0];
-                }
-            },
-            
-            /**
-             * Used by old versions of CustomEvent, restored for backwards
-             * compatibility
-             * @method regCE
-             * @private
-             * @static
-             * @deprecated still here for backwards compatibility
-             */
-            regCE: function() {},
-
-            /**
-             * Adds a DOM event directly without the caching, cleanup, context adj, etc
-             *
-             * @method _simpleAdd
-             * @param {HTMLElement} el      the element to bind the handler to
-             * @param {string}      sType   the type of event handler
-             * @param {function}    fn      the callback to invoke
-             * @param {boolen}      capture capture or bubble phase
-             * @static
-             * @private
-             */
-            _simpleAdd: function () {
-                if (window.addEventListener) {
-                    return function(el, sType, fn, capture) {
-                        el.addEventListener(sType, fn, (capture));
-                    };
-                } else if (window.attachEvent) {
-                    return function(el, sType, fn, capture) {
-                        el.attachEvent("on" + sType, fn);
-                    };
-                } else {
-                    return function(){};
-                }
-            }(),
-
-            /**
-             * Basic remove listener
-             *
-             * @method _simpleRemove
-             * @param {HTMLElement} el      the element to bind the handler to
-             * @param {string}      sType   the type of event handler
-             * @param {function}    fn      the callback to invoke
-             * @param {boolen}      capture capture or bubble phase
-             * @static
-             * @private
-             */
-            _simpleRemove: function() {
-                if (window.removeEventListener) {
-                    return function (el, sType, fn, capture) {
-                        el.removeEventListener(sType, fn, (capture));
-                    };
-                } else if (window.detachEvent) {
-                    return function (el, sType, fn) {
-                        el.detachEvent("on" + sType, fn);
-                    };
-                } else {
-                    return function(){};
-                }
-            }()
-        };
-
-    }();
-
-    (function() {
-        var EU = YAHOO.util.Event;
-
-        /**
-         * YAHOO.util.Event.on is an alias for addListener
-         * @method on
-         * @see addListener
-         * @static
-         */
-        EU.on = EU.addListener;
-
-        /**
-         * YAHOO.util.Event.onFocus is an alias for addFocusListener
-         * @method onFocus
-         * @see addFocusListener
-         * @static
-                * @deprecated use YAHOO.util.Event.on and specify "focusin" as the event type.
-         */
-        EU.onFocus = EU.addFocusListener;
-
-        /**
-         * YAHOO.util.Event.onBlur is an alias for addBlurListener
-         * @method onBlur
-         * @see addBlurListener
-         * @static
-                * @deprecated use YAHOO.util.Event.on and specify "focusout" as the event type.
-         */     
-        EU.onBlur = EU.addBlurListener;
-
-/*! DOMReady: based on work by: Dean Edwards/John Resig/Matthias Miller/Diego Perini */
-
-        // Internet Explorer: use the readyState of a defered script.
-        // This isolates what appears to be a safe moment to manipulate
-        // the DOM prior to when the document's readyState suggests
-        // it is safe to do so.
-        if (EU.isIE) {
-            if (self !== self.top) {
-                document.onreadystatechange = function() {
-                    if (document.readyState == 'complete') {
-                        document.onreadystatechange = null;
-                        EU._ready();
-                    }
-                };
-            } else {
-
-                // Process onAvailable/onContentReady items when the 
-                // DOM is ready.
-                YAHOO.util.Event.onDOMReady(
-                        YAHOO.util.Event._tryPreloadAttach,
-                        YAHOO.util.Event, true);
-                
-                var n = document.createElement('p');  
-
-                EU._dri = setInterval(function() {
-                    try {
-                        // throws an error if doc is not ready
-                        n.doScroll('left');
-                        clearInterval(EU._dri);
-                        EU._dri = null;
-                        EU._ready();
-                        n = null;
-                    } catch (ex) { 
-                    }
-                }, EU.POLL_INTERVAL); 
-            }
-
-        // The document's readyState in Safari currently will
-        // change to loaded/complete before images are loaded.
-        } else if (EU.webkit && EU.webkit < 525) {
-
-            EU._dri = setInterval(function() {
-                var rs=document.readyState;
-                if ("loaded" == rs || "complete" == rs) {
-                    clearInterval(EU._dri);
-                    EU._dri = null;
-                    EU._ready();
-                }
-            }, EU.POLL_INTERVAL); 
-
-        // FireFox and Opera: These browsers provide a event for this
-        // moment.  The latest WebKit releases now support this event.
-        } else {
-
-            EU._simpleAdd(document, "DOMContentLoaded", EU._ready);
-
-        }
-        /////////////////////////////////////////////////////////////
-
-
-        EU._simpleAdd(window, "load", EU._load);
-        EU._simpleAdd(window, "unload", EU._unload);
-        EU._tryPreloadAttach();
-    })();
-
-}
-/**
- * EventProvider is designed to be used with YAHOO.augment to wrap 
- * CustomEvents in an interface that allows events to be subscribed to 
- * and fired by name.  This makes it possible for implementing code to
- * subscribe to an event that either has not been created yet, or will
- * not be created at all.
- *
- * @Class EventProvider
- */
-YAHOO.util.EventProvider = function() { };
-
-YAHOO.util.EventProvider.prototype = {
-
-    /**
-     * Private storage of custom events
-     * @property __yui_events
-     * @type Object[]
-     * @private
-     */
-    __yui_events: null,
-
-    /**
-     * Private storage of custom event subscribers
-     * @property __yui_subscribers
-     * @type Object[]
-     * @private
-     */
-    __yui_subscribers: null,
-    
-    /**
-     * Subscribe to a CustomEvent by event type
-     *
-     * @method subscribe
-     * @param p_type     {string}   the type, or name of the event
-     * @param p_fn       {function} the function to exectute when the event fires
-     * @param p_obj      {Object}   An object to be passed along when the event 
-     *                              fires
-     * @param overrideContext {boolean}  If true, the obj passed in becomes the 
-     *                              execution scope of the listener
-     */
-    subscribe: function(p_type, p_fn, p_obj, overrideContext) {
-
-        this.__yui_events = this.__yui_events || {};
-        var ce = this.__yui_events[p_type];
-
-        if (ce) {
-            ce.subscribe(p_fn, p_obj, overrideContext);
-        } else {
-            this.__yui_subscribers = this.__yui_subscribers || {};
-            var subs = this.__yui_subscribers;
-            if (!subs[p_type]) {
-                subs[p_type] = [];
-            }
-            subs[p_type].push(
-                { fn: p_fn, obj: p_obj, overrideContext: overrideContext } );
-        }
-    },
-
-    /**
-     * Unsubscribes one or more listeners the from the specified event
-     * @method unsubscribe
-     * @param p_type {string}   The type, or name of the event.  If the type
-     *                          is not specified, it will attempt to remove
-     *                          the listener from all hosted events.
-     * @param p_fn   {Function} The subscribed function to unsubscribe, if not
-     *                          supplied, all subscribers will be removed.
-     * @param p_obj  {Object}   The custom object passed to subscribe.  This is
-     *                        optional, but if supplied will be used to
-     *                        disambiguate multiple listeners that are the same
-     *                        (e.g., you subscribe many object using a function
-     *                        that lives on the prototype)
-     * @return {boolean} true if the subscriber was found and detached.
-     */
-    unsubscribe: function(p_type, p_fn, p_obj) {
-        this.__yui_events = this.__yui_events || {};
-        var evts = this.__yui_events;
-        if (p_type) {
-            var ce = evts[p_type];
-            if (ce) {
-                return ce.unsubscribe(p_fn, p_obj);
-            }
-        } else {
-            var ret = true;
-            for (var i in evts) {
-                if (YAHOO.lang.hasOwnProperty(evts, i)) {
-                    ret = ret && evts[i].unsubscribe(p_fn, p_obj);
-                }
-            }
-            return ret;
-        }
-
-        return false;
-    },
-    
-    /**
-     * Removes all listeners from the specified event.  If the event type
-     * is not specified, all listeners from all hosted custom events will
-     * be removed.
-     * @method unsubscribeAll
-     * @param p_type {string}   The type, or name of the event
-     */
-    unsubscribeAll: function(p_type) {
-        return this.unsubscribe(p_type);
-    },
-
-    /**
-     * Creates a new custom event of the specified type.  If a custom event
-     * by that name already exists, it will not be re-created.  In either
-     * case the custom event is returned. 
-     *
-     * @method createEvent
-     *
-     * @param p_type {string} the type, or name of the event
-     * @param p_config {object} optional config params.  Valid properties are:
-     *
-     *  <ul>
-     *    <li>
-     *      scope: defines the default execution scope.  If not defined
-     *      the default scope will be this instance.
-     *    </li>
-     *    <li>
-     *      silent: if true, the custom event will not generate log messages.
-     *      This is false by default.
-     *    </li>
-     *    <li>
-     *      fireOnce: if true, the custom event will only notify subscribers
-     *      once regardless of the number of times the event is fired.  In
-     *      addition, new subscribers will be executed immediately if the
-     *      event has already fired.
-     *      This is false by default.
-     *    </li>
-     *    <li>
-     *      onSubscribeCallback: specifies a callback to execute when the
-     *      event has a new subscriber.  This will fire immediately for
-     *      each queued subscriber if any exist prior to the creation of
-     *      the event.
-     *    </li>
-     *  </ul>
-     *
-     *  @return {CustomEvent} the custom event
-     *
-     */
-    createEvent: function(p_type, p_config) {
-
-        this.__yui_events = this.__yui_events || {};
-        var opts = p_config || {},
-            events = this.__yui_events, ce;
-
-        if (events[p_type]) {
-        } else {
-
-            ce = new YAHOO.util.CustomEvent(p_type, opts.scope || this, opts.silent,
-                         YAHOO.util.CustomEvent.FLAT, opts.fireOnce);
-
-            events[p_type] = ce;
-
-            if (opts.onSubscribeCallback) {
-                ce.subscribeEvent.subscribe(opts.onSubscribeCallback);
-            }
-
-            this.__yui_subscribers = this.__yui_subscribers || {};
-            var qs = this.__yui_subscribers[p_type];
-
-            if (qs) {
-                for (var i=0; i<qs.length; ++i) {
-                    ce.subscribe(qs[i].fn, qs[i].obj, qs[i].overrideContext);
-                }
-            }
-        }
-
-        return events[p_type];
-    },
-
-
-   /**
-     * Fire a custom event by name.  The callback functions will be executed
-     * from the scope specified when the event was created, and with the 
-     * following parameters:
-     *   <ul>
-     *   <li>The first argument fire() was executed with</li>
-     *   <li>The custom object (if any) that was passed into the subscribe() 
-     *       method</li>
-     *   </ul>
-     * @method fireEvent
-     * @param p_type    {string}  the type, or name of the event
-     * @param arguments {Object*} an arbitrary set of parameters to pass to 
-     *                            the handler.
-     * @return {boolean} the return value from CustomEvent.fire
-     *                   
-     */
-    fireEvent: function(p_type) {
-
-        this.__yui_events = this.__yui_events || {};
-        var ce = this.__yui_events[p_type];
-
-        if (!ce) {
-            return null;
-        }
-
-        var args = [];
-        for (var i=1; i<arguments.length; ++i) {
-            args.push(arguments[i]);
-        }
-        return ce.fire.apply(ce, args);
-    },
-
-    /**
-     * Returns true if the custom event of the provided type has been created
-     * with createEvent.
-     * @method hasEvent
-     * @param type {string} the type, or name of the event
-     */
-    hasEvent: function(type) {
-        if (this.__yui_events) {
-            if (this.__yui_events[type]) {
-                return true;
-            }
-        }
-        return false;
-    }
-
-};
-
-(function() {
-
-    var Event = YAHOO.util.Event, Lang = YAHOO.lang;
-
-/**
-* KeyListener is a utility that provides an easy interface for listening for
-* keydown/keyup events fired against DOM elements.
-* @namespace YAHOO.util
-* @class KeyListener
-* @constructor
-* @param {HTMLElement} attachTo The element or element ID to which the key 
-*                               event should be attached
-* @param {String}      attachTo The element or element ID to which the key
-*                               event should be attached
-* @param {Object}      keyData  The object literal representing the key(s) 
-*                               to detect. Possible attributes are 
-*                               shift(boolean), alt(boolean), ctrl(boolean) 
-*                               and keys(either an int or an array of ints 
-*                               representing keycodes).
-* @param {Function}    handler  The CustomEvent handler to fire when the 
-*                               key event is detected
-* @param {Object}      handler  An object literal representing the handler. 
-* @param {String}      event    Optional. The event (keydown or keyup) to 
-*                               listen for. Defaults automatically to keydown.
-*
-* @knownissue the "keypress" event is completely broken in Safari 2.x and below.
-*             the workaround is use "keydown" for key listening.  However, if
-*             it is desired to prevent the default behavior of the keystroke,
-*             that can only be done on the keypress event.  This makes key
-*             handling quite ugly.
-* @knownissue keydown is also broken in Safari 2.x and below for the ESC key.
-*             There currently is no workaround other than choosing another
-*             key to listen for.
-*/
-YAHOO.util.KeyListener = function(attachTo, keyData, handler, event) {
-    if (!attachTo) {
-    } else if (!keyData) {
-    } else if (!handler) {
-    } 
-    
-    if (!event) {
-        event = YAHOO.util.KeyListener.KEYDOWN;
-    }
-
-    /**
-    * The CustomEvent fired internally when a key is pressed
-    * @event keyEvent
-    * @private
-    * @param {Object} keyData The object literal representing the key(s) to 
-    *                         detect. Possible attributes are shift(boolean), 
-    *                         alt(boolean), ctrl(boolean) and keys(either an 
-    *                         int or an array of ints representing keycodes).
-    */
-    var keyEvent = new YAHOO.util.CustomEvent("keyPressed");
-    
-    /**
-    * The CustomEvent fired when the KeyListener is enabled via the enable() 
-    * function
-    * @event enabledEvent
-    * @param {Object} keyData The object literal representing the key(s) to 
-    *                         detect. Possible attributes are shift(boolean), 
-    *                         alt(boolean), ctrl(boolean) and keys(either an 
-    *                         int or an array of ints representing keycodes).
-    */
-    this.enabledEvent = new YAHOO.util.CustomEvent("enabled");
-
-    /**
-    * The CustomEvent fired when the KeyListener is disabled via the 
-    * disable() function
-    * @event disabledEvent
-    * @param {Object} keyData The object literal representing the key(s) to 
-    *                         detect. Possible attributes are shift(boolean), 
-    *                         alt(boolean), ctrl(boolean) and keys(either an 
-    *                         int or an array of ints representing keycodes).
-    */
-    this.disabledEvent = new YAHOO.util.CustomEvent("disabled");
-
-    if (Lang.isString(attachTo)) {
-        attachTo = document.getElementById(attachTo); // No Dom util
-    }
-
-    if (Lang.isFunction(handler)) {
-        keyEvent.subscribe(handler);
-    } else {
-        keyEvent.subscribe(handler.fn, handler.scope, handler.correctScope);
-    }
-
-    /**
-    * Handles the key event when a key is pressed.
-    * @method handleKeyPress
-    * @param {DOMEvent} e   The keypress DOM event
-    * @param {Object}   obj The DOM event scope object
-    * @private
-    */
-    function handleKeyPress(e, obj) {
-        if (! keyData.shift) {  
-            keyData.shift = false; 
-        }
-        if (! keyData.alt) {    
-            keyData.alt = false;
-        }
-        if (! keyData.ctrl) {
-            keyData.ctrl = false;
-        }
-
-        // check held down modifying keys first
-        if (e.shiftKey == keyData.shift && 
-            e.altKey   == keyData.alt &&
-            e.ctrlKey  == keyData.ctrl) { // if we pass this, all modifiers match
-            
-            var dataItem, keys = keyData.keys, key;
-
-            if (YAHOO.lang.isArray(keys)) {
-                for (var i=0;i<keys.length;i++) {
-                    dataItem = keys[i];
-                    key = Event.getCharCode(e);
-
-                    if (dataItem == key) {
-                        keyEvent.fire(key, e);
-                        break;
-                    }
-                }
-            } else {
-                key = Event.getCharCode(e);
-                if (keys == key ) {
-                    keyEvent.fire(key, e);
-                }
-            }
-        }
-    }
-
-    /**
-    * Enables the KeyListener by attaching the DOM event listeners to the 
-    * target DOM element
-    * @method enable
-    */
-    this.enable = function() {
-        if (! this.enabled) {
-            Event.on(attachTo, event, handleKeyPress);
-            this.enabledEvent.fire(keyData);
-        }
-        /**
-        * Boolean indicating the enabled/disabled state of the Tooltip
-        * @property enabled
-        * @type Boolean
-        */
-        this.enabled = true;
-    };
-
-    /**
-    * Disables the KeyListener by removing the DOM event listeners from the 
-    * target DOM element
-    * @method disable
-    */
-    this.disable = function() {
-        if (this.enabled) {
-            Event.removeListener(attachTo, event, handleKeyPress);
-            this.disabledEvent.fire(keyData);
-        }
-        this.enabled = false;
-    };
-
-    /**
-    * Returns a String representation of the object.
-    * @method toString
-    * @return {String}  The string representation of the KeyListener
-    */ 
-    this.toString = function() {
-        return "KeyListener [" + keyData.keys + "] " + attachTo.tagName + 
-                (attachTo.id ? "[" + attachTo.id + "]" : "");
-    };
-
-};
-
-var KeyListener = YAHOO.util.KeyListener;
-
-/**
- * Constant representing the DOM "keydown" event.
- * @property YAHOO.util.KeyListener.KEYDOWN
- * @static
- * @final
- * @type String
- */
-KeyListener.KEYDOWN = "keydown";
-
-/**
- * Constant representing the DOM "keyup" event.
- * @property YAHOO.util.KeyListener.KEYUP
- * @static
- * @final
- * @type String
- */
-KeyListener.KEYUP = "keyup";
-
-/**
- * keycode constants for a subset of the special keys
- * @property KEY
- * @static
- * @final
- */
-KeyListener.KEY = {
-    ALT          : 18,
-    BACK_SPACE   : 8,
-    CAPS_LOCK    : 20,
-    CONTROL      : 17,
-    DELETE       : 46,
-    DOWN         : 40,
-    END          : 35,
-    ENTER        : 13,
-    ESCAPE       : 27,
-    HOME         : 36,
-    LEFT         : 37,
-    META         : 224,
-    NUM_LOCK     : 144,
-    PAGE_DOWN    : 34,
-    PAGE_UP      : 33, 
-    PAUSE        : 19,
-    PRINTSCREEN  : 44,
-    RIGHT        : 39,
-    SCROLL_LOCK  : 145,
-    SHIFT        : 16,
-    SPACE        : 32,
-    TAB          : 9,
-    UP           : 38
-};
-
-})();
-YAHOO.register("event", YAHOO.util.Event, {version: "2.8.0r4", build: "2449"});
diff --git a/koha-tmpl/intranet-tmpl/prog/en/lib/yui/fonts/fonts-min.css b/koha-tmpl/intranet-tmpl/prog/en/lib/yui/fonts/fonts-min.css
deleted file mode 100644 (file)
index c061423..0000000
+++ /dev/null
@@ -1,7 +0,0 @@
-/*
-Copyright (c) 2009, Yahoo! Inc. All rights reserved.
-Code licensed under the BSD License:
-http://developer.yahoo.net/yui/license.txt
-version: 2.8.0r4
-*/
-body{font:13px/1.231 arial,helvetica,clean,sans-serif;*font-size:small;*font:x-small;}select,input,button,textarea,button{font:99% arial,helvetica,clean,sans-serif;}table{font-size:inherit;font:100%;}pre,code,kbd,samp,tt{font-family:monospace;*font-size:108%;line-height:100%;}
\ No newline at end of file
diff --git a/koha-tmpl/intranet-tmpl/prog/en/lib/yui/fonts/fonts.css b/koha-tmpl/intranet-tmpl/prog/en/lib/yui/fonts/fonts.css
deleted file mode 100644 (file)
index 0bf020c..0000000
+++ /dev/null
@@ -1,56 +0,0 @@
-/*
-Copyright (c) 2009, Yahoo! Inc. All rights reserved.
-Code licensed under the BSD License:
-http://developer.yahoo.net/yui/license.txt
-version: 2.8.0r4
-*/
-/**
- * YUI Fonts
- * @module fonts
- * @namespace yui-
- * @requires 
- */
-
-/**
- * Percents could work for IE, but for backCompat purposes, we are using keywords.
- * x-small is for IE6/7 quirks mode.
- */
-body {
-       font:13px/1.231 arial,helvetica,clean,sans-serif;
-       /* for IE6/7 */ 
-       *font-size:small; 
-       /* for IE Quirks Mode */
-       *font:x-small; 
-}
-
-/**
- * Nudge down to get to 13px equivalent for these form elements
- */ 
-select,
-input,
-button,
-textarea,
-button {
-       font:99% arial,helvetica,clean,sans-serif;
-}
-
-/**
- * To help tables remember to inherit
- */
-table {
-       font-size:inherit;
-       font:100%;
-}
-
-/**
- * Bump up IE to get to 13px equivalent for these fixed-width elements
- */
-pre,
-code,
-kbd,
-samp,
-tt {
-       font-family:monospace;
-       *font-size:108%;
-       line-height:100%;
-}
diff --git a/koha-tmpl/intranet-tmpl/prog/en/lib/yui/get/get-debug.js b/koha-tmpl/intranet-tmpl/prog/en/lib/yui/get/get-debug.js
deleted file mode 100644 (file)
index 86f911a..0000000
+++ /dev/null
@@ -1,773 +0,0 @@
-/*
-Copyright (c) 2009, Yahoo! Inc. All rights reserved.
-Code licensed under the BSD License:
-http://developer.yahoo.net/yui/license.txt
-version: 2.8.0r4
-*/
-/**
- * Provides a mechanism to fetch remote resources and
- * insert them into a document
- * @module get
- * @requires yahoo
- */
-
-/**
- * Fetches and inserts one or more script or link nodes into the document 
- * @namespace YAHOO.util
- * @class YAHOO.util.Get
- */
-YAHOO.util.Get = function() {
-
-    /**
-     * hash of queues to manage multiple requests
-     * @property queues
-     * @private
-     */
-    var queues={}, 
-        
-    /**
-     * queue index used to generate transaction ids
-     * @property qidx
-     * @type int
-     * @private
-     */
-        qidx=0, 
-        
-    /**
-     * node index used to generate unique node ids
-     * @property nidx
-     * @type int
-     * @private
-     */
-        nidx=0, 
-
-        // ridx=0,
-
-        // sandboxFrame=null,
-
-    /**
-     * interal property used to prevent multiple simultaneous purge 
-     * processes
-     * @property purging
-     * @type boolean
-     * @private
-     */
-        purging=false,
-
-        ua=YAHOO.env.ua, 
-        
-        lang=YAHOO.lang;
-    
-    /** 
-     * Generates an HTML element, this is not appended to a document
-     * @method _node
-     * @param type {string} the type of element
-     * @param attr {string} the attributes
-     * @param win {Window} optional window to create the element in
-     * @return {HTMLElement} the generated node
-     * @private
-     */
-    var _node = function(type, attr, win) {
-        var w = win || window, d=w.document, n=d.createElement(type);
-
-        for (var i in attr) {
-            if (attr[i] && YAHOO.lang.hasOwnProperty(attr, i)) {
-                n.setAttribute(i, attr[i]);
-            }
-        }
-
-        return n;
-    };
-
-    /**
-     * Generates a link node
-     * @method _linkNode
-     * @param url {string} the url for the css file
-     * @param win {Window} optional window to create the node in
-     * @return {HTMLElement} the generated node
-     * @private
-     */
-    var _linkNode = function(url, win, attributes) {
-
-        var o = {
-            id:   "yui__dyn_" + (nidx++),
-            type: "text/css",
-            rel:  "stylesheet",
-            href: url
-        };
-
-        if (attributes) {
-            lang.augmentObject(o, attributes);
-        }
-
-        return _node("link", o, win);
-    };
-
-    /**
-     * Generates a script node
-     * @method _scriptNode
-     * @param url {string} the url for the script file
-     * @param win {Window} optional window to create the node in
-     * @return {HTMLElement} the generated node
-     * @private
-     */
-    var _scriptNode = function(url, win, attributes) {
-        var o = {
-            id:   "yui__dyn_" + (nidx++),
-            type: "text/javascript",
-            src:  url
-        };
-
-        if (attributes) {
-            lang.augmentObject(o, attributes);
-        }
-
-        return _node("script", o, win);
-    };
-
-    /**
-     * Returns the data payload for callback functions
-     * @method _returnData
-     * @private
-     */
-    var _returnData = function(q, msg) {
-        return {
-                tId: q.tId,
-                win: q.win,
-                data: q.data,
-                nodes: q.nodes,
-                msg: msg,
-                purge: function() {
-                    _purge(this.tId);
-                }
-            };
-    };
-
-    var _get = function(nId, tId) {
-        var q = queues[tId],
-            n = (lang.isString(nId)) ? q.win.document.getElementById(nId) : nId;
-        if (!n) {
-            _fail(tId, "target node not found: " + nId);
-        }
-
-        return n;
-    };
-
-    /*
-     * The request failed, execute fail handler with whatever
-     * was accomplished.  There isn't a failure case at the
-     * moment unless you count aborted transactions
-     * @method _fail
-     * @param id {string} the id of the request
-     * @private
-     */
-    var _fail = function(id, msg) {
-        YAHOO.log("get failure: " + msg, "warn", "Get");
-        var q = queues[id];
-        // execute failure callback
-        if (q.onFailure) {
-            var sc=q.scope || q.win;
-            q.onFailure.call(sc, _returnData(q, msg));
-        }
-    };
-
-    /**
-     * The request is complete, so executing the requester's callback
-     * @method _finish
-     * @param id {string} the id of the request
-     * @private
-     */
-    var _finish = function(id) {
-        YAHOO.log("Finishing transaction " + id);
-        var q = queues[id];
-        q.finished = true;
-
-        if (q.aborted) {
-            var msg = "transaction " + id + " was aborted";
-            _fail(id, msg);
-            return;
-        }
-
-        // execute success callback
-        if (q.onSuccess) {
-            var sc=q.scope || q.win;
-            q.onSuccess.call(sc, _returnData(q));
-        }
-    };
-
-    /**
-     * Timeout detected
-     * @method _timeout
-     * @param id {string} the id of the request
-     * @private
-     */
-    var _timeout = function(id) {
-        YAHOO.log("Timeout " + id, "info", "get");
-        var q = queues[id];
-        if (q.onTimeout) {
-            var sc=q.scope || q;
-            q.onTimeout.call(sc, _returnData(q));
-        }
-    };
-
-    /**
-     * Loads the next item for a given request
-     * @method _next
-     * @param id {string} the id of the request
-     * @param loaded {string} the url that was just loaded, if any
-     * @private
-     */
-    var _next = function(id, loaded) {
-        YAHOO.log("_next: " + id + ", loaded: " + loaded, "info", "Get");
-        var q = queues[id];
-
-        if (q.timer) {
-            // Y.log('cancel timer');
-            q.timer.cancel();
-        }
-
-        if (q.aborted) {
-            var msg = "transaction " + id + " was aborted";
-            _fail(id, msg);
-            return;
-        }
-
-        if (loaded) {
-            q.url.shift(); 
-            if (q.varName) {
-                q.varName.shift(); 
-            }
-        } else {
-            // This is the first pass: make sure the url is an array
-            q.url = (lang.isString(q.url)) ? [q.url] : q.url;
-            if (q.varName) {
-                q.varName = (lang.isString(q.varName)) ? [q.varName] : q.varName;
-            }
-        }
-
-        var w=q.win, d=w.document, h=d.getElementsByTagName("head")[0], n;
-
-        if (q.url.length === 0) {
-            // Safari 2.x workaround - There is no way to know when 
-            // a script is ready in versions of Safari prior to 3.x.
-            // Adding an extra node reduces the problem, but doesn't
-            // eliminate it completely because the browser executes
-            // them asynchronously. 
-            if (q.type === "script" && ua.webkit && ua.webkit < 420 && 
-                    !q.finalpass && !q.varName) {
-                // Add another script node.  This does not guarantee that the
-                // scripts will execute in order, but it does appear to fix the
-                // problem on fast connections more effectively than using an
-                // arbitrary timeout.  It is possible that the browser does
-                // block subsequent script execution in this case for a limited
-                // time.
-                var extra = _scriptNode(null, q.win, q.attributes);
-                extra.innerHTML='YAHOO.util.Get._finalize("' + id + '");';
-                q.nodes.push(extra); h.appendChild(extra);
-
-            } else {
-                _finish(id);
-            }
-
-            return;
-        } 
-
-
-        var url = q.url[0];
-
-        // if the url is undefined, this is probably a trailing comma problem in IE
-        if (!url) {
-            q.url.shift(); 
-            YAHOO.log('skipping empty url');
-            return _next(id);
-        }
-
-        YAHOO.log("attempting to load " + url, "info", "Get");
-
-        if (q.timeout) {
-            // Y.log('create timer');
-            q.timer = lang.later(q.timeout, q, _timeout, id);
-        }
-
-        if (q.type === "script") {
-            n = _scriptNode(url, w, q.attributes);
-        } else {
-            n = _linkNode(url, w, q.attributes);
-        }
-
-        // track this node's load progress
-        _track(q.type, n, id, url, w, q.url.length);
-
-        // add the node to the queue so we can return it to the user supplied callback
-        q.nodes.push(n);
-
-        // add it to the head or insert it before 'insertBefore'
-        if (q.insertBefore) {
-            var s = _get(q.insertBefore, id);
-            if (s) {
-                s.parentNode.insertBefore(n, s);
-            }
-        } else {
-            h.appendChild(n);
-        }
-        
-        YAHOO.log("Appending node: " + url, "info", "Get");
-
-        // FireFox does not support the onload event for link nodes, so there is
-        // no way to make the css requests synchronous. This means that the css 
-        // rules in multiple files could be applied out of order in this browser
-        // if a later request returns before an earlier one.  Safari too.
-        if ((ua.webkit || ua.gecko) && q.type === "css") {
-            _next(id, url);
-        }
-    };
-
-    /**
-     * Removes processed queues and corresponding nodes
-     * @method _autoPurge
-     * @private
-     */
-    var _autoPurge = function() {
-
-        if (purging) {
-            return;
-        }
-
-        purging = true;
-        for (var i in queues) {
-            var q = queues[i];
-            if (q.autopurge && q.finished) {
-                _purge(q.tId);
-                delete queues[i];
-            }
-        }
-
-        purging = false;
-    };
-
-    /**
-     * Removes the nodes for the specified queue
-     * @method _purge
-     * @private
-     */
-    var _purge = function(tId) {
-        if (queues[tId]) {
-
-            var q     = queues[tId],
-                nodes = q.nodes, 
-                l     = nodes.length, 
-                d     = q.win.document, 
-                h     = d.getElementsByTagName("head")[0],
-                sib, i, node, attr;
-
-            if (q.insertBefore) {
-                sib = _get(q.insertBefore, tId);
-                if (sib) {
-                    h = sib.parentNode;
-                }
-            }
-
-            for (i=0; i<l; i=i+1) {
-                node = nodes[i];
-                if (node.clearAttributes) {
-                    node.clearAttributes();
-                } else {
-                    for (attr in node) {
-                        delete node[attr];
-                    }
-                }
-
-                h.removeChild(node);
-            }
-
-            q.nodes = [];
-        }
-    };
-
-    /**
-     * Saves the state for the request and begins loading
-     * the requested urls
-     * @method queue
-     * @param type {string} the type of node to insert
-     * @param url {string} the url to load
-     * @param opts the hash of options for this request
-     * @private
-     */
-    var _queue = function(type, url, opts) {
-
-        var id = "q" + (qidx++);
-        opts = opts || {};
-
-        if (qidx % YAHOO.util.Get.PURGE_THRESH === 0) {
-            _autoPurge();
-        }
-
-        queues[id] = lang.merge(opts, {
-            tId: id,
-            type: type,
-            url: url,
-            finished: false,
-            aborted: false,
-            nodes: []
-        });
-
-        var q = queues[id];
-        q.win = q.win || window;
-        q.scope = q.scope || q.win;
-        q.autopurge = ("autopurge" in q) ? q.autopurge : 
-                      (type === "script") ? true : false;
-
-        if (opts.charset) {
-            q.attributes = q.attributes || {};
-            q.attributes.charset = opts.charset;
-        }
-
-        lang.later(0, q, _next, id);
-
-        return {
-            tId: id
-        };
-    };
-
-    /**
-     * Detects when a node has been loaded.  In the case of
-     * script nodes, this does not guarantee that contained
-     * script is ready to use.
-     * @method _track
-     * @param type {string} the type of node to track
-     * @param n {HTMLElement} the node to track
-     * @param id {string} the id of the request
-     * @param url {string} the url that is being loaded
-     * @param win {Window} the targeted window
-     * @param qlength the number of remaining items in the queue,
-     * including this one
-     * @param trackfn {Function} function to execute when finished
-     * the default is _next
-     * @private
-     */
-    var _track = function(type, n, id, url, win, qlength, trackfn) {
-        var f = trackfn || _next;
-
-        // IE supports the readystatechange event for script and css nodes
-        if (ua.ie) {
-            n.onreadystatechange = function() {
-                var rs = this.readyState;
-                if ("loaded" === rs || "complete" === rs) {
-                    YAHOO.log(id + " onload " + url, "info", "Get");
-                    n.onreadystatechange = null;
-                    f(id, url);
-                }
-            };
-
-        // webkit prior to 3.x is problemmatic
-        } else if (ua.webkit) {
-
-            if (type === "script") {
-
-                // Safari 3.x supports the load event for script nodes (DOM2)
-                if (ua.webkit >= 420) {
-
-                    n.addEventListener("load", function() {
-                        YAHOO.log(id + " DOM2 onload " + url, "info", "Get");
-                        f(id, url);
-                    });
-
-                // Nothing can be done with Safari < 3.x except to pause and hope
-                // for the best, particularly after last script is inserted. The
-                // scripts will always execute in the order they arrive, not
-                // necessarily the order in which they were inserted.  To support
-                // script nodes with complete reliability in these browsers, script
-                // nodes either need to invoke a function in the window once they
-                // are loaded or the implementer needs to provide a well-known
-                // property that the utility can poll for.
-                } else {
-                    // Poll for the existence of the named variable, if it
-                    // was supplied.
-                    var q = queues[id];
-                    if (q.varName) {
-                        var freq=YAHOO.util.Get.POLL_FREQ;
-                        YAHOO.log("Polling for " + q.varName[0]);
-                        q.maxattempts = YAHOO.util.Get.TIMEOUT/freq;
-                        q.attempts = 0;
-                        q._cache = q.varName[0].split(".");
-                        q.timer = lang.later(freq, q, function(o) {
-                            var a=this._cache, l=a.length, w=this.win, i;
-                            for (i=0; i<l; i=i+1) {
-                                w = w[a[i]];
-                                if (!w) {
-                                    // if we have exausted our attempts, give up
-                                    this.attempts++;
-                                    if (this.attempts++ > this.maxattempts) {
-                                        var msg = "Over retry limit, giving up";
-                                        q.timer.cancel();
-                                        _fail(id, msg);
-                                    } else {
-                                        YAHOO.log(a[i] + " failed, retrying");
-                                    }
-                                    return;
-                                }
-                            }
-                            
-                            YAHOO.log("Safari poll complete");
-
-                            q.timer.cancel();
-                            f(id, url);
-
-                        }, null, true);
-                    } else {
-                        lang.later(YAHOO.util.Get.POLL_FREQ, null, f, [id, url]);
-                    }
-                }
-            } 
-
-        // FireFox and Opera support onload (but not DOM2 in FF) handlers for
-        // script nodes.  Opera, but not FF, supports the onload event for link
-        // nodes.
-        } else { 
-            n.onload = function() {
-                YAHOO.log(id + " onload " + url, "info", "Get");
-                f(id, url);
-            };
-        }
-    };
-
-    return {
-
-        /**
-         * The default poll freqency in ms, when needed
-         * @property POLL_FREQ
-         * @static
-         * @type int
-         * @default 10
-         */
-        POLL_FREQ: 10,
-
-        /**
-         * The number of request required before an automatic purge.
-         * property PURGE_THRESH
-         * @static
-         * @type int
-         * @default 20
-         */
-        PURGE_THRESH: 20,
-
-        /**
-         * The length time to poll for varName when loading a script in
-         * Safari 2.x before the transaction fails.
-         * property TIMEOUT
-         * @static
-         * @type int
-         * @default 2000
-         */
-        TIMEOUT: 2000,
-        
-        /**
-         * Called by the helper for detecting script load in Safari
-         * @method _finalize
-         * @param id {string} the transaction id
-         * @private
-         */
-        _finalize: function(id) {
-            YAHOO.log(id + " finalized ", "info", "Get");
-            lang.later(0, null, _finish, id);
-        },
-
-        /**
-         * Abort a transaction
-         * @method abort
-         * @param {string|object} either the tId or the object returned from
-         * script() or css()
-         */
-        abort: function(o) {
-            var id = (lang.isString(o)) ? o : o.tId;
-            var q = queues[id];
-            if (q) {
-                YAHOO.log("Aborting " + id, "info", "Get");
-                q.aborted = true;
-            }
-        }, 
-
-        /**
-         * Fetches and inserts one or more script nodes into the head
-         * of the current document or the document in a specified window.
-         *
-         * @method script
-         * @static
-         * @param url {string|string[]} the url or urls to the script(s)
-         * @param opts {object} Options: 
-         * <dl>
-         * <dt>onSuccess</dt>
-         * <dd>
-         * callback to execute when the script(s) are finished loading
-         * The callback receives an object back with the following
-         * data:
-         * <dl>
-         * <dt>win</dt>
-         * <dd>the window the script(s) were inserted into</dd>
-         * <dt>data</dt>
-         * <dd>the data object passed in when the request was made</dd>
-         * <dt>nodes</dt>
-         * <dd>An array containing references to the nodes that were
-         * inserted</dd>
-         * <dt>purge</dt>
-         * <dd>A function that, when executed, will remove the nodes
-         * that were inserted</dd>
-         * <dt>
-         * </dl>
-         * </dd>
-         * <dt>onFailure</dt>
-         * <dd>
-         * callback to execute when the script load operation fails
-         * The callback receives an object back with the following
-         * data:
-         * <dl>
-         * <dt>win</dt>
-         * <dd>the window the script(s) were inserted into</dd>
-         * <dt>data</dt>
-         * <dd>the data object passed in when the request was made</dd>
-         * <dt>nodes</dt>
-         * <dd>An array containing references to the nodes that were
-         * inserted successfully</dd>
-         * <dt>purge</dt>
-         * <dd>A function that, when executed, will remove any nodes
-         * that were inserted</dd>
-         * <dt>
-         * </dl>
-         * </dd>
-         * <dt>onTimeout</dt>
-         * <dd>
-         * callback to execute when a timeout occurs.
-         * The callback receives an object back with the following
-         * data:
-         * <dl>
-         * <dt>win</dt>
-         * <dd>the window the script(s) were inserted into</dd>
-         * <dt>data</dt>
-         * <dd>the data object passed in when the request was made</dd>
-         * <dt>nodes</dt>
-         * <dd>An array containing references to the nodes that were
-         * inserted</dd>
-         * <dt>purge</dt>
-         * <dd>A function that, when executed, will remove the nodes
-         * that were inserted</dd>
-         * <dt>
-         * </dl>
-         * </dd>
-         * <dt>scope</dt>
-         * <dd>the execution context for the callbacks</dd>
-         * <dt>win</dt>
-         * <dd>a window other than the one the utility occupies</dd>
-         * <dt>autopurge</dt>
-         * <dd>
-         * setting to true will let the utilities cleanup routine purge 
-         * the script once loaded
-         * </dd>
-         * <dt>data</dt>
-         * <dd>
-         * data that is supplied to the callback when the script(s) are
-         * loaded.
-         * </dd>
-         * <dt>varName</dt>
-         * <dd>
-         * variable that should be available when a script is finished
-         * loading.  Used to help Safari 2.x and below with script load 
-         * detection.  The type of this property should match what was
-         * passed into the url parameter: if loading a single url, a
-         * string can be supplied.  If loading multiple scripts, you
-         * must supply an array that contains the variable name for
-         * each script.
-         * </dd>
-         * <dt>insertBefore</dt>
-         * <dd>node or node id that will become the new node's nextSibling</dd>
-         * </dl>
-         * <dt>charset</dt>
-         * <dd>Node charset, deprecated, use 'attributes'</dd>
-         * <dt>attributes</dt>
-         * <dd>A hash of attributes to apply to dynamic nodes.</dd>
-         * <dt>timeout</dt>
-         * <dd>Number of milliseconds to wait before aborting and firing the timeout event</dd>
-         * <pre>
-         * // assumes yahoo, dom, and event are already on the page
-         * &nbsp;&nbsp;YAHOO.util.Get.script(
-         * &nbsp;&nbsp;["http://yui.yahooapis.com/2.7.0/build/dragdrop/dragdrop-min.js",
-         * &nbsp;&nbsp;&nbsp;"http://yui.yahooapis.com/2.7.0/build/animation/animation-min.js"], &#123;
-         * &nbsp;&nbsp;&nbsp;&nbsp;onSuccess: function(o) &#123;
-         * &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;YAHOO.log(o.data); // foo
-         * &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;new YAHOO.util.DDProxy("dd1"); // also new o.reference("dd1"); would work
-         * &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;this.log("won't cause error because YAHOO is the scope");
-         * &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;this.log(o.nodes.length === 2) // true
-         * &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;// o.purge(); // optionally remove the script nodes immediately
-         * &nbsp;&nbsp;&nbsp;&nbsp;&#125;,
-         * &nbsp;&nbsp;&nbsp;&nbsp;onFailure: function(o) &#123;
-         * &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;YAHOO.log("transaction failed");
-         * &nbsp;&nbsp;&nbsp;&nbsp;&#125;,
-         * &nbsp;&nbsp;&nbsp;&nbsp;data: "foo",
-         * &nbsp;&nbsp;&nbsp;&nbsp;timeout: 10000, // 10 second timeout
-         * &nbsp;&nbsp;&nbsp;&nbsp;scope: YAHOO,
-         * &nbsp;&nbsp;&nbsp;&nbsp;// win: otherframe // target another window/frame
-         * &nbsp;&nbsp;&nbsp;&nbsp;autopurge: true // allow the utility to choose when to remove the nodes
-         * &nbsp;&nbsp;&#125;);
-         * </pre>
-         * @return {tId: string} an object containing info about the transaction
-         */
-        script: function(url, opts) { return _queue("script", url, opts); },
-
-        /**
-         * Fetches and inserts one or more css link nodes into the 
-         * head of the current document or the document in a specified
-         * window.
-         * @method css
-         * @static
-         * @param url {string} the url or urls to the css file(s)
-         * @param opts Options: 
-         * <dl>
-         * <dt>onSuccess</dt>
-         * <dd>
-         * callback to execute when the css file(s) are finished loading
-         * The callback receives an object back with the following
-         * data:
-         * <dl>win</dl>
-         * <dd>the window the link nodes(s) were inserted into</dd>
-         * <dt>data</dt>
-         * <dd>the data object passed in when the request was made</dd>
-         * <dt>nodes</dt>
-         * <dd>An array containing references to the nodes that were
-         * inserted</dd>
-         * <dt>purge</dt>
-         * <dd>A function that, when executed, will remove the nodes
-         * that were inserted</dd>
-         * <dt>
-         * </dl>
-         * </dd>
-         * <dt>scope</dt>
-         * <dd>the execution context for the callbacks</dd>
-         * <dt>win</dt>
-         * <dd>a window other than the one the utility occupies</dd>
-         * <dt>data</dt>
-         * <dd>
-         * data that is supplied to the callbacks when the nodes(s) are
-         * loaded.
-         * </dd>
-         * <dt>insertBefore</dt>
-         * <dd>node or node id that will become the new node's nextSibling</dd>
-         * <dt>charset</dt>
-         * <dd>Node charset, deprecated, use 'attributes'</dd>
-         * <dt>attributes</dt>
-         * <dd>A hash of attributes to apply to dynamic nodes.</dd>
-         * </dl>
-         * <pre>
-         *      YAHOO.util.Get.css("http://yui.yahooapis.com/2.7.0/build/menu/assets/skins/sam/menu.css");
-         * </pre>
-         * <pre>
-         *      YAHOO.util.Get.css(["http://yui.yahooapis.com/2.7.0/build/menu/assets/skins/sam/menu.css",
-         *                          "http://yui.yahooapis.com/2.7.0/build/logger/assets/skins/sam/logger.css"]);
-         * </pre>
-         * @return {tId: string} an object containing info about the transaction
-         */
-        css: function(url, opts) {
-            return _queue("css", url, opts); 
-        }
-    };
-}();
-
-YAHOO.register("get", YAHOO.util.Get, {version: "2.8.0r4", build: "2449"});
diff --git a/koha-tmpl/intranet-tmpl/prog/en/lib/yui/get/get-min.js b/koha-tmpl/intranet-tmpl/prog/en/lib/yui/get/get-min.js
deleted file mode 100644 (file)
index 51a4fba..0000000
+++ /dev/null
@@ -1,7 +0,0 @@
-/*
-Copyright (c) 2009, Yahoo! Inc. All rights reserved.
-Code licensed under the BSD License:
-http://developer.yahoo.net/yui/license.txt
-version: 2.8.0r4
-*/
-YAHOO.util.Get=function(){var M={},L=0,R=0,E=false,N=YAHOO.env.ua,S=YAHOO.lang;var J=function(W,T,X){var U=X||window,Y=U.document,Z=Y.createElement(W);for(var V in T){if(T[V]&&YAHOO.lang.hasOwnProperty(T,V)){Z.setAttribute(V,T[V]);}}return Z;};var I=function(U,V,T){var W={id:"yui__dyn_"+(R++),type:"text/css",rel:"stylesheet",href:U};if(T){S.augmentObject(W,T);}return J("link",W,V);};var P=function(U,V,T){var W={id:"yui__dyn_"+(R++),type:"text/javascript",src:U};if(T){S.augmentObject(W,T);}return J("script",W,V);};var A=function(T,U){return{tId:T.tId,win:T.win,data:T.data,nodes:T.nodes,msg:U,purge:function(){D(this.tId);}};};var B=function(T,W){var U=M[W],V=(S.isString(T))?U.win.document.getElementById(T):T;if(!V){Q(W,"target node not found: "+T);}return V;};var Q=function(W,V){var T=M[W];if(T.onFailure){var U=T.scope||T.win;T.onFailure.call(U,A(T,V));}};var C=function(W){var T=M[W];T.finished=true;if(T.aborted){var V="transaction "+W+" was aborted";Q(W,V);return;}if(T.onSuccess){var U=T.scope||T.win;T.onSuccess.call(U,A(T));}};var O=function(V){var T=M[V];if(T.onTimeout){var U=T.scope||T;T.onTimeout.call(U,A(T));}};var G=function(V,Z){var U=M[V];if(U.timer){U.timer.cancel();}if(U.aborted){var X="transaction "+V+" was aborted";Q(V,X);return;}if(Z){U.url.shift();if(U.varName){U.varName.shift();}}else{U.url=(S.isString(U.url))?[U.url]:U.url;if(U.varName){U.varName=(S.isString(U.varName))?[U.varName]:U.varName;}}var c=U.win,b=c.document,a=b.getElementsByTagName("head")[0],W;if(U.url.length===0){if(U.type==="script"&&N.webkit&&N.webkit<420&&!U.finalpass&&!U.varName){var Y=P(null,U.win,U.attributes);Y.innerHTML='YAHOO.util.Get._finalize("'+V+'");';U.nodes.push(Y);a.appendChild(Y);}else{C(V);}return;}var T=U.url[0];if(!T){U.url.shift();return G(V);}if(U.timeout){U.timer=S.later(U.timeout,U,O,V);}if(U.type==="script"){W=P(T,c,U.attributes);}else{W=I(T,c,U.attributes);}F(U.type,W,V,T,c,U.url.length);U.nodes.push(W);if(U.insertBefore){var e=B(U.insertBefore,V);if(e){e.parentNode.insertBefore(W,e);}}else{a.appendChild(W);}if((N.webkit||N.gecko)&&U.type==="css"){G(V,T);}};var K=function(){if(E){return;}E=true;for(var T in M){var U=M[T];if(U.autopurge&&U.finished){D(U.tId);delete M[T];}}E=false;};var D=function(Z){if(M[Z]){var T=M[Z],U=T.nodes,X=U.length,c=T.win.document,a=c.getElementsByTagName("head")[0],V,Y,W,b;if(T.insertBefore){V=B(T.insertBefore,Z);if(V){a=V.parentNode;}}for(Y=0;Y<X;Y=Y+1){W=U[Y];if(W.clearAttributes){W.clearAttributes();}else{for(b in W){delete W[b];}}a.removeChild(W);}T.nodes=[];}};var H=function(U,T,V){var X="q"+(L++);V=V||{};if(L%YAHOO.util.Get.PURGE_THRESH===0){K();}M[X]=S.merge(V,{tId:X,type:U,url:T,finished:false,aborted:false,nodes:[]});var W=M[X];W.win=W.win||window;W.scope=W.scope||W.win;W.autopurge=("autopurge" in W)?W.autopurge:(U==="script")?true:false;if(V.charset){W.attributes=W.attributes||{};W.attributes.charset=V.charset;}S.later(0,W,G,X);return{tId:X};};var F=function(c,X,W,U,Y,Z,b){var a=b||G;if(N.ie){X.onreadystatechange=function(){var d=this.readyState;if("loaded"===d||"complete"===d){X.onreadystatechange=null;a(W,U);}};}else{if(N.webkit){if(c==="script"){if(N.webkit>=420){X.addEventListener("load",function(){a(W,U);});}else{var T=M[W];if(T.varName){var V=YAHOO.util.Get.POLL_FREQ;T.maxattempts=YAHOO.util.Get.TIMEOUT/V;T.attempts=0;T._cache=T.varName[0].split(".");T.timer=S.later(V,T,function(j){var f=this._cache,e=f.length,d=this.win,g;for(g=0;g<e;g=g+1){d=d[f[g]];if(!d){this.attempts++;if(this.attempts++>this.maxattempts){var h="Over retry limit, giving up";T.timer.cancel();Q(W,h);}else{}return;}}T.timer.cancel();a(W,U);},null,true);}else{S.later(YAHOO.util.Get.POLL_FREQ,null,a,[W,U]);}}}}else{X.onload=function(){a(W,U);};}}};return{POLL_FREQ:10,PURGE_THRESH:20,TIMEOUT:2000,_finalize:function(T){S.later(0,null,C,T);},abort:function(U){var V=(S.isString(U))?U:U.tId;var T=M[V];if(T){T.aborted=true;}},script:function(T,U){return H("script",T,U);},css:function(T,U){return H("css",T,U);}};}();YAHOO.register("get",YAHOO.util.Get,{version:"2.8.0r4",build:"2449"});
\ No newline at end of file
diff --git a/koha-tmpl/intranet-tmpl/prog/en/lib/yui/get/get.js b/koha-tmpl/intranet-tmpl/prog/en/lib/yui/get/get.js
deleted file mode 100644 (file)
index 3693baf..0000000
+++ /dev/null
@@ -1,755 +0,0 @@
-/*
-Copyright (c) 2009, Yahoo! Inc. All rights reserved.
-Code licensed under the BSD License:
-http://developer.yahoo.net/yui/license.txt
-version: 2.8.0r4
-*/
-/**
- * Provides a mechanism to fetch remote resources and
- * insert them into a document
- * @module get
- * @requires yahoo
- */
-
-/**
- * Fetches and inserts one or more script or link nodes into the document 
- * @namespace YAHOO.util
- * @class YAHOO.util.Get
- */
-YAHOO.util.Get = function() {
-
-    /**
-     * hash of queues to manage multiple requests
-     * @property queues
-     * @private
-     */
-    var queues={}, 
-        
-    /**
-     * queue index used to generate transaction ids
-     * @property qidx
-     * @type int
-     * @private
-     */
-        qidx=0, 
-        
-    /**
-     * node index used to generate unique node ids
-     * @property nidx
-     * @type int
-     * @private
-     */
-        nidx=0, 
-
-        // ridx=0,
-
-        // sandboxFrame=null,
-
-    /**
-     * interal property used to prevent multiple simultaneous purge 
-     * processes
-     * @property purging
-     * @type boolean
-     * @private
-     */
-        purging=false,
-
-        ua=YAHOO.env.ua, 
-        
-        lang=YAHOO.lang;
-    
-    /** 
-     * Generates an HTML element, this is not appended to a document
-     * @method _node
-     * @param type {string} the type of element
-     * @param attr {string} the attributes
-     * @param win {Window} optional window to create the element in
-     * @return {HTMLElement} the generated node
-     * @private
-     */
-    var _node = function(type, attr, win) {
-        var w = win || window, d=w.document, n=d.createElement(type);
-
-        for (var i in attr) {
-            if (attr[i] && YAHOO.lang.hasOwnProperty(attr, i)) {
-                n.setAttribute(i, attr[i]);
-            }
-        }
-
-        return n;
-    };
-
-    /**
-     * Generates a link node
-     * @method _linkNode
-     * @param url {string} the url for the css file
-     * @param win {Window} optional window to create the node in
-     * @return {HTMLElement} the generated node
-     * @private
-     */
-    var _linkNode = function(url, win, attributes) {
-
-        var o = {
-            id:   "yui__dyn_" + (nidx++),
-            type: "text/css",
-            rel:  "stylesheet",
-            href: url
-        };
-
-        if (attributes) {
-            lang.augmentObject(o, attributes);
-        }
-
-        return _node("link", o, win);
-    };
-
-    /**
-     * Generates a script node
-     * @method _scriptNode
-     * @param url {string} the url for the script file
-     * @param win {Window} optional window to create the node in
-     * @return {HTMLElement} the generated node
-     * @private
-     */
-    var _scriptNode = function(url, win, attributes) {
-        var o = {
-            id:   "yui__dyn_" + (nidx++),
-            type: "text/javascript",
-            src:  url
-        };
-
-        if (attributes) {
-            lang.augmentObject(o, attributes);
-        }
-
-        return _node("script", o, win);
-    };
-
-    /**
-     * Returns the data payload for callback functions
-     * @method _returnData
-     * @private
-     */
-    var _returnData = function(q, msg) {
-        return {
-                tId: q.tId,
-                win: q.win,
-                data: q.data,
-                nodes: q.nodes,
-                msg: msg,
-                purge: function() {
-                    _purge(this.tId);
-                }
-            };
-    };
-
-    var _get = function(nId, tId) {
-        var q = queues[tId],
-            n = (lang.isString(nId)) ? q.win.document.getElementById(nId) : nId;
-        if (!n) {
-            _fail(tId, "target node not found: " + nId);
-        }
-
-        return n;
-    };
-
-    /*
-     * The request failed, execute fail handler with whatever
-     * was accomplished.  There isn't a failure case at the
-     * moment unless you count aborted transactions
-     * @method _fail
-     * @param id {string} the id of the request
-     * @private
-     */
-    var _fail = function(id, msg) {
-        var q = queues[id];
-        // execute failure callback
-        if (q.onFailure) {
-            var sc=q.scope || q.win;
-            q.onFailure.call(sc, _returnData(q, msg));
-        }
-    };
-
-    /**
-     * The request is complete, so executing the requester's callback
-     * @method _finish
-     * @param id {string} the id of the request
-     * @private
-     */
-    var _finish = function(id) {
-        var q = queues[id];
-        q.finished = true;
-
-        if (q.aborted) {
-            var msg = "transaction " + id + " was aborted";
-            _fail(id, msg);
-            return;
-        }
-
-        // execute success callback
-        if (q.onSuccess) {
-            var sc=q.scope || q.win;
-            q.onSuccess.call(sc, _returnData(q));
-        }
-    };
-
-    /**
-     * Timeout detected
-     * @method _timeout
-     * @param id {string} the id of the request
-     * @private
-     */
-    var _timeout = function(id) {
-        var q = queues[id];
-        if (q.onTimeout) {
-            var sc=q.scope || q;
-            q.onTimeout.call(sc, _returnData(q));
-        }
-    };
-
-    /**
-     * Loads the next item for a given request
-     * @method _next
-     * @param id {string} the id of the request
-     * @param loaded {string} the url that was just loaded, if any
-     * @private
-     */
-    var _next = function(id, loaded) {
-        var q = queues[id];
-
-        if (q.timer) {
-            // Y.log('cancel timer');
-            q.timer.cancel();
-        }
-
-        if (q.aborted) {
-            var msg = "transaction " + id + " was aborted";
-            _fail(id, msg);
-            return;
-        }
-
-        if (loaded) {
-            q.url.shift(); 
-            if (q.varName) {
-                q.varName.shift(); 
-            }
-        } else {
-            // This is the first pass: make sure the url is an array
-            q.url = (lang.isString(q.url)) ? [q.url] : q.url;
-            if (q.varName) {
-                q.varName = (lang.isString(q.varName)) ? [q.varName] : q.varName;
-            }
-        }
-
-        var w=q.win, d=w.document, h=d.getElementsByTagName("head")[0], n;
-
-        if (q.url.length === 0) {
-            // Safari 2.x workaround - There is no way to know when 
-            // a script is ready in versions of Safari prior to 3.x.
-            // Adding an extra node reduces the problem, but doesn't
-            // eliminate it completely because the browser executes
-            // them asynchronously. 
-            if (q.type === "script" && ua.webkit && ua.webkit < 420 && 
-                    !q.finalpass && !q.varName) {
-                // Add another script node.  This does not guarantee that the
-                // scripts will execute in order, but it does appear to fix the
-                // problem on fast connections more effectively than using an
-                // arbitrary timeout.  It is possible that the browser does
-                // block subsequent script execution in this case for a limited
-                // time.
-                var extra = _scriptNode(null, q.win, q.attributes);
-                extra.innerHTML='YAHOO.util.Get._finalize("' + id + '");';
-                q.nodes.push(extra); h.appendChild(extra);
-
-            } else {
-                _finish(id);
-            }
-
-            return;
-        } 
-
-
-        var url = q.url[0];
-
-        // if the url is undefined, this is probably a trailing comma problem in IE
-        if (!url) {
-            q.url.shift(); 
-            return _next(id);
-        }
-
-
-        if (q.timeout) {
-            // Y.log('create timer');
-            q.timer = lang.later(q.timeout, q, _timeout, id);
-        }
-
-        if (q.type === "script") {
-            n = _scriptNode(url, w, q.attributes);
-        } else {
-            n = _linkNode(url, w, q.attributes);
-        }
-
-        // track this node's load progress
-        _track(q.type, n, id, url, w, q.url.length);
-
-        // add the node to the queue so we can return it to the user supplied callback
-        q.nodes.push(n);
-
-        // add it to the head or insert it before 'insertBefore'
-        if (q.insertBefore) {
-            var s = _get(q.insertBefore, id);
-            if (s) {
-                s.parentNode.insertBefore(n, s);
-            }
-        } else {
-            h.appendChild(n);
-        }
-        
-
-        // FireFox does not support the onload event for link nodes, so there is
-        // no way to make the css requests synchronous. This means that the css 
-        // rules in multiple files could be applied out of order in this browser
-        // if a later request returns before an earlier one.  Safari too.
-        if ((ua.webkit || ua.gecko) && q.type === "css") {
-            _next(id, url);
-        }
-    };
-
-    /**
-     * Removes processed queues and corresponding nodes
-     * @method _autoPurge
-     * @private
-     */
-    var _autoPurge = function() {
-
-        if (purging) {
-            return;
-        }
-
-        purging = true;
-        for (var i in queues) {
-            var q = queues[i];
-            if (q.autopurge && q.finished) {
-                _purge(q.tId);
-                delete queues[i];
-            }
-        }
-
-        purging = false;
-    };
-
-    /**
-     * Removes the nodes for the specified queue
-     * @method _purge
-     * @private
-     */
-    var _purge = function(tId) {
-        if (queues[tId]) {
-
-            var q     = queues[tId],
-                nodes = q.nodes, 
-                l     = nodes.length, 
-                d     = q.win.document, 
-                h     = d.getElementsByTagName("head")[0],
-                sib, i, node, attr;
-
-            if (q.insertBefore) {
-                sib = _get(q.insertBefore, tId);
-                if (sib) {
-                    h = sib.parentNode;
-                }
-            }
-
-            for (i=0; i<l; i=i+1) {
-                node = nodes[i];
-                if (node.clearAttributes) {
-                    node.clearAttributes();
-                } else {
-                    for (attr in node) {
-                        delete node[attr];
-                    }
-                }
-
-                h.removeChild(node);
-            }
-
-            q.nodes = [];
-        }
-    };
-
-    /**
-     * Saves the state for the request and begins loading
-     * the requested urls
-     * @method queue
-     * @param type {string} the type of node to insert
-     * @param url {string} the url to load
-     * @param opts the hash of options for this request
-     * @private
-     */
-    var _queue = function(type, url, opts) {
-
-        var id = "q" + (qidx++);
-        opts = opts || {};
-
-        if (qidx % YAHOO.util.Get.PURGE_THRESH === 0) {
-            _autoPurge();
-        }
-
-        queues[id] = lang.merge(opts, {
-            tId: id,
-            type: type,
-            url: url,
-            finished: false,
-            aborted: false,
-            nodes: []
-        });
-
-        var q = queues[id];
-        q.win = q.win || window;
-        q.scope = q.scope || q.win;
-        q.autopurge = ("autopurge" in q) ? q.autopurge : 
-                      (type === "script") ? true : false;
-
-        if (opts.charset) {
-            q.attributes = q.attributes || {};
-            q.attributes.charset = opts.charset;
-        }
-
-        lang.later(0, q, _next, id);
-
-        return {
-            tId: id
-        };
-    };
-
-    /**
-     * Detects when a node has been loaded.  In the case of
-     * script nodes, this does not guarantee that contained
-     * script is ready to use.
-     * @method _track
-     * @param type {string} the type of node to track
-     * @param n {HTMLElement} the node to track
-     * @param id {string} the id of the request
-     * @param url {string} the url that is being loaded
-     * @param win {Window} the targeted window
-     * @param qlength the number of remaining items in the queue,
-     * including this one
-     * @param trackfn {Function} function to execute when finished
-     * the default is _next
-     * @private
-     */
-    var _track = function(type, n, id, url, win, qlength, trackfn) {
-        var f = trackfn || _next;
-
-        // IE supports the readystatechange event for script and css nodes
-        if (ua.ie) {
-            n.onreadystatechange = function() {
-                var rs = this.readyState;
-                if ("loaded" === rs || "complete" === rs) {
-                    n.onreadystatechange = null;
-                    f(id, url);
-                }
-            };
-
-        // webkit prior to 3.x is problemmatic
-        } else if (ua.webkit) {
-
-            if (type === "script") {
-
-                // Safari 3.x supports the load event for script nodes (DOM2)
-                if (ua.webkit >= 420) {
-
-                    n.addEventListener("load", function() {
-                        f(id, url);
-                    });
-
-                // Nothing can be done with Safari < 3.x except to pause and hope
-                // for the best, particularly after last script is inserted. The
-                // scripts will always execute in the order they arrive, not
-                // necessarily the order in which they were inserted.  To support
-                // script nodes with complete reliability in these browsers, script
-                // nodes either need to invoke a function in the window once they
-                // are loaded or the implementer needs to provide a well-known
-                // property that the utility can poll for.
-                } else {
-                    // Poll for the existence of the named variable, if it
-                    // was supplied.
-                    var q = queues[id];
-                    if (q.varName) {
-                        var freq=YAHOO.util.Get.POLL_FREQ;
-                        q.maxattempts = YAHOO.util.Get.TIMEOUT/freq;
-                        q.attempts = 0;
-                        q._cache = q.varName[0].split(".");
-                        q.timer = lang.later(freq, q, function(o) {
-                            var a=this._cache, l=a.length, w=this.win, i;
-                            for (i=0; i<l; i=i+1) {
-                                w = w[a[i]];
-                                if (!w) {
-                                    // if we have exausted our attempts, give up
-                                    this.attempts++;
-                                    if (this.attempts++ > this.maxattempts) {
-                                        var msg = "Over retry limit, giving up";
-                                        q.timer.cancel();
-                                        _fail(id, msg);
-                                    } else {
-                                    }
-                                    return;
-                                }
-                            }
-                            
-
-                            q.timer.cancel();
-                            f(id, url);
-
-                        }, null, true);
-                    } else {
-                        lang.later(YAHOO.util.Get.POLL_FREQ, null, f, [id, url]);
-                    }
-                }
-            } 
-
-        // FireFox and Opera support onload (but not DOM2 in FF) handlers for
-        // script nodes.  Opera, but not FF, supports the onload event for link
-        // nodes.
-        } else { 
-            n.onload = function() {
-                f(id, url);
-            };
-        }
-    };
-
-    return {
-
-        /**
-         * The default poll freqency in ms, when needed
-         * @property POLL_FREQ
-         * @static
-         * @type int
-         * @default 10
-         */
-        POLL_FREQ: 10,
-
-        /**
-         * The number of request required before an automatic purge.
-         * property PURGE_THRESH
-         * @static
-         * @type int
-         * @default 20
-         */
-        PURGE_THRESH: 20,
-
-        /**
-         * The length time to poll for varName when loading a script in
-         * Safari 2.x before the transaction fails.
-         * property TIMEOUT
-         * @static
-         * @type int
-         * @default 2000
-         */
-        TIMEOUT: 2000,
-        
-        /**
-         * Called by the helper for detecting script load in Safari
-         * @method _finalize
-         * @param id {string} the transaction id
-         * @private
-         */
-        _finalize: function(id) {
-            lang.later(0, null, _finish, id);
-        },
-
-        /**
-         * Abort a transaction
-         * @method abort
-         * @param {string|object} either the tId or the object returned from
-         * script() or css()
-         */
-        abort: function(o) {
-            var id = (lang.isString(o)) ? o : o.tId;
-            var q = queues[id];
-            if (q) {
-                q.aborted = true;
-            }
-        }, 
-
-        /**
-         * Fetches and inserts one or more script nodes into the head
-         * of the current document or the document in a specified window.
-         *
-         * @method script
-         * @static
-         * @param url {string|string[]} the url or urls to the script(s)
-         * @param opts {object} Options: 
-         * <dl>
-         * <dt>onSuccess</dt>
-         * <dd>
-         * callback to execute when the script(s) are finished loading
-         * The callback receives an object back with the following
-         * data:
-         * <dl>
-         * <dt>win</dt>
-         * <dd>the window the script(s) were inserted into</dd>
-         * <dt>data</dt>
-         * <dd>the data object passed in when the request was made</dd>
-         * <dt>nodes</dt>
-         * <dd>An array containing references to the nodes that were
-         * inserted</dd>
-         * <dt>purge</dt>
-         * <dd>A function that, when executed, will remove the nodes
-         * that were inserted</dd>
-         * <dt>
-         * </dl>
-         * </dd>
-         * <dt>onFailure</dt>
-         * <dd>
-         * callback to execute when the script load operation fails
-         * The callback receives an object back with the following
-         * data:
-         * <dl>
-         * <dt>win</dt>
-         * <dd>the window the script(s) were inserted into</dd>
-         * <dt>data</dt>
-         * <dd>the data object passed in when the request was made</dd>
-         * <dt>nodes</dt>
-         * <dd>An array containing references to the nodes that were
-         * inserted successfully</dd>
-         * <dt>purge</dt>
-         * <dd>A function that, when executed, will remove any nodes
-         * that were inserted</dd>
-         * <dt>
-         * </dl>
-         * </dd>
-         * <dt>onTimeout</dt>
-         * <dd>
-         * callback to execute when a timeout occurs.
-         * The callback receives an object back with the following
-         * data:
-         * <dl>
-         * <dt>win</dt>
-         * <dd>the window the script(s) were inserted into</dd>
-         * <dt>data</dt>
-         * <dd>the data object passed in when the request was made</dd>
-         * <dt>nodes</dt>
-         * <dd>An array containing references to the nodes that were
-         * inserted</dd>
-         * <dt>purge</dt>
-         * <dd>A function that, when executed, will remove the nodes
-         * that were inserted</dd>
-         * <dt>
-         * </dl>
-         * </dd>
-         * <dt>scope</dt>
-         * <dd>the execution context for the callbacks</dd>
-         * <dt>win</dt>
-         * <dd>a window other than the one the utility occupies</dd>
-         * <dt>autopurge</dt>
-         * <dd>
-         * setting to true will let the utilities cleanup routine purge 
-         * the script once loaded
-         * </dd>
-         * <dt>data</dt>
-         * <dd>
-         * data that is supplied to the callback when the script(s) are
-         * loaded.
-         * </dd>
-         * <dt>varName</dt>
-         * <dd>
-         * variable that should be available when a script is finished
-         * loading.  Used to help Safari 2.x and below with script load 
-         * detection.  The type of this property should match what was
-         * passed into the url parameter: if loading a single url, a
-         * string can be supplied.  If loading multiple scripts, you
-         * must supply an array that contains the variable name for
-         * each script.
-         * </dd>
-         * <dt>insertBefore</dt>
-         * <dd>node or node id that will become the new node's nextSibling</dd>
-         * </dl>
-         * <dt>charset</dt>
-         * <dd>Node charset, deprecated, use 'attributes'</dd>
-         * <dt>attributes</dt>
-         * <dd>A hash of attributes to apply to dynamic nodes.</dd>
-         * <dt>timeout</dt>
-         * <dd>Number of milliseconds to wait before aborting and firing the timeout event</dd>
-         * <pre>
-         * // assumes yahoo, dom, and event are already on the page
-         * &nbsp;&nbsp;YAHOO.util.Get.script(
-         * &nbsp;&nbsp;["http://yui.yahooapis.com/2.7.0/build/dragdrop/dragdrop-min.js",
-         * &nbsp;&nbsp;&nbsp;"http://yui.yahooapis.com/2.7.0/build/animation/animation-min.js"], &#123;
-         * &nbsp;&nbsp;&nbsp;&nbsp;onSuccess: function(o) &#123;
-         * &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;new YAHOO.util.DDProxy("dd1"); // also new o.reference("dd1"); would work
-         * &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;this.log("won't cause error because YAHOO is the scope");
-         * &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;this.log(o.nodes.length === 2) // true
-         * &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;// o.purge(); // optionally remove the script nodes immediately
-         * &nbsp;&nbsp;&nbsp;&nbsp;&#125;,
-         * &nbsp;&nbsp;&nbsp;&nbsp;onFailure: function(o) &#123;
-         * &nbsp;&nbsp;&nbsp;&nbsp;&#125;,
-         * &nbsp;&nbsp;&nbsp;&nbsp;data: "foo",
-         * &nbsp;&nbsp;&nbsp;&nbsp;timeout: 10000, // 10 second timeout
-         * &nbsp;&nbsp;&nbsp;&nbsp;scope: YAHOO,
-         * &nbsp;&nbsp;&nbsp;&nbsp;// win: otherframe // target another window/frame
-         * &nbsp;&nbsp;&nbsp;&nbsp;autopurge: true // allow the utility to choose when to remove the nodes
-         * &nbsp;&nbsp;&#125;);
-         * </pre>
-         * @return {tId: string} an object containing info about the transaction
-         */
-        script: function(url, opts) { return _queue("script", url, opts); },
-
-        /**
-         * Fetches and inserts one or more css link nodes into the 
-         * head of the current document or the document in a specified
-         * window.
-         * @method css
-         * @static
-         * @param url {string} the url or urls to the css file(s)
-         * @param opts Options: 
-         * <dl>
-         * <dt>onSuccess</dt>
-         * <dd>
-         * callback to execute when the css file(s) are finished loading
-         * The callback receives an object back with the following
-         * data:
-         * <dl>win</dl>
-         * <dd>the window the link nodes(s) were inserted into</dd>
-         * <dt>data</dt>
-         * <dd>the data object passed in when the request was made</dd>
-         * <dt>nodes</dt>
-         * <dd>An array containing references to the nodes that were
-         * inserted</dd>
-         * <dt>purge</dt>
-         * <dd>A function that, when executed, will remove the nodes
-         * that were inserted</dd>
-         * <dt>
-         * </dl>
-         * </dd>
-         * <dt>scope</dt>
-         * <dd>the execution context for the callbacks</dd>
-         * <dt>win</dt>
-         * <dd>a window other than the one the utility occupies</dd>
-         * <dt>data</dt>
-         * <dd>
-         * data that is supplied to the callbacks when the nodes(s) are
-         * loaded.
-         * </dd>
-         * <dt>insertBefore</dt>
-         * <dd>node or node id that will become the new node's nextSibling</dd>
-         * <dt>charset</dt>
-         * <dd>Node charset, deprecated, use 'attributes'</dd>
-         * <dt>attributes</dt>
-         * <dd>A hash of attributes to apply to dynamic nodes.</dd>
-         * </dl>
-         * <pre>
-         *      YAHOO.util.Get.css("http://yui.yahooapis.com/2.7.0/build/menu/assets/skins/sam/menu.css");
-         * </pre>
-         * <pre>
-         *      YAHOO.util.Get.css(["http://yui.yahooapis.com/2.7.0/build/menu/assets/skins/sam/menu.css",
-         * </pre>
-         * @return {tId: string} an object containing info about the transaction
-         */
-        css: function(url, opts) {
-            return _queue("css", url, opts); 
-        }
-    };
-}();
-
-YAHOO.register("get", YAHOO.util.Get, {version: "2.8.0r4", build: "2449"});
diff --git a/koha-tmpl/intranet-tmpl/prog/en/lib/yui/grids/grids-min.css b/koha-tmpl/intranet-tmpl/prog/en/lib/yui/grids/grids-min.css
deleted file mode 100644 (file)
index 3163c18..0000000
+++ /dev/null
@@ -1,7 +0,0 @@
-/*
-Copyright (c) 2009, Yahoo! Inc. All rights reserved.
-Code licensed under the BSD License:
-http://developer.yahoo.net/yui/license.txt
-version: 2.8.0r4
-*/
-body{text-align:center;}#doc,#doc2,#doc3,#doc4,.yui-t1,.yui-t2,.yui-t3,.yui-t4,.yui-t5,.yui-t6,.yui-t7{margin:auto;text-align:left;width:57.69em;*width:56.25em;}#doc2{width:73.076em;*width:71.25em;}#doc3{margin:auto 10px;width:auto;}#doc4{width:74.923em;*width:73.05em;}.yui-b{position:relative;}.yui-b{_position:static;}#yui-main .yui-b{position:static;}#yui-main,.yui-g .yui-u .yui-g{width:100%;}.yui-t1 #yui-main,.yui-t2 #yui-main,.yui-t3 #yui-main{float:right;margin-left:-25em;}.yui-t4 #yui-main,.yui-t5 #yui-main,.yui-t6 #yui-main{float:left;margin-right:-25em;}.yui-t1 .yui-b{float:left;width:12.30769em;*width:12.00em;}.yui-t1 #yui-main .yui-b{margin-left:13.30769em;*margin-left:13.05em;}.yui-t2 .yui-b{float:left;width:13.8461em;*width:13.50em;}.yui-t2 #yui-main .yui-b{margin-left:14.8461em;*margin-left:14.55em;}.yui-t3 .yui-b{float:left;width:23.0769em;*width:22.50em;}.yui-t3 #yui-main .yui-b{margin-left:24.0769em;*margin-left:23.62em;}.yui-t4 .yui-b{float:right;width:13.8456em;*width:13.50em;}.yui-t4 #yui-main .yui-b{margin-right:14.8456em;*margin-right:14.55em;}.yui-t5 .yui-b{float:right;width:18.4615em;*width:18.00em;}.yui-t5 #yui-main .yui-b{margin-right:19.4615em;*margin-right:19.125em;}.yui-t6 .yui-b{float:right;width:23.0769em;*width:22.50em;}.yui-t6 #yui-main .yui-b{margin-right:24.0769em;*margin-right:23.62em;}.yui-t7 #yui-main .yui-b{display:block;margin:0 0 1em 0;}#yui-main .yui-b{float:none;width:auto;}.yui-gb .yui-u,.yui-g .yui-gb .yui-u,.yui-gb .yui-g,.yui-gb .yui-gb,.yui-gb .yui-gc,.yui-gb .yui-gd,.yui-gb .yui-ge,.yui-gb .yui-gf,.yui-gc .yui-u,.yui-gc .yui-g,.yui-gd .yui-u{float:left;}.yui-g .yui-u,.yui-g .yui-g,.yui-g .yui-gb,.yui-g .yui-gc,.yui-g .yui-gd,.yui-g .yui-ge,.yui-g .yui-gf,.yui-gc .yui-u,.yui-gd .yui-g,.yui-g .yui-gc .yui-u,.yui-ge .yui-u,.yui-ge .yui-g,.yui-gf .yui-g,.yui-gf .yui-u{float:right;}.yui-g div.first,.yui-gb div.first,.yui-gc div.first,.yui-gd div.first,.yui-ge div.first,.yui-gf div.first,.yui-g .yui-gc div.first,.yui-g .yui-ge div.first,.yui-gc div.first div.first{float:left;}.yui-g .yui-u,.yui-g .yui-g,.yui-g .yui-gb,.yui-g .yui-gc,.yui-g .yui-gd,.yui-g .yui-ge,.yui-g .yui-gf{width:49.1%;}.yui-gb .yui-u,.yui-g .yui-gb .yui-u,.yui-gb .yui-g,.yui-gb .yui-gb,.yui-gb .yui-gc,.yui-gb .yui-gd,.yui-gb .yui-ge,.yui-gb .yui-gf,.yui-gc .yui-u,.yui-gc .yui-g,.yui-gd .yui-u{width:32%;margin-left:1.99%;}.yui-gb .yui-u{*margin-left:1.9%;*width:31.9%;}.yui-gc div.first,.yui-gd .yui-u{width:66%;}.yui-gd div.first{width:32%;}.yui-ge div.first,.yui-gf .yui-u{width:74.2%;}.yui-ge .yui-u,.yui-gf div.first{width:24%;}.yui-g .yui-gb div.first,.yui-gb div.first,.yui-gc div.first,.yui-gd div.first{margin-left:0;}.yui-g .yui-g .yui-u,.yui-gb .yui-g .yui-u,.yui-gc .yui-g .yui-u,.yui-gd .yui-g .yui-u,.yui-ge .yui-g .yui-u,.yui-gf .yui-g .yui-u{width:49%;*width:48.1%;*margin-left:0;}.yui-g .yui-g .yui-u{width:48.1%;}.yui-g .yui-gb div.first,.yui-gb .yui-gb div.first{*margin-right:0;*width:32%;_width:31.7%;}.yui-g .yui-gc div.first,.yui-gd .yui-g{width:66%;}.yui-gb .yui-g div.first{*margin-right:4%;_margin-right:1.3%;}.yui-gb .yui-gc div.first,.yui-gb .yui-gd div.first{*margin-right:0;}.yui-gb .yui-gb .yui-u,.yui-gb .yui-gc .yui-u{*margin-left:1.8%;_margin-left:4%;}.yui-g .yui-gb .yui-u{_margin-left:1.0%;}.yui-gb .yui-gd .yui-u{*width:66%;_width:61.2%;}.yui-gb .yui-gd div.first{*width:31%;_width:29.5%;}.yui-g .yui-gc .yui-u,.yui-gb .yui-gc .yui-u{width:32%;_float:right;margin-right:0;_margin-left:0;}.yui-gb .yui-gc div.first{width:66%;*float:left;*margin-left:0;}.yui-gb .yui-ge .yui-u,.yui-gb .yui-gf .yui-u{margin:0;}.yui-gb .yui-gb .yui-u{_margin-left:.7%;}.yui-gb .yui-g div.first,.yui-gb .yui-gb div.first{*margin-left:0;}.yui-gc .yui-g .yui-u,.yui-gd .yui-g .yui-u{*width:48.1%;*margin-left:0;}.yui-gb .yui-gd div.first{width:32%;}.yui-g .yui-gd div.first{_width:29.9%;}.yui-ge .yui-g{width:24%;}.yui-gf .yui-g{width:74.2%;}.yui-gb .yui-ge div.yui-u,.yui-gb .yui-gf div.yui-u{float:right;}.yui-gb .yui-ge div.first,.yui-gb .yui-gf div.first{float:left;}.yui-gb .yui-ge .yui-u,.yui-gb .yui-gf div.first{*width:24%;_width:20%;}.yui-gb .yui-ge div.first,.yui-gb .yui-gf .yui-u{*width:73.5%;_width:65.5%;}.yui-ge div.first .yui-gd .yui-u{width:65%;}.yui-ge div.first .yui-gd div.first{width:32%;}#hd:after,#bd:after,#ft:after,.yui-g:after,.yui-gb:after,.yui-gc:after,.yui-gd:after,.yui-ge:after,.yui-gf:after{content:".";display:block;height:0;clear:both;visibility:hidden;}#hd,#bd,#ft,.yui-g,.yui-gb,.yui-gc,.yui-gd,.yui-ge,.yui-gf{zoom:1;}
\ No newline at end of file
diff --git a/koha-tmpl/intranet-tmpl/prog/en/lib/yui/grids/grids.css b/koha-tmpl/intranet-tmpl/prog/en/lib/yui/grids/grids.css
deleted file mode 100644 (file)
index 31e2b3b..0000000
+++ /dev/null
@@ -1,467 +0,0 @@
-/*
-Copyright (c) 2009, Yahoo! Inc. All rights reserved.
-Code licensed under the BSD License:
-http://developer.yahoo.net/yui/license.txt
-version: 2.8.0r4
-*/
-/**
- * YUI Grids
- * @module grids
- * @namespace yui-
- * @requires reset, fonts
- */
-
-/**  
- * Note: Throughout this file, the *property (star-property) filter is used 
- * to give a value to IE that other browsers do not see. _property is only seen 
- * by IE7, so the combo of *prop and _prop can target between IE6 and IE7.
- * 
- * More information on these filters and related validation errors:
- * http://tech.groups.yahoo.com/group/ydn-javascript/message/40059
- */
-
-/**
- * Section: General Rules
- */
-
-body {
-       text-align: center;
-}
-
-/**
- * Section: Page Width Rules (#doc, #doc2, #doc3, #doc4)
- */
-
-#doc,#doc2,#doc3,#doc4,
-.yui-t1,.yui-t2,.yui-t3,.yui-t4,.yui-t5,.yui-t6,.yui-t7 {
-       margin: auto;
-       text-align: left;
-       width: 57.69em;
-       *width: 56.25em;
-}
-
-/* 950 Centered (doc2) */
-#doc2 {
-       width: 73.076em;
-       *width: 71.25em;
-}
-
-/* 100% (doc3) */
-#doc3 {
-/**
- * Left and Right margins are not a structural part of Grids. Without them 
- * Grids works fine, but content bleeds to the very edge of the document, which
- * often impairs readability and usability. They are provided because they 
- * prevent the content from "bleeding" into the browser's chrome. 
- */
-       margin: auto 10px;
-       width: auto;
-}
-
-/* 974 Centered (doc4) */
-#doc4 {
-       width: 74.923em;
-       *width: 73.05em;
-}
-
-/**
- * Section: Preset Template Rules (.yui-t[1-6])
- */
-
-
-.yui-b {
-       /* to preserve source-order independence for Gecko */
-       position: relative;
-}
-
-.yui-b {
-       /* to preserve source-order independence for IE */
-       _position: static;
-}
-
-#yui-main .yui-b {
-       /* to preserve source-order independence for Gecko */
-       position: static;
-}
-
-#yui-main,
-.yui-g .yui-u .yui-g {
-       width: 100%;
-}
-
-.yui-t1 #yui-main,
-.yui-t2 #yui-main,
-.yui-t3 #yui-main {
-       float: right;
-       /* IE: preserve layout at narrow widths */
-       margin-left: -25em;
-}
-
-.yui-t4 #yui-main,
-.yui-t5 #yui-main,
-.yui-t6 #yui-main {
-       float: left;
-       /* IE: preserve layout at narrow widths */
-       margin-right: -25em;
-}
-
-/** 
- * For Specific Template Presets
- */
-
-.yui-t1 .yui-b {
-       float: left;
-       width: 12.30769em;
-       *width: 12.00em;
-}
-
-.yui-t1 #yui-main .yui-b {
-       margin-left: 13.30769em;
-       *margin-left: 13.05em;
-}
-
-.yui-t2 .yui-b {
-       float: left;
-       width: 13.8461em;
-       *width: 13.50em;
-}
-
-.yui-t2 #yui-main .yui-b {
-       margin-left: 14.8461em;
-       *margin-left: 14.55em;
-}
-
-.yui-t3 .yui-b {
-       float: left;
-       width: 23.0769em;
-       *width: 22.50em;
-}
-
-.yui-t3 #yui-main .yui-b {
-       margin-left: 24.0769em;
-       *margin-left: 23.62em;
-}
-
-.yui-t4 .yui-b {
-       float: right;
-       width: 13.8456em;
-       *width: 13.50em;
-}
-
-.yui-t4 #yui-main .yui-b {
-       margin-right: 14.8456em;
-       *margin-right: 14.55em;
-}
-
-.yui-t5 .yui-b {
-       float: right;
-       width: 18.4615em;
-       *width: 18.00em;
-}
-
-.yui-t5 #yui-main .yui-b {
-       margin-right: 19.4615em;
-       *margin-right: 19.125em;
-}
-
-.yui-t6 .yui-b {
-       float: right;
-       width: 23.0769em;
-       *width: 22.50em;
-}
-
-.yui-t6 #yui-main .yui-b {
-       margin-right: 24.0769em;
-       *margin-right: 23.62em;
-}
-
-.yui-t7 #yui-main .yui-b {
-       display: block;
-       margin: 0 0 1em 0;
-}
-
-#yui-main .yui-b {
-       float: none;
-       width: auto;
-}
-
-/**
- * Section: Grids and Nesting Grids
- */
-
-/* Children generally take half the available space */
-.yui-gb .yui-u,
-.yui-g .yui-gb .yui-u,
-.yui-gb .yui-g,
-.yui-gb .yui-gb,
-.yui-gb .yui-gc,
-.yui-gb .yui-gd,
-.yui-gb .yui-ge,
-.yui-gb .yui-gf,
-.yui-gc .yui-u, 
-.yui-gc .yui-g,
-.yui-gd .yui-u {
-       float: left;
-}
-
-/* Float units (and sub grids) to the right */
-.yui-g .yui-u,
-.yui-g .yui-g,
-.yui-g .yui-gb, 
-.yui-g .yui-gc, 
-.yui-g .yui-gd, 
-.yui-g .yui-ge, 
-.yui-g .yui-gf, 
-.yui-gc .yui-u, 
-.yui-gd .yui-g,
-.yui-g .yui-gc .yui-u,
-.yui-ge .yui-u, 
-.yui-ge .yui-g, 
-.yui-gf .yui-g,
-.yui-gf .yui-u {
-       float: right;
-}
-
-/*Float units (and sub grids) to the left */
-.yui-g div.first, 
-.yui-gb div.first,
-.yui-gc div.first,
-.yui-gd div.first, 
-.yui-ge div.first, 
-.yui-gf div.first,
-.yui-g .yui-gc div.first,
-.yui-g .yui-ge div.first,
-.yui-gc div.first div.first {
-       float: left;
-}
-
-.yui-g .yui-u,
-.yui-g .yui-g,
-.yui-g .yui-gb,
-.yui-g .yui-gc,
-.yui-g .yui-gd,
-.yui-g .yui-ge,
-.yui-g .yui-gf {
-       width: 49.1%;
-}
-
-.yui-gb .yui-u,
-.yui-g .yui-gb .yui-u,
-.yui-gb .yui-g,
-.yui-gb .yui-gb,
-.yui-gb .yui-gc,
-.yui-gb .yui-gd,
-.yui-gb .yui-ge,
-.yui-gb .yui-gf,
-.yui-gc .yui-u, 
-.yui-gc .yui-g,
-.yui-gd .yui-u {
-       width: 32%;
-       margin-left: 1.99%;
-}
-
-/* Give IE some extra breathing room for 1/3-based rounding issues */
-.yui-gb .yui-u {
-       *margin-left: 1.9%;
-       *width: 31.9%;
-}
-
-.yui-gc div.first, 
-       .yui-gd .yui-u {
-       width: 66%;
-}
-
-.yui-gd div.first {
-       width: 32%;
-}
-
-.yui-ge div.first, 
-       .yui-gf .yui-u {
-       width: 74.2%;
-}
-
-.yui-ge .yui-u,
-       .yui-gf div.first {
-       width: 24%;
-}
-
-.yui-g .yui-gb div.first,
-.yui-gb div.first, 
-.yui-gc div.first, 
-.yui-gd div.first {
-       margin-left: 0;
-}
-
-/**
- * Section: Deep Nesting 
- */
-
-.yui-g .yui-g .yui-u,
-.yui-gb .yui-g .yui-u,
-.yui-gc .yui-g .yui-u,
-.yui-gd .yui-g .yui-u,
-.yui-ge .yui-g .yui-u,
-.yui-gf .yui-g .yui-u {
-       width: 49%;
-       *width: 48.1%;
-       *margin-left: 0;
-}
-
-.yui-g .yui-g .yui-u {
-       width: 48.1%;
-}
-
-/*YUILibrary bug #1927599 from 1.14 to 2.6.0*/
-.yui-g .yui-gb div.first,
-       .yui-gb .yui-gb div.first {
-       *margin-right: 0;
-       *width: 32%;
-       _width: 31.7%;
-}
-
-.yui-g .yui-gc div.first, 
-       .yui-gd .yui-g {
-       width: 66%;
-}
-
-.yui-gb .yui-g div.first {
-       *margin-right: 4%;
-       _margin-right: 1.3%;
-}
-
-.yui-gb .yui-gc div.first, 
-       .yui-gb .yui-gd div.first {
-       *margin-right: 0;
-}
-
-.yui-gb .yui-gb .yui-u,
-       .yui-gb .yui-gc .yui-u {
-       *margin-left: 1.8%;
-       _margin-left: 4%;
-}
-
-.yui-g .yui-gb .yui-u {
-       _margin-left: 1.0%;
-}
-
-.yui-gb .yui-gd .yui-u {
-       *width: 66%;
-       _width: 61.2%;
-}
-
-.yui-gb .yui-gd div.first {
-       *width: 31%;
-       _width: 29.5%;
-}
-
-.yui-g .yui-gc .yui-u, 
-       .yui-gb .yui-gc .yui-u {
-       width: 32%;
-       _float: right;
-       margin-right: 0;
-       _margin-left: 0;
-}
-
-.yui-gb .yui-gc div.first {
-       width: 66%;
-       *float: left;
-       *margin-left: 0;
-}
-
-.yui-gb .yui-ge .yui-u, 
-       .yui-gb .yui-gf .yui-u {
-       margin: 0;
-}
-
-.yui-gb .yui-gb .yui-u {
-       _margin-left: .7%;
-}
-
-.yui-gb .yui-g div.first, 
-       .yui-gb .yui-gb div.first {
-       *margin-left: 0;
-}
-
-.yui-gc .yui-g .yui-u,
-       .yui-gd .yui-g .yui-u {
-       *width: 48.1%;
-       *margin-left: 0;
-}
-
-.yui-gb .yui-gd div.first {
-       width: 32%;
-}
-
-.yui-g .yui-gd div.first {
-       _width: 29.9%;
-}
-
-.yui-ge .yui-g {
-       width: 24%;
-}
-
-.yui-gf .yui-g {
-       width: 74.2%;
-}
-
-.yui-gb .yui-ge div.yui-u,
-       .yui-gb .yui-gf div.yui-u {
-       float: right;
-}
-
-.yui-gb .yui-ge div.first,
-       .yui-gb .yui-gf div.first {
-       float: left;
-}
-
-/* Width Accommodation for Nested Contexts */
-.yui-gb .yui-ge .yui-u,
-       .yui-gb .yui-gf div.first {
-       *width: 24%;
-       _width: 20%;
-}
-
-/* Width Accommodation for Nested Contexts */
-.yui-gb .yui-ge div.first, 
-       .yui-gb .yui-gf .yui-u {
-       *width: 73.5%;
-       _width: 65.5%;
-}
-
-/* Patch for GD within GE */
-.yui-ge div.first .yui-gd .yui-u {
-       width: 65%;
-}
-
-.yui-ge div.first .yui-gd div.first {
-       width: 32%;
-}
-
-/* @group Clearing */
-#hd:after,
-#bd:after,
-#ft:after,
-.yui-g:after, 
-.yui-gb:after, 
-.yui-gc:after, 
-.yui-gd:after, 
-.yui-ge:after, 
-.yui-gf:after {
-       content: ".";
-       display: block;
-       height: 0;
-       clear: both;
-       visibility: hidden;
-}
-
-#hd,
-#bd,
-#ft,
-.yui-g, 
-.yui-gb, 
-.yui-gc, 
-.yui-gd, 
-.yui-ge, 
-.yui-gf {
-       zoom: 1;
-}
diff --git a/koha-tmpl/intranet-tmpl/prog/en/lib/yui/history/assets/blank.html b/koha-tmpl/intranet-tmpl/prog/en/lib/yui/history/assets/blank.html
deleted file mode 100644 (file)
index c63060f..0000000
+++ /dev/null
@@ -1 +0,0 @@
-<html><head><title>bhm</title></head><body>&#160;</body></html>\r
\ No newline at end of file
diff --git a/koha-tmpl/intranet-tmpl/prog/en/lib/yui/history/history-debug.js b/koha-tmpl/intranet-tmpl/prog/en/lib/yui/history/history-debug.js
deleted file mode 100644 (file)
index 983279e..0000000
+++ /dev/null
@@ -1,803 +0,0 @@
-/*
-Copyright (c) 2009, Yahoo! Inc. All rights reserved.
-Code licensed under the BSD License:
-http://developer.yahoo.net/yui/license.txt
-version: 2.8.0r4
-*/
-/**
- * The Browser History Manager provides the ability to use the back/forward
- * navigation buttons in a DHTML application. It also allows a DHTML
- * application to be bookmarked in a specific state.
- *
- * This library requires the following static markup:
- *
- * &lt;iframe id="yui-history-iframe" src="path-to-real-asset-in-same-domain"&gt;&lt;/iframe&gt;
- * &lt;input id="yui-history-field" type="hidden"&gt;
- *
- * @module history
- * @requires yahoo,event
- * @namespace YAHOO.util
- * @title Browser History Manager
- */
-
-/**
- * The History class provides the ability to use the back/forward navigation
- * buttons in a DHTML application. It also allows a DHTML application to
- * be bookmarked in a specific state.
- *
- * @class History
- * @constructor
- */
-YAHOO.util.History = (function () {
-
-    /**
-     * Our hidden IFrame used to store the browsing history.
-     *
-     * @property _histFrame
-     * @type HTMLIFrameElement
-     * @default null
-     * @private
-     */
-    var _histFrame = null;
-
-    /**
-     * INPUT field (with type="hidden" or type="text") or TEXTAREA.
-     * This field keeps the value of the initial state, current state
-     * the list of all states across pages within a single browser session.
-     *
-     * @property _stateField
-     * @type HTMLInputElement|HTMLTextAreaElement
-     * @default null
-     * @private
-     */
-    var _stateField = null;
-
-    /**
-     * Flag used to tell whether YAHOO.util.History.initialize has been called.
-     *
-     * @property _initialized
-     * @type boolean
-     * @default false
-     * @private
-     */
-    var _initialized = false;
-
-    /**
-     * List of registered modules.
-     *
-     * @property _modules
-     * @type array
-     * @default []
-     * @private
-     */
-    var _modules = [];
-
-    /**
-     * List of fully qualified states. This is used only by Safari.
-     *
-     * @property _fqstates
-     * @type array
-     * @default []
-     * @private
-     */
-    var _fqstates = [];
-
-    /**
-     * location.hash is a bit buggy on Opera. I have seen instances where
-     * navigating the history using the back/forward buttons, and hence
-     * changing the URL, would not change location.hash. That's ok, the
-     * implementation of an equivalent is trivial.
-     *
-     * @method _getHash
-     * @return {string} The hash portion of the document's location
-     * @private
-     */
-    function _getHash() {
-        var i, href;
-        href = top.location.href;
-        i = href.indexOf("#");
-        return i >= 0 ? href.substr(i + 1) : null;
-    }
-
-    /**
-     * Stores all the registered modules' initial state and current state.
-     * On Safari, we also store all the fully qualified states visited by
-     * the application within a single browser session. The storage takes
-     * place in the form field specified during initialization.
-     *
-     * @method _storeStates
-     * @private
-     */
-    function _storeStates() {
-
-        var moduleName, moduleObj, initialStates = [], currentStates = [];
-
-        for (moduleName in _modules) {
-            if (YAHOO.lang.hasOwnProperty(_modules, moduleName)) {
-                moduleObj = _modules[moduleName];
-                initialStates.push(moduleName + "=" + moduleObj.initialState);
-                currentStates.push(moduleName + "=" + moduleObj.currentState);
-            }
-        }
-
-        _stateField.value = initialStates.join("&") + "|" + currentStates.join("&");
-
-        if (YAHOO.env.ua.webkit) {
-            _stateField.value += "|" + _fqstates.join(",");
-        }
-    }
-
-    /**
-     * Sets the new currentState attribute of all modules depending on the new
-     * fully qualified state. Also notifies the modules which current state has
-     * changed.
-     *
-     * @method _handleFQStateChange
-     * @param {string} fqstate Fully qualified state
-     * @private
-     */
-    function _handleFQStateChange(fqstate) {
-
-        var i, len, moduleName, moduleObj, modules, states, tokens, currentState;
-
-        if (!fqstate) {
-            // Notifies all modules
-            for (moduleName in _modules) {
-                if (YAHOO.lang.hasOwnProperty(_modules, moduleName)) {
-                    moduleObj = _modules[moduleName];
-                    moduleObj.currentState = moduleObj.initialState;
-                    moduleObj.onStateChange(unescape(moduleObj.currentState));
-                }
-            }
-            return;
-        }
-
-        modules = [];
-        states = fqstate.split("&");
-        for (i = 0, len = states.length; i < len; i++) {
-            tokens = states[i].split("=");
-            if (tokens.length === 2) {
-                moduleName = tokens[0];
-                currentState = tokens[1];
-                modules[moduleName] = currentState;
-            }
-        }
-
-        for (moduleName in _modules) {
-            if (YAHOO.lang.hasOwnProperty(_modules, moduleName)) {
-                moduleObj = _modules[moduleName];
-                currentState = modules[moduleName];
-                if (!currentState || moduleObj.currentState !== currentState) {
-                    moduleObj.currentState = currentState || moduleObj.initialState;
-                    moduleObj.onStateChange(unescape(moduleObj.currentState));
-                }
-            }
-        }
-    }
-
-    /**
-     * Update the IFrame with our new state.
-     *
-     * @method _updateIFrame
-     * @private
-     * @return {boolean} true if successful. false otherwise.
-     */
-    function _updateIFrame (fqstate) {
-
-        var html, doc;
-
-        html = '<html><body><div id="state">' + fqstate + '</div></body></html>';
-
-        try {
-            doc = _histFrame.contentWindow.document;
-            doc.open();
-            doc.write(html);
-            doc.close();
-            return true;
-        } catch (e) {
-            return false;
-        }
-    }
-
-    /**
-     * Periodically checks whether our internal IFrame is ready to be used.
-     *
-     * @method _checkIframeLoaded
-     * @private
-     */
-    function _checkIframeLoaded() {
-
-        var doc, elem, fqstate, hash;
-
-        if (!_histFrame.contentWindow || !_histFrame.contentWindow.document) {
-            // Check again in 10 msec...
-            setTimeout(_checkIframeLoaded, 10);
-            return;
-        }
-
-        // Start the thread that will have the responsibility to
-        // periodically check whether a navigate operation has been
-        // requested on the main window. This will happen when
-        // YAHOO.util.History.navigate has been called or after
-        // the user has hit the back/forward button.
-
-        doc = _histFrame.contentWindow.document;
-        elem = doc.getElementById("state");
-        // We must use innerText, and not innerHTML because our string contains
-        // the "&" character (which would end up being escaped as "&amp;") and
-        // the string comparison would fail...
-        fqstate = elem ? elem.innerText : null;
-
-        hash = _getHash();
-
-        setInterval(function () {
-
-            var newfqstate, states, moduleName, moduleObj, newHash, historyLength;
-
-            doc = _histFrame.contentWindow.document;
-            elem = doc.getElementById("state");
-            // See my comment above about using innerText instead of innerHTML...
-            newfqstate = elem ? elem.innerText : null;
-
-            newHash = _getHash();
-
-            if (newfqstate !== fqstate) {
-
-                fqstate = newfqstate;
-                _handleFQStateChange(fqstate);
-
-                if (!fqstate) {
-                    states = [];
-                    for (moduleName in _modules) {
-                        if (YAHOO.lang.hasOwnProperty(_modules, moduleName)) {
-                            moduleObj = _modules[moduleName];
-                            states.push(moduleName + "=" + moduleObj.initialState);
-                        }
-                    }
-                    newHash = states.join("&");
-                } else {
-                    newHash = fqstate;
-                }
-
-                // Allow the state to be bookmarked by setting the top window's
-                // URL fragment identifier. Note that here, we are on IE, and
-                // IE does not touch the browser history when setting the hash
-                // (unlike all the other browsers). I used to write:
-                //     top.location.replace( "#" + hash );
-                // but this had a side effect when the page was not the top frame.
-                top.location.hash = newHash;
-                hash = newHash;
-
-                _storeStates();
-
-            } else if (newHash !== hash) {
-
-                // The hash has changed. The user might have clicked on a link,
-                // or modified the URL directly, or opened the same application
-                // bookmarked in a specific state using a bookmark. However, we
-                // know the hash change was not caused by a hit on the back or
-                // forward buttons, or by a call to navigate() (because it would
-                // have been handled above) We must handle these cases, which is
-                // why we also need to keep track of hash changes on IE!
-
-                // Note that IE6 has some major issues with this kind of user
-                // interaction (the history stack gets completely messed up)
-                // but it seems to work fine on IE7.
-
-                hash = newHash;
-
-                // Now, store a new history entry. The following will cause the
-                // code above to execute, doing all the dirty work for us...
-                _updateIFrame(newHash);
-            }
-
-        }, 50);
-
-        _initialized = true;
-        YAHOO.util.History.onLoadEvent.fire();
-    }
-
-    /**
-     * Finish up the initialization of the Browser History Manager.
-     *
-     * @method _initialize
-     * @private
-     */
-    function _initialize() {
-
-        var i, len, parts, tokens, moduleName, moduleObj, initialStates, initialState, currentStates, currentState, counter, hash;
-
-        // Decode the content of our storage field...
-        parts = _stateField.value.split("|");
-
-        if (parts.length > 1) {
-
-            initialStates = parts[0].split("&");
-            for (i = 0, len = initialStates.length; i < len; i++) {
-                tokens = initialStates[i].split("=");
-                if (tokens.length === 2) {
-                    moduleName = tokens[0];
-                    initialState = tokens[1];
-                    moduleObj = _modules[moduleName];
-                    if (moduleObj) {
-                        moduleObj.initialState = initialState;
-                    }
-                }
-            }
-
-            currentStates = parts[1].split("&");
-            for (i = 0, len = currentStates.length; i < len; i++) {
-                tokens = currentStates[i].split("=");
-                if (tokens.length >= 2) {
-                    moduleName = tokens[0];
-                    currentState = tokens[1];
-                    moduleObj = _modules[moduleName];
-                    if (moduleObj) {
-                        moduleObj.currentState = currentState;
-                    }
-                }
-            }
-        }
-
-        if (parts.length > 2) {
-            _fqstates = parts[2].split(",");
-        }
-
-        if (YAHOO.env.ua.ie) {
-
-            if (typeof document.documentMode === "undefined" || document.documentMode < 8) {
-
-                // IE < 8 or IE8 in quirks mode or IE7 standards mode
-                _checkIframeLoaded();
-
-            } else {
-
-                // IE8 in IE8 standards mode
-                YAHOO.util.Event.on(top, "hashchange",
-                    function () {
-                        var hash = _getHash();
-                        _handleFQStateChange(hash);
-                        _storeStates();
-                    });
-
-                _initialized = true;
-                YAHOO.util.History.onLoadEvent.fire();
-
-            }
-
-        } else {
-
-            // Start the thread that will have the responsibility to
-            // periodically check whether a navigate operation has been
-            // requested on the main window. This will happen when
-            // YAHOO.util.History.navigate has been called or after
-            // the user has hit the back/forward button.
-
-            // On Safari 1.x and 2.0, the only way to catch a back/forward
-            // operation is to watch history.length... We basically exploit
-            // what I consider to be a bug (history.length is not supposed
-            // to change when going back/forward in the history...) This is
-            // why, in the following thread, we first compare the hash,
-            // because the hash thing will be fixed in the next major
-            // version of Safari. So even if they fix the history.length
-            // bug, all this will still work!
-            counter = history.length;
-
-            // On Gecko and Opera, we just need to watch the hash...
-            hash = _getHash();
-
-            setInterval(function () {
-
-                var state, newHash, newCounter;
-
-                newHash = _getHash();
-                newCounter = history.length;
-                if (newHash !== hash) {
-                    hash = newHash;
-                    counter = newCounter;
-                    _handleFQStateChange(hash);
-                    _storeStates();
-                } else if (newCounter !== counter && YAHOO.env.ua.webkit) {
-                    hash = newHash;
-                    counter = newCounter;
-                    state = _fqstates[counter - 1];
-                    _handleFQStateChange(state);
-                    _storeStates();
-                }
-
-            }, 50);
-
-            _initialized = true;
-            YAHOO.util.History.onLoadEvent.fire();
-        }
-    }
-
-    return {
-
-        /**
-         * Fired when the Browser History Manager is ready. If you subscribe to
-         * this event after the Browser History Manager has been initialized,
-         * it will not fire. Therefore, it is recommended to use the onReady
-         * method instead.
-         *
-         * @event onLoadEvent
-         * @see onReady
-         */
-        onLoadEvent: new YAHOO.util.CustomEvent("onLoad"),
-
-        /**
-         * Executes the supplied callback when the Browser History Manager is
-         * ready. This will execute immediately if called after the Browser
-         * History Manager onLoad event has fired.
-         *
-         * @method onReady
-         * @param {function} fn what to execute when the Browser History Manager is ready.
-         * @param {object} obj an optional object to be passed back as a parameter to fn.
-         * @param {boolean|object} overrideContext If true, the obj passed in becomes fn's execution scope.
-         * @see onLoadEvent
-         */
-        onReady: function (fn, obj, overrideContext) {
-
-            if (_initialized) {
-
-                setTimeout(function () {
-                    var ctx = window;
-                    if (overrideContext) {
-                        if (overrideContext === true) {
-                            ctx = obj;
-                        } else {
-                            ctx = overrideContext;
-                        }
-                    }
-                    fn.call(ctx, "onLoad", [], obj);
-                }, 0);
-
-            } else {
-
-                YAHOO.util.History.onLoadEvent.subscribe(fn, obj, overrideContext);
-
-            }
-        },
-
-        /**
-         * Registers a new module.
-         *
-         * @method register
-         * @param {string} module Non-empty string uniquely identifying the
-         *     module you wish to register.
-         * @param {string} initialState The initial state of the specified
-         *     module corresponding to its earliest history entry.
-         * @param {function} onStateChange Callback called when the
-         *     state of the specified module has changed.
-         * @param {object} obj An arbitrary object that will be passed as a
-         *     parameter to the handler.
-         * @param {boolean} overrideContext If true, the obj passed in becomes the
-         *     execution scope of the listener.
-         */
-        register: function (module, initialState, onStateChange, obj, overrideContext) {
-
-            var scope, wrappedFn;
-
-            if (typeof module !== "string" || YAHOO.lang.trim(module) === "" ||
-                typeof initialState !== "string" ||
-                typeof onStateChange !== "function") {
-                throw new Error("Missing or invalid argument");
-            }
-
-            if (_modules[module]) {
-                // Here, we used to throw an exception. However, users have
-                // complained about this behavior, so we now just return.
-                return;
-            }
-
-            // Note: A module CANNOT be registered after calling
-            // YAHOO.util.History.initialize. Indeed, we set the initial state
-            // of each registered module in YAHOO.util.History.initialize.
-            // If you could register a module after initializing the Browser
-            // History Manager, you would not read the correct state using
-            // YAHOO.util.History.getCurrentState when coming back to the
-            // page using the back button.
-            if (_initialized) {
-                throw new Error("All modules must be registered before calling YAHOO.util.History.initialize");
-            }
-
-            // Make sure the strings passed in do not contain our separators "," and "|"
-            module = escape(module);
-            initialState = escape(initialState);
-
-            // If the user chooses to override the scope, we use the
-            // custom object passed in as the execution scope.
-            scope = null;
-            if (overrideContext === true) {
-                scope = obj;
-            } else {
-                scope = overrideContext;
-            }
-
-            wrappedFn = function (state) {
-                return onStateChange.call(scope, state, obj);
-            };
-
-            _modules[module] = {
-                name: module,
-                initialState: initialState,
-                currentState: initialState,
-                onStateChange: wrappedFn
-            };
-        },
-
-        /**
-         * Initializes the Browser History Manager. Call this method
-         * from a script block located right after the opening body tag.
-         *
-         * @method initialize
-         * @param {string|HTML Element} stateField <input type="hidden"> used
-         *     to store application states. Must be in the static markup.
-         * @param {string|HTML Element} histFrame IFrame used to store
-         *     the history (only required on Internet Explorer)
-         * @public
-         */
-        initialize: function (stateField, histFrame) {
-
-            if (_initialized) {
-                // The browser history manager has already been initialized.
-                return;
-            }
-
-            if (YAHOO.env.ua.opera && typeof history.navigationMode !== "undefined") {
-                // Disable Opera's fast back/forward navigation mode and puts
-                // it in compatible mode. This makes anchor-based history
-                // navigation work after the page has been navigated away
-                // from and re-activated, at the cost of slowing down
-                // back/forward navigation to and from that page.
-                history.navigationMode = "compatible";
-            }
-
-            if (typeof stateField === "string") {
-                stateField = document.getElementById(stateField);
-            }
-
-            if (!stateField ||
-                stateField.tagName.toUpperCase() !== "TEXTAREA" &&
-                (stateField.tagName.toUpperCase() !== "INPUT" ||
-                 stateField.type !== "hidden" &&
-                 stateField.type !== "text")) {
-                throw new Error("Missing or invalid argument");
-            }
-
-            _stateField = stateField;
-
-            // IE < 8 or IE8 in quirks mode or IE7 standards mode
-            if (YAHOO.env.ua.ie && (typeof document.documentMode === "undefined" || document.documentMode < 8)) {
-
-                if (typeof histFrame === "string") {
-                    histFrame = document.getElementById(histFrame);
-                }
-
-                if (!histFrame || histFrame.tagName.toUpperCase() !== "IFRAME") {
-                    throw new Error("Missing or invalid argument");
-                }
-
-                _histFrame = histFrame;
-            }
-
-            // Note that the event utility MUST be included inline in the page.
-            // If it gets loaded later (which you may want to do to improve the
-            // loading speed of your site), the onDOMReady event never fires,
-            // and the history library never gets fully initialized.
-            YAHOO.util.Event.onDOMReady(_initialize);
-        },
-
-        /**
-         * Call this method when you want to store a new entry in the browser's history.
-         *
-         * @method navigate
-         * @param {string} module Non-empty string representing your module.
-         * @param {string} state String representing the new state of the specified module.
-         * @return {boolean} Indicates whether the new state was successfully added to the history.
-         * @public
-         */
-        navigate: function (module, state) {
-
-            var states;
-
-            if (typeof module !== "string" || typeof state !== "string") {
-                throw new Error("Missing or invalid argument");
-            }
-
-            states = {};
-            states[module] = state;
-
-            return YAHOO.util.History.multiNavigate(states);
-        },
-
-        /**
-         * Call this method when you want to store a new entry in the browser's history.
-         *
-         * @method multiNavigate
-         * @param {object} states Associative array of module-state pairs to set simultaneously.
-         * @return {boolean} Indicates whether the new state was successfully added to the history.
-         * @public
-         */
-        multiNavigate: function (states) {
-
-            var currentStates, moduleName, moduleObj, currentState, fqstate;
-
-            if (typeof states !== "object") {
-                throw new Error("Missing or invalid argument");
-            }
-
-            if (!_initialized) {
-                throw new Error("The Browser History Manager is not initialized");
-            }
-
-            for (moduleName in states) {
-                if (!_modules[moduleName]) {
-                    throw new Error("The following module has not been registered: " + moduleName);
-                }
-            }
-
-            // Generate our new full state string mod1=xxx&mod2=yyy
-            currentStates = [];
-
-            for (moduleName in _modules) {
-                if (YAHOO.lang.hasOwnProperty(_modules, moduleName)) {
-                    moduleObj = _modules[moduleName];
-                    if (YAHOO.lang.hasOwnProperty(states, moduleName)) {
-                        currentState = states[unescape(moduleName)];
-                    } else {
-                        currentState = unescape(moduleObj.currentState);
-                    }
-
-                    // Make sure the strings passed in do not contain our separators "," and "|"
-                    moduleName = escape(moduleName);
-                    currentState = escape(currentState);
-
-                    currentStates.push(moduleName + "=" + currentState);
-                }
-            }
-
-            fqstate = currentStates.join("&");
-
-            if (YAHOO.env.ua.ie && (typeof document.documentMode === "undefined" || document.documentMode < 8)) {
-
-                return _updateIFrame(fqstate);
-
-            } else {
-
-                // Known bug: On Safari 1.x and 2.0, if you have tab browsing
-                // enabled, Safari will show an endless loading icon in the
-                // tab. This has apparently been fixed in recent WebKit builds.
-                // One work around found by Dav Glass is to submit a form that
-                // points to the same document. This indeed works on Safari 1.x
-                // and 2.0 but creates bigger problems on WebKit. So for now,
-                // we'll consider this an acceptable bug, and hope that Apple
-                // comes out with their next version of Safari very soon.
-                top.location.hash = fqstate;
-                if (YAHOO.env.ua.webkit) {
-                    // The following two lines are only useful for Safari 1.x
-                    // and 2.0. Recent nightly builds of WebKit do not require
-                    // that, but unfortunately, it is not easy to differentiate
-                    // between the two. Once Safari 2.0 departs the A-grade
-                    // list, we can remove the following two lines...
-                    _fqstates[history.length] = fqstate;
-                    _storeStates();
-                }
-
-                return true;
-
-            }
-        },
-
-        /**
-         * Returns the current state of the specified module.
-         *
-         * @method getCurrentState
-         * @param {string} module Non-empty string representing your module.
-         * @return {string} The current state of the specified module.
-         * @public
-         */
-        getCurrentState: function (module) {
-
-            var moduleObj;
-
-            if (typeof module !== "string") {
-                throw new Error("Missing or invalid argument");
-            }
-
-            if (!_initialized) {
-                throw new Error("The Browser History Manager is not initialized");
-            }
-
-            moduleObj = _modules[module];
-            if (!moduleObj) {
-                throw new Error("No such registered module: " + module);
-            }
-
-            return unescape(moduleObj.currentState);
-        },
-
-        /**
-         * Returns the state of a module according to the URL fragment
-         * identifier. This method is useful to initialize your modules
-         * if your application was bookmarked from a particular state.
-         *
-         * @method getBookmarkedState
-         * @param {string} module Non-empty string representing your module.
-         * @return {string} The bookmarked state of the specified module.
-         * @public
-         */
-        getBookmarkedState: function (module) {
-
-            var i, len, idx, hash, states, tokens, moduleName;
-
-            if (typeof module !== "string") {
-                throw new Error("Missing or invalid argument");
-            }
-
-            // Use location.href instead of location.hash which is already
-            // URL-decoded, which creates problems if the state value
-            // contained special characters...
-            idx = top.location.href.indexOf("#");
-            if (idx >= 0) {
-                hash = top.location.href.substr(idx + 1);
-                states = hash.split("&");
-                for (i = 0, len = states.length; i < len; i++) {
-                    tokens = states[i].split("=");
-                    if (tokens.length === 2) {
-                        moduleName = tokens[0];
-                        if (moduleName === module) {
-                            return unescape(tokens[1]);
-                        }
-                    }
-                }
-            }
-
-            return null;
-        },
-
-        /**
-         * Returns the value of the specified query string parameter.
-         * This method is not used internally by the Browser History Manager.
-         * However, it is provided here as a helper since many applications
-         * using the Browser History Manager will want to read the value of
-         * url parameters to initialize themselves.
-         *
-         * @method getQueryStringParameter
-         * @param {string} paramName Name of the parameter we want to look up.
-         * @param {string} queryString Optional URL to look at. If not specified,
-         *     this method uses the URL in the address bar.
-         * @return {string} The value of the specified parameter, or null.
-         * @public
-         */
-        getQueryStringParameter: function (paramName, url) {
-
-            var i, len, idx, queryString, params, tokens;
-
-            url = url || top.location.href;
-
-            idx = url.indexOf("?");
-            queryString = idx >= 0 ? url.substr(idx + 1) : url;
-
-            // Remove the hash if any
-            idx = queryString.lastIndexOf("#");
-            queryString = idx >= 0 ? queryString.substr(0, idx) : queryString;
-
-            params = queryString.split("&");
-
-            for (i = 0, len = params.length; i < len; i++) {
-                tokens = params[i].split("=");
-                if (tokens.length >= 2) {
-                    if (tokens[0] === paramName) {
-                        return unescape(tokens[1]);
-                    }
-                }
-            }
-
-            return null;
-        }
-
-    };
-
-})();
-YAHOO.register("history", YAHOO.util.History, {version: "2.8.0r4", build: "2449"});
diff --git a/koha-tmpl/intranet-tmpl/prog/en/lib/yui/history/history-min.js b/koha-tmpl/intranet-tmpl/prog/en/lib/yui/history/history-min.js
deleted file mode 100644 (file)
index 3f9a002..0000000
+++ /dev/null
@@ -1,7 +0,0 @@
-/*
-Copyright (c) 2009, Yahoo! Inc. All rights reserved.
-Code licensed under the BSD License:
-http://developer.yahoo.net/yui/license.txt
-version: 2.8.0r4
-*/
-YAHOO.util.History=(function(){var C=null;var K=null;var F=false;var D=[];var B=[];function I(){var M,L;L=top.location.href;M=L.indexOf("#");return M>=0?L.substr(M+1):null;}function A(){var M,N,O=[],L=[];for(M in D){if(YAHOO.lang.hasOwnProperty(D,M)){N=D[M];O.push(M+"="+N.initialState);L.push(M+"="+N.currentState);}}K.value=O.join("&")+"|"+L.join("&");if(YAHOO.env.ua.webkit){K.value+="|"+B.join(",");}}function H(L){var Q,R,M,O,P,T,S,N;if(!L){for(M in D){if(YAHOO.lang.hasOwnProperty(D,M)){O=D[M];O.currentState=O.initialState;O.onStateChange(unescape(O.currentState));}}return;}P=[];T=L.split("&");for(Q=0,R=T.length;Q<R;Q++){S=T[Q].split("=");if(S.length===2){M=S[0];N=S[1];P[M]=N;}}for(M in D){if(YAHOO.lang.hasOwnProperty(D,M)){O=D[M];N=P[M];if(!N||O.currentState!==N){O.currentState=N||O.initialState;O.onStateChange(unescape(O.currentState));}}}}function J(O){var L,N;L='<html><body><div id="state">'+O+"</div></body></html>";try{N=C.contentWindow.document;N.open();N.write(L);N.close();return true;}catch(M){return false;}}function G(){var O,L,N,M;if(!C.contentWindow||!C.contentWindow.document){setTimeout(G,10);return;}O=C.contentWindow.document;L=O.getElementById("state");N=L?L.innerText:null;M=I();setInterval(function(){var U,Q,R,S,T,P;O=C.contentWindow.document;L=O.getElementById("state");U=L?L.innerText:null;T=I();if(U!==N){N=U;H(N);if(!N){Q=[];for(R in D){if(YAHOO.lang.hasOwnProperty(D,R)){S=D[R];Q.push(R+"="+S.initialState);}}T=Q.join("&");}else{T=N;}top.location.hash=T;M=T;A();}else{if(T!==M){M=T;J(T);}}},50);F=true;YAHOO.util.History.onLoadEvent.fire();}function E(){var S,U,Q,W,M,O,V,P,T,N,L,R;Q=K.value.split("|");if(Q.length>1){V=Q[0].split("&");for(S=0,U=V.length;S<U;S++){W=V[S].split("=");if(W.length===2){M=W[0];P=W[1];O=D[M];if(O){O.initialState=P;}}}T=Q[1].split("&");for(S=0,U=T.length;S<U;S++){W=T[S].split("=");if(W.length>=2){M=W[0];N=W[1];O=D[M];if(O){O.currentState=N;}}}}if(Q.length>2){B=Q[2].split(",");}if(YAHOO.env.ua.ie){if(typeof document.documentMode==="undefined"||document.documentMode<8){G();}else{YAHOO.util.Event.on(top,"hashchange",function(){var X=I();H(X);A();});F=true;YAHOO.util.History.onLoadEvent.fire();}}else{L=history.length;R=I();setInterval(function(){var Z,X,Y;X=I();Y=history.length;if(X!==R){R=X;L=Y;H(R);A();}else{if(Y!==L&&YAHOO.env.ua.webkit){R=X;L=Y;Z=B[L-1];H(Z);A();}}},50);F=true;YAHOO.util.History.onLoadEvent.fire();}}return{onLoadEvent:new YAHOO.util.CustomEvent("onLoad"),onReady:function(L,M,N){if(F){setTimeout(function(){var O=window;if(N){if(N===true){O=M;}else{O=N;}}L.call(O,"onLoad",[],M);},0);}else{YAHOO.util.History.onLoadEvent.subscribe(L,M,N);}},register:function(N,L,P,Q,R){var O,M;if(typeof N!=="string"||YAHOO.lang.trim(N)===""||typeof L!=="string"||typeof P!=="function"){throw new Error("Missing or invalid argument");}if(D[N]){return;}if(F){throw new Error("All modules must be registered before calling YAHOO.util.History.initialize");}N=escape(N);L=escape(L);O=null;if(R===true){O=Q;}else{O=R;}M=function(S){return P.call(O,S,Q);};D[N]={name:N,initialState:L,currentState:L,onStateChange:M};},initialize:function(L,M){if(F){return;}if(YAHOO.env.ua.opera&&typeof history.navigationMode!=="undefined"){history.navigationMode="compatible";}if(typeof L==="string"){L=document.getElementById(L);}if(!L||L.tagName.toUpperCase()!=="TEXTAREA"&&(L.tagName.toUpperCase()!=="INPUT"||L.type!=="hidden"&&L.type!=="text")){throw new Error("Missing or invalid argument");}K=L;if(YAHOO.env.ua.ie&&(typeof document.documentMode==="undefined"||document.documentMode<8)){if(typeof M==="string"){M=document.getElementById(M);}if(!M||M.tagName.toUpperCase()!=="IFRAME"){throw new Error("Missing or invalid argument");}C=M;}YAHOO.util.Event.onDOMReady(E);},navigate:function(M,N){var L;if(typeof M!=="string"||typeof N!=="string"){throw new Error("Missing or invalid argument");}L={};L[M]=N;return YAHOO.util.History.multiNavigate(L);},multiNavigate:function(M){var L,N,P,O,Q;if(typeof M!=="object"){throw new Error("Missing or invalid argument");}if(!F){throw new Error("The Browser History Manager is not initialized");}for(N in M){if(!D[N]){throw new Error("The following module has not been registered: "+N);}}L=[];for(N in D){if(YAHOO.lang.hasOwnProperty(D,N)){P=D[N];if(YAHOO.lang.hasOwnProperty(M,N)){O=M[unescape(N)];}else{O=unescape(P.currentState);}N=escape(N);O=escape(O);L.push(N+"="+O);}}Q=L.join("&");if(YAHOO.env.ua.ie&&(typeof document.documentMode==="undefined"||document.documentMode<8)){return J(Q);}else{top.location.hash=Q;if(YAHOO.env.ua.webkit){B[history.length]=Q;A();}return true;}},getCurrentState:function(L){var M;if(typeof L!=="string"){throw new Error("Missing or invalid argument");}if(!F){throw new Error("The Browser History Manager is not initialized");}M=D[L];if(!M){throw new Error("No such registered module: "+L);}return unescape(M.currentState);},getBookmarkedState:function(Q){var P,M,L,S,N,R,O;if(typeof Q!=="string"){throw new Error("Missing or invalid argument");}L=top.location.href.indexOf("#");if(L>=0){S=top.location.href.substr(L+1);N=S.split("&");for(P=0,M=N.length;P<M;P++){R=N[P].split("=");if(R.length===2){O=R[0];if(O===Q){return unescape(R[1]);}}}}return null;},getQueryStringParameter:function(Q,N){var O,M,L,S,R,P;N=N||top.location.href;L=N.indexOf("?");S=L>=0?N.substr(L+1):N;L=S.lastIndexOf("#");S=L>=0?S.substr(0,L):S;R=S.split("&");for(O=0,M=R.length;O<M;O++){P=R[O].split("=");if(P.length>=2){if(P[0]===Q){return unescape(P[1]);}}}return null;}};})();YAHOO.register("history",YAHOO.util.History,{version:"2.8.0r4",build:"2449"});
\ No newline at end of file
diff --git a/koha-tmpl/intranet-tmpl/prog/en/lib/yui/history/history.js b/koha-tmpl/intranet-tmpl/prog/en/lib/yui/history/history.js
deleted file mode 100644 (file)
index 983279e..0000000
+++ /dev/null
@@ -1,803 +0,0 @@
-/*
-Copyright (c) 2009, Yahoo! Inc. All rights reserved.
-Code licensed under the BSD License:
-http://developer.yahoo.net/yui/license.txt
-version: 2.8.0r4
-*/
-/**
- * The Browser History Manager provides the ability to use the back/forward
- * navigation buttons in a DHTML application. It also allows a DHTML
- * application to be bookmarked in a specific state.
- *
- * This library requires the following static markup:
- *
- * &lt;iframe id="yui-history-iframe" src="path-to-real-asset-in-same-domain"&gt;&lt;/iframe&gt;
- * &lt;input id="yui-history-field" type="hidden"&gt;
- *
- * @module history
- * @requires yahoo,event
- * @namespace YAHOO.util
- * @title Browser History Manager
- */
-
-/**
- * The History class provides the ability to use the back/forward navigation
- * buttons in a DHTML application. It also allows a DHTML application to
- * be bookmarked in a specific state.
- *
- * @class History
- * @constructor
- */
-YAHOO.util.History = (function () {
-
-    /**
-     * Our hidden IFrame used to store the browsing history.
-     *
-     * @property _histFrame
-     * @type HTMLIFrameElement
-     * @default null
-     * @private
-     */
-    var _histFrame = null;
-
-    /**
-     * INPUT field (with type="hidden" or type="text") or TEXTAREA.
-     * This field keeps the value of the initial state, current state
-     * the list of all states across pages within a single browser session.
-     *
-     * @property _stateField
-     * @type HTMLInputElement|HTMLTextAreaElement
-     * @default null
-     * @private
-     */
-    var _stateField = null;
-
-    /**
-     * Flag used to tell whether YAHOO.util.History.initialize has been called.
-     *
-     * @property _initialized
-     * @type boolean
-     * @default false
-     * @private
-     */
-    var _initialized = false;
-
-    /**
-     * List of registered modules.
-     *
-     * @property _modules
-     * @type array
-     * @default []
-     * @private
-     */
-    var _modules = [];
-
-    /**
-     * List of fully qualified states. This is used only by Safari.
-     *
-     * @property _fqstates
-     * @type array
-     * @default []
-     * @private
-     */
-    var _fqstates = [];
-
-    /**
-     * location.hash is a bit buggy on Opera. I have seen instances where
-     * navigating the history using the back/forward buttons, and hence
-     * changing the URL, would not change location.hash. That's ok, the
-     * implementation of an equivalent is trivial.
-     *
-     * @method _getHash
-     * @return {string} The hash portion of the document's location
-     * @private
-     */
-    function _getHash() {
-        var i, href;
-        href = top.location.href;
-        i = href.indexOf("#");
-        return i >= 0 ? href.substr(i + 1) : null;
-    }
-
-    /**
-     * Stores all the registered modules' initial state and current state.
-     * On Safari, we also store all the fully qualified states visited by
-     * the application within a single browser session. The storage takes
-     * place in the form field specified during initialization.
-     *
-     * @method _storeStates
-     * @private
-     */
-    function _storeStates() {
-
-        var moduleName, moduleObj, initialStates = [], currentStates = [];
-
-        for (moduleName in _modules) {
-            if (YAHOO.lang.hasOwnProperty(_modules, moduleName)) {
-                moduleObj = _modules[moduleName];
-                initialStates.push(moduleName + "=" + moduleObj.initialState);
-                currentStates.push(moduleName + "=" + moduleObj.currentState);
-            }
-        }
-
-        _stateField.value = initialStates.join("&") + "|" + currentStates.join("&");
-
-        if (YAHOO.env.ua.webkit) {
-            _stateField.value += "|" + _fqstates.join(",");
-        }
-    }
-
-    /**
-     * Sets the new currentState attribute of all modules depending on the new
-     * fully qualified state. Also notifies the modules which current state has
-     * changed.
-     *
-     * @method _handleFQStateChange
-     * @param {string} fqstate Fully qualified state
-     * @private
-     */
-    function _handleFQStateChange(fqstate) {
-
-        var i, len, moduleName, moduleObj, modules, states, tokens, currentState;
-
-        if (!fqstate) {
-            // Notifies all modules
-            for (moduleName in _modules) {
-                if (YAHOO.lang.hasOwnProperty(_modules, moduleName)) {
-                    moduleObj = _modules[moduleName];
-                    moduleObj.currentState = moduleObj.initialState;
-                    moduleObj.onStateChange(unescape(moduleObj.currentState));
-                }
-            }
-            return;
-        }
-
-        modules = [];
-        states = fqstate.split("&");
-        for (i = 0, len = states.length; i < len; i++) {
-            tokens = states[i].split("=");
-            if (tokens.length === 2) {
-                moduleName = tokens[0];
-                currentState = tokens[1];
-                modules[moduleName] = currentState;
-            }
-        }
-
-        for (moduleName in _modules) {
-            if (YAHOO.lang.hasOwnProperty(_modules, moduleName)) {
-                moduleObj = _modules[moduleName];
-                currentState = modules[moduleName];
-                if (!currentState || moduleObj.currentState !== currentState) {
-                    moduleObj.currentState = currentState || moduleObj.initialState;
-                    moduleObj.onStateChange(unescape(moduleObj.currentState));
-                }
-            }
-        }
-    }
-
-    /**
-     * Update the IFrame with our new state.
-     *
-     * @method _updateIFrame
-     * @private
-     * @return {boolean} true if successful. false otherwise.
-     */
-    function _updateIFrame (fqstate) {
-
-        var html, doc;
-
-        html = '<html><body><div id="state">' + fqstate + '</div></body></html>';
-
-        try {
-            doc = _histFrame.contentWindow.document;
-            doc.open();
-            doc.write(html);
-            doc.close();
-            return true;
-        } catch (e) {
-            return false;
-        }
-    }
-
-    /**
-     * Periodically checks whether our internal IFrame is ready to be used.
-     *
-     * @method _checkIframeLoaded
-     * @private
-     */
-    function _checkIframeLoaded() {
-
-        var doc, elem, fqstate, hash;
-
-        if (!_histFrame.contentWindow || !_histFrame.contentWindow.document) {
-            // Check again in 10 msec...
-            setTimeout(_checkIframeLoaded, 10);
-            return;
-        }
-
-        // Start the thread that will have the responsibility to
-        // periodically check whether a navigate operation has been
-        // requested on the main window. This will happen when
-        // YAHOO.util.History.navigate has been called or after
-        // the user has hit the back/forward button.
-
-        doc = _histFrame.contentWindow.document;
-        elem = doc.getElementById("state");
-        // We must use innerText, and not innerHTML because our string contains
-        // the "&" character (which would end up being escaped as "&amp;") and
-        // the string comparison would fail...
-        fqstate = elem ? elem.innerText : null;
-
-        hash = _getHash();
-
-        setInterval(function () {
-
-            var newfqstate, states, moduleName, moduleObj, newHash, historyLength;
-
-            doc = _histFrame.contentWindow.document;
-            elem = doc.getElementById("state");
-            // See my comment above about using innerText instead of innerHTML...
-            newfqstate = elem ? elem.innerText : null;
-
-            newHash = _getHash();
-
-            if (newfqstate !== fqstate) {
-
-                fqstate = newfqstate;
-                _handleFQStateChange(fqstate);
-
-                if (!fqstate) {
-                    states = [];
-                    for (moduleName in _modules) {
-                        if (YAHOO.lang.hasOwnProperty(_modules, moduleName)) {
-                            moduleObj = _modules[moduleName];
-                            states.push(moduleName + "=" + moduleObj.initialState);
-                        }
-                    }
-                    newHash = states.join("&");
-                } else {
-                    newHash = fqstate;
-                }
-
-                // Allow the state to be bookmarked by setting the top window's
-                // URL fragment identifier. Note that here, we are on IE, and
-                // IE does not touch the browser history when setting the hash
-                // (unlike all the other browsers). I used to write:
-                //     top.location.replace( "#" + hash );
-                // but this had a side effect when the page was not the top frame.
-                top.location.hash = newHash;
-                hash = newHash;
-
-                _storeStates();
-
-            } else if (newHash !== hash) {
-
-                // The hash has changed. The user might have clicked on a link,
-                // or modified the URL directly, or opened the same application
-                // bookmarked in a specific state using a bookmark. However, we
-                // know the hash change was not caused by a hit on the back or
-                // forward buttons, or by a call to navigate() (because it would
-                // have been handled above) We must handle these cases, which is
-                // why we also need to keep track of hash changes on IE!
-
-                // Note that IE6 has some major issues with this kind of user
-                // interaction (the history stack gets completely messed up)
-                // but it seems to work fine on IE7.
-
-                hash = newHash;
-
-                // Now, store a new history entry. The following will cause the
-                // code above to execute, doing all the dirty work for us...
-                _updateIFrame(newHash);
-            }
-
-        }, 50);
-
-        _initialized = true;
-        YAHOO.util.History.onLoadEvent.fire();
-    }
-
-    /**
-     * Finish up the initialization of the Browser History Manager.
-     *
-     * @method _initialize
-     * @private
-     */
-    function _initialize() {
-
-        var i, len, parts, tokens, moduleName, moduleObj, initialStates, initialState, currentStates, currentState, counter, hash;
-
-        // Decode the content of our storage field...
-        parts = _stateField.value.split("|");
-
-        if (parts.length > 1) {
-
-            initialStates = parts[0].split("&");
-            for (i = 0, len = initialStates.length; i < len; i++) {
-                tokens = initialStates[i].split("=");
-                if (tokens.length === 2) {
-                    moduleName = tokens[0];
-                    initialState = tokens[1];
-                    moduleObj = _modules[moduleName];
-                    if (moduleObj) {
-                        moduleObj.initialState = initialState;
-                    }
-                }
-            }
-
-            currentStates = parts[1].split("&");
-            for (i = 0, len = currentStates.length; i < len; i++) {
-                tokens = currentStates[i].split("=");
-                if (tokens.length >= 2) {
-                    moduleName = tokens[0];
-                    currentState = tokens[1];
-                    moduleObj = _modules[moduleName];
-                    if (moduleObj) {
-                        moduleObj.currentState = currentState;
-                    }
-                }
-            }
-        }
-
-        if (parts.length > 2) {
-            _fqstates = parts[2].split(",");
-        }
-
-        if (YAHOO.env.ua.ie) {
-
-            if (typeof document.documentMode === "undefined" || document.documentMode < 8) {
-
-                // IE < 8 or IE8 in quirks mode or IE7 standards mode
-                _checkIframeLoaded();
-
-            } else {
-
-                // IE8 in IE8 standards mode
-                YAHOO.util.Event.on(top, "hashchange",
-                    function () {
-                        var hash = _getHash();
-                        _handleFQStateChange(hash);
-                        _storeStates();
-                    });
-
-                _initialized = true;
-                YAHOO.util.History.onLoadEvent.fire();
-
-            }
-
-        } else {
-
-            // Start the thread that will have the responsibility to
-            // periodically check whether a navigate operation has been
-            // requested on the main window. This will happen when
-            // YAHOO.util.History.navigate has been called or after
-            // the user has hit the back/forward button.
-
-            // On Safari 1.x and 2.0, the only way to catch a back/forward
-            // operation is to watch history.length... We basically exploit
-            // what I consider to be a bug (history.length is not supposed
-            // to change when going back/forward in the history...) This is
-            // why, in the following thread, we first compare the hash,
-            // because the hash thing will be fixed in the next major
-            // version of Safari. So even if they fix the history.length
-            // bug, all this will still work!
-            counter = history.length;
-
-            // On Gecko and Opera, we just need to watch the hash...
-            hash = _getHash();
-
-            setInterval(function () {
-
-                var state, newHash, newCounter;
-
-                newHash = _getHash();
-                newCounter = history.length;
-                if (newHash !== hash) {
-                    hash = newHash;
-                    counter = newCounter;
-                    _handleFQStateChange(hash);
-                    _storeStates();
-                } else if (newCounter !== counter && YAHOO.env.ua.webkit) {
-                    hash = newHash;
-                    counter = newCounter;
-                    state = _fqstates[counter - 1];
-                    _handleFQStateChange(state);
-                    _storeStates();
-                }
-
-            }, 50);
-
-            _initialized = true;
-            YAHOO.util.History.onLoadEvent.fire();
-        }
-    }
-
-    return {
-
-        /**
-         * Fired when the Browser History Manager is ready. If you subscribe to
-         * this event after the Browser History Manager has been initialized,
-         * it will not fire. Therefore, it is recommended to use the onReady
-         * method instead.
-         *
-         * @event onLoadEvent
-         * @see onReady
-         */
-        onLoadEvent: new YAHOO.util.CustomEvent("onLoad"),
-
-        /**
-         * Executes the supplied callback when the Browser History Manager is
-         * ready. This will execute immediately if called after the Browser
-         * History Manager onLoad event has fired.
-         *
-         * @method onReady
-         * @param {function} fn what to execute when the Browser History Manager is ready.
-         * @param {object} obj an optional object to be passed back as a parameter to fn.
-         * @param {boolean|object} overrideContext If true, the obj passed in becomes fn's execution scope.
-         * @see onLoadEvent
-         */
-        onReady: function (fn, obj, overrideContext) {
-
-            if (_initialized) {
-
-                setTimeout(function () {
-                    var ctx = window;
-                    if (overrideContext) {
-                        if (overrideContext === true) {
-                            ctx = obj;
-                        } else {
-                            ctx = overrideContext;
-                        }
-                    }
-                    fn.call(ctx, "onLoad", [], obj);
-                }, 0);
-
-            } else {
-
-                YAHOO.util.History.onLoadEvent.subscribe(fn, obj, overrideContext);
-
-            }
-        },
-
-        /**
-         * Registers a new module.
-         *
-         * @method register
-         * @param {string} module Non-empty string uniquely identifying the
-         *     module you wish to register.
-         * @param {string} initialState The initial state of the specified
-         *     module corresponding to its earliest history entry.
-         * @param {function} onStateChange Callback called when the
-         *     state of the specified module has changed.
-         * @param {object} obj An arbitrary object that will be passed as a
-         *     parameter to the handler.
-         * @param {boolean} overrideContext If true, the obj passed in becomes the
-         *     execution scope of the listener.
-         */
-        register: function (module, initialState, onStateChange, obj, overrideContext) {
-
-            var scope, wrappedFn;
-
-            if (typeof module !== "string" || YAHOO.lang.trim(module) === "" ||
-                typeof initialState !== "string" ||
-                typeof onStateChange !== "function") {
-                throw new Error("Missing or invalid argument");
-            }
-
-            if (_modules[module]) {
-                // Here, we used to throw an exception. However, users have
-                // complained about this behavior, so we now just return.
-                return;
-            }
-
-            // Note: A module CANNOT be registered after calling
-            // YAHOO.util.History.initialize. Indeed, we set the initial state
-            // of each registered module in YAHOO.util.History.initialize.
-            // If you could register a module after initializing the Browser
-            // History Manager, you would not read the correct state using
-            // YAHOO.util.History.getCurrentState when coming back to the
-            // page using the back button.
-            if (_initialized) {
-                throw new Error("All modules must be registered before calling YAHOO.util.History.initialize");
-            }
-
-            // Make sure the strings passed in do not contain our separators "," and "|"
-            module = escape(module);
-            initialState = escape(initialState);
-
-            // If the user chooses to override the scope, we use the
-            // custom object passed in as the execution scope.
-            scope = null;
-            if (overrideContext === true) {
-                scope = obj;
-            } else {
-                scope = overrideContext;
-            }
-
-            wrappedFn = function (state) {
-                return onStateChange.call(scope, state, obj);
-            };
-
-            _modules[module] = {
-                name: module,
-                initialState: initialState,
-                currentState: initialState,
-                onStateChange: wrappedFn
-            };
-        },
-
-        /**
-         * Initializes the Browser History Manager. Call this method
-         * from a script block located right after the opening body tag.
-         *
-         * @method initialize
-         * @param {string|HTML Element} stateField <input type="hidden"> used
-         *     to store application states. Must be in the static markup.
-         * @param {string|HTML Element} histFrame IFrame used to store
-         *     the history (only required on Internet Explorer)
-         * @public
-         */
-        initialize: function (stateField, histFrame) {
-
-            if (_initialized) {
-                // The browser history manager has already been initialized.
-                return;
-            }
-
-            if (YAHOO.env.ua.opera && typeof history.navigationMode !== "undefined") {
-                // Disable Opera's fast back/forward navigation mode and puts
-                // it in compatible mode. This makes anchor-based history
-                // navigation work after the page has been navigated away
-                // from and re-activated, at the cost of slowing down
-                // back/forward navigation to and from that page.
-                history.navigationMode = "compatible";
-            }
-
-            if (typeof stateField === "string") {
-                stateField = document.getElementById(stateField);
-            }
-
-            if (!stateField ||
-                stateField.tagName.toUpperCase() !== "TEXTAREA" &&
-                (stateField.tagName.toUpperCase() !== "INPUT" ||
-                 stateField.type !== "hidden" &&
-                 stateField.type !== "text")) {
-                throw new Error("Missing or invalid argument");
-            }
-
-            _stateField = stateField;
-
-            // IE < 8 or IE8 in quirks mode or IE7 standards mode
-            if (YAHOO.env.ua.ie && (typeof document.documentMode === "undefined" || document.documentMode < 8)) {
-
-                if (typeof histFrame === "string") {
-                    histFrame = document.getElementById(histFrame);
-                }
-
-                if (!histFrame || histFrame.tagName.toUpperCase() !== "IFRAME") {
-                    throw new Error("Missing or invalid argument");
-                }
-
-                _histFrame = histFrame;
-            }
-
-            // Note that the event utility MUST be included inline in the page.
-            // If it gets loaded later (which you may want to do to improve the
-            // loading speed of your site), the onDOMReady event never fires,
-            // and the history library never gets fully initialized.
-            YAHOO.util.Event.onDOMReady(_initialize);
-        },
-
-        /**
-         * Call this method when you want to store a new entry in the browser's history.
-         *
-         * @method navigate
-         * @param {string} module Non-empty string representing your module.
-         * @param {string} state String representing the new state of the specified module.
-         * @return {boolean} Indicates whether the new state was successfully added to the history.
-         * @public
-         */
-        navigate: function (module, state) {
-
-            var states;
-
-            if (typeof module !== "string" || typeof state !== "string") {
-                throw new Error("Missing or invalid argument");
-            }
-
-            states = {};
-            states[module] = state;
-
-            return YAHOO.util.History.multiNavigate(states);
-        },
-
-        /**
-         * Call this method when you want to store a new entry in the browser's history.
-         *
-         * @method multiNavigate
-         * @param {object} states Associative array of module-state pairs to set simultaneously.
-         * @return {boolean} Indicates whether the new state was successfully added to the history.
-         * @public
-         */
-        multiNavigate: function (states) {
-
-            var currentStates, moduleName, moduleObj, currentState, fqstate;
-
-            if (typeof states !== "object") {
-                throw new Error("Missing or invalid argument");
-            }
-
-            if (!_initialized) {
-                throw new Error("The Browser History Manager is not initialized");
-            }
-
-            for (moduleName in states) {
-                if (!_modules[moduleName]) {
-                    throw new Error("The following module has not been registered: " + moduleName);
-                }
-            }
-
-            // Generate our new full state string mod1=xxx&mod2=yyy
-            currentStates = [];
-
-            for (moduleName in _modules) {
-                if (YAHOO.lang.hasOwnProperty(_modules, moduleName)) {
-                    moduleObj = _modules[moduleName];
-                    if (YAHOO.lang.hasOwnProperty(states, moduleName)) {
-                        currentState = states[unescape(moduleName)];
-                    } else {
-                        currentState = unescape(moduleObj.currentState);
-                    }
-
-                    // Make sure the strings passed in do not contain our separators "," and "|"
-                    moduleName = escape(moduleName);
-                    currentState = escape(currentState);
-
-                    currentStates.push(moduleName + "=" + currentState);
-                }
-            }
-
-            fqstate = currentStates.join("&");
-
-            if (YAHOO.env.ua.ie && (typeof document.documentMode === "undefined" || document.documentMode < 8)) {
-
-                return _updateIFrame(fqstate);
-
-            } else {
-
-                // Known bug: On Safari 1.x and 2.0, if you have tab browsing
-                // enabled, Safari will show an endless loading icon in the
-                // tab. This has apparently been fixed in recent WebKit builds.
-                // One work around found by Dav Glass is to submit a form that
-                // points to the same document. This indeed works on Safari 1.x
-                // and 2.0 but creates bigger problems on WebKit. So for now,
-                // we'll consider this an acceptable bug, and hope that Apple
-                // comes out with their next version of Safari very soon.
-                top.location.hash = fqstate;
-                if (YAHOO.env.ua.webkit) {
-                    // The following two lines are only useful for Safari 1.x
-                    // and 2.0. Recent nightly builds of WebKit do not require
-                    // that, but unfortunately, it is not easy to differentiate
-                    // between the two. Once Safari 2.0 departs the A-grade
-                    // list, we can remove the following two lines...
-                    _fqstates[history.length] = fqstate;
-                    _storeStates();
-                }
-
-                return true;
-
-            }
-        },
-
-        /**
-         * Returns the current state of the specified module.
-         *
-         * @method getCurrentState
-         * @param {string} module Non-empty string representing your module.
-         * @return {string} The current state of the specified module.
-         * @public
-         */
-        getCurrentState: function (module) {
-
-            var moduleObj;
-
-            if (typeof module !== "string") {
-                throw new Error("Missing or invalid argument");
-            }
-
-            if (!_initialized) {
-                throw new Error("The Browser History Manager is not initialized");
-            }
-
-            moduleObj = _modules[module];
-            if (!moduleObj) {
-                throw new Error("No such registered module: " + module);
-            }
-
-            return unescape(moduleObj.currentState);
-        },
-
-        /**
-         * Returns the state of a module according to the URL fragment
-         * identifier. This method is useful to initialize your modules
-         * if your application was bookmarked from a particular state.
-         *
-         * @method getBookmarkedState
-         * @param {string} module Non-empty string representing your module.
-         * @return {string} The bookmarked state of the specified module.
-         * @public
-         */
-        getBookmarkedState: function (module) {
-
-            var i, len, idx, hash, states, tokens, moduleName;
-
-            if (typeof module !== "string") {
-                throw new Error("Missing or invalid argument");
-            }
-
-            // Use location.href instead of location.hash which is already
-            // URL-decoded, which creates problems if the state value
-            // contained special characters...
-            idx = top.location.href.indexOf("#");
-            if (idx >= 0) {
-                hash = top.location.href.substr(idx + 1);
-                states = hash.split("&");
-                for (i = 0, len = states.length; i < len; i++) {
-                    tokens = states[i].split("=");
-                    if (tokens.length === 2) {
-                        moduleName = tokens[0];
-                        if (moduleName === module) {
-                            return unescape(tokens[1]);
-                        }
-                    }
-                }
-            }
-
-            return null;
-        },
-
-        /**
-         * Returns the value of the specified query string parameter.
-         * This method is not used internally by the Browser History Manager.
-         * However, it is provided here as a helper since many applications
-         * using the Browser History Manager will want to read the value of
-         * url parameters to initialize themselves.
-         *
-         * @method getQueryStringParameter
-         * @param {string} paramName Name of the parameter we want to look up.
-         * @param {string} queryString Optional URL to look at. If not specified,
-         *     this method uses the URL in the address bar.
-         * @return {string} The value of the specified parameter, or null.
-         * @public
-         */
-        getQueryStringParameter: function (paramName, url) {
-
-            var i, len, idx, queryString, params, tokens;
-
-            url = url || top.location.href;
-
-            idx = url.indexOf("?");
-            queryString = idx >= 0 ? url.substr(idx + 1) : url;
-
-            // Remove the hash if any
-            idx = queryString.lastIndexOf("#");
-            queryString = idx >= 0 ? queryString.substr(0, idx) : queryString;
-
-            params = queryString.split("&");
-
-            for (i = 0, len = params.length; i < len; i++) {
-                tokens = params[i].split("=");
-                if (tokens.length >= 2) {
-                    if (tokens[0] === paramName) {
-                        return unescape(tokens[1]);
-                    }
-                }
-            }
-
-            return null;
-        }
-
-    };
-
-})();
-YAHOO.register("history", YAHOO.util.History, {version: "2.8.0r4", build: "2449"});
diff --git a/koha-tmpl/intranet-tmpl/prog/en/lib/yui/imagecropper/assets/imagecropper-core.css b/koha-tmpl/intranet-tmpl/prog/en/lib/yui/imagecropper/assets/imagecropper-core.css
deleted file mode 100644 (file)
index 366300f..0000000
+++ /dev/null
@@ -1,33 +0,0 @@
-/*
-Copyright (c) 2009, Yahoo! Inc. All rights reserved.
-Code licensed under the BSD License:
-http://developer.yahoo.net/yui/license.txt
-version: 2.8.0r4
-*/
-.yui-crop {
-    position: relative;
-}
-.yui-crop .yui-crop-mask {
-    position: absolute;
-    top: 0;
-    left: 0;
-    height: 100%;
-    width: 100%;
-}
-
-.yui-crop .yui-resize {
-    position: absolute;
-    top: 10px;
-    left: 10px;
-    border: 0;
-}
-
-.yui-crop .yui-crop-resize-mask {
-    position: absolute;
-    top: 0;
-    left: 0;
-    height: 100%;
-    width: 100%;
-    background-position: -10px -10px;
-    overflow: hidden;
-}
diff --git a/koha-tmpl/intranet-tmpl/prog/en/lib/yui/imagecropper/assets/skins/sam/imagecropper-skin.css b/koha-tmpl/intranet-tmpl/prog/en/lib/yui/imagecropper/assets/skins/sam/imagecropper-skin.css
deleted file mode 100644 (file)
index e33ac87..0000000
+++ /dev/null
@@ -1,16 +0,0 @@
-/*
-Copyright (c) 2009, Yahoo! Inc. All rights reserved.
-Code licensed under the BSD License:
-http://developer.yahoo.net/yui/license.txt
-version: 2.8.0r4
-*/
-.yui-skin-sam .yui-crop .yui-crop-mask {
-    background-color: #000;
-    opacity: .5;
-    filter: alpha(opacity=50);
-}
-
-.yui-skin-sam .yui-crop .yui-resize {
-    border: 1px dashed #fff;   
-}
-
diff --git a/koha-tmpl/intranet-tmpl/prog/en/lib/yui/imagecropper/assets/skins/sam/imagecropper.css b/koha-tmpl/intranet-tmpl/prog/en/lib/yui/imagecropper/assets/skins/sam/imagecropper.css
deleted file mode 100644 (file)
index 0e8d36f..0000000
+++ /dev/null
@@ -1,7 +0,0 @@
-/*
-Copyright (c) 2009, Yahoo! Inc. All rights reserved.
-Code licensed under the BSD License:
-http://developer.yahoo.net/yui/license.txt
-version: 2.8.0r4
-*/
-.yui-crop{position:relative;}.yui-crop .yui-crop-mask{position:absolute;top:0;left:0;height:100%;width:100%;}.yui-crop .yui-resize{position:absolute;top:10px;left:10px;border:0;}.yui-crop .yui-crop-resize-mask{position:absolute;top:0;left:0;height:100%;width:100%;background-position:-10px -10px;overflow:hidden;}.yui-skin-sam .yui-crop .yui-crop-mask{background-color:#000;opacity:.5;filter:alpha(opacity=50);}.yui-skin-sam .yui-crop .yui-resize{border:1px dashed #fff;}
diff --git a/koha-tmpl/intranet-tmpl/prog/en/lib/yui/imagecropper/imagecropper-debug.js b/koha-tmpl/intranet-tmpl/prog/en/lib/yui/imagecropper/imagecropper-debug.js
deleted file mode 100644 (file)
index b72d58e..0000000
+++ /dev/null
@@ -1,907 +0,0 @@
-/*
-Copyright (c) 2009, Yahoo! Inc. All rights reserved.
-Code licensed under the BSD License:
-http://developer.yahoo.net/yui/license.txt
-version: 2.8.0r4
-*/
-/**
- * @description <p>Creates a Image Cropper control.</p>
- * @namespace YAHOO.widget
- * @requires yahoo, dom, dragdrop, element, event, resize
- * @module imagecropper
- * @beta
- */
-(function() {
-var Dom = YAHOO.util.Dom,
-    Event = YAHOO.util.Event,
-    Lang = YAHOO.lang;
-
-    /**
-     * @constructor
-     * @class ImageCropper
-     * @description <p>Creates a Image Cropper control.</p>
-     * @extends YAHOO.util.Element
-     * @param {String/HTMLElement} el The image element to make croppable.
-     * @param {Object} attrs Object liternal containing configuration parameters.
-    */
-    var Crop = function(el, config) {
-        YAHOO.log('Initializing', 'log', 'ImageCropper');
-        var oConfig = {
-            element: el,
-            attributes: config || {}
-        };
-
-        Crop.superclass.constructor.call(this, oConfig.element, oConfig.attributes);    
-    };
-
-    /**
-    * @private
-    * @static
-    * @property _instances
-    * @description Internal hash table for all ImageCropper instances
-    * @type Object
-    */ 
-    Crop._instances = {};
-    /**
-    * @static
-    * @method getCropperById 
-    * @description Get's an ImageCropper object by the HTML id of the image associated with the ImageCropper object.
-    * @return {Object} The ImageCropper Object
-    */ 
-    Crop.getCropperById = function(id) {
-        if (Crop._instances[id]) {
-            return Crop._instances[id];
-        }
-        return false;
-    };
-
-    YAHOO.extend(Crop, YAHOO.util.Element, {
-        /**
-        * @private
-        * @property CSS_MAIN
-        * @description The CSS class used to wrap the element 
-        * @type String
-        */
-        CSS_MAIN: 'yui-crop',
-        /**
-        * @private
-        * @property CSS_MASK
-        * @description The CSS class for the mask element
-        * @type String
-        */
-        CSS_MASK: 'yui-crop-mask',
-        /**
-        * @private
-        * @property CSS_RESIZE_MASK
-        * @description The CSS class for the mask inside the resize element
-        * @type String
-        */
-        CSS_RESIZE_MASK: 'yui-crop-resize-mask',
-
-        /**
-        * @private
-        * @property _image
-        * @description The url of the image we are cropping
-        * @type String
-        */
-        _image: null,
-        /**
-        * @private
-        * @property _active
-        * @description Flag to determine if the crop region is active
-        * @type Boolean
-        */
-        _active: null,
-        /**
-        * @private
-        * @property _resize
-        * @description A reference to the Resize Utility used in this Cropper Instance
-        * @type Object
-        */
-        _resize: null,
-        /**
-        * @private
-        * @property _resizeEl
-        * @description The HTML Element used to create the Resize Oject
-        * @type HTMLElement
-        */
-        _resizeEl: null,
-        /**
-        * @private
-        * @property _resizeMaskEl
-        * @description The HTML Element used to create the Resize mask
-        * @type HTMLElement
-        */
-        _resizeMaskEl: null,
-        /**
-        * @private
-        * @property _wrap
-        * @description The HTML Element created to wrap the image
-        * @type HTMLElement
-        */
-        _wrap: null,
-        /**
-        * @private
-        * @property _mask
-        * @description The HTML Element created to "mask" the image being cropped
-        * @type HTMLElement
-        */
-        _mask: null,
-        /**
-        * @private
-        * @method _createWrap
-        * @description Creates the wrapper element used to wrap the image
-        */
-        _createWrap: function() {
-            YAHOO.log('Creating the wrap element', 'log', 'ImageCropper');
-            this._wrap = document.createElement('div');
-            this._wrap.id = this.get('element').id + '_wrap';
-            this._wrap.className = this.CSS_MAIN;
-            var el = this.get('element');
-            this._wrap.style.width = el.width ? el.width + 'px' : Dom.getStyle(el, 'width');
-            this._wrap.style.height = el.height ? el.height + 'px' : Dom.getStyle(el, 'height');
-            
-            var par = this.get('element').parentNode;
-            par.replaceChild(this._wrap, this.get('element'));
-            this._wrap.appendChild(this.get('element'));
-
-            Event.on(this._wrap, 'mouseover', this._handleMouseOver, this, true);
-            Event.on(this._wrap, 'mouseout', this._handleMouseOut, this, true);
-
-            Event.on(this._wrap, 'click', function(ev) { Event.stopEvent(ev); }, this, true);
-        },
-
-        /**
-        * @private
-        * @method _createMask
-        * @description Creates the mask element used to mask the image
-        */
-        _createMask: function() {
-            YAHOO.log('Creating the Mask', 'log', 'ImageCropper');
-            this._mask = document.createElement('div');
-            this._mask.className = this.CSS_MASK;
-            this._wrap.appendChild(this._mask);
-        },
-
-        /**
-        * @private
-        * @method _createResize
-        * @description Creates the resize element and the instance of the Resize Utility
-        */
-        _createResize: function() {
-            YAHOO.log('Creating the Resize element', 'log', 'ImageCropper');
-            this._resizeEl = document.createElement('div');
-            this._resizeEl.className = YAHOO.util.Resize.prototype.CSS_RESIZE;
-            this._resizeEl.style.position = 'absolute';
-            
-            this._resizeEl.innerHTML = '<div class="' + this.CSS_RESIZE_MASK + '"></div>';
-            this._resizeMaskEl = this._resizeEl.firstChild;
-            this._wrap.appendChild(this._resizeEl);
-            this._resizeEl.style.top = this.get('initialXY')[1] + 'px';
-            this._resizeEl.style.left = this.get('initialXY')[0] + 'px';
-            this._resizeMaskEl.style.height = Math.floor(this.get('initHeight')) + 'px';
-            this._resizeMaskEl.style.width = Math.floor(this.get('initWidth')) + 'px';
-
-            this._resize = new YAHOO.util.Resize(this._resizeEl, {
-                knobHandles: true,
-                handles: 'all',
-                draggable: true,
-                status: this.get('status'),
-                minWidth: this.get('minWidth'),
-                minHeight: this.get('minHeight'),
-                ratio: this.get('ratio'),
-                autoRatio: this.get('autoRatio'),
-                height: this.get('initHeight'),
-                width: this.get('initWidth')
-            });
-
-            this._setBackgroundImage(this.get('element').getAttribute('src', 2));
-            this._setBackgroundPosition(-(this.get('initialXY')[0]),  -(this.get('initialXY')[1]));
-
-            this._resize.on('startResize', this._handleStartResizeEvent, this, true);
-            this._resize.on('endResize', this._handleEndResizeEvent, this, true);
-            this._resize.on('dragEvent', this._handleDragEvent, this, true);
-            this._resize.on('beforeResize', this._handleBeforeResizeEvent, this, true);
-            this._resize.on('resize', this._handleResizeEvent, this, true);
-            this._resize.dd.on('b4StartDragEvent', this._handleB4DragEvent, this, true);
-        },
-
-        /**
-        * @private
-        * @method _handleMouseOver
-        * @description Handles the mouseover event
-        */
-        _handleMouseOver: function(ev) {
-            var evType = 'keydown';
-            if (YAHOO.env.ua.gecko || YAHOO.env.ua.opera) {
-                evType = 'keypress';
-            }
-            if (!this._active) {
-                this._active = true;
-                if (this.get('useKeys')) {
-                    Event.on(document, evType, this._handleKeyPress, this, true);
-                }
-            }
-        },
-        /**
-        * @private
-        * @method _handleMouseOut
-        * @description Handles the mouseout event
-        */
-        _handleMouseOut: function(ev) {
-            var evType = 'keydown';
-            if (YAHOO.env.ua.gecko || YAHOO.env.ua.opera) {
-                evType = 'keypress';
-            }
-            this._active = false;
-            if (this.get('useKeys')) {
-                Event.removeListener(document, evType, this._handleKeyPress);
-            }
-        },
-
-        /**
-        * @private
-        * @method _moveEl
-        * @description Moves the resize element based on the arrow keys
-        */
-        _moveEl: function(dir, inc) {
-            YAHOO.log('Moving the element', 'log', 'ImageCropper');
-            var t = 0, l = 0,
-                region = this._setConstraints(),
-                resize = true;
-
-            switch (dir) {
-                case 'down':
-                    t = -(inc);
-                    if ((region.bottom - inc) < 0) {
-                        resize = false;
-                        this._resizeEl.style.top = (region.top + region.bottom) + 'px';
-                    }
-                    break;
-                case 'up':
-                    t = (inc);
-                    if ((region.top - inc) < 0) {
-                        resize = false;
-                        this._resizeEl.style.top = '0px';
-                    }
-                    break;
-                case 'right':
-                    l = -(inc);
-                    if ((region.right - inc) < 0) {
-                        resize = false;
-                        this._resizeEl.style.left = (region.left + region.right) + 'px';
-                    }
-                    break;
-                case 'left':
-                    l = inc;
-                    if ((region.left - inc) < 0) {
-                        resize = false;
-                        this._resizeEl.style.left = '0px';
-                    }
-                    break;
-            }
-
-            if (resize) {
-                YAHOO.log('Moving via Key Listener: ' + dir, 'log', 'ImageCropper');
-                this._resizeEl.style.left = (parseInt(this._resizeEl.style.left, 10) - l) + 'px';
-                this._resizeEl.style.top = (parseInt(this._resizeEl.style.top, 10) - t) + 'px';
-                this.fireEvent('moveEvent', { target: 'keypress' });
-            } else {
-                this._setConstraints();
-            }
-            this._syncBackgroundPosition();
-        },
-
-        /**
-        * @private
-        * @method _handleKeyPress
-        * @description Handles the keypress event
-        */
-        _handleKeyPress: function(ev) {
-            var kc = Event.getCharCode(ev),
-                stopEvent = false,
-                inc = ((ev.shiftKey) ? this.get('shiftKeyTick') : this.get('keyTick'));
-
-            switch (kc) {
-                case 0x25: // left
-                    this._moveEl('left', inc);
-                    stopEvent = true;
-                    break;
-                case 0x26: // up
-                    this._moveEl('up', inc);
-                    stopEvent = true;
-                    break;
-                case 0x27: // right
-                    this._moveEl('right', inc);
-                    stopEvent = true;
-                    break;
-                case 0x28: // down
-                    this._moveEl('down', inc);
-                    stopEvent = true;
-                    break;
-                default:
-            }
-            if (stopEvent) {
-                Event.preventDefault(ev);
-            }
-        },
-
-        /**
-        * @private
-        * @method _handleB4DragEvent
-        * @description Handles the DragDrop b4DragEvent event
-        */
-        _handleB4DragEvent: function() {
-            this._setConstraints();
-        },
-
-        /**
-        * @private
-        * @method _handleDragEvent
-        * @description Handles the DragDrop DragEvent event
-        */
-        _handleDragEvent: function() {
-            this._syncBackgroundPosition();
-            this.fireEvent('dragEvent', arguments);
-            this.fireEvent('moveEvent', { target: 'dragevent' });
-        },
-
-        /**
-        * @private
-        * @method _handleBeforeResizeEvent
-        * @description Handles the Resize Utilitys beforeResize event
-        */
-        _handleBeforeResizeEvent: function(args) {
-            var region = Dom.getRegion(this.get('element')),
-                c = this._resize._cache,
-                ch = this._resize._currentHandle, h = 0, w = 0;
-
-            if (args.top && (args.top < region.top)) {
-                h = (c.height + c.top) - region.top;
-                Dom.setY(this._resize.getWrapEl(), region.top);
-                this._resize.getWrapEl().style.height = h + 'px';
-                this._resize._cache.height = h;
-                this._resize._cache.top = region.top;
-                this._syncBackgroundPosition();
-                return false;
-            }
-            if (args.left && (args.left < region.left)) {
-                w = (c.width + c.left) - region.left;
-                Dom.setX(this._resize.getWrapEl(), region.left);
-                this._resize._cache.left = region.left;
-                this._resize.getWrapEl().style.width = w + 'px';
-                this._resize._cache.width = w;
-                this._syncBackgroundPosition();
-                return false;
-            }
-            if (ch != 'tl' && ch != 'l' && ch != 'bl') {
-                if (c.left && args.width && ((c.left + args.width) > region.right)) {
-                    w = (region.right - c.left);
-                    Dom.setX(this._resize.getWrapEl(), (region.right - w));
-                    this._resize.getWrapEl().style.width = w + 'px';
-                    this._resize._cache.left = (region.right - w);
-                    this._resize._cache.width = w;
-                    this._syncBackgroundPosition();
-                    return false;
-                }
-            }
-            if (ch != 't' && ch != 'tr' && ch != 'tl') {
-                if (c.top && args.height && ((c.top + args.height) > region.bottom)) {
-                    h = (region.bottom - c.top);
-                    Dom.setY(this._resize.getWrapEl(), (region.bottom - h));
-                    this._resize.getWrapEl().style.height = h + 'px';
-                    this._resize._cache.height = h;
-                    this._resize._cache.top = (region.bottom - h);
-                    this._syncBackgroundPosition();
-                    return false;
-                }
-            }
-        },
-        /**
-        * @private
-        * @method _handleResizeMaskEl
-        * @description Resizes the inner mask element
-        */
-        _handleResizeMaskEl: function() {
-            var a = this._resize._cache;
-            this._resizeMaskEl.style.height = Math.floor(a.height) + 'px';
-            this._resizeMaskEl.style.width = Math.floor(a.width) + 'px';
-        },
-        /**
-        * @private
-        * @method _handleResizeEvent
-        * @param Event ev The Resize Utilitys resize event.
-        * @description Handles the Resize Utilitys Resize event
-        */
-        _handleResizeEvent: function(ev) {
-            this._setConstraints(true);
-            this._syncBackgroundPosition();
-            this.fireEvent('resizeEvent', arguments);
-            this.fireEvent('moveEvent', { target: 'resizeevent' });
-        },
-
-        /**
-        * @private
-        * @method _syncBackgroundPosition
-        * @description Syncs the packground position of the resize element with the resize elements top and left style position
-        */
-        _syncBackgroundPosition: function() {
-            this._handleResizeMaskEl();
-            this._setBackgroundPosition(-(parseInt(this._resizeEl.style.left, 10)), -(parseInt(this._resizeEl.style.top, 10)));
-        },
-
-        /**
-        * @private
-        * @method _setBackgroundPosition
-        * @param Number l The left position
-        * @param Number t The top position
-        * @description Sets the background image position to the top and left position
-        */
-        _setBackgroundPosition: function(l, t) {
-            //YAHOO.log('Setting the image background position of the mask to: (' + l + ', ' + t + ')', 'log', 'ImageCropper');
-            var bl = parseInt(Dom.getStyle(this._resize.get('element'), 'borderLeftWidth'), 10);
-            var bt = parseInt(Dom.getStyle(this._resize.get('element'), 'borderTopWidth'), 10);
-            if (isNaN(bl)) {
-                bl = 0;
-            }
-            if (isNaN(bt)) {
-                bt = 0;
-            }
-            var mask = this._resize.getWrapEl().firstChild;
-            var pos = (l - bl) + 'px ' + (t - bt) + 'px';
-            this._resizeMaskEl.style.backgroundPosition = pos;
-        },
-
-        /**
-        * @private
-        * @method _setBackgroundImage
-        * @param String url The url of the image
-        * @description Sets the background image of the resize element
-        */
-        _setBackgroundImage: function(url) {
-            YAHOO.log('Setting the background image', 'log', 'ImageCropper');
-            var mask = this._resize.getWrapEl().firstChild;
-            this._image = url;
-            mask.style.backgroundImage = 'url(' + url + '#)';
-        },
-        
-        /**
-        * @private
-        * @method _handleEndResizeEvent
-        * @description Handles the Resize Utilitys endResize event
-        */
-        _handleEndResizeEvent: function() {
-            this._setConstraints(true);
-        },
-        /**
-        * @private
-        * @method _handleStartResizeEvent
-        * @description Handles the Resize Utilitys startResize event
-        */
-        _handleStartResizeEvent: function() {
-            this._setConstraints(true);
-
-            var h = this._resize._cache.height,
-                 w = this._resize._cache.width,
-                 t = parseInt(this._resize.getWrapEl().style.top, 10),
-                 l = parseInt(this._resize.getWrapEl().style.left, 10),
-                 maxH = 0, maxW = 0;
-            switch (this._resize._currentHandle) {
-                case 'b':
-                    maxH = (h + this._resize.dd.bottomConstraint);
-                    break;
-                case 'l':
-                    maxW = (w + this._resize.dd.leftConstraint);
-                    break;
-                case 'r':
-                    maxH = (h + t);
-                    maxW = (w + this._resize.dd.rightConstraint);
-                    break;
-                 case 'br':
-                     maxH = (h + this._resize.dd.bottomConstraint);
-                     maxW = (w + this._resize.dd.rightConstraint);
-                     break;
-                 case 'tr':
-                     maxH = (h + t);
-                     maxW = (w + this._resize.dd.rightConstraint);
-                     break;
-
-             }
-            
-             if (maxH) {
-                YAHOO.log('Setting the maxHeight on the resize object to: ' + maxH, 'log', 'ImageCropper');
-                 //this._resize.set('maxHeight', maxH);
-             }
-             if (maxW) {
-                YAHOO.log('Setting the maxWidth on the resize object to: ' + maxW, 'log', 'ImageCropper');
-                 //this._resize.set('maxWidth', maxW);
-             }
-
-            this.fireEvent('startResizeEvent', arguments);
-        },
-        
-        /**
-        * @private
-        * @method _setConstraints
-        * @param Boolean inside Used when called from inside a resize event, false by default (dragging)
-        * @description Set the DragDrop constraints to keep the element inside the crop area.
-        * @return {Object} Object containing Top, Right, Bottom and Left constraints
-        */
-        _setConstraints: function(inside) {
-            YAHOO.log('Setting Contraints', 'log', 'ImageCropper');
-            var resize = this._resize;
-            resize.dd.resetConstraints();
-            var height = parseInt(resize.get('height'), 10),
-                width = parseInt(resize.get('width'), 10);
-            if (inside) {
-                //Called from inside the resize callback
-                height = resize._cache.height;
-                width = resize._cache.width;
-            }
-
-            //Get the top, right, bottom and left positions
-            var region = Dom.getRegion(this.get('element'));
-            //Get the element we are working on
-            var el = resize.getWrapEl();
-
-            //Get the xy position of it
-            var xy = Dom.getXY(el);
-
-            //Set left to x minus left
-            var left = xy[0] - region.left;
-
-            //Set right to right minus x minus width
-            var right = region.right - xy[0] - width;
-
-            //Set top to y minus top
-            var top = xy[1] - region.top;
-
-            //Set bottom to bottom minus y minus height
-            var bottom = region.bottom - xy[1] - height;
-
-            if (top < 0) {
-                top = 0;
-            }
-            
-            resize.dd.setXConstraint(left, right); 
-            resize.dd.setYConstraint(top, bottom);
-            YAHOO.log('Constraints: ' + top + ',' + right + ',' + bottom + ',' + left, 'log', 'ImageCropper');
-
-            return {
-                top: top,
-                right: right,
-                bottom: bottom,
-                left: left
-            };
-
-            
-            
-        },
-        /**
-        * @method getCropCoords
-        * @description Returns the coordinates needed to crop the image
-        * @return {Object} The top, left, height, width and image url of the image being cropped
-        */
-        getCropCoords: function() {
-            var coords = {
-                top: parseInt(this._resize.getWrapEl().style.top, 10),
-                left: parseInt(this._resize.getWrapEl().style.left, 10),
-                height: this._resize._cache.height,
-                width: this._resize._cache.width,
-                image: this._image
-            };
-            YAHOO.log('Getting the crop coordinates: ' + Lang.dump(coords), 'log', 'ImageCropper');
-            return coords;
-        },
-        /**
-        * @method reset
-        * @description Resets the crop element back to it's original position
-        * @return {<a href="YAHOO.widget.ImageCropper.html">YAHOO.widget.ImageCropper</a>} The ImageCropper instance
-        */
-        reset: function() {
-            YAHOO.log('Resetting the control', 'log', 'ImageCropper');
-            this._resize.resize(null, this.get('initHeight'), this.get('initWidth'), 0, 0, true);
-            this._resizeEl.style.top = this.get('initialXY')[1] + 'px';
-            this._resizeEl.style.left = this.get('initialXY')[0] + 'px';
-            this._syncBackgroundPosition();
-            return this;
-        },
-
-        /**
-        * @method getEl
-        * @description Get the HTML reference for the image element.
-        * @return {HTMLElement} The image element
-        */      
-        getEl: function() {
-            return this.get('element');
-        },
-        /**
-        * @method getResizeEl
-        * @description Get the HTML reference for the resize element.
-        * @return {HTMLElement} The resize element
-        */      
-        getResizeEl: function() {
-            return this._resizeEl;
-        },
-        /**
-        * @method getWrapEl
-        * @description Get the HTML reference for the wrap element.
-        * @return {HTMLElement} The wrap element
-        */      
-        getWrapEl: function() {
-            return this._wrap;
-        },
-
-        /**
-        * @method getMaskEl
-        * @description Get the HTML reference for the mask element.
-        * @return {HTMLElement} The mask element
-        */      
-        getMaskEl: function() {
-            return this._mask;
-        },
-
-        /**
-        * @method getResizeMaskEl
-        * @description Get the HTML reference for the resizable object's mask element.
-        * @return {HTMLElement} The resize objects mask element.
-        */      
-        getResizeMaskEl: function() {
-            return this._resizeMaskEl;
-        },
-
-        /**
-        * @method getResizeObject
-        * @description Get the Resize Utility object.
-        * @return {<a href="YAHOO.util.Resize.html">YAHOO.util.Resize</a>} The Resize instance
-        */      
-        getResizeObject: function() {
-            return this._resize;
-        },
-
-        /** 
-        * @private
-        * @method init
-        * @description The ImageCropper class's initialization method
-        */        
-        init: function(p_oElement, p_oAttributes) {
-            YAHOO.log('init', 'info', 'ImageCropper');
-            Crop.superclass.init.call(this, p_oElement, p_oAttributes);
-
-            var id = p_oElement;
-
-            if (!Lang.isString(id)) {
-                if (id.tagName && (id.tagName.toLowerCase() == 'img')) {
-                    id = Dom.generateId(id);                    
-                } else {
-                    YAHOO.log('Element is not an image.', 'error', 'ImageCropper');
-                    return false;
-                }
-            } else {
-                var el = Dom.get(id);
-                if (el.tagName && el.tagName.toLowerCase() == 'img') {
-                    //All good
-                } else {
-                    YAHOO.log('Element is not an image.', 'error', 'ImageCropper');
-                    return false;
-                }
-            }
-            
-
-
-            Crop._instances[id] = this;
-            this._createWrap();
-            this._createMask();
-            this._createResize();
-            this._setConstraints();
-
-        },
-        /**
-        * @private
-        * @method initAttributes
-        * @description Initializes all of the configuration attributes used to create a croppable element.
-        * @param {Object} attr Object literal specifying a set of 
-        * configuration attributes used to create the widget.
-        */      
-
-        initAttributes: function(attr) {
-            Crop.superclass.initAttributes.call(this, attr);
-
-            /**
-            * @attribute initialXY
-            * @description Array of the XY position that we need to set the crop element to when we build it. Defaults to [10, 10]
-            * @type Array
-            */
-            this.setAttributeConfig('initialXY', {
-                writeOnce: true,
-                validator: YAHOO.lang.isArray,
-                value: attr.initialXY || [10, 10]
-            });
-            /**
-            * @attribute keyTick
-            * @description The pixel tick for the arrow keys, defaults to 1
-            * @type Number
-            */
-            this.setAttributeConfig('keyTick', {
-                validator: YAHOO.lang.isNumber,
-                value: attr.keyTick || 1
-            });
-
-            /**
-            * @attribute shiftKeyTick
-            * @description The pixel tick for shift + the arrow keys, defaults to 10
-            * @type Number
-            */
-            this.setAttributeConfig('shiftKeyTick', {
-                validator: YAHOO.lang.isNumber,
-                value: attr.shiftKeyTick || 10
-            });
-
-            /**
-            * @attribute useKeys
-            * @description Should we use the Arrow keys to position the crop element, defaults to true
-            * @type Boolean
-            */
-            this.setAttributeConfig('useKeys', {
-                validator: YAHOO.lang.isBoolean,
-                value: ((attr.useKeys === false) ? false : true)
-            });
-
-            /**
-            * @attribute status
-            * @description Show the Resize Utility status, defaults to true
-            * @type Boolean
-            */
-            this.setAttributeConfig('status', {
-                validator: YAHOO.lang.isBoolean,
-                value: ((attr.status === false) ? false : true),
-                method: function(status) {
-                    if (this._resize) {
-                        this._resize.set('status', status);
-                    }
-                }
-            });
-
-            /**
-            * @attribute minHeight
-            * @description MinHeight of the crop area, default 50
-            * @type Number
-            */
-            this.setAttributeConfig('minHeight', {
-                validator: YAHOO.lang.isNumber,
-                value: attr.minHeight || 50,
-                method: function(h) {
-                    if (this._resize) {
-                        this._resize.set('minHeight', h);
-                    }
-                }
-            });
-
-            /**
-            * @attribute minWidth
-            * @description MinWidth of the crop area, default 50.
-            * @type Number
-            */
-            this.setAttributeConfig('minWidth', {
-                validator: YAHOO.lang.isNumber,
-                value: attr.minWidth || 50,
-                method: function(w) {
-                    if (this._resize) {
-                        this._resize.set('minWidth', w);
-                    }
-                }
-            });
-
-            /**
-            * @attribute ratio
-            * @description Set the ratio config option of the Resize Utlility, default false
-            * @type Boolean
-            */
-            this.setAttributeConfig('ratio', {
-                validator: YAHOO.lang.isBoolean,
-                value: attr.ratio || false,
-                method: function(r) {
-                    if (this._resize) {
-                        this._resize.set('ratio', r);
-                    }
-                }
-            });
-
-            /**
-            * @attribute ratio
-            * @description Set the autoRatio config option of the Resize Utlility, default true
-            * @type Boolean
-            */
-            this.setAttributeConfig('autoRatio', {
-                validator: YAHOO.lang.isBoolean,
-                value: ((attr.autoRatio === false) ? false : true),
-                method: function(a) {
-                    if (this._resize) {
-                        this._resize.set('autoRatio', a);
-                    }
-                }
-            });
-
-            /**
-            * @attribute initHeight
-            * @description Set the initlal height of the crop area, defaults to 1/4 of the image height
-            * @type Number
-            */
-            this.setAttributeConfig('initHeight', {
-                writeOnce: true,
-                validator: YAHOO.lang.isNumber,
-                value: attr.initHeight || (this.get('element').height / 4)
-            });
-
-            /**
-            * @attribute initWidth
-            * @description Set the initlal width of the crop area, defaults to 1/4 of the image width
-            * @type Number
-            */
-            this.setAttributeConfig('initWidth', {
-                validator: YAHOO.lang.isNumber,
-                writeOnce: true,
-                value: attr.initWidth || (this.get('element').width / 4)
-            });
-
-        },
-        /**
-        * @method destroy
-        * @description Destroys the ImageCropper object and all of it's elements & listeners.
-        */        
-        destroy: function() {
-            YAHOO.log('Destroying the ImageCropper', 'info', 'ImageCropper');
-            this._resize.destroy();
-            this._resizeEl.parentNode.removeChild(this._resizeEl);
-            this._mask.parentNode.removeChild(this._mask);
-            Event.purgeElement(this._wrap);
-            this._wrap.parentNode.replaceChild(this.get('element'), this._wrap);
-            
-            //Brutal Object Destroy
-            for (var i in this) {
-                if (Lang.hasOwnProperty(this, i)) {
-                    this[i] = null;
-                }
-            }
-                       
-        },
-        /**
-        * @method toString
-        * @description Returns a string representing the ImageCropper Object.
-        * @return {String}
-        */        
-        toString: function() {
-            if (this.get) {
-                return 'ImageCropper (#' + this.get('id') + ')';
-            }
-            return 'Image Cropper';
-        }
-    });
-
-    YAHOO.widget.ImageCropper = Crop;
-
-/**
-* @event dragEvent
-* @description Fires when the DragDrop dragEvent
-* @type YAHOO.util.CustomEvent
-*/
-/**
-* @event startResizeEvent
-* @description Fires when when a resize action is started.
-* @type YAHOO.util.CustomEvent
-*/
-/**
-* @event resizeEvent
-* @description Fires on every element resize.
-* @type YAHOO.util.CustomEvent
-*/
-/**
-* @event moveEvent
-* @description Fires on every element move. Inside these methods: _handleKeyPress, _handleDragEvent, _handleResizeEvent
-* @type YAHOO.util.CustomEvent
-*/
-
-})();
-
-YAHOO.register("imagecropper", YAHOO.widget.ImageCropper, {version: "2.8.0r4", build: "2449"});
diff --git a/koha-tmpl/intranet-tmpl/prog/en/lib/yui/imagecropper/imagecropper-min.js b/koha-tmpl/intranet-tmpl/prog/en/lib/yui/imagecropper/imagecropper-min.js
deleted file mode 100644 (file)
index fb99289..0000000
+++ /dev/null
@@ -1,8 +0,0 @@
-/*
-Copyright (c) 2009, Yahoo! Inc. All rights reserved.
-Code licensed under the BSD License:
-http://developer.yahoo.net/yui/license.txt
-version: 2.8.0r4
-*/
-(function(){var C=YAHOO.util.Dom,A=YAHOO.util.Event,D=YAHOO.lang;var B=function(F,E){var G={element:F,attributes:E||{}};B.superclass.constructor.call(this,G.element,G.attributes);};B._instances={};B.getCropperById=function(E){if(B._instances[E]){return B._instances[E];}return false;};YAHOO.extend(B,YAHOO.util.Element,{CSS_MAIN:"yui-crop",CSS_MASK:"yui-crop-mask",CSS_RESIZE_MASK:"yui-crop-resize-mask",_image:null,_active:null,_resize:null,_resizeEl:null,_resizeMaskEl:null,_wrap:null,_mask:null,_createWrap:function(){this._wrap=document.createElement("div");this._wrap.id=this.get("element").id+"_wrap";this._wrap.className=this.CSS_MAIN;var F=this.get("element");this._wrap.style.width=F.width?F.width+"px":C.getStyle(F,"width");this._wrap.style.height=F.height?F.height+"px":C.getStyle(F,"height");var E=this.get("element").parentNode;E.replaceChild(this._wrap,this.get("element"));this._wrap.appendChild(this.get("element"));A.on(this._wrap,"mouseover",this._handleMouseOver,this,true);A.on(this._wrap,"mouseout",this._handleMouseOut,this,true);A.on(this._wrap,"click",function(G){A.stopEvent(G);},this,true);},_createMask:function(){this._mask=document.createElement("div");this._mask.className=this.CSS_MASK;this._wrap.appendChild(this._mask);},_createResize:function(){this._resizeEl=document.createElement("div");this._resizeEl.className=YAHOO.util.Resize.prototype.CSS_RESIZE;this._resizeEl.style.position="absolute";this._resizeEl.innerHTML='<div class="'+this.CSS_RESIZE_MASK+'"></div>';this._resizeMaskEl=this._resizeEl.firstChild;this._wrap.appendChild(this._resizeEl);this._resizeEl.style.top=this.get("initialXY")[1]+"px";this._resizeEl.style.left=this.get("initialXY")[0]+"px";this._resizeMaskEl.style.height=Math.floor(this.get("initHeight"))+"px";this._resizeMaskEl.style.width=Math.floor(this.get("initWidth"))+"px";this._resize=new YAHOO.util.Resize(this._resizeEl,{knobHandles:true,handles:"all",draggable:true,status:this.get("status"),minWidth:this.get("minWidth"),minHeight:this.get("minHeight"),ratio:this.get("ratio"),autoRatio:this.get("autoRatio"),height:this.get("initHeight"),width:this.get("initWidth")});this._setBackgroundImage(this.get("element").getAttribute("src",2));this._setBackgroundPosition(-(this.get("initialXY")[0]),-(this.get("initialXY")[1]));this._resize.on("startResize",this._handleStartResizeEvent,this,true);this._resize.on("endResize",this._handleEndResizeEvent,this,true);this._resize.on("dragEvent",this._handleDragEvent,this,true);this._resize.on("beforeResize",this._handleBeforeResizeEvent,this,true);this._resize.on("resize",this._handleResizeEvent,this,true);this._resize.dd.on("b4StartDragEvent",this._handleB4DragEvent,this,true);},_handleMouseOver:function(F){var E="keydown";if(YAHOO.env.ua.gecko||YAHOO.env.ua.opera){E="keypress";}if(!this._active){this._active=true;if(this.get("useKeys")){A.on(document,E,this._handleKeyPress,this,true);}}},_handleMouseOut:function(F){var E="keydown";if(YAHOO.env.ua.gecko||YAHOO.env.ua.opera){E="keypress";}this._active=false;if(this.get("useKeys")){A.removeListener(document,E,this._handleKeyPress);}},_moveEl:function(G,J){var H=0,E=0,I=this._setConstraints(),F=true;switch(G){case"down":H=-(J);if((I.bottom-J)<0){F=false;this._resizeEl.style.top=(I.top+I.bottom)+"px";}break;case"up":H=(J);if((I.top-J)<0){F=false;this._resizeEl.style.top="0px";}break;case"right":E=-(J);if((I.right-J)<0){F=false;this._resizeEl.style.left=(I.left+I.right)+"px";}break;case"left":E=J;if((I.left-J)<0){F=false;this._resizeEl.style.left="0px";}break;}if(F){this._resizeEl.style.left=(parseInt(this._resizeEl.style.left,10)-E)+"px";this._resizeEl.style.top=(parseInt(this._resizeEl.style.top,10)-H)+"px";this.fireEvent("moveEvent",{target:"keypress"});}else{this._setConstraints();}this._syncBackgroundPosition();},_handleKeyPress:function(G){var E=A.getCharCode(G),F=false,H=((G.shiftKey)?this.get("shiftKeyTick"):this.get("keyTick"));switch(E){case 37:this._moveEl("left",H);F=true;break;case 38:this._moveEl("up",H);F=true;break;case 39:this._moveEl("right",H);F=true;break;case 40:this._moveEl("down",H);F=true;break;default:}if(F){A.preventDefault(G);}},_handleB4DragEvent:function(){this._setConstraints();},_handleDragEvent:function(){this._syncBackgroundPosition();this.fireEvent("dragEvent",arguments);this.fireEvent("moveEvent",{target:"dragevent"});},_handleBeforeResizeEvent:function(F){var I=C.getRegion(this.get("element")),J=this._resize._cache,H=this._resize._currentHandle,G=0,E=0;if(F.top&&(F.top<I.top)){G=(J.height+J.top)-I.top;C.setY(this._resize.getWrapEl(),I.top);this._resize.getWrapEl().style.height=G+"px";this._resize._cache.height=G;this._resize._cache.top=I.top;this._syncBackgroundPosition();return false;}if(F.left&&(F.left<I.left)){E=(J.width+J.left)-I.left;C.setX(this._resize.getWrapEl(),I.left);this._resize._cache.left=I.left;this._resize.getWrapEl().style.width=E+"px";this._resize._cache.width=E;this._syncBackgroundPosition();return false;}if(H!="tl"&&H!="l"&&H!="bl"){if(J.left&&F.width&&((J.left+F.width)>I.right)){E=(I.right-J.left);C.setX(this._resize.getWrapEl(),(I.right-E));this._resize.getWrapEl().style.width=E+"px";this._resize._cache.left=(I.right-E);this._resize._cache.width=E;this._syncBackgroundPosition();return false;}}if(H!="t"&&H!="tr"&&H!="tl"){if(J.top&&F.height&&((J.top+F.height)>I.bottom)){G=(I.bottom-J.top);C.setY(this._resize.getWrapEl(),(I.bottom-G));this._resize.getWrapEl().style.height=G+"px";this._resize._cache.height=G;this._resize._cache.top=(I.bottom-G);this._syncBackgroundPosition();return false;}}},_handleResizeMaskEl:function(){var E=this._resize._cache;this._resizeMaskEl.style.height=Math.floor(E.height)+"px";this._resizeMaskEl.style.width=Math.floor(E.width)+"px";},_handleResizeEvent:function(E){this._setConstraints(true);this._syncBackgroundPosition();this.fireEvent("resizeEvent",arguments);this.fireEvent("moveEvent",{target:"resizeevent"});},_syncBackgroundPosition:function(){this._handleResizeMaskEl();this._setBackgroundPosition(-(parseInt(this._resizeEl.style.left,10)),-(parseInt(this._resizeEl.style.top,10)));
-},_setBackgroundPosition:function(F,H){var J=parseInt(C.getStyle(this._resize.get("element"),"borderLeftWidth"),10);var G=parseInt(C.getStyle(this._resize.get("element"),"borderTopWidth"),10);if(isNaN(J)){J=0;}if(isNaN(G)){G=0;}var E=this._resize.getWrapEl().firstChild;var I=(F-J)+"px "+(H-G)+"px";this._resizeMaskEl.style.backgroundPosition=I;},_setBackgroundImage:function(F){var E=this._resize.getWrapEl().firstChild;this._image=F;E.style.backgroundImage="url("+F+"#)";},_handleEndResizeEvent:function(){this._setConstraints(true);},_handleStartResizeEvent:function(){this._setConstraints(true);var I=this._resize._cache.height,F=this._resize._cache.width,H=parseInt(this._resize.getWrapEl().style.top,10),E=parseInt(this._resize.getWrapEl().style.left,10),G=0,J=0;switch(this._resize._currentHandle){case"b":G=(I+this._resize.dd.bottomConstraint);break;case"l":J=(F+this._resize.dd.leftConstraint);break;case"r":G=(I+H);J=(F+this._resize.dd.rightConstraint);break;case"br":G=(I+this._resize.dd.bottomConstraint);J=(F+this._resize.dd.rightConstraint);break;case"tr":G=(I+H);J=(F+this._resize.dd.rightConstraint);break;}if(G){}if(J){}this.fireEvent("startResizeEvent",arguments);},_setConstraints:function(J){var H=this._resize;H.dd.resetConstraints();var N=parseInt(H.get("height"),10),F=parseInt(H.get("width"),10);if(J){N=H._cache.height;F=H._cache.width;}var L=C.getRegion(this.get("element"));var G=H.getWrapEl();var O=C.getXY(G);var I=O[0]-L.left;var M=L.right-O[0]-F;var K=O[1]-L.top;var E=L.bottom-O[1]-N;if(K<0){K=0;}H.dd.setXConstraint(I,M);H.dd.setYConstraint(K,E);return{top:K,right:M,bottom:E,left:I};},getCropCoords:function(){var E={top:parseInt(this._resize.getWrapEl().style.top,10),left:parseInt(this._resize.getWrapEl().style.left,10),height:this._resize._cache.height,width:this._resize._cache.width,image:this._image};return E;},reset:function(){this._resize.resize(null,this.get("initHeight"),this.get("initWidth"),0,0,true);this._resizeEl.style.top=this.get("initialXY")[1]+"px";this._resizeEl.style.left=this.get("initialXY")[0]+"px";this._syncBackgroundPosition();return this;},getEl:function(){return this.get("element");},getResizeEl:function(){return this._resizeEl;},getWrapEl:function(){return this._wrap;},getMaskEl:function(){return this._mask;},getResizeMaskEl:function(){return this._resizeMaskEl;},getResizeObject:function(){return this._resize;},init:function(G,E){B.superclass.init.call(this,G,E);var H=G;if(!D.isString(H)){if(H.tagName&&(H.tagName.toLowerCase()=="img")){H=C.generateId(H);}else{return false;}}else{var F=C.get(H);if(F.tagName&&F.tagName.toLowerCase()=="img"){}else{return false;}}B._instances[H]=this;this._createWrap();this._createMask();this._createResize();this._setConstraints();},initAttributes:function(E){B.superclass.initAttributes.call(this,E);this.setAttributeConfig("initialXY",{writeOnce:true,validator:YAHOO.lang.isArray,value:E.initialXY||[10,10]});this.setAttributeConfig("keyTick",{validator:YAHOO.lang.isNumber,value:E.keyTick||1});this.setAttributeConfig("shiftKeyTick",{validator:YAHOO.lang.isNumber,value:E.shiftKeyTick||10});this.setAttributeConfig("useKeys",{validator:YAHOO.lang.isBoolean,value:((E.useKeys===false)?false:true)});this.setAttributeConfig("status",{validator:YAHOO.lang.isBoolean,value:((E.status===false)?false:true),method:function(F){if(this._resize){this._resize.set("status",F);}}});this.setAttributeConfig("minHeight",{validator:YAHOO.lang.isNumber,value:E.minHeight||50,method:function(F){if(this._resize){this._resize.set("minHeight",F);}}});this.setAttributeConfig("minWidth",{validator:YAHOO.lang.isNumber,value:E.minWidth||50,method:function(F){if(this._resize){this._resize.set("minWidth",F);}}});this.setAttributeConfig("ratio",{validator:YAHOO.lang.isBoolean,value:E.ratio||false,method:function(F){if(this._resize){this._resize.set("ratio",F);}}});this.setAttributeConfig("autoRatio",{validator:YAHOO.lang.isBoolean,value:((E.autoRatio===false)?false:true),method:function(F){if(this._resize){this._resize.set("autoRatio",F);}}});this.setAttributeConfig("initHeight",{writeOnce:true,validator:YAHOO.lang.isNumber,value:E.initHeight||(this.get("element").height/4)});this.setAttributeConfig("initWidth",{validator:YAHOO.lang.isNumber,writeOnce:true,value:E.initWidth||(this.get("element").width/4)});},destroy:function(){this._resize.destroy();this._resizeEl.parentNode.removeChild(this._resizeEl);this._mask.parentNode.removeChild(this._mask);A.purgeElement(this._wrap);this._wrap.parentNode.replaceChild(this.get("element"),this._wrap);for(var E in this){if(D.hasOwnProperty(this,E)){this[E]=null;}}},toString:function(){if(this.get){return"ImageCropper (#"+this.get("id")+")";}return"Image Cropper";}});YAHOO.widget.ImageCropper=B;})();YAHOO.register("imagecropper",YAHOO.widget.ImageCropper,{version:"2.8.0r4",build:"2449"});
\ No newline at end of file
diff --git a/koha-tmpl/intranet-tmpl/prog/en/lib/yui/imagecropper/imagecropper.js b/koha-tmpl/intranet-tmpl/prog/en/lib/yui/imagecropper/imagecropper.js
deleted file mode 100644 (file)
index f194b96..0000000
+++ /dev/null
@@ -1,889 +0,0 @@
-/*
-Copyright (c) 2009, Yahoo! Inc. All rights reserved.
-Code licensed under the BSD License:
-http://developer.yahoo.net/yui/license.txt
-version: 2.8.0r4
-*/
-/**
- * @description <p>Creates a Image Cropper control.</p>
- * @namespace YAHOO.widget
- * @requires yahoo, dom, dragdrop, element, event, resize
- * @module imagecropper
- * @beta
- */
-(function() {
-var Dom = YAHOO.util.Dom,
-    Event = YAHOO.util.Event,
-    Lang = YAHOO.lang;
-
-    /**
-     * @constructor
-     * @class ImageCropper
-     * @description <p>Creates a Image Cropper control.</p>
-     * @extends YAHOO.util.Element
-     * @param {String/HTMLElement} el The image element to make croppable.
-     * @param {Object} attrs Object liternal containing configuration parameters.
-    */
-    var Crop = function(el, config) {
-        var oConfig = {
-            element: el,
-            attributes: config || {}
-        };
-
-        Crop.superclass.constructor.call(this, oConfig.element, oConfig.attributes);    
-    };
-
-    /**
-    * @private
-    * @static
-    * @property _instances
-    * @description Internal hash table for all ImageCropper instances
-    * @type Object
-    */ 
-    Crop._instances = {};
-    /**
-    * @static
-    * @method getCropperById 
-    * @description Get's an ImageCropper object by the HTML id of the image associated with the ImageCropper object.
-    * @return {Object} The ImageCropper Object
-    */ 
-    Crop.getCropperById = function(id) {
-        if (Crop._instances[id]) {
-            return Crop._instances[id];
-        }
-        return false;
-    };
-
-    YAHOO.extend(Crop, YAHOO.util.Element, {
-        /**
-        * @private
-        * @property CSS_MAIN
-        * @description The CSS class used to wrap the element 
-        * @type String
-        */
-        CSS_MAIN: 'yui-crop',
-        /**
-        * @private
-        * @property CSS_MASK
-        * @description The CSS class for the mask element
-        * @type String
-        */
-        CSS_MASK: 'yui-crop-mask',
-        /**
-        * @private
-        * @property CSS_RESIZE_MASK
-        * @description The CSS class for the mask inside the resize element
-        * @type String
-        */
-        CSS_RESIZE_MASK: 'yui-crop-resize-mask',
-
-        /**
-        * @private
-        * @property _image
-        * @description The url of the image we are cropping
-        * @type String
-        */
-        _image: null,
-        /**
-        * @private
-        * @property _active
-        * @description Flag to determine if the crop region is active
-        * @type Boolean
-        */
-        _active: null,
-        /**
-        * @private
-        * @property _resize
-        * @description A reference to the Resize Utility used in this Cropper Instance
-        * @type Object
-        */
-        _resize: null,
-        /**
-        * @private
-        * @property _resizeEl
-        * @description The HTML Element used to create the Resize Oject
-        * @type HTMLElement
-        */
-        _resizeEl: null,
-        /**
-        * @private
-        * @property _resizeMaskEl
-        * @description The HTML Element used to create the Resize mask
-        * @type HTMLElement
-        */
-        _resizeMaskEl: null,
-        /**
-        * @private
-        * @property _wrap
-        * @description The HTML Element created to wrap the image
-        * @type HTMLElement
-        */
-        _wrap: null,
-        /**
-        * @private
-        * @property _mask
-        * @description The HTML Element created to "mask" the image being cropped
-        * @type HTMLElement
-        */
-        _mask: null,
-        /**
-        * @private
-        * @method _createWrap
-        * @description Creates the wrapper element used to wrap the image
-        */
-        _createWrap: function() {
-            this._wrap = document.createElement('div');
-            this._wrap.id = this.get('element').id + '_wrap';
-            this._wrap.className = this.CSS_MAIN;
-            var el = this.get('element');
-            this._wrap.style.width = el.width ? el.width + 'px' : Dom.getStyle(el, 'width');
-            this._wrap.style.height = el.height ? el.height + 'px' : Dom.getStyle(el, 'height');
-            
-            var par = this.get('element').parentNode;
-            par.replaceChild(this._wrap, this.get('element'));
-            this._wrap.appendChild(this.get('element'));
-
-            Event.on(this._wrap, 'mouseover', this._handleMouseOver, this, true);
-            Event.on(this._wrap, 'mouseout', this._handleMouseOut, this, true);
-
-            Event.on(this._wrap, 'click', function(ev) { Event.stopEvent(ev); }, this, true);
-        },
-
-        /**
-        * @private
-        * @method _createMask
-        * @description Creates the mask element used to mask the image
-        */
-        _createMask: function() {
-            this._mask = document.createElement('div');
-            this._mask.className = this.CSS_MASK;
-            this._wrap.appendChild(this._mask);
-        },
-
-        /**
-        * @private
-        * @method _createResize
-        * @description Creates the resize element and the instance of the Resize Utility
-        */
-        _createResize: function() {
-            this._resizeEl = document.createElement('div');
-            this._resizeEl.className = YAHOO.util.Resize.prototype.CSS_RESIZE;
-            this._resizeEl.style.position = 'absolute';
-            
-            this._resizeEl.innerHTML = '<div class="' + this.CSS_RESIZE_MASK + '"></div>';
-            this._resizeMaskEl = this._resizeEl.firstChild;
-            this._wrap.appendChild(this._resizeEl);
-            this._resizeEl.style.top = this.get('initialXY')[1] + 'px';
-            this._resizeEl.style.left = this.get('initialXY')[0] + 'px';
-            this._resizeMaskEl.style.height = Math.floor(this.get('initHeight')) + 'px';
-            this._resizeMaskEl.style.width = Math.floor(this.get('initWidth')) + 'px';
-
-            this._resize = new YAHOO.util.Resize(this._resizeEl, {
-                knobHandles: true,
-                handles: 'all',
-                draggable: true,
-                status: this.get('status'),
-                minWidth: this.get('minWidth'),
-                minHeight: this.get('minHeight'),
-                ratio: this.get('ratio'),
-                autoRatio: this.get('autoRatio'),
-                height: this.get('initHeight'),
-                width: this.get('initWidth')
-            });
-
-            this._setBackgroundImage(this.get('element').getAttribute('src', 2));
-            this._setBackgroundPosition(-(this.get('initialXY')[0]),  -(this.get('initialXY')[1]));
-
-            this._resize.on('startResize', this._handleStartResizeEvent, this, true);
-            this._resize.on('endResize', this._handleEndResizeEvent, this, true);
-            this._resize.on('dragEvent', this._handleDragEvent, this, true);
-            this._resize.on('beforeResize', this._handleBeforeResizeEvent, this, true);
-            this._resize.on('resize', this._handleResizeEvent, this, true);
-            this._resize.dd.on('b4StartDragEvent', this._handleB4DragEvent, this, true);
-        },
-
-        /**
-        * @private
-        * @method _handleMouseOver
-        * @description Handles the mouseover event
-        */
-        _handleMouseOver: function(ev) {
-            var evType = 'keydown';
-            if (YAHOO.env.ua.gecko || YAHOO.env.ua.opera) {
-                evType = 'keypress';
-            }
-            if (!this._active) {
-                this._active = true;
-                if (this.get('useKeys')) {
-                    Event.on(document, evType, this._handleKeyPress, this, true);
-                }
-            }
-        },
-        /**
-        * @private
-        * @method _handleMouseOut
-        * @description Handles the mouseout event
-        */
-        _handleMouseOut: function(ev) {
-            var evType = 'keydown';
-            if (YAHOO.env.ua.gecko || YAHOO.env.ua.opera) {
-                evType = 'keypress';
-            }
-            this._active = false;
-            if (this.get('useKeys')) {
-                Event.removeListener(document, evType, this._handleKeyPress);
-            }
-        },
-
-        /**
-        * @private
-        * @method _moveEl
-        * @description Moves the resize element based on the arrow keys
-        */
-        _moveEl: function(dir, inc) {
-            var t = 0, l = 0,
-                region = this._setConstraints(),
-                resize = true;
-
-            switch (dir) {
-                case 'down':
-                    t = -(inc);
-                    if ((region.bottom - inc) < 0) {
-                        resize = false;
-                        this._resizeEl.style.top = (region.top + region.bottom) + 'px';
-                    }
-                    break;
-                case 'up':
-                    t = (inc);
-                    if ((region.top - inc) < 0) {
-                        resize = false;
-                        this._resizeEl.style.top = '0px';
-                    }
-                    break;
-                case 'right':
-                    l = -(inc);
-                    if ((region.right - inc) < 0) {
-                        resize = false;
-                        this._resizeEl.style.left = (region.left + region.right) + 'px';
-                    }
-                    break;
-                case 'left':
-                    l = inc;
-                    if ((region.left - inc) < 0) {
-                        resize = false;
-                        this._resizeEl.style.left = '0px';
-                    }
-                    break;
-            }
-
-            if (resize) {
-                this._resizeEl.style.left = (parseInt(this._resizeEl.style.left, 10) - l) + 'px';
-                this._resizeEl.style.top = (parseInt(this._resizeEl.style.top, 10) - t) + 'px';
-                this.fireEvent('moveEvent', { target: 'keypress' });
-            } else {
-                this._setConstraints();
-            }
-            this._syncBackgroundPosition();
-        },
-
-        /**
-        * @private
-        * @method _handleKeyPress
-        * @description Handles the keypress event
-        */
-        _handleKeyPress: function(ev) {
-            var kc = Event.getCharCode(ev),
-                stopEvent = false,
-                inc = ((ev.shiftKey) ? this.get('shiftKeyTick') : this.get('keyTick'));
-
-            switch (kc) {
-                case 0x25: // left
-                    this._moveEl('left', inc);
-                    stopEvent = true;
-                    break;
-                case 0x26: // up
-                    this._moveEl('up', inc);
-                    stopEvent = true;
-                    break;
-                case 0x27: // right
-                    this._moveEl('right', inc);
-                    stopEvent = true;
-                    break;
-                case 0x28: // down
-                    this._moveEl('down', inc);
-                    stopEvent = true;
-                    break;
-                default:
-            }
-            if (stopEvent) {
-                Event.preventDefault(ev);
-            }
-        },
-
-        /**
-        * @private
-        * @method _handleB4DragEvent
-        * @description Handles the DragDrop b4DragEvent event
-        */
-        _handleB4DragEvent: function() {
-            this._setConstraints();
-        },
-
-        /**
-        * @private
-        * @method _handleDragEvent
-        * @description Handles the DragDrop DragEvent event
-        */
-        _handleDragEvent: function() {
-            this._syncBackgroundPosition();
-            this.fireEvent('dragEvent', arguments);
-            this.fireEvent('moveEvent', { target: 'dragevent' });
-        },
-
-        /**
-        * @private
-        * @method _handleBeforeResizeEvent
-        * @description Handles the Resize Utilitys beforeResize event
-        */
-        _handleBeforeResizeEvent: function(args) {
-            var region = Dom.getRegion(this.get('element')),
-                c = this._resize._cache,
-                ch = this._resize._currentHandle, h = 0, w = 0;
-
-            if (args.top && (args.top < region.top)) {
-                h = (c.height + c.top) - region.top;
-                Dom.setY(this._resize.getWrapEl(), region.top);
-                this._resize.getWrapEl().style.height = h + 'px';
-                this._resize._cache.height = h;
-                this._resize._cache.top = region.top;
-                this._syncBackgroundPosition();
-                return false;
-            }
-            if (args.left && (args.left < region.left)) {
-                w = (c.width + c.left) - region.left;
-                Dom.setX(this._resize.getWrapEl(), region.left);
-                this._resize._cache.left = region.left;
-                this._resize.getWrapEl().style.width = w + 'px';
-                this._resize._cache.width = w;
-                this._syncBackgroundPosition();
-                return false;
-            }
-            if (ch != 'tl' && ch != 'l' && ch != 'bl') {
-                if (c.left && args.width && ((c.left + args.width) > region.right)) {
-                    w = (region.right - c.left);
-                    Dom.setX(this._resize.getWrapEl(), (region.right - w));
-                    this._resize.getWrapEl().style.width = w + 'px';
-                    this._resize._cache.left = (region.right - w);
-                    this._resize._cache.width = w;
-                    this._syncBackgroundPosition();
-                    return false;
-                }
-            }
-            if (ch != 't' && ch != 'tr' && ch != 'tl') {
-                if (c.top && args.height && ((c.top + args.height) > region.bottom)) {
-                    h = (region.bottom - c.top);
-                    Dom.setY(this._resize.getWrapEl(), (region.bottom - h));
-                    this._resize.getWrapEl().style.height = h + 'px';
-                    this._resize._cache.height = h;
-                    this._resize._cache.top = (region.bottom - h);
-                    this._syncBackgroundPosition();
-                    return false;
-                }
-            }
-        },
-        /**
-        * @private
-        * @method _handleResizeMaskEl
-        * @description Resizes the inner mask element
-        */
-        _handleResizeMaskEl: function() {
-            var a = this._resize._cache;
-            this._resizeMaskEl.style.height = Math.floor(a.height) + 'px';
-            this._resizeMaskEl.style.width = Math.floor(a.width) + 'px';
-        },
-        /**
-        * @private
-        * @method _handleResizeEvent
-        * @param Event ev The Resize Utilitys resize event.
-        * @description Handles the Resize Utilitys Resize event
-        */
-        _handleResizeEvent: function(ev) {
-            this._setConstraints(true);
-            this._syncBackgroundPosition();
-            this.fireEvent('resizeEvent', arguments);
-            this.fireEvent('moveEvent', { target: 'resizeevent' });
-        },
-
-        /**
-        * @private
-        * @method _syncBackgroundPosition
-        * @description Syncs the packground position of the resize element with the resize elements top and left style position
-        */
-        _syncBackgroundPosition: function() {
-            this._handleResizeMaskEl();
-            this._setBackgroundPosition(-(parseInt(this._resizeEl.style.left, 10)), -(parseInt(this._resizeEl.style.top, 10)));
-        },
-
-        /**
-        * @private
-        * @method _setBackgroundPosition
-        * @param Number l The left position
-        * @param Number t The top position
-        * @description Sets the background image position to the top and left position
-        */
-        _setBackgroundPosition: function(l, t) {
-            var bl = parseInt(Dom.getStyle(this._resize.get('element'), 'borderLeftWidth'), 10);
-            var bt = parseInt(Dom.getStyle(this._resize.get('element'), 'borderTopWidth'), 10);
-            if (isNaN(bl)) {
-                bl = 0;
-            }
-            if (isNaN(bt)) {
-                bt = 0;
-            }
-            var mask = this._resize.getWrapEl().firstChild;
-            var pos = (l - bl) + 'px ' + (t - bt) + 'px';
-            this._resizeMaskEl.style.backgroundPosition = pos;
-        },
-
-        /**
-        * @private
-        * @method _setBackgroundImage
-        * @param String url The url of the image
-        * @description Sets the background image of the resize element
-        */
-        _setBackgroundImage: function(url) {
-            var mask = this._resize.getWrapEl().firstChild;
-            this._image = url;
-            mask.style.backgroundImage = 'url(' + url + '#)';
-        },
-        
-        /**
-        * @private
-        * @method _handleEndResizeEvent
-        * @description Handles the Resize Utilitys endResize event
-        */
-        _handleEndResizeEvent: function() {
-            this._setConstraints(true);
-        },
-        /**
-        * @private
-        * @method _handleStartResizeEvent
-        * @description Handles the Resize Utilitys startResize event
-        */
-        _handleStartResizeEvent: function() {
-            this._setConstraints(true);
-
-            var h = this._resize._cache.height,
-                 w = this._resize._cache.width,
-                 t = parseInt(this._resize.getWrapEl().style.top, 10),
-                 l = parseInt(this._resize.getWrapEl().style.left, 10),
-                 maxH = 0, maxW = 0;
-            switch (this._resize._currentHandle) {
-                case 'b':
-                    maxH = (h + this._resize.dd.bottomConstraint);
-                    break;
-                case 'l':
-                    maxW = (w + this._resize.dd.leftConstraint);
-                    break;
-                case 'r':
-                    maxH = (h + t);
-                    maxW = (w + this._resize.dd.rightConstraint);
-                    break;
-                 case 'br':
-                     maxH = (h + this._resize.dd.bottomConstraint);
-                     maxW = (w + this._resize.dd.rightConstraint);
-                     break;
-                 case 'tr':
-                     maxH = (h + t);
-                     maxW = (w + this._resize.dd.rightConstraint);
-                     break;
-
-             }
-            
-             if (maxH) {
-                 //this._resize.set('maxHeight', maxH);
-             }
-             if (maxW) {
-                 //this._resize.set('maxWidth', maxW);
-             }
-
-            this.fireEvent('startResizeEvent', arguments);
-        },
-        
-        /**
-        * @private
-        * @method _setConstraints
-        * @param Boolean inside Used when called from inside a resize event, false by default (dragging)
-        * @description Set the DragDrop constraints to keep the element inside the crop area.
-        * @return {Object} Object containing Top, Right, Bottom and Left constraints
-        */
-        _setConstraints: function(inside) {
-            var resize = this._resize;
-            resize.dd.resetConstraints();
-            var height = parseInt(resize.get('height'), 10),
-                width = parseInt(resize.get('width'), 10);
-            if (inside) {
-                //Called from inside the resize callback
-                height = resize._cache.height;
-                width = resize._cache.width;
-            }
-
-            //Get the top, right, bottom and left positions
-            var region = Dom.getRegion(this.get('element'));
-            //Get the element we are working on
-            var el = resize.getWrapEl();
-
-            //Get the xy position of it
-            var xy = Dom.getXY(el);
-
-            //Set left to x minus left
-            var left = xy[0] - region.left;
-
-            //Set right to right minus x minus width
-            var right = region.right - xy[0] - width;
-
-            //Set top to y minus top
-            var top = xy[1] - region.top;
-
-            //Set bottom to bottom minus y minus height
-            var bottom = region.bottom - xy[1] - height;
-
-            if (top < 0) {
-                top = 0;
-            }
-            
-            resize.dd.setXConstraint(left, right); 
-            resize.dd.setYConstraint(top, bottom);
-
-            return {
-                top: top,
-                right: right,
-                bottom: bottom,
-                left: left
-            };
-
-            
-            
-        },
-        /**
-        * @method getCropCoords
-        * @description Returns the coordinates needed to crop the image
-        * @return {Object} The top, left, height, width and image url of the image being cropped
-        */
-        getCropCoords: function() {
-            var coords = {
-                top: parseInt(this._resize.getWrapEl().style.top, 10),
-                left: parseInt(this._resize.getWrapEl().style.left, 10),
-                height: this._resize._cache.height,
-                width: this._resize._cache.width,
-                image: this._image
-            };
-            return coords;
-        },
-        /**
-        * @method reset
-        * @description Resets the crop element back to it's original position
-        * @return {<a href="YAHOO.widget.ImageCropper.html">YAHOO.widget.ImageCropper</a>} The ImageCropper instance
-        */
-        reset: function() {
-            this._resize.resize(null, this.get('initHeight'), this.get('initWidth'), 0, 0, true);
-            this._resizeEl.style.top = this.get('initialXY')[1] + 'px';
-            this._resizeEl.style.left = this.get('initialXY')[0] + 'px';
-            this._syncBackgroundPosition();
-            return this;
-        },
-
-        /**
-        * @method getEl
-        * @description Get the HTML reference for the image element.
-        * @return {HTMLElement} The image element
-        */      
-        getEl: function() {
-            return this.get('element');
-        },
-        /**
-        * @method getResizeEl
-        * @description Get the HTML reference for the resize element.
-        * @return {HTMLElement} The resize element
-        */      
-        getResizeEl: function() {
-            return this._resizeEl;
-        },
-        /**
-        * @method getWrapEl
-        * @description Get the HTML reference for the wrap element.
-        * @return {HTMLElement} The wrap element
-        */      
-        getWrapEl: function() {
-            return this._wrap;
-        },
-
-        /**
-        * @method getMaskEl
-        * @description Get the HTML reference for the mask element.
-        * @return {HTMLElement} The mask element
-        */      
-        getMaskEl: function() {
-            return this._mask;
-        },
-
-        /**
-        * @method getResizeMaskEl
-        * @description Get the HTML reference for the resizable object's mask element.
-        * @return {HTMLElement} The resize objects mask element.
-        */      
-        getResizeMaskEl: function() {
-            return this._resizeMaskEl;
-        },
-
-        /**
-        * @method getResizeObject
-        * @description Get the Resize Utility object.
-        * @return {<a href="YAHOO.util.Resize.html">YAHOO.util.Resize</a>} The Resize instance
-        */      
-        getResizeObject: function() {
-            return this._resize;
-        },
-
-        /** 
-        * @private
-        * @method init
-        * @description The ImageCropper class's initialization method
-        */        
-        init: function(p_oElement, p_oAttributes) {
-            Crop.superclass.init.call(this, p_oElement, p_oAttributes);
-
-            var id = p_oElement;
-
-            if (!Lang.isString(id)) {
-                if (id.tagName && (id.tagName.toLowerCase() == 'img')) {
-                    id = Dom.generateId(id);                    
-                } else {
-                    return false;
-                }
-            } else {
-                var el = Dom.get(id);
-                if (el.tagName && el.tagName.toLowerCase() == 'img') {
-                    //All good
-                } else {
-                    return false;
-                }
-            }
-            
-
-
-            Crop._instances[id] = this;
-            this._createWrap();
-            this._createMask();
-            this._createResize();
-            this._setConstraints();
-
-        },
-        /**
-        * @private
-        * @method initAttributes
-        * @description Initializes all of the configuration attributes used to create a croppable element.
-        * @param {Object} attr Object literal specifying a set of 
-        * configuration attributes used to create the widget.
-        */      
-
-        initAttributes: function(attr) {
-            Crop.superclass.initAttributes.call(this, attr);
-
-            /**
-            * @attribute initialXY
-            * @description Array of the XY position that we need to set the crop element to when we build it. Defaults to [10, 10]
-            * @type Array
-            */
-            this.setAttributeConfig('initialXY', {
-                writeOnce: true,
-                validator: YAHOO.lang.isArray,
-                value: attr.initialXY || [10, 10]
-            });
-            /**
-            * @attribute keyTick
-            * @description The pixel tick for the arrow keys, defaults to 1
-            * @type Number
-            */
-            this.setAttributeConfig('keyTick', {
-                validator: YAHOO.lang.isNumber,
-                value: attr.keyTick || 1
-            });
-
-            /**
-            * @attribute shiftKeyTick
-            * @description The pixel tick for shift + the arrow keys, defaults to 10
-            * @type Number
-            */
-            this.setAttributeConfig('shiftKeyTick', {
-                validator: YAHOO.lang.isNumber,
-                value: attr.shiftKeyTick || 10
-            });
-
-            /**
-            * @attribute useKeys
-            * @description Should we use the Arrow keys to position the crop element, defaults to true
-            * @type Boolean
-            */
-            this.setAttributeConfig('useKeys', {
-                validator: YAHOO.lang.isBoolean,
-                value: ((attr.useKeys === false) ? false : true)
-            });
-
-            /**
-            * @attribute status
-            * @description Show the Resize Utility status, defaults to true
-            * @type Boolean
-            */
-            this.setAttributeConfig('status', {
-                validator: YAHOO.lang.isBoolean,
-                value: ((attr.status === false) ? false : true),
-                method: function(status) {
-                    if (this._resize) {
-                        this._resize.set('status', status);
-                    }
-                }
-            });
-
-            /**
-            * @attribute minHeight
-            * @description MinHeight of the crop area, default 50
-            * @type Number
-            */
-            this.setAttributeConfig('minHeight', {
-                validator: YAHOO.lang.isNumber,
-                value: attr.minHeight || 50,
-                method: function(h) {
-                    if (this._resize) {
-                        this._resize.set('minHeight', h);
-                    }
-                }
-            });
-
-            /**
-            * @attribute minWidth
-            * @description MinWidth of the crop area, default 50.
-            * @type Number
-            */
-            this.setAttributeConfig('minWidth', {
-                validator: YAHOO.lang.isNumber,
-                value: attr.minWidth || 50,
-                method: function(w) {
-                    if (this._resize) {
-                        this._resize.set('minWidth', w);
-                    }
-                }
-            });
-
-            /**
-            * @attribute ratio
-            * @description Set the ratio config option of the Resize Utlility, default false
-            * @type Boolean
-            */
-            this.setAttributeConfig('ratio', {
-                validator: YAHOO.lang.isBoolean,
-                value: attr.ratio || false,
-                method: function(r) {
-                    if (this._resize) {
-                        this._resize.set('ratio', r);
-                    }
-                }
-            });
-
-            /**
-            * @attribute ratio
-            * @description Set the autoRatio config option of the Resize Utlility, default true
-            * @type Boolean
-            */
-            this.setAttributeConfig('autoRatio', {
-                validator: YAHOO.lang.isBoolean,
-                value: ((attr.autoRatio === false) ? false : true),
-                method: function(a) {
-                    if (this._resize) {
-                        this._resize.set('autoRatio', a);
-                    }
-                }
-            });
-
-            /**
-            * @attribute initHeight
-            * @description Set the initlal height of the crop area, defaults to 1/4 of the image height
-            * @type Number
-            */
-            this.setAttributeConfig('initHeight', {
-                writeOnce: true,
-                validator: YAHOO.lang.isNumber,
-                value: attr.initHeight || (this.get('element').height / 4)
-            });
-
-            /**
-            * @attribute initWidth
-            * @description Set the initlal width of the crop area, defaults to 1/4 of the image width
-            * @type Number
-            */
-            this.setAttributeConfig('initWidth', {
-                validator: YAHOO.lang.isNumber,
-                writeOnce: true,
-                value: attr.initWidth || (this.get('element').width / 4)
-            });
-
-        },
-        /**
-        * @method destroy
-        * @description Destroys the ImageCropper object and all of it's elements & listeners.
-        */        
-        destroy: function() {
-            this._resize.destroy();
-            this._resizeEl.parentNode.removeChild(this._resizeEl);
-            this._mask.parentNode.removeChild(this._mask);
-            Event.purgeElement(this._wrap);
-            this._wrap.parentNode.replaceChild(this.get('element'), this._wrap);
-            
-            //Brutal Object Destroy
-            for (var i in this) {
-                if (Lang.hasOwnProperty(this, i)) {
-                    this[i] = null;
-                }
-            }
-                       
-        },
-        /**
-        * @method toString
-        * @description Returns a string representing the ImageCropper Object.
-        * @return {String}
-        */        
-        toString: function() {
-            if (this.get) {
-                return 'ImageCropper (#' + this.get('id') + ')';
-            }
-            return 'Image Cropper';
-        }
-    });
-
-    YAHOO.widget.ImageCropper = Crop;
-
-/**
-* @event dragEvent
-* @description Fires when the DragDrop dragEvent
-* @type YAHOO.util.CustomEvent
-*/
-/**
-* @event startResizeEvent
-* @description Fires when when a resize action is started.
-* @type YAHOO.util.CustomEvent
-*/
-/**
-* @event resizeEvent
-* @description Fires on every element resize.
-* @type YAHOO.util.CustomEvent
-*/
-/**
-* @event moveEvent
-* @description Fires on every element move. Inside these methods: _handleKeyPress, _handleDragEvent, _handleResizeEvent
-* @type YAHOO.util.CustomEvent
-*/
-
-})();
-
-YAHOO.register("imagecropper", YAHOO.widget.ImageCropper, {version: "2.8.0r4", build: "2449"});
diff --git a/koha-tmpl/intranet-tmpl/prog/en/lib/yui/imageloader/imageloader-debug.js b/koha-tmpl/intranet-tmpl/prog/en/lib/yui/imageloader/imageloader-debug.js
deleted file mode 100644 (file)
index 28bb682..0000000
+++ /dev/null
@@ -1,487 +0,0 @@
-/*
-Copyright (c) 2009, Yahoo! Inc. All rights reserved.
-Code licensed under the BSD License:
-http://developer.yahoo.net/yui/license.txt
-version: 2.8.0r4
-*/
-/**
- * The ImageLoader Utility is a framework to dynamically load images according to certain triggers,
- * enabling faster load times and a more responsive UI.
- *
- * @module imageloader
- * @namespace YAHOO.util
- * @requires yahoo, dom, event
- */
-
-if (typeof(YAHOO.util.ImageLoader) == 'undefined') {
-       YAHOO.util.ImageLoader = {};
-}
-
-/**
- * A group for images. A group can have one time limit and a series of triggers. Thus the images belonging to this group must share these constraints.
- * @class YAHOO.util.ImageLoader.group
- * @requires YAHOO.util.Dom
- * @requires YAHOO.util.Event
- * @constructor
- * @param {String|HTMLElement} trigEl  The HTML element id or reference to assign the trigger event to. Can be null for no trigger
- * @param {String}     trigAct The type of event to assign to trigEl. Can be null for no trigger
- * @param {Number}     timeout Timeout (time limit) length, in seconds. Can be undefined, or <= 0, for no time limit
- */
-YAHOO.util.ImageLoader.group = function(trigEl, trigAct, timeout) {
-       /**
-        * Name for the group. Only used to identify the group in logging statements
-        * @property name
-        * @type String
-        */
-       this.name = 'unnamed';
-       
-       /**
-        * Collection of images registered with this group
-        * @property _imgObjs
-        * @private
-        * @type Object
-        */
-       this._imgObjs = {};
-       
-       /**
-        * Timeout (time limit) length, in seconds
-        * @property timeoutLen
-        * @type Number
-        */
-       this.timeoutLen = timeout;
-       
-       /**
-        * Timeout object to keep a handle on the time limit
-        * @property _timeout
-        * @private
-        * @type Object
-        */
-       this._timeout = null;
-       
-       /**
-        * Collection of triggers for this group.
-        * Keeps track of each trigger's element, event, and event-listener-callback "fetch" function
-        * @property _triggers
-        * @private
-        * @type Array
-        */
-       this._triggers = [];
-
-       /**
-        * Collection of custom-event triggers for this group.
-        * Keeps track of each trigger's event object and event-listener-callback "fetch" function
-        * @property _customTriggers
-        * @private
-        * @type Array
-        */
-       this._customTriggers = [];
-
-       /**
-        * Flag to check if images are above the fold. If foldConditional is true, the group will check each of its image locations at page load. If any part of the image is within the client viewport, the image is displayed immediately
-        * @property foldConditional
-        * @type Boolean
-        */
-       this.foldConditional = false;
-
-       /**
-        * Class name that will identify images belonging to the group. This class name will be removed from each element in order to fetch images.
-        * This class should have, in its CSS style definition, "background:none !important;"
-        * @property className
-        * @type String
-        */
-       this.className = null;
-
-       /**
-        * HTML elements having the class name that is associated with this group
-        * Elements are stored during the _foldCheck function and reused later during the fetch function. Gives a slight performance improvement when className and foldConditional are both used
-        * @property _classImageEls
-        * @private
-        * @type Array
-        */
-       this._classImageEls = null;
-
-       // add a listener to set the time limit in the onload
-       YAHOO.util.Event.addListener(window, 'load', this._onloadTasks, this, true);
-       // add the trigger
-       this.addTrigger(trigEl, trigAct);
-
-};
-
-/**
- * Adds a trigger to the group. Call this with the same style as YAHOO.util.Event.addListener
- * @method addTrigger
- * @param {String|HTMLElement} trigEl  The HTML element id or reference to assign the trigger event to
- * @param {String} trigAct The type of event to assign to trigEl
- */
-YAHOO.util.ImageLoader.group.prototype.addTrigger = function(trigEl, trigAct) {
-       if (! trigEl || ! trigAct) {
-               return;
-       }
-       /* Need to wrap the fetch function. Event Util can't distinguish prototyped functions of different instantiations
-        *   Leads to this scenario: groupA and groupZ both have window-scroll triggers. groupZ also has a 2-sec timeout (groupA has no timeout).
-        *   groupZ's timeout fires; we remove the triggers. The removeListener call finds the first window-scroll event with Y.u.IL.p.fetch, which is groupA's. 
-        *   groupA's trigger is removed and never fires, leaving images unfetched
-        */
-       var wrappedFetch = function() {
-               this.fetch();
-       };
-       this._triggers.push([trigEl, trigAct, wrappedFetch]);
-       YAHOO.util.Event.addListener(trigEl, trigAct, wrappedFetch, this, true);
-};
-
-/**
- * Adds a custom event trigger to the group.
- * @method addCustomTrigger
- * @param {Object} event A YAHOO.util.CustomEvent object
- */
-YAHOO.util.ImageLoader.group.prototype.addCustomTrigger = function(event) {
-       // make sure we're dealing with a CustomEvent object
-       if (! event || ! event instanceof YAHOO.util.CustomEvent) {
-               return;
-       }
-
-       // see comment in addTrigger()
-       var wrappedFetch = function() {
-               this.fetch();
-       };
-       this._customTriggers.push([event, wrappedFetch]);
-       event.subscribe(wrappedFetch, this, true);
-};
-
-/**
- * Setup to do in the window's onload
- * Initiates time limit for group; executes the fold check for the images
- * @method _onloadTasks
- * @private
- */
-YAHOO.util.ImageLoader.group.prototype._onloadTasks = function() {
-       if (this.timeoutLen && typeof(this.timeoutLen) == 'number' && this.timeoutLen > 0) {
-               this._timeout = setTimeout(this._getFetchTimeout(), this.timeoutLen * 1000);
-       }
-
-       if (this.foldConditional) {
-               this._foldCheck();
-       }
-};
-
-/**
- * Returns the group's fetch method, with the proper closure, for use with setTimeout
- * @method _getFetchTimeout
- * @return {Function}  group's fetch method
- * @private
- */
-YAHOO.util.ImageLoader.group.prototype._getFetchTimeout = function() {
-       var self = this;
-       return function() { self.fetch(); };
-};
-
-/**
- * Registers a background image with the group
- * @method registerBgImage
- * @param {String}     domId   HTML DOM id of the image element
- * @param {String}     url     URL for the image
- * @return {Object}    bgImgObj that was registered, for modifying any attributes in the object
- */
-YAHOO.util.ImageLoader.group.prototype.registerBgImage = function(domId, url) {
-       this._imgObjs[domId] = new YAHOO.util.ImageLoader.bgImgObj(domId, url);
-       return this._imgObjs[domId];
-};
-/**
- * Registers a src image with the group
- * @method registerSrcImage
- * @param {String}     domId   HTML DOM id of the image element
- * @param {String}     url     URL for the image
- * @param {Int}        width   pixel width of the image - defaults to image's natural size
- * @param {Int}        height  pixel height of the image - defaults to image's natural size
- * @return {Object}    srcImgObj that was registered, for modifying any attributes in the object
- */
-YAHOO.util.ImageLoader.group.prototype.registerSrcImage = function(domId, url, width, height) {
-       this._imgObjs[domId] = new YAHOO.util.ImageLoader.srcImgObj(domId, url, width, height);
-       return this._imgObjs[domId];
-};
-/**
- * Registers an alpha-channel-type png background image with the group
- * @method registerPngBgImage
- * @param {String}     domId   HTML DOM id of the image element
- * @param {String}     url     URL for the image
- * @param {Object}  ailProps The AlphaImageLoader properties to be set for the image
- *                    Valid properties are 'sizingMethod' and 'enabled'
- * @return {Object}    pngBgImgObj that was registered, for modifying any attributes in the object
- */
-YAHOO.util.ImageLoader.group.prototype.registerPngBgImage = function(domId, url, ailProps) {
-       this._imgObjs[domId] = new YAHOO.util.ImageLoader.pngBgImgObj(domId, url, ailProps);
-       return this._imgObjs[domId];
-};
-
-/**
- * Displays the images in the group
- * @method fetch
- */
-YAHOO.util.ImageLoader.group.prototype.fetch = function() {
-       YAHOO.log('Fetching images in group: "' + this.name + '".', 'info', 'imageloader');
-
-       clearTimeout(this._timeout);
-       // remove all listeners
-       for (var i=0, len = this._triggers.length; i < len; i++) {
-               YAHOO.util.Event.removeListener(this._triggers[i][0], this._triggers[i][1], this._triggers[i][2]);
-       }
-       // remove custom event subscriptions
-       for (var i=0, len = this._customTriggers.length; i < len; i++) {
-               this._customTriggers[i][0].unsubscribe(this._customTriggers[i][1], this);
-       }
-
-       // fetch whatever we need to by className
-       this._fetchByClass();
-
-       // fetch registered images
-       for (var id in this._imgObjs) {
-               if (YAHOO.lang.hasOwnProperty(this._imgObjs, id)) {
-                       this._imgObjs[id].fetch();
-               }
-       }
-};
-
-/**
- * Checks the position of each image in the group. If any part of the image is within the client viewport, shows the image immediately.
- * @method _foldCheck
- * @private
- */
-YAHOO.util.ImageLoader.group.prototype._foldCheck = function() {
-       YAHOO.log('Checking for images above the fold in group: "' + this.name + '"', 'info', 'imageloader');
-       var scrollTop = (document.compatMode != 'CSS1Compat') ? document.body.scrollTop : document.documentElement.scrollTop;
-       var viewHeight = YAHOO.util.Dom.getViewportHeight();
-       var hLimit = scrollTop + viewHeight;
-       var scrollLeft = (document.compatMode != 'CSS1Compat') ? document.body.scrollLeft : document.documentElement.scrollLeft;
-       var viewWidth = YAHOO.util.Dom.getViewportWidth();
-       var wLimit = scrollLeft + viewWidth;
-       for (var id in this._imgObjs) {
-               if (YAHOO.lang.hasOwnProperty(this._imgObjs, id)) {
-                       var elPos = YAHOO.util.Dom.getXY(this._imgObjs[id].domId);
-                       if (elPos[1] < hLimit && elPos[0] < wLimit) {
-                               YAHOO.log('Image with id "' + this._imgObjs[id].domId + '" is above the fold. Fetching image.', 'info', 'imageloader');
-                               this._imgObjs[id].fetch();
-                       }
-               }
-       }
-       // and by class
-       if (this.className) {
-               this._classImageEls = YAHOO.util.Dom.getElementsByClassName(this.className);
-               for (var i=0, len = this._classImageEls.length; i < len; i++) {
-                       var elPos = YAHOO.util.Dom.getXY(this._classImageEls[i]);
-                       if (elPos[1] < hLimit && elPos[0] < wLimit) {
-                               YAHOO.log('Image with id "' + this._classImageEls[i].id + '" is above the fold. Fetching image. (Image registered by class name with the group - may not have an id.)', 'info', 'imageloader');
-                               YAHOO.util.Dom.removeClass(this._classImageEls[i], this.className);
-                       }
-               }
-       }
-};
-
-/**
- * Finds all elements in the Dom with the class name specified in the group. Removes the class from the element in order to let the style definitions trigger the image fetching
- * @method _fetchByClass
- * @private
- */
-YAHOO.util.ImageLoader.group.prototype._fetchByClass = function() {
-       if (! this.className) {
-               return;
-       }
-
-       YAHOO.log('Fetching all images with class "' + this.className + '" in group "' + this.name + '".', 'info', 'imageloader');
-       // this._classImageEls may have been set during _foldCheck
-       if (this._classImageEls === null) {
-               this._classImageEls = YAHOO.util.Dom.getElementsByClassName(this.className);
-       }
-       YAHOO.util.Dom.removeClass(this._classImageEls, this.className);
-};
-
-
-/**
- * Base class for image objects to be registered with the groups
- * @class YAHOO.util.ImageLoader.imgObj
- * @constructor
- * @param {String}     domId   HTML DOM id of the image element
- * @param {String}     url     URL for the image
- */
-YAHOO.util.ImageLoader.imgObj = function(domId, url) {
-       /**
-        * HTML DOM id of the image element
-        * @property domId
-        * @type String
-        */
-       this.domId = domId;
-
-       /**
-        * URL for the image
-        * @property url
-        * @type String
-        */
-       this.url = url;
-
-       /**
-        * Pixel width of the image. Will be set as a "width" attribute after the image is fetched.
-        * Detaults to the natural width of the image.
-        * Only appropriate with src images
-        * @property width
-        * @type Int
-        */
-       this.width = null;
-
-       /**
-        * Pixel height of the image. Will be set as a "height" attribute after the image is fetched.
-        * Detaults to the natural height of the image.
-        * Only appropriate with src images
-        * @property height
-        * @type Int
-        */
-       this.height = null;
-
-       /**
-        * Whether the style.visibility should be set to "visible" after the image is fetched.
-        * Used when setting src images as visibility:hidden prior to image fetching
-        * @property setVisible
-        * @type Boolean
-        */
-       this.setVisible = false;
-
-       /**
-        * Whether the image has already been fetched. In the case of a foldCondional group, keeps track for when the trigger is fired so images aren't fetched twice
-        * @property _fetched
-        * @type Boolean
-        * @private
-        */
-       this._fetched = false;
-};
-
-/**
- * Displays the image; puts the URL into the DOM
- * @method fetch
- */
-YAHOO.util.ImageLoader.imgObj.prototype.fetch = function() {
-       if (this._fetched) {
-               return;
-       }
-       var el = document.getElementById(this.domId);
-       if (! el) {
-               return;
-       }
-       YAHOO.log('Fetching image with id "' + this.domId + '".', 'info', 'imageloader');
-       this._applyUrl(el);
-
-       if (this.setVisible) {
-               el.style.visibility = 'visible';
-       }
-       if (this.width) {
-               el.width = this.width;
-       }
-       if (this.height) {
-               el.height = this.height;
-       }
-       this._fetched = true;
-};
-
-/**
- * Inserts the image URL into the DOM so that the image is displayed.
- * Must be overridden by child class
- * @method _applyUrl
- * @param {Object}     el      HTML DOM element
- * @private
- */
-YAHOO.util.ImageLoader.imgObj.prototype._applyUrl = function(el) {
-};
-
-/**
- * Background image object. A background image is one whose URL is specified by "background-image" in the element's style
- * @class YAHOO.util.ImageLoader.bgImgObj
- * @constructor
- * @extends YAHOO.util.ImageLoader.imgObj
- * @param {String}     domId   HTML DOM id of the image element
- * @param {String}     url     URL for the image
- */
-YAHOO.util.ImageLoader.bgImgObj = function(domId, url) {
-       YAHOO.util.ImageLoader.bgImgObj.superclass.constructor.call(this, domId, url);
-};
-
-YAHOO.lang.extend(YAHOO.util.ImageLoader.bgImgObj, YAHOO.util.ImageLoader.imgObj);
-
-/**
- * Inserts the image URL into the DOM so that the image is displayed.
- * Sets style.backgroundImage
- * @method _applyUrl
- * @param {Object}     el      HTML DOM element
- * @private
- */
-YAHOO.util.ImageLoader.bgImgObj.prototype._applyUrl = function(el) {
-       el.style.backgroundImage = "url('" + this.url + "')";
-};
-
-/**
- * Source image object. A source image is one whose URL is specified by a src attribute in the DOM element
- * @class YAHOO.util.ImageLoader.srcImgObj
- * @constructor
- * @extends YAHOO.util.ImageLoader.imgObj
- * @param {String}     domId   HTML DOM id of the image element
- * @param {String}     url     URL for the image
- * @param {Int}        width   pixel width of the image - defaults to image's natural size
- * @param {Int}        height  pixel height of the image - defaults to image's natural size
- */
-YAHOO.util.ImageLoader.srcImgObj = function(domId, url, width, height) {
-       YAHOO.util.ImageLoader.srcImgObj.superclass.constructor.call(this, domId, url);
-       this.width = width;
-       this.height = height;
-};
-
-YAHOO.lang.extend(YAHOO.util.ImageLoader.srcImgObj, YAHOO.util.ImageLoader.imgObj);
-
-/**
- * Inserts the image URL into the DOM so that the image is displayed.
- * Sets src
- * @method _applyUrl
- * @param {Object}     el      HTML DOM element
- * @private
- */
-YAHOO.util.ImageLoader.srcImgObj.prototype._applyUrl = function(el) {
-       el.src = this.url;
-};
-
-/**
- * PNG background image object. A PNG background image is one whose URL is specified through AlphaImageLoader or by "background-image" in the element's style
- * @class YAHOO.util.ImageLoader.pngBgImgObj
- * @constructor
- * @extends YAHOO.util.ImageLoader.imgObj
- * @param {String}     domId   HTML DOM id of the image element
- * @param {String}     url     URL for the image
- * @param {Object}  ailProps The AlphaImageLoader properties to be set for the image
- *                    Valid properties are 'sizingMethod' and 'enabled'
- */
-YAHOO.util.ImageLoader.pngBgImgObj = function(domId, url, ailProps) {
-       YAHOO.util.ImageLoader.pngBgImgObj.superclass.constructor.call(this, domId, url);
-
-       /**
-        * AlphaImageLoader properties to be set for the image.
-        * Valid properties are "sizingMethod" and "enabled".
-        * @property props
-        * @type Object
-        */
-       this.props = ailProps || {};
-};
-
-YAHOO.lang.extend(YAHOO.util.ImageLoader.pngBgImgObj, YAHOO.util.ImageLoader.imgObj);
-
-/**
- * Inserts the image URL into the DOM so that the image is displayed.
- * If the browser is determined to be IE6 (or older), sets the AlphaImageLoader src; otherwise sets style.backgroundImage
- * @method _applyUrl
- * @param {Object}     el      HTML DOM element
- * @private
- */
-YAHOO.util.ImageLoader.pngBgImgObj.prototype._applyUrl = function(el) {
-       if (YAHOO.env.ua.ie && YAHOO.env.ua.ie <= 6) {
-               var sizingMethod = (YAHOO.lang.isUndefined(this.props.sizingMethod)) ? 'scale' : this.props.sizingMethod;
-               var enabled = (YAHOO.lang.isUndefined(this.props.enabled)) ? 'true' : this.props.enabled;
-               el.style.filter = 'progid:DXImageTransform.Microsoft.AlphaImageLoader(src="' + this.url + '", sizingMethod="' + sizingMethod + '", enabled="' + enabled + '")';
-       }
-       else {
-               el.style.backgroundImage = "url('" + this.url + "')";
-       }
-};
-YAHOO.register("imageloader", YAHOO.util.ImageLoader, {version: "2.8.0r4", build: "2449"});
diff --git a/koha-tmpl/intranet-tmpl/prog/en/lib/yui/imageloader/imageloader-min.js b/koha-tmpl/intranet-tmpl/prog/en/lib/yui/imageloader/imageloader-min.js
deleted file mode 100644 (file)
index 5166b07..0000000
+++ /dev/null
@@ -1,7 +0,0 @@
-/*
-Copyright (c) 2009, Yahoo! Inc. All rights reserved.
-Code licensed under the BSD License:
-http://developer.yahoo.net/yui/license.txt
-version: 2.8.0r4
-*/
-if(typeof(YAHOO.util.ImageLoader)=="undefined"){YAHOO.util.ImageLoader={};}YAHOO.util.ImageLoader.group=function(A,B,C){this.name="unnamed";this._imgObjs={};this.timeoutLen=C;this._timeout=null;this._triggers=[];this._customTriggers=[];this.foldConditional=false;this.className=null;this._classImageEls=null;YAHOO.util.Event.addListener(window,"load",this._onloadTasks,this,true);this.addTrigger(A,B);};YAHOO.util.ImageLoader.group.prototype.addTrigger=function(B,C){if(!B||!C){return;}var A=function(){this.fetch();};this._triggers.push([B,C,A]);YAHOO.util.Event.addListener(B,C,A,this,true);};YAHOO.util.ImageLoader.group.prototype.addCustomTrigger=function(B){if(!B||!B instanceof YAHOO.util.CustomEvent){return;}var A=function(){this.fetch();};this._customTriggers.push([B,A]);B.subscribe(A,this,true);};YAHOO.util.ImageLoader.group.prototype._onloadTasks=function(){if(this.timeoutLen&&typeof(this.timeoutLen)=="number"&&this.timeoutLen>0){this._timeout=setTimeout(this._getFetchTimeout(),this.timeoutLen*1000);}if(this.foldConditional){this._foldCheck();}};YAHOO.util.ImageLoader.group.prototype._getFetchTimeout=function(){var A=this;return function(){A.fetch();};};YAHOO.util.ImageLoader.group.prototype.registerBgImage=function(B,A){this._imgObjs[B]=new YAHOO.util.ImageLoader.bgImgObj(B,A);return this._imgObjs[B];};YAHOO.util.ImageLoader.group.prototype.registerSrcImage=function(D,B,C,A){this._imgObjs[D]=new YAHOO.util.ImageLoader.srcImgObj(D,B,C,A);return this._imgObjs[D];};YAHOO.util.ImageLoader.group.prototype.registerPngBgImage=function(C,B,A){this._imgObjs[C]=new YAHOO.util.ImageLoader.pngBgImgObj(C,B,A);return this._imgObjs[C];};YAHOO.util.ImageLoader.group.prototype.fetch=function(){clearTimeout(this._timeout);for(var B=0,A=this._triggers.length;B<A;B++){YAHOO.util.Event.removeListener(this._triggers[B][0],this._triggers[B][1],this._triggers[B][2]);}for(var B=0,A=this._customTriggers.length;B<A;B++){this._customTriggers[B][0].unsubscribe(this._customTriggers[B][1],this);}this._fetchByClass();for(var C in this._imgObjs){if(YAHOO.lang.hasOwnProperty(this._imgObjs,C)){this._imgObjs[C].fetch();}}};YAHOO.util.ImageLoader.group.prototype._foldCheck=function(){var C=(document.compatMode!="CSS1Compat")?document.body.scrollTop:document.documentElement.scrollTop;var D=YAHOO.util.Dom.getViewportHeight();var A=C+D;var E=(document.compatMode!="CSS1Compat")?document.body.scrollLeft:document.documentElement.scrollLeft;var G=YAHOO.util.Dom.getViewportWidth();var I=E+G;for(var B in this._imgObjs){if(YAHOO.lang.hasOwnProperty(this._imgObjs,B)){var J=YAHOO.util.Dom.getXY(this._imgObjs[B].domId);if(J[1]<A&&J[0]<I){this._imgObjs[B].fetch();}}}if(this.className){this._classImageEls=YAHOO.util.Dom.getElementsByClassName(this.className);for(var F=0,H=this._classImageEls.length;F<H;F++){var J=YAHOO.util.Dom.getXY(this._classImageEls[F]);if(J[1]<A&&J[0]<I){YAHOO.util.Dom.removeClass(this._classImageEls[F],this.className);}}}};YAHOO.util.ImageLoader.group.prototype._fetchByClass=function(){if(!this.className){return;}if(this._classImageEls===null){this._classImageEls=YAHOO.util.Dom.getElementsByClassName(this.className);}YAHOO.util.Dom.removeClass(this._classImageEls,this.className);};YAHOO.util.ImageLoader.imgObj=function(B,A){this.domId=B;this.url=A;this.width=null;this.height=null;this.setVisible=false;this._fetched=false;};YAHOO.util.ImageLoader.imgObj.prototype.fetch=function(){if(this._fetched){return;}var A=document.getElementById(this.domId);if(!A){return;}this._applyUrl(A);if(this.setVisible){A.style.visibility="visible";}if(this.width){A.width=this.width;}if(this.height){A.height=this.height;}this._fetched=true;};YAHOO.util.ImageLoader.imgObj.prototype._applyUrl=function(A){};YAHOO.util.ImageLoader.bgImgObj=function(B,A){YAHOO.util.ImageLoader.bgImgObj.superclass.constructor.call(this,B,A);};YAHOO.lang.extend(YAHOO.util.ImageLoader.bgImgObj,YAHOO.util.ImageLoader.imgObj);YAHOO.util.ImageLoader.bgImgObj.prototype._applyUrl=function(A){A.style.backgroundImage="url('"+this.url+"')";};YAHOO.util.ImageLoader.srcImgObj=function(D,B,C,A){YAHOO.util.ImageLoader.srcImgObj.superclass.constructor.call(this,D,B);this.width=C;this.height=A;};YAHOO.lang.extend(YAHOO.util.ImageLoader.srcImgObj,YAHOO.util.ImageLoader.imgObj);YAHOO.util.ImageLoader.srcImgObj.prototype._applyUrl=function(A){A.src=this.url;};YAHOO.util.ImageLoader.pngBgImgObj=function(C,B,A){YAHOO.util.ImageLoader.pngBgImgObj.superclass.constructor.call(this,C,B);this.props=A||{};};YAHOO.lang.extend(YAHOO.util.ImageLoader.pngBgImgObj,YAHOO.util.ImageLoader.imgObj);YAHOO.util.ImageLoader.pngBgImgObj.prototype._applyUrl=function(B){if(YAHOO.env.ua.ie&&YAHOO.env.ua.ie<=6){var C=(YAHOO.lang.isUndefined(this.props.sizingMethod))?"scale":this.props.sizingMethod;var A=(YAHOO.lang.isUndefined(this.props.enabled))?"true":this.props.enabled;B.style.filter='progid:DXImageTransform.Microsoft.AlphaImageLoader(src="'+this.url+'", sizingMethod="'+C+'", enabled="'+A+'")';}else{B.style.backgroundImage="url('"+this.url+"')";}};YAHOO.register("imageloader",YAHOO.util.ImageLoader,{version:"2.8.0r4",build:"2449"});
\ No newline at end of file
diff --git a/koha-tmpl/intranet-tmpl/prog/en/lib/yui/imageloader/imageloader.js b/koha-tmpl/intranet-tmpl/prog/en/lib/yui/imageloader/imageloader.js
deleted file mode 100644 (file)
index e7b2a35..0000000
+++ /dev/null
@@ -1,680 +0,0 @@
-/*
-Copyright (c) 2009, Yahoo! Inc. All rights reserved.
-Code licensed under the BSD License:
-http://developer.yahoo.net/yui/license.txt
-version: 2.8.0r4
-*/
-/**
- * The ImageLoader Utility is a framework to dynamically load images according to certain triggers,
- * enabling faster load times and a more responsive UI.
- *
- * @module imageloader
- * @namespace YAHOO.util
- * @requires yahoo, dom, event
- */
-
-if (typeof(YAHOO.util.ImageLoader) == 'undefined') {
-       YAHOO.util.ImageLoader = {};
-}
-
-/**
- * A group for images. A group can have one time limit and a series of triggers. Thus the images belonging to this group must share these constraints.
- * @class YAHOO.util.ImageLoader.group
- * @requires YAHOO.util.Dom
- * @requires YAHOO.util.Event
- * @constructor
- * @param {String|HTMLElement} trigEl  The HTML element id or reference to assign the trigger event to. Can be null for no trigger
- * @param {String}     trigAct The type of event to assign to trigEl. Can be null for no trigger
- * @param {Number}     timeout Timeout (time limit) length, in seconds. Can be undefined, or <= 0, for no time limit
- */
-YAHOO.util.ImageLoader.group = function(trigEl, trigAct, timeout) {
-       /**
-        * Name for the group. Only used to identify the group in logging statements
-        * @property name
-        * @type String
-        */
-       this.name = 'unnamed';
-       
-       /**
-        * Collection of images registered with this group
-        * @property _imgObjs
-        * @private
-        * @type Object
-        */
-       this._imgObjs = {};
-       
-       /**
-        * Timeout (time limit) length, in seconds
-        * @property timeoutLen
-        * @type Number
-        */
-       this.timeoutLen = timeout;
-       
-       /**
-        * Timeout object to keep a handle on the time limit
-        * @property _timeout
-        * @private
-        * @type Object
-        */
-       this._timeout = null;
-       
-       /**
-        * Collection of triggers for this group.
-        * Keeps track of each trigger's element, event, and event-listener-callback "fetch" function
-        * @property _triggers
-        * @private
-        * @type Array
-        */
-       this._triggers = [];
-
-       /**
-        * Collection of custom-event triggers for this group.
-        * Keeps track of each trigger's event object and event-listener-callback "fetch" function
-        * @property _customTriggers
-        * @private
-        * @type Array
-        */
-       this._customTriggers = [];
-
-       /**
-        * Flag to check if images are above the fold. If foldConditional is true, the group will check each of its image locations at page load. If any part of the image is within the client viewport, the image is displayed immediately
-        * @property foldConditional
-        * @type Boolean
-        */
-       this.foldConditional = false;
-
-       /**
-        * Class name that will identify images belonging to the group. This class name will be removed from each element in order to fetch images.
-        * This class should have, in its CSS style definition, "background:none !important;"
-        * @property className
-        * @type String
-        */
-       this.className = null;
-
-       /**
-        * HTML elements having the class name that is associated with this group
-        * Elements are stored during the _foldCheck function and reused later during the fetch function. Gives a slight performance improvement when className and foldConditional are both used
-        * @property _classImageEls
-        * @private
-        * @type Array
-        */
-       this._classImageEls = null;
-
-       // add a listener to set the time limit in the onload
-       YAHOO.util.Event.addListener(window, 'load', this._onloadTasks, this, true);
-       // add the trigger
-       this.addTrigger(trigEl, trigAct);
-
-};
-
-/**
- * Adds a trigger to the group. Call this with the same style as YAHOO.util.Event.addListener
- * @method addTrigger
- * @param {String|HTMLElement} trigEl  The HTML element id or reference to assign the trigger event to
- * @param {String} trigAct The type of event to assign to trigEl
- */
-YAHOO.util.ImageLoader.group.prototype.addTrigger = function(trigEl, trigAct) {
-       if (! trigEl || ! trigAct) {
-               return;
-       }
-       /* Need to wrap the fetch function. Event Util can't distinguish prototyped functions of different instantiations
-        *   Leads to this scenario: groupA and groupZ both have window-scroll triggers. groupZ also has a 2-sec timeout (groupA has no timeout).
-        *   groupZ's timeout fires; we remove the triggers. The removeListener call finds the first window-scroll event with Y.u.IL.p.fetch, which is groupA's. 
-        *   groupA's trigger is removed and never fires, leaving images unfetched
-        */
-       var wrappedFetch = function() {
-               this.fetch();
-       };
-       this._triggers.push([trigEl, trigAct, wrappedFetch]);
-       YAHOO.util.Event.addListener(trigEl, trigAct, wrappedFetch, this, true);
-};
-
-/**
- * Adds a custom event trigger to the group.
- * @method addCustomTrigger
- * @param {Object} event A YAHOO.util.CustomEvent object
- */
-YAHOO.util.ImageLoader.group.prototype.addCustomTrigger = function(event) {
-       // make sure we're dealing with a CustomEvent object
-       if (! event || ! event instanceof YAHOO.util.CustomEvent) {
-               return;
-       }
-
-       // see comment in addTrigger()
-       var wrappedFetch = function() {
-               this.fetch();
-       };
-       this._customTriggers.push([event, wrappedFetch]);
-       event.subscribe(wrappedFetch, this, true);
-};
-
-/**
- * Setup to do in the window's onload
- * Initiates time limit for group; executes the fold check for the images
- * @method _onloadTasks
- * @private
- */
-YAHOO.util.ImageLoader.group.prototype._onloadTasks = function() {
-       if (this.timeoutLen && typeof(this.timeoutLen) == 'number' && this.timeoutLen > 0) {
-               this._timeout = setTimeout(this._getFetchTimeout(), this.timeoutLen * 1000);
-       }
-
-       if (this.foldConditional) {
-               this._foldCheck();
-       }
-};
-
-/**
- * Returns the group's fetch method, with the proper closure, for use with setTimeout
- * @method _getFetchTimeout
- * @return {Function}  group's fetch method
- * @private
- */
-YAHOO.util.ImageLoader.group.prototype._getFetchTimeout = function() {
-       var self = this;
-       return function() { self.fetch(); };
-};
-
-/**
- * Registers a background image with the group
- * @method registerBgImage
- * @param {String}     domId   HTML DOM id of the image element
- * @param {String}     url     URL for the image
- * @return {Object}    bgImgObj that was registered, for modifying any attributes in the object
- */
-YAHOO.util.ImageLoader.group.prototype.registerBgImage = function(domId, url) {
-       this._imgObjs[domId] = new YAHOO.util.ImageLoader.bgImgObj(domId, url);
-       return this._imgObjs[domId];
-};
-/**
- * Registers a src image with the group
- * @method registerSrcImage
- * @param {String}     domId   HTML DOM id of the image element
- * @param {String}     url     URL for the image
- * @param {Int}        width   pixel width of the image - defaults to image's natural size
- * @param {Int}        height  pixel height of the image - defaults to image's natural size
- * @return {Object}    srcImgObj that was registered, for modifying any attributes in the object
- */
-YAHOO.util.ImageLoader.group.prototype.registerSrcImage = function(domId, url, width, height) {
-       this._imgObjs[domId] = new YAHOO.util.ImageLoader.srcImgObj(domId, url, width, height);
-       return this._imgObjs[domId];
-};
-/**
- * Registers an alpha-channel-type png background image with the group
- * @method registerPngBgImage
- * @param {String}     domId   HTML DOM id of the image element
- * @param {String}     url     URL for the image
- * @param {Object}  ailProps The AlphaImageLoader properties to be set for the image
- *                    Valid properties are 'sizingMethod' and 'enabled'
- * @return {Object}    pngBgImgObj that was registered, for modifying any attributes in the object
- */
-YAHOO.util.ImageLoader.group.prototype.registerPngBgImage = function(domId, url, ailProps) {
-       this._imgObjs[domId] = new YAHOO.util.ImageLoader.pngBgImgObj(domId, url, ailProps);
-       return this._imgObjs[domId];
-};
-
-/**
- * Displays the images in the group
- * @method fetch
- */
-YAHOO.util.ImageLoader.group.prototype.fetch = function() {
-
-       clearTimeout(this._timeout);
-       // remove all listeners
-       for (var i=0, len = this._triggers.length; i < len; i++) {
-               YAHOO.util.Event.removeListener(this._triggers[i][0], this._triggers[i][1], this._triggers[i][2]);
-       }
-       // remove custom event subscriptions
-       for (var i=0, len = this._customTriggers.length; i < len; i++) {
-               this._customTriggers[i][0].unsubscribe(this._customTriggers[i][1], this);
-       }
-
-       // fetch whatever we need to by className
-       this._fetchByClass();
-
-       // fetch registered images
-       for (var id in this._imgObjs) {
-               if (YAHOO.lang.hasOwnProperty(this._imgObjs, id)) {
-                       this._imgObjs[id].fetch();
-               }
-       }
-};
-
-/**
- * Checks the position of each image in the group. If any part of the image is within the client viewport, shows the image immediately.
- * @method _foldCheck
- * @private
- */
-YAHOO.util.ImageLoader.group.prototype._foldCheck = function() {
-       var scrollTop = (document.compatMode != 'CSS1Compat') ? document.body.scrollTop : document.documentElement.scrollTop;
-       var viewHeight = YAHOO.util.Dom.getViewportHeight();
-       var hLimit = scrollTop + viewHeight;
-       var scrollLeft = (document.compatMode != 'CSS1Compat') ? document.body.scrollLeft : document.documentElement.scrollLeft;
-       var viewWidth = YAHOO.util.Dom.getViewportWidth();
-       var wLimit = scrollLeft + viewWidth;
-       for (var id in this._imgObjs) {
-               if (YAHOO.lang.hasOwnProperty(this._imgObjs, id)) {
-                       var elPos = YAHOO.util.Dom.getXY(this._imgObjs[id].domId);
-                       if (elPos[1] < hLimit && elPos[0] < wLimit) {
-                               this._imgObjs[id].fetch();
-                       }
-               }
-       }
-       // and by class
-       if (this.className) {
-               this._classImageEls = YAHOO.util.Dom.getElementsByClassName(this.className);
-               for (var i=0, len = this._classImageEls.length; i < len; i++) {
-                       var elPos = YAHOO.util.Dom.getXY(this._classImageEls[i]);
-                       if (elPos[1] < hLimit && elPos[0] < wLimit) {
-                               YAHOO.util.Dom.removeClass(this._classImageEls[i], this.className);
-                       }
-               }
-       }
-};
-
-/**
- * Finds all elements in the Dom with the class name specified in the group. Removes the class from the element in order to let the style definitions trigger the image fetching
- * @method _fetchByClass
- * @private
- */
-YAHOO.util.ImageLoader.group.prototype._fetchByClass = function() {
-       if (! this.className) {
-               return;
-       }
-
-       // this._classImageEls may have been set during _foldCheck
-       if (this._classImageEls === null) {
-               this._classImageEls = YAHOO.util.Dom.getElementsByClassName(this.className);
-       }
-       YAHOO.util.Dom.removeClass(this._classImageEls, this.className);
-};
-
-
-/**
- * Base class for image objects to be registered with the groups
- * @class YAHOO.util.ImageLoader.imgObj
- * @constructor
- * @param {String}     domId   HTML DOM id of the image element
- * @param {String}     url     URL for the image
- */
-YAHOO.util.ImageLoader.imgObj = function(domId, url) {
-       /**
-        * HTML DOM id of the image element
-        * @property domId
-        * @type String
-        */
-       this.domId = domId;
-
-       /**
-        * URL for the image
-        * @property url
-        * @type String
-        */
-       this.url = url;
-
-       /**
-        * Pixel width of the image. Will be set as a "width" attribute after the image is fetched.
-        * Detaults to the natural width of the image.
-        * Only appropriate with src images
-        * @property width
-        * @type Int
-        */
-       this.width = null;
-
-       /**
-        * Pixel height of the image. Will be set as a "height" attribute after the image is fetched.
-        * Detaults to the natural height of the image.
-        * Only appropriate with src images
-        * @property height
-        * @type Int
-        */
-       this.height = null;
-
-       /**
-        * Whether the style.visibility should be set to "visible" after the image is fetched.
-        * Used when setting src images as visibility:hidden prior to image fetching
-        * @property setVisible
-        * @type Boolean
-        */
-       this.setVisible = false;
-
-       /**
-        * Whether the image has already been fetched. In the case of a foldCondional group, keeps track for when the trigger is fired so images aren't fetched twice
-        * @property _fetched
-        * @type Boolean
-        * @private
-        */
-       this._fetched = false;
-};
-
-/**
- * Displays the image; puts the URL into the DOM
- * @method fetch
- */
-YAHOO.util.ImageLoader.imgObj.prototype.fetch = function() {
-       if (this._fetched) {
-               return;
-       }
-       var el = document.getElementById(this.domId);
-       if (! el) {
-               return;
-       }
-       this._applyUrl(el);
-
-       if (this.setVisible) {
-               el.style.visibility = 'visible';
-       }
-       if (this.width) {
-               el.width = this.width;
-       }
-       if (this.height) {
-               el.height = this.height;
-       }
-       this._fetched = true;
-};
-
-/**
- * Inserts the image URL into the DOM so that the image is displayed.
- * Must be overridden by child class
- * @method _applyUrl
- * @param {Object}     el      HTML DOM element
- * @private
- */
-YAHOO.util.ImageLoader.imgObj.prototype._applyUrl = function(el) {
-};
-
-/**
- * Background image object. A background image is one whose URL is specified by "background-image" in the element's style
- * @class YAHOO.util.ImageLoader.bgImgObj
- * @constructor
- * @extends YAHOO.util.ImageLoader.imgObj
- * @param {String}     domId   HTML DOM id of the image element
- * @param {String}     url     URL for the image
- */
-YAHOO.util.ImageLoader.bgImgObj = function(domId, url) {
-       YAHOO.util.ImageLoader.bgImgObj.superclass.constructor.call(this, domId, url);
-};
-
-YAHOO.lang.extend(YAHOO.util.ImageLoader.bgImgObj, YAHOO.util.ImageLoader.imgObj);
-
-/**
- * Inserts the image URL into the DOM so that the image is displayed.
- * Sets style.backgroundImage
- * @method _applyUrl
- * @param {Object}     el      HTML DOM element
- * @private
- */
-YAHOO.util.ImageLoader.bgImgObj.prototype._applyUrl = function(el) {
-       el.style.backgroundImage = "url('" + this.url + "')";
-};
-
-/**
- * Source image object. A source image is one whose URL is specified by a src attribute in the DOM element
- * @class YAHOO.util.ImageLoader.srcImgObj
- * @constructor
- * @extends YAHOO.util.ImageLoader.imgObj
- * @param {String}     domId   HTML DOM id of the image element
- * @param {String}     url     URL for the image
- * @param {Int}        width   pixel width of the image - defaults to image's natural size
- * @param {Int}        height  pixel height of the image - defaults to image's natural size
- */
-YAHOO.util.ImageLoader.srcImgObj = function(domId, url, width, height) {
-       YAHOO.util.ImageLoader.srcImgObj.superclass.constructor.call(this, domId, url);
-       this.width = width;
-       this.height = height;
-};
-
-YAHOO.lang.extend(YAHOO.util.ImageLoader.srcImgObj, YAHOO.util.ImageLoader.imgObj);
-
-/**
- * Inserts the image URL into the DOM so that the image is displayed.
- * Sets src
- * @method _applyUrl
- * @param {Object}     el      HTML DOM element
- * @private
- */
-YAHOO.util.ImageLoader.srcImgObj.prototype._applyUrl = function(el) {
-       el.src = this.url;
-};
-
-/**
- * PNG background image object. A PNG background image is one whose URL is specified through AlphaImageLoader or by "background-image" in the element's style
- * @class YAHOO.util.ImageLoader.pngBgImgObj
- * @constructor
- * @extends YAHOO.util.ImageLoader.imgObj
- * @param {String}     domId   HTML DOM id of the image element
- * @param {String}     url     URL for the image
- * @param {Object}  ailProps The AlphaImageLoader properties to be set for the image
- *                    Valid properties are 'sizingMethod' and 'enabled'
- */
-YAHOO.util.ImageLoader.pngBgImgObj = function(domId, url, ailProps) {
-       YAHOO.util.ImageLoader.pngBgImgObj.superclass.constructor.call(this, domId, url);
-
-       /**
-        * AlphaImageLoader properties to be set for the image.
-        * Valid properties are "sizingMethod" and "enabled".
-        * @property props
-        * @type Object
-        */
-       this.props = ailProps || {};
-};
-
-YAHOO.lang.extend(YAHOO.util.ImageLoader.pngBgImgObj, YAHOO.util.ImageLoader.imgObj);
-
-/**
- * Inserts the image URL into the DOM so that the image is displayed.
- * If the browser is determined to be IE6 (or older), sets the AlphaImageLoader src; otherwise sets style.backgroundImage
- * @method _applyUrl
- * @param {Object}     el      HTML DOM element
- * @private
- */
-YAHOO.util.ImageLoader.pngBgImgObj.prototype._applyUrl = function(el) {
-       if (YAHOO.env.ua.ie && YAHOO.env.ua.ie <= 6) {
-               var sizingMethod = (YAHOO.lang.isUndefined(this.props.sizingMethod)) ? 'scale' : this.props.sizingMethod;
-               var enabled = (YAHOO.lang.isUndefined(this.props.enabled)) ? 'true' : this.props.enabled;
-               el.style.filter = 'progid:DXImageTransform.Microsoft.AlphaImageLoader(src="' + this.url + '", sizingMethod="' + sizingMethod + '", enabled="' + enabled + '")';
-       }
-       else {
-               el.style.backgroundImage = "url('" + this.url + "')";
-       }
-};
-YAHOO.register("imageloader", YAHOO.util.ImageLoader, {version: "2.8.0r4", build: "2449"});
-\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\8c¾@\1e,V"Ţѭ¡Á´¡\83tion(el) {
-};
-
-/**
- * Background image object. A background image is one whose URL is specified by "background-image" in the element's style
- * @class YAHOO.util.ImageLoader.bgImgObj
- * @constructor
- * @extends YAHOO.util.ImageLoader.imgObj
- * @param {String}     domId   HTML DOM id of the image element
- * @param {String}     url     URL for the image
- */
-YAHOO.util.ImageLoader.bgImgObj = function(domId, url) {
-       YAHOO.util.ImageLoader.bgImgObj.superclass.constructor.call(this, domId, url);
-};
-
-YAHOO.lang.extend(YAHOO.util.ImageLoader.bgImgObj, YAHOO.util.ImageLoader.imgObj);
-
-/**
- * Inserts the image URL into the DOM so that the image is displayed.
- * Sets style.backgroundImage
- * @method _applyUrl
- * @param {Object}     el      HTML DOM element
- * @private
- */
-YAHOO.util.ImageLoader.bgImgObj.prototype._applyUrl = function(el) {
-       el.style.backgroundImage = "url('" + this.url + "')";
-};
-
-/**
- * Source image object. A source image is one whose URL is specified by a src attribute in the DOM element
- * @class YAHOO.util.ImageLoader.srcImgObj
- * @constructor
- * @extends YAHOO.util.ImageLoader.imgObj
- * @param {String}     domId   HTML DOM id of the image element
- * @param {String}     url     URL for the image
- * @param {Int}        width   pixel width of the image - defaults to image's natural size
- * @param {Int}        height  pixel height of the image - defaults to image's natural size
- */
-YAHOO.util.ImageLoader.srcImgObj = function(domId, url, width, height) {
-       YAHOO.util.ImageLoader.srcImgObj.superclass.constructor.call(this, domId, url);
-       this.width = width;
-       this.height = height;
-};
-
-YAHOO.lang.extend(YAHOO.util.ImageLoader.srcImgObj, YAHOO.util.ImageLoader.imgObj);
-
-/**
- * Inserts the image URL into the DOM so that the image is displayed.
- * Sets src
- * @method _applyUrl
- * @param {Object}     el      HTML DOM element
- * @private
- */
-YAHOO.util.ImageLoader.srcImgObj.prototype._applyUrl = function(el) {
-       el.src = this.url;
-};
-
-/**
- * PNG background image object. A PNG background image is one whose URL is specified through AlphaImageLoader or by "background-image" in the element's style
- * @class YAHOO.util.ImageLoader.pngBgImgObj
- * @constructor
- * @extends YAHOO.util.ImageLoader.imgObj
- * @param {String}     domId   HTML DOM id of the image element
- * @param {String}     url     URL for the image
- * @param {Object}  ailProps The AlphaImageLoader properties to be set for the image
- *                    Valid properties are 'sizingMethod' and 'enabled'
- */
-YAHOO.util.ImageLoader.pngBgImgObj = function(domId, url, ailProps) {
-       YAHOO.util.ImageLoader.pngBgImgObj.superclass.constructor.call(this, domId, url);
-
-       /**
-        * AlphaImageLoader properties to be set for the image.
-        * Valid properties are "sizingMethod" and "enabled".
-        * @property props
-        * @type Object
-        */
-       this.props = ailProps || {};
-};
-
-YAHOO.lang.extend(YAHOO.util.ImageLoader.pngBgImgObj, YAHOO.util.ImageLoader.imgObj);
-
-/**
- * Inserts the image URL into the DOM so that the image is displayed.
- * If the browser is determined to be IE6 (or older), sets the AlphaImageLoader src; otherwise sets style.backgroundImage
- * @method _applyUrl
- * @param {Object}     el      HTML DOM element
- * @private
- */
-YAHOO.util.ImageLoader.pngBgImgObj.prototype._applyUrl = function(el) {
-       if (YAHOO.env.ua.ie && YAHOO.env.ua.ie <= 6) {
-               var sizingMethod = (YAHOO.lang.isUndefined(this.props.sizingMethod)) ? 'scale' : this.props.sizingMethod;
-               var enabled = (YAHOO.lang.isUndefined(this.props.enabled)) ? 'true' : this.props.enabled;
-               el.style.filter = 'progid:DXImageTransform.Microsoft.AlphaImageLoader(src="' + this.url + '", sizingMethod="' + sizingMethod + '", enabled="' + enabled + '")';
-       }
-       else {
-               el.style.backgroundImage = "url('" + this.url + "')";
-       }
-};
-YAHOO.register("imageloader", YAHOO.util.ImageLoader, {version: "2.8.0r4", build: "2449"});
-\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\07»Rê,d\81\95\92\83Ð\7ftion(el) {
-};
-
-/**
- * Background image object. A background image is one whose URL is specified by "background-image" in the element's style
- * @class YAHOO.util.ImageLoader.bgImgObj
- * @constructor
- * @extends YAHOO.util.ImageLoader.imgObj
- * @param {String}     domId   HTML DOM id of the image element
- * @param {String}     url     URL for the image
- */
-YAHOO.util.ImageLoader.bgImgObj = function(domId, url) {
-       YAHOO.util.ImageLoader.bgImgObj.superclass.constructor.call(this, domId, url);
-};
-
-YAHOO.lang.extend(YAHOO.util.ImageLoader.bgImgObj, YAHOO.util.ImageLoader.imgObj);
-
-/**
- * Inserts the image URL into the DOM so that the image is displayed.
- * Sets style.backgroundImage
- * @method _applyUrl
- * @param {Object}     el      HTML DOM element
- * @private
- */
-YAHOO.util.ImageLoader.bgImgObj.prototype._applyUrl = function(el) {
-       el.style.backgroundImage = "url('" + this.url + "')";
-};
-
-/**
- * Source image object. A source image is one whose URL is specified by a src attribute in the DOM element
- * @class YAHOO.util.ImageLoader.srcImgObj
- * @constructor
- * @extends YAHOO.util.ImageLoader.imgObj
- * @param {String}     domId   HTML DOM id of the image element
- * @param {String}     url     URL for the image
- * @param {Int}        width   pixel width of the image - defaults to image's natural size
- * @param {Int}        height  pixel height of the image - defaults to image's natural size
- */
-YAHOO.util.ImageLoader.srcImgObj = function(domId, url, width, height) {
-       YAHOO.util.ImageLoader.srcImgObj.superclass.constructor.call(this, domId, url);
-       this.width = width;
-       this.height = height;
-};
-
-YAHOO.lang.extend(YAHOO.util.ImageLoader.srcImgObj, YAHOO.util.ImageLoader.imgObj);
-
-/**
- * Inserts the image URL into the DOM so that the image is displayed.
- * Sets src
- * @method _applyUrl
- * @param {Object}     el      HTML DOM element
- * @private
- */
-YAHOO.util.ImageLoader.srcImgObj.prototype._applyUrl = function(el) {
-       el.src = this.url;
-};
-
-/**
- * PNG background image object. A PNG background image is one whose URL is specified through AlphaImageLoader or by "background-image" in the element's style
- * @class YAHOO.util.ImageLoader.pngBgImgObj
- * @constructor
- * @extends YAHOO.util.ImageLoader.imgObj
- * @param {String}     domId   HTML DOM id of the image element
- * @param {String}     url     URL for the image
- * @param {Object}  ailProps The AlphaImageLoader properties to be set for the image
- *                    Valid properties are 'sizingMethod' and 'enabled'
- */
-YAHOO.util.ImageLoader.pngBgImgObj = function(domId, url, ailProps) {
-       YAHOO.util.ImageLoader.pngBgImgObj.superclass.constructor.call(this, domId, url);
-
-       /**
-        * AlphaImageLoader properties to be set for the image.
-        * Valid properties are "sizingMethod" and "enabled".
-        * @property props
-        * @type Object
-        */
-       this.props = ailProps || {};
-};
-
-YAHOO.lang.extend(YAHOO.util.ImageLoader.pngBgImgObj, YAHOO.util.ImageLoader.imgObj);
-
-/**
- * Inserts the image URL into the DOM so that the image is displayed.
- * If the browser is determined to be IE6 (or older), sets the AlphaImageLoader src; otherwise sets style.backgroundImage
- * @method _applyUrl
- * @param {Object}     el      HTML DOM element
- * @private
- */
-YAHOO.util.ImageLoader.pngBgImgObj.prototype._applyUrl = function(el) {
-       if (YAHOO.env.ua.ie && YAHOO.env.ua.ie <= 6) {
-               var sizingMethod = (YAHOO.lang.isUndefined(this.props.sizingMethod)) ? 'scale' : this.props.sizingMethod;
-               var enabled = (YAHOO.lang.isUndefined(this.props.enabled)) ? 'true' : this.props.enabled;
-               el.style.filter = 'progid:DXImageTransform.Microsoft.AlphaImageLoader(src="' + this.url + '", sizingMethod="' + sizingMethod + '", enabled="' + enabled + '")';
-       }
-       else {
-               el.style.backgroundImage = "url('" + this.url + "')";
-       }
-};
-YAHOO.register("imageloader", YAHOO.util.ImageLoader, {version: "2.8.0r4", build: "2449"});
-\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0
\ No newline at end of file
diff --git a/koha-tmpl/intranet-tmpl/prog/en/lib/yui/layout/assets/layout-core.css b/koha-tmpl/intranet-tmpl/prog/en/lib/yui/layout/assets/layout-core.css
deleted file mode 100644 (file)
index 399303f..0000000
+++ /dev/null
@@ -1,158 +0,0 @@
-/*
-Copyright (c) 2009, Yahoo! Inc. All rights reserved.
-Code licensed under the BSD License:
-http://developer.yahoo.net/yui/license.txt
-version: 2.8.0r4
-*/
-.yui-layout-loading {
-    visibility: hidden;
-}
-
-body.yui-layout {
-    overflow: hidden;
-    position: relative;
-    padding: 0;
-    margin: 0;
-}
-
-.yui-layout-doc {
-    position: relative;
-    overflow: hidden;
-    padding: 0;
-    margin: 0;
-}
-
-.yui-layout-unit {
-    height: 50px;
-    width: 50px;
-    padding: 0;
-    margin: 0;
-    float: none;
-    z-index: 0;
-    /*overflow: hidden;*/
-}
-
-.yui-layout-unit-top {
-    position: absolute;
-    top: 0;
-    left: 0;
-    width: 100%;
-}
-
-.yui-layout-unit-left {
-    position: absolute;
-    top: 0;
-    left: 0;
-}
-
-.yui-layout-unit-right {
-    position: absolute;
-    top: 0;
-    right: 0;
-}
-
-.yui-layout-unit-bottom {
-    position: absolute;
-    bottom: 0;
-    left: 0;
-    width: 100%;
-}
-
-.yui-layout-unit-center {
-    position: absolute;
-    top: 0;
-    left: 0;
-    width: 100%;
-}
-
-.yui-layout div.yui-layout-hd {
-    position: absolute;
-    top: 0;
-    left: 0;
-    zoom: 1;
-    width: 100%;
-    /*overflow: hidden;*/
-}
-.yui-layout div.yui-layout-bd {
-    position: absolute;
-    top: 0;
-    left: 0;
-    zoom: 1;
-    width: 100%;
-    /*overflow: hidden;*/
-}
-.yui-layout .yui-layout-noscroll div.yui-layout-bd {
-    overflow: hidden;
-}
-.yui-layout .yui-layout-scroll div.yui-layout-bd {
-    overflow: auto;
-}
-.yui-layout div.yui-layout-ft {
-    position: absolute;
-    bottom: 0;
-    left: 0;
-    width: 100%;
-    zoom: 1;
-    /*overflow: hidden;*/
-}
-
-.yui-layout .yui-layout-unit div.yui-layout-hd h2 {
-    text-align: left;
-}
-
-.yui-layout .yui-layout-unit div.yui-layout-hd .collapse {
-    cursor: pointer;
-    height: 13px;
-    position: absolute;
-    right: 2px;
-    top: 2px;
-    width: 17px;
-    font-size: 0;
-}
-
-.yui-layout .yui-layout-unit div.yui-layout-hd .close {
-    cursor: pointer;
-    height: 13px;
-    position: absolute;
-    right: 2px;
-    top: 2px;
-    width: 17px;
-    font-size: 0;
-}
-.yui-layout .yui-layout-unit div.yui-layout-hd .collapse-close {
-    right: 25px;
-}
-
-
-.yui-layout .yui-layout-clip {
-    position: absolute;
-    height: 20px;
-    background-color: #c0c0c0;
-    display: none;
-}
-
-.yui-layout .yui-layout-clip .collapse {
-    cursor: pointer;
-    height: 13px;
-    position: absolute;
-    right: 2px;
-    top: 2px;
-    width: 17px;
-    font-size: 0px;
-}
-
-.yui-layout .yui-layout-wrap {
-    height: 100%;
-    width: 100%;
-    position: absolute;
-    left: 0;
-}
-
-/*
-.yui-layout .yui-layout-unit .yui-content {
-    overflow: hidden;
-}
-.yui-layout .yui-layout-unit .yui-layout-scroll {
-    overflow: auto;
-}
-*/
diff --git a/koha-tmpl/intranet-tmpl/prog/en/lib/yui/layout/assets/skins/sam/layout-skin.css b/koha-tmpl/intranet-tmpl/prog/en/lib/yui/layout/assets/skins/sam/layout-skin.css
deleted file mode 100644 (file)
index 696bfd9..0000000
+++ /dev/null
@@ -1,207 +0,0 @@
-/*
-Copyright (c) 2009, Yahoo! Inc. All rights reserved.
-Code licensed under the BSD License:
-http://developer.yahoo.net/yui/license.txt
-version: 2.8.0r4
-*/
-/* Remove the dotted border on the resize proxy */
-.yui-skin-sam .yui-layout .yui-resize-proxy {
-    border: none;
-    font-size: 0;
-    margin: 0;
-    padding: 0;
-}
-/* During resize, hide the handles */
-.yui-skin-sam .yui-layout .yui-resize-resizing .yui-resize-handle {
-    /*visibility: hidden;*/
-    display: none;
-    zoom: 1;
-}
-/* Style the div inside the resize proxy */
-.yui-skin-sam .yui-layout .yui-resize-proxy div {
-    position: absolute;
-    border: 1px solid #808080;
-    background-color: #EDF5FF;
-}
-/* Set the color of the Active resize handle */
-.yui-skin-sam .yui-layout .yui-resize .yui-resize-handle-active {
-    zoom: 1;
-}
-/* Styles for the left handle */
-.yui-skin-sam .yui-layout .yui-resize-proxy .yui-layout-handle-l {
-    width: 5px;
-    height: 100%;
-    top: 0;
-    left: 0;
-    zoom: 1;
-}
-/* Styles for the right handle */
-.yui-skin-sam .yui-layout .yui-resize-proxy .yui-layout-handle-r {
-    width: 5px;
-    top: 0;
-    right: 0;
-    height: 100%;
-    position: absolute;
-    zoom: 1;
-}
-/* Styles for the bottom handle */
-.yui-skin-sam .yui-layout .yui-resize-proxy .yui-layout-handle-b {
-    width: 100%;
-    bottom: 0;
-    left: 0;
-    height: 5px;
-}
-/* Styles for the top handle */
-.yui-skin-sam .yui-layout .yui-resize-proxy .yui-layout-handle-t {
-    width: 100%;
-    top: 0;
-    left: 0;
-    height: 5px;
-}
-
-/* Left Collapse button */
-.yui-skin-sam .yui-layout .yui-layout-unit-left div.yui-layout-hd .collapse {
-    background: transparent url(layout_sprite.png) no-repeat -20px -160px;
-    border: 1px solid #808080;
-}
-/* Left Collapsed Expand Button */
-.yui-skin-sam .yui-layout .yui-layout-clip-left .collapse {
-    background: transparent url(layout_sprite.png) no-repeat -20px -140px;
-    border: 1px solid #808080;
-}
-/* Right Collapse Button */
-.yui-skin-sam .yui-layout .yui-layout-unit-right div.yui-layout-hd .collapse {
-    background: transparent url(layout_sprite.png) no-repeat -20px -200px;
-    border: 1px solid #808080;
-}
-/* Right Collapsed Expand Button */
-.yui-skin-sam .yui-layout .yui-layout-clip-right .collapse {
-    background: transparent url(layout_sprite.png) no-repeat -20px -120px;
-    border: 1px solid #808080;
-}
-/* Top Collapse Button */
-.yui-skin-sam .yui-layout .yui-layout-unit-top div.yui-layout-hd .collapse {
-    background: transparent url(layout_sprite.png) no-repeat -20px -220px;
-    border: 1px solid #808080;
-}
-/* Top Collapsed Expand Button */
-.yui-skin-sam .yui-layout .yui-layout-clip-top .collapse {
-    background: transparent url(layout_sprite.png) no-repeat -20px -240px;
-    border: 1px solid #808080;
-}
-/* Bottom Collapse Button */
-.yui-skin-sam .yui-layout .yui-layout-unit-bottom div.yui-layout-hd .collapse {
-    background: transparent url(layout_sprite.png) no-repeat -20px -260px;
-    border: 1px solid #808080;
-}
-/* Bottom Collapsed Expand Button */
-.yui-skin-sam .yui-layout .yui-layout-clip-bottom .collapse {
-    background: transparent url(layout_sprite.png) no-repeat -20px -180px;
-    border: 1px solid #808080;
-}
-/* Close Button */
-.yui-skin-sam .yui-layout .yui-layout-unit div.yui-layout-hd .close {
-    background: transparent url(layout_sprite.png) no-repeat -20px -100px;
-    border: 1px solid #808080;
-}
-
-/* Give the header a blue backgorund */
-.yui-skin-sam .yui-layout .yui-layout-hd {
-    background:url(../../../../assets/skins/sam/sprite.png) repeat-x 0 -1400px;
-    border: 1px solid #808080;
-}
-/* Set the background color */
-.yui-skin-sam .yui-layout {
-    background-color: #EDF5FF;
-}
-/* Style the text in the header */
-.yui-skin-sam .yui-layout .yui-layout-unit div.yui-layout-hd h2 {
-    font-weight: bold;
-    color: #fff;
-    padding: 3px;
-    margin: 0;
-}
-/* Style the body */
-.yui-skin-sam .yui-layout .yui-layout-unit div.yui-layout-bd {
-    border: 1px solid #808080;
-    border-bottom: none;
-    border-top: none;
-    *border-bottom-width: 0;
-    *border-top-width: 0;
-    background-color: #f2f2f2;
-    text-align: left;
-}
-/* Add a border to the bottom of the body because there is no footer */
-.yui-skin-sam .yui-layout .yui-layout-unit div.yui-layout-bd-noft {
-    border-bottom: 1px solid #808080;
-}
-/* Add a border to the top of the body because there is no header */
-.yui-skin-sam .yui-layout .yui-layout-unit div.yui-layout-bd-nohd {
-    border-top: 1px solid #808080;
-}
-
-/* Style the Clip */
-.yui-skin-sam .yui-layout .yui-layout-clip {
-    position: absolute;
-    height: 20px;
-    background-color: #EDF5FF;
-    display: none;
-    border: 1px solid #808080;
-}
-/* Style the footer */
-.yui-skin-sam .yui-layout div.yui-layout-ft {
-    border: 1px solid #808080;
-    border-top: none;
-    *border-top-width: 0;
-    background-color: #f2f2f2;
-}
-
-/* Remove the color from the resize handle */
-.yui-skin-sam .yui-layout-unit .yui-resize-handle {
-    background-color: transparent;
-    zoom: 1;
-}
-/* Reposition the handles */
-.yui-skin-sam .yui-layout-unit .yui-resize-handle-r {
-    right: 0;
-    top: 0;
-    background-image: none;
-    zoom: 1;
-}
-.yui-skin-sam .yui-layout-unit .yui-resize-handle-l {
-    left: 0;
-    top: 0;
-    background-image: none;
-    zoom: 1;
-}
-.yui-skin-sam .yui-layout-unit .yui-resize-handle-b {
-    right: 0;
-    bottom: 0;
-    background-image: none;
-}
-.yui-skin-sam .yui-layout-unit .yui-resize-handle-t {
-    right: 0;
-    top: 0;
-    background-image: none;
-}
-/* Add the gripper */
-.yui-skin-sam .yui-layout-unit .yui-resize-handle-r .yui-layout-resize-knob,
-.yui-skin-sam .yui-layout-unit .yui-resize-handle-l .yui-layout-resize-knob {
-    position: absolute;
-    height: 16px;
-    width: 6px;
-    top: 45%;
-    left: 0px;
-    display: block;
-    background: transparent url(layout_sprite.png) no-repeat 0 -5px;
-}
-/* Add the gripper */
-.yui-skin-sam .yui-layout-unit .yui-resize-handle-t .yui-layout-resize-knob,
-.yui-skin-sam .yui-layout-unit .yui-resize-handle-b .yui-layout-resize-knob {
-    position: absolute;
-    height: 6px;
-    width: 16px;
-    left: 45%;
-    background: transparent url(layout_sprite.png) no-repeat -20px 0;
-    zoom: 1;
-}
diff --git a/koha-tmpl/intranet-tmpl/prog/en/lib/yui/layout/assets/skins/sam/layout.css b/koha-tmpl/intranet-tmpl/prog/en/lib/yui/layout/assets/skins/sam/layout.css
deleted file mode 100644 (file)
index e4d7143..0000000
+++ /dev/null
@@ -1,7 +0,0 @@
-/*
-Copyright (c) 2009, Yahoo! Inc. All rights reserved.
-Code licensed under the BSD License:
-http://developer.yahoo.net/yui/license.txt
-version: 2.8.0r4
-*/
-.yui-layout-loading{visibility:hidden;}body.yui-layout{overflow:hidden;position:relative;padding:0;margin:0;}.yui-layout-doc{position:relative;overflow:hidden;padding:0;margin:0;}.yui-layout-unit{height:50px;width:50px;padding:0;margin:0;float:none;z-index:0;}.yui-layout-unit-top{position:absolute;top:0;left:0;width:100%;}.yui-layout-unit-left{position:absolute;top:0;left:0;}.yui-layout-unit-right{position:absolute;top:0;right:0;}.yui-layout-unit-bottom{position:absolute;bottom:0;left:0;width:100%;}.yui-layout-unit-center{position:absolute;top:0;left:0;width:100%;}.yui-layout div.yui-layout-hd{position:absolute;top:0;left:0;zoom:1;width:100%;}.yui-layout div.yui-layout-bd{position:absolute;top:0;left:0;zoom:1;width:100%;}.yui-layout .yui-layout-noscroll div.yui-layout-bd{overflow:hidden;}.yui-layout .yui-layout-scroll div.yui-layout-bd{overflow:auto;}.yui-layout div.yui-layout-ft{position:absolute;bottom:0;left:0;width:100%;zoom:1;}.yui-layout .yui-layout-unit div.yui-layout-hd h2{text-align:left;}.yui-layout .yui-layout-unit div.yui-layout-hd .collapse{cursor:pointer;height:13px;position:absolute;right:2px;top:2px;width:17px;font-size:0;}.yui-layout .yui-layout-unit div.yui-layout-hd .close{cursor:pointer;height:13px;position:absolute;right:2px;top:2px;width:17px;font-size:0;}.yui-layout .yui-layout-unit div.yui-layout-hd .collapse-close{right:25px;}.yui-layout .yui-layout-clip{position:absolute;height:20px;background-color:#c0c0c0;display:none;}.yui-layout .yui-layout-clip .collapse{cursor:pointer;height:13px;position:absolute;right:2px;top:2px;width:17px;font-size:0;}.yui-layout .yui-layout-wrap{height:100%;width:100%;position:absolute;left:0;}.yui-skin-sam .yui-layout .yui-resize-proxy{border:none;font-size:0;margin:0;padding:0;}.yui-skin-sam .yui-layout .yui-resize-resizing .yui-resize-handle{display:none;zoom:1;}.yui-skin-sam .yui-layout .yui-resize-proxy div{position:absolute;border:1px solid #808080;background-color:#EDF5FF;}.yui-skin-sam .yui-layout .yui-resize .yui-resize-handle-active{zoom:1;}.yui-skin-sam .yui-layout .yui-resize-proxy .yui-layout-handle-l{width:5px;height:100%;top:0;left:0;zoom:1;}.yui-skin-sam .yui-layout .yui-resize-proxy .yui-layout-handle-r{width:5px;top:0;right:0;height:100%;position:absolute;zoom:1;}.yui-skin-sam .yui-layout .yui-resize-proxy .yui-layout-handle-b{width:100%;bottom:0;left:0;height:5px;}.yui-skin-sam .yui-layout .yui-resize-proxy .yui-layout-handle-t{width:100%;top:0;left:0;height:5px;}.yui-skin-sam .yui-layout .yui-layout-unit-left div.yui-layout-hd .collapse{background:transparent url(layout_sprite.png) no-repeat -20px -160px;border:1px solid #808080;}.yui-skin-sam .yui-layout .yui-layout-clip-left .collapse{background:transparent url(layout_sprite.png) no-repeat -20px -140px;border:1px solid #808080;}.yui-skin-sam .yui-layout .yui-layout-unit-right div.yui-layout-hd .collapse{background:transparent url(layout_sprite.png) no-repeat -20px -200px;border:1px solid #808080;}.yui-skin-sam .yui-layout .yui-layout-clip-right .collapse{background:transparent url(layout_sprite.png) no-repeat -20px -120px;border:1px solid #808080;}.yui-skin-sam .yui-layout .yui-layout-unit-top div.yui-layout-hd .collapse{background:transparent url(layout_sprite.png) no-repeat -20px -220px;border:1px solid #808080;}.yui-skin-sam .yui-layout .yui-layout-clip-top .collapse{background:transparent url(layout_sprite.png) no-repeat -20px -240px;border:1px solid #808080;}.yui-skin-sam .yui-layout .yui-layout-unit-bottom div.yui-layout-hd .collapse{background:transparent url(layout_sprite.png) no-repeat -20px -260px;border:1px solid #808080;}.yui-skin-sam .yui-layout .yui-layout-clip-bottom .collapse{background:transparent url(layout_sprite.png) no-repeat -20px -180px;border:1px solid #808080;}.yui-skin-sam .yui-layout .yui-layout-unit div.yui-layout-hd .close{background:transparent url(layout_sprite.png) no-repeat -20px -100px;border:1px solid #808080;}.yui-skin-sam .yui-layout .yui-layout-hd{background:url(../../../../assets/skins/sam/sprite.png) repeat-x 0 -1400px;border:1px solid #808080;}.yui-skin-sam .yui-layout{background-color:#EDF5FF;}.yui-skin-sam .yui-layout .yui-layout-unit div.yui-layout-hd h2{font-weight:bold;color:#fff;padding:3px;margin:0;}.yui-skin-sam .yui-layout .yui-layout-unit div.yui-layout-bd{border:1px solid #808080;border-bottom:none;border-top:none;*border-bottom-width:0;*border-top-width:0;background-color:#f2f2f2;text-align:left;}.yui-skin-sam .yui-layout .yui-layout-unit div.yui-layout-bd-noft{border-bottom:1px solid #808080;}.yui-skin-sam .yui-layout .yui-layout-unit div.yui-layout-bd-nohd{border-top:1px solid #808080;}.yui-skin-sam .yui-layout .yui-layout-clip{position:absolute;height:20px;background-color:#EDF5FF;display:none;border:1px solid #808080;}.yui-skin-sam .yui-layout div.yui-layout-ft{border:1px solid #808080;border-top:none;*border-top-width:0;background-color:#f2f2f2;}.yui-skin-sam .yui-layout-unit .yui-resize-handle{background-color:transparent;zoom:1;}.yui-skin-sam .yui-layout-unit .yui-resize-handle-r{right:0;top:0;background-image:none;zoom:1;}.yui-skin-sam .yui-layout-unit .yui-resize-handle-l{left:0;top:0;background-image:none;zoom:1;}.yui-skin-sam .yui-layout-unit .yui-resize-handle-b{right:0;bottom:0;background-image:none;}.yui-skin-sam .yui-layout-unit .yui-resize-handle-t{right:0;top:0;background-image:none;}.yui-skin-sam .yui-layout-unit .yui-resize-handle-r .yui-layout-resize-knob,.yui-skin-sam .yui-layout-unit .yui-resize-handle-l .yui-layout-resize-knob{position:absolute;height:16px;width:6px;top:45%;left:0;display:block;background:transparent url(layout_sprite.png) no-repeat 0 -5px;}.yui-skin-sam .yui-layout-unit .yui-resize-handle-t .yui-layout-resize-knob,.yui-skin-sam .yui-layout-unit .yui-resize-handle-b .yui-layout-resize-knob{position:absolute;height:6px;width:16px;left:45%;background:transparent url(layout_sprite.png) no-repeat -20px 0;zoom:1;}
diff --git a/koha-tmpl/intranet-tmpl/prog/en/lib/yui/layout/assets/skins/sam/layout_sprite.png b/koha-tmpl/intranet-tmpl/prog/en/lib/yui/layout/assets/skins/sam/layout_sprite.png
deleted file mode 100644 (file)
index d6fce3c..0000000
Binary files a/koha-tmpl/intranet-tmpl/prog/en/lib/yui/layout/assets/skins/sam/layout_sprite.png and /dev/null differ
diff --git a/koha-tmpl/intranet-tmpl/prog/en/lib/yui/layout/layout-debug.js b/koha-tmpl/intranet-tmpl/prog/en/lib/yui/layout/layout-debug.js
deleted file mode 100644 (file)
index f916ee3..0000000
+++ /dev/null
@@ -1,2305 +0,0 @@
-/*
-Copyright (c) 2009, Yahoo! Inc. All rights reserved.
-Code licensed under the BSD License:
-http://developer.yahoo.net/yui/license.txt
-version: 2.8.0r4
-*/
-/**
- * @description <p>Provides a fixed layout containing, top, bottom, left, right and center layout units. It can be applied to either the body or an element.</p>
- * @namespace YAHOO.widget
- * @requires yahoo, dom, element, event
- * @module layout
- */
-(function() {
-    var Dom = YAHOO.util.Dom,
-        Event = YAHOO.util.Event,
-        Lang = YAHOO.lang;
-
-    /**
-     * @constructor
-     * @class Layout
-     * @extends YAHOO.util.Element
-     * @description <p>Provides a fixed layout containing, top, bottom, left, right and center layout units. It can be applied to either the body or an element.</p>
-     * @param {String/HTMLElement} el The element to make contain a layout.
-     * @param {Object} attrs Object liternal containing configuration parameters.
-    */
-
-    var Layout = function(el, config) {
-        YAHOO.log('Creating the Layout Object', 'info', 'Layout');
-        if (Lang.isObject(el) && !el.tagName) {
-            config = el;
-            el = null;
-        }
-        if (Lang.isString(el)) {
-            if (Dom.get(el)) {
-                el = Dom.get(el);
-            }
-        }
-        if (!el) {
-            el = document.body;
-        }
-
-        var oConfig = {
-            element: el,
-            attributes: config || {}
-        };
-
-        Layout.superclass.constructor.call(this, oConfig.element, oConfig.attributes);    
-    };
-
-    /**
-    * @private
-    * @static
-    * @property _instances
-    * @description Internal hash table for all layout instances
-    * @type Object
-    */ 
-    Layout._instances = {};
-    /**
-    * @static
-    * @method getLayoutById 
-    * @description Get's a layout object by the HTML id of the element associated with the Layout object.
-    * @return {Object} The Layout Object
-    */ 
-    Layout.getLayoutById = function(id) {
-        if (Layout._instances[id]) {
-            return Layout._instances[id];
-        }
-        return false;
-    };
-
-    YAHOO.extend(Layout, YAHOO.util.Element, {
-        /**
-        * @property browser
-        * @description A modified version of the YAHOO.env.ua object
-        * @type Object
-        */
-        browser: function() {
-            var b = YAHOO.env.ua;
-            b.standardsMode = false;
-            b.secure = false;
-            return b;
-        }(),
-        /**
-        * @private
-        * @property _units
-        * @description An object literal that contains a list of units in the layout
-        * @type Object
-        */
-        _units: null,
-        /**
-        * @private
-        * @property _rendered
-        * @description Set to true when the layout is rendered
-        * @type Boolean
-        */
-        _rendered: null,
-        /**
-        * @private
-        * @property _zIndex
-        * @description The zIndex to set all LayoutUnits to
-        * @type Number
-        */
-        _zIndex: null,
-        /**
-        * @private
-        * @property _sizes
-        * @description A collection of the current sizes of all usable LayoutUnits to be used for calculations
-        * @type Object
-        */
-        _sizes: null,
-        /**
-        * @private
-        * @method _setBodySize
-        * @param {Boolean} set If set to false, it will NOT set the size, just perform the calculations (used for collapsing units)
-        * @description Used to set the body size of the layout, sets the height and width of the parent container
-        */
-        _setBodySize: function(set) {
-            var h = 0, w = 0;
-            set = ((set === false) ? false : true);
-
-            if (this._isBody) {
-                h = Dom.getClientHeight();
-                w = Dom.getClientWidth();
-            } else {
-                h = parseInt(this.getStyle('height'), 10);
-                w = parseInt(this.getStyle('width'), 10);
-                if (isNaN(w)) {
-                    w = this.get('element').clientWidth;
-                }
-                if (isNaN(h)) {
-                    h = this.get('element').clientHeight;
-                }
-            }
-            if (this.get('minWidth')) {
-                if (w < this.get('minWidth')) {
-                    w = this.get('minWidth');
-                }
-            }
-            if (this.get('minHeight')) {
-                if (h < this.get('minHeight')) {
-                    h = this.get('minHeight');
-                }
-            }
-            if (set) {
-                if (h < 0) {
-                    h = 0;
-                }
-                if (w < 0) {
-                    w = 0;
-                }
-                Dom.setStyle(this._doc, 'height', h + 'px');
-                Dom.setStyle(this._doc, 'width', w + 'px');
-            }
-            this._sizes.doc = { h: h, w: w };
-            YAHOO.log('Setting Body height and width: (' + h + ',' + w + ')', 'info', 'Layout');
-            this._setSides(set);
-        },
-        /**
-        * @private
-        * @method _setSides
-        * @param {Boolean} set If set to false, it will NOT set the size, just perform the calculations (used for collapsing units)
-        * @description Used to set the size and position of the left, right, top and bottom units
-        */
-        _setSides: function(set) {
-            YAHOO.log('Setting side units', 'info', 'Layout');
-            var h1 = ((this._units.top) ? this._units.top.get('height') : 0),
-                h2 = ((this._units.bottom) ? this._units.bottom.get('height') : 0),
-                h = this._sizes.doc.h,
-                w = this._sizes.doc.w;
-            set = ((set === false) ? false : true);
-
-            this._sizes.top = {
-                h: h1, w: ((this._units.top) ? w : 0),
-                t: 0
-            };
-            this._sizes.bottom = {
-                h: h2, w: ((this._units.bottom) ? w : 0)
-            };
-            
-            var newH = (h - (h1 + h2));
-
-            this._sizes.left = {
-                h: newH, w: ((this._units.left) ? this._units.left.get('width') : 0)
-            };
-            this._sizes.right = {
-                h: newH, w: ((this._units.right) ? this._units.right.get('width') : 0),
-                l: ((this._units.right) ? (w - this._units.right.get('width')) : 0),
-                t: ((this._units.top) ? this._sizes.top.h : 0)
-            };
-            
-            if (this._units.right && set) {
-                this._units.right.set('top', this._sizes.right.t);
-                if (!this._units.right._collapsing) { 
-                    this._units.right.set('left', this._sizes.right.l);
-                }
-                this._units.right.set('height', this._sizes.right.h, true);
-            }
-            if (this._units.left) {
-                this._sizes.left.l = 0;
-                if (this._units.top) {
-                    this._sizes.left.t = this._sizes.top.h;
-                } else {
-                    this._sizes.left.t = 0;
-                }
-                if (set) {
-                    this._units.left.set('top', this._sizes.left.t);
-                    this._units.left.set('height', this._sizes.left.h, true);
-                    this._units.left.set('left', 0);
-                }
-            }
-            if (this._units.bottom) {
-                this._sizes.bottom.t = this._sizes.top.h + this._sizes.left.h;
-                if (set) {
-                    this._units.bottom.set('top', this._sizes.bottom.t);
-                    this._units.bottom.set('width', this._sizes.bottom.w, true);
-                }
-            }
-            if (this._units.top) {
-                if (set) {
-                    this._units.top.set('width', this._sizes.top.w, true);
-                }
-            }
-            YAHOO.log('Setting sizes: (' + Lang.dump(this._sizes) + ')', 'info', 'Layout');
-            this._setCenter(set);
-        },
-        /**
-        * @private
-        * @method _setCenter
-        * @param {Boolean} set If set to false, it will NOT set the size, just perform the calculations (used for collapsing units)
-        * @description Used to set the size and position of the center unit
-        */
-        _setCenter: function(set) {
-            set = ((set === false) ? false : true);
-            var h = this._sizes.left.h;
-            var w = (this._sizes.doc.w - (this._sizes.left.w + this._sizes.right.w));
-            if (set) {
-                this._units.center.set('height', h, true);
-                this._units.center.set('width', w, true);
-                this._units.center.set('top', this._sizes.top.h);
-                this._units.center.set('left', this._sizes.left.w);
-            }
-            this._sizes.center = { h: h, w: w, t: this._sizes.top.h, l: this._sizes.left.w };
-            YAHOO.log('Setting Center size to: (' + h + ', ' + w + ')', 'info', 'Layout');
-        },
-        /**
-        * @method getSizes
-        * @description Get a reference to the internal Layout Unit sizes object used to build the layout wireframe
-        * @return {Object} An object of the layout unit sizes
-        */
-        getSizes: function() {
-            return this._sizes;
-        },
-        /**
-        * @method getUnitById
-        * @param {String} id The HTML element id of the unit
-        * @description Get the LayoutUnit by it's HTML id
-        * @return {<a href="YAHOO.widget.LayoutUnit.html">YAHOO.widget.LayoutUnit</a>} The LayoutUnit instance
-        */
-        getUnitById: function(id) {
-            return YAHOO.widget.LayoutUnit.getLayoutUnitById(id);
-        },
-        /**
-        * @method getUnitByPosition
-        * @param {String} pos The position of the unit in this layout
-        * @description Get the LayoutUnit by it's position in this layout
-        * @return {<a href="YAHOO.widget.LayoutUnit.html">YAHOO.widget.LayoutUnit</a>} The LayoutUnit instance
-        */
-        getUnitByPosition: function(pos) {
-            if (pos) {
-                pos = pos.toLowerCase();
-                if (this._units[pos]) {
-                    return this._units[pos];
-                }
-                return false;
-            }
-            return false;
-        },
-        /**
-        * @method removeUnit
-        * @param {Object} unit The LayoutUnit that you want to remove
-        * @description Remove the unit from this layout and resize the layout.
-        */
-        removeUnit: function(unit) {
-            delete this._units[unit.get('position')];
-            this.resize();
-        },
-        /**
-        * @method addUnit
-        * @param {Object} cfg The config for the LayoutUnit that you want to add
-        * @description Add a unit to this layout and if the layout is rendered, resize the layout. 
-        * @return {<a href="YAHOO.widget.LayoutUnit.html">YAHOO.widget.LayoutUnit</a>} The LayoutUnit instance
-        */
-        addUnit: function(cfg) {
-            if (!cfg.position) {
-                YAHOO.log('No position property passed', 'error', 'Layout');
-                return false;
-            }
-            if (this._units[cfg.position]) {
-                YAHOO.log('Position already exists', 'error', 'Layout');
-                return false;
-            }
-            YAHOO.log('Adding Unit at position: ' + cfg.position, 'info', 'Layout');
-            var element = null,
-                el = null;
-
-            if (cfg.id) {
-                if (Dom.get(cfg.id)) {
-                    element = Dom.get(cfg.id);
-                    delete cfg.id;
-
-                }
-            }
-            if (cfg.element) {
-                element = cfg.element;
-            }
-
-            if (!el) {
-                el = document.createElement('div');
-                var id = Dom.generateId();
-                el.id = id;
-            }
-
-            if (!element) {
-                element = document.createElement('div');
-            }
-            Dom.addClass(element, 'yui-layout-wrap');
-            if (this.browser.ie && !this.browser.standardsMode) {
-                el.style.zoom = 1;
-                element.style.zoom = 1;
-            }
-
-            if (el.firstChild) {
-                el.insertBefore(element, el.firstChild);
-            } else {
-                el.appendChild(element);
-            }
-            this._doc.appendChild(el);
-
-            var h = false, w = false;
-
-            if (cfg.height) {
-                h = parseInt(cfg.height, 10);
-            }
-            if (cfg.width) {
-                w = parseInt(cfg.width, 10);
-            }
-            var unitConfig = {};
-            YAHOO.lang.augmentObject(unitConfig, cfg); // break obj ref
-
-            unitConfig.parent = this;
-            unitConfig.wrap = element;
-            unitConfig.height = h;
-            unitConfig.width = w;
-
-            var unit = new YAHOO.widget.LayoutUnit(el, unitConfig);
-
-            unit.on('heightChange', this.resize, { unit: unit }, this);
-            unit.on('widthChange', this.resize, { unit: unit }, this);
-            unit.on('gutterChange', this.resize, { unit: unit }, this);
-            this._units[cfg.position] = unit;
-
-            if (this._rendered) {
-                this.resize();
-            }
-
-            return unit;
-        },
-        /**
-        * @private
-        * @method _createUnits
-        * @description Private method to create units from the config that was passed in.
-        */
-        _createUnits: function() {
-            var units = this.get('units');
-            for (var i in units) {
-                if (Lang.hasOwnProperty(units, i)) {
-                    this.addUnit(units[i]);
-                }
-            }
-        },
-        /**
-        * @method resize
-        * @param Boolean/Event set If set to false, it will NOT set the size, just perform the calculations (used for collapsing units). This can also have an attribute event passed to it.
-        * @description Starts the chain of resize routines that will resize all the units.
-        * @return {<a href="YAHOO.widget.Layout.html">YAHOO.widget.Layout</a>} The Layout instance
-        */
-        resize: function(set, info) {
-            /*
-            * Fixes bug #2528175
-            * If the event comes from an attribute and the value hasn't changed, don't process it.
-            */
-            var ev = set;
-            if (ev && ev.prevValue && ev.newValue) {
-                if (ev.prevValue == ev.newValue) {
-                    if (info) {
-                        if (info.unit) {
-                            if (!info.unit.get('animate')) {
-                                set = false;
-                            }
-                        }
-                    }
-                }
-            }
-            set = ((set === false) ? false : true);
-            if (set) {
-                var retVal = this.fireEvent('beforeResize');
-                if (retVal === false) {
-                    set = false;
-                }
-                if (this.browser.ie) {
-                    if (this._isBody) {
-                        Dom.removeClass(document.documentElement, 'yui-layout');
-                        Dom.addClass(document.documentElement, 'yui-layout');
-                    } else {
-                        this.removeClass('yui-layout');
-                        this.addClass('yui-layout');
-                    }
-                }
-            }
-            this._setBodySize(set);
-            if (set) {
-                this.fireEvent('resize', { target: this, sizes: this._sizes, event: ev });
-            }
-            return this;
-        },
-        /**
-        * @private
-        * @method _setupBodyElements
-        * @description Sets up the main doc element when using the body as the main element.
-        */
-        _setupBodyElements: function() {
-            this._doc = Dom.get('layout-doc');
-            if (!this._doc) {
-                this._doc = document.createElement('div');
-                this._doc.id = 'layout-doc';
-                if (document.body.firstChild) {
-                    document.body.insertBefore(this._doc, document.body.firstChild);
-                } else {
-                    document.body.appendChild(this._doc);
-                }
-            }
-            this._createUnits();
-            this._setBodySize();
-            Event.on(window, 'resize', this.resize, this, true);
-            Dom.addClass(this._doc, 'yui-layout-doc');
-        },
-        /**
-        * @private
-        * @method _setupElements
-        * @description Sets up the main doc element when not using the body as the main element.
-        */
-        _setupElements: function() {
-            this._doc = this.getElementsByClassName('yui-layout-doc')[0];
-            if (!this._doc) {
-                this._doc = document.createElement('div');
-                this.get('element').appendChild(this._doc);
-            }
-            this._createUnits();
-            this._setBodySize();
-            Dom.addClass(this._doc, 'yui-layout-doc');
-        },
-        /**
-        * @private
-        * @property _isBody
-        * @description Flag to determine if we are using the body as the root element.
-        * @type Boolean
-        */
-        _isBody: null,
-        /**
-        * @private
-        * @property _doc
-        * @description Reference to the root element
-        * @type HTMLElement
-        */
-        _doc: null,
-        /**
-        * @private
-        * @method init
-        * @description The Layout class' initialization method
-        */        
-        init: function(p_oElement, p_oAttributes) {
-            YAHOO.log('init', 'info', 'Layout');
-
-            this._zIndex = 0;
-
-            Layout.superclass.init.call(this, p_oElement, p_oAttributes);
-            
-            if (this.get('parent')) {
-                this._zIndex = this.get('parent')._zIndex + 10;
-            }
-
-            this._sizes = {};
-            this._units = {};
-
-            var id = p_oElement;
-            if (!Lang.isString(id)) {
-                id = Dom.generateId(id);
-            }
-            Layout._instances[id] = this;
-        },
-        /**
-        * @method render
-        * @description This method starts the render process, applying classnames and creating elements
-        * @return {<a href="YAHOO.widget.Layout.html">YAHOO.widget.Layout</a>} The Layout instance
-        */        
-        render: function() {
-            YAHOO.log('Render', 'info', 'Layout');
-            this._stamp();
-            var el = this.get('element');
-            if (el && el.tagName && (el.tagName.toLowerCase() == 'body')) {
-                this._isBody = true;
-                Dom.addClass(document.body, 'yui-layout');
-                if (Dom.hasClass(document.body, 'yui-skin-sam')) {
-                    //Move the class up so we can have a css chain
-                    Dom.addClass(document.documentElement, 'yui-skin-sam');
-                    Dom.removeClass(document.body, 'yui-skin-sam');
-                }
-                this._setupBodyElements();
-            } else {
-                this._isBody = false;
-                this.addClass('yui-layout');
-                this._setupElements();
-            }
-            this.resize();
-            this._rendered = true;
-            this.fireEvent('render');
-
-            return this;
-        },
-        /**
-        * @private
-        * @method _stamp
-        * @description Stamps the root node with a secure classname for ease of use. Also sets the this.browser.standardsMode variable.
-        */        
-        _stamp: function() {
-            if (document.compatMode == 'CSS1Compat') {
-                this.browser.standardsMode = true;
-            }
-            if (window.location.href.toLowerCase().indexOf("https") === 0) {
-                Dom.addClass(document.documentElement, 'secure');
-                this.browser.secure = true;
-            }
-        },
-        /**
-        * @private
-        * @method initAttributes
-        * @description Processes the config
-        */        
-        initAttributes: function(attr) {
-            Layout.superclass.initAttributes.call(this, attr);
-            /**
-            * @attribute units
-            * @description An array of config definitions for the LayoutUnits to add to this layout
-            * @type Array
-            */
-            this.setAttributeConfig('units', {
-                writeOnce: true,
-                validator: YAHOO.lang.isArray,
-                value: attr.units || []
-            });
-
-            /**
-            * @attribute minHeight
-            * @description The minimum height in pixels
-            * @type Number
-            */
-            this.setAttributeConfig('minHeight', {
-                value: attr.minHeight || false,
-                validator: YAHOO.lang.isNumber
-            });
-
-            /**
-            * @attribute minWidth
-            * @description The minimum width in pixels
-            * @type Number
-            */
-            this.setAttributeConfig('minWidth', {
-                value: attr.minWidth || false,
-                validator: YAHOO.lang.isNumber
-            });
-
-            /**
-            * @attribute height
-            * @description The height in pixels
-            * @type Number
-            */
-            this.setAttributeConfig('height', {
-                value: attr.height || false,
-                validator: YAHOO.lang.isNumber,
-                method: function(h) {
-                    if (h < 0) {
-                        h = 0;
-                    }
-                    this.setStyle('height', h + 'px');
-                }
-            });
-
-            /**
-            * @attribute width
-            * @description The width in pixels
-            * @type Number
-            */
-            this.setAttributeConfig('width', {
-                value: attr.width || false,
-                validator: YAHOO.lang.isNumber,
-                method: function(w) {
-                    if (w < 0) {
-                        w = 0;
-                    }
-                    this.setStyle('width', w + 'px');
-                }
-            });
-
-            /**
-            * @attribute parent
-            * @description If this layout is to be used as a child of another Layout instance, this config will bind the resize events together.
-            * @type Object YAHOO.widget.Layout
-            */
-            this.setAttributeConfig('parent', {
-                writeOnce: true,
-                value: attr.parent || false,
-                method: function(p) {
-                    if (p) {
-                        p.on('resize', this.resize, this, true);
-                    }
-                }
-            });
-        },
-        /**
-        * @method destroy
-        * @description Removes this layout from the page and destroys all units that it contains. This will destroy all data inside the layout and it's children.
-        */
-        destroy: function() {
-            var par = this.get('parent');
-            if (par) {
-                par.removeListener('resize', this.resize, this, true);
-            }
-            Event.removeListener(window, 'resize', this.resize, this, true);
-
-            this.unsubscribeAll();
-            for (var u in this._units) {
-                if (Lang.hasOwnProperty(this._units, u)) {
-                    if (this._units[u]) {
-                        this._units[u].destroy(true);
-                    }
-                }
-            }
-
-            Event.purgeElement(this.get('element'));
-            this.get('parentNode').removeChild(this.get('element'));
-            
-            delete YAHOO.widget.Layout._instances[this.get('id')];
-            //Brutal Object Destroy
-            for (var i in this) {
-                if (Lang.hasOwnProperty(this, i)) {
-                    this[i] = null;
-                    delete this[i];
-                }
-            }
-            
-            if (par) {
-                par.resize();
-            }
-        },
-        /**
-        * @method toString
-        * @description Returns a string representing the Layout.
-        * @return {String}
-        */        
-        toString: function() {
-            if (this.get) {
-                return 'Layout #' + this.get('id');
-            }
-            return 'Layout';
-        }
-    });
-    /**
-    * @event resize
-    * @description Fired when this.resize is called
-    * @type YAHOO.util.CustomEvent
-    */
-    /**
-    * @event startResize
-    * @description Fired when the Resize Utility for a Unit fires it's startResize Event.
-    * @type YAHOO.util.CustomEvent
-    */
-    /**
-    * @event beforeResize
-    * @description Fires at the beginning of the resize method. If you return false, the resize is cancelled.
-    * @type YAHOO.util.CustomEvent
-    */
-    /**
-    * @event render
-    * @description Fired after the render method completes.
-    * @type YAHOO.util.CustomEvent
-    */
-
-    YAHOO.widget.Layout = Layout;
-})();
-/**
- * @description <p>Provides a fixed position unit containing a header, body and footer for use with a YAHOO.widget.Layout instance.</p>
- * @namespace YAHOO.widget
- * @requires yahoo, dom, element, event, layout
- * @optional animation, dragdrop, selector
- */
-(function() {
-    var Dom = YAHOO.util.Dom,
-        Sel = YAHOO.util.Selector,
-        Event = YAHOO.util.Event,
-        Lang = YAHOO.lang;
-
-    /**
-     * @constructor
-     * @class LayoutUnit
-     * @extends YAHOO.util.Element
-     * @description <p>Provides a fixed position unit containing a header, body and footer for use with a YAHOO.widget.Layout instance.</p>
-     * @param {String/HTMLElement} el The element to make a unit.
-     * @param {Object} attrs Object liternal containing configuration parameters.
-    */
-
-    var LayoutUnit = function(el, config) {
-        
-        var oConfig = {
-            element: el,
-            attributes: config || {}
-        };
-
-        LayoutUnit.superclass.constructor.call(this, oConfig.element, oConfig.attributes);    
-    };
-
-    /**
-    * @private
-    * @static
-    * @property _instances
-    * @description Internal hash table for all layout unit instances
-    * @type Object
-    */ 
-    LayoutUnit._instances = {};
-    /**
-    * @static
-    * @method getLayoutUnitById 
-    * @description Get's a layout unit object by the HTML id of the element associated with the Layout Unit object.
-    * @return {Object} The Layout Object
-    */ 
-    LayoutUnit.getLayoutUnitById = function(id) {
-        if (LayoutUnit._instances[id]) {
-            return LayoutUnit._instances[id];
-        }
-        return false;
-    };
-
-    YAHOO.extend(LayoutUnit, YAHOO.util.Element, {
-        /**
-        * @property STR_CLOSE
-        * @description String used for close button title
-        * @type {String}
-        */
-        STR_CLOSE: 'Click to close this pane.',
-        /**
-        * @property STR_COLLAPSE
-        * @description String used for collapse button title
-        * @type {String}
-        */
-        STR_COLLAPSE: 'Click to collapse this pane.',
-        /**
-        * @property STR_EXPAND
-        * @description String used for expand button title
-        * @type {String}
-        */
-        STR_EXPAND: 'Click to expand this pane.',
-        /**
-           * The class name applied to dynamic tabs while loading.
-           * @property LOADING_CLASSNAME
-           * @type String
-           * @default "disabled"
-           */
-           LOADING_CLASSNAME: 'loading',
-        /**
-        * @property browser
-        * @description A modified version of the YAHOO.env.ua object
-        * @type Object
-        */
-        browser: null,
-        /**
-        * @private
-        * @property _sizes
-        * @description A collection of the current sizes of the contents of this Layout Unit
-        * @type Object
-        */
-        _sizes: null,
-        /**
-        * @private
-        * @property _anim
-        * @description A reference to the Animation instance used by this LayouUnit
-        * @type YAHOO.util.Anim
-        */
-        _anim: null,
-        /**
-        * @private
-        * @property _resize
-        * @description A reference to the Resize instance used by this LayoutUnit
-        * @type YAHOO.util.Resize
-        */
-        _resize: null,
-        /**
-        * @private
-        * @property _clip
-        * @description A reference to the clip element used when collapsing the unit
-        * @type HTMLElement
-        */
-        _clip: null,
-        /**
-        * @private
-        * @property _gutter
-        * @description A simple hash table used to store the gutter to apply to the Unit
-        * @type Object
-        */
-        _gutter: null,
-        /**
-        * @property header
-        * @description A reference to the HTML element used for the Header
-        * @type HTMLELement
-        */
-        header: null,
-        /**
-        * @property body
-        * @description A reference to the HTML element used for the body
-        * @type HTMLElement
-        */
-        body: null,
-        /**
-        * @property footer
-        * @description A reference to the HTML element used for the footer
-        * @type HTMLElement
-        */
-        footer: null,
-        /**
-        * @private
-        * @property _collapsed
-        * @description Flag to determine if the unit is collapsed or not.
-        * @type Boolean
-        */
-        _collapsed: null,
-        /**
-        * @private
-        * @property _collapsing
-        * @description A flag set while the unit is being collapsed, used so we don't fire events while animating the size
-        * @type Boolean
-        */
-        _collapsing: null,
-        /**
-        * @private
-        * @property _lastWidth
-        * @description A holder for the last known width of the unit
-        * @type Number
-        */
-        _lastWidth: null,
-        /**
-        * @private
-        * @property _lastHeight
-        * @description A holder for the last known height of the unit
-        * @type Number
-        */
-        _lastHeight: null,
-        /**
-        * @private
-        * @property _lastTop
-        * @description A holder for the last known top of the unit
-        * @type Number
-        */
-        _lastTop: null,
-        /**
-        * @private
-        * @property _lastLeft
-        * @description A holder for the last known left of the unit
-        * @type Number
-        */
-        _lastLeft: null,
-        /**
-        * @private
-        * @property _lastScroll
-        * @description A holder for the last known scroll state of the unit
-        * @type Boolean
-        */
-        _lastScroll: null,
-        /**
-        * @private
-        * @property _lastCenetrScroll
-        * @description A holder for the last known scroll state of the center unit
-        * @type Boolean
-        */
-        _lastCenterScroll: null,
-        /**
-        * @private
-        * @property _lastScrollTop
-        * @description A holder for the last known scrollTop state of the unit
-        * @type Number
-        */
-        _lastScrollTop: null,
-        /**
-        * @method resize
-        * @description Resize either the unit or it's clipped state, also updating the box inside
-        * @param {Boolean} force This will force full calculations even when the unit is collapsed
-        * @return {<a href="YAHOO.widget.LayoutUnit.html">YAHOO.widget.LayoutUnit</a>} The LayoutUnit instance
-        */
-        resize: function(force) {
-            YAHOO.log('Resize', 'info', 'LayoutUnit');
-            var retVal = this.fireEvent('beforeResize');
-            if (retVal === false) {
-                return this;
-            }
-            if (!this._collapsing || (force === true)) {
-                var scroll = this.get('scroll');
-                this.set('scroll', false);
-
-
-                var hd = this._getBoxSize(this.header),
-                    ft = this._getBoxSize(this.footer),
-                    box = [this.get('height'), this.get('width')];
-
-                var nh = (box[0] - hd[0] - ft[0]) - (this._gutter.top + this._gutter.bottom),
-                    nw = box[1] - (this._gutter.left + this._gutter.right);
-
-                var wrapH = (nh + (hd[0] + ft[0])),
-                    wrapW = nw;
-
-                if (this._collapsed && !this._collapsing) {
-                    this._setHeight(this._clip, wrapH);
-                    this._setWidth(this._clip, wrapW);
-                    Dom.setStyle(this._clip, 'top', this.get('top') + this._gutter.top + 'px');
-                    Dom.setStyle(this._clip, 'left', this.get('left') + this._gutter.left + 'px');
-                } else if (!this._collapsed || (this._collapsed && this._collapsing)) {
-                    wrapH = this._setHeight(this.get('wrap'), wrapH);
-                    wrapW = this._setWidth(this.get('wrap'), wrapW);
-                    this._sizes.wrap.h = wrapH;
-                    this._sizes.wrap.w = wrapW;
-
-                    Dom.setStyle(this.get('wrap'), 'top', this._gutter.top + 'px');
-                    Dom.setStyle(this.get('wrap'), 'left', this._gutter.left + 'px');
-
-                    this._sizes.header.w = this._setWidth(this.header, wrapW);
-                    this._sizes.header.h = hd[0];
-
-                    this._sizes.footer.w = this._setWidth(this.footer, wrapW);
-                    this._sizes.footer.h = ft[0];
-
-                    Dom.setStyle(this.footer, 'bottom', '0px');
-
-                    this._sizes.body.h = this._setHeight(this.body, (wrapH - (hd[0] + ft[0])));
-                    this._sizes.body.w =this._setWidth(this.body, wrapW);
-                    Dom.setStyle(this.body, 'top', hd[0] + 'px');
-
-                    this.set('scroll', scroll);
-                    this.fireEvent('resize');
-                }
-            }
-            return this;
-        },
-        /**
-        * @private
-        * @method _setWidth
-        * @description Sets the width of the element based on the border size of the element.
-        * @param {HTMLElement} el The HTMLElement to have it's width set
-        * @param {Number} w The width that you want it the element set to
-        * @return {Number} The new width, fixed for borders and IE QuirksMode
-        */
-        _setWidth: function(el, w) {
-            if (el) {
-                var b = this._getBorderSizes(el);
-                w = (w - (b[1] + b[3]));
-                w = this._fixQuirks(el, w, 'w');
-                if (w < 0) {
-                    w = 0;
-                }
-                Dom.setStyle(el, 'width', w + 'px');
-            }
-            return w;
-        },
-        /**
-        * @private
-        * @method _setHeight
-        * @description Sets the height of the element based on the border size of the element.
-        * @param {HTMLElement} el The HTMLElement to have it's height set
-        * @param {Number} h The height that you want it the element set to
-        * @return {Number} The new height, fixed for borders and IE QuirksMode
-        */
-        _setHeight: function(el, h) {
-            if (el) {
-                var b = this._getBorderSizes(el);
-                h = (h - (b[0] + b[2]));
-                h = this._fixQuirks(el, h, 'h');
-                if (h < 0) {
-                    h = 0;
-                }
-                Dom.setStyle(el, 'height', h + 'px');
-            }
-            return h;
-        },
-        /**
-        * @private
-        * @method _fixQuirks
-        * @description Fixes the box calculations for IE in QuirksMode
-        * @param {HTMLElement} el The HTMLElement to set the dimension on
-        * @param {Number} dim The number of the dimension to fix
-        * @param {String} side The dimension (h or w) to fix. Defaults to h
-        * @return {Number} The fixed dimension
-        */
-        _fixQuirks: function(el, dim, side) {
-            var i1 = 0, i2 = 2;
-            if (side == 'w') {
-                i1 = 1;
-                i2 = 3;
-            }
-            if ((this.browser.ie < 8) && !this.browser.standardsMode) {
-                //Internet Explorer - Quirks Mode
-                var b = this._getBorderSizes(el),
-                    bp = this._getBorderSizes(el.parentNode);
-                if ((b[i1] === 0) && (b[i2] === 0)) { //No Borders, check parent
-                    if ((bp[i1] !== 0) && (bp[i2] !== 0)) { //Parent has Borders
-                        dim = (dim - (bp[i1] + bp[i2]));
-                    }
-                } else {
-                    if ((bp[i1] === 0) && (bp[i2] === 0)) {
-                        dim = (dim + (b[i1] + b[i2]));
-                    }
-                }
-            }
-            return dim;
-        },
-        /**
-        * @private
-        * @method _getBoxSize
-        * @description Get's the elements clientHeight and clientWidth plus the size of the borders
-        * @param {HTMLElement} el The HTMLElement to get the size of
-        * @return {Array} An array of height and width
-        */
-        _getBoxSize: function(el) {
-            var size = [0, 0];
-            if (el) {
-                if (this.browser.ie && !this.browser.standardsMode) {
-                    el.style.zoom = 1;
-                }
-                var b = this._getBorderSizes(el);
-                size[0] = el.clientHeight + (b[0] + b[2]);
-                size[1] = el.clientWidth + (b[1] + b[3]);
-            }
-            return size;
-        },
-        /**
-        * @private
-        * @method _getBorderSizes
-        * @description Get the CSS border size of the element passed.
-        * @param {HTMLElement} el The element to get the border size of
-        * @return {Array} An array of the top, right, bottom, left borders.
-        */
-        _getBorderSizes: function(el) {
-            var s = [];
-            el = el || this.get('element');
-            if (this.browser.ie && !this.browser.standardsMode) {
-                el.style.zoom = 1;
-            }
-            s[0] = parseInt(Dom.getStyle(el, 'borderTopWidth'), 10);
-            s[1] = parseInt(Dom.getStyle(el, 'borderRightWidth'), 10);
-            s[2] = parseInt(Dom.getStyle(el, 'borderBottomWidth'), 10);
-            s[3] = parseInt(Dom.getStyle(el, 'borderLeftWidth'), 10);
-            
-            //IE will return NaN on these if they are set to auto, we'll set them to 0
-            for (var i = 0; i < s.length; i++) {
-                if (isNaN(s[i])) {
-                    s[i] = 0;
-                }
-            }
-            return s;
-        },
-        /**
-        * @private
-        * @method _createClip
-        * @description Create the clip element used when the Unit is collapsed
-        */
-        _createClip: function() {
-            if (!this._clip) {
-                this._clip = document.createElement('div');
-                this._clip.className = 'yui-layout-clip yui-layout-clip-' + this.get('position');
-                this._clip.innerHTML = '<div class="collapse"></div>';
-                var c = this._clip.firstChild;
-                c.title = this.STR_EXPAND;
-                Event.on(c, 'click', this.expand, this, true);
-                this.get('element').parentNode.appendChild(this._clip);
-            }
-        },
-        /**
-        * @private
-        * @method _toggleClip
-        * @description Toggle th current state of the Clip element and set it's height, width and position
-        */
-        _toggleClip: function() {
-            if (!this._collapsed) {
-                //show
-                var hd = this._getBoxSize(this.header),
-                    ft = this._getBoxSize(this.footer),
-                    box = [this.get('height'), this.get('width')];
-
-
-                var nh = (box[0] - hd[0] - ft[0]) - (this._gutter.top + this._gutter.bottom),
-                    nw = box[1] - (this._gutter.left + this._gutter.right),
-                    wrapH = (nh + (hd[0] + ft[0]));
-
-                switch (this.get('position')) {
-                    case 'top':
-                    case 'bottom':
-                        this._setWidth(this._clip, nw);
-                        this._setHeight(this._clip, this.get('collapseSize'));
-                        Dom.setStyle(this._clip, 'left', (this._lastLeft + this._gutter.left) + 'px');
-                        if (this.get('position') == 'bottom') {
-                            Dom.setStyle(this._clip, 'top', ((this._lastTop + this._lastHeight) - (this.get('collapseSize') - this._gutter.top)) + 'px');
-                        } else {
-                            Dom.setStyle(this._clip, 'top', this.get('top') + this._gutter.top + 'px');
-                        }
-                        break;
-                    case 'left':
-                    case 'right':
-                        this._setWidth(this._clip, this.get('collapseSize'));
-                        this._setHeight(this._clip, wrapH);
-                        Dom.setStyle(this._clip, 'top', (this.get('top') + this._gutter.top) + 'px');
-                        if (this.get('position') == 'right') {
-                            Dom.setStyle(this._clip, 'left', (((this._lastLeft + this._lastWidth) - this.get('collapseSize')) - this._gutter.left) + 'px');
-                        } else {
-                            Dom.setStyle(this._clip, 'left', (this.get('left') + this._gutter.left) + 'px');
-                        }
-                        break;
-                }
-
-                Dom.setStyle(this._clip, 'display', 'block');
-                this.setStyle('display', 'none');
-            } else {
-                //Hide
-                Dom.setStyle(this._clip, 'display', 'none');
-            }
-        },
-        /**
-        * @method getSizes
-        * @description Get a reference to the internal sizes object for this unit
-        * @return {Object} An object of the sizes used for calculations
-        */
-        getSizes: function() {
-            return this._sizes;
-        },
-        /**
-        * @method toggle
-        * @description Toggles the Unit, replacing it with a clipped version.
-        * @return {<a href="YAHOO.widget.LayoutUnit.html">YAHOO.widget.LayoutUnit</a>} The LayoutUnit instance
-        */
-        toggle: function() {
-            if (this._collapsed) {
-                this.expand();
-            } else {
-                this.collapse();
-            }
-            return this;
-        },
-        /**
-        * @method expand
-        * @description Expand the Unit if it is collapsed.
-        * @return {<a href="YAHOO.widget.LayoutUnit.html">YAHOO.widget.LayoutUnit</a>} The LayoutUnit instance
-        */
-        expand: function() {
-            if (!this._collapsed) {
-                return this;
-            }
-            var retVal = this.fireEvent('beforeExpand');
-            if (retVal === false) {
-                return this;
-            }
-
-            this._collapsing = true;
-            this.setStyle('zIndex', this.get('parent')._zIndex + 1);
-
-            if (this._anim) {
-                this.setStyle('display', 'none');
-                var attr = {}, s;
-
-                switch (this.get('position')) {
-                    case 'left':
-                    case 'right':
-                        this.set('width', this._lastWidth, true);
-                        this.setStyle('width', this._lastWidth + 'px');
-                        this.get('parent').resize(false);
-                        s = this.get('parent').getSizes()[this.get('position')];
-                        this.set('height', s.h, true);
-                        var left = s.l;
-                        attr = {
-                            left: {
-                                to: left
-                            }
-                        };
-                        if (this.get('position') == 'left') {
-                            attr.left.from = (left - s.w);
-                            this.setStyle('left', (left - s.w) + 'px');
-                        }
-                        break;
-                    case 'top':
-                    case 'bottom':
-                        this.set('height', this._lastHeight, true);
-                        this.setStyle('height', this._lastHeight + 'px');
-                        this.get('parent').resize(false);
-                        s = this.get('parent').getSizes()[this.get('position')];
-                        this.set('width', s.w, true);
-                        var top = s.t;
-                        attr = {
-                            top: {
-                                to: top
-                            }
-                        };
-                        if (this.get('position') == 'top') {
-                            this.setStyle('top',  (top - s.h) + 'px');
-                            attr.top.from = (top - s.h);
-                        }
-                        break;
-                }
-
-                this._anim.attributes = attr;
-                var exStart = function() {
-                    this.setStyle('display', 'block');
-                    this.resize(true);
-                    this._anim.onStart.unsubscribe(exStart, this, true);
-                };
-                var expand = function() {
-                    this._collapsing = false;
-                    this.setStyle('zIndex', this.get('parent')._zIndex);
-                    this.set('width', this._lastWidth);
-                    this.set('height', this._lastHeight);
-                    this._collapsed = false;
-                    this.resize();
-                    this.set('scroll', this._lastScroll);
-                    if (this._lastScrollTop > 0) {
-                        this.body.scrollTop = this._lastScrollTop;
-                    }
-                    this._anim.onComplete.unsubscribe(expand, this, true);
-                    this.fireEvent('expand');
-                };
-                this._anim.onStart.subscribe(exStart, this, true);
-                this._anim.onComplete.subscribe(expand, this, true);
-                this._anim.animate();
-                this._toggleClip();
-            } else {
-                this._collapsing = false;
-                this._toggleClip();
-                this._collapsed = false;
-                this.setStyle('zIndex', this.get('parent')._zIndex);
-                this.setStyle('display', 'block');
-                this.set('width', this._lastWidth);
-                this.set('height', this._lastHeight);
-                this.resize();
-                this.set('scroll', this._lastScroll);
-                if (this._lastScrollTop > 0) {
-                    this.body.scrollTop = this._lastScrollTop;
-                }
-                this.fireEvent('expand');
-            }
-            return this;
-        },
-        /**
-        * @method collapse
-        * @description Collapse the Unit if it is not collapsed.
-        * @return {<a href="YAHOO.widget.LayoutUnit.html">YAHOO.widget.LayoutUnit</a>} The LayoutUnit instance
-        */
-        collapse: function() {
-            if (this._collapsed) {
-                return this;
-            }
-            var retValue = this.fireEvent('beforeCollapse');
-            if (retValue === false) {
-                return this;
-            }
-            if (!this._clip) {
-                this._createClip();
-            }
-            this._collapsing = true;
-            var w = this.get('width'),
-                h = this.get('height'),
-                attr = {};
-            this._lastWidth = w;
-            this._lastHeight = h;
-            this._lastScroll = this.get('scroll');
-            this._lastScrollTop = this.body.scrollTop;            
-            this.set('scroll', false, true);
-            this._lastLeft = parseInt(this.get('element').style.left, 10);
-            this._lastTop = parseInt(this.get('element').style.top, 10);
-            if (isNaN(this._lastTop)) {
-                this._lastTop = 0;
-                this.set('top', 0);
-            }
-            if (isNaN(this._lastLeft)) {
-                this._lastLeft = 0;
-                this.set('left', 0);
-            }
-            this.setStyle('zIndex', this.get('parent')._zIndex + 1);
-            var pos = this.get('position');
-
-            switch (pos) {
-                case 'top':
-                case 'bottom':
-                    this.set('height', (this.get('collapseSize') + (this._gutter.top + this._gutter.bottom)));
-                    attr = {
-                        top: {
-                            to: (this.get('top') - h)
-                        }
-                    };
-                    if (pos == 'bottom') {
-                        attr.top.to = (this.get('top') + h);
-                    }
-                    break;
-                case 'left':
-                case 'right':
-                    this.set('width', (this.get('collapseSize') + (this._gutter.left + this._gutter.right)));
-                    attr = {
-                        left: {
-                            to: -(this._lastWidth)
-                        }
-                    };
-                    if (pos == 'right') {
-                        attr.left = {
-                            to: (this.get('left') + w)
-                        };
-                    }
-                    break;
-            }
-            if (this._anim) {
-                this._anim.attributes = attr;
-                var collapse = function() {
-                    this._collapsing = false;
-                    this._toggleClip();
-                    this.setStyle('zIndex', this.get('parent')._zIndex);
-                    this._collapsed = true;
-                    this.get('parent').resize();
-                    this._anim.onComplete.unsubscribe(collapse, this, true);
-                    this.fireEvent('collapse');
-                };
-                this._anim.onComplete.subscribe(collapse, this, true);
-                this._anim.animate();
-            } else {
-                this._collapsing = false;
-                this.setStyle('display', 'none');
-                this._toggleClip();
-                this.setStyle('zIndex', this.get('parent')._zIndex);
-                this.get('parent').resize();
-                this._collapsed = true;
-                this.fireEvent('collapse');
-            }
-            return this;
-        },
-        /**
-        * @method close
-        * @description Close the unit, removing it from the parent Layout.
-        * @return {<a href="YAHOO.widget.Layout.html">YAHOO.widget.Layout</a>} The parent Layout instance
-        */
-        close: function() {
-            this.setStyle('display', 'none');
-            this.get('parent').removeUnit(this);
-            this.fireEvent('close');
-            if (this._clip) {
-                this._clip.parentNode.removeChild(this._clip);
-                this._clip = null;
-            }
-            return this.get('parent');
-        },
-               /**
-        * @property loadHandler
-        * @description Callback method for the YUI Connection Manager used for load the body using AJAX
-        * @type Object
-        */
-               loadHandler: {
-            success: function(o) {
-                               this.body.innerHTML = o.responseText;
-                               this.resize (true);
-            },
-            failure: function(o) {
-            }
-        },
-               /**
-        * @property dataConnection
-        * @description YUI Connection Manager handler
-        * @type Object
-        */
-               dataConnection: null,
-               /**
-        * @private
-        * @property _loading
-        * @description During the loading process this variable will be true
-        * @type Number
-        */
-        _loading: false,
-               /**
-        * @method loadContent
-        * @description Loading the content of the unit using the connection manager
-        * @return {object} YUI Connection Manager handler
-        */
-        loadContent: function() {
-                       // load dynamic content unless already loading or loaded and caching
-                       if (YAHOO.util.Connect && this.get('dataSrc') && !this._loading && !this.get('dataLoaded')) {
-                       this._loading = true; 
-                       Dom.addClass(this.body, this.LOADING_CLASSNAME);
-                               this.dataConnection = YAHOO.util.Connect.asyncRequest(
-                           this.get('loadMethod'),
-                           this.get('dataSrc'), 
-                           {
-                               success: function(o) {
-                                   this.loadHandler.success.call(this, o);
-                                   this.set('dataLoaded', true);
-                                   this.dataConnection = null;
-                                   Dom.removeClass(this.body, this.LOADING_CLASSNAME);
-                                                       this._loading = false;
-                                                       this.fireEvent('load');
-                               },
-                               failure: function(o) {
-                                   this.loadHandler.failure.call(this, o);
-                                   this.dataConnection = null;
-                                   Dom.removeClass(this.body, this.LOADING_CLASSNAME);
-                                   this._loading = false;
-                                                       this.fireEvent('loadError', { error: o });
-                               },
-                               scope: this,
-                               timeout: this.get('dataTimeout')
-                           }
-                       );
-                               return this.dataConnection;
-               }
-                       return false;
-        },
-        /**
-        * @private
-        * @method init
-        * @description The initalization method inherited from Element.
-        */
-        init: function(p_oElement, p_oAttributes) {
-            YAHOO.log('init', 'info', 'LayoutUnit');
-            this._gutter = {
-                left: 0,
-                right: 0,
-                top: 0,
-                bottom: 0
-            };
-            this._sizes = {
-                wrap: {
-                    h: 0,
-                    w: 0
-                },
-                header: {
-                    h: 0,
-                    w: 0
-                },
-                body: {
-                    h: 0,
-                    w: 0
-                },
-                footer: {
-                    h: 0,
-                    w: 0
-                }
-            };
-            
-            LayoutUnit.superclass.init.call(this, p_oElement, p_oAttributes);
-
-            this.browser = this.get('parent').browser;
-            
-            var id = p_oElement;
-            if (!Lang.isString(id)) {
-                id = Dom.generateId(id);
-            }
-            LayoutUnit._instances[id] = this;
-
-            this.setStyle('position', 'absolute');
-
-            this.addClass('yui-layout-unit');
-            this.addClass('yui-layout-unit-' + this.get('position'));
-
-
-            var header = this.getElementsByClassName('yui-layout-hd', 'div')[0];
-            if (header) {
-                this.header = header;
-            }
-            var body = this.getElementsByClassName('yui-layout-bd', 'div')[0];
-            if (body) {
-                this.body = body;
-            }
-            var footer = this.getElementsByClassName('yui-layout-ft', 'div')[0];
-            if (footer) {
-                this.footer = footer;
-            }
-
-            this.on('contentChange', this.resize, this, true);
-            this._lastScrollTop = 0;
-
-            this.set('animate', this.get('animate'));
-        },
-        /**
-        * @private
-        * @method initAttributes
-        * @description Processes the config
-        */        
-        initAttributes: function(attr) {
-            LayoutUnit.superclass.initAttributes.call(this, attr);
-
-            /**
-            * @private
-            * @attribute wrap
-            * @description A reference to the wrap element
-            * @type HTMLElement
-            */
-            this.setAttributeConfig('wrap', {
-                value: attr.wrap || null,
-                method: function(w) {
-                    if (w) {
-                        var id = Dom.generateId(w);
-                        LayoutUnit._instances[id] = this;
-                    }
-                }
-            });
-            /**
-            * @attribute grids
-            * @description Set this option to true if you want the LayoutUnit to fix the first layer of YUI CSS Grids (margins)
-            * @type Boolean
-            */
-            this.setAttributeConfig('grids', {
-                value: attr.grids || false
-            });
-            /**
-            * @private
-            * @attribute top
-            * @description The current top positioning of the Unit
-            * @type Number
-            */
-            this.setAttributeConfig('top', {
-                value: attr.top || 0,
-                validator: Lang.isNumber,
-                method: function(t) {
-                    if (!this._collapsing) {
-                        this.setStyle('top', t + 'px');
-                    }
-                }
-            });
-            /**
-            * @private
-            * @attribute left
-            * @description The current left position of the Unit
-            * @type Number
-            */
-            this.setAttributeConfig('left', {
-                value: attr.left || 0,
-                validator: Lang.isNumber,
-                method: function(l) {
-                    if (!this._collapsing) {
-                        this.setStyle('left', l + 'px');
-                    }
-                }
-            });
-
-            /**
-            * @attribute minWidth
-            * @description The minWidth parameter passed to the Resize Utility
-            * @type Number
-            */
-            this.setAttributeConfig('minWidth', {
-                value: attr.minWidth || false,
-                method: function(v) {
-                    if (this._resize) {
-                        this._resize.set('minWidth', v);
-                    }
-                },
-                validator: YAHOO.lang.isNumber
-            });
-
-            /**
-            * @attribute maxWidth
-            * @description The maxWidth parameter passed to the Resize Utility
-            * @type Number
-            */
-            this.setAttributeConfig('maxWidth', {
-                value: attr.maxWidth || false,
-                method: function(v) {
-                    if (this._resize) {
-                        this._resize.set('maxWidth', v);
-                    }
-                },
-                validator: YAHOO.lang.isNumber
-            });
-
-            /**
-            * @attribute minHeight
-            * @description The minHeight parameter passed to the Resize Utility
-            * @type Number
-            */
-            this.setAttributeConfig('minHeight', {
-                value: attr.minHeight || false,
-                method: function(v) {
-                    if (this._resize) {
-                        this._resize.set('minHeight', v);
-                    }
-                },
-                validator: YAHOO.lang.isNumber
-            });
-
-            /**
-            * @attribute maxHeight
-            * @description The maxHeight parameter passed to the Resize Utility
-            * @type Number
-            */
-            this.setAttributeConfig('maxHeight', {
-                value: attr.maxHeight || false,
-                method: function(v) {
-                    if (this._resize) {
-                        this._resize.set('maxHeight', v);
-                    }
-                },
-                validator: YAHOO.lang.isNumber
-            });
-
-            /**
-            * @attribute height
-            * @description The height of the Unit
-            * @type Number
-            */
-            this.setAttributeConfig('height', {
-                value: attr.height,
-                validator: Lang.isNumber,
-                method: function(h) {
-                    if (!this._collapsing) {
-                        if (h < 0) {
-                            h = 0;
-                        }
-                        this.setStyle('height', h + 'px');
-                    }
-                }
-            });
-
-            /**
-            * @attribute width
-            * @description The width of the Unit
-            * @type Number
-            */
-            this.setAttributeConfig('width', {
-                value: attr.width,
-                validator: Lang.isNumber,
-                method: function(w) {
-                    if (!this._collapsing) {
-                        if (w < 0) {
-                            w = 0;
-                        }
-                        this.setStyle('width', w + 'px');
-                    }
-                }
-            });
-            /**
-            * @attribute zIndex
-            * @description The CSS zIndex to give to the unit, so you can have overlapping elements such as menus in a unit.
-            * @type {Number}
-            */
-            this.setAttributeConfig('zIndex', {
-                value: attr.zIndex || false,
-                method: function(z) {
-                    this.setStyle('zIndex', z);
-                }
-            });
-            /**
-            * @attribute position
-            * @description The position (top, right, bottom, left or center) of the Unit in the Layout
-            * @type {String}
-            */
-            this.setAttributeConfig('position', {
-                value: attr.position
-            });
-            /**
-            * @attribute gutter
-            * @description The gutter that we should apply to the parent Layout around this Unit. Supports standard CSS markup: (2 4 0 5) or (2) or (2 5)
-            * @type String
-            */
-            this.setAttributeConfig('gutter', {
-                value: attr.gutter || 0,
-                validator: YAHOO.lang.isString,
-                method: function(gutter) {
-                    var p = gutter.split(' ');
-                    if (p.length) {
-                        this._gutter.top = parseInt(p[0], 10);
-                        if (p[1]) {
-                            this._gutter.right = parseInt(p[1], 10);
-                        } else {
-                            this._gutter.right = this._gutter.top;
-                        }
-                        if (p[2]) {
-                            this._gutter.bottom = parseInt(p[2], 10);
-                        } else {
-                            this._gutter.bottom = this._gutter.top;
-                        }
-                        if (p[3]) {
-                            this._gutter.left = parseInt(p[3], 10);
-                        } else if (p[1]) {
-                            this._gutter.left = this._gutter.right;
-                        } else {
-                            this._gutter.left = this._gutter.top;
-                        }
-                    }
-                }
-            });
-            /**
-            * @attribute parent
-            * @description The parent Layout that we are assigned to
-            * @type {Object} YAHOO.widget.Layout
-            */
-            this.setAttributeConfig('parent', {
-                writeOnce: true,
-                value: attr.parent || false,
-                method: function(p) {
-                    if (p) {
-                        p.on('resize', this.resize, this, true);
-                    }
-
-                }
-            });
-            /**
-            * @attribute collapseSize
-            * @description The pixel size of the Clip that we will collapse to
-            * @type Number
-            */
-            this.setAttributeConfig('collapseSize', {
-                value: attr.collapseSize || 25,
-                validator: YAHOO.lang.isNumber
-            });
-            /**
-            * @attribute duration
-            * @description The duration to give the Animation Utility when animating the opening and closing of Units
-            */
-            this.setAttributeConfig('duration', {
-                value: attr.duration || 0.5
-            });
-            /**
-            * @attribute easing
-            * @description The Animation Easing to apply to the Animation instance for this unit.
-            */
-            this.setAttributeConfig('easing', {
-                value: attr.easing || ((YAHOO.util && YAHOO.util.Easing) ? YAHOO.util.Easing.BounceIn : 'false')
-            });
-            /**
-            * @attribute animate
-            * @description Use animation to collapse/expand the unit
-            * @type Boolean
-            */
-            this.setAttributeConfig('animate', {
-                value: ((attr.animate === false) ? false : true),
-                validator: function() {
-                    var anim = false;
-                    if (YAHOO.util.Anim) {
-                        anim = true;
-                    }
-                    return anim;
-                },
-                method: function(anim) {
-                    if (anim) {
-                        this._anim = new YAHOO.util.Anim(this.get('element'), {}, this.get('duration'), this.get('easing'));
-                    } else {
-                        this._anim = false;
-                    }
-                }
-            });
-            /**
-            * @attribute header
-            * @description The text to use as the Header of the Unit
-            */
-            this.setAttributeConfig('header', {
-                value: attr.header || false,
-                method: function(txt) {
-                    if (txt === false) {
-                        //Remove the footer
-                        if (this.header) {
-                            Dom.addClass(this.body, 'yui-layout-bd-nohd');
-                            this.header.parentNode.removeChild(this.header);
-                            this.header = null;
-                        }
-                    } else {
-                        if (!this.header) {
-                            var header = this.getElementsByClassName('yui-layout-hd', 'div')[0];
-                            if (!header) {
-                                header = this._createHeader();
-                            }
-                            this.header = header;
-                        }
-                        var h = this.header.getElementsByTagName('h2')[0];
-                        if (!h) {
-                            h = document.createElement('h2');
-                            this.header.appendChild(h);
-                        }
-                        h.innerHTML = txt;
-                        if (this.body) {
-                            Dom.removeClass(this.body, 'yui-layout-bd-nohd');
-                        }
-                    }
-                    this.fireEvent('contentChange', { target: 'header' });
-                }
-            });
-            /**
-            * @attribute proxy
-            * @description Use the proxy config setting for the Resize Utility
-            * @type Boolean
-            */
-            this.setAttributeConfig('proxy', {
-                writeOnce: true,
-                value: ((attr.proxy === false) ? false : true)
-            });
-            /**
-            * @attribute body
-            * @description The content for the body. If we find an element in the page with an id that matches the passed option we will move that element into the body of this unit.
-            */
-            this.setAttributeConfig('body', {
-                value: attr.body || false,
-                method: function(content) {
-                    if (!this.body) {
-                        var body = this.getElementsByClassName('yui-layout-bd', 'div')[0];
-                        if (body) {
-                            this.body = body;
-                        } else {
-                            body = document.createElement('div');
-                            body.className = 'yui-layout-bd';
-                            this.body = body;
-                            this.get('wrap').appendChild(body);
-                        }
-                    }
-                    if (!this.header) {
-                        Dom.addClass(this.body, 'yui-layout-bd-nohd');
-                    }
-                    Dom.addClass(this.body, 'yui-layout-bd-noft');
-
-
-                    var el = null;
-                    if (Lang.isString(content)) {
-                        el = Dom.get(content);
-                    } else if (content && content.tagName) {
-                        el = content;
-                    }
-                    if (el) {
-                        var id = Dom.generateId(el);
-                        LayoutUnit._instances[id] = this;
-                        this.body.appendChild(el);
-                    } else {
-                        this.body.innerHTML = content;
-                    }
-
-                    this._cleanGrids();
-
-                    this.fireEvent('contentChange', { target: 'body' });
-                }
-            });
-
-            /**
-            * @attribute footer
-            * @description The content for the footer. If we find an element in the page with an id that matches the passed option we will move that element into the footer of this unit.
-            */
-            this.setAttributeConfig('footer', {
-                value: attr.footer || false,
-                method: function(content) {
-                    if (content === false) {
-                        //Remove the footer
-                        if (this.footer) {
-                            Dom.addClass(this.body, 'yui-layout-bd-noft');
-                            this.footer.parentNode.removeChild(this.footer);
-                            this.footer = null;
-                        }
-                    } else {
-                        if (!this.footer) {
-                            var ft = this.getElementsByClassName('yui-layout-ft', 'div')[0];
-                            if (!ft) {
-                                ft = document.createElement('div');
-                                ft.className = 'yui-layout-ft';
-                                this.footer = ft;
-                                this.get('wrap').appendChild(ft);
-                            } else {
-                                this.footer = ft;
-                            }
-                        }
-                        var el = null;
-                        if (Lang.isString(content)) {
-                            el = Dom.get(content);
-                        } else if (content && content.tagName) {
-                            el = content;
-                        }
-                        if (el) {
-                            this.footer.appendChild(el);
-                        } else {
-                            this.footer.innerHTML = content;
-                        }
-                        Dom.removeClass(this.body, 'yui-layout-bd-noft');
-                    }
-                    this.fireEvent('contentChange', { target: 'footer' });
-                }
-            });
-            /**
-            * @attribute close
-            * @description Adds a close icon to the unit
-            */
-            this.setAttributeConfig('close', {
-                value: attr.close || false,
-                method: function(close) {
-                    //Position Center doesn't get this
-                    if (this.get('position') == 'center') {
-                        YAHOO.log('Position center unit cannot have close', 'error', 'LayoutUnit');
-                        return false;
-                    }
-                    if (!this.header && close) {
-                        this._createHeader();
-                    }
-                    var c = Dom.getElementsByClassName('close', 'div', this.header)[0];
-                    if (close) {
-                        //Force some header text if there isn't any
-                        if (!this.get('header')) {
-                            this.set('header', '&nbsp;');
-                        }
-                        if (!c) {
-                            c = document.createElement('div');
-                            c.className = 'close';
-                            this.header.appendChild(c);
-                            Event.on(c, 'click', this.close, this, true);
-                        }
-                        c.title = this.STR_CLOSE;
-                    } else if (c && c.parentNode) {
-                        Event.purgeElement(c);
-                        c.parentNode.removeChild(c);
-                    }
-                    this._configs.close.value = close;
-                    this.set('collapse', this.get('collapse')); //Reset so we get the right classnames
-                }
-            });
-
-            /**
-            * @attribute collapse
-            * @description Adds a collapse icon to the unit
-            */
-            this.setAttributeConfig('collapse', {
-                value: attr.collapse || false,
-                method: function(collapse) {
-                    //Position Center doesn't get this
-                    if (this.get('position') == 'center') {
-                        YAHOO.log('Position center unit cannot have collapse', 'error', 'LayoutUnit');
-                        return false;
-                    }
-                    if (!this.header && collapse) {
-                        this._createHeader();
-                    }
-                    var c = Dom.getElementsByClassName('collapse', 'div', this.header)[0];
-                    if (collapse) {
-                        //Force some header text if there isn't any
-                        if (!this.get('header')) {
-                            this.set('header', '&nbsp;');
-                        }
-                        if (!c) {
-                            c = document.createElement('div');
-                            this.header.appendChild(c);
-                            Event.on(c, 'click', this.collapse, this, true);
-                        }
-                        c.title = this.STR_COLLAPSE;
-                        c.className = 'collapse' + ((this.get('close')) ? ' collapse-close' : '');
-                    } else if (c && c.parentNode) {
-                        Event.purgeElement(c);
-                        c.parentNode.removeChild(c);
-                    }
-                }
-            });
-            /**
-            * @attribute scroll
-            * @description Adds a class to the unit to allow for overflow: auto (yui-layout-scroll), default is overflow: hidden (yui-layout-noscroll). If true scroll bars will be placed on the element when the content exceeds the given area, false will put overflow hidden to hide the content. Passing null will render the content as usual overflow.
-            * @type Boolean/Null
-            */
-
-            this.setAttributeConfig('scroll', {
-                value: (((attr.scroll === true) || (attr.scroll === false) || (attr.scroll === null)) ? attr.scroll : false),
-                method: function(scroll) {
-                    if ((scroll === false) && !this._collapsed) { //Removing scroll bar
-                        if (this.body) {
-                            if (this.body.scrollTop > 0) {
-                                this._lastScrollTop = this.body.scrollTop;
-                            }
-                        }
-                    }
-                    
-                    if (scroll === true) {
-                        this.addClass('yui-layout-scroll');
-                        this.removeClass('yui-layout-noscroll');
-                        if (this._lastScrollTop > 0) {
-                            if (this.body) {
-                                this.body.scrollTop = this._lastScrollTop;
-                            }
-                        }
-                    } else if (scroll === false) {
-                        this.removeClass('yui-layout-scroll');
-                        this.addClass('yui-layout-noscroll');
-                    } else if (scroll === null) {
-                        this.removeClass('yui-layout-scroll');
-                        this.removeClass('yui-layout-noscroll');
-                    }
-                }
-            });
-            /**
-            * @attribute hover
-            * @description Config option to pass to the Resize Utility
-            */
-            this.setAttributeConfig('hover', {
-                writeOnce: true,
-                value: attr.hover || false,
-                validator: YAHOO.lang.isBoolean
-            });
-            /**
-            * @attribute useShim
-            * @description Config option to pass to the Resize Utility
-            */
-            this.setAttributeConfig('useShim', {
-                value: attr.useShim || false,
-                validator: YAHOO.lang.isBoolean,
-                method: function(u) {
-                    if (this._resize) {
-                        this._resize.set('useShim', u);
-                    }
-                }
-            });
-            /**
-            * @attribute resize
-            * @description Should a Resize instance be added to this unit
-            */
-
-            this.setAttributeConfig('resize', {
-                value: attr.resize || false,
-                validator: function(r) {
-                    if (YAHOO.util && YAHOO.util.Resize) {
-                        return true;
-                    }
-                    return false;
-                },
-                method: function(resize) {
-                    if (resize && !this._resize) {
-                        //Position Center doesn't get this
-                        if (this.get('position') == 'center') {
-                            YAHOO.log('Position center unit cannot have resize', 'error', 'LayoutUnit');
-                            return false;
-                        }
-                        var handle = false; //To catch center
-                        switch (this.get('position')) {
-                            case 'top':
-                                handle = 'b';
-                                break;
-                            case 'bottom':
-                                handle = 't';
-                                break;
-                            case 'right':
-                                handle = 'l';
-                                break;
-                            case 'left':
-                                handle = 'r';
-                                break;
-                        }
-
-                        this.setStyle('position', 'absolute'); //Make sure Resize get's a position
-                        
-                        if (handle) {
-                            this._resize = new YAHOO.util.Resize(this.get('element'), {
-                                proxy: this.get('proxy'),
-                                hover: this.get('hover'),
-                                status: false,
-                                autoRatio: false,
-                                handles: [handle],
-                                minWidth: this.get('minWidth'),
-                                maxWidth: this.get('maxWidth'),
-                                minHeight: this.get('minHeight'),
-                                maxHeight: this.get('maxHeight'),
-                                height: this.get('height'),
-                                width: this.get('width'),
-                                setSize: false,
-                                useShim: this.get('useShim'),
-                                wrap: false
-                            });
-                            
-                            this._resize._handles[handle].innerHTML = '<div class="yui-layout-resize-knob"></div>';
-
-                            if (this.get('proxy')) {
-                                var proxy = this._resize.getProxyEl();
-                                proxy.innerHTML = '<div class="yui-layout-handle-' + handle + '"></div>';
-                            }
-                            this._resize.on('startResize', function(ev) {
-                                this._lastScroll = this.get('scroll');
-                                this.set('scroll', false);
-                                if (this.get('parent')) {
-                                    this.get('parent').fireEvent('startResize');
-                                    var c = this.get('parent').getUnitByPosition('center');
-                                    this._lastCenterScroll = c.get('scroll');
-                                    c.addClass(this._resize.CSS_RESIZING);
-                                    c.set('scroll', false);
-                                }
-                                this.fireEvent('startResize');
-                            }, this, true);
-                            this._resize.on('resize', function(ev) {
-                                this.set('height', ev.height);
-                                this.set('width', ev.width);
-                            }, this, true);
-                            this._resize.on('endResize', function(ev) {
-                                this.set('scroll', this._lastScroll);
-                                if (this.get('parent')) {
-                                    var c = this.get('parent').getUnitByPosition('center');
-                                    c.set('scroll', this._lastCenterScroll);
-                                    c.removeClass(this._resize.CSS_RESIZING);
-                                }
-                                this.resize();
-                                this.fireEvent('endResize');
-                            }, this, true);
-                        }
-                    } else {
-                        if (this._resize) {
-                            this._resize.destroy();
-                        }
-                    }
-                }
-            });
-                       /**
-                * The unit data source, used for loading content dynamically.
-                * @attribute dataSrc
-                * @type String
-                */
-               this.setAttributeConfig('dataSrc', {
-                   value: attr.dataSrc
-               });
-               /**
-                * The method to use for the data request.
-                * @attribute loadMethod
-                * @type String
-                * @default "GET"
-                */
-               this.setAttributeConfig('loadMethod', {
-                   value: attr.loadMethod || 'GET',
-                   validator: YAHOO.lang.isString
-               });     
-               /**
-                * Whether or not any data has been loaded from the server.
-                * @attribute dataLoaded
-                * @type Boolean
-                */        
-               this.setAttributeConfig('dataLoaded', {
-                   value: false,
-                   validator: YAHOO.lang.isBoolean,
-                   writeOnce: true
-               });
-               /**
-                * Number if milliseconds before aborting and calling failure handler.
-                * @attribute dataTimeout
-                * @type Number
-                * @default null
-                */
-               this.setAttributeConfig('dataTimeout', {
-                   value: attr.dataTimeout || null,
-                   validator: YAHOO.lang.isNumber
-               });
-        },
-        /**
-        * @private
-        * @method _cleanGrids
-        * @description This method attempts to clean up the first level of the YUI CSS Grids, YAHOO.util.Selector is required for this operation.
-        */
-        _cleanGrids: function() {
-            if (this.get('grids')) {
-                var b = Sel.query('div.yui-b', this.body, true);
-                if (b) {
-                    Dom.removeClass(b, 'yui-b');
-                }
-                Event.onAvailable('yui-main', function() {
-                    Dom.setStyle(Sel.query('#yui-main'), 'margin-left', '0');
-                    Dom.setStyle(Sel.query('#yui-main'), 'margin-right', '0');
-                });
-            }
-        },
-        /**
-        * @private
-        * @method _createHeader
-        * @description Creates the HTMLElement for the header
-        * @return {HTMLElement} The new HTMLElement
-        */
-        _createHeader: function() {
-            var header = document.createElement('div');
-            header.className = 'yui-layout-hd';
-            if (this.get('firstChild')) {
-                this.get('wrap').insertBefore(header, this.get('wrap').firstChild);
-            } else {
-                this.get('wrap').appendChild(header);
-            }
-            this.header = header;
-            return header;
-        },
-        /**
-        * @method destroy
-        * @param {Boolean} force Don't report to the parent, because we are being called from the parent.
-        * @description Removes this unit from the parent and cleans up after itself.
-        * @return {<a href="YAHOO.widget.Layout.html">YAHOO.widget.Layout</a>} The parent Layout instance
-        */
-        destroy: function(force) {
-            if (this._resize) {
-                this._resize.destroy();
-            }
-            var par = this.get('parent');
-
-            this.setStyle('display', 'none');
-            if (this._clip) {
-                this._clip.parentNode.removeChild(this._clip);
-                this._clip = null;
-            }
-
-            if (!force) {
-                par.removeUnit(this);
-            }
-            
-            if (par) {
-                par.removeListener('resize', this.resize, this, true);
-            }
-            this.unsubscribeAll();
-            Event.purgeElement(this.get('element'));
-            this.get('parentNode').removeChild(this.get('element'));
-
-            delete YAHOO.widget.LayoutUnit._instances[this.get('id')];
-            //Brutal Object Destroy
-            for (var i in this) {
-                if (Lang.hasOwnProperty(this, i)) {
-                    this[i] = null;
-                    delete this[i];
-                }
-            }
-        
-            return par;
-        },
-        /**
-        * @method toString
-        * @description Returns a string representing the LayoutUnit.
-        * @return {String}
-        */        
-        toString: function() {
-            if (this.get) {
-                return 'LayoutUnit #' + this.get('id') + ' (' + this.get('position') + ')';
-            }
-            return 'LayoutUnit';
-        }
-    /**
-    * @event resize
-    * @description Fired when this.resize is called
-    * @type YAHOO.util.CustomEvent
-    */
-    /**
-    * @event startResize
-    * @description Fired when the Resize Utility fires it's startResize Event.
-    * @type YAHOO.util.CustomEvent
-    */
-    /**
-    * @event endResize
-    * @description Fired when the Resize Utility fires it's endResize Event.
-    * @type YAHOO.util.CustomEvent
-    */
-    /**
-    * @event beforeResize
-    * @description Fired at the beginning of the resize method. If you return false, the resize is cancelled.
-    * @type YAHOO.util.CustomEvent
-    */
-    /**
-    * @event contentChange
-    * @description Fired when the content in the header, body or footer is changed via the API
-    * @type YAHOO.util.CustomEvent
-    */
-    /**
-    * @event close
-    * @description Fired when the unit is closed
-    * @type YAHOO.util.CustomEvent
-    */
-    /**
-    * @event beforeCollapse
-    * @description Fired before the unit is collapsed. If you return false, the collapse is cancelled.
-    * @type YAHOO.util.CustomEvent
-    */
-    /**
-    * @event collapse
-    * @description Fired when the unit is collapsed
-    * @type YAHOO.util.CustomEvent
-    */
-    /**
-    * @event expand
-    * @description Fired when the unit is exanded
-    * @type YAHOO.util.CustomEvent
-    */
-    /**
-    * @event beforeExpand
-    * @description Fired before the unit is exanded. If you return false, the collapse is cancelled.
-    * @type YAHOO.util.CustomEvent
-    */
-    /**
-    * @event load
-    * @description Fired when data is loaded via the dataSrc config.
-    * @type YAHOO.util.CustomEvent
-    */
-    /**
-    * @event loadError
-    * @description Fired when an error occurs loading data via the dataSrc config. Error message is passed as argument to this event.
-    * @type YAHOO.util.CustomEvent
-    */
-    });
-
-    YAHOO.widget.LayoutUnit = LayoutUnit;
-})();
-YAHOO.register("layout", YAHOO.widget.Layout, {version: "2.8.0r4", build: "2449"});
diff --git a/koha-tmpl/intranet-tmpl/prog/en/lib/yui/layout/layout-min.js b/koha-tmpl/intranet-tmpl/prog/en/lib/yui/layout/layout-min.js
deleted file mode 100644 (file)
index 157d1d9..0000000
+++ /dev/null
@@ -1,11 +0,0 @@
-/*
-Copyright (c) 2009, Yahoo! Inc. All rights reserved.
-Code licensed under the BSD License:
-http://developer.yahoo.net/yui/license.txt
-version: 2.8.0r4
-*/
-(function(){var C=YAHOO.util.Dom,A=YAHOO.util.Event,D=YAHOO.lang;var B=function(F,E){if(D.isObject(F)&&!F.tagName){E=F;F=null;}if(D.isString(F)){if(C.get(F)){F=C.get(F);}}if(!F){F=document.body;}var G={element:F,attributes:E||{}};B.superclass.constructor.call(this,G.element,G.attributes);};B._instances={};B.getLayoutById=function(E){if(B._instances[E]){return B._instances[E];}return false;};YAHOO.extend(B,YAHOO.util.Element,{browser:function(){var E=YAHOO.env.ua;E.standardsMode=false;E.secure=false;return E;}(),_units:null,_rendered:null,_zIndex:null,_sizes:null,_setBodySize:function(G){var F=0,E=0;G=((G===false)?false:true);if(this._isBody){F=C.getClientHeight();E=C.getClientWidth();}else{F=parseInt(this.getStyle("height"),10);E=parseInt(this.getStyle("width"),10);if(isNaN(E)){E=this.get("element").clientWidth;}if(isNaN(F)){F=this.get("element").clientHeight;}}if(this.get("minWidth")){if(E<this.get("minWidth")){E=this.get("minWidth");}}if(this.get("minHeight")){if(F<this.get("minHeight")){F=this.get("minHeight");}}if(G){if(F<0){F=0;}if(E<0){E=0;}C.setStyle(this._doc,"height",F+"px");C.setStyle(this._doc,"width",E+"px");}this._sizes.doc={h:F,w:E};this._setSides(G);},_setSides:function(J){var H=((this._units.top)?this._units.top.get("height"):0),G=((this._units.bottom)?this._units.bottom.get("height"):0),I=this._sizes.doc.h,E=this._sizes.doc.w;J=((J===false)?false:true);this._sizes.top={h:H,w:((this._units.top)?E:0),t:0};this._sizes.bottom={h:G,w:((this._units.bottom)?E:0)};var F=(I-(H+G));this._sizes.left={h:F,w:((this._units.left)?this._units.left.get("width"):0)};this._sizes.right={h:F,w:((this._units.right)?this._units.right.get("width"):0),l:((this._units.right)?(E-this._units.right.get("width")):0),t:((this._units.top)?this._sizes.top.h:0)};if(this._units.right&&J){this._units.right.set("top",this._sizes.right.t);if(!this._units.right._collapsing){this._units.right.set("left",this._sizes.right.l);}this._units.right.set("height",this._sizes.right.h,true);}if(this._units.left){this._sizes.left.l=0;if(this._units.top){this._sizes.left.t=this._sizes.top.h;}else{this._sizes.left.t=0;}if(J){this._units.left.set("top",this._sizes.left.t);this._units.left.set("height",this._sizes.left.h,true);this._units.left.set("left",0);}}if(this._units.bottom){this._sizes.bottom.t=this._sizes.top.h+this._sizes.left.h;if(J){this._units.bottom.set("top",this._sizes.bottom.t);this._units.bottom.set("width",this._sizes.bottom.w,true);}}if(this._units.top){if(J){this._units.top.set("width",this._sizes.top.w,true);}}this._setCenter(J);},_setCenter:function(G){G=((G===false)?false:true);var F=this._sizes.left.h;var E=(this._sizes.doc.w-(this._sizes.left.w+this._sizes.right.w));if(G){this._units.center.set("height",F,true);this._units.center.set("width",E,true);this._units.center.set("top",this._sizes.top.h);this._units.center.set("left",this._sizes.left.w);}this._sizes.center={h:F,w:E,t:this._sizes.top.h,l:this._sizes.left.w};},getSizes:function(){return this._sizes;},getUnitById:function(E){return YAHOO.widget.LayoutUnit.getLayoutUnitById(E);},getUnitByPosition:function(E){if(E){E=E.toLowerCase();if(this._units[E]){return this._units[E];}return false;}return false;},removeUnit:function(E){delete this._units[E.get("position")];this.resize();},addUnit:function(G){if(!G.position){return false;}if(this._units[G.position]){return false;}var H=null,J=null;if(G.id){if(C.get(G.id)){H=C.get(G.id);delete G.id;}}if(G.element){H=G.element;}if(!J){J=document.createElement("div");var L=C.generateId();J.id=L;}if(!H){H=document.createElement("div");}C.addClass(H,"yui-layout-wrap");if(this.browser.ie&&!this.browser.standardsMode){J.style.zoom=1;H.style.zoom=1;}if(J.firstChild){J.insertBefore(H,J.firstChild);}else{J.appendChild(H);}this._doc.appendChild(J);var I=false,F=false;if(G.height){I=parseInt(G.height,10);}if(G.width){F=parseInt(G.width,10);}var E={};YAHOO.lang.augmentObject(E,G);E.parent=this;E.wrap=H;E.height=I;E.width=F;var K=new YAHOO.widget.LayoutUnit(J,E);K.on("heightChange",this.resize,{unit:K},this);K.on("widthChange",this.resize,{unit:K},this);K.on("gutterChange",this.resize,{unit:K},this);this._units[G.position]=K;if(this._rendered){this.resize();}return K;},_createUnits:function(){var E=this.get("units");for(var F in E){if(D.hasOwnProperty(E,F)){this.addUnit(E[F]);}}},resize:function(H,G){var E=H;if(E&&E.prevValue&&E.newValue){if(E.prevValue==E.newValue){if(G){if(G.unit){if(!G.unit.get("animate")){H=false;}}}}}H=((H===false)?false:true);if(H){var F=this.fireEvent("beforeResize");if(F===false){H=false;}if(this.browser.ie){if(this._isBody){C.removeClass(document.documentElement,"yui-layout");C.addClass(document.documentElement,"yui-layout");}else{this.removeClass("yui-layout");this.addClass("yui-layout");}}}this._setBodySize(H);if(H){this.fireEvent("resize",{target:this,sizes:this._sizes,event:E});}return this;},_setupBodyElements:function(){this._doc=C.get("layout-doc");if(!this._doc){this._doc=document.createElement("div");this._doc.id="layout-doc";if(document.body.firstChild){document.body.insertBefore(this._doc,document.body.firstChild);}else{document.body.appendChild(this._doc);}}this._createUnits();this._setBodySize();A.on(window,"resize",this.resize,this,true);C.addClass(this._doc,"yui-layout-doc");},_setupElements:function(){this._doc=this.getElementsByClassName("yui-layout-doc")[0];if(!this._doc){this._doc=document.createElement("div");this.get("element").appendChild(this._doc);}this._createUnits();this._setBodySize();C.addClass(this._doc,"yui-layout-doc");},_isBody:null,_doc:null,init:function(F,E){this._zIndex=0;B.superclass.init.call(this,F,E);if(this.get("parent")){this._zIndex=this.get("parent")._zIndex+10;}this._sizes={};this._units={};var G=F;if(!D.isString(G)){G=C.generateId(G);}B._instances[G]=this;},render:function(){this._stamp();var E=this.get("element");if(E&&E.tagName&&(E.tagName.toLowerCase()=="body")){this._isBody=true;C.addClass(document.body,"yui-layout");if(C.hasClass(document.body,"yui-skin-sam")){C.addClass(document.documentElement,"yui-skin-sam");
-C.removeClass(document.body,"yui-skin-sam");}this._setupBodyElements();}else{this._isBody=false;this.addClass("yui-layout");this._setupElements();}this.resize();this._rendered=true;this.fireEvent("render");return this;},_stamp:function(){if(document.compatMode=="CSS1Compat"){this.browser.standardsMode=true;}if(window.location.href.toLowerCase().indexOf("https")===0){C.addClass(document.documentElement,"secure");this.browser.secure=true;}},initAttributes:function(E){B.superclass.initAttributes.call(this,E);this.setAttributeConfig("units",{writeOnce:true,validator:YAHOO.lang.isArray,value:E.units||[]});this.setAttributeConfig("minHeight",{value:E.minHeight||false,validator:YAHOO.lang.isNumber});this.setAttributeConfig("minWidth",{value:E.minWidth||false,validator:YAHOO.lang.isNumber});this.setAttributeConfig("height",{value:E.height||false,validator:YAHOO.lang.isNumber,method:function(F){if(F<0){F=0;}this.setStyle("height",F+"px");}});this.setAttributeConfig("width",{value:E.width||false,validator:YAHOO.lang.isNumber,method:function(F){if(F<0){F=0;}this.setStyle("width",F+"px");}});this.setAttributeConfig("parent",{writeOnce:true,value:E.parent||false,method:function(F){if(F){F.on("resize",this.resize,this,true);}}});},destroy:function(){var G=this.get("parent");if(G){G.removeListener("resize",this.resize,this,true);}A.removeListener(window,"resize",this.resize,this,true);this.unsubscribeAll();for(var E in this._units){if(D.hasOwnProperty(this._units,E)){if(this._units[E]){this._units[E].destroy(true);}}}A.purgeElement(this.get("element"));this.get("parentNode").removeChild(this.get("element"));delete YAHOO.widget.Layout._instances[this.get("id")];for(var F in this){if(D.hasOwnProperty(this,F)){this[F]=null;delete this[F];}}if(G){G.resize();}},toString:function(){if(this.get){return"Layout #"+this.get("id");}return"Layout";}});YAHOO.widget.Layout=B;})();(function(){var D=YAHOO.util.Dom,C=YAHOO.util.Selector,A=YAHOO.util.Event,E=YAHOO.lang;var B=function(G,F){var H={element:G,attributes:F||{}};B.superclass.constructor.call(this,H.element,H.attributes);};B._instances={};B.getLayoutUnitById=function(F){if(B._instances[F]){return B._instances[F];}return false;};YAHOO.extend(B,YAHOO.util.Element,{STR_CLOSE:"Click to close this pane.",STR_COLLAPSE:"Click to collapse this pane.",STR_EXPAND:"Click to expand this pane.",LOADING_CLASSNAME:"loading",browser:null,_sizes:null,_anim:null,_resize:null,_clip:null,_gutter:null,header:null,body:null,footer:null,_collapsed:null,_collapsing:null,_lastWidth:null,_lastHeight:null,_lastTop:null,_lastLeft:null,_lastScroll:null,_lastCenterScroll:null,_lastScrollTop:null,resize:function(F){var G=this.fireEvent("beforeResize");if(G===false){return this;}if(!this._collapsing||(F===true)){var N=this.get("scroll");this.set("scroll",false);var K=this._getBoxSize(this.header),J=this._getBoxSize(this.footer),L=[this.get("height"),this.get("width")];var H=(L[0]-K[0]-J[0])-(this._gutter.top+this._gutter.bottom),M=L[1]-(this._gutter.left+this._gutter.right);var O=(H+(K[0]+J[0])),I=M;if(this._collapsed&&!this._collapsing){this._setHeight(this._clip,O);this._setWidth(this._clip,I);D.setStyle(this._clip,"top",this.get("top")+this._gutter.top+"px");D.setStyle(this._clip,"left",this.get("left")+this._gutter.left+"px");}else{if(!this._collapsed||(this._collapsed&&this._collapsing)){O=this._setHeight(this.get("wrap"),O);I=this._setWidth(this.get("wrap"),I);this._sizes.wrap.h=O;this._sizes.wrap.w=I;D.setStyle(this.get("wrap"),"top",this._gutter.top+"px");D.setStyle(this.get("wrap"),"left",this._gutter.left+"px");this._sizes.header.w=this._setWidth(this.header,I);this._sizes.header.h=K[0];this._sizes.footer.w=this._setWidth(this.footer,I);this._sizes.footer.h=J[0];D.setStyle(this.footer,"bottom","0px");this._sizes.body.h=this._setHeight(this.body,(O-(K[0]+J[0])));this._sizes.body.w=this._setWidth(this.body,I);D.setStyle(this.body,"top",K[0]+"px");this.set("scroll",N);this.fireEvent("resize");}}}return this;},_setWidth:function(H,G){if(H){var F=this._getBorderSizes(H);G=(G-(F[1]+F[3]));G=this._fixQuirks(H,G,"w");if(G<0){G=0;}D.setStyle(H,"width",G+"px");}return G;},_setHeight:function(H,G){if(H){var F=this._getBorderSizes(H);G=(G-(F[0]+F[2]));G=this._fixQuirks(H,G,"h");if(G<0){G=0;}D.setStyle(H,"height",G+"px");}return G;},_fixQuirks:function(I,L,G){var K=0,H=2;if(G=="w"){K=1;H=3;}if((this.browser.ie<8)&&!this.browser.standardsMode){var F=this._getBorderSizes(I),J=this._getBorderSizes(I.parentNode);if((F[K]===0)&&(F[H]===0)){if((J[K]!==0)&&(J[H]!==0)){L=(L-(J[K]+J[H]));}}else{if((J[K]===0)&&(J[H]===0)){L=(L+(F[K]+F[H]));}}}return L;},_getBoxSize:function(H){var G=[0,0];if(H){if(this.browser.ie&&!this.browser.standardsMode){H.style.zoom=1;}var F=this._getBorderSizes(H);G[0]=H.clientHeight+(F[0]+F[2]);G[1]=H.clientWidth+(F[1]+F[3]);}return G;},_getBorderSizes:function(H){var G=[];H=H||this.get("element");if(this.browser.ie&&!this.browser.standardsMode){H.style.zoom=1;}G[0]=parseInt(D.getStyle(H,"borderTopWidth"),10);G[1]=parseInt(D.getStyle(H,"borderRightWidth"),10);G[2]=parseInt(D.getStyle(H,"borderBottomWidth"),10);G[3]=parseInt(D.getStyle(H,"borderLeftWidth"),10);for(var F=0;F<G.length;F++){if(isNaN(G[F])){G[F]=0;}}return G;},_createClip:function(){if(!this._clip){this._clip=document.createElement("div");this._clip.className="yui-layout-clip yui-layout-clip-"+this.get("position");this._clip.innerHTML='<div class="collapse"></div>';var F=this._clip.firstChild;F.title=this.STR_EXPAND;A.on(F,"click",this.expand,this,true);this.get("element").parentNode.appendChild(this._clip);}},_toggleClip:function(){if(!this._collapsed){var J=this._getBoxSize(this.header),K=this._getBoxSize(this.footer),I=[this.get("height"),this.get("width")];var H=(I[0]-J[0]-K[0])-(this._gutter.top+this._gutter.bottom),F=I[1]-(this._gutter.left+this._gutter.right),G=(H+(J[0]+K[0]));switch(this.get("position")){case"top":case"bottom":this._setWidth(this._clip,F);this._setHeight(this._clip,this.get("collapseSize"));D.setStyle(this._clip,"left",(this._lastLeft+this._gutter.left)+"px");
-if(this.get("position")=="bottom"){D.setStyle(this._clip,"top",((this._lastTop+this._lastHeight)-(this.get("collapseSize")-this._gutter.top))+"px");}else{D.setStyle(this._clip,"top",this.get("top")+this._gutter.top+"px");}break;case"left":case"right":this._setWidth(this._clip,this.get("collapseSize"));this._setHeight(this._clip,G);D.setStyle(this._clip,"top",(this.get("top")+this._gutter.top)+"px");if(this.get("position")=="right"){D.setStyle(this._clip,"left",(((this._lastLeft+this._lastWidth)-this.get("collapseSize"))-this._gutter.left)+"px");}else{D.setStyle(this._clip,"left",(this.get("left")+this._gutter.left)+"px");}break;}D.setStyle(this._clip,"display","block");this.setStyle("display","none");}else{D.setStyle(this._clip,"display","none");}},getSizes:function(){return this._sizes;},toggle:function(){if(this._collapsed){this.expand();}else{this.collapse();}return this;},expand:function(){if(!this._collapsed){return this;}var L=this.fireEvent("beforeExpand");if(L===false){return this;}this._collapsing=true;this.setStyle("zIndex",this.get("parent")._zIndex+1);if(this._anim){this.setStyle("display","none");var F={},H;switch(this.get("position")){case"left":case"right":this.set("width",this._lastWidth,true);this.setStyle("width",this._lastWidth+"px");this.get("parent").resize(false);H=this.get("parent").getSizes()[this.get("position")];this.set("height",H.h,true);var K=H.l;F={left:{to:K}};if(this.get("position")=="left"){F.left.from=(K-H.w);this.setStyle("left",(K-H.w)+"px");}break;case"top":case"bottom":this.set("height",this._lastHeight,true);this.setStyle("height",this._lastHeight+"px");this.get("parent").resize(false);H=this.get("parent").getSizes()[this.get("position")];this.set("width",H.w,true);var J=H.t;F={top:{to:J}};if(this.get("position")=="top"){this.setStyle("top",(J-H.h)+"px");F.top.from=(J-H.h);}break;}this._anim.attributes=F;var I=function(){this.setStyle("display","block");this.resize(true);this._anim.onStart.unsubscribe(I,this,true);};var G=function(){this._collapsing=false;this.setStyle("zIndex",this.get("parent")._zIndex);this.set("width",this._lastWidth);this.set("height",this._lastHeight);this._collapsed=false;this.resize();this.set("scroll",this._lastScroll);if(this._lastScrollTop>0){this.body.scrollTop=this._lastScrollTop;}this._anim.onComplete.unsubscribe(G,this,true);this.fireEvent("expand");};this._anim.onStart.subscribe(I,this,true);this._anim.onComplete.subscribe(G,this,true);this._anim.animate();this._toggleClip();}else{this._collapsing=false;this._toggleClip();this._collapsed=false;this.setStyle("zIndex",this.get("parent")._zIndex);this.setStyle("display","block");this.set("width",this._lastWidth);this.set("height",this._lastHeight);this.resize();this.set("scroll",this._lastScroll);if(this._lastScrollTop>0){this.body.scrollTop=this._lastScrollTop;}this.fireEvent("expand");}return this;},collapse:function(){if(this._collapsed){return this;}var J=this.fireEvent("beforeCollapse");if(J===false){return this;}if(!this._clip){this._createClip();}this._collapsing=true;var G=this.get("width"),H=this.get("height"),F={};this._lastWidth=G;this._lastHeight=H;this._lastScroll=this.get("scroll");this._lastScrollTop=this.body.scrollTop;this.set("scroll",false,true);this._lastLeft=parseInt(this.get("element").style.left,10);this._lastTop=parseInt(this.get("element").style.top,10);if(isNaN(this._lastTop)){this._lastTop=0;this.set("top",0);}if(isNaN(this._lastLeft)){this._lastLeft=0;this.set("left",0);}this.setStyle("zIndex",this.get("parent")._zIndex+1);var K=this.get("position");switch(K){case"top":case"bottom":this.set("height",(this.get("collapseSize")+(this._gutter.top+this._gutter.bottom)));F={top:{to:(this.get("top")-H)}};if(K=="bottom"){F.top.to=(this.get("top")+H);}break;case"left":case"right":this.set("width",(this.get("collapseSize")+(this._gutter.left+this._gutter.right)));F={left:{to:-(this._lastWidth)}};if(K=="right"){F.left={to:(this.get("left")+G)};}break;}if(this._anim){this._anim.attributes=F;var I=function(){this._collapsing=false;this._toggleClip();this.setStyle("zIndex",this.get("parent")._zIndex);this._collapsed=true;this.get("parent").resize();this._anim.onComplete.unsubscribe(I,this,true);this.fireEvent("collapse");};this._anim.onComplete.subscribe(I,this,true);this._anim.animate();}else{this._collapsing=false;this.setStyle("display","none");this._toggleClip();this.setStyle("zIndex",this.get("parent")._zIndex);this.get("parent").resize();this._collapsed=true;this.fireEvent("collapse");}return this;},close:function(){this.setStyle("display","none");this.get("parent").removeUnit(this);this.fireEvent("close");if(this._clip){this._clip.parentNode.removeChild(this._clip);this._clip=null;}return this.get("parent");},loadHandler:{success:function(F){this.body.innerHTML=F.responseText;this.resize(true);},failure:function(F){}},dataConnection:null,_loading:false,loadContent:function(){if(YAHOO.util.Connect&&this.get("dataSrc")&&!this._loading&&!this.get("dataLoaded")){this._loading=true;D.addClass(this.body,this.LOADING_CLASSNAME);this.dataConnection=YAHOO.util.Connect.asyncRequest(this.get("loadMethod"),this.get("dataSrc"),{success:function(F){this.loadHandler.success.call(this,F);this.set("dataLoaded",true);this.dataConnection=null;D.removeClass(this.body,this.LOADING_CLASSNAME);this._loading=false;this.fireEvent("load");},failure:function(F){this.loadHandler.failure.call(this,F);this.dataConnection=null;D.removeClass(this.body,this.LOADING_CLASSNAME);this._loading=false;this.fireEvent("loadError",{error:F});},scope:this,timeout:this.get("dataTimeout")});return this.dataConnection;}return false;},init:function(H,G){this._gutter={left:0,right:0,top:0,bottom:0};this._sizes={wrap:{h:0,w:0},header:{h:0,w:0},body:{h:0,w:0},footer:{h:0,w:0}};B.superclass.init.call(this,H,G);this.browser=this.get("parent").browser;var K=H;if(!E.isString(K)){K=D.generateId(K);}B._instances[K]=this;this.setStyle("position","absolute");this.addClass("yui-layout-unit");this.addClass("yui-layout-unit-"+this.get("position"));
-var J=this.getElementsByClassName("yui-layout-hd","div")[0];if(J){this.header=J;}var F=this.getElementsByClassName("yui-layout-bd","div")[0];if(F){this.body=F;}var I=this.getElementsByClassName("yui-layout-ft","div")[0];if(I){this.footer=I;}this.on("contentChange",this.resize,this,true);this._lastScrollTop=0;this.set("animate",this.get("animate"));},initAttributes:function(F){B.superclass.initAttributes.call(this,F);this.setAttributeConfig("wrap",{value:F.wrap||null,method:function(G){if(G){var H=D.generateId(G);B._instances[H]=this;}}});this.setAttributeConfig("grids",{value:F.grids||false});this.setAttributeConfig("top",{value:F.top||0,validator:E.isNumber,method:function(G){if(!this._collapsing){this.setStyle("top",G+"px");}}});this.setAttributeConfig("left",{value:F.left||0,validator:E.isNumber,method:function(G){if(!this._collapsing){this.setStyle("left",G+"px");}}});this.setAttributeConfig("minWidth",{value:F.minWidth||false,method:function(G){if(this._resize){this._resize.set("minWidth",G);}},validator:YAHOO.lang.isNumber});this.setAttributeConfig("maxWidth",{value:F.maxWidth||false,method:function(G){if(this._resize){this._resize.set("maxWidth",G);}},validator:YAHOO.lang.isNumber});this.setAttributeConfig("minHeight",{value:F.minHeight||false,method:function(G){if(this._resize){this._resize.set("minHeight",G);}},validator:YAHOO.lang.isNumber});this.setAttributeConfig("maxHeight",{value:F.maxHeight||false,method:function(G){if(this._resize){this._resize.set("maxHeight",G);}},validator:YAHOO.lang.isNumber});this.setAttributeConfig("height",{value:F.height,validator:E.isNumber,method:function(G){if(!this._collapsing){if(G<0){G=0;}this.setStyle("height",G+"px");}}});this.setAttributeConfig("width",{value:F.width,validator:E.isNumber,method:function(G){if(!this._collapsing){if(G<0){G=0;}this.setStyle("width",G+"px");}}});this.setAttributeConfig("zIndex",{value:F.zIndex||false,method:function(G){this.setStyle("zIndex",G);}});this.setAttributeConfig("position",{value:F.position});this.setAttributeConfig("gutter",{value:F.gutter||0,validator:YAHOO.lang.isString,method:function(H){var G=H.split(" ");if(G.length){this._gutter.top=parseInt(G[0],10);if(G[1]){this._gutter.right=parseInt(G[1],10);}else{this._gutter.right=this._gutter.top;}if(G[2]){this._gutter.bottom=parseInt(G[2],10);}else{this._gutter.bottom=this._gutter.top;}if(G[3]){this._gutter.left=parseInt(G[3],10);}else{if(G[1]){this._gutter.left=this._gutter.right;}else{this._gutter.left=this._gutter.top;}}}}});this.setAttributeConfig("parent",{writeOnce:true,value:F.parent||false,method:function(G){if(G){G.on("resize",this.resize,this,true);}}});this.setAttributeConfig("collapseSize",{value:F.collapseSize||25,validator:YAHOO.lang.isNumber});this.setAttributeConfig("duration",{value:F.duration||0.5});this.setAttributeConfig("easing",{value:F.easing||((YAHOO.util&&YAHOO.util.Easing)?YAHOO.util.Easing.BounceIn:"false")});this.setAttributeConfig("animate",{value:((F.animate===false)?false:true),validator:function(){var G=false;if(YAHOO.util.Anim){G=true;}return G;},method:function(G){if(G){this._anim=new YAHOO.util.Anim(this.get("element"),{},this.get("duration"),this.get("easing"));}else{this._anim=false;}}});this.setAttributeConfig("header",{value:F.header||false,method:function(G){if(G===false){if(this.header){D.addClass(this.body,"yui-layout-bd-nohd");this.header.parentNode.removeChild(this.header);this.header=null;}}else{if(!this.header){var I=this.getElementsByClassName("yui-layout-hd","div")[0];if(!I){I=this._createHeader();}this.header=I;}var H=this.header.getElementsByTagName("h2")[0];if(!H){H=document.createElement("h2");this.header.appendChild(H);}H.innerHTML=G;if(this.body){D.removeClass(this.body,"yui-layout-bd-nohd");}}this.fireEvent("contentChange",{target:"header"});}});this.setAttributeConfig("proxy",{writeOnce:true,value:((F.proxy===false)?false:true)});this.setAttributeConfig("body",{value:F.body||false,method:function(I){if(!this.body){var G=this.getElementsByClassName("yui-layout-bd","div")[0];if(G){this.body=G;}else{G=document.createElement("div");G.className="yui-layout-bd";this.body=G;this.get("wrap").appendChild(G);}}if(!this.header){D.addClass(this.body,"yui-layout-bd-nohd");}D.addClass(this.body,"yui-layout-bd-noft");var H=null;if(E.isString(I)){H=D.get(I);}else{if(I&&I.tagName){H=I;}}if(H){var J=D.generateId(H);B._instances[J]=this;this.body.appendChild(H);}else{this.body.innerHTML=I;}this._cleanGrids();this.fireEvent("contentChange",{target:"body"});}});this.setAttributeConfig("footer",{value:F.footer||false,method:function(H){if(H===false){if(this.footer){D.addClass(this.body,"yui-layout-bd-noft");this.footer.parentNode.removeChild(this.footer);this.footer=null;}}else{if(!this.footer){var I=this.getElementsByClassName("yui-layout-ft","div")[0];if(!I){I=document.createElement("div");I.className="yui-layout-ft";this.footer=I;this.get("wrap").appendChild(I);}else{this.footer=I;}}var G=null;if(E.isString(H)){G=D.get(H);}else{if(H&&H.tagName){G=H;}}if(G){this.footer.appendChild(G);}else{this.footer.innerHTML=H;}D.removeClass(this.body,"yui-layout-bd-noft");}this.fireEvent("contentChange",{target:"footer"});}});this.setAttributeConfig("close",{value:F.close||false,method:function(G){if(this.get("position")=="center"){return false;}if(!this.header&&G){this._createHeader();}var H=D.getElementsByClassName("close","div",this.header)[0];if(G){if(!this.get("header")){this.set("header","&nbsp;");}if(!H){H=document.createElement("div");H.className="close";this.header.appendChild(H);A.on(H,"click",this.close,this,true);}H.title=this.STR_CLOSE;}else{if(H&&H.parentNode){A.purgeElement(H);H.parentNode.removeChild(H);}}this._configs.close.value=G;this.set("collapse",this.get("collapse"));}});this.setAttributeConfig("collapse",{value:F.collapse||false,method:function(G){if(this.get("position")=="center"){return false;}if(!this.header&&G){this._createHeader();}var H=D.getElementsByClassName("collapse","div",this.header)[0];if(G){if(!this.get("header")){this.set("header","&nbsp;");
-}if(!H){H=document.createElement("div");this.header.appendChild(H);A.on(H,"click",this.collapse,this,true);}H.title=this.STR_COLLAPSE;H.className="collapse"+((this.get("close"))?" collapse-close":"");}else{if(H&&H.parentNode){A.purgeElement(H);H.parentNode.removeChild(H);}}}});this.setAttributeConfig("scroll",{value:(((F.scroll===true)||(F.scroll===false)||(F.scroll===null))?F.scroll:false),method:function(G){if((G===false)&&!this._collapsed){if(this.body){if(this.body.scrollTop>0){this._lastScrollTop=this.body.scrollTop;}}}if(G===true){this.addClass("yui-layout-scroll");this.removeClass("yui-layout-noscroll");if(this._lastScrollTop>0){if(this.body){this.body.scrollTop=this._lastScrollTop;}}}else{if(G===false){this.removeClass("yui-layout-scroll");this.addClass("yui-layout-noscroll");}else{if(G===null){this.removeClass("yui-layout-scroll");this.removeClass("yui-layout-noscroll");}}}}});this.setAttributeConfig("hover",{writeOnce:true,value:F.hover||false,validator:YAHOO.lang.isBoolean});this.setAttributeConfig("useShim",{value:F.useShim||false,validator:YAHOO.lang.isBoolean,method:function(G){if(this._resize){this._resize.set("useShim",G);}}});this.setAttributeConfig("resize",{value:F.resize||false,validator:function(G){if(YAHOO.util&&YAHOO.util.Resize){return true;}return false;},method:function(G){if(G&&!this._resize){if(this.get("position")=="center"){return false;}var I=false;switch(this.get("position")){case"top":I="b";break;case"bottom":I="t";break;case"right":I="l";break;case"left":I="r";break;}this.setStyle("position","absolute");if(I){this._resize=new YAHOO.util.Resize(this.get("element"),{proxy:this.get("proxy"),hover:this.get("hover"),status:false,autoRatio:false,handles:[I],minWidth:this.get("minWidth"),maxWidth:this.get("maxWidth"),minHeight:this.get("minHeight"),maxHeight:this.get("maxHeight"),height:this.get("height"),width:this.get("width"),setSize:false,useShim:this.get("useShim"),wrap:false});this._resize._handles[I].innerHTML='<div class="yui-layout-resize-knob"></div>';if(this.get("proxy")){var H=this._resize.getProxyEl();H.innerHTML='<div class="yui-layout-handle-'+I+'"></div>';}this._resize.on("startResize",function(J){this._lastScroll=this.get("scroll");this.set("scroll",false);if(this.get("parent")){this.get("parent").fireEvent("startResize");var K=this.get("parent").getUnitByPosition("center");this._lastCenterScroll=K.get("scroll");K.addClass(this._resize.CSS_RESIZING);K.set("scroll",false);}this.fireEvent("startResize");},this,true);this._resize.on("resize",function(J){this.set("height",J.height);this.set("width",J.width);},this,true);this._resize.on("endResize",function(J){this.set("scroll",this._lastScroll);if(this.get("parent")){var K=this.get("parent").getUnitByPosition("center");K.set("scroll",this._lastCenterScroll);K.removeClass(this._resize.CSS_RESIZING);}this.resize();this.fireEvent("endResize");},this,true);}}else{if(this._resize){this._resize.destroy();}}}});this.setAttributeConfig("dataSrc",{value:F.dataSrc});this.setAttributeConfig("loadMethod",{value:F.loadMethod||"GET",validator:YAHOO.lang.isString});this.setAttributeConfig("dataLoaded",{value:false,validator:YAHOO.lang.isBoolean,writeOnce:true});this.setAttributeConfig("dataTimeout",{value:F.dataTimeout||null,validator:YAHOO.lang.isNumber});},_cleanGrids:function(){if(this.get("grids")){var F=C.query("div.yui-b",this.body,true);if(F){D.removeClass(F,"yui-b");}A.onAvailable("yui-main",function(){D.setStyle(C.query("#yui-main"),"margin-left","0");D.setStyle(C.query("#yui-main"),"margin-right","0");});}},_createHeader:function(){var F=document.createElement("div");F.className="yui-layout-hd";if(this.get("firstChild")){this.get("wrap").insertBefore(F,this.get("wrap").firstChild);}else{this.get("wrap").appendChild(F);}this.header=F;return F;},destroy:function(H){if(this._resize){this._resize.destroy();}var G=this.get("parent");this.setStyle("display","none");if(this._clip){this._clip.parentNode.removeChild(this._clip);this._clip=null;}if(!H){G.removeUnit(this);}if(G){G.removeListener("resize",this.resize,this,true);}this.unsubscribeAll();A.purgeElement(this.get("element"));this.get("parentNode").removeChild(this.get("element"));delete YAHOO.widget.LayoutUnit._instances[this.get("id")];for(var F in this){if(E.hasOwnProperty(this,F)){this[F]=null;delete this[F];}}return G;},toString:function(){if(this.get){return"LayoutUnit #"+this.get("id")+" ("+this.get("position")+")";}return"LayoutUnit";}});YAHOO.widget.LayoutUnit=B;})();YAHOO.register("layout",YAHOO.widget.Layout,{version:"2.8.0r4",build:"2449"});
\ No newline at end of file
diff --git a/koha-tmpl/intranet-tmpl/prog/en/lib/yui/layout/layout.js b/koha-tmpl/intranet-tmpl/prog/en/lib/yui/layout/layout.js
deleted file mode 100644 (file)
index 94fc00f..0000000
+++ /dev/null
@@ -1,2290 +0,0 @@
-/*
-Copyright (c) 2009, Yahoo! Inc. All rights reserved.
-Code licensed under the BSD License:
-http://developer.yahoo.net/yui/license.txt
-version: 2.8.0r4
-*/
-/**
- * @description <p>Provides a fixed layout containing, top, bottom, left, right and center layout units. It can be applied to either the body or an element.</p>
- * @namespace YAHOO.widget
- * @requires yahoo, dom, element, event
- * @module layout
- */
-(function() {
-    var Dom = YAHOO.util.Dom,
-        Event = YAHOO.util.Event,
-        Lang = YAHOO.lang;
-
-    /**
-     * @constructor
-     * @class Layout
-     * @extends YAHOO.util.Element
-     * @description <p>Provides a fixed layout containing, top, bottom, left, right and center layout units. It can be applied to either the body or an element.</p>
-     * @param {String/HTMLElement} el The element to make contain a layout.
-     * @param {Object} attrs Object liternal containing configuration parameters.
-    */
-
-    var Layout = function(el, config) {
-        if (Lang.isObject(el) && !el.tagName) {
-            config = el;
-            el = null;
-        }
-        if (Lang.isString(el)) {
-            if (Dom.get(el)) {
-                el = Dom.get(el);
-            }
-        }
-        if (!el) {
-            el = document.body;
-        }
-
-        var oConfig = {
-            element: el,
-            attributes: config || {}
-        };
-
-        Layout.superclass.constructor.call(this, oConfig.element, oConfig.attributes);    
-    };
-
-    /**
-    * @private
-    * @static
-    * @property _instances
-    * @description Internal hash table for all layout instances
-    * @type Object
-    */ 
-    Layout._instances = {};
-    /**
-    * @static
-    * @method getLayoutById 
-    * @description Get's a layout object by the HTML id of the element associated with the Layout object.
-    * @return {Object} The Layout Object
-    */ 
-    Layout.getLayoutById = function(id) {
-        if (Layout._instances[id]) {
-            return Layout._instances[id];
-        }
-        return false;
-    };
-
-    YAHOO.extend(Layout, YAHOO.util.Element, {
-        /**
-        * @property browser
-        * @description A modified version of the YAHOO.env.ua object
-        * @type Object
-        */
-        browser: function() {
-            var b = YAHOO.env.ua;
-            b.standardsMode = false;
-            b.secure = false;
-            return b;
-        }(),
-        /**
-        * @private
-        * @property _units
-        * @description An object literal that contains a list of units in the layout
-        * @type Object
-        */
-        _units: null,
-        /**
-        * @private
-        * @property _rendered
-        * @description Set to true when the layout is rendered
-        * @type Boolean
-        */
-        _rendered: null,
-        /**
-        * @private
-        * @property _zIndex
-        * @description The zIndex to set all LayoutUnits to
-        * @type Number
-        */
-        _zIndex: null,
-        /**
-        * @private
-        * @property _sizes
-        * @description A collection of the current sizes of all usable LayoutUnits to be used for calculations
-        * @type Object
-        */
-        _sizes: null,
-        /**
-        * @private
-        * @method _setBodySize
-        * @param {Boolean} set If set to false, it will NOT set the size, just perform the calculations (used for collapsing units)
-        * @description Used to set the body size of the layout, sets the height and width of the parent container
-        */
-        _setBodySize: function(set) {
-            var h = 0, w = 0;
-            set = ((set === false) ? false : true);
-
-            if (this._isBody) {
-                h = Dom.getClientHeight();
-                w = Dom.getClientWidth();
-            } else {
-                h = parseInt(this.getStyle('height'), 10);
-                w = parseInt(this.getStyle('width'), 10);
-                if (isNaN(w)) {
-                    w = this.get('element').clientWidth;
-                }
-                if (isNaN(h)) {
-                    h = this.get('element').clientHeight;
-                }
-            }
-            if (this.get('minWidth')) {
-                if (w < this.get('minWidth')) {
-                    w = this.get('minWidth');
-                }
-            }
-            if (this.get('minHeight')) {
-                if (h < this.get('minHeight')) {
-                    h = this.get('minHeight');
-                }
-            }
-            if (set) {
-                if (h < 0) {
-                    h = 0;
-                }
-                if (w < 0) {
-                    w = 0;
-                }
-                Dom.setStyle(this._doc, 'height', h + 'px');
-                Dom.setStyle(this._doc, 'width', w + 'px');
-            }
-            this._sizes.doc = { h: h, w: w };
-            this._setSides(set);
-        },
-        /**
-        * @private
-        * @method _setSides
-        * @param {Boolean} set If set to false, it will NOT set the size, just perform the calculations (used for collapsing units)
-        * @description Used to set the size and position of the left, right, top and bottom units
-        */
-        _setSides: function(set) {
-            var h1 = ((this._units.top) ? this._units.top.get('height') : 0),
-                h2 = ((this._units.bottom) ? this._units.bottom.get('height') : 0),
-                h = this._sizes.doc.h,
-                w = this._sizes.doc.w;
-            set = ((set === false) ? false : true);
-
-            this._sizes.top = {
-                h: h1, w: ((this._units.top) ? w : 0),
-                t: 0
-            };
-            this._sizes.bottom = {
-                h: h2, w: ((this._units.bottom) ? w : 0)
-            };
-            
-            var newH = (h - (h1 + h2));
-
-            this._sizes.left = {
-                h: newH, w: ((this._units.left) ? this._units.left.get('width') : 0)
-            };
-            this._sizes.right = {
-                h: newH, w: ((this._units.right) ? this._units.right.get('width') : 0),
-                l: ((this._units.right) ? (w - this._units.right.get('width')) : 0),
-                t: ((this._units.top) ? this._sizes.top.h : 0)
-            };
-            
-            if (this._units.right && set) {
-                this._units.right.set('top', this._sizes.right.t);
-                if (!this._units.right._collapsing) { 
-                    this._units.right.set('left', this._sizes.right.l);
-                }
-                this._units.right.set('height', this._sizes.right.h, true);
-            }
-            if (this._units.left) {
-                this._sizes.left.l = 0;
-                if (this._units.top) {
-                    this._sizes.left.t = this._sizes.top.h;
-                } else {
-                    this._sizes.left.t = 0;
-                }
-                if (set) {
-                    this._units.left.set('top', this._sizes.left.t);
-                    this._units.left.set('height', this._sizes.left.h, true);
-                    this._units.left.set('left', 0);
-                }
-            }
-            if (this._units.bottom) {
-                this._sizes.bottom.t = this._sizes.top.h + this._sizes.left.h;
-                if (set) {
-                    this._units.bottom.set('top', this._sizes.bottom.t);
-                    this._units.bottom.set('width', this._sizes.bottom.w, true);
-                }
-            }
-            if (this._units.top) {
-                if (set) {
-                    this._units.top.set('width', this._sizes.top.w, true);
-                }
-            }
-            this._setCenter(set);
-        },
-        /**
-        * @private
-        * @method _setCenter
-        * @param {Boolean} set If set to false, it will NOT set the size, just perform the calculations (used for collapsing units)
-        * @description Used to set the size and position of the center unit
-        */
-        _setCenter: function(set) {
-            set = ((set === false) ? false : true);
-            var h = this._sizes.left.h;
-            var w = (this._sizes.doc.w - (this._sizes.left.w + this._sizes.right.w));
-            if (set) {
-                this._units.center.set('height', h, true);
-                this._units.center.set('width', w, true);
-                this._units.center.set('top', this._sizes.top.h);
-                this._units.center.set('left', this._sizes.left.w);
-            }
-            this._sizes.center = { h: h, w: w, t: this._sizes.top.h, l: this._sizes.left.w };
-        },
-        /**
-        * @method getSizes
-        * @description Get a reference to the internal Layout Unit sizes object used to build the layout wireframe
-        * @return {Object} An object of the layout unit sizes
-        */
-        getSizes: function() {
-            return this._sizes;
-        },
-        /**
-        * @method getUnitById
-        * @param {String} id The HTML element id of the unit
-        * @description Get the LayoutUnit by it's HTML id
-        * @return {<a href="YAHOO.widget.LayoutUnit.html">YAHOO.widget.LayoutUnit</a>} The LayoutUnit instance
-        */
-        getUnitById: function(id) {
-            return YAHOO.widget.LayoutUnit.getLayoutUnitById(id);
-        },
-        /**
-        * @method getUnitByPosition
-        * @param {String} pos The position of the unit in this layout
-        * @description Get the LayoutUnit by it's position in this layout
-        * @return {<a href="YAHOO.widget.LayoutUnit.html">YAHOO.widget.LayoutUnit</a>} The LayoutUnit instance
-        */
-        getUnitByPosition: function(pos) {
-            if (pos) {
-                pos = pos.toLowerCase();
-                if (this._units[pos]) {
-                    return this._units[pos];
-                }
-                return false;
-            }
-            return false;
-        },
-        /**
-        * @method removeUnit
-        * @param {Object} unit The LayoutUnit that you want to remove
-        * @description Remove the unit from this layout and resize the layout.
-        */
-        removeUnit: function(unit) {
-            delete this._units[unit.get('position')];
-            this.resize();
-        },
-        /**
-        * @method addUnit
-        * @param {Object} cfg The config for the LayoutUnit that you want to add
-        * @description Add a unit to this layout and if the layout is rendered, resize the layout. 
-        * @return {<a href="YAHOO.widget.LayoutUnit.html">YAHOO.widget.LayoutUnit</a>} The LayoutUnit instance
-        */
-        addUnit: function(cfg) {
-            if (!cfg.position) {
-                return false;
-            }
-            if (this._units[cfg.position]) {
-                return false;
-            }
-            var element = null,
-                el = null;
-
-            if (cfg.id) {
-                if (Dom.get(cfg.id)) {
-                    element = Dom.get(cfg.id);
-                    delete cfg.id;
-
-                }
-            }
-            if (cfg.element) {
-                element = cfg.element;
-            }
-
-            if (!el) {
-                el = document.createElement('div');
-                var id = Dom.generateId();
-                el.id = id;
-            }
-
-            if (!element) {
-                element = document.createElement('div');
-            }
-            Dom.addClass(element, 'yui-layout-wrap');
-            if (this.browser.ie && !this.browser.standardsMode) {
-                el.style.zoom = 1;
-                element.style.zoom = 1;
-            }
-
-            if (el.firstChild) {
-                el.insertBefore(element, el.firstChild);
-            } else {
-                el.appendChild(element);
-            }
-            this._doc.appendChild(el);
-
-            var h = false, w = false;
-
-            if (cfg.height) {
-                h = parseInt(cfg.height, 10);
-            }
-            if (cfg.width) {
-                w = parseInt(cfg.width, 10);
-            }
-            var unitConfig = {};
-            YAHOO.lang.augmentObject(unitConfig, cfg); // break obj ref
-
-            unitConfig.parent = this;
-            unitConfig.wrap = element;
-            unitConfig.height = h;
-            unitConfig.width = w;
-
-            var unit = new YAHOO.widget.LayoutUnit(el, unitConfig);
-
-            unit.on('heightChange', this.resize, { unit: unit }, this);
-            unit.on('widthChange', this.resize, { unit: unit }, this);
-            unit.on('gutterChange', this.resize, { unit: unit }, this);
-            this._units[cfg.position] = unit;
-
-            if (this._rendered) {
-                this.resize();
-            }
-
-            return unit;
-        },
-        /**
-        * @private
-        * @method _createUnits
-        * @description Private method to create units from the config that was passed in.
-        */
-        _createUnits: function() {
-            var units = this.get('units');
-            for (var i in units) {
-                if (Lang.hasOwnProperty(units, i)) {
-                    this.addUnit(units[i]);
-                }
-            }
-        },
-        /**
-        * @method resize
-        * @param Boolean/Event set If set to false, it will NOT set the size, just perform the calculations (used for collapsing units). This can also have an attribute event passed to it.
-        * @description Starts the chain of resize routines that will resize all the units.
-        * @return {<a href="YAHOO.widget.Layout.html">YAHOO.widget.Layout</a>} The Layout instance
-        */
-        resize: function(set, info) {
-            /*
-            * Fixes bug #2528175
-            * If the event comes from an attribute and the value hasn't changed, don't process it.
-            */
-            var ev = set;
-            if (ev && ev.prevValue && ev.newValue) {
-                if (ev.prevValue == ev.newValue) {
-                    if (info) {
-                        if (info.unit) {
-                            if (!info.unit.get('animate')) {
-                                set = false;
-                            }
-                        }
-                    }
-                }
-            }
-            set = ((set === false) ? false : true);
-            if (set) {
-                var retVal = this.fireEvent('beforeResize');
-                if (retVal === false) {
-                    set = false;
-                }
-                if (this.browser.ie) {
-                    if (this._isBody) {
-                        Dom.removeClass(document.documentElement, 'yui-layout');
-                        Dom.addClass(document.documentElement, 'yui-layout');
-                    } else {
-                        this.removeClass('yui-layout');
-                        this.addClass('yui-layout');
-                    }
-                }
-            }
-            this._setBodySize(set);
-            if (set) {
-                this.fireEvent('resize', { target: this, sizes: this._sizes, event: ev });
-            }
-            return this;
-        },
-        /**
-        * @private
-        * @method _setupBodyElements
-        * @description Sets up the main doc element when using the body as the main element.
-        */
-        _setupBodyElements: function() {
-            this._doc = Dom.get('layout-doc');
-            if (!this._doc) {
-                this._doc = document.createElement('div');
-                this._doc.id = 'layout-doc';
-                if (document.body.firstChild) {
-                    document.body.insertBefore(this._doc, document.body.firstChild);
-                } else {
-                    document.body.appendChild(this._doc);
-                }
-            }
-            this._createUnits();
-            this._setBodySize();
-            Event.on(window, 'resize', this.resize, this, true);
-            Dom.addClass(this._doc, 'yui-layout-doc');
-        },
-        /**
-        * @private
-        * @method _setupElements
-        * @description Sets up the main doc element when not using the body as the main element.
-        */
-        _setupElements: function() {
-            this._doc = this.getElementsByClassName('yui-layout-doc')[0];
-            if (!this._doc) {
-                this._doc = document.createElement('div');
-                this.get('element').appendChild(this._doc);
-            }
-            this._createUnits();
-            this._setBodySize();
-            Dom.addClass(this._doc, 'yui-layout-doc');
-        },
-        /**
-        * @private
-        * @property _isBody
-        * @description Flag to determine if we are using the body as the root element.
-        * @type Boolean
-        */
-        _isBody: null,
-        /**
-        * @private
-        * @property _doc
-        * @description Reference to the root element
-        * @type HTMLElement
-        */
-        _doc: null,
-        /**
-        * @private
-        * @method init
-        * @description The Layout class' initialization method
-        */        
-        init: function(p_oElement, p_oAttributes) {
-
-            this._zIndex = 0;
-
-            Layout.superclass.init.call(this, p_oElement, p_oAttributes);
-            
-            if (this.get('parent')) {
-                this._zIndex = this.get('parent')._zIndex + 10;
-            }
-
-            this._sizes = {};
-            this._units = {};
-
-            var id = p_oElement;
-            if (!Lang.isString(id)) {
-                id = Dom.generateId(id);
-            }
-            Layout._instances[id] = this;
-        },
-        /**
-        * @method render
-        * @description This method starts the render process, applying classnames and creating elements
-        * @return {<a href="YAHOO.widget.Layout.html">YAHOO.widget.Layout</a>} The Layout instance
-        */        
-        render: function() {
-            this._stamp();
-            var el = this.get('element');
-            if (el && el.tagName && (el.tagName.toLowerCase() == 'body')) {
-                this._isBody = true;
-                Dom.addClass(document.body, 'yui-layout');
-                if (Dom.hasClass(document.body, 'yui-skin-sam')) {
-                    //Move the class up so we can have a css chain
-                    Dom.addClass(document.documentElement, 'yui-skin-sam');
-                    Dom.removeClass(document.body, 'yui-skin-sam');
-                }
-                this._setupBodyElements();
-            } else {
-                this._isBody = false;
-                this.addClass('yui-layout');
-                this._setupElements();
-            }
-            this.resize();
-            this._rendered = true;
-            this.fireEvent('render');
-
-            return this;
-        },
-        /**
-        * @private
-        * @method _stamp
-        * @description Stamps the root node with a secure classname for ease of use. Also sets the this.browser.standardsMode variable.
-        */        
-        _stamp: function() {
-            if (document.compatMode == 'CSS1Compat') {
-                this.browser.standardsMode = true;
-            }
-            if (window.location.href.toLowerCase().indexOf("https") === 0) {
-                Dom.addClass(document.documentElement, 'secure');
-                this.browser.secure = true;
-            }
-        },
-        /**
-        * @private
-        * @method initAttributes
-        * @description Processes the config
-        */        
-        initAttributes: function(attr) {
-            Layout.superclass.initAttributes.call(this, attr);
-            /**
-            * @attribute units
-            * @description An array of config definitions for the LayoutUnits to add to this layout
-            * @type Array
-            */
-            this.setAttributeConfig('units', {
-                writeOnce: true,
-                validator: YAHOO.lang.isArray,
-                value: attr.units || []
-            });
-
-            /**
-            * @attribute minHeight
-            * @description The minimum height in pixels
-            * @type Number
-            */
-            this.setAttributeConfig('minHeight', {
-                value: attr.minHeight || false,
-                validator: YAHOO.lang.isNumber
-            });
-
-            /**
-            * @attribute minWidth
-            * @description The minimum width in pixels
-            * @type Number
-            */
-            this.setAttributeConfig('minWidth', {
-                value: attr.minWidth || false,
-                validator: YAHOO.lang.isNumber
-            });
-
-            /**
-            * @attribute height
-            * @description The height in pixels
-            * @type Number
-            */
-            this.setAttributeConfig('height', {
-                value: attr.height || false,
-                validator: YAHOO.lang.isNumber,
-                method: function(h) {
-                    if (h < 0) {
-                        h = 0;
-                    }
-                    this.setStyle('height', h + 'px');
-                }
-            });
-
-            /**
-            * @attribute width
-            * @description The width in pixels
-            * @type Number
-            */
-            this.setAttributeConfig('width', {
-                value: attr.width || false,
-                validator: YAHOO.lang.isNumber,
-                method: function(w) {
-                    if (w < 0) {
-                        w = 0;
-                    }
-                    this.setStyle('width', w + 'px');
-                }
-            });
-
-            /**
-            * @attribute parent
-            * @description If this layout is to be used as a child of another Layout instance, this config will bind the resize events together.
-            * @type Object YAHOO.widget.Layout
-            */
-            this.setAttributeConfig('parent', {
-                writeOnce: true,
-                value: attr.parent || false,
-                method: function(p) {
-                    if (p) {
-                        p.on('resize', this.resize, this, true);
-                    }
-                }
-            });
-        },
-        /**
-        * @method destroy
-        * @description Removes this layout from the page and destroys all units that it contains. This will destroy all data inside the layout and it's children.
-        */
-        destroy: function() {
-            var par = this.get('parent');
-            if (par) {
-                par.removeListener('resize', this.resize, this, true);
-            }
-            Event.removeListener(window, 'resize', this.resize, this, true);
-
-            this.unsubscribeAll();
-            for (var u in this._units) {
-                if (Lang.hasOwnProperty(this._units, u)) {
-                    if (this._units[u]) {
-                        this._units[u].destroy(true);
-                    }
-                }
-            }
-
-            Event.purgeElement(this.get('element'));
-            this.get('parentNode').removeChild(this.get('element'));
-            
-            delete YAHOO.widget.Layout._instances[this.get('id')];
-            //Brutal Object Destroy
-            for (var i in this) {
-                if (Lang.hasOwnProperty(this, i)) {
-                    this[i] = null;
-                    delete this[i];
-                }
-            }
-            
-            if (par) {
-                par.resize();
-            }
-        },
-        /**
-        * @method toString
-        * @description Returns a string representing the Layout.
-        * @return {String}
-        */        
-        toString: function() {
-            if (this.get) {
-                return 'Layout #' + this.get('id');
-            }
-            return 'Layout';
-        }
-    });
-    /**
-    * @event resize
-    * @description Fired when this.resize is called
-    * @type YAHOO.util.CustomEvent
-    */
-    /**
-    * @event startResize
-    * @description Fired when the Resize Utility for a Unit fires it's startResize Event.
-    * @type YAHOO.util.CustomEvent
-    */
-    /**
-    * @event beforeResize
-    * @description Fires at the beginning of the resize method. If you return false, the resize is cancelled.
-    * @type YAHOO.util.CustomEvent
-    */
-    /**
-    * @event render
-    * @description Fired after the render method completes.
-    * @type YAHOO.util.CustomEvent
-    */
-
-    YAHOO.widget.Layout = Layout;
-})();
-/**
- * @description <p>Provides a fixed position unit containing a header, body and footer for use with a YAHOO.widget.Layout instance.</p>
- * @namespace YAHOO.widget
- * @requires yahoo, dom, element, event, layout
- * @optional animation, dragdrop, selector
- */
-(function() {
-    var Dom = YAHOO.util.Dom,
-        Sel = YAHOO.util.Selector,
-        Event = YAHOO.util.Event,
-        Lang = YAHOO.lang;
-
-    /**
-     * @constructor
-     * @class LayoutUnit
-     * @extends YAHOO.util.Element
-     * @description <p>Provides a fixed position unit containing a header, body and footer for use with a YAHOO.widget.Layout instance.</p>
-     * @param {String/HTMLElement} el The element to make a unit.
-     * @param {Object} attrs Object liternal containing configuration parameters.
-    */
-
-    var LayoutUnit = function(el, config) {
-        
-        var oConfig = {
-            element: el,
-            attributes: config || {}
-        };
-
-        LayoutUnit.superclass.constructor.call(this, oConfig.element, oConfig.attributes);    
-    };
-
-    /**
-    * @private
-    * @static
-    * @property _instances
-    * @description Internal hash table for all layout unit instances
-    * @type Object
-    */ 
-    LayoutUnit._instances = {};
-    /**
-    * @static
-    * @method getLayoutUnitById 
-    * @description Get's a layout unit object by the HTML id of the element associated with the Layout Unit object.
-    * @return {Object} The Layout Object
-    */ 
-    LayoutUnit.getLayoutUnitById = function(id) {
-        if (LayoutUnit._instances[id]) {
-            return LayoutUnit._instances[id];
-        }
-        return false;
-    };
-
-    YAHOO.extend(LayoutUnit, YAHOO.util.Element, {
-        /**
-        * @property STR_CLOSE
-        * @description String used for close button title
-        * @type {String}
-        */
-        STR_CLOSE: 'Click to close this pane.',
-        /**
-        * @property STR_COLLAPSE
-        * @description String used for collapse button title
-        * @type {String}
-        */
-        STR_COLLAPSE: 'Click to collapse this pane.',
-        /**
-        * @property STR_EXPAND
-        * @description String used for expand button title
-        * @type {String}
-        */
-        STR_EXPAND: 'Click to expand this pane.',
-        /**
-           * The class name applied to dynamic tabs while loading.
-           * @property LOADING_CLASSNAME
-           * @type String
-           * @default "disabled"
-           */
-           LOADING_CLASSNAME: 'loading',
-        /**
-        * @property browser
-        * @description A modified version of the YAHOO.env.ua object
-        * @type Object
-        */
-        browser: null,
-        /**
-        * @private
-        * @property _sizes
-        * @description A collection of the current sizes of the contents of this Layout Unit
-        * @type Object
-        */
-        _sizes: null,
-        /**
-        * @private
-        * @property _anim
-        * @description A reference to the Animation instance used by this LayouUnit
-        * @type YAHOO.util.Anim
-        */
-        _anim: null,
-        /**
-        * @private
-        * @property _resize
-        * @description A reference to the Resize instance used by this LayoutUnit
-        * @type YAHOO.util.Resize
-        */
-        _resize: null,
-        /**
-        * @private
-        * @property _clip
-        * @description A reference to the clip element used when collapsing the unit
-        * @type HTMLElement
-        */
-        _clip: null,
-        /**
-        * @private
-        * @property _gutter
-        * @description A simple hash table used to store the gutter to apply to the Unit
-        * @type Object
-        */
-        _gutter: null,
-        /**
-        * @property header
-        * @description A reference to the HTML element used for the Header
-        * @type HTMLELement
-        */
-        header: null,
-        /**
-        * @property body
-        * @description A reference to the HTML element used for the body
-        * @type HTMLElement
-        */
-        body: null,
-        /**
-        * @property footer
-        * @description A reference to the HTML element used for the footer
-        * @type HTMLElement
-        */
-        footer: null,
-        /**
-        * @private
-        * @property _collapsed
-        * @description Flag to determine if the unit is collapsed or not.
-        * @type Boolean
-        */
-        _collapsed: null,
-        /**
-        * @private
-        * @property _collapsing
-        * @description A flag set while the unit is being collapsed, used so we don't fire events while animating the size
-        * @type Boolean
-        */
-        _collapsing: null,
-        /**
-        * @private
-        * @property _lastWidth
-        * @description A holder for the last known width of the unit
-        * @type Number
-        */
-        _lastWidth: null,
-        /**
-        * @private
-        * @property _lastHeight
-        * @description A holder for the last known height of the unit
-        * @type Number
-        */
-        _lastHeight: null,
-        /**
-        * @private
-        * @property _lastTop
-        * @description A holder for the last known top of the unit
-        * @type Number
-        */
-        _lastTop: null,
-        /**
-        * @private
-        * @property _lastLeft
-        * @description A holder for the last known left of the unit
-        * @type Number
-        */
-        _lastLeft: null,
-        /**
-        * @private
-        * @property _lastScroll
-        * @description A holder for the last known scroll state of the unit
-        * @type Boolean
-        */
-        _lastScroll: null,
-        /**
-        * @private
-        * @property _lastCenetrScroll
-        * @description A holder for the last known scroll state of the center unit
-        * @type Boolean
-        */
-        _lastCenterScroll: null,
-        /**
-        * @private
-        * @property _lastScrollTop
-        * @description A holder for the last known scrollTop state of the unit
-        * @type Number
-        */
-        _lastScrollTop: null,
-        /**
-        * @method resize
-        * @description Resize either the unit or it's clipped state, also updating the box inside
-        * @param {Boolean} force This will force full calculations even when the unit is collapsed
-        * @return {<a href="YAHOO.widget.LayoutUnit.html">YAHOO.widget.LayoutUnit</a>} The LayoutUnit instance
-        */
-        resize: function(force) {
-            var retVal = this.fireEvent('beforeResize');
-            if (retVal === false) {
-                return this;
-            }
-            if (!this._collapsing || (force === true)) {
-                var scroll = this.get('scroll');
-                this.set('scroll', false);
-
-
-                var hd = this._getBoxSize(this.header),
-                    ft = this._getBoxSize(this.footer),
-                    box = [this.get('height'), this.get('width')];
-
-                var nh = (box[0] - hd[0] - ft[0]) - (this._gutter.top + this._gutter.bottom),
-                    nw = box[1] - (this._gutter.left + this._gutter.right);
-
-                var wrapH = (nh + (hd[0] + ft[0])),
-                    wrapW = nw;
-
-                if (this._collapsed && !this._collapsing) {
-                    this._setHeight(this._clip, wrapH);
-                    this._setWidth(this._clip, wrapW);
-                    Dom.setStyle(this._clip, 'top', this.get('top') + this._gutter.top + 'px');
-                    Dom.setStyle(this._clip, 'left', this.get('left') + this._gutter.left + 'px');
-                } else if (!this._collapsed || (this._collapsed && this._collapsing)) {
-                    wrapH = this._setHeight(this.get('wrap'), wrapH);
-                    wrapW = this._setWidth(this.get('wrap'), wrapW);
-                    this._sizes.wrap.h = wrapH;
-                    this._sizes.wrap.w = wrapW;
-
-                    Dom.setStyle(this.get('wrap'), 'top', this._gutter.top + 'px');
-                    Dom.setStyle(this.get('wrap'), 'left', this._gutter.left + 'px');
-
-                    this._sizes.header.w = this._setWidth(this.header, wrapW);
-                    this._sizes.header.h = hd[0];
-
-                    this._sizes.footer.w = this._setWidth(this.footer, wrapW);
-                    this._sizes.footer.h = ft[0];
-
-                    Dom.setStyle(this.footer, 'bottom', '0px');
-
-                    this._sizes.body.h = this._setHeight(this.body, (wrapH - (hd[0] + ft[0])));
-                    this._sizes.body.w =this._setWidth(this.body, wrapW);
-                    Dom.setStyle(this.body, 'top', hd[0] + 'px');
-
-                    this.set('scroll', scroll);
-                    this.fireEvent('resize');
-                }
-            }
-            return this;
-        },
-        /**
-        * @private
-        * @method _setWidth
-        * @description Sets the width of the element based on the border size of the element.
-        * @param {HTMLElement} el The HTMLElement to have it's width set
-        * @param {Number} w The width that you want it the element set to
-        * @return {Number} The new width, fixed for borders and IE QuirksMode
-        */
-        _setWidth: function(el, w) {
-            if (el) {
-                var b = this._getBorderSizes(el);
-                w = (w - (b[1] + b[3]));
-                w = this._fixQuirks(el, w, 'w');
-                if (w < 0) {
-                    w = 0;
-                }
-                Dom.setStyle(el, 'width', w + 'px');
-            }
-            return w;
-        },
-        /**
-        * @private
-        * @method _setHeight
-        * @description Sets the height of the element based on the border size of the element.
-        * @param {HTMLElement} el The HTMLElement to have it's height set
-        * @param {Number} h The height that you want it the element set to
-        * @return {Number} The new height, fixed for borders and IE QuirksMode
-        */
-        _setHeight: function(el, h) {
-            if (el) {
-                var b = this._getBorderSizes(el);
-                h = (h - (b[0] + b[2]));
-                h = this._fixQuirks(el, h, 'h');
-                if (h < 0) {
-                    h = 0;
-                }
-                Dom.setStyle(el, 'height', h + 'px');
-            }
-            return h;
-        },
-        /**
-        * @private
-        * @method _fixQuirks
-        * @description Fixes the box calculations for IE in QuirksMode
-        * @param {HTMLElement} el The HTMLElement to set the dimension on
-        * @param {Number} dim The number of the dimension to fix
-        * @param {String} side The dimension (h or w) to fix. Defaults to h
-        * @return {Number} The fixed dimension
-        */
-        _fixQuirks: function(el, dim, side) {
-            var i1 = 0, i2 = 2;
-            if (side == 'w') {
-                i1 = 1;
-                i2 = 3;
-            }
-            if ((this.browser.ie < 8) && !this.browser.standardsMode) {
-                //Internet Explorer - Quirks Mode
-                var b = this._getBorderSizes(el),
-                    bp = this._getBorderSizes(el.parentNode);
-                if ((b[i1] === 0) && (b[i2] === 0)) { //No Borders, check parent
-                    if ((bp[i1] !== 0) && (bp[i2] !== 0)) { //Parent has Borders
-                        dim = (dim - (bp[i1] + bp[i2]));
-                    }
-                } else {
-                    if ((bp[i1] === 0) && (bp[i2] === 0)) {
-                        dim = (dim + (b[i1] + b[i2]));
-                    }
-                }
-            }
-            return dim;
-        },
-        /**
-        * @private
-        * @method _getBoxSize
-        * @description Get's the elements clientHeight and clientWidth plus the size of the borders
-        * @param {HTMLElement} el The HTMLElement to get the size of
-        * @return {Array} An array of height and width
-        */
-        _getBoxSize: function(el) {
-            var size = [0, 0];
-            if (el) {
-                if (this.browser.ie && !this.browser.standardsMode) {
-                    el.style.zoom = 1;
-                }
-                var b = this._getBorderSizes(el);
-                size[0] = el.clientHeight + (b[0] + b[2]);
-                size[1] = el.clientWidth + (b[1] + b[3]);
-            }
-            return size;
-        },
-        /**
-        * @private
-        * @method _getBorderSizes
-        * @description Get the CSS border size of the element passed.
-        * @param {HTMLElement} el The element to get the border size of
-        * @return {Array} An array of the top, right, bottom, left borders.
-        */
-        _getBorderSizes: function(el) {
-            var s = [];
-            el = el || this.get('element');
-            if (this.browser.ie && !this.browser.standardsMode) {
-                el.style.zoom = 1;
-            }
-            s[0] = parseInt(Dom.getStyle(el, 'borderTopWidth'), 10);
-            s[1] = parseInt(Dom.getStyle(el, 'borderRightWidth'), 10);
-            s[2] = parseInt(Dom.getStyle(el, 'borderBottomWidth'), 10);
-            s[3] = parseInt(Dom.getStyle(el, 'borderLeftWidth'), 10);
-            
-            //IE will return NaN on these if they are set to auto, we'll set them to 0
-            for (var i = 0; i < s.length; i++) {
-                if (isNaN(s[i])) {
-                    s[i] = 0;
-                }
-            }
-            return s;
-        },
-        /**
-        * @private
-        * @method _createClip
-        * @description Create the clip element used when the Unit is collapsed
-        */
-        _createClip: function() {
-            if (!this._clip) {
-                this._clip = document.createElement('div');
-                this._clip.className = 'yui-layout-clip yui-layout-clip-' + this.get('position');
-                this._clip.innerHTML = '<div class="collapse"></div>';
-                var c = this._clip.firstChild;
-                c.title = this.STR_EXPAND;
-                Event.on(c, 'click', this.expand, this, true);
-                this.get('element').parentNode.appendChild(this._clip);
-            }
-        },
-        /**
-        * @private
-        * @method _toggleClip
-        * @description Toggle th current state of the Clip element and set it's height, width and position
-        */
-        _toggleClip: function() {
-            if (!this._collapsed) {
-                //show
-                var hd = this._getBoxSize(this.header),
-                    ft = this._getBoxSize(this.footer),
-                    box = [this.get('height'), this.get('width')];
-
-
-                var nh = (box[0] - hd[0] - ft[0]) - (this._gutter.top + this._gutter.bottom),
-                    nw = box[1] - (this._gutter.left + this._gutter.right),
-                    wrapH = (nh + (hd[0] + ft[0]));
-
-                switch (this.get('position')) {
-                    case 'top':
-                    case 'bottom':
-                        this._setWidth(this._clip, nw);
-                        this._setHeight(this._clip, this.get('collapseSize'));
-                        Dom.setStyle(this._clip, 'left', (this._lastLeft + this._gutter.left) + 'px');
-                        if (this.get('position') == 'bottom') {
-                            Dom.setStyle(this._clip, 'top', ((this._lastTop + this._lastHeight) - (this.get('collapseSize') - this._gutter.top)) + 'px');
-                        } else {
-                            Dom.setStyle(this._clip, 'top', this.get('top') + this._gutter.top + 'px');
-                        }
-                        break;
-                    case 'left':
-                    case 'right':
-                        this._setWidth(this._clip, this.get('collapseSize'));
-                        this._setHeight(this._clip, wrapH);
-                        Dom.setStyle(this._clip, 'top', (this.get('top') + this._gutter.top) + 'px');
-                        if (this.get('position') == 'right') {
-                            Dom.setStyle(this._clip, 'left', (((this._lastLeft + this._lastWidth) - this.get('collapseSize')) - this._gutter.left) + 'px');
-                        } else {
-                            Dom.setStyle(this._clip, 'left', (this.get('left') + this._gutter.left) + 'px');
-                        }
-                        break;
-                }
-
-                Dom.setStyle(this._clip, 'display', 'block');
-                this.setStyle('display', 'none');
-            } else {
-                //Hide
-                Dom.setStyle(this._clip, 'display', 'none');
-            }
-        },
-        /**
-        * @method getSizes
-        * @description Get a reference to the internal sizes object for this unit
-        * @return {Object} An object of the sizes used for calculations
-        */
-        getSizes: function() {
-            return this._sizes;
-        },
-        /**
-        * @method toggle
-        * @description Toggles the Unit, replacing it with a clipped version.
-        * @return {<a href="YAHOO.widget.LayoutUnit.html">YAHOO.widget.LayoutUnit</a>} The LayoutUnit instance
-        */
-        toggle: function() {
-            if (this._collapsed) {
-                this.expand();
-            } else {
-                this.collapse();
-            }
-            return this;
-        },
-        /**
-        * @method expand
-        * @description Expand the Unit if it is collapsed.
-        * @return {<a href="YAHOO.widget.LayoutUnit.html">YAHOO.widget.LayoutUnit</a>} The LayoutUnit instance
-        */
-        expand: function() {
-            if (!this._collapsed) {
-                return this;
-            }
-            var retVal = this.fireEvent('beforeExpand');
-            if (retVal === false) {
-                return this;
-            }
-
-            this._collapsing = true;
-            this.setStyle('zIndex', this.get('parent')._zIndex + 1);
-
-            if (this._anim) {
-                this.setStyle('display', 'none');
-                var attr = {}, s;
-
-                switch (this.get('position')) {
-                    case 'left':
-                    case 'right':
-                        this.set('width', this._lastWidth, true);
-                        this.setStyle('width', this._lastWidth + 'px');
-                        this.get('parent').resize(false);
-                        s = this.get('parent').getSizes()[this.get('position')];
-                        this.set('height', s.h, true);
-                        var left = s.l;
-                        attr = {
-                            left: {
-                                to: left
-                            }
-                        };
-                        if (this.get('position') == 'left') {
-                            attr.left.from = (left - s.w);
-                            this.setStyle('left', (left - s.w) + 'px');
-                        }
-                        break;
-                    case 'top':
-                    case 'bottom':
-                        this.set('height', this._lastHeight, true);
-                        this.setStyle('height', this._lastHeight + 'px');
-                        this.get('parent').resize(false);
-                        s = this.get('parent').getSizes()[this.get('position')];
-                        this.set('width', s.w, true);
-                        var top = s.t;
-                        attr = {
-                            top: {
-                                to: top
-                            }
-                        };
-                        if (this.get('position') == 'top') {
-                            this.setStyle('top',  (top - s.h) + 'px');
-                            attr.top.from = (top - s.h);
-                        }
-                        break;
-                }
-
-                this._anim.attributes = attr;
-                var exStart = function() {
-                    this.setStyle('display', 'block');
-                    this.resize(true);
-                    this._anim.onStart.unsubscribe(exStart, this, true);
-                };
-                var expand = function() {
-                    this._collapsing = false;
-                    this.setStyle('zIndex', this.get('parent')._zIndex);
-                    this.set('width', this._lastWidth);
-                    this.set('height', this._lastHeight);
-                    this._collapsed = false;
-                    this.resize();
-                    this.set('scroll', this._lastScroll);
-                    if (this._lastScrollTop > 0) {
-                        this.body.scrollTop = this._lastScrollTop;
-                    }
-                    this._anim.onComplete.unsubscribe(expand, this, true);
-                    this.fireEvent('expand');
-                };
-                this._anim.onStart.subscribe(exStart, this, true);
-                this._anim.onComplete.subscribe(expand, this, true);
-                this._anim.animate();
-                this._toggleClip();
-            } else {
-                this._collapsing = false;
-                this._toggleClip();
-                this._collapsed = false;
-                this.setStyle('zIndex', this.get('parent')._zIndex);
-                this.setStyle('display', 'block');
-                this.set('width', this._lastWidth);
-                this.set('height', this._lastHeight);
-                this.resize();
-                this.set('scroll', this._lastScroll);
-                if (this._lastScrollTop > 0) {
-                    this.body.scrollTop = this._lastScrollTop;
-                }
-                this.fireEvent('expand');
-            }
-            return this;
-        },
-        /**
-        * @method collapse
-        * @description Collapse the Unit if it is not collapsed.
-        * @return {<a href="YAHOO.widget.LayoutUnit.html">YAHOO.widget.LayoutUnit</a>} The LayoutUnit instance
-        */
-        collapse: function() {
-            if (this._collapsed) {
-                return this;
-            }
-            var retValue = this.fireEvent('beforeCollapse');
-            if (retValue === false) {
-                return this;
-            }
-            if (!this._clip) {
-                this._createClip();
-            }
-            this._collapsing = true;
-            var w = this.get('width'),
-                h = this.get('height'),
-                attr = {};
-            this._lastWidth = w;
-            this._lastHeight = h;
-            this._lastScroll = this.get('scroll');
-            this._lastScrollTop = this.body.scrollTop;            
-            this.set('scroll', false, true);
-            this._lastLeft = parseInt(this.get('element').style.left, 10);
-            this._lastTop = parseInt(this.get('element').style.top, 10);
-            if (isNaN(this._lastTop)) {
-                this._lastTop = 0;
-                this.set('top', 0);
-            }
-            if (isNaN(this._lastLeft)) {
-                this._lastLeft = 0;
-                this.set('left', 0);
-            }
-            this.setStyle('zIndex', this.get('parent')._zIndex + 1);
-            var pos = this.get('position');
-
-            switch (pos) {
-                case 'top':
-                case 'bottom':
-                    this.set('height', (this.get('collapseSize') + (this._gutter.top + this._gutter.bottom)));
-                    attr = {
-                        top: {
-                            to: (this.get('top') - h)
-                        }
-                    };
-                    if (pos == 'bottom') {
-                        attr.top.to = (this.get('top') + h);
-                    }
-                    break;
-                case 'left':
-                case 'right':
-                    this.set('width', (this.get('collapseSize') + (this._gutter.left + this._gutter.right)));
-                    attr = {
-                        left: {
-                            to: -(this._lastWidth)
-                        }
-                    };
-                    if (pos == 'right') {
-                        attr.left = {
-                            to: (this.get('left') + w)
-                        };
-                    }
-                    break;
-            }
-            if (this._anim) {
-                this._anim.attributes = attr;
-                var collapse = function() {
-                    this._collapsing = false;
-                    this._toggleClip();
-                    this.setStyle('zIndex', this.get('parent')._zIndex);
-                    this._collapsed = true;
-                    this.get('parent').resize();
-                    this._anim.onComplete.unsubscribe(collapse, this, true);
-                    this.fireEvent('collapse');
-                };
-                this._anim.onComplete.subscribe(collapse, this, true);
-                this._anim.animate();
-            } else {
-                this._collapsing = false;
-                this.setStyle('display', 'none');
-                this._toggleClip();
-                this.setStyle('zIndex', this.get('parent')._zIndex);
-                this.get('parent').resize();
-                this._collapsed = true;
-                this.fireEvent('collapse');
-            }
-            return this;
-        },
-        /**
-        * @method close
-        * @description Close the unit, removing it from the parent Layout.
-        * @return {<a href="YAHOO.widget.Layout.html">YAHOO.widget.Layout</a>} The parent Layout instance
-        */
-        close: function() {
-            this.setStyle('display', 'none');
-            this.get('parent').removeUnit(this);
-            this.fireEvent('close');
-            if (this._clip) {
-                this._clip.parentNode.removeChild(this._clip);
-                this._clip = null;
-            }
-            return this.get('parent');
-        },
-               /**
-        * @property loadHandler
-        * @description Callback method for the YUI Connection Manager used for load the body using AJAX
-        * @type Object
-        */
-               loadHandler: {
-            success: function(o) {
-                               this.body.innerHTML = o.responseText;
-                               this.resize (true);
-            },
-            failure: function(o) {
-            }
-        },
-               /**
-        * @property dataConnection
-        * @description YUI Connection Manager handler
-        * @type Object
-        */
-               dataConnection: null,
-               /**
-        * @private
-        * @property _loading
-        * @description During the loading process this variable will be true
-        * @type Number
-        */
-        _loading: false,
-               /**
-        * @method loadContent
-        * @description Loading the content of the unit using the connection manager
-        * @return {object} YUI Connection Manager handler
-        */
-        loadContent: function() {
-                       // load dynamic content unless already loading or loaded and caching
-                       if (YAHOO.util.Connect && this.get('dataSrc') && !this._loading && !this.get('dataLoaded')) {
-                       this._loading = true; 
-                       Dom.addClass(this.body, this.LOADING_CLASSNAME);
-                               this.dataConnection = YAHOO.util.Connect.asyncRequest(
-                           this.get('loadMethod'),
-                           this.get('dataSrc'), 
-                           {
-                               success: function(o) {
-                                   this.loadHandler.success.call(this, o);
-                                   this.set('dataLoaded', true);
-                                   this.dataConnection = null;
-                                   Dom.removeClass(this.body, this.LOADING_CLASSNAME);
-                                                       this._loading = false;
-                                                       this.fireEvent('load');
-                               },
-                               failure: function(o) {
-                                   this.loadHandler.failure.call(this, o);
-                                   this.dataConnection = null;
-                                   Dom.removeClass(this.body, this.LOADING_CLASSNAME);
-                                   this._loading = false;
-                                                       this.fireEvent('loadError', { error: o });
-                               },
-                               scope: this,
-                               timeout: this.get('dataTimeout')
-                           }
-                       );
-                               return this.dataConnection;
-               }
-                       return false;
-        },
-        /**
-        * @private
-        * @method init
-        * @description The initalization method inherited from Element.
-        */
-        init: function(p_oElement, p_oAttributes) {
-            this._gutter = {
-                left: 0,
-                right: 0,
-                top: 0,
-                bottom: 0
-            };
-            this._sizes = {
-                wrap: {
-                    h: 0,
-                    w: 0
-                },
-                header: {
-                    h: 0,
-                    w: 0
-                },
-                body: {
-                    h: 0,
-                    w: 0
-                },
-                footer: {
-                    h: 0,
-                    w: 0
-                }
-            };
-            
-            LayoutUnit.superclass.init.call(this, p_oElement, p_oAttributes);
-
-            this.browser = this.get('parent').browser;
-            
-            var id = p_oElement;
-            if (!Lang.isString(id)) {
-                id = Dom.generateId(id);
-            }
-            LayoutUnit._instances[id] = this;
-
-            this.setStyle('position', 'absolute');
-
-            this.addClass('yui-layout-unit');
-            this.addClass('yui-layout-unit-' + this.get('position'));
-
-
-            var header = this.getElementsByClassName('yui-layout-hd', 'div')[0];
-            if (header) {
-                this.header = header;
-            }
-            var body = this.getElementsByClassName('yui-layout-bd', 'div')[0];
-            if (body) {
-                this.body = body;
-            }
-            var footer = this.getElementsByClassName('yui-layout-ft', 'div')[0];
-            if (footer) {
-                this.footer = footer;
-            }
-
-            this.on('contentChange', this.resize, this, true);
-            this._lastScrollTop = 0;
-
-            this.set('animate', this.get('animate'));
-        },
-        /**
-        * @private
-        * @method initAttributes
-        * @description Processes the config
-        */        
-        initAttributes: function(attr) {
-            LayoutUnit.superclass.initAttributes.call(this, attr);
-
-            /**
-            * @private
-            * @attribute wrap
-            * @description A reference to the wrap element
-            * @type HTMLElement
-            */
-            this.setAttributeConfig('wrap', {
-                value: attr.wrap || null,
-                method: function(w) {
-                    if (w) {
-                        var id = Dom.generateId(w);
-                        LayoutUnit._instances[id] = this;
-                    }
-                }
-            });
-            /**
-            * @attribute grids
-            * @description Set this option to true if you want the LayoutUnit to fix the first layer of YUI CSS Grids (margins)
-            * @type Boolean
-            */
-            this.setAttributeConfig('grids', {
-                value: attr.grids || false
-            });
-            /**
-            * @private
-            * @attribute top
-            * @description The current top positioning of the Unit
-            * @type Number
-            */
-            this.setAttributeConfig('top', {
-                value: attr.top || 0,
-                validator: Lang.isNumber,
-                method: function(t) {
-                    if (!this._collapsing) {
-                        this.setStyle('top', t + 'px');
-                    }
-                }
-            });
-            /**
-            * @private
-            * @attribute left
-            * @description The current left position of the Unit
-            * @type Number
-            */
-            this.setAttributeConfig('left', {
-                value: attr.left || 0,
-                validator: Lang.isNumber,
-                method: function(l) {
-                    if (!this._collapsing) {
-                        this.setStyle('left', l + 'px');
-                    }
-                }
-            });
-
-            /**
-            * @attribute minWidth
-            * @description The minWidth parameter passed to the Resize Utility
-            * @type Number
-            */
-            this.setAttributeConfig('minWidth', {
-                value: attr.minWidth || false,
-                method: function(v) {
-                    if (this._resize) {
-                        this._resize.set('minWidth', v);
-                    }
-                },
-                validator: YAHOO.lang.isNumber
-            });
-
-            /**
-            * @attribute maxWidth
-            * @description The maxWidth parameter passed to the Resize Utility
-            * @type Number
-            */
-            this.setAttributeConfig('maxWidth', {
-                value: attr.maxWidth || false,
-                method: function(v) {
-                    if (this._resize) {
-                        this._resize.set('maxWidth', v);
-                    }
-                },
-                validator: YAHOO.lang.isNumber
-            });
-
-            /**
-            * @attribute minHeight
-            * @description The minHeight parameter passed to the Resize Utility
-            * @type Number
-            */
-            this.setAttributeConfig('minHeight', {
-                value: attr.minHeight || false,
-                method: function(v) {
-                    if (this._resize) {
-                        this._resize.set('minHeight', v);
-                    }
-                },
-                validator: YAHOO.lang.isNumber
-            });
-
-            /**
-            * @attribute maxHeight
-            * @description The maxHeight parameter passed to the Resize Utility
-            * @type Number
-            */
-            this.setAttributeConfig('maxHeight', {
-                value: attr.maxHeight || false,
-                method: function(v) {
-                    if (this._resize) {
-                        this._resize.set('maxHeight', v);
-                    }
-                },
-                validator: YAHOO.lang.isNumber
-            });
-
-            /**
-            * @attribute height
-            * @description The height of the Unit
-            * @type Number
-            */
-            this.setAttributeConfig('height', {
-                value: attr.height,
-                validator: Lang.isNumber,
-                method: function(h) {
-                    if (!this._collapsing) {
-                        if (h < 0) {
-                            h = 0;
-                        }
-                        this.setStyle('height', h + 'px');
-                    }
-                }
-            });
-
-            /**
-            * @attribute width
-            * @description The width of the Unit
-            * @type Number
-            */
-            this.setAttributeConfig('width', {
-                value: attr.width,
-                validator: Lang.isNumber,
-                method: function(w) {
-                    if (!this._collapsing) {
-                        if (w < 0) {
-                            w = 0;
-                        }
-                        this.setStyle('width', w + 'px');
-                    }
-                }
-            });
-            /**
-            * @attribute zIndex
-            * @description The CSS zIndex to give to the unit, so you can have overlapping elements such as menus in a unit.
-            * @type {Number}
-            */
-            this.setAttributeConfig('zIndex', {
-                value: attr.zIndex || false,
-                method: function(z) {
-                    this.setStyle('zIndex', z);
-                }
-            });
-            /**
-            * @attribute position
-            * @description The position (top, right, bottom, left or center) of the Unit in the Layout
-            * @type {String}
-            */
-            this.setAttributeConfig('position', {
-                value: attr.position
-            });
-            /**
-            * @attribute gutter
-            * @description The gutter that we should apply to the parent Layout around this Unit. Supports standard CSS markup: (2 4 0 5) or (2) or (2 5)
-            * @type String
-            */
-            this.setAttributeConfig('gutter', {
-                value: attr.gutter || 0,
-                validator: YAHOO.lang.isString,
-                method: function(gutter) {
-                    var p = gutter.split(' ');
-                    if (p.length) {
-                        this._gutter.top = parseInt(p[0], 10);
-                        if (p[1]) {
-                            this._gutter.right = parseInt(p[1], 10);
-                        } else {
-                            this._gutter.right = this._gutter.top;
-                        }
-                        if (p[2]) {
-                            this._gutter.bottom = parseInt(p[2], 10);
-                        } else {
-                            this._gutter.bottom = this._gutter.top;
-                        }
-                        if (p[3]) {
-                            this._gutter.left = parseInt(p[3], 10);
-                        } else if (p[1]) {
-                            this._gutter.left = this._gutter.right;
-                        } else {
-                            this._gutter.left = this._gutter.top;
-                        }
-                    }
-                }
-            });
-            /**
-            * @attribute parent
-            * @description The parent Layout that we are assigned to
-            * @type {Object} YAHOO.widget.Layout
-            */
-            this.setAttributeConfig('parent', {
-                writeOnce: true,
-                value: attr.parent || false,
-                method: function(p) {
-                    if (p) {
-                        p.on('resize', this.resize, this, true);
-                    }
-
-                }
-            });
-            /**
-            * @attribute collapseSize
-            * @description The pixel size of the Clip that we will collapse to
-            * @type Number
-            */
-            this.setAttributeConfig('collapseSize', {
-                value: attr.collapseSize || 25,
-                validator: YAHOO.lang.isNumber
-            });
-            /**
-            * @attribute duration
-            * @description The duration to give the Animation Utility when animating the opening and closing of Units
-            */
-            this.setAttributeConfig('duration', {
-                value: attr.duration || 0.5
-            });
-            /**
-            * @attribute easing
-            * @description The Animation Easing to apply to the Animation instance for this unit.
-            */
-            this.setAttributeConfig('easing', {
-                value: attr.easing || ((YAHOO.util && YAHOO.util.Easing) ? YAHOO.util.Easing.BounceIn : 'false')
-            });
-            /**
-            * @attribute animate
-            * @description Use animation to collapse/expand the unit
-            * @type Boolean
-            */
-            this.setAttributeConfig('animate', {
-                value: ((attr.animate === false) ? false : true),
-                validator: function() {
-                    var anim = false;
-                    if (YAHOO.util.Anim) {
-                        anim = true;
-                    }
-                    return anim;
-                },
-                method: function(anim) {
-                    if (anim) {
-                        this._anim = new YAHOO.util.Anim(this.get('element'), {}, this.get('duration'), this.get('easing'));
-                    } else {
-                        this._anim = false;
-                    }
-                }
-            });
-            /**
-            * @attribute header
-            * @description The text to use as the Header of the Unit
-            */
-            this.setAttributeConfig('header', {
-                value: attr.header || false,
-                method: function(txt) {
-                    if (txt === false) {
-                        //Remove the footer
-                        if (this.header) {
-                            Dom.addClass(this.body, 'yui-layout-bd-nohd');
-                            this.header.parentNode.removeChild(this.header);
-                            this.header = null;
-                        }
-                    } else {
-                        if (!this.header) {
-                            var header = this.getElementsByClassName('yui-layout-hd', 'div')[0];
-                            if (!header) {
-                                header = this._createHeader();
-                            }
-                            this.header = header;
-                        }
-                        var h = this.header.getElementsByTagName('h2')[0];
-                        if (!h) {
-                            h = document.createElement('h2');
-                            this.header.appendChild(h);
-                        }
-                        h.innerHTML = txt;
-                        if (this.body) {
-                            Dom.removeClass(this.body, 'yui-layout-bd-nohd');
-                        }
-                    }
-                    this.fireEvent('contentChange', { target: 'header' });
-                }
-            });
-            /**
-            * @attribute proxy
-            * @description Use the proxy config setting for the Resize Utility
-            * @type Boolean
-            */
-            this.setAttributeConfig('proxy', {
-                writeOnce: true,
-                value: ((attr.proxy === false) ? false : true)
-            });
-            /**
-            * @attribute body
-            * @description The content for the body. If we find an element in the page with an id that matches the passed option we will move that element into the body of this unit.
-            */
-            this.setAttributeConfig('body', {
-                value: attr.body || false,
-                method: function(content) {
-                    if (!this.body) {
-                        var body = this.getElementsByClassName('yui-layout-bd', 'div')[0];
-                        if (body) {
-                            this.body = body;
-                        } else {
-                            body = document.createElement('div');
-                            body.className = 'yui-layout-bd';
-                            this.body = body;
-                            this.get('wrap').appendChild(body);
-                        }
-                    }
-                    if (!this.header) {
-                        Dom.addClass(this.body, 'yui-layout-bd-nohd');
-                    }
-                    Dom.addClass(this.body, 'yui-layout-bd-noft');
-
-
-                    var el = null;
-                    if (Lang.isString(content)) {
-                        el = Dom.get(content);
-                    } else if (content && content.tagName) {
-                        el = content;
-                    }
-                    if (el) {
-                        var id = Dom.generateId(el);
-                        LayoutUnit._instances[id] = this;
-                        this.body.appendChild(el);
-                    } else {
-                        this.body.innerHTML = content;
-                    }
-
-                    this._cleanGrids();
-
-                    this.fireEvent('contentChange', { target: 'body' });
-                }
-            });
-
-            /**
-            * @attribute footer
-            * @description The content for the footer. If we find an element in the page with an id that matches the passed option we will move that element into the footer of this unit.
-            */
-            this.setAttributeConfig('footer', {
-                value: attr.footer || false,
-                method: function(content) {
-                    if (content === false) {
-                        //Remove the footer
-                        if (this.footer) {
-                            Dom.addClass(this.body, 'yui-layout-bd-noft');
-                            this.footer.parentNode.removeChild(this.footer);
-                            this.footer = null;
-                        }
-                    } else {
-                        if (!this.footer) {
-                            var ft = this.getElementsByClassName('yui-layout-ft', 'div')[0];
-                            if (!ft) {
-                                ft = document.createElement('div');
-                                ft.className = 'yui-layout-ft';
-                                this.footer = ft;
-                                this.get('wrap').appendChild(ft);
-                            } else {
-                                this.footer = ft;
-                            }
-                        }
-                        var el = null;
-                        if (Lang.isString(content)) {
-                            el = Dom.get(content);
-                        } else if (content && content.tagName) {
-                            el = content;
-                        }
-                        if (el) {
-                            this.footer.appendChild(el);
-                        } else {
-                            this.footer.innerHTML = content;
-                        }
-                        Dom.removeClass(this.body, 'yui-layout-bd-noft');
-                    }
-                    this.fireEvent('contentChange', { target: 'footer' });
-                }
-            });
-            /**
-            * @attribute close
-            * @description Adds a close icon to the unit
-            */
-            this.setAttributeConfig('close', {
-                value: attr.close || false,
-                method: function(close) {
-                    //Position Center doesn't get this
-                    if (this.get('position') == 'center') {
-                        return false;
-                    }
-                    if (!this.header && close) {
-                        this._createHeader();
-                    }
-                    var c = Dom.getElementsByClassName('close', 'div', this.header)[0];
-                    if (close) {
-                        //Force some header text if there isn't any
-                        if (!this.get('header')) {
-                            this.set('header', '&nbsp;');
-                        }
-                        if (!c) {
-                            c = document.createElement('div');
-                            c.className = 'close';
-                            this.header.appendChild(c);
-                            Event.on(c, 'click', this.close, this, true);
-                        }
-                        c.title = this.STR_CLOSE;
-                    } else if (c && c.parentNode) {
-                        Event.purgeElement(c);
-                        c.parentNode.removeChild(c);
-                    }
-                    this._configs.close.value = close;
-                    this.set('collapse', this.get('collapse')); //Reset so we get the right classnames
-                }
-            });
-
-            /**
-            * @attribute collapse
-            * @description Adds a collapse icon to the unit
-            */
-            this.setAttributeConfig('collapse', {
-                value: attr.collapse || false,
-                method: function(collapse) {
-                    //Position Center doesn't get this
-                    if (this.get('position') == 'center') {
-                        return false;
-                    }
-                    if (!this.header && collapse) {
-                        this._createHeader();
-                    }
-                    var c = Dom.getElementsByClassName('collapse', 'div', this.header)[0];
-                    if (collapse) {
-                        //Force some header text if there isn't any
-                        if (!this.get('header')) {
-                            this.set('header', '&nbsp;');
-                        }
-                        if (!c) {
-                            c = document.createElement('div');
-                            this.header.appendChild(c);
-                            Event.on(c, 'click', this.collapse, this, true);
-                        }
-                        c.title = this.STR_COLLAPSE;
-                        c.className = 'collapse' + ((this.get('close')) ? ' collapse-close' : '');
-                    } else if (c && c.parentNode) {
-                        Event.purgeElement(c);
-                        c.parentNode.removeChild(c);
-                    }
-                }
-            });
-            /**
-            * @attribute scroll
-            * @description Adds a class to the unit to allow for overflow: auto (yui-layout-scroll), default is overflow: hidden (yui-layout-noscroll). If true scroll bars will be placed on the element when the content exceeds the given area, false will put overflow hidden to hide the content. Passing null will render the content as usual overflow.
-            * @type Boolean/Null
-            */
-
-            this.setAttributeConfig('scroll', {
-                value: (((attr.scroll === true) || (attr.scroll === false) || (attr.scroll === null)) ? attr.scroll : false),
-                method: function(scroll) {
-                    if ((scroll === false) && !this._collapsed) { //Removing scroll bar
-                        if (this.body) {
-                            if (this.body.scrollTop > 0) {
-                                this._lastScrollTop = this.body.scrollTop;
-                            }
-                        }
-                    }
-                    
-                    if (scroll === true) {
-                        this.addClass('yui-layout-scroll');
-                        this.removeClass('yui-layout-noscroll');
-                        if (this._lastScrollTop > 0) {
-                            if (this.body) {
-                                this.body.scrollTop = this._lastScrollTop;
-                            }
-                        }
-                    } else if (scroll === false) {
-                        this.removeClass('yui-layout-scroll');
-                        this.addClass('yui-layout-noscroll');
-                    } else if (scroll === null) {
-                        this.removeClass('yui-layout-scroll');
-                        this.removeClass('yui-layout-noscroll');
-                    }
-                }
-            });
-            /**
-            * @attribute hover
-            * @description Config option to pass to the Resize Utility
-            */
-            this.setAttributeConfig('hover', {
-                writeOnce: true,
-                value: attr.hover || false,
-                validator: YAHOO.lang.isBoolean
-            });
-            /**
-            * @attribute useShim
-            * @description Config option to pass to the Resize Utility
-            */
-            this.setAttributeConfig('useShim', {
-                value: attr.useShim || false,
-                validator: YAHOO.lang.isBoolean,
-                method: function(u) {
-                    if (this._resize) {
-                        this._resize.set('useShim', u);
-                    }
-                }
-            });
-            /**
-            * @attribute resize
-            * @description Should a Resize instance be added to this unit
-            */
-
-            this.setAttributeConfig('resize', {
-                value: attr.resize || false,
-                validator: function(r) {
-                    if (YAHOO.util && YAHOO.util.Resize) {
-                        return true;
-                    }
-                    return false;
-                },
-                method: function(resize) {
-                    if (resize && !this._resize) {
-                        //Position Center doesn't get this
-                        if (this.get('position') == 'center') {
-                            return false;
-                        }
-                        var handle = false; //To catch center
-                        switch (this.get('position')) {
-                            case 'top':
-                                handle = 'b';
-                                break;
-                            case 'bottom':
-                                handle = 't';
-                                break;
-                            case 'right':
-                                handle = 'l';
-                                break;
-                            case 'left':
-                                handle = 'r';
-                                break;
-                        }
-
-                        this.setStyle('position', 'absolute'); //Make sure Resize get's a position
-                        
-                        if (handle) {
-                            this._resize = new YAHOO.util.Resize(this.get('element'), {
-                                proxy: this.get('proxy'),
-                                hover: this.get('hover'),
-                                status: false,
-                                autoRatio: false,
-                                handles: [handle],
-                                minWidth: this.get('minWidth'),
-                                maxWidth: this.get('maxWidth'),
-                                minHeight: this.get('minHeight'),
-                                maxHeight: this.get('maxHeight'),
-                                height: this.get('height'),
-                                width: this.get('width'),
-                                setSize: false,
-                                useShim: this.get('useShim'),
-                                wrap: false
-                            });
-                            
-                            this._resize._handles[handle].innerHTML = '<div class="yui-layout-resize-knob"></div>';
-
-                            if (this.get('proxy')) {
-                                var proxy = this._resize.getProxyEl();
-                                proxy.innerHTML = '<div class="yui-layout-handle-' + handle + '"></div>';
-                            }
-                            this._resize.on('startResize', function(ev) {
-                                this._lastScroll = this.get('scroll');
-                                this.set('scroll', false);
-                                if (this.get('parent')) {
-                                    this.get('parent').fireEvent('startResize');
-                                    var c = this.get('parent').getUnitByPosition('center');
-                                    this._lastCenterScroll = c.get('scroll');
-                                    c.addClass(this._resize.CSS_RESIZING);
-                                    c.set('scroll', false);
-                                }
-                                this.fireEvent('startResize');
-                            }, this, true);
-                            this._resize.on('resize', function(ev) {
-                                this.set('height', ev.height);
-                                this.set('width', ev.width);
-                            }, this, true);
-                            this._resize.on('endResize', function(ev) {
-                                this.set('scroll', this._lastScroll);
-                                if (this.get('parent')) {
-                                    var c = this.get('parent').getUnitByPosition('center');
-                                    c.set('scroll', this._lastCenterScroll);
-                                    c.removeClass(this._resize.CSS_RESIZING);
-                                }
-                                this.resize();
-                                this.fireEvent('endResize');
-                            }, this, true);
-                        }
-                    } else {
-                        if (this._resize) {
-                            this._resize.destroy();
-                        }
-                    }
-                }
-            });
-                       /**
-                * The unit data source, used for loading content dynamically.
-                * @attribute dataSrc
-                * @type String
-                */
-               this.setAttributeConfig('dataSrc', {
-                   value: attr.dataSrc
-               });
-               /**
-                * The method to use for the data request.
-                * @attribute loadMethod
-                * @type String
-                * @default "GET"
-                */
-               this.setAttributeConfig('loadMethod', {
-                   value: attr.loadMethod || 'GET',
-                   validator: YAHOO.lang.isString
-               });     
-               /**
-                * Whether or not any data has been loaded from the server.
-                * @attribute dataLoaded
-                * @type Boolean
-                */        
-               this.setAttributeConfig('dataLoaded', {
-                   value: false,
-                   validator: YAHOO.lang.isBoolean,
-                   writeOnce: true
-               });
-               /**
-                * Number if milliseconds before aborting and calling failure handler.
-                * @attribute dataTimeout
-                * @type Number
-                * @default null
-                */
-               this.setAttributeConfig('dataTimeout', {
-                   value: attr.dataTimeout || null,
-                   validator: YAHOO.lang.isNumber
-               });
-        },
-        /**
-        * @private
-        * @method _cleanGrids
-        * @description This method attempts to clean up the first level of the YUI CSS Grids, YAHOO.util.Selector is required for this operation.
-        */
-        _cleanGrids: function() {
-            if (this.get('grids')) {
-                var b = Sel.query('div.yui-b', this.body, true);
-                if (b) {
-                    Dom.removeClass(b, 'yui-b');
-                }
-                Event.onAvailable('yui-main', function() {
-                    Dom.setStyle(Sel.query('#yui-main'), 'margin-left', '0');
-                    Dom.setStyle(Sel.query('#yui-main'), 'margin-right', '0');
-                });
-            }
-        },
-        /**
-        * @private
-        * @method _createHeader
-        * @description Creates the HTMLElement for the header
-        * @return {HTMLElement} The new HTMLElement
-        */
-        _createHeader: function() {
-            var header = document.createElement('div');
-            header.className = 'yui-layout-hd';
-            if (this.get('firstChild')) {
-                this.get('wrap').insertBefore(header, this.get('wrap').firstChild);
-            } else {
-                this.get('wrap').appendChild(header);
-            }
-            this.header = header;
-            return header;
-        },
-        /**
-        * @method destroy
-        * @param {Boolean} force Don't report to the parent, because we are being called from the parent.
-        * @description Removes this unit from the parent and cleans up after itself.
-        * @return {<a href="YAHOO.widget.Layout.html">YAHOO.widget.Layout</a>} The parent Layout instance
-        */
-        destroy: function(force) {
-            if (this._resize) {
-                this._resize.destroy();
-            }
-            var par = this.get('parent');
-
-            this.setStyle('display', 'none');
-            if (this._clip) {
-                this._clip.parentNode.removeChild(this._clip);
-                this._clip = null;
-            }
-
-            if (!force) {
-                par.removeUnit(this);
-            }
-            
-            if (par) {
-                par.removeListener('resize', this.resize, this, true);
-            }
-            this.unsubscribeAll();
-            Event.purgeElement(this.get('element'));
-            this.get('parentNode').removeChild(this.get('element'));
-
-            delete YAHOO.widget.LayoutUnit._instances[this.get('id')];
-            //Brutal Object Destroy
-            for (var i in this) {
-                if (Lang.hasOwnProperty(this, i)) {
-                    this[i] = null;
-                    delete this[i];
-                }
-            }
-        
-            return par;
-        },
-        /**
-        * @method toString
-        * @description Returns a string representing the LayoutUnit.
-        * @return {String}
-        */        
-        toString: function() {
-            if (this.get) {
-                return 'LayoutUnit #' + this.get('id') + ' (' + this.get('position') + ')';
-            }
-            return 'LayoutUnit';
-        }
-    /**
-    * @event resize
-    * @description Fired when this.resize is called
-    * @type YAHOO.util.CustomEvent
-    */
-    /**
-    * @event startResize
-    * @description Fired when the Resize Utility fires it's startResize Event.
-    * @type YAHOO.util.CustomEvent
-    */
-    /**
-    * @event endResize
-    * @description Fired when the Resize Utility fires it's endResize Event.
-    * @type YAHOO.util.CustomEvent
-    */
-    /**
-    * @event beforeResize
-    * @description Fired at the beginning of the resize method. If you return false, the resize is cancelled.
-    * @type YAHOO.util.CustomEvent
-    */
-    /**
-    * @event contentChange
-    * @description Fired when the content in the header, body or footer is changed via the API
-    * @type YAHOO.util.CustomEvent
-    */
-    /**
-    * @event close
-    * @description Fired when the unit is closed
-    * @type YAHOO.util.CustomEvent
-    */
-    /**
-    * @event beforeCollapse
-    * @description Fired before the unit is collapsed. If you return false, the collapse is cancelled.
-    * @type YAHOO.util.CustomEvent
-    */
-    /**
-    * @event collapse
-    * @description Fired when the unit is collapsed
-    * @type YAHOO.util.CustomEvent
-    */
-    /**
-    * @event expand
-    * @description Fired when the unit is exanded
-    * @type YAHOO.util.CustomEvent
-    */
-    /**
-    * @event beforeExpand
-    * @description Fired before the unit is exanded. If you return false, the collapse is cancelled.
-    * @type YAHOO.util.CustomEvent
-    */
-    /**
-    * @event load
-    * @description Fired when data is loaded via the dataSrc config.
-    * @type YAHOO.util.CustomEvent
-    */
-    /**
-    * @event loadError
-    * @description Fired when an error occurs loading data via the dataSrc config. Error message is passed as argument to this event.
-    * @type YAHOO.util.CustomEvent
-    */
-    });
-
-    YAHOO.widget.LayoutUnit = LayoutUnit;
-})();
-YAHOO.register("layout", YAHOO.widget.Layout, {version: "2.8.0r4", build: "2449"});
diff --git a/koha-tmpl/intranet-tmpl/prog/en/lib/yui/logger/assets/logger-core.css b/koha-tmpl/intranet-tmpl/prog/en/lib/yui/logger/assets/logger-core.css
deleted file mode 100644 (file)
index 8143532..0000000
+++ /dev/null
@@ -1,7 +0,0 @@
-/*
-Copyright (c) 2009, Yahoo! Inc. All rights reserved.
-Code licensed under the BSD License:
-http://developer.yahoo.net/yui/license.txt
-version: 2.8.0r4
-*/
-/* This file intentionally left blank */
diff --git a/koha-tmpl/intranet-tmpl/prog/en/lib/yui/logger/assets/logger.css b/koha-tmpl/intranet-tmpl/prog/en/lib/yui/logger/assets/logger.css
deleted file mode 100644 (file)
index 75cbec6..0000000
+++ /dev/null
@@ -1,57 +0,0 @@
-/*
-Copyright (c) 2009, Yahoo! Inc. All rights reserved.
-Code licensed under the BSD License:
-http://developer.yahoo.net/yui/license.txt
-version: 2.8.0r4
-*/
-/* logger default styles */
-/* default width: 31em */
-/* default font-size 77% */
-.yui-log {padding:1em;width:31em;background-color:#AAA;color:#000;border:1px solid black;font-family:monospace;font-size:77%;text-align:left;z-index:9000;}
-
-/* for containers built from scratch */
-.yui-log-container {position:absolute;top:1em;right:1em;}
-
-/* buttons */
-.yui-log input {
-    margin:0;padding:0;
-    font-family:arial;
-    font-size:100%;
-    font-weight:normal;
-}
-.yui-log .yui-log-btns {position:relative;float:right;bottom:.25em;}
-
-/* header */
-.yui-log .yui-log-hd {margin-top:1em;padding:.5em;background-color:#575757;}
-.yui-log .yui-log-hd h4 {margin:0;padding:0;font-size:107%;font-weight:bold;color:#FFF;}
-
-/* body */
-
-.yui-log .yui-log-bd {width:100%;height:20em;background-color:#FFF;border:1px solid gray;overflow:auto;} /* height is controlled here: default 20em*/
-.yui-log p {margin:1px;padding:.1em;}
-.yui-log pre {margin:0;padding:0;}
-
-/* for pre to respect newlines yet wrap long lines */
-/* http://www.longren.org/2006/09/27/wrapping-text-inside-pre-tags/ */
-.yui-log pre.yui-log-verbose {
-    white-space: pre-wrap; /* css-3 */
-    white-space: -moz-pre-wrap !important; /* Mozilla, since 1999 */
-    white-space: -pre-wrap; /* Opera 4-6 */
-    white-space: -o-pre-wrap; /* Opera 7 */
-    word-wrap: break-word; /* Internet Explorer 5.5+ */
-}
-
-/* footer */
-.yui-log .yui-log-ft {margin-top:.5em;}
-.yui-log .yui-log-ft .yui-log-categoryfilters {}
-.yui-log .yui-log-ft .yui-log-sourcefilters {width:100%;border-top:1px solid #575757;margin-top:.75em;padding-top:.75em;}
-.yui-log .yui-log-filtergrp {margin-right:.5em;}
-/*.yui-log .yui-log-ft ul {margin:0;padding:0;line-height:1.8}
-.yui-log .yui-log-ft li {list-style:none;display:inline;white-space:nowrap;}*/
-
-/* logs */
-.yui-log .info {background-color:#A7CC25;} /* A7CC25 green */
-.yui-log .warn {background-color:#F58516;} /* F58516 orange */
-.yui-log .error {background-color:#E32F0B;} /* E32F0B red */
-.yui-log .time {background-color:#A6C9D7;} /* A6C9D7 blue */
-.yui-log .window {background-color:#F2E886;} /* F2E886 tan */
diff --git a/koha-tmpl/intranet-tmpl/prog/en/lib/yui/logger/assets/skins/sam/logger-skin.css b/koha-tmpl/intranet-tmpl/prog/en/lib/yui/logger/assets/skins/sam/logger-skin.css
deleted file mode 100644 (file)
index 8ff72e2..0000000
+++ /dev/null
@@ -1,55 +0,0 @@
-/*
-Copyright (c) 2009, Yahoo! Inc. All rights reserved.
-Code licensed under the BSD License:
-http://developer.yahoo.net/yui/license.txt
-version: 2.8.0r4
-*/
-/* logger default styles */
-/* default width: 31em */
-/* default font-size 77% */
-.yui-skin-sam .yui-log { padding:1em;width:31em;background-color:#AAA;color:#000;border:1px solid black;font-family:monospace;font-size:77%;text-align:left;z-index:9000; }
-
-/* for containers built from scratch */
-.yui-skin-sam .yui-log-container { position:absolute;top:1em;right:1em; }
-
-/* buttons */
-.yui-skin-sam .yui-log input {
-    margin:0;padding:0;
-    font-family:arial;
-    font-size:100%;
-    font-weight:normal;
-}
-.yui-skin-sam .yui-log .yui-log-btns { position:relative;float:right;bottom:.25em; }
-
-/* header */
-.yui-skin-sam .yui-log .yui-log-hd { margin-top:1em;padding:.5em;background-color:#575757; }
-.yui-skin-sam .yui-log .yui-log-hd h4 { margin:0;padding:0;font-size:108%;font-weight:bold;color:#FFF; }
-
-/* body */
-
-.yui-skin-sam .yui-log .yui-log-bd { width:100%;height:20em;background-color:#FFF;border:1px solid gray;overflow:auto; } /* height is controlled here: default 20em*/
-.yui-skin-sam .yui-log p { margin:1px;padding:.1em; }
-.yui-skin-sam .yui-log pre { margin:0;padding:0; }
-
-/* for pre to respect newlines yet wrap long lines */
-/* http://www.longren.org/2006/09/27/wrapping-text-inside-pre-tags/ */
-.yui-skin-sam .yui-log pre.yui-log-verbose {
-    white-space: pre-wrap; /* css-3 */
-    white-space: -moz-pre-wrap !important; /* Mozilla, since 1999 */
-    white-space: -pre-wrap; /* Opera 4-6 */
-    white-space: -o-pre-wrap; /* Opera 7 */
-    word-wrap: break-word; /* Internet Explorer 5.5+ */
-}
-
-/* footer */
-.yui-skin-sam .yui-log .yui-log-ft { margin-top:.5em; }
-.yui-skin-sam .yui-log .yui-log-ft .yui-log-categoryfilters { }
-.yui-skin-sam .yui-log .yui-log-ft .yui-log-sourcefilters { width:100%;border-top:1px solid #575757;margin-top:.75em;padding-top:.75em; }
-.yui-skin-sam .yui-log .yui-log-filtergrp { margin-right:.5em; }
-
-/* logs */
-.yui-skin-sam .yui-log .info { background-color:#A7CC25; } /* A7CC25 green */
-.yui-skin-sam .yui-log .warn { background-color:#F58516; } /* F58516 orange */
-.yui-skin-sam .yui-log .error { background-color:#E32F0B; } /* E32F0B red */
-.yui-skin-sam .yui-log .time { background-color:#A6C9D7; } /* A6C9D7 blue */
-.yui-skin-sam .yui-log .window { background-color:#F2E886; } /* F2E886 tan */
diff --git a/koha-tmpl/intranet-tmpl/prog/en/lib/yui/logger/assets/skins/sam/logger.css b/koha-tmpl/intranet-tmpl/prog/en/lib/yui/logger/assets/skins/sam/logger.css
deleted file mode 100644 (file)
index 491b9c0..0000000
+++ /dev/null
@@ -1,7 +0,0 @@
-/*
-Copyright (c) 2009, Yahoo! Inc. All rights reserved.
-Code licensed under the BSD License:
-http://developer.yahoo.net/yui/license.txt
-version: 2.8.0r4
-*/
-.yui-skin-sam .yui-log{padding:1em;width:31em;background-color:#AAA;color:#000;border:1px solid black;font-family:monospace;font-size:77%;text-align:left;z-index:9000;}.yui-skin-sam .yui-log-container{position:absolute;top:1em;right:1em;}.yui-skin-sam .yui-log input{margin:0;padding:0;font-family:arial;font-size:100%;font-weight:normal;}.yui-skin-sam .yui-log .yui-log-btns{position:relative;float:right;bottom:.25em;}.yui-skin-sam .yui-log .yui-log-hd{margin-top:1em;padding:.5em;background-color:#575757;}.yui-skin-sam .yui-log .yui-log-hd h4{margin:0;padding:0;font-size:108%;font-weight:bold;color:#FFF;}.yui-skin-sam .yui-log .yui-log-bd{width:100%;height:20em;background-color:#FFF;border:1px solid gray;overflow:auto;}.yui-skin-sam .yui-log p{margin:1px;padding:.1em;}.yui-skin-sam .yui-log pre{margin:0;padding:0;}.yui-skin-sam .yui-log pre.yui-log-verbose{white-space:pre-wrap;white-space:-moz-pre-wrap!important;white-space:-pre-wrap;white-space:-o-pre-wrap;word-wrap:break-word;}.yui-skin-sam .yui-log .yui-log-ft{margin-top:.5em;}.yui-skin-sam .yui-log .yui-log-ft .yui-log-sourcefilters{width:100%;border-top:1px solid #575757;margin-top:.75em;padding-top:.75em;}.yui-skin-sam .yui-log .yui-log-filtergrp{margin-right:.5em;}.yui-skin-sam .yui-log .info{background-color:#A7CC25;}.yui-skin-sam .yui-log .warn{background-color:#F58516;}.yui-skin-sam .yui-log .error{background-color:#E32F0B;}.yui-skin-sam .yui-log .time{background-color:#A6C9D7;}.yui-skin-sam .yui-log .window{background-color:#F2E886;}
diff --git a/koha-tmpl/intranet-tmpl/prog/en/lib/yui/logger/logger-debug.js b/koha-tmpl/intranet-tmpl/prog/en/lib/yui/logger/logger-debug.js
deleted file mode 100644 (file)
index 8ddd7ff..0000000
+++ /dev/null
@@ -1,2104 +0,0 @@
-/*
-Copyright (c) 2009, Yahoo! Inc. All rights reserved.
-Code licensed under the BSD License:
-http://developer.yahoo.net/yui/license.txt
-version: 2.8.0r4
-*/
-/****************************************************************************/
-/****************************************************************************/
-/****************************************************************************/
-
-/**
- * The LogMsg class defines a single log message.
- *
- * @class LogMsg
- * @constructor
- * @param oConfigs {Object} Object literal of configuration params.
- */
-YAHOO.widget.LogMsg = function(oConfigs) {
-    // Parse configs
-    /**
-     * Log message.
-     *
-     * @property msg
-     * @type String
-     */
-    this.msg =
-    /**
-     * Log timestamp.
-     *
-     * @property time
-     * @type Date
-     */
-    this.time =
-
-    /**
-     * Log category.
-     *
-     * @property category
-     * @type String
-     */
-    this.category =
-
-    /**
-     * Log source. The first word passed in as the source argument.
-     *
-     * @property source
-     * @type String
-     */
-    this.source =
-
-    /**
-     * Log source detail. The remainder of the string passed in as the source argument, not
-     * including the first word (if any).
-     *
-     * @property sourceDetail
-     * @type String
-     */
-    this.sourceDetail = null;
-
-    if (oConfigs && (oConfigs.constructor == Object)) {
-        for(var param in oConfigs) {
-            if (oConfigs.hasOwnProperty(param)) {
-                this[param] = oConfigs[param];
-            }
-        }
-    }
-};
-/****************************************************************************/
-/****************************************************************************/
-/****************************************************************************/
-
-/**
- * The LogWriter class provides a mechanism to log messages through
- * YAHOO.widget.Logger from a named source.
- *
- * @class LogWriter
- * @constructor
- * @param sSource {String} Source of LogWriter instance.
- */
-YAHOO.widget.LogWriter = function(sSource) {
-    if(!sSource) {
-        YAHOO.log("Could not instantiate LogWriter due to invalid source.",
-            "error", "LogWriter");
-        return;
-    }
-    this._source = sSource;
- };
-
-/////////////////////////////////////////////////////////////////////////////
-//
-// Public methods
-//
-/////////////////////////////////////////////////////////////////////////////
-
- /**
- * Public accessor to the unique name of the LogWriter instance.
- *
- * @method toString
- * @return {String} Unique name of the LogWriter instance.
- */
-YAHOO.widget.LogWriter.prototype.toString = function() {
-    return "LogWriter " + this._sSource;
-};
-
-/**
- * Logs a message attached to the source of the LogWriter.
- *
- * @method log
- * @param sMsg {String} The log message.
- * @param sCategory {String} Category name.
- */
-YAHOO.widget.LogWriter.prototype.log = function(sMsg, sCategory) {
-    YAHOO.widget.Logger.log(sMsg, sCategory, this._source);
-};
-
-/**
- * Public accessor to get the source name.
- *
- * @method getSource
- * @return {String} The LogWriter source.
- */
-YAHOO.widget.LogWriter.prototype.getSource = function() {
-    return this._source;
-};
-
-/**
- * Public accessor to set the source name.
- *
- * @method setSource
- * @param sSource {String} Source of LogWriter instance.
- */
-YAHOO.widget.LogWriter.prototype.setSource = function(sSource) {
-    if(!sSource) {
-        YAHOO.log("Could not set source due to invalid source.", "error", this.toString());
-        return;
-    }
-    else {
-        this._source = sSource;
-    }
-};
-
-/////////////////////////////////////////////////////////////////////////////
-//
-// Private member variables
-//
-/////////////////////////////////////////////////////////////////////////////
-
-/**
- * Source of the LogWriter instance.
- *
- * @property _source
- * @type String
- * @private
- */
-YAHOO.widget.LogWriter.prototype._source = null;
-
-
-
- /**
- * The Logger widget provides a simple way to read or write log messages in
- * JavaScript code. Integration with the YUI Library's debug builds allow
- * implementers to access under-the-hood events, errors, and debugging messages.
- * Output may be read through a LogReader console and/or output to a browser
- * console.
- *
- * @module logger
- * @requires yahoo, event, dom
- * @optional dragdrop
- * @namespace YAHOO.widget
- * @title Logger Widget
- */
-
-/****************************************************************************/
-/****************************************************************************/
-/****************************************************************************/
-
-// Define once
-if(!YAHOO.widget.Logger) {
-    /**
-     * The singleton Logger class provides core log management functionality. Saves
-     * logs written through the global YAHOO.log function or written by a LogWriter
-     * instance. Provides access to logs for reading by a LogReader instance or
-     * native browser console such as the Firebug extension to Firefox or Safari's
-     * JavaScript console through integration with the console.log() method.
-     *
-     * @class Logger
-     * @static
-     */
-    YAHOO.widget.Logger = {
-        // Initialize properties
-        loggerEnabled: true,
-        _browserConsoleEnabled: false,
-        categories: ["info","warn","error","time","window"],
-        sources: ["global"],
-        _stack: [], // holds all log msgs
-        maxStackEntries: 2500,
-        _startTime: new Date().getTime(), // static start timestamp
-        _lastTime: null, // timestamp of last logged message
-        _windowErrorsHandled: false,
-        _origOnWindowError: null
-    };
-
-    /////////////////////////////////////////////////////////////////////////////
-    //
-    // Public properties
-    //
-    /////////////////////////////////////////////////////////////////////////////
-    /**
-     * True if Logger is enabled, false otherwise.
-     *
-     * @property loggerEnabled
-     * @type Boolean
-     * @static
-     * @default true
-     */
-
-    /**
-     * Array of categories.
-     *
-     * @property categories
-     * @type String[]
-     * @static
-     * @default ["info","warn","error","time","window"]
-     */
-
-    /**
-     * Array of sources.
-     *
-     * @property sources
-     * @type String[]
-     * @static
-     * @default ["global"]
-     */
-
-    /**
-     * Upper limit on size of internal stack.
-     *
-     * @property maxStackEntries
-     * @type Number
-     * @static
-     * @default 2500
-     */
-
-    /////////////////////////////////////////////////////////////////////////////
-    //
-    // Private properties
-    //
-    /////////////////////////////////////////////////////////////////////////////
-    /**
-     * Internal property to track whether output to browser console is enabled.
-     *
-     * @property _browserConsoleEnabled
-     * @type Boolean
-     * @static
-     * @default false
-     * @private
-     */
-
-    /**
-     * Array to hold all log messages.
-     *
-     * @property _stack
-     * @type Array
-     * @static
-     * @private
-     */
-    /**
-     * Static timestamp of Logger initialization.
-     *
-     * @property _startTime
-     * @type Date
-     * @static
-     * @private
-     */
-    /**
-     * Timestamp of last logged message.
-     *
-     * @property _lastTime
-     * @type Date
-     * @static
-     * @private
-     */
-    /////////////////////////////////////////////////////////////////////////////
-    //
-    // Public methods
-    //
-    /////////////////////////////////////////////////////////////////////////////
-    /**
-     * Saves a log message to the stack and fires newLogEvent. If the log message is
-     * assigned to an unknown category, creates a new category. If the log message is
-     * from an unknown source, creates a new source.  If browser console is enabled,
-     * outputs the log message to browser console.
-     *
-     * @method log
-     * @param sMsg {String} The log message.
-     * @param sCategory {String} Category of log message, or null.
-     * @param sSource {String} Source of LogWriter, or null if global.
-     */
-    YAHOO.widget.Logger.log = function(sMsg, sCategory, sSource) {
-        if(this.loggerEnabled) {
-            if(!sCategory) {
-                sCategory = "info"; // default category
-            }
-            else {
-                sCategory = sCategory.toLocaleLowerCase();
-                if(this._isNewCategory(sCategory)) {
-                    this._createNewCategory(sCategory);
-                }
-            }
-            var sClass = "global"; // default source
-            var sDetail = null;
-            if(sSource) {
-                var spaceIndex = sSource.indexOf(" ");
-                if(spaceIndex > 0) {
-                    // Substring until first space
-                    sClass = sSource.substring(0,spaceIndex);
-                    // The rest of the source
-                    sDetail = sSource.substring(spaceIndex,sSource.length);
-                }
-                else {
-                    sClass = sSource;
-                }
-                if(this._isNewSource(sClass)) {
-                    this._createNewSource(sClass);
-                }
-            }
-
-            var timestamp = new Date();
-            var logEntry = new YAHOO.widget.LogMsg({
-                msg: sMsg,
-                time: timestamp,
-                category: sCategory,
-                source: sClass,
-                sourceDetail: sDetail
-            });
-
-            var stack = this._stack;
-            var maxStackEntries = this.maxStackEntries;
-            if(maxStackEntries && !isNaN(maxStackEntries) &&
-                (stack.length >= maxStackEntries)) {
-                stack.shift();
-            }
-            stack.push(logEntry);
-            this.newLogEvent.fire(logEntry);
-
-            if(this._browserConsoleEnabled) {
-                this._printToBrowserConsole(logEntry);
-            }
-            return true;
-        }
-        else {
-            return false;
-        }
-    };
-
-    /**
-     * Resets internal stack and startTime, enables Logger, and fires logResetEvent.
-     *
-     * @method reset
-     */
-    YAHOO.widget.Logger.reset = function() {
-        this._stack = [];
-        this._startTime = new Date().getTime();
-        this.loggerEnabled = true;
-        this.log("Logger reset");
-        this.logResetEvent.fire();
-    };
-
-    /**
-     * Public accessor to internal stack of log message objects.
-     *
-     * @method getStack
-     * @return {Object[]} Array of log message objects.
-     */
-    YAHOO.widget.Logger.getStack = function() {
-        return this._stack;
-    };
-
-    /**
-     * Public accessor to internal start time.
-     *
-     * @method getStartTime
-     * @return {Date} Internal date of when Logger singleton was initialized.
-     */
-    YAHOO.widget.Logger.getStartTime = function() {
-        return this._startTime;
-    };
-
-    /**
-     * Disables output to the browser's global console.log() function, which is used
-     * by the Firebug extension to Firefox as well as Safari.
-     *
-     * @method disableBrowserConsole
-     */
-    YAHOO.widget.Logger.disableBrowserConsole = function() {
-        YAHOO.log("Logger output to the function console.log() has been disabled.");
-        this._browserConsoleEnabled = false;
-    };
-
-    /**
-     * Enables output to the browser's global console.log() function, which is used
-     * by the Firebug extension to Firefox as well as Safari.
-     *
-     * @method enableBrowserConsole
-     */
-    YAHOO.widget.Logger.enableBrowserConsole = function() {
-        this._browserConsoleEnabled = true;
-        YAHOO.log("Logger output to the function console.log() has been enabled.");
-    };
-
-    /**
-     * Surpresses native JavaScript errors and outputs to console. By default,
-     * Logger does not handle JavaScript window error events.
-     * NB: Not all browsers support the window.onerror event.
-     *
-     * @method handleWindowErrors
-     */
-    YAHOO.widget.Logger.handleWindowErrors = function() {
-        if(!YAHOO.widget.Logger._windowErrorsHandled) {
-            // Save any previously defined handler to call
-            if(window.error) {
-                YAHOO.widget.Logger._origOnWindowError = window.onerror;
-            }
-            window.onerror = YAHOO.widget.Logger._onWindowError;
-            YAHOO.widget.Logger._windowErrorsHandled = true;
-            YAHOO.log("Logger handling of window.onerror has been enabled.");
-        }
-        else {
-            YAHOO.log("Logger handling of window.onerror had already been enabled.");
-        }
-    };
-
-    /**
-     * Unsurpresses native JavaScript errors. By default,
-     * Logger does not handle JavaScript window error events.
-     * NB: Not all browsers support the window.onerror event.
-     *
-     * @method unhandleWindowErrors
-     */
-    YAHOO.widget.Logger.unhandleWindowErrors = function() {
-        if(YAHOO.widget.Logger._windowErrorsHandled) {
-            // Revert to any previously defined handler to call
-            if(YAHOO.widget.Logger._origOnWindowError) {
-                window.onerror = YAHOO.widget.Logger._origOnWindowError;
-                YAHOO.widget.Logger._origOnWindowError = null;
-            }
-            else {
-                window.onerror = null;
-            }
-            YAHOO.widget.Logger._windowErrorsHandled = false;
-            YAHOO.log("Logger handling of window.onerror has been disabled.");
-        }
-        else {
-            YAHOO.log("Logger handling of window.onerror had already been disabled.");
-        }
-    };
-    
-    /////////////////////////////////////////////////////////////////////////////
-    //
-    // Public events
-    //
-    /////////////////////////////////////////////////////////////////////////////
-
-     /**
-     * Fired when a new category has been created.
-     *
-     * @event categoryCreateEvent
-     * @param sCategory {String} Category name.
-     */
-    YAHOO.widget.Logger.categoryCreateEvent =
-        new YAHOO.util.CustomEvent("categoryCreate", this, true);
-
-     /**
-     * Fired when a new source has been named.
-     *
-     * @event sourceCreateEvent
-     * @param sSource {String} Source name.
-     */
-    YAHOO.widget.Logger.sourceCreateEvent =
-        new YAHOO.util.CustomEvent("sourceCreate", this, true);
-
-     /**
-     * Fired when a new log message has been created.
-     *
-     * @event newLogEvent
-     * @param sMsg {String} Log message.
-     */
-    YAHOO.widget.Logger.newLogEvent = new YAHOO.util.CustomEvent("newLog", this, true);
-
-    /**
-     * Fired when the Logger has been reset has been created.
-     *
-     * @event logResetEvent
-     */
-    YAHOO.widget.Logger.logResetEvent = new YAHOO.util.CustomEvent("logReset", this, true);
-
-    /////////////////////////////////////////////////////////////////////////////
-    //
-    // Private methods
-    //
-    /////////////////////////////////////////////////////////////////////////////
-
-    /**
-     * Creates a new category of log messages and fires categoryCreateEvent.
-     *
-     * @method _createNewCategory
-     * @param sCategory {String} Category name.
-     * @private
-     */
-    YAHOO.widget.Logger._createNewCategory = function(sCategory) {
-        this.categories.push(sCategory);
-        this.categoryCreateEvent.fire(sCategory);
-    };
-
-    /**
-     * Checks to see if a category has already been created.
-     *
-     * @method _isNewCategory
-     * @param sCategory {String} Category name.
-     * @return {Boolean} Returns true if category is unknown, else returns false.
-     * @private
-     */
-    YAHOO.widget.Logger._isNewCategory = function(sCategory) {
-        for(var i=0; i < this.categories.length; i++) {
-            if(sCategory == this.categories[i]) {
-                return false;
-            }
-        }
-        return true;
-    };
-
-    /**
-     * Creates a new source of log messages and fires sourceCreateEvent.
-     *
-     * @method _createNewSource
-     * @param sSource {String} Source name.
-     * @private
-     */
-    YAHOO.widget.Logger._createNewSource = function(sSource) {
-        this.sources.push(sSource);
-        this.sourceCreateEvent.fire(sSource);
-    };
-
-    /**
-     * Checks to see if a source already exists.
-     *
-     * @method _isNewSource
-     * @param sSource {String} Source name.
-     * @return {Boolean} Returns true if source is unknown, else returns false.
-     * @private
-     */
-    YAHOO.widget.Logger._isNewSource = function(sSource) {
-        if(sSource) {
-            for(var i=0; i < this.sources.length; i++) {
-                if(sSource == this.sources[i]) {
-                    return false;
-                }
-            }
-            return true;
-        }
-    };
-
-    /**
-     * Outputs a log message to global console.log() function.
-     *
-     * @method _printToBrowserConsole
-     * @param oEntry {Object} Log entry object.
-     * @private
-     */
-    YAHOO.widget.Logger._printToBrowserConsole = function(oEntry) {
-        if(window.console && console.log) {
-            var category = oEntry.category;
-            var label = oEntry.category.substring(0,4).toUpperCase();
-
-            var time = oEntry.time;
-            var localTime;
-            if (time.toLocaleTimeString) {
-                localTime  = time.toLocaleTimeString();
-            }
-            else {
-                localTime = time.toString();
-            }
-
-            var msecs = time.getTime();
-            var elapsedTime = (YAHOO.widget.Logger._lastTime) ?
-                (msecs - YAHOO.widget.Logger._lastTime) : 0;
-            YAHOO.widget.Logger._lastTime = msecs;
-
-            var output =
-                localTime + " (" +
-                elapsedTime + "ms): " +
-                oEntry.source + ": ";
-
-            // for bug 1987607
-            if (YAHOO.env.ua.webkit) {
-                output += oEntry.msg;
-            }
-
-            console.log(output, oEntry.msg);
-        }
-    };
-
-    /////////////////////////////////////////////////////////////////////////////
-    //
-    // Private event handlers
-    //
-    /////////////////////////////////////////////////////////////////////////////
-
-    /**
-     * Handles logging of messages due to window error events.
-     *
-     * @method _onWindowError
-     * @param sMsg {String} The error message.
-     * @param sUrl {String} URL of the error.
-     * @param sLine {String} Line number of the error.
-     * @private
-     */
-    YAHOO.widget.Logger._onWindowError = function(sMsg,sUrl,sLine) {
-        // Logger is not in scope of this event handler
-        try {
-            YAHOO.widget.Logger.log(sMsg+' ('+sUrl+', line '+sLine+')', "window");
-            if(YAHOO.widget.Logger._origOnWindowError) {
-                YAHOO.widget.Logger._origOnWindowError();
-            }
-        }
-        catch(e) {
-            return false;
-        }
-    };
-
-    /////////////////////////////////////////////////////////////////////////////
-    //
-    // First log
-    //
-    /////////////////////////////////////////////////////////////////////////////
-
-    YAHOO.widget.Logger.log("Logger initialized");
-}
-
-/****************************************************************************/
-/****************************************************************************/
-/****************************************************************************/
-(function () {
-var Logger = YAHOO.widget.Logger,
-    u      = YAHOO.util,
-    Dom    = u.Dom,
-    Event  = u.Event,
-    d      = document;
-
-function make(el,props) {
-    el = d.createElement(el);
-    if (props) {
-        for (var p in props) {
-            if (props.hasOwnProperty(p)) {
-                el[p] = props[p];
-            }
-        }
-    }
-    return el;
-}
-
-/**
- * The LogReader class provides UI to read messages logged to YAHOO.widget.Logger.
- *
- * @class LogReader
- * @constructor
- * @param elContainer {HTMLElement} (optional) DOM element reference of an existing DIV.
- * @param elContainer {String} (optional) String ID of an existing DIV.
- * @param oConfigs {Object} (optional) Object literal of configuration params.
- */
-function LogReader(elContainer, oConfigs) {
-    this._sName = LogReader._index;
-    LogReader._index++;
-    
-    this._init.apply(this,arguments);
-
-    /**
-     * Render the LogReader immediately upon instantiation.  If set to false,
-     * you must call myLogReader.render() to generate the UI.
-     * 
-     * @property autoRender
-     * @type {Boolean}
-     * @default true
-     */
-    if (this.autoRender !== false) {
-        this.render();
-    }
-}
-
-/////////////////////////////////////////////////////////////////////////////
-//
-// Static member variables
-//
-/////////////////////////////////////////////////////////////////////////////
-YAHOO.lang.augmentObject(LogReader, {
-    /**
-     * Internal class member to index multiple LogReader instances.
-     *
-     * @property _memberName
-     * @static
-     * @type Number
-     * @default 0
-     * @private
-     */
-    _index : 0,
-
-    /**
-     * Node template for the log entries
-     * @property ENTRY_TEMPLATE
-     * @static
-     * @type {HTMLElement}
-     * @default <code>pre</code> element with class yui-log-entry
-     */
-    ENTRY_TEMPLATE : (function () {
-        return make('pre',{ className: 'yui-log-entry' });
-    })(),
-
-    /**
-     * Template used for innerHTML of verbose entry output.
-     * @property VERBOSE_TEMPLATE
-     * @static
-     * @default "&lt;p>&lt;span class='{category}'>{label}&lt;/span>{totalTime}ms (+{elapsedTime}) {localTime}:&lt;/p>&lt;p>{sourceAndDetail}&lt;/p>&lt;p>{message}&lt;/p>"
-     */
-    VERBOSE_TEMPLATE : "<p><span class='{category}'>{label}</span> {totalTime}ms (+{elapsedTime}) {localTime}:</p><p>{sourceAndDetail}</p><p>{message}</p>",
-
-    /**
-     * Template used for innerHTML of compact entry output.
-     * @property BASIC_TEMPLATE
-     * @static
-     * @default "&lt;p>&lt;span class='{category}'>{label}&lt;/span>{totalTime}ms (+{elapsedTime}) {localTime}: {sourceAndDetail}: {message}&lt;/p>"
-     */
-    BASIC_TEMPLATE : "<p><span class='{category}'>{label}</span> {totalTime}ms (+{elapsedTime}) {localTime}: {sourceAndDetail}: {message}</p>"
-});
-
-/////////////////////////////////////////////////////////////////////////////
-//
-// Public member variables
-//
-/////////////////////////////////////////////////////////////////////////////
-
-LogReader.prototype = {
-    /**
-     * Whether or not LogReader is enabled to output log messages.
-     *
-     * @property logReaderEnabled
-     * @type Boolean
-     * @default true
-     */
-    logReaderEnabled : true,
-
-    /**
-     * Public member to access CSS width of the LogReader container.
-     *
-     * @property width
-     * @type String
-     */
-    width : null,
-
-    /**
-     * Public member to access CSS height of the LogReader container.
-     *
-     * @property height
-     * @type String
-     */
-    height : null,
-
-    /**
-     * Public member to access CSS top position of the LogReader container.
-     *
-     * @property top
-     * @type String
-     */
-    top : null,
-
-    /**
-     * Public member to access CSS left position of the LogReader container.
-     *
-     * @property left
-     * @type String
-     */
-    left : null,
-
-    /**
-     * Public member to access CSS right position of the LogReader container.
-     *
-     * @property right
-     * @type String
-     */
-    right : null,
-
-    /**
-     * Public member to access CSS bottom position of the LogReader container.
-     *
-     * @property bottom
-     * @type String
-     */
-    bottom : null,
-
-    /**
-     * Public member to access CSS font size of the LogReader container.
-     *
-     * @property fontSize
-     * @type String
-     */
-    fontSize : null,
-
-    /**
-     * Whether or not the footer UI is enabled for the LogReader.
-     *
-     * @property footerEnabled
-     * @type Boolean
-     * @default true
-     */
-    footerEnabled : true,
-
-    /**
-     * Whether or not output is verbose (more readable). Setting to true will make
-     * output more compact (less readable).
-     *
-     * @property verboseOutput
-     * @type Boolean
-     * @default true
-     */
-    verboseOutput : true,
-
-    /**
-     * Custom output format for log messages.  Defaults to null, which falls
-     * back to verboseOutput param deciding between LogReader.VERBOSE_TEMPLATE
-     * and LogReader.BASIC_TEMPLATE.  Use bracketed place holders to mark where
-     * message info should go.  Available place holder names include:
-     * <ul>
-     *  <li>category</li>
-     *  <li>label</li>
-     *  <li>sourceAndDetail</li>
-     *  <li>message</li>
-     *  <li>localTime</li>
-     *  <li>elapsedTime</li>
-     *  <li>totalTime</li>
-     * </ul>
-     *
-     * @property entryFormat
-     * @type String
-     * @default null
-     */
-    entryFormat : null,
-
-    /**
-     * Whether or not newest message is printed on top.
-     *
-     * @property newestOnTop
-     * @type Boolean
-     */
-    newestOnTop : true,
-
-    /**
-     * Output timeout buffer in milliseconds.
-     *
-     * @property outputBuffer
-     * @type Number
-     * @default 100
-     */
-    outputBuffer : 100,
-
-    /**
-     * Maximum number of messages a LogReader console will display.
-     *
-     * @property thresholdMax
-     * @type Number
-     * @default 500
-     */
-    thresholdMax : 500,
-
-    /**
-     * When a LogReader console reaches its thresholdMax, it will clear out messages
-     * and print out the latest thresholdMin number of messages.
-     *
-     * @property thresholdMin
-     * @type Number
-     * @default 100
-     */
-    thresholdMin : 100,
-
-    /**
-     * True when LogReader is in a collapsed state, false otherwise.
-     *
-     * @property isCollapsed
-     * @type Boolean
-     * @default false
-     */
-    isCollapsed : false,
-
-    /**
-     * True when LogReader is in a paused state, false otherwise.
-     *
-     * @property isPaused
-     * @type Boolean
-     * @default false
-     */
-    isPaused : false,
-
-    /**
-     * Enables draggable LogReader if DragDrop Utility is present.
-     *
-     * @property draggable
-     * @type Boolean
-     * @default true
-     */
-    draggable : true,
-
-    /////////////////////////////////////////////////////////////////////////////
-    //
-    // Public methods
-    //
-    /////////////////////////////////////////////////////////////////////////////
-
-     /**
-     * Public accessor to the unique name of the LogReader instance.
-     *
-     * @method toString
-     * @return {String} Unique name of the LogReader instance.
-     */
-    toString : function() {
-        return "LogReader instance" + this._sName;
-    },
-    /**
-     * Pauses output of log messages. While paused, log messages are not lost, but
-     * get saved to a buffer and then output upon resume of LogReader.
-     *
-     * @method pause
-     */
-    pause : function() {
-        this.isPaused = true;
-        this._timeout = null;
-        this.logReaderEnabled = false;
-        if (this._btnPause) {
-            this._btnPause.value = "Resume";
-        }
-    },
-
-    /**
-     * Resumes output of log messages, including outputting any log messages that
-     * have been saved to buffer while paused.
-     *
-     * @method resume
-     */
-    resume : function() {
-        this.isPaused = false;
-        this.logReaderEnabled = true;
-        this._printBuffer();
-        if (this._btnPause) {
-            this._btnPause.value = "Pause";
-        }
-    },
-
-    /**
-     * Adds the UI to the DOM, attaches event listeners, and bootstraps initial
-     * UI state.
-     *
-     * @method render
-     */
-    render : function () {
-        if (this.rendered) {
-            return;
-        }
-
-        this._initContainerEl();
-        
-        this._initHeaderEl();
-        this._initConsoleEl();
-        this._initFooterEl();
-
-        this._initCategories();
-        this._initSources();
-
-        this._initDragDrop();
-
-        // Subscribe to Logger custom events
-        Logger.newLogEvent.subscribe(this._onNewLog, this);
-        Logger.logResetEvent.subscribe(this._onReset, this);
-
-        Logger.categoryCreateEvent.subscribe(this._onCategoryCreate, this);
-        Logger.sourceCreateEvent.subscribe(this._onSourceCreate, this);
-
-        this.rendered = true;
-
-        this._filterLogs();
-    },
-
-    /**
-     * Removes the UI from the DOM entirely and detaches all event listeners.
-     * Implementers should note that Logger will still accumulate messages.
-     *
-     * @method destroy
-     */
-    destroy : function () {
-        Event.purgeElement(this._elContainer,true);
-        this._elContainer.innerHTML = '';
-        this._elContainer.parentNode.removeChild(this._elContainer);
-
-        this.rendered = false;
-    },
-
-    /**
-     * Hides UI of LogReader. Logging functionality is not disrupted.
-     *
-     * @method hide
-     */
-    hide : function() {
-        this._elContainer.style.display = "none";
-    },
-
-    /**
-     * Shows UI of LogReader. Logging functionality is not disrupted.
-     *
-     * @method show
-     */
-    show : function() {
-        this._elContainer.style.display = "block";
-    },
-
-    /**
-     * Collapses UI of LogReader. Logging functionality is not disrupted.
-     *
-     * @method collapse
-     */
-    collapse : function() {
-        this._elConsole.style.display = "none";
-        if(this._elFt) {
-            this._elFt.style.display = "none";
-        }
-        this._btnCollapse.value = "Expand";
-        this.isCollapsed = true;
-    },
-
-    /**
-     * Expands UI of LogReader. Logging functionality is not disrupted.
-     *
-     * @method expand
-     */
-    expand : function() {
-        this._elConsole.style.display = "block";
-        if(this._elFt) {
-            this._elFt.style.display = "block";
-        }
-        this._btnCollapse.value = "Collapse";
-        this.isCollapsed = false;
-    },
-
-    /**
-     * Returns related checkbox element for given filter (i.e., category or source).
-     *
-     * @method getCheckbox
-     * @param {String} Category or source name.
-     * @return {Array} Array of all filter checkboxes.
-     */
-    getCheckbox : function(filter) {
-        return this._filterCheckboxes[filter];
-    },
-
-    /**
-     * Returns array of enabled categories.
-     *
-     * @method getCategories
-     * @return {String[]} Array of enabled categories.
-     */
-    getCategories : function() {
-        return this._categoryFilters;
-    },
-
-    /**
-     * Shows log messages associated with given category.
-     *
-     * @method showCategory
-     * @param {String} Category name.
-     */
-    showCategory : function(sCategory) {
-        var filtersArray = this._categoryFilters;
-        // Don't do anything if category is already enabled
-        // Use Array.indexOf if available...
-        if(filtersArray.indexOf) {
-             if(filtersArray.indexOf(sCategory) >  -1) {
-                return;
-            }
-        }
-        // ...or do it the old-fashioned way
-        else {
-            for(var i=0; i<filtersArray.length; i++) {
-               if(filtersArray[i] === sCategory){
-                    return;
-                }
-            }
-        }
-
-        this._categoryFilters.push(sCategory);
-        this._filterLogs();
-        var elCheckbox = this.getCheckbox(sCategory);
-        if(elCheckbox) {
-            elCheckbox.checked = true;
-        }
-    },
-
-    /**
-     * Hides log messages associated with given category.
-     *
-     * @method hideCategory
-     * @param {String} Category name.
-     */
-    hideCategory : function(sCategory) {
-        var filtersArray = this._categoryFilters;
-        for(var i=0; i<filtersArray.length; i++) {
-            if(sCategory == filtersArray[i]) {
-                filtersArray.splice(i, 1);
-                break;
-            }
-        }
-        this._filterLogs();
-        var elCheckbox = this.getCheckbox(sCategory);
-        if(elCheckbox) {
-            elCheckbox.checked = false;
-        }
-    },
-
-    /**
-     * Returns array of enabled sources.
-     *
-     * @method getSources
-     * @return {Array} Array of enabled sources.
-     */
-    getSources : function() {
-        return this._sourceFilters;
-    },
-
-    /**
-     * Shows log messages associated with given source.
-     *
-     * @method showSource
-     * @param {String} Source name.
-     */
-    showSource : function(sSource) {
-        var filtersArray = this._sourceFilters;
-        // Don't do anything if category is already enabled
-        // Use Array.indexOf if available...
-        if(filtersArray.indexOf) {
-             if(filtersArray.indexOf(sSource) >  -1) {
-                return;
-            }
-        }
-        // ...or do it the old-fashioned way
-        else {
-            for(var i=0; i<filtersArray.length; i++) {
-               if(sSource == filtersArray[i]){
-                    return;
-                }
-            }
-        }
-        filtersArray.push(sSource);
-        this._filterLogs();
-        var elCheckbox = this.getCheckbox(sSource);
-        if(elCheckbox) {
-            elCheckbox.checked = true;
-        }
-    },
-
-    /**
-     * Hides log messages associated with given source.
-     *
-     * @method hideSource
-     * @param {String} Source name.
-     */
-    hideSource : function(sSource) {
-        var filtersArray = this._sourceFilters;
-        for(var i=0; i<filtersArray.length; i++) {
-            if(sSource == filtersArray[i]) {
-                filtersArray.splice(i, 1);
-                break;
-            }
-        }
-        this._filterLogs();
-        var elCheckbox = this.getCheckbox(sSource);
-        if(elCheckbox) {
-            elCheckbox.checked = false;
-        }
-    },
-
-    /**
-     * Does not delete any log messages, but clears all printed log messages from
-     * the console. Log messages will be printed out again if user re-filters. The
-     * static method YAHOO.widget.Logger.reset() should be called in order to
-     * actually delete log messages.
-     *
-     * @method clearConsole
-     */
-    clearConsole : function() {
-        // Clear the buffer of any pending messages
-        this._timeout = null;
-        this._buffer = [];
-        this._consoleMsgCount = 0;
-
-        var elConsole = this._elConsole;
-        elConsole.innerHTML = '';
-    },
-
-    /**
-     * Updates title to given string.
-     *
-     * @method setTitle
-     * @param sTitle {String} New title.
-     */
-    setTitle : function(sTitle) {
-        this._title.innerHTML = this.html2Text(sTitle);
-    },
-
-    /**
-     * Gets timestamp of the last log.
-     *
-     * @method getLastTime
-     * @return {Date} Timestamp of the last log.
-     */
-    getLastTime : function() {
-        return this._lastTime;
-    },
-
-    formatMsg : function (entry) {
-        var entryFormat = this.entryFormat || (this.verboseOutput ?
-                          LogReader.VERBOSE_TEMPLATE : LogReader.BASIC_TEMPLATE),
-            info        = {
-                category : entry.category,
-
-                // Label for color-coded display
-                label : entry.category.substring(0,4).toUpperCase(),
-
-                sourceAndDetail : entry.sourceDetail ?
-                                  entry.source + " " + entry.sourceDetail :
-                                  entry.source,
-
-                // Escape HTML entities in the log message itself for output
-                // to console
-                message : this.html2Text(entry.msg || entry.message || '')
-            };
-
-        // Add time info
-        if (entry.time && entry.time.getTime) {
-            info.localTime = entry.time.toLocaleTimeString ?
-                             entry.time.toLocaleTimeString() :
-                             entry.time.toString();
-
-            // Calculate the elapsed time to be from the last item that
-            // passed through the filter, not the absolute previous item
-            // in the stack
-            info.elapsedTime = entry.time.getTime() - this.getLastTime();
-
-            info.totalTime = entry.time.getTime() - Logger.getStartTime();
-        }
-
-        var msg = LogReader.ENTRY_TEMPLATE.cloneNode(true);
-        if (this.verboseOutput) {
-            msg.className += ' yui-log-verbose';
-        }
-
-        // Bug 2061169: Workaround for YAHOO.lang.substitute()
-        msg.innerHTML = entryFormat.replace(/\{(\w+)\}/g,
-            function (x, placeholder) {
-                return (placeholder in info) ? info[placeholder] : '';
-            });
-
-        return msg;
-    },
-
-    /**
-     * Converts input chars "<", ">", and "&" to HTML entities.
-     *
-     * @method html2Text
-     * @param sHtml {String} String to convert.
-     * @private
-     */
-    html2Text : function(sHtml) {
-        if(sHtml) {
-            sHtml += "";
-            return sHtml.replace(/&/g, "&#38;").
-                         replace(/</g, "&#60;").
-                         replace(/>/g, "&#62;");
-        }
-        return "";
-    },
-
-/////////////////////////////////////////////////////////////////////////////
-//
-// Private member variables
-//
-/////////////////////////////////////////////////////////////////////////////
-
-    /**
-     * Name of LogReader instance.
-     *
-     * @property _sName
-     * @type String
-     * @private
-     */
-    _sName : null,
-
-    //TODO: remove
-    /**
-     * A class member shared by all LogReaders if a container needs to be
-     * created during instantiation. Will be null if a container element never needs to
-     * be created on the fly, such as when the implementer passes in their own element.
-     *
-     * @property _elDefaultContainer
-     * @type HTMLElement
-     * @private
-     */
-    //YAHOO.widget.LogReader._elDefaultContainer = null;
-
-    /**
-     * Buffer of log message objects for batch output.
-     *
-     * @property _buffer
-     * @type Object[]
-     * @private
-     */
-    _buffer : null,
-
-    /**
-     * Number of log messages output to console.
-     *
-     * @property _consoleMsgCount
-     * @type Number
-     * @default 0
-     * @private
-     */
-    _consoleMsgCount : 0,
-
-    /**
-     * Date of last output log message.
-     *
-     * @property _lastTime
-     * @type Date
-     * @private
-     */
-    _lastTime : null,
-
-    /**
-     * Batched output timeout ID.
-     *
-     * @property _timeout
-     * @type Number
-     * @private
-     */
-    _timeout : null,
-
-    /**
-     * Hash of filters and their related checkbox elements.
-     *
-     * @property _filterCheckboxes
-     * @type Object
-     * @private
-     */
-    _filterCheckboxes : null,
-
-    /**
-     * Array of filters for log message categories.
-     *
-     * @property _categoryFilters
-     * @type String[]
-     * @private
-     */
-    _categoryFilters : null,
-
-    /**
-     * Array of filters for log message sources.
-     *
-     * @property _sourceFilters
-     * @type String[]
-     * @private
-     */
-    _sourceFilters : null,
-
-    /**
-     * LogReader container element.
-     *
-     * @property _elContainer
-     * @type HTMLElement
-     * @private
-     */
-    _elContainer : null,
-
-    /**
-     * LogReader header element.
-     *
-     * @property _elHd
-     * @type HTMLElement
-     * @private
-     */
-    _elHd : null,
-
-    /**
-     * LogReader collapse element.
-     *
-     * @property _elCollapse
-     * @type HTMLElement
-     * @private
-     */
-    _elCollapse : null,
-
-    /**
-     * LogReader collapse button element.
-     *
-     * @property _btnCollapse
-     * @type HTMLElement
-     * @private
-     */
-    _btnCollapse : null,
-
-    /**
-     * LogReader title header element.
-     *
-     * @property _title
-     * @type HTMLElement
-     * @private
-     */
-    _title : null,
-
-    /**
-     * LogReader console element.
-     *
-     * @property _elConsole
-     * @type HTMLElement
-     * @private
-     */
-    _elConsole : null,
-
-    /**
-     * LogReader footer element.
-     *
-     * @property _elFt
-     * @type HTMLElement
-     * @private
-     */
-    _elFt : null,
-
-    /**
-     * LogReader buttons container element.
-     *
-     * @property _elBtns
-     * @type HTMLElement
-     * @private
-     */
-    _elBtns : null,
-
-    /**
-     * Container element for LogReader category filter checkboxes.
-     *
-     * @property _elCategoryFilters
-     * @type HTMLElement
-     * @private
-     */
-    _elCategoryFilters : null,
-
-    /**
-     * Container element for LogReader source filter checkboxes.
-     *
-     * @property _elSourceFilters
-     * @type HTMLElement
-     * @private
-     */
-    _elSourceFilters : null,
-
-    /**
-     * LogReader pause button element.
-     *
-     * @property _btnPause
-     * @type HTMLElement
-     * @private
-     */
-    _btnPause : null,
-
-    /**
-     * Clear button element.
-     *
-     * @property _btnClear
-     * @type HTMLElement
-     * @private
-     */
-    _btnClear : null,
-
-    /////////////////////////////////////////////////////////////////////////////
-    //
-    // Private methods
-    //
-    /////////////////////////////////////////////////////////////////////////////
-
-    /**
-     * Initializes the instance's message buffer, start time, etc
-     *
-     * @method _init
-     * @param container {String|HTMLElement} (optional) the render target
-     * @param config {Object} (optional) instance configuration
-     * @protected
-     */
-    _init : function (container, config) {
-        // Internal vars
-        this._buffer = []; // output buffer
-        this._filterCheckboxes = {}; // pointers to checkboxes
-        this._lastTime = Logger.getStartTime(); // timestamp of last log message to console
-
-        // Parse config vars here
-        if (config && (config.constructor == Object)) {
-            for(var param in config) {
-                if (config.hasOwnProperty(param)) {
-                    this[param] = config[param];
-                }
-            }
-        }
-
-        this._elContainer = Dom.get(container);
-
-        YAHOO.log("LogReader initialized", null, this.toString());
-    },
-
-    /**
-     * Initializes the primary container element.
-     *
-     * @method _initContainerEl
-     * @private
-     */
-    _initContainerEl : function() {
-
-        // Default the container if unset or not a div
-        if(!this._elContainer || !/div$/i.test(this._elContainer.tagName)) {
-            this._elContainer = d.body.insertBefore(make("div"),d.body.firstChild);
-            // Only position absolutely if an in-DOM element is not supplied
-            Dom.addClass(this._elContainer,"yui-log-container");
-        }
-
-        Dom.addClass(this._elContainer,"yui-log");
-
-        // If implementer has provided container values, trust and set those
-        var style = this._elContainer.style,
-            styleProps = ['width','right','top','fontSize'],
-            prop,i;
-
-        for (i = styleProps.length - 1; i >= 0; --i) {
-            prop = styleProps[i];
-            if (this[prop]){ 
-                style[prop] = this[prop];
-            }
-        }
-
-        if(this.left) {
-            style.left  = this.left;
-            style.right = "auto";
-        }
-        if(this.bottom) {
-            style.bottom = this.bottom;
-            style.top    = "auto";
-        }
-
-        // Opera needs a little prodding to reflow sometimes
-        if (YAHOO.env.ua.opera) {
-            d.body.style += '';
-        }
-
-    },
-
-    /**
-     * Initializes the header element.
-     *
-     * @method _initHeaderEl
-     * @private
-     */
-    _initHeaderEl : function() {
-        // Destroy header if present
-        if(this._elHd) {
-            // Unhook DOM events
-            Event.purgeElement(this._elHd, true);
-
-            // Remove DOM elements
-            this._elHd.innerHTML = "";
-        }
-        
-        // Create header
-        // TODO: refactor this into an innerHTML
-        this._elHd = make("div",{
-            id: 'yui-log-hd' + this._sName,
-            className: "yui-log-hd"
-        });
-
-        this._elCollapse = make("div",{ className: 'yui-log-btns' });
-
-        this._btnCollapse = make("input",{
-            type: 'button',
-            className: 'yui-log-button',
-            value: 'Collapse'
-        });
-        Event.on(this._btnCollapse,'click',this._onClickCollapseBtn,this);
-
-
-        this._title = make("h4",{ innerHTML : "Logger Console" });
-
-        this._elCollapse.appendChild(this._btnCollapse);
-        this._elHd.appendChild(this._elCollapse);
-        this._elHd.appendChild(this._title);
-        this._elContainer.appendChild(this._elHd);
-    },
-
-    /**
-     * Initializes the console element.
-     *
-     * @method _initConsoleEl
-     * @private
-     */
-    _initConsoleEl : function() {
-        // Destroy console
-        if(this._elConsole) {
-            // Unhook DOM events
-            Event.purgeElement(this._elConsole, true);
-
-            // Remove DOM elements
-            this._elConsole.innerHTML = "";
-        }
-
-        // Ceate console
-        this._elConsole = make("div", { className: "yui-log-bd" });
-
-        // If implementer has provided console, trust and set those
-        if(this.height) {
-            this._elConsole.style.height = this.height;
-        }
-
-        this._elContainer.appendChild(this._elConsole);
-    },
-
-    /**
-     * Initializes the footer element.
-     *
-     * @method _initFooterEl
-     * @private
-     */
-    _initFooterEl : function() {
-        // Don't create footer elements if footer is disabled
-        if(this.footerEnabled) {
-            // Destroy console
-            if(this._elFt) {
-                // Unhook DOM events
-                Event.purgeElement(this._elFt, true);
-
-                // Remove DOM elements
-                this._elFt.innerHTML = "";
-            }
-
-            // TODO: use innerHTML
-            this._elFt = make("div",{ className: "yui-log-ft" });
-            this._elBtns = make("div", { className: "yui-log-btns" });
-            this._btnPause = make("input", {
-                type: "button",
-                className: "yui-log-button",
-                value: "Pause"
-            });
-
-            Event.on(this._btnPause,'click',this._onClickPauseBtn,this);
-
-            this._btnClear = make("input", {
-                type: "button",
-                className: "yui-log-button",
-                value: "Clear"
-            });
-
-            Event.on(this._btnClear,'click',this._onClickClearBtn,this);
-
-            this._elCategoryFilters = make("div", { className: "yui-log-categoryfilters" });
-            this._elSourceFilters = make("div", { className: "yui-log-sourcefilters" });
-
-            this._elBtns.appendChild(this._btnPause);
-            this._elBtns.appendChild(this._btnClear);
-            this._elFt.appendChild(this._elBtns);
-            this._elFt.appendChild(this._elCategoryFilters);
-            this._elFt.appendChild(this._elSourceFilters);
-            this._elContainer.appendChild(this._elFt);
-        }
-    },
-
-    /**
-     * Initializes Drag and Drop on the header element.
-     *
-     * @method _initDragDrop
-     * @private
-     */
-    _initDragDrop : function() {
-        // If Drag and Drop utility is available...
-        // ...and draggable is true...
-        // ...then make the header draggable
-        if(u.DD && this.draggable && this._elHd) {
-            var ylog_dd = new u.DD(this._elContainer);
-            ylog_dd.setHandleElId(this._elHd.id);
-            //TODO: use class name
-            this._elHd.style.cursor = "move";
-        }
-    },
-
-    /**
-     * Initializes category filters.
-     *
-     * @method _initCategories
-     * @private
-     */
-    _initCategories : function() {
-        // Initialize category filters
-        this._categoryFilters = [];
-        var aInitialCategories = Logger.categories;
-
-        for(var j=0; j < aInitialCategories.length; j++) {
-            var sCategory = aInitialCategories[j];
-
-            // Add category to the internal array of filters
-            this._categoryFilters.push(sCategory);
-
-            // Add checkbox element if UI is enabled
-            if(this._elCategoryFilters) {
-                this._createCategoryCheckbox(sCategory);
-            }
-        }
-    },
-
-    /**
-     * Initializes source filters.
-     *
-     * @method _initSources
-     * @private
-     */
-    _initSources : function() {
-        // Initialize source filters
-        this._sourceFilters = [];
-        var aInitialSources = Logger.sources;
-
-        for(var j=0; j < aInitialSources.length; j++) {
-            var sSource = aInitialSources[j];
-
-            // Add source to the internal array of filters
-            this._sourceFilters.push(sSource);
-
-            // Add checkbox element if UI is enabled
-            if(this._elSourceFilters) {
-                this._createSourceCheckbox(sSource);
-            }
-        }
-    },
-
-    /**
-     * Creates the UI for a category filter in the LogReader footer element.
-     *
-     * @method _createCategoryCheckbox
-     * @param sCategory {String} Category name.
-     * @private
-     */
-    _createCategoryCheckbox : function(sCategory) {
-        if(this._elFt) {
-            var filter = make("span",{ className: "yui-log-filtergrp" }),
-                check  = make("input", {
-                    id: "yui-log-filter-" + sCategory + this._sName,
-                    className: "yui-log-filter-" + sCategory,
-                    type: "checkbox",
-                    category: sCategory
-                }),
-                label  = make("label", {
-                    htmlFor: check.id,
-                    className: sCategory,
-                    innerHTML: sCategory
-                });
-            
-
-            // Subscribe to the click event
-            Event.on(check,'click',this._onCheckCategory,this);
-
-            this._filterCheckboxes[sCategory] = check;
-
-            // Append el at the end so IE 5.5 can set "type" attribute
-            // and THEN set checked property
-            filter.appendChild(check);
-            filter.appendChild(label);
-            this._elCategoryFilters.appendChild(filter);
-            check.checked = true;
-        }
-    },
-
-    /**
-     * Creates a checkbox in the LogReader footer element to filter by source.
-     *
-     * @method _createSourceCheckbox
-     * @param sSource {String} Source name.
-     * @private
-     */
-    _createSourceCheckbox : function(sSource) {
-        if(this._elFt) {
-            var filter = make("span",{ className: "yui-log-filtergrp" }),
-                check  = make("input", {
-                    id: "yui-log-filter-" + sSource + this._sName,
-                    className: "yui-log-filter-" + sSource,
-                    type: "checkbox",
-                    source: sSource
-                }),
-                label  = make("label", {
-                    htmlFor: check.id,
-                    className: sSource,
-                    innerHTML: sSource
-                });
-            
-
-            // Subscribe to the click event
-            Event.on(check,'click',this._onCheckSource,this);
-
-            this._filterCheckboxes[sSource] = check;
-
-            // Append el at the end so IE 5.5 can set "type" attribute
-            // and THEN set checked property
-            filter.appendChild(check);
-            filter.appendChild(label);
-            this._elSourceFilters.appendChild(filter);
-            check.checked = true;
-        }
-    },
-
-    /**
-     * Reprints all log messages in the stack through filters.
-     *
-     * @method _filterLogs
-     * @private
-     */
-    _filterLogs : function() {
-        // Reprint stack with new filters
-        if (this._elConsole !== null) {
-            this.clearConsole();
-            this._printToConsole(Logger.getStack());
-        }
-    },
-
-    /**
-     * Sends buffer of log messages to output and clears buffer.
-     *
-     * @method _printBuffer
-     * @private
-     */
-    _printBuffer : function() {
-        this._timeout = null;
-
-        if(this._elConsole !== null) {
-            var thresholdMax = this.thresholdMax;
-            thresholdMax = (thresholdMax && !isNaN(thresholdMax)) ? thresholdMax : 500;
-            if(this._consoleMsgCount < thresholdMax) {
-                var entries = [];
-                for (var i=0; i<this._buffer.length; i++) {
-                    entries[i] = this._buffer[i];
-                }
-                this._buffer = [];
-                this._printToConsole(entries);
-            }
-            else {
-                this._filterLogs();
-            }
-            
-            if(!this.newestOnTop) {
-                this._elConsole.scrollTop = this._elConsole.scrollHeight;
-            }
-        }
-    },
-
-    /**
-     * Cycles through an array of log messages, and outputs each one to the console
-     * if its category has not been filtered out.
-     *
-     * @method _printToConsole
-     * @param aEntries {Object[]} Array of LogMsg objects to output to console.
-     * @private
-     */
-    _printToConsole : function(aEntries) {
-        // Manage the number of messages displayed in the console
-        var entriesLen         = aEntries.length,
-            df                 = d.createDocumentFragment(),
-            msgHTML            = [],
-            thresholdMin       = this.thresholdMin,
-            sourceFiltersLen   = this._sourceFilters.length,
-            categoryFiltersLen = this._categoryFilters.length,
-            entriesStartIndex,
-            i, j, msg, before;
-
-        if(isNaN(thresholdMin) || (thresholdMin > this.thresholdMax)) {
-            thresholdMin = 0;
-        }
-        entriesStartIndex = (entriesLen > thresholdMin) ? (entriesLen - thresholdMin) : 0;
-        
-        // Iterate through all log entries 
-        for(i=entriesStartIndex; i<entriesLen; i++) {
-            // Print only the ones that filter through
-            var okToPrint = false,
-                okToFilterCats = false,
-                entry = aEntries[i],
-                source = entry.source,
-                category = entry.category;
-
-            for(j=0; j<sourceFiltersLen; j++) {
-                if(source == this._sourceFilters[j]) {
-                    okToFilterCats = true;
-                    break;
-                }
-            }
-            if(okToFilterCats) {
-                for(j=0; j<categoryFiltersLen; j++) {
-                    if(category == this._categoryFilters[j]) {
-                        okToPrint = true;
-                        break;
-                    }
-                }
-            }
-            if(okToPrint) {
-                // Start from 0ms elapsed time
-                if (this._consoleMsgCount === 0) {
-                    this._lastTime = entry.time.getTime();
-                }
-
-                msg = this.formatMsg(entry);
-                if (typeof msg === 'string') {
-                    msgHTML[msgHTML.length] = msg;
-                } else {
-                    df.insertBefore(msg, this.newestOnTop ?
-                        df.firstChild || null : null);
-                }
-                this._consoleMsgCount++;
-                this._lastTime = entry.time.getTime();
-            }
-        }
-
-        if (msgHTML.length) {
-            msgHTML.splice(0,0,this._elConsole.innerHTML);
-            this._elConsole.innerHTML = this.newestOnTop ?
-                                            msgHTML.reverse().join('') :
-                                            msgHTML.join('');
-        } else if (df.firstChild) {
-            this._elConsole.insertBefore(df, this.newestOnTop ?
-                        this._elConsole.firstChild || null : null);
-        }
-    },
-
-/////////////////////////////////////////////////////////////////////////////
-//
-// Private event handlers
-//
-/////////////////////////////////////////////////////////////////////////////
-
-    /**
-     * Handles Logger's categoryCreateEvent.
-     *
-     * @method _onCategoryCreate
-     * @param sType {String} The event.
-     * @param aArgs {Object[]} Data passed from event firer.
-     * @param oSelf {Object} The LogReader instance.
-     * @private
-     */
-    _onCategoryCreate : function(sType, aArgs, oSelf) {
-        var category = aArgs[0];
-        
-        // Add category to the internal array of filters
-        oSelf._categoryFilters.push(category);
-
-        if(oSelf._elFt) {
-            oSelf._createCategoryCheckbox(category);
-        }
-    },
-
-    /**
-     * Handles Logger's sourceCreateEvent.
-     *
-     * @method _onSourceCreate
-     * @param sType {String} The event.
-     * @param aArgs {Object[]} Data passed from event firer.
-     * @param oSelf {Object} The LogReader instance.
-     * @private
-     */
-    _onSourceCreate : function(sType, aArgs, oSelf) {
-        var source = aArgs[0];
-        
-        // Add source to the internal array of filters
-        oSelf._sourceFilters.push(source);
-
-        if(oSelf._elFt) {
-            oSelf._createSourceCheckbox(source);
-        }
-    },
-
-    /**
-     * Handles check events on the category filter checkboxes.
-     *
-     * @method _onCheckCategory
-     * @param v {HTMLEvent} The click event.
-     * @param oSelf {Object} The LogReader instance.
-     * @private
-     */
-    _onCheckCategory : function(v, oSelf) {
-        var category = this.category;
-        if(!this.checked) {
-            oSelf.hideCategory(category);
-        }
-        else {
-            oSelf.showCategory(category);
-        }
-    },
-
-    /**
-     * Handles check events on the category filter checkboxes.
-     *
-     * @method _onCheckSource
-     * @param v {HTMLEvent} The click event.
-     * @param oSelf {Object} The LogReader instance.
-     * @private
-     */
-    _onCheckSource : function(v, oSelf) {
-        var source = this.source;
-        if(!this.checked) {
-            oSelf.hideSource(source);
-        }
-        else {
-            oSelf.showSource(source);
-        }
-    },
-
-    /**
-     * Handles click events on the collapse button.
-     *
-     * @method _onClickCollapseBtn
-     * @param v {HTMLEvent} The click event.
-     * @param oSelf {Object} The LogReader instance
-     * @private
-     */
-    _onClickCollapseBtn : function(v, oSelf) {
-        if(!oSelf.isCollapsed) {
-            oSelf.collapse();
-        }
-        else {
-            oSelf.expand();
-        }
-    },
-
-    /**
-     * Handles click events on the pause button.
-     *
-     * @method _onClickPauseBtn
-     * @param v {HTMLEvent} The click event.
-     * @param oSelf {Object} The LogReader instance.
-     * @private
-     */
-    _onClickPauseBtn : function(v, oSelf) {
-        if(!oSelf.isPaused) {
-            oSelf.pause();
-        }
-        else {
-            oSelf.resume();
-        }
-    },
-
-    /**
-     * Handles click events on the clear button.
-     *
-     * @method _onClickClearBtn
-     * @param v {HTMLEvent} The click event.
-     * @param oSelf {Object} The LogReader instance.
-     * @private
-     */
-    _onClickClearBtn : function(v, oSelf) {
-        oSelf.clearConsole();
-    },
-
-    /**
-     * Handles Logger's newLogEvent.
-     *
-     * @method _onNewLog
-     * @param sType {String} The event.
-     * @param aArgs {Object[]} Data passed from event firer.
-     * @param oSelf {Object} The LogReader instance.
-     * @private
-     */
-    _onNewLog : function(sType, aArgs, oSelf) {
-        var logEntry = aArgs[0];
-        oSelf._buffer.push(logEntry);
-
-        if (oSelf.logReaderEnabled === true && oSelf._timeout === null) {
-            oSelf._timeout = setTimeout(function(){oSelf._printBuffer();}, oSelf.outputBuffer);
-        }
-    },
-
-    /**
-     * Handles Logger's resetEvent.
-     *
-     * @method _onReset
-     * @param sType {String} The event.
-     * @param aArgs {Object[]} Data passed from event firer.
-     * @param oSelf {Object} The LogReader instance.
-     * @private
-     */
-    _onReset : function(sType, aArgs, oSelf) {
-        oSelf._filterLogs();
-    }
-};
-
-YAHOO.widget.LogReader = LogReader;
-
-})();
-YAHOO.register("logger", YAHOO.widget.Logger, {version: "2.8.0r4", build: "2449"});
diff --git a/koha-tmpl/intranet-tmpl/prog/en/lib/yui/logger/logger-min.js b/koha-tmpl/intranet-tmpl/prog/en/lib/yui/logger/logger-min.js
deleted file mode 100644 (file)
index 0a6d2c8..0000000
+++ /dev/null
@@ -1,9 +0,0 @@
-/*
-Copyright (c) 2009, Yahoo! Inc. All rights reserved.
-Code licensed under the BSD License:
-http://developer.yahoo.net/yui/license.txt
-version: 2.8.0r4
-*/
-YAHOO.widget.LogMsg=function(A){this.msg=this.time=this.category=this.source=this.sourceDetail=null;if(A&&(A.constructor==Object)){for(var B in A){if(A.hasOwnProperty(B)){this[B]=A[B];}}}};YAHOO.widget.LogWriter=function(A){if(!A){YAHOO.log("Could not instantiate LogWriter due to invalid source.","error","LogWriter");return;}this._source=A;};YAHOO.widget.LogWriter.prototype.toString=function(){return"LogWriter "+this._sSource;};YAHOO.widget.LogWriter.prototype.log=function(A,B){YAHOO.widget.Logger.log(A,B,this._source);};YAHOO.widget.LogWriter.prototype.getSource=function(){return this._source;};YAHOO.widget.LogWriter.prototype.setSource=function(A){if(!A){YAHOO.log("Could not set source due to invalid source.","error",this.toString());return;}else{this._source=A;}};YAHOO.widget.LogWriter.prototype._source=null;if(!YAHOO.widget.Logger){YAHOO.widget.Logger={loggerEnabled:true,_browserConsoleEnabled:false,categories:["info","warn","error","time","window"],sources:["global"],_stack:[],maxStackEntries:2500,_startTime:new Date().getTime(),_lastTime:null,_windowErrorsHandled:false,_origOnWindowError:null};YAHOO.widget.Logger.log=function(B,F,G){if(this.loggerEnabled){if(!F){F="info";}else{F=F.toLocaleLowerCase();if(this._isNewCategory(F)){this._createNewCategory(F);}}var C="global";var A=null;if(G){var D=G.indexOf(" ");if(D>0){C=G.substring(0,D);A=G.substring(D,G.length);}else{C=G;}if(this._isNewSource(C)){this._createNewSource(C);}}var H=new Date();var J=new YAHOO.widget.LogMsg({msg:B,time:H,category:F,source:C,sourceDetail:A});var I=this._stack;var E=this.maxStackEntries;if(E&&!isNaN(E)&&(I.length>=E)){I.shift();}I.push(J);this.newLogEvent.fire(J);if(this._browserConsoleEnabled){this._printToBrowserConsole(J);}return true;}else{return false;}};YAHOO.widget.Logger.reset=function(){this._stack=[];this._startTime=new Date().getTime();this.loggerEnabled=true;this.log("Logger reset");this.logResetEvent.fire();};YAHOO.widget.Logger.getStack=function(){return this._stack;};YAHOO.widget.Logger.getStartTime=function(){return this._startTime;};YAHOO.widget.Logger.disableBrowserConsole=function(){YAHOO.log("Logger output to the function console.log() has been disabled.");this._browserConsoleEnabled=false;};YAHOO.widget.Logger.enableBrowserConsole=function(){this._browserConsoleEnabled=true;YAHOO.log("Logger output to the function console.log() has been enabled.");};YAHOO.widget.Logger.handleWindowErrors=function(){if(!YAHOO.widget.Logger._windowErrorsHandled){if(window.error){YAHOO.widget.Logger._origOnWindowError=window.onerror;}window.onerror=YAHOO.widget.Logger._onWindowError;YAHOO.widget.Logger._windowErrorsHandled=true;YAHOO.log("Logger handling of window.onerror has been enabled.");}else{YAHOO.log("Logger handling of window.onerror had already been enabled.");}};YAHOO.widget.Logger.unhandleWindowErrors=function(){if(YAHOO.widget.Logger._windowErrorsHandled){if(YAHOO.widget.Logger._origOnWindowError){window.onerror=YAHOO.widget.Logger._origOnWindowError;YAHOO.widget.Logger._origOnWindowError=null;}else{window.onerror=null;}YAHOO.widget.Logger._windowErrorsHandled=false;YAHOO.log("Logger handling of window.onerror has been disabled.");}else{YAHOO.log("Logger handling of window.onerror had already been disabled.");}};YAHOO.widget.Logger.categoryCreateEvent=new YAHOO.util.CustomEvent("categoryCreate",this,true);YAHOO.widget.Logger.sourceCreateEvent=new YAHOO.util.CustomEvent("sourceCreate",this,true);YAHOO.widget.Logger.newLogEvent=new YAHOO.util.CustomEvent("newLog",this,true);YAHOO.widget.Logger.logResetEvent=new YAHOO.util.CustomEvent("logReset",this,true);YAHOO.widget.Logger._createNewCategory=function(A){this.categories.push(A);this.categoryCreateEvent.fire(A);};YAHOO.widget.Logger._isNewCategory=function(B){for(var A=0;A<this.categories.length;A++){if(B==this.categories[A]){return false;}}return true;};YAHOO.widget.Logger._createNewSource=function(A){this.sources.push(A);this.sourceCreateEvent.fire(A);};YAHOO.widget.Logger._isNewSource=function(A){if(A){for(var B=0;B<this.sources.length;B++){if(A==this.sources[B]){return false;}}return true;}};YAHOO.widget.Logger._printToBrowserConsole=function(C){if(window.console&&console.log){var E=C.category;var D=C.category.substring(0,4).toUpperCase();var G=C.time;var F;if(G.toLocaleTimeString){F=G.toLocaleTimeString();}else{F=G.toString();}var H=G.getTime();var B=(YAHOO.widget.Logger._lastTime)?(H-YAHOO.widget.Logger._lastTime):0;YAHOO.widget.Logger._lastTime=H;var A=F+" ("+B+"ms): "+C.source+": ";if(YAHOO.env.ua.webkit){A+=C.msg;}console.log(A,C.msg);}};YAHOO.widget.Logger._onWindowError=function(A,C,B){try{YAHOO.widget.Logger.log(A+" ("+C+", line "+B+")","window");if(YAHOO.widget.Logger._origOnWindowError){YAHOO.widget.Logger._origOnWindowError();}}catch(D){return false;}};YAHOO.widget.Logger.log("Logger initialized");}(function(){var C=YAHOO.widget.Logger,D=YAHOO.util,E=D.Dom,A=D.Event,G=document;function B(I,H){I=G.createElement(I);if(H){for(var J in H){if(H.hasOwnProperty(J)){I[J]=H[J];}}}return I;}function F(I,H){this._sName=F._index;F._index++;this._init.apply(this,arguments);if(this.autoRender!==false){this.render();}}YAHOO.lang.augmentObject(F,{_index:0,ENTRY_TEMPLATE:(function(){return B("pre",{className:"yui-log-entry"});})(),VERBOSE_TEMPLATE:"<p><span class='{category}'>{label}</span> {totalTime}ms (+{elapsedTime}) {localTime}:</p><p>{sourceAndDetail}</p><p>{message}</p>",BASIC_TEMPLATE:"<p><span class='{category}'>{label}</span> {totalTime}ms (+{elapsedTime}) {localTime}: {sourceAndDetail}: {message}</p>"});F.prototype={logReaderEnabled:true,width:null,height:null,top:null,left:null,right:null,bottom:null,fontSize:null,footerEnabled:true,verboseOutput:true,entryFormat:null,newestOnTop:true,outputBuffer:100,thresholdMax:500,thresholdMin:100,isCollapsed:false,isPaused:false,draggable:true,toString:function(){return"LogReader instance"+this._sName;},pause:function(){this.isPaused=true;this._timeout=null;this.logReaderEnabled=false;if(this._btnPause){this._btnPause.value="Resume";
-}},resume:function(){this.isPaused=false;this.logReaderEnabled=true;this._printBuffer();if(this._btnPause){this._btnPause.value="Pause";}},render:function(){if(this.rendered){return;}this._initContainerEl();this._initHeaderEl();this._initConsoleEl();this._initFooterEl();this._initCategories();this._initSources();this._initDragDrop();C.newLogEvent.subscribe(this._onNewLog,this);C.logResetEvent.subscribe(this._onReset,this);C.categoryCreateEvent.subscribe(this._onCategoryCreate,this);C.sourceCreateEvent.subscribe(this._onSourceCreate,this);this.rendered=true;this._filterLogs();},destroy:function(){A.purgeElement(this._elContainer,true);this._elContainer.innerHTML="";this._elContainer.parentNode.removeChild(this._elContainer);this.rendered=false;},hide:function(){this._elContainer.style.display="none";},show:function(){this._elContainer.style.display="block";},collapse:function(){this._elConsole.style.display="none";if(this._elFt){this._elFt.style.display="none";}this._btnCollapse.value="Expand";this.isCollapsed=true;},expand:function(){this._elConsole.style.display="block";if(this._elFt){this._elFt.style.display="block";}this._btnCollapse.value="Collapse";this.isCollapsed=false;},getCheckbox:function(H){return this._filterCheckboxes[H];},getCategories:function(){return this._categoryFilters;},showCategory:function(I){var K=this._categoryFilters;if(K.indexOf){if(K.indexOf(I)>-1){return;}}else{for(var H=0;H<K.length;H++){if(K[H]===I){return;}}}this._categoryFilters.push(I);this._filterLogs();var J=this.getCheckbox(I);if(J){J.checked=true;}},hideCategory:function(I){var K=this._categoryFilters;for(var H=0;H<K.length;H++){if(I==K[H]){K.splice(H,1);break;}}this._filterLogs();var J=this.getCheckbox(I);if(J){J.checked=false;}},getSources:function(){return this._sourceFilters;},showSource:function(H){var K=this._sourceFilters;if(K.indexOf){if(K.indexOf(H)>-1){return;}}else{for(var I=0;I<K.length;I++){if(H==K[I]){return;}}}K.push(H);this._filterLogs();var J=this.getCheckbox(H);if(J){J.checked=true;}},hideSource:function(H){var K=this._sourceFilters;for(var I=0;I<K.length;I++){if(H==K[I]){K.splice(I,1);break;}}this._filterLogs();var J=this.getCheckbox(H);if(J){J.checked=false;}},clearConsole:function(){this._timeout=null;this._buffer=[];this._consoleMsgCount=0;var H=this._elConsole;H.innerHTML="";},setTitle:function(H){this._title.innerHTML=this.html2Text(H);},getLastTime:function(){return this._lastTime;},formatMsg:function(I){var H=this.entryFormat||(this.verboseOutput?F.VERBOSE_TEMPLATE:F.BASIC_TEMPLATE),J={category:I.category,label:I.category.substring(0,4).toUpperCase(),sourceAndDetail:I.sourceDetail?I.source+" "+I.sourceDetail:I.source,message:this.html2Text(I.msg||I.message||"")};if(I.time&&I.time.getTime){J.localTime=I.time.toLocaleTimeString?I.time.toLocaleTimeString():I.time.toString();J.elapsedTime=I.time.getTime()-this.getLastTime();J.totalTime=I.time.getTime()-C.getStartTime();}var K=F.ENTRY_TEMPLATE.cloneNode(true);if(this.verboseOutput){K.className+=" yui-log-verbose";}K.innerHTML=H.replace(/\{(\w+)\}/g,function(L,M){return(M in J)?J[M]:"";});return K;},html2Text:function(H){if(H){H+="";return H.replace(/&/g,"&#38;").replace(/</g,"&#60;").replace(/>/g,"&#62;");}return"";},_sName:null,_buffer:null,_consoleMsgCount:0,_lastTime:null,_timeout:null,_filterCheckboxes:null,_categoryFilters:null,_sourceFilters:null,_elContainer:null,_elHd:null,_elCollapse:null,_btnCollapse:null,_title:null,_elConsole:null,_elFt:null,_elBtns:null,_elCategoryFilters:null,_elSourceFilters:null,_btnPause:null,_btnClear:null,_init:function(H,I){this._buffer=[];this._filterCheckboxes={};this._lastTime=C.getStartTime();if(I&&(I.constructor==Object)){for(var J in I){if(I.hasOwnProperty(J)){this[J]=I[J];}}}this._elContainer=E.get(H);YAHOO.log("LogReader initialized",null,this.toString());},_initContainerEl:function(){if(!this._elContainer||!/div$/i.test(this._elContainer.tagName)){this._elContainer=G.body.insertBefore(B("div"),G.body.firstChild);E.addClass(this._elContainer,"yui-log-container");}E.addClass(this._elContainer,"yui-log");var J=this._elContainer.style,H=["width","right","top","fontSize"],K,I;for(I=H.length-1;I>=0;--I){K=H[I];if(this[K]){J[K]=this[K];}}if(this.left){J.left=this.left;J.right="auto";}if(this.bottom){J.bottom=this.bottom;J.top="auto";}if(YAHOO.env.ua.opera){G.body.style+="";}},_initHeaderEl:function(){if(this._elHd){A.purgeElement(this._elHd,true);this._elHd.innerHTML="";}this._elHd=B("div",{id:"yui-log-hd"+this._sName,className:"yui-log-hd"});this._elCollapse=B("div",{className:"yui-log-btns"});this._btnCollapse=B("input",{type:"button",className:"yui-log-button",value:"Collapse"});A.on(this._btnCollapse,"click",this._onClickCollapseBtn,this);this._title=B("h4",{innerHTML:"Logger Console"});this._elCollapse.appendChild(this._btnCollapse);this._elHd.appendChild(this._elCollapse);this._elHd.appendChild(this._title);this._elContainer.appendChild(this._elHd);},_initConsoleEl:function(){if(this._elConsole){A.purgeElement(this._elConsole,true);this._elConsole.innerHTML="";}this._elConsole=B("div",{className:"yui-log-bd"});if(this.height){this._elConsole.style.height=this.height;}this._elContainer.appendChild(this._elConsole);},_initFooterEl:function(){if(this.footerEnabled){if(this._elFt){A.purgeElement(this._elFt,true);this._elFt.innerHTML="";}this._elFt=B("div",{className:"yui-log-ft"});this._elBtns=B("div",{className:"yui-log-btns"});this._btnPause=B("input",{type:"button",className:"yui-log-button",value:"Pause"});A.on(this._btnPause,"click",this._onClickPauseBtn,this);this._btnClear=B("input",{type:"button",className:"yui-log-button",value:"Clear"});A.on(this._btnClear,"click",this._onClickClearBtn,this);this._elCategoryFilters=B("div",{className:"yui-log-categoryfilters"});this._elSourceFilters=B("div",{className:"yui-log-sourcefilters"});this._elBtns.appendChild(this._btnPause);this._elBtns.appendChild(this._btnClear);this._elFt.appendChild(this._elBtns);this._elFt.appendChild(this._elCategoryFilters);
-this._elFt.appendChild(this._elSourceFilters);this._elContainer.appendChild(this._elFt);}},_initDragDrop:function(){if(D.DD&&this.draggable&&this._elHd){var H=new D.DD(this._elContainer);H.setHandleElId(this._elHd.id);this._elHd.style.cursor="move";}},_initCategories:function(){this._categoryFilters=[];var J=C.categories;for(var H=0;H<J.length;H++){var I=J[H];this._categoryFilters.push(I);if(this._elCategoryFilters){this._createCategoryCheckbox(I);}}},_initSources:function(){this._sourceFilters=[];var J=C.sources;for(var I=0;I<J.length;I++){var H=J[I];this._sourceFilters.push(H);if(this._elSourceFilters){this._createSourceCheckbox(H);}}},_createCategoryCheckbox:function(K){if(this._elFt){var J=B("span",{className:"yui-log-filtergrp"}),H=B("input",{id:"yui-log-filter-"+K+this._sName,className:"yui-log-filter-"+K,type:"checkbox",category:K}),I=B("label",{htmlFor:H.id,className:K,innerHTML:K});A.on(H,"click",this._onCheckCategory,this);this._filterCheckboxes[K]=H;J.appendChild(H);J.appendChild(I);this._elCategoryFilters.appendChild(J);H.checked=true;}},_createSourceCheckbox:function(H){if(this._elFt){var K=B("span",{className:"yui-log-filtergrp"}),I=B("input",{id:"yui-log-filter-"+H+this._sName,className:"yui-log-filter-"+H,type:"checkbox",source:H}),J=B("label",{htmlFor:I.id,className:H,innerHTML:H});A.on(I,"click",this._onCheckSource,this);this._filterCheckboxes[H]=I;K.appendChild(I);K.appendChild(J);this._elSourceFilters.appendChild(K);I.checked=true;}},_filterLogs:function(){if(this._elConsole!==null){this.clearConsole();this._printToConsole(C.getStack());}},_printBuffer:function(){this._timeout=null;if(this._elConsole!==null){var I=this.thresholdMax;I=(I&&!isNaN(I))?I:500;if(this._consoleMsgCount<I){var H=[];for(var J=0;J<this._buffer.length;J++){H[J]=this._buffer[J];}this._buffer=[];this._printToConsole(H);}else{this._filterLogs();}if(!this.newestOnTop){this._elConsole.scrollTop=this._elConsole.scrollHeight;}}},_printToConsole:function(P){var I=P.length,T=G.createDocumentFragment(),W=[],X=this.thresholdMin,J=this._sourceFilters.length,U=this._categoryFilters.length,R,O,N,M,S;if(isNaN(X)||(X>this.thresholdMax)){X=0;}R=(I>X)?(I-X):0;for(O=R;O<I;O++){var L=false,Q=false,V=P[O],H=V.source,K=V.category;for(N=0;N<J;N++){if(H==this._sourceFilters[N]){Q=true;break;}}if(Q){for(N=0;N<U;N++){if(K==this._categoryFilters[N]){L=true;break;}}}if(L){if(this._consoleMsgCount===0){this._lastTime=V.time.getTime();}M=this.formatMsg(V);if(typeof M==="string"){W[W.length]=M;}else{T.insertBefore(M,this.newestOnTop?T.firstChild||null:null);}this._consoleMsgCount++;this._lastTime=V.time.getTime();}}if(W.length){W.splice(0,0,this._elConsole.innerHTML);this._elConsole.innerHTML=this.newestOnTop?W.reverse().join(""):W.join("");}else{if(T.firstChild){this._elConsole.insertBefore(T,this.newestOnTop?this._elConsole.firstChild||null:null);}}},_onCategoryCreate:function(K,J,H){var I=J[0];H._categoryFilters.push(I);if(H._elFt){H._createCategoryCheckbox(I);}},_onSourceCreate:function(K,J,H){var I=J[0];H._sourceFilters.push(I);if(H._elFt){H._createSourceCheckbox(I);}},_onCheckCategory:function(H,I){var J=this.category;if(!this.checked){I.hideCategory(J);}else{I.showCategory(J);}},_onCheckSource:function(H,I){var J=this.source;if(!this.checked){I.hideSource(J);}else{I.showSource(J);}},_onClickCollapseBtn:function(H,I){if(!I.isCollapsed){I.collapse();}else{I.expand();}},_onClickPauseBtn:function(H,I){if(!I.isPaused){I.pause();}else{I.resume();}},_onClickClearBtn:function(H,I){I.clearConsole();},_onNewLog:function(K,J,H){var I=J[0];H._buffer.push(I);if(H.logReaderEnabled===true&&H._timeout===null){H._timeout=setTimeout(function(){H._printBuffer();},H.outputBuffer);}},_onReset:function(J,I,H){H._filterLogs();}};YAHOO.widget.LogReader=F;})();YAHOO.register("logger",YAHOO.widget.Logger,{version:"2.8.0r4",build:"2449"});
\ No newline at end of file
diff --git a/koha-tmpl/intranet-tmpl/prog/en/lib/yui/logger/logger.js b/koha-tmpl/intranet-tmpl/prog/en/lib/yui/logger/logger.js
deleted file mode 100644 (file)
index 8ddd7ff..0000000
+++ /dev/null
@@ -1,2104 +0,0 @@
-/*
-Copyright (c) 2009, Yahoo! Inc. All rights reserved.
-Code licensed under the BSD License:
-http://developer.yahoo.net/yui/license.txt
-version: 2.8.0r4
-*/
-/****************************************************************************/
-/****************************************************************************/
-/****************************************************************************/
-
-/**
- * The LogMsg class defines a single log message.
- *
- * @class LogMsg
- * @constructor
- * @param oConfigs {Object} Object literal of configuration params.
- */
-YAHOO.widget.LogMsg = function(oConfigs) {
-    // Parse configs
-    /**
-     * Log message.
-     *
-     * @property msg
-     * @type String
-     */
-    this.msg =
-    /**
-     * Log timestamp.
-     *
-     * @property time
-     * @type Date
-     */
-    this.time =
-
-    /**
-     * Log category.
-     *
-     * @property category
-     * @type String
-     */
-    this.category =
-
-    /**
-     * Log source. The first word passed in as the source argument.
-     *
-     * @property source
-     * @type String
-     */
-    this.source =
-
-    /**
-     * Log source detail. The remainder of the string passed in as the source argument, not
-     * including the first word (if any).
-     *
-     * @property sourceDetail
-     * @type String
-     */
-    this.sourceDetail = null;
-
-    if (oConfigs && (oConfigs.constructor == Object)) {
-        for(var param in oConfigs) {
-            if (oConfigs.hasOwnProperty(param)) {
-                this[param] = oConfigs[param];
-            }
-        }
-    }
-};
-/****************************************************************************/
-/****************************************************************************/
-/****************************************************************************/
-
-/**
- * The LogWriter class provides a mechanism to log messages through
- * YAHOO.widget.Logger from a named source.
- *
- * @class LogWriter
- * @constructor
- * @param sSource {String} Source of LogWriter instance.
- */
-YAHOO.widget.LogWriter = function(sSource) {
-    if(!sSource) {
-        YAHOO.log("Could not instantiate LogWriter due to invalid source.",
-            "error", "LogWriter");
-        return;
-    }
-    this._source = sSource;
- };
-
-/////////////////////////////////////////////////////////////////////////////
-//
-// Public methods
-//
-/////////////////////////////////////////////////////////////////////////////
-
- /**
- * Public accessor to the unique name of the LogWriter instance.
- *
- * @method toString
- * @return {String} Unique name of the LogWriter instance.
- */
-YAHOO.widget.LogWriter.prototype.toString = function() {
-    return "LogWriter " + this._sSource;
-};
-
-/**
- * Logs a message attached to the source of the LogWriter.
- *
- * @method log
- * @param sMsg {String} The log message.
- * @param sCategory {String} Category name.
- */
-YAHOO.widget.LogWriter.prototype.log = function(sMsg, sCategory) {
-    YAHOO.widget.Logger.log(sMsg, sCategory, this._source);
-};
-
-/**
- * Public accessor to get the source name.
- *
- * @method getSource
- * @return {String} The LogWriter source.
- */
-YAHOO.widget.LogWriter.prototype.getSource = function() {
-    return this._source;
-};
-
-/**
- * Public accessor to set the source name.
- *
- * @method setSource
- * @param sSource {String} Source of LogWriter instance.
- */
-YAHOO.widget.LogWriter.prototype.setSource = function(sSource) {
-    if(!sSource) {
-        YAHOO.log("Could not set source due to invalid source.", "error", this.toString());
-        return;
-    }
-    else {
-        this._source = sSource;
-    }
-};
-
-/////////////////////////////////////////////////////////////////////////////
-//
-// Private member variables
-//
-/////////////////////////////////////////////////////////////////////////////
-
-/**
- * Source of the LogWriter instance.
- *
- * @property _source
- * @type String
- * @private
- */
-YAHOO.widget.LogWriter.prototype._source = null;
-
-
-
- /**
- * The Logger widget provides a simple way to read or write log messages in
- * JavaScript code. Integration with the YUI Library's debug builds allow
- * implementers to access under-the-hood events, errors, and debugging messages.
- * Output may be read through a LogReader console and/or output to a browser
- * console.
- *
- * @module logger
- * @requires yahoo, event, dom
- * @optional dragdrop
- * @namespace YAHOO.widget
- * @title Logger Widget
- */
-
-/****************************************************************************/
-/****************************************************************************/
-/****************************************************************************/
-
-// Define once
-if(!YAHOO.widget.Logger) {
-    /**
-     * The singleton Logger class provides core log management functionality. Saves
-     * logs written through the global YAHOO.log function or written by a LogWriter
-     * instance. Provides access to logs for reading by a LogReader instance or
-     * native browser console such as the Firebug extension to Firefox or Safari's
-     * JavaScript console through integration with the console.log() method.
-     *
-     * @class Logger
-     * @static
-     */
-    YAHOO.widget.Logger = {
-        // Initialize properties
-        loggerEnabled: true,
-        _browserConsoleEnabled: false,
-        categories: ["info","warn","error","time","window"],
-        sources: ["global"],
-        _stack: [], // holds all log msgs
-        maxStackEntries: 2500,
-        _startTime: new Date().getTime(), // static start timestamp
-        _lastTime: null, // timestamp of last logged message
-        _windowErrorsHandled: false,
-        _origOnWindowError: null
-    };
-
-    /////////////////////////////////////////////////////////////////////////////
-    //
-    // Public properties
-    //
-    /////////////////////////////////////////////////////////////////////////////
-    /**
-     * True if Logger is enabled, false otherwise.
-     *
-     * @property loggerEnabled
-     * @type Boolean
-     * @static
-     * @default true
-     */
-
-    /**
-     * Array of categories.
-     *
-     * @property categories
-     * @type String[]
-     * @static
-     * @default ["info","warn","error","time","window"]
-     */
-
-    /**
-     * Array of sources.
-     *
-     * @property sources
-     * @type String[]
-     * @static
-     * @default ["global"]
-     */
-
-    /**
-     * Upper limit on size of internal stack.
-     *
-     * @property maxStackEntries
-     * @type Number
-     * @static
-     * @default 2500
-     */
-
-    /////////////////////////////////////////////////////////////////////////////
-    //
-    // Private properties
-    //
-    /////////////////////////////////////////////////////////////////////////////
-    /**
-     * Internal property to track whether output to browser console is enabled.
-     *
-     * @property _browserConsoleEnabled
-     * @type Boolean
-     * @static
-     * @default false
-     * @private
-     */
-
-    /**
-     * Array to hold all log messages.
-     *
-     * @property _stack
-     * @type Array
-     * @static
-     * @private
-     */
-    /**
-     * Static timestamp of Logger initialization.
-     *
-     * @property _startTime
-     * @type Date
-     * @static
-     * @private
-     */
-    /**
-     * Timestamp of last logged message.
-     *
-     * @property _lastTime
-     * @type Date
-     * @static
-     * @private
-     */
-    /////////////////////////////////////////////////////////////////////////////
-    //
-    // Public methods
-    //
-    /////////////////////////////////////////////////////////////////////////////
-    /**
-     * Saves a log message to the stack and fires newLogEvent. If the log message is
-     * assigned to an unknown category, creates a new category. If the log message is
-     * from an unknown source, creates a new source.  If browser console is enabled,
-     * outputs the log message to browser console.
-     *
-     * @method log
-     * @param sMsg {String} The log message.
-     * @param sCategory {String} Category of log message, or null.
-     * @param sSource {String} Source of LogWriter, or null if global.
-     */
-    YAHOO.widget.Logger.log = function(sMsg, sCategory, sSource) {
-        if(this.loggerEnabled) {
-            if(!sCategory) {
-                sCategory = "info"; // default category
-            }
-            else {
-                sCategory = sCategory.toLocaleLowerCase();
-                if(this._isNewCategory(sCategory)) {
-                    this._createNewCategory(sCategory);
-                }
-            }
-            var sClass = "global"; // default source
-            var sDetail = null;
-            if(sSource) {
-                var spaceIndex = sSource.indexOf(" ");
-                if(spaceIndex > 0) {
-                    // Substring until first space
-                    sClass = sSource.substring(0,spaceIndex);
-                    // The rest of the source
-                    sDetail = sSource.substring(spaceIndex,sSource.length);
-                }
-                else {
-                    sClass = sSource;
-                }
-                if(this._isNewSource(sClass)) {
-                    this._createNewSource(sClass);
-                }
-            }
-
-            var timestamp = new Date();
-            var logEntry = new YAHOO.widget.LogMsg({
-                msg: sMsg,
-                time: timestamp,
-                category: sCategory,
-                source: sClass,
-                sourceDetail: sDetail
-            });
-
-            var stack = this._stack;
-            var maxStackEntries = this.maxStackEntries;
-            if(maxStackEntries && !isNaN(maxStackEntries) &&
-                (stack.length >= maxStackEntries)) {
-                stack.shift();
-            }
-            stack.push(logEntry);
-            this.newLogEvent.fire(logEntry);
-
-            if(this._browserConsoleEnabled) {
-                this._printToBrowserConsole(logEntry);
-            }
-            return true;
-        }
-        else {
-            return false;
-        }
-    };
-
-    /**
-     * Resets internal stack and startTime, enables Logger, and fires logResetEvent.
-     *
-     * @method reset
-     */
-    YAHOO.widget.Logger.reset = function() {
-        this._stack = [];
-        this._startTime = new Date().getTime();
-        this.loggerEnabled = true;
-        this.log("Logger reset");
-        this.logResetEvent.fire();
-    };
-
-    /**
-     * Public accessor to internal stack of log message objects.
-     *
-     * @method getStack
-     * @return {Object[]} Array of log message objects.
-     */
-    YAHOO.widget.Logger.getStack = function() {
-        return this._stack;
-    };
-
-    /**
-     * Public accessor to internal start time.
-     *
-     * @method getStartTime
-     * @return {Date} Internal date of when Logger singleton was initialized.
-     */
-    YAHOO.widget.Logger.getStartTime = function() {
-        return this._startTime;
-    };
-
-    /**
-     * Disables output to the browser's global console.log() function, which is used
-     * by the Firebug extension to Firefox as well as Safari.
-     *
-     * @method disableBrowserConsole
-     */
-    YAHOO.widget.Logger.disableBrowserConsole = function() {
-        YAHOO.log("Logger output to the function console.log() has been disabled.");
-        this._browserConsoleEnabled = false;
-    };
-
-    /**
-     * Enables output to the browser's global console.log() function, which is used
-     * by the Firebug extension to Firefox as well as Safari.
-     *
-     * @method enableBrowserConsole
-     */
-    YAHOO.widget.Logger.enableBrowserConsole = function() {
-        this._browserConsoleEnabled = true;
-        YAHOO.log("Logger output to the function console.log() has been enabled.");
-    };
-
-    /**
-     * Surpresses native JavaScript errors and outputs to console. By default,
-     * Logger does not handle JavaScript window error events.
-     * NB: Not all browsers support the window.onerror event.
-     *
-     * @method handleWindowErrors
-     */
-    YAHOO.widget.Logger.handleWindowErrors = function() {
-        if(!YAHOO.widget.Logger._windowErrorsHandled) {
-            // Save any previously defined handler to call
-            if(window.error) {
-                YAHOO.widget.Logger._origOnWindowError = window.onerror;
-            }
-            window.onerror = YAHOO.widget.Logger._onWindowError;
-            YAHOO.widget.Logger._windowErrorsHandled = true;
-            YAHOO.log("Logger handling of window.onerror has been enabled.");
-        }
-        else {
-            YAHOO.log("Logger handling of window.onerror had already been enabled.");
-        }
-    };
-
-    /**
-     * Unsurpresses native JavaScript errors. By default,
-     * Logger does not handle JavaScript window error events.
-     * NB: Not all browsers support the window.onerror event.
-     *
-     * @method unhandleWindowErrors
-     */
-    YAHOO.widget.Logger.unhandleWindowErrors = function() {
-        if(YAHOO.widget.Logger._windowErrorsHandled) {
-            // Revert to any previously defined handler to call
-            if(YAHOO.widget.Logger._origOnWindowError) {
-                window.onerror = YAHOO.widget.Logger._origOnWindowError;
-                YAHOO.widget.Logger._origOnWindowError = null;
-            }
-            else {
-                window.onerror = null;
-            }
-            YAHOO.widget.Logger._windowErrorsHandled = false;
-            YAHOO.log("Logger handling of window.onerror has been disabled.");
-        }
-        else {
-            YAHOO.log("Logger handling of window.onerror had already been disabled.");
-        }
-    };
-    
-    /////////////////////////////////////////////////////////////////////////////
-    //
-    // Public events
-    //
-    /////////////////////////////////////////////////////////////////////////////
-
-     /**
-     * Fired when a new category has been created.
-     *
-     * @event categoryCreateEvent
-     * @param sCategory {String} Category name.
-     */
-    YAHOO.widget.Logger.categoryCreateEvent =
-        new YAHOO.util.CustomEvent("categoryCreate", this, true);
-
-     /**
-     * Fired when a new source has been named.
-     *
-     * @event sourceCreateEvent
-     * @param sSource {String} Source name.
-     */
-    YAHOO.widget.Logger.sourceCreateEvent =
-        new YAHOO.util.CustomEvent("sourceCreate", this, true);
-
-     /**
-     * Fired when a new log message has been created.
-     *
-     * @event newLogEvent
-     * @param sMsg {String} Log message.
-     */
-    YAHOO.widget.Logger.newLogEvent = new YAHOO.util.CustomEvent("newLog", this, true);
-
-    /**
-     * Fired when the Logger has been reset has been created.
-     *
-     * @event logResetEvent
-     */
-    YAHOO.widget.Logger.logResetEvent = new YAHOO.util.CustomEvent("logReset", this, true);
-
-    /////////////////////////////////////////////////////////////////////////////
-    //
-    // Private methods
-    //
-    /////////////////////////////////////////////////////////////////////////////
-
-    /**
-     * Creates a new category of log messages and fires categoryCreateEvent.
-     *
-     * @method _createNewCategory
-     * @param sCategory {String} Category name.
-     * @private
-     */
-    YAHOO.widget.Logger._createNewCategory = function(sCategory) {
-        this.categories.push(sCategory);
-        this.categoryCreateEvent.fire(sCategory);
-    };
-
-    /**
-     * Checks to see if a category has already been created.
-     *
-     * @method _isNewCategory
-     * @param sCategory {String} Category name.
-     * @return {Boolean} Returns true if category is unknown, else returns false.
-     * @private
-     */
-    YAHOO.widget.Logger._isNewCategory = function(sCategory) {
-        for(var i=0; i < this.categories.length; i++) {
-            if(sCategory == this.categories[i]) {
-                return false;
-            }
-        }
-        return true;
-    };
-
-    /**
-     * Creates a new source of log messages and fires sourceCreateEvent.
-     *
-     * @method _createNewSource
-     * @param sSource {String} Source name.
-     * @private
-     */
-    YAHOO.widget.Logger._createNewSource = function(sSource) {
-        this.sources.push(sSource);
-        this.sourceCreateEvent.fire(sSource);
-    };
-
-    /**
-     * Checks to see if a source already exists.
-     *
-     * @method _isNewSource
-     * @param sSource {String} Source name.
-     * @return {Boolean} Returns true if source is unknown, else returns false.
-     * @private
-     */
-    YAHOO.widget.Logger._isNewSource = function(sSource) {
-        if(sSource) {
-            for(var i=0; i < this.sources.length; i++) {
-                if(sSource == this.sources[i]) {
-                    return false;
-                }
-            }
-            return true;
-        }
-    };
-
-    /**
-     * Outputs a log message to global console.log() function.
-     *
-     * @method _printToBrowserConsole
-     * @param oEntry {Object} Log entry object.
-     * @private
-     */
-    YAHOO.widget.Logger._printToBrowserConsole = function(oEntry) {
-        if(window.console && console.log) {
-            var category = oEntry.category;
-            var label = oEntry.category.substring(0,4).toUpperCase();
-
-            var time = oEntry.time;
-            var localTime;
-            if (time.toLocaleTimeString) {
-                localTime  = time.toLocaleTimeString();
-            }
-            else {
-                localTime = time.toString();
-            }
-
-            var msecs = time.getTime();
-            var elapsedTime = (YAHOO.widget.Logger._lastTime) ?
-                (msecs - YAHOO.widget.Logger._lastTime) : 0;
-            YAHOO.widget.Logger._lastTime = msecs;
-
-            var output =
-                localTime + " (" +
-                elapsedTime + "ms): " +
-                oEntry.source + ": ";
-
-            // for bug 1987607
-            if (YAHOO.env.ua.webkit) {
-                output += oEntry.msg;
-            }
-
-            console.log(output, oEntry.msg);
-        }
-    };
-
-    /////////////////////////////////////////////////////////////////////////////
-    //
-    // Private event handlers
-    //
-    /////////////////////////////////////////////////////////////////////////////
-
-    /**
-     * Handles logging of messages due to window error events.
-     *
-     * @method _onWindowError
-     * @param sMsg {String} The error message.
-     * @param sUrl {String} URL of the error.
-     * @param sLine {String} Line number of the error.
-     * @private
-     */
-    YAHOO.widget.Logger._onWindowError = function(sMsg,sUrl,sLine) {
-        // Logger is not in scope of this event handler
-        try {
-            YAHOO.widget.Logger.log(sMsg+' ('+sUrl+', line '+sLine+')', "window");
-            if(YAHOO.widget.Logger._origOnWindowError) {
-                YAHOO.widget.Logger._origOnWindowError();
-            }
-        }
-        catch(e) {
-            return false;
-        }
-    };
-
-    /////////////////////////////////////////////////////////////////////////////
-    //
-    // First log
-    //
-    /////////////////////////////////////////////////////////////////////////////
-
-    YAHOO.widget.Logger.log("Logger initialized");
-}
-
-/****************************************************************************/
-/****************************************************************************/
-/****************************************************************************/
-(function () {
-var Logger = YAHOO.widget.Logger,
-    u      = YAHOO.util,
-    Dom    = u.Dom,
-    Event  = u.Event,
-    d      = document;
-
-function make(el,props) {
-    el = d.createElement(el);
-    if (props) {
-        for (var p in props) {
-            if (props.hasOwnProperty(p)) {
-                el[p] = props[p];
-            }
-        }
-    }
-    return el;
-}
-
-/**
- * The LogReader class provides UI to read messages logged to YAHOO.widget.Logger.
- *
- * @class LogReader
- * @constructor
- * @param elContainer {HTMLElement} (optional) DOM element reference of an existing DIV.
- * @param elContainer {String} (optional) String ID of an existing DIV.
- * @param oConfigs {Object} (optional) Object literal of configuration params.
- */
-function LogReader(elContainer, oConfigs) {
-    this._sName = LogReader._index;
-    LogReader._index++;
-    
-    this._init.apply(this,arguments);
-
-    /**
-     * Render the LogReader immediately upon instantiation.  If set to false,
-     * you must call myLogReader.render() to generate the UI.
-     * 
-     * @property autoRender
-     * @type {Boolean}
-     * @default true
-     */
-    if (this.autoRender !== false) {
-        this.render();
-    }
-}
-
-/////////////////////////////////////////////////////////////////////////////
-//
-// Static member variables
-//
-/////////////////////////////////////////////////////////////////////////////
-YAHOO.lang.augmentObject(LogReader, {
-    /**
-     * Internal class member to index multiple LogReader instances.
-     *
-     * @property _memberName
-     * @static
-     * @type Number
-     * @default 0
-     * @private
-     */
-    _index : 0,
-
-    /**
-     * Node template for the log entries
-     * @property ENTRY_TEMPLATE
-     * @static
-     * @type {HTMLElement}
-     * @default <code>pre</code> element with class yui-log-entry
-     */
-    ENTRY_TEMPLATE : (function () {
-        return make('pre',{ className: 'yui-log-entry' });
-    })(),
-
-    /**
-     * Template used for innerHTML of verbose entry output.
-     * @property VERBOSE_TEMPLATE
-     * @static
-     * @default "&lt;p>&lt;span class='{category}'>{label}&lt;/span>{totalTime}ms (+{elapsedTime}) {localTime}:&lt;/p>&lt;p>{sourceAndDetail}&lt;/p>&lt;p>{message}&lt;/p>"
-     */
-    VERBOSE_TEMPLATE : "<p><span class='{category}'>{label}</span> {totalTime}ms (+{elapsedTime}) {localTime}:</p><p>{sourceAndDetail}</p><p>{message}</p>",
-
-    /**
-     * Template used for innerHTML of compact entry output.
-     * @property BASIC_TEMPLATE
-     * @static
-     * @default "&lt;p>&lt;span class='{category}'>{label}&lt;/span>{totalTime}ms (+{elapsedTime}) {localTime}: {sourceAndDetail}: {message}&lt;/p>"
-     */
-    BASIC_TEMPLATE : "<p><span class='{category}'>{label}</span> {totalTime}ms (+{elapsedTime}) {localTime}: {sourceAndDetail}: {message}</p>"
-});
-
-/////////////////////////////////////////////////////////////////////////////
-//
-// Public member variables
-//
-/////////////////////////////////////////////////////////////////////////////
-
-LogReader.prototype = {
-    /**
-     * Whether or not LogReader is enabled to output log messages.
-     *
-     * @property logReaderEnabled
-     * @type Boolean
-     * @default true
-     */
-    logReaderEnabled : true,
-
-    /**
-     * Public member to access CSS width of the LogReader container.
-     *
-     * @property width
-     * @type String
-     */
-    width : null,
-
-    /**
-     * Public member to access CSS height of the LogReader container.
-     *
-     * @property height
-     * @type String
-     */
-    height : null,
-
-    /**
-     * Public member to access CSS top position of the LogReader container.
-     *
-     * @property top
-     * @type String
-     */
-    top : null,
-
-    /**
-     * Public member to access CSS left position of the LogReader container.
-     *
-     * @property left
-     * @type String
-     */
-    left : null,
-
-    /**
-     * Public member to access CSS right position of the LogReader container.
-     *
-     * @property right
-     * @type String
-     */
-    right : null,
-
-    /**
-     * Public member to access CSS bottom position of the LogReader container.
-     *
-     * @property bottom
-     * @type String
-     */
-    bottom : null,
-
-    /**
-     * Public member to access CSS font size of the LogReader container.
-     *
-     * @property fontSize
-     * @type String
-     */
-    fontSize : null,
-
-    /**
-     * Whether or not the footer UI is enabled for the LogReader.
-     *
-     * @property footerEnabled
-     * @type Boolean
-     * @default true
-     */
-    footerEnabled : true,
-
-    /**
-     * Whether or not output is verbose (more readable). Setting to true will make
-     * output more compact (less readable).
-     *
-     * @property verboseOutput
-     * @type Boolean
-     * @default true
-     */
-    verboseOutput : true,
-
-    /**
-     * Custom output format for log messages.  Defaults to null, which falls
-     * back to verboseOutput param deciding between LogReader.VERBOSE_TEMPLATE
-     * and LogReader.BASIC_TEMPLATE.  Use bracketed place holders to mark where
-     * message info should go.  Available place holder names include:
-     * <ul>
-     *  <li>category</li>
-     *  <li>label</li>
-     *  <li>sourceAndDetail</li>
-     *  <li>message</li>
-     *  <li>localTime</li>
-     *  <li>elapsedTime</li>
-     *  <li>totalTime</li>
-     * </ul>
-     *
-     * @property entryFormat
-     * @type String
-     * @default null
-     */
-    entryFormat : null,
-
-    /**
-     * Whether or not newest message is printed on top.
-     *
-     * @property newestOnTop
-     * @type Boolean
-     */
-    newestOnTop : true,
-
-    /**
-     * Output timeout buffer in milliseconds.
-     *
-     * @property outputBuffer
-     * @type Number
-     * @default 100
-     */
-    outputBuffer : 100,
-
-    /**
-     * Maximum number of messages a LogReader console will display.
-     *
-     * @property thresholdMax
-     * @type Number
-     * @default 500
-     */
-    thresholdMax : 500,
-
-    /**
-     * When a LogReader console reaches its thresholdMax, it will clear out messages
-     * and print out the latest thresholdMin number of messages.
-     *
-     * @property thresholdMin
-     * @type Number
-     * @default 100
-     */
-    thresholdMin : 100,
-
-    /**
-     * True when LogReader is in a collapsed state, false otherwise.
-     *
-     * @property isCollapsed
-     * @type Boolean
-     * @default false
-     */
-    isCollapsed : false,
-
-    /**
-     * True when LogReader is in a paused state, false otherwise.
-     *
-     * @property isPaused
-     * @type Boolean
-     * @default false
-     */
-    isPaused : false,
-
-    /**
-     * Enables draggable LogReader if DragDrop Utility is present.
-     *
-     * @property draggable
-     * @type Boolean
-     * @default true
-     */
-    draggable : true,
-
-    /////////////////////////////////////////////////////////////////////////////
-    //
-    // Public methods
-    //
-    /////////////////////////////////////////////////////////////////////////////
-
-     /**
-     * Public accessor to the unique name of the LogReader instance.
-     *
-     * @method toString
-     * @return {String} Unique name of the LogReader instance.
-     */
-    toString : function() {
-        return "LogReader instance" + this._sName;
-    },
-    /**
-     * Pauses output of log messages. While paused, log messages are not lost, but
-     * get saved to a buffer and then output upon resume of LogReader.
-     *
-     * @method pause
-     */
-    pause : function() {
-        this.isPaused = true;
-        this._timeout = null;
-        this.logReaderEnabled = false;
-        if (this._btnPause) {
-            this._btnPause.value = "Resume";
-        }
-    },
-
-    /**
-     * Resumes output of log messages, including outputting any log messages that
-     * have been saved to buffer while paused.
-     *
-     * @method resume
-     */
-    resume : function() {
-        this.isPaused = false;
-        this.logReaderEnabled = true;
-        this._printBuffer();
-        if (this._btnPause) {
-            this._btnPause.value = "Pause";
-        }
-    },
-
-    /**
-     * Adds the UI to the DOM, attaches event listeners, and bootstraps initial
-     * UI state.
-     *
-     * @method render
-     */
-    render : function () {
-        if (this.rendered) {
-            return;
-        }
-
-        this._initContainerEl();
-        
-        this._initHeaderEl();
-        this._initConsoleEl();
-        this._initFooterEl();
-
-        this._initCategories();
-        this._initSources();
-
-        this._initDragDrop();
-
-        // Subscribe to Logger custom events
-        Logger.newLogEvent.subscribe(this._onNewLog, this);
-        Logger.logResetEvent.subscribe(this._onReset, this);
-
-        Logger.categoryCreateEvent.subscribe(this._onCategoryCreate, this);
-        Logger.sourceCreateEvent.subscribe(this._onSourceCreate, this);
-
-        this.rendered = true;
-
-        this._filterLogs();
-    },
-
-    /**
-     * Removes the UI from the DOM entirely and detaches all event listeners.
-     * Implementers should note that Logger will still accumulate messages.
-     *
-     * @method destroy
-     */
-    destroy : function () {
-        Event.purgeElement(this._elContainer,true);
-        this._elContainer.innerHTML = '';
-        this._elContainer.parentNode.removeChild(this._elContainer);
-
-        this.rendered = false;
-    },
-
-    /**
-     * Hides UI of LogReader. Logging functionality is not disrupted.
-     *
-     * @method hide
-     */
-    hide : function() {
-        this._elContainer.style.display = "none";
-    },
-
-    /**
-     * Shows UI of LogReader. Logging functionality is not disrupted.
-     *
-     * @method show
-     */
-    show : function() {
-        this._elContainer.style.display = "block";
-    },
-
-    /**
-     * Collapses UI of LogReader. Logging functionality is not disrupted.
-     *
-     * @method collapse
-     */
-    collapse : function() {
-        this._elConsole.style.display = "none";
-        if(this._elFt) {
-            this._elFt.style.display = "none";
-        }
-        this._btnCollapse.value = "Expand";
-        this.isCollapsed = true;
-    },
-
-    /**
-     * Expands UI of LogReader. Logging functionality is not disrupted.
-     *
-     * @method expand
-     */
-    expand : function() {
-        this._elConsole.style.display = "block";
-        if(this._elFt) {
-            this._elFt.style.display = "block";
-        }
-        this._btnCollapse.value = "Collapse";
-        this.isCollapsed = false;
-    },
-
-    /**
-     * Returns related checkbox element for given filter (i.e., category or source).
-     *
-     * @method getCheckbox
-     * @param {String} Category or source name.
-     * @return {Array} Array of all filter checkboxes.
-     */
-    getCheckbox : function(filter) {
-        return this._filterCheckboxes[filter];
-    },
-
-    /**
-     * Returns array of enabled categories.
-     *
-     * @method getCategories
-     * @return {String[]} Array of enabled categories.
-     */
-    getCategories : function() {
-        return this._categoryFilters;
-    },
-
-    /**
-     * Shows log messages associated with given category.
-     *
-     * @method showCategory
-     * @param {String} Category name.
-     */
-    showCategory : function(sCategory) {
-        var filtersArray = this._categoryFilters;
-        // Don't do anything if category is already enabled
-        // Use Array.indexOf if available...
-        if(filtersArray.indexOf) {
-             if(filtersArray.indexOf(sCategory) >  -1) {
-                return;
-            }
-        }
-        // ...or do it the old-fashioned way
-        else {
-            for(var i=0; i<filtersArray.length; i++) {
-               if(filtersArray[i] === sCategory){
-                    return;
-                }
-            }
-        }
-
-        this._categoryFilters.push(sCategory);
-        this._filterLogs();
-        var elCheckbox = this.getCheckbox(sCategory);
-        if(elCheckbox) {
-            elCheckbox.checked = true;
-        }
-    },
-
-    /**
-     * Hides log messages associated with given category.
-     *
-     * @method hideCategory
-     * @param {String} Category name.
-     */
-    hideCategory : function(sCategory) {
-        var filtersArray = this._categoryFilters;
-        for(var i=0; i<filtersArray.length; i++) {
-            if(sCategory == filtersArray[i]) {
-                filtersArray.splice(i, 1);
-                break;
-            }
-        }
-        this._filterLogs();
-        var elCheckbox = this.getCheckbox(sCategory);
-        if(elCheckbox) {
-            elCheckbox.checked = false;
-        }
-    },
-
-    /**
-     * Returns array of enabled sources.
-     *
-     * @method getSources
-     * @return {Array} Array of enabled sources.
-     */
-    getSources : function() {
-        return this._sourceFilters;
-    },
-
-    /**
-     * Shows log messages associated with given source.
-     *
-     * @method showSource
-     * @param {String} Source name.
-     */
-    showSource : function(sSource) {
-        var filtersArray = this._sourceFilters;
-        // Don't do anything if category is already enabled
-        // Use Array.indexOf if available...
-        if(filtersArray.indexOf) {
-             if(filtersArray.indexOf(sSource) >  -1) {
-                return;
-            }
-        }
-        // ...or do it the old-fashioned way
-        else {
-            for(var i=0; i<filtersArray.length; i++) {
-               if(sSource == filtersArray[i]){
-                    return;
-                }
-            }
-        }
-        filtersArray.push(sSource);
-        this._filterLogs();
-        var elCheckbox = this.getCheckbox(sSource);
-        if(elCheckbox) {
-            elCheckbox.checked = true;
-        }
-    },
-
-    /**
-     * Hides log messages associated with given source.
-     *
-     * @method hideSource
-     * @param {String} Source name.
-     */
-    hideSource : function(sSource) {
-        var filtersArray = this._sourceFilters;
-        for(var i=0; i<filtersArray.length; i++) {
-            if(sSource == filtersArray[i]) {
-                filtersArray.splice(i, 1);
-                break;
-            }
-        }
-        this._filterLogs();
-        var elCheckbox = this.getCheckbox(sSource);
-        if(elCheckbox) {
-            elCheckbox.checked = false;
-        }
-    },
-
-    /**
-     * Does not delete any log messages, but clears all printed log messages from
-     * the console. Log messages will be printed out again if user re-filters. The
-     * static method YAHOO.widget.Logger.reset() should be called in order to
-     * actually delete log messages.
-     *
-     * @method clearConsole
-     */
-    clearConsole : function() {
-        // Clear the buffer of any pending messages
-        this._timeout = null;
-        this._buffer = [];
-        this._consoleMsgCount = 0;
-
-        var elConsole = this._elConsole;
-        elConsole.innerHTML = '';
-    },
-
-    /**
-     * Updates title to given string.
-     *
-     * @method setTitle
-     * @param sTitle {String} New title.
-     */
-    setTitle : function(sTitle) {
-        this._title.innerHTML = this.html2Text(sTitle);
-    },
-
-    /**
-     * Gets timestamp of the last log.
-     *
-     * @method getLastTime
-     * @return {Date} Timestamp of the last log.
-     */
-    getLastTime : function() {
-        return this._lastTime;
-    },
-
-    formatMsg : function (entry) {
-        var entryFormat = this.entryFormat || (this.verboseOutput ?
-                          LogReader.VERBOSE_TEMPLATE : LogReader.BASIC_TEMPLATE),
-            info        = {
-                category : entry.category,
-
-                // Label for color-coded display
-                label : entry.category.substring(0,4).toUpperCase(),
-
-                sourceAndDetail : entry.sourceDetail ?
-                                  entry.source + " " + entry.sourceDetail :
-                                  entry.source,
-
-                // Escape HTML entities in the log message itself for output
-                // to console
-                message : this.html2Text(entry.msg || entry.message || '')
-            };
-
-        // Add time info
-        if (entry.time && entry.time.getTime) {
-            info.localTime = entry.time.toLocaleTimeString ?
-                             entry.time.toLocaleTimeString() :
-                             entry.time.toString();
-
-            // Calculate the elapsed time to be from the last item that
-            // passed through the filter, not the absolute previous item
-            // in the stack
-            info.elapsedTime = entry.time.getTime() - this.getLastTime();
-
-            info.totalTime = entry.time.getTime() - Logger.getStartTime();
-        }
-
-        var msg = LogReader.ENTRY_TEMPLATE.cloneNode(true);
-        if (this.verboseOutput) {
-            msg.className += ' yui-log-verbose';
-        }
-
-        // Bug 2061169: Workaround for YAHOO.lang.substitute()
-        msg.innerHTML = entryFormat.replace(/\{(\w+)\}/g,
-            function (x, placeholder) {
-                return (placeholder in info) ? info[placeholder] : '';
-            });
-
-        return msg;
-    },
-
-    /**
-     * Converts input chars "<", ">", and "&" to HTML entities.
-     *
-     * @method html2Text
-     * @param sHtml {String} String to convert.
-     * @private
-     */
-    html2Text : function(sHtml) {
-        if(sHtml) {
-            sHtml += "";
-            return sHtml.replace(/&/g, "&#38;").
-                         replace(/</g, "&#60;").
-                         replace(/>/g, "&#62;");
-        }
-        return "";
-    },
-
-/////////////////////////////////////////////////////////////////////////////
-//
-// Private member variables
-//
-/////////////////////////////////////////////////////////////////////////////
-
-    /**
-     * Name of LogReader instance.
-     *
-     * @property _sName
-     * @type String
-     * @private
-     */
-    _sName : null,
-
-    //TODO: remove
-    /**
-     * A class member shared by all LogReaders if a container needs to be
-     * created during instantiation. Will be null if a container element never needs to
-     * be created on the fly, such as when the implementer passes in their own element.
-     *
-     * @property _elDefaultContainer
-     * @type HTMLElement
-     * @private
-     */
-    //YAHOO.widget.LogReader._elDefaultContainer = null;
-
-    /**
-     * Buffer of log message objects for batch output.
-     *
-     * @property _buffer
-     * @type Object[]
-     * @private
-     */
-    _buffer : null,
-
-    /**
-     * Number of log messages output to console.
-     *
-     * @property _consoleMsgCount
-     * @type Number
-     * @default 0
-     * @private
-     */
-    _consoleMsgCount : 0,
-
-    /**
-     * Date of last output log message.
-     *
-     * @property _lastTime
-     * @type Date
-     * @private
-     */
-    _lastTime : null,
-
-    /**
-     * Batched output timeout ID.
-     *
-     * @property _timeout
-     * @type Number
-     * @private
-     */
-    _timeout : null,
-
-    /**
-     * Hash of filters and their related checkbox elements.
-     *
-     * @property _filterCheckboxes
-     * @type Object
-     * @private
-     */
-    _filterCheckboxes : null,
-
-    /**
-     * Array of filters for log message categories.
-     *
-     * @property _categoryFilters
-     * @type String[]
-     * @private
-     */
-    _categoryFilters : null,
-
-    /**
-     * Array of filters for log message sources.
-     *
-     * @property _sourceFilters
-     * @type String[]
-     * @private
-     */
-    _sourceFilters : null,
-
-    /**
-     * LogReader container element.
-     *
-     * @property _elContainer
-     * @type HTMLElement
-     * @private
-     */
-    _elContainer : null,
-
-    /**
-     * LogReader header element.
-     *
-     * @property _elHd
-     * @type HTMLElement
-     * @private
-     */
-    _elHd : null,
-
-    /**
-     * LogReader collapse element.
-     *
-     * @property _elCollapse
-     * @type HTMLElement
-     * @private
-     */
-    _elCollapse : null,
-
-    /**
-     * LogReader collapse button element.
-     *
-     * @property _btnCollapse
-     * @type HTMLElement
-     * @private
-     */
-    _btnCollapse : null,
-
-    /**
-     * LogReader title header element.
-     *
-     * @property _title
-     * @type HTMLElement
-     * @private
-     */
-    _title : null,
-
-    /**
-     * LogReader console element.
-     *
-     * @property _elConsole
-     * @type HTMLElement
-     * @private
-     */
-    _elConsole : null,
-
-    /**
-     * LogReader footer element.
-     *
-     * @property _elFt
-     * @type HTMLElement
-     * @private
-     */
-    _elFt : null,
-
-    /**
-     * LogReader buttons container element.
-     *
-     * @property _elBtns
-     * @type HTMLElement
-     * @private
-     */
-    _elBtns : null,
-
-    /**
-     * Container element for LogReader category filter checkboxes.
-     *
-     * @property _elCategoryFilters
-     * @type HTMLElement
-     * @private
-     */
-    _elCategoryFilters : null,
-
-    /**
-     * Container element for LogReader source filter checkboxes.
-     *
-     * @property _elSourceFilters
-     * @type HTMLElement
-     * @private
-     */
-    _elSourceFilters : null,
-
-    /**
-     * LogReader pause button element.
-     *
-     * @property _btnPause
-     * @type HTMLElement
-     * @private
-     */
-    _btnPause : null,
-
-    /**
-     * Clear button element.
-     *
-     * @property _btnClear
-     * @type HTMLElement
-     * @private
-     */
-    _btnClear : null,
-
-    /////////////////////////////////////////////////////////////////////////////
-    //
-    // Private methods
-    //
-    /////////////////////////////////////////////////////////////////////////////
-
-    /**
-     * Initializes the instance's message buffer, start time, etc
-     *
-     * @method _init
-     * @param container {String|HTMLElement} (optional) the render target
-     * @param config {Object} (optional) instance configuration
-     * @protected
-     */
-    _init : function (container, config) {
-        // Internal vars
-        this._buffer = []; // output buffer
-        this._filterCheckboxes = {}; // pointers to checkboxes
-        this._lastTime = Logger.getStartTime(); // timestamp of last log message to console
-
-        // Parse config vars here
-        if (config && (config.constructor == Object)) {
-            for(var param in config) {
-                if (config.hasOwnProperty(param)) {
-                    this[param] = config[param];
-                }
-            }
-        }
-
-        this._elContainer = Dom.get(container);
-
-        YAHOO.log("LogReader initialized", null, this.toString());
-    },
-
-    /**
-     * Initializes the primary container element.
-     *
-     * @method _initContainerEl
-     * @private
-     */
-    _initContainerEl : function() {
-
-        // Default the container if unset or not a div
-        if(!this._elContainer || !/div$/i.test(this._elContainer.tagName)) {
-            this._elContainer = d.body.insertBefore(make("div"),d.body.firstChild);
-            // Only position absolutely if an in-DOM element is not supplied
-            Dom.addClass(this._elContainer,"yui-log-container");
-        }
-
-        Dom.addClass(this._elContainer,"yui-log");
-
-        // If implementer has provided container values, trust and set those
-        var style = this._elContainer.style,
-            styleProps = ['width','right','top','fontSize'],
-            prop,i;
-
-        for (i = styleProps.length - 1; i >= 0; --i) {
-            prop = styleProps[i];
-            if (this[prop]){ 
-                style[prop] = this[prop];
-            }
-        }
-
-        if(this.left) {
-            style.left  = this.left;
-            style.right = "auto";
-        }
-        if(this.bottom) {
-            style.bottom = this.bottom;
-            style.top    = "auto";
-        }
-
-        // Opera needs a little prodding to reflow sometimes
-        if (YAHOO.env.ua.opera) {
-            d.body.style += '';
-        }
-
-    },
-
-    /**
-     * Initializes the header element.
-     *
-     * @method _initHeaderEl
-     * @private
-     */
-    _initHeaderEl : function() {
-        // Destroy header if present
-        if(this._elHd) {
-            // Unhook DOM events
-            Event.purgeElement(this._elHd, true);
-
-            // Remove DOM elements
-            this._elHd.innerHTML = "";
-        }
-        
-        // Create header
-        // TODO: refactor this into an innerHTML
-        this._elHd = make("div",{
-            id: 'yui-log-hd' + this._sName,
-            className: "yui-log-hd"
-        });
-
-        this._elCollapse = make("div",{ className: 'yui-log-btns' });
-
-        this._btnCollapse = make("input",{
-            type: 'button',
-            className: 'yui-log-button',
-            value: 'Collapse'
-        });
-        Event.on(this._btnCollapse,'click',this._onClickCollapseBtn,this);
-
-
-        this._title = make("h4",{ innerHTML : "Logger Console" });
-
-        this._elCollapse.appendChild(this._btnCollapse);
-        this._elHd.appendChild(this._elCollapse);
-        this._elHd.appendChild(this._title);
-        this._elContainer.appendChild(this._elHd);
-    },
-
-    /**
-     * Initializes the console element.
-     *
-     * @method _initConsoleEl
-     * @private
-     */
-    _initConsoleEl : function() {
-        // Destroy console
-        if(this._elConsole) {
-            // Unhook DOM events
-            Event.purgeElement(this._elConsole, true);
-
-            // Remove DOM elements
-            this._elConsole.innerHTML = "";
-        }
-
-        // Ceate console
-        this._elConsole = make("div", { className: "yui-log-bd" });
-
-        // If implementer has provided console, trust and set those
-        if(this.height) {
-            this._elConsole.style.height = this.height;
-        }
-
-        this._elContainer.appendChild(this._elConsole);
-    },
-
-    /**
-     * Initializes the footer element.
-     *
-     * @method _initFooterEl
-     * @private
-     */
-    _initFooterEl : function() {
-        // Don't create footer elements if footer is disabled
-        if(this.footerEnabled) {
-            // Destroy console
-            if(this._elFt) {
-                // Unhook DOM events
-                Event.purgeElement(this._elFt, true);
-
-                // Remove DOM elements
-                this._elFt.innerHTML = "";
-            }
-
-            // TODO: use innerHTML
-            this._elFt = make("div",{ className: "yui-log-ft" });
-            this._elBtns = make("div", { className: "yui-log-btns" });
-            this._btnPause = make("input", {
-                type: "button",
-                className: "yui-log-button",
-                value: "Pause"
-            });
-
-            Event.on(this._btnPause,'click',this._onClickPauseBtn,this);
-
-            this._btnClear = make("input", {
-                type: "button",
-                className: "yui-log-button",
-                value: "Clear"
-            });
-
-            Event.on(this._btnClear,'click',this._onClickClearBtn,this);
-
-            this._elCategoryFilters = make("div", { className: "yui-log-categoryfilters" });
-            this._elSourceFilters = make("div", { className: "yui-log-sourcefilters" });
-
-            this._elBtns.appendChild(this._btnPause);
-            this._elBtns.appendChild(this._btnClear);
-            this._elFt.appendChild(this._elBtns);
-            this._elFt.appendChild(this._elCategoryFilters);
-            this._elFt.appendChild(this._elSourceFilters);
-            this._elContainer.appendChild(this._elFt);
-        }
-    },
-
-    /**
-     * Initializes Drag and Drop on the header element.
-     *
-     * @method _initDragDrop
-     * @private
-     */
-    _initDragDrop : function() {
-        // If Drag and Drop utility is available...
-        // ...and draggable is true...
-        // ...then make the header draggable
-        if(u.DD && this.draggable && this._elHd) {
-            var ylog_dd = new u.DD(this._elContainer);
-            ylog_dd.setHandleElId(this._elHd.id);
-            //TODO: use class name
-            this._elHd.style.cursor = "move";
-        }
-    },
-
-    /**
-     * Initializes category filters.
-     *
-     * @method _initCategories
-     * @private
-     */
-    _initCategories : function() {
-        // Initialize category filters
-        this._categoryFilters = [];
-        var aInitialCategories = Logger.categories;
-
-        for(var j=0; j < aInitialCategories.length; j++) {
-            var sCategory = aInitialCategories[j];
-
-            // Add category to the internal array of filters
-            this._categoryFilters.push(sCategory);
-
-            // Add checkbox element if UI is enabled
-            if(this._elCategoryFilters) {
-                this._createCategoryCheckbox(sCategory);
-            }
-        }
-    },
-
-    /**
-     * Initializes source filters.
-     *
-     * @method _initSources
-     * @private
-     */
-    _initSources : function() {
-        // Initialize source filters
-        this._sourceFilters = [];
-        var aInitialSources = Logger.sources;
-
-        for(var j=0; j < aInitialSources.length; j++) {
-            var sSource = aInitialSources[j];
-
-            // Add source to the internal array of filters
-            this._sourceFilters.push(sSource);
-
-            // Add checkbox element if UI is enabled
-            if(this._elSourceFilters) {
-                this._createSourceCheckbox(sSource);
-            }
-        }
-    },
-
-    /**
-     * Creates the UI for a category filter in the LogReader footer element.
-     *
-     * @method _createCategoryCheckbox
-     * @param sCategory {String} Category name.
-     * @private
-     */
-    _createCategoryCheckbox : function(sCategory) {
-        if(this._elFt) {
-            var filter = make("span",{ className: "yui-log-filtergrp" }),
-                check  = make("input", {
-                    id: "yui-log-filter-" + sCategory + this._sName,
-                    className: "yui-log-filter-" + sCategory,
-                    type: "checkbox",
-                    category: sCategory
-                }),
-                label  = make("label", {
-                    htmlFor: check.id,
-                    className: sCategory,
-                    innerHTML: sCategory
-                });
-            
-
-            // Subscribe to the click event
-            Event.on(check,'click',this._onCheckCategory,this);
-
-            this._filterCheckboxes[sCategory] = check;
-
-            // Append el at the end so IE 5.5 can set "type" attribute
-            // and THEN set checked property
-            filter.appendChild(check);
-            filter.appendChild(label);
-            this._elCategoryFilters.appendChild(filter);
-            check.checked = true;
-        }
-    },
-
-    /**
-     * Creates a checkbox in the LogReader footer element to filter by source.
-     *
-     * @method _createSourceCheckbox
-     * @param sSource {String} Source name.
-     * @private
-     */
-    _createSourceCheckbox : function(sSource) {
-        if(this._elFt) {
-            var filter = make("span",{ className: "yui-log-filtergrp" }),
-                check  = make("input", {
-                    id: "yui-log-filter-" + sSource + this._sName,
-                    className: "yui-log-filter-" + sSource,
-                    type: "checkbox",
-                    source: sSource
-                }),
-                label  = make("label", {
-                    htmlFor: check.id,
-                    className: sSource,
-                    innerHTML: sSource
-                });
-            
-
-            // Subscribe to the click event
-            Event.on(check,'click',this._onCheckSource,this);
-
-            this._filterCheckboxes[sSource] = check;
-
-            // Append el at the end so IE 5.5 can set "type" attribute
-            // and THEN set checked property
-            filter.appendChild(check);
-            filter.appendChild(label);
-            this._elSourceFilters.appendChild(filter);
-            check.checked = true;
-        }
-    },
-
-    /**
-     * Reprints all log messages in the stack through filters.
-     *
-     * @method _filterLogs
-     * @private
-     */
-    _filterLogs : function() {
-        // Reprint stack with new filters
-        if (this._elConsole !== null) {
-            this.clearConsole();
-            this._printToConsole(Logger.getStack());
-        }
-    },
-
-    /**
-     * Sends buffer of log messages to output and clears buffer.
-     *
-     * @method _printBuffer
-     * @private
-     */
-    _printBuffer : function() {
-        this._timeout = null;
-
-        if(this._elConsole !== null) {
-            var thresholdMax = this.thresholdMax;
-            thresholdMax = (thresholdMax && !isNaN(thresholdMax)) ? thresholdMax : 500;
-            if(this._consoleMsgCount < thresholdMax) {
-                var entries = [];
-                for (var i=0; i<this._buffer.length; i++) {
-                    entries[i] = this._buffer[i];
-                }
-                this._buffer = [];
-                this._printToConsole(entries);
-            }
-            else {
-                this._filterLogs();
-            }
-            
-            if(!this.newestOnTop) {
-                this._elConsole.scrollTop = this._elConsole.scrollHeight;
-            }
-        }
-    },
-
-    /**
-     * Cycles through an array of log messages, and outputs each one to the console
-     * if its category has not been filtered out.
-     *
-     * @method _printToConsole
-     * @param aEntries {Object[]} Array of LogMsg objects to output to console.
-     * @private
-     */
-    _printToConsole : function(aEntries) {
-        // Manage the number of messages displayed in the console
-        var entriesLen         = aEntries.length,
-            df                 = d.createDocumentFragment(),
-            msgHTML            = [],
-            thresholdMin       = this.thresholdMin,
-            sourceFiltersLen   = this._sourceFilters.length,
-            categoryFiltersLen = this._categoryFilters.length,
-            entriesStartIndex,
-            i, j, msg, before;
-
-        if(isNaN(thresholdMin) || (thresholdMin > this.thresholdMax)) {
-            thresholdMin = 0;
-        }
-        entriesStartIndex = (entriesLen > thresholdMin) ? (entriesLen - thresholdMin) : 0;
-        
-        // Iterate through all log entries 
-        for(i=entriesStartIndex; i<entriesLen; i++) {
-            // Print only the ones that filter through
-            var okToPrint = false,
-                okToFilterCats = false,
-                entry = aEntries[i],
-                source = entry.source,
-                category = entry.category;
-
-            for(j=0; j<sourceFiltersLen; j++) {
-                if(source == this._sourceFilters[j]) {
-                    okToFilterCats = true;
-                    break;
-                }
-            }
-            if(okToFilterCats) {
-                for(j=0; j<categoryFiltersLen; j++) {
-                    if(category == this._categoryFilters[j]) {
-                        okToPrint = true;
-                        break;
-                    }
-                }
-            }
-            if(okToPrint) {
-                // Start from 0ms elapsed time
-                if (this._consoleMsgCount === 0) {
-                    this._lastTime = entry.time.getTime();
-                }
-
-                msg = this.formatMsg(entry);
-                if (typeof msg === 'string') {
-                    msgHTML[msgHTML.length] = msg;
-                } else {
-                    df.insertBefore(msg, this.newestOnTop ?
-                        df.firstChild || null : null);
-                }
-                this._consoleMsgCount++;
-                this._lastTime = entry.time.getTime();
-            }
-        }
-
-        if (msgHTML.length) {
-            msgHTML.splice(0,0,this._elConsole.innerHTML);
-            this._elConsole.innerHTML = this.newestOnTop ?
-                                            msgHTML.reverse().join('') :
-                                            msgHTML.join('');
-        } else if (df.firstChild) {
-            this._elConsole.insertBefore(df, this.newestOnTop ?
-                        this._elConsole.firstChild || null : null);
-        }
-    },
-
-/////////////////////////////////////////////////////////////////////////////
-//
-// Private event handlers
-//
-/////////////////////////////////////////////////////////////////////////////
-
-    /**
-     * Handles Logger's categoryCreateEvent.
-     *
-     * @method _onCategoryCreate
-     * @param sType {String} The event.
-     * @param aArgs {Object[]} Data passed from event firer.
-     * @param oSelf {Object} The LogReader instance.
-     * @private
-     */
-    _onCategoryCreate : function(sType, aArgs, oSelf) {
-        var category = aArgs[0];
-        
-        // Add category to the internal array of filters
-        oSelf._categoryFilters.push(category);
-
-        if(oSelf._elFt) {
-            oSelf._createCategoryCheckbox(category);
-        }
-    },
-
-    /**
-     * Handles Logger's sourceCreateEvent.
-     *
-     * @method _onSourceCreate
-     * @param sType {String} The event.
-     * @param aArgs {Object[]} Data passed from event firer.
-     * @param oSelf {Object} The LogReader instance.
-     * @private
-     */
-    _onSourceCreate : function(sType, aArgs, oSelf) {
-        var source = aArgs[0];
-        
-        // Add source to the internal array of filters
-        oSelf._sourceFilters.push(source);
-
-        if(oSelf._elFt) {
-            oSelf._createSourceCheckbox(source);
-        }
-    },
-
-    /**
-     * Handles check events on the category filter checkboxes.
-     *
-     * @method _onCheckCategory
-     * @param v {HTMLEvent} The click event.
-     * @param oSelf {Object} The LogReader instance.
-     * @private
-     */
-    _onCheckCategory : function(v, oSelf) {
-        var category = this.category;
-        if(!this.checked) {
-            oSelf.hideCategory(category);
-        }
-        else {
-            oSelf.showCategory(category);
-        }
-    },
-
-    /**
-     * Handles check events on the category filter checkboxes.
-     *
-     * @method _onCheckSource
-     * @param v {HTMLEvent} The click event.
-     * @param oSelf {Object} The LogReader instance.
-     * @private
-     */
-    _onCheckSource : function(v, oSelf) {
-        var source = this.source;
-        if(!this.checked) {
-            oSelf.hideSource(source);
-        }
-        else {
-            oSelf.showSource(source);
-        }
-    },
-
-    /**
-     * Handles click events on the collapse button.
-     *
-     * @method _onClickCollapseBtn
-     * @param v {HTMLEvent} The click event.
-     * @param oSelf {Object} The LogReader instance
-     * @private
-     */
-    _onClickCollapseBtn : function(v, oSelf) {
-        if(!oSelf.isCollapsed) {
-            oSelf.collapse();
-        }
-        else {
-            oSelf.expand();
-        }
-    },
-
-    /**
-     * Handles click events on the pause button.
-     *
-     * @method _onClickPauseBtn
-     * @param v {HTMLEvent} The click event.
-     * @param oSelf {Object} The LogReader instance.
-     * @private
-     */
-    _onClickPauseBtn : function(v, oSelf) {
-        if(!oSelf.isPaused) {
-            oSelf.pause();
-        }
-        else {
-            oSelf.resume();
-        }
-    },
-
-    /**
-     * Handles click events on the clear button.
-     *
-     * @method _onClickClearBtn
-     * @param v {HTMLEvent} The click event.
-     * @param oSelf {Object} The LogReader instance.
-     * @private
-     */
-    _onClickClearBtn : function(v, oSelf) {
-        oSelf.clearConsole();
-    },
-
-    /**
-     * Handles Logger's newLogEvent.
-     *
-     * @method _onNewLog
-     * @param sType {String} The event.
-     * @param aArgs {Object[]} Data passed from event firer.
-     * @param oSelf {Object} The LogReader instance.
-     * @private
-     */
-    _onNewLog : function(sType, aArgs, oSelf) {
-        var logEntry = aArgs[0];
-        oSelf._buffer.push(logEntry);
-
-        if (oSelf.logReaderEnabled === true && oSelf._timeout === null) {
-            oSelf._timeout = setTimeout(function(){oSelf._printBuffer();}, oSelf.outputBuffer);
-        }
-    },
-
-    /**
-     * Handles Logger's resetEvent.
-     *
-     * @method _onReset
-     * @param sType {String} The event.
-     * @param aArgs {Object[]} Data passed from event firer.
-     * @param oSelf {Object} The LogReader instance.
-     * @private
-     */
-    _onReset : function(sType, aArgs, oSelf) {
-        oSelf._filterLogs();
-    }
-};
-
-YAHOO.widget.LogReader = LogReader;
-
-})();
-YAHOO.register("logger", YAHOO.widget.Logger, {version: "2.8.0r4", build: "2449"});
diff --git a/koha-tmpl/intranet-tmpl/prog/en/lib/yui/paginator/assets/paginator-core.css b/koha-tmpl/intranet-tmpl/prog/en/lib/yui/paginator/assets/paginator-core.css
deleted file mode 100644 (file)
index 62d05f6..0000000
+++ /dev/null
@@ -1,6 +0,0 @@
-/*
-Copyright (c) 2009, Yahoo! Inc. All rights reserved.
-Code licensed under the BSD License:
-http://developer.yahoo.net/yui/license.txt
-version: 2.8.0r4
-*/
diff --git a/koha-tmpl/intranet-tmpl/prog/en/lib/yui/paginator/assets/skins/sam/paginator-skin.css b/koha-tmpl/intranet-tmpl/prog/en/lib/yui/paginator/assets/skins/sam/paginator-skin.css
deleted file mode 100644 (file)
index 34baf52..0000000
+++ /dev/null
@@ -1,78 +0,0 @@
-/*
-Copyright (c) 2009, Yahoo! Inc. All rights reserved.
-Code licensed under the BSD License:
-http://developer.yahoo.net/yui/license.txt
-version: 2.8.0r4
-*/
-.yui-skin-sam .yui-pg-container {
-    display: block;
-    margin: 6px 0;
-    white-space: nowrap;
-}
-.yui-skin-sam .yui-pg-first,
-.yui-skin-sam .yui-pg-previous,
-.yui-skin-sam .yui-pg-next,
-.yui-skin-sam .yui-pg-last,
-.yui-skin-sam .yui-pg-current,
-.yui-skin-sam .yui-pg-pages,
-.yui-skin-sam .yui-pg-page {
-    display: inline-block;
-    font-family: arial,helvetica,clean,sans-serif;
-    padding: 3px 6px;
-    zoom:1;
-}
-.yui-skin-sam .yui-pg-pages {
-    padding: 0;
-}
-.yui-skin-sam .yui-pg-current {
-    padding: 3px 0;
-}
-.yui-skin-sam a.yui-pg-first:link,      .yui-skin-sam a.yui-pg-first:visited,
-.yui-skin-sam a.yui-pg-first:active,    .yui-skin-sam a.yui-pg-first:hover,
-.yui-skin-sam a.yui-pg-previous:link,   .yui-skin-sam a.yui-pg-previous:visited,
-.yui-skin-sam a.yui-pg-previous:active, .yui-skin-sam a.yui-pg-previous:hover,
-.yui-skin-sam a.yui-pg-next:link,       .yui-skin-sam a.yui-pg-next:visited,
-.yui-skin-sam a.yui-pg-next:active,     .yui-skin-sam a.yui-pg-next:hover,
-.yui-skin-sam a.yui-pg-last:link,       .yui-skin-sam a.yui-pg-last:visited,
-.yui-skin-sam a.yui-pg-last:active,     .yui-skin-sam a.yui-pg-last:hover,
-.yui-skin-sam a.yui-pg-page:link,       .yui-skin-sam a.yui-pg-page:visited,
-.yui-skin-sam a.yui-pg-page:active,     .yui-skin-sam a.yui-pg-page:hover {
-    color: #06c;
-    text-decoration: underline;
-    outline: 0;
-}
-.yui-skin-sam span.yui-pg-first,
-.yui-skin-sam span.yui-pg-previous,
-.yui-skin-sam span.yui-pg-next,
-.yui-skin-sam span.yui-pg-last {
-    color: #a6a6a6;
-}
-.yui-skin-sam .yui-pg-page {
-    background-color: #fff;
-    border: 1px solid #CBCBCB;
-    padding: 2px 6px;
-    text-decoration: none;
-}
-.yui-skin-sam .yui-pg-current-page {
-    background-color: transparent;
-    border: none;
-    font-weight: bold;
-    padding: 3px 6px;
-}
-.yui-skin-sam .yui-pg-page {
-    margin-left: 1px;
-    margin-right: 1px;
-}
-.yui-skin-sam .yui-pg-first,
-.yui-skin-sam .yui-pg-previous {
-    padding-left: 0;
-}
-.yui-skin-sam .yui-pg-next,
-.yui-skin-sam .yui-pg-last {
-    padding-right: 0;
-}
-.yui-skin-sam .yui-pg-current,
-.yui-skin-sam .yui-pg-rpp-options {
-    margin-left: 1em;
-    margin-right: 1em;
-}
diff --git a/koha-tmpl/intranet-tmpl/prog/en/lib/yui/paginator/assets/skins/sam/paginator.css b/koha-tmpl/intranet-tmpl/prog/en/lib/yui/paginator/assets/skins/sam/paginator.css
deleted file mode 100644 (file)
index 31f0d33..0000000
+++ /dev/null
@@ -1,7 +0,0 @@
-/*
-Copyright (c) 2009, Yahoo! Inc. All rights reserved.
-Code licensed under the BSD License:
-http://developer.yahoo.net/yui/license.txt
-version: 2.8.0r4
-*/
-.yui-skin-sam .yui-pg-container{display:block;margin:6px 0;white-space:nowrap;}.yui-skin-sam .yui-pg-first,.yui-skin-sam .yui-pg-previous,.yui-skin-sam .yui-pg-next,.yui-skin-sam .yui-pg-last,.yui-skin-sam .yui-pg-current,.yui-skin-sam .yui-pg-pages,.yui-skin-sam .yui-pg-page{display:inline-block;font-family:arial,helvetica,clean,sans-serif;padding:3px 6px;zoom:1;}.yui-skin-sam .yui-pg-pages{padding:0;}.yui-skin-sam .yui-pg-current{padding:3px 0;}.yui-skin-sam a.yui-pg-first:link,.yui-skin-sam a.yui-pg-first:visited,.yui-skin-sam a.yui-pg-first:active,.yui-skin-sam a.yui-pg-first:hover,.yui-skin-sam a.yui-pg-previous:link,.yui-skin-sam a.yui-pg-previous:visited,.yui-skin-sam a.yui-pg-previous:active,.yui-skin-sam a.yui-pg-previous:hover,.yui-skin-sam a.yui-pg-next:link,.yui-skin-sam a.yui-pg-next:visited,.yui-skin-sam a.yui-pg-next:active,.yui-skin-sam a.yui-pg-next:hover,.yui-skin-sam a.yui-pg-last:link,.yui-skin-sam a.yui-pg-last:visited,.yui-skin-sam a.yui-pg-last:active,.yui-skin-sam a.yui-pg-last:hover,.yui-skin-sam a.yui-pg-page:link,.yui-skin-sam a.yui-pg-page:visited,.yui-skin-sam a.yui-pg-page:active,.yui-skin-sam a.yui-pg-page:hover{color:#06c;text-decoration:underline;outline:0;}.yui-skin-sam span.yui-pg-first,.yui-skin-sam span.yui-pg-previous,.yui-skin-sam span.yui-pg-next,.yui-skin-sam span.yui-pg-last{color:#a6a6a6;}.yui-skin-sam .yui-pg-page{background-color:#fff;border:1px solid #CBCBCB;padding:2px 6px;text-decoration:none;}.yui-skin-sam .yui-pg-current-page{background-color:transparent;border:none;font-weight:bold;padding:3px 6px;}.yui-skin-sam .yui-pg-page{margin-left:1px;margin-right:1px;}.yui-skin-sam .yui-pg-first,.yui-skin-sam .yui-pg-previous{padding-left:0;}.yui-skin-sam .yui-pg-next,.yui-skin-sam .yui-pg-last{padding-right:0;}.yui-skin-sam .yui-pg-current,.yui-skin-sam .yui-pg-rpp-options{margin-left:1em;margin-right:1em;}
diff --git a/koha-tmpl/intranet-tmpl/prog/en/lib/yui/paginator/paginator-debug.js b/koha-tmpl/intranet-tmpl/prog/en/lib/yui/paginator/paginator-debug.js
deleted file mode 100644 (file)
index faf8ad0..0000000
+++ /dev/null
@@ -1,2393 +0,0 @@
-/*
-Copyright (c) 2009, Yahoo! Inc. All rights reserved.
-Code licensed under the BSD License:
-http://developer.yahoo.net/yui/license.txt
-version: 2.8.0r4
-*/
-(function () {
-/**
- * The Paginator widget provides a set of controls to navigate through paged
- * data.
- *
- * @module paginator
- * @uses YAHOO.util.EventProvider
- * @uses YAHOO.util.AttributeProvider
- */
-
-var Dom        = YAHOO.util.Dom,
-    lang       = YAHOO.lang,
-    isObject   = lang.isObject,
-    isFunction = lang.isFunction,
-    isArray    = lang.isArray,
-    isString   = lang.isString;
-
-/**
- * Instantiate a Paginator, passing a configuration object to the contructor.
- * The configuration object should contain the following properties:
- * <ul>
- *   <li>rowsPerPage : <em>n</em> (int)</li>
- *   <li>totalRecords : <em>n</em> (int or Paginator.VALUE_UNLIMITED)</li>
- *   <li>containers : <em>id | el | arr</em> (HTMLElement reference, its id, or an array of either)</li>
- * </ul>
- *
- * @namespace YAHOO.widget
- * @class Paginator
- * @constructor
- * @param config {Object} Object literal to set instance and ui component
- * configuration.
- */
-function Paginator(config) {
-    var UNLIMITED = Paginator.VALUE_UNLIMITED,
-        attrib, initialPage, records, perPage, startIndex;
-
-    config = isObject(config) ? config : {};
-
-    this.initConfig();
-
-    this.initEvents();
-
-    // Set the basic config keys first
-    this.set('rowsPerPage',config.rowsPerPage,true);
-    if (Paginator.isNumeric(config.totalRecords)) {
-        this.set('totalRecords',config.totalRecords,true);
-    }
-    
-    this.initUIComponents();
-
-    // Update the other config values
-    for (attrib in config) {
-        if (config.hasOwnProperty(attrib)) {
-            this.set(attrib,config[attrib],true);
-        }
-    }
-
-    // Calculate the initial record offset
-    initialPage = this.get('initialPage');
-    records     = this.get('totalRecords');
-    perPage     = this.get('rowsPerPage');
-    if (initialPage > 1 && perPage !== UNLIMITED) {
-        startIndex = (initialPage - 1) * perPage;
-        if (records === UNLIMITED || startIndex < records) {
-            this.set('recordOffset',startIndex,true);
-        }
-    }
-}
-
-
-// Static members
-lang.augmentObject(Paginator, {
-    /**
-     * Incrementing index used to give instances unique ids.
-     * @static
-     * @property Paginator.id
-     * @type number
-     * @private
-     */
-    id : 0,
-
-    /**
-     * Base of id strings used for ui components.
-     * @static
-     * @property Paginator.ID_BASE
-     * @type string
-     * @private
-     */
-    ID_BASE : 'yui-pg',
-
-    /**
-     * Used to identify unset, optional configurations, or used explicitly in
-     * the case of totalRecords to indicate unlimited pagination.
-     * @static
-     * @property Paginator.VALUE_UNLIMITED
-     * @type number
-     * @final
-     */
-    VALUE_UNLIMITED : -1,
-
-    /**
-     * Default template used by Paginator instances.  Update this if you want
-     * all new Paginators to use a different default template.
-     * @static
-     * @property Paginator.TEMPLATE_DEFAULT
-     * @type string
-     */
-    TEMPLATE_DEFAULT : "{FirstPageLink} {PreviousPageLink} {PageLinks} {NextPageLink} {LastPageLink}",
-
-    /**
-     * Common alternate pagination format, including page links, links for
-     * previous, next, first and last pages as well as a rows-per-page
-     * dropdown.  Offered as a convenience.
-     * @static
-     * @property Paginator.TEMPLATE_ROWS_PER_PAGE
-     * @type string
-     */
-    TEMPLATE_ROWS_PER_PAGE : "{FirstPageLink} {PreviousPageLink} {PageLinks} {NextPageLink} {LastPageLink} {RowsPerPageDropdown}",
-
-    /**
-     * Storage object for UI Components
-     * @static
-     * @property Paginator.ui
-     */
-    ui : {},
-
-    /**
-     * Similar to YAHOO.lang.isNumber, but allows numeric strings.  This is
-     * is used for attribute validation in conjunction with getters that return
-     * numbers.
-     *
-     * @method Paginator.isNumeric
-     * @param v {Number|String} value to be checked for number or numeric string
-     * @returns {Boolean} true if the input is coercable into a finite number
-     * @static
-     */
-    isNumeric : function (v) {
-        return isFinite(+v);
-    },
-
-    /**
-     * Return a number or null from input
-     *
-     * @method Paginator.toNumber
-     * @param n {Number|String} a number or numeric string
-     * @return Number
-     * @static
-     */
-    toNumber : function (n) {
-        return isFinite(+n) ? +n : null;
-    }
-
-},true);
-
-
-// Instance members and methods
-Paginator.prototype = {
-
-    // Instance members
-
-    /**
-     * Array of nodes in which to render pagination controls.  This is set via
-     * the &quot;containers&quot; attribute.
-     * @property _containers
-     * @type Array(HTMLElement)
-     * @private
-     */
-    _containers : [],
-
-    /**
-     * Flag used to indicate multiple attributes are being updated via setState
-     * @property _batch
-     * @type boolean
-     * @protected
-     */
-    _batch : false,
-
-    /**
-     * Used by setState to indicate when a page change has occurred
-     * @property _pageChanged
-     * @type boolean
-     * @protected
-     */
-    _pageChanged : false,
-
-    /**
-     * Temporary state cache used by setState to keep track of the previous
-     * state for eventual pageChange event firing
-     * @property _state
-     * @type Object
-     * @protected
-     */
-    _state : null,
-
-
-    // Instance methods
-
-    /**
-     * Initialize the Paginator's attributes (see YAHOO.util.Element class
-     * AttributeProvider).
-     * @method initConfig
-     * @private
-     */
-    initConfig : function () {
-
-        var UNLIMITED = Paginator.VALUE_UNLIMITED;
-
-        /**
-         * REQUIRED. Number of records constituting a &quot;page&quot;
-         * @attribute rowsPerPage
-         * @type integer
-         */
-        this.setAttributeConfig('rowsPerPage', {
-            value     : 0,
-            validator : Paginator.isNumeric,
-            setter    : Paginator.toNumber
-        });
-
-        /**
-         * REQUIRED. Node references or ids of nodes in which to render the
-         * pagination controls.
-         * @attribute containers
-         * @type {string|HTMLElement|Array(string|HTMLElement)}
-         */
-        this.setAttributeConfig('containers', {
-            value     : null,
-            validator : function (val) {
-                if (!isArray(val)) {
-                    val = [val];
-                }
-                for (var i = 0, len = val.length; i < len; ++i) {
-                    if (isString(val[i]) || 
-                        (isObject(val[i]) && val[i].nodeType === 1)) {
-                        continue;
-                    }
-                    return false;
-                }
-                return true;
-            },
-            method : function (val) {
-                val = Dom.get(val);
-                if (!isArray(val)) {
-                    val = [val];
-                }
-                this._containers = val;
-            }
-        });
-
-        /**
-         * Total number of records to paginate through
-         * @attribute totalRecords
-         * @type integer
-         * @default 0
-         */
-        this.setAttributeConfig('totalRecords', {
-            value     : 0,
-            validator : Paginator.isNumeric,
-            setter    : Paginator.toNumber
-        });
-
-        /**
-         * Zero based index of the record considered first on the current page.
-         * For page based interactions, don't modify this attribute directly;
-         * use setPage(n).
-         * @attribute recordOffset
-         * @type integer
-         * @default 0
-         */
-        this.setAttributeConfig('recordOffset', {
-            value     : 0,
-            validator : function (val) {
-                var total = this.get('totalRecords');
-                if (Paginator.isNumeric(val)) {
-                    val = +val;
-                    return total === UNLIMITED || total > val ||
-                           (total === 0 && val === 0);
-                }
-
-                return false;
-            },
-            setter    : Paginator.toNumber
-        });
-
-        /**
-         * Page to display on initial paint
-         * @attribute initialPage
-         * @type integer
-         * @default 1
-         */
-        this.setAttributeConfig('initialPage', {
-            value     : 1,
-            validator : Paginator.isNumeric,
-            setter    : Paginator.toNumber
-        });
-
-        /**
-         * Template used to render controls.  The string will be used as
-         * innerHTML on all specified container nodes.  Bracketed keys
-         * (e.g. {pageLinks}) in the string will be replaced with an instance
-         * of the so named ui component.
-         * @see Paginator.TEMPLATE_DEFAULT
-         * @see Paginator.TEMPLATE_ROWS_PER_PAGE
-         * @attribute template
-         * @type string
-         */
-        this.setAttributeConfig('template', {
-            value : Paginator.TEMPLATE_DEFAULT,
-            validator : isString
-        });
-
-        /**
-         * Class assigned to the element(s) containing pagination controls.
-         * @attribute containerClass
-         * @type string
-         * @default 'yui-pg-container'
-         */
-        this.setAttributeConfig('containerClass', {
-            value : 'yui-pg-container',
-            validator : isString
-        });
-
-        /**
-         * Display pagination controls even when there is only one page.  Set
-         * to false to forgo rendering and/or hide the containers when there
-         * is only one page of data.  Note if you are using the rowsPerPage
-         * dropdown ui component, visibility will be maintained as long as the
-         * number of records exceeds the smallest page size.
-         * @attribute alwaysVisible
-         * @type boolean
-         * @default true
-         */
-        this.setAttributeConfig('alwaysVisible', {
-            value : true,
-            validator : lang.isBoolean
-        });
-
-        /**
-         * Update the UI immediately upon interaction.  If false, changeRequest
-         * subscribers or other external code will need to explicitly set the
-         * new values in the paginator to trigger repaint.
-         * @attribute updateOnChange
-         * @type boolean
-         * @default false
-         * @deprecated use changeRequest listener that calls setState
-         */
-        this.setAttributeConfig('updateOnChange', {
-            value     : false,
-            validator : lang.isBoolean
-        });
-
-
-
-        // Read only attributes
-
-        /**
-         * Unique id assigned to this instance
-         * @attribute id
-         * @type integer
-         * @final
-         */
-        this.setAttributeConfig('id', {
-            value    : Paginator.id++,
-            readOnly : true
-        });
-
-        /**
-         * Indicator of whether the DOM nodes have been initially created
-         * @attribute rendered
-         * @type boolean
-         * @final
-         */
-        this.setAttributeConfig('rendered', {
-            value    : false,
-            readOnly : true
-        });
-
-    },
-
-    /**
-     * Initialize registered ui components onto this instance.
-     * @method initUIComponents
-     * @private
-     */
-    initUIComponents : function () {
-        var ui = Paginator.ui,
-            name,UIComp;
-        for (name in ui) {
-            if (ui.hasOwnProperty(name)) {
-                UIComp = ui[name];
-                if (isObject(UIComp) && isFunction(UIComp.init)) {
-                    UIComp.init(this);
-                }
-            }
-        }
-    },
-
-    /**
-     * Initialize this instance's CustomEvents.
-     * @method initEvents
-     * @private
-     */
-    initEvents : function () {
-        /**
-         * Event fired when the Paginator is initially rendered
-         * @event render
-         */
-        this.createEvent('render');
-
-        /**
-         * Event fired when the Paginator is initially rendered
-         * @event rendered
-         * @deprecated use render event
-         */
-        this.createEvent('rendered'); // backward compatibility
-
-        /**
-         * Event fired when a change in pagination values is requested,
-         * either by interacting with the various ui components or via the
-         * setStartIndex(n) etc APIs.
-         * Subscribers will receive the proposed state as the first parameter.
-         * The proposed state object will contain the following keys:
-         * <ul>
-         *   <li>paginator - the Paginator instance</li>
-         *   <li>page</li>
-         *   <li>totalRecords</li>
-         *   <li>recordOffset - index of the first record on the new page</li>
-         *   <li>rowsPerPage</li>
-         *   <li>records - array containing [start index, end index] for the records on the new page</li>
-         *   <li>before - object literal with all these keys for the current state</li>
-         * </ul>
-         * @event changeRequest
-         */
-        this.createEvent('changeRequest');
-
-        /**
-         * Event fired when attribute changes have resulted in the calculated
-         * current page changing.
-         * @event pageChange
-         */
-        this.createEvent('pageChange');
-
-        /**
-         * Event that fires before the destroy event.
-         * @event beforeDestroy
-         */
-        this.createEvent('beforeDestroy');
-
-        /**
-         * Event used to trigger cleanup of ui components
-         * @event destroy
-         */
-        this.createEvent('destroy');
-
-        this._selfSubscribe();
-    },
-
-    /**
-     * Subscribes to instance attribute change events to automate certain
-     * behaviors.
-     * @method _selfSubscribe
-     * @protected
-     */
-    _selfSubscribe : function () {
-        // Listen for changes to totalRecords and alwaysVisible 
-        this.subscribe('totalRecordsChange',this.updateVisibility,this,true);
-        this.subscribe('alwaysVisibleChange',this.updateVisibility,this,true);
-
-        // Fire the pageChange event when appropriate
-        this.subscribe('totalRecordsChange',this._handleStateChange,this,true);
-        this.subscribe('recordOffsetChange',this._handleStateChange,this,true);
-        this.subscribe('rowsPerPageChange',this._handleStateChange,this,true);
-
-        // Update recordOffset when totalRecords is reduced below
-        this.subscribe('totalRecordsChange',this._syncRecordOffset,this,true);
-    },
-
-    /**
-     * Sets recordOffset to the starting index of the previous page when
-     * totalRecords is reduced below the current recordOffset.
-     * @method _syncRecordOffset
-     * @param e {Event} totalRecordsChange event
-     * @protected
-     */
-    _syncRecordOffset : function (e) {
-        var v = e.newValue,rpp,state;
-        if (e.prevValue !== v) {
-            if (v !== Paginator.VALUE_UNLIMITED) {
-                rpp = this.get('rowsPerPage');
-
-                if (rpp && this.get('recordOffset') >= v) {
-                    state = this.getState({
-                        totalRecords : e.prevValue,
-                        recordOffset : this.get('recordOffset')
-                    });
-
-                    this.set('recordOffset', state.before.recordOffset);
-                    this._firePageChange(state);
-                }
-            }
-        }
-    },
-
-    /**
-     * Fires the pageChange event when the state attributes have changed in
-     * such a way as to locate the current recordOffset on a new page.
-     * @method _handleStateChange
-     * @param e {Event} the attribute change event
-     * @protected
-     */
-    _handleStateChange : function (e) {
-        if (e.prevValue !== e.newValue) {
-            var change = this._state || {},
-                state;
-
-            change[e.type.replace(/Change$/,'')] = e.prevValue;
-            state = this.getState(change);
-
-            if (state.page !== state.before.page) {
-                if (this._batch) {
-                    this._pageChanged = true;
-                } else {
-                    this._firePageChange(state);
-                }
-            }
-        }
-    },
-
-    /**
-     * Fires a pageChange event in the form of a standard attribute change
-     * event with additional properties prevState and newState.
-     * @method _firePageChange
-     * @param state {Object} the result of getState(oldState)
-     * @protected
-     */
-    _firePageChange : function (state) {
-        if (isObject(state)) {
-            var current = state.before;
-            delete state.before;
-            this.fireEvent('pageChange',{
-                type      : 'pageChange',
-                prevValue : state.page,
-                newValue  : current.page,
-                prevState : state,
-                newState  : current
-            });
-        }
-    },
-
-    /**
-     * Render the pagination controls per the format attribute into the
-     * specified container nodes.
-     * @method render
-     * @return the Paginator instance
-     * @chainable
-     */
-    render : function () {
-        if (this.get('rendered')) {
-            return this;
-        }
-
-        var template = this.get('template'),
-            state    = this.getState(),
-            // ex. yui-pg0-1 (first paginator, second container)
-            id_base  = Paginator.ID_BASE + this.get('id') + '-',
-            i, len;
-
-        // Assemble the containers, keeping them hidden
-        for (i = 0, len = this._containers.length; i < len; ++i) {
-            this._renderTemplate(this._containers[i],template,id_base+i,true);
-        }
-
-        // Show the containers if appropriate
-        this.updateVisibility();
-
-        // Set render attribute manually to support its readOnly contract
-        if (this._containers.length) {
-            this.setAttributeConfig('rendered', { value: true });
-
-            this.fireEvent('render', state);
-            // For backward compatibility
-            this.fireEvent('rendered', state);
-        }
-
-        return this;
-    },
-
-    /**
-     * Creates the individual ui components and renders them into a container.
-     *
-     * @method _renderTemplate
-     * @param container {HTMLElement} where to add the ui components
-     * @param template {String} the template to use as a guide for rendering
-     * @param id_base {String} id base for the container's ui components
-     * @param hide {Boolean} leave the container hidden after assembly
-     * @protected
-     */
-    _renderTemplate : function (container, template, id_base, hide) {
-        var containerClass = this.get('containerClass'),
-            markers, i, len;
-
-        if (!container) {
-            return;
-        }
-
-        // Hide the container while its contents are rendered
-        Dom.setStyle(container,'display','none');
-
-        Dom.addClass(container, containerClass);
-
-        // Place the template innerHTML, adding marker spans to the template
-        // html to indicate drop zones for ui components
-        container.innerHTML = template.replace(/\{([a-z0-9_ \-]+)\}/gi,
-            '<span class="yui-pg-ui yui-pg-ui-$1"></span>');
-
-        // Replace each marker with the ui component's render() output
-        markers = Dom.getElementsByClassName('yui-pg-ui','span',container);
-
-        for (i = 0, len = markers.length; i < len; ++i) {
-            this.renderUIComponent(markers[i], id_base);
-        }
-
-        if (!hide) {
-            // Show the container allowing page reflow
-            Dom.setStyle(container,'display','');
-        }
-    },
-
-    /**
-     * Replaces a marker node with a rendered UI component, determined by the
-     * yui-pg-ui-(UI component class name) in the marker's className. e.g.
-     * yui-pg-ui-PageLinks => new YAHOO.widget.Paginator.ui.PageLinks(this)
-     *
-     * @method renderUIComponent
-     * @param marker {HTMLElement} the marker node to replace
-     * @param id_base {String} string base the component's generated id
-     */
-    renderUIComponent : function (marker, id_base) {
-        var par    = marker.parentNode,
-            name   = /yui-pg-ui-(\w+)/.exec(marker.className),
-            UIComp = name && Paginator.ui[name[1]],
-            comp;
-
-        if (isFunction(UIComp)) {
-            comp = new UIComp(this);
-            if (isFunction(comp.render)) {
-                par.replaceChild(comp.render(id_base),marker);
-            }
-        }
-    },
-
-    /**
-     * Removes controls from the page and unhooks events.
-     * @method destroy
-     */
-    destroy : function () {
-        this.fireEvent('beforeDestroy');
-        this.fireEvent('destroy');
-
-        this.setAttributeConfig('rendered',{value:false});
-        this.unsubscribeAll();
-    },
-
-    /**
-     * Hides the containers if there is only one page of data and attribute
-     * alwaysVisible is false.  Conversely, it displays the containers if either
-     * there is more than one page worth of data or alwaysVisible is turned on.
-     * @method updateVisibility
-     */
-    updateVisibility : function (e) {
-        var alwaysVisible = this.get('alwaysVisible'),
-            totalRecords,visible,rpp,rppOptions,i,len;
-
-        if (!e || e.type === 'alwaysVisibleChange' || !alwaysVisible) {
-            totalRecords = this.get('totalRecords');
-            visible      = true;
-            rpp          = this.get('rowsPerPage');
-            rppOptions   = this.get('rowsPerPageOptions');
-
-            if (isArray(rppOptions)) {
-                for (i = 0, len = rppOptions.length; i < len; ++i) {
-                    rpp = Math.min(rpp,rppOptions[i]);
-                }
-            }
-
-            if (totalRecords !== Paginator.VALUE_UNLIMITED &&
-                totalRecords <= rpp) {
-                visible = false;
-            }
-
-            visible = visible || alwaysVisible;
-
-            for (i = 0, len = this._containers.length; i < len; ++i) {
-                Dom.setStyle(this._containers[i],'display',
-                    visible ? '' : 'none');
-            }
-        }
-    },
-
-
-
-
-    /**
-     * Get the configured container nodes
-     * @method getContainerNodes
-     * @return {Array} array of HTMLElement nodes
-     */
-    getContainerNodes : function () {
-        return this._containers;
-    },
-
-    /**
-     * Get the total number of pages in the data set according to the current
-     * rowsPerPage and totalRecords values.  If totalRecords is not set, or
-     * set to YAHOO.widget.Paginator.VALUE_UNLIMITED, returns
-     * YAHOO.widget.Paginator.VALUE_UNLIMITED.
-     * @method getTotalPages
-     * @return {number}
-     */
-    getTotalPages : function () {
-        var records = this.get('totalRecords'),
-            perPage = this.get('rowsPerPage');
-
-        // rowsPerPage not set.  Can't calculate
-        if (!perPage) {
-            return null;
-        }
-
-        if (records === Paginator.VALUE_UNLIMITED) {
-            return Paginator.VALUE_UNLIMITED;
-        }
-
-        return Math.ceil(records/perPage);
-    },
-
-    /**
-     * Does the requested page have any records?
-     * @method hasPage
-     * @param page {number} the page in question
-     * @return {boolean}
-     */
-    hasPage : function (page) {
-        if (!lang.isNumber(page) || page < 1) {
-            return false;
-        }
-
-        var totalPages = this.getTotalPages();
-
-        return (totalPages === Paginator.VALUE_UNLIMITED || totalPages >= page);
-    },
-
-    /**
-     * Get the page number corresponding to the current record offset.
-     * @method getCurrentPage
-     * @return {number}
-     */
-    getCurrentPage : function () {
-        var perPage = this.get('rowsPerPage');
-        if (!perPage || !this.get('totalRecords')) {
-            return 0;
-        }
-        return Math.floor(this.get('recordOffset') / perPage) + 1;
-    },
-
-    /**
-     * Are there records on the next page?
-     * @method hasNextPage
-     * @return {boolean}
-     */
-    hasNextPage : function () {
-        var currentPage = this.getCurrentPage(),
-            totalPages  = this.getTotalPages();
-
-        return currentPage && (totalPages === Paginator.VALUE_UNLIMITED || currentPage < totalPages);
-    },
-
-    /**
-     * Get the page number of the next page, or null if the current page is the
-     * last page.
-     * @method getNextPage
-     * @return {number}
-     */
-    getNextPage : function () {
-        return this.hasNextPage() ? this.getCurrentPage() + 1 : null;
-    },
-
-    /**
-     * Is there a page before the current page?
-     * @method hasPreviousPage
-     * @return {boolean}
-     */
-    hasPreviousPage : function () {
-        return (this.getCurrentPage() > 1);
-    },
-
-    /**
-     * Get the page number of the previous page, or null if the current page
-     * is the first page.
-     * @method getPreviousPage
-     * @return {number}
-     */
-    getPreviousPage : function () {
-        return (this.hasPreviousPage() ? this.getCurrentPage() - 1 : 1);
-    },
-
-    /**
-     * Get the start and end record indexes of the specified page.
-     * @method getPageRecords
-     * @param page {number} (optional) The page (current page if not specified)
-     * @return {Array} [start_index, end_index]
-     */
-    getPageRecords : function (page) {
-        if (!lang.isNumber(page)) {
-            page = this.getCurrentPage();
-        }
-
-        var perPage = this.get('rowsPerPage'),
-            records = this.get('totalRecords'),
-            start, end;
-
-        if (!page || !perPage) {
-            return null;
-        }
-
-        start = (page - 1) * perPage;
-        if (records !== Paginator.VALUE_UNLIMITED) {
-            if (start >= records) {
-                return null;
-            }
-            end = Math.min(start + perPage, records) - 1;
-        } else {
-            end = start + perPage - 1;
-        }
-
-        return [start,end];
-    },
-
-    /**
-     * Set the current page to the provided page number if possible.
-     * @method setPage
-     * @param newPage {number} the new page number
-     * @param silent {boolean} whether to forcibly avoid firing the
-     * changeRequest event
-     */
-    setPage : function (page,silent) {
-        if (this.hasPage(page) && page !== this.getCurrentPage()) {
-            if (this.get('updateOnChange') || silent) {
-                this.set('recordOffset', (page - 1) * this.get('rowsPerPage'));
-            } else {
-                this.fireEvent('changeRequest',this.getState({'page':page}));
-            }
-        }
-    },
-
-    /**
-     * Get the number of rows per page.
-     * @method getRowsPerPage
-     * @return {number} the current setting of the rowsPerPage attribute
-     */
-    getRowsPerPage : function () {
-        return this.get('rowsPerPage');
-    },
-
-    /**
-     * Set the number of rows per page.
-     * @method setRowsPerPage
-     * @param rpp {number} the new number of rows per page
-     * @param silent {boolean} whether to forcibly avoid firing the
-     * changeRequest event
-     */
-    setRowsPerPage : function (rpp,silent) {
-        if (Paginator.isNumeric(rpp) && +rpp > 0 &&
-            +rpp !== this.get('rowsPerPage')) {
-            if (this.get('updateOnChange') || silent) {
-                this.set('rowsPerPage',rpp);
-            } else {
-                this.fireEvent('changeRequest',
-                    this.getState({'rowsPerPage':+rpp}));
-            }
-        }
-    },
-
-    /**
-     * Get the total number of records.
-     * @method getTotalRecords
-     * @return {number} the current setting of totalRecords attribute
-     */
-    getTotalRecords : function () {
-        return this.get('totalRecords');
-    },
-
-    /**
-     * Set the total number of records.
-     * @method setTotalRecords
-     * @param total {number} the new total number of records
-     * @param silent {boolean} whether to forcibly avoid firing the changeRequest event
-     */
-    setTotalRecords : function (total,silent) {
-        if (Paginator.isNumeric(total) && +total >= 0 &&
-            +total !== this.get('totalRecords')) {
-            if (this.get('updateOnChange') || silent) {
-                this.set('totalRecords',total);
-            } else {
-                this.fireEvent('changeRequest',
-                    this.getState({'totalRecords':+total}));
-            }
-        }
-    },
-
-    /**
-     * Get the index of the first record on the current page
-     * @method getStartIndex
-     * @return {number} the index of the first record on the current page
-     */
-    getStartIndex : function () {
-        return this.get('recordOffset');
-    },
-
-    /**
-     * Move the record offset to a new starting index.  This will likely cause
-     * the calculated current page to change.  You should probably use setPage.
-     * @method setStartIndex
-     * @param offset {number} the new record offset
-     * @param silent {boolean} whether to forcibly avoid firing the changeRequest event
-     */
-    setStartIndex : function (offset,silent) {
-        if (Paginator.isNumeric(offset) && +offset >= 0 &&
-            +offset !== this.get('recordOffset')) {
-            if (this.get('updateOnChange') || silent) {
-                this.set('recordOffset',offset);
-            } else {
-                this.fireEvent('changeRequest',
-                    this.getState({'recordOffset':+offset}));
-            }
-        }
-    },
-
-    /**
-     * Get an object literal describing the current state of the paginator.  If
-     * an object literal of proposed values is passed, the proposed state will
-     * be returned as an object literal with the following keys:
-     * <ul>
-     * <li>paginator - instance of the Paginator</li>
-     * <li>page - number</li>
-     * <li>totalRecords - number</li>
-     * <li>recordOffset - number</li>
-     * <li>rowsPerPage - number</li>
-     * <li>records - [ start_index, end_index ]</li>
-     * <li>before - (OPTIONAL) { state object literal for current state }</li>
-     * </ul>
-     * @method getState
-     * @return {object}
-     * @param changes {object} OPTIONAL object literal with proposed values
-     * Supported change keys include:
-     * <ul>
-     * <li>rowsPerPage</li>
-     * <li>totalRecords</li>
-     * <li>recordOffset OR</li>
-     * <li>page</li>
-     * </ul>
-     */
-    getState : function (changes) {
-        var UNLIMITED = Paginator.VALUE_UNLIMITED,
-            M = Math, max = M.max, ceil = M.ceil,
-            currentState, state, offset;
-
-        function normalizeOffset(offset,total,rpp) {
-            if (offset <= 0 || total === 0) {
-                return 0;
-            }
-            if (total === UNLIMITED || total > offset) {
-                return offset - (offset % rpp);
-            }
-            return total - (total % rpp || rpp);
-        }
-
-        currentState = {
-            paginator    : this,
-            totalRecords : this.get('totalRecords'),
-            rowsPerPage  : this.get('rowsPerPage'),
-            records      : this.getPageRecords()
-        };
-        currentState.recordOffset = normalizeOffset(
-                                        this.get('recordOffset'),
-                                        currentState.totalRecords,
-                                        currentState.rowsPerPage);
-        currentState.page = ceil(currentState.recordOffset /
-                                 currentState.rowsPerPage) + 1;
-
-        if (!changes) {
-            return currentState;
-        }
-
-        state = {
-            paginator    : this,
-            before       : currentState,
-
-            rowsPerPage  : changes.rowsPerPage || currentState.rowsPerPage,
-            totalRecords : (Paginator.isNumeric(changes.totalRecords) ?
-                                max(changes.totalRecords,UNLIMITED) :
-                                +currentState.totalRecords)
-        };
-
-        if (state.totalRecords === 0) {
-            state.recordOffset =
-            state.page         = 0;
-        } else {
-            offset = Paginator.isNumeric(changes.page) ?
-                        (changes.page - 1) * state.rowsPerPage :
-                        Paginator.isNumeric(changes.recordOffset) ?
-                            +changes.recordOffset :
-                            currentState.recordOffset;
-
-            state.recordOffset = normalizeOffset(offset,
-                                    state.totalRecords,
-                                    state.rowsPerPage);
-
-            state.page = ceil(state.recordOffset / state.rowsPerPage) + 1;
-        }
-
-        state.records = [ state.recordOffset,
-                          state.recordOffset + state.rowsPerPage - 1 ];
-
-        // limit upper index to totalRecords - 1
-        if (state.totalRecords !== UNLIMITED &&
-            state.recordOffset < state.totalRecords && state.records &&
-            state.records[1] > state.totalRecords - 1) {
-            state.records[1] = state.totalRecords - 1;
-        }
-
-        return state;
-    },
-
-    /**
-     * Convenience method to facilitate setting state attributes rowsPerPage,
-     * totalRecords, recordOffset in batch.  Also supports calculating
-     * recordOffset from state.page if state.recordOffset is not provided.
-     * Fires only a single pageChange event, if appropriate.
-     * This will not fire a changeRequest event.
-     * @method setState
-     * @param state {Object} Object literal of attribute:value pairs to set
-     */
-    setState : function (state) {
-        if (isObject(state)) {
-            // get flux state based on current state with before state as well
-            this._state = this.getState({});
-
-            // use just the state props from the input obj
-            state = {
-                page         : state.page,
-                rowsPerPage  : state.rowsPerPage,
-                totalRecords : state.totalRecords,
-                recordOffset : state.recordOffset
-            };
-
-            // calculate recordOffset from page if recordOffset not specified.
-            // not using lang.isNumber for support of numeric strings
-            if (state.page && state.recordOffset === undefined) {
-                state.recordOffset = (state.page - 1) *
-                    (state.rowsPerPage || this.get('rowsPerPage'));
-            }
-
-            this._batch = true;
-            this._pageChanged = false;
-
-            for (var k in state) {
-                if (state.hasOwnProperty(k) && this._configs.hasOwnProperty(k)) {
-                    this.set(k,state[k]);
-                }
-            }
-
-            this._batch = false;
-            
-            if (this._pageChanged) {
-                this._pageChanged = false;
-
-                this._firePageChange(this.getState(this._state));
-            }
-        }
-    }
-};
-
-lang.augmentProto(Paginator, YAHOO.util.AttributeProvider);
-
-YAHOO.widget.Paginator = Paginator;
-})();
-(function () {
-
-var Paginator = YAHOO.widget.Paginator,
-    l         = YAHOO.lang;
-
-/**
- * ui Component to generate the textual report of current pagination status.
- * E.g. "Now viewing page 1 of 13".
- *
- * @namespace YAHOO.widget.Paginator.ui
- * @class CurrentPageReport
- * @for YAHOO.widget.Paginator
- *
- * @constructor
- * @param p {Pagintor} Paginator instance to attach to
- */
-Paginator.ui.CurrentPageReport = function (p) {
-    this.paginator = p;
-
-    p.subscribe('recordOffsetChange', this.update,this,true);
-    p.subscribe('rowsPerPageChange', this.update,this,true);
-    p.subscribe('totalRecordsChange',this.update,this,true);
-    p.subscribe('pageReportTemplateChange', this.update,this,true);
-    p.subscribe('destroy',this.destroy,this,true);
-
-    //TODO: make this work
-    p.subscribe('pageReportClassChange', this.update,this,true);
-};
-
-/**
- * Decorates Paginator instances with new attributes. Called during
- * Paginator instantiation.
- * @method init
- * @param p {Paginator} Paginator instance to decorate
- * @static
- */
-Paginator.ui.CurrentPageReport.init = function (p) {
-
-    /**
-     * CSS class assigned to the span containing the info.
-     * @attribute pageReportClass
-     * @default 'yui-pg-current'
-     */
-    p.setAttributeConfig('pageReportClass', {
-        value : 'yui-pg-current',
-        validator : l.isString
-    });
-
-    /**
-     * Used as innerHTML for the span.  Place holders in the form of {name}
-     * will be replaced with the so named value from the key:value map
-     * generated by the function held in the pageReportValueGenerator attribute.
-     * @attribute pageReportTemplate
-     * @default '({currentPage} of {totalPages})'
-     * @see pageReportValueGenerator attribute
-     */
-    p.setAttributeConfig('pageReportTemplate', {
-        value : '({currentPage} of {totalPages})',
-        validator : l.isString
-    });
-
-    /**
-     * Function to generate the value map used to populate the
-     * pageReportTemplate.  The function is passed the Paginator instance as a
-     * parameter.  The default function returns a map with the following keys:
-     * <ul>
-     * <li>currentPage</li>
-     * <li>totalPages</li>
-     * <li>startIndex</li>
-     * <li>endIndex</li>
-     * <li>startRecord</li>
-     * <li>endRecord</li>
-     * <li>totalRecords</li>
-     * </ul>
-     * @attribute pageReportValueGenarator
-     */
-    p.setAttributeConfig('pageReportValueGenerator', {
-        value : function (paginator) {
-            var curPage = paginator.getCurrentPage(),
-                records = paginator.getPageRecords();
-
-            return {
-                'currentPage' : records ? curPage : 0,
-                'totalPages'  : paginator.getTotalPages(),
-                'startIndex'  : records ? records[0] : 0,
-                'endIndex'    : records ? records[1] : 0,
-                'startRecord' : records ? records[0] + 1 : 0,
-                'endRecord'   : records ? records[1] + 1 : 0,
-                'totalRecords': paginator.get('totalRecords')
-            };
-        },
-        validator : l.isFunction
-    });
-};
-
-/**
- * Replace place holders in a string with the named values found in an
- * object literal.
- * @static
- * @method sprintf
- * @param template {string} The content string containing place holders
- * @param values {object} The key:value pairs used to replace the place holders
- * @return {string}
- */
-Paginator.ui.CurrentPageReport.sprintf = function (template, values) {
-    return template.replace(/\{([\w\s\-]+)\}/g, function (x,key) {
-            return (key in values) ? values[key] : '';
-        });
-};
-
-Paginator.ui.CurrentPageReport.prototype = {
-
-    /**
-     * Span node containing the formatted info
-     * @property span
-     * @type HTMLElement
-     * @private
-     */
-    span : null,
-
-
-    /**
-     * Generate the span containing info formatted per the pageReportTemplate
-     * attribute.
-     * @method render
-     * @param id_base {string} used to create unique ids for generated nodes
-     * @return {HTMLElement}
-     */
-    render : function (id_base) {
-        this.span = document.createElement('span');
-        this.span.id        = id_base + '-page-report';
-        this.span.className = this.paginator.get('pageReportClass');
-        this.update();
-        
-        return this.span;
-    },
-    
-    /**
-     * Regenerate the content of the span if appropriate. Calls
-     * CurrentPageReport.sprintf with the value of the pageReportTemplate
-     * attribute and the value map returned from pageReportValueGenerator
-     * function.
-     * @method update
-     * @param e {CustomEvent} The calling change event
-     */
-    update : function (e) {
-        if (e && e.prevValue === e.newValue) {
-            return;
-        }
-
-        this.span.innerHTML = Paginator.ui.CurrentPageReport.sprintf(
-            this.paginator.get('pageReportTemplate'),
-            this.paginator.get('pageReportValueGenerator')(this.paginator));
-    },
-
-    /**
-     * Removes the link/span node and clears event listeners
-     * removal.
-     * @method destroy
-     * @private
-     */
-    destroy : function () {
-        this.span.parentNode.removeChild(this.span);
-        this.span = null;
-    }
-
-};
-
-})();
-(function () {
-
-var Paginator = YAHOO.widget.Paginator,
-    l         = YAHOO.lang;
-
-/**
- * ui Component to generate the page links
- *
- * @namespace YAHOO.widget.Paginator.ui
- * @class PageLinks
- * @for YAHOO.widget.Paginator
- *
- * @constructor
- * @param p {Pagintor} Paginator instance to attach to
- */
-Paginator.ui.PageLinks = function (p) {
-    this.paginator = p;
-
-    p.subscribe('recordOffsetChange',this.update,this,true);
-    p.subscribe('rowsPerPageChange',this.update,this,true);
-    p.subscribe('totalRecordsChange',this.update,this,true);
-    p.subscribe('pageLinksChange',   this.rebuild,this,true);
-    p.subscribe('pageLinkClassChange', this.rebuild,this,true);
-    p.subscribe('currentPageClassChange', this.rebuild,this,true);
-    p.subscribe('destroy',this.destroy,this,true);
-
-    //TODO: Make this work
-    p.subscribe('pageLinksContainerClassChange', this.rebuild,this,true);
-};
-
-/**
- * Decorates Paginator instances with new attributes. Called during
- * Paginator instantiation.
- * @method init
- * @param p {Paginator} Paginator instance to decorate
- * @static
- */
-Paginator.ui.PageLinks.init = function (p) {
-
-    /**
-     * CSS class assigned to each page link/span.
-     * @attribute pageLinkClass
-     * @default 'yui-pg-page'
-     */
-    p.setAttributeConfig('pageLinkClass', {
-        value : 'yui-pg-page',
-        validator : l.isString
-    });
-
-    /**
-     * CSS class assigned to the current page span.
-     * @attribute currentPageClass
-     * @default 'yui-pg-current-page'
-     */
-    p.setAttributeConfig('currentPageClass', {
-        value : 'yui-pg-current-page',
-        validator : l.isString
-    });
-
-    /**
-     * CSS class assigned to the span containing the page links.
-     * @attribute pageLinksContainerClass
-     * @default 'yui-pg-pages'
-     */
-    p.setAttributeConfig('pageLinksContainerClass', {
-        value : 'yui-pg-pages',
-        validator : l.isString
-    });
-
-    /**
-     * Maximum number of page links to display at one time.
-     * @attribute pageLinks
-     * @default 10
-     */
-    p.setAttributeConfig('pageLinks', {
-        value : 10,
-        validator : Paginator.isNumeric
-    });
-
-    /**
-     * Function used generate the innerHTML for each page link/span.  The
-     * function receives as parameters the page number and a reference to the
-     * paginator object.
-     * @attribute pageLabelBuilder
-     * @default function (page, paginator) { return page; }
-     */
-    p.setAttributeConfig('pageLabelBuilder', {
-        value : function (page, paginator) { return page; },
-        validator : l.isFunction
-    });
-};
-
-/**
- * Calculates start and end page numbers given a current page, attempting
- * to keep the current page in the middle
- * @static
- * @method calculateRange
- * @param {int} currentPage  The current page
- * @param {int} totalPages   (optional) Maximum number of pages
- * @param {int} numPages     (optional) Preferred number of pages in range
- * @return {Array} [start_page_number, end_page_number]
- */
-Paginator.ui.PageLinks.calculateRange = function (currentPage,totalPages,numPages) {
-    var UNLIMITED = Paginator.VALUE_UNLIMITED,
-        start, end, delta;
-
-    // Either has no pages, or unlimited pages.  Show none.
-    if (!currentPage || numPages === 0 || totalPages === 0 ||
-        (totalPages === UNLIMITED && numPages === UNLIMITED)) {
-        return [0,-1];
-    }
-
-    // Limit requested pageLinks if there are fewer totalPages
-    if (totalPages !== UNLIMITED) {
-        numPages = numPages === UNLIMITED ?
-                    totalPages :
-                    Math.min(numPages,totalPages);
-    }
-
-    // Determine start and end, trying to keep current in the middle
-    start = Math.max(1,Math.ceil(currentPage - (numPages/2)));
-    if (totalPages === UNLIMITED) {
-        end = start + numPages - 1;
-    } else {
-        end = Math.min(totalPages, start + numPages - 1);
-    }
-
-    // Adjust the start index when approaching the last page
-    delta = numPages - (end - start + 1);
-    start = Math.max(1, start - delta);
-
-    return [start,end];
-};
-
-
-Paginator.ui.PageLinks.prototype = {
-
-    /**
-     * Current page
-     * @property current
-     * @type number
-     * @private
-     */
-    current     : 0,
-
-    /**
-     * Span node containing the page links
-     * @property container
-     * @type HTMLElement
-     * @private
-     */
-    container   : null,
-
-
-    /**
-     * Generate the nodes and return the container node containing page links
-     * appropriate to the current pagination state.
-     * @method render
-     * @param id_base {string} used to create unique ids for generated nodes
-     * @return {HTMLElement}
-     */
-    render : function (id_base) {
-        var p = this.paginator;
-
-        // Set up container
-        this.container = document.createElement('span');
-        this.container.id        = id_base + '-pages';
-        this.container.className = p.get('pageLinksContainerClass');
-        YAHOO.util.Event.on(this.container,'click',this.onClick,this,true);
-
-        // Call update, flagging a need to rebuild
-        this.update({newValue : null, rebuild : true});
-
-        return this.container;
-    },
-
-    /**
-     * Update the links if appropriate
-     * @method update
-     * @param e {CustomEvent} The calling change event
-     */
-    update : function (e) {
-        if (e && e.prevValue === e.newValue) {
-            return;
-        }
-
-        var p           = this.paginator,
-            currentPage = p.getCurrentPage();
-
-        // Replace content if there's been a change
-        if (this.current !== currentPage || !currentPage || e.rebuild) {
-            var labelBuilder = p.get('pageLabelBuilder'),
-                range        = Paginator.ui.PageLinks.calculateRange(
-                                currentPage,
-                                p.getTotalPages(),
-                                p.get('pageLinks')),
-                start        = range[0],
-                end          = range[1],
-                content      = '',
-                linkTemplate,i;
-
-            linkTemplate = '<a href="#" class="' + p.get('pageLinkClass') +
-                           '" page="';
-            for (i = start; i <= end; ++i) {
-                if (i === currentPage) {
-                    content +=
-                        '<span class="' + p.get('currentPageClass') + ' ' +
-                                          p.get('pageLinkClass') + '">' +
-                        labelBuilder(i,p) + '</span>';
-                } else {
-                    content +=
-                        linkTemplate + i + '">' + labelBuilder(i,p) + '</a>';
-                }
-            }
-
-            this.container.innerHTML = content;
-        }
-    },
-
-    /**
-     * Force a rebuild of the page links.
-     * @method rebuild
-     * @param e {CustomEvent} The calling change event
-     */
-    rebuild     : function (e) {
-        e.rebuild = true;
-        this.update(e);
-    },
-
-    /**
-     * Removes the page links container node and clears event listeners
-     * @method destroy
-     * @private
-     */
-    destroy : function () {
-        YAHOO.util.Event.purgeElement(this.container,true);
-        this.container.parentNode.removeChild(this.container);
-        this.container = null;
-    },
-
-    /**
-     * Listener for the container's onclick event.  Looks for qualifying link
-     * clicks, and pulls the page number from the link's page attribute.
-     * Sends link's page attribute to the Paginator's setPage method.
-     * @method onClick
-     * @param e {DOMEvent} The click event
-     */
-    onClick : function (e) {
-        var t = YAHOO.util.Event.getTarget(e);
-        if (t && YAHOO.util.Dom.hasClass(t,
-                        this.paginator.get('pageLinkClass'))) {
-
-            YAHOO.util.Event.stopEvent(e);
-
-            this.paginator.setPage(parseInt(t.getAttribute('page'),10));
-        }
-    }
-
-};
-
-})();
-(function () {
-
-var Paginator = YAHOO.widget.Paginator,
-    l         = YAHOO.lang;
-
-/**
- * ui Component to generate the link to jump to the first page.
- *
- * @namespace YAHOO.widget.Paginator.ui
- * @class FirstPageLink
- * @for YAHOO.widget.Paginator
- *
- * @constructor
- * @param p {Pagintor} Paginator instance to attach to
- */
-Paginator.ui.FirstPageLink = function (p) {
-    this.paginator = p;
-
-    p.subscribe('recordOffsetChange',this.update,this,true);
-    p.subscribe('rowsPerPageChange',this.update,this,true);
-    p.subscribe('totalRecordsChange',this.update,this,true);
-    p.subscribe('destroy',this.destroy,this,true);
-
-    // TODO: make this work
-    p.subscribe('firstPageLinkLabelChange',this.update,this,true);
-    p.subscribe('firstPageLinkClassChange',this.update,this,true);
-};
-
-/**
- * Decorates Paginator instances with new attributes. Called during
- * Paginator instantiation.
- * @method init
- * @param p {Paginator} Paginator instance to decorate
- * @static
- */
-Paginator.ui.FirstPageLink.init = function (p) {
-
-    /**
-     * Used as innerHTML for the first page link/span.
-     * @attribute firstPageLinkLabel
-     * @default '&lt;&lt; first'
-     */
-    p.setAttributeConfig('firstPageLinkLabel', {
-        value : '&lt;&lt; first',
-        validator : l.isString
-    });
-
-    /**
-     * CSS class assigned to the link/span
-     * @attribute firstPageLinkClass
-     * @default 'yui-pg-first'
-     */
-    p.setAttributeConfig('firstPageLinkClass', {
-        value : 'yui-pg-first',
-        validator : l.isString
-    });
-};
-
-// Instance members and methods
-Paginator.ui.FirstPageLink.prototype = {
-
-    /**
-     * The currently placed HTMLElement node
-     * @property current
-     * @type HTMLElement
-     * @private
-     */
-    current   : null,
-
-    /**
-     * Link node
-     * @property link
-     * @type HTMLElement
-     * @private
-     */
-    link      : null,
-
-    /**
-     * Span node (inactive link)
-     * @property span
-     * @type HTMLElement
-     * @private
-     */
-    span      : null,
-
-    /**
-     * Generate the nodes and return the appropriate node given the current
-     * pagination state.
-     * @method render
-     * @param id_base {string} used to create unique ids for generated nodes
-     * @return {HTMLElement}
-     */
-    render : function (id_base) {
-        var p     = this.paginator,
-            c     = p.get('firstPageLinkClass'),
-            label = p.get('firstPageLinkLabel');
-
-        this.link     = document.createElement('a');
-        this.span     = document.createElement('span');
-
-        this.link.id        = id_base + '-first-link';
-        this.link.href      = '#';
-        this.link.className = c;
-        this.link.innerHTML = label;
-        YAHOO.util.Event.on(this.link,'click',this.onClick,this,true);
-
-        this.span.id        = id_base + '-first-span';
-        this.span.className = c;
-        this.span.innerHTML = label;
-
-        this.current = p.getCurrentPage() > 1 ? this.link : this.span;
-        return this.current;
-    },
-
-    /**
-     * Swap the link and span nodes if appropriate.
-     * @method update
-     * @param e {CustomEvent} The calling change event
-     */
-    update : function (e) {
-        if (e && e.prevValue === e.newValue) {
-            return;
-        }
-
-        var par = this.current ? this.current.parentNode : null;
-        if (this.paginator.getCurrentPage() > 1) {
-            if (par && this.current === this.span) {
-                par.replaceChild(this.link,this.current);
-                this.current = this.link;
-            }
-        } else {
-            if (par && this.current === this.link) {
-                par.replaceChild(this.span,this.current);
-                this.current = this.span;
-            }
-        }
-    },
-
-    /**
-     * Removes the link/span node and clears event listeners
-     * removal.
-     * @method destroy
-     * @private
-     */
-    destroy : function () {
-        YAHOO.util.Event.purgeElement(this.link);
-        this.current.parentNode.removeChild(this.current);
-        this.link = this.span = null;
-    },
-
-    /**
-     * Listener for the link's onclick event.  Pass new value to setPage method.
-     * @method onClick
-     * @param e {DOMEvent} The click event
-     */
-    onClick : function (e) {
-        YAHOO.util.Event.stopEvent(e);
-        this.paginator.setPage(1);
-    }
-};
-
-})();
-(function () {
-
-var Paginator = YAHOO.widget.Paginator,
-    l         = YAHOO.lang;
-
-/**
- * ui Component to generate the link to jump to the last page.
- *
- * @namespace YAHOO.widget.Paginator.ui
- * @class LastPageLink
- * @for YAHOO.widget.Paginator
- *
- * @constructor
- * @param p {Pagintor} Paginator instance to attach to
- */
-Paginator.ui.LastPageLink = function (p) {
-    this.paginator = p;
-
-    p.subscribe('recordOffsetChange',this.update,this,true);
-    p.subscribe('rowsPerPageChange',this.update,this,true);
-    p.subscribe('totalRecordsChange',this.update,this,true);
-    p.subscribe('destroy',this.destroy,this,true);
-
-    // TODO: make this work
-    p.subscribe('lastPageLinkLabelChange',this.update,this,true);
-    p.subscribe('lastPageLinkClassChange', this.update,this,true);
-};
-
-/**
- * Decorates Paginator instances with new attributes. Called during
- * Paginator instantiation.
- * @method init
- * @param paginator {Paginator} Paginator instance to decorate
- * @static
- */
-Paginator.ui.LastPageLink.init = function (p) {
-
-    /**
-     * Used as innerHTML for the last page link/span.
-     * @attribute lastPageLinkLabel
-     * @default 'last &gt;&gt;'
-     */
-    p.setAttributeConfig('lastPageLinkLabel', {
-        value : 'last &gt;&gt;',
-        validator : l.isString
-    });
-
-    /**
-     * CSS class assigned to the link/span
-     * @attribute lastPageLinkClass
-     * @default 'yui-pg-last'
-     */
-    p.setAttributeConfig('lastPageLinkClass', {
-        value : 'yui-pg-last',
-        validator : l.isString
-    });
-};
-
-Paginator.ui.LastPageLink.prototype = {
-
-    /**
-     * Currently placed HTMLElement node
-     * @property current
-     * @type HTMLElement
-     * @private
-     */
-    current   : null,
-
-    /**
-     * Link HTMLElement node
-     * @property link
-     * @type HTMLElement
-     * @private
-     */
-    link      : null,
-
-    /**
-     * Span node (inactive link)
-     * @property span
-     * @type HTMLElement
-     * @private
-     */
-    span      : null,
-
-    /**
-     * Empty place holder node for when the last page link is inappropriate to
-     * display in any form (unlimited paging).
-     * @property na
-     * @type HTMLElement
-     * @private
-     */
-    na        : null,
-
-
-    /**
-     * Generate the nodes and return the appropriate node given the current
-     * pagination state.
-     * @method render
-     * @param id_base {string} used to create unique ids for generated nodes
-     * @return {HTMLElement}
-     */
-    render : function (id_base) {
-        var p     = this.paginator,
-            c     = p.get('lastPageLinkClass'),
-            label = p.get('lastPageLinkLabel'),
-            last  = p.getTotalPages();
-
-        this.link = document.createElement('a');
-        this.span = document.createElement('span');
-        this.na   = this.span.cloneNode(false);
-
-        this.link.id        = id_base + '-last-link';
-        this.link.href      = '#';
-        this.link.className = c;
-        this.link.innerHTML = label;
-        YAHOO.util.Event.on(this.link,'click',this.onClick,this,true);
-
-        this.span.id        = id_base + '-last-span';
-        this.span.className = c;
-        this.span.innerHTML = label;
-
-        this.na.id = id_base + '-last-na';
-
-        switch (last) {
-            case Paginator.VALUE_UNLIMITED :
-                    this.current = this.na; break;
-            case p.getCurrentPage() :
-                    this.current = this.span; break;
-            default :
-                    this.current = this.link;
-        }
-
-        return this.current;
-    },
-
-    /**
-     * Swap the link, span, and na nodes if appropriate.
-     * @method update
-     * @param e {CustomEvent} The calling change event (ignored)
-     */
-    update : function (e) {
-        if (e && e.prevValue === e.newValue) {
-            return;
-        }
-
-        var par   = this.current ? this.current.parentNode : null,
-            after = this.link;
-
-        if (par) {
-            switch (this.paginator.getTotalPages()) {
-                case Paginator.VALUE_UNLIMITED :
-                        after = this.na; break;
-                case this.paginator.getCurrentPage() :
-                        after = this.span; break;
-            }
-
-            if (this.current !== after) {
-                par.replaceChild(after,this.current);
-                this.current = after;
-            }
-        }
-    },
-
-    /**
-     * Removes the link/span node and clears event listeners
-     * @method destroy
-     * @private
-     */
-    destroy : function () {
-        YAHOO.util.Event.purgeElement(this.link);
-        this.current.parentNode.removeChild(this.current);
-        this.link = this.span = null;
-    },
-
-    /**
-     * Listener for the link's onclick event.  Passes to setPage method.
-     * @method onClick
-     * @param e {DOMEvent} The click event
-     */
-    onClick : function (e) {
-        YAHOO.util.Event.stopEvent(e);
-        this.paginator.setPage(this.paginator.getTotalPages());
-    }
-};
-
-})();
-(function () {
-
-var Paginator = YAHOO.widget.Paginator,
-    l         = YAHOO.lang;
-
-/**
- * ui Component to generate the link to jump to the next page.
- *
- * @namespace YAHOO.widget.Paginator.ui
- * @class NextPageLink
- * @for YAHOO.widget.Paginator
- *
- * @constructor
- * @param p {Pagintor} Paginator instance to attach to
- */
-Paginator.ui.NextPageLink = function (p) {
-    this.paginator = p;
-
-    p.subscribe('recordOffsetChange', this.update,this,true);
-    p.subscribe('rowsPerPageChange', this.update,this,true);
-    p.subscribe('totalRecordsChange', this.update,this,true);
-    p.subscribe('destroy',this.destroy,this,true);
-
-    // TODO: make this work
-    p.subscribe('nextPageLinkLabelChange', this.update,this,true);
-    p.subscribe('nextPageLinkClassChange', this.update,this,true);
-};
-
-/**
- * Decorates Paginator instances with new attributes. Called during
- * Paginator instantiation.
- * @method init
- * @param p {Paginator} Paginator instance to decorate
- * @static
- */
-Paginator.ui.NextPageLink.init = function (p) {
-
-    /**
-     * Used as innerHTML for the next page link/span.
-     * @attribute nextPageLinkLabel
-     * @default 'next &gt;'
-     */
-    p.setAttributeConfig('nextPageLinkLabel', {
-        value : 'next &gt;',
-        validator : l.isString
-    });
-
-    /**
-     * CSS class assigned to the link/span
-     * @attribute nextPageLinkClass
-     * @default 'yui-pg-next'
-     */
-    p.setAttributeConfig('nextPageLinkClass', {
-        value : 'yui-pg-next',
-        validator : l.isString
-    });
-};
-
-Paginator.ui.NextPageLink.prototype = {
-
-    /**
-     * Currently placed HTMLElement node
-     * @property current
-     * @type HTMLElement
-     * @private
-     */
-    current   : null,
-
-    /**
-     * Link node
-     * @property link
-     * @type HTMLElement
-     * @private
-     */
-    link      : null,
-
-    /**
-     * Span node (inactive link)
-     * @property span
-     * @type HTMLElement
-     * @private
-     */
-    span      : null,
-
-
-    /**
-     * Generate the nodes and return the appropriate node given the current
-     * pagination state.
-     * @method render
-     * @param id_base {string} used to create unique ids for generated nodes
-     * @return {HTMLElement}
-     */
-    render : function (id_base) {
-        var p     = this.paginator,
-            c     = p.get('nextPageLinkClass'),
-            label = p.get('nextPageLinkLabel'),
-            last  = p.getTotalPages();
-
-        this.link     = document.createElement('a');
-        this.span     = document.createElement('span');
-
-        this.link.id        = id_base + '-next-link';
-        this.link.href      = '#';
-        this.link.className = c;
-        this.link.innerHTML = label;
-        YAHOO.util.Event.on(this.link,'click',this.onClick,this,true);
-
-        this.span.id        = id_base + '-next-span';
-        this.span.className = c;
-        this.span.innerHTML = label;
-
-        this.current = p.getCurrentPage() === last ? this.span : this.link;
-
-        return this.current;
-    },
-
-    /**
-     * Swap the link and span nodes if appropriate.
-     * @method update
-     * @param e {CustomEvent} The calling change event
-     */
-    update : function (e) {
-        if (e && e.prevValue === e.newValue) {
-            return;
-        }
-
-        var last = this.paginator.getTotalPages(),
-            par  = this.current ? this.current.parentNode : null;
-
-        if (this.paginator.getCurrentPage() !== last) {
-            if (par && this.current === this.span) {
-                par.replaceChild(this.link,this.current);
-                this.current = this.link;
-            }
-        } else if (this.current === this.link) {
-            if (par) {
-                par.replaceChild(this.span,this.current);
-                this.current = this.span;
-            }
-        }
-    },
-
-    /**
-     * Removes the link/span node and clears event listeners
-     * @method destroy
-     * @private
-     */
-    destroy : function () {
-        YAHOO.util.Event.purgeElement(this.link);
-        this.current.parentNode.removeChild(this.current);
-        this.link = this.span = null;
-    },
-
-    /**
-     * Listener for the link's onclick event.  Passes to setPage method.
-     * @method onClick
-     * @param e {DOMEvent} The click event
-     */
-    onClick : function (e) {
-        YAHOO.util.Event.stopEvent(e);
-        this.paginator.setPage(this.paginator.getNextPage());
-    }
-};
-
-})();
-(function () {
-
-var Paginator = YAHOO.widget.Paginator,
-    l         = YAHOO.lang;
-
-/**
- * ui Component to generate the link to jump to the previous page.
- *
- * @namespace YAHOO.widget.Paginator.ui
- * @class PreviousPageLink
- * @for YAHOO.widget.Paginator
- *
- * @constructor
- * @param p {Pagintor} Paginator instance to attach to
- */
-Paginator.ui.PreviousPageLink = function (p) {
-    this.paginator = p;
-
-    p.subscribe('recordOffsetChange',this.update,this,true);
-    p.subscribe('rowsPerPageChange',this.update,this,true);
-    p.subscribe('totalRecordsChange',this.update,this,true);
-    p.subscribe('destroy',this.destroy,this,true);
-
-    // TODO: make this work
-    p.subscribe('previousPageLinkLabelChange',this.update,this,true);
-    p.subscribe('previousPageLinkClassChange',this.update,this,true);
-};
-
-/**
- * Decorates Paginator instances with new attributes. Called during
- * Paginator instantiation.
- * @method init
- * @param p {Paginator} Paginator instance to decorate
- * @static
- */
-Paginator.ui.PreviousPageLink.init = function (p) {
-
-    /**
-     * Used as innerHTML for the previous page link/span.
-     * @attribute previousPageLinkLabel
-     * @default '&lt; prev'
-     */
-    p.setAttributeConfig('previousPageLinkLabel', {
-        value : '&lt; prev',
-        validator : l.isString
-    });
-
-    /**
-     * CSS class assigned to the link/span
-     * @attribute previousPageLinkClass
-     * @default 'yui-pg-previous'
-     */
-    p.setAttributeConfig('previousPageLinkClass', {
-        value : 'yui-pg-previous',
-        validator : l.isString
-    });
-};
-
-Paginator.ui.PreviousPageLink.prototype = {
-
-    /**
-     * Currently placed HTMLElement node
-     * @property current
-     * @type HTMLElement
-     * @private
-     */
-    current   : null,
-
-    /**
-     * Link node
-     * @property link
-     * @type HTMLElement
-     * @private
-     */
-    link      : null,
-
-    /**
-     * Span node (inactive link)
-     * @property span
-     * @type HTMLElement
-     * @private
-     */
-    span      : null,
-
-
-    /**
-     * Generate the nodes and return the appropriate node given the current
-     * pagination state.
-     * @method render
-     * @param id_base {string} used to create unique ids for generated nodes
-     * @return {HTMLElement}
-     */
-    render : function (id_base) {
-        var p     = this.paginator,
-            c     = p.get('previousPageLinkClass'),
-            label = p.get('previousPageLinkLabel');
-
-        this.link     = document.createElement('a');
-        this.span     = document.createElement('span');
-
-        this.link.id        = id_base + '-prev-link';
-        this.link.href      = '#';
-        this.link.className = c;
-        this.link.innerHTML = label;
-        YAHOO.util.Event.on(this.link,'click',this.onClick,this,true);
-
-        this.span.id        = id_base + '-prev-span';
-        this.span.className = c;
-        this.span.innerHTML = label;
-
-        this.current = p.getCurrentPage() > 1 ? this.link : this.span;
-        return this.current;
-    },
-
-    /**
-     * Swap the link and span nodes if appropriate.
-     * @method update
-     * @param e {CustomEvent} The calling change event
-     */
-    update : function (e) {
-        if (e && e.prevValue === e.newValue) {
-            return;
-        }
-
-        var par = this.current ? this.current.parentNode : null;
-        if (this.paginator.getCurrentPage() > 1) {
-            if (par && this.current === this.span) {
-                par.replaceChild(this.link,this.current);
-                this.current = this.link;
-            }
-        } else {
-            if (par && this.current === this.link) {
-                par.replaceChild(this.span,this.current);
-                this.current = this.span;
-            }
-        }
-    },
-
-    /**
-     * Removes the link/span node and clears event listeners
-     * @method destroy
-     * @private
-     */
-    destroy : function () {
-        YAHOO.util.Event.purgeElement(this.link);
-        this.current.parentNode.removeChild(this.current);
-        this.link = this.span = null;
-    },
-
-    /**
-     * Listener for the link's onclick event.  Passes to setPage method.
-     * @method onClick
-     * @param e {DOMEvent} The click event
-     */
-    onClick : function (e) {
-        YAHOO.util.Event.stopEvent(e);
-        this.paginator.setPage(this.paginator.getPreviousPage());
-    }
-};
-
-})();
-(function () {
-
-var Paginator = YAHOO.widget.Paginator,
-    l         = YAHOO.lang;
-
-/**
- * ui Component to generate the rows-per-page dropdown
- *
- * @namespace YAHOO.widget.Paginator.ui
- * @class RowsPerPageDropdown
- * @for YAHOO.widget.Paginator
- *
- * @constructor
- * @param p {Pagintor} Paginator instance to attach to
- */
-Paginator.ui.RowsPerPageDropdown = function (p) {
-    this.paginator = p;
-
-    p.subscribe('rowsPerPageChange',this.update,this,true);
-    p.subscribe('rowsPerPageOptionsChange',this.rebuild,this,true);
-    p.subscribe('totalRecordsChange',this._handleTotalRecordsChange,this,true);
-    p.subscribe('destroy',this.destroy,this,true);
-
-    // TODO: make this work
-    p.subscribe('rowsPerPageDropdownClassChange',this.rebuild,this,true);
-};
-
-/**
- * Decorates Paginator instances with new attributes. Called during
- * Paginator instantiation.
- * @method init
- * @param p {Paginator} Paginator instance to decorate
- * @static
- */
-Paginator.ui.RowsPerPageDropdown.init = function (p) {
-
-    /**
-     * Array of available rows-per-page sizes.  Converted into select options.
-     * Array values may be positive integers or object literals in the form<br>
-     * { value : NUMBER, text : STRING }
-     * @attribute rowsPerPageOptions
-     * @default []
-     */
-    p.setAttributeConfig('rowsPerPageOptions', {
-        value : [],
-        validator : l.isArray
-    });
-
-    /**
-     * CSS class assigned to the select node
-     * @attribute rowsPerPageDropdownClass
-     * @default 'yui-pg-rpp-options'
-     */
-    p.setAttributeConfig('rowsPerPageDropdownClass', {
-        value : 'yui-pg-rpp-options',
-        validator : l.isString
-    });
-};
-
-Paginator.ui.RowsPerPageDropdown.prototype = {
-
-    /**
-     * select node
-     * @property select
-     * @type HTMLElement
-     * @private
-     */
-    select  : null,
-
-
-    /**
-     * option node for the optional All value
-     *
-     * @property all
-     * @type HTMLElement
-     * @protected
-     */
-    all : null,
-
-    /**
-     * Generate the select and option nodes and returns the select node.
-     * @method render
-     * @param id_base {string} used to create unique ids for generated nodes
-     * @return {HTMLElement}
-     */
-    render : function (id_base) {
-        this.select = document.createElement('select');
-        this.select.id        = id_base + '-rpp';
-        this.select.className = this.paginator.get('rowsPerPageDropdownClass');
-        this.select.title = 'Rows per page';
-
-        YAHOO.util.Event.on(this.select,'change',this.onChange,this,true);
-
-        this.rebuild();
-
-        return this.select;
-    },
-
-    /**
-     * (Re)generate the select options.
-     * @method rebuild
-     */
-    rebuild : function (e) {
-        var p       = this.paginator,
-            sel     = this.select,
-            options = p.get('rowsPerPageOptions'),
-            opt,cfg,val,i,len;
-
-        this.all = null;
-
-        for (i = 0, len = options.length; i < len; ++i) {
-            cfg = options[i];
-            opt = sel.options[i] ||
-                  sel.appendChild(document.createElement('option'));
-            val = l.isValue(cfg.value) ? cfg.value : cfg;
-            opt.innerHTML = l.isValue(cfg.text) ? cfg.text : cfg;
-
-            if (l.isString(val) && val.toLowerCase() === 'all') {
-                this.all  = opt;
-                opt.value = p.get('totalRecords');
-            } else{
-                opt.value = val;
-            }
-
-        }
-
-        while (sel.options.length > options.length) {
-            sel.removeChild(sel.firstChild);
-        }
-
-        this.update();
-    },
-
-    /**
-     * Select the appropriate option if changed.
-     * @method update
-     * @param e {CustomEvent} The calling change event
-     */
-    update : function (e) {
-        if (e && e.prevValue === e.newValue) {
-            return;
-        }
-
-        var rpp     = this.paginator.get('rowsPerPage')+'',
-            options = this.select.options,
-            i,len;
-
-        for (i = 0, len = options.length; i < len; ++i) {
-            if (options[i].value === rpp) {
-                options[i].selected = true;
-                break;
-            }
-        }
-    },
-
-    /**
-     * Listener for the select's onchange event.  Sent to setRowsPerPage method.
-     * @method onChange
-     * @param e {DOMEvent} The change event
-     */
-    onChange : function (e) {
-        this.paginator.setRowsPerPage(
-                parseInt(this.select.options[this.select.selectedIndex].value,10));
-    },
-
-    /**
-     * Updates the all option value (and Paginator's rowsPerPage attribute if
-     * necessary) in response to a change in the Paginator's totalRecords.
-     *
-     * @method _handleTotalRecordsChange
-     * @param e {Event} attribute change event
-     * @protected
-     */
-    _handleTotalRecordsChange : function (e) {
-        if (!this.all || (e && e.prevValue === e.newValue)) {
-            return;
-        }
-
-        this.all.value = e.newValue;
-        if (this.all.selected) {
-            this.paginator.set('rowsPerPage',e.newValue);
-        }
-    },
-
-    /**
-     * Removes the select node and clears event listeners
-     * @method destroy
-     * @private
-     */
-    destroy : function () {
-        YAHOO.util.Event.purgeElement(this.select);
-        this.select.parentNode.removeChild(this.select);
-        this.select = null;
-    }
-};
-
-})();
-YAHOO.register("paginator", YAHOO.widget.Paginator, {version: "2.8.0r4", build: "2449"});
diff --git a/koha-tmpl/intranet-tmpl/prog/en/lib/yui/paginator/paginator-min.js b/koha-tmpl/intranet-tmpl/prog/en/lib/yui/paginator/paginator-min.js
deleted file mode 100644 (file)
index 967323a..0000000
+++ /dev/null
@@ -1,10 +0,0 @@
-/*
-Copyright (c) 2009, Yahoo! Inc. All rights reserved.
-Code licensed under the BSD License:
-http://developer.yahoo.net/yui/license.txt
-version: 2.8.0r4
-*/
-(function(){var D=YAHOO.util.Dom,F=YAHOO.lang,B=F.isObject,E=F.isFunction,C=F.isArray,A=F.isString;function G(K){var N=G.VALUE_UNLIMITED,L,H,I,J,M;K=B(K)?K:{};this.initConfig();this.initEvents();this.set("rowsPerPage",K.rowsPerPage,true);if(G.isNumeric(K.totalRecords)){this.set("totalRecords",K.totalRecords,true);}this.initUIComponents();for(L in K){if(K.hasOwnProperty(L)){this.set(L,K[L],true);}}H=this.get("initialPage");I=this.get("totalRecords");J=this.get("rowsPerPage");if(H>1&&J!==N){M=(H-1)*J;if(I===N||M<I){this.set("recordOffset",M,true);}}}F.augmentObject(G,{id:0,ID_BASE:"yui-pg",VALUE_UNLIMITED:-1,TEMPLATE_DEFAULT:"{FirstPageLink} {PreviousPageLink} {PageLinks} {NextPageLink} {LastPageLink}",TEMPLATE_ROWS_PER_PAGE:"{FirstPageLink} {PreviousPageLink} {PageLinks} {NextPageLink} {LastPageLink} {RowsPerPageDropdown}",ui:{},isNumeric:function(H){return isFinite(+H);},toNumber:function(H){return isFinite(+H)?+H:null;}},true);G.prototype={_containers:[],_batch:false,_pageChanged:false,_state:null,initConfig:function(){var H=G.VALUE_UNLIMITED;this.setAttributeConfig("rowsPerPage",{value:0,validator:G.isNumeric,setter:G.toNumber});this.setAttributeConfig("containers",{value:null,validator:function(K){if(!C(K)){K=[K];}for(var J=0,I=K.length;J<I;++J){if(A(K[J])||(B(K[J])&&K[J].nodeType===1)){continue;}return false;}return true;},method:function(I){I=D.get(I);if(!C(I)){I=[I];}this._containers=I;}});this.setAttributeConfig("totalRecords",{value:0,validator:G.isNumeric,setter:G.toNumber});this.setAttributeConfig("recordOffset",{value:0,validator:function(J){var I=this.get("totalRecords");if(G.isNumeric(J)){J=+J;return I===H||I>J||(I===0&&J===0);}return false;},setter:G.toNumber});this.setAttributeConfig("initialPage",{value:1,validator:G.isNumeric,setter:G.toNumber});this.setAttributeConfig("template",{value:G.TEMPLATE_DEFAULT,validator:A});this.setAttributeConfig("containerClass",{value:"yui-pg-container",validator:A});this.setAttributeConfig("alwaysVisible",{value:true,validator:F.isBoolean});this.setAttributeConfig("updateOnChange",{value:false,validator:F.isBoolean});this.setAttributeConfig("id",{value:G.id++,readOnly:true});this.setAttributeConfig("rendered",{value:false,readOnly:true});},initUIComponents:function(){var J=G.ui,I,H;for(I in J){if(J.hasOwnProperty(I)){H=J[I];if(B(H)&&E(H.init)){H.init(this);}}}},initEvents:function(){this.createEvent("render");this.createEvent("rendered");this.createEvent("changeRequest");this.createEvent("pageChange");this.createEvent("beforeDestroy");this.createEvent("destroy");this._selfSubscribe();},_selfSubscribe:function(){this.subscribe("totalRecordsChange",this.updateVisibility,this,true);this.subscribe("alwaysVisibleChange",this.updateVisibility,this,true);this.subscribe("totalRecordsChange",this._handleStateChange,this,true);this.subscribe("recordOffsetChange",this._handleStateChange,this,true);this.subscribe("rowsPerPageChange",this._handleStateChange,this,true);this.subscribe("totalRecordsChange",this._syncRecordOffset,this,true);},_syncRecordOffset:function(K){var H=K.newValue,J,I;if(K.prevValue!==H){if(H!==G.VALUE_UNLIMITED){J=this.get("rowsPerPage");if(J&&this.get("recordOffset")>=H){I=this.getState({totalRecords:K.prevValue,recordOffset:this.get("recordOffset")});this.set("recordOffset",I.before.recordOffset);this._firePageChange(I);}}}},_handleStateChange:function(I){if(I.prevValue!==I.newValue){var J=this._state||{},H;J[I.type.replace(/Change$/,"")]=I.prevValue;H=this.getState(J);if(H.page!==H.before.page){if(this._batch){this._pageChanged=true;}else{this._firePageChange(H);}}}},_firePageChange:function(H){if(B(H)){var I=H.before;delete H.before;this.fireEvent("pageChange",{type:"pageChange",prevValue:H.page,newValue:I.page,prevState:H,newState:I});}},render:function(){if(this.get("rendered")){return this;}var K=this.get("template"),L=this.getState(),J=G.ID_BASE+this.get("id")+"-",I,H;for(I=0,H=this._containers.length;I<H;++I){this._renderTemplate(this._containers[I],K,J+I,true);}this.updateVisibility();if(this._containers.length){this.setAttributeConfig("rendered",{value:true});this.fireEvent("render",L);this.fireEvent("rendered",L);}return this;},_renderTemplate:function(I,M,L,K){var O=this.get("containerClass"),N,J,H;if(!I){return;}D.setStyle(I,"display","none");D.addClass(I,O);I.innerHTML=M.replace(/\{([a-z0-9_ \-]+)\}/gi,'<span class="yui-pg-ui yui-pg-ui-$1"></span>');N=D.getElementsByClassName("yui-pg-ui","span",I);for(J=0,H=N.length;J<H;++J){this.renderUIComponent(N[J],L);}if(!K){D.setStyle(I,"display","");}},renderUIComponent:function(H,M){var L=H.parentNode,K=/yui-pg-ui-(\w+)/.exec(H.className),J=K&&G.ui[K[1]],I;if(E(J)){I=new J(this);if(E(I.render)){L.replaceChild(I.render(M),H);}}},destroy:function(){this.fireEvent("beforeDestroy");this.fireEvent("destroy");this.setAttributeConfig("rendered",{value:false});this.unsubscribeAll();},updateVisibility:function(M){var I=this.get("alwaysVisible"),O,N,K,L,J,H;if(!M||M.type==="alwaysVisibleChange"||!I){O=this.get("totalRecords");N=true;K=this.get("rowsPerPage");L=this.get("rowsPerPageOptions");if(C(L)){for(J=0,H=L.length;J<H;++J){K=Math.min(K,L[J]);}}if(O!==G.VALUE_UNLIMITED&&O<=K){N=false;}N=N||I;for(J=0,H=this._containers.length;J<H;++J){D.setStyle(this._containers[J],"display",N?"":"none");}}},getContainerNodes:function(){return this._containers;},getTotalPages:function(){var H=this.get("totalRecords"),I=this.get("rowsPerPage");if(!I){return null;}if(H===G.VALUE_UNLIMITED){return G.VALUE_UNLIMITED;}return Math.ceil(H/I);},hasPage:function(I){if(!F.isNumber(I)||I<1){return false;}var H=this.getTotalPages();return(H===G.VALUE_UNLIMITED||H>=I);},getCurrentPage:function(){var H=this.get("rowsPerPage");if(!H||!this.get("totalRecords")){return 0;}return Math.floor(this.get("recordOffset")/H)+1;},hasNextPage:function(){var H=this.getCurrentPage(),I=this.getTotalPages();return H&&(I===G.VALUE_UNLIMITED||H<I);},getNextPage:function(){return this.hasNextPage()?this.getCurrentPage()+1:null;},hasPreviousPage:function(){return(this.getCurrentPage()>1);
-},getPreviousPage:function(){return(this.hasPreviousPage()?this.getCurrentPage()-1:1);},getPageRecords:function(K){if(!F.isNumber(K)){K=this.getCurrentPage();}var J=this.get("rowsPerPage"),I=this.get("totalRecords"),L,H;if(!K||!J){return null;}L=(K-1)*J;if(I!==G.VALUE_UNLIMITED){if(L>=I){return null;}H=Math.min(L+J,I)-1;}else{H=L+J-1;}return[L,H];},setPage:function(I,H){if(this.hasPage(I)&&I!==this.getCurrentPage()){if(this.get("updateOnChange")||H){this.set("recordOffset",(I-1)*this.get("rowsPerPage"));}else{this.fireEvent("changeRequest",this.getState({"page":I}));}}},getRowsPerPage:function(){return this.get("rowsPerPage");},setRowsPerPage:function(I,H){if(G.isNumeric(I)&&+I>0&&+I!==this.get("rowsPerPage")){if(this.get("updateOnChange")||H){this.set("rowsPerPage",I);}else{this.fireEvent("changeRequest",this.getState({"rowsPerPage":+I}));}}},getTotalRecords:function(){return this.get("totalRecords");},setTotalRecords:function(I,H){if(G.isNumeric(I)&&+I>=0&&+I!==this.get("totalRecords")){if(this.get("updateOnChange")||H){this.set("totalRecords",I);}else{this.fireEvent("changeRequest",this.getState({"totalRecords":+I}));}}},getStartIndex:function(){return this.get("recordOffset");},setStartIndex:function(I,H){if(G.isNumeric(I)&&+I>=0&&+I!==this.get("recordOffset")){if(this.get("updateOnChange")||H){this.set("recordOffset",I);}else{this.fireEvent("changeRequest",this.getState({"recordOffset":+I}));}}},getState:function(O){var Q=G.VALUE_UNLIMITED,L=Math,N=L.max,P=L.ceil,J,H,K;function I(S,M,R){if(S<=0||M===0){return 0;}if(M===Q||M>S){return S-(S%R);}return M-(M%R||R);}J={paginator:this,totalRecords:this.get("totalRecords"),rowsPerPage:this.get("rowsPerPage"),records:this.getPageRecords()};J.recordOffset=I(this.get("recordOffset"),J.totalRecords,J.rowsPerPage);J.page=P(J.recordOffset/J.rowsPerPage)+1;if(!O){return J;}H={paginator:this,before:J,rowsPerPage:O.rowsPerPage||J.rowsPerPage,totalRecords:(G.isNumeric(O.totalRecords)?N(O.totalRecords,Q):+J.totalRecords)};if(H.totalRecords===0){H.recordOffset=H.page=0;}else{K=G.isNumeric(O.page)?(O.page-1)*H.rowsPerPage:G.isNumeric(O.recordOffset)?+O.recordOffset:J.recordOffset;H.recordOffset=I(K,H.totalRecords,H.rowsPerPage);H.page=P(H.recordOffset/H.rowsPerPage)+1;}H.records=[H.recordOffset,H.recordOffset+H.rowsPerPage-1];if(H.totalRecords!==Q&&H.recordOffset<H.totalRecords&&H.records&&H.records[1]>H.totalRecords-1){H.records[1]=H.totalRecords-1;}return H;},setState:function(I){if(B(I)){this._state=this.getState({});I={page:I.page,rowsPerPage:I.rowsPerPage,totalRecords:I.totalRecords,recordOffset:I.recordOffset};if(I.page&&I.recordOffset===undefined){I.recordOffset=(I.page-1)*(I.rowsPerPage||this.get("rowsPerPage"));}this._batch=true;this._pageChanged=false;for(var H in I){if(I.hasOwnProperty(H)&&this._configs.hasOwnProperty(H)){this.set(H,I[H]);}}this._batch=false;if(this._pageChanged){this._pageChanged=false;this._firePageChange(this.getState(this._state));}}}};F.augmentProto(G,YAHOO.util.AttributeProvider);YAHOO.widget.Paginator=G;})();(function(){var B=YAHOO.widget.Paginator,A=YAHOO.lang;B.ui.CurrentPageReport=function(C){this.paginator=C;C.subscribe("recordOffsetChange",this.update,this,true);C.subscribe("rowsPerPageChange",this.update,this,true);C.subscribe("totalRecordsChange",this.update,this,true);C.subscribe("pageReportTemplateChange",this.update,this,true);C.subscribe("destroy",this.destroy,this,true);C.subscribe("pageReportClassChange",this.update,this,true);};B.ui.CurrentPageReport.init=function(C){C.setAttributeConfig("pageReportClass",{value:"yui-pg-current",validator:A.isString});C.setAttributeConfig("pageReportTemplate",{value:"({currentPage} of {totalPages})",validator:A.isString});C.setAttributeConfig("pageReportValueGenerator",{value:function(F){var E=F.getCurrentPage(),D=F.getPageRecords();return{"currentPage":D?E:0,"totalPages":F.getTotalPages(),"startIndex":D?D[0]:0,"endIndex":D?D[1]:0,"startRecord":D?D[0]+1:0,"endRecord":D?D[1]+1:0,"totalRecords":F.get("totalRecords")};},validator:A.isFunction});};B.ui.CurrentPageReport.sprintf=function(D,C){return D.replace(/\{([\w\s\-]+)\}/g,function(E,F){return(F in C)?C[F]:"";});};B.ui.CurrentPageReport.prototype={span:null,render:function(C){this.span=document.createElement("span");this.span.id=C+"-page-report";this.span.className=this.paginator.get("pageReportClass");this.update();return this.span;},update:function(C){if(C&&C.prevValue===C.newValue){return;}this.span.innerHTML=B.ui.CurrentPageReport.sprintf(this.paginator.get("pageReportTemplate"),this.paginator.get("pageReportValueGenerator")(this.paginator));},destroy:function(){this.span.parentNode.removeChild(this.span);this.span=null;}};})();(function(){var B=YAHOO.widget.Paginator,A=YAHOO.lang;B.ui.PageLinks=function(C){this.paginator=C;C.subscribe("recordOffsetChange",this.update,this,true);C.subscribe("rowsPerPageChange",this.update,this,true);C.subscribe("totalRecordsChange",this.update,this,true);C.subscribe("pageLinksChange",this.rebuild,this,true);C.subscribe("pageLinkClassChange",this.rebuild,this,true);C.subscribe("currentPageClassChange",this.rebuild,this,true);C.subscribe("destroy",this.destroy,this,true);C.subscribe("pageLinksContainerClassChange",this.rebuild,this,true);};B.ui.PageLinks.init=function(C){C.setAttributeConfig("pageLinkClass",{value:"yui-pg-page",validator:A.isString});C.setAttributeConfig("currentPageClass",{value:"yui-pg-current-page",validator:A.isString});C.setAttributeConfig("pageLinksContainerClass",{value:"yui-pg-pages",validator:A.isString});C.setAttributeConfig("pageLinks",{value:10,validator:B.isNumeric});C.setAttributeConfig("pageLabelBuilder",{value:function(D,E){return D;},validator:A.isFunction});};B.ui.PageLinks.calculateRange=function(E,F,D){var I=B.VALUE_UNLIMITED,H,C,G;if(!E||D===0||F===0||(F===I&&D===I)){return[0,-1];}if(F!==I){D=D===I?F:Math.min(D,F);}H=Math.max(1,Math.ceil(E-(D/2)));if(F===I){C=H+D-1;}else{C=Math.min(F,H+D-1);}G=D-(C-H+1);H=Math.max(1,H-G);return[H,C];};B.ui.PageLinks.prototype={current:0,container:null,render:function(C){var D=this.paginator;
-this.container=document.createElement("span");this.container.id=C+"-pages";this.container.className=D.get("pageLinksContainerClass");YAHOO.util.Event.on(this.container,"click",this.onClick,this,true);this.update({newValue:null,rebuild:true});return this.container;},update:function(J){if(J&&J.prevValue===J.newValue){return;}var E=this.paginator,I=E.getCurrentPage();if(this.current!==I||!I||J.rebuild){var L=E.get("pageLabelBuilder"),H=B.ui.PageLinks.calculateRange(I,E.getTotalPages(),E.get("pageLinks")),D=H[0],F=H[1],K="",C,G;C='<a href="#" class="'+E.get("pageLinkClass")+'" page="';for(G=D;G<=F;++G){if(G===I){K+='<span class="'+E.get("currentPageClass")+" "+E.get("pageLinkClass")+'">'+L(G,E)+"</span>";}else{K+=C+G+'">'+L(G,E)+"</a>";}}this.container.innerHTML=K;}},rebuild:function(C){C.rebuild=true;this.update(C);},destroy:function(){YAHOO.util.Event.purgeElement(this.container,true);this.container.parentNode.removeChild(this.container);this.container=null;},onClick:function(D){var C=YAHOO.util.Event.getTarget(D);if(C&&YAHOO.util.Dom.hasClass(C,this.paginator.get("pageLinkClass"))){YAHOO.util.Event.stopEvent(D);this.paginator.setPage(parseInt(C.getAttribute("page"),10));}}};})();(function(){var B=YAHOO.widget.Paginator,A=YAHOO.lang;B.ui.FirstPageLink=function(C){this.paginator=C;C.subscribe("recordOffsetChange",this.update,this,true);C.subscribe("rowsPerPageChange",this.update,this,true);C.subscribe("totalRecordsChange",this.update,this,true);C.subscribe("destroy",this.destroy,this,true);C.subscribe("firstPageLinkLabelChange",this.update,this,true);C.subscribe("firstPageLinkClassChange",this.update,this,true);};B.ui.FirstPageLink.init=function(C){C.setAttributeConfig("firstPageLinkLabel",{value:"&lt;&lt; first",validator:A.isString});C.setAttributeConfig("firstPageLinkClass",{value:"yui-pg-first",validator:A.isString});};B.ui.FirstPageLink.prototype={current:null,link:null,span:null,render:function(D){var E=this.paginator,F=E.get("firstPageLinkClass"),C=E.get("firstPageLinkLabel");this.link=document.createElement("a");this.span=document.createElement("span");this.link.id=D+"-first-link";this.link.href="#";this.link.className=F;this.link.innerHTML=C;YAHOO.util.Event.on(this.link,"click",this.onClick,this,true);this.span.id=D+"-first-span";this.span.className=F;this.span.innerHTML=C;this.current=E.getCurrentPage()>1?this.link:this.span;return this.current;},update:function(D){if(D&&D.prevValue===D.newValue){return;}var C=this.current?this.current.parentNode:null;if(this.paginator.getCurrentPage()>1){if(C&&this.current===this.span){C.replaceChild(this.link,this.current);this.current=this.link;}}else{if(C&&this.current===this.link){C.replaceChild(this.span,this.current);this.current=this.span;}}},destroy:function(){YAHOO.util.Event.purgeElement(this.link);this.current.parentNode.removeChild(this.current);this.link=this.span=null;},onClick:function(C){YAHOO.util.Event.stopEvent(C);this.paginator.setPage(1);}};})();(function(){var B=YAHOO.widget.Paginator,A=YAHOO.lang;B.ui.LastPageLink=function(C){this.paginator=C;C.subscribe("recordOffsetChange",this.update,this,true);C.subscribe("rowsPerPageChange",this.update,this,true);C.subscribe("totalRecordsChange",this.update,this,true);C.subscribe("destroy",this.destroy,this,true);C.subscribe("lastPageLinkLabelChange",this.update,this,true);C.subscribe("lastPageLinkClassChange",this.update,this,true);};B.ui.LastPageLink.init=function(C){C.setAttributeConfig("lastPageLinkLabel",{value:"last &gt;&gt;",validator:A.isString});C.setAttributeConfig("lastPageLinkClass",{value:"yui-pg-last",validator:A.isString});};B.ui.LastPageLink.prototype={current:null,link:null,span:null,na:null,render:function(D){var F=this.paginator,G=F.get("lastPageLinkClass"),C=F.get("lastPageLinkLabel"),E=F.getTotalPages();this.link=document.createElement("a");this.span=document.createElement("span");this.na=this.span.cloneNode(false);this.link.id=D+"-last-link";this.link.href="#";this.link.className=G;this.link.innerHTML=C;YAHOO.util.Event.on(this.link,"click",this.onClick,this,true);this.span.id=D+"-last-span";this.span.className=G;this.span.innerHTML=C;this.na.id=D+"-last-na";switch(E){case B.VALUE_UNLIMITED:this.current=this.na;break;case F.getCurrentPage():this.current=this.span;break;default:this.current=this.link;}return this.current;},update:function(D){if(D&&D.prevValue===D.newValue){return;}var C=this.current?this.current.parentNode:null,E=this.link;if(C){switch(this.paginator.getTotalPages()){case B.VALUE_UNLIMITED:E=this.na;break;case this.paginator.getCurrentPage():E=this.span;break;}if(this.current!==E){C.replaceChild(E,this.current);this.current=E;}}},destroy:function(){YAHOO.util.Event.purgeElement(this.link);this.current.parentNode.removeChild(this.current);this.link=this.span=null;},onClick:function(C){YAHOO.util.Event.stopEvent(C);this.paginator.setPage(this.paginator.getTotalPages());}};})();(function(){var B=YAHOO.widget.Paginator,A=YAHOO.lang;B.ui.NextPageLink=function(C){this.paginator=C;C.subscribe("recordOffsetChange",this.update,this,true);C.subscribe("rowsPerPageChange",this.update,this,true);C.subscribe("totalRecordsChange",this.update,this,true);C.subscribe("destroy",this.destroy,this,true);C.subscribe("nextPageLinkLabelChange",this.update,this,true);C.subscribe("nextPageLinkClassChange",this.update,this,true);};B.ui.NextPageLink.init=function(C){C.setAttributeConfig("nextPageLinkLabel",{value:"next &gt;",validator:A.isString});C.setAttributeConfig("nextPageLinkClass",{value:"yui-pg-next",validator:A.isString});};B.ui.NextPageLink.prototype={current:null,link:null,span:null,render:function(D){var F=this.paginator,G=F.get("nextPageLinkClass"),C=F.get("nextPageLinkLabel"),E=F.getTotalPages();this.link=document.createElement("a");this.span=document.createElement("span");this.link.id=D+"-next-link";this.link.href="#";this.link.className=G;this.link.innerHTML=C;YAHOO.util.Event.on(this.link,"click",this.onClick,this,true);this.span.id=D+"-next-span";this.span.className=G;
-this.span.innerHTML=C;this.current=F.getCurrentPage()===E?this.span:this.link;return this.current;},update:function(E){if(E&&E.prevValue===E.newValue){return;}var D=this.paginator.getTotalPages(),C=this.current?this.current.parentNode:null;if(this.paginator.getCurrentPage()!==D){if(C&&this.current===this.span){C.replaceChild(this.link,this.current);this.current=this.link;}}else{if(this.current===this.link){if(C){C.replaceChild(this.span,this.current);this.current=this.span;}}}},destroy:function(){YAHOO.util.Event.purgeElement(this.link);this.current.parentNode.removeChild(this.current);this.link=this.span=null;},onClick:function(C){YAHOO.util.Event.stopEvent(C);this.paginator.setPage(this.paginator.getNextPage());}};})();(function(){var B=YAHOO.widget.Paginator,A=YAHOO.lang;B.ui.PreviousPageLink=function(C){this.paginator=C;C.subscribe("recordOffsetChange",this.update,this,true);C.subscribe("rowsPerPageChange",this.update,this,true);C.subscribe("totalRecordsChange",this.update,this,true);C.subscribe("destroy",this.destroy,this,true);C.subscribe("previousPageLinkLabelChange",this.update,this,true);C.subscribe("previousPageLinkClassChange",this.update,this,true);};B.ui.PreviousPageLink.init=function(C){C.setAttributeConfig("previousPageLinkLabel",{value:"&lt; prev",validator:A.isString});C.setAttributeConfig("previousPageLinkClass",{value:"yui-pg-previous",validator:A.isString});};B.ui.PreviousPageLink.prototype={current:null,link:null,span:null,render:function(D){var E=this.paginator,F=E.get("previousPageLinkClass"),C=E.get("previousPageLinkLabel");this.link=document.createElement("a");this.span=document.createElement("span");this.link.id=D+"-prev-link";this.link.href="#";this.link.className=F;this.link.innerHTML=C;YAHOO.util.Event.on(this.link,"click",this.onClick,this,true);this.span.id=D+"-prev-span";this.span.className=F;this.span.innerHTML=C;this.current=E.getCurrentPage()>1?this.link:this.span;return this.current;},update:function(D){if(D&&D.prevValue===D.newValue){return;}var C=this.current?this.current.parentNode:null;if(this.paginator.getCurrentPage()>1){if(C&&this.current===this.span){C.replaceChild(this.link,this.current);this.current=this.link;}}else{if(C&&this.current===this.link){C.replaceChild(this.span,this.current);this.current=this.span;}}},destroy:function(){YAHOO.util.Event.purgeElement(this.link);this.current.parentNode.removeChild(this.current);this.link=this.span=null;},onClick:function(C){YAHOO.util.Event.stopEvent(C);this.paginator.setPage(this.paginator.getPreviousPage());}};})();(function(){var B=YAHOO.widget.Paginator,A=YAHOO.lang;B.ui.RowsPerPageDropdown=function(C){this.paginator=C;C.subscribe("rowsPerPageChange",this.update,this,true);C.subscribe("rowsPerPageOptionsChange",this.rebuild,this,true);C.subscribe("totalRecordsChange",this._handleTotalRecordsChange,this,true);C.subscribe("destroy",this.destroy,this,true);C.subscribe("rowsPerPageDropdownClassChange",this.rebuild,this,true);};B.ui.RowsPerPageDropdown.init=function(C){C.setAttributeConfig("rowsPerPageOptions",{value:[],validator:A.isArray});C.setAttributeConfig("rowsPerPageDropdownClass",{value:"yui-pg-rpp-options",validator:A.isString});};B.ui.RowsPerPageDropdown.prototype={select:null,all:null,render:function(C){this.select=document.createElement("select");this.select.id=C+"-rpp";this.select.className=this.paginator.get("rowsPerPageDropdownClass");this.select.title="Rows per page";YAHOO.util.Event.on(this.select,"change",this.onChange,this,true);this.rebuild();return this.select;},rebuild:function(J){var C=this.paginator,E=this.select,K=C.get("rowsPerPageOptions"),D,I,F,G,H;this.all=null;for(G=0,H=K.length;G<H;++G){I=K[G];D=E.options[G]||E.appendChild(document.createElement("option"));F=A.isValue(I.value)?I.value:I;D.innerHTML=A.isValue(I.text)?I.text:I;if(A.isString(F)&&F.toLowerCase()==="all"){this.all=D;D.value=C.get("totalRecords");}else{D.value=F;}}while(E.options.length>K.length){E.removeChild(E.firstChild);}this.update();},update:function(G){if(G&&G.prevValue===G.newValue){return;}var F=this.paginator.get("rowsPerPage")+"",D=this.select.options,E,C;for(E=0,C=D.length;E<C;++E){if(D[E].value===F){D[E].selected=true;break;}}},onChange:function(C){this.paginator.setRowsPerPage(parseInt(this.select.options[this.select.selectedIndex].value,10));},_handleTotalRecordsChange:function(C){if(!this.all||(C&&C.prevValue===C.newValue)){return;}this.all.value=C.newValue;if(this.all.selected){this.paginator.set("rowsPerPage",C.newValue);}},destroy:function(){YAHOO.util.Event.purgeElement(this.select);this.select.parentNode.removeChild(this.select);this.select=null;}};})();YAHOO.register("paginator",YAHOO.widget.Paginator,{version:"2.8.0r4",build:"2449"});
\ No newline at end of file
diff --git a/koha-tmpl/intranet-tmpl/prog/en/lib/yui/paginator/paginator.js b/koha-tmpl/intranet-tmpl/prog/en/lib/yui/paginator/paginator.js
deleted file mode 100644 (file)
index faf8ad0..0000000
+++ /dev/null
@@ -1,2393 +0,0 @@
-/*
-Copyright (c) 2009, Yahoo! Inc. All rights reserved.
-Code licensed under the BSD License:
-http://developer.yahoo.net/yui/license.txt
-version: 2.8.0r4
-*/
-(function () {
-/**
- * The Paginator widget provides a set of controls to navigate through paged
- * data.
- *
- * @module paginator
- * @uses YAHOO.util.EventProvider
- * @uses YAHOO.util.AttributeProvider
- */
-
-var Dom        = YAHOO.util.Dom,
-    lang       = YAHOO.lang,
-    isObject   = lang.isObject,
-    isFunction = lang.isFunction,
-    isArray    = lang.isArray,
-    isString   = lang.isString;
-
-/**
- * Instantiate a Paginator, passing a configuration object to the contructor.
- * The configuration object should contain the following properties:
- * <ul>
- *   <li>rowsPerPage : <em>n</em> (int)</li>
- *   <li>totalRecords : <em>n</em> (int or Paginator.VALUE_UNLIMITED)</li>
- *   <li>containers : <em>id | el | arr</em> (HTMLElement reference, its id, or an array of either)</li>
- * </ul>
- *
- * @namespace YAHOO.widget
- * @class Paginator
- * @constructor
- * @param config {Object} Object literal to set instance and ui component
- * configuration.
- */
-function Paginator(config) {
-    var UNLIMITED = Paginator.VALUE_UNLIMITED,
-        attrib, initialPage, records, perPage, startIndex;
-
-    config = isObject(config) ? config : {};
-
-    this.initConfig();
-
-    this.initEvents();
-
-    // Set the basic config keys first
-    this.set('rowsPerPage',config.rowsPerPage,true);
-    if (Paginator.isNumeric(config.totalRecords)) {
-        this.set('totalRecords',config.totalRecords,true);
-    }
-    
-    this.initUIComponents();
-
-    // Update the other config values
-    for (attrib in config) {
-        if (config.hasOwnProperty(attrib)) {
-            this.set(attrib,config[attrib],true);
-        }
-    }
-
-    // Calculate the initial record offset
-    initialPage = this.get('initialPage');
-    records     = this.get('totalRecords');
-    perPage     = this.get('rowsPerPage');
-    if (initialPage > 1 && perPage !== UNLIMITED) {
-        startIndex = (initialPage - 1) * perPage;
-        if (records === UNLIMITED || startIndex < records) {
-            this.set('recordOffset',startIndex,true);
-        }
-    }
-}
-
-
-// Static members
-lang.augmentObject(Paginator, {
-    /**
-     * Incrementing index used to give instances unique ids.
-     * @static
-     * @property Paginator.id
-     * @type number
-     * @private
-     */
-    id : 0,
-
-    /**
-     * Base of id strings used for ui components.
-     * @static
-     * @property Paginator.ID_BASE
-     * @type string
-     * @private
-     */
-    ID_BASE : 'yui-pg',
-
-    /**
-     * Used to identify unset, optional configurations, or used explicitly in
-     * the case of totalRecords to indicate unlimited pagination.
-     * @static
-     * @property Paginator.VALUE_UNLIMITED
-     * @type number
-     * @final
-     */
-    VALUE_UNLIMITED : -1,
-
-    /**
-     * Default template used by Paginator instances.  Update this if you want
-     * all new Paginators to use a different default template.
-     * @static
-     * @property Paginator.TEMPLATE_DEFAULT
-     * @type string
-     */
-    TEMPLATE_DEFAULT : "{FirstPageLink} {PreviousPageLink} {PageLinks} {NextPageLink} {LastPageLink}",
-
-    /**
-     * Common alternate pagination format, including page links, links for
-     * previous, next, first and last pages as well as a rows-per-page
-     * dropdown.  Offered as a convenience.
-     * @static
-     * @property Paginator.TEMPLATE_ROWS_PER_PAGE
-     * @type string
-     */
-    TEMPLATE_ROWS_PER_PAGE : "{FirstPageLink} {PreviousPageLink} {PageLinks} {NextPageLink} {LastPageLink} {RowsPerPageDropdown}",
-
-    /**
-     * Storage object for UI Components
-     * @static
-     * @property Paginator.ui
-     */
-    ui : {},
-
-    /**
-     * Similar to YAHOO.lang.isNumber, but allows numeric strings.  This is
-     * is used for attribute validation in conjunction with getters that return
-     * numbers.
-     *
-     * @method Paginator.isNumeric
-     * @param v {Number|String} value to be checked for number or numeric string
-     * @returns {Boolean} true if the input is coercable into a finite number
-     * @static
-     */
-    isNumeric : function (v) {
-        return isFinite(+v);
-    },
-
-    /**
-     * Return a number or null from input
-     *
-     * @method Paginator.toNumber
-     * @param n {Number|String} a number or numeric string
-     * @return Number
-     * @static
-     */
-    toNumber : function (n) {
-        return isFinite(+n) ? +n : null;
-    }
-
-},true);
-
-
-// Instance members and methods
-Paginator.prototype = {
-
-    // Instance members
-
-    /**
-     * Array of nodes in which to render pagination controls.  This is set via
-     * the &quot;containers&quot; attribute.
-     * @property _containers
-     * @type Array(HTMLElement)
-     * @private
-     */
-    _containers : [],
-
-    /**
-     * Flag used to indicate multiple attributes are being updated via setState
-     * @property _batch
-     * @type boolean
-     * @protected
-     */
-    _batch : false,
-
-    /**
-     * Used by setState to indicate when a page change has occurred
-     * @property _pageChanged
-     * @type boolean
-     * @protected
-     */
-    _pageChanged : false,
-
-    /**
-     * Temporary state cache used by setState to keep track of the previous
-     * state for eventual pageChange event firing
-     * @property _state
-     * @type Object
-     * @protected
-     */
-    _state : null,
-
-
-    // Instance methods
-
-    /**
-     * Initialize the Paginator's attributes (see YAHOO.util.Element class
-     * AttributeProvider).
-     * @method initConfig
-     * @private
-     */
-    initConfig : function () {
-
-        var UNLIMITED = Paginator.VALUE_UNLIMITED;
-
-        /**
-         * REQUIRED. Number of records constituting a &quot;page&quot;
-         * @attribute rowsPerPage
-         * @type integer
-         */
-        this.setAttributeConfig('rowsPerPage', {
-            value     : 0,
-            validator : Paginator.isNumeric,
-            setter    : Paginator.toNumber
-        });
-
-        /**
-         * REQUIRED. Node references or ids of nodes in which to render the
-         * pagination controls.
-         * @attribute containers
-         * @type {string|HTMLElement|Array(string|HTMLElement)}
-         */
-        this.setAttributeConfig('containers', {
-            value     : null,
-            validator : function (val) {
-                if (!isArray(val)) {
-                    val = [val];
-                }
-                for (var i = 0, len = val.length; i < len; ++i) {
-                    if (isString(val[i]) || 
-                        (isObject(val[i]) && val[i].nodeType === 1)) {
-                        continue;
-                    }
-                    return false;
-                }
-                return true;
-            },
-            method : function (val) {
-                val = Dom.get(val);
-                if (!isArray(val)) {
-                    val = [val];
-                }
-                this._containers = val;
-            }
-        });
-
-        /**
-         * Total number of records to paginate through
-         * @attribute totalRecords
-         * @type integer
-         * @default 0
-         */
-        this.setAttributeConfig('totalRecords', {
-            value     : 0,
-            validator : Paginator.isNumeric,
-            setter    : Paginator.toNumber
-        });
-
-        /**
-         * Zero based index of the record considered first on the current page.
-         * For page based interactions, don't modify this attribute directly;
-         * use setPage(n).
-         * @attribute recordOffset
-         * @type integer
-         * @default 0
-         */
-        this.setAttributeConfig('recordOffset', {
-            value     : 0,
-            validator : function (val) {
-                var total = this.get('totalRecords');
-                if (Paginator.isNumeric(val)) {
-                    val = +val;
-                    return total === UNLIMITED || total > val ||
-                           (total === 0 && val === 0);
-                }
-
-                return false;
-            },
-            setter    : Paginator.toNumber
-        });
-
-        /**
-         * Page to display on initial paint
-         * @attribute initialPage
-         * @type integer
-         * @default 1
-         */
-        this.setAttributeConfig('initialPage', {
-            value     : 1,
-            validator : Paginator.isNumeric,
-            setter    : Paginator.toNumber
-        });
-
-        /**
-         * Template used to render controls.  The string will be used as
-         * innerHTML on all specified container nodes.  Bracketed keys
-         * (e.g. {pageLinks}) in the string will be replaced with an instance
-         * of the so named ui component.
-         * @see Paginator.TEMPLATE_DEFAULT
-         * @see Paginator.TEMPLATE_ROWS_PER_PAGE
-         * @attribute template
-         * @type string
-         */
-        this.setAttributeConfig('template', {
-            value : Paginator.TEMPLATE_DEFAULT,
-            validator : isString
-        });
-
-        /**
-         * Class assigned to the element(s) containing pagination controls.
-         * @attribute containerClass
-         * @type string
-         * @default 'yui-pg-container'
-         */
-        this.setAttributeConfig('containerClass', {
-            value : 'yui-pg-container',
-            validator : isString
-        });
-
-        /**
-         * Display pagination controls even when there is only one page.  Set
-         * to false to forgo rendering and/or hide the containers when there
-         * is only one page of data.  Note if you are using the rowsPerPage
-         * dropdown ui component, visibility will be maintained as long as the
-         * number of records exceeds the smallest page size.
-         * @attribute alwaysVisible
-         * @type boolean
-         * @default true
-         */
-        this.setAttributeConfig('alwaysVisible', {
-            value : true,
-            validator : lang.isBoolean
-        });
-
-        /**
-         * Update the UI immediately upon interaction.  If false, changeRequest
-         * subscribers or other external code will need to explicitly set the
-         * new values in the paginator to trigger repaint.
-         * @attribute updateOnChange
-         * @type boolean
-         * @default false
-         * @deprecated use changeRequest listener that calls setState
-         */
-        this.setAttributeConfig('updateOnChange', {
-            value     : false,
-            validator : lang.isBoolean
-        });
-
-
-
-        // Read only attributes
-
-        /**
-         * Unique id assigned to this instance
-         * @attribute id
-         * @type integer
-         * @final
-         */
-        this.setAttributeConfig('id', {
-            value    : Paginator.id++,
-            readOnly : true
-        });
-
-        /**
-         * Indicator of whether the DOM nodes have been initially created
-         * @attribute rendered
-         * @type boolean
-         * @final
-         */
-        this.setAttributeConfig('rendered', {
-            value    : false,
-            readOnly : true
-        });
-
-    },
-
-    /**
-     * Initialize registered ui components onto this instance.
-     * @method initUIComponents
-     * @private
-     */
-    initUIComponents : function () {
-        var ui = Paginator.ui,
-            name,UIComp;
-        for (name in ui) {
-            if (ui.hasOwnProperty(name)) {
-                UIComp = ui[name];
-                if (isObject(UIComp) && isFunction(UIComp.init)) {
-                    UIComp.init(this);
-                }
-            }
-        }
-    },
-
-    /**
-     * Initialize this instance's CustomEvents.
-     * @method initEvents
-     * @private
-     */
-    initEvents : function () {
-        /**
-         * Event fired when the Paginator is initially rendered
-         * @event render
-         */
-        this.createEvent('render');
-
-        /**
-         * Event fired when the Paginator is initially rendered
-         * @event rendered
-         * @deprecated use render event
-         */
-        this.createEvent('rendered'); // backward compatibility
-
-        /**
-         * Event fired when a change in pagination values is requested,
-         * either by interacting with the various ui components or via the
-         * setStartIndex(n) etc APIs.
-         * Subscribers will receive the proposed state as the first parameter.
-         * The proposed state object will contain the following keys:
-         * <ul>
-         *   <li>paginator - the Paginator instance</li>
-         *   <li>page</li>
-         *   <li>totalRecords</li>
-         *   <li>recordOffset - index of the first record on the new page</li>
-         *   <li>rowsPerPage</li>
-         *   <li>records - array containing [start index, end index] for the records on the new page</li>
-         *   <li>before - object literal with all these keys for the current state</li>
-         * </ul>
-         * @event changeRequest
-         */
-        this.createEvent('changeRequest');
-
-        /**
-         * Event fired when attribute changes have resulted in the calculated
-         * current page changing.
-         * @event pageChange
-         */
-        this.createEvent('pageChange');
-
-        /**
-         * Event that fires before the destroy event.
-         * @event beforeDestroy
-         */
-        this.createEvent('beforeDestroy');
-
-        /**
-         * Event used to trigger cleanup of ui components
-         * @event destroy
-         */
-        this.createEvent('destroy');
-
-        this._selfSubscribe();
-    },
-
-    /**
-     * Subscribes to instance attribute change events to automate certain
-     * behaviors.
-     * @method _selfSubscribe
-     * @protected
-     */
-    _selfSubscribe : function () {
-        // Listen for changes to totalRecords and alwaysVisible 
-        this.subscribe('totalRecordsChange',this.updateVisibility,this,true);
-        this.subscribe('alwaysVisibleChange',this.updateVisibility,this,true);
-
-        // Fire the pageChange event when appropriate
-        this.subscribe('totalRecordsChange',this._handleStateChange,this,true);
-        this.subscribe('recordOffsetChange',this._handleStateChange,this,true);
-        this.subscribe('rowsPerPageChange',this._handleStateChange,this,true);
-
-        // Update recordOffset when totalRecords is reduced below
-        this.subscribe('totalRecordsChange',this._syncRecordOffset,this,true);
-    },
-
-    /**
-     * Sets recordOffset to the starting index of the previous page when
-     * totalRecords is reduced below the current recordOffset.
-     * @method _syncRecordOffset
-     * @param e {Event} totalRecordsChange event
-     * @protected
-     */
-    _syncRecordOffset : function (e) {
-        var v = e.newValue,rpp,state;
-        if (e.prevValue !== v) {
-            if (v !== Paginator.VALUE_UNLIMITED) {
-                rpp = this.get('rowsPerPage');
-
-                if (rpp && this.get('recordOffset') >= v) {
-                    state = this.getState({
-                        totalRecords : e.prevValue,
-                        recordOffset : this.get('recordOffset')
-                    });
-
-                    this.set('recordOffset', state.before.recordOffset);
-                    this._firePageChange(state);
-                }
-            }
-        }
-    },
-
-    /**
-     * Fires the pageChange event when the state attributes have changed in
-     * such a way as to locate the current recordOffset on a new page.
-     * @method _handleStateChange
-     * @param e {Event} the attribute change event
-     * @protected
-     */
-    _handleStateChange : function (e) {
-        if (e.prevValue !== e.newValue) {
-            var change = this._state || {},
-                state;
-
-            change[e.type.replace(/Change$/,'')] = e.prevValue;
-            state = this.getState(change);
-
-            if (state.page !== state.before.page) {
-                if (this._batch) {
-                    this._pageChanged = true;
-                } else {
-                    this._firePageChange(state);
-                }
-            }
-        }
-    },
-
-    /**
-     * Fires a pageChange event in the form of a standard attribute change
-     * event with additional properties prevState and newState.
-     * @method _firePageChange
-     * @param state {Object} the result of getState(oldState)
-     * @protected
-     */
-    _firePageChange : function (state) {
-        if (isObject(state)) {
-            var current = state.before;
-            delete state.before;
-            this.fireEvent('pageChange',{
-                type      : 'pageChange',
-                prevValue : state.page,
-                newValue  : current.page,
-                prevState : state,
-                newState  : current
-            });
-        }
-    },
-
-    /**
-     * Render the pagination controls per the format attribute into the
-     * specified container nodes.
-     * @method render
-     * @return the Paginator instance
-     * @chainable
-     */
-    render : function () {
-        if (this.get('rendered')) {
-            return this;
-        }
-
-        var template = this.get('template'),
-            state    = this.getState(),
-            // ex. yui-pg0-1 (first paginator, second container)
-            id_base  = Paginator.ID_BASE + this.get('id') + '-',
-            i, len;
-
-        // Assemble the containers, keeping them hidden
-        for (i = 0, len = this._containers.length; i < len; ++i) {
-            this._renderTemplate(this._containers[i],template,id_base+i,true);
-        }
-
-        // Show the containers if appropriate
-        this.updateVisibility();
-
-        // Set render attribute manually to support its readOnly contract
-        if (this._containers.length) {
-            this.setAttributeConfig('rendered', { value: true });
-
-            this.fireEvent('render', state);
-            // For backward compatibility
-            this.fireEvent('rendered', state);
-        }
-
-        return this;
-    },
-
-    /**
-     * Creates the individual ui components and renders them into a container.
-     *
-     * @method _renderTemplate
-     * @param container {HTMLElement} where to add the ui components
-     * @param template {String} the template to use as a guide for rendering
-     * @param id_base {String} id base for the container's ui components
-     * @param hide {Boolean} leave the container hidden after assembly
-     * @protected
-     */
-    _renderTemplate : function (container, template, id_base, hide) {
-        var containerClass = this.get('containerClass'),
-            markers, i, len;
-
-        if (!container) {
-            return;
-        }
-
-        // Hide the container while its contents are rendered
-        Dom.setStyle(container,'display','none');
-
-        Dom.addClass(container, containerClass);
-
-        // Place the template innerHTML, adding marker spans to the template
-        // html to indicate drop zones for ui components
-        container.innerHTML = template.replace(/\{([a-z0-9_ \-]+)\}/gi,
-            '<span class="yui-pg-ui yui-pg-ui-$1"></span>');
-
-        // Replace each marker with the ui component's render() output
-        markers = Dom.getElementsByClassName('yui-pg-ui','span',container);
-
-        for (i = 0, len = markers.length; i < len; ++i) {
-            this.renderUIComponent(markers[i], id_base);
-        }
-
-        if (!hide) {
-            // Show the container allowing page reflow
-            Dom.setStyle(container,'display','');
-        }
-    },
-
-    /**
-     * Replaces a marker node with a rendered UI component, determined by the
-     * yui-pg-ui-(UI component class name) in the marker's className. e.g.
-     * yui-pg-ui-PageLinks => new YAHOO.widget.Paginator.ui.PageLinks(this)
-     *
-     * @method renderUIComponent
-     * @param marker {HTMLElement} the marker node to replace
-     * @param id_base {String} string base the component's generated id
-     */
-    renderUIComponent : function (marker, id_base) {
-        var par    = marker.parentNode,
-            name   = /yui-pg-ui-(\w+)/.exec(marker.className),
-            UIComp = name && Paginator.ui[name[1]],
-            comp;
-
-        if (isFunction(UIComp)) {
-            comp = new UIComp(this);
-            if (isFunction(comp.render)) {
-                par.replaceChild(comp.render(id_base),marker);
-            }
-        }
-    },
-
-    /**
-     * Removes controls from the page and unhooks events.
-     * @method destroy
-     */
-    destroy : function () {
-        this.fireEvent('beforeDestroy');
-        this.fireEvent('destroy');
-
-        this.setAttributeConfig('rendered',{value:false});
-        this.unsubscribeAll();
-    },
-
-    /**
-     * Hides the containers if there is only one page of data and attribute
-     * alwaysVisible is false.  Conversely, it displays the containers if either
-     * there is more than one page worth of data or alwaysVisible is turned on.
-     * @method updateVisibility
-     */
-    updateVisibility : function (e) {
-        var alwaysVisible = this.get('alwaysVisible'),
-            totalRecords,visible,rpp,rppOptions,i,len;
-
-        if (!e || e.type === 'alwaysVisibleChange' || !alwaysVisible) {
-            totalRecords = this.get('totalRecords');
-            visible      = true;
-            rpp          = this.get('rowsPerPage');
-            rppOptions   = this.get('rowsPerPageOptions');
-
-            if (isArray(rppOptions)) {
-                for (i = 0, len = rppOptions.length; i < len; ++i) {
-                    rpp = Math.min(rpp,rppOptions[i]);
-                }
-            }
-
-            if (totalRecords !== Paginator.VALUE_UNLIMITED &&
-                totalRecords <= rpp) {
-                visible = false;
-            }
-
-            visible = visible || alwaysVisible;
-
-            for (i = 0, len = this._containers.length; i < len; ++i) {
-                Dom.setStyle(this._containers[i],'display',
-                    visible ? '' : 'none');
-            }
-        }
-    },
-
-
-
-
-    /**
-     * Get the configured container nodes
-     * @method getContainerNodes
-     * @return {Array} array of HTMLElement nodes
-     */
-    getContainerNodes : function () {
-        return this._containers;
-    },
-
-    /**
-     * Get the total number of pages in the data set according to the current
-     * rowsPerPage and totalRecords values.  If totalRecords is not set, or
-     * set to YAHOO.widget.Paginator.VALUE_UNLIMITED, returns
-     * YAHOO.widget.Paginator.VALUE_UNLIMITED.
-     * @method getTotalPages
-     * @return {number}
-     */
-    getTotalPages : function () {
-        var records = this.get('totalRecords'),
-            perPage = this.get('rowsPerPage');
-
-        // rowsPerPage not set.  Can't calculate
-        if (!perPage) {
-            return null;
-        }
-
-        if (records === Paginator.VALUE_UNLIMITED) {
-            return Paginator.VALUE_UNLIMITED;
-        }
-
-        return Math.ceil(records/perPage);
-    },
-
-    /**
-     * Does the requested page have any records?
-     * @method hasPage
-     * @param page {number} the page in question
-     * @return {boolean}
-     */
-    hasPage : function (page) {
-        if (!lang.isNumber(page) || page < 1) {
-            return false;
-        }
-
-        var totalPages = this.getTotalPages();
-
-        return (totalPages === Paginator.VALUE_UNLIMITED || totalPages >= page);
-    },
-
-    /**
-     * Get the page number corresponding to the current record offset.
-     * @method getCurrentPage
-     * @return {number}
-     */
-    getCurrentPage : function () {
-        var perPage = this.get('rowsPerPage');
-        if (!perPage || !this.get('totalRecords')) {
-            return 0;
-        }
-        return Math.floor(this.get('recordOffset') / perPage) + 1;
-    },
-
-    /**
-     * Are there records on the next page?
-     * @method hasNextPage
-     * @return {boolean}
-     */
-    hasNextPage : function () {
-        var currentPage = this.getCurrentPage(),
-            totalPages  = this.getTotalPages();
-
-        return currentPage && (totalPages === Paginator.VALUE_UNLIMITED || currentPage < totalPages);
-    },
-
-    /**
-     * Get the page number of the next page, or null if the current page is the
-     * last page.
-     * @method getNextPage
-     * @return {number}
-     */
-    getNextPage : function () {
-        return this.hasNextPage() ? this.getCurrentPage() + 1 : null;
-    },
-
-    /**
-     * Is there a page before the current page?
-     * @method hasPreviousPage
-     * @return {boolean}
-     */
-    hasPreviousPage : function () {
-        return (this.getCurrentPage() > 1);
-    },
-
-    /**
-     * Get the page number of the previous page, or null if the current page
-     * is the first page.
-     * @method getPreviousPage
-     * @return {number}
-     */
-    getPreviousPage : function () {
-        return (this.hasPreviousPage() ? this.getCurrentPage() - 1 : 1);
-    },
-
-    /**
-     * Get the start and end record indexes of the specified page.
-     * @method getPageRecords
-     * @param page {number} (optional) The page (current page if not specified)
-     * @return {Array} [start_index, end_index]
-     */
-    getPageRecords : function (page) {
-        if (!lang.isNumber(page)) {
-            page = this.getCurrentPage();
-        }
-
-        var perPage = this.get('rowsPerPage'),
-            records = this.get('totalRecords'),
-            start, end;
-
-        if (!page || !perPage) {
-            return null;
-        }
-
-        start = (page - 1) * perPage;
-        if (records !== Paginator.VALUE_UNLIMITED) {
-            if (start >= records) {
-                return null;
-            }
-            end = Math.min(start + perPage, records) - 1;
-        } else {
-            end = start + perPage - 1;
-        }
-
-        return [start,end];
-    },
-
-    /**
-     * Set the current page to the provided page number if possible.
-     * @method setPage
-     * @param newPage {number} the new page number
-     * @param silent {boolean} whether to forcibly avoid firing the
-     * changeRequest event
-     */
-    setPage : function (page,silent) {
-        if (this.hasPage(page) && page !== this.getCurrentPage()) {
-            if (this.get('updateOnChange') || silent) {
-                this.set('recordOffset', (page - 1) * this.get('rowsPerPage'));
-            } else {
-                this.fireEvent('changeRequest',this.getState({'page':page}));
-            }
-        }
-    },
-
-    /**
-     * Get the number of rows per page.
-     * @method getRowsPerPage
-     * @return {number} the current setting of the rowsPerPage attribute
-     */
-    getRowsPerPage : function () {
-        return this.get('rowsPerPage');
-    },
-
-    /**
-     * Set the number of rows per page.
-     * @method setRowsPerPage
-     * @param rpp {number} the new number of rows per page
-     * @param silent {boolean} whether to forcibly avoid firing the
-     * changeRequest event
-     */
-    setRowsPerPage : function (rpp,silent) {
-        if (Paginator.isNumeric(rpp) && +rpp > 0 &&
-            +rpp !== this.get('rowsPerPage')) {
-            if (this.get('updateOnChange') || silent) {
-                this.set('rowsPerPage',rpp);
-            } else {
-                this.fireEvent('changeRequest',
-                    this.getState({'rowsPerPage':+rpp}));
-            }
-        }
-    },
-
-    /**
-     * Get the total number of records.
-     * @method getTotalRecords
-     * @return {number} the current setting of totalRecords attribute
-     */
-    getTotalRecords : function () {
-        return this.get('totalRecords');
-    },
-
-    /**
-     * Set the total number of records.
-     * @method setTotalRecords
-     * @param total {number} the new total number of records
-     * @param silent {boolean} whether to forcibly avoid firing the changeRequest event
-     */
-    setTotalRecords : function (total,silent) {
-        if (Paginator.isNumeric(total) && +total >= 0 &&
-            +total !== this.get('totalRecords')) {
-            if (this.get('updateOnChange') || silent) {
-                this.set('totalRecords',total);
-            } else {
-                this.fireEvent('changeRequest',
-                    this.getState({'totalRecords':+total}));
-            }
-        }
-    },
-
-    /**
-     * Get the index of the first record on the current page
-     * @method getStartIndex
-     * @return {number} the index of the first record on the current page
-     */
-    getStartIndex : function () {
-        return this.get('recordOffset');
-    },
-
-    /**
-     * Move the record offset to a new starting index.  This will likely cause
-     * the calculated current page to change.  You should probably use setPage.
-     * @method setStartIndex
-     * @param offset {number} the new record offset
-     * @param silent {boolean} whether to forcibly avoid firing the changeRequest event
-     */
-    setStartIndex : function (offset,silent) {
-        if (Paginator.isNumeric(offset) && +offset >= 0 &&
-            +offset !== this.get('recordOffset')) {
-            if (this.get('updateOnChange') || silent) {
-                this.set('recordOffset',offset);
-            } else {
-                this.fireEvent('changeRequest',
-                    this.getState({'recordOffset':+offset}));
-            }
-        }
-    },
-
-    /**
-     * Get an object literal describing the current state of the paginator.  If
-     * an object literal of proposed values is passed, the proposed state will
-     * be returned as an object literal with the following keys:
-     * <ul>
-     * <li>paginator - instance of the Paginator</li>
-     * <li>page - number</li>
-     * <li>totalRecords - number</li>
-     * <li>recordOffset - number</li>
-     * <li>rowsPerPage - number</li>
-     * <li>records - [ start_index, end_index ]</li>
-     * <li>before - (OPTIONAL) { state object literal for current state }</li>
-     * </ul>
-     * @method getState
-     * @return {object}
-     * @param changes {object} OPTIONAL object literal with proposed values
-     * Supported change keys include:
-     * <ul>
-     * <li>rowsPerPage</li>
-     * <li>totalRecords</li>
-     * <li>recordOffset OR</li>
-     * <li>page</li>
-     * </ul>
-     */
-    getState : function (changes) {
-        var UNLIMITED = Paginator.VALUE_UNLIMITED,
-            M = Math, max = M.max, ceil = M.ceil,
-            currentState, state, offset;
-
-        function normalizeOffset(offset,total,rpp) {
-            if (offset <= 0 || total === 0) {
-                return 0;
-            }
-            if (total === UNLIMITED || total > offset) {
-                return offset - (offset % rpp);
-            }
-            return total - (total % rpp || rpp);
-        }
-
-        currentState = {
-            paginator    : this,
-            totalRecords : this.get('totalRecords'),
-            rowsPerPage  : this.get('rowsPerPage'),
-            records      : this.getPageRecords()
-        };
-        currentState.recordOffset = normalizeOffset(
-                                        this.get('recordOffset'),
-                                        currentState.totalRecords,
-                                        currentState.rowsPerPage);
-        currentState.page = ceil(currentState.recordOffset /
-                                 currentState.rowsPerPage) + 1;
-
-        if (!changes) {
-            return currentState;
-        }
-
-        state = {
-            paginator    : this,
-            before       : currentState,
-
-            rowsPerPage  : changes.rowsPerPage || currentState.rowsPerPage,
-            totalRecords : (Paginator.isNumeric(changes.totalRecords) ?
-                                max(changes.totalRecords,UNLIMITED) :
-                                +currentState.totalRecords)
-        };
-
-        if (state.totalRecords === 0) {
-            state.recordOffset =
-            state.page         = 0;
-        } else {
-            offset = Paginator.isNumeric(changes.page) ?
-                        (changes.page - 1) * state.rowsPerPage :
-                        Paginator.isNumeric(changes.recordOffset) ?
-                            +changes.recordOffset :
-                            currentState.recordOffset;
-
-            state.recordOffset = normalizeOffset(offset,
-                                    state.totalRecords,
-                                    state.rowsPerPage);
-
-            state.page = ceil(state.recordOffset / state.rowsPerPage) + 1;
-        }
-
-        state.records = [ state.recordOffset,
-                          state.recordOffset + state.rowsPerPage - 1 ];
-
-        // limit upper index to totalRecords - 1
-        if (state.totalRecords !== UNLIMITED &&
-            state.recordOffset < state.totalRecords && state.records &&
-            state.records[1] > state.totalRecords - 1) {
-            state.records[1] = state.totalRecords - 1;
-        }
-
-        return state;
-    },
-
-    /**
-     * Convenience method to facilitate setting state attributes rowsPerPage,
-     * totalRecords, recordOffset in batch.  Also supports calculating
-     * recordOffset from state.page if state.recordOffset is not provided.
-     * Fires only a single pageChange event, if appropriate.
-     * This will not fire a changeRequest event.
-     * @method setState
-     * @param state {Object} Object literal of attribute:value pairs to set
-     */
-    setState : function (state) {
-        if (isObject(state)) {
-            // get flux state based on current state with before state as well
-            this._state = this.getState({});
-
-            // use just the state props from the input obj
-            state = {
-                page         : state.page,
-                rowsPerPage  : state.rowsPerPage,
-                totalRecords : state.totalRecords,
-                recordOffset : state.recordOffset
-            };
-
-            // calculate recordOffset from page if recordOffset not specified.
-            // not using lang.isNumber for support of numeric strings
-            if (state.page && state.recordOffset === undefined) {
-                state.recordOffset = (state.page - 1) *
-                    (state.rowsPerPage || this.get('rowsPerPage'));
-            }
-
-            this._batch = true;
-            this._pageChanged = false;
-
-            for (var k in state) {
-                if (state.hasOwnProperty(k) && this._configs.hasOwnProperty(k)) {
-                    this.set(k,state[k]);
-                }
-            }
-
-            this._batch = false;
-            
-            if (this._pageChanged) {
-                this._pageChanged = false;
-
-                this._firePageChange(this.getState(this._state));
-            }
-        }
-    }
-};
-
-lang.augmentProto(Paginator, YAHOO.util.AttributeProvider);
-
-YAHOO.widget.Paginator = Paginator;
-})();
-(function () {
-
-var Paginator = YAHOO.widget.Paginator,
-    l         = YAHOO.lang;
-
-/**
- * ui Component to generate the textual report of current pagination status.
- * E.g. "Now viewing page 1 of 13".
- *
- * @namespace YAHOO.widget.Paginator.ui
- * @class CurrentPageReport
- * @for YAHOO.widget.Paginator
- *
- * @constructor
- * @param p {Pagintor} Paginator instance to attach to
- */
-Paginator.ui.CurrentPageReport = function (p) {
-    this.paginator = p;
-
-    p.subscribe('recordOffsetChange', this.update,this,true);
-    p.subscribe('rowsPerPageChange', this.update,this,true);
-    p.subscribe('totalRecordsChange',this.update,this,true);
-    p.subscribe('pageReportTemplateChange', this.update,this,true);
-    p.subscribe('destroy',this.destroy,this,true);
-
-    //TODO: make this work
-    p.subscribe('pageReportClassChange', this.update,this,true);
-};
-
-/**
- * Decorates Paginator instances with new attributes. Called during
- * Paginator instantiation.
- * @method init
- * @param p {Paginator} Paginator instance to decorate
- * @static
- */
-Paginator.ui.CurrentPageReport.init = function (p) {
-
-    /**
-     * CSS class assigned to the span containing the info.
-     * @attribute pageReportClass
-     * @default 'yui-pg-current'
-     */
-    p.setAttributeConfig('pageReportClass', {
-        value : 'yui-pg-current',
-        validator : l.isString
-    });
-
-    /**
-     * Used as innerHTML for the span.  Place holders in the form of {name}
-     * will be replaced with the so named value from the key:value map
-     * generated by the function held in the pageReportValueGenerator attribute.
-     * @attribute pageReportTemplate
-     * @default '({currentPage} of {totalPages})'
-     * @see pageReportValueGenerator attribute
-     */
-    p.setAttributeConfig('pageReportTemplate', {
-        value : '({currentPage} of {totalPages})',
-        validator : l.isString
-    });
-
-    /**
-     * Function to generate the value map used to populate the
-     * pageReportTemplate.  The function is passed the Paginator instance as a
-     * parameter.  The default function returns a map with the following keys:
-     * <ul>
-     * <li>currentPage</li>
-     * <li>totalPages</li>
-     * <li>startIndex</li>
-     * <li>endIndex</li>
-     * <li>startRecord</li>
-     * <li>endRecord</li>
-     * <li>totalRecords</li>
-     * </ul>
-     * @attribute pageReportValueGenarator
-     */
-    p.setAttributeConfig('pageReportValueGenerator', {
-        value : function (paginator) {
-            var curPage = paginator.getCurrentPage(),
-                records = paginator.getPageRecords();
-
-            return {
-                'currentPage' : records ? curPage : 0,
-                'totalPages'  : paginator.getTotalPages(),
-                'startIndex'  : records ? records[0] : 0,
-                'endIndex'    : records ? records[1] : 0,
-                'startRecord' : records ? records[0] + 1 : 0,
-                'endRecord'   : records ? records[1] + 1 : 0,
-                'totalRecords': paginator.get('totalRecords')
-            };
-        },
-        validator : l.isFunction
-    });
-};
-
-/**
- * Replace place holders in a string with the named values found in an
- * object literal.
- * @static
- * @method sprintf
- * @param template {string} The content string containing place holders
- * @param values {object} The key:value pairs used to replace the place holders
- * @return {string}
- */
-Paginator.ui.CurrentPageReport.sprintf = function (template, values) {
-    return template.replace(/\{([\w\s\-]+)\}/g, function (x,key) {
-            return (key in values) ? values[key] : '';
-        });
-};
-
-Paginator.ui.CurrentPageReport.prototype = {
-
-    /**
-     * Span node containing the formatted info
-     * @property span
-     * @type HTMLElement
-     * @private
-     */
-    span : null,
-
-
-    /**
-     * Generate the span containing info formatted per the pageReportTemplate
-     * attribute.
-     * @method render
-     * @param id_base {string} used to create unique ids for generated nodes
-     * @return {HTMLElement}
-     */
-    render : function (id_base) {
-        this.span = document.createElement('span');
-        this.span.id        = id_base + '-page-report';
-        this.span.className = this.paginator.get('pageReportClass');
-        this.update();
-        
-        return this.span;
-    },
-    
-    /**
-     * Regenerate the content of the span if appropriate. Calls
-     * CurrentPageReport.sprintf with the value of the pageReportTemplate
-     * attribute and the value map returned from pageReportValueGenerator
-     * function.
-     * @method update
-     * @param e {CustomEvent} The calling change event
-     */
-    update : function (e) {
-        if (e && e.prevValue === e.newValue) {
-            return;
-        }
-
-        this.span.innerHTML = Paginator.ui.CurrentPageReport.sprintf(
-            this.paginator.get('pageReportTemplate'),
-            this.paginator.get('pageReportValueGenerator')(this.paginator));
-    },
-
-    /**
-     * Removes the link/span node and clears event listeners
-     * removal.
-     * @method destroy
-     * @private
-     */
-    destroy : function () {
-        this.span.parentNode.removeChild(this.span);
-        this.span = null;
-    }
-
-};
-
-})();
-(function () {
-
-var Paginator = YAHOO.widget.Paginator,
-    l         = YAHOO.lang;
-
-/**
- * ui Component to generate the page links
- *
- * @namespace YAHOO.widget.Paginator.ui
- * @class PageLinks
- * @for YAHOO.widget.Paginator
- *
- * @constructor
- * @param p {Pagintor} Paginator instance to attach to
- */
-Paginator.ui.PageLinks = function (p) {
-    this.paginator = p;
-
-    p.subscribe('recordOffsetChange',this.update,this,true);
-    p.subscribe('rowsPerPageChange',this.update,this,true);
-    p.subscribe('totalRecordsChange',this.update,this,true);
-    p.subscribe('pageLinksChange',   this.rebuild,this,true);
-    p.subscribe('pageLinkClassChange', this.rebuild,this,true);
-    p.subscribe('currentPageClassChange', this.rebuild,this,true);
-    p.subscribe('destroy',this.destroy,this,true);
-
-    //TODO: Make this work
-    p.subscribe('pageLinksContainerClassChange', this.rebuild,this,true);
-};
-
-/**
- * Decorates Paginator instances with new attributes. Called during
- * Paginator instantiation.
- * @method init
- * @param p {Paginator} Paginator instance to decorate
- * @static
- */
-Paginator.ui.PageLinks.init = function (p) {
-
-    /**
-     * CSS class assigned to each page link/span.
-     * @attribute pageLinkClass
-     * @default 'yui-pg-page'
-     */
-    p.setAttributeConfig('pageLinkClass', {
-        value : 'yui-pg-page',
-        validator : l.isString
-    });
-
-    /**
-     * CSS class assigned to the current page span.
-     * @attribute currentPageClass
-     * @default 'yui-pg-current-page'
-     */
-    p.setAttributeConfig('currentPageClass', {
-        value : 'yui-pg-current-page',
-        validator : l.isString
-    });
-
-    /**
-     * CSS class assigned to the span containing the page links.
-     * @attribute pageLinksContainerClass
-     * @default 'yui-pg-pages'
-     */
-    p.setAttributeConfig('pageLinksContainerClass', {
-        value : 'yui-pg-pages',
-        validator : l.isString
-    });
-
-    /**
-     * Maximum number of page links to display at one time.
-     * @attribute pageLinks
-     * @default 10
-     */
-    p.setAttributeConfig('pageLinks', {
-        value : 10,
-        validator : Paginator.isNumeric
-    });
-
-    /**
-     * Function used generate the innerHTML for each page link/span.  The
-     * function receives as parameters the page number and a reference to the
-     * paginator object.
-     * @attribute pageLabelBuilder
-     * @default function (page, paginator) { return page; }
-     */
-    p.setAttributeConfig('pageLabelBuilder', {
-        value : function (page, paginator) { return page; },
-        validator : l.isFunction
-    });
-};
-
-/**
- * Calculates start and end page numbers given a current page, attempting
- * to keep the current page in the middle
- * @static
- * @method calculateRange
- * @param {int} currentPage  The current page
- * @param {int} totalPages   (optional) Maximum number of pages
- * @param {int} numPages     (optional) Preferred number of pages in range
- * @return {Array} [start_page_number, end_page_number]
- */
-Paginator.ui.PageLinks.calculateRange = function (currentPage,totalPages,numPages) {
-    var UNLIMITED = Paginator.VALUE_UNLIMITED,
-        start, end, delta;
-
-    // Either has no pages, or unlimited pages.  Show none.
-    if (!currentPage || numPages === 0 || totalPages === 0 ||
-        (totalPages === UNLIMITED && numPages === UNLIMITED)) {
-        return [0,-1];
-    }
-
-    // Limit requested pageLinks if there are fewer totalPages
-    if (totalPages !== UNLIMITED) {
-        numPages = numPages === UNLIMITED ?
-                    totalPages :
-                    Math.min(numPages,totalPages);
-    }
-
-    // Determine start and end, trying to keep current in the middle
-    start = Math.max(1,Math.ceil(currentPage - (numPages/2)));
-    if (totalPages === UNLIMITED) {
-        end = start + numPages - 1;
-    } else {
-        end = Math.min(totalPages, start + numPages - 1);
-    }
-
-    // Adjust the start index when approaching the last page
-    delta = numPages - (end - start + 1);
-    start = Math.max(1, start - delta);
-
-    return [start,end];
-};
-
-
-Paginator.ui.PageLinks.prototype = {
-
-    /**
-     * Current page
-     * @property current
-     * @type number
-     * @private
-     */
-    current     : 0,
-
-    /**
-     * Span node containing the page links
-     * @property container
-     * @type HTMLElement
-     * @private
-     */
-    container   : null,
-
-
-    /**
-     * Generate the nodes and return the container node containing page links
-     * appropriate to the current pagination state.
-     * @method render
-     * @param id_base {string} used to create unique ids for generated nodes
-     * @return {HTMLElement}
-     */
-    render : function (id_base) {
-        var p = this.paginator;
-
-        // Set up container
-        this.container = document.createElement('span');
-        this.container.id        = id_base + '-pages';
-        this.container.className = p.get('pageLinksContainerClass');
-        YAHOO.util.Event.on(this.container,'click',this.onClick,this,true);
-
-        // Call update, flagging a need to rebuild
-        this.update({newValue : null, rebuild : true});
-
-        return this.container;
-    },
-
-    /**
-     * Update the links if appropriate
-     * @method update
-     * @param e {CustomEvent} The calling change event
-     */
-    update : function (e) {
-        if (e && e.prevValue === e.newValue) {
-            return;
-        }
-
-        var p           = this.paginator,
-            currentPage = p.getCurrentPage();
-
-        // Replace content if there's been a change
-        if (this.current !== currentPage || !currentPage || e.rebuild) {
-            var labelBuilder = p.get('pageLabelBuilder'),
-                range        = Paginator.ui.PageLinks.calculateRange(
-                                currentPage,
-                                p.getTotalPages(),
-                                p.get('pageLinks')),
-                start        = range[0],
-                end          = range[1],
-                content      = '',
-                linkTemplate,i;
-
-            linkTemplate = '<a href="#" class="' + p.get('pageLinkClass') +
-                           '" page="';
-            for (i = start; i <= end; ++i) {
-                if (i === currentPage) {
-                    content +=
-                        '<span class="' + p.get('currentPageClass') + ' ' +
-                                          p.get('pageLinkClass') + '">' +
-                        labelBuilder(i,p) + '</span>';
-                } else {
-                    content +=
-                        linkTemplate + i + '">' + labelBuilder(i,p) + '</a>';
-                }
-            }
-
-            this.container.innerHTML = content;
-        }
-    },
-
-    /**
-     * Force a rebuild of the page links.
-     * @method rebuild
-     * @param e {CustomEvent} The calling change event
-     */
-    rebuild     : function (e) {
-        e.rebuild = true;
-        this.update(e);
-    },
-
-    /**
-     * Removes the page links container node and clears event listeners
-     * @method destroy
-     * @private
-     */
-    destroy : function () {
-        YAHOO.util.Event.purgeElement(this.container,true);
-        this.container.parentNode.removeChild(this.container);
-        this.container = null;
-    },
-
-    /**
-     * Listener for the container's onclick event.  Looks for qualifying link
-     * clicks, and pulls the page number from the link's page attribute.
-     * Sends link's page attribute to the Paginator's setPage method.
-     * @method onClick
-     * @param e {DOMEvent} The click event
-     */
-    onClick : function (e) {
-        var t = YAHOO.util.Event.getTarget(e);
-        if (t && YAHOO.util.Dom.hasClass(t,
-                        this.paginator.get('pageLinkClass'))) {
-
-            YAHOO.util.Event.stopEvent(e);
-
-            this.paginator.setPage(parseInt(t.getAttribute('page'),10));
-        }
-    }
-
-};
-
-})();
-(function () {
-
-var Paginator = YAHOO.widget.Paginator,
-    l         = YAHOO.lang;
-
-/**
- * ui Component to generate the link to jump to the first page.
- *
- * @namespace YAHOO.widget.Paginator.ui
- * @class FirstPageLink
- * @for YAHOO.widget.Paginator
- *
- * @constructor
- * @param p {Pagintor} Paginator instance to attach to
- */
-Paginator.ui.FirstPageLink = function (p) {
-    this.paginator = p;
-
-    p.subscribe('recordOffsetChange',this.update,this,true);
-    p.subscribe('rowsPerPageChange',this.update,this,true);
-    p.subscribe('totalRecordsChange',this.update,this,true);
-    p.subscribe('destroy',this.destroy,this,true);
-
-    // TODO: make this work
-    p.subscribe('firstPageLinkLabelChange',this.update,this,true);
-    p.subscribe('firstPageLinkClassChange',this.update,this,true);
-};
-
-/**
- * Decorates Paginator instances with new attributes. Called during
- * Paginator instantiation.
- * @method init
- * @param p {Paginator} Paginator instance to decorate
- * @static
- */
-Paginator.ui.FirstPageLink.init = function (p) {
-
-    /**
-     * Used as innerHTML for the first page link/span.
-     * @attribute firstPageLinkLabel
-     * @default '&lt;&lt; first'
-     */
-    p.setAttributeConfig('firstPageLinkLabel', {
-        value : '&lt;&lt; first',
-        validator : l.isString
-    });
-
-    /**
-     * CSS class assigned to the link/span
-     * @attribute firstPageLinkClass
-     * @default 'yui-pg-first'
-     */
-    p.setAttributeConfig('firstPageLinkClass', {
-        value : 'yui-pg-first',
-        validator : l.isString
-    });
-};
-
-// Instance members and methods
-Paginator.ui.FirstPageLink.prototype = {
-
-    /**
-     * The currently placed HTMLElement node
-     * @property current
-     * @type HTMLElement
-     * @private
-     */
-    current   : null,
-
-    /**
-     * Link node
-     * @property link
-     * @type HTMLElement
-     * @private
-     */
-    link      : null,
-
-    /**
-     * Span node (inactive link)
-     * @property span
-     * @type HTMLElement
-     * @private
-     */
-    span      : null,
-
-    /**
-     * Generate the nodes and return the appropriate node given the current
-     * pagination state.
-     * @method render
-     * @param id_base {string} used to create unique ids for generated nodes
-     * @return {HTMLElement}
-     */
-    render : function (id_base) {
-        var p     = this.paginator,
-            c     = p.get('firstPageLinkClass'),
-            label = p.get('firstPageLinkLabel');
-
-        this.link     = document.createElement('a');
-        this.span     = document.createElement('span');
-
-        this.link.id        = id_base + '-first-link';
-        this.link.href      = '#';
-        this.link.className = c;
-        this.link.innerHTML = label;
-        YAHOO.util.Event.on(this.link,'click',this.onClick,this,true);
-
-        this.span.id        = id_base + '-first-span';
-        this.span.className = c;
-        this.span.innerHTML = label;
-
-        this.current = p.getCurrentPage() > 1 ? this.link : this.span;
-        return this.current;
-    },
-
-    /**
-     * Swap the link and span nodes if appropriate.
-     * @method update
-     * @param e {CustomEvent} The calling change event
-     */
-    update : function (e) {
-        if (e && e.prevValue === e.newValue) {
-            return;
-        }
-
-        var par = this.current ? this.current.parentNode : null;
-        if (this.paginator.getCurrentPage() > 1) {
-            if (par && this.current === this.span) {
-                par.replaceChild(this.link,this.current);
-                this.current = this.link;
-            }
-        } else {
-            if (par && this.current === this.link) {
-                par.replaceChild(this.span,this.current);
-                this.current = this.span;
-            }
-        }
-    },
-
-    /**
-     * Removes the link/span node and clears event listeners
-     * removal.
-     * @method destroy
-     * @private
-     */
-    destroy : function () {
-        YAHOO.util.Event.purgeElement(this.link);
-        this.current.parentNode.removeChild(this.current);
-        this.link = this.span = null;
-    },
-
-    /**
-     * Listener for the link's onclick event.  Pass new value to setPage method.
-     * @method onClick
-     * @param e {DOMEvent} The click event
-     */
-    onClick : function (e) {
-        YAHOO.util.Event.stopEvent(e);
-        this.paginator.setPage(1);
-    }
-};
-
-})();
-(function () {
-
-var Paginator = YAHOO.widget.Paginator,
-    l         = YAHOO.lang;
-
-/**
- * ui Component to generate the link to jump to the last page.
- *
- * @namespace YAHOO.widget.Paginator.ui
- * @class LastPageLink
- * @for YAHOO.widget.Paginator
- *
- * @constructor
- * @param p {Pagintor} Paginator instance to attach to
- */
-Paginator.ui.LastPageLink = function (p) {
-    this.paginator = p;
-
-    p.subscribe('recordOffsetChange',this.update,this,true);
-    p.subscribe('rowsPerPageChange',this.update,this,true);
-    p.subscribe('totalRecordsChange',this.update,this,true);
-    p.subscribe('destroy',this.destroy,this,true);
-
-    // TODO: make this work
-    p.subscribe('lastPageLinkLabelChange',this.update,this,true);
-    p.subscribe('lastPageLinkClassChange', this.update,this,true);
-};
-
-/**
- * Decorates Paginator instances with new attributes. Called during
- * Paginator instantiation.
- * @method init
- * @param paginator {Paginator} Paginator instance to decorate
- * @static
- */
-Paginator.ui.LastPageLink.init = function (p) {
-
-    /**
-     * Used as innerHTML for the last page link/span.
-     * @attribute lastPageLinkLabel
-     * @default 'last &gt;&gt;'
-     */
-    p.setAttributeConfig('lastPageLinkLabel', {
-        value : 'last &gt;&gt;',
-        validator : l.isString
-    });
-
-    /**
-     * CSS class assigned to the link/span
-     * @attribute lastPageLinkClass
-     * @default 'yui-pg-last'
-     */
-    p.setAttributeConfig('lastPageLinkClass', {
-        value : 'yui-pg-last',
-        validator : l.isString
-    });
-};
-
-Paginator.ui.LastPageLink.prototype = {
-
-    /**
-     * Currently placed HTMLElement node
-     * @property current
-     * @type HTMLElement
-     * @private
-     */
-    current   : null,
-
-    /**
-     * Link HTMLElement node
-     * @property link
-     * @type HTMLElement
-     * @private
-     */
-    link      : null,
-
-    /**
-     * Span node (inactive link)
-     * @property span
-     * @type HTMLElement
-     * @private
-     */
-    span      : null,
-
-    /**
-     * Empty place holder node for when the last page link is inappropriate to
-     * display in any form (unlimited paging).
-     * @property na
-     * @type HTMLElement
-     * @private
-     */
-    na        : null,
-
-
-    /**
-     * Generate the nodes and return the appropriate node given the current
-     * pagination state.
-     * @method render
-     * @param id_base {string} used to create unique ids for generated nodes
-     * @return {HTMLElement}
-     */
-    render : function (id_base) {
-        var p     = this.paginator,
-            c     = p.get('lastPageLinkClass'),
-            label = p.get('lastPageLinkLabel'),
-            last  = p.getTotalPages();
-
-        this.link = document.createElement('a');
-        this.span = document.createElement('span');
-        this.na   = this.span.cloneNode(false);
-
-        this.link.id        = id_base + '-last-link';
-        this.link.href      = '#';
-        this.link.className = c;
-        this.link.innerHTML = label;
-        YAHOO.util.Event.on(this.link,'click',this.onClick,this,true);
-
-        this.span.id        = id_base + '-last-span';
-        this.span.className = c;
-        this.span.innerHTML = label;
-
-        this.na.id = id_base + '-last-na';
-
-        switch (last) {
-            case Paginator.VALUE_UNLIMITED :
-                    this.current = this.na; break;
-            case p.getCurrentPage() :
-                    this.current = this.span; break;
-            default :
-                    this.current = this.link;
-        }
-
-        return this.current;
-    },
-
-    /**
-     * Swap the link, span, and na nodes if appropriate.
-     * @method update
-     * @param e {CustomEvent} The calling change event (ignored)
-     */
-    update : function (e) {
-        if (e && e.prevValue === e.newValue) {
-            return;
-        }
-
-        var par   = this.current ? this.current.parentNode : null,
-            after = this.link;
-
-        if (par) {
-            switch (this.paginator.getTotalPages()) {
-                case Paginator.VALUE_UNLIMITED :
-                        after = this.na; break;
-                case this.paginator.getCurrentPage() :
-                        after = this.span; break;
-            }
-
-            if (this.current !== after) {
-                par.replaceChild(after,this.current);
-                this.current = after;
-            }
-        }
-    },
-
-    /**
-     * Removes the link/span node and clears event listeners
-     * @method destroy
-     * @private
-     */
-    destroy : function () {
-        YAHOO.util.Event.purgeElement(this.link);
-        this.current.parentNode.removeChild(this.current);
-        this.link = this.span = null;
-    },
-
-    /**
-     * Listener for the link's onclick event.  Passes to setPage method.
-     * @method onClick
-     * @param e {DOMEvent} The click event
-     */
-    onClick : function (e) {
-        YAHOO.util.Event.stopEvent(e);
-        this.paginator.setPage(this.paginator.getTotalPages());
-    }
-};
-
-})();
-(function () {
-
-var Paginator = YAHOO.widget.Paginator,
-    l         = YAHOO.lang;
-
-/**
- * ui Component to generate the link to jump to the next page.
- *
- * @namespace YAHOO.widget.Paginator.ui
- * @class NextPageLink
- * @for YAHOO.widget.Paginator
- *
- * @constructor
- * @param p {Pagintor} Paginator instance to attach to
- */
-Paginator.ui.NextPageLink = function (p) {
-    this.paginator = p;
-
-    p.subscribe('recordOffsetChange', this.update,this,true);
-    p.subscribe('rowsPerPageChange', this.update,this,true);
-    p.subscribe('totalRecordsChange', this.update,this,true);
-    p.subscribe('destroy',this.destroy,this,true);
-
-    // TODO: make this work
-    p.subscribe('nextPageLinkLabelChange', this.update,this,true);
-    p.subscribe('nextPageLinkClassChange', this.update,this,true);
-};
-
-/**
- * Decorates Paginator instances with new attributes. Called during
- * Paginator instantiation.
- * @method init
- * @param p {Paginator} Paginator instance to decorate
- * @static
- */
-Paginator.ui.NextPageLink.init = function (p) {
-
-    /**
-     * Used as innerHTML for the next page link/span.
-     * @attribute nextPageLinkLabel
-     * @default 'next &gt;'
-     */
-    p.setAttributeConfig('nextPageLinkLabel', {
-        value : 'next &gt;',
-        validator : l.isString
-    });
-
-    /**
-     * CSS class assigned to the link/span
-     * @attribute nextPageLinkClass
-     * @default 'yui-pg-next'
-     */
-    p.setAttributeConfig('nextPageLinkClass', {
-        value : 'yui-pg-next',
-        validator : l.isString
-    });
-};
-
-Paginator.ui.NextPageLink.prototype = {
-
-    /**
-     * Currently placed HTMLElement node
-     * @property current
-     * @type HTMLElement
-     * @private
-     */
-    current   : null,
-
-    /**
-     * Link node
-     * @property link
-     * @type HTMLElement
-     * @private
-     */
-    link      : null,
-
-    /**
-     * Span node (inactive link)
-     * @property span
-     * @type HTMLElement
-     * @private
-     */
-    span      : null,
-
-
-    /**
-     * Generate the nodes and return the appropriate node given the current
-     * pagination state.
-     * @method render
-     * @param id_base {string} used to create unique ids for generated nodes
-     * @return {HTMLElement}
-     */
-    render : function (id_base) {
-        var p     = this.paginator,
-            c     = p.get('nextPageLinkClass'),
-            label = p.get('nextPageLinkLabel'),
-            last  = p.getTotalPages();
-
-        this.link     = document.createElement('a');
-        this.span     = document.createElement('span');
-
-        this.link.id        = id_base + '-next-link';
-        this.link.href      = '#';
-        this.link.className = c;
-        this.link.innerHTML = label;
-        YAHOO.util.Event.on(this.link,'click',this.onClick,this,true);
-
-        this.span.id        = id_base + '-next-span';
-        this.span.className = c;
-        this.span.innerHTML = label;
-
-        this.current = p.getCurrentPage() === last ? this.span : this.link;
-
-        return this.current;
-    },
-
-    /**
-     * Swap the link and span nodes if appropriate.
-     * @method update
-     * @param e {CustomEvent} The calling change event
-     */
-    update : function (e) {
-        if (e && e.prevValue === e.newValue) {
-            return;
-        }
-
-        var last = this.paginator.getTotalPages(),
-            par  = this.current ? this.current.parentNode : null;
-
-        if (this.paginator.getCurrentPage() !== last) {
-            if (par && this.current === this.span) {
-                par.replaceChild(this.link,this.current);
-                this.current = this.link;
-            }
-        } else if (this.current === this.link) {
-            if (par) {
-                par.replaceChild(this.span,this.current);
-                this.current = this.span;
-            }
-        }
-    },
-
-    /**
-     * Removes the link/span node and clears event listeners
-     * @method destroy
-     * @private
-     */
-    destroy : function () {
-        YAHOO.util.Event.purgeElement(this.link);
-        this.current.parentNode.removeChild(this.current);
-        this.link = this.span = null;
-    },
-
-    /**
-     * Listener for the link's onclick event.  Passes to setPage method.
-     * @method onClick
-     * @param e {DOMEvent} The click event
-     */
-    onClick : function (e) {
-        YAHOO.util.Event.stopEvent(e);
-        this.paginator.setPage(this.paginator.getNextPage());
-    }
-};
-
-})();
-(function () {
-
-var Paginator = YAHOO.widget.Paginator,
-    l         = YAHOO.lang;
-
-/**
- * ui Component to generate the link to jump to the previous page.
- *
- * @namespace YAHOO.widget.Paginator.ui
- * @class PreviousPageLink
- * @for YAHOO.widget.Paginator
- *
- * @constructor
- * @param p {Pagintor} Paginator instance to attach to
- */
-Paginator.ui.PreviousPageLink = function (p) {
-    this.paginator = p;
-
-    p.subscribe('recordOffsetChange',this.update,this,true);
-    p.subscribe('rowsPerPageChange',this.update,this,true);
-    p.subscribe('totalRecordsChange',this.update,this,true);
-    p.subscribe('destroy',this.destroy,this,true);
-
-    // TODO: make this work
-    p.subscribe('previousPageLinkLabelChange',this.update,this,true);
-    p.subscribe('previousPageLinkClassChange',this.update,this,true);
-};
-
-/**
- * Decorates Paginator instances with new attributes. Called during
- * Paginator instantiation.
- * @method init
- * @param p {Paginator} Paginator instance to decorate
- * @static
- */
-Paginator.ui.PreviousPageLink.init = function (p) {
-
-    /**
-     * Used as innerHTML for the previous page link/span.
-     * @attribute previousPageLinkLabel
-     * @default '&lt; prev'
-     */
-    p.setAttributeConfig('previousPageLinkLabel', {
-        value : '&lt; prev',
-        validator : l.isString
-    });
-
-    /**
-     * CSS class assigned to the link/span
-     * @attribute previousPageLinkClass
-     * @default 'yui-pg-previous'
-     */
-    p.setAttributeConfig('previousPageLinkClass', {
-        value : 'yui-pg-previous',
-        validator : l.isString
-    });
-};
-
-Paginator.ui.PreviousPageLink.prototype = {
-
-    /**
-     * Currently placed HTMLElement node
-     * @property current
-     * @type HTMLElement
-     * @private
-     */
-    current   : null,
-
-    /**
-     * Link node
-     * @property link
-     * @type HTMLElement
-     * @private
-     */
-    link      : null,
-
-    /**
-     * Span node (inactive link)
-     * @property span
-     * @type HTMLElement
-     * @private
-     */
-    span      : null,
-
-
-    /**
-     * Generate the nodes and return the appropriate node given the current
-     * pagination state.
-     * @method render
-     * @param id_base {string} used to create unique ids for generated nodes
-     * @return {HTMLElement}
-     */
-    render : function (id_base) {
-        var p     = this.paginator,
-            c     = p.get('previousPageLinkClass'),
-            label = p.get('previousPageLinkLabel');
-
-        this.link     = document.createElement('a');
-        this.span     = document.createElement('span');
-
-        this.link.id        = id_base + '-prev-link';
-        this.link.href      = '#';
-        this.link.className = c;
-        this.link.innerHTML = label;
-        YAHOO.util.Event.on(this.link,'click',this.onClick,this,true);
-
-        this.span.id        = id_base + '-prev-span';
-        this.span.className = c;
-        this.span.innerHTML = label;
-
-        this.current = p.getCurrentPage() > 1 ? this.link : this.span;
-        return this.current;
-    },
-
-    /**
-     * Swap the link and span nodes if appropriate.
-     * @method update
-     * @param e {CustomEvent} The calling change event
-     */
-    update : function (e) {
-        if (e && e.prevValue === e.newValue) {
-            return;
-        }
-
-        var par = this.current ? this.current.parentNode : null;
-        if (this.paginator.getCurrentPage() > 1) {
-            if (par && this.current === this.span) {
-                par.replaceChild(this.link,this.current);
-                this.current = this.link;
-            }
-        } else {
-            if (par && this.current === this.link) {
-                par.replaceChild(this.span,this.current);
-                this.current = this.span;
-            }
-        }
-    },
-
-    /**
-     * Removes the link/span node and clears event listeners
-     * @method destroy
-     * @private
-     */
-    destroy : function () {
-        YAHOO.util.Event.purgeElement(this.link);
-        this.current.parentNode.removeChild(this.current);
-        this.link = this.span = null;
-    },
-
-    /**
-     * Listener for the link's onclick event.  Passes to setPage method.
-     * @method onClick
-     * @param e {DOMEvent} The click event
-     */
-    onClick : function (e) {
-        YAHOO.util.Event.stopEvent(e);
-        this.paginator.setPage(this.paginator.getPreviousPage());
-    }
-};
-
-})();
-(function () {
-
-var Paginator = YAHOO.widget.Paginator,
-    l         = YAHOO.lang;
-
-/**
- * ui Component to generate the rows-per-page dropdown
- *
- * @namespace YAHOO.widget.Paginator.ui
- * @class RowsPerPageDropdown
- * @for YAHOO.widget.Paginator
- *
- * @constructor
- * @param p {Pagintor} Paginator instance to attach to
- */
-Paginator.ui.RowsPerPageDropdown = function (p) {
-    this.paginator = p;
-
-    p.subscribe('rowsPerPageChange',this.update,this,true);
-    p.subscribe('rowsPerPageOptionsChange',this.rebuild,this,true);
-    p.subscribe('totalRecordsChange',this._handleTotalRecordsChange,this,true);
-    p.subscribe('destroy',this.destroy,this,true);
-
-    // TODO: make this work
-    p.subscribe('rowsPerPageDropdownClassChange',this.rebuild,this,true);
-};
-
-/**
- * Decorates Paginator instances with new attributes. Called during
- * Paginator instantiation.
- * @method init
- * @param p {Paginator} Paginator instance to decorate
- * @static
- */
-Paginator.ui.RowsPerPageDropdown.init = function (p) {
-
-    /**
-     * Array of available rows-per-page sizes.  Converted into select options.
-     * Array values may be positive integers or object literals in the form<br>
-     * { value : NUMBER, text : STRING }
-     * @attribute rowsPerPageOptions
-     * @default []
-     */
-    p.setAttributeConfig('rowsPerPageOptions', {
-        value : [],
-        validator : l.isArray
-    });
-
-    /**
-     * CSS class assigned to the select node
-     * @attribute rowsPerPageDropdownClass
-     * @default 'yui-pg-rpp-options'
-     */
-    p.setAttributeConfig('rowsPerPageDropdownClass', {
-        value : 'yui-pg-rpp-options',
-        validator : l.isString
-    });
-};
-
-Paginator.ui.RowsPerPageDropdown.prototype = {
-
-    /**
-     * select node
-     * @property select
-     * @type HTMLElement
-     * @private
-     */
-    select  : null,
-
-
-    /**
-     * option node for the optional All value
-     *
-     * @property all
-     * @type HTMLElement
-     * @protected
-     */
-    all : null,
-
-    /**
-     * Generate the select and option nodes and returns the select node.
-     * @method render
-     * @param id_base {string} used to create unique ids for generated nodes
-     * @return {HTMLElement}
-     */
-    render : function (id_base) {
-        this.select = document.createElement('select');
-        this.select.id        = id_base + '-rpp';
-        this.select.className = this.paginator.get('rowsPerPageDropdownClass');
-        this.select.title = 'Rows per page';
-
-        YAHOO.util.Event.on(this.select,'change',this.onChange,this,true);
-
-        this.rebuild();
-
-        return this.select;
-    },
-
-    /**
-     * (Re)generate the select options.
-     * @method rebuild
-     */
-    rebuild : function (e) {
-        var p       = this.paginator,
-            sel     = this.select,
-            options = p.get('rowsPerPageOptions'),
-            opt,cfg,val,i,len;
-
-        this.all = null;
-
-        for (i = 0, len = options.length; i < len; ++i) {
-            cfg = options[i];
-            opt = sel.options[i] ||
-                  sel.appendChild(document.createElement('option'));
-            val = l.isValue(cfg.value) ? cfg.value : cfg;
-            opt.innerHTML = l.isValue(cfg.text) ? cfg.text : cfg;
-
-            if (l.isString(val) && val.toLowerCase() === 'all') {
-                this.all  = opt;
-                opt.value = p.get('totalRecords');
-            } else{
-                opt.value = val;
-            }
-
-        }
-
-        while (sel.options.length > options.length) {
-            sel.removeChild(sel.firstChild);
-        }
-
-        this.update();
-    },
-
-    /**
-     * Select the appropriate option if changed.
-     * @method update
-     * @param e {CustomEvent} The calling change event
-     */
-    update : function (e) {
-        if (e && e.prevValue === e.newValue) {
-            return;
-        }
-
-        var rpp     = this.paginator.get('rowsPerPage')+'',
-            options = this.select.options,
-            i,len;
-
-        for (i = 0, len = options.length; i < len; ++i) {
-            if (options[i].value === rpp) {
-                options[i].selected = true;
-                break;
-            }
-        }
-    },
-
-    /**
-     * Listener for the select's onchange event.  Sent to setRowsPerPage method.
-     * @method onChange
-     * @param e {DOMEvent} The change event
-     */
-    onChange : function (e) {
-        this.paginator.setRowsPerPage(
-                parseInt(this.select.options[this.select.selectedIndex].value,10));
-    },
-
-    /**
-     * Updates the all option value (and Paginator's rowsPerPage attribute if
-     * necessary) in response to a change in the Paginator's totalRecords.
-     *
-     * @method _handleTotalRecordsChange
-     * @param e {Event} attribute change event
-     * @protected
-     */
-    _handleTotalRecordsChange : function (e) {
-        if (!this.all || (e && e.prevValue === e.newValue)) {
-            return;
-        }
-
-        this.all.value = e.newValue;
-        if (this.all.selected) {
-            this.paginator.set('rowsPerPage',e.newValue);
-        }
-    },
-
-    /**
-     * Removes the select node and clears event listeners
-     * @method destroy
-     * @private
-     */
-    destroy : function () {
-        YAHOO.util.Event.purgeElement(this.select);
-        this.select.parentNode.removeChild(this.select);
-        this.select = null;
-    }
-};
-
-})();
-YAHOO.register("paginator", YAHOO.widget.Paginator, {version: "2.8.0r4", build: "2449"});
diff --git a/koha-tmpl/intranet-tmpl/prog/en/lib/yui/profiler/profiler-debug.js b/koha-tmpl/intranet-tmpl/prog/en/lib/yui/profiler/profiler-debug.js
deleted file mode 100644 (file)
index c59b37e..0000000
+++ /dev/null
@@ -1,557 +0,0 @@
-/*
-Copyright (c) 2009, Yahoo! Inc. All rights reserved.
-Code licensed under the BSD License:
-http://developer.yahoo.net/yui/license.txt
-version: 2.8.0r4
-*/
-YAHOO.namespace("tool");
-
-/**
- * The YUI JavaScript profiler.
- * @module profiler
- * @namespace YAHOO.tool
- * @requires yahoo
- */
-
-/**
- * Profiles functions in JavaScript.
- * @namespace YAHOO.tool
- * @class Profiler
- * @static
- */
-YAHOO.tool.Profiler = function(){
-
-
-    //-------------------------------------------------------------------------
-    // Private Variables and Functions
-    //-------------------------------------------------------------------------
-    
-    var container   = {},   //Container object on which to put the original unprofiled methods.
-        report      = {},   //Profiling information for functions
-        stopwatches = {},   //Additional stopwatch information
-        
-        WATCH_STARTED   = 0,
-        WATCH_STOPPED   = 1,
-        WATCH_PAUSED    = 2,    
-        
-        lang    = YAHOO.lang;
-
-    /**
-     * Creates a report object with the given name.
-     * @param {String} name The name to store for the report object.
-     * @return {Void}
-     * @method createReport
-     * @private
-     */
-    function createReport(name){
-        report[name] = {
-            calls: 0,
-            max: 0,
-            min: 0,
-            avg: 0,
-            points: []
-        };      
-    }
-    
-    /**
-     * Called when a method ends execution. Marks the start and end time of the 
-     * method so it can calculate how long the function took to execute. Also 
-     * updates min/max/avg calculations for the function.
-     * @param {String} name The name of the function to mark as stopped.
-     * @param {int} duration The number of milliseconds it took the function to
-     *      execute.
-     * @return {Void}
-     * @method saveDataPoint
-     * @private
-     * @static
-     */
-    function saveDataPoint(name, duration){
-
-        //get the function data
-        var functionData /*:Object*/ = report[name];
-        
-        //just in case clear() was called
-        if (!functionData){
-            functionData = createReport(name);
-        }
-    
-        //increment the calls
-        functionData.calls++;
-        functionData.points.push(duration);
-
-        //if it's already been called at least once, do more complex calculations
-        if (functionData.calls > 1) {
-            functionData.avg = ((functionData.avg*(functionData.calls-1))+duration)/functionData.calls;
-            functionData.min = Math.min(functionData.min, duration);
-            functionData.max = Math.max(functionData.max, duration);
-        } else {
-            functionData.avg = duration;
-            functionData.min = duration;
-            functionData.max = duration;
-        }                             
-    
-    }
-
-    //-------------------------------------------------------------------------
-    // Singleton Object
-    //-------------------------------------------------------------------------
-    
-    return {
-    
-        //-------------------------------------------------------------------------
-        // Utility Methods
-        //-------------------------------------------------------------------------        
-        
-        /**
-         * Removes all report data from the profiler.
-         * @param {String} name (Optional) The name of the report to clear. If
-         *      omitted, then all report data is cleared.
-         * @return {Void}
-         * @method clear
-         * @static
-         */
-        clear: function(name){
-            if (lang.isString(name)){
-                delete report[name];
-                delete stopwatches[name];
-            } else {
-                report = {};
-                stopwatches = {};
-            }
-        },
-
-        /**
-         * Returns the uninstrumented version of a function/object.
-         * @param {String} name The name of the function/object to retrieve.
-         * @return {Function|Object} The uninstrumented version of a function/object.
-         * @method getOriginal
-         * @static
-         */    
-        getOriginal: function(name){
-            return container[name];
-        },
-    
-        /**
-         * Instruments a method to have profiling calls.
-         * @param {String} name The name of the report for the function.
-         * @param {Function} method The function to instrument.
-         * @return {Function} An instrumented version of the function.
-         * @method instrument
-         * @static
-         */
-        instrument: function(name, method){
-        
-            //create instrumented version of function
-            var newMethod = function () {
-    
-                var start = new Date(),
-                    retval = method.apply(this, arguments),
-                    stop = new Date();
-                
-                saveDataPoint(name, stop-start);
-                
-                return retval;                
-            
-            };     
-
-            //copy the function properties over
-            lang.augmentObject(newMethod, method);
-            
-            //assign prototype and flag as being profiled
-            newMethod.__yuiProfiled = true;
-            newMethod.prototype = method.prototype;
-            
-            //store original method
-            container[name] = method;
-            container[name].__yuiFuncName = name;
-            
-            //create the report
-            createReport(name);
-
-            //return the new method
-            return newMethod;
-        },    
-        
-        //-------------------------------------------------------------------------
-        // Stopwatch Methods
-        //-------------------------------------------------------------------------        
-        
-        /**
-         * Pauses profiling information for a given name.
-         * @param {String} name The name of the data point.
-         * @return {Void}
-         * @method pause
-         * @static
-         */        
-        pause: function(name){
-            var now = new Date(),
-                stopwatch = stopwatches[name];
-                
-            if (stopwatch && stopwatch.state == WATCH_STARTED){
-                stopwatch.total += (now - stopwatch.start);
-                stopwatch.start = 0;
-                stopwatch.state = WATCH_PAUSED;
-            }
-        
-        },
-        
-        /**
-         * Start profiling information for a given name. The name cannot be the name
-         * of a registered function or object. This is used to start timing for a
-         * particular block of code rather than instrumenting the entire function.
-         * @param {String} name The name of the data point.
-         * @return {Void}
-         * @method start
-         * @static
-         */
-        start: function(name){
-            if(container[name]){
-                throw new Error("Cannot use '" + name + "' for profiling through start(), name is already in use.");
-            } else {
-            
-                //create report if necessary
-                if (!report[name]){
-                    createReport(name);
-                }
-                
-                //create stopwatch object if necessary
-                if (!stopwatches[name]){             
-                    stopwatches[name] = {
-                        state: WATCH_STOPPED,
-                        start: 0,
-                        total: 0
-                    };
-                }
-                
-                if (stopwatches[name].state == WATCH_STOPPED){
-                    stopwatches[name].state = WATCH_STARTED;
-                    stopwatches[name].start = new Date();                    
-                }
-
-            }
-        },
-        
-        /**
-         * Stops profiling information for a given name.
-         * @param {String} name The name of the data point.
-         * @return {Void}
-         * @method stop
-         * @static
-         */
-        stop: function(name){
-            var now = new Date(),
-                stopwatch = stopwatches[name];
-                
-            if (stopwatch){
-                if (stopwatch.state == WATCH_STARTED){
-                    saveDataPoint(name, stopwatch.total + (now - stopwatch.start));                    
-                } else if (stopwatch.state == WATCH_PAUSED){
-                    saveDataPoint(name, stopwatch.total);
-                }
-                
-                //reset stopwatch information
-                stopwatch.start = 0;
-                stopwatch.total = 0;
-                stopwatch.state = WATCH_STOPPED;                
-            }
-        },
-    
-        //-------------------------------------------------------------------------
-        // Reporting Methods
-        //-------------------------------------------------------------------------    
-        
-        /**
-         * Returns the average amount of time (in milliseconds) that the function
-         * with the given name takes to execute.
-         * @param {String} name The name of the function whose data should be returned.
-         *      If an object type method, it should be 'constructor.prototype.methodName';
-         *      a normal object method would just be 'object.methodName'.
-         * @return {float} The average time it takes the function to execute.
-         * @method getAverage
-         * @static
-         */
-        getAverage : function (name /*:String*/) /*:float*/ {
-            return report[name].avg;
-        },
-    
-        /**
-         * Returns the number of times that the given function has been called.
-         * @param {String} name The name of the function whose data should be returned.
-         * @return {int} The number of times the function was called.
-         * @method getCallCount
-         * @static
-         */
-        getCallCount : function (name /*:String*/) /*:int*/ {
-            return report[name].calls;    
-        },
-        
-        /**
-         * Returns the maximum amount of time (in milliseconds) that the function
-         * with the given name takes to execute.
-         * @param {String} name The name of the function whose data should be returned.
-         *      If an object type method, it should be 'constructor.prototype.methodName';
-         *      a normal object method would just be 'object.methodName'.
-         * @return {float} The maximum time it takes the function to execute.
-         * @method getMax
-         * @static
-         */
-        getMax : function (name /*:String*/) /*:int*/ {
-            return report[name].max;
-        },
-        
-        /**
-         * Returns the minimum amount of time (in milliseconds) that the function
-         * with the given name takes to execute.
-         * @param {String} name The name of the function whose data should be returned.
-         *      If an object type method, it should be 'constructor.prototype.methodName';
-         *      a normal object method would just be 'object.methodName'.
-         * @return {float} The minimum time it takes the function to execute.
-         * @method getMin
-         * @static
-         */
-        getMin : function (name /*:String*/) /*:int*/ {
-            return report[name].min;
-        },
-    
-        /**
-         * Returns an object containing profiling data for a single function.
-         * The object has an entry for min, max, avg, calls, and points).
-         * @return {Object} An object containing profile data for a given function.
-         * @method getFunctionReport
-         * @static
-         * @deprecated Use getReport() instead.
-         */
-        getFunctionReport : function (name /*:String*/) /*:Object*/ {
-            return report[name];
-        },
-    
-        /**
-         * Returns an object containing profiling data for a single function.
-         * The object has an entry for min, max, avg, calls, and points).
-         * @return {Object} An object containing profile data for a given function.
-         * @method getReport
-         * @static
-         */
-        getReport : function (name /*:String*/) /*:Object*/ {
-            return report[name];
-        },
-    
-        /**
-         * Returns an object containing profiling data for all of the functions 
-         * that were profiled. The object has an entry for each function and 
-         * returns all information (min, max, average, calls, etc.) for each
-         * function.
-         * @return {Object} An object containing all profile data.
-         * @static
-         */
-        getFullReport : function (filter /*:Function*/) /*:Object*/ {
-            filter = filter || function(){return true;};
-        
-            if (lang.isFunction(filter)) {
-                var fullReport = {};
-                
-                for (var name in report){
-                    if (filter(report[name])){
-                        fullReport[name] = report[name];    
-                    }
-                }
-                
-                return fullReport;
-            }
-        },
-    
-        //-------------------------------------------------------------------------
-        // Profiling Methods
-        //-------------------------------------------------------------------------   
-        
-        /**
-         * Sets up a constructor for profiling, including all properties and methods on the prototype.
-         * @param {string} name The fully-qualified name of the function including namespace information.
-         * @param {Object} owner (Optional) The object that owns the function (namespace or containing object).
-         * @return {Void}
-         * @method registerConstructor
-         * @static
-         */
-        registerConstructor : function (name /*:String*/, owner /*:Object*/) /*:Void*/ {    
-            this.registerFunction(name, owner, true);
-        },
-    
-        /**
-         * Sets up a function for profiling. It essentially overwrites the function with one
-         * that has instrumentation data. This method also creates an entry for the function
-         * in the profile report. The original function is stored on the container object.
-         * @param {String} name The full name of the function including namespacing. This
-         *      is the name of the function that is stored in the report.
-         * @param {Object} owner (Optional) The object that owns the function. If the function
-         *      isn't global then this argument is required. This could be the namespace that
-         *      the function belongs to, such as YAHOO.util.Dom, or the object on which it's
-         *      a method.
-         * @param {Boolean} registerPrototype (Optional) Indicates that the prototype should
-         *      also be instrumented. Setting to true has the same effect as calling
-         *      registerConstructor().
-         * @return {Void}
-         * @method registerFunction
-         * @static
-         */     
-        registerFunction : function(name /*:String*/, owner /*:Object*/, registerPrototype /*:Boolean*/) /*:Void*/{
-        
-            //figure out the function name without namespacing
-            var funcName = (name.indexOf(".") > -1 ? 
-                    name.substring(name.lastIndexOf(".")+1) : name),
-                method,
-                prototype;
-                
-            //if owner isn't an object, try to find it from the name
-            if (!lang.isObject(owner)){
-                owner = eval(name.substring(0, name.lastIndexOf(".")));
-            }
-            
-            //get the method and prototype
-            method = owner[funcName];
-            prototype = method.prototype;
-            
-            //see if the method has already been registered
-            if (lang.isFunction(method) && !method.__yuiProfiled){
-                
-                //replace the function with the profiling one
-                owner[funcName] = this.instrument(name, method);
-                        
-                /*
-                 * Store original function information. We store the actual
-                 * function as well as the owner and the name used to identify
-                 * the function so it can be restored later.
-                 */
-                container[name].__yuiOwner = owner;
-                container[name].__yuiFuncName = funcName;  //overwrite with less-specific name
-                 
-                //register prototype if necessary
-                if (registerPrototype) {            
-                    this.registerObject(name + ".prototype", prototype);          
-                }
-    
-            }
-        
-        },
-            
-        
-        /**
-         * Sets up an object for profiling. It takes the object and looks for functions.
-         * When a function is found, registerMethod() is called on it. If set to recrusive
-         * mode, it will also setup objects found inside of this object for profiling, 
-         * using the same methodology.
-         * @param {String} name The name of the object to profile (shows up in report).
-         * @param {Object} owner (Optional) The object represented by the name.
-         * @param {Boolean} recurse (Optional) Determines if subobject methods are also profiled.
-         * @return {Void}
-         * @method registerObject
-         * @static
-         */
-        registerObject : function (name /*:String*/, object /*:Object*/, recurse /*:Boolean*/) /*:Void*/{
-        
-            //get the object
-            object = (lang.isObject(object) ? object : eval(name));
-        
-            //save the object
-            container[name] = object;
-        
-            for (var prop in object) {
-                if (typeof object[prop] == "function"){
-                    if (prop != "constructor" && prop != "superclass"){ //don't do constructor or superclass, it's recursive
-                        this.registerFunction(name + "." + prop, object);
-                    }
-                } else if (typeof object[prop] == "object" && recurse){
-                    this.registerObject(name + "." + prop, object[prop], recurse);
-                }
-            }
-        
-        },    
-        
-        /**
-         * Removes a constructor function from profiling. Reverses the registerConstructor() method.
-         * @param {String} name The full name of the function including namespacing. This
-         *      is the name of the function that is stored in the report.
-         * @return {Void}
-         * @method unregisterFunction
-         * @static
-         */     
-        unregisterConstructor : function(name /*:String*/) /*:Void*/{
-                
-            //see if the method has been registered
-            if (lang.isFunction(container[name])){
-                this.unregisterFunction(name, true);
-            }    
-        },
-        
-        /**
-         * Removes function from profiling. Reverses the registerFunction() method.
-         * @param {String} name The full name of the function including namespacing. This
-         *      is the name of the function that is stored in the report.
-         * @return {Void}
-         * @method unregisterFunction
-         * @static
-         */     
-        unregisterFunction : function(name /*:String*/, unregisterPrototype /*:Boolean*/) /*:Void*/{
-                
-            //see if the method has been registered
-            if (lang.isFunction(container[name])){
-            
-                //check to see if you should unregister the prototype
-                if (unregisterPrototype){
-                    this.unregisterObject(name + ".prototype", container[name].prototype);
-                }
-                    
-                //get original data
-                var owner /*:Object*/ = container[name].__yuiOwner,
-                    funcName /*:String*/ = container[name].__yuiFuncName;
-                    
-                //delete extra information
-                delete container[name].__yuiOwner;
-                delete container[name].__yuiFuncName;
-                
-                //replace instrumented function
-                owner[funcName] = container[name];
-                
-                //delete supporting information
-                delete container[name];          
-            }
-                
-        
-        },
-        
-        /**
-         * Unregisters an object for profiling. It takes the object and looks for functions.
-         * When a function is found, unregisterMethod() is called on it. If set to recrusive
-         * mode, it will also unregister objects found inside of this object, 
-         * using the same methodology.
-         * @param {String} name The name of the object to unregister.
-         * @param {Boolean} recurse (Optional) Determines if subobject methods should also be
-         *      unregistered.
-         * @return {Void}
-         * @method unregisterObject
-         * @static
-         */
-        unregisterObject : function (name /*:String*/, recurse /*:Boolean*/) /*:Void*/{
-        
-            //get the object
-            if (lang.isObject(container[name])){            
-                var object = container[name];    
-            
-                for (var prop in object) {
-                    if (typeof object[prop] == "function"){
-                        this.unregisterFunction(name + "." + prop);
-                    } else if (typeof object[prop] == "object" && recurse){
-                        this.unregisterObject(name + "." + prop, recurse);
-                    }
-                }
-                
-                delete container[name];
-            }
-        
-        }
-         
-
-    };
-
-}();  
-
-YAHOO.register("profiler", YAHOO.tool.Profiler, {version: "2.8.0r4", build: "2449"});
diff --git a/koha-tmpl/intranet-tmpl/prog/en/lib/yui/profiler/profiler-min.js b/koha-tmpl/intranet-tmpl/prog/en/lib/yui/profiler/profiler-min.js
deleted file mode 100644 (file)
index 8e1cda9..0000000
+++ /dev/null
@@ -1,7 +0,0 @@
-/*
-Copyright (c) 2009, Yahoo! Inc. All rights reserved.
-Code licensed under the BSD License:
-http://developer.yahoo.net/yui/license.txt
-version: 2.8.0r4
-*/
-YAHOO.namespace("tool");YAHOO.tool.Profiler=function(){var container={},report={},stopwatches={},WATCH_STARTED=0,WATCH_STOPPED=1,WATCH_PAUSED=2,lang=YAHOO.lang;function createReport(name){report[name]={calls:0,max:0,min:0,avg:0,points:[]};}function saveDataPoint(name,duration){var functionData=report[name];if(!functionData){functionData=createReport(name);}functionData.calls++;functionData.points.push(duration);if(functionData.calls>1){functionData.avg=((functionData.avg*(functionData.calls-1))+duration)/functionData.calls;functionData.min=Math.min(functionData.min,duration);functionData.max=Math.max(functionData.max,duration);}else{functionData.avg=duration;functionData.min=duration;functionData.max=duration;}}return{clear:function(name){if(lang.isString(name)){delete report[name];delete stopwatches[name];}else{report={};stopwatches={};}},getOriginal:function(name){return container[name];},instrument:function(name,method){var newMethod=function(){var start=new Date(),retval=method.apply(this,arguments),stop=new Date();saveDataPoint(name,stop-start);return retval;};lang.augmentObject(newMethod,method);newMethod.__yuiProfiled=true;newMethod.prototype=method.prototype;container[name]=method;container[name].__yuiFuncName=name;createReport(name);return newMethod;},pause:function(name){var now=new Date(),stopwatch=stopwatches[name];if(stopwatch&&stopwatch.state==WATCH_STARTED){stopwatch.total+=(now-stopwatch.start);stopwatch.start=0;stopwatch.state=WATCH_PAUSED;}},start:function(name){if(container[name]){throw new Error("Cannot use '"+name+"' for profiling through start(), name is already in use.");}else{if(!report[name]){createReport(name);}if(!stopwatches[name]){stopwatches[name]={state:WATCH_STOPPED,start:0,total:0};}if(stopwatches[name].state==WATCH_STOPPED){stopwatches[name].state=WATCH_STARTED;stopwatches[name].start=new Date();}}},stop:function(name){var now=new Date(),stopwatch=stopwatches[name];if(stopwatch){if(stopwatch.state==WATCH_STARTED){saveDataPoint(name,stopwatch.total+(now-stopwatch.start));}else{if(stopwatch.state==WATCH_PAUSED){saveDataPoint(name,stopwatch.total);}}stopwatch.start=0;stopwatch.total=0;stopwatch.state=WATCH_STOPPED;}},getAverage:function(name){return report[name].avg;},getCallCount:function(name){return report[name].calls;},getMax:function(name){return report[name].max;},getMin:function(name){return report[name].min;},getFunctionReport:function(name){return report[name];},getReport:function(name){return report[name];},getFullReport:function(filter){filter=filter||function(){return true;};if(lang.isFunction(filter)){var fullReport={};for(var name in report){if(filter(report[name])){fullReport[name]=report[name];}}return fullReport;}},registerConstructor:function(name,owner){this.registerFunction(name,owner,true);},registerFunction:function(name,owner,registerPrototype){var funcName=(name.indexOf(".")>-1?name.substring(name.lastIndexOf(".")+1):name),method,prototype;if(!lang.isObject(owner)){owner=eval(name.substring(0,name.lastIndexOf(".")));}method=owner[funcName];prototype=method.prototype;if(lang.isFunction(method)&&!method.__yuiProfiled){owner[funcName]=this.instrument(name,method);container[name].__yuiOwner=owner;container[name].__yuiFuncName=funcName;if(registerPrototype){this.registerObject(name+".prototype",prototype);}}},registerObject:function(name,object,recurse){object=(lang.isObject(object)?object:eval(name));container[name]=object;for(var prop in object){if(typeof object[prop]=="function"){if(prop!="constructor"&&prop!="superclass"){this.registerFunction(name+"."+prop,object);}}else{if(typeof object[prop]=="object"&&recurse){this.registerObject(name+"."+prop,object[prop],recurse);}}}},unregisterConstructor:function(name){if(lang.isFunction(container[name])){this.unregisterFunction(name,true);}},unregisterFunction:function(name,unregisterPrototype){if(lang.isFunction(container[name])){if(unregisterPrototype){this.unregisterObject(name+".prototype",container[name].prototype);}var owner=container[name].__yuiOwner,funcName=container[name].__yuiFuncName;delete container[name].__yuiOwner;delete container[name].__yuiFuncName;owner[funcName]=container[name];delete container[name];}},unregisterObject:function(name,recurse){if(lang.isObject(container[name])){var object=container[name];for(var prop in object){if(typeof object[prop]=="function"){this.unregisterFunction(name+"."+prop);}else{if(typeof object[prop]=="object"&&recurse){this.unregisterObject(name+"."+prop,recurse);}}}delete container[name];}}};}();YAHOO.register("profiler",YAHOO.tool.Profiler,{version:"2.8.0r4",build:"2449"});
\ No newline at end of file
diff --git a/koha-tmpl/intranet-tmpl/prog/en/lib/yui/profiler/profiler.js b/koha-tmpl/intranet-tmpl/prog/en/lib/yui/profiler/profiler.js
deleted file mode 100644 (file)
index c59b37e..0000000
+++ /dev/null
@@ -1,557 +0,0 @@
-/*
-Copyright (c) 2009, Yahoo! Inc. All rights reserved.
-Code licensed under the BSD License:
-http://developer.yahoo.net/yui/license.txt
-version: 2.8.0r4
-*/
-YAHOO.namespace("tool");
-
-/**
- * The YUI JavaScript profiler.
- * @module profiler
- * @namespace YAHOO.tool
- * @requires yahoo
- */
-
-/**
- * Profiles functions in JavaScript.
- * @namespace YAHOO.tool
- * @class Profiler
- * @static
- */
-YAHOO.tool.Profiler = function(){
-
-
-    //-------------------------------------------------------------------------
-    // Private Variables and Functions
-    //-------------------------------------------------------------------------
-    
-    var container   = {},   //Container object on which to put the original unprofiled methods.
-        report      = {},   //Profiling information for functions
-        stopwatches = {},   //Additional stopwatch information
-        
-        WATCH_STARTED   = 0,
-        WATCH_STOPPED   = 1,
-        WATCH_PAUSED    = 2,    
-        
-        lang    = YAHOO.lang;
-
-    /**
-     * Creates a report object with the given name.
-     * @param {String} name The name to store for the report object.
-     * @return {Void}
-     * @method createReport
-     * @private
-     */
-    function createReport(name){
-        report[name] = {
-            calls: 0,
-            max: 0,
-            min: 0,
-            avg: 0,
-            points: []
-        };      
-    }
-    
-    /**
-     * Called when a method ends execution. Marks the start and end time of the 
-     * method so it can calculate how long the function took to execute. Also 
-     * updates min/max/avg calculations for the function.
-     * @param {String} name The name of the function to mark as stopped.
-     * @param {int} duration The number of milliseconds it took the function to
-     *      execute.
-     * @return {Void}
-     * @method saveDataPoint
-     * @private
-     * @static
-     */
-    function saveDataPoint(name, duration){
-
-        //get the function data
-        var functionData /*:Object*/ = report[name];
-        
-        //just in case clear() was called
-        if (!functionData){
-            functionData = createReport(name);
-        }
-    
-        //increment the calls
-        functionData.calls++;
-        functionData.points.push(duration);
-
-        //if it's already been called at least once, do more complex calculations
-        if (functionData.calls > 1) {
-            functionData.avg = ((functionData.avg*(functionData.calls-1))+duration)/functionData.calls;
-            functionData.min = Math.min(functionData.min, duration);
-            functionData.max = Math.max(functionData.max, duration);
-        } else {
-            functionData.avg = duration;
-            functionData.min = duration;
-            functionData.max = duration;
-        }                             
-    
-    }
-
-    //-------------------------------------------------------------------------
-    // Singleton Object
-    //-------------------------------------------------------------------------
-    
-    return {
-    
-        //-------------------------------------------------------------------------
-        // Utility Methods
-        //-------------------------------------------------------------------------        
-        
-        /**
-         * Removes all report data from the profiler.
-         * @param {String} name (Optional) The name of the report to clear. If
-         *      omitted, then all report data is cleared.
-         * @return {Void}
-         * @method clear
-         * @static
-         */
-        clear: function(name){
-            if (lang.isString(name)){
-                delete report[name];
-                delete stopwatches[name];
-            } else {
-                report = {};
-                stopwatches = {};
-            }
-        },
-
-        /**
-         * Returns the uninstrumented version of a function/object.
-         * @param {String} name The name of the function/object to retrieve.
-         * @return {Function|Object} The uninstrumented version of a function/object.
-         * @method getOriginal
-         * @static
-         */    
-        getOriginal: function(name){
-            return container[name];
-        },
-    
-        /**
-         * Instruments a method to have profiling calls.
-         * @param {String} name The name of the report for the function.
-         * @param {Function} method The function to instrument.
-         * @return {Function} An instrumented version of the function.
-         * @method instrument
-         * @static
-         */
-        instrument: function(name, method){
-        
-            //create instrumented version of function
-            var newMethod = function () {
-    
-                var start = new Date(),
-                    retval = method.apply(this, arguments),
-                    stop = new Date();
-                
-                saveDataPoint(name, stop-start);
-                
-                return retval;                
-            
-            };     
-
-            //copy the function properties over
-            lang.augmentObject(newMethod, method);
-            
-            //assign prototype and flag as being profiled
-            newMethod.__yuiProfiled = true;
-            newMethod.prototype = method.prototype;
-            
-            //store original method
-            container[name] = method;
-            container[name].__yuiFuncName = name;
-            
-            //create the report
-            createReport(name);
-
-            //return the new method
-            return newMethod;
-        },    
-        
-        //-------------------------------------------------------------------------
-        // Stopwatch Methods
-        //-------------------------------------------------------------------------        
-        
-        /**
-         * Pauses profiling information for a given name.
-         * @param {String} name The name of the data point.
-         * @return {Void}
-         * @method pause
-         * @static
-         */        
-        pause: function(name){
-            var now = new Date(),
-                stopwatch = stopwatches[name];
-                
-            if (stopwatch && stopwatch.state == WATCH_STARTED){
-                stopwatch.total += (now - stopwatch.start);
-                stopwatch.start = 0;
-                stopwatch.state = WATCH_PAUSED;
-            }
-        
-        },
-        
-        /**
-         * Start profiling information for a given name. The name cannot be the name
-         * of a registered function or object. This is used to start timing for a
-         * particular block of code rather than instrumenting the entire function.
-         * @param {String} name The name of the data point.
-         * @return {Void}
-         * @method start
-         * @static
-         */
-        start: function(name){
-            if(container[name]){
-                throw new Error("Cannot use '" + name + "' for profiling through start(), name is already in use.");
-            } else {
-            
-                //create report if necessary
-                if (!report[name]){
-                    createReport(name);
-                }
-                
-                //create stopwatch object if necessary
-                if (!stopwatches[name]){             
-                    stopwatches[name] = {
-                        state: WATCH_STOPPED,
-                        start: 0,
-                        total: 0
-                    };
-                }
-                
-                if (stopwatches[name].state == WATCH_STOPPED){
-                    stopwatches[name].state = WATCH_STARTED;
-                    stopwatches[name].start = new Date();                    
-                }
-
-            }
-        },
-        
-        /**
-         * Stops profiling information for a given name.
-         * @param {String} name The name of the data point.
-         * @return {Void}
-         * @method stop
-         * @static
-         */
-        stop: function(name){
-            var now = new Date(),
-                stopwatch = stopwatches[name];
-                
-            if (stopwatch){
-                if (stopwatch.state == WATCH_STARTED){
-                    saveDataPoint(name, stopwatch.total + (now - stopwatch.start));                    
-                } else if (stopwatch.state == WATCH_PAUSED){
-                    saveDataPoint(name, stopwatch.total);
-                }
-                
-                //reset stopwatch information
-                stopwatch.start = 0;
-                stopwatch.total = 0;
-                stopwatch.state = WATCH_STOPPED;                
-            }
-        },
-    
-        //-------------------------------------------------------------------------
-        // Reporting Methods
-        //-------------------------------------------------------------------------    
-        
-        /**
-         * Returns the average amount of time (in milliseconds) that the function
-         * with the given name takes to execute.
-         * @param {String} name The name of the function whose data should be returned.
-         *      If an object type method, it should be 'constructor.prototype.methodName';
-         *      a normal object method would just be 'object.methodName'.
-         * @return {float} The average time it takes the function to execute.
-         * @method getAverage
-         * @static
-         */
-        getAverage : function (name /*:String*/) /*:float*/ {
-            return report[name].avg;
-        },
-    
-        /**
-         * Returns the number of times that the given function has been called.
-         * @param {String} name The name of the function whose data should be returned.
-         * @return {int} The number of times the function was called.
-         * @method getCallCount
-         * @static
-         */
-        getCallCount : function (name /*:String*/) /*:int*/ {
-            return report[name].calls;    
-        },
-        
-        /**
-         * Returns the maximum amount of time (in milliseconds) that the function
-         * with the given name takes to execute.
-         * @param {String} name The name of the function whose data should be returned.
-         *      If an object type method, it should be 'constructor.prototype.methodName';
-         *      a normal object method would just be 'object.methodName'.
-         * @return {float} The maximum time it takes the function to execute.
-         * @method getMax
-         * @static
-         */
-        getMax : function (name /*:String*/) /*:int*/ {
-            return report[name].max;
-        },
-        
-        /**
-         * Returns the minimum amount of time (in milliseconds) that the function
-         * with the given name takes to execute.
-         * @param {String} name The name of the function whose data should be returned.
-         *      If an object type method, it should be 'constructor.prototype.methodName';
-         *      a normal object method would just be 'object.methodName'.
-         * @return {float} The minimum time it takes the function to execute.
-         * @method getMin
-         * @static
-         */
-        getMin : function (name /*:String*/) /*:int*/ {
-            return report[name].min;
-        },
-    
-        /**
-         * Returns an object containing profiling data for a single function.
-         * The object has an entry for min, max, avg, calls, and points).
-         * @return {Object} An object containing profile data for a given function.
-         * @method getFunctionReport
-         * @static
-         * @deprecated Use getReport() instead.
-         */
-        getFunctionReport : function (name /*:String*/) /*:Object*/ {
-            return report[name];
-        },
-    
-        /**
-         * Returns an object containing profiling data for a single function.
-         * The object has an entry for min, max, avg, calls, and points).
-         * @return {Object} An object containing profile data for a given function.
-         * @method getReport
-         * @static
-         */
-        getReport : function (name /*:String*/) /*:Object*/ {
-            return report[name];
-        },
-    
-        /**
-         * Returns an object containing profiling data for all of the functions 
-         * that were profiled. The object has an entry for each function and 
-         * returns all information (min, max, average, calls, etc.) for each
-         * function.
-         * @return {Object} An object containing all profile data.
-         * @static
-         */
-        getFullReport : function (filter /*:Function*/) /*:Object*/ {
-            filter = filter || function(){return true;};
-        
-            if (lang.isFunction(filter)) {
-                var fullReport = {};
-                
-                for (var name in report){
-                    if (filter(report[name])){
-                        fullReport[name] = report[name];    
-                    }
-                }
-                
-                return fullReport;
-            }
-        },
-    
-        //-------------------------------------------------------------------------
-        // Profiling Methods
-        //-------------------------------------------------------------------------   
-        
-        /**
-         * Sets up a constructor for profiling, including all properties and methods on the prototype.
-         * @param {string} name The fully-qualified name of the function including namespace information.
-         * @param {Object} owner (Optional) The object that owns the function (namespace or containing object).
-         * @return {Void}
-         * @method registerConstructor
-         * @static
-         */
-        registerConstructor : function (name /*:String*/, owner /*:Object*/) /*:Void*/ {    
-            this.registerFunction(name, owner, true);
-        },
-    
-        /**
-         * Sets up a function for profiling. It essentially overwrites the function with one
-         * that has instrumentation data. This method also creates an entry for the function
-         * in the profile report. The original function is stored on the container object.
-         * @param {String} name The full name of the function including namespacing. This
-         *      is the name of the function that is stored in the report.
-         * @param {Object} owner (Optional) The object that owns the function. If the function
-         *      isn't global then this argument is required. This could be the namespace that
-         *      the function belongs to, such as YAHOO.util.Dom, or the object on which it's
-         *      a method.
-         * @param {Boolean} registerPrototype (Optional) Indicates that the prototype should
-         *      also be instrumented. Setting to true has the same effect as calling
-         *      registerConstructor().
-         * @return {Void}
-         * @method registerFunction
-         * @static
-         */     
-        registerFunction : function(name /*:String*/, owner /*:Object*/, registerPrototype /*:Boolean*/) /*:Void*/{
-        
-            //figure out the function name without namespacing
-            var funcName = (name.indexOf(".") > -1 ? 
-                    name.substring(name.lastIndexOf(".")+1) : name),
-                method,
-                prototype;
-                
-            //if owner isn't an object, try to find it from the name
-            if (!lang.isObject(owner)){
-                owner = eval(name.substring(0, name.lastIndexOf(".")));
-            }
-            
-            //get the method and prototype
-            method = owner[funcName];
-            prototype = method.prototype;
-            
-            //see if the method has already been registered
-            if (lang.isFunction(method) && !method.__yuiProfiled){
-                
-                //replace the function with the profiling one
-                owner[funcName] = this.instrument(name, method);
-                        
-                /*
-                 * Store original function information. We store the actual
-                 * function as well as the owner and the name used to identify
-                 * the function so it can be restored later.
-                 */
-                container[name].__yuiOwner = owner;
-                container[name].__yuiFuncName = funcName;  //overwrite with less-specific name
-                 
-                //register prototype if necessary
-                if (registerPrototype) {            
-                    this.registerObject(name + ".prototype", prototype);          
-                }
-    
-            }
-        
-        },
-            
-        
-        /**
-         * Sets up an object for profiling. It takes the object and looks for functions.
-         * When a function is found, registerMethod() is called on it. If set to recrusive
-         * mode, it will also setup objects found inside of this object for profiling, 
-         * using the same methodology.
-         * @param {String} name The name of the object to profile (shows up in report).
-         * @param {Object} owner (Optional) The object represented by the name.
-         * @param {Boolean} recurse (Optional) Determines if subobject methods are also profiled.
-         * @return {Void}
-         * @method registerObject
-         * @static
-         */
-        registerObject : function (name /*:String*/, object /*:Object*/, recurse /*:Boolean*/) /*:Void*/{
-        
-            //get the object
-            object = (lang.isObject(object) ? object : eval(name));
-        
-            //save the object
-            container[name] = object;
-        
-            for (var prop in object) {
-                if (typeof object[prop] == "function"){
-                    if (prop != "constructor" && prop != "superclass"){ //don't do constructor or superclass, it's recursive
-                        this.registerFunction(name + "." + prop, object);
-                    }
-                } else if (typeof object[prop] == "object" && recurse){
-                    this.registerObject(name + "." + prop, object[prop], recurse);
-                }
-            }
-        
-        },    
-        
-        /**
-         * Removes a constructor function from profiling. Reverses the registerConstructor() method.
-         * @param {String} name The full name of the function including namespacing. This
-         *      is the name of the function that is stored in the report.
-         * @return {Void}
-         * @method unregisterFunction
-         * @static
-         */     
-        unregisterConstructor : function(name /*:String*/) /*:Void*/{
-                
-            //see if the method has been registered
-            if (lang.isFunction(container[name])){
-                this.unregisterFunction(name, true);
-            }    
-        },
-        
-        /**
-         * Removes function from profiling. Reverses the registerFunction() method.
-         * @param {String} name The full name of the function including namespacing. This
-         *      is the name of the function that is stored in the report.
-         * @return {Void}
-         * @method unregisterFunction
-         * @static
-         */     
-        unregisterFunction : function(name /*:String*/, unregisterPrototype /*:Boolean*/) /*:Void*/{
-                
-            //see if the method has been registered
-            if (lang.isFunction(container[name])){
-            
-                //check to see if you should unregister the prototype
-                if (unregisterPrototype){
-                    this.unregisterObject(name + ".prototype", container[name].prototype);
-                }
-                    
-                //get original data
-                var owner /*:Object*/ = container[name].__yuiOwner,
-                    funcName /*:String*/ = container[name].__yuiFuncName;
-                    
-                //delete extra information
-                delete container[name].__yuiOwner;
-                delete container[name].__yuiFuncName;
-                
-                //replace instrumented function
-                owner[funcName] = container[name];
-                
-                //delete supporting information
-                delete container[name];          
-            }
-                
-        
-        },
-        
-        /**
-         * Unregisters an object for profiling. It takes the object and looks for functions.
-         * When a function is found, unregisterMethod() is called on it. If set to recrusive
-         * mode, it will also unregister objects found inside of this object, 
-         * using the same methodology.
-         * @param {String} name The name of the object to unregister.
-         * @param {Boolean} recurse (Optional) Determines if subobject methods should also be
-         *      unregistered.
-         * @return {Void}
-         * @method unregisterObject
-         * @static
-         */
-        unregisterObject : function (name /*:String*/, recurse /*:Boolean*/) /*:Void*/{
-        
-            //get the object
-            if (lang.isObject(container[name])){            
-                var object = container[name];    
-            
-                for (var prop in object) {
-                    if (typeof object[prop] == "function"){
-                        this.unregisterFunction(name + "." + prop);
-                    } else if (typeof object[prop] == "object" && recurse){
-                        this.unregisterObject(name + "." + prop, recurse);
-                    }
-                }
-                
-                delete container[name];
-            }
-        
-        }
-         
-
-    };
-
-}();  
-
-YAHOO.register("profiler", YAHOO.tool.Profiler, {version: "2.8.0r4", build: "2449"});
diff --git a/koha-tmpl/intranet-tmpl/prog/en/lib/yui/profilerviewer/assets/profilerviewer-core.css b/koha-tmpl/intranet-tmpl/prog/en/lib/yui/profilerviewer/assets/profilerviewer-core.css
deleted file mode 100644 (file)
index 62d05f6..0000000
+++ /dev/null
@@ -1,6 +0,0 @@
-/*
-Copyright (c) 2009, Yahoo! Inc. All rights reserved.
-Code licensed under the BSD License:
-http://developer.yahoo.net/yui/license.txt
-version: 2.8.0r4
-*/
diff --git a/koha-tmpl/intranet-tmpl/prog/en/lib/yui/profilerviewer/assets/skins/sam/asc.gif b/koha-tmpl/intranet-tmpl/prog/en/lib/yui/profilerviewer/assets/skins/sam/asc.gif
deleted file mode 100644 (file)
index a1fe738..0000000
Binary files a/koha-tmpl/intranet-tmpl/prog/en/lib/yui/profilerviewer/assets/skins/sam/asc.gif and /dev/null differ
diff --git a/koha-tmpl/intranet-tmpl/prog/en/lib/yui/profilerviewer/assets/skins/sam/desc.gif b/koha-tmpl/intranet-tmpl/prog/en/lib/yui/profilerviewer/assets/skins/sam/desc.gif
deleted file mode 100644 (file)
index c114f29..0000000
Binary files a/koha-tmpl/intranet-tmpl/prog/en/lib/yui/profilerviewer/assets/skins/sam/desc.gif and /dev/null differ
diff --git a/koha-tmpl/intranet-tmpl/prog/en/lib/yui/profilerviewer/assets/skins/sam/header_background.png b/koha-tmpl/intranet-tmpl/prog/en/lib/yui/profilerviewer/assets/skins/sam/header_background.png
deleted file mode 100644 (file)
index 3ef7909..0000000
Binary files a/koha-tmpl/intranet-tmpl/prog/en/lib/yui/profilerviewer/assets/skins/sam/header_background.png and /dev/null differ
diff --git a/koha-tmpl/intranet-tmpl/prog/en/lib/yui/profilerviewer/assets/skins/sam/profilerviewer-skin.css b/koha-tmpl/intranet-tmpl/prog/en/lib/yui/profilerviewer/assets/skins/sam/profilerviewer-skin.css
deleted file mode 100644 (file)
index 4e2bd27..0000000
+++ /dev/null
@@ -1,167 +0,0 @@
-/*
-Copyright (c) 2009, Yahoo! Inc. All rights reserved.
-Code licensed under the BSD License:
-http://developer.yahoo.net/yui/license.txt
-version: 2.8.0r4
-*/
-.yui-skin-sam .yui-pv {
-       background-color:#4a4a4a;
-       font:arial;
-       position:relative;
-       width:99%;
-       z-index:1000;
-       margin-bottom:1em;
-       overflow:hidden;
-}
-
-.yui-skin-sam .yui-pv .hd {
-       background:url(header_background.png) repeat-x;
-       min-height:30px;
-       overflow:hidden;
-       zoom:1;
-       padding:2px 0;
-}
-
-.yui-skin-sam .yui-pv .hd h4 {
-       padding:8px 10px;
-       margin:0;
-       font:bold 14px arial;
-       color:#fff;
-}
-       
-.yui-skin-sam .yui-pv .hd a {
-       background:#3f6bc3; 
-       font:bold 11px arial; 
-       color:#fff; 
-       padding:4px; 
-       margin:3px 10px 0 0; 
-       border:1px solid #3f567d; 
-       cursor:pointer;
-       display:block;
-       float:right;
-}
-
-.yui-skin-sam .yui-pv .hd span {
-       display:none;
-}
-
-.yui-skin-sam .yui-pv .hd span.yui-pv-busy {
-       height:18px;
-       width:18px;
-       background:url(wait.gif) no-repeat;
-       overflow:hidden;
-       display:block;
-       float:right;
-       margin:4px 10px 0 0; 
-}
-
-.yui-skin-sam .yui-pv .hd:after, 
-.yui-pv .bd:after, 
-.yui-skin-sam .yui-pv-chartlegend dl:after {
-       content:'.';visibility:hidden;clear:left;height:0;display:block;
-}
-
-.yui-skin-sam .yui-pv .bd {
-       position:relative; 
-       zoom:1; 
-       overflow-x:auto; 
-       overflow-y:hidden;
-}
-
-.yui-skin-sam .yui-pv .yui-pv-table {
-       padding:0 10px; 
-       margin:5px 0 10px 0;
-}
-
-.yui-skin-sam .yui-pv .yui-pv-table .yui-dt-bd td {
-       color:#eeee5c;
-       font:12px arial;
-}
-
-.yui-skin-sam .yui-pv .yui-pv-table tr.yui-dt-odd {
-       background:#929292;
-}
-
-.yui-skin-sam .yui-pv .yui-pv-table tr.yui-dt-even {
-       background:#58637a;
-}
-
-.yui-skin-sam .yui-pv .yui-pv-table tr.yui-dt-even td.yui-dt-asc, 
-.yui-skin-sam .yui-pv .yui-pv-table tr.yui-dt-even td.yui-dt-desc {
-       background:#384970;
-}
-
-.yui-skin-sam .yui-pv .yui-pv-table tr.yui-dt-odd td.yui-dt-asc, 
-.yui-skin-sam .yui-pv .yui-pv-table tr.yui-dt-odd td.yui-dt-desc {
-       background:#6F6E6E;
-}
-
-.yui-skin-sam .yui-pv .yui-pv-table .yui-dt-hd th {
-       background-image:none;
-       background:#2E2D2D;
-}
-
-.yui-skin-sam .yui-pv th.yui-dt-asc .yui-dt-liner {
-       background:transparent url(asc.gif) no-repeat scroll right center;
-}
-
-.yui-skin-sam .yui-pv th.yui-dt-desc .yui-dt-liner {
-       background:transparent url(desc.gif) no-repeat scroll right center;
-}
-
-.yui-skin-sam .yui-pv .yui-pv-table .yui-dt-hd th a {
-       color:#fff; 
-       font:bold 12px arial;
-}
-
-.yui-skin-sam .yui-pv .yui-pv-table .yui-dt-hd th.yui-dt-asc, 
-.yui-skin-sam .yui-pv .yui-pv-table .yui-dt-hd th.yui-dt-desc {
-       background:#333;
-}
-
-.yui-skin-sam .yui-pv-chartcontainer {
-       padding:0 10px;
-}
-
-.yui-skin-sam .yui-pv-chart {
-       height:250px; 
-       clear:right; 
-       margin:5px 0 0 0;
-       color:#fff;
-}
-
-.yui-skin-sam .yui-pv-chartlegend div {
-       float:right;
-       margin:0 0 0 10px;
-       _width:250px;
-}
-
-.yui-skin-sam .yui-pv-chartlegend dl {
-       border:1px solid #999;
-       padding:.2em 0 .2em .5em;
-       zoom:1;
-       margin:5px 0;
-}
-
-.yui-skin-sam .yui-pv-chartlegend dt {
-       float:left;
-       display:block; 
-       height:.7em; 
-       width:.7em;  
-       padding:0;
-}
-
-.yui-skin-sam .yui-pv-chartlegend dd {
-       float:left; 
-       display:block; 
-       color:#fff; 
-       margin:0 1em 0 .5em; 
-       padding:0; 
-       font:11px arial;
-}
-
-.yui-skin-sam .yui-pv-minimized {height:35px;}
-
-.yui-skin-sam .yui-pv-minimized .bd {top:-3000px;}
-
-.yui-skin-sam .yui-pv-minimized .hd a.yui-pv-refresh {display:none;}
\ No newline at end of file
diff --git a/koha-tmpl/intranet-tmpl/prog/en/lib/yui/profilerviewer/assets/skins/sam/profilerviewer.css b/koha-tmpl/intranet-tmpl/prog/en/lib/yui/profilerviewer/assets/skins/sam/profilerviewer.css
deleted file mode 100644 (file)
index d1e7832..0000000
+++ /dev/null
@@ -1,7 +0,0 @@
-/*
-Copyright (c) 2009, Yahoo! Inc. All rights reserved.
-Code licensed under the BSD License:
-http://developer.yahoo.net/yui/license.txt
-version: 2.8.0r4
-*/
-.yui-skin-sam .yui-pv{background-color:#4a4a4a;font:arial;position:relative;width:99%;z-index:1000;margin-bottom:1em;overflow:hidden;}.yui-skin-sam .yui-pv .hd{background:url(header_background.png) repeat-x;min-height:30px;overflow:hidden;zoom:1;padding:2px 0;}.yui-skin-sam .yui-pv .hd h4{padding:8px 10px;margin:0;font:bold 14px arial;color:#fff;}.yui-skin-sam .yui-pv .hd a{background:#3f6bc3;font:bold 11px arial;color:#fff;padding:4px;margin:3px 10px 0 0;border:1px solid #3f567d;cursor:pointer;display:block;float:right;}.yui-skin-sam .yui-pv .hd span{display:none;}.yui-skin-sam .yui-pv .hd span.yui-pv-busy{height:18px;width:18px;background:url(wait.gif) no-repeat;overflow:hidden;display:block;float:right;margin:4px 10px 0 0;}.yui-skin-sam .yui-pv .hd:after,.yui-pv .bd:after,.yui-skin-sam .yui-pv-chartlegend dl:after{content:'.';visibility:hidden;clear:left;height:0;display:block;}.yui-skin-sam .yui-pv .bd{position:relative;zoom:1;overflow-x:auto;overflow-y:hidden;}.yui-skin-sam .yui-pv .yui-pv-table{padding:0 10px;margin:5px 0 10px 0;}.yui-skin-sam .yui-pv .yui-pv-table .yui-dt-bd td{color:#eeee5c;font:12px arial;}.yui-skin-sam .yui-pv .yui-pv-table tr.yui-dt-odd{background:#929292;}.yui-skin-sam .yui-pv .yui-pv-table tr.yui-dt-even{background:#58637a;}.yui-skin-sam .yui-pv .yui-pv-table tr.yui-dt-even td.yui-dt-asc,.yui-skin-sam .yui-pv .yui-pv-table tr.yui-dt-even td.yui-dt-desc{background:#384970;}.yui-skin-sam .yui-pv .yui-pv-table tr.yui-dt-odd td.yui-dt-asc,.yui-skin-sam .yui-pv .yui-pv-table tr.yui-dt-odd td.yui-dt-desc{background:#6F6E6E;}.yui-skin-sam .yui-pv .yui-pv-table .yui-dt-hd th{background-image:none;background:#2E2D2D;}.yui-skin-sam .yui-pv th.yui-dt-asc .yui-dt-liner{background:transparent url(asc.gif) no-repeat scroll right center;}.yui-skin-sam .yui-pv th.yui-dt-desc .yui-dt-liner{background:transparent url(desc.gif) no-repeat scroll right center;}.yui-skin-sam .yui-pv .yui-pv-table .yui-dt-hd th a{color:#fff;font:bold 12px arial;}.yui-skin-sam .yui-pv .yui-pv-table .yui-dt-hd th.yui-dt-asc,.yui-skin-sam .yui-pv .yui-pv-table .yui-dt-hd th.yui-dt-desc{background:#333;}.yui-skin-sam .yui-pv-chartcontainer{padding:0 10px;}.yui-skin-sam .yui-pv-chart{height:250px;clear:right;margin:5px 0 0 0;color:#fff;}.yui-skin-sam .yui-pv-chartlegend div{float:right;margin:0 0 0 10px;_width:250px;}.yui-skin-sam .yui-pv-chartlegend dl{border:1px solid #999;padding:.2em 0 .2em .5em;zoom:1;margin:5px 0;}.yui-skin-sam .yui-pv-chartlegend dt{float:left;display:block;height:.7em;width:.7em;padding:0;}.yui-skin-sam .yui-pv-chartlegend dd{float:left;display:block;color:#fff;margin:0 1em 0 .5em;padding:0;font:11px arial;}.yui-skin-sam .yui-pv-minimized{height:35px;}.yui-skin-sam .yui-pv-minimized .bd{top:-3000px;}.yui-skin-sam .yui-pv-minimized .hd a.yui-pv-refresh{display:none;}
diff --git a/koha-tmpl/intranet-tmpl/prog/en/lib/yui/profilerviewer/assets/skins/sam/wait.gif b/koha-tmpl/intranet-tmpl/prog/en/lib/yui/profilerviewer/assets/skins/sam/wait.gif
deleted file mode 100644 (file)
index 471c1a4..0000000
Binary files a/koha-tmpl/intranet-tmpl/prog/en/lib/yui/profilerviewer/assets/skins/sam/wait.gif and /dev/null differ
diff --git a/koha-tmpl/intranet-tmpl/prog/en/lib/yui/profilerviewer/profilerviewer-debug.js b/koha-tmpl/intranet-tmpl/prog/en/lib/yui/profilerviewer/profilerviewer-debug.js
deleted file mode 100644 (file)
index 2003559..0000000
+++ /dev/null
@@ -1,1229 +0,0 @@
-/*
-Copyright (c) 2009, Yahoo! Inc. All rights reserved.
-Code licensed under the BSD License:
-http://developer.yahoo.net/yui/license.txt
-version: 2.8.0r4
-*/
-(function() {
-
-    /**
-     * The ProfilerViewer module provides a graphical display for viewing
-        * the output of the YUI Profiler <http://developer.yahoo.com/yui/profiler>.
-     * @module profilerviewer
-     * @requires yahoo, dom, event, element, profiler, yuiloader
-     */
-
-    /**
-     * A widget to view YUI Profiler output.
-     * @namespace YAHOO.widget
-     * @class ProfilerViewer
-     * @extends YAHOO.util.Element
-     * @constructor
-     * @param {HTMLElement | String | Object} el(optional) The html 
-     * element into which the ProfileViewer should be rendered. 
-     * An element will be created if none provided.
-     * @param {Object} attr (optional) A key map of the ProfilerViewer's 
-     * initial attributes.  Ignored if first arg is an attributes object.
-     */
-    YAHOO.widget.ProfilerViewer = function(el, attr) {
-        attr = attr || {};
-        if (arguments.length == 1 && !YAHOO.lang.isString(el) && !el.nodeName) {
-            attr = el;
-            el = attr.element || null;
-        }
-        if (!el && !attr.element) {
-            el = this._createProfilerViewerElement();
-        }
-
-       YAHOO.widget.ProfilerViewer.superclass.constructor.call(this, el, attr); 
-               
-               this._init();
-               
-               YAHOO.log("ProfilerViewer instantiated.", "info", "ProfilerViewer");
-    };
-
-    YAHOO.extend(YAHOO.widget.ProfilerViewer, YAHOO.util.Element);
-       
-       // Static members of YAHOO.widget.ProfilerViewer:
-       YAHOO.lang.augmentObject(YAHOO.widget.ProfilerViewer, {
-               /**
-                * Classname for ProfilerViewer containing element.
-                * @static
-                * @property CLASS
-                * @type string
-                * @public
-                * @default "yui-pv"
-                */
-               CLASS: 'yui-pv',
-       
-               /**
-                * Classname for ProfilerViewer button dashboard. 
-                * @static
-                * @property CLASS_DASHBOARD
-                * @type string
-                * @public
-                * @default "yui-pv-dashboard"
-                */
-               CLASS_DASHBOARD: 'yui-pv-dashboard',
-
-               /**
-                * Classname for the "refresh data" button. 
-                * @static
-                * @property CLASS_REFRESH
-                * @type string
-                * @public
-                * @default "yui-pv-refresh"
-                */
-               CLASS_REFRESH: 'yui-pv-refresh',
-
-               /**
-                * Classname for busy indicator in the dashboard. 
-                * @static
-                * @property CLASS_BUSY
-                * @type string
-                * @public
-                * @default "yui-pv-busy"
-                */
-               CLASS_BUSY: 'yui-pv-busy',
-       
-               /**
-                * Classname for element containing the chart and chart
-                * legend elements.
-                * @static
-                * @property CLASS_CHART_CONTAINER
-                * @type string
-                * @public
-                * @default "yui-pv-chartcontainer"
-                */
-               CLASS_CHART_CONTAINER: 'yui-pv-chartcontainer',
-       
-               /**
-                * Classname for element containing the chart.
-                * @static
-                * @property CLASS_CHART
-                * @type string
-                * @public
-                * @default "yui-pv-chart"
-                */
-               CLASS_CHART: 'yui-pv-chart',
-               
-               /**
-                * Classname for element containing the chart's legend. 
-                * @static
-                * @property CLASS_CHART_LEGEND
-                * @type string
-                * @public
-                * @default "yui-pv-chartlegend"
-                */
-               CLASS_CHART_LEGEND: 'yui-pv-chartlegend',
-               
-               /**
-                * Classname for element containing the datatable. 
-                * @static
-                * @property CLASS_TABLE
-                * @type string
-                * @public
-                * @default "yui-pv-table"
-                */
-               CLASS_TABLE: 'yui-pv-table',
-               
-               /**
-                * Strings used in the UI.
-                * @static
-                * @property STRINGS
-                * @object
-                * @public
-                * @default English language strings for UI.
-                */
-               STRINGS: {
-                       title: "YUI Profiler (beta)",
-                       buttons: {
-                               viewprofiler: "View Profiler Data",
-                               hideprofiler: "Hide Profiler Report",
-                               showchart: "Show Chart",
-                               hidechart: "Hide Chart",
-                               refreshdata: "Refresh Data"
-                       },
-                       colHeads: {
-                               //key: [column head label, width in pixels]
-                               fn: ["Function/Method", null], //must auto-size
-                               calls: ["Calls", 40],
-                               avg: ["Average", 80],
-                               min: ["Shortest", 70],
-                               max: ["Longest", 70],
-                               total: ["Total Time", 70],
-                               pct: ["Percent", 70]
-                       },
-                       millisecondsAbbrev: "ms",
-                       initMessage: "initialiazing chart...",
-                       installFlashMessage: "Unable to load Flash content. The YUI Charts Control requires Flash Player 9.0.45 or higher. You can download the latest version of Flash Player from the <a href='http://www.adobe.com/go/getflashplayer'>Adobe Flash Player Download Center</a>."
-               },
-
-               /**
-                * Function used to format numbers in milliseconds
-                * for chart; must be publicly accessible, per Charts spec.
-                * @static
-                * @property timeAxisLabelFunction
-                * @type function
-                * @private
-                */
-               timeAxisLabelFunction: function(n) {
-                       var a = (n === Math.floor(n)) ? n : (Math.round(n*1000))/1000;
-                       return (a + " " + YAHOO.widget.ProfilerViewer.STRINGS.millisecondsAbbrev);
-               },
-
-               /**
-                * Function used to format percent numbers for chart; must
-                * be publicly accessible, per Charts spec.
-                * @static
-                * @property percentAxisLabelFunction
-                * @type function
-                * @private
-                */
-               percentAxisLabelFunction: function(n) {
-                       var a = (n === Math.floor(n)) ? n : (Math.round(n*100))/100;
-                       return (a + "%");
-               }
-               
-       
-       },true);
-       
-
-       //
-       // STANDARD SHORTCUTS
-       //
-    var Dom = YAHOO.util.Dom;
-    var Event = YAHOO.util.Event;
-       var Profiler = YAHOO.tool.Profiler;
-       var PV = YAHOO.widget.ProfilerViewer;
-       var proto = PV.prototype;
-
-
-       //
-       // PUBLIC METHODS
-       //
-       
-        /**
-     * Refreshes the data displayed in the ProfilerViewer. When called,
-        * this will invoke a refresh of the DataTable and (if displayed)
-        * the Chart.
-     * @method refreshData
-     * @return void
-        * @public
-     */        
-       proto.refreshData = function() {
-               YAHOO.log("Data refresh requested via refreshData method.", "info", "ProfilerViewer");
-               this.fireEvent("dataRefreshEvent");
-       };
-
-        /**
-     * Returns the element containing the console's header.
-     * @method getHeadEl
-     * @return HTMLElement
-        * @public
-     */        
-       proto.getHeadEl = function() {
-               YAHOO.log("Head element requested via getHeadEl.", "info", "ProfilerViewer");
-               return (this._headEl) ? Dom.get(this._headEl) : false;
-       };
-
-        /**
-     * Returns the element containing the console's body, including
-        * the chart and the datatable..
-     * @method getBodyEl
-     * @return HTMLElement
-        * @public
-     */        
-       proto.getBodyEl = function() {
-               YAHOO.log("Body element requested via getBodyEl.", "info", "ProfilerViewer");
-               return (this._bodyEl) ? Dom.get(this._bodyEl) : false;
-       };
-
-        /**
-     * Returns the element containing the console's chart.
-     * @method getChartEl
-     * @return HTMLElement
-        * @public
-     */        
-       proto.getChartEl = function() {
-               YAHOO.log("Chart element requested via getChartEl.", "info", "ProfilerViewer");
-               return (this._chartEl) ? Dom.get(this._chartEl) : false;
-       };
-
-        /**
-     * Returns the element containing the console's dataTable.
-     * @method getTableEl
-     * @return HTMLElement
-        * @public
-     */        
-       proto.getTableEl = function() {
-               YAHOO.log("DataTable element requested via getTableEl.", "info", "ProfilerViewer");
-               return (this._tableEl) ? Dom.get(this._tableEl) : false;
-       };
-
-        /**
-     * Returns the element containing the console's DataTable
-        * instance.
-     * @method getDataTable
-     * @return YAHOO.widget.DataTable
-        * @public
-     */        
-       proto.getDataTable = function() {
-               YAHOO.log("DataTable instance requested via getDataTable.", "info", "ProfilerViewer");
-               return this._dataTable;
-       };
-
-        /**
-     * Returns the element containing the console's Chart instance.
-     * @method getChart
-     * @return YAHOO.widget.BarChart
-        * @public
-     */        
-       proto.getChart = function() {
-               YAHOO.log("Chart instance requested via getChart.", "info", "ProfilerViewer");
-               return this._chart;
-       };
-
-
-    //
-    // PRIVATE PROPERTIES
-    //
-    proto._rendered = false;
-       proto._headEl = null;
-       proto._bodyEl = null;
-       proto._toggleVisibleEl = null;
-       proto._busyEl = null;
-       proto._busy = false;
-       
-       proto._tableEl = null;
-       proto._dataTable = null;
-
-       proto._chartEl = null;
-       proto._chartLegendEl = null;
-       proto._chartElHeight = 250;
-       proto._chart = null;
-       proto._chartInitialized = false;
-
-    //
-    // PRIVATE METHODS
-    //
-
-       proto._init = function() {
-               /**
-                * CUSTOM EVENTS
-                **/
-               
-               /**
-                * Fired when a data refresh is requested. No arguments are passed
-                * with this event.
-                *
-                * @event refreshDataEvent
-                */
-               this.createEvent("dataRefreshEvent");
-               
-               /**
-                * Fired when the viewer canvas first renders. No arguments are passed
-                * with this event.
-                *
-                * @event renderEvent
-                */
-               this.createEvent("renderEvent");
-
-               this.on("dataRefreshEvent", this._refreshDataTable, this, true);
-               
-               this._initLauncherDOM();
-               
-               if(this.get("showChart")) {
-                       this.on("sortedByChange", this._refreshChart);
-               }
-
-               YAHOO.log("ProfilerViewer instance initialization complete.", "info", "ProfilerViewer");
-       };
-
-       /**
-        * If no element is passed in, create it as the first element
-        * in the document.
-        * @method _createProfilerViewerElement
-        * @return HTMLElement
-        * @private
-        */
-       proto._createProfilerViewerElement = function() {
-               YAHOO.log("Creating root element...", "info", "ProfilerViewer");
-
-               var el = document.createElement("div");
-               document.body.insertBefore(el, document.body.firstChild);
-               Dom.addClass(el, this.SKIN_CLASS);
-               Dom.addClass(el, PV.CLASS);
-               YAHOO.log(el);
-               return el;
-       };
-                       
-    /**
-     * Provides a readable name for the ProfilerViewer instance.
-     * @method toString
-     * @return String
-        * @private
-        */
-    proto.toString = function() {
-        return "ProfilerViewer " + (this.get('id') || this.get('tagName'));
-    };
-
-    /**
-     * Toggles visibility of the viewer canvas.
-     * @method _toggleVisible
-     * @return void
-        * @private
-     */        
-       proto._toggleVisible = function() {
-               YAHOO.log("Toggling visibility to " + !this.get("visible") + ".", "info", "ProfilerViewer");
-               
-               var newVis = (this.get("visible")) ? false : true;
-               this.set("visible", newVis);
-    };
-
-    /**
-     * Shows the viewer canvas.
-     * @method show
-     * @return void
-        * @private
-     */        
-        proto._show = function() {
-               if(!this._busy) {
-                       this._setBusyState(true);
-                       if(!this._rendered) {
-                               var loader = new YAHOO.util.YUILoader();
-                               if (this.get("base")) {
-                                       loader.base = this.get("base");
-                               }
-                               
-                               var modules = ["datatable"];
-                               if(this.get("showChart")) {
-                                       modules.push("charts");
-                               }
-                               
-                               loader.insert({ require: modules,
-                                                               onSuccess: function() {
-                                                                       this._render();
-                                                               },
-                                                               scope: this});
-                       } else {
-                               var el = this.get("element");
-                               Dom.removeClass(el, "yui-pv-minimized");
-                               this._toggleVisibleEl.innerHTML = PV.STRINGS.buttons.hideprofiler;
-                               
-                               //The Flash Charts component can't be set to display:none,
-                               //and even after positioning it offscreen the screen
-                               //may fail to repaint in some browsers.  Adding an empty
-                               //style rule to the console body can help force a repaint:
-                               Dom.addClass(el, "yui-pv-null");
-                               Dom.removeClass(el, "yui-pv-null");
-                               
-                               //Always refresh data when changing to visible:
-                               this.refreshData();
-                       }
-               }
-    };
-
-    /**
-     * Hides the viewer canvas.
-     * @method hide
-     * @return void
-        * @private
-     */        
-       proto._hide = function() {
-               this._toggleVisibleEl.innerHTML = PV.STRINGS.buttons.viewprofiler;
-               Dom.addClass(this.get("element"), "yui-pv-minimized");
-    };
-       
-       /**
-        * Render the viewer canvas
-        * @method _render
-        * @return void
-        * @private
-        */
-       proto._render = function() {
-               YAHOO.log("Beginning to render ProfilerViewer canvas...", "info", "ProfilerViewer");
-               
-               Dom.removeClass(this.get("element"), "yui-pv-minimized");
-               
-               this._initViewerDOM();
-               this._initDataTable();
-               if(this.get("showChart")) {
-                       this._initChartDOM();
-                       this._initChart();
-               }
-               this._rendered = true;
-               this._toggleVisibleEl.innerHTML = PV.STRINGS.buttons.hideprofiler;
-               
-               this.fireEvent("renderEvent");
-
-               YAHOO.log("ProfilerViewer rendering complete...", "info", "ProfilerViewer");
-       };
-       
-       /**
-        * Set up the DOM structure for the ProfilerViewer launcher.
-        * @method _initLauncherDOM
-        * @private
-        */
-       proto._initLauncherDOM = function() {
-               YAHOO.log("Creating the launcher...", "info", "ProfilerViewer");
-               
-               var el = this.get("element");
-               Dom.addClass(el, PV.CLASS);
-               Dom.addClass(el, "yui-pv-minimized");
-
-               this._headEl = document.createElement("div");
-               Dom.addClass(this._headEl, "hd");
-               
-               var s = PV.STRINGS.buttons;
-               var b = (this.get("visible")) ? s.hideprofiler : s.viewprofiler;
-               
-               this._toggleVisibleEl = this._createButton(b, this._headEl);
-               
-               this._refreshEl = this._createButton(s.refreshdata, this._headEl);
-               Dom.addClass(this._refreshEl, PV.CLASS_REFRESH);
-               
-               this._busyEl = document.createElement("span");
-               this._headEl.appendChild(this._busyEl);
-
-               var title = document.createElement("h4");
-               title.innerHTML = PV.STRINGS.title;
-               this._headEl.appendChild(title);
-               
-               el.appendChild(this._headEl);
-               
-               Event.on(this._toggleVisibleEl, "click", this._toggleVisible, this, true);
-               Event.on(this._refreshEl, "click", function() {
-                       if(!this._busy) {
-                               this._setBusyState(true);
-                               this.fireEvent("dataRefreshEvent");
-                       }
-               }, this, true);
-       };
-
-       /**
-        * Set up the DOM structure for the ProfilerViewer canvas,
-        * including the holder for the DataTable.
-        * @method _initViewerDOM
-        * @private
-        */
-       proto._initViewerDOM = function() {
-               YAHOO.log("Creating DOM structure for viewer...", "info", "ProfilerViewer");
-               
-               var el = this.get("element");
-               this._bodyEl = document.createElement("div");
-               Dom.addClass(this._bodyEl, "bd");
-               this._tableEl = document.createElement("div");
-               Dom.addClass(this._tableEl, PV.CLASS_TABLE);
-               this._bodyEl.appendChild(this._tableEl);
-               el.appendChild(this._bodyEl);
-       };
-
-       /**
-        * Set up the DOM structure for the ProfilerViewer canvas.
-        * @method _initChartDOM
-        * @private
-        */
-       proto._initChartDOM = function() {
-               YAHOO.log("Adding DOM structure for chart...", "info", "ProfilerViewer");
-               
-               this._chartContainer = document.createElement("div");
-               Dom.addClass(this._chartContainer, PV.CLASS_CHART_CONTAINER);
-               
-               var chl = document.createElement("div");
-               Dom.addClass(chl, PV.CLASS_CHART_LEGEND);
-               
-               var chw = document.createElement("div");
-
-               this._chartLegendEl = document.createElement("dl");
-               this._chartLegendEl.innerHTML = "<dd>" + PV.STRINGS.initMessage + "</dd>";
-               
-               this._chartEl = document.createElement("div");
-               Dom.addClass(this._chartEl, PV.CLASS_CHART);
-               
-               var msg = document.createElement("p");
-               msg.innerHTML = PV.STRINGS.installFlashMessage;
-               this._chartEl.appendChild(msg);
-               
-               this._chartContainer.appendChild(chl);
-               chl.appendChild(chw);
-               chw.appendChild(this._chartLegendEl);
-               this._chartContainer.appendChild(this._chartEl);
-               this._bodyEl.insertBefore(this._chartContainer,this._tableEl);
-       };
-
-
-       /**
-        * Create anchor elements for use as buttons. Args: label
-        * is text to appear on the face of the button, parentEl
-        * is the el to which the anchor will be attached, position
-        * is true for inserting as the first node and false for
-        * inserting as the last node of the parentEl.
-        * @method _createButton
-        * @private
-        */     
-       proto._createButton = function(label, parentEl, position) {
-               var b = document.createElement("a");
-               b.innerHTML = b.title = label;
-               if(parentEl) {
-                       if(!position) {
-                               parentEl.appendChild(b);
-                       } else {
-                               parentEl.insertBefore(b, parentEl.firstChild);  
-                       }
-               }
-               return b;
-       };
-       
-       /**
-        * Set's console busy state.
-        * @method _setBusyState
-        * @private
-        **/
-       proto._setBusyState = function(b) {
-               if(b) {
-                       Dom.addClass(this._busyEl, PV.CLASS_BUSY);
-                       this._busy = true;
-               } else {
-                       Dom.removeClass(this._busyEl, PV.CLASS_BUSY);
-                       this._busy = false;
-               }
-       };
-
-       /**
-        * Generages a sorting function based on current sortedBy
-        * values.
-        * @method _createProfilerViewerElement
-        * @private
-        **/
-       proto._genSortFunction = function(key, dir) {
-               var by = key;
-               var direction = dir;
-               return function(a, b) {
-                       if (direction == YAHOO.widget.DataTable.CLASS_ASC) {
-                               return a[by] - b[by];   
-                       } else {
-                               return ((a[by] - b[by]) * -1);
-                       }
-               };
-       };
-
-       /**
-        * Utility function for array sums.
-        * @method _arraySum
-        * @private
-        **/    
-        var _arraySum = function(arr){
-               var ct = 0;
-               for(var i = 0; i < arr.length; ct+=arr[i++]){}
-               return ct;
-       };
-       
-       /**
-        * Retrieves data from Profiler, filtering and sorting as needed
-        * based on current widget state.  Adds calculated percentage
-        * column and function name to data returned by Profiler.
-        * @method _getProfilerData
-        * @private
-        **/
-       proto._getProfilerData = function() {
-               YAHOO.log("Profiler data requested from function DataSource.", "info", "ProfilerViewer");
-               
-               var obj = Profiler.getFullReport();
-               var arr = [];
-               var totalTime = 0;
-               for (name in obj) {
-               if (YAHOO.lang.hasOwnProperty(obj, name)) {
-                               var r = obj[name];
-                               var o = {};
-                               o.fn = name; //add function name to record
-                               o.points = r.points.slice(); //copy live array
-                               o.calls = r.calls;
-                               o.min = r.min;
-                               o.max = r.max;
-                               o.avg = r.avg;
-                               o.total = _arraySum(o.points);
-                               o.points = r.points;
-                               var f = this.get("filter");
-                               if((!f) || (f(o))) {
-                                       arr.push(o);
-                                       totalTime += o.total;
-                               }
-                       }
-               }
-               
-               //add calculated percentage column
-               for (var i = 0, j = arr.length; i < j; i++) {
-                       arr[i].pct = (totalTime) ? (arr[i].total * 100) / totalTime : 0;        
-               }
-
-               var sortedBy = this.get("sortedBy");
-               var key = sortedBy.key;
-               var dir = sortedBy.dir;         
-
-               arr.sort(this._genSortFunction(key, dir));
-               
-               YAHOO.log("Returning data from DataSource: " + YAHOO.lang.dump(arr), "info", "ProfilerViewer");
-               
-               return arr;
-       };
-       
-       /**
-        * Set up the DataTable.
-        * @method _initDataTable
-        * @private
-        */
-       proto._initDataTable = function() {
-               YAHOO.log("Creating DataTable instance...", "info", "ProfilerViewer");
-               
-               var self = this;
-               
-               //Set up the JS Function DataSource, pulling data from
-               //the Profiler.
-               this._dataSource = new YAHOO.util.DataSource(
-                       function() {
-                               return self._getProfilerData.call(self);        
-                       },
-                       {
-                               responseType: YAHOO.util.DataSource.TYPE_JSARRAY,
-                               maxCacheEntries: 0
-                       }
-               );
-               var ds = this._dataSource;
-
-               ds.responseSchema =
-               {
-                       fields: [ "fn", "avg", "calls", "max", "min", "total", "pct", "points"]
-               };
-               
-               //Set up the DataTable.
-               var formatTimeValue = function(elCell, oRecord, oColumn, oData) {
-                       var a = (oData === Math.floor(oData)) ? oData : (Math.round(oData*1000))/1000;
-                       elCell.innerHTML = a + " " + PV.STRINGS.millisecondsAbbrev;
-               };
-
-               var formatPercent = function(elCell, oRecord, oColumn, oData) {
-                       var a = (oData === Math.floor(oData)) ? oData : (Math.round(oData*100))/100;
-                       elCell.innerHTML = a + "%";
-               };
-               
-               var a = YAHOO.widget.DataTable.CLASS_ASC;
-               var d = YAHOO.widget.DataTable.CLASS_DESC;
-               var c = PV.STRINGS.colHeads;
-               var f = formatTimeValue;
-               
-               var cols = [
-                       {key:"fn", sortable:true, label: c.fn[0],
-                               sortOptions: {defaultDir:a}, 
-                               resizeable: (YAHOO.util.DragDrop) ? true : false,
-                               minWidth:c.fn[1]},
-                       {key:"calls", sortable:true, label: c.calls[0],
-                               sortOptions: {defaultDir:d},
-                               width:c.calls[1]},
-                       {key:"avg", sortable:true, label: c.avg[0],
-                               sortOptions: {defaultDir:d},
-                               formatter:f,
-                               width:c.avg[1]},
-                       {key:"min", sortable:true, label: c.min[0],
-                               sortOptions: {defaultDir:a},
-                               formatter:f,
-                               width:c.min[1]}, 
-                       {key:"max", sortable:true, label: c.max[0],
-                               sortOptions: {defaultDir:d},
-                               formatter:f,
-                               width:c.max[1]},
-                       {key:"total", sortable:true, label: c.total[0],
-                               sortOptions: {defaultDir:d},
-                               formatter:f,
-                               width:c.total[1]},
-                       {key:"pct", sortable:true, label: c.pct[0],
-                               sortOptions: {defaultDir:d}, 
-                               formatter:formatPercent,
-                               width:c.pct[1]}
-               ];
-
-               this._dataTable = new YAHOO.widget.DataTable(this._tableEl, cols, ds, {
-                       scrollable:true,
-                       height:this.get("tableHeight"),
-                       initialRequest:null,
-                       sortedBy: {
-                               key: "total",
-                               dir: YAHOO.widget.DataTable.CLASS_DESC
-                       }
-               });
-               var dt = this._dataTable;
-
-               //Wire up DataTable events to drive the rest of the UI.
-               dt.subscribe("sortedByChange", this._sortedByChange, this, true);
-               dt.subscribe("renderEvent", this._dataTableRenderHandler, this, true);
-               dt.subscribe("initEvent", this._dataTableRenderHandler, this, true);
-               Event.on(this._tableEl.getElementsByTagName("th"), "click", this._thClickHandler, this, true);
-               YAHOO.log("DataTable initialized.", "info", "ProfilerViewer");
-       };
-               
-       /**
-        * Proxy the sort event in DataTable into the ProfilerViewer
-        * attribute.
-        * @method _sortedByChange
-        * @private
-        **/
-       proto._sortedByChange = function(o) {
-               if(o.newValue && o.newValue.key) {
-                       YAHOO.log("Relaying DataTable sortedBy value change; new key: " + o.newValue.key + "; new direction: " + o.newValue.dir + ".", "info", "ProfilerViewer");
-                       this.set("sortedBy", {key: o.newValue.key, dir:o.newValue.dir});
-               }
-       };
-       
-       /**
-        * Proxy the render event in DataTable into the ProfilerViewer
-        * attribute.
-        * @method _dataTableRenderHandler
-        * @private
-        **/
-       proto._dataTableRenderHandler = function(o) {
-               YAHOO.log("DataTable's render event has fired.", "info", "ProfilerViewer");
-               this._setBusyState(false);
-       };
-       
-       /**
-        * Event handler for clicks on the DataTable's sortable column
-        * heads.
-        * @method _thClickHandler
-        * @private
-        **/
-       proto._thClickHandler = function(o) {
-               YAHOO.log("DataTable's header row was clicked for sorting.", "info", "ProfilerViewer");
-               this._setBusyState(true);
-       };
-
-       /**
-        * Refresh DataTable, getting new data from Profiler.
-        * @method _refreshDataTable
-        * @private
-        **/
-       proto._refreshDataTable = function(args) {
-               YAHOO.log("Beginning to refresh DataTable contents...", "info", "ProfilerViewer");
-               var dt = this._dataTable;
-               dt.getDataSource().sendRequest("", dt.onDataReturnInitializeTable, dt);
-               YAHOO.log("DataTable refresh complete.", "info", "ProfilerViewer");
-       };
-
-       /**
-        * Refresh chart, getting new data from table.
-        * @method _refreshChart
-        * @private
-        **/
-       proto._refreshChart = function() {
-               YAHOO.log("Beginning to refresh Chart contents...", "info", "ProfilerViewer");
-               
-               switch (this.get("sortedBy").key) {
-                       case "fn":
-                               /*Keep the same data on the chart, but force update to 
-                                 reflect new sort order on function/method name: */
-                               this._chart.set("dataSource", this._chart.get("dataSource"));
-                               /*no further action necessary; chart redraws*/
-                               return;
-                       case "calls":
-                               /*Null out the xAxis formatting before redrawing chart.*/
-                               this._chart.set("xAxis", this._chartAxisDefinitionPlain);
-                               break;
-                       case "pct":
-                               this._chart.set("xAxis", this._chartAxisDefinitionPercent);
-                               break;
-                       default:
-                               /*Set the default xAxis; redraw legend; set the new series definition.*/
-                               this._chart.set("xAxis", this._chartAxisDefinitionTime);
-                               break;
-               }
-               
-               this._drawChartLegend();
-               this._chart.set("series", this._getSeriesDef(this.get("sortedBy").key));
-
-               YAHOO.log("Chart refresh complete.", "info", "ProfilerViewer");
-       };
-       
-       /**
-        * Get data for the Chart from DataTable recordset
-        * @method _getChartData
-        * @private
-        */
-       proto._getChartData = function() {
-               YAHOO.log("Getting data for chart from function DataSource.", "info", "ProfilerViewer");
-               //var records = this._getProfilerData();
-               var records = this._dataTable.getRecordSet().getRecords(0, this.get("maxChartFunctions"));
-               var arr = [];
-               for (var i = 0, j = records.length; i<j; i++) {
-                       arr.push(records[i].getData()); 
-               }
-               YAHOO.log("Returning data to Chart: " + YAHOO.lang.dump(arr), "info", "ProfilerViewer");
-               return arr;
-       };
-       
-       /**
-        * Build series definition based on current configuration attributes.
-        * @method _getSeriesDef
-        * @private
-        */
-       proto._getSeriesDef = function(field) {
-               var sd = this.get("chartSeriesDefinitions")[field];
-               var arr = [];
-               for(var i = 0, j = sd.group.length; i<j; i++) {
-                       var c = this.get("chartSeriesDefinitions")[sd.group[i]];
-                       arr.push(
-                               {displayName:c.displayName,
-                                xField:c.xField,
-                                style: {color:c.style.color, size:c.style.size}
-                               }
-                       );
-               }
-               
-               YAHOO.log("Returning new series definition to chart: " + YAHOO.lang.dump(arr), "info", "ProfilerViewer");
-               return arr;
-       };
-       
-       /**
-        * Set up the Chart.
-        * @method _initChart
-        * @private
-        */
-       proto._initChart = function() {
-               YAHOO.log("Initializing chart...", "info", "ProfilerViewer");
-               
-               this._sizeChartCanvas();
-               
-               YAHOO.widget.Chart.SWFURL = this.get("swfUrl");
-
-               var self = this;
-
-               //Create DataSource based on records currently displayed
-               //at the top of the sort list in the DataTable.
-               var ds = new YAHOO.util.DataSource(
-                       //force the jsfunction DataSource to run in the scope of
-                       //the ProfilerViewer, not in the YAHOO.util.DataSource scope:
-                       function() {
-                               return self._getChartData.call(self);
-                       }, 
-                       {
-                               responseType: YAHOO.util.DataSource.TYPE_JSARRAY,
-                               maxCacheEntries: 0
-                       }
-               );
-
-               ds.responseSchema =
-               {
-                       fields: [ "fn", "avg", "calls", "max", "min", "total", "pct" ]
-               };
-               
-               ds.subscribe('responseEvent', this._sizeChartCanvas, this, true);
-               
-               //Set up the chart itself.
-               this._chartAxisDefinitionTime = new YAHOO.widget.NumericAxis();
-               this._chartAxisDefinitionTime.labelFunction = "YAHOO.widget.ProfilerViewer.timeAxisLabelFunction";
-               
-               this._chartAxisDefinitionPercent = new YAHOO.widget.NumericAxis();
-               this._chartAxisDefinitionPercent.labelFunction = "YAHOO.widget.ProfilerViewer.percentAxisLabelFunction";
-
-               this._chartAxisDefinitionPlain = new YAHOO.widget.NumericAxis();
-               
-               this._chart = new YAHOO.widget.BarChart( this._chartEl, ds,
-               {
-                       yField: "fn",
-                       series: this._getSeriesDef(this.get("sortedBy").key),
-                       style: this.get("chartStyle"),
-                       xAxis: this._chartAxisDefinitionTime
-               } );
-               
-               this._drawChartLegend();
-               this._chartInitialized = true;
-               this._dataTable.unsubscribe("initEvent", this._initChart, this);
-               this._dataTable.subscribe("initEvent", this._refreshChart, this, true);
-               
-               YAHOO.log("Chart initialization complete.", "info", "ProfilerViewer");
-       };
-       
-       /**
-        * Set up the Chart's legend
-        * @method _drawChartLegend
-        * @private
-        **/
-       proto._drawChartLegend = function() {
-               YAHOO.log("Drawing chart legend...", "info", "ProfilerViewer");
-               var seriesDefs = this.get("chartSeriesDefinitions");
-               var currentDef = seriesDefs[this.get("sortedBy").key];
-               var l = this._chartLegendEl;
-               l.innerHTML = "";
-               for(var i = 0, j = currentDef.group.length; i<j; i++) {
-                       var c = seriesDefs[currentDef.group[i]];
-                       var dt = document.createElement("dt");
-                       Dom.setStyle(dt, "backgroundColor", "#" + c.style.color);
-                       var dd = document.createElement("dd");
-                       dd.innerHTML = c.displayName;
-                       l.appendChild(dt);
-                       l.appendChild(dd);
-               }
-       };
-       
-       /**
-        * Resize the chart's canvas if based on number of records
-        * returned from the chart's datasource.
-        * @method _sizeChartCanvas
-        * @private
-        **/
-       proto._sizeChartCanvas = function(o) {
-               YAHOO.log("Resizing chart canvas...", "info", "ProfilerViewer");
-               var bars = (o) ? o.response.length : this.get("maxChartFunctions");
-               var s = (bars * 36) + 34;
-               if (s != parseInt(this._chartElHeight, 10)) {
-                       this._chartElHeight = s;
-                       Dom.setStyle(this._chartEl, "height", s + "px");
-               }
-       };
-
-    /**
-     * setAttributeConfigs TabView specific properties.
-     * @method initAttributes
-     * @param {Object} attr Hash of initial attributes
-        * @method initAttributes
-        * @private
-     */
-    proto.initAttributes = function(attr) {
-               YAHOO.log("Initializing attributes...", "info", "ProfilerViewer");
-        YAHOO.widget.ProfilerViewer.superclass.initAttributes.call(this, attr);
-        /**
-         * The YUI Loader base path from which to pull YUI files needed
-                * in the rendering of the ProfilerViewer canvas.  Passed directly
-                * to YUI Loader.  Leave blank to draw files from
-                * yui.yahooapis.com.
-         * @attribute base
-         * @type string
-                * @default ""
-         */
-        this.setAttributeConfig('base', {
-            value: attr.base
-        });
-
-        /**
-         * The height of the DataTable.  The table will scroll
-                * vertically if the content overflows the specified
-                * height.
-         * @attribute tableHeight
-         * @type string
-                * @default "15em"
-         */
-        this.setAttributeConfig('tableHeight', {
-            value: attr.tableHeight || "15em",
-                       method: function(s) {
-                               if(this._dataTable) {
-                                       this._dataTable.set("height", s);
-                               }
-                       }
-        });
-               
-        /**
-         * The default column key to sort by.  Valid keys are: fn, calls,
-                * avg, min, max, total.  Valid dir values are: 
-                * YAHOO.widget.DataTable.CLASS_ASC and
-                * YAHOO.widget.DataTable.CLASS_DESC (or their
-                * string equivalents).
-         * @attribute sortedBy
-         * @type string
-                * @default {key:"total", dir:"yui-dt-desc"}
-         */
-        this.setAttributeConfig('sortedBy', {
-            value: attr.sortedBy || {key:"total", dir:"yui-dt-desc"}
-        });
-
-        /**
-         * A filter function to use in selecting functions that will
-                * appear in the ProfilerViewer report.  The function is passed
-                * a function report object and should return a boolean indicating
-                * whether that function should be included in the ProfilerViewer
-                * display.  The argument is structured as follows:
-                *
-                * {
-                *              fn: <str function name>,
-                *              calls : <n number of calls>,
-                *              avg : <n average call duration>,
-                *              max: <n duration of longest call>,
-                *              min: <n duration of shortest call>,
-                *              total: <n total time of all calls>
-                *              points : <array time in ms of each call>
-                *      }
-                *
-                * For example, you would use the follwing filter function to 
-                * return only functions that have been called at least once:
-                * 
-                *      function(o) {
-                *              return (o.calls > 0);
-                *      }
-                *
-         * @attribute filter
-         * @type function
-                * @default null
-         */
-        this.setAttributeConfig('filter', {
-            value: attr.filter || null,
-                       validator: YAHOO.lang.isFunction
-        });
-
-               /**
-                * The path to the YUI Charts swf file; must be a full URI
-                * or a path relative to the page being profiled. Changes at runtime
-                * not supported; pass this value in at instantiation.
-                * @attribute swfUrl
-                * @type string
-                * @default "http://yui.yahooapis.com/2.5.0/build/charts/assets/charts.swf"
-                */
-               this.setAttributeConfig('swfUrl', {
-                       value: attr.swfUrl || "http://yui.yahooapis.com/2.5.0/build/charts/assets/charts.swf"
-               });
-
-        /**
-         * The maximum number of functions to profile in the chart. The
-                * greater the number of functions, the greater the height of the
-                * chart canvas.
-                * height.
-         * @attribute maxChartFunctions
-         * @type int
-                * @default 6
-         */
-        this.setAttributeConfig('maxChartFunctions', {
-            value: attr.maxChartFunctions || 6,
-                       method: function(s) {
-                               if(this._rendered) {
-                                       this._sizeChartCanvas();
-                               }
-                       },
-                       validator: YAHOO.lang.isNumber
-        });
-               
-        /**
-         * The style object that defines the chart's visual presentation.
-                * Conforms to the style attribute passed to the Charts Control
-                * constructor.  See Charts Control User's Guide for more information
-                * on how to format this object.
-         * @attribute chartStyle
-         * @type obj
-                * @default See JS source for default definitions.
-         */
-        this.setAttributeConfig('chartStyle', {
-            value:     attr.chartStyle || {
-                               font:
-                                       {
-                                               name: "Arial",
-                                               color: 0xeeee5c,
-                                               size: 12
-                                       },
-                                       background:
-                                       {
-                                               color: "6e6e63"
-                                       }
-                               },
-                       method: function() {
-                                       if(this._rendered && this.get("showChart")) {
-                                               this._refreshChart();
-                                       }
-                               }
-        });
-               
-        /**
-         * The series definition information to use when charting
-                * specific fields on the chart.  displayName, xField,
-                * and style members are used to construct the series
-                * definition; the "group" member is the array of fields
-                * that should be charted when the table is sorted by a
-                * given field.
-         * @attribute chartSeriesDefinitions
-         * @type obj
-                * @default See JS source for full default definitions.
-         */
-        this.setAttributeConfig('chartSeriesDefinitions', {
-            value:     attr.chartSeriesDefinitions ||  {
-                                               total: {
-                                                       displayName: PV.STRINGS.colHeads.total[0],
-                                                       xField: "total",
-                                                       style: {color:"4d95dd", size:20},
-                                                       group: ["total"]
-                                               },
-                                               calls: {                
-                                                       displayName: PV.STRINGS.colHeads.calls[0],
-                                                       xField: "calls",
-                                                       style: {color:"edff9f", size:20},
-                                                       group: ["calls"]
-                                               },
-                                               avg: {
-                                                       displayName: PV.STRINGS.colHeads.avg[0],
-                                                       xField: "avg",
-                                                       style: {color:"209daf", size:9},
-                                                       group: ["avg", "min", "max"]
-                                               },
-                                               min: {
-                                                       displayName: PV.STRINGS.colHeads.min[0],
-                                                       xField: "min",
-                                                       style: {color:"b6ecf4", size:9},
-                                                       group: ["avg", "min", "max"]
-                                               },
-                                               max: {
-                                                       displayName: PV.STRINGS.colHeads.max[0],
-                                                       xField: "max",
-                                                       style: {color:"29c7de", size:9},
-                                                       group: ["avg", "min", "max"]
-                                               },
-                                               pct: {
-                                                       displayName: PV.STRINGS.colHeads.pct[0],
-                                                       xField: "pct",
-                                                       style: {color:"C96EDB", size:20},
-                                                       group: ["pct"]
-                                               }
-                               },
-                       method: function() {
-                                       if(this._rendered && this.get("showChart")) {
-                                               this._refreshChart();
-                                       }
-                               }
-        });
-               
-        /**
-         * The default visibility setting for the viewer canvas. If true,
-                * the viewer will load all necessary files and render itself
-                * immediately upon instantiation; otherwise, the viewer will
-                * load only minimal resources until the user toggles visibility
-                * via the UI.
-         * @attribute visible
-         * @type boolean
-                * @default false
-         */
-        this.setAttributeConfig('visible', {
-            value: attr.visible || false,
-                       validator: YAHOO.lang.isBoolean,
-                       method: function(b) {
-                               if(b) {
-                                       this._show();
-                               } else {
-                                       if (this._rendered) {
-                                               this._hide();
-                                       }
-                               }
-                       }
-        });
-
-        /**
-         * The default visibility setting for the chart.
-         * @attribute showChart
-         * @type boolean
-                * @default true
-         */
-        this.setAttributeConfig('showChart', {
-            value: attr.showChart || true,
-                       validator: YAHOO.lang.isBoolean,
-                       writeOnce: true
-                       
-        });
-               
-               YAHOO.widget.ProfilerViewer.superclass.initAttributes.call(this, attr);
-               
-               YAHOO.log("Attributes initialized.", "info", "ProfilerViewer");
-    };
-       
-})();
-YAHOO.register("profilerviewer", YAHOO.widget.ProfilerViewer, {version: "2.8.0r4", build: "2449"});
diff --git a/koha-tmpl/intranet-tmpl/prog/en/lib/yui/profilerviewer/profilerviewer-min.js b/koha-tmpl/intranet-tmpl/prog/en/lib/yui/profilerviewer/profilerviewer-min.js
deleted file mode 100644 (file)
index 72a93cb..0000000
+++ /dev/null
@@ -1,9 +0,0 @@
-/*
-Copyright (c) 2009, Yahoo! Inc. All rights reserved.
-Code licensed under the BSD License:
-http://developer.yahoo.net/yui/license.txt
-version: 2.8.0r4
-*/
-(function(){YAHOO.widget.ProfilerViewer=function(H,G){G=G||{};if(arguments.length==1&&!YAHOO.lang.isString(H)&&!H.nodeName){G=H;H=G.element||null;}if(!H&&!G.element){H=this._createProfilerViewerElement();}YAHOO.widget.ProfilerViewer.superclass.constructor.call(this,H,G);this._init();};YAHOO.extend(YAHOO.widget.ProfilerViewer,YAHOO.util.Element);YAHOO.lang.augmentObject(YAHOO.widget.ProfilerViewer,{CLASS:"yui-pv",CLASS_DASHBOARD:"yui-pv-dashboard",CLASS_REFRESH:"yui-pv-refresh",CLASS_BUSY:"yui-pv-busy",CLASS_CHART_CONTAINER:"yui-pv-chartcontainer",CLASS_CHART:"yui-pv-chart",CLASS_CHART_LEGEND:"yui-pv-chartlegend",CLASS_TABLE:"yui-pv-table",STRINGS:{title:"YUI Profiler (beta)",buttons:{viewprofiler:"View Profiler Data",hideprofiler:"Hide Profiler Report",showchart:"Show Chart",hidechart:"Hide Chart",refreshdata:"Refresh Data"},colHeads:{fn:["Function/Method",null],calls:["Calls",40],avg:["Average",80],min:["Shortest",70],max:["Longest",70],total:["Total Time",70],pct:["Percent",70]},millisecondsAbbrev:"ms",initMessage:"initialiazing chart...",installFlashMessage:"Unable to load Flash content. The YUI Charts Control requires Flash Player 9.0.45 or higher. You can download the latest version of Flash Player from the <a href='http://www.adobe.com/go/getflashplayer'>Adobe Flash Player Download Center</a>."},timeAxisLabelFunction:function(H){var G=(H===Math.floor(H))?H:(Math.round(H*1000))/1000;return(G+" "+YAHOO.widget.ProfilerViewer.STRINGS.millisecondsAbbrev);},percentAxisLabelFunction:function(H){var G=(H===Math.floor(H))?H:(Math.round(H*100))/100;return(G+"%");}},true);var C=YAHOO.util.Dom;var A=YAHOO.util.Event;var B=YAHOO.tool.Profiler;var E=YAHOO.widget.ProfilerViewer;var D=E.prototype;D.refreshData=function(){this.fireEvent("dataRefreshEvent");};D.getHeadEl=function(){return(this._headEl)?C.get(this._headEl):false;};D.getBodyEl=function(){return(this._bodyEl)?C.get(this._bodyEl):false;};D.getChartEl=function(){return(this._chartEl)?C.get(this._chartEl):false;};D.getTableEl=function(){return(this._tableEl)?C.get(this._tableEl):false;};D.getDataTable=function(){return this._dataTable;};D.getChart=function(){return this._chart;};D._rendered=false;D._headEl=null;D._bodyEl=null;D._toggleVisibleEl=null;D._busyEl=null;D._busy=false;D._tableEl=null;D._dataTable=null;D._chartEl=null;D._chartLegendEl=null;D._chartElHeight=250;D._chart=null;D._chartInitialized=false;D._init=function(){this.createEvent("dataRefreshEvent");this.createEvent("renderEvent");this.on("dataRefreshEvent",this._refreshDataTable,this,true);this._initLauncherDOM();if(this.get("showChart")){this.on("sortedByChange",this._refreshChart);}};D._createProfilerViewerElement=function(){var G=document.createElement("div");document.body.insertBefore(G,document.body.firstChild);C.addClass(G,this.SKIN_CLASS);C.addClass(G,E.CLASS);return G;};D.toString=function(){return"ProfilerViewer "+(this.get("id")||this.get("tagName"));};D._toggleVisible=function(){var G=(this.get("visible"))?false:true;this.set("visible",G);};D._show=function(){if(!this._busy){this._setBusyState(true);if(!this._rendered){var G=new YAHOO.util.YUILoader();if(this.get("base")){G.base=this.get("base");}var H=["datatable"];if(this.get("showChart")){H.push("charts");}G.insert({require:H,onSuccess:function(){this._render();},scope:this});}else{var I=this.get("element");C.removeClass(I,"yui-pv-minimized");this._toggleVisibleEl.innerHTML=E.STRINGS.buttons.hideprofiler;C.addClass(I,"yui-pv-null");C.removeClass(I,"yui-pv-null");this.refreshData();}}};D._hide=function(){this._toggleVisibleEl.innerHTML=E.STRINGS.buttons.viewprofiler;C.addClass(this.get("element"),"yui-pv-minimized");};D._render=function(){C.removeClass(this.get("element"),"yui-pv-minimized");this._initViewerDOM();this._initDataTable();if(this.get("showChart")){this._initChartDOM();this._initChart();}this._rendered=true;this._toggleVisibleEl.innerHTML=E.STRINGS.buttons.hideprofiler;this.fireEvent("renderEvent");};D._initLauncherDOM=function(){var I=this.get("element");C.addClass(I,E.CLASS);C.addClass(I,"yui-pv-minimized");this._headEl=document.createElement("div");C.addClass(this._headEl,"hd");var H=E.STRINGS.buttons;var G=(this.get("visible"))?H.hideprofiler:H.viewprofiler;this._toggleVisibleEl=this._createButton(G,this._headEl);this._refreshEl=this._createButton(H.refreshdata,this._headEl);C.addClass(this._refreshEl,E.CLASS_REFRESH);this._busyEl=document.createElement("span");this._headEl.appendChild(this._busyEl);var J=document.createElement("h4");J.innerHTML=E.STRINGS.title;this._headEl.appendChild(J);I.appendChild(this._headEl);A.on(this._toggleVisibleEl,"click",this._toggleVisible,this,true);A.on(this._refreshEl,"click",function(){if(!this._busy){this._setBusyState(true);this.fireEvent("dataRefreshEvent");}},this,true);};D._initViewerDOM=function(){var G=this.get("element");this._bodyEl=document.createElement("div");C.addClass(this._bodyEl,"bd");this._tableEl=document.createElement("div");C.addClass(this._tableEl,E.CLASS_TABLE);this._bodyEl.appendChild(this._tableEl);G.appendChild(this._bodyEl);};D._initChartDOM=function(){this._chartContainer=document.createElement("div");C.addClass(this._chartContainer,E.CLASS_CHART_CONTAINER);var H=document.createElement("div");C.addClass(H,E.CLASS_CHART_LEGEND);var G=document.createElement("div");this._chartLegendEl=document.createElement("dl");this._chartLegendEl.innerHTML="<dd>"+E.STRINGS.initMessage+"</dd>";this._chartEl=document.createElement("div");C.addClass(this._chartEl,E.CLASS_CHART);var I=document.createElement("p");I.innerHTML=E.STRINGS.installFlashMessage;this._chartEl.appendChild(I);this._chartContainer.appendChild(H);H.appendChild(G);G.appendChild(this._chartLegendEl);this._chartContainer.appendChild(this._chartEl);this._bodyEl.insertBefore(this._chartContainer,this._tableEl);};D._createButton=function(I,J,H){var G=document.createElement("a");G.innerHTML=G.title=I;if(J){if(!H){J.appendChild(G);}else{J.insertBefore(G,J.firstChild);}}return G;};D._setBusyState=function(G){if(G){C.addClass(this._busyEl,E.CLASS_BUSY);
-this._busy=true;}else{C.removeClass(this._busyEl,E.CLASS_BUSY);this._busy=false;}};D._genSortFunction=function(H,G){var J=H;var I=G;return function(L,K){if(I==YAHOO.widget.DataTable.CLASS_ASC){return L[J]-K[J];}else{return((L[J]-K[J])*-1);}};};var F=function(G){var I=0;for(var H=0;H<G.length;I+=G[H++]){}return I;};D._getProfilerData=function(){var L=B.getFullReport();var N=[];var H=0;for(name in L){if(YAHOO.lang.hasOwnProperty(L,name)){var G=L[name];var I={};I.fn=name;I.points=G.points.slice();I.calls=G.calls;I.min=G.min;I.max=G.max;I.avg=G.avg;I.total=F(I.points);I.points=G.points;var P=this.get("filter");if((!P)||(P(I))){N.push(I);H+=I.total;}}}for(var M=0,K=N.length;M<K;M++){N[M].pct=(H)?(N[M].total*100)/H:0;}var O=this.get("sortedBy");var Q=O.key;var J=O.dir;N.sort(this._genSortFunction(Q,J));return N;};D._initDataTable=function(){var P=this;this._dataSource=new YAHOO.util.DataSource(function(){return P._getProfilerData.call(P);},{responseType:YAHOO.util.DataSource.TYPE_JSARRAY,maxCacheEntries:0});var H=this._dataSource;H.responseSchema={fields:["fn","avg","calls","max","min","total","pct","points"]};var O=function(S,R,T,U){var Q=(U===Math.floor(U))?U:(Math.round(U*1000))/1000;S.innerHTML=Q+" "+E.STRINGS.millisecondsAbbrev;};var N=function(S,R,T,U){var Q=(U===Math.floor(U))?U:(Math.round(U*100))/100;S.innerHTML=Q+"%";};var M=YAHOO.widget.DataTable.CLASS_ASC;var J=YAHOO.widget.DataTable.CLASS_DESC;var K=E.STRINGS.colHeads;var I=O;var L=[{key:"fn",sortable:true,label:K.fn[0],sortOptions:{defaultDir:M},resizeable:(YAHOO.util.DragDrop)?true:false,minWidth:K.fn[1]},{key:"calls",sortable:true,label:K.calls[0],sortOptions:{defaultDir:J},width:K.calls[1]},{key:"avg",sortable:true,label:K.avg[0],sortOptions:{defaultDir:J},formatter:I,width:K.avg[1]},{key:"min",sortable:true,label:K.min[0],sortOptions:{defaultDir:M},formatter:I,width:K.min[1]},{key:"max",sortable:true,label:K.max[0],sortOptions:{defaultDir:J},formatter:I,width:K.max[1]},{key:"total",sortable:true,label:K.total[0],sortOptions:{defaultDir:J},formatter:I,width:K.total[1]},{key:"pct",sortable:true,label:K.pct[0],sortOptions:{defaultDir:J},formatter:N,width:K.pct[1]}];this._dataTable=new YAHOO.widget.DataTable(this._tableEl,L,H,{scrollable:true,height:this.get("tableHeight"),initialRequest:null,sortedBy:{key:"total",dir:YAHOO.widget.DataTable.CLASS_DESC}});var G=this._dataTable;G.subscribe("sortedByChange",this._sortedByChange,this,true);G.subscribe("renderEvent",this._dataTableRenderHandler,this,true);G.subscribe("initEvent",this._dataTableRenderHandler,this,true);A.on(this._tableEl.getElementsByTagName("th"),"click",this._thClickHandler,this,true);};D._sortedByChange=function(G){if(G.newValue&&G.newValue.key){this.set("sortedBy",{key:G.newValue.key,dir:G.newValue.dir});}};D._dataTableRenderHandler=function(G){this._setBusyState(false);};D._thClickHandler=function(G){this._setBusyState(true);};D._refreshDataTable=function(G){var H=this._dataTable;H.getDataSource().sendRequest("",H.onDataReturnInitializeTable,H);};D._refreshChart=function(){switch(this.get("sortedBy").key){case"fn":this._chart.set("dataSource",this._chart.get("dataSource"));return;case"calls":this._chart.set("xAxis",this._chartAxisDefinitionPlain);break;case"pct":this._chart.set("xAxis",this._chartAxisDefinitionPercent);break;default:this._chart.set("xAxis",this._chartAxisDefinitionTime);break;}this._drawChartLegend();this._chart.set("series",this._getSeriesDef(this.get("sortedBy").key));};D._getChartData=function(){var H=this._dataTable.getRecordSet().getRecords(0,this.get("maxChartFunctions"));var G=[];for(var J=0,I=H.length;J<I;J++){G.push(H[J].getData());}return G;};D._getSeriesDef=function(K){var J=this.get("chartSeriesDefinitions")[K];var G=[];for(var I=0,H=J.group.length;I<H;I++){var L=this.get("chartSeriesDefinitions")[J.group[I]];G.push({displayName:L.displayName,xField:L.xField,style:{color:L.style.color,size:L.style.size}});}return G;};D._initChart=function(){this._sizeChartCanvas();YAHOO.widget.Chart.SWFURL=this.get("swfUrl");var G=this;var H=new YAHOO.util.DataSource(function(){return G._getChartData.call(G);},{responseType:YAHOO.util.DataSource.TYPE_JSARRAY,maxCacheEntries:0});H.responseSchema={fields:["fn","avg","calls","max","min","total","pct"]};H.subscribe("responseEvent",this._sizeChartCanvas,this,true);this._chartAxisDefinitionTime=new YAHOO.widget.NumericAxis();this._chartAxisDefinitionTime.labelFunction="YAHOO.widget.ProfilerViewer.timeAxisLabelFunction";this._chartAxisDefinitionPercent=new YAHOO.widget.NumericAxis();this._chartAxisDefinitionPercent.labelFunction="YAHOO.widget.ProfilerViewer.percentAxisLabelFunction";this._chartAxisDefinitionPlain=new YAHOO.widget.NumericAxis();this._chart=new YAHOO.widget.BarChart(this._chartEl,H,{yField:"fn",series:this._getSeriesDef(this.get("sortedBy").key),style:this.get("chartStyle"),xAxis:this._chartAxisDefinitionTime});this._drawChartLegend();this._chartInitialized=true;this._dataTable.unsubscribe("initEvent",this._initChart,this);this._dataTable.subscribe("initEvent",this._refreshChart,this,true);};D._drawChartLegend=function(){var M=this.get("chartSeriesDefinitions");var I=M[this.get("sortedBy").key];var H=this._chartLegendEl;H.innerHTML="";for(var K=0,J=I.group.length;K<J;K++){var N=M[I.group[K]];var L=document.createElement("dt");C.setStyle(L,"backgroundColor","#"+N.style.color);var G=document.createElement("dd");G.innerHTML=N.displayName;H.appendChild(L);H.appendChild(G);}};D._sizeChartCanvas=function(I){var G=(I)?I.response.length:this.get("maxChartFunctions");var H=(G*36)+34;if(H!=parseInt(this._chartElHeight,10)){this._chartElHeight=H;C.setStyle(this._chartEl,"height",H+"px");}};D.initAttributes=function(G){YAHOO.widget.ProfilerViewer.superclass.initAttributes.call(this,G);this.setAttributeConfig("base",{value:G.base});this.setAttributeConfig("tableHeight",{value:G.tableHeight||"15em",method:function(H){if(this._dataTable){this._dataTable.set("height",H);}}});this.setAttributeConfig("sortedBy",{value:G.sortedBy||{key:"total",dir:"yui-dt-desc"}});
-this.setAttributeConfig("filter",{value:G.filter||null,validator:YAHOO.lang.isFunction});this.setAttributeConfig("swfUrl",{value:G.swfUrl||"http://yui.yahooapis.com/2.5.0/build/charts/assets/charts.swf"});this.setAttributeConfig("maxChartFunctions",{value:G.maxChartFunctions||6,method:function(H){if(this._rendered){this._sizeChartCanvas();}},validator:YAHOO.lang.isNumber});this.setAttributeConfig("chartStyle",{value:G.chartStyle||{font:{name:"Arial",color:15658588,size:12},background:{color:"6e6e63"}},method:function(){if(this._rendered&&this.get("showChart")){this._refreshChart();}}});this.setAttributeConfig("chartSeriesDefinitions",{value:G.chartSeriesDefinitions||{total:{displayName:E.STRINGS.colHeads.total[0],xField:"total",style:{color:"4d95dd",size:20},group:["total"]},calls:{displayName:E.STRINGS.colHeads.calls[0],xField:"calls",style:{color:"edff9f",size:20},group:["calls"]},avg:{displayName:E.STRINGS.colHeads.avg[0],xField:"avg",style:{color:"209daf",size:9},group:["avg","min","max"]},min:{displayName:E.STRINGS.colHeads.min[0],xField:"min",style:{color:"b6ecf4",size:9},group:["avg","min","max"]},max:{displayName:E.STRINGS.colHeads.max[0],xField:"max",style:{color:"29c7de",size:9},group:["avg","min","max"]},pct:{displayName:E.STRINGS.colHeads.pct[0],xField:"pct",style:{color:"C96EDB",size:20},group:["pct"]}},method:function(){if(this._rendered&&this.get("showChart")){this._refreshChart();}}});this.setAttributeConfig("visible",{value:G.visible||false,validator:YAHOO.lang.isBoolean,method:function(H){if(H){this._show();}else{if(this._rendered){this._hide();}}}});this.setAttributeConfig("showChart",{value:G.showChart||true,validator:YAHOO.lang.isBoolean,writeOnce:true});YAHOO.widget.ProfilerViewer.superclass.initAttributes.call(this,G);};})();YAHOO.register("profilerviewer",YAHOO.widget.ProfilerViewer,{version:"2.8.0r4",build:"2449"});
\ No newline at end of file
diff --git a/koha-tmpl/intranet-tmpl/prog/en/lib/yui/profilerviewer/profilerviewer.js b/koha-tmpl/intranet-tmpl/prog/en/lib/yui/profilerviewer/profilerviewer.js
deleted file mode 100644 (file)
index 395998d..0000000
+++ /dev/null
@@ -1,1192 +0,0 @@
-/*
-Copyright (c) 2009, Yahoo! Inc. All rights reserved.
-Code licensed under the BSD License:
-http://developer.yahoo.net/yui/license.txt
-version: 2.8.0r4
-*/
-(function() {
-
-    /**
-     * The ProfilerViewer module provides a graphical display for viewing
-        * the output of the YUI Profiler <http://developer.yahoo.com/yui/profiler>.
-     * @module profilerviewer
-     * @requires yahoo, dom, event, element, profiler, yuiloader
-     */
-
-    /**
-     * A widget to view YUI Profiler output.
-     * @namespace YAHOO.widget
-     * @class ProfilerViewer
-     * @extends YAHOO.util.Element
-     * @constructor
-     * @param {HTMLElement | String | Object} el(optional) The html 
-     * element into which the ProfileViewer should be rendered. 
-     * An element will be created if none provided.
-     * @param {Object} attr (optional) A key map of the ProfilerViewer's 
-     * initial attributes.  Ignored if first arg is an attributes object.
-     */
-    YAHOO.widget.ProfilerViewer = function(el, attr) {
-        attr = attr || {};
-        if (arguments.length == 1 && !YAHOO.lang.isString(el) && !el.nodeName) {
-            attr = el;
-            el = attr.element || null;
-        }
-        if (!el && !attr.element) {
-            el = this._createProfilerViewerElement();
-        }
-
-       YAHOO.widget.ProfilerViewer.superclass.constructor.call(this, el, attr); 
-               
-               this._init();
-               
-    };
-
-    YAHOO.extend(YAHOO.widget.ProfilerViewer, YAHOO.util.Element);
-       
-       // Static members of YAHOO.widget.ProfilerViewer:
-       YAHOO.lang.augmentObject(YAHOO.widget.ProfilerViewer, {
-               /**
-                * Classname for ProfilerViewer containing element.
-                * @static
-                * @property CLASS
-                * @type string
-                * @public
-                * @default "yui-pv"
-                */
-               CLASS: 'yui-pv',
-       
-               /**
-                * Classname for ProfilerViewer button dashboard. 
-                * @static
-                * @property CLASS_DASHBOARD
-                * @type string
-                * @public
-                * @default "yui-pv-dashboard"
-                */
-               CLASS_DASHBOARD: 'yui-pv-dashboard',
-
-               /**
-                * Classname for the "refresh data" button. 
-                * @static
-                * @property CLASS_REFRESH
-                * @type string
-                * @public
-                * @default "yui-pv-refresh"
-                */
-               CLASS_REFRESH: 'yui-pv-refresh',
-
-               /**
-                * Classname for busy indicator in the dashboard. 
-                * @static
-                * @property CLASS_BUSY
-                * @type string
-                * @public
-                * @default "yui-pv-busy"
-                */
-               CLASS_BUSY: 'yui-pv-busy',
-       
-               /**
-                * Classname for element containing the chart and chart
-                * legend elements.
-                * @static
-                * @property CLASS_CHART_CONTAINER
-                * @type string
-                * @public
-                * @default "yui-pv-chartcontainer"
-                */
-               CLASS_CHART_CONTAINER: 'yui-pv-chartcontainer',
-       
-               /**
-                * Classname for element containing the chart.
-                * @static
-                * @property CLASS_CHART
-                * @type string
-                * @public
-                * @default "yui-pv-chart"
-                */
-               CLASS_CHART: 'yui-pv-chart',
-               
-               /**
-                * Classname for element containing the chart's legend. 
-                * @static
-                * @property CLASS_CHART_LEGEND
-                * @type string
-                * @public
-                * @default "yui-pv-chartlegend"
-                */
-               CLASS_CHART_LEGEND: 'yui-pv-chartlegend',
-               
-               /**
-                * Classname for element containing the datatable. 
-                * @static
-                * @property CLASS_TABLE
-                * @type string
-                * @public
-                * @default "yui-pv-table"
-                */
-               CLASS_TABLE: 'yui-pv-table',
-               
-               /**
-                * Strings used in the UI.
-                * @static
-                * @property STRINGS
-                * @object
-                * @public
-                * @default English language strings for UI.
-                */
-               STRINGS: {
-                       title: "YUI Profiler (beta)",
-                       buttons: {
-                               viewprofiler: "View Profiler Data",
-                               hideprofiler: "Hide Profiler Report",
-                               showchart: "Show Chart",
-                               hidechart: "Hide Chart",
-                               refreshdata: "Refresh Data"
-                       },
-                       colHeads: {
-                               //key: [column head label, width in pixels]
-                               fn: ["Function/Method", null], //must auto-size
-                               calls: ["Calls", 40],
-                               avg: ["Average", 80],
-                               min: ["Shortest", 70],
-                               max: ["Longest", 70],
-                               total: ["Total Time", 70],
-                               pct: ["Percent", 70]
-                       },
-                       millisecondsAbbrev: "ms",
-                       initMessage: "initialiazing chart...",
-                       installFlashMessage: "Unable to load Flash content. The YUI Charts Control requires Flash Player 9.0.45 or higher. You can download the latest version of Flash Player from the <a href='http://www.adobe.com/go/getflashplayer'>Adobe Flash Player Download Center</a>."
-               },
-
-               /**
-                * Function used to format numbers in milliseconds
-                * for chart; must be publicly accessible, per Charts spec.
-                * @static
-                * @property timeAxisLabelFunction
-                * @type function
-                * @private
-                */
-               timeAxisLabelFunction: function(n) {
-                       var a = (n === Math.floor(n)) ? n : (Math.round(n*1000))/1000;
-                       return (a + " " + YAHOO.widget.ProfilerViewer.STRINGS.millisecondsAbbrev);
-               },
-
-               /**
-                * Function used to format percent numbers for chart; must
-                * be publicly accessible, per Charts spec.
-                * @static
-                * @property percentAxisLabelFunction
-                * @type function
-                * @private
-                */
-               percentAxisLabelFunction: function(n) {
-                       var a = (n === Math.floor(n)) ? n : (Math.round(n*100))/100;
-                       return (a + "%");
-               }
-               
-       
-       },true);
-       
-
-       //
-       // STANDARD SHORTCUTS
-       //
-    var Dom = YAHOO.util.Dom;
-    var Event = YAHOO.util.Event;
-       var Profiler = YAHOO.tool.Profiler;
-       var PV = YAHOO.widget.ProfilerViewer;
-       var proto = PV.prototype;
-
-
-       //
-       // PUBLIC METHODS
-       //
-       
-        /**
-     * Refreshes the data displayed in the ProfilerViewer. When called,
-        * this will invoke a refresh of the DataTable and (if displayed)
-        * the Chart.
-     * @method refreshData
-     * @return void
-        * @public
-     */        
-       proto.refreshData = function() {
-               this.fireEvent("dataRefreshEvent");
-       };
-
-        /**
-     * Returns the element containing the console's header.
-     * @method getHeadEl
-     * @return HTMLElement
-        * @public
-     */        
-       proto.getHeadEl = function() {
-               return (this._headEl) ? Dom.get(this._headEl) : false;
-       };
-
-        /**
-     * Returns the element containing the console's body, including
-        * the chart and the datatable..
-     * @method getBodyEl
-     * @return HTMLElement
-        * @public
-     */        
-       proto.getBodyEl = function() {
-               return (this._bodyEl) ? Dom.get(this._bodyEl) : false;
-       };
-
-        /**
-     * Returns the element containing the console's chart.
-     * @method getChartEl
-     * @return HTMLElement
-        * @public
-     */        
-       proto.getChartEl = function() {
-               return (this._chartEl) ? Dom.get(this._chartEl) : false;
-       };
-
-        /**
-     * Returns the element containing the console's dataTable.
-     * @method getTableEl
-     * @return HTMLElement
-        * @public
-     */        
-       proto.getTableEl = function() {
-               return (this._tableEl) ? Dom.get(this._tableEl) : false;
-       };
-
-        /**
-     * Returns the element containing the console's DataTable
-        * instance.
-     * @method getDataTable
-     * @return YAHOO.widget.DataTable
-        * @public
-     */        
-       proto.getDataTable = function() {
-               return this._dataTable;
-       };
-
-        /**
-     * Returns the element containing the console's Chart instance.
-     * @method getChart
-     * @return YAHOO.widget.BarChart
-        * @public
-     */        
-       proto.getChart = function() {
-               return this._chart;
-       };
-
-
-    //
-    // PRIVATE PROPERTIES
-    //
-    proto._rendered = false;
-       proto._headEl = null;
-       proto._bodyEl = null;
-       proto._toggleVisibleEl = null;
-       proto._busyEl = null;
-       proto._busy = false;
-       
-       proto._tableEl = null;
-       proto._dataTable = null;
-
-       proto._chartEl = null;
-       proto._chartLegendEl = null;
-       proto._chartElHeight = 250;
-       proto._chart = null;
-       proto._chartInitialized = false;
-
-    //
-    // PRIVATE METHODS
-    //
-
-       proto._init = function() {
-               /**
-                * CUSTOM EVENTS
-                **/
-               
-               /**
-                * Fired when a data refresh is requested. No arguments are passed
-                * with this event.
-                *
-                * @event refreshDataEvent
-                */
-               this.createEvent("dataRefreshEvent");
-               
-               /**
-                * Fired when the viewer canvas first renders. No arguments are passed
-                * with this event.
-                *
-                * @event renderEvent
-                */
-               this.createEvent("renderEvent");
-
-               this.on("dataRefreshEvent", this._refreshDataTable, this, true);
-               
-               this._initLauncherDOM();
-               
-               if(this.get("showChart")) {
-                       this.on("sortedByChange", this._refreshChart);
-               }
-
-       };
-
-       /**
-        * If no element is passed in, create it as the first element
-        * in the document.
-        * @method _createProfilerViewerElement
-        * @return HTMLElement
-        * @private
-        */
-       proto._createProfilerViewerElement = function() {
-
-               var el = document.createElement("div");
-               document.body.insertBefore(el, document.body.firstChild);
-               Dom.addClass(el, this.SKIN_CLASS);
-               Dom.addClass(el, PV.CLASS);
-               return el;
-       };
-                       
-    /**
-     * Provides a readable name for the ProfilerViewer instance.
-     * @method toString
-     * @return String
-        * @private
-        */
-    proto.toString = function() {
-        return "ProfilerViewer " + (this.get('id') || this.get('tagName'));
-    };
-
-    /**
-     * Toggles visibility of the viewer canvas.
-     * @method _toggleVisible
-     * @return void
-        * @private
-     */        
-       proto._toggleVisible = function() {
-               
-               var newVis = (this.get("visible")) ? false : true;
-               this.set("visible", newVis);
-    };
-
-    /**
-     * Shows the viewer canvas.
-     * @method show
-     * @return void
-        * @private
-     */        
-        proto._show = function() {
-               if(!this._busy) {
-                       this._setBusyState(true);
-                       if(!this._rendered) {
-                               var loader = new YAHOO.util.YUILoader();
-                               if (this.get("base")) {
-                                       loader.base = this.get("base");
-                               }
-                               
-                               var modules = ["datatable"];
-                               if(this.get("showChart")) {
-                                       modules.push("charts");
-                               }
-                               
-                               loader.insert({ require: modules,
-                                                               onSuccess: function() {
-                                                                       this._render();
-                                                               },
-                                                               scope: this});
-                       } else {
-                               var el = this.get("element");
-                               Dom.removeClass(el, "yui-pv-minimized");
-                               this._toggleVisibleEl.innerHTML = PV.STRINGS.buttons.hideprofiler;
-                               
-                               //The Flash Charts component can't be set to display:none,
-                               //and even after positioning it offscreen the screen
-                               //may fail to repaint in some browsers.  Adding an empty
-                               //style rule to the console body can help force a repaint:
-                               Dom.addClass(el, "yui-pv-null");
-                               Dom.removeClass(el, "yui-pv-null");
-                               
-                               //Always refresh data when changing to visible:
-                               this.refreshData();
-                       }
-               }
-    };
-
-    /**
-     * Hides the viewer canvas.
-     * @method hide
-     * @return void
-        * @private
-     */        
-       proto._hide = function() {
-               this._toggleVisibleEl.innerHTML = PV.STRINGS.buttons.viewprofiler;
-               Dom.addClass(this.get("element"), "yui-pv-minimized");
-    };
-       
-       /**
-        * Render the viewer canvas
-        * @method _render
-        * @return void
-        * @private
-        */
-       proto._render = function() {
-               
-               Dom.removeClass(this.get("element"), "yui-pv-minimized");
-               
-               this._initViewerDOM();
-               this._initDataTable();
-               if(this.get("showChart")) {
-                       this._initChartDOM();
-                       this._initChart();
-               }
-               this._rendered = true;
-               this._toggleVisibleEl.innerHTML = PV.STRINGS.buttons.hideprofiler;
-               
-               this.fireEvent("renderEvent");
-
-       };
-       
-       /**
-        * Set up the DOM structure for the ProfilerViewer launcher.
-        * @method _initLauncherDOM
-        * @private
-        */
-       proto._initLauncherDOM = function() {
-               
-               var el = this.get("element");
-               Dom.addClass(el, PV.CLASS);
-               Dom.addClass(el, "yui-pv-minimized");
-
-               this._headEl = document.createElement("div");
-               Dom.addClass(this._headEl, "hd");
-               
-               var s = PV.STRINGS.buttons;
-               var b = (this.get("visible")) ? s.hideprofiler : s.viewprofiler;
-               
-               this._toggleVisibleEl = this._createButton(b, this._headEl);
-               
-               this._refreshEl = this._createButton(s.refreshdata, this._headEl);
-               Dom.addClass(this._refreshEl, PV.CLASS_REFRESH);
-               
-               this._busyEl = document.createElement("span");
-               this._headEl.appendChild(this._busyEl);
-
-               var title = document.createElement("h4");
-               title.innerHTML = PV.STRINGS.title;
-               this._headEl.appendChild(title);
-               
-               el.appendChild(this._headEl);
-               
-               Event.on(this._toggleVisibleEl, "click", this._toggleVisible, this, true);
-               Event.on(this._refreshEl, "click", function() {
-                       if(!this._busy) {
-                               this._setBusyState(true);
-                               this.fireEvent("dataRefreshEvent");
-                       }
-               }, this, true);
-       };
-
-       /**
-        * Set up the DOM structure for the ProfilerViewer canvas,
-        * including the holder for the DataTable.
-        * @method _initViewerDOM
-        * @private
-        */
-       proto._initViewerDOM = function() {
-               
-               var el = this.get("element");
-               this._bodyEl = document.createElement("div");
-               Dom.addClass(this._bodyEl, "bd");
-               this._tableEl = document.createElement("div");
-               Dom.addClass(this._tableEl, PV.CLASS_TABLE);
-               this._bodyEl.appendChild(this._tableEl);
-               el.appendChild(this._bodyEl);
-       };
-
-       /**
-        * Set up the DOM structure for the ProfilerViewer canvas.
-        * @method _initChartDOM
-        * @private
-        */
-       proto._initChartDOM = function() {
-               
-               this._chartContainer = document.createElement("div");
-               Dom.addClass(this._chartContainer, PV.CLASS_CHART_CONTAINER);
-               
-               var chl = document.createElement("div");
-               Dom.addClass(chl, PV.CLASS_CHART_LEGEND);
-               
-               var chw = document.createElement("div");
-
-               this._chartLegendEl = document.createElement("dl");
-               this._chartLegendEl.innerHTML = "<dd>" + PV.STRINGS.initMessage + "</dd>";
-               
-               this._chartEl = document.createElement("div");
-               Dom.addClass(this._chartEl, PV.CLASS_CHART);
-               
-               var msg = document.createElement("p");
-               msg.innerHTML = PV.STRINGS.installFlashMessage;
-               this._chartEl.appendChild(msg);
-               
-               this._chartContainer.appendChild(chl);
-               chl.appendChild(chw);
-               chw.appendChild(this._chartLegendEl);
-               this._chartContainer.appendChild(this._chartEl);
-               this._bodyEl.insertBefore(this._chartContainer,this._tableEl);
-       };
-
-
-       /**
-        * Create anchor elements for use as buttons. Args: label
-        * is text to appear on the face of the button, parentEl
-        * is the el to which the anchor will be attached, position
-        * is true for inserting as the first node and false for
-        * inserting as the last node of the parentEl.
-        * @method _createButton
-        * @private
-        */     
-       proto._createButton = function(label, parentEl, position) {
-               var b = document.createElement("a");
-               b.innerHTML = b.title = label;
-               if(parentEl) {
-                       if(!position) {
-                               parentEl.appendChild(b);
-                       } else {
-                               parentEl.insertBefore(b, parentEl.firstChild);  
-                       }
-               }
-               return b;
-       };
-       
-       /**
-        * Set's console busy state.
-        * @method _setBusyState
-        * @private
-        **/
-       proto._setBusyState = function(b) {
-               if(b) {
-                       Dom.addClass(this._busyEl, PV.CLASS_BUSY);
-                       this._busy = true;
-               } else {
-                       Dom.removeClass(this._busyEl, PV.CLASS_BUSY);
-                       this._busy = false;
-               }
-       };
-
-       /**
-        * Generages a sorting function based on current sortedBy
-        * values.
-        * @method _createProfilerViewerElement
-        * @private
-        **/
-       proto._genSortFunction = function(key, dir) {
-               var by = key;
-               var direction = dir;
-               return function(a, b) {
-                       if (direction == YAHOO.widget.DataTable.CLASS_ASC) {
-                               return a[by] - b[by];   
-                       } else {
-                               return ((a[by] - b[by]) * -1);
-                       }
-               };
-       };
-
-       /**
-        * Utility function for array sums.
-        * @method _arraySum
-        * @private
-        **/    
-        var _arraySum = function(arr){
-               var ct = 0;
-               for(var i = 0; i < arr.length; ct+=arr[i++]){}
-               return ct;
-       };
-       
-       /**
-        * Retrieves data from Profiler, filtering and sorting as needed
-        * based on current widget state.  Adds calculated percentage
-        * column and function name to data returned by Profiler.
-        * @method _getProfilerData
-        * @private
-        **/
-       proto._getProfilerData = function() {
-               
-               var obj = Profiler.getFullReport();
-               var arr = [];
-               var totalTime = 0;
-               for (name in obj) {
-               if (YAHOO.lang.hasOwnProperty(obj, name)) {
-                               var r = obj[name];
-                               var o = {};
-                               o.fn = name; //add function name to record
-                               o.points = r.points.slice(); //copy live array
-                               o.calls = r.calls;
-                               o.min = r.min;
-                               o.max = r.max;
-                               o.avg = r.avg;
-                               o.total = _arraySum(o.points);
-                               o.points = r.points;
-                               var f = this.get("filter");
-                               if((!f) || (f(o))) {
-                                       arr.push(o);
-                                       totalTime += o.total;
-                               }
-                       }
-               }
-               
-               //add calculated percentage column
-               for (var i = 0, j = arr.length; i < j; i++) {
-                       arr[i].pct = (totalTime) ? (arr[i].total * 100) / totalTime : 0;        
-               }
-
-               var sortedBy = this.get("sortedBy");
-               var key = sortedBy.key;
-               var dir = sortedBy.dir;         
-
-               arr.sort(this._genSortFunction(key, dir));
-               
-               
-               return arr;
-       };
-       
-       /**
-        * Set up the DataTable.
-        * @method _initDataTable
-        * @private
-        */
-       proto._initDataTable = function() {
-               
-               var self = this;
-               
-               //Set up the JS Function DataSource, pulling data from
-               //the Profiler.
-               this._dataSource = new YAHOO.util.DataSource(
-                       function() {
-                               return self._getProfilerData.call(self);        
-                       },
-                       {
-                               responseType: YAHOO.util.DataSource.TYPE_JSARRAY,
-                               maxCacheEntries: 0
-                       }
-               );
-               var ds = this._dataSource;
-
-               ds.responseSchema =
-               {
-                       fields: [ "fn", "avg", "calls", "max", "min", "total", "pct", "points"]
-               };
-               
-               //Set up the DataTable.
-               var formatTimeValue = function(elCell, oRecord, oColumn, oData) {
-                       var a = (oData === Math.floor(oData)) ? oData : (Math.round(oData*1000))/1000;
-                       elCell.innerHTML = a + " " + PV.STRINGS.millisecondsAbbrev;
-               };
-
-               var formatPercent = function(elCell, oRecord, oColumn, oData) {
-                       var a = (oData === Math.floor(oData)) ? oData : (Math.round(oData*100))/100;
-                       elCell.innerHTML = a + "%";
-               };
-               
-               var a = YAHOO.widget.DataTable.CLASS_ASC;
-               var d = YAHOO.widget.DataTable.CLASS_DESC;
-               var c = PV.STRINGS.colHeads;
-               var f = formatTimeValue;
-               
-               var cols = [
-                       {key:"fn", sortable:true, label: c.fn[0],
-                               sortOptions: {defaultDir:a}, 
-                               resizeable: (YAHOO.util.DragDrop) ? true : false,
-                               minWidth:c.fn[1]},
-                       {key:"calls", sortable:true, label: c.calls[0],
-                               sortOptions: {defaultDir:d},
-                               width:c.calls[1]},
-                       {key:"avg", sortable:true, label: c.avg[0],
-                               sortOptions: {defaultDir:d},
-                               formatter:f,
-                               width:c.avg[1]},
-                       {key:"min", sortable:true, label: c.min[0],
-                               sortOptions: {defaultDir:a},
-                               formatter:f,
-                               width:c.min[1]}, 
-                       {key:"max", sortable:true, label: c.max[0],
-                               sortOptions: {defaultDir:d},
-                               formatter:f,
-                               width:c.max[1]},
-                       {key:"total", sortable:true, label: c.total[0],
-                               sortOptions: {defaultDir:d},
-                               formatter:f,
-                               width:c.total[1]},
-                       {key:"pct", sortable:true, label: c.pct[0],
-                               sortOptions: {defaultDir:d}, 
-                               formatter:formatPercent,
-                               width:c.pct[1]}
-               ];
-
-               this._dataTable = new YAHOO.widget.DataTable(this._tableEl, cols, ds, {
-                       scrollable:true,
-                       height:this.get("tableHeight"),
-                       initialRequest:null,
-                       sortedBy: {
-                               key: "total",
-                               dir: YAHOO.widget.DataTable.CLASS_DESC
-                       }
-               });
-               var dt = this._dataTable;
-
-               //Wire up DataTable events to drive the rest of the UI.
-               dt.subscribe("sortedByChange", this._sortedByChange, this, true);
-               dt.subscribe("renderEvent", this._dataTableRenderHandler, this, true);
-               dt.subscribe("initEvent", this._dataTableRenderHandler, this, true);
-               Event.on(this._tableEl.getElementsByTagName("th"), "click", this._thClickHandler, this, true);
-       };
-               
-       /**
-        * Proxy the sort event in DataTable into the ProfilerViewer
-        * attribute.
-        * @method _sortedByChange
-        * @private
-        **/
-       proto._sortedByChange = function(o) {
-               if(o.newValue && o.newValue.key) {
-                       this.set("sortedBy", {key: o.newValue.key, dir:o.newValue.dir});
-               }
-       };
-       
-       /**
-        * Proxy the render event in DataTable into the ProfilerViewer
-        * attribute.
-        * @method _dataTableRenderHandler
-        * @private
-        **/
-       proto._dataTableRenderHandler = function(o) {
-               this._setBusyState(false);
-       };
-       
-       /**
-        * Event handler for clicks on the DataTable's sortable column
-        * heads.
-        * @method _thClickHandler
-        * @private
-        **/
-       proto._thClickHandler = function(o) {
-               this._setBusyState(true);
-       };
-
-       /**
-        * Refresh DataTable, getting new data from Profiler.
-        * @method _refreshDataTable
-        * @private
-        **/
-       proto._refreshDataTable = function(args) {
-               var dt = this._dataTable;
-               dt.getDataSource().sendRequest("", dt.onDataReturnInitializeTable, dt);
-       };
-
-       /**
-        * Refresh chart, getting new data from table.
-        * @method _refreshChart
-        * @private
-        **/
-       proto._refreshChart = function() {
-               
-               switch (this.get("sortedBy").key) {
-                       case "fn":
-                               /*Keep the same data on the chart, but force update to 
-                                 reflect new sort order on function/method name: */
-                               this._chart.set("dataSource", this._chart.get("dataSource"));
-                               /*no further action necessary; chart redraws*/
-                               return;
-                       case "calls":
-                               /*Null out the xAxis formatting before redrawing chart.*/
-                               this._chart.set("xAxis", this._chartAxisDefinitionPlain);
-                               break;
-                       case "pct":
-                               this._chart.set("xAxis", this._chartAxisDefinitionPercent);
-                               break;
-                       default:
-                               /*Set the default xAxis; redraw legend; set the new series definition.*/
-                               this._chart.set("xAxis", this._chartAxisDefinitionTime);
-                               break;
-               }
-               
-               this._drawChartLegend();
-               this._chart.set("series", this._getSeriesDef(this.get("sortedBy").key));
-
-       };
-       
-       /**
-        * Get data for the Chart from DataTable recordset
-        * @method _getChartData
-        * @private
-        */
-       proto._getChartData = function() {
-               //var records = this._getProfilerData();
-               var records = this._dataTable.getRecordSet().getRecords(0, this.get("maxChartFunctions"));
-               var arr = [];
-               for (var i = 0, j = records.length; i<j; i++) {
-                       arr.push(records[i].getData()); 
-               }
-               return arr;
-       };
-       
-       /**
-        * Build series definition based on current configuration attributes.
-        * @method _getSeriesDef
-        * @private
-        */
-       proto._getSeriesDef = function(field) {
-               var sd = this.get("chartSeriesDefinitions")[field];
-               var arr = [];
-               for(var i = 0, j = sd.group.length; i<j; i++) {
-                       var c = this.get("chartSeriesDefinitions")[sd.group[i]];
-                       arr.push(
-                               {displayName:c.displayName,
-                                xField:c.xField,
-                                style: {color:c.style.color, size:c.style.size}
-                               }
-                       );
-               }
-               
-               return arr;
-       };
-       
-       /**
-        * Set up the Chart.
-        * @method _initChart
-        * @private
-        */
-       proto._initChart = function() {
-               
-               this._sizeChartCanvas();
-               
-               YAHOO.widget.Chart.SWFURL = this.get("swfUrl");
-
-               var self = this;
-
-               //Create DataSource based on records currently displayed
-               //at the top of the sort list in the DataTable.
-               var ds = new YAHOO.util.DataSource(
-                       //force the jsfunction DataSource to run in the scope of
-                       //the ProfilerViewer, not in the YAHOO.util.DataSource scope:
-                       function() {
-                               return self._getChartData.call(self);
-                       }, 
-                       {
-                               responseType: YAHOO.util.DataSource.TYPE_JSARRAY,
-                               maxCacheEntries: 0
-                       }
-               );
-
-               ds.responseSchema =
-               {
-                       fields: [ "fn", "avg", "calls", "max", "min", "total", "pct" ]
-               };
-               
-               ds.subscribe('responseEvent', this._sizeChartCanvas, this, true);
-               
-               //Set up the chart itself.
-               this._chartAxisDefinitionTime = new YAHOO.widget.NumericAxis();
-               this._chartAxisDefinitionTime.labelFunction = "YAHOO.widget.ProfilerViewer.timeAxisLabelFunction";
-               
-               this._chartAxisDefinitionPercent = new YAHOO.widget.NumericAxis();
-               this._chartAxisDefinitionPercent.labelFunction = "YAHOO.widget.ProfilerViewer.percentAxisLabelFunction";
-
-               this._chartAxisDefinitionPlain = new YAHOO.widget.NumericAxis();
-               
-               this._chart = new YAHOO.widget.BarChart( this._chartEl, ds,
-               {
-                       yField: "fn",
-                       series: this._getSeriesDef(this.get("sortedBy").key),
-                       style: this.get("chartStyle"),
-                       xAxis: this._chartAxisDefinitionTime
-               } );
-               
-               this._drawChartLegend();
-               this._chartInitialized = true;
-               this._dataTable.unsubscribe("initEvent", this._initChart, this);
-               this._dataTable.subscribe("initEvent", this._refreshChart, this, true);
-               
-       };
-       
-       /**
-        * Set up the Chart's legend
-        * @method _drawChartLegend
-        * @private
-        **/
-       proto._drawChartLegend = function() {
-               var seriesDefs = this.get("chartSeriesDefinitions");
-               var currentDef = seriesDefs[this.get("sortedBy").key];
-               var l = this._chartLegendEl;
-               l.innerHTML = "";
-               for(var i = 0, j = currentDef.group.length; i<j; i++) {
-                       var c = seriesDefs[currentDef.group[i]];
-                       var dt = document.createElement("dt");
-                       Dom.setStyle(dt, "backgroundColor", "#" + c.style.color);
-                       var dd = document.createElement("dd");
-                       dd.innerHTML = c.displayName;
-                       l.appendChild(dt);
-                       l.appendChild(dd);
-               }
-       };
-       
-       /**
-        * Resize the chart's canvas if based on number of records
-        * returned from the chart's datasource.
-        * @method _sizeChartCanvas
-        * @private
-        **/
-       proto._sizeChartCanvas = function(o) {
-               var bars = (o) ? o.response.length : this.get("maxChartFunctions");
-               var s = (bars * 36) + 34;
-               if (s != parseInt(this._chartElHeight, 10)) {
-                       this._chartElHeight = s;
-                       Dom.setStyle(this._chartEl, "height", s + "px");
-               }
-       };
-
-    /**
-     * setAttributeConfigs TabView specific properties.
-     * @method initAttributes
-     * @param {Object} attr Hash of initial attributes
-        * @method initAttributes
-        * @private
-     */
-    proto.initAttributes = function(attr) {
-        YAHOO.widget.ProfilerViewer.superclass.initAttributes.call(this, attr);
-        /**
-         * The YUI Loader base path from which to pull YUI files needed
-                * in the rendering of the ProfilerViewer canvas.  Passed directly
-                * to YUI Loader.  Leave blank to draw files from
-                * yui.yahooapis.com.
-         * @attribute base
-         * @type string
-                * @default ""
-         */
-        this.setAttributeConfig('base', {
-            value: attr.base
-        });
-
-        /**
-         * The height of the DataTable.  The table will scroll
-                * vertically if the content overflows the specified
-                * height.
-         * @attribute tableHeight
-         * @type string
-                * @default "15em"
-         */
-        this.setAttributeConfig('tableHeight', {
-            value: attr.tableHeight || "15em",
-                       method: function(s) {
-                               if(this._dataTable) {
-                                       this._dataTable.set("height", s);
-                               }
-                       }
-        });
-               
-        /**
-         * The default column key to sort by.  Valid keys are: fn, calls,
-                * avg, min, max, total.  Valid dir values are: 
-                * YAHOO.widget.DataTable.CLASS_ASC and
-                * YAHOO.widget.DataTable.CLASS_DESC (or their
-                * string equivalents).
-         * @attribute sortedBy
-         * @type string
-                * @default {key:"total", dir:"yui-dt-desc"}
-         */
-        this.setAttributeConfig('sortedBy', {
-            value: attr.sortedBy || {key:"total", dir:"yui-dt-desc"}
-        });
-
-        /**
-         * A filter function to use in selecting functions that will
-                * appear in the ProfilerViewer report.  The function is passed
-                * a function report object and should return a boolean indicating
-                * whether that function should be included in the ProfilerViewer
-                * display.  The argument is structured as follows:
-                *
-                * {
-                *              fn: <str function name>,
-                *              calls : <n number of calls>,
-                *              avg : <n average call duration>,
-                *              max: <n duration of longest call>,
-                *              min: <n duration of shortest call>,
-                *              total: <n total time of all calls>
-                *              points : <array time in ms of each call>
-                *      }
-                *
-                * For example, you would use the follwing filter function to 
-                * return only functions that have been called at least once:
-                * 
-                *      function(o) {
-                *              return (o.calls > 0);
-                *      }
-                *
-         * @attribute filter
-         * @type function
-                * @default null
-         */
-        this.setAttributeConfig('filter', {
-            value: attr.filter || null,
-                       validator: YAHOO.lang.isFunction
-        });
-
-               /**
-                * The path to the YUI Charts swf file; must be a full URI
-                * or a path relative to the page being profiled. Changes at runtime
-                * not supported; pass this value in at instantiation.
-                * @attribute swfUrl
-                * @type string
-                * @default "http://yui.yahooapis.com/2.5.0/build/charts/assets/charts.swf"
-                */
-               this.setAttributeConfig('swfUrl', {
-                       value: attr.swfUrl || "http://yui.yahooapis.com/2.5.0/build/charts/assets/charts.swf"
-               });
-
-        /**
-         * The maximum number of functions to profile in the chart. The
-                * greater the number of functions, the greater the height of the
-                * chart canvas.
-                * height.
-         * @attribute maxChartFunctions
-         * @type int
-                * @default 6
-         */
-        this.setAttributeConfig('maxChartFunctions', {
-            value: attr.maxChartFunctions || 6,
-                       method: function(s) {
-                               if(this._rendered) {
-                                       this._sizeChartCanvas();
-                               }
-                       },
-                       validator: YAHOO.lang.isNumber
-        });
-               
-        /**
-         * The style object that defines the chart's visual presentation.
-                * Conforms to the style attribute passed to the Charts Control
-                * constructor.  See Charts Control User's Guide for more information
-                * on how to format this object.
-         * @attribute chartStyle
-         * @type obj
-                * @default See JS source for default definitions.
-         */
-        this.setAttributeConfig('chartStyle', {
-            value:     attr.chartStyle || {
-                               font:
-                                       {
-                                               name: "Arial",
-                                               color: 0xeeee5c,
-                                               size: 12
-                                       },
-                                       background:
-                                       {
-                                               color: "6e6e63"
-                                       }
-                               },
-                       method: function() {
-                                       if(this._rendered && this.get("showChart")) {
-                                               this._refreshChart();
-                                       }
-                               }
-        });
-               
-        /**
-         * The series definition information to use when charting
-                * specific fields on the chart.  displayName, xField,
-                * and style members are used to construct the series
-                * definition; the "group" member is the array of fields
-                * that should be charted when the table is sorted by a
-                * given field.
-         * @attribute chartSeriesDefinitions
-         * @type obj
-                * @default See JS source for full default definitions.
-         */
-        this.setAttributeConfig('chartSeriesDefinitions', {
-            value:     attr.chartSeriesDefinitions ||  {
-                                               total: {
-                                                       displayName: PV.STRINGS.colHeads.total[0],
-                                                       xField: "total",
-                                                       style: {color:"4d95dd", size:20},
-                                                       group: ["total"]
-                                               },
-                                               calls: {                
-                                                       displayName: PV.STRINGS.colHeads.calls[0],
-                                                       xField: "calls",
-                                                       style: {color:"edff9f", size:20},
-                                                       group: ["calls"]
-                                               },
-                                               avg: {
-                                                       displayName: PV.STRINGS.colHeads.avg[0],
-                                                       xField: "avg",
-                                                       style: {color:"209daf", size:9},
-                                                       group: ["avg", "min", "max"]
-                                               },
-                                               min: {
-                                                       displayName: PV.STRINGS.colHeads.min[0],
-                                                       xField: "min",
-                                                       style: {color:"b6ecf4", size:9},
-                                                       group: ["avg", "min", "max"]
-                                               },
-                                               max: {
-                                                       displayName: PV.STRINGS.colHeads.max[0],
-                                                       xField: "max",
-                                                       style: {color:"29c7de", size:9},
-                                                       group: ["avg", "min", "max"]
-                                               },
-                                               pct: {
-                                                       displayName: PV.STRINGS.colHeads.pct[0],
-                                                       xField: "pct",
-                                                       style: {color:"C96EDB", size:20},
-                                                       group: ["pct"]
-                                               }
-                               },
-                       method: function() {
-                                       if(this._rendered && this.get("showChart")) {
-                                               this._refreshChart();
-                                       }
-                               }
-        });
-               
-        /**
-         * The default visibility setting for the viewer canvas. If true,
-                * the viewer will load all necessary files and render itself
-                * immediately upon instantiation; otherwise, the viewer will
-                * load only minimal resources until the user toggles visibility
-                * via the UI.
-         * @attribute visible
-         * @type boolean
-                * @default false
-         */
-        this.setAttributeConfig('visible', {
-            value: attr.visible || false,
-                       validator: YAHOO.lang.isBoolean,
-                       method: function(b) {
-                               if(b) {
-                                       this._show();
-                               } else {
-                                       if (this._rendered) {
-                                               this._hide();
-                                       }
-                               }
-                       }
-        });
-
-        /**
-         * The default visibility setting for the chart.
-         * @attribute showChart
-         * @type boolean
-                * @default true
-         */
-        this.setAttributeConfig('showChart', {
-            value: attr.showChart || true,
-                       validator: YAHOO.lang.isBoolean,
-                       writeOnce: true
-                       
-        });
-               
-               YAHOO.widget.ProfilerViewer.superclass.initAttributes.call(this, attr);
-               
-    };
-       
-})();
-YAHOO.register("profilerviewer", YAHOO.widget.ProfilerViewer, {version: "2.8.0r4", build: "2449"});
diff --git a/koha-tmpl/intranet-tmpl/prog/en/lib/yui/progressbar/assets/progressbar-core.css b/koha-tmpl/intranet-tmpl/prog/en/lib/yui/progressbar/assets/progressbar-core.css
deleted file mode 100644 (file)
index 31af4bb..0000000
+++ /dev/null
@@ -1,85 +0,0 @@
-/*
-Copyright (c) 2009, Yahoo! Inc. All rights reserved.
-Code licensed under the BSD License:
-http://developer.yahoo.net/yui/license.txt
-version: 2.8.0r4
-*/
-/* several */
-
-.yui-pb-bar,
-.yui-pb-mask {
-       width:100%;
-       height:100%;
-}      
-
-/* contentBox */
-.yui-pb {
-       position:relative;
-       top:0;
-       left:0;
-
-       width:200px;
-       height:20px;
-
-       padding:0;
-       border:none;
-       margin:0;
-
-       text-align:left;
-}
-
-/* mask */
-
-.yui-pb-mask {
-       position:absolute;
-       top:0;
-       left:0;
-
-       z-index:2;
-}
-
-.yui-pb-mask div {
-       width:50%;
-       height:50%;
-       background-repeat:no-repeat;
-       padding:0;
-       position: absolute;
-}
-
-.yui-pb-tl {
-       background-position: top left;
-}
-.yui-pb-tr {
-       background-position: top right;
-       left:50%;
-}
-.yui-pb-bl {
-       background-position: bottom left;
-       top:50%;
-}
-.yui-pb-br {
-       background-position: bottom right;
-       left:50%;
-       top:50%;
-}
-
-/* bar */
-.yui-pb-bar {
-       margin:0;
-       position:absolute;
-       left:0;
-       top:0;
-       z-index:1;
-}
-
-.yui-pb-ltr .yui-pb-bar {
-       _position:static
-}
-
-.yui-pb-rtl .yui-pb-bar {
-       background-position:right;
-}
-
-.yui-pb-btt .yui-pb-bar {
-       background-position:left bottom;
-}
diff --git a/koha-tmpl/intranet-tmpl/prog/en/lib/yui/progressbar/assets/skins/sam/back-h.png b/koha-tmpl/intranet-tmpl/prog/en/lib/yui/progressbar/assets/skins/sam/back-h.png
deleted file mode 100644 (file)
index 5f69f4e..0000000
Binary files a/koha-tmpl/intranet-tmpl/prog/en/lib/yui/progressbar/assets/skins/sam/back-h.png and /dev/null differ
diff --git a/koha-tmpl/intranet-tmpl/prog/en/lib/yui/progressbar/assets/skins/sam/back-v.png b/koha-tmpl/intranet-tmpl/prog/en/lib/yui/progressbar/assets/skins/sam/back-v.png
deleted file mode 100644 (file)
index 658574a..0000000
Binary files a/koha-tmpl/intranet-tmpl/prog/en/lib/yui/progressbar/assets/skins/sam/back-v.png and /dev/null differ
diff --git a/koha-tmpl/intranet-tmpl/prog/en/lib/yui/progressbar/assets/skins/sam/bar-h.png b/koha-tmpl/intranet-tmpl/prog/en/lib/yui/progressbar/assets/skins/sam/bar-h.png
deleted file mode 100644 (file)
index fea13b1..0000000
Binary files a/koha-tmpl/intranet-tmpl/prog/en/lib/yui/progressbar/assets/skins/sam/bar-h.png and /dev/null differ
diff --git a/koha-tmpl/intranet-tmpl/prog/en/lib/yui/progressbar/assets/skins/sam/bar-v.png b/koha-tmpl/intranet-tmpl/prog/en/lib/yui/progressbar/assets/skins/sam/bar-v.png
deleted file mode 100644 (file)
index 2efd664..0000000
Binary files a/koha-tmpl/intranet-tmpl/prog/en/lib/yui/progressbar/assets/skins/sam/bar-v.png and /dev/null differ
diff --git a/koha-tmpl/intranet-tmpl/prog/en/lib/yui/progressbar/assets/skins/sam/progressbar-skin.css b/koha-tmpl/intranet-tmpl/prog/en/lib/yui/progressbar/assets/skins/sam/progressbar-skin.css
deleted file mode 100644 (file)
index 460dc80..0000000
+++ /dev/null
@@ -1,56 +0,0 @@
-/*
-Copyright (c) 2009, Yahoo! Inc. All rights reserved.
-Code licensed under the BSD License:
-http://developer.yahoo.net/yui/license.txt
-version: 2.8.0r4
-*/
-.yui-pb-bar {
-       background-color:blue;
-}
-
-.yui-pb {
-       border: thin solid #808080
-}
-
-.yui-skin-sam .yui-pb {
-       background-color: transparent;
-       border: solid #808080;
-       border-width:1px 0;
-}
-
-.yui-skin-sam .yui-pb-rtl,.yui-skin-sam .yui-pb-ltr {
-       background-image: url(back-h.png);
-       background-repeat:repeat-x;
-}
-
-.yui-skin-sam .yui-pb-ttb,.yui-skin-sam .yui-pb-btt {
-       background-image: url(back-v.png);
-       background-repeat:repeat-y;
-}
-.yui-skin-sam  .yui-pb-bar{
-       background-color:transparent;
-}
-
-.yui-skin-sam .yui-pb-ltr .yui-pb-bar,.yui-skin-sam .yui-pb-rtl .yui-pb-bar {
-       background-image:url(bar-h.png);
-       background-repeat:repeat-x;
-}
-.yui-skin-sam .yui-pb-ttb .yui-pb-bar,.yui-skin-sam .yui-pb-btt .yui-pb-bar {
-       background-image:url(bar-v.png);
-       background-repeat:repeat-y;
-}
-
-.yui-skin-sam .yui-pb-mask {
-       border: solid #808080;
-       border-width:0 1px;
-       margin: 0 -1px;
-}
-
-.yui-skin-sam .yui-pb-caption {
-       color:#000;
-       text-align:center;
-       margin:0 auto;
-}
-.yui-skin-sam .yui-pb-range {
-       color:#a6a6a6;
-}
\ No newline at end of file
diff --git a/koha-tmpl/intranet-tmpl/prog/en/lib/yui/progressbar/assets/skins/sam/progressbar.css b/koha-tmpl/intranet-tmpl/prog/en/lib/yui/progressbar/assets/skins/sam/progressbar.css
deleted file mode 100644 (file)
index d71e6e8..0000000
+++ /dev/null
@@ -1,7 +0,0 @@
-/*
-Copyright (c) 2009, Yahoo! Inc. All rights reserved.
-Code licensed under the BSD License:
-http://developer.yahoo.net/yui/license.txt
-version: 2.8.0r4
-*/
-.yui-pb-bar,.yui-pb-mask{width:100%;height:100%;}.yui-pb{position:relative;top:0;left:0;width:200px;height:20px;padding:0;border:none;margin:0;text-align:left;}.yui-pb-mask{position:absolute;top:0;left:0;z-index:2;}.yui-pb-mask div{width:50%;height:50%;background-repeat:no-repeat;padding:0;position:absolute;}.yui-pb-tl{background-position:top left;}.yui-pb-tr{background-position:top right;left:50%;}.yui-pb-bl{background-position:bottom left;top:50%;}.yui-pb-br{background-position:bottom right;left:50%;top:50%;}.yui-pb-bar{margin:0;position:absolute;left:0;top:0;z-index:1;}.yui-pb-ltr .yui-pb-bar{_position:static;}.yui-pb-rtl .yui-pb-bar{background-position:right;}.yui-pb-btt .yui-pb-bar{background-position:left bottom;}.yui-pb-bar{background-color:blue;}.yui-pb{border:thin solid #808080;}.yui-skin-sam .yui-pb{background-color:transparent;border:solid #808080;border-width:1px 0;}.yui-skin-sam .yui-pb-rtl,.yui-skin-sam .yui-pb-ltr{background-image:url(back-h.png);background-repeat:repeat-x;}.yui-skin-sam .yui-pb-ttb,.yui-skin-sam .yui-pb-btt{background-image:url(back-v.png);background-repeat:repeat-y;}.yui-skin-sam .yui-pb-bar{background-color:transparent;}.yui-skin-sam .yui-pb-ltr .yui-pb-bar,.yui-skin-sam .yui-pb-rtl .yui-pb-bar{background-image:url(bar-h.png);background-repeat:repeat-x;}.yui-skin-sam .yui-pb-ttb .yui-pb-bar,.yui-skin-sam .yui-pb-btt .yui-pb-bar{background-image:url(bar-v.png);background-repeat:repeat-y;}.yui-skin-sam .yui-pb-mask{border:solid #808080;border-width:0 1px;margin:0 -1px;}.yui-skin-sam .yui-pb-caption{color:#000;text-align:center;margin:0 auto;}.yui-skin-sam .yui-pb-range{color:#a6a6a6;}
diff --git a/koha-tmpl/intranet-tmpl/prog/en/lib/yui/progressbar/progressbar-debug.js b/koha-tmpl/intranet-tmpl/prog/en/lib/yui/progressbar/progressbar-debug.js
deleted file mode 100644 (file)
index 8f99b0b..0000000
+++ /dev/null
@@ -1,691 +0,0 @@
-/*
-Copyright (c) 2009, Yahoo! Inc. All rights reserved.
-Code licensed under the BSD License:
-http://developer.yahoo.net/yui/license.txt
-version: 2.8.0r4
-*/
-/**
- *
- * @module progressbar
- * @requires yahoo, dom, event, element
- * @optional animation
- * @title ProgressBar Widget
- */
-
-(function () {
-       var Dom = YAHOO.util.Dom,
-               Lang = YAHOO.lang,
-               // ClassNames
-               CLASS_PROGBAR = 'yui-pb',
-               CLASS_MASK = CLASS_PROGBAR + '-mask',
-               CLASS_BAR = CLASS_PROGBAR + '-bar',
-               CLASS_ANIM = CLASS_PROGBAR + '-anim',
-               CLASS_TL = CLASS_PROGBAR + '-tl',
-               CLASS_TR = CLASS_PROGBAR + '-tr',
-               CLASS_BL = CLASS_PROGBAR + '-bl',
-               CLASS_BR = CLASS_PROGBAR + '-br',
-               
-               // Configuration attributes
-               WIDTH = 'width',
-               HEIGHT = 'height',
-               MIN_VALUE = 'minValue',
-               MAX_VALUE = 'maxValue',
-               VALUE = 'value',
-               ANIM = 'anim',
-               DIRECTION = 'direction',
-               DIRECTION_LTR = 'ltr',
-               DIRECTION_RTL = 'rtl',
-               DIRECTION_TTB = 'ttb',
-               DIRECTION_BTT = 'btt',
-               BAR_EL = 'barEl',
-               MASK_EL = 'maskEl',
-               ARIA_TEXT_TEMPLATE = 'ariaTextTemplate',
-               
-               // Events
-               START = 'start',
-               PROGRESS = 'progress',
-               COMPLETE = 'complete';
-       
-       /**
-        * The ProgressBar widget provides an easy way to draw a bar depicting progress of an operation,
-        * a level meter, rating or any such simple linear measure.
-        * It allows for highly customized styles including animation, vertical or horizontal and forward or reverse.
-        * @namespace YAHOO.widget
-        * @class ProgressBar
-        * @extends YAHOO.util.Element
-        * @param oConfigs {object} An object containing any configuration attributes to be set 
-        * @constructor
-        */        
-       var Prog = function(oConfigs) {
-               YAHOO.log('Creating ProgressBar instance','info','ProgressBar');
-        
-               Prog.superclass.constructor.call(this, document.createElement('div') , oConfigs);
-               this._init(oConfigs);
-               
-       };
-       
-       YAHOO.widget.ProgressBar = Prog;
-
-    /**
-     * String containing the HTML string which is the basis for the Progress Bar.
-     *
-     * @property ProgressBar.MARKUP
-     * @type String
-     * @static
-     * @final
-     * @default (too long)
-     */
-       Prog.MARKUP = [
-               '<div class="',
-               CLASS_BAR,
-               '"></div><div class="',
-               CLASS_MASK,
-               '"><div class="',
-               CLASS_TL,
-               '"></div><div class="',
-               CLASS_TR,
-               '"></div><div class="',
-               CLASS_BL,
-               '"></div><div class="',
-               CLASS_BR,
-               '"></div></div>'
-       ].join('');
-
-       
-       Lang.extend(Prog, YAHOO.util.Element, {
-               /**
-                * Initialization code for the widget, separate from the constructor to allow for overriding/patching.
-                * It is called after <a href="#method_initAttributes">initAttributes</a>
-                *
-                * @method _init
-                * @param oConfigs {Object} (Optional) Object literal definition of configuration values.  
-                * @protected
-                */     
-                _init: function (oConfigs) {
-                       /**
-                        * Fires when the value is about to change.  It reports the starting value
-                        * @event start
-                        * @type CustomEvent
-                        * @param value {Number} the current (initial) value
-                        */
-                       // No actual creation required, event will be created when subscribed to
-                       //this.createEvent(START);
-                       /**
-                        * If animation is active, it will trigger several times during the animation providing intermediate values
-                        * If animation is not active, it will fire only once providing the end value
-                        * @event progress
-                        * @type CustomEvent
-                        * @param  value{Number} the current, changing value
-                        */
-                       // No actual creation required, event will be created when subscribed to
-                       //this.createEvent(PROGRESS);
-                       /**
-                        * Fires at the end of the animation or immediately upon changing values if animation is not loaded
-                        * @event complete
-                        * @type CustomEvent
-                        * @param value {Number} the current (final)  value
-                        */
-                       // No actual creation required, event will be created when listened to
-                       //this.createEvent(COMPLETE);
-                       
-
-               },
-               /**
-                * Implementation of Element's abstract method. Sets up config values.
-                *
-                * @method initAttributes
-                * @param oConfigs {Object} (Optional) Object literal definition of configuration values.
-                * @private
-                */     
-               initAttributes: function (oConfigs) {
-                       YAHOO.log('Initializing configuration attributes','info','ProgressBar');
-
-                   Prog.superclass.initAttributes.call(this, oConfigs);
-                       this.set('innerHTML',Prog.MARKUP);
-                       this.addClass(CLASS_PROGBAR);
-                       
-                       // I need to apply at least the following styles, if present in oConfigs, 
-                       // to the ProgressBar so when it later reads the width and height, 
-                       // they are already set to the correct values.
-                       // id is important because it can be used as a CSS selector.
-                       var key, presets = ['id',WIDTH,HEIGHT,'class','style'];
-                       while((key = presets.pop())) {
-                               if (key in oConfigs) {
-                                       this.set(key,oConfigs[key]);
-                               }
-                       }
-                       
-
-                       /**
-                        * @attribute barEl
-                        * @description Reference to the HTML object that makes the moving bar (read-only)
-                        * @type HTMLElement (div)
-                        * @readonly
-                        */                     
-                   this.setAttributeConfig(BAR_EL, {
-                       readOnly: true,
-                       value: this.getElementsByClassName(CLASS_BAR)[0]
-                   });
-                       /**
-                        * @attribute maskEl
-                        * @description Reference to the HTML object that overlays the bar providing the mask. (read-only)
-                        * @type HTMLElement (table)
-                        * @readonly
-                        */                     
-                   this.setAttributeConfig(MASK_EL, {
-                       readOnly: true,
-                       value: this.getElementsByClassName(CLASS_MASK)[0]
-                   });
-                       
-                       
-                       /**
-                        * @attribute direction
-                        * @description Direction of movement of the bar.  
-                        *    It can be any of 'ltr' (left to right), 'rtl' (the reverse) , 'ttb' (top to bottom) or 'btt'.
-                        *    Can only be set once and only before rendering.
-                        * @default 'ltr'
-                        * @type String (any of "ltr", "rtl", "ttb" or "btt")
-                        */                     
-                       this.setAttributeConfig(DIRECTION, {
-                               value:DIRECTION_LTR,
-                               validator:function(value) {
-                                       if (this._rendered) { return false; }
-                                       switch (value) {
-                                               case DIRECTION_LTR:
-                                               case DIRECTION_RTL:
-                                               case DIRECTION_TTB:
-                                               case DIRECTION_BTT:
-                                                       return true;
-                                               default:
-                                                       return false;
-                                       }
-                               },
-                               method: function(value) {
-                                       this._barSizeFunction = this._barSizeFunctions[this.get(ANIM)?1:0][value];
-                               }
-                       });
-                       
-                       /**
-                        * @attribute maxValue
-                        * @description Represents the top value for the bar. 
-                        *   The bar will be fully extended when reaching this value.  
-                        *   Values higher than this will be ignored. 
-                        * @default 100
-                        * @type Number
-                        */                                 
-                   this.setAttributeConfig(MAX_VALUE, {
-                       value: 100,
-                               validator: Lang.isNumber,
-                               method: function (value) {
-                                       this.get('element').setAttribute('aria-valuemax',value);
-                                       if (this.get(VALUE) > value) { this.set(VALUE,value); }
-                               }
-                   });
-                       
-                       /**
-                        * @attribute minValue
-                        * @description Represents the lowest value for the bar. 
-                        *   The bar will be totally collapsed when reaching this value.  
-                        *    Values lower than this will be ignored. 
-                        * @default 0
-                        * @type Number
-                        */                             
-
-                   this.setAttributeConfig(MIN_VALUE, {
-                       value: 0,
-                               validator: Lang.isNumber,
-                               method: function (value) {
-                                       this.get('element').setAttribute('aria-valuemin',value);
-                                       if (this.get(VALUE) < value) { this.set(VALUE,value); }
-                               }
-                   });
-                       /**
-                        * @attribute width
-                        * @description Width of the ProgressBar.
-                        *     If a number, it will be assumed to be in pixels.  
-                        *     If a string it should be a valid setting for the CSS width attribute.  
-                        *     It will always be returned as a string including units.
-                        * @default "200px"
-                        * @type Number or String
-                        */                             
-
-                   this.setAttributeConfig(WIDTH, {
-                               getter: function() {
-                                       return this.getStyle(WIDTH);
-                               },
-                               method: this._widthChange
-                   });
-               
-
-                       /**
-                        * @attribute height
-                        * @description Height of the ProgressBar.
-                        *     If a number, it will be assumed to be in pixels.  
-                        *     If a string it should be a valid setting for the CSS height attribute.  
-                        *     It will always be returned as a string including units.
-                        * @default "20px"
-                        * @type Number or String
-                        */                             
-                   this.setAttributeConfig(HEIGHT, {
-                               getter:function() {
-                                       return this.getStyle(HEIGHT);
-                               },
-                               method: this._heightChange
-                   });
-                       
-                       
-       
-                       /**
-                        * @attribute ariaTextTemplate 
-                        * @description Text to be voiced by screen readers.
-                        *     The text is processed by <a href="YAHOO.lang.html#method_substitute">YAHOO.lang.substitute</a>.  
-                        *     It can use the placeholders {value}, {minValue} and {maxValue}
-                        * @default "{value}"
-                        * @type String
-                        */                             
-                       this.setAttributeConfig(ARIA_TEXT_TEMPLATE, {
-                               value:'{value}'
-                       });
-                       
-                       /**
-                        * @attribute value
-                        * @description The value for the bar.  
-                        *     Valid values are in between the minValue and maxValue attributes.
-                        * @default 0
-                        * @type Number
-                        */                     
-                       this.setAttributeConfig(VALUE, {
-                               value: 0,
-                               validator: function(value) {
-                                       return Lang.isNumber(value) && value >= this.get(MIN_VALUE) && value <= this.get(MAX_VALUE);
-                               },
-                               method: this._valueChange
-                   });
-                       
-                       /**
-                        * @attribute anim
-                        * @description it accepts either a boolean (recommended) or an instance of <a href="YAHOO.util.Anim.html">YAHOO.util.Anim</a>.
-                        *   If a boolean, it will enable/disable animation creating its own instance of the animation utility.  
-                        *   If given an instance of <a href="YAHOO.util.Anim.html">YAHOO.util.Anim</a> it will use that instance.
-                        *   The <a href="YAHOO.util.Anim.html">animation</a> utility needs to be loaded.
-                        *   When read, it returns the instance of the animation utility in use or null if none.  
-                        *   It can be used to set the animation parameters such as easing methods or duration.
-                        * @default null
-                        * @type {boolean} or {instance of YAHOO.util.Anim}
-                        */                                             
-                       this.setAttributeConfig(ANIM, {
-                               validator: function(value) {
-                                       return !!YAHOO.util.Anim;
-                               },
-                               setter: this._animSetter
-                       });
-                       
-                       
-               },
-               /** 
-                *  Renders the ProgressBar into the given container.  
-                *  If the container has other content, the ProgressBar will be appended to it.
-                *  If the second argument is provided, the ProgressBar will be inserted before the given child.
-                * The method is chainable since it returns a reference to this instance.
-                * @method render
-                * @param el {HTML Element}  HTML element that will contain the ProgressBar
-                * @param before {HTML Element}  (optional) If present, the ProgressBar will be inserted before this element.
-                * @return {YAHOO.widget.ProgressBar}
-                * @chainable
-                */
-               render: function(parent,before) {
-
-                       YAHOO.log('start render','info','ProgressBar');
-                       if (this._rendered) { return; }
-                       this._rendered = true;
-                       
-                       var direction = this.get(DIRECTION);
-
-                       // If the developer set a className attribute on initialization, 
-                       // Element would have wiped out my own classNames
-                       // So I need to insist on them, plus add the one for direction.
-                       this.addClass(CLASS_PROGBAR);
-                       this.addClass(CLASS_PROGBAR + '-' + direction);
-
-                       var container = this.get('element');
-                       container.tabIndex = 0;
-                       container.setAttribute('role','progressbar');
-                       container.setAttribute('aria-valuemin',this.get(MIN_VALUE));
-                       container.setAttribute('aria-valuemax',this.get(MAX_VALUE));
-
-                       this.appendTo(parent,before);
-                       
-                                       
-                       // I need to use the non-animated bar resizing function for initial redraw
-                       this._barSizeFunction = this._barSizeFunctions[0][direction];
-                       this.redraw();
-                       this._previousValue = this.get(VALUE);
-                       this._fixEdges();
-                       // I can now set the correct bar resizer
-                       if (this.get(ANIM)) {
-                               this._barSizeFunction = this._barSizeFunctions[1][direction];
-                       }
-
-                       this.on('minValueChange',this.redraw);
-                       this.on('maxValueChange',this.redraw);
-
-                       return this;
-               },
-
-               /** 
-                * Recalculates the bar size and position and redraws it
-                * @method redraw
-                * @return  void
-                */
-               redraw: function () {
-                       YAHOO.log('Redraw','info','ProgressBar');
-                       this._recalculateConstants();
-                       this._valueChange(this.get(VALUE));
-               },
-                       
-               /** 
-                * Destroys the ProgressBar, related objects and unsubscribes from all events
-                * @method destroy
-                * @return  void
-                */
-               destroy: function() {
-                       YAHOO.log('destroy','info','ProgressBar');
-                       this.set(ANIM,false);
-                       this.unsubscribeAll();
-                       var el = this.get('element');
-                       if (el.parentNode) { el.parentNode.removeChild(el); }
-               },
-               /**
-                * The previous value setting for the bar.  Used mostly as information to event listeners
-                * @property _previousValue
-                * @type Number
-                * @private
-                * @default  0
-                */
-               _previousValue:0,
-               /**
-                * The actual space (in pixels) available for the bar within the mask (excludes margins)
-                * @property _barSpace
-                * @type Number
-                * @private
-                * @default  100
-                */
-               _barSpace:100,
-               /**
-                * The factor to convert the actual value of the bar into pixels
-                * @property _barSpace
-                * @type Number
-                * @private
-                * @default  1
-                */
-               _barFactor:1,
-               
-               /**
-                * A flag to signal that rendering has already happened
-                * @property _rendered
-                * @type boolean
-                * @private
-                * @default  false
-                */
-               _rendered:false,
-               
-               /**
-                * Function to be used to calculate bar size.  
-                * It is picked from <a href="#property_barSizeFunctions">_barSizeFunctions</a>
-                * depending on direction and whether animation is active.
-                * @property _barSizeFunction
-                * @type {function}
-                * @default null
-                * @private
-                */             
-               _barSizeFunction: null,
-               
-               /** 
-                * Method called when the height attribute is changed
-                * @method _heightChange
-                * @param {int or string} value New height, in pixels if int or string including units
-                * @return void
-                * @private
-                */
-               _heightChange: function(value) {
-                       if (Lang.isNumber(value)) {
-                               value += 'px';
-                       }
-                       this.setStyle(HEIGHT,value);
-                       this._fixEdges();
-                       this.redraw();
-               },
-
-               /** 
-                * Method called when the height attribute is changed
-                * @method _widthChange
-                * @param {int or string} value New width, in pixels if int or string including units
-                * @return void
-                * @private
-                */
-               _widthChange: function(value) {
-                       if (Lang.isNumber(value)) {
-                               value += 'px';
-                       }
-                       this.setStyle(WIDTH,value);
-                       this._fixEdges();
-                       this.redraw();
-               },
-               
-               /** 
-                * Due to rounding differences, some browsers fail to cover the whole area 
-                * with the mask quadrants when the width or height is odd.  This method
-                * stretches the lower and/or right quadrants to make the difference.
-                * @method _fixEdges
-                * @return void
-                * @private
-                */
-               _fixEdges:function() {
-                       if (!this._rendered || YAHOO.env.ua.ie || YAHOO.env.ua.gecko ) { return; }
-                       var maskEl = this.get(MASK_EL),
-                               tlEl = Dom.getElementsByClassName(CLASS_TL,undefined,maskEl)[0],
-                               trEl = Dom.getElementsByClassName(CLASS_TR,undefined,maskEl)[0],
-                               blEl = Dom.getElementsByClassName(CLASS_BL,undefined,maskEl)[0],
-                               brEl = Dom.getElementsByClassName(CLASS_BR,undefined,maskEl)[0],
-                               newSize = (parseInt(Dom.getStyle(maskEl,HEIGHT),10) -
-                               parseInt(Dom.getStyle(tlEl,HEIGHT),10)) + 'px';
-                               
-                       Dom.setStyle(blEl,HEIGHT,newSize);
-                       Dom.setStyle(brEl,HEIGHT,newSize);
-                       newSize = (parseInt(Dom.getStyle(maskEl,WIDTH),10) -
-                               parseInt(Dom.getStyle(tlEl,WIDTH),10)) + 'px';
-                       Dom.setStyle(trEl,WIDTH,newSize);
-                       Dom.setStyle(brEl,WIDTH,newSize);
-               },
-                                       
-                               
-               
-               /** 
-                * Calculates some auxiliary values to make the rendering faster
-                * @method _recalculateConstants
-                * @return  void
-                * @private
-                */             
-               _recalculateConstants: function() {
-                       YAHOO.log('Recalculating auxiliary factors','info','ProgressBar');
-                       var barEl = this.get(BAR_EL);
-
-                       switch (this.get(DIRECTION)) {
-                               case DIRECTION_LTR:
-                               case DIRECTION_RTL:
-                                       this._barSpace = parseInt(this.get(WIDTH),10) - 
-                                               (parseInt(Dom.getStyle(barEl,'marginLeft'),10) || 0) -
-                                               (parseInt(Dom.getStyle(barEl,'marginRight'),10) || 0);
-                                       break;
-                               case DIRECTION_TTB:
-                               case DIRECTION_BTT:
-                                       this._barSpace = parseInt(this.get(HEIGHT),10) -
-                                               (parseInt(Dom.getStyle(barEl,'marginTop'),10) || 0)-
-                                               (parseInt(Dom.getStyle(barEl,'marginBottom'),10) || 0); 
-                                       break;
-                       }
-                       this._barFactor = this._barSpace / (this.get(MAX_VALUE) - (this.get(MIN_VALUE) || 0))  || 1;
-               },
-               
-               /** 
-                * Called in response to a change in the <a href="#config_anim">anim</a> attribute.
-                * It creates and sets up or destroys the instance of the animation utility that will move the bar
-                * @method _animSetter
-                * @return  void
-                * @private
-                */             
-               _animSetter: function (value) {
-                       var anim, barEl = this.get(BAR_EL);
-                       if (value) {
-                               YAHOO.log('Turning animation on','info','ProgressBar');
-                               if (value instanceof YAHOO.util.Anim) {
-                                       anim = value;
-                               } else {
-                                       anim = new YAHOO.util.Anim(barEl);
-                               }
-                               anim.onTween.subscribe(this._animOnTween,this,true);
-                               anim.onComplete.subscribe(this._animComplete,this,true);
-                               
-                               // Temporary solution until http://yuilibrary.com/projects/yui2/ticket/2528222 gets solved:
-                               var oldSetAttribute = anim.setAttribute,
-                                       pb = this;
-                               switch(this.get(DIRECTION)) {
-                                       case DIRECTION_BTT:
-                                               anim.setAttribute = function(attr , val , unit) {
-                                                       val = Math.round(val);
-                                                       oldSetAttribute.call(this,attr,val,unit);
-                                                       Dom.setStyle(barEl,'top',(pb._barSpace - val) + 'px');
-                                               };
-                                               break;
-                                       case DIRECTION_RTL:
-                                               anim.setAttribute = function(attr , val , unit) {
-                                                       val = Math.round(val);
-                                                       oldSetAttribute.call(this,attr,val,unit);
-                                                       Dom.setStyle(barEl,'left',(pb._barSpace - val) + 'px');
-                                               };
-                                               break;
-                               }
-                               // up to here
-
-                       } else {
-                               YAHOO.log('Turning animation off','info','ProgressBar');
-                               anim = this.get(ANIM);
-                               if (anim) {
-                                       anim.onTween.unsubscribeAll();
-                                       anim.onComplete.unsubscribeAll();
-                               }
-                               anim = null;
-                       }
-                       this._barSizeFunction = this._barSizeFunctions[anim?1:0][this.get(DIRECTION)];
-                       return anim;
-               },
-               
-               _animComplete: function() {
-                       YAHOO.log('Animation completed','info','ProgressBar');
-                       var value = this.get(VALUE);
-                       this._previousValue = value;
-                       this.fireEvent(PROGRESS,value);
-                       this.fireEvent(COMPLETE, value);
-                       Dom.removeClass(this.get(BAR_EL),CLASS_ANIM);
-               },
-               _animOnTween:function (name,oArgs) {
-                       var value = Math.floor(this._tweenFactor * oArgs[0].currentFrame + this._previousValue);
-                       // The following fills the logger window too fast
-                       //YAHOO.log('Animation onTween at: ' + value,'info','ProgressBar');
-                       this.fireEvent(PROGRESS,value);
-               },
-               
-               /** 
-                * Called in response to a change in the <a href="#config_value">value</a> attribute.
-                * Moves the bar to reflect the new value
-                * @method _valueChange
-                * @return  void
-                * @private
-                */             
-               _valueChange: function (value) {
-                       YAHOO.log('set value: ' + value,'info','ProgressBar');
-                       var anim = this.get(ANIM),
-                               pixelValue = Math.floor((value - this.get(MIN_VALUE)) * this._barFactor),
-                               barEl = this.get(BAR_EL);
-                       
-                       this._setAriaText(value);
-                       if (this._rendered) {
-                               if (anim) {
-                                       anim.stop();
-                                       if (anim.isAnimated()) { anim._onComplete.fire(); } // see: http://yuilibrary.com/projects/yui2/ticket/2528217
-                               }
-                               this.fireEvent(START,this._previousValue);
-                               this._barSizeFunction(value, pixelValue, barEl, anim);
-                       }
-               },
-
-               /** 
-                * Utility method to set the ARIA value attributes
-                * @method _setAriaText
-                * @return  void
-                * @private
-                */
-                _setAriaText: function(value) {
-                       // When animated, this fills the logger window too fast
-                       //YAHOO.log('Show template','info','ProgressBar');
-
-                       var container = this.get('element'),
-                               text = Lang.substitute(this.get(ARIA_TEXT_TEMPLATE),{
-                                       value:value,
-                                       minValue:this.get(MIN_VALUE),
-                                       maxValue:this.get(MAX_VALUE)
-                               });
-                       container.setAttribute('aria-valuenow',value);
-                       container.setAttribute('aria-valuetext',text);
-               }
-       });
-       /**
-        * Collection of functions used by to calculate the size of the bar.
-        * One of this will be used depending on direction and whether animation is active.
-        * @property _barSizeFunctions
-        * @type {collection of functions}
-        * @private
-        */
-       var b = [{},{}];
-       Prog.prototype._barSizeFunctions = b;
-       
-       b[0][DIRECTION_LTR] = function(value, pixelValue, barEl, anim) {
-               Dom.setStyle(barEl,WIDTH,  pixelValue + 'px');
-               this.fireEvent(PROGRESS,value);
-               this.fireEvent(COMPLETE,value);
-       };
-       b[0][DIRECTION_RTL] = function(value, pixelValue, barEl, anim) {
-               Dom.setStyle(barEl,WIDTH,  pixelValue + 'px');
-               Dom.setStyle(barEl,'left',(this._barSpace - pixelValue) + 'px');
-               this.fireEvent(PROGRESS,value);
-               this.fireEvent(COMPLETE,value);
-       };
-       b[0][DIRECTION_TTB] = function(value, pixelValue, barEl, anim) {
-               Dom.setStyle(barEl,HEIGHT,  pixelValue + 'px');
-               this.fireEvent(PROGRESS,value);
-               this.fireEvent(COMPLETE,value);
-       };
-       b[0][DIRECTION_BTT] = function(value, pixelValue, barEl, anim) {
-               Dom.setStyle(barEl,HEIGHT,  pixelValue + 'px');
-               Dom.setStyle(barEl,'top',  (this._barSpace - pixelValue) + 'px');
-               this.fireEvent(PROGRESS,value);
-               this.fireEvent(COMPLETE,value);
-       };
-       b[1][DIRECTION_LTR] = function(value, pixelValue, barEl, anim) {
-               Dom.addClass(barEl,CLASS_ANIM);
-               this._tweenFactor = (value - this._previousValue) / anim.totalFrames  / anim.duration;
-               anim.attributes = {width:{ to: pixelValue }}; 
-               anim.animate();
-       };
-       b[1][DIRECTION_RTL] =  b[1][DIRECTION_LTR];
-       b[1][DIRECTION_TTB] =  function(value, pixelValue, barEl, anim) {
-               Dom.addClass(barEl,CLASS_ANIM);
-               this._tweenFactor = (value - this._previousValue) / anim.totalFrames  / anim.duration;
-               anim.attributes = {height:{to: pixelValue}};
-               anim.animate();
-       };
-       b[1][DIRECTION_BTT] =  b[1][DIRECTION_TTB];
-                               
-})();
-
-YAHOO.register("progressbar", YAHOO.widget.ProgressBar, {version: "2.8.0r4", build: "2449"});
diff --git a/koha-tmpl/intranet-tmpl/prog/en/lib/yui/progressbar/progressbar-min.js b/koha-tmpl/intranet-tmpl/prog/en/lib/yui/progressbar/progressbar-min.js
deleted file mode 100644 (file)
index 02e7a00..0000000
+++ /dev/null
@@ -1,8 +0,0 @@
-/*
-Copyright (c) 2009, Yahoo! Inc. All rights reserved.
-Code licensed under the BSD License:
-http://developer.yahoo.net/yui/license.txt
-version: 2.8.0r4
-*/
-(function(){var B=YAHOO.util.Dom,H=YAHOO.lang,X="yui-pb",Z=X+"-mask",W=X+"-bar",V=X+"-anim",M=X+"-tl",K=X+"-tr",J=X+"-bl",F=X+"-br",G="width",S="height",L="minValue",U="maxValue",I="value",A="anim",T="direction",D="ltr",P="rtl",d="ttb",O="btt",E="barEl",C="maskEl",R="ariaTextTemplate",Y="start",c="progress",Q="complete";var N=function(b){N.superclass.constructor.call(this,document.createElement("div"),b);this._init(b);};YAHOO.widget.ProgressBar=N;N.MARKUP=['<div class="',W,'"></div><div class="',Z,'"><div class="',M,'"></div><div class="',K,'"></div><div class="',J,'"></div><div class="',F,'"></div></div>'].join("");H.extend(N,YAHOO.util.Element,{_init:function(b){},initAttributes:function(f){N.superclass.initAttributes.call(this,f);this.set("innerHTML",N.MARKUP);this.addClass(X);var e,b=["id",G,S,"class","style"];while((e=b.pop())){if(e in f){this.set(e,f[e]);}}this.setAttributeConfig(E,{readOnly:true,value:this.getElementsByClassName(W)[0]});this.setAttributeConfig(C,{readOnly:true,value:this.getElementsByClassName(Z)[0]});this.setAttributeConfig(T,{value:D,validator:function(g){if(this._rendered){return false;}switch(g){case D:case P:case d:case O:return true;default:return false;}},method:function(g){this._barSizeFunction=this._barSizeFunctions[this.get(A)?1:0][g];}});this.setAttributeConfig(U,{value:100,validator:H.isNumber,method:function(g){this.get("element").setAttribute("aria-valuemax",g);if(this.get(I)>g){this.set(I,g);}}});this.setAttributeConfig(L,{value:0,validator:H.isNumber,method:function(g){this.get("element").setAttribute("aria-valuemin",g);if(this.get(I)<g){this.set(I,g);}}});this.setAttributeConfig(G,{getter:function(){return this.getStyle(G);},method:this._widthChange});this.setAttributeConfig(S,{getter:function(){return this.getStyle(S);},method:this._heightChange});this.setAttributeConfig(R,{value:"{value}"});this.setAttributeConfig(I,{value:0,validator:function(g){return H.isNumber(g)&&g>=this.get(L)&&g<=this.get(U);},method:this._valueChange});this.setAttributeConfig(A,{validator:function(g){return !!YAHOO.util.Anim;},setter:this._animSetter});},render:function(e,f){if(this._rendered){return;}this._rendered=true;var g=this.get(T);this.addClass(X);this.addClass(X+"-"+g);var b=this.get("element");b.tabIndex=0;b.setAttribute("role","progressbar");b.setAttribute("aria-valuemin",this.get(L));b.setAttribute("aria-valuemax",this.get(U));this.appendTo(e,f);this._barSizeFunction=this._barSizeFunctions[0][g];this.redraw();this._previousValue=this.get(I);this._fixEdges();if(this.get(A)){this._barSizeFunction=this._barSizeFunctions[1][g];}this.on("minValueChange",this.redraw);this.on("maxValueChange",this.redraw);return this;},redraw:function(){this._recalculateConstants();this._valueChange(this.get(I));},destroy:function(){this.set(A,false);this.unsubscribeAll();var b=this.get("element");if(b.parentNode){b.parentNode.removeChild(b);}},_previousValue:0,_barSpace:100,_barFactor:1,_rendered:false,_barSizeFunction:null,_heightChange:function(b){if(H.isNumber(b)){b+="px";}this.setStyle(S,b);this._fixEdges();this.redraw();},_widthChange:function(b){if(H.isNumber(b)){b+="px";}this.setStyle(G,b);this._fixEdges();this.redraw();},_fixEdges:function(){if(!this._rendered||YAHOO.env.ua.ie||YAHOO.env.ua.gecko){return;}var g=this.get(C),i=B.getElementsByClassName(M,undefined,g)[0],f=B.getElementsByClassName(K,undefined,g)[0],h=B.getElementsByClassName(J,undefined,g)[0],e=B.getElementsByClassName(F,undefined,g)[0],b=(parseInt(B.getStyle(g,S),10)-parseInt(B.getStyle(i,S),10))+"px";B.setStyle(h,S,b);B.setStyle(e,S,b);b=(parseInt(B.getStyle(g,G),10)-parseInt(B.getStyle(i,G),10))+"px";B.setStyle(f,G,b);B.setStyle(e,G,b);},_recalculateConstants:function(){var b=this.get(E);switch(this.get(T)){case D:case P:this._barSpace=parseInt(this.get(G),10)-(parseInt(B.getStyle(b,"marginLeft"),10)||0)-(parseInt(B.getStyle(b,"marginRight"),10)||0);break;case d:case O:this._barSpace=parseInt(this.get(S),10)-(parseInt(B.getStyle(b,"marginTop"),10)||0)-(parseInt(B.getStyle(b,"marginBottom"),10)||0);break;}this._barFactor=this._barSpace/(this.get(U)-(this.get(L)||0))||1;},_animSetter:function(g){var f,b=this.get(E);if(g){if(g instanceof YAHOO.util.Anim){f=g;}else{f=new YAHOO.util.Anim(b);}f.onTween.subscribe(this._animOnTween,this,true);f.onComplete.subscribe(this._animComplete,this,true);var h=f.setAttribute,e=this;switch(this.get(T)){case O:f.setAttribute=function(i,k,j){k=Math.round(k);h.call(this,i,k,j);B.setStyle(b,"top",(e._barSpace-k)+"px");};break;case P:f.setAttribute=function(i,k,j){k=Math.round(k);h.call(this,i,k,j);B.setStyle(b,"left",(e._barSpace-k)+"px");};break;}}else{f=this.get(A);if(f){f.onTween.unsubscribeAll();f.onComplete.unsubscribeAll();}f=null;}this._barSizeFunction=this._barSizeFunctions[f?1:0][this.get(T)];return f;},_animComplete:function(){var b=this.get(I);this._previousValue=b;this.fireEvent(c,b);this.fireEvent(Q,b);B.removeClass(this.get(E),V);},_animOnTween:function(b,e){var f=Math.floor(this._tweenFactor*e[0].currentFrame+this._previousValue);this.fireEvent(c,f);},_valueChange:function(g){var f=this.get(A),b=Math.floor((g-this.get(L))*this._barFactor),e=this.get(E);this._setAriaText(g);if(this._rendered){if(f){f.stop();if(f.isAnimated()){f._onComplete.fire();}}this.fireEvent(Y,this._previousValue);this._barSizeFunction(g,b,e,f);}},_setAriaText:function(e){var b=this.get("element"),f=H.substitute(this.get(R),{value:e,minValue:this.get(L),maxValue:this.get(U)});b.setAttribute("aria-valuenow",e);b.setAttribute("aria-valuetext",f);}});var a=[{},{}];N.prototype._barSizeFunctions=a;a[0][D]=function(g,b,e,f){B.setStyle(e,G,b+"px");this.fireEvent(c,g);this.fireEvent(Q,g);};a[0][P]=function(g,b,e,f){B.setStyle(e,G,b+"px");B.setStyle(e,"left",(this._barSpace-b)+"px");this.fireEvent(c,g);this.fireEvent(Q,g);};a[0][d]=function(g,b,e,f){B.setStyle(e,S,b+"px");this.fireEvent(c,g);this.fireEvent(Q,g);};a[0][O]=function(g,b,e,f){B.setStyle(e,S,b+"px");B.setStyle(e,"top",(this._barSpace-b)+"px");
-this.fireEvent(c,g);this.fireEvent(Q,g);};a[1][D]=function(g,b,e,f){B.addClass(e,V);this._tweenFactor=(g-this._previousValue)/f.totalFrames/f.duration;f.attributes={width:{to:b}};f.animate();};a[1][P]=a[1][D];a[1][d]=function(g,b,e,f){B.addClass(e,V);this._tweenFactor=(g-this._previousValue)/f.totalFrames/f.duration;f.attributes={height:{to:b}};f.animate();};a[1][O]=a[1][d];})();YAHOO.register("progressbar",YAHOO.widget.ProgressBar,{version:"2.8.0r4",build:"2449"});
\ No newline at end of file
diff --git a/koha-tmpl/intranet-tmpl/prog/en/lib/yui/progressbar/progressbar.js b/koha-tmpl/intranet-tmpl/prog/en/lib/yui/progressbar/progressbar.js
deleted file mode 100644 (file)
index 45e5cc9..0000000
+++ /dev/null
@@ -1,677 +0,0 @@
-/*
-Copyright (c) 2009, Yahoo! Inc. All rights reserved.
-Code licensed under the BSD License:
-http://developer.yahoo.net/yui/license.txt
-version: 2.8.0r4
-*/
-/**
- *
- * @module progressbar
- * @requires yahoo, dom, event, element
- * @optional animation
- * @title ProgressBar Widget
- */
-
-(function () {
-       var Dom = YAHOO.util.Dom,
-               Lang = YAHOO.lang,
-               // ClassNames
-               CLASS_PROGBAR = 'yui-pb',
-               CLASS_MASK = CLASS_PROGBAR + '-mask',
-               CLASS_BAR = CLASS_PROGBAR + '-bar',
-               CLASS_ANIM = CLASS_PROGBAR + '-anim',
-               CLASS_TL = CLASS_PROGBAR + '-tl',
-               CLASS_TR = CLASS_PROGBAR + '-tr',
-               CLASS_BL = CLASS_PROGBAR + '-bl',
-               CLASS_BR = CLASS_PROGBAR + '-br',
-               
-               // Configuration attributes
-               WIDTH = 'width',
-               HEIGHT = 'height',
-               MIN_VALUE = 'minValue',
-               MAX_VALUE = 'maxValue',
-               VALUE = 'value',
-               ANIM = 'anim',
-               DIRECTION = 'direction',
-               DIRECTION_LTR = 'ltr',
-               DIRECTION_RTL = 'rtl',
-               DIRECTION_TTB = 'ttb',
-               DIRECTION_BTT = 'btt',
-               BAR_EL = 'barEl',
-               MASK_EL = 'maskEl',
-               ARIA_TEXT_TEMPLATE = 'ariaTextTemplate',
-               
-               // Events
-               START = 'start',
-               PROGRESS = 'progress',
-               COMPLETE = 'complete';
-       
-       /**
-        * The ProgressBar widget provides an easy way to draw a bar depicting progress of an operation,
-        * a level meter, rating or any such simple linear measure.
-        * It allows for highly customized styles including animation, vertical or horizontal and forward or reverse.
-        * @namespace YAHOO.widget
-        * @class ProgressBar
-        * @extends YAHOO.util.Element
-        * @param oConfigs {object} An object containing any configuration attributes to be set 
-        * @constructor
-        */        
-       var Prog = function(oConfigs) {
-        
-               Prog.superclass.constructor.call(this, document.createElement('div') , oConfigs);
-               this._init(oConfigs);
-               
-       };
-       
-       YAHOO.widget.ProgressBar = Prog;
-
-    /**
-     * String containing the HTML string which is the basis for the Progress Bar.
-     *
-     * @property ProgressBar.MARKUP
-     * @type String
-     * @static
-     * @final
-     * @default (too long)
-     */
-       Prog.MARKUP = [
-               '<div class="',
-               CLASS_BAR,
-               '"></div><div class="',
-               CLASS_MASK,
-               '"><div class="',
-               CLASS_TL,
-               '"></div><div class="',
-               CLASS_TR,
-               '"></div><div class="',
-               CLASS_BL,
-               '"></div><div class="',
-               CLASS_BR,
-               '"></div></div>'
-       ].join('');
-
-       
-       Lang.extend(Prog, YAHOO.util.Element, {
-               /**
-                * Initialization code for the widget, separate from the constructor to allow for overriding/patching.
-                * It is called after <a href="#method_initAttributes">initAttributes</a>
-                *
-                * @method _init
-                * @param oConfigs {Object} (Optional) Object literal definition of configuration values.  
-                * @protected
-                */     
-                _init: function (oConfigs) {
-                       /**
-                        * Fires when the value is about to change.  It reports the starting value
-                        * @event start
-                        * @type CustomEvent
-                        * @param value {Number} the current (initial) value
-                        */
-                       // No actual creation required, event will be created when subscribed to
-                       //this.createEvent(START);
-                       /**
-                        * If animation is active, it will trigger several times during the animation providing intermediate values
-                        * If animation is not active, it will fire only once providing the end value
-                        * @event progress
-                        * @type CustomEvent
-                        * @param  value{Number} the current, changing value
-                        */
-                       // No actual creation required, event will be created when subscribed to
-                       //this.createEvent(PROGRESS);
-                       /**
-                        * Fires at the end of the animation or immediately upon changing values if animation is not loaded
-                        * @event complete
-                        * @type CustomEvent
-                        * @param value {Number} the current (final)  value
-                        */
-                       // No actual creation required, event will be created when listened to
-                       //this.createEvent(COMPLETE);
-                       
-
-               },
-               /**
-                * Implementation of Element's abstract method. Sets up config values.
-                *
-                * @method initAttributes
-                * @param oConfigs {Object} (Optional) Object literal definition of configuration values.
-                * @private
-                */     
-               initAttributes: function (oConfigs) {
-
-                   Prog.superclass.initAttributes.call(this, oConfigs);
-                       this.set('innerHTML',Prog.MARKUP);
-                       this.addClass(CLASS_PROGBAR);
-                       
-                       // I need to apply at least the following styles, if present in oConfigs, 
-                       // to the ProgressBar so when it later reads the width and height, 
-                       // they are already set to the correct values.
-                       // id is important because it can be used as a CSS selector.
-                       var key, presets = ['id',WIDTH,HEIGHT,'class','style'];
-                       while((key = presets.pop())) {
-                               if (key in oConfigs) {
-                                       this.set(key,oConfigs[key]);
-                               }
-                       }
-                       
-
-                       /**
-                        * @attribute barEl
-                        * @description Reference to the HTML object that makes the moving bar (read-only)
-                        * @type HTMLElement (div)
-                        * @readonly
-                        */                     
-                   this.setAttributeConfig(BAR_EL, {
-                       readOnly: true,
-                       value: this.getElementsByClassName(CLASS_BAR)[0]
-                   });
-                       /**
-                        * @attribute maskEl
-                        * @description Reference to the HTML object that overlays the bar providing the mask. (read-only)
-                        * @type HTMLElement (table)
-                        * @readonly
-                        */                     
-                   this.setAttributeConfig(MASK_EL, {
-                       readOnly: true,
-                       value: this.getElementsByClassName(CLASS_MASK)[0]
-                   });
-                       
-                       
-                       /**
-                        * @attribute direction
-                        * @description Direction of movement of the bar.  
-                        *    It can be any of 'ltr' (left to right), 'rtl' (the reverse) , 'ttb' (top to bottom) or 'btt'.
-                        *    Can only be set once and only before rendering.
-                        * @default 'ltr'
-                        * @type String (any of "ltr", "rtl", "ttb" or "btt")
-                        */                     
-                       this.setAttributeConfig(DIRECTION, {
-                               value:DIRECTION_LTR,
-                               validator:function(value) {
-                                       if (this._rendered) { return false; }
-                                       switch (value) {
-                                               case DIRECTION_LTR:
-                                               case DIRECTION_RTL:
-                                               case DIRECTION_TTB:
-                                               case DIRECTION_BTT:
-                                                       return true;
-                                               default:
-                                                       return false;
-                                       }
-                               },
-                               method: function(value) {
-                                       this._barSizeFunction = this._barSizeFunctions[this.get(ANIM)?1:0][value];
-                               }
-                       });
-                       
-                       /**
-                        * @attribute maxValue
-                        * @description Represents the top value for the bar. 
-                        *   The bar will be fully extended when reaching this value.  
-                        *   Values higher than this will be ignored. 
-                        * @default 100
-                        * @type Number
-                        */                                 
-                   this.setAttributeConfig(MAX_VALUE, {
-                       value: 100,
-                               validator: Lang.isNumber,
-                               method: function (value) {
-                                       this.get('element').setAttribute('aria-valuemax',value);
-                                       if (this.get(VALUE) > value) { this.set(VALUE,value); }
-                               }
-                   });
-                       
-                       /**
-                        * @attribute minValue
-                        * @description Represents the lowest value for the bar. 
-                        *   The bar will be totally collapsed when reaching this value.  
-                        *    Values lower than this will be ignored. 
-                        * @default 0
-                        * @type Number
-                        */                             
-
-                   this.setAttributeConfig(MIN_VALUE, {
-                       value: 0,
-                               validator: Lang.isNumber,
-                               method: function (value) {
-                                       this.get('element').setAttribute('aria-valuemin',value);
-                                       if (this.get(VALUE) < value) { this.set(VALUE,value); }
-                               }
-                   });
-                       /**
-                        * @attribute width
-                        * @description Width of the ProgressBar.
-                        *     If a number, it will be assumed to be in pixels.  
-                        *     If a string it should be a valid setting for the CSS width attribute.  
-                        *     It will always be returned as a string including units.
-                        * @default "200px"
-                        * @type Number or String
-                        */                             
-
-                   this.setAttributeConfig(WIDTH, {
-                               getter: function() {
-                                       return this.getStyle(WIDTH);
-                               },
-                               method: this._widthChange
-                   });
-               
-
-                       /**
-                        * @attribute height
-                        * @description Height of the ProgressBar.
-                        *     If a number, it will be assumed to be in pixels.  
-                        *     If a string it should be a valid setting for the CSS height attribute.  
-                        *     It will always be returned as a string including units.
-                        * @default "20px"
-                        * @type Number or String
-                        */                             
-                   this.setAttributeConfig(HEIGHT, {
-                               getter:function() {
-                                       return this.getStyle(HEIGHT);
-                               },
-                               method: this._heightChange
-                   });
-                       
-                       
-       
-                       /**
-                        * @attribute ariaTextTemplate 
-                        * @description Text to be voiced by screen readers.
-                        *     The text is processed by <a href="YAHOO.lang.html#method_substitute">YAHOO.lang.substitute</a>.  
-                        *     It can use the placeholders {value}, {minValue} and {maxValue}
-                        * @default "{value}"
-                        * @type String
-                        */                             
-                       this.setAttributeConfig(ARIA_TEXT_TEMPLATE, {
-                               value:'{value}'
-                       });
-                       
-                       /**
-                        * @attribute value
-                        * @description The value for the bar.  
-                        *     Valid values are in between the minValue and maxValue attributes.
-                        * @default 0
-                        * @type Number
-                        */                     
-                       this.setAttributeConfig(VALUE, {
-                               value: 0,
-                               validator: function(value) {
-                                       return Lang.isNumber(value) && value >= this.get(MIN_VALUE) && value <= this.get(MAX_VALUE);
-                               },
-                               method: this._valueChange
-                   });
-                       
-                       /**
-                        * @attribute anim
-                        * @description it accepts either a boolean (recommended) or an instance of <a href="YAHOO.util.Anim.html">YAHOO.util.Anim</a>.
-                        *   If a boolean, it will enable/disable animation creating its own instance of the animation utility.  
-                        *   If given an instance of <a href="YAHOO.util.Anim.html">YAHOO.util.Anim</a> it will use that instance.
-                        *   The <a href="YAHOO.util.Anim.html">animation</a> utility needs to be loaded.
-                        *   When read, it returns the instance of the animation utility in use or null if none.  
-                        *   It can be used to set the animation parameters such as easing methods or duration.
-                        * @default null
-                        * @type {boolean} or {instance of YAHOO.util.Anim}
-                        */                                             
-                       this.setAttributeConfig(ANIM, {
-                               validator: function(value) {
-                                       return !!YAHOO.util.Anim;
-                               },
-                               setter: this._animSetter
-                       });
-                       
-                       
-               },
-               /** 
-                *  Renders the ProgressBar into the given container.  
-                *  If the container has other content, the ProgressBar will be appended to it.
-                *  If the second argument is provided, the ProgressBar will be inserted before the given child.
-                * The method is chainable since it returns a reference to this instance.
-                * @method render
-                * @param el {HTML Element}  HTML element that will contain the ProgressBar
-                * @param before {HTML Element}  (optional) If present, the ProgressBar will be inserted before this element.
-                * @return {YAHOO.widget.ProgressBar}
-                * @chainable
-                */
-               render: function(parent,before) {
-
-                       if (this._rendered) { return; }
-                       this._rendered = true;
-                       
-                       var direction = this.get(DIRECTION);
-
-                       // If the developer set a className attribute on initialization, 
-                       // Element would have wiped out my own classNames
-                       // So I need to insist on them, plus add the one for direction.
-                       this.addClass(CLASS_PROGBAR);
-                       this.addClass(CLASS_PROGBAR + '-' + direction);
-
-                       var container = this.get('element');
-                       container.tabIndex = 0;
-                       container.setAttribute('role','progressbar');
-                       container.setAttribute('aria-valuemin',this.get(MIN_VALUE));
-                       container.setAttribute('aria-valuemax',this.get(MAX_VALUE));
-
-                       this.appendTo(parent,before);
-                       
-                                       
-                       // I need to use the non-animated bar resizing function for initial redraw
-                       this._barSizeFunction = this._barSizeFunctions[0][direction];
-                       this.redraw();
-                       this._previousValue = this.get(VALUE);
-                       this._fixEdges();
-                       // I can now set the correct bar resizer
-                       if (this.get(ANIM)) {
-                               this._barSizeFunction = this._barSizeFunctions[1][direction];
-                       }
-
-                       this.on('minValueChange',this.redraw);
-                       this.on('maxValueChange',this.redraw);
-
-                       return this;
-               },
-
-               /** 
-                * Recalculates the bar size and position and redraws it
-                * @method redraw
-                * @return  void
-                */
-               redraw: function () {
-                       this._recalculateConstants();
-                       this._valueChange(this.get(VALUE));
-               },
-                       
-               /** 
-                * Destroys the ProgressBar, related objects and unsubscribes from all events
-                * @method destroy
-                * @return  void
-                */
-               destroy: function() {
-                       this.set(ANIM,false);
-                       this.unsubscribeAll();
-                       var el = this.get('element');
-                       if (el.parentNode) { el.parentNode.removeChild(el); }
-               },
-               /**
-                * The previous value setting for the bar.  Used mostly as information to event listeners
-                * @property _previousValue
-                * @type Number
-                * @private
-                * @default  0
-                */
-               _previousValue:0,
-               /**
-                * The actual space (in pixels) available for the bar within the mask (excludes margins)
-                * @property _barSpace
-                * @type Number
-                * @private
-                * @default  100
-                */
-               _barSpace:100,
-               /**
-                * The factor to convert the actual value of the bar into pixels
-                * @property _barSpace
-                * @type Number
-                * @private
-                * @default  1
-                */
-               _barFactor:1,
-               
-               /**
-                * A flag to signal that rendering has already happened
-                * @property _rendered
-                * @type boolean
-                * @private
-                * @default  false
-                */
-               _rendered:false,
-               
-               /**
-                * Function to be used to calculate bar size.  
-                * It is picked from <a href="#property_barSizeFunctions">_barSizeFunctions</a>
-                * depending on direction and whether animation is active.
-                * @property _barSizeFunction
-                * @type {function}
-                * @default null
-                * @private
-                */             
-               _barSizeFunction: null,
-               
-               /** 
-                * Method called when the height attribute is changed
-                * @method _heightChange
-                * @param {int or string} value New height, in pixels if int or string including units
-                * @return void
-                * @private
-                */
-               _heightChange: function(value) {
-                       if (Lang.isNumber(value)) {
-                               value += 'px';
-                       }
-                       this.setStyle(HEIGHT,value);
-                       this._fixEdges();
-                       this.redraw();
-               },
-
-               /** 
-                * Method called when the height attribute is changed
-                * @method _widthChange
-                * @param {int or string} value New width, in pixels if int or string including units
-                * @return void
-                * @private
-                */
-               _widthChange: function(value) {
-                       if (Lang.isNumber(value)) {
-                               value += 'px';
-                       }
-                       this.setStyle(WIDTH,value);
-                       this._fixEdges();
-                       this.redraw();
-               },
-               
-               /** 
-                * Due to rounding differences, some browsers fail to cover the whole area 
-                * with the mask quadrants when the width or height is odd.  This method
-                * stretches the lower and/or right quadrants to make the difference.
-                * @method _fixEdges
-                * @return void
-                * @private
-                */
-               _fixEdges:function() {
-                       if (!this._rendered || YAHOO.env.ua.ie || YAHOO.env.ua.gecko ) { return; }
-                       var maskEl = this.get(MASK_EL),
-                               tlEl = Dom.getElementsByClassName(CLASS_TL,undefined,maskEl)[0],
-                               trEl = Dom.getElementsByClassName(CLASS_TR,undefined,maskEl)[0],
-                               blEl = Dom.getElementsByClassName(CLASS_BL,undefined,maskEl)[0],
-                               brEl = Dom.getElementsByClassName(CLASS_BR,undefined,maskEl)[0],
-                               newSize = (parseInt(Dom.getStyle(maskEl,HEIGHT),10) -
-                               parseInt(Dom.getStyle(tlEl,HEIGHT),10)) + 'px';
-                               
-                       Dom.setStyle(blEl,HEIGHT,newSize);
-                       Dom.setStyle(brEl,HEIGHT,newSize);
-                       newSize = (parseInt(Dom.getStyle(maskEl,WIDTH),10) -
-                               parseInt(Dom.getStyle(tlEl,WIDTH),10)) + 'px';
-                       Dom.setStyle(trEl,WIDTH,newSize);
-                       Dom.setStyle(brEl,WIDTH,newSize);
-               },
-                                       
-                               
-               
-               /** 
-                * Calculates some auxiliary values to make the rendering faster
-                * @method _recalculateConstants
-                * @return  void
-                * @private
-                */             
-               _recalculateConstants: function() {
-                       var barEl = this.get(BAR_EL);
-
-                       switch (this.get(DIRECTION)) {
-                               case DIRECTION_LTR:
-                               case DIRECTION_RTL:
-                                       this._barSpace = parseInt(this.get(WIDTH),10) - 
-                                               (parseInt(Dom.getStyle(barEl,'marginLeft'),10) || 0) -
-                                               (parseInt(Dom.getStyle(barEl,'marginRight'),10) || 0);
-                                       break;
-                               case DIRECTION_TTB:
-                               case DIRECTION_BTT:
-                                       this._barSpace = parseInt(this.get(HEIGHT),10) -
-                                               (parseInt(Dom.getStyle(barEl,'marginTop'),10) || 0)-
-                                               (parseInt(Dom.getStyle(barEl,'marginBottom'),10) || 0); 
-                                       break;
-                       }
-                       this._barFactor = this._barSpace / (this.get(MAX_VALUE) - (this.get(MIN_VALUE) || 0))  || 1;
-               },
-               
-               /** 
-                * Called in response to a change in the <a href="#config_anim">anim</a> attribute.
-                * It creates and sets up or destroys the instance of the animation utility that will move the bar
-                * @method _animSetter
-                * @return  void
-                * @private
-                */             
-               _animSetter: function (value) {
-                       var anim, barEl = this.get(BAR_EL);
-                       if (value) {
-                               if (value instanceof YAHOO.util.Anim) {
-                                       anim = value;
-                               } else {
-                                       anim = new YAHOO.util.Anim(barEl);
-                               }
-                               anim.onTween.subscribe(this._animOnTween,this,true);
-                               anim.onComplete.subscribe(this._animComplete,this,true);
-                               
-                               // Temporary solution until http://yuilibrary.com/projects/yui2/ticket/2528222 gets solved:
-                               var oldSetAttribute = anim.setAttribute,
-                                       pb = this;
-                               switch(this.get(DIRECTION)) {
-                                       case DIRECTION_BTT:
-                                               anim.setAttribute = function(attr , val , unit) {
-                                                       val = Math.round(val);
-                                                       oldSetAttribute.call(this,attr,val,unit);
-                                                       Dom.setStyle(barEl,'top',(pb._barSpace - val) + 'px');
-                                               };
-                                               break;
-                                       case DIRECTION_RTL:
-                                               anim.setAttribute = function(attr , val , unit) {
-                                                       val = Math.round(val);
-                                                       oldSetAttribute.call(this,attr,val,unit);
-                                                       Dom.setStyle(barEl,'left',(pb._barSpace - val) + 'px');
-                                               };
-                                               break;
-                               }
-                               // up to here
-
-                       } else {
-                               anim = this.get(ANIM);
-                               if (anim) {
-                                       anim.onTween.unsubscribeAll();
-                                       anim.onComplete.unsubscribeAll();
-                               }
-                               anim = null;
-                       }
-                       this._barSizeFunction = this._barSizeFunctions[anim?1:0][this.get(DIRECTION)];
-                       return anim;
-               },
-               
-               _animComplete: function() {
-                       var value = this.get(VALUE);
-                       this._previousValue = value;
-                       this.fireEvent(PROGRESS,value);
-                       this.fireEvent(COMPLETE, value);
-                       Dom.removeClass(this.get(BAR_EL),CLASS_ANIM);
-               },
-               _animOnTween:function (name,oArgs) {
-                       var value = Math.floor(this._tweenFactor * oArgs[0].currentFrame + this._previousValue);
-                       this.fireEvent(PROGRESS,value);
-               },
-               
-               /** 
-                * Called in response to a change in the <a href="#config_value">value</a> attribute.
-                * Moves the bar to reflect the new value
-                * @method _valueChange
-                * @return  void
-                * @private
-                */             
-               _valueChange: function (value) {
-                       var anim = this.get(ANIM),
-                               pixelValue = Math.floor((value - this.get(MIN_VALUE)) * this._barFactor),
-                               barEl = this.get(BAR_EL);
-                       
-                       this._setAriaText(value);
-                       if (this._rendered) {
-                               if (anim) {
-                                       anim.stop();
-                                       if (anim.isAnimated()) { anim._onComplete.fire(); } // see: http://yuilibrary.com/projects/yui2/ticket/2528217
-                               }
-                               this.fireEvent(START,this._previousValue);
-                               this._barSizeFunction(value, pixelValue, barEl, anim);
-                       }
-               },
-
-               /** 
-                * Utility method to set the ARIA value attributes
-                * @method _setAriaText
-                * @return  void
-                * @private
-                */
-                _setAriaText: function(value) {
-
-                       var container = this.get('element'),
-                               text = Lang.substitute(this.get(ARIA_TEXT_TEMPLATE),{
-                                       value:value,
-                                       minValue:this.get(MIN_VALUE),
-                                       maxValue:this.get(MAX_VALUE)
-                               });
-                       container.setAttribute('aria-valuenow',value);
-                       container.setAttribute('aria-valuetext',text);
-               }
-       });
-       /**
-        * Collection of functions used by to calculate the size of the bar.
-        * One of this will be used depending on direction and whether animation is active.
-        * @property _barSizeFunctions
-        * @type {collection of functions}
-        * @private
-        */
-       var b = [{},{}];
-       Prog.prototype._barSizeFunctions = b;
-       
-       b[0][DIRECTION_LTR] = function(value, pixelValue, barEl, anim) {
-               Dom.setStyle(barEl,WIDTH,  pixelValue + 'px');
-               this.fireEvent(PROGRESS,value);
-               this.fireEvent(COMPLETE,value);
-       };
-       b[0][DIRECTION_RTL] = function(value, pixelValue, barEl, anim) {
-               Dom.setStyle(barEl,WIDTH,  pixelValue + 'px');
-               Dom.setStyle(barEl,'left',(this._barSpace - pixelValue) + 'px');
-               this.fireEvent(PROGRESS,value);
-               this.fireEvent(COMPLETE,value);
-       };
-       b[0][DIRECTION_TTB] = function(value, pixelValue, barEl, anim) {
-               Dom.setStyle(barEl,HEIGHT,  pixelValue + 'px');
-               this.fireEvent(PROGRESS,value);
-               this.fireEvent(COMPLETE,value);
-       };
-       b[0][DIRECTION_BTT] = function(value, pixelValue, barEl, anim) {
-               Dom.setStyle(barEl,HEIGHT,  pixelValue + 'px');
-               Dom.setStyle(barEl,'top',  (this._barSpace - pixelValue) + 'px');
-               this.fireEvent(PROGRESS,value);
-               this.fireEvent(COMPLETE,value);
-       };
-       b[1][DIRECTION_LTR] = function(value, pixelValue, barEl, anim) {
-               Dom.addClass(barEl,CLASS_ANIM);
-               this._tweenFactor = (value - this._previousValue) / anim.totalFrames  / anim.duration;
-               anim.attributes = {width:{ to: pixelValue }}; 
-               anim.animate();
-       };
-       b[1][DIRECTION_RTL] =  b[1][DIRECTION_LTR];
-       b[1][DIRECTION_TTB] =  function(value, pixelValue, barEl, anim) {
-               Dom.addClass(barEl,CLASS_ANIM);
-               this._tweenFactor = (value - this._previousValue) / anim.totalFrames  / anim.duration;
-               anim.attributes = {height:{to: pixelValue}};
-               anim.animate();
-       };
-       b[1][DIRECTION_BTT] =  b[1][DIRECTION_TTB];
-                               
-})();
-
-YAHOO.register("progressbar", YAHOO.widget.ProgressBar, {version: "2.8.0r4", build: "2449"});
diff --git a/koha-tmpl/intranet-tmpl/prog/en/lib/yui/reset-fonts-grids/reset-fonts-grids.css b/koha-tmpl/intranet-tmpl/prog/en/lib/yui/reset-fonts-grids/reset-fonts-grids.css
deleted file mode 100644 (file)
index 55bff7b..0000000
+++ /dev/null
@@ -1,7 +0,0 @@
-/*
-Copyright (c) 2009, Yahoo! Inc. All rights reserved.
-Code licensed under the BSD License:
-http://developer.yahoo.net/yui/license.txt
-version: 2.8.0r4
-*/
-html{color:#000;background:#FFF;}body,div,dl,dt,dd,ul,ol,li,h1,h2,h3,h4,h5,h6,pre,code,form,fieldset,legend,input,button,textarea,p,blockquote,th,td{margin:0;padding:0;}table{border-collapse:collapse;border-spacing:0;}fieldset,img{border:0;}address,caption,cite,code,dfn,em,strong,th,var,optgroup{font-style:inherit;font-weight:inherit;}del,ins{text-decoration:none;}li{list-style:none;}caption,th{text-align:left;}h1,h2,h3,h4,h5,h6{font-size:100%;font-weight:normal;}q:before,q:after{content:'';}abbr,acronym{border:0;font-variant:normal;}sup{vertical-align:baseline;}sub{vertical-align:baseline;}legend{color:#000;}input,button,textarea,select,optgroup,option{font-family:inherit;font-size:inherit;font-style:inherit;font-weight:inherit;}input,button,textarea,select{*font-size:100%;}body{font:13px/1.231 arial,helvetica,clean,sans-serif;*font-size:small;*font:x-small;}select,input,button,textarea,button{font:99% arial,helvetica,clean,sans-serif;}table{font-size:inherit;font:100%;}pre,code,kbd,samp,tt{font-family:monospace;*font-size:108%;line-height:100%;}body{text-align:center;}#doc,#doc2,#doc3,#doc4,.yui-t1,.yui-t2,.yui-t3,.yui-t4,.yui-t5,.yui-t6,.yui-t7{margin:auto;text-align:left;width:57.69em;*width:56.25em;}#doc2{width:73.076em;*width:71.25em;}#doc3{margin:auto 10px;width:auto;}#doc4{width:74.923em;*width:73.05em;}.yui-b{position:relative;}.yui-b{_position:static;}#yui-main .yui-b{position:static;}#yui-main,.yui-g .yui-u .yui-g{width:100%;}.yui-t1 #yui-main,.yui-t2 #yui-main,.yui-t3 #yui-main{float:right;margin-left:-25em;}.yui-t4 #yui-main,.yui-t5 #yui-main,.yui-t6 #yui-main{float:left;margin-right:-25em;}.yui-t1 .yui-b{float:left;width:12.30769em;*width:12.00em;}.yui-t1 #yui-main .yui-b{margin-left:13.30769em;*margin-left:13.05em;}.yui-t2 .yui-b{float:left;width:13.8461em;*width:13.50em;}.yui-t2 #yui-main .yui-b{margin-left:14.8461em;*margin-left:14.55em;}.yui-t3 .yui-b{float:left;width:23.0769em;*width:22.50em;}.yui-t3 #yui-main .yui-b{margin-left:24.0769em;*margin-left:23.62em;}.yui-t4 .yui-b{float:right;width:13.8456em;*width:13.50em;}.yui-t4 #yui-main .yui-b{margin-right:14.8456em;*margin-right:14.55em;}.yui-t5 .yui-b{float:right;width:18.4615em;*width:18.00em;}.yui-t5 #yui-main .yui-b{margin-right:19.4615em;*margin-right:19.125em;}.yui-t6 .yui-b{float:right;width:23.0769em;*width:22.50em;}.yui-t6 #yui-main .yui-b{margin-right:24.0769em;*margin-right:23.62em;}.yui-t7 #yui-main .yui-b{display:block;margin:0 0 1em 0;}#yui-main .yui-b{float:none;width:auto;}.yui-gb .yui-u,.yui-g .yui-gb .yui-u,.yui-gb .yui-g,.yui-gb .yui-gb,.yui-gb .yui-gc,.yui-gb .yui-gd,.yui-gb .yui-ge,.yui-gb .yui-gf,.yui-gc .yui-u,.yui-gc .yui-g,.yui-gd .yui-u{float:left;}.yui-g .yui-u,.yui-g .yui-g,.yui-g .yui-gb,.yui-g .yui-gc,.yui-g .yui-gd,.yui-g .yui-ge,.yui-g .yui-gf,.yui-gc .yui-u,.yui-gd .yui-g,.yui-g .yui-gc .yui-u,.yui-ge .yui-u,.yui-ge .yui-g,.yui-gf .yui-g,.yui-gf .yui-u{float:right;}.yui-g div.first,.yui-gb div.first,.yui-gc div.first,.yui-gd div.first,.yui-ge div.first,.yui-gf div.first,.yui-g .yui-gc div.first,.yui-g .yui-ge div.first,.yui-gc div.first div.first{float:left;}.yui-g .yui-u,.yui-g .yui-g,.yui-g .yui-gb,.yui-g .yui-gc,.yui-g .yui-gd,.yui-g .yui-ge,.yui-g .yui-gf{width:49.1%;}.yui-gb .yui-u,.yui-g .yui-gb .yui-u,.yui-gb .yui-g,.yui-gb .yui-gb,.yui-gb .yui-gc,.yui-gb .yui-gd,.yui-gb .yui-ge,.yui-gb .yui-gf,.yui-gc .yui-u,.yui-gc .yui-g,.yui-gd .yui-u{width:32%;margin-left:1.99%;}.yui-gb .yui-u{*margin-left:1.9%;*width:31.9%;}.yui-gc div.first,.yui-gd .yui-u{width:66%;}.yui-gd div.first{width:32%;}.yui-ge div.first,.yui-gf .yui-u{width:74.2%;}.yui-ge .yui-u,.yui-gf div.first{width:24%;}.yui-g .yui-gb div.first,.yui-gb div.first,.yui-gc div.first,.yui-gd div.first{margin-left:0;}.yui-g .yui-g .yui-u,.yui-gb .yui-g .yui-u,.yui-gc .yui-g .yui-u,.yui-gd .yui-g .yui-u,.yui-ge .yui-g .yui-u,.yui-gf .yui-g .yui-u{width:49%;*width:48.1%;*margin-left:0;}.yui-g .yui-g .yui-u{width:48.1%;}.yui-g .yui-gb div.first,.yui-gb .yui-gb div.first{*margin-right:0;*width:32%;_width:31.7%;}.yui-g .yui-gc div.first,.yui-gd .yui-g{width:66%;}.yui-gb .yui-g div.first{*margin-right:4%;_margin-right:1.3%;}.yui-gb .yui-gc div.first,.yui-gb .yui-gd div.first{*margin-right:0;}.yui-gb .yui-gb .yui-u,.yui-gb .yui-gc .yui-u{*margin-left:1.8%;_margin-left:4%;}.yui-g .yui-gb .yui-u{_margin-left:1.0%;}.yui-gb .yui-gd .yui-u{*width:66%;_width:61.2%;}.yui-gb .yui-gd div.first{*width:31%;_width:29.5%;}.yui-g .yui-gc .yui-u,.yui-gb .yui-gc .yui-u{width:32%;_float:right;margin-right:0;_margin-left:0;}.yui-gb .yui-gc div.first{width:66%;*float:left;*margin-left:0;}.yui-gb .yui-ge .yui-u,.yui-gb .yui-gf .yui-u{margin:0;}.yui-gb .yui-gb .yui-u{_margin-left:.7%;}.yui-gb .yui-g div.first,.yui-gb .yui-gb div.first{*margin-left:0;}.yui-gc .yui-g .yui-u,.yui-gd .yui-g .yui-u{*width:48.1%;*margin-left:0;}.yui-gb .yui-gd div.first{width:32%;}.yui-g .yui-gd div.first{_width:29.9%;}.yui-ge .yui-g{width:24%;}.yui-gf .yui-g{width:74.2%;}.yui-gb .yui-ge div.yui-u,.yui-gb .yui-gf div.yui-u{float:right;}.yui-gb .yui-ge div.first,.yui-gb .yui-gf div.first{float:left;}.yui-gb .yui-ge .yui-u,.yui-gb .yui-gf div.first{*width:24%;_width:20%;}.yui-gb .yui-ge div.first,.yui-gb .yui-gf .yui-u{*width:73.5%;_width:65.5%;}.yui-ge div.first .yui-gd .yui-u{width:65%;}.yui-ge div.first .yui-gd div.first{width:32%;}#hd:after,#bd:after,#ft:after,.yui-g:after,.yui-gb:after,.yui-gc:after,.yui-gd:after,.yui-ge:after,.yui-gf:after{content:".";display:block;height:0;clear:both;visibility:hidden;}#hd,#bd,#ft,.yui-g,.yui-gb,.yui-gc,.yui-gd,.yui-ge,.yui-gf{zoom:1;}
\ No newline at end of file
diff --git a/koha-tmpl/intranet-tmpl/prog/en/lib/yui/reset-fonts/reset-fonts.css b/koha-tmpl/intranet-tmpl/prog/en/lib/yui/reset-fonts/reset-fonts.css
deleted file mode 100644 (file)
index fba6473..0000000
+++ /dev/null
@@ -1,7 +0,0 @@
-/*
-Copyright (c) 2009, Yahoo! Inc. All rights reserved.
-Code licensed under the BSD License:
-http://developer.yahoo.net/yui/license.txt
-version: 2.8.0r4
-*/
-html{color:#000;background:#FFF;}body,div,dl,dt,dd,ul,ol,li,h1,h2,h3,h4,h5,h6,pre,code,form,fieldset,legend,input,button,textarea,p,blockquote,th,td{margin:0;padding:0;}table{border-collapse:collapse;border-spacing:0;}fieldset,img{border:0;}address,caption,cite,code,dfn,em,strong,th,var,optgroup{font-style:inherit;font-weight:inherit;}del,ins{text-decoration:none;}li{list-style:none;}caption,th{text-align:left;}h1,h2,h3,h4,h5,h6{font-size:100%;font-weight:normal;}q:before,q:after{content:'';}abbr,acronym{border:0;font-variant:normal;}sup{vertical-align:baseline;}sub{vertical-align:baseline;}legend{color:#000;}input,button,textarea,select,optgroup,option{font-family:inherit;font-size:inherit;font-style:inherit;font-weight:inherit;}input,button,textarea,select{*font-size:100%;}body{font:13px/1.231 arial,helvetica,clean,sans-serif;*font-size:small;*font:x-small;}select,input,button,textarea,button{font:99% arial,helvetica,clean,sans-serif;}table{font-size:inherit;font:100%;}pre,code,kbd,samp,tt{font-family:monospace;*font-size:108%;line-height:100%;}
\ No newline at end of file
diff --git a/koha-tmpl/intranet-tmpl/prog/en/lib/yui/reset/reset-min.css b/koha-tmpl/intranet-tmpl/prog/en/lib/yui/reset/reset-min.css
deleted file mode 100644 (file)
index 5a4ce28..0000000
+++ /dev/null
@@ -1,7 +0,0 @@
-/*
-Copyright (c) 2009, Yahoo! Inc. All rights reserved.
-Code licensed under the BSD License:
-http://developer.yahoo.net/yui/license.txt
-version: 2.8.0r4
-*/
-html{color:#000;background:#FFF;}body,div,dl,dt,dd,ul,ol,li,h1,h2,h3,h4,h5,h6,pre,code,form,fieldset,legend,input,button,textarea,p,blockquote,th,td{margin:0;padding:0;}table{border-collapse:collapse;border-spacing:0;}fieldset,img{border:0;}address,caption,cite,code,dfn,em,strong,th,var,optgroup{font-style:inherit;font-weight:inherit;}del,ins{text-decoration:none;}li{list-style:none;}caption,th{text-align:left;}h1,h2,h3,h4,h5,h6{font-size:100%;font-weight:normal;}q:before,q:after{content:'';}abbr,acronym{border:0;font-variant:normal;}sup{vertical-align:baseline;}sub{vertical-align:baseline;}legend{color:#000;}input,button,textarea,select,optgroup,option{font-family:inherit;font-size:inherit;font-style:inherit;font-weight:inherit;}input,button,textarea,select{*font-size:100%;}
\ No newline at end of file
diff --git a/koha-tmpl/intranet-tmpl/prog/en/lib/yui/reset/reset.css b/koha-tmpl/intranet-tmpl/prog/en/lib/yui/reset/reset.css
deleted file mode 100644 (file)
index 6956dae..0000000
+++ /dev/null
@@ -1,142 +0,0 @@
-/*
-Copyright (c) 2009, Yahoo! Inc. All rights reserved.
-Code licensed under the BSD License:
-http://developer.yahoo.net/yui/license.txt
-version: 2.8.0r4
-*/
-/**
- * YUI Reset
- * @module reset
- * @namespace
- * @requires 
- */
-html {
-       color: #000;
-       background: #FFF;
-}
-
-body,
-div,
-dl,
-dt,
-dd,
-ul,
-ol,
-li,
-h1,
-h2,
-h3,
-h4,
-h5,
-h6,
-pre,
-code,
-form,
-fieldset,
-legend,
-input,
-button,
-textarea,
-p,
-blockquote,
-th,
-td {
-       margin: 0;
-       padding: 0;
-}
-
-table {
-       border-collapse: collapse;
-       border-spacing: 0;
-}
-
-fieldset,
-img {
-       border: 0;
-}
-
-address,
-caption,
-cite,
-code,
-dfn,
-em,
-strong,
-th,
-var,
-optgroup {
-       font-style: inherit;
-       font-weight: inherit;
-}
-
-del,
-ins {
-       text-decoration: none;
-}
-
-li {
-       list-style: none;
-}
-
-caption,
-th {
-       text-align: left;
-}
-
-h1,
-h2,
-h3,
-h4,
-h5,
-h6 {
-       font-size: 100%;
-       font-weight: normal;
-}
-
-q:before,
-q:after {
-       content: '';
-}
-
-abbr,
-acronym {
-       border: 0;
-       font-variant: normal;
-}
-
-sup {
-       vertical-align: baseline;
-}
-
-sub {
-       vertical-align: baseline;
-}
-
-/*because legend doesn't inherit in IE */
-legend {
-       color: #000;
-}
-
-input,
-button,
-textarea,
-select,
-optgroup,
-option {
-       font-family: inherit;
-       font-size: inherit;
-       font-style: inherit;
-       font-weight: inherit;
-}
-
-/*@purpose To enable resizing for IE */
-/*@branch For IE6-Win, IE7-Win */
-input,
-button,
-textarea,
-select {
-       *font-size: 100%;
-}
-
-
-
diff --git a/koha-tmpl/intranet-tmpl/prog/en/lib/yui/resize/assets/resize-core.css b/koha-tmpl/intranet-tmpl/prog/en/lib/yui/resize/assets/resize-core.css
deleted file mode 100644 (file)
index da63c6a..0000000
+++ /dev/null
@@ -1,173 +0,0 @@
-/*
-Copyright (c) 2009, Yahoo! Inc. All rights reserved.
-Code licensed under the BSD License:
-http://developer.yahoo.net/yui/license.txt
-version: 2.8.0r4
-*/
-.yui-resize {
-    position: relative;
-    zoom: 1;
-    z-index: 0;
-}
-.yui-resize-wrap {
-    zoom: 1;
-}
-
-.yui-draggable {
-    cursor: move;
-}
-
-.yui-resize .yui-resize-handle {
-    position: absolute;
-    z-index: 1;
-    font-size: 0;
-    margin: 0;
-    padding: 0;
-    zoom: 1;
-    height: 1px;
-    width: 1px;
-}
-.yui-resize .yui-resize-handle-br {
-    height: 5px;
-    width: 5px;
-    bottom: 0;
-    right: 0;
-    cursor: se-resize;
-    z-index: 2;
-    zoom: 1;
-}
-
-.yui-resize .yui-resize-handle-bl {
-    height: 5px;
-    width: 5px;
-    bottom: 0;
-    left: 0;
-    cursor: sw-resize;
-    z-index: 2;
-    zoom: 1;
-}
-
-.yui-resize .yui-resize-handle-tl {
-    height: 5px;
-    width: 5px;
-    top: 0;
-    left: 0;
-    cursor: nw-resize;
-    z-index: 2;
-    zoom: 1;
-}
-
-.yui-resize .yui-resize-handle-tr {
-    height: 5px;
-    width: 5px;
-    top: 0;
-    right: 0;
-    cursor: ne-resize;
-    z-index: 2;
-    zoom: 1;
-}
-
-.yui-resize .yui-resize-handle-r {
-    width: 5px;
-    height: 100%;
-    top: 0;
-    right: 0;
-    cursor: e-resize;
-    zoom: 1;
-}
-
-.yui-resize .yui-resize-handle-l {
-    height: 100%;
-    width: 5px;
-    top: 0;
-    left: 0;
-    cursor: w-resize;
-    zoom: 1;
-}
-
-.yui-resize .yui-resize-handle-b {
-    width: 100%;
-    height: 5px;
-    bottom: 0;
-    right: 0;
-    cursor: s-resize;
-    zoom: 1;
-}
-.yui-resize .yui-resize-handle-t {
-    width: 100%;
-    height: 5px;
-    top: 0;
-    right: 0;
-    cursor: n-resize;
-    zoom: 1;
-}
-.yui-resize-proxy {
-    position: absolute;
-    border: 1px dashed #000;
-    visibility: hidden;
-    z-index: 1000;
-}
-
-.yui-resize-hover .yui-resize-handle,
-.yui-resize-hidden .yui-resize-handle {
-    opacity: 0;
-    filter: alpha(opacity=0);
-}
-.yui-resize-ghost {
-    opacity: .5;
-    filter: alpha(opacity=50);
-}
-
-.yui-resize-knob .yui-resize-handle {
-    height: 6px;
-    width: 6px;
-}
-.yui-resize-knob .yui-resize-handle-tr {
-    right: -3px;
-    top: -3px;
-}
-.yui-resize-knob .yui-resize-handle-tl {
-    left: -3px;
-    top: -3px;
-}
-.yui-resize-knob .yui-resize-handle-bl {
-    left: -3px;
-    bottom: -3px;
-}
-.yui-resize-knob .yui-resize-handle-br {
-    right: -3px;
-    bottom: -3px;
-}
-.yui-resize-knob .yui-resize-handle-t {
-    left: 45%;
-    top: -3px;
-}
-.yui-resize-knob .yui-resize-handle-r {
-    right: -3px;
-    top: 45%;
-}
-.yui-resize-knob .yui-resize-handle-l {
-    left: -3px;
-    top: 45%;
-}
-.yui-resize-knob .yui-resize-handle-b {
-    left: 45%;
-    bottom: -3px;
-}
-
-.yui-resize-status {
-    position: absolute;
-    top: -999px;
-    left: -999px;
-    padding: 2px;
-    font-size: 80%;
-    display: none;
-    zoom: 1; /* IE hasLayout */
-    z-index: 9999;
-}
-.yui-resize-status strong, .yui-resize-status em {
-    font-weight: normal;
-    font-style: normal;
-    padding: 1px;
-    zoom: 1;
-}
diff --git a/koha-tmpl/intranet-tmpl/prog/en/lib/yui/resize/assets/skins/sam/layout_sprite.png b/koha-tmpl/intranet-tmpl/prog/en/lib/yui/resize/assets/skins/sam/layout_sprite.png
deleted file mode 100644 (file)
index d6fce3c..0000000
Binary files a/koha-tmpl/intranet-tmpl/prog/en/lib/yui/resize/assets/skins/sam/layout_sprite.png and /dev/null differ
diff --git a/koha-tmpl/intranet-tmpl/prog/en/lib/yui/resize/assets/skins/sam/resize-skin.css b/koha-tmpl/intranet-tmpl/prog/en/lib/yui/resize/assets/skins/sam/resize-skin.css
deleted file mode 100644 (file)
index 79f2509..0000000
+++ /dev/null
@@ -1,142 +0,0 @@
-/*
-Copyright (c) 2009, Yahoo! Inc. All rights reserved.
-Code licensed under the BSD License:
-http://developer.yahoo.net/yui/license.txt
-version: 2.8.0r4
-*/
-/* Give the handle a background color */
-.yui-skin-sam .yui-resize .yui-resize-handle {
-    background-color: #F2F2F2;
-    zoom: 1;
-}
-/* Give the active handle a different color */
-.yui-skin-sam .yui-resize .yui-resize-handle-active {
-    background-color: #7D98B8;
-    zoom: 1;
-}
-.yui-skin-sam .yui-resize .yui-resize-handle-l,
-.yui-skin-sam .yui-resize .yui-resize-handle-r,
-.yui-skin-sam .yui-resize .yui-resize-handle-l-active,
-.yui-skin-sam .yui-resize .yui-resize-handle-r-active {
-    height: 100%;
-    zoom: 1;
-}
-/* Give a border to the 8-way knob style handles */
-.yui-skin-sam .yui-resize-knob .yui-resize-handle {
-    border: 1px solid #808080;
-}
-/* Show the active handle when hovered */
-.yui-skin-sam .yui-resize-hover .yui-resize-handle-active {
-    opacity: 1;
-    filter: alpha(opacity=100);
-}
-
-/* Style the resize proxy */
-.yui-skin-sam .yui-resize-proxy {
-    border: 1px dashed #426FD9;
-}
-
-/* Style the status box similar to a tooltip */
-.yui-skin-sam .yui-resize-status {
-    border: 1px solid #A6982B;
-    border-top: 1px solid #D4C237;
-    background-color: #FFEE69;
-    color: #000;
-}
-
-
-/* Style the content of the status box */
-.yui-skin-sam .yui-resize-status strong, .yui-skin-sam .yui-resize-status em {
-    float: left;
-    display: block;
-    clear: both;
-    padding: 1px;
-    text-align: center;
-}
-
-/* Setup the gripper */
-.yui-skin-sam .yui-resize .yui-resize-handle-inner-r,
-.yui-skin-sam .yui-resize .yui-resize-handle-inner-l {
-    background: transparent url( layout_sprite.png) no-repeat 0 -5px;
-    height: 16px;
-    width: 5px;
-    position: absolute;
-    top: 45%;
-}
-
-/* Setup the gripper */
-.yui-skin-sam .yui-resize .yui-resize-handle-inner-t,
-.yui-skin-sam .yui-resize .yui-resize-handle-inner-b {
-    background: transparent url(layout_sprite.png) no-repeat -20px 0;
-    height: 5px;
-    width: 16px;
-    position: absolute;
-    left: 50%;
-}
-
-/* Bottom Right Gripper */
-.yui-skin-sam .yui-resize .yui-resize-handle-br {
-    background-image: url( layout_sprite.png );
-    background-repeat: no-repeat;
-    background-position: -22px -62px;
-}
-
-/* Top Right Gripper */
-.yui-skin-sam .yui-resize .yui-resize-handle-tr {
-    background-image: url( layout_sprite.png );
-    background-repeat: no-repeat;
-    background-position: -22px -42px;
-}
-
-/* Top Left Gripper */
-.yui-skin-sam .yui-resize .yui-resize-handle-tl {
-    background-image: url( layout_sprite.png );
-    background-repeat: no-repeat;
-    background-position: -22px -82px;
-}
-
-/* Bottom Left Gripper */
-.yui-skin-sam .yui-resize .yui-resize-handle-bl {
-    background-image: url( layout_sprite.png );
-    background-repeat: no-repeat;
-    background-position: -22px -23px;
-}
-
-/* Remove the background image from the 8-way knobs */
-.yui-skin-sam .yui-resize-knob .yui-resize-handle-t,
-.yui-skin-sam .yui-resize-knob .yui-resize-handle-r,
-.yui-skin-sam .yui-resize-knob .yui-resize-handle-b,
-.yui-skin-sam .yui-resize-knob .yui-resize-handle-l,
-.yui-skin-sam .yui-resize-knob .yui-resize-handle-tl,
-.yui-skin-sam .yui-resize-knob .yui-resize-handle-tr,
-.yui-skin-sam .yui-resize-knob .yui-resize-handle-bl,
-.yui-skin-sam .yui-resize-knob .yui-resize-handle-br,
-.yui-skin-sam .yui-resize-knob .yui-resize-handle-inner-t,
-.yui-skin-sam .yui-resize-knob .yui-resize-handle-inner-r,
-.yui-skin-sam .yui-resize-knob .yui-resize-handle-inner-b,
-.yui-skin-sam .yui-resize-knob .yui-resize-handle-inner-l,
-.yui-skin-sam .yui-resize-knob .yui-resize-handle-inner-tl,
-.yui-skin-sam .yui-resize-knob .yui-resize-handle-inner-tr,
-.yui-skin-sam .yui-resize-knob .yui-resize-handle-inner-bl,
-.yui-skin-sam .yui-resize-knob .yui-resize-handle-inner-br {
-    background-image: none;
-}
-
-.yui-skin-sam .yui-resize-knob .yui-resize-handle-l,
-.yui-skin-sam .yui-resize-knob .yui-resize-handle-r,
-.yui-skin-sam .yui-resize-knob .yui-resize-handle-l-active,
-.yui-skin-sam .yui-resize-knob .yui-resize-handle-r-active {
-    height: 6px;
-    width: 6px;
-}
-
-.yui-skin-sam .yui-resize-textarea .yui-resize-handle-r {
-    right: -8px;
-}
-.yui-skin-sam .yui-resize-textarea .yui-resize-handle-b {
-    bottom: -8px;
-}
-.yui-skin-sam .yui-resize-textarea .yui-resize-handle-br {
-    right: -8px;
-    bottom: -8px;
-}
diff --git a/koha-tmpl/intranet-tmpl/prog/en/lib/yui/resize/assets/skins/sam/resize.css b/koha-tmpl/intranet-tmpl/prog/en/lib/yui/resize/assets/skins/sam/resize.css
deleted file mode 100644 (file)
index 941361c..0000000
+++ /dev/null
@@ -1,7 +0,0 @@
-/*
-Copyright (c) 2009, Yahoo! Inc. All rights reserved.
-Code licensed under the BSD License:
-http://developer.yahoo.net/yui/license.txt
-version: 2.8.0r4
-*/
-.yui-resize{position:relative;zoom:1;z-index:0;}.yui-resize-wrap{zoom:1;}.yui-draggable{cursor:move;}.yui-resize .yui-resize-handle{position:absolute;z-index:1;font-size:0;margin:0;padding:0;zoom:1;height:1px;width:1px;}.yui-resize .yui-resize-handle-br{height:5px;width:5px;bottom:0;right:0;cursor:se-resize;z-index:2;zoom:1;}.yui-resize .yui-resize-handle-bl{height:5px;width:5px;bottom:0;left:0;cursor:sw-resize;z-index:2;zoom:1;}.yui-resize .yui-resize-handle-tl{height:5px;width:5px;top:0;left:0;cursor:nw-resize;z-index:2;zoom:1;}.yui-resize .yui-resize-handle-tr{height:5px;width:5px;top:0;right:0;cursor:ne-resize;z-index:2;zoom:1;}.yui-resize .yui-resize-handle-r{width:5px;height:100%;top:0;right:0;cursor:e-resize;zoom:1;}.yui-resize .yui-resize-handle-l{height:100%;width:5px;top:0;left:0;cursor:w-resize;zoom:1;}.yui-resize .yui-resize-handle-b{width:100%;height:5px;bottom:0;right:0;cursor:s-resize;zoom:1;}.yui-resize .yui-resize-handle-t{width:100%;height:5px;top:0;right:0;cursor:n-resize;zoom:1;}.yui-resize-proxy{position:absolute;border:1px dashed #000;visibility:hidden;z-index:1000;}.yui-resize-hover .yui-resize-handle,.yui-resize-hidden .yui-resize-handle{opacity:0;filter:alpha(opacity=0);}.yui-resize-ghost{opacity:.5;filter:alpha(opacity=50);}.yui-resize-knob .yui-resize-handle{height:6px;width:6px;}.yui-resize-knob .yui-resize-handle-tr{right:-3px;top:-3px;}.yui-resize-knob .yui-resize-handle-tl{left:-3px;top:-3px;}.yui-resize-knob .yui-resize-handle-bl{left:-3px;bottom:-3px;}.yui-resize-knob .yui-resize-handle-br{right:-3px;bottom:-3px;}.yui-resize-knob .yui-resize-handle-t{left:45%;top:-3px;}.yui-resize-knob .yui-resize-handle-r{right:-3px;top:45%;}.yui-resize-knob .yui-resize-handle-l{left:-3px;top:45%;}.yui-resize-knob .yui-resize-handle-b{left:45%;bottom:-3px;}.yui-resize-status{position:absolute;top:-999px;left:-999px;padding:2px;font-size:80%;display:none;zoom:1;z-index:9999;}.yui-resize-status strong,.yui-resize-status em{font-weight:normal;font-style:normal;padding:1px;zoom:1;}.yui-skin-sam .yui-resize .yui-resize-handle{background-color:#F2F2F2;zoom:1;}.yui-skin-sam .yui-resize .yui-resize-handle-active{background-color:#7D98B8;zoom:1;}.yui-skin-sam .yui-resize .yui-resize-handle-l,.yui-skin-sam .yui-resize .yui-resize-handle-r,.yui-skin-sam .yui-resize .yui-resize-handle-l-active,.yui-skin-sam .yui-resize .yui-resize-handle-r-active{height:100%;zoom:1;}.yui-skin-sam .yui-resize-knob .yui-resize-handle{border:1px solid #808080;}.yui-skin-sam .yui-resize-hover .yui-resize-handle-active{opacity:1;filter:alpha(opacity=100);}.yui-skin-sam .yui-resize-proxy{border:1px dashed #426FD9;}.yui-skin-sam .yui-resize-status{border:1px solid #A6982B;border-top:1px solid #D4C237;background-color:#FFEE69;color:#000;}.yui-skin-sam .yui-resize-status strong,.yui-skin-sam .yui-resize-status em{float:left;display:block;clear:both;padding:1px;text-align:center;}.yui-skin-sam .yui-resize .yui-resize-handle-inner-r,.yui-skin-sam .yui-resize .yui-resize-handle-inner-l{background:transparent url(layout_sprite.png) no-repeat 0 -5px;height:16px;width:5px;position:absolute;top:45%;}.yui-skin-sam .yui-resize .yui-resize-handle-inner-t,.yui-skin-sam .yui-resize .yui-resize-handle-inner-b{background:transparent url(layout_sprite.png) no-repeat -20px 0;height:5px;width:16px;position:absolute;left:50%;}.yui-skin-sam .yui-resize .yui-resize-handle-br{background-image:url(layout_sprite.png);background-repeat:no-repeat;background-position:-22px -62px;}.yui-skin-sam .yui-resize .yui-resize-handle-tr{background-image:url(layout_sprite.png);background-repeat:no-repeat;background-position:-22px -42px;}.yui-skin-sam .yui-resize .yui-resize-handle-tl{background-image:url(layout_sprite.png);background-repeat:no-repeat;background-position:-22px -82px;}.yui-skin-sam .yui-resize .yui-resize-handle-bl{background-image:url(layout_sprite.png);background-repeat:no-repeat;background-position:-22px -23px;}.yui-skin-sam .yui-resize-knob .yui-resize-handle-t,.yui-skin-sam .yui-resize-knob .yui-resize-handle-r,.yui-skin-sam .yui-resize-knob .yui-resize-handle-b,.yui-skin-sam .yui-resize-knob .yui-resize-handle-l,.yui-skin-sam .yui-resize-knob .yui-resize-handle-tl,.yui-skin-sam .yui-resize-knob .yui-resize-handle-tr,.yui-skin-sam .yui-resize-knob .yui-resize-handle-bl,.yui-skin-sam .yui-resize-knob .yui-resize-handle-br,.yui-skin-sam .yui-resize-knob .yui-resize-handle-inner-t,.yui-skin-sam .yui-resize-knob .yui-resize-handle-inner-r,.yui-skin-sam .yui-resize-knob .yui-resize-handle-inner-b,.yui-skin-sam .yui-resize-knob .yui-resize-handle-inner-l,.yui-skin-sam .yui-resize-knob .yui-resize-handle-inner-tl,.yui-skin-sam .yui-resize-knob .yui-resize-handle-inner-tr,.yui-skin-sam .yui-resize-knob .yui-resize-handle-inner-bl,.yui-skin-sam .yui-resize-knob .yui-resize-handle-inner-br{background-image:none;}.yui-skin-sam .yui-resize-knob .yui-resize-handle-l,.yui-skin-sam .yui-resize-knob .yui-resize-handle-r,.yui-skin-sam .yui-resize-knob .yui-resize-handle-l-active,.yui-skin-sam .yui-resize-knob .yui-resize-handle-r-active{height:6px;width:6px;}.yui-skin-sam .yui-resize-textarea .yui-resize-handle-r{right:-8px;}.yui-skin-sam .yui-resize-textarea .yui-resize-handle-b{bottom:-8px;}.yui-skin-sam .yui-resize-textarea .yui-resize-handle-br{right:-8px;bottom:-8px;}
diff --git a/koha-tmpl/intranet-tmpl/prog/en/lib/yui/resize/resize-debug.js b/koha-tmpl/intranet-tmpl/prog/en/lib/yui/resize/resize-debug.js
deleted file mode 100644 (file)
index b70ec50..0000000
+++ /dev/null
@@ -1,1749 +0,0 @@
-/*
-Copyright (c) 2009, Yahoo! Inc. All rights reserved.
-Code licensed under the BSD License:
-http://developer.yahoo.net/yui/license.txt
-version: 2.8.0r4
-*/
-/**
- * @description <p>Makes an element resizable</p>
- * @namespace YAHOO.util
- * @requires yahoo, dom, dragdrop, element, event
- * @optional animation
- * @module resize
- */
-(function() {
-var D = YAHOO.util.Dom,
-    Event = YAHOO.util.Event,
-    Lang = YAHOO.lang;
-
-    /**
-     * @constructor
-     * @class Resize
-     * @extends YAHOO.util.Element
-     * @description <p>Makes an element resizable</p>
-     * @param {String/HTMLElement} el The element to make resizable.
-     * @param {Object} attrs Object liternal containing configuration parameters.
-    */
-
-    var Resize = function(el, config) {
-        YAHOO.log('Creating Resize Object', 'info', 'Resize');
-        var oConfig = {
-            element: el,
-            attributes: config || {}
-        };
-
-        Resize.superclass.constructor.call(this, oConfig.element, oConfig.attributes);    
-    };
-
-    /**
-    * @private
-    * @static
-    * @property _instances
-    * @description Internal hash table for all resize instances
-    * @type Object
-    */ 
-    Resize._instances = {};
-    /**
-    * @static
-    * @method getResizeById 
-    * @description Get's a resize object by the HTML id of the element associated with the Resize object.
-    * @return {Object} The Resize Object
-    */ 
-    Resize.getResizeById = function(id) {
-        if (Resize._instances[id]) {
-            return Resize._instances[id];
-        }
-        YAHOO.log('No Instance Found', 'error', 'Resize');
-        return false;
-    };
-
-    YAHOO.extend(Resize, YAHOO.util.Element, {
-        /**
-        * @private
-        * @property CSS_RESIZE
-        * @description Base CSS class name
-        * @type String
-        */ 
-        CSS_RESIZE: 'yui-resize',
-        /**
-        * @private
-        * @property CSS_DRAG
-        * @description Class name added when dragging is enabled
-        * @type String
-        */ 
-        CSS_DRAG: 'yui-draggable',
-        /**
-        * @private
-        * @property CSS_HOVER
-        * @description Class name used for hover only handles
-        * @type String
-        */ 
-        CSS_HOVER: 'yui-resize-hover',
-        /**
-        * @private
-        * @property CSS_PROXY
-        * @description Class name given to the proxy element
-        * @type String
-        */ 
-        CSS_PROXY: 'yui-resize-proxy',
-        /**
-        * @private
-        * @property CSS_WRAP
-        * @description Class name given to the wrap element
-        * @type String
-        */ 
-        CSS_WRAP: 'yui-resize-wrap',
-        /**
-        * @private
-        * @property CSS_KNOB
-        * @description Class name used to make the knob style handles
-        * @type String
-        */ 
-        CSS_KNOB: 'yui-resize-knob',
-        /**
-        * @private
-        * @property CSS_HIDDEN
-        * @description Class name given to the wrap element to make all handles hidden
-        * @type String
-        */ 
-        CSS_HIDDEN: 'yui-resize-hidden',
-        /**
-        * @private
-        * @property CSS_HANDLE
-        * @description Class name given to all handles, used as a base for single handle names as well.. Handle "t" will get this.CSS_HANDLE + '-t' as well as this.CSS_HANDLE
-        * @type String
-        */ 
-        CSS_HANDLE: 'yui-resize-handle',
-        /**
-        * @private
-        * @property CSS_STATUS
-        * @description Class name given to the status element
-        * @type String
-        */ 
-        CSS_STATUS: 'yui-resize-status',
-        /**
-        * @private
-        * @property CSS_GHOST
-        * @description Class name given to the wrap element when the ghost property is active
-        * @type String
-        */ 
-        CSS_GHOST: 'yui-resize-ghost',
-        /**
-        * @private
-        * @property CSS_RESIZING
-        * @description Class name given to the wrap element when a resize action is taking place.
-        * @type String
-        */ 
-        CSS_RESIZING: 'yui-resize-resizing',
-        /**
-        * @private
-        * @property _resizeEvent
-        * @description The mouse event used to resize with
-        * @type Event
-        */ 
-        _resizeEvent: null,
-        /**
-        * @private
-        * @property dd
-        * @description The <a href="YAHOO.util.DragDrop.html">YAHOO.util.DragDrop</a> instance used if draggable is true
-        * @type Object
-        */ 
-        dd: null,
-        /** 
-        * @private
-        * @property browser
-        * @description A copy of the YAHOO.env.ua property
-        * @type Object
-        */
-        browser: YAHOO.env.ua,
-        /** 
-        * @private
-        * @property _locked
-        * @description A flag to show if the resize is locked
-        * @type Boolean
-        */
-        _locked: null,
-        /** 
-        * @private
-        * @property _positioned
-        * @description A flag to show if the element is absolutely positioned
-        * @type Boolean
-        */
-        _positioned: null,
-        /** 
-        * @private
-        * @property _dds
-        * @description An Object containing references to all of the <a href="YAHOO.util.DragDrop.html">YAHOO.util.DragDrop</a> instances used for the resize handles
-        * @type Object
-        */
-        _dds: null,
-        /** 
-        * @private
-        * @property _wrap
-        * @description The HTML reference of the element wrapper
-        * @type HTMLElement
-        */
-        _wrap: null,
-        /** 
-        * @private
-        * @property _proxy
-        * @description The HTML reference of the element proxy
-        * @type HTMLElement
-        */
-        _proxy: null,
-        /** 
-        * @private
-        * @property _handles
-        * @description An object containing references to all of the resize handles.
-        * @type Object
-        */
-        _handles: null,
-        /** 
-        * @private
-        * @property _currentHandle
-        * @description The string identifier of the currently active handle. e.g. 'r', 'br', 'tl'
-        * @type String
-        */
-        _currentHandle: null,
-        /** 
-        * @private
-        * @property _currentDD
-        * @description A link to the currently active DD object
-        * @type Object
-        */
-        _currentDD: null,
-        /** 
-        * @private
-        * @property _cache
-        * @description An lookup table containing key information for the element being resized. e.g. height, width, x position, y position, etc..
-        * @type Object
-        */
-        _cache: null,
-        /** 
-        * @private
-        * @property _active
-        * @description Flag to show if the resize is active. Used for events.
-        * @type Boolean
-        */
-        _active: null,
-        /** 
-        * @private
-        * @method _createProxy
-        * @description Creates the proxy element if the proxy config is true
-        */
-        _createProxy: function() {
-            if (this.get('proxy')) {
-                YAHOO.log('Creating the Proxy Element', 'info', 'Resize');
-                this._proxy = document.createElement('div');
-                this._proxy.className = this.CSS_PROXY;
-                this._proxy.style.height = this.get('element').clientHeight + 'px';
-                this._proxy.style.width = this.get('element').clientWidth + 'px';
-                this._wrap.parentNode.appendChild(this._proxy);
-            } else {
-                YAHOO.log('No proxy element, turn off animate config option', 'info', 'Resize');
-                this.set('animate', false);
-            }
-        },
-        /** 
-        * @private
-        * @method _createWrap
-        * @description Creates the wrap element if the wrap config is true. It will auto wrap the following element types: img, textarea, input, iframe, select
-        */
-        _createWrap: function() {
-            YAHOO.log('Create the wrap element', 'info', 'Resize');
-            this._positioned = false;
-            //Force wrap for elements that can't have children 
-            if (this.get('wrap') === false) {
-                switch (this.get('element').tagName.toLowerCase()) {
-                    case 'img':
-                    case 'textarea':
-                    case 'input':
-                    case 'iframe':
-                    case 'select':
-                        YAHOO.log('Auto-wrapping the element (' + this.get('element').tagName.toLowerCase() + ')', 'warn', 'Resize');
-                        this.set('wrap', true);
-                        break;
-                }
-            }
-            if (this.get('wrap') === true) {
-                YAHOO.log('Creating the wrap element', 'info', 'Resize');
-                this._wrap = document.createElement('div');
-                this._wrap.id = this.get('element').id + '_wrap';
-                this._wrap.className = this.CSS_WRAP;
-                if (this.get('element').tagName.toLowerCase() == 'textarea') {
-                    D.addClass(this._wrap, 'yui-resize-textarea');
-                }
-                D.setStyle(this._wrap, 'width', this.get('width') + 'px');
-                D.setStyle(this._wrap, 'height', this.get('height') + 'px');
-                D.setStyle(this._wrap, 'z-index', this.getStyle('z-index'));
-                this.setStyle('z-index', 0);
-                var pos = D.getStyle(this.get('element'), 'position');
-                D.setStyle(this._wrap, 'position', ((pos == 'static') ? 'relative' : pos));
-                D.setStyle(this._wrap, 'top', D.getStyle(this.get('element'), 'top'));
-                D.setStyle(this._wrap, 'left', D.getStyle(this.get('element'), 'left'));
-                if (D.getStyle(this.get('element'), 'position') == 'absolute') {
-                    this._positioned = true;
-                    YAHOO.log('The element is positioned absolute', 'info', 'Resize');
-                    D.setStyle(this.get('element'), 'position', 'relative');
-                    D.setStyle(this.get('element'), 'top', '0');
-                    D.setStyle(this.get('element'), 'left', '0');
-                }
-                var par = this.get('element').parentNode;
-                par.replaceChild(this._wrap, this.get('element'));
-                this._wrap.appendChild(this.get('element'));
-            } else {
-                this._wrap = this.get('element');
-                if (D.getStyle(this._wrap, 'position') == 'absolute') {
-                    this._positioned = true;
-                }
-            }
-            if (this.get('draggable')) {
-                this._setupDragDrop();
-            }
-            if (this.get('hover')) {
-                D.addClass(this._wrap, this.CSS_HOVER);
-            }
-            if (this.get('knobHandles')) {
-                D.addClass(this._wrap, this.CSS_KNOB);
-            }
-            if (this.get('hiddenHandles')) {
-                D.addClass(this._wrap, this.CSS_HIDDEN);
-            }
-            D.addClass(this._wrap, this.CSS_RESIZE);
-        },
-        /** 
-        * @private
-        * @method _setupDragDrop
-        * @description Setup the <a href="YAHOO.util.DragDrop.html">YAHOO.util.DragDrop</a> instance on the element
-        */
-        _setupDragDrop: function() {
-            YAHOO.log('Setting up the dragdrop instance on the element', 'info', 'Resize');
-            D.addClass(this._wrap, this.CSS_DRAG);
-            this.dd = new YAHOO.util.DD(this._wrap, this.get('id') + '-resize', { dragOnly: true, useShim: this.get('useShim') });
-            this.dd.on('dragEvent', function() {
-                this.fireEvent('dragEvent', arguments);
-            }, this, true);
-        },
-        /** 
-        * @private
-        * @method _createHandles
-        * @description Creates the handles as specified in the config
-        */
-        _createHandles: function() {
-            YAHOO.log('Creating the handles', 'info', 'Resize');
-            this._handles = {};
-            this._dds = {};
-            var h = this.get('handles');
-            for (var i = 0; i < h.length; i++) {
-                YAHOO.log('Creating handle position: ' + h[i], 'info', 'Resize');
-                this._handles[h[i]] = document.createElement('div');
-                this._handles[h[i]].id = D.generateId(this._handles[h[i]]);
-                this._handles[h[i]].className = this.CSS_HANDLE + ' ' + this.CSS_HANDLE + '-' + h[i];
-                var k = document.createElement('div');
-                k.className = this.CSS_HANDLE + '-inner-' + h[i];
-                this._handles[h[i]].appendChild(k);
-                this._wrap.appendChild(this._handles[h[i]]);
-                Event.on(this._handles[h[i]], 'mouseover', this._handleMouseOver, this, true);
-                Event.on(this._handles[h[i]], 'mouseout', this._handleMouseOut, this, true);
-                this._dds[h[i]] = new YAHOO.util.DragDrop(this._handles[h[i]], this.get('id') + '-handle-' + h, { useShim: this.get('useShim') });
-                this._dds[h[i]].setPadding(15, 15, 15, 15);
-                this._dds[h[i]].on('startDragEvent', this._handleStartDrag, this._dds[h[i]], this);
-                this._dds[h[i]].on('mouseDownEvent', this._handleMouseDown, this._dds[h[i]], this);
-            }
-            YAHOO.log('Creating the Status box', 'info', 'Resize');
-            this._status = document.createElement('span');
-            this._status.className = this.CSS_STATUS;
-            document.body.insertBefore(this._status, document.body.firstChild);
-        },
-        /** 
-        * @private
-        * @method _ieSelectFix
-        * @description The function we use as the onselectstart handler when we start a drag in Internet Explorer
-        */
-        _ieSelectFix: function() {
-            return false;
-        },
-        /** 
-        * @private
-        * @property _ieSelectBack
-        * @description We will hold a copy of the current "onselectstart" method on this property, and reset it after we are done using it.
-        */
-        _ieSelectBack: null,
-        /** 
-        * @private
-        * @method _setAutoRatio
-        * @param {Event} ev A mouse event.
-        * @description This method checks to see if the "autoRatio" config is set. If it is, we will check to see if the "Shift Key" is pressed. If so, we will set the config ratio to true.
-        */
-        _setAutoRatio: function(ev) {
-            if (this.get('autoRatio')) {
-                YAHOO.log('Setting up AutoRatio', 'info', 'Resize');
-                if (ev && ev.shiftKey) {
-                    //Shift Pressed
-                    YAHOO.log('Shift key presses, turning on ratio', 'info', 'Resize');
-                    this.set('ratio', true);
-                } else {
-                    YAHOO.log('Resetting ratio back to default', 'info', 'Resize');
-                    this.set('ratio', this._configs.ratio._initialConfig.value);
-                }
-            }
-        },
-        /** 
-        * @private
-        * @method _handleMouseDown
-        * @param {Event} ev A mouse event.
-        * @description This method preps the autoRatio on MouseDown.
-        */
-        _handleMouseDown: function(ev) {
-            if (this._locked) {
-                YAHOO.log('Resize Locked', 'info', 'Resize');
-                return false;
-            }
-            if (D.getStyle(this._wrap, 'position') == 'absolute') {
-                this._positioned = true;
-            }
-            if (ev) {
-                this._setAutoRatio(ev);
-            }
-            if (this.browser.ie) {
-                this._ieSelectBack = document.body.onselectstart;
-                document.body.onselectstart = this._ieSelectFix;
-            }
-        },
-        /** 
-        * @private
-        * @method _handleMouseOver
-        * @param {Event} ev A mouse event.
-        * @description Adds CSS class names to the handles
-        */
-        _handleMouseOver: function(ev) {
-            if (this._locked) {
-                YAHOO.log('Resize Locked', 'info', 'Resize');
-                return false;
-            }
-            D.removeClass(this._wrap, this.CSS_RESIZE);
-
-            if (this.get('hover')) {
-                D.removeClass(this._wrap, this.CSS_HOVER);
-            }
-            var tar = Event.getTarget(ev);
-            if (!D.hasClass(tar, this.CSS_HANDLE)) {
-                tar = tar.parentNode;
-            }
-            if (D.hasClass(tar, this.CSS_HANDLE) && !this._active) {
-                D.addClass(tar, this.CSS_HANDLE + '-active');
-                for (var i in this._handles) {
-                    if (Lang.hasOwnProperty(this._handles, i)) {
-                        if (this._handles[i] == tar) {
-                            D.addClass(tar, this.CSS_HANDLE + '-' + i + '-active');
-                            break;
-                        }
-                    }
-                }
-            }
-
-            D.addClass(this._wrap, this.CSS_RESIZE);
-        },
-        /** 
-        * @private
-        * @method _handleMouseOut
-        * @param {Event} ev A mouse event.
-        * @description Removes CSS class names to the handles
-        */
-        _handleMouseOut: function(ev) {
-            D.removeClass(this._wrap, this.CSS_RESIZE);
-            if (this.get('hover') && !this._active) {
-                D.addClass(this._wrap, this.CSS_HOVER);
-            }
-            var tar = Event.getTarget(ev);
-            if (!D.hasClass(tar, this.CSS_HANDLE)) {
-                tar = tar.parentNode;
-            }
-            if (D.hasClass(tar, this.CSS_HANDLE) && !this._active) {
-                D.removeClass(tar, this.CSS_HANDLE + '-active');
-                for (var i in this._handles) {
-                    if (Lang.hasOwnProperty(this._handles, i)) {
-                        if (this._handles[i] == tar) {
-                            D.removeClass(tar, this.CSS_HANDLE + '-' + i + '-active');
-                            break;
-                        }
-                    }
-                }
-            }
-            D.addClass(this._wrap, this.CSS_RESIZE);
-        },
-        /** 
-        * @private
-        * @method _handleStartDrag
-        * @param {Object} args The args passed from the CustomEvent.
-        * @param {Object} dd The <a href="YAHOO.util.DragDrop.html">YAHOO.util.DragDrop</a> object we are working with.
-        * @description Resizes the proxy, sets up the <a href="YAHOO.util.DragDrop.html">YAHOO.util.DragDrop</a> handlers, updates the status div and preps the cache
-        */
-        _handleStartDrag: function(args, dd) {
-            YAHOO.log('startDrag', 'info', 'Resize');
-            var tar = dd.getDragEl();
-            if (D.hasClass(tar, this.CSS_HANDLE)) {
-                if (D.getStyle(this._wrap, 'position') == 'absolute') {
-                    this._positioned = true;
-                }
-                this._active = true;
-                this._currentDD = dd;
-                if (this._proxy) {
-                    YAHOO.log('Activate proxy element', 'info', 'Resize');
-                    this._proxy.style.visibility = 'visible';
-                    this._proxy.style.zIndex = '1000';
-                    this._proxy.style.height = this.get('element').clientHeight + 'px';
-                    this._proxy.style.width = this.get('element').clientWidth + 'px';
-                }
-
-                for (var i in this._handles) {
-                    if (Lang.hasOwnProperty(this._handles, i)) {
-                        if (this._handles[i] == tar) {
-                            this._currentHandle = i;
-                            var handle = '_handle_for_' + i;
-                            D.addClass(tar, this.CSS_HANDLE + '-' + i + '-active');
-                            dd.on('dragEvent', this[handle], this, true);
-                            dd.on('mouseUpEvent', this._handleMouseUp, this, true);
-                            YAHOO.log('Adding DragEvents to: ' + i, 'info', 'Resize');
-                            break;
-                        }
-                    }
-                }
-
-
-                D.addClass(tar, this.CSS_HANDLE + '-active');
-
-                if (this.get('proxy')) {
-                    YAHOO.log('Posiiton Proxy Element', 'info', 'Resize');
-                    var xy = D.getXY(this.get('element'));
-                    D.setXY(this._proxy, xy);
-                    if (this.get('ghost')) {
-                        YAHOO.log('Add Ghost Class', 'info', 'Resize');
-                        this.addClass(this.CSS_GHOST);
-                    }
-                }
-                D.addClass(this._wrap, this.CSS_RESIZING);
-                this._setCache();
-                this._updateStatus(this._cache.height, this._cache.width, this._cache.top, this._cache.left);
-                YAHOO.log('Firing startResize Event', 'info', 'Resize');
-                this.fireEvent('startResize', { type: 'startresize', target: this});
-            }
-        },
-        /** 
-        * @private
-        * @method _setCache
-        * @description Sets up the this._cache hash table.
-        */
-        _setCache: function() {
-            YAHOO.log('Setting up property cache', 'info', 'Resize');
-            this._cache.xy = D.getXY(this._wrap);
-            D.setXY(this._wrap, this._cache.xy);
-            this._cache.height = this.get('clientHeight');
-            this._cache.width = this.get('clientWidth');
-            this._cache.start.height = this._cache.height;
-            this._cache.start.width = this._cache.width;
-            this._cache.start.top = this._cache.xy[1];
-            this._cache.start.left = this._cache.xy[0];
-            this._cache.top = this._cache.xy[1];
-            this._cache.left = this._cache.xy[0];
-            this.set('height', this._cache.height, true);
-            this.set('width', this._cache.width, true);
-        },
-        /** 
-        * @private
-        * @method _handleMouseUp
-        * @param {Event} ev A mouse event.
-        * @description Cleans up listeners, hides proxy element and removes class names.
-        */
-        _handleMouseUp: function(ev) {
-            this._active = false;
-
-            var handle = '_handle_for_' + this._currentHandle;
-            this._currentDD.unsubscribe('dragEvent', this[handle], this, true);
-            this._currentDD.unsubscribe('mouseUpEvent', this._handleMouseUp, this, true);
-
-            if (this._proxy) {
-                YAHOO.log('Hide Proxy Element', 'info', 'Resize');
-                this._proxy.style.visibility = 'hidden';
-                this._proxy.style.zIndex = '-1';
-                if (this.get('setSize')) {
-                    YAHOO.log('Setting Size', 'info', 'Resize');
-                    this.resize(ev, this._cache.height, this._cache.width, this._cache.top, this._cache.left, true);
-                } else {
-                    YAHOO.log('Firing Resize Event', 'info', 'Resize');
-                    this.fireEvent('resize', { ev: 'resize', target: this, height: this._cache.height, width: this._cache.width, top: this._cache.top, left: this._cache.left });
-                }
-
-                if (this.get('ghost')) {
-                    YAHOO.log('Removing Ghost Class', 'info', 'Resize');
-                    this.removeClass(this.CSS_GHOST);
-                }
-            }
-
-            if (this.get('hover')) {
-                D.addClass(this._wrap, this.CSS_HOVER);
-            }
-            if (this._status) {
-                D.setStyle(this._status, 'display', 'none');
-            }
-            if (this.browser.ie) {
-                YAHOO.log('Resetting IE onselectstart function', 'info', 'Resize');
-                document.body.onselectstart = this._ieSelectBack;
-            }
-
-            if (this.browser.ie) {
-                D.removeClass(this._wrap, this.CSS_RESIZE);
-            }
-
-            for (var i in this._handles) {
-                if (Lang.hasOwnProperty(this._handles, i)) {
-                    D.removeClass(this._handles[i], this.CSS_HANDLE + '-active');
-                }
-            }
-            if (this.get('hover') && !this._active) {
-                D.addClass(this._wrap, this.CSS_HOVER);
-            }
-            D.removeClass(this._wrap, this.CSS_RESIZING);
-
-            D.removeClass(this._handles[this._currentHandle], this.CSS_HANDLE + '-' + this._currentHandle + '-active');
-            D.removeClass(this._handles[this._currentHandle], this.CSS_HANDLE + '-active');
-
-            if (this.browser.ie) {
-                D.addClass(this._wrap, this.CSS_RESIZE);
-            }
-
-            this._resizeEvent = null;
-            this._currentHandle = null;
-            
-            if (!this.get('animate')) {
-                this.set('height', this._cache.height, true);
-                this.set('width', this._cache.width, true);
-            }
-
-            YAHOO.log('Firing endResize Event', 'info', 'Resize');
-            this.fireEvent('endResize', { ev: 'endResize', target: this, height: this._cache.height, width: this._cache.width, top: this._cache.top, left: this._cache.left });
-        },
-        /** 
-        * @private
-        * @method _setRatio
-        * @param {Number} h The height offset.
-        * @param {Number} w The with offset.
-        * @param {Number} t The top offset.
-        * @param {Number} l The left offset.
-        * @description Using the Height, Width, Top & Left, it recalcuates them based on the original element size.
-        * @return {Array} The new Height, Width, Top & Left settings
-        */
-        _setRatio: function(h, w, t, l) {
-            YAHOO.log('Setting Ratio', 'info', 'Resize');
-            var oh = h, ow = w;
-            if (this.get('ratio')) {
-                var orgH = this._cache.height,
-                    orgW = this._cache.width,
-                    nh = parseInt(this.get('height'), 10),
-                    nw = parseInt(this.get('width'), 10),
-                    maxH = this.get('maxHeight'),
-                    minH = this.get('minHeight'),
-                    maxW = this.get('maxWidth'),
-                    minW = this.get('minWidth');
-
-                switch (this._currentHandle) {
-                    case 'l':
-                        h = nh * (w / nw);
-                        h = Math.min(Math.max(minH, h), maxH);                        
-                        w = nw * (h / nh);
-                        t = (this._cache.start.top - (-((nh - h) / 2)));
-                        l = (this._cache.start.left - (-((nw - w))));
-                        break;
-                    case 'r':
-                        h = nh * (w / nw);
-                        h = Math.min(Math.max(minH, h), maxH);                        
-                        w = nw * (h / nh);
-                        t = (this._cache.start.top - (-((nh - h) / 2)));
-                        break;
-                    case 't':
-                        w = nw * (h / nh);
-                        h = nh * (w / nw);
-                        l = (this._cache.start.left - (-((nw - w) / 2)));
-                        t = (this._cache.start.top - (-((nh - h))));
-                        break;
-                    case 'b':
-                        w = nw * (h / nh);
-                        h = nh * (w / nw);
-                        l = (this._cache.start.left - (-((nw - w) / 2)));
-                        break;
-                    case 'bl':
-                        h = nh * (w / nw);
-                        w = nw * (h / nh);
-                        l = (this._cache.start.left - (-((nw - w))));
-                        break;
-                    case 'br':
-                        h = nh * (w / nw);
-                        w = nw * (h / nh);
-                        break;
-                    case 'tl':
-                        h = nh * (w / nw);
-                        w = nw * (h / nh);
-                        l = (this._cache.start.left - (-((nw - w))));
-                        t = (this._cache.start.top - (-((nh - h))));
-                        break;
-                    case 'tr':
-                        h = nh * (w / nw);
-                        w = nw * (h / nh);
-                        l = (this._cache.start.left);
-                        t = (this._cache.start.top - (-((nh - h))));
-                        break;
-                }
-                oh = this._checkHeight(h);
-                ow = this._checkWidth(w);
-                if ((oh != h) || (ow != w)) {
-                    t = 0;
-                    l = 0;
-                    if (oh != h) {
-                        ow = this._cache.width;
-                    }
-                    if (ow != w) {
-                        oh = this._cache.height;
-                    }
-                }
-            }
-            return [oh, ow, t, l];
-        },
-        /** 
-        * @private
-        * @method _updateStatus
-        * @param {Number} h The new height setting.
-        * @param {Number} w The new width setting.
-        * @param {Number} t The new top setting.
-        * @param {Number} l The new left setting.
-        * @description Using the Height, Width, Top & Left, it updates the status element with the elements sizes.
-        */
-        _updateStatus: function(h, w, t, l) {
-            if (this._resizeEvent && (!Lang.isString(this._resizeEvent))) {
-                YAHOO.log('Updating Status Box', 'info', 'Resize');
-                h = ((h === 0) ? this._cache.start.height : h);
-                w = ((w === 0) ? this._cache.start.width : w);
-                var h1 = parseInt(this.get('height'), 10),
-                    w1 = parseInt(this.get('width'), 10);
-                
-                if (isNaN(h1)) {
-                    h1 = parseInt(h, 10);
-                }
-                if (isNaN(w1)) {
-                    w1 = parseInt(w, 10);
-                }
-                var diffH = (parseInt(h, 10) - h1);
-                var diffW = (parseInt(w, 10) - w1);
-                this._cache.offsetHeight = diffH;
-                this._cache.offsetWidth = diffW;
-                if (this.get('status')) {
-                    YAHOO.log('Showing Status Box', 'info', 'Resize');
-                    D.setStyle(this._status, 'display', 'inline');
-                    //This will cause IE8 to crash if the status box is hidden..
-                    this._status.innerHTML = '<strong>' + parseInt(h, 10) + ' x ' + parseInt(w, 10) + '</strong><em>' + ((diffH > 0) ? '+' : '') + diffH + ' x ' + ((diffW > 0) ? '+' : '') + diffW + '</em>';
-                    D.setXY(this._status, [Event.getPageX(this._resizeEvent) + 12, Event.getPageY(this._resizeEvent) + 12]);
-                }
-            }
-        },
-        /** 
-        * @method lock
-        * @description Lock the resize so it can't be resized
-        * @param {Boolean} dd If the draggable config is set, lock it too
-        * @return {<a href="YAHOO.util.Resize.html">YAHOO.util.Resize</a>} The Resize instance
-        */
-        lock: function(dd) {
-            this._locked = true;
-            if (dd && this.dd) {
-                D.removeClass(this._wrap, 'yui-draggable');
-                this.dd.lock();
-            }
-            return this;
-        },
-        /** 
-        * @method unlock
-        * @description Unlock the resize so it can be resized
-        * @param {Boolean} dd If the draggable config is set, unlock it too
-        * @return {<a href="YAHOO.util.Resize.html">YAHOO.util.Resize</a>} The Resize instance
-        */
-        unlock: function(dd) {
-            this._locked = false;
-            if (dd && this.dd) {
-                D.addClass(this._wrap, 'yui-draggable');
-                this.dd.unlock();
-            }
-            return this;
-        },
-        /** 
-        * @method isLocked
-        * @description Check the locked status of the resize instance
-        * @return {Boolean}
-        */
-        isLocked: function() {
-            return this._locked;
-        },
-        /** 
-        * @method reset
-        * @description Resets the element to is start state.
-        * @return {<a href="YAHOO.util.Resize.html">YAHOO.util.Resize</a>} The Resize instance
-        */
-        reset: function() {
-            YAHOO.log('Resetting to cached sizes and position', 'info', 'Resize');
-            this.resize(null, this._cache.start.height, this._cache.start.width, this._cache.start.top, this._cache.start.left, true);
-            return this;
-        },
-        /** 
-        * @private
-        * @method resize
-        * @param {Event} ev The mouse event.
-        * @param {Number} h The new height setting.
-        * @param {Number} w The new width setting.
-        * @param {Number} t The new top setting.
-        * @param {Number} l The new left setting.
-        * @param {Boolean} force Resize the element (used for proxy resize).
-        * @param {Boolean} silent Don't fire the beforeResize Event.
-        * @description Resizes the element, wrapper or proxy based on the data from the handlers.
-        * @return {<a href="YAHOO.util.Resize.html">YAHOO.util.Resize</a>} The Resize instance
-        */
-        resize: function(ev, h, w, t, l, force, silent) {
-            if (this._locked) {
-                YAHOO.log('Resize Locked', 'info', 'Resize');
-                return false;
-            }
-            YAHOO.log('Resize: ' + h + ',' + w + ',' + t + ',' + l, 'info', 'Resize');
-            this._resizeEvent = ev;
-            var el = this._wrap, anim = this.get('animate'), set = true;
-            if (this._proxy && !force) {
-                el = this._proxy;
-                anim = false;
-            }
-            this._setAutoRatio(ev);
-            if (this._positioned) {
-                if (this._proxy) {
-                    t = this._cache.top - t;
-                    l = this._cache.left - l;
-                }
-            }
-            
-            
-            var ratio = this._setRatio(h, w, t, l);
-            h = parseInt(ratio[0], 10);
-            w = parseInt(ratio[1], 10);
-            t = parseInt(ratio[2], 10);
-            l = parseInt(ratio[3], 10);
-            
-            if (t == 0) {
-                //No Offset, get from cache
-                t = D.getY(el);
-            }
-            if (l == 0) {
-                //No Offset, get from cache
-                l = D.getX(el);
-            }
-
-            
-
-            if (this._positioned) {
-                if (this._proxy && force) {
-                    if (!anim) {
-                        el.style.top = this._proxy.style.top;
-                        el.style.left = this._proxy.style.left;
-                    } else {
-                        t = this._proxy.style.top;
-                        l = this._proxy.style.left;
-                    }
-                } else {
-                    if (!this.get('ratio') && !this._proxy) {
-                        t = this._cache.top + -(t);
-                        l = this._cache.left + -(l);
-                    }
-                    if (t) {
-                        if (this.get('minY')) {
-                            if (t < this.get('minY')) {
-                                t = this.get('minY');
-                            }
-                        }
-                        if (this.get('maxY')) {
-                            if (t > this.get('maxY')) {
-                                t = this.get('maxY');
-                            }
-                        }
-                    }
-                    if (l) {
-                        if (this.get('minX')) {
-                            if (l < this.get('minX')) {
-                                l = this.get('minX');
-                            }
-                        }
-                        if (this.get('maxX')) {
-                            if ((l + w) > this.get('maxX')) {
-                                l = (this.get('maxX') - w);
-                            }
-                        }
-                    }
-                }
-            }
-            if (!silent) {
-                YAHOO.log('beforeResize', 'info', 'Resize');
-                var beforeReturn = this.fireEvent('beforeResize', { ev: 'beforeResize', target: this, height: h, width: w, top: t, left: l });
-                if (beforeReturn === false) {
-                    YAHOO.log('Resized cancelled because befireResize returned false', 'info', 'Resize');
-                    return false;
-                }
-            }
-
-            this._updateStatus(h, w, t, l);
-
-
-            if (this._positioned) {
-                if (this._proxy && force) {
-                    //Do nothing
-                } else {
-                    if (t) {
-                        D.setY(el, t);
-                        this._cache.top = t;
-                    }
-                    if (l) {
-                        D.setX(el, l);
-                        this._cache.left = l;
-                    }
-                }
-            }
-            if (h) {
-                if (!anim) {
-                    set = true;
-                    if (this._proxy && force) {
-                        if (!this.get('setSize')) {
-                            set = false;
-                        }
-                    }
-                    if (set) {
-                        el.style.height = h + 'px';
-                    }
-                    if ((this._proxy && force) || !this._proxy) {
-                        if (this._wrap != this.get('element')) {
-                            this.get('element').style.height = h + 'px';
-                        }
-                    }
-                }
-                this._cache.height = h;
-            }
-            if (w) {
-                this._cache.width = w;
-                if (!anim) {
-                    set = true;
-                    if (this._proxy && force) {
-                        if (!this.get('setSize')) {
-                            set = false;
-                        }
-                    }
-                    if (set) {
-                        el.style.width = w + 'px';
-                    }
-                    if ((this._proxy && force) || !this._proxy) {
-                        if (this._wrap != this.get('element')) {
-                            this.get('element').style.width = w + 'px';
-                        }
-                    }
-                }
-            }
-            if (anim) {
-                if (YAHOO.util.Anim) {
-                    var _anim = new YAHOO.util.Anim(el, {
-                        height: {
-                            to: this._cache.height
-                        },
-                        width: {
-                            to: this._cache.width
-                        }
-                    }, this.get('animateDuration'), this.get('animateEasing'));
-                    if (this._positioned) {
-                        if (t) {
-                            _anim.attributes.top = {
-                                to: parseInt(t, 10)
-                            };
-                        }
-                        if (l) {
-                            _anim.attributes.left = {
-                                to: parseInt(l, 10)
-                            };
-                        }
-                    }
-
-                    if (this._wrap != this.get('element')) {
-                        _anim.onTween.subscribe(function() {
-                            this.get('element').style.height = el.style.height;
-                            this.get('element').style.width = el.style.width;
-                        }, this, true);
-                    }
-
-                    _anim.onComplete.subscribe(function() {
-                        YAHOO.log('Animation onComplete fired', 'info', 'Resize');
-                        this.set('height', h);
-                        this.set('width', w);
-                        this.fireEvent('resize', { ev: 'resize', target: this, height: h, width: w, top: t, left: l });
-                    }, this, true);
-                    _anim.animate();
-
-                }
-            } else {
-                if (this._proxy && !force) {
-                    YAHOO.log('proxyResize', 'info', 'Resize');
-                    this.fireEvent('proxyResize', { ev: 'proxyresize', target: this, height: h, width: w, top: t, left: l });
-                } else {
-                    YAHOO.log('resize', 'info', 'Resize');
-                    this.fireEvent('resize', { ev: 'resize', target: this, height: h, width: w, top: t, left: l });
-                }
-            }
-            return this;
-        },
-        /** 
-        * @private
-        * @method _handle_for_br
-        * @param {Object} args The arguments from the CustomEvent.
-        * @description Handles the sizes for the Bottom Right handle.
-        */
-        _handle_for_br: function(args) {
-            YAHOO.log('Handle BR', 'info', 'Resize');
-            var newW = this._setWidth(args.e);
-            var newH = this._setHeight(args.e);
-            this.resize(args.e, newH, newW, 0, 0);
-        },
-        /** 
-        * @private
-        * @method _handle_for_bl
-        * @param {Object} args The arguments from the CustomEvent.
-        * @description Handles the sizes for the Bottom Left handle.
-        */
-        _handle_for_bl: function(args) {
-            YAHOO.log('Handle BL', 'info', 'Resize');
-            var newW = this._setWidth(args.e, true);
-            var newH = this._setHeight(args.e);
-            var l = (newW - this._cache.width);
-            this.resize(args.e, newH, newW, 0, l);
-        },
-        /** 
-        * @private
-        * @method _handle_for_tl
-        * @param {Object} args The arguments from the CustomEvent.
-        * @description Handles the sizes for the Top Left handle.
-        */
-        _handle_for_tl: function(args) {
-            YAHOO.log('Handle TL', 'info', 'Resize');
-            var newW = this._setWidth(args.e, true);
-            var newH = this._setHeight(args.e, true);
-            var t = (newH - this._cache.height);
-            var l = (newW - this._cache.width);
-            this.resize(args.e, newH, newW, t, l);
-        },
-        /** 
-        * @private
-        * @method _handle_for_tr
-        * @param {Object} args The arguments from the CustomEvent.
-        * @description Handles the sizes for the Top Right handle.
-        */
-        _handle_for_tr: function(args) {
-            YAHOO.log('Handle TR', 'info', 'Resize');
-            var newW = this._setWidth(args.e);
-            var newH = this._setHeight(args.e, true);
-            var t = (newH - this._cache.height);
-            this.resize(args.e, newH, newW, t, 0);
-        },
-        /** 
-        * @private
-        * @method _handle_for_r
-        * @param {Object} args The arguments from the CustomEvent.
-        * @description Handles the sizes for the Right handle.
-        */
-        _handle_for_r: function(args) {
-            YAHOO.log('Handle R', 'info', 'Resize');
-            this._dds.r.setYConstraint(0,0);
-            var newW = this._setWidth(args.e);
-            this.resize(args.e, 0, newW, 0, 0);
-        },
-        /** 
-        * @private
-        * @method _handle_for_l
-        * @param {Object} args The arguments from the CustomEvent.
-        * @description Handles the sizes for the Left handle.
-        */
-        _handle_for_l: function(args) {
-            YAHOO.log('Handle L', 'info', 'Resize');
-            this._dds.l.setYConstraint(0,0);
-            var newW = this._setWidth(args.e, true);
-            var l = (newW - this._cache.width);
-            this.resize(args.e, 0, newW, 0, l);
-        },
-        /** 
-        * @private
-        * @method _handle_for_b
-        * @param {Object} args The arguments from the CustomEvent.
-        * @description Handles the sizes for the Bottom handle.
-        */
-        _handle_for_b: function(args) {
-            YAHOO.log('Handle B', 'info', 'Resize');
-            this._dds.b.setXConstraint(0,0);
-            var newH = this._setHeight(args.e);
-            this.resize(args.e, newH, 0, 0, 0);
-        },
-        /** 
-        * @private
-        * @method _handle_for_t
-        * @param {Object} args The arguments from the CustomEvent.
-        * @description Handles the sizes for the Top handle.
-        */
-        _handle_for_t: function(args) {
-            YAHOO.log('Handle T', 'info', 'Resize');
-            this._dds.t.setXConstraint(0,0);
-            var newH = this._setHeight(args.e, true);
-            var t = (newH - this._cache.height);
-            this.resize(args.e, newH, 0, t, 0);
-        },
-        /** 
-        * @private
-        * @method _setWidth
-        * @param {Event} ev The mouse event.
-        * @param {Boolean} flip Argument to determine the direction of the movement.
-        * @description Calculates the width based on the mouse event.
-        * @return {Number} The new value
-        */
-        _setWidth: function(ev, flip) {
-            YAHOO.log('Set width based on Event', 'info', 'Resize');
-            var xy = this._cache.xy[0],
-                w = this._cache.width,
-                x = Event.getPageX(ev),
-                nw = (x - xy);
-
-                if (flip) {
-                    nw = (xy - x) + parseInt(this.get('width'), 10);
-                }
-                
-                nw = this._snapTick(nw, this.get('xTicks'));
-                nw = this._checkWidth(nw);
-            return nw;
-        },
-        /** 
-        * @private
-        * @method _checkWidth
-        * @param {Number} w The width to check.
-        * @description Checks the value passed against the maxWidth and minWidth.
-        * @return {Number} the new value
-        */
-        _checkWidth: function(w) {
-            YAHOO.log('Checking the min/max width', 'info', 'Resize');
-            if (this.get('minWidth')) {
-                if (w <= this.get('minWidth')) {
-                    YAHOO.log('Using minWidth', 'info', 'Resize');
-                    w = this.get('minWidth');
-                }
-            }
-            if (this.get('maxWidth')) {
-                if (w >= this.get('maxWidth')) {
-                    YAHOO.log('Using Max Width', 'info', 'Resize');
-                    w = this.get('maxWidth');
-                }
-            }
-            return w;
-        },
-        /** 
-        * @private
-        * @method _checkHeight
-        * @param {Number} h The height to check.
-        * @description Checks the value passed against the maxHeight and minHeight.
-        * @return {Number} The new value
-        */
-        _checkHeight: function(h) {
-            YAHOO.log('Checking the min/max height', 'info', 'Resize');
-            if (this.get('minHeight')) {
-                if (h <= this.get('minHeight')) {
-                    YAHOO.log('Using minHeight', 'info', 'Resize');
-                    h = this.get('minHeight');
-                }
-            }
-            if (this.get('maxHeight')) {
-                if (h >= this.get('maxHeight')) {
-                    YAHOO.log('using maxHeight', 'info', 'Resize');
-                    h = this.get('maxHeight');
-                }
-            }
-            return h;
-        },
-        /** 
-        * @private
-        * @method _setHeight
-        * @param {Event} ev The mouse event.
-        * @param {Boolean} flip Argument to determine the direction of the movement.
-        * @description Calculated the height based on the mouse event.
-        * @return {Number} The new value
-        */
-        _setHeight: function(ev, flip) {
-            YAHOO.log('Setting the height based on the Event', 'info', 'Resize');
-            var xy = this._cache.xy[1],
-                h = this._cache.height,
-                y = Event.getPageY(ev),
-                nh = (y - xy);
-
-                if (flip) {
-                    nh = (xy - y) + parseInt(this.get('height'), 10);
-                }
-                nh = this._snapTick(nh, this.get('yTicks'));
-                nh = this._checkHeight(nh);
-                
-            return nh;
-        },
-        /** 
-        * @private
-        * @method _snapTick
-        * @param {Number} size The size to tick against.
-        * @param {Number} pix The tick pixels.
-        * @description Adjusts the number based on the ticks used.
-        * @return {Number} the new snapped position
-        */
-        _snapTick: function(size, pix) {
-            YAHOO.log('Snapping to ticks', 'info', 'Resize');
-            if (!size || !pix) {
-                return size;
-            }
-            var _s = size;
-            var _x = size % pix;
-            if (_x > 0) {
-                if (_x > (pix / 2)) {
-                    _s = size + (pix - _x);
-                } else {
-                    _s = size - _x;
-                }
-            }
-            return _s;
-        },
-        /** 
-        * @private
-        * @method init
-        * @description The Resize class's initialization method
-        */        
-        init: function(p_oElement, p_oAttributes) {
-            YAHOO.log('init', 'info', 'Resize');
-            this._locked = false;
-            this._cache = {
-                xy: [],
-                height: 0,
-                width: 0,
-                top: 0,
-                left: 0,
-                offsetHeight: 0,
-                offsetWidth: 0,
-                start: {
-                    height: 0,
-                    width: 0,
-                    top: 0,
-                    left: 0
-                }
-            };
-
-            Resize.superclass.init.call(this, p_oElement, p_oAttributes);
-
-            this.set('setSize', this.get('setSize'));
-
-            if (p_oAttributes.height) {
-                this.set('height', parseInt(p_oAttributes.height, 10));
-            } else {
-                var h = this.getStyle('height');
-                if (h == 'auto') {
-                    this.set('height', parseInt(this.get('element').offsetHeight, 10));
-                }
-            }
-            if (p_oAttributes.width) {
-                this.set('width', parseInt(p_oAttributes.width, 10));
-            } else {
-                var w = this.getStyle('width');
-                if (w == 'auto') {
-                    this.set('width', parseInt(this.get('element').offsetWidth, 10));
-                }
-            }
-            
-            var id = p_oElement;
-            if (!Lang.isString(id)) {
-                id = D.generateId(id);
-            }
-            Resize._instances[id] = this;
-
-            this._active = false;
-            
-            this._createWrap();
-            this._createProxy();
-            this._createHandles();
-
-        },
-        /**
-        * @method getProxyEl
-        * @description Get the HTML reference for the proxy, returns null if no proxy.
-        * @return {HTMLElement} The proxy element
-        */      
-        getProxyEl: function() {
-            return this._proxy;
-        },
-        /**
-        * @method getWrapEl
-        * @description Get the HTML reference for the wrap element, returns the current element if not wrapped.
-        * @return {HTMLElement} The wrap element
-        */      
-        getWrapEl: function() {
-            return this._wrap;
-        },
-        /**
-        * @method getStatusEl
-        * @description Get the HTML reference for the status element.
-        * @return {HTMLElement} The status element
-        */      
-        getStatusEl: function() {
-            return this._status;
-        },
-        /**
-        * @method getActiveHandleEl
-        * @description Get the HTML reference for the currently active resize handle.
-        * @return {HTMLElement} The handle element that is active
-        */      
-        getActiveHandleEl: function() {
-            return this._handles[this._currentHandle];
-        },
-        /**
-        * @method isActive
-        * @description Returns true or false if a resize operation is currently active on the element.
-        * @return {Boolean}
-        */      
-        isActive: function() {
-            return ((this._active) ? true : false);
-        },
-        /**
-        * @private
-        * @method initAttributes
-        * @description Initializes all of the configuration attributes used to create a resizable element.
-        * @param {Object} attr Object literal specifying a set of 
-        * configuration attributes used to create the utility.
-        */      
-        initAttributes: function(attr) {
-            Resize.superclass.initAttributes.call(this, attr);
-
-            /**
-            * @attribute useShim
-            * @description This setting will be passed to the DragDrop instances on the resize handles and for the draggable property.
-            * This property should be used if you want the resize handles to work over iframe and other elements.
-            * @type Boolean
-            */
-            this.setAttributeConfig('useShim', {
-                value: ((attr.useShim === true) ? true : false),
-                validator: YAHOO.lang.isBoolean,
-                method: function(u) {
-                    for (var i in this._dds) {
-                        if (Lang.hasOwnProperty(this._dds, i)) {
-                            this._dds[i].useShim = u;
-                        }
-                    }
-                    if (this.dd) {
-                        this.dd.useShim = u;
-                    }
-                }
-            });
-            /**
-            * @attribute setSize
-            * @description Set the size of the resized element, if set to false the element will not be auto resized,
-            * the resize event will contain the dimensions so the end user can resize it on their own.
-            * This setting will only work with proxy set to true and animate set to false.
-            * @type Boolean
-            */
-            this.setAttributeConfig('setSize', {
-                value: ((attr.setSize === false) ? false : true),
-                validator: YAHOO.lang.isBoolean
-            });
-
-            /**
-            * @attribute wrap
-            * @description Should we wrap the element
-            * @type Boolean
-            */
-            this.setAttributeConfig('wrap', {
-                writeOnce: true,
-                validator: YAHOO.lang.isBoolean,
-                value: attr.wrap || false
-            });
-
-            /**
-            * @attribute handles
-            * @description The handles to use (any combination of): 't', 'b', 'r', 'l', 'bl', 'br', 'tl', 'tr'. Defaults to: ['r', 'b', 'br'].
-            * Can use a shortcut of All. Note: 8 way resizing should be done on an element that is absolutely positioned.
-            * @type Array
-            */
-            this.setAttributeConfig('handles', {
-                writeOnce: true,
-                value: attr.handles || ['r', 'b', 'br'],
-                validator: function(handles) {
-                    if (Lang.isString(handles) && handles.toLowerCase() == 'all') {
-                        handles = ['t', 'b', 'r', 'l', 'bl', 'br', 'tl', 'tr'];
-                    }
-                    if (!Lang.isArray(handles)) {
-                        handles = handles.replace(/, /g, ',');
-                        handles = handles.split(',');
-                    }
-                    this._configs.handles.value = handles;
-                }
-            });
-
-            /**
-            * @attribute width
-            * @description The width of the element
-            * @type Number
-            */
-            this.setAttributeConfig('width', {
-                value: attr.width || parseInt(this.getStyle('width'), 10),
-                validator: YAHOO.lang.isNumber,
-                method: function(width) {
-                    width = parseInt(width, 10);
-                    if (width > 0) {
-                        if (this.get('setSize')) {
-                            this.setStyle('width', width + 'px');
-                        }
-                        this._cache.width = width;
-                        this._configs.width.value = width;
-                    }
-                }
-            });
-
-            /**
-            * @attribute height
-            * @description The height of the element
-            * @type Number
-            */
-            this.setAttributeConfig('height', {
-                value: attr.height || parseInt(this.getStyle('height'), 10),
-                validator: YAHOO.lang.isNumber,
-                method: function(height) {
-                    height = parseInt(height, 10);
-                    if (height > 0) {
-                        if (this.get('setSize')) {
-                            this.setStyle('height', height + 'px');
-                        }
-                        this._cache.height = height;
-                        this._configs.height.value = height;
-                    }
-                }
-            });
-
-            /**
-            * @attribute minWidth
-            * @description The minimum width of the element
-            * @type Number
-            */
-            this.setAttributeConfig('minWidth', {
-                value: attr.minWidth || 15,
-                validator: YAHOO.lang.isNumber
-            });
-
-            /**
-            * @attribute minHeight
-            * @description The minimum height of the element
-            * @type Number
-            */
-            this.setAttributeConfig('minHeight', {
-                value: attr.minHeight || 15,
-                validator: YAHOO.lang.isNumber
-            });
-
-            /**
-            * @attribute maxWidth
-            * @description The maximum width of the element
-            * @type Number
-            */
-            this.setAttributeConfig('maxWidth', {
-                value: attr.maxWidth || 10000,
-                validator: YAHOO.lang.isNumber
-            });
-
-            /**
-            * @attribute maxHeight
-            * @description The maximum height of the element
-            * @type Number
-            */
-            this.setAttributeConfig('maxHeight', {
-                value: attr.maxHeight || 10000,
-                validator: YAHOO.lang.isNumber
-            });
-
-            /**
-            * @attribute minY
-            * @description The minimum y coord of the element
-            * @type Number
-            */
-            this.setAttributeConfig('minY', {
-                value: attr.minY || false
-            });
-
-            /**
-            * @attribute minX
-            * @description The minimum x coord of the element
-            * @type Number
-            */
-            this.setAttributeConfig('minX', {
-                value: attr.minX || false
-            });
-            /**
-            * @attribute maxY
-            * @description The max y coord of the element
-            * @type Number
-            */
-            this.setAttributeConfig('maxY', {
-                value: attr.maxY || false
-            });
-
-            /**
-            * @attribute maxX
-            * @description The max x coord of the element
-            * @type Number
-            */
-            this.setAttributeConfig('maxX', {
-                value: attr.maxX || false
-            });
-
-            /**
-            * @attribute animate
-            * @description Should be use animation to resize the element (can only be used if we use proxy).
-            * @type Boolean
-            */
-            this.setAttributeConfig('animate', {
-                value: attr.animate || false,
-                validator: function(value) {
-                    var ret = true;
-                    if (!YAHOO.util.Anim) {
-                        ret = false;
-                    }
-                    return ret;
-                }               
-            });
-
-            /**
-            * @attribute animateEasing
-            * @description The Easing to apply to the animation.
-            * @type Object
-            */
-            this.setAttributeConfig('animateEasing', {
-                value: attr.animateEasing || function() {
-                    var easing = false;
-                    if (YAHOO.util.Easing && YAHOO.util.Easing.easeOut) {
-                        easing = YAHOO.util.Easing.easeOut;
-                    }
-                    return easing;
-                }()
-            });
-
-            /**
-            * @attribute animateDuration
-            * @description The Duration to apply to the animation.
-            * @type Number
-            */
-            this.setAttributeConfig('animateDuration', {
-                value: attr.animateDuration || 0.5
-            });
-
-            /**
-            * @attribute proxy
-            * @description Resize a proxy element instead of the real element.
-            * @type Boolean
-            */
-            this.setAttributeConfig('proxy', {
-                value: attr.proxy || false,
-                validator: YAHOO.lang.isBoolean
-            });
-
-            /**
-            * @attribute ratio
-            * @description Maintain the element's ratio when resizing.
-            * @type Boolean
-            */
-            this.setAttributeConfig('ratio', {
-                value: attr.ratio || false,
-                validator: YAHOO.lang.isBoolean
-            });
-
-            /**
-            * @attribute ghost
-            * @description Apply an opacity filter to the element being resized (only works with proxy).
-            * @type Boolean
-            */
-            this.setAttributeConfig('ghost', {
-                value: attr.ghost || false,
-                validator: YAHOO.lang.isBoolean
-            });
-
-            /**
-            * @attribute draggable
-            * @description A convienence method to make the element draggable
-            * @type Boolean
-            */
-            this.setAttributeConfig('draggable', {
-                value: attr.draggable || false,
-                validator: YAHOO.lang.isBoolean,
-                method: function(dd) {
-                    if (dd && this._wrap) {
-                        this._setupDragDrop();
-                    } else {
-                        if (this.dd) {
-                            D.removeClass(this._wrap, this.CSS_DRAG);
-                            this.dd.unreg();
-                        }
-                    }
-                }
-            });
-
-            /**
-            * @attribute hover
-            * @description Only show the handles when they are being moused over.
-            * @type Boolean
-            */
-            this.setAttributeConfig('hover', {
-                value: attr.hover || false,
-                validator: YAHOO.lang.isBoolean
-            });
-
-            /**
-            * @attribute hiddenHandles
-            * @description Don't show the handles, just use the cursor to the user.
-            * @type Boolean
-            */
-            this.setAttributeConfig('hiddenHandles', {
-                value: attr.hiddenHandles || false,
-                validator: YAHOO.lang.isBoolean
-            });
-
-            /**
-            * @attribute knobHandles
-            * @description Use the smaller handles, instead if the full size handles.
-            * @type Boolean
-            */
-            this.setAttributeConfig('knobHandles', {
-                value: attr.knobHandles || false,
-                validator: YAHOO.lang.isBoolean
-            });
-
-            /**
-            * @attribute xTicks
-            * @description The number of x ticks to span the resize to.
-            * @type Number or False
-            */
-            this.setAttributeConfig('xTicks', {
-                value: attr.xTicks || false
-            });
-
-            /**
-            * @attribute yTicks
-            * @description The number of y ticks to span the resize to.
-            * @type Number or False
-            */
-            this.setAttributeConfig('yTicks', {
-                value: attr.yTicks || false
-            });
-
-            /**
-            * @attribute status
-            * @description Show the status (new size) of the resize.
-            * @type Boolean
-            */
-            this.setAttributeConfig('status', {
-                value: attr.status || false,
-                validator: YAHOO.lang.isBoolean
-            });
-
-            /**
-            * @attribute autoRatio
-            * @description Using the shift key during a resize will toggle the ratio config.
-            * @type Boolean
-            */
-            this.setAttributeConfig('autoRatio', {
-                value: attr.autoRatio || false,
-                validator: YAHOO.lang.isBoolean
-            });
-
-        },
-        /**
-        * @method destroy
-        * @description Destroys the resize object and all of it's elements & listeners.
-        */        
-        destroy: function() {
-            YAHOO.log('Destroying Resize', 'info', 'Resize');
-            for (var h in this._handles) {
-                if (Lang.hasOwnProperty(this._handles, h)) {
-                    Event.purgeElement(this._handles[h]);
-                    this._handles[h].parentNode.removeChild(this._handles[h]);
-                }
-            }
-            if (this._proxy) {
-                this._proxy.parentNode.removeChild(this._proxy);
-            }
-            if (this._status) {
-                this._status.parentNode.removeChild(this._status);
-            }
-            if (this.dd) {
-                this.dd.unreg();
-                D.removeClass(this._wrap, this.CSS_DRAG);
-            }
-            if (this._wrap != this.get('element')) {
-                this.setStyle('position', '');
-                this.setStyle('top', '');
-                this.setStyle('left', '');
-                this._wrap.parentNode.replaceChild(this.get('element'), this._wrap);
-            }
-            this.removeClass(this.CSS_RESIZE);
-
-            delete YAHOO.util.Resize._instances[this.get('id')];
-            //Brutal Object Destroy
-            for (var i in this) {
-                if (Lang.hasOwnProperty(this, i)) {
-                    this[i] = null;
-                    delete this[i];
-                }
-            }
-        },
-        /**
-        * @method toString
-        * @description Returns a string representing the Resize Object.
-        * @return {String}
-        */        
-        toString: function() {
-            if (this.get) {
-                return 'Resize (#' + this.get('id') + ')';
-            }
-            return 'Resize Utility';
-        }
-    });
-
-    YAHOO.util.Resize = Resize;
-/**
-* @event dragEvent
-* @description Fires when the <a href="YAHOO.util.DragDrop.html">YAHOO.util.DragDrop</a> dragEvent is fired for the config option draggable.
-* @type YAHOO.util.CustomEvent
-*/
-/**
-* @event startResize
-* @description Fires when a resize action is started.
-* @type YAHOO.util.CustomEvent
-*/
-/**
-* @event endResize
-* @description Fires when the mouseUp event from the Drag Instance fires.
-* @type YAHOO.util.CustomEvent
-*/
-/**
-* @event resize
-* @description Fires on every element resize (only fires once when used with proxy config setting).
-* @type YAHOO.util.CustomEvent
-*/
-/**
-* @event beforeResize
-* @description Fires before every element resize after the size calculations, returning false will stop the resize.
-* @type YAHOO.util.CustomEvent
-*/
-/**
-* @event proxyResize
-* @description Fires on every proxy resize (only fires when used with proxy config setting).
-* @type YAHOO.util.CustomEvent
-*/
-
-})();
-
-YAHOO.register("resize", YAHOO.util.Resize, {version: "2.8.0r4", build: "2449"});
diff --git a/koha-tmpl/intranet-tmpl/prog/en/lib/yui/resize/resize-min.js b/koha-tmpl/intranet-tmpl/prog/en/lib/yui/resize/resize-min.js
deleted file mode 100644 (file)
index d5ab386..0000000
+++ /dev/null
@@ -1,10 +0,0 @@
-/*
-Copyright (c) 2009, Yahoo! Inc. All rights reserved.
-Code licensed under the BSD License:
-http://developer.yahoo.net/yui/license.txt
-version: 2.8.0r4
-*/
-(function(){var E=YAHOO.util.Dom,A=YAHOO.util.Event,C=YAHOO.lang;var B=function(F,D){var G={element:F,attributes:D||{}};B.superclass.constructor.call(this,G.element,G.attributes);};B._instances={};B.getResizeById=function(D){if(B._instances[D]){return B._instances[D];}return false;};YAHOO.extend(B,YAHOO.util.Element,{CSS_RESIZE:"yui-resize",CSS_DRAG:"yui-draggable",CSS_HOVER:"yui-resize-hover",CSS_PROXY:"yui-resize-proxy",CSS_WRAP:"yui-resize-wrap",CSS_KNOB:"yui-resize-knob",CSS_HIDDEN:"yui-resize-hidden",CSS_HANDLE:"yui-resize-handle",CSS_STATUS:"yui-resize-status",CSS_GHOST:"yui-resize-ghost",CSS_RESIZING:"yui-resize-resizing",_resizeEvent:null,dd:null,browser:YAHOO.env.ua,_locked:null,_positioned:null,_dds:null,_wrap:null,_proxy:null,_handles:null,_currentHandle:null,_currentDD:null,_cache:null,_active:null,_createProxy:function(){if(this.get("proxy")){this._proxy=document.createElement("div");this._proxy.className=this.CSS_PROXY;this._proxy.style.height=this.get("element").clientHeight+"px";this._proxy.style.width=this.get("element").clientWidth+"px";this._wrap.parentNode.appendChild(this._proxy);}else{this.set("animate",false);}},_createWrap:function(){this._positioned=false;if(this.get("wrap")===false){switch(this.get("element").tagName.toLowerCase()){case"img":case"textarea":case"input":case"iframe":case"select":this.set("wrap",true);break;}}if(this.get("wrap")===true){this._wrap=document.createElement("div");this._wrap.id=this.get("element").id+"_wrap";this._wrap.className=this.CSS_WRAP;if(this.get("element").tagName.toLowerCase()=="textarea"){E.addClass(this._wrap,"yui-resize-textarea");}E.setStyle(this._wrap,"width",this.get("width")+"px");E.setStyle(this._wrap,"height",this.get("height")+"px");E.setStyle(this._wrap,"z-index",this.getStyle("z-index"));this.setStyle("z-index",0);var F=E.getStyle(this.get("element"),"position");E.setStyle(this._wrap,"position",((F=="static")?"relative":F));E.setStyle(this._wrap,"top",E.getStyle(this.get("element"),"top"));E.setStyle(this._wrap,"left",E.getStyle(this.get("element"),"left"));if(E.getStyle(this.get("element"),"position")=="absolute"){this._positioned=true;E.setStyle(this.get("element"),"position","relative");E.setStyle(this.get("element"),"top","0");E.setStyle(this.get("element"),"left","0");}var D=this.get("element").parentNode;D.replaceChild(this._wrap,this.get("element"));this._wrap.appendChild(this.get("element"));}else{this._wrap=this.get("element");if(E.getStyle(this._wrap,"position")=="absolute"){this._positioned=true;}}if(this.get("draggable")){this._setupDragDrop();}if(this.get("hover")){E.addClass(this._wrap,this.CSS_HOVER);}if(this.get("knobHandles")){E.addClass(this._wrap,this.CSS_KNOB);}if(this.get("hiddenHandles")){E.addClass(this._wrap,this.CSS_HIDDEN);}E.addClass(this._wrap,this.CSS_RESIZE);},_setupDragDrop:function(){E.addClass(this._wrap,this.CSS_DRAG);this.dd=new YAHOO.util.DD(this._wrap,this.get("id")+"-resize",{dragOnly:true,useShim:this.get("useShim")});this.dd.on("dragEvent",function(){this.fireEvent("dragEvent",arguments);},this,true);},_createHandles:function(){this._handles={};this._dds={};var G=this.get("handles");for(var F=0;F<G.length;F++){this._handles[G[F]]=document.createElement("div");this._handles[G[F]].id=E.generateId(this._handles[G[F]]);this._handles[G[F]].className=this.CSS_HANDLE+" "+this.CSS_HANDLE+"-"+G[F];var D=document.createElement("div");D.className=this.CSS_HANDLE+"-inner-"+G[F];this._handles[G[F]].appendChild(D);this._wrap.appendChild(this._handles[G[F]]);A.on(this._handles[G[F]],"mouseover",this._handleMouseOver,this,true);A.on(this._handles[G[F]],"mouseout",this._handleMouseOut,this,true);this._dds[G[F]]=new YAHOO.util.DragDrop(this._handles[G[F]],this.get("id")+"-handle-"+G,{useShim:this.get("useShim")});this._dds[G[F]].setPadding(15,15,15,15);this._dds[G[F]].on("startDragEvent",this._handleStartDrag,this._dds[G[F]],this);this._dds[G[F]].on("mouseDownEvent",this._handleMouseDown,this._dds[G[F]],this);}this._status=document.createElement("span");this._status.className=this.CSS_STATUS;document.body.insertBefore(this._status,document.body.firstChild);},_ieSelectFix:function(){return false;},_ieSelectBack:null,_setAutoRatio:function(D){if(this.get("autoRatio")){if(D&&D.shiftKey){this.set("ratio",true);}else{this.set("ratio",this._configs.ratio._initialConfig.value);}}},_handleMouseDown:function(D){if(this._locked){return false;}if(E.getStyle(this._wrap,"position")=="absolute"){this._positioned=true;}if(D){this._setAutoRatio(D);}if(this.browser.ie){this._ieSelectBack=document.body.onselectstart;document.body.onselectstart=this._ieSelectFix;}},_handleMouseOver:function(G){if(this._locked){return false;}E.removeClass(this._wrap,this.CSS_RESIZE);if(this.get("hover")){E.removeClass(this._wrap,this.CSS_HOVER);}var D=A.getTarget(G);if(!E.hasClass(D,this.CSS_HANDLE)){D=D.parentNode;}if(E.hasClass(D,this.CSS_HANDLE)&&!this._active){E.addClass(D,this.CSS_HANDLE+"-active");for(var F in this._handles){if(C.hasOwnProperty(this._handles,F)){if(this._handles[F]==D){E.addClass(D,this.CSS_HANDLE+"-"+F+"-active");break;}}}}E.addClass(this._wrap,this.CSS_RESIZE);},_handleMouseOut:function(G){E.removeClass(this._wrap,this.CSS_RESIZE);if(this.get("hover")&&!this._active){E.addClass(this._wrap,this.CSS_HOVER);}var D=A.getTarget(G);if(!E.hasClass(D,this.CSS_HANDLE)){D=D.parentNode;}if(E.hasClass(D,this.CSS_HANDLE)&&!this._active){E.removeClass(D,this.CSS_HANDLE+"-active");for(var F in this._handles){if(C.hasOwnProperty(this._handles,F)){if(this._handles[F]==D){E.removeClass(D,this.CSS_HANDLE+"-"+F+"-active");break;}}}}E.addClass(this._wrap,this.CSS_RESIZE);},_handleStartDrag:function(G,F){var D=F.getDragEl();if(E.hasClass(D,this.CSS_HANDLE)){if(E.getStyle(this._wrap,"position")=="absolute"){this._positioned=true;}this._active=true;this._currentDD=F;if(this._proxy){this._proxy.style.visibility="visible";this._proxy.style.zIndex="1000";this._proxy.style.height=this.get("element").clientHeight+"px";this._proxy.style.width=this.get("element").clientWidth+"px";
-}for(var H in this._handles){if(C.hasOwnProperty(this._handles,H)){if(this._handles[H]==D){this._currentHandle=H;var I="_handle_for_"+H;E.addClass(D,this.CSS_HANDLE+"-"+H+"-active");F.on("dragEvent",this[I],this,true);F.on("mouseUpEvent",this._handleMouseUp,this,true);break;}}}E.addClass(D,this.CSS_HANDLE+"-active");if(this.get("proxy")){var J=E.getXY(this.get("element"));E.setXY(this._proxy,J);if(this.get("ghost")){this.addClass(this.CSS_GHOST);}}E.addClass(this._wrap,this.CSS_RESIZING);this._setCache();this._updateStatus(this._cache.height,this._cache.width,this._cache.top,this._cache.left);this.fireEvent("startResize",{type:"startresize",target:this});}},_setCache:function(){this._cache.xy=E.getXY(this._wrap);E.setXY(this._wrap,this._cache.xy);this._cache.height=this.get("clientHeight");this._cache.width=this.get("clientWidth");this._cache.start.height=this._cache.height;this._cache.start.width=this._cache.width;this._cache.start.top=this._cache.xy[1];this._cache.start.left=this._cache.xy[0];this._cache.top=this._cache.xy[1];this._cache.left=this._cache.xy[0];this.set("height",this._cache.height,true);this.set("width",this._cache.width,true);},_handleMouseUp:function(F){this._active=false;var G="_handle_for_"+this._currentHandle;this._currentDD.unsubscribe("dragEvent",this[G],this,true);this._currentDD.unsubscribe("mouseUpEvent",this._handleMouseUp,this,true);if(this._proxy){this._proxy.style.visibility="hidden";this._proxy.style.zIndex="-1";if(this.get("setSize")){this.resize(F,this._cache.height,this._cache.width,this._cache.top,this._cache.left,true);}else{this.fireEvent("resize",{ev:"resize",target:this,height:this._cache.height,width:this._cache.width,top:this._cache.top,left:this._cache.left});}if(this.get("ghost")){this.removeClass(this.CSS_GHOST);}}if(this.get("hover")){E.addClass(this._wrap,this.CSS_HOVER);}if(this._status){E.setStyle(this._status,"display","none");}if(this.browser.ie){document.body.onselectstart=this._ieSelectBack;}if(this.browser.ie){E.removeClass(this._wrap,this.CSS_RESIZE);}for(var D in this._handles){if(C.hasOwnProperty(this._handles,D)){E.removeClass(this._handles[D],this.CSS_HANDLE+"-active");}}if(this.get("hover")&&!this._active){E.addClass(this._wrap,this.CSS_HOVER);}E.removeClass(this._wrap,this.CSS_RESIZING);E.removeClass(this._handles[this._currentHandle],this.CSS_HANDLE+"-"+this._currentHandle+"-active");E.removeClass(this._handles[this._currentHandle],this.CSS_HANDLE+"-active");if(this.browser.ie){E.addClass(this._wrap,this.CSS_RESIZE);}this._resizeEvent=null;this._currentHandle=null;if(!this.get("animate")){this.set("height",this._cache.height,true);this.set("width",this._cache.width,true);}this.fireEvent("endResize",{ev:"endResize",target:this,height:this._cache.height,width:this._cache.width,top:this._cache.top,left:this._cache.left});},_setRatio:function(K,N,Q,I){var O=K,G=N;if(this.get("ratio")){var P=this._cache.height,H=this._cache.width,F=parseInt(this.get("height"),10),L=parseInt(this.get("width"),10),M=this.get("maxHeight"),R=this.get("minHeight"),D=this.get("maxWidth"),J=this.get("minWidth");switch(this._currentHandle){case"l":K=F*(N/L);K=Math.min(Math.max(R,K),M);N=L*(K/F);Q=(this._cache.start.top-(-((F-K)/2)));I=(this._cache.start.left-(-((L-N))));break;case"r":K=F*(N/L);K=Math.min(Math.max(R,K),M);N=L*(K/F);Q=(this._cache.start.top-(-((F-K)/2)));break;case"t":N=L*(K/F);K=F*(N/L);I=(this._cache.start.left-(-((L-N)/2)));Q=(this._cache.start.top-(-((F-K))));break;case"b":N=L*(K/F);K=F*(N/L);I=(this._cache.start.left-(-((L-N)/2)));break;case"bl":K=F*(N/L);N=L*(K/F);I=(this._cache.start.left-(-((L-N))));break;case"br":K=F*(N/L);N=L*(K/F);break;case"tl":K=F*(N/L);N=L*(K/F);I=(this._cache.start.left-(-((L-N))));Q=(this._cache.start.top-(-((F-K))));break;case"tr":K=F*(N/L);N=L*(K/F);I=(this._cache.start.left);Q=(this._cache.start.top-(-((F-K))));break;}O=this._checkHeight(K);G=this._checkWidth(N);if((O!=K)||(G!=N)){Q=0;I=0;if(O!=K){G=this._cache.width;}if(G!=N){O=this._cache.height;}}}return[O,G,Q,I];},_updateStatus:function(K,G,J,F){if(this._resizeEvent&&(!C.isString(this._resizeEvent))){K=((K===0)?this._cache.start.height:K);G=((G===0)?this._cache.start.width:G);var I=parseInt(this.get("height"),10),D=parseInt(this.get("width"),10);if(isNaN(I)){I=parseInt(K,10);}if(isNaN(D)){D=parseInt(G,10);}var L=(parseInt(K,10)-I);var H=(parseInt(G,10)-D);this._cache.offsetHeight=L;this._cache.offsetWidth=H;if(this.get("status")){E.setStyle(this._status,"display","inline");this._status.innerHTML="<strong>"+parseInt(K,10)+" x "+parseInt(G,10)+"</strong><em>"+((L>0)?"+":"")+L+" x "+((H>0)?"+":"")+H+"</em>";E.setXY(this._status,[A.getPageX(this._resizeEvent)+12,A.getPageY(this._resizeEvent)+12]);}}},lock:function(D){this._locked=true;if(D&&this.dd){E.removeClass(this._wrap,"yui-draggable");this.dd.lock();}return this;},unlock:function(D){this._locked=false;if(D&&this.dd){E.addClass(this._wrap,"yui-draggable");this.dd.unlock();}return this;},isLocked:function(){return this._locked;},reset:function(){this.resize(null,this._cache.start.height,this._cache.start.width,this._cache.start.top,this._cache.start.left,true);return this;},resize:function(M,J,P,Q,H,F,K){if(this._locked){return false;}this._resizeEvent=M;var G=this._wrap,I=this.get("animate"),O=true;if(this._proxy&&!F){G=this._proxy;I=false;}this._setAutoRatio(M);if(this._positioned){if(this._proxy){Q=this._cache.top-Q;H=this._cache.left-H;}}var L=this._setRatio(J,P,Q,H);J=parseInt(L[0],10);P=parseInt(L[1],10);Q=parseInt(L[2],10);H=parseInt(L[3],10);if(Q==0){Q=E.getY(G);}if(H==0){H=E.getX(G);}if(this._positioned){if(this._proxy&&F){if(!I){G.style.top=this._proxy.style.top;G.style.left=this._proxy.style.left;}else{Q=this._proxy.style.top;H=this._proxy.style.left;}}else{if(!this.get("ratio")&&!this._proxy){Q=this._cache.top+-(Q);H=this._cache.left+-(H);}if(Q){if(this.get("minY")){if(Q<this.get("minY")){Q=this.get("minY");}}if(this.get("maxY")){if(Q>this.get("maxY")){Q=this.get("maxY");}}}if(H){if(this.get("minX")){if(H<this.get("minX")){H=this.get("minX");
-}}if(this.get("maxX")){if((H+P)>this.get("maxX")){H=(this.get("maxX")-P);}}}}}if(!K){var N=this.fireEvent("beforeResize",{ev:"beforeResize",target:this,height:J,width:P,top:Q,left:H});if(N===false){return false;}}this._updateStatus(J,P,Q,H);if(this._positioned){if(this._proxy&&F){}else{if(Q){E.setY(G,Q);this._cache.top=Q;}if(H){E.setX(G,H);this._cache.left=H;}}}if(J){if(!I){O=true;if(this._proxy&&F){if(!this.get("setSize")){O=false;}}if(O){G.style.height=J+"px";}if((this._proxy&&F)||!this._proxy){if(this._wrap!=this.get("element")){this.get("element").style.height=J+"px";}}}this._cache.height=J;}if(P){this._cache.width=P;if(!I){O=true;if(this._proxy&&F){if(!this.get("setSize")){O=false;}}if(O){G.style.width=P+"px";}if((this._proxy&&F)||!this._proxy){if(this._wrap!=this.get("element")){this.get("element").style.width=P+"px";}}}}if(I){if(YAHOO.util.Anim){var D=new YAHOO.util.Anim(G,{height:{to:this._cache.height},width:{to:this._cache.width}},this.get("animateDuration"),this.get("animateEasing"));if(this._positioned){if(Q){D.attributes.top={to:parseInt(Q,10)};}if(H){D.attributes.left={to:parseInt(H,10)};}}if(this._wrap!=this.get("element")){D.onTween.subscribe(function(){this.get("element").style.height=G.style.height;this.get("element").style.width=G.style.width;},this,true);}D.onComplete.subscribe(function(){this.set("height",J);this.set("width",P);this.fireEvent("resize",{ev:"resize",target:this,height:J,width:P,top:Q,left:H});},this,true);D.animate();}}else{if(this._proxy&&!F){this.fireEvent("proxyResize",{ev:"proxyresize",target:this,height:J,width:P,top:Q,left:H});}else{this.fireEvent("resize",{ev:"resize",target:this,height:J,width:P,top:Q,left:H});}}return this;},_handle_for_br:function(F){var G=this._setWidth(F.e);var D=this._setHeight(F.e);this.resize(F.e,D,G,0,0);},_handle_for_bl:function(G){var H=this._setWidth(G.e,true);var F=this._setHeight(G.e);var D=(H-this._cache.width);this.resize(G.e,F,H,0,D);},_handle_for_tl:function(G){var I=this._setWidth(G.e,true);var F=this._setHeight(G.e,true);var H=(F-this._cache.height);var D=(I-this._cache.width);this.resize(G.e,F,I,H,D);},_handle_for_tr:function(F){var H=this._setWidth(F.e);var D=this._setHeight(F.e,true);var G=(D-this._cache.height);this.resize(F.e,D,H,G,0);},_handle_for_r:function(D){this._dds.r.setYConstraint(0,0);var F=this._setWidth(D.e);this.resize(D.e,0,F,0,0);},_handle_for_l:function(F){this._dds.l.setYConstraint(0,0);var G=this._setWidth(F.e,true);var D=(G-this._cache.width);this.resize(F.e,0,G,0,D);},_handle_for_b:function(F){this._dds.b.setXConstraint(0,0);var D=this._setHeight(F.e);this.resize(F.e,D,0,0,0);},_handle_for_t:function(F){this._dds.t.setXConstraint(0,0);var D=this._setHeight(F.e,true);var G=(D-this._cache.height);this.resize(F.e,D,0,G,0);},_setWidth:function(H,J){var I=this._cache.xy[0],G=this._cache.width,D=A.getPageX(H),F=(D-I);if(J){F=(I-D)+parseInt(this.get("width"),10);}F=this._snapTick(F,this.get("xTicks"));F=this._checkWidth(F);return F;},_checkWidth:function(D){if(this.get("minWidth")){if(D<=this.get("minWidth")){D=this.get("minWidth");}}if(this.get("maxWidth")){if(D>=this.get("maxWidth")){D=this.get("maxWidth");}}return D;},_checkHeight:function(D){if(this.get("minHeight")){if(D<=this.get("minHeight")){D=this.get("minHeight");}}if(this.get("maxHeight")){if(D>=this.get("maxHeight")){D=this.get("maxHeight");}}return D;},_setHeight:function(G,I){var H=this._cache.xy[1],F=this._cache.height,J=A.getPageY(G),D=(J-H);if(I){D=(H-J)+parseInt(this.get("height"),10);}D=this._snapTick(D,this.get("yTicks"));D=this._checkHeight(D);return D;},_snapTick:function(G,F){if(!G||!F){return G;}var H=G;var D=G%F;if(D>0){if(D>(F/2)){H=G+(F-D);}else{H=G-D;}}return H;},init:function(H,F){this._locked=false;this._cache={xy:[],height:0,width:0,top:0,left:0,offsetHeight:0,offsetWidth:0,start:{height:0,width:0,top:0,left:0}};B.superclass.init.call(this,H,F);this.set("setSize",this.get("setSize"));if(F.height){this.set("height",parseInt(F.height,10));}else{var G=this.getStyle("height");if(G=="auto"){this.set("height",parseInt(this.get("element").offsetHeight,10));}}if(F.width){this.set("width",parseInt(F.width,10));}else{var D=this.getStyle("width");if(D=="auto"){this.set("width",parseInt(this.get("element").offsetWidth,10));}}var I=H;if(!C.isString(I)){I=E.generateId(I);}B._instances[I]=this;this._active=false;this._createWrap();this._createProxy();this._createHandles();},getProxyEl:function(){return this._proxy;},getWrapEl:function(){return this._wrap;},getStatusEl:function(){return this._status;},getActiveHandleEl:function(){return this._handles[this._currentHandle];},isActive:function(){return((this._active)?true:false);},initAttributes:function(D){B.superclass.initAttributes.call(this,D);this.setAttributeConfig("useShim",{value:((D.useShim===true)?true:false),validator:YAHOO.lang.isBoolean,method:function(F){for(var G in this._dds){if(C.hasOwnProperty(this._dds,G)){this._dds[G].useShim=F;}}if(this.dd){this.dd.useShim=F;}}});this.setAttributeConfig("setSize",{value:((D.setSize===false)?false:true),validator:YAHOO.lang.isBoolean});this.setAttributeConfig("wrap",{writeOnce:true,validator:YAHOO.lang.isBoolean,value:D.wrap||false});this.setAttributeConfig("handles",{writeOnce:true,value:D.handles||["r","b","br"],validator:function(F){if(C.isString(F)&&F.toLowerCase()=="all"){F=["t","b","r","l","bl","br","tl","tr"];}if(!C.isArray(F)){F=F.replace(/, /g,",");F=F.split(",");}this._configs.handles.value=F;}});this.setAttributeConfig("width",{value:D.width||parseInt(this.getStyle("width"),10),validator:YAHOO.lang.isNumber,method:function(F){F=parseInt(F,10);if(F>0){if(this.get("setSize")){this.setStyle("width",F+"px");}this._cache.width=F;this._configs.width.value=F;}}});this.setAttributeConfig("height",{value:D.height||parseInt(this.getStyle("height"),10),validator:YAHOO.lang.isNumber,method:function(F){F=parseInt(F,10);if(F>0){if(this.get("setSize")){this.setStyle("height",F+"px");}this._cache.height=F;this._configs.height.value=F;
-}}});this.setAttributeConfig("minWidth",{value:D.minWidth||15,validator:YAHOO.lang.isNumber});this.setAttributeConfig("minHeight",{value:D.minHeight||15,validator:YAHOO.lang.isNumber});this.setAttributeConfig("maxWidth",{value:D.maxWidth||10000,validator:YAHOO.lang.isNumber});this.setAttributeConfig("maxHeight",{value:D.maxHeight||10000,validator:YAHOO.lang.isNumber});this.setAttributeConfig("minY",{value:D.minY||false});this.setAttributeConfig("minX",{value:D.minX||false});this.setAttributeConfig("maxY",{value:D.maxY||false});this.setAttributeConfig("maxX",{value:D.maxX||false});this.setAttributeConfig("animate",{value:D.animate||false,validator:function(G){var F=true;if(!YAHOO.util.Anim){F=false;}return F;}});this.setAttributeConfig("animateEasing",{value:D.animateEasing||function(){var F=false;if(YAHOO.util.Easing&&YAHOO.util.Easing.easeOut){F=YAHOO.util.Easing.easeOut;}return F;}()});this.setAttributeConfig("animateDuration",{value:D.animateDuration||0.5});this.setAttributeConfig("proxy",{value:D.proxy||false,validator:YAHOO.lang.isBoolean});this.setAttributeConfig("ratio",{value:D.ratio||false,validator:YAHOO.lang.isBoolean});this.setAttributeConfig("ghost",{value:D.ghost||false,validator:YAHOO.lang.isBoolean});this.setAttributeConfig("draggable",{value:D.draggable||false,validator:YAHOO.lang.isBoolean,method:function(F){if(F&&this._wrap){this._setupDragDrop();}else{if(this.dd){E.removeClass(this._wrap,this.CSS_DRAG);this.dd.unreg();}}}});this.setAttributeConfig("hover",{value:D.hover||false,validator:YAHOO.lang.isBoolean});this.setAttributeConfig("hiddenHandles",{value:D.hiddenHandles||false,validator:YAHOO.lang.isBoolean});this.setAttributeConfig("knobHandles",{value:D.knobHandles||false,validator:YAHOO.lang.isBoolean});this.setAttributeConfig("xTicks",{value:D.xTicks||false});this.setAttributeConfig("yTicks",{value:D.yTicks||false});this.setAttributeConfig("status",{value:D.status||false,validator:YAHOO.lang.isBoolean});this.setAttributeConfig("autoRatio",{value:D.autoRatio||false,validator:YAHOO.lang.isBoolean});},destroy:function(){for(var F in this._handles){if(C.hasOwnProperty(this._handles,F)){A.purgeElement(this._handles[F]);this._handles[F].parentNode.removeChild(this._handles[F]);}}if(this._proxy){this._proxy.parentNode.removeChild(this._proxy);}if(this._status){this._status.parentNode.removeChild(this._status);}if(this.dd){this.dd.unreg();E.removeClass(this._wrap,this.CSS_DRAG);}if(this._wrap!=this.get("element")){this.setStyle("position","");this.setStyle("top","");this.setStyle("left","");this._wrap.parentNode.replaceChild(this.get("element"),this._wrap);}this.removeClass(this.CSS_RESIZE);delete YAHOO.util.Resize._instances[this.get("id")];for(var D in this){if(C.hasOwnProperty(this,D)){this[D]=null;delete this[D];}}},toString:function(){if(this.get){return"Resize (#"+this.get("id")+")";}return"Resize Utility";}});YAHOO.util.Resize=B;})();YAHOO.register("resize",YAHOO.util.Resize,{version:"2.8.0r4",build:"2449"});
\ No newline at end of file
diff --git a/koha-tmpl/intranet-tmpl/prog/en/lib/yui/resize/resize.js b/koha-tmpl/intranet-tmpl/prog/en/lib/yui/resize/resize.js
deleted file mode 100644 (file)
index 9223f40..0000000
+++ /dev/null
@@ -1,1689 +0,0 @@
-/*
-Copyright (c) 2009, Yahoo! Inc. All rights reserved.
-Code licensed under the BSD License:
-http://developer.yahoo.net/yui/license.txt
-version: 2.8.0r4
-*/
-/**
- * @description <p>Makes an element resizable</p>
- * @namespace YAHOO.util
- * @requires yahoo, dom, dragdrop, element, event
- * @optional animation
- * @module resize
- */
-(function() {
-var D = YAHOO.util.Dom,
-    Event = YAHOO.util.Event,
-    Lang = YAHOO.lang;
-
-    /**
-     * @constructor
-     * @class Resize
-     * @extends YAHOO.util.Element
-     * @description <p>Makes an element resizable</p>
-     * @param {String/HTMLElement} el The element to make resizable.
-     * @param {Object} attrs Object liternal containing configuration parameters.
-    */
-
-    var Resize = function(el, config) {
-        var oConfig = {
-            element: el,
-            attributes: config || {}
-        };
-
-        Resize.superclass.constructor.call(this, oConfig.element, oConfig.attributes);    
-    };
-
-    /**
-    * @private
-    * @static
-    * @property _instances
-    * @description Internal hash table for all resize instances
-    * @type Object
-    */ 
-    Resize._instances = {};
-    /**
-    * @static
-    * @method getResizeById 
-    * @description Get's a resize object by the HTML id of the element associated with the Resize object.
-    * @return {Object} The Resize Object
-    */ 
-    Resize.getResizeById = function(id) {
-        if (Resize._instances[id]) {
-            return Resize._instances[id];
-        }
-        return false;
-    };
-
-    YAHOO.extend(Resize, YAHOO.util.Element, {
-        /**
-        * @private
-        * @property CSS_RESIZE
-        * @description Base CSS class name
-        * @type String
-        */ 
-        CSS_RESIZE: 'yui-resize',
-        /**
-        * @private
-        * @property CSS_DRAG
-        * @description Class name added when dragging is enabled
-        * @type String
-        */ 
-        CSS_DRAG: 'yui-draggable',
-        /**
-        * @private
-        * @property CSS_HOVER
-        * @description Class name used for hover only handles
-        * @type String
-        */ 
-        CSS_HOVER: 'yui-resize-hover',
-        /**
-        * @private
-        * @property CSS_PROXY
-        * @description Class name given to the proxy element
-        * @type String
-        */ 
-        CSS_PROXY: 'yui-resize-proxy',
-        /**
-        * @private
-        * @property CSS_WRAP
-        * @description Class name given to the wrap element
-        * @type String
-        */ 
-        CSS_WRAP: 'yui-resize-wrap',
-        /**
-        * @private
-        * @property CSS_KNOB
-        * @description Class name used to make the knob style handles
-        * @type String
-        */ 
-        CSS_KNOB: 'yui-resize-knob',
-        /**
-        * @private
-        * @property CSS_HIDDEN
-        * @description Class name given to the wrap element to make all handles hidden
-        * @type String
-        */ 
-        CSS_HIDDEN: 'yui-resize-hidden',
-        /**
-        * @private
-        * @property CSS_HANDLE
-        * @description Class name given to all handles, used as a base for single handle names as well.. Handle "t" will get this.CSS_HANDLE + '-t' as well as this.CSS_HANDLE
-        * @type String
-        */ 
-        CSS_HANDLE: 'yui-resize-handle',
-        /**
-        * @private
-        * @property CSS_STATUS
-        * @description Class name given to the status element
-        * @type String
-        */ 
-        CSS_STATUS: 'yui-resize-status',
-        /**
-        * @private
-        * @property CSS_GHOST
-        * @description Class name given to the wrap element when the ghost property is active
-        * @type String
-        */ 
-        CSS_GHOST: 'yui-resize-ghost',
-        /**
-        * @private
-        * @property CSS_RESIZING
-        * @description Class name given to the wrap element when a resize action is taking place.
-        * @type String
-        */ 
-        CSS_RESIZING: 'yui-resize-resizing',
-        /**
-        * @private
-        * @property _resizeEvent
-        * @description The mouse event used to resize with
-        * @type Event
-        */ 
-        _resizeEvent: null,
-        /**
-        * @private
-        * @property dd
-        * @description The <a href="YAHOO.util.DragDrop.html">YAHOO.util.DragDrop</a> instance used if draggable is true
-        * @type Object
-        */ 
-        dd: null,
-        /** 
-        * @private
-        * @property browser
-        * @description A copy of the YAHOO.env.ua property
-        * @type Object
-        */
-        browser: YAHOO.env.ua,
-        /** 
-        * @private
-        * @property _locked
-        * @description A flag to show if the resize is locked
-        * @type Boolean
-        */
-        _locked: null,
-        /** 
-        * @private
-        * @property _positioned
-        * @description A flag to show if the element is absolutely positioned
-        * @type Boolean
-        */
-        _positioned: null,
-        /** 
-        * @private
-        * @property _dds
-        * @description An Object containing references to all of the <a href="YAHOO.util.DragDrop.html">YAHOO.util.DragDrop</a> instances used for the resize handles
-        * @type Object
-        */
-        _dds: null,
-        /** 
-        * @private
-        * @property _wrap
-        * @description The HTML reference of the element wrapper
-        * @type HTMLElement
-        */
-        _wrap: null,
-        /** 
-        * @private
-        * @property _proxy
-        * @description The HTML reference of the element proxy
-        * @type HTMLElement
-        */
-        _proxy: null,
-        /** 
-        * @private
-        * @property _handles
-        * @description An object containing references to all of the resize handles.
-        * @type Object
-        */
-        _handles: null,
-        /** 
-        * @private
-        * @property _currentHandle
-        * @description The string identifier of the currently active handle. e.g. 'r', 'br', 'tl'
-        * @type String
-        */
-        _currentHandle: null,
-        /** 
-        * @private
-        * @property _currentDD
-        * @description A link to the currently active DD object
-        * @type Object
-        */
-        _currentDD: null,
-        /** 
-        * @private
-        * @property _cache
-        * @description An lookup table containing key information for the element being resized. e.g. height, width, x position, y position, etc..
-        * @type Object
-        */
-        _cache: null,
-        /** 
-        * @private
-        * @property _active
-        * @description Flag to show if the resize is active. Used for events.
-        * @type Boolean
-        */
-        _active: null,
-        /** 
-        * @private
-        * @method _createProxy
-        * @description Creates the proxy element if the proxy config is true
-        */
-        _createProxy: function() {
-            if (this.get('proxy')) {
-                this._proxy = document.createElement('div');
-                this._proxy.className = this.CSS_PROXY;
-                this._proxy.style.height = this.get('element').clientHeight + 'px';
-                this._proxy.style.width = this.get('element').clientWidth + 'px';
-                this._wrap.parentNode.appendChild(this._proxy);
-            } else {
-                this.set('animate', false);
-            }
-        },
-        /** 
-        * @private
-        * @method _createWrap
-        * @description Creates the wrap element if the wrap config is true. It will auto wrap the following element types: img, textarea, input, iframe, select
-        */
-        _createWrap: function() {
-            this._positioned = false;
-            //Force wrap for elements that can't have children 
-            if (this.get('wrap') === false) {
-                switch (this.get('element').tagName.toLowerCase()) {
-                    case 'img':
-                    case 'textarea':
-                    case 'input':
-                    case 'iframe':
-                    case 'select':
-                        this.set('wrap', true);
-                        break;
-                }
-            }
-            if (this.get('wrap') === true) {
-                this._wrap = document.createElement('div');
-                this._wrap.id = this.get('element').id + '_wrap';
-                this._wrap.className = this.CSS_WRAP;
-                if (this.get('element').tagName.toLowerCase() == 'textarea') {
-                    D.addClass(this._wrap, 'yui-resize-textarea');
-                }
-                D.setStyle(this._wrap, 'width', this.get('width') + 'px');
-                D.setStyle(this._wrap, 'height', this.get('height') + 'px');
-                D.setStyle(this._wrap, 'z-index', this.getStyle('z-index'));
-                this.setStyle('z-index', 0);
-                var pos = D.getStyle(this.get('element'), 'position');
-                D.setStyle(this._wrap, 'position', ((pos == 'static') ? 'relative' : pos));
-                D.setStyle(this._wrap, 'top', D.getStyle(this.get('element'), 'top'));
-                D.setStyle(this._wrap, 'left', D.getStyle(this.get('element'), 'left'));
-                if (D.getStyle(this.get('element'), 'position') == 'absolute') {
-                    this._positioned = true;
-                    D.setStyle(this.get('element'), 'position', 'relative');
-                    D.setStyle(this.get('element'), 'top', '0');
-                    D.setStyle(this.get('element'), 'left', '0');
-                }
-                var par = this.get('element').parentNode;
-                par.replaceChild(this._wrap, this.get('element'));
-                this._wrap.appendChild(this.get('element'));
-            } else {
-                this._wrap = this.get('element');
-                if (D.getStyle(this._wrap, 'position') == 'absolute') {
-                    this._positioned = true;
-                }
-            }
-            if (this.get('draggable')) {
-                this._setupDragDrop();
-            }
-            if (this.get('hover')) {
-                D.addClass(this._wrap, this.CSS_HOVER);
-            }
-            if (this.get('knobHandles')) {
-                D.addClass(this._wrap, this.CSS_KNOB);
-            }
-            if (this.get('hiddenHandles')) {
-                D.addClass(this._wrap, this.CSS_HIDDEN);
-            }
-            D.addClass(this._wrap, this.CSS_RESIZE);
-        },
-        /** 
-        * @private
-        * @method _setupDragDrop
-        * @description Setup the <a href="YAHOO.util.DragDrop.html">YAHOO.util.DragDrop</a> instance on the element
-        */
-        _setupDragDrop: function() {
-            D.addClass(this._wrap, this.CSS_DRAG);
-            this.dd = new YAHOO.util.DD(this._wrap, this.get('id') + '-resize', { dragOnly: true, useShim: this.get('useShim') });
-            this.dd.on('dragEvent', function() {
-                this.fireEvent('dragEvent', arguments);
-            }, this, true);
-        },
-        /** 
-        * @private
-        * @method _createHandles
-        * @description Creates the handles as specified in the config
-        */
-        _createHandles: function() {
-            this._handles = {};
-            this._dds = {};
-            var h = this.get('handles');
-            for (var i = 0; i < h.length; i++) {
-                this._handles[h[i]] = document.createElement('div');
-                this._handles[h[i]].id = D.generateId(this._handles[h[i]]);
-                this._handles[h[i]].className = this.CSS_HANDLE + ' ' + this.CSS_HANDLE + '-' + h[i];
-                var k = document.createElement('div');
-                k.className = this.CSS_HANDLE + '-inner-' + h[i];
-                this._handles[h[i]].appendChild(k);
-                this._wrap.appendChild(this._handles[h[i]]);
-                Event.on(this._handles[h[i]], 'mouseover', this._handleMouseOver, this, true);
-                Event.on(this._handles[h[i]], 'mouseout', this._handleMouseOut, this, true);
-                this._dds[h[i]] = new YAHOO.util.DragDrop(this._handles[h[i]], this.get('id') + '-handle-' + h, { useShim: this.get('useShim') });
-                this._dds[h[i]].setPadding(15, 15, 15, 15);
-                this._dds[h[i]].on('startDragEvent', this._handleStartDrag, this._dds[h[i]], this);
-                this._dds[h[i]].on('mouseDownEvent', this._handleMouseDown, this._dds[h[i]], this);
-            }
-            this._status = document.createElement('span');
-            this._status.className = this.CSS_STATUS;
-            document.body.insertBefore(this._status, document.body.firstChild);
-        },
-        /** 
-        * @private
-        * @method _ieSelectFix
-        * @description The function we use as the onselectstart handler when we start a drag in Internet Explorer
-        */
-        _ieSelectFix: function() {
-            return false;
-        },
-        /** 
-        * @private
-        * @property _ieSelectBack
-        * @description We will hold a copy of the current "onselectstart" method on this property, and reset it after we are done using it.
-        */
-        _ieSelectBack: null,
-        /** 
-        * @private
-        * @method _setAutoRatio
-        * @param {Event} ev A mouse event.
-        * @description This method checks to see if the "autoRatio" config is set. If it is, we will check to see if the "Shift Key" is pressed. If so, we will set the config ratio to true.
-        */
-        _setAutoRatio: function(ev) {
-            if (this.get('autoRatio')) {
-                if (ev && ev.shiftKey) {
-                    //Shift Pressed
-                    this.set('ratio', true);
-                } else {
-                    this.set('ratio', this._configs.ratio._initialConfig.value);
-                }
-            }
-        },
-        /** 
-        * @private
-        * @method _handleMouseDown
-        * @param {Event} ev A mouse event.
-        * @description This method preps the autoRatio on MouseDown.
-        */
-        _handleMouseDown: function(ev) {
-            if (this._locked) {
-                return false;
-            }
-            if (D.getStyle(this._wrap, 'position') == 'absolute') {
-                this._positioned = true;
-            }
-            if (ev) {
-                this._setAutoRatio(ev);
-            }
-            if (this.browser.ie) {
-                this._ieSelectBack = document.body.onselectstart;
-                document.body.onselectstart = this._ieSelectFix;
-            }
-        },
-        /** 
-        * @private
-        * @method _handleMouseOver
-        * @param {Event} ev A mouse event.
-        * @description Adds CSS class names to the handles
-        */
-        _handleMouseOver: function(ev) {
-            if (this._locked) {
-                return false;
-            }
-            D.removeClass(this._wrap, this.CSS_RESIZE);
-
-            if (this.get('hover')) {
-                D.removeClass(this._wrap, this.CSS_HOVER);
-            }
-            var tar = Event.getTarget(ev);
-            if (!D.hasClass(tar, this.CSS_HANDLE)) {
-                tar = tar.parentNode;
-            }
-            if (D.hasClass(tar, this.CSS_HANDLE) && !this._active) {
-                D.addClass(tar, this.CSS_HANDLE + '-active');
-                for (var i in this._handles) {
-                    if (Lang.hasOwnProperty(this._handles, i)) {
-                        if (this._handles[i] == tar) {
-                            D.addClass(tar, this.CSS_HANDLE + '-' + i + '-active');
-                            break;
-                        }
-                    }
-                }
-            }
-
-            D.addClass(this._wrap, this.CSS_RESIZE);
-        },
-        /** 
-        * @private
-        * @method _handleMouseOut
-        * @param {Event} ev A mouse event.
-        * @description Removes CSS class names to the handles
-        */
-        _handleMouseOut: function(ev) {
-            D.removeClass(this._wrap, this.CSS_RESIZE);
-            if (this.get('hover') && !this._active) {
-                D.addClass(this._wrap, this.CSS_HOVER);
-            }
-            var tar = Event.getTarget(ev);
-            if (!D.hasClass(tar, this.CSS_HANDLE)) {
-                tar = tar.parentNode;
-            }
-            if (D.hasClass(tar, this.CSS_HANDLE) && !this._active) {
-                D.removeClass(tar, this.CSS_HANDLE + '-active');
-                for (var i in this._handles) {
-                    if (Lang.hasOwnProperty(this._handles, i)) {
-                        if (this._handles[i] == tar) {
-                            D.removeClass(tar, this.CSS_HANDLE + '-' + i + '-active');
-                            break;
-                        }
-                    }
-                }
-            }
-            D.addClass(this._wrap, this.CSS_RESIZE);
-        },
-        /** 
-        * @private
-        * @method _handleStartDrag
-        * @param {Object} args The args passed from the CustomEvent.
-        * @param {Object} dd The <a href="YAHOO.util.DragDrop.html">YAHOO.util.DragDrop</a> object we are working with.
-        * @description Resizes the proxy, sets up the <a href="YAHOO.util.DragDrop.html">YAHOO.util.DragDrop</a> handlers, updates the status div and preps the cache
-        */
-        _handleStartDrag: function(args, dd) {
-            var tar = dd.getDragEl();
-            if (D.hasClass(tar, this.CSS_HANDLE)) {
-                if (D.getStyle(this._wrap, 'position') == 'absolute') {
-                    this._positioned = true;
-                }
-                this._active = true;
-                this._currentDD = dd;
-                if (this._proxy) {
-                    this._proxy.style.visibility = 'visible';
-                    this._proxy.style.zIndex = '1000';
-                    this._proxy.style.height = this.get('element').clientHeight + 'px';
-                    this._proxy.style.width = this.get('element').clientWidth + 'px';
-                }
-
-                for (var i in this._handles) {
-                    if (Lang.hasOwnProperty(this._handles, i)) {
-                        if (this._handles[i] == tar) {
-                            this._currentHandle = i;
-                            var handle = '_handle_for_' + i;
-                            D.addClass(tar, this.CSS_HANDLE + '-' + i + '-active');
-                            dd.on('dragEvent', this[handle], this, true);
-                            dd.on('mouseUpEvent', this._handleMouseUp, this, true);
-                            break;
-                        }
-                    }
-                }
-
-
-                D.addClass(tar, this.CSS_HANDLE + '-active');
-
-                if (this.get('proxy')) {
-                    var xy = D.getXY(this.get('element'));
-                    D.setXY(this._proxy, xy);
-                    if (this.get('ghost')) {
-                        this.addClass(this.CSS_GHOST);
-                    }
-                }
-                D.addClass(this._wrap, this.CSS_RESIZING);
-                this._setCache();
-                this._updateStatus(this._cache.height, this._cache.width, this._cache.top, this._cache.left);
-                this.fireEvent('startResize', { type: 'startresize', target: this});
-            }
-        },
-        /** 
-        * @private
-        * @method _setCache
-        * @description Sets up the this._cache hash table.
-        */
-        _setCache: function() {
-            this._cache.xy = D.getXY(this._wrap);
-            D.setXY(this._wrap, this._cache.xy);
-            this._cache.height = this.get('clientHeight');
-            this._cache.width = this.get('clientWidth');
-            this._cache.start.height = this._cache.height;
-            this._cache.start.width = this._cache.width;
-            this._cache.start.top = this._cache.xy[1];
-            this._cache.start.left = this._cache.xy[0];
-            this._cache.top = this._cache.xy[1];
-            this._cache.left = this._cache.xy[0];
-            this.set('height', this._cache.height, true);
-            this.set('width', this._cache.width, true);
-        },
-        /** 
-        * @private
-        * @method _handleMouseUp
-        * @param {Event} ev A mouse event.
-        * @description Cleans up listeners, hides proxy element and removes class names.
-        */
-        _handleMouseUp: function(ev) {
-            this._active = false;
-
-            var handle = '_handle_for_' + this._currentHandle;
-            this._currentDD.unsubscribe('dragEvent', this[handle], this, true);
-            this._currentDD.unsubscribe('mouseUpEvent', this._handleMouseUp, this, true);
-
-            if (this._proxy) {
-                this._proxy.style.visibility = 'hidden';
-                this._proxy.style.zIndex = '-1';
-                if (this.get('setSize')) {
-                    this.resize(ev, this._cache.height, this._cache.width, this._cache.top, this._cache.left, true);
-                } else {
-                    this.fireEvent('resize', { ev: 'resize', target: this, height: this._cache.height, width: this._cache.width, top: this._cache.top, left: this._cache.left });
-                }
-
-                if (this.get('ghost')) {
-                    this.removeClass(this.CSS_GHOST);
-                }
-            }
-
-            if (this.get('hover')) {
-                D.addClass(this._wrap, this.CSS_HOVER);
-            }
-            if (this._status) {
-                D.setStyle(this._status, 'display', 'none');
-            }
-            if (this.browser.ie) {
-                document.body.onselectstart = this._ieSelectBack;
-            }
-
-            if (this.browser.ie) {
-                D.removeClass(this._wrap, this.CSS_RESIZE);
-            }
-
-            for (var i in this._handles) {
-                if (Lang.hasOwnProperty(this._handles, i)) {
-                    D.removeClass(this._handles[i], this.CSS_HANDLE + '-active');
-                }
-            }
-            if (this.get('hover') && !this._active) {
-                D.addClass(this._wrap, this.CSS_HOVER);
-            }
-            D.removeClass(this._wrap, this.CSS_RESIZING);
-
-            D.removeClass(this._handles[this._currentHandle], this.CSS_HANDLE + '-' + this._currentHandle + '-active');
-            D.removeClass(this._handles[this._currentHandle], this.CSS_HANDLE + '-active');
-
-            if (this.browser.ie) {
-                D.addClass(this._wrap, this.CSS_RESIZE);
-            }
-
-            this._resizeEvent = null;
-            this._currentHandle = null;
-            
-            if (!this.get('animate')) {
-                this.set('height', this._cache.height, true);
-                this.set('width', this._cache.width, true);
-            }
-
-            this.fireEvent('endResize', { ev: 'endResize', target: this, height: this._cache.height, width: this._cache.width, top: this._cache.top, left: this._cache.left });
-        },
-        /** 
-        * @private
-        * @method _setRatio
-        * @param {Number} h The height offset.
-        * @param {Number} w The with offset.
-        * @param {Number} t The top offset.
-        * @param {Number} l The left offset.
-        * @description Using the Height, Width, Top & Left, it recalcuates them based on the original element size.
-        * @return {Array} The new Height, Width, Top & Left settings
-        */
-        _setRatio: function(h, w, t, l) {
-            var oh = h, ow = w;
-            if (this.get('ratio')) {
-                var orgH = this._cache.height,
-                    orgW = this._cache.width,
-                    nh = parseInt(this.get('height'), 10),
-                    nw = parseInt(this.get('width'), 10),
-                    maxH = this.get('maxHeight'),
-                    minH = this.get('minHeight'),
-                    maxW = this.get('maxWidth'),
-                    minW = this.get('minWidth');
-
-                switch (this._currentHandle) {
-                    case 'l':
-                        h = nh * (w / nw);
-                        h = Math.min(Math.max(minH, h), maxH);                        
-                        w = nw * (h / nh);
-                        t = (this._cache.start.top - (-((nh - h) / 2)));
-                        l = (this._cache.start.left - (-((nw - w))));
-                        break;
-                    case 'r':
-                        h = nh * (w / nw);
-                        h = Math.min(Math.max(minH, h), maxH);                        
-                        w = nw * (h / nh);
-                        t = (this._cache.start.top - (-((nh - h) / 2)));
-                        break;
-                    case 't':
-                        w = nw * (h / nh);
-                        h = nh * (w / nw);
-                        l = (this._cache.start.left - (-((nw - w) / 2)));
-                        t = (this._cache.start.top - (-((nh - h))));
-                        break;
-                    case 'b':
-                        w = nw * (h / nh);
-                        h = nh * (w / nw);
-                        l = (this._cache.start.left - (-((nw - w) / 2)));
-                        break;
-                    case 'bl':
-                        h = nh * (w / nw);
-                        w = nw * (h / nh);
-                        l = (this._cache.start.left - (-((nw - w))));
-                        break;
-                    case 'br':
-                        h = nh * (w / nw);
-                        w = nw * (h / nh);
-                        break;
-                    case 'tl':
-                        h = nh * (w / nw);
-                        w = nw * (h / nh);
-                        l = (this._cache.start.left - (-((nw - w))));
-                        t = (this._cache.start.top - (-((nh - h))));
-                        break;
-                    case 'tr':
-                        h = nh * (w / nw);
-                        w = nw * (h / nh);
-                        l = (this._cache.start.left);
-                        t = (this._cache.start.top - (-((nh - h))));
-                        break;
-                }
-                oh = this._checkHeight(h);
-                ow = this._checkWidth(w);
-                if ((oh != h) || (ow != w)) {
-                    t = 0;
-                    l = 0;
-                    if (oh != h) {
-                        ow = this._cache.width;
-                    }
-                    if (ow != w) {
-                        oh = this._cache.height;
-                    }
-                }
-            }
-            return [oh, ow, t, l];
-        },
-        /** 
-        * @private
-        * @method _updateStatus
-        * @param {Number} h The new height setting.
-        * @param {Number} w The new width setting.
-        * @param {Number} t The new top setting.
-        * @param {Number} l The new left setting.
-        * @description Using the Height, Width, Top & Left, it updates the status element with the elements sizes.
-        */
-        _updateStatus: function(h, w, t, l) {
-            if (this._resizeEvent && (!Lang.isString(this._resizeEvent))) {
-                h = ((h === 0) ? this._cache.start.height : h);
-                w = ((w === 0) ? this._cache.start.width : w);
-                var h1 = parseInt(this.get('height'), 10),
-                    w1 = parseInt(this.get('width'), 10);
-                
-                if (isNaN(h1)) {
-                    h1 = parseInt(h, 10);
-                }
-                if (isNaN(w1)) {
-                    w1 = parseInt(w, 10);
-                }
-                var diffH = (parseInt(h, 10) - h1);
-                var diffW = (parseInt(w, 10) - w1);
-                this._cache.offsetHeight = diffH;
-                this._cache.offsetWidth = diffW;
-                if (this.get('status')) {
-                    D.setStyle(this._status, 'display', 'inline');
-                    //This will cause IE8 to crash if the status box is hidden..
-                    this._status.innerHTML = '<strong>' + parseInt(h, 10) + ' x ' + parseInt(w, 10) + '</strong><em>' + ((diffH > 0) ? '+' : '') + diffH + ' x ' + ((diffW > 0) ? '+' : '') + diffW + '</em>';
-                    D.setXY(this._status, [Event.getPageX(this._resizeEvent) + 12, Event.getPageY(this._resizeEvent) + 12]);
-                }
-            }
-        },
-        /** 
-        * @method lock
-        * @description Lock the resize so it can't be resized
-        * @param {Boolean} dd If the draggable config is set, lock it too
-        * @return {<a href="YAHOO.util.Resize.html">YAHOO.util.Resize</a>} The Resize instance
-        */
-        lock: function(dd) {
-            this._locked = true;
-            if (dd && this.dd) {
-                D.removeClass(this._wrap, 'yui-draggable');
-                this.dd.lock();
-            }
-            return this;
-        },
-        /** 
-        * @method unlock
-        * @description Unlock the resize so it can be resized
-        * @param {Boolean} dd If the draggable config is set, unlock it too
-        * @return {<a href="YAHOO.util.Resize.html">YAHOO.util.Resize</a>} The Resize instance
-        */
-        unlock: function(dd) {
-            this._locked = false;
-            if (dd && this.dd) {
-                D.addClass(this._wrap, 'yui-draggable');
-                this.dd.unlock();
-            }
-            return this;
-        },
-        /** 
-        * @method isLocked
-        * @description Check the locked status of the resize instance
-        * @return {Boolean}
-        */
-        isLocked: function() {
-            return this._locked;
-        },
-        /** 
-        * @method reset
-        * @description Resets the element to is start state.
-        * @return {<a href="YAHOO.util.Resize.html">YAHOO.util.Resize</a>} The Resize instance
-        */
-        reset: function() {
-            this.resize(null, this._cache.start.height, this._cache.start.width, this._cache.start.top, this._cache.start.left, true);
-            return this;
-        },
-        /** 
-        * @private
-        * @method resize
-        * @param {Event} ev The mouse event.
-        * @param {Number} h The new height setting.
-        * @param {Number} w The new width setting.
-        * @param {Number} t The new top setting.
-        * @param {Number} l The new left setting.
-        * @param {Boolean} force Resize the element (used for proxy resize).
-        * @param {Boolean} silent Don't fire the beforeResize Event.
-        * @description Resizes the element, wrapper or proxy based on the data from the handlers.
-        * @return {<a href="YAHOO.util.Resize.html">YAHOO.util.Resize</a>} The Resize instance
-        */
-        resize: function(ev, h, w, t, l, force, silent) {
-            if (this._locked) {
-                return false;
-            }
-            this._resizeEvent = ev;
-            var el = this._wrap, anim = this.get('animate'), set = true;
-            if (this._proxy && !force) {
-                el = this._proxy;
-                anim = false;
-            }
-            this._setAutoRatio(ev);
-            if (this._positioned) {
-                if (this._proxy) {
-                    t = this._cache.top - t;
-                    l = this._cache.left - l;
-                }
-            }
-            
-            
-            var ratio = this._setRatio(h, w, t, l);
-            h = parseInt(ratio[0], 10);
-            w = parseInt(ratio[1], 10);
-            t = parseInt(ratio[2], 10);
-            l = parseInt(ratio[3], 10);
-            
-            if (t == 0) {
-                //No Offset, get from cache
-                t = D.getY(el);
-            }
-            if (l == 0) {
-                //No Offset, get from cache
-                l = D.getX(el);
-            }
-
-            
-
-            if (this._positioned) {
-                if (this._proxy && force) {
-                    if (!anim) {
-                        el.style.top = this._proxy.style.top;
-                        el.style.left = this._proxy.style.left;
-                    } else {
-                        t = this._proxy.style.top;
-                        l = this._proxy.style.left;
-                    }
-                } else {
-                    if (!this.get('ratio') && !this._proxy) {
-                        t = this._cache.top + -(t);
-                        l = this._cache.left + -(l);
-                    }
-                    if (t) {
-                        if (this.get('minY')) {
-                            if (t < this.get('minY')) {
-                                t = this.get('minY');
-                            }
-                        }
-                        if (this.get('maxY')) {
-                            if (t > this.get('maxY')) {
-                                t = this.get('maxY');
-                            }
-                        }
-                    }
-                    if (l) {
-                        if (this.get('minX')) {
-                            if (l < this.get('minX')) {
-                                l = this.get('minX');
-                            }
-                        }
-                        if (this.get('maxX')) {
-                            if ((l + w) > this.get('maxX')) {
-                                l = (this.get('maxX') - w);
-                            }
-                        }
-                    }
-                }
-            }
-            if (!silent) {
-                var beforeReturn = this.fireEvent('beforeResize', { ev: 'beforeResize', target: this, height: h, width: w, top: t, left: l });
-                if (beforeReturn === false) {
-                    return false;
-                }
-            }
-
-            this._updateStatus(h, w, t, l);
-
-
-            if (this._positioned) {
-                if (this._proxy && force) {
-                    //Do nothing
-                } else {
-                    if (t) {
-                        D.setY(el, t);
-                        this._cache.top = t;
-                    }
-                    if (l) {
-                        D.setX(el, l);
-                        this._cache.left = l;
-                    }
-                }
-            }
-            if (h) {
-                if (!anim) {
-                    set = true;
-                    if (this._proxy && force) {
-                        if (!this.get('setSize')) {
-                            set = false;
-                        }
-                    }
-                    if (set) {
-                        el.style.height = h + 'px';
-                    }
-                    if ((this._proxy && force) || !this._proxy) {
-                        if (this._wrap != this.get('element')) {
-                            this.get('element').style.height = h + 'px';
-                        }
-                    }
-                }
-                this._cache.height = h;
-            }
-            if (w) {
-                this._cache.width = w;
-                if (!anim) {
-                    set = true;
-                    if (this._proxy && force) {
-                        if (!this.get('setSize')) {
-                            set = false;
-                        }
-                    }
-                    if (set) {
-                        el.style.width = w + 'px';
-                    }
-                    if ((this._proxy && force) || !this._proxy) {
-                        if (this._wrap != this.get('element')) {
-                            this.get('element').style.width = w + 'px';
-                        }
-                    }
-                }
-            }
-            if (anim) {
-                if (YAHOO.util.Anim) {
-                    var _anim = new YAHOO.util.Anim(el, {
-                        height: {
-                            to: this._cache.height
-                        },
-                        width: {
-                            to: this._cache.width
-                        }
-                    }, this.get('animateDuration'), this.get('animateEasing'));
-                    if (this._positioned) {
-                        if (t) {
-                            _anim.attributes.top = {
-                                to: parseInt(t, 10)
-                            };
-                        }
-                        if (l) {
-                            _anim.attributes.left = {
-                                to: parseInt(l, 10)
-                            };
-                        }
-                    }
-
-                    if (this._wrap != this.get('element')) {
-                        _anim.onTween.subscribe(function() {
-                            this.get('element').style.height = el.style.height;
-                            this.get('element').style.width = el.style.width;
-                        }, this, true);
-                    }
-
-                    _anim.onComplete.subscribe(function() {
-                        this.set('height', h);
-                        this.set('width', w);
-                        this.fireEvent('resize', { ev: 'resize', target: this, height: h, width: w, top: t, left: l });
-                    }, this, true);
-                    _anim.animate();
-
-                }
-            } else {
-                if (this._proxy && !force) {
-                    this.fireEvent('proxyResize', { ev: 'proxyresize', target: this, height: h, width: w, top: t, left: l });
-                } else {
-                    this.fireEvent('resize', { ev: 'resize', target: this, height: h, width: w, top: t, left: l });
-                }
-            }
-            return this;
-        },
-        /** 
-        * @private
-        * @method _handle_for_br
-        * @param {Object} args The arguments from the CustomEvent.
-        * @description Handles the sizes for the Bottom Right handle.
-        */
-        _handle_for_br: function(args) {
-            var newW = this._setWidth(args.e);
-            var newH = this._setHeight(args.e);
-            this.resize(args.e, newH, newW, 0, 0);
-        },
-        /** 
-        * @private
-        * @method _handle_for_bl
-        * @param {Object} args The arguments from the CustomEvent.
-        * @description Handles the sizes for the Bottom Left handle.
-        */
-        _handle_for_bl: function(args) {
-            var newW = this._setWidth(args.e, true);
-            var newH = this._setHeight(args.e);
-            var l = (newW - this._cache.width);
-            this.resize(args.e, newH, newW, 0, l);
-        },
-        /** 
-        * @private
-        * @method _handle_for_tl
-        * @param {Object} args The arguments from the CustomEvent.
-        * @description Handles the sizes for the Top Left handle.
-        */
-        _handle_for_tl: function(args) {
-            var newW = this._setWidth(args.e, true);
-            var newH = this._setHeight(args.e, true);
-            var t = (newH - this._cache.height);
-            var l = (newW - this._cache.width);
-            this.resize(args.e, newH, newW, t, l);
-        },
-        /** 
-        * @private
-        * @method _handle_for_tr
-        * @param {Object} args The arguments from the CustomEvent.
-        * @description Handles the sizes for the Top Right handle.
-        */
-        _handle_for_tr: function(args) {
-            var newW = this._setWidth(args.e);
-            var newH = this._setHeight(args.e, true);
-            var t = (newH - this._cache.height);
-            this.resize(args.e, newH, newW, t, 0);
-        },
-        /** 
-        * @private
-        * @method _handle_for_r
-        * @param {Object} args The arguments from the CustomEvent.
-        * @description Handles the sizes for the Right handle.
-        */
-        _handle_for_r: function(args) {
-            this._dds.r.setYConstraint(0,0);
-            var newW = this._setWidth(args.e);
-            this.resize(args.e, 0, newW, 0, 0);
-        },
-        /** 
-        * @private
-        * @method _handle_for_l
-        * @param {Object} args The arguments from the CustomEvent.
-        * @description Handles the sizes for the Left handle.
-        */
-        _handle_for_l: function(args) {
-            this._dds.l.setYConstraint(0,0);
-            var newW = this._setWidth(args.e, true);
-            var l = (newW - this._cache.width);
-            this.resize(args.e, 0, newW, 0, l);
-        },
-        /** 
-        * @private
-        * @method _handle_for_b
-        * @param {Object} args The arguments from the CustomEvent.
-        * @description Handles the sizes for the Bottom handle.
-        */
-        _handle_for_b: function(args) {
-            this._dds.b.setXConstraint(0,0);
-            var newH = this._setHeight(args.e);
-            this.resize(args.e, newH, 0, 0, 0);
-        },
-        /** 
-        * @private
-        * @method _handle_for_t
-        * @param {Object} args The arguments from the CustomEvent.
-        * @description Handles the sizes for the Top handle.
-        */
-        _handle_for_t: function(args) {
-            this._dds.t.setXConstraint(0,0);
-            var newH = this._setHeight(args.e, true);
-            var t = (newH - this._cache.height);
-            this.resize(args.e, newH, 0, t, 0);
-        },
-        /** 
-        * @private
-        * @method _setWidth
-        * @param {Event} ev The mouse event.
-        * @param {Boolean} flip Argument to determine the direction of the movement.
-        * @description Calculates the width based on the mouse event.
-        * @return {Number} The new value
-        */
-        _setWidth: function(ev, flip) {
-            var xy = this._cache.xy[0],
-                w = this._cache.width,
-                x = Event.getPageX(ev),
-                nw = (x - xy);
-
-                if (flip) {
-                    nw = (xy - x) + parseInt(this.get('width'), 10);
-                }
-                
-                nw = this._snapTick(nw, this.get('xTicks'));
-                nw = this._checkWidth(nw);
-            return nw;
-        },
-        /** 
-        * @private
-        * @method _checkWidth
-        * @param {Number} w The width to check.
-        * @description Checks the value passed against the maxWidth and minWidth.
-        * @return {Number} the new value
-        */
-        _checkWidth: function(w) {
-            if (this.get('minWidth')) {
-                if (w <= this.get('minWidth')) {
-                    w = this.get('minWidth');
-                }
-            }
-            if (this.get('maxWidth')) {
-                if (w >= this.get('maxWidth')) {
-                    w = this.get('maxWidth');
-                }
-            }
-            return w;
-        },
-        /** 
-        * @private
-        * @method _checkHeight
-        * @param {Number} h The height to check.
-        * @description Checks the value passed against the maxHeight and minHeight.
-        * @return {Number} The new value
-        */
-        _checkHeight: function(h) {
-            if (this.get('minHeight')) {
-                if (h <= this.get('minHeight')) {
-                    h = this.get('minHeight');
-                }
-            }
-            if (this.get('maxHeight')) {
-                if (h >= this.get('maxHeight')) {
-                    h = this.get('maxHeight');
-                }
-            }
-            return h;
-        },
-        /** 
-        * @private
-        * @method _setHeight
-        * @param {Event} ev The mouse event.
-        * @param {Boolean} flip Argument to determine the direction of the movement.
-        * @description Calculated the height based on the mouse event.
-        * @return {Number} The new value
-        */
-        _setHeight: function(ev, flip) {
-            var xy = this._cache.xy[1],
-                h = this._cache.height,
-                y = Event.getPageY(ev),
-                nh = (y - xy);
-
-                if (flip) {
-                    nh = (xy - y) + parseInt(this.get('height'), 10);
-                }
-                nh = this._snapTick(nh, this.get('yTicks'));
-                nh = this._checkHeight(nh);
-                
-            return nh;
-        },
-        /** 
-        * @private
-        * @method _snapTick
-        * @param {Number} size The size to tick against.
-        * @param {Number} pix The tick pixels.
-        * @description Adjusts the number based on the ticks used.
-        * @return {Number} the new snapped position
-        */
-        _snapTick: function(size, pix) {
-            if (!size || !pix) {
-                return size;
-            }
-            var _s = size;
-            var _x = size % pix;
-            if (_x > 0) {
-                if (_x > (pix / 2)) {
-                    _s = size + (pix - _x);
-                } else {
-                    _s = size - _x;
-                }
-            }
-            return _s;
-        },
-        /** 
-        * @private
-        * @method init
-        * @description The Resize class's initialization method
-        */        
-        init: function(p_oElement, p_oAttributes) {
-            this._locked = false;
-            this._cache = {
-                xy: [],
-                height: 0,
-                width: 0,
-                top: 0,
-                left: 0,
-                offsetHeight: 0,
-                offsetWidth: 0,
-                start: {
-                    height: 0,
-                    width: 0,
-                    top: 0,
-                    left: 0
-                }
-            };
-
-            Resize.superclass.init.call(this, p_oElement, p_oAttributes);
-
-            this.set('setSize', this.get('setSize'));
-
-            if (p_oAttributes.height) {
-                this.set('height', parseInt(p_oAttributes.height, 10));
-            } else {
-                var h = this.getStyle('height');
-                if (h == 'auto') {
-                    this.set('height', parseInt(this.get('element').offsetHeight, 10));
-                }
-            }
-            if (p_oAttributes.width) {
-                this.set('width', parseInt(p_oAttributes.width, 10));
-            } else {
-                var w = this.getStyle('width');
-                if (w == 'auto') {
-                    this.set('width', parseInt(this.get('element').offsetWidth, 10));
-                }
-            }
-            
-            var id = p_oElement;
-            if (!Lang.isString(id)) {
-                id = D.generateId(id);
-            }
-            Resize._instances[id] = this;
-
-            this._active = false;
-            
-            this._createWrap();
-            this._createProxy();
-            this._createHandles();
-
-        },
-        /**
-        * @method getProxyEl
-        * @description Get the HTML reference for the proxy, returns null if no proxy.
-        * @return {HTMLElement} The proxy element
-        */      
-        getProxyEl: function() {
-            return this._proxy;
-        },
-        /**
-        * @method getWrapEl
-        * @description Get the HTML reference for the wrap element, returns the current element if not wrapped.
-        * @return {HTMLElement} The wrap element
-        */      
-        getWrapEl: function() {
-            return this._wrap;
-        },
-        /**
-        * @method getStatusEl
-        * @description Get the HTML reference for the status element.
-        * @return {HTMLElement} The status element
-        */      
-        getStatusEl: function() {
-            return this._status;
-        },
-        /**
-        * @method getActiveHandleEl
-        * @description Get the HTML reference for the currently active resize handle.
-        * @return {HTMLElement} The handle element that is active
-        */      
-        getActiveHandleEl: function() {
-            return this._handles[this._currentHandle];
-        },
-        /**
-        * @method isActive
-        * @description Returns true or false if a resize operation is currently active on the element.
-        * @return {Boolean}
-        */      
-        isActive: function() {
-            return ((this._active) ? true : false);
-        },
-        /**
-        * @private
-        * @method initAttributes
-        * @description Initializes all of the configuration attributes used to create a resizable element.
-        * @param {Object} attr Object literal specifying a set of 
-        * configuration attributes used to create the utility.
-        */      
-        initAttributes: function(attr) {
-            Resize.superclass.initAttributes.call(this, attr);
-
-            /**
-            * @attribute useShim
-            * @description This setting will be passed to the DragDrop instances on the resize handles and for the draggable property.
-            * This property should be used if you want the resize handles to work over iframe and other elements.
-            * @type Boolean
-            */
-            this.setAttributeConfig('useShim', {
-                value: ((attr.useShim === true) ? true : false),
-                validator: YAHOO.lang.isBoolean,
-                method: function(u) {
-                    for (var i in this._dds) {
-                        if (Lang.hasOwnProperty(this._dds, i)) {
-                            this._dds[i].useShim = u;
-                        }
-                    }
-                    if (this.dd) {
-                        this.dd.useShim = u;
-                    }
-                }
-            });
-            /**
-            * @attribute setSize
-            * @description Set the size of the resized element, if set to false the element will not be auto resized,
-            * the resize event will contain the dimensions so the end user can resize it on their own.
-            * This setting will only work with proxy set to true and animate set to false.
-            * @type Boolean
-            */
-            this.setAttributeConfig('setSize', {
-                value: ((attr.setSize === false) ? false : true),
-                validator: YAHOO.lang.isBoolean
-            });
-
-            /**
-            * @attribute wrap
-            * @description Should we wrap the element
-            * @type Boolean
-            */
-            this.setAttributeConfig('wrap', {
-                writeOnce: true,
-                validator: YAHOO.lang.isBoolean,
-                value: attr.wrap || false
-            });
-
-            /**
-            * @attribute handles
-            * @description The handles to use (any combination of): 't', 'b', 'r', 'l', 'bl', 'br', 'tl', 'tr'. Defaults to: ['r', 'b', 'br'].
-            * Can use a shortcut of All. Note: 8 way resizing should be done on an element that is absolutely positioned.
-            * @type Array
-            */
-            this.setAttributeConfig('handles', {
-                writeOnce: true,
-                value: attr.handles || ['r', 'b', 'br'],
-                validator: function(handles) {
-                    if (Lang.isString(handles) && handles.toLowerCase() == 'all') {
-                        handles = ['t', 'b', 'r', 'l', 'bl', 'br', 'tl', 'tr'];
-                    }
-                    if (!Lang.isArray(handles)) {
-                        handles = handles.replace(/, /g, ',');
-                        handles = handles.split(',');
-                    }
-                    this._configs.handles.value = handles;
-                }
-            });
-
-            /**
-            * @attribute width
-            * @description The width of the element
-            * @type Number
-            */
-            this.setAttributeConfig('width', {
-                value: attr.width || parseInt(this.getStyle('width'), 10),
-                validator: YAHOO.lang.isNumber,
-                method: function(width) {
-                    width = parseInt(width, 10);
-                    if (width > 0) {
-                        if (this.get('setSize')) {
-                            this.setStyle('width', width + 'px');
-                        }
-                        this._cache.width = width;
-                        this._configs.width.value = width;
-                    }
-                }
-            });
-
-            /**
-            * @attribute height
-            * @description The height of the element
-            * @type Number
-            */
-            this.setAttributeConfig('height', {
-                value: attr.height || parseInt(this.getStyle('height'), 10),
-                validator: YAHOO.lang.isNumber,
-                method: function(height) {
-                    height = parseInt(height, 10);
-                    if (height > 0) {
-                        if (this.get('setSize')) {
-                            this.setStyle('height', height + 'px');
-                        }
-                        this._cache.height = height;
-                        this._configs.height.value = height;
-                    }
-                }
-            });
-
-            /**
-            * @attribute minWidth
-            * @description The minimum width of the element
-            * @type Number
-            */
-            this.setAttributeConfig('minWidth', {
-                value: attr.minWidth || 15,
-                validator: YAHOO.lang.isNumber
-            });
-
-            /**
-            * @attribute minHeight
-            * @description The minimum height of the element
-            * @type Number
-            */
-            this.setAttributeConfig('minHeight', {
-                value: attr.minHeight || 15,
-                validator: YAHOO.lang.isNumber
-            });
-
-            /**
-            * @attribute maxWidth
-            * @description The maximum width of the element
-            * @type Number
-            */
-            this.setAttributeConfig('maxWidth', {
-                value: attr.maxWidth || 10000,
-                validator: YAHOO.lang.isNumber
-            });
-
-            /**
-            * @attribute maxHeight
-            * @description The maximum height of the element
-            * @type Number
-            */
-            this.setAttributeConfig('maxHeight', {
-                value: attr.maxHeight || 10000,
-                validator: YAHOO.lang.isNumber
-            });
-
-            /**
-            * @attribute minY
-            * @description The minimum y coord of the element
-            * @type Number
-            */
-            this.setAttributeConfig('minY', {
-                value: attr.minY || false
-            });
-
-            /**
-            * @attribute minX
-            * @description The minimum x coord of the element
-            * @type Number
-            */
-            this.setAttributeConfig('minX', {
-                value: attr.minX || false
-            });
-            /**
-            * @attribute maxY
-            * @description The max y coord of the element
-            * @type Number
-            */
-            this.setAttributeConfig('maxY', {
-                value: attr.maxY || false
-            });
-
-            /**
-            * @attribute maxX
-            * @description The max x coord of the element
-            * @type Number
-            */
-            this.setAttributeConfig('maxX', {
-                value: attr.maxX || false
-            });
-
-            /**
-            * @attribute animate
-            * @description Should be use animation to resize the element (can only be used if we use proxy).
-            * @type Boolean
-            */
-            this.setAttributeConfig('animate', {
-                value: attr.animate || false,
-                validator: function(value) {
-                    var ret = true;
-                    if (!YAHOO.util.Anim) {
-                        ret = false;
-                    }
-                    return ret;
-                }               
-            });
-
-            /**
-            * @attribute animateEasing
-            * @description The Easing to apply to the animation.
-            * @type Object
-            */
-            this.setAttributeConfig('animateEasing', {
-                value: attr.animateEasing || function() {
-                    var easing = false;
-                    if (YAHOO.util.Easing && YAHOO.util.Easing.easeOut) {
-                        easing = YAHOO.util.Easing.easeOut;
-                    }
-                    return easing;
-                }()
-            });
-
-            /**
-            * @attribute animateDuration
-            * @description The Duration to apply to the animation.
-            * @type Number
-            */
-            this.setAttributeConfig('animateDuration', {
-                value: attr.animateDuration || 0.5
-            });
-
-            /**
-            * @attribute proxy
-            * @description Resize a proxy element instead of the real element.
-            * @type Boolean
-            */
-            this.setAttributeConfig('proxy', {
-                value: attr.proxy || false,
-                validator: YAHOO.lang.isBoolean
-            });
-
-            /**
-            * @attribute ratio
-            * @description Maintain the element's ratio when resizing.
-            * @type Boolean
-            */
-            this.setAttributeConfig('ratio', {
-                value: attr.ratio || false,
-                validator: YAHOO.lang.isBoolean
-            });
-
-            /**
-            * @attribute ghost
-            * @description Apply an opacity filter to the element being resized (only works with proxy).
-            * @type Boolean
-            */
-            this.setAttributeConfig('ghost', {
-                value: attr.ghost || false,
-                validator: YAHOO.lang.isBoolean
-            });
-
-            /**
-            * @attribute draggable
-            * @description A convienence method to make the element draggable
-            * @type Boolean
-            */
-            this.setAttributeConfig('draggable', {
-                value: attr.draggable || false,
-                validator: YAHOO.lang.isBoolean,
-                method: function(dd) {
-                    if (dd && this._wrap) {
-                        this._setupDragDrop();
-                    } else {
-                        if (this.dd) {
-                            D.removeClass(this._wrap, this.CSS_DRAG);
-                            this.dd.unreg();
-                        }
-                    }
-                }
-            });
-
-            /**
-            * @attribute hover
-            * @description Only show the handles when they are being moused over.
-            * @type Boolean
-            */
-            this.setAttributeConfig('hover', {
-                value: attr.hover || false,
-                validator: YAHOO.lang.isBoolean
-            });
-
-            /**
-            * @attribute hiddenHandles
-            * @description Don't show the handles, just use the cursor to the user.
-            * @type Boolean
-            */
-            this.setAttributeConfig('hiddenHandles', {
-                value: attr.hiddenHandles || false,
-                validator: YAHOO.lang.isBoolean
-            });
-
-            /**
-            * @attribute knobHandles
-            * @description Use the smaller handles, instead if the full size handles.
-            * @type Boolean
-            */
-            this.setAttributeConfig('knobHandles', {
-                value: attr.knobHandles || false,
-                validator: YAHOO.lang.isBoolean
-            });
-
-            /**
-            * @attribute xTicks
-            * @description The number of x ticks to span the resize to.
-            * @type Number or False
-            */
-            this.setAttributeConfig('xTicks', {
-                value: attr.xTicks || false
-            });
-
-            /**
-            * @attribute yTicks
-            * @description The number of y ticks to span the resize to.
-            * @type Number or False
-            */
-            this.setAttributeConfig('yTicks', {
-                value: attr.yTicks || false
-            });
-
-            /**
-            * @attribute status
-            * @description Show the status (new size) of the resize.
-            * @type Boolean
-            */
-            this.setAttributeConfig('status', {
-                value: attr.status || false,
-                validator: YAHOO.lang.isBoolean
-            });
-
-            /**
-            * @attribute autoRatio
-            * @description Using the shift key during a resize will toggle the ratio config.
-            * @type Boolean
-            */
-            this.setAttributeConfig('autoRatio', {
-                value: attr.autoRatio || false,
-                validator: YAHOO.lang.isBoolean
-            });
-
-        },
-        /**
-        * @method destroy
-        * @description Destroys the resize object and all of it's elements & listeners.
-        */        
-        destroy: function() {
-            for (var h in this._handles) {
-                if (Lang.hasOwnProperty(this._handles, h)) {
-                    Event.purgeElement(this._handles[h]);
-                    this._handles[h].parentNode.removeChild(this._handles[h]);
-                }
-            }
-            if (this._proxy) {
-                this._proxy.parentNode.removeChild(this._proxy);
-            }
-            if (this._status) {
-                this._status.parentNode.removeChild(this._status);
-            }
-            if (this.dd) {
-                this.dd.unreg();
-                D.removeClass(this._wrap, this.CSS_DRAG);
-            }
-            if (this._wrap != this.get('element')) {
-                this.setStyle('position', '');
-                this.setStyle('top', '');
-                this.setStyle('left', '');
-                this._wrap.parentNode.replaceChild(this.get('element'), this._wrap);
-            }
-            this.removeClass(this.CSS_RESIZE);
-
-            delete YAHOO.util.Resize._instances[this.get('id')];
-            //Brutal Object Destroy
-            for (var i in this) {
-                if (Lang.hasOwnProperty(this, i)) {
-                    this[i] = null;
-                    delete this[i];
-                }
-            }
-        },
-        /**
-        * @method toString
-        * @description Returns a string representing the Resize Object.
-        * @return {String}
-        */        
-        toString: function() {
-            if (this.get) {
-                return 'Resize (#' + this.get('id') + ')';
-            }
-            return 'Resize Utility';
-        }
-    });
-
-    YAHOO.util.Resize = Resize;
-/**
-* @event dragEvent
-* @description Fires when the <a href="YAHOO.util.DragDrop.html">YAHOO.util.DragDrop</a> dragEvent is fired for the config option draggable.
-* @type YAHOO.util.CustomEvent
-*/
-/**
-* @event startResize
-* @description Fires when a resize action is started.
-* @type YAHOO.util.CustomEvent
-*/
-/**
-* @event endResize
-* @description Fires when the mouseUp event from the Drag Instance fires.
-* @type YAHOO.util.CustomEvent
-*/
-/**
-* @event resize
-* @description Fires on every element resize (only fires once when used with proxy config setting).
-* @type YAHOO.util.CustomEvent
-*/
-/**
-* @event beforeResize
-* @description Fires before every element resize after the size calculations, returning false will stop the resize.
-* @type YAHOO.util.CustomEvent
-*/
-/**
-* @event proxyResize
-* @description Fires on every proxy resize (only fires when used with proxy config setting).
-* @type YAHOO.util.CustomEvent
-*/
-
-})();
-
-YAHOO.register("resize", YAHOO.util.Resize, {version: "2.8.0r4", build: "2449"});
diff --git a/koha-tmpl/intranet-tmpl/prog/en/lib/yui/selector/selector-debug.js b/koha-tmpl/intranet-tmpl/prog/en/lib/yui/selector/selector-debug.js
deleted file mode 100644 (file)
index 4439874..0000000
+++ /dev/null
@@ -1,651 +0,0 @@
-/*
-Copyright (c) 2009, Yahoo! Inc. All rights reserved.
-Code licensed under the BSD License:
-http://developer.yahoo.net/yui/license.txt
-version: 2.8.0r4
-*/
-/**
- * The selector module provides helper methods allowing CSS3 Selectors to be used with DOM elements.
- * @module selector
- * @title Selector Utility
- * @namespace YAHOO.util
- * @requires yahoo, dom
- */
-
-(function() {
-var Y = YAHOO.util;
-
-/**
- * Provides helper methods for collecting and filtering DOM elements.
- * @namespace YAHOO.util
- * @class Selector
- * @static
- */
-
-Y.Selector = {
-    _foundCache: [],
-    _regexCache: {},
-
-    _re: {
-        nth: /^(?:([-]?\d*)(n){1}|(odd|even)$)*([-+]?\d*)$/,
-        attr: /(\[.*\])/g,
-        urls: /^(?:href|src)/
-    },
-
-    /**
-     * Default document for use queries 
-     * @property document
-     * @type object
-     * @default window.document
-     */
-    document: window.document,
-    /**
-     * Mapping of attributes to aliases, normally to work around HTMLAttributes
-     * that conflict with JS reserved words.
-     * @property attrAliases
-     * @type object
-     */
-    attrAliases: {
-    },
-
-    /**
-     * Mapping of shorthand tokens to corresponding attribute selector 
-     * @property shorthand
-     * @type object
-     */
-    shorthand: {
-        //'(?:(?:[^\\)\\]\\s*>+~,]+)(?:-?[_a-z]+[-\\w]))+#(-?[_a-z]+[-\\w]*)': '[id=$1]',
-        '\\#(-?[_a-z]+[-\\w]*)': '[id=$1]',
-        '\\.(-?[_a-z]+[-\\w]*)': '[class~=$1]'
-    },
-
-    /**
-     * List of operators and corresponding boolean functions. 
-     * These functions are passed the attribute and the current node's value of the attribute.
-     * @property operators
-     * @type object
-     */
-    operators: {
-        '=': function(attr, val) { return attr === val; }, // Equality
-        '!=': function(attr, val) { return attr !== val; }, // Inequality
-        '~=': function(attr, val) { // Match one of space seperated words 
-            var s = ' ';
-            return (s + attr + s).indexOf((s + val + s)) > -1;
-        },
-        '|=': function(attr, val) { return attr === val || attr.slice(0, val.length + 1) === val + '-'; }, // Matches value followed by optional hyphen
-        '^=': function(attr, val) { return attr.indexOf(val) === 0; }, // Match starts with value
-        '$=': function(attr, val) { return attr.slice(-val.length) === val; }, // Match ends with value
-        '*=': function(attr, val) { return attr.indexOf(val) > -1; }, // Match contains value as substring 
-        '': function(attr, val) { return attr; } // Just test for existence of attribute
-    },
-
-    /**
-     * List of pseudo-classes and corresponding boolean functions. 
-     * These functions are called with the current node, and any value that was parsed with the pseudo regex.
-     * @property pseudos
-     * @type object
-     */
-    pseudos: {
-        'root': function(node) {
-            return node === node.ownerDocument.documentElement;
-        },
-
-        'nth-child': function(node, val) {
-            return Y.Selector._getNth(node, val);
-        },
-
-        'nth-last-child': function(node, val) {
-            return Y.Selector._getNth(node, val, null, true);
-        },
-
-        'nth-of-type': function(node, val) {
-            return Y.Selector._getNth(node, val, node.tagName);
-        },
-         
-        'nth-last-of-type': function(node, val) {
-            return Y.Selector._getNth(node, val, node.tagName, true);
-        },
-         
-        'first-child': function(node) {
-            return Y.Selector._getChildren(node.parentNode)[0] === node;
-        },
-
-        'last-child': function(node) {
-            var children = Y.Selector._getChildren(node.parentNode);
-            return children[children.length - 1] === node;
-        },
-
-        'first-of-type': function(node, val) {
-            return Y.Selector._getChildren(node.parentNode, node.tagName)[0];
-        },
-         
-        'last-of-type': function(node, val) {
-            var children = Y.Selector._getChildren(node.parentNode, node.tagName);
-            return children[children.length - 1];
-        },
-         
-        'only-child': function(node) {
-            var children = Y.Selector._getChildren(node.parentNode);
-            return children.length === 1 && children[0] === node;
-        },
-
-        'only-of-type': function(node) {
-            return Y.Selector._getChildren(node.parentNode, node.tagName).length === 1;
-        },
-
-        'empty': function(node) {
-            return node.childNodes.length === 0;
-        },
-
-        'not': function(node, simple) {
-            return !Y.Selector.test(node, simple);
-        },
-
-        'contains': function(node, str) {
-            var text = node.innerText || node.textContent || '';
-            return text.indexOf(str) > -1;
-        },
-        'checked': function(node) {
-            return node.checked === true;
-        }
-    },
-
-    /**
-     * Test if the supplied node matches the supplied selector.
-     * @method test
-     *
-     * @param {HTMLElement | String} node An id or node reference to the HTMLElement being tested.
-     * @param {string} selector The CSS Selector to test the node against.
-     * @return{boolean} Whether or not the node matches the selector.
-     * @static
-    
-     */
-    test: function(node, selector) {
-        node = Y.Selector.document.getElementById(node) || node;
-
-        if (!node) {
-            return false;
-        }
-
-        var groups = selector ? selector.split(',') : [];
-        if (groups.length) {
-            for (var i = 0, len = groups.length; i < len; ++i) {
-                if ( Y.Selector._test(node, groups[i]) ) { // passes if ANY group matches
-                    return true;
-                }
-            }
-            return false;
-        }
-        return Y.Selector._test(node, selector);
-    },
-
-    _test: function(node, selector, token, deDupe) {
-        token = token || Y.Selector._tokenize(selector).pop() || {};
-
-        if (!node.tagName ||
-            (token.tag !== '*' && node.tagName !== token.tag) ||
-            (deDupe && node._found) ) {
-            return false;
-        }
-
-        if (token.attributes.length) {
-            var val,
-                ieFlag,
-                re_urls = Y.Selector._re.urls;
-
-            if (!node.attributes || !node.attributes.length) {
-                return false;
-            }
-            for (var i = 0, attr; attr = token.attributes[i++];) {
-                ieFlag = (re_urls.test(attr[0])) ? 2 : 0;
-                val = node.getAttribute(attr[0], ieFlag);
-                if (val === null || val === undefined) {
-                    return false;
-                }
-                if ( Y.Selector.operators[attr[1]] &&
-                        !Y.Selector.operators[attr[1]](val, attr[2])) {
-                    return false;
-                }
-            }
-        }
-
-        if (token.pseudos.length) {
-            for (var i = 0, len = token.pseudos.length; i < len; ++i) {
-                if (Y.Selector.pseudos[token.pseudos[i][0]] &&
-                        !Y.Selector.pseudos[token.pseudos[i][0]](node, token.pseudos[i][1])) {
-                    return false;
-                }
-            }
-        }
-
-        return (token.previous && token.previous.combinator !== ',') ?
-                Y.Selector._combinators[token.previous.combinator](node, token) :
-                true;
-    },
-
-    /**
-     * Filters a set of nodes based on a given CSS selector. 
-     * @method filter
-     *
-     * @param {array} nodes A set of nodes/ids to filter. 
-     * @param {string} selector The selector used to test each node.
-     * @return{array} An array of nodes from the supplied array that match the given selector.
-     * @static
-     */
-    filter: function(nodes, selector) {
-        nodes = nodes || [];
-
-        var node,
-            result = [],
-            tokens = Y.Selector._tokenize(selector);
-
-        if (!nodes.item) { // if not HTMLCollection, handle arrays of ids and/or nodes
-            YAHOO.log('filter: scanning input for HTMLElements/IDs', 'info', 'Selector');
-            for (var i = 0, len = nodes.length; i < len; ++i) {
-                if (!nodes[i].tagName) { // tagName limits to HTMLElements 
-                    node = Y.Selector.document.getElementById(nodes[i]);
-                    if (node) { // skip IDs that return null 
-                        nodes[i] = node;
-                    } else {
-                        YAHOO.log('filter: skipping invalid node', 'warn', 'Selector');
-                    }
-                }
-            }
-        }
-        result = Y.Selector._filter(nodes, Y.Selector._tokenize(selector)[0]);
-        YAHOO.log('filter: returning:' + result.length, 'info', 'Selector');
-        return result;
-    },
-
-    _filter: function(nodes, token, firstOnly, deDupe) {
-        var result = firstOnly ? null : [],
-            foundCache = Y.Selector._foundCache;
-
-        for (var i = 0, len = nodes.length; i < len; i++) {
-            if (! Y.Selector._test(nodes[i], '', token, deDupe)) {
-                continue;
-            }
-
-            if (firstOnly) {
-                return nodes[i];
-            }
-            if (deDupe) {
-                if (nodes[i]._found) {
-                    continue;
-                }
-                nodes[i]._found = true;
-                foundCache[foundCache.length] = nodes[i];
-            }
-
-            result[result.length] = nodes[i];
-        }
-
-        return result;
-    },
-
-    /**
-     * Retrieves a set of nodes based on a given CSS selector. 
-     * @method query
-     *
-     * @param {string} selector The CSS Selector to test the node against.
-     * @param {HTMLElement | String} root optional An id or HTMLElement to start the query from. Defaults to Selector.document.
-     * @param {Boolean} firstOnly optional Whether or not to return only the first match.
-     * @return {Array} An array of nodes that match the given selector.
-     * @static
-     */
-    query: function(selector, root, firstOnly) {
-        var result = Y.Selector._query(selector, root, firstOnly);
-        YAHOO.log('query: returning ' + result, 'info', 'Selector');
-        return result;
-    },
-
-
-    _query: function(selector, root, firstOnly, deDupe) {
-        var result =  (firstOnly) ? null : [],
-            node;
-
-        if (!selector) {
-            return result;
-        }
-
-        var groups = selector.split(','); // TODO: handle comma in attribute/pseudo
-
-        if (groups.length > 1) {
-            var found;
-            for (var i = 0, len = groups.length; i < len; ++i) {
-                found = Y.Selector._query(groups[i], root, firstOnly, true);
-                result = firstOnly ? found : result.concat(found); 
-            }
-            Y.Selector._clearFoundCache();
-            return result;
-        }
-
-        if (root && !root.nodeName) { // assume ID
-            root = Y.Selector.document.getElementById(root);
-            if (!root) {
-                YAHOO.log('invalid root node provided', 'warn', 'Selector');
-                return result;
-            }
-        }
-
-        root = root || Y.Selector.document;
-
-        if (root.nodeName !== '#document') { // prepend with root selector
-            Y.Dom.generateId(root); // TODO: cleanup after?
-            selector = root.tagName + '#' + root.id + ' ' + selector;
-            node = root;
-            root = root.ownerDocument;
-        }
-
-        var tokens = Y.Selector._tokenize(selector);
-        var idToken = tokens[Y.Selector._getIdTokenIndex(tokens)],
-            nodes = [],
-            id,
-            token = tokens.pop() || {};
-            
-        if (idToken) {
-            id = Y.Selector._getId(idToken.attributes);
-        }
-
-        // use id shortcut when possible
-        if (id) {
-            node = node || Y.Selector.document.getElementById(id);
-
-            if (node && (root.nodeName === '#document' || Y.Dom.isAncestor(root, node))) {
-                if ( Y.Selector._test(node, null, idToken) ) {
-                    if (idToken === token) {
-                        nodes = [node]; // simple selector
-                    } else if (idToken.combinator === ' ' || idToken.combinator === '>') {
-                        root = node; // start from here
-                    }
-                }
-            } else {
-                return result;
-            }
-        }
-
-        if (root && !nodes.length) {
-            nodes = root.getElementsByTagName(token.tag);
-        }
-
-        if (nodes.length) {
-            result = Y.Selector._filter(nodes, token, firstOnly, deDupe); 
-        }
-
-        return result;
-    },
-
-
-    _clearFoundCache: function() {
-        var foundCache = Y.Selector._foundCache;
-        YAHOO.log('getBySelector: clearing found cache of ' + foundCache.length + ' elements');
-        for (var i = 0, len = foundCache.length; i < len; ++i) {
-            try { // IE no like delete
-                delete foundCache[i]._found;
-            } catch(e) {
-                foundCache[i].removeAttribute('_found');
-            }
-        }
-        foundCache = [];
-        YAHOO.log('getBySelector: done clearing foundCache');
-    },
-
-
-    _getRegExp: function(str, flags) {
-        var regexCache = Y.Selector._regexCache;
-        flags = flags || '';
-        if (!regexCache[str + flags]) {
-            regexCache[str + flags] = new RegExp(str, flags);
-        }
-        return regexCache[str + flags];
-    },
-
-    _getChildren: function() {
-        if (document.documentElement.children && document.documentElement.children.tags) { // document for capability test
-            return function(node, tag) {
-                return (tag) ? node.children.tags(tag) : node.children || [];
-            };
-        } else {
-            return function(node, tag) {
-                var children = [],
-                    childNodes = node.childNodes;
-
-                for (var i = 0, len = childNodes.length; i < len; ++i) {
-                    if (childNodes[i].tagName) {
-                        if (!tag || childNodes[i].tagName === tag) {
-                            children.push(childNodes[i]);
-                        }
-                    }
-                }
-                return children;
-            };
-        }
-    }(),
-
-    _combinators: {
-        ' ': function(node, token) {
-            while ( (node = node.parentNode) ) {
-                if (Y.Selector._test(node, '', token.previous)) {
-                    return true;
-                }
-            }  
-            return false;
-        },
-
-        '>': function(node, token) {
-            return Y.Selector._test(node.parentNode, null, token.previous);
-        },
-
-        '+': function(node, token) {
-            var sib = node.previousSibling;
-            while (sib && sib.nodeType !== 1) {
-                sib = sib.previousSibling;
-            }
-
-            if (sib && Y.Selector._test(sib, null, token.previous)) {
-                return true; 
-            }
-            return false;
-        },
-
-        '~': function(node, token) {
-            var sib = node.previousSibling;
-            while (sib) {
-                if (sib.nodeType === 1 && Y.Selector._test(sib, null, token.previous)) {
-                    return true;
-                }
-                sib = sib.previousSibling;
-            }
-
-            return false;
-        }
-    },
-
-
-    /*
-        an+b = get every _a_th node starting at the _b_th
-        0n+b = no repeat ("0" and "n" may both be omitted (together) , e.g. "0n+1" or "1", not "0+1"), return only the _b_th element
-        1n+b =  get every element starting from b ("1" may may be omitted, e.g. "1n+0" or "n+0" or "n")
-        an+0 = get every _a_th element, "0" may be omitted 
-    */
-    _getNth: function(node, expr, tag, reverse) {
-        Y.Selector._re.nth.test(expr);
-        var a = parseInt(RegExp.$1, 10), // include every _a_ elements (zero means no repeat, just first _a_)
-            n = RegExp.$2, // "n"
-            oddeven = RegExp.$3, // "odd" or "even"
-            b = parseInt(RegExp.$4, 10) || 0, // start scan from element _b_
-            result = [],
-            op;
-
-        var siblings = Y.Selector._getChildren(node.parentNode, tag);
-
-        if (oddeven) {
-            a = 2; // always every other
-            op = '+';
-            n = 'n';
-            b = (oddeven === 'odd') ? 1 : 0;
-        } else if ( isNaN(a) ) {
-            a = (n) ? 1 : 0; // start from the first or no repeat
-        }
-
-        if (a === 0) { // just the first
-            if (reverse) {
-                b = siblings.length - b + 1; 
-            }
-
-            if (siblings[b - 1] === node) {
-                return true;
-            } else {
-                return false;
-            }
-
-        } else if (a < 0) {
-            reverse = !!reverse;
-            a = Math.abs(a);
-        }
-
-        if (!reverse) {
-            for (var i = b - 1, len = siblings.length; i < len; i += a) {
-                if ( i >= 0 && siblings[i] === node ) {
-                    return true;
-                }
-            }
-        } else {
-            for (var i = siblings.length - b, len = siblings.length; i >= 0; i -= a) {
-                if ( i < len && siblings[i] === node ) {
-                    return true;
-                }
-            }
-        }
-        return false;
-    },
-
-    _getId: function(attr) {
-        for (var i = 0, len = attr.length; i < len; ++i) {
-            if (attr[i][0] == 'id' && attr[i][1] === '=') {
-                return attr[i][2];
-            }
-        }
-    },
-
-    _getIdTokenIndex: function(tokens) {
-        for (var i = 0, len = tokens.length; i < len; ++i) {
-            if (Y.Selector._getId(tokens[i].attributes)) {
-                return i;
-            }
-        }
-        return -1;
-    },
-
-    _patterns: {
-        tag: /^((?:-?[_a-z]+[\w-]*)|\*)/i,
-        attributes: /^\[([a-z]+\w*)+([~\|\^\$\*!=]=?)?['"]?([^\]]*?)['"]?\]/i,
-        pseudos: /^:([-\w]+)(?:\(['"]?(.+)['"]?\))*/i,
-        combinator: /^\s*([>+~]|\s)\s*/
-    },
-
-    /**
-        Break selector into token units per simple selector.
-        Combinator is attached to left-hand selector.
-     */
-    _tokenize: function(selector) {
-        var token = {},     // one token per simple selector (left selector holds combinator)
-            tokens = [],    // array of tokens
-            id,             // unique id for the simple selector (if found)
-            found = false,  // whether or not any matches were found this pass
-            patterns = Y.Selector._patterns,
-            match;          // the regex match
-
-        selector = Y.Selector._replaceShorthand(selector); // convert ID and CLASS shortcuts to attributes
-
-        /*
-            Search for selector patterns, store, and strip them from the selector string
-            until no patterns match (invalid selector) or we run out of chars.
-
-            Multiple attributes and pseudos are allowed, in any order.
-            for example:
-                'form:first-child[type=button]:not(button)[lang|=en]'
-        */
-        do {
-            found = false; // reset after full pass
-            for (var re in patterns) {
-                if (YAHOO.lang.hasOwnProperty(patterns, re)) {
-                    if (re != 'tag' && re != 'combinator') { // only one allowed
-                        token[re] = token[re] || [];
-                    }
-                    if ( (match = patterns[re].exec(selector)) ) { // note assignment
-                        found = true;
-                        if (re != 'tag' && re != 'combinator') { // only one allowed
-                            // capture ID for fast path to element
-                            if (re === 'attributes' && match[1] === 'id') {
-                                token.id = match[3];
-                            }
-
-                            token[re].push(match.slice(1));
-                        } else { // single selector (tag, combinator)
-                            token[re] = match[1];
-                        }
-                        selector = selector.replace(match[0], ''); // strip current match from selector
-                        if (re === 'combinator' || !selector.length) { // next token or done
-                            token.attributes = Y.Selector._fixAttributes(token.attributes);
-                            token.pseudos = token.pseudos || [];
-                            token.tag = token.tag ? token.tag.toUpperCase() : '*';
-                            tokens.push(token);
-
-                            token = { // prep next token
-                                previous: token
-                            };
-                        }
-                    }
-                }
-            }
-        } while (found);
-
-        return tokens;
-    },
-
-
-    _fixAttributes: function(attr) {
-        var aliases = Y.Selector.attrAliases;
-        attr = attr || [];
-        for (var i = 0, len = attr.length; i < len; ++i) {
-            if (aliases[attr[i][0]]) { // convert reserved words, etc
-                attr[i][0] = aliases[attr[i][0]];
-            }
-            if (!attr[i][1]) { // use exists operator
-                attr[i][1] = '';
-            }
-        }
-        return attr;
-    },
-
-    _replaceShorthand: function(selector) {
-        var shorthand = Y.Selector.shorthand;
-
-        //var attrs = selector.match(Y.Selector._patterns.attributes); // pull attributes to avoid false pos on "." and "#"
-        var attrs = selector.match(Y.Selector._re.attr); // pull attributes to avoid false pos on "." and "#"
-        if (attrs) {
-            selector = selector.replace(Y.Selector._re.attr, 'REPLACED_ATTRIBUTE');
-        }
-        for (var re in shorthand) {
-            if (YAHOO.lang.hasOwnProperty(shorthand, re)) {
-                selector = selector.replace(Y.Selector._getRegExp(re, 'gi'), shorthand[re]);
-            }
-        }
-
-        if (attrs) {
-            for (var i = 0, len = attrs.length; i < len; ++i) {
-                selector = selector.replace('REPLACED_ATTRIBUTE', attrs[i]);
-            }
-        }
-        return selector;
-    }
-};
-
-if (YAHOO.env.ua.ie && YAHOO.env.ua.ie < 8) { // rewrite class for IE < 8
-    Y.Selector.attrAliases['class'] = 'className';
-    Y.Selector.attrAliases['for'] = 'htmlFor';
-}
-
-})();
-YAHOO.register("selector", YAHOO.util.Selector, {version: "2.8.0r4", build: "2449"});
diff --git a/koha-tmpl/intranet-tmpl/prog/en/lib/yui/selector/selector-min.js b/koha-tmpl/intranet-tmpl/prog/en/lib/yui/selector/selector-min.js
deleted file mode 100644 (file)
index 05ae7f1..0000000
+++ /dev/null
@@ -1,8 +0,0 @@
-/*
-Copyright (c) 2009, Yahoo! Inc. All rights reserved.
-Code licensed under the BSD License:
-http://developer.yahoo.net/yui/license.txt
-version: 2.8.0r4
-*/
-(function(){var A=YAHOO.util;A.Selector={_foundCache:[],_regexCache:{},_re:{nth:/^(?:([-]?\d*)(n){1}|(odd|even)$)*([-+]?\d*)$/,attr:/(\[.*\])/g,urls:/^(?:href|src)/},document:window.document,attrAliases:{},shorthand:{"\\#(-?[_a-z]+[-\\w]*)":"[id=$1]","\\.(-?[_a-z]+[-\\w]*)":"[class~=$1]"},operators:{"=":function(B,C){return B===C;},"!=":function(B,C){return B!==C;},"~=":function(B,D){var C=" ";return(C+B+C).indexOf((C+D+C))>-1;},"|=":function(B,C){return B===C||B.slice(0,C.length+1)===C+"-";},"^=":function(B,C){return B.indexOf(C)===0;},"$=":function(B,C){return B.slice(-C.length)===C;},"*=":function(B,C){return B.indexOf(C)>-1;},"":function(B,C){return B;}},pseudos:{"root":function(B){return B===B.ownerDocument.documentElement;},"nth-child":function(B,C){return A.Selector._getNth(B,C);},"nth-last-child":function(B,C){return A.Selector._getNth(B,C,null,true);},"nth-of-type":function(B,C){return A.Selector._getNth(B,C,B.tagName);},"nth-last-of-type":function(B,C){return A.Selector._getNth(B,C,B.tagName,true);},"first-child":function(B){return A.Selector._getChildren(B.parentNode)[0]===B;},"last-child":function(C){var B=A.Selector._getChildren(C.parentNode);return B[B.length-1]===C;},"first-of-type":function(B,C){return A.Selector._getChildren(B.parentNode,B.tagName)[0];},"last-of-type":function(C,D){var B=A.Selector._getChildren(C.parentNode,C.tagName);return B[B.length-1];},"only-child":function(C){var B=A.Selector._getChildren(C.parentNode);return B.length===1&&B[0]===C;},"only-of-type":function(B){return A.Selector._getChildren(B.parentNode,B.tagName).length===1;},"empty":function(B){return B.childNodes.length===0;},"not":function(B,C){return !A.Selector.test(B,C);},"contains":function(B,D){var C=B.innerText||B.textContent||"";return C.indexOf(D)>-1;},"checked":function(B){return B.checked===true;}},test:function(F,D){F=A.Selector.document.getElementById(F)||F;if(!F){return false;}var C=D?D.split(","):[];if(C.length){for(var E=0,B=C.length;E<B;++E){if(A.Selector._test(F,C[E])){return true;}}return false;}return A.Selector._test(F,D);},_test:function(D,G,F,E){F=F||A.Selector._tokenize(G).pop()||{};if(!D.tagName||(F.tag!=="*"&&D.tagName!==F.tag)||(E&&D._found)){return false;}if(F.attributes.length){var B,H,C=A.Selector._re.urls;if(!D.attributes||!D.attributes.length){return false;}for(var I=0,K;K=F.attributes[I++];){H=(C.test(K[0]))?2:0;B=D.getAttribute(K[0],H);if(B===null||B===undefined){return false;}if(A.Selector.operators[K[1]]&&!A.Selector.operators[K[1]](B,K[2])){return false;}}}if(F.pseudos.length){for(var I=0,J=F.pseudos.length;I<J;++I){if(A.Selector.pseudos[F.pseudos[I][0]]&&!A.Selector.pseudos[F.pseudos[I][0]](D,F.pseudos[I][1])){return false;}}}return(F.previous&&F.previous.combinator!==",")?A.Selector._combinators[F.previous.combinator](D,F):true;},filter:function(E,D){E=E||[];var G,C=[],H=A.Selector._tokenize(D);if(!E.item){for(var F=0,B=E.length;F<B;++F){if(!E[F].tagName){G=A.Selector.document.getElementById(E[F]);if(G){E[F]=G;}else{}}}}C=A.Selector._filter(E,A.Selector._tokenize(D)[0]);return C;},_filter:function(E,G,H,D){var C=H?null:[],I=A.Selector._foundCache;for(var F=0,B=E.length;F<B;F++){if(!A.Selector._test(E[F],"",G,D)){continue;}if(H){return E[F];}if(D){if(E[F]._found){continue;}E[F]._found=true;I[I.length]=E[F];}C[C.length]=E[F];}return C;},query:function(C,D,E){var B=A.Selector._query(C,D,E);return B;},_query:function(H,M,N,F){var P=(N)?null:[],E;if(!H){return P;}var D=H.split(",");if(D.length>1){var O;for(var I=0,J=D.length;I<J;++I){O=A.Selector._query(D[I],M,N,true);P=N?O:P.concat(O);}A.Selector._clearFoundCache();return P;}if(M&&!M.nodeName){M=A.Selector.document.getElementById(M);if(!M){return P;}}M=M||A.Selector.document;if(M.nodeName!=="#document"){A.Dom.generateId(M);H=M.tagName+"#"+M.id+" "+H;E=M;M=M.ownerDocument;}var L=A.Selector._tokenize(H);var K=L[A.Selector._getIdTokenIndex(L)],B=[],C,G=L.pop()||{};if(K){C=A.Selector._getId(K.attributes);}if(C){E=E||A.Selector.document.getElementById(C);if(E&&(M.nodeName==="#document"||A.Dom.isAncestor(M,E))){if(A.Selector._test(E,null,K)){if(K===G){B=[E];}else{if(K.combinator===" "||K.combinator===">"){M=E;}}}}else{return P;}}if(M&&!B.length){B=M.getElementsByTagName(G.tag);}if(B.length){P=A.Selector._filter(B,G,N,F);}return P;},_clearFoundCache:function(){var E=A.Selector._foundCache;for(var C=0,B=E.length;C<B;++C){try{delete E[C]._found;}catch(D){E[C].removeAttribute("_found");}}E=[];},_getRegExp:function(D,B){var C=A.Selector._regexCache;B=B||"";if(!C[D+B]){C[D+B]=new RegExp(D,B);}return C[D+B];},_getChildren:function(){if(document.documentElement.children&&document.documentElement.children.tags){return function(C,B){return(B)?C.children.tags(B):C.children||[];};}else{return function(F,C){var E=[],G=F.childNodes;for(var D=0,B=G.length;D<B;++D){if(G[D].tagName){if(!C||G[D].tagName===C){E.push(G[D]);}}}return E;};}}(),_combinators:{" ":function(C,B){while((C=C.parentNode)){if(A.Selector._test(C,"",B.previous)){return true;}}return false;},">":function(C,B){return A.Selector._test(C.parentNode,null,B.previous);},"+":function(D,C){var B=D.previousSibling;while(B&&B.nodeType!==1){B=B.previousSibling;}if(B&&A.Selector._test(B,null,C.previous)){return true;}return false;},"~":function(D,C){var B=D.previousSibling;while(B){if(B.nodeType===1&&A.Selector._test(B,null,C.previous)){return true;}B=B.previousSibling;}return false;}},_getNth:function(C,L,N,G){A.Selector._re.nth.test(L);var K=parseInt(RegExp.$1,10),B=RegExp.$2,H=RegExp.$3,I=parseInt(RegExp.$4,10)||0,M=[],E;var J=A.Selector._getChildren(C.parentNode,N);if(H){K=2;E="+";B="n";I=(H==="odd")?1:0;}else{if(isNaN(K)){K=(B)?1:0;}}if(K===0){if(G){I=J.length-I+1;}if(J[I-1]===C){return true;}else{return false;}}else{if(K<0){G=!!G;K=Math.abs(K);}}if(!G){for(var D=I-1,F=J.length;D<F;D+=K){if(D>=0&&J[D]===C){return true;}}}else{for(var D=J.length-I,F=J.length;D>=0;D-=K){if(D<F&&J[D]===C){return true;}}}return false;},_getId:function(C){for(var D=0,B=C.length;D<B;++D){if(C[D][0]=="id"&&C[D][1]==="="){return C[D][2];
-}}},_getIdTokenIndex:function(D){for(var C=0,B=D.length;C<B;++C){if(A.Selector._getId(D[C].attributes)){return C;}}return -1;},_patterns:{tag:/^((?:-?[_a-z]+[\w-]*)|\*)/i,attributes:/^\[([a-z]+\w*)+([~\|\^\$\*!=]=?)?['"]?([^\]]*?)['"]?\]/i,pseudos:/^:([-\w]+)(?:\(['"]?(.+)['"]?\))*/i,combinator:/^\s*([>+~]|\s)\s*/},_tokenize:function(B){var D={},H=[],I,G=false,F=A.Selector._patterns,C;B=A.Selector._replaceShorthand(B);do{G=false;for(var E in F){if(YAHOO.lang.hasOwnProperty(F,E)){if(E!="tag"&&E!="combinator"){D[E]=D[E]||[];}if((C=F[E].exec(B))){G=true;if(E!="tag"&&E!="combinator"){if(E==="attributes"&&C[1]==="id"){D.id=C[3];}D[E].push(C.slice(1));}else{D[E]=C[1];}B=B.replace(C[0],"");if(E==="combinator"||!B.length){D.attributes=A.Selector._fixAttributes(D.attributes);D.pseudos=D.pseudos||[];D.tag=D.tag?D.tag.toUpperCase():"*";H.push(D);D={previous:D};}}}}}while(G);return H;},_fixAttributes:function(C){var D=A.Selector.attrAliases;C=C||[];for(var E=0,B=C.length;E<B;++E){if(D[C[E][0]]){C[E][0]=D[C[E][0]];}if(!C[E][1]){C[E][1]="";}}return C;},_replaceShorthand:function(C){var D=A.Selector.shorthand;var E=C.match(A.Selector._re.attr);if(E){C=C.replace(A.Selector._re.attr,"REPLACED_ATTRIBUTE");}for(var G in D){if(YAHOO.lang.hasOwnProperty(D,G)){C=C.replace(A.Selector._getRegExp(G,"gi"),D[G]);}}if(E){for(var F=0,B=E.length;F<B;++F){C=C.replace("REPLACED_ATTRIBUTE",E[F]);}}return C;}};if(YAHOO.env.ua.ie&&YAHOO.env.ua.ie<8){A.Selector.attrAliases["class"]="className";A.Selector.attrAliases["for"]="htmlFor";}})();YAHOO.register("selector",YAHOO.util.Selector,{version:"2.8.0r4",build:"2449"});
\ No newline at end of file
diff --git a/koha-tmpl/intranet-tmpl/prog/en/lib/yui/selector/selector.js b/koha-tmpl/intranet-tmpl/prog/en/lib/yui/selector/selector.js
deleted file mode 100644 (file)
index ca1222f..0000000
+++ /dev/null
@@ -1,644 +0,0 @@
-/*
-Copyright (c) 2009, Yahoo! Inc. All rights reserved.
-Code licensed under the BSD License:
-http://developer.yahoo.net/yui/license.txt
-version: 2.8.0r4
-*/
-/**
- * The selector module provides helper methods allowing CSS3 Selectors to be used with DOM elements.
- * @module selector
- * @title Selector Utility
- * @namespace YAHOO.util
- * @requires yahoo, dom
- */
-
-(function() {
-var Y = YAHOO.util;
-
-/**
- * Provides helper methods for collecting and filtering DOM elements.
- * @namespace YAHOO.util
- * @class Selector
- * @static
- */
-
-Y.Selector = {
-    _foundCache: [],
-    _regexCache: {},
-
-    _re: {
-        nth: /^(?:([-]?\d*)(n){1}|(odd|even)$)*([-+]?\d*)$/,
-        attr: /(\[.*\])/g,
-        urls: /^(?:href|src)/
-    },
-
-    /**
-     * Default document for use queries 
-     * @property document
-     * @type object
-     * @default window.document
-     */
-    document: window.document,
-    /**
-     * Mapping of attributes to aliases, normally to work around HTMLAttributes
-     * that conflict with JS reserved words.
-     * @property attrAliases
-     * @type object
-     */
-    attrAliases: {
-    },
-
-    /**
-     * Mapping of shorthand tokens to corresponding attribute selector 
-     * @property shorthand
-     * @type object
-     */
-    shorthand: {
-        //'(?:(?:[^\\)\\]\\s*>+~,]+)(?:-?[_a-z]+[-\\w]))+#(-?[_a-z]+[-\\w]*)': '[id=$1]',
-        '\\#(-?[_a-z]+[-\\w]*)': '[id=$1]',
-        '\\.(-?[_a-z]+[-\\w]*)': '[class~=$1]'
-    },
-
-    /**
-     * List of operators and corresponding boolean functions. 
-     * These functions are passed the attribute and the current node's value of the attribute.
-     * @property operators
-     * @type object
-     */
-    operators: {
-        '=': function(attr, val) { return attr === val; }, // Equality
-        '!=': function(attr, val) { return attr !== val; }, // Inequality
-        '~=': function(attr, val) { // Match one of space seperated words 
-            var s = ' ';
-            return (s + attr + s).indexOf((s + val + s)) > -1;
-        },
-        '|=': function(attr, val) { return attr === val || attr.slice(0, val.length + 1) === val + '-'; }, // Matches value followed by optional hyphen
-        '^=': function(attr, val) { return attr.indexOf(val) === 0; }, // Match starts with value
-        '$=': function(attr, val) { return attr.slice(-val.length) === val; }, // Match ends with value
-        '*=': function(attr, val) { return attr.indexOf(val) > -1; }, // Match contains value as substring 
-        '': function(attr, val) { return attr; } // Just test for existence of attribute
-    },
-
-    /**
-     * List of pseudo-classes and corresponding boolean functions. 
-     * These functions are called with the current node, and any value that was parsed with the pseudo regex.
-     * @property pseudos
-     * @type object
-     */
-    pseudos: {
-        'root': function(node) {
-            return node === node.ownerDocument.documentElement;
-        },
-
-        'nth-child': function(node, val) {
-            return Y.Selector._getNth(node, val);
-        },
-
-        'nth-last-child': function(node, val) {
-            return Y.Selector._getNth(node, val, null, true);
-        },
-
-        'nth-of-type': function(node, val) {
-            return Y.Selector._getNth(node, val, node.tagName);
-        },
-         
-        'nth-last-of-type': function(node, val) {
-            return Y.Selector._getNth(node, val, node.tagName, true);
-        },
-         
-        'first-child': function(node) {
-            return Y.Selector._getChildren(node.parentNode)[0] === node;
-        },
-
-        'last-child': function(node) {
-            var children = Y.Selector._getChildren(node.parentNode);
-            return children[children.length - 1] === node;
-        },
-
-        'first-of-type': function(node, val) {
-            return Y.Selector._getChildren(node.parentNode, node.tagName)[0];
-        },
-         
-        'last-of-type': function(node, val) {
-            var children = Y.Selector._getChildren(node.parentNode, node.tagName);
-            return children[children.length - 1];
-        },
-         
-        'only-child': function(node) {
-            var children = Y.Selector._getChildren(node.parentNode);
-            return children.length === 1 && children[0] === node;
-        },
-
-        'only-of-type': function(node) {
-            return Y.Selector._getChildren(node.parentNode, node.tagName).length === 1;
-        },
-
-        'empty': function(node) {
-            return node.childNodes.length === 0;
-        },
-
-        'not': function(node, simple) {
-            return !Y.Selector.test(node, simple);
-        },
-
-        'contains': function(node, str) {
-            var text = node.innerText || node.textContent || '';
-            return text.indexOf(str) > -1;
-        },
-        'checked': function(node) {
-            return node.checked === true;
-        }
-    },
-
-    /**
-     * Test if the supplied node matches the supplied selector.
-     * @method test
-     *
-     * @param {HTMLElement | String} node An id or node reference to the HTMLElement being tested.
-     * @param {string} selector The CSS Selector to test the node against.
-     * @return{boolean} Whether or not the node matches the selector.
-     * @static
-    
-     */
-    test: function(node, selector) {
-        node = Y.Selector.document.getElementById(node) || node;
-
-        if (!node) {
-            return false;
-        }
-
-        var groups = selector ? selector.split(',') : [];
-        if (groups.length) {
-            for (var i = 0, len = groups.length; i < len; ++i) {
-                if ( Y.Selector._test(node, groups[i]) ) { // passes if ANY group matches
-                    return true;
-                }
-            }
-            return false;
-        }
-        return Y.Selector._test(node, selector);
-    },
-
-    _test: function(node, selector, token, deDupe) {
-        token = token || Y.Selector._tokenize(selector).pop() || {};
-
-        if (!node.tagName ||
-            (token.tag !== '*' && node.tagName !== token.tag) ||
-            (deDupe && node._found) ) {
-            return false;
-        }
-
-        if (token.attributes.length) {
-            var val,
-                ieFlag,
-                re_urls = Y.Selector._re.urls;
-
-            if (!node.attributes || !node.attributes.length) {
-                return false;
-            }
-            for (var i = 0, attr; attr = token.attributes[i++];) {
-                ieFlag = (re_urls.test(attr[0])) ? 2 : 0;
-                val = node.getAttribute(attr[0], ieFlag);
-                if (val === null || val === undefined) {
-                    return false;
-                }
-                if ( Y.Selector.operators[attr[1]] &&
-                        !Y.Selector.operators[attr[1]](val, attr[2])) {
-                    return false;
-                }
-            }
-        }
-
-        if (token.pseudos.length) {
-            for (var i = 0, len = token.pseudos.length; i < len; ++i) {
-                if (Y.Selector.pseudos[token.pseudos[i][0]] &&
-                        !Y.Selector.pseudos[token.pseudos[i][0]](node, token.pseudos[i][1])) {
-                    return false;
-                }
-            }
-        }
-
-        return (token.previous && token.previous.combinator !== ',') ?
-                Y.Selector._combinators[token.previous.combinator](node, token) :
-                true;
-    },
-
-    /**
-     * Filters a set of nodes based on a given CSS selector. 
-     * @method filter
-     *
-     * @param {array} nodes A set of nodes/ids to filter. 
-     * @param {string} selector The selector used to test each node.
-     * @return{array} An array of nodes from the supplied array that match the given selector.
-     * @static
-     */
-    filter: function(nodes, selector) {
-        nodes = nodes || [];
-
-        var node,
-            result = [],
-            tokens = Y.Selector._tokenize(selector);
-
-        if (!nodes.item) { // if not HTMLCollection, handle arrays of ids and/or nodes
-            for (var i = 0, len = nodes.length; i < len; ++i) {
-                if (!nodes[i].tagName) { // tagName limits to HTMLElements 
-                    node = Y.Selector.document.getElementById(nodes[i]);
-                    if (node) { // skip IDs that return null 
-                        nodes[i] = node;
-                    } else {
-                    }
-                }
-            }
-        }
-        result = Y.Selector._filter(nodes, Y.Selector._tokenize(selector)[0]);
-        return result;
-    },
-
-    _filter: function(nodes, token, firstOnly, deDupe) {
-        var result = firstOnly ? null : [],
-            foundCache = Y.Selector._foundCache;
-
-        for (var i = 0, len = nodes.length; i < len; i++) {
-            if (! Y.Selector._test(nodes[i], '', token, deDupe)) {
-                continue;
-            }
-
-            if (firstOnly) {
-                return nodes[i];
-            }
-            if (deDupe) {
-                if (nodes[i]._found) {
-                    continue;
-                }
-                nodes[i]._found = true;
-                foundCache[foundCache.length] = nodes[i];
-            }
-
-            result[result.length] = nodes[i];
-        }
-
-        return result;
-    },
-
-    /**
-     * Retrieves a set of nodes based on a given CSS selector. 
-     * @method query
-     *
-     * @param {string} selector The CSS Selector to test the node against.
-     * @param {HTMLElement | String} root optional An id or HTMLElement to start the query from. Defaults to Selector.document.
-     * @param {Boolean} firstOnly optional Whether or not to return only the first match.
-     * @return {Array} An array of nodes that match the given selector.
-     * @static
-     */
-    query: function(selector, root, firstOnly) {
-        var result = Y.Selector._query(selector, root, firstOnly);
-        return result;
-    },
-
-
-    _query: function(selector, root, firstOnly, deDupe) {
-        var result =  (firstOnly) ? null : [],
-            node;
-
-        if (!selector) {
-            return result;
-        }
-
-        var groups = selector.split(','); // TODO: handle comma in attribute/pseudo
-
-        if (groups.length > 1) {
-            var found;
-            for (var i = 0, len = groups.length; i < len; ++i) {
-                found = Y.Selector._query(groups[i], root, firstOnly, true);
-                result = firstOnly ? found : result.concat(found); 
-            }
-            Y.Selector._clearFoundCache();
-            return result;
-        }
-
-        if (root && !root.nodeName) { // assume ID
-            root = Y.Selector.document.getElementById(root);
-            if (!root) {
-                return result;
-            }
-        }
-
-        root = root || Y.Selector.document;
-
-        if (root.nodeName !== '#document') { // prepend with root selector
-            Y.Dom.generateId(root); // TODO: cleanup after?
-            selector = root.tagName + '#' + root.id + ' ' + selector;
-            node = root;
-            root = root.ownerDocument;
-        }
-
-        var tokens = Y.Selector._tokenize(selector);
-        var idToken = tokens[Y.Selector._getIdTokenIndex(tokens)],
-            nodes = [],
-            id,
-            token = tokens.pop() || {};
-            
-        if (idToken) {
-            id = Y.Selector._getId(idToken.attributes);
-        }
-
-        // use id shortcut when possible
-        if (id) {
-            node = node || Y.Selector.document.getElementById(id);
-
-            if (node && (root.nodeName === '#document' || Y.Dom.isAncestor(root, node))) {
-                if ( Y.Selector._test(node, null, idToken) ) {
-                    if (idToken === token) {
-                        nodes = [node]; // simple selector
-                    } else if (idToken.combinator === ' ' || idToken.combinator === '>') {
-                        root = node; // start from here
-                    }
-                }
-            } else {
-                return result;
-            }
-        }
-
-        if (root && !nodes.length) {
-            nodes = root.getElementsByTagName(token.tag);
-        }
-
-        if (nodes.length) {
-            result = Y.Selector._filter(nodes, token, firstOnly, deDupe); 
-        }
-
-        return result;
-    },
-
-
-    _clearFoundCache: function() {
-        var foundCache = Y.Selector._foundCache;
-        for (var i = 0, len = foundCache.length; i < len; ++i) {
-            try { // IE no like delete
-                delete foundCache[i]._found;
-            } catch(e) {
-                foundCache[i].removeAttribute('_found');
-            }
-        }
-        foundCache = [];
-    },
-
-
-    _getRegExp: function(str, flags) {
-        var regexCache = Y.Selector._regexCache;
-        flags = flags || '';
-        if (!regexCache[str + flags]) {
-            regexCache[str + flags] = new RegExp(str, flags);
-        }
-        return regexCache[str + flags];
-    },
-
-    _getChildren: function() {
-        if (document.documentElement.children && document.documentElement.children.tags) { // document for capability test
-            return function(node, tag) {
-                return (tag) ? node.children.tags(tag) : node.children || [];
-            };
-        } else {
-            return function(node, tag) {
-                var children = [],
-                    childNodes = node.childNodes;
-
-                for (var i = 0, len = childNodes.length; i < len; ++i) {
-                    if (childNodes[i].tagName) {
-                        if (!tag || childNodes[i].tagName === tag) {
-                            children.push(childNodes[i]);
-                        }
-                    }
-                }
-                return children;
-            };
-        }
-    }(),
-
-    _combinators: {
-        ' ': function(node, token) {
-            while ( (node = node.parentNode) ) {
-                if (Y.Selector._test(node, '', token.previous)) {
-                    return true;
-                }
-            }  
-            return false;
-        },
-
-        '>': function(node, token) {
-            return Y.Selector._test(node.parentNode, null, token.previous);
-        },
-
-        '+': function(node, token) {
-            var sib = node.previousSibling;
-            while (sib && sib.nodeType !== 1) {
-                sib = sib.previousSibling;
-            }
-
-            if (sib && Y.Selector._test(sib, null, token.previous)) {
-                return true; 
-            }
-            return false;
-        },
-
-        '~': function(node, token) {
-            var sib = node.previousSibling;
-            while (sib) {
-                if (sib.nodeType === 1 && Y.Selector._test(sib, null, token.previous)) {
-                    return true;
-                }
-                sib = sib.previousSibling;
-            }
-
-            return false;
-        }
-    },
-
-
-    /*
-        an+b = get every _a_th node starting at the _b_th
-        0n+b = no repeat ("0" and "n" may both be omitted (together) , e.g. "0n+1" or "1", not "0+1"), return only the _b_th element
-        1n+b =  get every element starting from b ("1" may may be omitted, e.g. "1n+0" or "n+0" or "n")
-        an+0 = get every _a_th element, "0" may be omitted 
-    */
-    _getNth: function(node, expr, tag, reverse) {
-        Y.Selector._re.nth.test(expr);
-        var a = parseInt(RegExp.$1, 10), // include every _a_ elements (zero means no repeat, just first _a_)
-            n = RegExp.$2, // "n"
-            oddeven = RegExp.$3, // "odd" or "even"
-            b = parseInt(RegExp.$4, 10) || 0, // start scan from element _b_
-            result = [],
-            op;
-
-        var siblings = Y.Selector._getChildren(node.parentNode, tag);
-
-        if (oddeven) {
-            a = 2; // always every other
-            op = '+';
-            n = 'n';
-            b = (oddeven === 'odd') ? 1 : 0;
-        } else if ( isNaN(a) ) {
-            a = (n) ? 1 : 0; // start from the first or no repeat
-        }
-
-        if (a === 0) { // just the first
-            if (reverse) {
-                b = siblings.length - b + 1; 
-            }
-
-            if (siblings[b - 1] === node) {
-                return true;
-            } else {
-                return false;
-            }
-
-        } else if (a < 0) {
-            reverse = !!reverse;
-            a = Math.abs(a);
-        }
-
-        if (!reverse) {
-            for (var i = b - 1, len = siblings.length; i < len; i += a) {
-                if ( i >= 0 && siblings[i] === node ) {
-                    return true;
-                }
-            }
-        } else {
-            for (var i = siblings.length - b, len = siblings.length; i >= 0; i -= a) {
-                if ( i < len && siblings[i] === node ) {
-                    return true;
-                }
-            }
-        }
-        return false;
-    },
-
-    _getId: function(attr) {
-        for (var i = 0, len = attr.length; i < len; ++i) {
-            if (attr[i][0] == 'id' && attr[i][1] === '=') {
-                return attr[i][2];
-            }
-        }
-    },
-
-    _getIdTokenIndex: function(tokens) {
-        for (var i = 0, len = tokens.length; i < len; ++i) {
-            if (Y.Selector._getId(tokens[i].attributes)) {
-                return i;
-            }
-        }
-        return -1;
-    },
-
-    _patterns: {
-        tag: /^((?:-?[_a-z]+[\w-]*)|\*)/i,
-        attributes: /^\[([a-z]+\w*)+([~\|\^\$\*!=]=?)?['"]?([^\]]*?)['"]?\]/i,
-        pseudos: /^:([-\w]+)(?:\(['"]?(.+)['"]?\))*/i,
-        combinator: /^\s*([>+~]|\s)\s*/
-    },
-
-    /**
-        Break selector into token units per simple selector.
-        Combinator is attached to left-hand selector.
-     */
-    _tokenize: function(selector) {
-        var token = {},     // one token per simple selector (left selector holds combinator)
-            tokens = [],    // array of tokens
-            id,             // unique id for the simple selector (if found)
-            found = false,  // whether or not any matches were found this pass
-            patterns = Y.Selector._patterns,
-            match;          // the regex match
-
-        selector = Y.Selector._replaceShorthand(selector); // convert ID and CLASS shortcuts to attributes
-
-        /*
-            Search for selector patterns, store, and strip them from the selector string
-            until no patterns match (invalid selector) or we run out of chars.
-
-            Multiple attributes and pseudos are allowed, in any order.
-            for example:
-                'form:first-child[type=button]:not(button)[lang|=en]'
-        */
-        do {
-            found = false; // reset after full pass
-            for (var re in patterns) {
-                if (YAHOO.lang.hasOwnProperty(patterns, re)) {
-                    if (re != 'tag' && re != 'combinator') { // only one allowed
-                        token[re] = token[re] || [];
-                    }
-                    if ( (match = patterns[re].exec(selector)) ) { // note assignment
-                        found = true;
-                        if (re != 'tag' && re != 'combinator') { // only one allowed
-                            // capture ID for fast path to element
-                            if (re === 'attributes' && match[1] === 'id') {
-                                token.id = match[3];
-                            }
-
-                            token[re].push(match.slice(1));
-                        } else { // single selector (tag, combinator)
-                            token[re] = match[1];
-                        }
-                        selector = selector.replace(match[0], ''); // strip current match from selector
-                        if (re === 'combinator' || !selector.length) { // next token or done
-                            token.attributes = Y.Selector._fixAttributes(token.attributes);
-                            token.pseudos = token.pseudos || [];
-                            token.tag = token.tag ? token.tag.toUpperCase() : '*';
-                            tokens.push(token);
-
-                            token = { // prep next token
-                                previous: token
-                            };
-                        }
-                    }
-                }
-            }
-        } while (found);
-
-        return tokens;
-    },
-
-
-    _fixAttributes: function(attr) {
-        var aliases = Y.Selector.attrAliases;
-        attr = attr || [];
-        for (var i = 0, len = attr.length; i < len; ++i) {
-            if (aliases[attr[i][0]]) { // convert reserved words, etc
-                attr[i][0] = aliases[attr[i][0]];
-            }
-            if (!attr[i][1]) { // use exists operator
-                attr[i][1] = '';
-            }
-        }
-        return attr;
-    },
-
-    _replaceShorthand: function(selector) {
-        var shorthand = Y.Selector.shorthand;
-
-        //var attrs = selector.match(Y.Selector._patterns.attributes); // pull attributes to avoid false pos on "." and "#"
-        var attrs = selector.match(Y.Selector._re.attr); // pull attributes to avoid false pos on "." and "#"
-        if (attrs) {
-            selector = selector.replace(Y.Selector._re.attr, 'REPLACED_ATTRIBUTE');
-        }
-        for (var re in shorthand) {
-            if (YAHOO.lang.hasOwnProperty(shorthand, re)) {
-                selector = selector.replace(Y.Selector._getRegExp(re, 'gi'), shorthand[re]);
-            }
-        }
-
-        if (attrs) {
-            for (var i = 0, len = attrs.length; i < len; ++i) {
-                selector = selector.replace('REPLACED_ATTRIBUTE', attrs[i]);
-            }
-        }
-        return selector;
-    }
-};
-
-if (YAHOO.env.ua.ie && YAHOO.env.ua.ie < 8) { // rewrite class for IE < 8
-    Y.Selector.attrAliases['class'] = 'className';
-    Y.Selector.attrAliases['for'] = 'htmlFor';
-}
-
-})();
-YAHOO.register("selector", YAHOO.util.Selector, {version: "2.8.0r4", build: "2449"});
diff --git a/koha-tmpl/intranet-tmpl/prog/en/lib/yui/slider/assets/bg-fader.gif b/koha-tmpl/intranet-tmpl/prog/en/lib/yui/slider/assets/bg-fader.gif
deleted file mode 100644 (file)
index 7db8eb7..0000000
Binary files a/koha-tmpl/intranet-tmpl/prog/en/lib/yui/slider/assets/bg-fader.gif and /dev/null differ
diff --git a/koha-tmpl/intranet-tmpl/prog/en/lib/yui/slider/assets/bg-h.gif b/koha-tmpl/intranet-tmpl/prog/en/lib/yui/slider/assets/bg-h.gif
deleted file mode 100644 (file)
index 9962889..0000000
Binary files a/koha-tmpl/intranet-tmpl/prog/en/lib/yui/slider/assets/bg-h.gif and /dev/null differ
diff --git a/koha-tmpl/intranet-tmpl/prog/en/lib/yui/slider/assets/bg-v-e.gif b/koha-tmpl/intranet-tmpl/prog/en/lib/yui/slider/assets/bg-v-e.gif
deleted file mode 100644 (file)
index d2a4216..0000000
Binary files a/koha-tmpl/intranet-tmpl/prog/en/lib/yui/slider/assets/bg-v-e.gif and /dev/null differ
diff --git a/koha-tmpl/intranet-tmpl/prog/en/lib/yui/slider/assets/bg-v.gif b/koha-tmpl/intranet-tmpl/prog/en/lib/yui/slider/assets/bg-v.gif
deleted file mode 100644 (file)
index 8e287cd..0000000
Binary files a/koha-tmpl/intranet-tmpl/prog/en/lib/yui/slider/assets/bg-v.gif and /dev/null differ
diff --git a/koha-tmpl/intranet-tmpl/prog/en/lib/yui/slider/assets/left-thumb.png b/koha-tmpl/intranet-tmpl/prog/en/lib/yui/slider/assets/left-thumb.png
deleted file mode 100644 (file)
index ca90ecb..0000000
Binary files a/koha-tmpl/intranet-tmpl/prog/en/lib/yui/slider/assets/left-thumb.png and /dev/null differ
diff --git a/koha-tmpl/intranet-tmpl/prog/en/lib/yui/slider/assets/right-thumb.png b/koha-tmpl/intranet-tmpl/prog/en/lib/yui/slider/assets/right-thumb.png
deleted file mode 100644 (file)
index 09e5d27..0000000
Binary files a/koha-tmpl/intranet-tmpl/prog/en/lib/yui/slider/assets/right-thumb.png and /dev/null differ
diff --git a/koha-tmpl/intranet-tmpl/prog/en/lib/yui/slider/assets/skins/sam/bg-h.gif b/koha-tmpl/intranet-tmpl/prog/en/lib/yui/slider/assets/skins/sam/bg-h.gif
deleted file mode 100644 (file)
index 9962889..0000000
Binary files a/koha-tmpl/intranet-tmpl/prog/en/lib/yui/slider/assets/skins/sam/bg-h.gif and /dev/null differ
diff --git a/koha-tmpl/intranet-tmpl/prog/en/lib/yui/slider/assets/skins/sam/bg-v.gif b/koha-tmpl/intranet-tmpl/prog/en/lib/yui/slider/assets/skins/sam/bg-v.gif
deleted file mode 100644 (file)
index 8e287cd..0000000
Binary files a/koha-tmpl/intranet-tmpl/prog/en/lib/yui/slider/assets/skins/sam/bg-v.gif and /dev/null differ
diff --git a/koha-tmpl/intranet-tmpl/prog/en/lib/yui/slider/assets/skins/sam/slider-skin.css b/koha-tmpl/intranet-tmpl/prog/en/lib/yui/slider/assets/skins/sam/slider-skin.css
deleted file mode 100644 (file)
index c3dc555..0000000
+++ /dev/null
@@ -1,24 +0,0 @@
-/*
-Copyright (c) 2009, Yahoo! Inc. All rights reserved.
-Code licensed under the BSD License:
-http://developer.yahoo.net/yui/license.txt
-version: 2.8.0r4
-*/
-.yui-skin-sam .yui-h-slider {
-    background: url(bg-h.gif) no-repeat 5px 0;
-    height: 28px;
-    width: 228px;
-}
-.yui-skin-sam .yui-h-slider .yui-slider-thumb {
-    top: 4px;
-}
-
-.yui-skin-sam .yui-v-slider {
-    background: url(bg-v.gif) no-repeat 12px 0;
-    height: 228px;
-    width: 48px;
-}
-.yui-skin-sam .yui-region-slider {
-    height: 228px;
-    width: 228px;
-}
diff --git a/koha-tmpl/intranet-tmpl/prog/en/lib/yui/slider/assets/skins/sam/slider.css b/koha-tmpl/intranet-tmpl/prog/en/lib/yui/slider/assets/skins/sam/slider.css
deleted file mode 100644 (file)
index 9450e3b..0000000
+++ /dev/null
@@ -1,7 +0,0 @@
-/*
-Copyright (c) 2009, Yahoo! Inc. All rights reserved.
-Code licensed under the BSD License:
-http://developer.yahoo.net/yui/license.txt
-version: 2.8.0r4
-*/
-.yui-h-slider,.yui-v-slider,.yui-region-slider{position:relative;}.yui-h-slider .yui-slider-thumb,.yui-v-slider .yui-slider-thumb,.yui-region-slider .yui-slider-thumb{position:absolute;cursor:default;}.yui-skin-sam .yui-h-slider{background:url(bg-h.gif) no-repeat 5px 0;height:28px;width:228px;}.yui-skin-sam .yui-h-slider .yui-slider-thumb{top:4px;}.yui-skin-sam .yui-v-slider{background:url(bg-v.gif) no-repeat 12px 0;height:228px;width:48px;}.yui-skin-sam .yui-region-slider{height:228px;width:228px;}
diff --git a/koha-tmpl/intranet-tmpl/prog/en/lib/yui/slider/assets/slider-core.css b/koha-tmpl/intranet-tmpl/prog/en/lib/yui/slider/assets/slider-core.css
deleted file mode 100644 (file)
index 6d3f0e5..0000000
+++ /dev/null
@@ -1,17 +0,0 @@
-/*
-Copyright (c) 2009, Yahoo! Inc. All rights reserved.
-Code licensed under the BSD License:
-http://developer.yahoo.net/yui/license.txt
-version: 2.8.0r4
-*/
-.yui-h-slider,
-.yui-v-slider,
-.yui-region-slider {
-    position: relative;
-}
-.yui-h-slider .yui-slider-thumb,
-.yui-v-slider .yui-slider-thumb,
-.yui-region-slider .yui-slider-thumb {
-    position: absolute;
-    cursor: default;
-}
diff --git a/koha-tmpl/intranet-tmpl/prog/en/lib/yui/slider/assets/slider-skin.css b/koha-tmpl/intranet-tmpl/prog/en/lib/yui/slider/assets/slider-skin.css
deleted file mode 100644 (file)
index fc3970b..0000000
+++ /dev/null
@@ -1,20 +0,0 @@
-/*
-Copyright (c) 2009, Yahoo! Inc. All rights reserved.
-Code licensed under the BSD License:
-http://developer.yahoo.net/yui/license.txt
-version: 2.8.0r4
-*/
-.yui-skin-sam .yui-h-slider {
-    background: url(bg-h.gif) no-repeat 5px 0;
-    height: 28px;
-    width: 228px;
-}
-.yui-skin-sam .yui-h-slider .yui-slider-thumb {
-    top: 4px;
-}
-
-.yui-skin-sam .yui-v-slider {
-    background: url(bg-v.gif) no-repeat 12px 0;
-    height: 228px;
-    width: 48px;
-}
diff --git a/koha-tmpl/intranet-tmpl/prog/en/lib/yui/slider/assets/thumb-bar.gif b/koha-tmpl/intranet-tmpl/prog/en/lib/yui/slider/assets/thumb-bar.gif
deleted file mode 100644 (file)
index cb5b733..0000000
Binary files a/koha-tmpl/intranet-tmpl/prog/en/lib/yui/slider/assets/thumb-bar.gif and /dev/null differ
diff --git a/koha-tmpl/intranet-tmpl/prog/en/lib/yui/slider/assets/thumb-e.gif b/koha-tmpl/intranet-tmpl/prog/en/lib/yui/slider/assets/thumb-e.gif
deleted file mode 100644 (file)
index b2f3301..0000000
Binary files a/koha-tmpl/intranet-tmpl/prog/en/lib/yui/slider/assets/thumb-e.gif and /dev/null differ
diff --git a/koha-tmpl/intranet-tmpl/prog/en/lib/yui/slider/assets/thumb-fader.gif b/koha-tmpl/intranet-tmpl/prog/en/lib/yui/slider/assets/thumb-fader.gif
deleted file mode 100644 (file)
index 5eb6aab..0000000
Binary files a/koha-tmpl/intranet-tmpl/prog/en/lib/yui/slider/assets/thumb-fader.gif and /dev/null differ
diff --git a/koha-tmpl/intranet-tmpl/prog/en/lib/yui/slider/assets/thumb-n.gif b/koha-tmpl/intranet-tmpl/prog/en/lib/yui/slider/assets/thumb-n.gif
deleted file mode 100644 (file)
index c91a332..0000000
Binary files a/koha-tmpl/intranet-tmpl/prog/en/lib/yui/slider/assets/thumb-n.gif and /dev/null differ
diff --git a/koha-tmpl/intranet-tmpl/prog/en/lib/yui/slider/assets/thumb-s.gif b/koha-tmpl/intranet-tmpl/prog/en/lib/yui/slider/assets/thumb-s.gif
deleted file mode 100644 (file)
index a0670a4..0000000
Binary files a/koha-tmpl/intranet-tmpl/prog/en/lib/yui/slider/assets/thumb-s.gif and /dev/null differ
diff --git a/koha-tmpl/intranet-tmpl/prog/en/lib/yui/slider/assets/thumb-w.gif b/koha-tmpl/intranet-tmpl/prog/en/lib/yui/slider/assets/thumb-w.gif
deleted file mode 100644 (file)
index 79b3101..0000000
Binary files a/koha-tmpl/intranet-tmpl/prog/en/lib/yui/slider/assets/thumb-w.gif and /dev/null differ
diff --git a/koha-tmpl/intranet-tmpl/prog/en/lib/yui/slider/slider-debug.js b/koha-tmpl/intranet-tmpl/prog/en/lib/yui/slider/slider-debug.js
deleted file mode 100644 (file)
index 5b1457c..0000000
+++ /dev/null
@@ -1,2114 +0,0 @@
-/*
-Copyright (c) 2009, Yahoo! Inc. All rights reserved.
-Code licensed under the BSD License:
-http://developer.yahoo.net/yui/license.txt
-version: 2.8.0r4
-*/
-/**
- * The Slider component is a UI control that enables the user to adjust 
- * values in a finite range along one or two axes. Typically, the Slider 
- * control is used in a web application as a rich, visual replacement 
- * for an input box that takes a number as input. The Slider control can 
- * also easily accommodate a second dimension, providing x,y output for 
- * a selection point chosen from a rectangular region.
- *
- * @module    slider
- * @title     Slider Widget
- * @namespace YAHOO.widget
- * @requires  yahoo,dom,dragdrop,event
- * @optional  animation
- */
- (function () {
-
-var getXY = YAHOO.util.Dom.getXY,
-    Event = YAHOO.util.Event,
-    _AS   = Array.prototype.slice;
-
-/**
- * A DragDrop implementation that can be used as a background for a
- * slider.  It takes a reference to the thumb instance 
- * so it can delegate some of the events to it.  The goal is to make the 
- * thumb jump to the location on the background when the background is 
- * clicked.  
- *
- * @class Slider
- * @extends YAHOO.util.DragDrop
- * @uses YAHOO.util.EventProvider
- * @constructor
- * @param {String}      id     The id of the element linked to this instance
- * @param {String}      sGroup The group of related DragDrop items
- * @param {SliderThumb} oThumb The thumb for this slider
- * @param {String}      sType  The type of slider (horiz, vert, region)
- */
-function Slider(sElementId, sGroup, oThumb, sType) {
-
-    Slider.ANIM_AVAIL = (!YAHOO.lang.isUndefined(YAHOO.util.Anim));
-
-    if (sElementId) {
-        this.init(sElementId, sGroup, true);
-        this.initSlider(sType);
-        this.initThumb(oThumb);
-    }
-}
-
-YAHOO.lang.augmentObject(Slider,{
-    /**
-     * Factory method for creating a horizontal slider
-     * @method YAHOO.widget.Slider.getHorizSlider
-     * @static
-     * @param {String} sBGElId the id of the slider's background element
-     * @param {String} sHandleElId the id of the thumb element
-     * @param {int} iLeft the number of pixels the element can move left
-     * @param {int} iRight the number of pixels the element can move right
-     * @param {int} iTickSize optional parameter for specifying that the element 
-     * should move a certain number pixels at a time.
-     * @return {Slider} a horizontal slider control
-     */
-    getHorizSlider : 
-        function (sBGElId, sHandleElId, iLeft, iRight, iTickSize) {
-            return new Slider(sBGElId, sBGElId, 
-                new YAHOO.widget.SliderThumb(sHandleElId, sBGElId, 
-                                   iLeft, iRight, 0, 0, iTickSize), "horiz");
-    },
-
-    /**
-     * Factory method for creating a vertical slider
-     * @method YAHOO.widget.Slider.getVertSlider
-     * @static
-     * @param {String} sBGElId the id of the slider's background element
-     * @param {String} sHandleElId the id of the thumb element
-     * @param {int} iUp the number of pixels the element can move up
-     * @param {int} iDown the number of pixels the element can move down
-     * @param {int} iTickSize optional parameter for specifying that the element 
-     * should move a certain number pixels at a time.
-     * @return {Slider} a vertical slider control
-     */
-    getVertSlider :
-        function (sBGElId, sHandleElId, iUp, iDown, iTickSize) {
-            return new Slider(sBGElId, sBGElId, 
-                new YAHOO.widget.SliderThumb(sHandleElId, sBGElId, 0, 0, 
-                                   iUp, iDown, iTickSize), "vert");
-    },
-
-    /**
-     * Factory method for creating a slider region like the one in the color
-     * picker example
-     * @method YAHOO.widget.Slider.getSliderRegion
-     * @static
-     * @param {String} sBGElId the id of the slider's background element
-     * @param {String} sHandleElId the id of the thumb element
-     * @param {int} iLeft the number of pixels the element can move left
-     * @param {int} iRight the number of pixels the element can move right
-     * @param {int} iUp the number of pixels the element can move up
-     * @param {int} iDown the number of pixels the element can move down
-     * @param {int} iTickSize optional parameter for specifying that the element 
-     * should move a certain number pixels at a time.
-     * @return {Slider} a slider region control
-     */
-    getSliderRegion : 
-        function (sBGElId, sHandleElId, iLeft, iRight, iUp, iDown, iTickSize) {
-            return new Slider(sBGElId, sBGElId, 
-                new YAHOO.widget.SliderThumb(sHandleElId, sBGElId, iLeft, iRight, 
-                                   iUp, iDown, iTickSize), "region");
-    },
-
-    /**
-     * Constant for valueChangeSource, indicating that the user clicked or
-     * dragged the slider to change the value.
-     * @property Slider.SOURCE_UI_EVENT
-     * @final
-     * @static
-     * @default 1
-     */
-    SOURCE_UI_EVENT : 1,
-
-    /**
-     * Constant for valueChangeSource, indicating that the value was altered
-     * by a programmatic call to setValue/setRegionValue.
-     * @property Slider.SOURCE_SET_VALUE
-     * @final
-     * @static
-     * @default 2
-     */
-    SOURCE_SET_VALUE : 2,
-
-    /**
-     * Constant for valueChangeSource, indicating that the value was altered
-     * by hitting any of the supported keyboard characters.
-     * @property Slider.SOURCE_KEY_EVENT
-     * @final
-     * @static
-     * @default 2
-     */
-    SOURCE_KEY_EVENT : 3,
-
-    /**
-     * By default, animation is available if the animation utility is detected.
-     * @property Slider.ANIM_AVAIL
-     * @static
-     * @type boolean
-     */
-    ANIM_AVAIL : false
-},true);
-
-YAHOO.extend(Slider, YAHOO.util.DragDrop, {
-
-    /**
-     * Tracks the state of the mouse button to aid in when events are fired.
-     *
-     * @property _mouseDown
-     * @type boolean
-     * @default false
-     * @private
-     */
-    _mouseDown : false,
-
-    /**
-     * Override the default setting of dragOnly to true.
-     * @property dragOnly
-     * @type boolean
-     * @default true
-     */
-    dragOnly : true,
-
-    /**
-     * Initializes the slider.  Executed in the constructor
-     * @method initSlider
-     * @param {string} sType the type of slider (horiz, vert, region)
-     */
-    initSlider: function(sType) {
-
-        /**
-         * The type of the slider (horiz, vert, region)
-         * @property type
-         * @type string
-         */
-        this.type = sType;
-
-        //this.removeInvalidHandleType("A");
-
-        this.logger = new YAHOO.widget.LogWriter(this.toString());
-
-        /**
-         * Event the fires when the value of the control changes.  If 
-         * the control is animated the event will fire every point
-         * along the way.
-         * @event change
-         * @param {int} newOffset|x the new offset for normal sliders, or the new
-         *                          x offset for region sliders
-         * @param {int} y the number of pixels the thumb has moved on the y axis
-         *                (region sliders only)
-         */
-        this.createEvent("change", this);
-
-        /**
-         * Event that fires at the beginning of a slider thumb move.
-         * @event slideStart
-         */
-        this.createEvent("slideStart", this);
-
-        /**
-         * Event that fires at the end of a slider thumb move
-         * @event slideEnd
-         */
-        this.createEvent("slideEnd", this);
-
-        /**
-         * Overrides the isTarget property in YAHOO.util.DragDrop
-         * @property isTarget
-         * @private
-         */
-        this.isTarget = false;
-    
-        /**
-         * Flag that determines if the thumb will animate when moved
-         * @property animate
-         * @type boolean
-         */
-        this.animate = Slider.ANIM_AVAIL;
-
-        /**
-         * Set to false to disable a background click thumb move
-         * @property backgroundEnabled
-         * @type boolean
-         */
-        this.backgroundEnabled = true;
-
-        /**
-         * Adjustment factor for tick animation, the more ticks, the
-         * faster the animation (by default)
-         * @property tickPause
-         * @type int
-         */
-        this.tickPause = 40;
-
-        /**
-         * Enables the arrow, home and end keys, defaults to true.
-         * @property enableKeys
-         * @type boolean
-         */
-        this.enableKeys = true;
-
-        /**
-         * Specifies the number of pixels the arrow keys will move the slider.
-         * Default is 20.
-         * @property keyIncrement
-         * @type int
-         */
-        this.keyIncrement = 20;
-
-        /**
-         * moveComplete is set to true when the slider has moved to its final
-         * destination.  For animated slider, this value can be checked in 
-         * the onChange handler to make it possible to execute logic only
-         * when the move is complete rather than at all points along the way.
-         * Deprecated because this flag is only useful when the background is
-         * clicked and the slider is animated.  If the user drags the thumb,
-         * the flag is updated when the drag is over ... the final onDrag event
-         * fires before the mouseup the ends the drag, so the implementer will
-         * never see it.
-         *
-         * @property moveComplete
-         * @type Boolean
-         * @deprecated use the slideEnd event instead
-         */
-        this.moveComplete = true;
-
-        /**
-         * If animation is configured, specifies the length of the animation
-         * in seconds.
-         * @property animationDuration
-         * @type int
-         * @default 0.2
-         */
-        this.animationDuration = 0.2;
-
-        /**
-         * Constant for valueChangeSource, indicating that the user clicked or
-         * dragged the slider to change the value.
-         * @property SOURCE_UI_EVENT
-         * @final
-         * @default 1
-         * @deprecated use static Slider.SOURCE_UI_EVENT
-         */
-        this.SOURCE_UI_EVENT = 1;
-
-        /**
-         * Constant for valueChangeSource, indicating that the value was altered
-         * by a programmatic call to setValue/setRegionValue.
-         * @property SOURCE_SET_VALUE
-         * @final
-         * @default 2
-         * @deprecated use static Slider.SOURCE_SET_VALUE
-         */
-        this.SOURCE_SET_VALUE = 2;
-
-        /**
-         * When the slider value changes, this property is set to identify where
-         * the update came from.  This will be either 1, meaning the slider was
-         * clicked or dragged, or 2, meaning that it was set via a setValue() call.
-         * This can be used within event handlers to apply some of the logic only
-         * when dealing with one source or another.
-         * @property valueChangeSource
-         * @type int
-         * @since 2.3.0
-         */
-        this.valueChangeSource = 0;
-
-        /**
-         * Indicates whether or not events will be supressed for the current
-         * slide operation
-         * @property _silent
-         * @type boolean
-         * @private
-         */
-        this._silent = false;
-
-        /**
-         * Saved offset used to protect against NaN problems when slider is
-         * set to display:none
-         * @property lastOffset
-         * @type [int, int]
-         */
-        this.lastOffset = [0,0];
-    },
-
-    /**
-     * Initializes the slider's thumb. Executed in the constructor.
-     * @method initThumb
-     * @param {YAHOO.widget.SliderThumb} t the slider thumb
-     */
-    initThumb: function(t) {
-
-        var self = this;
-
-        /**
-         * A YAHOO.widget.SliderThumb instance that we will use to 
-         * reposition the thumb when the background is clicked
-         * @property thumb
-         * @type YAHOO.widget.SliderThumb
-         */
-        this.thumb = t;
-
-        t.cacheBetweenDrags = true;
-
-        if (t._isHoriz && t.xTicks && t.xTicks.length) {
-            this.tickPause = Math.round(360 / t.xTicks.length);
-        } else if (t.yTicks && t.yTicks.length) {
-            this.tickPause = Math.round(360 / t.yTicks.length);
-        }
-
-        this.logger.log("tickPause: " + this.tickPause);
-
-        // delegate thumb methods
-        t.onAvailable = function() { 
-                return self.setStartSliderState(); 
-            };
-        t.onMouseDown = function () { 
-                self._mouseDown = true;
-                self.logger.log('thumb mousedown');
-                return self.focus(); 
-            };
-        t.startDrag = function() { 
-                self.logger.log('thumb startDrag');
-                self._slideStart(); 
-            };
-        t.onDrag = function() { 
-                self.logger.log('thumb drag');
-                self.fireEvents(true); 
-            };
-        t.onMouseUp = function() { 
-                self.thumbMouseUp(); 
-            };
-
-    },
-
-    /**
-     * Executed when the slider element is available
-     * @method onAvailable
-     */
-    onAvailable: function() {
-        this._bindKeyEvents();
-    },
-    /**
-     * Sets up the listeners for keydown and key press events.
-     *
-     * @method _bindKeyEvents
-     * @protected
-     */
-    _bindKeyEvents : function () {
-        Event.on(this.id, "keydown",  this.handleKeyDown,  this, true);
-        Event.on(this.id, "keypress", this.handleKeyPress, this, true);
-    },
-
-    /**
-     * Executed when a keypress event happens with the control focused.
-     * Prevents the default behavior for navigation keys.  The actual
-     * logic for moving the slider thumb in response to a key event
-     * happens in handleKeyDown.
-     * @param {Event} e the keypress event
-     */
-    handleKeyPress: function(e) {
-        if (this.enableKeys) {
-            var kc = Event.getCharCode(e);
-
-            switch (kc) {
-                case 0x25: // left
-                case 0x26: // up
-                case 0x27: // right
-                case 0x28: // down
-                case 0x24: // home
-                case 0x23: // end
-                    Event.preventDefault(e);
-                    break;
-                default:
-            }
-        }
-    },
-
-    /**
-     * Executed when a keydown event happens with the control focused.
-     * Updates the slider value and display when the keypress is an
-     * arrow key, home, or end as long as enableKeys is set to true.
-     * @param {Event} e the keydown event
-     */
-    handleKeyDown: function(e) {
-        if (this.enableKeys) {
-            var kc = Event.getCharCode(e),
-                t  = this.thumb,
-                h  = this.getXValue(),
-                v  = this.getYValue(),
-                changeValue = true;
-
-            switch (kc) {
-
-                // left
-                case 0x25: h -= this.keyIncrement; break;
-
-                // up
-                case 0x26: v -= this.keyIncrement; break;
-
-                // right
-                case 0x27: h += this.keyIncrement; break;
-
-                // down
-                case 0x28: v += this.keyIncrement; break;
-
-                // home
-                case 0x24: h = t.leftConstraint;    
-                           v = t.topConstraint;    
-                           break;
-
-                // end
-                case 0x23: h = t.rightConstraint; 
-                           v = t.bottomConstraint;    
-                           break;
-
-                default:   changeValue = false;
-            }
-
-            if (changeValue) {
-                if (t._isRegion) {
-                    this._setRegionValue(Slider.SOURCE_KEY_EVENT, h, v, true);
-                } else {
-                    this._setValue(Slider.SOURCE_KEY_EVENT,
-                        (t._isHoriz ? h : v), true);
-                }
-                Event.stopEvent(e);
-            }
-
-        }
-    },
-
-    /**
-     * Initialization that sets up the value offsets once the elements are ready
-     * @method setStartSliderState
-     */
-    setStartSliderState: function() {
-
-        this.logger.log("Fixing state");
-
-        this.setThumbCenterPoint();
-
-        /**
-         * The basline position of the background element, used
-         * to determine if the background has moved since the last
-         * operation.
-         * @property baselinePos
-         * @type [int, int]
-         */
-        this.baselinePos = getXY(this.getEl());
-
-        this.thumb.startOffset = this.thumb.getOffsetFromParent(this.baselinePos);
-
-        if (this.thumb._isRegion) {
-            if (this.deferredSetRegionValue) {
-                this._setRegionValue.apply(this, this.deferredSetRegionValue);
-                this.deferredSetRegionValue = null;
-            } else {
-                this.setRegionValue(0, 0, true, true, true);
-            }
-        } else {
-            if (this.deferredSetValue) {
-                this._setValue.apply(this, this.deferredSetValue);
-                this.deferredSetValue = null;
-            } else {
-                this.setValue(0, true, true, true);
-            }
-        }
-    },
-
-    /**
-     * When the thumb is available, we cache the centerpoint of the element so
-     * we can position the element correctly when the background is clicked
-     * @method setThumbCenterPoint
-     */
-    setThumbCenterPoint: function() {
-
-        var el = this.thumb.getEl();
-
-        if (el) {
-            /**
-             * The center of the slider element is stored so we can 
-             * place it in the correct position when the background is clicked.
-             * @property thumbCenterPoint
-             * @type {"x": int, "y": int}
-             */
-            this.thumbCenterPoint = { 
-                    x: parseInt(el.offsetWidth/2, 10), 
-                    y: parseInt(el.offsetHeight/2, 10) 
-            };
-        }
-
-    },
-
-    /**
-     * Locks the slider, overrides YAHOO.util.DragDrop
-     * @method lock
-     */
-    lock: function() {
-        this.logger.log("locking");
-        this.thumb.lock();
-        this.locked = true;
-    },
-
-    /**
-     * Unlocks the slider, overrides YAHOO.util.DragDrop
-     * @method unlock
-     */
-    unlock: function() {
-        this.logger.log("unlocking");
-        this.thumb.unlock();
-        this.locked = false;
-    },
-
-    /**
-     * Handles mouseup event on the thumb
-     * @method thumbMouseUp
-     * @private
-     */
-    thumbMouseUp: function() {
-        this._mouseDown = false;
-        this.logger.log("thumb mouseup");
-        if (!this.isLocked()) {
-            this.endMove();
-        }
-
-    },
-
-    onMouseUp: function() {
-        this._mouseDown = false;
-        this.logger.log("background mouseup");
-        if (this.backgroundEnabled && !this.isLocked()) {
-            this.endMove();
-        }
-    },
-
-    /**
-     * Returns a reference to this slider's thumb
-     * @method getThumb
-     * @return {SliderThumb} this slider's thumb
-     */
-    getThumb: function() {
-        return this.thumb;
-    },
-
-    /**
-     * Try to focus the element when clicked so we can add
-     * accessibility features
-     * @method focus
-     * @private
-     */
-    focus: function() {
-        this.logger.log("focus");
-        this.valueChangeSource = Slider.SOURCE_UI_EVENT;
-
-        // Focus the background element if possible
-        var el = this.getEl();
-
-        if (el.focus) {
-            try {
-                el.focus();
-            } catch(e) {
-                // Prevent permission denied unhandled exception in FF that can
-                // happen when setting focus while another element is handling
-                // the blur.  @TODO this is still writing to the error log 
-                // (unhandled error) in FF1.5 with strict error checking on.
-            }
-        }
-
-        this.verifyOffset();
-
-        return !this.isLocked();
-    },
-
-    /**
-     * Event that fires when the value of the slider has changed
-     * @method onChange
-     * @param {int} firstOffset the number of pixels the thumb has moved
-     * from its start position. Normal horizontal and vertical sliders will only
-     * have the firstOffset.  Regions will have both, the first is the horizontal
-     * offset, the second the vertical.
-     * @param {int} secondOffset the y offset for region sliders
-     * @deprecated use instance.subscribe("change") instead
-     */
-    onChange: function (firstOffset, secondOffset) { 
-        /* override me */ 
-        this.logger.log("onChange: " + firstOffset + ", " + secondOffset);
-    },
-
-    /**
-     * Event that fires when the at the beginning of the slider thumb move
-     * @method onSlideStart
-     * @deprecated use instance.subscribe("slideStart") instead
-     */
-    onSlideStart: function () { 
-        /* override me */ 
-        this.logger.log("onSlideStart");
-    },
-
-    /**
-     * Event that fires at the end of a slider thumb move
-     * @method onSliderEnd
-     * @deprecated use instance.subscribe("slideEnd") instead
-     */
-    onSlideEnd: function () { 
-        /* override me */ 
-        this.logger.log("onSlideEnd");
-    },
-
-    /**
-     * Returns the slider's thumb offset from the start position
-     * @method getValue
-     * @return {int} the current value
-     */
-    getValue: function () { 
-        return this.thumb.getValue();
-    },
-
-    /**
-     * Returns the slider's thumb X offset from the start position
-     * @method getXValue
-     * @return {int} the current horizontal offset
-     */
-    getXValue: function () { 
-        return this.thumb.getXValue();
-    },
-
-    /**
-     * Returns the slider's thumb Y offset from the start position
-     * @method getYValue
-     * @return {int} the current vertical offset
-     */
-    getYValue: function () { 
-        return this.thumb.getYValue();
-    },
-
-    /**
-     * Provides a way to set the value of the slider in code.
-     *
-     * @method setValue
-     * @param {int} newOffset the number of pixels the thumb should be
-     * positioned away from the initial start point 
-     * @param {boolean} skipAnim set to true to disable the animation
-     * for this move action (but not others).
-     * @param {boolean} force ignore the locked setting and set value anyway
-     * @param {boolean} silent when true, do not fire events
-     * @return {boolean} true if the move was performed, false if it failed
-     */
-    setValue: function() {
-        var args = _AS.call(arguments);
-        args.unshift(Slider.SOURCE_SET_VALUE);
-        return this._setValue.apply(this,args);
-    },
-
-    /**
-     * Worker function to execute the value set operation.  Accepts type of
-     * set operation in addition to the usual setValue params.
-     *
-     * @method _setValue
-     * @param source {int} what triggered the set (e.g. Slider.SOURCE_SET_VALUE)
-     * @param {int} newOffset the number of pixels the thumb should be
-     * positioned away from the initial start point 
-     * @param {boolean} skipAnim set to true to disable the animation
-     * for this move action (but not others).
-     * @param {boolean} force ignore the locked setting and set value anyway
-     * @param {boolean} silent when true, do not fire events
-     * @return {boolean} true if the move was performed, false if it failed
-     * @protected
-     */
-    _setValue: function(source, newOffset, skipAnim, force, silent) {
-        var t = this.thumb, newX, newY;
-
-        if (!t.available) {
-            this.logger.log("defer setValue until after onAvailble");
-            this.deferredSetValue = arguments;
-            return false;
-        }
-
-        if (this.isLocked() && !force) {
-            this.logger.log("Can't set the value, the control is locked");
-            return false;
-        }
-
-        if ( isNaN(newOffset) ) {
-            this.logger.log("setValue, Illegal argument: " + newOffset);
-            return false;
-        }
-
-        if (t._isRegion) {
-            this.logger.log("Call to setValue for region Slider ignored. Use setRegionValue","warn");
-            return false;
-        }
-
-        this.logger.log("setValue " + newOffset);
-
-        this._silent = silent;
-        this.valueChangeSource = source || Slider.SOURCE_SET_VALUE;
-
-        t.lastOffset = [newOffset, newOffset];
-        this.verifyOffset();
-
-        this._slideStart();
-
-        if (t._isHoriz) {
-            newX = t.initPageX + newOffset + this.thumbCenterPoint.x;
-            this.moveThumb(newX, t.initPageY, skipAnim);
-        } else {
-            newY = t.initPageY + newOffset + this.thumbCenterPoint.y;
-            this.moveThumb(t.initPageX, newY, skipAnim);
-        }
-
-        return true;
-    },
-
-    /**
-     * Provides a way to set the value of the region slider in code.
-     * @method setRegionValue
-     * @param {int} newOffset the number of pixels the thumb should be
-     * positioned away from the initial start point (x axis for region)
-     * @param {int} newOffset2 the number of pixels the thumb should be
-     * positioned away from the initial start point (y axis for region)
-     * @param {boolean} skipAnim set to true to disable the animation
-     * for this move action (but not others).
-     * @param {boolean} force ignore the locked setting and set value anyway
-     * @param {boolean} silent when true, do not fire events
-     * @return {boolean} true if the move was performed, false if it failed
-     */
-    setRegionValue : function () {
-        var args = _AS.call(arguments);
-        args.unshift(Slider.SOURCE_SET_VALUE);
-        return this._setRegionValue.apply(this,args);
-    },
-
-    /**
-     * Worker function to execute the value set operation.  Accepts type of
-     * set operation in addition to the usual setValue params.
-     *
-     * @method _setRegionValue
-     * @param source {int} what triggered the set (e.g. Slider.SOURCE_SET_VALUE)
-     * @param {int} newOffset the number of pixels the thumb should be
-     * positioned away from the initial start point (x axis for region)
-     * @param {int} newOffset2 the number of pixels the thumb should be
-     * positioned away from the initial start point (y axis for region)
-     * @param {boolean} skipAnim set to true to disable the animation
-     * for this move action (but not others).
-     * @param {boolean} force ignore the locked setting and set value anyway
-     * @param {boolean} silent when true, do not fire events
-     * @return {boolean} true if the move was performed, false if it failed
-     * @protected
-     */
-    _setRegionValue: function(source, newOffset, newOffset2, skipAnim, force, silent) {
-        var t = this.thumb, newX, newY;
-
-        if (!t.available) {
-            this.logger.log("defer setRegionValue until after onAvailble");
-            this.deferredSetRegionValue = arguments;
-            return false;
-        }
-
-        if (this.isLocked() && !force) {
-            this.logger.log("Can't set the value, the control is locked");
-            return false;
-        }
-
-        if ( isNaN(newOffset) ) {
-            this.logger.log("setRegionValue, Illegal argument: " + newOffset);
-            return false;
-        }
-
-        if (!t._isRegion) {
-            this.logger.log("Call to setRegionValue for non-region Slider ignored. Use setValue","warn");
-            return false;
-        }
-
-        this._silent = silent;
-
-        this.valueChangeSource = source || Slider.SOURCE_SET_VALUE;
-
-        t.lastOffset = [newOffset, newOffset2];
-        this.verifyOffset();
-
-        this._slideStart();
-
-        newX = t.initPageX + newOffset + this.thumbCenterPoint.x;
-        newY = t.initPageY + newOffset2 + this.thumbCenterPoint.y;
-        this.moveThumb(newX, newY, skipAnim);
-
-        return true;
-    },
-
-    /**
-     * Checks the background position element position.  If it has moved from the
-     * baseline position, the constraints for the thumb are reset
-     * @method verifyOffset
-     * @return {boolean} True if the offset is the same as the baseline.
-     */
-    verifyOffset: function() {
-
-        var xy = getXY(this.getEl()),
-            t  = this.thumb;
-
-        if (!this.thumbCenterPoint || !this.thumbCenterPoint.x) {
-            this.setThumbCenterPoint();
-        }
-
-        if (xy) {
-
-            this.logger.log("newPos: " + xy);
-
-            if (xy[0] != this.baselinePos[0] || xy[1] != this.baselinePos[1]) {
-                this.logger.log("background moved, resetting constraints");
-
-                // Reset background
-                this.setInitPosition();
-                this.baselinePos = xy;
-
-                // Reset thumb
-                t.initPageX = this.initPageX + t.startOffset[0];
-                t.initPageY = this.initPageY + t.startOffset[1];
-                t.deltaSetXY = null;
-                this.resetThumbConstraints();
-
-                return false;
-            }
-        }
-
-        return true;
-    },
-
-    /**
-     * Move the associated slider moved to a timeout to try to get around the 
-     * mousedown stealing moz does when I move the slider element between the 
-     * cursor and the background during the mouseup event
-     * @method moveThumb
-     * @param {int} x the X coordinate of the click
-     * @param {int} y the Y coordinate of the click
-     * @param {boolean} skipAnim don't animate if the move happend onDrag
-     * @param {boolean} midMove set to true if this is not terminating
-     * the slider movement
-     * @private
-     */
-    moveThumb: function(x, y, skipAnim, midMove) {
-
-        var t = this.thumb,
-            self = this,
-            p,_p,anim;
-
-        if (!t.available) {
-            this.logger.log("thumb is not available yet, aborting move");
-            return;
-        }
-
-        this.logger.log("move thumb, x: "  + x + ", y: " + y);
-
-        t.setDelta(this.thumbCenterPoint.x, this.thumbCenterPoint.y);
-
-        _p = t.getTargetCoord(x, y);
-        p = [Math.round(_p.x), Math.round(_p.y)];
-
-        if (this.animate && t._graduated && !skipAnim) {
-            this.logger.log("graduated");
-            this.lock();
-
-            // cache the current thumb pos
-            this.curCoord = getXY(this.thumb.getEl());
-            this.curCoord = [Math.round(this.curCoord[0]), Math.round(this.curCoord[1])];
-
-            setTimeout( function() { self.moveOneTick(p); }, this.tickPause );
-
-        } else if (this.animate && Slider.ANIM_AVAIL && !skipAnim) {
-            this.logger.log("animating to " + p);
-
-            this.lock();
-
-            anim = new YAHOO.util.Motion( 
-                    t.id, { points: { to: p } }, 
-                    this.animationDuration, 
-                    YAHOO.util.Easing.easeOut );
-
-            anim.onComplete.subscribe( function() { 
-                    self.logger.log("Animation completed _mouseDown:" + self._mouseDown);
-                    self.unlock();
-                    if (!self._mouseDown) {
-                        self.endMove(); 
-                    }
-                });
-            anim.animate();
-
-        } else {
-            t.setDragElPos(x, y);
-            if (!midMove && !this._mouseDown) {
-                this.endMove();
-            }
-        }
-    },
-
-    _slideStart: function() {
-        if (!this._sliding) {
-            if (!this._silent) {
-                this.onSlideStart();
-                this.fireEvent("slideStart");
-            }
-            this._sliding = true;
-            this.moveComplete = false; // for backward compatibility. Deprecated
-        }
-    },
-
-    _slideEnd: function() {
-        if (this._sliding) {
-            // Reset state before firing slideEnd
-            var silent = this._silent;
-            this._sliding = false;
-            this.moveComplete = true; // for backward compatibility. Deprecated
-            this._silent = false;
-            if (!silent) {
-                this.onSlideEnd();
-                this.fireEvent("slideEnd");
-            }
-        }
-    },
-
-    /**
-     * Move the slider one tick mark towards its final coordinate.  Used
-     * for the animation when tick marks are defined
-     * @method moveOneTick
-     * @param {int[]} the destination coordinate
-     * @private
-     */
-    moveOneTick: function(finalCoord) {
-
-        var t = this.thumb,
-            self = this,
-            nextCoord = null,
-            tmpX, tmpY;
-
-        if (t._isRegion) {
-            nextCoord = this._getNextX(this.curCoord, finalCoord);
-            tmpX = (nextCoord !== null) ? nextCoord[0] : this.curCoord[0];
-            nextCoord = this._getNextY(this.curCoord, finalCoord);
-            tmpY = (nextCoord !== null) ? nextCoord[1] : this.curCoord[1];
-
-            nextCoord = tmpX !== this.curCoord[0] || tmpY !== this.curCoord[1] ?
-                [ tmpX, tmpY ] : null;
-        } else if (t._isHoriz) {
-            nextCoord = this._getNextX(this.curCoord, finalCoord);
-        } else {
-            nextCoord = this._getNextY(this.curCoord, finalCoord);
-        }
-
-        this.logger.log("moveOneTick: " + 
-                " finalCoord: " + finalCoord +
-                " this.curCoord: " + this.curCoord +
-                " nextCoord: " + nextCoord);
-
-        if (nextCoord) {
-
-            // cache the position
-            this.curCoord = nextCoord;
-
-            // move to the next coord
-            this.thumb.alignElWithMouse(t.getEl(), nextCoord[0] + this.thumbCenterPoint.x, nextCoord[1] + this.thumbCenterPoint.y);
-            
-            // check if we are in the final position, if not make a recursive call
-            if (!(nextCoord[0] == finalCoord[0] && nextCoord[1] == finalCoord[1])) {
-                setTimeout(function() { self.moveOneTick(finalCoord); }, 
-                        this.tickPause);
-            } else {
-                this.unlock();
-                if (!this._mouseDown) {
-                    this.endMove();
-                }
-            }
-        } else {
-            this.unlock();
-            if (!this._mouseDown) {
-                this.endMove();
-            }
-        }
-    },
-
-    /**
-     * Returns the next X tick value based on the current coord and the target coord.
-     * @method _getNextX
-     * @private
-     */
-    _getNextX: function(curCoord, finalCoord) {
-        this.logger.log("getNextX: " + curCoord + ", " + finalCoord);
-        var t = this.thumb,
-            thresh,
-            tmp = [],
-            nextCoord = null;
-
-        if (curCoord[0] > finalCoord[0]) {
-            thresh = t.tickSize - this.thumbCenterPoint.x;
-            tmp = t.getTargetCoord( curCoord[0] - thresh, curCoord[1] );
-            nextCoord = [tmp.x, tmp.y];
-        } else if (curCoord[0] < finalCoord[0]) {
-            thresh = t.tickSize + this.thumbCenterPoint.x;
-            tmp = t.getTargetCoord( curCoord[0] + thresh, curCoord[1] );
-            nextCoord = [tmp.x, tmp.y];
-        } else {
-            // equal, do nothing
-        }
-
-        return nextCoord;
-    },
-
-    /**
-     * Returns the next Y tick value based on the current coord and the target coord.
-     * @method _getNextY
-     * @private
-     */
-    _getNextY: function(curCoord, finalCoord) {
-        var t = this.thumb,
-            thresh,
-            tmp = [],
-            nextCoord = null;
-
-        if (curCoord[1] > finalCoord[1]) {
-            thresh = t.tickSize - this.thumbCenterPoint.y;
-            tmp = t.getTargetCoord( curCoord[0], curCoord[1] - thresh );
-            nextCoord = [tmp.x, tmp.y];
-        } else if (curCoord[1] < finalCoord[1]) {
-            thresh = t.tickSize + this.thumbCenterPoint.y;
-            tmp = t.getTargetCoord( curCoord[0], curCoord[1] + thresh );
-            nextCoord = [tmp.x, tmp.y];
-        } else {
-            // equal, do nothing
-        }
-
-        return nextCoord;
-    },
-
-    /**
-     * Resets the constraints before moving the thumb.
-     * @method b4MouseDown
-     * @private
-     */
-    b4MouseDown: function(e) {
-        if (!this.backgroundEnabled) {
-            return false;
-        }
-
-        this.thumb.autoOffset();
-        this.baselinePos = [];
-    },
-
-    /**
-     * Handles the mousedown event for the slider background
-     * @method onMouseDown
-     * @private
-     */
-    onMouseDown: function(e) {
-        if (!this.backgroundEnabled || this.isLocked()) {
-            return false;
-        }
-
-        this._mouseDown = true;
-
-        var x = Event.getPageX(e),
-            y = Event.getPageY(e);
-
-        this.logger.log("bg mousedown: " + x + "," + y);
-
-        this.focus();
-        this._slideStart();
-        this.moveThumb(x, y);
-    },
-
-    /**
-     * Handles the onDrag event for the slider background
-     * @method onDrag
-     * @private
-     */
-    onDrag: function(e) {
-        this.logger.log("background drag");
-        if (this.backgroundEnabled && !this.isLocked()) {
-            var x = Event.getPageX(e),
-                y = Event.getPageY(e);
-            this.moveThumb(x, y, true, true);
-            this.fireEvents();
-        }
-    },
-
-    /**
-     * Fired when the slider movement ends
-     * @method endMove
-     * @private
-     */
-    endMove: function () {
-        this.logger.log("endMove");
-        this.unlock();
-        this.fireEvents();
-        this._slideEnd();
-    },
-
-    /**
-     * Resets the X and Y contraints for the thumb.  Used in lieu of the thumb
-     * instance's inherited resetConstraints because some logic was not
-     * applicable.
-     * @method resetThumbConstraints
-     * @protected
-     */
-    resetThumbConstraints: function () {
-        var t = this.thumb;
-
-        t.setXConstraint(t.leftConstraint, t.rightConstraint, t.xTickSize);
-        t.setYConstraint(t.topConstraint, t.bottomConstraint, t.xTickSize);
-    },
-
-    /**
-     * Fires the change event if the value has been changed.  Ignored if we are in
-     * the middle of an animation as the event will fire when the animation is
-     * complete
-     * @method fireEvents
-     * @param {boolean} thumbEvent set to true if this event is fired from an event
-     *                  that occurred on the thumb.  If it is, the state of the
-     *                  thumb dd object should be correct.  Otherwise, the event
-     *                  originated on the background, so the thumb state needs to
-     *                  be refreshed before proceeding.
-     * @private
-     */
-    fireEvents: function (thumbEvent) {
-
-        var t = this.thumb, newX, newY, newVal;
-
-        if (!thumbEvent) {
-            t.cachePosition();
-        }
-
-        if (! this.isLocked()) {
-            if (t._isRegion) {
-                newX = t.getXValue();
-                newY = t.getYValue();
-
-                if (newX != this.previousX || newY != this.previousY) {
-                    if (!this._silent) {
-                        this.onChange(newX, newY);
-                        this.fireEvent("change", { x: newX, y: newY });
-                    }
-                }
-
-                this.previousX = newX;
-                this.previousY = newY;
-
-            } else {
-                newVal = t.getValue();
-                if (newVal != this.previousVal) {
-                    this.logger.log("Firing onchange: " + newVal);
-                    if (!this._silent) {
-                        this.onChange( newVal );
-                        this.fireEvent("change", newVal);
-                    }
-                }
-                this.previousVal = newVal;
-            }
-
-        }
-    },
-
-    /**
-     * Slider toString
-     * @method toString
-     * @return {string} string representation of the instance
-     */
-    toString: function () { 
-        return ("Slider (" + this.type +") " + this.id);
-    }
-
-});
-
-YAHOO.lang.augmentProto(Slider, YAHOO.util.EventProvider);
-
-YAHOO.widget.Slider = Slider;
-})();
-/**
- * A drag and drop implementation to be used as the thumb of a slider.
- * @class SliderThumb
- * @extends YAHOO.util.DD
- * @constructor
- * @param {String} id the id of the slider html element
- * @param {String} sGroup the group of related DragDrop items
- * @param {int} iLeft the number of pixels the element can move left
- * @param {int} iRight the number of pixels the element can move right
- * @param {int} iUp the number of pixels the element can move up
- * @param {int} iDown the number of pixels the element can move down
- * @param {int} iTickSize optional parameter for specifying that the element 
- * should move a certain number pixels at a time.
- */
-YAHOO.widget.SliderThumb = function(id, sGroup, iLeft, iRight, iUp, iDown, iTickSize) {
-
-    if (id) {
-        YAHOO.widget.SliderThumb.superclass.constructor.call(this, id, sGroup);
-
-        /**
-         * The id of the thumbs parent HTML element (the slider background 
-         * element).
-         * @property parentElId
-         * @type string
-         */
-        this.parentElId = sGroup;
-    }
-
-
-    this.logger = new YAHOO.widget.LogWriter(this.toString());
-
-    /**
-     * Overrides the isTarget property in YAHOO.util.DragDrop
-     * @property isTarget
-     * @private
-     */
-    this.isTarget = false;
-
-    /**
-     * The tick size for this slider
-     * @property tickSize
-     * @type int
-     * @private
-     */
-    this.tickSize = iTickSize;
-
-    /**
-     * Informs the drag and drop util that the offsets should remain when
-     * resetting the constraints.  This preserves the slider value when
-     * the constraints are reset
-     * @property maintainOffset
-     * @type boolean
-     * @private
-     */
-    this.maintainOffset = true;
-
-    this.initSlider(iLeft, iRight, iUp, iDown, iTickSize);
-
-    /**
-     * Turns off the autoscroll feature in drag and drop
-     * @property scroll
-     * @private
-     */
-    this.scroll = false;
-
-}; 
-
-YAHOO.extend(YAHOO.widget.SliderThumb, YAHOO.util.DD, {
-
-    /**
-     * The (X and Y) difference between the thumb location and its parent 
-     * (the slider background) when the control is instantiated.
-     * @property startOffset
-     * @type [int, int]
-     */
-    startOffset: null,
-
-    /**
-     * Override the default setting of dragOnly to true.
-     * @property dragOnly
-     * @type boolean
-     * @default true
-     */
-    dragOnly : true,
-
-    /**
-     * Flag used to figure out if this is a horizontal or vertical slider
-     * @property _isHoriz
-     * @type boolean
-     * @private
-     */
-    _isHoriz: false,
-
-    /**
-     * Cache the last value so we can check for change
-     * @property _prevVal
-     * @type int
-     * @private
-     */
-    _prevVal: 0,
-
-    /**
-     * The slider is _graduated if there is a tick interval defined
-     * @property _graduated
-     * @type boolean
-     * @private
-     */
-    _graduated: false,
-
-
-    /**
-     * Returns the difference between the location of the thumb and its parent.
-     * @method getOffsetFromParent
-     * @param {[int, int]} parentPos Optionally accepts the position of the parent
-     * @type [int, int]
-     */
-    getOffsetFromParent0: function(parentPos) {
-        var myPos = YAHOO.util.Dom.getXY(this.getEl()),
-            ppos  = parentPos || YAHOO.util.Dom.getXY(this.parentElId);
-
-        return [ (myPos[0] - ppos[0]), (myPos[1] - ppos[1]) ];
-    },
-
-    getOffsetFromParent: function(parentPos) {
-
-        var el = this.getEl(), newOffset,
-            myPos,ppos,l,t,deltaX,deltaY,newLeft,newTop;
-
-        if (!this.deltaOffset) {
-
-            myPos = YAHOO.util.Dom.getXY(el);
-            ppos  = parentPos || YAHOO.util.Dom.getXY(this.parentElId);
-
-            newOffset = [ (myPos[0] - ppos[0]), (myPos[1] - ppos[1]) ];
-
-            l = parseInt( YAHOO.util.Dom.getStyle(el, "left"), 10 );
-            t = parseInt( YAHOO.util.Dom.getStyle(el, "top" ), 10 );
-
-            deltaX = l - newOffset[0];
-            deltaY = t - newOffset[1];
-
-            if (isNaN(deltaX) || isNaN(deltaY)) {
-                this.logger.log("element does not have a position style def yet");
-            } else {
-                this.deltaOffset = [deltaX, deltaY];
-            }
-
-        } else {
-            newLeft = parseInt( YAHOO.util.Dom.getStyle(el, "left"), 10 );
-            newTop  = parseInt( YAHOO.util.Dom.getStyle(el, "top" ), 10 );
-
-            newOffset  = [newLeft + this.deltaOffset[0], newTop + this.deltaOffset[1]];
-        }
-
-        return newOffset;
-    },
-
-    /**
-     * Set up the slider, must be called in the constructor of all subclasses
-     * @method initSlider
-     * @param {int} iLeft the number of pixels the element can move left
-     * @param {int} iRight the number of pixels the element can move right
-     * @param {int} iUp the number of pixels the element can move up
-     * @param {int} iDown the number of pixels the element can move down
-     * @param {int} iTickSize the width of the tick interval.
-     */
-    initSlider: function (iLeft, iRight, iUp, iDown, iTickSize) {
-        this.initLeft = iLeft;
-        this.initRight = iRight;
-        this.initUp = iUp;
-        this.initDown = iDown;
-
-        this.setXConstraint(iLeft, iRight, iTickSize);
-        this.setYConstraint(iUp, iDown, iTickSize);
-
-        if (iTickSize && iTickSize > 1) {
-            this._graduated = true;
-        }
-
-        this._isHoriz  = (iLeft || iRight); 
-        this._isVert   = (iUp   || iDown);
-        this._isRegion = (this._isHoriz && this._isVert); 
-
-    },
-
-    /**
-     * Clear's the slider's ticks
-     * @method clearTicks
-     */
-    clearTicks: function () {
-        YAHOO.widget.SliderThumb.superclass.clearTicks.call(this);
-        this.tickSize = 0;
-        this._graduated = false;
-    },
-
-
-    /**
-     * Gets the current offset from the element's start position in
-     * pixels.
-     * @method getValue
-     * @return {int} the number of pixels (positive or negative) the
-     * slider has moved from the start position.
-     */
-    getValue: function () {
-        return (this._isHoriz) ? this.getXValue() : this.getYValue();
-    },
-
-    /**
-     * Gets the current X offset from the element's start position in
-     * pixels.
-     * @method getXValue
-     * @return {int} the number of pixels (positive or negative) the
-     * slider has moved horizontally from the start position.
-     */
-    getXValue: function () {
-        if (!this.available) { 
-            return 0; 
-        }
-        var newOffset = this.getOffsetFromParent();
-        if (YAHOO.lang.isNumber(newOffset[0])) {
-            this.lastOffset = newOffset;
-            return (newOffset[0] - this.startOffset[0]);
-        } else {
-            this.logger.log("can't get offset, using old value: " + 
-                this.lastOffset[0]);
-            return (this.lastOffset[0] - this.startOffset[0]);
-        }
-    },
-
-    /**
-     * Gets the current Y offset from the element's start position in
-     * pixels.
-     * @method getYValue
-     * @return {int} the number of pixels (positive or negative) the
-     * slider has moved vertically from the start position.
-     */
-    getYValue: function () {
-        if (!this.available) { 
-            return 0; 
-        }
-        var newOffset = this.getOffsetFromParent();
-        if (YAHOO.lang.isNumber(newOffset[1])) {
-            this.lastOffset = newOffset;
-            return (newOffset[1] - this.startOffset[1]);
-        } else {
-            this.logger.log("can't get offset, using old value: " + 
-                this.lastOffset[1]);
-            return (this.lastOffset[1] - this.startOffset[1]);
-        }
-    },
-
-    /**
-     * Thumb toString
-     * @method toString
-     * @return {string} string representation of the instance
-     */
-    toString: function () { 
-        return "SliderThumb " + this.id;
-    },
-
-    /**
-     * The onchange event for the handle/thumb is delegated to the YAHOO.widget.Slider
-     * instance it belongs to.
-     * @method onChange
-     * @private
-     */
-    onChange: function (x, y) { 
-    }
-
-});
-/**
- * A slider with two thumbs, one that represents the min value and 
- * the other the max.  Actually a composition of two sliders, both with
- * the same background.  The constraints for each slider are adjusted
- * dynamically so that the min value of the max slider is equal or greater
- * to the current value of the min slider, and the max value of the min
- * slider is the current value of the max slider.
- * Constructor assumes both thumbs are positioned absolutely at the 0 mark on
- * the background.
- *
- * @namespace YAHOO.widget
- * @class DualSlider
- * @uses YAHOO.util.EventProvider
- * @constructor
- * @param {Slider} minSlider The Slider instance used for the min value thumb
- * @param {Slider} maxSlider The Slider instance used for the max value thumb
- * @param {int}    range The number of pixels the thumbs may move within
- * @param {Array}  initVals (optional) [min,max] Initial thumb placement
- */
-(function () {
-
-var Event = YAHOO.util.Event,
-    YW = YAHOO.widget;
-
-function DualSlider(minSlider, maxSlider, range, initVals) {
-
-    var self  = this,
-        ready = { min : false, max : false },
-        minThumbOnMouseDown, maxThumbOnMouseDown;
-
-    /**
-     * A slider instance that keeps track of the lower value of the range.
-     * <strong>read only</strong>
-     * @property minSlider
-     * @type Slider
-     */
-    this.minSlider = minSlider;
-
-    /**
-     * A slider instance that keeps track of the upper value of the range.
-     * <strong>read only</strong>
-     * @property maxSlider
-     * @type Slider
-     */
-    this.maxSlider = maxSlider;
-
-    /**
-     * The currently active slider (min or max). <strong>read only</strong>
-     * @property activeSlider
-     * @type Slider
-     */
-    this.activeSlider = minSlider;
-
-    /**
-     * Is the DualSlider oriented horizontally or vertically?
-     * <strong>read only</strong>
-     * @property isHoriz
-     * @type boolean
-     */
-    this.isHoriz = minSlider.thumb._isHoriz;
-
-    //FIXME: this is horrible
-    minThumbOnMouseDown = this.minSlider.thumb.onMouseDown;
-    maxThumbOnMouseDown = this.maxSlider.thumb.onMouseDown;
-    this.minSlider.thumb.onMouseDown = function() {
-        self.activeSlider = self.minSlider;
-        minThumbOnMouseDown.apply(this,arguments);
-    };
-    this.maxSlider.thumb.onMouseDown = function () {
-        self.activeSlider = self.maxSlider;
-        maxThumbOnMouseDown.apply(this,arguments);
-    };
-
-    this.minSlider.thumb.onAvailable = function () {
-        minSlider.setStartSliderState();
-        ready.min = true;
-        if (ready.max) {
-            self.fireEvent('ready',self);
-        }
-    };
-    this.maxSlider.thumb.onAvailable = function () {
-        maxSlider.setStartSliderState();
-        ready.max = true;
-        if (ready.min) {
-            self.fireEvent('ready',self);
-        }
-    };
-
-    // dispatch mousedowns to the active slider
-    minSlider.onMouseDown =
-    maxSlider.onMouseDown = function(e) {
-        return this.backgroundEnabled && self._handleMouseDown(e);
-    };
-
-    // Fix the drag behavior so that only the active slider
-    // follows the drag
-    minSlider.onDrag =
-    maxSlider.onDrag = function(e) {
-        self._handleDrag(e);
-    };
-
-    // Likely only the minSlider's onMouseUp will be executed, but both are
-    // overridden just to be safe
-    minSlider.onMouseUp =
-    maxSlider.onMouseUp = function (e) {
-        self._handleMouseUp(e);
-    };
-
-    // Replace the _bindKeyEvents for the minSlider and remove that for the
-    // maxSlider since they share the same bg element.
-    minSlider._bindKeyEvents = function () {
-        self._bindKeyEvents(this);
-    };
-    maxSlider._bindKeyEvents = function () {};
-
-    // The core events for each slider are handled so we can expose a single
-    // event for when the event happens on either slider
-    minSlider.subscribe("change", this._handleMinChange, minSlider, this);
-    minSlider.subscribe("slideStart", this._handleSlideStart, minSlider, this);
-    minSlider.subscribe("slideEnd", this._handleSlideEnd, minSlider, this);
-
-    maxSlider.subscribe("change", this._handleMaxChange, maxSlider, this);
-    maxSlider.subscribe("slideStart", this._handleSlideStart, maxSlider, this);
-    maxSlider.subscribe("slideEnd", this._handleSlideEnd, maxSlider, this);
-
-    /**
-     * Event that fires when the slider is finished setting up
-     * @event ready
-     * @param {DualSlider} dualslider the DualSlider instance
-     */
-    this.createEvent("ready", this);
-
-    /**
-     * Event that fires when either the min or max value changes
-     * @event change
-     * @param {DualSlider} dualslider the DualSlider instance
-     */
-    this.createEvent("change", this);
-
-    /**
-     * Event that fires when one of the thumbs begins to move
-     * @event slideStart
-     * @param {Slider} activeSlider the moving slider
-     */
-    this.createEvent("slideStart", this);
-
-    /**
-     * Event that fires when one of the thumbs finishes moving
-     * @event slideEnd
-     * @param {Slider} activeSlider the moving slider
-     */
-    this.createEvent("slideEnd", this);
-
-    // Validate initial values
-    initVals = YAHOO.lang.isArray(initVals) ? initVals : [0,range];
-    initVals[0] = Math.min(Math.max(parseInt(initVals[0],10)|0,0),range);
-    initVals[1] = Math.max(Math.min(parseInt(initVals[1],10)|0,range),0);
-    // Swap initVals if min > max
-    if (initVals[0] > initVals[1]) {
-        initVals.splice(0,2,initVals[1],initVals[0]);
-    }
-    this.minVal = initVals[0];
-    this.maxVal = initVals[1];
-
-    // Set values so initial assignment when the slider thumbs are ready will
-    // use these values
-    this.minSlider.setValue(this.minVal,true,true,true);
-    this.maxSlider.setValue(this.maxVal,true,true,true);
-
-    YAHOO.log("Setting initial values " + this.minVal + ", " + this.maxVal,"info","DualSlider");
-}
-
-DualSlider.prototype = {
-
-    /**
-     * The current value of the min thumb. <strong>read only</strong>.
-     * @property minVal
-     * @type int
-     */
-    minVal : -1,
-
-    /**
-     * The current value of the max thumb. <strong>read only</strong>.
-     * @property maxVal
-     * @type int
-     */
-    maxVal : -1,
-
-    /**
-     * Pixel distance to maintain between thumbs.
-     * @property minRange
-     * @type int
-     * @default 0
-     */
-    minRange : 0,
-
-    /**
-     * Executed when one of the sliders fires the slideStart event
-     * @method _handleSlideStart
-     * @private
-     */
-    _handleSlideStart: function(data, slider) {
-        this.fireEvent("slideStart", slider);
-    },
-
-    /**
-     * Executed when one of the sliders fires the slideEnd event
-     * @method _handleSlideEnd
-     * @private
-     */
-    _handleSlideEnd: function(data, slider) {
-        this.fireEvent("slideEnd", slider);
-    },
-
-    /**
-     * Overrides the onDrag method for both sliders
-     * @method _handleDrag
-     * @private
-     */
-    _handleDrag: function(e) {
-        YW.Slider.prototype.onDrag.call(this.activeSlider, e);
-    },
-
-    /**
-     * Executed when the min slider fires the change event
-     * @method _handleMinChange
-     * @private
-     */
-    _handleMinChange: function() {
-        this.activeSlider = this.minSlider;
-        this.updateValue();
-    },
-
-    /**
-     * Executed when the max slider fires the change event
-     * @method _handleMaxChange
-     * @private
-     */
-    _handleMaxChange: function() {
-        this.activeSlider = this.maxSlider;
-        this.updateValue();
-    },
-
-    /**
-     * Set up the listeners for the keydown and keypress events.
-     *
-     * @method _bindKeyEvents
-     * @protected
-     */
-    _bindKeyEvents : function (slider) {
-        Event.on(slider.id,'keydown', this._handleKeyDown, this,true);
-        Event.on(slider.id,'keypress',this._handleKeyPress,this,true);
-    },
-
-    /**
-     * Delegate event handling to the active Slider.  See Slider.handleKeyDown.
-     *
-     * @method _handleKeyDown
-     * @param e {Event} the mousedown DOM event
-     * @protected
-     */
-    _handleKeyDown : function (e) {
-        this.activeSlider.handleKeyDown.apply(this.activeSlider,arguments);
-    },
-
-    /**
-     * Delegate event handling to the active Slider.  See Slider.handleKeyPress.
-     *
-     * @method _handleKeyPress
-     * @param e {Event} the mousedown DOM event
-     * @protected
-     */
-    _handleKeyPress : function (e) {
-        this.activeSlider.handleKeyPress.apply(this.activeSlider,arguments);
-    },
-
-    /**
-     * Sets the min and max thumbs to new values.
-     * @method setValues
-     * @param min {int} Pixel offset to assign to the min thumb
-     * @param max {int} Pixel offset to assign to the max thumb
-     * @param skipAnim {boolean} (optional) Set to true to skip thumb animation.
-     * Default false
-     * @param force {boolean} (optional) ignore the locked setting and set
-     * value anyway. Default false
-     * @param silent {boolean} (optional) Set to true to skip firing change
-     * events.  Default false
-     */
-    setValues : function (min, max, skipAnim, force, silent) {
-        var mins = this.minSlider,
-            maxs = this.maxSlider,
-            mint = mins.thumb,
-            maxt = maxs.thumb,
-            self = this,
-            done = { min : false, max : false };
-
-        // Clear constraints to prevent animated thumbs from prematurely
-        // stopping when hitting a constraint that's moving with the other
-        // thumb.
-        if (mint._isHoriz) {
-            mint.setXConstraint(mint.leftConstraint,maxt.rightConstraint,mint.tickSize);
-            maxt.setXConstraint(mint.leftConstraint,maxt.rightConstraint,maxt.tickSize);
-        } else {
-            mint.setYConstraint(mint.topConstraint,maxt.bottomConstraint,mint.tickSize);
-            maxt.setYConstraint(mint.topConstraint,maxt.bottomConstraint,maxt.tickSize);
-        }
-
-        // Set up one-time slideEnd callbacks to call updateValue when both
-        // thumbs have been set
-        this._oneTimeCallback(mins,'slideEnd',function () {
-            done.min = true;
-            if (done.max) {
-                self.updateValue(silent);
-                // Clean the slider's slideEnd events on a timeout since this
-                // will be executed from inside the event's fire
-                setTimeout(function () {
-                    self._cleanEvent(mins,'slideEnd');
-                    self._cleanEvent(maxs,'slideEnd');
-                },0);
-            }
-        });
-
-        this._oneTimeCallback(maxs,'slideEnd',function () {
-            done.max = true;
-            if (done.min) {
-                self.updateValue(silent);
-                // Clean both sliders' slideEnd events on a timeout since this
-                // will be executed from inside one of the event's fire
-                setTimeout(function () {
-                    self._cleanEvent(mins,'slideEnd');
-                    self._cleanEvent(maxs,'slideEnd');
-                },0);
-            }
-        });
-
-        // Must emit Slider slideEnd event to propagate to updateValue
-        mins.setValue(min,skipAnim,force,false);
-        maxs.setValue(max,skipAnim,force,false);
-    },
-
-    /**
-     * Set the min thumb position to a new value.
-     * @method setMinValue
-     * @param min {int} Pixel offset for min thumb
-     * @param skipAnim {boolean} (optional) Set to true to skip thumb animation.
-     * Default false
-     * @param force {boolean} (optional) ignore the locked setting and set
-     * value anyway. Default false
-     * @param silent {boolean} (optional) Set to true to skip firing change
-     * events.  Default false
-     */
-    setMinValue : function (min, skipAnim, force, silent) {
-        var mins = this.minSlider,
-            self = this;
-
-        this.activeSlider = mins;
-
-        // Use a one-time event callback to delay the updateValue call
-        // until after the slide operation is done
-        self = this;
-        this._oneTimeCallback(mins,'slideEnd',function () {
-            self.updateValue(silent);
-            // Clean the slideEnd event on a timeout since this
-            // will be executed from inside the event's fire
-            setTimeout(function () { self._cleanEvent(mins,'slideEnd'); }, 0);
-        });
-
-        mins.setValue(min, skipAnim, force);
-    },
-
-    /**
-     * Set the max thumb position to a new value.
-     * @method setMaxValue
-     * @param max {int} Pixel offset for max thumb
-     * @param skipAnim {boolean} (optional) Set to true to skip thumb animation.
-     * Default false
-     * @param force {boolean} (optional) ignore the locked setting and set
-     * value anyway. Default false
-     * @param silent {boolean} (optional) Set to true to skip firing change
-     * events.  Default false
-     */
-    setMaxValue : function (max, skipAnim, force, silent) {
-        var maxs = this.maxSlider,
-            self = this;
-
-        this.activeSlider = maxs;
-
-        // Use a one-time event callback to delay the updateValue call
-        // until after the slide operation is done
-        this._oneTimeCallback(maxs,'slideEnd',function () {
-            self.updateValue(silent);
-            // Clean the slideEnd event on a timeout since this
-            // will be executed from inside the event's fire
-            setTimeout(function () { self._cleanEvent(maxs,'slideEnd'); }, 0);
-        });
-
-        maxs.setValue(max, skipAnim, force);
-    },
-
-    /**
-     * Executed when one of the sliders is moved
-     * @method updateValue
-     * @param silent {boolean} (optional) Set to true to skip firing change
-     * events.  Default false
-     * @private
-     */
-    updateValue: function(silent) {
-        var min     = this.minSlider.getValue(),
-            max     = this.maxSlider.getValue(),
-            changed = false,
-            mint,maxt,dim,minConstraint,maxConstraint,thumbInnerWidth;
-
-        if (min != this.minVal || max != this.maxVal) {
-            changed = true;
-
-            mint = this.minSlider.thumb;
-            maxt = this.maxSlider.thumb;
-            dim  = this.isHoriz ? 'x' : 'y';
-
-            thumbInnerWidth = this.minSlider.thumbCenterPoint[dim] +
-                              this.maxSlider.thumbCenterPoint[dim];
-
-            // Establish barriers within the respective other thumb's edge, less
-            // the minRange.  Limit to the Slider's range in the case of
-            // negative minRanges.
-            minConstraint = Math.max(max-thumbInnerWidth-this.minRange,0);
-            maxConstraint = Math.min(-min-thumbInnerWidth-this.minRange,0);
-
-            if (this.isHoriz) {
-                minConstraint = Math.min(minConstraint,maxt.rightConstraint);
-
-                mint.setXConstraint(mint.leftConstraint,minConstraint, mint.tickSize);
-
-                maxt.setXConstraint(maxConstraint,maxt.rightConstraint, maxt.tickSize);
-            } else {
-                minConstraint = Math.min(minConstraint,maxt.bottomConstraint);
-                mint.setYConstraint(mint.leftConstraint,minConstraint, mint.tickSize);
-
-                maxt.setYConstraint(maxConstraint,maxt.bottomConstraint, maxt.tickSize);
-            }
-        }
-
-        this.minVal = min;
-        this.maxVal = max;
-
-        if (changed && !silent) {
-            this.fireEvent("change", this);
-        }
-    },
-
-    /**
-     * A background click will move the slider thumb nearest to the click.
-     * Override if you need different behavior.
-     * @method selectActiveSlider
-     * @param e {Event} the mousedown event
-     * @private
-     */
-    selectActiveSlider: function(e) {
-        var min = this.minSlider,
-            max = this.maxSlider,
-            minLocked = min.isLocked() || !min.backgroundEnabled,
-            maxLocked = max.isLocked() || !min.backgroundEnabled,
-            Ev  = YAHOO.util.Event,
-            d;
-
-        if (minLocked || maxLocked) {
-            this.activeSlider = minLocked ? max : min;
-        } else {
-            if (this.isHoriz) {
-                d = Ev.getPageX(e)-min.thumb.initPageX-min.thumbCenterPoint.x;
-            } else {
-                d = Ev.getPageY(e)-min.thumb.initPageY-min.thumbCenterPoint.y;
-            }
-                    
-            this.activeSlider = d*2 > max.getValue()+min.getValue() ? max : min;
-        }
-    },
-
-    /**
-     * Delegates the onMouseDown to the appropriate Slider
-     *
-     * @method _handleMouseDown
-     * @param e {Event} mouseup event
-     * @protected
-     */
-    _handleMouseDown: function(e) {
-        if (!e._handled && !this.minSlider._sliding && !this.maxSlider._sliding) {
-            e._handled = true;
-            this.selectActiveSlider(e);
-            return YW.Slider.prototype.onMouseDown.call(this.activeSlider, e);
-        } else {
-            return false;
-        }
-    },
-
-    /**
-     * Delegates the onMouseUp to the active Slider
-     *
-     * @method _handleMouseUp
-     * @param e {Event} mouseup event
-     * @protected
-     */
-    _handleMouseUp : function (e) {
-        YW.Slider.prototype.onMouseUp.apply(
-            this.activeSlider, arguments);
-    },
-
-    /**
-     * Schedule an event callback that will execute once, then unsubscribe
-     * itself.
-     * @method _oneTimeCallback
-     * @param o {EventProvider} Object to attach the event to
-     * @param evt {string} Name of the event
-     * @param fn {Function} function to execute once
-     * @private
-     */
-    _oneTimeCallback : function (o,evt,fn) {
-        var sub = function () {
-            // Unsubscribe myself
-            o.unsubscribe(evt, sub);
-            // Pass the event handler arguments to the one time callback
-            fn.apply({},arguments);
-        };
-        o.subscribe(evt,sub);
-    },
-
-    /**
-     * Clean up the slideEnd event subscribers array, since each one-time
-     * callback will be replaced in the event's subscribers property with
-     * null.  This will cause memory bloat and loss of performance.
-     * @method _cleanEvent
-     * @param o {EventProvider} object housing the CustomEvent
-     * @param evt {string} name of the CustomEvent
-     * @private
-     */
-    _cleanEvent : function (o,evt) {
-        var ce,i,len,j,subs,newSubs;
-
-        if (o.__yui_events && o.events[evt]) {
-            for (i = o.__yui_events.length; i >= 0; --i) {
-                if (o.__yui_events[i].type === evt) {
-                    ce = o.__yui_events[i];
-                    break;
-                }
-            }
-            if (ce) {
-                subs    = ce.subscribers;
-                newSubs = [];
-                j = 0;
-                for (i = 0, len = subs.length; i < len; ++i) {
-                    if (subs[i]) {
-                        newSubs[j++] = subs[i];
-                    }
-                }
-                ce.subscribers = newSubs;
-            }
-        }
-    }
-
-};
-
-YAHOO.lang.augmentProto(DualSlider, YAHOO.util.EventProvider);
-
-
-/**
- * Factory method for creating a horizontal dual-thumb slider
- * @for YAHOO.widget.Slider
- * @method YAHOO.widget.Slider.getHorizDualSlider
- * @static
- * @param {String} bg the id of the slider's background element
- * @param {String} minthumb the id of the min thumb
- * @param {String} maxthumb the id of the thumb thumb
- * @param {int} range the number of pixels the thumbs can move within
- * @param {int} iTickSize (optional) the element should move this many pixels
- * at a time
- * @param {Array}  initVals (optional) [min,max] Initial thumb placement
- * @return {DualSlider} a horizontal dual-thumb slider control
- */
-YW.Slider.getHorizDualSlider = 
-    function (bg, minthumb, maxthumb, range, iTickSize, initVals) {
-        var mint = new YW.SliderThumb(minthumb, bg, 0, range, 0, 0, iTickSize),
-            maxt = new YW.SliderThumb(maxthumb, bg, 0, range, 0, 0, iTickSize);
-
-        return new DualSlider(
-                    new YW.Slider(bg, bg, mint, "horiz"),
-                    new YW.Slider(bg, bg, maxt, "horiz"),
-                    range, initVals);
-};
-
-/**
- * Factory method for creating a vertical dual-thumb slider.
- * @for YAHOO.widget.Slider
- * @method YAHOO.widget.Slider.getVertDualSlider
- * @static
- * @param {String} bg the id of the slider's background element
- * @param {String} minthumb the id of the min thumb
- * @param {String} maxthumb the id of the thumb thumb
- * @param {int} range the number of pixels the thumbs can move within
- * @param {int} iTickSize (optional) the element should move this many pixels
- * at a time
- * @param {Array}  initVals (optional) [min,max] Initial thumb placement
- * @return {DualSlider} a vertical dual-thumb slider control
- */
-YW.Slider.getVertDualSlider = 
-    function (bg, minthumb, maxthumb, range, iTickSize, initVals) {
-        var mint = new YW.SliderThumb(minthumb, bg, 0, 0, 0, range, iTickSize),
-            maxt = new YW.SliderThumb(maxthumb, bg, 0, 0, 0, range, iTickSize);
-
-        return new YW.DualSlider(
-                    new YW.Slider(bg, bg, mint, "vert"),
-                    new YW.Slider(bg, bg, maxt, "vert"),
-                    range, initVals);
-};
-
-YAHOO.widget.DualSlider = DualSlider;
-
-})();
-YAHOO.register("slider", YAHOO.widget.Slider, {version: "2.8.0r4", build: "2449"});
diff --git a/koha-tmpl/intranet-tmpl/prog/en/lib/yui/slider/slider-min.js b/koha-tmpl/intranet-tmpl/prog/en/lib/yui/slider/slider-min.js
deleted file mode 100644 (file)
index 26e3c53..0000000
+++ /dev/null
@@ -1,9 +0,0 @@
-/*
-Copyright (c) 2009, Yahoo! Inc. All rights reserved.
-Code licensed under the BSD License:
-http://developer.yahoo.net/yui/license.txt
-version: 2.8.0r4
-*/
-(function(){var B=YAHOO.util.Dom.getXY,A=YAHOO.util.Event,D=Array.prototype.slice;function C(G,E,F,H){C.ANIM_AVAIL=(!YAHOO.lang.isUndefined(YAHOO.util.Anim));if(G){this.init(G,E,true);this.initSlider(H);this.initThumb(F);}}YAHOO.lang.augmentObject(C,{getHorizSlider:function(F,G,I,H,E){return new C(F,F,new YAHOO.widget.SliderThumb(G,F,I,H,0,0,E),"horiz");},getVertSlider:function(G,H,E,I,F){return new C(G,G,new YAHOO.widget.SliderThumb(H,G,0,0,E,I,F),"vert");},getSliderRegion:function(G,H,J,I,E,K,F){return new C(G,G,new YAHOO.widget.SliderThumb(H,G,J,I,E,K,F),"region");},SOURCE_UI_EVENT:1,SOURCE_SET_VALUE:2,SOURCE_KEY_EVENT:3,ANIM_AVAIL:false},true);YAHOO.extend(C,YAHOO.util.DragDrop,{_mouseDown:false,dragOnly:true,initSlider:function(E){this.type=E;this.createEvent("change",this);this.createEvent("slideStart",this);this.createEvent("slideEnd",this);this.isTarget=false;this.animate=C.ANIM_AVAIL;this.backgroundEnabled=true;this.tickPause=40;this.enableKeys=true;this.keyIncrement=20;this.moveComplete=true;this.animationDuration=0.2;this.SOURCE_UI_EVENT=1;this.SOURCE_SET_VALUE=2;this.valueChangeSource=0;this._silent=false;this.lastOffset=[0,0];},initThumb:function(F){var E=this;this.thumb=F;F.cacheBetweenDrags=true;if(F._isHoriz&&F.xTicks&&F.xTicks.length){this.tickPause=Math.round(360/F.xTicks.length);}else{if(F.yTicks&&F.yTicks.length){this.tickPause=Math.round(360/F.yTicks.length);}}F.onAvailable=function(){return E.setStartSliderState();};F.onMouseDown=function(){E._mouseDown=true;return E.focus();};F.startDrag=function(){E._slideStart();};F.onDrag=function(){E.fireEvents(true);};F.onMouseUp=function(){E.thumbMouseUp();};},onAvailable:function(){this._bindKeyEvents();},_bindKeyEvents:function(){A.on(this.id,"keydown",this.handleKeyDown,this,true);A.on(this.id,"keypress",this.handleKeyPress,this,true);},handleKeyPress:function(F){if(this.enableKeys){var E=A.getCharCode(F);switch(E){case 37:case 38:case 39:case 40:case 36:case 35:A.preventDefault(F);break;default:}}},handleKeyDown:function(J){if(this.enableKeys){var G=A.getCharCode(J),F=this.thumb,H=this.getXValue(),E=this.getYValue(),I=true;switch(G){case 37:H-=this.keyIncrement;break;case 38:E-=this.keyIncrement;break;case 39:H+=this.keyIncrement;break;case 40:E+=this.keyIncrement;break;case 36:H=F.leftConstraint;E=F.topConstraint;break;case 35:H=F.rightConstraint;E=F.bottomConstraint;break;default:I=false;}if(I){if(F._isRegion){this._setRegionValue(C.SOURCE_KEY_EVENT,H,E,true);}else{this._setValue(C.SOURCE_KEY_EVENT,(F._isHoriz?H:E),true);}A.stopEvent(J);}}},setStartSliderState:function(){this.setThumbCenterPoint();this.baselinePos=B(this.getEl());this.thumb.startOffset=this.thumb.getOffsetFromParent(this.baselinePos);if(this.thumb._isRegion){if(this.deferredSetRegionValue){this._setRegionValue.apply(this,this.deferredSetRegionValue);this.deferredSetRegionValue=null;}else{this.setRegionValue(0,0,true,true,true);}}else{if(this.deferredSetValue){this._setValue.apply(this,this.deferredSetValue);this.deferredSetValue=null;}else{this.setValue(0,true,true,true);}}},setThumbCenterPoint:function(){var E=this.thumb.getEl();if(E){this.thumbCenterPoint={x:parseInt(E.offsetWidth/2,10),y:parseInt(E.offsetHeight/2,10)};}},lock:function(){this.thumb.lock();this.locked=true;},unlock:function(){this.thumb.unlock();this.locked=false;},thumbMouseUp:function(){this._mouseDown=false;if(!this.isLocked()){this.endMove();}},onMouseUp:function(){this._mouseDown=false;if(this.backgroundEnabled&&!this.isLocked()){this.endMove();}},getThumb:function(){return this.thumb;},focus:function(){this.valueChangeSource=C.SOURCE_UI_EVENT;var E=this.getEl();if(E.focus){try{E.focus();}catch(F){}}this.verifyOffset();return !this.isLocked();},onChange:function(E,F){},onSlideStart:function(){},onSlideEnd:function(){},getValue:function(){return this.thumb.getValue();},getXValue:function(){return this.thumb.getXValue();},getYValue:function(){return this.thumb.getYValue();},setValue:function(){var E=D.call(arguments);E.unshift(C.SOURCE_SET_VALUE);return this._setValue.apply(this,E);},_setValue:function(I,L,G,H,E){var F=this.thumb,K,J;if(!F.available){this.deferredSetValue=arguments;return false;}if(this.isLocked()&&!H){return false;}if(isNaN(L)){return false;}if(F._isRegion){return false;}this._silent=E;this.valueChangeSource=I||C.SOURCE_SET_VALUE;F.lastOffset=[L,L];this.verifyOffset();this._slideStart();if(F._isHoriz){K=F.initPageX+L+this.thumbCenterPoint.x;this.moveThumb(K,F.initPageY,G);}else{J=F.initPageY+L+this.thumbCenterPoint.y;this.moveThumb(F.initPageX,J,G);}return true;},setRegionValue:function(){var E=D.call(arguments);E.unshift(C.SOURCE_SET_VALUE);return this._setRegionValue.apply(this,E);},_setRegionValue:function(F,J,H,I,G,K){var L=this.thumb,E,M;if(!L.available){this.deferredSetRegionValue=arguments;return false;}if(this.isLocked()&&!G){return false;}if(isNaN(J)){return false;}if(!L._isRegion){return false;}this._silent=K;this.valueChangeSource=F||C.SOURCE_SET_VALUE;L.lastOffset=[J,H];this.verifyOffset();this._slideStart();E=L.initPageX+J+this.thumbCenterPoint.x;M=L.initPageY+H+this.thumbCenterPoint.y;this.moveThumb(E,M,I);return true;},verifyOffset:function(){var F=B(this.getEl()),E=this.thumb;if(!this.thumbCenterPoint||!this.thumbCenterPoint.x){this.setThumbCenterPoint();}if(F){if(F[0]!=this.baselinePos[0]||F[1]!=this.baselinePos[1]){this.setInitPosition();this.baselinePos=F;E.initPageX=this.initPageX+E.startOffset[0];E.initPageY=this.initPageY+E.startOffset[1];E.deltaSetXY=null;this.resetThumbConstraints();return false;}}return true;},moveThumb:function(K,J,I,G){var L=this.thumb,M=this,F,E,H;if(!L.available){return;}L.setDelta(this.thumbCenterPoint.x,this.thumbCenterPoint.y);E=L.getTargetCoord(K,J);F=[Math.round(E.x),Math.round(E.y)];if(this.animate&&L._graduated&&!I){this.lock();this.curCoord=B(this.thumb.getEl());this.curCoord=[Math.round(this.curCoord[0]),Math.round(this.curCoord[1])];setTimeout(function(){M.moveOneTick(F);},this.tickPause);}else{if(this.animate&&C.ANIM_AVAIL&&!I){this.lock();
-H=new YAHOO.util.Motion(L.id,{points:{to:F}},this.animationDuration,YAHOO.util.Easing.easeOut);H.onComplete.subscribe(function(){M.unlock();if(!M._mouseDown){M.endMove();}});H.animate();}else{L.setDragElPos(K,J);if(!G&&!this._mouseDown){this.endMove();}}}},_slideStart:function(){if(!this._sliding){if(!this._silent){this.onSlideStart();this.fireEvent("slideStart");}this._sliding=true;this.moveComplete=false;}},_slideEnd:function(){if(this._sliding){var E=this._silent;this._sliding=false;this.moveComplete=true;this._silent=false;if(!E){this.onSlideEnd();this.fireEvent("slideEnd");}}},moveOneTick:function(F){var H=this.thumb,G=this,I=null,E,J;if(H._isRegion){I=this._getNextX(this.curCoord,F);E=(I!==null)?I[0]:this.curCoord[0];I=this._getNextY(this.curCoord,F);J=(I!==null)?I[1]:this.curCoord[1];I=E!==this.curCoord[0]||J!==this.curCoord[1]?[E,J]:null;}else{if(H._isHoriz){I=this._getNextX(this.curCoord,F);}else{I=this._getNextY(this.curCoord,F);}}if(I){this.curCoord=I;this.thumb.alignElWithMouse(H.getEl(),I[0]+this.thumbCenterPoint.x,I[1]+this.thumbCenterPoint.y);if(!(I[0]==F[0]&&I[1]==F[1])){setTimeout(function(){G.moveOneTick(F);},this.tickPause);}else{this.unlock();if(!this._mouseDown){this.endMove();}}}else{this.unlock();if(!this._mouseDown){this.endMove();}}},_getNextX:function(E,F){var H=this.thumb,J,G=[],I=null;if(E[0]>F[0]){J=H.tickSize-this.thumbCenterPoint.x;G=H.getTargetCoord(E[0]-J,E[1]);I=[G.x,G.y];}else{if(E[0]<F[0]){J=H.tickSize+this.thumbCenterPoint.x;G=H.getTargetCoord(E[0]+J,E[1]);I=[G.x,G.y];}else{}}return I;},_getNextY:function(E,F){var H=this.thumb,J,G=[],I=null;if(E[1]>F[1]){J=H.tickSize-this.thumbCenterPoint.y;G=H.getTargetCoord(E[0],E[1]-J);I=[G.x,G.y];}else{if(E[1]<F[1]){J=H.tickSize+this.thumbCenterPoint.y;G=H.getTargetCoord(E[0],E[1]+J);I=[G.x,G.y];}else{}}return I;},b4MouseDown:function(E){if(!this.backgroundEnabled){return false;}this.thumb.autoOffset();this.baselinePos=[];},onMouseDown:function(F){if(!this.backgroundEnabled||this.isLocked()){return false;}this._mouseDown=true;var E=A.getPageX(F),G=A.getPageY(F);this.focus();this._slideStart();this.moveThumb(E,G);},onDrag:function(F){if(this.backgroundEnabled&&!this.isLocked()){var E=A.getPageX(F),G=A.getPageY(F);this.moveThumb(E,G,true,true);this.fireEvents();}},endMove:function(){this.unlock();this.fireEvents();this._slideEnd();},resetThumbConstraints:function(){var E=this.thumb;E.setXConstraint(E.leftConstraint,E.rightConstraint,E.xTickSize);E.setYConstraint(E.topConstraint,E.bottomConstraint,E.xTickSize);},fireEvents:function(G){var F=this.thumb,I,H,E;if(!G){F.cachePosition();}if(!this.isLocked()){if(F._isRegion){I=F.getXValue();H=F.getYValue();if(I!=this.previousX||H!=this.previousY){if(!this._silent){this.onChange(I,H);this.fireEvent("change",{x:I,y:H});}}this.previousX=I;this.previousY=H;}else{E=F.getValue();if(E!=this.previousVal){if(!this._silent){this.onChange(E);this.fireEvent("change",E);}}this.previousVal=E;}}},toString:function(){return("Slider ("+this.type+") "+this.id);}});YAHOO.lang.augmentProto(C,YAHOO.util.EventProvider);YAHOO.widget.Slider=C;})();YAHOO.widget.SliderThumb=function(G,B,E,D,A,F,C){if(G){YAHOO.widget.SliderThumb.superclass.constructor.call(this,G,B);this.parentElId=B;}this.isTarget=false;this.tickSize=C;this.maintainOffset=true;this.initSlider(E,D,A,F,C);this.scroll=false;};YAHOO.extend(YAHOO.widget.SliderThumb,YAHOO.util.DD,{startOffset:null,dragOnly:true,_isHoriz:false,_prevVal:0,_graduated:false,getOffsetFromParent0:function(C){var A=YAHOO.util.Dom.getXY(this.getEl()),B=C||YAHOO.util.Dom.getXY(this.parentElId);return[(A[0]-B[0]),(A[1]-B[1])];},getOffsetFromParent:function(H){var A=this.getEl(),E,I,F,B,K,D,C,J,G;if(!this.deltaOffset){I=YAHOO.util.Dom.getXY(A);F=H||YAHOO.util.Dom.getXY(this.parentElId);E=[(I[0]-F[0]),(I[1]-F[1])];B=parseInt(YAHOO.util.Dom.getStyle(A,"left"),10);K=parseInt(YAHOO.util.Dom.getStyle(A,"top"),10);D=B-E[0];C=K-E[1];if(isNaN(D)||isNaN(C)){}else{this.deltaOffset=[D,C];}}else{J=parseInt(YAHOO.util.Dom.getStyle(A,"left"),10);G=parseInt(YAHOO.util.Dom.getStyle(A,"top"),10);E=[J+this.deltaOffset[0],G+this.deltaOffset[1]];}return E;},initSlider:function(D,C,A,E,B){this.initLeft=D;this.initRight=C;this.initUp=A;this.initDown=E;this.setXConstraint(D,C,B);this.setYConstraint(A,E,B);if(B&&B>1){this._graduated=true;}this._isHoriz=(D||C);this._isVert=(A||E);this._isRegion=(this._isHoriz&&this._isVert);},clearTicks:function(){YAHOO.widget.SliderThumb.superclass.clearTicks.call(this);this.tickSize=0;this._graduated=false;},getValue:function(){return(this._isHoriz)?this.getXValue():this.getYValue();},getXValue:function(){if(!this.available){return 0;}var A=this.getOffsetFromParent();if(YAHOO.lang.isNumber(A[0])){this.lastOffset=A;return(A[0]-this.startOffset[0]);}else{return(this.lastOffset[0]-this.startOffset[0]);}},getYValue:function(){if(!this.available){return 0;}var A=this.getOffsetFromParent();if(YAHOO.lang.isNumber(A[1])){this.lastOffset=A;return(A[1]-this.startOffset[1]);}else{return(this.lastOffset[1]-this.startOffset[1]);}},toString:function(){return"SliderThumb "+this.id;},onChange:function(A,B){}});(function(){var A=YAHOO.util.Event,B=YAHOO.widget;function C(I,F,H,D){var G=this,J={min:false,max:false},E,K;this.minSlider=I;this.maxSlider=F;this.activeSlider=I;this.isHoriz=I.thumb._isHoriz;E=this.minSlider.thumb.onMouseDown;K=this.maxSlider.thumb.onMouseDown;this.minSlider.thumb.onMouseDown=function(){G.activeSlider=G.minSlider;E.apply(this,arguments);};this.maxSlider.thumb.onMouseDown=function(){G.activeSlider=G.maxSlider;K.apply(this,arguments);};this.minSlider.thumb.onAvailable=function(){I.setStartSliderState();J.min=true;if(J.max){G.fireEvent("ready",G);}};this.maxSlider.thumb.onAvailable=function(){F.setStartSliderState();J.max=true;if(J.min){G.fireEvent("ready",G);}};I.onMouseDown=F.onMouseDown=function(L){return this.backgroundEnabled&&G._handleMouseDown(L);};I.onDrag=F.onDrag=function(L){G._handleDrag(L);};I.onMouseUp=F.onMouseUp=function(L){G._handleMouseUp(L);
-};I._bindKeyEvents=function(){G._bindKeyEvents(this);};F._bindKeyEvents=function(){};I.subscribe("change",this._handleMinChange,I,this);I.subscribe("slideStart",this._handleSlideStart,I,this);I.subscribe("slideEnd",this._handleSlideEnd,I,this);F.subscribe("change",this._handleMaxChange,F,this);F.subscribe("slideStart",this._handleSlideStart,F,this);F.subscribe("slideEnd",this._handleSlideEnd,F,this);this.createEvent("ready",this);this.createEvent("change",this);this.createEvent("slideStart",this);this.createEvent("slideEnd",this);D=YAHOO.lang.isArray(D)?D:[0,H];D[0]=Math.min(Math.max(parseInt(D[0],10)|0,0),H);D[1]=Math.max(Math.min(parseInt(D[1],10)|0,H),0);if(D[0]>D[1]){D.splice(0,2,D[1],D[0]);}this.minVal=D[0];this.maxVal=D[1];this.minSlider.setValue(this.minVal,true,true,true);this.maxSlider.setValue(this.maxVal,true,true,true);}C.prototype={minVal:-1,maxVal:-1,minRange:0,_handleSlideStart:function(E,D){this.fireEvent("slideStart",D);},_handleSlideEnd:function(E,D){this.fireEvent("slideEnd",D);},_handleDrag:function(D){B.Slider.prototype.onDrag.call(this.activeSlider,D);},_handleMinChange:function(){this.activeSlider=this.minSlider;this.updateValue();},_handleMaxChange:function(){this.activeSlider=this.maxSlider;this.updateValue();},_bindKeyEvents:function(D){A.on(D.id,"keydown",this._handleKeyDown,this,true);A.on(D.id,"keypress",this._handleKeyPress,this,true);},_handleKeyDown:function(D){this.activeSlider.handleKeyDown.apply(this.activeSlider,arguments);},_handleKeyPress:function(D){this.activeSlider.handleKeyPress.apply(this.activeSlider,arguments);},setValues:function(H,K,I,E,J){var F=this.minSlider,M=this.maxSlider,D=F.thumb,L=M.thumb,N=this,G={min:false,max:false};if(D._isHoriz){D.setXConstraint(D.leftConstraint,L.rightConstraint,D.tickSize);L.setXConstraint(D.leftConstraint,L.rightConstraint,L.tickSize);}else{D.setYConstraint(D.topConstraint,L.bottomConstraint,D.tickSize);L.setYConstraint(D.topConstraint,L.bottomConstraint,L.tickSize);}this._oneTimeCallback(F,"slideEnd",function(){G.min=true;if(G.max){N.updateValue(J);setTimeout(function(){N._cleanEvent(F,"slideEnd");N._cleanEvent(M,"slideEnd");},0);}});this._oneTimeCallback(M,"slideEnd",function(){G.max=true;if(G.min){N.updateValue(J);setTimeout(function(){N._cleanEvent(F,"slideEnd");N._cleanEvent(M,"slideEnd");},0);}});F.setValue(H,I,E,false);M.setValue(K,I,E,false);},setMinValue:function(F,H,I,E){var G=this.minSlider,D=this;this.activeSlider=G;D=this;this._oneTimeCallback(G,"slideEnd",function(){D.updateValue(E);setTimeout(function(){D._cleanEvent(G,"slideEnd");},0);});G.setValue(F,H,I);},setMaxValue:function(D,H,I,F){var G=this.maxSlider,E=this;this.activeSlider=G;this._oneTimeCallback(G,"slideEnd",function(){E.updateValue(F);setTimeout(function(){E._cleanEvent(G,"slideEnd");},0);});G.setValue(D,H,I);},updateValue:function(J){var E=this.minSlider.getValue(),K=this.maxSlider.getValue(),F=false,D,M,H,I,L,G;if(E!=this.minVal||K!=this.maxVal){F=true;D=this.minSlider.thumb;M=this.maxSlider.thumb;H=this.isHoriz?"x":"y";G=this.minSlider.thumbCenterPoint[H]+this.maxSlider.thumbCenterPoint[H];I=Math.max(K-G-this.minRange,0);L=Math.min(-E-G-this.minRange,0);if(this.isHoriz){I=Math.min(I,M.rightConstraint);D.setXConstraint(D.leftConstraint,I,D.tickSize);M.setXConstraint(L,M.rightConstraint,M.tickSize);}else{I=Math.min(I,M.bottomConstraint);D.setYConstraint(D.leftConstraint,I,D.tickSize);M.setYConstraint(L,M.bottomConstraint,M.tickSize);}}this.minVal=E;this.maxVal=K;if(F&&!J){this.fireEvent("change",this);}},selectActiveSlider:function(H){var E=this.minSlider,D=this.maxSlider,J=E.isLocked()||!E.backgroundEnabled,G=D.isLocked()||!E.backgroundEnabled,F=YAHOO.util.Event,I;if(J||G){this.activeSlider=J?D:E;}else{if(this.isHoriz){I=F.getPageX(H)-E.thumb.initPageX-E.thumbCenterPoint.x;}else{I=F.getPageY(H)-E.thumb.initPageY-E.thumbCenterPoint.y;}this.activeSlider=I*2>D.getValue()+E.getValue()?D:E;}},_handleMouseDown:function(D){if(!D._handled&&!this.minSlider._sliding&&!this.maxSlider._sliding){D._handled=true;this.selectActiveSlider(D);return B.Slider.prototype.onMouseDown.call(this.activeSlider,D);}else{return false;}},_handleMouseUp:function(D){B.Slider.prototype.onMouseUp.apply(this.activeSlider,arguments);},_oneTimeCallback:function(G,D,F){var E=function(){G.unsubscribe(D,E);F.apply({},arguments);};G.subscribe(D,E);},_cleanEvent:function(K,E){var J,I,D,G,H,F;if(K.__yui_events&&K.events[E]){for(I=K.__yui_events.length;I>=0;--I){if(K.__yui_events[I].type===E){J=K.__yui_events[I];break;}}if(J){H=J.subscribers;F=[];G=0;for(I=0,D=H.length;I<D;++I){if(H[I]){F[G++]=H[I];}}J.subscribers=F;}}}};YAHOO.lang.augmentProto(C,YAHOO.util.EventProvider);B.Slider.getHorizDualSlider=function(H,J,K,G,F,D){var I=new B.SliderThumb(J,H,0,G,0,0,F),E=new B.SliderThumb(K,H,0,G,0,0,F);return new C(new B.Slider(H,H,I,"horiz"),new B.Slider(H,H,E,"horiz"),G,D);};B.Slider.getVertDualSlider=function(H,J,K,G,F,D){var I=new B.SliderThumb(J,H,0,0,0,G,F),E=new B.SliderThumb(K,H,0,0,0,G,F);return new B.DualSlider(new B.Slider(H,H,I,"vert"),new B.Slider(H,H,E,"vert"),G,D);};YAHOO.widget.DualSlider=C;})();YAHOO.register("slider",YAHOO.widget.Slider,{version:"2.8.0r4",build:"2449"});
\ No newline at end of file
diff --git a/koha-tmpl/intranet-tmpl/prog/en/lib/yui/slider/slider.js b/koha-tmpl/intranet-tmpl/prog/en/lib/yui/slider/slider.js
deleted file mode 100644 (file)
index 1ef24e3..0000000
+++ /dev/null
@@ -1,2068 +0,0 @@
-/*
-Copyright (c) 2009, Yahoo! Inc. All rights reserved.
-Code licensed under the BSD License:
-http://developer.yahoo.net/yui/license.txt
-version: 2.8.0r4
-*/
-/**
- * The Slider component is a UI control that enables the user to adjust 
- * values in a finite range along one or two axes. Typically, the Slider 
- * control is used in a web application as a rich, visual replacement 
- * for an input box that takes a number as input. The Slider control can 
- * also easily accommodate a second dimension, providing x,y output for 
- * a selection point chosen from a rectangular region.
- *
- * @module    slider
- * @title     Slider Widget
- * @namespace YAHOO.widget
- * @requires  yahoo,dom,dragdrop,event
- * @optional  animation
- */
- (function () {
-
-var getXY = YAHOO.util.Dom.getXY,
-    Event = YAHOO.util.Event,
-    _AS   = Array.prototype.slice;
-
-/**
- * A DragDrop implementation that can be used as a background for a
- * slider.  It takes a reference to the thumb instance 
- * so it can delegate some of the events to it.  The goal is to make the 
- * thumb jump to the location on the background when the background is 
- * clicked.  
- *
- * @class Slider
- * @extends YAHOO.util.DragDrop
- * @uses YAHOO.util.EventProvider
- * @constructor
- * @param {String}      id     The id of the element linked to this instance
- * @param {String}      sGroup The group of related DragDrop items
- * @param {SliderThumb} oThumb The thumb for this slider
- * @param {String}      sType  The type of slider (horiz, vert, region)
- */
-function Slider(sElementId, sGroup, oThumb, sType) {
-
-    Slider.ANIM_AVAIL = (!YAHOO.lang.isUndefined(YAHOO.util.Anim));
-
-    if (sElementId) {
-        this.init(sElementId, sGroup, true);
-        this.initSlider(sType);
-        this.initThumb(oThumb);
-    }
-}
-
-YAHOO.lang.augmentObject(Slider,{
-    /**
-     * Factory method for creating a horizontal slider
-     * @method YAHOO.widget.Slider.getHorizSlider
-     * @static
-     * @param {String} sBGElId the id of the slider's background element
-     * @param {String} sHandleElId the id of the thumb element
-     * @param {int} iLeft the number of pixels the element can move left
-     * @param {int} iRight the number of pixels the element can move right
-     * @param {int} iTickSize optional parameter for specifying that the element 
-     * should move a certain number pixels at a time.
-     * @return {Slider} a horizontal slider control
-     */
-    getHorizSlider : 
-        function (sBGElId, sHandleElId, iLeft, iRight, iTickSize) {
-            return new Slider(sBGElId, sBGElId, 
-                new YAHOO.widget.SliderThumb(sHandleElId, sBGElId, 
-                                   iLeft, iRight, 0, 0, iTickSize), "horiz");
-    },
-
-    /**
-     * Factory method for creating a vertical slider
-     * @method YAHOO.widget.Slider.getVertSlider
-     * @static
-     * @param {String} sBGElId the id of the slider's background element
-     * @param {String} sHandleElId the id of the thumb element
-     * @param {int} iUp the number of pixels the element can move up
-     * @param {int} iDown the number of pixels the element can move down
-     * @param {int} iTickSize optional parameter for specifying that the element 
-     * should move a certain number pixels at a time.
-     * @return {Slider} a vertical slider control
-     */
-    getVertSlider :
-        function (sBGElId, sHandleElId, iUp, iDown, iTickSize) {
-            return new Slider(sBGElId, sBGElId, 
-                new YAHOO.widget.SliderThumb(sHandleElId, sBGElId, 0, 0, 
-                                   iUp, iDown, iTickSize), "vert");
-    },
-
-    /**
-     * Factory method for creating a slider region like the one in the color
-     * picker example
-     * @method YAHOO.widget.Slider.getSliderRegion
-     * @static
-     * @param {String} sBGElId the id of the slider's background element
-     * @param {String} sHandleElId the id of the thumb element
-     * @param {int} iLeft the number of pixels the element can move left
-     * @param {int} iRight the number of pixels the element can move right
-     * @param {int} iUp the number of pixels the element can move up
-     * @param {int} iDown the number of pixels the element can move down
-     * @param {int} iTickSize optional parameter for specifying that the element 
-     * should move a certain number pixels at a time.
-     * @return {Slider} a slider region control
-     */
-    getSliderRegion : 
-        function (sBGElId, sHandleElId, iLeft, iRight, iUp, iDown, iTickSize) {
-            return new Slider(sBGElId, sBGElId, 
-                new YAHOO.widget.SliderThumb(sHandleElId, sBGElId, iLeft, iRight, 
-                                   iUp, iDown, iTickSize), "region");
-    },
-
-    /**
-     * Constant for valueChangeSource, indicating that the user clicked or
-     * dragged the slider to change the value.
-     * @property Slider.SOURCE_UI_EVENT
-     * @final
-     * @static
-     * @default 1
-     */
-    SOURCE_UI_EVENT : 1,
-
-    /**
-     * Constant for valueChangeSource, indicating that the value was altered
-     * by a programmatic call to setValue/setRegionValue.
-     * @property Slider.SOURCE_SET_VALUE
-     * @final
-     * @static
-     * @default 2
-     */
-    SOURCE_SET_VALUE : 2,
-
-    /**
-     * Constant for valueChangeSource, indicating that the value was altered
-     * by hitting any of the supported keyboard characters.
-     * @property Slider.SOURCE_KEY_EVENT
-     * @final
-     * @static
-     * @default 2
-     */
-    SOURCE_KEY_EVENT : 3,
-
-    /**
-     * By default, animation is available if the animation utility is detected.
-     * @property Slider.ANIM_AVAIL
-     * @static
-     * @type boolean
-     */
-    ANIM_AVAIL : false
-},true);
-
-YAHOO.extend(Slider, YAHOO.util.DragDrop, {
-
-    /**
-     * Tracks the state of the mouse button to aid in when events are fired.
-     *
-     * @property _mouseDown
-     * @type boolean
-     * @default false
-     * @private
-     */
-    _mouseDown : false,
-
-    /**
-     * Override the default setting of dragOnly to true.
-     * @property dragOnly
-     * @type boolean
-     * @default true
-     */
-    dragOnly : true,
-
-    /**
-     * Initializes the slider.  Executed in the constructor
-     * @method initSlider
-     * @param {string} sType the type of slider (horiz, vert, region)
-     */
-    initSlider: function(sType) {
-
-        /**
-         * The type of the slider (horiz, vert, region)
-         * @property type
-         * @type string
-         */
-        this.type = sType;
-
-        //this.removeInvalidHandleType("A");
-
-
-        /**
-         * Event the fires when the value of the control changes.  If 
-         * the control is animated the event will fire every point
-         * along the way.
-         * @event change
-         * @param {int} newOffset|x the new offset for normal sliders, or the new
-         *                          x offset for region sliders
-         * @param {int} y the number of pixels the thumb has moved on the y axis
-         *                (region sliders only)
-         */
-        this.createEvent("change", this);
-
-        /**
-         * Event that fires at the beginning of a slider thumb move.
-         * @event slideStart
-         */
-        this.createEvent("slideStart", this);
-
-        /**
-         * Event that fires at the end of a slider thumb move
-         * @event slideEnd
-         */
-        this.createEvent("slideEnd", this);
-
-        /**
-         * Overrides the isTarget property in YAHOO.util.DragDrop
-         * @property isTarget
-         * @private
-         */
-        this.isTarget = false;
-    
-        /**
-         * Flag that determines if the thumb will animate when moved
-         * @property animate
-         * @type boolean
-         */
-        this.animate = Slider.ANIM_AVAIL;
-
-        /**
-         * Set to false to disable a background click thumb move
-         * @property backgroundEnabled
-         * @type boolean
-         */
-        this.backgroundEnabled = true;
-
-        /**
-         * Adjustment factor for tick animation, the more ticks, the
-         * faster the animation (by default)
-         * @property tickPause
-         * @type int
-         */
-        this.tickPause = 40;
-
-        /**
-         * Enables the arrow, home and end keys, defaults to true.
-         * @property enableKeys
-         * @type boolean
-         */
-        this.enableKeys = true;
-
-        /**
-         * Specifies the number of pixels the arrow keys will move the slider.
-         * Default is 20.
-         * @property keyIncrement
-         * @type int
-         */
-        this.keyIncrement = 20;
-
-        /**
-         * moveComplete is set to true when the slider has moved to its final
-         * destination.  For animated slider, this value can be checked in 
-         * the onChange handler to make it possible to execute logic only
-         * when the move is complete rather than at all points along the way.
-         * Deprecated because this flag is only useful when the background is
-         * clicked and the slider is animated.  If the user drags the thumb,
-         * the flag is updated when the drag is over ... the final onDrag event
-         * fires before the mouseup the ends the drag, so the implementer will
-         * never see it.
-         *
-         * @property moveComplete
-         * @type Boolean
-         * @deprecated use the slideEnd event instead
-         */
-        this.moveComplete = true;
-
-        /**
-         * If animation is configured, specifies the length of the animation
-         * in seconds.
-         * @property animationDuration
-         * @type int
-         * @default 0.2
-         */
-        this.animationDuration = 0.2;
-
-        /**
-         * Constant for valueChangeSource, indicating that the user clicked or
-         * dragged the slider to change the value.
-         * @property SOURCE_UI_EVENT
-         * @final
-         * @default 1
-         * @deprecated use static Slider.SOURCE_UI_EVENT
-         */
-        this.SOURCE_UI_EVENT = 1;
-
-        /**
-         * Constant for valueChangeSource, indicating that the value was altered
-         * by a programmatic call to setValue/setRegionValue.
-         * @property SOURCE_SET_VALUE
-         * @final
-         * @default 2
-         * @deprecated use static Slider.SOURCE_SET_VALUE
-         */
-        this.SOURCE_SET_VALUE = 2;
-
-        /**
-         * When the slider value changes, this property is set to identify where
-         * the update came from.  This will be either 1, meaning the slider was
-         * clicked or dragged, or 2, meaning that it was set via a setValue() call.
-         * This can be used within event handlers to apply some of the logic only
-         * when dealing with one source or another.
-         * @property valueChangeSource
-         * @type int
-         * @since 2.3.0
-         */
-        this.valueChangeSource = 0;
-
-        /**
-         * Indicates whether or not events will be supressed for the current
-         * slide operation
-         * @property _silent
-         * @type boolean
-         * @private
-         */
-        this._silent = false;
-
-        /**
-         * Saved offset used to protect against NaN problems when slider is
-         * set to display:none
-         * @property lastOffset
-         * @type [int, int]
-         */
-        this.lastOffset = [0,0];
-    },
-
-    /**
-     * Initializes the slider's thumb. Executed in the constructor.
-     * @method initThumb
-     * @param {YAHOO.widget.SliderThumb} t the slider thumb
-     */
-    initThumb: function(t) {
-
-        var self = this;
-
-        /**
-         * A YAHOO.widget.SliderThumb instance that we will use to 
-         * reposition the thumb when the background is clicked
-         * @property thumb
-         * @type YAHOO.widget.SliderThumb
-         */
-        this.thumb = t;
-
-        t.cacheBetweenDrags = true;
-
-        if (t._isHoriz && t.xTicks && t.xTicks.length) {
-            this.tickPause = Math.round(360 / t.xTicks.length);
-        } else if (t.yTicks && t.yTicks.length) {
-            this.tickPause = Math.round(360 / t.yTicks.length);
-        }
-
-
-        // delegate thumb methods
-        t.onAvailable = function() { 
-                return self.setStartSliderState(); 
-            };
-        t.onMouseDown = function () { 
-                self._mouseDown = true;
-                return self.focus(); 
-            };
-        t.startDrag = function() { 
-                self._slideStart(); 
-            };
-        t.onDrag = function() { 
-                self.fireEvents(true); 
-            };
-        t.onMouseUp = function() { 
-                self.thumbMouseUp(); 
-            };
-
-    },
-
-    /**
-     * Executed when the slider element is available
-     * @method onAvailable
-     */
-    onAvailable: function() {
-        this._bindKeyEvents();
-    },
-    /**
-     * Sets up the listeners for keydown and key press events.
-     *
-     * @method _bindKeyEvents
-     * @protected
-     */
-    _bindKeyEvents : function () {
-        Event.on(this.id, "keydown",  this.handleKeyDown,  this, true);
-        Event.on(this.id, "keypress", this.handleKeyPress, this, true);
-    },
-
-    /**
-     * Executed when a keypress event happens with the control focused.
-     * Prevents the default behavior for navigation keys.  The actual
-     * logic for moving the slider thumb in response to a key event
-     * happens in handleKeyDown.
-     * @param {Event} e the keypress event
-     */
-    handleKeyPress: function(e) {
-        if (this.enableKeys) {
-            var kc = Event.getCharCode(e);
-
-            switch (kc) {
-                case 0x25: // left
-                case 0x26: // up
-                case 0x27: // right
-                case 0x28: // down
-                case 0x24: // home
-                case 0x23: // end
-                    Event.preventDefault(e);
-                    break;
-                default:
-            }
-        }
-    },
-
-    /**
-     * Executed when a keydown event happens with the control focused.
-     * Updates the slider value and display when the keypress is an
-     * arrow key, home, or end as long as enableKeys is set to true.
-     * @param {Event} e the keydown event
-     */
-    handleKeyDown: function(e) {
-        if (this.enableKeys) {
-            var kc = Event.getCharCode(e),
-                t  = this.thumb,
-                h  = this.getXValue(),
-                v  = this.getYValue(),
-                changeValue = true;
-
-            switch (kc) {
-
-                // left
-                case 0x25: h -= this.keyIncrement; break;
-
-                // up
-                case 0x26: v -= this.keyIncrement; break;
-
-                // right
-                case 0x27: h += this.keyIncrement; break;
-
-                // down
-                case 0x28: v += this.keyIncrement; break;
-
-                // home
-                case 0x24: h = t.leftConstraint;    
-                           v = t.topConstraint;    
-                           break;
-
-                // end
-                case 0x23: h = t.rightConstraint; 
-                           v = t.bottomConstraint;    
-                           break;
-
-                default:   changeValue = false;
-            }
-
-            if (changeValue) {
-                if (t._isRegion) {
-                    this._setRegionValue(Slider.SOURCE_KEY_EVENT, h, v, true);
-                } else {
-                    this._setValue(Slider.SOURCE_KEY_EVENT,
-                        (t._isHoriz ? h : v), true);
-                }
-                Event.stopEvent(e);
-            }
-
-        }
-    },
-
-    /**
-     * Initialization that sets up the value offsets once the elements are ready
-     * @method setStartSliderState
-     */
-    setStartSliderState: function() {
-
-
-        this.setThumbCenterPoint();
-
-        /**
-         * The basline position of the background element, used
-         * to determine if the background has moved since the last
-         * operation.
-         * @property baselinePos
-         * @type [int, int]
-         */
-        this.baselinePos = getXY(this.getEl());
-
-        this.thumb.startOffset = this.thumb.getOffsetFromParent(this.baselinePos);
-
-        if (this.thumb._isRegion) {
-            if (this.deferredSetRegionValue) {
-                this._setRegionValue.apply(this, this.deferredSetRegionValue);
-                this.deferredSetRegionValue = null;
-            } else {
-                this.setRegionValue(0, 0, true, true, true);
-            }
-        } else {
-            if (this.deferredSetValue) {
-                this._setValue.apply(this, this.deferredSetValue);
-                this.deferredSetValue = null;
-            } else {
-                this.setValue(0, true, true, true);
-            }
-        }
-    },
-
-    /**
-     * When the thumb is available, we cache the centerpoint of the element so
-     * we can position the element correctly when the background is clicked
-     * @method setThumbCenterPoint
-     */
-    setThumbCenterPoint: function() {
-
-        var el = this.thumb.getEl();
-
-        if (el) {
-            /**
-             * The center of the slider element is stored so we can 
-             * place it in the correct position when the background is clicked.
-             * @property thumbCenterPoint
-             * @type {"x": int, "y": int}
-             */
-            this.thumbCenterPoint = { 
-                    x: parseInt(el.offsetWidth/2, 10), 
-                    y: parseInt(el.offsetHeight/2, 10) 
-            };
-        }
-
-    },
-
-    /**
-     * Locks the slider, overrides YAHOO.util.DragDrop
-     * @method lock
-     */
-    lock: function() {
-        this.thumb.lock();
-        this.locked = true;
-    },
-
-    /**
-     * Unlocks the slider, overrides YAHOO.util.DragDrop
-     * @method unlock
-     */
-    unlock: function() {
-        this.thumb.unlock();
-        this.locked = false;
-    },
-
-    /**
-     * Handles mouseup event on the thumb
-     * @method thumbMouseUp
-     * @private
-     */
-    thumbMouseUp: function() {
-        this._mouseDown = false;
-        if (!this.isLocked()) {
-            this.endMove();
-        }
-
-    },
-
-    onMouseUp: function() {
-        this._mouseDown = false;
-        if (this.backgroundEnabled && !this.isLocked()) {
-            this.endMove();
-        }
-    },
-
-    /**
-     * Returns a reference to this slider's thumb
-     * @method getThumb
-     * @return {SliderThumb} this slider's thumb
-     */
-    getThumb: function() {
-        return this.thumb;
-    },
-
-    /**
-     * Try to focus the element when clicked so we can add
-     * accessibility features
-     * @method focus
-     * @private
-     */
-    focus: function() {
-        this.valueChangeSource = Slider.SOURCE_UI_EVENT;
-
-        // Focus the background element if possible
-        var el = this.getEl();
-
-        if (el.focus) {
-            try {
-                el.focus();
-            } catch(e) {
-                // Prevent permission denied unhandled exception in FF that can
-                // happen when setting focus while another element is handling
-                // the blur.  @TODO this is still writing to the error log 
-                // (unhandled error) in FF1.5 with strict error checking on.
-            }
-        }
-
-        this.verifyOffset();
-
-        return !this.isLocked();
-    },
-
-    /**
-     * Event that fires when the value of the slider has changed
-     * @method onChange
-     * @param {int} firstOffset the number of pixels the thumb has moved
-     * from its start position. Normal horizontal and vertical sliders will only
-     * have the firstOffset.  Regions will have both, the first is the horizontal
-     * offset, the second the vertical.
-     * @param {int} secondOffset the y offset for region sliders
-     * @deprecated use instance.subscribe("change") instead
-     */
-    onChange: function (firstOffset, secondOffset) { 
-        /* override me */ 
-    },
-
-    /**
-     * Event that fires when the at the beginning of the slider thumb move
-     * @method onSlideStart
-     * @deprecated use instance.subscribe("slideStart") instead
-     */
-    onSlideStart: function () { 
-        /* override me */ 
-    },
-
-    /**
-     * Event that fires at the end of a slider thumb move
-     * @method onSliderEnd
-     * @deprecated use instance.subscribe("slideEnd") instead
-     */
-    onSlideEnd: function () { 
-        /* override me */ 
-    },
-
-    /**
-     * Returns the slider's thumb offset from the start position
-     * @method getValue
-     * @return {int} the current value
-     */
-    getValue: function () { 
-        return this.thumb.getValue();
-    },
-
-    /**
-     * Returns the slider's thumb X offset from the start position
-     * @method getXValue
-     * @return {int} the current horizontal offset
-     */
-    getXValue: function () { 
-        return this.thumb.getXValue();
-    },
-
-    /**
-     * Returns the slider's thumb Y offset from the start position
-     * @method getYValue
-     * @return {int} the current vertical offset
-     */
-    getYValue: function () { 
-        return this.thumb.getYValue();
-    },
-
-    /**
-     * Provides a way to set the value of the slider in code.
-     *
-     * @method setValue
-     * @param {int} newOffset the number of pixels the thumb should be
-     * positioned away from the initial start point 
-     * @param {boolean} skipAnim set to true to disable the animation
-     * for this move action (but not others).
-     * @param {boolean} force ignore the locked setting and set value anyway
-     * @param {boolean} silent when true, do not fire events
-     * @return {boolean} true if the move was performed, false if it failed
-     */
-    setValue: function() {
-        var args = _AS.call(arguments);
-        args.unshift(Slider.SOURCE_SET_VALUE);
-        return this._setValue.apply(this,args);
-    },
-
-    /**
-     * Worker function to execute the value set operation.  Accepts type of
-     * set operation in addition to the usual setValue params.
-     *
-     * @method _setValue
-     * @param source {int} what triggered the set (e.g. Slider.SOURCE_SET_VALUE)
-     * @param {int} newOffset the number of pixels the thumb should be
-     * positioned away from the initial start point 
-     * @param {boolean} skipAnim set to true to disable the animation
-     * for this move action (but not others).
-     * @param {boolean} force ignore the locked setting and set value anyway
-     * @param {boolean} silent when true, do not fire events
-     * @return {boolean} true if the move was performed, false if it failed
-     * @protected
-     */
-    _setValue: function(source, newOffset, skipAnim, force, silent) {
-        var t = this.thumb, newX, newY;
-
-        if (!t.available) {
-            this.deferredSetValue = arguments;
-            return false;
-        }
-
-        if (this.isLocked() && !force) {
-            return false;
-        }
-
-        if ( isNaN(newOffset) ) {
-            return false;
-        }
-
-        if (t._isRegion) {
-            return false;
-        }
-
-
-        this._silent = silent;
-        this.valueChangeSource = source || Slider.SOURCE_SET_VALUE;
-
-        t.lastOffset = [newOffset, newOffset];
-        this.verifyOffset();
-
-        this._slideStart();
-
-        if (t._isHoriz) {
-            newX = t.initPageX + newOffset + this.thumbCenterPoint.x;
-            this.moveThumb(newX, t.initPageY, skipAnim);
-        } else {
-            newY = t.initPageY + newOffset + this.thumbCenterPoint.y;
-            this.moveThumb(t.initPageX, newY, skipAnim);
-        }
-
-        return true;
-    },
-
-    /**
-     * Provides a way to set the value of the region slider in code.
-     * @method setRegionValue
-     * @param {int} newOffset the number of pixels the thumb should be
-     * positioned away from the initial start point (x axis for region)
-     * @param {int} newOffset2 the number of pixels the thumb should be
-     * positioned away from the initial start point (y axis for region)
-     * @param {boolean} skipAnim set to true to disable the animation
-     * for this move action (but not others).
-     * @param {boolean} force ignore the locked setting and set value anyway
-     * @param {boolean} silent when true, do not fire events
-     * @return {boolean} true if the move was performed, false if it failed
-     */
-    setRegionValue : function () {
-        var args = _AS.call(arguments);
-        args.unshift(Slider.SOURCE_SET_VALUE);
-        return this._setRegionValue.apply(this,args);
-    },
-
-    /**
-     * Worker function to execute the value set operation.  Accepts type of
-     * set operation in addition to the usual setValue params.
-     *
-     * @method _setRegionValue
-     * @param source {int} what triggered the set (e.g. Slider.SOURCE_SET_VALUE)
-     * @param {int} newOffset the number of pixels the thumb should be
-     * positioned away from the initial start point (x axis for region)
-     * @param {int} newOffset2 the number of pixels the thumb should be
-     * positioned away from the initial start point (y axis for region)
-     * @param {boolean} skipAnim set to true to disable the animation
-     * for this move action (but not others).
-     * @param {boolean} force ignore the locked setting and set value anyway
-     * @param {boolean} silent when true, do not fire events
-     * @return {boolean} true if the move was performed, false if it failed
-     * @protected
-     */
-    _setRegionValue: function(source, newOffset, newOffset2, skipAnim, force, silent) {
-        var t = this.thumb, newX, newY;
-
-        if (!t.available) {
-            this.deferredSetRegionValue = arguments;
-            return false;
-        }
-
-        if (this.isLocked() && !force) {
-            return false;
-        }
-
-        if ( isNaN(newOffset) ) {
-            return false;
-        }
-
-        if (!t._isRegion) {
-            return false;
-        }
-
-        this._silent = silent;
-
-        this.valueChangeSource = source || Slider.SOURCE_SET_VALUE;
-
-        t.lastOffset = [newOffset, newOffset2];
-        this.verifyOffset();
-
-        this._slideStart();
-
-        newX = t.initPageX + newOffset + this.thumbCenterPoint.x;
-        newY = t.initPageY + newOffset2 + this.thumbCenterPoint.y;
-        this.moveThumb(newX, newY, skipAnim);
-
-        return true;
-    },
-
-    /**
-     * Checks the background position element position.  If it has moved from the
-     * baseline position, the constraints for the thumb are reset
-     * @method verifyOffset
-     * @return {boolean} True if the offset is the same as the baseline.
-     */
-    verifyOffset: function() {
-
-        var xy = getXY(this.getEl()),
-            t  = this.thumb;
-
-        if (!this.thumbCenterPoint || !this.thumbCenterPoint.x) {
-            this.setThumbCenterPoint();
-        }
-
-        if (xy) {
-
-
-            if (xy[0] != this.baselinePos[0] || xy[1] != this.baselinePos[1]) {
-
-                // Reset background
-                this.setInitPosition();
-                this.baselinePos = xy;
-
-                // Reset thumb
-                t.initPageX = this.initPageX + t.startOffset[0];
-                t.initPageY = this.initPageY + t.startOffset[1];
-                t.deltaSetXY = null;
-                this.resetThumbConstraints();
-
-                return false;
-            }
-        }
-
-        return true;
-    },
-
-    /**
-     * Move the associated slider moved to a timeout to try to get around the 
-     * mousedown stealing moz does when I move the slider element between the 
-     * cursor and the background during the mouseup event
-     * @method moveThumb
-     * @param {int} x the X coordinate of the click
-     * @param {int} y the Y coordinate of the click
-     * @param {boolean} skipAnim don't animate if the move happend onDrag
-     * @param {boolean} midMove set to true if this is not terminating
-     * the slider movement
-     * @private
-     */
-    moveThumb: function(x, y, skipAnim, midMove) {
-
-        var t = this.thumb,
-            self = this,
-            p,_p,anim;
-
-        if (!t.available) {
-            return;
-        }
-
-
-        t.setDelta(this.thumbCenterPoint.x, this.thumbCenterPoint.y);
-
-        _p = t.getTargetCoord(x, y);
-        p = [Math.round(_p.x), Math.round(_p.y)];
-
-        if (this.animate && t._graduated && !skipAnim) {
-            this.lock();
-
-            // cache the current thumb pos
-            this.curCoord = getXY(this.thumb.getEl());
-            this.curCoord = [Math.round(this.curCoord[0]), Math.round(this.curCoord[1])];
-
-            setTimeout( function() { self.moveOneTick(p); }, this.tickPause );
-
-        } else if (this.animate && Slider.ANIM_AVAIL && !skipAnim) {
-
-            this.lock();
-
-            anim = new YAHOO.util.Motion( 
-                    t.id, { points: { to: p } }, 
-                    this.animationDuration, 
-                    YAHOO.util.Easing.easeOut );
-
-            anim.onComplete.subscribe( function() { 
-                    self.unlock();
-                    if (!self._mouseDown) {
-                        self.endMove(); 
-                    }
-                });
-            anim.animate();
-
-        } else {
-            t.setDragElPos(x, y);
-            if (!midMove && !this._mouseDown) {
-                this.endMove();
-            }
-        }
-    },
-
-    _slideStart: function() {
-        if (!this._sliding) {
-            if (!this._silent) {
-                this.onSlideStart();
-                this.fireEvent("slideStart");
-            }
-            this._sliding = true;
-            this.moveComplete = false; // for backward compatibility. Deprecated
-        }
-    },
-
-    _slideEnd: function() {
-        if (this._sliding) {
-            // Reset state before firing slideEnd
-            var silent = this._silent;
-            this._sliding = false;
-            this.moveComplete = true; // for backward compatibility. Deprecated
-            this._silent = false;
-            if (!silent) {
-                this.onSlideEnd();
-                this.fireEvent("slideEnd");
-            }
-        }
-    },
-
-    /**
-     * Move the slider one tick mark towards its final coordinate.  Used
-     * for the animation when tick marks are defined
-     * @method moveOneTick
-     * @param {int[]} the destination coordinate
-     * @private
-     */
-    moveOneTick: function(finalCoord) {
-
-        var t = this.thumb,
-            self = this,
-            nextCoord = null,
-            tmpX, tmpY;
-
-        if (t._isRegion) {
-            nextCoord = this._getNextX(this.curCoord, finalCoord);
-            tmpX = (nextCoord !== null) ? nextCoord[0] : this.curCoord[0];
-            nextCoord = this._getNextY(this.curCoord, finalCoord);
-            tmpY = (nextCoord !== null) ? nextCoord[1] : this.curCoord[1];
-
-            nextCoord = tmpX !== this.curCoord[0] || tmpY !== this.curCoord[1] ?
-                [ tmpX, tmpY ] : null;
-        } else if (t._isHoriz) {
-            nextCoord = this._getNextX(this.curCoord, finalCoord);
-        } else {
-            nextCoord = this._getNextY(this.curCoord, finalCoord);
-        }
-
-
-        if (nextCoord) {
-
-            // cache the position
-            this.curCoord = nextCoord;
-
-            // move to the next coord
-            this.thumb.alignElWithMouse(t.getEl(), nextCoord[0] + this.thumbCenterPoint.x, nextCoord[1] + this.thumbCenterPoint.y);
-            
-            // check if we are in the final position, if not make a recursive call
-            if (!(nextCoord[0] == finalCoord[0] && nextCoord[1] == finalCoord[1])) {
-                setTimeout(function() { self.moveOneTick(finalCoord); }, 
-                        this.tickPause);
-            } else {
-                this.unlock();
-                if (!this._mouseDown) {
-                    this.endMove();
-                }
-            }
-        } else {
-            this.unlock();
-            if (!this._mouseDown) {
-                this.endMove();
-            }
-        }
-    },
-
-    /**
-     * Returns the next X tick value based on the current coord and the target coord.
-     * @method _getNextX
-     * @private
-     */
-    _getNextX: function(curCoord, finalCoord) {
-        var t = this.thumb,
-            thresh,
-            tmp = [],
-            nextCoord = null;
-
-        if (curCoord[0] > finalCoord[0]) {
-            thresh = t.tickSize - this.thumbCenterPoint.x;
-            tmp = t.getTargetCoord( curCoord[0] - thresh, curCoord[1] );
-            nextCoord = [tmp.x, tmp.y];
-        } else if (curCoord[0] < finalCoord[0]) {
-            thresh = t.tickSize + this.thumbCenterPoint.x;
-            tmp = t.getTargetCoord( curCoord[0] + thresh, curCoord[1] );
-            nextCoord = [tmp.x, tmp.y];
-        } else {
-            // equal, do nothing
-        }
-
-        return nextCoord;
-    },
-
-    /**
-     * Returns the next Y tick value based on the current coord and the target coord.
-     * @method _getNextY
-     * @private
-     */
-    _getNextY: function(curCoord, finalCoord) {
-        var t = this.thumb,
-            thresh,
-            tmp = [],
-            nextCoord = null;
-
-        if (curCoord[1] > finalCoord[1]) {
-            thresh = t.tickSize - this.thumbCenterPoint.y;
-            tmp = t.getTargetCoord( curCoord[0], curCoord[1] - thresh );
-            nextCoord = [tmp.x, tmp.y];
-        } else if (curCoord[1] < finalCoord[1]) {
-            thresh = t.tickSize + this.thumbCenterPoint.y;
-            tmp = t.getTargetCoord( curCoord[0], curCoord[1] + thresh );
-            nextCoord = [tmp.x, tmp.y];
-        } else {
-            // equal, do nothing
-        }
-
-        return nextCoord;
-    },
-
-    /**
-     * Resets the constraints before moving the thumb.
-     * @method b4MouseDown
-     * @private
-     */
-    b4MouseDown: function(e) {
-        if (!this.backgroundEnabled) {
-            return false;
-        }
-
-        this.thumb.autoOffset();
-        this.baselinePos = [];
-    },
-
-    /**
-     * Handles the mousedown event for the slider background
-     * @method onMouseDown
-     * @private
-     */
-    onMouseDown: function(e) {
-        if (!this.backgroundEnabled || this.isLocked()) {
-            return false;
-        }
-
-        this._mouseDown = true;
-
-        var x = Event.getPageX(e),
-            y = Event.getPageY(e);
-
-
-        this.focus();
-        this._slideStart();
-        this.moveThumb(x, y);
-    },
-
-    /**
-     * Handles the onDrag event for the slider background
-     * @method onDrag
-     * @private
-     */
-    onDrag: function(e) {
-        if (this.backgroundEnabled && !this.isLocked()) {
-            var x = Event.getPageX(e),
-                y = Event.getPageY(e);
-            this.moveThumb(x, y, true, true);
-            this.fireEvents();
-        }
-    },
-
-    /**
-     * Fired when the slider movement ends
-     * @method endMove
-     * @private
-     */
-    endMove: function () {
-        this.unlock();
-        this.fireEvents();
-        this._slideEnd();
-    },
-
-    /**
-     * Resets the X and Y contraints for the thumb.  Used in lieu of the thumb
-     * instance's inherited resetConstraints because some logic was not
-     * applicable.
-     * @method resetThumbConstraints
-     * @protected
-     */
-    resetThumbConstraints: function () {
-        var t = this.thumb;
-
-        t.setXConstraint(t.leftConstraint, t.rightConstraint, t.xTickSize);
-        t.setYConstraint(t.topConstraint, t.bottomConstraint, t.xTickSize);
-    },
-
-    /**
-     * Fires the change event if the value has been changed.  Ignored if we are in
-     * the middle of an animation as the event will fire when the animation is
-     * complete
-     * @method fireEvents
-     * @param {boolean} thumbEvent set to true if this event is fired from an event
-     *                  that occurred on the thumb.  If it is, the state of the
-     *                  thumb dd object should be correct.  Otherwise, the event
-     *                  originated on the background, so the thumb state needs to
-     *                  be refreshed before proceeding.
-     * @private
-     */
-    fireEvents: function (thumbEvent) {
-
-        var t = this.thumb, newX, newY, newVal;
-
-        if (!thumbEvent) {
-            t.cachePosition();
-        }
-
-        if (! this.isLocked()) {
-            if (t._isRegion) {
-                newX = t.getXValue();
-                newY = t.getYValue();
-
-                if (newX != this.previousX || newY != this.previousY) {
-                    if (!this._silent) {
-                        this.onChange(newX, newY);
-                        this.fireEvent("change", { x: newX, y: newY });
-                    }
-                }
-
-                this.previousX = newX;
-                this.previousY = newY;
-
-            } else {
-                newVal = t.getValue();
-                if (newVal != this.previousVal) {
-                    if (!this._silent) {
-                        this.onChange( newVal );
-                        this.fireEvent("change", newVal);
-                    }
-                }
-                this.previousVal = newVal;
-            }
-
-        }
-    },
-
-    /**
-     * Slider toString
-     * @method toString
-     * @return {string} string representation of the instance
-     */
-    toString: function () { 
-        return ("Slider (" + this.type +") " + this.id);
-    }
-
-});
-
-YAHOO.lang.augmentProto(Slider, YAHOO.util.EventProvider);
-
-YAHOO.widget.Slider = Slider;
-})();
-/**
- * A drag and drop implementation to be used as the thumb of a slider.
- * @class SliderThumb
- * @extends YAHOO.util.DD
- * @constructor
- * @param {String} id the id of the slider html element
- * @param {String} sGroup the group of related DragDrop items
- * @param {int} iLeft the number of pixels the element can move left
- * @param {int} iRight the number of pixels the element can move right
- * @param {int} iUp the number of pixels the element can move up
- * @param {int} iDown the number of pixels the element can move down
- * @param {int} iTickSize optional parameter for specifying that the element 
- * should move a certain number pixels at a time.
- */
-YAHOO.widget.SliderThumb = function(id, sGroup, iLeft, iRight, iUp, iDown, iTickSize) {
-
-    if (id) {
-        YAHOO.widget.SliderThumb.superclass.constructor.call(this, id, sGroup);
-
-        /**
-         * The id of the thumbs parent HTML element (the slider background 
-         * element).
-         * @property parentElId
-         * @type string
-         */
-        this.parentElId = sGroup;
-    }
-
-
-
-    /**
-     * Overrides the isTarget property in YAHOO.util.DragDrop
-     * @property isTarget
-     * @private
-     */
-    this.isTarget = false;
-
-    /**
-     * The tick size for this slider
-     * @property tickSize
-     * @type int
-     * @private
-     */
-    this.tickSize = iTickSize;
-
-    /**
-     * Informs the drag and drop util that the offsets should remain when
-     * resetting the constraints.  This preserves the slider value when
-     * the constraints are reset
-     * @property maintainOffset
-     * @type boolean
-     * @private
-     */
-    this.maintainOffset = true;
-
-    this.initSlider(iLeft, iRight, iUp, iDown, iTickSize);
-
-    /**
-     * Turns off the autoscroll feature in drag and drop
-     * @property scroll
-     * @private
-     */
-    this.scroll = false;
-
-}; 
-
-YAHOO.extend(YAHOO.widget.SliderThumb, YAHOO.util.DD, {
-
-    /**
-     * The (X and Y) difference between the thumb location and its parent 
-     * (the slider background) when the control is instantiated.
-     * @property startOffset
-     * @type [int, int]
-     */
-    startOffset: null,
-
-    /**
-     * Override the default setting of dragOnly to true.
-     * @property dragOnly
-     * @type boolean
-     * @default true
-     */
-    dragOnly : true,
-
-    /**
-     * Flag used to figure out if this is a horizontal or vertical slider
-     * @property _isHoriz
-     * @type boolean
-     * @private
-     */
-    _isHoriz: false,
-
-    /**
-     * Cache the last value so we can check for change
-     * @property _prevVal
-     * @type int
-     * @private
-     */
-    _prevVal: 0,
-
-    /**
-     * The slider is _graduated if there is a tick interval defined
-     * @property _graduated
-     * @type boolean
-     * @private
-     */
-    _graduated: false,
-
-
-    /**
-     * Returns the difference between the location of the thumb and its parent.
-     * @method getOffsetFromParent
-     * @param {[int, int]} parentPos Optionally accepts the position of the parent
-     * @type [int, int]
-     */
-    getOffsetFromParent0: function(parentPos) {
-        var myPos = YAHOO.util.Dom.getXY(this.getEl()),
-            ppos  = parentPos || YAHOO.util.Dom.getXY(this.parentElId);
-
-        return [ (myPos[0] - ppos[0]), (myPos[1] - ppos[1]) ];
-    },
-
-    getOffsetFromParent: function(parentPos) {
-
-        var el = this.getEl(), newOffset,
-            myPos,ppos,l,t,deltaX,deltaY,newLeft,newTop;
-
-        if (!this.deltaOffset) {
-
-            myPos = YAHOO.util.Dom.getXY(el);
-            ppos  = parentPos || YAHOO.util.Dom.getXY(this.parentElId);
-
-            newOffset = [ (myPos[0] - ppos[0]), (myPos[1] - ppos[1]) ];
-
-            l = parseInt( YAHOO.util.Dom.getStyle(el, "left"), 10 );
-            t = parseInt( YAHOO.util.Dom.getStyle(el, "top" ), 10 );
-
-            deltaX = l - newOffset[0];
-            deltaY = t - newOffset[1];
-
-            if (isNaN(deltaX) || isNaN(deltaY)) {
-            } else {
-                this.deltaOffset = [deltaX, deltaY];
-            }
-
-        } else {
-            newLeft = parseInt( YAHOO.util.Dom.getStyle(el, "left"), 10 );
-            newTop  = parseInt( YAHOO.util.Dom.getStyle(el, "top" ), 10 );
-
-            newOffset  = [newLeft + this.deltaOffset[0], newTop + this.deltaOffset[1]];
-        }
-
-        return newOffset;
-    },
-
-    /**
-     * Set up the slider, must be called in the constructor of all subclasses
-     * @method initSlider
-     * @param {int} iLeft the number of pixels the element can move left
-     * @param {int} iRight the number of pixels the element can move right
-     * @param {int} iUp the number of pixels the element can move up
-     * @param {int} iDown the number of pixels the element can move down
-     * @param {int} iTickSize the width of the tick interval.
-     */
-    initSlider: function (iLeft, iRight, iUp, iDown, iTickSize) {
-        this.initLeft = iLeft;
-        this.initRight = iRight;
-        this.initUp = iUp;
-        this.initDown = iDown;
-
-        this.setXConstraint(iLeft, iRight, iTickSize);
-        this.setYConstraint(iUp, iDown, iTickSize);
-
-        if (iTickSize && iTickSize > 1) {
-            this._graduated = true;
-        }
-
-        this._isHoriz  = (iLeft || iRight); 
-        this._isVert   = (iUp   || iDown);
-        this._isRegion = (this._isHoriz && this._isVert); 
-
-    },
-
-    /**
-     * Clear's the slider's ticks
-     * @method clearTicks
-     */
-    clearTicks: function () {
-        YAHOO.widget.SliderThumb.superclass.clearTicks.call(this);
-        this.tickSize = 0;
-        this._graduated = false;
-    },
-
-
-    /**
-     * Gets the current offset from the element's start position in
-     * pixels.
-     * @method getValue
-     * @return {int} the number of pixels (positive or negative) the
-     * slider has moved from the start position.
-     */
-    getValue: function () {
-        return (this._isHoriz) ? this.getXValue() : this.getYValue();
-    },
-
-    /**
-     * Gets the current X offset from the element's start position in
-     * pixels.
-     * @method getXValue
-     * @return {int} the number of pixels (positive or negative) the
-     * slider has moved horizontally from the start position.
-     */
-    getXValue: function () {
-        if (!this.available) { 
-            return 0; 
-        }
-        var newOffset = this.getOffsetFromParent();
-        if (YAHOO.lang.isNumber(newOffset[0])) {
-            this.lastOffset = newOffset;
-            return (newOffset[0] - this.startOffset[0]);
-        } else {
-            return (this.lastOffset[0] - this.startOffset[0]);
-        }
-    },
-
-    /**
-     * Gets the current Y offset from the element's start position in
-     * pixels.
-     * @method getYValue
-     * @return {int} the number of pixels (positive or negative) the
-     * slider has moved vertically from the start position.
-     */
-    getYValue: function () {
-        if (!this.available) { 
-            return 0; 
-        }
-        var newOffset = this.getOffsetFromParent();
-        if (YAHOO.lang.isNumber(newOffset[1])) {
-            this.lastOffset = newOffset;
-            return (newOffset[1] - this.startOffset[1]);
-        } else {
-            return (this.lastOffset[1] - this.startOffset[1]);
-        }
-    },
-
-    /**
-     * Thumb toString
-     * @method toString
-     * @return {string} string representation of the instance
-     */
-    toString: function () { 
-        return "SliderThumb " + this.id;
-    },
-
-    /**
-     * The onchange event for the handle/thumb is delegated to the YAHOO.widget.Slider
-     * instance it belongs to.
-     * @method onChange
-     * @private
-     */
-    onChange: function (x, y) { 
-    }
-
-});
-/**
- * A slider with two thumbs, one that represents the min value and 
- * the other the max.  Actually a composition of two sliders, both with
- * the same background.  The constraints for each slider are adjusted
- * dynamically so that the min value of the max slider is equal or greater
- * to the current value of the min slider, and the max value of the min
- * slider is the current value of the max slider.
- * Constructor assumes both thumbs are positioned absolutely at the 0 mark on
- * the background.
- *
- * @namespace YAHOO.widget
- * @class DualSlider
- * @uses YAHOO.util.EventProvider
- * @constructor
- * @param {Slider} minSlider The Slider instance used for the min value thumb
- * @param {Slider} maxSlider The Slider instance used for the max value thumb
- * @param {int}    range The number of pixels the thumbs may move within
- * @param {Array}  initVals (optional) [min,max] Initial thumb placement
- */
-(function () {
-
-var Event = YAHOO.util.Event,
-    YW = YAHOO.widget;
-
-function DualSlider(minSlider, maxSlider, range, initVals) {
-
-    var self  = this,
-        ready = { min : false, max : false },
-        minThumbOnMouseDown, maxThumbOnMouseDown;
-
-    /**
-     * A slider instance that keeps track of the lower value of the range.
-     * <strong>read only</strong>
-     * @property minSlider
-     * @type Slider
-     */
-    this.minSlider = minSlider;
-
-    /**
-     * A slider instance that keeps track of the upper value of the range.
-     * <strong>read only</strong>
-     * @property maxSlider
-     * @type Slider
-     */
-    this.maxSlider = maxSlider;
-
-    /**
-     * The currently active slider (min or max). <strong>read only</strong>
-     * @property activeSlider
-     * @type Slider
-     */
-    this.activeSlider = minSlider;
-
-    /**
-     * Is the DualSlider oriented horizontally or vertically?
-     * <strong>read only</strong>
-     * @property isHoriz
-     * @type boolean
-     */
-    this.isHoriz = minSlider.thumb._isHoriz;
-
-    //FIXME: this is horrible
-    minThumbOnMouseDown = this.minSlider.thumb.onMouseDown;
-    maxThumbOnMouseDown = this.maxSlider.thumb.onMouseDown;
-    this.minSlider.thumb.onMouseDown = function() {
-        self.activeSlider = self.minSlider;
-        minThumbOnMouseDown.apply(this,arguments);
-    };
-    this.maxSlider.thumb.onMouseDown = function () {
-        self.activeSlider = self.maxSlider;
-        maxThumbOnMouseDown.apply(this,arguments);
-    };
-
-    this.minSlider.thumb.onAvailable = function () {
-        minSlider.setStartSliderState();
-        ready.min = true;
-        if (ready.max) {
-            self.fireEvent('ready',self);
-        }
-    };
-    this.maxSlider.thumb.onAvailable = function () {
-        maxSlider.setStartSliderState();
-        ready.max = true;
-        if (ready.min) {
-            self.fireEvent('ready',self);
-        }
-    };
-
-    // dispatch mousedowns to the active slider
-    minSlider.onMouseDown =
-    maxSlider.onMouseDown = function(e) {
-        return this.backgroundEnabled && self._handleMouseDown(e);
-    };
-
-    // Fix the drag behavior so that only the active slider
-    // follows the drag
-    minSlider.onDrag =
-    maxSlider.onDrag = function(e) {
-        self._handleDrag(e);
-    };
-
-    // Likely only the minSlider's onMouseUp will be executed, but both are
-    // overridden just to be safe
-    minSlider.onMouseUp =
-    maxSlider.onMouseUp = function (e) {
-        self._handleMouseUp(e);
-    };
-
-    // Replace the _bindKeyEvents for the minSlider and remove that for the
-    // maxSlider since they share the same bg element.
-    minSlider._bindKeyEvents = function () {
-        self._bindKeyEvents(this);
-    };
-    maxSlider._bindKeyEvents = function () {};
-
-    // The core events for each slider are handled so we can expose a single
-    // event for when the event happens on either slider
-    minSlider.subscribe("change", this._handleMinChange, minSlider, this);
-    minSlider.subscribe("slideStart", this._handleSlideStart, minSlider, this);
-    minSlider.subscribe("slideEnd", this._handleSlideEnd, minSlider, this);
-
-    maxSlider.subscribe("change", this._handleMaxChange, maxSlider, this);
-    maxSlider.subscribe("slideStart", this._handleSlideStart, maxSlider, this);
-    maxSlider.subscribe("slideEnd", this._handleSlideEnd, maxSlider, this);
-
-    /**
-     * Event that fires when the slider is finished setting up
-     * @event ready
-     * @param {DualSlider} dualslider the DualSlider instance
-     */
-    this.createEvent("ready", this);
-
-    /**
-     * Event that fires when either the min or max value changes
-     * @event change
-     * @param {DualSlider} dualslider the DualSlider instance
-     */
-    this.createEvent("change", this);
-
-    /**
-     * Event that fires when one of the thumbs begins to move
-     * @event slideStart
-     * @param {Slider} activeSlider the moving slider
-     */
-    this.createEvent("slideStart", this);
-
-    /**
-     * Event that fires when one of the thumbs finishes moving
-     * @event slideEnd
-     * @param {Slider} activeSlider the moving slider
-     */
-    this.createEvent("slideEnd", this);
-
-    // Validate initial values
-    initVals = YAHOO.lang.isArray(initVals) ? initVals : [0,range];
-    initVals[0] = Math.min(Math.max(parseInt(initVals[0],10)|0,0),range);
-    initVals[1] = Math.max(Math.min(parseInt(initVals[1],10)|0,range),0);
-    // Swap initVals if min > max
-    if (initVals[0] > initVals[1]) {
-        initVals.splice(0,2,initVals[1],initVals[0]);
-    }
-    this.minVal = initVals[0];
-    this.maxVal = initVals[1];
-
-    // Set values so initial assignment when the slider thumbs are ready will
-    // use these values
-    this.minSlider.setValue(this.minVal,true,true,true);
-    this.maxSlider.setValue(this.maxVal,true,true,true);
-
-}
-
-DualSlider.prototype = {
-
-    /**
-     * The current value of the min thumb. <strong>read only</strong>.
-     * @property minVal
-     * @type int
-     */
-    minVal : -1,
-
-    /**
-     * The current value of the max thumb. <strong>read only</strong>.
-     * @property maxVal
-     * @type int
-     */
-    maxVal : -1,
-
-    /**
-     * Pixel distance to maintain between thumbs.
-     * @property minRange
-     * @type int
-     * @default 0
-     */
-    minRange : 0,
-
-    /**
-     * Executed when one of the sliders fires the slideStart event
-     * @method _handleSlideStart
-     * @private
-     */
-    _handleSlideStart: function(data, slider) {
-        this.fireEvent("slideStart", slider);
-    },
-
-    /**
-     * Executed when one of the sliders fires the slideEnd event
-     * @method _handleSlideEnd
-     * @private
-     */
-    _handleSlideEnd: function(data, slider) {
-        this.fireEvent("slideEnd", slider);
-    },
-
-    /**
-     * Overrides the onDrag method for both sliders
-     * @method _handleDrag
-     * @private
-     */
-    _handleDrag: function(e) {
-        YW.Slider.prototype.onDrag.call(this.activeSlider, e);
-    },
-
-    /**
-     * Executed when the min slider fires the change event
-     * @method _handleMinChange
-     * @private
-     */
-    _handleMinChange: function() {
-        this.activeSlider = this.minSlider;
-        this.updateValue();
-    },
-
-    /**
-     * Executed when the max slider fires the change event
-     * @method _handleMaxChange
-     * @private
-     */
-    _handleMaxChange: function() {
-        this.activeSlider = this.maxSlider;
-        this.updateValue();
-    },
-
-    /**
-     * Set up the listeners for the keydown and keypress events.
-     *
-     * @method _bindKeyEvents
-     * @protected
-     */
-    _bindKeyEvents : function (slider) {
-        Event.on(slider.id,'keydown', this._handleKeyDown, this,true);
-        Event.on(slider.id,'keypress',this._handleKeyPress,this,true);
-    },
-
-    /**
-     * Delegate event handling to the active Slider.  See Slider.handleKeyDown.
-     *
-     * @method _handleKeyDown
-     * @param e {Event} the mousedown DOM event
-     * @protected
-     */
-    _handleKeyDown : function (e) {
-        this.activeSlider.handleKeyDown.apply(this.activeSlider,arguments);
-    },
-
-    /**
-     * Delegate event handling to the active Slider.  See Slider.handleKeyPress.
-     *
-     * @method _handleKeyPress
-     * @param e {Event} the mousedown DOM event
-     * @protected
-     */
-    _handleKeyPress : function (e) {
-        this.activeSlider.handleKeyPress.apply(this.activeSlider,arguments);
-    },
-
-    /**
-     * Sets the min and max thumbs to new values.
-     * @method setValues
-     * @param min {int} Pixel offset to assign to the min thumb
-     * @param max {int} Pixel offset to assign to the max thumb
-     * @param skipAnim {boolean} (optional) Set to true to skip thumb animation.
-     * Default false
-     * @param force {boolean} (optional) ignore the locked setting and set
-     * value anyway. Default false
-     * @param silent {boolean} (optional) Set to true to skip firing change
-     * events.  Default false
-     */
-    setValues : function (min, max, skipAnim, force, silent) {
-        var mins = this.minSlider,
-            maxs = this.maxSlider,
-            mint = mins.thumb,
-            maxt = maxs.thumb,
-            self = this,
-            done = { min : false, max : false };
-
-        // Clear constraints to prevent animated thumbs from prematurely
-        // stopping when hitting a constraint that's moving with the other
-        // thumb.
-        if (mint._isHoriz) {
-            mint.setXConstraint(mint.leftConstraint,maxt.rightConstraint,mint.tickSize);
-            maxt.setXConstraint(mint.leftConstraint,maxt.rightConstraint,maxt.tickSize);
-        } else {
-            mint.setYConstraint(mint.topConstraint,maxt.bottomConstraint,mint.tickSize);
-            maxt.setYConstraint(mint.topConstraint,maxt.bottomConstraint,maxt.tickSize);
-        }
-
-        // Set up one-time slideEnd callbacks to call updateValue when both
-        // thumbs have been set
-        this._oneTimeCallback(mins,'slideEnd',function () {
-            done.min = true;
-            if (done.max) {
-                self.updateValue(silent);
-                // Clean the slider's slideEnd events on a timeout since this
-                // will be executed from inside the event's fire
-                setTimeout(function () {
-                    self._cleanEvent(mins,'slideEnd');
-                    self._cleanEvent(maxs,'slideEnd');
-                },0);
-            }
-        });
-
-        this._oneTimeCallback(maxs,'slideEnd',function () {
-            done.max = true;
-            if (done.min) {
-                self.updateValue(silent);
-                // Clean both sliders' slideEnd events on a timeout since this
-                // will be executed from inside one of the event's fire
-                setTimeout(function () {
-                    self._cleanEvent(mins,'slideEnd');
-                    self._cleanEvent(maxs,'slideEnd');
-                },0);
-            }
-        });
-
-        // Must emit Slider slideEnd event to propagate to updateValue
-        mins.setValue(min,skipAnim,force,false);
-        maxs.setValue(max,skipAnim,force,false);
-    },
-
-    /**
-     * Set the min thumb position to a new value.
-     * @method setMinValue
-     * @param min {int} Pixel offset for min thumb
-     * @param skipAnim {boolean} (optional) Set to true to skip thumb animation.
-     * Default false
-     * @param force {boolean} (optional) ignore the locked setting and set
-     * value anyway. Default false
-     * @param silent {boolean} (optional) Set to true to skip firing change
-     * events.  Default false
-     */
-    setMinValue : function (min, skipAnim, force, silent) {
-        var mins = this.minSlider,
-            self = this;
-
-        this.activeSlider = mins;
-
-        // Use a one-time event callback to delay the updateValue call
-        // until after the slide operation is done
-        self = this;
-        this._oneTimeCallback(mins,'slideEnd',function () {
-            self.updateValue(silent);
-            // Clean the slideEnd event on a timeout since this
-            // will be executed from inside the event's fire
-            setTimeout(function () { self._cleanEvent(mins,'slideEnd'); }, 0);
-        });
-
-        mins.setValue(min, skipAnim, force);
-    },
-
-    /**
-     * Set the max thumb position to a new value.
-     * @method setMaxValue
-     * @param max {int} Pixel offset for max thumb
-     * @param skipAnim {boolean} (optional) Set to true to skip thumb animation.
-     * Default false
-     * @param force {boolean} (optional) ignore the locked setting and set
-     * value anyway. Default false
-     * @param silent {boolean} (optional) Set to true to skip firing change
-     * events.  Default false
-     */
-    setMaxValue : function (max, skipAnim, force, silent) {
-        var maxs = this.maxSlider,
-            self = this;
-
-        this.activeSlider = maxs;
-
-        // Use a one-time event callback to delay the updateValue call
-        // until after the slide operation is done
-        this._oneTimeCallback(maxs,'slideEnd',function () {
-            self.updateValue(silent);
-            // Clean the slideEnd event on a timeout since this
-            // will be executed from inside the event's fire
-            setTimeout(function () { self._cleanEvent(maxs,'slideEnd'); }, 0);
-        });
-
-        maxs.setValue(max, skipAnim, force);
-    },
-
-    /**
-     * Executed when one of the sliders is moved
-     * @method updateValue
-     * @param silent {boolean} (optional) Set to true to skip firing change
-     * events.  Default false
-     * @private
-     */
-    updateValue: function(silent) {
-        var min     = this.minSlider.getValue(),
-            max     = this.maxSlider.getValue(),
-            changed = false,
-            mint,maxt,dim,minConstraint,maxConstraint,thumbInnerWidth;
-
-        if (min != this.minVal || max != this.maxVal) {
-            changed = true;
-
-            mint = this.minSlider.thumb;
-            maxt = this.maxSlider.thumb;
-            dim  = this.isHoriz ? 'x' : 'y';
-
-            thumbInnerWidth = this.minSlider.thumbCenterPoint[dim] +
-                              this.maxSlider.thumbCenterPoint[dim];
-
-            // Establish barriers within the respective other thumb's edge, less
-            // the minRange.  Limit to the Slider's range in the case of
-            // negative minRanges.
-            minConstraint = Math.max(max-thumbInnerWidth-this.minRange,0);
-            maxConstraint = Math.min(-min-thumbInnerWidth-this.minRange,0);
-
-            if (this.isHoriz) {
-                minConstraint = Math.min(minConstraint,maxt.rightConstraint);
-
-                mint.setXConstraint(mint.leftConstraint,minConstraint, mint.tickSize);
-
-                maxt.setXConstraint(maxConstraint,maxt.rightConstraint, maxt.tickSize);
-            } else {
-                minConstraint = Math.min(minConstraint,maxt.bottomConstraint);
-                mint.setYConstraint(mint.leftConstraint,minConstraint, mint.tickSize);
-
-                maxt.setYConstraint(maxConstraint,maxt.bottomConstraint, maxt.tickSize);
-            }
-        }
-
-        this.minVal = min;
-        this.maxVal = max;
-
-        if (changed && !silent) {
-            this.fireEvent("change", this);
-        }
-    },
-
-    /**
-     * A background click will move the slider thumb nearest to the click.
-     * Override if you need different behavior.
-     * @method selectActiveSlider
-     * @param e {Event} the mousedown event
-     * @private
-     */
-    selectActiveSlider: function(e) {
-        var min = this.minSlider,
-            max = this.maxSlider,
-            minLocked = min.isLocked() || !min.backgroundEnabled,
-            maxLocked = max.isLocked() || !min.backgroundEnabled,
-            Ev  = YAHOO.util.Event,
-            d;
-
-        if (minLocked || maxLocked) {
-            this.activeSlider = minLocked ? max : min;
-        } else {
-            if (this.isHoriz) {
-                d = Ev.getPageX(e)-min.thumb.initPageX-min.thumbCenterPoint.x;
-            } else {
-                d = Ev.getPageY(e)-min.thumb.initPageY-min.thumbCenterPoint.y;
-            }
-                    
-            this.activeSlider = d*2 > max.getValue()+min.getValue() ? max : min;
-        }
-    },
-
-    /**
-     * Delegates the onMouseDown to the appropriate Slider
-     *
-     * @method _handleMouseDown
-     * @param e {Event} mouseup event
-     * @protected
-     */
-    _handleMouseDown: function(e) {
-        if (!e._handled && !this.minSlider._sliding && !this.maxSlider._sliding) {
-            e._handled = true;
-            this.selectActiveSlider(e);
-            return YW.Slider.prototype.onMouseDown.call(this.activeSlider, e);
-        } else {
-            return false;
-        }
-    },
-
-    /**
-     * Delegates the onMouseUp to the active Slider
-     *
-     * @method _handleMouseUp
-     * @param e {Event} mouseup event
-     * @protected
-     */
-    _handleMouseUp : function (e) {
-        YW.Slider.prototype.onMouseUp.apply(
-            this.activeSlider, arguments);
-    },
-
-    /**
-     * Schedule an event callback that will execute once, then unsubscribe
-     * itself.
-     * @method _oneTimeCallback
-     * @param o {EventProvider} Object to attach the event to
-     * @param evt {string} Name of the event
-     * @param fn {Function} function to execute once
-     * @private
-     */
-    _oneTimeCallback : function (o,evt,fn) {
-        var sub = function () {
-            // Unsubscribe myself
-            o.unsubscribe(evt, sub);
-            // Pass the event handler arguments to the one time callback
-            fn.apply({},arguments);
-        };
-        o.subscribe(evt,sub);
-    },
-
-    /**
-     * Clean up the slideEnd event subscribers array, since each one-time
-     * callback will be replaced in the event's subscribers property with
-     * null.  This will cause memory bloat and loss of performance.
-     * @method _cleanEvent
-     * @param o {EventProvider} object housing the CustomEvent
-     * @param evt {string} name of the CustomEvent
-     * @private
-     */
-    _cleanEvent : function (o,evt) {
-        var ce,i,len,j,subs,newSubs;
-
-        if (o.__yui_events && o.events[evt]) {
-            for (i = o.__yui_events.length; i >= 0; --i) {
-                if (o.__yui_events[i].type === evt) {
-                    ce = o.__yui_events[i];
-                    break;
-                }
-            }
-            if (ce) {
-                subs    = ce.subscribers;
-                newSubs = [];
-                j = 0;
-                for (i = 0, len = subs.length; i < len; ++i) {
-                    if (subs[i]) {
-                        newSubs[j++] = subs[i];
-                    }
-                }
-                ce.subscribers = newSubs;
-            }
-        }
-    }
-
-};
-
-YAHOO.lang.augmentProto(DualSlider, YAHOO.util.EventProvider);
-
-
-/**
- * Factory method for creating a horizontal dual-thumb slider
- * @for YAHOO.widget.Slider
- * @method YAHOO.widget.Slider.getHorizDualSlider
- * @static
- * @param {String} bg the id of the slider's background element
- * @param {String} minthumb the id of the min thumb
- * @param {String} maxthumb the id of the thumb thumb
- * @param {int} range the number of pixels the thumbs can move within
- * @param {int} iTickSize (optional) the element should move this many pixels
- * at a time
- * @param {Array}  initVals (optional) [min,max] Initial thumb placement
- * @return {DualSlider} a horizontal dual-thumb slider control
- */
-YW.Slider.getHorizDualSlider = 
-    function (bg, minthumb, maxthumb, range, iTickSize, initVals) {
-        var mint = new YW.SliderThumb(minthumb, bg, 0, range, 0, 0, iTickSize),
-            maxt = new YW.SliderThumb(maxthumb, bg, 0, range, 0, 0, iTickSize);
-
-        return new DualSlider(
-                    new YW.Slider(bg, bg, mint, "horiz"),
-                    new YW.Slider(bg, bg, maxt, "horiz"),
-                    range, initVals);
-};
-
-/**
- * Factory method for creating a vertical dual-thumb slider.
- * @for YAHOO.widget.Slider
- * @method YAHOO.widget.Slider.getVertDualSlider
- * @static
- * @param {String} bg the id of the slider's background element
- * @param {String} minthumb the id of the min thumb
- * @param {String} maxthumb the id of the thumb thumb
- * @param {int} range the number of pixels the thumbs can move within
- * @param {int} iTickSize (optional) the element should move this many pixels
- * at a time
- * @param {Array}  initVals (optional) [min,max] Initial thumb placement
- * @return {DualSlider} a vertical dual-thumb slider control
- */
-YW.Slider.getVertDualSlider = 
-    function (bg, minthumb, maxthumb, range, iTickSize, initVals) {
-        var mint = new YW.SliderThumb(minthumb, bg, 0, 0, 0, range, iTickSize),
-            maxt = new YW.SliderThumb(maxthumb, bg, 0, 0, 0, range, iTickSize);
-
-        return new YW.DualSlider(
-                    new YW.Slider(bg, bg, mint, "vert"),
-                    new YW.Slider(bg, bg, maxt, "vert"),
-                    range, initVals);
-};
-
-YAHOO.widget.DualSlider = DualSlider;
-
-})();
-YAHOO.register("slider", YAHOO.widget.Slider, {version: "2.8.0r4", build: "2449"});
diff --git a/koha-tmpl/intranet-tmpl/prog/en/lib/yui/storage/storage-debug.js b/koha-tmpl/intranet-tmpl/prog/en/lib/yui/storage/storage-debug.js
deleted file mode 100644 (file)
index 6ee930f..0000000
+++ /dev/null
@@ -1,1185 +0,0 @@
-/*
-Copyright (c) 2009, Yahoo! Inc. All rights reserved.
-Code licensed under the BSD License:
-http://developer.yahoo.net/yui/license.txt
-version: 2.8.0r4
-*/
-/**
- * The Storage module manages client-side data storage.
- * @module Storage
- */
-
-(function() {
-
-       // internal shorthand
-var Y = YAHOO,
-       YU = Y.util,
-       YL = Y.lang,
-       _logOverwriteError;
-
-if (! YU.Storage) {
-       _logOverwriteError = function(fxName) {
-               Y.log('Exception in YAHOO.util.Storage.?? - must be extended by a storage engine'.replace('??', fxName).replace('??', this.getName ? this.getName() : 'Unknown'), 'error');
-       };
-
-       /**
-        * The Storage class is an HTML 5 storage API clone, used to wrap individual storage implementations with a common API.
-        * @class Storage
-        * @namespace YAHOO.util
-        * @constructor
-        * @param location {String} Required. The storage location.
-        * @parm name {String} Required. The engine name.
-        * @param conf {Object} Required. A configuration object.
-        */
-       YU.Storage = function(location, name, conf) {
-               var that = this;
-               Y.env._id_counter += 1;
-
-               // protected variables
-               that._cfg = YL.isObject(conf) ? conf : {};
-               that._location = location;
-               that._name = name;
-               that.isReady = false;
-
-               // public variables
-               that.createEvent(that.CE_READY, {scope: that});
-               that.createEvent(that.CE_CHANGE, {scope: that});
-               
-               that.subscribe(that.CE_READY, function() {
-                       that.isReady = true;
-               });
-       };
-
-       YU.Storage.prototype = {
-
-               /**
-                * The event name for when the storage item is ready.
-                * @property CE_READY
-                * @type {String}
-                * @public
-                */
-               CE_READY: 'YUIStorageReady',
-
-               /**
-                * The event name for when the storage item has changed.
-                * @property CE_CHANGE
-                * @type {String}
-                * @public
-                */
-               CE_CHANGE: 'YUIStorageChange',
-
-               /**
-                * The delimiter uesed between the data type and the data.
-                * @property DELIMITER
-                * @type {String}
-                * @public
-                */
-               DELIMITER: '__',
-
-               /**
-                * The configuration of the engine.
-                * @property _cfg
-                * @type {Object}
-                * @protected
-                */
-               _cfg: '',
-
-               /**
-                * The name of this engine.
-                * @property _name
-                * @type {String}
-                * @protected
-                */
-               _name: '',
-
-               /**
-                * The location for this instance.
-                * @property _location
-                * @type {String}
-                * @protected
-                */
-               _location: '',
-
-               /**
-                * The current length of the keys.
-                * @property length
-                * @type {Number}
-                * @public
-                */
-               length: 0,
-
-               /**
-                * This engine singleton has been initialized already.
-                * @property isReady
-                * @type {String}
-                * @protected
-                */
-               isReady: false,
-
-               /**
-                * Clears any existing key/value pairs.
-                * @method clear
-                * @public
-                */
-               clear: function() {
-                       this._clear();
-                       this.length = 0;
-               },
-
-               /**
-                * Fetches the data stored and the provided key.
-                * @method getItem
-                * @param key {String} Required. The key used to reference this value (DOMString in HTML 5 spec).
-                * @return {String|NULL} The value stored at the provided key (DOMString in HTML 5 spec).
-                * @public
-                */
-               getItem: function(key) {
-                       Y.log("Fetching item at  " + key);
-                       var item = this._getItem(key);
-                       return YL.isValue(item) ? this._getValue(item) : null; // required by HTML 5 spec
-               },
-
-               /**
-                * Fetches the storage object's name; should be overwritten by storage engine.
-                * @method getName
-                * @return {String} The name of the data storage object.
-                * @public
-                */
-               getName: function() {return this._name;},
-
-               /**
-                * Tests if the key has been set (not in HTML 5 spec); should be overwritten by storage engine.
-                * @method hasKey
-                * @param key {String} Required. The key to search for.
-                * @return {Boolean} True when key has been set.
-                * @public
-                */
-               hasKey: function(key) {
-                       return YL.isString(key) && this._hasKey(key);
-               },
-
-               /**
-                * Retrieve the key stored at the provided index; should be overwritten by storage engine.
-                * @method key
-                * @param index {Number} Required. The index to retrieve (unsigned long in HTML 5 spec).
-                * @return {String} Required. The key at the provided index (DOMString in HTML 5 spec).
-                * @public
-                */
-               key: function(index) {
-                       Y.log("Fetching key at " + index);
-
-                       if (YL.isNumber(index) && -1 < index && this.length > index) {
-                               var value = this._key(index);
-                               if (value) {return value;}
-                       }
-
-                       // this is thrown according to the HTML5 spec
-                       throw('INDEX_SIZE_ERR - Storage.setItem - The provided index (' + index + ') is not available');
-               },
-
-               /**
-                * Remove an item from the data storage.
-                * @method setItem
-                * @param key {String} Required. The key to remove (DOMString in HTML 5 spec).
-                * @public
-                */
-               removeItem: function(key) {
-                       Y.log("removing " + key);
-                       
-                       if (this.hasKey(key)) {
-                var oldValue = this._getItem(key);
-                if (! oldValue) {oldValue = null;}
-                this._removeItem(key);
-                               this.fireEvent(this.CE_CHANGE, new YU.StorageEvent(this, key, oldValue, null, YU.StorageEvent.TYPE_REMOVE_ITEM));
-                       }
-                       else {
-                               // HTML 5 spec says to do nothing
-                       }
-               },
-
-               /**
-                * Adds an item to the data storage.
-                * @method setItem
-                * @param key {String} Required. The key used to reference this value (DOMString in HTML 5 spec).
-                * @param data {Object} Required. The data to store at key (DOMString in HTML 5 spec).
-                * @public
-                * @throws QUOTA_EXCEEDED_ERROR
-                */
-               setItem: function(key, data) {
-                       Y.log("SETTING " + data + " to " + key);
-                       
-                       if (YL.isString(key)) {
-                               var eventType = this.hasKey(key) ? YU.StorageEvent.TYPE_UPDATE_ITEM : YU.StorageEvent.TYPE_ADD_ITEM,
-                                       oldValue = this._getItem(key);
-                               if (! oldValue) {oldValue = null;}
-
-                               if (this._setItem(key, this._createValue(data))) {
-                                       this.fireEvent(this.CE_CHANGE, new YU.StorageEvent(this, key, oldValue, data, eventType));
-                               }
-                               else {
-                                       // this is thrown according to the HTML5 spec
-                                       throw('QUOTA_EXCEEDED_ERROR - Storage.setItem - The choosen storage method (' +
-                                                 this.getName() + ') has exceeded capacity');
-                               }
-                       }
-                       else {
-                               // HTML 5 spec says to do nothing
-                       }
-               },
-
-               /**
-                * Implementation of the clear login; should be overwritten by storage engine.
-                * @method _clear
-                * @protected
-                */
-               _clear: function() {
-                       _logOverwriteError('_clear');
-                       return '';
-               },
-
-               /**
-                * Converts the object into a string, with meta data (type), so it can be restored later.
-                * @method _createValue
-                * @param s {Object} Required. An object to store.
-                * @protected
-                */
-               _createValue: function(s) {
-                       var type = (YL.isNull(s) || YL.isUndefined(s)) ? ('' + s) : typeof s;
-                       return 'string' === type ? s : type + this.DELIMITER + s;
-               },
-
-               /**
-                * Implementation of the getItem login; should be overwritten by storage engine.
-                * @method _getItem
-                * @param key {String} Required. The key used to reference this value.
-                * @return {String|NULL} The value stored at the provided key.
-                * @protected
-                */
-               _getItem: function(key) {
-                       _logOverwriteError('_getItem');
-                       return '';
-               },
-
-               /**
-                * Converts the stored value into its appropriate type.
-                * @method _getValue
-                * @param s {String} Required. The stored value.
-                * @protected
-                */
-               _getValue: function(s) {
-                       var a = s ? s.split(this.DELIMITER) : [];
-                       if (1 == a.length) {return s;}
-
-                       switch (a[0]) {
-                               case 'boolean': return 'true' === a[1];
-                               case 'number': return parseFloat(a[1]);
-                               case 'null': return null;
-                               default: return a[1];
-                       }
-               },
-
-               /**
-                * Implementation of the key logic; should be overwritten by storage engine.
-                * @method _key
-                * @param index {Number} Required. The index to retrieve (unsigned long in HTML 5 spec).
-                * @return {String|NULL} Required. The key at the provided index (DOMString in HTML 5 spec).
-                * @protected
-                */
-               _key: function(index) {
-                       _logOverwriteError('_key');
-                       return '';
-               },
-
-               /*
-                * Implementation to fetch evaluate the existence of a key.
-                * @see YAHOO.util.Storage._hasKey
-                */
-               _hasKey: function(key) {
-                       return null !== this._getItem(key);
-               },
-
-               /**
-                * Implementation of the removeItem login; should be overwritten by storage engine.
-                * @method _removeItem
-                * @param key {String} Required. The key to remove.
-                * @protected
-                */
-               _removeItem: function(key) {
-                       _logOverwriteError('_removeItem');
-                       return '';
-               },
-
-               /**
-                * Implementation of the setItem login; should be overwritten by storage engine.
-                * @method _setItem
-                * @param key {String} Required. The key used to reference this value.
-                * @param data {Object} Required. The data to storage at key.
-                * @return {Boolean} True when successful, false when size QUOTA exceeded.
-                * @protected
-                */
-               _setItem: function(key, data) {
-                       _logOverwriteError('_setItem');
-                       return '';
-               }
-       };
-
-       YL.augmentProto(YU.Storage, YU.EventProvider);
-}
-
-}());
-/**
- * The StorageManager class is a singleton that registers DataStorage objects and returns instances of those objects.
- * @class StorageManager
- * @namespace YAHOO.util
- * @static
- */
-(function() {
-       // internal shorthand
-var Y = YAHOO.util,
-       YL = YAHOO.lang,
-
-       // private variables
-       _locationEngineMap = {}, // cached engines
-       _registeredEngineSet = [], // set of available engines
-       _registeredEngineMap = {}, // map of available engines
-       
-       /**
-        * Fetches a storage constructor if it is available, otherwise returns NULL.
-        * @method _getClass
-        * @param klass {Function} Required. The storage constructor to test.
-        * @return {Function} An available storage constructor or NULL.
-        * @private
-        */
-       _getClass = function(klass) {
-               return (klass && klass.isAvailable()) ? klass : null;
-       },
-
-       /**
-        * Fetches the storage engine from the cache, or creates and caches it.
-        * @method _getStorageEngine
-        * @param location {String} Required. The location to store.
-        * @param klass {Function} Required. A pointer to the engineType Class.
-        * @param conf {Object} Optional. Additional configuration for the data source engine.
-        * @private
-        */
-       _getStorageEngine = function(location, klass, conf) {
-               var engine = _locationEngineMap[location + klass.ENGINE_NAME];
-
-               if (! engine) {
-                       engine = new klass(location, conf);
-                       _locationEngineMap[location + klass.ENGINE_NAME] = engine;
-               }
-
-               return engine;
-       },
-
-       /**
-        * Ensures that the location is valid before returning it or a default value.
-        * @method _getValidLocation
-        * @param location {String} Required. The location to evaluate.
-        * @private
-        */
-       _getValidLocation = function(location) {
-               switch (location) {
-                       case Y.StorageManager.LOCATION_LOCAL:
-                       case Y.StorageManager.LOCATION_SESSION:
-                               return location;
-
-                       default: return Y.StorageManager.LOCATION_SESSION;
-               }
-       };
-
-       // public namespace
-       Y.StorageManager = {
-
-        /**
-         * The storage location - session; data cleared at the end of a user's session.
-         * @property LOCATION_SESSION
-         * @type {String}
-         * @static
-         */
-               LOCATION_SESSION: 'sessionStorage',
-
-        /**
-         * The storage location - local; data cleared on demand.
-         * @property LOCATION_LOCAL
-         * @type {String}
-         * @static
-         */
-               LOCATION_LOCAL: 'localStorage',
-
-               /**
-                * Fetches the desired engine type or first available engine type.
-                * @method get
-                * @param engineType {String} Optional. The engine type, see engines.
-                * @param location {String} Optional. The storage location - LOCATION_SESSION & LOCATION_LOCAL; default is LOCAL.
-                * @param conf {Object} Optional. Additional configuration for the getting the storage engine.
-                * {
-                *      engine: {Object} configuration parameters for the desired engine
-                *      order: {Array} an array of storage engine names; the desired order to try engines}
-                * }
-                * @static
-                */
-               get: function(engineType, location, conf) {
-                       var _cfg = YL.isObject(conf) ? conf : {},
-                               klass = _getClass(_registeredEngineMap[engineType]);
-
-                       if (! klass && ! _cfg.force) {
-                               var i, j;
-
-                               if (_cfg.order) {
-                                       j = _cfg.order.length;
-
-                                       for (i = 0; i < j && ! klass; i += 1) {
-                                               klass = _getClass(_cfg.order[i]);
-                                       }
-                               }
-
-                               if (! klass) {
-                                       j = _registeredEngineSet.length;
-
-                                       for (i = 0; i < j && ! klass; i += 1) {
-                                               klass = _getClass(_registeredEngineSet[i]);
-                                       }
-                               }
-                       }
-
-                       if (klass) {
-                               return _getStorageEngine(_getValidLocation(location), klass, _cfg.engine);
-                       }
-
-                       throw('YAHOO.util.StorageManager.get - No engine available, please include an engine before calling this function.');
-               },
-
-        /*
-         * Estimates the size of the string using 1 byte for each alpha-numeric character and 3 for each non-alpha-numeric character.
-         * @method getByteSize
-         * @param s {String} Required. The string to evaulate.
-         * @return {Number} The estimated string size.
-         * @private
-         */
-        getByteSize: function(s) {
-                       return encodeURIComponent('' + s).length;
-        },
-
-               /**
-                * Registers a engineType Class with the StorageManager singleton; first in is the first out.
-                * @method register
-                * @param engineConstructor {Function} Required. The engine constructor function, see engines.
-                * @return {Boolean} When successfully registered.
-                * @static
-                */
-               register: function(engineConstructor) {
-                       if (YL.isFunction(engineConstructor) && YL.isFunction(engineConstructor.isAvailable) && YL.isString(engineConstructor.ENGINE_NAME)) {
-                               _registeredEngineMap[engineConstructor.ENGINE_NAME] = engineConstructor;
-                               _registeredEngineSet.push(engineConstructor);
-                               return true;
-                       }
-
-                       return false;
-               }
-       };
-
-       YAHOO.register("StorageManager", Y.SWFStore, {version: "2.8.0r4", build: "2449"});
-}());
-(function() {
-
-/**
- * The StorageEvent class manages the storage events by emulating the HTML 5 implementation.
- * @namespace YAHOO.util
- * @class StorageEvent
- * @constructor
- * @param storageArea {Object} Required. The Storage object that was affected.
- * @param key {String} Required. The key being changed; DOMString in HTML 5 spec.
- * @param oldValue {String} Required. The old value of the key being changed; DOMString in HTML 5 spec.
- * @param newValue {String} Required. The new value of the key being changed; DOMString in HTML 5 spec.
- * @param type {String} Required. The storage event type.
- */
-YAHOO.util.StorageEvent = function(storageArea, key, oldValue, newValue, type) {
-       this.key = key;
-       this.oldValue = oldValue;
-       this.newValue = newValue;
-       this.url = window.location.href;
-       this.window = window; // todo: think about the CAJA and innocent code
-       this.storageArea = storageArea;
-       this.type = type;
-};
-
-YAHOO.lang.augmentObject(YAHOO.util.StorageEvent, {
-       TYPE_ADD_ITEM: 'addItem',
-       TYPE_REMOVE_ITEM: 'removeItem',
-       TYPE_UPDATE_ITEM: 'updateItem'
-});
-
-YAHOO.util.StorageEvent.prototype = {
-
-    /**
-     * The 'key' attribute represents the key being changed.
-     * @property key
-     * @type {String}
-     * @static
-     * @readonly
-     */
-    key: null,
-
-    /**
-     * The 'newValue' attribute represents the new value of the key being changed.
-     * @property newValue
-     * @type {String}
-     * @static
-     * @readonly
-     */
-    newValue: null,
-
-    /**
-     * The 'oldValue' attribute represents the old value of the key being changed.
-     * @property oldValue
-     * @type {String}
-     * @static
-     * @readonly
-     */
-    oldValue: null,
-
-    /**
-     * The 'source' attribute represents the WindowProxy object of the browsing context of the document whose key changed.
-     * @property source
-     * @type {Object}
-     * @static
-     * @readonly
-     */
-    source: null,
-
-    /**
-     * The 'storageArea' attribute represents the Storage object that was affected.
-     * @property storageArea
-     * @type {Object}
-     * @static
-     * @readonly
-     */
-    storageArea: null,
-
-    /**
-     * The 'type' attribute represents the Storage event type.
-     * @property type
-     * @type {Object}
-     * @static
-     * @readonly
-     */
-    type: null,
-
-    /**
-     * The 'url' attribute represents the address of the document whose key changed.
-     * @property url
-     * @type {String}
-     * @static
-     * @readonly
-     */
-    url: null
-};
-       
-}());
-(function() {
-var Y = YAHOO.util,
-       YL = YAHOO.lang;
-
-       /**
-        * The StorageEngineKeyed class implements the interface necessary for managing keys.
-        * @namespace YAHOO.util
-        * @class StorageEngineKeyed
-        * @constructor
-        * @extend YAHOO.util.Storage
-        */
-       Y.StorageEngineKeyed = function() {
-               Y.StorageEngineKeyed.superclass.constructor.apply(this, arguments);
-               this._keys = [];
-               this._keyMap = {};
-       };
-
-       YL.extend(Y.StorageEngineKeyed, Y.Storage, {
-
-               /**
-                * A collection of keys applicable to the current location. This should never be edited by the developer.
-                * @property _keys
-                * @type {Array}
-                * @protected
-                */
-               _keys: null,
-
-               /**
-                * A map of keys to their applicable position in keys array. This should never be edited by the developer.
-                * @property _keyMap
-                * @type {Object}
-                * @protected
-                */
-               _keyMap: null,
-
-               /**
-                * Adds the key to the set.
-                * @method _addKey
-                * @param key {String} Required. The key to evaluate.
-                * @protected
-                */
-               _addKey: function(key) {
-                       this._keyMap[key] = this.length;
-                       this._keys.push(key);
-                       this.length = this._keys.length;
-               },
-
-               /**
-                * Evaluates if a key exists in the keys array; indexOf does not work in all flavors of IE.
-                * @method _indexOfKey
-                * @param key {String} Required. The key to evaluate.
-                * @protected
-                */
-               _indexOfKey: function(key) {
-                       var i = this._keyMap[key];
-                       return undefined === i ? -1 : i;
-               },
-
-               /**
-                * Removes a key from the keys array.
-                * @method _removeKey
-                * @param key {String} Required. The key to remove.
-                * @protected
-                */
-               _removeKey: function(key) {
-                       var j = this._indexOfKey(key),
-                               rest = this._keys.slice(j + 1);
-
-                       delete this._keyMap[key];
-
-                       for (var k in this._keyMap) {
-                               if (j < this._keyMap[k]) {
-                                       this._keyMap[k] -= 1;
-                               }
-                       }
-                       
-                       this._keys.length = j;
-                       this._keys = this._keys.concat(rest);
-                       this.length = this._keys.length;
-               }
-       });
-}());
-/*
- * HTML limitations:
- *  - 5MB in FF and Safari, 10MB in IE 8
- *  - only FF 3.5 recovers session storage after a browser crash
- *
- * Thoughts:
- *  - how can we not use cookies to handle session
- */
-(function() {
-       // internal shorthand
-var Y = YAHOO.util,
-       YL = YAHOO.lang,
-
-       /*
-        * Required for IE 8 to make synchronous.
-        */
-       _beginTransaction = function(engine) {
-               if (engine.begin) {engine.begin();}
-       },
-
-       /*
-        * Required for IE 8 to make synchronous.
-        */
-       _commitTransaction = function(engine) {
-               if (engine.commit) {engine.commit();}
-       };
-
-       /**
-        * The StorageEngineHTML5 class implements the HTML5 storage engine.
-        * @namespace YAHOO.util
-        * @class StorageEngineHTML5
-        * @constructor
-        * @extend YAHOO.util.Storage
-        * @param location {String} Required. The storage location.
-        * @param conf {Object} Required. A configuration object.
-        */
-       Y.StorageEngineHTML5 = function(location, conf) {
-               var _this = this;
-               Y.StorageEngineHTML5.superclass.constructor.call(_this, location, Y.StorageEngineHTML5.ENGINE_NAME, conf);// not set, are cookies available
-               _this._engine = window[location];
-               _this.length = _this._engine.length;
-               YL.later(250, _this, function() { // temporary solution so that CE_READY can be subscribed to after this object is created
-                       _this.fireEvent(_this.CE_READY);
-               });
-       };
-
-       YAHOO.lang.extend(Y.StorageEngineHTML5, Y.Storage, {
-
-               _engine: null,
-
-               /*
-                * Implementation to clear the values from the storage engine.
-                * @see YAHOO.util.Storage._clear
-                */
-               _clear: function() {
-                       var _this = this;
-                       if (_this._engine.clear) {
-                               _this._engine.clear();
-                       }
-                       // for FF 3, fixed in FF 3.5
-                       else {
-                               for (var i = _this.length, key; 0 <= i; i -= 1) {
-                                       key = _this._key(i);
-                                       _this._removeItem(key);
-                               }
-                       }
-               },
-
-               /*
-                * Implementation to fetch an item from the storage engine.
-                * @see YAHOO.util.Storage._getItem
-                */
-               _getItem: function(key) {
-                       var o = this._engine.getItem(key);
-                       return YL.isObject(o) ? o.value : o; // for FF 3, fixed in FF 3.5
-               },
-
-               /*
-                * Implementation to fetch a key from the storage engine.
-                * @see YAHOO.util.Storage._key
-                */
-               _key: function(index) {return this._engine.key(index);},
-
-               /*
-                * Implementation to remove an item from the storage engine.
-                * @see YAHOO.util.Storage._removeItem
-                */
-               _removeItem: function(key) {
-                       var _this = this;
-                       _beginTransaction(_this._engine);
-                       _this._engine.removeItem(key);
-                       _commitTransaction(_this._engine);
-                       _this.length = _this._engine.length;
-               },
-
-               /*
-                * Implementation to remove an item from the storage engine.
-                * @see YAHOO.util.Storage._setItem
-                */
-               _setItem: function(key, value) {
-                       var _this = this;
-                       
-                       try {
-                               _beginTransaction(_this._engine);
-                               _this._engine.setItem(key, value);
-                               _commitTransaction(_this._engine);
-                               _this.length = _this._engine.length;
-                               return true;
-                       }
-                       catch (e) {
-                               return false;
-                       }
-               }
-       }, true);
-
-       Y.StorageEngineHTML5.ENGINE_NAME = 'html5';
-       Y.StorageEngineHTML5.isAvailable = function() {
-               return window.localStorage;
-       };
-    Y.StorageManager.register(Y.StorageEngineHTML5);
-}());
-/*
- * Gears limitation:
- *  - SQLite limitations - http://www.sqlite.org/limits.html
- *  - DB Best Practices - http://code.google.com/apis/gears/gears_faq.html#bestPracticeDB
- *     - the user must approve before gears can be used
- *  - each SQL query has a limited number of characters (9948 bytes), data will need to be spread across rows
- *  - no query should insert or update more than 9948 bytes of data in a single statement or GEARs will throw:
- *     [Exception... "'Error: SQL statement is too long.' when calling method: [nsIDOMEventListener::handleEvent]" nsresult: "0x8057001c (NS_ERROR_XPC_JS_THREW_JS_OBJECT)" location: "<unknown>" data: no]
- *
- * Thoughts:
- *  - we may want to implement additional functions for the gears only implementation
- *  - how can we not use cookies to handle session location
- */
-(function() {
-       // internal shorthand
-var Y = YAHOO.util,
-       YL = YAHOO.lang,
-       _SQL_STMT_LIMIT = 9948,
-       _TABLE_NAME = 'YUIStorageEngine',
-
-       // local variables
-       _engine = null,
-
-       eURI = encodeURIComponent,
-       dURI = decodeURIComponent;
-
-       /**
-        * The StorageEngineGears class implements the Google Gears storage engine.
-        * @namespace YAHOO.util
-        * @class StorageEngineGears
-        * @constructor
-        * @extend YAHOO.util.Storage
-        * @param location {String} Required. The storage location.
-        * @param conf {Object} Required. A configuration object.
-        */
-       Y.StorageEngineGears = function(location, conf) {
-               var _this = this;
-               Y.StorageEngineGears.superclass.constructor.call(_this, location, Y.StorageEngineGears.ENGINE_NAME, conf);
-
-               if (! _engine) {
-                       // create the database
-                       _engine = google.gears.factory.create(Y.StorageEngineGears.GEARS);
-                       _engine.open(window.location.host + '-' + Y.StorageEngineGears.DATABASE);
-                       _engine.execute('CREATE TABLE IF NOT EXISTS ' + _TABLE_NAME + ' (key TEXT, location TEXT, value TEXT)');
-               }
-
-               var isSessionStorage = Y.StorageManager.LOCATION_SESSION === _this._location,
-                       sessionKey = Y.Cookie.get('sessionKey' + Y.StorageEngineGears.ENGINE_NAME);
-
-               if (! sessionKey) {
-                       _engine.execute('BEGIN');
-                       _engine.execute('DELETE FROM ' + _TABLE_NAME + ' WHERE location="' + eURI(Y.StorageManager.LOCATION_SESSION) + '"');
-                       _engine.execute('COMMIT');
-               }
-
-               var rs = _engine.execute('SELECT key FROM ' + _TABLE_NAME + ' WHERE location="' + eURI(_this._location) + '"'),
-                       keyMap = {};
-       
-               try {
-                       // iterate on the rows and map the keys
-                       while (rs.isValidRow()) {
-                               var fld = dURI(rs.field(0));
-
-                               if (! keyMap[fld]) {
-                                       keyMap[fld] = true;
-                                       _this._addKey(fld);
-                               }
-
-                               rs.next();
-                       }
-               }
-               finally {
-                       rs.close();
-               }
-
-               // this is session storage, ensure that the session key is set
-               if (isSessionStorage) {
-                       Y.Cookie.set('sessionKey' + Y.StorageEngineGears.ENGINE_NAME, true);
-               }
-
-               _this.length = _this._keys.length;
-               YL.later(250, _this, function() { // temporary solution so that CE_READY can be subscribed to after this object is created
-                       _this.fireEvent(_this.CE_READY);
-               });
-       };
-
-       YL.extend(Y.StorageEngineGears, Y.StorageEngineKeyed, {
-
-               /*
-                * Implementation to clear the values from the storage engine.
-                * @see YAHOO.util.Storage._clear
-                */
-               _clear: function() {
-                       _engine.execute('BEGIN');
-                       _engine.execute('DELETE FROM ' + _TABLE_NAME + ' WHERE location="' + eURI(this._location) + '"');
-                       _engine.execute('COMMIT');
-                       this._keys = [];
-                       this.length = 0;
-               },
-
-               /*
-                * Implementation to fetch an item from the storage engine.
-                * @see YAHOO.util.Storage._getItem
-                */
-               _getItem: function(key) {
-                       var rs = _engine.execute('SELECT value FROM ' + _TABLE_NAME + ' WHERE key="' + eURI(key) + '" AND location="' + eURI(this._location) + '"'),
-                               value = '';
-
-                       try {
-                               while (rs.isValidRow()) {
-                                       var temp = rs.field(0);
-                                       value += rs.field(0);
-                                       rs.next();
-                               }
-                       }
-                       finally {
-                               rs.close();
-                       }
-
-                       return value ? dURI(value) : null;
-               },
-
-               /*
-                * Implementation to fetch a key from the storage engine.
-                * @see YAHOO.util.Storage.key
-                */
-               _key: function(index) {return this._keys[index];},
-
-               /*
-                * Implementation to remove an item from the storage engine.
-                * @see YAHOO.util.Storage._removeItem
-                */
-               _removeItem: function(key) {
-                       YAHOO.log("removing " + key);
-                       _engine.execute('BEGIN');
-                       _engine.execute('DELETE FROM ' + _TABLE_NAME + ' WHERE key="' + eURI(key) + '" AND location="' + eURI(this._location) + '"');
-                       _engine.execute('COMMIT');
-                       this._removeKey(key);
-               },
-
-               /*
-                * Implementation to remove an item from the storage engine.
-                * @see YAHOO.util.Storage._setItem
-                */
-               _setItem: function(key, data) {
-                       YAHOO.log("SETTING " + data + " to " + key);
-
-                       if (! this.hasKey(key)) {
-                               this._addKey(key);
-                       }
-
-                       var _key = eURI(key),
-                               _location = eURI(this._location),
-                               _value = eURI(data),
-                               _values = [],
-                               _len = _SQL_STMT_LIMIT - (_key + _location).length;
-
-                       // the length of the value exceeds the available space
-                       if (_len < _value.length) {
-                               for (var i = 0, j = _value.length; i < j; i += _len) {
-                                       _values.push(_value.substr(i, _len));
-                               }
-                       }
-                       else {
-                               _values.push(_value);
-                       }
-
-                       // Google recommends using INSERT instead of update, because it is faster
-                       _engine.execute('BEGIN');
-                       _engine.execute('DELETE FROM ' + _TABLE_NAME + ' WHERE key="' + eURI(key) + '" AND location="' + eURI(this._location) + '"');
-                       for (var m = 0, n = _values.length; m < n; m += 1) {
-                               _engine.execute('INSERT INTO ' + _TABLE_NAME + ' VALUES ("' + _key + '", "' + _location + '", "' + _values[m] + '")');
-                       }
-                       _engine.execute('COMMIT');
-                       
-                       return true;
-               }
-       });
-
-       // releases the engine when the page unloads
-       Y.Event.on('unload', function() {
-               if (_engine) {_engine.close();}
-       });
-       Y.StorageEngineGears.ENGINE_NAME = 'gears';
-       Y.StorageEngineGears.GEARS = 'beta.database';
-       Y.StorageEngineGears.DATABASE = 'yui.database';
-       Y.StorageEngineGears.isAvailable = function() {
-               if (window.google && window.google.gears) {
-                       try {
-                               // this will throw an exception if the user denies gears
-                               google.gears.factory.create(Y.StorageEngineGears.GEARS);
-                               return true;
-                       }
-                       catch (e) {
-                               // no need to do anything
-                       }
-               }
-
-               return false;
-       };
-    Y.StorageManager.register(Y.StorageEngineGears);
-}());
-/*
- * SWF limitation:
- *  - only 100,000 bytes of data may be stored this way
- *  - data is publicly available on user machine
- *
- * Thoughts:
- *  - data can be shared across browsers
- *  - how can we not use cookies to handle session location
- */
-(function() {
-    // internal shorthand
-var Y = YAHOO.util,
-    YL = YAHOO.lang,
-    YD = Y.Dom,
-    
-    /*
-     * The minimum width required to be able to display the settings panel within the SWF.
-     */ 
-    MINIMUM_WIDTH = 215,
-
-    /*
-     * The minimum height required to be able to display the settings panel within the SWF.
-     */ 
-    MINIMUM_HEIGHT = 138,
-
-    // local variables
-    _engine = null,
-
-    /*
-     * Creates a location bound key.
-     */
-    _getKey = function(that, key) {
-        return that._location + that.DELIMITER + key;
-    },
-
-    /*
-     * Initializes the engine, if it isn't already initialized.
-     */
-    _initEngine = function(cfg) {
-        if (! _engine) {
-            if (! YL.isString(cfg.swfURL)) {cfg.swfURL = Y.StorageEngineSWF.SWFURL;}
-            if (! cfg.containerID) {
-                var bd = document.getElementsByTagName('body')[0],
-                    container = bd.appendChild(document.createElement('div'));
-                cfg.containerID = YD.generateId(container);
-            }
-
-            if (! cfg.attributes) {cfg.attributes  = {};}
-            if (! cfg.attributes.flashVars) {cfg.attributes.flashVars = {};}
-            cfg.attributes.flashVars.useCompression = 'true';
-            cfg.attributes.version = 9.115;
-            _engine = new YAHOO.widget.SWF(cfg.containerID, cfg.swfURL, cfg.attributes);
-        }
-    };
-
-    /**
-     * The StorageEngineSWF class implements the SWF storage engine.
-     * @namespace YAHOO.util
-     * @class StorageEngineSWF
-     * @uses YAHOO.widget.SWF
-     * @constructor
-     * @extend YAHOO.util.Storage
-     * @param location {String} Required. The storage location.
-     * @param conf {Object} Required. A configuration object.
-     */
-    Y.StorageEngineSWF = function(location, conf) {
-        var _this = this;
-        Y.StorageEngineSWF.superclass.constructor.call(_this, location, Y.StorageEngineSWF.ENGINE_NAME, conf);
-        
-        _initEngine(_this._cfg);
-
-        // evaluates when the SWF is loaded
-               _engine.unsubscribe('contentReady'); // prevents local and session content ready callbacks from firing, when switching between context
-        _engine.addListener("contentReady", function() {
-            _this._swf = _engine._swf;
-            _engine.initialized = true;
-                       
-                       var isSessionStorage = Y.StorageManager.LOCATION_SESSION === _this._location,
-                               sessionKey = Y.Cookie.get('sessionKey' + Y.StorageEngineSWF.ENGINE_NAME);
-
-            for (var i = _engine.callSWF("getLength", []) - 1; 0 <= i; i -= 1) {
-                var key = _engine.callSWF("getNameAt", [i]),
-                    isKeySessionStorage = -1 < key.indexOf(Y.StorageManager.LOCATION_SESSION + _this.DELIMITER);
-
-                // this is session storage, but the session key is not set, so remove item
-                if (isSessionStorage && ! sessionKey) {
-                    _engine.callSWF("removeItem", [key]);
-                }
-                // the key matches the storage type, add to key collection
-                else if (isSessionStorage === isKeySessionStorage) {
-                    _this._addKey(key);
-                }
-            }
-
-            // this is session storage, ensure that the session key is set
-            if (isSessionStorage) {
-                Y.Cookie.set('sessionKey' + Y.StorageEngineSWF.ENGINE_NAME, true);
-            }
-
-            _this.length = _this._keys.length;
-            _this.fireEvent(_this.CE_READY);
-        });
-        
-        // required for pages with both a session and local storage
-        if (_engine.initialized) {_engine.fireEvent('contentReady');}
-    };
-
-    YL.extend(Y.StorageEngineSWF, Y.StorageEngineKeyed, {
-        /**
-         * The underlying SWF of the engine, exposed so developers can modify the adapter behavior.
-         * @property _swf
-         * @type {Object}
-         * @protected
-         */
-        _swf: null,
-
-        /*
-         * Implementation to clear the values from the storage engine.
-         * @see YAHOO.util.Storage._clear
-         */
-        _clear: function() {
-            for (var i = this._keys.length - 1; 0 <= i; i -= 1) {
-                var key = this._keys[i];
-                _engine.callSWF("removeItem", [key]);
-            }
-
-            this._keys = [];
-            this.length = 0;
-        },
-
-        /*
-         * Implementation to fetch an item from the storage engine.
-         * @see YAHOO.util.Storage._getItem
-         */
-        _getItem: function(key) {
-            var _key = _getKey(this, key);
-            return _engine.callSWF("getValueOf", [_key]);
-        },
-
-        /*
-         * Implementation to fetch a key from the storage engine.
-         * @see YAHOO.util.Storage.key
-         */
-        _key: function(index) {
-            return (this._keys[index] || '').replace(/^.*?__/, '');
-        },
-
-        /*
-         * Implementation to remove an item from the storage engine.
-         * @see YAHOO.util.Storage._removeItem
-         */
-        _removeItem: function(key) {
-            var _key = _getKey(this, key);
-            _engine.callSWF("removeItem", [_key]);
-            this._removeKey(_key);
-        },
-
-        /*
-         * Implementation to remove an item from the storage engine.
-         * @see YAHOO.util.Storage._setItem
-         */
-        _setItem: function(key, data) {
-            var _key = _getKey(this, key), swfNode;
-
-            // setting the value returns false if the value didn't change,
-            // so I changed this to clear the key if it exists so that the
-            // fork below works.
-            if (_engine.callSWF("getValueOf", [_key])) {
-                this._removeItem(key);
-            }
-
-            this._addKey(_key);
-
-            if (_engine.callSWF("setItem", [_key, data])) {
-                return true;
-            } else {
-
-                // @TODO we should not assume that a false return means that
-                // the quota has been exceeded.  this dialog should only be
-                // displayed if the quotaExceededError event fired.
-                swfNode = YD.get(_engine._id);
-                if (MINIMUM_WIDTH > YD.getStyle(swfNode, 'width').replace(/\D+/g, '')) {
-                    YD.setStyle(swfNode, 'width', MINIMUM_WIDTH + 'px');
-                }
-                if (MINIMUM_HEIGHT > YD.getStyle(swfNode, 'height').replace(/\D+/g, '')) {
-                    YD.setStyle(swfNode, 'height', MINIMUM_HEIGHT + 'px');
-                }
-                return _engine.callSWF("displaySettings", []);
-            }
-        }
-    });
-
-    Y.StorageEngineSWF.SWFURL = "swfstore.swf";
-    Y.StorageEngineSWF.ENGINE_NAME = 'swf';
-    Y.StorageEngineSWF.isAvailable = function() {
-        return (6 <= YAHOO.env.ua.flash && YAHOO.widget.SWF);
-    };
-    Y.StorageManager.register(Y.StorageEngineSWF);
-}());
-YAHOO.register("storage", YAHOO.util.Storage, {version: "2.8.0r4", build: "2449"});
diff --git a/koha-tmpl/intranet-tmpl/prog/en/lib/yui/storage/storage-min.js b/koha-tmpl/intranet-tmpl/prog/en/lib/yui/storage/storage-min.js
deleted file mode 100644 (file)
index 103553f..0000000
+++ /dev/null
@@ -1,8 +0,0 @@
-/*
-Copyright (c) 2009, Yahoo! Inc. All rights reserved.
-Code licensed under the BSD License:
-http://developer.yahoo.net/yui/license.txt
-version: 2.8.0r4
-*/
-(function(){var D=YAHOO,B=D.util,A=D.lang,C;if(!B.Storage){C=function(E){D.log("Exception in YAHOO.util.Storage.?? - must be extended by a storage engine".replace("??",E).replace("??",this.getName?this.getName():"Unknown"),"error");};B.Storage=function(E,G,F){var H=this;D.env._id_counter+=1;H._cfg=A.isObject(F)?F:{};H._location=E;H._name=G;H.isReady=false;H.createEvent(H.CE_READY,{scope:H});H.createEvent(H.CE_CHANGE,{scope:H});H.subscribe(H.CE_READY,function(){H.isReady=true;});};B.Storage.prototype={CE_READY:"YUIStorageReady",CE_CHANGE:"YUIStorageChange",DELIMITER:"__",_cfg:"",_name:"",_location:"",length:0,isReady:false,clear:function(){this._clear();this.length=0;},getItem:function(E){D.log("Fetching item at  "+E);var F=this._getItem(E);return A.isValue(F)?this._getValue(F):null;},getName:function(){return this._name;},hasKey:function(E){return A.isString(E)&&this._hasKey(E);},key:function(E){D.log("Fetching key at "+E);if(A.isNumber(E)&&-1<E&&this.length>E){var F=this._key(E);if(F){return F;}}throw ("INDEX_SIZE_ERR - Storage.setItem - The provided index ("+E+") is not available");},removeItem:function(F){D.log("removing "+F);if(this.hasKey(F)){var E=this._getItem(F);if(!E){E=null;}this._removeItem(F);this.fireEvent(this.CE_CHANGE,new B.StorageEvent(this,F,E,null,B.StorageEvent.TYPE_REMOVE_ITEM));}else{}},setItem:function(G,H){D.log("SETTING "+H+" to "+G);if(A.isString(G)){var F=this.hasKey(G)?B.StorageEvent.TYPE_UPDATE_ITEM:B.StorageEvent.TYPE_ADD_ITEM,E=this._getItem(G);if(!E){E=null;}if(this._setItem(G,this._createValue(H))){this.fireEvent(this.CE_CHANGE,new B.StorageEvent(this,G,E,H,F));}else{throw ("QUOTA_EXCEEDED_ERROR - Storage.setItem - The choosen storage method ("+this.getName()+") has exceeded capacity");}}else{}},_clear:function(){C("_clear");return"";},_createValue:function(F){var E=(A.isNull(F)||A.isUndefined(F))?(""+F):typeof F;return"string"===E?F:E+this.DELIMITER+F;},_getItem:function(E){C("_getItem");return"";},_getValue:function(F){var E=F?F.split(this.DELIMITER):[];if(1==E.length){return F;}switch(E[0]){case"boolean":return"true"===E[1];case"number":return parseFloat(E[1]);case"null":return null;default:return E[1];}},_key:function(E){C("_key");return"";},_hasKey:function(E){return null!==this._getItem(E);},_removeItem:function(E){C("_removeItem");return"";},_setItem:function(E,F){C("_setItem");return"";}};A.augmentProto(B.Storage,B.EventProvider);}}());(function(){var H=YAHOO.util,B=YAHOO.lang,E={},G=[],F={},C=function(I){return(I&&I.isAvailable())?I:null;},A=function(J,I,K){var L=E[J+I.ENGINE_NAME];if(!L){L=new I(J,K);E[J+I.ENGINE_NAME]=L;}return L;},D=function(I){switch(I){case H.StorageManager.LOCATION_LOCAL:case H.StorageManager.LOCATION_SESSION:return I;default:return H.StorageManager.LOCATION_SESSION;}};H.StorageManager={LOCATION_SESSION:"sessionStorage",LOCATION_LOCAL:"localStorage",get:function(O,J,M){var K=B.isObject(M)?M:{},I=C(F[O]);if(!I&&!K.force){var N,L;if(K.order){L=K.order.length;for(N=0;N<L&&!I;N+=1){I=C(K.order[N]);}}if(!I){L=G.length;for(N=0;N<L&&!I;N+=1){I=C(G[N]);}}}if(I){return A(D(J),I,K.engine);}throw ("YAHOO.util.StorageManager.get - No engine available, please include an engine before calling this function.");},getByteSize:function(I){return encodeURIComponent(""+I).length;},register:function(I){if(B.isFunction(I)&&B.isFunction(I.isAvailable)&&B.isString(I.ENGINE_NAME)){F[I.ENGINE_NAME]=I;G.push(I);return true;}return false;}};YAHOO.register("StorageManager",H.SWFStore,{version:"2.8.0r4",build:"2449"});}());(function(){YAHOO.util.StorageEvent=function(D,B,A,E,C){this.key=B;this.oldValue=A;this.newValue=E;this.url=window.location.href;this.window=window;this.storageArea=D;this.type=C;};YAHOO.lang.augmentObject(YAHOO.util.StorageEvent,{TYPE_ADD_ITEM:"addItem",TYPE_REMOVE_ITEM:"removeItem",TYPE_UPDATE_ITEM:"updateItem"});YAHOO.util.StorageEvent.prototype={key:null,newValue:null,oldValue:null,source:null,storageArea:null,type:null,url:null};}());(function(){var B=YAHOO.util,A=YAHOO.lang;B.StorageEngineKeyed=function(){B.StorageEngineKeyed.superclass.constructor.apply(this,arguments);this._keys=[];this._keyMap={};};A.extend(B.StorageEngineKeyed,B.Storage,{_keys:null,_keyMap:null,_addKey:function(C){this._keyMap[C]=this.length;this._keys.push(C);this.length=this._keys.length;},_indexOfKey:function(D){var C=this._keyMap[D];return undefined===C?-1:C;},_removeKey:function(E){var D=this._indexOfKey(E),F=this._keys.slice(D+1);delete this._keyMap[E];for(var C in this._keyMap){if(D<this._keyMap[C]){this._keyMap[C]-=1;}}this._keys.length=D;this._keys=this._keys.concat(F);this.length=this._keys.length;}});}());(function(){var D=YAHOO.util,B=YAHOO.lang,A=function(E){if(E.begin){E.begin();}},C=function(E){if(E.commit){E.commit();}};D.StorageEngineHTML5=function(E,F){var G=this;D.StorageEngineHTML5.superclass.constructor.call(G,E,D.StorageEngineHTML5.ENGINE_NAME,F);G._engine=window[E];G.length=G._engine.length;B.later(250,G,function(){G.fireEvent(G.CE_READY);});};YAHOO.lang.extend(D.StorageEngineHTML5,D.Storage,{_engine:null,_clear:function(){var G=this;if(G._engine.clear){G._engine.clear();}else{for(var F=G.length,E;0<=F;F-=1){E=G._key(F);G._removeItem(E);}}},_getItem:function(E){var F=this._engine.getItem(E);return B.isObject(F)?F.value:F;},_key:function(E){return this._engine.key(E);},_removeItem:function(E){var F=this;A(F._engine);F._engine.removeItem(E);C(F._engine);F.length=F._engine.length;},_setItem:function(E,F){var H=this;try{A(H._engine);H._engine.setItem(E,F);C(H._engine);H.length=H._engine.length;return true;}catch(G){return false;}}},true);D.StorageEngineHTML5.ENGINE_NAME="html5";D.StorageEngineHTML5.isAvailable=function(){return window.localStorage;};D.StorageManager.register(D.StorageEngineHTML5);}());(function(){var G=YAHOO.util,B=YAHOO.lang,D=9948,C="YUIStorageEngine",F=null,E=encodeURIComponent,A=decodeURIComponent;G.StorageEngineGears=function(I,L){var O=this;G.StorageEngineGears.superclass.constructor.call(O,I,G.StorageEngineGears.ENGINE_NAME,L);
-if(!F){F=google.gears.factory.create(G.StorageEngineGears.GEARS);F.open(window.location.host+"-"+G.StorageEngineGears.DATABASE);F.execute("CREATE TABLE IF NOT EXISTS "+C+" (key TEXT, location TEXT, value TEXT)");}var K=G.StorageManager.LOCATION_SESSION===O._location,H=G.Cookie.get("sessionKey"+G.StorageEngineGears.ENGINE_NAME);if(!H){F.execute("BEGIN");F.execute("DELETE FROM "+C+' WHERE location="'+E(G.StorageManager.LOCATION_SESSION)+'"');F.execute("COMMIT");}var J=F.execute("SELECT key FROM "+C+' WHERE location="'+E(O._location)+'"'),N={};try{while(J.isValidRow()){var M=A(J.field(0));if(!N[M]){N[M]=true;O._addKey(M);}J.next();}}finally{J.close();}if(K){G.Cookie.set("sessionKey"+G.StorageEngineGears.ENGINE_NAME,true);}O.length=O._keys.length;B.later(250,O,function(){O.fireEvent(O.CE_READY);});};B.extend(G.StorageEngineGears,G.StorageEngineKeyed,{_clear:function(){F.execute("BEGIN");F.execute("DELETE FROM "+C+' WHERE location="'+E(this._location)+'"');F.execute("COMMIT");this._keys=[];this.length=0;},_getItem:function(J){var I=F.execute("SELECT value FROM "+C+' WHERE key="'+E(J)+'" AND location="'+E(this._location)+'"'),K="";try{while(I.isValidRow()){var H=I.field(0);K+=I.field(0);I.next();}}finally{I.close();}return K?A(K):null;},_key:function(H){return this._keys[H];},_removeItem:function(H){F.execute("BEGIN");F.execute("DELETE FROM "+C+' WHERE key="'+E(H)+'" AND location="'+E(this._location)+'"');F.execute("COMMIT");this._removeKey(H);},_setItem:function(P,M){if(!this.hasKey(P)){this._addKey(P);}var H=E(P),Q=E(this._location),R=E(M),K=[],O=D-(H+Q).length;if(O<R.length){for(var N=0,L=R.length;N<L;N+=O){K.push(R.substr(N,O));}}else{K.push(R);}F.execute("BEGIN");F.execute("DELETE FROM "+C+' WHERE key="'+E(P)+'" AND location="'+E(this._location)+'"');for(var J=0,I=K.length;J<I;J+=1){F.execute("INSERT INTO "+C+' VALUES ("'+H+'", "'+Q+'", "'+K[J]+'")');}F.execute("COMMIT");return true;}});G.Event.on("unload",function(){if(F){F.close();}});G.StorageEngineGears.ENGINE_NAME="gears";G.StorageEngineGears.GEARS="beta.database";G.StorageEngineGears.DATABASE="yui.database";G.StorageEngineGears.isAvailable=function(){if(window.google&&window.google.gears){try{google.gears.factory.create(G.StorageEngineGears.GEARS);return true;}catch(H){}}return false;};G.StorageManager.register(G.StorageEngineGears);}());(function(){var G=YAHOO.util,B=YAHOO.lang,H=G.Dom,C=215,E=138,F=null,D=function(J,I){return J._location+J.DELIMITER+I;},A=function(J){if(!F){if(!B.isString(J.swfURL)){J.swfURL=G.StorageEngineSWF.SWFURL;}if(!J.containerID){var K=document.getElementsByTagName("body")[0],I=K.appendChild(document.createElement("div"));J.containerID=H.generateId(I);}if(!J.attributes){J.attributes={};}if(!J.attributes.flashVars){J.attributes.flashVars={};}J.attributes.flashVars.useCompression="true";J.attributes.version=9.115;F=new YAHOO.widget.SWF(J.containerID,J.swfURL,J.attributes);}};G.StorageEngineSWF=function(I,J){var K=this;G.StorageEngineSWF.superclass.constructor.call(K,I,G.StorageEngineSWF.ENGINE_NAME,J);A(K._cfg);F.unsubscribe("contentReady");F.addListener("contentReady",function(){K._swf=F._swf;F.initialized=true;var N=G.StorageManager.LOCATION_SESSION===K._location,M=G.Cookie.get("sessionKey"+G.StorageEngineSWF.ENGINE_NAME);for(var P=F.callSWF("getLength",[])-1;0<=P;P-=1){var O=F.callSWF("getNameAt",[P]),L=-1<O.indexOf(G.StorageManager.LOCATION_SESSION+K.DELIMITER);if(N&&!M){F.callSWF("removeItem",[O]);}else{if(N===L){K._addKey(O);}}}if(N){G.Cookie.set("sessionKey"+G.StorageEngineSWF.ENGINE_NAME,true);}K.length=K._keys.length;K.fireEvent(K.CE_READY);});if(F.initialized){F.fireEvent("contentReady");}};B.extend(G.StorageEngineSWF,G.StorageEngineKeyed,{_swf:null,_clear:function(){for(var J=this._keys.length-1;0<=J;J-=1){var I=this._keys[J];F.callSWF("removeItem",[I]);}this._keys=[];this.length=0;},_getItem:function(I){var J=D(this,I);return F.callSWF("getValueOf",[J]);},_key:function(I){return(this._keys[I]||"").replace(/^.*?__/,"");},_removeItem:function(I){var J=D(this,I);F.callSWF("removeItem",[J]);this._removeKey(J);},_setItem:function(I,K){var J=D(this,I),L;if(F.callSWF("getValueOf",[J])){this._removeItem(I);}this._addKey(J);if(F.callSWF("setItem",[J,K])){return true;}else{L=H.get(F._id);if(C>H.getStyle(L,"width").replace(/\D+/g,"")){H.setStyle(L,"width",C+"px");}if(E>H.getStyle(L,"height").replace(/\D+/g,"")){H.setStyle(L,"height",E+"px");}return F.callSWF("displaySettings",[]);}}});G.StorageEngineSWF.SWFURL="swfstore.swf";G.StorageEngineSWF.ENGINE_NAME="swf";G.StorageEngineSWF.isAvailable=function(){return(6<=YAHOO.env.ua.flash&&YAHOO.widget.SWF);};G.StorageManager.register(G.StorageEngineSWF);}());YAHOO.register("storage",YAHOO.util.Storage,{version:"2.8.0r4",build:"2449"});
\ No newline at end of file
diff --git a/koha-tmpl/intranet-tmpl/prog/en/lib/yui/storage/storage.js b/koha-tmpl/intranet-tmpl/prog/en/lib/yui/storage/storage.js
deleted file mode 100644 (file)
index bebcb8b..0000000
+++ /dev/null
@@ -1,1183 +0,0 @@
-/*
-Copyright (c) 2009, Yahoo! Inc. All rights reserved.
-Code licensed under the BSD License:
-http://developer.yahoo.net/yui/license.txt
-version: 2.8.0r4
-*/
-/**
- * The Storage module manages client-side data storage.
- * @module Storage
- */
-
-(function() {
-
-       // internal shorthand
-var Y = YAHOO,
-       YU = Y.util,
-       YL = Y.lang,
-       _logOverwriteError;
-
-if (! YU.Storage) {
-       _logOverwriteError = function(fxName) {
-               Y.log('Exception in YAHOO.util.Storage.?? - must be extended by a storage engine'.replace('??', fxName).replace('??', this.getName ? this.getName() : 'Unknown'), 'error');
-       };
-
-       /**
-        * The Storage class is an HTML 5 storage API clone, used to wrap individual storage implementations with a common API.
-        * @class Storage
-        * @namespace YAHOO.util
-        * @constructor
-        * @param location {String} Required. The storage location.
-        * @parm name {String} Required. The engine name.
-        * @param conf {Object} Required. A configuration object.
-        */
-       YU.Storage = function(location, name, conf) {
-               var that = this;
-               Y.env._id_counter += 1;
-
-               // protected variables
-               that._cfg = YL.isObject(conf) ? conf : {};
-               that._location = location;
-               that._name = name;
-               that.isReady = false;
-
-               // public variables
-               that.createEvent(that.CE_READY, {scope: that});
-               that.createEvent(that.CE_CHANGE, {scope: that});
-               
-               that.subscribe(that.CE_READY, function() {
-                       that.isReady = true;
-               });
-       };
-
-       YU.Storage.prototype = {
-
-               /**
-                * The event name for when the storage item is ready.
-                * @property CE_READY
-                * @type {String}
-                * @public
-                */
-               CE_READY: 'YUIStorageReady',
-
-               /**
-                * The event name for when the storage item has changed.
-                * @property CE_CHANGE
-                * @type {String}
-                * @public
-                */
-               CE_CHANGE: 'YUIStorageChange',
-
-               /**
-                * The delimiter uesed between the data type and the data.
-                * @property DELIMITER
-                * @type {String}
-                * @public
-                */
-               DELIMITER: '__',
-
-               /**
-                * The configuration of the engine.
-                * @property _cfg
-                * @type {Object}
-                * @protected
-                */
-               _cfg: '',
-
-               /**
-                * The name of this engine.
-                * @property _name
-                * @type {String}
-                * @protected
-                */
-               _name: '',
-
-               /**
-                * The location for this instance.
-                * @property _location
-                * @type {String}
-                * @protected
-                */
-               _location: '',
-
-               /**
-                * The current length of the keys.
-                * @property length
-                * @type {Number}
-                * @public
-                */
-               length: 0,
-
-               /**
-                * This engine singleton has been initialized already.
-                * @property isReady
-                * @type {String}
-                * @protected
-                */
-               isReady: false,
-
-               /**
-                * Clears any existing key/value pairs.
-                * @method clear
-                * @public
-                */
-               clear: function() {
-                       this._clear();
-                       this.length = 0;
-               },
-
-               /**
-                * Fetches the data stored and the provided key.
-                * @method getItem
-                * @param key {String} Required. The key used to reference this value (DOMString in HTML 5 spec).
-                * @return {String|NULL} The value stored at the provided key (DOMString in HTML 5 spec).
-                * @public
-                */
-               getItem: function(key) {
-                       Y.log("Fetching item at  " + key);
-                       var item = this._getItem(key);
-                       return YL.isValue(item) ? this._getValue(item) : null; // required by HTML 5 spec
-               },
-
-               /**
-                * Fetches the storage object's name; should be overwritten by storage engine.
-                * @method getName
-                * @return {String} The name of the data storage object.
-                * @public
-                */
-               getName: function() {return this._name;},
-
-               /**
-                * Tests if the key has been set (not in HTML 5 spec); should be overwritten by storage engine.
-                * @method hasKey
-                * @param key {String} Required. The key to search for.
-                * @return {Boolean} True when key has been set.
-                * @public
-                */
-               hasKey: function(key) {
-                       return YL.isString(key) && this._hasKey(key);
-               },
-
-               /**
-                * Retrieve the key stored at the provided index; should be overwritten by storage engine.
-                * @method key
-                * @param index {Number} Required. The index to retrieve (unsigned long in HTML 5 spec).
-                * @return {String} Required. The key at the provided index (DOMString in HTML 5 spec).
-                * @public
-                */
-               key: function(index) {
-                       Y.log("Fetching key at " + index);
-
-                       if (YL.isNumber(index) && -1 < index && this.length > index) {
-                               var value = this._key(index);
-                               if (value) {return value;}
-                       }
-
-                       // this is thrown according to the HTML5 spec
-                       throw('INDEX_SIZE_ERR - Storage.setItem - The provided index (' + index + ') is not available');
-               },
-
-               /**
-                * Remove an item from the data storage.
-                * @method setItem
-                * @param key {String} Required. The key to remove (DOMString in HTML 5 spec).
-                * @public
-                */
-               removeItem: function(key) {
-                       Y.log("removing " + key);
-                       
-                       if (this.hasKey(key)) {
-                var oldValue = this._getItem(key);
-                if (! oldValue) {oldValue = null;}
-                this._removeItem(key);
-                               this.fireEvent(this.CE_CHANGE, new YU.StorageEvent(this, key, oldValue, null, YU.StorageEvent.TYPE_REMOVE_ITEM));
-                       }
-                       else {
-                               // HTML 5 spec says to do nothing
-                       }
-               },
-
-               /**
-                * Adds an item to the data storage.
-                * @method setItem
-                * @param key {String} Required. The key used to reference this value (DOMString in HTML 5 spec).
-                * @param data {Object} Required. The data to store at key (DOMString in HTML 5 spec).
-                * @public
-                * @throws QUOTA_EXCEEDED_ERROR
-                */
-               setItem: function(key, data) {
-                       Y.log("SETTING " + data + " to " + key);
-                       
-                       if (YL.isString(key)) {
-                               var eventType = this.hasKey(key) ? YU.StorageEvent.TYPE_UPDATE_ITEM : YU.StorageEvent.TYPE_ADD_ITEM,
-                                       oldValue = this._getItem(key);
-                               if (! oldValue) {oldValue = null;}
-
-                               if (this._setItem(key, this._createValue(data))) {
-                                       this.fireEvent(this.CE_CHANGE, new YU.StorageEvent(this, key, oldValue, data, eventType));
-                               }
-                               else {
-                                       // this is thrown according to the HTML5 spec
-                                       throw('QUOTA_EXCEEDED_ERROR - Storage.setItem - The choosen storage method (' +
-                                                 this.getName() + ') has exceeded capacity');
-                               }
-                       }
-                       else {
-                               // HTML 5 spec says to do nothing
-                       }
-               },
-
-               /**
-                * Implementation of the clear login; should be overwritten by storage engine.
-                * @method _clear
-                * @protected
-                */
-               _clear: function() {
-                       _logOverwriteError('_clear');
-                       return '';
-               },
-
-               /**
-                * Converts the object into a string, with meta data (type), so it can be restored later.
-                * @method _createValue
-                * @param s {Object} Required. An object to store.
-                * @protected
-                */
-               _createValue: function(s) {
-                       var type = (YL.isNull(s) || YL.isUndefined(s)) ? ('' + s) : typeof s;
-                       return 'string' === type ? s : type + this.DELIMITER + s;
-               },
-
-               /**
-                * Implementation of the getItem login; should be overwritten by storage engine.
-                * @method _getItem
-                * @param key {String} Required. The key used to reference this value.
-                * @return {String|NULL} The value stored at the provided key.
-                * @protected
-                */
-               _getItem: function(key) {
-                       _logOverwriteError('_getItem');
-                       return '';
-               },
-
-               /**
-                * Converts the stored value into its appropriate type.
-                * @method _getValue
-                * @param s {String} Required. The stored value.
-                * @protected
-                */
-               _getValue: function(s) {
-                       var a = s ? s.split(this.DELIMITER) : [];
-                       if (1 == a.length) {return s;}
-
-                       switch (a[0]) {
-                               case 'boolean': return 'true' === a[1];
-                               case 'number': return parseFloat(a[1]);
-                               case 'null': return null;
-                               default: return a[1];
-                       }
-               },
-
-               /**
-                * Implementation of the key logic; should be overwritten by storage engine.
-                * @method _key
-                * @param index {Number} Required. The index to retrieve (unsigned long in HTML 5 spec).
-                * @return {String|NULL} Required. The key at the provided index (DOMString in HTML 5 spec).
-                * @protected
-                */
-               _key: function(index) {
-                       _logOverwriteError('_key');
-                       return '';
-               },
-
-               /*
-                * Implementation to fetch evaluate the existence of a key.
-                * @see YAHOO.util.Storage._hasKey
-                */
-               _hasKey: function(key) {
-                       return null !== this._getItem(key);
-               },
-
-               /**
-                * Implementation of the removeItem login; should be overwritten by storage engine.
-                * @method _removeItem
-                * @param key {String} Required. The key to remove.
-                * @protected
-                */
-               _removeItem: function(key) {
-                       _logOverwriteError('_removeItem');
-                       return '';
-               },
-
-               /**
-                * Implementation of the setItem login; should be overwritten by storage engine.
-                * @method _setItem
-                * @param key {String} Required. The key used to reference this value.
-                * @param data {Object} Required. The data to storage at key.
-                * @return {Boolean} True when successful, false when size QUOTA exceeded.
-                * @protected
-                */
-               _setItem: function(key, data) {
-                       _logOverwriteError('_setItem');
-                       return '';
-               }
-       };
-
-       YL.augmentProto(YU.Storage, YU.EventProvider);
-}
-
-}());
-/**
- * The StorageManager class is a singleton that registers DataStorage objects and returns instances of those objects.
- * @class StorageManager
- * @namespace YAHOO.util
- * @static
- */
-(function() {
-       // internal shorthand
-var Y = YAHOO.util,
-       YL = YAHOO.lang,
-
-       // private variables
-       _locationEngineMap = {}, // cached engines
-       _registeredEngineSet = [], // set of available engines
-       _registeredEngineMap = {}, // map of available engines
-       
-       /**
-        * Fetches a storage constructor if it is available, otherwise returns NULL.
-        * @method _getClass
-        * @param klass {Function} Required. The storage constructor to test.
-        * @return {Function} An available storage constructor or NULL.
-        * @private
-        */
-       _getClass = function(klass) {
-               return (klass && klass.isAvailable()) ? klass : null;
-       },
-
-       /**
-        * Fetches the storage engine from the cache, or creates and caches it.
-        * @method _getStorageEngine
-        * @param location {String} Required. The location to store.
-        * @param klass {Function} Required. A pointer to the engineType Class.
-        * @param conf {Object} Optional. Additional configuration for the data source engine.
-        * @private
-        */
-       _getStorageEngine = function(location, klass, conf) {
-               var engine = _locationEngineMap[location + klass.ENGINE_NAME];
-
-               if (! engine) {
-                       engine = new klass(location, conf);
-                       _locationEngineMap[location + klass.ENGINE_NAME] = engine;
-               }
-
-               return engine;
-       },
-
-       /**
-        * Ensures that the location is valid before returning it or a default value.
-        * @method _getValidLocation
-        * @param location {String} Required. The location to evaluate.
-        * @private
-        */
-       _getValidLocation = function(location) {
-               switch (location) {
-                       case Y.StorageManager.LOCATION_LOCAL:
-                       case Y.StorageManager.LOCATION_SESSION:
-                               return location;
-
-                       default: return Y.StorageManager.LOCATION_SESSION;
-               }
-       };
-
-       // public namespace
-       Y.StorageManager = {
-
-        /**
-         * The storage location - session; data cleared at the end of a user's session.
-         * @property LOCATION_SESSION
-         * @type {String}
-         * @static
-         */
-               LOCATION_SESSION: 'sessionStorage',
-
-        /**
-         * The storage location - local; data cleared on demand.
-         * @property LOCATION_LOCAL
-         * @type {String}
-         * @static
-         */
-               LOCATION_LOCAL: 'localStorage',
-
-               /**
-                * Fetches the desired engine type or first available engine type.
-                * @method get
-                * @param engineType {String} Optional. The engine type, see engines.
-                * @param location {String} Optional. The storage location - LOCATION_SESSION & LOCATION_LOCAL; default is LOCAL.
-                * @param conf {Object} Optional. Additional configuration for the getting the storage engine.
-                * {
-                *      engine: {Object} configuration parameters for the desired engine
-                *      order: {Array} an array of storage engine names; the desired order to try engines}
-                * }
-                * @static
-                */
-               get: function(engineType, location, conf) {
-                       var _cfg = YL.isObject(conf) ? conf : {},
-                               klass = _getClass(_registeredEngineMap[engineType]);
-
-                       if (! klass && ! _cfg.force) {
-                               var i, j;
-
-                               if (_cfg.order) {
-                                       j = _cfg.order.length;
-
-                                       for (i = 0; i < j && ! klass; i += 1) {
-                                               klass = _getClass(_cfg.order[i]);
-                                       }
-                               }
-
-                               if (! klass) {
-                                       j = _registeredEngineSet.length;
-
-                                       for (i = 0; i < j && ! klass; i += 1) {
-                                               klass = _getClass(_registeredEngineSet[i]);
-                                       }
-                               }
-                       }
-
-                       if (klass) {
-                               return _getStorageEngine(_getValidLocation(location), klass, _cfg.engine);
-                       }
-
-                       throw('YAHOO.util.StorageManager.get - No engine available, please include an engine before calling this function.');
-               },
-
-        /*
-         * Estimates the size of the string using 1 byte for each alpha-numeric character and 3 for each non-alpha-numeric character.
-         * @method getByteSize
-         * @param s {String} Required. The string to evaulate.
-         * @return {Number} The estimated string size.
-         * @private
-         */
-        getByteSize: function(s) {
-                       return encodeURIComponent('' + s).length;
-        },
-
-               /**
-                * Registers a engineType Class with the StorageManager singleton; first in is the first out.
-                * @method register
-                * @param engineConstructor {Function} Required. The engine constructor function, see engines.
-                * @return {Boolean} When successfully registered.
-                * @static
-                */
-               register: function(engineConstructor) {
-                       if (YL.isFunction(engineConstructor) && YL.isFunction(engineConstructor.isAvailable) && YL.isString(engineConstructor.ENGINE_NAME)) {
-                               _registeredEngineMap[engineConstructor.ENGINE_NAME] = engineConstructor;
-                               _registeredEngineSet.push(engineConstructor);
-                               return true;
-                       }
-
-                       return false;
-               }
-       };
-
-       YAHOO.register("StorageManager", Y.SWFStore, {version: "2.8.0r4", build: "2449"});
-}());
-(function() {
-
-/**
- * The StorageEvent class manages the storage events by emulating the HTML 5 implementation.
- * @namespace YAHOO.util
- * @class StorageEvent
- * @constructor
- * @param storageArea {Object} Required. The Storage object that was affected.
- * @param key {String} Required. The key being changed; DOMString in HTML 5 spec.
- * @param oldValue {String} Required. The old value of the key being changed; DOMString in HTML 5 spec.
- * @param newValue {String} Required. The new value of the key being changed; DOMString in HTML 5 spec.
- * @param type {String} Required. The storage event type.
- */
-YAHOO.util.StorageEvent = function(storageArea, key, oldValue, newValue, type) {
-       this.key = key;
-       this.oldValue = oldValue;
-       this.newValue = newValue;
-       this.url = window.location.href;
-       this.window = window; // todo: think about the CAJA and innocent code
-       this.storageArea = storageArea;
-       this.type = type;
-};
-
-YAHOO.lang.augmentObject(YAHOO.util.StorageEvent, {
-       TYPE_ADD_ITEM: 'addItem',
-       TYPE_REMOVE_ITEM: 'removeItem',
-       TYPE_UPDATE_ITEM: 'updateItem'
-});
-
-YAHOO.util.StorageEvent.prototype = {
-
-    /**
-     * The 'key' attribute represents the key being changed.
-     * @property key
-     * @type {String}
-     * @static
-     * @readonly
-     */
-    key: null,
-
-    /**
-     * The 'newValue' attribute represents the new value of the key being changed.
-     * @property newValue
-     * @type {String}
-     * @static
-     * @readonly
-     */
-    newValue: null,
-
-    /**
-     * The 'oldValue' attribute represents the old value of the key being changed.
-     * @property oldValue
-     * @type {String}
-     * @static
-     * @readonly
-     */
-    oldValue: null,
-
-    /**
-     * The 'source' attribute represents the WindowProxy object of the browsing context of the document whose key changed.
-     * @property source
-     * @type {Object}
-     * @static
-     * @readonly
-     */
-    source: null,
-
-    /**
-     * The 'storageArea' attribute represents the Storage object that was affected.
-     * @property storageArea
-     * @type {Object}
-     * @static
-     * @readonly
-     */
-    storageArea: null,
-
-    /**
-     * The 'type' attribute represents the Storage event type.
-     * @property type
-     * @type {Object}
-     * @static
-     * @readonly
-     */
-    type: null,
-
-    /**
-     * The 'url' attribute represents the address of the document whose key changed.
-     * @property url
-     * @type {String}
-     * @static
-     * @readonly
-     */
-    url: null
-};
-       
-}());
-(function() {
-var Y = YAHOO.util,
-       YL = YAHOO.lang;
-
-       /**
-        * The StorageEngineKeyed class implements the interface necessary for managing keys.
-        * @namespace YAHOO.util
-        * @class StorageEngineKeyed
-        * @constructor
-        * @extend YAHOO.util.Storage
-        */
-       Y.StorageEngineKeyed = function() {
-               Y.StorageEngineKeyed.superclass.constructor.apply(this, arguments);
-               this._keys = [];
-               this._keyMap = {};
-       };
-
-       YL.extend(Y.StorageEngineKeyed, Y.Storage, {
-
-               /**
-                * A collection of keys applicable to the current location. This should never be edited by the developer.
-                * @property _keys
-                * @type {Array}
-                * @protected
-                */
-               _keys: null,
-
-               /**
-                * A map of keys to their applicable position in keys array. This should never be edited by the developer.
-                * @property _keyMap
-                * @type {Object}
-                * @protected
-                */
-               _keyMap: null,
-
-               /**
-                * Adds the key to the set.
-                * @method _addKey
-                * @param key {String} Required. The key to evaluate.
-                * @protected
-                */
-               _addKey: function(key) {
-                       this._keyMap[key] = this.length;
-                       this._keys.push(key);
-                       this.length = this._keys.length;
-               },
-
-               /**
-                * Evaluates if a key exists in the keys array; indexOf does not work in all flavors of IE.
-                * @method _indexOfKey
-                * @param key {String} Required. The key to evaluate.
-                * @protected
-                */
-               _indexOfKey: function(key) {
-                       var i = this._keyMap[key];
-                       return undefined === i ? -1 : i;
-               },
-
-               /**
-                * Removes a key from the keys array.
-                * @method _removeKey
-                * @param key {String} Required. The key to remove.
-                * @protected
-                */
-               _removeKey: function(key) {
-                       var j = this._indexOfKey(key),
-                               rest = this._keys.slice(j + 1);
-
-                       delete this._keyMap[key];
-
-                       for (var k in this._keyMap) {
-                               if (j < this._keyMap[k]) {
-                                       this._keyMap[k] -= 1;
-                               }
-                       }
-                       
-                       this._keys.length = j;
-                       this._keys = this._keys.concat(rest);
-                       this.length = this._keys.length;
-               }
-       });
-}());
-/*
- * HTML limitations:
- *  - 5MB in FF and Safari, 10MB in IE 8
- *  - only FF 3.5 recovers session storage after a browser crash
- *
- * Thoughts:
- *  - how can we not use cookies to handle session
- */
-(function() {
-       // internal shorthand
-var Y = YAHOO.util,
-       YL = YAHOO.lang,
-
-       /*
-        * Required for IE 8 to make synchronous.
-        */
-       _beginTransaction = function(engine) {
-               if (engine.begin) {engine.begin();}
-       },
-
-       /*
-        * Required for IE 8 to make synchronous.
-        */
-       _commitTransaction = function(engine) {
-               if (engine.commit) {engine.commit();}
-       };
-
-       /**
-        * The StorageEngineHTML5 class implements the HTML5 storage engine.
-        * @namespace YAHOO.util
-        * @class StorageEngineHTML5
-        * @constructor
-        * @extend YAHOO.util.Storage
-        * @param location {String} Required. The storage location.
-        * @param conf {Object} Required. A configuration object.
-        */
-       Y.StorageEngineHTML5 = function(location, conf) {
-               var _this = this;
-               Y.StorageEngineHTML5.superclass.constructor.call(_this, location, Y.StorageEngineHTML5.ENGINE_NAME, conf);// not set, are cookies available
-               _this._engine = window[location];
-               _this.length = _this._engine.length;
-               YL.later(250, _this, function() { // temporary solution so that CE_READY can be subscribed to after this object is created
-                       _this.fireEvent(_this.CE_READY);
-               });
-       };
-
-       YAHOO.lang.extend(Y.StorageEngineHTML5, Y.Storage, {
-
-               _engine: null,
-
-               /*
-                * Implementation to clear the values from the storage engine.
-                * @see YAHOO.util.Storage._clear
-                */
-               _clear: function() {
-                       var _this = this;
-                       if (_this._engine.clear) {
-                               _this._engine.clear();
-                       }
-                       // for FF 3, fixed in FF 3.5
-                       else {
-                               for (var i = _this.length, key; 0 <= i; i -= 1) {
-                                       key = _this._key(i);
-                                       _this._removeItem(key);
-                               }
-                       }
-               },
-
-               /*
-                * Implementation to fetch an item from the storage engine.
-                * @see YAHOO.util.Storage._getItem
-                */
-               _getItem: function(key) {
-                       var o = this._engine.getItem(key);
-                       return YL.isObject(o) ? o.value : o; // for FF 3, fixed in FF 3.5
-               },
-
-               /*
-                * Implementation to fetch a key from the storage engine.
-                * @see YAHOO.util.Storage._key
-                */
-               _key: function(index) {return this._engine.key(index);},
-
-               /*
-                * Implementation to remove an item from the storage engine.
-                * @see YAHOO.util.Storage._removeItem
-                */
-               _removeItem: function(key) {
-                       var _this = this;
-                       _beginTransaction(_this._engine);
-                       _this._engine.removeItem(key);
-                       _commitTransaction(_this._engine);
-                       _this.length = _this._engine.length;
-               },
-
-               /*
-                * Implementation to remove an item from the storage engine.
-                * @see YAHOO.util.Storage._setItem
-                */
-               _setItem: function(key, value) {
-                       var _this = this;
-                       
-                       try {
-                               _beginTransaction(_this._engine);
-                               _this._engine.setItem(key, value);
-                               _commitTransaction(_this._engine);
-                               _this.length = _this._engine.length;
-                               return true;
-                       }
-                       catch (e) {
-                               return false;
-                       }
-               }
-       }, true);
-
-       Y.StorageEngineHTML5.ENGINE_NAME = 'html5';
-       Y.StorageEngineHTML5.isAvailable = function() {
-               return window.localStorage;
-       };
-    Y.StorageManager.register(Y.StorageEngineHTML5);
-}());
-/*
- * Gears limitation:
- *  - SQLite limitations - http://www.sqlite.org/limits.html
- *  - DB Best Practices - http://code.google.com/apis/gears/gears_faq.html#bestPracticeDB
- *     - the user must approve before gears can be used
- *  - each SQL query has a limited number of characters (9948 bytes), data will need to be spread across rows
- *  - no query should insert or update more than 9948 bytes of data in a single statement or GEARs will throw:
- *     [Exception... "'Error: SQL statement is too long.' when calling method: [nsIDOMEventListener::handleEvent]" nsresult: "0x8057001c (NS_ERROR_XPC_JS_THREW_JS_OBJECT)" location: "<unknown>" data: no]
- *
- * Thoughts:
- *  - we may want to implement additional functions for the gears only implementation
- *  - how can we not use cookies to handle session location
- */
-(function() {
-       // internal shorthand
-var Y = YAHOO.util,
-       YL = YAHOO.lang,
-       _SQL_STMT_LIMIT = 9948,
-       _TABLE_NAME = 'YUIStorageEngine',
-
-       // local variables
-       _engine = null,
-
-       eURI = encodeURIComponent,
-       dURI = decodeURIComponent;
-
-       /**
-        * The StorageEngineGears class implements the Google Gears storage engine.
-        * @namespace YAHOO.util
-        * @class StorageEngineGears
-        * @constructor
-        * @extend YAHOO.util.Storage
-        * @param location {String} Required. The storage location.
-        * @param conf {Object} Required. A configuration object.
-        */
-       Y.StorageEngineGears = function(location, conf) {
-               var _this = this;
-               Y.StorageEngineGears.superclass.constructor.call(_this, location, Y.StorageEngineGears.ENGINE_NAME, conf);
-
-               if (! _engine) {
-                       // create the database
-                       _engine = google.gears.factory.create(Y.StorageEngineGears.GEARS);
-                       _engine.open(window.location.host + '-' + Y.StorageEngineGears.DATABASE);
-                       _engine.execute('CREATE TABLE IF NOT EXISTS ' + _TABLE_NAME + ' (key TEXT, location TEXT, value TEXT)');
-               }
-
-               var isSessionStorage = Y.StorageManager.LOCATION_SESSION === _this._location,
-                       sessionKey = Y.Cookie.get('sessionKey' + Y.StorageEngineGears.ENGINE_NAME);
-
-               if (! sessionKey) {
-                       _engine.execute('BEGIN');
-                       _engine.execute('DELETE FROM ' + _TABLE_NAME + ' WHERE location="' + eURI(Y.StorageManager.LOCATION_SESSION) + '"');
-                       _engine.execute('COMMIT');
-               }
-
-               var rs = _engine.execute('SELECT key FROM ' + _TABLE_NAME + ' WHERE location="' + eURI(_this._location) + '"'),
-                       keyMap = {};
-       
-               try {
-                       // iterate on the rows and map the keys
-                       while (rs.isValidRow()) {
-                               var fld = dURI(rs.field(0));
-
-                               if (! keyMap[fld]) {
-                                       keyMap[fld] = true;
-                                       _this._addKey(fld);
-                               }
-
-                               rs.next();
-                       }
-               }
-               finally {
-                       rs.close();
-               }
-
-               // this is session storage, ensure that the session key is set
-               if (isSessionStorage) {
-                       Y.Cookie.set('sessionKey' + Y.StorageEngineGears.ENGINE_NAME, true);
-               }
-
-               _this.length = _this._keys.length;
-               YL.later(250, _this, function() { // temporary solution so that CE_READY can be subscribed to after this object is created
-                       _this.fireEvent(_this.CE_READY);
-               });
-       };
-
-       YL.extend(Y.StorageEngineGears, Y.StorageEngineKeyed, {
-
-               /*
-                * Implementation to clear the values from the storage engine.
-                * @see YAHOO.util.Storage._clear
-                */
-               _clear: function() {
-                       _engine.execute('BEGIN');
-                       _engine.execute('DELETE FROM ' + _TABLE_NAME + ' WHERE location="' + eURI(this._location) + '"');
-                       _engine.execute('COMMIT');
-                       this._keys = [];
-                       this.length = 0;
-               },
-
-               /*
-                * Implementation to fetch an item from the storage engine.
-                * @see YAHOO.util.Storage._getItem
-                */
-               _getItem: function(key) {
-                       var rs = _engine.execute('SELECT value FROM ' + _TABLE_NAME + ' WHERE key="' + eURI(key) + '" AND location="' + eURI(this._location) + '"'),
-                               value = '';
-
-                       try {
-                               while (rs.isValidRow()) {
-                                       var temp = rs.field(0);
-                                       value += rs.field(0);
-                                       rs.next();
-                               }
-                       }
-                       finally {
-                               rs.close();
-                       }
-
-                       return value ? dURI(value) : null;
-               },
-
-               /*
-                * Implementation to fetch a key from the storage engine.
-                * @see YAHOO.util.Storage.key
-                */
-               _key: function(index) {return this._keys[index];},
-
-               /*
-                * Implementation to remove an item from the storage engine.
-                * @see YAHOO.util.Storage._removeItem
-                */
-               _removeItem: function(key) {
-                       _engine.execute('BEGIN');
-                       _engine.execute('DELETE FROM ' + _TABLE_NAME + ' WHERE key="' + eURI(key) + '" AND location="' + eURI(this._location) + '"');
-                       _engine.execute('COMMIT');
-                       this._removeKey(key);
-               },
-
-               /*
-                * Implementation to remove an item from the storage engine.
-                * @see YAHOO.util.Storage._setItem
-                */
-               _setItem: function(key, data) {
-
-                       if (! this.hasKey(key)) {
-                               this._addKey(key);
-                       }
-
-                       var _key = eURI(key),
-                               _location = eURI(this._location),
-                               _value = eURI(data),
-                               _values = [],
-                               _len = _SQL_STMT_LIMIT - (_key + _location).length;
-
-                       // the length of the value exceeds the available space
-                       if (_len < _value.length) {
-                               for (var i = 0, j = _value.length; i < j; i += _len) {
-                                       _values.push(_value.substr(i, _len));
-                               }
-                       }
-                       else {
-                               _values.push(_value);
-                       }
-
-                       // Google recommends using INSERT instead of update, because it is faster
-                       _engine.execute('BEGIN');
-                       _engine.execute('DELETE FROM ' + _TABLE_NAME + ' WHERE key="' + eURI(key) + '" AND location="' + eURI(this._location) + '"');
-                       for (var m = 0, n = _values.length; m < n; m += 1) {
-                               _engine.execute('INSERT INTO ' + _TABLE_NAME + ' VALUES ("' + _key + '", "' + _location + '", "' + _values[m] + '")');
-                       }
-                       _engine.execute('COMMIT');
-                       
-                       return true;
-               }
-       });
-
-       // releases the engine when the page unloads
-       Y.Event.on('unload', function() {
-               if (_engine) {_engine.close();}
-       });
-       Y.StorageEngineGears.ENGINE_NAME = 'gears';
-       Y.StorageEngineGears.GEARS = 'beta.database';
-       Y.StorageEngineGears.DATABASE = 'yui.database';
-       Y.StorageEngineGears.isAvailable = function() {
-               if (window.google && window.google.gears) {
-                       try {
-                               // this will throw an exception if the user denies gears
-                               google.gears.factory.create(Y.StorageEngineGears.GEARS);
-                               return true;
-                       }
-                       catch (e) {
-                               // no need to do anything
-                       }
-               }
-
-               return false;
-       };
-    Y.StorageManager.register(Y.StorageEngineGears);
-}());
-/*
- * SWF limitation:
- *  - only 100,000 bytes of data may be stored this way
- *  - data is publicly available on user machine
- *
- * Thoughts:
- *  - data can be shared across browsers
- *  - how can we not use cookies to handle session location
- */
-(function() {
-    // internal shorthand
-var Y = YAHOO.util,
-    YL = YAHOO.lang,
-    YD = Y.Dom,
-    
-    /*
-     * The minimum width required to be able to display the settings panel within the SWF.
-     */ 
-    MINIMUM_WIDTH = 215,
-
-    /*
-     * The minimum height required to be able to display the settings panel within the SWF.
-     */ 
-    MINIMUM_HEIGHT = 138,
-
-    // local variables
-    _engine = null,
-
-    /*
-     * Creates a location bound key.
-     */
-    _getKey = function(that, key) {
-        return that._location + that.DELIMITER + key;
-    },
-
-    /*
-     * Initializes the engine, if it isn't already initialized.
-     */
-    _initEngine = function(cfg) {
-        if (! _engine) {
-            if (! YL.isString(cfg.swfURL)) {cfg.swfURL = Y.StorageEngineSWF.SWFURL;}
-            if (! cfg.containerID) {
-                var bd = document.getElementsByTagName('body')[0],
-                    container = bd.appendChild(document.createElement('div'));
-                cfg.containerID = YD.generateId(container);
-            }
-
-            if (! cfg.attributes) {cfg.attributes  = {};}
-            if (! cfg.attributes.flashVars) {cfg.attributes.flashVars = {};}
-            cfg.attributes.flashVars.useCompression = 'true';
-            cfg.attributes.version = 9.115;
-            _engine = new YAHOO.widget.SWF(cfg.containerID, cfg.swfURL, cfg.attributes);
-        }
-    };
-
-    /**
-     * The StorageEngineSWF class implements the SWF storage engine.
-     * @namespace YAHOO.util
-     * @class StorageEngineSWF
-     * @uses YAHOO.widget.SWF
-     * @constructor
-     * @extend YAHOO.util.Storage
-     * @param location {String} Required. The storage location.
-     * @param conf {Object} Required. A configuration object.
-     */
-    Y.StorageEngineSWF = function(location, conf) {
-        var _this = this;
-        Y.StorageEngineSWF.superclass.constructor.call(_this, location, Y.StorageEngineSWF.ENGINE_NAME, conf);
-        
-        _initEngine(_this._cfg);
-
-        // evaluates when the SWF is loaded
-               _engine.unsubscribe('contentReady'); // prevents local and session content ready callbacks from firing, when switching between context
-        _engine.addListener("contentReady", function() {
-            _this._swf = _engine._swf;
-            _engine.initialized = true;
-                       
-                       var isSessionStorage = Y.StorageManager.LOCATION_SESSION === _this._location,
-                               sessionKey = Y.Cookie.get('sessionKey' + Y.StorageEngineSWF.ENGINE_NAME);
-
-            for (var i = _engine.callSWF("getLength", []) - 1; 0 <= i; i -= 1) {
-                var key = _engine.callSWF("getNameAt", [i]),
-                    isKeySessionStorage = -1 < key.indexOf(Y.StorageManager.LOCATION_SESSION + _this.DELIMITER);
-
-                // this is session storage, but the session key is not set, so remove item
-                if (isSessionStorage && ! sessionKey) {
-                    _engine.callSWF("removeItem", [key]);
-                }
-                // the key matches the storage type, add to key collection
-                else if (isSessionStorage === isKeySessionStorage) {
-                    _this._addKey(key);
-                }
-            }
-
-            // this is session storage, ensure that the session key is set
-            if (isSessionStorage) {
-                Y.Cookie.set('sessionKey' + Y.StorageEngineSWF.ENGINE_NAME, true);
-            }
-
-            _this.length = _this._keys.length;
-            _this.fireEvent(_this.CE_READY);
-        });
-        
-        // required for pages with both a session and local storage
-        if (_engine.initialized) {_engine.fireEvent('contentReady');}
-    };
-
-    YL.extend(Y.StorageEngineSWF, Y.StorageEngineKeyed, {
-        /**
-         * The underlying SWF of the engine, exposed so developers can modify the adapter behavior.
-         * @property _swf
-         * @type {Object}
-         * @protected
-         */
-        _swf: null,
-
-        /*
-         * Implementation to clear the values from the storage engine.
-         * @see YAHOO.util.Storage._clear
-         */
-        _clear: function() {
-            for (var i = this._keys.length - 1; 0 <= i; i -= 1) {
-                var key = this._keys[i];
-                _engine.callSWF("removeItem", [key]);
-            }
-
-            this._keys = [];
-            this.length = 0;
-        },
-
-        /*
-         * Implementation to fetch an item from the storage engine.
-         * @see YAHOO.util.Storage._getItem
-         */
-        _getItem: function(key) {
-            var _key = _getKey(this, key);
-            return _engine.callSWF("getValueOf", [_key]);
-        },
-
-        /*
-         * Implementation to fetch a key from the storage engine.
-         * @see YAHOO.util.Storage.key
-         */
-        _key: function(index) {
-            return (this._keys[index] || '').replace(/^.*?__/, '');
-        },
-
-        /*
-         * Implementation to remove an item from the storage engine.
-         * @see YAHOO.util.Storage._removeItem
-         */
-        _removeItem: function(key) {
-            var _key = _getKey(this, key);
-            _engine.callSWF("removeItem", [_key]);
-            this._removeKey(_key);
-        },
-
-        /*
-         * Implementation to remove an item from the storage engine.
-         * @see YAHOO.util.Storage._setItem
-         */
-        _setItem: function(key, data) {
-            var _key = _getKey(this, key), swfNode;
-
-            // setting the value returns false if the value didn't change,
-            // so I changed this to clear the key if it exists so that the
-            // fork below works.
-            if (_engine.callSWF("getValueOf", [_key])) {
-                this._removeItem(key);
-            }
-
-            this._addKey(_key);
-
-            if (_engine.callSWF("setItem", [_key, data])) {
-                return true;
-            } else {
-
-                // @TODO we should not assume that a false return means that
-                // the quota has been exceeded.  this dialog should only be
-                // displayed if the quotaExceededError event fired.
-                swfNode = YD.get(_engine._id);
-                if (MINIMUM_WIDTH > YD.getStyle(swfNode, 'width').replace(/\D+/g, '')) {
-                    YD.setStyle(swfNode, 'width', MINIMUM_WIDTH + 'px');
-                }
-                if (MINIMUM_HEIGHT > YD.getStyle(swfNode, 'height').replace(/\D+/g, '')) {
-                    YD.setStyle(swfNode, 'height', MINIMUM_HEIGHT + 'px');
-                }
-                return _engine.callSWF("displaySettings", []);
-            }
-        }
-    });
-
-    Y.StorageEngineSWF.SWFURL = "swfstore.swf";
-    Y.StorageEngineSWF.ENGINE_NAME = 'swf';
-    Y.StorageEngineSWF.isAvailable = function() {
-        return (6 <= YAHOO.env.ua.flash && YAHOO.widget.SWF);
-    };
-    Y.StorageManager.register(Y.StorageEngineSWF);
-}());
-YAHOO.register("storage", YAHOO.util.Storage, {version: "2.8.0r4", build: "2449"});
diff --git a/koha-tmpl/intranet-tmpl/prog/en/lib/yui/stylesheet/stylesheet-debug.js b/koha-tmpl/intranet-tmpl/prog/en/lib/yui/stylesheet/stylesheet-debug.js
deleted file mode 100644 (file)
index a3c68ab..0000000
+++ /dev/null
@@ -1,648 +0,0 @@
-/*
-Copyright (c) 2009, Yahoo! Inc. All rights reserved.
-Code licensed under the BSD License:
-http://developer.yahoo.net/yui/license.txt
-version: 2.8.0r4
-*/
-/**
- * The StyleSheet component is a utility for managing css rules at the
- * stylesheet level
- *
- * @module stylesheet
- * @namespace YAHOO.util
- * @requires yahoo
- * @beta
- */
-(function () {
-
-var d      = document,
-    p      = d.createElement('p'), // Have to hold the node (see notes)
-    workerStyle = p.style, // worker style collection
-    lang   = YAHOO.lang,
-    selectors = {},
-    sheets = {},
-    ssId   = 0,
-    floatAttr = ('cssFloat' in workerStyle) ? 'cssFloat' : 'styleFloat',
-    _toCssText,
-    _unsetOpacity,
-    _unsetProperty;
-
-/*
- * Normalizes the removal of an assigned style for opacity.  IE uses the filter property.
- */
-_unsetOpacity = ('opacity' in workerStyle) ?
-    function (style) { style.opacity = ''; } :
-    function (style) { style.filter = ''; };
-        
-/*
- * Normalizes the removal of an assigned style for a given property.  Expands
- * shortcut properties if necessary and handles the various names for the float property.
- */
-workerStyle.border = "1px solid red";
-workerStyle.border = ''; // IE doesn't unset child properties
-_unsetProperty = workerStyle.borderLeft ?
-    function (style,prop) {
-        var p;
-        if (prop !== floatAttr && prop.toLowerCase().indexOf('float') != -1) {
-            prop = floatAttr;
-        }
-        if (typeof style[prop] === 'string') {
-            switch (prop) {
-                case 'opacity':
-                case 'filter' : _unsetOpacity(style); break;
-                case 'font'   :
-                    style.font       = style.fontStyle = style.fontVariant =
-                    style.fontWeight = style.fontSize  = style.lineHeight  =
-                    style.fontFamily = '';
-                    break;
-                default       :
-                    for (p in style) {
-                        if (p.indexOf(prop) === 0) {
-                            style[p] = '';
-                        }
-                    }
-            }
-        }
-    } :
-    function (style,prop) {
-        if (prop !== floatAttr && prop.toLowerCase().indexOf('float') != -1) {
-            prop = floatAttr;
-        }
-        if (lang.isString(style[prop])) {
-            if (prop === 'opacity') {
-                _unsetOpacity(style);
-            } else {
-                style[prop] = '';
-            }
-        }
-    };
-    
-/**
- * Create an instance of YAHOO.util.StyleSheet to encapsulate a css stylesheet.
- * The constructor can be called using function or constructor syntax.
- * <pre><code>var sheet = YAHOO.util.StyleSheet(..);</pre></code>
- * or
- * <pre><code>var sheet = new YAHOO.util.StyleSheet(..);</pre></code>
- *
- * The first parameter passed can be any of the following things:
- * <ul>
- *   <li>The desired string name to register a new empty sheet</li>
- *   <li>The string name of an existing YAHOO.util.StyleSheet instance</li>
- *   <li>The unique yuiSSID generated for an existing YAHOO.util.StyleSheet instance</li>
- *   <li>The id of an existing <code>&lt;link&gt;</code> or <code>&lt;style&gt;</code> node</li>
- *   <li>The node reference for an existing <code>&lt;link&gt;</code> or <code>&lt;style&gt;</code> node</li>
- *   <li>A chunk of css text to create a new stylesheet from</li>
- * </ul>
- *
- * <p>If a string is passed, StyleSheet will first look in its static name
- * registry for an existing sheet, then in the DOM for an element with that id.
- * If neither are found and the string contains the { character, it will be
- * used as a the initial cssText for a new StyleSheet.  Otherwise, a new empty
- * StyleSheet is created, assigned the string value as a name, and registered
- * statically by that name.</p>
- *
- * <p>The optional second parameter is a string name to register the sheet as.
- * This param is largely useful when providing a node id/ref or chunk of css
- * text to create a populated instance.</p>
- * 
- * @class StyleSheet
- * @constructor
- * @param seed {String|HTMLElement} a style or link node, its id, or a name or
- *              yuiSSID of a StyleSheet, or a string of css text (see above)
- * @param name {String} OPTIONAL name to register instance for future static
- *              access
- */
-function StyleSheet(seed, name) {
-    var head,
-        node,
-        sheet,
-        cssRules = {},
-        _rules,
-        _insertRule,
-        _deleteRule,
-        i,r,sel;
-
-    // Factory or constructor
-    if (!(this instanceof StyleSheet)) {
-        return new StyleSheet(seed,name);
-    }
-
-    // capture the DOM node if the string is an id
-    node = seed && (seed.nodeName ? seed : d.getElementById(seed));
-
-    // Check for the StyleSheet in the static registry
-    if (seed && sheets[seed]) {
-        return sheets[seed];
-    } else if (node && node.yuiSSID && sheets[node.yuiSSID]) {
-        return sheets[node.yuiSSID];
-    }
-
-    // Create a style node if necessary
-    if (!node || !/^(?:style|link)$/i.test(node.nodeName)) {
-        node = d.createElement('style');
-        node.type = 'text/css';
-    }
-
-    if (lang.isString(seed)) {
-        // Create entire sheet from seed cssText
-        if (seed.indexOf('{') != -1) {
-            // Not a load-time fork because low run-time impact and IE fails
-            // test for s.styleSheet at page load time (oddly)
-            if (node.styleSheet) {
-                node.styleSheet.cssText = seed;
-            } else {
-                node.appendChild(d.createTextNode(seed));
-            }
-        } else if (!name) {
-            name = seed;
-        }
-    }
-
-    if (!node.parentNode || node.parentNode.nodeName.toLowerCase() !== 'head') {
-        head = (node.ownerDocument || d).getElementsByTagName('head')[0];
-        // styleSheet isn't available on the style node in FF2 until appended
-        // to the head element.  style nodes appended to body do not affect
-        // change in Safari.
-        head.appendChild(node);
-    }
-
-    // Begin setting up private aliases to the important moving parts
-    // 1. The stylesheet object
-    // IE stores StyleSheet under the "styleSheet" property
-    // Safari doesn't populate sheet for xdomain link elements
-    sheet = node.sheet || node.styleSheet;
-
-    // 2. The style rules collection
-    // IE stores the rules collection under the "rules" property
-    _rules = sheet && ('cssRules' in sheet) ? 'cssRules' : 'rules';
-
-    // 3. The method to remove a rule from the stylesheet
-    // IE supports removeRule
-    _deleteRule = ('deleteRule' in sheet) ?
-        function (i) { sheet.deleteRule(i); } :
-        function (i) { sheet.removeRule(i); };
-
-    // 4. The method to add a new rule to the stylesheet
-    // IE supports addRule with different signature
-    _insertRule = ('insertRule' in sheet) ?
-        function (sel,css,i) { sheet.insertRule(sel+' {'+css+'}',i); } :
-        function (sel,css,i) { sheet.addRule(sel,css,i); };
-
-    // 5. Initialize the cssRules map from the node
-    // xdomain link nodes forbid access to the cssRules collection, so this
-    // will throw an error.
-    // TODO: research alternate stylesheet, @media
-    for (i = sheet[_rules].length - 1; i >= 0; --i) {
-        r   = sheet[_rules][i];
-        sel = r.selectorText;
-
-        if (cssRules[sel]) {
-            cssRules[sel].style.cssText += ';' + r.style.cssText;
-            _deleteRule(i);
-        } else {
-            cssRules[sel] = r;
-        }
-    }
-
-    // Cache the instance by the generated Id
-    node.yuiSSID = 'yui-stylesheet-' + (ssId++);
-    StyleSheet.register(node.yuiSSID,this);
-
-    // Register the instance by name if provided or defaulted from seed
-    if (name) {
-        StyleSheet.register(name,this);
-    }
-
-    // Public API
-    lang.augmentObject(this,{
-        /**
-         * Get the unique yuiSSID for this StyleSheet instance
-         *
-         * @method getId
-         * @return {Number} the static id
-         */
-        getId : function () { return node.yuiSSID; },
-
-        /**
-         * The HTMLElement that this instance encapsulates
-         *
-         * @property node
-         * @type HTMLElement
-         */
-        node : node,
-
-        /**
-         * Enable all the rules in the sheet
-         *
-         * @method enable
-         * @return {StyleSheet} the instance
-         * @chainable
-         */
-        // Enabling/disabling the stylesheet.  Changes may be made to rules
-        // while disabled.
-        enable : function () { sheet.disabled = false; return this; },
-
-        /**
-         * Disable all the rules in the sheet.  Rules may be changed while the
-         * StyleSheet is disabled.
-         *
-         * @method disable
-         * @return {StyleSheet} the instance
-         * @chainable
-         */
-        disable : function () { sheet.disabled = true; return this; },
-
-        /**
-         * Returns boolean indicating whether the StyleSheet is enabled
-         *
-         * @method isEnabled
-         * @return {Boolean} is it enabled?
-         */
-        isEnabled : function () { return !sheet.disabled; },
-
-        /**
-         * <p>Set style properties for a provided selector string.
-         * If the selector includes commas, it will be split into individual
-         * selectors and applied accordingly.  If the selector string does not
-         * have a corresponding rule in the sheet, it will be added.</p>
-         *
-         * <p>The second parameter can be either a string of CSS text,
-         * formatted as CSS ("font-size: 10px;"), or an object collection of
-         * properties and their new values.  Object properties must be in
-         * JavaScript format ({ fontSize: "10px" }).</p>
-         *
-         * <p>The float style property will be set by any of &quot;float&quot;,
-         * &quot;styleFloat&quot;, or &quot;cssFloat&quot; if passed in the
-         * object map.  Use "float: left;" format when passing a CSS text
-         * string.</p>
-         *
-         * @method set
-         * @param sel {String} the selector string to apply the changes to
-         * @param css {Object|String} Object literal of style properties and
-         *                      new values, or a string of cssText
-         * @return {StyleSheet} the StyleSheet instance
-         * @chainable
-         */
-        set : function (sel,css) {
-            var rule = cssRules[sel],
-                multi = sel.split(/\s*,\s*/),i,
-                idx;
-
-            // IE's addRule doesn't support multiple comma delimited selectors
-            if (multi.length > 1) {
-                for (i = multi.length - 1; i >= 0; --i) {
-                    this.set(multi[i], css);
-                }
-                return this;
-            }
-
-            // Some selector values can cause IE to hang
-            if (!StyleSheet.isValidSelector(sel)) {
-                YAHOO.log("Invalid selector '"+sel+"' passed to set (ignoring).",'warn','StyleSheet');
-                return this;
-            }
-
-            // Opera throws an error if there's a syntax error in assigned
-            // cssText. Avoid this using a worker style collection, then
-            // assigning the resulting cssText.
-            if (rule) {
-                rule.style.cssText = StyleSheet.toCssText(css,rule.style.cssText);
-            } else {
-                idx = sheet[_rules].length;
-                css = StyleSheet.toCssText(css);
-
-                // IE throws an error when attempting to addRule(sel,'',n)
-                // which would crop up if no, or only invalid values are used
-                if (css) {
-                    _insertRule(sel, css, idx);
-
-                    // Safari replaces the rules collection, but maintains the
-                    // rule instances in the new collection when rules are
-                    // added/removed
-                    cssRules[sel] = sheet[_rules][idx];
-                }
-            }
-            return this;
-        },
-
-        /**
-         * <p>Unset style properties for a provided selector string, removing
-         * their effect from the style cascade.</p>
-         *
-         * <p>If the selector includes commas, it will be split into individual
-         * selectors and applied accordingly.  If there are no properties
-         * remaining in the rule after unsetting, the rule is removed.</p>
-         *
-         * <p>The style property or properties in the second parameter must be the
-         * <p>JavaScript style property names. E.g. fontSize rather than font-size.</p>
-         *
-         * <p>The float style property will be unset by any of &quot;float&quot;,
-         * &quot;styleFloat&quot;, or &quot;cssFloat&quot;.</p>
-         *
-         * @method unset
-         * @param sel {String} the selector string to apply the changes to
-         * @param css {String|Array} style property name or Array of names
-         * @return {StyleSheet} the StyleSheet instance
-         * @chainable
-         */
-        unset : function (sel,css) {
-            var rule = cssRules[sel],
-                multi = sel.split(/\s*,\s*/),
-                remove = !css,
-                rules, i;
-
-            // IE's addRule doesn't support multiple comma delimited selectors
-            // so rules are mapped internally by atomic selectors
-            if (multi.length > 1) {
-                for (i = multi.length - 1; i >= 0; --i) {
-                    this.unset(multi[i], css);
-                }
-                return this;
-            }
-
-            if (rule) {
-                if (!remove) {
-                    if (!lang.isArray(css)) {
-                        css = [css];
-                    }
-
-                    workerStyle.cssText = rule.style.cssText;
-                    for (i = css.length - 1; i >= 0; --i) {
-                        _unsetProperty(workerStyle,css[i]);
-                    }
-
-                    if (workerStyle.cssText) {
-                        rule.style.cssText = workerStyle.cssText;
-                    } else {
-                        remove = true;
-                    }
-                }
-                
-                if (remove) { // remove the rule altogether
-                    rules = sheet[_rules];
-                    for (i = rules.length - 1; i >= 0; --i) {
-                        if (rules[i] === rule) {
-                            delete cssRules[sel];
-                            _deleteRule(i);
-                            break;
-                        }
-                    }
-                }
-            }
-            return this;
-        },
-
-        /**
-         * Get the current cssText for a rule or the entire sheet.  If the
-         * selector param is supplied, only the cssText for that rule will be
-         * returned, if found.  If the selector string targets multiple
-         * selectors separated by commas, the cssText of the first rule only
-         * will be returned.  If no selector string, the stylesheet's full
-         * cssText will be returned.
-         *
-         * @method getCssText
-         * @param sel {String} Selector string
-         * @return {String}
-         */
-        getCssText : function (sel) {
-            var rule,css;
-
-            if (lang.isString(sel)) {
-                // IE's addRule doesn't support multiple comma delimited
-                // selectors so rules are mapped internally by atomic selectors
-                rule = cssRules[sel.split(/\s*,\s*/)[0]];
-
-                return rule ? rule.style.cssText : null;
-            } else {
-                css = [];
-                for (sel in cssRules) {
-                    if (cssRules.hasOwnProperty(sel)) {
-                        rule = cssRules[sel];
-                        css.push(rule.selectorText+" {"+rule.style.cssText+"}");
-                    }
-                }
-                return css.join("\n");
-            }
-        }
-    },true);
-
-}
-
-_toCssText = function (css,base) {
-    var f = css.styleFloat || css.cssFloat || css['float'],
-        prop;
-
-    workerStyle.cssText = base || '';
-
-    if (lang.isString(css)) {
-        // There is a danger here of incremental memory consumption in Opera
-        workerStyle.cssText += ';' + css;
-    } else {
-        if (f && !css[floatAttr]) {
-            css = lang.merge(css);
-            delete css.styleFloat; delete css.cssFloat; delete css['float'];
-            css[floatAttr] = f;
-        }
-
-        for (prop in css) {
-            if (css.hasOwnProperty(prop)) {
-                try {
-                    // IE throws Invalid Value errors and doesn't like whitespace
-                    // in values ala ' red' or 'red '
-                    workerStyle[prop] = lang.trim(css[prop]);
-                }
-                catch (e) {
-                    YAHOO.log('Error assigning property "'+prop+'" to "'+css[prop]+
-                              "\" (ignored):\n"+e.message,'warn','StyleSheet');
-                }
-            }
-        }
-    }
-
-    return workerStyle.cssText;
-};
-
-lang.augmentObject(StyleSheet, {
-    /**
-     * <p>Converts an object literal of style properties and values into a string
-     * of css text.  This can then be assigned to el.style.cssText.</p>
-     *
-     * <p>The optional second parameter is a cssText string representing the
-     * starting state of the style prior to alterations.  This is most often
-     * extracted from the eventual target's current el.style.cssText.</p>
-     *
-     * @method StyleSheet.toCssText
-     * @param css {Object} object literal of style properties and values
-     * @param cssText {String} OPTIONAL starting cssText value
-     * @return {String} the resulting cssText string
-     * @static
-     */
-    toCssText : (('opacity' in workerStyle) ? _toCssText :
-        // Wrap IE's toCssText to catch opacity.  The copy/merge is to preserve
-        // the input object's integrity, but if float and opacity are set, the
-        // input will be copied twice in IE.  Is there a way to avoid this
-        // without increasing the byte count?
-        function (css, cssText) {
-            if (lang.isObject(css) && 'opacity' in css) {
-                css = lang.merge(css,{
-                        filter: 'alpha(opacity='+(css.opacity*100)+')'
-                      });
-                delete css.opacity;
-            }
-            return _toCssText(css,cssText);
-        }),
-
-    /**
-     * Registers a StyleSheet instance in the static registry by the given name
-     *
-     * @method StyleSheet.register
-     * @param name {String} the name to assign the StyleSheet in the registry
-     * @param sheet {StyleSheet} The StyleSheet instance
-     * @return {Boolean} false if no name or sheet is not a StyleSheet
-     *              instance. true otherwise.
-     * @static
-     */
-    register : function (name,sheet) {
-        return !!(name && sheet instanceof StyleSheet &&
-                  !sheets[name] && (sheets[name] = sheet));
-    },
-
-    /**
-     * <p>Determines if a selector string is safe to use.  Used internally
-     * in set to prevent IE from locking up when attempting to add a rule for a
-     * &quot;bad selector&quot;.</p>
-     *
-     * <p>Bad selectors are considered to be any string containing unescaped
-     * `~!@$%^&()+=|{}[];'"?< or space. Also forbidden are . or # followed by
-     * anything other than an alphanumeric.  Additionally -abc or .-abc or
-     * #_abc or '# ' all fail.  There are likely more failure cases, so
-     * please file a bug if you encounter one.</p>
-     *
-     * @method StyleSheet.isValidSelector
-     * @param sel {String} the selector string
-     * @return {Boolean}
-     * @static
-     */
-    isValidSelector : function (sel) {
-        var valid = false;
-
-        if (sel && lang.isString(sel)) {
-
-            if (!selectors.hasOwnProperty(sel)) {
-                // TEST: there should be nothing but white-space left after
-                // these destructive regexs
-                selectors[sel] = !/\S/.test(
-                    // combinators
-                    sel.replace(/\s+|\s*[+~>]\s*/g,' ').
-                    // attribute selectors (contents not validated)
-                    replace(/([^ ])\[.*?\]/g,'$1').
-                    // pseudo-class|element selectors (contents of parens
-                    // such as :nth-of-type(2) or :not(...) not validated)
-                    replace(/([^ ])::?[a-z][a-z\-]+[a-z](?:\(.*?\))?/ig,'$1').
-                    // element tags
-                    replace(/(?:^| )[a-z0-6]+/ig,' ').
-                    // escaped characters
-                    replace(/\\./g,'').
-                    // class and id identifiers
-                    replace(/[.#]\w[\w\-]*/g,''));
-            }
-
-            valid = selectors[sel];
-        }
-
-        return valid;
-    }
-},true);
-
-YAHOO.util.StyleSheet = StyleSheet;
-
-})();
-
-/*
-
-NOTES
- * Style node must be added to the head element.  Safari does not honor styles
-   applied to StyleSheet objects on style nodes in the body.
- * StyleSheet object is created on the style node when the style node is added
-   to the head element in Firefox 2 (and maybe 3?)
- * The cssRules collection is replaced after insertRule/deleteRule calls in
-   Safari 3.1.  Existing Rules are used in the new collection, so the collection
-   cannot be cached, but the rules can be.
- * Opera requires that the index be passed with insertRule.
- * Same-domain restrictions prevent modifying StyleSheet objects attached to
-   link elements with remote href (or "about:blank" or "javascript:false")
- * Same-domain restrictions prevent reading StyleSheet cssRules/rules
-   collection of link elements with remote href (or "about:blank" or
-   "javascript:false")
- * Same-domain restrictions result in Safari not populating node.sheet property
-   for link elements with remote href (et.al)
- * IE names StyleSheet related properties and methods differently (see code)
- * IE converts tag names to upper case in the Rule's selectorText
- * IE converts empty string assignment to complex properties to value settings
-   for all child properties.  E.g. style.background = '' sets non-'' values on
-   style.backgroundPosition, style.backgroundColor, etc.  All else clear
-   style.background and all child properties.
- * IE assignment style.filter = '' will result in style.cssText == 'FILTER:'
- * All browsers support Rule.style.cssText as a read/write property, leaving
-   only opacity needing to be accounted for.
- * Benchmarks of style.property = value vs style.cssText += 'property: value'
-   indicate cssText is slightly slower for single property assignment.  For
-   multiple property assignment, cssText speed stays relatively the same where
-   style.property speed decreases linearly by the number of properties set.
-   Exception being Opera 9.27, where style.property is always faster than
-   style.cssText.
- * Opera 9.5b throws a syntax error when assigning cssText with a syntax error.
- * Opera 9.5 doesn't honor rule.style.cssText = ''.  Previous style persists.
-   You have to remove the rule altogether.
- * Stylesheet properties set with !important will trump inline style set on an
-   element or in el.style.property.
- * Creating a worker style collection like document.createElement('p').style;
-   will fail after a time in FF (~5secs of inactivity).  Property assignments
-   will not alter the property or cssText.  It may be the generated node is
-   garbage collected and the style collection becomes inert (speculation).
- * IE locks up when attempting to add a rule with a selector including at least
-   characters {[]}~`!@%^&*()+=|? (unescaped) and leading _ or -
-   such as addRule('-foo','{ color: red }') or addRule('._abc','{...}')
- * IE's addRule doesn't support comma separated selectors such as
-   addRule('.foo, .bar','{..}')
- * IE throws an error on valid values with leading/trailing white space.
- * When creating an entire sheet at once, only FF2/3 & Opera allow creating a
-   style node, setting its innerHTML and appending to head.
- * When creating an entire sheet at once, Safari requires the style node to be
-   created with content in innerHTML of another element.
- * When creating an entire sheet at once, IE requires the style node content to
-   be set via node.styleSheet.cssText
- * When creating an entire sheet at once in IE, styleSheet.cssText can't be
-   written until node.type = 'text/css'; is performed.
- * When creating an entire sheet at once in IE, load-time fork on
-   var styleNode = d.createElement('style'); _method = styleNode.styleSheet ?..
-   fails (falsey).  During run-time, the test for .styleSheet works fine
- * Setting complex properties in cssText will SOMETIMES allow child properties
-   to be unset
-   set         unset              FF2  FF3  S3.1  IE6  IE7  Op9.27  Op9.5
-   ----------  -----------------  ---  ---  ----  ---  ---  ------  -----
-   border      -top               NO   NO   YES   YES  YES  YES     YES
-               -top-color         NO   NO   YES             YES     YES
-               -color             NO   NO   NO              NO      NO
-   background  -color             NO   NO   YES             YES     YES
-               -position          NO   NO   YES             YES     YES
-               -position-x        NO   NO   NO              NO      NO
-   font        line-height        YES  YES  NO    NO   NO   NO      YES
-               -style             YES  YES  NO              YES     YES
-               -size              YES  YES  NO              YES     YES
-               -size-adjust       ???  ???  n/a   n/a  n/a  ???     ???
-   padding     -top               NO   NO   YES             YES     YES
-   margin      -top               NO   NO   YES             YES     YES
-   list-style  -type              YES  YES  YES             YES     YES
-               -position          YES  YES  YES             YES     YES
-   overflow    -x                 NO   NO   YES             n/a     YES
-
-   ??? - unsetting font-size-adjust has the same effect as unsetting font-size
- * FireFox and WebKit populate rule.cssText as "SELECTOR { CSSTEXT }", but
-   Opera and IE do not.
- * IE6 and IE7 silently ignore the { and } if passed into addRule('.foo','{
-   color:#000}',0).  IE8 does not and creates an empty rule.
- * IE6-8 addRule('.foo','',n) throws an error.  Must supply *some* cssText
-*/
-
-YAHOO.register("stylesheet", YAHOO.util.StyleSheet, {version: "2.8.0r4", build: "2449"});
diff --git a/koha-tmpl/intranet-tmpl/prog/en/lib/yui/stylesheet/stylesheet-min.js b/koha-tmpl/intranet-tmpl/prog/en/lib/yui/stylesheet/stylesheet-min.js
deleted file mode 100644 (file)
index 621e67b..0000000
+++ /dev/null
@@ -1,7 +0,0 @@
-/*
-Copyright (c) 2009, Yahoo! Inc. All rights reserved.
-Code licensed under the BSD License:
-http://developer.yahoo.net/yui/license.txt
-version: 2.8.0r4
-*/
-(function(){var I=document,B=I.createElement("p"),D=B.style,C=YAHOO.lang,L={},H={},E=0,J=("cssFloat" in D)?"cssFloat":"styleFloat",F,A,K;A=("opacity" in D)?function(M){M.opacity="";}:function(M){M.filter="";};D.border="1px solid red";D.border="";K=D.borderLeft?function(M,O){var N;if(O!==J&&O.toLowerCase().indexOf("float")!=-1){O=J;}if(typeof M[O]==="string"){switch(O){case"opacity":case"filter":A(M);break;case"font":M.font=M.fontStyle=M.fontVariant=M.fontWeight=M.fontSize=M.lineHeight=M.fontFamily="";break;default:for(N in M){if(N.indexOf(O)===0){M[N]="";}}}}}:function(M,N){if(N!==J&&N.toLowerCase().indexOf("float")!=-1){N=J;}if(C.isString(M[N])){if(N==="opacity"){A(M);}else{M[N]="";}}};function G(T,O){var W,R,V,U={},N,X,Q,S,M,P;if(!(this instanceof G)){return new G(T,O);}R=T&&(T.nodeName?T:I.getElementById(T));if(T&&H[T]){return H[T];}else{if(R&&R.yuiSSID&&H[R.yuiSSID]){return H[R.yuiSSID];}}if(!R||!/^(?:style|link)$/i.test(R.nodeName)){R=I.createElement("style");R.type="text/css";}if(C.isString(T)){if(T.indexOf("{")!=-1){if(R.styleSheet){R.styleSheet.cssText=T;}else{R.appendChild(I.createTextNode(T));}}else{if(!O){O=T;}}}if(!R.parentNode||R.parentNode.nodeName.toLowerCase()!=="head"){W=(R.ownerDocument||I).getElementsByTagName("head")[0];W.appendChild(R);}V=R.sheet||R.styleSheet;N=V&&("cssRules" in V)?"cssRules":"rules";Q=("deleteRule" in V)?function(Y){V.deleteRule(Y);}:function(Y){V.removeRule(Y);};X=("insertRule" in V)?function(a,Z,Y){V.insertRule(a+" {"+Z+"}",Y);}:function(a,Z,Y){V.addRule(a,Z,Y);};for(S=V[N].length-1;S>=0;--S){M=V[N][S];P=M.selectorText;if(U[P]){U[P].style.cssText+=";"+M.style.cssText;Q(S);}else{U[P]=M;}}R.yuiSSID="yui-stylesheet-"+(E++);G.register(R.yuiSSID,this);if(O){G.register(O,this);}C.augmentObject(this,{getId:function(){return R.yuiSSID;},node:R,enable:function(){V.disabled=false;return this;},disable:function(){V.disabled=true;return this;},isEnabled:function(){return !V.disabled;},set:function(b,a){var d=U[b],c=b.split(/\s*,\s*/),Z,Y;if(c.length>1){for(Z=c.length-1;Z>=0;--Z){this.set(c[Z],a);}return this;}if(!G.isValidSelector(b)){return this;}if(d){d.style.cssText=G.toCssText(a,d.style.cssText);}else{Y=V[N].length;a=G.toCssText(a);if(a){X(b,a,Y);U[b]=V[N][Y];}}return this;},unset:function(b,a){var d=U[b],c=b.split(/\s*,\s*/),Y=!a,e,Z;if(c.length>1){for(Z=c.length-1;Z>=0;--Z){this.unset(c[Z],a);}return this;}if(d){if(!Y){if(!C.isArray(a)){a=[a];}D.cssText=d.style.cssText;for(Z=a.length-1;Z>=0;--Z){K(D,a[Z]);}if(D.cssText){d.style.cssText=D.cssText;}else{Y=true;}}if(Y){e=V[N];for(Z=e.length-1;Z>=0;--Z){if(e[Z]===d){delete U[b];Q(Z);break;}}}}return this;},getCssText:function(Z){var a,Y;if(C.isString(Z)){a=U[Z.split(/\s*,\s*/)[0]];return a?a.style.cssText:null;}else{Y=[];for(Z in U){if(U.hasOwnProperty(Z)){a=U[Z];Y.push(a.selectorText+" {"+a.style.cssText+"}");}}return Y.join("\n");}}},true);}F=function(M,O){var N=M.styleFloat||M.cssFloat||M["float"],Q;D.cssText=O||"";if(C.isString(M)){D.cssText+=";"+M;}else{if(N&&!M[J]){M=C.merge(M);delete M.styleFloat;delete M.cssFloat;delete M["float"];M[J]=N;}for(Q in M){if(M.hasOwnProperty(Q)){try{D[Q]=C.trim(M[Q]);}catch(P){}}}}return D.cssText;};C.augmentObject(G,{toCssText:(("opacity" in D)?F:function(M,N){if(C.isObject(M)&&"opacity" in M){M=C.merge(M,{filter:"alpha(opacity="+(M.opacity*100)+")"});delete M.opacity;}return F(M,N);}),register:function(M,N){return !!(M&&N instanceof G&&!H[M]&&(H[M]=N));},isValidSelector:function(N){var M=false;if(N&&C.isString(N)){if(!L.hasOwnProperty(N)){L[N]=!/\S/.test(N.replace(/\s+|\s*[+~>]\s*/g," ").replace(/([^ ])\[.*?\]/g,"$1").replace(/([^ ])::?[a-z][a-z\-]+[a-z](?:\(.*?\))?/ig,"$1").replace(/(?:^| )[a-z0-6]+/ig," ").replace(/\\./g,"").replace(/[.#]\w[\w\-]*/g,""));}M=L[N];}return M;}},true);YAHOO.util.StyleSheet=G;})();YAHOO.register("stylesheet",YAHOO.util.StyleSheet,{version:"2.8.0r4",build:"2449"});
\ No newline at end of file
diff --git a/koha-tmpl/intranet-tmpl/prog/en/lib/yui/stylesheet/stylesheet.js b/koha-tmpl/intranet-tmpl/prog/en/lib/yui/stylesheet/stylesheet.js
deleted file mode 100644 (file)
index 5a2de20..0000000
+++ /dev/null
@@ -1,645 +0,0 @@
-/*
-Copyright (c) 2009, Yahoo! Inc. All rights reserved.
-Code licensed under the BSD License:
-http://developer.yahoo.net/yui/license.txt
-version: 2.8.0r4
-*/
-/**
- * The StyleSheet component is a utility for managing css rules at the
- * stylesheet level
- *
- * @module stylesheet
- * @namespace YAHOO.util
- * @requires yahoo
- * @beta
- */
-(function () {
-
-var d      = document,
-    p      = d.createElement('p'), // Have to hold the node (see notes)
-    workerStyle = p.style, // worker style collection
-    lang   = YAHOO.lang,
-    selectors = {},
-    sheets = {},
-    ssId   = 0,
-    floatAttr = ('cssFloat' in workerStyle) ? 'cssFloat' : 'styleFloat',
-    _toCssText,
-    _unsetOpacity,
-    _unsetProperty;
-
-/*
- * Normalizes the removal of an assigned style for opacity.  IE uses the filter property.
- */
-_unsetOpacity = ('opacity' in workerStyle) ?
-    function (style) { style.opacity = ''; } :
-    function (style) { style.filter = ''; };
-        
-/*
- * Normalizes the removal of an assigned style for a given property.  Expands
- * shortcut properties if necessary and handles the various names for the float property.
- */
-workerStyle.border = "1px solid red";
-workerStyle.border = ''; // IE doesn't unset child properties
-_unsetProperty = workerStyle.borderLeft ?
-    function (style,prop) {
-        var p;
-        if (prop !== floatAttr && prop.toLowerCase().indexOf('float') != -1) {
-            prop = floatAttr;
-        }
-        if (typeof style[prop] === 'string') {
-            switch (prop) {
-                case 'opacity':
-                case 'filter' : _unsetOpacity(style); break;
-                case 'font'   :
-                    style.font       = style.fontStyle = style.fontVariant =
-                    style.fontWeight = style.fontSize  = style.lineHeight  =
-                    style.fontFamily = '';
-                    break;
-                default       :
-                    for (p in style) {
-                        if (p.indexOf(prop) === 0) {
-                            style[p] = '';
-                        }
-                    }
-            }
-        }
-    } :
-    function (style,prop) {
-        if (prop !== floatAttr && prop.toLowerCase().indexOf('float') != -1) {
-            prop = floatAttr;
-        }
-        if (lang.isString(style[prop])) {
-            if (prop === 'opacity') {
-                _unsetOpacity(style);
-            } else {
-                style[prop] = '';
-            }
-        }
-    };
-    
-/**
- * Create an instance of YAHOO.util.StyleSheet to encapsulate a css stylesheet.
- * The constructor can be called using function or constructor syntax.
- * <pre><code>var sheet = YAHOO.util.StyleSheet(..);</pre></code>
- * or
- * <pre><code>var sheet = new YAHOO.util.StyleSheet(..);</pre></code>
- *
- * The first parameter passed can be any of the following things:
- * <ul>
- *   <li>The desired string name to register a new empty sheet</li>
- *   <li>The string name of an existing YAHOO.util.StyleSheet instance</li>
- *   <li>The unique yuiSSID generated for an existing YAHOO.util.StyleSheet instance</li>
- *   <li>The id of an existing <code>&lt;link&gt;</code> or <code>&lt;style&gt;</code> node</li>
- *   <li>The node reference for an existing <code>&lt;link&gt;</code> or <code>&lt;style&gt;</code> node</li>
- *   <li>A chunk of css text to create a new stylesheet from</li>
- * </ul>
- *
- * <p>If a string is passed, StyleSheet will first look in its static name
- * registry for an existing sheet, then in the DOM for an element with that id.
- * If neither are found and the string contains the { character, it will be
- * used as a the initial cssText for a new StyleSheet.  Otherwise, a new empty
- * StyleSheet is created, assigned the string value as a name, and registered
- * statically by that name.</p>
- *
- * <p>The optional second parameter is a string name to register the sheet as.
- * This param is largely useful when providing a node id/ref or chunk of css
- * text to create a populated instance.</p>
- * 
- * @class StyleSheet
- * @constructor
- * @param seed {String|HTMLElement} a style or link node, its id, or a name or
- *              yuiSSID of a StyleSheet, or a string of css text (see above)
- * @param name {String} OPTIONAL name to register instance for future static
- *              access
- */
-function StyleSheet(seed, name) {
-    var head,
-        node,
-        sheet,
-        cssRules = {},
-        _rules,
-        _insertRule,
-        _deleteRule,
-        i,r,sel;
-
-    // Factory or constructor
-    if (!(this instanceof StyleSheet)) {
-        return new StyleSheet(seed,name);
-    }
-
-    // capture the DOM node if the string is an id
-    node = seed && (seed.nodeName ? seed : d.getElementById(seed));
-
-    // Check for the StyleSheet in the static registry
-    if (seed && sheets[seed]) {
-        return sheets[seed];
-    } else if (node && node.yuiSSID && sheets[node.yuiSSID]) {
-        return sheets[node.yuiSSID];
-    }
-
-    // Create a style node if necessary
-    if (!node || !/^(?:style|link)$/i.test(node.nodeName)) {
-        node = d.createElement('style');
-        node.type = 'text/css';
-    }
-
-    if (lang.isString(seed)) {
-        // Create entire sheet from seed cssText
-        if (seed.indexOf('{') != -1) {
-            // Not a load-time fork because low run-time impact and IE fails
-            // test for s.styleSheet at page load time (oddly)
-            if (node.styleSheet) {
-                node.styleSheet.cssText = seed;
-            } else {
-                node.appendChild(d.createTextNode(seed));
-            }
-        } else if (!name) {
-            name = seed;
-        }
-    }
-
-    if (!node.parentNode || node.parentNode.nodeName.toLowerCase() !== 'head') {
-        head = (node.ownerDocument || d).getElementsByTagName('head')[0];
-        // styleSheet isn't available on the style node in FF2 until appended
-        // to the head element.  style nodes appended to body do not affect
-        // change in Safari.
-        head.appendChild(node);
-    }
-
-    // Begin setting up private aliases to the important moving parts
-    // 1. The stylesheet object
-    // IE stores StyleSheet under the "styleSheet" property
-    // Safari doesn't populate sheet for xdomain link elements
-    sheet = node.sheet || node.styleSheet;
-
-    // 2. The style rules collection
-    // IE stores the rules collection under the "rules" property
-    _rules = sheet && ('cssRules' in sheet) ? 'cssRules' : 'rules';
-
-    // 3. The method to remove a rule from the stylesheet
-    // IE supports removeRule
-    _deleteRule = ('deleteRule' in sheet) ?
-        function (i) { sheet.deleteRule(i); } :
-        function (i) { sheet.removeRule(i); };
-
-    // 4. The method to add a new rule to the stylesheet
-    // IE supports addRule with different signature
-    _insertRule = ('insertRule' in sheet) ?
-        function (sel,css,i) { sheet.insertRule(sel+' {'+css+'}',i); } :
-        function (sel,css,i) { sheet.addRule(sel,css,i); };
-
-    // 5. Initialize the cssRules map from the node
-    // xdomain link nodes forbid access to the cssRules collection, so this
-    // will throw an error.
-    // TODO: research alternate stylesheet, @media
-    for (i = sheet[_rules].length - 1; i >= 0; --i) {
-        r   = sheet[_rules][i];
-        sel = r.selectorText;
-
-        if (cssRules[sel]) {
-            cssRules[sel].style.cssText += ';' + r.style.cssText;
-            _deleteRule(i);
-        } else {
-            cssRules[sel] = r;
-        }
-    }
-
-    // Cache the instance by the generated Id
-    node.yuiSSID = 'yui-stylesheet-' + (ssId++);
-    StyleSheet.register(node.yuiSSID,this);
-
-    // Register the instance by name if provided or defaulted from seed
-    if (name) {
-        StyleSheet.register(name,this);
-    }
-
-    // Public API
-    lang.augmentObject(this,{
-        /**
-         * Get the unique yuiSSID for this StyleSheet instance
-         *
-         * @method getId
-         * @return {Number} the static id
-         */
-        getId : function () { return node.yuiSSID; },
-
-        /**
-         * The HTMLElement that this instance encapsulates
-         *
-         * @property node
-         * @type HTMLElement
-         */
-        node : node,
-
-        /**
-         * Enable all the rules in the sheet
-         *
-         * @method enable
-         * @return {StyleSheet} the instance
-         * @chainable
-         */
-        // Enabling/disabling the stylesheet.  Changes may be made to rules
-        // while disabled.
-        enable : function () { sheet.disabled = false; return this; },
-
-        /**
-         * Disable all the rules in the sheet.  Rules may be changed while the
-         * StyleSheet is disabled.
-         *
-         * @method disable
-         * @return {StyleSheet} the instance
-         * @chainable
-         */
-        disable : function () { sheet.disabled = true; return this; },
-
-        /**
-         * Returns boolean indicating whether the StyleSheet is enabled
-         *
-         * @method isEnabled
-         * @return {Boolean} is it enabled?
-         */
-        isEnabled : function () { return !sheet.disabled; },
-
-        /**
-         * <p>Set style properties for a provided selector string.
-         * If the selector includes commas, it will be split into individual
-         * selectors and applied accordingly.  If the selector string does not
-         * have a corresponding rule in the sheet, it will be added.</p>
-         *
-         * <p>The second parameter can be either a string of CSS text,
-         * formatted as CSS ("font-size: 10px;"), or an object collection of
-         * properties and their new values.  Object properties must be in
-         * JavaScript format ({ fontSize: "10px" }).</p>
-         *
-         * <p>The float style property will be set by any of &quot;float&quot;,
-         * &quot;styleFloat&quot;, or &quot;cssFloat&quot; if passed in the
-         * object map.  Use "float: left;" format when passing a CSS text
-         * string.</p>
-         *
-         * @method set
-         * @param sel {String} the selector string to apply the changes to
-         * @param css {Object|String} Object literal of style properties and
-         *                      new values, or a string of cssText
-         * @return {StyleSheet} the StyleSheet instance
-         * @chainable
-         */
-        set : function (sel,css) {
-            var rule = cssRules[sel],
-                multi = sel.split(/\s*,\s*/),i,
-                idx;
-
-            // IE's addRule doesn't support multiple comma delimited selectors
-            if (multi.length > 1) {
-                for (i = multi.length - 1; i >= 0; --i) {
-                    this.set(multi[i], css);
-                }
-                return this;
-            }
-
-            // Some selector values can cause IE to hang
-            if (!StyleSheet.isValidSelector(sel)) {
-                return this;
-            }
-
-            // Opera throws an error if there's a syntax error in assigned
-            // cssText. Avoid this using a worker style collection, then
-            // assigning the resulting cssText.
-            if (rule) {
-                rule.style.cssText = StyleSheet.toCssText(css,rule.style.cssText);
-            } else {
-                idx = sheet[_rules].length;
-                css = StyleSheet.toCssText(css);
-
-                // IE throws an error when attempting to addRule(sel,'',n)
-                // which would crop up if no, or only invalid values are used
-                if (css) {
-                    _insertRule(sel, css, idx);
-
-                    // Safari replaces the rules collection, but maintains the
-                    // rule instances in the new collection when rules are
-                    // added/removed
-                    cssRules[sel] = sheet[_rules][idx];
-                }
-            }
-            return this;
-        },
-
-        /**
-         * <p>Unset style properties for a provided selector string, removing
-         * their effect from the style cascade.</p>
-         *
-         * <p>If the selector includes commas, it will be split into individual
-         * selectors and applied accordingly.  If there are no properties
-         * remaining in the rule after unsetting, the rule is removed.</p>
-         *
-         * <p>The style property or properties in the second parameter must be the
-         * <p>JavaScript style property names. E.g. fontSize rather than font-size.</p>
-         *
-         * <p>The float style property will be unset by any of &quot;float&quot;,
-         * &quot;styleFloat&quot;, or &quot;cssFloat&quot;.</p>
-         *
-         * @method unset
-         * @param sel {String} the selector string to apply the changes to
-         * @param css {String|Array} style property name or Array of names
-         * @return {StyleSheet} the StyleSheet instance
-         * @chainable
-         */
-        unset : function (sel,css) {
-            var rule = cssRules[sel],
-                multi = sel.split(/\s*,\s*/),
-                remove = !css,
-                rules, i;
-
-            // IE's addRule doesn't support multiple comma delimited selectors
-            // so rules are mapped internally by atomic selectors
-            if (multi.length > 1) {
-                for (i = multi.length - 1; i >= 0; --i) {
-                    this.unset(multi[i], css);
-                }
-                return this;
-            }
-
-            if (rule) {
-                if (!remove) {
-                    if (!lang.isArray(css)) {
-                        css = [css];
-                    }
-
-                    workerStyle.cssText = rule.style.cssText;
-                    for (i = css.length - 1; i >= 0; --i) {
-                        _unsetProperty(workerStyle,css[i]);
-                    }
-
-                    if (workerStyle.cssText) {
-                        rule.style.cssText = workerStyle.cssText;
-                    } else {
-                        remove = true;
-                    }
-                }
-                
-                if (remove) { // remove the rule altogether
-                    rules = sheet[_rules];
-                    for (i = rules.length - 1; i >= 0; --i) {
-                        if (rules[i] === rule) {
-                            delete cssRules[sel];
-                            _deleteRule(i);
-                            break;
-                        }
-                    }
-                }
-            }
-            return this;
-        },
-
-        /**
-         * Get the current cssText for a rule or the entire sheet.  If the
-         * selector param is supplied, only the cssText for that rule will be
-         * returned, if found.  If the selector string targets multiple
-         * selectors separated by commas, the cssText of the first rule only
-         * will be returned.  If no selector string, the stylesheet's full
-         * cssText will be returned.
-         *
-         * @method getCssText
-         * @param sel {String} Selector string
-         * @return {String}
-         */
-        getCssText : function (sel) {
-            var rule,css;
-
-            if (lang.isString(sel)) {
-                // IE's addRule doesn't support multiple comma delimited
-                // selectors so rules are mapped internally by atomic selectors
-                rule = cssRules[sel.split(/\s*,\s*/)[0]];
-
-                return rule ? rule.style.cssText : null;
-            } else {
-                css = [];
-                for (sel in cssRules) {
-                    if (cssRules.hasOwnProperty(sel)) {
-                        rule = cssRules[sel];
-                        css.push(rule.selectorText+" {"+rule.style.cssText+"}");
-                    }
-                }
-                return css.join("\n");
-            }
-        }
-    },true);
-
-}
-
-_toCssText = function (css,base) {
-    var f = css.styleFloat || css.cssFloat || css['float'],
-        prop;
-
-    workerStyle.cssText = base || '';
-
-    if (lang.isString(css)) {
-        // There is a danger here of incremental memory consumption in Opera
-        workerStyle.cssText += ';' + css;
-    } else {
-        if (f && !css[floatAttr]) {
-            css = lang.merge(css);
-            delete css.styleFloat; delete css.cssFloat; delete css['float'];
-            css[floatAttr] = f;
-        }
-
-        for (prop in css) {
-            if (css.hasOwnProperty(prop)) {
-                try {
-                    // IE throws Invalid Value errors and doesn't like whitespace
-                    // in values ala ' red' or 'red '
-                    workerStyle[prop] = lang.trim(css[prop]);
-                }
-                catch (e) {
-                }
-            }
-        }
-    }
-
-    return workerStyle.cssText;
-};
-
-lang.augmentObject(StyleSheet, {
-    /**
-     * <p>Converts an object literal of style properties and values into a string
-     * of css text.  This can then be assigned to el.style.cssText.</p>
-     *
-     * <p>The optional second parameter is a cssText string representing the
-     * starting state of the style prior to alterations.  This is most often
-     * extracted from the eventual target's current el.style.cssText.</p>
-     *
-     * @method StyleSheet.toCssText
-     * @param css {Object} object literal of style properties and values
-     * @param cssText {String} OPTIONAL starting cssText value
-     * @return {String} the resulting cssText string
-     * @static
-     */
-    toCssText : (('opacity' in workerStyle) ? _toCssText :
-        // Wrap IE's toCssText to catch opacity.  The copy/merge is to preserve
-        // the input object's integrity, but if float and opacity are set, the
-        // input will be copied twice in IE.  Is there a way to avoid this
-        // without increasing the byte count?
-        function (css, cssText) {
-            if (lang.isObject(css) && 'opacity' in css) {
-                css = lang.merge(css,{
-                        filter: 'alpha(opacity='+(css.opacity*100)+')'
-                      });
-                delete css.opacity;
-            }
-            return _toCssText(css,cssText);
-        }),
-
-    /**
-     * Registers a StyleSheet instance in the static registry by the given name
-     *
-     * @method StyleSheet.register
-     * @param name {String} the name to assign the StyleSheet in the registry
-     * @param sheet {StyleSheet} The StyleSheet instance
-     * @return {Boolean} false if no name or sheet is not a StyleSheet
-     *              instance. true otherwise.
-     * @static
-     */
-    register : function (name,sheet) {
-        return !!(name && sheet instanceof StyleSheet &&
-                  !sheets[name] && (sheets[name] = sheet));
-    },
-
-    /**
-     * <p>Determines if a selector string is safe to use.  Used internally
-     * in set to prevent IE from locking up when attempting to add a rule for a
-     * &quot;bad selector&quot;.</p>
-     *
-     * <p>Bad selectors are considered to be any string containing unescaped
-     * `~!@$%^&()+=|{}[];'"?< or space. Also forbidden are . or # followed by
-     * anything other than an alphanumeric.  Additionally -abc or .-abc or
-     * #_abc or '# ' all fail.  There are likely more failure cases, so
-     * please file a bug if you encounter one.</p>
-     *
-     * @method StyleSheet.isValidSelector
-     * @param sel {String} the selector string
-     * @return {Boolean}
-     * @static
-     */
-    isValidSelector : function (sel) {
-        var valid = false;
-
-        if (sel && lang.isString(sel)) {
-
-            if (!selectors.hasOwnProperty(sel)) {
-                // TEST: there should be nothing but white-space left after
-                // these destructive regexs
-                selectors[sel] = !/\S/.test(
-                    // combinators
-                    sel.replace(/\s+|\s*[+~>]\s*/g,' ').
-                    // attribute selectors (contents not validated)
-                    replace(/([^ ])\[.*?\]/g,'$1').
-                    // pseudo-class|element selectors (contents of parens
-                    // such as :nth-of-type(2) or :not(...) not validated)
-                    replace(/([^ ])::?[a-z][a-z\-]+[a-z](?:\(.*?\))?/ig,'$1').
-                    // element tags
-                    replace(/(?:^| )[a-z0-6]+/ig,' ').
-                    // escaped characters
-                    replace(/\\./g,'').
-                    // class and id identifiers
-                    replace(/[.#]\w[\w\-]*/g,''));
-            }
-
-            valid = selectors[sel];
-        }
-
-        return valid;
-    }
-},true);
-
-YAHOO.util.StyleSheet = StyleSheet;
-
-})();
-
-/*
-
-NOTES
- * Style node must be added to the head element.  Safari does not honor styles
-   applied to StyleSheet objects on style nodes in the body.
- * StyleSheet object is created on the style node when the style node is added
-   to the head element in Firefox 2 (and maybe 3?)
- * The cssRules collection is replaced after insertRule/deleteRule calls in
-   Safari 3.1.  Existing Rules are used in the new collection, so the collection
-   cannot be cached, but the rules can be.
- * Opera requires that the index be passed with insertRule.
- * Same-domain restrictions prevent modifying StyleSheet objects attached to
-   link elements with remote href (or "about:blank" or "javascript:false")
- * Same-domain restrictions prevent reading StyleSheet cssRules/rules
-   collection of link elements with remote href (or "about:blank" or
-   "javascript:false")
- * Same-domain restrictions result in Safari not populating node.sheet property
-   for link elements with remote href (et.al)
- * IE names StyleSheet related properties and methods differently (see code)
- * IE converts tag names to upper case in the Rule's selectorText
- * IE converts empty string assignment to complex properties to value settings
-   for all child properties.  E.g. style.background = '' sets non-'' values on
-   style.backgroundPosition, style.backgroundColor, etc.  All else clear
-   style.background and all child properties.
- * IE assignment style.filter = '' will result in style.cssText == 'FILTER:'
- * All browsers support Rule.style.cssText as a read/write property, leaving
-   only opacity needing to be accounted for.
- * Benchmarks of style.property = value vs style.cssText += 'property: value'
-   indicate cssText is slightly slower for single property assignment.  For
-   multiple property assignment, cssText speed stays relatively the same where
-   style.property speed decreases linearly by the number of properties set.
-   Exception being Opera 9.27, where style.property is always faster than
-   style.cssText.
- * Opera 9.5b throws a syntax error when assigning cssText with a syntax error.
- * Opera 9.5 doesn't honor rule.style.cssText = ''.  Previous style persists.
-   You have to remove the rule altogether.
- * Stylesheet properties set with !important will trump inline style set on an
-   element or in el.style.property.
- * Creating a worker style collection like document.createElement('p').style;
-   will fail after a time in FF (~5secs of inactivity).  Property assignments
-   will not alter the property or cssText.  It may be the generated node is
-   garbage collected and the style collection becomes inert (speculation).
- * IE locks up when attempting to add a rule with a selector including at least
-   characters {[]}~`!@%^&*()+=|? (unescaped) and leading _ or -
-   such as addRule('-foo','{ color: red }') or addRule('._abc','{...}')
- * IE's addRule doesn't support comma separated selectors such as
-   addRule('.foo, .bar','{..}')
- * IE throws an error on valid values with leading/trailing white space.
- * When creating an entire sheet at once, only FF2/3 & Opera allow creating a
-   style node, setting its innerHTML and appending to head.
- * When creating an entire sheet at once, Safari requires the style node to be
-   created with content in innerHTML of another element.
- * When creating an entire sheet at once, IE requires the style node content to
-   be set via node.styleSheet.cssText
- * When creating an entire sheet at once in IE, styleSheet.cssText can't be
-   written until node.type = 'text/css'; is performed.
- * When creating an entire sheet at once in IE, load-time fork on
-   var styleNode = d.createElement('style'); _method = styleNode.styleSheet ?..
-   fails (falsey).  During run-time, the test for .styleSheet works fine
- * Setting complex properties in cssText will SOMETIMES allow child properties
-   to be unset
-   set         unset              FF2  FF3  S3.1  IE6  IE7  Op9.27  Op9.5
-   ----------  -----------------  ---  ---  ----  ---  ---  ------  -----
-   border      -top               NO   NO   YES   YES  YES  YES     YES
-               -top-color         NO   NO   YES             YES     YES
-               -color             NO   NO   NO              NO      NO
-   background  -color             NO   NO   YES             YES     YES
-               -position          NO   NO   YES             YES     YES
-               -position-x        NO   NO   NO              NO      NO
-   font        line-height        YES  YES  NO    NO   NO   NO      YES
-               -style             YES  YES  NO              YES     YES
-               -size              YES  YES  NO              YES     YES
-               -size-adjust       ???  ???  n/a   n/a  n/a  ???     ???
-   padding     -top               NO   NO   YES             YES     YES
-   margin      -top               NO   NO   YES             YES     YES
-   list-style  -type              YES  YES  YES             YES     YES
-               -position          YES  YES  YES             YES     YES
-   overflow    -x                 NO   NO   YES             n/a     YES
-
-   ??? - unsetting font-size-adjust has the same effect as unsetting font-size
- * FireFox and WebKit populate rule.cssText as "SELECTOR { CSSTEXT }", but
-   Opera and IE do not.
- * IE6 and IE7 silently ignore the { and } if passed into addRule('.foo','{
-   color:#000}',0).  IE8 does not and creates an empty rule.
- * IE6-8 addRule('.foo','',n) throws an error.  Must supply *some* cssText
-*/
-
-YAHOO.register("stylesheet", YAHOO.util.StyleSheet, {version: "2.8.0r4", build: "2449"});
diff --git a/koha-tmpl/intranet-tmpl/prog/en/lib/yui/swf/swf-debug.js b/koha-tmpl/intranet-tmpl/prog/en/lib/yui/swf/swf-debug.js
deleted file mode 100644 (file)
index b477a9f..0000000
+++ /dev/null
@@ -1,269 +0,0 @@
-/*
-Copyright (c) 2009, Yahoo! Inc. All rights reserved.
-Code licensed under the BSD License:
-http://developer.yahoo.net/yui/license.txt
-version: 2.8.0r4
-*/
-YAHOO.namespace("widget");
-
-(function () {
-       
-       var version = 0;
-       var UA = YAHOO.env.ua;
-       var sF = "ShockwaveFlash";
-
-               if (UA.gecko || UA.webkit || UA.opera) {
-                          if ((mF = navigator.mimeTypes['application/x-shockwave-flash'])) {
-                             if ((eP = mF.enabledPlugin)) {
-                                        var vS = [];
-                                vS = eP.description.replace(/\s[rd]/g, '.').replace(/[A-Za-z\s]+/g, '').split('.');
-                               version = vS[0] + '.';
-                                       switch((vS[2].toString()).length)
-                                       {
-                                               case 1:
-                                               version += "00";
-                                               break;
-                                               case 2: 
-                                               version += "0";
-                                               break;
-                                       }
-                                       version +=  vS[2];
-                                       version = parseFloat(version);
-                             }
-                          }
-                       }
-                       else if(UA.ie) {
-                           try
-                           {
-                               var ax6 = new ActiveXObject(sF + "." + sF + ".6");
-                               ax6.AllowScriptAccess = "always";
-                           }
-                           catch(e)
-                           {
-                               if(ax6 != null)
-                               {
-                                   version = 6.0;
-                               }
-                           }
-                           if (version == 0) {
-                           try
-                           {
-                               var ax  = new ActiveXObject(sF + "." + sF);
-                               var vS = [];
-                               vS = ax.GetVariable("$version").replace(/[A-Za-z\s]+/g, '').split(',');
-                               version = vS[0] + '.';
-                                       switch((vS[2].toString()).length)
-                                       {
-                                               case 1:
-                                               version += "00";
-                                               break;
-                                               case 2: 
-                                               version += "0";
-                                               break;
-                                       }
-                                       version +=  vS[2];
-                                       version = parseFloat(version);
-
-                           } catch (e) {}
-                           }
-                       }
-
-                       UA.flash = version;
-
-       YAHOO.util.SWFDetect = {                
-                       getFlashVersion : function () {
-                               return version;
-                       },
-
-                       isFlashVersionAtLeast : function (ver) {
-                               return version >= ver;
-                       }       
-               };      
-       
-       var Dom = YAHOO.util.Dom,
-        Event = YAHOO.util.Event,
-        SWFDetect = YAHOO.util.SWFDetect,
-        Lang = YAHOO.lang,
-
-               // private
-               FLASH_CID = "clsid:d27cdb6e-ae6d-11cf-96b8-444553540000",
-               FLASH_TYPE = "application/x-shockwave-flash",
-               FLASH_VER = "10.22",
-               EXPRESS_INSTALL_URL = "http://fpdownload.macromedia.com/pub/flashplayer/update/current/swf/autoUpdater.swf?" + Math.random(),
-               EVENT_HANDLER = "YAHOO.widget.SWF.eventHandler",
-               possibleAttributes = {align:"", allowNetworking:"", allowScriptAccess:"", base:"", bgcolor:"", menu:"", name:"", quality:"", salign:"", scale:"", tabindex:"", wmode:""};
-               
-               /**
-                * The SWF utility is a tool for embedding Flash applications in HTMl pages.
-                * @module swf
-                * @title SWF Utility
-                * @requires yahoo, dom, event
-                * @namespace YAHOO.widget
-                */
-
-               /**
-                * Creates the SWF instance and keeps the configuration data
-                *
-                * @class SWF
-                * @extends YAHOO.util.Element
-                * @constructor
-                * @param {String|HTMLElement} id The id of the element, or the element itself that the SWF will be inserted into.  
-                *        The width and height of the SWF will be set to the width and height of this container element.
-                * @param {String} swfURL The URL of the SWF to be embedded into the page.
-                * @param {Object} p_oAttributes (optional) Configuration parameters for the Flash application and values for Flashvars
-                *        to be passed to the SWF.
-                */
-                               
-YAHOO.widget.SWF = function (p_oElement /*:String*/, swfURL /*:String*/, p_oAttributes /*:Object*/ ) {
-       
-       this._queue = this._queue || [];
-       this._events = this._events || {};
-       this._configs = this._configs || {};
-       
-       /**
-     * The DOM id of this instance of the element. Automatically generated.
-     * @property _id
-     * @type String
-     */
-       this._id = Dom.generateId(null, "yuiswf");
-       
-       if(p_oAttributes.host) this._host = p_oAttributes.host;
-       
-       var _id = this._id;
-    var oElement = Dom.get(p_oElement);
-       var flashVersion = (p_oAttributes["version"] || FLASH_VER);
-       var isFlashVersionRight = SWFDetect.isFlashVersionAtLeast(flashVersion);
-       var canExpressInstall = (UA.flash >= 8.0);
-       var shouldExpressInstall = canExpressInstall && !isFlashVersionRight && p_oAttributes["useExpressInstall"];
-       var flashURL = (shouldExpressInstall)?EXPRESS_INSTALL_URL:swfURL;
-       var objstring = '<object ';
-       var w, h;
-       var flashvarstring = "YUISwfId=" + _id + "&YUIBridgeCallback=" + EVENT_HANDLER;
-       
-       YAHOO.widget.SWF._instances[_id] = this;
-
-    if (oElement && (isFlashVersionRight || shouldExpressInstall) && flashURL) {
-                               objstring += 'id="' + _id + '" '; 
-                               if (UA.ie) {
-                                       objstring += 'classid="' + FLASH_CID + '" '
-                               }
-                               else {
-                                       objstring += 'type="' + FLASH_TYPE + '" data="' + flashURL + '" ';
-                               }
-                               
-                w = "100%";
-                               h = "100%";
-                               
-                               objstring += 'width="' + w + '" height="' + h + '">';
-                               
-                               if (UA.ie) {
-                                       objstring += '<param name="movie" value="' + flashURL + '"/>';
-                               }
-                               
-                               for (var attribute in p_oAttributes.fixedAttributes) {
-                                       if (possibleAttributes.hasOwnProperty(attribute)) {
-                                               objstring += '<param name="' + attribute + '" value="' + p_oAttributes.fixedAttributes[attribute] + '"/>';
-                                       }
-                               }
-
-                               for (var flashvar in p_oAttributes.flashVars) {
-                                       var fvar = p_oAttributes.flashVars[flashvar];
-                                       if (Lang.isString(fvar)) {
-                                               flashvarstring += "&" + flashvar + "=" + encodeURIComponent(fvar);
-                                       }
-                               }
-                               
-                               if (flashvarstring) {
-                                       objstring += '<param name="flashVars" value="' + flashvarstring + '"/>';
-                               }
-                               
-                               objstring += "</object>"; 
-
-                               oElement.innerHTML = objstring;
-                       }
-                       
-                       YAHOO.widget.SWF.superclass.constructor.call(this, Dom.get(_id));
-                       this._swf = Dom.get(_id);       
-};
-
-/**
- * The static collection of all instances of the SWFs on the page.
- * @property _instances
- * @private
- * @type Object
- */
-
-YAHOO.widget.SWF._instances = YAHOO.widget.SWF._instances || {};
-
-/**
- * Handles an event coming from within the SWF and delegate it
- * to a specific instance of SWF.
- * @method eventHandler
- * @param swfid {String} the id of the SWF dispatching the event
- * @param event {Object} the event being transmitted.
- * @private
- */
-YAHOO.widget.SWF.eventHandler = function (swfid, event) {
-       YAHOO.widget.SWF._instances[swfid]._eventHandler(event);
-};
-
-YAHOO.extend(YAHOO.widget.SWF, YAHOO.util.Element, {
-       _eventHandler: function(event)
-       {
-               if (event.type == "swfReady") 
-               {
-                       this.createEvent("swfReady", {fireOnce:true});
-               this.fireEvent("swfReady", event);
-        }
-               else if(event.type == "log")
-               {
-                       YAHOO.log(event.message, event.category, this._host ? this._host.toString() : this.toString());
-               }
-        else 
-               {
-               if(this._host && this._host.fireEvent) 
-                       {
-                               this._host.fireEvent(event.type, event);
-                       }
-                       else
-                       {
-                               this.fireEvent(event.type, event);
-                       }
-        } 
-       },
-               
-       /**
-        * Calls a specific function exposed by the SWF's
-        * ExternalInterface.
-        * @method callSWF
-        * @param func {String} the name of the function to call
-        * @param args {Object} the set of arguments to pass to the function.
-        */
-       callSWF: function (func, args)
-       {
-               if (!args) { 
-                         args= []; 
-               };
-               
-               if (this._swf[func]) {
-               return(this._swf[func].apply(this._swf, args));
-           } else {
-               return null;
-           }
-       },
-       
-       /**
-        * Public accessor to the unique name of the SWF instance.
-        *
-        * @method toString
-        * @return {String} Unique name of the SWF instance.
-        */
-       toString: function()
-       {
-               return "SWF " + this._id;
-       }
-});
-
-       
-})();
-YAHOO.register("swf", YAHOO.widget.SWF, {version: "2.8.0r4", build: "2449"});
diff --git a/koha-tmpl/intranet-tmpl/prog/en/lib/yui/swf/swf-min.js b/koha-tmpl/intranet-tmpl/prog/en/lib/yui/swf/swf-min.js
deleted file mode 100644 (file)
index e249e34..0000000
+++ /dev/null
@@ -1,7 +0,0 @@
-/*
-Copyright (c) 2009, Yahoo! Inc. All rights reserved.
-Code licensed under the BSD License:
-http://developer.yahoo.net/yui/license.txt
-version: 2.8.0r4
-*/
-YAHOO.namespace("widget");(function(){var M=0;var L=YAHOO.env.ua;var P="ShockwaveFlash";if(L.gecko||L.webkit||L.opera){if((mF=navigator.mimeTypes["application/x-shockwave-flash"])){if((eP=mF.enabledPlugin)){var F=[];F=eP.description.replace(/\s[rd]/g,".").replace(/[A-Za-z\s]+/g,"").split(".");M=F[0]+".";switch((F[2].toString()).length){case 1:M+="00";break;case 2:M+="0";break;}M+=F[2];M=parseFloat(M);}}}else{if(L.ie){try{var Q=new ActiveXObject(P+"."+P+".6");Q.AllowScriptAccess="always";}catch(K){if(Q!=null){M=6;}}if(M==0){try{var B=new ActiveXObject(P+"."+P);var F=[];F=B.GetVariable("$version").replace(/[A-Za-z\s]+/g,"").split(",");M=F[0]+".";switch((F[2].toString()).length){case 1:M+="00";break;case 2:M+="0";break;}M+=F[2];M=parseFloat(M);}catch(K){}}}}L.flash=M;YAHOO.util.SWFDetect={getFlashVersion:function(){return M;},isFlashVersionAtLeast:function(R){return M>=R;}};var H=YAHOO.util.Dom,O=YAHOO.util.Event,I=YAHOO.util.SWFDetect,J=YAHOO.lang,G="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000",E="application/x-shockwave-flash",D="10.22",A="http://fpdownload.macromedia.com/pub/flashplayer/update/current/swf/autoUpdater.swf?"+Math.random(),C="YAHOO.widget.SWF.eventHandler",N={align:"",allowNetworking:"",allowScriptAccess:"",base:"",bgcolor:"",menu:"",name:"",quality:"",salign:"",scale:"",tabindex:"",wmode:""};YAHOO.widget.SWF=function(R,i,c){this._queue=this._queue||[];this._events=this._events||{};this._configs=this._configs||{};this._id=H.generateId(null,"yuiswf");if(c.host){this._host=c.host;}var e=this._id;var U=H.get(R);var S=(c["version"]||D);var b=I.isFlashVersionAtLeast(S);var a=(L.flash>=8);var V=a&&!b&&c["useExpressInstall"];var Z=(V)?A:i;var Y="<object ";var f,X;var g="YUISwfId="+e+"&YUIBridgeCallback="+C;YAHOO.widget.SWF._instances[e]=this;if(U&&(b||V)&&Z){Y+='id="'+e+'" ';if(L.ie){Y+='classid="'+G+'" ';}else{Y+='type="'+E+'" data="'+Z+'" ';}f="100%";X="100%";Y+='width="'+f+'" height="'+X+'">';if(L.ie){Y+='<param name="movie" value="'+Z+'"/>';}for(var T in c.fixedAttributes){if(N.hasOwnProperty(T)){Y+='<param name="'+T+'" value="'+c.fixedAttributes[T]+'"/>';}}for(var d in c.flashVars){var W=c.flashVars[d];if(J.isString(W)){g+="&"+d+"="+encodeURIComponent(W);}}if(g){Y+='<param name="flashVars" value="'+g+'"/>';}Y+="</object>";U.innerHTML=Y;}YAHOO.widget.SWF.superclass.constructor.call(this,H.get(e));this._swf=H.get(e);};YAHOO.widget.SWF._instances=YAHOO.widget.SWF._instances||{};YAHOO.widget.SWF.eventHandler=function(R,S){YAHOO.widget.SWF._instances[R]._eventHandler(S);};YAHOO.extend(YAHOO.widget.SWF,YAHOO.util.Element,{_eventHandler:function(R){if(R.type=="swfReady"){this.createEvent("swfReady",{fireOnce:true});this.fireEvent("swfReady",R);}else{if(R.type=="log"){}else{if(this._host&&this._host.fireEvent){this._host.fireEvent(R.type,R);}else{this.fireEvent(R.type,R);}}}},callSWF:function(S,R){if(!R){R=[];}if(this._swf[S]){return(this._swf[S].apply(this._swf,R));}else{return null;}},toString:function(){return"SWF "+this._id;}});})();YAHOO.register("swf",YAHOO.widget.SWF,{version:"2.8.0r4",build:"2449"});
\ No newline at end of file
diff --git a/koha-tmpl/intranet-tmpl/prog/en/lib/yui/swf/swf.js b/koha-tmpl/intranet-tmpl/prog/en/lib/yui/swf/swf.js
deleted file mode 100644 (file)
index 1dfeeec..0000000
+++ /dev/null
@@ -1,268 +0,0 @@
-/*
-Copyright (c) 2009, Yahoo! Inc. All rights reserved.
-Code licensed under the BSD License:
-http://developer.yahoo.net/yui/license.txt
-version: 2.8.0r4
-*/
-YAHOO.namespace("widget");
-
-(function () {
-       
-       var version = 0;
-       var UA = YAHOO.env.ua;
-       var sF = "ShockwaveFlash";
-
-               if (UA.gecko || UA.webkit || UA.opera) {
-                          if ((mF = navigator.mimeTypes['application/x-shockwave-flash'])) {
-                             if ((eP = mF.enabledPlugin)) {
-                                        var vS = [];
-                                vS = eP.description.replace(/\s[rd]/g, '.').replace(/[A-Za-z\s]+/g, '').split('.');
-                               version = vS[0] + '.';
-                                       switch((vS[2].toString()).length)
-                                       {
-                                               case 1:
-                                               version += "00";
-                                               break;
-                                               case 2: 
-                                               version += "0";
-                                               break;
-                                       }
-                                       version +=  vS[2];
-                                       version = parseFloat(version);
-                             }
-                          }
-                       }
-                       else if(UA.ie) {
-                           try
-                           {
-                               var ax6 = new ActiveXObject(sF + "." + sF + ".6");
-                               ax6.AllowScriptAccess = "always";
-                           }
-                           catch(e)
-                           {
-                               if(ax6 != null)
-                               {
-                                   version = 6.0;
-                               }
-                           }
-                           if (version == 0) {
-                           try
-                           {
-                               var ax  = new ActiveXObject(sF + "." + sF);
-                               var vS = [];
-                               vS = ax.GetVariable("$version").replace(/[A-Za-z\s]+/g, '').split(',');
-                               version = vS[0] + '.';
-                                       switch((vS[2].toString()).length)
-                                       {
-                                               case 1:
-                                               version += "00";
-                                               break;
-                                               case 2: 
-                                               version += "0";
-                                               break;
-                                       }
-                                       version +=  vS[2];
-                                       version = parseFloat(version);
-
-                           } catch (e) {}
-                           }
-                       }
-
-                       UA.flash = version;
-
-       YAHOO.util.SWFDetect = {                
-                       getFlashVersion : function () {
-                               return version;
-                       },
-
-                       isFlashVersionAtLeast : function (ver) {
-                               return version >= ver;
-                       }       
-               };      
-       
-       var Dom = YAHOO.util.Dom,
-        Event = YAHOO.util.Event,
-        SWFDetect = YAHOO.util.SWFDetect,
-        Lang = YAHOO.lang,
-
-               // private
-               FLASH_CID = "clsid:d27cdb6e-ae6d-11cf-96b8-444553540000",
-               FLASH_TYPE = "application/x-shockwave-flash",
-               FLASH_VER = "10.22",
-               EXPRESS_INSTALL_URL = "http://fpdownload.macromedia.com/pub/flashplayer/update/current/swf/autoUpdater.swf?" + Math.random(),
-               EVENT_HANDLER = "YAHOO.widget.SWF.eventHandler",
-               possibleAttributes = {align:"", allowNetworking:"", allowScriptAccess:"", base:"", bgcolor:"", menu:"", name:"", quality:"", salign:"", scale:"", tabindex:"", wmode:""};
-               
-               /**
-                * The SWF utility is a tool for embedding Flash applications in HTMl pages.
-                * @module swf
-                * @title SWF Utility
-                * @requires yahoo, dom, event
-                * @namespace YAHOO.widget
-                */
-
-               /**
-                * Creates the SWF instance and keeps the configuration data
-                *
-                * @class SWF
-                * @extends YAHOO.util.Element
-                * @constructor
-                * @param {String|HTMLElement} id The id of the element, or the element itself that the SWF will be inserted into.  
-                *        The width and height of the SWF will be set to the width and height of this container element.
-                * @param {String} swfURL The URL of the SWF to be embedded into the page.
-                * @param {Object} p_oAttributes (optional) Configuration parameters for the Flash application and values for Flashvars
-                *        to be passed to the SWF.
-                */
-                               
-YAHOO.widget.SWF = function (p_oElement /*:String*/, swfURL /*:String*/, p_oAttributes /*:Object*/ ) {
-       
-       this._queue = this._queue || [];
-       this._events = this._events || {};
-       this._configs = this._configs || {};
-       
-       /**
-     * The DOM id of this instance of the element. Automatically generated.
-     * @property _id
-     * @type String
-     */
-       this._id = Dom.generateId(null, "yuiswf");
-       
-       if(p_oAttributes.host) this._host = p_oAttributes.host;
-       
-       var _id = this._id;
-    var oElement = Dom.get(p_oElement);
-       var flashVersion = (p_oAttributes["version"] || FLASH_VER);
-       var isFlashVersionRight = SWFDetect.isFlashVersionAtLeast(flashVersion);
-       var canExpressInstall = (UA.flash >= 8.0);
-       var shouldExpressInstall = canExpressInstall && !isFlashVersionRight && p_oAttributes["useExpressInstall"];
-       var flashURL = (shouldExpressInstall)?EXPRESS_INSTALL_URL:swfURL;
-       var objstring = '<object ';
-       var w, h;
-       var flashvarstring = "YUISwfId=" + _id + "&YUIBridgeCallback=" + EVENT_HANDLER;
-       
-       YAHOO.widget.SWF._instances[_id] = this;
-
-    if (oElement && (isFlashVersionRight || shouldExpressInstall) && flashURL) {
-                               objstring += 'id="' + _id + '" '; 
-                               if (UA.ie) {
-                                       objstring += 'classid="' + FLASH_CID + '" '
-                               }
-                               else {
-                                       objstring += 'type="' + FLASH_TYPE + '" data="' + flashURL + '" ';
-                               }
-                               
-                w = "100%";
-                               h = "100%";
-                               
-                               objstring += 'width="' + w + '" height="' + h + '">';
-                               
-                               if (UA.ie) {
-                                       objstring += '<param name="movie" value="' + flashURL + '"/>';
-                               }
-                               
-                               for (var attribute in p_oAttributes.fixedAttributes) {
-                                       if (possibleAttributes.hasOwnProperty(attribute)) {
-                                               objstring += '<param name="' + attribute + '" value="' + p_oAttributes.fixedAttributes[attribute] + '"/>';
-                                       }
-                               }
-
-                               for (var flashvar in p_oAttributes.flashVars) {
-                                       var fvar = p_oAttributes.flashVars[flashvar];
-                                       if (Lang.isString(fvar)) {
-                                               flashvarstring += "&" + flashvar + "=" + encodeURIComponent(fvar);
-                                       }
-                               }
-                               
-                               if (flashvarstring) {
-                                       objstring += '<param name="flashVars" value="' + flashvarstring + '"/>';
-                               }
-                               
-                               objstring += "</object>"; 
-
-                               oElement.innerHTML = objstring;
-                       }
-                       
-                       YAHOO.widget.SWF.superclass.constructor.call(this, Dom.get(_id));
-                       this._swf = Dom.get(_id);       
-};
-
-/**
- * The static collection of all instances of the SWFs on the page.
- * @property _instances
- * @private
- * @type Object
- */
-
-YAHOO.widget.SWF._instances = YAHOO.widget.SWF._instances || {};
-
-/**
- * Handles an event coming from within the SWF and delegate it
- * to a specific instance of SWF.
- * @method eventHandler
- * @param swfid {String} the id of the SWF dispatching the event
- * @param event {Object} the event being transmitted.
- * @private
- */
-YAHOO.widget.SWF.eventHandler = function (swfid, event) {
-       YAHOO.widget.SWF._instances[swfid]._eventHandler(event);
-};
-
-YAHOO.extend(YAHOO.widget.SWF, YAHOO.util.Element, {
-       _eventHandler: function(event)
-       {
-               if (event.type == "swfReady") 
-               {
-                       this.createEvent("swfReady", {fireOnce:true});
-               this.fireEvent("swfReady", event);
-        }
-               else if(event.type == "log")
-               {
-               }
-        else 
-               {
-               if(this._host && this._host.fireEvent) 
-                       {
-                               this._host.fireEvent(event.type, event);
-                       }
-                       else
-                       {
-                               this.fireEvent(event.type, event);
-                       }
-        } 
-       },
-               
-       /**
-        * Calls a specific function exposed by the SWF's
-        * ExternalInterface.
-        * @method callSWF
-        * @param func {String} the name of the function to call
-        * @param args {Object} the set of arguments to pass to the function.
-        */
-       callSWF: function (func, args)
-       {
-               if (!args) { 
-                         args= []; 
-               };
-               
-               if (this._swf[func]) {
-               return(this._swf[func].apply(this._swf, args));
-           } else {
-               return null;
-           }
-       },
-       
-       /**
-        * Public accessor to the unique name of the SWF instance.
-        *
-        * @method toString
-        * @return {String} Unique name of the SWF instance.
-        */
-       toString: function()
-       {
-               return "SWF " + this._id;
-       }
-});
-
-       
-})();
-YAHOO.register("swf", YAHOO.widget.SWF, {version: "2.8.0r4", build: "2449"});
diff --git a/koha-tmpl/intranet-tmpl/prog/en/lib/yui/swfdetect/swfdetect-debug.js b/koha-tmpl/intranet-tmpl/prog/en/lib/yui/swfdetect/swfdetect-debug.js
deleted file mode 100644 (file)
index 84051eb..0000000
+++ /dev/null
@@ -1,93 +0,0 @@
-/*
-Copyright (c) 2009, Yahoo! Inc. All rights reserved.
-Code licensed under the BSD License:
-http://developer.yahoo.net/yui/license.txt
-version: 2.8.0r4
-*/
-/**
- * Utility for Flash version detection
- * @namespace YAHOO.util
- * @module swfdetect
- */
-YAHOO.namespace("util");
-
-/**
- * Flafh detection utility.
- * @class SWFDetect
- * @static
- */
-(function () {
-       
-var version = 0;
-var uA = YAHOO.env.ua;
-var sF = "ShockwaveFlash";
-
-       if (uA.gecko || uA.webkit || uA.opera) {
-                  if ((mF = navigator.mimeTypes['application/x-shockwave-flash'])) {
-                     if ((eP = mF.enabledPlugin)) {
-                                var vS = [];
-                        vS = eP.description.replace(/\s[rd]/g, '.').replace(/[A-Za-z\s]+/g, '').split('.');
-                       version = vS[0] + '.';
-                               switch((vS[2].toString()).length)
-                               {
-                                       case 1:
-                                       version += "00";
-                                       break;
-                                       case 2: 
-                                       version += "0";
-                                       break;
-                               }
-                               version +=  vS[2];
-                               version = parseFloat(version);
-                     }
-                  }
-               }
-               else if(uA.ie) {
-                   try
-                   {
-                       var ax6 = new ActiveXObject(sF + "." + sF + ".6");
-                       ax6.AllowScriptAccess = "always";
-                   }
-                   catch(e)
-                   {
-                       if(ax6 != null)
-                       {
-                           version = 6.0;
-                       }
-                   }
-                   if (version == 0) {
-                   try
-                   {
-                       var ax  = new ActiveXObject(sF + "." + sF);
-                       var vS = [];
-                       vS = ax.GetVariable("$version").replace(/[A-Za-z\s]+/g, '').split(',');
-                       version = vS[0] + '.';
-                               switch((vS[2].toString()).length)
-                               {
-                                       case 1:
-                                       version += "00";
-                                       break;
-                                       case 2: 
-                                       version += "0";
-                                       break;
-                               }
-                               version +=  vS[2];
-                               version = parseFloat(version);
-                               
-                   } catch (e) {}
-                   }
-               }
-               
-               uA.flash = version;
-               
-YAHOO.util.SWFDetect = {               
-               getFlashVersion : function () {
-                       return version;
-               },
-               
-               isFlashVersionAtLeast : function (ver) {
-                       return version >= ver;
-               }       
-       };
-})();
-YAHOO.register("swfdetect", YAHOO.util.SWFDetect, {version: "2.8.0r4", build: "2449"});
diff --git a/koha-tmpl/intranet-tmpl/prog/en/lib/yui/swfdetect/swfdetect-min.js b/koha-tmpl/intranet-tmpl/prog/en/lib/yui/swfdetect/swfdetect-min.js
deleted file mode 100644 (file)
index 209f033..0000000
+++ /dev/null
@@ -1,7 +0,0 @@
-/*
-Copyright (c) 2009, Yahoo! Inc. All rights reserved.
-Code licensed under the BSD License:
-http://developer.yahoo.net/yui/license.txt
-version: 2.8.0r4
-*/
-YAHOO.namespace("util");(function(){var A=0;var B=YAHOO.env.ua;var C="ShockwaveFlash";if(B.gecko||B.webkit||B.opera){if((mF=navigator.mimeTypes["application/x-shockwave-flash"])){if((eP=mF.enabledPlugin)){var G=[];G=eP.description.replace(/\s[rd]/g,".").replace(/[A-Za-z\s]+/g,"").split(".");A=G[0]+".";switch((G[2].toString()).length){case 1:A+="00";break;case 2:A+="0";break;}A+=G[2];A=parseFloat(A);}}}else{if(B.ie){try{var D=new ActiveXObject(C+"."+C+".6");D.AllowScriptAccess="always";}catch(F){if(D!=null){A=6;}}if(A==0){try{var E=new ActiveXObject(C+"."+C);var G=[];G=E.GetVariable("$version").replace(/[A-Za-z\s]+/g,"").split(",");A=G[0]+".";switch((G[2].toString()).length){case 1:A+="00";break;case 2:A+="0";break;}A+=G[2];A=parseFloat(A);}catch(F){}}}}B.flash=A;YAHOO.util.SWFDetect={getFlashVersion:function(){return A;},isFlashVersionAtLeast:function(H){return A>=H;}};})();YAHOO.register("swfdetect",YAHOO.util.SWFDetect,{version:"2.8.0r4",build:"2449"});
\ No newline at end of file
diff --git a/koha-tmpl/intranet-tmpl/prog/en/lib/yui/swfdetect/swfdetect.js b/koha-tmpl/intranet-tmpl/prog/en/lib/yui/swfdetect/swfdetect.js
deleted file mode 100644 (file)
index 84051eb..0000000
+++ /dev/null
@@ -1,93 +0,0 @@
-/*
-Copyright (c) 2009, Yahoo! Inc. All rights reserved.
-Code licensed under the BSD License:
-http://developer.yahoo.net/yui/license.txt
-version: 2.8.0r4
-*/
-/**
- * Utility for Flash version detection
- * @namespace YAHOO.util
- * @module swfdetect
- */
-YAHOO.namespace("util");
-
-/**
- * Flafh detection utility.
- * @class SWFDetect
- * @static
- */
-(function () {
-       
-var version = 0;
-var uA = YAHOO.env.ua;
-var sF = "ShockwaveFlash";
-
-       if (uA.gecko || uA.webkit || uA.opera) {
-                  if ((mF = navigator.mimeTypes['application/x-shockwave-flash'])) {
-                     if ((eP = mF.enabledPlugin)) {
-                                var vS = [];
-                        vS = eP.description.replace(/\s[rd]/g, '.').replace(/[A-Za-z\s]+/g, '').split('.');
-                       version = vS[0] + '.';
-                               switch((vS[2].toString()).length)
-                               {
-                                       case 1:
-                                       version += "00";
-                                       break;
-                                       case 2: 
-                                       version += "0";
-                                       break;
-                               }
-                               version +=  vS[2];
-                               version = parseFloat(version);
-                     }
-                  }
-               }
-               else if(uA.ie) {
-                   try
-                   {
-                       var ax6 = new ActiveXObject(sF + "." + sF + ".6");
-                       ax6.AllowScriptAccess = "always";
-                   }
-                   catch(e)
-                   {
-                       if(ax6 != null)
-                       {
-                           version = 6.0;
-                       }
-                   }
-                   if (version == 0) {
-                   try
-                   {
-                       var ax  = new ActiveXObject(sF + "." + sF);
-                       var vS = [];
-                       vS = ax.GetVariable("$version").replace(/[A-Za-z\s]+/g, '').split(',');
-                       version = vS[0] + '.';
-                               switch((vS[2].toString()).length)
-                               {
-                                       case 1:
-                                       version += "00";
-                                       break;
-                                       case 2: 
-                                       version += "0";
-                                       break;
-                               }
-                               version +=  vS[2];
-                               version = parseFloat(version);
-                               
-                   } catch (e) {}
-                   }
-               }
-               
-               uA.flash = version;
-               
-YAHOO.util.SWFDetect = {               
-               getFlashVersion : function () {
-                       return version;
-               },
-               
-               isFlashVersionAtLeast : function (ver) {
-                       return version >= ver;
-               }       
-       };
-})();
-YAHOO.register("swfdetect", YAHOO.util.SWFDetect, {version: "2.8.0r4", build: "2449"});
diff --git a/koha-tmpl/intranet-tmpl/prog/en/lib/yui/swfstore/swf.js b/koha-tmpl/intranet-tmpl/prog/en/lib/yui/swfstore/swf.js
deleted file mode 100644 (file)
index a6a90f6..0000000
+++ /dev/null
@@ -1,238 +0,0 @@
-/*
-Copyright (c) 2009, Yahoo! Inc. All rights reserved.
-Code licensed under the BSD License:
-http://developer.yahoo.net/yui/license.txt
-version: 2.8.0r4
-*/
-YAHOO.namespace("widget");
-
-(function () {
-       
-       var version = 0;
-       var UA = YAHOO.env.ua;
-       var sF = "ShockwaveFlash";
-
-               if (UA.gecko || UA.webkit || UA.opera) {
-                          if ((mF = navigator.mimeTypes['application/x-shockwave-flash'])) {
-                             if ((eP = mF.enabledPlugin)) {
-                                        var vS = [];
-                                vS = eP.description.replace(/\s[rd]/g, '.').replace(/[A-Za-z\s]+/g, '').split('.');
-                               version = vS[0] + '.';
-                                       switch((vS[2].toString()).length)
-                                       {
-                                               case 1:
-                                               version += "00";
-                                               break;
-                                               case 2: 
-                                               version += "0";
-                                               break;
-                                       }
-                                       version +=  vS[2];
-                                       version = parseFloat(version);
-                             }
-                          }
-                       }
-                       else if(UA.ie) {
-                           try
-                           {
-                               var ax6 = new ActiveXObject(sF + "." + sF + ".6");
-                               ax6.AllowScriptAccess = "always";
-                           }
-                           catch(e)
-                           {
-                               if(ax6 != null)
-                               {
-                                   version = 6.0;
-                               }
-                           }
-                           if (version == 0) {
-                           try
-                           {
-                               var ax  = new ActiveXObject(sF + "." + sF);
-                               var vS = [];
-                               vS = ax.GetVariable("$version").replace(/[A-Za-z\s]+/g, '').split(',');
-                               version = vS[0] + '.';
-                                       switch((vS[2].toString()).length)
-                                       {
-                                               case 1:
-                                               version += "00";
-                                               break;
-                                               case 2: 
-                                               version += "0";
-                                               break;
-                                       }
-                                       version +=  vS[2];
-                                       version = parseFloat(version);
-
-                           } catch (e) {}
-                           }
-                       }
-
-                       UA.flash = version;
-
-       YAHOO.util.SWFDetect = {                
-                       getFlashVersion : function () {
-                               return version;
-                       },
-
-                       isFlashVersionAtLeast : function (ver) {
-                               return version >= ver;
-                       }       
-               };      
-       
-       var Dom = YAHOO.util.Dom,
-        Event = YAHOO.util.Event,
-        SWFDetect = YAHOO.util.SWFDetect,
-        Lang = YAHOO.lang,
-
-               // private
-               FLASH_CID = "clsid:d27cdb6e-ae6d-11cf-96b8-444553540000",
-               FLASH_TYPE = "application/x-shockwave-flash",
-               FLASH_VER = "10.22",
-               EXPRESS_INSTALL_URL = "http://fpdownload.macromedia.com/pub/flashplayer/update/current/swf/autoUpdater.swf?" + Math.random(),
-               EVENT_HANDLER = "YAHOO.widget.SWF.eventHandler",
-               possibleAttributes = {align:"", allowNetworking:"", allowScriptAccess:"", base:"", bgcolor:"", menu:"", name:"", quality:"", salign:"", scale:"", tabindex:"", wmode:""};
-               
-               /**
-                * The SWF utility is a tool for embedding Flash applications in HTMl pages.
-                * @module swf
-                * @title SWF Utility
-                * @requires yahoo, dom, event
-                * @namespace YAHOO.widget
-                */
-
-               /**
-                * Creates the SWF instance and keeps the configuration data
-                *
-                * @class SWF
-                * @extends YAHOO.util.Element
-                * @constructor
-                * @param {String|HTMLElement} id The id of the element, or the element itself that the SWF will be inserted into.  
-                *        The width and height of the SWF will be set to the width and height of this container element.
-                * @param {String} swfURL The URL of the SWF to be embedded into the page.
-                * @param {Object} p_oAttributes (optional) Configuration parameters for the Flash application and values for Flashvars
-                *        to be passed to the SWF.
-                */
-                               
-YAHOO.widget.SWF = function (p_oElement /*:String*/, swfURL /*:String*/, p_oAttributes /*:Object*/ ) {
-       
-       this._queue = this._queue || [];
-       this._events = this._events || {};
-       this._configs = this._configs || {};
-       
-       /**
-     * The DOM id of this instance of the element. Automatically generated.
-     * @property _id
-     * @type String
-     */
-       this._id = Dom.generateId(null, "yuiswf");
-       
-       var _id = this._id;
-    var oElement = Dom.get(p_oElement);
-       var flashVersion = (p_oAttributes["version"] || FLASH_VER);
-       var isFlashVersionRight = SWFDetect.isFlashVersionAtLeast(flashVersion);
-       var canExpressInstall = (UA.flash >= 8.0);
-       var shouldExpressInstall = canExpressInstall && !isFlashVersionRight && p_oAttributes["useExpressInstall"];
-       var flashURL = (shouldExpressInstall)?EXPRESS_INSTALL_URL:swfURL;
-       var objstring = '<object ';
-       var w, h;
-       var flashvarstring = "YUISwfId=" + _id + "&YUIBridgeCallback=" + EVENT_HANDLER + "&";
-       
-       YAHOO.widget.SWF._instances[_id] = this;
-
-    if (oElement && (isFlashVersionRight || shouldExpressInstall) && flashURL) {
-                               objstring += 'id="' + _id + '" '; 
-                               if (UA.ie) {
-                                       objstring += 'classid="' + FLASH_CID + '" '
-                               }
-                               else {
-                                       objstring += 'type="' + FLASH_TYPE + '" data="' + flashURL + '" ';
-                               }
-                               
-                w = "100%";
-                               h = "100%";
-                               
-                               objstring += 'width="' + w + '" height="' + h + '">';
-                               
-                               if (UA.ie) {
-                                       objstring += '<param name="movie" value="' + flashURL + '"/>';
-                               }
-                               
-                               for (var attribute in p_oAttributes.fixedAttributes) {
-                                       if (possibleAttributes.hasOwnProperty(attribute)) {
-                                               objstring += '<param name="' + attribute + '" value="' + p_oAttributes.fixedAttributes[attribute] + '"/>';
-                                       }
-                               }
-
-                               for (var flashvar in p_oAttributes.flashVars) {
-                                       var fvar = p_oAttributes.flashVars[flashvar];
-                                       if (Lang.isString(fvar)) {
-                                               flashvarstring += "&" + flashvar + "=" + encodeURIComponent(fvar);
-                                       }
-                               }
-                               
-                               if (flashvarstring) {
-                                       objstring += '<param name="flashVars" value="' + flashvarstring + '"/>';
-                               }
-                               
-                               objstring += "</object>"; 
-
-                               oElement.innerHTML = objstring;
-                       }
-                       
-                       YAHOO.widget.SWF.superclass.constructor.call(this, Dom.get(_id));
-                       this._swf = Dom.get(_id);       
-};
-
-/**
- * The static collection of all instances of the SWFs on the page.
- * @property _instances
- * @private
- * @type Object
- */
-
-YAHOO.widget.SWF._instances = YAHOO.widget.SWF._instances || {};
-
-/**
- * Handles an event coming from within the SWF and delegate it
- * to a specific instance of SWF.
- * @method eventHandler
- * @param swfid {String} the id of the SWF dispatching the event
- * @param event {Object} the event being transmitted.
- * @private
- */
-YAHOO.widget.SWF.eventHandler = function (swfid, event) {
-       YAHOO.widget.SWF._instances[swfid]._eventHandler(event);
-};
-
-YAHOO.extend(YAHOO.widget.SWF, YAHOO.util.Element, {
-       _eventHandler: function(event)
-       {
-               if (event.type == "swfReady") {
-                       this.createEvent("swfReady");
-               this.fireEvent("swfReady", event);
-        }
-        else {
-               this.fireEvent(event.type, event);
-        } 
-       },      
-       /**
-        * Calls a specific function exposed by the SWF's
-        * ExternalInterface.
-        * @method callSWF
-        * @param func {String} the name of the function to call
-        * @param args {Object} the set of arguments to pass to the function.
-        */
-       callSWF: function (func, args)
-       {
-               if (this._swf[func]) {
-               return(this._swf[func].apply(this._swf, args));
-           } else {
-               return null;
-           }
-       }
-});
-
-       
-})();
-YAHOO.register("swf", YAHOO.widget.SWF, {version: "2.8.0r4", build: "2449"});
diff --git a/koha-tmpl/intranet-tmpl/prog/en/lib/yui/swfstore/swfstore-debug.js b/koha-tmpl/intranet-tmpl/prog/en/lib/yui/swfstore/swfstore-debug.js
deleted file mode 100644 (file)
index 7b1158c..0000000
+++ /dev/null
@@ -1,470 +0,0 @@
-/*
-Copyright (c) 2009, Yahoo! Inc. All rights reserved.
-Code licensed under the BSD License:
-http://developer.yahoo.net/yui/license.txt
-version: 2.8.0r4
-*/
-/**
- * Provides a swf based storage implementation
- *
- * @module swfstore
- */
-
-/**
- * Class for the YUI SWFStore util.
- *
- * @namespace YAHOO.util
- * @class SWFStore
- * @uses YAHOO.util.AttributeProvider
- * @constructor
- * @param containerId {HTMLElement} Container element for the Flash Player instance.
- * @param shareData {Boolean} Whether or not data should be shared across browsers
- * @param useCompression {Boolean} Container element for the Flash Player instance.
- */
-YAHOO.util.SWFStore = function(containerID, shareData, useCompression)
-{
-                       //browser detection
-                       var browser;
-                       var newValue;
-                       //convert Booleans to strings for flashvars compatibility
-                       shareData = shareData.toString();
-                       useCompression = useCompression.toString();
-                       
-                       if (YAHOO.env.ua.ie) browser = "ie";
-                       else if (YAHOO.env.ua.gecko) browser =  "gecko";  //Firefox
-                       else if (YAHOO.env.ua.webkit) browser =  "webkit"; // Safari, Webkit 
-                       else if (YAHOO.env.ua.caja) browser =  "caja";   
-                       else if (YAHOO.env.ua.opera) browser =  "opera"; 
-                       else browser =  "other";
-
-                       if(YAHOO.util.Cookie.get("swfstore") == null || YAHOO.util.Cookie.get("swfstore") == "null" || YAHOO.util.Cookie.get("swfstore") == "")
-                       {
-
-                               newValue = Math.round(Math.random() * Math.PI * 100000); 
-                               YAHOO.util.Cookie.set("swfstore", newValue);
-
-                       }
-
-                       else 
-                       {
-                               newValue = YAHOO.util.Cookie.get("swfstore");
-                       }
-
-                       
-                       var params = 
-                               { 
-                                       version: 9.115,
-                                       useExpressInstall: false,
-                                       fixedAttributes:
-                                               {allowScriptAccess:"always", allowNetworking:"all", scale:"noScale"},
-                                               flashVars:
-                                                       {shareData: shareData, browser: newValue, useCompression: useCompression}
-                                };
-       
-       
-       
-       this.embeddedSWF = new YAHOO.widget.SWF(containerID, YAHOO.util.SWFStore.SWFURL, params); 
-       
-       
-       /**
-        * Fires when an error occurs
-        *
-        * @event error
-        * @param event.type {String} The event type
-        * @param event.message {String} The data 
-        * 
-        */
-       this.createEvent("error");
-
-       /**
-        * Fires when there is not enough space available to store the data
-        *
-        * @event quotaExceededError
-        * @param event.type {String} The event type
-        * @param event.message {String} The data 
-        * 
-        */
-       this.createEvent("quotaExceededError");
-
-       /**
-        * Fires when the url matching for the security whitelist is invalid.
-     * If no whitelist is used, fires when page's url does not match the embedded swf's url
-        *
-        * @event securityError
-        * @param event.type {String} The event type
-        * @param event.message {String} The data 
-        * 
-        */
-       this.createEvent("securityError");
-       
-       /**
-        * Fires when a store is saved successfully
-        *
-        * @event save
-        * @param event.type {String} The event type
-        * 
-        */
-       this.createEvent("save");
-
-       /**
-        * Fires when a store is successfully cleared
-        *
-        * @event clear
-        * @param event.type {String} The event type
-        * 
-        */
-       this.createEvent("clear");
-               
-       
-       /**
-        * Fires when the save is pending, due to a request for additional storage
-        *
-        * @event error
-        * @param event.type {String} The event type
-        * 
-        */
-       this.createEvent("pending");
-       
-       
-       /**
-        * Fires as the settings dialog displays
-        *
-        * @event openingDialog
-        * @param event.type {String} The event type
-        * 
-        */
-       this.createEvent("openingDialog");
-       
-       /**
-        * Fires when a settings dialog is not able to be displayed due to 
-        * the SWF not being large enough to show it. In this case, the developer
-        * needs to resize the SWF to width of 215px and height of 138px or above, 
-        * or display an external settings page.
-        *
-        * @event inadequateDimensions
-        * @param event.type {String} The event type
-        * 
-        */
-       this.createEvent("inadequateDimensions");
-};
-
-YAHOO.extend(YAHOO.util.SWFStore, YAHOO.util.AttributeProvider,
-{
-
-
-       
-       /**
-        * Method to attach listeners to events
-        * @param type {String} The tyep of event to listen for
-        * @param listener {String} The function to call
-        */
-       on: function(type, listener)
-       {
-               this.embeddedSWF.addListener(type, listener); 
-       },
-
-       /**
-        * Method to attach listeners to events
-        * @param type {String} The tyep of event to listen for
-        * @param listener {String} The function to call
-        */
-       addListener: function(type, listener)
-       {
-               YAHOO.log("adding '" + type + "' listener");
-               this.embeddedSWF.addListener(type, listener); 
-       },
-
-       /**
-        * Public accessor to the unique name of the SWFStore instance.
-        *
-        * @method toString
-        * @return {String} Unique name of the SWFStore instance.
-        */
-       toString: function()
-       {
-               return "SWFStore " + this._id;
-       },
-       
-       /**
-        * Public accessor to the unique name of the SWFStore instance.
-        *
-        * @method getShareData
-        * @return {Boolean} Whether or not data is being shared among browsers
-        */
-       getShareData: function()
-       {
-               return this.embeddedSWF.callSWF("getShareData");
-       },
-       /**
-        * Public accessor to the unique name of the SWFStore instance.
-        *
-        * @method setShareData
-        * @param {Boolean} Whether or not to share among browsers
-        */
-       setShareData: function(value)
-       {
-               YAHOO.log("Setting share data to " + value);
-               this.embeddedSWF.callSWF("setShareData", [value]);
-       },
-
-       /**
-        * Determines if SWF's visible area is large enough to fit the settings panel
-        *
-        * @method hasAdequateDimensions
-        * @return {Boolean} Whether or not to share among browsers
-        */
-       hasAdequateDimensions: function()
-       {
-               YAHOO.log("dimensions adequate? " + this.embeddedSWF.callSWF("hasAdequateDimensions"));
-               return this.embeddedSWF.callSWF("hasAdequateDimensions");
-       },
-
-       /**
-        * Public accessor to the unique name of the SWFStore instance.
-        *
-        * @method getUseCompression
-        * @return {Boolean} Whether or compression is being used
-        */
-       getUseCompression: function()
-       {
-               return this.embeddedSWF.callSWF("getUseCompression");
-       },
-
-       /**
-        * Public accessor to the unique name of the SWFStore instance.
-        *
-        * @method setUseCompression
-        * @param {Boolean} Whether or to compress stored data
-        */
-       setUseCompression: function(value)
-       {
-               YAHOO.log("Setting compression to " + value);
-               this.embeddedSWF.callSWF("setUseCompression", [value]);
-       },      
-
-          /**
-           * Saves data to local storage. It returns a String that can
-               * be one of three values: "true" if the storage succeeded; "false" if the user
-               * has denied storage on their machine or storage space allotted is not sufficient.
-               * <p>The size limit for the passed parameters is ~40Kb.</p>
-               * @method setItem
-           * @param data {Object} The data to store
-           * @param location {String} The name of the "cookie" or store 
-               * @return {Boolean} Whether or not the save was successful
-           * 
-           */
-               setItem: function(location,data) 
-               {       
-                       YAHOO.log("setting " + location + " to " + data);
-                       return this.embeddedSWF.callSWF("setItem", [location, data]);
-               } ,
-               
-          /**
-           * Returns the value of the store at the specified index, if any.
-               * @method getValueAt
-           * @param index {Number} The index of the stored item
-           * @return {Object} The value of the store at that index
-           * 
-           */      
-               getValueAt: function(index) 
-               {
-                       YAHOO.log("value at " + index + " is " + this.embeddedSWF.callSWF("getValueAt", [index]) );
-                       return this.embeddedSWF.callSWF("getValueAt", [index]);
-               },
-
-          /**
-           * Returns the key name in storage, if any, at the specified index.
-           * 
-           * @param index {Number} The index of the "cookie" or store
-               * @return {Object}The data
-               * @method setItem
-           * 
-           */      
-               getNameAt: function(index) 
-               {
-                       YAHOO.log("name at " + index + " is " + this.embeddedSWF.callSWF("getNameAt", [index]) );
-                       return this.embeddedSWF.callSWF("getNameAt", [index]);
-               },
-               
-               
-           /**
-           * Returns the value of the item in storage, if any.
-           * @method getValueOf
-           * @param location {String} The name of the "cookie" or store
-               * @return {Object} The data
-           * 
-           */
-               getValueOf: function(location) 
-               {
-                       YAHOO.log("value of " + location + " is " + this.embeddedSWF.callSWF("getValueOf", [location]) );
-                       return this.embeddedSWF.callSWF("getValueOf", [location]);
-               } ,
-
-           /**
-           *  Returns the data type of of the storage.
-               * <p>May be one of the following types:
-           * <ul>
-           * <li>boolean</li>
-           * <li>function</li>
-           * <li>number</li>
-           * <li>object</li>
-           * <li>string</li>
-           * <li>number</li>
-           * <li>xml</li>
-           * </ul>
-           * </p>
-           * @method getTypeOf
-           * @param location {String} The name of the "cookie" or store
-               * @return {String} The type
-           * 
-           */
-               getTypeOf: function(location) 
-               {
-                       YAHOO.log("type of " + location + " is " + this.embeddedSWF.callSWF("getTypeOf", [location]) );
-                       return this.embeddedSWF.callSWF("getTypeOf", [location]);
-               } ,
-
-           /**
-           *  Returns the data type of of the storage.
-               * <p>May be one of the following types:
-           * <ul>
-           * <li>boolean</li>
-           * <li>function</li>
-           * <li>number</li>
-           * <li>object</li>
-           * <li>string</li>
-           * <li>number</li>
-           * <li>xml</li>
-           * </ul>
-           * </p>
-           * @method getTypeAt
-           * @param location {Number} The index of the "cookie" or store
-               * @return {String} The type
-           * 
-           */
-               getTypeAt: function(index) 
-               {
-                       YAHOO.log("type at " + index + " is " + this.embeddedSWF.callSWF("getTypeAt", [index]) );
-                       return this.embeddedSWF.callSWF("getTypeAt", [index]);
-               } ,
-                
-               /**
-                * Returns the items in storage as an array.
-                * @method getItems
-                * @return {Object} The data.
-                * @public
-                */
-               getItems: function() 
-               {
-                       return this.embeddedSWF.callSWF("getItems", []);
-               },
-
-           /**
-           * Removes the item in storage, if any.
-           * @method removeItem
-           * @param location {String} The name of the "cookie" or store
-           * 
-           */
-               removeItem: function(location) 
-               {
-                       YAHOO.log("removing " + location);
-                       return this.embeddedSWF.callSWF("removeItem", [location]);
-               } ,
-
-           /**
-           * Removes the item in storage at the specified index, if any.
-           * @method removeItem
-           * @param index {Number} The index of the "cookie" or store
-           * 
-           */
-               removeItemAt: function(index) 
-               {
-                       YAHOO.log("removing item at " + index);
-                       return this.embeddedSWF.callSWF("removeItemAt", [index]);
-               } ,
-               
-           /**
-           * Returns the number of items in storage, if any.
-           * @method getLength
-           * @return {Number} The number of items
-           * 
-           */
-               getLength: function() 
-               {
-                       return this.embeddedSWF.callSWF("getLength", []);
-               } ,
-               
-          /**
-           * Removes all data in local storage for this domain.
-           * <p>Be careful when using this method, as it may 
-           * remove stored information that is used by other applications
-           * in this domain </p>
-           * @method clear
-           */          
-               clear: function() 
-               {
-                       YAHOO.log("clearing all items");
-                       return this.embeddedSWF.callSWF("clear", []);
-               } ,
-               
-           /**
-            * Gets the current size, in KB, of the amount of space taken by the current store.
-                * Note that this is calculated, and may take time depending on the number of items stored
-            * @method calculateCurrentSize
-            * @return {Number} The size of the store in KB
-            */         
-               calculateCurrentSize: function() 
-               {
-                       YAHOO.log("calculating size");
-                       return this.embeddedSWF.callSWF("calculateCurrentSize", []);
-               } ,
-               
-           /**
-            * Gets the timestamp of the last store. This value is automatically set when 
-            * data is stored.
-            * @method getModificationDate
-            * @return {Date} A Date object
-            */
-               getModificationDate: function() 
-               {
-                       YAHOO.log("getting date");
-                       return this.embeddedSWF.callSWF("getModificationDate", []);
-               } ,
-               
-               /**
-               * This method requests more storage (if the amount is above 100KB or the current setting).
-               * 
-               * The request dialog has to be displayed within the Flash player itself
-               * so the SWF it is called from must be visible and at least 215px x 138px (w x h) in size.
-               * 
-               * @method setSize
-               * @param value {Number} The size, in KB
-               * @return {String} 
-               */              
-               setSize: function(value) 
-               {
-                       var result = this.embeddedSWF.callSWF("setSize", [value]);
-                       YAHOO.log("attempt to set size to " + value*1024 + " bytes resulted in " + result);
-                       return result;
-               } ,
-               
-               /**
-                * Displays the settings dialog to allow the user to configure
-                * storage settings manually. If the SWF height and width are smaller than
-                * what is allowable to display the local settings panel,
-                * an openExternalDialog message will be sent to JavaScript.
-                * @method displaySettings
-                */             
-               displaySettings: function() 
-               {
-                       YAHOO.log("attempting to show settings. are dimensions adequate? " + this.embeddedSWF.callSWF("hasAdequateDimensions"));
-                       this.embeddedSWF.callSWF("displaySettings", []);
-               } 
-
-});
-
-
-YAHOO.util.SWFStore.SWFURL = "swfstore.swf";
-
-YAHOO.register("swfstore", YAHOO.util.SWFStore, {version: "2.8.0r4", build: "2449"});
-YAHOO.register("swfstore", YAHOO.util.SWFStore, {version: "2.8.0r4", build: "2449"});
diff --git a/koha-tmpl/intranet-tmpl/prog/en/lib/yui/swfstore/swfstore-min.js b/koha-tmpl/intranet-tmpl/prog/en/lib/yui/swfstore/swfstore-min.js
deleted file mode 100644 (file)
index f4e12d2..0000000
+++ /dev/null
@@ -1,7 +0,0 @@
-/*
-Copyright (c) 2009, Yahoo! Inc. All rights reserved.
-Code licensed under the BSD License:
-http://developer.yahoo.net/yui/license.txt
-version: 2.8.0r4
-*/
-YAHOO.util.SWFStore=function(A,C,D){var B;var E;C=C.toString();D=D.toString();if(YAHOO.env.ua.ie){B="ie";}else{if(YAHOO.env.ua.gecko){B="gecko";}else{if(YAHOO.env.ua.webkit){B="webkit";}else{if(YAHOO.env.ua.caja){B="caja";}else{if(YAHOO.env.ua.opera){B="opera";}else{B="other";}}}}}if(YAHOO.util.Cookie.get("swfstore")==null||YAHOO.util.Cookie.get("swfstore")=="null"||YAHOO.util.Cookie.get("swfstore")==""){E=Math.round(Math.random()*Math.PI*100000);YAHOO.util.Cookie.set("swfstore",E);}else{E=YAHOO.util.Cookie.get("swfstore");}var F={version:9.115,useExpressInstall:false,fixedAttributes:{allowScriptAccess:"always",allowNetworking:"all",scale:"noScale"},flashVars:{shareData:C,browser:E,useCompression:D}};this.embeddedSWF=new YAHOO.widget.SWF(A,YAHOO.util.SWFStore.SWFURL,F);this.createEvent("error");this.createEvent("quotaExceededError");this.createEvent("securityError");this.createEvent("save");this.createEvent("clear");this.createEvent("pending");this.createEvent("openingDialog");this.createEvent("inadequateDimensions");};YAHOO.extend(YAHOO.util.SWFStore,YAHOO.util.AttributeProvider,{on:function(A,B){this.embeddedSWF.addListener(A,B);},addListener:function(A,B){this.embeddedSWF.addListener(A,B);},toString:function(){return"SWFStore "+this._id;},getShareData:function(){return this.embeddedSWF.callSWF("getShareData");},setShareData:function(A){this.embeddedSWF.callSWF("setShareData",[A]);},hasAdequateDimensions:function(){return this.embeddedSWF.callSWF("hasAdequateDimensions");},getUseCompression:function(){return this.embeddedSWF.callSWF("getUseCompression");},setUseCompression:function(A){this.embeddedSWF.callSWF("setUseCompression",[A]);},setItem:function(A,B){return this.embeddedSWF.callSWF("setItem",[A,B]);},getValueAt:function(A){return this.embeddedSWF.callSWF("getValueAt",[A]);},getNameAt:function(A){return this.embeddedSWF.callSWF("getNameAt",[A]);},getValueOf:function(A){return this.embeddedSWF.callSWF("getValueOf",[A]);},getTypeOf:function(A){return this.embeddedSWF.callSWF("getTypeOf",[A]);},getTypeAt:function(A){return this.embeddedSWF.callSWF("getTypeAt",[A]);},getItems:function(){return this.embeddedSWF.callSWF("getItems",[]);},removeItem:function(A){return this.embeddedSWF.callSWF("removeItem",[A]);},removeItemAt:function(A){return this.embeddedSWF.callSWF("removeItemAt",[A]);},getLength:function(){return this.embeddedSWF.callSWF("getLength",[]);},clear:function(){return this.embeddedSWF.callSWF("clear",[]);},calculateCurrentSize:function(){return this.embeddedSWF.callSWF("calculateCurrentSize",[]);},getModificationDate:function(){return this.embeddedSWF.callSWF("getModificationDate",[]);},setSize:function(B){var A=this.embeddedSWF.callSWF("setSize",[B]);return A;},displaySettings:function(){this.embeddedSWF.callSWF("displaySettings",[]);}});YAHOO.util.SWFStore.SWFURL="swfstore.swf";YAHOO.register("swfstore",YAHOO.util.SWFStore,{version:"2.8.0r4",build:"2449"});YAHOO.register("swfstore",YAHOO.util.SWFStore,{version:"2.8.0r4",build:"2449"});
\ No newline at end of file
diff --git a/koha-tmpl/intranet-tmpl/prog/en/lib/yui/swfstore/swfstore.js b/koha-tmpl/intranet-tmpl/prog/en/lib/yui/swfstore/swfstore.js
deleted file mode 100644 (file)
index 5a4a4d7..0000000
+++ /dev/null
@@ -1,453 +0,0 @@
-/*
-Copyright (c) 2009, Yahoo! Inc. All rights reserved.
-Code licensed under the BSD License:
-http://developer.yahoo.net/yui/license.txt
-version: 2.8.0r4
-*/
-/**
- * Provides a swf based storage implementation
- *
- * @module swfstore
- */
-
-/**
- * Class for the YUI SWFStore util.
- *
- * @namespace YAHOO.util
- * @class SWFStore
- * @uses YAHOO.util.AttributeProvider
- * @constructor
- * @param containerId {HTMLElement} Container element for the Flash Player instance.
- * @param shareData {Boolean} Whether or not data should be shared across browsers
- * @param useCompression {Boolean} Container element for the Flash Player instance.
- */
-YAHOO.util.SWFStore = function(containerID, shareData, useCompression)
-{
-                       //browser detection
-                       var browser;
-                       var newValue;
-                       //convert Booleans to strings for flashvars compatibility
-                       shareData = shareData.toString();
-                       useCompression = useCompression.toString();
-                       
-                       if (YAHOO.env.ua.ie) browser = "ie";
-                       else if (YAHOO.env.ua.gecko) browser =  "gecko";  //Firefox
-                       else if (YAHOO.env.ua.webkit) browser =  "webkit"; // Safari, Webkit 
-                       else if (YAHOO.env.ua.caja) browser =  "caja";   
-                       else if (YAHOO.env.ua.opera) browser =  "opera"; 
-                       else browser =  "other";
-
-                       if(YAHOO.util.Cookie.get("swfstore") == null || YAHOO.util.Cookie.get("swfstore") == "null" || YAHOO.util.Cookie.get("swfstore") == "")
-                       {
-
-                               newValue = Math.round(Math.random() * Math.PI * 100000); 
-                               YAHOO.util.Cookie.set("swfstore", newValue);
-
-                       }
-
-                       else 
-                       {
-                               newValue = YAHOO.util.Cookie.get("swfstore");
-                       }
-
-                       
-                       var params = 
-                               { 
-                                       version: 9.115,
-                                       useExpressInstall: false,
-                                       fixedAttributes:
-                                               {allowScriptAccess:"always", allowNetworking:"all", scale:"noScale"},
-                                               flashVars:
-                                                       {shareData: shareData, browser: newValue, useCompression: useCompression}
-                                };
-       
-       
-       
-       this.embeddedSWF = new YAHOO.widget.SWF(containerID, YAHOO.util.SWFStore.SWFURL, params); 
-       
-       
-       /**
-        * Fires when an error occurs
-        *
-        * @event error
-        * @param event.type {String} The event type
-        * @param event.message {String} The data 
-        * 
-        */
-       this.createEvent("error");
-
-       /**
-        * Fires when there is not enough space available to store the data
-        *
-        * @event quotaExceededError
-        * @param event.type {String} The event type
-        * @param event.message {String} The data 
-        * 
-        */
-       this.createEvent("quotaExceededError");
-
-       /**
-        * Fires when the url matching for the security whitelist is invalid.
-     * If no whitelist is used, fires when page's url does not match the embedded swf's url
-        *
-        * @event securityError
-        * @param event.type {String} The event type
-        * @param event.message {String} The data 
-        * 
-        */
-       this.createEvent("securityError");
-       
-       /**
-        * Fires when a store is saved successfully
-        *
-        * @event save
-        * @param event.type {String} The event type
-        * 
-        */
-       this.createEvent("save");
-
-       /**
-        * Fires when a store is successfully cleared
-        *
-        * @event clear
-        * @param event.type {String} The event type
-        * 
-        */
-       this.createEvent("clear");
-               
-       
-       /**
-        * Fires when the save is pending, due to a request for additional storage
-        *
-        * @event error
-        * @param event.type {String} The event type
-        * 
-        */
-       this.createEvent("pending");
-       
-       
-       /**
-        * Fires as the settings dialog displays
-        *
-        * @event openingDialog
-        * @param event.type {String} The event type
-        * 
-        */
-       this.createEvent("openingDialog");
-       
-       /**
-        * Fires when a settings dialog is not able to be displayed due to 
-        * the SWF not being large enough to show it. In this case, the developer
-        * needs to resize the SWF to width of 215px and height of 138px or above, 
-        * or display an external settings page.
-        *
-        * @event inadequateDimensions
-        * @param event.type {String} The event type
-        * 
-        */
-       this.createEvent("inadequateDimensions");
-};
-
-YAHOO.extend(YAHOO.util.SWFStore, YAHOO.util.AttributeProvider,
-{
-
-
-       
-       /**
-        * Method to attach listeners to events
-        * @param type {String} The tyep of event to listen for
-        * @param listener {String} The function to call
-        */
-       on: function(type, listener)
-       {
-               this.embeddedSWF.addListener(type, listener); 
-       },
-
-       /**
-        * Method to attach listeners to events
-        * @param type {String} The tyep of event to listen for
-        * @param listener {String} The function to call
-        */
-       addListener: function(type, listener)
-       {
-               this.embeddedSWF.addListener(type, listener); 
-       },
-
-       /**
-        * Public accessor to the unique name of the SWFStore instance.
-        *
-        * @method toString
-        * @return {String} Unique name of the SWFStore instance.
-        */
-       toString: function()
-       {
-               return "SWFStore " + this._id;
-       },
-       
-       /**
-        * Public accessor to the unique name of the SWFStore instance.
-        *
-        * @method getShareData
-        * @return {Boolean} Whether or not data is being shared among browsers
-        */
-       getShareData: function()
-       {
-               return this.embeddedSWF.callSWF("getShareData");
-       },
-       /**
-        * Public accessor to the unique name of the SWFStore instance.
-        *
-        * @method setShareData
-        * @param {Boolean} Whether or not to share among browsers
-        */
-       setShareData: function(value)
-       {
-               this.embeddedSWF.callSWF("setShareData", [value]);
-       },
-
-       /**
-        * Determines if SWF's visible area is large enough to fit the settings panel
-        *
-        * @method hasAdequateDimensions
-        * @return {Boolean} Whether or not to share among browsers
-        */
-       hasAdequateDimensions: function()
-       {
-               return this.embeddedSWF.callSWF("hasAdequateDimensions");
-       },
-
-       /**
-        * Public accessor to the unique name of the SWFStore instance.
-        *
-        * @method getUseCompression
-        * @return {Boolean} Whether or compression is being used
-        */
-       getUseCompression: function()
-       {
-               return this.embeddedSWF.callSWF("getUseCompression");
-       },
-
-       /**
-        * Public accessor to the unique name of the SWFStore instance.
-        *
-        * @method setUseCompression
-        * @param {Boolean} Whether or to compress stored data
-        */
-       setUseCompression: function(value)
-       {
-               this.embeddedSWF.callSWF("setUseCompression", [value]);
-       },      
-
-          /**
-           * Saves data to local storage. It returns a String that can
-               * be one of three values: "true" if the storage succeeded; "false" if the user
-               * has denied storage on their machine or storage space allotted is not sufficient.
-               * <p>The size limit for the passed parameters is ~40Kb.</p>
-               * @method setItem
-           * @param data {Object} The data to store
-           * @param location {String} The name of the "cookie" or store 
-               * @return {Boolean} Whether or not the save was successful
-           * 
-           */
-               setItem: function(location,data) 
-               {       
-                       return this.embeddedSWF.callSWF("setItem", [location, data]);
-               } ,
-               
-          /**
-           * Returns the value of the store at the specified index, if any.
-               * @method getValueAt
-           * @param index {Number} The index of the stored item
-           * @return {Object} The value of the store at that index
-           * 
-           */      
-               getValueAt: function(index) 
-               {
-                       return this.embeddedSWF.callSWF("getValueAt", [index]);
-               },
-
-          /**
-           * Returns the key name in storage, if any, at the specified index.
-           * 
-           * @param index {Number} The index of the "cookie" or store
-               * @return {Object}The data
-               * @method setItem
-           * 
-           */      
-               getNameAt: function(index) 
-               {
-                       return this.embeddedSWF.callSWF("getNameAt", [index]);
-               },
-               
-               
-           /**
-           * Returns the value of the item in storage, if any.
-           * @method getValueOf
-           * @param location {String} The name of the "cookie" or store
-               * @return {Object} The data
-           * 
-           */
-               getValueOf: function(location) 
-               {
-                       return this.embeddedSWF.callSWF("getValueOf", [location]);
-               } ,
-
-           /**
-           *  Returns the data type of of the storage.
-               * <p>May be one of the following types:
-           * <ul>
-           * <li>boolean</li>
-           * <li>function</li>
-           * <li>number</li>
-           * <li>object</li>
-           * <li>string</li>
-           * <li>number</li>
-           * <li>xml</li>
-           * </ul>
-           * </p>
-           * @method getTypeOf
-           * @param location {String} The name of the "cookie" or store
-               * @return {String} The type
-           * 
-           */
-               getTypeOf: function(location) 
-               {
-                       return this.embeddedSWF.callSWF("getTypeOf", [location]);
-               } ,
-
-           /**
-           *  Returns the data type of of the storage.
-               * <p>May be one of the following types:
-           * <ul>
-           * <li>boolean</li>
-           * <li>function</li>
-           * <li>number</li>
-           * <li>object</li>
-           * <li>string</li>
-           * <li>number</li>
-           * <li>xml</li>
-           * </ul>
-           * </p>
-           * @method getTypeAt
-           * @param location {Number} The index of the "cookie" or store
-               * @return {String} The type
-           * 
-           */
-               getTypeAt: function(index) 
-               {
-                       return this.embeddedSWF.callSWF("getTypeAt", [index]);
-               } ,
-                
-               /**
-                * Returns the items in storage as an array.
-                * @method getItems
-                * @return {Object} The data.
-                * @public
-                */
-               getItems: function() 
-               {
-                       return this.embeddedSWF.callSWF("getItems", []);
-               },
-
-           /**
-           * Removes the item in storage, if any.
-           * @method removeItem
-           * @param location {String} The name of the "cookie" or store
-           * 
-           */
-               removeItem: function(location) 
-               {
-                       return this.embeddedSWF.callSWF("removeItem", [location]);
-               } ,
-
-           /**
-           * Removes the item in storage at the specified index, if any.
-           * @method removeItem
-           * @param index {Number} The index of the "cookie" or store
-           * 
-           */
-               removeItemAt: function(index) 
-               {
-                       return this.embeddedSWF.callSWF("removeItemAt", [index]);
-               } ,
-               
-           /**
-           * Returns the number of items in storage, if any.
-           * @method getLength
-           * @return {Number} The number of items
-           * 
-           */
-               getLength: function() 
-               {
-                       return this.embeddedSWF.callSWF("getLength", []);
-               } ,
-               
-          /**
-           * Removes all data in local storage for this domain.
-           * <p>Be careful when using this method, as it may 
-           * remove stored information that is used by other applications
-           * in this domain </p>
-           * @method clear
-           */          
-               clear: function() 
-               {
-                       return this.embeddedSWF.callSWF("clear", []);
-               } ,
-               
-           /**
-            * Gets the current size, in KB, of the amount of space taken by the current store.
-                * Note that this is calculated, and may take time depending on the number of items stored
-            * @method calculateCurrentSize
-            * @return {Number} The size of the store in KB
-            */         
-               calculateCurrentSize: function() 
-               {
-                       return this.embeddedSWF.callSWF("calculateCurrentSize", []);
-               } ,
-               
-           /**
-            * Gets the timestamp of the last store. This value is automatically set when 
-            * data is stored.
-            * @method getModificationDate
-            * @return {Date} A Date object
-            */
-               getModificationDate: function() 
-               {
-                       return this.embeddedSWF.callSWF("getModificationDate", []);
-               } ,
-               
-               /**
-               * This method requests more storage (if the amount is above 100KB or the current setting).
-               * 
-               * The request dialog has to be displayed within the Flash player itself
-               * so the SWF it is called from must be visible and at least 215px x 138px (w x h) in size.
-               * 
-               * @method setSize
-               * @param value {Number} The size, in KB
-               * @return {String} 
-               */              
-               setSize: function(value) 
-               {
-                       var result = this.embeddedSWF.callSWF("setSize", [value]);
-                       return result;
-               } ,
-               
-               /**
-                * Displays the settings dialog to allow the user to configure
-                * storage settings manually. If the SWF height and width are smaller than
-                * what is allowable to display the local settings panel,
-                * an openExternalDialog message will be sent to JavaScript.
-                * @method displaySettings
-                */             
-               displaySettings: function() 
-               {
-                       this.embeddedSWF.callSWF("displaySettings", []);
-               } 
-
-});
-
-
-YAHOO.util.SWFStore.SWFURL = "swfstore.swf";
-
-YAHOO.register("swfstore", YAHOO.util.SWFStore, {version: "2.8.0r4", build: "2449"});
-YAHOO.register("swfstore", YAHOO.util.SWFStore, {version: "2.8.0r4", build: "2449"});
diff --git a/koha-tmpl/intranet-tmpl/prog/en/lib/yui/swfstore/swfstore.swf b/koha-tmpl/intranet-tmpl/prog/en/lib/yui/swfstore/swfstore.swf
deleted file mode 100644 (file)
index 1d2f501..0000000
Binary files a/koha-tmpl/intranet-tmpl/prog/en/lib/yui/swfstore/swfstore.swf and /dev/null differ
diff --git a/koha-tmpl/intranet-tmpl/prog/en/lib/yui/tabview/assets/border_tabs.css b/koha-tmpl/intranet-tmpl/prog/en/lib/yui/tabview/assets/border_tabs.css
deleted file mode 100644 (file)
index 7ee5fdc..0000000
+++ /dev/null
@@ -1,54 +0,0 @@
-/*
-Copyright (c) 2009, Yahoo! Inc. All rights reserved.
-Code licensed under the BSD License:
-http://developer.yahoo.net/yui/license.txt
-version: 2.8.0r4
-*/
-.yui-navset .yui-nav li a, .yui-navset .yui-content {
-    border:1px solid #000;  /* label and content borders */
-}
-
-.yui-navset .yui-nav .selected a, .yui-navset .yui-nav a:hover, .yui-navset .yui-content {
-    background-color:#f6f7ee; /* active tab, tab hover, and content bgcolor */
-}
-
-.yui-navset .yui-nav li em { padding:.5em; } /* tab padding */
-
-/* defaults to orientation "top" */
-.yui-navset .yui-nav .selected a {
-    border-bottom-width:0; /* no bottom border for active tab */
-    padding-bottom:1px; /* to match height of other tabs */
-}
-
-.yui-navset .yui-content {
-    margin-top:-1px; /* for active tab overlap */
-}
-
-/* overrides for other orientations */
-
-.yui-navset-bottom .yui-nav .selected a {
-    border-width:0 1px 1px; /* no top border for active tab */
-    padding:1px 0 0; /* to match height of other tabs */
-}
-
-.yui-navset-bottom .yui-content {
-    margin:0 0 -1px; /* for active tab overlap */
-}
-
-.yui-navset-left .yui-nav li.selected a {
-    border-width:1px 0 1px 1px; /* no right border for active tab */
-    padding:0 1px 0 0; /* to match width of other tabs */
-}
-
-.yui-navset-left .yui-content {
-    margin:0 0 0 -1px; /* for active tab overlap */
-}
-
-.yui-navset-right .yui-nav li.selected a {
-    border-width:1px 1px 1px 0; /* no left border for active tab */
-    padding:0 0 0 1px; /* to match width of other tabs */
-}
-
-.yui-navset-right .yui-content {
-    margin:0 -1px 0 0; /* for active tab overlap */
-}
\ No newline at end of file
diff --git a/koha-tmpl/intranet-tmpl/prog/en/lib/yui/tabview/assets/loading.gif b/koha-tmpl/intranet-tmpl/prog/en/lib/yui/tabview/assets/loading.gif
deleted file mode 100644 (file)
index 6a56815..0000000
Binary files a/koha-tmpl/intranet-tmpl/prog/en/lib/yui/tabview/assets/loading.gif and /dev/null differ
diff --git a/koha-tmpl/intranet-tmpl/prog/en/lib/yui/tabview/assets/skin-sam.css b/koha-tmpl/intranet-tmpl/prog/en/lib/yui/tabview/assets/skin-sam.css
deleted file mode 100644 (file)
index b6e917b..0000000
+++ /dev/null
@@ -1,77 +0,0 @@
-/*
-Copyright (c) 2009, Yahoo! Inc. All rights reserved.
-Code licensed under the BSD License:
-http://developer.yahoo.net/yui/license.txt
-version: 2.8.0r4
-*/
-.yui-navset .yui-nav li {
-    margin-right:0.16em; /* space between tabs */
-    padding-top:1px; /* gecko: make room for overflow */
-    zoom:1;
-}
-
-.yui-navset .yui-nav .selected { 
-    margin-bottom:-1px; /* for overlap */
-}
-
-.yui-navset .yui-nav a {
-    background:#dadbdb url(../../assets/skins/sam/sprite.png) repeat-x; /* sprite position for normal gradient */
-    border:solid #a3a3a3;
-    border-width:0 1px;
-    color:#000;
-    text-decoration:none;
-}
-
-.yui-navset .yui-nav li a em {
-    border-top:solid 1px #a3a3a3;
-    border-bottom:0;
-    cursor:hand;
-    padding:0.2em 0.5em;
-    top:-1px; /* for 1px rounded corners */
-    position:relative;
-}
-
-.yui-navset .yui-nav .selected a,
-.yui-navset .yui-nav a:focus,
-.yui-navset .yui-nav a:hover {
-    background:#214197 url(../../assets/skins/sam/sprite.png) repeat-x left -1400px;
-    color:#fff;
-}
-
-.yui-navset .yui-nav .selected a em {
-    padding:0.3em 0.5em; /* raise selected tab */
-}
-
-.yui-navset .yui-nav .selected a,
-.yui-navset .yui-nav a:hover,
-.yui-navset .yui-nav a:focus {
-    border-color:#243356;
-}
-
-.yui-navset .yui-nav a:hover em,
-.yui-navset .yui-nav a:focus em,
-.yui-navset .yui-nav .selected a em {
-    border-color:#233356 #406ed9;
-}
-
-.yui-navset .yui-nav {
-    border-bottom:1px solid #243356;
-    position:relative;
-    zoom:1;
-}
-
-.yui-navset .yui-content {
-    background:#abceff;
-    border-top:5px solid #214095;
-}
-
-.yui-navset .yui-content div {
-    border:1px solid #808080;
-    border-top-color:#243356;
-    padding:0.25em 0.5em;
-}
-
-.yui-navset .yui-content div div { /* kill inheritance */
-    border:0; 
-    padding:0;
-}
diff --git a/koha-tmpl/intranet-tmpl/prog/en/lib/yui/tabview/assets/skins/sam/tabview-skin.css b/koha-tmpl/intranet-tmpl/prog/en/lib/yui/tabview/assets/skins/sam/tabview-skin.css
deleted file mode 100644 (file)
index e10bbf3..0000000
+++ /dev/null
@@ -1,186 +0,0 @@
-/*
-Copyright (c) 2009, Yahoo! Inc. All rights reserved.
-Code licensed under the BSD License:
-http://developer.yahoo.net/yui/license.txt
-version: 2.8.0r4
-*/
-/* .yui-navset defaults to .yui-navset-top */
-.yui-skin-sam .yui-navset .yui-nav,
-.yui-skin-sam .yui-navset .yui-navset-top .yui-nav { /* protect nested tabviews from other orientations */
-    border:solid #2647a0; /* color between tab list and content */
-    border-width:0 0 5px;
-    zoom:1;
-}
-
-.yui-skin-sam .yui-navset .yui-nav li,
-.yui-skin-sam .yui-navset .yui-navset-top .yui-nav li {
-    margin:0 0.16em 0 0; /* space between tabs */
-    padding:1px 0 0; /* gecko: make room for overflow */
-    zoom:1;
-}
-
-.yui-skin-sam .yui-navset .yui-nav .selected,
-.yui-skin-sam .yui-navset .yui-navset-top .yui-nav .selected { 
-    margin:0 0.16em -1px 0; /* for overlap */
-}
-
-.yui-skin-sam .yui-navset .yui-nav a,
-.yui-skin-sam .yui-navset .yui-navset-top .yui-nav a {
-    background:#d8d8d8 url(../../../../assets/skins/sam/sprite.png) repeat-x; /* tab background */
-    border:solid #a3a3a3;
-    border-width:0 1px;
-    color:#000;
-    position:relative;
-    text-decoration:none;
-}
-
-.yui-skin-sam .yui-navset .yui-nav a em,
-.yui-skin-sam .yui-navset .yui-navset-top .yui-nav a em {
-    border:solid #a3a3a3;
-    border-width:1px 0 0;
-    cursor:hand;
-    padding:0.25em .75em;
-    left:0; right: 0; bottom: 0; /* protect from other orientations */
-    top:-1px; /* for 1px rounded corners */
-    position:relative;
-}
-
-.yui-skin-sam .yui-navset .yui-nav .selected a,
-.yui-skin-sam .yui-navset .yui-nav .selected a:focus, /* no focus effect for selected */
-.yui-skin-sam .yui-navset .yui-nav .selected a:hover { /* no hover effect for selected */
-    background:#2647a0 url(../../../../assets/skins/sam/sprite.png) repeat-x left -1400px; /* selected tab background */
-    color:#fff;
-}
-
-.yui-skin-sam .yui-navset .yui-nav a:hover,
-.yui-skin-sam .yui-navset .yui-nav a:focus {
-    background:#bfdaff url(../../../../assets/skins/sam/sprite.png) repeat-x left -1300px; /* selected tab background */
-    outline:0;
-}
-
-.yui-skin-sam .yui-navset .yui-nav .selected a em {
-    padding:0.35em 0.75em; /* raise selected tab */
-}
-
-.yui-skin-sam .yui-navset .yui-nav .selected a,
-.yui-skin-sam .yui-navset .yui-nav .selected a em {
-    border-color:#243356; /* selected tab border color */
-}
-
-.yui-skin-sam .yui-navset .yui-content {
-    background:#edf5ff; /* content background color */
-}
-
-.yui-skin-sam .yui-navset .yui-content,
-.yui-skin-sam .yui-navset .yui-navset-top .yui-content {
-    border:1px solid #808080; /* content border */
-    border-top-color:#243356; /* different border color */
-    padding:0.25em 0.5em; /* content padding */
-}
-
-/* left and right orientations */
-.yui-skin-sam .yui-navset-left .yui-nav,
-.yui-skin-sam .yui-navset .yui-navset-left .yui-nav,
-.yui-skin-sam .yui-navset .yui-navset-right .yui-nav,
-.yui-skin-sam .yui-navset-right .yui-nav {
-    border-width:0 5px 0 0;
-    Xposition:absolute; /* from tabview-core; have to reiterate for skin-sam due to pos:rel on skin-sam yui-nav */
-    top:0; bottom:0; /* stretch to fill content height */
-}
-
-.yui-skin-sam .yui-navset .yui-navset-right .yui-nav,
-.yui-skin-sam .yui-navset-right .yui-nav {
-    border-width:0 0 0 5px;
-}
-
-.yui-skin-sam .yui-navset-left .yui-nav li,
-.yui-skin-sam .yui-navset .yui-navset-left .yui-nav li,
-.yui-skin-sam .yui-navset-right .yui-nav li {
-    margin:0 0 0.16em; /* space between tabs */
-    padding:0 0 0 1px; /* gecko: make room for overflow */
-}
-
-.yui-skin-sam .yui-navset-right .yui-nav li {
-    padding:0 1px 0 0; /* gecko: make room for overflow */
-}
-
-.yui-skin-sam .yui-navset-left .yui-nav .selected,
-.yui-skin-sam .yui-navset .yui-navset-left .yui-nav .selected { 
-    margin:0 -1px 0.16em 0;
-}
-
-.yui-skin-sam .yui-navset-right .yui-nav .selected { 
-    margin:0 0 0.16em -1px;
-}
-
-.yui-skin-sam .yui-navset-left .yui-nav a,
-.yui-skin-sam .yui-navset-right .yui-nav a {
-    border-width:1px 0;
-}
-
-.yui-skin-sam .yui-navset-left .yui-nav a em,
-.yui-skin-sam .yui-navset .yui-navset-left .yui-nav a em,
-.yui-skin-sam .yui-navset-right .yui-nav a em {
-    border-width:0 0 0 1px;
-    padding:0.2em .75em;
-    top:auto;
-    left:-1px; /* for 1px rounded corners */
-}
-
-.yui-skin-sam .yui-navset-right .yui-nav a em {
-    border-width:0 1px 0 0;
-    left:auto;
-    right:-1px; /* for 1px rounded corners */
-}
-
-.yui-skin-sam .yui-navset-left .yui-nav a,
-.yui-skin-sam .yui-navset-left .yui-nav .selected a,
-.yui-skin-sam .yui-navset-left .yui-nav a:hover,
-.yui-skin-sam .yui-navset-right .yui-nav a,
-.yui-skin-sam .yui-navset-right .yui-nav .selected a,
-.yui-skin-sam .yui-navset-right .yui-nav a:hover,
-.yui-skin-sam .yui-navset-bottom .yui-nav a,
-.yui-skin-sam .yui-navset-bottom .yui-nav .selected a,
-.yui-skin-sam .yui-navset-bottom .yui-nav a:hover {
-    background-image:none; /* no left-right or bottom-top gradient */
-}
-
-.yui-skin-sam .yui-navset-left .yui-content {
-    border:1px solid #808080; /* content border */
-    border-left-color:#243356; /* different border color */
-}
-
-/* bottom orientation */
-.yui-skin-sam .yui-navset-bottom .yui-nav,
-.yui-skin-sam .yui-navset .yui-navset-bottom .yui-nav {
-    border-width:5px 0 0; /* color between tab list and content */
-}
-
-.yui-skin-sam .yui-navset .yui-navset-bottom .yui-nav .selected,
-.yui-skin-sam .yui-navset-bottom .yui-nav .selected { 
-    margin:-1px 0.16em 0 0; /* for overlap */
-}
-
-.yui-skin-sam .yui-navset .yui-navset-bottom .yui-nav li,
-.yui-skin-sam .yui-navset-bottom .yui-nav li { 
-    padding:0 0 1px 0; /* gecko: make room for overflow */
-    vertical-align:top;
-}
-
-.yui-skin-sam .yui-navset .yui-navset-bottom .yui-nav li a,
-.yui-skin-sam .yui-navset-bottom .yui-nav li a { 
-}
-
-.yui-skin-sam .yui-navset .yui-navset-bottom .yui-nav a em,
-.yui-skin-sam .yui-navset-bottom .yui-nav a em {
-    border-width:0 0 1px;
-    top:auto;
-    bottom:-1px; /* for 1px rounded corners */
-}
-
-.yui-skin-sam .yui-navset-bottom .yui-content,
-.yui-skin-sam .yui-navset .yui-navset-bottom .yui-content {
-    border:1px solid #808080; /* content border */
-    border-bottom-color:#243356; /* different border color */
-}
-
diff --git a/koha-tmpl/intranet-tmpl/prog/en/lib/yui/tabview/assets/skins/sam/tabview.css b/koha-tmpl/intranet-tmpl/prog/en/lib/yui/tabview/assets/skins/sam/tabview.css
deleted file mode 100644 (file)
index 868e0e2..0000000
+++ /dev/null
@@ -1,8 +0,0 @@
-/*
-Copyright (c) 2009, Yahoo! Inc. All rights reserved.
-Code licensed under the BSD License:
-http://developer.yahoo.net/yui/license.txt
-version: 2.8.0r4
-*/
-.yui-navset .yui-nav li,.yui-navset .yui-navset-top .yui-nav li,.yui-navset .yui-navset-bottom .yui-nav li{margin:0 .5em 0 0;}.yui-navset-left .yui-nav li,.yui-navset-right .yui-nav li{margin:0 0 .5em;}.yui-navset .yui-content .yui-hidden{border:0;height:0;width:0;padding:0;position:absolute;left:-999999px;overflow:hidden;visibility:hidden;}.yui-navset .yui-navset-left .yui-nav,.yui-navset .yui-navset-right .yui-nav,.yui-navset-left .yui-nav,.yui-navset-right .yui-nav{width:6em;}.yui-navset-top .yui-nav,.yui-navset-bottom .yui-nav{width:auto;}.yui-navset .yui-navset-left,.yui-navset-left{padding:0 0 0 6em;}.yui-navset-right{padding:0 6em 0 0;}.yui-navset-top,.yui-navset-bottom{padding:auto;}.yui-nav,.yui-nav li{margin:0;padding:0;list-style:none;}.yui-navset li em{font-style:normal;}.yui-navset{position:relative;zoom:1;}.yui-navset .yui-content,.yui-navset .yui-content div{zoom:1;}.yui-navset .yui-content:after{content:'';display:block;clear:both;}.yui-navset .yui-nav li,.yui-navset .yui-navset-top .yui-nav li,.yui-navset .yui-navset-bottom .yui-nav li{display:inline-block;display:-moz-inline-stack;*display:inline;vertical-align:bottom;cursor:pointer;zoom:1;}.yui-navset-left .yui-nav li,.yui-navset-right .yui-nav li{display:block;}.yui-navset .yui-nav a{position:relative;}.yui-navset .yui-nav li a,.yui-navset-top .yui-nav li a,.yui-navset-bottom .yui-nav li a{display:block;display:inline-block;vertical-align:bottom;zoom:1;}.yui-navset-left .yui-nav li a,.yui-navset-right .yui-nav li a{display:block;}.yui-navset-bottom .yui-nav li a{vertical-align:text-top;}.yui-navset .yui-nav li a em,.yui-navset-top .yui-nav li a em,.yui-navset-bottom .yui-nav li a em{display:block;}.yui-navset .yui-navset-left .yui-nav,.yui-navset .yui-navset-right .yui-nav,.yui-navset-left .yui-nav,.yui-navset-right .yui-nav{position:absolute;z-index:1;}.yui-navset-top .yui-nav,.yui-navset-bottom .yui-nav{position:static;}.yui-navset .yui-navset-left .yui-nav,.yui-navset-left .yui-nav{left:0;right:auto;}.yui-navset .yui-navset-right .yui-nav,.yui-navset-right .yui-nav{right:0;left:auto;}.yui-skin-sam .yui-navset .yui-nav,.yui-skin-sam .yui-navset .yui-navset-top .yui-nav{border:solid #2647a0;border-width:0 0 5px;zoom:1;}.yui-skin-sam .yui-navset .yui-nav li,.yui-skin-sam .yui-navset .yui-navset-top .yui-nav li{margin:0 .16em 0 0;padding:1px 0 0;zoom:1;}.yui-skin-sam .yui-navset .yui-nav .selected,.yui-skin-sam .yui-navset .yui-navset-top .yui-nav .selected{margin:0 .16em -1px 0;}.yui-skin-sam .yui-navset .yui-nav a,.yui-skin-sam .yui-navset .yui-navset-top .yui-nav a{background:#d8d8d8 url(../../../../assets/skins/sam/sprite.png) repeat-x;border:solid #a3a3a3;border-width:0 1px;color:#000;position:relative;text-decoration:none;}.yui-skin-sam .yui-navset .yui-nav a em,.yui-skin-sam .yui-navset .yui-navset-top .yui-nav a em{border:solid #a3a3a3;border-width:1px 0 0;cursor:hand;padding:.25em .75em;left:0;right:0;bottom:0;top:-1px;position:relative;}.yui-skin-sam .yui-navset .yui-nav .selected a,.yui-skin-sam .yui-navset .yui-nav .selected a:focus,.yui-skin-sam .yui-navset .yui-nav .selected a:hover{background:#2647a0 url(../../../../assets/skins/sam/sprite.png) repeat-x left -1400px;color:#fff;}.yui-skin-sam .yui-navset .yui-nav a:hover,.yui-skin-sam .yui-navset .yui-nav a:focus{background:#bfdaff url(../../../../assets/skins/sam/sprite.png) repeat-x left -1300px;outline:0;}.yui-skin-sam .yui-navset .yui-nav .selected a em{padding:.35em .75em;}.yui-skin-sam .yui-navset .yui-nav .selected a,.yui-skin-sam .yui-navset .yui-nav .selected a em{border-color:#243356;}.yui-skin-sam .yui-navset .yui-content{background:#edf5ff;}.yui-skin-sam .yui-navset .yui-content,.yui-skin-sam .yui-navset .yui-navset-top .yui-content{border:1px solid #808080;border-top-color:#243356;padding:.25em .5em;}.yui-skin-sam .yui-navset-left .yui-nav,.yui-skin-sam .yui-navset .yui-navset-left .yui-nav,.yui-skin-sam .yui-navset .yui-navset-right .yui-nav,.yui-skin-sam .yui-navset-right .yui-nav{border-width:0 5px 0 0;Xposition:absolute;top:0;bottom:0;}.yui-skin-sam .yui-navset .yui-navset-right .yui-nav,.yui-skin-sam .yui-navset-right .yui-nav{border-width:0 0 0 5px;}.yui-skin-sam .yui-navset-left .yui-nav li,.yui-skin-sam .yui-navset .yui-navset-left .yui-nav li,.yui-skin-sam .yui-navset-right .yui-nav li{margin:0 0 .16em;padding:0 0 0 1px;}.yui-skin-sam .yui-navset-right .yui-nav li{padding:0 1px 0 0;}.yui-skin-sam .yui-navset-left .yui-nav .selected,.yui-skin-sam .yui-navset .yui-navset-left .yui-nav .selected{margin:0 -1px .16em 0;}.yui-skin-sam .yui-navset-right .yui-nav .selected{margin:0 0 .16em -1px;}.yui-skin-sam .yui-navset-left .yui-nav a,.yui-skin-sam .yui-navset-right .yui-nav a{border-width:1px 0;}.yui-skin-sam .yui-navset-left .yui-nav a em,.yui-skin-sam .yui-navset .yui-navset-left .yui-nav a em,.yui-skin-sam .yui-navset-right .yui-nav a em{border-width:0 0 0 1px;padding:.2em .75em;top:auto;left:-1px;}.yui-skin-sam .yui-navset-right .yui-nav a em{border-width:0 1px 0 0;left:auto;right:-1px;}.yui-skin-sam .yui-navset-left .yui-nav a,.yui-skin-sam .yui-navset-left .yui-nav .selected a,.yui-skin-sam .yui-navset-left .yui-nav a:hover,.yui-skin-sam .yui-navset-right .yui-nav a,.yui-skin-sam .yui-navset-right .yui-nav .selected a,.yui-skin-sam .yui-navset-right .yui-nav a:hover,.yui-skin-sam .yui-navset-bottom .yui-nav a,.yui-skin-sam .yui-navset-bottom .yui-nav .selected a,.yui-skin-sam .yui-navset-bottom .yui-nav a:hover{background-image:none;}.yui-skin-sam .yui-navset-left .yui-content{border:1px solid #808080;border-left-color:#243356;}.yui-skin-sam .yui-navset-bottom .yui-nav,.yui-skin-sam .yui-navset .yui-navset-bottom .yui-nav{border-width:5px 0 0;}.yui-skin-sam .yui-navset .yui-navset-bottom .yui-nav .selected,.yui-skin-sam .yui-navset-bottom .yui-nav .selected{margin:-1px .16em 0 0;}.yui-skin-sam .yui-navset .yui-navset-bottom .yui-nav li,.yui-skin-sam .yui-navset-bottom .yui-nav li{padding:0 0 1px 0;vertical-align:top;}.yui-skin-sam .yui-navset .yui-navset-bottom .yui-nav a em,.yui-skin-sam .yui-navset-bottom .yui-nav a em{border-width:0 0 1px;top:auto;bottom:-1px;}
-.yui-skin-sam .yui-navset-bottom .yui-content,.yui-skin-sam .yui-navset .yui-navset-bottom .yui-content{border:1px solid #808080;border-bottom-color:#243356;}
diff --git a/koha-tmpl/intranet-tmpl/prog/en/lib/yui/tabview/assets/tabview-core.css b/koha-tmpl/intranet-tmpl/prog/en/lib/yui/tabview/assets/tabview-core.css
deleted file mode 100644 (file)
index 88a18d8..0000000
+++ /dev/null
@@ -1,133 +0,0 @@
-/*
-Copyright (c) 2009, Yahoo! Inc. All rights reserved.
-Code licensed under the BSD License:
-http://developer.yahoo.net/yui/license.txt
-version: 2.8.0r4
-*/
-/* default space between tabs */
-.yui-navset .yui-nav li,
-.yui-navset .yui-navset-top .yui-nav li,
-.yui-navset .yui-navset-bottom .yui-nav li {
-    margin:0 0.5em 0 0; /* horizontal tabs */
-}
-.yui-navset-left .yui-nav li,
-.yui-navset-right .yui-nav li {
-    margin:0 0 0.5em; /* vertical tabs */
-}
-
-.yui-navset .yui-content .yui-hidden {
-    /* absolute position off-screen and box collapsing used to
-       avoid display:none, which causes issues for some content (firefox
-       restarts flash movies) */
-    border:0;
-    height:0;
-    width:0;
-    padding:0;
-    position:absolute;
-    left:-999999px;
-    overflow:hidden;
-    visibility:hidden;
-}
-
-/* default width for side tabs */
-.yui-navset .yui-navset-left .yui-nav,
-.yui-navset .yui-navset-right .yui-nav,
-.yui-navset-left .yui-nav,
-.yui-navset-right .yui-nav { width:6em; }
-
-.yui-navset-top .yui-nav,
-.yui-navset-bottom .yui-nav {
-    width:auto;
-}
-.yui-navset .yui-navset-left,
-.yui-navset-left { padding:0 0 0 6em; } /* map to nav width */
-.yui-navset-right { padding:0 6em 0 0; } /* ditto */
-
-.yui-navset-top,
-.yui-navset-bottom {
-    padding:auto;
-}
-/* core */
-
-.yui-nav,
-.yui-nav li {
-    margin:0;
-    padding:0;
-    list-style:none;
-}
-.yui-navset li em { font-style:normal; }
-
-.yui-navset {
-    position:relative; /* contain absolute positioned tabs (left/right) */
-    zoom:1;
-}
-
-.yui-navset .yui-content,
-.yui-navset .yui-content div {
-    zoom:1;
-}
-
-.yui-navset .yui-content:after {
-    content:'';
-    display:block;
-    clear:both;
-}
-
-.yui-navset .yui-nav li,
-.yui-navset .yui-navset-top .yui-nav li, /* in case nested */
-.yui-navset .yui-navset-bottom .yui-nav li {
-    display:inline-block;
-    display:-moz-inline-stack;
-    *display:inline; /* IE */
-    vertical-align:bottom; /* safari: for overlap */
-    cursor:pointer; /* gecko: due to -moz-inline-stack on anchor */
-    zoom:1; /* IE: kill space between horizontal tabs */
-}
-
-.yui-navset-left .yui-nav li,
-.yui-navset-right .yui-nav li {
-    display:block;
-}
-
-.yui-navset .yui-nav a { position:relative; } /* IE: to allow overlap */
-
-.yui-navset .yui-nav li a,
-.yui-navset-top .yui-nav li a,
-.yui-navset-bottom .yui-nav li a {
-    display:block;
-    display:inline-block;
-    vertical-align:bottom; /* safari: for overlap */
-    zoom:1;
-}
-
-.yui-navset-left .yui-nav li a,
-.yui-navset-right .yui-nav li a {
-    display:block;
-}
-
-.yui-navset-bottom .yui-nav li a {
-    vertical-align:text-top; /* for inline overlap (reverse for Opera border bug) */
-}
-
-.yui-navset .yui-nav li a em,
-.yui-navset-top .yui-nav li a em,
-.yui-navset-bottom .yui-nav li a em { display:block; }
-
-/* position left and right oriented tabs */
-.yui-navset .yui-navset-left .yui-nav,
-.yui-navset .yui-navset-right .yui-nav,
-.yui-navset-left .yui-nav,
-.yui-navset-right .yui-nav {
-   position:absolute;
-   z-index:1; 
-}
-
-.yui-navset-top .yui-nav,
-.yui-navset-bottom .yui-nav {
-    position:static;
-}
-.yui-navset .yui-navset-left .yui-nav,
-.yui-navset-left .yui-nav { left:0; right:auto; }
-
-.yui-navset .yui-navset-right .yui-nav,
-.yui-navset-right .yui-nav { right:0; left:auto; }
diff --git a/koha-tmpl/intranet-tmpl/prog/en/lib/yui/tabview/assets/tabview.css b/koha-tmpl/intranet-tmpl/prog/en/lib/yui/tabview/assets/tabview.css
deleted file mode 100644 (file)
index 43fb336..0000000
+++ /dev/null
@@ -1,77 +0,0 @@
-/*
-Copyright (c) 2009, Yahoo! Inc. All rights reserved.
-Code licensed under the BSD License:
-http://developer.yahoo.net/yui/license.txt
-version: 2.8.0r4
-*/
-/* default space between tabs */
-.yui-navset .yui-nav li {
-    margin-right:0.5em; /* horizontal tabs */
-}
-.yui-navset-left .yui-nav li, .yui-navset-right .yui-nav li {
-    margin:0 0 0.5em; /* vertical tabs */
-}
-
-/* default width for side tabs */
-.yui-navset-left .yui-nav, .yui-navset-right .yui-nav { width:6em; }
-.yui-navset-left { padding-left:6em; } /* map to nav width */
-.yui-navset-right { padding-right:6em; } /* ditto */
-
-/* core */
-
-.yui-nav, .yui-nav li {
-    margin:0;
-    padding:0;
-    list-style:none;
-}
-.yui-navset li em { font-style:normal; }
-
-.yui-navset {
-    position:relative; /* contain absolute positioned tabs (left/right) */
-    zoom:1;
-}
-
-.yui-navset .yui-content { zoom:1; }
-
-.yui-navset .yui-hidden { display:none; }
-
-.yui-navset .yui-nav li {
-    display:inline-block;
-    display:-moz-inline-stack;
-    *display:inline; /* IE */
-    vertical-align:bottom; /* safari: for overlap */
-    cursor:pointer; /* gecko: due to -moz-inline-stack on anchor */
-    zoom:1; /* IE: kill space between horizontal tabs */
-}
-
-.yui-navset-left .yui-nav li, .yui-navset-right .yui-nav li {
-    display:block;
-}
-
-.yui-navset .yui-nav a {
-    outline:0; /* gecko: keep from shifting */
-}
-
-.yui-navset .yui-nav a { position:relative; } /* IE: to allow overlap */
-
-.yui-navset .yui-nav li a {
-    display:block;
-    display:inline-block;
-    vertical-align:bottom; /* safari: for overlap */
-    zoom:1;
-}
-
-.yui-navset-left .yui-nav li a, .yui-navset-right .yui-nav li a {
-    display:block;
-}
-
-.yui-navset-bottom .yui-nav li a {
-    vertical-align:text-top; /* for inline overlap (reverse for Op border bug) */
-}
-
-.yui-navset .yui-nav li a em { display:block; }
-
-/* position left and right oriented tabs */
-.yui-navset-left .yui-nav, .yui-navset-right .yui-nav { position:absolute; z-index:1; }
-.yui-navset-left .yui-nav { left:0; }
-.yui-navset-right .yui-nav { right:0; }
diff --git a/koha-tmpl/intranet-tmpl/prog/en/lib/yui/tabview/tabview-debug.js b/koha-tmpl/intranet-tmpl/prog/en/lib/yui/tabview/tabview-debug.js
deleted file mode 100644 (file)
index c758a07..0000000
+++ /dev/null
@@ -1,995 +0,0 @@
-/*
-Copyright (c) 2009, Yahoo! Inc. All rights reserved.
-Code licensed under the BSD License:
-http://developer.yahoo.net/yui/license.txt
-version: 2.8.0r4
-*/
-(function() {
-
-    /**
-     * The tabview module provides a widget for managing content bound to tabs.
-     * @module tabview
-     * @requires yahoo, dom, event, element
-     *
-     */
-
-    var Y = YAHOO.util,
-        Dom = Y.Dom,
-        Event = Y.Event,
-        document = window.document,
-    
-        // STRING CONSTANTS
-        ACTIVE = 'active',
-        ACTIVE_INDEX = 'activeIndex',
-        ACTIVE_TAB = 'activeTab',
-        CONTENT_EL = 'contentEl',
-        ELEMENT = 'element',
-    
-    /**
-     * A widget to control tabbed views.
-     * @namespace YAHOO.widget
-     * @class TabView
-     * @extends YAHOO.util.Element
-     * @constructor
-     * @param {HTMLElement | String | Object} el(optional) The html 
-     * element that represents the TabView, or the attribute object to use. 
-     * An element will be created if none provided.
-     * @param {Object} attr (optional) A key map of the tabView's 
-     * initial attributes.  Ignored if first arg is attributes object.
-     */
-    TabView = function(el, attr) {
-        attr = attr || {};
-        if (arguments.length == 1 && !YAHOO.lang.isString(el) && !el.nodeName) {
-            attr = el; // treat first arg as attr object
-            el = attr.element || null;
-        }
-        
-        if (!el && !attr.element) { // create if we dont have one
-            el = this._createTabViewElement(attr);
-        }
-        TabView.superclass.constructor.call(this, el, attr); 
-    };
-
-    YAHOO.extend(TabView, Y.Element, {
-        /**
-         * The className to add when building from scratch. 
-         * @property CLASSNAME
-         * @default "navset"
-         */
-        CLASSNAME: 'yui-navset',
-        
-        /**
-         * The className of the HTMLElement containing the TabView's tab elements
-         * to look for when building from existing markup, or to add when building
-         * from scratch. 
-         * All childNodes of the tab container are treated as Tabs when building
-         * from existing markup.
-         * @property TAB_PARENT_CLASSNAME
-         * @default "nav"
-         */
-        TAB_PARENT_CLASSNAME: 'yui-nav',
-        
-        /**
-         * The className of the HTMLElement containing the TabView's label elements
-         * to look for when building from existing markup, or to add when building
-         * from scratch. 
-         * All childNodes of the content container are treated as content elements when
-         * building from existing markup.
-         * @property CONTENT_PARENT_CLASSNAME
-         * @default "nav-content"
-         */
-        CONTENT_PARENT_CLASSNAME: 'yui-content',
-        
-        _tabParent: null,
-        _contentParent: null,
-        
-        /**
-         * Adds a Tab to the TabView instance.  
-         * If no index is specified, the tab is added to the end of the tab list.
-         * @method addTab
-         * @param {YAHOO.widget.Tab} tab A Tab instance to add.
-         * @param {Integer} index The position to add the tab. 
-         * @return void
-         */
-        addTab: function(tab, index) {
-            var tabs = this.get('tabs'),
-                before = this.getTab(index),
-                tabParent = this._tabParent,
-                contentParent = this._contentParent,
-                tabElement = tab.get(ELEMENT),
-                contentEl = tab.get(CONTENT_EL);
-
-            if (!tabs) { // not ready yet
-                this._queue[this._queue.length] = ['addTab', arguments];
-                return false;
-            }
-            
-            index = (index === undefined) ? tabs.length : index;
-            
-            tabs.splice(index, 0, tab);
-
-            if ( before ) {
-                tabParent.insertBefore(tabElement, before.get(ELEMENT));
-            } else {
-                tabParent.appendChild(tabElement);
-            }
-
-            if ( contentEl && !Dom.isAncestor(contentParent, contentEl) ) {
-                contentParent.appendChild(contentEl);
-            }
-            
-            if ( !tab.get(ACTIVE) ) {
-                tab.set('contentVisible', false, true); /* hide if not active */
-            } else {
-                this.set(ACTIVE_TAB, tab, true);
-                this.set('activeIndex', index, true);
-            }
-
-            this._initTabEvents(tab);
-        },
-
-        _initTabEvents: function(tab) {
-            tab.addListener( tab.get('activationEvent'), tab._onActivate, this, tab);
-            tab.addListener( tab.get('activationEventChange'), tab._onActivationEventChange, this, tab);
-        },
-
-        _removeTabEvents: function(tab) {
-            tab.removeListener(tab.get('activationEvent'), tab._onActivate, this, tab);
-            tab.removeListener('activationEventChange', tab._onActivationEventChange, this, tab);
-        },
-
-        /**
-         * Routes childNode events.
-         * @method DOMEventHandler
-         * @param {event} e The Dom event that is being handled.
-         * @return void
-         */
-        DOMEventHandler: function(e) {
-            var target = Event.getTarget(e),
-                tabParent = this._tabParent,
-                tabs = this.get('tabs'),
-                tab,
-                tabEl,
-                contentEl;
-
-            
-            if (Dom.isAncestor(tabParent, target) ) {
-                for (var i = 0, len = tabs.length; i < len; i++) {
-                    tabEl = tabs[i].get(ELEMENT);
-                    contentEl = tabs[i].get(CONTENT_EL);
-
-                    if ( target == tabEl || Dom.isAncestor(tabEl, target) ) {
-                        tab = tabs[i];
-                        break; // note break
-                    }
-                } 
-                
-                if (tab) {
-                    tab.fireEvent(e.type, e);
-                }
-            }
-        },
-        
-        /**
-         * Returns the Tab instance at the specified index.
-         * @method getTab
-         * @param {Integer} index The position of the Tab.
-         * @return YAHOO.widget.Tab
-         */
-        getTab: function(index) {
-            return this.get('tabs')[index];
-        },
-        
-        /**
-         * Returns the index of given tab.
-         * @method getTabIndex
-         * @param {YAHOO.widget.Tab} tab The tab whose index will be returned.
-         * @return int
-         */
-        getTabIndex: function(tab) {
-            var index = null,
-                tabs = this.get('tabs');
-            for (var i = 0, len = tabs.length; i < len; ++i) {
-                if (tab == tabs[i]) {
-                    index = i;
-                    break;
-                }
-            }
-            
-            return index;
-        },
-        
-        /**
-         * Removes the specified Tab from the TabView.
-         * @method removeTab
-         * @param {YAHOO.widget.Tab} item The Tab instance to be removed.
-         * @return void
-         */
-        removeTab: function(tab) {
-            var tabCount = this.get('tabs').length,
-                index = this.getTabIndex(tab);
-
-            if ( tab === this.get(ACTIVE_TAB) ) { 
-                if (tabCount > 1) { // select another tab
-                    if (index + 1 === tabCount) { // if last, activate previous
-                        this.set(ACTIVE_INDEX, index - 1);
-                    } else { // activate next tab
-                        this.set(ACTIVE_INDEX, index + 1);
-                    }
-                } else { // no more tabs
-                    this.set(ACTIVE_TAB, null);
-                }
-            }
-            
-            this._removeTabEvents(tab);
-            this._tabParent.removeChild( tab.get(ELEMENT) );
-            this._contentParent.removeChild( tab.get(CONTENT_EL) );
-            this._configs.tabs.value.splice(index, 1);
-
-            tab.fireEvent('remove', { type: 'remove', tabview: this });
-        },
-        
-        /**
-         * Provides a readable name for the TabView instance.
-         * @method toString
-         * @return String
-         */
-        toString: function() {
-            var name = this.get('id') || this.get('tagName');
-            return "TabView " + name; 
-        },
-        
-        /**
-         * The transiton to use when switching between tabs.
-         * @method contentTransition
-         */
-        contentTransition: function(newTab, oldTab) {
-            if (newTab) {
-                newTab.set('contentVisible', true);
-            }
-            if (oldTab) {
-                oldTab.set('contentVisible', false);
-            }
-        },
-        
-        /**
-         * setAttributeConfigs TabView specific properties.
-         * @method initAttributes
-         * @param {Object} attr Hash of initial attributes
-         */
-        initAttributes: function(attr) {
-            TabView.superclass.initAttributes.call(this, attr);
-            
-            if (!attr.orientation) {
-                attr.orientation = 'top';
-            }
-            
-            var el = this.get(ELEMENT);
-
-            if (!Dom.hasClass(el, this.CLASSNAME)) {
-                Dom.addClass(el, this.CLASSNAME);        
-            }
-            
-            /**
-             * The Tabs belonging to the TabView instance.
-             * @attribute tabs
-             * @type Array
-             */
-            this.setAttributeConfig('tabs', {
-                value: [],
-                readOnly: true
-            });
-
-            /**
-             * The container of the tabView's label elements.
-             * @property _tabParent
-             * @private
-             * @type HTMLElement
-             */
-            this._tabParent = 
-                    this.getElementsByClassName(this.TAB_PARENT_CLASSNAME,
-                            'ul' )[0] || this._createTabParent();
-                
-            /**
-             * The container of the tabView's content elements.
-             * @property _contentParent
-             * @type HTMLElement
-             * @private
-             */
-            this._contentParent = 
-                    this.getElementsByClassName(this.CONTENT_PARENT_CLASSNAME,
-                            'div')[0] ||  this._createContentParent();
-            
-            /**
-             * How the Tabs should be oriented relative to the TabView.
-             * @attribute orientation
-             * @type String
-             * @default "top"
-             */
-            this.setAttributeConfig('orientation', {
-                value: attr.orientation,
-                method: function(value) {
-                    var current = this.get('orientation');
-                    this.addClass('yui-navset-' + value);
-                    
-                    if (current != value) {
-                        this.removeClass('yui-navset-' + current);
-                    }
-                    
-                    if (value === 'bottom') {
-                        this.appendChild(this._tabParent);
-                    }
-                }
-            });
-            
-            /**
-             * The index of the tab currently active.
-             * @attribute activeIndex
-             * @type Int
-             */
-            this.setAttributeConfig(ACTIVE_INDEX, {
-                value: attr.activeIndex,
-                validator: function(value) {
-                    var ret = true;
-                    if (value && this.getTab(value).get('disabled')) { // cannot activate if disabled
-                        ret = false;
-                    }
-                    return ret;
-                }
-            });
-            
-            /**
-             * The tab currently active.
-             * @attribute activeTab
-             * @type YAHOO.widget.Tab
-             */
-            this.setAttributeConfig(ACTIVE_TAB, {
-                value: attr.activeTab,
-                method: function(tab) {
-                    var activeTab = this.get(ACTIVE_TAB);
-                    
-                    if (tab) {
-                        tab.set(ACTIVE, true);
-                    }
-                    
-                    if (activeTab && activeTab !== tab) {
-                        activeTab.set(ACTIVE, false);
-                    }
-                    
-                    if (activeTab && tab !== activeTab) { // no transition if only 1
-                        this.contentTransition(tab, activeTab);
-                    } else if (tab) {
-                        tab.set('contentVisible', true);
-                    }
-                },
-                validator: function(value) {
-                    var ret = true;
-                    if (value && value.get('disabled')) { // cannot activate if disabled
-                        ret = false;
-                    }
-                    return ret;
-                }
-            });
-
-            this.on('activeTabChange', this._onActiveTabChange);
-            this.on('activeIndexChange', this._onActiveIndexChange);
-
-            YAHOO.log('attributes initialized', 'info', 'TabView');
-            if ( this._tabParent ) {
-                this._initTabs();
-            }
-            
-            // Due to delegation we add all DOM_EVENTS to the TabView container
-            // but IE will leak when unsupported events are added, so remove these
-            this.DOM_EVENTS.submit = false;
-            this.DOM_EVENTS.focus = false;
-            this.DOM_EVENTS.blur = false;
-
-            for (var type in this.DOM_EVENTS) {
-                if ( YAHOO.lang.hasOwnProperty(this.DOM_EVENTS, type) ) {
-                    this.addListener.call(this, type, this.DOMEventHandler);
-                }
-            }
-        },
-
-        /**
-         * Removes selected state from the given tab if it is the activeTab
-         * @method deselectTab
-         * @param {Int} index The tab index to deselect 
-         */
-        deselectTab: function(index) {
-            if (this.getTab(index) === this.get('activeTab')) {
-                this.set('activeTab', null);
-            }
-        },
-
-        /**
-         * Makes the tab at the given index the active tab
-         * @method selectTab
-         * @param {Int} index The tab index to be made active
-         */
-        selectTab: function(index) {
-            this.set('activeTab', this.getTab(index));
-        },
-
-        _onActiveTabChange: function(e) {
-            var activeIndex = this.get(ACTIVE_INDEX),
-                newIndex = this.getTabIndex(e.newValue);
-
-            if (activeIndex !== newIndex) {
-                if (!(this.set(ACTIVE_INDEX, newIndex)) ) { // NOTE: setting
-                     // revert if activeIndex update fails (cancelled via beforeChange) 
-                    this.set(ACTIVE_TAB, e.prevValue);
-                }
-            }
-        },
-        
-        _onActiveIndexChange: function(e) {
-            // no set if called from ActiveTabChange event
-            if (e.newValue !== this.getTabIndex(this.get(ACTIVE_TAB))) {
-                if (!(this.set(ACTIVE_TAB, this.getTab(e.newValue))) ) { // NOTE: setting
-                     // revert if activeTab update fails (cancelled via beforeChange) 
-                    this.set(ACTIVE_INDEX, e.prevValue);
-                }
-            }
-        },
-
-        /**
-         * Creates Tab instances from a collection of HTMLElements.
-         * @method _initTabs
-         * @private
-         * @return void
-         */
-        _initTabs: function() {
-            var tabs = Dom.getChildren(this._tabParent),
-                contentElements = Dom.getChildren(this._contentParent),
-                activeIndex = this.get(ACTIVE_INDEX),
-                tab,
-                attr,
-                active;
-
-            for (var i = 0, len = tabs.length; i < len; ++i) {
-                attr = {};
-                
-                if (contentElements[i]) {
-                    attr.contentEl = contentElements[i];
-                }
-
-                tab = new YAHOO.widget.Tab(tabs[i], attr);
-                this.addTab(tab);
-                
-                if (tab.hasClass(tab.ACTIVE_CLASSNAME) ) {
-                    active = tab;
-                }
-            }
-            if (activeIndex) {
-                this.set(ACTIVE_TAB, this.getTab(activeIndex));
-            } else {
-                this._configs.activeTab.value = active; // dont invoke method
-                this._configs.activeIndex.value = this.getTabIndex(active);
-            }
-        },
-
-        _createTabViewElement: function(attr) {
-            var el = document.createElement('div');
-
-            if ( this.CLASSNAME ) {
-                el.className = this.CLASSNAME;
-            }
-            
-            YAHOO.log('TabView Dom created', 'info', 'TabView');
-            return el;
-        },
-
-        _createTabParent: function(attr) {
-            var el = document.createElement('ul');
-
-            if ( this.TAB_PARENT_CLASSNAME ) {
-                el.className = this.TAB_PARENT_CLASSNAME;
-            }
-            
-            this.get(ELEMENT).appendChild(el);
-            
-            return el;
-        },
-        
-        _createContentParent: function(attr) {
-            var el = document.createElement('div');
-
-            if ( this.CONTENT_PARENT_CLASSNAME ) {
-                el.className = this.CONTENT_PARENT_CLASSNAME;
-            }
-            
-            this.get(ELEMENT).appendChild(el);
-            
-            return el;
-        }
-    });
-    
-    
-    YAHOO.widget.TabView = TabView;
-})();
-
-(function() {
-    var Y = YAHOO.util, 
-        Dom = Y.Dom,
-        Lang = YAHOO.lang,
-    
-
-    // STRING CONSTANTS
-        ACTIVE_TAB = 'activeTab',
-        LABEL = 'label',
-        LABEL_EL = 'labelEl',
-        CONTENT = 'content',
-        CONTENT_EL = 'contentEl',
-        ELEMENT = 'element',
-        CACHE_DATA = 'cacheData',
-        DATA_SRC = 'dataSrc',
-        DATA_LOADED = 'dataLoaded',
-        DATA_TIMEOUT = 'dataTimeout',
-        LOAD_METHOD = 'loadMethod',
-        POST_DATA = 'postData',
-        DISABLED = 'disabled',
-    
-    /**
-     * A representation of a Tab's label and content.
-     * @namespace YAHOO.widget
-     * @class Tab
-     * @extends YAHOO.util.Element
-     * @constructor
-     * @param element {HTMLElement | String} (optional) The html element that 
-     * represents the Tab. An element will be created if none provided.
-     * @param {Object} properties A key map of initial properties
-     */
-    Tab = function(el, attr) {
-        attr = attr || {};
-        if (arguments.length == 1 && !Lang.isString(el) && !el.nodeName) {
-            attr = el;
-            el = attr.element;
-        }
-
-        if (!el && !attr.element) {
-            el = this._createTabElement(attr);
-        }
-
-        this.loadHandler =  {
-            success: function(o) {
-                this.set(CONTENT, o.responseText);
-            },
-            failure: function(o) {
-            }
-        };
-        
-        Tab.superclass.constructor.call(this, el, attr);
-        
-        this.DOM_EVENTS = {}; // delegating to tabView
-    };
-
-    YAHOO.extend(Tab, YAHOO.util.Element, {
-        /**
-         * The default tag name for a Tab's inner element.
-         * @property LABEL_INNER_TAGNAME
-         * @type String
-         * @default "em"
-         */
-        LABEL_TAGNAME: 'em',
-        
-        /**
-         * The class name applied to active tabs.
-         * @property ACTIVE_CLASSNAME
-         * @type String
-         * @default "selected"
-         */
-        ACTIVE_CLASSNAME: 'selected',
-        
-        /**
-         * The class name applied to active tabs.
-         * @property HIDDEN_CLASSNAME
-         * @type String
-         * @default "yui-hidden"
-         */
-        HIDDEN_CLASSNAME: 'yui-hidden',
-        
-        /**
-         * The title applied to active tabs.
-         * @property ACTIVE_TITLE
-         * @type String
-         * @default "active"
-         */
-        ACTIVE_TITLE: 'active',
-
-        /**
-         * The class name applied to disabled tabs.
-         * @property DISABLED_CLASSNAME
-         * @type String
-         * @default "disabled"
-         */
-        DISABLED_CLASSNAME: DISABLED,
-        
-        /**
-         * The class name applied to dynamic tabs while loading.
-         * @property LOADING_CLASSNAME
-         * @type String
-         * @default "disabled"
-         */
-        LOADING_CLASSNAME: 'loading',
-
-        /**
-         * Provides a reference to the connection request object when data is
-         * loaded dynamically.
-         * @property dataConnection
-         * @type Object
-         */
-        dataConnection: null,
-        
-        /**
-         * Object containing success and failure callbacks for loading data.
-         * @property loadHandler
-         * @type object
-         */
-        loadHandler: null,
-
-        _loading: false,
-        
-        /**
-         * Provides a readable name for the tab.
-         * @method toString
-         * @return String
-         */
-        toString: function() {
-            var el = this.get(ELEMENT),
-                id = el.id || el.tagName;
-            return "Tab " + id; 
-        },
-        
-        /**
-         * setAttributeConfigs Tab specific properties.
-         * @method initAttributes
-         * @param {Object} attr Hash of initial attributes
-         */
-        initAttributes: function(attr) {
-            attr = attr || {};
-            Tab.superclass.initAttributes.call(this, attr);
-            
-            /**
-             * The event that triggers the tab's activation.
-             * @attribute activationEvent
-             * @type String
-             */
-            this.setAttributeConfig('activationEvent', {
-                value: attr.activationEvent || 'click'
-            });        
-
-            /**
-             * The element that contains the tab's label.
-             * @attribute labelEl
-             * @type HTMLElement
-             */
-            this.setAttributeConfig(LABEL_EL, {
-                value: attr[LABEL_EL] || this._getLabelEl(),
-                method: function(value) {
-                    value = Dom.get(value);
-                    var current = this.get(LABEL_EL);
-
-                    if (current) {
-                        if (current == value) {
-                            return false; // already set
-                        }
-                        
-                        current.parentNode.replaceChild(value, current);
-                        this.set(LABEL, value.innerHTML);
-                    }
-                } 
-            });
-
-            /**
-             * The tab's label text (or innerHTML).
-             * @attribute label
-             * @type String
-             */
-            this.setAttributeConfig(LABEL, {
-                value: attr.label || this._getLabel(),
-                method: function(value) {
-                    var labelEl = this.get(LABEL_EL);
-                    if (!labelEl) { // create if needed
-                        this.set(LABEL_EL, this._createLabelEl());
-                    }
-                    
-                    labelEl.innerHTML = value;
-                }
-            });
-            
-            /**
-             * The HTMLElement that contains the tab's content.
-             * @attribute contentEl
-             * @type HTMLElement
-             */
-            this.setAttributeConfig(CONTENT_EL, {
-                value: attr[CONTENT_EL] || document.createElement('div'),
-                method: function(value) {
-                    value = Dom.get(value);
-                    var current = this.get(CONTENT_EL);
-
-                    if (current) {
-                        if (current === value) {
-                            return false; // already set
-                        }
-                        if (!this.get('selected')) {
-                            Dom.addClass(value, this.HIDDEN_CLASSNAME);
-                        }
-                        current.parentNode.replaceChild(value, current);
-                        this.set(CONTENT, value.innerHTML);
-                    }
-                }
-            });
-            
-            /**
-             * The tab's content.
-             * @attribute content
-             * @type String
-             */
-            this.setAttributeConfig(CONTENT, {
-                value: attr[CONTENT],
-                method: function(value) {
-                    this.get(CONTENT_EL).innerHTML = value;
-                }
-            });
-
-            /**
-             * The tab's data source, used for loading content dynamically.
-             * @attribute dataSrc
-             * @type String
-             */
-            this.setAttributeConfig(DATA_SRC, {
-                value: attr.dataSrc
-            });
-            
-            /**
-             * Whether or not content should be reloaded for every view.
-             * @attribute cacheData
-             * @type Boolean
-             * @default false
-             */
-            this.setAttributeConfig(CACHE_DATA, {
-                value: attr.cacheData || false,
-                validator: Lang.isBoolean
-            });
-            
-            /**
-             * The method to use for the data request.
-             * @attribute loadMethod
-             * @type String
-             * @default "GET"
-             */
-            this.setAttributeConfig(LOAD_METHOD, {
-                value: attr.loadMethod || 'GET',
-                validator: Lang.isString
-            });
-
-            /**
-             * Whether or not any data has been loaded from the server.
-             * @attribute dataLoaded
-             * @type Boolean
-             */        
-            this.setAttributeConfig(DATA_LOADED, {
-                value: false,
-                validator: Lang.isBoolean,
-                writeOnce: true
-            });
-            
-            /**
-             * Number if milliseconds before aborting and calling failure handler.
-             * @attribute dataTimeout
-             * @type Number
-             * @default null
-             */
-            this.setAttributeConfig(DATA_TIMEOUT, {
-                value: attr.dataTimeout || null,
-                validator: Lang.isNumber
-            });
-            
-            /**
-             * Arguments to pass when POST method is used 
-             * @attribute postData
-             * @default null
-             */
-            this.setAttributeConfig(POST_DATA, {
-                value: attr.postData || null
-            });
-
-            /**
-             * Whether or not the tab is currently active.
-             * If a dataSrc is set for the tab, the content will be loaded from
-             * the given source.
-             * @attribute active
-             * @type Boolean
-             */
-            this.setAttributeConfig('active', {
-                value: attr.active || this.hasClass(this.ACTIVE_CLASSNAME),
-                method: function(value) {
-                    if (value === true) {
-                        this.addClass(this.ACTIVE_CLASSNAME);
-                        this.set('title', this.ACTIVE_TITLE);
-                    } else {
-                        this.removeClass(this.ACTIVE_CLASSNAME);
-                        this.set('title', '');
-                    }
-                },
-                validator: function(value) {
-                    return Lang.isBoolean(value) && !this.get(DISABLED) ;
-                }
-            });
-            
-            /**
-             * Whether or not the tab is disabled.
-             * @attribute disabled
-             * @type Boolean
-             */
-            this.setAttributeConfig(DISABLED, {
-                value: attr.disabled || this.hasClass(this.DISABLED_CLASSNAME),
-                method: function(value) {
-                    if (value === true) {
-                        Dom.addClass(this.get(ELEMENT), this.DISABLED_CLASSNAME);
-                    } else {
-                        Dom.removeClass(this.get(ELEMENT), this.DISABLED_CLASSNAME);
-                    }
-                },
-                validator: Lang.isBoolean
-            });
-            
-            /**
-             * The href of the tab's anchor element.
-             * @attribute href
-             * @type String
-             * @default '#'
-             */
-            this.setAttributeConfig('href', {
-                value: attr.href ||
-                        this.getElementsByTagName('a')[0].getAttribute('href', 2) || '#',
-                method: function(value) {
-                    this.getElementsByTagName('a')[0].href = value;
-                },
-                validator: Lang.isString
-            });
-            
-            /**
-             * The Whether or not the tab's content is visible.
-             * @attribute contentVisible
-             * @type Boolean
-             * @default false
-             */
-            this.setAttributeConfig('contentVisible', {
-                value: attr.contentVisible,
-                method: function(value) {
-                    if (value) {
-                        Dom.removeClass(this.get(CONTENT_EL), this.HIDDEN_CLASSNAME);
-                        
-                        if ( this.get(DATA_SRC) ) {
-                         // load dynamic content unless already loading or loaded and caching
-                            if ( !this._loading && !(this.get(DATA_LOADED) && this.get(CACHE_DATA)) ) {
-                                this._dataConnect();
-                            }
-                        }
-                    } else {
-                        Dom.addClass(this.get(CONTENT_EL), this.HIDDEN_CLASSNAME);
-                    }
-                },
-                validator: Lang.isBoolean
-            });
-            YAHOO.log('attributes initialized', 'info', 'Tab');
-        },
-        
-        _dataConnect: function() {
-            if (!Y.Connect) {
-                YAHOO.log('YAHOO.util.Connect dependency not met',
-                        'error', 'Tab');
-                return false;
-            }
-
-            Dom.addClass(this.get(CONTENT_EL).parentNode, this.LOADING_CLASSNAME);
-            this._loading = true; 
-            this.dataConnection = Y.Connect.asyncRequest(
-                this.get(LOAD_METHOD),
-                this.get(DATA_SRC), 
-                {
-                    success: function(o) {
-                        YAHOO.log('content loaded successfully', 'info', 'Tab');
-                        this.loadHandler.success.call(this, o);
-                        this.set(DATA_LOADED, true);
-                        this.dataConnection = null;
-                        Dom.removeClass(this.get(CONTENT_EL).parentNode,
-                                this.LOADING_CLASSNAME);
-                        this._loading = false;
-                    },
-                    failure: function(o) {
-                        YAHOO.log('loading failed: ' + o.statusText, 'error', 'Tab');
-                        this.loadHandler.failure.call(this, o);
-                        this.dataConnection = null;
-                        Dom.removeClass(this.get(CONTENT_EL).parentNode,
-                                this.LOADING_CLASSNAME);
-                        this._loading = false;
-                    },
-                    scope: this,
-                    timeout: this.get(DATA_TIMEOUT)
-                },
-
-                this.get(POST_DATA)
-            );
-        },
-        _createTabElement: function(attr) {
-            var el = document.createElement('li'),
-                a = document.createElement('a'),
-                label = attr.label || null,
-                labelEl = attr.labelEl || null;
-            
-            a.href = attr.href || '#'; // TODO: Use Dom.setAttribute?
-            el.appendChild(a);
-            
-            if (labelEl) { // user supplied labelEl
-                if (!label) { // user supplied label
-                    label = this._getLabel();
-                }
-            } else {
-                labelEl = this._createLabelEl();
-            }
-            
-            a.appendChild(labelEl);
-            
-            YAHOO.log('creating Tab Dom', 'info', 'Tab');
-            return el;
-        },
-
-        _getLabelEl: function() {
-            return this.getElementsByTagName(this.LABEL_TAGNAME)[0];
-        },
-
-        _createLabelEl: function() {
-            var el = document.createElement(this.LABEL_TAGNAME);
-            return el;
-        },
-    
-        
-        _getLabel: function() {
-            var el = this.get(LABEL_EL);
-                
-                if (!el) {
-                    return undefined;
-                }
-            
-            return el.innerHTML;
-        },
-
-        _onActivate: function(e, tabview) {
-            var tab = this,
-                silent = false;
-
-            Y.Event.preventDefault(e);
-            if (tab === tabview.get(ACTIVE_TAB)) {
-                silent = true; // dont fire activeTabChange if already active
-            }
-            tabview.set(ACTIVE_TAB, tab, silent);
-        },
-
-        _onActivationEventChange: function(e) {
-            var tab = this;
-
-            if (e.prevValue != e.newValue) {
-                tab.removeListener(e.prevValue, tab._onActivate);
-                tab.addListener(e.newValue, tab._onActivate, this, tab);
-            }
-        }
-    });
-    
-    
-    /**
-     * Fires when a tab is removed from the tabview
-     * @event remove
-     * @type CustomEvent
-     * @param {Event} An event object with fields for "type" ("remove")
-     * and "tabview" (the tabview instance it was removed from) 
-     */
-    
-    YAHOO.widget.Tab = Tab;
-})();
-
-YAHOO.register("tabview", YAHOO.widget.TabView, {version: "2.8.0r4", build: "2449"});
diff --git a/koha-tmpl/intranet-tmpl/prog/en/lib/yui/tabview/tabview-min.js b/koha-tmpl/intranet-tmpl/prog/en/lib/yui/tabview/tabview-min.js
deleted file mode 100644 (file)
index 8fb1e3e..0000000
+++ /dev/null
@@ -1,8 +0,0 @@
-/*
-Copyright (c) 2009, Yahoo! Inc. All rights reserved.
-Code licensed under the BSD License:
-http://developer.yahoo.net/yui/license.txt
-version: 2.8.0r4
-*/
-(function(){var B=YAHOO.util,C=B.Dom,H=B.Event,F=window.document,J="active",D="activeIndex",E="activeTab",A="contentEl",G="element",I=function(L,K){K=K||{};if(arguments.length==1&&!YAHOO.lang.isString(L)&&!L.nodeName){K=L;L=K.element||null;}if(!L&&!K.element){L=this._createTabViewElement(K);}I.superclass.constructor.call(this,L,K);};YAHOO.extend(I,B.Element,{CLASSNAME:"yui-navset",TAB_PARENT_CLASSNAME:"yui-nav",CONTENT_PARENT_CLASSNAME:"yui-content",_tabParent:null,_contentParent:null,addTab:function(P,L){var N=this.get("tabs"),Q=this.getTab(L),R=this._tabParent,K=this._contentParent,M=P.get(G),O=P.get(A);if(!N){this._queue[this._queue.length]=["addTab",arguments];return false;}L=(L===undefined)?N.length:L;N.splice(L,0,P);if(Q){R.insertBefore(M,Q.get(G));}else{R.appendChild(M);}if(O&&!C.isAncestor(K,O)){K.appendChild(O);}if(!P.get(J)){P.set("contentVisible",false,true);}else{this.set(E,P,true);this.set("activeIndex",L,true);}this._initTabEvents(P);},_initTabEvents:function(K){K.addListener(K.get("activationEvent"),K._onActivate,this,K);K.addListener(K.get("activationEventChange"),K._onActivationEventChange,this,K);},_removeTabEvents:function(K){K.removeListener(K.get("activationEvent"),K._onActivate,this,K);K.removeListener("activationEventChange",K._onActivationEventChange,this,K);},DOMEventHandler:function(P){var Q=H.getTarget(P),S=this._tabParent,R=this.get("tabs"),M,L,K;if(C.isAncestor(S,Q)){for(var N=0,O=R.length;N<O;N++){L=R[N].get(G);K=R[N].get(A);if(Q==L||C.isAncestor(L,Q)){M=R[N];break;}}if(M){M.fireEvent(P.type,P);}}},getTab:function(K){return this.get("tabs")[K];},getTabIndex:function(O){var L=null,N=this.get("tabs");for(var M=0,K=N.length;M<K;++M){if(O==N[M]){L=M;break;}}return L;},removeTab:function(M){var L=this.get("tabs").length,K=this.getTabIndex(M);if(M===this.get(E)){if(L>1){if(K+1===L){this.set(D,K-1);}else{this.set(D,K+1);}}else{this.set(E,null);}}this._removeTabEvents(M);this._tabParent.removeChild(M.get(G));this._contentParent.removeChild(M.get(A));this._configs.tabs.value.splice(K,1);M.fireEvent("remove",{type:"remove",tabview:this});},toString:function(){var K=this.get("id")||this.get("tagName");return"TabView "+K;},contentTransition:function(L,K){if(L){L.set("contentVisible",true);}if(K){K.set("contentVisible",false);}},initAttributes:function(K){I.superclass.initAttributes.call(this,K);if(!K.orientation){K.orientation="top";}var M=this.get(G);if(!C.hasClass(M,this.CLASSNAME)){C.addClass(M,this.CLASSNAME);}this.setAttributeConfig("tabs",{value:[],readOnly:true});this._tabParent=this.getElementsByClassName(this.TAB_PARENT_CLASSNAME,"ul")[0]||this._createTabParent();this._contentParent=this.getElementsByClassName(this.CONTENT_PARENT_CLASSNAME,"div")[0]||this._createContentParent();this.setAttributeConfig("orientation",{value:K.orientation,method:function(N){var O=this.get("orientation");this.addClass("yui-navset-"+N);if(O!=N){this.removeClass("yui-navset-"+O);}if(N==="bottom"){this.appendChild(this._tabParent);}}});this.setAttributeConfig(D,{value:K.activeIndex,validator:function(O){var N=true;if(O&&this.getTab(O).get("disabled")){N=false;}return N;}});this.setAttributeConfig(E,{value:K.activeTab,method:function(O){var N=this.get(E);if(O){O.set(J,true);}if(N&&N!==O){N.set(J,false);}if(N&&O!==N){this.contentTransition(O,N);}else{if(O){O.set("contentVisible",true);}}},validator:function(O){var N=true;if(O&&O.get("disabled")){N=false;}return N;}});this.on("activeTabChange",this._onActiveTabChange);this.on("activeIndexChange",this._onActiveIndexChange);if(this._tabParent){this._initTabs();}this.DOM_EVENTS.submit=false;this.DOM_EVENTS.focus=false;this.DOM_EVENTS.blur=false;for(var L in this.DOM_EVENTS){if(YAHOO.lang.hasOwnProperty(this.DOM_EVENTS,L)){this.addListener.call(this,L,this.DOMEventHandler);}}},deselectTab:function(K){if(this.getTab(K)===this.get("activeTab")){this.set("activeTab",null);}},selectTab:function(K){this.set("activeTab",this.getTab(K));},_onActiveTabChange:function(M){var K=this.get(D),L=this.getTabIndex(M.newValue);if(K!==L){if(!(this.set(D,L))){this.set(E,M.prevValue);}}},_onActiveIndexChange:function(K){if(K.newValue!==this.getTabIndex(this.get(E))){if(!(this.set(E,this.getTab(K.newValue)))){this.set(D,K.prevValue);}}},_initTabs:function(){var P=C.getChildren(this._tabParent),N=C.getChildren(this._contentParent),M=this.get(D),Q,L,R;for(var O=0,K=P.length;O<K;++O){L={};if(N[O]){L.contentEl=N[O];}Q=new YAHOO.widget.Tab(P[O],L);this.addTab(Q);if(Q.hasClass(Q.ACTIVE_CLASSNAME)){R=Q;}}if(M){this.set(E,this.getTab(M));}else{this._configs.activeTab.value=R;this._configs.activeIndex.value=this.getTabIndex(R);}},_createTabViewElement:function(K){var L=F.createElement("div");if(this.CLASSNAME){L.className=this.CLASSNAME;}return L;},_createTabParent:function(K){var L=F.createElement("ul");if(this.TAB_PARENT_CLASSNAME){L.className=this.TAB_PARENT_CLASSNAME;}this.get(G).appendChild(L);return L;},_createContentParent:function(K){var L=F.createElement("div");if(this.CONTENT_PARENT_CLASSNAME){L.className=this.CONTENT_PARENT_CLASSNAME;}this.get(G).appendChild(L);return L;}});YAHOO.widget.TabView=I;})();(function(){var D=YAHOO.util,I=D.Dom,L=YAHOO.lang,M="activeTab",J="label",G="labelEl",Q="content",C="contentEl",O="element",P="cacheData",B="dataSrc",H="dataLoaded",A="dataTimeout",N="loadMethod",F="postData",K="disabled",E=function(S,R){R=R||{};if(arguments.length==1&&!L.isString(S)&&!S.nodeName){R=S;S=R.element;}if(!S&&!R.element){S=this._createTabElement(R);}this.loadHandler={success:function(T){this.set(Q,T.responseText);},failure:function(T){}};E.superclass.constructor.call(this,S,R);this.DOM_EVENTS={};};YAHOO.extend(E,YAHOO.util.Element,{LABEL_TAGNAME:"em",ACTIVE_CLASSNAME:"selected",HIDDEN_CLASSNAME:"yui-hidden",ACTIVE_TITLE:"active",DISABLED_CLASSNAME:K,LOADING_CLASSNAME:"loading",dataConnection:null,loadHandler:null,_loading:false,toString:function(){var R=this.get(O),S=R.id||R.tagName;return"Tab "+S;},initAttributes:function(R){R=R||{};E.superclass.initAttributes.call(this,R);
-this.setAttributeConfig("activationEvent",{value:R.activationEvent||"click"});this.setAttributeConfig(G,{value:R[G]||this._getLabelEl(),method:function(S){S=I.get(S);var T=this.get(G);if(T){if(T==S){return false;}T.parentNode.replaceChild(S,T);this.set(J,S.innerHTML);}}});this.setAttributeConfig(J,{value:R.label||this._getLabel(),method:function(T){var S=this.get(G);if(!S){this.set(G,this._createLabelEl());}S.innerHTML=T;}});this.setAttributeConfig(C,{value:R[C]||document.createElement("div"),method:function(S){S=I.get(S);var T=this.get(C);if(T){if(T===S){return false;}if(!this.get("selected")){I.addClass(S,this.HIDDEN_CLASSNAME);}T.parentNode.replaceChild(S,T);this.set(Q,S.innerHTML);}}});this.setAttributeConfig(Q,{value:R[Q],method:function(S){this.get(C).innerHTML=S;}});this.setAttributeConfig(B,{value:R.dataSrc});this.setAttributeConfig(P,{value:R.cacheData||false,validator:L.isBoolean});this.setAttributeConfig(N,{value:R.loadMethod||"GET",validator:L.isString});this.setAttributeConfig(H,{value:false,validator:L.isBoolean,writeOnce:true});this.setAttributeConfig(A,{value:R.dataTimeout||null,validator:L.isNumber});this.setAttributeConfig(F,{value:R.postData||null});this.setAttributeConfig("active",{value:R.active||this.hasClass(this.ACTIVE_CLASSNAME),method:function(S){if(S===true){this.addClass(this.ACTIVE_CLASSNAME);this.set("title",this.ACTIVE_TITLE);}else{this.removeClass(this.ACTIVE_CLASSNAME);this.set("title","");}},validator:function(S){return L.isBoolean(S)&&!this.get(K);}});this.setAttributeConfig(K,{value:R.disabled||this.hasClass(this.DISABLED_CLASSNAME),method:function(S){if(S===true){I.addClass(this.get(O),this.DISABLED_CLASSNAME);}else{I.removeClass(this.get(O),this.DISABLED_CLASSNAME);}},validator:L.isBoolean});this.setAttributeConfig("href",{value:R.href||this.getElementsByTagName("a")[0].getAttribute("href",2)||"#",method:function(S){this.getElementsByTagName("a")[0].href=S;},validator:L.isString});this.setAttributeConfig("contentVisible",{value:R.contentVisible,method:function(S){if(S){I.removeClass(this.get(C),this.HIDDEN_CLASSNAME);if(this.get(B)){if(!this._loading&&!(this.get(H)&&this.get(P))){this._dataConnect();}}}else{I.addClass(this.get(C),this.HIDDEN_CLASSNAME);}},validator:L.isBoolean});},_dataConnect:function(){if(!D.Connect){return false;}I.addClass(this.get(C).parentNode,this.LOADING_CLASSNAME);this._loading=true;this.dataConnection=D.Connect.asyncRequest(this.get(N),this.get(B),{success:function(R){this.loadHandler.success.call(this,R);this.set(H,true);this.dataConnection=null;I.removeClass(this.get(C).parentNode,this.LOADING_CLASSNAME);this._loading=false;},failure:function(R){this.loadHandler.failure.call(this,R);this.dataConnection=null;I.removeClass(this.get(C).parentNode,this.LOADING_CLASSNAME);this._loading=false;},scope:this,timeout:this.get(A)},this.get(F));},_createTabElement:function(R){var V=document.createElement("li"),S=document.createElement("a"),U=R.label||null,T=R.labelEl||null;S.href=R.href||"#";V.appendChild(S);if(T){if(!U){U=this._getLabel();}}else{T=this._createLabelEl();}S.appendChild(T);return V;},_getLabelEl:function(){return this.getElementsByTagName(this.LABEL_TAGNAME)[0];},_createLabelEl:function(){var R=document.createElement(this.LABEL_TAGNAME);return R;},_getLabel:function(){var R=this.get(G);if(!R){return undefined;}return R.innerHTML;},_onActivate:function(U,T){var S=this,R=false;D.Event.preventDefault(U);if(S===T.get(M)){R=true;}T.set(M,S,R);},_onActivationEventChange:function(S){var R=this;if(S.prevValue!=S.newValue){R.removeListener(S.prevValue,R._onActivate);R.addListener(S.newValue,R._onActivate,this,R);}}});YAHOO.widget.Tab=E;})();YAHOO.register("tabview",YAHOO.widget.TabView,{version:"2.8.0r4",build:"2449"});
\ No newline at end of file
diff --git a/koha-tmpl/intranet-tmpl/prog/en/lib/yui/tabview/tabview.js b/koha-tmpl/intranet-tmpl/prog/en/lib/yui/tabview/tabview.js
deleted file mode 100644 (file)
index 88f5190..0000000
+++ /dev/null
@@ -1,987 +0,0 @@
-/*
-Copyright (c) 2009, Yahoo! Inc. All rights reserved.
-Code licensed under the BSD License:
-http://developer.yahoo.net/yui/license.txt
-version: 2.8.0r4
-*/
-(function() {
-
-    /**
-     * The tabview module provides a widget for managing content bound to tabs.
-     * @module tabview
-     * @requires yahoo, dom, event, element
-     *
-     */
-
-    var Y = YAHOO.util,
-        Dom = Y.Dom,
-        Event = Y.Event,
-        document = window.document,
-    
-        // STRING CONSTANTS
-        ACTIVE = 'active',
-        ACTIVE_INDEX = 'activeIndex',
-        ACTIVE_TAB = 'activeTab',
-        CONTENT_EL = 'contentEl',
-        ELEMENT = 'element',
-    
-    /**
-     * A widget to control tabbed views.
-     * @namespace YAHOO.widget
-     * @class TabView
-     * @extends YAHOO.util.Element
-     * @constructor
-     * @param {HTMLElement | String | Object} el(optional) The html 
-     * element that represents the TabView, or the attribute object to use. 
-     * An element will be created if none provided.
-     * @param {Object} attr (optional) A key map of the tabView's 
-     * initial attributes.  Ignored if first arg is attributes object.
-     */
-    TabView = function(el, attr) {
-        attr = attr || {};
-        if (arguments.length == 1 && !YAHOO.lang.isString(el) && !el.nodeName) {
-            attr = el; // treat first arg as attr object
-            el = attr.element || null;
-        }
-        
-        if (!el && !attr.element) { // create if we dont have one
-            el = this._createTabViewElement(attr);
-        }
-        TabView.superclass.constructor.call(this, el, attr); 
-    };
-
-    YAHOO.extend(TabView, Y.Element, {
-        /**
-         * The className to add when building from scratch. 
-         * @property CLASSNAME
-         * @default "navset"
-         */
-        CLASSNAME: 'yui-navset',
-        
-        /**
-         * The className of the HTMLElement containing the TabView's tab elements
-         * to look for when building from existing markup, or to add when building
-         * from scratch. 
-         * All childNodes of the tab container are treated as Tabs when building
-         * from existing markup.
-         * @property TAB_PARENT_CLASSNAME
-         * @default "nav"
-         */
-        TAB_PARENT_CLASSNAME: 'yui-nav',
-        
-        /**
-         * The className of the HTMLElement containing the TabView's label elements
-         * to look for when building from existing markup, or to add when building
-         * from scratch. 
-         * All childNodes of the content container are treated as content elements when
-         * building from existing markup.
-         * @property CONTENT_PARENT_CLASSNAME
-         * @default "nav-content"
-         */
-        CONTENT_PARENT_CLASSNAME: 'yui-content',
-        
-        _tabParent: null,
-        _contentParent: null,
-        
-        /**
-         * Adds a Tab to the TabView instance.  
-         * If no index is specified, the tab is added to the end of the tab list.
-         * @method addTab
-         * @param {YAHOO.widget.Tab} tab A Tab instance to add.
-         * @param {Integer} index The position to add the tab. 
-         * @return void
-         */
-        addTab: function(tab, index) {
-            var tabs = this.get('tabs'),
-                before = this.getTab(index),
-                tabParent = this._tabParent,
-                contentParent = this._contentParent,
-                tabElement = tab.get(ELEMENT),
-                contentEl = tab.get(CONTENT_EL);
-
-            if (!tabs) { // not ready yet
-                this._queue[this._queue.length] = ['addTab', arguments];
-                return false;
-            }
-            
-            index = (index === undefined) ? tabs.length : index;
-            
-            tabs.splice(index, 0, tab);
-
-            if ( before ) {
-                tabParent.insertBefore(tabElement, before.get(ELEMENT));
-            } else {
-                tabParent.appendChild(tabElement);
-            }
-
-            if ( contentEl && !Dom.isAncestor(contentParent, contentEl) ) {
-                contentParent.appendChild(contentEl);
-            }
-            
-            if ( !tab.get(ACTIVE) ) {
-                tab.set('contentVisible', false, true); /* hide if not active */
-            } else {
-                this.set(ACTIVE_TAB, tab, true);
-                this.set('activeIndex', index, true);
-            }
-
-            this._initTabEvents(tab);
-        },
-
-        _initTabEvents: function(tab) {
-            tab.addListener( tab.get('activationEvent'), tab._onActivate, this, tab);
-            tab.addListener( tab.get('activationEventChange'), tab._onActivationEventChange, this, tab);
-        },
-
-        _removeTabEvents: function(tab) {
-            tab.removeListener(tab.get('activationEvent'), tab._onActivate, this, tab);
-            tab.removeListener('activationEventChange', tab._onActivationEventChange, this, tab);
-        },
-
-        /**
-         * Routes childNode events.
-         * @method DOMEventHandler
-         * @param {event} e The Dom event that is being handled.
-         * @return void
-         */
-        DOMEventHandler: function(e) {
-            var target = Event.getTarget(e),
-                tabParent = this._tabParent,
-                tabs = this.get('tabs'),
-                tab,
-                tabEl,
-                contentEl;
-
-            
-            if (Dom.isAncestor(tabParent, target) ) {
-                for (var i = 0, len = tabs.length; i < len; i++) {
-                    tabEl = tabs[i].get(ELEMENT);
-                    contentEl = tabs[i].get(CONTENT_EL);
-
-                    if ( target == tabEl || Dom.isAncestor(tabEl, target) ) {
-                        tab = tabs[i];
-                        break; // note break
-                    }
-                } 
-                
-                if (tab) {
-                    tab.fireEvent(e.type, e);
-                }
-            }
-        },
-        
-        /**
-         * Returns the Tab instance at the specified index.
-         * @method getTab
-         * @param {Integer} index The position of the Tab.
-         * @return YAHOO.widget.Tab
-         */
-        getTab: function(index) {
-            return this.get('tabs')[index];
-        },
-        
-        /**
-         * Returns the index of given tab.
-         * @method getTabIndex
-         * @param {YAHOO.widget.Tab} tab The tab whose index will be returned.
-         * @return int
-         */
-        getTabIndex: function(tab) {
-            var index = null,
-                tabs = this.get('tabs');
-            for (var i = 0, len = tabs.length; i < len; ++i) {
-                if (tab == tabs[i]) {
-                    index = i;
-                    break;
-                }
-            }
-            
-            return index;
-        },
-        
-        /**
-         * Removes the specified Tab from the TabView.
-         * @method removeTab
-         * @param {YAHOO.widget.Tab} item The Tab instance to be removed.
-         * @return void
-         */
-        removeTab: function(tab) {
-            var tabCount = this.get('tabs').length,
-                index = this.getTabIndex(tab);
-
-            if ( tab === this.get(ACTIVE_TAB) ) { 
-                if (tabCount > 1) { // select another tab
-                    if (index + 1 === tabCount) { // if last, activate previous
-                        this.set(ACTIVE_INDEX, index - 1);
-                    } else { // activate next tab
-                        this.set(ACTIVE_INDEX, index + 1);
-                    }
-                } else { // no more tabs
-                    this.set(ACTIVE_TAB, null);
-                }
-            }
-            
-            this._removeTabEvents(tab);
-            this._tabParent.removeChild( tab.get(ELEMENT) );
-            this._contentParent.removeChild( tab.get(CONTENT_EL) );
-            this._configs.tabs.value.splice(index, 1);
-
-            tab.fireEvent('remove', { type: 'remove', tabview: this });
-        },
-        
-        /**
-         * Provides a readable name for the TabView instance.
-         * @method toString
-         * @return String
-         */
-        toString: function() {
-            var name = this.get('id') || this.get('tagName');
-            return "TabView " + name; 
-        },
-        
-        /**
-         * The transiton to use when switching between tabs.
-         * @method contentTransition
-         */
-        contentTransition: function(newTab, oldTab) {
-            if (newTab) {
-                newTab.set('contentVisible', true);
-            }
-            if (oldTab) {
-                oldTab.set('contentVisible', false);
-            }
-        },
-        
-        /**
-         * setAttributeConfigs TabView specific properties.
-         * @method initAttributes
-         * @param {Object} attr Hash of initial attributes
-         */
-        initAttributes: function(attr) {
-            TabView.superclass.initAttributes.call(this, attr);
-            
-            if (!attr.orientation) {
-                attr.orientation = 'top';
-            }
-            
-            var el = this.get(ELEMENT);
-
-            if (!Dom.hasClass(el, this.CLASSNAME)) {
-                Dom.addClass(el, this.CLASSNAME);        
-            }
-            
-            /**
-             * The Tabs belonging to the TabView instance.
-             * @attribute tabs
-             * @type Array
-             */
-            this.setAttributeConfig('tabs', {
-                value: [],
-                readOnly: true
-            });
-
-            /**
-             * The container of the tabView's label elements.
-             * @property _tabParent
-             * @private
-             * @type HTMLElement
-             */
-            this._tabParent = 
-                    this.getElementsByClassName(this.TAB_PARENT_CLASSNAME,
-                            'ul' )[0] || this._createTabParent();
-                
-            /**
-             * The container of the tabView's content elements.
-             * @property _contentParent
-             * @type HTMLElement
-             * @private
-             */
-            this._contentParent = 
-                    this.getElementsByClassName(this.CONTENT_PARENT_CLASSNAME,
-                            'div')[0] ||  this._createContentParent();
-            
-            /**
-             * How the Tabs should be oriented relative to the TabView.
-             * @attribute orientation
-             * @type String
-             * @default "top"
-             */
-            this.setAttributeConfig('orientation', {
-                value: attr.orientation,
-                method: function(value) {
-                    var current = this.get('orientation');
-                    this.addClass('yui-navset-' + value);
-                    
-                    if (current != value) {
-                        this.removeClass('yui-navset-' + current);
-                    }
-                    
-                    if (value === 'bottom') {
-                        this.appendChild(this._tabParent);
-                    }
-                }
-            });
-            
-            /**
-             * The index of the tab currently active.
-             * @attribute activeIndex
-             * @type Int
-             */
-            this.setAttributeConfig(ACTIVE_INDEX, {
-                value: attr.activeIndex,
-                validator: function(value) {
-                    var ret = true;
-                    if (value && this.getTab(value).get('disabled')) { // cannot activate if disabled
-                        ret = false;
-                    }
-                    return ret;
-                }
-            });
-            
-            /**
-             * The tab currently active.
-             * @attribute activeTab
-             * @type YAHOO.widget.Tab
-             */
-            this.setAttributeConfig(ACTIVE_TAB, {
-                value: attr.activeTab,
-                method: function(tab) {
-                    var activeTab = this.get(ACTIVE_TAB);
-                    
-                    if (tab) {
-                        tab.set(ACTIVE, true);
-                    }
-                    
-                    if (activeTab && activeTab !== tab) {
-                        activeTab.set(ACTIVE, false);
-                    }
-                    
-                    if (activeTab && tab !== activeTab) { // no transition if only 1
-                        this.contentTransition(tab, activeTab);
-                    } else if (tab) {
-                        tab.set('contentVisible', true);
-                    }
-                },
-                validator: function(value) {
-                    var ret = true;
-                    if (value && value.get('disabled')) { // cannot activate if disabled
-                        ret = false;
-                    }
-                    return ret;
-                }
-            });
-
-            this.on('activeTabChange', this._onActiveTabChange);
-            this.on('activeIndexChange', this._onActiveIndexChange);
-
-            if ( this._tabParent ) {
-                this._initTabs();
-            }
-            
-            // Due to delegation we add all DOM_EVENTS to the TabView container
-            // but IE will leak when unsupported events are added, so remove these
-            this.DOM_EVENTS.submit = false;
-            this.DOM_EVENTS.focus = false;
-            this.DOM_EVENTS.blur = false;
-
-            for (var type in this.DOM_EVENTS) {
-                if ( YAHOO.lang.hasOwnProperty(this.DOM_EVENTS, type) ) {
-                    this.addListener.call(this, type, this.DOMEventHandler);
-                }
-            }
-        },
-
-        /**
-         * Removes selected state from the given tab if it is the activeTab
-         * @method deselectTab
-         * @param {Int} index The tab index to deselect 
-         */
-        deselectTab: function(index) {
-            if (this.getTab(index) === this.get('activeTab')) {
-                this.set('activeTab', null);
-            }
-        },
-
-        /**
-         * Makes the tab at the given index the active tab
-         * @method selectTab
-         * @param {Int} index The tab index to be made active
-         */
-        selectTab: function(index) {
-            this.set('activeTab', this.getTab(index));
-        },
-
-        _onActiveTabChange: function(e) {
-            var activeIndex = this.get(ACTIVE_INDEX),
-                newIndex = this.getTabIndex(e.newValue);
-
-            if (activeIndex !== newIndex) {
-                if (!(this.set(ACTIVE_INDEX, newIndex)) ) { // NOTE: setting
-                     // revert if activeIndex update fails (cancelled via beforeChange) 
-                    this.set(ACTIVE_TAB, e.prevValue);
-                }
-            }
-        },
-        
-        _onActiveIndexChange: function(e) {
-            // no set if called from ActiveTabChange event
-            if (e.newValue !== this.getTabIndex(this.get(ACTIVE_TAB))) {
-                if (!(this.set(ACTIVE_TAB, this.getTab(e.newValue))) ) { // NOTE: setting
-                     // revert if activeTab update fails (cancelled via beforeChange) 
-                    this.set(ACTIVE_INDEX, e.prevValue);
-                }
-            }
-        },
-
-        /**
-         * Creates Tab instances from a collection of HTMLElements.
-         * @method _initTabs
-         * @private
-         * @return void
-         */
-        _initTabs: function() {
-            var tabs = Dom.getChildren(this._tabParent),
-                contentElements = Dom.getChildren(this._contentParent),
-                activeIndex = this.get(ACTIVE_INDEX),
-                tab,
-                attr,
-                active;
-
-            for (var i = 0, len = tabs.length; i < len; ++i) {
-                attr = {};
-                
-                if (contentElements[i]) {
-                    attr.contentEl = contentElements[i];
-                }
-
-                tab = new YAHOO.widget.Tab(tabs[i], attr);
-                this.addTab(tab);
-                
-                if (tab.hasClass(tab.ACTIVE_CLASSNAME) ) {
-                    active = tab;
-                }
-            }
-            if (activeIndex) {
-                this.set(ACTIVE_TAB, this.getTab(activeIndex));
-            } else {
-                this._configs.activeTab.value = active; // dont invoke method
-                this._configs.activeIndex.value = this.getTabIndex(active);
-            }
-        },
-
-        _createTabViewElement: function(attr) {
-            var el = document.createElement('div');
-
-            if ( this.CLASSNAME ) {
-                el.className = this.CLASSNAME;
-            }
-            
-            return el;
-        },
-
-        _createTabParent: function(attr) {
-            var el = document.createElement('ul');
-
-            if ( this.TAB_PARENT_CLASSNAME ) {
-                el.className = this.TAB_PARENT_CLASSNAME;
-            }
-            
-            this.get(ELEMENT).appendChild(el);
-            
-            return el;
-        },
-        
-        _createContentParent: function(attr) {
-            var el = document.createElement('div');
-
-            if ( this.CONTENT_PARENT_CLASSNAME ) {
-                el.className = this.CONTENT_PARENT_CLASSNAME;
-            }
-            
-            this.get(ELEMENT).appendChild(el);
-            
-            return el;
-        }
-    });
-    
-    
-    YAHOO.widget.TabView = TabView;
-})();
-
-(function() {
-    var Y = YAHOO.util, 
-        Dom = Y.Dom,
-        Lang = YAHOO.lang,
-    
-
-    // STRING CONSTANTS
-        ACTIVE_TAB = 'activeTab',
-        LABEL = 'label',
-        LABEL_EL = 'labelEl',
-        CONTENT = 'content',
-        CONTENT_EL = 'contentEl',
-        ELEMENT = 'element',
-        CACHE_DATA = 'cacheData',
-        DATA_SRC = 'dataSrc',
-        DATA_LOADED = 'dataLoaded',
-        DATA_TIMEOUT = 'dataTimeout',
-        LOAD_METHOD = 'loadMethod',
-        POST_DATA = 'postData',
-        DISABLED = 'disabled',
-    
-    /**
-     * A representation of a Tab's label and content.
-     * @namespace YAHOO.widget
-     * @class Tab
-     * @extends YAHOO.util.Element
-     * @constructor
-     * @param element {HTMLElement | String} (optional) The html element that 
-     * represents the Tab. An element will be created if none provided.
-     * @param {Object} properties A key map of initial properties
-     */
-    Tab = function(el, attr) {
-        attr = attr || {};
-        if (arguments.length == 1 && !Lang.isString(el) && !el.nodeName) {
-            attr = el;
-            el = attr.element;
-        }
-
-        if (!el && !attr.element) {
-            el = this._createTabElement(attr);
-        }
-
-        this.loadHandler =  {
-            success: function(o) {
-                this.set(CONTENT, o.responseText);
-            },
-            failure: function(o) {
-            }
-        };
-        
-        Tab.superclass.constructor.call(this, el, attr);
-        
-        this.DOM_EVENTS = {}; // delegating to tabView
-    };
-
-    YAHOO.extend(Tab, YAHOO.util.Element, {
-        /**
-         * The default tag name for a Tab's inner element.
-         * @property LABEL_INNER_TAGNAME
-         * @type String
-         * @default "em"
-         */
-        LABEL_TAGNAME: 'em',
-        
-        /**
-         * The class name applied to active tabs.
-         * @property ACTIVE_CLASSNAME
-         * @type String
-         * @default "selected"
-         */
-        ACTIVE_CLASSNAME: 'selected',
-        
-        /**
-         * The class name applied to active tabs.
-         * @property HIDDEN_CLASSNAME
-         * @type String
-         * @default "yui-hidden"
-         */
-        HIDDEN_CLASSNAME: 'yui-hidden',
-        
-        /**
-         * The title applied to active tabs.
-         * @property ACTIVE_TITLE
-         * @type String
-         * @default "active"
-         */
-        ACTIVE_TITLE: 'active',
-
-        /**
-         * The class name applied to disabled tabs.
-         * @property DISABLED_CLASSNAME
-         * @type String
-         * @default "disabled"
-         */
-        DISABLED_CLASSNAME: DISABLED,
-        
-        /**
-         * The class name applied to dynamic tabs while loading.
-         * @property LOADING_CLASSNAME
-         * @type String
-         * @default "disabled"
-         */
-        LOADING_CLASSNAME: 'loading',
-
-        /**
-         * Provides a reference to the connection request object when data is
-         * loaded dynamically.
-         * @property dataConnection
-         * @type Object
-         */
-        dataConnection: null,
-        
-        /**
-         * Object containing success and failure callbacks for loading data.
-         * @property loadHandler
-         * @type object
-         */
-        loadHandler: null,
-
-        _loading: false,
-        
-        /**
-         * Provides a readable name for the tab.
-         * @method toString
-         * @return String
-         */
-        toString: function() {
-            var el = this.get(ELEMENT),
-                id = el.id || el.tagName;
-            return "Tab " + id; 
-        },
-        
-        /**
-         * setAttributeConfigs Tab specific properties.
-         * @method initAttributes
-         * @param {Object} attr Hash of initial attributes
-         */
-        initAttributes: function(attr) {
-            attr = attr || {};
-            Tab.superclass.initAttributes.call(this, attr);
-            
-            /**
-             * The event that triggers the tab's activation.
-             * @attribute activationEvent
-             * @type String
-             */
-            this.setAttributeConfig('activationEvent', {
-                value: attr.activationEvent || 'click'
-            });        
-
-            /**
-             * The element that contains the tab's label.
-             * @attribute labelEl
-             * @type HTMLElement
-             */
-            this.setAttributeConfig(LABEL_EL, {
-                value: attr[LABEL_EL] || this._getLabelEl(),
-                method: function(value) {
-                    value = Dom.get(value);
-                    var current = this.get(LABEL_EL);
-
-                    if (current) {
-                        if (current == value) {
-                            return false; // already set
-                        }
-                        
-                        current.parentNode.replaceChild(value, current);
-                        this.set(LABEL, value.innerHTML);
-                    }
-                } 
-            });
-
-            /**
-             * The tab's label text (or innerHTML).
-             * @attribute label
-             * @type String
-             */
-            this.setAttributeConfig(LABEL, {
-                value: attr.label || this._getLabel(),
-                method: function(value) {
-                    var labelEl = this.get(LABEL_EL);
-                    if (!labelEl) { // create if needed
-                        this.set(LABEL_EL, this._createLabelEl());
-                    }
-                    
-                    labelEl.innerHTML = value;
-                }
-            });
-            
-            /**
-             * The HTMLElement that contains the tab's content.
-             * @attribute contentEl
-             * @type HTMLElement
-             */
-            this.setAttributeConfig(CONTENT_EL, {
-                value: attr[CONTENT_EL] || document.createElement('div'),
-                method: function(value) {
-                    value = Dom.get(value);
-                    var current = this.get(CONTENT_EL);
-
-                    if (current) {
-                        if (current === value) {
-                            return false; // already set
-                        }
-                        if (!this.get('selected')) {
-                            Dom.addClass(value, this.HIDDEN_CLASSNAME);
-                        }
-                        current.parentNode.replaceChild(value, current);
-                        this.set(CONTENT, value.innerHTML);
-                    }
-                }
-            });
-            
-            /**
-             * The tab's content.
-             * @attribute content
-             * @type String
-             */
-            this.setAttributeConfig(CONTENT, {
-                value: attr[CONTENT],
-                method: function(value) {
-                    this.get(CONTENT_EL).innerHTML = value;
-                }
-            });
-
-            /**
-             * The tab's data source, used for loading content dynamically.
-             * @attribute dataSrc
-             * @type String
-             */
-            this.setAttributeConfig(DATA_SRC, {
-                value: attr.dataSrc
-            });
-            
-            /**
-             * Whether or not content should be reloaded for every view.
-             * @attribute cacheData
-             * @type Boolean
-             * @default false
-             */
-            this.setAttributeConfig(CACHE_DATA, {
-                value: attr.cacheData || false,
-                validator: Lang.isBoolean
-            });
-            
-            /**
-             * The method to use for the data request.
-             * @attribute loadMethod
-             * @type String
-             * @default "GET"
-             */
-            this.setAttributeConfig(LOAD_METHOD, {
-                value: attr.loadMethod || 'GET',
-                validator: Lang.isString
-            });
-
-            /**
-             * Whether or not any data has been loaded from the server.
-             * @attribute dataLoaded
-             * @type Boolean
-             */        
-            this.setAttributeConfig(DATA_LOADED, {
-                value: false,
-                validator: Lang.isBoolean,
-                writeOnce: true
-            });
-            
-            /**
-             * Number if milliseconds before aborting and calling failure handler.
-             * @attribute dataTimeout
-             * @type Number
-             * @default null
-             */
-            this.setAttributeConfig(DATA_TIMEOUT, {
-                value: attr.dataTimeout || null,
-                validator: Lang.isNumber
-            });
-            
-            /**
-             * Arguments to pass when POST method is used 
-             * @attribute postData
-             * @default null
-             */
-            this.setAttributeConfig(POST_DATA, {
-                value: attr.postData || null
-            });
-
-            /**
-             * Whether or not the tab is currently active.
-             * If a dataSrc is set for the tab, the content will be loaded from
-             * the given source.
-             * @attribute active
-             * @type Boolean
-             */
-            this.setAttributeConfig('active', {
-                value: attr.active || this.hasClass(this.ACTIVE_CLASSNAME),
-                method: function(value) {
-                    if (value === true) {
-                        this.addClass(this.ACTIVE_CLASSNAME);
-                        this.set('title', this.ACTIVE_TITLE);
-                    } else {
-                        this.removeClass(this.ACTIVE_CLASSNAME);
-                        this.set('title', '');
-                    }
-                },
-                validator: function(value) {
-                    return Lang.isBoolean(value) && !this.get(DISABLED) ;
-                }
-            });
-            
-            /**
-             * Whether or not the tab is disabled.
-             * @attribute disabled
-             * @type Boolean
-             */
-            this.setAttributeConfig(DISABLED, {
-                value: attr.disabled || this.hasClass(this.DISABLED_CLASSNAME),
-                method: function(value) {
-                    if (value === true) {
-                        Dom.addClass(this.get(ELEMENT), this.DISABLED_CLASSNAME);
-                    } else {
-                        Dom.removeClass(this.get(ELEMENT), this.DISABLED_CLASSNAME);
-                    }
-                },
-                validator: Lang.isBoolean
-            });
-            
-            /**
-             * The href of the tab's anchor element.
-             * @attribute href
-             * @type String
-             * @default '#'
-             */
-            this.setAttributeConfig('href', {
-                value: attr.href ||
-                        this.getElementsByTagName('a')[0].getAttribute('href', 2) || '#',
-                method: function(value) {
-                    this.getElementsByTagName('a')[0].href = value;
-                },
-                validator: Lang.isString
-            });
-            
-            /**
-             * The Whether or not the tab's content is visible.
-             * @attribute contentVisible
-             * @type Boolean
-             * @default false
-             */
-            this.setAttributeConfig('contentVisible', {
-                value: attr.contentVisible,
-                method: function(value) {
-                    if (value) {
-                        Dom.removeClass(this.get(CONTENT_EL), this.HIDDEN_CLASSNAME);
-                        
-                        if ( this.get(DATA_SRC) ) {
-                         // load dynamic content unless already loading or loaded and caching
-                            if ( !this._loading && !(this.get(DATA_LOADED) && this.get(CACHE_DATA)) ) {
-                                this._dataConnect();
-                            }
-                        }
-                    } else {
-                        Dom.addClass(this.get(CONTENT_EL), this.HIDDEN_CLASSNAME);
-                    }
-                },
-                validator: Lang.isBoolean
-            });
-        },
-        
-        _dataConnect: function() {
-            if (!Y.Connect) {
-                return false;
-            }
-
-            Dom.addClass(this.get(CONTENT_EL).parentNode, this.LOADING_CLASSNAME);
-            this._loading = true; 
-            this.dataConnection = Y.Connect.asyncRequest(
-                this.get(LOAD_METHOD),
-                this.get(DATA_SRC), 
-                {
-                    success: function(o) {
-                        this.loadHandler.success.call(this, o);
-                        this.set(DATA_LOADED, true);
-                        this.dataConnection = null;
-                        Dom.removeClass(this.get(CONTENT_EL).parentNode,
-                                this.LOADING_CLASSNAME);
-                        this._loading = false;
-                    },
-                    failure: function(o) {
-                        this.loadHandler.failure.call(this, o);
-                        this.dataConnection = null;
-                        Dom.removeClass(this.get(CONTENT_EL).parentNode,
-                                this.LOADING_CLASSNAME);
-                        this._loading = false;
-                    },
-                    scope: this,
-                    timeout: this.get(DATA_TIMEOUT)
-                },
-
-                this.get(POST_DATA)
-            );
-        },
-        _createTabElement: function(attr) {
-            var el = document.createElement('li'),
-                a = document.createElement('a'),
-                label = attr.label || null,
-                labelEl = attr.labelEl || null;
-            
-            a.href = attr.href || '#'; // TODO: Use Dom.setAttribute?
-            el.appendChild(a);
-            
-            if (labelEl) { // user supplied labelEl
-                if (!label) { // user supplied label
-                    label = this._getLabel();
-                }
-            } else {
-                labelEl = this._createLabelEl();
-            }
-            
-            a.appendChild(labelEl);
-            
-            return el;
-        },
-
-        _getLabelEl: function() {
-            return this.getElementsByTagName(this.LABEL_TAGNAME)[0];
-        },
-
-        _createLabelEl: function() {
-            var el = document.createElement(this.LABEL_TAGNAME);
-            return el;
-        },
-    
-        
-        _getLabel: function() {
-            var el = this.get(LABEL_EL);
-                
-                if (!el) {
-                    return undefined;
-                }
-            
-            return el.innerHTML;
-        },
-
-        _onActivate: function(e, tabview) {
-            var tab = this,
-                silent = false;
-
-            Y.Event.preventDefault(e);
-            if (tab === tabview.get(ACTIVE_TAB)) {
-                silent = true; // dont fire activeTabChange if already active
-            }
-            tabview.set(ACTIVE_TAB, tab, silent);
-        },
-
-        _onActivationEventChange: function(e) {
-            var tab = this;
-
-            if (e.prevValue != e.newValue) {
-                tab.removeListener(e.prevValue, tab._onActivate);
-                tab.addListener(e.newValue, tab._onActivate, this, tab);
-            }
-        }
-    });
-    
-    
-    /**
-     * Fires when a tab is removed from the tabview
-     * @event remove
-     * @type CustomEvent
-     * @param {Event} An event object with fields for "type" ("remove")
-     * and "tabview" (the tabview instance it was removed from) 
-     */
-    
-    YAHOO.widget.Tab = Tab;
-})();
-
-YAHOO.register("tabview", YAHOO.widget.TabView, {version: "2.8.0r4", build: "2449"});
diff --git a/koha-tmpl/intranet-tmpl/prog/en/lib/yui/treeview/assets/skins/sam/check0.gif b/koha-tmpl/intranet-tmpl/prog/en/lib/yui/treeview/assets/skins/sam/check0.gif
deleted file mode 100644 (file)
index 193028b..0000000
Binary files a/koha-tmpl/intranet-tmpl/prog/en/lib/yui/treeview/assets/skins/sam/check0.gif and /dev/null differ
diff --git a/koha-tmpl/intranet-tmpl/prog/en/lib/yui/treeview/assets/skins/sam/check1.gif b/koha-tmpl/intranet-tmpl/prog/en/lib/yui/treeview/assets/skins/sam/check1.gif
deleted file mode 100644 (file)
index 7d9ceba..0000000
Binary files a/koha-tmpl/intranet-tmpl/prog/en/lib/yui/treeview/assets/skins/sam/check1.gif and /dev/null differ
diff --git a/koha-tmpl/intranet-tmpl/prog/en/lib/yui/treeview/assets/skins/sam/check2.gif b/koha-tmpl/intranet-tmpl/prog/en/lib/yui/treeview/assets/skins/sam/check2.gif
deleted file mode 100644 (file)
index 1813175..0000000
Binary files a/koha-tmpl/intranet-tmpl/prog/en/lib/yui/treeview/assets/skins/sam/check2.gif and /dev/null differ
diff --git a/koha-tmpl/intranet-tmpl/prog/en/lib/yui/treeview/assets/skins/sam/loading.gif b/koha-tmpl/intranet-tmpl/prog/en/lib/yui/treeview/assets/skins/sam/loading.gif
deleted file mode 100644 (file)
index 0bbf3bc..0000000
Binary files a/koha-tmpl/intranet-tmpl/prog/en/lib/yui/treeview/assets/skins/sam/loading.gif and /dev/null differ
diff --git a/koha-tmpl/intranet-tmpl/prog/en/lib/yui/treeview/assets/skins/sam/treeview-loading.gif b/koha-tmpl/intranet-tmpl/prog/en/lib/yui/treeview/assets/skins/sam/treeview-loading.gif
deleted file mode 100644 (file)
index 0bbf3bc..0000000
Binary files a/koha-tmpl/intranet-tmpl/prog/en/lib/yui/treeview/assets/skins/sam/treeview-loading.gif and /dev/null differ
diff --git a/koha-tmpl/intranet-tmpl/prog/en/lib/yui/treeview/assets/skins/sam/treeview-skin.css b/koha-tmpl/intranet-tmpl/prog/en/lib/yui/treeview/assets/skins/sam/treeview-skin.css
deleted file mode 100644 (file)
index a98fa40..0000000
+++ /dev/null
@@ -1,249 +0,0 @@
-/*
-Copyright (c) 2009, Yahoo! Inc. All rights reserved.
-Code licensed under the BSD License:
-http://developer.yahoo.net/yui/license.txt
-version: 2.8.0r4
-*/
-/*
-Copyright (c) 2008, Yahoo! Inc. All rights reserved.
-Code licensed under the BSD License:
-http://developer.yahoo.net/yui/license.txt
-version: 2.5.2
-*/
-
-/* the style of the div around each node */
-.ygtvitem { }  
-
-table.ygtvtable {
-    margin-bottom:0; 
-       border:none;
-       border-collapse:collapse;
-}
-
-/*.ygtvitem td {*/
-td.ygtvcell {
-    border: none; 
-       padding: 0;
-}
-a.ygtvspacer {
-       text-decoration:none;
-       outline-style:none;
-       display:block;
-}
-
-
-/* first or middle sibling, no children */
-.ygtvtn {
-    width:18px; height:22px; 
-    background: url(treeview-sprite.gif) 0 -5600px no-repeat; 
-       cursor:pointer ;
-}
-
-/* first or middle sibling, collapsable */
-.ygtvtm {
-    width:18px; height:22px; 
-    cursor:pointer ;
-    background: url(treeview-sprite.gif) 0 -4000px no-repeat; 
-}
-
-/* first or middle sibling, collapsable, hover */
-.ygtvtmh,.ygtvtmhh {
-    width:18px; height:22px; 
-    cursor:pointer ;
-    background: url(treeview-sprite.gif) 0 -4800px no-repeat; 
-}
-
-/* first or middle sibling, expandable */
-.ygtvtp {
-    width:18px; height:22px; 
-    cursor:pointer ;
-    background: url(treeview-sprite.gif) 0 -6400px no-repeat; 
-}
-
-/* first or middle sibling, expandable, hover */
-.ygtvtph ,.ygtvtphh {
-    width:18px; height:22px; 
-    cursor:pointer ;
-    background: url(treeview-sprite.gif) 0 -7200px no-repeat; 
-}
-
-/* last sibling, no children */
-.ygtvln {
-    width:18px; height:22px; 
-    background: url(treeview-sprite.gif) 0 -1600px no-repeat; 
-       cursor:pointer ;
-}
-
-/* Last sibling, collapsable */
-.ygtvlm {
-    width:18px; height:22px; 
-    cursor:pointer ;
-    background: url(treeview-sprite.gif) 0 0px no-repeat; 
-}
-
-/* Last sibling, collapsable, hover */
-.ygtvlmh,.ygtvlmhh {
-    width:18px; height:22px; 
-    cursor:pointer ;
-    background: url(treeview-sprite.gif) 0 -800px no-repeat; 
-}
-
-/* Last sibling, expandable */
-.ygtvlp { 
-    width:18px; height:22px; 
-    cursor:pointer ;
-    background: url(treeview-sprite.gif) 0 -2400px no-repeat; 
-}
-
-/* Last sibling, expandable, hover */
-.ygtvlph,.ygtvlphh { 
-    width:18px; height:22px; cursor:pointer ;
-    background: url(treeview-sprite.gif) 0 -3200px no-repeat; 
-       cursor:pointer ;
-}
-
-/* Loading icon */
-.ygtvloading { 
-    width:18px; height:22px; 
-    background: url(treeview-loading.gif) 0 0 no-repeat; 
-}
-
-/* the style for the empty cells that are used for rendering the depth 
- * of the node */
-.ygtvdepthcell { 
-    width:18px; height:22px; 
-    background: url(treeview-sprite.gif) 0 -8000px no-repeat; 
-}
-
-.ygtvblankdepthcell { width:18px; height:22px; }
-
-
-/* the style of the div around each node's collection of children */
-.ygtvchildren {  }  
-* html .ygtvchildren { height:2%; }  
-
-/* the style of the text label in ygTextNode */
-.ygtvlabel, .ygtvlabel:link, .ygtvlabel:visited, .ygtvlabel:hover { 
-    margin-left:2px;
-    text-decoration: none;
-    background-color: white; /* workaround for IE font smoothing bug */
-       cursor:pointer;
-}
-
-.ygtvcontent {
-       cursor:default;
-}
-
-.ygtvspacer { height: 22px; width: 18px; }
-
-.ygtvfocus {
-       background-color: #c0e0e0;
-       border: none;
-}
-.ygtvfocus .ygtvlabel, .ygtvfocus .ygtvlabel:link, .ygtvfocus .ygtvlabel:visited, .ygtvfocus .ygtvlabel:hover {
-       background-color: #c0e0e0;
-}
-
-.ygtvfocus  a  {
-       outline-style:none;
-}
-
-
-.ygtvok {
-    width:18px; height:22px; 
-    background: url(treeview-sprite.gif) 0 -8800px no-repeat; 
-}
-
-.ygtvok:hover {
-    background: url(treeview-sprite.gif) 0 -8844px no-repeat; 
-}
-       
-.ygtvcancel {
-    width:18px; height:22px; 
-    background: url(treeview-sprite.gif) 0 -8822px no-repeat; 
-}
-
-.ygtvcancel:hover  {
-    background: url(treeview-sprite.gif) 0 -8866px no-repeat; 
-}
-
-.ygtv-label-editor {
-       background-color:#f2f2f2;
-       border: 1px solid silver;
-       position:absolute;
-       display:none;
-       overflow:hidden;
-       margin:auto;
-       z-index:9000;
-}
-
-.ygtv-edit-TextNode  {
-       width: 190px;
-}
-
-.ygtv-edit-TextNode .ygtvcancel, .ygtv-edit-TextNode .ygtvok  {
-       border:none;
-}
-
-.ygtv-edit-TextNode .ygtv-button-container {
-       float: right;
-}
-
-.ygtv-edit-TextNode .ygtv-input  input{
-       width: 140px;
-}
-
-.ygtv-edit-DateNode .ygtvcancel {
-       border:none;
-}
-.ygtv-edit-DateNode .ygtvok  {
-       display:none;
-}
-
-.ygtv-edit-DateNode   .ygtv-button-container {
-       text-align:right;
-       margin:auto;
-}
-
-.ygtv-highlight .ygtv-highlight0 , .ygtv-highlight .ygtv-highlight0 .ygtvlabel{
-}
-
-.ygtv-highlight .ygtv-highlight1  , .ygtv-highlight .ygtv-highlight1 .ygtvlabel{
-       background-color:blue;
-       color:white;
-}
-
-.ygtv-highlight .ygtv-highlight2  , .ygtv-highlight .ygtv-highlight2 .ygtvlabel {
-       background-color:silver;
-}
-
-.ygtv-highlight .ygtv-highlight0 .ygtvfocus .ygtvlabel,
-.ygtv-highlight .ygtv-highlight1 .ygtvfocus .ygtvlabel,
-.ygtv-highlight .ygtv-highlight2 .ygtvfocus .ygtvlabel {
-       background-color: #c0e0e0;
-}
-
-.ygtv-highlight .ygtvcontent {
-       padding-right: 1em;
-}
-
-.ygtv-checkbox .ygtv-highlight0 .ygtvcontent {
-       padding-left:1em;
-       background:url(check0.gif) no-repeat;
-}
-
-.ygtv-checkbox .ygtv-highlight0 .ygtvfocus.ygtvcontent,
-.ygtv-checkbox .ygtv-highlight1 .ygtvfocus.ygtvcontent ,
-.ygtv-checkbox .ygtv-highlight2 .ygtvfocus.ygtvcontent  {
-       background-color:#c0e0e0;
-}
-
-.ygtv-checkbox .ygtv-highlight1 .ygtvcontent {
-       padding-left:1em;
-       background:url(check1.gif) no-repeat;
-}
-
-.ygtv-checkbox .ygtv-highlight2 .ygtvcontent{
-       padding-left:1em;
-       background:url(check2.gif) no-repeat;
-}
diff --git a/koha-tmpl/intranet-tmpl/prog/en/lib/yui/treeview/assets/skins/sam/treeview-sprite.gif b/koha-tmpl/intranet-tmpl/prog/en/lib/yui/treeview/assets/skins/sam/treeview-sprite.gif
deleted file mode 100644 (file)
index 8fb3f01..0000000
Binary files a/koha-tmpl/intranet-tmpl/prog/en/lib/yui/treeview/assets/skins/sam/treeview-sprite.gif and /dev/null differ
diff --git a/koha-tmpl/intranet-tmpl/prog/en/lib/yui/treeview/assets/skins/sam/treeview.css b/koha-tmpl/intranet-tmpl/prog/en/lib/yui/treeview/assets/skins/sam/treeview.css
deleted file mode 100644 (file)
index 3843d4b..0000000
+++ /dev/null
@@ -1,7 +0,0 @@
-/*
-Copyright (c) 2009, Yahoo! Inc. All rights reserved.
-Code licensed under the BSD License:
-http://developer.yahoo.net/yui/license.txt
-version: 2.8.0r4
-*/
-table.ygtvtable{margin-bottom:0;border:none;border-collapse:collapse;}td.ygtvcell{border:none;padding:0;}a.ygtvspacer{text-decoration:none;outline-style:none;display:block;}.ygtvtn{width:18px;height:22px;background:url(treeview-sprite.gif) 0 -5600px no-repeat;cursor:pointer;}.ygtvtm{width:18px;height:22px;cursor:pointer;background:url(treeview-sprite.gif) 0 -4000px no-repeat;}.ygtvtmh,.ygtvtmhh{width:18px;height:22px;cursor:pointer;background:url(treeview-sprite.gif) 0 -4800px no-repeat;}.ygtvtp{width:18px;height:22px;cursor:pointer;background:url(treeview-sprite.gif) 0 -6400px no-repeat;}.ygtvtph,.ygtvtphh{width:18px;height:22px;cursor:pointer;background:url(treeview-sprite.gif) 0 -7200px no-repeat;}.ygtvln{width:18px;height:22px;background:url(treeview-sprite.gif) 0 -1600px no-repeat;cursor:pointer;}.ygtvlm{width:18px;height:22px;cursor:pointer;background:url(treeview-sprite.gif) 0 0 no-repeat;}.ygtvlmh,.ygtvlmhh{width:18px;height:22px;cursor:pointer;background:url(treeview-sprite.gif) 0 -800px no-repeat;}.ygtvlp{width:18px;height:22px;cursor:pointer;background:url(treeview-sprite.gif) 0 -2400px no-repeat;}.ygtvlph,.ygtvlphh{width:18px;height:22px;cursor:pointer;background:url(treeview-sprite.gif) 0 -3200px no-repeat;cursor:pointer;}.ygtvloading{width:18px;height:22px;background:url(treeview-loading.gif) 0 0 no-repeat;}.ygtvdepthcell{width:18px;height:22px;background:url(treeview-sprite.gif) 0 -8000px no-repeat;}.ygtvblankdepthcell{width:18px;height:22px;}* html .ygtvchildren{height:2%;}.ygtvlabel,.ygtvlabel:link,.ygtvlabel:visited,.ygtvlabel:hover{margin-left:2px;text-decoration:none;background-color:white;cursor:pointer;}.ygtvcontent{cursor:default;}.ygtvspacer{height:22px;width:18px;}.ygtvfocus{background-color:#c0e0e0;border:none;}.ygtvfocus .ygtvlabel,.ygtvfocus .ygtvlabel:link,.ygtvfocus .ygtvlabel:visited,.ygtvfocus .ygtvlabel:hover{background-color:#c0e0e0;}.ygtvfocus a{outline-style:none;}.ygtvok{width:18px;height:22px;background:url(treeview-sprite.gif) 0 -8800px no-repeat;}.ygtvok:hover{background:url(treeview-sprite.gif) 0 -8844px no-repeat;}.ygtvcancel{width:18px;height:22px;background:url(treeview-sprite.gif) 0 -8822px no-repeat;}.ygtvcancel:hover{background:url(treeview-sprite.gif) 0 -8866px no-repeat;}.ygtv-label-editor{background-color:#f2f2f2;border:1px solid silver;position:absolute;display:none;overflow:hidden;margin:auto;z-index:9000;}.ygtv-edit-TextNode{width:190px;}.ygtv-edit-TextNode .ygtvcancel,.ygtv-edit-TextNode .ygtvok{border:none;}.ygtv-edit-TextNode .ygtv-button-container{float:right;}.ygtv-edit-TextNode .ygtv-input input{width:140px;}.ygtv-edit-DateNode .ygtvcancel{border:none;}.ygtv-edit-DateNode .ygtvok{display:none;}.ygtv-edit-DateNode .ygtv-button-container{text-align:right;margin:auto;}.ygtv-highlight .ygtv-highlight1,.ygtv-highlight .ygtv-highlight1 .ygtvlabel{background-color:blue;color:white;}.ygtv-highlight .ygtv-highlight2,.ygtv-highlight .ygtv-highlight2 .ygtvlabel{background-color:silver;}.ygtv-highlight .ygtv-highlight0 .ygtvfocus .ygtvlabel,.ygtv-highlight .ygtv-highlight1 .ygtvfocus .ygtvlabel,.ygtv-highlight .ygtv-highlight2 .ygtvfocus .ygtvlabel{background-color:#c0e0e0;}.ygtv-highlight .ygtvcontent{padding-right:1em;}.ygtv-checkbox .ygtv-highlight0 .ygtvcontent{padding-left:1em;background:url(check0.gif) no-repeat;}.ygtv-checkbox .ygtv-highlight0 .ygtvfocus.ygtvcontent,.ygtv-checkbox .ygtv-highlight1 .ygtvfocus.ygtvcontent,.ygtv-checkbox .ygtv-highlight2 .ygtvfocus.ygtvcontent{background-color:#c0e0e0;}.ygtv-checkbox .ygtv-highlight1 .ygtvcontent{padding-left:1em;background:url(check1.gif) no-repeat;}.ygtv-checkbox .ygtv-highlight2 .ygtvcontent{padding-left:1em;background:url(check2.gif) no-repeat;}
diff --git a/koha-tmpl/intranet-tmpl/prog/en/lib/yui/treeview/assets/treeview-core.css b/koha-tmpl/intranet-tmpl/prog/en/lib/yui/treeview/assets/treeview-core.css
deleted file mode 100644 (file)
index 62d05f6..0000000
+++ /dev/null
@@ -1,6 +0,0 @@
-/*
-Copyright (c) 2009, Yahoo! Inc. All rights reserved.
-Code licensed under the BSD License:
-http://developer.yahoo.net/yui/license.txt
-version: 2.8.0r4
-*/
diff --git a/koha-tmpl/intranet-tmpl/prog/en/lib/yui/treeview/treeview-debug.js b/koha-tmpl/intranet-tmpl/prog/en/lib/yui/treeview/treeview-debug.js
deleted file mode 100644 (file)
index 8e75872..0000000
+++ /dev/null
@@ -1,4058 +0,0 @@
-/*
-Copyright (c) 2009, Yahoo! Inc. All rights reserved.
-Code licensed under the BSD License:
-http://developer.yahoo.net/yui/license.txt
-version: 2.8.0r4
-*/
-(function () {
-    var Dom = YAHOO.util.Dom,
-        Event = YAHOO.util.Event,
-        Lang = YAHOO.lang,
-        Widget = YAHOO.widget;
-        
-    
-
-/**
- * The treeview widget is a generic tree building tool.
- * @module treeview
- * @title TreeView Widget
- * @requires yahoo, dom, event
- * @optional animation, json, calendar
- * @namespace YAHOO.widget
- */
-
-/**
- * Contains the tree view state data and the root node.
- *
- * @class TreeView
- * @uses YAHOO.util.EventProvider
- * @constructor
- * @param {string|HTMLElement} id The id of the element, or the element itself that the tree will be inserted into.  
- *        Existing markup in this element, if valid, will be used to build the tree
- * @param {Array|Object|String}  oConfig (optional)  If present, it will be used to build the tree via method <a href="#method_buildTreeFromObject">buildTreeFromObject</a>
- * 
- */
-YAHOO.widget.TreeView = function(id, oConfig) {
-    if (id) { this.init(id); }
-    if (oConfig) {
-        this.buildTreeFromObject(oConfig);
-    } else if (Lang.trim(this._el.innerHTML)) {
-        this.buildTreeFromMarkup(id);
-    }
-};
-
-var TV = Widget.TreeView;
-
-TV.prototype = {
-
-    /**
-     * The id of tree container element
-     * @property id
-     * @type String
-     */
-    id: null,
-
-    /**
-     * The host element for this tree
-     * @property _el
-     * @private
-     * @type HTMLelement
-     */
-    _el: null,
-
-     /**
-     * Flat collection of all nodes in this tree.  This is a sparse
-     * array, so the length property can't be relied upon for a
-     * node count for the tree.
-     * @property _nodes
-     * @type Node[]
-     * @private
-     */
-    _nodes: null,
-
-    /**
-     * We lock the tree control while waiting for the dynamic loader to return
-     * @property locked
-     * @type boolean
-     */
-    locked: false,
-
-    /**
-     * The animation to use for expanding children, if any
-     * @property _expandAnim
-     * @type string
-     * @private
-     */
-    _expandAnim: null,
-
-    /**
-     * The animation to use for collapsing children, if any
-     * @property _collapseAnim
-     * @type string
-     * @private
-     */
-    _collapseAnim: null,
-
-    /**
-     * The current number of animations that are executing
-     * @property _animCount
-     * @type int
-     * @private
-     */
-    _animCount: 0,
-
-    /**
-     * The maximum number of animations to run at one time.
-     * @property maxAnim
-     * @type int
-     */
-    maxAnim: 2,
-
-    /**
-     * Whether there is any subscriber to dblClickEvent
-     * @property _hasDblClickSubscriber
-     * @type boolean
-     * @private
-     */
-    _hasDblClickSubscriber: false,
-    
-    /**
-     * Stores the timer used to check for double clicks
-     * @property _dblClickTimer
-     * @type window.timer object
-     * @private
-     */
-    _dblClickTimer: null,
-
-  /**
-     * A reference to the Node currently having the focus or null if none.
-     * @property currentFocus
-     * @type YAHOO.widget.Node
-     */
-    currentFocus: null,
-    
-    /**
-    * If true, only one Node can be highlighted at a time
-    * @property singleNodeHighlight
-    * @type boolean
-    * @default false
-    */
-    
-    singleNodeHighlight: false,
-    
-    /**
-    * A reference to the Node that is currently highlighted.
-    * It is only meaningful if singleNodeHighlight is enabled
-    * @property _currentlyHighlighted
-    * @type YAHOO.widget.Node
-    * @default null
-    * @private
-    */
-    
-    _currentlyHighlighted: null,
-
-    /**
-     * Sets up the animation for expanding children
-     * @method setExpandAnim
-     * @param {string} type the type of animation (acceptable values defined 
-     * in YAHOO.widget.TVAnim)
-     */
-    setExpandAnim: function(type) {
-        this._expandAnim = (Widget.TVAnim.isValid(type)) ? type : null;
-    },
-
-    /**
-     * Sets up the animation for collapsing children
-     * @method setCollapseAnim
-     * @param {string} type of animation (acceptable values defined in 
-     * YAHOO.widget.TVAnim)
-     */
-    setCollapseAnim: function(type) {
-        this._collapseAnim = (Widget.TVAnim.isValid(type)) ? type : null;
-    },
-
-    /**
-     * Perform the expand animation if configured, or just show the
-     * element if not configured or too many animations are in progress
-     * @method animateExpand
-     * @param el {HTMLElement} the element to animate
-     * @param node {YAHOO.util.Node} the node that was expanded
-     * @return {boolean} true if animation could be invoked, false otherwise
-     */
-    animateExpand: function(el, node) {
-        this.logger.log("animating expand");
-
-        if (this._expandAnim && this._animCount < this.maxAnim) {
-            // this.locked = true;
-            var tree = this;
-            var a = Widget.TVAnim.getAnim(this._expandAnim, el, 
-                            function() { tree.expandComplete(node); });
-            if (a) { 
-                ++this._animCount;
-                this.fireEvent("animStart", {
-                        "node": node, 
-                        "type": "expand"
-                    });
-                a.animate();
-            }
-
-            return true;
-        }
-
-        return false;
-    },
-
-    /**
-     * Perform the collapse animation if configured, or just show the
-     * element if not configured or too many animations are in progress
-     * @method animateCollapse
-     * @param el {HTMLElement} the element to animate
-     * @param node {YAHOO.util.Node} the node that was expanded
-     * @return {boolean} true if animation could be invoked, false otherwise
-     */
-    animateCollapse: function(el, node) {
-        this.logger.log("animating collapse");
-
-        if (this._collapseAnim && this._animCount < this.maxAnim) {
-            // this.locked = true;
-            var tree = this;
-            var a = Widget.TVAnim.getAnim(this._collapseAnim, el, 
-                            function() { tree.collapseComplete(node); });
-            if (a) { 
-                ++this._animCount;
-                this.fireEvent("animStart", {
-                        "node": node, 
-                        "type": "collapse"
-                    });
-                a.animate();
-            }
-
-            return true;
-        }
-
-        return false;
-    },
-
-    /**
-     * Function executed when the expand animation completes
-     * @method expandComplete
-     */
-    expandComplete: function(node) {
-        this.logger.log("expand complete: " + this.id);
-        --this._animCount;
-        this.fireEvent("animComplete", {
-                "node": node, 
-                "type": "expand"
-            });
-        // this.locked = false;
-    },
-
-    /**
-     * Function executed when the collapse animation completes
-     * @method collapseComplete
-     */
-    collapseComplete: function(node) {
-        this.logger.log("collapse complete: " + this.id);
-        --this._animCount;
-        this.fireEvent("animComplete", {
-                "node": node, 
-                "type": "collapse"
-            });
-        // this.locked = false;
-    },
-
-    /**
-     * Initializes the tree
-     * @method init
-     * @parm {string|HTMLElement} id the id of the element that will hold the tree
-     * @private
-     */
-    init: function(id) {
-        this._el = Dom.get(id);
-        this.id = Dom.generateId(this._el,"yui-tv-auto-id-");
-
-    /**
-         * When animation is enabled, this event fires when the animation
-         * starts
-         * @event animStart
-         * @type CustomEvent
-         * @param {YAHOO.widget.Node} oArgs.node the node that is expanding/collapsing
-         * @param {String} oArgs.type the type of animation ("expand" or "collapse")
-         */
-        this.createEvent("animStart", this);
-
-        /**
-         * When animation is enabled, this event fires when the animation
-         * completes
-         * @event animComplete
-         * @type CustomEvent
-         * @param {YAHOO.widget.Node} oArgs.node the node that is expanding/collapsing
-         * @param {String} oArgs.type the type of animation ("expand" or "collapse")
-         */
-        this.createEvent("animComplete", this);
-
-        /**
-         * Fires when a node is going to be collapsed.  Return false to stop
-         * the collapse.
-         * @event collapse
-         * @type CustomEvent
-         * @param {YAHOO.widget.Node} node the node that is collapsing
-         */
-        this.createEvent("collapse", this);
-
-        /**
-         * Fires after a node is successfully collapsed.  This event will not fire
-         * if the "collapse" event was cancelled.
-         * @event collapseComplete
-         * @type CustomEvent
-         * @param {YAHOO.widget.Node} node the node that was collapsed
-         */
-        this.createEvent("collapseComplete", this);
-
-        /**
-         * Fires when a node is going to be expanded.  Return false to stop
-         * the collapse.
-         * @event expand
-         * @type CustomEvent
-         * @param {YAHOO.widget.Node} node the node that is expanding
-         */
-        this.createEvent("expand", this);
-
-        /**
-         * Fires after a node is successfully expanded.  This event will not fire
-         * if the "expand" event was cancelled.
-         * @event expandComplete
-         * @type CustomEvent
-         * @param {YAHOO.widget.Node} node the node that was expanded
-         */
-        this.createEvent("expandComplete", this);
-
-    /**
-         * Fires when the Enter key is pressed on a node that has the focus
-         * @event enterKeyPressed
-         * @type CustomEvent
-         * @param {YAHOO.widget.Node} node the node that has the focus
-         */
-        this.createEvent("enterKeyPressed", this);
-        
-    /**
-         * Fires when the label in a TextNode or MenuNode or content in an HTMLNode receives a Click.
-    * The listener may return false to cancel toggling and focusing on the node.
-         * @event clickEvent
-         * @type CustomEvent
-         * @param oArgs.event  {HTMLEvent} The event object
-         * @param oArgs.node {YAHOO.widget.Node} node the node that was clicked
-         */
-        this.createEvent("clickEvent", this);
-        
-    /**
-         * Fires when the focus receives the focus, when it changes from a Node 
-    * to another Node or when it is completely lost (blurred)
-         * @event focusChanged
-         * @type CustomEvent
-         * @param oArgs.oldNode  {YAHOO.widget.Node} Node that had the focus or null if none
-         * @param oArgs.newNode {YAHOO.widget.Node} Node that receives the focus or null if none
-         */
-        
-        this.createEvent('focusChanged',this);
-
-    /**
-         * Fires when the label in a TextNode or MenuNode or content in an HTMLNode receives a double Click
-         * @event dblClickEvent
-         * @type CustomEvent
-         * @param oArgs.event  {HTMLEvent} The event object
-         * @param oArgs.node {YAHOO.widget.Node} node the node that was clicked
-         */
-        var self = this;
-        this.createEvent("dblClickEvent", {
-            scope:this,
-            onSubscribeCallback: function() {
-                self._hasDblClickSubscriber = true;
-            }
-        });
-        
-    /**
-         * Custom event that is fired when the text node label is clicked. 
-         *  The node clicked is  provided as an argument
-         *
-         * @event labelClick
-         * @type CustomEvent
-         * @param {YAHOO.widget.Node} node the node clicked
-    * @deprecated use clickEvent or dblClickEvent
-         */
-        this.createEvent("labelClick", this);
-        
-    /**
-     * Custom event fired when the highlight of a node changes.
-     * The node that triggered the change is provided as an argument:
-     * The status of the highlight can be checked in 
-     * <a href="YAHOO.widget.Node.html#property_highlightState">nodeRef.highlightState</a>.
-     * Depending on <a href="YAHOO.widget.Node.html#property_propagateHighlight">nodeRef.propagateHighlight</a>, other nodes might have changed
-     * @event highlightEvent
-     * @type CustomEvent
-     * @param node {YAHOO.widget.Node} the node that started the change in highlighting state
-    */
-        this.createEvent("highlightEvent",this);
-     
-
-
-        this._nodes = [];
-
-        // store a global reference
-        TV.trees[this.id] = this;
-
-        // Set up the root node
-        this.root = new Widget.RootNode(this);
-
-        var LW = Widget.LogWriter;
-
-        this.logger = (LW) ? new LW(this.toString()) : YAHOO;
-
-        this.logger.log("tree init: " + this.id);
-               
-               if (this._initEditor) {
-                       this._initEditor();
-               }
-        
-        // YAHOO.util.Event.onContentReady(this.id, this.handleAvailable, this, true);
-        // YAHOO.util.Event.on(this.id, "click", this.handleClick, this, true);
-    },
-
-    //handleAvailable: function() {
-        //var Event = YAHOO.util.Event;
-        //Event.on(this.id, 
-    //},
- /**
-     * Builds the TreeView from an object.  
-     * This is the method called by the constructor to build the tree when it has a second argument.
-     *  A tree can be described by an array of objects, each object corresponding to a node.
-     *  Node descriptions may contain values for any property of a node plus the following extra properties: <ul>
-     * <li>type:  can be one of the following:<ul>
-     *    <li> A shortname for a node type (<code>'text','menu','html'</code>) </li>
-     *    <li>The name of a Node class under YAHOO.widget (<code>'TextNode', 'MenuNode', 'DateNode'</code>, etc) </li>
-     *    <li>a reference to an actual class: <code>YAHOO.widget.DateNode</code></li>
-        * </ul></li>
-     * <li>children: an array containing further node definitions</li></ul>
-        * A string instead of an object will produce a node of type 'text' with the given string as its label.
-     * @method buildTreeFromObject
-     * @param  oConfig {Array|Object|String}  array containing a full description of the tree.
-     *        An object or a string will be turned into an array with the given object or string as its only element.
-     * 
-     */
-    buildTreeFromObject: function (oConfig) {
-        var logger = this.logger;
-        logger.log('Building tree from object');
-        var build = function (parent, oConfig) {
-            var i, item, node, children, type, NodeType, ThisType;
-            for (i = 0; i < oConfig.length; i++) {
-                item = oConfig[i];
-                if (Lang.isString(item)) {
-                    node = new Widget.TextNode(item, parent);
-                } else if (Lang.isObject(item)) {
-                    children = item.children;
-                    delete item.children;
-                    type = item.type || 'text';
-                    delete item.type;
-                    switch (Lang.isString(type) && type.toLowerCase()) {
-                        case 'text':
-                            node = new Widget.TextNode(item, parent);
-                            break;
-                        case 'menu':
-                            node = new Widget.MenuNode(item, parent);
-                            break;
-                        case 'html':
-                            node = new Widget.HTMLNode(item, parent);
-                            break;
-                        default:
-                            if (Lang.isString(type)) {
-                                NodeType = Widget[type];
-                            } else {
-                                NodeType = type;
-                            }
-                            if (Lang.isObject(NodeType)) {
-                                for (ThisType = NodeType; ThisType && ThisType !== Widget.Node; ThisType = ThisType.superclass.constructor) {}
-                                if (ThisType) {
-                                    node = new NodeType(item, parent);
-                                } else {
-                                    logger.log('Invalid type in node definition: ' + type,'error');
-                                }
-                            } else {
-                                logger.log('Invalid type in node definition: ' + type,'error');
-                            }
-                    }
-                    if (children) {
-                        build(node,children);
-                    }
-                } else {
-                    logger.log('Invalid node definition','error');
-                }
-            }
-        };
-        if (!Lang.isArray(oConfig)) {
-            oConfig = [oConfig];
-        }
-
-                    
-        build(this.root,oConfig);
-    },
-/**
-     * Builds the TreeView from existing markup.   Markup should consist of &lt;UL&gt; or &lt;OL&gt; elements containing &lt;LI&gt; elements.  
-     * Each &lt;LI&gt; can have one element used as label and a second optional element which is to be a &lt;UL&gt; or &lt;OL&gt;
-     * containing nested nodes.
-     * Depending on what the first element of the &lt;LI&gt; element is, the following Nodes will be created: <ul>
-     *           <li>plain text:  a regular TextNode</li>
-     *           <li>anchor &lt;A&gt;: a TextNode with its <code>href</code> and <code>target</code> taken from the anchor</li>
-     *           <li>anything else: an HTMLNode</li></ul>
-     * Only the first  outermost (un-)ordered list in the markup and its children will be parsed.
-     * Nodes will be collapsed unless  an  &lt;LI&gt;  tag has a className called 'expanded'.
-     * All other className attributes will be copied over to the Node className property.
-     * If the &lt;LI&gt; element contains an attribute called <code>yuiConfig</code>, its contents should be a JSON-encoded object
-     * as the one used in method <a href="#method_buildTreeFromObject">buildTreeFromObject</a>.
-     * @method buildTreeFromMarkup
-     * @param  id {string|HTMLElement} The id of the element that contains the markup or a reference to it.
-     */
-    buildTreeFromMarkup: function (id) {
-        this.logger.log('Building tree from existing markup');
-        var build = function (markup) {
-            var el, child, branch = [], config = {}, label, yuiConfig;
-            // Dom's getFirstChild and getNextSibling skip over text elements
-            for (el = Dom.getFirstChild(markup); el; el = Dom.getNextSibling(el)) {
-                switch (el.tagName.toUpperCase()) {
-                    case 'LI':
-                        label = '';
-                        config = {
-                            expanded: Dom.hasClass(el,'expanded'),
-                            title: el.title || el.alt || null,
-                            className: Lang.trim(el.className.replace(/\bexpanded\b/,'')) || null
-                        };
-                        // I cannot skip over text elements here because I want them for labels
-                        child = el.firstChild;
-                        if (child.nodeType == 3) {
-                            // nodes with only whitespace, tabs and new lines don't count, they are probably just formatting.
-                            label = Lang.trim(child.nodeValue.replace(/[\n\t\r]*/g,''));
-                            if (label) {
-                                config.type = 'text';
-                                config.label = label;
-                            } else {
-                                child = Dom.getNextSibling(child);
-                            }
-                        }
-                        if (!label) {
-                            if (child.tagName.toUpperCase() == 'A') {
-                                config.type = 'text';
-                                config.label = child.innerHTML;
-                                config.href = child.href;
-                                config.target = child.target;
-                                config.title = child.title || child.alt || config.title;
-                            } else {
-                                config.type = 'html';
-                                var d = document.createElement('div');
-                                d.appendChild(child.cloneNode(true));
-                                config.html = d.innerHTML;
-                                config.hasIcon = true;
-                            }
-                        }
-                        // see if after the label it has a further list which will become children of this node.
-                        child = Dom.getNextSibling(child);
-                        switch (child && child.tagName.toUpperCase()) {
-                            case 'UL':
-                            case 'OL':
-                                config.children = build(child);
-                                break;
-                        }
-                        // if there are further elements or text, it will be ignored.
-                        
-                        if (YAHOO.lang.JSON) {
-                            yuiConfig = el.getAttribute('yuiConfig');
-                            if (yuiConfig) {
-                                yuiConfig = YAHOO.lang.JSON.parse(yuiConfig);
-                                config = YAHOO.lang.merge(config,yuiConfig);
-                            }
-                        }
-                        
-                        branch.push(config);
-                        break;
-                    case 'UL':
-                    case 'OL':
-                        this.logger.log('ULs or OLs can only contain LI elements, not other UL or OL.  This will not work in some browsers','error');
-                        config = {
-                            type: 'text',
-                            label: '',
-                            children: build(child)
-                        };
-                        branch.push(config);
-                        break;
-                }
-            }
-            return branch;
-        };
-
-        var markup = Dom.getChildrenBy(Dom.get(id),function (el) { 
-            var tag = el.tagName.toUpperCase();
-            return  tag == 'UL' || tag == 'OL';
-        });
-        if (markup.length) {
-            this.buildTreeFromObject(build(markup[0]));
-        } else {
-            this.logger.log('Markup contains no UL or OL elements','warn');
-        }
-    },
-  /**
-     * Returns the TD element where the event has occurred
-     * @method _getEventTargetTdEl
-     * @private
-     */
-    _getEventTargetTdEl: function (ev) {
-        var target = Event.getTarget(ev); 
-        // go up looking for a TD with a className with a ygtv prefix
-        while (target && !(target.tagName.toUpperCase() == 'TD' && Dom.hasClass(target.parentNode,'ygtvrow'))) { 
-            target = Dom.getAncestorByTagName(target,'td'); 
-        }
-        if (Lang.isNull(target)) { return null; }
-        // If it is a spacer cell, do nothing
-        if (/\bygtv(blank)?depthcell/.test(target.className)) { return null;}
-        // If it has an id, search for the node number and see if it belongs to a node in this tree.
-        if (target.id) {
-            var m = target.id.match(/\bygtv([^\d]*)(.*)/);
-            if (m && m[2] && this._nodes[m[2]]) {
-                return target;
-            }
-        }
-        return null;
-    },
-  /**
-     * Event listener for click events
-     * @method _onClickEvent
-     * @private
-     */
-    _onClickEvent: function (ev) {
-        var self = this,
-            td = this._getEventTargetTdEl(ev),
-            node,
-            target,
-            toggle = function (force) {
-                node.focus();
-                               if (force || !node.href) {
-                                       node.toggle();
-                                       try {
-                                               Event.preventDefault(ev);
-                                       } catch (e) {
-                           // @TODO
-                           // For some reason IE8 is providing an event object with
-                           // most of the fields missing, but only when clicking on
-                           // the node's label, and only when working with inline
-                           // editing.  This generates a "Member not found" error
-                           // in that browser.  Determine if this is a browser
-                           // bug, or a problem with this code.  Already checked to
-                           // see if the problem has to do with access the event
-                           // in the outer scope, and that isn't the problem.
-                           // Maybe the markup for inline editing is broken.
-                                       }
-                }
-            };
-
-        if (!td) {
-            return; 
-        }
-
-        node = this.getNodeByElement(td);
-        if (!node) { 
-            return; 
-        }
-        
-        // exception to handle deprecated event labelClick
-        // @TODO take another look at this deprecation.  It is common for people to
-        // only be interested in the label click, so why make them have to test
-        // the node type to figure out whether the click was on the label?
-        target = Event.getTarget(ev);
-        if (Dom.hasClass(target, node.labelStyle) || Dom.getAncestorByClassName(target,node.labelStyle)) {
-            this.logger.log("onLabelClick " + node.label);
-            this.fireEvent('labelClick',node);
-        }
-        
-        //  If it is a toggle cell, toggle
-        if (/\bygtv[tl][mp]h?h?/.test(td.className)) {
-            toggle(true);
-        } else {
-            if (this._dblClickTimer) {
-                window.clearTimeout(this._dblClickTimer);
-                this._dblClickTimer = null;
-            } else {
-                if (this._hasDblClickSubscriber) {
-                    this._dblClickTimer = window.setTimeout(function () {
-                        self._dblClickTimer = null;
-                        if (self.fireEvent('clickEvent', {event:ev,node:node}) !== false) { 
-                            toggle();
-                        }
-                    }, 200);
-                } else {
-                    if (self.fireEvent('clickEvent', {event:ev,node:node}) !== false) { 
-                        toggle();
-                    }
-                }
-            }
-        }
-    },
-
-  /**
-     * Event listener for double-click events
-     * @method _onDblClickEvent
-     * @private
-     */
-    _onDblClickEvent: function (ev) {
-        if (!this._hasDblClickSubscriber) { return; }
-        var td = this._getEventTargetTdEl(ev);
-        if (!td) {return;}
-
-        if (!(/\bygtv[tl][mp]h?h?/.test(td.className))) {
-            this.fireEvent('dblClickEvent', {event:ev, node:this.getNodeByElement(td)}); 
-            if (this._dblClickTimer) {
-                window.clearTimeout(this._dblClickTimer);
-                this._dblClickTimer = null;
-            }
-        }
-    },
-  /**
-     * Event listener for mouse over events
-     * @method _onMouseOverEvent
-     * @private
-     */
-    _onMouseOverEvent:function (ev) {
-        var target;
-        if ((target = this._getEventTargetTdEl(ev)) && (target = this.getNodeByElement(target)) && (target = target.getToggleEl())) {
-            target.className = target.className.replace(/\bygtv([lt])([mp])\b/gi,'ygtv$1$2h');
-        }
-    },
-  /**
-     * Event listener for mouse out events
-     * @method _onMouseOutEvent
-     * @private
-     */
-    _onMouseOutEvent: function (ev) {
-        var target;
-        if ((target = this._getEventTargetTdEl(ev)) && (target = this.getNodeByElement(target)) && (target = target.getToggleEl())) {
-            target.className = target.className.replace(/\bygtv([lt])([mp])h\b/gi,'ygtv$1$2');
-        }
-    },
-  /**
-     * Event listener for key down events
-     * @method _onKeyDownEvent
-     * @private
-     */
-    _onKeyDownEvent: function (ev) {
-        var target = Event.getTarget(ev),
-            node = this.getNodeByElement(target),
-            newNode = node,
-            KEY = YAHOO.util.KeyListener.KEY;
-
-        switch(ev.keyCode) {
-            case KEY.UP:
-                this.logger.log('UP');
-                do {
-                    if (newNode.previousSibling) {
-                        newNode = newNode.previousSibling;
-                    } else {
-                        newNode = newNode.parent;
-                    }
-                } while (newNode && !newNode._canHaveFocus());
-                if (newNode) { newNode.focus(); }
-                Event.preventDefault(ev);
-                break;
-            case KEY.DOWN:
-                this.logger.log('DOWN');
-                do {
-                    if (newNode.nextSibling) {
-                        newNode = newNode.nextSibling;
-                    } else {
-                        newNode.expand();
-                        newNode = (newNode.children.length || null) && newNode.children[0];
-                    }
-                } while (newNode && !newNode._canHaveFocus);
-                if (newNode) { newNode.focus();}
-                Event.preventDefault(ev);
-                break;
-            case KEY.LEFT:
-                this.logger.log('LEFT');
-                do {
-                    if (newNode.parent) {
-                        newNode = newNode.parent;
-                    } else {
-                        newNode = newNode.previousSibling;
-                    }
-                } while (newNode && !newNode._canHaveFocus());
-                if (newNode) { newNode.focus();}
-                Event.preventDefault(ev);
-                break;
-                       case KEY.RIGHT:
-                               this.logger.log('RIGHT');
-                               var self = this,
-                                       moveFocusRight,
-                                       focusOnExpand = function (newNode) {
-                                               self.unsubscribe('expandComplete',focusOnExpand);
-                                               moveFocusRight(newNode);
-                                       };
-                               moveFocusRight = function (newNode) {
-                                       do {
-                                               if (newNode.isDynamic() && !newNode.childrenRendered) {
-                                                       self.subscribe('expandComplete',focusOnExpand);
-                                                       newNode.expand();
-                                                       newNode = null;
-                                                       break;
-                                               } else {
-                                                       newNode.expand();
-                                                       if (newNode.children.length) {
-                                                               newNode = newNode.children[0];
-                                                       } else {
-                                                               newNode = newNode.nextSibling;
-                                                       }
-                                               }
-                                       } while (newNode && !newNode._canHaveFocus());
-                                       if (newNode) { newNode.focus();}
-                               };
-                                       
-                               moveFocusRight(newNode);
-                               Event.preventDefault(ev);
-                               break;
-            case KEY.ENTER:
-                this.logger.log('ENTER: ' + newNode.href);
-                if (node.href) {
-                    if (node.target) {
-                        window.open(node.href,node.target);
-                    } else {
-                        window.location(node.href);
-                    }
-                } else {
-                    node.toggle();
-                }
-                this.fireEvent('enterKeyPressed',node);
-                Event.preventDefault(ev);
-                break;
-            case KEY.HOME:
-                this.logger.log('HOME');
-                newNode = this.getRoot();
-                if (newNode.children.length) {newNode = newNode.children[0];}
-                if (newNode._canHaveFocus()) { newNode.focus(); }
-                Event.preventDefault(ev);
-                break;
-            case KEY.END:
-                this.logger.log('END');
-                newNode = newNode.parent.children;
-                newNode = newNode[newNode.length -1];
-                if (newNode._canHaveFocus()) { newNode.focus(); }
-                Event.preventDefault(ev);
-                break;
-            // case KEY.PAGE_UP:
-                // this.logger.log('PAGE_UP');
-                // break;
-            // case KEY.PAGE_DOWN:
-                // this.logger.log('PAGE_DOWN');
-                // break;
-            case 107:  // plus key
-                if (ev.shiftKey) {
-                    this.logger.log('Shift-PLUS');
-                    node.parent.expandAll();
-                } else {
-                    this.logger.log('PLUS');
-                    node.expand();
-                }
-                break;
-            case 109: // minus key
-                if (ev.shiftKey) {
-                    this.logger.log('Shift-MINUS');
-                    node.parent.collapseAll();
-                } else {
-                    this.logger.log('MINUS');
-                    node.collapse();
-                }
-                break;
-            default:
-                break;
-        }
-    },
-    /**
-     * Renders the tree boilerplate and visible nodes
-     * @method render
-     */
-    render: function() {
-        var html = this.root.getHtml(),
-            el = this.getEl();
-        el.innerHTML = html;
-        if (!this._hasEvents) {
-            Event.on(el, 'click', this._onClickEvent, this, true);
-            Event.on(el, 'dblclick', this._onDblClickEvent, this, true);
-            Event.on(el, 'mouseover', this._onMouseOverEvent, this, true);
-            Event.on(el, 'mouseout', this._onMouseOutEvent, this, true);
-            Event.on(el, 'keydown', this._onKeyDownEvent, this, true);
-        }
-        this._hasEvents = true;
-    },
-    
-  /**
-     * Returns the tree's host element
-     * @method getEl
-     * @return {HTMLElement} the host element
-     */
-    getEl: function() {
-        if (! this._el) {
-            this._el = Dom.get(this.id);
-        }
-        return this._el;
-    },
-
-    /**
-     * Nodes register themselves with the tree instance when they are created.
-     * @method regNode
-     * @param node {Node} the node to register
-     * @private
-     */
-    regNode: function(node) {
-        this._nodes[node.index] = node;
-    },
-
-    /**
-     * Returns the root node of this tree
-     * @method getRoot
-     * @return {Node} the root node
-     */
-    getRoot: function() {
-        return this.root;
-    },
-
-    /**
-     * Configures this tree to dynamically load all child data
-     * @method setDynamicLoad
-     * @param {function} fnDataLoader the function that will be called to get the data
-     * @param iconMode {int} configures the icon that is displayed when a dynamic
-     * load node is expanded the first time without children.  By default, the 
-     * "collapse" icon will be used.  If set to 1, the leaf node icon will be
-     * displayed.
-     */
-    setDynamicLoad: function(fnDataLoader, iconMode) { 
-        this.root.setDynamicLoad(fnDataLoader, iconMode);
-    },
-
-    /**
-     * Expands all child nodes.  Note: this conflicts with the "multiExpand"
-     * node property.  If expand all is called in a tree with nodes that
-     * do not allow multiple siblings to be displayed, only the last sibling
-     * will be expanded.
-     * @method expandAll
-     */
-    expandAll: function() { 
-        if (!this.locked) {
-            this.root.expandAll(); 
-        }
-    },
-
-    /**
-     * Collapses all expanded child nodes in the entire tree.
-     * @method collapseAll
-     */
-    collapseAll: function() { 
-        if (!this.locked) {
-            this.root.collapseAll(); 
-        }
-    },
-
-    /**
-     * Returns a node in the tree that has the specified index (this index
-     * is created internally, so this function probably will only be used
-     * in html generated for a given node.)
-     * @method getNodeByIndex
-     * @param {int} nodeIndex the index of the node wanted
-     * @return {Node} the node with index=nodeIndex, null if no match
-     */
-    getNodeByIndex: function(nodeIndex) {
-        var n = this._nodes[nodeIndex];
-        return (n) ? n : null;
-    },
-
-    /**
-     * Returns a node that has a matching property and value in the data
-     * object that was passed into its constructor.
-     * @method getNodeByProperty
-     * @param {object} property the property to search (usually a string)
-     * @param {object} value the value we want to find (usuall an int or string)
-     * @return {Node} the matching node, null if no match
-     */
-    getNodeByProperty: function(property, value) {
-        for (var i in this._nodes) {
-            if (this._nodes.hasOwnProperty(i)) {
-                var n = this._nodes[i];
-                if ((property in n && n[property] == value) || (n.data && value == n.data[property])) {
-                    return n;
-                }
-            }
-        }
-
-        return null;
-    },
-
-    /**
-     * Returns a collection of nodes that have a matching property 
-     * and value in the data object that was passed into its constructor.  
-     * @method getNodesByProperty
-     * @param {object} property the property to search (usually a string)
-     * @param {object} value the value we want to find (usuall an int or string)
-     * @return {Array} the matching collection of nodes, null if no match
-     */
-    getNodesByProperty: function(property, value) {
-        var values = [];
-        for (var i in this._nodes) {
-            if (this._nodes.hasOwnProperty(i)) {
-                var n = this._nodes[i];
-                if ((property in n && n[property] == value) || (n.data && value == n.data[property])) {
-                    values.push(n);
-                }
-            }
-        }
-
-        return (values.length) ? values : null;
-    },
-
-
-    /**
-     * Returns a collection of nodes that have passed the test function
-        * passed as its only argument.  
-        * The function will receive a reference to each node to be tested.  
-     * @method getNodesBy
-     * @param {function} a boolean function that receives a Node instance and returns true to add the node to the results list
-     * @return {Array} the matching collection of nodes, null if no match
-     */
-    getNodesBy: function(fn) {
-        var values = [];
-        for (var i in this._nodes) {
-            if (this._nodes.hasOwnProperty(i)) {
-                var n = this._nodes[i];
-                if (fn(n)) {
-                    values.push(n);
-                }
-            }
-        }
-        return (values.length) ? values : null;
-    },
-    /**
-     * Returns the treeview node reference for an ancestor element
-     * of the node, or null if it is not contained within any node
-     * in this tree.
-     * @method getNodeByElement
-     * @param el {HTMLElement} the element to test
-     * @return {YAHOO.widget.Node} a node reference or null
-     */
-    getNodeByElement: function(el) {
-
-        var p=el, m, re=/ygtv([^\d]*)(.*)/;
-
-        do {
-
-            if (p && p.id) {
-                m = p.id.match(re);
-                if (m && m[2]) {
-                    return this.getNodeByIndex(m[2]);
-                }
-            }
-
-            p = p.parentNode;
-
-            if (!p || !p.tagName) {
-                break;
-            }
-
-        } 
-        while (p.id !== this.id && p.tagName.toLowerCase() !== "body");
-
-        return null;
-    },
-       
-    /**
-     * When in singleNodeHighlight it returns the node highlighted
-        * or null if none.  Returns null if singleNodeHighlight is false.
-     * @method getHighlightedNode
-     * @return {YAHOO.widget.Node} a node reference or null
-     */
-       getHighlightedNode: function() {
-               return this._currentlyHighlighted;
-       },
-
-
-    /**
-     * Removes the node and its children, and optionally refreshes the 
-     * branch of the tree that was affected.
-     * @method removeNode
-     * @param {Node} node to remove
-     * @param {boolean} autoRefresh automatically refreshes branch if true
-     * @return {boolean} False is there was a problem, true otherwise.
-     */
-    removeNode: function(node, autoRefresh) { 
-
-        // Don't delete the root node
-        if (node.isRoot()) {
-            return false;
-        }
-
-        // Get the branch that we may need to refresh
-        var p = node.parent;
-        if (p.parent) {
-            p = p.parent;
-        }
-
-        // Delete the node and its children
-        this._deleteNode(node);
-
-        // Refresh the parent of the parent
-        if (autoRefresh && p && p.childrenRendered) {
-            p.refresh();
-        }
-
-        return true;
-    },
-
-    /**
-     * wait until the animation is complete before deleting 
-     * to avoid javascript errors
-     * @method _removeChildren_animComplete
-     * @param o the custom event payload
-     * @private
-     */
-    _removeChildren_animComplete: function(o) {
-        this.unsubscribe(this._removeChildren_animComplete);
-        this.removeChildren(o.node);
-    },
-
-    /**
-     * Deletes this nodes child collection, recursively.  Also collapses
-     * the node, and resets the dynamic load flag.  The primary use for
-     * this method is to purge a node and allow it to fetch its data
-     * dynamically again.
-     * @method removeChildren
-     * @param {Node} node the node to purge
-     */
-    removeChildren: function(node) { 
-
-        if (node.expanded) {
-            // wait until the animation is complete before deleting to
-            // avoid javascript errors
-            if (this._collapseAnim) {
-                this.subscribe("animComplete", 
-                        this._removeChildren_animComplete, this, true);
-                Widget.Node.prototype.collapse.call(node);
-                return;
-            }
-
-            node.collapse();
-        }
-
-        this.logger.log("Removing children for " + node);
-        while (node.children.length) {
-            this._deleteNode(node.children[0]);
-        }
-
-        if (node.isRoot()) {
-            Widget.Node.prototype.expand.call(node);
-        }
-
-        node.childrenRendered = false;
-        node.dynamicLoadComplete = false;
-
-        node.updateIcon();
-    },
-
-    /**
-     * Deletes the node and recurses children
-     * @method _deleteNode
-     * @private
-     */
-    _deleteNode: function(node) { 
-        // Remove all the child nodes first
-        this.removeChildren(node);
-
-        // Remove the node from the tree
-        this.popNode(node);
-    },
-
-    /**
-     * Removes the node from the tree, preserving the child collection 
-     * to make it possible to insert the branch into another part of the 
-     * tree, or another tree.
-     * @method popNode
-     * @param {Node} node to remove
-     */
-    popNode: function(node) { 
-        var p = node.parent;
-
-        // Update the parent's collection of children
-        var a = [];
-
-        for (var i=0, len=p.children.length;i<len;++i) {
-            if (p.children[i] != node) {
-                a[a.length] = p.children[i];
-            }
-        }
-
-        p.children = a;
-
-        // reset the childrenRendered flag for the parent
-        p.childrenRendered = false;
-
-         // Update the sibling relationship
-        if (node.previousSibling) {
-            node.previousSibling.nextSibling = node.nextSibling;
-        }
-
-        if (node.nextSibling) {
-            node.nextSibling.previousSibling = node.previousSibling;
-        }
-
-               if (this.currentFocus == node) {
-                       this.currentFocus = null;
-               }
-               if (this._currentlyHighlighted == node) {
-                       this._currentlyHighlighted = null;
-               }
-
-        node.parent = null;
-        node.previousSibling = null;
-        node.nextSibling = null;
-        node.tree = null;
-
-        // Update the tree's node collection 
-        delete this._nodes[node.index];
-    },
-
-    /**
-    * Nulls out the entire TreeView instance and related objects, removes attached
-    * event listeners, and clears out DOM elements inside the container. After
-    * calling this method, the instance reference should be expliclitly nulled by
-    * implementer, as in myDataTable = null. Use with caution!
-    *
-    * @method destroy
-    */
-    destroy : function() {
-        // Since the label editor can be separated from the main TreeView control
-        // the destroy method for it might not be there.
-        if (this._destroyEditor) { this._destroyEditor(); }
-        var el = this.getEl();
-        Event.removeListener(el,'click');
-        Event.removeListener(el,'dblclick');
-        Event.removeListener(el,'mouseover');
-        Event.removeListener(el,'mouseout');
-        Event.removeListener(el,'keydown');
-        for (var i = 0 ; i < this._nodes.length; i++) {
-            var node = this._nodes[i];
-            if (node && node.destroy) {node.destroy(); }
-        }
-        el.innerHTML = '';
-        this._hasEvents = false;
-    },
-        
-            
-
-
-    /**
-     * TreeView instance toString
-     * @method toString
-     * @return {string} string representation of the tree
-     */
-    toString: function() {
-        return "TreeView " + this.id;
-    },
-
-    /**
-     * Count of nodes in tree
-     * @method getNodeCount
-     * @return {int} number of nodes in the tree
-     */
-    getNodeCount: function() {
-        return this.getRoot().getNodeCount();
-    },
-
-    /**
-     * Returns an object which could be used to rebuild the tree.
-     * It can be passed to the tree constructor to reproduce the same tree.
-     * It will return false if any node loads dynamically, regardless of whether it is loaded or not.
-     * @method getTreeDefinition
-     * @return {Object | false}  definition of the tree or false if any node is defined as dynamic
-     */
-    getTreeDefinition: function() {
-        return this.getRoot().getNodeDefinition();
-    },
-
-    /**
-     * Abstract method that is executed when a node is expanded
-     * @method onExpand
-     * @param node {Node} the node that was expanded
-     * @deprecated use treeobj.subscribe("expand") instead
-     */
-    onExpand: function(node) { },
-
-    /**
-     * Abstract method that is executed when a node is collapsed.
-     * @method onCollapse
-     * @param node {Node} the node that was collapsed.
-     * @deprecated use treeobj.subscribe("collapse") instead
-     */
-    onCollapse: function(node) { },
-    
-    /**
-    * Sets the value of a property for all loaded nodes in the tree.
-    * @method setNodesProperty
-    * @param name {string} Name of the property to be set
-    * @param value {any} value to be set
-    * @param refresh {boolean} if present and true, it does a refresh
-    */
-    setNodesProperty: function(name, value, refresh) {
-        this.root.setNodesProperty(name,value);
-        if (refresh) {
-            this.root.refresh();
-        }
-    },
-    /**
-    * Event listener to toggle node highlight.
-    * Can be assigned as listener to clickEvent, dblClickEvent and enterKeyPressed.
-    * It returns false to prevent the default action.
-    * @method onEventToggleHighlight
-    * @param oArgs {any} it takes the arguments of any of the events mentioned above
-    * @return {false} Always cancels the default action for the event
-    */
-    onEventToggleHighlight: function (oArgs) {
-        var node;
-        if ('node' in oArgs && oArgs.node instanceof Widget.Node) {
-            node = oArgs.node;
-        } else if (oArgs instanceof Widget.Node) {
-            node = oArgs;
-        } else {
-            return false;
-        }
-        node.toggleHighlight();
-        return false;
-    }
-        
-
-};
-
-/* Backwards compatibility aliases */
-var PROT = TV.prototype;
- /**
-     * Renders the tree boilerplate and visible nodes.
-     *  Alias for render
-     * @method draw
-     * @deprecated Use render instead
-     */
-PROT.draw = PROT.render;
-
-/* end backwards compatibility aliases */
-
-YAHOO.augment(TV, YAHOO.util.EventProvider);
-
-/**
- * Running count of all nodes created in all trees.  This is 
- * used to provide unique identifies for all nodes.  Deleting
- * nodes does not change the nodeCount.
- * @property YAHOO.widget.TreeView.nodeCount
- * @type int
- * @static
- */
-TV.nodeCount = 0;
-
-/**
- * Global cache of tree instances
- * @property YAHOO.widget.TreeView.trees
- * @type Array
- * @static
- * @private
- */
-TV.trees = [];
-
-/**
- * Global method for getting a tree by its id.  Used in the generated
- * tree html.
- * @method YAHOO.widget.TreeView.getTree
- * @param treeId {String} the id of the tree instance
- * @return {TreeView} the tree instance requested, null if not found.
- * @static
- */
-TV.getTree = function(treeId) {
-    var t = TV.trees[treeId];
-    return (t) ? t : null;
-};
-
-
-/**
- * Global method for getting a node by its id.  Used in the generated
- * tree html.
- * @method YAHOO.widget.TreeView.getNode
- * @param treeId {String} the id of the tree instance
- * @param nodeIndex {String} the index of the node to return
- * @return {Node} the node instance requested, null if not found
- * @static
- */
-TV.getNode = function(treeId, nodeIndex) {
-    var t = TV.getTree(treeId);
-    return (t) ? t.getNodeByIndex(nodeIndex) : null;
-};
-
-
-/**
-     * Class name assigned to elements that have the focus
-     *
-     * @property TreeView.FOCUS_CLASS_NAME
-     * @type String
-     * @static
-     * @final
-     * @default "ygtvfocus"
-
-    */ 
-TV.FOCUS_CLASS_NAME = 'ygtvfocus';
-
-
-
-})();
-
-(function () {
-    var Dom = YAHOO.util.Dom,
-        Lang = YAHOO.lang,
-        Event = YAHOO.util.Event;
-/**
- * The base class for all tree nodes.  The node's presentation and behavior in
- * response to mouse events is handled in Node subclasses.
- * @namespace YAHOO.widget
- * @class Node
- * @uses YAHOO.util.EventProvider
- * @param oData {object} a string or object containing the data that will
- * be used to render this node, and any custom attributes that should be
- * stored with the node (which is available in noderef.data).
- * All values in oData will be used to set equally named properties in the node
- * as long as the node does have such properties, they are not undefined, private or functions,
- * the rest of the values will be stored in noderef.data
- * @param oParent {Node} this node's parent node
- * @param expanded {boolean} the initial expanded/collapsed state (deprecated, use oData.expanded)
- * @constructor
- */
-YAHOO.widget.Node = function(oData, oParent, expanded) {
-    if (oData) { this.init(oData, oParent, expanded); }
-};
-
-YAHOO.widget.Node.prototype = {
-
-    /**
-     * The index for this instance obtained from global counter in YAHOO.widget.TreeView.
-     * @property index
-     * @type int
-     */
-    index: 0,
-
-    /**
-     * This node's child node collection.
-     * @property children
-     * @type Node[] 
-     */
-    children: null,
-
-    /**
-     * Tree instance this node is part of
-     * @property tree
-     * @type TreeView
-     */
-    tree: null,
-
-    /**
-     * The data linked to this node.  This can be any object or primitive
-     * value, and the data can be used in getNodeHtml().
-     * @property data
-     * @type object
-     */
-    data: null,
-
-    /**
-     * Parent node
-     * @property parent
-     * @type Node
-     */
-    parent: null,
-
-    /**
-     * The depth of this node.  We start at -1 for the root node.
-     * @property depth
-     * @type int
-     */
-    depth: -1,
-
-    /**
-     * The node's expanded/collapsed state
-     * @property expanded
-     * @type boolean
-     */
-    expanded: false,
-
-    /**
-     * Can multiple children be expanded at once?
-     * @property multiExpand
-     * @type boolean
-     */
-    multiExpand: true,
-
-    /**
-     * Should we render children for a collapsed node?  It is possible that the
-     * implementer will want to render the hidden data...  @todo verify that we 
-     * need this, and implement it if we do.
-     * @property renderHidden
-     * @type boolean
-     */
-    renderHidden: false,
-
-    /**
-     * This flag is set to true when the html is generated for this node's
-     * children, and set to false when new children are added.
-     * @property childrenRendered
-     * @type boolean
-     */
-    childrenRendered: false,
-
-    /**
-     * Dynamically loaded nodes only fetch the data the first time they are
-     * expanded.  This flag is set to true once the data has been fetched.
-     * @property dynamicLoadComplete
-     * @type boolean
-     */
-    dynamicLoadComplete: false,
-
-    /**
-     * This node's previous sibling
-     * @property previousSibling
-     * @type Node
-     */
-    previousSibling: null,
-
-    /**
-     * This node's next sibling
-     * @property nextSibling
-     * @type Node
-     */
-    nextSibling: null,
-
-    /**
-     * We can set the node up to call an external method to get the child
-     * data dynamically.
-     * @property _dynLoad
-     * @type boolean
-     * @private
-     */
-    _dynLoad: false,
-
-    /**
-     * Function to execute when we need to get this node's child data.
-     * @property dataLoader
-     * @type function
-     */
-    dataLoader: null,
-
-    /**
-     * This is true for dynamically loading nodes while waiting for the
-     * callback to return.
-     * @property isLoading
-     * @type boolean
-     */
-    isLoading: false,
-
-    /**
-     * The toggle/branch icon will not show if this is set to false.  This
-     * could be useful if the implementer wants to have the child contain
-     * extra info about the parent, rather than an actual node.
-     * @property hasIcon
-     * @type boolean
-     */
-    hasIcon: true,
-
-    /**
-     * Used to configure what happens when a dynamic load node is expanded
-     * and we discover that it does not have children.  By default, it is
-     * treated as if it still could have children (plus/minus icon).  Set
-     * iconMode to have it display like a leaf node instead.
-     * @property iconMode
-     * @type int
-     */
-    iconMode: 0,
-
-    /**
-     * Specifies whether or not the content area of the node should be allowed
-     * to wrap.
-     * @property nowrap
-     * @type boolean
-     * @default false
-     */
-    nowrap: false,
-
- /**
-     * If true, the node will alway be rendered as a leaf node.  This can be
-     * used to override the presentation when dynamically loading the entire
-     * tree.  Setting this to true also disables the dynamic load call for the
-     * node.
-     * @property isLeaf
-     * @type boolean
-     * @default false
-     */
-    isLeaf: false,
-
-/**
-     * The CSS class for the html content container.  Defaults to ygtvhtml, but 
-     * can be overridden to provide a custom presentation for a specific node.
-     * @property contentStyle
-     * @type string
-     */
-    contentStyle: "",
-
-
-    /**
-     * The generated id that will contain the data passed in by the implementer.
-     * @property contentElId
-     * @type string
-     */
-    contentElId: null,
-    
-/** 
- * Enables node highlighting.  If true, the node can be highlighted and/or propagate highlighting
- * @property enableHighlight
- * @type boolean
- * @default true
- */
-    enableHighlight: true,
-    
-/** 
- * Stores the highlight state.  Can be any of:
- * <ul>
- * <li>0 - not highlighted</li>
- * <li>1 - highlighted</li>
- * <li>2 - some children highlighted</li>
- * </ul>
- * @property highlightState
- * @type integer
- * @default 0
- */
- highlightState: 0,
- /**
- * Tells whether highlighting will be propagated up to the parents of the clicked node
- * @property propagateHighlightUp
- * @type boolean
- * @default false
- */
- propagateHighlightUp: false,
- /**
- * Tells whether highlighting will be propagated down to the children of the clicked node
- * @property propagateHighlightDown
- * @type boolean
- * @default false
- */
- propagateHighlightDown: false,
- /**
-  * User-defined className to be added to the Node
-  * @property className
-  * @type string
-  * @default null
-  */
- className: null,
- /**
-     * The node type
-     * @property _type
-     * @private
-     * @type string
-     * @default "Node"
-*/
-    _type: "Node",
-
-    /*
-    spacerPath: "http://l.yimg.com/a/i/space.gif",
-    expandedText: "Expanded",
-    collapsedText: "Collapsed",
-    loadingText: "Loading",
-    */
-
-    /**
-     * Initializes this node, gets some of the properties from the parent
-     * @method init
-     * @param oData {object} a string or object containing the data that will
-     * be used to render this node
-     * @param oParent {Node} this node's parent node
-     * @param expanded {boolean} the initial expanded/collapsed state
-     */
-    init: function(oData, oParent, expanded) {
-
-        this.data = {};
-        this.children   = [];
-        this.index      = YAHOO.widget.TreeView.nodeCount;
-        ++YAHOO.widget.TreeView.nodeCount;
-        this.contentElId = "ygtvcontentel" + this.index;
-        
-        if (Lang.isObject(oData)) {
-            for (var property in oData) {
-                if (oData.hasOwnProperty(property)) {
-                    if (property.charAt(0) != '_'  && !Lang.isUndefined(this[property]) && !Lang.isFunction(this[property]) ) {
-                        this[property] = oData[property];
-                    } else {
-                        this.data[property] = oData[property];
-                    }
-                }
-            }
-        }
-        if (!Lang.isUndefined(expanded) ) { this.expanded  = expanded;  }
-        
-        this.logger     = new YAHOO.widget.LogWriter(this.toString());
-
-        /**
-         * The parentChange event is fired when a parent element is applied
-         * to the node.  This is useful if you need to apply tree-level
-         * properties to a tree that need to happen if a node is moved from
-         * one tree to another.
-         *
-         * @event parentChange
-         * @type CustomEvent
-         */
-        this.createEvent("parentChange", this);
-
-        // oParent should never be null except when we create the root node.
-        if (oParent) {
-            oParent.appendChild(this);
-        }
-    },
-
-    /**
-     * Certain properties for the node cannot be set until the parent
-     * is known. This is called after the node is inserted into a tree.
-     * the parent is also applied to this node's children in order to
-     * make it possible to move a branch from one tree to another.
-     * @method applyParent
-     * @param {Node} parentNode this node's parent node
-     * @return {boolean} true if the application was successful
-     */
-    applyParent: function(parentNode) {
-        if (!parentNode) {
-            return false;
-        }
-
-        this.tree   = parentNode.tree;
-        this.parent = parentNode;
-        this.depth  = parentNode.depth + 1;
-
-        // @todo why was this put here.  This causes new nodes added at the
-        // root level to lose the menu behavior.
-        // if (! this.multiExpand) {
-            // this.multiExpand = parentNode.multiExpand;
-        // }
-
-        this.tree.regNode(this);
-        parentNode.childrenRendered = false;
-
-        // cascade update existing children
-        for (var i=0, len=this.children.length;i<len;++i) {
-            this.children[i].applyParent(this);
-        }
-
-        this.fireEvent("parentChange");
-
-        return true;
-    },
-
-    /**
-     * Appends a node to the child collection.
-     * @method appendChild
-     * @param childNode {Node} the new node
-     * @return {Node} the child node
-     * @private
-     */
-    appendChild: function(childNode) {
-        if (this.hasChildren()) {
-            var sib = this.children[this.children.length - 1];
-            sib.nextSibling = childNode;
-            childNode.previousSibling = sib;
-        }
-        this.children[this.children.length] = childNode;
-        childNode.applyParent(this);
-
-        // part of the IE display issue workaround. If child nodes
-        // are added after the initial render, and the node was
-        // instantiated with expanded = true, we need to show the
-        // children div now that the node has a child.
-        if (this.childrenRendered && this.expanded) {
-            this.getChildrenEl().style.display = "";
-        }
-
-        return childNode;
-    },
-
-    /**
-     * Appends this node to the supplied node's child collection
-     * @method appendTo
-     * @param parentNode {Node} the node to append to.
-     * @return {Node} The appended node
-     */
-    appendTo: function(parentNode) {
-        return parentNode.appendChild(this);
-    },
-
-    /**
-    * Inserts this node before this supplied node
-    * @method insertBefore
-    * @param node {Node} the node to insert this node before
-    * @return {Node} the inserted node
-    */
-    insertBefore: function(node) {
-        this.logger.log("insertBefore: " + node);
-        var p = node.parent;
-        if (p) {
-
-            if (this.tree) {
-                this.tree.popNode(this);
-            }
-
-            var refIndex = node.isChildOf(p);
-            //this.logger.log(refIndex);
-            p.children.splice(refIndex, 0, this);
-            if (node.previousSibling) {
-                node.previousSibling.nextSibling = this;
-            }
-            this.previousSibling = node.previousSibling;
-            this.nextSibling = node;
-            node.previousSibling = this;
-
-            this.applyParent(p);
-        }
-
-        return this;
-    },
-    /**
-    * Inserts this node after the supplied node
-    * @method insertAfter
-    * @param node {Node} the node to insert after
-    * @return {Node} the inserted node
-    */
-    insertAfter: function(node) {
-        this.logger.log("insertAfter: " + node);
-        var p = node.parent;
-        if (p) {
-
-            if (this.tree) {
-                this.tree.popNode(this);
-            }
-
-            var refIndex = node.isChildOf(p);
-            this.logger.log(refIndex);
-
-            if (!node.nextSibling) {
-                this.nextSibling = null;
-                return this.appendTo(p);
-            }
-
-            p.children.splice(refIndex + 1, 0, this);
-
-            node.nextSibling.previousSibling = this;
-            this.previousSibling = node;
-            this.nextSibling = node.nextSibling;
-            node.nextSibling = this;
-
-            this.applyParent(p);
-        }
-
-        return this;
-    },
-
-    /**
-    * Returns true if the Node is a child of supplied Node
-    * @method isChildOf
-    * @param parentNode {Node} the Node to check
-    * @return {boolean} The node index if this Node is a child of 
-    *                   supplied Node, else -1.
-    * @private
-    */
-    isChildOf: function(parentNode) {
-        if (parentNode && parentNode.children) {
-            for (var i=0, len=parentNode.children.length; i<len ; ++i) {
-                if (parentNode.children[i] === this) {
-                    return i;
-                }
-            }
-        }
-
-        return -1;
-    },
-
-    /**
-     * Returns a node array of this node's siblings, null if none.
-     * @method getSiblings
-     * @return Node[]
-     */
-    getSiblings: function() {
-        var sib =  this.parent.children.slice(0);
-        for (var i=0;i < sib.length && sib[i] != this;i++) {}
-        sib.splice(i,1);
-        if (sib.length) { return sib; }
-        return null;
-    },
-
-    /**
-     * Shows this node's children
-     * @method showChildren
-     */
-    showChildren: function() {
-        if (!this.tree.animateExpand(this.getChildrenEl(), this)) {
-            if (this.hasChildren()) {
-                this.getChildrenEl().style.display = "";
-            }
-        }
-    },
-
-    /**
-     * Hides this node's children
-     * @method hideChildren
-     */
-    hideChildren: function() {
-        this.logger.log("hiding " + this.index);
-
-        if (!this.tree.animateCollapse(this.getChildrenEl(), this)) {
-            this.getChildrenEl().style.display = "none";
-        }
-    },
-
-    /**
-     * Returns the id for this node's container div
-     * @method getElId
-     * @return {string} the element id
-     */
-    getElId: function() {
-        return "ygtv" + this.index;
-    },
-
-    /**
-     * Returns the id for this node's children div
-     * @method getChildrenElId
-     * @return {string} the element id for this node's children div
-     */
-    getChildrenElId: function() {
-        return "ygtvc" + this.index;
-    },
-
-    /**
-     * Returns the id for this node's toggle element
-     * @method getToggleElId
-     * @return {string} the toggel element id
-     */
-    getToggleElId: function() {
-        return "ygtvt" + this.index;
-    },
-
-
-    /*
-     * Returns the id for this node's spacer image.  The spacer is positioned
-     * over the toggle and provides feedback for screen readers.
-     * @method getSpacerId
-     * @return {string} the id for the spacer image
-     */
-    /*
-    getSpacerId: function() {
-        return "ygtvspacer" + this.index;
-    }, 
-    */
-
-    /**
-     * Returns this node's container html element
-     * @method getEl
-     * @return {HTMLElement} the container html element
-     */
-    getEl: function() {
-        return Dom.get(this.getElId());
-    },
-
-    /**
-     * Returns the div that was generated for this node's children
-     * @method getChildrenEl
-     * @return {HTMLElement} this node's children div
-     */
-    getChildrenEl: function() {
-        return Dom.get(this.getChildrenElId());
-    },
-
-    /**
-     * Returns the element that is being used for this node's toggle.
-     * @method getToggleEl
-     * @return {HTMLElement} this node's toggle html element
-     */
-    getToggleEl: function() {
-        return Dom.get(this.getToggleElId());
-    },
-    /**
-    * Returns the outer html element for this node's content
-    * @method getContentEl
-    * @return {HTMLElement} the element
-    */
-    getContentEl: function() { 
-        return Dom.get(this.contentElId);
-    },
-
-
-    /*
-     * Returns the element that is being used for this node's spacer.
-     * @method getSpacer
-     * @return {HTMLElement} this node's spacer html element
-     */
-    /*
-    getSpacer: function() {
-        return document.getElementById( this.getSpacerId() ) || {};
-    },
-    */
-
-    /*
-    getStateText: function() {
-        if (this.isLoading) {
-            return this.loadingText;
-        } else if (this.hasChildren(true)) {
-            if (this.expanded) {
-                return this.expandedText;
-            } else {
-                return this.collapsedText;
-            }
-        } else {
-            return "";
-        }
-    },
-    */
-
-  /**
-     * Hides this nodes children (creating them if necessary), changes the toggle style.
-     * @method collapse
-     */
-    collapse: function() {
-        // Only collapse if currently expanded
-        if (!this.expanded) { return; }
-
-        // fire the collapse event handler
-        var ret = this.tree.onCollapse(this);
-
-        if (false === ret) {
-            this.logger.log("Collapse was stopped by the abstract onCollapse");
-            return;
-        }
-
-        ret = this.tree.fireEvent("collapse", this);
-
-        if (false === ret) {
-            this.logger.log("Collapse was stopped by a custom event handler");
-            return;
-        }
-
-
-        if (!this.getEl()) {
-            this.expanded = false;
-        } else {
-            // hide the child div
-            this.hideChildren();
-            this.expanded = false;
-
-            this.updateIcon();
-        }
-
-        // this.getSpacer().title = this.getStateText();
-
-        ret = this.tree.fireEvent("collapseComplete", this);
-
-    },
-
-    /**
-     * Shows this nodes children (creating them if necessary), changes the
-     * toggle style, and collapses its siblings if multiExpand is not set.
-     * @method expand
-     */
-    expand: function(lazySource) {
-        // Only expand if currently collapsed.
-        if (this.isLoading || (this.expanded && !lazySource)) { 
-            return; 
-        }
-
-        var ret = true;
-
-        // When returning from the lazy load handler, expand is called again
-        // in order to render the new children.  The "expand" event already
-        // fired before fething the new data, so we need to skip it now.
-        if (!lazySource) {
-            // fire the expand event handler
-            ret = this.tree.onExpand(this);
-
-            if (false === ret) {
-                this.logger.log("Expand was stopped by the abstract onExpand");
-                return;
-            }
-            
-            ret = this.tree.fireEvent("expand", this);
-        }
-
-        if (false === ret) {
-            this.logger.log("Expand was stopped by the custom event handler");
-            return;
-        }
-
-        if (!this.getEl()) {
-            this.expanded = true;
-            return;
-        }
-
-        if (!this.childrenRendered) {
-            this.logger.log("children not rendered yet");
-            this.getChildrenEl().innerHTML = this.renderChildren();
-        } else {
-            this.logger.log("children already rendered");
-        }
-
-        this.expanded = true;
-
-        this.updateIcon();
-
-        // this.getSpacer().title = this.getStateText();
-
-        // We do an extra check for children here because the lazy
-        // load feature can expose nodes that have no children.
-
-        // if (!this.hasChildren()) {
-        if (this.isLoading) {
-            this.expanded = false;
-            return;
-        }
-
-        if (! this.multiExpand) {
-            var sibs = this.getSiblings();
-            for (var i=0; sibs && i<sibs.length; ++i) {
-                if (sibs[i] != this && sibs[i].expanded) { 
-                    sibs[i].collapse(); 
-                }
-            }
-        }
-
-        this.showChildren();
-
-        ret = this.tree.fireEvent("expandComplete", this);
-    },
-
-    updateIcon: function() {
-        if (this.hasIcon) {
-            var el = this.getToggleEl();
-            if (el) {
-                el.className = el.className.replace(/\bygtv(([tl][pmn]h?)|(loading))\b/gi,this.getStyle());
-            }
-        }
-    },
-
-    /**
-     * Returns the css style name for the toggle
-     * @method getStyle
-     * @return {string} the css class for this node's toggle
-     */
-    getStyle: function() {
-        // this.logger.log("No children, " + " isDyanmic: " + this.isDynamic() + " expanded: " + this.expanded);
-        if (this.isLoading) {
-            this.logger.log("returning the loading icon");
-            return "ygtvloading";
-        } else {
-            // location top or bottom, middle nodes also get the top style
-            var loc = (this.nextSibling) ? "t" : "l";
-
-            // type p=plus(expand), m=minus(collapase), n=none(no children)
-            var type = "n";
-            if (this.hasChildren(true) || (this.isDynamic() && !this.getIconMode())) {
-            // if (this.hasChildren(true)) {
-                type = (this.expanded) ? "m" : "p";
-            }
-
-            // this.logger.log("ygtv" + loc + type);
-            return "ygtv" + loc + type;
-        }
-    },
-
-    /**
-     * Returns the hover style for the icon
-     * @return {string} the css class hover state
-     * @method getHoverStyle
-     */
-    getHoverStyle: function() { 
-        var s = this.getStyle();
-        if (this.hasChildren(true) && !this.isLoading) { 
-            s += "h"; 
-        }
-        return s;
-    },
-
-    /**
-     * Recursively expands all of this node's children.
-     * @method expandAll
-     */
-    expandAll: function() { 
-        var l = this.children.length;
-        for (var i=0;i<l;++i) {
-            var c = this.children[i];
-            if (c.isDynamic()) {
-                this.logger.log("Not supported (lazy load + expand all)");
-                break;
-            } else if (! c.multiExpand) {
-                this.logger.log("Not supported (no multi-expand + expand all)");
-                break;
-            } else {
-                c.expand();
-                c.expandAll();
-            }
-        }
-    },
-
-    /**
-     * Recursively collapses all of this node's children.
-     * @method collapseAll
-     */
-    collapseAll: function() { 
-        for (var i=0;i<this.children.length;++i) {
-            this.children[i].collapse();
-            this.children[i].collapseAll();
-        }
-    },
-
-    /**
-     * Configures this node for dynamically obtaining the child data
-     * when the node is first expanded.  Calling it without the callback
-     * will turn off dynamic load for the node.
-     * @method setDynamicLoad
-     * @param fmDataLoader {function} the function that will be used to get the data.
-     * @param iconMode {int} configures the icon that is displayed when a dynamic
-     * load node is expanded the first time without children.  By default, the 
-     * "collapse" icon will be used.  If set to 1, the leaf node icon will be
-     * displayed.
-     */
-    setDynamicLoad: function(fnDataLoader, iconMode) { 
-        if (fnDataLoader) {
-            this.dataLoader = fnDataLoader;
-            this._dynLoad = true;
-        } else {
-            this.dataLoader = null;
-            this._dynLoad = false;
-        }
-
-        if (iconMode) {
-            this.iconMode = iconMode;
-        }
-    },
-
-    /**
-     * Evaluates if this node is the root node of the tree
-     * @method isRoot
-     * @return {boolean} true if this is the root node
-     */
-    isRoot: function() { 
-        return (this == this.tree.root);
-    },
-
-    /**
-     * Evaluates if this node's children should be loaded dynamically.  Looks for
-     * the property both in this instance and the root node.  If the tree is
-     * defined to load all children dynamically, the data callback function is
-     * defined in the root node
-     * @method isDynamic
-     * @return {boolean} true if this node's children are to be loaded dynamically
-     */
-    isDynamic: function() { 
-        if (this.isLeaf) {
-            return false;
-        } else {
-            return (!this.isRoot() && (this._dynLoad || this.tree.root._dynLoad));
-            // this.logger.log("isDynamic: " + lazy);
-            // return lazy;
-        }
-    },
-
-    /**
-     * Returns the current icon mode.  This refers to the way childless dynamic
-     * load nodes appear (this comes into play only after the initial dynamic
-     * load request produced no children).
-     * @method getIconMode
-     * @return {int} 0 for collapse style, 1 for leaf node style
-     */
-    getIconMode: function() {
-        return (this.iconMode || this.tree.root.iconMode);
-    },
-
-    /**
-     * Checks if this node has children.  If this node is lazy-loading and the
-     * children have not been rendered, we do not know whether or not there
-     * are actual children.  In most cases, we need to assume that there are
-     * children (for instance, the toggle needs to show the expandable 
-     * presentation state).  In other times we want to know if there are rendered
-     * children.  For the latter, "checkForLazyLoad" should be false.
-     * @method hasChildren
-     * @param checkForLazyLoad {boolean} should we check for unloaded children?
-     * @return {boolean} true if this has children or if it might and we are
-     * checking for this condition.
-     */
-    hasChildren: function(checkForLazyLoad) { 
-        if (this.isLeaf) {
-            return false;
-        } else {
-            return ( this.children.length > 0 || 
-                               (checkForLazyLoad && this.isDynamic() && !this.dynamicLoadComplete) 
-                       );
-        }
-    },
-
-    /**
-     * Expands if node is collapsed, collapses otherwise.
-     * @method toggle
-     */
-    toggle: function() {
-        if (!this.tree.locked && ( this.hasChildren(true) || this.isDynamic()) ) {
-            if (this.expanded) { this.collapse(); } else { this.expand(); }
-        }
-    },
-
-    /**
-     * Returns the markup for this node and its children.
-     * @method getHtml
-     * @return {string} the markup for this node and its expanded children.
-     */
-    getHtml: function() {
-
-        this.childrenRendered = false;
-
-        return ['<div class="ygtvitem" id="' , this.getElId() , '">' ,this.getNodeHtml() , this.getChildrenHtml() ,'</div>'].join("");
-    },
-
-    /**
-     * Called when first rendering the tree.  We always build the div that will
-     * contain this nodes children, but we don't render the children themselves
-     * unless this node is expanded.
-     * @method getChildrenHtml
-     * @return {string} the children container div html and any expanded children
-     * @private
-     */
-    getChildrenHtml: function() {
-
-
-        var sb = [];
-        sb[sb.length] = '<div class="ygtvchildren" id="' + this.getChildrenElId() + '"';
-
-        // This is a workaround for an IE rendering issue, the child div has layout
-        // in IE, creating extra space if a leaf node is created with the expanded
-        // property set to true.
-        if (!this.expanded || !this.hasChildren()) {
-            sb[sb.length] = ' style="display:none;"';
-        }
-        sb[sb.length] = '>';
-
-        // this.logger.log(["index", this.index, 
-                         // "hasChildren", this.hasChildren(true), 
-                         // "expanded", this.expanded, 
-                         // "renderHidden", this.renderHidden, 
-                         // "isDynamic", this.isDynamic()]);
-
-        // Don't render the actual child node HTML unless this node is expanded.
-        if ( (this.hasChildren(true) && this.expanded) ||
-                (this.renderHidden && !this.isDynamic()) ) {
-            sb[sb.length] = this.renderChildren();
-        }
-
-        sb[sb.length] = '</div>';
-
-        return sb.join("");
-    },
-
-    /**
-     * Generates the markup for the child nodes.  This is not done until the node
-     * is expanded.
-     * @method renderChildren
-     * @return {string} the html for this node's children
-     * @private
-     */
-    renderChildren: function() {
-
-        this.logger.log("rendering children for " + this.index);
-
-        var node = this;
-
-        if (this.isDynamic() && !this.dynamicLoadComplete) {
-            this.isLoading = true;
-            this.tree.locked = true;
-
-            if (this.dataLoader) {
-                this.logger.log("Using dynamic loader defined for this node");
-
-                setTimeout( 
-                    function() {
-                        node.dataLoader(node, 
-                            function() { 
-                                node.loadComplete(); 
-                            });
-                    }, 10);
-                
-            } else if (this.tree.root.dataLoader) {
-                this.logger.log("Using the tree-level dynamic loader");
-
-                setTimeout( 
-                    function() {
-                        node.tree.root.dataLoader(node, 
-                            function() { 
-                                node.loadComplete(); 
-                            });
-                    }, 10);
-
-            } else {
-                this.logger.log("no loader found");
-                return "Error: data loader not found or not specified.";
-            }
-
-            return "";
-
-        } else {
-            return this.completeRender();
-        }
-    },
-
-    /**
-     * Called when we know we have all the child data.
-     * @method completeRender
-     * @return {string} children html
-     */
-    completeRender: function() {
-        this.logger.log("completeRender: " + this.index + ", # of children: " + this.children.length);
-        var sb = [];
-
-        for (var i=0; i < this.children.length; ++i) {
-            // this.children[i].childrenRendered = false;
-            sb[sb.length] = this.children[i].getHtml();
-        }
-        
-        this.childrenRendered = true;
-
-        return sb.join("");
-    },
-
-    /**
-     * Load complete is the callback function we pass to the data provider
-     * in dynamic load situations.
-     * @method loadComplete
-     */
-    loadComplete: function() {
-        this.logger.log(this.index + " loadComplete, children: " + this.children.length);
-        this.getChildrenEl().innerHTML = this.completeRender();
-               if (this.propagateHighlightDown) {
-                       if (this.highlightState === 1 && !this.tree.singleNodeHighlight) {
-                               for (var i = 0; i < this.children.length; i++) {
-                               this.children[i].highlight(true);
-                       }
-                       } else if (this.highlightState === 0 || this.tree.singleNodeHighlight) {
-                               for (i = 0; i < this.children.length; i++) {
-                                       this.children[i].unhighlight(true);
-                               }
-                       } // if (highlighState == 2) leave child nodes with whichever highlight state they are set
-               }
-                               
-        this.dynamicLoadComplete = true;
-        this.isLoading = false;
-        this.expand(true);
-        this.tree.locked = false;
-    },
-
-    /**
-     * Returns this node's ancestor at the specified depth.
-     * @method getAncestor
-     * @param {int} depth the depth of the ancestor.
-     * @return {Node} the ancestor
-     */
-    getAncestor: function(depth) {
-        if (depth >= this.depth || depth < 0)  {
-            this.logger.log("illegal getAncestor depth: " + depth);
-            return null;
-        }
-
-        var p = this.parent;
-        
-        while (p.depth > depth) {
-            p = p.parent;
-        }
-
-        return p;
-    },
-
-    /**
-     * Returns the css class for the spacer at the specified depth for
-     * this node.  If this node's ancestor at the specified depth
-     * has a next sibling the presentation is different than if it
-     * does not have a next sibling
-     * @method getDepthStyle
-     * @param {int} depth the depth of the ancestor.
-     * @return {string} the css class for the spacer
-     */
-    getDepthStyle: function(depth) {
-        return (this.getAncestor(depth).nextSibling) ? 
-            "ygtvdepthcell" : "ygtvblankdepthcell";
-    },
-
-    /**
-     * Get the markup for the node.  This may be overrided so that we can
-     * support different types of nodes.
-     * @method getNodeHtml
-     * @return {string} The HTML that will render this node.
-     */
-    getNodeHtml: function() { 
-        this.logger.log("Generating html");
-        var sb = [];
-
-        sb[sb.length] = '<table id="ygtvtableel' + this.index + '" border="0" cellpadding="0" cellspacing="0" class="ygtvtable ygtvdepth' + this.depth;
-        if (this.enableHighlight) {
-            sb[sb.length] = ' ygtv-highlight' + this.highlightState;
-        }
-        if (this.className) {
-            sb[sb.length] = ' ' + this.className;
-        }           
-        sb[sb.length] = '"><tr class="ygtvrow">';
-        
-        for (var i=0;i<this.depth;++i) {
-            sb[sb.length] = '<td class="ygtvcell ' + this.getDepthStyle(i) + '"><div class="ygtvspacer"></div></td>';
-        }
-
-        if (this.hasIcon) {
-            sb[sb.length] = '<td id="' + this.getToggleElId();
-            sb[sb.length] = '" class="ygtvcell ';
-            sb[sb.length] = this.getStyle() ;
-            sb[sb.length] = '"><a href="#" class="ygtvspacer">&#160;</a></td>';
-        }
-
-        sb[sb.length] = '<td id="' + this.contentElId; 
-        sb[sb.length] = '" class="ygtvcell ';
-        sb[sb.length] = this.contentStyle  + ' ygtvcontent" ';
-        sb[sb.length] = (this.nowrap) ? ' nowrap="nowrap" ' : '';
-        sb[sb.length] = ' >';
-        sb[sb.length] = this.getContentHtml();
-        sb[sb.length] = '</td></tr></table>';
-
-        return sb.join("");
-
-    },
-    /**
-     * Get the markup for the contents of the node.  This is designed to be overrided so that we can
-     * support different types of nodes.
-     * @method getContentHtml
-     * @return {string} The HTML that will render the content of this node.
-     */
-    getContentHtml: function () {
-        return "";
-    },
-
-    /**
-     * Regenerates the html for this node and its children.  To be used when the
-     * node is expanded and new children have been added.
-     * @method refresh
-     */
-    refresh: function() {
-        // this.loadComplete();
-        this.getChildrenEl().innerHTML = this.completeRender();
-
-        if (this.hasIcon) {
-            var el = this.getToggleEl();
-            if (el) {
-                el.className = el.className.replace(/\bygtv[lt][nmp]h*\b/gi,this.getStyle());
-            }
-        }
-    },
-
-    /**
-     * Node toString
-     * @method toString
-     * @return {string} string representation of the node
-     */
-    toString: function() {
-        return this._type + " (" + this.index + ")";
-    },
-    /**
-    * array of items that had the focus set on them
-    * so that they can be cleaned when focus is lost
-    * @property _focusHighlightedItems
-    * @type Array of DOM elements
-    * @private
-    */
-    _focusHighlightedItems: [],
-    /**
-    * DOM element that actually got the browser focus
-    * @property _focusedItem
-    * @type DOM element
-    * @private
-    */
-    _focusedItem: null,
-    
-    /**
-    * Returns true if there are any elements in the node that can 
-    * accept the real actual browser focus
-    * @method _canHaveFocus
-    * @return {boolean} success
-    * @private
-    */
-    _canHaveFocus: function() {
-        return this.getEl().getElementsByTagName('a').length > 0;
-    },
-    /**
-    * Removes the focus of previously selected Node
-    * @method _removeFocus
-    * @private
-    */
-    _removeFocus:function () {
-        if (this._focusedItem) {
-            Event.removeListener(this._focusedItem,'blur');
-            this._focusedItem = null;
-        }
-        var el;
-        while ((el = this._focusHighlightedItems.shift())) {  // yes, it is meant as an assignment, really
-            Dom.removeClass(el,YAHOO.widget.TreeView.FOCUS_CLASS_NAME );
-        }
-    },
-    /**
-    * Sets the focus on the node element.
-    * It will only be able to set the focus on nodes that have anchor elements in it.  
-    * Toggle or branch icons have anchors and can be focused on.  
-    * If will fail in nodes that have no anchor
-    * @method focus
-    * @return {boolean} success
-    */
-    focus: function () {
-        var focused = false, self = this;
-
-        if (this.tree.currentFocus) {
-            this.tree.currentFocus._removeFocus();
-        }
-    
-        var  expandParent = function (node) {
-            if (node.parent) {
-                expandParent(node.parent);
-                node.parent.expand();
-            } 
-        };
-        expandParent(this);
-
-        Dom.getElementsBy  ( 
-            function (el) {
-                return (/ygtv(([tl][pmn]h?)|(content))/).test(el.className);
-            } ,
-            'td' , 
-            self.getEl().firstChild , 
-            function (el) {
-                Dom.addClass(el, YAHOO.widget.TreeView.FOCUS_CLASS_NAME );
-                if (!focused) { 
-                    var aEl = el.getElementsByTagName('a');
-                    if (aEl.length) {
-                        aEl = aEl[0];
-                        aEl.focus();
-                        self._focusedItem = aEl;
-                        Event.on(aEl,'blur',function () {
-                            //console.log('f1');
-                            self.tree.fireEvent('focusChanged',{oldNode:self.tree.currentFocus,newNode:null});
-                            self.tree.currentFocus = null;
-                            self._removeFocus();
-                        });
-                        focused = true;
-                    }
-                }
-                self._focusHighlightedItems.push(el);
-            }
-        );
-        if (focused) { 
-                            //console.log('f2');
-            this.tree.fireEvent('focusChanged',{oldNode:this.tree.currentFocus,newNode:this});
-            this.tree.currentFocus = this;
-        } else {
-                            //console.log('f3');
-            this.tree.fireEvent('focusChanged',{oldNode:self.tree.currentFocus,newNode:null});
-            this.tree.currentFocus = null;
-            this._removeFocus(); 
-        }
-        return focused;
-    },
-
-  /**
-     * Count of nodes in a branch
-     * @method getNodeCount
-     * @return {int} number of nodes in the branch
-     */
-    getNodeCount: function() {
-        for (var i = 0, count = 0;i< this.children.length;i++) {
-            count += this.children[i].getNodeCount();
-        }
-        return count + 1;
-    },
-    
-      /**
-     * Returns an object which could be used to build a tree out of this node and its children.
-     * It can be passed to the tree constructor to reproduce this node as a tree.
-     * It will return false if the node or any children loads dynamically, regardless of whether it is loaded or not.
-     * @method getNodeDefinition
-     * @return {Object | false}  definition of the tree or false if the node or any children is defined as dynamic
-     */
-    getNodeDefinition: function() {
-    
-        if (this.isDynamic()) { return false; }
-        
-        var def, defs = Lang.merge(this.data), children = []; 
-        
-        
-
-        if (this.expanded) {defs.expanded = this.expanded; }
-        if (!this.multiExpand) { defs.multiExpand = this.multiExpand; }
-        if (!this.renderHidden) { defs.renderHidden = this.renderHidden; }
-        if (!this.hasIcon) { defs.hasIcon = this.hasIcon; }
-        if (this.nowrap) { defs.nowrap = this.nowrap; }
-        if (this.className) { defs.className = this.className; }
-        if (this.editable) { defs.editable = this.editable; }
-        if (this.enableHighlight) { defs.enableHighlight = this.enableHighlight; }
-        if (this.highlightState) { defs.highlightState = this.highlightState; }
-        if (this.propagateHighlightUp) { defs.propagateHighlightUp = this.propagateHighlightUp; }
-        if (this.propagateHighlightDown) { defs.propagateHighlightDown = this.propagateHighlightDown; }
-        defs.type = this._type;
-        
-        
-        
-        for (var i = 0; i < this.children.length;i++) {
-            def = this.children[i].getNodeDefinition();
-            if (def === false) { return false;}
-            children.push(def);
-        }
-        if (children.length) { defs.children = children; }
-        return defs;
-    },
-
-
-    /**
-     * Generates the link that will invoke this node's toggle method
-     * @method getToggleLink
-     * @return {string} the javascript url for toggling this node
-     */
-    getToggleLink: function() {
-        return 'return false;';
-    },
-    
-    /**
-    * Sets the value of property for this node and all loaded descendants.  
-    * Only public and defined properties can be set, not methods.  
-    * Values for unknown properties will be assigned to the refNode.data object
-    * @method setNodesProperty
-    * @param name {string} Name of the property to be set
-    * @param value {any} value to be set
-    * @param refresh {boolean} if present and true, it does a refresh
-    */
-    setNodesProperty: function(name, value, refresh) {
-        if (name.charAt(0) != '_'  && !Lang.isUndefined(this[name]) && !Lang.isFunction(this[name]) ) {
-            this[name] = value;
-        } else {
-            this.data[name] = value;
-        }
-        for (var i = 0; i < this.children.length;i++) {
-            this.children[i].setNodesProperty(name,value);
-        }
-        if (refresh) {
-            this.refresh();
-        }
-    },
-    /**
-    * Toggles the highlighted state of a Node
-    * @method toggleHighlight
-    */
-    toggleHighlight: function() {
-        if (this.enableHighlight) {
-            // unhighlights only if fully highligthed.  For not or partially highlighted it will highlight
-            if (this.highlightState == 1) {
-                this.unhighlight();
-            } else {
-                this.highlight();
-            }
-        }
-    },
-    
-    /**
-    * Turns highlighting on node.  
-    * @method highlight
-    * @param _silent {boolean} optional, don't fire the highlightEvent
-    */
-    highlight: function(_silent) {
-        if (this.enableHighlight) {
-            if (this.tree.singleNodeHighlight) {
-                if (this.tree._currentlyHighlighted) {
-                    this.tree._currentlyHighlighted.unhighlight(_silent);
-                }
-                this.tree._currentlyHighlighted = this;
-            }
-            this.highlightState = 1;
-            this._setHighlightClassName();
-            if (!this.tree.singleNodeHighlight) {
-                               if (this.propagateHighlightDown) {
-                                       for (var i = 0;i < this.children.length;i++) {
-                                               this.children[i].highlight(true);
-                                       }
-                               }
-                               if (this.propagateHighlightUp) {
-                                       if (this.parent) {
-                                               this.parent._childrenHighlighted();
-                                       }
-                               }
-                       }
-            if (!_silent) {
-                this.tree.fireEvent('highlightEvent',this);
-            }
-        }
-    },
-    /**
-    * Turns highlighting off a node.  
-    * @method unhighlight
-    * @param _silent {boolean} optional, don't fire the highlightEvent
-    */
-    unhighlight: function(_silent) {
-        if (this.enableHighlight) {
-                       // might have checked singleNodeHighlight but it wouldn't really matter either way
-            this.tree._currentlyHighlighted = null;
-            this.highlightState = 0;
-            this._setHighlightClassName();
-            if (!this.tree.singleNodeHighlight) {
-                               if (this.propagateHighlightDown) {
-                                       for (var i = 0;i < this.children.length;i++) {
-                                               this.children[i].unhighlight(true);
-                                       }
-                               }
-                               if (this.propagateHighlightUp) {
-                                       if (this.parent) {
-                                               this.parent._childrenHighlighted();
-                                       }
-                               }
-                       }
-            if (!_silent) {
-                this.tree.fireEvent('highlightEvent',this);
-            }
-        }
-    },
-    /** 
-    * Checks whether all or part of the children of a node are highlighted and
-    * sets the node highlight to full, none or partial highlight.
-    * If set to propagate it will further call the parent
-    * @method _childrenHighlighted
-    * @private
-    */
-    _childrenHighlighted: function() {
-        var yes = false, no = false;
-        if (this.enableHighlight) {
-            for (var i = 0;i < this.children.length;i++) {
-                switch(this.children[i].highlightState) {
-                    case 0:
-                        no = true;
-                        break;
-                    case 1:
-                        yes = true;
-                        break;
-                    case 2:
-                        yes = no = true;
-                        break;
-                }
-            }
-            if (yes && no) {
-                this.highlightState = 2;
-            } else if (yes) {
-                this.highlightState = 1;
-            } else {
-                this.highlightState = 0;
-            }
-            this._setHighlightClassName();
-            if (this.propagateHighlightUp) {
-                if (this.parent) {
-                    this.parent._childrenHighlighted();
-                }
-            }
-        }
-    },
-    
-    /**
-    * Changes the classNames on the toggle and content containers to reflect the current highlighting
-    * @method _setHighlightClassName
-    * @private
-    */
-    _setHighlightClassName: function() {
-        var el = Dom.get('ygtvtableel' + this.index);
-        if (el) {
-            el.className = el.className.replace(/\bygtv-highlight\d\b/gi,'ygtv-highlight' + this.highlightState);
-        }
-    }
-    
-};
-
-YAHOO.augment(YAHOO.widget.Node, YAHOO.util.EventProvider);
-})();
-
-/**
- * A custom YAHOO.widget.Node that handles the unique nature of 
- * the virtual, presentationless root node.
- * @namespace YAHOO.widget
- * @class RootNode
- * @extends YAHOO.widget.Node
- * @param oTree {YAHOO.widget.TreeView} The tree instance this node belongs to
- * @constructor
- */
-YAHOO.widget.RootNode = function(oTree) {
-    // Initialize the node with null params.  The root node is a
-    // special case where the node has no presentation.  So we have
-    // to alter the standard properties a bit.
-    this.init(null, null, true);
-    
-    /*
-     * For the root node, we get the tree reference from as a param
-     * to the constructor instead of from the parent element.
-     */
-    this.tree = oTree;
-};
-
-YAHOO.extend(YAHOO.widget.RootNode, YAHOO.widget.Node, {
-    
-   /**
-     * The node type
-     * @property _type
-      * @type string
-     * @private
-     * @default "RootNode"
-     */
-    _type: "RootNode",
-    
-    // overrides YAHOO.widget.Node
-    getNodeHtml: function() { 
-        return ""; 
-    },
-
-    toString: function() { 
-        return this._type;
-    },
-
-    loadComplete: function() { 
-        this.tree.draw();
-    },
-    
-   /**
-     * Count of nodes in tree.  
-    * It overrides Nodes.getNodeCount because the root node should not be counted.
-     * @method getNodeCount
-     * @return {int} number of nodes in the tree
-     */
-    getNodeCount: function() {
-        for (var i = 0, count = 0;i< this.children.length;i++) {
-            count += this.children[i].getNodeCount();
-        }
-        return count;
-    },
-
-  /**
-     * Returns an object which could be used to build a tree out of this node and its children.
-     * It can be passed to the tree constructor to reproduce this node as a tree.
-     * Since the RootNode is automatically created by treeView, 
-     * its own definition is excluded from the returned node definition
-     * which only contains its children.
-     * @method getNodeDefinition
-     * @return {Object | false}  definition of the tree or false if any child node is defined as dynamic
-     */
-    getNodeDefinition: function() {
-        
-        for (var def, defs = [], i = 0; i < this.children.length;i++) {
-            def = this.children[i].getNodeDefinition();
-            if (def === false) { return false;}
-            defs.push(def);
-        }
-        return defs;
-    },
-
-    collapse: function() {},
-    expand: function() {},
-    getSiblings: function() { return null; },
-    focus: function () {}
-
-});
-
-(function () {
-    var Dom = YAHOO.util.Dom,
-        Lang = YAHOO.lang,
-        Event = YAHOO.util.Event;
-/**
- * The default node presentation.  The first parameter should be
- * either a string that will be used as the node's label, or an object
- * that has at least a string property called label.  By default,  clicking the
- * label will toggle the expanded/collapsed state of the node.  By
- * setting the href property of the instance, this behavior can be
- * changed so that the label will go to the specified href.
- * @namespace YAHOO.widget
- * @class TextNode
- * @extends YAHOO.widget.Node
- * @constructor
- * @param oData {object} a string or object containing the data that will
- * be used to render this node.
- * Providing a string is the same as providing an object with a single property named label.
- * All values in the oData will be used to set equally named properties in the node
- * as long as the node does have such properties, they are not undefined, private or functions.
- * All attributes are made available in noderef.data, which
- * can be used to store custom attributes.  TreeView.getNode(s)ByProperty
- * can be used to retrieve a node by one of the attributes.
- * @param oParent {YAHOO.widget.Node} this node's parent node
- * @param expanded {boolean} the initial expanded/collapsed state (deprecated; use oData.expanded) 
- */
-YAHOO.widget.TextNode = function(oData, oParent, expanded) {
-
-    if (oData) { 
-        if (Lang.isString(oData)) {
-            oData = { label: oData };
-        }
-        this.init(oData, oParent, expanded);
-        this.setUpLabel(oData);
-    }
-
-    this.logger     = new YAHOO.widget.LogWriter(this.toString());
-};
-
-YAHOO.extend(YAHOO.widget.TextNode, YAHOO.widget.Node, {
-    
-    /**
-     * The CSS class for the label href.  Defaults to ygtvlabel, but can be
-     * overridden to provide a custom presentation for a specific node.
-     * @property labelStyle
-     * @type string
-     */
-    labelStyle: "ygtvlabel",
-
-    /**
-     * The derived element id of the label for this node
-     * @property labelElId
-     * @type string
-     */
-    labelElId: null,
-
-    /**
-     * The text for the label.  It is assumed that the oData parameter will
-     * either be a string that will be used as the label, or an object that
-     * has a property called "label" that we will use.
-     * @property label
-     * @type string
-     */
-    label: null,
-
-    /**
-     * The text for the title (tooltip) for the label element
-     * @property title
-     * @type string
-     */
-    title: null,
-    
-    /**
-     * The href for the node's label.  If one is not specified, the href will
-     * be set so that it toggles the node.
-     * @property href
-     * @type string
-     */
-    href: null,
-
-    /**
-     * The label href target, defaults to current window
-     * @property target
-     * @type string
-     */
-    target: "_self",
-    
-    /**
-     * The node type
-     * @property _type
-     * @private
-     * @type string
-     * @default "TextNode"
-     */
-    _type: "TextNode",
-
-
-    /**
-     * Sets up the node label
-     * @method setUpLabel
-     * @param oData string containing the label, or an object with a label property
-     */
-    setUpLabel: function(oData) { 
-        
-        if (Lang.isString(oData)) {
-            oData = { 
-                label: oData 
-            };
-        } else {
-            if (oData.style) {
-                this.labelStyle = oData.style;
-            }
-        }
-
-        this.label = oData.label;
-
-        this.labelElId = "ygtvlabelel" + this.index;
-        
-    },
-
-    /**
-     * Returns the label element
-     * @for YAHOO.widget.TextNode
-     * @method getLabelEl
-     * @return {object} the element
-     */
-    getLabelEl: function() { 
-        return Dom.get(this.labelElId);
-    },
-
-    // overrides YAHOO.widget.Node
-    getContentHtml: function() { 
-        var sb = [];
-        sb[sb.length] = this.href?'<a':'<span';
-        sb[sb.length] = ' id="' + this.labelElId + '"';
-        sb[sb.length] = ' class="' + this.labelStyle  + '"';
-        if (this.href) {
-            sb[sb.length] = ' href="' + this.href + '"';
-            sb[sb.length] = ' target="' + this.target + '"';
-        } 
-        if (this.title) {
-            sb[sb.length] = ' title="' + this.title + '"';
-        }
-        sb[sb.length] = ' >';
-        sb[sb.length] = this.label;
-        sb[sb.length] = this.href?'</a>':'</span>';
-        return sb.join("");
-    },
-
-
-
-  /**
-     * Returns an object which could be used to build a tree out of this node and its children.
-     * It can be passed to the tree constructor to reproduce this node as a tree.
-     * It will return false if the node or any descendant loads dynamically, regardless of whether it is loaded or not.
-     * @method getNodeDefinition
-     * @return {Object | false}  definition of the tree or false if this node or any descendant is defined as dynamic
-     */
-    getNodeDefinition: function() {
-        var def = YAHOO.widget.TextNode.superclass.getNodeDefinition.call(this);
-        if (def === false) { return false; }
-
-        // Node specific properties
-        def.label = this.label;
-        if (this.labelStyle != 'ygtvlabel') { def.style = this.labelStyle; }
-        if (this.title) { def.title = this.title; }
-        if (this.href) { def.href = this.href; }
-        if (this.target != '_self') { def.target = this.target; }       
-
-        return def;
-    
-    },
-
-    toString: function() { 
-        return YAHOO.widget.TextNode.superclass.toString.call(this) + ": " + this.label;
-    },
-
-    // deprecated
-    onLabelClick: function() {
-        return false;
-    },
-    refresh: function() {
-        YAHOO.widget.TextNode.superclass.refresh.call(this);
-        var label = this.getLabelEl();
-        label.innerHTML = this.label;
-        if (label.tagName.toUpperCase() == 'A') {
-            label.href = this.href;
-            label.target = this.target;
-        }
-    }
-        
-    
-
-    
-});
-})();
-
-/**
- * A menu-specific implementation that differs from TextNode in that only 
- * one sibling can be expanded at a time.
- * @namespace YAHOO.widget
- * @class MenuNode
- * @extends YAHOO.widget.TextNode
- * @param oData {object} a string or object containing the data that will
- * be used to render this node.
- * Providing a string is the same as providing an object with a single property named label.
- * All values in the oData will be used to set equally named properties in the node
- * as long as the node does have such properties, they are not undefined, private or functions.
- * All attributes are made available in noderef.data, which
- * can be used to store custom attributes.  TreeView.getNode(s)ByProperty
- * can be used to retrieve a node by one of the attributes.
- * @param oParent {YAHOO.widget.Node} this node's parent node
- * @param expanded {boolean} the initial expanded/collapsed state (deprecated; use oData.expanded) 
- * @constructor
- */
-YAHOO.widget.MenuNode = function(oData, oParent, expanded) {
-    YAHOO.widget.MenuNode.superclass.constructor.call(this,oData,oParent,expanded);
-
-   /*
-     * Menus usually allow only one branch to be open at a time.
-     */
-    this.multiExpand = false;
-
-};
-
-YAHOO.extend(YAHOO.widget.MenuNode, YAHOO.widget.TextNode, {
-
-    /**
-     * The node type
-     * @property _type
-     * @private
-    * @default "MenuNode"
-     */
-    _type: "MenuNode"
-
-});
-
-(function () {
-    var Dom = YAHOO.util.Dom,
-        Lang = YAHOO.lang,
-        Event = YAHOO.util.Event;
-
-/**
- * This implementation takes either a string or object for the
- * oData argument.  If is it a string, it will use it for the display
- * of this node (and it can contain any html code).  If the parameter
- * is an object,it looks for a parameter called "html" that will be
- * used for this node's display.
- * @namespace YAHOO.widget
- * @class HTMLNode
- * @extends YAHOO.widget.Node
- * @constructor
- * @param oData {object} a string or object containing the data that will
- * be used to render this node.  
- * Providing a string is the same as providing an object with a single property named html.
- * All values in the oData will be used to set equally named properties in the node
- * as long as the node does have such properties, they are not undefined, private or functions.
- * All other attributes are made available in noderef.data, which
- * can be used to store custom attributes.  TreeView.getNode(s)ByProperty
- * can be used to retrieve a node by one of the attributes.
- * @param oParent {YAHOO.widget.Node} this node's parent node
- * @param expanded {boolean} the initial expanded/collapsed state (deprecated; use oData.expanded) 
- * @param hasIcon {boolean} specifies whether or not leaf nodes should
- * be rendered with or without a horizontal line line and/or toggle icon. If the icon
- * is not displayed, the content fills the space it would have occupied.
- * This option operates independently of the leaf node presentation logic
- * for dynamic nodes.
- * (deprecated; use oData.hasIcon) 
- */
-YAHOO.widget.HTMLNode = function(oData, oParent, expanded, hasIcon) {
-    if (oData) { 
-        this.init(oData, oParent, expanded);
-        this.initContent(oData, hasIcon);
-    }
-};
-
-YAHOO.extend(YAHOO.widget.HTMLNode, YAHOO.widget.Node, {
-
-    /**
-     * The CSS class for the html content container.  Defaults to ygtvhtml, but 
-     * can be overridden to provide a custom presentation for a specific node.
-     * @property contentStyle
-     * @type string
-     */
-    contentStyle: "ygtvhtml",
-
-
-    /**
-     * The HTML content to use for this node's display
-     * @property html
-     * @type string
-     */
-    html: null,
-    
-/**
-     * The node type
-     * @property _type
-     * @private
-     * @type string
-     * @default "HTMLNode"
-     */
-    _type: "HTMLNode",
-
-    /**
-     * Sets up the node label
-     * @property initContent
-     * @param oData {object} An html string or object containing an html property
-     * @param hasIcon {boolean} determines if the node will be rendered with an
-     * icon or not
-     */
-    initContent: function(oData, hasIcon) { 
-        this.setHtml(oData);
-        this.contentElId = "ygtvcontentel" + this.index;
-        if (!Lang.isUndefined(hasIcon)) { this.hasIcon  = hasIcon; }
-        
-        this.logger = new YAHOO.widget.LogWriter(this.toString());
-    },
-
-    /**
-     * Synchronizes the node.html, and the node's content
-     * @property setHtml
-     * @param o {object} An html string or object containing an html property
-     */
-    setHtml: function(o) {
-
-        this.html = (typeof o === "string") ? o : o.html;
-
-        var el = this.getContentEl();
-        if (el) {
-            el.innerHTML = this.html;
-        }
-
-    },
-
-    // overrides YAHOO.widget.Node
-    getContentHtml: function() { 
-        return this.html;
-    },
-    
-      /**
-     * Returns an object which could be used to build a tree out of this node and its children.
-     * It can be passed to the tree constructor to reproduce this node as a tree.
-     * It will return false if any node loads dynamically, regardless of whether it is loaded or not.
-     * @method getNodeDefinition
-     * @return {Object | false}  definition of the tree or false if any node is defined as dynamic
-     */
-    getNodeDefinition: function() {
-        var def = YAHOO.widget.HTMLNode.superclass.getNodeDefinition.call(this);
-        if (def === false) { return false; }
-        def.html = this.html;
-        return def;
-    
-    }
-});
-})();
-
-(function () {
-    var Dom = YAHOO.util.Dom,
-        Lang = YAHOO.lang,
-        Event = YAHOO.util.Event,
-        Calendar = YAHOO.widget.Calendar;
-        
-/**
- * A Date-specific implementation that differs from TextNode in that it uses 
- * YAHOO.widget.Calendar as an in-line editor, if available
- * If Calendar is not available, it behaves as a plain TextNode.
- * @namespace YAHOO.widget
- * @class DateNode
- * @extends YAHOO.widget.TextNode
- * @param oData {object} a string or object containing the data that will
- * be used to render this node.
- * Providing a string is the same as providing an object with a single property named label.
- * All values in the oData will be used to set equally named properties in the node
- * as long as the node does have such properties, they are not undefined, private nor functions.
- * All attributes are made available in noderef.data, which
- * can be used to store custom attributes.  TreeView.getNode(s)ByProperty
- * can be used to retrieve a node by one of the attributes.
- * @param oParent {YAHOO.widget.Node} this node's parent node
- * @param expanded {boolean} the initial expanded/collapsed state (deprecated; use oData.expanded) 
- * @constructor
- */
-YAHOO.widget.DateNode = function(oData, oParent, expanded) {
-    YAHOO.widget.DateNode.superclass.constructor.call(this,oData, oParent, expanded);
-};
-
-YAHOO.extend(YAHOO.widget.DateNode, YAHOO.widget.TextNode, {
-
-    /**
-     * The node type
-     * @property _type
-     * @type string
-     * @private
-     * @default  "DateNode"
-     */
-    _type: "DateNode",
-    
-    /**
-    * Configuration object for the Calendar editor, if used.
-    * See <a href="http://developer.yahoo.com/yui/calendar/#internationalization">http://developer.yahoo.com/yui/calendar/#internationalization</a>
-    * @property calendarConfig
-    */
-    calendarConfig: null,
-    
-    
-    
-    /** 
-     *  If YAHOO.widget.Calendar is available, it will pop up a Calendar to enter a new date.  Otherwise, it falls back to a plain &lt;input&gt;  textbox
-     * @method fillEditorContainer
-     * @param editorData {YAHOO.widget.TreeView.editorData}  a shortcut to the static object holding editing information
-     * @return void
-     */
-    fillEditorContainer: function (editorData) {
-    
-        var cal, container = editorData.inputContainer;
-        
-        if (Lang.isUndefined(Calendar)) {
-            Dom.replaceClass(editorData.editorPanel,'ygtv-edit-DateNode','ygtv-edit-TextNode');
-            YAHOO.widget.DateNode.superclass.fillEditorContainer.call(this, editorData);
-            return;
-        }
-            
-        if (editorData.nodeType != this._type) {
-            editorData.nodeType = this._type;
-            editorData.saveOnEnter = false;
-            
-            editorData.node.destroyEditorContents(editorData);
-
-            editorData.inputObject = cal = new Calendar(container.appendChild(document.createElement('div')));
-            if (this.calendarConfig) { 
-                cal.cfg.applyConfig(this.calendarConfig,true); 
-                cal.cfg.fireQueue();
-            }
-            cal.selectEvent.subscribe(function () {
-                this.tree._closeEditor(true);
-            },this,true);
-        } else {
-            cal = editorData.inputObject;
-        }
-
-               editorData.oldValue = this.label;
-        cal.cfg.setProperty("selected",this.label, false); 
-
-        var delim = cal.cfg.getProperty('DATE_FIELD_DELIMITER');
-        var pageDate = this.label.split(delim);
-        cal.cfg.setProperty('pagedate',pageDate[cal.cfg.getProperty('MDY_MONTH_POSITION') -1] + delim + pageDate[cal.cfg.getProperty('MDY_YEAR_POSITION') -1]);
-        cal.cfg.fireQueue();
-
-        cal.render();
-        cal.oDomContainer.focus();
-    },
-     /**
-    * Returns the value from the input element.
-    * Overrides Node.getEditorValue.
-    * @method getEditorValue
-     * @param editorData {YAHOO.widget.TreeView.editorData}  a shortcut to the static object holding editing information
-     * @return {string} date entered
-     */
-
-       getEditorValue: function (editorData) {
-        if (Lang.isUndefined(Calendar)) {
-            return editorData.inputElement.value;
-        } else {
-            var cal = editorData.inputObject,
-                date = cal.getSelectedDates()[0],
-                dd = [];
-                
-            dd[cal.cfg.getProperty('MDY_DAY_POSITION') -1] = date.getDate();
-            dd[cal.cfg.getProperty('MDY_MONTH_POSITION') -1] = date.getMonth() + 1;
-            dd[cal.cfg.getProperty('MDY_YEAR_POSITION') -1] = date.getFullYear();
-            return dd.join(cal.cfg.getProperty('DATE_FIELD_DELIMITER'));
-        }
-       },
-
-       /**
-    * Finally displays the newly entered date in the tree.
-    * Overrides Node.displayEditedValue.
-    * @method displayEditedValue
-     *  @param value {string} date to be displayed and stored in the node
-     * @param editorData {YAHOO.widget.TreeView.editorData}  a shortcut to the static object holding editing information
-     */
-       displayEditedValue: function (value,editorData) {
-               var node = editorData.node;
-               node.label = value;
-               node.getLabelEl().innerHTML = value;
-       },
-  /**
-     * Returns an object which could be used to build a tree out of this node and its children.
-     * It can be passed to the tree constructor to reproduce this node as a tree.
-     * It will return false if the node or any descendant loads dynamically, regardless of whether it is loaded or not.
-     * @method getNodeDefinition
-     * @return {Object | false}  definition of the node or false if this node or any descendant is defined as dynamic
-     */ 
-    getNodeDefinition: function() {
-        var def = YAHOO.widget.DateNode.superclass.getNodeDefinition.call(this);
-        if (def === false) { return false; }
-        if (this.calendarConfig) { def.calendarConfig = this.calendarConfig; }
-        return def;
-    }
-
-
-});
-})();
-
-(function () {
-    var Dom = YAHOO.util.Dom,
-        Lang = YAHOO.lang, 
-        Event = YAHOO.util.Event,
-        TV = YAHOO.widget.TreeView,
-        TVproto = TV.prototype;
-
-    /**
-     * An object to store information used for in-line editing
-     * for all Nodes of all TreeViews. It contains:
-     * <ul>
-    * <li>active {boolean}, whether there is an active cell editor </li>
-    * <li>whoHasIt {YAHOO.widget.TreeView} TreeView instance that is currently using the editor</li>
-    * <li>nodeType {string} value of static Node._type property, allows reuse of input element if node is of the same type.</li>
-    * <li>editorPanel {HTMLelement (&lt;div&gt;)} element holding the in-line editor</li>
-    * <li>inputContainer {HTMLelement (&lt;div&gt;)} element which will hold the type-specific input element(s) to be filled by the fillEditorContainer method</li>
-    * <li>buttonsContainer {HTMLelement (&lt;div&gt;)} element which holds the &lt;button&gt; elements for Ok/Cancel.  If you don't want any of the buttons, hide it via CSS styles, don't destroy it</li>
-    * <li>node {YAHOO.widget.Node} reference to the Node being edited</li>
-    * <li>saveOnEnter {boolean}, whether the Enter key should be accepted as a Save command (Esc. is always taken as Cancel), disable for multi-line input elements </li>
-    * <li>oldValue {any}  value before editing</li>
-    * </ul>
-    *  Editors are free to use this object to store additional data.
-     * @property editorData
-     * @static
-     * @for YAHOO.widget.TreeView
-     */
-    TV.editorData = {
-        active:false,
-        whoHasIt:null, // which TreeView has it
-        nodeType:null,
-        editorPanel:null,
-        inputContainer:null,
-        buttonsContainer:null,
-        node:null, // which Node is being edited
-        saveOnEnter:true,
-               oldValue:undefined
-        // Each node type is free to add its own properties to this as it sees fit.
-    };
-    
-    /**
-    * Validator function for edited data, called from the TreeView instance scope, 
-    * receives the arguments (newValue, oldValue, nodeInstance) 
-    * and returns either the validated (or type-converted) value or undefined. 
-    * An undefined return will prevent the editor from closing
-    * @property validator
-    * @type function
-    * @default null
-     * @for YAHOO.widget.TreeView
-     */
-    TVproto.validator = null;
-    
-    /**
-    * Entry point for initializing the editing plug-in.  
-    * TreeView will call this method on initializing if it exists
-    * @method _initEditor
-     * @for YAHOO.widget.TreeView
-     * @private
-    */
-
-       TVproto._initEditor = function () {
-               /** 
-               * Fires when the user clicks on the ok button of a node editor
-               * @event editorSaveEvent 
-               * @type CustomEvent 
-               * @param oArgs.newValue {mixed} the new value just entered 
-               * @param oArgs.oldValue {mixed} the value originally in the tree 
-               * @param oArgs.node {YAHOO.widget.Node} the node that has the focus 
-               * @for YAHOO.widget.TreeView
-               */ 
-               this.createEvent("editorSaveEvent", this); 
-               
-               /** 
-               * Fires when the user clicks on the cancel button of a node editor
-               * @event editorCancelEvent 
-               * @type CustomEvent 
-               * @param {YAHOO.widget.Node} node the node that has the focus 
-               * @for YAHOO.widget.TreeView
-               */ 
-               this.createEvent("editorCancelEvent", this); 
-
-       };
-
-    /**
-    * Entry point of the editing plug-in.  
-    * TreeView will call this method if it exists when a node label is clicked
-    * @method _nodeEditing
-    * @param node {YAHOO.widget.Node} the node to be edited
-    * @return {Boolean} true to indicate that the node is editable and prevent any further bubbling of the click.
-     * @for YAHOO.widget.TreeView
-     * @private
-    */
-       
-    
-    
-    TVproto._nodeEditing = function (node) {
-        if (node.fillEditorContainer && node.editable) {
-            var ed, topLeft, buttons, button, editorData = TV.editorData;
-            editorData.active = true;
-            editorData.whoHasIt = this;
-            if (!editorData.nodeType) {
-                editorData.editorPanel = ed = document.body.appendChild(document.createElement('div'));
-                Dom.addClass(ed,'ygtv-label-editor');
-
-                buttons = editorData.buttonsContainer = ed.appendChild(document.createElement('div'));
-                Dom.addClass(buttons,'ygtv-button-container');
-                button = buttons.appendChild(document.createElement('button'));
-                Dom.addClass(button,'ygtvok');
-                button.innerHTML = ' ';
-                button = buttons.appendChild(document.createElement('button'));
-                Dom.addClass(button,'ygtvcancel');
-                button.innerHTML = ' ';
-                Event.on(buttons, 'click', function (ev) {
-                    this.logger.log('click on editor');
-                    var target = Event.getTarget(ev);
-                    var node = TV.editorData.node;
-                    if (Dom.hasClass(target,'ygtvok')) {
-                        node.logger.log('ygtvok');
-                        Event.stopEvent(ev);
-                        this._closeEditor(true);
-                    }
-                    if (Dom.hasClass(target,'ygtvcancel')) {
-                        node.logger.log('ygtvcancel');
-                        Event.stopEvent(ev);
-                        this._closeEditor(false);
-                    }
-                }, this, true);
-
-                editorData.inputContainer = ed.appendChild(document.createElement('div'));
-                Dom.addClass(editorData.inputContainer,'ygtv-input');
-                
-                Event.on(ed,'keydown',function (ev) {
-                    var editorData = TV.editorData,
-                        KEY = YAHOO.util.KeyListener.KEY;
-                    switch (ev.keyCode) {
-                        case KEY.ENTER:
-                            this.logger.log('ENTER');
-                            Event.stopEvent(ev);
-                            if (editorData.saveOnEnter) { 
-                                this._closeEditor(true);
-                            }
-                            break;
-                        case KEY.ESCAPE:
-                            this.logger.log('ESC');
-                            Event.stopEvent(ev);
-                            this._closeEditor(false);
-                            break;
-                    }
-                },this,true);
-
-
-                
-            } else {
-                ed = editorData.editorPanel;
-            }
-            editorData.node = node;
-            if (editorData.nodeType) {
-                Dom.removeClass(ed,'ygtv-edit-' + editorData.nodeType);
-            }
-            Dom.addClass(ed,' ygtv-edit-' + node._type);
-            topLeft = Dom.getXY(node.getContentEl());
-            Dom.setStyle(ed,'left',topLeft[0] + 'px');
-            Dom.setStyle(ed,'top',topLeft[1] + 'px');
-            Dom.setStyle(ed,'display','block');
-            ed.focus();
-            node.fillEditorContainer(editorData);
-
-            return true;  // If inline editor available, don't do anything else.
-        }
-    };
-    
-    /**
-    * Method to be associated with an event (clickEvent, dblClickEvent or enterKeyPressed) to pop up the contents editor
-    *  It calls the corresponding node editNode method.
-    * @method onEventEditNode
-    * @param oArgs {object} Object passed as arguments to TreeView event listeners
-     * @for YAHOO.widget.TreeView
-    */
-
-    TVproto.onEventEditNode = function (oArgs) {
-        if (oArgs instanceof YAHOO.widget.Node) {
-            oArgs.editNode();
-        } else if (oArgs.node instanceof YAHOO.widget.Node) {
-            oArgs.node.editNode();
-        }
-    };
-    
-    /**
-    * Method to be called when the inline editing is finished and the editor is to be closed
-    * @method _closeEditor
-    * @param save {Boolean} true if the edited value is to be saved, false if discarded
-    * @private
-     * @for YAHOO.widget.TreeView
-    */
-    
-    TVproto._closeEditor = function (save) {
-        var ed = TV.editorData, 
-            node = ed.node,
-            close = true;
-        if (save) { 
-            close = ed.node.saveEditorValue(ed) !== false; 
-        } else {
-                       this.fireEvent( 'editorCancelEvent', node); 
-               }
-                       
-        if (close) {
-            Dom.setStyle(ed.editorPanel,'display','none');  
-            ed.active = false;
-            node.focus();
-        }
-    };
-    
-    /**
-    *  Entry point for TreeView's destroy method to destroy whatever the editing plug-in has created
-    * @method _destroyEditor
-    * @private
-     * @for YAHOO.widget.TreeView
-    */
-    TVproto._destroyEditor = function() {
-        var ed = TV.editorData;
-        if (ed && ed.nodeType && (!ed.active || ed.whoHasIt === this)) {
-            Event.removeListener(ed.editorPanel,'keydown');
-            Event.removeListener(ed.buttonContainer,'click');
-            ed.node.destroyEditorContents(ed);
-            document.body.removeChild(ed.editorPanel);
-            ed.nodeType = ed.editorPanel = ed.inputContainer = ed.buttonsContainer = ed.whoHasIt = ed.node = null;
-            ed.active = false;
-        }
-    };
-    
-    var Nproto = YAHOO.widget.Node.prototype;
-    
-    /**
-    * Signals if the label is editable.  (Ignored on TextNodes with href set.)
-    * @property editable
-    * @type boolean
-         * @for YAHOO.widget.Node
-    */
-    Nproto.editable = false;
-    
-    /**
-    * pops up the contents editor, if there is one and the node is declared editable
-    * @method editNode
-     * @for YAHOO.widget.Node
-    */
-    
-    Nproto.editNode = function () {
-        this.tree._nodeEditing(this);
-    };
-    
-    
-
-
-    /** Placeholder for a function that should provide the inline node label editor.
-     *   Leaving it set to null will indicate that this node type is not editable.
-     * It should be overridden by nodes that provide inline editing.
-     *  The Node-specific editing element (input box, textarea or whatever) should be inserted into editorData.inputContainer.
-     * @method fillEditorContainer
-     * @param editorData {YAHOO.widget.TreeView.editorData}  a shortcut to the static object holding editing information
-     * @return void
-     * @for YAHOO.widget.Node
-     */
-    Nproto.fillEditorContainer = null;
-
-    
-    /**
-    * Node-specific destroy function to empty the contents of the inline editor panel.
-    * This function is the worst case alternative that will purge all possible events and remove the editor contents.
-    * Method Event.purgeElement is somewhat costly so if it can be replaced by specifc Event.removeListeners, it is better to do so.
-    * @method destroyEditorContents
-     * @param editorData {YAHOO.widget.TreeView.editorData}  a shortcut to the static object holding editing information
-     * @for YAHOO.widget.Node
-     */
-    Nproto.destroyEditorContents = function (editorData) {
-        // In the worst case, if the input editor (such as the Calendar) has no destroy method
-        // we can only try to remove all possible events on it.
-        Event.purgeElement(editorData.inputContainer,true);
-        editorData.inputContainer.innerHTML = '';
-    };
-
-    /**
-    * Saves the value entered into the editor.
-    * @method saveEditorValue
-     * @param editorData {YAHOO.widget.TreeView.editorData}  a shortcut to the static object holding editing information
-     * @return {false or none} a return of exactly false will prevent the editor from closing
-     * @for YAHOO.widget.Node
-     */
-    Nproto.saveEditorValue = function (editorData) {
-        var node = editorData.node, 
-                       value,
-            validator = node.tree.validator;
-                       
-               value = this.getEditorValue(editorData);
-        
-        if (Lang.isFunction(validator)) {
-            value = validator(value,editorData.oldValue,node);
-            if (Lang.isUndefined(value)) { 
-                               return false; 
-                       }
-        }
-
-               if (this.tree.fireEvent( 'editorSaveEvent', {
-                       newValue:value,
-                       oldValue:editorData.oldValue,
-                       node:node
-               }) !== false) {
-                       this.displayEditedValue(value,editorData);
-               }
-       };
-       
-       
-    /**
-    * Returns the value(s) from the input element(s) .
-    * Should be overridden by each node type.
-    * @method getEditorValue
-     * @param editorData {YAHOO.widget.TreeView.editorData}  a shortcut to the static object holding editing information
-     * @return {any} value entered
-     * @for YAHOO.widget.Node
-     */
-
-        Nproto.getEditorValue = function (editorData) {
-       };
-
-       /**
-    * Finally displays the newly edited value(s) in the tree.
-    * Should be overridden by each node type.
-    * @method displayEditedValue
-     *  @param value {any} value to be displayed and stored in the node
-     * @param editorData {YAHOO.widget.TreeView.editorData}  a shortcut to the static object holding editing information
-     * @for YAHOO.widget.Node
-     */
-       Nproto.displayEditedValue = function (value,editorData) {
-       };
-    
-    var TNproto = YAHOO.widget.TextNode.prototype;
-    
-
-
-    /** 
-     *  Places an &lt;input&gt;  textbox in the input container and loads the label text into it.
-     * @method fillEditorContainer
-     * @param editorData {YAHOO.widget.TreeView.editorData}  a shortcut to the static object holding editing information
-     * @return void
-     * @for YAHOO.widget.TextNode
-     */
-    TNproto.fillEditorContainer = function (editorData) {
-    
-        var input;
-        // If last node edited is not of the same type as this one, delete it and fill it with our editor
-        if (editorData.nodeType != this._type) {
-            editorData.nodeType = this._type;
-            editorData.saveOnEnter = true;
-            editorData.node.destroyEditorContents(editorData);
-
-            editorData.inputElement = input = editorData.inputContainer.appendChild(document.createElement('input'));
-            
-        } else {
-            // if the last node edited was of the same time, reuse the input element.
-            input = editorData.inputElement;
-        }
-               editorData.oldValue = this.label;
-        input.value = this.label;
-        input.focus();
-        input.select();
-    };
-    
-    /**
-    * Returns the value from the input element.
-    * Overrides Node.getEditorValue.
-    * @method getEditorValue
-     * @param editorData {YAHOO.widget.TreeView.editorData}  a shortcut to the static object holding editing information
-     * @return {string} value entered
-     * @for YAHOO.widget.TextNode
-     */
-
-    TNproto.getEditorValue = function (editorData) {
-        return editorData.inputElement.value;
-       };
-
-       /**
-    * Finally displays the newly edited value in the tree.
-    * Overrides Node.displayEditedValue.
-    * @method displayEditedValue
-     *  @param value {string} value to be displayed and stored in the node
-     * @param editorData {YAHOO.widget.TreeView.editorData}  a shortcut to the static object holding editing information
-     * @for YAHOO.widget.TextNode
-     */
-       TNproto.displayEditedValue = function (value,editorData) {
-               var node = editorData.node;
-               node.label = value;
-               node.getLabelEl().innerHTML = value;
-       };
-
-    /**
-    * Destroys the contents of the inline editor panel.
-    * Overrides Node.destroyEditorContent.
-    * Since we didn't set any event listeners on this inline editor, it is more efficient to avoid the generic method in Node.
-    * @method destroyEditorContents
-     * @param editorData {YAHOO.widget.TreeView.editorData}  a shortcut to the static object holding editing information
-     * @for YAHOO.widget.TextNode
-     */
-    TNproto.destroyEditorContents = function (editorData) {
-        editorData.inputContainer.innerHTML = '';
-    };
-})();
-
-/**
- * A static factory class for tree view expand/collapse animations
- * @class TVAnim
- * @static
- */
-YAHOO.widget.TVAnim = function() {
-    return {
-        /**
-         * Constant for the fade in animation
-         * @property FADE_IN
-         * @type string
-         * @static
-         */
-        FADE_IN: "TVFadeIn",
-
-        /**
-         * Constant for the fade out animation
-         * @property FADE_OUT
-         * @type string
-         * @static
-         */
-        FADE_OUT: "TVFadeOut",
-
-        /**
-         * Returns a ygAnim instance of the given type
-         * @method getAnim
-         * @param type {string} the type of animation
-         * @param el {HTMLElement} the element to element (probably the children div)
-         * @param callback {function} function to invoke when the animation is done.
-         * @return {YAHOO.util.Animation} the animation instance
-         * @static
-         */
-        getAnim: function(type, el, callback) {
-            if (YAHOO.widget[type]) {
-                return new YAHOO.widget[type](el, callback);
-            } else {
-                return null;
-            }
-        },
-
-        /**
-         * Returns true if the specified animation class is available
-         * @method isValid
-         * @param type {string} the type of animation
-         * @return {boolean} true if valid, false if not
-         * @static
-         */
-        isValid: function(type) {
-            return (YAHOO.widget[type]);
-        }
-    };
-} ();
-
-/**
- * A 1/2 second fade-in animation.
- * @class TVFadeIn
- * @constructor
- * @param el {HTMLElement} the element to animate
- * @param callback {function} function to invoke when the animation is finished
- */
-YAHOO.widget.TVFadeIn = function(el, callback) {
-    /**
-     * The element to animate
-     * @property el
-     * @type HTMLElement
-     */
-    this.el = el;
-
-    /**
-     * the callback to invoke when the animation is complete
-     * @property callback
-     * @type function
-     */
-    this.callback = callback;
-
-    this.logger = new YAHOO.widget.LogWriter(this.toString());
-};
-
-YAHOO.widget.TVFadeIn.prototype = {
-    /**
-     * Performs the animation
-     * @method animate
-     */
-    animate: function() {
-        var tvanim = this;
-
-        var s = this.el.style;
-        s.opacity = 0.1;
-        s.filter = "alpha(opacity=10)";
-        s.display = "";
-
-        var dur = 0.4; 
-        var a = new YAHOO.util.Anim(this.el, {opacity: {from: 0.1, to: 1, unit:""}}, dur);
-        a.onComplete.subscribe( function() { tvanim.onComplete(); } );
-        a.animate();
-    },
-
-    /**
-     * Clean up and invoke callback
-     * @method onComplete
-     */
-    onComplete: function() {
-        this.callback();
-    },
-
-    /**
-     * toString
-     * @method toString
-     * @return {string} the string representation of the instance
-     */
-    toString: function() {
-        return "TVFadeIn";
-    }
-};
-
-/**
- * A 1/2 second fade out animation.
- * @class TVFadeOut
- * @constructor
- * @param el {HTMLElement} the element to animate
- * @param callback {Function} function to invoke when the animation is finished
- */
-YAHOO.widget.TVFadeOut = function(el, callback) {
-    /**
-     * The element to animate
-     * @property el
-     * @type HTMLElement
-     */
-    this.el = el;
-
-    /**
-     * the callback to invoke when the animation is complete
-     * @property callback
-     * @type function
-     */
-    this.callback = callback;
-
-    this.logger = new YAHOO.widget.LogWriter(this.toString());
-};
-
-YAHOO.widget.TVFadeOut.prototype = {
-    /**
-     * Performs the animation
-     * @method animate
-     */
-    animate: function() {
-        var tvanim = this;
-        var dur = 0.4;
-        var a = new YAHOO.util.Anim(this.el, {opacity: {from: 1, to: 0.1, unit:""}}, dur);
-        a.onComplete.subscribe( function() { tvanim.onComplete(); } );
-        a.animate();
-    },
-
-    /**
-     * Clean up and invoke callback
-     * @method onComplete
-     */
-    onComplete: function() {
-        var s = this.el.style;
-        s.display = "none";
-        s.opacity = 1;
-        s.filter = "alpha(opacity=100)";
-        this.callback();
-    },
-
-    /**
-     * toString
-     * @method toString
-     * @return {string} the string representation of the instance
-     */
-    toString: function() {
-        return "TVFadeOut";
-    }
-};
-
-YAHOO.register("treeview", YAHOO.widget.TreeView, {version: "2.8.0r4", build: "2449"});
diff --git a/koha-tmpl/intranet-tmpl/prog/en/lib/yui/treeview/treeview-min.js b/koha-tmpl/intranet-tmpl/prog/en/lib/yui/treeview/treeview-min.js
deleted file mode 100644 (file)
index ade4a0c..0000000
+++ /dev/null
@@ -1,12 +0,0 @@
-/*
-Copyright (c) 2009, Yahoo! Inc. All rights reserved.
-Code licensed under the BSD License:
-http://developer.yahoo.net/yui/license.txt
-version: 2.8.0r4
-*/
-(function(){var D=YAHOO.util.Dom,B=YAHOO.util.Event,F=YAHOO.lang,E=YAHOO.widget;YAHOO.widget.TreeView=function(H,G){if(H){this.init(H);}if(G){this.buildTreeFromObject(G);}else{if(F.trim(this._el.innerHTML)){this.buildTreeFromMarkup(H);}}};var C=E.TreeView;C.prototype={id:null,_el:null,_nodes:null,locked:false,_expandAnim:null,_collapseAnim:null,_animCount:0,maxAnim:2,_hasDblClickSubscriber:false,_dblClickTimer:null,currentFocus:null,singleNodeHighlight:false,_currentlyHighlighted:null,setExpandAnim:function(G){this._expandAnim=(E.TVAnim.isValid(G))?G:null;},setCollapseAnim:function(G){this._collapseAnim=(E.TVAnim.isValid(G))?G:null;},animateExpand:function(I,J){if(this._expandAnim&&this._animCount<this.maxAnim){var G=this;var H=E.TVAnim.getAnim(this._expandAnim,I,function(){G.expandComplete(J);});if(H){++this._animCount;this.fireEvent("animStart",{"node":J,"type":"expand"});H.animate();}return true;}return false;},animateCollapse:function(I,J){if(this._collapseAnim&&this._animCount<this.maxAnim){var G=this;var H=E.TVAnim.getAnim(this._collapseAnim,I,function(){G.collapseComplete(J);});if(H){++this._animCount;this.fireEvent("animStart",{"node":J,"type":"collapse"});H.animate();}return true;}return false;},expandComplete:function(G){--this._animCount;this.fireEvent("animComplete",{"node":G,"type":"expand"});},collapseComplete:function(G){--this._animCount;this.fireEvent("animComplete",{"node":G,"type":"collapse"});},init:function(I){this._el=D.get(I);this.id=D.generateId(this._el,"yui-tv-auto-id-");this.createEvent("animStart",this);this.createEvent("animComplete",this);this.createEvent("collapse",this);this.createEvent("collapseComplete",this);this.createEvent("expand",this);this.createEvent("expandComplete",this);this.createEvent("enterKeyPressed",this);this.createEvent("clickEvent",this);this.createEvent("focusChanged",this);var G=this;this.createEvent("dblClickEvent",{scope:this,onSubscribeCallback:function(){G._hasDblClickSubscriber=true;}});this.createEvent("labelClick",this);this.createEvent("highlightEvent",this);this._nodes=[];C.trees[this.id]=this;this.root=new E.RootNode(this);var H=E.LogWriter;if(this._initEditor){this._initEditor();}},buildTreeFromObject:function(G){var H=function(P,M){var L,Q,K,J,O,I,N;for(L=0;L<M.length;L++){Q=M[L];if(F.isString(Q)){K=new E.TextNode(Q,P);}else{if(F.isObject(Q)){J=Q.children;delete Q.children;O=Q.type||"text";delete Q.type;switch(F.isString(O)&&O.toLowerCase()){case"text":K=new E.TextNode(Q,P);break;case"menu":K=new E.MenuNode(Q,P);break;case"html":K=new E.HTMLNode(Q,P);break;default:if(F.isString(O)){I=E[O];}else{I=O;}if(F.isObject(I)){for(N=I;N&&N!==E.Node;N=N.superclass.constructor){}if(N){K=new I(Q,P);}else{}}else{}}if(J){H(K,J);}}else{}}}};if(!F.isArray(G)){G=[G];}H(this.root,G);},buildTreeFromMarkup:function(I){var H=function(J){var N,Q,M=[],L={},K,O;for(N=D.getFirstChild(J);N;N=D.getNextSibling(N)){switch(N.tagName.toUpperCase()){case"LI":K="";L={expanded:D.hasClass(N,"expanded"),title:N.title||N.alt||null,className:F.trim(N.className.replace(/\bexpanded\b/,""))||null};Q=N.firstChild;if(Q.nodeType==3){K=F.trim(Q.nodeValue.replace(/[\n\t\r]*/g,""));if(K){L.type="text";L.label=K;}else{Q=D.getNextSibling(Q);}}if(!K){if(Q.tagName.toUpperCase()=="A"){L.type="text";L.label=Q.innerHTML;L.href=Q.href;L.target=Q.target;L.title=Q.title||Q.alt||L.title;}else{L.type="html";var P=document.createElement("div");P.appendChild(Q.cloneNode(true));L.html=P.innerHTML;L.hasIcon=true;}}Q=D.getNextSibling(Q);switch(Q&&Q.tagName.toUpperCase()){case"UL":case"OL":L.children=H(Q);break;}if(YAHOO.lang.JSON){O=N.getAttribute("yuiConfig");if(O){O=YAHOO.lang.JSON.parse(O);L=YAHOO.lang.merge(L,O);}}M.push(L);break;case"UL":case"OL":L={type:"text",label:"",children:H(Q)};M.push(L);break;}}return M;};var G=D.getChildrenBy(D.get(I),function(K){var J=K.tagName.toUpperCase();return J=="UL"||J=="OL";});if(G.length){this.buildTreeFromObject(H(G[0]));}else{}},_getEventTargetTdEl:function(H){var I=B.getTarget(H);while(I&&!(I.tagName.toUpperCase()=="TD"&&D.hasClass(I.parentNode,"ygtvrow"))){I=D.getAncestorByTagName(I,"td");}if(F.isNull(I)){return null;}if(/\bygtv(blank)?depthcell/.test(I.className)){return null;}if(I.id){var G=I.id.match(/\bygtv([^\d]*)(.*)/);if(G&&G[2]&&this._nodes[G[2]]){return I;}}return null;},_onClickEvent:function(J){var H=this,L=this._getEventTargetTdEl(J),I,K,G=function(M){I.focus();if(M||!I.href){I.toggle();try{B.preventDefault(J);}catch(N){}}};if(!L){return;}I=this.getNodeByElement(L);if(!I){return;}K=B.getTarget(J);if(D.hasClass(K,I.labelStyle)||D.getAncestorByClassName(K,I.labelStyle)){this.fireEvent("labelClick",I);}if(/\bygtv[tl][mp]h?h?/.test(L.className)){G(true);}else{if(this._dblClickTimer){window.clearTimeout(this._dblClickTimer);this._dblClickTimer=null;}else{if(this._hasDblClickSubscriber){this._dblClickTimer=window.setTimeout(function(){H._dblClickTimer=null;if(H.fireEvent("clickEvent",{event:J,node:I})!==false){G();}},200);}else{if(H.fireEvent("clickEvent",{event:J,node:I})!==false){G();}}}}},_onDblClickEvent:function(G){if(!this._hasDblClickSubscriber){return;}var H=this._getEventTargetTdEl(G);if(!H){return;}if(!(/\bygtv[tl][mp]h?h?/.test(H.className))){this.fireEvent("dblClickEvent",{event:G,node:this.getNodeByElement(H)});if(this._dblClickTimer){window.clearTimeout(this._dblClickTimer);this._dblClickTimer=null;}}},_onMouseOverEvent:function(G){var H;if((H=this._getEventTargetTdEl(G))&&(H=this.getNodeByElement(H))&&(H=H.getToggleEl())){H.className=H.className.replace(/\bygtv([lt])([mp])\b/gi,"ygtv$1$2h");}},_onMouseOutEvent:function(G){var H;if((H=this._getEventTargetTdEl(G))&&(H=this.getNodeByElement(H))&&(H=H.getToggleEl())){H.className=H.className.replace(/\bygtv([lt])([mp])h\b/gi,"ygtv$1$2");}},_onKeyDownEvent:function(L){var N=B.getTarget(L),K=this.getNodeByElement(N),J=K,G=YAHOO.util.KeyListener.KEY;switch(L.keyCode){case G.UP:do{if(J.previousSibling){J=J.previousSibling;}else{J=J.parent;}}while(J&&!J._canHaveFocus());if(J){J.focus();
-}B.preventDefault(L);break;case G.DOWN:do{if(J.nextSibling){J=J.nextSibling;}else{J.expand();J=(J.children.length||null)&&J.children[0];}}while(J&&!J._canHaveFocus);if(J){J.focus();}B.preventDefault(L);break;case G.LEFT:do{if(J.parent){J=J.parent;}else{J=J.previousSibling;}}while(J&&!J._canHaveFocus());if(J){J.focus();}B.preventDefault(L);break;case G.RIGHT:var I=this,M,H=function(O){I.unsubscribe("expandComplete",H);M(O);};M=function(O){do{if(O.isDynamic()&&!O.childrenRendered){I.subscribe("expandComplete",H);O.expand();O=null;break;}else{O.expand();if(O.children.length){O=O.children[0];}else{O=O.nextSibling;}}}while(O&&!O._canHaveFocus());if(O){O.focus();}};M(J);B.preventDefault(L);break;case G.ENTER:if(K.href){if(K.target){window.open(K.href,K.target);}else{window.location(K.href);}}else{K.toggle();}this.fireEvent("enterKeyPressed",K);B.preventDefault(L);break;case G.HOME:J=this.getRoot();if(J.children.length){J=J.children[0];}if(J._canHaveFocus()){J.focus();}B.preventDefault(L);break;case G.END:J=J.parent.children;J=J[J.length-1];if(J._canHaveFocus()){J.focus();}B.preventDefault(L);break;case 107:if(L.shiftKey){K.parent.expandAll();}else{K.expand();}break;case 109:if(L.shiftKey){K.parent.collapseAll();}else{K.collapse();}break;default:break;}},render:function(){var G=this.root.getHtml(),H=this.getEl();H.innerHTML=G;if(!this._hasEvents){B.on(H,"click",this._onClickEvent,this,true);B.on(H,"dblclick",this._onDblClickEvent,this,true);B.on(H,"mouseover",this._onMouseOverEvent,this,true);B.on(H,"mouseout",this._onMouseOutEvent,this,true);B.on(H,"keydown",this._onKeyDownEvent,this,true);}this._hasEvents=true;},getEl:function(){if(!this._el){this._el=D.get(this.id);}return this._el;},regNode:function(G){this._nodes[G.index]=G;},getRoot:function(){return this.root;},setDynamicLoad:function(G,H){this.root.setDynamicLoad(G,H);},expandAll:function(){if(!this.locked){this.root.expandAll();}},collapseAll:function(){if(!this.locked){this.root.collapseAll();}},getNodeByIndex:function(H){var G=this._nodes[H];return(G)?G:null;},getNodeByProperty:function(I,H){for(var G in this._nodes){if(this._nodes.hasOwnProperty(G)){var J=this._nodes[G];if((I in J&&J[I]==H)||(J.data&&H==J.data[I])){return J;}}}return null;},getNodesByProperty:function(J,I){var G=[];for(var H in this._nodes){if(this._nodes.hasOwnProperty(H)){var K=this._nodes[H];if((J in K&&K[J]==I)||(K.data&&I==K.data[J])){G.push(K);}}}return(G.length)?G:null;},getNodesBy:function(I){var G=[];for(var H in this._nodes){if(this._nodes.hasOwnProperty(H)){var J=this._nodes[H];if(I(J)){G.push(J);}}}return(G.length)?G:null;},getNodeByElement:function(I){var J=I,G,H=/ygtv([^\d]*)(.*)/;do{if(J&&J.id){G=J.id.match(H);if(G&&G[2]){return this.getNodeByIndex(G[2]);}}J=J.parentNode;if(!J||!J.tagName){break;}}while(J.id!==this.id&&J.tagName.toLowerCase()!=="body");return null;},getHighlightedNode:function(){return this._currentlyHighlighted;},removeNode:function(H,G){if(H.isRoot()){return false;}var I=H.parent;if(I.parent){I=I.parent;}this._deleteNode(H);if(G&&I&&I.childrenRendered){I.refresh();}return true;},_removeChildren_animComplete:function(G){this.unsubscribe(this._removeChildren_animComplete);this.removeChildren(G.node);},removeChildren:function(G){if(G.expanded){if(this._collapseAnim){this.subscribe("animComplete",this._removeChildren_animComplete,this,true);E.Node.prototype.collapse.call(G);return;}G.collapse();}while(G.children.length){this._deleteNode(G.children[0]);}if(G.isRoot()){E.Node.prototype.expand.call(G);}G.childrenRendered=false;G.dynamicLoadComplete=false;G.updateIcon();},_deleteNode:function(G){this.removeChildren(G);this.popNode(G);},popNode:function(J){var K=J.parent;var H=[];for(var I=0,G=K.children.length;I<G;++I){if(K.children[I]!=J){H[H.length]=K.children[I];}}K.children=H;K.childrenRendered=false;if(J.previousSibling){J.previousSibling.nextSibling=J.nextSibling;}if(J.nextSibling){J.nextSibling.previousSibling=J.previousSibling;}if(this.currentFocus==J){this.currentFocus=null;}if(this._currentlyHighlighted==J){this._currentlyHighlighted=null;}J.parent=null;J.previousSibling=null;J.nextSibling=null;J.tree=null;delete this._nodes[J.index];},destroy:function(){if(this._destroyEditor){this._destroyEditor();}var H=this.getEl();B.removeListener(H,"click");B.removeListener(H,"dblclick");B.removeListener(H,"mouseover");B.removeListener(H,"mouseout");B.removeListener(H,"keydown");for(var G=0;G<this._nodes.length;G++){var I=this._nodes[G];if(I&&I.destroy){I.destroy();}}H.innerHTML="";this._hasEvents=false;},toString:function(){return"TreeView "+this.id;},getNodeCount:function(){return this.getRoot().getNodeCount();},getTreeDefinition:function(){return this.getRoot().getNodeDefinition();},onExpand:function(G){},onCollapse:function(G){},setNodesProperty:function(G,I,H){this.root.setNodesProperty(G,I);if(H){this.root.refresh();}},onEventToggleHighlight:function(H){var G;if("node" in H&&H.node instanceof E.Node){G=H.node;}else{if(H instanceof E.Node){G=H;}else{return false;}}G.toggleHighlight();return false;}};var A=C.prototype;A.draw=A.render;YAHOO.augment(C,YAHOO.util.EventProvider);C.nodeCount=0;C.trees=[];C.getTree=function(H){var G=C.trees[H];return(G)?G:null;};C.getNode=function(H,I){var G=C.getTree(H);return(G)?G.getNodeByIndex(I):null;};C.FOCUS_CLASS_NAME="ygtvfocus";})();(function(){var B=YAHOO.util.Dom,C=YAHOO.lang,A=YAHOO.util.Event;YAHOO.widget.Node=function(F,E,D){if(F){this.init(F,E,D);}};YAHOO.widget.Node.prototype={index:0,children:null,tree:null,data:null,parent:null,depth:-1,expanded:false,multiExpand:true,renderHidden:false,childrenRendered:false,dynamicLoadComplete:false,previousSibling:null,nextSibling:null,_dynLoad:false,dataLoader:null,isLoading:false,hasIcon:true,iconMode:0,nowrap:false,isLeaf:false,contentStyle:"",contentElId:null,enableHighlight:true,highlightState:0,propagateHighlightUp:false,propagateHighlightDown:false,className:null,_type:"Node",init:function(G,F,D){this.data={};this.children=[];this.index=YAHOO.widget.TreeView.nodeCount;
-++YAHOO.widget.TreeView.nodeCount;this.contentElId="ygtvcontentel"+this.index;if(C.isObject(G)){for(var E in G){if(G.hasOwnProperty(E)){if(E.charAt(0)!="_"&&!C.isUndefined(this[E])&&!C.isFunction(this[E])){this[E]=G[E];}else{this.data[E]=G[E];}}}}if(!C.isUndefined(D)){this.expanded=D;}this.createEvent("parentChange",this);if(F){F.appendChild(this);}},applyParent:function(E){if(!E){return false;}this.tree=E.tree;this.parent=E;this.depth=E.depth+1;this.tree.regNode(this);E.childrenRendered=false;for(var F=0,D=this.children.length;F<D;++F){this.children[F].applyParent(this);}this.fireEvent("parentChange");return true;},appendChild:function(E){if(this.hasChildren()){var D=this.children[this.children.length-1];D.nextSibling=E;E.previousSibling=D;}this.children[this.children.length]=E;E.applyParent(this);if(this.childrenRendered&&this.expanded){this.getChildrenEl().style.display="";}return E;},appendTo:function(D){return D.appendChild(this);},insertBefore:function(D){var F=D.parent;if(F){if(this.tree){this.tree.popNode(this);}var E=D.isChildOf(F);F.children.splice(E,0,this);if(D.previousSibling){D.previousSibling.nextSibling=this;}this.previousSibling=D.previousSibling;this.nextSibling=D;D.previousSibling=this;this.applyParent(F);}return this;},insertAfter:function(D){var F=D.parent;if(F){if(this.tree){this.tree.popNode(this);}var E=D.isChildOf(F);if(!D.nextSibling){this.nextSibling=null;return this.appendTo(F);}F.children.splice(E+1,0,this);D.nextSibling.previousSibling=this;this.previousSibling=D;this.nextSibling=D.nextSibling;D.nextSibling=this;this.applyParent(F);}return this;},isChildOf:function(E){if(E&&E.children){for(var F=0,D=E.children.length;F<D;++F){if(E.children[F]===this){return F;}}}return -1;},getSiblings:function(){var D=this.parent.children.slice(0);for(var E=0;E<D.length&&D[E]!=this;E++){}D.splice(E,1);if(D.length){return D;}return null;},showChildren:function(){if(!this.tree.animateExpand(this.getChildrenEl(),this)){if(this.hasChildren()){this.getChildrenEl().style.display="";}}},hideChildren:function(){if(!this.tree.animateCollapse(this.getChildrenEl(),this)){this.getChildrenEl().style.display="none";}},getElId:function(){return"ygtv"+this.index;},getChildrenElId:function(){return"ygtvc"+this.index;},getToggleElId:function(){return"ygtvt"+this.index;},getEl:function(){return B.get(this.getElId());},getChildrenEl:function(){return B.get(this.getChildrenElId());},getToggleEl:function(){return B.get(this.getToggleElId());},getContentEl:function(){return B.get(this.contentElId);},collapse:function(){if(!this.expanded){return;}var D=this.tree.onCollapse(this);if(false===D){return;}D=this.tree.fireEvent("collapse",this);if(false===D){return;}if(!this.getEl()){this.expanded=false;}else{this.hideChildren();this.expanded=false;this.updateIcon();}D=this.tree.fireEvent("collapseComplete",this);},expand:function(F){if(this.isLoading||(this.expanded&&!F)){return;}var D=true;if(!F){D=this.tree.onExpand(this);if(false===D){return;}D=this.tree.fireEvent("expand",this);}if(false===D){return;}if(!this.getEl()){this.expanded=true;return;}if(!this.childrenRendered){this.getChildrenEl().innerHTML=this.renderChildren();}else{}this.expanded=true;this.updateIcon();if(this.isLoading){this.expanded=false;return;}if(!this.multiExpand){var G=this.getSiblings();for(var E=0;G&&E<G.length;++E){if(G[E]!=this&&G[E].expanded){G[E].collapse();}}}this.showChildren();D=this.tree.fireEvent("expandComplete",this);},updateIcon:function(){if(this.hasIcon){var D=this.getToggleEl();if(D){D.className=D.className.replace(/\bygtv(([tl][pmn]h?)|(loading))\b/gi,this.getStyle());}}},getStyle:function(){if(this.isLoading){return"ygtvloading";}else{var E=(this.nextSibling)?"t":"l";var D="n";if(this.hasChildren(true)||(this.isDynamic()&&!this.getIconMode())){D=(this.expanded)?"m":"p";}return"ygtv"+E+D;}},getHoverStyle:function(){var D=this.getStyle();if(this.hasChildren(true)&&!this.isLoading){D+="h";}return D;},expandAll:function(){var D=this.children.length;for(var E=0;E<D;++E){var F=this.children[E];if(F.isDynamic()){break;}else{if(!F.multiExpand){break;}else{F.expand();F.expandAll();}}}},collapseAll:function(){for(var D=0;D<this.children.length;++D){this.children[D].collapse();this.children[D].collapseAll();}},setDynamicLoad:function(D,E){if(D){this.dataLoader=D;this._dynLoad=true;}else{this.dataLoader=null;this._dynLoad=false;}if(E){this.iconMode=E;}},isRoot:function(){return(this==this.tree.root);},isDynamic:function(){if(this.isLeaf){return false;}else{return(!this.isRoot()&&(this._dynLoad||this.tree.root._dynLoad));}},getIconMode:function(){return(this.iconMode||this.tree.root.iconMode);},hasChildren:function(D){if(this.isLeaf){return false;}else{return(this.children.length>0||(D&&this.isDynamic()&&!this.dynamicLoadComplete));}},toggle:function(){if(!this.tree.locked&&(this.hasChildren(true)||this.isDynamic())){if(this.expanded){this.collapse();}else{this.expand();}}},getHtml:function(){this.childrenRendered=false;return['<div class="ygtvitem" id="',this.getElId(),'">',this.getNodeHtml(),this.getChildrenHtml(),"</div>"].join("");},getChildrenHtml:function(){var D=[];D[D.length]='<div class="ygtvchildren" id="'+this.getChildrenElId()+'"';if(!this.expanded||!this.hasChildren()){D[D.length]=' style="display:none;"';}D[D.length]=">";if((this.hasChildren(true)&&this.expanded)||(this.renderHidden&&!this.isDynamic())){D[D.length]=this.renderChildren();}D[D.length]="</div>";return D.join("");},renderChildren:function(){var D=this;if(this.isDynamic()&&!this.dynamicLoadComplete){this.isLoading=true;this.tree.locked=true;if(this.dataLoader){setTimeout(function(){D.dataLoader(D,function(){D.loadComplete();});},10);}else{if(this.tree.root.dataLoader){setTimeout(function(){D.tree.root.dataLoader(D,function(){D.loadComplete();});},10);}else{return"Error: data loader not found or not specified.";}}return"";}else{return this.completeRender();}},completeRender:function(){var E=[];for(var D=0;D<this.children.length;++D){E[E.length]=this.children[D].getHtml();
-}this.childrenRendered=true;return E.join("");},loadComplete:function(){this.getChildrenEl().innerHTML=this.completeRender();if(this.propagateHighlightDown){if(this.highlightState===1&&!this.tree.singleNodeHighlight){for(var D=0;D<this.children.length;D++){this.children[D].highlight(true);}}else{if(this.highlightState===0||this.tree.singleNodeHighlight){for(D=0;D<this.children.length;D++){this.children[D].unhighlight(true);}}}}this.dynamicLoadComplete=true;this.isLoading=false;this.expand(true);this.tree.locked=false;},getAncestor:function(E){if(E>=this.depth||E<0){return null;}var D=this.parent;while(D.depth>E){D=D.parent;}return D;},getDepthStyle:function(D){return(this.getAncestor(D).nextSibling)?"ygtvdepthcell":"ygtvblankdepthcell";},getNodeHtml:function(){var E=[];E[E.length]='<table id="ygtvtableel'+this.index+'" border="0" cellpadding="0" cellspacing="0" class="ygtvtable ygtvdepth'+this.depth;if(this.enableHighlight){E[E.length]=" ygtv-highlight"+this.highlightState;}if(this.className){E[E.length]=" "+this.className;}E[E.length]='"><tr class="ygtvrow">';for(var D=0;D<this.depth;++D){E[E.length]='<td class="ygtvcell '+this.getDepthStyle(D)+'"><div class="ygtvspacer"></div></td>';}if(this.hasIcon){E[E.length]='<td id="'+this.getToggleElId();E[E.length]='" class="ygtvcell ';E[E.length]=this.getStyle();E[E.length]='"><a href="#" class="ygtvspacer">&#160;</a></td>';}E[E.length]='<td id="'+this.contentElId;E[E.length]='" class="ygtvcell ';E[E.length]=this.contentStyle+' ygtvcontent" ';E[E.length]=(this.nowrap)?' nowrap="nowrap" ':"";E[E.length]=" >";E[E.length]=this.getContentHtml();E[E.length]="</td></tr></table>";return E.join("");},getContentHtml:function(){return"";},refresh:function(){this.getChildrenEl().innerHTML=this.completeRender();if(this.hasIcon){var D=this.getToggleEl();if(D){D.className=D.className.replace(/\bygtv[lt][nmp]h*\b/gi,this.getStyle());}}},toString:function(){return this._type+" ("+this.index+")";},_focusHighlightedItems:[],_focusedItem:null,_canHaveFocus:function(){return this.getEl().getElementsByTagName("a").length>0;},_removeFocus:function(){if(this._focusedItem){A.removeListener(this._focusedItem,"blur");this._focusedItem=null;}var D;while((D=this._focusHighlightedItems.shift())){B.removeClass(D,YAHOO.widget.TreeView.FOCUS_CLASS_NAME);}},focus:function(){var F=false,D=this;if(this.tree.currentFocus){this.tree.currentFocus._removeFocus();}var E=function(G){if(G.parent){E(G.parent);G.parent.expand();}};E(this);B.getElementsBy(function(G){return(/ygtv(([tl][pmn]h?)|(content))/).test(G.className);},"td",D.getEl().firstChild,function(H){B.addClass(H,YAHOO.widget.TreeView.FOCUS_CLASS_NAME);if(!F){var G=H.getElementsByTagName("a");if(G.length){G=G[0];G.focus();D._focusedItem=G;A.on(G,"blur",function(){D.tree.fireEvent("focusChanged",{oldNode:D.tree.currentFocus,newNode:null});D.tree.currentFocus=null;D._removeFocus();});F=true;}}D._focusHighlightedItems.push(H);});if(F){this.tree.fireEvent("focusChanged",{oldNode:this.tree.currentFocus,newNode:this});this.tree.currentFocus=this;}else{this.tree.fireEvent("focusChanged",{oldNode:D.tree.currentFocus,newNode:null});this.tree.currentFocus=null;this._removeFocus();}return F;},getNodeCount:function(){for(var D=0,E=0;D<this.children.length;D++){E+=this.children[D].getNodeCount();}return E+1;},getNodeDefinition:function(){if(this.isDynamic()){return false;}var G,D=C.merge(this.data),F=[];if(this.expanded){D.expanded=this.expanded;}if(!this.multiExpand){D.multiExpand=this.multiExpand;}if(!this.renderHidden){D.renderHidden=this.renderHidden;}if(!this.hasIcon){D.hasIcon=this.hasIcon;}if(this.nowrap){D.nowrap=this.nowrap;}if(this.className){D.className=this.className;}if(this.editable){D.editable=this.editable;}if(this.enableHighlight){D.enableHighlight=this.enableHighlight;}if(this.highlightState){D.highlightState=this.highlightState;}if(this.propagateHighlightUp){D.propagateHighlightUp=this.propagateHighlightUp;}if(this.propagateHighlightDown){D.propagateHighlightDown=this.propagateHighlightDown;}D.type=this._type;for(var E=0;E<this.children.length;E++){G=this.children[E].getNodeDefinition();if(G===false){return false;}F.push(G);}if(F.length){D.children=F;}return D;},getToggleLink:function(){return"return false;";},setNodesProperty:function(D,G,F){if(D.charAt(0)!="_"&&!C.isUndefined(this[D])&&!C.isFunction(this[D])){this[D]=G;}else{this.data[D]=G;}for(var E=0;E<this.children.length;E++){this.children[E].setNodesProperty(D,G);}if(F){this.refresh();}},toggleHighlight:function(){if(this.enableHighlight){if(this.highlightState==1){this.unhighlight();}else{this.highlight();}}},highlight:function(E){if(this.enableHighlight){if(this.tree.singleNodeHighlight){if(this.tree._currentlyHighlighted){this.tree._currentlyHighlighted.unhighlight(E);}this.tree._currentlyHighlighted=this;}this.highlightState=1;this._setHighlightClassName();if(!this.tree.singleNodeHighlight){if(this.propagateHighlightDown){for(var D=0;D<this.children.length;D++){this.children[D].highlight(true);}}if(this.propagateHighlightUp){if(this.parent){this.parent._childrenHighlighted();}}}if(!E){this.tree.fireEvent("highlightEvent",this);}}},unhighlight:function(E){if(this.enableHighlight){this.tree._currentlyHighlighted=null;this.highlightState=0;this._setHighlightClassName();if(!this.tree.singleNodeHighlight){if(this.propagateHighlightDown){for(var D=0;D<this.children.length;D++){this.children[D].unhighlight(true);}}if(this.propagateHighlightUp){if(this.parent){this.parent._childrenHighlighted();}}}if(!E){this.tree.fireEvent("highlightEvent",this);}}},_childrenHighlighted:function(){var F=false,E=false;if(this.enableHighlight){for(var D=0;D<this.children.length;D++){switch(this.children[D].highlightState){case 0:E=true;break;case 1:F=true;break;case 2:F=E=true;break;}}if(F&&E){this.highlightState=2;}else{if(F){this.highlightState=1;}else{this.highlightState=0;}}this._setHighlightClassName();if(this.propagateHighlightUp){if(this.parent){this.parent._childrenHighlighted();
-}}}},_setHighlightClassName:function(){var D=B.get("ygtvtableel"+this.index);if(D){D.className=D.className.replace(/\bygtv-highlight\d\b/gi,"ygtv-highlight"+this.highlightState);}}};YAHOO.augment(YAHOO.widget.Node,YAHOO.util.EventProvider);})();YAHOO.widget.RootNode=function(A){this.init(null,null,true);this.tree=A;};YAHOO.extend(YAHOO.widget.RootNode,YAHOO.widget.Node,{_type:"RootNode",getNodeHtml:function(){return"";},toString:function(){return this._type;},loadComplete:function(){this.tree.draw();},getNodeCount:function(){for(var A=0,B=0;A<this.children.length;A++){B+=this.children[A].getNodeCount();}return B;},getNodeDefinition:function(){for(var C,A=[],B=0;B<this.children.length;B++){C=this.children[B].getNodeDefinition();if(C===false){return false;}A.push(C);}return A;},collapse:function(){},expand:function(){},getSiblings:function(){return null;},focus:function(){}});(function(){var B=YAHOO.util.Dom,C=YAHOO.lang,A=YAHOO.util.Event;YAHOO.widget.TextNode=function(F,E,D){if(F){if(C.isString(F)){F={label:F};}this.init(F,E,D);this.setUpLabel(F);}};YAHOO.extend(YAHOO.widget.TextNode,YAHOO.widget.Node,{labelStyle:"ygtvlabel",labelElId:null,label:null,title:null,href:null,target:"_self",_type:"TextNode",setUpLabel:function(D){if(C.isString(D)){D={label:D};}else{if(D.style){this.labelStyle=D.style;}}this.label=D.label;this.labelElId="ygtvlabelel"+this.index;},getLabelEl:function(){return B.get(this.labelElId);},getContentHtml:function(){var D=[];D[D.length]=this.href?"<a":"<span";D[D.length]=' id="'+this.labelElId+'"';D[D.length]=' class="'+this.labelStyle+'"';if(this.href){D[D.length]=' href="'+this.href+'"';D[D.length]=' target="'+this.target+'"';}if(this.title){D[D.length]=' title="'+this.title+'"';}D[D.length]=" >";D[D.length]=this.label;D[D.length]=this.href?"</a>":"</span>";return D.join("");},getNodeDefinition:function(){var D=YAHOO.widget.TextNode.superclass.getNodeDefinition.call(this);if(D===false){return false;}D.label=this.label;if(this.labelStyle!="ygtvlabel"){D.style=this.labelStyle;}if(this.title){D.title=this.title;}if(this.href){D.href=this.href;}if(this.target!="_self"){D.target=this.target;}return D;},toString:function(){return YAHOO.widget.TextNode.superclass.toString.call(this)+": "+this.label;},onLabelClick:function(){return false;},refresh:function(){YAHOO.widget.TextNode.superclass.refresh.call(this);var D=this.getLabelEl();D.innerHTML=this.label;if(D.tagName.toUpperCase()=="A"){D.href=this.href;D.target=this.target;}}});})();YAHOO.widget.MenuNode=function(C,B,A){YAHOO.widget.MenuNode.superclass.constructor.call(this,C,B,A);this.multiExpand=false;};YAHOO.extend(YAHOO.widget.MenuNode,YAHOO.widget.TextNode,{_type:"MenuNode"});(function(){var B=YAHOO.util.Dom,C=YAHOO.lang,A=YAHOO.util.Event;YAHOO.widget.HTMLNode=function(G,F,E,D){if(G){this.init(G,F,E);this.initContent(G,D);}};YAHOO.extend(YAHOO.widget.HTMLNode,YAHOO.widget.Node,{contentStyle:"ygtvhtml",html:null,_type:"HTMLNode",initContent:function(E,D){this.setHtml(E);this.contentElId="ygtvcontentel"+this.index;if(!C.isUndefined(D)){this.hasIcon=D;}},setHtml:function(E){this.html=(typeof E==="string")?E:E.html;var D=this.getContentEl();if(D){D.innerHTML=this.html;}},getContentHtml:function(){return this.html;},getNodeDefinition:function(){var D=YAHOO.widget.HTMLNode.superclass.getNodeDefinition.call(this);if(D===false){return false;}D.html=this.html;return D;}});})();(function(){var B=YAHOO.util.Dom,C=YAHOO.lang,A=YAHOO.util.Event,D=YAHOO.widget.Calendar;YAHOO.widget.DateNode=function(G,F,E){YAHOO.widget.DateNode.superclass.constructor.call(this,G,F,E);};YAHOO.extend(YAHOO.widget.DateNode,YAHOO.widget.TextNode,{_type:"DateNode",calendarConfig:null,fillEditorContainer:function(G){var H,F=G.inputContainer;if(C.isUndefined(D)){B.replaceClass(G.editorPanel,"ygtv-edit-DateNode","ygtv-edit-TextNode");YAHOO.widget.DateNode.superclass.fillEditorContainer.call(this,G);return;}if(G.nodeType!=this._type){G.nodeType=this._type;G.saveOnEnter=false;G.node.destroyEditorContents(G);G.inputObject=H=new D(F.appendChild(document.createElement("div")));if(this.calendarConfig){H.cfg.applyConfig(this.calendarConfig,true);H.cfg.fireQueue();}H.selectEvent.subscribe(function(){this.tree._closeEditor(true);},this,true);}else{H=G.inputObject;}G.oldValue=this.label;H.cfg.setProperty("selected",this.label,false);var I=H.cfg.getProperty("DATE_FIELD_DELIMITER");var E=this.label.split(I);H.cfg.setProperty("pagedate",E[H.cfg.getProperty("MDY_MONTH_POSITION")-1]+I+E[H.cfg.getProperty("MDY_YEAR_POSITION")-1]);H.cfg.fireQueue();H.render();H.oDomContainer.focus();},getEditorValue:function(F){if(C.isUndefined(D)){return F.inputElement.value;}else{var H=F.inputObject,G=H.getSelectedDates()[0],E=[];E[H.cfg.getProperty("MDY_DAY_POSITION")-1]=G.getDate();E[H.cfg.getProperty("MDY_MONTH_POSITION")-1]=G.getMonth()+1;E[H.cfg.getProperty("MDY_YEAR_POSITION")-1]=G.getFullYear();return E.join(H.cfg.getProperty("DATE_FIELD_DELIMITER"));}},displayEditedValue:function(G,E){var F=E.node;F.label=G;F.getLabelEl().innerHTML=G;},getNodeDefinition:function(){var E=YAHOO.widget.DateNode.superclass.getNodeDefinition.call(this);if(E===false){return false;}if(this.calendarConfig){E.calendarConfig=this.calendarConfig;}return E;}});})();(function(){var E=YAHOO.util.Dom,F=YAHOO.lang,B=YAHOO.util.Event,D=YAHOO.widget.TreeView,C=D.prototype;D.editorData={active:false,whoHasIt:null,nodeType:null,editorPanel:null,inputContainer:null,buttonsContainer:null,node:null,saveOnEnter:true,oldValue:undefined};C.validator=null;C._initEditor=function(){this.createEvent("editorSaveEvent",this);this.createEvent("editorCancelEvent",this);};C._nodeEditing=function(M){if(M.fillEditorContainer&&M.editable){var I,K,L,J,H=D.editorData;H.active=true;H.whoHasIt=this;if(!H.nodeType){H.editorPanel=I=document.body.appendChild(document.createElement("div"));E.addClass(I,"ygtv-label-editor");L=H.buttonsContainer=I.appendChild(document.createElement("div"));E.addClass(L,"ygtv-button-container");J=L.appendChild(document.createElement("button"));
-E.addClass(J,"ygtvok");J.innerHTML=" ";J=L.appendChild(document.createElement("button"));E.addClass(J,"ygtvcancel");J.innerHTML=" ";B.on(L,"click",function(O){var P=B.getTarget(O);var N=D.editorData.node;if(E.hasClass(P,"ygtvok")){B.stopEvent(O);this._closeEditor(true);}if(E.hasClass(P,"ygtvcancel")){B.stopEvent(O);this._closeEditor(false);}},this,true);H.inputContainer=I.appendChild(document.createElement("div"));E.addClass(H.inputContainer,"ygtv-input");B.on(I,"keydown",function(P){var O=D.editorData,N=YAHOO.util.KeyListener.KEY;switch(P.keyCode){case N.ENTER:B.stopEvent(P);if(O.saveOnEnter){this._closeEditor(true);}break;case N.ESCAPE:B.stopEvent(P);this._closeEditor(false);break;}},this,true);}else{I=H.editorPanel;}H.node=M;if(H.nodeType){E.removeClass(I,"ygtv-edit-"+H.nodeType);}E.addClass(I," ygtv-edit-"+M._type);K=E.getXY(M.getContentEl());E.setStyle(I,"left",K[0]+"px");E.setStyle(I,"top",K[1]+"px");E.setStyle(I,"display","block");I.focus();M.fillEditorContainer(H);return true;}};C.onEventEditNode=function(H){if(H instanceof YAHOO.widget.Node){H.editNode();}else{if(H.node instanceof YAHOO.widget.Node){H.node.editNode();}}};C._closeEditor=function(J){var H=D.editorData,I=H.node,K=true;if(J){K=H.node.saveEditorValue(H)!==false;}else{this.fireEvent("editorCancelEvent",I);}if(K){E.setStyle(H.editorPanel,"display","none");H.active=false;I.focus();}};C._destroyEditor=function(){var H=D.editorData;if(H&&H.nodeType&&(!H.active||H.whoHasIt===this)){B.removeListener(H.editorPanel,"keydown");B.removeListener(H.buttonContainer,"click");H.node.destroyEditorContents(H);document.body.removeChild(H.editorPanel);H.nodeType=H.editorPanel=H.inputContainer=H.buttonsContainer=H.whoHasIt=H.node=null;H.active=false;}};var G=YAHOO.widget.Node.prototype;G.editable=false;G.editNode=function(){this.tree._nodeEditing(this);};G.fillEditorContainer=null;G.destroyEditorContents=function(H){B.purgeElement(H.inputContainer,true);H.inputContainer.innerHTML="";};G.saveEditorValue=function(H){var J=H.node,K,I=J.tree.validator;K=this.getEditorValue(H);if(F.isFunction(I)){K=I(K,H.oldValue,J);if(F.isUndefined(K)){return false;}}if(this.tree.fireEvent("editorSaveEvent",{newValue:K,oldValue:H.oldValue,node:J})!==false){this.displayEditedValue(K,H);}};G.getEditorValue=function(H){};G.displayEditedValue=function(I,H){};var A=YAHOO.widget.TextNode.prototype;A.fillEditorContainer=function(I){var H;if(I.nodeType!=this._type){I.nodeType=this._type;I.saveOnEnter=true;I.node.destroyEditorContents(I);I.inputElement=H=I.inputContainer.appendChild(document.createElement("input"));}else{H=I.inputElement;}I.oldValue=this.label;H.value=this.label;H.focus();H.select();};A.getEditorValue=function(H){return H.inputElement.value;};A.displayEditedValue=function(J,H){var I=H.node;I.label=J;I.getLabelEl().innerHTML=J;};A.destroyEditorContents=function(H){H.inputContainer.innerHTML="";};})();YAHOO.widget.TVAnim=function(){return{FADE_IN:"TVFadeIn",FADE_OUT:"TVFadeOut",getAnim:function(B,A,C){if(YAHOO.widget[B]){return new YAHOO.widget[B](A,C);}else{return null;}},isValid:function(A){return(YAHOO.widget[A]);}};}();YAHOO.widget.TVFadeIn=function(A,B){this.el=A;this.callback=B;};YAHOO.widget.TVFadeIn.prototype={animate:function(){var D=this;var C=this.el.style;C.opacity=0.1;C.filter="alpha(opacity=10)";C.display="";var B=0.4;var A=new YAHOO.util.Anim(this.el,{opacity:{from:0.1,to:1,unit:""}},B);A.onComplete.subscribe(function(){D.onComplete();});A.animate();},onComplete:function(){this.callback();},toString:function(){return"TVFadeIn";}};YAHOO.widget.TVFadeOut=function(A,B){this.el=A;this.callback=B;};YAHOO.widget.TVFadeOut.prototype={animate:function(){var C=this;var B=0.4;var A=new YAHOO.util.Anim(this.el,{opacity:{from:1,to:0.1,unit:""}},B);A.onComplete.subscribe(function(){C.onComplete();});A.animate();},onComplete:function(){var A=this.el.style;A.display="none";A.opacity=1;A.filter="alpha(opacity=100)";this.callback();},toString:function(){return"TVFadeOut";}};YAHOO.register("treeview",YAHOO.widget.TreeView,{version:"2.8.0r4",build:"2449"});
\ No newline at end of file
diff --git a/koha-tmpl/intranet-tmpl/prog/en/lib/yui/treeview/treeview.js b/koha-tmpl/intranet-tmpl/prog/en/lib/yui/treeview/treeview.js
deleted file mode 100644 (file)
index 80d6fb5..0000000
+++ /dev/null
@@ -1,3989 +0,0 @@
-/*
-Copyright (c) 2009, Yahoo! Inc. All rights reserved.
-Code licensed under the BSD License:
-http://developer.yahoo.net/yui/license.txt
-version: 2.8.0r4
-*/
-(function () {
-    var Dom = YAHOO.util.Dom,
-        Event = YAHOO.util.Event,
-        Lang = YAHOO.lang,
-        Widget = YAHOO.widget;
-        
-    
-
-/**
- * The treeview widget is a generic tree building tool.
- * @module treeview
- * @title TreeView Widget
- * @requires yahoo, dom, event
- * @optional animation, json, calendar
- * @namespace YAHOO.widget
- */
-
-/**
- * Contains the tree view state data and the root node.
- *
- * @class TreeView
- * @uses YAHOO.util.EventProvider
- * @constructor
- * @param {string|HTMLElement} id The id of the element, or the element itself that the tree will be inserted into.  
- *        Existing markup in this element, if valid, will be used to build the tree
- * @param {Array|Object|String}  oConfig (optional)  If present, it will be used to build the tree via method <a href="#method_buildTreeFromObject">buildTreeFromObject</a>
- * 
- */
-YAHOO.widget.TreeView = function(id, oConfig) {
-    if (id) { this.init(id); }
-    if (oConfig) {
-        this.buildTreeFromObject(oConfig);
-    } else if (Lang.trim(this._el.innerHTML)) {
-        this.buildTreeFromMarkup(id);
-    }
-};
-
-var TV = Widget.TreeView;
-
-TV.prototype = {
-
-    /**
-     * The id of tree container element
-     * @property id
-     * @type String
-     */
-    id: null,
-
-    /**
-     * The host element for this tree
-     * @property _el
-     * @private
-     * @type HTMLelement
-     */
-    _el: null,
-
-     /**
-     * Flat collection of all nodes in this tree.  This is a sparse
-     * array, so the length property can't be relied upon for a
-     * node count for the tree.
-     * @property _nodes
-     * @type Node[]
-     * @private
-     */
-    _nodes: null,
-
-    /**
-     * We lock the tree control while waiting for the dynamic loader to return
-     * @property locked
-     * @type boolean
-     */
-    locked: false,
-
-    /**
-     * The animation to use for expanding children, if any
-     * @property _expandAnim
-     * @type string
-     * @private
-     */
-    _expandAnim: null,
-
-    /**
-     * The animation to use for collapsing children, if any
-     * @property _collapseAnim
-     * @type string
-     * @private
-     */
-    _collapseAnim: null,
-
-    /**
-     * The current number of animations that are executing
-     * @property _animCount
-     * @type int
-     * @private
-     */
-    _animCount: 0,
-
-    /**
-     * The maximum number of animations to run at one time.
-     * @property maxAnim
-     * @type int
-     */
-    maxAnim: 2,
-
-    /**
-     * Whether there is any subscriber to dblClickEvent
-     * @property _hasDblClickSubscriber
-     * @type boolean
-     * @private
-     */
-    _hasDblClickSubscriber: false,
-    
-    /**
-     * Stores the timer used to check for double clicks
-     * @property _dblClickTimer
-     * @type window.timer object
-     * @private
-     */
-    _dblClickTimer: null,
-
-  /**
-     * A reference to the Node currently having the focus or null if none.
-     * @property currentFocus
-     * @type YAHOO.widget.Node
-     */
-    currentFocus: null,
-    
-    /**
-    * If true, only one Node can be highlighted at a time
-    * @property singleNodeHighlight
-    * @type boolean
-    * @default false
-    */
-    
-    singleNodeHighlight: false,
-    
-    /**
-    * A reference to the Node that is currently highlighted.
-    * It is only meaningful if singleNodeHighlight is enabled
-    * @property _currentlyHighlighted
-    * @type YAHOO.widget.Node
-    * @default null
-    * @private
-    */
-    
-    _currentlyHighlighted: null,
-
-    /**
-     * Sets up the animation for expanding children
-     * @method setExpandAnim
-     * @param {string} type the type of animation (acceptable values defined 
-     * in YAHOO.widget.TVAnim)
-     */
-    setExpandAnim: function(type) {
-        this._expandAnim = (Widget.TVAnim.isValid(type)) ? type : null;
-    },
-
-    /**
-     * Sets up the animation for collapsing children
-     * @method setCollapseAnim
-     * @param {string} type of animation (acceptable values defined in 
-     * YAHOO.widget.TVAnim)
-     */
-    setCollapseAnim: function(type) {
-        this._collapseAnim = (Widget.TVAnim.isValid(type)) ? type : null;
-    },
-
-    /**
-     * Perform the expand animation if configured, or just show the
-     * element if not configured or too many animations are in progress
-     * @method animateExpand
-     * @param el {HTMLElement} the element to animate
-     * @param node {YAHOO.util.Node} the node that was expanded
-     * @return {boolean} true if animation could be invoked, false otherwise
-     */
-    animateExpand: function(el, node) {
-
-        if (this._expandAnim && this._animCount < this.maxAnim) {
-            // this.locked = true;
-            var tree = this;
-            var a = Widget.TVAnim.getAnim(this._expandAnim, el, 
-                            function() { tree.expandComplete(node); });
-            if (a) { 
-                ++this._animCount;
-                this.fireEvent("animStart", {
-                        "node": node, 
-                        "type": "expand"
-                    });
-                a.animate();
-            }
-
-            return true;
-        }
-
-        return false;
-    },
-
-    /**
-     * Perform the collapse animation if configured, or just show the
-     * element if not configured or too many animations are in progress
-     * @method animateCollapse
-     * @param el {HTMLElement} the element to animate
-     * @param node {YAHOO.util.Node} the node that was expanded
-     * @return {boolean} true if animation could be invoked, false otherwise
-     */
-    animateCollapse: function(el, node) {
-
-        if (this._collapseAnim && this._animCount < this.maxAnim) {
-            // this.locked = true;
-            var tree = this;
-            var a = Widget.TVAnim.getAnim(this._collapseAnim, el, 
-                            function() { tree.collapseComplete(node); });
-            if (a) { 
-                ++this._animCount;
-                this.fireEvent("animStart", {
-                        "node": node, 
-                        "type": "collapse"
-                    });
-                a.animate();
-            }
-
-            return true;
-        }
-
-        return false;
-    },
-
-    /**
-     * Function executed when the expand animation completes
-     * @method expandComplete
-     */
-    expandComplete: function(node) {
-        --this._animCount;
-        this.fireEvent("animComplete", {
-                "node": node, 
-                "type": "expand"
-            });
-        // this.locked = false;
-    },
-
-    /**
-     * Function executed when the collapse animation completes
-     * @method collapseComplete
-     */
-    collapseComplete: function(node) {
-        --this._animCount;
-        this.fireEvent("animComplete", {
-                "node": node, 
-                "type": "collapse"
-            });
-        // this.locked = false;
-    },
-
-    /**
-     * Initializes the tree
-     * @method init
-     * @parm {string|HTMLElement} id the id of the element that will hold the tree
-     * @private
-     */
-    init: function(id) {
-        this._el = Dom.get(id);
-        this.id = Dom.generateId(this._el,"yui-tv-auto-id-");
-
-    /**
-         * When animation is enabled, this event fires when the animation
-         * starts
-         * @event animStart
-         * @type CustomEvent
-         * @param {YAHOO.widget.Node} oArgs.node the node that is expanding/collapsing
-         * @param {String} oArgs.type the type of animation ("expand" or "collapse")
-         */
-        this.createEvent("animStart", this);
-
-        /**
-         * When animation is enabled, this event fires when the animation
-         * completes
-         * @event animComplete
-         * @type CustomEvent
-         * @param {YAHOO.widget.Node} oArgs.node the node that is expanding/collapsing
-         * @param {String} oArgs.type the type of animation ("expand" or "collapse")
-         */
-        this.createEvent("animComplete", this);
-
-        /**
-         * Fires when a node is going to be collapsed.  Return false to stop
-         * the collapse.
-         * @event collapse
-         * @type CustomEvent
-         * @param {YAHOO.widget.Node} node the node that is collapsing
-         */
-        this.createEvent("collapse", this);
-
-        /**
-         * Fires after a node is successfully collapsed.  This event will not fire
-         * if the "collapse" event was cancelled.
-         * @event collapseComplete
-         * @type CustomEvent
-         * @param {YAHOO.widget.Node} node the node that was collapsed
-         */
-        this.createEvent("collapseComplete", this);
-
-        /**
-         * Fires when a node is going to be expanded.  Return false to stop
-         * the collapse.
-         * @event expand
-         * @type CustomEvent
-         * @param {YAHOO.widget.Node} node the node that is expanding
-         */
-        this.createEvent("expand", this);
-
-        /**
-         * Fires after a node is successfully expanded.  This event will not fire
-         * if the "expand" event was cancelled.
-         * @event expandComplete
-         * @type CustomEvent
-         * @param {YAHOO.widget.Node} node the node that was expanded
-         */
-        this.createEvent("expandComplete", this);
-
-    /**
-         * Fires when the Enter key is pressed on a node that has the focus
-         * @event enterKeyPressed
-         * @type CustomEvent
-         * @param {YAHOO.widget.Node} node the node that has the focus
-         */
-        this.createEvent("enterKeyPressed", this);
-        
-    /**
-         * Fires when the label in a TextNode or MenuNode or content in an HTMLNode receives a Click.
-    * The listener may return false to cancel toggling and focusing on the node.
-         * @event clickEvent
-         * @type CustomEvent
-         * @param oArgs.event  {HTMLEvent} The event object
-         * @param oArgs.node {YAHOO.widget.Node} node the node that was clicked
-         */
-        this.createEvent("clickEvent", this);
-        
-    /**
-         * Fires when the focus receives the focus, when it changes from a Node 
-    * to another Node or when it is completely lost (blurred)
-         * @event focusChanged
-         * @type CustomEvent
-         * @param oArgs.oldNode  {YAHOO.widget.Node} Node that had the focus or null if none
-         * @param oArgs.newNode {YAHOO.widget.Node} Node that receives the focus or null if none
-         */
-        
-        this.createEvent('focusChanged',this);
-
-    /**
-         * Fires when the label in a TextNode or MenuNode or content in an HTMLNode receives a double Click
-         * @event dblClickEvent
-         * @type CustomEvent
-         * @param oArgs.event  {HTMLEvent} The event object
-         * @param oArgs.node {YAHOO.widget.Node} node the node that was clicked
-         */
-        var self = this;
-        this.createEvent("dblClickEvent", {
-            scope:this,
-            onSubscribeCallback: function() {
-                self._hasDblClickSubscriber = true;
-            }
-        });
-        
-    /**
-         * Custom event that is fired when the text node label is clicked. 
-         *  The node clicked is  provided as an argument
-         *
-         * @event labelClick
-         * @type CustomEvent
-         * @param {YAHOO.widget.Node} node the node clicked
-    * @deprecated use clickEvent or dblClickEvent
-         */
-        this.createEvent("labelClick", this);
-        
-    /**
-     * Custom event fired when the highlight of a node changes.
-     * The node that triggered the change is provided as an argument:
-     * The status of the highlight can be checked in 
-     * <a href="YAHOO.widget.Node.html#property_highlightState">nodeRef.highlightState</a>.
-     * Depending on <a href="YAHOO.widget.Node.html#property_propagateHighlight">nodeRef.propagateHighlight</a>, other nodes might have changed
-     * @event highlightEvent
-     * @type CustomEvent
-     * @param node {YAHOO.widget.Node} the node that started the change in highlighting state
-    */
-        this.createEvent("highlightEvent",this);
-     
-
-
-        this._nodes = [];
-
-        // store a global reference
-        TV.trees[this.id] = this;
-
-        // Set up the root node
-        this.root = new Widget.RootNode(this);
-
-        var LW = Widget.LogWriter;
-
-
-               
-               if (this._initEditor) {
-                       this._initEditor();
-               }
-        
-        // YAHOO.util.Event.onContentReady(this.id, this.handleAvailable, this, true);
-        // YAHOO.util.Event.on(this.id, "click", this.handleClick, this, true);
-    },
-
-    //handleAvailable: function() {
-        //var Event = YAHOO.util.Event;
-        //Event.on(this.id, 
-    //},
- /**
-     * Builds the TreeView from an object.  
-     * This is the method called by the constructor to build the tree when it has a second argument.
-     *  A tree can be described by an array of objects, each object corresponding to a node.
-     *  Node descriptions may contain values for any property of a node plus the following extra properties: <ul>
-     * <li>type:  can be one of the following:<ul>
-     *    <li> A shortname for a node type (<code>'text','menu','html'</code>) </li>
-     *    <li>The name of a Node class under YAHOO.widget (<code>'TextNode', 'MenuNode', 'DateNode'</code>, etc) </li>
-     *    <li>a reference to an actual class: <code>YAHOO.widget.DateNode</code></li>
-        * </ul></li>
-     * <li>children: an array containing further node definitions</li></ul>
-        * A string instead of an object will produce a node of type 'text' with the given string as its label.
-     * @method buildTreeFromObject
-     * @param  oConfig {Array|Object|String}  array containing a full description of the tree.
-     *        An object or a string will be turned into an array with the given object or string as its only element.
-     * 
-     */
-    buildTreeFromObject: function (oConfig) {
-        var build = function (parent, oConfig) {
-            var i, item, node, children, type, NodeType, ThisType;
-            for (i = 0; i < oConfig.length; i++) {
-                item = oConfig[i];
-                if (Lang.isString(item)) {
-                    node = new Widget.TextNode(item, parent);
-                } else if (Lang.isObject(item)) {
-                    children = item.children;
-                    delete item.children;
-                    type = item.type || 'text';
-                    delete item.type;
-                    switch (Lang.isString(type) && type.toLowerCase()) {
-                        case 'text':
-                            node = new Widget.TextNode(item, parent);
-                            break;
-                        case 'menu':
-                            node = new Widget.MenuNode(item, parent);
-                            break;
-                        case 'html':
-                            node = new Widget.HTMLNode(item, parent);
-                            break;
-                        default:
-                            if (Lang.isString(type)) {
-                                NodeType = Widget[type];
-                            } else {
-                                NodeType = type;
-                            }
-                            if (Lang.isObject(NodeType)) {
-                                for (ThisType = NodeType; ThisType && ThisType !== Widget.Node; ThisType = ThisType.superclass.constructor) {}
-                                if (ThisType) {
-                                    node = new NodeType(item, parent);
-                                } else {
-                                }
-                            } else {
-                            }
-                    }
-                    if (children) {
-                        build(node,children);
-                    }
-                } else {
-                }
-            }
-        };
-        if (!Lang.isArray(oConfig)) {
-            oConfig = [oConfig];
-        }
-
-                    
-        build(this.root,oConfig);
-    },
-/**
-     * Builds the TreeView from existing markup.   Markup should consist of &lt;UL&gt; or &lt;OL&gt; elements containing &lt;LI&gt; elements.  
-     * Each &lt;LI&gt; can have one element used as label and a second optional element which is to be a &lt;UL&gt; or &lt;OL&gt;
-     * containing nested nodes.
-     * Depending on what the first element of the &lt;LI&gt; element is, the following Nodes will be created: <ul>
-     *           <li>plain text:  a regular TextNode</li>
-     *           <li>anchor &lt;A&gt;: a TextNode with its <code>href</code> and <code>target</code> taken from the anchor</li>
-     *           <li>anything else: an HTMLNode</li></ul>
-     * Only the first  outermost (un-)ordered list in the markup and its children will be parsed.
-     * Nodes will be collapsed unless  an  &lt;LI&gt;  tag has a className called 'expanded'.
-     * All other className attributes will be copied over to the Node className property.
-     * If the &lt;LI&gt; element contains an attribute called <code>yuiConfig</code>, its contents should be a JSON-encoded object
-     * as the one used in method <a href="#method_buildTreeFromObject">buildTreeFromObject</a>.
-     * @method buildTreeFromMarkup
-     * @param  id {string|HTMLElement} The id of the element that contains the markup or a reference to it.
-     */
-    buildTreeFromMarkup: function (id) {
-        var build = function (markup) {
-            var el, child, branch = [], config = {}, label, yuiConfig;
-            // Dom's getFirstChild and getNextSibling skip over text elements
-            for (el = Dom.getFirstChild(markup); el; el = Dom.getNextSibling(el)) {
-                switch (el.tagName.toUpperCase()) {
-                    case 'LI':
-                        label = '';
-                        config = {
-                            expanded: Dom.hasClass(el,'expanded'),
-                            title: el.title || el.alt || null,
-                            className: Lang.trim(el.className.replace(/\bexpanded\b/,'')) || null
-                        };
-                        // I cannot skip over text elements here because I want them for labels
-                        child = el.firstChild;
-                        if (child.nodeType == 3) {
-                            // nodes with only whitespace, tabs and new lines don't count, they are probably just formatting.
-                            label = Lang.trim(child.nodeValue.replace(/[\n\t\r]*/g,''));
-                            if (label) {
-                                config.type = 'text';
-                                config.label = label;
-                            } else {
-                                child = Dom.getNextSibling(child);
-                            }
-                        }
-                        if (!label) {
-                            if (child.tagName.toUpperCase() == 'A') {
-                                config.type = 'text';
-                                config.label = child.innerHTML;
-                                config.href = child.href;
-                                config.target = child.target;
-                                config.title = child.title || child.alt || config.title;
-                            } else {
-                                config.type = 'html';
-                                var d = document.createElement('div');
-                                d.appendChild(child.cloneNode(true));
-                                config.html = d.innerHTML;
-                                config.hasIcon = true;
-                            }
-                        }
-                        // see if after the label it has a further list which will become children of this node.
-                        child = Dom.getNextSibling(child);
-                        switch (child && child.tagName.toUpperCase()) {
-                            case 'UL':
-                            case 'OL':
-                                config.children = build(child);
-                                break;
-                        }
-                        // if there are further elements or text, it will be ignored.
-                        
-                        if (YAHOO.lang.JSON) {
-                            yuiConfig = el.getAttribute('yuiConfig');
-                            if (yuiConfig) {
-                                yuiConfig = YAHOO.lang.JSON.parse(yuiConfig);
-                                config = YAHOO.lang.merge(config,yuiConfig);
-                            }
-                        }
-                        
-                        branch.push(config);
-                        break;
-                    case 'UL':
-                    case 'OL':
-                        config = {
-                            type: 'text',
-                            label: '',
-                            children: build(child)
-                        };
-                        branch.push(config);
-                        break;
-                }
-            }
-            return branch;
-        };
-
-        var markup = Dom.getChildrenBy(Dom.get(id),function (el) { 
-            var tag = el.tagName.toUpperCase();
-            return  tag == 'UL' || tag == 'OL';
-        });
-        if (markup.length) {
-            this.buildTreeFromObject(build(markup[0]));
-        } else {
-        }
-    },
-  /**
-     * Returns the TD element where the event has occurred
-     * @method _getEventTargetTdEl
-     * @private
-     */
-    _getEventTargetTdEl: function (ev) {
-        var target = Event.getTarget(ev); 
-        // go up looking for a TD with a className with a ygtv prefix
-        while (target && !(target.tagName.toUpperCase() == 'TD' && Dom.hasClass(target.parentNode,'ygtvrow'))) { 
-            target = Dom.getAncestorByTagName(target,'td'); 
-        }
-        if (Lang.isNull(target)) { return null; }
-        // If it is a spacer cell, do nothing
-        if (/\bygtv(blank)?depthcell/.test(target.className)) { return null;}
-        // If it has an id, search for the node number and see if it belongs to a node in this tree.
-        if (target.id) {
-            var m = target.id.match(/\bygtv([^\d]*)(.*)/);
-            if (m && m[2] && this._nodes[m[2]]) {
-                return target;
-            }
-        }
-        return null;
-    },
-  /**
-     * Event listener for click events
-     * @method _onClickEvent
-     * @private
-     */
-    _onClickEvent: function (ev) {
-        var self = this,
-            td = this._getEventTargetTdEl(ev),
-            node,
-            target,
-            toggle = function (force) {
-                node.focus();
-                               if (force || !node.href) {
-                                       node.toggle();
-                                       try {
-                                               Event.preventDefault(ev);
-                                       } catch (e) {
-                           // @TODO
-                           // For some reason IE8 is providing an event object with
-                           // most of the fields missing, but only when clicking on
-                           // the node's label, and only when working with inline
-                           // editing.  This generates a "Member not found" error
-                           // in that browser.  Determine if this is a browser
-                           // bug, or a problem with this code.  Already checked to
-                           // see if the problem has to do with access the event
-                           // in the outer scope, and that isn't the problem.
-                           // Maybe the markup for inline editing is broken.
-                                       }
-                }
-            };
-
-        if (!td) {
-            return; 
-        }
-
-        node = this.getNodeByElement(td);
-        if (!node) { 
-            return; 
-        }
-        
-        // exception to handle deprecated event labelClick
-        // @TODO take another look at this deprecation.  It is common for people to
-        // only be interested in the label click, so why make them have to test
-        // the node type to figure out whether the click was on the label?
-        target = Event.getTarget(ev);
-        if (Dom.hasClass(target, node.labelStyle) || Dom.getAncestorByClassName(target,node.labelStyle)) {
-            this.fireEvent('labelClick',node);
-        }
-        
-        //  If it is a toggle cell, toggle
-        if (/\bygtv[tl][mp]h?h?/.test(td.className)) {
-            toggle(true);
-        } else {
-            if (this._dblClickTimer) {
-                window.clearTimeout(this._dblClickTimer);
-                this._dblClickTimer = null;
-            } else {
-                if (this._hasDblClickSubscriber) {
-                    this._dblClickTimer = window.setTimeout(function () {
-                        self._dblClickTimer = null;
-                        if (self.fireEvent('clickEvent', {event:ev,node:node}) !== false) { 
-                            toggle();
-                        }
-                    }, 200);
-                } else {
-                    if (self.fireEvent('clickEvent', {event:ev,node:node}) !== false) { 
-                        toggle();
-                    }
-                }
-            }
-        }
-    },
-
-  /**
-     * Event listener for double-click events
-     * @method _onDblClickEvent
-     * @private
-     */
-    _onDblClickEvent: function (ev) {
-        if (!this._hasDblClickSubscriber) { return; }
-        var td = this._getEventTargetTdEl(ev);
-        if (!td) {return;}
-
-        if (!(/\bygtv[tl][mp]h?h?/.test(td.className))) {
-            this.fireEvent('dblClickEvent', {event:ev, node:this.getNodeByElement(td)}); 
-            if (this._dblClickTimer) {
-                window.clearTimeout(this._dblClickTimer);
-                this._dblClickTimer = null;
-            }
-        }
-    },
-  /**
-     * Event listener for mouse over events
-     * @method _onMouseOverEvent
-     * @private
-     */
-    _onMouseOverEvent:function (ev) {
-        var target;
-        if ((target = this._getEventTargetTdEl(ev)) && (target = this.getNodeByElement(target)) && (target = target.getToggleEl())) {
-            target.className = target.className.replace(/\bygtv([lt])([mp])\b/gi,'ygtv$1$2h');
-        }
-    },
-  /**
-     * Event listener for mouse out events
-     * @method _onMouseOutEvent
-     * @private
-     */
-    _onMouseOutEvent: function (ev) {
-        var target;
-        if ((target = this._getEventTargetTdEl(ev)) && (target = this.getNodeByElement(target)) && (target = target.getToggleEl())) {
-            target.className = target.className.replace(/\bygtv([lt])([mp])h\b/gi,'ygtv$1$2');
-        }
-    },
-  /**
-     * Event listener for key down events
-     * @method _onKeyDownEvent
-     * @private
-     */
-    _onKeyDownEvent: function (ev) {
-        var target = Event.getTarget(ev),
-            node = this.getNodeByElement(target),
-            newNode = node,
-            KEY = YAHOO.util.KeyListener.KEY;
-
-        switch(ev.keyCode) {
-            case KEY.UP:
-                do {
-                    if (newNode.previousSibling) {
-                        newNode = newNode.previousSibling;
-                    } else {
-                        newNode = newNode.parent;
-                    }
-                } while (newNode && !newNode._canHaveFocus());
-                if (newNode) { newNode.focus(); }
-                Event.preventDefault(ev);
-                break;
-            case KEY.DOWN:
-                do {
-                    if (newNode.nextSibling) {
-                        newNode = newNode.nextSibling;
-                    } else {
-                        newNode.expand();
-                        newNode = (newNode.children.length || null) && newNode.children[0];
-                    }
-                } while (newNode && !newNode._canHaveFocus);
-                if (newNode) { newNode.focus();}
-                Event.preventDefault(ev);
-                break;
-            case KEY.LEFT:
-                do {
-                    if (newNode.parent) {
-                        newNode = newNode.parent;
-                    } else {
-                        newNode = newNode.previousSibling;
-                    }
-                } while (newNode && !newNode._canHaveFocus());
-                if (newNode) { newNode.focus();}
-                Event.preventDefault(ev);
-                break;
-                       case KEY.RIGHT:
-                               var self = this,
-                                       moveFocusRight,
-                                       focusOnExpand = function (newNode) {
-                                               self.unsubscribe('expandComplete',focusOnExpand);
-                                               moveFocusRight(newNode);
-                                       };
-                               moveFocusRight = function (newNode) {
-                                       do {
-                                               if (newNode.isDynamic() && !newNode.childrenRendered) {
-                                                       self.subscribe('expandComplete',focusOnExpand);
-                                                       newNode.expand();
-                                                       newNode = null;
-                                                       break;
-                                               } else {
-                                                       newNode.expand();
-                                                       if (newNode.children.length) {
-                                                               newNode = newNode.children[0];
-                                                       } else {
-                                                               newNode = newNode.nextSibling;
-                                                       }
-                                               }
-                                       } while (newNode && !newNode._canHaveFocus());
-                                       if (newNode) { newNode.focus();}
-                               };
-                                       
-                               moveFocusRight(newNode);
-                               Event.preventDefault(ev);
-                               break;
-            case KEY.ENTER:
-                if (node.href) {
-                    if (node.target) {
-                        window.open(node.href,node.target);
-                    } else {
-                        window.location(node.href);
-                    }
-                } else {
-                    node.toggle();
-                }
-                this.fireEvent('enterKeyPressed',node);
-                Event.preventDefault(ev);
-                break;
-            case KEY.HOME:
-                newNode = this.getRoot();
-                if (newNode.children.length) {newNode = newNode.children[0];}
-                if (newNode._canHaveFocus()) { newNode.focus(); }
-                Event.preventDefault(ev);
-                break;
-            case KEY.END:
-                newNode = newNode.parent.children;
-                newNode = newNode[newNode.length -1];
-                if (newNode._canHaveFocus()) { newNode.focus(); }
-                Event.preventDefault(ev);
-                break;
-            // case KEY.PAGE_UP:
-                // break;
-            // case KEY.PAGE_DOWN:
-                // break;
-            case 107:  // plus key
-                if (ev.shiftKey) {
-                    node.parent.expandAll();
-                } else {
-                    node.expand();
-                }
-                break;
-            case 109: // minus key
-                if (ev.shiftKey) {
-                    node.parent.collapseAll();
-                } else {
-                    node.collapse();
-                }
-                break;
-            default:
-                break;
-        }
-    },
-    /**
-     * Renders the tree boilerplate and visible nodes
-     * @method render
-     */
-    render: function() {
-        var html = this.root.getHtml(),
-            el = this.getEl();
-        el.innerHTML = html;
-        if (!this._hasEvents) {
-            Event.on(el, 'click', this._onClickEvent, this, true);
-            Event.on(el, 'dblclick', this._onDblClickEvent, this, true);
-            Event.on(el, 'mouseover', this._onMouseOverEvent, this, true);
-            Event.on(el, 'mouseout', this._onMouseOutEvent, this, true);
-            Event.on(el, 'keydown', this._onKeyDownEvent, this, true);
-        }
-        this._hasEvents = true;
-    },
-    
-  /**
-     * Returns the tree's host element
-     * @method getEl
-     * @return {HTMLElement} the host element
-     */
-    getEl: function() {
-        if (! this._el) {
-            this._el = Dom.get(this.id);
-        }
-        return this._el;
-    },
-
-    /**
-     * Nodes register themselves with the tree instance when they are created.
-     * @method regNode
-     * @param node {Node} the node to register
-     * @private
-     */
-    regNode: function(node) {
-        this._nodes[node.index] = node;
-    },
-
-    /**
-     * Returns the root node of this tree
-     * @method getRoot
-     * @return {Node} the root node
-     */
-    getRoot: function() {
-        return this.root;
-    },
-
-    /**
-     * Configures this tree to dynamically load all child data
-     * @method setDynamicLoad
-     * @param {function} fnDataLoader the function that will be called to get the data
-     * @param iconMode {int} configures the icon that is displayed when a dynamic
-     * load node is expanded the first time without children.  By default, the 
-     * "collapse" icon will be used.  If set to 1, the leaf node icon will be
-     * displayed.
-     */
-    setDynamicLoad: function(fnDataLoader, iconMode) { 
-        this.root.setDynamicLoad(fnDataLoader, iconMode);
-    },
-
-    /**
-     * Expands all child nodes.  Note: this conflicts with the "multiExpand"
-     * node property.  If expand all is called in a tree with nodes that
-     * do not allow multiple siblings to be displayed, only the last sibling
-     * will be expanded.
-     * @method expandAll
-     */
-    expandAll: function() { 
-        if (!this.locked) {
-            this.root.expandAll(); 
-        }
-    },
-
-    /**
-     * Collapses all expanded child nodes in the entire tree.
-     * @method collapseAll
-     */
-    collapseAll: function() { 
-        if (!this.locked) {
-            this.root.collapseAll(); 
-        }
-    },
-
-    /**
-     * Returns a node in the tree that has the specified index (this index
-     * is created internally, so this function probably will only be used
-     * in html generated for a given node.)
-     * @method getNodeByIndex
-     * @param {int} nodeIndex the index of the node wanted
-     * @return {Node} the node with index=nodeIndex, null if no match
-     */
-    getNodeByIndex: function(nodeIndex) {
-        var n = this._nodes[nodeIndex];
-        return (n) ? n : null;
-    },
-
-    /**
-     * Returns a node that has a matching property and value in the data
-     * object that was passed into its constructor.
-     * @method getNodeByProperty
-     * @param {object} property the property to search (usually a string)
-     * @param {object} value the value we want to find (usuall an int or string)
-     * @return {Node} the matching node, null if no match
-     */
-    getNodeByProperty: function(property, value) {
-        for (var i in this._nodes) {
-            if (this._nodes.hasOwnProperty(i)) {
-                var n = this._nodes[i];
-                if ((property in n && n[property] == value) || (n.data && value == n.data[property])) {
-                    return n;
-                }
-            }
-        }
-
-        return null;
-    },
-
-    /**
-     * Returns a collection of nodes that have a matching property 
-     * and value in the data object that was passed into its constructor.  
-     * @method getNodesByProperty
-     * @param {object} property the property to search (usually a string)
-     * @param {object} value the value we want to find (usuall an int or string)
-     * @return {Array} the matching collection of nodes, null if no match
-     */
-    getNodesByProperty: function(property, value) {
-        var values = [];
-        for (var i in this._nodes) {
-            if (this._nodes.hasOwnProperty(i)) {
-                var n = this._nodes[i];
-                if ((property in n && n[property] == value) || (n.data && value == n.data[property])) {
-                    values.push(n);
-                }
-            }
-        }
-
-        return (values.length) ? values : null;
-    },
-
-
-    /**
-     * Returns a collection of nodes that have passed the test function
-        * passed as its only argument.  
-        * The function will receive a reference to each node to be tested.  
-     * @method getNodesBy
-     * @param {function} a boolean function that receives a Node instance and returns true to add the node to the results list
-     * @return {Array} the matching collection of nodes, null if no match
-     */
-    getNodesBy: function(fn) {
-        var values = [];
-        for (var i in this._nodes) {
-            if (this._nodes.hasOwnProperty(i)) {
-                var n = this._nodes[i];
-                if (fn(n)) {
-                    values.push(n);
-                }
-            }
-        }
-        return (values.length) ? values : null;
-    },
-    /**
-     * Returns the treeview node reference for an ancestor element
-     * of the node, or null if it is not contained within any node
-     * in this tree.
-     * @method getNodeByElement
-     * @param el {HTMLElement} the element to test
-     * @return {YAHOO.widget.Node} a node reference or null
-     */
-    getNodeByElement: function(el) {
-
-        var p=el, m, re=/ygtv([^\d]*)(.*)/;
-
-        do {
-
-            if (p && p.id) {
-                m = p.id.match(re);
-                if (m && m[2]) {
-                    return this.getNodeByIndex(m[2]);
-                }
-            }
-
-            p = p.parentNode;
-
-            if (!p || !p.tagName) {
-                break;
-            }
-
-        } 
-        while (p.id !== this.id && p.tagName.toLowerCase() !== "body");
-
-        return null;
-    },
-       
-    /**
-     * When in singleNodeHighlight it returns the node highlighted
-        * or null if none.  Returns null if singleNodeHighlight is false.
-     * @method getHighlightedNode
-     * @return {YAHOO.widget.Node} a node reference or null
-     */
-       getHighlightedNode: function() {
-               return this._currentlyHighlighted;
-       },
-
-
-    /**
-     * Removes the node and its children, and optionally refreshes the 
-     * branch of the tree that was affected.
-     * @method removeNode
-     * @param {Node} node to remove
-     * @param {boolean} autoRefresh automatically refreshes branch if true
-     * @return {boolean} False is there was a problem, true otherwise.
-     */
-    removeNode: function(node, autoRefresh) { 
-
-        // Don't delete the root node
-        if (node.isRoot()) {
-            return false;
-        }
-
-        // Get the branch that we may need to refresh
-        var p = node.parent;
-        if (p.parent) {
-            p = p.parent;
-        }
-
-        // Delete the node and its children
-        this._deleteNode(node);
-
-        // Refresh the parent of the parent
-        if (autoRefresh && p && p.childrenRendered) {
-            p.refresh();
-        }
-
-        return true;
-    },
-
-    /**
-     * wait until the animation is complete before deleting 
-     * to avoid javascript errors
-     * @method _removeChildren_animComplete
-     * @param o the custom event payload
-     * @private
-     */
-    _removeChildren_animComplete: function(o) {
-        this.unsubscribe(this._removeChildren_animComplete);
-        this.removeChildren(o.node);
-    },
-
-    /**
-     * Deletes this nodes child collection, recursively.  Also collapses
-     * the node, and resets the dynamic load flag.  The primary use for
-     * this method is to purge a node and allow it to fetch its data
-     * dynamically again.
-     * @method removeChildren
-     * @param {Node} node the node to purge
-     */
-    removeChildren: function(node) { 
-
-        if (node.expanded) {
-            // wait until the animation is complete before deleting to
-            // avoid javascript errors
-            if (this._collapseAnim) {
-                this.subscribe("animComplete", 
-                        this._removeChildren_animComplete, this, true);
-                Widget.Node.prototype.collapse.call(node);
-                return;
-            }
-
-            node.collapse();
-        }
-
-        while (node.children.length) {
-            this._deleteNode(node.children[0]);
-        }
-
-        if (node.isRoot()) {
-            Widget.Node.prototype.expand.call(node);
-        }
-
-        node.childrenRendered = false;
-        node.dynamicLoadComplete = false;
-
-        node.updateIcon();
-    },
-
-    /**
-     * Deletes the node and recurses children
-     * @method _deleteNode
-     * @private
-     */
-    _deleteNode: function(node) { 
-        // Remove all the child nodes first
-        this.removeChildren(node);
-
-        // Remove the node from the tree
-        this.popNode(node);
-    },
-
-    /**
-     * Removes the node from the tree, preserving the child collection 
-     * to make it possible to insert the branch into another part of the 
-     * tree, or another tree.
-     * @method popNode
-     * @param {Node} node to remove
-     */
-    popNode: function(node) { 
-        var p = node.parent;
-
-        // Update the parent's collection of children
-        var a = [];
-
-        for (var i=0, len=p.children.length;i<len;++i) {
-            if (p.children[i] != node) {
-                a[a.length] = p.children[i];
-            }
-        }
-
-        p.children = a;
-
-        // reset the childrenRendered flag for the parent
-        p.childrenRendered = false;
-
-         // Update the sibling relationship
-        if (node.previousSibling) {
-            node.previousSibling.nextSibling = node.nextSibling;
-        }
-
-        if (node.nextSibling) {
-            node.nextSibling.previousSibling = node.previousSibling;
-        }
-
-               if (this.currentFocus == node) {
-                       this.currentFocus = null;
-               }
-               if (this._currentlyHighlighted == node) {
-                       this._currentlyHighlighted = null;
-               }
-
-        node.parent = null;
-        node.previousSibling = null;
-        node.nextSibling = null;
-        node.tree = null;
-
-        // Update the tree's node collection 
-        delete this._nodes[node.index];
-    },
-
-    /**
-    * Nulls out the entire TreeView instance and related objects, removes attached
-    * event listeners, and clears out DOM elements inside the container. After
-    * calling this method, the instance reference should be expliclitly nulled by
-    * implementer, as in myDataTable = null. Use with caution!
-    *
-    * @method destroy
-    */
-    destroy : function() {
-        // Since the label editor can be separated from the main TreeView control
-        // the destroy method for it might not be there.
-        if (this._destroyEditor) { this._destroyEditor(); }
-        var el = this.getEl();
-        Event.removeListener(el,'click');
-        Event.removeListener(el,'dblclick');
-        Event.removeListener(el,'mouseover');
-        Event.removeListener(el,'mouseout');
-        Event.removeListener(el,'keydown');
-        for (var i = 0 ; i < this._nodes.length; i++) {
-            var node = this._nodes[i];
-            if (node && node.destroy) {node.destroy(); }
-        }
-        el.innerHTML = '';
-        this._hasEvents = false;
-    },
-        
-            
-
-
-    /**
-     * TreeView instance toString
-     * @method toString
-     * @return {string} string representation of the tree
-     */
-    toString: function() {
-        return "TreeView " + this.id;
-    },
-
-    /**
-     * Count of nodes in tree
-     * @method getNodeCount
-     * @return {int} number of nodes in the tree
-     */
-    getNodeCount: function() {
-        return this.getRoot().getNodeCount();
-    },
-
-    /**
-     * Returns an object which could be used to rebuild the tree.
-     * It can be passed to the tree constructor to reproduce the same tree.
-     * It will return false if any node loads dynamically, regardless of whether it is loaded or not.
-     * @method getTreeDefinition
-     * @return {Object | false}  definition of the tree or false if any node is defined as dynamic
-     */
-    getTreeDefinition: function() {
-        return this.getRoot().getNodeDefinition();
-    },
-
-    /**
-     * Abstract method that is executed when a node is expanded
-     * @method onExpand
-     * @param node {Node} the node that was expanded
-     * @deprecated use treeobj.subscribe("expand") instead
-     */
-    onExpand: function(node) { },
-
-    /**
-     * Abstract method that is executed when a node is collapsed.
-     * @method onCollapse
-     * @param node {Node} the node that was collapsed.
-     * @deprecated use treeobj.subscribe("collapse") instead
-     */
-    onCollapse: function(node) { },
-    
-    /**
-    * Sets the value of a property for all loaded nodes in the tree.
-    * @method setNodesProperty
-    * @param name {string} Name of the property to be set
-    * @param value {any} value to be set
-    * @param refresh {boolean} if present and true, it does a refresh
-    */
-    setNodesProperty: function(name, value, refresh) {
-        this.root.setNodesProperty(name,value);
-        if (refresh) {
-            this.root.refresh();
-        }
-    },
-    /**
-    * Event listener to toggle node highlight.
-    * Can be assigned as listener to clickEvent, dblClickEvent and enterKeyPressed.
-    * It returns false to prevent the default action.
-    * @method onEventToggleHighlight
-    * @param oArgs {any} it takes the arguments of any of the events mentioned above
-    * @return {false} Always cancels the default action for the event
-    */
-    onEventToggleHighlight: function (oArgs) {
-        var node;
-        if ('node' in oArgs && oArgs.node instanceof Widget.Node) {
-            node = oArgs.node;
-        } else if (oArgs instanceof Widget.Node) {
-            node = oArgs;
-        } else {
-            return false;
-        }
-        node.toggleHighlight();
-        return false;
-    }
-        
-
-};
-
-/* Backwards compatibility aliases */
-var PROT = TV.prototype;
- /**
-     * Renders the tree boilerplate and visible nodes.
-     *  Alias for render
-     * @method draw
-     * @deprecated Use render instead
-     */
-PROT.draw = PROT.render;
-
-/* end backwards compatibility aliases */
-
-YAHOO.augment(TV, YAHOO.util.EventProvider);
-
-/**
- * Running count of all nodes created in all trees.  This is 
- * used to provide unique identifies for all nodes.  Deleting
- * nodes does not change the nodeCount.
- * @property YAHOO.widget.TreeView.nodeCount
- * @type int
- * @static
- */
-TV.nodeCount = 0;
-
-/**
- * Global cache of tree instances
- * @property YAHOO.widget.TreeView.trees
- * @type Array
- * @static
- * @private
- */
-TV.trees = [];
-
-/**
- * Global method for getting a tree by its id.  Used in the generated
- * tree html.
- * @method YAHOO.widget.TreeView.getTree
- * @param treeId {String} the id of the tree instance
- * @return {TreeView} the tree instance requested, null if not found.
- * @static
- */
-TV.getTree = function(treeId) {
-    var t = TV.trees[treeId];
-    return (t) ? t : null;
-};
-
-
-/**
- * Global method for getting a node by its id.  Used in the generated
- * tree html.
- * @method YAHOO.widget.TreeView.getNode
- * @param treeId {String} the id of the tree instance
- * @param nodeIndex {String} the index of the node to return
- * @return {Node} the node instance requested, null if not found
- * @static
- */
-TV.getNode = function(treeId, nodeIndex) {
-    var t = TV.getTree(treeId);
-    return (t) ? t.getNodeByIndex(nodeIndex) : null;
-};
-
-
-/**
-     * Class name assigned to elements that have the focus
-     *
-     * @property TreeView.FOCUS_CLASS_NAME
-     * @type String
-     * @static
-     * @final
-     * @default "ygtvfocus"
-
-    */ 
-TV.FOCUS_CLASS_NAME = 'ygtvfocus';
-
-
-
-})();
-
-(function () {
-    var Dom = YAHOO.util.Dom,
-        Lang = YAHOO.lang,
-        Event = YAHOO.util.Event;
-/**
- * The base class for all tree nodes.  The node's presentation and behavior in
- * response to mouse events is handled in Node subclasses.
- * @namespace YAHOO.widget
- * @class Node
- * @uses YAHOO.util.EventProvider
- * @param oData {object} a string or object containing the data that will
- * be used to render this node, and any custom attributes that should be
- * stored with the node (which is available in noderef.data).
- * All values in oData will be used to set equally named properties in the node
- * as long as the node does have such properties, they are not undefined, private or functions,
- * the rest of the values will be stored in noderef.data
- * @param oParent {Node} this node's parent node
- * @param expanded {boolean} the initial expanded/collapsed state (deprecated, use oData.expanded)
- * @constructor
- */
-YAHOO.widget.Node = function(oData, oParent, expanded) {
-    if (oData) { this.init(oData, oParent, expanded); }
-};
-
-YAHOO.widget.Node.prototype = {
-
-    /**
-     * The index for this instance obtained from global counter in YAHOO.widget.TreeView.
-     * @property index
-     * @type int
-     */
-    index: 0,
-
-    /**
-     * This node's child node collection.
-     * @property children
-     * @type Node[] 
-     */
-    children: null,
-
-    /**
-     * Tree instance this node is part of
-     * @property tree
-     * @type TreeView
-     */
-    tree: null,
-
-    /**
-     * The data linked to this node.  This can be any object or primitive
-     * value, and the data can be used in getNodeHtml().
-     * @property data
-     * @type object
-     */
-    data: null,
-
-    /**
-     * Parent node
-     * @property parent
-     * @type Node
-     */
-    parent: null,
-
-    /**
-     * The depth of this node.  We start at -1 for the root node.
-     * @property depth
-     * @type int
-     */
-    depth: -1,
-
-    /**
-     * The node's expanded/collapsed state
-     * @property expanded
-     * @type boolean
-     */
-    expanded: false,
-
-    /**
-     * Can multiple children be expanded at once?
-     * @property multiExpand
-     * @type boolean
-     */
-    multiExpand: true,
-
-    /**
-     * Should we render children for a collapsed node?  It is possible that the
-     * implementer will want to render the hidden data...  @todo verify that we 
-     * need this, and implement it if we do.
-     * @property renderHidden
-     * @type boolean
-     */
-    renderHidden: false,
-
-    /**
-     * This flag is set to true when the html is generated for this node's
-     * children, and set to false when new children are added.
-     * @property childrenRendered
-     * @type boolean
-     */
-    childrenRendered: false,
-
-    /**
-     * Dynamically loaded nodes only fetch the data the first time they are
-     * expanded.  This flag is set to true once the data has been fetched.
-     * @property dynamicLoadComplete
-     * @type boolean
-     */
-    dynamicLoadComplete: false,
-
-    /**
-     * This node's previous sibling
-     * @property previousSibling
-     * @type Node
-     */
-    previousSibling: null,
-
-    /**
-     * This node's next sibling
-     * @property nextSibling
-     * @type Node
-     */
-    nextSibling: null,
-
-    /**
-     * We can set the node up to call an external method to get the child
-     * data dynamically.
-     * @property _dynLoad
-     * @type boolean
-     * @private
-     */
-    _dynLoad: false,
-
-    /**
-     * Function to execute when we need to get this node's child data.
-     * @property dataLoader
-     * @type function
-     */
-    dataLoader: null,
-
-    /**
-     * This is true for dynamically loading nodes while waiting for the
-     * callback to return.
-     * @property isLoading
-     * @type boolean
-     */
-    isLoading: false,
-
-    /**
-     * The toggle/branch icon will not show if this is set to false.  This
-     * could be useful if the implementer wants to have the child contain
-     * extra info about the parent, rather than an actual node.
-     * @property hasIcon
-     * @type boolean
-     */
-    hasIcon: true,
-
-    /**
-     * Used to configure what happens when a dynamic load node is expanded
-     * and we discover that it does not have children.  By default, it is
-     * treated as if it still could have children (plus/minus icon).  Set
-     * iconMode to have it display like a leaf node instead.
-     * @property iconMode
-     * @type int
-     */
-    iconMode: 0,
-
-    /**
-     * Specifies whether or not the content area of the node should be allowed
-     * to wrap.
-     * @property nowrap
-     * @type boolean
-     * @default false
-     */
-    nowrap: false,
-
- /**
-     * If true, the node will alway be rendered as a leaf node.  This can be
-     * used to override the presentation when dynamically loading the entire
-     * tree.  Setting this to true also disables the dynamic load call for the
-     * node.
-     * @property isLeaf
-     * @type boolean
-     * @default false
-     */
-    isLeaf: false,
-
-/**
-     * The CSS class for the html content container.  Defaults to ygtvhtml, but 
-     * can be overridden to provide a custom presentation for a specific node.
-     * @property contentStyle
-     * @type string
-     */
-    contentStyle: "",
-
-
-    /**
-     * The generated id that will contain the data passed in by the implementer.
-     * @property contentElId
-     * @type string
-     */
-    contentElId: null,
-    
-/** 
- * Enables node highlighting.  If true, the node can be highlighted and/or propagate highlighting
- * @property enableHighlight
- * @type boolean
- * @default true
- */
-    enableHighlight: true,
-    
-/** 
- * Stores the highlight state.  Can be any of:
- * <ul>
- * <li>0 - not highlighted</li>
- * <li>1 - highlighted</li>
- * <li>2 - some children highlighted</li>
- * </ul>
- * @property highlightState
- * @type integer
- * @default 0
- */
- highlightState: 0,
- /**
- * Tells whether highlighting will be propagated up to the parents of the clicked node
- * @property propagateHighlightUp
- * @type boolean
- * @default false
- */
- propagateHighlightUp: false,
- /**
- * Tells whether highlighting will be propagated down to the children of the clicked node
- * @property propagateHighlightDown
- * @type boolean
- * @default false
- */
- propagateHighlightDown: false,
- /**
-  * User-defined className to be added to the Node
-  * @property className
-  * @type string
-  * @default null
-  */
- className: null,
- /**
-     * The node type
-     * @property _type
-     * @private
-     * @type string
-     * @default "Node"
-*/
-    _type: "Node",
-
-    /*
-    spacerPath: "http://l.yimg.com/a/i/space.gif",
-    expandedText: "Expanded",
-    collapsedText: "Collapsed",
-    loadingText: "Loading",
-    */
-
-    /**
-     * Initializes this node, gets some of the properties from the parent
-     * @method init
-     * @param oData {object} a string or object containing the data that will
-     * be used to render this node
-     * @param oParent {Node} this node's parent node
-     * @param expanded {boolean} the initial expanded/collapsed state
-     */
-    init: function(oData, oParent, expanded) {
-
-        this.data = {};
-        this.children   = [];
-        this.index      = YAHOO.widget.TreeView.nodeCount;
-        ++YAHOO.widget.TreeView.nodeCount;
-        this.contentElId = "ygtvcontentel" + this.index;
-        
-        if (Lang.isObject(oData)) {
-            for (var property in oData) {
-                if (oData.hasOwnProperty(property)) {
-                    if (property.charAt(0) != '_'  && !Lang.isUndefined(this[property]) && !Lang.isFunction(this[property]) ) {
-                        this[property] = oData[property];
-                    } else {
-                        this.data[property] = oData[property];
-                    }
-                }
-            }
-        }
-        if (!Lang.isUndefined(expanded) ) { this.expanded  = expanded;  }
-        
-
-        /**
-         * The parentChange event is fired when a parent element is applied
-         * to the node.  This is useful if you need to apply tree-level
-         * properties to a tree that need to happen if a node is moved from
-         * one tree to another.
-         *
-         * @event parentChange
-         * @type CustomEvent
-         */
-        this.createEvent("parentChange", this);
-
-        // oParent should never be null except when we create the root node.
-        if (oParent) {
-            oParent.appendChild(this);
-        }
-    },
-
-    /**
-     * Certain properties for the node cannot be set until the parent
-     * is known. This is called after the node is inserted into a tree.
-     * the parent is also applied to this node's children in order to
-     * make it possible to move a branch from one tree to another.
-     * @method applyParent
-     * @param {Node} parentNode this node's parent node
-     * @return {boolean} true if the application was successful
-     */
-    applyParent: function(parentNode) {
-        if (!parentNode) {
-            return false;
-        }
-
-        this.tree   = parentNode.tree;
-        this.parent = parentNode;
-        this.depth  = parentNode.depth + 1;
-
-        // @todo why was this put here.  This causes new nodes added at the
-        // root level to lose the menu behavior.
-        // if (! this.multiExpand) {
-            // this.multiExpand = parentNode.multiExpand;
-        // }
-
-        this.tree.regNode(this);
-        parentNode.childrenRendered = false;
-
-        // cascade update existing children
-        for (var i=0, len=this.children.length;i<len;++i) {
-            this.children[i].applyParent(this);
-        }
-
-        this.fireEvent("parentChange");
-
-        return true;
-    },
-
-    /**
-     * Appends a node to the child collection.
-     * @method appendChild
-     * @param childNode {Node} the new node
-     * @return {Node} the child node
-     * @private
-     */
-    appendChild: function(childNode) {
-        if (this.hasChildren()) {
-            var sib = this.children[this.children.length - 1];
-            sib.nextSibling = childNode;
-            childNode.previousSibling = sib;
-        }
-        this.children[this.children.length] = childNode;
-        childNode.applyParent(this);
-
-        // part of the IE display issue workaround. If child nodes
-        // are added after the initial render, and the node was
-        // instantiated with expanded = true, we need to show the
-        // children div now that the node has a child.
-        if (this.childrenRendered && this.expanded) {
-            this.getChildrenEl().style.display = "";
-        }
-
-        return childNode;
-    },
-
-    /**
-     * Appends this node to the supplied node's child collection
-     * @method appendTo
-     * @param parentNode {Node} the node to append to.
-     * @return {Node} The appended node
-     */
-    appendTo: function(parentNode) {
-        return parentNode.appendChild(this);
-    },
-
-    /**
-    * Inserts this node before this supplied node
-    * @method insertBefore
-    * @param node {Node} the node to insert this node before
-    * @return {Node} the inserted node
-    */
-    insertBefore: function(node) {
-        var p = node.parent;
-        if (p) {
-
-            if (this.tree) {
-                this.tree.popNode(this);
-            }
-
-            var refIndex = node.isChildOf(p);
-            p.children.splice(refIndex, 0, this);
-            if (node.previousSibling) {
-                node.previousSibling.nextSibling = this;
-            }
-            this.previousSibling = node.previousSibling;
-            this.nextSibling = node;
-            node.previousSibling = this;
-
-            this.applyParent(p);
-        }
-
-        return this;
-    },
-    /**
-    * Inserts this node after the supplied node
-    * @method insertAfter
-    * @param node {Node} the node to insert after
-    * @return {Node} the inserted node
-    */
-    insertAfter: function(node) {
-        var p = node.parent;
-        if (p) {
-
-            if (this.tree) {
-                this.tree.popNode(this);
-            }
-
-            var refIndex = node.isChildOf(p);
-
-            if (!node.nextSibling) {
-                this.nextSibling = null;
-                return this.appendTo(p);
-            }
-
-            p.children.splice(refIndex + 1, 0, this);
-
-            node.nextSibling.previousSibling = this;
-            this.previousSibling = node;
-            this.nextSibling = node.nextSibling;
-            node.nextSibling = this;
-
-            this.applyParent(p);
-        }
-
-        return this;
-    },
-
-    /**
-    * Returns true if the Node is a child of supplied Node
-    * @method isChildOf
-    * @param parentNode {Node} the Node to check
-    * @return {boolean} The node index if this Node is a child of 
-    *                   supplied Node, else -1.
-    * @private
-    */
-    isChildOf: function(parentNode) {
-        if (parentNode && parentNode.children) {
-            for (var i=0, len=parentNode.children.length; i<len ; ++i) {
-                if (parentNode.children[i] === this) {
-                    return i;
-                }
-            }
-        }
-
-        return -1;
-    },
-
-    /**
-     * Returns a node array of this node's siblings, null if none.
-     * @method getSiblings
-     * @return Node[]
-     */
-    getSiblings: function() {
-        var sib =  this.parent.children.slice(0);
-        for (var i=0;i < sib.length && sib[i] != this;i++) {}
-        sib.splice(i,1);
-        if (sib.length) { return sib; }
-        return null;
-    },
-
-    /**
-     * Shows this node's children
-     * @method showChildren
-     */
-    showChildren: function() {
-        if (!this.tree.animateExpand(this.getChildrenEl(), this)) {
-            if (this.hasChildren()) {
-                this.getChildrenEl().style.display = "";
-            }
-        }
-    },
-
-    /**
-     * Hides this node's children
-     * @method hideChildren
-     */
-    hideChildren: function() {
-
-        if (!this.tree.animateCollapse(this.getChildrenEl(), this)) {
-            this.getChildrenEl().style.display = "none";
-        }
-    },
-
-    /**
-     * Returns the id for this node's container div
-     * @method getElId
-     * @return {string} the element id
-     */
-    getElId: function() {
-        return "ygtv" + this.index;
-    },
-
-    /**
-     * Returns the id for this node's children div
-     * @method getChildrenElId
-     * @return {string} the element id for this node's children div
-     */
-    getChildrenElId: function() {
-        return "ygtvc" + this.index;
-    },
-
-    /**
-     * Returns the id for this node's toggle element
-     * @method getToggleElId
-     * @return {string} the toggel element id
-     */
-    getToggleElId: function() {
-        return "ygtvt" + this.index;
-    },
-
-
-    /*
-     * Returns the id for this node's spacer image.  The spacer is positioned
-     * over the toggle and provides feedback for screen readers.
-     * @method getSpacerId
-     * @return {string} the id for the spacer image
-     */
-    /*
-    getSpacerId: function() {
-        return "ygtvspacer" + this.index;
-    }, 
-    */
-
-    /**
-     * Returns this node's container html element
-     * @method getEl
-     * @return {HTMLElement} the container html element
-     */
-    getEl: function() {
-        return Dom.get(this.getElId());
-    },
-
-    /**
-     * Returns the div that was generated for this node's children
-     * @method getChildrenEl
-     * @return {HTMLElement} this node's children div
-     */
-    getChildrenEl: function() {
-        return Dom.get(this.getChildrenElId());
-    },
-
-    /**
-     * Returns the element that is being used for this node's toggle.
-     * @method getToggleEl
-     * @return {HTMLElement} this node's toggle html element
-     */
-    getToggleEl: function() {
-        return Dom.get(this.getToggleElId());
-    },
-    /**
-    * Returns the outer html element for this node's content
-    * @method getContentEl
-    * @return {HTMLElement} the element
-    */
-    getContentEl: function() { 
-        return Dom.get(this.contentElId);
-    },
-
-
-    /*
-     * Returns the element that is being used for this node's spacer.
-     * @method getSpacer
-     * @return {HTMLElement} this node's spacer html element
-     */
-    /*
-    getSpacer: function() {
-        return document.getElementById( this.getSpacerId() ) || {};
-    },
-    */
-
-    /*
-    getStateText: function() {
-        if (this.isLoading) {
-            return this.loadingText;
-        } else if (this.hasChildren(true)) {
-            if (this.expanded) {
-                return this.expandedText;
-            } else {
-                return this.collapsedText;
-            }
-        } else {
-            return "";
-        }
-    },
-    */
-
-  /**
-     * Hides this nodes children (creating them if necessary), changes the toggle style.
-     * @method collapse
-     */
-    collapse: function() {
-        // Only collapse if currently expanded
-        if (!this.expanded) { return; }
-
-        // fire the collapse event handler
-        var ret = this.tree.onCollapse(this);
-
-        if (false === ret) {
-            return;
-        }
-
-        ret = this.tree.fireEvent("collapse", this);
-
-        if (false === ret) {
-            return;
-        }
-
-
-        if (!this.getEl()) {
-            this.expanded = false;
-        } else {
-            // hide the child div
-            this.hideChildren();
-            this.expanded = false;
-
-            this.updateIcon();
-        }
-
-        // this.getSpacer().title = this.getStateText();
-
-        ret = this.tree.fireEvent("collapseComplete", this);
-
-    },
-
-    /**
-     * Shows this nodes children (creating them if necessary), changes the
-     * toggle style, and collapses its siblings if multiExpand is not set.
-     * @method expand
-     */
-    expand: function(lazySource) {
-        // Only expand if currently collapsed.
-        if (this.isLoading || (this.expanded && !lazySource)) { 
-            return; 
-        }
-
-        var ret = true;
-
-        // When returning from the lazy load handler, expand is called again
-        // in order to render the new children.  The "expand" event already
-        // fired before fething the new data, so we need to skip it now.
-        if (!lazySource) {
-            // fire the expand event handler
-            ret = this.tree.onExpand(this);
-
-            if (false === ret) {
-                return;
-            }
-            
-            ret = this.tree.fireEvent("expand", this);
-        }
-
-        if (false === ret) {
-            return;
-        }
-
-        if (!this.getEl()) {
-            this.expanded = true;
-            return;
-        }
-
-        if (!this.childrenRendered) {
-            this.getChildrenEl().innerHTML = this.renderChildren();
-        } else {
-        }
-
-        this.expanded = true;
-
-        this.updateIcon();
-
-        // this.getSpacer().title = this.getStateText();
-
-        // We do an extra check for children here because the lazy
-        // load feature can expose nodes that have no children.
-
-        // if (!this.hasChildren()) {
-        if (this.isLoading) {
-            this.expanded = false;
-            return;
-        }
-
-        if (! this.multiExpand) {
-            var sibs = this.getSiblings();
-            for (var i=0; sibs && i<sibs.length; ++i) {
-                if (sibs[i] != this && sibs[i].expanded) { 
-                    sibs[i].collapse(); 
-                }
-            }
-        }
-
-        this.showChildren();
-
-        ret = this.tree.fireEvent("expandComplete", this);
-    },
-
-    updateIcon: function() {
-        if (this.hasIcon) {
-            var el = this.getToggleEl();
-            if (el) {
-                el.className = el.className.replace(/\bygtv(([tl][pmn]h?)|(loading))\b/gi,this.getStyle());
-            }
-        }
-    },
-
-    /**
-     * Returns the css style name for the toggle
-     * @method getStyle
-     * @return {string} the css class for this node's toggle
-     */
-    getStyle: function() {
-        if (this.isLoading) {
-            return "ygtvloading";
-        } else {
-            // location top or bottom, middle nodes also get the top style
-            var loc = (this.nextSibling) ? "t" : "l";
-
-            // type p=plus(expand), m=minus(collapase), n=none(no children)
-            var type = "n";
-            if (this.hasChildren(true) || (this.isDynamic() && !this.getIconMode())) {
-            // if (this.hasChildren(true)) {
-                type = (this.expanded) ? "m" : "p";
-            }
-
-            return "ygtv" + loc + type;
-        }
-    },
-
-    /**
-     * Returns the hover style for the icon
-     * @return {string} the css class hover state
-     * @method getHoverStyle
-     */
-    getHoverStyle: function() { 
-        var s = this.getStyle();
-        if (this.hasChildren(true) && !this.isLoading) { 
-            s += "h"; 
-        }
-        return s;
-    },
-
-    /**
-     * Recursively expands all of this node's children.
-     * @method expandAll
-     */
-    expandAll: function() { 
-        var l = this.children.length;
-        for (var i=0;i<l;++i) {
-            var c = this.children[i];
-            if (c.isDynamic()) {
-                break;
-            } else if (! c.multiExpand) {
-                break;
-            } else {
-                c.expand();
-                c.expandAll();
-            }
-        }
-    },
-
-    /**
-     * Recursively collapses all of this node's children.
-     * @method collapseAll
-     */
-    collapseAll: function() { 
-        for (var i=0;i<this.children.length;++i) {
-            this.children[i].collapse();
-            this.children[i].collapseAll();
-        }
-    },
-
-    /**
-     * Configures this node for dynamically obtaining the child data
-     * when the node is first expanded.  Calling it without the callback
-     * will turn off dynamic load for the node.
-     * @method setDynamicLoad
-     * @param fmDataLoader {function} the function that will be used to get the data.
-     * @param iconMode {int} configures the icon that is displayed when a dynamic
-     * load node is expanded the first time without children.  By default, the 
-     * "collapse" icon will be used.  If set to 1, the leaf node icon will be
-     * displayed.
-     */
-    setDynamicLoad: function(fnDataLoader, iconMode) { 
-        if (fnDataLoader) {
-            this.dataLoader = fnDataLoader;
-            this._dynLoad = true;
-        } else {
-            this.dataLoader = null;
-            this._dynLoad = false;
-        }
-
-        if (iconMode) {
-            this.iconMode = iconMode;
-        }
-    },
-
-    /**
-     * Evaluates if this node is the root node of the tree
-     * @method isRoot
-     * @return {boolean} true if this is the root node
-     */
-    isRoot: function() { 
-        return (this == this.tree.root);
-    },
-
-    /**
-     * Evaluates if this node's children should be loaded dynamically.  Looks for
-     * the property both in this instance and the root node.  If the tree is
-     * defined to load all children dynamically, the data callback function is
-     * defined in the root node
-     * @method isDynamic
-     * @return {boolean} true if this node's children are to be loaded dynamically
-     */
-    isDynamic: function() { 
-        if (this.isLeaf) {
-            return false;
-        } else {
-            return (!this.isRoot() && (this._dynLoad || this.tree.root._dynLoad));
-            // return lazy;
-        }
-    },
-
-    /**
-     * Returns the current icon mode.  This refers to the way childless dynamic
-     * load nodes appear (this comes into play only after the initial dynamic
-     * load request produced no children).
-     * @method getIconMode
-     * @return {int} 0 for collapse style, 1 for leaf node style
-     */
-    getIconMode: function() {
-        return (this.iconMode || this.tree.root.iconMode);
-    },
-
-    /**
-     * Checks if this node has children.  If this node is lazy-loading and the
-     * children have not been rendered, we do not know whether or not there
-     * are actual children.  In most cases, we need to assume that there are
-     * children (for instance, the toggle needs to show the expandable 
-     * presentation state).  In other times we want to know if there are rendered
-     * children.  For the latter, "checkForLazyLoad" should be false.
-     * @method hasChildren
-     * @param checkForLazyLoad {boolean} should we check for unloaded children?
-     * @return {boolean} true if this has children or if it might and we are
-     * checking for this condition.
-     */
-    hasChildren: function(checkForLazyLoad) { 
-        if (this.isLeaf) {
-            return false;
-        } else {
-            return ( this.children.length > 0 || 
-                               (checkForLazyLoad && this.isDynamic() && !this.dynamicLoadComplete) 
-                       );
-        }
-    },
-
-    /**
-     * Expands if node is collapsed, collapses otherwise.
-     * @method toggle
-     */
-    toggle: function() {
-        if (!this.tree.locked && ( this.hasChildren(true) || this.isDynamic()) ) {
-            if (this.expanded) { this.collapse(); } else { this.expand(); }
-        }
-    },
-
-    /**
-     * Returns the markup for this node and its children.
-     * @method getHtml
-     * @return {string} the markup for this node and its expanded children.
-     */
-    getHtml: function() {
-
-        this.childrenRendered = false;
-
-        return ['<div class="ygtvitem" id="' , this.getElId() , '">' ,this.getNodeHtml() , this.getChildrenHtml() ,'</div>'].join("");
-    },
-
-    /**
-     * Called when first rendering the tree.  We always build the div that will
-     * contain this nodes children, but we don't render the children themselves
-     * unless this node is expanded.
-     * @method getChildrenHtml
-     * @return {string} the children container div html and any expanded children
-     * @private
-     */
-    getChildrenHtml: function() {
-
-
-        var sb = [];
-        sb[sb.length] = '<div class="ygtvchildren" id="' + this.getChildrenElId() + '"';
-
-        // This is a workaround for an IE rendering issue, the child div has layout
-        // in IE, creating extra space if a leaf node is created with the expanded
-        // property set to true.
-        if (!this.expanded || !this.hasChildren()) {
-            sb[sb.length] = ' style="display:none;"';
-        }
-        sb[sb.length] = '>';
-
-
-        // Don't render the actual child node HTML unless this node is expanded.
-        if ( (this.hasChildren(true) && this.expanded) ||
-                (this.renderHidden && !this.isDynamic()) ) {
-            sb[sb.length] = this.renderChildren();
-        }
-
-        sb[sb.length] = '</div>';
-
-        return sb.join("");
-    },
-
-    /**
-     * Generates the markup for the child nodes.  This is not done until the node
-     * is expanded.
-     * @method renderChildren
-     * @return {string} the html for this node's children
-     * @private
-     */
-    renderChildren: function() {
-
-
-        var node = this;
-
-        if (this.isDynamic() && !this.dynamicLoadComplete) {
-            this.isLoading = true;
-            this.tree.locked = true;
-
-            if (this.dataLoader) {
-
-                setTimeout( 
-                    function() {
-                        node.dataLoader(node, 
-                            function() { 
-                                node.loadComplete(); 
-                            });
-                    }, 10);
-                
-            } else if (this.tree.root.dataLoader) {
-
-                setTimeout( 
-                    function() {
-                        node.tree.root.dataLoader(node, 
-                            function() { 
-                                node.loadComplete(); 
-                            });
-                    }, 10);
-
-            } else {
-                return "Error: data loader not found or not specified.";
-            }
-
-            return "";
-
-        } else {
-            return this.completeRender();
-        }
-    },
-
-    /**
-     * Called when we know we have all the child data.
-     * @method completeRender
-     * @return {string} children html
-     */
-    completeRender: function() {
-        var sb = [];
-
-        for (var i=0; i < this.children.length; ++i) {
-            // this.children[i].childrenRendered = false;
-            sb[sb.length] = this.children[i].getHtml();
-        }
-        
-        this.childrenRendered = true;
-
-        return sb.join("");
-    },
-
-    /**
-     * Load complete is the callback function we pass to the data provider
-     * in dynamic load situations.
-     * @method loadComplete
-     */
-    loadComplete: function() {
-        this.getChildrenEl().innerHTML = this.completeRender();
-               if (this.propagateHighlightDown) {
-                       if (this.highlightState === 1 && !this.tree.singleNodeHighlight) {
-                               for (var i = 0; i < this.children.length; i++) {
-                               this.children[i].highlight(true);
-                       }
-                       } else if (this.highlightState === 0 || this.tree.singleNodeHighlight) {
-                               for (i = 0; i < this.children.length; i++) {
-                                       this.children[i].unhighlight(true);
-                               }
-                       } // if (highlighState == 2) leave child nodes with whichever highlight state they are set
-               }
-                               
-        this.dynamicLoadComplete = true;
-        this.isLoading = false;
-        this.expand(true);
-        this.tree.locked = false;
-    },
-
-    /**
-     * Returns this node's ancestor at the specified depth.
-     * @method getAncestor
-     * @param {int} depth the depth of the ancestor.
-     * @return {Node} the ancestor
-     */
-    getAncestor: function(depth) {
-        if (depth >= this.depth || depth < 0)  {
-            return null;
-        }
-
-        var p = this.parent;
-        
-        while (p.depth > depth) {
-            p = p.parent;
-        }
-
-        return p;
-    },
-
-    /**
-     * Returns the css class for the spacer at the specified depth for
-     * this node.  If this node's ancestor at the specified depth
-     * has a next sibling the presentation is different than if it
-     * does not have a next sibling
-     * @method getDepthStyle
-     * @param {int} depth the depth of the ancestor.
-     * @return {string} the css class for the spacer
-     */
-    getDepthStyle: function(depth) {
-        return (this.getAncestor(depth).nextSibling) ? 
-            "ygtvdepthcell" : "ygtvblankdepthcell";
-    },
-
-    /**
-     * Get the markup for the node.  This may be overrided so that we can
-     * support different types of nodes.
-     * @method getNodeHtml
-     * @return {string} The HTML that will render this node.
-     */
-    getNodeHtml: function() { 
-        var sb = [];
-
-        sb[sb.length] = '<table id="ygtvtableel' + this.index + '" border="0" cellpadding="0" cellspacing="0" class="ygtvtable ygtvdepth' + this.depth;
-        if (this.enableHighlight) {
-            sb[sb.length] = ' ygtv-highlight' + this.highlightState;
-        }
-        if (this.className) {
-            sb[sb.length] = ' ' + this.className;
-        }           
-        sb[sb.length] = '"><tr class="ygtvrow">';
-        
-        for (var i=0;i<this.depth;++i) {
-            sb[sb.length] = '<td class="ygtvcell ' + this.getDepthStyle(i) + '"><div class="ygtvspacer"></div></td>';
-        }
-
-        if (this.hasIcon) {
-            sb[sb.length] = '<td id="' + this.getToggleElId();
-            sb[sb.length] = '" class="ygtvcell ';
-            sb[sb.length] = this.getStyle() ;
-            sb[sb.length] = '"><a href="#" class="ygtvspacer">&#160;</a></td>';
-        }
-
-        sb[sb.length] = '<td id="' + this.contentElId; 
-        sb[sb.length] = '" class="ygtvcell ';
-        sb[sb.length] = this.contentStyle  + ' ygtvcontent" ';
-        sb[sb.length] = (this.nowrap) ? ' nowrap="nowrap" ' : '';
-        sb[sb.length] = ' >';
-        sb[sb.length] = this.getContentHtml();
-        sb[sb.length] = '</td></tr></table>';
-
-        return sb.join("");
-
-    },
-    /**
-     * Get the markup for the contents of the node.  This is designed to be overrided so that we can
-     * support different types of nodes.
-     * @method getContentHtml
-     * @return {string} The HTML that will render the content of this node.
-     */
-    getContentHtml: function () {
-        return "";
-    },
-
-    /**
-     * Regenerates the html for this node and its children.  To be used when the
-     * node is expanded and new children have been added.
-     * @method refresh
-     */
-    refresh: function() {
-        // this.loadComplete();
-        this.getChildrenEl().innerHTML = this.completeRender();
-
-        if (this.hasIcon) {
-            var el = this.getToggleEl();
-            if (el) {
-                el.className = el.className.replace(/\bygtv[lt][nmp]h*\b/gi,this.getStyle());
-            }
-        }
-    },
-
-    /**
-     * Node toString
-     * @method toString
-     * @return {string} string representation of the node
-     */
-    toString: function() {
-        return this._type + " (" + this.index + ")";
-    },
-    /**
-    * array of items that had the focus set on them
-    * so that they can be cleaned when focus is lost
-    * @property _focusHighlightedItems
-    * @type Array of DOM elements
-    * @private
-    */
-    _focusHighlightedItems: [],
-    /**
-    * DOM element that actually got the browser focus
-    * @property _focusedItem
-    * @type DOM element
-    * @private
-    */
-    _focusedItem: null,
-    
-    /**
-    * Returns true if there are any elements in the node that can 
-    * accept the real actual browser focus
-    * @method _canHaveFocus
-    * @return {boolean} success
-    * @private
-    */
-    _canHaveFocus: function() {
-        return this.getEl().getElementsByTagName('a').length > 0;
-    },
-    /**
-    * Removes the focus of previously selected Node
-    * @method _removeFocus
-    * @private
-    */
-    _removeFocus:function () {
-        if (this._focusedItem) {
-            Event.removeListener(this._focusedItem,'blur');
-            this._focusedItem = null;
-        }
-        var el;
-        while ((el = this._focusHighlightedItems.shift())) {  // yes, it is meant as an assignment, really
-            Dom.removeClass(el,YAHOO.widget.TreeView.FOCUS_CLASS_NAME );
-        }
-    },
-    /**
-    * Sets the focus on the node element.
-    * It will only be able to set the focus on nodes that have anchor elements in it.  
-    * Toggle or branch icons have anchors and can be focused on.  
-    * If will fail in nodes that have no anchor
-    * @method focus
-    * @return {boolean} success
-    */
-    focus: function () {
-        var focused = false, self = this;
-
-        if (this.tree.currentFocus) {
-            this.tree.currentFocus._removeFocus();
-        }
-    
-        var  expandParent = function (node) {
-            if (node.parent) {
-                expandParent(node.parent);
-                node.parent.expand();
-            } 
-        };
-        expandParent(this);
-
-        Dom.getElementsBy  ( 
-            function (el) {
-                return (/ygtv(([tl][pmn]h?)|(content))/).test(el.className);
-            } ,
-            'td' , 
-            self.getEl().firstChild , 
-            function (el) {
-                Dom.addClass(el, YAHOO.widget.TreeView.FOCUS_CLASS_NAME );
-                if (!focused) { 
-                    var aEl = el.getElementsByTagName('a');
-                    if (aEl.length) {
-                        aEl = aEl[0];
-                        aEl.focus();
-                        self._focusedItem = aEl;
-                        Event.on(aEl,'blur',function () {
-                            //console.log('f1');
-                            self.tree.fireEvent('focusChanged',{oldNode:self.tree.currentFocus,newNode:null});
-                            self.tree.currentFocus = null;
-                            self._removeFocus();
-                        });
-                        focused = true;
-                    }
-                }
-                self._focusHighlightedItems.push(el);
-            }
-        );
-        if (focused) { 
-                            //console.log('f2');
-            this.tree.fireEvent('focusChanged',{oldNode:this.tree.currentFocus,newNode:this});
-            this.tree.currentFocus = this;
-        } else {
-                            //console.log('f3');
-            this.tree.fireEvent('focusChanged',{oldNode:self.tree.currentFocus,newNode:null});
-            this.tree.currentFocus = null;
-            this._removeFocus(); 
-        }
-        return focused;
-    },
-
-  /**
-     * Count of nodes in a branch
-     * @method getNodeCount
-     * @return {int} number of nodes in the branch
-     */
-    getNodeCount: function() {
-        for (var i = 0, count = 0;i< this.children.length;i++) {
-            count += this.children[i].getNodeCount();
-        }
-        return count + 1;
-    },
-    
-      /**
-     * Returns an object which could be used to build a tree out of this node and its children.
-     * It can be passed to the tree constructor to reproduce this node as a tree.
-     * It will return false if the node or any children loads dynamically, regardless of whether it is loaded or not.
-     * @method getNodeDefinition
-     * @return {Object | false}  definition of the tree or false if the node or any children is defined as dynamic
-     */
-    getNodeDefinition: function() {
-    
-        if (this.isDynamic()) { return false; }
-        
-        var def, defs = Lang.merge(this.data), children = []; 
-        
-        
-
-        if (this.expanded) {defs.expanded = this.expanded; }
-        if (!this.multiExpand) { defs.multiExpand = this.multiExpand; }
-        if (!this.renderHidden) { defs.renderHidden = this.renderHidden; }
-        if (!this.hasIcon) { defs.hasIcon = this.hasIcon; }
-        if (this.nowrap) { defs.nowrap = this.nowrap; }
-        if (this.className) { defs.className = this.className; }
-        if (this.editable) { defs.editable = this.editable; }
-        if (this.enableHighlight) { defs.enableHighlight = this.enableHighlight; }
-        if (this.highlightState) { defs.highlightState = this.highlightState; }
-        if (this.propagateHighlightUp) { defs.propagateHighlightUp = this.propagateHighlightUp; }
-        if (this.propagateHighlightDown) { defs.propagateHighlightDown = this.propagateHighlightDown; }
-        defs.type = this._type;
-        
-        
-        
-        for (var i = 0; i < this.children.length;i++) {
-            def = this.children[i].getNodeDefinition();
-            if (def === false) { return false;}
-            children.push(def);
-        }
-        if (children.length) { defs.children = children; }
-        return defs;
-    },
-
-
-    /**
-     * Generates the link that will invoke this node's toggle method
-     * @method getToggleLink
-     * @return {string} the javascript url for toggling this node
-     */
-    getToggleLink: function() {
-        return 'return false;';
-    },
-    
-    /**
-    * Sets the value of property for this node and all loaded descendants.  
-    * Only public and defined properties can be set, not methods.  
-    * Values for unknown properties will be assigned to the refNode.data object
-    * @method setNodesProperty
-    * @param name {string} Name of the property to be set
-    * @param value {any} value to be set
-    * @param refresh {boolean} if present and true, it does a refresh
-    */
-    setNodesProperty: function(name, value, refresh) {
-        if (name.charAt(0) != '_'  && !Lang.isUndefined(this[name]) && !Lang.isFunction(this[name]) ) {
-            this[name] = value;
-        } else {
-            this.data[name] = value;
-        }
-        for (var i = 0; i < this.children.length;i++) {
-            this.children[i].setNodesProperty(name,value);
-        }
-        if (refresh) {
-            this.refresh();
-        }
-    },
-    /**
-    * Toggles the highlighted state of a Node
-    * @method toggleHighlight
-    */
-    toggleHighlight: function() {
-        if (this.enableHighlight) {
-            // unhighlights only if fully highligthed.  For not or partially highlighted it will highlight
-            if (this.highlightState == 1) {
-                this.unhighlight();
-            } else {
-                this.highlight();
-            }
-        }
-    },
-    
-    /**
-    * Turns highlighting on node.  
-    * @method highlight
-    * @param _silent {boolean} optional, don't fire the highlightEvent
-    */
-    highlight: function(_silent) {
-        if (this.enableHighlight) {
-            if (this.tree.singleNodeHighlight) {
-                if (this.tree._currentlyHighlighted) {
-                    this.tree._currentlyHighlighted.unhighlight(_silent);
-                }
-                this.tree._currentlyHighlighted = this;
-            }
-            this.highlightState = 1;
-            this._setHighlightClassName();
-            if (!this.tree.singleNodeHighlight) {
-                               if (this.propagateHighlightDown) {
-                                       for (var i = 0;i < this.children.length;i++) {
-                                               this.children[i].highlight(true);
-                                       }
-                               }
-                               if (this.propagateHighlightUp) {
-                                       if (this.parent) {
-                                               this.parent._childrenHighlighted();
-                                       }
-                               }
-                       }
-            if (!_silent) {
-                this.tree.fireEvent('highlightEvent',this);
-            }
-        }
-    },
-    /**
-    * Turns highlighting off a node.  
-    * @method unhighlight
-    * @param _silent {boolean} optional, don't fire the highlightEvent
-    */
-    unhighlight: function(_silent) {
-        if (this.enableHighlight) {
-                       // might have checked singleNodeHighlight but it wouldn't really matter either way
-            this.tree._currentlyHighlighted = null;
-            this.highlightState = 0;
-            this._setHighlightClassName();
-            if (!this.tree.singleNodeHighlight) {
-                               if (this.propagateHighlightDown) {
-                                       for (var i = 0;i < this.children.length;i++) {
-                                               this.children[i].unhighlight(true);
-                                       }
-                               }
-                               if (this.propagateHighlightUp) {
-                                       if (this.parent) {
-                                               this.parent._childrenHighlighted();
-                                       }
-                               }
-                       }
-            if (!_silent) {
-                this.tree.fireEvent('highlightEvent',this);
-            }
-        }
-    },
-    /** 
-    * Checks whether all or part of the children of a node are highlighted and
-    * sets the node highlight to full, none or partial highlight.
-    * If set to propagate it will further call the parent
-    * @method _childrenHighlighted
-    * @private
-    */
-    _childrenHighlighted: function() {
-        var yes = false, no = false;
-        if (this.enableHighlight) {
-            for (var i = 0;i < this.children.length;i++) {
-                switch(this.children[i].highlightState) {
-                    case 0:
-                        no = true;
-                        break;
-                    case 1:
-                        yes = true;
-                        break;
-                    case 2:
-                        yes = no = true;
-                        break;
-                }
-            }
-            if (yes && no) {
-                this.highlightState = 2;
-            } else if (yes) {
-                this.highlightState = 1;
-            } else {
-                this.highlightState = 0;
-            }
-            this._setHighlightClassName();
-            if (this.propagateHighlightUp) {
-                if (this.parent) {
-                    this.parent._childrenHighlighted();
-                }
-            }
-        }
-    },
-    
-    /**
-    * Changes the classNames on the toggle and content containers to reflect the current highlighting
-    * @method _setHighlightClassName
-    * @private
-    */
-    _setHighlightClassName: function() {
-        var el = Dom.get('ygtvtableel' + this.index);
-        if (el) {
-            el.className = el.className.replace(/\bygtv-highlight\d\b/gi,'ygtv-highlight' + this.highlightState);
-        }
-    }
-    
-};
-
-YAHOO.augment(YAHOO.widget.Node, YAHOO.util.EventProvider);
-})();
-
-/**
- * A custom YAHOO.widget.Node that handles the unique nature of 
- * the virtual, presentationless root node.
- * @namespace YAHOO.widget
- * @class RootNode
- * @extends YAHOO.widget.Node
- * @param oTree {YAHOO.widget.TreeView} The tree instance this node belongs to
- * @constructor
- */
-YAHOO.widget.RootNode = function(oTree) {
-    // Initialize the node with null params.  The root node is a
-    // special case where the node has no presentation.  So we have
-    // to alter the standard properties a bit.
-    this.init(null, null, true);
-    
-    /*
-     * For the root node, we get the tree reference from as a param
-     * to the constructor instead of from the parent element.
-     */
-    this.tree = oTree;
-};
-
-YAHOO.extend(YAHOO.widget.RootNode, YAHOO.widget.Node, {
-    
-   /**
-     * The node type
-     * @property _type
-      * @type string
-     * @private
-     * @default "RootNode"
-     */
-    _type: "RootNode",
-    
-    // overrides YAHOO.widget.Node
-    getNodeHtml: function() { 
-        return ""; 
-    },
-
-    toString: function() { 
-        return this._type;
-    },
-
-    loadComplete: function() { 
-        this.tree.draw();
-    },
-    
-   /**
-     * Count of nodes in tree.  
-    * It overrides Nodes.getNodeCount because the root node should not be counted.
-     * @method getNodeCount
-     * @return {int} number of nodes in the tree
-     */
-    getNodeCount: function() {
-        for (var i = 0, count = 0;i< this.children.length;i++) {
-            count += this.children[i].getNodeCount();
-        }
-        return count;
-    },
-
-  /**
-     * Returns an object which could be used to build a tree out of this node and its children.
-     * It can be passed to the tree constructor to reproduce this node as a tree.
-     * Since the RootNode is automatically created by treeView, 
-     * its own definition is excluded from the returned node definition
-     * which only contains its children.
-     * @method getNodeDefinition
-     * @return {Object | false}  definition of the tree or false if any child node is defined as dynamic
-     */
-    getNodeDefinition: function() {
-        
-        for (var def, defs = [], i = 0; i < this.children.length;i++) {
-            def = this.children[i].getNodeDefinition();
-            if (def === false) { return false;}
-            defs.push(def);
-        }
-        return defs;
-    },
-
-    collapse: function() {},
-    expand: function() {},
-    getSiblings: function() { return null; },
-    focus: function () {}
-
-});
-
-(function () {
-    var Dom = YAHOO.util.Dom,
-        Lang = YAHOO.lang,
-        Event = YAHOO.util.Event;
-/**
- * The default node presentation.  The first parameter should be
- * either a string that will be used as the node's label, or an object
- * that has at least a string property called label.  By default,  clicking the
- * label will toggle the expanded/collapsed state of the node.  By
- * setting the href property of the instance, this behavior can be
- * changed so that the label will go to the specified href.
- * @namespace YAHOO.widget
- * @class TextNode
- * @extends YAHOO.widget.Node
- * @constructor
- * @param oData {object} a string or object containing the data that will
- * be used to render this node.
- * Providing a string is the same as providing an object with a single property named label.
- * All values in the oData will be used to set equally named properties in the node
- * as long as the node does have such properties, they are not undefined, private or functions.
- * All attributes are made available in noderef.data, which
- * can be used to store custom attributes.  TreeView.getNode(s)ByProperty
- * can be used to retrieve a node by one of the attributes.
- * @param oParent {YAHOO.widget.Node} this node's parent node
- * @param expanded {boolean} the initial expanded/collapsed state (deprecated; use oData.expanded) 
- */
-YAHOO.widget.TextNode = function(oData, oParent, expanded) {
-
-    if (oData) { 
-        if (Lang.isString(oData)) {
-            oData = { label: oData };
-        }
-        this.init(oData, oParent, expanded);
-        this.setUpLabel(oData);
-    }
-
-};
-
-YAHOO.extend(YAHOO.widget.TextNode, YAHOO.widget.Node, {
-    
-    /**
-     * The CSS class for the label href.  Defaults to ygtvlabel, but can be
-     * overridden to provide a custom presentation for a specific node.
-     * @property labelStyle
-     * @type string
-     */
-    labelStyle: "ygtvlabel",
-
-    /**
-     * The derived element id of the label for this node
-     * @property labelElId
-     * @type string
-     */
-    labelElId: null,
-
-    /**
-     * The text for the label.  It is assumed that the oData parameter will
-     * either be a string that will be used as the label, or an object that
-     * has a property called "label" that we will use.
-     * @property label
-     * @type string
-     */
-    label: null,
-
-    /**
-     * The text for the title (tooltip) for the label element
-     * @property title
-     * @type string
-     */
-    title: null,
-    
-    /**
-     * The href for the node's label.  If one is not specified, the href will
-     * be set so that it toggles the node.
-     * @property href
-     * @type string
-     */
-    href: null,
-
-    /**
-     * The label href target, defaults to current window
-     * @property target
-     * @type string
-     */
-    target: "_self",
-    
-    /**
-     * The node type
-     * @property _type
-     * @private
-     * @type string
-     * @default "TextNode"
-     */
-    _type: "TextNode",
-
-
-    /**
-     * Sets up the node label
-     * @method setUpLabel
-     * @param oData string containing the label, or an object with a label property
-     */
-    setUpLabel: function(oData) { 
-        
-        if (Lang.isString(oData)) {
-            oData = { 
-                label: oData 
-            };
-        } else {
-            if (oData.style) {
-                this.labelStyle = oData.style;
-            }
-        }
-
-        this.label = oData.label;
-
-        this.labelElId = "ygtvlabelel" + this.index;
-        
-    },
-
-    /**
-     * Returns the label element
-     * @for YAHOO.widget.TextNode
-     * @method getLabelEl
-     * @return {object} the element
-     */
-    getLabelEl: function() { 
-        return Dom.get(this.labelElId);
-    },
-
-    // overrides YAHOO.widget.Node
-    getContentHtml: function() { 
-        var sb = [];
-        sb[sb.length] = this.href?'<a':'<span';
-        sb[sb.length] = ' id="' + this.labelElId + '"';
-        sb[sb.length] = ' class="' + this.labelStyle  + '"';
-        if (this.href) {
-            sb[sb.length] = ' href="' + this.href + '"';
-            sb[sb.length] = ' target="' + this.target + '"';
-        } 
-        if (this.title) {
-            sb[sb.length] = ' title="' + this.title + '"';
-        }
-        sb[sb.length] = ' >';
-        sb[sb.length] = this.label;
-        sb[sb.length] = this.href?'</a>':'</span>';
-        return sb.join("");
-    },
-
-
-
-  /**
-     * Returns an object which could be used to build a tree out of this node and its children.
-     * It can be passed to the tree constructor to reproduce this node as a tree.
-     * It will return false if the node or any descendant loads dynamically, regardless of whether it is loaded or not.
-     * @method getNodeDefinition
-     * @return {Object | false}  definition of the tree or false if this node or any descendant is defined as dynamic
-     */
-    getNodeDefinition: function() {
-        var def = YAHOO.widget.TextNode.superclass.getNodeDefinition.call(this);
-        if (def === false) { return false; }
-
-        // Node specific properties
-        def.label = this.label;
-        if (this.labelStyle != 'ygtvlabel') { def.style = this.labelStyle; }
-        if (this.title) { def.title = this.title; }
-        if (this.href) { def.href = this.href; }
-        if (this.target != '_self') { def.target = this.target; }       
-
-        return def;
-    
-    },
-
-    toString: function() { 
-        return YAHOO.widget.TextNode.superclass.toString.call(this) + ": " + this.label;
-    },
-
-    // deprecated
-    onLabelClick: function() {
-        return false;
-    },
-    refresh: function() {
-        YAHOO.widget.TextNode.superclass.refresh.call(this);
-        var label = this.getLabelEl();
-        label.innerHTML = this.label;
-        if (label.tagName.toUpperCase() == 'A') {
-            label.href = this.href;
-            label.target = this.target;
-        }
-    }
-        
-    
-
-    
-});
-})();
-
-/**
- * A menu-specific implementation that differs from TextNode in that only 
- * one sibling can be expanded at a time.
- * @namespace YAHOO.widget
- * @class MenuNode
- * @extends YAHOO.widget.TextNode
- * @param oData {object} a string or object containing the data that will
- * be used to render this node.
- * Providing a string is the same as providing an object with a single property named label.
- * All values in the oData will be used to set equally named properties in the node
- * as long as the node does have such properties, they are not undefined, private or functions.
- * All attributes are made available in noderef.data, which
- * can be used to store custom attributes.  TreeView.getNode(s)ByProperty
- * can be used to retrieve a node by one of the attributes.
- * @param oParent {YAHOO.widget.Node} this node's parent node
- * @param expanded {boolean} the initial expanded/collapsed state (deprecated; use oData.expanded) 
- * @constructor
- */
-YAHOO.widget.MenuNode = function(oData, oParent, expanded) {
-    YAHOO.widget.MenuNode.superclass.constructor.call(this,oData,oParent,expanded);
-
-   /*
-     * Menus usually allow only one branch to be open at a time.
-     */
-    this.multiExpand = false;
-
-};
-
-YAHOO.extend(YAHOO.widget.MenuNode, YAHOO.widget.TextNode, {
-
-    /**
-     * The node type
-     * @property _type
-     * @private
-    * @default "MenuNode"
-     */
-    _type: "MenuNode"
-
-});
-
-(function () {
-    var Dom = YAHOO.util.Dom,
-        Lang = YAHOO.lang,
-        Event = YAHOO.util.Event;
-
-/**
- * This implementation takes either a string or object for the
- * oData argument.  If is it a string, it will use it for the display
- * of this node (and it can contain any html code).  If the parameter
- * is an object,it looks for a parameter called "html" that will be
- * used for this node's display.
- * @namespace YAHOO.widget
- * @class HTMLNode
- * @extends YAHOO.widget.Node
- * @constructor
- * @param oData {object} a string or object containing the data that will
- * be used to render this node.  
- * Providing a string is the same as providing an object with a single property named html.
- * All values in the oData will be used to set equally named properties in the node
- * as long as the node does have such properties, they are not undefined, private or functions.
- * All other attributes are made available in noderef.data, which
- * can be used to store custom attributes.  TreeView.getNode(s)ByProperty
- * can be used to retrieve a node by one of the attributes.
- * @param oParent {YAHOO.widget.Node} this node's parent node
- * @param expanded {boolean} the initial expanded/collapsed state (deprecated; use oData.expanded) 
- * @param hasIcon {boolean} specifies whether or not leaf nodes should
- * be rendered with or without a horizontal line line and/or toggle icon. If the icon
- * is not displayed, the content fills the space it would have occupied.
- * This option operates independently of the leaf node presentation logic
- * for dynamic nodes.
- * (deprecated; use oData.hasIcon) 
- */
-YAHOO.widget.HTMLNode = function(oData, oParent, expanded, hasIcon) {
-    if (oData) { 
-        this.init(oData, oParent, expanded);
-        this.initContent(oData, hasIcon);
-    }
-};
-
-YAHOO.extend(YAHOO.widget.HTMLNode, YAHOO.widget.Node, {
-
-    /**
-     * The CSS class for the html content container.  Defaults to ygtvhtml, but 
-     * can be overridden to provide a custom presentation for a specific node.
-     * @property contentStyle
-     * @type string
-     */
-    contentStyle: "ygtvhtml",
-
-
-    /**
-     * The HTML content to use for this node's display
-     * @property html
-     * @type string
-     */
-    html: null,
-    
-/**
-     * The node type
-     * @property _type
-     * @private
-     * @type string
-     * @default "HTMLNode"
-     */
-    _type: "HTMLNode",
-
-    /**
-     * Sets up the node label
-     * @property initContent
-     * @param oData {object} An html string or object containing an html property
-     * @param hasIcon {boolean} determines if the node will be rendered with an
-     * icon or not
-     */
-    initContent: function(oData, hasIcon) { 
-        this.setHtml(oData);
-        this.contentElId = "ygtvcontentel" + this.index;
-        if (!Lang.isUndefined(hasIcon)) { this.hasIcon  = hasIcon; }
-        
-    },
-
-    /**
-     * Synchronizes the node.html, and the node's content
-     * @property setHtml
-     * @param o {object} An html string or object containing an html property
-     */
-    setHtml: function(o) {
-
-        this.html = (typeof o === "string") ? o : o.html;
-
-        var el = this.getContentEl();
-        if (el) {
-            el.innerHTML = this.html;
-        }
-
-    },
-
-    // overrides YAHOO.widget.Node
-    getContentHtml: function() { 
-        return this.html;
-    },
-    
-      /**
-     * Returns an object which could be used to build a tree out of this node and its children.
-     * It can be passed to the tree constructor to reproduce this node as a tree.
-     * It will return false if any node loads dynamically, regardless of whether it is loaded or not.
-     * @method getNodeDefinition
-     * @return {Object | false}  definition of the tree or false if any node is defined as dynamic
-     */
-    getNodeDefinition: function() {
-        var def = YAHOO.widget.HTMLNode.superclass.getNodeDefinition.call(this);
-        if (def === false) { return false; }
-        def.html = this.html;
-        return def;
-    
-    }
-});
-})();
-
-(function () {
-    var Dom = YAHOO.util.Dom,
-        Lang = YAHOO.lang,
-        Event = YAHOO.util.Event,
-        Calendar = YAHOO.widget.Calendar;
-        
-/**
- * A Date-specific implementation that differs from TextNode in that it uses 
- * YAHOO.widget.Calendar as an in-line editor, if available
- * If Calendar is not available, it behaves as a plain TextNode.
- * @namespace YAHOO.widget
- * @class DateNode
- * @extends YAHOO.widget.TextNode
- * @param oData {object} a string or object containing the data that will
- * be used to render this node.
- * Providing a string is the same as providing an object with a single property named label.
- * All values in the oData will be used to set equally named properties in the node
- * as long as the node does have such properties, they are not undefined, private nor functions.
- * All attributes are made available in noderef.data, which
- * can be used to store custom attributes.  TreeView.getNode(s)ByProperty
- * can be used to retrieve a node by one of the attributes.
- * @param oParent {YAHOO.widget.Node} this node's parent node
- * @param expanded {boolean} the initial expanded/collapsed state (deprecated; use oData.expanded) 
- * @constructor
- */
-YAHOO.widget.DateNode = function(oData, oParent, expanded) {
-    YAHOO.widget.DateNode.superclass.constructor.call(this,oData, oParent, expanded);
-};
-
-YAHOO.extend(YAHOO.widget.DateNode, YAHOO.widget.TextNode, {
-
-    /**
-     * The node type
-     * @property _type
-     * @type string
-     * @private
-     * @default  "DateNode"
-     */
-    _type: "DateNode",
-    
-    /**
-    * Configuration object for the Calendar editor, if used.
-    * See <a href="http://developer.yahoo.com/yui/calendar/#internationalization">http://developer.yahoo.com/yui/calendar/#internationalization</a>
-    * @property calendarConfig
-    */
-    calendarConfig: null,
-    
-    
-    
-    /** 
-     *  If YAHOO.widget.Calendar is available, it will pop up a Calendar to enter a new date.  Otherwise, it falls back to a plain &lt;input&gt;  textbox
-     * @method fillEditorContainer
-     * @param editorData {YAHOO.widget.TreeView.editorData}  a shortcut to the static object holding editing information
-     * @return void
-     */
-    fillEditorContainer: function (editorData) {
-    
-        var cal, container = editorData.inputContainer;
-        
-        if (Lang.isUndefined(Calendar)) {
-            Dom.replaceClass(editorData.editorPanel,'ygtv-edit-DateNode','ygtv-edit-TextNode');
-            YAHOO.widget.DateNode.superclass.fillEditorContainer.call(this, editorData);
-            return;
-        }
-            
-        if (editorData.nodeType != this._type) {
-            editorData.nodeType = this._type;
-            editorData.saveOnEnter = false;
-            
-            editorData.node.destroyEditorContents(editorData);
-
-            editorData.inputObject = cal = new Calendar(container.appendChild(document.createElement('div')));
-            if (this.calendarConfig) { 
-                cal.cfg.applyConfig(this.calendarConfig,true); 
-                cal.cfg.fireQueue();
-            }
-            cal.selectEvent.subscribe(function () {
-                this.tree._closeEditor(true);
-            },this,true);
-        } else {
-            cal = editorData.inputObject;
-        }
-
-               editorData.oldValue = this.label;
-        cal.cfg.setProperty("selected",this.label, false); 
-
-        var delim = cal.cfg.getProperty('DATE_FIELD_DELIMITER');
-        var pageDate = this.label.split(delim);
-        cal.cfg.setProperty('pagedate',pageDate[cal.cfg.getProperty('MDY_MONTH_POSITION') -1] + delim + pageDate[cal.cfg.getProperty('MDY_YEAR_POSITION') -1]);
-        cal.cfg.fireQueue();
-
-        cal.render();
-        cal.oDomContainer.focus();
-    },
-     /**
-    * Returns the value from the input element.
-    * Overrides Node.getEditorValue.
-    * @method getEditorValue
-     * @param editorData {YAHOO.widget.TreeView.editorData}  a shortcut to the static object holding editing information
-     * @return {string} date entered
-     */
-
-       getEditorValue: function (editorData) {
-        if (Lang.isUndefined(Calendar)) {
-            return editorData.inputElement.value;
-        } else {
-            var cal = editorData.inputObject,
-                date = cal.getSelectedDates()[0],
-                dd = [];
-                
-            dd[cal.cfg.getProperty('MDY_DAY_POSITION') -1] = date.getDate();
-            dd[cal.cfg.getProperty('MDY_MONTH_POSITION') -1] = date.getMonth() + 1;
-            dd[cal.cfg.getProperty('MDY_YEAR_POSITION') -1] = date.getFullYear();
-            return dd.join(cal.cfg.getProperty('DATE_FIELD_DELIMITER'));
-        }
-       },
-
-       /**
-    * Finally displays the newly entered date in the tree.
-    * Overrides Node.displayEditedValue.
-    * @method displayEditedValue
-     *  @param value {string} date to be displayed and stored in the node
-     * @param editorData {YAHOO.widget.TreeView.editorData}  a shortcut to the static object holding editing information
-     */
-       displayEditedValue: function (value,editorData) {
-               var node = editorData.node;
-               node.label = value;
-               node.getLabelEl().innerHTML = value;
-       },
-  /**
-     * Returns an object which could be used to build a tree out of this node and its children.
-     * It can be passed to the tree constructor to reproduce this node as a tree.
-     * It will return false if the node or any descendant loads dynamically, regardless of whether it is loaded or not.
-     * @method getNodeDefinition
-     * @return {Object | false}  definition of the node or false if this node or any descendant is defined as dynamic
-     */ 
-    getNodeDefinition: function() {
-        var def = YAHOO.widget.DateNode.superclass.getNodeDefinition.call(this);
-        if (def === false) { return false; }
-        if (this.calendarConfig) { def.calendarConfig = this.calendarConfig; }
-        return def;
-    }
-
-
-});
-})();
-
-(function () {
-    var Dom = YAHOO.util.Dom,
-        Lang = YAHOO.lang, 
-        Event = YAHOO.util.Event,
-        TV = YAHOO.widget.TreeView,
-        TVproto = TV.prototype;
-
-    /**
-     * An object to store information used for in-line editing
-     * for all Nodes of all TreeViews. It contains:
-     * <ul>
-    * <li>active {boolean}, whether there is an active cell editor </li>
-    * <li>whoHasIt {YAHOO.widget.TreeView} TreeView instance that is currently using the editor</li>
-    * <li>nodeType {string} value of static Node._type property, allows reuse of input element if node is of the same type.</li>
-    * <li>editorPanel {HTMLelement (&lt;div&gt;)} element holding the in-line editor</li>
-    * <li>inputContainer {HTMLelement (&lt;div&gt;)} element which will hold the type-specific input element(s) to be filled by the fillEditorContainer method</li>
-    * <li>buttonsContainer {HTMLelement (&lt;div&gt;)} element which holds the &lt;button&gt; elements for Ok/Cancel.  If you don't want any of the buttons, hide it via CSS styles, don't destroy it</li>
-    * <li>node {YAHOO.widget.Node} reference to the Node being edited</li>
-    * <li>saveOnEnter {boolean}, whether the Enter key should be accepted as a Save command (Esc. is always taken as Cancel), disable for multi-line input elements </li>
-    * <li>oldValue {any}  value before editing</li>
-    * </ul>
-    *  Editors are free to use this object to store additional data.
-     * @property editorData
-     * @static
-     * @for YAHOO.widget.TreeView
-     */
-    TV.editorData = {
-        active:false,
-        whoHasIt:null, // which TreeView has it
-        nodeType:null,
-        editorPanel:null,
-        inputContainer:null,
-        buttonsContainer:null,
-        node:null, // which Node is being edited
-        saveOnEnter:true,
-               oldValue:undefined
-        // Each node type is free to add its own properties to this as it sees fit.
-    };
-    
-    /**
-    * Validator function for edited data, called from the TreeView instance scope, 
-    * receives the arguments (newValue, oldValue, nodeInstance) 
-    * and returns either the validated (or type-converted) value or undefined. 
-    * An undefined return will prevent the editor from closing
-    * @property validator
-    * @type function
-    * @default null
-     * @for YAHOO.widget.TreeView
-     */
-    TVproto.validator = null;
-    
-    /**
-    * Entry point for initializing the editing plug-in.  
-    * TreeView will call this method on initializing if it exists
-    * @method _initEditor
-     * @for YAHOO.widget.TreeView
-     * @private
-    */
-
-       TVproto._initEditor = function () {
-               /** 
-               * Fires when the user clicks on the ok button of a node editor
-               * @event editorSaveEvent 
-               * @type CustomEvent 
-               * @param oArgs.newValue {mixed} the new value just entered 
-               * @param oArgs.oldValue {mixed} the value originally in the tree 
-               * @param oArgs.node {YAHOO.widget.Node} the node that has the focus 
-               * @for YAHOO.widget.TreeView
-               */ 
-               this.createEvent("editorSaveEvent", this); 
-               
-               /** 
-               * Fires when the user clicks on the cancel button of a node editor
-               * @event editorCancelEvent 
-               * @type CustomEvent 
-               * @param {YAHOO.widget.Node} node the node that has the focus 
-               * @for YAHOO.widget.TreeView
-               */ 
-               this.createEvent("editorCancelEvent", this); 
-
-       };
-
-    /**
-    * Entry point of the editing plug-in.  
-    * TreeView will call this method if it exists when a node label is clicked
-    * @method _nodeEditing
-    * @param node {YAHOO.widget.Node} the node to be edited
-    * @return {Boolean} true to indicate that the node is editable and prevent any further bubbling of the click.
-     * @for YAHOO.widget.TreeView
-     * @private
-    */
-       
-    
-    
-    TVproto._nodeEditing = function (node) {
-        if (node.fillEditorContainer && node.editable) {
-            var ed, topLeft, buttons, button, editorData = TV.editorData;
-            editorData.active = true;
-            editorData.whoHasIt = this;
-            if (!editorData.nodeType) {
-                editorData.editorPanel = ed = document.body.appendChild(document.createElement('div'));
-                Dom.addClass(ed,'ygtv-label-editor');
-
-                buttons = editorData.buttonsContainer = ed.appendChild(document.createElement('div'));
-                Dom.addClass(buttons,'ygtv-button-container');
-                button = buttons.appendChild(document.createElement('button'));
-                Dom.addClass(button,'ygtvok');
-                button.innerHTML = ' ';
-                button = buttons.appendChild(document.createElement('button'));
-                Dom.addClass(button,'ygtvcancel');
-                button.innerHTML = ' ';
-                Event.on(buttons, 'click', function (ev) {
-                    var target = Event.getTarget(ev);
-                    var node = TV.editorData.node;
-                    if (Dom.hasClass(target,'ygtvok')) {
-                        Event.stopEvent(ev);
-                        this._closeEditor(true);
-                    }
-                    if (Dom.hasClass(target,'ygtvcancel')) {
-                        Event.stopEvent(ev);
-                        this._closeEditor(false);
-                    }
-                }, this, true);
-
-                editorData.inputContainer = ed.appendChild(document.createElement('div'));
-                Dom.addClass(editorData.inputContainer,'ygtv-input');
-                
-                Event.on(ed,'keydown',function (ev) {
-                    var editorData = TV.editorData,
-                        KEY = YAHOO.util.KeyListener.KEY;
-                    switch (ev.keyCode) {
-                        case KEY.ENTER:
-                            Event.stopEvent(ev);
-                            if (editorData.saveOnEnter) { 
-                                this._closeEditor(true);
-                            }
-                            break;
-                        case KEY.ESCAPE:
-                            Event.stopEvent(ev);
-                            this._closeEditor(false);
-                            break;
-                    }
-                },this,true);
-
-
-                
-            } else {
-                ed = editorData.editorPanel;
-            }
-            editorData.node = node;
-            if (editorData.nodeType) {
-                Dom.removeClass(ed,'ygtv-edit-' + editorData.nodeType);
-            }
-            Dom.addClass(ed,' ygtv-edit-' + node._type);
-            topLeft = Dom.getXY(node.getContentEl());
-            Dom.setStyle(ed,'left',topLeft[0] + 'px');
-            Dom.setStyle(ed,'top',topLeft[1] + 'px');
-            Dom.setStyle(ed,'display','block');
-            ed.focus();
-            node.fillEditorContainer(editorData);
-
-            return true;  // If inline editor available, don't do anything else.
-        }
-    };
-    
-    /**
-    * Method to be associated with an event (clickEvent, dblClickEvent or enterKeyPressed) to pop up the contents editor
-    *  It calls the corresponding node editNode method.
-    * @method onEventEditNode
-    * @param oArgs {object} Object passed as arguments to TreeView event listeners
-     * @for YAHOO.widget.TreeView
-    */
-
-    TVproto.onEventEditNode = function (oArgs) {
-        if (oArgs instanceof YAHOO.widget.Node) {
-            oArgs.editNode();
-        } else if (oArgs.node instanceof YAHOO.widget.Node) {
-            oArgs.node.editNode();
-        }
-    };
-    
-    /**
-    * Method to be called when the inline editing is finished and the editor is to be closed
-    * @method _closeEditor
-    * @param save {Boolean} true if the edited value is to be saved, false if discarded
-    * @private
-     * @for YAHOO.widget.TreeView
-    */
-    
-    TVproto._closeEditor = function (save) {
-        var ed = TV.editorData, 
-            node = ed.node,
-            close = true;
-        if (save) { 
-            close = ed.node.saveEditorValue(ed) !== false; 
-        } else {
-                       this.fireEvent( 'editorCancelEvent', node); 
-               }
-                       
-        if (close) {
-            Dom.setStyle(ed.editorPanel,'display','none');  
-            ed.active = false;
-            node.focus();
-        }
-    };
-    
-    /**
-    *  Entry point for TreeView's destroy method to destroy whatever the editing plug-in has created
-    * @method _destroyEditor
-    * @private
-     * @for YAHOO.widget.TreeView
-    */
-    TVproto._destroyEditor = function() {
-        var ed = TV.editorData;
-        if (ed && ed.nodeType && (!ed.active || ed.whoHasIt === this)) {
-            Event.removeListener(ed.editorPanel,'keydown');
-            Event.removeListener(ed.buttonContainer,'click');
-            ed.node.destroyEditorContents(ed);
-            document.body.removeChild(ed.editorPanel);
-            ed.nodeType = ed.editorPanel = ed.inputContainer = ed.buttonsContainer = ed.whoHasIt = ed.node = null;
-            ed.active = false;
-        }
-    };
-    
-    var Nproto = YAHOO.widget.Node.prototype;
-    
-    /**
-    * Signals if the label is editable.  (Ignored on TextNodes with href set.)
-    * @property editable
-    * @type boolean
-         * @for YAHOO.widget.Node
-    */
-    Nproto.editable = false;
-    
-    /**
-    * pops up the contents editor, if there is one and the node is declared editable
-    * @method editNode
-     * @for YAHOO.widget.Node
-    */
-    
-    Nproto.editNode = function () {
-        this.tree._nodeEditing(this);
-    };
-    
-    
-
-
-    /** Placeholder for a function that should provide the inline node label editor.
-     *   Leaving it set to null will indicate that this node type is not editable.
-     * It should be overridden by nodes that provide inline editing.
-     *  The Node-specific editing element (input box, textarea or whatever) should be inserted into editorData.inputContainer.
-     * @method fillEditorContainer
-     * @param editorData {YAHOO.widget.TreeView.editorData}  a shortcut to the static object holding editing information
-     * @return void
-     * @for YAHOO.widget.Node
-     */
-    Nproto.fillEditorContainer = null;
-
-    
-    /**
-    * Node-specific destroy function to empty the contents of the inline editor panel.
-    * This function is the worst case alternative that will purge all possible events and remove the editor contents.
-    * Method Event.purgeElement is somewhat costly so if it can be replaced by specifc Event.removeListeners, it is better to do so.
-    * @method destroyEditorContents
-     * @param editorData {YAHOO.widget.TreeView.editorData}  a shortcut to the static object holding editing information
-     * @for YAHOO.widget.Node
-     */
-    Nproto.destroyEditorContents = function (editorData) {
-        // In the worst case, if the input editor (such as the Calendar) has no destroy method
-        // we can only try to remove all possible events on it.
-        Event.purgeElement(editorData.inputContainer,true);
-        editorData.inputContainer.innerHTML = '';
-    };
-
-    /**
-    * Saves the value entered into the editor.
-    * @method saveEditorValue
-     * @param editorData {YAHOO.widget.TreeView.editorData}  a shortcut to the static object holding editing information
-     * @return {false or none} a return of exactly false will prevent the editor from closing
-     * @for YAHOO.widget.Node
-     */
-    Nproto.saveEditorValue = function (editorData) {
-        var node = editorData.node, 
-                       value,
-            validator = node.tree.validator;
-                       
-               value = this.getEditorValue(editorData);
-        
-        if (Lang.isFunction(validator)) {
-            value = validator(value,editorData.oldValue,node);
-            if (Lang.isUndefined(value)) { 
-                               return false; 
-                       }
-        }
-
-               if (this.tree.fireEvent( 'editorSaveEvent', {
-                       newValue:value,
-                       oldValue:editorData.oldValue,
-                       node:node
-               }) !== false) {
-                       this.displayEditedValue(value,editorData);
-               }
-       };
-       
-       
-    /**
-    * Returns the value(s) from the input element(s) .
-    * Should be overridden by each node type.
-    * @method getEditorValue
-     * @param editorData {YAHOO.widget.TreeView.editorData}  a shortcut to the static object holding editing information
-     * @return {any} value entered
-     * @for YAHOO.widget.Node
-     */
-
-        Nproto.getEditorValue = function (editorData) {
-       };
-
-       /**
-    * Finally displays the newly edited value(s) in the tree.
-    * Should be overridden by each node type.
-    * @method displayEditedValue
-     *  @param value {any} value to be displayed and stored in the node
-     * @param editorData {YAHOO.widget.TreeView.editorData}  a shortcut to the static object holding editing information
-     * @for YAHOO.widget.Node
-     */
-       Nproto.displayEditedValue = function (value,editorData) {
-       };
-    
-    var TNproto = YAHOO.widget.TextNode.prototype;
-    
-
-
-    /** 
-     *  Places an &lt;input&gt;  textbox in the input container and loads the label text into it.
-     * @method fillEditorContainer
-     * @param editorData {YAHOO.widget.TreeView.editorData}  a shortcut to the static object holding editing information
-     * @return void
-     * @for YAHOO.widget.TextNode
-     */
-    TNproto.fillEditorContainer = function (editorData) {
-    
-        var input;
-        // If last node edited is not of the same type as this one, delete it and fill it with our editor
-        if (editorData.nodeType != this._type) {
-            editorData.nodeType = this._type;
-            editorData.saveOnEnter = true;
-            editorData.node.destroyEditorContents(editorData);
-
-            editorData.inputElement = input = editorData.inputContainer.appendChild(document.createElement('input'));
-            
-        } else {
-            // if the last node edited was of the same time, reuse the input element.
-            input = editorData.inputElement;
-        }
-               editorData.oldValue = this.label;
-        input.value = this.label;
-        input.focus();
-        input.select();
-    };
-    
-    /**
-    * Returns the value from the input element.
-    * Overrides Node.getEditorValue.
-    * @method getEditorValue
-     * @param editorData {YAHOO.widget.TreeView.editorData}  a shortcut to the static object holding editing information
-     * @return {string} value entered
-     * @for YAHOO.widget.TextNode
-     */
-
-    TNproto.getEditorValue = function (editorData) {
-        return editorData.inputElement.value;
-       };
-
-       /**
-    * Finally displays the newly edited value in the tree.
-    * Overrides Node.displayEditedValue.
-    * @method displayEditedValue
-     *  @param value {string} value to be displayed and stored in the node
-     * @param editorData {YAHOO.widget.TreeView.editorData}  a shortcut to the static object holding editing information
-     * @for YAHOO.widget.TextNode
-     */
-       TNproto.displayEditedValue = function (value,editorData) {
-               var node = editorData.node;
-               node.label = value;
-               node.getLabelEl().innerHTML = value;
-       };
-
-    /**
-    * Destroys the contents of the inline editor panel.
-    * Overrides Node.destroyEditorContent.
-    * Since we didn't set any event listeners on this inline editor, it is more efficient to avoid the generic method in Node.
-    * @method destroyEditorContents
-     * @param editorData {YAHOO.widget.TreeView.editorData}  a shortcut to the static object holding editing information
-     * @for YAHOO.widget.TextNode
-     */
-    TNproto.destroyEditorContents = function (editorData) {
-        editorData.inputContainer.innerHTML = '';
-    };
-})();
-
-/**
- * A static factory class for tree view expand/collapse animations
- * @class TVAnim
- * @static
- */
-YAHOO.widget.TVAnim = function() {
-    return {
-        /**
-         * Constant for the fade in animation
-         * @property FADE_IN
-         * @type string
-         * @static
-         */
-        FADE_IN: "TVFadeIn",
-
-        /**
-         * Constant for the fade out animation
-         * @property FADE_OUT
-         * @type string
-         * @static
-         */
-        FADE_OUT: "TVFadeOut",
-
-        /**
-         * Returns a ygAnim instance of the given type
-         * @method getAnim
-         * @param type {string} the type of animation
-         * @param el {HTMLElement} the element to element (probably the children div)
-         * @param callback {function} function to invoke when the animation is done.
-         * @return {YAHOO.util.Animation} the animation instance
-         * @static
-         */
-        getAnim: function(type, el, callback) {
-            if (YAHOO.widget[type]) {
-                return new YAHOO.widget[type](el, callback);
-            } else {
-                return null;
-            }
-        },
-
-        /**
-         * Returns true if the specified animation class is available
-         * @method isValid
-         * @param type {string} the type of animation
-         * @return {boolean} true if valid, false if not
-         * @static
-         */
-        isValid: function(type) {
-            return (YAHOO.widget[type]);
-        }
-    };
-} ();
-
-/**
- * A 1/2 second fade-in animation.
- * @class TVFadeIn
- * @constructor
- * @param el {HTMLElement} the element to animate
- * @param callback {function} function to invoke when the animation is finished
- */
-YAHOO.widget.TVFadeIn = function(el, callback) {
-    /**
-     * The element to animate
-     * @property el
-     * @type HTMLElement
-     */
-    this.el = el;
-
-    /**
-     * the callback to invoke when the animation is complete
-     * @property callback
-     * @type function
-     */
-    this.callback = callback;
-
-};
-
-YAHOO.widget.TVFadeIn.prototype = {
-    /**
-     * Performs the animation
-     * @method animate
-     */
-    animate: function() {
-        var tvanim = this;
-
-        var s = this.el.style;
-        s.opacity = 0.1;
-        s.filter = "alpha(opacity=10)";
-        s.display = "";
-
-        var dur = 0.4; 
-        var a = new YAHOO.util.Anim(this.el, {opacity: {from: 0.1, to: 1, unit:""}}, dur);
-        a.onComplete.subscribe( function() { tvanim.onComplete(); } );
-        a.animate();
-    },
-
-    /**
-     * Clean up and invoke callback
-     * @method onComplete
-     */
-    onComplete: function() {
-        this.callback();
-    },
-
-    /**
-     * toString
-     * @method toString
-     * @return {string} the string representation of the instance
-     */
-    toString: function() {
-        return "TVFadeIn";
-    }
-};
-
-/**
- * A 1/2 second fade out animation.
- * @class TVFadeOut
- * @constructor
- * @param el {HTMLElement} the element to animate
- * @param callback {Function} function to invoke when the animation is finished
- */
-YAHOO.widget.TVFadeOut = function(el, callback) {
-    /**
-     * The element to animate
-     * @property el
-     * @type HTMLElement
-     */
-    this.el = el;
-
-    /**
-     * the callback to invoke when the animation is complete
-     * @property callback
-     * @type function
-     */
-    this.callback = callback;
-
-};
-
-YAHOO.widget.TVFadeOut.prototype = {
-    /**
-     * Performs the animation
-     * @method animate
-     */
-    animate: function() {
-        var tvanim = this;
-        var dur = 0.4;
-        var a = new YAHOO.util.Anim(this.el, {opacity: {from: 1, to: 0.1, unit:""}}, dur);
-        a.onComplete.subscribe( function() { tvanim.onComplete(); } );
-        a.animate();
-    },
-
-    /**
-     * Clean up and invoke callback
-     * @method onComplete
-     */
-    onComplete: function() {
-        var s = this.el.style;
-        s.display = "none";
-        s.opacity = 1;
-        s.filter = "alpha(opacity=100)";
-        this.callback();
-    },
-
-    /**
-     * toString
-     * @method toString
-     * @return {string} the string representation of the instance
-     */
-    toString: function() {
-        return "TVFadeOut";
-    }
-};
-
-YAHOO.register("treeview", YAHOO.widget.TreeView, {version: "2.8.0r4", build: "2449"});
diff --git a/koha-tmpl/intranet-tmpl/prog/en/lib/yui/uploader/assets/uploader.swf b/koha-tmpl/intranet-tmpl/prog/en/lib/yui/uploader/assets/uploader.swf
deleted file mode 100644 (file)
index e20765c..0000000
Binary files a/koha-tmpl/intranet-tmpl/prog/en/lib/yui/uploader/assets/uploader.swf and /dev/null differ
diff --git a/koha-tmpl/intranet-tmpl/prog/en/lib/yui/uploader/uploader-debug.js b/koha-tmpl/intranet-tmpl/prog/en/lib/yui/uploader/uploader-debug.js
deleted file mode 100644 (file)
index b2dd64f..0000000
+++ /dev/null
@@ -1,1072 +0,0 @@
-/*
-Copyright (c) 2009, Yahoo! Inc. All rights reserved.
-Code licensed under the BSD License:
-http://developer.yahoo.net/yui/license.txt
-version: 2.8.0r4
-*/
-/*extern ActiveXObject, __flash_unloadHandler, __flash_savedUnloadHandler */
-/*!
- * SWFObject v1.5: Flash Player detection and embed - http://blog.deconcept.com/swfobject/
- *
- * SWFObject is (c) 2007 Geoff Stearns and is released under the MIT License:
- * http://www.opensource.org/licenses/mit-license.php
- * @namespace YAHOO
- */
-
-YAHOO.namespace("deconcept"); 
-       
-YAHOO.deconcept = YAHOO.deconcept || {};
-
-if(typeof YAHOO.deconcept.util == "undefined" || !YAHOO.deconcept.util)
-{
-       YAHOO.deconcept.util = {};
-}
-
-if(typeof YAHOO.deconcept.SWFObjectUtil == "undefined" || !YAHOO.deconcept.SWFObjectUtil)
-{
-       YAHOO.deconcept.SWFObjectUtil = {};
-}
-
-YAHOO.deconcept.SWFObject = function(swf, id, w, h, ver, c, quality, xiRedirectUrl, redirectUrl, detectKey)
-{
-       if(!document.getElementById) { return; }
-       this.DETECT_KEY = detectKey ? detectKey : 'detectflash';
-       this.skipDetect = YAHOO.deconcept.util.getRequestParameter(this.DETECT_KEY);
-       this.params = {};
-       this.variables = {};
-       this.attributes = [];
-       if(swf) { this.setAttribute('swf', swf); }
-       if(id) { this.setAttribute('id', id); }
-       if(w) { this.setAttribute('width', w); }
-       if(h) { this.setAttribute('height', h); }
-       if(ver) { this.setAttribute('version', new YAHOO.deconcept.PlayerVersion(ver.toString().split("."))); }
-       this.installedVer = YAHOO.deconcept.SWFObjectUtil.getPlayerVersion();
-       if (!window.opera && document.all && this.installedVer.major > 7)
-       {
-               // only add the onunload cleanup if the Flash Player version supports External Interface and we are in IE
-               YAHOO.deconcept.SWFObject.doPrepUnload = true;
-       }
-       if(c)
-       {
-               this.addParam('bgcolor', c);
-       }
-       var q = quality ? quality : 'high';
-       this.addParam('quality', q);
-       this.setAttribute('useExpressInstall', false);
-       this.setAttribute('doExpressInstall', false);
-       var xir = (xiRedirectUrl) ? xiRedirectUrl : window.location;
-       this.setAttribute('xiRedirectUrl', xir);
-       this.setAttribute('redirectUrl', '');
-       if(redirectUrl)
-       {
-               this.setAttribute('redirectUrl', redirectUrl);
-       }
-};
-
-YAHOO.deconcept.SWFObject.prototype =
-{
-       useExpressInstall: function(path)
-       {
-               this.xiSWFPath = !path ? "expressinstall.swf" : path;
-               this.setAttribute('useExpressInstall', true);
-       },
-       setAttribute: function(name, value){
-               this.attributes[name] = value;
-       },
-       getAttribute: function(name){
-               return this.attributes[name];
-       },
-       addParam: function(name, value){
-               this.params[name] = value;
-       },
-       getParams: function(){
-               return this.params;
-       },
-       addVariable: function(name, value){
-               this.variables[name] = value;
-       },
-       getVariable: function(name){
-               return this.variables[name];
-       },
-       getVariables: function(){
-               return this.variables;
-       },
-       getVariablePairs: function(){
-               var variablePairs = [];
-               var key;
-               var variables = this.getVariables();
-               for(key in variables)
-               {
-                       if(variables.hasOwnProperty(key))
-                       {
-                               variablePairs[variablePairs.length] = key +"="+ variables[key];
-                       }
-               }
-               return variablePairs;
-       },
-       getSWFHTML: function() {
-               var swfNode = "";
-               var params = {};
-               var key = "";
-               var pairs = "";
-               if (navigator.plugins && navigator.mimeTypes && navigator.mimeTypes.length) { // netscape plugin architecture
-                       if (this.getAttribute("doExpressInstall")) {
-                               this.addVariable("MMplayerType", "PlugIn");
-                               this.setAttribute('swf', this.xiSWFPath);
-                       }
-                       swfNode = '<embed type="application/x-shockwave-flash" src="'+ this.getAttribute('swf') +'" width="'+ this.getAttribute('width') +'" height="'+ this.getAttribute('height') +'" style="'+ this.getAttribute('style') +'"';
-                       swfNode += ' id="'+ this.getAttribute('id') +'" name="'+ this.getAttribute('id') +'" ';
-                       params = this.getParams();
-                       for(key in params)
-                       {
-                               if(params.hasOwnProperty(key))
-                               {
-                                       swfNode += [key] +'="'+ params[key] +'" ';
-                               }
-                       }
-                       pairs = this.getVariablePairs().join("&");
-                       if (pairs.length > 0){ swfNode += 'flashvars="'+ pairs +'"'; }
-                       swfNode += '/>';
-               } else { // PC IE
-                       if (this.getAttribute("doExpressInstall")) {
-                               this.addVariable("MMplayerType", "ActiveX");
-                               this.setAttribute('swf', this.xiSWFPath);
-                       }
-                       swfNode = '<object id="'+ this.getAttribute('id') +'" classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" width="'+ this.getAttribute('width') +'" height="'+ this.getAttribute('height') +'" style="'+ this.getAttribute('style') +'">';
-                       swfNode += '<param name="movie" value="'+ this.getAttribute('swf') +'" />';
-                       params = this.getParams();
-                       for(key in params)
-                       {
-                               if(params.hasOwnProperty(key))
-                               {
-                                       swfNode += '<param name="'+ key +'" value="'+ params[key] +'" />';
-                               }
-                       }
-                       pairs = this.getVariablePairs().join("&");
-                       if(pairs.length > 0) {swfNode += '<param name="flashvars" value="'+ pairs +'" />';}
-                       swfNode += "</object>";
-               }
-               return swfNode;
-       },
-       write: function(elementId)
-       {
-               if(this.getAttribute('useExpressInstall')) {
-                       // check to see if we need to do an express install
-                       var expressInstallReqVer = new YAHOO.deconcept.PlayerVersion([6,0,65]);
-                       if (this.installedVer.versionIsValid(expressInstallReqVer) && !this.installedVer.versionIsValid(this.getAttribute('version'))) {
-                               this.setAttribute('doExpressInstall', true);
-                               this.addVariable("MMredirectURL", escape(this.getAttribute('xiRedirectUrl')));
-                               document.title = document.title.slice(0, 47) + " - Flash Player Installation";
-                               this.addVariable("MMdoctitle", document.title);
-                       }
-               }
-               if(this.skipDetect || this.getAttribute('doExpressInstall') || this.installedVer.versionIsValid(this.getAttribute('version')))
-               {
-                       var n = (typeof elementId == 'string') ? document.getElementById(elementId) : elementId;
-                       n.innerHTML = this.getSWFHTML();
-                       return true;
-               }
-               else
-               {
-                       if(this.getAttribute('redirectUrl') !== "")
-                       {
-                               document.location.replace(this.getAttribute('redirectUrl'));
-                       }
-               }
-               return false;
-       }
-};
-
-/* ---- detection functions ---- */
-YAHOO.deconcept.SWFObjectUtil.getPlayerVersion = function()
-{
-       var axo = null;
-       var PlayerVersion = new YAHOO.deconcept.PlayerVersion([0,0,0]);
-       if(navigator.plugins && navigator.mimeTypes.length)
-       {
-               var x = navigator.plugins["Shockwave Flash"];
-               if(x && x.description)
-               {
-                       PlayerVersion = new YAHOO.deconcept.PlayerVersion(x.description.replace(/([a-zA-Z]|\s)+/, "").replace(/(\s+r|\s+b[0-9]+)/, ".").split("."));
-               }
-       }
-       else if (navigator.userAgent && navigator.userAgent.indexOf("Windows CE") >= 0)
-       { // if Windows CE
-               var counter = 3;
-               while(axo)
-               {
-                       try
-                       {
-                               counter++;
-                               axo = new ActiveXObject("ShockwaveFlash.ShockwaveFlash."+ counter);
-//                             document.write("player v: "+ counter);
-                               PlayerVersion = new YAHOO.deconcept.PlayerVersion([counter,0,0]);
-                       }
-                       catch(e)
-                       {
-                               axo = null;
-                       }
-               }
-       }
-       else
-       { // Win IE (non mobile)
-               // do minor version lookup in IE, but avoid fp6 crashing issues
-               // see http://blog.deconcept.com/2006/01/11/getvariable-setvariable-crash-internet-explorer-flash-6/
-               try
-               {
-                       axo = new ActiveXObject("ShockwaveFlash.ShockwaveFlash.7");
-               }
-               catch(e)
-               {
-                       try
-                       {
-                               axo = new ActiveXObject("ShockwaveFlash.ShockwaveFlash.6");
-                               PlayerVersion = new YAHOO.deconcept.PlayerVersion([6,0,21]);
-                               axo.AllowScriptAccess = "always"; // error if player version < 6.0.47 (thanks to Michael Williams @ Adobe for this code)
-                       }
-                       catch(e)
-                       {
-                               if(PlayerVersion.major == 6)
-                               {
-                                       return PlayerVersion;
-                               }
-                       }
-                       try
-                       {
-                               axo = new ActiveXObject("ShockwaveFlash.ShockwaveFlash");
-                       }
-                       catch(e) {}
-               }
-               
-               if(axo !== null)
-               {
-                       PlayerVersion = new YAHOO.deconcept.PlayerVersion(axo.GetVariable("$version").split(" ")[1].split(","));
-               }
-       }
-       return PlayerVersion;
-};
-
-YAHOO.deconcept.PlayerVersion = function(arrVersion)
-{
-       this.major = arrVersion[0] !== null ? parseInt(arrVersion[0], 0) : 0;
-       this.minor = arrVersion[1] !== null ? parseInt(arrVersion[1], 0) : 0;
-       this.rev = arrVersion[2] !== null ? parseInt(arrVersion[2], 0) : 0;
-};
-
-YAHOO.deconcept.PlayerVersion.prototype.versionIsValid = function(fv)
-{
-       if(this.major < fv.major)
-       {
-               return false;
-       }
-       if(this.major > fv.major)
-       {
-               return true;
-       }
-       if(this.minor < fv.minor)
-       {
-               return false;
-       }
-       if(this.minor > fv.minor)
-       {
-               return true;
-       }
-       if(this.rev < fv.rev)
-       {
-               return false;
-       }
-       return true;
-};
-
-/* ---- get value of query string param ---- */
-YAHOO.deconcept.util =
-{
-       getRequestParameter: function(param)
-       {
-               var q = document.location.search || document.location.hash;
-               if(param === null) { return q; }
-               if(q)
-               {
-                       var pairs = q.substring(1).split("&");
-                       for(var i=0; i < pairs.length; i++)
-                       {
-                               if (pairs[i].substring(0, pairs[i].indexOf("=")) == param)
-                               {
-                                       return pairs[i].substring((pairs[i].indexOf("=") + 1));
-                               }
-                       }
-               }
-               return "";
-       }
-};
-
-/* fix for video streaming bug */
-YAHOO.deconcept.SWFObjectUtil.cleanupSWFs = function()
-{
-       var objects = document.getElementsByTagName("OBJECT");
-       for(var i = objects.length - 1; i >= 0; i--)
-       {
-               objects[i].style.display = 'none';
-               for(var x in objects[i])
-               {
-                       if(typeof objects[i][x] == 'function')
-                       {
-                               objects[i][x] = function(){};
-                       }
-               }
-       }
-};
-
-// fixes bug in some fp9 versions see http://blog.deconcept.com/2006/07/28/swfobject-143-released/
-if(YAHOO.deconcept.SWFObject.doPrepUnload)
-{
-       if(!YAHOO.deconcept.unloadSet)
-       {
-               YAHOO.deconcept.SWFObjectUtil.prepUnload = function()
-               {
-                       __flash_unloadHandler = function(){};
-                       __flash_savedUnloadHandler = function(){};
-                       window.attachEvent("onunload", YAHOO.deconcept.SWFObjectUtil.cleanupSWFs);
-               };
-               window.attachEvent("onbeforeunload", YAHOO.deconcept.SWFObjectUtil.prepUnload);
-               YAHOO.deconcept.unloadSet = true;
-       }
-}
-
-/* add document.getElementById if needed (mobile IE < 5) */
-if(!document.getElementById && document.all)
-{
-       document.getElementById = function(id) { return document.all[id]; };
-}
-/**
- * Wraps Flash embedding functionality and allows communication with SWF through
- * attributes.
- *
- * @namespace YAHOO.widget
- * @class FlashAdapter
- * @uses YAHOO.util.AttributeProvider
- */
-YAHOO.widget.FlashAdapter = function(swfURL, containerID, attributes, buttonSkin)
-{
-       
-       this._queue = this._queue || [];
-       this._events = this._events || {};
-       this._configs = this._configs || {};
-       attributes = attributes || {};
-       
-       //the Flash Player external interface code from Adobe doesn't play nicely
-       //with the default value, yui-gen, in IE
-       this._id = attributes.id = attributes.id || YAHOO.util.Dom.generateId(null, "yuigen");
-       attributes.version = attributes.version || "9.0.45";
-       attributes.backgroundColor = attributes.backgroundColor || "#ffffff";
-       
-       //we can't use the initial attributes right away
-       //so save them for once the SWF finishes loading
-       this._attributes = attributes;
-       
-       this._swfURL = swfURL;
-       this._containerID = containerID;
-       
-       //embed the SWF file in the page
-       this._embedSWF(this._swfURL, this._containerID, attributes.id, attributes.version,
-               attributes.backgroundColor, attributes.expressInstall, attributes.wmode, buttonSkin);
-       
-       /**
-        * Fires when the SWF is initialized and communication is possible.
-        * @event contentReady
-        */
-       //Fix for iframe cross-domain issue with FF2x 
-       try
-       {
-               this.createEvent("contentReady");
-       }
-       catch(e){}
-};
-
-YAHOO.widget.FlashAdapter.owners = YAHOO.widget.FlashAdapter.owners || {};
-
-YAHOO.extend(YAHOO.widget.FlashAdapter, YAHOO.util.AttributeProvider,
-{
-       /**
-        * The URL of the SWF file.
-        * @property _swfURL
-        * @type String
-        * @private
-        */
-       _swfURL: null,
-
-       /**
-        * The ID of the containing DIV.
-        * @property _containerID
-        * @type String
-        * @private
-        */
-       _containerID: null,
-
-       /**
-        * A reference to the embedded SWF file.
-        * @property _swf
-        * @private
-        */
-       _swf: null,
-
-       /**
-        * The id of this instance.
-        * @property _id
-        * @type String
-        * @private
-        */
-       _id: null,
-
-       /**
-        * Indicates whether the SWF has been initialized and is ready
-        * to communicate with JavaScript
-        * @property _initialized
-        * @type Boolean
-        * @private
-        */
-       _initialized: false,
-       
-       /**
-        * The initializing attributes are stored here until the SWF is ready.
-        * @property _attributes
-        * @type Object
-        * @private
-        */
-       _attributes: null, //the intializing attributes
-
-       /**
-        * Public accessor to the unique name of the FlashAdapter instance.
-        *
-        * @method toString
-        * @return {String} Unique name of the FlashAdapter instance.
-        */
-       toString: function()
-       {
-               return "FlashAdapter " + this._id;
-       },
-
-       /**
-        * Nulls out the entire FlashAdapter instance and related objects and removes attached
-        * event listeners and clears out DOM elements inside the container. After calling
-        * this method, the instance reference should be expliclitly nulled by implementer,
-        * as in myChart = null. Use with caution!
-        *
-        * @method destroy
-        */
-       destroy: function()
-       {
-               //kill the Flash Player instance
-               if(this._swf)
-               {
-                       var container = YAHOO.util.Dom.get(this._containerID);
-                       container.removeChild(this._swf);
-               }
-               
-               var instanceName = this._id;
-               
-               //null out properties
-               for(var prop in this)
-               {
-                       if(YAHOO.lang.hasOwnProperty(this, prop))
-                       {
-                               this[prop] = null;
-                       }
-               }
-               
-               YAHOO.log("FlashAdapter instance destroyed: " + instanceName);
-       },
-
-       /**
-        * Embeds the SWF in the page and associates it with this instance.
-        *
-        * @method _embedSWF
-        * @private
-        */
-       _embedSWF: function(swfURL, containerID, swfID, version, backgroundColor, expressInstall, wmode, buttonSkin)
-       {
-               //standard SWFObject embed
-               var swfObj = new YAHOO.deconcept.SWFObject(swfURL, swfID, "100%", "100%", version, backgroundColor);
-
-               if(expressInstall)
-               {
-                       swfObj.useExpressInstall(expressInstall);
-               }
-
-               //make sure we can communicate with ExternalInterface
-               swfObj.addParam("allowScriptAccess", "always");
-               
-               if(wmode)
-               {
-                       swfObj.addParam("wmode", wmode);
-               }
-               
-               swfObj.addParam("menu", "false");
-               
-               //again, a useful ExternalInterface trick
-               swfObj.addVariable("allowedDomain", document.location.hostname);
-
-               //tell the SWF which HTML element it is in
-               swfObj.addVariable("elementID", swfID);
-
-               // set the name of the function to call when the swf has an event
-               swfObj.addVariable("eventHandler", "YAHOO.widget.FlashAdapter.eventHandler");
-               if (buttonSkin) {
-               swfObj.addVariable("buttonSkin", buttonSkin);
-               }
-               var container = YAHOO.util.Dom.get(containerID);
-               var result = swfObj.write(container);
-               if(result)
-               {
-                       this._swf = YAHOO.util.Dom.get(swfID);
-                       YAHOO.widget.FlashAdapter.owners[swfID] = this;
-               }
-               else
-               {
-                       YAHOO.log("Unable to load SWF " + swfURL);
-               }
-       },
-
-       /**
-        * Handles or re-dispatches events received from the SWF.
-        *
-        * @method _eventHandler
-        * @private
-        */
-       _eventHandler: function(event)
-       {
-               var type = event.type;
-               switch(type)
-               {
-                       case "swfReady":
-                               this._loadHandler();
-                               return;
-                       case "log":
-                               YAHOO.log(event.message, event.category, this.toString());
-                               return;
-               }
-               
-               
-               //be sure to return after your case or the event will automatically fire!
-               this.fireEvent(type, event);
-       },
-
-       /**
-        * Called when the SWF has been initialized.
-        *
-        * @method _loadHandler
-        * @private
-        */
-       _loadHandler: function()
-       {
-               this._initialized = false;
-               this._initAttributes(this._attributes);
-               this.setAttributes(this._attributes, true);
-               
-               this._initialized = true;
-               this.fireEvent("contentReady");
-       },
-       
-       set: function(name, value)
-       {
-               //save all the attributes in case the swf reloads
-               //so that we can pass them in again
-               this._attributes[name] = value;
-               YAHOO.widget.FlashAdapter.superclass.set.call(this, name, value);
-       },
-       
-       /**
-        * Initializes the attributes.
-        *
-        * @method _initAttributes
-        * @private
-        */
-       _initAttributes: function(attributes)
-       {
-               //should be overridden if other attributes need to be set up
-
-               /**
-                * @attribute wmode
-                * @description Sets the window mode of the Flash Player control. May be
-                *              "window", "opaque", or "transparent". Only available in the constructor
-                *              because it may not be set after Flash Player has been embedded in the page.
-                * @type String
-                */
-                
-               /**
-                * @attribute expressInstall
-                * @description URL pointing to a SWF file that handles Flash Player's express
-                *              install feature. Only available in the constructor because it may not be
-                *              set after Flash Player has been embedded in the page.
-                * @type String
-                */
-
-               /**
-                * @attribute version
-                * @description Minimum required version for the SWF file. Only available in the constructor because it may not be
-                *              set after Flash Player has been embedded in the page.
-                * @type String
-                */
-
-               /**
-                * @attribute backgroundColor
-                * @description The background color of the SWF. Only available in the constructor because it may not be
-                *              set after Flash Player has been embedded in the page.
-                * @type String
-                */
-                
-               /**
-                * @attribute altText
-                * @description The alternative text to provide for screen readers and other assistive technology.
-                * @type String
-                */
-               this.getAttributeConfig("altText",
-               {
-                       method: this._getAltText
-               });
-               this.setAttributeConfig("altText",
-               {
-                       method: this._setAltText
-               });
-               
-               /**
-                * @attribute swfURL
-                * @description Absolute or relative URL to the SWF displayed by the FlashAdapter. Only available in the constructor because it may not be
-                *              set after Flash Player has been embedded in the page.
-                * @type String
-                */
-               this.getAttributeConfig("swfURL",
-               {
-                       method: this._getSWFURL
-               });
-       },
-       
-       /**
-        * Getter for swfURL attribute.
-        *
-        * @method _getSWFURL
-        * @private
-        */
-       _getSWFURL: function()
-       {
-               return this._swfURL;
-       },
-       
-       /**
-        * Getter for altText attribute.
-        *
-        * @method _getAltText
-        * @private
-        */
-       _getAltText: function()
-       {
-               return this._swf.getAltText();
-       },
-
-       /**
-        * Setter for altText attribute.
-        *
-        * @method _setAltText
-        * @private
-        */
-       _setAltText: function(value)
-       {
-               return this._swf.setAltText(value);
-       }
-});
-
-
-/**
- * Receives event messages from SWF and passes them to the correct instance
- * of FlashAdapter.
- *
- * @method YAHOO.widget.FlashAdapter.eventHandler
- * @static
- * @private
- */
-YAHOO.widget.FlashAdapter.eventHandler = function(elementID, event)
-{
-
-       if(!YAHOO.widget.FlashAdapter.owners[elementID])
-       {
-               //fix for ie: if owner doesn't exist yet, try again in a moment
-               setTimeout(function() { YAHOO.widget.FlashAdapter.eventHandler( elementID, event ); }, 0);
-       }
-       else
-       {
-               YAHOO.widget.FlashAdapter.owners[elementID]._eventHandler(event);
-       }
-};
-
-/**
- * The number of proxy functions that have been created.
- * @static
- * @private
- */
-YAHOO.widget.FlashAdapter.proxyFunctionCount = 0;
-
-/**
- * Creates a globally accessible function that wraps a function reference.
- * Returns the proxy function's name as a string for use by the SWF through
- * ExternalInterface.
- *
- * @method YAHOO.widget.FlashAdapter.createProxyFunction
- * @static
- * @private
- */
-YAHOO.widget.FlashAdapter.createProxyFunction = function(func)
-{
-       var index = YAHOO.widget.FlashAdapter.proxyFunctionCount;
-       YAHOO.widget.FlashAdapter["proxyFunction" + index] = function()
-       {
-               return func.apply(null, arguments);
-       };
-       YAHOO.widget.FlashAdapter.proxyFunctionCount++;
-       return "YAHOO.widget.FlashAdapter.proxyFunction" + index.toString();
-};
-
-/**
- * Removes a function created with createProxyFunction()
- * 
- * @method YAHOO.widget.FlashAdapter.removeProxyFunction
- * @static
- * @private
- */
-YAHOO.widget.FlashAdapter.removeProxyFunction = function(funcName)
-{
-       //quick error check
-       if(!funcName || funcName.indexOf("YAHOO.widget.FlashAdapter.proxyFunction") < 0)
-       {
-               return;
-       }
-       
-       funcName = funcName.substr(26);
-       YAHOO.widget.FlashAdapter[funcName] = null;
-};
-/**
- * The YUI Uploader Control
- * @module uploader
- * @description <p>YUI Uploader provides file upload functionality that goes beyond the basic browser-based methods. 
- * Specifically, the YUI Uploader allows for:
- * <ol>
- * <li> Multiple file selection in a single "Open File" dialog.</li>
- * <li> File extension filters to facilitate the user's selection.</li>
- * <li> Progress tracking for file uploads.</li>
- * <li> A range of file metadata: filename, size, date created, date modified, and author.</li>
- * <li> A set of events dispatched on various aspects of the file upload process: file selection, upload progress, upload completion, etc.</li>
- * <li> Inclusion of additional data in the file upload POST request.</li>
- * <li> Faster file upload on broadband connections due to the modified SEND buffer size.</li>
- * <li> Same-page server response upon completion of the file upload.</li>
- * </ol>
- * </p>
- * @title Uploader
- * @namespace YAHOO.widget
- * @requires yahoo, dom, element, event
- */
-/**
- * Uploader class for the YUI Uploader component.
- *
- * @namespace YAHOO.widget
- * @class Uploader
- * @uses YAHOO.widget.FlashAdapter
- * @constructor
- * @param containerId {HTMLElement} Container element for the Flash Player instance.
- * @param buttonSkin {String} [optional]. If defined, the uploader is 
- * rendered as a button. This parameter must provide the URL of a button
- * skin sprite image. Acceptable types are: jpg, gif, png and swf. The 
- * sprite is divided evenly into four sections along its height (e.g., if
- * the sprite is 200 px tall, it's divided into four sections 50px each).
- * Each section is used as a skin for a specific state of the button: top
- * section is "up", second section is "over", third section is "down", and
- * fourth section is "disabled". 
- * If the parameter is not supplied, the uploader is rendered transparent,
- * and it's the developer's responsibility to create a visible UI below it.
- * @param forceTransparent {Boolean} This parameter, if true, forces the Flash
- * UI to be rendered with wmode set to "transparent". This behavior is useful 
- * in conjunction with non-rectangular button skins with PNG transparency. 
- * The parameter is false by default, and ignored if no buttonSkin is defined.
-  */
-YAHOO.widget.Uploader = function(containerId, buttonSkin, forceTransparent)
-{
-       var newWMode = "window";
-
-       if (!(buttonSkin) || (buttonSkin && forceTransparent)) {
-               newWMode = "transparent";
-       }
-
-       
-       YAHOO.widget.Uploader.superclass.constructor.call(this, YAHOO.widget.Uploader.SWFURL, containerId, {wmode:newWMode}, buttonSkin);
-
-       /**
-        * Fires when the mouse is pressed over the Uploader.
-        * Only fires when the Uploader UI is enabled and
-        * the render type is 'transparent'.
-        *
-        * @event mouseDown
-        * @param event.type {String} The event type
-        */
-       this.createEvent("mouseDown");
-       
-       /**
-        * Fires when the mouse is released over the Uploader.
-        * Only fires when the Uploader UI is enabled and
-        * the render type is 'transparent'.
-        *
-        * @event mouseUp
-        * @param event.type {String} The event type
-        */
-       this.createEvent("mouseUp");
-
-       /**
-        * Fires when the mouse rolls over the Uploader.
-        *
-        * @event rollOver
-        * @param event.type {String} The event type
-        */
-       this.createEvent("rollOver");
-       
-       /**
-        * Fires when the mouse rolls out of the Uploader.
-        *
-        * @event rollOut
-        * @param event.type {String} The event type
-        */
-       this.createEvent("rollOut");
-       
-       /**
-        * Fires when the uploader is clicked.
-        *
-        * @event click
-        * @param event.type {String} The event type
-        */
-       this.createEvent("click");
-       
-       /**
-        * Fires when the user has finished selecting files in the "Open File" dialog.
-        *
-        * @event fileSelect
-        * @param event.type {String} The event type
-        * @param event.fileList {Object} A dictionary of objects with file information
-        * @param event.fileList[].size {Number} File size in bytes for a specific file in fileList
-        * @param event.fileList[].cDate {Date} Creation date for a specific file in fileList
-        * @param event.fileList[].mDate {Date} Modification date for a specific file in fileList
-        * @param event.fileList[].name {String} File name for a specific file in fileList
-        * @param event.fileList[].id {String} Unique file id of a specific file in fileList
-        */
-       this.createEvent("fileSelect");
-
-       /**
-        * Fires when an upload of a specific file has started.
-        *
-        * @event uploadStart
-        * @param event.type {String} The event type
-        * @param event.id {String} The id of the file that's started to upload
-        */
-       this.createEvent("uploadStart");
-
-       /**
-        * Fires when new information about the upload progress for a specific file is available.
-        *
-        * @event uploadProgress
-        * @param event.type {String} The event type
-        * @param event.id {String} The id of the file with which the upload progress data is associated
-        * @param bytesLoaded {Number} The number of bytes of the file uploaded so far
-        * @param bytesTotal {Number} The total size of the file
-        */
-       this.createEvent("uploadProgress");
-       
-       /**
-        * Fires when an upload for a specific file is cancelled.
-        *
-        * @event uploadCancel
-        * @param event.type {String} The event type
-        * @param event.id {String} The id of the file with which the upload has been cancelled.
-        */     
-       this.createEvent("uploadCancel");
-
-       /**
-        * Fires when an upload for a specific file is complete.
-        *
-        * @event uploadComplete
-        * @param event.type {String} The event type
-        * @param event.id {String} The id of the file for which the upload has been completed.
-        */     
-       this.createEvent("uploadComplete");
-
-       /**
-        * Fires when the server sends data in response to a completed upload.
-        *
-        * @event uploadCompleteData
-        * @param event.type {String} The event type
-        * @param event.id {String} The id of the file for which the upload has been completed.
-        * @param event.data {String} The raw data returned by the server in response to the upload.
-        */     
-       this.createEvent("uploadCompleteData");
-       
-       /**
-        * Fires when an upload error occurs.
-        *
-        * @event uploadError
-        * @param event.type {String} The event type
-        * @param event.id {String} The id of the file that was being uploaded when the error has occurred.
-        * @param event.status {String} The status message associated with the error.
-        */     
-       this.createEvent("uploadError");
-}
-
-/**
- * Location of the Uploader SWF
- *
- * @property Chart.SWFURL
- * @private
- * @static
- * @final
- * @default "assets/uploader.swf"
- */
-YAHOO.widget.Uploader.SWFURL = "assets/uploader.swf";
-
-YAHOO.extend(YAHOO.widget.Uploader, YAHOO.widget.FlashAdapter,
-{      
-/**
- * Starts the upload of the file specified by fileID to the location specified by uploadScriptPath.
- *
- * @param fileID {String} The id of the file to start uploading.
- * @param uploadScriptPath {String} The URL of the upload location.
- * @param method {String} Either "GET" or "POST", specifying how the variables accompanying the file upload POST request should be submitted. "GET" by default.
- * @param vars {Object} The object containing variables to be sent in the same request as the file upload.
- * @param fieldName {String} The name of the variable in the POST request containing the file data. "Filedata" by default.
- * </code> 
- */
-       upload: function(fileID, uploadScriptPath, method, vars, fieldName)
-       {
-               this._swf.upload(fileID, uploadScriptPath, method, vars, fieldName);
-       },
-       
-/**
- * Starts the upload of the files specified by fileIDs, or adds them to a currently running queue. The upload queue is automatically managed.
- *
- * @param fileIDs {Array} The ids of the files to start uploading.
- * @param uploadScriptPath {String} The URL of the upload location.
- * @param method {String} Either "GET" or "POST", specifying how the variables accompanying the file upload POST request should be submitted. "GET" by default.
- * @param vars {Object} The object containing variables to be sent in the same request as the file upload.
- * @param fieldName {String} The name of the variable in the POST request containing the file data. "Filedata" by default.
- * </code> 
- */
-       uploadThese: function(fileIDs, uploadScriptPath, method, vars, fieldName)
-       {
-               this._swf.uploadThese(fileIDs, uploadScriptPath, method, vars, fieldName);
-       },
-       
-/**
- * Starts uploading all files in the queue. If this function is called, the upload queue is automatically managed.
- *
- * @param uploadScriptPath {String} The URL of the upload location.
- * @param method {String} Either "GET" or "POST", specifying how the variables accompanying the file upload POST request should be submitted. "GET" by default.
- * @param vars {Object} The object containing variables to be sent in the same request as the file upload.
- * @param fieldName {String} The name of the variable in the POST request containing the file data. "Filedata" by default.
- * </code> 
- */
-       uploadAll: function(uploadScriptPath, method, vars, fieldName)
-       {
-               this._swf.uploadAll(uploadScriptPath, method, vars, fieldName);
-       },
-
-/**
- * Cancels the upload of a specified file. If no file id is specified, all ongoing uploads are cancelled.
- *
- * @param fileID {String} The ID of the file whose upload should be cancelled.
- */
-       cancel: function(fileID)
-       {
-               this._swf.cancel(fileID);
-       },
-
-/**
- * Clears the list of files queued for upload.
- *
- */
-       clearFileList: function()
-       {
-               this._swf.clearFileList();
-       },
-       
-/**
- * Removes the specified file from the upload queue. 
- *
- * @param fileID {String} The id of the file to remove from the upload queue. 
- */
-       removeFile: function (fileID) 
-       {
-               this._swf.removeFile(fileID);
-       },
-
-/**
- * Turns the logging functionality on.
- * Uses Flash internal trace logging, as well as YUI Logger, if available.
- *
- * @param allowLogging {Boolean} If true, logs are output; otherwise, no logs are produced.
- */
-    setAllowLogging: function (allowLogging)
-    {
-       this._swf.setAllowLogging(allowLogging);
-    },
-
-/**
- * Sets the number of simultaneous uploads when using uploadAll()
- * The minimum value is 1, and maximum value is 5. The default value is 2.
- *
- * @param simUploadLimit {int} Number of simultaneous uploads, between 1 and 5.
- */
-    setSimUploadLimit : function (simUploadLimit)
-    {
-       this._swf.setSimUploadLimit(simUploadLimit);
-    },
-
-/**
- * Sets the flag allowing users to select multiple files for the upload.
- *
- * @param allowMultipleFiles {Boolean} If true, multiple files can be selected. False by default.
- */     
-    setAllowMultipleFiles : function (allowMultipleFiles) 
-    {
-       this._swf.setAllowMultipleFiles(allowMultipleFiles);
-    },
-
-/**
- * Sets the file filters for the "Browse" dialog.
- *
- *  @param newFilterArray An array of sets of key-value pairs of the form
- *  {extensions: extensionString, description: descriptionString, [optional]macType: macTypeString}
- *  The extensions string is a semicolon-delimited list of elements of the form "*.xxx", 
- *  e.g. "*.jpg;*.gif;*.png". 
- */       
-    setFileFilters : function (fileFilters) 
-    {
-       this._swf.setFileFilters(fileFilters);
-    },
-
-       /**
-        * Enables the mouse events on the Uploader.
-        * If the uploader is being rendered as a button,
-        * then the button's skin is set to "up"
-        * (first section of the button skin sprite).
-        *
-        */
-       enable : function ()
-       {
-               this._swf.enable();
-       },
-
-       /**
-        * Disables the mouse events on the Uploader.
-        * If the uploader is being rendered as a button,
-        * then the button's skin is set to "disabled"
-        * (fourth section of the button skin sprite).
-        *
-        */
-       disable : function () 
-       {
-               this._swf.disable();
-       }
-});
-YAHOO.register("uploader", YAHOO.widget.Uploader, {version: "2.8.0r4", build: "2449"});
diff --git a/koha-tmpl/intranet-tmpl/prog/en/lib/yui/uploader/uploader-min.js b/koha-tmpl/intranet-tmpl/prog/en/lib/yui/uploader/uploader-min.js
deleted file mode 100644 (file)
index ba6a895..0000000
+++ /dev/null
@@ -1,15 +0,0 @@
-/*
-Copyright (c) 2009, Yahoo! Inc. All rights reserved.
-Code licensed under the BSD License:
-http://developer.yahoo.net/yui/license.txt
-version: 2.8.0r4
-*/
-/*
- * SWFObject v1.5: Flash Player detection and embed - http://blog.deconcept.com/swfobject/
- *
- * SWFObject is (c) 2007 Geoff Stearns and is released under the MIT License:
- * http://www.opensource.org/licenses/mit-license.php
- * @namespace YAHOO
- */
-YAHOO.namespace("deconcept");YAHOO.deconcept=YAHOO.deconcept||{};if(typeof YAHOO.deconcept.util=="undefined"||!YAHOO.deconcept.util){YAHOO.deconcept.util={};}if(typeof YAHOO.deconcept.SWFObjectUtil=="undefined"||!YAHOO.deconcept.SWFObjectUtil){YAHOO.deconcept.SWFObjectUtil={};}YAHOO.deconcept.SWFObject=function(E,C,K,F,H,J,L,G,A,D){if(!document.getElementById){return;}this.DETECT_KEY=D?D:"detectflash";this.skipDetect=YAHOO.deconcept.util.getRequestParameter(this.DETECT_KEY);this.params={};this.variables={};this.attributes=[];if(E){this.setAttribute("swf",E);}if(C){this.setAttribute("id",C);}if(K){this.setAttribute("width",K);}if(F){this.setAttribute("height",F);}if(H){this.setAttribute("version",new YAHOO.deconcept.PlayerVersion(H.toString().split(".")));}this.installedVer=YAHOO.deconcept.SWFObjectUtil.getPlayerVersion();if(!window.opera&&document.all&&this.installedVer.major>7){YAHOO.deconcept.SWFObject.doPrepUnload=true;}if(J){this.addParam("bgcolor",J);}var B=L?L:"high";this.addParam("quality",B);this.setAttribute("useExpressInstall",false);this.setAttribute("doExpressInstall",false);var I=(G)?G:window.location;this.setAttribute("xiRedirectUrl",I);this.setAttribute("redirectUrl","");if(A){this.setAttribute("redirectUrl",A);}};YAHOO.deconcept.SWFObject.prototype={useExpressInstall:function(A){this.xiSWFPath=!A?"expressinstall.swf":A;this.setAttribute("useExpressInstall",true);},setAttribute:function(A,B){this.attributes[A]=B;},getAttribute:function(A){return this.attributes[A];},addParam:function(A,B){this.params[A]=B;},getParams:function(){return this.params;},addVariable:function(A,B){this.variables[A]=B;},getVariable:function(A){return this.variables[A];},getVariables:function(){return this.variables;},getVariablePairs:function(){var A=[];var B;var C=this.getVariables();for(B in C){if(C.hasOwnProperty(B)){A[A.length]=B+"="+C[B];}}return A;},getSWFHTML:function(){var D="";var C={};var A="";var B="";if(navigator.plugins&&navigator.mimeTypes&&navigator.mimeTypes.length){if(this.getAttribute("doExpressInstall")){this.addVariable("MMplayerType","PlugIn");this.setAttribute("swf",this.xiSWFPath);}D='<embed type="application/x-shockwave-flash" src="'+this.getAttribute("swf")+'" width="'+this.getAttribute("width")+'" height="'+this.getAttribute("height")+'" style="'+this.getAttribute("style")+'"';D+=' id="'+this.getAttribute("id")+'" name="'+this.getAttribute("id")+'" ';C=this.getParams();for(A in C){if(C.hasOwnProperty(A)){D+=[A]+'="'+C[A]+'" ';}}B=this.getVariablePairs().join("&");if(B.length>0){D+='flashvars="'+B+'"';}D+="/>";}else{if(this.getAttribute("doExpressInstall")){this.addVariable("MMplayerType","ActiveX");this.setAttribute("swf",this.xiSWFPath);}D='<object id="'+this.getAttribute("id")+'" classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" width="'+this.getAttribute("width")+'" height="'+this.getAttribute("height")+'" style="'+this.getAttribute("style")+'">';D+='<param name="movie" value="'+this.getAttribute("swf")+'" />';C=this.getParams();for(A in C){if(C.hasOwnProperty(A)){D+='<param name="'+A+'" value="'+C[A]+'" />';}}B=this.getVariablePairs().join("&");if(B.length>0){D+='<param name="flashvars" value="'+B+'" />';}D+="</object>";}return D;},write:function(A){if(this.getAttribute("useExpressInstall")){var B=new YAHOO.deconcept.PlayerVersion([6,0,65]);if(this.installedVer.versionIsValid(B)&&!this.installedVer.versionIsValid(this.getAttribute("version"))){this.setAttribute("doExpressInstall",true);this.addVariable("MMredirectURL",escape(this.getAttribute("xiRedirectUrl")));document.title=document.title.slice(0,47)+" - Flash Player Installation";this.addVariable("MMdoctitle",document.title);}}if(this.skipDetect||this.getAttribute("doExpressInstall")||this.installedVer.versionIsValid(this.getAttribute("version"))){var C=(typeof A=="string")?document.getElementById(A):A;C.innerHTML=this.getSWFHTML();return true;}else{if(this.getAttribute("redirectUrl")!==""){document.location.replace(this.getAttribute("redirectUrl"));}}return false;}};YAHOO.deconcept.SWFObjectUtil.getPlayerVersion=function(){var D=null;var C=new YAHOO.deconcept.PlayerVersion([0,0,0]);if(navigator.plugins&&navigator.mimeTypes.length){var A=navigator.plugins["Shockwave Flash"];if(A&&A.description){C=new YAHOO.deconcept.PlayerVersion(A.description.replace(/([a-zA-Z]|\s)+/,"").replace(/(\s+r|\s+b[0-9]+)/,".").split("."));}}else{if(navigator.userAgent&&navigator.userAgent.indexOf("Windows CE")>=0){var B=3;while(D){try{B++;D=new ActiveXObject("ShockwaveFlash.ShockwaveFlash."+B);C=new YAHOO.deconcept.PlayerVersion([B,0,0]);}catch(E){D=null;}}}else{try{D=new ActiveXObject("ShockwaveFlash.ShockwaveFlash.7");}catch(E){try{D=new ActiveXObject("ShockwaveFlash.ShockwaveFlash.6");C=new YAHOO.deconcept.PlayerVersion([6,0,21]);D.AllowScriptAccess="always";}catch(E){if(C.major==6){return C;}}try{D=new ActiveXObject("ShockwaveFlash.ShockwaveFlash");}catch(E){}}if(D!==null){C=new YAHOO.deconcept.PlayerVersion(D.GetVariable("$version").split(" ")[1].split(","));}}}return C;};YAHOO.deconcept.PlayerVersion=function(A){this.major=A[0]!==null?parseInt(A[0],0):0;this.minor=A[1]!==null?parseInt(A[1],0):0;this.rev=A[2]!==null?parseInt(A[2],0):0;};YAHOO.deconcept.PlayerVersion.prototype.versionIsValid=function(A){if(this.major<A.major){return false;}if(this.major>A.major){return true;}if(this.minor<A.minor){return false;}if(this.minor>A.minor){return true;}if(this.rev<A.rev){return false;}return true;};YAHOO.deconcept.util={getRequestParameter:function(D){var C=document.location.search||document.location.hash;if(D===null){return C;}if(C){var B=C.substring(1).split("&");for(var A=0;A<B.length;A++){if(B[A].substring(0,B[A].indexOf("="))==D){return B[A].substring((B[A].indexOf("=")+1));}}}return"";
-}};YAHOO.deconcept.SWFObjectUtil.cleanupSWFs=function(){var C=document.getElementsByTagName("OBJECT");for(var B=C.length-1;B>=0;B--){C[B].style.display="none";for(var A in C[B]){if(typeof C[B][A]=="function"){C[B][A]=function(){};}}}};if(YAHOO.deconcept.SWFObject.doPrepUnload){if(!YAHOO.deconcept.unloadSet){YAHOO.deconcept.SWFObjectUtil.prepUnload=function(){__flash_unloadHandler=function(){};__flash_savedUnloadHandler=function(){};window.attachEvent("onunload",YAHOO.deconcept.SWFObjectUtil.cleanupSWFs);};window.attachEvent("onbeforeunload",YAHOO.deconcept.SWFObjectUtil.prepUnload);YAHOO.deconcept.unloadSet=true;}}if(!document.getElementById&&document.all){document.getElementById=function(A){return document.all[A];};}YAHOO.widget.FlashAdapter=function(E,A,B,C){this._queue=this._queue||[];this._events=this._events||{};this._configs=this._configs||{};B=B||{};this._id=B.id=B.id||YAHOO.util.Dom.generateId(null,"yuigen");B.version=B.version||"9.0.45";B.backgroundColor=B.backgroundColor||"#ffffff";this._attributes=B;this._swfURL=E;this._containerID=A;this._embedSWF(this._swfURL,this._containerID,B.id,B.version,B.backgroundColor,B.expressInstall,B.wmode,C);try{this.createEvent("contentReady");}catch(D){}};YAHOO.widget.FlashAdapter.owners=YAHOO.widget.FlashAdapter.owners||{};YAHOO.extend(YAHOO.widget.FlashAdapter,YAHOO.util.AttributeProvider,{_swfURL:null,_containerID:null,_swf:null,_id:null,_initialized:false,_attributes:null,toString:function(){return"FlashAdapter "+this._id;},destroy:function(){if(this._swf){var B=YAHOO.util.Dom.get(this._containerID);B.removeChild(this._swf);}var A=this._id;for(var C in this){if(YAHOO.lang.hasOwnProperty(this,C)){this[C]=null;}}},_embedSWF:function(J,I,E,C,F,G,B,H){var D=new YAHOO.deconcept.SWFObject(J,E,"100%","100%",C,F);if(G){D.useExpressInstall(G);}D.addParam("allowScriptAccess","always");if(B){D.addParam("wmode",B);}D.addParam("menu","false");D.addVariable("allowedDomain",document.location.hostname);D.addVariable("elementID",E);D.addVariable("eventHandler","YAHOO.widget.FlashAdapter.eventHandler");if(H){D.addVariable("buttonSkin",H);}var A=YAHOO.util.Dom.get(I);var K=D.write(A);if(K){this._swf=YAHOO.util.Dom.get(E);YAHOO.widget.FlashAdapter.owners[E]=this;}else{}},_eventHandler:function(B){var A=B.type;switch(A){case"swfReady":this._loadHandler();return;case"log":return;}this.fireEvent(A,B);},_loadHandler:function(){this._initialized=false;this._initAttributes(this._attributes);this.setAttributes(this._attributes,true);this._initialized=true;this.fireEvent("contentReady");},set:function(A,B){this._attributes[A]=B;YAHOO.widget.FlashAdapter.superclass.set.call(this,A,B);},_initAttributes:function(A){this.getAttributeConfig("altText",{method:this._getAltText});this.setAttributeConfig("altText",{method:this._setAltText});this.getAttributeConfig("swfURL",{method:this._getSWFURL});},_getSWFURL:function(){return this._swfURL;},_getAltText:function(){return this._swf.getAltText();},_setAltText:function(A){return this._swf.setAltText(A);}});YAHOO.widget.FlashAdapter.eventHandler=function(A,B){if(!YAHOO.widget.FlashAdapter.owners[A]){setTimeout(function(){YAHOO.widget.FlashAdapter.eventHandler(A,B);},0);}else{YAHOO.widget.FlashAdapter.owners[A]._eventHandler(B);}};YAHOO.widget.FlashAdapter.proxyFunctionCount=0;YAHOO.widget.FlashAdapter.createProxyFunction=function(B){var A=YAHOO.widget.FlashAdapter.proxyFunctionCount;YAHOO.widget.FlashAdapter["proxyFunction"+A]=function(){return B.apply(null,arguments);};YAHOO.widget.FlashAdapter.proxyFunctionCount++;return"YAHOO.widget.FlashAdapter.proxyFunction"+A.toString();};YAHOO.widget.FlashAdapter.removeProxyFunction=function(A){if(!A||A.indexOf("YAHOO.widget.FlashAdapter.proxyFunction")<0){return;}A=A.substr(26);YAHOO.widget.FlashAdapter[A]=null;};YAHOO.widget.Uploader=function(A,B,D){var C="window";if(!(B)||(B&&D)){C="transparent";}YAHOO.widget.Uploader.superclass.constructor.call(this,YAHOO.widget.Uploader.SWFURL,A,{wmode:C},B);this.createEvent("mouseDown");this.createEvent("mouseUp");this.createEvent("rollOver");this.createEvent("rollOut");this.createEvent("click");this.createEvent("fileSelect");this.createEvent("uploadStart");this.createEvent("uploadProgress");this.createEvent("uploadCancel");this.createEvent("uploadComplete");this.createEvent("uploadCompleteData");this.createEvent("uploadError");};YAHOO.widget.Uploader.SWFURL="assets/uploader.swf";YAHOO.extend(YAHOO.widget.Uploader,YAHOO.widget.FlashAdapter,{upload:function(A,B,E,C,D){this._swf.upload(A,B,E,C,D);},uploadThese:function(B,A,E,C,D){this._swf.uploadThese(B,A,E,C,D);},uploadAll:function(A,D,B,C){this._swf.uploadAll(A,D,B,C);},cancel:function(A){this._swf.cancel(A);},clearFileList:function(){this._swf.clearFileList();},removeFile:function(A){this._swf.removeFile(A);},setAllowLogging:function(A){this._swf.setAllowLogging(A);},setSimUploadLimit:function(A){this._swf.setSimUploadLimit(A);},setAllowMultipleFiles:function(A){this._swf.setAllowMultipleFiles(A);},setFileFilters:function(A){this._swf.setFileFilters(A);},enable:function(){this._swf.enable();},disable:function(){this._swf.disable();}});YAHOO.register("uploader",YAHOO.widget.Uploader,{version:"2.8.0r4",build:"2449"});
\ No newline at end of file
diff --git a/koha-tmpl/intranet-tmpl/prog/en/lib/yui/uploader/uploader.js b/koha-tmpl/intranet-tmpl/prog/en/lib/yui/uploader/uploader.js
deleted file mode 100644 (file)
index ce05e33..0000000
+++ /dev/null
@@ -1,1069 +0,0 @@
-/*
-Copyright (c) 2009, Yahoo! Inc. All rights reserved.
-Code licensed under the BSD License:
-http://developer.yahoo.net/yui/license.txt
-version: 2.8.0r4
-*/
-/*extern ActiveXObject, __flash_unloadHandler, __flash_savedUnloadHandler */
-/*!
- * SWFObject v1.5: Flash Player detection and embed - http://blog.deconcept.com/swfobject/
- *
- * SWFObject is (c) 2007 Geoff Stearns and is released under the MIT License:
- * http://www.opensource.org/licenses/mit-license.php
- * @namespace YAHOO
- */
-
-YAHOO.namespace("deconcept"); 
-       
-YAHOO.deconcept = YAHOO.deconcept || {};
-
-if(typeof YAHOO.deconcept.util == "undefined" || !YAHOO.deconcept.util)
-{
-       YAHOO.deconcept.util = {};
-}
-
-if(typeof YAHOO.deconcept.SWFObjectUtil == "undefined" || !YAHOO.deconcept.SWFObjectUtil)
-{
-       YAHOO.deconcept.SWFObjectUtil = {};
-}
-
-YAHOO.deconcept.SWFObject = function(swf, id, w, h, ver, c, quality, xiRedirectUrl, redirectUrl, detectKey)
-{
-       if(!document.getElementById) { return; }
-       this.DETECT_KEY = detectKey ? detectKey : 'detectflash';
-       this.skipDetect = YAHOO.deconcept.util.getRequestParameter(this.DETECT_KEY);
-       this.params = {};
-       this.variables = {};
-       this.attributes = [];
-       if(swf) { this.setAttribute('swf', swf); }
-       if(id) { this.setAttribute('id', id); }
-       if(w) { this.setAttribute('width', w); }
-       if(h) { this.setAttribute('height', h); }
-       if(ver) { this.setAttribute('version', new YAHOO.deconcept.PlayerVersion(ver.toString().split("."))); }
-       this.installedVer = YAHOO.deconcept.SWFObjectUtil.getPlayerVersion();
-       if (!window.opera && document.all && this.installedVer.major > 7)
-       {
-               // only add the onunload cleanup if the Flash Player version supports External Interface and we are in IE
-               YAHOO.deconcept.SWFObject.doPrepUnload = true;
-       }
-       if(c)
-       {
-               this.addParam('bgcolor', c);
-       }
-       var q = quality ? quality : 'high';
-       this.addParam('quality', q);
-       this.setAttribute('useExpressInstall', false);
-       this.setAttribute('doExpressInstall', false);
-       var xir = (xiRedirectUrl) ? xiRedirectUrl : window.location;
-       this.setAttribute('xiRedirectUrl', xir);
-       this.setAttribute('redirectUrl', '');
-       if(redirectUrl)
-       {
-               this.setAttribute('redirectUrl', redirectUrl);
-       }
-};
-
-YAHOO.deconcept.SWFObject.prototype =
-{
-       useExpressInstall: function(path)
-       {
-               this.xiSWFPath = !path ? "expressinstall.swf" : path;
-               this.setAttribute('useExpressInstall', true);
-       },
-       setAttribute: function(name, value){
-               this.attributes[name] = value;
-       },
-       getAttribute: function(name){
-               return this.attributes[name];
-       },
-       addParam: function(name, value){
-               this.params[name] = value;
-       },
-       getParams: function(){
-               return this.params;
-       },
-       addVariable: function(name, value){
-               this.variables[name] = value;
-       },
-       getVariable: function(name){
-               return this.variables[name];
-       },
-       getVariables: function(){
-               return this.variables;
-       },
-       getVariablePairs: function(){
-               var variablePairs = [];
-               var key;
-               var variables = this.getVariables();
-               for(key in variables)
-               {
-                       if(variables.hasOwnProperty(key))
-                       {
-                               variablePairs[variablePairs.length] = key +"="+ variables[key];
-                       }
-               }
-               return variablePairs;
-       },
-       getSWFHTML: function() {
-               var swfNode = "";
-               var params = {};
-               var key = "";
-               var pairs = "";
-               if (navigator.plugins && navigator.mimeTypes && navigator.mimeTypes.length) { // netscape plugin architecture
-                       if (this.getAttribute("doExpressInstall")) {
-                               this.addVariable("MMplayerType", "PlugIn");
-                               this.setAttribute('swf', this.xiSWFPath);
-                       }
-                       swfNode = '<embed type="application/x-shockwave-flash" src="'+ this.getAttribute('swf') +'" width="'+ this.getAttribute('width') +'" height="'+ this.getAttribute('height') +'" style="'+ this.getAttribute('style') +'"';
-                       swfNode += ' id="'+ this.getAttribute('id') +'" name="'+ this.getAttribute('id') +'" ';
-                       params = this.getParams();
-                       for(key in params)
-                       {
-                               if(params.hasOwnProperty(key))
-                               {
-                                       swfNode += [key] +'="'+ params[key] +'" ';
-                               }
-                       }
-                       pairs = this.getVariablePairs().join("&");
-                       if (pairs.length > 0){ swfNode += 'flashvars="'+ pairs +'"'; }
-                       swfNode += '/>';
-               } else { // PC IE
-                       if (this.getAttribute("doExpressInstall")) {
-                               this.addVariable("MMplayerType", "ActiveX");
-                               this.setAttribute('swf', this.xiSWFPath);
-                       }
-                       swfNode = '<object id="'+ this.getAttribute('id') +'" classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" width="'+ this.getAttribute('width') +'" height="'+ this.getAttribute('height') +'" style="'+ this.getAttribute('style') +'">';
-                       swfNode += '<param name="movie" value="'+ this.getAttribute('swf') +'" />';
-                       params = this.getParams();
-                       for(key in params)
-                       {
-                               if(params.hasOwnProperty(key))
-                               {
-                                       swfNode += '<param name="'+ key +'" value="'+ params[key] +'" />';
-                               }
-                       }
-                       pairs = this.getVariablePairs().join("&");
-                       if(pairs.length > 0) {swfNode += '<param name="flashvars" value="'+ pairs +'" />';}
-                       swfNode += "</object>";
-               }
-               return swfNode;
-       },
-       write: function(elementId)
-       {
-               if(this.getAttribute('useExpressInstall')) {
-                       // check to see if we need to do an express install
-                       var expressInstallReqVer = new YAHOO.deconcept.PlayerVersion([6,0,65]);
-                       if (this.installedVer.versionIsValid(expressInstallReqVer) && !this.installedVer.versionIsValid(this.getAttribute('version'))) {
-                               this.setAttribute('doExpressInstall', true);
-                               this.addVariable("MMredirectURL", escape(this.getAttribute('xiRedirectUrl')));
-                               document.title = document.title.slice(0, 47) + " - Flash Player Installation";
-                               this.addVariable("MMdoctitle", document.title);
-                       }
-               }
-               if(this.skipDetect || this.getAttribute('doExpressInstall') || this.installedVer.versionIsValid(this.getAttribute('version')))
-               {
-                       var n = (typeof elementId == 'string') ? document.getElementById(elementId) : elementId;
-                       n.innerHTML = this.getSWFHTML();
-                       return true;
-               }
-               else
-               {
-                       if(this.getAttribute('redirectUrl') !== "")
-                       {
-                               document.location.replace(this.getAttribute('redirectUrl'));
-                       }
-               }
-               return false;
-       }
-};
-
-/* ---- detection functions ---- */
-YAHOO.deconcept.SWFObjectUtil.getPlayerVersion = function()
-{
-       var axo = null;
-       var PlayerVersion = new YAHOO.deconcept.PlayerVersion([0,0,0]);
-       if(navigator.plugins && navigator.mimeTypes.length)
-       {
-               var x = navigator.plugins["Shockwave Flash"];
-               if(x && x.description)
-               {
-                       PlayerVersion = new YAHOO.deconcept.PlayerVersion(x.description.replace(/([a-zA-Z]|\s)+/, "").replace(/(\s+r|\s+b[0-9]+)/, ".").split("."));
-               }
-       }
-       else if (navigator.userAgent && navigator.userAgent.indexOf("Windows CE") >= 0)
-       { // if Windows CE
-               var counter = 3;
-               while(axo)
-               {
-                       try
-                       {
-                               counter++;
-                               axo = new ActiveXObject("ShockwaveFlash.ShockwaveFlash."+ counter);
-//                             document.write("player v: "+ counter);
-                               PlayerVersion = new YAHOO.deconcept.PlayerVersion([counter,0,0]);
-                       }
-                       catch(e)
-                       {
-                               axo = null;
-                       }
-               }
-       }
-       else
-       { // Win IE (non mobile)
-               // do minor version lookup in IE, but avoid fp6 crashing issues
-               // see http://blog.deconcept.com/2006/01/11/getvariable-setvariable-crash-internet-explorer-flash-6/
-               try
-               {
-                       axo = new ActiveXObject("ShockwaveFlash.ShockwaveFlash.7");
-               }
-               catch(e)
-               {
-                       try
-                       {
-                               axo = new ActiveXObject("ShockwaveFlash.ShockwaveFlash.6");
-                               PlayerVersion = new YAHOO.deconcept.PlayerVersion([6,0,21]);
-                               axo.AllowScriptAccess = "always"; // error if player version < 6.0.47 (thanks to Michael Williams @ Adobe for this code)
-                       }
-                       catch(e)
-                       {
-                               if(PlayerVersion.major == 6)
-                               {
-                                       return PlayerVersion;
-                               }
-                       }
-                       try
-                       {
-                               axo = new ActiveXObject("ShockwaveFlash.ShockwaveFlash");
-                       }
-                       catch(e) {}
-               }
-               
-               if(axo !== null)
-               {
-                       PlayerVersion = new YAHOO.deconcept.PlayerVersion(axo.GetVariable("$version").split(" ")[1].split(","));
-               }
-       }
-       return PlayerVersion;
-};
-
-YAHOO.deconcept.PlayerVersion = function(arrVersion)
-{
-       this.major = arrVersion[0] !== null ? parseInt(arrVersion[0], 0) : 0;
-       this.minor = arrVersion[1] !== null ? parseInt(arrVersion[1], 0) : 0;
-       this.rev = arrVersion[2] !== null ? parseInt(arrVersion[2], 0) : 0;
-};
-
-YAHOO.deconcept.PlayerVersion.prototype.versionIsValid = function(fv)
-{
-       if(this.major < fv.major)
-       {
-               return false;
-       }
-       if(this.major > fv.major)
-       {
-               return true;
-       }
-       if(this.minor < fv.minor)
-       {
-               return false;
-       }
-       if(this.minor > fv.minor)
-       {
-               return true;
-       }
-       if(this.rev < fv.rev)
-       {
-               return false;
-       }
-       return true;
-};
-
-/* ---- get value of query string param ---- */
-YAHOO.deconcept.util =
-{
-       getRequestParameter: function(param)
-       {
-               var q = document.location.search || document.location.hash;
-               if(param === null) { return q; }
-               if(q)
-               {
-                       var pairs = q.substring(1).split("&");
-                       for(var i=0; i < pairs.length; i++)
-                       {
-                               if (pairs[i].substring(0, pairs[i].indexOf("=")) == param)
-                               {
-                                       return pairs[i].substring((pairs[i].indexOf("=") + 1));
-                               }
-                       }
-               }
-               return "";
-       }
-};
-
-/* fix for video streaming bug */
-YAHOO.deconcept.SWFObjectUtil.cleanupSWFs = function()
-{
-       var objects = document.getElementsByTagName("OBJECT");
-       for(var i = objects.length - 1; i >= 0; i--)
-       {
-               objects[i].style.display = 'none';
-               for(var x in objects[i])
-               {
-                       if(typeof objects[i][x] == 'function')
-                       {
-                               objects[i][x] = function(){};
-                       }
-               }
-       }
-};
-
-// fixes bug in some fp9 versions see http://blog.deconcept.com/2006/07/28/swfobject-143-released/
-if(YAHOO.deconcept.SWFObject.doPrepUnload)
-{
-       if(!YAHOO.deconcept.unloadSet)
-       {
-               YAHOO.deconcept.SWFObjectUtil.prepUnload = function()
-               {
-                       __flash_unloadHandler = function(){};
-                       __flash_savedUnloadHandler = function(){};
-                       window.attachEvent("onunload", YAHOO.deconcept.SWFObjectUtil.cleanupSWFs);
-               };
-               window.attachEvent("onbeforeunload", YAHOO.deconcept.SWFObjectUtil.prepUnload);
-               YAHOO.deconcept.unloadSet = true;
-       }
-}
-
-/* add document.getElementById if needed (mobile IE < 5) */
-if(!document.getElementById && document.all)
-{
-       document.getElementById = function(id) { return document.all[id]; };
-}
-/**
- * Wraps Flash embedding functionality and allows communication with SWF through
- * attributes.
- *
- * @namespace YAHOO.widget
- * @class FlashAdapter
- * @uses YAHOO.util.AttributeProvider
- */
-YAHOO.widget.FlashAdapter = function(swfURL, containerID, attributes, buttonSkin)
-{
-       
-       this._queue = this._queue || [];
-       this._events = this._events || {};
-       this._configs = this._configs || {};
-       attributes = attributes || {};
-       
-       //the Flash Player external interface code from Adobe doesn't play nicely
-       //with the default value, yui-gen, in IE
-       this._id = attributes.id = attributes.id || YAHOO.util.Dom.generateId(null, "yuigen");
-       attributes.version = attributes.version || "9.0.45";
-       attributes.backgroundColor = attributes.backgroundColor || "#ffffff";
-       
-       //we can't use the initial attributes right away
-       //so save them for once the SWF finishes loading
-       this._attributes = attributes;
-       
-       this._swfURL = swfURL;
-       this._containerID = containerID;
-       
-       //embed the SWF file in the page
-       this._embedSWF(this._swfURL, this._containerID, attributes.id, attributes.version,
-               attributes.backgroundColor, attributes.expressInstall, attributes.wmode, buttonSkin);
-       
-       /**
-        * Fires when the SWF is initialized and communication is possible.
-        * @event contentReady
-        */
-       //Fix for iframe cross-domain issue with FF2x 
-       try
-       {
-               this.createEvent("contentReady");
-       }
-       catch(e){}
-};
-
-YAHOO.widget.FlashAdapter.owners = YAHOO.widget.FlashAdapter.owners || {};
-
-YAHOO.extend(YAHOO.widget.FlashAdapter, YAHOO.util.AttributeProvider,
-{
-       /**
-        * The URL of the SWF file.
-        * @property _swfURL
-        * @type String
-        * @private
-        */
-       _swfURL: null,
-
-       /**
-        * The ID of the containing DIV.
-        * @property _containerID
-        * @type String
-        * @private
-        */
-       _containerID: null,
-
-       /**
-        * A reference to the embedded SWF file.
-        * @property _swf
-        * @private
-        */
-       _swf: null,
-
-       /**
-        * The id of this instance.
-        * @property _id
-        * @type String
-        * @private
-        */
-       _id: null,
-
-       /**
-        * Indicates whether the SWF has been initialized and is ready
-        * to communicate with JavaScript
-        * @property _initialized
-        * @type Boolean
-        * @private
-        */
-       _initialized: false,
-       
-       /**
-        * The initializing attributes are stored here until the SWF is ready.
-        * @property _attributes
-        * @type Object
-        * @private
-        */
-       _attributes: null, //the intializing attributes
-
-       /**
-        * Public accessor to the unique name of the FlashAdapter instance.
-        *
-        * @method toString
-        * @return {String} Unique name of the FlashAdapter instance.
-        */
-       toString: function()
-       {
-               return "FlashAdapter " + this._id;
-       },
-
-       /**
-        * Nulls out the entire FlashAdapter instance and related objects and removes attached
-        * event listeners and clears out DOM elements inside the container. After calling
-        * this method, the instance reference should be expliclitly nulled by implementer,
-        * as in myChart = null. Use with caution!
-        *
-        * @method destroy
-        */
-       destroy: function()
-       {
-               //kill the Flash Player instance
-               if(this._swf)
-               {
-                       var container = YAHOO.util.Dom.get(this._containerID);
-                       container.removeChild(this._swf);
-               }
-               
-               var instanceName = this._id;
-               
-               //null out properties
-               for(var prop in this)
-               {
-                       if(YAHOO.lang.hasOwnProperty(this, prop))
-                       {
-                               this[prop] = null;
-                       }
-               }
-               
-       },
-
-       /**
-        * Embeds the SWF in the page and associates it with this instance.
-        *
-        * @method _embedSWF
-        * @private
-        */
-       _embedSWF: function(swfURL, containerID, swfID, version, backgroundColor, expressInstall, wmode, buttonSkin)
-       {
-               //standard SWFObject embed
-               var swfObj = new YAHOO.deconcept.SWFObject(swfURL, swfID, "100%", "100%", version, backgroundColor);
-
-               if(expressInstall)
-               {
-                       swfObj.useExpressInstall(expressInstall);
-               }
-
-               //make sure we can communicate with ExternalInterface
-               swfObj.addParam("allowScriptAccess", "always");
-               
-               if(wmode)
-               {
-                       swfObj.addParam("wmode", wmode);
-               }
-               
-               swfObj.addParam("menu", "false");
-               
-               //again, a useful ExternalInterface trick
-               swfObj.addVariable("allowedDomain", document.location.hostname);
-
-               //tell the SWF which HTML element it is in
-               swfObj.addVariable("elementID", swfID);
-
-               // set the name of the function to call when the swf has an event
-               swfObj.addVariable("eventHandler", "YAHOO.widget.FlashAdapter.eventHandler");
-               if (buttonSkin) {
-               swfObj.addVariable("buttonSkin", buttonSkin);
-               }
-               var container = YAHOO.util.Dom.get(containerID);
-               var result = swfObj.write(container);
-               if(result)
-               {
-                       this._swf = YAHOO.util.Dom.get(swfID);
-                       YAHOO.widget.FlashAdapter.owners[swfID] = this;
-               }
-               else
-               {
-               }
-       },
-
-       /**
-        * Handles or re-dispatches events received from the SWF.
-        *
-        * @method _eventHandler
-        * @private
-        */
-       _eventHandler: function(event)
-       {
-               var type = event.type;
-               switch(type)
-               {
-                       case "swfReady":
-                               this._loadHandler();
-                               return;
-                       case "log":
-                               return;
-               }
-               
-               
-               //be sure to return after your case or the event will automatically fire!
-               this.fireEvent(type, event);
-       },
-
-       /**
-        * Called when the SWF has been initialized.
-        *
-        * @method _loadHandler
-        * @private
-        */
-       _loadHandler: function()
-       {
-               this._initialized = false;
-               this._initAttributes(this._attributes);
-               this.setAttributes(this._attributes, true);
-               
-               this._initialized = true;
-               this.fireEvent("contentReady");
-       },
-       
-       set: function(name, value)
-       {
-               //save all the attributes in case the swf reloads
-               //so that we can pass them in again
-               this._attributes[name] = value;
-               YAHOO.widget.FlashAdapter.superclass.set.call(this, name, value);
-       },
-       
-       /**
-        * Initializes the attributes.
-        *
-        * @method _initAttributes
-        * @private
-        */
-       _initAttributes: function(attributes)
-       {
-               //should be overridden if other attributes need to be set up
-
-               /**
-                * @attribute wmode
-                * @description Sets the window mode of the Flash Player control. May be
-                *              "window", "opaque", or "transparent". Only available in the constructor
-                *              because it may not be set after Flash Player has been embedded in the page.
-                * @type String
-                */
-                
-               /**
-                * @attribute expressInstall
-                * @description URL pointing to a SWF file that handles Flash Player's express
-                *              install feature. Only available in the constructor because it may not be
-                *              set after Flash Player has been embedded in the page.
-                * @type String
-                */
-
-               /**
-                * @attribute version
-                * @description Minimum required version for the SWF file. Only available in the constructor because it may not be
-                *              set after Flash Player has been embedded in the page.
-                * @type String
-                */
-
-               /**
-                * @attribute backgroundColor
-                * @description The background color of the SWF. Only available in the constructor because it may not be
-                *              set after Flash Player has been embedded in the page.
-                * @type String
-                */
-                
-               /**
-                * @attribute altText
-                * @description The alternative text to provide for screen readers and other assistive technology.
-                * @type String
-                */
-               this.getAttributeConfig("altText",
-               {
-                       method: this._getAltText
-               });
-               this.setAttributeConfig("altText",
-               {
-                       method: this._setAltText
-               });
-               
-               /**
-                * @attribute swfURL
-                * @description Absolute or relative URL to the SWF displayed by the FlashAdapter. Only available in the constructor because it may not be
-                *              set after Flash Player has been embedded in the page.
-                * @type String
-                */
-               this.getAttributeConfig("swfURL",
-               {
-                       method: this._getSWFURL
-               });
-       },
-       
-       /**
-        * Getter for swfURL attribute.
-        *
-        * @method _getSWFURL
-        * @private
-        */
-       _getSWFURL: function()
-       {
-               return this._swfURL;
-       },
-       
-       /**
-        * Getter for altText attribute.
-        *
-        * @method _getAltText
-        * @private
-        */
-       _getAltText: function()
-       {
-               return this._swf.getAltText();
-       },
-
-       /**
-        * Setter for altText attribute.
-        *
-        * @method _setAltText
-        * @private
-        */
-       _setAltText: function(value)
-       {
-               return this._swf.setAltText(value);
-       }
-});
-
-
-/**
- * Receives event messages from SWF and passes them to the correct instance
- * of FlashAdapter.
- *
- * @method YAHOO.widget.FlashAdapter.eventHandler
- * @static
- * @private
- */
-YAHOO.widget.FlashAdapter.eventHandler = function(elementID, event)
-{
-
-       if(!YAHOO.widget.FlashAdapter.owners[elementID])
-       {
-               //fix for ie: if owner doesn't exist yet, try again in a moment
-               setTimeout(function() { YAHOO.widget.FlashAdapter.eventHandler( elementID, event ); }, 0);
-       }
-       else
-       {
-               YAHOO.widget.FlashAdapter.owners[elementID]._eventHandler(event);
-       }
-};
-
-/**
- * The number of proxy functions that have been created.
- * @static
- * @private
- */
-YAHOO.widget.FlashAdapter.proxyFunctionCount = 0;
-
-/**
- * Creates a globally accessible function that wraps a function reference.
- * Returns the proxy function's name as a string for use by the SWF through
- * ExternalInterface.
- *
- * @method YAHOO.widget.FlashAdapter.createProxyFunction
- * @static
- * @private
- */
-YAHOO.widget.FlashAdapter.createProxyFunction = function(func)
-{
-       var index = YAHOO.widget.FlashAdapter.proxyFunctionCount;
-       YAHOO.widget.FlashAdapter["proxyFunction" + index] = function()
-       {
-               return func.apply(null, arguments);
-       };
-       YAHOO.widget.FlashAdapter.proxyFunctionCount++;
-       return "YAHOO.widget.FlashAdapter.proxyFunction" + index.toString();
-};
-
-/**
- * Removes a function created with createProxyFunction()
- * 
- * @method YAHOO.widget.FlashAdapter.removeProxyFunction
- * @static
- * @private
- */
-YAHOO.widget.FlashAdapter.removeProxyFunction = function(funcName)
-{
-       //quick error check
-       if(!funcName || funcName.indexOf("YAHOO.widget.FlashAdapter.proxyFunction") < 0)
-       {
-               return;
-       }
-       
-       funcName = funcName.substr(26);
-       YAHOO.widget.FlashAdapter[funcName] = null;
-};
-/**
- * The YUI Uploader Control
- * @module uploader
- * @description <p>YUI Uploader provides file upload functionality that goes beyond the basic browser-based methods. 
- * Specifically, the YUI Uploader allows for:
- * <ol>
- * <li> Multiple file selection in a single "Open File" dialog.</li>
- * <li> File extension filters to facilitate the user's selection.</li>
- * <li> Progress tracking for file uploads.</li>
- * <li> A range of file metadata: filename, size, date created, date modified, and author.</li>
- * <li> A set of events dispatched on various aspects of the file upload process: file selection, upload progress, upload completion, etc.</li>
- * <li> Inclusion of additional data in the file upload POST request.</li>
- * <li> Faster file upload on broadband connections due to the modified SEND buffer size.</li>
- * <li> Same-page server response upon completion of the file upload.</li>
- * </ol>
- * </p>
- * @title Uploader
- * @namespace YAHOO.widget
- * @requires yahoo, dom, element, event
- */
-/**
- * Uploader class for the YUI Uploader component.
- *
- * @namespace YAHOO.widget
- * @class Uploader
- * @uses YAHOO.widget.FlashAdapter
- * @constructor
- * @param containerId {HTMLElement} Container element for the Flash Player instance.
- * @param buttonSkin {String} [optional]. If defined, the uploader is 
- * rendered as a button. This parameter must provide the URL of a button
- * skin sprite image. Acceptable types are: jpg, gif, png and swf. The 
- * sprite is divided evenly into four sections along its height (e.g., if
- * the sprite is 200 px tall, it's divided into four sections 50px each).
- * Each section is used as a skin for a specific state of the button: top
- * section is "up", second section is "over", third section is "down", and
- * fourth section is "disabled". 
- * If the parameter is not supplied, the uploader is rendered transparent,
- * and it's the developer's responsibility to create a visible UI below it.
- * @param forceTransparent {Boolean} This parameter, if true, forces the Flash
- * UI to be rendered with wmode set to "transparent". This behavior is useful 
- * in conjunction with non-rectangular button skins with PNG transparency. 
- * The parameter is false by default, and ignored if no buttonSkin is defined.
-  */
-YAHOO.widget.Uploader = function(containerId, buttonSkin, forceTransparent)
-{
-       var newWMode = "window";
-
-       if (!(buttonSkin) || (buttonSkin && forceTransparent)) {
-               newWMode = "transparent";
-       }
-
-       
-       YAHOO.widget.Uploader.superclass.constructor.call(this, YAHOO.widget.Uploader.SWFURL, containerId, {wmode:newWMode}, buttonSkin);
-
-       /**
-        * Fires when the mouse is pressed over the Uploader.
-        * Only fires when the Uploader UI is enabled and
-        * the render type is 'transparent'.
-        *
-        * @event mouseDown
-        * @param event.type {String} The event type
-        */
-       this.createEvent("mouseDown");
-       
-       /**
-        * Fires when the mouse is released over the Uploader.
-        * Only fires when the Uploader UI is enabled and
-        * the render type is 'transparent'.
-        *
-        * @event mouseUp
-        * @param event.type {String} The event type
-        */
-       this.createEvent("mouseUp");
-
-       /**
-        * Fires when the mouse rolls over the Uploader.
-        *
-        * @event rollOver
-        * @param event.type {String} The event type
-        */
-       this.createEvent("rollOver");
-       
-       /**
-        * Fires when the mouse rolls out of the Uploader.
-        *
-        * @event rollOut
-        * @param event.type {String} The event type
-        */
-       this.createEvent("rollOut");
-       
-       /**
-        * Fires when the uploader is clicked.
-        *
-        * @event click
-        * @param event.type {String} The event type
-        */
-       this.createEvent("click");
-       
-       /**
-        * Fires when the user has finished selecting files in the "Open File" dialog.
-        *
-        * @event fileSelect
-        * @param event.type {String} The event type
-        * @param event.fileList {Object} A dictionary of objects with file information
-        * @param event.fileList[].size {Number} File size in bytes for a specific file in fileList
-        * @param event.fileList[].cDate {Date} Creation date for a specific file in fileList
-        * @param event.fileList[].mDate {Date} Modification date for a specific file in fileList
-        * @param event.fileList[].name {String} File name for a specific file in fileList
-        * @param event.fileList[].id {String} Unique file id of a specific file in fileList
-        */
-       this.createEvent("fileSelect");
-
-       /**
-        * Fires when an upload of a specific file has started.
-        *
-        * @event uploadStart
-        * @param event.type {String} The event type
-        * @param event.id {String} The id of the file that's started to upload
-        */
-       this.createEvent("uploadStart");
-
-       /**
-        * Fires when new information about the upload progress for a specific file is available.
-        *
-        * @event uploadProgress
-        * @param event.type {String} The event type
-        * @param event.id {String} The id of the file with which the upload progress data is associated
-        * @param bytesLoaded {Number} The number of bytes of the file uploaded so far
-        * @param bytesTotal {Number} The total size of the file
-        */
-       this.createEvent("uploadProgress");
-       
-       /**
-        * Fires when an upload for a specific file is cancelled.
-        *
-        * @event uploadCancel
-        * @param event.type {String} The event type
-        * @param event.id {String} The id of the file with which the upload has been cancelled.
-        */     
-       this.createEvent("uploadCancel");
-
-       /**
-        * Fires when an upload for a specific file is complete.
-        *
-        * @event uploadComplete
-        * @param event.type {String} The event type
-        * @param event.id {String} The id of the file for which the upload has been completed.
-        */     
-       this.createEvent("uploadComplete");
-
-       /**
-        * Fires when the server sends data in response to a completed upload.
-        *
-        * @event uploadCompleteData
-        * @param event.type {String} The event type
-        * @param event.id {String} The id of the file for which the upload has been completed.
-        * @param event.data {String} The raw data returned by the server in response to the upload.
-        */     
-       this.createEvent("uploadCompleteData");
-       
-       /**
-        * Fires when an upload error occurs.
-        *
-        * @event uploadError
-        * @param event.type {String} The event type
-        * @param event.id {String} The id of the file that was being uploaded when the error has occurred.
-        * @param event.status {String} The status message associated with the error.
-        */     
-       this.createEvent("uploadError");
-}
-
-/**
- * Location of the Uploader SWF
- *
- * @property Chart.SWFURL
- * @private
- * @static
- * @final
- * @default "assets/uploader.swf"
- */
-YAHOO.widget.Uploader.SWFURL = "assets/uploader.swf";
-
-YAHOO.extend(YAHOO.widget.Uploader, YAHOO.widget.FlashAdapter,
-{      
-/**
- * Starts the upload of the file specified by fileID to the location specified by uploadScriptPath.
- *
- * @param fileID {String} The id of the file to start uploading.
- * @param uploadScriptPath {String} The URL of the upload location.
- * @param method {String} Either "GET" or "POST", specifying how the variables accompanying the file upload POST request should be submitted. "GET" by default.
- * @param vars {Object} The object containing variables to be sent in the same request as the file upload.
- * @param fieldName {String} The name of the variable in the POST request containing the file data. "Filedata" by default.
- * </code> 
- */
-       upload: function(fileID, uploadScriptPath, method, vars, fieldName)
-       {
-               this._swf.upload(fileID, uploadScriptPath, method, vars, fieldName);
-       },
-       
-/**
- * Starts the upload of the files specified by fileIDs, or adds them to a currently running queue. The upload queue is automatically managed.
- *
- * @param fileIDs {Array} The ids of the files to start uploading.
- * @param uploadScriptPath {String} The URL of the upload location.
- * @param method {String} Either "GET" or "POST", specifying how the variables accompanying the file upload POST request should be submitted. "GET" by default.
- * @param vars {Object} The object containing variables to be sent in the same request as the file upload.
- * @param fieldName {String} The name of the variable in the POST request containing the file data. "Filedata" by default.
- * </code> 
- */
-       uploadThese: function(fileIDs, uploadScriptPath, method, vars, fieldName)
-       {
-               this._swf.uploadThese(fileIDs, uploadScriptPath, method, vars, fieldName);
-       },
-       
-/**
- * Starts uploading all files in the queue. If this function is called, the upload queue is automatically managed.
- *
- * @param uploadScriptPath {String} The URL of the upload location.
- * @param method {String} Either "GET" or "POST", specifying how the variables accompanying the file upload POST request should be submitted. "GET" by default.
- * @param vars {Object} The object containing variables to be sent in the same request as the file upload.
- * @param fieldName {String} The name of the variable in the POST request containing the file data. "Filedata" by default.
- * </code> 
- */
-       uploadAll: function(uploadScriptPath, method, vars, fieldName)
-       {
-               this._swf.uploadAll(uploadScriptPath, method, vars, fieldName);
-       },
-
-/**
- * Cancels the upload of a specified file. If no file id is specified, all ongoing uploads are cancelled.
- *
- * @param fileID {String} The ID of the file whose upload should be cancelled.
- */
-       cancel: function(fileID)
-       {
-               this._swf.cancel(fileID);
-       },
-
-/**
- * Clears the list of files queued for upload.
- *
- */
-       clearFileList: function()
-       {
-               this._swf.clearFileList();
-       },
-       
-/**
- * Removes the specified file from the upload queue. 
- *
- * @param fileID {String} The id of the file to remove from the upload queue. 
- */
-       removeFile: function (fileID) 
-       {
-               this._swf.removeFile(fileID);
-       },
-
-/**
- * Turns the logging functionality on.
- * Uses Flash internal trace logging, as well as YUI Logger, if available.
- *
- * @param allowLogging {Boolean} If true, logs are output; otherwise, no logs are produced.
- */
-    setAllowLogging: function (allowLogging)
-    {
-       this._swf.setAllowLogging(allowLogging);
-    },
-
-/**
- * Sets the number of simultaneous uploads when using uploadAll()
- * The minimum value is 1, and maximum value is 5. The default value is 2.
- *
- * @param simUploadLimit {int} Number of simultaneous uploads, between 1 and 5.
- */
-    setSimUploadLimit : function (simUploadLimit)
-    {
-       this._swf.setSimUploadLimit(simUploadLimit);
-    },
-
-/**
- * Sets the flag allowing users to select multiple files for the upload.
- *
- * @param allowMultipleFiles {Boolean} If true, multiple files can be selected. False by default.
- */     
-    setAllowMultipleFiles : function (allowMultipleFiles) 
-    {
-       this._swf.setAllowMultipleFiles(allowMultipleFiles);
-    },
-
-/**
- * Sets the file filters for the "Browse" dialog.
- *
- *  @param newFilterArray An array of sets of key-value pairs of the form
- *  {extensions: extensionString, description: descriptionString, [optional]macType: macTypeString}
- *  The extensions string is a semicolon-delimited list of elements of the form "*.xxx", 
- *  e.g. "*.jpg;*.gif;*.png". 
- */       
-    setFileFilters : function (fileFilters) 
-    {
-       this._swf.setFileFilters(fileFilters);
-    },
-
-       /**
-        * Enables the mouse events on the Uploader.
-        * If the uploader is being rendered as a button,
-        * then the button's skin is set to "up"
-        * (first section of the button skin sprite).
-        *
-        */
-       enable : function ()
-       {
-               this._swf.enable();
-       },
-
-       /**
-        * Disables the mouse events on the Uploader.
-        * If the uploader is being rendered as a button,
-        * then the button's skin is set to "disabled"
-        * (fourth section of the button skin sprite).
-        *
-        */
-       disable : function () 
-       {
-               this._swf.disable();
-       }
-});
-YAHOO.register("uploader", YAHOO.widget.Uploader, {version: "2.8.0r4", build: "2449"});
diff --git a/koha-tmpl/intranet-tmpl/prog/en/lib/yui/yahoo/yahoo-debug.js b/koha-tmpl/intranet-tmpl/prog/en/lib/yui/yahoo/yahoo-debug.js
deleted file mode 100644 (file)
index 5787e2e..0000000
+++ /dev/null
@@ -1,1075 +0,0 @@
-/*
-Copyright (c) 2009, Yahoo! Inc. All rights reserved.
-Code licensed under the BSD License:
-http://developer.yahoo.net/yui/license.txt
-version: 2.8.0r4
-*/
-/**
- * The YAHOO object is the single global object used by YUI Library.  It
- * contains utility function for setting up namespaces, inheritance, and
- * logging.  YAHOO.util, YAHOO.widget, and YAHOO.example are namespaces
- * created automatically for and used by the library.
- * @module yahoo
- * @title  YAHOO Global
- */
-
-/**
- * YAHOO_config is not included as part of the library.  Instead it is an 
- * object that can be defined by the implementer immediately before 
- * including the YUI library.  The properties included in this object
- * will be used to configure global properties needed as soon as the 
- * library begins to load.
- * @class YAHOO_config
- * @static
- */
-
-/**
- * A reference to a function that will be executed every time a YAHOO module
- * is loaded.  As parameter, this function will receive the version
- * information for the module. See <a href="YAHOO.env.html#getVersion">
- * YAHOO.env.getVersion</a> for the description of the version data structure.
- * @property listener
- * @type Function
- * @static
- * @default undefined
- */
-
-/**
- * Set to true if the library will be dynamically loaded after window.onload.
- * Defaults to false 
- * @property injecting
- * @type boolean
- * @static
- * @default undefined
- */
-
-/**
- * Instructs the yuiloader component to dynamically load yui components and
- * their dependencies.  See the yuiloader documentation for more information
- * about dynamic loading
- * @property load
- * @static
- * @default undefined
- * @see yuiloader
- */
-
-/**
- * Forces the use of the supplied locale where applicable in the library
- * @property locale
- * @type string
- * @static
- * @default undefined
- */
-
-if (typeof YAHOO == "undefined" || !YAHOO) {
-    /**
-     * The YAHOO global namespace object.  If YAHOO is already defined, the
-     * existing YAHOO object will not be overwritten so that defined
-     * namespaces are preserved.
-     * @class YAHOO
-     * @static
-     */
-    var YAHOO = {};
-}
-
-/**
- * Returns the namespace specified and creates it if it doesn't exist
- * <pre>
- * YAHOO.namespace("property.package");
- * YAHOO.namespace("YAHOO.property.package");
- * </pre>
- * Either of the above would create YAHOO.property, then
- * YAHOO.property.package
- *
- * Be careful when naming packages. Reserved words may work in some browsers
- * and not others. For instance, the following will fail in Safari:
- * <pre>
- * YAHOO.namespace("really.long.nested.namespace");
- * </pre>
- * This fails because "long" is a future reserved word in ECMAScript
- *
- * For implementation code that uses YUI, do not create your components
- * in the namespaces defined by YUI (
- * <code>YAHOO.util</code>, 
- * <code>YAHOO.widget</code>, 
- * <code>YAHOO.lang</code>, 
- * <code>YAHOO.tool</code>, 
- * <code>YAHOO.example</code>, 
- * <code>YAHOO.env</code>) -- create your own namespace (e.g., 'companyname').
- *
- * @method namespace
- * @static
- * @param  {String*} arguments 1-n namespaces to create 
- * @return {Object}  A reference to the last namespace object created
- */
-YAHOO.namespace = function() {
-    var a=arguments, o=null, i, j, d;
-    for (i=0; i<a.length; i=i+1) {
-        d=(""+a[i]).split(".");
-        o=YAHOO;
-
-        // YAHOO is implied, so it is ignored if it is included
-        for (j=(d[0] == "YAHOO") ? 1 : 0; j<d.length; j=j+1) {
-            o[d[j]]=o[d[j]] || {};
-            o=o[d[j]];
-        }
-    }
-
-    return o;
-};
-
-/**
- * Uses YAHOO.widget.Logger to output a log message, if the widget is
- * available.
- *
- * @method log
- * @static
- * @param  {String}  msg  The message to log.
- * @param  {String}  cat  The log category for the message.  Default
- *                        categories are "info", "warn", "error", time".
- *                        Custom categories can be used as well. (opt)
- * @param  {String}  src  The source of the message (opt)
- * @return {Boolean}      True if the log operation was successful.
- */
-YAHOO.log = function(msg, cat, src) {
-    var l=YAHOO.widget.Logger;
-    if(l && l.log) {
-        return l.log(msg, cat, src);
-    } else {
-        return false;
-    }
-};
-
-/**
- * Registers a module with the YAHOO object
- * @method register
- * @static
- * @param {String}   name    the name of the module (event, slider, etc)
- * @param {Function} mainClass a reference to class in the module.  This
- *                             class will be tagged with the version info
- *                             so that it will be possible to identify the
- *                             version that is in use when multiple versions
- *                             have loaded
- * @param {Object}   data      metadata object for the module.  Currently it
- *                             is expected to contain a "version" property
- *                             and a "build" property at minimum.
- */
-YAHOO.register = function(name, mainClass, data) {
-    var mods = YAHOO.env.modules, m, v, b, ls, i;
-
-    if (!mods[name]) {
-        mods[name] = { 
-            versions:[], 
-            builds:[] 
-        };
-    }
-
-    m  = mods[name];
-    v  = data.version;
-    b  = data.build;
-    ls = YAHOO.env.listeners;
-
-    m.name = name;
-    m.version = v;
-    m.build = b;
-    m.versions.push(v);
-    m.builds.push(b);
-    m.mainClass = mainClass;
-
-    // fire the module load listeners
-    for (i=0;i<ls.length;i=i+1) {
-        ls[i](m);
-    }
-    // label the main class
-    if (mainClass) {
-        mainClass.VERSION = v;
-        mainClass.BUILD = b;
-    } else {
-        YAHOO.log("mainClass is undefined for module " + name, "warn");
-    }
-};
-
-/**
- * YAHOO.env is used to keep track of what is known about the YUI library and
- * the browsing environment
- * @class YAHOO.env
- * @static
- */
-YAHOO.env = YAHOO.env || {
-
-    /**
-     * Keeps the version info for all YUI modules that have reported themselves
-     * @property modules
-     * @type Object[]
-     */
-    modules: [],
-    
-    /**
-     * List of functions that should be executed every time a YUI module
-     * reports itself.
-     * @property listeners
-     * @type Function[]
-     */
-    listeners: []
-};
-
-/**
- * Returns the version data for the specified module:
- *      <dl>
- *      <dt>name:</dt>      <dd>The name of the module</dd>
- *      <dt>version:</dt>   <dd>The version in use</dd>
- *      <dt>build:</dt>     <dd>The build number in use</dd>
- *      <dt>versions:</dt>  <dd>All versions that were registered</dd>
- *      <dt>builds:</dt>    <dd>All builds that were registered.</dd>
- *      <dt>mainClass:</dt> <dd>An object that was was stamped with the
- *                 current version and build. If 
- *                 mainClass.VERSION != version or mainClass.BUILD != build,
- *                 multiple versions of pieces of the library have been
- *                 loaded, potentially causing issues.</dd>
- *       </dl>
- *
- * @method getVersion
- * @static
- * @param {String}  name the name of the module (event, slider, etc)
- * @return {Object} The version info
- */
-YAHOO.env.getVersion = function(name) {
-    return YAHOO.env.modules[name] || null;
-};
-
-/**
- * Do not fork for a browser if it can be avoided.  Use feature detection when
- * you can.  Use the user agent as a last resort.  YAHOO.env.ua stores a version
- * number for the browser engine, 0 otherwise.  This value may or may not map
- * to the version number of the browser using the engine.  The value is 
- * presented as a float so that it can easily be used for boolean evaluation 
- * as well as for looking for a particular range of versions.  Because of this, 
- * some of the granularity of the version info may be lost (e.g., Gecko 1.8.0.9 
- * reports 1.8).
- * @class YAHOO.env.ua
- * @static
- */
-YAHOO.env.ua = function() {
-
-        var numberfy = function(s) {
-            var c = 0;
-            return parseFloat(s.replace(/\./g, function() {
-                return (c++ == 1) ? '' : '.';
-            }));
-        },
-
-        nav = navigator,
-
-        o = {
-
-        /**
-         * Internet Explorer version number or 0.  Example: 6
-         * @property ie
-         * @type float
-         */
-        ie: 0,
-
-        /**
-         * Opera version number or 0.  Example: 9.2
-         * @property opera
-         * @type float
-         */
-        opera: 0,
-
-        /**
-         * Gecko engine revision number.  Will evaluate to 1 if Gecko 
-         * is detected but the revision could not be found. Other browsers
-         * will be 0.  Example: 1.8
-         * <pre>
-         * Firefox 1.0.0.4: 1.7.8   <-- Reports 1.7
-         * Firefox 1.5.0.9: 1.8.0.9 <-- Reports 1.8
-         * Firefox 2.0.0.3: 1.8.1.3 <-- Reports 1.8
-         * Firefox 3 alpha: 1.9a4   <-- Reports 1.9
-         * </pre>
-         * @property gecko
-         * @type float
-         */
-        gecko: 0,
-
-        /**
-         * AppleWebKit version.  KHTML browsers that are not WebKit browsers 
-         * will evaluate to 1, other browsers 0.  Example: 418.9.1
-         * <pre>
-         * Safari 1.3.2 (312.6): 312.8.1 <-- Reports 312.8 -- currently the 
-         *                                   latest available for Mac OSX 10.3.
-         * Safari 2.0.2:         416     <-- hasOwnProperty introduced
-         * Safari 2.0.4:         418     <-- preventDefault fixed
-         * Safari 2.0.4 (419.3): 418.9.1 <-- One version of Safari may run
-         *                                   different versions of webkit
-         * Safari 2.0.4 (419.3): 419     <-- Tiger installations that have been
-         *                                   updated, but not updated
-         *                                   to the latest patch.
-         * Webkit 212 nightly:   522+    <-- Safari 3.0 precursor (with native SVG
-         *                                   and many major issues fixed).  
-         * 3.x yahoo.com, flickr:422     <-- Safari 3.x hacks the user agent
-         *                                   string when hitting yahoo.com and 
-         *                                   flickr.com.
-         * Safari 3.0.4 (523.12):523.12  <-- First Tiger release - automatic update
-         *                                   from 2.x via the 10.4.11 OS patch
-         * Webkit nightly 1/2008:525+    <-- Supports DOMContentLoaded event.
-         *                                   yahoo.com user agent hack removed.
-         *                                   
-         * </pre>
-         * http://developer.apple.com/internet/safari/uamatrix.html
-         * @property webkit
-         * @type float
-         */
-        webkit: 0,
-
-        /**
-         * The mobile property will be set to a string containing any relevant
-         * user agent information when a modern mobile browser is detected.
-         * Currently limited to Safari on the iPhone/iPod Touch, Nokia N-series
-         * devices with the WebKit-based browser, and Opera Mini.  
-         * @property mobile 
-         * @type string
-         */
-        mobile: null,
-
-        /**
-         * Adobe AIR version number or 0.  Only populated if webkit is detected.
-         * Example: 1.0
-         * @property air
-         * @type float
-         */
-        air: 0,
-
-        /**
-         * Google Caja version number or 0.
-         * @property caja
-         * @type float
-         */
-        caja: nav.cajaVersion,
-
-        /**
-         * Set to true if the page appears to be in SSL
-         * @property secure
-         * @type boolean
-         * @static
-         */
-        secure: false,
-
-        /**
-         * The operating system.  Currently only detecting windows or macintosh
-         * @property os
-         * @type string
-         * @static
-         */
-        os: null
-
-    },
-
-    ua = navigator && navigator.userAgent, 
-    
-    loc = window && window.location,
-
-    href = loc && loc.href,
-    
-    m;
-
-    o.secure = href && (href.toLowerCase().indexOf("https") === 0);
-
-    if (ua) {
-
-        if ((/windows|win32/i).test(ua)) {
-            o.os = 'windows';
-        } else if ((/macintosh/i).test(ua)) {
-            o.os = 'macintosh';
-        }
-    
-        // Modern KHTML browsers should qualify as Safari X-Grade
-        if ((/KHTML/).test(ua)) {
-            o.webkit=1;
-        }
-
-        // Modern WebKit browsers are at least X-Grade
-        m=ua.match(/AppleWebKit\/([^\s]*)/);
-        if (m&&m[1]) {
-            o.webkit=numberfy(m[1]);
-
-            // Mobile browser check
-            if (/ Mobile\//.test(ua)) {
-                o.mobile = "Apple"; // iPhone or iPod Touch
-            } else {
-                m=ua.match(/NokiaN[^\/]*/);
-                if (m) {
-                    o.mobile = m[0]; // Nokia N-series, ex: NokiaN95
-                }
-            }
-
-            m=ua.match(/AdobeAIR\/([^\s]*)/);
-            if (m) {
-                o.air = m[0]; // Adobe AIR 1.0 or better
-            }
-
-        }
-
-        if (!o.webkit) { // not webkit
-            // @todo check Opera/8.01 (J2ME/MIDP; Opera Mini/2.0.4509/1316; fi; U; ssr)
-            m=ua.match(/Opera[\s\/]([^\s]*)/);
-            if (m&&m[1]) {
-                o.opera=numberfy(m[1]);
-                m=ua.match(/Opera Mini[^;]*/);
-                if (m) {
-                    o.mobile = m[0]; // ex: Opera Mini/2.0.4509/1316
-                }
-            } else { // not opera or webkit
-                m=ua.match(/MSIE\s([^;]*)/);
-                if (m&&m[1]) {
-                    o.ie=numberfy(m[1]);
-                } else { // not opera, webkit, or ie
-                    m=ua.match(/Gecko\/([^\s]*)/);
-                    if (m) {
-                        o.gecko=1; // Gecko detected, look for revision
-                        m=ua.match(/rv:([^\s\)]*)/);
-                        if (m&&m[1]) {
-                            o.gecko=numberfy(m[1]);
-                        }
-                    }
-                }
-            }
-        }
-    }
-
-    return o;
-}();
-
-/*
- * Initializes the global by creating the default namespaces and applying
- * any new configuration information that is detected.  This is the setup
- * for env.
- * @method init
- * @static
- * @private
- */
-(function() {
-    YAHOO.namespace("util", "widget", "example");
-    /*global YAHOO_config*/
-    if ("undefined" !== typeof YAHOO_config) {
-        var l=YAHOO_config.listener, ls=YAHOO.env.listeners,unique=true, i;
-        if (l) {
-            // if YAHOO is loaded multiple times we need to check to see if
-            // this is a new config object.  If it is, add the new component
-            // load listener to the stack
-            for (i=0; i<ls.length; i++) {
-                if (ls[i] == l) {
-                    unique = false;
-                    break;
-                }
-            }
-
-            if (unique) {
-                ls.push(l);
-            }
-        }
-    }
-})();
-/**
- * Provides the language utilites and extensions used by the library
- * @class YAHOO.lang
- */
-YAHOO.lang = YAHOO.lang || {};
-
-(function() {
-
-
-var L = YAHOO.lang,
-
-    OP = Object.prototype,
-    ARRAY_TOSTRING = '[object Array]',
-    FUNCTION_TOSTRING = '[object Function]',
-    OBJECT_TOSTRING = '[object Object]',
-    NOTHING = [],
-
-    // ADD = ["toString", "valueOf", "hasOwnProperty"],
-    ADD = ["toString", "valueOf"],
-
-    OB = {
-
-    /**
-     * Determines wheather or not the provided object is an array.
-     * @method isArray
-     * @param {any} o The object being testing
-     * @return {boolean} the result
-     */
-    isArray: function(o) { 
-        return OP.toString.apply(o) === ARRAY_TOSTRING;
-    },
-
-    /**
-     * Determines whether or not the provided object is a boolean
-     * @method isBoolean
-     * @param {any} o The object being testing
-     * @return {boolean} the result
-     */
-    isBoolean: function(o) {
-        return typeof o === 'boolean';
-    },
-    
-    /**
-     * Determines whether or not the provided object is a function.
-     * Note: Internet Explorer thinks certain functions are objects:
-     *
-     * var obj = document.createElement("object");
-     * YAHOO.lang.isFunction(obj.getAttribute) // reports false in IE
-     *
-     * var input = document.createElement("input"); // append to body
-     * YAHOO.lang.isFunction(input.focus) // reports false in IE
-     *
-     * You will have to implement additional tests if these functions
-     * matter to you.
-     *
-     * @method isFunction
-     * @param {any} o The object being testing
-     * @return {boolean} the result
-     */
-    isFunction: function(o) {
-        return (typeof o === 'function') || OP.toString.apply(o) === FUNCTION_TOSTRING;
-    },
-        
-    /**
-     * Determines whether or not the provided object is null
-     * @method isNull
-     * @param {any} o The object being testing
-     * @return {boolean} the result
-     */
-    isNull: function(o) {
-        return o === null;
-    },
-        
-    /**
-     * Determines whether or not the provided object is a legal number
-     * @method isNumber
-     * @param {any} o The object being testing
-     * @return {boolean} the result
-     */
-    isNumber: function(o) {
-        return typeof o === 'number' && isFinite(o);
-    },
-      
-    /**
-     * Determines whether or not the provided object is of type object
-     * or function
-     * @method isObject
-     * @param {any} o The object being testing
-     * @return {boolean} the result
-     */  
-    isObject: function(o) {
-return (o && (typeof o === 'object' || L.isFunction(o))) || false;
-    },
-        
-    /**
-     * Determines whether or not the provided object is a string
-     * @method isString
-     * @param {any} o The object being testing
-     * @return {boolean} the result
-     */
-    isString: function(o) {
-        return typeof o === 'string';
-    },
-        
-    /**
-     * Determines whether or not the provided object is undefined
-     * @method isUndefined
-     * @param {any} o The object being testing
-     * @return {boolean} the result
-     */
-    isUndefined: function(o) {
-        return typeof o === 'undefined';
-    },
-    
-    /**
-     * IE will not enumerate native functions in a derived object even if the
-     * function was overridden.  This is a workaround for specific functions 
-     * we care about on the Object prototype. 
-     * @property _IEEnumFix
-     * @param {Function} r  the object to receive the augmentation
-     * @param {Function} s  the object that supplies the properties to augment
-     * @static
-     * @private
-     */
-    _IEEnumFix: (YAHOO.env.ua.ie) ? function(r, s) {
-            var i, fname, f;
-            for (i=0;i<ADD.length;i=i+1) {
-
-                fname = ADD[i];
-                f = s[fname];
-
-                if (L.isFunction(f) && f!=OP[fname]) {
-                    r[fname]=f;
-                }
-            }
-    } : function(){},
-       
-    /**
-     * Utility to set up the prototype, constructor and superclass properties to
-     * support an inheritance strategy that can chain constructors and methods.
-     * Static members will not be inherited.
-     *
-     * @method extend
-     * @static
-     * @param {Function} subc   the object to modify
-     * @param {Function} superc the object to inherit
-     * @param {Object} overrides  additional properties/methods to add to the
-     *                              subclass prototype.  These will override the
-     *                              matching items obtained from the superclass 
-     *                              if present.
-     */
-    extend: function(subc, superc, overrides) {
-        if (!superc||!subc) {
-            throw new Error("extend failed, please check that " +
-                            "all dependencies are included.");
-        }
-        var F = function() {}, i;
-        F.prototype=superc.prototype;
-        subc.prototype=new F();
-        subc.prototype.constructor=subc;
-        subc.superclass=superc.prototype;
-        if (superc.prototype.constructor == OP.constructor) {
-            superc.prototype.constructor=superc;
-        }
-    
-        if (overrides) {
-            for (i in overrides) {
-                if (L.hasOwnProperty(overrides, i)) {
-                    subc.prototype[i]=overrides[i];
-                }
-            }
-
-            L._IEEnumFix(subc.prototype, overrides);
-        }
-    },
-   
-    /**
-     * Applies all properties in the supplier to the receiver if the
-     * receiver does not have these properties yet.  Optionally, one or 
-     * more methods/properties can be specified (as additional 
-     * parameters).  This option will overwrite the property if receiver 
-     * has it already.  If true is passed as the third parameter, all 
-     * properties will be applied and _will_ overwrite properties in 
-     * the receiver.
-     *
-     * @method augmentObject
-     * @static
-     * @since 2.3.0
-     * @param {Function} r  the object to receive the augmentation
-     * @param {Function} s  the object that supplies the properties to augment
-     * @param {String*|boolean}  arguments zero or more properties methods 
-     *        to augment the receiver with.  If none specified, everything
-     *        in the supplier will be used unless it would
-     *        overwrite an existing property in the receiver. If true
-     *        is specified as the third parameter, all properties will
-     *        be applied and will overwrite an existing property in
-     *        the receiver
-     */
-    augmentObject: function(r, s) {
-        if (!s||!r) {
-            throw new Error("Absorb failed, verify dependencies.");
-        }
-        var a=arguments, i, p, overrideList=a[2];
-        if (overrideList && overrideList!==true) { // only absorb the specified properties
-            for (i=2; i<a.length; i=i+1) {
-                r[a[i]] = s[a[i]];
-            }
-        } else { // take everything, overwriting only if the third parameter is true
-            for (p in s) { 
-                if (overrideList || !(p in r)) {
-                    r[p] = s[p];
-                }
-            }
-            
-            L._IEEnumFix(r, s);
-        }
-    },
-    /**
-     * Same as YAHOO.lang.augmentObject, except it only applies prototype properties
-     * @see YAHOO.lang.augmentObject
-     * @method augmentProto
-     * @static
-     * @param {Function} r  the object to receive the augmentation
-     * @param {Function} s  the object that supplies the properties to augment
-     * @param {String*|boolean}  arguments zero or more properties methods 
-     *        to augment the receiver with.  If none specified, everything 
-     *        in the supplier will be used unless it would overwrite an existing 
-     *        property in the receiver.  if true is specified as the third 
-     *        parameter, all properties will be applied and will overwrite an 
-     *        existing property in the receiver
-     */
-    augmentProto: function(r, s) {
-        if (!s||!r) {
-            throw new Error("Augment failed, verify dependencies.");
-        }
-        //var a=[].concat(arguments);
-        var a=[r.prototype,s.prototype], i;
-        for (i=2;i<arguments.length;i=i+1) {
-            a.push(arguments[i]);
-        }
-        L.augmentObject.apply(this, a);
-    },
-
-      
-    /**
-     * Returns a simple string representation of the object or array.
-     * Other types of objects will be returned unprocessed.  Arrays
-     * are expected to be indexed.  Use object notation for
-     * associative arrays.
-     * @method dump
-     * @since 2.3.0
-     * @param o {Object} The object to dump
-     * @param d {int} How deep to recurse child objects, default 3
-     * @return {String} the dump result
-     */
-    dump: function(o, d) {
-        var i,len,s=[],OBJ="{...}",FUN="f(){...}",
-            COMMA=', ', ARROW=' => ';
-
-        // Cast non-objects to string
-        // Skip dates because the std toString is what we want
-        // Skip HTMLElement-like objects because trying to dump 
-        // an element will cause an unhandled exception in FF 2.x
-        if (!L.isObject(o)) {
-            return o + "";
-        } else if (o instanceof Date || ("nodeType" in o && "tagName" in o)) {
-            return o;
-        } else if  (L.isFunction(o)) {
-            return FUN;
-        }
-
-        // dig into child objects the depth specifed. Default 3
-        d = (L.isNumber(d)) ? d : 3;
-
-        // arrays [1, 2, 3]
-        if (L.isArray(o)) {
-            s.push("[");
-            for (i=0,len=o.length;i<len;i=i+1) {
-                if (L.isObject(o[i])) {
-                    s.push((d > 0) ? L.dump(o[i], d-1) : OBJ);
-                } else {
-                    s.push(o[i]);
-                }
-                s.push(COMMA);
-            }
-            if (s.length > 1) {
-                s.pop();
-            }
-            s.push("]");
-        // objects {k1 => v1, k2 => v2}
-        } else {
-            s.push("{");
-            for (i in o) {
-                if (L.hasOwnProperty(o, i)) {
-                    s.push(i + ARROW);
-                    if (L.isObject(o[i])) {
-                        s.push((d > 0) ? L.dump(o[i], d-1) : OBJ);
-                    } else {
-                        s.push(o[i]);
-                    }
-                    s.push(COMMA);
-                }
-            }
-            if (s.length > 1) {
-                s.pop();
-            }
-            s.push("}");
-        }
-
-        return s.join("");
-    },
-
-    /**
-     * Does variable substitution on a string. It scans through the string 
-     * looking for expressions enclosed in { } braces. If an expression 
-     * is found, it is used a key on the object.  If there is a space in
-     * the key, the first word is used for the key and the rest is provided
-     * to an optional function to be used to programatically determine the
-     * value (the extra information might be used for this decision). If 
-     * the value for the key in the object, or what is returned from the
-     * function has a string value, number value, or object value, it is 
-     * substituted for the bracket expression and it repeats.  If this
-     * value is an object, it uses the Object's toString() if this has
-     * been overridden, otherwise it does a shallow dump of the key/value
-     * pairs.
-     * @method substitute
-     * @since 2.3.0
-     * @param s {String} The string that will be modified.
-     * @param o {Object} An object containing the replacement values
-     * @param f {Function} An optional function that can be used to
-     *                     process each match.  It receives the key,
-     *                     value, and any extra metadata included with
-     *                     the key inside of the braces.
-     * @return {String} the substituted string
-     */
-    substitute: function (s, o, f) {
-        var i, j, k, key, v, meta, saved=[], token, 
-            DUMP='dump', SPACE=' ', LBRACE='{', RBRACE='}',
-            dump, objstr;
-
-
-        for (;;) {
-            i = s.lastIndexOf(LBRACE);
-            if (i < 0) {
-                break;
-            }
-            j = s.indexOf(RBRACE, i);
-            if (i + 1 >= j) {
-                break;
-            }
-
-            //Extract key and meta info 
-            token = s.substring(i + 1, j);
-            key = token;
-            meta = null;
-            k = key.indexOf(SPACE);
-            if (k > -1) {
-                meta = key.substring(k + 1);
-                key = key.substring(0, k);
-            }
-
-            // lookup the value
-            v = o[key];
-
-            // if a substitution function was provided, execute it
-            if (f) {
-                v = f(key, v, meta);
-            }
-
-            if (L.isObject(v)) {
-                if (L.isArray(v)) {
-                    v = L.dump(v, parseInt(meta, 10));
-                } else {
-                    meta = meta || "";
-
-                    // look for the keyword 'dump', if found force obj dump
-                    dump = meta.indexOf(DUMP);
-                    if (dump > -1) {
-                        meta = meta.substring(4);
-                    }
-
-                    objstr = v.toString();
-
-                    // use the toString if it is not the Object toString 
-                    // and the 'dump' meta info was not found
-                    if (objstr === OBJECT_TOSTRING || dump > -1) {
-                        v = L.dump(v, parseInt(meta, 10));
-                    } else {
-                        v = objstr;
-                    }
-                }
-            } else if (!L.isString(v) && !L.isNumber(v)) {
-                // This {block} has no replace string. Save it for later.
-                v = "~-" + saved.length + "-~";
-                saved[saved.length] = token;
-
-                // break;
-            }
-
-            s = s.substring(0, i) + v + s.substring(j + 1);
-
-
-        }
-
-        // restore saved {block}s
-        for (i=saved.length-1; i>=0; i=i-1) {
-            s = s.replace(new RegExp("~-" + i + "-~"), "{"  + saved[i] + "}", "g");
-        }
-
-        return s;
-    },
-
-
-    /**
-     * Returns a string without any leading or trailing whitespace.  If 
-     * the input is not a string, the input will be returned untouched.
-     * @method trim
-     * @since 2.3.0
-     * @param s {string} the string to trim
-     * @return {string} the trimmed string
-     */
-    trim: function(s){
-        try {
-            return s.replace(/^\s+|\s+$/g, "");
-        } catch(e) {
-            return s;
-        }
-    },
-
-    /**
-     * Returns a new object containing all of the properties of
-     * all the supplied objects.  The properties from later objects
-     * will overwrite those in earlier objects.
-     * @method merge
-     * @since 2.3.0
-     * @param arguments {Object*} the objects to merge
-     * @return the new merged object
-     */
-    merge: function() {
-        var o={}, a=arguments, l=a.length, i;
-        for (i=0; i<l; i=i+1) {
-            L.augmentObject(o, a[i], true);
-        }
-        return o;
-    },
-
-    /**
-     * Executes the supplied function in the context of the supplied 
-     * object 'when' milliseconds later.  Executes the function a 
-     * single time unless periodic is set to true.
-     * @method later
-     * @since 2.4.0
-     * @param when {int} the number of milliseconds to wait until the fn 
-     * is executed
-     * @param o the context object
-     * @param fn {Function|String} the function to execute or the name of 
-     * the method in the 'o' object to execute
-     * @param data [Array] data that is provided to the function.  This accepts
-     * either a single item or an array.  If an array is provided, the
-     * function is executed with one parameter for each array item.  If
-     * you need to pass a single array parameter, it needs to be wrapped in
-     * an array [myarray]
-     * @param periodic {boolean} if true, executes continuously at supplied 
-     * interval until canceled
-     * @return a timer object. Call the cancel() method on this object to 
-     * stop the timer.
-     */
-    later: function(when, o, fn, data, periodic) {
-        when = when || 0; 
-        o = o || {};
-        var m=fn, d=data, f, r;
-
-        if (L.isString(fn)) {
-            m = o[fn];
-        }
-
-        if (!m) {
-            throw new TypeError("method undefined");
-        }
-
-        if (d && !L.isArray(d)) {
-            d = [data];
-        }
-
-        f = function() {
-            m.apply(o, d || NOTHING);
-        };
-
-        r = (periodic) ? setInterval(f, when) : setTimeout(f, when);
-
-        return {
-            interval: periodic,
-            cancel: function() {
-                if (this.interval) {
-                    clearInterval(r);
-                } else {
-                    clearTimeout(r);
-                }
-            }
-        };
-    },
-    
-    /**
-     * A convenience method for detecting a legitimate non-null value.
-     * Returns false for null/undefined/NaN, true for other values, 
-     * including 0/false/''
-     * @method isValue
-     * @since 2.3.0
-     * @param o {any} the item to test
-     * @return {boolean} true if it is not null/undefined/NaN || false
-     */
-    isValue: function(o) {
-        // return (o || o === false || o === 0 || o === ''); // Infinity fails
-return (L.isObject(o) || L.isString(o) || L.isNumber(o) || L.isBoolean(o));
-    }
-
-};
-
-/**
- * Determines whether or not the property was added
- * to the object instance.  Returns false if the property is not present
- * in the object, or was inherited from the prototype.
- * This abstraction is provided to enable hasOwnProperty for Safari 1.3.x.
- * There is a discrepancy between YAHOO.lang.hasOwnProperty and
- * Object.prototype.hasOwnProperty when the property is a primitive added to
- * both the instance AND prototype with the same value:
- * <pre>
- * var A = function() {};
- * A.prototype.foo = 'foo';
- * var a = new A();
- * a.foo = 'foo';
- * alert(a.hasOwnProperty('foo')); // true
- * alert(YAHOO.lang.hasOwnProperty(a, 'foo')); // false when using fallback
- * </pre>
- * @method hasOwnProperty
- * @param {any} o The object being testing
- * @param prop {string} the name of the property to test
- * @return {boolean} the result
- */
-L.hasOwnProperty = (OP.hasOwnProperty) ?
-    function(o, prop) {
-        return o && o.hasOwnProperty(prop);
-    } : function(o, prop) {
-        return !L.isUndefined(o[prop]) && 
-                o.constructor.prototype[prop] !== o[prop];
-    };
-
-// new lang wins
-OB.augmentObject(L, OB, true);
-
-/*
- * An alias for <a href="YAHOO.lang.html">YAHOO.lang</a>
- * @class YAHOO.util.Lang
- */
-YAHOO.util.Lang = L;
-/**
- * Same as YAHOO.lang.augmentObject, except it only applies prototype 
- * properties.  This is an alias for augmentProto.
- * @see YAHOO.lang.augmentObject
- * @method augment
- * @static
- * @param {Function} r  the object to receive the augmentation
- * @param {Function} s  the object that supplies the properties to augment
- * @param {String*|boolean}  arguments zero or more properties methods to 
- *        augment the receiver with.  If none specified, everything
- *        in the supplier will be used unless it would
- *        overwrite an existing property in the receiver.  if true
- *        is specified as the third parameter, all properties will
- *        be applied and will overwrite an existing property in
- *        the receiver
- */
-L.augment = L.augmentProto;
-
-/**
- * An alias for <a href="YAHOO.lang.html#augment">YAHOO.lang.augment</a>
- * @for YAHOO
- * @method augment
- * @static
- * @param {Function} r  the object to receive the augmentation
- * @param {Function} s  the object that supplies the properties to augment
- * @param {String*}  arguments zero or more properties methods to 
- *        augment the receiver with.  If none specified, everything
- *        in the supplier will be used unless it would
- *        overwrite an existing property in the receiver
- */
-YAHOO.augment = L.augmentProto;
-       
-/**
- * An alias for <a href="YAHOO.lang.html#extend">YAHOO.lang.extend</a>
- * @method extend
- * @static
- * @param {Function} subc   the object to modify
- * @param {Function} superc the object to inherit
- * @param {Object} overrides  additional properties/methods to add to the
- *        subclass prototype.  These will override the
- *        matching items obtained from the superclass if present.
- */
-YAHOO.extend = L.extend;
-
-})();
-YAHOO.register("yahoo", YAHOO, {version: "2.8.0r4", build: "2449"});
diff --git a/koha-tmpl/intranet-tmpl/prog/en/lib/yui/yahoo/yahoo-min.js b/koha-tmpl/intranet-tmpl/prog/en/lib/yui/yahoo/yahoo-min.js
deleted file mode 100644 (file)
index 319b268..0000000
+++ /dev/null
@@ -1,7 +0,0 @@
-/*
-Copyright (c) 2009, Yahoo! Inc. All rights reserved.
-Code licensed under the BSD License:
-http://developer.yahoo.net/yui/license.txt
-version: 2.8.0r4
-*/
-if(typeof YAHOO=="undefined"||!YAHOO){var YAHOO={};}YAHOO.namespace=function(){var A=arguments,E=null,C,B,D;for(C=0;C<A.length;C=C+1){D=(""+A[C]).split(".");E=YAHOO;for(B=(D[0]=="YAHOO")?1:0;B<D.length;B=B+1){E[D[B]]=E[D[B]]||{};E=E[D[B]];}}return E;};YAHOO.log=function(D,A,C){var B=YAHOO.widget.Logger;if(B&&B.log){return B.log(D,A,C);}else{return false;}};YAHOO.register=function(A,E,D){var I=YAHOO.env.modules,B,H,G,F,C;if(!I[A]){I[A]={versions:[],builds:[]};}B=I[A];H=D.version;G=D.build;F=YAHOO.env.listeners;B.name=A;B.version=H;B.build=G;B.versions.push(H);B.builds.push(G);B.mainClass=E;for(C=0;C<F.length;C=C+1){F[C](B);}if(E){E.VERSION=H;E.BUILD=G;}else{YAHOO.log("mainClass is undefined for module "+A,"warn");}};YAHOO.env=YAHOO.env||{modules:[],listeners:[]};YAHOO.env.getVersion=function(A){return YAHOO.env.modules[A]||null;};YAHOO.env.ua=function(){var D=function(H){var I=0;return parseFloat(H.replace(/\./g,function(){return(I++==1)?"":".";}));},G=navigator,F={ie:0,opera:0,gecko:0,webkit:0,mobile:null,air:0,caja:G.cajaVersion,secure:false,os:null},C=navigator&&navigator.userAgent,E=window&&window.location,B=E&&E.href,A;F.secure=B&&(B.toLowerCase().indexOf("https")===0);if(C){if((/windows|win32/i).test(C)){F.os="windows";}else{if((/macintosh/i).test(C)){F.os="macintosh";}}if((/KHTML/).test(C)){F.webkit=1;}A=C.match(/AppleWebKit\/([^\s]*)/);if(A&&A[1]){F.webkit=D(A[1]);if(/ Mobile\//.test(C)){F.mobile="Apple";}else{A=C.match(/NokiaN[^\/]*/);if(A){F.mobile=A[0];}}A=C.match(/AdobeAIR\/([^\s]*)/);if(A){F.air=A[0];}}if(!F.webkit){A=C.match(/Opera[\s\/]([^\s]*)/);if(A&&A[1]){F.opera=D(A[1]);A=C.match(/Opera Mini[^;]*/);if(A){F.mobile=A[0];}}else{A=C.match(/MSIE\s([^;]*)/);if(A&&A[1]){F.ie=D(A[1]);}else{A=C.match(/Gecko\/([^\s]*)/);if(A){F.gecko=1;A=C.match(/rv:([^\s\)]*)/);if(A&&A[1]){F.gecko=D(A[1]);}}}}}}return F;}();(function(){YAHOO.namespace("util","widget","example");if("undefined"!==typeof YAHOO_config){var B=YAHOO_config.listener,A=YAHOO.env.listeners,D=true,C;if(B){for(C=0;C<A.length;C++){if(A[C]==B){D=false;break;}}if(D){A.push(B);}}}})();YAHOO.lang=YAHOO.lang||{};(function(){var B=YAHOO.lang,A=Object.prototype,H="[object Array]",C="[object Function]",G="[object Object]",E=[],F=["toString","valueOf"],D={isArray:function(I){return A.toString.apply(I)===H;},isBoolean:function(I){return typeof I==="boolean";},isFunction:function(I){return(typeof I==="function")||A.toString.apply(I)===C;},isNull:function(I){return I===null;},isNumber:function(I){return typeof I==="number"&&isFinite(I);},isObject:function(I){return(I&&(typeof I==="object"||B.isFunction(I)))||false;},isString:function(I){return typeof I==="string";},isUndefined:function(I){return typeof I==="undefined";},_IEEnumFix:(YAHOO.env.ua.ie)?function(K,J){var I,M,L;for(I=0;I<F.length;I=I+1){M=F[I];L=J[M];if(B.isFunction(L)&&L!=A[M]){K[M]=L;}}}:function(){},extend:function(L,M,K){if(!M||!L){throw new Error("extend failed, please check that "+"all dependencies are included.");}var J=function(){},I;J.prototype=M.prototype;L.prototype=new J();L.prototype.constructor=L;L.superclass=M.prototype;if(M.prototype.constructor==A.constructor){M.prototype.constructor=M;}if(K){for(I in K){if(B.hasOwnProperty(K,I)){L.prototype[I]=K[I];}}B._IEEnumFix(L.prototype,K);}},augmentObject:function(M,L){if(!L||!M){throw new Error("Absorb failed, verify dependencies.");}var I=arguments,K,N,J=I[2];if(J&&J!==true){for(K=2;K<I.length;K=K+1){M[I[K]]=L[I[K]];}}else{for(N in L){if(J||!(N in M)){M[N]=L[N];}}B._IEEnumFix(M,L);}},augmentProto:function(L,K){if(!K||!L){throw new Error("Augment failed, verify dependencies.");}var I=[L.prototype,K.prototype],J;for(J=2;J<arguments.length;J=J+1){I.push(arguments[J]);}B.augmentObject.apply(this,I);},dump:function(I,N){var K,M,P=[],Q="{...}",J="f(){...}",O=", ",L=" => ";if(!B.isObject(I)){return I+"";}else{if(I instanceof Date||("nodeType" in I&&"tagName" in I)){return I;}else{if(B.isFunction(I)){return J;}}}N=(B.isNumber(N))?N:3;if(B.isArray(I)){P.push("[");for(K=0,M=I.length;K<M;K=K+1){if(B.isObject(I[K])){P.push((N>0)?B.dump(I[K],N-1):Q);}else{P.push(I[K]);}P.push(O);}if(P.length>1){P.pop();}P.push("]");}else{P.push("{");for(K in I){if(B.hasOwnProperty(I,K)){P.push(K+L);if(B.isObject(I[K])){P.push((N>0)?B.dump(I[K],N-1):Q);}else{P.push(I[K]);}P.push(O);}}if(P.length>1){P.pop();}P.push("}");}return P.join("");},substitute:function(Y,J,R){var N,M,L,U,V,X,T=[],K,O="dump",S=" ",I="{",W="}",Q,P;for(;;){N=Y.lastIndexOf(I);if(N<0){break;}M=Y.indexOf(W,N);if(N+1>=M){break;}K=Y.substring(N+1,M);U=K;X=null;L=U.indexOf(S);if(L>-1){X=U.substring(L+1);U=U.substring(0,L);}V=J[U];if(R){V=R(U,V,X);}if(B.isObject(V)){if(B.isArray(V)){V=B.dump(V,parseInt(X,10));}else{X=X||"";Q=X.indexOf(O);if(Q>-1){X=X.substring(4);}P=V.toString();if(P===G||Q>-1){V=B.dump(V,parseInt(X,10));}else{V=P;}}}else{if(!B.isString(V)&&!B.isNumber(V)){V="~-"+T.length+"-~";T[T.length]=K;}}Y=Y.substring(0,N)+V+Y.substring(M+1);}for(N=T.length-1;N>=0;N=N-1){Y=Y.replace(new RegExp("~-"+N+"-~"),"{"+T[N]+"}","g");}return Y;},trim:function(I){try{return I.replace(/^\s+|\s+$/g,"");}catch(J){return I;}},merge:function(){var L={},J=arguments,I=J.length,K;for(K=0;K<I;K=K+1){B.augmentObject(L,J[K],true);}return L;},later:function(P,J,Q,L,M){P=P||0;J=J||{};var K=Q,O=L,N,I;if(B.isString(Q)){K=J[Q];}if(!K){throw new TypeError("method undefined");}if(O&&!B.isArray(O)){O=[L];}N=function(){K.apply(J,O||E);};I=(M)?setInterval(N,P):setTimeout(N,P);return{interval:M,cancel:function(){if(this.interval){clearInterval(I);}else{clearTimeout(I);}}};},isValue:function(I){return(B.isObject(I)||B.isString(I)||B.isNumber(I)||B.isBoolean(I));}};B.hasOwnProperty=(A.hasOwnProperty)?function(I,J){return I&&I.hasOwnProperty(J);}:function(I,J){return !B.isUndefined(I[J])&&I.constructor.prototype[J]!==I[J];};D.augmentObject(B,D,true);YAHOO.util.Lang=B;B.augment=B.augmentProto;YAHOO.augment=B.augmentProto;YAHOO.extend=B.extend;})();YAHOO.register("yahoo",YAHOO,{version:"2.8.0r4",build:"2449"});
diff --git a/koha-tmpl/intranet-tmpl/prog/en/lib/yui/yahoo/yahoo.js b/koha-tmpl/intranet-tmpl/prog/en/lib/yui/yahoo/yahoo.js
deleted file mode 100644 (file)
index 5787e2e..0000000
+++ /dev/null
@@ -1,1075 +0,0 @@
-/*
-Copyright (c) 2009, Yahoo! Inc. All rights reserved.
-Code licensed under the BSD License:
-http://developer.yahoo.net/yui/license.txt
-version: 2.8.0r4
-*/
-/**
- * The YAHOO object is the single global object used by YUI Library.  It
- * contains utility function for setting up namespaces, inheritance, and
- * logging.  YAHOO.util, YAHOO.widget, and YAHOO.example are namespaces
- * created automatically for and used by the library.
- * @module yahoo
- * @title  YAHOO Global
- */
-
-/**
- * YAHOO_config is not included as part of the library.  Instead it is an 
- * object that can be defined by the implementer immediately before 
- * including the YUI library.  The properties included in this object
- * will be used to configure global properties needed as soon as the 
- * library begins to load.
- * @class YAHOO_config
- * @static
- */
-
-/**
- * A reference to a function that will be executed every time a YAHOO module
- * is loaded.  As parameter, this function will receive the version
- * information for the module. See <a href="YAHOO.env.html#getVersion">
- * YAHOO.env.getVersion</a> for the description of the version data structure.
- * @property listener
- * @type Function
- * @static
- * @default undefined
- */
-
-/**
- * Set to true if the library will be dynamically loaded after window.onload.
- * Defaults to false 
- * @property injecting
- * @type boolean
- * @static
- * @default undefined
- */
-
-/**
- * Instructs the yuiloader component to dynamically load yui components and
- * their dependencies.  See the yuiloader documentation for more information
- * about dynamic loading
- * @property load
- * @static
- * @default undefined
- * @see yuiloader
- */
-
-/**
- * Forces the use of the supplied locale where applicable in the library
- * @property locale
- * @type string
- * @static
- * @default undefined
- */
-
-if (typeof YAHOO == "undefined" || !YAHOO) {
-    /**
-     * The YAHOO global namespace object.  If YAHOO is already defined, the
-     * existing YAHOO object will not be overwritten so that defined
-     * namespaces are preserved.
-     * @class YAHOO
-     * @static
-     */
-    var YAHOO = {};
-}
-
-/**
- * Returns the namespace specified and creates it if it doesn't exist
- * <pre>
- * YAHOO.namespace("property.package");
- * YAHOO.namespace("YAHOO.property.package");
- * </pre>
- * Either of the above would create YAHOO.property, then
- * YAHOO.property.package
- *
- * Be careful when naming packages. Reserved words may work in some browsers
- * and not others. For instance, the following will fail in Safari:
- * <pre>
- * YAHOO.namespace("really.long.nested.namespace");
- * </pre>
- * This fails because "long" is a future reserved word in ECMAScript
- *
- * For implementation code that uses YUI, do not create your components
- * in the namespaces defined by YUI (
- * <code>YAHOO.util</code>, 
- * <code>YAHOO.widget</code>, 
- * <code>YAHOO.lang</code>, 
- * <code>YAHOO.tool</code>, 
- * <code>YAHOO.example</code>, 
- * <code>YAHOO.env</code>) -- create your own namespace (e.g., 'companyname').
- *
- * @method namespace
- * @static
- * @param  {String*} arguments 1-n namespaces to create 
- * @return {Object}  A reference to the last namespace object created
- */
-YAHOO.namespace = function() {
-    var a=arguments, o=null, i, j, d;
-    for (i=0; i<a.length; i=i+1) {
-        d=(""+a[i]).split(".");
-        o=YAHOO;
-
-        // YAHOO is implied, so it is ignored if it is included
-        for (j=(d[0] == "YAHOO") ? 1 : 0; j<d.length; j=j+1) {
-            o[d[j]]=o[d[j]] || {};
-            o=o[d[j]];
-        }
-    }
-
-    return o;
-};
-
-/**
- * Uses YAHOO.widget.Logger to output a log message, if the widget is
- * available.
- *
- * @method log
- * @static
- * @param  {String}  msg  The message to log.
- * @param  {String}  cat  The log category for the message.  Default
- *                        categories are "info", "warn", "error", time".
- *                        Custom categories can be used as well. (opt)
- * @param  {String}  src  The source of the message (opt)
- * @return {Boolean}      True if the log operation was successful.
- */
-YAHOO.log = function(msg, cat, src) {
-    var l=YAHOO.widget.Logger;
-    if(l && l.log) {
-        return l.log(msg, cat, src);
-    } else {
-        return false;
-    }
-};
-
-/**
- * Registers a module with the YAHOO object
- * @method register
- * @static
- * @param {String}   name    the name of the module (event, slider, etc)
- * @param {Function} mainClass a reference to class in the module.  This
- *                             class will be tagged with the version info
- *                             so that it will be possible to identify the
- *                             version that is in use when multiple versions
- *                             have loaded
- * @param {Object}   data      metadata object for the module.  Currently it
- *                             is expected to contain a "version" property
- *                             and a "build" property at minimum.
- */
-YAHOO.register = function(name, mainClass, data) {
-    var mods = YAHOO.env.modules, m, v, b, ls, i;
-
-    if (!mods[name]) {
-        mods[name] = { 
-            versions:[], 
-            builds:[] 
-        };
-    }
-
-    m  = mods[name];
-    v  = data.version;
-    b  = data.build;
-    ls = YAHOO.env.listeners;
-
-    m.name = name;
-    m.version = v;
-    m.build = b;
-    m.versions.push(v);
-    m.builds.push(b);
-    m.mainClass = mainClass;
-
-    // fire the module load listeners
-    for (i=0;i<ls.length;i=i+1) {
-        ls[i](m);
-    }
-    // label the main class
-    if (mainClass) {
-        mainClass.VERSION = v;
-        mainClass.BUILD = b;
-    } else {
-        YAHOO.log("mainClass is undefined for module " + name, "warn");
-    }
-};
-
-/**
- * YAHOO.env is used to keep track of what is known about the YUI library and
- * the browsing environment
- * @class YAHOO.env
- * @static
- */
-YAHOO.env = YAHOO.env || {
-
-    /**
-     * Keeps the version info for all YUI modules that have reported themselves
-     * @property modules
-     * @type Object[]
-     */
-    modules: [],
-    
-    /**
-     * List of functions that should be executed every time a YUI module
-     * reports itself.
-     * @property listeners
-     * @type Function[]
-     */
-    listeners: []
-};
-
-/**
- * Returns the version data for the specified module:
- *      <dl>
- *      <dt>name:</dt>      <dd>The name of the module</dd>
- *      <dt>version:</dt>   <dd>The version in use</dd>
- *      <dt>build:</dt>     <dd>The build number in use</dd>
- *      <dt>versions:</dt>  <dd>All versions that were registered</dd>
- *      <dt>builds:</dt>    <dd>All builds that were registered.</dd>
- *      <dt>mainClass:</dt> <dd>An object that was was stamped with the
- *                 current version and build. If 
- *                 mainClass.VERSION != version or mainClass.BUILD != build,
- *                 multiple versions of pieces of the library have been
- *                 loaded, potentially causing issues.</dd>
- *       </dl>
- *
- * @method getVersion
- * @static
- * @param {String}  name the name of the module (event, slider, etc)
- * @return {Object} The version info
- */
-YAHOO.env.getVersion = function(name) {
-    return YAHOO.env.modules[name] || null;
-};
-
-/**
- * Do not fork for a browser if it can be avoided.  Use feature detection when
- * you can.  Use the user agent as a last resort.  YAHOO.env.ua stores a version
- * number for the browser engine, 0 otherwise.  This value may or may not map
- * to the version number of the browser using the engine.  The value is 
- * presented as a float so that it can easily be used for boolean evaluation 
- * as well as for looking for a particular range of versions.  Because of this, 
- * some of the granularity of the version info may be lost (e.g., Gecko 1.8.0.9 
- * reports 1.8).
- * @class YAHOO.env.ua
- * @static
- */
-YAHOO.env.ua = function() {
-
-        var numberfy = function(s) {
-            var c = 0;
-            return parseFloat(s.replace(/\./g, function() {
-                return (c++ == 1) ? '' : '.';
-            }));
-        },
-
-        nav = navigator,
-
-        o = {
-
-        /**
-         * Internet Explorer version number or 0.  Example: 6
-         * @property ie
-         * @type float
-         */
-        ie: 0,
-
-        /**
-         * Opera version number or 0.  Example: 9.2
-         * @property opera
-         * @type float
-         */
-        opera: 0,
-
-        /**
-         * Gecko engine revision number.  Will evaluate to 1 if Gecko 
-         * is detected but the revision could not be found. Other browsers
-         * will be 0.  Example: 1.8
-         * <pre>
-         * Firefox 1.0.0.4: 1.7.8   <-- Reports 1.7
-         * Firefox 1.5.0.9: 1.8.0.9 <-- Reports 1.8
-         * Firefox 2.0.0.3: 1.8.1.3 <-- Reports 1.8
-         * Firefox 3 alpha: 1.9a4   <-- Reports 1.9
-         * </pre>
-         * @property gecko
-         * @type float
-         */
-        gecko: 0,
-
-        /**
-         * AppleWebKit version.  KHTML browsers that are not WebKit browsers 
-         * will evaluate to 1, other browsers 0.  Example: 418.9.1
-         * <pre>
-         * Safari 1.3.2 (312.6): 312.8.1 <-- Reports 312.8 -- currently the 
-         *                                   latest available for Mac OSX 10.3.
-         * Safari 2.0.2:         416     <-- hasOwnProperty introduced
-         * Safari 2.0.4:         418     <-- preventDefault fixed
-         * Safari 2.0.4 (419.3): 418.9.1 <-- One version of Safari may run
-         *                                   different versions of webkit
-         * Safari 2.0.4 (419.3): 419     <-- Tiger installations that have been
-         *                                   updated, but not updated
-         *                                   to the latest patch.
-         * Webkit 212 nightly:   522+    <-- Safari 3.0 precursor (with native SVG
-         *                                   and many major issues fixed).  
-         * 3.x yahoo.com, flickr:422     <-- Safari 3.x hacks the user agent
-         *                                   string when hitting yahoo.com and 
-         *                                   flickr.com.
-         * Safari 3.0.4 (523.12):523.12  <-- First Tiger release - automatic update
-         *                                   from 2.x via the 10.4.11 OS patch
-         * Webkit nightly 1/2008:525+    <-- Supports DOMContentLoaded event.
-         *                                   yahoo.com user agent hack removed.
-         *                                   
-         * </pre>
-         * http://developer.apple.com/internet/safari/uamatrix.html
-         * @property webkit
-         * @type float
-         */
-        webkit: 0,
-
-        /**
-         * The mobile property will be set to a string containing any relevant
-         * user agent information when a modern mobile browser is detected.
-         * Currently limited to Safari on the iPhone/iPod Touch, Nokia N-series
-         * devices with the WebKit-based browser, and Opera Mini.  
-         * @property mobile 
-         * @type string
-         */
-        mobile: null,
-
-        /**
-         * Adobe AIR version number or 0.  Only populated if webkit is detected.
-         * Example: 1.0
-         * @property air
-         * @type float
-         */
-        air: 0,
-
-        /**
-         * Google Caja version number or 0.
-         * @property caja
-         * @type float
-         */
-        caja: nav.cajaVersion,
-
-        /**
-         * Set to true if the page appears to be in SSL
-         * @property secure
-         * @type boolean
-         * @static
-         */
-        secure: false,
-
-        /**
-         * The operating system.  Currently only detecting windows or macintosh
-         * @property os
-         * @type string
-         * @static
-         */
-        os: null
-
-    },
-
-    ua = navigator && navigator.userAgent, 
-    
-    loc = window && window.location,
-
-    href = loc && loc.href,
-    
-    m;
-
-    o.secure = href && (href.toLowerCase().indexOf("https") === 0);
-
-    if (ua) {
-
-        if ((/windows|win32/i).test(ua)) {
-            o.os = 'windows';
-        } else if ((/macintosh/i).test(ua)) {
-            o.os = 'macintosh';
-        }
-    
-        // Modern KHTML browsers should qualify as Safari X-Grade
-        if ((/KHTML/).test(ua)) {
-            o.webkit=1;
-        }
-
-        // Modern WebKit browsers are at least X-Grade
-        m=ua.match(/AppleWebKit\/([^\s]*)/);
-        if (m&&m[1]) {
-            o.webkit=numberfy(m[1]);
-
-            // Mobile browser check
-            if (/ Mobile\//.test(ua)) {
-                o.mobile = "Apple"; // iPhone or iPod Touch
-            } else {
-                m=ua.match(/NokiaN[^\/]*/);
-                if (m) {
-                    o.mobile = m[0]; // Nokia N-series, ex: NokiaN95
-                }
-            }
-
-            m=ua.match(/AdobeAIR\/([^\s]*)/);
-            if (m) {
-                o.air = m[0]; // Adobe AIR 1.0 or better
-            }
-
-        }
-
-        if (!o.webkit) { // not webkit
-            // @todo check Opera/8.01 (J2ME/MIDP; Opera Mini/2.0.4509/1316; fi; U; ssr)
-            m=ua.match(/Opera[\s\/]([^\s]*)/);
-            if (m&&m[1]) {
-                o.opera=numberfy(m[1]);
-                m=ua.match(/Opera Mini[^;]*/);
-                if (m) {
-                    o.mobile = m[0]; // ex: Opera Mini/2.0.4509/1316
-                }
-            } else { // not opera or webkit
-                m=ua.match(/MSIE\s([^;]*)/);
-                if (m&&m[1]) {
-                    o.ie=numberfy(m[1]);
-                } else { // not opera, webkit, or ie
-                    m=ua.match(/Gecko\/([^\s]*)/);
-                    if (m) {
-                        o.gecko=1; // Gecko detected, look for revision
-                        m=ua.match(/rv:([^\s\)]*)/);
-                        if (m&&m[1]) {
-                            o.gecko=numberfy(m[1]);
-                        }
-                    }
-                }
-            }
-        }
-    }
-
-    return o;
-}();
-
-/*
- * Initializes the global by creating the default namespaces and applying
- * any new configuration information that is detected.  This is the setup
- * for env.
- * @method init
- * @static
- * @private
- */
-(function() {
-    YAHOO.namespace("util", "widget", "example");
-    /*global YAHOO_config*/
-    if ("undefined" !== typeof YAHOO_config) {
-        var l=YAHOO_config.listener, ls=YAHOO.env.listeners,unique=true, i;
-        if (l) {
-            // if YAHOO is loaded multiple times we need to check to see if
-            // this is a new config object.  If it is, add the new component
-            // load listener to the stack
-            for (i=0; i<ls.length; i++) {
-                if (ls[i] == l) {
-                    unique = false;
-                    break;
-                }
-            }
-
-            if (unique) {
-                ls.push(l);
-            }
-        }
-    }
-})();
-/**
- * Provides the language utilites and extensions used by the library
- * @class YAHOO.lang
- */
-YAHOO.lang = YAHOO.lang || {};
-
-(function() {
-
-
-var L = YAHOO.lang,
-
-    OP = Object.prototype,
-    ARRAY_TOSTRING = '[object Array]',
-    FUNCTION_TOSTRING = '[object Function]',
-    OBJECT_TOSTRING = '[object Object]',
-    NOTHING = [],
-
-    // ADD = ["toString", "valueOf", "hasOwnProperty"],
-    ADD = ["toString", "valueOf"],
-
-    OB = {
-
-    /**
-     * Determines wheather or not the provided object is an array.
-     * @method isArray
-     * @param {any} o The object being testing
-     * @return {boolean} the result
-     */
-    isArray: function(o) { 
-        return OP.toString.apply(o) === ARRAY_TOSTRING;
-    },
-
-    /**
-     * Determines whether or not the provided object is a boolean
-     * @method isBoolean
-     * @param {any} o The object being testing
-     * @return {boolean} the result
-     */
-    isBoolean: function(o) {
-        return typeof o === 'boolean';
-    },
-    
-    /**
-     * Determines whether or not the provided object is a function.
-     * Note: Internet Explorer thinks certain functions are objects:
-     *
-     * var obj = document.createElement("object");
-     * YAHOO.lang.isFunction(obj.getAttribute) // reports false in IE
-     *
-     * var input = document.createElement("input"); // append to body
-     * YAHOO.lang.isFunction(input.focus) // reports false in IE
-     *
-     * You will have to implement additional tests if these functions
-     * matter to you.
-     *
-     * @method isFunction
-     * @param {any} o The object being testing
-     * @return {boolean} the result
-     */
-    isFunction: function(o) {
-        return (typeof o === 'function') || OP.toString.apply(o) === FUNCTION_TOSTRING;
-    },
-        
-    /**
-     * Determines whether or not the provided object is null
-     * @method isNull
-     * @param {any} o The object being testing
-     * @return {boolean} the result
-     */
-    isNull: function(o) {
-        return o === null;
-    },
-        
-    /**
-     * Determines whether or not the provided object is a legal number
-     * @method isNumber
-     * @param {any} o The object being testing
-     * @return {boolean} the result
-     */
-    isNumber: function(o) {
-        return typeof o === 'number' && isFinite(o);
-    },
-      
-    /**
-     * Determines whether or not the provided object is of type object
-     * or function
-     * @method isObject
-     * @param {any} o The object being testing
-     * @return {boolean} the result
-     */  
-    isObject: function(o) {
-return (o && (typeof o === 'object' || L.isFunction(o))) || false;
-    },
-        
-    /**
-     * Determines whether or not the provided object is a string
-     * @method isString
-     * @param {any} o The object being testing
-     * @return {boolean} the result
-     */
-    isString: function(o) {
-        return typeof o === 'string';
-    },
-        
-    /**
-     * Determines whether or not the provided object is undefined
-     * @method isUndefined
-     * @param {any} o The object being testing
-     * @return {boolean} the result
-     */
-    isUndefined: function(o) {
-        return typeof o === 'undefined';
-    },
-    
-    /**
-     * IE will not enumerate native functions in a derived object even if the
-     * function was overridden.  This is a workaround for specific functions 
-     * we care about on the Object prototype. 
-     * @property _IEEnumFix
-     * @param {Function} r  the object to receive the augmentation
-     * @param {Function} s  the object that supplies the properties to augment
-     * @static
-     * @private
-     */
-    _IEEnumFix: (YAHOO.env.ua.ie) ? function(r, s) {
-            var i, fname, f;
-            for (i=0;i<ADD.length;i=i+1) {
-
-                fname = ADD[i];
-                f = s[fname];
-
-                if (L.isFunction(f) && f!=OP[fname]) {
-                    r[fname]=f;
-                }
-            }
-    } : function(){},
-       
-    /**
-     * Utility to set up the prototype, constructor and superclass properties to
-     * support an inheritance strategy that can chain constructors and methods.
-     * Static members will not be inherited.
-     *
-     * @method extend
-     * @static
-     * @param {Function} subc   the object to modify
-     * @param {Function} superc the object to inherit
-     * @param {Object} overrides  additional properties/methods to add to the
-     *                              subclass prototype.  These will override the
-     *                              matching items obtained from the superclass 
-     *                              if present.
-     */
-    extend: function(subc, superc, overrides) {
-        if (!superc||!subc) {
-            throw new Error("extend failed, please check that " +
-                            "all dependencies are included.");
-        }
-        var F = function() {}, i;
-        F.prototype=superc.prototype;
-        subc.prototype=new F();
-        subc.prototype.constructor=subc;
-        subc.superclass=superc.prototype;
-        if (superc.prototype.constructor == OP.constructor) {
-            superc.prototype.constructor=superc;
-        }
-    
-        if (overrides) {
-            for (i in overrides) {
-                if (L.hasOwnProperty(overrides, i)) {
-                    subc.prototype[i]=overrides[i];
-                }
-            }
-
-            L._IEEnumFix(subc.prototype, overrides);
-        }
-    },
-   
-    /**
-     * Applies all properties in the supplier to the receiver if the
-     * receiver does not have these properties yet.  Optionally, one or 
-     * more methods/properties can be specified (as additional 
-     * parameters).  This option will overwrite the property if receiver 
-     * has it already.  If true is passed as the third parameter, all 
-     * properties will be applied and _will_ overwrite properties in 
-     * the receiver.
-     *
-     * @method augmentObject
-     * @static
-     * @since 2.3.0
-     * @param {Function} r  the object to receive the augmentation
-     * @param {Function} s  the object that supplies the properties to augment
-     * @param {String*|boolean}  arguments zero or more properties methods 
-     *        to augment the receiver with.  If none specified, everything
-     *        in the supplier will be used unless it would
-     *        overwrite an existing property in the receiver. If true
-     *        is specified as the third parameter, all properties will
-     *        be applied and will overwrite an existing property in
-     *        the receiver
-     */
-    augmentObject: function(r, s) {
-        if (!s||!r) {
-            throw new Error("Absorb failed, verify dependencies.");
-        }
-        var a=arguments, i, p, overrideList=a[2];
-        if (overrideList && overrideList!==true) { // only absorb the specified properties
-            for (i=2; i<a.length; i=i+1) {
-                r[a[i]] = s[a[i]];
-            }
-        } else { // take everything, overwriting only if the third parameter is true
-            for (p in s) { 
-                if (overrideList || !(p in r)) {
-                    r[p] = s[p];
-                }
-            }
-            
-            L._IEEnumFix(r, s);
-        }
-    },
-    /**
-     * Same as YAHOO.lang.augmentObject, except it only applies prototype properties
-     * @see YAHOO.lang.augmentObject
-     * @method augmentProto
-     * @static
-     * @param {Function} r  the object to receive the augmentation
-     * @param {Function} s  the object that supplies the properties to augment
-     * @param {String*|boolean}  arguments zero or more properties methods 
-     *        to augment the receiver with.  If none specified, everything 
-     *        in the supplier will be used unless it would overwrite an existing 
-     *        property in the receiver.  if true is specified as the third 
-     *        parameter, all properties will be applied and will overwrite an 
-     *        existing property in the receiver
-     */
-    augmentProto: function(r, s) {
-        if (!s||!r) {
-            throw new Error("Augment failed, verify dependencies.");
-        }
-        //var a=[].concat(arguments);
-        var a=[r.prototype,s.prototype], i;
-        for (i=2;i<arguments.length;i=i+1) {
-            a.push(arguments[i]);
-        }
-        L.augmentObject.apply(this, a);
-    },
-
-      
-    /**
-     * Returns a simple string representation of the object or array.
-     * Other types of objects will be returned unprocessed.  Arrays
-     * are expected to be indexed.  Use object notation for
-     * associative arrays.
-     * @method dump
-     * @since 2.3.0
-     * @param o {Object} The object to dump
-     * @param d {int} How deep to recurse child objects, default 3
-     * @return {String} the dump result
-     */
-    dump: function(o, d) {
-        var i,len,s=[],OBJ="{...}",FUN="f(){...}",
-            COMMA=', ', ARROW=' => ';
-
-        // Cast non-objects to string
-        // Skip dates because the std toString is what we want
-        // Skip HTMLElement-like objects because trying to dump 
-        // an element will cause an unhandled exception in FF 2.x
-        if (!L.isObject(o)) {
-            return o + "";
-        } else if (o instanceof Date || ("nodeType" in o && "tagName" in o)) {
-            return o;
-        } else if  (L.isFunction(o)) {
-            return FUN;
-        }
-
-        // dig into child objects the depth specifed. Default 3
-        d = (L.isNumber(d)) ? d : 3;
-
-        // arrays [1, 2, 3]
-        if (L.isArray(o)) {
-            s.push("[");
-            for (i=0,len=o.length;i<len;i=i+1) {
-                if (L.isObject(o[i])) {
-                    s.push((d > 0) ? L.dump(o[i], d-1) : OBJ);
-                } else {
-                    s.push(o[i]);
-                }
-                s.push(COMMA);
-            }
-            if (s.length > 1) {
-                s.pop();
-            }
-            s.push("]");
-        // objects {k1 => v1, k2 => v2}
-        } else {
-            s.push("{");
-            for (i in o) {
-                if (L.hasOwnProperty(o, i)) {
-                    s.push(i + ARROW);
-                    if (L.isObject(o[i])) {
-                        s.push((d > 0) ? L.dump(o[i], d-1) : OBJ);
-                    } else {
-                        s.push(o[i]);
-                    }
-                    s.push(COMMA);
-                }
-            }
-            if (s.length > 1) {
-                s.pop();
-            }
-            s.push("}");
-        }
-
-        return s.join("");
-    },
-
-    /**
-     * Does variable substitution on a string. It scans through the string 
-     * looking for expressions enclosed in { } braces. If an expression 
-     * is found, it is used a key on the object.  If there is a space in
-     * the key, the first word is used for the key and the rest is provided
-     * to an optional function to be used to programatically determine the
-     * value (the extra information might be used for this decision). If 
-     * the value for the key in the object, or what is returned from the
-     * function has a string value, number value, or object value, it is 
-     * substituted for the bracket expression and it repeats.  If this
-     * value is an object, it uses the Object's toString() if this has
-     * been overridden, otherwise it does a shallow dump of the key/value
-     * pairs.
-     * @method substitute
-     * @since 2.3.0
-     * @param s {String} The string that will be modified.
-     * @param o {Object} An object containing the replacement values
-     * @param f {Function} An optional function that can be used to
-     *                     process each match.  It receives the key,
-     *                     value, and any extra metadata included with
-     *                     the key inside of the braces.
-     * @return {String} the substituted string
-     */
-    substitute: function (s, o, f) {
-        var i, j, k, key, v, meta, saved=[], token, 
-            DUMP='dump', SPACE=' ', LBRACE='{', RBRACE='}',
-            dump, objstr;
-
-
-        for (;;) {
-            i = s.lastIndexOf(LBRACE);
-            if (i < 0) {
-                break;
-            }
-            j = s.indexOf(RBRACE, i);
-            if (i + 1 >= j) {
-                break;
-            }
-
-            //Extract key and meta info 
-            token = s.substring(i + 1, j);
-            key = token;
-            meta = null;
-            k = key.indexOf(SPACE);
-            if (k > -1) {
-                meta = key.substring(k + 1);
-                key = key.substring(0, k);
-            }
-
-            // lookup the value
-            v = o[key];
-
-            // if a substitution function was provided, execute it
-            if (f) {
-                v = f(key, v, meta);
-            }
-
-            if (L.isObject(v)) {
-                if (L.isArray(v)) {
-                    v = L.dump(v, parseInt(meta, 10));
-                } else {
-                    meta = meta || "";
-
-                    // look for the keyword 'dump', if found force obj dump
-                    dump = meta.indexOf(DUMP);
-                    if (dump > -1) {
-                        meta = meta.substring(4);
-                    }
-
-                    objstr = v.toString();
-
-                    // use the toString if it is not the Object toString 
-                    // and the 'dump' meta info was not found
-                    if (objstr === OBJECT_TOSTRING || dump > -1) {
-                        v = L.dump(v, parseInt(meta, 10));
-                    } else {
-                        v = objstr;
-                    }
-                }
-            } else if (!L.isString(v) && !L.isNumber(v)) {
-                // This {block} has no replace string. Save it for later.
-                v = "~-" + saved.length + "-~";
-                saved[saved.length] = token;
-
-                // break;
-            }
-
-            s = s.substring(0, i) + v + s.substring(j + 1);
-
-
-        }
-
-        // restore saved {block}s
-        for (i=saved.length-1; i>=0; i=i-1) {
-            s = s.replace(new RegExp("~-" + i + "-~"), "{"  + saved[i] + "}", "g");
-        }
-
-        return s;
-    },
-
-
-    /**
-     * Returns a string without any leading or trailing whitespace.  If 
-     * the input is not a string, the input will be returned untouched.
-     * @method trim
-     * @since 2.3.0
-     * @param s {string} the string to trim
-     * @return {string} the trimmed string
-     */
-    trim: function(s){
-        try {
-            return s.replace(/^\s+|\s+$/g, "");
-        } catch(e) {
-            return s;
-        }
-    },
-
-    /**
-     * Returns a new object containing all of the properties of
-     * all the supplied objects.  The properties from later objects
-     * will overwrite those in earlier objects.
-     * @method merge
-     * @since 2.3.0
-     * @param arguments {Object*} the objects to merge
-     * @return the new merged object
-     */
-    merge: function() {
-        var o={}, a=arguments, l=a.length, i;
-        for (i=0; i<l; i=i+1) {
-            L.augmentObject(o, a[i], true);
-        }
-        return o;
-    },
-
-    /**
-     * Executes the supplied function in the context of the supplied 
-     * object 'when' milliseconds later.  Executes the function a 
-     * single time unless periodic is set to true.
-     * @method later
-     * @since 2.4.0
-     * @param when {int} the number of milliseconds to wait until the fn 
-     * is executed
-     * @param o the context object
-     * @param fn {Function|String} the function to execute or the name of 
-     * the method in the 'o' object to execute
-     * @param data [Array] data that is provided to the function.  This accepts
-     * either a single item or an array.  If an array is provided, the
-     * function is executed with one parameter for each array item.  If
-     * you need to pass a single array parameter, it needs to be wrapped in
-     * an array [myarray]
-     * @param periodic {boolean} if true, executes continuously at supplied 
-     * interval until canceled
-     * @return a timer object. Call the cancel() method on this object to 
-     * stop the timer.
-     */
-    later: function(when, o, fn, data, periodic) {
-        when = when || 0; 
-        o = o || {};
-        var m=fn, d=data, f, r;
-
-        if (L.isString(fn)) {
-            m = o[fn];
-        }
-
-        if (!m) {
-            throw new TypeError("method undefined");
-        }
-
-        if (d && !L.isArray(d)) {
-            d = [data];
-        }
-
-        f = function() {
-            m.apply(o, d || NOTHING);
-        };
-
-        r = (periodic) ? setInterval(f, when) : setTimeout(f, when);
-
-        return {
-            interval: periodic,
-            cancel: function() {
-                if (this.interval) {
-                    clearInterval(r);
-                } else {
-                    clearTimeout(r);
-                }
-            }
-        };
-    },
-    
-    /**
-     * A convenience method for detecting a legitimate non-null value.
-     * Returns false for null/undefined/NaN, true for other values, 
-     * including 0/false/''
-     * @method isValue
-     * @since 2.3.0
-     * @param o {any} the item to test
-     * @return {boolean} true if it is not null/undefined/NaN || false
-     */
-    isValue: function(o) {
-        // return (o || o === false || o === 0 || o === ''); // Infinity fails
-return (L.isObject(o) || L.isString(o) || L.isNumber(o) || L.isBoolean(o));
-    }
-
-};
-
-/**
- * Determines whether or not the property was added
- * to the object instance.  Returns false if the property is not present
- * in the object, or was inherited from the prototype.
- * This abstraction is provided to enable hasOwnProperty for Safari 1.3.x.
- * There is a discrepancy between YAHOO.lang.hasOwnProperty and
- * Object.prototype.hasOwnProperty when the property is a primitive added to
- * both the instance AND prototype with the same value:
- * <pre>
- * var A = function() {};
- * A.prototype.foo = 'foo';
- * var a = new A();
- * a.foo = 'foo';
- * alert(a.hasOwnProperty('foo')); // true
- * alert(YAHOO.lang.hasOwnProperty(a, 'foo')); // false when using fallback
- * </pre>
- * @method hasOwnProperty
- * @param {any} o The object being testing
- * @param prop {string} the name of the property to test
- * @return {boolean} the result
- */
-L.hasOwnProperty = (OP.hasOwnProperty) ?
-    function(o, prop) {
-        return o && o.hasOwnProperty(prop);
-    } : function(o, prop) {
-        return !L.isUndefined(o[prop]) && 
-                o.constructor.prototype[prop] !== o[prop];
-    };
-
-// new lang wins
-OB.augmentObject(L, OB, true);
-
-/*
- * An alias for <a href="YAHOO.lang.html">YAHOO.lang</a>
- * @class YAHOO.util.Lang
- */
-YAHOO.util.Lang = L;
-/**
- * Same as YAHOO.lang.augmentObject, except it only applies prototype 
- * properties.  This is an alias for augmentProto.
- * @see YAHOO.lang.augmentObject
- * @method augment
- * @static
- * @param {Function} r  the object to receive the augmentation
- * @param {Function} s  the object that supplies the properties to augment
- * @param {String*|boolean}  arguments zero or more properties methods to 
- *        augment the receiver with.  If none specified, everything
- *        in the supplier will be used unless it would
- *        overwrite an existing property in the receiver.  if true
- *        is specified as the third parameter, all properties will
- *        be applied and will overwrite an existing property in
- *        the receiver
- */
-L.augment = L.augmentProto;
-
-/**
- * An alias for <a href="YAHOO.lang.html#augment">YAHOO.lang.augment</a>
- * @for YAHOO
- * @method augment
- * @static
- * @param {Function} r  the object to receive the augmentation
- * @param {Function} s  the object that supplies the properties to augment
- * @param {String*}  arguments zero or more properties methods to 
- *        augment the receiver with.  If none specified, everything
- *        in the supplier will be used unless it would
- *        overwrite an existing property in the receiver
- */
-YAHOO.augment = L.augmentProto;
-       
-/**
- * An alias for <a href="YAHOO.lang.html#extend">YAHOO.lang.extend</a>
- * @method extend
- * @static
- * @param {Function} subc   the object to modify
- * @param {Function} superc the object to inherit
- * @param {Object} overrides  additional properties/methods to add to the
- *        subclass prototype.  These will override the
- *        matching items obtained from the superclass if present.
- */
-YAHOO.extend = L.extend;
-
-})();
-YAHOO.register("yahoo", YAHOO, {version: "2.8.0r4", build: "2449"});
diff --git a/koha-tmpl/intranet-tmpl/prog/en/lib/yui/yuiloader-dom-event/yuiloader-dom-event.js b/koha-tmpl/intranet-tmpl/prog/en/lib/yui/yuiloader-dom-event/yuiloader-dom-event.js
deleted file mode 100644 (file)
index fd947b1..0000000
+++ /dev/null
@@ -1,17 +0,0 @@
-/*
-Copyright (c) 2009, Yahoo! Inc. All rights reserved.
-Code licensed under the BSD License:
-http://developer.yahoo.net/yui/license.txt
-version: 2.8.0r4
-*/
-if(typeof YAHOO=="undefined"||!YAHOO){var YAHOO={};}YAHOO.namespace=function(){var A=arguments,E=null,C,B,D;for(C=0;C<A.length;C=C+1){D=(""+A[C]).split(".");E=YAHOO;for(B=(D[0]=="YAHOO")?1:0;B<D.length;B=B+1){E[D[B]]=E[D[B]]||{};E=E[D[B]];}}return E;};YAHOO.log=function(D,A,C){var B=YAHOO.widget.Logger;if(B&&B.log){return B.log(D,A,C);}else{return false;}};YAHOO.register=function(A,E,D){var I=YAHOO.env.modules,B,H,G,F,C;if(!I[A]){I[A]={versions:[],builds:[]};}B=I[A];H=D.version;G=D.build;F=YAHOO.env.listeners;B.name=A;B.version=H;B.build=G;B.versions.push(H);B.builds.push(G);B.mainClass=E;for(C=0;C<F.length;C=C+1){F[C](B);}if(E){E.VERSION=H;E.BUILD=G;}else{YAHOO.log("mainClass is undefined for module "+A,"warn");}};YAHOO.env=YAHOO.env||{modules:[],listeners:[]};YAHOO.env.getVersion=function(A){return YAHOO.env.modules[A]||null;};YAHOO.env.ua=function(){var D=function(H){var I=0;return parseFloat(H.replace(/\./g,function(){return(I++==1)?"":".";}));},G=navigator,F={ie:0,opera:0,gecko:0,webkit:0,mobile:null,air:0,caja:G.cajaVersion,secure:false,os:null},C=navigator&&navigator.userAgent,E=window&&window.location,B=E&&E.href,A;F.secure=B&&(B.toLowerCase().indexOf("https")===0);if(C){if((/windows|win32/i).test(C)){F.os="windows";}else{if((/macintosh/i).test(C)){F.os="macintosh";}}if((/KHTML/).test(C)){F.webkit=1;}A=C.match(/AppleWebKit\/([^\s]*)/);if(A&&A[1]){F.webkit=D(A[1]);if(/ Mobile\//.test(C)){F.mobile="Apple";}else{A=C.match(/NokiaN[^\/]*/);if(A){F.mobile=A[0];}}A=C.match(/AdobeAIR\/([^\s]*)/);if(A){F.air=A[0];}}if(!F.webkit){A=C.match(/Opera[\s\/]([^\s]*)/);if(A&&A[1]){F.opera=D(A[1]);A=C.match(/Opera Mini[^;]*/);if(A){F.mobile=A[0];}}else{A=C.match(/MSIE\s([^;]*)/);if(A&&A[1]){F.ie=D(A[1]);}else{A=C.match(/Gecko\/([^\s]*)/);if(A){F.gecko=1;A=C.match(/rv:([^\s\)]*)/);if(A&&A[1]){F.gecko=D(A[1]);}}}}}}return F;}();(function(){YAHOO.namespace("util","widget","example");if("undefined"!==typeof YAHOO_config){var B=YAHOO_config.listener,A=YAHOO.env.listeners,D=true,C;if(B){for(C=0;C<A.length;C++){if(A[C]==B){D=false;break;}}if(D){A.push(B);}}}})();YAHOO.lang=YAHOO.lang||{};(function(){var B=YAHOO.lang,A=Object.prototype,H="[object Array]",C="[object Function]",G="[object Object]",E=[],F=["toString","valueOf"],D={isArray:function(I){return A.toString.apply(I)===H;},isBoolean:function(I){return typeof I==="boolean";},isFunction:function(I){return(typeof I==="function")||A.toString.apply(I)===C;},isNull:function(I){return I===null;},isNumber:function(I){return typeof I==="number"&&isFinite(I);},isObject:function(I){return(I&&(typeof I==="object"||B.isFunction(I)))||false;},isString:function(I){return typeof I==="string";},isUndefined:function(I){return typeof I==="undefined";},_IEEnumFix:(YAHOO.env.ua.ie)?function(K,J){var I,M,L;for(I=0;I<F.length;I=I+1){M=F[I];L=J[M];if(B.isFunction(L)&&L!=A[M]){K[M]=L;}}}:function(){},extend:function(L,M,K){if(!M||!L){throw new Error("extend failed, please check that "+"all dependencies are included.");}var J=function(){},I;J.prototype=M.prototype;L.prototype=new J();L.prototype.constructor=L;L.superclass=M.prototype;if(M.prototype.constructor==A.constructor){M.prototype.constructor=M;}if(K){for(I in K){if(B.hasOwnProperty(K,I)){L.prototype[I]=K[I];}}B._IEEnumFix(L.prototype,K);}},augmentObject:function(M,L){if(!L||!M){throw new Error("Absorb failed, verify dependencies.");}var I=arguments,K,N,J=I[2];if(J&&J!==true){for(K=2;K<I.length;K=K+1){M[I[K]]=L[I[K]];}}else{for(N in L){if(J||!(N in M)){M[N]=L[N];}}B._IEEnumFix(M,L);}},augmentProto:function(L,K){if(!K||!L){throw new Error("Augment failed, verify dependencies.");}var I=[L.prototype,K.prototype],J;for(J=2;J<arguments.length;J=J+1){I.push(arguments[J]);}B.augmentObject.apply(this,I);},dump:function(I,N){var K,M,P=[],Q="{...}",J="f(){...}",O=", ",L=" => ";if(!B.isObject(I)){return I+"";}else{if(I instanceof Date||("nodeType" in I&&"tagName" in I)){return I;}else{if(B.isFunction(I)){return J;}}}N=(B.isNumber(N))?N:3;if(B.isArray(I)){P.push("[");for(K=0,M=I.length;K<M;K=K+1){if(B.isObject(I[K])){P.push((N>0)?B.dump(I[K],N-1):Q);}else{P.push(I[K]);}P.push(O);}if(P.length>1){P.pop();}P.push("]");}else{P.push("{");for(K in I){if(B.hasOwnProperty(I,K)){P.push(K+L);if(B.isObject(I[K])){P.push((N>0)?B.dump(I[K],N-1):Q);}else{P.push(I[K]);}P.push(O);}}if(P.length>1){P.pop();}P.push("}");}return P.join("");},substitute:function(Y,J,R){var N,M,L,U,V,X,T=[],K,O="dump",S=" ",I="{",W="}",Q,P;for(;;){N=Y.lastIndexOf(I);if(N<0){break;}M=Y.indexOf(W,N);if(N+1>=M){break;}K=Y.substring(N+1,M);U=K;X=null;L=U.indexOf(S);if(L>-1){X=U.substring(L+1);U=U.substring(0,L);}V=J[U];if(R){V=R(U,V,X);}if(B.isObject(V)){if(B.isArray(V)){V=B.dump(V,parseInt(X,10));}else{X=X||"";Q=X.indexOf(O);if(Q>-1){X=X.substring(4);}P=V.toString();if(P===G||Q>-1){V=B.dump(V,parseInt(X,10));}else{V=P;}}}else{if(!B.isString(V)&&!B.isNumber(V)){V="~-"+T.length+"-~";T[T.length]=K;}}Y=Y.substring(0,N)+V+Y.substring(M+1);}for(N=T.length-1;N>=0;N=N-1){Y=Y.replace(new RegExp("~-"+N+"-~"),"{"+T[N]+"}","g");}return Y;},trim:function(I){try{return I.replace(/^\s+|\s+$/g,"");}catch(J){return I;}},merge:function(){var L={},J=arguments,I=J.length,K;for(K=0;K<I;K=K+1){B.augmentObject(L,J[K],true);}return L;},later:function(P,J,Q,L,M){P=P||0;J=J||{};var K=Q,O=L,N,I;if(B.isString(Q)){K=J[Q];}if(!K){throw new TypeError("method undefined");}if(O&&!B.isArray(O)){O=[L];}N=function(){K.apply(J,O||E);};I=(M)?setInterval(N,P):setTimeout(N,P);return{interval:M,cancel:function(){if(this.interval){clearInterval(I);}else{clearTimeout(I);}}};},isValue:function(I){return(B.isObject(I)||B.isString(I)||B.isNumber(I)||B.isBoolean(I));}};B.hasOwnProperty=(A.hasOwnProperty)?function(I,J){return I&&I.hasOwnProperty(J);}:function(I,J){return !B.isUndefined(I[J])&&I.constructor.prototype[J]!==I[J];};D.augmentObject(B,D,true);YAHOO.util.Lang=B;B.augment=B.augmentProto;YAHOO.augment=B.augmentProto;YAHOO.extend=B.extend;})();YAHOO.register("yahoo",YAHOO,{version:"2.8.0r4",build:"2449"});
-YAHOO.util.Get=function(){var M={},L=0,R=0,E=false,N=YAHOO.env.ua,S=YAHOO.lang;var J=function(W,T,X){var U=X||window,Y=U.document,Z=Y.createElement(W);for(var V in T){if(T[V]&&YAHOO.lang.hasOwnProperty(T,V)){Z.setAttribute(V,T[V]);}}return Z;};var I=function(U,V,T){var W={id:"yui__dyn_"+(R++),type:"text/css",rel:"stylesheet",href:U};if(T){S.augmentObject(W,T);}return J("link",W,V);};var P=function(U,V,T){var W={id:"yui__dyn_"+(R++),type:"text/javascript",src:U};if(T){S.augmentObject(W,T);}return J("script",W,V);};var A=function(T,U){return{tId:T.tId,win:T.win,data:T.data,nodes:T.nodes,msg:U,purge:function(){D(this.tId);}};};var B=function(T,W){var U=M[W],V=(S.isString(T))?U.win.document.getElementById(T):T;if(!V){Q(W,"target node not found: "+T);}return V;};var Q=function(W,V){var T=M[W];if(T.onFailure){var U=T.scope||T.win;T.onFailure.call(U,A(T,V));}};var C=function(W){var T=M[W];T.finished=true;if(T.aborted){var V="transaction "+W+" was aborted";Q(W,V);return;}if(T.onSuccess){var U=T.scope||T.win;T.onSuccess.call(U,A(T));}};var O=function(V){var T=M[V];if(T.onTimeout){var U=T.scope||T;T.onTimeout.call(U,A(T));}};var G=function(V,Z){var U=M[V];if(U.timer){U.timer.cancel();}if(U.aborted){var X="transaction "+V+" was aborted";Q(V,X);return;}if(Z){U.url.shift();if(U.varName){U.varName.shift();}}else{U.url=(S.isString(U.url))?[U.url]:U.url;if(U.varName){U.varName=(S.isString(U.varName))?[U.varName]:U.varName;}}var c=U.win,b=c.document,a=b.getElementsByTagName("head")[0],W;if(U.url.length===0){if(U.type==="script"&&N.webkit&&N.webkit<420&&!U.finalpass&&!U.varName){var Y=P(null,U.win,U.attributes);Y.innerHTML='YAHOO.util.Get._finalize("'+V+'");';U.nodes.push(Y);a.appendChild(Y);}else{C(V);}return;}var T=U.url[0];if(!T){U.url.shift();return G(V);}if(U.timeout){U.timer=S.later(U.timeout,U,O,V);}if(U.type==="script"){W=P(T,c,U.attributes);}else{W=I(T,c,U.attributes);}F(U.type,W,V,T,c,U.url.length);U.nodes.push(W);if(U.insertBefore){var e=B(U.insertBefore,V);if(e){e.parentNode.insertBefore(W,e);}}else{a.appendChild(W);}if((N.webkit||N.gecko)&&U.type==="css"){G(V,T);}};var K=function(){if(E){return;}E=true;for(var T in M){var U=M[T];if(U.autopurge&&U.finished){D(U.tId);delete M[T];}}E=false;};var D=function(Z){if(M[Z]){var T=M[Z],U=T.nodes,X=U.length,c=T.win.document,a=c.getElementsByTagName("head")[0],V,Y,W,b;if(T.insertBefore){V=B(T.insertBefore,Z);if(V){a=V.parentNode;}}for(Y=0;Y<X;Y=Y+1){W=U[Y];if(W.clearAttributes){W.clearAttributes();}else{for(b in W){delete W[b];}}a.removeChild(W);}T.nodes=[];}};var H=function(U,T,V){var X="q"+(L++);V=V||{};if(L%YAHOO.util.Get.PURGE_THRESH===0){K();}M[X]=S.merge(V,{tId:X,type:U,url:T,finished:false,aborted:false,nodes:[]});var W=M[X];W.win=W.win||window;W.scope=W.scope||W.win;W.autopurge=("autopurge" in W)?W.autopurge:(U==="script")?true:false;if(V.charset){W.attributes=W.attributes||{};W.attributes.charset=V.charset;}S.later(0,W,G,X);return{tId:X};};var F=function(c,X,W,U,Y,Z,b){var a=b||G;if(N.ie){X.onreadystatechange=function(){var d=this.readyState;if("loaded"===d||"complete"===d){X.onreadystatechange=null;a(W,U);}};}else{if(N.webkit){if(c==="script"){if(N.webkit>=420){X.addEventListener("load",function(){a(W,U);});}else{var T=M[W];if(T.varName){var V=YAHOO.util.Get.POLL_FREQ;T.maxattempts=YAHOO.util.Get.TIMEOUT/V;T.attempts=0;T._cache=T.varName[0].split(".");T.timer=S.later(V,T,function(j){var f=this._cache,e=f.length,d=this.win,g;for(g=0;g<e;g=g+1){d=d[f[g]];if(!d){this.attempts++;if(this.attempts++>this.maxattempts){var h="Over retry limit, giving up";T.timer.cancel();Q(W,h);}else{}return;}}T.timer.cancel();a(W,U);},null,true);}else{S.later(YAHOO.util.Get.POLL_FREQ,null,a,[W,U]);}}}}else{X.onload=function(){a(W,U);};}}};return{POLL_FREQ:10,PURGE_THRESH:20,TIMEOUT:2000,_finalize:function(T){S.later(0,null,C,T);},abort:function(U){var V=(S.isString(U))?U:U.tId;var T=M[V];if(T){T.aborted=true;}},script:function(T,U){return H("script",T,U);},css:function(T,U){return H("css",T,U);}};}();YAHOO.register("get",YAHOO.util.Get,{version:"2.8.0r4",build:"2449"});(function(){var Y=YAHOO,util=Y.util,lang=Y.lang,env=Y.env,PROV="_provides",SUPER="_supersedes",REQ="expanded",AFTER="_after";var YUI={dupsAllowed:{"yahoo":true,"get":true},info:{"root":"2.8.0r4/build/","base":"http://yui.yahooapis.com/2.8.0r4/build/","comboBase":"http://yui.yahooapis.com/combo?","skin":{"defaultSkin":"sam","base":"assets/skins/","path":"skin.css","after":["reset","fonts","grids","base"],"rollup":3},dupsAllowed:["yahoo","get"],"moduleInfo":{"animation":{"type":"js","path":"animation/animation-min.js","requires":["dom","event"]},"autocomplete":{"type":"js","path":"autocomplete/autocomplete-min.js","requires":["dom","event","datasource"],"optional":["connection","animation"],"skinnable":true},"base":{"type":"css","path":"base/base-min.css","after":["reset","fonts","grids"]},"button":{"type":"js","path":"button/button-min.js","requires":["element"],"optional":["menu"],"skinnable":true},"calendar":{"type":"js","path":"calendar/calendar-min.js","requires":["event","dom"],supersedes:["datemeth"],"skinnable":true},"carousel":{"type":"js","path":"carousel/carousel-min.js","requires":["element"],"optional":["animation"],"skinnable":true},"charts":{"type":"js","path":"charts/charts-min.js","requires":["element","json","datasource","swf"]},"colorpicker":{"type":"js","path":"colorpicker/colorpicker-min.js","requires":["slider","element"],"optional":["animation"],"skinnable":true},"connection":{"type":"js","path":"connection/connection-min.js","requires":["event"],"supersedes":["connectioncore"]},"connectioncore":{"type":"js","path":"connection/connection_core-min.js","requires":["event"],"pkg":"connection"},"container":{"type":"js","path":"container/container-min.js","requires":["dom","event"],"optional":["dragdrop","animation","connection"],"supersedes":["containercore"],"skinnable":true},"containercore":{"type":"js","path":"container/container_core-min.js","requires":["dom","event"],"pkg":"container"},"cookie":{"type":"js","path":"cookie/cookie-min.js","requires":["yahoo"]},"datasource":{"type":"js","path":"datasource/datasource-min.js","requires":["event"],"optional":["connection"]},"datatable":{"type":"js","path":"datatable/datatable-min.js","requires":["element","datasource"],"optional":["calendar","dragdrop","paginator"],"skinnable":true},datemath:{"type":"js","path":"datemath/datemath-min.js","requires":["yahoo"]},"dom":{"type":"js","path":"dom/dom-min.js","requires":["yahoo"]},"dragdrop":{"type":"js","path":"dragdrop/dragdrop-min.js","requires":["dom","event"]},"editor":{"type":"js","path":"editor/editor-min.js","requires":["menu","element","button"],"optional":["animation","dragdrop"],"supersedes":["simpleeditor"],"skinnable":true},"element":{"type":"js","path":"element/element-min.js","requires":["dom","event"],"optional":["event-mouseenter","event-delegate"]},"element-delegate":{"type":"js","path":"element-delegate/element-delegate-min.js","requires":["element"]},"event":{"type":"js","path":"event/event-min.js","requires":["yahoo"]},"event-simulate":{"type":"js","path":"event-simulate/event-simulate-min.js","requires":["event"]},"event-delegate":{"type":"js","path":"event-delegate/event-delegate-min.js","requires":["event"],"optional":["selector"]},"event-mouseenter":{"type":"js","path":"event-mouseenter/event-mouseenter-min.js","requires":["dom","event"]},"fonts":{"type":"css","path":"fonts/fonts-min.css"},"get":{"type":"js","path":"get/get-min.js","requires":["yahoo"]},"grids":{"type":"css","path":"grids/grids-min.css","requires":["fonts"],"optional":["reset"]},"history":{"type":"js","path":"history/history-min.js","requires":["event"]},"imagecropper":{"type":"js","path":"imagecropper/imagecropper-min.js","requires":["dragdrop","element","resize"],"skinnable":true},"imageloader":{"type":"js","path":"imageloader/imageloader-min.js","requires":["event","dom"]},"json":{"type":"js","path":"json/json-min.js","requires":["yahoo"]},"layout":{"type":"js","path":"layout/layout-min.js","requires":["element"],"optional":["animation","dragdrop","resize","selector"],"skinnable":true},"logger":{"type":"js","path":"logger/logger-min.js","requires":["event","dom"],"optional":["dragdrop"],"skinnable":true},"menu":{"type":"js","path":"menu/menu-min.js","requires":["containercore"],"skinnable":true},"paginator":{"type":"js","path":"paginator/paginator-min.js","requires":["element"],"skinnable":true},"profiler":{"type":"js","path":"profiler/profiler-min.js","requires":["yahoo"]},"profilerviewer":{"type":"js","path":"profilerviewer/profilerviewer-min.js","requires":["profiler","yuiloader","element"],"skinnable":true},"progressbar":{"type":"js","path":"progressbar/progressbar-min.js","requires":["element"],"optional":["animation"],"skinnable":true},"reset":{"type":"css","path":"reset/reset-min.css"},"reset-fonts-grids":{"type":"css","path":"reset-fonts-grids/reset-fonts-grids.css","supersedes":["reset","fonts","grids","reset-fonts"],"rollup":4},"reset-fonts":{"type":"css","path":"reset-fonts/reset-fonts.css","supersedes":["reset","fonts"],"rollup":2},"resize":{"type":"js","path":"resize/resize-min.js","requires":["dragdrop","element"],"optional":["animation"],"skinnable":true},"selector":{"type":"js","path":"selector/selector-min.js","requires":["yahoo","dom"]},"simpleeditor":{"type":"js","path":"editor/simpleeditor-min.js","requires":["element"],"optional":["containercore","menu","button","animation","dragdrop"],"skinnable":true,"pkg":"editor"},"slider":{"type":"js","path":"slider/slider-min.js","requires":["dragdrop"],"optional":["animation"],"skinnable":true},"storage":{"type":"js","path":"storage/storage-min.js","requires":["yahoo","event","cookie"],"optional":["swfstore"]},"stylesheet":{"type":"js","path":"stylesheet/stylesheet-min.js","requires":["yahoo"]},"swf":{"type":"js","path":"swf/swf-min.js","requires":["element"],"supersedes":["swfdetect"]},"swfdetect":{"type":"js","path":"swfdetect/swfdetect-min.js","requires":["yahoo"]},"swfstore":{"type":"js","path":"swfstore/swfstore-min.js","requires":["element","cookie","swf"]},"tabview":{"type":"js","path":"tabview/tabview-min.js","requires":["element"],"optional":["connection"],"skinnable":true},"treeview":{"type":"js","path":"treeview/treeview-min.js","requires":["event","dom"],"optional":["json","animation","calendar"],"skinnable":true},"uploader":{"type":"js","path":"uploader/uploader-min.js","requires":["element"]},"utilities":{"type":"js","path":"utilities/utilities.js","supersedes":["yahoo","event","dragdrop","animation","dom","connection","element","yahoo-dom-event","get","yuiloader","yuiloader-dom-event"],"rollup":8},"yahoo":{"type":"js","path":"yahoo/yahoo-min.js"},"yahoo-dom-event":{"type":"js","path":"yahoo-dom-event/yahoo-dom-event.js","supersedes":["yahoo","event","dom"],"rollup":3},"yuiloader":{"type":"js","path":"yuiloader/yuiloader-min.js","supersedes":["yahoo","get"]},"yuiloader-dom-event":{"type":"js","path":"yuiloader-dom-event/yuiloader-dom-event.js","supersedes":["yahoo","dom","event","get","yuiloader","yahoo-dom-event"],"rollup":5},"yuitest":{"type":"js","path":"yuitest/yuitest-min.js","requires":["logger"],"optional":["event-simulate"],"skinnable":true}}},ObjectUtil:{appendArray:function(o,a){if(a){for(var i=0;
-i<a.length;i=i+1){o[a[i]]=true;}}},keys:function(o,ordered){var a=[],i;for(i in o){if(lang.hasOwnProperty(o,i)){a.push(i);}}return a;}},ArrayUtil:{appendArray:function(a1,a2){Array.prototype.push.apply(a1,a2);},indexOf:function(a,val){for(var i=0;i<a.length;i=i+1){if(a[i]===val){return i;}}return -1;},toObject:function(a){var o={};for(var i=0;i<a.length;i=i+1){o[a[i]]=true;}return o;},uniq:function(a){return YUI.ObjectUtil.keys(YUI.ArrayUtil.toObject(a));}}};YAHOO.util.YUILoader=function(o){this._internalCallback=null;this._useYahooListener=false;this.onSuccess=null;this.onFailure=Y.log;this.onProgress=null;this.onTimeout=null;this.scope=this;this.data=null;this.insertBefore=null;this.charset=null;this.varName=null;this.base=YUI.info.base;this.comboBase=YUI.info.comboBase;this.combine=false;this.root=YUI.info.root;this.timeout=0;this.ignore=null;this.force=null;this.allowRollup=true;this.filter=null;this.required={};this.moduleInfo=lang.merge(YUI.info.moduleInfo);this.rollups=null;this.loadOptional=false;this.sorted=[];this.loaded={};this.dirty=true;this.inserted={};var self=this;env.listeners.push(function(m){if(self._useYahooListener){self.loadNext(m.name);}});this.skin=lang.merge(YUI.info.skin);this._config(o);};Y.util.YUILoader.prototype={FILTERS:{RAW:{"searchExp":"-min\\.js","replaceStr":".js"},DEBUG:{"searchExp":"-min\\.js","replaceStr":"-debug.js"}},SKIN_PREFIX:"skin-",_config:function(o){if(o){for(var i in o){if(lang.hasOwnProperty(o,i)){if(i=="require"){this.require(o[i]);}else{this[i]=o[i];}}}}var f=this.filter;if(lang.isString(f)){f=f.toUpperCase();if(f==="DEBUG"){this.require("logger");}if(!Y.widget.LogWriter){Y.widget.LogWriter=function(){return Y;};}this.filter=this.FILTERS[f];}},addModule:function(o){if(!o||!o.name||!o.type||(!o.path&&!o.fullpath)){return false;}o.ext=("ext" in o)?o.ext:true;o.requires=o.requires||[];this.moduleInfo[o.name]=o;this.dirty=true;return true;},require:function(what){var a=(typeof what==="string")?arguments:what;this.dirty=true;YUI.ObjectUtil.appendArray(this.required,a);},_addSkin:function(skin,mod){var name=this.formatSkin(skin),info=this.moduleInfo,sinf=this.skin,ext=info[mod]&&info[mod].ext;if(!info[name]){this.addModule({"name":name,"type":"css","path":sinf.base+skin+"/"+sinf.path,"after":sinf.after,"rollup":sinf.rollup,"ext":ext});}if(mod){name=this.formatSkin(skin,mod);if(!info[name]){var mdef=info[mod],pkg=mdef.pkg||mod;this.addModule({"name":name,"type":"css","after":sinf.after,"path":pkg+"/"+sinf.base+skin+"/"+mod+".css","ext":ext});}}return name;},getRequires:function(mod){if(!mod){return[];}if(!this.dirty&&mod.expanded){return mod.expanded;}mod.requires=mod.requires||[];var i,d=[],r=mod.requires,o=mod.optional,info=this.moduleInfo,m;for(i=0;i<r.length;i=i+1){d.push(r[i]);m=info[r[i]];YUI.ArrayUtil.appendArray(d,this.getRequires(m));}if(o&&this.loadOptional){for(i=0;i<o.length;i=i+1){d.push(o[i]);YUI.ArrayUtil.appendArray(d,this.getRequires(info[o[i]]));}}mod.expanded=YUI.ArrayUtil.uniq(d);return mod.expanded;},getProvides:function(name,notMe){var addMe=!(notMe),ckey=(addMe)?PROV:SUPER,m=this.moduleInfo[name],o={};if(!m){return o;}if(m[ckey]){return m[ckey];}var s=m.supersedes,done={},me=this;var add=function(mm){if(!done[mm]){done[mm]=true;lang.augmentObject(o,me.getProvides(mm));}};if(s){for(var i=0;i<s.length;i=i+1){add(s[i]);}}m[SUPER]=o;m[PROV]=lang.merge(o);m[PROV][name]=true;return m[ckey];},calculate:function(o){if(o||this.dirty){this._config(o);this._setup();this._explode();if(this.allowRollup){this._rollup();}this._reduce();this._sort();this.dirty=false;}},_setup:function(){var info=this.moduleInfo,name,i,j;for(name in info){if(lang.hasOwnProperty(info,name)){var m=info[name];if(m&&m.skinnable){var o=this.skin.overrides,smod;if(o&&o[name]){for(i=0;i<o[name].length;i=i+1){smod=this._addSkin(o[name][i],name);}}else{smod=this._addSkin(this.skin.defaultSkin,name);}m.requires.push(smod);}}}var l=lang.merge(this.inserted);if(!this._sandbox){l=lang.merge(l,env.modules);}if(this.ignore){YUI.ObjectUtil.appendArray(l,this.ignore);}if(this.force){for(i=0;i<this.force.length;i=i+1){if(this.force[i] in l){delete l[this.force[i]];}}}for(j in l){if(lang.hasOwnProperty(l,j)){lang.augmentObject(l,this.getProvides(j));}}this.loaded=l;},_explode:function(){var r=this.required,i,mod;for(i in r){if(lang.hasOwnProperty(r,i)){mod=this.moduleInfo[i];if(mod){var req=this.getRequires(mod);if(req){YUI.ObjectUtil.appendArray(r,req);}}}}},_skin:function(){},formatSkin:function(skin,mod){var s=this.SKIN_PREFIX+skin;if(mod){s=s+"-"+mod;}return s;},parseSkin:function(mod){if(mod.indexOf(this.SKIN_PREFIX)===0){var a=mod.split("-");return{skin:a[1],module:a[2]};}return null;},_rollup:function(){var i,j,m,s,rollups={},r=this.required,roll,info=this.moduleInfo;if(this.dirty||!this.rollups){for(i in info){if(lang.hasOwnProperty(info,i)){m=info[i];if(m&&m.rollup){rollups[i]=m;}}}this.rollups=rollups;}for(;;){var rolled=false;for(i in rollups){if(!r[i]&&!this.loaded[i]){m=info[i];s=m.supersedes;roll=false;if(!m.rollup){continue;}var skin=(m.ext)?false:this.parseSkin(i),c=0;if(skin){for(j in r){if(lang.hasOwnProperty(r,j)){if(i!==j&&this.parseSkin(j)){c++;roll=(c>=m.rollup);if(roll){break;}}}}}else{for(j=0;j<s.length;j=j+1){if(this.loaded[s[j]]&&(!YUI.dupsAllowed[s[j]])){roll=false;break;}else{if(r[s[j]]){c++;roll=(c>=m.rollup);if(roll){break;}}}}}if(roll){r[i]=true;rolled=true;this.getRequires(m);}}}if(!rolled){break;}}},_reduce:function(){var i,j,s,m,r=this.required;for(i in r){if(i in this.loaded){delete r[i];}else{var skinDef=this.parseSkin(i);if(skinDef){if(!skinDef.module){var skin_pre=this.SKIN_PREFIX+skinDef.skin;for(j in r){if(lang.hasOwnProperty(r,j)){m=this.moduleInfo[j];var ext=m&&m.ext;if(!ext&&j!==i&&j.indexOf(skin_pre)>-1){delete r[j];}}}}}else{m=this.moduleInfo[i];s=m&&m.supersedes;if(s){for(j=0;j<s.length;j=j+1){if(s[j] in r){delete r[s[j]];}}}}}}},_onFailure:function(msg){YAHOO.log("Failure","info","loader");var f=this.onFailure;if(f){f.call(this.scope,{msg:"failure: "+msg,data:this.data,success:false});
-}},_onTimeout:function(){YAHOO.log("Timeout","info","loader");var f=this.onTimeout;if(f){f.call(this.scope,{msg:"timeout",data:this.data,success:false});}},_sort:function(){var s=[],info=this.moduleInfo,loaded=this.loaded,checkOptional=!this.loadOptional,me=this;var requires=function(aa,bb){var mm=info[aa];if(loaded[bb]||!mm){return false;}var ii,rr=mm.expanded,after=mm.after,other=info[bb],optional=mm.optional;if(rr&&YUI.ArrayUtil.indexOf(rr,bb)>-1){return true;}if(after&&YUI.ArrayUtil.indexOf(after,bb)>-1){return true;}if(checkOptional&&optional&&YUI.ArrayUtil.indexOf(optional,bb)>-1){return true;}var ss=info[bb]&&info[bb].supersedes;if(ss){for(ii=0;ii<ss.length;ii=ii+1){if(requires(aa,ss[ii])){return true;}}}if(mm.ext&&mm.type=="css"&&!other.ext&&other.type=="css"){return true;}return false;};for(var i in this.required){if(lang.hasOwnProperty(this.required,i)){s.push(i);}}var p=0;for(;;){var l=s.length,a,b,j,k,moved=false;for(j=p;j<l;j=j+1){a=s[j];for(k=j+1;k<l;k=k+1){if(requires(a,s[k])){b=s.splice(k,1);s.splice(j,0,b[0]);moved=true;break;}}if(moved){break;}else{p=p+1;}}if(!moved){break;}}this.sorted=s;},toString:function(){var o={type:"YUILoader",base:this.base,filter:this.filter,required:this.required,loaded:this.loaded,inserted:this.inserted};lang.dump(o,1);},_combine:function(){this._combining=[];var self=this,s=this.sorted,len=s.length,js=this.comboBase,css=this.comboBase,target,startLen=js.length,i,m,type=this.loadType;YAHOO.log("type "+type);for(i=0;i<len;i=i+1){m=this.moduleInfo[s[i]];if(m&&!m.ext&&(!type||type===m.type)){target=this.root+m.path;target+="&";if(m.type=="js"){js+=target;}else{css+=target;}this._combining.push(s[i]);}}if(this._combining.length){YAHOO.log("Attempting to combine: "+this._combining,"info","loader");var callback=function(o){var c=this._combining,len=c.length,i,m;for(i=0;i<len;i=i+1){this.inserted[c[i]]=true;}this.loadNext(o.data);},loadScript=function(){if(js.length>startLen){YAHOO.util.Get.script(self._filter(js),{data:self._loading,onSuccess:callback,onFailure:self._onFailure,onTimeout:self._onTimeout,insertBefore:self.insertBefore,charset:self.charset,timeout:self.timeout,scope:self});}};if(css.length>startLen){YAHOO.util.Get.css(this._filter(css),{data:this._loading,onSuccess:loadScript,onFailure:this._onFailure,onTimeout:this._onTimeout,insertBefore:this.insertBefore,charset:this.charset,timeout:this.timeout,scope:self});}else{loadScript();}return;}else{this.loadNext(this._loading);}},insert:function(o,type){this.calculate(o);this._loading=true;this.loadType=type;if(this.combine){return this._combine();}if(!type){var self=this;this._internalCallback=function(){self._internalCallback=null;self.insert(null,"js");};this.insert(null,"css");return;}this.loadNext();},sandbox:function(o,type){this._config(o);if(!this.onSuccess){throw new Error("You must supply an onSuccess handler for your sandbox");}this._sandbox=true;var self=this;if(!type||type!=="js"){this._internalCallback=function(){self._internalCallback=null;self.sandbox(null,"js");};this.insert(null,"css");return;}if(!util.Connect){var ld=new YAHOO.util.YUILoader();ld.insert({base:this.base,filter:this.filter,require:"connection",insertBefore:this.insertBefore,charset:this.charset,onSuccess:function(){this.sandbox(null,"js");},scope:this},"js");return;}this._scriptText=[];this._loadCount=0;this._stopCount=this.sorted.length;this._xhr=[];this.calculate();var s=this.sorted,l=s.length,i,m,url;for(i=0;i<l;i=i+1){m=this.moduleInfo[s[i]];if(!m){this._onFailure("undefined module "+m);for(var j=0;j<this._xhr.length;j=j+1){this._xhr[j].abort();}return;}if(m.type!=="js"){this._loadCount++;continue;}url=m.fullpath;url=(url)?this._filter(url):this._url(m.path);var xhrData={success:function(o){var idx=o.argument[0],name=o.argument[2];this._scriptText[idx]=o.responseText;if(this.onProgress){this.onProgress.call(this.scope,{name:name,scriptText:o.responseText,xhrResponse:o,data:this.data});}this._loadCount++;if(this._loadCount>=this._stopCount){var v=this.varName||"YAHOO";var t="(function() {\n";var b="\nreturn "+v+";\n})();";var ref=eval(t+this._scriptText.join("\n")+b);this._pushEvents(ref);if(ref){this.onSuccess.call(this.scope,{reference:ref,data:this.data});}else{this._onFailure.call(this.varName+" reference failure");}}},failure:function(o){this.onFailure.call(this.scope,{msg:"XHR failure",xhrResponse:o,data:this.data});},scope:this,argument:[i,url,s[i]]};this._xhr.push(util.Connect.asyncRequest("GET",url,xhrData));}},loadNext:function(mname){if(!this._loading){return;}if(mname){if(mname!==this._loading){return;}this.inserted[mname]=true;if(this.onProgress){this.onProgress.call(this.scope,{name:mname,data:this.data});}}var s=this.sorted,len=s.length,i,m;for(i=0;i<len;i=i+1){if(s[i] in this.inserted){continue;}if(s[i]===this._loading){return;}m=this.moduleInfo[s[i]];if(!m){this.onFailure.call(this.scope,{msg:"undefined module "+m,data:this.data});return;}if(!this.loadType||this.loadType===m.type){this._loading=s[i];var fn=(m.type==="css")?util.Get.css:util.Get.script,url=m.fullpath,self=this,c=function(o){self.loadNext(o.data);};url=(url)?this._filter(url):this._url(m.path);if(env.ua.webkit&&env.ua.webkit<420&&m.type==="js"&&!m.varName){c=null;this._useYahooListener=true;}fn(url,{data:s[i],onSuccess:c,onFailure:this._onFailure,onTimeout:this._onTimeout,insertBefore:this.insertBefore,charset:this.charset,timeout:this.timeout,varName:m.varName,scope:self});return;}}this._loading=null;if(this._internalCallback){var f=this._internalCallback;this._internalCallback=null;f.call(this);}else{if(this.onSuccess){this._pushEvents();this.onSuccess.call(this.scope,{data:this.data});}}},_pushEvents:function(ref){var r=ref||YAHOO;if(r.util&&r.util.Event){r.util.Event._load();}},_filter:function(str){var f=this.filter;return(f)?str.replace(new RegExp(f.searchExp,"g"),f.replaceStr):str;},_url:function(path){return this._filter((this.base||"")+path);}};})();YAHOO.register("yuiloader",YAHOO.util.YUILoader,{version:"2.8.0r4",build:"2449"});
-(function(){YAHOO.env._id_counter=YAHOO.env._id_counter||0;var E=YAHOO.util,L=YAHOO.lang,m=YAHOO.env.ua,A=YAHOO.lang.trim,d={},h={},N=/^t(?:able|d|h)$/i,X=/color$/i,K=window.document,W=K.documentElement,e="ownerDocument",n="defaultView",v="documentElement",t="compatMode",b="offsetLeft",P="offsetTop",u="offsetParent",Z="parentNode",l="nodeType",C="tagName",O="scrollLeft",i="scrollTop",Q="getBoundingClientRect",w="getComputedStyle",a="currentStyle",M="CSS1Compat",c="BackCompat",g="class",F="className",J="",B=" ",s="(?:^|\\s)",k="(?= |$)",U="g",p="position",f="fixed",V="relative",j="left",o="top",r="medium",q="borderLeftWidth",R="borderTopWidth",D=m.opera,I=m.webkit,H=m.gecko,T=m.ie;E.Dom={CUSTOM_ATTRIBUTES:(!W.hasAttribute)?{"for":"htmlFor","class":F}:{"htmlFor":"for","className":g},DOT_ATTRIBUTES:{},get:function(z){var AB,x,AA,y,Y,G;if(z){if(z[l]||z.item){return z;}if(typeof z==="string"){AB=z;z=K.getElementById(z);G=(z)?z.attributes:null;if(z&&G&&G.id&&G.id.value===AB){return z;}else{if(z&&K.all){z=null;x=K.all[AB];for(y=0,Y=x.length;y<Y;++y){if(x[y].id===AB){return x[y];}}}}return z;}if(YAHOO.util.Element&&z instanceof YAHOO.util.Element){z=z.get("element");}if("length" in z){AA=[];for(y=0,Y=z.length;y<Y;++y){AA[AA.length]=E.Dom.get(z[y]);}return AA;}return z;}return null;},getComputedStyle:function(G,Y){if(window[w]){return G[e][n][w](G,null)[Y];}else{if(G[a]){return E.Dom.IE_ComputedStyle.get(G,Y);}}},getStyle:function(G,Y){return E.Dom.batch(G,E.Dom._getStyle,Y);},_getStyle:function(){if(window[w]){return function(G,y){y=(y==="float")?y="cssFloat":E.Dom._toCamel(y);var x=G.style[y],Y;if(!x){Y=G[e][n][w](G,null);if(Y){x=Y[y];}}return x;};}else{if(W[a]){return function(G,y){var x;switch(y){case"opacity":x=100;try{x=G.filters["DXImageTransform.Microsoft.Alpha"].opacity;}catch(z){try{x=G.filters("alpha").opacity;}catch(Y){}}return x/100;case"float":y="styleFloat";default:y=E.Dom._toCamel(y);x=G[a]?G[a][y]:null;return(G.style[y]||x);}};}}}(),setStyle:function(G,Y,x){E.Dom.batch(G,E.Dom._setStyle,{prop:Y,val:x});},_setStyle:function(){if(T){return function(Y,G){var x=E.Dom._toCamel(G.prop),y=G.val;if(Y){switch(x){case"opacity":if(L.isString(Y.style.filter)){Y.style.filter="alpha(opacity="+y*100+")";if(!Y[a]||!Y[a].hasLayout){Y.style.zoom=1;}}break;case"float":x="styleFloat";default:Y.style[x]=y;}}else{}};}else{return function(Y,G){var x=E.Dom._toCamel(G.prop),y=G.val;if(Y){if(x=="float"){x="cssFloat";}Y.style[x]=y;}else{}};}}(),getXY:function(G){return E.Dom.batch(G,E.Dom._getXY);},_canPosition:function(G){return(E.Dom._getStyle(G,"display")!=="none"&&E.Dom._inDoc(G));},_getXY:function(){if(K[v][Q]){return function(y){var z,Y,AA,AF,AE,AD,AC,G,x,AB=Math.floor,AG=false;if(E.Dom._canPosition(y)){AA=y[Q]();AF=y[e];z=E.Dom.getDocumentScrollLeft(AF);Y=E.Dom.getDocumentScrollTop(AF);AG=[AB(AA[j]),AB(AA[o])];if(T&&m.ie<8){AE=2;AD=2;AC=AF[t];if(m.ie===6){if(AC!==c){AE=0;AD=0;}}if((AC===c)){G=S(AF[v],q);x=S(AF[v],R);if(G!==r){AE=parseInt(G,10);}if(x!==r){AD=parseInt(x,10);}}AG[0]-=AE;AG[1]-=AD;}if((Y||z)){AG[0]+=z;AG[1]+=Y;}AG[0]=AB(AG[0]);AG[1]=AB(AG[1]);}else{}return AG;};}else{return function(y){var x,Y,AA,AB,AC,z=false,G=y;if(E.Dom._canPosition(y)){z=[y[b],y[P]];x=E.Dom.getDocumentScrollLeft(y[e]);Y=E.Dom.getDocumentScrollTop(y[e]);AC=((H||m.webkit>519)?true:false);while((G=G[u])){z[0]+=G[b];z[1]+=G[P];if(AC){z=E.Dom._calcBorders(G,z);}}if(E.Dom._getStyle(y,p)!==f){G=y;while((G=G[Z])&&G[C]){AA=G[i];AB=G[O];if(H&&(E.Dom._getStyle(G,"overflow")!=="visible")){z=E.Dom._calcBorders(G,z);}if(AA||AB){z[0]-=AB;z[1]-=AA;}}z[0]+=x;z[1]+=Y;}else{if(D){z[0]-=x;z[1]-=Y;}else{if(I||H){z[0]+=x;z[1]+=Y;}}}z[0]=Math.floor(z[0]);z[1]=Math.floor(z[1]);}else{}return z;};}}(),getX:function(G){var Y=function(x){return E.Dom.getXY(x)[0];};return E.Dom.batch(G,Y,E.Dom,true);},getY:function(G){var Y=function(x){return E.Dom.getXY(x)[1];};return E.Dom.batch(G,Y,E.Dom,true);},setXY:function(G,x,Y){E.Dom.batch(G,E.Dom._setXY,{pos:x,noRetry:Y});},_setXY:function(G,z){var AA=E.Dom._getStyle(G,p),y=E.Dom.setStyle,AD=z.pos,Y=z.noRetry,AB=[parseInt(E.Dom.getComputedStyle(G,j),10),parseInt(E.Dom.getComputedStyle(G,o),10)],AC,x;if(AA=="static"){AA=V;y(G,p,AA);}AC=E.Dom._getXY(G);if(!AD||AC===false){return false;}if(isNaN(AB[0])){AB[0]=(AA==V)?0:G[b];}if(isNaN(AB[1])){AB[1]=(AA==V)?0:G[P];}if(AD[0]!==null){y(G,j,AD[0]-AC[0]+AB[0]+"px");}if(AD[1]!==null){y(G,o,AD[1]-AC[1]+AB[1]+"px");}if(!Y){x=E.Dom._getXY(G);if((AD[0]!==null&&x[0]!=AD[0])||(AD[1]!==null&&x[1]!=AD[1])){E.Dom._setXY(G,{pos:AD,noRetry:true});}}},setX:function(Y,G){E.Dom.setXY(Y,[G,null]);},setY:function(G,Y){E.Dom.setXY(G,[null,Y]);},getRegion:function(G){var Y=function(x){var y=false;if(E.Dom._canPosition(x)){y=E.Region.getRegion(x);}else{}return y;};return E.Dom.batch(G,Y,E.Dom,true);},getClientWidth:function(){return E.Dom.getViewportWidth();},getClientHeight:function(){return E.Dom.getViewportHeight();},getElementsByClassName:function(AB,AF,AC,AE,x,AD){AF=AF||"*";AC=(AC)?E.Dom.get(AC):null||K;if(!AC){return[];}var Y=[],G=AC.getElementsByTagName(AF),z=E.Dom.hasClass;for(var y=0,AA=G.length;y<AA;++y){if(z(G[y],AB)){Y[Y.length]=G[y];}}if(AE){E.Dom.batch(Y,AE,x,AD);}return Y;},hasClass:function(Y,G){return E.Dom.batch(Y,E.Dom._hasClass,G);},_hasClass:function(x,Y){var G=false,y;if(x&&Y){y=E.Dom._getAttribute(x,F)||J;if(Y.exec){G=Y.test(y);}else{G=Y&&(B+y+B).indexOf(B+Y+B)>-1;}}else{}return G;},addClass:function(Y,G){return E.Dom.batch(Y,E.Dom._addClass,G);},_addClass:function(x,Y){var G=false,y;if(x&&Y){y=E.Dom._getAttribute(x,F)||J;if(!E.Dom._hasClass(x,Y)){E.Dom.setAttribute(x,F,A(y+B+Y));G=true;}}else{}return G;},removeClass:function(Y,G){return E.Dom.batch(Y,E.Dom._removeClass,G);},_removeClass:function(y,x){var Y=false,AA,z,G;if(y&&x){AA=E.Dom._getAttribute(y,F)||J;E.Dom.setAttribute(y,F,AA.replace(E.Dom._getClassRegex(x),J));z=E.Dom._getAttribute(y,F);if(AA!==z){E.Dom.setAttribute(y,F,A(z));Y=true;if(E.Dom._getAttribute(y,F)===""){G=(y.hasAttribute&&y.hasAttribute(g))?g:F;
-y.removeAttribute(G);}}}else{}return Y;},replaceClass:function(x,Y,G){return E.Dom.batch(x,E.Dom._replaceClass,{from:Y,to:G});},_replaceClass:function(y,x){var Y,AB,AA,G=false,z;if(y&&x){AB=x.from;AA=x.to;if(!AA){G=false;}else{if(!AB){G=E.Dom._addClass(y,x.to);}else{if(AB!==AA){z=E.Dom._getAttribute(y,F)||J;Y=(B+z.replace(E.Dom._getClassRegex(AB),B+AA)).split(E.Dom._getClassRegex(AA));Y.splice(1,0,B+AA);E.Dom.setAttribute(y,F,A(Y.join(J)));G=true;}}}}else{}return G;},generateId:function(G,x){x=x||"yui-gen";var Y=function(y){if(y&&y.id){return y.id;}var z=x+YAHOO.env._id_counter++;if(y){if(y[e]&&y[e].getElementById(z)){return E.Dom.generateId(y,z+x);}y.id=z;}return z;};return E.Dom.batch(G,Y,E.Dom,true)||Y.apply(E.Dom,arguments);},isAncestor:function(Y,x){Y=E.Dom.get(Y);x=E.Dom.get(x);var G=false;if((Y&&x)&&(Y[l]&&x[l])){if(Y.contains&&Y!==x){G=Y.contains(x);}else{if(Y.compareDocumentPosition){G=!!(Y.compareDocumentPosition(x)&16);}}}else{}return G;},inDocument:function(G,Y){return E.Dom._inDoc(E.Dom.get(G),Y);},_inDoc:function(Y,x){var G=false;if(Y&&Y[C]){x=x||Y[e];G=E.Dom.isAncestor(x[v],Y);}else{}return G;},getElementsBy:function(Y,AF,AB,AD,y,AC,AE){AF=AF||"*";AB=(AB)?E.Dom.get(AB):null||K;if(!AB){return[];}var x=[],G=AB.getElementsByTagName(AF);for(var z=0,AA=G.length;z<AA;++z){if(Y(G[z])){if(AE){x=G[z];break;}else{x[x.length]=G[z];}}}if(AD){E.Dom.batch(x,AD,y,AC);}return x;},getElementBy:function(x,G,Y){return E.Dom.getElementsBy(x,G,Y,null,null,null,true);},batch:function(x,AB,AA,z){var y=[],Y=(z)?AA:window;x=(x&&(x[C]||x.item))?x:E.Dom.get(x);if(x&&AB){if(x[C]||x.length===undefined){return AB.call(Y,x,AA);}for(var G=0;G<x.length;++G){y[y.length]=AB.call(Y,x[G],AA);}}else{return false;}return y;},getDocumentHeight:function(){var Y=(K[t]!=M||I)?K.body.scrollHeight:W.scrollHeight,G=Math.max(Y,E.Dom.getViewportHeight());return G;},getDocumentWidth:function(){var Y=(K[t]!=M||I)?K.body.scrollWidth:W.scrollWidth,G=Math.max(Y,E.Dom.getViewportWidth());return G;},getViewportHeight:function(){var G=self.innerHeight,Y=K[t];if((Y||T)&&!D){G=(Y==M)?W.clientHeight:K.body.clientHeight;}return G;},getViewportWidth:function(){var G=self.innerWidth,Y=K[t];if(Y||T){G=(Y==M)?W.clientWidth:K.body.clientWidth;}return G;},getAncestorBy:function(G,Y){while((G=G[Z])){if(E.Dom._testElement(G,Y)){return G;}}return null;},getAncestorByClassName:function(Y,G){Y=E.Dom.get(Y);if(!Y){return null;}var x=function(y){return E.Dom.hasClass(y,G);};return E.Dom.getAncestorBy(Y,x);},getAncestorByTagName:function(Y,G){Y=E.Dom.get(Y);if(!Y){return null;}var x=function(y){return y[C]&&y[C].toUpperCase()==G.toUpperCase();};return E.Dom.getAncestorBy(Y,x);},getPreviousSiblingBy:function(G,Y){while(G){G=G.previousSibling;if(E.Dom._testElement(G,Y)){return G;}}return null;},getPreviousSibling:function(G){G=E.Dom.get(G);if(!G){return null;}return E.Dom.getPreviousSiblingBy(G);},getNextSiblingBy:function(G,Y){while(G){G=G.nextSibling;if(E.Dom._testElement(G,Y)){return G;}}return null;},getNextSibling:function(G){G=E.Dom.get(G);if(!G){return null;}return E.Dom.getNextSiblingBy(G);},getFirstChildBy:function(G,x){var Y=(E.Dom._testElement(G.firstChild,x))?G.firstChild:null;return Y||E.Dom.getNextSiblingBy(G.firstChild,x);},getFirstChild:function(G,Y){G=E.Dom.get(G);if(!G){return null;}return E.Dom.getFirstChildBy(G);},getLastChildBy:function(G,x){if(!G){return null;}var Y=(E.Dom._testElement(G.lastChild,x))?G.lastChild:null;return Y||E.Dom.getPreviousSiblingBy(G.lastChild,x);},getLastChild:function(G){G=E.Dom.get(G);return E.Dom.getLastChildBy(G);},getChildrenBy:function(Y,y){var x=E.Dom.getFirstChildBy(Y,y),G=x?[x]:[];E.Dom.getNextSiblingBy(x,function(z){if(!y||y(z)){G[G.length]=z;}return false;});return G;},getChildren:function(G){G=E.Dom.get(G);if(!G){}return E.Dom.getChildrenBy(G);},getDocumentScrollLeft:function(G){G=G||K;return Math.max(G[v].scrollLeft,G.body.scrollLeft);},getDocumentScrollTop:function(G){G=G||K;return Math.max(G[v].scrollTop,G.body.scrollTop);},insertBefore:function(Y,G){Y=E.Dom.get(Y);G=E.Dom.get(G);if(!Y||!G||!G[Z]){return null;}return G[Z].insertBefore(Y,G);},insertAfter:function(Y,G){Y=E.Dom.get(Y);G=E.Dom.get(G);if(!Y||!G||!G[Z]){return null;}if(G.nextSibling){return G[Z].insertBefore(Y,G.nextSibling);}else{return G[Z].appendChild(Y);}},getClientRegion:function(){var x=E.Dom.getDocumentScrollTop(),Y=E.Dom.getDocumentScrollLeft(),y=E.Dom.getViewportWidth()+Y,G=E.Dom.getViewportHeight()+x;return new E.Region(x,y,G,Y);},setAttribute:function(Y,G,x){E.Dom.batch(Y,E.Dom._setAttribute,{attr:G,val:x});},_setAttribute:function(x,Y){var G=E.Dom._toCamel(Y.attr),y=Y.val;if(x&&x.setAttribute){if(E.Dom.DOT_ATTRIBUTES[G]){x[G]=y;}else{G=E.Dom.CUSTOM_ATTRIBUTES[G]||G;x.setAttribute(G,y);}}else{}},getAttribute:function(Y,G){return E.Dom.batch(Y,E.Dom._getAttribute,G);},_getAttribute:function(Y,G){var x;G=E.Dom.CUSTOM_ATTRIBUTES[G]||G;if(Y&&Y.getAttribute){x=Y.getAttribute(G,2);}else{}return x;},_toCamel:function(Y){var x=d;function G(y,z){return z.toUpperCase();}return x[Y]||(x[Y]=Y.indexOf("-")===-1?Y:Y.replace(/-([a-z])/gi,G));},_getClassRegex:function(Y){var G;if(Y!==undefined){if(Y.exec){G=Y;}else{G=h[Y];if(!G){Y=Y.replace(E.Dom._patterns.CLASS_RE_TOKENS,"\\$1");G=h[Y]=new RegExp(s+Y+k,U);}}}return G;},_patterns:{ROOT_TAG:/^body|html$/i,CLASS_RE_TOKENS:/([\.\(\)\^\$\*\+\?\|\[\]\{\}\\])/g},_testElement:function(G,Y){return G&&G[l]==1&&(!Y||Y(G));},_calcBorders:function(x,y){var Y=parseInt(E.Dom[w](x,R),10)||0,G=parseInt(E.Dom[w](x,q),10)||0;if(H){if(N.test(x[C])){Y=0;G=0;}}y[0]+=G;y[1]+=Y;return y;}};var S=E.Dom[w];if(m.opera){E.Dom[w]=function(Y,G){var x=S(Y,G);if(X.test(G)){x=E.Dom.Color.toRGB(x);}return x;};}if(m.webkit){E.Dom[w]=function(Y,G){var x=S(Y,G);if(x==="rgba(0, 0, 0, 0)"){x="transparent";}return x;};}if(m.ie&&m.ie>=8&&K.documentElement.hasAttribute){E.Dom.DOT_ATTRIBUTES.type=true;}})();YAHOO.util.Region=function(C,D,A,B){this.top=C;this.y=C;this[1]=C;this.right=D;this.bottom=A;this.left=B;this.x=B;this[0]=B;
-this.width=this.right-this.left;this.height=this.bottom-this.top;};YAHOO.util.Region.prototype.contains=function(A){return(A.left>=this.left&&A.right<=this.right&&A.top>=this.top&&A.bottom<=this.bottom);};YAHOO.util.Region.prototype.getArea=function(){return((this.bottom-this.top)*(this.right-this.left));};YAHOO.util.Region.prototype.intersect=function(E){var C=Math.max(this.top,E.top),D=Math.min(this.right,E.right),A=Math.min(this.bottom,E.bottom),B=Math.max(this.left,E.left);if(A>=C&&D>=B){return new YAHOO.util.Region(C,D,A,B);}else{return null;}};YAHOO.util.Region.prototype.union=function(E){var C=Math.min(this.top,E.top),D=Math.max(this.right,E.right),A=Math.max(this.bottom,E.bottom),B=Math.min(this.left,E.left);return new YAHOO.util.Region(C,D,A,B);};YAHOO.util.Region.prototype.toString=function(){return("Region {"+"top: "+this.top+", right: "+this.right+", bottom: "+this.bottom+", left: "+this.left+", height: "+this.height+", width: "+this.width+"}");};YAHOO.util.Region.getRegion=function(D){var F=YAHOO.util.Dom.getXY(D),C=F[1],E=F[0]+D.offsetWidth,A=F[1]+D.offsetHeight,B=F[0];return new YAHOO.util.Region(C,E,A,B);};YAHOO.util.Point=function(A,B){if(YAHOO.lang.isArray(A)){B=A[1];A=A[0];}YAHOO.util.Point.superclass.constructor.call(this,B,A,B,A);};YAHOO.extend(YAHOO.util.Point,YAHOO.util.Region);(function(){var B=YAHOO.util,A="clientTop",F="clientLeft",J="parentNode",K="right",W="hasLayout",I="px",U="opacity",L="auto",D="borderLeftWidth",G="borderTopWidth",P="borderRightWidth",V="borderBottomWidth",S="visible",Q="transparent",N="height",E="width",H="style",T="currentStyle",R=/^width|height$/,O=/^(\d[.\d]*)+(em|ex|px|gd|rem|vw|vh|vm|ch|mm|cm|in|pt|pc|deg|rad|ms|s|hz|khz|%){1}?/i,M={get:function(X,Z){var Y="",a=X[T][Z];if(Z===U){Y=B.Dom.getStyle(X,U);}else{if(!a||(a.indexOf&&a.indexOf(I)>-1)){Y=a;}else{if(B.Dom.IE_COMPUTED[Z]){Y=B.Dom.IE_COMPUTED[Z](X,Z);}else{if(O.test(a)){Y=B.Dom.IE.ComputedStyle.getPixel(X,Z);}else{Y=a;}}}}return Y;},getOffset:function(Z,e){var b=Z[T][e],X=e.charAt(0).toUpperCase()+e.substr(1),c="offset"+X,Y="pixel"+X,a="",d;if(b==L){d=Z[c];if(d===undefined){a=0;}a=d;if(R.test(e)){Z[H][e]=d;if(Z[c]>d){a=d-(Z[c]-d);}Z[H][e]=L;}}else{if(!Z[H][Y]&&!Z[H][e]){Z[H][e]=b;}a=Z[H][Y];}return a+I;},getBorderWidth:function(X,Z){var Y=null;if(!X[T][W]){X[H].zoom=1;}switch(Z){case G:Y=X[A];break;case V:Y=X.offsetHeight-X.clientHeight-X[A];break;case D:Y=X[F];break;case P:Y=X.offsetWidth-X.clientWidth-X[F];break;}return Y+I;},getPixel:function(Y,X){var a=null,b=Y[T][K],Z=Y[T][X];Y[H][K]=Z;a=Y[H].pixelRight;Y[H][K]=b;return a+I;},getMargin:function(Y,X){var Z;if(Y[T][X]==L){Z=0+I;}else{Z=B.Dom.IE.ComputedStyle.getPixel(Y,X);}return Z;},getVisibility:function(Y,X){var Z;while((Z=Y[T])&&Z[X]=="inherit"){Y=Y[J];}return(Z)?Z[X]:S;},getColor:function(Y,X){return B.Dom.Color.toRGB(Y[T][X])||Q;},getBorderColor:function(Y,X){var Z=Y[T],a=Z[X]||Z.color;return B.Dom.Color.toRGB(B.Dom.Color.toHex(a));}},C={};C.top=C.right=C.bottom=C.left=C[E]=C[N]=M.getOffset;C.color=M.getColor;C[G]=C[P]=C[V]=C[D]=M.getBorderWidth;C.marginTop=C.marginRight=C.marginBottom=C.marginLeft=M.getMargin;C.visibility=M.getVisibility;C.borderColor=C.borderTopColor=C.borderRightColor=C.borderBottomColor=C.borderLeftColor=M.getBorderColor;B.Dom.IE_COMPUTED=C;B.Dom.IE_ComputedStyle=M;})();(function(){var C="toString",A=parseInt,B=RegExp,D=YAHOO.util;D.Dom.Color={KEYWORDS:{black:"000",silver:"c0c0c0",gray:"808080",white:"fff",maroon:"800000",red:"f00",purple:"800080",fuchsia:"f0f",green:"008000",lime:"0f0",olive:"808000",yellow:"ff0",navy:"000080",blue:"00f",teal:"008080",aqua:"0ff"},re_RGB:/^rgb\(([0-9]+)\s*,\s*([0-9]+)\s*,\s*([0-9]+)\)$/i,re_hex:/^#?([0-9A-F]{2})([0-9A-F]{2})([0-9A-F]{2})$/i,re_hex3:/([0-9A-F])/gi,toRGB:function(E){if(!D.Dom.Color.re_RGB.test(E)){E=D.Dom.Color.toHex(E);}if(D.Dom.Color.re_hex.exec(E)){E="rgb("+[A(B.$1,16),A(B.$2,16),A(B.$3,16)].join(", ")+")";}return E;},toHex:function(H){H=D.Dom.Color.KEYWORDS[H]||H;if(D.Dom.Color.re_RGB.exec(H)){var G=(B.$1.length===1)?"0"+B.$1:Number(B.$1),F=(B.$2.length===1)?"0"+B.$2:Number(B.$2),E=(B.$3.length===1)?"0"+B.$3:Number(B.$3);H=[G[C](16),F[C](16),E[C](16)].join("");}if(H.length<6){H=H.replace(D.Dom.Color.re_hex3,"$1$1");}if(H!=="transparent"&&H.indexOf("#")<0){H="#"+H;}return H.toLowerCase();}};}());YAHOO.register("dom",YAHOO.util.Dom,{version:"2.8.0r4",build:"2449"});YAHOO.util.CustomEvent=function(D,C,B,A,E){this.type=D;this.scope=C||window;this.silent=B;this.fireOnce=E;this.fired=false;this.firedWith=null;this.signature=A||YAHOO.util.CustomEvent.LIST;this.subscribers=[];if(!this.silent){}var F="_YUICEOnSubscribe";if(D!==F){this.subscribeEvent=new YAHOO.util.CustomEvent(F,this,true);}this.lastError=null;};YAHOO.util.CustomEvent.LIST=0;YAHOO.util.CustomEvent.FLAT=1;YAHOO.util.CustomEvent.prototype={subscribe:function(B,C,D){if(!B){throw new Error("Invalid callback for subscriber to '"+this.type+"'");}if(this.subscribeEvent){this.subscribeEvent.fire(B,C,D);}var A=new YAHOO.util.Subscriber(B,C,D);if(this.fireOnce&&this.fired){this.notify(A,this.firedWith);}else{this.subscribers.push(A);}},unsubscribe:function(D,F){if(!D){return this.unsubscribeAll();}var E=false;for(var B=0,A=this.subscribers.length;B<A;++B){var C=this.subscribers[B];if(C&&C.contains(D,F)){this._delete(B);E=true;}}return E;},fire:function(){this.lastError=null;var H=[],A=this.subscribers.length;var D=[].slice.call(arguments,0),C=true,F,B=false;if(this.fireOnce){if(this.fired){return true;}else{this.firedWith=D;}}this.fired=true;if(!A&&this.silent){return true;}if(!this.silent){}var E=this.subscribers.slice();for(F=0;F<A;++F){var G=E[F];if(!G){B=true;}else{C=this.notify(G,D);if(false===C){if(!this.silent){}break;}}}return(C!==false);},notify:function(F,C){var B,H=null,E=F.getScope(this.scope),A=YAHOO.util.Event.throwErrors;if(!this.silent){}if(this.signature==YAHOO.util.CustomEvent.FLAT){if(C.length>0){H=C[0];}try{B=F.fn.call(E,H,F.obj);}catch(G){this.lastError=G;if(A){throw G;}}}else{try{B=F.fn.call(E,this.type,C,F.obj);}catch(D){this.lastError=D;if(A){throw D;}}}return B;},unsubscribeAll:function(){var A=this.subscribers.length,B;for(B=A-1;B>-1;B--){this._delete(B);}this.subscribers=[];return A;},_delete:function(A){var B=this.subscribers[A];if(B){delete B.fn;delete B.obj;}this.subscribers.splice(A,1);},toString:function(){return"CustomEvent: "+"'"+this.type+"', "+"context: "+this.scope;}};YAHOO.util.Subscriber=function(A,B,C){this.fn=A;this.obj=YAHOO.lang.isUndefined(B)?null:B;this.overrideContext=C;};YAHOO.util.Subscriber.prototype.getScope=function(A){if(this.overrideContext){if(this.overrideContext===true){return this.obj;}else{return this.overrideContext;}}return A;};YAHOO.util.Subscriber.prototype.contains=function(A,B){if(B){return(this.fn==A&&this.obj==B);}else{return(this.fn==A);}};YAHOO.util.Subscriber.prototype.toString=function(){return"Subscriber { obj: "+this.obj+", overrideContext: "+(this.overrideContext||"no")+" }";};if(!YAHOO.util.Event){YAHOO.util.Event=function(){var G=false,H=[],J=[],A=0,E=[],B=0,C={63232:38,63233:40,63234:37,63235:39,63276:33,63277:34,25:9},D=YAHOO.env.ua.ie,F="focusin",I="focusout";return{POLL_RETRYS:500,POLL_INTERVAL:40,EL:0,TYPE:1,FN:2,WFN:3,UNLOAD_OBJ:3,ADJ_SCOPE:4,OBJ:5,OVERRIDE:6,CAPTURE:7,lastError:null,isSafari:YAHOO.env.ua.webkit,webkit:YAHOO.env.ua.webkit,isIE:D,_interval:null,_dri:null,_specialTypes:{focusin:(D?"focusin":"focus"),focusout:(D?"focusout":"blur")},DOMReady:false,throwErrors:false,startInterval:function(){if(!this._interval){this._interval=YAHOO.lang.later(this.POLL_INTERVAL,this,this._tryPreloadAttach,null,true);}},onAvailable:function(Q,M,O,P,N){var K=(YAHOO.lang.isString(Q))?[Q]:Q;for(var L=0;L<K.length;L=L+1){E.push({id:K[L],fn:M,obj:O,overrideContext:P,checkReady:N});}A=this.POLL_RETRYS;this.startInterval();},onContentReady:function(N,K,L,M){this.onAvailable(N,K,L,M,true);},onDOMReady:function(){this.DOMReadyEvent.subscribe.apply(this.DOMReadyEvent,arguments);},_addListener:function(M,K,V,P,T,Y){if(!V||!V.call){return false;}if(this._isValidCollection(M)){var W=true;for(var Q=0,S=M.length;Q<S;++Q){W=this.on(M[Q],K,V,P,T)&&W;}return W;}else{if(YAHOO.lang.isString(M)){var O=this.getEl(M);if(O){M=O;}else{this.onAvailable(M,function(){YAHOO.util.Event._addListener(M,K,V,P,T,Y);});return true;}}}if(!M){return false;}if("unload"==K&&P!==this){J[J.length]=[M,K,V,P,T];return true;}var L=M;if(T){if(T===true){L=P;}else{L=T;}}var N=function(Z){return V.call(L,YAHOO.util.Event.getEvent(Z,M),P);};var X=[M,K,V,N,L,P,T,Y];var R=H.length;H[R]=X;try{this._simpleAdd(M,K,N,Y);}catch(U){this.lastError=U;this.removeListener(M,K,V);return false;}return true;},_getType:function(K){return this._specialTypes[K]||K;},addListener:function(M,P,L,N,O){var K=((P==F||P==I)&&!YAHOO.env.ua.ie)?true:false;return this._addListener(M,this._getType(P),L,N,O,K);},addFocusListener:function(L,K,M,N){return this.on(L,F,K,M,N);},removeFocusListener:function(L,K){return this.removeListener(L,F,K);},addBlurListener:function(L,K,M,N){return this.on(L,I,K,M,N);},removeBlurListener:function(L,K){return this.removeListener(L,I,K);},removeListener:function(L,K,R){var M,P,U;K=this._getType(K);if(typeof L=="string"){L=this.getEl(L);}else{if(this._isValidCollection(L)){var S=true;for(M=L.length-1;M>-1;M--){S=(this.removeListener(L[M],K,R)&&S);}return S;}}if(!R||!R.call){return this.purgeElement(L,false,K);}if("unload"==K){for(M=J.length-1;M>-1;M--){U=J[M];if(U&&U[0]==L&&U[1]==K&&U[2]==R){J.splice(M,1);return true;}}return false;}var N=null;var O=arguments[3];if("undefined"===typeof O){O=this._getCacheIndex(H,L,K,R);}if(O>=0){N=H[O];}if(!L||!N){return false;}var T=N[this.CAPTURE]===true?true:false;try{this._simpleRemove(L,K,N[this.WFN],T);}catch(Q){this.lastError=Q;return false;}delete H[O][this.WFN];delete H[O][this.FN];H.splice(O,1);return true;},getTarget:function(M,L){var K=M.target||M.srcElement;return this.resolveTextNode(K);},resolveTextNode:function(L){try{if(L&&3==L.nodeType){return L.parentNode;}}catch(K){}return L;},getPageX:function(L){var K=L.pageX;if(!K&&0!==K){K=L.clientX||0;if(this.isIE){K+=this._getScrollLeft();}}return K;},getPageY:function(K){var L=K.pageY;if(!L&&0!==L){L=K.clientY||0;if(this.isIE){L+=this._getScrollTop();}}return L;},getXY:function(K){return[this.getPageX(K),this.getPageY(K)];},getRelatedTarget:function(L){var K=L.relatedTarget;if(!K){if(L.type=="mouseout"){K=L.toElement;
-}else{if(L.type=="mouseover"){K=L.fromElement;}}}return this.resolveTextNode(K);},getTime:function(M){if(!M.time){var L=new Date().getTime();try{M.time=L;}catch(K){this.lastError=K;return L;}}return M.time;},stopEvent:function(K){this.stopPropagation(K);this.preventDefault(K);},stopPropagation:function(K){if(K.stopPropagation){K.stopPropagation();}else{K.cancelBubble=true;}},preventDefault:function(K){if(K.preventDefault){K.preventDefault();}else{K.returnValue=false;}},getEvent:function(M,K){var L=M||window.event;if(!L){var N=this.getEvent.caller;while(N){L=N.arguments[0];if(L&&Event==L.constructor){break;}N=N.caller;}}return L;},getCharCode:function(L){var K=L.keyCode||L.charCode||0;if(YAHOO.env.ua.webkit&&(K in C)){K=C[K];}return K;},_getCacheIndex:function(M,P,Q,O){for(var N=0,L=M.length;N<L;N=N+1){var K=M[N];if(K&&K[this.FN]==O&&K[this.EL]==P&&K[this.TYPE]==Q){return N;}}return -1;},generateId:function(K){var L=K.id;if(!L){L="yuievtautoid-"+B;++B;K.id=L;}return L;},_isValidCollection:function(L){try{return(L&&typeof L!=="string"&&L.length&&!L.tagName&&!L.alert&&typeof L[0]!=="undefined");}catch(K){return false;}},elCache:{},getEl:function(K){return(typeof K==="string")?document.getElementById(K):K;},clearCache:function(){},DOMReadyEvent:new YAHOO.util.CustomEvent("DOMReady",YAHOO,0,0,1),_load:function(L){if(!G){G=true;var K=YAHOO.util.Event;K._ready();K._tryPreloadAttach();}},_ready:function(L){var K=YAHOO.util.Event;if(!K.DOMReady){K.DOMReady=true;K.DOMReadyEvent.fire();K._simpleRemove(document,"DOMContentLoaded",K._ready);}},_tryPreloadAttach:function(){if(E.length===0){A=0;if(this._interval){this._interval.cancel();this._interval=null;}return;}if(this.locked){return;}if(this.isIE){if(!this.DOMReady){this.startInterval();return;}}this.locked=true;var Q=!G;if(!Q){Q=(A>0&&E.length>0);}var P=[];var R=function(T,U){var S=T;if(U.overrideContext){if(U.overrideContext===true){S=U.obj;}else{S=U.overrideContext;}}U.fn.call(S,U.obj);};var L,K,O,N,M=[];for(L=0,K=E.length;L<K;L=L+1){O=E[L];if(O){N=this.getEl(O.id);if(N){if(O.checkReady){if(G||N.nextSibling||!Q){M.push(O);E[L]=null;}}else{R(N,O);E[L]=null;}}else{P.push(O);}}}for(L=0,K=M.length;L<K;L=L+1){O=M[L];R(this.getEl(O.id),O);}A--;if(Q){for(L=E.length-1;L>-1;L--){O=E[L];if(!O||!O.id){E.splice(L,1);}}this.startInterval();}else{if(this._interval){this._interval.cancel();this._interval=null;}}this.locked=false;},purgeElement:function(O,P,R){var M=(YAHOO.lang.isString(O))?this.getEl(O):O;var Q=this.getListeners(M,R),N,K;if(Q){for(N=Q.length-1;N>-1;N--){var L=Q[N];this.removeListener(M,L.type,L.fn);}}if(P&&M&&M.childNodes){for(N=0,K=M.childNodes.length;N<K;++N){this.purgeElement(M.childNodes[N],P,R);}}},getListeners:function(M,K){var P=[],L;if(!K){L=[H,J];}else{if(K==="unload"){L=[J];}else{K=this._getType(K);L=[H];}}var R=(YAHOO.lang.isString(M))?this.getEl(M):M;for(var O=0;O<L.length;O=O+1){var T=L[O];if(T){for(var Q=0,S=T.length;Q<S;++Q){var N=T[Q];if(N&&N[this.EL]===R&&(!K||K===N[this.TYPE])){P.push({type:N[this.TYPE],fn:N[this.FN],obj:N[this.OBJ],adjust:N[this.OVERRIDE],scope:N[this.ADJ_SCOPE],index:Q});}}}}return(P.length)?P:null;},_unload:function(R){var L=YAHOO.util.Event,O,N,M,Q,P,S=J.slice(),K;for(O=0,Q=J.length;O<Q;++O){M=S[O];if(M){K=window;if(M[L.ADJ_SCOPE]){if(M[L.ADJ_SCOPE]===true){K=M[L.UNLOAD_OBJ];}else{K=M[L.ADJ_SCOPE];}}M[L.FN].call(K,L.getEvent(R,M[L.EL]),M[L.UNLOAD_OBJ]);S[O]=null;}}M=null;K=null;J=null;if(H){for(N=H.length-1;N>-1;N--){M=H[N];if(M){L.removeListener(M[L.EL],M[L.TYPE],M[L.FN],N);}}M=null;}L._simpleRemove(window,"unload",L._unload);},_getScrollLeft:function(){return this._getScroll()[1];},_getScrollTop:function(){return this._getScroll()[0];},_getScroll:function(){var K=document.documentElement,L=document.body;if(K&&(K.scrollTop||K.scrollLeft)){return[K.scrollTop,K.scrollLeft];}else{if(L){return[L.scrollTop,L.scrollLeft];}else{return[0,0];}}},regCE:function(){},_simpleAdd:function(){if(window.addEventListener){return function(M,N,L,K){M.addEventListener(N,L,(K));};}else{if(window.attachEvent){return function(M,N,L,K){M.attachEvent("on"+N,L);};}else{return function(){};}}}(),_simpleRemove:function(){if(window.removeEventListener){return function(M,N,L,K){M.removeEventListener(N,L,(K));};}else{if(window.detachEvent){return function(L,M,K){L.detachEvent("on"+M,K);};}else{return function(){};}}}()};}();(function(){var EU=YAHOO.util.Event;EU.on=EU.addListener;EU.onFocus=EU.addFocusListener;EU.onBlur=EU.addBlurListener;
-/* DOMReady: based on work by: Dean Edwards/John Resig/Matthias Miller/Diego Perini */
-if(EU.isIE){if(self!==self.top){document.onreadystatechange=function(){if(document.readyState=="complete"){document.onreadystatechange=null;EU._ready();}};}else{YAHOO.util.Event.onDOMReady(YAHOO.util.Event._tryPreloadAttach,YAHOO.util.Event,true);var n=document.createElement("p");EU._dri=setInterval(function(){try{n.doScroll("left");clearInterval(EU._dri);EU._dri=null;EU._ready();n=null;}catch(ex){}},EU.POLL_INTERVAL);}}else{if(EU.webkit&&EU.webkit<525){EU._dri=setInterval(function(){var rs=document.readyState;if("loaded"==rs||"complete"==rs){clearInterval(EU._dri);EU._dri=null;EU._ready();}},EU.POLL_INTERVAL);}else{EU._simpleAdd(document,"DOMContentLoaded",EU._ready);}}EU._simpleAdd(window,"load",EU._load);EU._simpleAdd(window,"unload",EU._unload);EU._tryPreloadAttach();})();}YAHOO.util.EventProvider=function(){};YAHOO.util.EventProvider.prototype={__yui_events:null,__yui_subscribers:null,subscribe:function(A,C,F,E){this.__yui_events=this.__yui_events||{};var D=this.__yui_events[A];if(D){D.subscribe(C,F,E);}else{this.__yui_subscribers=this.__yui_subscribers||{};var B=this.__yui_subscribers;if(!B[A]){B[A]=[];}B[A].push({fn:C,obj:F,overrideContext:E});}},unsubscribe:function(C,E,G){this.__yui_events=this.__yui_events||{};var A=this.__yui_events;if(C){var F=A[C];if(F){return F.unsubscribe(E,G);}}else{var B=true;for(var D in A){if(YAHOO.lang.hasOwnProperty(A,D)){B=B&&A[D].unsubscribe(E,G);}}return B;}return false;},unsubscribeAll:function(A){return this.unsubscribe(A);
-},createEvent:function(B,G){this.__yui_events=this.__yui_events||{};var E=G||{},D=this.__yui_events,F;if(D[B]){}else{F=new YAHOO.util.CustomEvent(B,E.scope||this,E.silent,YAHOO.util.CustomEvent.FLAT,E.fireOnce);D[B]=F;if(E.onSubscribeCallback){F.subscribeEvent.subscribe(E.onSubscribeCallback);}this.__yui_subscribers=this.__yui_subscribers||{};var A=this.__yui_subscribers[B];if(A){for(var C=0;C<A.length;++C){F.subscribe(A[C].fn,A[C].obj,A[C].overrideContext);}}}return D[B];},fireEvent:function(B){this.__yui_events=this.__yui_events||{};var D=this.__yui_events[B];if(!D){return null;}var A=[];for(var C=1;C<arguments.length;++C){A.push(arguments[C]);}return D.fire.apply(D,A);},hasEvent:function(A){if(this.__yui_events){if(this.__yui_events[A]){return true;}}return false;}};(function(){var A=YAHOO.util.Event,C=YAHOO.lang;YAHOO.util.KeyListener=function(D,I,E,F){if(!D){}else{if(!I){}else{if(!E){}}}if(!F){F=YAHOO.util.KeyListener.KEYDOWN;}var G=new YAHOO.util.CustomEvent("keyPressed");this.enabledEvent=new YAHOO.util.CustomEvent("enabled");this.disabledEvent=new YAHOO.util.CustomEvent("disabled");if(C.isString(D)){D=document.getElementById(D);}if(C.isFunction(E)){G.subscribe(E);}else{G.subscribe(E.fn,E.scope,E.correctScope);}function H(O,N){if(!I.shift){I.shift=false;}if(!I.alt){I.alt=false;}if(!I.ctrl){I.ctrl=false;}if(O.shiftKey==I.shift&&O.altKey==I.alt&&O.ctrlKey==I.ctrl){var J,M=I.keys,L;if(YAHOO.lang.isArray(M)){for(var K=0;K<M.length;K++){J=M[K];L=A.getCharCode(O);if(J==L){G.fire(L,O);break;}}}else{L=A.getCharCode(O);if(M==L){G.fire(L,O);}}}}this.enable=function(){if(!this.enabled){A.on(D,F,H);this.enabledEvent.fire(I);}this.enabled=true;};this.disable=function(){if(this.enabled){A.removeListener(D,F,H);this.disabledEvent.fire(I);}this.enabled=false;};this.toString=function(){return"KeyListener ["+I.keys+"] "+D.tagName+(D.id?"["+D.id+"]":"");};};var B=YAHOO.util.KeyListener;B.KEYDOWN="keydown";B.KEYUP="keyup";B.KEY={ALT:18,BACK_SPACE:8,CAPS_LOCK:20,CONTROL:17,DELETE:46,DOWN:40,END:35,ENTER:13,ESCAPE:27,HOME:36,LEFT:37,META:224,NUM_LOCK:144,PAGE_DOWN:34,PAGE_UP:33,PAUSE:19,PRINTSCREEN:44,RIGHT:39,SCROLL_LOCK:145,SHIFT:16,SPACE:32,TAB:9,UP:38};})();YAHOO.register("event",YAHOO.util.Event,{version:"2.8.0r4",build:"2449"});YAHOO.register("yuiloader-dom-event", YAHOO, {version: "2.8.0r4", build: "2449"});
diff --git a/koha-tmpl/intranet-tmpl/prog/en/lib/yui/yuiloader/yuiloader-debug.js b/koha-tmpl/intranet-tmpl/prog/en/lib/yui/yuiloader/yuiloader-debug.js
deleted file mode 100644 (file)
index 2672c60..0000000
+++ /dev/null
@@ -1,3879 +0,0 @@
-/*
-Copyright (c) 2009, Yahoo! Inc. All rights reserved.
-Code licensed under the BSD License:
-http://developer.yahoo.net/yui/license.txt
-version: 2.8.0r4
-*/
-/**
- * The YAHOO object is the single global object used by YUI Library.  It
- * contains utility function for setting up namespaces, inheritance, and
- * logging.  YAHOO.util, YAHOO.widget, and YAHOO.example are namespaces
- * created automatically for and used by the library.
- * @module yahoo
- * @title  YAHOO Global
- */
-
-/**
- * YAHOO_config is not included as part of the library.  Instead it is an 
- * object that can be defined by the implementer immediately before 
- * including the YUI library.  The properties included in this object
- * will be used to configure global properties needed as soon as the 
- * library begins to load.
- * @class YAHOO_config
- * @static
- */
-
-/**
- * A reference to a function that will be executed every time a YAHOO module
- * is loaded.  As parameter, this function will receive the version
- * information for the module. See <a href="YAHOO.env.html#getVersion">
- * YAHOO.env.getVersion</a> for the description of the version data structure.
- * @property listener
- * @type Function
- * @static
- * @default undefined
- */
-
-/**
- * Set to true if the library will be dynamically loaded after window.onload.
- * Defaults to false 
- * @property injecting
- * @type boolean
- * @static
- * @default undefined
- */
-
-/**
- * Instructs the yuiloader component to dynamically load yui components and
- * their dependencies.  See the yuiloader documentation for more information
- * about dynamic loading
- * @property load
- * @static
- * @default undefined
- * @see yuiloader
- */
-
-/**
- * Forces the use of the supplied locale where applicable in the library
- * @property locale
- * @type string
- * @static
- * @default undefined
- */
-
-if (typeof YAHOO == "undefined" || !YAHOO) {
-    /**
-     * The YAHOO global namespace object.  If YAHOO is already defined, the
-     * existing YAHOO object will not be overwritten so that defined
-     * namespaces are preserved.
-     * @class YAHOO
-     * @static
-     */
-    var YAHOO = {};
-}
-
-/**
- * Returns the namespace specified and creates it if it doesn't exist
- * <pre>
- * YAHOO.namespace("property.package");
- * YAHOO.namespace("YAHOO.property.package");
- * </pre>
- * Either of the above would create YAHOO.property, then
- * YAHOO.property.package
- *
- * Be careful when naming packages. Reserved words may work in some browsers
- * and not others. For instance, the following will fail in Safari:
- * <pre>
- * YAHOO.namespace("really.long.nested.namespace");
- * </pre>
- * This fails because "long" is a future reserved word in ECMAScript
- *
- * For implementation code that uses YUI, do not create your components
- * in the namespaces defined by YUI (
- * <code>YAHOO.util</code>, 
- * <code>YAHOO.widget</code>, 
- * <code>YAHOO.lang</code>, 
- * <code>YAHOO.tool</code>, 
- * <code>YAHOO.example</code>, 
- * <code>YAHOO.env</code>) -- create your own namespace (e.g., 'companyname').
- *
- * @method namespace
- * @static
- * @param  {String*} arguments 1-n namespaces to create 
- * @return {Object}  A reference to the last namespace object created
- */
-YAHOO.namespace = function() {
-    var a=arguments, o=null, i, j, d;
-    for (i=0; i<a.length; i=i+1) {
-        d=(""+a[i]).split(".");
-        o=YAHOO;
-
-        // YAHOO is implied, so it is ignored if it is included
-        for (j=(d[0] == "YAHOO") ? 1 : 0; j<d.length; j=j+1) {
-            o[d[j]]=o[d[j]] || {};
-            o=o[d[j]];
-        }
-    }
-
-    return o;
-};
-
-/**
- * Uses YAHOO.widget.Logger to output a log message, if the widget is
- * available.
- *
- * @method log
- * @static
- * @param  {String}  msg  The message to log.
- * @param  {String}  cat  The log category for the message.  Default
- *                        categories are "info", "warn", "error", time".
- *                        Custom categories can be used as well. (opt)
- * @param  {String}  src  The source of the message (opt)
- * @return {Boolean}      True if the log operation was successful.
- */
-YAHOO.log = function(msg, cat, src) {
-    var l=YAHOO.widget.Logger;
-    if(l && l.log) {
-        return l.log(msg, cat, src);
-    } else {
-        return false;
-    }
-};
-
-/**
- * Registers a module with the YAHOO object
- * @method register
- * @static
- * @param {String}   name    the name of the module (event, slider, etc)
- * @param {Function} mainClass a reference to class in the module.  This
- *                             class will be tagged with the version info
- *                             so that it will be possible to identify the
- *                             version that is in use when multiple versions
- *                             have loaded
- * @param {Object}   data      metadata object for the module.  Currently it
- *                             is expected to contain a "version" property
- *                             and a "build" property at minimum.
- */
-YAHOO.register = function(name, mainClass, data) {
-    var mods = YAHOO.env.modules, m, v, b, ls, i;
-
-    if (!mods[name]) {
-        mods[name] = { 
-            versions:[], 
-            builds:[] 
-        };
-    }
-
-    m  = mods[name];
-    v  = data.version;
-    b  = data.build;
-    ls = YAHOO.env.listeners;
-
-    m.name = name;
-    m.version = v;
-    m.build = b;
-    m.versions.push(v);
-    m.builds.push(b);
-    m.mainClass = mainClass;
-
-    // fire the module load listeners
-    for (i=0;i<ls.length;i=i+1) {
-        ls[i](m);
-    }
-    // label the main class
-    if (mainClass) {
-        mainClass.VERSION = v;
-        mainClass.BUILD = b;
-    } else {
-        YAHOO.log("mainClass is undefined for module " + name, "warn");
-    }
-};
-
-/**
- * YAHOO.env is used to keep track of what is known about the YUI library and
- * the browsing environment
- * @class YAHOO.env
- * @static
- */
-YAHOO.env = YAHOO.env || {
-
-    /**
-     * Keeps the version info for all YUI modules that have reported themselves
-     * @property modules
-     * @type Object[]
-     */
-    modules: [],
-    
-    /**
-     * List of functions that should be executed every time a YUI module
-     * reports itself.
-     * @property listeners
-     * @type Function[]
-     */
-    listeners: []
-};
-
-/**
- * Returns the version data for the specified module:
- *      <dl>
- *      <dt>name:</dt>      <dd>The name of the module</dd>
- *      <dt>version:</dt>   <dd>The version in use</dd>
- *      <dt>build:</dt>     <dd>The build number in use</dd>
- *      <dt>versions:</dt>  <dd>All versions that were registered</dd>
- *      <dt>builds:</dt>    <dd>All builds that were registered.</dd>
- *      <dt>mainClass:</dt> <dd>An object that was was stamped with the
- *                 current version and build. If 
- *                 mainClass.VERSION != version or mainClass.BUILD != build,
- *                 multiple versions of pieces of the library have been
- *                 loaded, potentially causing issues.</dd>
- *       </dl>
- *
- * @method getVersion
- * @static
- * @param {String}  name the name of the module (event, slider, etc)
- * @return {Object} The version info
- */
-YAHOO.env.getVersion = function(name) {
-    return YAHOO.env.modules[name] || null;
-};
-
-/**
- * Do not fork for a browser if it can be avoided.  Use feature detection when
- * you can.  Use the user agent as a last resort.  YAHOO.env.ua stores a version
- * number for the browser engine, 0 otherwise.  This value may or may not map
- * to the version number of the browser using the engine.  The value is 
- * presented as a float so that it can easily be used for boolean evaluation 
- * as well as for looking for a particular range of versions.  Because of this, 
- * some of the granularity of the version info may be lost (e.g., Gecko 1.8.0.9 
- * reports 1.8).
- * @class YAHOO.env.ua
- * @static
- */
-YAHOO.env.ua = function() {
-
-        var numberfy = function(s) {
-            var c = 0;
-            return parseFloat(s.replace(/\./g, function() {
-                return (c++ == 1) ? '' : '.';
-            }));
-        },
-
-        nav = navigator,
-
-        o = {
-
-        /**
-         * Internet Explorer version number or 0.  Example: 6
-         * @property ie
-         * @type float
-         */
-        ie: 0,
-
-        /**
-         * Opera version number or 0.  Example: 9.2
-         * @property opera
-         * @type float
-         */
-        opera: 0,
-
-        /**
-         * Gecko engine revision number.  Will evaluate to 1 if Gecko 
-         * is detected but the revision could not be found. Other browsers
-         * will be 0.  Example: 1.8
-         * <pre>
-         * Firefox 1.0.0.4: 1.7.8   <-- Reports 1.7
-         * Firefox 1.5.0.9: 1.8.0.9 <-- Reports 1.8
-         * Firefox 2.0.0.3: 1.8.1.3 <-- Reports 1.8
-         * Firefox 3 alpha: 1.9a4   <-- Reports 1.9
-         * </pre>
-         * @property gecko
-         * @type float
-         */
-        gecko: 0,
-
-        /**
-         * AppleWebKit version.  KHTML browsers that are not WebKit browsers 
-         * will evaluate to 1, other browsers 0.  Example: 418.9.1
-         * <pre>
-         * Safari 1.3.2 (312.6): 312.8.1 <-- Reports 312.8 -- currently the 
-         *                                   latest available for Mac OSX 10.3.
-         * Safari 2.0.2:         416     <-- hasOwnProperty introduced
-         * Safari 2.0.4:         418     <-- preventDefault fixed
-         * Safari 2.0.4 (419.3): 418.9.1 <-- One version of Safari may run
-         *                                   different versions of webkit
-         * Safari 2.0.4 (419.3): 419     <-- Tiger installations that have been
-         *                                   updated, but not updated
-         *                                   to the latest patch.
-         * Webkit 212 nightly:   522+    <-- Safari 3.0 precursor (with native SVG
-         *                                   and many major issues fixed).  
-         * 3.x yahoo.com, flickr:422     <-- Safari 3.x hacks the user agent
-         *                                   string when hitting yahoo.com and 
-         *                                   flickr.com.
-         * Safari 3.0.4 (523.12):523.12  <-- First Tiger release - automatic update
-         *                                   from 2.x via the 10.4.11 OS patch
-         * Webkit nightly 1/2008:525+    <-- Supports DOMContentLoaded event.
-         *                                   yahoo.com user agent hack removed.
-         *                                   
-         * </pre>
-         * http://developer.apple.com/internet/safari/uamatrix.html
-         * @property webkit
-         * @type float
-         */
-        webkit: 0,
-
-        /**
-         * The mobile property will be set to a string containing any relevant
-         * user agent information when a modern mobile browser is detected.
-         * Currently limited to Safari on the iPhone/iPod Touch, Nokia N-series
-         * devices with the WebKit-based browser, and Opera Mini.  
-         * @property mobile 
-         * @type string
-         */
-        mobile: null,
-
-        /**
-         * Adobe AIR version number or 0.  Only populated if webkit is detected.
-         * Example: 1.0
-         * @property air
-         * @type float
-         */
-        air: 0,
-
-        /**
-         * Google Caja version number or 0.
-         * @property caja
-         * @type float
-         */
-        caja: nav.cajaVersion,
-
-        /**
-         * Set to true if the page appears to be in SSL
-         * @property secure
-         * @type boolean
-         * @static
-         */
-        secure: false,
-
-        /**
-         * The operating system.  Currently only detecting windows or macintosh
-         * @property os
-         * @type string
-         * @static
-         */
-        os: null
-
-    },
-
-    ua = navigator && navigator.userAgent, 
-    
-    loc = window && window.location,
-
-    href = loc && loc.href,
-    
-    m;
-
-    o.secure = href && (href.toLowerCase().indexOf("https") === 0);
-
-    if (ua) {
-
-        if ((/windows|win32/i).test(ua)) {
-            o.os = 'windows';
-        } else if ((/macintosh/i).test(ua)) {
-            o.os = 'macintosh';
-        }
-    
-        // Modern KHTML browsers should qualify as Safari X-Grade
-        if ((/KHTML/).test(ua)) {
-            o.webkit=1;
-        }
-
-        // Modern WebKit browsers are at least X-Grade
-        m=ua.match(/AppleWebKit\/([^\s]*)/);
-        if (m&&m[1]) {
-            o.webkit=numberfy(m[1]);
-
-            // Mobile browser check
-            if (/ Mobile\//.test(ua)) {
-                o.mobile = "Apple"; // iPhone or iPod Touch
-            } else {
-                m=ua.match(/NokiaN[^\/]*/);
-                if (m) {
-                    o.mobile = m[0]; // Nokia N-series, ex: NokiaN95
-                }
-            }
-
-            m=ua.match(/AdobeAIR\/([^\s]*)/);
-            if (m) {
-                o.air = m[0]; // Adobe AIR 1.0 or better
-            }
-
-        }
-
-        if (!o.webkit) { // not webkit
-            // @todo check Opera/8.01 (J2ME/MIDP; Opera Mini/2.0.4509/1316; fi; U; ssr)
-            m=ua.match(/Opera[\s\/]([^\s]*)/);
-            if (m&&m[1]) {
-                o.opera=numberfy(m[1]);
-                m=ua.match(/Opera Mini[^;]*/);
-                if (m) {
-                    o.mobile = m[0]; // ex: Opera Mini/2.0.4509/1316
-                }
-            } else { // not opera or webkit
-                m=ua.match(/MSIE\s([^;]*)/);
-                if (m&&m[1]) {
-                    o.ie=numberfy(m[1]);
-                } else { // not opera, webkit, or ie
-                    m=ua.match(/Gecko\/([^\s]*)/);
-                    if (m) {
-                        o.gecko=1; // Gecko detected, look for revision
-                        m=ua.match(/rv:([^\s\)]*)/);
-                        if (m&&m[1]) {
-                            o.gecko=numberfy(m[1]);
-                        }
-                    }
-                }
-            }
-        }
-    }
-
-    return o;
-}();
-
-/*
- * Initializes the global by creating the default namespaces and applying
- * any new configuration information that is detected.  This is the setup
- * for env.
- * @method init
- * @static
- * @private
- */
-(function() {
-    YAHOO.namespace("util", "widget", "example");
-    /*global YAHOO_config*/
-    if ("undefined" !== typeof YAHOO_config) {
-        var l=YAHOO_config.listener, ls=YAHOO.env.listeners,unique=true, i;
-        if (l) {
-            // if YAHOO is loaded multiple times we need to check to see if
-            // this is a new config object.  If it is, add the new component
-            // load listener to the stack
-            for (i=0; i<ls.length; i++) {
-                if (ls[i] == l) {
-                    unique = false;
-                    break;
-                }
-            }
-
-            if (unique) {
-                ls.push(l);
-            }
-        }
-    }
-})();
-/**
- * Provides the language utilites and extensions used by the library
- * @class YAHOO.lang
- */
-YAHOO.lang = YAHOO.lang || {};
-
-(function() {
-
-
-var L = YAHOO.lang,
-
-    OP = Object.prototype,
-    ARRAY_TOSTRING = '[object Array]',
-    FUNCTION_TOSTRING = '[object Function]',
-    OBJECT_TOSTRING = '[object Object]',
-    NOTHING = [],
-
-    // ADD = ["toString", "valueOf", "hasOwnProperty"],
-    ADD = ["toString", "valueOf"],
-
-    OB = {
-
-    /**
-     * Determines wheather or not the provided object is an array.
-     * @method isArray
-     * @param {any} o The object being testing
-     * @return {boolean} the result
-     */
-    isArray: function(o) { 
-        return OP.toString.apply(o) === ARRAY_TOSTRING;
-    },
-
-    /**
-     * Determines whether or not the provided object is a boolean
-     * @method isBoolean
-     * @param {any} o The object being testing
-     * @return {boolean} the result
-     */
-    isBoolean: function(o) {
-        return typeof o === 'boolean';
-    },
-    
-    /**
-     * Determines whether or not the provided object is a function.
-     * Note: Internet Explorer thinks certain functions are objects:
-     *
-     * var obj = document.createElement("object");
-     * YAHOO.lang.isFunction(obj.getAttribute) // reports false in IE
-     *
-     * var input = document.createElement("input"); // append to body
-     * YAHOO.lang.isFunction(input.focus) // reports false in IE
-     *
-     * You will have to implement additional tests if these functions
-     * matter to you.
-     *
-     * @method isFunction
-     * @param {any} o The object being testing
-     * @return {boolean} the result
-     */
-    isFunction: function(o) {
-        return (typeof o === 'function') || OP.toString.apply(o) === FUNCTION_TOSTRING;
-    },
-        
-    /**
-     * Determines whether or not the provided object is null
-     * @method isNull
-     * @param {any} o The object being testing
-     * @return {boolean} the result
-     */
-    isNull: function(o) {
-        return o === null;
-    },
-        
-    /**
-     * Determines whether or not the provided object is a legal number
-     * @method isNumber
-     * @param {any} o The object being testing
-     * @return {boolean} the result
-     */
-    isNumber: function(o) {
-        return typeof o === 'number' && isFinite(o);
-    },
-      
-    /**
-     * Determines whether or not the provided object is of type object
-     * or function
-     * @method isObject
-     * @param {any} o The object being testing
-     * @return {boolean} the result
-     */  
-    isObject: function(o) {
-return (o && (typeof o === 'object' || L.isFunction(o))) || false;
-    },
-        
-    /**
-     * Determines whether or not the provided object is a string
-     * @method isString
-     * @param {any} o The object being testing
-     * @return {boolean} the result
-     */
-    isString: function(o) {
-        return typeof o === 'string';
-    },
-        
-    /**
-     * Determines whether or not the provided object is undefined
-     * @method isUndefined
-     * @param {any} o The object being testing
-     * @return {boolean} the result
-     */
-    isUndefined: function(o) {
-        return typeof o === 'undefined';
-    },
-    
-    /**
-     * IE will not enumerate native functions in a derived object even if the
-     * function was overridden.  This is a workaround for specific functions 
-     * we care about on the Object prototype. 
-     * @property _IEEnumFix
-     * @param {Function} r  the object to receive the augmentation
-     * @param {Function} s  the object that supplies the properties to augment
-     * @static
-     * @private
-     */
-    _IEEnumFix: (YAHOO.env.ua.ie) ? function(r, s) {
-            var i, fname, f;
-            for (i=0;i<ADD.length;i=i+1) {
-
-                fname = ADD[i];
-                f = s[fname];
-
-                if (L.isFunction(f) && f!=OP[fname]) {
-                    r[fname]=f;
-                }
-            }
-    } : function(){},
-       
-    /**
-     * Utility to set up the prototype, constructor and superclass properties to
-     * support an inheritance strategy that can chain constructors and methods.
-     * Static members will not be inherited.
-     *
-     * @method extend
-     * @static
-     * @param {Function} subc   the object to modify
-     * @param {Function} superc the object to inherit
-     * @param {Object} overrides  additional properties/methods to add to the
-     *                              subclass prototype.  These will override the
-     *                              matching items obtained from the superclass 
-     *                              if present.
-     */
-    extend: function(subc, superc, overrides) {
-        if (!superc||!subc) {
-            throw new Error("extend failed, please check that " +
-                            "all dependencies are included.");
-        }
-        var F = function() {}, i;
-        F.prototype=superc.prototype;
-        subc.prototype=new F();
-        subc.prototype.constructor=subc;
-        subc.superclass=superc.prototype;
-        if (superc.prototype.constructor == OP.constructor) {
-            superc.prototype.constructor=superc;
-        }
-    
-        if (overrides) {
-            for (i in overrides) {
-                if (L.hasOwnProperty(overrides, i)) {
-                    subc.prototype[i]=overrides[i];
-                }
-            }
-
-            L._IEEnumFix(subc.prototype, overrides);
-        }
-    },
-   
-    /**
-     * Applies all properties in the supplier to the receiver if the
-     * receiver does not have these properties yet.  Optionally, one or 
-     * more methods/properties can be specified (as additional 
-     * parameters).  This option will overwrite the property if receiver 
-     * has it already.  If true is passed as the third parameter, all 
-     * properties will be applied and _will_ overwrite properties in 
-     * the receiver.
-     *
-     * @method augmentObject
-     * @static
-     * @since 2.3.0
-     * @param {Function} r  the object to receive the augmentation
-     * @param {Function} s  the object that supplies the properties to augment
-     * @param {String*|boolean}  arguments zero or more properties methods 
-     *        to augment the receiver with.  If none specified, everything
-     *        in the supplier will be used unless it would
-     *        overwrite an existing property in the receiver. If true
-     *        is specified as the third parameter, all properties will
-     *        be applied and will overwrite an existing property in
-     *        the receiver
-     */
-    augmentObject: function(r, s) {
-        if (!s||!r) {
-            throw new Error("Absorb failed, verify dependencies.");
-        }
-        var a=arguments, i, p, overrideList=a[2];
-        if (overrideList && overrideList!==true) { // only absorb the specified properties
-            for (i=2; i<a.length; i=i+1) {
-                r[a[i]] = s[a[i]];
-            }
-        } else { // take everything, overwriting only if the third parameter is true
-            for (p in s) { 
-                if (overrideList || !(p in r)) {
-                    r[p] = s[p];
-                }
-            }
-            
-            L._IEEnumFix(r, s);
-        }
-    },
-    /**
-     * Same as YAHOO.lang.augmentObject, except it only applies prototype properties
-     * @see YAHOO.lang.augmentObject
-     * @method augmentProto
-     * @static
-     * @param {Function} r  the object to receive the augmentation
-     * @param {Function} s  the object that supplies the properties to augment
-     * @param {String*|boolean}  arguments zero or more properties methods 
-     *        to augment the receiver with.  If none specified, everything 
-     *        in the supplier will be used unless it would overwrite an existing 
-     *        property in the receiver.  if true is specified as the third 
-     *        parameter, all properties will be applied and will overwrite an 
-     *        existing property in the receiver
-     */
-    augmentProto: function(r, s) {
-        if (!s||!r) {
-            throw new Error("Augment failed, verify dependencies.");
-        }
-        //var a=[].concat(arguments);
-        var a=[r.prototype,s.prototype], i;
-        for (i=2;i<arguments.length;i=i+1) {
-            a.push(arguments[i]);
-        }
-        L.augmentObject.apply(this, a);
-    },
-
-      
-    /**
-     * Returns a simple string representation of the object or array.
-     * Other types of objects will be returned unprocessed.  Arrays
-     * are expected to be indexed.  Use object notation for
-     * associative arrays.
-     * @method dump
-     * @since 2.3.0
-     * @param o {Object} The object to dump
-     * @param d {int} How deep to recurse child objects, default 3
-     * @return {String} the dump result
-     */
-    dump: function(o, d) {
-        var i,len,s=[],OBJ="{...}",FUN="f(){...}",
-            COMMA=', ', ARROW=' => ';
-
-        // Cast non-objects to string
-        // Skip dates because the std toString is what we want
-        // Skip HTMLElement-like objects because trying to dump 
-        // an element will cause an unhandled exception in FF 2.x
-        if (!L.isObject(o)) {
-            return o + "";
-        } else if (o instanceof Date || ("nodeType" in o && "tagName" in o)) {
-            return o;
-        } else if  (L.isFunction(o)) {
-            return FUN;
-        }
-
-        // dig into child objects the depth specifed. Default 3
-        d = (L.isNumber(d)) ? d : 3;
-
-        // arrays [1, 2, 3]
-        if (L.isArray(o)) {
-            s.push("[");
-            for (i=0,len=o.length;i<len;i=i+1) {
-                if (L.isObject(o[i])) {
-                    s.push((d > 0) ? L.dump(o[i], d-1) : OBJ);
-                } else {
-                    s.push(o[i]);
-                }
-                s.push(COMMA);
-            }
-            if (s.length > 1) {
-                s.pop();
-            }
-            s.push("]");
-        // objects {k1 => v1, k2 => v2}
-        } else {
-            s.push("{");
-            for (i in o) {
-                if (L.hasOwnProperty(o, i)) {
-                    s.push(i + ARROW);
-                    if (L.isObject(o[i])) {
-                        s.push((d > 0) ? L.dump(o[i], d-1) : OBJ);
-                    } else {
-                        s.push(o[i]);
-                    }
-                    s.push(COMMA);
-                }
-            }
-            if (s.length > 1) {
-                s.pop();
-            }
-            s.push("}");
-        }
-
-        return s.join("");
-    },
-
-    /**
-     * Does variable substitution on a string. It scans through the string 
-     * looking for expressions enclosed in { } braces. If an expression 
-     * is found, it is used a key on the object.  If there is a space in
-     * the key, the first word is used for the key and the rest is provided
-     * to an optional function to be used to programatically determine the
-     * value (the extra information might be used for this decision). If 
-     * the value for the key in the object, or what is returned from the
-     * function has a string value, number value, or object value, it is 
-     * substituted for the bracket expression and it repeats.  If this
-     * value is an object, it uses the Object's toString() if this has
-     * been overridden, otherwise it does a shallow dump of the key/value
-     * pairs.
-     * @method substitute
-     * @since 2.3.0
-     * @param s {String} The string that will be modified.
-     * @param o {Object} An object containing the replacement values
-     * @param f {Function} An optional function that can be used to
-     *                     process each match.  It receives the key,
-     *                     value, and any extra metadata included with
-     *                     the key inside of the braces.
-     * @return {String} the substituted string
-     */
-    substitute: function (s, o, f) {
-        var i, j, k, key, v, meta, saved=[], token, 
-            DUMP='dump', SPACE=' ', LBRACE='{', RBRACE='}',
-            dump, objstr;
-
-
-        for (;;) {
-            i = s.lastIndexOf(LBRACE);
-            if (i < 0) {
-                break;
-            }
-            j = s.indexOf(RBRACE, i);
-            if (i + 1 >= j) {
-                break;
-            }
-
-            //Extract key and meta info 
-            token = s.substring(i + 1, j);
-            key = token;
-            meta = null;
-            k = key.indexOf(SPACE);
-            if (k > -1) {
-                meta = key.substring(k + 1);
-                key = key.substring(0, k);
-            }
-
-            // lookup the value
-            v = o[key];
-
-            // if a substitution function was provided, execute it
-            if (f) {
-                v = f(key, v, meta);
-            }
-
-            if (L.isObject(v)) {
-                if (L.isArray(v)) {
-                    v = L.dump(v, parseInt(meta, 10));
-                } else {
-                    meta = meta || "";
-
-                    // look for the keyword 'dump', if found force obj dump
-                    dump = meta.indexOf(DUMP);
-                    if (dump > -1) {
-                        meta = meta.substring(4);
-                    }
-
-                    objstr = v.toString();
-
-                    // use the toString if it is not the Object toString 
-                    // and the 'dump' meta info was not found
-                    if (objstr === OBJECT_TOSTRING || dump > -1) {
-                        v = L.dump(v, parseInt(meta, 10));
-                    } else {
-                        v = objstr;
-                    }
-                }
-            } else if (!L.isString(v) && !L.isNumber(v)) {
-                // This {block} has no replace string. Save it for later.
-                v = "~-" + saved.length + "-~";
-                saved[saved.length] = token;
-
-                // break;
-            }
-
-            s = s.substring(0, i) + v + s.substring(j + 1);
-
-
-        }
-
-        // restore saved {block}s
-        for (i=saved.length-1; i>=0; i=i-1) {
-            s = s.replace(new RegExp("~-" + i + "-~"), "{"  + saved[i] + "}", "g");
-        }
-
-        return s;
-    },
-
-
-    /**
-     * Returns a string without any leading or trailing whitespace.  If 
-     * the input is not a string, the input will be returned untouched.
-     * @method trim
-     * @since 2.3.0
-     * @param s {string} the string to trim
-     * @return {string} the trimmed string
-     */
-    trim: function(s){
-        try {
-            return s.replace(/^\s+|\s+$/g, "");
-        } catch(e) {
-            return s;
-        }
-    },
-
-    /**
-     * Returns a new object containing all of the properties of
-     * all the supplied objects.  The properties from later objects
-     * will overwrite those in earlier objects.
-     * @method merge
-     * @since 2.3.0
-     * @param arguments {Object*} the objects to merge
-     * @return the new merged object
-     */
-    merge: function() {
-        var o={}, a=arguments, l=a.length, i;
-        for (i=0; i<l; i=i+1) {
-            L.augmentObject(o, a[i], true);
-        }
-        return o;
-    },
-
-    /**
-     * Executes the supplied function in the context of the supplied 
-     * object 'when' milliseconds later.  Executes the function a 
-     * single time unless periodic is set to true.
-     * @method later
-     * @since 2.4.0
-     * @param when {int} the number of milliseconds to wait until the fn 
-     * is executed
-     * @param o the context object
-     * @param fn {Function|String} the function to execute or the name of 
-     * the method in the 'o' object to execute
-     * @param data [Array] data that is provided to the function.  This accepts
-     * either a single item or an array.  If an array is provided, the
-     * function is executed with one parameter for each array item.  If
-     * you need to pass a single array parameter, it needs to be wrapped in
-     * an array [myarray]
-     * @param periodic {boolean} if true, executes continuously at supplied 
-     * interval until canceled
-     * @return a timer object. Call the cancel() method on this object to 
-     * stop the timer.
-     */
-    later: function(when, o, fn, data, periodic) {
-        when = when || 0; 
-        o = o || {};
-        var m=fn, d=data, f, r;
-
-        if (L.isString(fn)) {
-            m = o[fn];
-        }
-
-        if (!m) {
-            throw new TypeError("method undefined");
-        }
-
-        if (d && !L.isArray(d)) {
-            d = [data];
-        }
-
-        f = function() {
-            m.apply(o, d || NOTHING);
-        };
-
-        r = (periodic) ? setInterval(f, when) : setTimeout(f, when);
-
-        return {
-            interval: periodic,
-            cancel: function() {
-                if (this.interval) {
-                    clearInterval(r);
-                } else {
-                    clearTimeout(r);
-                }
-            }
-        };
-    },
-    
-    /**
-     * A convenience method for detecting a legitimate non-null value.
-     * Returns false for null/undefined/NaN, true for other values, 
-     * including 0/false/''
-     * @method isValue
-     * @since 2.3.0
-     * @param o {any} the item to test
-     * @return {boolean} true if it is not null/undefined/NaN || false
-     */
-    isValue: function(o) {
-        // return (o || o === false || o === 0 || o === ''); // Infinity fails
-return (L.isObject(o) || L.isString(o) || L.isNumber(o) || L.isBoolean(o));
-    }
-
-};
-
-/**
- * Determines whether or not the property was added
- * to the object instance.  Returns false if the property is not present
- * in the object, or was inherited from the prototype.
- * This abstraction is provided to enable hasOwnProperty for Safari 1.3.x.
- * There is a discrepancy between YAHOO.lang.hasOwnProperty and
- * Object.prototype.hasOwnProperty when the property is a primitive added to
- * both the instance AND prototype with the same value:
- * <pre>
- * var A = function() {};
- * A.prototype.foo = 'foo';
- * var a = new A();
- * a.foo = 'foo';
- * alert(a.hasOwnProperty('foo')); // true
- * alert(YAHOO.lang.hasOwnProperty(a, 'foo')); // false when using fallback
- * </pre>
- * @method hasOwnProperty
- * @param {any} o The object being testing
- * @param prop {string} the name of the property to test
- * @return {boolean} the result
- */
-L.hasOwnProperty = (OP.hasOwnProperty) ?
-    function(o, prop) {
-        return o && o.hasOwnProperty(prop);
-    } : function(o, prop) {
-        return !L.isUndefined(o[prop]) && 
-                o.constructor.prototype[prop] !== o[prop];
-    };
-
-// new lang wins
-OB.augmentObject(L, OB, true);
-
-/*
- * An alias for <a href="YAHOO.lang.html">YAHOO.lang</a>
- * @class YAHOO.util.Lang
- */
-YAHOO.util.Lang = L;
-/**
- * Same as YAHOO.lang.augmentObject, except it only applies prototype 
- * properties.  This is an alias for augmentProto.
- * @see YAHOO.lang.augmentObject
- * @method augment
- * @static
- * @param {Function} r  the object to receive the augmentation
- * @param {Function} s  the object that supplies the properties to augment
- * @param {String*|boolean}  arguments zero or more properties methods to 
- *        augment the receiver with.  If none specified, everything
- *        in the supplier will be used unless it would
- *        overwrite an existing property in the receiver.  if true
- *        is specified as the third parameter, all properties will
- *        be applied and will overwrite an existing property in
- *        the receiver
- */
-L.augment = L.augmentProto;
-
-/**
- * An alias for <a href="YAHOO.lang.html#augment">YAHOO.lang.augment</a>
- * @for YAHOO
- * @method augment
- * @static
- * @param {Function} r  the object to receive the augmentation
- * @param {Function} s  the object that supplies the properties to augment
- * @param {String*}  arguments zero or more properties methods to 
- *        augment the receiver with.  If none specified, everything
- *        in the supplier will be used unless it would
- *        overwrite an existing property in the receiver
- */
-YAHOO.augment = L.augmentProto;
-       
-/**
- * An alias for <a href="YAHOO.lang.html#extend">YAHOO.lang.extend</a>
- * @method extend
- * @static
- * @param {Function} subc   the object to modify
- * @param {Function} superc the object to inherit
- * @param {Object} overrides  additional properties/methods to add to the
- *        subclass prototype.  These will override the
- *        matching items obtained from the superclass if present.
- */
-YAHOO.extend = L.extend;
-
-})();
-YAHOO.register("yahoo", YAHOO, {version: "2.8.0r4", build: "2449"});
-/**
- * Provides a mechanism to fetch remote resources and
- * insert them into a document
- * @module get
- * @requires yahoo
- */
-
-/**
- * Fetches and inserts one or more script or link nodes into the document 
- * @namespace YAHOO.util
- * @class YAHOO.util.Get
- */
-YAHOO.util.Get = function() {
-
-    /**
-     * hash of queues to manage multiple requests
-     * @property queues
-     * @private
-     */
-    var queues={}, 
-        
-    /**
-     * queue index used to generate transaction ids
-     * @property qidx
-     * @type int
-     * @private
-     */
-        qidx=0, 
-        
-    /**
-     * node index used to generate unique node ids
-     * @property nidx
-     * @type int
-     * @private
-     */
-        nidx=0, 
-
-        // ridx=0,
-
-        // sandboxFrame=null,
-
-    /**
-     * interal property used to prevent multiple simultaneous purge 
-     * processes
-     * @property purging
-     * @type boolean
-     * @private
-     */
-        purging=false,
-
-        ua=YAHOO.env.ua, 
-        
-        lang=YAHOO.lang;
-    
-    /** 
-     * Generates an HTML element, this is not appended to a document
-     * @method _node
-     * @param type {string} the type of element
-     * @param attr {string} the attributes
-     * @param win {Window} optional window to create the element in
-     * @return {HTMLElement} the generated node
-     * @private
-     */
-    var _node = function(type, attr, win) {
-        var w = win || window, d=w.document, n=d.createElement(type);
-
-        for (var i in attr) {
-            if (attr[i] && YAHOO.lang.hasOwnProperty(attr, i)) {
-                n.setAttribute(i, attr[i]);
-            }
-        }
-
-        return n;
-    };
-
-    /**
-     * Generates a link node
-     * @method _linkNode
-     * @param url {string} the url for the css file
-     * @param win {Window} optional window to create the node in
-     * @return {HTMLElement} the generated node
-     * @private
-     */
-    var _linkNode = function(url, win, attributes) {
-
-        var o = {
-            id:   "yui__dyn_" + (nidx++),
-            type: "text/css",
-            rel:  "stylesheet",
-            href: url
-        };
-
-        if (attributes) {
-            lang.augmentObject(o, attributes);
-        }
-
-        return _node("link", o, win);
-    };
-
-    /**
-     * Generates a script node
-     * @method _scriptNode
-     * @param url {string} the url for the script file
-     * @param win {Window} optional window to create the node in
-     * @return {HTMLElement} the generated node
-     * @private
-     */
-    var _scriptNode = function(url, win, attributes) {
-        var o = {
-            id:   "yui__dyn_" + (nidx++),
-            type: "text/javascript",
-            src:  url
-        };
-
-        if (attributes) {
-            lang.augmentObject(o, attributes);
-        }
-
-        return _node("script", o, win);
-    };
-
-    /**
-     * Returns the data payload for callback functions
-     * @method _returnData
-     * @private
-     */
-    var _returnData = function(q, msg) {
-        return {
-                tId: q.tId,
-                win: q.win,
-                data: q.data,
-                nodes: q.nodes,
-                msg: msg,
-                purge: function() {
-                    _purge(this.tId);
-                }
-            };
-    };
-
-    var _get = function(nId, tId) {
-        var q = queues[tId],
-            n = (lang.isString(nId)) ? q.win.document.getElementById(nId) : nId;
-        if (!n) {
-            _fail(tId, "target node not found: " + nId);
-        }
-
-        return n;
-    };
-
-    /*
-     * The request failed, execute fail handler with whatever
-     * was accomplished.  There isn't a failure case at the
-     * moment unless you count aborted transactions
-     * @method _fail
-     * @param id {string} the id of the request
-     * @private
-     */
-    var _fail = function(id, msg) {
-        var q = queues[id];
-        // execute failure callback
-        if (q.onFailure) {
-            var sc=q.scope || q.win;
-            q.onFailure.call(sc, _returnData(q, msg));
-        }
-    };
-
-    /**
-     * The request is complete, so executing the requester's callback
-     * @method _finish
-     * @param id {string} the id of the request
-     * @private
-     */
-    var _finish = function(id) {
-        var q = queues[id];
-        q.finished = true;
-
-        if (q.aborted) {
-            var msg = "transaction " + id + " was aborted";
-            _fail(id, msg);
-            return;
-        }
-
-        // execute success callback
-        if (q.onSuccess) {
-            var sc=q.scope || q.win;
-            q.onSuccess.call(sc, _returnData(q));
-        }
-    };
-
-    /**
-     * Timeout detected
-     * @method _timeout
-     * @param id {string} the id of the request
-     * @private
-     */
-    var _timeout = function(id) {
-        var q = queues[id];
-        if (q.onTimeout) {
-            var sc=q.scope || q;
-            q.onTimeout.call(sc, _returnData(q));
-        }
-    };
-
-    /**
-     * Loads the next item for a given request
-     * @method _next
-     * @param id {string} the id of the request
-     * @param loaded {string} the url that was just loaded, if any
-     * @private
-     */
-    var _next = function(id, loaded) {
-        var q = queues[id];
-
-        if (q.timer) {
-            // Y.log('cancel timer');
-            q.timer.cancel();
-        }
-
-        if (q.aborted) {
-            var msg = "transaction " + id + " was aborted";
-            _fail(id, msg);
-            return;
-        }
-
-        if (loaded) {
-            q.url.shift(); 
-            if (q.varName) {
-                q.varName.shift(); 
-            }
-        } else {
-            // This is the first pass: make sure the url is an array
-            q.url = (lang.isString(q.url)) ? [q.url] : q.url;
-            if (q.varName) {
-                q.varName = (lang.isString(q.varName)) ? [q.varName] : q.varName;
-            }
-        }
-
-        var w=q.win, d=w.document, h=d.getElementsByTagName("head")[0], n;
-
-        if (q.url.length === 0) {
-            // Safari 2.x workaround - There is no way to know when 
-            // a script is ready in versions of Safari prior to 3.x.
-            // Adding an extra node reduces the problem, but doesn't
-            // eliminate it completely because the browser executes
-            // them asynchronously. 
-            if (q.type === "script" && ua.webkit && ua.webkit < 420 && 
-                    !q.finalpass && !q.varName) {
-                // Add another script node.  This does not guarantee that the
-                // scripts will execute in order, but it does appear to fix the
-                // problem on fast connections more effectively than using an
-                // arbitrary timeout.  It is possible that the browser does
-                // block subsequent script execution in this case for a limited
-                // time.
-                var extra = _scriptNode(null, q.win, q.attributes);
-                extra.innerHTML='YAHOO.util.Get._finalize("' + id + '");';
-                q.nodes.push(extra); h.appendChild(extra);
-
-            } else {
-                _finish(id);
-            }
-
-            return;
-        } 
-
-
-        var url = q.url[0];
-
-        // if the url is undefined, this is probably a trailing comma problem in IE
-        if (!url) {
-            q.url.shift(); 
-            return _next(id);
-        }
-
-
-        if (q.timeout) {
-            // Y.log('create timer');
-            q.timer = lang.later(q.timeout, q, _timeout, id);
-        }
-
-        if (q.type === "script") {
-            n = _scriptNode(url, w, q.attributes);
-        } else {
-            n = _linkNode(url, w, q.attributes);
-        }
-
-        // track this node's load progress
-        _track(q.type, n, id, url, w, q.url.length);
-
-        // add the node to the queue so we can return it to the user supplied callback
-        q.nodes.push(n);
-
-        // add it to the head or insert it before 'insertBefore'
-        if (q.insertBefore) {
-            var s = _get(q.insertBefore, id);
-            if (s) {
-                s.parentNode.insertBefore(n, s);
-            }
-        } else {
-            h.appendChild(n);
-        }
-        
-
-        // FireFox does not support the onload event for link nodes, so there is
-        // no way to make the css requests synchronous. This means that the css 
-        // rules in multiple files could be applied out of order in this browser
-        // if a later request returns before an earlier one.  Safari too.
-        if ((ua.webkit || ua.gecko) && q.type === "css") {
-            _next(id, url);
-        }
-    };
-
-    /**
-     * Removes processed queues and corresponding nodes
-     * @method _autoPurge
-     * @private
-     */
-    var _autoPurge = function() {
-
-        if (purging) {
-            return;
-        }
-
-        purging = true;
-        for (var i in queues) {
-            var q = queues[i];
-            if (q.autopurge && q.finished) {
-                _purge(q.tId);
-                delete queues[i];
-            }
-        }
-
-        purging = false;
-    };
-
-    /**
-     * Removes the nodes for the specified queue
-     * @method _purge
-     * @private
-     */
-    var _purge = function(tId) {
-        if (queues[tId]) {
-
-            var q     = queues[tId],
-                nodes = q.nodes, 
-                l     = nodes.length, 
-                d     = q.win.document, 
-                h     = d.getElementsByTagName("head")[0],
-                sib, i, node, attr;
-
-            if (q.insertBefore) {
-                sib = _get(q.insertBefore, tId);
-                if (sib) {
-                    h = sib.parentNode;
-                }
-            }
-
-            for (i=0; i<l; i=i+1) {
-                node = nodes[i];
-                if (node.clearAttributes) {
-                    node.clearAttributes();
-                } else {
-                    for (attr in node) {
-                        delete node[attr];
-                    }
-                }
-
-                h.removeChild(node);
-            }
-
-            q.nodes = [];
-        }
-    };
-
-    /**
-     * Saves the state for the request and begins loading
-     * the requested urls
-     * @method queue
-     * @param type {string} the type of node to insert
-     * @param url {string} the url to load
-     * @param opts the hash of options for this request
-     * @private
-     */
-    var _queue = function(type, url, opts) {
-
-        var id = "q" + (qidx++);
-        opts = opts || {};
-
-        if (qidx % YAHOO.util.Get.PURGE_THRESH === 0) {
-            _autoPurge();
-        }
-
-        queues[id] = lang.merge(opts, {
-            tId: id,
-            type: type,
-            url: url,
-            finished: false,
-            aborted: false,
-            nodes: []
-        });
-
-        var q = queues[id];
-        q.win = q.win || window;
-        q.scope = q.scope || q.win;
-        q.autopurge = ("autopurge" in q) ? q.autopurge : 
-                      (type === "script") ? true : false;
-
-        if (opts.charset) {
-            q.attributes = q.attributes || {};
-            q.attributes.charset = opts.charset;
-        }
-
-        lang.later(0, q, _next, id);
-
-        return {
-            tId: id
-        };
-    };
-
-    /**
-     * Detects when a node has been loaded.  In the case of
-     * script nodes, this does not guarantee that contained
-     * script is ready to use.
-     * @method _track
-     * @param type {string} the type of node to track
-     * @param n {HTMLElement} the node to track
-     * @param id {string} the id of the request
-     * @param url {string} the url that is being loaded
-     * @param win {Window} the targeted window
-     * @param qlength the number of remaining items in the queue,
-     * including this one
-     * @param trackfn {Function} function to execute when finished
-     * the default is _next
-     * @private
-     */
-    var _track = function(type, n, id, url, win, qlength, trackfn) {
-        var f = trackfn || _next;
-
-        // IE supports the readystatechange event for script and css nodes
-        if (ua.ie) {
-            n.onreadystatechange = function() {
-                var rs = this.readyState;
-                if ("loaded" === rs || "complete" === rs) {
-                    n.onreadystatechange = null;
-                    f(id, url);
-                }
-            };
-
-        // webkit prior to 3.x is problemmatic
-        } else if (ua.webkit) {
-
-            if (type === "script") {
-
-                // Safari 3.x supports the load event for script nodes (DOM2)
-                if (ua.webkit >= 420) {
-
-                    n.addEventListener("load", function() {
-                        f(id, url);
-                    });
-
-                // Nothing can be done with Safari < 3.x except to pause and hope
-                // for the best, particularly after last script is inserted. The
-                // scripts will always execute in the order they arrive, not
-                // necessarily the order in which they were inserted.  To support
-                // script nodes with complete reliability in these browsers, script
-                // nodes either need to invoke a function in the window once they
-                // are loaded or the implementer needs to provide a well-known
-                // property that the utility can poll for.
-                } else {
-                    // Poll for the existence of the named variable, if it
-                    // was supplied.
-                    var q = queues[id];
-                    if (q.varName) {
-                        var freq=YAHOO.util.Get.POLL_FREQ;
-                        q.maxattempts = YAHOO.util.Get.TIMEOUT/freq;
-                        q.attempts = 0;
-                        q._cache = q.varName[0].split(".");
-                        q.timer = lang.later(freq, q, function(o) {
-                            var a=this._cache, l=a.length, w=this.win, i;
-                            for (i=0; i<l; i=i+1) {
-                                w = w[a[i]];
-                                if (!w) {
-                                    // if we have exausted our attempts, give up
-                                    this.attempts++;
-                                    if (this.attempts++ > this.maxattempts) {
-                                        var msg = "Over retry limit, giving up";
-                                        q.timer.cancel();
-                                        _fail(id, msg);
-                                    } else {
-                                    }
-                                    return;
-                                }
-                            }
-                            
-
-                            q.timer.cancel();
-                            f(id, url);
-
-                        }, null, true);
-                    } else {
-                        lang.later(YAHOO.util.Get.POLL_FREQ, null, f, [id, url]);
-                    }
-                }
-            } 
-
-        // FireFox and Opera support onload (but not DOM2 in FF) handlers for
-        // script nodes.  Opera, but not FF, supports the onload event for link
-        // nodes.
-        } else { 
-            n.onload = function() {
-                f(id, url);
-            };
-        }
-    };
-
-    return {
-
-        /**
-         * The default poll freqency in ms, when needed
-         * @property POLL_FREQ
-         * @static
-         * @type int
-         * @default 10
-         */
-        POLL_FREQ: 10,
-
-        /**
-         * The number of request required before an automatic purge.
-         * property PURGE_THRESH
-         * @static
-         * @type int
-         * @default 20
-         */
-        PURGE_THRESH: 20,
-
-        /**
-         * The length time to poll for varName when loading a script in
-         * Safari 2.x before the transaction fails.
-         * property TIMEOUT
-         * @static
-         * @type int
-         * @default 2000
-         */
-        TIMEOUT: 2000,
-        
-        /**
-         * Called by the helper for detecting script load in Safari
-         * @method _finalize
-         * @param id {string} the transaction id
-         * @private
-         */
-        _finalize: function(id) {
-            lang.later(0, null, _finish, id);
-        },
-
-        /**
-         * Abort a transaction
-         * @method abort
-         * @param {string|object} either the tId or the object returned from
-         * script() or css()
-         */
-        abort: function(o) {
-            var id = (lang.isString(o)) ? o : o.tId;
-            var q = queues[id];
-            if (q) {
-                q.aborted = true;
-            }
-        }, 
-
-        /**
-         * Fetches and inserts one or more script nodes into the head
-         * of the current document or the document in a specified window.
-         *
-         * @method script
-         * @static
-         * @param url {string|string[]} the url or urls to the script(s)
-         * @param opts {object} Options: 
-         * <dl>
-         * <dt>onSuccess</dt>
-         * <dd>
-         * callback to execute when the script(s) are finished loading
-         * The callback receives an object back with the following
-         * data:
-         * <dl>
-         * <dt>win</dt>
-         * <dd>the window the script(s) were inserted into</dd>
-         * <dt>data</dt>
-         * <dd>the data object passed in when the request was made</dd>
-         * <dt>nodes</dt>
-         * <dd>An array containing references to the nodes that were
-         * inserted</dd>
-         * <dt>purge</dt>
-         * <dd>A function that, when executed, will remove the nodes
-         * that were inserted</dd>
-         * <dt>
-         * </dl>
-         * </dd>
-         * <dt>onFailure</dt>
-         * <dd>
-         * callback to execute when the script load operation fails
-         * The callback receives an object back with the following
-         * data:
-         * <dl>
-         * <dt>win</dt>
-         * <dd>the window the script(s) were inserted into</dd>
-         * <dt>data</dt>
-         * <dd>the data object passed in when the request was made</dd>
-         * <dt>nodes</dt>
-         * <dd>An array containing references to the nodes that were
-         * inserted successfully</dd>
-         * <dt>purge</dt>
-         * <dd>A function that, when executed, will remove any nodes
-         * that were inserted</dd>
-         * <dt>
-         * </dl>
-         * </dd>
-         * <dt>onTimeout</dt>
-         * <dd>
-         * callback to execute when a timeout occurs.
-         * The callback receives an object back with the following
-         * data:
-         * <dl>
-         * <dt>win</dt>
-         * <dd>the window the script(s) were inserted into</dd>
-         * <dt>data</dt>
-         * <dd>the data object passed in when the request was made</dd>
-         * <dt>nodes</dt>
-         * <dd>An array containing references to the nodes that were
-         * inserted</dd>
-         * <dt>purge</dt>
-         * <dd>A function that, when executed, will remove the nodes
-         * that were inserted</dd>
-         * <dt>
-         * </dl>
-         * </dd>
-         * <dt>scope</dt>
-         * <dd>the execution context for the callbacks</dd>
-         * <dt>win</dt>
-         * <dd>a window other than the one the utility occupies</dd>
-         * <dt>autopurge</dt>
-         * <dd>
-         * setting to true will let the utilities cleanup routine purge 
-         * the script once loaded
-         * </dd>
-         * <dt>data</dt>
-         * <dd>
-         * data that is supplied to the callback when the script(s) are
-         * loaded.
-         * </dd>
-         * <dt>varName</dt>
-         * <dd>
-         * variable that should be available when a script is finished
-         * loading.  Used to help Safari 2.x and below with script load 
-         * detection.  The type of this property should match what was
-         * passed into the url parameter: if loading a single url, a
-         * string can be supplied.  If loading multiple scripts, you
-         * must supply an array that contains the variable name for
-         * each script.
-         * </dd>
-         * <dt>insertBefore</dt>
-         * <dd>node or node id that will become the new node's nextSibling</dd>
-         * </dl>
-         * <dt>charset</dt>
-         * <dd>Node charset, deprecated, use 'attributes'</dd>
-         * <dt>attributes</dt>
-         * <dd>A hash of attributes to apply to dynamic nodes.</dd>
-         * <dt>timeout</dt>
-         * <dd>Number of milliseconds to wait before aborting and firing the timeout event</dd>
-         * <pre>
-         * // assumes yahoo, dom, and event are already on the page
-         * &nbsp;&nbsp;YAHOO.util.Get.script(
-         * &nbsp;&nbsp;["http://yui.yahooapis.com/2.7.0/build/dragdrop/dragdrop-min.js",
-         * &nbsp;&nbsp;&nbsp;"http://yui.yahooapis.com/2.7.0/build/animation/animation-min.js"], &#123;
-         * &nbsp;&nbsp;&nbsp;&nbsp;onSuccess: function(o) &#123;
-         * &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;new YAHOO.util.DDProxy("dd1"); // also new o.reference("dd1"); would work
-         * &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;this.log("won't cause error because YAHOO is the scope");
-         * &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;this.log(o.nodes.length === 2) // true
-         * &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;// o.purge(); // optionally remove the script nodes immediately
-         * &nbsp;&nbsp;&nbsp;&nbsp;&#125;,
-         * &nbsp;&nbsp;&nbsp;&nbsp;onFailure: function(o) &#123;
-         * &nbsp;&nbsp;&nbsp;&nbsp;&#125;,
-         * &nbsp;&nbsp;&nbsp;&nbsp;data: "foo",
-         * &nbsp;&nbsp;&nbsp;&nbsp;timeout: 10000, // 10 second timeout
-         * &nbsp;&nbsp;&nbsp;&nbsp;scope: YAHOO,
-         * &nbsp;&nbsp;&nbsp;&nbsp;// win: otherframe // target another window/frame
-         * &nbsp;&nbsp;&nbsp;&nbsp;autopurge: true // allow the utility to choose when to remove the nodes
-         * &nbsp;&nbsp;&#125;);
-         * </pre>
-         * @return {tId: string} an object containing info about the transaction
-         */
-        script: function(url, opts) { return _queue("script", url, opts); },
-
-        /**
-         * Fetches and inserts one or more css link nodes into the 
-         * head of the current document or the document in a specified
-         * window.
-         * @method css
-         * @static
-         * @param url {string} the url or urls to the css file(s)
-         * @param opts Options: 
-         * <dl>
-         * <dt>onSuccess</dt>
-         * <dd>
-         * callback to execute when the css file(s) are finished loading
-         * The callback receives an object back with the following
-         * data:
-         * <dl>win</dl>
-         * <dd>the window the link nodes(s) were inserted into</dd>
-         * <dt>data</dt>
-         * <dd>the data object passed in when the request was made</dd>
-         * <dt>nodes</dt>
-         * <dd>An array containing references to the nodes that were
-         * inserted</dd>
-         * <dt>purge</dt>
-         * <dd>A function that, when executed, will remove the nodes
-         * that were inserted</dd>
-         * <dt>
-         * </dl>
-         * </dd>
-         * <dt>scope</dt>
-         * <dd>the execution context for the callbacks</dd>
-         * <dt>win</dt>
-         * <dd>a window other than the one the utility occupies</dd>
-         * <dt>data</dt>
-         * <dd>
-         * data that is supplied to the callbacks when the nodes(s) are
-         * loaded.
-         * </dd>
-         * <dt>insertBefore</dt>
-         * <dd>node or node id that will become the new node's nextSibling</dd>
-         * <dt>charset</dt>
-         * <dd>Node charset, deprecated, use 'attributes'</dd>
-         * <dt>attributes</dt>
-         * <dd>A hash of attributes to apply to dynamic nodes.</dd>
-         * </dl>
-         * <pre>
-         *      YAHOO.util.Get.css("http://yui.yahooapis.com/2.7.0/build/menu/assets/skins/sam/menu.css");
-         * </pre>
-         * <pre>
-         *      YAHOO.util.Get.css(["http://yui.yahooapis.com/2.7.0/build/menu/assets/skins/sam/menu.css",
-         * </pre>
-         * @return {tId: string} an object containing info about the transaction
-         */
-        css: function(url, opts) {
-            return _queue("css", url, opts); 
-        }
-    };
-}();
-
-YAHOO.register("get", YAHOO.util.Get, {version: "2.8.0r4", build: "2449"});
-/**
- * Provides dynamic loading for the YUI library.  It includes the dependency
- * info for the library, and will automatically pull in dependencies for
- * the modules requested.  It supports rollup files (such as utilities.js
- * and yahoo-dom-event.js), and will automatically use these when
- * appropriate in order to minimize the number of http connections
- * required to load all of the dependencies.
- * 
- * @module yuiloader
- * @namespace YAHOO.util
- */
-
-/**
- * YUILoader provides dynamic loading for YUI.
- * @class YAHOO.util.YUILoader
- * @todo
- *      version management, automatic sandboxing
- */
-(function() {
-
-    var Y=YAHOO, util=Y.util, lang=Y.lang, env=Y.env,
-        PROV = "_provides", SUPER = "_supersedes",
-        REQ = "expanded", AFTER = "_after";
-    var YUI = {
-
-        dupsAllowed: {'yahoo': true, 'get': true},
-
-        /*
-         * The library metadata for the current release  The is the default
-         * value for YAHOO.util.YUILoader.moduleInfo
-         * @property YUIInfo
-         * @static
-         */
-        info: {
-
-    // 'root': '2.5.2/build/',
-    // 'base': 'http://yui.yahooapis.com/2.5.2/build/',
-
-    'root': '2.8.0r4/build/',
-    'base': 'http://yui.yahooapis.com/2.8.0r4/build/',
-
-    'comboBase': 'http://yui.yahooapis.com/combo?',
-
-    'skin': {
-        'defaultSkin': 'sam',
-        'base': 'assets/skins/',
-        'path': 'skin.css',
-        'after': ['reset', 'fonts', 'grids', 'base'],
-        'rollup': 3
-    },
-
-    dupsAllowed: ['yahoo', 'get'],
-
-    'moduleInfo': {
-
-        'animation': {
-            'type': 'js',
-            'path': 'animation/animation-min.js',
-            'requires': ['dom', 'event']
-        },
-
-        'autocomplete': {
-            'type': 'js',
-            'path': 'autocomplete/autocomplete-min.js',
-            'requires': ['dom', 'event', 'datasource'],
-            'optional': ['connection', 'animation'],
-            'skinnable': true
-        },
-
-        'base': {
-            'type': 'css',
-            'path': 'base/base-min.css',
-            'after': ['reset', 'fonts', 'grids']
-        },
-
-        'button': {
-            'type': 'js',
-            'path': 'button/button-min.js',
-            'requires': ['element'],
-            'optional': ['menu'],
-            'skinnable': true
-        },
-
-        'calendar': {
-            'type': 'js',
-            'path': 'calendar/calendar-min.js',
-            'requires': ['event', 'dom'],
-            supersedes: ['datemeth'],
-            'skinnable': true
-        },
-
-        'carousel': {
-            'type': 'js',
-            'path': 'carousel/carousel-min.js',
-            'requires': ['element'],
-            'optional': ['animation'],
-            'skinnable': true
-        },
-
-        'charts': {
-            'type': 'js',
-            'path': 'charts/charts-min.js',
-            'requires': ['element', 'json', 'datasource', 'swf']
-        },
-
-        'colorpicker': {
-            'type': 'js',
-            'path': 'colorpicker/colorpicker-min.js',
-            'requires': ['slider', 'element'],
-            'optional': ['animation'],
-            'skinnable': true
-        },
-
-        'connection': {
-            'type': 'js',
-            'path': 'connection/connection-min.js',
-            'requires': ['event'],
-            'supersedes': ['connectioncore']
-        },
-
-        'connectioncore': {
-            'type': 'js',
-            'path': 'connection/connection_core-min.js',
-            'requires': ['event'],
-            'pkg': 'connection'
-        },
-
-        'container': {
-            'type': 'js',
-            'path': 'container/container-min.js',
-            'requires': ['dom', 'event'],
-            // button is also optional, but this creates a circular 
-            // dependency when loadOptional is specified.  button
-            // optionally includes menu, menu requires container.
-            'optional': ['dragdrop', 'animation', 'connection'],
-            'supersedes': ['containercore'],
-            'skinnable': true
-        },
-
-        'containercore': {
-            'type': 'js',
-            'path': 'container/container_core-min.js',
-            'requires': ['dom', 'event'],
-            'pkg': 'container'
-        },
-
-        'cookie': {
-            'type': 'js',
-            'path': 'cookie/cookie-min.js',
-            'requires': ['yahoo']
-        },
-
-        'datasource': {
-            'type': 'js',
-            'path': 'datasource/datasource-min.js',
-            'requires': ['event'],
-            'optional': ['connection']
-        },
-
-        'datatable': {
-            'type': 'js',
-            'path': 'datatable/datatable-min.js',
-            'requires': ['element', 'datasource'],
-            'optional': ['calendar', 'dragdrop', 'paginator'],
-            'skinnable': true
-        },
-
-        datemath: {
-            'type': 'js',
-            'path': 'datemath/datemath-min.js',
-            'requires': ['yahoo']
-        },
-
-        'dom': {
-            'type': 'js',
-            'path': 'dom/dom-min.js',
-            'requires': ['yahoo']
-        },
-
-        'dragdrop': {
-            'type': 'js',
-            'path': 'dragdrop/dragdrop-min.js',
-            'requires': ['dom', 'event']
-        },
-
-        'editor': {
-            'type': 'js',
-            'path': 'editor/editor-min.js',
-            'requires': ['menu', 'element', 'button'],
-            'optional': ['animation', 'dragdrop'],
-            'supersedes': ['simpleeditor'],
-            'skinnable': true
-        },
-
-        'element': {
-            'type': 'js',
-            'path': 'element/element-min.js',
-            'requires': ['dom', 'event'],
-            'optional': ['event-mouseenter', 'event-delegate']
-        },
-
-        'element-delegate': {
-            'type': 'js',
-            'path': 'element-delegate/element-delegate-min.js',
-            'requires': ['element']
-        },
-
-        'event': {
-            'type': 'js',
-            'path': 'event/event-min.js',
-            'requires': ['yahoo']
-        },
-
-        'event-simulate': {
-            'type': 'js',
-            'path': 'event-simulate/event-simulate-min.js',
-            'requires': ['event']
-        },
-
-        'event-delegate': {
-            'type': 'js',
-            'path': 'event-delegate/event-delegate-min.js',
-            'requires': ['event'],
-            'optional': ['selector']
-        },
-
-        'event-mouseenter': {
-            'type': 'js',
-            'path': 'event-mouseenter/event-mouseenter-min.js',
-            'requires': ['dom', 'event']
-        },
-
-        'fonts': {
-            'type': 'css',
-            'path': 'fonts/fonts-min.css'
-        },
-
-        'get': {
-            'type': 'js',
-            'path': 'get/get-min.js',
-            'requires': ['yahoo']
-        },
-
-        'grids': {
-            'type': 'css',
-            'path': 'grids/grids-min.css',
-            'requires': ['fonts'],
-            'optional': ['reset']
-        },
-
-        'history': {
-            'type': 'js',
-            'path': 'history/history-min.js',
-            'requires': ['event']
-        },
-
-         'imagecropper': {
-             'type': 'js',
-             'path': 'imagecropper/imagecropper-min.js',
-             'requires': ['dragdrop', 'element', 'resize'],
-             'skinnable': true
-         },
-
-         'imageloader': {
-            'type': 'js',
-            'path': 'imageloader/imageloader-min.js',
-            'requires': ['event', 'dom']
-         },
-
-         'json': {
-            'type': 'js',
-            'path': 'json/json-min.js',
-            'requires': ['yahoo']
-         },
-
-         'layout': {
-             'type': 'js',
-             'path': 'layout/layout-min.js',
-             'requires': ['element'],
-             'optional': ['animation', 'dragdrop', 'resize', 'selector'],
-             'skinnable': true
-         }, 
-
-        'logger': {
-            'type': 'js',
-            'path': 'logger/logger-min.js',
-            'requires': ['event', 'dom'],
-            'optional': ['dragdrop'],
-            'skinnable': true
-        },
-
-        'menu': {
-            'type': 'js',
-            'path': 'menu/menu-min.js',
-            'requires': ['containercore'],
-            'skinnable': true
-        },
-
-        'paginator': {
-            'type': 'js',
-            'path': 'paginator/paginator-min.js',
-            'requires': ['element'],
-            'skinnable': true
-        },
-
-        'profiler': {
-            'type': 'js',
-            'path': 'profiler/profiler-min.js',
-            'requires': ['yahoo']
-        },
-
-
-        'profilerviewer': {
-            'type': 'js',
-            'path': 'profilerviewer/profilerviewer-min.js',
-            'requires': ['profiler', 'yuiloader', 'element'],
-            'skinnable': true
-        },
-
-        'progressbar': {
-            'type': 'js',
-            'path': 'progressbar/progressbar-min.js',
-            'requires': ['element'],
-            'optional': ['animation'],
-            'skinnable': true
-        },
-
-        'reset': {
-            'type': 'css',
-            'path': 'reset/reset-min.css'
-        },
-
-        'reset-fonts-grids': {
-            'type': 'css',
-            'path': 'reset-fonts-grids/reset-fonts-grids.css',
-            'supersedes': ['reset', 'fonts', 'grids', 'reset-fonts'],
-            'rollup': 4
-        },
-
-        'reset-fonts': {
-            'type': 'css',
-            'path': 'reset-fonts/reset-fonts.css',
-            'supersedes': ['reset', 'fonts'],
-            'rollup': 2
-        },
-
-         'resize': {
-             'type': 'js',
-             'path': 'resize/resize-min.js',
-             'requires': ['dragdrop', 'element'],
-             'optional': ['animation'],
-             'skinnable': true
-         },
-
-        'selector': {
-            'type': 'js',
-            'path': 'selector/selector-min.js',
-            'requires': ['yahoo', 'dom']
-        },
-
-        'simpleeditor': {
-            'type': 'js',
-            'path': 'editor/simpleeditor-min.js',
-            'requires': ['element'],
-            'optional': ['containercore', 'menu', 'button', 'animation', 'dragdrop'],
-            'skinnable': true,
-            'pkg': 'editor'
-        },
-
-        'slider': {
-            'type': 'js',
-            'path': 'slider/slider-min.js',
-            'requires': ['dragdrop'],
-            'optional': ['animation'],
-            'skinnable': true
-        },
-
-        'storage': {
-            'type': 'js',
-            'path': 'storage/storage-min.js',
-            'requires': ['yahoo', 'event', 'cookie'],
-            'optional': ['swfstore']
-        },
-
-         'stylesheet': {
-            'type': 'js',
-            'path': 'stylesheet/stylesheet-min.js',
-            'requires': ['yahoo']
-         },
-
-        'swf': {
-            'type': 'js',
-            'path': 'swf/swf-min.js',
-            'requires': ['element'],
-            'supersedes': ['swfdetect']
-        },
-
-        'swfdetect': {
-            'type': 'js',
-            'path': 'swfdetect/swfdetect-min.js',
-            'requires': ['yahoo']
-        },
-
-        'swfstore': {
-            'type': 'js',
-            'path': 'swfstore/swfstore-min.js',
-            'requires': ['element', 'cookie', 'swf']
-        },
-
-        'tabview': {
-            'type': 'js',
-            'path': 'tabview/tabview-min.js',
-            'requires': ['element'],
-            'optional': ['connection'],
-            'skinnable': true
-        },
-
-        'treeview': {
-            'type': 'js',
-            'path': 'treeview/treeview-min.js',
-            'requires': ['event', 'dom'],
-            'optional': ['json', 'animation', 'calendar'],
-            'skinnable': true
-        },
-
-        'uploader': {
-            'type': 'js',
-            'path': 'uploader/uploader-min.js',
-            'requires': ['element']
-        },
-
-        'utilities': {
-            'type': 'js',
-            'path': 'utilities/utilities.js',
-            'supersedes': ['yahoo', 'event', 'dragdrop', 'animation', 'dom', 'connection', 'element', 'yahoo-dom-event', 'get', 'yuiloader', 'yuiloader-dom-event'],
-            'rollup': 8
-        },
-
-        'yahoo': {
-            'type': 'js',
-            'path': 'yahoo/yahoo-min.js'
-        },
-
-        'yahoo-dom-event': {
-            'type': 'js',
-            'path': 'yahoo-dom-event/yahoo-dom-event.js',
-            'supersedes': ['yahoo', 'event', 'dom'],
-            'rollup': 3
-        },
-
-        'yuiloader': {
-            'type': 'js',
-            'path': 'yuiloader/yuiloader-min.js',
-            'supersedes': ['yahoo', 'get']
-        },
-
-        'yuiloader-dom-event': {
-            'type': 'js',
-            'path': 'yuiloader-dom-event/yuiloader-dom-event.js',
-            'supersedes': ['yahoo', 'dom', 'event', 'get', 'yuiloader', 'yahoo-dom-event'],
-            'rollup': 5
-        },
-
-        'yuitest': {
-            'type': 'js',
-            'path': 'yuitest/yuitest-min.js',
-            'requires': ['logger'],
-            'optional': ['event-simulate'],
-            'skinnable': true
-        }
-    }
-}
- , 
-
-        ObjectUtil: {
-            appendArray: function(o, a) {
-                if (a) {
-                    for (var i=0; i<a.length; i=i+1) {
-                        o[a[i]] = true;
-                    }
-                }
-            },
-
-            keys: function(o, ordered) {
-                var a=[], i;
-                for (i in o) {
-                    if (lang.hasOwnProperty(o, i)) {
-                        a.push(i);
-                    }
-                }
-
-                return a;
-            }
-        },
-
-        ArrayUtil: {
-
-            appendArray: function(a1, a2) {
-                Array.prototype.push.apply(a1, a2);
-                /*
-                for (var i=0; i<a2.length; i=i+1) {
-                    a1.push(a2[i]);
-                }
-                */
-            },
-
-            indexOf: function(a, val) {
-                for (var i=0; i<a.length; i=i+1) {
-                    if (a[i] === val) {
-                        return i;
-                    }
-                }
-
-                return -1;
-            },
-
-            toObject: function(a) {
-                var o = {};
-                for (var i=0; i<a.length; i=i+1) {
-                    o[a[i]] = true;
-                }
-
-                return o;
-            },
-
-            /*
-             * Returns a unique array.  Does not maintain order, which is fine
-             * for this application, and performs better than it would if it
-             * did.
-             */
-            uniq: function(a) {
-                return YUI.ObjectUtil.keys(YUI.ArrayUtil.toObject(a));
-            }
-        }
-    };
-
-    YAHOO.util.YUILoader = function(o) {
-
-        /**
-         * Internal callback to handle multiple internal insert() calls
-         * so that css is inserted prior to js
-         * @property _internalCallback
-         * @private
-         */
-        this._internalCallback = null;
-
-        /**
-         * Use the YAHOO environment listener to detect script load.  This
-         * is only switched on for Safari 2.x and below.
-         * @property _useYahooListener
-         * @private
-         */
-        this._useYahooListener = false;
-
-        /**
-         * Callback that will be executed when the loader is finished
-         * with an insert
-         * @method onSuccess
-         * @type function
-         */
-        this.onSuccess = null;
-
-        /**
-         * Callback that will be executed if there is a failure
-         * @method onFailure
-         * @type function
-         */
-        this.onFailure = Y.log;
-
-        /**
-         * Callback that will be executed each time a new module is loaded
-         * @method onProgress
-         * @type function
-         */
-        this.onProgress = null;
-
-        /**
-         * Callback that will be executed if a timeout occurs
-         * @method onTimeout
-         * @type function
-         */
-        this.onTimeout = null;
-
-        /**
-         * The execution scope for all callbacks
-         * @property scope
-         * @default this
-         */
-        this.scope = this;
-
-        /**
-         * Data that is passed to all callbacks
-         * @property data
-         */
-        this.data = null;
-
-        /**
-         * Node reference or id where new nodes should be inserted before
-         * @property insertBefore
-         * @type string|HTMLElement
-         */
-        this.insertBefore = null;
-
-        /**
-         * The charset attribute for inserted nodes
-         * @property charset
-         * @type string
-         * @default utf-8
-         */
-        this.charset = null;
-
-        /**
-         * The name of the variable in a sandbox or script node 
-         * (for external script support in Safari 2.x and earlier)
-         * to reference when the load is complete.  If this variable 
-         * is not available in the specified scripts, the operation will 
-         * fail.  
-         * @property varName
-         * @type string
-         */
-        this.varName = null;
-
-        /**
-         * The base directory.
-         * @property base
-         * @type string
-         * @default http://yui.yahooapis.com/[YUI VERSION]/build/
-         */
-        this.base = YUI.info.base;
-
-        /**
-         * Base path for the combo service
-         * @property comboBase
-         * @type string
-         * @default http://yui.yahooapis.com/combo?
-         */
-        this.comboBase = YUI.info.comboBase;
-
-        /**
-         * If configured, YUI will use the combo handler on the
-         * Yahoo! CDN to pontentially reduce the number of http requests
-         * required.
-         * @property combine
-         * @type boolean
-         * @default false
-         */
-        // this.combine = (o && !('base' in o));
-        this.combine = false;
-
-
-        /**
-         * Root path to prepend to module path for the combo
-         * service
-         * @property root
-         * @type string
-         * @default [YUI VERSION]/build/
-         */
-        this.root = YUI.info.root;
-
-        /**
-         * Timeout value in milliseconds.  If set, this value will be used by
-         * the get utility.  the timeout event will fire if
-         * a timeout occurs.
-         * @property timeout
-         * @type int
-         */
-        this.timeout = 0;
-
-        /**
-         * A list of modules that should not be loaded, even if
-         * they turn up in the dependency tree
-         * @property ignore
-         * @type string[]
-         */
-        this.ignore = null;
-
-        /**
-         * A list of modules that should always be loaded, even
-         * if they have already been inserted into the page.
-         * @property force
-         * @type string[]
-         */
-        this.force = null;
-
-        /**
-         * Should we allow rollups
-         * @property allowRollup
-         * @type boolean
-         * @default true
-         */
-        this.allowRollup = true;
-
-        /**
-         * A filter to apply to result urls.  This filter will modify the default
-         * path for all modules.  The default path for the YUI library is the
-         * minified version of the files (e.g., event-min.js).  The filter property
-         * can be a predefined filter or a custom filter.  The valid predefined 
-         * filters are:
-         * <dl>
-         *  <dt>DEBUG</dt>
-         *  <dd>Selects the debug versions of the library (e.g., event-debug.js).
-         *      This option will automatically include the logger widget</dd>
-         *  <dt>RAW</dt>
-         *  <dd>Selects the non-minified version of the library (e.g., event.js).
-         * </dl>
-         * You can also define a custom filter, which must be an object literal 
-         * containing a search expression and a replace string:
-         * <pre>
-         *  myFilter: &#123; 
-         *      'searchExp': "-min\\.js", 
-         *      'replaceStr': "-debug.js"
-         *  &#125;
-         * </pre>
-         * @property filter
-         * @type string|{searchExp: string, replaceStr: string}
-         */
-        this.filter = null;
-
-        /**
-         * The list of requested modules
-         * @property required
-         * @type {string: boolean}
-         */
-        this.required = {};
-
-        /**
-         * The library metadata
-         * @property moduleInfo
-         */
-        this.moduleInfo = lang.merge(YUI.info.moduleInfo);
-
-        /**
-         * List of rollup files found in the library metadata
-         * @property rollups
-         */
-        this.rollups = null;
-
-        /**
-         * Whether or not to load optional dependencies for 
-         * the requested modules
-         * @property loadOptional
-         * @type boolean
-         * @default false
-         */
-        this.loadOptional = false;
-
-        /**
-         * All of the derived dependencies in sorted order, which
-         * will be populated when either calculate() or insert()
-         * is called
-         * @property sorted
-         * @type string[]
-         */
-        this.sorted = [];
-
-        /**
-         * Set when beginning to compute the dependency tree. 
-         * Composed of what YAHOO reports to be loaded combined
-         * with what has been loaded by the tool
-         * @propery loaded
-         * @type {string: boolean}
-         */
-        this.loaded = {};
-
-        /**
-         * Flag to indicate the dependency tree needs to be recomputed
-         * if insert is called again.
-         * @property dirty
-         * @type boolean
-         * @default true
-         */
-        this.dirty = true;
-
-        /**
-         * List of modules inserted by the utility
-         * @property inserted
-         * @type {string: boolean}
-         */
-        this.inserted = {};
-
-        /**
-         * Provides the information used to skin the skinnable components.
-         * The following skin definition would result in 'skin1' and 'skin2'
-         * being loaded for calendar (if calendar was requested), and
-         * 'sam' for all other skinnable components:
-         *
-         *   <code>
-         *   skin: {
-         *
-         *      // The default skin, which is automatically applied if not
-         *      // overriden by a component-specific skin definition.
-         *      // Change this in to apply a different skin globally
-         *      defaultSkin: 'sam', 
-         *
-         *      // This is combined with the loader base property to get
-         *      // the default root directory for a skin. ex:
-         *      // http://yui.yahooapis.com/2.3.0/build/assets/skins/sam/
-         *      base: 'assets/skins/',
-         *
-         *      // The name of the rollup css file for the skin
-         *      path: 'skin.css',
-         *
-         *      // The number of skinnable components requested that are
-         *      // required before using the rollup file rather than the
-         *      // individual component css files
-         *      rollup: 3,
-         *
-         *      // Any component-specific overrides can be specified here,
-         *      // making it possible to load different skins for different
-         *      // components.  It is possible to load more than one skin
-         *      // for a given component as well.
-         *      overrides: {
-         *          calendar: ['skin1', 'skin2']
-         *      }
-         *   }
-         *   </code>
-         *   @property skin
-         */
-
-        var self = this;
-
-        env.listeners.push(function(m) {
-            if (self._useYahooListener) {
-                //Y.log("YAHOO listener: " + m.name);
-                self.loadNext(m.name);
-            }
-        });
-
-        this.skin = lang.merge(YUI.info.skin); 
-
-        this._config(o);
-
-    };
-
-    Y.util.YUILoader.prototype = {
-
-        FILTERS: {
-            RAW: { 
-                'searchExp': "-min\\.js", 
-                'replaceStr': ".js"
-            },
-            DEBUG: { 
-                'searchExp': "-min\\.js", 
-                'replaceStr': "-debug.js"
-            }
-        },
-
-        SKIN_PREFIX: "skin-",
-
-        _config: function(o) {
-
-            // apply config values
-            if (o) {
-                for (var i in o) {
-                    if (lang.hasOwnProperty(o, i)) {
-                        if (i == "require") {
-                            this.require(o[i]);
-                        } else {
-                            this[i] = o[i];
-                        }
-                    }
-                }
-            }
-
-            // fix filter
-            var f = this.filter;
-
-            if (lang.isString(f)) {
-                f = f.toUpperCase();
-
-                // the logger must be available in order to use the debug
-                // versions of the library
-                if (f === "DEBUG") {
-                    this.require("logger");
-                }
-
-                // hack to handle a a bug where LogWriter is being instantiated
-                // at load time, and the loader has no way to sort above it
-                // at the moment.
-                if (!Y.widget.LogWriter) {
-                    Y.widget.LogWriter = function() {
-                        return Y;
-                    };
-                }
-
-                this.filter = this.FILTERS[f];
-            }
-
-        },
-
-        /** Add a new module to the component metadata.         
-         * <dl>
-         *     <dt>name:</dt>       <dd>required, the component name</dd>
-         *     <dt>type:</dt>       <dd>required, the component type (js or css)</dd>
-         *     <dt>path:</dt>       <dd>required, the path to the script from "base"</dd>
-         *     <dt>requires:</dt>   <dd>array of modules required by this component</dd>
-         *     <dt>optional:</dt>   <dd>array of optional modules for this component</dd>
-         *     <dt>supersedes:</dt> <dd>array of the modules this component replaces</dd>
-         *     <dt>after:</dt>      <dd>array of modules the components which, if present, should be sorted above this one</dd>
-         *     <dt>rollup:</dt>     <dd>the number of superseded modules required for automatic rollup</dd>
-         *     <dt>fullpath:</dt>   <dd>If fullpath is specified, this is used instead of the configured base + path</dd>
-         *     <dt>skinnable:</dt>  <dd>flag to determine if skin assets should automatically be pulled in</dd>
-         * </dl>
-         * @method addModule
-         * @param o An object containing the module data
-         * @return {boolean} true if the module was added, false if 
-         * the object passed in did not provide all required attributes
-         */
-        addModule: function(o) {
-
-            if (!o || !o.name || !o.type || (!o.path && !o.fullpath)) {
-                return false;
-            }
-
-            o.ext = ('ext' in o) ? o.ext : true;
-            o.requires = o.requires || [];
-
-            this.moduleInfo[o.name] = o;
-            this.dirty = true;
-
-            return true;
-        },
-
-        /**
-         * Add a requirement for one or more module
-         * @method require
-         * @param what {string[] | string*} the modules to load
-         */
-        require: function(what) {
-            var a = (typeof what === "string") ? arguments : what;
-            this.dirty = true;
-            YUI.ObjectUtil.appendArray(this.required, a);
-        },
-
-        /**
-         * Adds the skin def to the module info
-         * @method _addSkin
-         * @param skin {string} the name of the skin
-         * @param mod {string} the name of the module
-         * @return {string} the module name for the skin
-         * @private
-         */
-        _addSkin: function(skin, mod) {
-
-            // Add a module definition for the skin rollup css
-            var name = this.formatSkin(skin), info = this.moduleInfo,
-                sinf = this.skin, ext = info[mod] && info[mod].ext;
-
-            // Y.log('ext? ' + mod + ": " + ext);
-            if (!info[name]) {
-                // Y.log('adding skin ' + name);
-                this.addModule({
-                    'name': name,
-                    'type': 'css',
-                    'path': sinf.base + skin + '/' + sinf.path,
-                    //'supersedes': '*',
-                    'after': sinf.after,
-                    'rollup': sinf.rollup,
-                    'ext': ext
-                });
-            }
-
-            // Add a module definition for the module-specific skin css
-            if (mod) {
-                name = this.formatSkin(skin, mod);
-                if (!info[name]) {
-                    var mdef = info[mod], pkg = mdef.pkg || mod;
-                    // Y.log('adding skin ' + name);
-                    this.addModule({
-                        'name': name,
-                        'type': 'css',
-                        'after': sinf.after,
-                        'path': pkg + '/' + sinf.base + skin + '/' + mod + '.css',
-                        'ext': ext
-                    });
-                }
-            }
-
-            return name;
-        },
-
-        /**
-         * Returns an object containing properties for all modules required
-         * in order to load the requested module
-         * @method getRequires
-         * @param mod The module definition from moduleInfo
-         */
-        getRequires: function(mod) {
-            if (!mod) {
-                return [];
-            }
-
-            if (!this.dirty && mod.expanded) {
-                return mod.expanded;
-            }
-
-            mod.requires=mod.requires || [];
-            var i, d=[], r=mod.requires, o=mod.optional, info=this.moduleInfo, m;
-            for (i=0; i<r.length; i=i+1) {
-                d.push(r[i]);
-                m = info[r[i]];
-                YUI.ArrayUtil.appendArray(d, this.getRequires(m));
-
-                // add existing skins for skinnable modules as well.  The only
-                // way to do this is go through the list of required items (this
-                // assumes that _skin is called before getRequires is called on
-                // the module.
-                // if (m.skinnable) {
-                //     var req=this.required, l=req.length;
-                //     for (var j=0; j<l; j=j+1) {
-                //         // YAHOO.log('checking ' + r[j]);
-                //         if (req[j].indexOf(r[j]) > -1) {
-                //             // YAHOO.log('adding ' + r[j]);
-                //             d.push(req[j]);
-                //         }
-                //     }
-                // }
-            }
-
-            if (o && this.loadOptional) {
-                for (i=0; i<o.length; i=i+1) {
-                    d.push(o[i]);
-                    YUI.ArrayUtil.appendArray(d, this.getRequires(info[o[i]]));
-                }
-            }
-
-            mod.expanded = YUI.ArrayUtil.uniq(d);
-
-            return mod.expanded;
-        },
-
-
-        /**
-         * Returns an object literal of the modules the supplied module satisfies
-         * @method getProvides
-         * @param name{string} The name of the module
-         * @param notMe {string} don't add this module name, only include superseded modules
-         * @return what this module provides
-         */
-        getProvides: function(name, notMe) {
-            var addMe = !(notMe), ckey = (addMe) ? PROV : SUPER,
-                m = this.moduleInfo[name], o = {};
-
-            if (!m) {
-                return o;
-            }
-
-            if (m[ckey]) {
-// Y.log('cached: ' + name + ' ' + ckey + ' ' + lang.dump(this.moduleInfo[name][ckey], 0));
-                return m[ckey];
-            }
-
-            var s = m.supersedes, done={}, me = this;
-
-            // use worker to break cycles
-            var add = function(mm) {
-                if (!done[mm]) {
-                    // Y.log(name + ' provides worker trying: ' + mm);
-                    done[mm] = true;
-                    // we always want the return value normal behavior 
-                    // (provides) for superseded modules.
-                    lang.augmentObject(o, me.getProvides(mm));
-                } 
-                
-                // else {
-                // Y.log(name + ' provides worker skipping done: ' + mm);
-                // }
-            };
-
-            // calculate superseded modules
-            if (s) {
-                for (var i=0; i<s.length; i=i+1) {
-                    add(s[i]);
-                }
-            }
-
-            // supersedes cache
-            m[SUPER] = o;
-            // provides cache
-            m[PROV] = lang.merge(o);
-            m[PROV][name] = true;
-
-// Y.log(name + " supersedes " + lang.dump(m[SUPER], 0));
-// Y.log(name + " provides " + lang.dump(m[PROV], 0));
-
-            return m[ckey];
-        },
-
-
-        /**
-         * Calculates the dependency tree, the result is stored in the sorted 
-         * property
-         * @method calculate
-         * @param o optional options object
-         */
-        calculate: function(o) {
-            if (o || this.dirty) {
-                this._config(o);
-                this._setup();
-                this._explode();
-                // this._skin(); // deprecated
-                if (this.allowRollup) {
-                    this._rollup();
-                }
-                this._reduce();
-                this._sort();
-
-                // Y.log("after calculate: " + lang.dump(this.required));
-
-                this.dirty = false;
-            }
-        },
-
-        /**
-         * Investigates the current YUI configuration on the page.  By default,
-         * modules already detected will not be loaded again unless a force
-         * option is encountered.  Called by calculate()
-         * @method _setup
-         * @private
-         */
-        _setup: function() {
-
-            var info = this.moduleInfo, name, i, j;
-
-            // Create skin modules
-            for (name in info) {
-
-                if (lang.hasOwnProperty(info, name)) {
-                    var m = info[name];
-                    if (m && m.skinnable) {
-                        // Y.log("skinning: " + name);
-                        var o=this.skin.overrides, smod;
-                        if (o && o[name]) {
-                            for (i=0; i<o[name].length; i=i+1) {
-                                smod = this._addSkin(o[name][i], name);
-                            }
-                        } else {
-                            smod = this._addSkin(this.skin.defaultSkin, name);
-                        }
-
-                        m.requires.push(smod);
-                    }
-                }
-
-            }
-
-            var l = lang.merge(this.inserted); // shallow clone
-            
-            if (!this._sandbox) {
-                l = lang.merge(l, env.modules);
-            }
-
-            // Y.log("Already loaded stuff: " + lang.dump(l, 0));
-
-            // add the ignore list to the list of loaded packages
-            if (this.ignore) {
-                YUI.ObjectUtil.appendArray(l, this.ignore);
-            }
-
-            // remove modules on the force list from the loaded list
-            if (this.force) {
-                for (i=0; i<this.force.length; i=i+1) {
-                    if (this.force[i] in l) {
-                        delete l[this.force[i]];
-                    }
-                }
-            }
-
-            // expand the list to include superseded modules
-            for (j in l) {
-                // Y.log("expanding: " + j);
-                if (lang.hasOwnProperty(l, j)) {
-                    lang.augmentObject(l, this.getProvides(j));
-                }
-            }
-
-            // Y.log("loaded expanded: " + lang.dump(l, 0));
-
-            this.loaded = l;
-
-        },
-        
-
-        /**
-         * Inspects the required modules list looking for additional 
-         * dependencies.  Expands the required list to include all 
-         * required modules.  Called by calculate()
-         * @method _explode
-         * @private
-         */
-        _explode: function() {
-
-            var r=this.required, i, mod;
-
-            for (i in r) {
-                if (lang.hasOwnProperty(r, i)) {
-                    mod = this.moduleInfo[i];
-                    if (mod) {
-
-                        var req = this.getRequires(mod);
-
-                        if (req) {
-                            YUI.ObjectUtil.appendArray(r, req);
-                        }
-                    }
-                }
-            }
-        },
-
-        /**
-         * Sets up the requirements for the skin assets if any of the
-         * requested modules are skinnable
-         * @method _skin
-         * @private
-         * @deprecated skin modules are generated for all skinnable
-         *             components during _setup(), and the components
-         *             are configured to require the skin.
-         */
-        _skin: function() {
-
-        },
-
-        /**
-         * Returns the skin module name for the specified skin name.  If a
-         * module name is supplied, the returned skin module name is 
-         * specific to the module passed in.
-         * @method formatSkin
-         * @param skin {string} the name of the skin
-         * @param mod {string} optional: the name of a module to skin
-         * @return {string} the full skin module name
-         */
-        formatSkin: function(skin, mod) {
-            var s = this.SKIN_PREFIX + skin;
-            if (mod) {
-                s = s + "-" + mod;
-            }
-
-            return s;
-        },
-        
-        /**
-         * Reverses <code>formatSkin</code>, providing the skin name and
-         * module name if the string matches the pattern for skins.
-         * @method parseSkin
-         * @param mod {string} the module name to parse
-         * @return {skin: string, module: string} the parsed skin name 
-         * and module name, or null if the supplied string does not match
-         * the skin pattern
-         */
-        parseSkin: function(mod) {
-            
-            if (mod.indexOf(this.SKIN_PREFIX) === 0) {
-                var a = mod.split("-");
-                return {skin: a[1], module: a[2]};
-            } 
-
-            return null;
-        },
-
-        /**
-         * Look for rollup packages to determine if all of the modules a
-         * rollup supersedes are required.  If so, include the rollup to
-         * help reduce the total number of connections required.  Called
-         * by calculate()
-         * @method _rollup
-         * @private
-         */
-        _rollup: function() {
-            var i, j, m, s, rollups={}, r=this.required, roll,
-                info = this.moduleInfo;
-
-            // find and cache rollup modules
-            if (this.dirty || !this.rollups) {
-                for (i in info) {
-                    if (lang.hasOwnProperty(info, i)) {
-                        m = info[i];
-                        //if (m && m.rollup && m.supersedes) {
-                        if (m && m.rollup) {
-                            rollups[i] = m;
-                        }
-                    }
-                }
-
-                this.rollups = rollups;
-            }
-
-            // make as many passes as needed to pick up rollup rollups
-            for (;;) {
-                var rolled = false;
-
-                // go through the rollup candidates
-                for (i in rollups) { 
-
-                    // there can be only one
-                    if (!r[i] && !this.loaded[i]) {
-                        m =info[i]; s = m.supersedes; roll=false;
-
-                        if (!m.rollup) {
-                            continue;
-                        }
-
-                        var skin = (m.ext) ? false : this.parseSkin(i), c = 0;
-
-                        // Y.log('skin? ' + i + ": " + skin);
-                        if (skin) {
-                            for (j in r) {
-                                if (lang.hasOwnProperty(r, j)) {
-                                    if (i !== j && this.parseSkin(j)) {
-                                        c++;
-                                        roll = (c >= m.rollup);
-                                        if (roll) {
-                                            // Y.log("skin rollup " + lang.dump(r));
-                                            break;
-                                        }
-                                    }
-                                }
-                            }
-
-                        } else {
-
-                            // check the threshold
-                            for (j=0;j<s.length;j=j+1) {
-
-                                // if the superseded module is loaded, we can't load the rollup
-                                if (this.loaded[s[j]] && (!YUI.dupsAllowed[s[j]])) {
-                                    roll = false;
-                                    break;
-                                // increment the counter if this module is required.  if we are
-                                // beyond the rollup threshold, we will use the rollup module
-                                } else if (r[s[j]]) {
-                                    c++;
-                                    roll = (c >= m.rollup);
-                                    if (roll) {
-                                        // Y.log("over thresh " + c + ", " + lang.dump(r));
-                                        break;
-                                    }
-                                }
-                            }
-                        }
-
-                        if (roll) {
-                            // Y.log("rollup: " +  i + ", " + lang.dump(this, 1));
-                            // add the rollup
-                            r[i] = true;
-                            rolled = true;
-
-                            // expand the rollup's dependencies
-                            this.getRequires(m);
-                        }
-                    }
-                }
-
-                // if we made it here w/o rolling up something, we are done
-                if (!rolled) {
-                    break;
-                }
-            }
-        },
-
-        /**
-         * Remove superceded modules and loaded modules.  Called by
-         * calculate() after we have the mega list of all dependencies
-         * @method _reduce
-         * @private
-         */
-        _reduce: function() {
-
-            var i, j, s, m, r=this.required;
-            for (i in r) {
-
-                // remove if already loaded
-                if (i in this.loaded) { 
-                    delete r[i];
-
-                // remove anything this module supersedes
-                } else {
-
-                    var skinDef = this.parseSkin(i);
-
-                    if (skinDef) {
-                        //YAHOO.log("skin found in reduce: " + skinDef.skin + ", " + skinDef.module);
-                        // the skin rollup will not have a module name
-                        if (!skinDef.module) {
-                            var skin_pre = this.SKIN_PREFIX + skinDef.skin;
-                            //YAHOO.log("skin_pre: " + skin_pre);
-                            for (j in r) {
-
-                                if (lang.hasOwnProperty(r, j)) {
-                                    m = this.moduleInfo[j];
-                                    var ext = m && m.ext;
-                                    if (!ext && j !== i && j.indexOf(skin_pre) > -1) {
-                                        // Y.log ("removing component skin: " + j);
-                                        delete r[j];
-                                    }
-                                }
-                            }
-                        }
-                    } else {
-
-                         m = this.moduleInfo[i];
-                         s = m && m.supersedes;
-                         if (s) {
-                             for (j=0; j<s.length; j=j+1) {
-                                 if (s[j] in r) {
-                                     delete r[s[j]];
-                                 }
-                             }
-                         }
-                    }
-                }
-            }
-        },
-
-        _onFailure: function(msg) {
-            YAHOO.log('Failure', 'info', 'loader');
-
-            var f = this.onFailure;
-            if (f) {
-                f.call(this.scope, {
-                    msg: 'failure: ' + msg,
-                    data: this.data,
-                    success: false
-                });
-            }
-        },
-
-        _onTimeout: function() {
-            YAHOO.log('Timeout', 'info', 'loader');
-            var f = this.onTimeout;
-            if (f) {
-                f.call(this.scope, {
-                    msg: 'timeout',
-                    data: this.data,
-                    success: false
-                });
-            }
-        },
-        
-        /**
-         * Sorts the dependency tree.  The last step of calculate()
-         * @method _sort
-         * @private
-         */
-        _sort: function() {
-            // create an indexed list
-            var s=[], info=this.moduleInfo, loaded=this.loaded,
-                checkOptional=!this.loadOptional, me = this;
-
-            // returns true if b is not loaded, and is required
-            // directly or by means of modules it supersedes.
-            var requires = function(aa, bb) {
-
-                var mm=info[aa];
-
-                if (loaded[bb] || !mm) {
-                    return false;
-                }
-
-                var ii, 
-                    rr = mm.expanded, 
-                    after = mm.after, 
-                    other = info[bb],
-                    optional = mm.optional;
-
-
-                // check if this module requires the other directly
-                if (rr && YUI.ArrayUtil.indexOf(rr, bb) > -1) {
-                    return true;
-                }
-
-                // check if this module should be sorted after the other
-                if (after && YUI.ArrayUtil.indexOf(after, bb) > -1) {
-                    return true;
-                }
-
-                // if loadOptional is not specified, optional dependencies still
-                // must be sorted correctly when present.
-                if (checkOptional && optional && YUI.ArrayUtil.indexOf(optional, bb) > -1) {
-                    return true;
-                }
-
-                // check if this module requires one the other supersedes
-                var ss=info[bb] && info[bb].supersedes;
-                if (ss) {
-                    for (ii=0; ii<ss.length; ii=ii+1) {
-                        if (requires(aa, ss[ii])) {
-                            return true;
-                        }
-                    }
-                }
-
-                // var ss=me.getProvides(bb, true);
-                // if (ss) {
-                //     for (ii in ss) {
-                //         if (requires(aa, ii)) {
-                //             return true;
-                //         }
-                //     }
-                // }
-
-                // external css files should be sorted below yui css
-                if (mm.ext && mm.type == 'css' && !other.ext && other.type == 'css') {
-                    return true;
-                }
-
-                return false;
-            };
-
-            // get the required items out of the obj into an array so we
-            // can sort
-            for (var i in this.required) {
-                if (lang.hasOwnProperty(this.required, i)) {
-                    s.push(i);
-                }
-            }
-
-            // pointer to the first unsorted item
-            var p=0; 
-
-            // keep going until we make a pass without moving anything
-            for (;;) {
-               
-                var l=s.length, a, b, j, k, moved=false;
-
-                // start the loop after items that are already sorted
-                for (j=p; j<l; j=j+1) {
-
-                    // check the next module on the list to see if its
-                    // dependencies have been met
-                    a = s[j];
-
-                    // check everything below current item and move if we
-                    // find a requirement for the current item
-                    for (k=j+1; k<l; k=k+1) {
-                        if (requires(a, s[k])) {
-
-                            // extract the dependency so we can move it up
-                            b = s.splice(k, 1);
-
-                            // insert the dependency above the item that 
-                            // requires it
-                            s.splice(j, 0, b[0]);
-
-                            moved = true;
-                            break;
-                        }
-                    }
-
-                    // jump out of loop if we moved something
-                    if (moved) {
-                        break;
-                    // this item is sorted, move our pointer and keep going
-                    } else {
-                        p = p + 1;
-                    }
-                }
-
-                // when we make it here and moved is false, we are 
-                // finished sorting
-                if (!moved) {
-                    break;
-                }
-
-            }
-
-            this.sorted = s;
-        },
-
-        toString: function() {
-            var o = {
-                type: "YUILoader",
-                base: this.base,
-                filter: this.filter,
-                required: this.required,
-                loaded: this.loaded,
-                inserted: this.inserted
-            };
-
-            lang.dump(o, 1);
-        },
-
-        _combine: function() {
-
-                this._combining = []; 
-
-                var self = this,
-                    s=this.sorted,
-                    len = s.length,
-                    js = this.comboBase,
-                    css = this.comboBase,
-                    target, 
-                    startLen = js.length,
-                    i, m, type = this.loadType;
-
-                YAHOO.log('type ' + type);
-
-                for (i=0; i<len; i=i+1) {
-
-                    m = this.moduleInfo[s[i]];
-
-                    if (m && !m.ext && (!type || type === m.type)) {
-
-                        target = this.root + m.path;
-
-                        // if (i < len-1) {
-                        target += '&';
-                        // }
-
-                        if (m.type == 'js') {
-                            js += target;
-                        } else {
-                            css += target;
-                        }
-
-                        // YAHOO.log(target);
-                        this._combining.push(s[i]);
-                    }
-                }
-
-                if (this._combining.length) {
-
-YAHOO.log('Attempting to combine: ' + this._combining, "info", "loader");
-
-                    var callback=function(o) {
-                        // YAHOO.log('Combo complete: ' + o.data, "info", "loader");
-                        // this._combineComplete = true;
-
-                        var c=this._combining, len=c.length, i, m;
-                        for (i=0; i<len; i=i+1) {
-                            this.inserted[c[i]] = true;
-                        }
-
-                        this.loadNext(o.data);
-                    }, 
-                    
-                    loadScript = function() {
-                        // YAHOO.log('combining js: ' + js);
-                        if (js.length > startLen) {
-                            YAHOO.util.Get.script(self._filter(js), {
-                                data: self._loading,
-                                onSuccess: callback,
-                                onFailure: self._onFailure,
-                                onTimeout: self._onTimeout,
-                                insertBefore: self.insertBefore,
-                                charset: self.charset,
-                                timeout: self.timeout,
-                                scope: self 
-                            });
-                        }
-                    };
-
-                    // load the css first
-                    // YAHOO.log('combining css: ' + css);
-                    if (css.length > startLen) {
-                        YAHOO.util.Get.css(this._filter(css), {
-                            data: this._loading,
-                            onSuccess: loadScript,
-                            onFailure: this._onFailure,
-                            onTimeout: this._onTimeout,
-                            insertBefore: this.insertBefore,
-                            charset: this.charset,
-                            timeout: this.timeout,
-                            scope: self 
-                        });
-                    } else {
-                        loadScript();
-                    }
-
-                    return;
-
-                } else {
-                    // this._combineComplete = true;
-                    this.loadNext(this._loading);
-                }
-        }, 
-
-        /**
-         * inserts the requested modules and their dependencies.  
-         * <code>type</code> can be "js" or "css".  Both script and 
-         * css are inserted if type is not provided.
-         * @method insert
-         * @param o optional options object
-         * @param type {string} the type of dependency to insert
-         */
-        insert: function(o, type) {
-            // if (o) {
-            //     Y.log("insert: " + lang.dump(o, 1) + ", " + type);
-            // } else {
-            //     Y.log("insert: " + this.toString() + ", " + type);
-            // }
-
-            // build the dependency list
-            this.calculate(o);
-
-
-            // set a flag to indicate the load has started
-            this._loading = true;
-
-            // flag to indicate we are done with the combo service
-            // and any additional files will need to be loaded
-            // individually
-            // this._combineComplete = false;
-
-            // keep the loadType (js, css or undefined) cached
-            this.loadType = type;
-
-            if (this.combine) {
-                return this._combine();
-            }
-
-            if (!type) {
-                // Y.log("trying to load css first");
-                var self = this;
-                this._internalCallback = function() {
-                            self._internalCallback = null;
-                            self.insert(null, "js");
-                        };
-                this.insert(null, "css");
-                return;
-            }
-
-
-            // start the load
-            this.loadNext();
-
-        },
-
-        /**
-         * Interns the script for the requested modules.  The callback is
-         * provided a reference to the sandboxed YAHOO object.  This only
-         * applies to the script: css can not be sandboxed; css will be
-         * loaded into the page normally if specified.
-         * @method sandbox
-         * @param callback {Function} the callback to exectued when the load is
-         *        complete.
-         */
-        sandbox: function(o, type) {
-            // if (o) {
-                // YAHOO.log("sandbox: " + lang.dump(o, 1) + ", " + type);
-            // } else {
-                // YAHOO.log("sandbox: " + this.toString() + ", " + type);
-            // }
-
-            this._config(o);
-
-            if (!this.onSuccess) {
-throw new Error("You must supply an onSuccess handler for your sandbox");
-            }
-
-            this._sandbox = true;
-
-            var self = this;
-
-            // take care of any css first (this can't be sandboxed)
-            if (!type || type !== "js") {
-                this._internalCallback = function() {
-                            self._internalCallback = null;
-                            self.sandbox(null, "js");
-                        };
-                this.insert(null, "css");
-                return;
-            }
-
-            // get the connection manager if not on the page
-            if (!util.Connect) {
-                // get a new loader instance to load connection.
-                var ld = new YAHOO.util.YUILoader();
-                ld.insert({
-                    base: this.base,
-                    filter: this.filter,
-                    require: "connection",
-                    insertBefore: this.insertBefore,
-                    charset: this.charset,
-                    onSuccess: function() {
-                        this.sandbox(null, "js");
-                    },
-                    scope: this
-                }, "js");
-                return;
-            }
-
-            this._scriptText = [];
-            this._loadCount = 0;
-            this._stopCount = this.sorted.length;
-            this._xhr = [];
-
-            this.calculate();
-
-            var s=this.sorted, l=s.length, i, m, url;
-
-            for (i=0; i<l; i=i+1) {
-                m = this.moduleInfo[s[i]];
-
-                // undefined modules cause a failure
-                if (!m) {
-                    this._onFailure("undefined module " + m);
-                    for (var j=0;j<this._xhr.length;j=j+1) {
-                        this._xhr[j].abort();
-                    }
-                    return;
-                }
-
-                // css files should be done
-                if (m.type !== "js") {
-                    this._loadCount++;
-                    continue;
-                }
-
-                url = m.fullpath;
-                url = (url) ? this._filter(url) : this._url(m.path);
-
-                // YAHOO.log("xhr request: " + url + ", " + i);
-
-                var xhrData = {
-
-                    success: function(o) {
-                        
-                        var idx=o.argument[0], name=o.argument[2];
-
-                        // store the response in the position it was requested
-                        this._scriptText[idx] = o.responseText; 
-                        
-                        // YAHOO.log("received: " + o.responseText.substr(0, 100) + ", " + idx);
-                    
-                        if (this.onProgress) {
-                            this.onProgress.call(this.scope, {
-                                        name: name,
-                                        scriptText: o.responseText,
-                                        xhrResponse: o,
-                                        data: this.data
-                                    });
-                        }
-
-                        // only generate the sandbox once everything is loaded
-                        this._loadCount++;
-
-                        if (this._loadCount >= this._stopCount) {
-
-                            // the variable to find
-                            var v = this.varName || "YAHOO";
-
-                            // wrap the contents of the requested modules in an anonymous function
-                            var t = "(function() {\n";
-                        
-                            // return the locally scoped reference.
-                            var b = "\nreturn " + v + ";\n})();";
-
-                            var ref = eval(t + this._scriptText.join("\n") + b);
-
-                            this._pushEvents(ref);
-
-                            if (ref) {
-                                this.onSuccess.call(this.scope, {
-                                        reference: ref,
-                                        data: this.data
-                                    });
-                            } else {
-                                this._onFailure.call(this.varName + " reference failure");
-                            }
-                        }
-                    },
-
-                    failure: function(o) {
-                        this.onFailure.call(this.scope, {
-                                msg: "XHR failure",
-                                xhrResponse: o,
-                                data: this.data
-                            });
-                    },
-
-                    scope: this,
-
-                    // module index, module name, sandbox name
-                    argument: [i, url, s[i]]
-
-                };
-
-                this._xhr.push(util.Connect.asyncRequest('GET', url, xhrData));
-            }
-        },
-
-        /**
-         * Executed every time a module is loaded, and if we are in a load
-         * cycle, we attempt to load the next script.  Public so that it
-         * is possible to call this if using a method other than
-         * YAHOO.register to determine when scripts are fully loaded
-         * @method loadNext
-         * @param mname {string} optional the name of the module that has
-         * been loaded (which is usually why it is time to load the next
-         * one)
-         */
-        loadNext: function(mname) {
-
-            // It is possible that this function is executed due to something
-            // else one the page loading a YUI module.  Only react when we
-            // are actively loading something
-            if (!this._loading) {
-                return;
-            }
-
-
-            if (mname) {
-
-                // if the module that was just loaded isn't what we were expecting,
-                // continue to wait
-                if (mname !== this._loading) {
-                    return;
-                }
-
-                // YAHOO.log("loadNext executing, just loaded " + mname);
-
-                // The global handler that is called when each module is loaded
-                // will pass that module name to this function.  Storing this
-                // data to avoid loading the same module multiple times
-                this.inserted[mname] = true;
-
-                if (this.onProgress) {
-                    this.onProgress.call(this.scope, {
-                            name: mname,
-                            data: this.data
-                        });
-                }
-                //var o = this.getProvides(mname);
-                //this.inserted = lang.merge(this.inserted, o);
-            }
-
-            var s=this.sorted, len=s.length, i, m;
-
-            for (i=0; i<len; i=i+1) {
-
-                // This.inserted keeps track of what the loader has loaded
-                if (s[i] in this.inserted) {
-                    // YAHOO.log(s[i] + " alread loaded ");
-                    continue;
-                }
-
-                // Because rollups will cause multiple load notifications
-                // from YAHOO, loadNext may be called multiple times for
-                // the same module when loading a rollup.  We can safely
-                // skip the subsequent requests
-                if (s[i] === this._loading) {
-                    // YAHOO.log("still loading " + s[i] + ", waiting");
-                    return;
-                }
-
-                // log("inserting " + s[i]);
-                m = this.moduleInfo[s[i]];
-
-                if (!m) {
-                    this.onFailure.call(this.scope, {
-                            msg: "undefined module " + m,
-                            data: this.data
-                        });
-                    return;
-                }
-
-                // The load type is stored to offer the possibility to load
-                // the css separately from the script.
-                if (!this.loadType || this.loadType === m.type) {
-                    this._loading = s[i];
-                    //YAHOO.log("attempting to load " + s[i] + ", " + this.base);
-
-                    var fn=(m.type === "css") ? util.Get.css : util.Get.script,
-                        url = m.fullpath,
-                        self=this, 
-                        c=function(o) {
-                            self.loadNext(o.data);
-                        };
-
-                        url = (url) ? this._filter(url) : this._url(m.path);
-
-                    // safari 2.x or lower, script, and part of YUI
-                    if (env.ua.webkit && env.ua.webkit < 420 && m.type === "js" && 
-                          !m.varName) {
-                          //YUI.info.moduleInfo[s[i]]) {
-                          //YAHOO.log("using YAHOO env " + s[i] + ", " + m.varName);
-                        c = null;
-                        this._useYahooListener = true;
-                    }
-
-                    fn(url, {
-                        data: s[i],
-                        onSuccess: c,
-                        onFailure: this._onFailure,
-                        onTimeout: this._onTimeout,
-                        insertBefore: this.insertBefore,
-                        charset: this.charset,
-                        timeout: this.timeout,
-                        varName: m.varName,
-                        scope: self 
-                    });
-
-                    return;
-                }
-            }
-
-            // we are finished
-            this._loading = null;
-
-            // internal callback for loading css first
-            if (this._internalCallback) {
-                var f = this._internalCallback;
-                this._internalCallback = null;
-                f.call(this);
-            } else if (this.onSuccess) {
-                this._pushEvents();
-                this.onSuccess.call(this.scope, {
-                        data: this.data
-                    });
-            }
-
-        },
-
-        /**
-         * In IE, the onAvailable/onDOMReady events need help when Event is
-         * loaded dynamically
-         * @method _pushEvents
-         * @param {Function} optional function reference
-         * @private
-         */
-        _pushEvents: function(ref) {
-            var r = ref || YAHOO;
-            if (r.util && r.util.Event) {
-                r.util.Event._load();
-            }
-        },
-
-        /**
-         * Applies filter
-         * method _filter
-         * @return {string} the filtered string
-         * @private
-         */
-        _filter: function(str) {
-            var f = this.filter;
-            return (f) ?  str.replace(new RegExp(f.searchExp, 'g'), f.replaceStr) : str;
-        },
-
-        /**
-         * Generates the full url for a module
-         * method _url
-         * @param path {string} the path fragment
-         * @return {string} the full url
-         * @private
-         */
-        _url: function(path) {
-            return this._filter((this.base || "") + path);
-        }
-
-    };
-
-})();
-
-YAHOO.register("yuiloader", YAHOO.util.YUILoader, {version: "2.8.0r4", build: "2449"});
diff --git a/koha-tmpl/intranet-tmpl/prog/en/lib/yui/yuiloader/yuiloader-min.js b/koha-tmpl/intranet-tmpl/prog/en/lib/yui/yuiloader/yuiloader-min.js
deleted file mode 100644 (file)
index c2ec5a2..0000000
+++ /dev/null
@@ -1,10 +0,0 @@
-/*
-Copyright (c) 2009, Yahoo! Inc. All rights reserved.
-Code licensed under the BSD License:
-http://developer.yahoo.net/yui/license.txt
-version: 2.8.0r4
-*/
-if(typeof YAHOO=="undefined"||!YAHOO){var YAHOO={};}YAHOO.namespace=function(){var A=arguments,E=null,C,B,D;for(C=0;C<A.length;C=C+1){D=(""+A[C]).split(".");E=YAHOO;for(B=(D[0]=="YAHOO")?1:0;B<D.length;B=B+1){E[D[B]]=E[D[B]]||{};E=E[D[B]];}}return E;};YAHOO.log=function(D,A,C){var B=YAHOO.widget.Logger;if(B&&B.log){return B.log(D,A,C);}else{return false;}};YAHOO.register=function(A,E,D){var I=YAHOO.env.modules,B,H,G,F,C;if(!I[A]){I[A]={versions:[],builds:[]};}B=I[A];H=D.version;G=D.build;F=YAHOO.env.listeners;B.name=A;B.version=H;B.build=G;B.versions.push(H);B.builds.push(G);B.mainClass=E;for(C=0;C<F.length;C=C+1){F[C](B);}if(E){E.VERSION=H;E.BUILD=G;}else{YAHOO.log("mainClass is undefined for module "+A,"warn");}};YAHOO.env=YAHOO.env||{modules:[],listeners:[]};YAHOO.env.getVersion=function(A){return YAHOO.env.modules[A]||null;};YAHOO.env.ua=function(){var D=function(H){var I=0;return parseFloat(H.replace(/\./g,function(){return(I++==1)?"":".";}));},G=navigator,F={ie:0,opera:0,gecko:0,webkit:0,mobile:null,air:0,caja:G.cajaVersion,secure:false,os:null},C=navigator&&navigator.userAgent,E=window&&window.location,B=E&&E.href,A;F.secure=B&&(B.toLowerCase().indexOf("https")===0);if(C){if((/windows|win32/i).test(C)){F.os="windows";}else{if((/macintosh/i).test(C)){F.os="macintosh";}}if((/KHTML/).test(C)){F.webkit=1;}A=C.match(/AppleWebKit\/([^\s]*)/);if(A&&A[1]){F.webkit=D(A[1]);if(/ Mobile\//.test(C)){F.mobile="Apple";}else{A=C.match(/NokiaN[^\/]*/);if(A){F.mobile=A[0];}}A=C.match(/AdobeAIR\/([^\s]*)/);if(A){F.air=A[0];}}if(!F.webkit){A=C.match(/Opera[\s\/]([^\s]*)/);if(A&&A[1]){F.opera=D(A[1]);A=C.match(/Opera Mini[^;]*/);if(A){F.mobile=A[0];}}else{A=C.match(/MSIE\s([^;]*)/);if(A&&A[1]){F.ie=D(A[1]);}else{A=C.match(/Gecko\/([^\s]*)/);if(A){F.gecko=1;A=C.match(/rv:([^\s\)]*)/);if(A&&A[1]){F.gecko=D(A[1]);}}}}}}return F;}();(function(){YAHOO.namespace("util","widget","example");if("undefined"!==typeof YAHOO_config){var B=YAHOO_config.listener,A=YAHOO.env.listeners,D=true,C;if(B){for(C=0;C<A.length;C++){if(A[C]==B){D=false;break;}}if(D){A.push(B);}}}})();YAHOO.lang=YAHOO.lang||{};(function(){var B=YAHOO.lang,A=Object.prototype,H="[object Array]",C="[object Function]",G="[object Object]",E=[],F=["toString","valueOf"],D={isArray:function(I){return A.toString.apply(I)===H;},isBoolean:function(I){return typeof I==="boolean";},isFunction:function(I){return(typeof I==="function")||A.toString.apply(I)===C;},isNull:function(I){return I===null;},isNumber:function(I){return typeof I==="number"&&isFinite(I);},isObject:function(I){return(I&&(typeof I==="object"||B.isFunction(I)))||false;},isString:function(I){return typeof I==="string";},isUndefined:function(I){return typeof I==="undefined";},_IEEnumFix:(YAHOO.env.ua.ie)?function(K,J){var I,M,L;for(I=0;I<F.length;I=I+1){M=F[I];L=J[M];if(B.isFunction(L)&&L!=A[M]){K[M]=L;}}}:function(){},extend:function(L,M,K){if(!M||!L){throw new Error("extend failed, please check that "+"all dependencies are included.");}var J=function(){},I;J.prototype=M.prototype;L.prototype=new J();L.prototype.constructor=L;L.superclass=M.prototype;if(M.prototype.constructor==A.constructor){M.prototype.constructor=M;}if(K){for(I in K){if(B.hasOwnProperty(K,I)){L.prototype[I]=K[I];}}B._IEEnumFix(L.prototype,K);}},augmentObject:function(M,L){if(!L||!M){throw new Error("Absorb failed, verify dependencies.");}var I=arguments,K,N,J=I[2];if(J&&J!==true){for(K=2;K<I.length;K=K+1){M[I[K]]=L[I[K]];}}else{for(N in L){if(J||!(N in M)){M[N]=L[N];}}B._IEEnumFix(M,L);}},augmentProto:function(L,K){if(!K||!L){throw new Error("Augment failed, verify dependencies.");}var I=[L.prototype,K.prototype],J;for(J=2;J<arguments.length;J=J+1){I.push(arguments[J]);}B.augmentObject.apply(this,I);},dump:function(I,N){var K,M,P=[],Q="{...}",J="f(){...}",O=", ",L=" => ";if(!B.isObject(I)){return I+"";}else{if(I instanceof Date||("nodeType" in I&&"tagName" in I)){return I;}else{if(B.isFunction(I)){return J;}}}N=(B.isNumber(N))?N:3;if(B.isArray(I)){P.push("[");for(K=0,M=I.length;K<M;K=K+1){if(B.isObject(I[K])){P.push((N>0)?B.dump(I[K],N-1):Q);}else{P.push(I[K]);}P.push(O);}if(P.length>1){P.pop();}P.push("]");}else{P.push("{");for(K in I){if(B.hasOwnProperty(I,K)){P.push(K+L);if(B.isObject(I[K])){P.push((N>0)?B.dump(I[K],N-1):Q);}else{P.push(I[K]);}P.push(O);}}if(P.length>1){P.pop();}P.push("}");}return P.join("");},substitute:function(Y,J,R){var N,M,L,U,V,X,T=[],K,O="dump",S=" ",I="{",W="}",Q,P;for(;;){N=Y.lastIndexOf(I);if(N<0){break;}M=Y.indexOf(W,N);if(N+1>=M){break;}K=Y.substring(N+1,M);U=K;X=null;L=U.indexOf(S);if(L>-1){X=U.substring(L+1);U=U.substring(0,L);}V=J[U];if(R){V=R(U,V,X);}if(B.isObject(V)){if(B.isArray(V)){V=B.dump(V,parseInt(X,10));}else{X=X||"";Q=X.indexOf(O);if(Q>-1){X=X.substring(4);}P=V.toString();if(P===G||Q>-1){V=B.dump(V,parseInt(X,10));}else{V=P;}}}else{if(!B.isString(V)&&!B.isNumber(V)){V="~-"+T.length+"-~";T[T.length]=K;}}Y=Y.substring(0,N)+V+Y.substring(M+1);}for(N=T.length-1;N>=0;N=N-1){Y=Y.replace(new RegExp("~-"+N+"-~"),"{"+T[N]+"}","g");}return Y;},trim:function(I){try{return I.replace(/^\s+|\s+$/g,"");}catch(J){return I;}},merge:function(){var L={},J=arguments,I=J.length,K;for(K=0;K<I;K=K+1){B.augmentObject(L,J[K],true);}return L;},later:function(P,J,Q,L,M){P=P||0;J=J||{};var K=Q,O=L,N,I;if(B.isString(Q)){K=J[Q];}if(!K){throw new TypeError("method undefined");}if(O&&!B.isArray(O)){O=[L];}N=function(){K.apply(J,O||E);};I=(M)?setInterval(N,P):setTimeout(N,P);return{interval:M,cancel:function(){if(this.interval){clearInterval(I);}else{clearTimeout(I);}}};},isValue:function(I){return(B.isObject(I)||B.isString(I)||B.isNumber(I)||B.isBoolean(I));}};B.hasOwnProperty=(A.hasOwnProperty)?function(I,J){return I&&I.hasOwnProperty(J);}:function(I,J){return !B.isUndefined(I[J])&&I.constructor.prototype[J]!==I[J];};D.augmentObject(B,D,true);YAHOO.util.Lang=B;B.augment=B.augmentProto;YAHOO.augment=B.augmentProto;YAHOO.extend=B.extend;})();YAHOO.register("yahoo",YAHOO,{version:"2.8.0r4",build:"2449"});
-YAHOO.util.Get=function(){var M={},L=0,R=0,E=false,N=YAHOO.env.ua,S=YAHOO.lang;var J=function(W,T,X){var U=X||window,Y=U.document,Z=Y.createElement(W);for(var V in T){if(T[V]&&YAHOO.lang.hasOwnProperty(T,V)){Z.setAttribute(V,T[V]);}}return Z;};var I=function(U,V,T){var W={id:"yui__dyn_"+(R++),type:"text/css",rel:"stylesheet",href:U};if(T){S.augmentObject(W,T);}return J("link",W,V);};var P=function(U,V,T){var W={id:"yui__dyn_"+(R++),type:"text/javascript",src:U};if(T){S.augmentObject(W,T);}return J("script",W,V);};var A=function(T,U){return{tId:T.tId,win:T.win,data:T.data,nodes:T.nodes,msg:U,purge:function(){D(this.tId);}};};var B=function(T,W){var U=M[W],V=(S.isString(T))?U.win.document.getElementById(T):T;if(!V){Q(W,"target node not found: "+T);}return V;};var Q=function(W,V){var T=M[W];if(T.onFailure){var U=T.scope||T.win;T.onFailure.call(U,A(T,V));}};var C=function(W){var T=M[W];T.finished=true;if(T.aborted){var V="transaction "+W+" was aborted";Q(W,V);return;}if(T.onSuccess){var U=T.scope||T.win;T.onSuccess.call(U,A(T));}};var O=function(V){var T=M[V];if(T.onTimeout){var U=T.scope||T;T.onTimeout.call(U,A(T));}};var G=function(V,Z){var U=M[V];if(U.timer){U.timer.cancel();}if(U.aborted){var X="transaction "+V+" was aborted";Q(V,X);return;}if(Z){U.url.shift();if(U.varName){U.varName.shift();}}else{U.url=(S.isString(U.url))?[U.url]:U.url;if(U.varName){U.varName=(S.isString(U.varName))?[U.varName]:U.varName;}}var c=U.win,b=c.document,a=b.getElementsByTagName("head")[0],W;if(U.url.length===0){if(U.type==="script"&&N.webkit&&N.webkit<420&&!U.finalpass&&!U.varName){var Y=P(null,U.win,U.attributes);Y.innerHTML='YAHOO.util.Get._finalize("'+V+'");';U.nodes.push(Y);a.appendChild(Y);}else{C(V);}return;}var T=U.url[0];if(!T){U.url.shift();return G(V);}if(U.timeout){U.timer=S.later(U.timeout,U,O,V);}if(U.type==="script"){W=P(T,c,U.attributes);}else{W=I(T,c,U.attributes);}F(U.type,W,V,T,c,U.url.length);U.nodes.push(W);if(U.insertBefore){var e=B(U.insertBefore,V);if(e){e.parentNode.insertBefore(W,e);}}else{a.appendChild(W);}if((N.webkit||N.gecko)&&U.type==="css"){G(V,T);}};var K=function(){if(E){return;}E=true;for(var T in M){var U=M[T];if(U.autopurge&&U.finished){D(U.tId);delete M[T];}}E=false;};var D=function(Z){if(M[Z]){var T=M[Z],U=T.nodes,X=U.length,c=T.win.document,a=c.getElementsByTagName("head")[0],V,Y,W,b;if(T.insertBefore){V=B(T.insertBefore,Z);if(V){a=V.parentNode;}}for(Y=0;Y<X;Y=Y+1){W=U[Y];if(W.clearAttributes){W.clearAttributes();}else{for(b in W){delete W[b];}}a.removeChild(W);}T.nodes=[];}};var H=function(U,T,V){var X="q"+(L++);V=V||{};if(L%YAHOO.util.Get.PURGE_THRESH===0){K();}M[X]=S.merge(V,{tId:X,type:U,url:T,finished:false,aborted:false,nodes:[]});var W=M[X];W.win=W.win||window;W.scope=W.scope||W.win;W.autopurge=("autopurge" in W)?W.autopurge:(U==="script")?true:false;if(V.charset){W.attributes=W.attributes||{};W.attributes.charset=V.charset;}S.later(0,W,G,X);return{tId:X};};var F=function(c,X,W,U,Y,Z,b){var a=b||G;if(N.ie){X.onreadystatechange=function(){var d=this.readyState;if("loaded"===d||"complete"===d){X.onreadystatechange=null;a(W,U);}};}else{if(N.webkit){if(c==="script"){if(N.webkit>=420){X.addEventListener("load",function(){a(W,U);});}else{var T=M[W];if(T.varName){var V=YAHOO.util.Get.POLL_FREQ;T.maxattempts=YAHOO.util.Get.TIMEOUT/V;T.attempts=0;T._cache=T.varName[0].split(".");T.timer=S.later(V,T,function(j){var f=this._cache,e=f.length,d=this.win,g;for(g=0;g<e;g=g+1){d=d[f[g]];if(!d){this.attempts++;if(this.attempts++>this.maxattempts){var h="Over retry limit, giving up";T.timer.cancel();Q(W,h);}else{}return;}}T.timer.cancel();a(W,U);},null,true);}else{S.later(YAHOO.util.Get.POLL_FREQ,null,a,[W,U]);}}}}else{X.onload=function(){a(W,U);};}}};return{POLL_FREQ:10,PURGE_THRESH:20,TIMEOUT:2000,_finalize:function(T){S.later(0,null,C,T);},abort:function(U){var V=(S.isString(U))?U:U.tId;var T=M[V];if(T){T.aborted=true;}},script:function(T,U){return H("script",T,U);},css:function(T,U){return H("css",T,U);}};}();YAHOO.register("get",YAHOO.util.Get,{version:"2.8.0r4",build:"2449"});(function(){var Y=YAHOO,util=Y.util,lang=Y.lang,env=Y.env,PROV="_provides",SUPER="_supersedes",REQ="expanded",AFTER="_after";var YUI={dupsAllowed:{"yahoo":true,"get":true},info:{"root":"2.8.0r4/build/","base":"http://yui.yahooapis.com/2.8.0r4/build/","comboBase":"http://yui.yahooapis.com/combo?","skin":{"defaultSkin":"sam","base":"assets/skins/","path":"skin.css","after":["reset","fonts","grids","base"],"rollup":3},dupsAllowed:["yahoo","get"],"moduleInfo":{"animation":{"type":"js","path":"animation/animation-min.js","requires":["dom","event"]},"autocomplete":{"type":"js","path":"autocomplete/autocomplete-min.js","requires":["dom","event","datasource"],"optional":["connection","animation"],"skinnable":true},"base":{"type":"css","path":"base/base-min.css","after":["reset","fonts","grids"]},"button":{"type":"js","path":"button/button-min.js","requires":["element"],"optional":["menu"],"skinnable":true},"calendar":{"type":"js","path":"calendar/calendar-min.js","requires":["event","dom"],supersedes:["datemeth"],"skinnable":true},"carousel":{"type":"js","path":"carousel/carousel-min.js","requires":["element"],"optional":["animation"],"skinnable":true},"charts":{"type":"js","path":"charts/charts-min.js","requires":["element","json","datasource","swf"]},"colorpicker":{"type":"js","path":"colorpicker/colorpicker-min.js","requires":["slider","element"],"optional":["animation"],"skinnable":true},"connection":{"type":"js","path":"connection/connection-min.js","requires":["event"],"supersedes":["connectioncore"]},"connectioncore":{"type":"js","path":"connection/connection_core-min.js","requires":["event"],"pkg":"connection"},"container":{"type":"js","path":"container/container-min.js","requires":["dom","event"],"optional":["dragdrop","animation","connection"],"supersedes":["containercore"],"skinnable":true},"containercore":{"type":"js","path":"container/container_core-min.js","requires":["dom","event"],"pkg":"container"},"cookie":{"type":"js","path":"cookie/cookie-min.js","requires":["yahoo"]},"datasource":{"type":"js","path":"datasource/datasource-min.js","requires":["event"],"optional":["connection"]},"datatable":{"type":"js","path":"datatable/datatable-min.js","requires":["element","datasource"],"optional":["calendar","dragdrop","paginator"],"skinnable":true},datemath:{"type":"js","path":"datemath/datemath-min.js","requires":["yahoo"]},"dom":{"type":"js","path":"dom/dom-min.js","requires":["yahoo"]},"dragdrop":{"type":"js","path":"dragdrop/dragdrop-min.js","requires":["dom","event"]},"editor":{"type":"js","path":"editor/editor-min.js","requires":["menu","element","button"],"optional":["animation","dragdrop"],"supersedes":["simpleeditor"],"skinnable":true},"element":{"type":"js","path":"element/element-min.js","requires":["dom","event"],"optional":["event-mouseenter","event-delegate"]},"element-delegate":{"type":"js","path":"element-delegate/element-delegate-min.js","requires":["element"]},"event":{"type":"js","path":"event/event-min.js","requires":["yahoo"]},"event-simulate":{"type":"js","path":"event-simulate/event-simulate-min.js","requires":["event"]},"event-delegate":{"type":"js","path":"event-delegate/event-delegate-min.js","requires":["event"],"optional":["selector"]},"event-mouseenter":{"type":"js","path":"event-mouseenter/event-mouseenter-min.js","requires":["dom","event"]},"fonts":{"type":"css","path":"fonts/fonts-min.css"},"get":{"type":"js","path":"get/get-min.js","requires":["yahoo"]},"grids":{"type":"css","path":"grids/grids-min.css","requires":["fonts"],"optional":["reset"]},"history":{"type":"js","path":"history/history-min.js","requires":["event"]},"imagecropper":{"type":"js","path":"imagecropper/imagecropper-min.js","requires":["dragdrop","element","resize"],"skinnable":true},"imageloader":{"type":"js","path":"imageloader/imageloader-min.js","requires":["event","dom"]},"json":{"type":"js","path":"json/json-min.js","requires":["yahoo"]},"layout":{"type":"js","path":"layout/layout-min.js","requires":["element"],"optional":["animation","dragdrop","resize","selector"],"skinnable":true},"logger":{"type":"js","path":"logger/logger-min.js","requires":["event","dom"],"optional":["dragdrop"],"skinnable":true},"menu":{"type":"js","path":"menu/menu-min.js","requires":["containercore"],"skinnable":true},"paginator":{"type":"js","path":"paginator/paginator-min.js","requires":["element"],"skinnable":true},"profiler":{"type":"js","path":"profiler/profiler-min.js","requires":["yahoo"]},"profilerviewer":{"type":"js","path":"profilerviewer/profilerviewer-min.js","requires":["profiler","yuiloader","element"],"skinnable":true},"progressbar":{"type":"js","path":"progressbar/progressbar-min.js","requires":["element"],"optional":["animation"],"skinnable":true},"reset":{"type":"css","path":"reset/reset-min.css"},"reset-fonts-grids":{"type":"css","path":"reset-fonts-grids/reset-fonts-grids.css","supersedes":["reset","fonts","grids","reset-fonts"],"rollup":4},"reset-fonts":{"type":"css","path":"reset-fonts/reset-fonts.css","supersedes":["reset","fonts"],"rollup":2},"resize":{"type":"js","path":"resize/resize-min.js","requires":["dragdrop","element"],"optional":["animation"],"skinnable":true},"selector":{"type":"js","path":"selector/selector-min.js","requires":["yahoo","dom"]},"simpleeditor":{"type":"js","path":"editor/simpleeditor-min.js","requires":["element"],"optional":["containercore","menu","button","animation","dragdrop"],"skinnable":true,"pkg":"editor"},"slider":{"type":"js","path":"slider/slider-min.js","requires":["dragdrop"],"optional":["animation"],"skinnable":true},"storage":{"type":"js","path":"storage/storage-min.js","requires":["yahoo","event","cookie"],"optional":["swfstore"]},"stylesheet":{"type":"js","path":"stylesheet/stylesheet-min.js","requires":["yahoo"]},"swf":{"type":"js","path":"swf/swf-min.js","requires":["element"],"supersedes":["swfdetect"]},"swfdetect":{"type":"js","path":"swfdetect/swfdetect-min.js","requires":["yahoo"]},"swfstore":{"type":"js","path":"swfstore/swfstore-min.js","requires":["element","cookie","swf"]},"tabview":{"type":"js","path":"tabview/tabview-min.js","requires":["element"],"optional":["connection"],"skinnable":true},"treeview":{"type":"js","path":"treeview/treeview-min.js","requires":["event","dom"],"optional":["json","animation","calendar"],"skinnable":true},"uploader":{"type":"js","path":"uploader/uploader-min.js","requires":["element"]},"utilities":{"type":"js","path":"utilities/utilities.js","supersedes":["yahoo","event","dragdrop","animation","dom","connection","element","yahoo-dom-event","get","yuiloader","yuiloader-dom-event"],"rollup":8},"yahoo":{"type":"js","path":"yahoo/yahoo-min.js"},"yahoo-dom-event":{"type":"js","path":"yahoo-dom-event/yahoo-dom-event.js","supersedes":["yahoo","event","dom"],"rollup":3},"yuiloader":{"type":"js","path":"yuiloader/yuiloader-min.js","supersedes":["yahoo","get"]},"yuiloader-dom-event":{"type":"js","path":"yuiloader-dom-event/yuiloader-dom-event.js","supersedes":["yahoo","dom","event","get","yuiloader","yahoo-dom-event"],"rollup":5},"yuitest":{"type":"js","path":"yuitest/yuitest-min.js","requires":["logger"],"optional":["event-simulate"],"skinnable":true}}},ObjectUtil:{appendArray:function(o,a){if(a){for(var i=0;
-i<a.length;i=i+1){o[a[i]]=true;}}},keys:function(o,ordered){var a=[],i;for(i in o){if(lang.hasOwnProperty(o,i)){a.push(i);}}return a;}},ArrayUtil:{appendArray:function(a1,a2){Array.prototype.push.apply(a1,a2);},indexOf:function(a,val){for(var i=0;i<a.length;i=i+1){if(a[i]===val){return i;}}return -1;},toObject:function(a){var o={};for(var i=0;i<a.length;i=i+1){o[a[i]]=true;}return o;},uniq:function(a){return YUI.ObjectUtil.keys(YUI.ArrayUtil.toObject(a));}}};YAHOO.util.YUILoader=function(o){this._internalCallback=null;this._useYahooListener=false;this.onSuccess=null;this.onFailure=Y.log;this.onProgress=null;this.onTimeout=null;this.scope=this;this.data=null;this.insertBefore=null;this.charset=null;this.varName=null;this.base=YUI.info.base;this.comboBase=YUI.info.comboBase;this.combine=false;this.root=YUI.info.root;this.timeout=0;this.ignore=null;this.force=null;this.allowRollup=true;this.filter=null;this.required={};this.moduleInfo=lang.merge(YUI.info.moduleInfo);this.rollups=null;this.loadOptional=false;this.sorted=[];this.loaded={};this.dirty=true;this.inserted={};var self=this;env.listeners.push(function(m){if(self._useYahooListener){self.loadNext(m.name);}});this.skin=lang.merge(YUI.info.skin);this._config(o);};Y.util.YUILoader.prototype={FILTERS:{RAW:{"searchExp":"-min\\.js","replaceStr":".js"},DEBUG:{"searchExp":"-min\\.js","replaceStr":"-debug.js"}},SKIN_PREFIX:"skin-",_config:function(o){if(o){for(var i in o){if(lang.hasOwnProperty(o,i)){if(i=="require"){this.require(o[i]);}else{this[i]=o[i];}}}}var f=this.filter;if(lang.isString(f)){f=f.toUpperCase();if(f==="DEBUG"){this.require("logger");}if(!Y.widget.LogWriter){Y.widget.LogWriter=function(){return Y;};}this.filter=this.FILTERS[f];}},addModule:function(o){if(!o||!o.name||!o.type||(!o.path&&!o.fullpath)){return false;}o.ext=("ext" in o)?o.ext:true;o.requires=o.requires||[];this.moduleInfo[o.name]=o;this.dirty=true;return true;},require:function(what){var a=(typeof what==="string")?arguments:what;this.dirty=true;YUI.ObjectUtil.appendArray(this.required,a);},_addSkin:function(skin,mod){var name=this.formatSkin(skin),info=this.moduleInfo,sinf=this.skin,ext=info[mod]&&info[mod].ext;if(!info[name]){this.addModule({"name":name,"type":"css","path":sinf.base+skin+"/"+sinf.path,"after":sinf.after,"rollup":sinf.rollup,"ext":ext});}if(mod){name=this.formatSkin(skin,mod);if(!info[name]){var mdef=info[mod],pkg=mdef.pkg||mod;this.addModule({"name":name,"type":"css","after":sinf.after,"path":pkg+"/"+sinf.base+skin+"/"+mod+".css","ext":ext});}}return name;},getRequires:function(mod){if(!mod){return[];}if(!this.dirty&&mod.expanded){return mod.expanded;}mod.requires=mod.requires||[];var i,d=[],r=mod.requires,o=mod.optional,info=this.moduleInfo,m;for(i=0;i<r.length;i=i+1){d.push(r[i]);m=info[r[i]];YUI.ArrayUtil.appendArray(d,this.getRequires(m));}if(o&&this.loadOptional){for(i=0;i<o.length;i=i+1){d.push(o[i]);YUI.ArrayUtil.appendArray(d,this.getRequires(info[o[i]]));}}mod.expanded=YUI.ArrayUtil.uniq(d);return mod.expanded;},getProvides:function(name,notMe){var addMe=!(notMe),ckey=(addMe)?PROV:SUPER,m=this.moduleInfo[name],o={};if(!m){return o;}if(m[ckey]){return m[ckey];}var s=m.supersedes,done={},me=this;var add=function(mm){if(!done[mm]){done[mm]=true;lang.augmentObject(o,me.getProvides(mm));}};if(s){for(var i=0;i<s.length;i=i+1){add(s[i]);}}m[SUPER]=o;m[PROV]=lang.merge(o);m[PROV][name]=true;return m[ckey];},calculate:function(o){if(o||this.dirty){this._config(o);this._setup();this._explode();if(this.allowRollup){this._rollup();}this._reduce();this._sort();this.dirty=false;}},_setup:function(){var info=this.moduleInfo,name,i,j;for(name in info){if(lang.hasOwnProperty(info,name)){var m=info[name];if(m&&m.skinnable){var o=this.skin.overrides,smod;if(o&&o[name]){for(i=0;i<o[name].length;i=i+1){smod=this._addSkin(o[name][i],name);}}else{smod=this._addSkin(this.skin.defaultSkin,name);}m.requires.push(smod);}}}var l=lang.merge(this.inserted);if(!this._sandbox){l=lang.merge(l,env.modules);}if(this.ignore){YUI.ObjectUtil.appendArray(l,this.ignore);}if(this.force){for(i=0;i<this.force.length;i=i+1){if(this.force[i] in l){delete l[this.force[i]];}}}for(j in l){if(lang.hasOwnProperty(l,j)){lang.augmentObject(l,this.getProvides(j));}}this.loaded=l;},_explode:function(){var r=this.required,i,mod;for(i in r){if(lang.hasOwnProperty(r,i)){mod=this.moduleInfo[i];if(mod){var req=this.getRequires(mod);if(req){YUI.ObjectUtil.appendArray(r,req);}}}}},_skin:function(){},formatSkin:function(skin,mod){var s=this.SKIN_PREFIX+skin;if(mod){s=s+"-"+mod;}return s;},parseSkin:function(mod){if(mod.indexOf(this.SKIN_PREFIX)===0){var a=mod.split("-");return{skin:a[1],module:a[2]};}return null;},_rollup:function(){var i,j,m,s,rollups={},r=this.required,roll,info=this.moduleInfo;if(this.dirty||!this.rollups){for(i in info){if(lang.hasOwnProperty(info,i)){m=info[i];if(m&&m.rollup){rollups[i]=m;}}}this.rollups=rollups;}for(;;){var rolled=false;for(i in rollups){if(!r[i]&&!this.loaded[i]){m=info[i];s=m.supersedes;roll=false;if(!m.rollup){continue;}var skin=(m.ext)?false:this.parseSkin(i),c=0;if(skin){for(j in r){if(lang.hasOwnProperty(r,j)){if(i!==j&&this.parseSkin(j)){c++;roll=(c>=m.rollup);if(roll){break;}}}}}else{for(j=0;j<s.length;j=j+1){if(this.loaded[s[j]]&&(!YUI.dupsAllowed[s[j]])){roll=false;break;}else{if(r[s[j]]){c++;roll=(c>=m.rollup);if(roll){break;}}}}}if(roll){r[i]=true;rolled=true;this.getRequires(m);}}}if(!rolled){break;}}},_reduce:function(){var i,j,s,m,r=this.required;for(i in r){if(i in this.loaded){delete r[i];}else{var skinDef=this.parseSkin(i);if(skinDef){if(!skinDef.module){var skin_pre=this.SKIN_PREFIX+skinDef.skin;for(j in r){if(lang.hasOwnProperty(r,j)){m=this.moduleInfo[j];var ext=m&&m.ext;if(!ext&&j!==i&&j.indexOf(skin_pre)>-1){delete r[j];}}}}}else{m=this.moduleInfo[i];s=m&&m.supersedes;if(s){for(j=0;j<s.length;j=j+1){if(s[j] in r){delete r[s[j]];}}}}}}},_onFailure:function(msg){YAHOO.log("Failure","info","loader");var f=this.onFailure;if(f){f.call(this.scope,{msg:"failure: "+msg,data:this.data,success:false});
-}},_onTimeout:function(){YAHOO.log("Timeout","info","loader");var f=this.onTimeout;if(f){f.call(this.scope,{msg:"timeout",data:this.data,success:false});}},_sort:function(){var s=[],info=this.moduleInfo,loaded=this.loaded,checkOptional=!this.loadOptional,me=this;var requires=function(aa,bb){var mm=info[aa];if(loaded[bb]||!mm){return false;}var ii,rr=mm.expanded,after=mm.after,other=info[bb],optional=mm.optional;if(rr&&YUI.ArrayUtil.indexOf(rr,bb)>-1){return true;}if(after&&YUI.ArrayUtil.indexOf(after,bb)>-1){return true;}if(checkOptional&&optional&&YUI.ArrayUtil.indexOf(optional,bb)>-1){return true;}var ss=info[bb]&&info[bb].supersedes;if(ss){for(ii=0;ii<ss.length;ii=ii+1){if(requires(aa,ss[ii])){return true;}}}if(mm.ext&&mm.type=="css"&&!other.ext&&other.type=="css"){return true;}return false;};for(var i in this.required){if(lang.hasOwnProperty(this.required,i)){s.push(i);}}var p=0;for(;;){var l=s.length,a,b,j,k,moved=false;for(j=p;j<l;j=j+1){a=s[j];for(k=j+1;k<l;k=k+1){if(requires(a,s[k])){b=s.splice(k,1);s.splice(j,0,b[0]);moved=true;break;}}if(moved){break;}else{p=p+1;}}if(!moved){break;}}this.sorted=s;},toString:function(){var o={type:"YUILoader",base:this.base,filter:this.filter,required:this.required,loaded:this.loaded,inserted:this.inserted};lang.dump(o,1);},_combine:function(){this._combining=[];var self=this,s=this.sorted,len=s.length,js=this.comboBase,css=this.comboBase,target,startLen=js.length,i,m,type=this.loadType;YAHOO.log("type "+type);for(i=0;i<len;i=i+1){m=this.moduleInfo[s[i]];if(m&&!m.ext&&(!type||type===m.type)){target=this.root+m.path;target+="&";if(m.type=="js"){js+=target;}else{css+=target;}this._combining.push(s[i]);}}if(this._combining.length){YAHOO.log("Attempting to combine: "+this._combining,"info","loader");var callback=function(o){var c=this._combining,len=c.length,i,m;for(i=0;i<len;i=i+1){this.inserted[c[i]]=true;}this.loadNext(o.data);},loadScript=function(){if(js.length>startLen){YAHOO.util.Get.script(self._filter(js),{data:self._loading,onSuccess:callback,onFailure:self._onFailure,onTimeout:self._onTimeout,insertBefore:self.insertBefore,charset:self.charset,timeout:self.timeout,scope:self});}};if(css.length>startLen){YAHOO.util.Get.css(this._filter(css),{data:this._loading,onSuccess:loadScript,onFailure:this._onFailure,onTimeout:this._onTimeout,insertBefore:this.insertBefore,charset:this.charset,timeout:this.timeout,scope:self});}else{loadScript();}return;}else{this.loadNext(this._loading);}},insert:function(o,type){this.calculate(o);this._loading=true;this.loadType=type;if(this.combine){return this._combine();}if(!type){var self=this;this._internalCallback=function(){self._internalCallback=null;self.insert(null,"js");};this.insert(null,"css");return;}this.loadNext();},sandbox:function(o,type){this._config(o);if(!this.onSuccess){throw new Error("You must supply an onSuccess handler for your sandbox");}this._sandbox=true;var self=this;if(!type||type!=="js"){this._internalCallback=function(){self._internalCallback=null;self.sandbox(null,"js");};this.insert(null,"css");return;}if(!util.Connect){var ld=new YAHOO.util.YUILoader();ld.insert({base:this.base,filter:this.filter,require:"connection",insertBefore:this.insertBefore,charset:this.charset,onSuccess:function(){this.sandbox(null,"js");},scope:this},"js");return;}this._scriptText=[];this._loadCount=0;this._stopCount=this.sorted.length;this._xhr=[];this.calculate();var s=this.sorted,l=s.length,i,m,url;for(i=0;i<l;i=i+1){m=this.moduleInfo[s[i]];if(!m){this._onFailure("undefined module "+m);for(var j=0;j<this._xhr.length;j=j+1){this._xhr[j].abort();}return;}if(m.type!=="js"){this._loadCount++;continue;}url=m.fullpath;url=(url)?this._filter(url):this._url(m.path);var xhrData={success:function(o){var idx=o.argument[0],name=o.argument[2];this._scriptText[idx]=o.responseText;if(this.onProgress){this.onProgress.call(this.scope,{name:name,scriptText:o.responseText,xhrResponse:o,data:this.data});}this._loadCount++;if(this._loadCount>=this._stopCount){var v=this.varName||"YAHOO";var t="(function() {\n";var b="\nreturn "+v+";\n})();";var ref=eval(t+this._scriptText.join("\n")+b);this._pushEvents(ref);if(ref){this.onSuccess.call(this.scope,{reference:ref,data:this.data});}else{this._onFailure.call(this.varName+" reference failure");}}},failure:function(o){this.onFailure.call(this.scope,{msg:"XHR failure",xhrResponse:o,data:this.data});},scope:this,argument:[i,url,s[i]]};this._xhr.push(util.Connect.asyncRequest("GET",url,xhrData));}},loadNext:function(mname){if(!this._loading){return;}if(mname){if(mname!==this._loading){return;}this.inserted[mname]=true;if(this.onProgress){this.onProgress.call(this.scope,{name:mname,data:this.data});}}var s=this.sorted,len=s.length,i,m;for(i=0;i<len;i=i+1){if(s[i] in this.inserted){continue;}if(s[i]===this._loading){return;}m=this.moduleInfo[s[i]];if(!m){this.onFailure.call(this.scope,{msg:"undefined module "+m,data:this.data});return;}if(!this.loadType||this.loadType===m.type){this._loading=s[i];var fn=(m.type==="css")?util.Get.css:util.Get.script,url=m.fullpath,self=this,c=function(o){self.loadNext(o.data);};url=(url)?this._filter(url):this._url(m.path);if(env.ua.webkit&&env.ua.webkit<420&&m.type==="js"&&!m.varName){c=null;this._useYahooListener=true;}fn(url,{data:s[i],onSuccess:c,onFailure:this._onFailure,onTimeout:this._onTimeout,insertBefore:this.insertBefore,charset:this.charset,timeout:this.timeout,varName:m.varName,scope:self});return;}}this._loading=null;if(this._internalCallback){var f=this._internalCallback;this._internalCallback=null;f.call(this);}else{if(this.onSuccess){this._pushEvents();this.onSuccess.call(this.scope,{data:this.data});}}},_pushEvents:function(ref){var r=ref||YAHOO;if(r.util&&r.util.Event){r.util.Event._load();}},_filter:function(str){var f=this.filter;return(f)?str.replace(new RegExp(f.searchExp,"g"),f.replaceStr):str;},_url:function(path){return this._filter((this.base||"")+path);}};})();YAHOO.register("yuiloader",YAHOO.util.YUILoader,{version:"2.8.0r4",build:"2449"});
diff --git a/koha-tmpl/intranet-tmpl/prog/en/lib/yui/yuiloader/yuiloader.js b/koha-tmpl/intranet-tmpl/prog/en/lib/yui/yuiloader/yuiloader.js
deleted file mode 100644 (file)
index 2672c60..0000000
+++ /dev/null
@@ -1,3879 +0,0 @@
-/*
-Copyright (c) 2009, Yahoo! Inc. All rights reserved.
-Code licensed under the BSD License:
-http://developer.yahoo.net/yui/license.txt
-version: 2.8.0r4
-*/
-/**
- * The YAHOO object is the single global object used by YUI Library.  It
- * contains utility function for setting up namespaces, inheritance, and
- * logging.  YAHOO.util, YAHOO.widget, and YAHOO.example are namespaces
- * created automatically for and used by the library.
- * @module yahoo
- * @title  YAHOO Global
- */
-
-/**
- * YAHOO_config is not included as part of the library.  Instead it is an 
- * object that can be defined by the implementer immediately before 
- * including the YUI library.  The properties included in this object
- * will be used to configure global properties needed as soon as the 
- * library begins to load.
- * @class YAHOO_config
- * @static
- */
-
-/**
- * A reference to a function that will be executed every time a YAHOO module
- * is loaded.  As parameter, this function will receive the version
- * information for the module. See <a href="YAHOO.env.html#getVersion">
- * YAHOO.env.getVersion</a> for the description of the version data structure.
- * @property listener
- * @type Function
- * @static
- * @default undefined
- */
-
-/**
- * Set to true if the library will be dynamically loaded after window.onload.
- * Defaults to false 
- * @property injecting
- * @type boolean
- * @static
- * @default undefined
- */
-
-/**
- * Instructs the yuiloader component to dynamically load yui components and
- * their dependencies.  See the yuiloader documentation for more information
- * about dynamic loading
- * @property load
- * @static
- * @default undefined
- * @see yuiloader
- */
-
-/**
- * Forces the use of the supplied locale where applicable in the library
- * @property locale
- * @type string
- * @static
- * @default undefined
- */
-
-if (typeof YAHOO == "undefined" || !YAHOO) {
-    /**
-     * The YAHOO global namespace object.  If YAHOO is already defined, the
-     * existing YAHOO object will not be overwritten so that defined
-     * namespaces are preserved.
-     * @class YAHOO
-     * @static
-     */
-    var YAHOO = {};
-}
-
-/**
- * Returns the namespace specified and creates it if it doesn't exist
- * <pre>
- * YAHOO.namespace("property.package");
- * YAHOO.namespace("YAHOO.property.package");
- * </pre>
- * Either of the above would create YAHOO.property, then
- * YAHOO.property.package
- *
- * Be careful when naming packages. Reserved words may work in some browsers
- * and not others. For instance, the following will fail in Safari:
- * <pre>
- * YAHOO.namespace("really.long.nested.namespace");
- * </pre>
- * This fails because "long" is a future reserved word in ECMAScript
- *
- * For implementation code that uses YUI, do not create your components
- * in the namespaces defined by YUI (
- * <code>YAHOO.util</code>, 
- * <code>YAHOO.widget</code>, 
- * <code>YAHOO.lang</code>, 
- * <code>YAHOO.tool</code>, 
- * <code>YAHOO.example</code>, 
- * <code>YAHOO.env</code>) -- create your own namespace (e.g., 'companyname').
- *
- * @method namespace
- * @static
- * @param  {String*} arguments 1-n namespaces to create 
- * @return {Object}  A reference to the last namespace object created
- */
-YAHOO.namespace = function() {
-    var a=arguments, o=null, i, j, d;
-    for (i=0; i<a.length; i=i+1) {
-        d=(""+a[i]).split(".");
-        o=YAHOO;
-
-        // YAHOO is implied, so it is ignored if it is included
-        for (j=(d[0] == "YAHOO") ? 1 : 0; j<d.length; j=j+1) {
-            o[d[j]]=o[d[j]] || {};
-            o=o[d[j]];
-        }
-    }
-
-    return o;
-};
-
-/**
- * Uses YAHOO.widget.Logger to output a log message, if the widget is
- * available.
- *
- * @method log
- * @static
- * @param  {String}  msg  The message to log.
- * @param  {String}  cat  The log category for the message.  Default
- *                        categories are "info", "warn", "error", time".
- *                        Custom categories can be used as well. (opt)
- * @param  {String}  src  The source of the message (opt)
- * @return {Boolean}      True if the log operation was successful.
- */
-YAHOO.log = function(msg, cat, src) {
-    var l=YAHOO.widget.Logger;
-    if(l && l.log) {
-        return l.log(msg, cat, src);
-    } else {
-        return false;
-    }
-};
-
-/**
- * Registers a module with the YAHOO object
- * @method register
- * @static
- * @param {String}   name    the name of the module (event, slider, etc)
- * @param {Function} mainClass a reference to class in the module.  This
- *                             class will be tagged with the version info
- *                             so that it will be possible to identify the
- *                             version that is in use when multiple versions
- *                             have loaded
- * @param {Object}   data      metadata object for the module.  Currently it
- *                             is expected to contain a "version" property
- *                             and a "build" property at minimum.
- */
-YAHOO.register = function(name, mainClass, data) {
-    var mods = YAHOO.env.modules, m, v, b, ls, i;
-
-    if (!mods[name]) {
-        mods[name] = { 
-            versions:[], 
-            builds:[] 
-        };
-    }
-
-    m  = mods[name];
-    v  = data.version;
-    b  = data.build;
-    ls = YAHOO.env.listeners;
-
-    m.name = name;
-    m.version = v;
-    m.build = b;
-    m.versions.push(v);
-    m.builds.push(b);
-    m.mainClass = mainClass;
-
-    // fire the module load listeners
-    for (i=0;i<ls.length;i=i+1) {
-        ls[i](m);
-    }
-    // label the main class
-    if (mainClass) {
-        mainClass.VERSION = v;
-        mainClass.BUILD = b;
-    } else {
-        YAHOO.log("mainClass is undefined for module " + name, "warn");
-    }
-};
-
-/**
- * YAHOO.env is used to keep track of what is known about the YUI library and
- * the browsing environment
- * @class YAHOO.env
- * @static
- */
-YAHOO.env = YAHOO.env || {
-
-    /**
-     * Keeps the version info for all YUI modules that have reported themselves
-     * @property modules
-     * @type Object[]
-     */
-    modules: [],
-    
-    /**
-     * List of functions that should be executed every time a YUI module
-     * reports itself.
-     * @property listeners
-     * @type Function[]
-     */
-    listeners: []
-};
-
-/**
- * Returns the version data for the specified module:
- *      <dl>
- *      <dt>name:</dt>      <dd>The name of the module</dd>
- *      <dt>version:</dt>   <dd>The version in use</dd>
- *      <dt>build:</dt>     <dd>The build number in use</dd>
- *      <dt>versions:</dt>  <dd>All versions that were registered</dd>
- *      <dt>builds:</dt>    <dd>All builds that were registered.</dd>
- *      <dt>mainClass:</dt> <dd>An object that was was stamped with the
- *                 current version and build. If 
- *                 mainClass.VERSION != version or mainClass.BUILD != build,
- *                 multiple versions of pieces of the library have been
- *                 loaded, potentially causing issues.</dd>
- *       </dl>
- *
- * @method getVersion
- * @static
- * @param {String}  name the name of the module (event, slider, etc)
- * @return {Object} The version info
- */
-YAHOO.env.getVersion = function(name) {
-    return YAHOO.env.modules[name] || null;
-};
-
-/**
- * Do not fork for a browser if it can be avoided.  Use feature detection when
- * you can.  Use the user agent as a last resort.  YAHOO.env.ua stores a version
- * number for the browser engine, 0 otherwise.  This value may or may not map
- * to the version number of the browser using the engine.  The value is 
- * presented as a float so that it can easily be used for boolean evaluation 
- * as well as for looking for a particular range of versions.  Because of this, 
- * some of the granularity of the version info may be lost (e.g., Gecko 1.8.0.9 
- * reports 1.8).
- * @class YAHOO.env.ua
- * @static
- */
-YAHOO.env.ua = function() {
-
-        var numberfy = function(s) {
-            var c = 0;
-            return parseFloat(s.replace(/\./g, function() {
-                return (c++ == 1) ? '' : '.';
-            }));
-        },
-
-        nav = navigator,
-
-        o = {
-
-        /**
-         * Internet Explorer version number or 0.  Example: 6
-         * @property ie
-         * @type float
-         */
-        ie: 0,
-
-        /**
-         * Opera version number or 0.  Example: 9.2
-         * @property opera
-         * @type float
-         */
-        opera: 0,
-
-        /**
-         * Gecko engine revision number.  Will evaluate to 1 if Gecko 
-         * is detected but the revision could not be found. Other browsers
-         * will be 0.  Example: 1.8
-         * <pre>
-         * Firefox 1.0.0.4: 1.7.8   <-- Reports 1.7
-         * Firefox 1.5.0.9: 1.8.0.9 <-- Reports 1.8
-         * Firefox 2.0.0.3: 1.8.1.3 <-- Reports 1.8
-         * Firefox 3 alpha: 1.9a4   <-- Reports 1.9
-         * </pre>
-         * @property gecko
-         * @type float
-         */
-        gecko: 0,
-
-        /**
-         * AppleWebKit version.  KHTML browsers that are not WebKit browsers 
-         * will evaluate to 1, other browsers 0.  Example: 418.9.1
-         * <pre>
-         * Safari 1.3.2 (312.6): 312.8.1 <-- Reports 312.8 -- currently the 
-         *                                   latest available for Mac OSX 10.3.
-         * Safari 2.0.2:         416     <-- hasOwnProperty introduced
-         * Safari 2.0.4:         418     <-- preventDefault fixed
-         * Safari 2.0.4 (419.3): 418.9.1 <-- One version of Safari may run
-         *                                   different versions of webkit
-         * Safari 2.0.4 (419.3): 419     <-- Tiger installations that have been
-         *                                   updated, but not updated
-         *                                   to the latest patch.
-         * Webkit 212 nightly:   522+    <-- Safari 3.0 precursor (with native SVG
-         *                                   and many major issues fixed).  
-         * 3.x yahoo.com, flickr:422     <-- Safari 3.x hacks the user agent
-         *                                   string when hitting yahoo.com and 
-         *                                   flickr.com.
-         * Safari 3.0.4 (523.12):523.12  <-- First Tiger release - automatic update
-         *                                   from 2.x via the 10.4.11 OS patch
-         * Webkit nightly 1/2008:525+    <-- Supports DOMContentLoaded event.
-         *                                   yahoo.com user agent hack removed.
-         *                                   
-         * </pre>
-         * http://developer.apple.com/internet/safari/uamatrix.html
-         * @property webkit
-         * @type float
-         */
-        webkit: 0,
-
-        /**
-         * The mobile property will be set to a string containing any relevant
-         * user agent information when a modern mobile browser is detected.
-         * Currently limited to Safari on the iPhone/iPod Touch, Nokia N-series
-         * devices with the WebKit-based browser, and Opera Mini.  
-         * @property mobile 
-         * @type string
-         */
-        mobile: null,
-
-        /**
-         * Adobe AIR version number or 0.  Only populated if webkit is detected.
-         * Example: 1.0
-         * @property air
-         * @type float
-         */
-        air: 0,
-
-        /**
-         * Google Caja version number or 0.
-         * @property caja
-         * @type float
-         */
-        caja: nav.cajaVersion,
-
-        /**
-         * Set to true if the page appears to be in SSL
-         * @property secure
-         * @type boolean
-         * @static
-         */
-        secure: false,
-
-        /**
-         * The operating system.  Currently only detecting windows or macintosh
-         * @property os
-         * @type string
-         * @static
-         */
-        os: null
-
-    },
-
-    ua = navigator && navigator.userAgent, 
-    
-    loc = window && window.location,
-
-    href = loc && loc.href,
-    
-    m;
-
-    o.secure = href && (href.toLowerCase().indexOf("https") === 0);
-
-    if (ua) {
-
-        if ((/windows|win32/i).test(ua)) {
-            o.os = 'windows';
-        } else if ((/macintosh/i).test(ua)) {
-            o.os = 'macintosh';
-        }
-    
-        // Modern KHTML browsers should qualify as Safari X-Grade
-        if ((/KHTML/).test(ua)) {
-            o.webkit=1;
-        }
-
-        // Modern WebKit browsers are at least X-Grade
-        m=ua.match(/AppleWebKit\/([^\s]*)/);
-        if (m&&m[1]) {
-            o.webkit=numberfy(m[1]);
-
-            // Mobile browser check
-            if (/ Mobile\//.test(ua)) {
-                o.mobile = "Apple"; // iPhone or iPod Touch
-            } else {
-                m=ua.match(/NokiaN[^\/]*/);
-                if (m) {
-                    o.mobile = m[0]; // Nokia N-series, ex: NokiaN95
-                }
-            }
-
-            m=ua.match(/AdobeAIR\/([^\s]*)/);
-            if (m) {
-                o.air = m[0]; // Adobe AIR 1.0 or better
-            }
-
-        }
-
-        if (!o.webkit) { // not webkit
-            // @todo check Opera/8.01 (J2ME/MIDP; Opera Mini/2.0.4509/1316; fi; U; ssr)
-            m=ua.match(/Opera[\s\/]([^\s]*)/);
-            if (m&&m[1]) {
-                o.opera=numberfy(m[1]);
-                m=ua.match(/Opera Mini[^;]*/);
-                if (m) {
-                    o.mobile = m[0]; // ex: Opera Mini/2.0.4509/1316
-                }
-            } else { // not opera or webkit
-                m=ua.match(/MSIE\s([^;]*)/);
-                if (m&&m[1]) {
-                    o.ie=numberfy(m[1]);
-                } else { // not opera, webkit, or ie
-                    m=ua.match(/Gecko\/([^\s]*)/);
-                    if (m) {
-                        o.gecko=1; // Gecko detected, look for revision
-                        m=ua.match(/rv:([^\s\)]*)/);
-                        if (m&&m[1]) {
-                            o.gecko=numberfy(m[1]);
-                        }
-                    }
-                }
-            }
-        }
-    }
-
-    return o;
-}();
-
-/*
- * Initializes the global by creating the default namespaces and applying
- * any new configuration information that is detected.  This is the setup
- * for env.
- * @method init
- * @static
- * @private
- */
-(function() {
-    YAHOO.namespace("util", "widget", "example");
-    /*global YAHOO_config*/
-    if ("undefined" !== typeof YAHOO_config) {
-        var l=YAHOO_config.listener, ls=YAHOO.env.listeners,unique=true, i;
-        if (l) {
-            // if YAHOO is loaded multiple times we need to check to see if
-            // this is a new config object.  If it is, add the new component
-            // load listener to the stack
-            for (i=0; i<ls.length; i++) {
-                if (ls[i] == l) {
-                    unique = false;
-                    break;
-                }
-            }
-
-            if (unique) {
-                ls.push(l);
-            }
-        }
-    }
-})();
-/**
- * Provides the language utilites and extensions used by the library
- * @class YAHOO.lang
- */
-YAHOO.lang = YAHOO.lang || {};
-
-(function() {
-
-
-var L = YAHOO.lang,
-
-    OP = Object.prototype,
-    ARRAY_TOSTRING = '[object Array]',
-    FUNCTION_TOSTRING = '[object Function]',
-    OBJECT_TOSTRING = '[object Object]',
-    NOTHING = [],
-
-    // ADD = ["toString", "valueOf", "hasOwnProperty"],
-    ADD = ["toString", "valueOf"],
-
-    OB = {
-
-    /**
-     * Determines wheather or not the provided object is an array.
-     * @method isArray
-     * @param {any} o The object being testing
-     * @return {boolean} the result
-     */
-    isArray: function(o) { 
-        return OP.toString.apply(o) === ARRAY_TOSTRING;
-    },
-
-    /**
-     * Determines whether or not the provided object is a boolean
-     * @method isBoolean
-     * @param {any} o The object being testing
-     * @return {boolean} the result
-     */
-    isBoolean: function(o) {
-        return typeof o === 'boolean';
-    },
-    
-    /**
-     * Determines whether or not the provided object is a function.
-     * Note: Internet Explorer thinks certain functions are objects:
-     *
-     * var obj = document.createElement("object");
-     * YAHOO.lang.isFunction(obj.getAttribute) // reports false in IE
-     *
-     * var input = document.createElement("input"); // append to body
-     * YAHOO.lang.isFunction(input.focus) // reports false in IE
-     *
-     * You will have to implement additional tests if these functions
-     * matter to you.
-     *
-     * @method isFunction
-     * @param {any} o The object being testing
-     * @return {boolean} the result
-     */
-    isFunction: function(o) {
-        return (typeof o === 'function') || OP.toString.apply(o) === FUNCTION_TOSTRING;
-    },
-        
-    /**
-     * Determines whether or not the provided object is null
-     * @method isNull
-     * @param {any} o The object being testing
-     * @return {boolean} the result
-     */
-    isNull: function(o) {
-        return o === null;
-    },
-        
-    /**
-     * Determines whether or not the provided object is a legal number
-     * @method isNumber
-     * @param {any} o The object being testing
-     * @return {boolean} the result
-     */
-    isNumber: function(o) {
-        return typeof o === 'number' && isFinite(o);
-    },
-      
-    /**
-     * Determines whether or not the provided object is of type object
-     * or function
-     * @method isObject
-     * @param {any} o The object being testing
-     * @return {boolean} the result
-     */  
-    isObject: function(o) {
-return (o && (typeof o === 'object' || L.isFunction(o))) || false;
-    },
-        
-    /**
-     * Determines whether or not the provided object is a string
-     * @method isString
-     * @param {any} o The object being testing
-     * @return {boolean} the result
-     */
-    isString: function(o) {
-        return typeof o === 'string';
-    },
-        
-    /**
-     * Determines whether or not the provided object is undefined
-     * @method isUndefined
-     * @param {any} o The object being testing
-     * @return {boolean} the result
-     */
-    isUndefined: function(o) {
-        return typeof o === 'undefined';
-    },
-    
-    /**
-     * IE will not enumerate native functions in a derived object even if the
-     * function was overridden.  This is a workaround for specific functions 
-     * we care about on the Object prototype. 
-     * @property _IEEnumFix
-     * @param {Function} r  the object to receive the augmentation
-     * @param {Function} s  the object that supplies the properties to augment
-     * @static
-     * @private
-     */
-    _IEEnumFix: (YAHOO.env.ua.ie) ? function(r, s) {
-            var i, fname, f;
-            for (i=0;i<ADD.length;i=i+1) {
-
-                fname = ADD[i];
-                f = s[fname];
-
-                if (L.isFunction(f) && f!=OP[fname]) {
-                    r[fname]=f;
-                }
-            }
-    } : function(){},
-       
-    /**
-     * Utility to set up the prototype, constructor and superclass properties to
-     * support an inheritance strategy that can chain constructors and methods.
-     * Static members will not be inherited.
-     *
-     * @method extend
-     * @static
-     * @param {Function} subc   the object to modify
-     * @param {Function} superc the object to inherit
-     * @param {Object} overrides  additional properties/methods to add to the
-     *                              subclass prototype.  These will override the
-     *                              matching items obtained from the superclass 
-     *                              if present.
-     */
-    extend: function(subc, superc, overrides) {
-        if (!superc||!subc) {
-            throw new Error("extend failed, please check that " +
-                            "all dependencies are included.");
-        }
-        var F = function() {}, i;
-        F.prototype=superc.prototype;
-        subc.prototype=new F();
-        subc.prototype.constructor=subc;
-        subc.superclass=superc.prototype;
-        if (superc.prototype.constructor == OP.constructor) {
-            superc.prototype.constructor=superc;
-        }
-    
-        if (overrides) {
-            for (i in overrides) {
-                if (L.hasOwnProperty(overrides, i)) {
-                    subc.prototype[i]=overrides[i];
-                }
-            }
-
-            L._IEEnumFix(subc.prototype, overrides);
-        }
-    },
-   
-    /**
-     * Applies all properties in the supplier to the receiver if the
-     * receiver does not have these properties yet.  Optionally, one or 
-     * more methods/properties can be specified (as additional 
-     * parameters).  This option will overwrite the property if receiver 
-     * has it already.  If true is passed as the third parameter, all 
-     * properties will be applied and _will_ overwrite properties in 
-     * the receiver.
-     *
-     * @method augmentObject
-     * @static
-     * @since 2.3.0
-     * @param {Function} r  the object to receive the augmentation
-     * @param {Function} s  the object that supplies the properties to augment
-     * @param {String*|boolean}  arguments zero or more properties methods 
-     *        to augment the receiver with.  If none specified, everything
-     *        in the supplier will be used unless it would
-     *        overwrite an existing property in the receiver. If true
-     *        is specified as the third parameter, all properties will
-     *        be applied and will overwrite an existing property in
-     *        the receiver
-     */
-    augmentObject: function(r, s) {
-        if (!s||!r) {
-            throw new Error("Absorb failed, verify dependencies.");
-        }
-        var a=arguments, i, p, overrideList=a[2];
-        if (overrideList && overrideList!==true) { // only absorb the specified properties
-            for (i=2; i<a.length; i=i+1) {
-                r[a[i]] = s[a[i]];
-            }
-        } else { // take everything, overwriting only if the third parameter is true
-            for (p in s) { 
-                if (overrideList || !(p in r)) {
-                    r[p] = s[p];
-                }
-            }
-            
-            L._IEEnumFix(r, s);
-        }
-    },
-    /**
-     * Same as YAHOO.lang.augmentObject, except it only applies prototype properties
-     * @see YAHOO.lang.augmentObject
-     * @method augmentProto
-     * @static
-     * @param {Function} r  the object to receive the augmentation
-     * @param {Function} s  the object that supplies the properties to augment
-     * @param {String*|boolean}  arguments zero or more properties methods 
-     *        to augment the receiver with.  If none specified, everything 
-     *        in the supplier will be used unless it would overwrite an existing 
-     *        property in the receiver.  if true is specified as the third 
-     *        parameter, all properties will be applied and will overwrite an 
-     *        existing property in the receiver
-     */
-    augmentProto: function(r, s) {
-        if (!s||!r) {
-            throw new Error("Augment failed, verify dependencies.");
-        }
-        //var a=[].concat(arguments);
-        var a=[r.prototype,s.prototype], i;
-        for (i=2;i<arguments.length;i=i+1) {
-            a.push(arguments[i]);
-        }
-        L.augmentObject.apply(this, a);
-    },
-
-      
-    /**
-     * Returns a simple string representation of the object or array.
-     * Other types of objects will be returned unprocessed.  Arrays
-     * are expected to be indexed.  Use object notation for
-     * associative arrays.
-     * @method dump
-     * @since 2.3.0
-     * @param o {Object} The object to dump
-     * @param d {int} How deep to recurse child objects, default 3
-     * @return {String} the dump result
-     */
-    dump: function(o, d) {
-        var i,len,s=[],OBJ="{...}",FUN="f(){...}",
-            COMMA=', ', ARROW=' => ';
-
-        // Cast non-objects to string
-        // Skip dates because the std toString is what we want
-        // Skip HTMLElement-like objects because trying to dump 
-        // an element will cause an unhandled exception in FF 2.x
-        if (!L.isObject(o)) {
-            return o + "";
-        } else if (o instanceof Date || ("nodeType" in o && "tagName" in o)) {
-            return o;
-        } else if  (L.isFunction(o)) {
-            return FUN;
-        }
-
-        // dig into child objects the depth specifed. Default 3
-        d = (L.isNumber(d)) ? d : 3;
-
-        // arrays [1, 2, 3]
-        if (L.isArray(o)) {
-            s.push("[");
-            for (i=0,len=o.length;i<len;i=i+1) {
-                if (L.isObject(o[i])) {
-                    s.push((d > 0) ? L.dump(o[i], d-1) : OBJ);
-                } else {
-                    s.push(o[i]);
-                }
-                s.push(COMMA);
-            }
-            if (s.length > 1) {
-                s.pop();
-            }
-            s.push("]");
-        // objects {k1 => v1, k2 => v2}
-        } else {
-            s.push("{");
-            for (i in o) {
-                if (L.hasOwnProperty(o, i)) {
-                    s.push(i + ARROW);
-                    if (L.isObject(o[i])) {
-                        s.push((d > 0) ? L.dump(o[i], d-1) : OBJ);
-                    } else {
-                        s.push(o[i]);
-                    }
-                    s.push(COMMA);
-                }
-            }
-            if (s.length > 1) {
-                s.pop();
-            }
-            s.push("}");
-        }
-
-        return s.join("");
-    },
-
-    /**
-     * Does variable substitution on a string. It scans through the string 
-     * looking for expressions enclosed in { } braces. If an expression 
-     * is found, it is used a key on the object.  If there is a space in
-     * the key, the first word is used for the key and the rest is provided
-     * to an optional function to be used to programatically determine the
-     * value (the extra information might be used for this decision). If 
-     * the value for the key in the object, or what is returned from the
-     * function has a string value, number value, or object value, it is 
-     * substituted for the bracket expression and it repeats.  If this
-     * value is an object, it uses the Object's toString() if this has
-     * been overridden, otherwise it does a shallow dump of the key/value
-     * pairs.
-     * @method substitute
-     * @since 2.3.0
-     * @param s {String} The string that will be modified.
-     * @param o {Object} An object containing the replacement values
-     * @param f {Function} An optional function that can be used to
-     *                     process each match.  It receives the key,
-     *                     value, and any extra metadata included with
-     *                     the key inside of the braces.
-     * @return {String} the substituted string
-     */
-    substitute: function (s, o, f) {
-        var i, j, k, key, v, meta, saved=[], token, 
-            DUMP='dump', SPACE=' ', LBRACE='{', RBRACE='}',
-            dump, objstr;
-
-
-        for (;;) {
-            i = s.lastIndexOf(LBRACE);
-            if (i < 0) {
-                break;
-            }
-            j = s.indexOf(RBRACE, i);
-            if (i + 1 >= j) {
-                break;
-            }
-
-            //Extract key and meta info 
-            token = s.substring(i + 1, j);
-            key = token;
-            meta = null;
-            k = key.indexOf(SPACE);
-            if (k > -1) {
-                meta = key.substring(k + 1);
-                key = key.substring(0, k);
-            }
-
-            // lookup the value
-            v = o[key];
-
-            // if a substitution function was provided, execute it
-            if (f) {
-                v = f(key, v, meta);
-            }
-
-            if (L.isObject(v)) {
-                if (L.isArray(v)) {
-                    v = L.dump(v, parseInt(meta, 10));
-                } else {
-                    meta = meta || "";
-
-                    // look for the keyword 'dump', if found force obj dump
-                    dump = meta.indexOf(DUMP);
-                    if (dump > -1) {
-                        meta = meta.substring(4);
-                    }
-
-                    objstr = v.toString();
-
-                    // use the toString if it is not the Object toString 
-                    // and the 'dump' meta info was not found
-                    if (objstr === OBJECT_TOSTRING || dump > -1) {
-                        v = L.dump(v, parseInt(meta, 10));
-                    } else {
-                        v = objstr;
-                    }
-                }
-            } else if (!L.isString(v) && !L.isNumber(v)) {
-                // This {block} has no replace string. Save it for later.
-                v = "~-" + saved.length + "-~";
-                saved[saved.length] = token;
-
-                // break;
-            }
-
-            s = s.substring(0, i) + v + s.substring(j + 1);
-
-
-        }
-
-        // restore saved {block}s
-        for (i=saved.length-1; i>=0; i=i-1) {
-            s = s.replace(new RegExp("~-" + i + "-~"), "{"  + saved[i] + "}", "g");
-        }
-
-        return s;
-    },
-
-
-    /**
-     * Returns a string without any leading or trailing whitespace.  If 
-     * the input is not a string, the input will be returned untouched.
-     * @method trim
-     * @since 2.3.0
-     * @param s {string} the string to trim
-     * @return {string} the trimmed string
-     */
-    trim: function(s){
-        try {
-            return s.replace(/^\s+|\s+$/g, "");
-        } catch(e) {
-            return s;
-        }
-    },
-
-    /**
-     * Returns a new object containing all of the properties of
-     * all the supplied objects.  The properties from later objects
-     * will overwrite those in earlier objects.
-     * @method merge
-     * @since 2.3.0
-     * @param arguments {Object*} the objects to merge
-     * @return the new merged object
-     */
-    merge: function() {
-        var o={}, a=arguments, l=a.length, i;
-        for (i=0; i<l; i=i+1) {
-            L.augmentObject(o, a[i], true);
-        }
-        return o;
-    },
-
-    /**
-     * Executes the supplied function in the context of the supplied 
-     * object 'when' milliseconds later.  Executes the function a 
-     * single time unless periodic is set to true.
-     * @method later
-     * @since 2.4.0
-     * @param when {int} the number of milliseconds to wait until the fn 
-     * is executed
-     * @param o the context object
-     * @param fn {Function|String} the function to execute or the name of 
-     * the method in the 'o' object to execute
-     * @param data [Array] data that is provided to the function.  This accepts
-     * either a single item or an array.  If an array is provided, the
-     * function is executed with one parameter for each array item.  If
-     * you need to pass a single array parameter, it needs to be wrapped in
-     * an array [myarray]
-     * @param periodic {boolean} if true, executes continuously at supplied 
-     * interval until canceled
-     * @return a timer object. Call the cancel() method on this object to 
-     * stop the timer.
-     */
-    later: function(when, o, fn, data, periodic) {
-        when = when || 0; 
-        o = o || {};
-        var m=fn, d=data, f, r;
-
-        if (L.isString(fn)) {
-            m = o[fn];
-        }
-
-        if (!m) {
-            throw new TypeError("method undefined");
-        }
-
-        if (d && !L.isArray(d)) {
-            d = [data];
-        }
-
-        f = function() {
-            m.apply(o, d || NOTHING);
-        };
-
-        r = (periodic) ? setInterval(f, when) : setTimeout(f, when);
-
-        return {
-            interval: periodic,
-            cancel: function() {
-                if (this.interval) {
-                    clearInterval(r);
-                } else {
-                    clearTimeout(r);
-                }
-            }
-        };
-    },
-    
-    /**
-     * A convenience method for detecting a legitimate non-null value.
-     * Returns false for null/undefined/NaN, true for other values, 
-     * including 0/false/''
-     * @method isValue
-     * @since 2.3.0
-     * @param o {any} the item to test
-     * @return {boolean} true if it is not null/undefined/NaN || false
-     */
-    isValue: function(o) {
-        // return (o || o === false || o === 0 || o === ''); // Infinity fails
-return (L.isObject(o) || L.isString(o) || L.isNumber(o) || L.isBoolean(o));
-    }
-
-};
-
-/**
- * Determines whether or not the property was added
- * to the object instance.  Returns false if the property is not present
- * in the object, or was inherited from the prototype.
- * This abstraction is provided to enable hasOwnProperty for Safari 1.3.x.
- * There is a discrepancy between YAHOO.lang.hasOwnProperty and
- * Object.prototype.hasOwnProperty when the property is a primitive added to
- * both the instance AND prototype with the same value:
- * <pre>
- * var A = function() {};
- * A.prototype.foo = 'foo';
- * var a = new A();
- * a.foo = 'foo';
- * alert(a.hasOwnProperty('foo')); // true
- * alert(YAHOO.lang.hasOwnProperty(a, 'foo')); // false when using fallback
- * </pre>
- * @method hasOwnProperty
- * @param {any} o The object being testing
- * @param prop {string} the name of the property to test
- * @return {boolean} the result
- */
-L.hasOwnProperty = (OP.hasOwnProperty) ?
-    function(o, prop) {
-        return o && o.hasOwnProperty(prop);
-    } : function(o, prop) {
-        return !L.isUndefined(o[prop]) && 
-                o.constructor.prototype[prop] !== o[prop];
-    };
-
-// new lang wins
-OB.augmentObject(L, OB, true);
-
-/*
- * An alias for <a href="YAHOO.lang.html">YAHOO.lang</a>
- * @class YAHOO.util.Lang
- */
-YAHOO.util.Lang = L;
-/**
- * Same as YAHOO.lang.augmentObject, except it only applies prototype 
- * properties.  This is an alias for augmentProto.
- * @see YAHOO.lang.augmentObject
- * @method augment
- * @static
- * @param {Function} r  the object to receive the augmentation
- * @param {Function} s  the object that supplies the properties to augment
- * @param {String*|boolean}  arguments zero or more properties methods to 
- *        augment the receiver with.  If none specified, everything
- *        in the supplier will be used unless it would
- *        overwrite an existing property in the receiver.  if true
- *        is specified as the third parameter, all properties will
- *        be applied and will overwrite an existing property in
- *        the receiver
- */
-L.augment = L.augmentProto;
-
-/**
- * An alias for <a href="YAHOO.lang.html#augment">YAHOO.lang.augment</a>
- * @for YAHOO
- * @method augment
- * @static
- * @param {Function} r  the object to receive the augmentation
- * @param {Function} s  the object that supplies the properties to augment
- * @param {String*}  arguments zero or more properties methods to 
- *        augment the receiver with.  If none specified, everything
- *        in the supplier will be used unless it would
- *        overwrite an existing property in the receiver
- */
-YAHOO.augment = L.augmentProto;
-       
-/**
- * An alias for <a href="YAHOO.lang.html#extend">YAHOO.lang.extend</a>
- * @method extend
- * @static
- * @param {Function} subc   the object to modify
- * @param {Function} superc the object to inherit
- * @param {Object} overrides  additional properties/methods to add to the
- *        subclass prototype.  These will override the
- *        matching items obtained from the superclass if present.
- */
-YAHOO.extend = L.extend;
-
-})();
-YAHOO.register("yahoo", YAHOO, {version: "2.8.0r4", build: "2449"});
-/**
- * Provides a mechanism to fetch remote resources and
- * insert them into a document
- * @module get
- * @requires yahoo
- */
-
-/**
- * Fetches and inserts one or more script or link nodes into the document 
- * @namespace YAHOO.util
- * @class YAHOO.util.Get
- */
-YAHOO.util.Get = function() {
-
-    /**
-     * hash of queues to manage multiple requests
-     * @property queues
-     * @private
-     */
-    var queues={}, 
-        
-    /**
-     * queue index used to generate transaction ids
-     * @property qidx
-     * @type int
-     * @private
-     */
-        qidx=0, 
-        
-    /**
-     * node index used to generate unique node ids
-     * @property nidx
-     * @type int
-     * @private
-     */
-        nidx=0, 
-
-        // ridx=0,
-
-        // sandboxFrame=null,
-
-    /**
-     * interal property used to prevent multiple simultaneous purge 
-     * processes
-     * @property purging
-     * @type boolean
-     * @private
-     */
-        purging=false,
-
-        ua=YAHOO.env.ua, 
-        
-        lang=YAHOO.lang;
-    
-    /** 
-     * Generates an HTML element, this is not appended to a document
-     * @method _node
-     * @param type {string} the type of element
-     * @param attr {string} the attributes
-     * @param win {Window} optional window to create the element in
-     * @return {HTMLElement} the generated node
-     * @private
-     */
-    var _node = function(type, attr, win) {
-        var w = win || window, d=w.document, n=d.createElement(type);
-
-        for (var i in attr) {
-            if (attr[i] && YAHOO.lang.hasOwnProperty(attr, i)) {
-                n.setAttribute(i, attr[i]);
-            }
-        }
-
-        return n;
-    };
-
-    /**
-     * Generates a link node
-     * @method _linkNode
-     * @param url {string} the url for the css file
-     * @param win {Window} optional window to create the node in
-     * @return {HTMLElement} the generated node
-     * @private
-     */
-    var _linkNode = function(url, win, attributes) {
-
-        var o = {
-            id:   "yui__dyn_" + (nidx++),
-            type: "text/css",
-            rel:  "stylesheet",
-            href: url
-        };
-
-        if (attributes) {
-            lang.augmentObject(o, attributes);
-        }
-
-        return _node("link", o, win);
-    };
-
-    /**
-     * Generates a script node
-     * @method _scriptNode
-     * @param url {string} the url for the script file
-     * @param win {Window} optional window to create the node in
-     * @return {HTMLElement} the generated node
-     * @private
-     */
-    var _scriptNode = function(url, win, attributes) {
-        var o = {
-            id:   "yui__dyn_" + (nidx++),
-            type: "text/javascript",
-            src:  url
-        };
-
-        if (attributes) {
-            lang.augmentObject(o, attributes);
-        }
-
-        return _node("script", o, win);
-    };
-
-    /**
-     * Returns the data payload for callback functions
-     * @method _returnData
-     * @private
-     */
-    var _returnData = function(q, msg) {
-        return {
-                tId: q.tId,
-                win: q.win,
-                data: q.data,
-                nodes: q.nodes,
-                msg: msg,
-                purge: function() {
-                    _purge(this.tId);
-                }
-            };
-    };
-
-    var _get = function(nId, tId) {
-        var q = queues[tId],
-            n = (lang.isString(nId)) ? q.win.document.getElementById(nId) : nId;
-        if (!n) {
-            _fail(tId, "target node not found: " + nId);
-        }
-
-        return n;
-    };
-
-    /*
-     * The request failed, execute fail handler with whatever
-     * was accomplished.  There isn't a failure case at the
-     * moment unless you count aborted transactions
-     * @method _fail
-     * @param id {string} the id of the request
-     * @private
-     */
-    var _fail = function(id, msg) {
-        var q = queues[id];
-        // execute failure callback
-        if (q.onFailure) {
-            var sc=q.scope || q.win;
-            q.onFailure.call(sc, _returnData(q, msg));
-        }
-    };
-
-    /**
-     * The request is complete, so executing the requester's callback
-     * @method _finish
-     * @param id {string} the id of the request
-     * @private
-     */
-    var _finish = function(id) {
-        var q = queues[id];
-        q.finished = true;
-
-        if (q.aborted) {
-            var msg = "transaction " + id + " was aborted";
-            _fail(id, msg);
-            return;
-        }
-
-        // execute success callback
-        if (q.onSuccess) {
-            var sc=q.scope || q.win;
-            q.onSuccess.call(sc, _returnData(q));
-        }
-    };
-
-    /**
-     * Timeout detected
-     * @method _timeout
-     * @param id {string} the id of the request
-     * @private
-     */
-    var _timeout = function(id) {
-        var q = queues[id];
-        if (q.onTimeout) {
-            var sc=q.scope || q;
-            q.onTimeout.call(sc, _returnData(q));
-        }
-    };
-
-    /**
-     * Loads the next item for a given request
-     * @method _next
-     * @param id {string} the id of the request
-     * @param loaded {string} the url that was just loaded, if any
-     * @private
-     */
-    var _next = function(id, loaded) {
-        var q = queues[id];
-
-        if (q.timer) {
-            // Y.log('cancel timer');
-            q.timer.cancel();
-        }
-
-        if (q.aborted) {
-            var msg = "transaction " + id + " was aborted";
-            _fail(id, msg);
-            return;
-        }
-
-        if (loaded) {
-            q.url.shift(); 
-            if (q.varName) {
-                q.varName.shift(); 
-            }
-        } else {
-            // This is the first pass: make sure the url is an array
-            q.url = (lang.isString(q.url)) ? [q.url] : q.url;
-            if (q.varName) {
-                q.varName = (lang.isString(q.varName)) ? [q.varName] : q.varName;
-            }
-        }
-
-        var w=q.win, d=w.document, h=d.getElementsByTagName("head")[0], n;
-
-        if (q.url.length === 0) {
-            // Safari 2.x workaround - There is no way to know when 
-            // a script is ready in versions of Safari prior to 3.x.
-            // Adding an extra node reduces the problem, but doesn't
-            // eliminate it completely because the browser executes
-            // them asynchronously. 
-            if (q.type === "script" && ua.webkit && ua.webkit < 420 && 
-                    !q.finalpass && !q.varName) {
-                // Add another script node.  This does not guarantee that the
-                // scripts will execute in order, but it does appear to fix the
-                // problem on fast connections more effectively than using an
-                // arbitrary timeout.  It is possible that the browser does
-                // block subsequent script execution in this case for a limited
-                // time.
-                var extra = _scriptNode(null, q.win, q.attributes);
-                extra.innerHTML='YAHOO.util.Get._finalize("' + id + '");';
-                q.nodes.push(extra); h.appendChild(extra);
-
-            } else {
-                _finish(id);
-            }
-
-            return;
-        } 
-
-
-        var url = q.url[0];
-
-        // if the url is undefined, this is probably a trailing comma problem in IE
-        if (!url) {
-            q.url.shift(); 
-            return _next(id);
-        }
-
-
-        if (q.timeout) {
-            // Y.log('create timer');
-            q.timer = lang.later(q.timeout, q, _timeout, id);
-        }
-
-        if (q.type === "script") {
-            n = _scriptNode(url, w, q.attributes);
-        } else {
-            n = _linkNode(url, w, q.attributes);
-        }
-
-        // track this node's load progress
-        _track(q.type, n, id, url, w, q.url.length);
-
-        // add the node to the queue so we can return it to the user supplied callback
-        q.nodes.push(n);
-
-        // add it to the head or insert it before 'insertBefore'
-        if (q.insertBefore) {
-            var s = _get(q.insertBefore, id);
-            if (s) {
-                s.parentNode.insertBefore(n, s);
-            }
-        } else {
-            h.appendChild(n);
-        }
-        
-
-        // FireFox does not support the onload event for link nodes, so there is
-        // no way to make the css requests synchronous. This means that the css 
-        // rules in multiple files could be applied out of order in this browser
-        // if a later request returns before an earlier one.  Safari too.
-        if ((ua.webkit || ua.gecko) && q.type === "css") {
-            _next(id, url);
-        }
-    };
-
-    /**
-     * Removes processed queues and corresponding nodes
-     * @method _autoPurge
-     * @private
-     */
-    var _autoPurge = function() {
-
-        if (purging) {
-            return;
-        }
-
-        purging = true;
-        for (var i in queues) {
-            var q = queues[i];
-            if (q.autopurge && q.finished) {
-                _purge(q.tId);
-                delete queues[i];
-            }
-        }
-
-        purging = false;
-    };
-
-    /**
-     * Removes the nodes for the specified queue
-     * @method _purge
-     * @private
-     */
-    var _purge = function(tId) {
-        if (queues[tId]) {
-
-            var q     = queues[tId],
-                nodes = q.nodes, 
-                l     = nodes.length, 
-                d     = q.win.document, 
-                h     = d.getElementsByTagName("head")[0],
-                sib, i, node, attr;
-
-            if (q.insertBefore) {
-                sib = _get(q.insertBefore, tId);
-                if (sib) {
-                    h = sib.parentNode;
-                }
-            }
-
-            for (i=0; i<l; i=i+1) {
-                node = nodes[i];
-                if (node.clearAttributes) {
-                    node.clearAttributes();
-                } else {
-                    for (attr in node) {
-                        delete node[attr];
-                    }
-                }
-
-                h.removeChild(node);
-            }
-
-            q.nodes = [];
-        }
-    };
-
-    /**
-     * Saves the state for the request and begins loading
-     * the requested urls
-     * @method queue
-     * @param type {string} the type of node to insert
-     * @param url {string} the url to load
-     * @param opts the hash of options for this request
-     * @private
-     */
-    var _queue = function(type, url, opts) {
-
-        var id = "q" + (qidx++);
-        opts = opts || {};
-
-        if (qidx % YAHOO.util.Get.PURGE_THRESH === 0) {
-            _autoPurge();
-        }
-
-        queues[id] = lang.merge(opts, {
-            tId: id,
-            type: type,
-            url: url,
-            finished: false,
-            aborted: false,
-            nodes: []
-        });
-
-        var q = queues[id];
-        q.win = q.win || window;
-        q.scope = q.scope || q.win;
-        q.autopurge = ("autopurge" in q) ? q.autopurge : 
-                      (type === "script") ? true : false;
-
-        if (opts.charset) {
-            q.attributes = q.attributes || {};
-            q.attributes.charset = opts.charset;
-        }
-
-        lang.later(0, q, _next, id);
-
-        return {
-            tId: id
-        };
-    };
-
-    /**
-     * Detects when a node has been loaded.  In the case of
-     * script nodes, this does not guarantee that contained
-     * script is ready to use.
-     * @method _track
-     * @param type {string} the type of node to track
-     * @param n {HTMLElement} the node to track
-     * @param id {string} the id of the request
-     * @param url {string} the url that is being loaded
-     * @param win {Window} the targeted window
-     * @param qlength the number of remaining items in the queue,
-     * including this one
-     * @param trackfn {Function} function to execute when finished
-     * the default is _next
-     * @private
-     */
-    var _track = function(type, n, id, url, win, qlength, trackfn) {
-        var f = trackfn || _next;
-
-        // IE supports the readystatechange event for script and css nodes
-        if (ua.ie) {
-            n.onreadystatechange = function() {
-                var rs = this.readyState;
-                if ("loaded" === rs || "complete" === rs) {
-                    n.onreadystatechange = null;
-                    f(id, url);
-                }
-            };
-
-        // webkit prior to 3.x is problemmatic
-        } else if (ua.webkit) {
-
-            if (type === "script") {
-
-                // Safari 3.x supports the load event for script nodes (DOM2)
-                if (ua.webkit >= 420) {
-
-                    n.addEventListener("load", function() {
-                        f(id, url);
-                    });
-
-                // Nothing can be done with Safari < 3.x except to pause and hope
-                // for the best, particularly after last script is inserted. The
-                // scripts will always execute in the order they arrive, not
-                // necessarily the order in which they were inserted.  To support
-                // script nodes with complete reliability in these browsers, script
-                // nodes either need to invoke a function in the window once they
-                // are loaded or the implementer needs to provide a well-known
-                // property that the utility can poll for.
-                } else {
-                    // Poll for the existence of the named variable, if it
-                    // was supplied.
-                    var q = queues[id];
-                    if (q.varName) {
-                        var freq=YAHOO.util.Get.POLL_FREQ;
-                        q.maxattempts = YAHOO.util.Get.TIMEOUT/freq;
-                        q.attempts = 0;
-                        q._cache = q.varName[0].split(".");
-                        q.timer = lang.later(freq, q, function(o) {
-                            var a=this._cache, l=a.length, w=this.win, i;
-                            for (i=0; i<l; i=i+1) {
-                                w = w[a[i]];
-                                if (!w) {
-                                    // if we have exausted our attempts, give up
-                                    this.attempts++;
-                                    if (this.attempts++ > this.maxattempts) {
-                                        var msg = "Over retry limit, giving up";
-                                        q.timer.cancel();
-                                        _fail(id, msg);
-                                    } else {
-                                    }
-                                    return;
-                                }
-                            }
-                            
-
-                            q.timer.cancel();
-                            f(id, url);
-
-                        }, null, true);
-                    } else {
-                        lang.later(YAHOO.util.Get.POLL_FREQ, null, f, [id, url]);
-                    }
-                }
-            } 
-
-        // FireFox and Opera support onload (but not DOM2 in FF) handlers for
-        // script nodes.  Opera, but not FF, supports the onload event for link
-        // nodes.
-        } else { 
-            n.onload = function() {
-                f(id, url);
-            };
-        }
-    };
-
-    return {
-
-        /**
-         * The default poll freqency in ms, when needed
-         * @property POLL_FREQ
-         * @static
-         * @type int
-         * @default 10
-         */
-        POLL_FREQ: 10,
-
-        /**
-         * The number of request required before an automatic purge.
-         * property PURGE_THRESH
-         * @static
-         * @type int
-         * @default 20
-         */
-        PURGE_THRESH: 20,
-
-        /**
-         * The length time to poll for varName when loading a script in
-         * Safari 2.x before the transaction fails.
-         * property TIMEOUT
-         * @static
-         * @type int
-         * @default 2000
-         */
-        TIMEOUT: 2000,
-        
-        /**
-         * Called by the helper for detecting script load in Safari
-         * @method _finalize
-         * @param id {string} the transaction id
-         * @private
-         */
-        _finalize: function(id) {
-            lang.later(0, null, _finish, id);
-        },
-
-        /**
-         * Abort a transaction
-         * @method abort
-         * @param {string|object} either the tId or the object returned from
-         * script() or css()
-         */
-        abort: function(o) {
-            var id = (lang.isString(o)) ? o : o.tId;
-            var q = queues[id];
-            if (q) {
-                q.aborted = true;
-            }
-        }, 
-
-        /**
-         * Fetches and inserts one or more script nodes into the head
-         * of the current document or the document in a specified window.
-         *
-         * @method script
-         * @static
-         * @param url {string|string[]} the url or urls to the script(s)
-         * @param opts {object} Options: 
-         * <dl>
-         * <dt>onSuccess</dt>
-         * <dd>
-         * callback to execute when the script(s) are finished loading
-         * The callback receives an object back with the following
-         * data:
-         * <dl>
-         * <dt>win</dt>
-         * <dd>the window the script(s) were inserted into</dd>
-         * <dt>data</dt>
-         * <dd>the data object passed in when the request was made</dd>
-         * <dt>nodes</dt>
-         * <dd>An array containing references to the nodes that were
-         * inserted</dd>
-         * <dt>purge</dt>
-         * <dd>A function that, when executed, will remove the nodes
-         * that were inserted</dd>
-         * <dt>
-         * </dl>
-         * </dd>
-         * <dt>onFailure</dt>
-         * <dd>
-         * callback to execute when the script load operation fails
-         * The callback receives an object back with the following
-         * data:
-         * <dl>
-         * <dt>win</dt>
-         * <dd>the window the script(s) were inserted into</dd>
-         * <dt>data</dt>
-         * <dd>the data object passed in when the request was made</dd>
-         * <dt>nodes</dt>
-         * <dd>An array containing references to the nodes that were
-         * inserted successfully</dd>
-         * <dt>purge</dt>
-         * <dd>A function that, when executed, will remove any nodes
-         * that were inserted</dd>
-         * <dt>
-         * </dl>
-         * </dd>
-         * <dt>onTimeout</dt>
-         * <dd>
-         * callback to execute when a timeout occurs.
-         * The callback receives an object back with the following
-         * data:
-         * <dl>
-         * <dt>win</dt>
-         * <dd>the window the script(s) were inserted into</dd>
-         * <dt>data</dt>
-         * <dd>the data object passed in when the request was made</dd>
-         * <dt>nodes</dt>
-         * <dd>An array containing references to the nodes that were
-         * inserted</dd>
-         * <dt>purge</dt>
-         * <dd>A function that, when executed, will remove the nodes
-         * that were inserted</dd>
-         * <dt>
-         * </dl>
-         * </dd>
-         * <dt>scope</dt>
-         * <dd>the execution context for the callbacks</dd>
-         * <dt>win</dt>
-         * <dd>a window other than the one the utility occupies</dd>
-         * <dt>autopurge</dt>
-         * <dd>
-         * setting to true will let the utilities cleanup routine purge 
-         * the script once loaded
-         * </dd>
-         * <dt>data</dt>
-         * <dd>
-         * data that is supplied to the callback when the script(s) are
-         * loaded.
-         * </dd>
-         * <dt>varName</dt>
-         * <dd>
-         * variable that should be available when a script is finished
-         * loading.  Used to help Safari 2.x and below with script load 
-         * detection.  The type of this property should match what was
-         * passed into the url parameter: if loading a single url, a
-         * string can be supplied.  If loading multiple scripts, you
-         * must supply an array that contains the variable name for
-         * each script.
-         * </dd>
-         * <dt>insertBefore</dt>
-         * <dd>node or node id that will become the new node's nextSibling</dd>
-         * </dl>
-         * <dt>charset</dt>
-         * <dd>Node charset, deprecated, use 'attributes'</dd>
-         * <dt>attributes</dt>
-         * <dd>A hash of attributes to apply to dynamic nodes.</dd>
-         * <dt>timeout</dt>
-         * <dd>Number of milliseconds to wait before aborting and firing the timeout event</dd>
-         * <pre>
-         * // assumes yahoo, dom, and event are already on the page
-         * &nbsp;&nbsp;YAHOO.util.Get.script(
-         * &nbsp;&nbsp;["http://yui.yahooapis.com/2.7.0/build/dragdrop/dragdrop-min.js",
-         * &nbsp;&nbsp;&nbsp;"http://yui.yahooapis.com/2.7.0/build/animation/animation-min.js"], &#123;
-         * &nbsp;&nbsp;&nbsp;&nbsp;onSuccess: function(o) &#123;
-         * &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;new YAHOO.util.DDProxy("dd1"); // also new o.reference("dd1"); would work
-         * &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;this.log("won't cause error because YAHOO is the scope");
-         * &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;this.log(o.nodes.length === 2) // true
-         * &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;// o.purge(); // optionally remove the script nodes immediately
-         * &nbsp;&nbsp;&nbsp;&nbsp;&#125;,
-         * &nbsp;&nbsp;&nbsp;&nbsp;onFailure: function(o) &#123;
-         * &nbsp;&nbsp;&nbsp;&nbsp;&#125;,
-         * &nbsp;&nbsp;&nbsp;&nbsp;data: "foo",
-         * &nbsp;&nbsp;&nbsp;&nbsp;timeout: 10000, // 10 second timeout
-         * &nbsp;&nbsp;&nbsp;&nbsp;scope: YAHOO,
-         * &nbsp;&nbsp;&nbsp;&nbsp;// win: otherframe // target another window/frame
-         * &nbsp;&nbsp;&nbsp;&nbsp;autopurge: true // allow the utility to choose when to remove the nodes
-         * &nbsp;&nbsp;&#125;);
-         * </pre>
-         * @return {tId: string} an object containing info about the transaction
-         */
-        script: function(url, opts) { return _queue("script", url, opts); },
-
-        /**
-         * Fetches and inserts one or more css link nodes into the 
-         * head of the current document or the document in a specified
-         * window.
-         * @method css
-         * @static
-         * @param url {string} the url or urls to the css file(s)
-         * @param opts Options: 
-         * <dl>
-         * <dt>onSuccess</dt>
-         * <dd>
-         * callback to execute when the css file(s) are finished loading
-         * The callback receives an object back with the following
-         * data:
-         * <dl>win</dl>
-         * <dd>the window the link nodes(s) were inserted into</dd>
-         * <dt>data</dt>
-         * <dd>the data object passed in when the request was made</dd>
-         * <dt>nodes</dt>
-         * <dd>An array containing references to the nodes that were
-         * inserted</dd>
-         * <dt>purge</dt>
-         * <dd>A function that, when executed, will remove the nodes
-         * that were inserted</dd>
-         * <dt>
-         * </dl>
-         * </dd>
-         * <dt>scope</dt>
-         * <dd>the execution context for the callbacks</dd>
-         * <dt>win</dt>
-         * <dd>a window other than the one the utility occupies</dd>
-         * <dt>data</dt>
-         * <dd>
-         * data that is supplied to the callbacks when the nodes(s) are
-         * loaded.
-         * </dd>
-         * <dt>insertBefore</dt>
-         * <dd>node or node id that will become the new node's nextSibling</dd>
-         * <dt>charset</dt>
-         * <dd>Node charset, deprecated, use 'attributes'</dd>
-         * <dt>attributes</dt>
-         * <dd>A hash of attributes to apply to dynamic nodes.</dd>
-         * </dl>
-         * <pre>
-         *      YAHOO.util.Get.css("http://yui.yahooapis.com/2.7.0/build/menu/assets/skins/sam/menu.css");
-         * </pre>
-         * <pre>
-         *      YAHOO.util.Get.css(["http://yui.yahooapis.com/2.7.0/build/menu/assets/skins/sam/menu.css",
-         * </pre>
-         * @return {tId: string} an object containing info about the transaction
-         */
-        css: function(url, opts) {
-            return _queue("css", url, opts); 
-        }
-    };
-}();
-
-YAHOO.register("get", YAHOO.util.Get, {version: "2.8.0r4", build: "2449"});
-/**
- * Provides dynamic loading for the YUI library.  It includes the dependency
- * info for the library, and will automatically pull in dependencies for
- * the modules requested.  It supports rollup files (such as utilities.js
- * and yahoo-dom-event.js), and will automatically use these when
- * appropriate in order to minimize the number of http connections
- * required to load all of the dependencies.
- * 
- * @module yuiloader
- * @namespace YAHOO.util
- */
-
-/**
- * YUILoader provides dynamic loading for YUI.
- * @class YAHOO.util.YUILoader
- * @todo
- *      version management, automatic sandboxing
- */
-(function() {
-
-    var Y=YAHOO, util=Y.util, lang=Y.lang, env=Y.env,
-        PROV = "_provides", SUPER = "_supersedes",
-        REQ = "expanded", AFTER = "_after";
-    var YUI = {
-
-        dupsAllowed: {'yahoo': true, 'get': true},
-
-        /*
-         * The library metadata for the current release  The is the default
-         * value for YAHOO.util.YUILoader.moduleInfo
-         * @property YUIInfo
-         * @static
-         */
-        info: {
-
-    // 'root': '2.5.2/build/',
-    // 'base': 'http://yui.yahooapis.com/2.5.2/build/',
-
-    'root': '2.8.0r4/build/',
-    'base': 'http://yui.yahooapis.com/2.8.0r4/build/',
-
-    'comboBase': 'http://yui.yahooapis.com/combo?',
-
-    'skin': {
-        'defaultSkin': 'sam',
-        'base': 'assets/skins/',
-        'path': 'skin.css',
-        'after': ['reset', 'fonts', 'grids', 'base'],
-        'rollup': 3
-    },
-
-    dupsAllowed: ['yahoo', 'get'],
-
-    'moduleInfo': {
-
-        'animation': {
-            'type': 'js',
-            'path': 'animation/animation-min.js',
-            'requires': ['dom', 'event']
-        },
-
-        'autocomplete': {
-            'type': 'js',
-            'path': 'autocomplete/autocomplete-min.js',
-            'requires': ['dom', 'event', 'datasource'],
-            'optional': ['connection', 'animation'],
-            'skinnable': true
-        },
-
-        'base': {
-            'type': 'css',
-            'path': 'base/base-min.css',
-            'after': ['reset', 'fonts', 'grids']
-        },
-
-        'button': {
-            'type': 'js',
-            'path': 'button/button-min.js',
-            'requires': ['element'],
-            'optional': ['menu'],
-            'skinnable': true
-        },
-
-        'calendar': {
-            'type': 'js',
-            'path': 'calendar/calendar-min.js',
-            'requires': ['event', 'dom'],
-            supersedes: ['datemeth'],
-            'skinnable': true
-        },
-
-        'carousel': {
-            'type': 'js',
-            'path': 'carousel/carousel-min.js',
-            'requires': ['element'],
-            'optional': ['animation'],
-            'skinnable': true
-        },
-
-        'charts': {
-            'type': 'js',
-            'path': 'charts/charts-min.js',
-            'requires': ['element', 'json', 'datasource', 'swf']
-        },
-
-        'colorpicker': {
-            'type': 'js',
-            'path': 'colorpicker/colorpicker-min.js',
-            'requires': ['slider', 'element'],
-            'optional': ['animation'],
-            'skinnable': true
-        },
-
-        'connection': {
-            'type': 'js',
-            'path': 'connection/connection-min.js',
-            'requires': ['event'],
-            'supersedes': ['connectioncore']
-        },
-
-        'connectioncore': {
-            'type': 'js',
-            'path': 'connection/connection_core-min.js',
-            'requires': ['event'],
-            'pkg': 'connection'
-        },
-
-        'container': {
-            'type': 'js',
-            'path': 'container/container-min.js',
-            'requires': ['dom', 'event'],
-            // button is also optional, but this creates a circular 
-            // dependency when loadOptional is specified.  button
-            // optionally includes menu, menu requires container.
-            'optional': ['dragdrop', 'animation', 'connection'],
-            'supersedes': ['containercore'],
-            'skinnable': true
-        },
-
-        'containercore': {
-            'type': 'js',
-            'path': 'container/container_core-min.js',
-            'requires': ['dom', 'event'],
-            'pkg': 'container'
-        },
-
-        'cookie': {
-            'type': 'js',
-            'path': 'cookie/cookie-min.js',
-            'requires': ['yahoo']
-        },
-
-        'datasource': {
-            'type': 'js',
-            'path': 'datasource/datasource-min.js',
-            'requires': ['event'],
-            'optional': ['connection']
-        },
-
-        'datatable': {
-            'type': 'js',
-            'path': 'datatable/datatable-min.js',
-            'requires': ['element', 'datasource'],
-            'optional': ['calendar', 'dragdrop', 'paginator'],
-            'skinnable': true
-        },
-
-        datemath: {
-            'type': 'js',
-            'path': 'datemath/datemath-min.js',
-            'requires': ['yahoo']
-        },
-
-        'dom': {
-            'type': 'js',
-            'path': 'dom/dom-min.js',
-            'requires': ['yahoo']
-        },
-
-        'dragdrop': {
-            'type': 'js',
-            'path': 'dragdrop/dragdrop-min.js',
-            'requires': ['dom', 'event']
-        },
-
-        'editor': {
-            'type': 'js',
-            'path': 'editor/editor-min.js',
-            'requires': ['menu', 'element', 'button'],
-            'optional': ['animation', 'dragdrop'],
-            'supersedes': ['simpleeditor'],
-            'skinnable': true
-        },
-
-        'element': {
-            'type': 'js',
-            'path': 'element/element-min.js',
-            'requires': ['dom', 'event'],
-            'optional': ['event-mouseenter', 'event-delegate']
-        },
-
-        'element-delegate': {
-            'type': 'js',
-            'path': 'element-delegate/element-delegate-min.js',
-            'requires': ['element']
-        },
-
-        'event': {
-            'type': 'js',
-            'path': 'event/event-min.js',
-            'requires': ['yahoo']
-        },
-
-        'event-simulate': {
-            'type': 'js',
-            'path': 'event-simulate/event-simulate-min.js',
-            'requires': ['event']
-        },
-
-        'event-delegate': {
-            'type': 'js',
-            'path': 'event-delegate/event-delegate-min.js',
-            'requires': ['event'],
-            'optional': ['selector']
-        },
-
-        'event-mouseenter': {
-            'type': 'js',
-            'path': 'event-mouseenter/event-mouseenter-min.js',
-            'requires': ['dom', 'event']
-        },
-
-        'fonts': {
-            'type': 'css',
-            'path': 'fonts/fonts-min.css'
-        },
-
-        'get': {
-            'type': 'js',
-            'path': 'get/get-min.js',
-            'requires': ['yahoo']
-        },
-
-        'grids': {
-            'type': 'css',
-            'path': 'grids/grids-min.css',
-            'requires': ['fonts'],
-            'optional': ['reset']
-        },
-
-        'history': {
-            'type': 'js',
-            'path': 'history/history-min.js',
-            'requires': ['event']
-        },
-
-         'imagecropper': {
-             'type': 'js',
-             'path': 'imagecropper/imagecropper-min.js',
-             'requires': ['dragdrop', 'element', 'resize'],
-             'skinnable': true
-         },
-
-         'imageloader': {
-            'type': 'js',
-            'path': 'imageloader/imageloader-min.js',
-            'requires': ['event', 'dom']
-         },
-
-         'json': {
-            'type': 'js',
-            'path': 'json/json-min.js',
-            'requires': ['yahoo']
-         },
-
-         'layout': {
-             'type': 'js',
-             'path': 'layout/layout-min.js',
-             'requires': ['element'],
-             'optional': ['animation', 'dragdrop', 'resize', 'selector'],
-             'skinnable': true
-         }, 
-
-        'logger': {
-            'type': 'js',
-            'path': 'logger/logger-min.js',
-            'requires': ['event', 'dom'],
-            'optional': ['dragdrop'],
-            'skinnable': true
-        },
-
-        'menu': {
-            'type': 'js',
-            'path': 'menu/menu-min.js',
-            'requires': ['containercore'],
-            'skinnable': true
-        },
-
-        'paginator': {
-            'type': 'js',
-            'path': 'paginator/paginator-min.js',
-            'requires': ['element'],
-            'skinnable': true
-        },
-
-        'profiler': {
-            'type': 'js',
-            'path': 'profiler/profiler-min.js',
-            'requires': ['yahoo']
-        },
-
-
-        'profilerviewer': {
-            'type': 'js',
-            'path': 'profilerviewer/profilerviewer-min.js',
-            'requires': ['profiler', 'yuiloader', 'element'],
-            'skinnable': true
-        },
-
-        'progressbar': {
-            'type': 'js',
-            'path': 'progressbar/progressbar-min.js',
-            'requires': ['element'],
-            'optional': ['animation'],
-            'skinnable': true
-        },
-
-        'reset': {
-            'type': 'css',
-            'path': 'reset/reset-min.css'
-        },
-
-        'reset-fonts-grids': {
-            'type': 'css',
-            'path': 'reset-fonts-grids/reset-fonts-grids.css',
-            'supersedes': ['reset', 'fonts', 'grids', 'reset-fonts'],
-            'rollup': 4
-        },
-
-        'reset-fonts': {
-            'type': 'css',
-            'path': 'reset-fonts/reset-fonts.css',
-            'supersedes': ['reset', 'fonts'],
-            'rollup': 2
-        },
-
-         'resize': {
-             'type': 'js',
-             'path': 'resize/resize-min.js',
-             'requires': ['dragdrop', 'element'],
-             'optional': ['animation'],
-             'skinnable': true
-         },
-
-        'selector': {
-            'type': 'js',
-            'path': 'selector/selector-min.js',
-            'requires': ['yahoo', 'dom']
-        },
-
-        'simpleeditor': {
-            'type': 'js',
-            'path': 'editor/simpleeditor-min.js',
-            'requires': ['element'],
-            'optional': ['containercore', 'menu', 'button', 'animation', 'dragdrop'],
-            'skinnable': true,
-            'pkg': 'editor'
-        },
-
-        'slider': {
-            'type': 'js',
-            'path': 'slider/slider-min.js',
-            'requires': ['dragdrop'],
-            'optional': ['animation'],
-            'skinnable': true
-        },
-
-        'storage': {
-            'type': 'js',
-            'path': 'storage/storage-min.js',
-            'requires': ['yahoo', 'event', 'cookie'],
-            'optional': ['swfstore']
-        },
-
-         'stylesheet': {
-            'type': 'js',
-            'path': 'stylesheet/stylesheet-min.js',
-            'requires': ['yahoo']
-         },
-
-        'swf': {
-            'type': 'js',
-            'path': 'swf/swf-min.js',
-            'requires': ['element'],
-            'supersedes': ['swfdetect']
-        },
-
-        'swfdetect': {
-            'type': 'js',
-            'path': 'swfdetect/swfdetect-min.js',
-            'requires': ['yahoo']
-        },
-
-        'swfstore': {
-            'type': 'js',
-            'path': 'swfstore/swfstore-min.js',
-            'requires': ['element', 'cookie', 'swf']
-        },
-
-        'tabview': {
-            'type': 'js',
-            'path': 'tabview/tabview-min.js',
-            'requires': ['element'],
-            'optional': ['connection'],
-            'skinnable': true
-        },
-
-        'treeview': {
-            'type': 'js',
-            'path': 'treeview/treeview-min.js',
-            'requires': ['event', 'dom'],
-            'optional': ['json', 'animation', 'calendar'],
-            'skinnable': true
-        },
-
-        'uploader': {
-            'type': 'js',
-            'path': 'uploader/uploader-min.js',
-            'requires': ['element']
-        },
-
-        'utilities': {
-            'type': 'js',
-            'path': 'utilities/utilities.js',
-            'supersedes': ['yahoo', 'event', 'dragdrop', 'animation', 'dom', 'connection', 'element', 'yahoo-dom-event', 'get', 'yuiloader', 'yuiloader-dom-event'],
-            'rollup': 8
-        },
-
-        'yahoo': {
-            'type': 'js',
-            'path': 'yahoo/yahoo-min.js'
-        },
-
-        'yahoo-dom-event': {
-            'type': 'js',
-            'path': 'yahoo-dom-event/yahoo-dom-event.js',
-            'supersedes': ['yahoo', 'event', 'dom'],
-            'rollup': 3
-        },
-
-        'yuiloader': {
-            'type': 'js',
-            'path': 'yuiloader/yuiloader-min.js',
-            'supersedes': ['yahoo', 'get']
-        },
-
-        'yuiloader-dom-event': {
-            'type': 'js',
-            'path': 'yuiloader-dom-event/yuiloader-dom-event.js',
-            'supersedes': ['yahoo', 'dom', 'event', 'get', 'yuiloader', 'yahoo-dom-event'],
-            'rollup': 5
-        },
-
-        'yuitest': {
-            'type': 'js',
-            'path': 'yuitest/yuitest-min.js',
-            'requires': ['logger'],
-            'optional': ['event-simulate'],
-            'skinnable': true
-        }
-    }
-}
- , 
-
-        ObjectUtil: {
-            appendArray: function(o, a) {
-                if (a) {
-                    for (var i=0; i<a.length; i=i+1) {
-                        o[a[i]] = true;
-                    }
-                }
-            },
-
-            keys: function(o, ordered) {
-                var a=[], i;
-                for (i in o) {
-                    if (lang.hasOwnProperty(o, i)) {
-                        a.push(i);
-                    }
-                }
-
-                return a;
-            }
-        },
-
-        ArrayUtil: {
-
-            appendArray: function(a1, a2) {
-                Array.prototype.push.apply(a1, a2);
-                /*
-                for (var i=0; i<a2.length; i=i+1) {
-                    a1.push(a2[i]);
-                }
-                */
-            },
-
-            indexOf: function(a, val) {
-                for (var i=0; i<a.length; i=i+1) {
-                    if (a[i] === val) {
-                        return i;
-                    }
-                }
-
-                return -1;
-            },
-
-            toObject: function(a) {
-                var o = {};
-                for (var i=0; i<a.length; i=i+1) {
-                    o[a[i]] = true;
-                }
-
-                return o;
-            },
-
-            /*
-             * Returns a unique array.  Does not maintain order, which is fine
-             * for this application, and performs better than it would if it
-             * did.
-             */
-            uniq: function(a) {
-                return YUI.ObjectUtil.keys(YUI.ArrayUtil.toObject(a));
-            }
-        }
-    };
-
-    YAHOO.util.YUILoader = function(o) {
-
-        /**
-         * Internal callback to handle multiple internal insert() calls
-         * so that css is inserted prior to js
-         * @property _internalCallback
-         * @private
-         */
-        this._internalCallback = null;
-
-        /**
-         * Use the YAHOO environment listener to detect script load.  This
-         * is only switched on for Safari 2.x and below.
-         * @property _useYahooListener
-         * @private
-         */
-        this._useYahooListener = false;
-
-        /**
-         * Callback that will be executed when the loader is finished
-         * with an insert
-         * @method onSuccess
-         * @type function
-         */
-        this.onSuccess = null;
-
-        /**
-         * Callback that will be executed if there is a failure
-         * @method onFailure
-         * @type function
-         */
-        this.onFailure = Y.log;
-
-        /**
-         * Callback that will be executed each time a new module is loaded
-         * @method onProgress
-         * @type function
-         */
-        this.onProgress = null;
-
-        /**
-         * Callback that will be executed if a timeout occurs
-         * @method onTimeout
-         * @type function
-         */
-        this.onTimeout = null;
-
-        /**
-         * The execution scope for all callbacks
-         * @property scope
-         * @default this
-         */
-        this.scope = this;
-
-        /**
-         * Data that is passed to all callbacks
-         * @property data
-         */
-        this.data = null;
-
-        /**
-         * Node reference or id where new nodes should be inserted before
-         * @property insertBefore
-         * @type string|HTMLElement
-         */
-        this.insertBefore = null;
-
-        /**
-         * The charset attribute for inserted nodes
-         * @property charset
-         * @type string
-         * @default utf-8
-         */
-        this.charset = null;
-
-        /**
-         * The name of the variable in a sandbox or script node 
-         * (for external script support in Safari 2.x and earlier)
-         * to reference when the load is complete.  If this variable 
-         * is not available in the specified scripts, the operation will 
-         * fail.  
-         * @property varName
-         * @type string
-         */
-        this.varName = null;
-
-        /**
-         * The base directory.
-         * @property base
-         * @type string
-         * @default http://yui.yahooapis.com/[YUI VERSION]/build/
-         */
-        this.base = YUI.info.base;
-
-        /**
-         * Base path for the combo service
-         * @property comboBase
-         * @type string
-         * @default http://yui.yahooapis.com/combo?
-         */
-        this.comboBase = YUI.info.comboBase;
-
-        /**
-         * If configured, YUI will use the combo handler on the
-         * Yahoo! CDN to pontentially reduce the number of http requests
-         * required.
-         * @property combine
-         * @type boolean
-         * @default false
-         */
-        // this.combine = (o && !('base' in o));
-        this.combine = false;
-
-
-        /**
-         * Root path to prepend to module path for the combo
-         * service
-         * @property root
-         * @type string
-         * @default [YUI VERSION]/build/
-         */
-        this.root = YUI.info.root;
-
-        /**
-         * Timeout value in milliseconds.  If set, this value will be used by
-         * the get utility.  the timeout event will fire if
-         * a timeout occurs.
-         * @property timeout
-         * @type int
-         */
-        this.timeout = 0;
-
-        /**
-         * A list of modules that should not be loaded, even if
-         * they turn up in the dependency tree
-         * @property ignore
-         * @type string[]
-         */
-        this.ignore = null;
-
-        /**
-         * A list of modules that should always be loaded, even
-         * if they have already been inserted into the page.
-         * @property force
-         * @type string[]
-         */
-        this.force = null;
-
-        /**
-         * Should we allow rollups
-         * @property allowRollup
-         * @type boolean
-         * @default true
-         */
-        this.allowRollup = true;
-
-        /**
-         * A filter to apply to result urls.  This filter will modify the default
-         * path for all modules.  The default path for the YUI library is the
-         * minified version of the files (e.g., event-min.js).  The filter property
-         * can be a predefined filter or a custom filter.  The valid predefined 
-         * filters are:
-         * <dl>
-         *  <dt>DEBUG</dt>
-         *  <dd>Selects the debug versions of the library (e.g., event-debug.js).
-         *      This option will automatically include the logger widget</dd>
-         *  <dt>RAW</dt>
-         *  <dd>Selects the non-minified version of the library (e.g., event.js).
-         * </dl>
-         * You can also define a custom filter, which must be an object literal 
-         * containing a search expression and a replace string:
-         * <pre>
-         *  myFilter: &#123; 
-         *      'searchExp': "-min\\.js", 
-         *      'replaceStr': "-debug.js"
-         *  &#125;
-         * </pre>
-         * @property filter
-         * @type string|{searchExp: string, replaceStr: string}
-         */
-        this.filter = null;
-
-        /**
-         * The list of requested modules
-         * @property required
-         * @type {string: boolean}
-         */
-        this.required = {};
-
-        /**
-         * The library metadata
-         * @property moduleInfo
-         */
-        this.moduleInfo = lang.merge(YUI.info.moduleInfo);
-
-        /**
-         * List of rollup files found in the library metadata
-         * @property rollups
-         */
-        this.rollups = null;
-
-        /**
-         * Whether or not to load optional dependencies for 
-         * the requested modules
-         * @property loadOptional
-         * @type boolean
-         * @default false
-         */
-        this.loadOptional = false;
-
-        /**
-         * All of the derived dependencies in sorted order, which
-         * will be populated when either calculate() or insert()
-         * is called
-         * @property sorted
-         * @type string[]
-         */
-        this.sorted = [];
-
-        /**
-         * Set when beginning to compute the dependency tree. 
-         * Composed of what YAHOO reports to be loaded combined
-         * with what has been loaded by the tool
-         * @propery loaded
-         * @type {string: boolean}
-         */
-        this.loaded = {};
-
-        /**
-         * Flag to indicate the dependency tree needs to be recomputed
-         * if insert is called again.
-         * @property dirty
-         * @type boolean
-         * @default true
-         */
-        this.dirty = true;
-
-        /**
-         * List of modules inserted by the utility
-         * @property inserted
-         * @type {string: boolean}
-         */
-        this.inserted = {};
-
-        /**
-         * Provides the information used to skin the skinnable components.
-         * The following skin definition would result in 'skin1' and 'skin2'
-         * being loaded for calendar (if calendar was requested), and
-         * 'sam' for all other skinnable components:
-         *
-         *   <code>
-         *   skin: {
-         *
-         *      // The default skin, which is automatically applied if not
-         *      // overriden by a component-specific skin definition.
-         *      // Change this in to apply a different skin globally
-         *      defaultSkin: 'sam', 
-         *
-         *      // This is combined with the loader base property to get
-         *      // the default root directory for a skin. ex:
-         *      // http://yui.yahooapis.com/2.3.0/build/assets/skins/sam/
-         *      base: 'assets/skins/',
-         *
-         *      // The name of the rollup css file for the skin
-         *      path: 'skin.css',
-         *
-         *      // The number of skinnable components requested that are
-         *      // required before using the rollup file rather than the
-         *      // individual component css files
-         *      rollup: 3,
-         *
-         *      // Any component-specific overrides can be specified here,
-         *      // making it possible to load different skins for different
-         *      // components.  It is possible to load more than one skin
-         *      // for a given component as well.
-         *      overrides: {
-         *          calendar: ['skin1', 'skin2']
-         *      }
-         *   }
-         *   </code>
-         *   @property skin
-         */
-
-        var self = this;
-
-        env.listeners.push(function(m) {
-            if (self._useYahooListener) {
-                //Y.log("YAHOO listener: " + m.name);
-                self.loadNext(m.name);
-            }
-        });
-
-        this.skin = lang.merge(YUI.info.skin); 
-
-        this._config(o);
-
-    };
-
-    Y.util.YUILoader.prototype = {
-
-        FILTERS: {
-            RAW: { 
-                'searchExp': "-min\\.js", 
-                'replaceStr': ".js"
-            },
-            DEBUG: { 
-                'searchExp': "-min\\.js", 
-                'replaceStr': "-debug.js"
-            }
-        },
-
-        SKIN_PREFIX: "skin-",
-
-        _config: function(o) {
-
-            // apply config values
-            if (o) {
-                for (var i in o) {
-                    if (lang.hasOwnProperty(o, i)) {
-                        if (i == "require") {
-                            this.require(o[i]);
-                        } else {
-                            this[i] = o[i];
-                        }
-                    }
-                }
-            }
-
-            // fix filter
-            var f = this.filter;
-
-            if (lang.isString(f)) {
-                f = f.toUpperCase();
-
-                // the logger must be available in order to use the debug
-                // versions of the library
-                if (f === "DEBUG") {
-                    this.require("logger");
-                }
-
-                // hack to handle a a bug where LogWriter is being instantiated
-                // at load time, and the loader has no way to sort above it
-                // at the moment.
-                if (!Y.widget.LogWriter) {
-                    Y.widget.LogWriter = function() {
-                        return Y;
-                    };
-                }
-
-                this.filter = this.FILTERS[f];
-            }
-
-        },
-
-        /** Add a new module to the component metadata.         
-         * <dl>
-         *     <dt>name:</dt>       <dd>required, the component name</dd>
-         *     <dt>type:</dt>       <dd>required, the component type (js or css)</dd>
-         *     <dt>path:</dt>       <dd>required, the path to the script from "base"</dd>
-         *     <dt>requires:</dt>   <dd>array of modules required by this component</dd>
-         *     <dt>optional:</dt>   <dd>array of optional modules for this component</dd>
-         *     <dt>supersedes:</dt> <dd>array of the modules this component replaces</dd>
-         *     <dt>after:</dt>      <dd>array of modules the components which, if present, should be sorted above this one</dd>
-         *     <dt>rollup:</dt>     <dd>the number of superseded modules required for automatic rollup</dd>
-         *     <dt>fullpath:</dt>   <dd>If fullpath is specified, this is used instead of the configured base + path</dd>
-         *     <dt>skinnable:</dt>  <dd>flag to determine if skin assets should automatically be pulled in</dd>
-         * </dl>
-         * @method addModule
-         * @param o An object containing the module data
-         * @return {boolean} true if the module was added, false if 
-         * the object passed in did not provide all required attributes
-         */
-        addModule: function(o) {
-
-            if (!o || !o.name || !o.type || (!o.path && !o.fullpath)) {
-                return false;
-            }
-
-            o.ext = ('ext' in o) ? o.ext : true;
-            o.requires = o.requires || [];
-
-            this.moduleInfo[o.name] = o;
-            this.dirty = true;
-
-            return true;
-        },
-
-        /**
-         * Add a requirement for one or more module
-         * @method require
-         * @param what {string[] | string*} the modules to load
-         */
-        require: function(what) {
-            var a = (typeof what === "string") ? arguments : what;
-            this.dirty = true;
-            YUI.ObjectUtil.appendArray(this.required, a);
-        },
-
-        /**
-         * Adds the skin def to the module info
-         * @method _addSkin
-         * @param skin {string} the name of the skin
-         * @param mod {string} the name of the module
-         * @return {string} the module name for the skin
-         * @private
-         */
-        _addSkin: function(skin, mod) {
-
-            // Add a module definition for the skin rollup css
-            var name = this.formatSkin(skin), info = this.moduleInfo,
-                sinf = this.skin, ext = info[mod] && info[mod].ext;
-
-            // Y.log('ext? ' + mod + ": " + ext);
-            if (!info[name]) {
-                // Y.log('adding skin ' + name);
-                this.addModule({
-                    'name': name,
-                    'type': 'css',
-                    'path': sinf.base + skin + '/' + sinf.path,
-                    //'supersedes': '*',
-                    'after': sinf.after,
-                    'rollup': sinf.rollup,
-                    'ext': ext
-                });
-            }
-
-            // Add a module definition for the module-specific skin css
-            if (mod) {
-                name = this.formatSkin(skin, mod);
-                if (!info[name]) {
-                    var mdef = info[mod], pkg = mdef.pkg || mod;
-                    // Y.log('adding skin ' + name);
-                    this.addModule({
-                        'name': name,
-                        'type': 'css',
-                        'after': sinf.after,
-                        'path': pkg + '/' + sinf.base + skin + '/' + mod + '.css',
-                        'ext': ext
-                    });
-                }
-            }
-
-            return name;
-        },
-
-        /**
-         * Returns an object containing properties for all modules required
-         * in order to load the requested module
-         * @method getRequires
-         * @param mod The module definition from moduleInfo
-         */
-        getRequires: function(mod) {
-            if (!mod) {
-                return [];
-            }
-
-            if (!this.dirty && mod.expanded) {
-                return mod.expanded;
-            }
-
-            mod.requires=mod.requires || [];
-            var i, d=[], r=mod.requires, o=mod.optional, info=this.moduleInfo, m;
-            for (i=0; i<r.length; i=i+1) {
-                d.push(r[i]);
-                m = info[r[i]];
-                YUI.ArrayUtil.appendArray(d, this.getRequires(m));
-
-                // add existing skins for skinnable modules as well.  The only
-                // way to do this is go through the list of required items (this
-                // assumes that _skin is called before getRequires is called on
-                // the module.
-                // if (m.skinnable) {
-                //     var req=this.required, l=req.length;
-                //     for (var j=0; j<l; j=j+1) {
-                //         // YAHOO.log('checking ' + r[j]);
-                //         if (req[j].indexOf(r[j]) > -1) {
-                //             // YAHOO.log('adding ' + r[j]);
-                //             d.push(req[j]);
-                //         }
-                //     }
-                // }
-            }
-
-            if (o && this.loadOptional) {
-                for (i=0; i<o.length; i=i+1) {
-                    d.push(o[i]);
-                    YUI.ArrayUtil.appendArray(d, this.getRequires(info[o[i]]));
-                }
-            }
-
-            mod.expanded = YUI.ArrayUtil.uniq(d);
-
-            return mod.expanded;
-        },
-
-
-        /**
-         * Returns an object literal of the modules the supplied module satisfies
-         * @method getProvides
-         * @param name{string} The name of the module
-         * @param notMe {string} don't add this module name, only include superseded modules
-         * @return what this module provides
-         */
-        getProvides: function(name, notMe) {
-            var addMe = !(notMe), ckey = (addMe) ? PROV : SUPER,
-                m = this.moduleInfo[name], o = {};
-
-            if (!m) {
-                return o;
-            }
-
-            if (m[ckey]) {
-// Y.log('cached: ' + name + ' ' + ckey + ' ' + lang.dump(this.moduleInfo[name][ckey], 0));
-                return m[ckey];
-            }
-
-            var s = m.supersedes, done={}, me = this;
-
-            // use worker to break cycles
-            var add = function(mm) {
-                if (!done[mm]) {
-                    // Y.log(name + ' provides worker trying: ' + mm);
-                    done[mm] = true;
-                    // we always want the return value normal behavior 
-                    // (provides) for superseded modules.
-                    lang.augmentObject(o, me.getProvides(mm));
-                } 
-                
-                // else {
-                // Y.log(name + ' provides worker skipping done: ' + mm);
-                // }
-            };
-
-            // calculate superseded modules
-            if (s) {
-                for (var i=0; i<s.length; i=i+1) {
-                    add(s[i]);
-                }
-            }
-
-            // supersedes cache
-            m[SUPER] = o;
-            // provides cache
-            m[PROV] = lang.merge(o);
-            m[PROV][name] = true;
-
-// Y.log(name + " supersedes " + lang.dump(m[SUPER], 0));
-// Y.log(name + " provides " + lang.dump(m[PROV], 0));
-
-            return m[ckey];
-        },
-
-
-        /**
-         * Calculates the dependency tree, the result is stored in the sorted 
-         * property
-         * @method calculate
-         * @param o optional options object
-         */
-        calculate: function(o) {
-            if (o || this.dirty) {
-                this._config(o);
-                this._setup();
-                this._explode();
-                // this._skin(); // deprecated
-                if (this.allowRollup) {
-                    this._rollup();
-                }
-                this._reduce();
-                this._sort();
-
-                // Y.log("after calculate: " + lang.dump(this.required));
-
-                this.dirty = false;
-            }
-        },
-
-        /**
-         * Investigates the current YUI configuration on the page.  By default,
-         * modules already detected will not be loaded again unless a force
-         * option is encountered.  Called by calculate()
-         * @method _setup
-         * @private
-         */
-        _setup: function() {
-
-            var info = this.moduleInfo, name, i, j;
-
-            // Create skin modules
-            for (name in info) {
-
-                if (lang.hasOwnProperty(info, name)) {
-                    var m = info[name];
-                    if (m && m.skinnable) {
-                        // Y.log("skinning: " + name);
-                        var o=this.skin.overrides, smod;
-                        if (o && o[name]) {
-                            for (i=0; i<o[name].length; i=i+1) {
-                                smod = this._addSkin(o[name][i], name);
-                            }
-                        } else {
-                            smod = this._addSkin(this.skin.defaultSkin, name);
-                        }
-
-                        m.requires.push(smod);
-                    }
-                }
-
-            }
-
-            var l = lang.merge(this.inserted); // shallow clone
-            
-            if (!this._sandbox) {
-                l = lang.merge(l, env.modules);
-            }
-
-            // Y.log("Already loaded stuff: " + lang.dump(l, 0));
-
-            // add the ignore list to the list of loaded packages
-            if (this.ignore) {
-                YUI.ObjectUtil.appendArray(l, this.ignore);
-            }
-
-            // remove modules on the force list from the loaded list
-            if (this.force) {
-                for (i=0; i<this.force.length; i=i+1) {
-                    if (this.force[i] in l) {
-                        delete l[this.force[i]];
-                    }
-                }
-            }
-
-            // expand the list to include superseded modules
-            for (j in l) {
-                // Y.log("expanding: " + j);
-                if (lang.hasOwnProperty(l, j)) {
-                    lang.augmentObject(l, this.getProvides(j));
-                }
-            }
-
-            // Y.log("loaded expanded: " + lang.dump(l, 0));
-
-            this.loaded = l;
-
-        },
-        
-
-        /**
-         * Inspects the required modules list looking for additional 
-         * dependencies.  Expands the required list to include all 
-         * required modules.  Called by calculate()
-         * @method _explode
-         * @private
-         */
-        _explode: function() {
-
-            var r=this.required, i, mod;
-
-            for (i in r) {
-                if (lang.hasOwnProperty(r, i)) {
-                    mod = this.moduleInfo[i];
-                    if (mod) {
-
-                        var req = this.getRequires(mod);
-
-                        if (req) {
-                            YUI.ObjectUtil.appendArray(r, req);
-                        }
-                    }
-                }
-            }
-        },
-
-        /**
-         * Sets up the requirements for the skin assets if any of the
-         * requested modules are skinnable
-         * @method _skin
-         * @private
-         * @deprecated skin modules are generated for all skinnable
-         *             components during _setup(), and the components
-         *             are configured to require the skin.
-         */
-        _skin: function() {
-
-        },
-
-        /**
-         * Returns the skin module name for the specified skin name.  If a
-         * module name is supplied, the returned skin module name is 
-         * specific to the module passed in.
-         * @method formatSkin
-         * @param skin {string} the name of the skin
-         * @param mod {string} optional: the name of a module to skin
-         * @return {string} the full skin module name
-         */
-        formatSkin: function(skin, mod) {
-            var s = this.SKIN_PREFIX + skin;
-            if (mod) {
-                s = s + "-" + mod;
-            }
-
-            return s;
-        },
-        
-        /**
-         * Reverses <code>formatSkin</code>, providing the skin name and
-         * module name if the string matches the pattern for skins.
-         * @method parseSkin
-         * @param mod {string} the module name to parse
-         * @return {skin: string, module: string} the parsed skin name 
-         * and module name, or null if the supplied string does not match
-         * the skin pattern
-         */
-        parseSkin: function(mod) {
-            
-            if (mod.indexOf(this.SKIN_PREFIX) === 0) {
-                var a = mod.split("-");
-                return {skin: a[1], module: a[2]};
-            } 
-
-            return null;
-        },
-
-        /**
-         * Look for rollup packages to determine if all of the modules a
-         * rollup supersedes are required.  If so, include the rollup to
-         * help reduce the total number of connections required.  Called
-         * by calculate()
-         * @method _rollup
-         * @private
-         */
-        _rollup: function() {
-            var i, j, m, s, rollups={}, r=this.required, roll,
-                info = this.moduleInfo;
-
-            // find and cache rollup modules
-            if (this.dirty || !this.rollups) {
-                for (i in info) {
-                    if (lang.hasOwnProperty(info, i)) {
-                        m = info[i];
-                        //if (m && m.rollup && m.supersedes) {
-                        if (m && m.rollup) {
-                            rollups[i] = m;
-                        }
-                    }
-                }
-
-                this.rollups = rollups;
-            }
-
-            // make as many passes as needed to pick up rollup rollups
-            for (;;) {
-                var rolled = false;
-
-                // go through the rollup candidates
-                for (i in rollups) { 
-
-                    // there can be only one
-                    if (!r[i] && !this.loaded[i]) {
-                        m =info[i]; s = m.supersedes; roll=false;
-
-                        if (!m.rollup) {
-                            continue;
-                        }
-
-                        var skin = (m.ext) ? false : this.parseSkin(i), c = 0;
-
-                        // Y.log('skin? ' + i + ": " + skin);
-                        if (skin) {
-                            for (j in r) {
-                                if (lang.hasOwnProperty(r, j)) {
-                                    if (i !== j && this.parseSkin(j)) {
-                                        c++;
-                                        roll = (c >= m.rollup);
-                                        if (roll) {
-                                            // Y.log("skin rollup " + lang.dump(r));
-                                            break;
-                                        }
-                                    }
-                                }
-                            }
-
-                        } else {
-
-                            // check the threshold
-                            for (j=0;j<s.length;j=j+1) {
-
-                                // if the superseded module is loaded, we can't load the rollup
-                                if (this.loaded[s[j]] && (!YUI.dupsAllowed[s[j]])) {
-                                    roll = false;
-                                    break;
-                                // increment the counter if this module is required.  if we are
-                                // beyond the rollup threshold, we will use the rollup module
-                                } else if (r[s[j]]) {
-                                    c++;
-                                    roll = (c >= m.rollup);
-                                    if (roll) {
-                                        // Y.log("over thresh " + c + ", " + lang.dump(r));
-                                        break;
-                                    }
-                                }
-                            }
-                        }
-
-                        if (roll) {
-                            // Y.log("rollup: " +  i + ", " + lang.dump(this, 1));
-                            // add the rollup
-                            r[i] = true;
-                            rolled = true;
-
-                            // expand the rollup's dependencies
-                            this.getRequires(m);
-                        }
-                    }
-                }
-
-                // if we made it here w/o rolling up something, we are done
-                if (!rolled) {
-                    break;
-                }
-            }
-        },
-
-        /**
-         * Remove superceded modules and loaded modules.  Called by
-         * calculate() after we have the mega list of all dependencies
-         * @method _reduce
-         * @private
-         */
-        _reduce: function() {
-
-            var i, j, s, m, r=this.required;
-            for (i in r) {
-
-                // remove if already loaded
-                if (i in this.loaded) { 
-                    delete r[i];
-
-                // remove anything this module supersedes
-                } else {
-
-                    var skinDef = this.parseSkin(i);
-
-                    if (skinDef) {
-                        //YAHOO.log("skin found in reduce: " + skinDef.skin + ", " + skinDef.module);
-                        // the skin rollup will not have a module name
-                        if (!skinDef.module) {
-                            var skin_pre = this.SKIN_PREFIX + skinDef.skin;
-                            //YAHOO.log("skin_pre: " + skin_pre);
-                            for (j in r) {
-
-                                if (lang.hasOwnProperty(r, j)) {
-                                    m = this.moduleInfo[j];
-                                    var ext = m && m.ext;
-                                    if (!ext && j !== i && j.indexOf(skin_pre) > -1) {
-                                        // Y.log ("removing component skin: " + j);
-                                        delete r[j];
-                                    }
-                                }
-                            }
-                        }
-                    } else {
-
-                         m = this.moduleInfo[i];
-                         s = m && m.supersedes;
-                         if (s) {
-                             for (j=0; j<s.length; j=j+1) {
-                                 if (s[j] in r) {
-                                     delete r[s[j]];
-                                 }
-                             }
-                         }
-                    }
-                }
-            }
-        },
-
-        _onFailure: function(msg) {
-            YAHOO.log('Failure', 'info', 'loader');
-
-            var f = this.onFailure;
-            if (f) {
-                f.call(this.scope, {
-                    msg: 'failure: ' + msg,
-                    data: this.data,
-                    success: false
-                });
-            }
-        },
-
-        _onTimeout: function() {
-            YAHOO.log('Timeout', 'info', 'loader');
-            var f = this.onTimeout;
-            if (f) {
-                f.call(this.scope, {
-                    msg: 'timeout',
-                    data: this.data,
-                    success: false
-                });
-            }
-        },
-        
-        /**
-         * Sorts the dependency tree.  The last step of calculate()
-         * @method _sort
-         * @private
-         */
-        _sort: function() {
-            // create an indexed list
-            var s=[], info=this.moduleInfo, loaded=this.loaded,
-                checkOptional=!this.loadOptional, me = this;
-
-            // returns true if b is not loaded, and is required
-            // directly or by means of modules it supersedes.
-            var requires = function(aa, bb) {
-
-                var mm=info[aa];
-
-                if (loaded[bb] || !mm) {
-                    return false;
-                }
-
-                var ii, 
-                    rr = mm.expanded, 
-                    after = mm.after, 
-                    other = info[bb],
-                    optional = mm.optional;
-
-
-                // check if this module requires the other directly
-                if (rr && YUI.ArrayUtil.indexOf(rr, bb) > -1) {
-                    return true;
-                }
-
-                // check if this module should be sorted after the other
-                if (after && YUI.ArrayUtil.indexOf(after, bb) > -1) {
-                    return true;
-                }
-
-                // if loadOptional is not specified, optional dependencies still
-                // must be sorted correctly when present.
-                if (checkOptional && optional && YUI.ArrayUtil.indexOf(optional, bb) > -1) {
-                    return true;
-                }
-
-                // check if this module requires one the other supersedes
-                var ss=info[bb] && info[bb].supersedes;
-                if (ss) {
-                    for (ii=0; ii<ss.length; ii=ii+1) {
-                        if (requires(aa, ss[ii])) {
-                            return true;
-                        }
-                    }
-                }
-
-                // var ss=me.getProvides(bb, true);
-                // if (ss) {
-                //     for (ii in ss) {
-                //         if (requires(aa, ii)) {
-                //             return true;
-                //         }
-                //     }
-                // }
-
-                // external css files should be sorted below yui css
-                if (mm.ext && mm.type == 'css' && !other.ext && other.type == 'css') {
-                    return true;
-                }
-
-                return false;
-            };
-
-            // get the required items out of the obj into an array so we
-            // can sort
-            for (var i in this.required) {
-                if (lang.hasOwnProperty(this.required, i)) {
-                    s.push(i);
-                }
-            }
-
-            // pointer to the first unsorted item
-            var p=0; 
-
-            // keep going until we make a pass without moving anything
-            for (;;) {
-               
-                var l=s.length, a, b, j, k, moved=false;
-
-                // start the loop after items that are already sorted
-                for (j=p; j<l; j=j+1) {
-
-                    // check the next module on the list to see if its
-                    // dependencies have been met
-                    a = s[j];
-
-                    // check everything below current item and move if we
-                    // find a requirement for the current item
-                    for (k=j+1; k<l; k=k+1) {
-                        if (requires(a, s[k])) {
-
-                            // extract the dependency so we can move it up
-                            b = s.splice(k, 1);
-
-                            // insert the dependency above the item that 
-                            // requires it
-                            s.splice(j, 0, b[0]);
-
-                            moved = true;
-                            break;
-                        }
-                    }
-
-                    // jump out of loop if we moved something
-                    if (moved) {
-                        break;
-                    // this item is sorted, move our pointer and keep going
-                    } else {
-                        p = p + 1;
-                    }
-                }
-
-                // when we make it here and moved is false, we are 
-                // finished sorting
-                if (!moved) {
-                    break;
-                }
-
-            }
-
-            this.sorted = s;
-        },
-
-        toString: function() {
-            var o = {
-                type: "YUILoader",
-                base: this.base,
-                filter: this.filter,
-                required: this.required,
-                loaded: this.loaded,
-                inserted: this.inserted
-            };
-
-            lang.dump(o, 1);
-        },
-
-        _combine: function() {
-
-                this._combining = []; 
-
-                var self = this,
-                    s=this.sorted,
-                    len = s.length,
-                    js = this.comboBase,
-                    css = this.comboBase,
-                    target, 
-                    startLen = js.length,
-                    i, m, type = this.loadType;
-
-                YAHOO.log('type ' + type);
-
-                for (i=0; i<len; i=i+1) {
-
-                    m = this.moduleInfo[s[i]];
-
-                    if (m && !m.ext && (!type || type === m.type)) {
-
-                        target = this.root + m.path;
-
-                        // if (i < len-1) {
-                        target += '&';
-                        // }
-
-                        if (m.type == 'js') {
-                            js += target;
-                        } else {
-                            css += target;
-                        }
-
-                        // YAHOO.log(target);
-                        this._combining.push(s[i]);
-                    }
-                }
-
-                if (this._combining.length) {
-
-YAHOO.log('Attempting to combine: ' + this._combining, "info", "loader");
-
-                    var callback=function(o) {
-                        // YAHOO.log('Combo complete: ' + o.data, "info", "loader");
-                        // this._combineComplete = true;
-
-                        var c=this._combining, len=c.length, i, m;
-                        for (i=0; i<len; i=i+1) {
-                            this.inserted[c[i]] = true;
-                        }
-
-                        this.loadNext(o.data);
-                    }, 
-                    
-                    loadScript = function() {
-                        // YAHOO.log('combining js: ' + js);
-                        if (js.length > startLen) {
-                            YAHOO.util.Get.script(self._filter(js), {
-                                data: self._loading,
-                                onSuccess: callback,
-                                onFailure: self._onFailure,
-                                onTimeout: self._onTimeout,
-                                insertBefore: self.insertBefore,
-                                charset: self.charset,
-                                timeout: self.timeout,
-                                scope: self 
-                            });
-                        }
-                    };
-
-                    // load the css first
-                    // YAHOO.log('combining css: ' + css);
-                    if (css.length > startLen) {
-                        YAHOO.util.Get.css(this._filter(css), {
-                            data: this._loading,
-                            onSuccess: loadScript,
-                            onFailure: this._onFailure,
-                            onTimeout: this._onTimeout,
-                            insertBefore: this.insertBefore,
-                            charset: this.charset,
-                            timeout: this.timeout,
-                            scope: self 
-                        });
-                    } else {
-                        loadScript();
-                    }
-
-                    return;
-
-                } else {
-                    // this._combineComplete = true;
-                    this.loadNext(this._loading);
-                }
-        }, 
-
-        /**
-         * inserts the requested modules and their dependencies.  
-         * <code>type</code> can be "js" or "css".  Both script and 
-         * css are inserted if type is not provided.
-         * @method insert
-         * @param o optional options object
-         * @param type {string} the type of dependency to insert
-         */
-        insert: function(o, type) {
-            // if (o) {
-            //     Y.log("insert: " + lang.dump(o, 1) + ", " + type);
-            // } else {
-            //     Y.log("insert: " + this.toString() + ", " + type);
-            // }
-
-            // build the dependency list
-            this.calculate(o);
-
-
-            // set a flag to indicate the load has started
-            this._loading = true;
-
-            // flag to indicate we are done with the combo service
-            // and any additional files will need to be loaded
-            // individually
-            // this._combineComplete = false;
-
-            // keep the loadType (js, css or undefined) cached
-            this.loadType = type;
-
-            if (this.combine) {
-                return this._combine();
-            }
-
-            if (!type) {
-                // Y.log("trying to load css first");
-                var self = this;
-                this._internalCallback = function() {
-                            self._internalCallback = null;
-                            self.insert(null, "js");
-                        };
-                this.insert(null, "css");
-                return;
-            }
-
-
-            // start the load
-            this.loadNext();
-
-        },
-
-        /**
-         * Interns the script for the requested modules.  The callback is
-         * provided a reference to the sandboxed YAHOO object.  This only
-         * applies to the script: css can not be sandboxed; css will be
-         * loaded into the page normally if specified.
-         * @method sandbox
-         * @param callback {Function} the callback to exectued when the load is
-         *        complete.
-         */
-        sandbox: function(o, type) {
-            // if (o) {
-                // YAHOO.log("sandbox: " + lang.dump(o, 1) + ", " + type);
-            // } else {
-                // YAHOO.log("sandbox: " + this.toString() + ", " + type);
-            // }
-
-            this._config(o);
-
-            if (!this.onSuccess) {
-throw new Error("You must supply an onSuccess handler for your sandbox");
-            }
-
-            this._sandbox = true;
-
-            var self = this;
-
-            // take care of any css first (this can't be sandboxed)
-            if (!type || type !== "js") {
-                this._internalCallback = function() {
-                            self._internalCallback = null;
-                            self.sandbox(null, "js");
-                        };
-                this.insert(null, "css");
-                return;
-            }
-
-            // get the connection manager if not on the page
-            if (!util.Connect) {
-                // get a new loader instance to load connection.
-                var ld = new YAHOO.util.YUILoader();
-                ld.insert({
-                    base: this.base,
-                    filter: this.filter,
-                    require: "connection",
-                    insertBefore: this.insertBefore,
-                    charset: this.charset,
-                    onSuccess: function() {
-                        this.sandbox(null, "js");
-                    },
-                    scope: this
-                }, "js");
-                return;
-            }
-
-            this._scriptText = [];
-            this._loadCount = 0;
-            this._stopCount = this.sorted.length;
-            this._xhr = [];
-
-            this.calculate();
-
-            var s=this.sorted, l=s.length, i, m, url;
-
-            for (i=0; i<l; i=i+1) {
-                m = this.moduleInfo[s[i]];
-
-                // undefined modules cause a failure
-                if (!m) {
-                    this._onFailure("undefined module " + m);
-                    for (var j=0;j<this._xhr.length;j=j+1) {
-                        this._xhr[j].abort();
-                    }
-                    return;
-                }
-
-                // css files should be done
-                if (m.type !== "js") {
-                    this._loadCount++;
-                    continue;
-                }
-
-                url = m.fullpath;
-                url = (url) ? this._filter(url) : this._url(m.path);
-
-                // YAHOO.log("xhr request: " + url + ", " + i);
-
-                var xhrData = {
-
-                    success: function(o) {
-                        
-                        var idx=o.argument[0], name=o.argument[2];
-
-                        // store the response in the position it was requested
-                        this._scriptText[idx] = o.responseText; 
-                        
-                        // YAHOO.log("received: " + o.responseText.substr(0, 100) + ", " + idx);
-                    
-                        if (this.onProgress) {
-                            this.onProgress.call(this.scope, {
-                                        name: name,
-                                        scriptText: o.responseText,
-                                        xhrResponse: o,
-                                        data: this.data
-                                    });
-                        }
-
-                        // only generate the sandbox once everything is loaded
-                        this._loadCount++;
-
-                        if (this._loadCount >= this._stopCount) {
-
-                            // the variable to find
-                            var v = this.varName || "YAHOO";
-
-                            // wrap the contents of the requested modules in an anonymous function
-                            var t = "(function() {\n";
-                        
-                            // return the locally scoped reference.
-                            var b = "\nreturn " + v + ";\n})();";
-
-                            var ref = eval(t + this._scriptText.join("\n") + b);
-
-                            this._pushEvents(ref);
-
-                            if (ref) {
-                                this.onSuccess.call(this.scope, {
-                                        reference: ref,
-                                        data: this.data
-                                    });
-                            } else {
-                                this._onFailure.call(this.varName + " reference failure");
-                            }
-                        }
-                    },
-
-                    failure: function(o) {
-                        this.onFailure.call(this.scope, {
-                                msg: "XHR failure",
-                                xhrResponse: o,
-                                data: this.data
-                            });
-                    },
-
-                    scope: this,
-
-                    // module index, module name, sandbox name
-                    argument: [i, url, s[i]]
-
-                };
-
-                this._xhr.push(util.Connect.asyncRequest('GET', url, xhrData));
-            }
-        },
-
-        /**
-         * Executed every time a module is loaded, and if we are in a load
-         * cycle, we attempt to load the next script.  Public so that it
-         * is possible to call this if using a method other than
-         * YAHOO.register to determine when scripts are fully loaded
-         * @method loadNext
-         * @param mname {string} optional the name of the module that has
-         * been loaded (which is usually why it is time to load the next
-         * one)
-         */
-        loadNext: function(mname) {
-
-            // It is possible that this function is executed due to something
-            // else one the page loading a YUI module.  Only react when we
-            // are actively loading something
-            if (!this._loading) {
-                return;
-            }
-
-
-            if (mname) {
-
-                // if the module that was just loaded isn't what we were expecting,
-                // continue to wait
-                if (mname !== this._loading) {
-                    return;
-                }
-
-                // YAHOO.log("loadNext executing, just loaded " + mname);
-
-                // The global handler that is called when each module is loaded
-                // will pass that module name to this function.  Storing this
-                // data to avoid loading the same module multiple times
-                this.inserted[mname] = true;
-
-                if (this.onProgress) {
-                    this.onProgress.call(this.scope, {
-                            name: mname,
-                            data: this.data
-                        });
-                }
-                //var o = this.getProvides(mname);
-                //this.inserted = lang.merge(this.inserted, o);
-            }
-
-            var s=this.sorted, len=s.length, i, m;
-
-            for (i=0; i<len; i=i+1) {
-
-                // This.inserted keeps track of what the loader has loaded
-                if (s[i] in this.inserted) {
-                    // YAHOO.log(s[i] + " alread loaded ");
-                    continue;
-                }
-
-                // Because rollups will cause multiple load notifications
-                // from YAHOO, loadNext may be called multiple times for
-                // the same module when loading a rollup.  We can safely
-                // skip the subsequent requests
-                if (s[i] === this._loading) {
-                    // YAHOO.log("still loading " + s[i] + ", waiting");
-                    return;
-                }
-
-                // log("inserting " + s[i]);
-                m = this.moduleInfo[s[i]];
-
-                if (!m) {
-                    this.onFailure.call(this.scope, {
-                            msg: "undefined module " + m,
-                            data: this.data
-                        });
-                    return;
-                }
-
-                // The load type is stored to offer the possibility to load
-                // the css separately from the script.
-                if (!this.loadType || this.loadType === m.type) {
-                    this._loading = s[i];
-                    //YAHOO.log("attempting to load " + s[i] + ", " + this.base);
-
-                    var fn=(m.type === "css") ? util.Get.css : util.Get.script,
-                        url = m.fullpath,
-                        self=this, 
-                        c=function(o) {
-                            self.loadNext(o.data);
-                        };
-
-                        url = (url) ? this._filter(url) : this._url(m.path);
-
-                    // safari 2.x or lower, script, and part of YUI
-                    if (env.ua.webkit && env.ua.webkit < 420 && m.type === "js" && 
-                          !m.varName) {
-                          //YUI.info.moduleInfo[s[i]]) {
-                          //YAHOO.log("using YAHOO env " + s[i] + ", " + m.varName);
-                        c = null;
-                        this._useYahooListener = true;
-                    }
-
-                    fn(url, {
-                        data: s[i],
-                        onSuccess: c,
-                        onFailure: this._onFailure,
-                        onTimeout: this._onTimeout,
-                        insertBefore: this.insertBefore,
-                        charset: this.charset,
-                        timeout: this.timeout,
-                        varName: m.varName,
-                        scope: self 
-                    });
-
-                    return;
-                }
-            }
-
-            // we are finished
-            this._loading = null;
-
-            // internal callback for loading css first
-            if (this._internalCallback) {
-                var f = this._internalCallback;
-                this._internalCallback = null;
-                f.call(this);
-            } else if (this.onSuccess) {
-                this._pushEvents();
-                this.onSuccess.call(this.scope, {
-                        data: this.data
-                    });
-            }
-
-        },
-
-        /**
-         * In IE, the onAvailable/onDOMReady events need help when Event is
-         * loaded dynamically
-         * @method _pushEvents
-         * @param {Function} optional function reference
-         * @private
-         */
-        _pushEvents: function(ref) {
-            var r = ref || YAHOO;
-            if (r.util && r.util.Event) {
-                r.util.Event._load();
-            }
-        },
-
-        /**
-         * Applies filter
-         * method _filter
-         * @return {string} the filtered string
-         * @private
-         */
-        _filter: function(str) {
-            var f = this.filter;
-            return (f) ?  str.replace(new RegExp(f.searchExp, 'g'), f.replaceStr) : str;
-        },
-
-        /**
-         * Generates the full url for a module
-         * method _url
-         * @param path {string} the path fragment
-         * @return {string} the full url
-         * @private
-         */
-        _url: function(path) {
-            return this._filter((this.base || "") + path);
-        }
-
-    };
-
-})();
-
-YAHOO.register("yuiloader", YAHOO.util.YUILoader, {version: "2.8.0r4", build: "2449"});
diff --git a/koha-tmpl/intranet-tmpl/prog/en/lib/yui/yuitest/assets/skins/sam/yuitest-skin.css b/koha-tmpl/intranet-tmpl/prog/en/lib/yui/yuitest/assets/skins/sam/yuitest-skin.css
deleted file mode 100644 (file)
index 35183cd..0000000
+++ /dev/null
@@ -1,7 +0,0 @@
-/*
-Copyright (c) 2009, Yahoo! Inc. All rights reserved.
-Code licensed under the BSD License:
-http://developer.yahoo.net/yui/license.txt
-version: 2.8.0r4
-*/
-
diff --git a/koha-tmpl/intranet-tmpl/prog/en/lib/yui/yuitest/assets/skins/sam/yuitest.css b/koha-tmpl/intranet-tmpl/prog/en/lib/yui/yuitest/assets/skins/sam/yuitest.css
deleted file mode 100644 (file)
index 35183cd..0000000
+++ /dev/null
@@ -1,7 +0,0 @@
-/*
-Copyright (c) 2009, Yahoo! Inc. All rights reserved.
-Code licensed under the BSD License:
-http://developer.yahoo.net/yui/license.txt
-version: 2.8.0r4
-*/
-
diff --git a/koha-tmpl/intranet-tmpl/prog/en/lib/yui/yuitest/assets/testlogger.css b/koha-tmpl/intranet-tmpl/prog/en/lib/yui/yuitest/assets/testlogger.css
deleted file mode 100644 (file)
index e4accd7..0000000
+++ /dev/null
@@ -1,7 +0,0 @@
-/*
-Copyright (c) 2009, Yahoo! Inc. All rights reserved.
-Code licensed under the BSD License:
-http://developer.yahoo.net/yui/license.txt
-version: 2.8.0r4
-*/
-.yui-log{padding-top:3em;}.yui-log-container{width:40em;}.yui-log .yui-log-bd{height:60em;}.yui-log .yui-log-btns{display:none;}.yui-log .yui-log-ft .yui-log-sourcefilters{visibility:hidden;}.yui-log .yui-log-hd{display:none;}.yui-log .yui-log-ft{position:absolute;top:0;}.pass{background-color:green;font-weight:bold;color:white;}.fail{background-color:red;font-weight:bold;color:white;}.ignore{background-color:#666;font-weight:bold;color:white;}
\ No newline at end of file
diff --git a/koha-tmpl/intranet-tmpl/prog/en/lib/yui/yuitest/assets/yuitest-core.css b/koha-tmpl/intranet-tmpl/prog/en/lib/yui/yuitest/assets/yuitest-core.css
deleted file mode 100644 (file)
index 35183cd..0000000
+++ /dev/null
@@ -1,7 +0,0 @@
-/*
-Copyright (c) 2009, Yahoo! Inc. All rights reserved.
-Code licensed under the BSD License:
-http://developer.yahoo.net/yui/license.txt
-version: 2.8.0r4
-*/
-
diff --git a/koha-tmpl/intranet-tmpl/prog/en/lib/yui/yuitest/yuitest-debug.js b/koha-tmpl/intranet-tmpl/prog/en/lib/yui/yuitest/yuitest-debug.js
deleted file mode 100644 (file)
index 8af658b..0000000
+++ /dev/null
@@ -1,2741 +0,0 @@
-/*
-Copyright (c) 2009, Yahoo! Inc. All rights reserved.
-Code licensed under the BSD License:
-http://developer.yahoo.net/yui/license.txt
-version: 2.8.0r4
-*/
-YAHOO.namespace("tool");
-
-//-----------------------------------------------------------------------------
-// TestCase object
-//-----------------------------------------------------------------------------
-(function(){
-    
-    //used for autogenerating test case names
-    var tempId = 0;
-    
-    /**
-     * Test case containing various tests to run.
-     * @param template An object containing any number of test methods, other methods,
-     *                 an optional name, and anything else the test case needs.
-     * @class TestCase
-     * @namespace YAHOO.tool
-     * @constructor
-     */
-    YAHOO.tool.TestCase = function (template /*:Object*/) {
-        
-        /**
-         * Special rules for the test case. Possible subobjects
-         * are fail, for tests that should fail, and error, for
-         * tests that should throw an error.
-         */
-        this._should /*:Object*/ = {};
-        
-        //copy over all properties from the template to this object
-        for (var prop in template) {
-            this[prop] = template[prop];
-        }    
-        
-        //check for a valid name
-        if (!YAHOO.lang.isString(this.name)){
-            /**
-             * Name for the test case.
-             */
-            this.name /*:String*/ = "testCase" + (tempId++);
-        }
-    
-    };
-    
-    
-    YAHOO.tool.TestCase.prototype = {  
-    
-        /**
-         * Resumes a paused test and runs the given function.
-         * @param {Function} segment (Optional) The function to run.
-         *      If omitted, the test automatically passes.
-         * @return {Void}
-         * @method resume
-         */
-        resume : function (segment /*:Function*/) /*:Void*/ {
-            YAHOO.tool.TestRunner.resume(segment);
-        },
-    
-        /**
-         * Causes the test case to wait a specified amount of time and then
-         * continue executing the given code.
-         * @param {Function} segment (Optional) The function to run after the delay.
-         *      If omitted, the TestRunner will wait until resume() is called.
-         * @param {int} delay (Optional) The number of milliseconds to wait before running
-         *      the function. If omitted, defaults to zero.
-         * @return {Void}
-         * @method wait
-         */
-        wait : function (segment /*:Function*/, delay /*:int*/) /*:Void*/{
-            var args = arguments;
-            if (YAHOO.lang.isFunction(args[0])){
-                throw new YAHOO.tool.TestCase.Wait(args[0], args[1]);
-            } else {
-                throw new YAHOO.tool.TestCase.Wait(function(){
-                    YAHOO.util.Assert.fail("Timeout: wait() called but resume() never called.");
-                }, (YAHOO.lang.isNumber(args[0]) ? args[0] : 10000));
-            }            
-        },
-    
-        //-------------------------------------------------------------------------
-        // Stub Methods
-        //-------------------------------------------------------------------------
-    
-        /**
-         * Function to run before each test is executed.
-         * @return {Void}
-         * @method setUp
-         */
-        setUp : function () /*:Void*/ {
-        },
-        
-        /**
-         * Function to run after each test is executed.
-         * @return {Void}
-         * @method tearDown
-         */
-        tearDown: function () /*:Void*/ {    
-        }
-    };
-    
-    /**
-     * Represents a stoppage in test execution to wait for an amount of time before
-     * continuing.
-     * @param {Function} segment A function to run when the wait is over.
-     * @param {int} delay The number of milliseconds to wait before running the code.
-     * @class Wait
-     * @namespace YAHOO.tool.TestCase
-     * @constructor
-     *
-     */
-    YAHOO.tool.TestCase.Wait = function (segment /*:Function*/, delay /*:int*/) {
-        
-        /**
-         * The segment of code to run when the wait is over.
-         * @type Function
-         * @property segment
-         */
-        this.segment /*:Function*/ = (YAHOO.lang.isFunction(segment) ? segment : null);
-    
-        /**
-         * The delay before running the segment of code.
-         * @type int
-         * @property delay
-         */
-        this.delay /*:int*/ = (YAHOO.lang.isNumber(delay) ? delay : 0);
-    
-    };
-
-})();
-YAHOO.namespace("tool");
-
-
-//-----------------------------------------------------------------------------
-// TestSuite object
-//-----------------------------------------------------------------------------
-
-/**
- * A test suite that can contain a collection of TestCase and TestSuite objects.
- * @param {String||Object} data The name of the test suite or an object containing
- *      a name property as well as setUp and tearDown methods.
- * @namespace YAHOO.tool
- * @class TestSuite
- * @constructor
- */
-YAHOO.tool.TestSuite = function (data /*:String||Object*/) {
-
-    /**
-     * The name of the test suite.
-     * @type String
-     * @property name
-     */
-    this.name /*:String*/ = "";
-
-    /**
-     * Array of test suites and
-     * @private
-     */
-    this.items /*:Array*/ = [];
-
-    //initialize the properties
-    if (YAHOO.lang.isString(data)){
-        this.name = data;
-    } else if (YAHOO.lang.isObject(data)){
-        YAHOO.lang.augmentObject(this, data, true);
-    }
-
-    //double-check name
-    if (this.name === ""){
-        this.name = YAHOO.util.Dom.generateId(null, "testSuite");
-    }
-
-};
-
-YAHOO.tool.TestSuite.prototype = {
-    
-    /**
-     * Adds a test suite or test case to the test suite.
-     * @param {YAHOO.tool.TestSuite||YAHOO.tool.TestCase} testObject The test suite or test case to add.
-     * @return {Void}
-     * @method add
-     */
-    add : function (testObject /*:YAHOO.tool.TestSuite*/) /*:Void*/ {
-        if (testObject instanceof YAHOO.tool.TestSuite || testObject instanceof YAHOO.tool.TestCase) {
-            this.items.push(testObject);
-        }
-    },
-    
-    //-------------------------------------------------------------------------
-    // Stub Methods
-    //-------------------------------------------------------------------------
-
-    /**
-     * Function to run before each test is executed.
-     * @return {Void}
-     * @method setUp
-     */
-    setUp : function () /*:Void*/ {
-    },
-    
-    /**
-     * Function to run after each test is executed.
-     * @return {Void}
-     * @method tearDown
-     */
-    tearDown: function () /*:Void*/ {
-    }
-    
-};
-YAHOO.namespace("tool");
-
-/**
- * The YUI test tool
- * @module yuitest
- * @namespace YAHOO.tool
- * @requires yahoo,dom,event,logger
- * @optional event-simulte
- */
-
-
-//-----------------------------------------------------------------------------
-// TestRunner object
-//-----------------------------------------------------------------------------
-
-
-YAHOO.tool.TestRunner = (function(){
-
-    /**
-     * A node in the test tree structure. May represent a TestSuite, TestCase, or
-     * test function.
-     * @param {Variant} testObject A TestSuite, TestCase, or the name of a test function.
-     * @class TestNode
-     * @constructor
-     * @private
-     */
-    function TestNode(testObject /*:Variant*/){
-    
-        /**
-         * The TestSuite, TestCase, or test function represented by this node.
-         * @type Variant
-         * @property testObject
-         */
-        this.testObject = testObject;
-        
-        /**
-         * Pointer to this node's first child.
-         * @type TestNode
-         * @property firstChild
-         */        
-        this.firstChild /*:TestNode*/ = null;
-        
-        /**
-         * Pointer to this node's last child.
-         * @type TestNode
-         * @property lastChild
-         */        
-        this.lastChild = null;
-        
-        /**
-         * Pointer to this node's parent.
-         * @type TestNode
-         * @property parent
-         */        
-        this.parent = null; 
-   
-        /**
-         * Pointer to this node's next sibling.
-         * @type TestNode
-         * @property next
-         */        
-        this.next = null;
-        
-        /**
-         * Test results for this test object.
-         * @type object
-         * @property results
-         */                
-        this.results /*:Object*/ = {
-            passed : 0,
-            failed : 0,
-            total : 0,
-            ignored : 0
-        };
-        
-        //initialize results
-        if (testObject instanceof YAHOO.tool.TestSuite){
-            this.results.type = "testsuite";
-            this.results.name = testObject.name;
-        } else if (testObject instanceof YAHOO.tool.TestCase){
-            this.results.type = "testcase";
-            this.results.name = testObject.name;
-        }
-       
-    }
-    
-    TestNode.prototype = {
-    
-        /**
-         * Appends a new test object (TestSuite, TestCase, or test function name) as a child
-         * of this node.
-         * @param {Variant} testObject A TestSuite, TestCase, or the name of a test function.
-         * @return {Void}
-         */
-        appendChild : function (testObject /*:Variant*/) /*:Void*/{
-            var node = new TestNode(testObject);
-            if (this.firstChild === null){
-                this.firstChild = this.lastChild = node;
-            } else {
-                this.lastChild.next = node;
-                this.lastChild = node;
-            }
-            node.parent = this;
-            return node;
-        }       
-    };
-
-    /**
-     * Runs test suites and test cases, providing events to allowing for the
-     * interpretation of test results.
-     * @namespace YAHOO.tool
-     * @class TestRunner
-     * @static
-     */
-    function TestRunner(){
-    
-        //inherit from EventProvider
-        TestRunner.superclass.constructor.apply(this,arguments);
-        
-        /**
-         * Suite on which to attach all TestSuites and TestCases to be run.
-         * @type YAHOO.tool.TestSuite
-         * @property masterSuite
-         * @private
-         * @static
-         */
-        this.masterSuite /*:YAHOO.tool.TestSuite*/ = new YAHOO.tool.TestSuite("YUI Test Results");        
-
-        /**
-         * Pointer to the current node in the test tree.
-         * @type TestNode
-         * @private
-         * @property _cur
-         * @static
-         */
-        this._cur = null;
-        
-        /**
-         * Pointer to the root node in the test tree.
-         * @type TestNode
-         * @private
-         * @property _root
-         * @static
-         */
-        this._root = null;
-        
-        //create events
-        var events /*:Array*/ = [
-            this.TEST_CASE_BEGIN_EVENT,
-            this.TEST_CASE_COMPLETE_EVENT,
-            this.TEST_SUITE_BEGIN_EVENT,
-            this.TEST_SUITE_COMPLETE_EVENT,
-            this.TEST_PASS_EVENT,
-            this.TEST_FAIL_EVENT,
-            this.TEST_IGNORE_EVENT,
-            this.COMPLETE_EVENT,
-            this.BEGIN_EVENT
-        ];
-        for (var i=0; i < events.length; i++){
-            this.createEvent(events[i], { scope: this });
-        }       
-   
-    }
-    
-    YAHOO.lang.extend(TestRunner, YAHOO.util.EventProvider, {
-    
-        //-------------------------------------------------------------------------
-        // Constants
-        //-------------------------------------------------------------------------
-         
-        /**
-         * Fires when a test case is opened but before the first 
-         * test is executed.
-         * @event testcasebegin
-         */         
-        TEST_CASE_BEGIN_EVENT /*:String*/ : "testcasebegin",
-        
-        /**
-         * Fires when all tests in a test case have been executed.
-         * @event testcasecomplete
-         */        
-        TEST_CASE_COMPLETE_EVENT /*:String*/ : "testcasecomplete",
-        
-        /**
-         * Fires when a test suite is opened but before the first 
-         * test is executed.
-         * @event testsuitebegin
-         */        
-        TEST_SUITE_BEGIN_EVENT /*:String*/ : "testsuitebegin",
-        
-        /**
-         * Fires when all test cases in a test suite have been
-         * completed.
-         * @event testsuitecomplete
-         */        
-        TEST_SUITE_COMPLETE_EVENT /*:String*/ : "testsuitecomplete",
-        
-        /**
-         * Fires when a test has passed.
-         * @event pass
-         */        
-        TEST_PASS_EVENT /*:String*/ : "pass",
-        
-        /**
-         * Fires when a test has failed.
-         * @event fail
-         */        
-        TEST_FAIL_EVENT /*:String*/ : "fail",
-        
-        /**
-         * Fires when a test has been ignored.
-         * @event ignore
-         */        
-        TEST_IGNORE_EVENT /*:String*/ : "ignore",
-        
-        /**
-         * Fires when all test suites and test cases have been completed.
-         * @event complete
-         */        
-        COMPLETE_EVENT /*:String*/ : "complete",
-        
-        /**
-         * Fires when the run() method is called.
-         * @event begin
-         */        
-        BEGIN_EVENT /*:String*/ : "begin",    
-        
-        //-------------------------------------------------------------------------
-        // Test Tree-Related Methods
-        //-------------------------------------------------------------------------
-
-        /**
-         * Adds a test case to the test tree as a child of the specified node.
-         * @param {TestNode} parentNode The node to add the test case to as a child.
-         * @param {YAHOO.tool.TestCase} testCase The test case to add.
-         * @return {Void}
-         * @static
-         * @private
-         * @method _addTestCaseToTestTree
-         */
-       _addTestCaseToTestTree : function (parentNode /*:TestNode*/, testCase /*:YAHOO.tool.TestCase*/) /*:Void*/{
-            
-            //add the test suite
-            var node = parentNode.appendChild(testCase);
-            
-            //iterate over the items in the test case
-            for (var prop in testCase){
-                if (prop.indexOf("test") === 0 && YAHOO.lang.isFunction(testCase[prop])){
-                    node.appendChild(prop);
-                }
-            }
-         
-        },
-        
-        /**
-         * Adds a test suite to the test tree as a child of the specified node.
-         * @param {TestNode} parentNode The node to add the test suite to as a child.
-         * @param {YAHOO.tool.TestSuite} testSuite The test suite to add.
-         * @return {Void}
-         * @static
-         * @private
-         * @method _addTestSuiteToTestTree
-         */
-        _addTestSuiteToTestTree : function (parentNode /*:TestNode*/, testSuite /*:YAHOO.tool.TestSuite*/) /*:Void*/ {
-            
-            //add the test suite
-            var node = parentNode.appendChild(testSuite);
-            
-            //iterate over the items in the master suite
-            for (var i=0; i < testSuite.items.length; i++){
-                if (testSuite.items[i] instanceof YAHOO.tool.TestSuite) {
-                    this._addTestSuiteToTestTree(node, testSuite.items[i]);
-                } else if (testSuite.items[i] instanceof YAHOO.tool.TestCase) {
-                    this._addTestCaseToTestTree(node, testSuite.items[i]);
-                }                   
-            }            
-        },
-        
-        /**
-         * Builds the test tree based on items in the master suite. The tree is a hierarchical
-         * representation of the test suites, test cases, and test functions. The resulting tree
-         * is stored in _root and the pointer _cur is set to the root initially.
-         * @return {Void}
-         * @static
-         * @private
-         * @method _buildTestTree
-         */
-        _buildTestTree : function () /*:Void*/ {
-        
-            this._root = new TestNode(this.masterSuite);
-            this._cur = this._root;
-            
-            //iterate over the items in the master suite
-            for (var i=0; i < this.masterSuite.items.length; i++){
-                if (this.masterSuite.items[i] instanceof YAHOO.tool.TestSuite) {
-                    this._addTestSuiteToTestTree(this._root, this.masterSuite.items[i]);
-                } else if (this.masterSuite.items[i] instanceof YAHOO.tool.TestCase) {
-                    this._addTestCaseToTestTree(this._root, this.masterSuite.items[i]);
-                }                   
-            }            
-        
-        }, 
-    
-        //-------------------------------------------------------------------------
-        // Private Methods
-        //-------------------------------------------------------------------------
-        
-        /**
-         * Handles the completion of a test object's tests. Tallies test results 
-         * from one level up to the next.
-         * @param {TestNode} node The TestNode representing the test object.
-         * @return {Void}
-         * @method _handleTestObjectComplete
-         * @private
-         * @static
-         */
-        _handleTestObjectComplete : function (node /*:TestNode*/) /*:Void*/ {
-            if (YAHOO.lang.isObject(node.testObject)){
-                node.parent.results.passed += node.results.passed;
-                node.parent.results.failed += node.results.failed;
-                node.parent.results.total += node.results.total;                
-                node.parent.results.ignored += node.results.ignored;                
-                node.parent.results[node.testObject.name] = node.results;
-            
-                if (node.testObject instanceof YAHOO.tool.TestSuite){
-                    node.testObject.tearDown();
-                    this.fireEvent(this.TEST_SUITE_COMPLETE_EVENT, { testSuite: node.testObject, results: node.results});
-                } else if (node.testObject instanceof YAHOO.tool.TestCase){
-                    this.fireEvent(this.TEST_CASE_COMPLETE_EVENT, { testCase: node.testObject, results: node.results});
-                }      
-            } 
-        },                
-        
-        //-------------------------------------------------------------------------
-        // Navigation Methods
-        //-------------------------------------------------------------------------
-        
-        /**
-         * Retrieves the next node in the test tree.
-         * @return {TestNode} The next node in the test tree or null if the end is reached.
-         * @private
-         * @static
-         * @method _next
-         */
-        _next : function () /*:TestNode*/ {
-        
-            if (this._cur.firstChild) {
-                this._cur = this._cur.firstChild;
-            } else if (this._cur.next) {
-                this._cur = this._cur.next;            
-            } else {
-                while (this._cur && !this._cur.next && this._cur !== this._root){
-                    this._handleTestObjectComplete(this._cur);
-                    this._cur = this._cur.parent;
-                }
-                
-                if (this._cur == this._root){
-                    this._cur.results.type = "report";
-                    this._cur.results.timestamp = (new Date()).toLocaleString();
-                    this._cur.results.duration = (new Date()) - this._cur.results.duration;
-                    this.fireEvent(this.COMPLETE_EVENT, { results: this._cur.results});
-                    this._cur = null;
-                } else {
-                    this._handleTestObjectComplete(this._cur);               
-                    this._cur = this._cur.next;                
-                }
-            }
-        
-            return this._cur;
-        },
-        
-        /**
-         * Runs a test case or test suite, returning the results.
-         * @param {YAHOO.tool.TestCase|YAHOO.tool.TestSuite} testObject The test case or test suite to run.
-         * @return {Object} Results of the execution with properties passed, failed, and total.
-         * @private
-         * @method _run
-         * @static
-         */
-        _run : function () /*:Void*/ {
-        
-            //flag to indicate if the TestRunner should wait before continuing
-            var shouldWait /*:Boolean*/ = false;
-            
-            //get the next test node
-            var node = this._next();
-            
-            if (node !== null) {
-                var testObject = node.testObject;
-                
-                //figure out what to do
-                if (YAHOO.lang.isObject(testObject)){
-                    if (testObject instanceof YAHOO.tool.TestSuite){
-                        this.fireEvent(this.TEST_SUITE_BEGIN_EVENT, { testSuite: testObject });
-                        testObject.setUp();
-                    } else if (testObject instanceof YAHOO.tool.TestCase){
-                        this.fireEvent(this.TEST_CASE_BEGIN_EVENT, { testCase: testObject });
-                    }
-                    
-                    //some environments don't support setTimeout
-                    if (typeof setTimeout != "undefined"){                    
-                        setTimeout(function(){
-                            YAHOO.tool.TestRunner._run();
-                        }, 0);
-                    } else {
-                        this._run();
-                    }
-                } else {
-                    this._runTest(node);
-                }
-
-            }
-        },
-        
-        _resumeTest : function (segment /*:Function*/) /*:Void*/ {
-        
-            //get relevant information
-            var node /*:TestNode*/ = this._cur;
-            var testName /*:String*/ = node.testObject;
-            var testCase /*:YAHOO.tool.TestCase*/ = node.parent.testObject;
-            
-            //cancel other waits if available
-            if (testCase.__yui_wait){
-                clearTimeout(testCase.__yui_wait);
-                delete testCase.__yui_wait;
-            }            
-            
-            //get the "should" test cases
-            var shouldFail /*:Object*/ = (testCase._should.fail || {})[testName];
-            var shouldError /*:Object*/ = (testCase._should.error || {})[testName];
-            
-            //variable to hold whether or not the test failed
-            var failed /*:Boolean*/ = false;
-            var error /*:Error*/ = null;
-                
-            //try the test
-            try {
-            
-                //run the test
-                segment.apply(testCase);
-                
-                //if it should fail, and it got here, then it's a fail because it didn't
-                if (shouldFail){
-                    error = new YAHOO.util.ShouldFail();
-                    failed = true;
-                } else if (shouldError){
-                    error = new YAHOO.util.ShouldError();
-                    failed = true;
-                }
-                           
-            } catch (thrown /*:Error*/){
-                if (thrown instanceof YAHOO.util.AssertionError) {
-                    if (!shouldFail){
-                        error = thrown;
-                        failed = true;
-                    }
-                } else if (thrown instanceof YAHOO.tool.TestCase.Wait){
-                
-                    if (YAHOO.lang.isFunction(thrown.segment)){
-                        if (YAHOO.lang.isNumber(thrown.delay)){
-                        
-                            //some environments don't support setTimeout
-                            if (typeof setTimeout != "undefined"){
-                                testCase.__yui_wait = setTimeout(function(){
-                                    YAHOO.tool.TestRunner._resumeTest(thrown.segment);
-                                }, thrown.delay);                             
-                            } else {
-                                throw new Error("Asynchronous tests not supported in this environment.");
-                            }
-                        }
-                    }
-                    
-                    return;
-                
-                } else {
-                    //first check to see if it should error
-                    if (!shouldError) {                        
-                        error = new YAHOO.util.UnexpectedError(thrown);
-                        failed = true;
-                    } else {
-                        //check to see what type of data we have
-                        if (YAHOO.lang.isString(shouldError)){
-                            
-                            //if it's a string, check the error message
-                            if (thrown.message != shouldError){
-                                error = new YAHOO.util.UnexpectedError(thrown);
-                                failed = true;                                    
-                            }
-                        } else if (YAHOO.lang.isFunction(shouldError)){
-                        
-                            //if it's a function, see if the error is an instance of it
-                            if (!(thrown instanceof shouldError)){
-                                error = new YAHOO.util.UnexpectedError(thrown);
-                                failed = true;
-                            }
-                        
-                        } else if (YAHOO.lang.isObject(shouldError)){
-                        
-                            //if it's an object, check the instance and message
-                            if (!(thrown instanceof shouldError.constructor) || 
-                                    thrown.message != shouldError.message){
-                                error = new YAHOO.util.UnexpectedError(thrown);
-                                failed = true;                                    
-                            }
-                        
-                        }
-                    
-                    }
-                }
-                
-            }
-            
-            //fireEvent appropriate event
-            if (failed) {
-                this.fireEvent(this.TEST_FAIL_EVENT, { testCase: testCase, testName: testName, error: error });
-            } else {
-                this.fireEvent(this.TEST_PASS_EVENT, { testCase: testCase, testName: testName });
-            }
-            
-            //run the tear down
-            testCase.tearDown();
-            
-            //update results
-            node.parent.results[testName] = { 
-                result: failed ? "fail" : "pass",
-                message: error ? error.getMessage() : "Test passed",
-                type: "test",
-                name: testName
-            };
-            
-            if (failed){
-                node.parent.results.failed++;
-            } else {
-                node.parent.results.passed++;
-            }
-            node.parent.results.total++;
-
-            //set timeout not supported in all environments
-            if (typeof setTimeout != "undefined"){
-                setTimeout(function(){
-                    YAHOO.tool.TestRunner._run();
-                }, 0);
-            } else {
-                this._run();
-            }
-        
-        },
-                
-        /**
-         * Runs a single test based on the data provided in the node.
-         * @param {TestNode} node The TestNode representing the test to run.
-         * @return {Void}
-         * @static
-         * @private
-         * @name _runTest
-         */
-        _runTest : function (node /*:TestNode*/) /*:Void*/ {
-        
-            //get relevant information
-            var testName /*:String*/ = node.testObject;
-            var testCase /*:YAHOO.tool.TestCase*/ = node.parent.testObject;
-            var test /*:Function*/ = testCase[testName];
-            
-            //get the "should" test cases
-            var shouldIgnore /*:Object*/ = (testCase._should.ignore || {})[testName];
-            
-            //figure out if the test should be ignored or not
-            if (shouldIgnore){
-            
-                //update results
-                node.parent.results[testName] = { 
-                    result: "ignore",
-                    message: "Test ignored",
-                    type: "test",
-                    name: testName
-                };
-                
-                node.parent.results.ignored++;
-                node.parent.results.total++;
-            
-                this.fireEvent(this.TEST_IGNORE_EVENT, { testCase: testCase, testName: testName });
-                
-                //some environments don't support setTimeout
-                if (typeof setTimeout != "undefined"){                    
-                    setTimeout(function(){
-                        YAHOO.tool.TestRunner._run();
-                    }, 0);              
-                } else {
-                    this._run();
-                }
-
-            } else {
-            
-                //run the setup
-                testCase.setUp();
-                
-                //now call the body of the test
-                this._resumeTest(test);                
-            }
-
-        },        
-        
-        //-------------------------------------------------------------------------
-        // Protected Methods
-        //-------------------------------------------------------------------------   
-    
-        /**
-         * Fires events for the TestRunner. This overrides the default fireEvent()
-         * method from EventProvider to add the type property to the data that is
-         * passed through on each event call.
-         * @param {String} type The type of event to fire.
-         * @param {Object} data (Optional) Data for the event.
-         * @method fireEvent
-         * @static
-         * @protected
-         */
-        fireEvent : function (type /*:String*/, data /*:Object*/) /*:Void*/ {
-            data = data || {};
-            data.type = type;
-            TestRunner.superclass.fireEvent.call(this, type, data);
-        },
-        
-        //-------------------------------------------------------------------------
-        // Public Methods
-        //-------------------------------------------------------------------------   
-    
-        /**
-         * Adds a test suite or test case to the list of test objects to run.
-         * @param testObject Either a TestCase or a TestSuite that should be run.
-         * @return {Void}
-         * @method add
-         * @static
-         */
-        add : function (testObject /*:Object*/) /*:Void*/ {
-            this.masterSuite.add(testObject);
-        },
-        
-        /**
-         * Removes all test objects from the runner.
-         * @return {Void}
-         * @method clear
-         * @static
-         */
-        clear : function () /*:Void*/ {
-            this.masterSuite.items = [];
-        },
-        
-        /**
-         * Resumes the TestRunner after wait() was called.
-         * @param {Function} segment The function to run as the rest
-         *      of the haulted test.
-         * @return {Void}
-         * @method resume
-         * @static
-         */
-        resume : function (segment /*:Function*/) /*:Void*/ {
-            this._resumeTest(segment || function(){});
-        },
-    
-        /**
-         * Runs the test suite.
-         * @return {Void}
-         * @method run
-         * @static
-         */
-        run : function (testObject /*:Object*/) /*:Void*/ {
-            
-            //pointer to runner to avoid scope issues 
-            var runner = YAHOO.tool.TestRunner;
-
-            //build the test tree
-            runner._buildTestTree();
-            
-            //set when the test started
-            runner._root.results.duration = (new Date()).getTime();
-            
-            //fire the begin event
-            runner.fireEvent(runner.BEGIN_EVENT);
-       
-            //begin the testing
-            runner._run();
-        }    
-    });
-    
-    return new TestRunner();
-    
-})();
-YAHOO.namespace("util");
-
-//-----------------------------------------------------------------------------
-// Assert object
-//-----------------------------------------------------------------------------
-
-/**
- * The Assert object provides functions to test JavaScript values against
- * known and expected results. Whenever a comparison (assertion) fails,
- * an error is thrown.
- *
- * @namespace YAHOO.util
- * @class Assert
- * @static
- */
-YAHOO.util.Assert = {
-
-    //-------------------------------------------------------------------------
-    // Helper Methods
-    //-------------------------------------------------------------------------
-    
-    /**
-     * Formats a message so that it can contain the original assertion message
-     * in addition to the custom message.
-     * @param {String} customMessage The message passed in by the developer.
-     * @param {String} defaultMessage The message created by the error by default.
-     * @return {String} The final error message, containing either or both.
-     * @protected
-     * @static
-     * @method _formatMessage
-     */
-    _formatMessage : function (customMessage /*:String*/, defaultMessage /*:String*/) /*:String*/ {
-        var message = customMessage;
-        if (YAHOO.lang.isString(customMessage) && customMessage.length > 0){
-            return YAHOO.lang.substitute(customMessage, { message: defaultMessage });
-        } else {
-            return defaultMessage;
-        }        
-    },
-    
-    //-------------------------------------------------------------------------
-    // Generic Assertion Methods
-    //-------------------------------------------------------------------------
-    
-    /** 
-     * Forces an assertion error to occur.
-     * @param {String} message (Optional) The message to display with the failure.
-     * @method fail
-     * @static
-     */
-    fail : function (message /*:String*/) /*:Void*/ {
-        throw new YAHOO.util.AssertionError(this._formatMessage(message, "Test force-failed."));
-    },       
-    
-    //-------------------------------------------------------------------------
-    // Equality Assertion Methods
-    //-------------------------------------------------------------------------    
-    
-    /**
-     * Asserts that a value is equal to another. This uses the double equals sign
-     * so type cohersion may occur.
-     * @param {Object} expected The expected value.
-     * @param {Object} actual The actual value to test.
-     * @param {String} message (Optional) The message to display if the assertion fails.
-     * @method areEqual
-     * @static
-     */
-    areEqual : function (expected /*:Object*/, actual /*:Object*/, message /*:String*/) /*:Void*/ {
-        if (expected != actual) {
-            throw new YAHOO.util.ComparisonFailure(this._formatMessage(message, "Values should be equal."), expected, actual);
-        }
-    },
-    
-    /**
-     * Asserts that a value is not equal to another. This uses the double equals sign
-     * so type cohersion may occur.
-     * @param {Object} unexpected The unexpected value.
-     * @param {Object} actual The actual value to test.
-     * @param {String} message (Optional) The message to display if the assertion fails.
-     * @method areNotEqual
-     * @static
-     */
-    areNotEqual : function (unexpected /*:Object*/, actual /*:Object*/, 
-                         message /*:String*/) /*:Void*/ {
-        if (unexpected == actual) {
-            throw new YAHOO.util.UnexpectedValue(this._formatMessage(message, "Values should not be equal."), unexpected);
-        }
-    },
-    
-    /**
-     * Asserts that a value is not the same as another. This uses the triple equals sign
-     * so no type cohersion may occur.
-     * @param {Object} unexpected The unexpected value.
-     * @param {Object} actual The actual value to test.
-     * @param {String} message (Optional) The message to display if the assertion fails.
-     * @method areNotSame
-     * @static
-     */
-    areNotSame : function (unexpected /*:Object*/, actual /*:Object*/, message /*:String*/) /*:Void*/ {
-        if (unexpected === actual) {
-            throw new YAHOO.util.UnexpectedValue(this._formatMessage(message, "Values should not be the same."), unexpected);
-        }
-    },
-
-    /**
-     * Asserts that a value is the same as another. This uses the triple equals sign
-     * so no type cohersion may occur.
-     * @param {Object} expected The expected value.
-     * @param {Object} actual The actual value to test.
-     * @param {String} message (Optional) The message to display if the assertion fails.
-     * @method areSame
-     * @static
-     */
-    areSame : function (expected /*:Object*/, actual /*:Object*/, message /*:String*/) /*:Void*/ {
-        if (expected !== actual) {
-            throw new YAHOO.util.ComparisonFailure(this._formatMessage(message, "Values should be the same."), expected, actual);
-        }
-    },    
-    
-    //-------------------------------------------------------------------------
-    // Boolean Assertion Methods
-    //-------------------------------------------------------------------------    
-    
-    /**
-     * Asserts that a value is false. This uses the triple equals sign
-     * so no type cohersion may occur.
-     * @param {Object} actual The actual value to test.
-     * @param {String} message (Optional) The message to display if the assertion fails.
-     * @method isFalse
-     * @static
-     */
-    isFalse : function (actual /*:Boolean*/, message /*:String*/) {
-        if (false !== actual) {
-            throw new YAHOO.util.ComparisonFailure(this._formatMessage(message, "Value should be false."), false, actual);
-        }
-    },
-    
-    /**
-     * Asserts that a value is true. This uses the triple equals sign
-     * so no type cohersion may occur.
-     * @param {Object} actual The actual value to test.
-     * @param {String} message (Optional) The message to display if the assertion fails.
-     * @method isTrue
-     * @static
-     */
-    isTrue : function (actual /*:Boolean*/, message /*:String*/) /*:Void*/ {
-        if (true !== actual) {
-            throw new YAHOO.util.ComparisonFailure(this._formatMessage(message, "Value should be true."), true, actual);
-        }
-
-    },
-    
-    //-------------------------------------------------------------------------
-    // Special Value Assertion Methods
-    //-------------------------------------------------------------------------    
-    
-    /**
-     * Asserts that a value is not a number.
-     * @param {Object} actual The value to test.
-     * @param {String} message (Optional) The message to display if the assertion fails.
-     * @method isNaN
-     * @static
-     */
-    isNaN : function (actual /*:Object*/, message /*:String*/) /*:Void*/{
-        if (!isNaN(actual)){
-            throw new YAHOO.util.ComparisonFailure(this._formatMessage(message, "Value should be NaN."), NaN, actual);
-        }    
-    },
-    
-    /**
-     * Asserts that a value is not the special NaN value.
-     * @param {Object} actual The value to test.
-     * @param {String} message (Optional) The message to display if the assertion fails.
-     * @method isNotNaN
-     * @static
-     */
-    isNotNaN : function (actual /*:Object*/, message /*:String*/) /*:Void*/{
-        if (isNaN(actual)){
-            throw new YAHOO.util.UnexpectedValue(this._formatMessage(message, "Values should not be NaN."), NaN);
-        }    
-    },
-    
-    /**
-     * Asserts that a value is not null. This uses the triple equals sign
-     * so no type cohersion may occur.
-     * @param {Object} actual The actual value to test.
-     * @param {String} message (Optional) The message to display if the assertion fails.
-     * @method isNotNull
-     * @static
-     */
-    isNotNull : function (actual /*:Object*/, message /*:String*/) /*:Void*/ {
-        if (YAHOO.lang.isNull(actual)) {
-            throw new YAHOO.util.UnexpectedValue(this._formatMessage(message, "Values should not be null."), null);
-        }
-    },
-
-    /**
-     * Asserts that a value is not undefined. This uses the triple equals sign
-     * so no type cohersion may occur.
-     * @param {Object} actual The actual value to test.
-     * @param {String} message (Optional) The message to display if the assertion fails.
-     * @method isNotUndefined
-     * @static
-     */
-    isNotUndefined : function (actual /*:Object*/, message /*:String*/) /*:Void*/ {
-        if (YAHOO.lang.isUndefined(actual)) {
-            throw new YAHOO.util.UnexpectedValue(this._formatMessage(message, "Value should not be undefined."), undefined);
-        }
-    },
-
-    /**
-     * Asserts that a value is null. This uses the triple equals sign
-     * so no type cohersion may occur.
-     * @param {Object} actual The actual value to test.
-     * @param {String} message (Optional) The message to display if the assertion fails.
-     * @method isNull
-     * @static
-     */
-    isNull : function (actual /*:Object*/, message /*:String*/) /*:Void*/ {
-        if (!YAHOO.lang.isNull(actual)) {
-            throw new YAHOO.util.ComparisonFailure(this._formatMessage(message, "Value should be null."), null, actual);
-        }
-    },
-        
-    /**
-     * Asserts that a value is undefined. This uses the triple equals sign
-     * so no type cohersion may occur.
-     * @param {Object} actual The actual value to test.
-     * @param {String} message (Optional) The message to display if the assertion fails.
-     * @method isUndefined
-     * @static
-     */
-    isUndefined : function (actual /*:Object*/, message /*:String*/) /*:Void*/ {
-        if (!YAHOO.lang.isUndefined(actual)) {
-            throw new YAHOO.util.ComparisonFailure(this._formatMessage(message, "Value should be undefined."), undefined, actual);
-        }
-    },    
-    
-    //--------------------------------------------------------------------------
-    // Instance Assertion Methods
-    //--------------------------------------------------------------------------    
-   
-    /**
-     * Asserts that a value is an array.
-     * @param {Object} actual The value to test.
-     * @param {String} message (Optional) The message to display if the assertion fails.
-     * @method isArray
-     * @static
-     */
-    isArray : function (actual /*:Object*/, message /*:String*/) /*:Void*/ {
-        if (!YAHOO.lang.isArray(actual)){
-            throw new YAHOO.util.UnexpectedValue(this._formatMessage(message, "Value should be an array."), actual);
-        }    
-    },
-   
-    /**
-     * Asserts that a value is a Boolean.
-     * @param {Object} actual The value to test.
-     * @param {String} message (Optional) The message to display if the assertion fails.
-     * @method isBoolean
-     * @static
-     */
-    isBoolean : function (actual /*:Object*/, message /*:String*/) /*:Void*/ {
-        if (!YAHOO.lang.isBoolean(actual)){
-            throw new YAHOO.util.UnexpectedValue(this._formatMessage(message, "Value should be a Boolean."), actual);
-        }    
-    },
-   
-    /**
-     * Asserts that a value is a function.
-     * @param {Object} actual The value to test.
-     * @param {String} message (Optional) The message to display if the assertion fails.
-     * @method isFunction
-     * @static
-     */
-    isFunction : function (actual /*:Object*/, message /*:String*/) /*:Void*/ {
-        if (!YAHOO.lang.isFunction(actual)){
-            throw new YAHOO.util.UnexpectedValue(this._formatMessage(message, "Value should be a function."), actual);
-        }    
-    },
-   
-    /**
-     * Asserts that a value is an instance of a particular object. This may return
-     * incorrect results when comparing objects from one frame to constructors in
-     * another frame. For best results, don't use in a cross-frame manner.
-     * @param {Function} expected The function that the object should be an instance of.
-     * @param {Object} actual The object to test.
-     * @param {String} message (Optional) The message to display if the assertion fails.
-     * @method isInstanceOf
-     * @static
-     */
-    isInstanceOf : function (expected /*:Function*/, actual /*:Object*/, message /*:String*/) /*:Void*/ {
-        if (!(actual instanceof expected)){
-            throw new YAHOO.util.ComparisonFailure(this._formatMessage(message, "Value isn't an instance of expected type."), expected, actual);
-        }
-    },
-    
-    /**
-     * Asserts that a value is a number.
-     * @param {Object} actual The value to test.
-     * @param {String} message (Optional) The message to display if the assertion fails.
-     * @method isNumber
-     * @static
-     */
-    isNumber : function (actual /*:Object*/, message /*:String*/) /*:Void*/ {
-        if (!YAHOO.lang.isNumber(actual)){
-            throw new YAHOO.util.UnexpectedValue(this._formatMessage(message, "Value should be a number."), actual);
-        }    
-    },    
-    
-    /**
-     * Asserts that a value is an object.
-     * @param {Object} actual The value to test.
-     * @param {String} message (Optional) The message to display if the assertion fails.
-     * @method isObject
-     * @static
-     */
-    isObject : function (actual /*:Object*/, message /*:String*/) /*:Void*/ {
-        if (!YAHOO.lang.isObject(actual)){
-            throw new YAHOO.util.UnexpectedValue(this._formatMessage(message, "Value should be an object."), actual);
-        }
-    },
-    
-    /**
-     * Asserts that a value is a string.
-     * @param {Object} actual The value to test.
-     * @param {String} message (Optional) The message to display if the assertion fails.
-     * @method isString
-     * @static
-     */
-    isString : function (actual /*:Object*/, message /*:String*/) /*:Void*/ {
-        if (!YAHOO.lang.isString(actual)){
-            throw new YAHOO.util.UnexpectedValue(this._formatMessage(message, "Value should be a string."), actual);
-        }
-    },
-    
-    /**
-     * Asserts that a value is of a particular type. 
-     * @param {String} expectedType The expected type of the variable.
-     * @param {Object} actualValue The actual value to test.
-     * @param {String} message (Optional) The message to display if the assertion fails.
-     * @method isTypeOf
-     * @static
-     */
-    isTypeOf : function (expected /*:String*/, actual /*:Object*/, message /*:String*/) /*:Void*/{
-        if (typeof actual != expected){
-            throw new YAHOO.util.ComparisonFailure(this._formatMessage(message, "Value should be of type " + expected + "."), expected, typeof actual);
-        }
-    }
-};
-
-//-----------------------------------------------------------------------------
-// Assertion errors
-//-----------------------------------------------------------------------------
-
-/**
- * AssertionError is thrown whenever an assertion fails. It provides methods
- * to more easily get at error information and also provides a base class
- * from which more specific assertion errors can be derived.
- *
- * @param {String} message The message to display when the error occurs.
- * @namespace YAHOO.util
- * @class AssertionError
- * @extends Error
- * @constructor
- */ 
-YAHOO.util.AssertionError = function (message /*:String*/){
-
-    //call superclass
-    //arguments.callee.superclass.constructor.call(this, message);
-    
-    /*
-     * Error message. Must be duplicated to ensure browser receives it.
-     * @type String
-     * @property message
-     */
-    this.message /*:String*/ = message;
-    
-    /**
-     * The name of the error that occurred.
-     * @type String
-     * @property name
-     */
-    this.name /*:String*/ = "AssertionError";
-};
-
-//inherit methods
-YAHOO.lang.extend(YAHOO.util.AssertionError, Object, {
-
-    /**
-     * Returns a fully formatted error for an assertion failure. This should
-     * be overridden by all subclasses to provide specific information.
-     * @method getMessage
-     * @return {String} A string describing the error.
-     */
-    getMessage : function () /*:String*/ {
-        return this.message;
-    },
-    
-    /**
-     * Returns a string representation of the error.
-     * @method toString
-     * @return {String} A string representation of the error.
-     */
-    toString : function () /*:String*/ {
-        return this.name + ": " + this.getMessage();
-    }
-    
-});
-
-/**
- * ComparisonFailure is subclass of AssertionError that is thrown whenever
- * a comparison between two values fails. It provides mechanisms to retrieve
- * both the expected and actual value.
- *
- * @param {String} message The message to display when the error occurs.
- * @param {Object} expected The expected value.
- * @param {Object} actual The actual value that caused the assertion to fail.
- * @namespace YAHOO.util
- * @extends YAHOO.util.AssertionError
- * @class ComparisonFailure
- * @constructor
- */ 
-YAHOO.util.ComparisonFailure = function (message /*:String*/, expected /*:Object*/, actual /*:Object*/){
-
-    //call superclass
-    YAHOO.util.AssertionError.call(this, message);
-    
-    /**
-     * The expected value.
-     * @type Object
-     * @property expected
-     */
-    this.expected /*:Object*/ = expected;
-    
-    /**
-     * The actual value.
-     * @type Object
-     * @property actual
-     */
-    this.actual /*:Object*/ = actual;
-    
-    /**
-     * The name of the error that occurred.
-     * @type String
-     * @property name
-     */
-    this.name /*:String*/ = "ComparisonFailure";
-    
-};
-
-//inherit methods
-YAHOO.lang.extend(YAHOO.util.ComparisonFailure, YAHOO.util.AssertionError, {
-
-    /**
-     * Returns a fully formatted error for an assertion failure. This message
-     * provides information about the expected and actual values.
-     * @method toString
-     * @return {String} A string describing the error.
-     */
-    getMessage : function () /*:String*/ {
-        return this.message + "\nExpected: " + this.expected + " (" + (typeof this.expected) + ")"  +
-            "\nActual:" + this.actual + " (" + (typeof this.actual) + ")";
-    }
-
-});
-
-/**
- * UnexpectedValue is subclass of AssertionError that is thrown whenever
- * a value was unexpected in its scope. This typically means that a test
- * was performed to determine that a value was *not* equal to a certain
- * value.
- *
- * @param {String} message The message to display when the error occurs.
- * @param {Object} unexpected The unexpected value.
- * @namespace YAHOO.util
- * @extends YAHOO.util.AssertionError
- * @class UnexpectedValue
- * @constructor
- */ 
-YAHOO.util.UnexpectedValue = function (message /*:String*/, unexpected /*:Object*/){
-
-    //call superclass
-    YAHOO.util.AssertionError.call(this, message);
-    
-    /**
-     * The unexpected value.
-     * @type Object
-     * @property unexpected
-     */
-    this.unexpected /*:Object*/ = unexpected;
-    
-    /**
-     * The name of the error that occurred.
-     * @type String
-     * @property name
-     */
-    this.name /*:String*/ = "UnexpectedValue";
-    
-};
-
-//inherit methods
-YAHOO.lang.extend(YAHOO.util.UnexpectedValue, YAHOO.util.AssertionError, {
-
-    /**
-     * Returns a fully formatted error for an assertion failure. The message
-     * contains information about the unexpected value that was encountered.
-     * @method getMessage
-     * @return {String} A string describing the error.
-     */
-    getMessage : function () /*:String*/ {
-        return this.message + "\nUnexpected: " + this.unexpected + " (" + (typeof this.unexpected) + ") ";
-    }
-
-});
-
-/**
- * ShouldFail is subclass of AssertionError that is thrown whenever
- * a test was expected to fail but did not.
- *
- * @param {String} message The message to display when the error occurs.
- * @namespace YAHOO.util
- * @extends YAHOO.util.AssertionError
- * @class ShouldFail
- * @constructor
- */  
-YAHOO.util.ShouldFail = function (message /*:String*/){
-
-    //call superclass
-    YAHOO.util.AssertionError.call(this, message || "This test should fail but didn't.");
-    
-    /**
-     * The name of the error that occurred.
-     * @type String
-     * @property name
-     */
-    this.name /*:String*/ = "ShouldFail";
-    
-};
-
-//inherit methods
-YAHOO.lang.extend(YAHOO.util.ShouldFail, YAHOO.util.AssertionError);
-
-/**
- * ShouldError is subclass of AssertionError that is thrown whenever
- * a test is expected to throw an error but doesn't.
- *
- * @param {String} message The message to display when the error occurs.
- * @namespace YAHOO.util
- * @extends YAHOO.util.AssertionError
- * @class ShouldError
- * @constructor
- */  
-YAHOO.util.ShouldError = function (message /*:String*/){
-
-    //call superclass
-    YAHOO.util.AssertionError.call(this, message || "This test should have thrown an error but didn't.");
-    
-    /**
-     * The name of the error that occurred.
-     * @type String
-     * @property name
-     */
-    this.name /*:String*/ = "ShouldError";
-    
-};
-
-//inherit methods
-YAHOO.lang.extend(YAHOO.util.ShouldError, YAHOO.util.AssertionError);
-
-/**
- * UnexpectedError is subclass of AssertionError that is thrown whenever
- * an error occurs within the course of a test and the test was not expected
- * to throw an error.
- *
- * @param {Error} cause The unexpected error that caused this error to be 
- *                      thrown.
- * @namespace YAHOO.util
- * @extends YAHOO.util.AssertionError
- * @class UnexpectedError
- * @constructor
- */  
-YAHOO.util.UnexpectedError = function (cause /*:Object*/){
-
-    //call superclass
-    YAHOO.util.AssertionError.call(this, "Unexpected error: " + cause.message);
-    
-    /**
-     * The unexpected error that occurred.
-     * @type Error
-     * @property cause
-     */
-    this.cause /*:Error*/ = cause;
-    
-    /**
-     * The name of the error that occurred.
-     * @type String
-     * @property name
-     */
-    this.name /*:String*/ = "UnexpectedError";
-    
-    /**
-     * Stack information for the error (if provided).
-     * @type String
-     * @property stack
-     */
-    this.stack /*:String*/ = cause.stack;
-    
-};
-
-//inherit methods
-YAHOO.lang.extend(YAHOO.util.UnexpectedError, YAHOO.util.AssertionError);
-//-----------------------------------------------------------------------------
-// ArrayAssert object
-//-----------------------------------------------------------------------------
-
-/**
- * The ArrayAssert object provides functions to test JavaScript array objects
- * for a variety of cases.
- *
- * @namespace YAHOO.util
- * @class ArrayAssert
- * @static
- */
-YAHOO.util.ArrayAssert = {
-
-    /**
-     * Asserts that a value is present in an array. This uses the triple equals 
-     * sign so no type cohersion may occur.
-     * @param {Object} needle The value that is expected in the array.
-     * @param {Array} haystack An array of values.
-     * @param {String} message (Optional) The message to display if the assertion fails.
-     * @method contains
-     * @static
-     */
-    contains : function (needle /*:Object*/, haystack /*:Array*/, 
-                           message /*:String*/) /*:Void*/ {
-        
-        var found /*:Boolean*/ = false;
-        var Assert = YAHOO.util.Assert;
-        
-        //begin checking values
-        for (var i=0; i < haystack.length && !found; i++){
-            if (haystack[i] === needle) {
-                found = true;
-            }
-        }
-        
-        if (!found){
-            Assert.fail(Assert._formatMessage(message, "Value " + needle + " (" + (typeof needle) + ") not found in array [" + haystack + "]."));
-        }
-    },
-
-    /**
-     * Asserts that a set of values are present in an array. This uses the triple equals 
-     * sign so no type cohersion may occur. For this assertion to pass, all values must
-     * be found.
-     * @param {Object[]} needles An array of values that are expected in the array.
-     * @param {Array} haystack An array of values to check.
-     * @param {String} message (Optional) The message to display if the assertion fails.
-     * @method containsItems
-     * @static
-     */
-    containsItems : function (needles /*:Object[]*/, haystack /*:Array*/, 
-                           message /*:String*/) /*:Void*/ {
-
-        //begin checking values
-        for (var i=0; i < needles.length; i++){
-            this.contains(needles[i], haystack, message);
-        }
-    },
-
-    /**
-     * Asserts that a value matching some condition is present in an array. This uses
-     * a function to determine a match.
-     * @param {Function} matcher A function that returns true if the items matches or false if not.
-     * @param {Array} haystack An array of values.
-     * @param {String} message (Optional) The message to display if the assertion fails.
-     * @method containsMatch
-     * @static
-     */
-    containsMatch : function (matcher /*:Function*/, haystack /*:Array*/, 
-                           message /*:String*/) /*:Void*/ {
-        
-        //check for valid matcher
-        if (typeof matcher != "function"){
-            throw new TypeError("ArrayAssert.containsMatch(): First argument must be a function.");
-        }
-        
-        var found /*:Boolean*/ = false;
-        var Assert = YAHOO.util.Assert;
-        
-        //begin checking values
-        for (var i=0; i < haystack.length && !found; i++){
-            if (matcher(haystack[i])) {
-                found = true;
-            }
-        }
-        
-        if (!found){
-            Assert.fail(Assert._formatMessage(message, "No match found in array [" + haystack + "]."));
-        }
-    },
-
-    /**
-     * Asserts that a value is not present in an array. This uses the triple equals 
-     * sign so no type cohersion may occur.
-     * @param {Object} needle The value that is expected in the array.
-     * @param {Array} haystack An array of values.
-     * @param {String} message (Optional) The message to display if the assertion fails.
-     * @method doesNotContain
-     * @static
-     */
-    doesNotContain : function (needle /*:Object*/, haystack /*:Array*/, 
-                           message /*:String*/) /*:Void*/ {
-        
-        var found /*:Boolean*/ = false;
-        var Assert = YAHOO.util.Assert;
-        
-        //begin checking values
-        for (var i=0; i < haystack.length && !found; i++){
-            if (haystack[i] === needle) {
-                found = true;
-            }
-        }
-        
-        if (found){
-            Assert.fail(Assert._formatMessage(message, "Value found in array [" + haystack + "]."));
-        }
-    },
-
-    /**
-     * Asserts that a set of values are not present in an array. This uses the triple equals 
-     * sign so no type cohersion may occur. For this assertion to pass, all values must
-     * not be found.
-     * @param {Object[]} needles An array of values that are not expected in the array.
-     * @param {Array} haystack An array of values to check.
-     * @param {String} message (Optional) The message to display if the assertion fails.
-     * @method doesNotContainItems
-     * @static
-     */
-    doesNotContainItems : function (needles /*:Object[]*/, haystack /*:Array*/, 
-                           message /*:String*/) /*:Void*/ {
-
-        for (var i=0; i < needles.length; i++){
-            this.doesNotContain(needles[i], haystack, message);
-        }
-
-    },
-        
-    /**
-     * Asserts that no values matching a condition are present in an array. This uses
-     * a function to determine a match.
-     * @param {Function} matcher A function that returns true if the items matches or false if not.
-     * @param {Array} haystack An array of values.
-     * @param {String} message (Optional) The message to display if the assertion fails.
-     * @method doesNotContainMatch
-     * @static
-     */
-    doesNotContainMatch : function (matcher /*:Function*/, haystack /*:Array*/, 
-                           message /*:String*/) /*:Void*/ {
-        
-        //check for valid matcher
-        if (typeof matcher != "function"){
-            throw new TypeError("ArrayAssert.doesNotContainMatch(): First argument must be a function.");
-        }
-
-        var found /*:Boolean*/ = false;
-        var Assert = YAHOO.util.Assert;
-        
-        //begin checking values
-        for (var i=0; i < haystack.length && !found; i++){
-            if (matcher(haystack[i])) {
-                found = true;
-            }
-        }
-        
-        if (found){
-            Assert.fail(Assert._formatMessage(message, "Value found in array [" + haystack + "]."));
-        }
-    },
-        
-    /**
-     * Asserts that the given value is contained in an array at the specified index.
-     * This uses the triple equals sign so no type cohersion will occur.
-     * @param {Object} needle The value to look for.
-     * @param {Array} haystack The array to search in.
-     * @param {int} index The index at which the value should exist.
-     * @param {String} message (Optional) The message to display if the assertion fails.
-     * @method indexOf
-     * @static
-     */
-    indexOf : function (needle /*:Object*/, haystack /*:Array*/, index /*:int*/, message /*:String*/) /*:Void*/ {
-    
-        //try to find the value in the array
-        for (var i=0; i < haystack.length; i++){
-            if (haystack[i] === needle){
-                YAHOO.util.Assert.areEqual(index, i, message || "Value exists at index " + i + " but should be at index " + index + ".");
-                return;
-            }
-        }
-        
-        var Assert = YAHOO.util.Assert;
-        
-        //if it makes it here, it wasn't found at all
-        Assert.fail(Assert._formatMessage(message, "Value doesn't exist in array [" + haystack + "]."));
-    },
-        
-    /**
-     * Asserts that the values in an array are equal, and in the same position,
-     * as values in another array. This uses the double equals sign
-     * so type cohersion may occur. Note that the array objects themselves
-     * need not be the same for this test to pass.
-     * @param {Array} expected An array of the expected values.
-     * @param {Array} actual Any array of the actual values.
-     * @param {String} message (Optional) The message to display if the assertion fails.
-     * @method itemsAreEqual
-     * @static
-     */
-    itemsAreEqual : function (expected /*:Array*/, actual /*:Array*/, 
-                           message /*:String*/) /*:Void*/ {
-        
-        //one may be longer than the other, so get the maximum length
-        var len /*:int*/ = Math.max(expected.length, actual.length || 0);
-        var Assert = YAHOO.util.Assert;
-       
-        //begin checking values
-        for (var i=0; i < len; i++){
-            Assert.areEqual(expected[i], actual[i], 
-                Assert._formatMessage(message, "Values in position " + i + " are not equal."));
-        }
-    },
-    
-    /**
-     * Asserts that the values in an array are equivalent, and in the same position,
-     * as values in another array. This uses a function to determine if the values
-     * are equivalent. Note that the array objects themselves
-     * need not be the same for this test to pass.
-     * @param {Array} expected An array of the expected values.
-     * @param {Array} actual Any array of the actual values.
-     * @param {Function} comparator A function that returns true if the values are equivalent
-     *      or false if not.
-     * @param {String} message (Optional) The message to display if the assertion fails.
-     * @return {Void}
-     * @method itemsAreEquivalent
-     * @static
-     */
-    itemsAreEquivalent : function (expected /*:Array*/, actual /*:Array*/, 
-                           comparator /*:Function*/, message /*:String*/) /*:Void*/ {
-        
-        //make sure the comparator is valid
-        if (typeof comparator != "function"){
-            throw new TypeError("ArrayAssert.itemsAreEquivalent(): Third argument must be a function.");
-        }
-        
-        //one may be longer than the other, so get the maximum length
-        var len /*:int*/ = Math.max(expected.length, actual.length || 0);
-        
-        //begin checking values
-        for (var i=0; i < len; i++){
-            if (!comparator(expected[i], actual[i])){
-                throw new YAHOO.util.ComparisonFailure(YAHOO.util.Assert._formatMessage(message, "Values in position " + i + " are not equivalent."), expected[i], actual[i]);
-            }
-        }
-    },
-    
-    /**
-     * Asserts that an array is empty.
-     * @param {Array} actual The array to test.
-     * @param {String} message (Optional) The message to display if the assertion fails.
-     * @method isEmpty
-     * @static
-     */
-    isEmpty : function (actual /*:Array*/, message /*:String*/) /*:Void*/ {        
-        if (actual.length > 0){
-            var Assert = YAHOO.util.Assert;
-            Assert.fail(Assert._formatMessage(message, "Array should be empty."));
-        }
-    },    
-    
-    /**
-     * Asserts that an array is not empty.
-     * @param {Array} actual The array to test.
-     * @param {String} message (Optional) The message to display if the assertion fails.
-     * @method isNotEmpty
-     * @static
-     */
-    isNotEmpty : function (actual /*:Array*/, message /*:String*/) /*:Void*/ {        
-        if (actual.length === 0){
-            var Assert = YAHOO.util.Assert;
-            Assert.fail(Assert._formatMessage(message, "Array should not be empty."));
-        }
-    },    
-    
-    /**
-     * Asserts that the values in an array are the same, and in the same position,
-     * as values in another array. This uses the triple equals sign
-     * so no type cohersion will occur. Note that the array objects themselves
-     * need not be the same for this test to pass.
-     * @param {Array} expected An array of the expected values.
-     * @param {Array} actual Any array of the actual values.
-     * @param {String} message (Optional) The message to display if the assertion fails.
-     * @method itemsAreSame
-     * @static
-     */
-    itemsAreSame : function (expected /*:Array*/, actual /*:Array*/, 
-                          message /*:String*/) /*:Void*/ {
-        
-        //one may be longer than the other, so get the maximum length
-        var len /*:int*/ = Math.max(expected.length, actual.length || 0);
-        var Assert = YAHOO.util.Assert;
-        
-        //begin checking values
-        for (var i=0; i < len; i++){
-            Assert.areSame(expected[i], actual[i], 
-                Assert._formatMessage(message, "Values in position " + i + " are not the same."));
-        }
-    },
-    
-    /**
-     * Asserts that the given value is contained in an array at the specified index,
-     * starting from the back of the array.
-     * This uses the triple equals sign so no type cohersion will occur.
-     * @param {Object} needle The value to look for.
-     * @param {Array} haystack The array to search in.
-     * @param {int} index The index at which the value should exist.
-     * @param {String} message (Optional) The message to display if the assertion fails.
-     * @method lastIndexOf
-     * @static
-     */
-    lastIndexOf : function (needle /*:Object*/, haystack /*:Array*/, index /*:int*/, message /*:String*/) /*:Void*/ {
-    
-        var Assert = YAHOO.util.Assert;
-    
-        //try to find the value in the array
-        for (var i=haystack.length; i >= 0; i--){
-            if (haystack[i] === needle){
-                Assert.areEqual(index, i, Assert._formatMessage(message, "Value exists at index " + i + " but should be at index " + index + "."));
-                return;
-            }
-        }
-        
-        //if it makes it here, it wasn't found at all
-        Assert.fail(Assert._formatMessage(message, "Value doesn't exist in array."));        
-    }
-    
-};
-YAHOO.namespace("util");
-
-
-//-----------------------------------------------------------------------------
-// ObjectAssert object
-//-----------------------------------------------------------------------------
-
-/**
- * The ObjectAssert object provides functions to test JavaScript objects
- * for a variety of cases.
- *
- * @namespace YAHOO.util
- * @class ObjectAssert
- * @static
- */
-YAHOO.util.ObjectAssert = {
-        
-    /**
-     * Asserts that all properties in the object exist in another object.
-     * @param {Object} expected An object with the expected properties.
-     * @param {Object} actual An object with the actual properties.
-     * @param {String} message (Optional) The message to display if the assertion fails.
-     * @method propertiesAreEqual
-     * @static
-     */
-    propertiesAreEqual : function (expected /*:Object*/, actual /*:Object*/, 
-                           message /*:String*/) /*:Void*/ {
-        
-        var Assert = YAHOO.util.Assert;
-        
-        //get all properties in the object
-        var properties /*:Array*/ = [];        
-        for (var property in expected){
-            properties.push(property);
-        }
-        
-        //see if the properties are in the expected object
-        for (var i=0; i < properties.length; i++){
-            Assert.isNotUndefined(actual[properties[i]], 
-                Assert._formatMessage(message, "Property '" + properties[i] + "' expected."));
-        }
-
-    },
-    
-    /**
-     * Asserts that an object has a property with the given name.
-     * @param {String} propertyName The name of the property to test.
-     * @param {Object} object The object to search.
-     * @param {String} message (Optional) The message to display if the assertion fails.
-     * @method hasProperty
-     * @static
-     */    
-    hasProperty : function (propertyName /*:String*/, object /*:Object*/, message /*:String*/) /*:Void*/ {
-        if (!(propertyName in object)){
-            var Assert = YAHOO.util.Assert;
-            Assert.fail(Assert._formatMessage(message, "Property '" + propertyName + "' not found on object."));
-        }    
-    },
-    
-    /**
-     * Asserts that a property with the given name exists on an object instance (not on its prototype).
-     * @param {String} propertyName The name of the property to test.
-     * @param {Object} object The object to search.
-     * @param {String} message (Optional) The message to display if the assertion fails.
-     * @method hasProperty
-     * @static
-     */    
-    hasOwnProperty : function (propertyName /*:String*/, object /*:Object*/, message /*:String*/) /*:Void*/ {
-        if (!YAHOO.lang.hasOwnProperty(object, propertyName)){
-            var Assert = YAHOO.util.Assert;
-            Assert.fail(Assert._formatMessage(message, "Property '" + propertyName + "' not found on object instance."));
-        }     
-    }
-};
-//-----------------------------------------------------------------------------
-// DateAssert object
-//-----------------------------------------------------------------------------
-
-/**
- * The DateAssert object provides functions to test JavaScript Date objects
- * for a variety of cases.
- *
- * @namespace YAHOO.util
- * @class DateAssert
- * @static
- */
-YAHOO.util.DateAssert = {
-
-    /**
-     * Asserts that a date's month, day, and year are equal to another date's.
-     * @param {Date} expected The expected date.
-     * @param {Date} actual The actual date to test.
-     * @param {String} message (Optional) The message to display if the assertion fails.
-     * @method datesAreEqual
-     * @static
-     */
-    datesAreEqual : function (expected /*:Date*/, actual /*:Date*/, message /*:String*/){
-        if (expected instanceof Date && actual instanceof Date){
-            var Assert = YAHOO.util.Assert;
-            Assert.areEqual(expected.getFullYear(), actual.getFullYear(), Assert._formatMessage(message, "Years should be equal."));
-            Assert.areEqual(expected.getMonth(), actual.getMonth(), Assert._formatMessage(message, "Months should be equal."));
-            Assert.areEqual(expected.getDate(), actual.getDate(), Assert._formatMessage(message, "Day of month should be equal."));
-        } else {
-            throw new TypeError("DateAssert.datesAreEqual(): Expected and actual values must be Date objects.");
-        }
-    },
-
-    /**
-     * Asserts that a date's hour, minutes, and seconds are equal to another date's.
-     * @param {Date} expected The expected date.
-     * @param {Date} actual The actual date to test.
-     * @param {String} message (Optional) The message to display if the assertion fails.
-     * @method timesAreEqual
-     * @static
-     */
-    timesAreEqual : function (expected /*:Date*/, actual /*:Date*/, message /*:String*/){
-        if (expected instanceof Date && actual instanceof Date){
-            var Assert = YAHOO.util.Assert;
-            Assert.areEqual(expected.getHours(), actual.getHours(), Assert._formatMessage(message, "Hours should be equal."));
-            Assert.areEqual(expected.getMinutes(), actual.getMinutes(), Assert._formatMessage(message, "Minutes should be equal."));
-            Assert.areEqual(expected.getSeconds(), actual.getSeconds(), Assert._formatMessage(message, "Seconds should be equal."));
-        } else {
-            throw new TypeError("DateAssert.timesAreEqual(): Expected and actual values must be Date objects.");
-        }
-    }
-    
-};
-YAHOO.namespace("tool");
-
-//-----------------------------------------------------------------------------
-// TestManager object
-//-----------------------------------------------------------------------------
-
-/**
- * Runs pages containing test suite definitions.
- * @namespace YAHOO.tool
- * @class TestManager
- * @static
- */
-YAHOO.tool.TestManager = {
-
-    /**
-     * Constant for the testpagebegin custom event
-     * @property TEST_PAGE_BEGIN_EVENT
-     * @static
-     * @type string
-     * @final
-     */
-    TEST_PAGE_BEGIN_EVENT /*:String*/ : "testpagebegin",
-
-    /**
-     * Constant for the testpagecomplete custom event
-     * @property TEST_PAGE_COMPLETE_EVENT
-     * @static
-     * @type string
-     * @final
-     */
-    TEST_PAGE_COMPLETE_EVENT /*:String*/ : "testpagecomplete",
-
-    /**
-     * Constant for the testmanagerbegin custom event
-     * @property TEST_MANAGER_BEGIN_EVENT
-     * @static
-     * @type string
-     * @final
-     */
-    TEST_MANAGER_BEGIN_EVENT /*:String*/ : "testmanagerbegin",
-
-    /**
-     * Constant for the testmanagercomplete custom event
-     * @property TEST_MANAGER_COMPLETE_EVENT
-     * @static
-     * @type string
-     * @final
-     */
-    TEST_MANAGER_COMPLETE_EVENT /*:String*/ : "testmanagercomplete",
-
-    //-------------------------------------------------------------------------
-    // Private Properties
-    //-------------------------------------------------------------------------
-    
-    
-    /**
-     * The URL of the page currently being executed.
-     * @type String
-     * @private
-     * @property _curPage
-     * @static
-     */
-    _curPage /*:String*/ : null,
-    
-    /**
-     * The frame used to load and run tests.
-     * @type Window
-     * @private
-     * @property _frame
-     * @static
-     */
-    _frame /*:Window*/ : null,
-    
-    /**
-     * The logger used to output results from the various tests.
-     * @type YAHOO.tool.TestLogger
-     * @private
-     * @property _logger
-     * @static
-     */
-    _logger : null,
-    
-    /**
-     * The timeout ID for the next iteration through the tests.
-     * @type int
-     * @private
-     * @property _timeoutId
-     * @static
-     */
-    _timeoutId /*:int*/ : 0,
-    
-    /**
-     * Array of pages to load.
-     * @type String[]
-     * @private
-     * @property _pages
-     * @static
-     */
-    _pages /*:String[]*/ : [],
-    
-    /**
-     * Aggregated results
-     * @type Object
-     * @private
-     * @property _results
-     * @static
-     */
-    _results: null,
-    
-    //-------------------------------------------------------------------------
-    // Private Methods
-    //-------------------------------------------------------------------------
-    
-    /**
-     * Handles TestRunner.COMPLETE_EVENT, storing the results and beginning
-     * the loop again.
-     * @param {Object} data Data about the event.
-     * @return {Void}
-     * @private
-     * @static
-     */
-    _handleTestRunnerComplete : function (data /*:Object*/) /*:Void*/ {
-
-        this.fireEvent(this.TEST_PAGE_COMPLETE_EVENT, {
-                page: this._curPage,
-                results: data.results
-            });
-    
-        //save results
-        //this._results[this.curPage] = data.results;
-        
-        //process 'em
-        this._processResults(this._curPage, data.results);
-        
-        this._logger.clearTestRunner();
-    
-        //if there's more to do, set a timeout to begin again
-        if (this._pages.length){
-            this._timeoutId = setTimeout(function(){
-                YAHOO.tool.TestManager._run();
-            }, 1000);
-        } else {
-            this.fireEvent(this.TEST_MANAGER_COMPLETE_EVENT, this._results);
-        }
-    },
-    
-    /**
-     * Processes the results of a test page run, outputting log messages
-     * for failed tests.
-     * @return {Void}
-     * @private
-     * @static
-     */
-    _processResults : function (page /*:String*/, results /*:Object*/) /*:Void*/ {
-
-        var r = this._results;
-        
-        r.passed += results.passed;
-        r.failed += results.failed;
-        r.ignored += results.ignored;
-        r.total += results.total;
-        r.duration += results.duration;
-        
-        if (results.failed){
-            r.failedPages.push(page);
-        } else {
-            r.passedPages.push(page);
-        }
-        
-        results.name = page;
-        results.type = "page";
-        
-        r[page] = results;
-    },
-    
-    /**
-     * Loads the next test page into the iframe.
-     * @return {Void}
-     * @static
-     * @private
-     */
-    _run : function () /*:Void*/ {
-    
-        //set the current page
-        this._curPage = this._pages.shift();
-
-        this.fireEvent(this.TEST_PAGE_BEGIN_EVENT, this._curPage);
-        
-        //load the frame - destroy history in case there are other iframes that
-        //need testing
-        this._frame.location.replace(this._curPage);
-    
-    },
-        
-    //-------------------------------------------------------------------------
-    // Public Methods
-    //-------------------------------------------------------------------------
-    
-    /**
-     * Signals that a test page has been loaded. This should be called from
-     * within the test page itself to notify the TestManager that it is ready.
-     * @return {Void}
-     * @static
-     */
-    load : function () /*:Void*/ {
-        if (parent.YAHOO.tool.TestManager !== this){
-            parent.YAHOO.tool.TestManager.load();
-        } else {
-            
-            if (this._frame) {
-                //assign event handling
-                var TestRunner = this._frame.YAHOO.tool.TestRunner;
-
-                this._logger.setTestRunner(TestRunner);
-                TestRunner.subscribe(TestRunner.COMPLETE_EVENT, this._handleTestRunnerComplete, this, true);
-                
-                //run it
-                TestRunner.run();
-            }
-        }
-    },
-    
-    /**
-     * Sets the pages to be loaded.
-     * @param {String[]} pages An array of URLs to load.
-     * @return {Void}
-     * @static
-     */
-    setPages : function (pages /*:String[]*/) /*:Void*/ {
-        this._pages = pages;
-    },
-    
-    /**
-     * Begins the process of running the tests.
-     * @return {Void}
-     * @static
-     */
-    start : function () /*:Void*/ {
-
-        if (!this._initialized) {
-
-            /**
-             * Fires when loading a test page
-             * @event testpagebegin
-             * @param curPage {string} the page being loaded
-             * @static
-             */
-            this.createEvent(this.TEST_PAGE_BEGIN_EVENT);
-
-            /**
-             * Fires when a test page is complete
-             * @event testpagecomplete
-             * @param obj {page: string, results: object} the name of the
-             * page that was loaded, and the test suite results
-             * @static
-             */
-            this.createEvent(this.TEST_PAGE_COMPLETE_EVENT);
-
-            /**
-             * Fires when the test manager starts running all test pages
-             * @event testmanagerbegin
-             * @static
-             */
-            this.createEvent(this.TEST_MANAGER_BEGIN_EVENT);
-
-            /**
-             * Fires when the test manager finishes running all test pages.  External
-             * test runners should subscribe to this event in order to get the
-             * aggregated test results.
-             * @event testmanagercomplete
-             * @param obj { pages_passed: int, pages_failed: int, tests_passed: int
-             *              tests_failed: int, passed: string[], failed: string[],
-             *              page_results: {} }
-             * @static
-             */
-            this.createEvent(this.TEST_MANAGER_COMPLETE_EVENT);
-
-            //create iframe if not already available
-            if (!this._frame){
-                var frame /*:HTMLElement*/ = document.createElement("iframe");
-                frame.style.visibility = "hidden";
-                frame.style.position = "absolute";
-                document.body.appendChild(frame);
-                this._frame = frame.contentWindow || frame.contentDocument.parentWindow;
-            }
-            
-            //create test logger if not already available
-            if (!this._logger){
-                this._logger = new YAHOO.tool.TestLogger();
-            }
-
-            this._initialized = true;
-        }
-
-
-        // reset the results cache
-        this._results = {
-        
-            passed: 0,
-            failed: 0,
-            ignored: 0,
-            total: 0,
-            type: "report",
-            name: "YUI Test Results",
-            duration: 0,
-            failedPages:[],
-            passedPages:[]
-            /*
-            // number of pages that pass
-            pages_passed: 0,
-            // number of pages that fail
-            pages_failed: 0,
-            // total number of tests passed
-            tests_passed: 0,
-            // total number of tests failed
-            tests_failed: 0,
-            // array of pages that passed
-            passed: [],
-            // array of pages that failed
-            failed: [],
-            // map of full results for each page
-            page_results: {}*/
-        };
-
-        this.fireEvent(this.TEST_MANAGER_BEGIN_EVENT, null);
-        this._run();
-    
-    },
-
-    /**
-     * Stops the execution of tests.
-     * @return {Void}
-     * @static
-     */
-    stop : function () /*:Void*/ {
-        clearTimeout(this._timeoutId);
-    }
-
-};
-
-YAHOO.lang.augmentObject(YAHOO.tool.TestManager, YAHOO.util.EventProvider.prototype);
-
-YAHOO.namespace("tool");
-
-//-----------------------------------------------------------------------------
-// TestLogger object
-//-----------------------------------------------------------------------------
-
-/**
- * Displays test execution progress and results, providing filters based on
- * different key events.
- * @namespace YAHOO.tool
- * @class TestLogger
- * @constructor
- * @param {HTMLElement} element (Optional) The element to create the logger in.
- * @param {Object} config (Optional) Configuration options for the logger.
- */
-YAHOO.tool.TestLogger = function (element, config) {
-    YAHOO.tool.TestLogger.superclass.constructor.call(this, element, config);
-    this.init();
-};
-
-YAHOO.lang.extend(YAHOO.tool.TestLogger, YAHOO.widget.LogReader, {
-
-    footerEnabled : true,
-    newestOnTop : false,
-
-    /**
-     * Formats message string to HTML for output to console.
-     * @private
-     * @method formatMsg
-     * @param oLogMsg {Object} Log message object.
-     * @return {String} HTML-formatted message for output to console.
-     */
-    formatMsg : function(message /*:Object*/) {
-    
-        var category /*:String*/ = message.category;        
-        var text /*:String*/ = this.html2Text(message.msg);
-        
-        return "<pre><p><span class=\"" + category + "\">" + category.toUpperCase() + "</span> " + text + "</p></pre>";
-    
-    },
-    
-    //-------------------------------------------------------------------------
-    // Private Methods
-    //-------------------------------------------------------------------------
-    
-    /*
-     * Initializes the logger.
-     * @private
-     */
-    init : function () {
-    
-        //attach to any available TestRunner
-        if (YAHOO.tool.TestRunner){
-            this.setTestRunner(YAHOO.tool.TestRunner);
-        }
-        
-        //hide useless sources
-        this.hideSource("global");
-        this.hideSource("LogReader");
-        
-        //hide useless message categories
-        this.hideCategory("warn");
-        this.hideCategory("window");
-        this.hideCategory("time");
-        
-        //reset the logger
-        this.clearConsole();
-    },
-    
-    /**
-     * Clears the reference to the TestRunner from previous operations. This 
-     * unsubscribes all events and removes the object reference.
-     * @return {Void}
-     * @static
-     */
-    clearTestRunner : function () /*:Void*/ {
-        if (this._runner){
-            this._runner.unsubscribeAll();
-            this._runner = null;
-        }
-    },
-    
-    /**
-     * Sets the source test runner that the logger should monitor.
-     * @param {YAHOO.tool.TestRunner} testRunner The TestRunner to observe.
-     * @return {Void}
-     * @static
-     */
-    setTestRunner : function (testRunner /*:YAHOO.tool.TestRunner*/) /*:Void*/ {
-    
-        if (this._runner){
-            this.clearTestRunner();
-        }
-        
-        this._runner = testRunner;
-        
-        //setup event _handlers
-        testRunner.subscribe(testRunner.TEST_PASS_EVENT, this._handleTestRunnerEvent, this, true);
-        testRunner.subscribe(testRunner.TEST_FAIL_EVENT, this._handleTestRunnerEvent, this, true);
-        testRunner.subscribe(testRunner.TEST_IGNORE_EVENT, this._handleTestRunnerEvent, this, true);
-        testRunner.subscribe(testRunner.BEGIN_EVENT, this._handleTestRunnerEvent, this, true);
-        testRunner.subscribe(testRunner.COMPLETE_EVENT, this._handleTestRunnerEvent, this, true);
-        testRunner.subscribe(testRunner.TEST_SUITE_BEGIN_EVENT, this._handleTestRunnerEvent, this, true);
-        testRunner.subscribe(testRunner.TEST_SUITE_COMPLETE_EVENT, this._handleTestRunnerEvent, this, true);
-        testRunner.subscribe(testRunner.TEST_CASE_BEGIN_EVENT, this._handleTestRunnerEvent, this, true);
-        testRunner.subscribe(testRunner.TEST_CASE_COMPLETE_EVENT, this._handleTestRunnerEvent, this, true);    
-    },
-    
-    //-------------------------------------------------------------------------
-    // Event Handlers
-    //-------------------------------------------------------------------------
-    
-    /**
-     * Handles all TestRunner events, outputting appropriate data into the console.
-     * @param {Object} data The event data object.
-     * @return {Void}
-     * @private
-     */
-    _handleTestRunnerEvent : function (data /*:Object*/) /*:Void*/ {
-    
-        //shortcut variables
-        var TestRunner /*:Object*/ = YAHOO.tool.TestRunner;
-    
-        //data variables
-        var message /*:String*/ = "";
-        var messageType /*:String*/ = "";
-        
-        switch(data.type){
-            case TestRunner.BEGIN_EVENT:
-                message = "Testing began at " + (new Date()).toString() + ".";
-                messageType = "info";
-                break;
-                
-            case TestRunner.COMPLETE_EVENT:
-                message = "Testing completed at " + (new Date()).toString() + ".\nPassed:" + 
-                    data.results.passed + " Failed:" + data.results.failed + " Total:" + data.results.total;
-                messageType = "info";
-                break;
-                
-            case TestRunner.TEST_FAIL_EVENT:
-                message = data.testName + ": " + data.error.getMessage();
-                messageType = "fail";
-                break;
-                
-            case TestRunner.TEST_IGNORE_EVENT:
-                message = data.testName + ": ignored.";
-                messageType = "ignore";
-                break;
-                
-            case TestRunner.TEST_PASS_EVENT:
-                message = data.testName + ": passed.";
-                messageType = "pass";
-                break;
-                
-            case TestRunner.TEST_SUITE_BEGIN_EVENT:
-                message = "Test suite \"" + data.testSuite.name + "\" started.";
-                messageType = "info";
-                break;
-                
-            case TestRunner.TEST_SUITE_COMPLETE_EVENT:
-                message = "Test suite \"" + data.testSuite.name + "\" completed.\nPassed:" + 
-                    data.results.passed + " Failed:" + data.results.failed + " Total:" + data.results.total;
-                messageType = "info";
-                break;
-                
-            case TestRunner.TEST_CASE_BEGIN_EVENT:
-                message = "Test case \"" + data.testCase.name + "\" started.";
-                messageType = "info";
-                break;
-                
-            case TestRunner.TEST_CASE_COMPLETE_EVENT:
-                message = "Test case \"" + data.testCase.name + "\" completed.\nPassed:" + 
-                    data.results.passed + " Failed:" + data.results.failed + " Total:" + data.results.total;
-                messageType = "info";
-                break;
-            default:
-                message = "Unexpected event " + data.type;
-                message = "info";
-        }
-    
-        YAHOO.log(message, messageType, "TestRunner");    
-    }
-    
-});
-YAHOO.namespace("tool.TestFormat");
-
-/**
- * Returns test results formatted as a JSON string. Requires JSON utility.
- * @param {Object} result The results object created by TestRunner.
- * @return {String} An XML-formatted string of results.
- * @namespace YAHOO.tool.TestFormat
- * @method JSON
- * @static
- */
-YAHOO.tool.TestFormat.JSON = function(results /*:Object*/) /*:String*/ {
-    return YAHOO.lang.JSON.stringify(results);
-};
-
-/**
- * Returns test results formatted as an XML string.
- * @param {Object} result The results object created by TestRunner.
- * @return {String} An XML-formatted string of results.
- * @namespace YAHOO.tool.TestFormat
- * @method XML
- * @static
- */
-YAHOO.tool.TestFormat.XML = function(results /*:Object*/) /*:String*/ {
-
-    var l = YAHOO.lang;
-    var xml /*:String*/ = "<" + results.type + " name=\"" + results.name.replace(/"/g, "&quot;").replace(/'/g, "&apos;") + "\"";
-    
-    if (l.isNumber(results.duration)){
-        xml += " duration=\"" + results.duration + "\"";
-    }
-    
-    if (results.type == "test"){
-        xml += " result=\"" + results.result + "\" message=\"" + results.message + "\">";
-    } else {
-        xml += " passed=\"" + results.passed + "\" failed=\"" + results.failed + "\" ignored=\"" + results.ignored + "\" total=\"" + results.total + "\">";
-        for (var prop in results) {
-            if (l.hasOwnProperty(results, prop) && l.isObject(results[prop]) && !l.isArray(results[prop])){
-                xml += arguments.callee(results[prop]);
-            }
-        }        
-    }
-
-    xml += "</" + results.type + ">";
-    
-    return xml;
-
-};
-YAHOO.namespace("tool");
-
-/**
- * An object capable of sending test results to a server.
- * @param {String} url The URL to submit the results to.
- * @param {Function} format (Optiona) A function that outputs the results in a specific format.
- *      Default is YAHOO.tool.TestFormat.XML.
- * @constructor
- * @namespace YAHOO.tool
- * @class TestReporter
- */
-YAHOO.tool.TestReporter = function(url /*:String*/, format /*:Function*/) {
-
-    /**
-     * The URL to submit the data to.
-     * @type String
-     * @property url
-     */
-    this.url /*:String*/ = url;
-
-    /**
-     * The formatting function to call when submitting the data.
-     * @type Function
-     * @property format
-     */
-    this.format /*:Function*/ = format || YAHOO.tool.TestFormat.XML;
-
-    /**
-     * Extra fields to submit with the request.
-     * @type Object
-     * @property _fields
-     * @private
-     */
-    this._fields /*:Object*/ = new Object();
-    
-    /**
-     * The form element used to submit the results.
-     * @type HTMLFormElement
-     * @property _form
-     * @private
-     */
-    this._form /*:HTMLElement*/ = null;
-
-    /**
-     * Iframe used as a target for form submission.
-     * @type HTMLIFrameElement
-     * @property _iframe
-     * @private
-     */
-    this._iframe /*:HTMLElement*/ = null;
-};
-
-YAHOO.tool.TestReporter.prototype = {
-
-    //restore missing constructor
-    constructor: YAHOO.tool.TestReporter,
-    
-    /**
-     * Convert a date into ISO format.
-     * From Douglas Crockford's json2.js
-     * @param {Date} date The date to convert.
-     * @return {String} An ISO-formatted date string
-     * @method _convertToISOString
-     * @private
-     */    
-    _convertToISOString: function(date){
-        function f(n) {
-            // Format integers to have at least two digits.
-            return n < 10 ? '0' + n : n;
-        }
-
-        return date.getUTCFullYear()   + '-' +
-             f(date.getUTCMonth() + 1) + '-' +
-             f(date.getUTCDate())      + 'T' +
-             f(date.getUTCHours())     + ':' +
-             f(date.getUTCMinutes())   + ':' +
-             f(date.getUTCSeconds())   + 'Z';     
-    
-    },
-
-    /**
-     * Adds a field to the form that submits the results.
-     * @param {String} name The name of the field.
-     * @param {Variant} value The value of the field.
-     * @return {Void}
-     * @method addField
-     */
-    addField : function (name /*:String*/, value /*:Variant*/) /*:Void*/{
-        this._fields[name] = value;    
-    },
-    
-    /**
-     * Removes all previous defined fields.
-     * @return {Void}
-     * @method addField
-     */
-    clearFields : function() /*:Void*/{
-        this._fields = new Object();
-    },
-
-    /**
-     * Cleans up the memory associated with the TestReporter, removing DOM elements
-     * that were created.
-     * @return {Void}
-     * @method destroy
-     */
-    destroy : function() /*:Void*/ {
-        if (this._form){
-            this._form.parentNode.removeChild(this._form);
-            this._form = null;
-        }        
-        if (this._iframe){
-            this._iframe.parentNode.removeChild(this._iframe);
-            this._iframe = null;
-        }
-        this._fields = null;
-    },
-
-    /**
-     * Sends the report to the server.
-     * @param {Object} results The results object created by TestRunner.
-     * @return {Void}
-     * @method report
-     */
-    report : function(results /*:Object*/) /*:Void*/{
-    
-        //if the form hasn't been created yet, create it
-        if (!this._form){
-            this._form = document.createElement("form");
-            this._form.method = "post";
-            this._form.style.visibility = "hidden";
-            this._form.style.position = "absolute";
-            this._form.style.top = 0;
-            document.body.appendChild(this._form);
-        
-            //IE won't let you assign a name using the DOM, must do it the hacky way
-            if (YAHOO.env.ua.ie){
-                this._iframe = document.createElement("<iframe name=\"yuiTestTarget\" />");
-            } else {
-                this._iframe = document.createElement("iframe");
-                this._iframe.name = "yuiTestTarget";
-            }
-
-            this._iframe.src = "javascript:false";
-            this._iframe.style.visibility = "hidden";
-            this._iframe.style.position = "absolute";
-            this._iframe.style.top = 0;
-            document.body.appendChild(this._iframe);
-
-            this._form.target = "yuiTestTarget";
-        }
-
-        //set the form's action
-        this._form.action = this.url;
-    
-        //remove any existing fields
-        while(this._form.hasChildNodes()){
-            this._form.removeChild(this._form.lastChild);
-        }
-        
-        //create default fields
-        this._fields.results = this.format(results);
-        this._fields.useragent = navigator.userAgent;
-        this._fields.timestamp = this._convertToISOString(new Date());
-
-        //add fields to the form
-        for (var prop in this._fields){
-            if (YAHOO.lang.hasOwnProperty(this._fields, prop) && typeof this._fields[prop] != "function"){
-                if (YAHOO.env.ua.ie){
-                    input = document.createElement("<input name=\"" + prop + "\" >");
-                } else {
-                    input = document.createElement("input");
-                    input.name = prop;
-                }
-                input.type = "hidden";
-                input.value = this._fields[prop];
-                this._form.appendChild(input);
-            }
-        }
-
-        //remove default fields
-        delete this._fields.results;
-        delete this._fields.useragent;
-        delete this._fields.timestamp;
-        
-        if (arguments[1] !== false){
-            this._form.submit();
-        }
-    
-    }
-
-};
-YAHOO.register("yuitest", YAHOO.tool.TestRunner, {version: "2.8.0r4", build: "2449"});
diff --git a/koha-tmpl/intranet-tmpl/prog/en/lib/yui/yuitest/yuitest-min.js b/koha-tmpl/intranet-tmpl/prog/en/lib/yui/yuitest/yuitest-min.js
deleted file mode 100644 (file)
index 501690c..0000000
+++ /dev/null
@@ -1,10 +0,0 @@
-/*
-Copyright (c) 2009, Yahoo! Inc. All rights reserved.
-Code licensed under the BSD License:
-http://developer.yahoo.net/yui/license.txt
-version: 2.8.0r4
-*/
-YAHOO.namespace("tool");(function(){var A=0;YAHOO.tool.TestCase=function(B){this._should={};for(var C in B){this[C]=B[C];}if(!YAHOO.lang.isString(this.name)){this.name="testCase"+(A++);}};YAHOO.tool.TestCase.prototype={resume:function(B){YAHOO.tool.TestRunner.resume(B);},wait:function(D,C){var B=arguments;if(YAHOO.lang.isFunction(B[0])){throw new YAHOO.tool.TestCase.Wait(B[0],B[1]);}else{throw new YAHOO.tool.TestCase.Wait(function(){YAHOO.util.Assert.fail("Timeout: wait() called but resume() never called.");},(YAHOO.lang.isNumber(B[0])?B[0]:10000));}},setUp:function(){},tearDown:function(){}};YAHOO.tool.TestCase.Wait=function(C,B){this.segment=(YAHOO.lang.isFunction(C)?C:null);this.delay=(YAHOO.lang.isNumber(B)?B:0);};})();YAHOO.namespace("tool");YAHOO.tool.TestSuite=function(A){this.name="";this.items=[];if(YAHOO.lang.isString(A)){this.name=A;}else{if(YAHOO.lang.isObject(A)){YAHOO.lang.augmentObject(this,A,true);}}if(this.name===""){this.name=YAHOO.util.Dom.generateId(null,"testSuite");}};YAHOO.tool.TestSuite.prototype={add:function(A){if(A instanceof YAHOO.tool.TestSuite||A instanceof YAHOO.tool.TestCase){this.items.push(A);}},setUp:function(){},tearDown:function(){}};YAHOO.namespace("tool");YAHOO.tool.TestRunner=(function(){function B(C){this.testObject=C;this.firstChild=null;this.lastChild=null;this.parent=null;this.next=null;this.results={passed:0,failed:0,total:0,ignored:0};if(C instanceof YAHOO.tool.TestSuite){this.results.type="testsuite";this.results.name=C.name;}else{if(C instanceof YAHOO.tool.TestCase){this.results.type="testcase";this.results.name=C.name;}}}B.prototype={appendChild:function(C){var D=new B(C);if(this.firstChild===null){this.firstChild=this.lastChild=D;}else{this.lastChild.next=D;this.lastChild=D;}D.parent=this;return D;}};function A(){A.superclass.constructor.apply(this,arguments);this.masterSuite=new YAHOO.tool.TestSuite("YUI Test Results");this._cur=null;this._root=null;var D=[this.TEST_CASE_BEGIN_EVENT,this.TEST_CASE_COMPLETE_EVENT,this.TEST_SUITE_BEGIN_EVENT,this.TEST_SUITE_COMPLETE_EVENT,this.TEST_PASS_EVENT,this.TEST_FAIL_EVENT,this.TEST_IGNORE_EVENT,this.COMPLETE_EVENT,this.BEGIN_EVENT];for(var C=0;C<D.length;C++){this.createEvent(D[C],{scope:this});}}YAHOO.lang.extend(A,YAHOO.util.EventProvider,{TEST_CASE_BEGIN_EVENT:"testcasebegin",TEST_CASE_COMPLETE_EVENT:"testcasecomplete",TEST_SUITE_BEGIN_EVENT:"testsuitebegin",TEST_SUITE_COMPLETE_EVENT:"testsuitecomplete",TEST_PASS_EVENT:"pass",TEST_FAIL_EVENT:"fail",TEST_IGNORE_EVENT:"ignore",COMPLETE_EVENT:"complete",BEGIN_EVENT:"begin",_addTestCaseToTestTree:function(C,D){var E=C.appendChild(D);for(var F in D){if(F.indexOf("test")===0&&YAHOO.lang.isFunction(D[F])){E.appendChild(F);}}},_addTestSuiteToTestTree:function(C,F){var E=C.appendChild(F);for(var D=0;D<F.items.length;D++){if(F.items[D] instanceof YAHOO.tool.TestSuite){this._addTestSuiteToTestTree(E,F.items[D]);}else{if(F.items[D] instanceof YAHOO.tool.TestCase){this._addTestCaseToTestTree(E,F.items[D]);}}}},_buildTestTree:function(){this._root=new B(this.masterSuite);this._cur=this._root;for(var C=0;C<this.masterSuite.items.length;C++){if(this.masterSuite.items[C] instanceof YAHOO.tool.TestSuite){this._addTestSuiteToTestTree(this._root,this.masterSuite.items[C]);}else{if(this.masterSuite.items[C] instanceof YAHOO.tool.TestCase){this._addTestCaseToTestTree(this._root,this.masterSuite.items[C]);}}}},_handleTestObjectComplete:function(C){if(YAHOO.lang.isObject(C.testObject)){C.parent.results.passed+=C.results.passed;C.parent.results.failed+=C.results.failed;C.parent.results.total+=C.results.total;C.parent.results.ignored+=C.results.ignored;C.parent.results[C.testObject.name]=C.results;if(C.testObject instanceof YAHOO.tool.TestSuite){C.testObject.tearDown();this.fireEvent(this.TEST_SUITE_COMPLETE_EVENT,{testSuite:C.testObject,results:C.results});}else{if(C.testObject instanceof YAHOO.tool.TestCase){this.fireEvent(this.TEST_CASE_COMPLETE_EVENT,{testCase:C.testObject,results:C.results});}}}},_next:function(){if(this._cur.firstChild){this._cur=this._cur.firstChild;}else{if(this._cur.next){this._cur=this._cur.next;}else{while(this._cur&&!this._cur.next&&this._cur!==this._root){this._handleTestObjectComplete(this._cur);this._cur=this._cur.parent;}if(this._cur==this._root){this._cur.results.type="report";this._cur.results.timestamp=(new Date()).toLocaleString();this._cur.results.duration=(new Date())-this._cur.results.duration;this.fireEvent(this.COMPLETE_EVENT,{results:this._cur.results});this._cur=null;}else{this._handleTestObjectComplete(this._cur);this._cur=this._cur.next;}}}return this._cur;},_run:function(){var E=false;var D=this._next();if(D!==null){var C=D.testObject;if(YAHOO.lang.isObject(C)){if(C instanceof YAHOO.tool.TestSuite){this.fireEvent(this.TEST_SUITE_BEGIN_EVENT,{testSuite:C});C.setUp();}else{if(C instanceof YAHOO.tool.TestCase){this.fireEvent(this.TEST_CASE_BEGIN_EVENT,{testCase:C});}}if(typeof setTimeout!="undefined"){setTimeout(function(){YAHOO.tool.TestRunner._run();},0);}else{this._run();}}else{this._runTest(D);}}},_resumeTest:function(G){var C=this._cur;var H=C.testObject;var E=C.parent.testObject;if(E.__yui_wait){clearTimeout(E.__yui_wait);delete E.__yui_wait;}var K=(E._should.fail||{})[H];var D=(E._should.error||{})[H];var F=false;var I=null;try{G.apply(E);if(K){I=new YAHOO.util.ShouldFail();F=true;}else{if(D){I=new YAHOO.util.ShouldError();F=true;}}}catch(J){if(J instanceof YAHOO.util.AssertionError){if(!K){I=J;F=true;}}else{if(J instanceof YAHOO.tool.TestCase.Wait){if(YAHOO.lang.isFunction(J.segment)){if(YAHOO.lang.isNumber(J.delay)){if(typeof setTimeout!="undefined"){E.__yui_wait=setTimeout(function(){YAHOO.tool.TestRunner._resumeTest(J.segment);},J.delay);}else{throw new Error("Asynchronous tests not supported in this environment.");}}}return;}else{if(!D){I=new YAHOO.util.UnexpectedError(J);F=true;}else{if(YAHOO.lang.isString(D)){if(J.message!=D){I=new YAHOO.util.UnexpectedError(J);F=true;}}else{if(YAHOO.lang.isFunction(D)){if(!(J instanceof D)){I=new YAHOO.util.UnexpectedError(J);
-F=true;}}else{if(YAHOO.lang.isObject(D)){if(!(J instanceof D.constructor)||J.message!=D.message){I=new YAHOO.util.UnexpectedError(J);F=true;}}}}}}}}if(F){this.fireEvent(this.TEST_FAIL_EVENT,{testCase:E,testName:H,error:I});}else{this.fireEvent(this.TEST_PASS_EVENT,{testCase:E,testName:H});}E.tearDown();C.parent.results[H]={result:F?"fail":"pass",message:I?I.getMessage():"Test passed",type:"test",name:H};if(F){C.parent.results.failed++;}else{C.parent.results.passed++;}C.parent.results.total++;if(typeof setTimeout!="undefined"){setTimeout(function(){YAHOO.tool.TestRunner._run();},0);}else{this._run();}},_runTest:function(F){var C=F.testObject;var D=F.parent.testObject;var G=D[C];var E=(D._should.ignore||{})[C];if(E){F.parent.results[C]={result:"ignore",message:"Test ignored",type:"test",name:C};F.parent.results.ignored++;F.parent.results.total++;this.fireEvent(this.TEST_IGNORE_EVENT,{testCase:D,testName:C});if(typeof setTimeout!="undefined"){setTimeout(function(){YAHOO.tool.TestRunner._run();},0);}else{this._run();}}else{D.setUp();this._resumeTest(G);}},fireEvent:function(C,D){D=D||{};D.type=C;A.superclass.fireEvent.call(this,C,D);},add:function(C){this.masterSuite.add(C);},clear:function(){this.masterSuite.items=[];},resume:function(C){this._resumeTest(C||function(){});},run:function(C){var D=YAHOO.tool.TestRunner;D._buildTestTree();D._root.results.duration=(new Date()).getTime();D.fireEvent(D.BEGIN_EVENT);D._run();}});return new A();})();YAHOO.namespace("util");YAHOO.util.Assert={_formatMessage:function(B,A){var C=B;if(YAHOO.lang.isString(B)&&B.length>0){return YAHOO.lang.substitute(B,{message:A});}else{return A;}},fail:function(A){throw new YAHOO.util.AssertionError(this._formatMessage(A,"Test force-failed."));},areEqual:function(B,C,A){if(B!=C){throw new YAHOO.util.ComparisonFailure(this._formatMessage(A,"Values should be equal."),B,C);}},areNotEqual:function(A,C,B){if(A==C){throw new YAHOO.util.UnexpectedValue(this._formatMessage(B,"Values should not be equal."),A);}},areNotSame:function(A,C,B){if(A===C){throw new YAHOO.util.UnexpectedValue(this._formatMessage(B,"Values should not be the same."),A);}},areSame:function(B,C,A){if(B!==C){throw new YAHOO.util.ComparisonFailure(this._formatMessage(A,"Values should be the same."),B,C);}},isFalse:function(B,A){if(false!==B){throw new YAHOO.util.ComparisonFailure(this._formatMessage(A,"Value should be false."),false,B);}},isTrue:function(B,A){if(true!==B){throw new YAHOO.util.ComparisonFailure(this._formatMessage(A,"Value should be true."),true,B);}},isNaN:function(B,A){if(!isNaN(B)){throw new YAHOO.util.ComparisonFailure(this._formatMessage(A,"Value should be NaN."),NaN,B);}},isNotNaN:function(B,A){if(isNaN(B)){throw new YAHOO.util.UnexpectedValue(this._formatMessage(A,"Values should not be NaN."),NaN);}},isNotNull:function(B,A){if(YAHOO.lang.isNull(B)){throw new YAHOO.util.UnexpectedValue(this._formatMessage(A,"Values should not be null."),null);}},isNotUndefined:function(B,A){if(YAHOO.lang.isUndefined(B)){throw new YAHOO.util.UnexpectedValue(this._formatMessage(A,"Value should not be undefined."),undefined);}},isNull:function(B,A){if(!YAHOO.lang.isNull(B)){throw new YAHOO.util.ComparisonFailure(this._formatMessage(A,"Value should be null."),null,B);}},isUndefined:function(B,A){if(!YAHOO.lang.isUndefined(B)){throw new YAHOO.util.ComparisonFailure(this._formatMessage(A,"Value should be undefined."),undefined,B);}},isArray:function(B,A){if(!YAHOO.lang.isArray(B)){throw new YAHOO.util.UnexpectedValue(this._formatMessage(A,"Value should be an array."),B);}},isBoolean:function(B,A){if(!YAHOO.lang.isBoolean(B)){throw new YAHOO.util.UnexpectedValue(this._formatMessage(A,"Value should be a Boolean."),B);}},isFunction:function(B,A){if(!YAHOO.lang.isFunction(B)){throw new YAHOO.util.UnexpectedValue(this._formatMessage(A,"Value should be a function."),B);}},isInstanceOf:function(B,C,A){if(!(C instanceof B)){throw new YAHOO.util.ComparisonFailure(this._formatMessage(A,"Value isn't an instance of expected type."),B,C);}},isNumber:function(B,A){if(!YAHOO.lang.isNumber(B)){throw new YAHOO.util.UnexpectedValue(this._formatMessage(A,"Value should be a number."),B);}},isObject:function(B,A){if(!YAHOO.lang.isObject(B)){throw new YAHOO.util.UnexpectedValue(this._formatMessage(A,"Value should be an object."),B);}},isString:function(B,A){if(!YAHOO.lang.isString(B)){throw new YAHOO.util.UnexpectedValue(this._formatMessage(A,"Value should be a string."),B);}},isTypeOf:function(B,C,A){if(typeof C!=B){throw new YAHOO.util.ComparisonFailure(this._formatMessage(A,"Value should be of type "+B+"."),B,typeof C);}}};YAHOO.util.AssertionError=function(A){this.message=A;this.name="AssertionError";};YAHOO.lang.extend(YAHOO.util.AssertionError,Object,{getMessage:function(){return this.message;},toString:function(){return this.name+": "+this.getMessage();}});YAHOO.util.ComparisonFailure=function(B,A,C){YAHOO.util.AssertionError.call(this,B);this.expected=A;this.actual=C;this.name="ComparisonFailure";};YAHOO.lang.extend(YAHOO.util.ComparisonFailure,YAHOO.util.AssertionError,{getMessage:function(){return this.message+"\nExpected: "+this.expected+" ("+(typeof this.expected)+")"+"\nActual:"+this.actual+" ("+(typeof this.actual)+")";}});YAHOO.util.UnexpectedValue=function(B,A){YAHOO.util.AssertionError.call(this,B);this.unexpected=A;this.name="UnexpectedValue";};YAHOO.lang.extend(YAHOO.util.UnexpectedValue,YAHOO.util.AssertionError,{getMessage:function(){return this.message+"\nUnexpected: "+this.unexpected+" ("+(typeof this.unexpected)+") ";}});YAHOO.util.ShouldFail=function(A){YAHOO.util.AssertionError.call(this,A||"This test should fail but didn't.");this.name="ShouldFail";};YAHOO.lang.extend(YAHOO.util.ShouldFail,YAHOO.util.AssertionError);YAHOO.util.ShouldError=function(A){YAHOO.util.AssertionError.call(this,A||"This test should have thrown an error but didn't.");this.name="ShouldError";};YAHOO.lang.extend(YAHOO.util.ShouldError,YAHOO.util.AssertionError);YAHOO.util.UnexpectedError=function(A){YAHOO.util.AssertionError.call(this,"Unexpected error: "+A.message);
-this.cause=A;this.name="UnexpectedError";this.stack=A.stack;};YAHOO.lang.extend(YAHOO.util.UnexpectedError,YAHOO.util.AssertionError);YAHOO.util.ArrayAssert={contains:function(E,D,B){var C=false;var F=YAHOO.util.Assert;for(var A=0;A<D.length&&!C;A++){if(D[A]===E){C=true;}}if(!C){F.fail(F._formatMessage(B,"Value "+E+" ("+(typeof E)+") not found in array ["+D+"]."));}},containsItems:function(C,D,B){for(var A=0;A<C.length;A++){this.contains(C[A],D,B);}},containsMatch:function(E,D,B){if(typeof E!="function"){throw new TypeError("ArrayAssert.containsMatch(): First argument must be a function.");}var C=false;var F=YAHOO.util.Assert;for(var A=0;A<D.length&&!C;A++){if(E(D[A])){C=true;}}if(!C){F.fail(F._formatMessage(B,"No match found in array ["+D+"]."));}},doesNotContain:function(E,D,B){var C=false;var F=YAHOO.util.Assert;for(var A=0;A<D.length&&!C;A++){if(D[A]===E){C=true;}}if(C){F.fail(F._formatMessage(B,"Value found in array ["+D+"]."));}},doesNotContainItems:function(C,D,B){for(var A=0;A<C.length;A++){this.doesNotContain(C[A],D,B);}},doesNotContainMatch:function(E,D,B){if(typeof E!="function"){throw new TypeError("ArrayAssert.doesNotContainMatch(): First argument must be a function.");}var C=false;var F=YAHOO.util.Assert;for(var A=0;A<D.length&&!C;A++){if(E(D[A])){C=true;}}if(C){F.fail(F._formatMessage(B,"Value found in array ["+D+"]."));}},indexOf:function(E,D,A,C){for(var B=0;B<D.length;B++){if(D[B]===E){YAHOO.util.Assert.areEqual(A,B,C||"Value exists at index "+B+" but should be at index "+A+".");return;}}var F=YAHOO.util.Assert;F.fail(F._formatMessage(C,"Value doesn't exist in array ["+D+"]."));},itemsAreEqual:function(D,F,C){var A=Math.max(D.length,F.length||0);var E=YAHOO.util.Assert;for(var B=0;B<A;B++){E.areEqual(D[B],F[B],E._formatMessage(C,"Values in position "+B+" are not equal."));}},itemsAreEquivalent:function(E,F,B,D){if(typeof B!="function"){throw new TypeError("ArrayAssert.itemsAreEquivalent(): Third argument must be a function.");}var A=Math.max(E.length,F.length||0);for(var C=0;C<A;C++){if(!B(E[C],F[C])){throw new YAHOO.util.ComparisonFailure(YAHOO.util.Assert._formatMessage(D,"Values in position "+C+" are not equivalent."),E[C],F[C]);}}},isEmpty:function(C,A){if(C.length>0){var B=YAHOO.util.Assert;B.fail(B._formatMessage(A,"Array should be empty."));}},isNotEmpty:function(C,A){if(C.length===0){var B=YAHOO.util.Assert;B.fail(B._formatMessage(A,"Array should not be empty."));}},itemsAreSame:function(D,F,C){var A=Math.max(D.length,F.length||0);var E=YAHOO.util.Assert;for(var B=0;B<A;B++){E.areSame(D[B],F[B],E._formatMessage(C,"Values in position "+B+" are not the same."));}},lastIndexOf:function(E,D,A,C){var F=YAHOO.util.Assert;for(var B=D.length;B>=0;B--){if(D[B]===E){F.areEqual(A,B,F._formatMessage(C,"Value exists at index "+B+" but should be at index "+A+"."));return;}}F.fail(F._formatMessage(C,"Value doesn't exist in array."));}};YAHOO.namespace("util");YAHOO.util.ObjectAssert={propertiesAreEqual:function(D,G,C){var F=YAHOO.util.Assert;var B=[];for(var E in D){B.push(E);}for(var A=0;A<B.length;A++){F.isNotUndefined(G[B[A]],F._formatMessage(C,"Property '"+B[A]+"' expected."));}},hasProperty:function(A,B,C){if(!(A in B)){var D=YAHOO.util.Assert;D.fail(D._formatMessage(C,"Property '"+A+"' not found on object."));}},hasOwnProperty:function(A,B,C){if(!YAHOO.lang.hasOwnProperty(B,A)){var D=YAHOO.util.Assert;D.fail(D._formatMessage(C,"Property '"+A+"' not found on object instance."));}}};YAHOO.util.DateAssert={datesAreEqual:function(B,D,A){if(B instanceof Date&&D instanceof Date){var C=YAHOO.util.Assert;C.areEqual(B.getFullYear(),D.getFullYear(),C._formatMessage(A,"Years should be equal."));C.areEqual(B.getMonth(),D.getMonth(),C._formatMessage(A,"Months should be equal."));C.areEqual(B.getDate(),D.getDate(),C._formatMessage(A,"Day of month should be equal."));}else{throw new TypeError("DateAssert.datesAreEqual(): Expected and actual values must be Date objects.");}},timesAreEqual:function(B,D,A){if(B instanceof Date&&D instanceof Date){var C=YAHOO.util.Assert;C.areEqual(B.getHours(),D.getHours(),C._formatMessage(A,"Hours should be equal."));C.areEqual(B.getMinutes(),D.getMinutes(),C._formatMessage(A,"Minutes should be equal."));C.areEqual(B.getSeconds(),D.getSeconds(),C._formatMessage(A,"Seconds should be equal."));}else{throw new TypeError("DateAssert.timesAreEqual(): Expected and actual values must be Date objects.");}}};YAHOO.namespace("tool");YAHOO.tool.TestManager={TEST_PAGE_BEGIN_EVENT:"testpagebegin",TEST_PAGE_COMPLETE_EVENT:"testpagecomplete",TEST_MANAGER_BEGIN_EVENT:"testmanagerbegin",TEST_MANAGER_COMPLETE_EVENT:"testmanagercomplete",_curPage:null,_frame:null,_logger:null,_timeoutId:0,_pages:[],_results:null,_handleTestRunnerComplete:function(A){this.fireEvent(this.TEST_PAGE_COMPLETE_EVENT,{page:this._curPage,results:A.results});this._processResults(this._curPage,A.results);this._logger.clearTestRunner();if(this._pages.length){this._timeoutId=setTimeout(function(){YAHOO.tool.TestManager._run();},1000);}else{this.fireEvent(this.TEST_MANAGER_COMPLETE_EVENT,this._results);}},_processResults:function(C,A){var B=this._results;B.passed+=A.passed;B.failed+=A.failed;B.ignored+=A.ignored;B.total+=A.total;B.duration+=A.duration;if(A.failed){B.failedPages.push(C);}else{B.passedPages.push(C);}A.name=C;A.type="page";B[C]=A;},_run:function(){this._curPage=this._pages.shift();this.fireEvent(this.TEST_PAGE_BEGIN_EVENT,this._curPage);this._frame.location.replace(this._curPage);},load:function(){if(parent.YAHOO.tool.TestManager!==this){parent.YAHOO.tool.TestManager.load();}else{if(this._frame){var A=this._frame.YAHOO.tool.TestRunner;this._logger.setTestRunner(A);A.subscribe(A.COMPLETE_EVENT,this._handleTestRunnerComplete,this,true);A.run();}}},setPages:function(A){this._pages=A;},start:function(){if(!this._initialized){this.createEvent(this.TEST_PAGE_BEGIN_EVENT);this.createEvent(this.TEST_PAGE_COMPLETE_EVENT);this.createEvent(this.TEST_MANAGER_BEGIN_EVENT);this.createEvent(this.TEST_MANAGER_COMPLETE_EVENT);
-if(!this._frame){var A=document.createElement("iframe");A.style.visibility="hidden";A.style.position="absolute";document.body.appendChild(A);this._frame=A.contentWindow||A.contentDocument.parentWindow;}if(!this._logger){this._logger=new YAHOO.tool.TestLogger();}this._initialized=true;}this._results={passed:0,failed:0,ignored:0,total:0,type:"report",name:"YUI Test Results",duration:0,failedPages:[],passedPages:[]};this.fireEvent(this.TEST_MANAGER_BEGIN_EVENT,null);this._run();},stop:function(){clearTimeout(this._timeoutId);}};YAHOO.lang.augmentObject(YAHOO.tool.TestManager,YAHOO.util.EventProvider.prototype);YAHOO.namespace("tool");YAHOO.tool.TestLogger=function(B,A){YAHOO.tool.TestLogger.superclass.constructor.call(this,B,A);this.init();};YAHOO.lang.extend(YAHOO.tool.TestLogger,YAHOO.widget.LogReader,{footerEnabled:true,newestOnTop:false,formatMsg:function(B){var A=B.category;var C=this.html2Text(B.msg);return'<pre><p><span class="'+A+'">'+A.toUpperCase()+"</span> "+C+"</p></pre>";},init:function(){if(YAHOO.tool.TestRunner){this.setTestRunner(YAHOO.tool.TestRunner);}this.hideSource("global");this.hideSource("LogReader");this.hideCategory("warn");this.hideCategory("window");this.hideCategory("time");this.clearConsole();},clearTestRunner:function(){if(this._runner){this._runner.unsubscribeAll();this._runner=null;}},setTestRunner:function(A){if(this._runner){this.clearTestRunner();}this._runner=A;A.subscribe(A.TEST_PASS_EVENT,this._handleTestRunnerEvent,this,true);A.subscribe(A.TEST_FAIL_EVENT,this._handleTestRunnerEvent,this,true);A.subscribe(A.TEST_IGNORE_EVENT,this._handleTestRunnerEvent,this,true);A.subscribe(A.BEGIN_EVENT,this._handleTestRunnerEvent,this,true);A.subscribe(A.COMPLETE_EVENT,this._handleTestRunnerEvent,this,true);A.subscribe(A.TEST_SUITE_BEGIN_EVENT,this._handleTestRunnerEvent,this,true);A.subscribe(A.TEST_SUITE_COMPLETE_EVENT,this._handleTestRunnerEvent,this,true);A.subscribe(A.TEST_CASE_BEGIN_EVENT,this._handleTestRunnerEvent,this,true);A.subscribe(A.TEST_CASE_COMPLETE_EVENT,this._handleTestRunnerEvent,this,true);},_handleTestRunnerEvent:function(D){var A=YAHOO.tool.TestRunner;var C="";var B="";switch(D.type){case A.BEGIN_EVENT:C="Testing began at "+(new Date()).toString()+".";B="info";break;case A.COMPLETE_EVENT:C="Testing completed at "+(new Date()).toString()+".\nPassed:"+D.results.passed+" Failed:"+D.results.failed+" Total:"+D.results.total;B="info";break;case A.TEST_FAIL_EVENT:C=D.testName+": "+D.error.getMessage();B="fail";break;case A.TEST_IGNORE_EVENT:C=D.testName+": ignored.";B="ignore";break;case A.TEST_PASS_EVENT:C=D.testName+": passed.";B="pass";break;case A.TEST_SUITE_BEGIN_EVENT:C='Test suite "'+D.testSuite.name+'" started.';B="info";break;case A.TEST_SUITE_COMPLETE_EVENT:C='Test suite "'+D.testSuite.name+'" completed.\nPassed:'+D.results.passed+" Failed:"+D.results.failed+" Total:"+D.results.total;B="info";break;case A.TEST_CASE_BEGIN_EVENT:C='Test case "'+D.testCase.name+'" started.';B="info";break;case A.TEST_CASE_COMPLETE_EVENT:C='Test case "'+D.testCase.name+'" completed.\nPassed:'+D.results.passed+" Failed:"+D.results.failed+" Total:"+D.results.total;B="info";break;default:C="Unexpected event "+D.type;C="info";}YAHOO.log(C,B,"TestRunner");}});YAHOO.namespace("tool.TestFormat");YAHOO.tool.TestFormat.JSON=function(A){return YAHOO.lang.JSON.stringify(A);};YAHOO.tool.TestFormat.XML=function(C){var A=YAHOO.lang;var B="<"+C.type+' name="'+C.name.replace(/"/g,"&quot;").replace(/'/g,"&apos;")+'"';if(A.isNumber(C.duration)){B+=' duration="'+C.duration+'"';}if(C.type=="test"){B+=' result="'+C.result+'" message="'+C.message+'">';}else{B+=' passed="'+C.passed+'" failed="'+C.failed+'" ignored="'+C.ignored+'" total="'+C.total+'">';for(var D in C){if(A.hasOwnProperty(C,D)&&A.isObject(C[D])&&!A.isArray(C[D])){B+=arguments.callee(C[D]);}}}B+="</"+C.type+">";return B;};YAHOO.namespace("tool");YAHOO.tool.TestReporter=function(A,B){this.url=A;this.format=B||YAHOO.tool.TestFormat.XML;this._fields=new Object();this._form=null;this._iframe=null;};YAHOO.tool.TestReporter.prototype={constructor:YAHOO.tool.TestReporter,_convertToISOString:function(A){function B(C){return C<10?"0"+C:C;}return A.getUTCFullYear()+"-"+B(A.getUTCMonth()+1)+"-"+B(A.getUTCDate())+"T"+B(A.getUTCHours())+":"+B(A.getUTCMinutes())+":"+B(A.getUTCSeconds())+"Z";},addField:function(A,B){this._fields[A]=B;},clearFields:function(){this._fields=new Object();},destroy:function(){if(this._form){this._form.parentNode.removeChild(this._form);this._form=null;}if(this._iframe){this._iframe.parentNode.removeChild(this._iframe);this._iframe=null;}this._fields=null;},report:function(A){if(!this._form){this._form=document.createElement("form");this._form.method="post";this._form.style.visibility="hidden";this._form.style.position="absolute";this._form.style.top=0;document.body.appendChild(this._form);if(YAHOO.env.ua.ie){this._iframe=document.createElement('<iframe name="yuiTestTarget" />');}else{this._iframe=document.createElement("iframe");this._iframe.name="yuiTestTarget";}this._iframe.src="javascript:false";this._iframe.style.visibility="hidden";this._iframe.style.position="absolute";this._iframe.style.top=0;document.body.appendChild(this._iframe);this._form.target="yuiTestTarget";}this._form.action=this.url;while(this._form.hasChildNodes()){this._form.removeChild(this._form.lastChild);}this._fields.results=this.format(A);this._fields.useragent=navigator.userAgent;this._fields.timestamp=this._convertToISOString(new Date());for(var B in this._fields){if(YAHOO.lang.hasOwnProperty(this._fields,B)&&typeof this._fields[B]!="function"){if(YAHOO.env.ua.ie){input=document.createElement('<input name="'+B+'" >');}else{input=document.createElement("input");input.name=B;}input.type="hidden";input.value=this._fields[B];this._form.appendChild(input);}}delete this._fields.results;delete this._fields.useragent;delete this._fields.timestamp;if(arguments[1]!==false){this._form.submit();}}};YAHOO.register("yuitest",YAHOO.tool.TestRunner,{version:"2.8.0r4",build:"2449"});
diff --git a/koha-tmpl/intranet-tmpl/prog/en/lib/yui/yuitest/yuitest.js b/koha-tmpl/intranet-tmpl/prog/en/lib/yui/yuitest/yuitest.js
deleted file mode 100644 (file)
index 8af658b..0000000
+++ /dev/null
@@ -1,2741 +0,0 @@
-/*
-Copyright (c) 2009, Yahoo! Inc. All rights reserved.
-Code licensed under the BSD License:
-http://developer.yahoo.net/yui/license.txt
-version: 2.8.0r4
-*/
-YAHOO.namespace("tool");
-
-//-----------------------------------------------------------------------------
-// TestCase object
-//-----------------------------------------------------------------------------
-(function(){
-    
-    //used for autogenerating test case names
-    var tempId = 0;
-    
-    /**
-     * Test case containing various tests to run.
-     * @param template An object containing any number of test methods, other methods,
-     *                 an optional name, and anything else the test case needs.
-     * @class TestCase
-     * @namespace YAHOO.tool
-     * @constructor
-     */
-    YAHOO.tool.TestCase = function (template /*:Object*/) {
-        
-        /**
-         * Special rules for the test case. Possible subobjects
-         * are fail, for tests that should fail, and error, for
-         * tests that should throw an error.
-         */
-        this._should /*:Object*/ = {};
-        
-        //copy over all properties from the template to this object
-        for (var prop in template) {
-            this[prop] = template[prop];
-        }    
-        
-        //check for a valid name
-        if (!YAHOO.lang.isString(this.name)){
-            /**
-             * Name for the test case.
-             */
-            this.name /*:String*/ = "testCase" + (tempId++);
-        }
-    
-    };
-    
-    
-    YAHOO.tool.TestCase.prototype = {  
-    
-        /**
-         * Resumes a paused test and runs the given function.
-         * @param {Function} segment (Optional) The function to run.
-         *      If omitted, the test automatically passes.
-         * @return {Void}
-         * @method resume
-         */
-        resume : function (segment /*:Function*/) /*:Void*/ {
-            YAHOO.tool.TestRunner.resume(segment);
-        },
-    
-        /**
-         * Causes the test case to wait a specified amount of time and then
-         * continue executing the given code.
-         * @param {Function} segment (Optional) The function to run after the delay.
-         *      If omitted, the TestRunner will wait until resume() is called.
-         * @param {int} delay (Optional) The number of milliseconds to wait before running
-         *      the function. If omitted, defaults to zero.
-         * @return {Void}
-         * @method wait
-         */
-        wait : function (segment /*:Function*/, delay /*:int*/) /*:Void*/{
-            var args = arguments;
-            if (YAHOO.lang.isFunction(args[0])){
-                throw new YAHOO.tool.TestCase.Wait(args[0], args[1]);
-            } else {
-                throw new YAHOO.tool.TestCase.Wait(function(){
-                    YAHOO.util.Assert.fail("Timeout: wait() called but resume() never called.");
-                }, (YAHOO.lang.isNumber(args[0]) ? args[0] : 10000));
-            }            
-        },
-    
-        //-------------------------------------------------------------------------
-        // Stub Methods
-        //-------------------------------------------------------------------------
-    
-        /**
-         * Function to run before each test is executed.
-         * @return {Void}
-         * @method setUp
-         */
-        setUp : function () /*:Void*/ {
-        },
-        
-        /**
-         * Function to run after each test is executed.
-         * @return {Void}
-         * @method tearDown
-         */
-        tearDown: function () /*:Void*/ {    
-        }
-    };
-    
-    /**
-     * Represents a stoppage in test execution to wait for an amount of time before
-     * continuing.
-     * @param {Function} segment A function to run when the wait is over.
-     * @param {int} delay The number of milliseconds to wait before running the code.
-     * @class Wait
-     * @namespace YAHOO.tool.TestCase
-     * @constructor
-     *
-     */
-    YAHOO.tool.TestCase.Wait = function (segment /*:Function*/, delay /*:int*/) {
-        
-        /**
-         * The segment of code to run when the wait is over.
-         * @type Function
-         * @property segment
-         */
-        this.segment /*:Function*/ = (YAHOO.lang.isFunction(segment) ? segment : null);
-    
-        /**
-         * The delay before running the segment of code.
-         * @type int
-         * @property delay
-         */
-        this.delay /*:int*/ = (YAHOO.lang.isNumber(delay) ? delay : 0);
-    
-    };
-
-})();
-YAHOO.namespace("tool");
-
-
-//-----------------------------------------------------------------------------
-// TestSuite object
-//-----------------------------------------------------------------------------
-
-/**
- * A test suite that can contain a collection of TestCase and TestSuite objects.
- * @param {String||Object} data The name of the test suite or an object containing
- *      a name property as well as setUp and tearDown methods.
- * @namespace YAHOO.tool
- * @class TestSuite
- * @constructor
- */
-YAHOO.tool.TestSuite = function (data /*:String||Object*/) {
-
-    /**
-     * The name of the test suite.
-     * @type String
-     * @property name
-     */
-    this.name /*:String*/ = "";
-
-    /**
-     * Array of test suites and
-     * @private
-     */
-    this.items /*:Array*/ = [];
-
-    //initialize the properties
-    if (YAHOO.lang.isString(data)){
-        this.name = data;
-    } else if (YAHOO.lang.isObject(data)){
-        YAHOO.lang.augmentObject(this, data, true);
-    }
-
-    //double-check name
-    if (this.name === ""){
-        this.name = YAHOO.util.Dom.generateId(null, "testSuite");
-    }
-
-};
-
-YAHOO.tool.TestSuite.prototype = {
-    
-    /**
-     * Adds a test suite or test case to the test suite.
-     * @param {YAHOO.tool.TestSuite||YAHOO.tool.TestCase} testObject The test suite or test case to add.
-     * @return {Void}
-     * @method add
-     */
-    add : function (testObject /*:YAHOO.tool.TestSuite*/) /*:Void*/ {
-        if (testObject instanceof YAHOO.tool.TestSuite || testObject instanceof YAHOO.tool.TestCase) {
-            this.items.push(testObject);
-        }
-    },
-    
-    //-------------------------------------------------------------------------
-    // Stub Methods
-    //-------------------------------------------------------------------------
-
-    /**
-     * Function to run before each test is executed.
-     * @return {Void}
-     * @method setUp
-     */
-    setUp : function () /*:Void*/ {
-    },
-    
-    /**
-     * Function to run after each test is executed.
-     * @return {Void}
-     * @method tearDown
-     */
-    tearDown: function () /*:Void*/ {
-    }
-    
-};
-YAHOO.namespace("tool");
-
-/**
- * The YUI test tool
- * @module yuitest
- * @namespace YAHOO.tool
- * @requires yahoo,dom,event,logger
- * @optional event-simulte
- */
-
-
-//-----------------------------------------------------------------------------
-// TestRunner object
-//-----------------------------------------------------------------------------
-
-
-YAHOO.tool.TestRunner = (function(){
-
-    /**
-     * A node in the test tree structure. May represent a TestSuite, TestCase, or
-     * test function.
-     * @param {Variant} testObject A TestSuite, TestCase, or the name of a test function.
-     * @class TestNode
-     * @constructor
-     * @private
-     */
-    function TestNode(testObject /*:Variant*/){
-    
-        /**
-         * The TestSuite, TestCase, or test function represented by this node.
-         * @type Variant
-         * @property testObject
-         */
-        this.testObject = testObject;
-        
-        /**
-         * Pointer to this node's first child.
-         * @type TestNode
-         * @property firstChild
-         */        
-        this.firstChild /*:TestNode*/ = null;
-        
-        /**
-         * Pointer to this node's last child.
-         * @type TestNode
-         * @property lastChild
-         */        
-        this.lastChild = null;
-        
-        /**
-         * Pointer to this node's parent.
-         * @type TestNode
-         * @property parent
-         */        
-        this.parent = null; 
-   
-        /**
-         * Pointer to this node's next sibling.
-         * @type TestNode
-         * @property next
-         */        
-        this.next = null;
-        
-        /**
-         * Test results for this test object.
-         * @type object
-         * @property results
-         */                
-        this.results /*:Object*/ = {
-            passed : 0,
-            failed : 0,
-            total : 0,
-            ignored : 0
-        };
-        
-        //initialize results
-        if (testObject instanceof YAHOO.tool.TestSuite){
-            this.results.type = "testsuite";
-            this.results.name = testObject.name;
-        } else if (testObject instanceof YAHOO.tool.TestCase){
-            this.results.type = "testcase";
-            this.results.name = testObject.name;
-        }
-       
-    }
-    
-    TestNode.prototype = {
-    
-        /**
-         * Appends a new test object (TestSuite, TestCase, or test function name) as a child
-         * of this node.
-         * @param {Variant} testObject A TestSuite, TestCase, or the name of a test function.
-         * @return {Void}
-         */
-        appendChild : function (testObject /*:Variant*/) /*:Void*/{
-            var node = new TestNode(testObject);
-            if (this.firstChild === null){
-                this.firstChild = this.lastChild = node;
-            } else {
-                this.lastChild.next = node;
-                this.lastChild = node;
-            }
-            node.parent = this;
-            return node;
-        }       
-    };
-
-    /**
-     * Runs test suites and test cases, providing events to allowing for the
-     * interpretation of test results.
-     * @namespace YAHOO.tool
-     * @class TestRunner
-     * @static
-     */
-    function TestRunner(){
-    
-        //inherit from EventProvider
-        TestRunner.superclass.constructor.apply(this,arguments);
-        
-        /**
-         * Suite on which to attach all TestSuites and TestCases to be run.
-         * @type YAHOO.tool.TestSuite
-         * @property masterSuite
-         * @private
-         * @static
-         */
-        this.masterSuite /*:YAHOO.tool.TestSuite*/ = new YAHOO.tool.TestSuite("YUI Test Results");        
-
-        /**
-         * Pointer to the current node in the test tree.
-         * @type TestNode
-         * @private
-         * @property _cur
-         * @static
-         */
-        this._cur = null;
-        
-        /**
-         * Pointer to the root node in the test tree.
-         * @type TestNode
-         * @private
-         * @property _root
-         * @static
-         */
-        this._root = null;
-        
-        //create events
-        var events /*:Array*/ = [
-            this.TEST_CASE_BEGIN_EVENT,
-            this.TEST_CASE_COMPLETE_EVENT,
-            this.TEST_SUITE_BEGIN_EVENT,
-            this.TEST_SUITE_COMPLETE_EVENT,
-            this.TEST_PASS_EVENT,
-            this.TEST_FAIL_EVENT,
-            this.TEST_IGNORE_EVENT,
-            this.COMPLETE_EVENT,
-            this.BEGIN_EVENT
-        ];
-        for (var i=0; i < events.length; i++){
-            this.createEvent(events[i], { scope: this });
-        }       
-   
-    }
-    
-    YAHOO.lang.extend(TestRunner, YAHOO.util.EventProvider, {
-    
-        //-------------------------------------------------------------------------
-        // Constants
-        //-------------------------------------------------------------------------
-         
-        /**
-         * Fires when a test case is opened but before the first 
-         * test is executed.
-         * @event testcasebegin
-         */         
-        TEST_CASE_BEGIN_EVENT /*:String*/ : "testcasebegin",
-        
-        /**
-         * Fires when all tests in a test case have been executed.
-         * @event testcasecomplete
-         */        
-        TEST_CASE_COMPLETE_EVENT /*:String*/ : "testcasecomplete",
-        
-        /**
-         * Fires when a test suite is opened but before the first 
-         * test is executed.
-         * @event testsuitebegin
-         */        
-        TEST_SUITE_BEGIN_EVENT /*:String*/ : "testsuitebegin",
-        
-        /**
-         * Fires when all test cases in a test suite have been
-         * completed.
-         * @event testsuitecomplete
-         */        
-        TEST_SUITE_COMPLETE_EVENT /*:String*/ : "testsuitecomplete",
-        
-        /**
-         * Fires when a test has passed.
-         * @event pass
-         */        
-        TEST_PASS_EVENT /*:String*/ : "pass",
-        
-        /**
-         * Fires when a test has failed.
-         * @event fail
-         */        
-        TEST_FAIL_EVENT /*:String*/ : "fail",
-        
-        /**
-         * Fires when a test has been ignored.
-         * @event ignore
-         */        
-        TEST_IGNORE_EVENT /*:String*/ : "ignore",
-        
-        /**
-         * Fires when all test suites and test cases have been completed.
-         * @event complete
-         */        
-        COMPLETE_EVENT /*:String*/ : "complete",
-        
-        /**
-         * Fires when the run() method is called.
-         * @event begin
-         */        
-        BEGIN_EVENT /*:String*/ : "begin",    
-        
-        //-------------------------------------------------------------------------
-        // Test Tree-Related Methods
-        //-------------------------------------------------------------------------
-
-        /**
-         * Adds a test case to the test tree as a child of the specified node.
-         * @param {TestNode} parentNode The node to add the test case to as a child.
-         * @param {YAHOO.tool.TestCase} testCase The test case to add.
-         * @return {Void}
-         * @static
-         * @private
-         * @method _addTestCaseToTestTree
-         */
-       _addTestCaseToTestTree : function (parentNode /*:TestNode*/, testCase /*:YAHOO.tool.TestCase*/) /*:Void*/{
-            
-            //add the test suite
-            var node = parentNode.appendChild(testCase);
-            
-            //iterate over the items in the test case
-            for (var prop in testCase){
-                if (prop.indexOf("test") === 0 && YAHOO.lang.isFunction(testCase[prop])){
-                    node.appendChild(prop);
-                }
-            }
-         
-        },
-        
-        /**
-         * Adds a test suite to the test tree as a child of the specified node.
-         * @param {TestNode} parentNode The node to add the test suite to as a child.
-         * @param {YAHOO.tool.TestSuite} testSuite The test suite to add.
-         * @return {Void}
-         * @static
-         * @private
-         * @method _addTestSuiteToTestTree
-         */
-        _addTestSuiteToTestTree : function (parentNode /*:TestNode*/, testSuite /*:YAHOO.tool.TestSuite*/) /*:Void*/ {
-            
-            //add the test suite
-            var node = parentNode.appendChild(testSuite);
-            
-            //iterate over the items in the master suite
-            for (var i=0; i < testSuite.items.length; i++){
-                if (testSuite.items[i] instanceof YAHOO.tool.TestSuite) {
-                    this._addTestSuiteToTestTree(node, testSuite.items[i]);
-                } else if (testSuite.items[i] instanceof YAHOO.tool.TestCase) {
-                    this._addTestCaseToTestTree(node, testSuite.items[i]);
-                }                   
-            }            
-        },
-        
-        /**
-         * Builds the test tree based on items in the master suite. The tree is a hierarchical
-         * representation of the test suites, test cases, and test functions. The resulting tree
-         * is stored in _root and the pointer _cur is set to the root initially.
-         * @return {Void}
-         * @static
-         * @private
-         * @method _buildTestTree
-         */
-        _buildTestTree : function () /*:Void*/ {
-        
-            this._root = new TestNode(this.masterSuite);
-            this._cur = this._root;
-            
-            //iterate over the items in the master suite
-            for (var i=0; i < this.masterSuite.items.length; i++){
-                if (this.masterSuite.items[i] instanceof YAHOO.tool.TestSuite) {
-                    this._addTestSuiteToTestTree(this._root, this.masterSuite.items[i]);
-                } else if (this.masterSuite.items[i] instanceof YAHOO.tool.TestCase) {
-                    this._addTestCaseToTestTree(this._root, this.masterSuite.items[i]);
-                }                   
-            }            
-        
-        }, 
-    
-        //-------------------------------------------------------------------------
-        // Private Methods
-        //-------------------------------------------------------------------------
-        
-        /**
-         * Handles the completion of a test object's tests. Tallies test results 
-         * from one level up to the next.
-         * @param {TestNode} node The TestNode representing the test object.
-         * @return {Void}
-         * @method _handleTestObjectComplete
-         * @private
-         * @static
-         */
-        _handleTestObjectComplete : function (node /*:TestNode*/) /*:Void*/ {
-            if (YAHOO.lang.isObject(node.testObject)){
-                node.parent.results.passed += node.results.passed;
-                node.parent.results.failed += node.results.failed;
-                node.parent.results.total += node.results.total;                
-                node.parent.results.ignored += node.results.ignored;                
-                node.parent.results[node.testObject.name] = node.results;
-            
-                if (node.testObject instanceof YAHOO.tool.TestSuite){
-                    node.testObject.tearDown();
-                    this.fireEvent(this.TEST_SUITE_COMPLETE_EVENT, { testSuite: node.testObject, results: node.results});
-                } else if (node.testObject instanceof YAHOO.tool.TestCase){
-                    this.fireEvent(this.TEST_CASE_COMPLETE_EVENT, { testCase: node.testObject, results: node.results});
-                }      
-            } 
-        },                
-        
-        //-------------------------------------------------------------------------
-        // Navigation Methods
-        //-------------------------------------------------------------------------
-        
-        /**
-         * Retrieves the next node in the test tree.
-         * @return {TestNode} The next node in the test tree or null if the end is reached.
-         * @private
-         * @static
-         * @method _next
-         */
-        _next : function () /*:TestNode*/ {
-        
-            if (this._cur.firstChild) {
-                this._cur = this._cur.firstChild;
-            } else if (this._cur.next) {
-                this._cur = this._cur.next;            
-            } else {
-                while (this._cur && !this._cur.next && this._cur !== this._root){
-                    this._handleTestObjectComplete(this._cur);
-                    this._cur = this._cur.parent;
-                }
-                
-                if (this._cur == this._root){
-                    this._cur.results.type = "report";
-                    this._cur.results.timestamp = (new Date()).toLocaleString();
-                    this._cur.results.duration = (new Date()) - this._cur.results.duration;
-                    this.fireEvent(this.COMPLETE_EVENT, { results: this._cur.results});
-                    this._cur = null;
-                } else {
-                    this._handleTestObjectComplete(this._cur);               
-                    this._cur = this._cur.next;                
-                }
-            }
-        
-            return this._cur;
-        },
-        
-        /**
-         * Runs a test case or test suite, returning the results.
-         * @param {YAHOO.tool.TestCase|YAHOO.tool.TestSuite} testObject The test case or test suite to run.
-         * @return {Object} Results of the execution with properties passed, failed, and total.
-         * @private
-         * @method _run
-         * @static
-         */
-        _run : function () /*:Void*/ {
-        
-            //flag to indicate if the TestRunner should wait before continuing
-            var shouldWait /*:Boolean*/ = false;
-            
-            //get the next test node
-            var node = this._next();
-            
-            if (node !== null) {
-                var testObject = node.testObject;
-                
-                //figure out what to do
-                if (YAHOO.lang.isObject(testObject)){
-                    if (testObject instanceof YAHOO.tool.TestSuite){
-                        this.fireEvent(this.TEST_SUITE_BEGIN_EVENT, { testSuite: testObject });
-                        testObject.setUp();
-                    } else if (testObject instanceof YAHOO.tool.TestCase){
-                        this.fireEvent(this.TEST_CASE_BEGIN_EVENT, { testCase: testObject });
-                    }
-                    
-                    //some environments don't support setTimeout
-                    if (typeof setTimeout != "undefined"){                    
-                        setTimeout(function(){
-                            YAHOO.tool.TestRunner._run();
-                        }, 0);
-                    } else {
-                        this._run();
-                    }
-                } else {
-                    this._runTest(node);
-                }
-
-            }
-        },
-        
-        _resumeTest : function (segment /*:Function*/) /*:Void*/ {
-        
-            //get relevant information
-            var node /*:TestNode*/ = this._cur;
-            var testName /*:String*/ = node.testObject;
-            var testCase /*:YAHOO.tool.TestCase*/ = node.parent.testObject;
-            
-            //cancel other waits if available
-            if (testCase.__yui_wait){
-                clearTimeout(testCase.__yui_wait);
-                delete testCase.__yui_wait;
-            }            
-            
-            //get the "should" test cases
-            var shouldFail /*:Object*/ = (testCase._should.fail || {})[testName];
-            var shouldError /*:Object*/ = (testCase._should.error || {})[testName];
-            
-            //variable to hold whether or not the test failed
-            var failed /*:Boolean*/ = false;
-            var error /*:Error*/ = null;
-                
-            //try the test
-            try {
-            
-                //run the test
-                segment.apply(testCase);
-                
-                //if it should fail, and it got here, then it's a fail because it didn't
-                if (shouldFail){
-                    error = new YAHOO.util.ShouldFail();
-                    failed = true;
-                } else if (shouldError){
-                    error = new YAHOO.util.ShouldError();
-                    failed = true;
-                }
-                           
-            } catch (thrown /*:Error*/){
-                if (thrown instanceof YAHOO.util.AssertionError) {
-                    if (!shouldFail){
-                        error = thrown;
-                        failed = true;
-                    }
-                } else if (thrown instanceof YAHOO.tool.TestCase.Wait){
-                
-                    if (YAHOO.lang.isFunction(thrown.segment)){
-                        if (YAHOO.lang.isNumber(thrown.delay)){
-                        
-                            //some environments don't support setTimeout
-                            if (typeof setTimeout != "undefined"){
-                                testCase.__yui_wait = setTimeout(function(){
-                                    YAHOO.tool.TestRunner._resumeTest(thrown.segment);
-                                }, thrown.delay);                             
-                            } else {
-                                throw new Error("Asynchronous tests not supported in this environment.");
-                            }
-                        }
-                    }
-                    
-                    return;
-                
-                } else {
-                    //first check to see if it should error
-                    if (!shouldError) {                        
-                        error = new YAHOO.util.UnexpectedError(thrown);
-                        failed = true;
-                    } else {
-                        //check to see what type of data we have
-                        if (YAHOO.lang.isString(shouldError)){
-                            
-                            //if it's a string, check the error message
-                            if (thrown.message != shouldError){
-                                error = new YAHOO.util.UnexpectedError(thrown);
-                                failed = true;                                    
-                            }
-                        } else if (YAHOO.lang.isFunction(shouldError)){
-                        
-                            //if it's a function, see if the error is an instance of it
-                            if (!(thrown instanceof shouldError)){
-                                error = new YAHOO.util.UnexpectedError(thrown);
-                                failed = true;
-                            }
-                        
-                        } else if (YAHOO.lang.isObject(shouldError)){
-                        
-                            //if it's an object, check the instance and message
-                            if (!(thrown instanceof shouldError.constructor) || 
-                                    thrown.message != shouldError.message){
-                                error = new YAHOO.util.UnexpectedError(thrown);
-                                failed = true;                                    
-                            }
-                        
-                        }
-                    
-                    }
-                }
-                
-            }
-            
-            //fireEvent appropriate event
-            if (failed) {
-                this.fireEvent(this.TEST_FAIL_EVENT, { testCase: testCase, testName: testName, error: error });
-            } else {
-                this.fireEvent(this.TEST_PASS_EVENT, { testCase: testCase, testName: testName });
-            }
-            
-            //run the tear down
-            testCase.tearDown();
-            
-            //update results
-            node.parent.results[testName] = { 
-                result: failed ? "fail" : "pass",
-                message: error ? error.getMessage() : "Test passed",
-                type: "test",
-                name: testName
-            };
-            
-            if (failed){
-                node.parent.results.failed++;
-            } else {
-                node.parent.results.passed++;
-            }
-            node.parent.results.total++;
-
-            //set timeout not supported in all environments
-            if (typeof setTimeout != "undefined"){
-                setTimeout(function(){
-                    YAHOO.tool.TestRunner._run();
-                }, 0);
-            } else {
-                this._run();
-            }
-        
-        },
-                
-        /**
-         * Runs a single test based on the data provided in the node.
-         * @param {TestNode} node The TestNode representing the test to run.
-         * @return {Void}
-         * @static
-         * @private
-         * @name _runTest
-         */
-        _runTest : function (node /*:TestNode*/) /*:Void*/ {
-        
-            //get relevant information
-            var testName /*:String*/ = node.testObject;
-            var testCase /*:YAHOO.tool.TestCase*/ = node.parent.testObject;
-            var test /*:Function*/ = testCase[testName];
-            
-            //get the "should" test cases
-            var shouldIgnore /*:Object*/ = (testCase._should.ignore || {})[testName];
-            
-            //figure out if the test should be ignored or not
-            if (shouldIgnore){
-            
-                //update results
-                node.parent.results[testName] = { 
-                    result: "ignore",
-                    message: "Test ignored",
-                    type: "test",
-                    name: testName
-                };
-                
-                node.parent.results.ignored++;
-                node.parent.results.total++;
-            
-                this.fireEvent(this.TEST_IGNORE_EVENT, { testCase: testCase, testName: testName });
-                
-                //some environments don't support setTimeout
-                if (typeof setTimeout != "undefined"){                    
-                    setTimeout(function(){
-                        YAHOO.tool.TestRunner._run();
-                    }, 0);              
-                } else {
-                    this._run();
-                }
-
-            } else {
-            
-                //run the setup
-                testCase.setUp();
-                
-                //now call the body of the test
-                this._resumeTest(test);                
-            }
-
-        },        
-        
-        //-------------------------------------------------------------------------
-        // Protected Methods
-        //-------------------------------------------------------------------------   
-    
-        /**
-         * Fires events for the TestRunner. This overrides the default fireEvent()
-         * method from EventProvider to add the type property to the data that is
-         * passed through on each event call.
-         * @param {String} type The type of event to fire.
-         * @param {Object} data (Optional) Data for the event.
-         * @method fireEvent
-         * @static
-         * @protected
-         */
-        fireEvent : function (type /*:String*/, data /*:Object*/) /*:Void*/ {
-            data = data || {};
-            data.type = type;
-            TestRunner.superclass.fireEvent.call(this, type, data);
-        },
-        
-        //-------------------------------------------------------------------------
-        // Public Methods
-        //-------------------------------------------------------------------------   
-    
-        /**
-         * Adds a test suite or test case to the list of test objects to run.
-         * @param testObject Either a TestCase or a TestSuite that should be run.
-         * @return {Void}
-         * @method add
-         * @static
-         */
-        add : function (testObject /*:Object*/) /*:Void*/ {
-            this.masterSuite.add(testObject);
-        },
-        
-        /**
-         * Removes all test objects from the runner.
-         * @return {Void}
-         * @method clear
-         * @static
-         */
-        clear : function () /*:Void*/ {
-            this.masterSuite.items = [];
-        },
-        
-        /**
-         * Resumes the TestRunner after wait() was called.
-         * @param {Function} segment The function to run as the rest
-         *      of the haulted test.
-         * @return {Void}
-         * @method resume
-         * @static
-         */
-        resume : function (segment /*:Function*/) /*:Void*/ {
-            this._resumeTest(segment || function(){});
-        },
-    
-        /**
-         * Runs the test suite.
-         * @return {Void}
-         * @method run
-         * @static
-         */
-        run : function (testObject /*:Object*/) /*:Void*/ {
-            
-            //pointer to runner to avoid scope issues 
-            var runner = YAHOO.tool.TestRunner;
-
-            //build the test tree
-            runner._buildTestTree();
-            
-            //set when the test started
-            runner._root.results.duration = (new Date()).getTime();
-            
-            //fire the begin event
-            runner.fireEvent(runner.BEGIN_EVENT);
-       
-            //begin the testing
-            runner._run();
-        }    
-    });
-    
-    return new TestRunner();
-    
-})();
-YAHOO.namespace("util");
-
-//-----------------------------------------------------------------------------
-// Assert object
-//-----------------------------------------------------------------------------
-
-/**
- * The Assert object provides functions to test JavaScript values against
- * known and expected results. Whenever a comparison (assertion) fails,
- * an error is thrown.
- *
- * @namespace YAHOO.util
- * @class Assert
- * @static
- */
-YAHOO.util.Assert = {
-
-    //-------------------------------------------------------------------------
-    // Helper Methods
-    //-------------------------------------------------------------------------
-    
-    /**
-     * Formats a message so that it can contain the original assertion message
-     * in addition to the custom message.
-     * @param {String} customMessage The message passed in by the developer.
-     * @param {String} defaultMessage The message created by the error by default.
-     * @return {String} The final error message, containing either or both.
-     * @protected
-     * @static
-     * @method _formatMessage
-     */
-    _formatMessage : function (customMessage /*:String*/, defaultMessage /*:String*/) /*:String*/ {
-        var message = customMessage;
-        if (YAHOO.lang.isString(customMessage) && customMessage.length > 0){
-            return YAHOO.lang.substitute(customMessage, { message: defaultMessage });
-        } else {
-            return defaultMessage;
-        }        
-    },
-    
-    //-------------------------------------------------------------------------
-    // Generic Assertion Methods
-    //-------------------------------------------------------------------------
-    
-    /** 
-     * Forces an assertion error to occur.
-     * @param {String} message (Optional) The message to display with the failure.
-     * @method fail
-     * @static
-     */
-    fail : function (message /*:String*/) /*:Void*/ {
-        throw new YAHOO.util.AssertionError(this._formatMessage(message, "Test force-failed."));
-    },       
-    
-    //-------------------------------------------------------------------------
-    // Equality Assertion Methods
-    //-------------------------------------------------------------------------    
-    
-    /**
-     * Asserts that a value is equal to another. This uses the double equals sign
-     * so type cohersion may occur.
-     * @param {Object} expected The expected value.
-     * @param {Object} actual The actual value to test.
-     * @param {String} message (Optional) The message to display if the assertion fails.
-     * @method areEqual
-     * @static
-     */
-    areEqual : function (expected /*:Object*/, actual /*:Object*/, message /*:String*/) /*:Void*/ {
-        if (expected != actual) {
-            throw new YAHOO.util.ComparisonFailure(this._formatMessage(message, "Values should be equal."), expected, actual);
-        }
-    },
-    
-    /**
-     * Asserts that a value is not equal to another. This uses the double equals sign
-     * so type cohersion may occur.
-     * @param {Object} unexpected The unexpected value.
-     * @param {Object} actual The actual value to test.
-     * @param {String} message (Optional) The message to display if the assertion fails.
-     * @method areNotEqual
-     * @static
-     */
-    areNotEqual : function (unexpected /*:Object*/, actual /*:Object*/, 
-                         message /*:String*/) /*:Void*/ {
-        if (unexpected == actual) {
-            throw new YAHOO.util.UnexpectedValue(this._formatMessage(message, "Values should not be equal."), unexpected);
-        }
-    },
-    
-    /**
-     * Asserts that a value is not the same as another. This uses the triple equals sign
-     * so no type cohersion may occur.
-     * @param {Object} unexpected The unexpected value.
-     * @param {Object} actual The actual value to test.
-     * @param {String} message (Optional) The message to display if the assertion fails.
-     * @method areNotSame
-     * @static
-     */
-    areNotSame : function (unexpected /*:Object*/, actual /*:Object*/, message /*:String*/) /*:Void*/ {
-        if (unexpected === actual) {
-            throw new YAHOO.util.UnexpectedValue(this._formatMessage(message, "Values should not be the same."), unexpected);
-        }
-    },
-
-    /**
-     * Asserts that a value is the same as another. This uses the triple equals sign
-     * so no type cohersion may occur.
-     * @param {Object} expected The expected value.
-     * @param {Object} actual The actual value to test.
-     * @param {String} message (Optional) The message to display if the assertion fails.
-     * @method areSame
-     * @static
-     */
-    areSame : function (expected /*:Object*/, actual /*:Object*/, message /*:String*/) /*:Void*/ {
-        if (expected !== actual) {
-            throw new YAHOO.util.ComparisonFailure(this._formatMessage(message, "Values should be the same."), expected, actual);
-        }
-    },    
-    
-    //-------------------------------------------------------------------------
-    // Boolean Assertion Methods
-    //-------------------------------------------------------------------------    
-    
-    /**
-     * Asserts that a value is false. This uses the triple equals sign
-     * so no type cohersion may occur.
-     * @param {Object} actual The actual value to test.
-     * @param {String} message (Optional) The message to display if the assertion fails.
-     * @method isFalse
-     * @static
-     */
-    isFalse : function (actual /*:Boolean*/, message /*:String*/) {
-        if (false !== actual) {
-            throw new YAHOO.util.ComparisonFailure(this._formatMessage(message, "Value should be false."), false, actual);
-        }
-    },
-    
-    /**
-     * Asserts that a value is true. This uses the triple equals sign
-     * so no type cohersion may occur.
-     * @param {Object} actual The actual value to test.
-     * @param {String} message (Optional) The message to display if the assertion fails.
-     * @method isTrue
-     * @static
-     */
-    isTrue : function (actual /*:Boolean*/, message /*:String*/) /*:Void*/ {
-        if (true !== actual) {
-            throw new YAHOO.util.ComparisonFailure(this._formatMessage(message, "Value should be true."), true, actual);
-        }
-
-    },
-    
-    //-------------------------------------------------------------------------
-    // Special Value Assertion Methods
-    //-------------------------------------------------------------------------    
-    
-    /**
-     * Asserts that a value is not a number.
-     * @param {Object} actual The value to test.
-     * @param {String} message (Optional) The message to display if the assertion fails.
-     * @method isNaN
-     * @static
-     */
-    isNaN : function (actual /*:Object*/, message /*:String*/) /*:Void*/{
-        if (!isNaN(actual)){
-            throw new YAHOO.util.ComparisonFailure(this._formatMessage(message, "Value should be NaN."), NaN, actual);
-        }    
-    },
-    
-    /**
-     * Asserts that a value is not the special NaN value.
-     * @param {Object} actual The value to test.
-     * @param {String} message (Optional) The message to display if the assertion fails.
-     * @method isNotNaN
-     * @static
-     */
-    isNotNaN : function (actual /*:Object*/, message /*:String*/) /*:Void*/{
-        if (isNaN(actual)){
-            throw new YAHOO.util.UnexpectedValue(this._formatMessage(message, "Values should not be NaN."), NaN);
-        }    
-    },
-    
-    /**
-     * Asserts that a value is not null. This uses the triple equals sign
-     * so no type cohersion may occur.
-     * @param {Object} actual The actual value to test.
-     * @param {String} message (Optional) The message to display if the assertion fails.
-     * @method isNotNull
-     * @static
-     */
-    isNotNull : function (actual /*:Object*/, message /*:String*/) /*:Void*/ {
-        if (YAHOO.lang.isNull(actual)) {
-            throw new YAHOO.util.UnexpectedValue(this._formatMessage(message, "Values should not be null."), null);
-        }
-    },
-
-    /**
-     * Asserts that a value is not undefined. This uses the triple equals sign
-     * so no type cohersion may occur.
-     * @param {Object} actual The actual value to test.
-     * @param {String} message (Optional) The message to display if the assertion fails.
-     * @method isNotUndefined
-     * @static
-     */
-    isNotUndefined : function (actual /*:Object*/, message /*:String*/) /*:Void*/ {
-        if (YAHOO.lang.isUndefined(actual)) {
-            throw new YAHOO.util.UnexpectedValue(this._formatMessage(message, "Value should not be undefined."), undefined);
-        }
-    },
-
-    /**
-     * Asserts that a value is null. This uses the triple equals sign
-     * so no type cohersion may occur.
-     * @param {Object} actual The actual value to test.
-     * @param {String} message (Optional) The message to display if the assertion fails.
-     * @method isNull
-     * @static
-     */
-    isNull : function (actual /*:Object*/, message /*:String*/) /*:Void*/ {
-        if (!YAHOO.lang.isNull(actual)) {
-            throw new YAHOO.util.ComparisonFailure(this._formatMessage(message, "Value should be null."), null, actual);
-        }
-    },
-        
-    /**
-     * Asserts that a value is undefined. This uses the triple equals sign
-     * so no type cohersion may occur.
-     * @param {Object} actual The actual value to test.
-     * @param {String} message (Optional) The message to display if the assertion fails.
-     * @method isUndefined
-     * @static
-     */
-    isUndefined : function (actual /*:Object*/, message /*:String*/) /*:Void*/ {
-        if (!YAHOO.lang.isUndefined(actual)) {
-            throw new YAHOO.util.ComparisonFailure(this._formatMessage(message, "Value should be undefined."), undefined, actual);
-        }
-    },    
-    
-    //--------------------------------------------------------------------------
-    // Instance Assertion Methods
-    //--------------------------------------------------------------------------    
-   
-    /**
-     * Asserts that a value is an array.
-     * @param {Object} actual The value to test.
-     * @param {String} message (Optional) The message to display if the assertion fails.
-     * @method isArray
-     * @static
-     */
-    isArray : function (actual /*:Object*/, message /*:String*/) /*:Void*/ {
-        if (!YAHOO.lang.isArray(actual)){
-            throw new YAHOO.util.UnexpectedValue(this._formatMessage(message, "Value should be an array."), actual);
-        }    
-    },
-   
-    /**
-     * Asserts that a value is a Boolean.
-     * @param {Object} actual The value to test.
-     * @param {String} message (Optional) The message to display if the assertion fails.
-     * @method isBoolean
-     * @static
-     */
-    isBoolean : function (actual /*:Object*/, message /*:String*/) /*:Void*/ {
-        if (!YAHOO.lang.isBoolean(actual)){
-            throw new YAHOO.util.UnexpectedValue(this._formatMessage(message, "Value should be a Boolean."), actual);
-        }    
-    },
-   
-    /**
-     * Asserts that a value is a function.
-     * @param {Object} actual The value to test.
-     * @param {String} message (Optional) The message to display if the assertion fails.
-     * @method isFunction
-     * @static
-     */
-    isFunction : function (actual /*:Object*/, message /*:String*/) /*:Void*/ {
-        if (!YAHOO.lang.isFunction(actual)){
-            throw new YAHOO.util.UnexpectedValue(this._formatMessage(message, "Value should be a function."), actual);
-        }    
-    },
-   
-    /**
-     * Asserts that a value is an instance of a particular object. This may return
-     * incorrect results when comparing objects from one frame to constructors in
-     * another frame. For best results, don't use in a cross-frame manner.
-     * @param {Function} expected The function that the object should be an instance of.
-     * @param {Object} actual The object to test.
-     * @param {String} message (Optional) The message to display if the assertion fails.
-     * @method isInstanceOf
-     * @static
-     */
-    isInstanceOf : function (expected /*:Function*/, actual /*:Object*/, message /*:String*/) /*:Void*/ {
-        if (!(actual instanceof expected)){
-            throw new YAHOO.util.ComparisonFailure(this._formatMessage(message, "Value isn't an instance of expected type."), expected, actual);
-        }
-    },
-    
-    /**
-     * Asserts that a value is a number.
-     * @param {Object} actual The value to test.
-     * @param {String} message (Optional) The message to display if the assertion fails.
-     * @method isNumber
-     * @static
-     */
-    isNumber : function (actual /*:Object*/, message /*:String*/) /*:Void*/ {
-        if (!YAHOO.lang.isNumber(actual)){
-            throw new YAHOO.util.UnexpectedValue(this._formatMessage(message, "Value should be a number."), actual);
-        }    
-    },    
-    
-    /**
-     * Asserts that a value is an object.
-     * @param {Object} actual The value to test.
-     * @param {String} message (Optional) The message to display if the assertion fails.
-     * @method isObject
-     * @static
-     */
-    isObject : function (actual /*:Object*/, message /*:String*/) /*:Void*/ {
-        if (!YAHOO.lang.isObject(actual)){
-            throw new YAHOO.util.UnexpectedValue(this._formatMessage(message, "Value should be an object."), actual);
-        }
-    },
-    
-    /**
-     * Asserts that a value is a string.
-     * @param {Object} actual The value to test.
-     * @param {String} message (Optional) The message to display if the assertion fails.
-     * @method isString
-     * @static
-     */
-    isString : function (actual /*:Object*/, message /*:String*/) /*:Void*/ {
-        if (!YAHOO.lang.isString(actual)){
-            throw new YAHOO.util.UnexpectedValue(this._formatMessage(message, "Value should be a string."), actual);
-        }
-    },
-    
-    /**
-     * Asserts that a value is of a particular type. 
-     * @param {String} expectedType The expected type of the variable.
-     * @param {Object} actualValue The actual value to test.
-     * @param {String} message (Optional) The message to display if the assertion fails.
-     * @method isTypeOf
-     * @static
-     */
-    isTypeOf : function (expected /*:String*/, actual /*:Object*/, message /*:String*/) /*:Void*/{
-        if (typeof actual != expected){
-            throw new YAHOO.util.ComparisonFailure(this._formatMessage(message, "Value should be of type " + expected + "."), expected, typeof actual);
-        }
-    }
-};
-
-//-----------------------------------------------------------------------------
-// Assertion errors
-//-----------------------------------------------------------------------------
-
-/**
- * AssertionError is thrown whenever an assertion fails. It provides methods
- * to more easily get at error information and also provides a base class
- * from which more specific assertion errors can be derived.
- *
- * @param {String} message The message to display when the error occurs.
- * @namespace YAHOO.util
- * @class AssertionError
- * @extends Error
- * @constructor
- */ 
-YAHOO.util.AssertionError = function (message /*:String*/){
-
-    //call superclass
-    //arguments.callee.superclass.constructor.call(this, message);
-    
-    /*
-     * Error message. Must be duplicated to ensure browser receives it.
-     * @type String
-     * @property message
-     */
-    this.message /*:String*/ = message;
-    
-    /**
-     * The name of the error that occurred.
-     * @type String
-     * @property name
-     */
-    this.name /*:String*/ = "AssertionError";
-};
-
-//inherit methods
-YAHOO.lang.extend(YAHOO.util.AssertionError, Object, {
-
-    /**
-     * Returns a fully formatted error for an assertion failure. This should
-     * be overridden by all subclasses to provide specific information.
-     * @method getMessage
-     * @return {String} A string describing the error.
-     */
-    getMessage : function () /*:String*/ {
-        return this.message;
-    },
-    
-    /**
-     * Returns a string representation of the error.
-     * @method toString
-     * @return {String} A string representation of the error.
-     */
-    toString : function () /*:String*/ {
-        return this.name + ": " + this.getMessage();
-    }
-    
-});
-
-/**
- * ComparisonFailure is subclass of AssertionError that is thrown whenever
- * a comparison between two values fails. It provides mechanisms to retrieve
- * both the expected and actual value.
- *
- * @param {String} message The message to display when the error occurs.
- * @param {Object} expected The expected value.
- * @param {Object} actual The actual value that caused the assertion to fail.
- * @namespace YAHOO.util
- * @extends YAHOO.util.AssertionError
- * @class ComparisonFailure
- * @constructor
- */ 
-YAHOO.util.ComparisonFailure = function (message /*:String*/, expected /*:Object*/, actual /*:Object*/){
-
-    //call superclass
-    YAHOO.util.AssertionError.call(this, message);
-    
-    /**
-     * The expected value.
-     * @type Object
-     * @property expected
-     */
-    this.expected /*:Object*/ = expected;
-    
-    /**
-     * The actual value.
-     * @type Object
-     * @property actual
-     */
-    this.actual /*:Object*/ = actual;
-    
-    /**
-     * The name of the error that occurred.
-     * @type String
-     * @property name
-     */
-    this.name /*:String*/ = "ComparisonFailure";
-    
-};
-
-//inherit methods
-YAHOO.lang.extend(YAHOO.util.ComparisonFailure, YAHOO.util.AssertionError, {
-
-    /**
-     * Returns a fully formatted error for an assertion failure. This message
-     * provides information about the expected and actual values.
-     * @method toString
-     * @return {String} A string describing the error.
-     */
-    getMessage : function () /*:String*/ {
-        return this.message + "\nExpected: " + this.expected + " (" + (typeof this.expected) + ")"  +
-            "\nActual:" + this.actual + " (" + (typeof this.actual) + ")";
-    }
-
-});
-
-/**
- * UnexpectedValue is subclass of AssertionError that is thrown whenever
- * a value was unexpected in its scope. This typically means that a test
- * was performed to determine that a value was *not* equal to a certain
- * value.
- *
- * @param {String} message The message to display when the error occurs.
- * @param {Object} unexpected The unexpected value.
- * @namespace YAHOO.util
- * @extends YAHOO.util.AssertionError
- * @class UnexpectedValue
- * @constructor
- */ 
-YAHOO.util.UnexpectedValue = function (message /*:String*/, unexpected /*:Object*/){
-
-    //call superclass
-    YAHOO.util.AssertionError.call(this, message);
-    
-    /**
-     * The unexpected value.
-     * @type Object
-     * @property unexpected
-     */
-    this.unexpected /*:Object*/ = unexpected;
-    
-    /**
-     * The name of the error that occurred.
-     * @type String
-     * @property name
-     */
-    this.name /*:String*/ = "UnexpectedValue";
-    
-};
-
-//inherit methods
-YAHOO.lang.extend(YAHOO.util.UnexpectedValue, YAHOO.util.AssertionError, {
-
-    /**
-     * Returns a fully formatted error for an assertion failure. The message
-     * contains information about the unexpected value that was encountered.
-     * @method getMessage
-     * @return {String} A string describing the error.
-     */
-    getMessage : function () /*:String*/ {
-        return this.message + "\nUnexpected: " + this.unexpected + " (" + (typeof this.unexpected) + ") ";
-    }
-
-});
-
-/**
- * ShouldFail is subclass of AssertionError that is thrown whenever
- * a test was expected to fail but did not.
- *
- * @param {String} message The message to display when the error occurs.
- * @namespace YAHOO.util
- * @extends YAHOO.util.AssertionError
- * @class ShouldFail
- * @constructor
- */  
-YAHOO.util.ShouldFail = function (message /*:String*/){
-
-    //call superclass
-    YAHOO.util.AssertionError.call(this, message || "This test should fail but didn't.");
-    
-    /**
-     * The name of the error that occurred.
-     * @type String
-     * @property name
-     */
-    this.name /*:String*/ = "ShouldFail";
-    
-};
-
-//inherit methods
-YAHOO.lang.extend(YAHOO.util.ShouldFail, YAHOO.util.AssertionError);
-
-/**
- * ShouldError is subclass of AssertionError that is thrown whenever
- * a test is expected to throw an error but doesn't.
- *
- * @param {String} message The message to display when the error occurs.
- * @namespace YAHOO.util
- * @extends YAHOO.util.AssertionError
- * @class ShouldError
- * @constructor
- */  
-YAHOO.util.ShouldError = function (message /*:String*/){
-
-    //call superclass
-    YAHOO.util.AssertionError.call(this, message || "This test should have thrown an error but didn't.");
-    
-    /**
-     * The name of the error that occurred.
-     * @type String
-     * @property name
-     */
-    this.name /*:String*/ = "ShouldError";
-    
-};
-
-//inherit methods
-YAHOO.lang.extend(YAHOO.util.ShouldError, YAHOO.util.AssertionError);
-
-/**
- * UnexpectedError is subclass of AssertionError that is thrown whenever
- * an error occurs within the course of a test and the test was not expected
- * to throw an error.
- *
- * @param {Error} cause The unexpected error that caused this error to be 
- *                      thrown.
- * @namespace YAHOO.util
- * @extends YAHOO.util.AssertionError
- * @class UnexpectedError
- * @constructor
- */  
-YAHOO.util.UnexpectedError = function (cause /*:Object*/){
-
-    //call superclass
-    YAHOO.util.AssertionError.call(this, "Unexpected error: " + cause.message);
-    
-    /**
-     * The unexpected error that occurred.
-     * @type Error
-     * @property cause
-     */
-    this.cause /*:Error*/ = cause;
-    
-    /**
-     * The name of the error that occurred.
-     * @type String
-     * @property name
-     */
-    this.name /*:String*/ = "UnexpectedError";
-    
-    /**
-     * Stack information for the error (if provided).
-     * @type String
-     * @property stack
-     */
-    this.stack /*:String*/ = cause.stack;
-    
-};
-
-//inherit methods
-YAHOO.lang.extend(YAHOO.util.UnexpectedError, YAHOO.util.AssertionError);
-//-----------------------------------------------------------------------------
-// ArrayAssert object
-//-----------------------------------------------------------------------------
-
-/**
- * The ArrayAssert object provides functions to test JavaScript array objects
- * for a variety of cases.
- *
- * @namespace YAHOO.util
- * @class ArrayAssert
- * @static
- */
-YAHOO.util.ArrayAssert = {
-
-    /**
-     * Asserts that a value is present in an array. This uses the triple equals 
-     * sign so no type cohersion may occur.
-     * @param {Object} needle The value that is expected in the array.
-     * @param {Array} haystack An array of values.
-     * @param {String} message (Optional) The message to display if the assertion fails.
-     * @method contains
-     * @static
-     */
-    contains : function (needle /*:Object*/, haystack /*:Array*/, 
-                           message /*:String*/) /*:Void*/ {
-        
-        var found /*:Boolean*/ = false;
-        var Assert = YAHOO.util.Assert;
-        
-        //begin checking values
-        for (var i=0; i < haystack.length && !found; i++){
-            if (haystack[i] === needle) {
-                found = true;
-            }
-        }
-        
-        if (!found){
-            Assert.fail(Assert._formatMessage(message, "Value " + needle + " (" + (typeof needle) + ") not found in array [" + haystack + "]."));
-        }
-    },
-
-    /**
-     * Asserts that a set of values are present in an array. This uses the triple equals 
-     * sign so no type cohersion may occur. For this assertion to pass, all values must
-     * be found.
-     * @param {Object[]} needles An array of values that are expected in the array.
-     * @param {Array} haystack An array of values to check.
-     * @param {String} message (Optional) The message to display if the assertion fails.
-     * @method containsItems
-     * @static
-     */
-    containsItems : function (needles /*:Object[]*/, haystack /*:Array*/, 
-                           message /*:String*/) /*:Void*/ {
-
-        //begin checking values
-        for (var i=0; i < needles.length; i++){
-            this.contains(needles[i], haystack, message);
-        }
-    },
-
-    /**
-     * Asserts that a value matching some condition is present in an array. This uses
-     * a function to determine a match.
-     * @param {Function} matcher A function that returns true if the items matches or false if not.
-     * @param {Array} haystack An array of values.
-     * @param {String} message (Optional) The message to display if the assertion fails.
-     * @method containsMatch
-     * @static
-     */
-    containsMatch : function (matcher /*:Function*/, haystack /*:Array*/, 
-                           message /*:String*/) /*:Void*/ {
-        
-        //check for valid matcher
-        if (typeof matcher != "function"){
-            throw new TypeError("ArrayAssert.containsMatch(): First argument must be a function.");
-        }
-        
-        var found /*:Boolean*/ = false;
-        var Assert = YAHOO.util.Assert;
-        
-        //begin checking values
-        for (var i=0; i < haystack.length && !found; i++){
-            if (matcher(haystack[i])) {
-                found = true;
-            }
-        }
-        
-        if (!found){
-            Assert.fail(Assert._formatMessage(message, "No match found in array [" + haystack + "]."));
-        }
-    },
-
-    /**
-     * Asserts that a value is not present in an array. This uses the triple equals 
-     * sign so no type cohersion may occur.
-     * @param {Object} needle The value that is expected in the array.
-     * @param {Array} haystack An array of values.
-     * @param {String} message (Optional) The message to display if the assertion fails.
-     * @method doesNotContain
-     * @static
-     */
-    doesNotContain : function (needle /*:Object*/, haystack /*:Array*/, 
-                           message /*:String*/) /*:Void*/ {
-        
-        var found /*:Boolean*/ = false;
-        var Assert = YAHOO.util.Assert;
-        
-        //begin checking values
-        for (var i=0; i < haystack.length && !found; i++){
-            if (haystack[i] === needle) {
-                found = true;
-            }
-        }
-        
-        if (found){
-            Assert.fail(Assert._formatMessage(message, "Value found in array [" + haystack + "]."));
-        }
-    },
-
-    /**
-     * Asserts that a set of values are not present in an array. This uses the triple equals 
-     * sign so no type cohersion may occur. For this assertion to pass, all values must
-     * not be found.
-     * @param {Object[]} needles An array of values that are not expected in the array.
-     * @param {Array} haystack An array of values to check.
-     * @param {String} message (Optional) The message to display if the assertion fails.
-     * @method doesNotContainItems
-     * @static
-     */
-    doesNotContainItems : function (needles /*:Object[]*/, haystack /*:Array*/, 
-                           message /*:String*/) /*:Void*/ {
-
-        for (var i=0; i < needles.length; i++){
-            this.doesNotContain(needles[i], haystack, message);
-        }
-
-    },
-        
-    /**
-     * Asserts that no values matching a condition are present in an array. This uses
-     * a function to determine a match.
-     * @param {Function} matcher A function that returns true if the items matches or false if not.
-     * @param {Array} haystack An array of values.
-     * @param {String} message (Optional) The message to display if the assertion fails.
-     * @method doesNotContainMatch
-     * @static
-     */
-    doesNotContainMatch : function (matcher /*:Function*/, haystack /*:Array*/, 
-                           message /*:String*/) /*:Void*/ {
-        
-        //check for valid matcher
-        if (typeof matcher != "function"){
-            throw new TypeError("ArrayAssert.doesNotContainMatch(): First argument must be a function.");
-        }
-
-        var found /*:Boolean*/ = false;
-        var Assert = YAHOO.util.Assert;
-        
-        //begin checking values
-        for (var i=0; i < haystack.length && !found; i++){
-            if (matcher(haystack[i])) {
-                found = true;
-            }
-        }
-        
-        if (found){
-            Assert.fail(Assert._formatMessage(message, "Value found in array [" + haystack + "]."));
-        }
-    },
-        
-    /**
-     * Asserts that the given value is contained in an array at the specified index.
-     * This uses the triple equals sign so no type cohersion will occur.
-     * @param {Object} needle The value to look for.
-     * @param {Array} haystack The array to search in.
-     * @param {int} index The index at which the value should exist.
-     * @param {String} message (Optional) The message to display if the assertion fails.
-     * @method indexOf
-     * @static
-     */
-    indexOf : function (needle /*:Object*/, haystack /*:Array*/, index /*:int*/, message /*:String*/) /*:Void*/ {
-    
-        //try to find the value in the array
-        for (var i=0; i < haystack.length; i++){
-            if (haystack[i] === needle){
-                YAHOO.util.Assert.areEqual(index, i, message || "Value exists at index " + i + " but should be at index " + index + ".");
-                return;
-            }
-        }
-        
-        var Assert = YAHOO.util.Assert;
-        
-        //if it makes it here, it wasn't found at all
-        Assert.fail(Assert._formatMessage(message, "Value doesn't exist in array [" + haystack + "]."));
-    },
-        
-    /**
-     * Asserts that the values in an array are equal, and in the same position,
-     * as values in another array. This uses the double equals sign
-     * so type cohersion may occur. Note that the array objects themselves
-     * need not be the same for this test to pass.
-     * @param {Array} expected An array of the expected values.
-     * @param {Array} actual Any array of the actual values.
-     * @param {String} message (Optional) The message to display if the assertion fails.
-     * @method itemsAreEqual
-     * @static
-     */
-    itemsAreEqual : function (expected /*:Array*/, actual /*:Array*/, 
-                           message /*:String*/) /*:Void*/ {
-        
-        //one may be longer than the other, so get the maximum length
-        var len /*:int*/ = Math.max(expected.length, actual.length || 0);
-        var Assert = YAHOO.util.Assert;
-       
-        //begin checking values
-        for (var i=0; i < len; i++){
-            Assert.areEqual(expected[i], actual[i], 
-                Assert._formatMessage(message, "Values in position " + i + " are not equal."));
-        }
-    },
-    
-    /**
-     * Asserts that the values in an array are equivalent, and in the same position,
-     * as values in another array. This uses a function to determine if the values
-     * are equivalent. Note that the array objects themselves
-     * need not be the same for this test to pass.
-     * @param {Array} expected An array of the expected values.
-     * @param {Array} actual Any array of the actual values.
-     * @param {Function} comparator A function that returns true if the values are equivalent
-     *      or false if not.
-     * @param {String} message (Optional) The message to display if the assertion fails.
-     * @return {Void}
-     * @method itemsAreEquivalent
-     * @static
-     */
-    itemsAreEquivalent : function (expected /*:Array*/, actual /*:Array*/, 
-                           comparator /*:Function*/, message /*:String*/) /*:Void*/ {
-        
-        //make sure the comparator is valid
-        if (typeof comparator != "function"){
-            throw new TypeError("ArrayAssert.itemsAreEquivalent(): Third argument must be a function.");
-        }
-        
-        //one may be longer than the other, so get the maximum length
-        var len /*:int*/ = Math.max(expected.length, actual.length || 0);
-        
-        //begin checking values
-        for (var i=0; i < len; i++){
-            if (!comparator(expected[i], actual[i])){
-                throw new YAHOO.util.ComparisonFailure(YAHOO.util.Assert._formatMessage(message, "Values in position " + i + " are not equivalent."), expected[i], actual[i]);
-            }
-        }
-    },
-    
-    /**
-     * Asserts that an array is empty.
-     * @param {Array} actual The array to test.
-     * @param {String} message (Optional) The message to display if the assertion fails.
-     * @method isEmpty
-     * @static
-     */
-    isEmpty : function (actual /*:Array*/, message /*:String*/) /*:Void*/ {        
-        if (actual.length > 0){
-            var Assert = YAHOO.util.Assert;
-            Assert.fail(Assert._formatMessage(message, "Array should be empty."));
-        }
-    },    
-    
-    /**
-     * Asserts that an array is not empty.
-     * @param {Array} actual The array to test.
-     * @param {String} message (Optional) The message to display if the assertion fails.
-     * @method isNotEmpty
-     * @static
-     */
-    isNotEmpty : function (actual /*:Array*/, message /*:String*/) /*:Void*/ {        
-        if (actual.length === 0){
-            var Assert = YAHOO.util.Assert;
-            Assert.fail(Assert._formatMessage(message, "Array should not be empty."));
-        }
-    },    
-    
-    /**
-     * Asserts that the values in an array are the same, and in the same position,
-     * as values in another array. This uses the triple equals sign
-     * so no type cohersion will occur. Note that the array objects themselves
-     * need not be the same for this test to pass.
-     * @param {Array} expected An array of the expected values.
-     * @param {Array} actual Any array of the actual values.
-     * @param {String} message (Optional) The message to display if the assertion fails.
-     * @method itemsAreSame
-     * @static
-     */
-    itemsAreSame : function (expected /*:Array*/, actual /*:Array*/, 
-                          message /*:String*/) /*:Void*/ {
-        
-        //one may be longer than the other, so get the maximum length
-        var len /*:int*/ = Math.max(expected.length, actual.length || 0);
-        var Assert = YAHOO.util.Assert;
-        
-        //begin checking values
-        for (var i=0; i < len; i++){
-            Assert.areSame(expected[i], actual[i], 
-                Assert._formatMessage(message, "Values in position " + i + " are not the same."));
-        }
-    },
-    
-    /**
-     * Asserts that the given value is contained in an array at the specified index,
-     * starting from the back of the array.
-     * This uses the triple equals sign so no type cohersion will occur.
-     * @param {Object} needle The value to look for.
-     * @param {Array} haystack The array to search in.
-     * @param {int} index The index at which the value should exist.
-     * @param {String} message (Optional) The message to display if the assertion fails.
-     * @method lastIndexOf
-     * @static
-     */
-    lastIndexOf : function (needle /*:Object*/, haystack /*:Array*/, index /*:int*/, message /*:String*/) /*:Void*/ {
-    
-        var Assert = YAHOO.util.Assert;
-    
-        //try to find the value in the array
-        for (var i=haystack.length; i >= 0; i--){
-            if (haystack[i] === needle){
-                Assert.areEqual(index, i, Assert._formatMessage(message, "Value exists at index " + i + " but should be at index " + index + "."));
-                return;
-            }
-        }
-        
-        //if it makes it here, it wasn't found at all
-        Assert.fail(Assert._formatMessage(message, "Value doesn't exist in array."));        
-    }
-    
-};
-YAHOO.namespace("util");
-
-
-//-----------------------------------------------------------------------------
-// ObjectAssert object
-//-----------------------------------------------------------------------------
-
-/**
- * The ObjectAssert object provides functions to test JavaScript objects
- * for a variety of cases.
- *
- * @namespace YAHOO.util
- * @class ObjectAssert
- * @static
- */
-YAHOO.util.ObjectAssert = {
-        
-    /**
-     * Asserts that all properties in the object exist in another object.
-     * @param {Object} expected An object with the expected properties.
-     * @param {Object} actual An object with the actual properties.
-     * @param {String} message (Optional) The message to display if the assertion fails.
-     * @method propertiesAreEqual
-     * @static
-     */
-    propertiesAreEqual : function (expected /*:Object*/, actual /*:Object*/, 
-                           message /*:String*/) /*:Void*/ {
-        
-        var Assert = YAHOO.util.Assert;
-        
-        //get all properties in the object
-        var properties /*:Array*/ = [];        
-        for (var property in expected){
-            properties.push(property);
-        }
-        
-        //see if the properties are in the expected object
-        for (var i=0; i < properties.length; i++){
-            Assert.isNotUndefined(actual[properties[i]], 
-                Assert._formatMessage(message, "Property '" + properties[i] + "' expected."));
-        }
-
-    },
-    
-    /**
-     * Asserts that an object has a property with the given name.
-     * @param {String} propertyName The name of the property to test.
-     * @param {Object} object The object to search.
-     * @param {String} message (Optional) The message to display if the assertion fails.
-     * @method hasProperty
-     * @static
-     */    
-    hasProperty : function (propertyName /*:String*/, object /*:Object*/, message /*:String*/) /*:Void*/ {
-        if (!(propertyName in object)){
-            var Assert = YAHOO.util.Assert;
-            Assert.fail(Assert._formatMessage(message, "Property '" + propertyName + "' not found on object."));
-        }    
-    },
-    
-    /**
-     * Asserts that a property with the given name exists on an object instance (not on its prototype).
-     * @param {String} propertyName The name of the property to test.
-     * @param {Object} object The object to search.
-     * @param {String} message (Optional) The message to display if the assertion fails.
-     * @method hasProperty
-     * @static
-     */    
-    hasOwnProperty : function (propertyName /*:String*/, object /*:Object*/, message /*:String*/) /*:Void*/ {
-        if (!YAHOO.lang.hasOwnProperty(object, propertyName)){
-            var Assert = YAHOO.util.Assert;
-            Assert.fail(Assert._formatMessage(message, "Property '" + propertyName + "' not found on object instance."));
-        }     
-    }
-};
-//-----------------------------------------------------------------------------
-// DateAssert object
-//-----------------------------------------------------------------------------
-
-/**
- * The DateAssert object provides functions to test JavaScript Date objects
- * for a variety of cases.
- *
- * @namespace YAHOO.util
- * @class DateAssert
- * @static
- */
-YAHOO.util.DateAssert = {
-
-    /**
-     * Asserts that a date's month, day, and year are equal to another date's.
-     * @param {Date} expected The expected date.
-     * @param {Date} actual The actual date to test.
-     * @param {String} message (Optional) The message to display if the assertion fails.
-     * @method datesAreEqual
-     * @static
-     */
-    datesAreEqual : function (expected /*:Date*/, actual /*:Date*/, message /*:String*/){
-        if (expected instanceof Date && actual instanceof Date){
-            var Assert = YAHOO.util.Assert;
-            Assert.areEqual(expected.getFullYear(), actual.getFullYear(), Assert._formatMessage(message, "Years should be equal."));
-            Assert.areEqual(expected.getMonth(), actual.getMonth(), Assert._formatMessage(message, "Months should be equal."));
-            Assert.areEqual(expected.getDate(), actual.getDate(), Assert._formatMessage(message, "Day of month should be equal."));
-        } else {
-            throw new TypeError("DateAssert.datesAreEqual(): Expected and actual values must be Date objects.");
-        }
-    },
-
-    /**
-     * Asserts that a date's hour, minutes, and seconds are equal to another date's.
-     * @param {Date} expected The expected date.
-     * @param {Date} actual The actual date to test.
-     * @param {String} message (Optional) The message to display if the assertion fails.
-     * @method timesAreEqual
-     * @static
-     */
-    timesAreEqual : function (expected /*:Date*/, actual /*:Date*/, message /*:String*/){
-        if (expected instanceof Date && actual instanceof Date){
-            var Assert = YAHOO.util.Assert;
-            Assert.areEqual(expected.getHours(), actual.getHours(), Assert._formatMessage(message, "Hours should be equal."));
-            Assert.areEqual(expected.getMinutes(), actual.getMinutes(), Assert._formatMessage(message, "Minutes should be equal."));
-            Assert.areEqual(expected.getSeconds(), actual.getSeconds(), Assert._formatMessage(message, "Seconds should be equal."));
-        } else {
-            throw new TypeError("DateAssert.timesAreEqual(): Expected and actual values must be Date objects.");
-        }
-    }
-    
-};
-YAHOO.namespace("tool");
-
-//-----------------------------------------------------------------------------
-// TestManager object
-//-----------------------------------------------------------------------------
-
-/**
- * Runs pages containing test suite definitions.
- * @namespace YAHOO.tool
- * @class TestManager
- * @static
- */
-YAHOO.tool.TestManager = {
-
-    /**
-     * Constant for the testpagebegin custom event
-     * @property TEST_PAGE_BEGIN_EVENT
-     * @static
-     * @type string
-     * @final
-     */
-    TEST_PAGE_BEGIN_EVENT /*:String*/ : "testpagebegin",
-
-    /**
-     * Constant for the testpagecomplete custom event
-     * @property TEST_PAGE_COMPLETE_EVENT
-     * @static
-     * @type string
-     * @final
-     */
-    TEST_PAGE_COMPLETE_EVENT /*:String*/ : "testpagecomplete",
-
-    /**
-     * Constant for the testmanagerbegin custom event
-     * @property TEST_MANAGER_BEGIN_EVENT
-     * @static
-     * @type string
-     * @final
-     */
-    TEST_MANAGER_BEGIN_EVENT /*:String*/ : "testmanagerbegin",
-
-    /**
-     * Constant for the testmanagercomplete custom event
-     * @property TEST_MANAGER_COMPLETE_EVENT
-     * @static
-     * @type string
-     * @final
-     */
-    TEST_MANAGER_COMPLETE_EVENT /*:String*/ : "testmanagercomplete",
-
-    //-------------------------------------------------------------------------
-    // Private Properties
-    //-------------------------------------------------------------------------
-    
-    
-    /**
-     * The URL of the page currently being executed.
-     * @type String
-     * @private
-     * @property _curPage
-     * @static
-     */
-    _curPage /*:String*/ : null,
-    
-    /**
-     * The frame used to load and run tests.
-     * @type Window
-     * @private
-     * @property _frame
-     * @static
-     */
-    _frame /*:Window*/ : null,
-    
-    /**
-     * The logger used to output results from the various tests.
-     * @type YAHOO.tool.TestLogger
-     * @private
-     * @property _logger
-     * @static
-     */
-    _logger : null,
-    
-    /**
-     * The timeout ID for the next iteration through the tests.
-     * @type int
-     * @private
-     * @property _timeoutId
-     * @static
-     */
-    _timeoutId /*:int*/ : 0,
-    
-    /**
-     * Array of pages to load.
-     * @type String[]
-     * @private
-     * @property _pages
-     * @static
-     */
-    _pages /*:String[]*/ : [],
-    
-    /**
-     * Aggregated results
-     * @type Object
-     * @private
-     * @property _results
-     * @static
-     */
-    _results: null,
-    
-    //-------------------------------------------------------------------------
-    // Private Methods
-    //-------------------------------------------------------------------------
-    
-    /**
-     * Handles TestRunner.COMPLETE_EVENT, storing the results and beginning
-     * the loop again.
-     * @param {Object} data Data about the event.
-     * @return {Void}
-     * @private
-     * @static
-     */
-    _handleTestRunnerComplete : function (data /*:Object*/) /*:Void*/ {
-
-        this.fireEvent(this.TEST_PAGE_COMPLETE_EVENT, {
-                page: this._curPage,
-                results: data.results
-            });
-    
-        //save results
-        //this._results[this.curPage] = data.results;
-        
-        //process 'em
-        this._processResults(this._curPage, data.results);
-        
-        this._logger.clearTestRunner();
-    
-        //if there's more to do, set a timeout to begin again
-        if (this._pages.length){
-            this._timeoutId = setTimeout(function(){
-                YAHOO.tool.TestManager._run();
-            }, 1000);
-        } else {
-            this.fireEvent(this.TEST_MANAGER_COMPLETE_EVENT, this._results);
-        }
-    },
-    
-    /**
-     * Processes the results of a test page run, outputting log messages
-     * for failed tests.
-     * @return {Void}
-     * @private
-     * @static
-     */
-    _processResults : function (page /*:String*/, results /*:Object*/) /*:Void*/ {
-
-        var r = this._results;
-        
-        r.passed += results.passed;
-        r.failed += results.failed;
-        r.ignored += results.ignored;
-        r.total += results.total;
-        r.duration += results.duration;
-        
-        if (results.failed){
-            r.failedPages.push(page);
-        } else {
-            r.passedPages.push(page);
-        }
-        
-        results.name = page;
-        results.type = "page";
-        
-        r[page] = results;
-    },
-    
-    /**
-     * Loads the next test page into the iframe.
-     * @return {Void}
-     * @static
-     * @private
-     */
-    _run : function () /*:Void*/ {
-    
-        //set the current page
-        this._curPage = this._pages.shift();
-
-        this.fireEvent(this.TEST_PAGE_BEGIN_EVENT, this._curPage);
-        
-        //load the frame - destroy history in case there are other iframes that
-        //need testing
-        this._frame.location.replace(this._curPage);
-    
-    },
-        
-    //-------------------------------------------------------------------------
-    // Public Methods
-    //-------------------------------------------------------------------------
-    
-    /**
-     * Signals that a test page has been loaded. This should be called from
-     * within the test page itself to notify the TestManager that it is ready.
-     * @return {Void}
-     * @static
-     */
-    load : function () /*:Void*/ {
-        if (parent.YAHOO.tool.TestManager !== this){
-            parent.YAHOO.tool.TestManager.load();
-        } else {
-            
-            if (this._frame) {
-                //assign event handling
-                var TestRunner = this._frame.YAHOO.tool.TestRunner;
-
-                this._logger.setTestRunner(TestRunner);
-                TestRunner.subscribe(TestRunner.COMPLETE_EVENT, this._handleTestRunnerComplete, this, true);
-                
-                //run it
-                TestRunner.run();
-            }
-        }
-    },
-    
-    /**
-     * Sets the pages to be loaded.
-     * @param {String[]} pages An array of URLs to load.
-     * @return {Void}
-     * @static
-     */
-    setPages : function (pages /*:String[]*/) /*:Void*/ {
-        this._pages = pages;
-    },
-    
-    /**
-     * Begins the process of running the tests.
-     * @return {Void}
-     * @static
-     */
-    start : function () /*:Void*/ {
-
-        if (!this._initialized) {
-
-            /**
-             * Fires when loading a test page
-             * @event testpagebegin
-             * @param curPage {string} the page being loaded
-             * @static
-             */
-            this.createEvent(this.TEST_PAGE_BEGIN_EVENT);
-
-            /**
-             * Fires when a test page is complete
-             * @event testpagecomplete
-             * @param obj {page: string, results: object} the name of the
-             * page that was loaded, and the test suite results
-             * @static
-             */
-            this.createEvent(this.TEST_PAGE_COMPLETE_EVENT);
-
-            /**
-             * Fires when the test manager starts running all test pages
-             * @event testmanagerbegin
-             * @static
-             */
-            this.createEvent(this.TEST_MANAGER_BEGIN_EVENT);
-
-            /**
-             * Fires when the test manager finishes running all test pages.  External
-             * test runners should subscribe to this event in order to get the
-             * aggregated test results.
-             * @event testmanagercomplete
-             * @param obj { pages_passed: int, pages_failed: int, tests_passed: int
-             *              tests_failed: int, passed: string[], failed: string[],
-             *              page_results: {} }
-             * @static
-             */
-            this.createEvent(this.TEST_MANAGER_COMPLETE_EVENT);
-
-            //create iframe if not already available
-            if (!this._frame){
-                var frame /*:HTMLElement*/ = document.createElement("iframe");
-                frame.style.visibility = "hidden";
-                frame.style.position = "absolute";
-                document.body.appendChild(frame);
-                this._frame = frame.contentWindow || frame.contentDocument.parentWindow;
-            }
-            
-            //create test logger if not already available
-            if (!this._logger){
-                this._logger = new YAHOO.tool.TestLogger();
-            }
-
-            this._initialized = true;
-        }
-
-
-        // reset the results cache
-        this._results = {
-        
-            passed: 0,
-            failed: 0,
-            ignored: 0,
-            total: 0,
-            type: "report",
-            name: "YUI Test Results",
-            duration: 0,
-            failedPages:[],
-            passedPages:[]
-            /*
-            // number of pages that pass
-            pages_passed: 0,
-            // number of pages that fail
-            pages_failed: 0,
-            // total number of tests passed
-            tests_passed: 0,
-            // total number of tests failed
-            tests_failed: 0,
-            // array of pages that passed
-            passed: [],
-            // array of pages that failed
-            failed: [],
-            // map of full results for each page
-            page_results: {}*/
-        };
-
-        this.fireEvent(this.TEST_MANAGER_BEGIN_EVENT, null);
-        this._run();
-    
-    },
-
-    /**
-     * Stops the execution of tests.
-     * @return {Void}
-     * @static
-     */
-    stop : function () /*:Void*/ {
-        clearTimeout(this._timeoutId);
-    }
-
-};
-
-YAHOO.lang.augmentObject(YAHOO.tool.TestManager, YAHOO.util.EventProvider.prototype);
-
-YAHOO.namespace("tool");
-
-//-----------------------------------------------------------------------------
-// TestLogger object
-//-----------------------------------------------------------------------------
-
-/**
- * Displays test execution progress and results, providing filters based on
- * different key events.
- * @namespace YAHOO.tool
- * @class TestLogger
- * @constructor
- * @param {HTMLElement} element (Optional) The element to create the logger in.
- * @param {Object} config (Optional) Configuration options for the logger.
- */
-YAHOO.tool.TestLogger = function (element, config) {
-    YAHOO.tool.TestLogger.superclass.constructor.call(this, element, config);
-    this.init();
-};
-
-YAHOO.lang.extend(YAHOO.tool.TestLogger, YAHOO.widget.LogReader, {
-
-    footerEnabled : true,
-    newestOnTop : false,
-
-    /**
-     * Formats message string to HTML for output to console.
-     * @private
-     * @method formatMsg
-     * @param oLogMsg {Object} Log message object.
-     * @return {String} HTML-formatted message for output to console.
-     */
-    formatMsg : function(message /*:Object*/) {
-    
-        var category /*:String*/ = message.category;        
-        var text /*:String*/ = this.html2Text(message.msg);
-        
-        return "<pre><p><span class=\"" + category + "\">" + category.toUpperCase() + "</span> " + text + "</p></pre>";
-    
-    },
-    
-    //-------------------------------------------------------------------------
-    // Private Methods
-    //-------------------------------------------------------------------------
-    
-    /*
-     * Initializes the logger.
-     * @private
-     */
-    init : function () {
-    
-        //attach to any available TestRunner
-        if (YAHOO.tool.TestRunner){
-            this.setTestRunner(YAHOO.tool.TestRunner);
-        }
-        
-        //hide useless sources
-        this.hideSource("global");
-        this.hideSource("LogReader");
-        
-        //hide useless message categories
-        this.hideCategory("warn");
-        this.hideCategory("window");
-        this.hideCategory("time");
-        
-        //reset the logger
-        this.clearConsole();
-    },
-    
-    /**
-     * Clears the reference to the TestRunner from previous operations. This 
-     * unsubscribes all events and removes the object reference.
-     * @return {Void}
-     * @static
-     */
-    clearTestRunner : function () /*:Void*/ {
-        if (this._runner){
-            this._runner.unsubscribeAll();
-            this._runner = null;
-        }
-    },
-    
-    /**
-     * Sets the source test runner that the logger should monitor.
-     * @param {YAHOO.tool.TestRunner} testRunner The TestRunner to observe.
-     * @return {Void}
-     * @static
-     */
-    setTestRunner : function (testRunner /*:YAHOO.tool.TestRunner*/) /*:Void*/ {
-    
-        if (this._runner){
-            this.clearTestRunner();
-        }
-        
-        this._runner = testRunner;
-        
-        //setup event _handlers
-        testRunner.subscribe(testRunner.TEST_PASS_EVENT, this._handleTestRunnerEvent, this, true);
-        testRunner.subscribe(testRunner.TEST_FAIL_EVENT, this._handleTestRunnerEvent, this, true);
-        testRunner.subscribe(testRunner.TEST_IGNORE_EVENT, this._handleTestRunnerEvent, this, true);
-        testRunner.subscribe(testRunner.BEGIN_EVENT, this._handleTestRunnerEvent, this, true);
-        testRunner.subscribe(testRunner.COMPLETE_EVENT, this._handleTestRunnerEvent, this, true);
-        testRunner.subscribe(testRunner.TEST_SUITE_BEGIN_EVENT, this._handleTestRunnerEvent, this, true);
-        testRunner.subscribe(testRunner.TEST_SUITE_COMPLETE_EVENT, this._handleTestRunnerEvent, this, true);
-        testRunner.subscribe(testRunner.TEST_CASE_BEGIN_EVENT, this._handleTestRunnerEvent, this, true);
-        testRunner.subscribe(testRunner.TEST_CASE_COMPLETE_EVENT, this._handleTestRunnerEvent, this, true);    
-    },
-    
-    //-------------------------------------------------------------------------
-    // Event Handlers
-    //-------------------------------------------------------------------------
-    
-    /**
-     * Handles all TestRunner events, outputting appropriate data into the console.
-     * @param {Object} data The event data object.
-     * @return {Void}
-     * @private
-     */
-    _handleTestRunnerEvent : function (data /*:Object*/) /*:Void*/ {
-    
-        //shortcut variables
-        var TestRunner /*:Object*/ = YAHOO.tool.TestRunner;
-    
-        //data variables
-        var message /*:String*/ = "";
-        var messageType /*:String*/ = "";
-        
-        switch(data.type){
-            case TestRunner.BEGIN_EVENT:
-                message = "Testing began at " + (new Date()).toString() + ".";
-                messageType = "info";
-                break;
-                
-            case TestRunner.COMPLETE_EVENT:
-                message = "Testing completed at " + (new Date()).toString() + ".\nPassed:" + 
-                    data.results.passed + " Failed:" + data.results.failed + " Total:" + data.results.total;
-                messageType = "info";
-                break;
-                
-            case TestRunner.TEST_FAIL_EVENT:
-                message = data.testName + ": " + data.error.getMessage();
-                messageType = "fail";
-                break;
-                
-            case TestRunner.TEST_IGNORE_EVENT:
-                message = data.testName + ": ignored.";
-                messageType = "ignore";
-                break;
-                
-            case TestRunner.TEST_PASS_EVENT:
-                message = data.testName + ": passed.";
-                messageType = "pass";
-                break;
-                
-            case TestRunner.TEST_SUITE_BEGIN_EVENT:
-                message = "Test suite \"" + data.testSuite.name + "\" started.";
-                messageType = "info";
-                break;
-                
-            case TestRunner.TEST_SUITE_COMPLETE_EVENT:
-                message = "Test suite \"" + data.testSuite.name + "\" completed.\nPassed:" + 
-                    data.results.passed + " Failed:" + data.results.failed + " Total:" + data.results.total;
-                messageType = "info";
-                break;
-                
-            case TestRunner.TEST_CASE_BEGIN_EVENT:
-                message = "Test case \"" + data.testCase.name + "\" started.";
-                messageType = "info";
-                break;
-                
-            case TestRunner.TEST_CASE_COMPLETE_EVENT:
-                message = "Test case \"" + data.testCase.name + "\" completed.\nPassed:" + 
-                    data.results.passed + " Failed:" + data.results.failed + " Total:" + data.results.total;
-                messageType = "info";
-                break;
-            default:
-                message = "Unexpected event " + data.type;
-                message = "info";
-        }
-    
-        YAHOO.log(message, messageType, "TestRunner");    
-    }
-    
-});
-YAHOO.namespace("tool.TestFormat");
-
-/**
- * Returns test results formatted as a JSON string. Requires JSON utility.
- * @param {Object} result The results object created by TestRunner.
- * @return {String} An XML-formatted string of results.
- * @namespace YAHOO.tool.TestFormat
- * @method JSON
- * @static
- */
-YAHOO.tool.TestFormat.JSON = function(results /*:Object*/) /*:String*/ {
-    return YAHOO.lang.JSON.stringify(results);
-};
-
-/**
- * Returns test results formatted as an XML string.
- * @param {Object} result The results object created by TestRunner.
- * @return {String} An XML-formatted string of results.
- * @namespace YAHOO.tool.TestFormat
- * @method XML
- * @static
- */
-YAHOO.tool.TestFormat.XML = function(results /*:Object*/) /*:String*/ {
-
-    var l = YAHOO.lang;
-    var xml /*:String*/ = "<" + results.type + " name=\"" + results.name.replace(/"/g, "&quot;").replace(/'/g, "&apos;") + "\"";
-    
-    if (l.isNumber(results.duration)){
-        xml += " duration=\"" + results.duration + "\"";
-    }
-    
-    if (results.type == "test"){
-        xml += " result=\"" + results.result + "\" message=\"" + results.message + "\">";
-    } else {
-        xml += " passed=\"" + results.passed + "\" failed=\"" + results.failed + "\" ignored=\"" + results.ignored + "\" total=\"" + results.total + "\">";
-        for (var prop in results) {
-            if (l.hasOwnProperty(results, prop) && l.isObject(results[prop]) && !l.isArray(results[prop])){
-                xml += arguments.callee(results[prop]);
-            }
-        }        
-    }
-
-    xml += "</" + results.type + ">";
-    
-    return xml;
-
-};
-YAHOO.namespace("tool");
-
-/**
- * An object capable of sending test results to a server.
- * @param {String} url The URL to submit the results to.
- * @param {Function} format (Optiona) A function that outputs the results in a specific format.
- *      Default is YAHOO.tool.TestFormat.XML.
- * @constructor
- * @namespace YAHOO.tool
- * @class TestReporter
- */
-YAHOO.tool.TestReporter = function(url /*:String*/, format /*:Function*/) {
-
-    /**
-     * The URL to submit the data to.
-     * @type String
-     * @property url
-     */
-    this.url /*:String*/ = url;
-
-    /**
-     * The formatting function to call when submitting the data.
-     * @type Function
-     * @property format
-     */
-    this.format /*:Function*/ = format || YAHOO.tool.TestFormat.XML;
-
-    /**
-     * Extra fields to submit with the request.
-     * @type Object
-     * @property _fields
-     * @private
-     */
-    this._fields /*:Object*/ = new Object();
-    
-    /**
-     * The form element used to submit the results.
-     * @type HTMLFormElement
-     * @property _form
-     * @private
-     */
-    this._form /*:HTMLElement*/ = null;
-
-    /**
-     * Iframe used as a target for form submission.
-     * @type HTMLIFrameElement
-     * @property _iframe
-     * @private
-     */
-    this._iframe /*:HTMLElement*/ = null;
-};
-
-YAHOO.tool.TestReporter.prototype = {
-
-    //restore missing constructor
-    constructor: YAHOO.tool.TestReporter,
-    
-    /**
-     * Convert a date into ISO format.
-     * From Douglas Crockford's json2.js
-     * @param {Date} date The date to convert.
-     * @return {String} An ISO-formatted date string
-     * @method _convertToISOString
-     * @private
-     */    
-    _convertToISOString: function(date){
-        function f(n) {
-            // Format integers to have at least two digits.
-            return n < 10 ? '0' + n : n;
-        }
-
-        return date.getUTCFullYear()   + '-' +
-             f(date.getUTCMonth() + 1) + '-' +
-             f(date.getUTCDate())      + 'T' +
-             f(date.getUTCHours())     + ':' +
-             f(date.getUTCMinutes())   + ':' +
-             f(date.getUTCSeconds())   + 'Z';     
-    
-    },
-
-    /**
-     * Adds a field to the form that submits the results.
-     * @param {String} name The name of the field.
-     * @param {Variant} value The value of the field.
-     * @return {Void}
-     * @method addField
-     */
-    addField : function (name /*:String*/, value /*:Variant*/) /*:Void*/{
-        this._fields[name] = value;    
-    },
-    
-    /**
-     * Removes all previous defined fields.
-     * @return {Void}
-     * @method addField
-     */
-    clearFields : function() /*:Void*/{
-        this._fields = new Object();
-    },
-
-    /**
-     * Cleans up the memory associated with the TestReporter, removing DOM elements
-     * that were created.
-     * @return {Void}
-     * @method destroy
-     */
-    destroy : function() /*:Void*/ {
-        if (this._form){
-            this._form.parentNode.removeChild(this._form);
-            this._form = null;
-        }        
-        if (this._iframe){
-            this._iframe.parentNode.removeChild(this._iframe);
-            this._iframe = null;
-        }
-        this._fields = null;
-    },
-
-    /**
-     * Sends the report to the server.
-     * @param {Object} results The results object created by TestRunner.
-     * @return {Void}
-     * @method report
-     */
-    report : function(results /*:Object*/) /*:Void*/{
-    
-        //if the form hasn't been created yet, create it
-        if (!this._form){
-            this._form = document.createElement("form");
-            this._form.method = "post";
-            this._form.style.visibility = "hidden";
-            this._form.style.position = "absolute";
-            this._form.style.top = 0;
-            document.body.appendChild(this._form);
-        
-            //IE won't let you assign a name using the DOM, must do it the hacky way
-            if (YAHOO.env.ua.ie){
-                this._iframe = document.createElement("<iframe name=\"yuiTestTarget\" />");
-            } else {
-                this._iframe = document.createElement("iframe");
-                this._iframe.name = "yuiTestTarget";
-            }
-
-            this._iframe.src = "javascript:false";
-            this._iframe.style.visibility = "hidden";
-            this._iframe.style.position = "absolute";
-            this._iframe.style.top = 0;
-            document.body.appendChild(this._iframe);
-
-            this._form.target = "yuiTestTarget";
-        }
-
-        //set the form's action
-        this._form.action = this.url;
-    
-        //remove any existing fields
-        while(this._form.hasChildNodes()){
-            this._form.removeChild(this._form.lastChild);
-        }
-        
-        //create default fields
-        this._fields.results = this.format(results);
-        this._fields.useragent = navigator.userAgent;
-        this._fields.timestamp = this._convertToISOString(new Date());
-
-        //add fields to the form
-        for (var prop in this._fields){
-            if (YAHOO.lang.hasOwnProperty(this._fields, prop) && typeof this._fields[prop] != "function"){
-                if (YAHOO.env.ua.ie){
-                    input = document.createElement("<input name=\"" + prop + "\" >");
-                } else {
-                    input = document.createElement("input");
-                    input.name = prop;
-                }
-                input.type = "hidden";
-                input.value = this._fields[prop];
-                this._form.appendChild(input);
-            }
-        }
-
-        //remove default fields
-        delete this._fields.results;
-        delete this._fields.useragent;
-        delete this._fields.timestamp;
-        
-        if (arguments[1] !== false){
-            this._form.submit();
-        }
-    
-    }
-
-};
-YAHOO.register("yuitest", YAHOO.tool.TestRunner, {version: "2.8.0r4", build: "2449"});
diff --git a/koha-tmpl/intranet-tmpl/prog/en/lib/yui/yuitest/yuitest_core-debug.js b/koha-tmpl/intranet-tmpl/prog/en/lib/yui/yuitest/yuitest_core-debug.js
deleted file mode 100644 (file)
index e2a2346..0000000
+++ /dev/null
@@ -1,1976 +0,0 @@
-/*
-Copyright (c) 2009, Yahoo! Inc. All rights reserved.
-Code licensed under the BSD License:
-http://developer.yahoo.net/yui/license.txt
-version: 2.8.0r4
-*/
-YAHOO.namespace("tool");
-
-//-----------------------------------------------------------------------------
-// TestCase object
-//-----------------------------------------------------------------------------
-(function(){
-    
-    //used for autogenerating test case names
-    var tempId = 0;
-    
-    /**
-     * Test case containing various tests to run.
-     * @param template An object containing any number of test methods, other methods,
-     *                 an optional name, and anything else the test case needs.
-     * @class TestCase
-     * @namespace YAHOO.tool
-     * @constructor
-     */
-    YAHOO.tool.TestCase = function (template /*:Object*/) {
-        
-        /**
-         * Special rules for the test case. Possible subobjects
-         * are fail, for tests that should fail, and error, for
-         * tests that should throw an error.
-         */
-        this._should /*:Object*/ = {};
-        
-        //copy over all properties from the template to this object
-        for (var prop in template) {
-            this[prop] = template[prop];
-        }    
-        
-        //check for a valid name
-        if (!YAHOO.lang.isString(this.name)){
-            /**
-             * Name for the test case.
-             */
-            this.name /*:String*/ = "testCase" + (tempId++);
-        }
-    
-    };
-    
-    
-    YAHOO.tool.TestCase.prototype = {  
-    
-        /**
-         * Resumes a paused test and runs the given function.
-         * @param {Function} segment (Optional) The function to run.
-         *      If omitted, the test automatically passes.
-         * @return {Void}
-         * @method resume
-         */
-        resume : function (segment /*:Function*/) /*:Void*/ {
-            YAHOO.tool.TestRunner.resume(segment);
-        },
-    
-        /**
-         * Causes the test case to wait a specified amount of time and then
-         * continue executing the given code.
-         * @param {Function} segment (Optional) The function to run after the delay.
-         *      If omitted, the TestRunner will wait until resume() is called.
-         * @param {int} delay (Optional) The number of milliseconds to wait before running
-         *      the function. If omitted, defaults to zero.
-         * @return {Void}
-         * @method wait
-         */
-        wait : function (segment /*:Function*/, delay /*:int*/) /*:Void*/{
-            var args = arguments;
-            if (YAHOO.lang.isFunction(args[0])){
-                throw new YAHOO.tool.TestCase.Wait(args[0], args[1]);
-            } else {
-                throw new YAHOO.tool.TestCase.Wait(function(){
-                    YAHOO.util.Assert.fail("Timeout: wait() called but resume() never called.");
-                }, (YAHOO.lang.isNumber(args[0]) ? args[0] : 10000));
-            }            
-        },
-    
-        //-------------------------------------------------------------------------
-        // Stub Methods
-        //-------------------------------------------------------------------------
-    
-        /**
-         * Function to run before each test is executed.
-         * @return {Void}
-         * @method setUp
-         */
-        setUp : function () /*:Void*/ {
-        },
-        
-        /**
-         * Function to run after each test is executed.
-         * @return {Void}
-         * @method tearDown
-         */
-        tearDown: function () /*:Void*/ {    
-        }
-    };
-    
-    /**
-     * Represents a stoppage in test execution to wait for an amount of time before
-     * continuing.
-     * @param {Function} segment A function to run when the wait is over.
-     * @param {int} delay The number of milliseconds to wait before running the code.
-     * @class Wait
-     * @namespace YAHOO.tool.TestCase
-     * @constructor
-     *
-     */
-    YAHOO.tool.TestCase.Wait = function (segment /*:Function*/, delay /*:int*/) {
-        
-        /**
-         * The segment of code to run when the wait is over.
-         * @type Function
-         * @property segment
-         */
-        this.segment /*:Function*/ = (YAHOO.lang.isFunction(segment) ? segment : null);
-    
-        /**
-         * The delay before running the segment of code.
-         * @type int
-         * @property delay
-         */
-        this.delay /*:int*/ = (YAHOO.lang.isNumber(delay) ? delay : 0);
-    
-    };
-
-})();
-YAHOO.namespace("tool");
-
-
-//-----------------------------------------------------------------------------
-// TestSuite object
-//-----------------------------------------------------------------------------
-
-/**
- * A test suite that can contain a collection of TestCase and TestSuite objects.
- * @param {String||Object} data The name of the test suite or an object containing
- *      a name property as well as setUp and tearDown methods.
- * @namespace YAHOO.tool
- * @class TestSuite
- * @constructor
- */
-YAHOO.tool.TestSuite = function (data /*:String||Object*/) {
-
-    /**
-     * The name of the test suite.
-     * @type String
-     * @property name
-     */
-    this.name /*:String*/ = "";
-
-    /**
-     * Array of test suites and
-     * @private
-     */
-    this.items /*:Array*/ = [];
-
-    //initialize the properties
-    if (YAHOO.lang.isString(data)){
-        this.name = data;
-    } else if (YAHOO.lang.isObject(data)){
-        YAHOO.lang.augmentObject(this, data, true);
-    }
-
-    //double-check name
-    if (this.name === ""){
-        this.name = YAHOO.util.Dom.generateId(null, "testSuite");
-    }
-
-};
-
-YAHOO.tool.TestSuite.prototype = {
-    
-    /**
-     * Adds a test suite or test case to the test suite.
-     * @param {YAHOO.tool.TestSuite||YAHOO.tool.TestCase} testObject The test suite or test case to add.
-     * @return {Void}
-     * @method add
-     */
-    add : function (testObject /*:YAHOO.tool.TestSuite*/) /*:Void*/ {
-        if (testObject instanceof YAHOO.tool.TestSuite || testObject instanceof YAHOO.tool.TestCase) {
-            this.items.push(testObject);
-        }
-    },
-    
-    //-------------------------------------------------------------------------
-    // Stub Methods
-    //-------------------------------------------------------------------------
-
-    /**
-     * Function to run before each test is executed.
-     * @return {Void}
-     * @method setUp
-     */
-    setUp : function () /*:Void*/ {
-    },
-    
-    /**
-     * Function to run after each test is executed.
-     * @return {Void}
-     * @method tearDown
-     */
-    tearDown: function () /*:Void*/ {
-    }
-    
-};
-YAHOO.namespace("tool");
-
-/**
- * The YUI test tool
- * @module yuitest
- * @namespace YAHOO.tool
- * @requires yahoo,dom,event,logger
- * @optional event-simulte
- */
-
-
-//-----------------------------------------------------------------------------
-// TestRunner object
-//-----------------------------------------------------------------------------
-
-
-YAHOO.tool.TestRunner = (function(){
-
-    /**
-     * A node in the test tree structure. May represent a TestSuite, TestCase, or
-     * test function.
-     * @param {Variant} testObject A TestSuite, TestCase, or the name of a test function.
-     * @class TestNode
-     * @constructor
-     * @private
-     */
-    function TestNode(testObject /*:Variant*/){
-    
-        /**
-         * The TestSuite, TestCase, or test function represented by this node.
-         * @type Variant
-         * @property testObject
-         */
-        this.testObject = testObject;
-        
-        /**
-         * Pointer to this node's first child.
-         * @type TestNode
-         * @property firstChild
-         */        
-        this.firstChild /*:TestNode*/ = null;
-        
-        /**
-         * Pointer to this node's last child.
-         * @type TestNode
-         * @property lastChild
-         */        
-        this.lastChild = null;
-        
-        /**
-         * Pointer to this node's parent.
-         * @type TestNode
-         * @property parent
-         */        
-        this.parent = null; 
-   
-        /**
-         * Pointer to this node's next sibling.
-         * @type TestNode
-         * @property next
-         */        
-        this.next = null;
-        
-        /**
-         * Test results for this test object.
-         * @type object
-         * @property results
-         */                
-        this.results /*:Object*/ = {
-            passed : 0,
-            failed : 0,
-            total : 0,
-            ignored : 0
-        };
-        
-        //initialize results
-        if (testObject instanceof YAHOO.tool.TestSuite){
-            this.results.type = "testsuite";
-            this.results.name = testObject.name;
-        } else if (testObject instanceof YAHOO.tool.TestCase){
-            this.results.type = "testcase";
-            this.results.name = testObject.name;
-        }
-       
-    }
-    
-    TestNode.prototype = {
-    
-        /**
-         * Appends a new test object (TestSuite, TestCase, or test function name) as a child
-         * of this node.
-         * @param {Variant} testObject A TestSuite, TestCase, or the name of a test function.
-         * @return {Void}
-         */
-        appendChild : function (testObject /*:Variant*/) /*:Void*/{
-            var node = new TestNode(testObject);
-            if (this.firstChild === null){
-                this.firstChild = this.lastChild = node;
-            } else {
-                this.lastChild.next = node;
-                this.lastChild = node;
-            }
-            node.parent = this;
-            return node;
-        }       
-    };
-
-    /**
-     * Runs test suites and test cases, providing events to allowing for the
-     * interpretation of test results.
-     * @namespace YAHOO.tool
-     * @class TestRunner
-     * @static
-     */
-    function TestRunner(){
-    
-        //inherit from EventProvider
-        TestRunner.superclass.constructor.apply(this,arguments);
-        
-        /**
-         * Suite on which to attach all TestSuites and TestCases to be run.
-         * @type YAHOO.tool.TestSuite
-         * @property masterSuite
-         * @private
-         * @static
-         */
-        this.masterSuite /*:YAHOO.tool.TestSuite*/ = new YAHOO.tool.TestSuite("YUI Test Results");        
-
-        /**
-         * Pointer to the current node in the test tree.
-         * @type TestNode
-         * @private
-         * @property _cur
-         * @static
-         */
-        this._cur = null;
-        
-        /**
-         * Pointer to the root node in the test tree.
-         * @type TestNode
-         * @private
-         * @property _root
-         * @static
-         */
-        this._root = null;
-        
-        //create events
-        var events /*:Array*/ = [
-            this.TEST_CASE_BEGIN_EVENT,
-            this.TEST_CASE_COMPLETE_EVENT,
-            this.TEST_SUITE_BEGIN_EVENT,
-            this.TEST_SUITE_COMPLETE_EVENT,
-            this.TEST_PASS_EVENT,
-            this.TEST_FAIL_EVENT,
-            this.TEST_IGNORE_EVENT,
-            this.COMPLETE_EVENT,
-            this.BEGIN_EVENT
-        ];
-        for (var i=0; i < events.length; i++){
-            this.createEvent(events[i], { scope: this });
-        }       
-   
-    }
-    
-    YAHOO.lang.extend(TestRunner, YAHOO.util.EventProvider, {
-    
-        //-------------------------------------------------------------------------
-        // Constants
-        //-------------------------------------------------------------------------
-         
-        /**
-         * Fires when a test case is opened but before the first 
-         * test is executed.
-         * @event testcasebegin
-         */         
-        TEST_CASE_BEGIN_EVENT /*:String*/ : "testcasebegin",
-        
-        /**
-         * Fires when all tests in a test case have been executed.
-         * @event testcasecomplete
-         */        
-        TEST_CASE_COMPLETE_EVENT /*:String*/ : "testcasecomplete",
-        
-        /**
-         * Fires when a test suite is opened but before the first 
-         * test is executed.
-         * @event testsuitebegin
-         */        
-        TEST_SUITE_BEGIN_EVENT /*:String*/ : "testsuitebegin",
-        
-        /**
-         * Fires when all test cases in a test suite have been
-         * completed.
-         * @event testsuitecomplete
-         */        
-        TEST_SUITE_COMPLETE_EVENT /*:String*/ : "testsuitecomplete",
-        
-        /**
-         * Fires when a test has passed.
-         * @event pass
-         */        
-        TEST_PASS_EVENT /*:String*/ : "pass",
-        
-        /**
-         * Fires when a test has failed.
-         * @event fail
-         */        
-        TEST_FAIL_EVENT /*:String*/ : "fail",
-        
-        /**
-         * Fires when a test has been ignored.
-         * @event ignore
-         */        
-        TEST_IGNORE_EVENT /*:String*/ : "ignore",
-        
-        /**
-         * Fires when all test suites and test cases have been completed.
-         * @event complete
-         */        
-        COMPLETE_EVENT /*:String*/ : "complete",
-        
-        /**
-         * Fires when the run() method is called.
-         * @event begin
-         */        
-        BEGIN_EVENT /*:String*/ : "begin",    
-        
-        //-------------------------------------------------------------------------
-        // Test Tree-Related Methods
-        //-------------------------------------------------------------------------
-
-        /**
-         * Adds a test case to the test tree as a child of the specified node.
-         * @param {TestNode} parentNode The node to add the test case to as a child.
-         * @param {YAHOO.tool.TestCase} testCase The test case to add.
-         * @return {Void}
-         * @static
-         * @private
-         * @method _addTestCaseToTestTree
-         */
-       _addTestCaseToTestTree : function (parentNode /*:TestNode*/, testCase /*:YAHOO.tool.TestCase*/) /*:Void*/{
-            
-            //add the test suite
-            var node = parentNode.appendChild(testCase);
-            
-            //iterate over the items in the test case
-            for (var prop in testCase){
-                if (prop.indexOf("test") === 0 && YAHOO.lang.isFunction(testCase[prop])){
-                    node.appendChild(prop);
-                }
-            }
-         
-        },
-        
-        /**
-         * Adds a test suite to the test tree as a child of the specified node.
-         * @param {TestNode} parentNode The node to add the test suite to as a child.
-         * @param {YAHOO.tool.TestSuite} testSuite The test suite to add.
-         * @return {Void}
-         * @static
-         * @private
-         * @method _addTestSuiteToTestTree
-         */
-        _addTestSuiteToTestTree : function (parentNode /*:TestNode*/, testSuite /*:YAHOO.tool.TestSuite*/) /*:Void*/ {
-            
-            //add the test suite
-            var node = parentNode.appendChild(testSuite);
-            
-            //iterate over the items in the master suite
-            for (var i=0; i < testSuite.items.length; i++){
-                if (testSuite.items[i] instanceof YAHOO.tool.TestSuite) {
-                    this._addTestSuiteToTestTree(node, testSuite.items[i]);
-                } else if (testSuite.items[i] instanceof YAHOO.tool.TestCase) {
-                    this._addTestCaseToTestTree(node, testSuite.items[i]);
-                }                   
-            }            
-        },
-        
-        /**
-         * Builds the test tree based on items in the master suite. The tree is a hierarchical
-         * representation of the test suites, test cases, and test functions. The resulting tree
-         * is stored in _root and the pointer _cur is set to the root initially.
-         * @return {Void}
-         * @static
-         * @private
-         * @method _buildTestTree
-         */
-        _buildTestTree : function () /*:Void*/ {
-        
-            this._root = new TestNode(this.masterSuite);
-            this._cur = this._root;
-            
-            //iterate over the items in the master suite
-            for (var i=0; i < this.masterSuite.items.length; i++){
-                if (this.masterSuite.items[i] instanceof YAHOO.tool.TestSuite) {
-                    this._addTestSuiteToTestTree(this._root, this.masterSuite.items[i]);
-                } else if (this.masterSuite.items[i] instanceof YAHOO.tool.TestCase) {
-                    this._addTestCaseToTestTree(this._root, this.masterSuite.items[i]);
-                }                   
-            }            
-        
-        }, 
-    
-        //-------------------------------------------------------------------------
-        // Private Methods
-        //-------------------------------------------------------------------------
-        
-        /**
-         * Handles the completion of a test object's tests. Tallies test results 
-         * from one level up to the next.
-         * @param {TestNode} node The TestNode representing the test object.
-         * @return {Void}
-         * @method _handleTestObjectComplete
-         * @private
-         * @static
-         */
-        _handleTestObjectComplete : function (node /*:TestNode*/) /*:Void*/ {
-            if (YAHOO.lang.isObject(node.testObject)){
-                node.parent.results.passed += node.results.passed;
-                node.parent.results.failed += node.results.failed;
-                node.parent.results.total += node.results.total;                
-                node.parent.results.ignored += node.results.ignored;                
-                node.parent.results[node.testObject.name] = node.results;
-            
-                if (node.testObject instanceof YAHOO.tool.TestSuite){
-                    node.testObject.tearDown();
-                    this.fireEvent(this.TEST_SUITE_COMPLETE_EVENT, { testSuite: node.testObject, results: node.results});
-                } else if (node.testObject instanceof YAHOO.tool.TestCase){
-                    this.fireEvent(this.TEST_CASE_COMPLETE_EVENT, { testCase: node.testObject, results: node.results});
-                }      
-            } 
-        },                
-        
-        //-------------------------------------------------------------------------
-        // Navigation Methods
-        //-------------------------------------------------------------------------
-        
-        /**
-         * Retrieves the next node in the test tree.
-         * @return {TestNode} The next node in the test tree or null if the end is reached.
-         * @private
-         * @static
-         * @method _next
-         */
-        _next : function () /*:TestNode*/ {
-        
-            if (this._cur.firstChild) {
-                this._cur = this._cur.firstChild;
-            } else if (this._cur.next) {
-                this._cur = this._cur.next;            
-            } else {
-                while (this._cur && !this._cur.next && this._cur !== this._root){
-                    this._handleTestObjectComplete(this._cur);
-                    this._cur = this._cur.parent;
-                }
-                
-                if (this._cur == this._root){
-                    this._cur.results.type = "report";
-                    this._cur.results.timestamp = (new Date()).toLocaleString();
-                    this._cur.results.duration = (new Date()) - this._cur.results.duration;
-                    this.fireEvent(this.COMPLETE_EVENT, { results: this._cur.results});
-                    this._cur = null;
-                } else {
-                    this._handleTestObjectComplete(this._cur);               
-                    this._cur = this._cur.next;                
-                }
-            }
-        
-            return this._cur;
-        },
-        
-        /**
-         * Runs a test case or test suite, returning the results.
-         * @param {YAHOO.tool.TestCase|YAHOO.tool.TestSuite} testObject The test case or test suite to run.
-         * @return {Object} Results of the execution with properties passed, failed, and total.
-         * @private
-         * @method _run
-         * @static
-         */
-        _run : function () /*:Void*/ {
-        
-            //flag to indicate if the TestRunner should wait before continuing
-            var shouldWait /*:Boolean*/ = false;
-            
-            //get the next test node
-            var node = this._next();
-            
-            if (node !== null) {
-                var testObject = node.testObject;
-                
-                //figure out what to do
-                if (YAHOO.lang.isObject(testObject)){
-                    if (testObject instanceof YAHOO.tool.TestSuite){
-                        this.fireEvent(this.TEST_SUITE_BEGIN_EVENT, { testSuite: testObject });
-                        testObject.setUp();
-                    } else if (testObject instanceof YAHOO.tool.TestCase){
-                        this.fireEvent(this.TEST_CASE_BEGIN_EVENT, { testCase: testObject });
-                    }
-                    
-                    //some environments don't support setTimeout
-                    if (typeof setTimeout != "undefined"){                    
-                        setTimeout(function(){
-                            YAHOO.tool.TestRunner._run();
-                        }, 0);
-                    } else {
-                        this._run();
-                    }
-                } else {
-                    this._runTest(node);
-                }
-
-            }
-        },
-        
-        _resumeTest : function (segment /*:Function*/) /*:Void*/ {
-        
-            //get relevant information
-            var node /*:TestNode*/ = this._cur;
-            var testName /*:String*/ = node.testObject;
-            var testCase /*:YAHOO.tool.TestCase*/ = node.parent.testObject;
-            
-            //cancel other waits if available
-            if (testCase.__yui_wait){
-                clearTimeout(testCase.__yui_wait);
-                delete testCase.__yui_wait;
-            }            
-            
-            //get the "should" test cases
-            var shouldFail /*:Object*/ = (testCase._should.fail || {})[testName];
-            var shouldError /*:Object*/ = (testCase._should.error || {})[testName];
-            
-            //variable to hold whether or not the test failed
-            var failed /*:Boolean*/ = false;
-            var error /*:Error*/ = null;
-                
-            //try the test
-            try {
-            
-                //run the test
-                segment.apply(testCase);
-                
-                //if it should fail, and it got here, then it's a fail because it didn't
-                if (shouldFail){
-                    error = new YAHOO.util.ShouldFail();
-                    failed = true;
-                } else if (shouldError){
-                    error = new YAHOO.util.ShouldError();
-                    failed = true;
-                }
-                           
-            } catch (thrown /*:Error*/){
-                if (thrown instanceof YAHOO.util.AssertionError) {
-                    if (!shouldFail){
-                        error = thrown;
-                        failed = true;
-                    }
-                } else if (thrown instanceof YAHOO.tool.TestCase.Wait){
-                
-                    if (YAHOO.lang.isFunction(thrown.segment)){
-                        if (YAHOO.lang.isNumber(thrown.delay)){
-                        
-                            //some environments don't support setTimeout
-                            if (typeof setTimeout != "undefined"){
-                                testCase.__yui_wait = setTimeout(function(){
-                                    YAHOO.tool.TestRunner._resumeTest(thrown.segment);
-                                }, thrown.delay);                             
-                            } else {
-                                throw new Error("Asynchronous tests not supported in this environment.");
-                            }
-                        }
-                    }
-                    
-                    return;
-                
-                } else {
-                    //first check to see if it should error
-                    if (!shouldError) {                        
-                        error = new YAHOO.util.UnexpectedError(thrown);
-                        failed = true;
-                    } else {
-                        //check to see what type of data we have
-                        if (YAHOO.lang.isString(shouldError)){
-                            
-                            //if it's a string, check the error message
-                            if (thrown.message != shouldError){
-                                error = new YAHOO.util.UnexpectedError(thrown);
-                                failed = true;                                    
-                            }
-                        } else if (YAHOO.lang.isFunction(shouldError)){
-                        
-                            //if it's a function, see if the error is an instance of it
-                            if (!(thrown instanceof shouldError)){
-                                error = new YAHOO.util.UnexpectedError(thrown);
-                                failed = true;
-                            }
-                        
-                        } else if (YAHOO.lang.isObject(shouldError)){
-                        
-                            //if it's an object, check the instance and message
-                            if (!(thrown instanceof shouldError.constructor) || 
-                                    thrown.message != shouldError.message){
-                                error = new YAHOO.util.UnexpectedError(thrown);
-                                failed = true;                                    
-                            }
-                        
-                        }
-                    
-                    }
-                }
-                
-            }
-            
-            //fireEvent appropriate event
-            if (failed) {
-                this.fireEvent(this.TEST_FAIL_EVENT, { testCase: testCase, testName: testName, error: error });
-            } else {
-                this.fireEvent(this.TEST_PASS_EVENT, { testCase: testCase, testName: testName });
-            }
-            
-            //run the tear down
-            testCase.tearDown();
-            
-            //update results
-            node.parent.results[testName] = { 
-                result: failed ? "fail" : "pass",
-                message: error ? error.getMessage() : "Test passed",
-                type: "test",
-                name: testName
-            };
-            
-            if (failed){
-                node.parent.results.failed++;
-            } else {
-                node.parent.results.passed++;
-            }
-            node.parent.results.total++;
-
-            //set timeout not supported in all environments
-            if (typeof setTimeout != "undefined"){
-                setTimeout(function(){
-                    YAHOO.tool.TestRunner._run();
-                }, 0);
-            } else {
-                this._run();
-            }
-        
-        },
-                
-        /**
-         * Runs a single test based on the data provided in the node.
-         * @param {TestNode} node The TestNode representing the test to run.
-         * @return {Void}
-         * @static
-         * @private
-         * @name _runTest
-         */
-        _runTest : function (node /*:TestNode*/) /*:Void*/ {
-        
-            //get relevant information
-            var testName /*:String*/ = node.testObject;
-            var testCase /*:YAHOO.tool.TestCase*/ = node.parent.testObject;
-            var test /*:Function*/ = testCase[testName];
-            
-            //get the "should" test cases
-            var shouldIgnore /*:Object*/ = (testCase._should.ignore || {})[testName];
-            
-            //figure out if the test should be ignored or not
-            if (shouldIgnore){
-            
-                //update results
-                node.parent.results[testName] = { 
-                    result: "ignore",
-                    message: "Test ignored",
-                    type: "test",
-                    name: testName
-                };
-                
-                node.parent.results.ignored++;
-                node.parent.results.total++;
-            
-                this.fireEvent(this.TEST_IGNORE_EVENT, { testCase: testCase, testName: testName });
-                
-                //some environments don't support setTimeout
-                if (typeof setTimeout != "undefined"){                    
-                    setTimeout(function(){
-                        YAHOO.tool.TestRunner._run();
-                    }, 0);              
-                } else {
-                    this._run();
-                }
-
-            } else {
-            
-                //run the setup
-                testCase.setUp();
-                
-                //now call the body of the test
-                this._resumeTest(test);                
-            }
-
-        },        
-        
-        //-------------------------------------------------------------------------
-        // Protected Methods
-        //-------------------------------------------------------------------------   
-    
-        /**
-         * Fires events for the TestRunner. This overrides the default fireEvent()
-         * method from EventProvider to add the type property to the data that is
-         * passed through on each event call.
-         * @param {String} type The type of event to fire.
-         * @param {Object} data (Optional) Data for the event.
-         * @method fireEvent
-         * @static
-         * @protected
-         */
-        fireEvent : function (type /*:String*/, data /*:Object*/) /*:Void*/ {
-            data = data || {};
-            data.type = type;
-            TestRunner.superclass.fireEvent.call(this, type, data);
-        },
-        
-        //-------------------------------------------------------------------------
-        // Public Methods
-        //-------------------------------------------------------------------------   
-    
-        /**
-         * Adds a test suite or test case to the list of test objects to run.
-         * @param testObject Either a TestCase or a TestSuite that should be run.
-         * @return {Void}
-         * @method add
-         * @static
-         */
-        add : function (testObject /*:Object*/) /*:Void*/ {
-            this.masterSuite.add(testObject);
-        },
-        
-        /**
-         * Removes all test objects from the runner.
-         * @return {Void}
-         * @method clear
-         * @static
-         */
-        clear : function () /*:Void*/ {
-            this.masterSuite.items = [];
-        },
-        
-        /**
-         * Resumes the TestRunner after wait() was called.
-         * @param {Function} segment The function to run as the rest
-         *      of the haulted test.
-         * @return {Void}
-         * @method resume
-         * @static
-         */
-        resume : function (segment /*:Function*/) /*:Void*/ {
-            this._resumeTest(segment || function(){});
-        },
-    
-        /**
-         * Runs the test suite.
-         * @return {Void}
-         * @method run
-         * @static
-         */
-        run : function (testObject /*:Object*/) /*:Void*/ {
-            
-            //pointer to runner to avoid scope issues 
-            var runner = YAHOO.tool.TestRunner;
-
-            //build the test tree
-            runner._buildTestTree();
-            
-            //set when the test started
-            runner._root.results.duration = (new Date()).getTime();
-            
-            //fire the begin event
-            runner.fireEvent(runner.BEGIN_EVENT);
-       
-            //begin the testing
-            runner._run();
-        }    
-    });
-    
-    return new TestRunner();
-    
-})();
-YAHOO.namespace("util");
-
-//-----------------------------------------------------------------------------
-// Assert object
-//-----------------------------------------------------------------------------
-
-/**
- * The Assert object provides functions to test JavaScript values against
- * known and expected results. Whenever a comparison (assertion) fails,
- * an error is thrown.
- *
- * @namespace YAHOO.util
- * @class Assert
- * @static
- */
-YAHOO.util.Assert = {
-
-    //-------------------------------------------------------------------------
-    // Helper Methods
-    //-------------------------------------------------------------------------
-    
-    /**
-     * Formats a message so that it can contain the original assertion message
-     * in addition to the custom message.
-     * @param {String} customMessage The message passed in by the developer.
-     * @param {String} defaultMessage The message created by the error by default.
-     * @return {String} The final error message, containing either or both.
-     * @protected
-     * @static
-     * @method _formatMessage
-     */
-    _formatMessage : function (customMessage /*:String*/, defaultMessage /*:String*/) /*:String*/ {
-        var message = customMessage;
-        if (YAHOO.lang.isString(customMessage) && customMessage.length > 0){
-            return YAHOO.lang.substitute(customMessage, { message: defaultMessage });
-        } else {
-            return defaultMessage;
-        }        
-    },
-    
-    //-------------------------------------------------------------------------
-    // Generic Assertion Methods
-    //-------------------------------------------------------------------------
-    
-    /** 
-     * Forces an assertion error to occur.
-     * @param {String} message (Optional) The message to display with the failure.
-     * @method fail
-     * @static
-     */
-    fail : function (message /*:String*/) /*:Void*/ {
-        throw new YAHOO.util.AssertionError(this._formatMessage(message, "Test force-failed."));
-    },       
-    
-    //-------------------------------------------------------------------------
-    // Equality Assertion Methods
-    //-------------------------------------------------------------------------    
-    
-    /**
-     * Asserts that a value is equal to another. This uses the double equals sign
-     * so type cohersion may occur.
-     * @param {Object} expected The expected value.
-     * @param {Object} actual The actual value to test.
-     * @param {String} message (Optional) The message to display if the assertion fails.
-     * @method areEqual
-     * @static
-     */
-    areEqual : function (expected /*:Object*/, actual /*:Object*/, message /*:String*/) /*:Void*/ {
-        if (expected != actual) {
-            throw new YAHOO.util.ComparisonFailure(this._formatMessage(message, "Values should be equal."), expected, actual);
-        }
-    },
-    
-    /**
-     * Asserts that a value is not equal to another. This uses the double equals sign
-     * so type cohersion may occur.
-     * @param {Object} unexpected The unexpected value.
-     * @param {Object} actual The actual value to test.
-     * @param {String} message (Optional) The message to display if the assertion fails.
-     * @method areNotEqual
-     * @static
-     */
-    areNotEqual : function (unexpected /*:Object*/, actual /*:Object*/, 
-                         message /*:String*/) /*:Void*/ {
-        if (unexpected == actual) {
-            throw new YAHOO.util.UnexpectedValue(this._formatMessage(message, "Values should not be equal."), unexpected);
-        }
-    },
-    
-    /**
-     * Asserts that a value is not the same as another. This uses the triple equals sign
-     * so no type cohersion may occur.
-     * @param {Object} unexpected The unexpected value.
-     * @param {Object} actual The actual value to test.
-     * @param {String} message (Optional) The message to display if the assertion fails.
-     * @method areNotSame
-     * @static
-     */
-    areNotSame : function (unexpected /*:Object*/, actual /*:Object*/, message /*:String*/) /*:Void*/ {
-        if (unexpected === actual) {
-            throw new YAHOO.util.UnexpectedValue(this._formatMessage(message, "Values should not be the same."), unexpected);
-        }
-    },
-
-    /**
-     * Asserts that a value is the same as another. This uses the triple equals sign
-     * so no type cohersion may occur.
-     * @param {Object} expected The expected value.
-     * @param {Object} actual The actual value to test.
-     * @param {String} message (Optional) The message to display if the assertion fails.
-     * @method areSame
-     * @static
-     */
-    areSame : function (expected /*:Object*/, actual /*:Object*/, message /*:String*/) /*:Void*/ {
-        if (expected !== actual) {
-            throw new YAHOO.util.ComparisonFailure(this._formatMessage(message, "Values should be the same."), expected, actual);
-        }
-    },    
-    
-    //-------------------------------------------------------------------------
-    // Boolean Assertion Methods
-    //-------------------------------------------------------------------------    
-    
-    /**
-     * Asserts that a value is false. This uses the triple equals sign
-     * so no type cohersion may occur.
-     * @param {Object} actual The actual value to test.
-     * @param {String} message (Optional) The message to display if the assertion fails.
-     * @method isFalse
-     * @static
-     */
-    isFalse : function (actual /*:Boolean*/, message /*:String*/) {
-        if (false !== actual) {
-            throw new YAHOO.util.ComparisonFailure(this._formatMessage(message, "Value should be false."), false, actual);
-        }
-    },
-    
-    /**
-     * Asserts that a value is true. This uses the triple equals sign
-     * so no type cohersion may occur.
-     * @param {Object} actual The actual value to test.
-     * @param {String} message (Optional) The message to display if the assertion fails.
-     * @method isTrue
-     * @static
-     */
-    isTrue : function (actual /*:Boolean*/, message /*:String*/) /*:Void*/ {
-        if (true !== actual) {
-            throw new YAHOO.util.ComparisonFailure(this._formatMessage(message, "Value should be true."), true, actual);
-        }
-
-    },
-    
-    //-------------------------------------------------------------------------
-    // Special Value Assertion Methods
-    //-------------------------------------------------------------------------    
-    
-    /**
-     * Asserts that a value is not a number.
-     * @param {Object} actual The value to test.
-     * @param {String} message (Optional) The message to display if the assertion fails.
-     * @method isNaN
-     * @static
-     */
-    isNaN : function (actual /*:Object*/, message /*:String*/) /*:Void*/{
-        if (!isNaN(actual)){
-            throw new YAHOO.util.ComparisonFailure(this._formatMessage(message, "Value should be NaN."), NaN, actual);
-        }    
-    },
-    
-    /**
-     * Asserts that a value is not the special NaN value.
-     * @param {Object} actual The value to test.
-     * @param {String} message (Optional) The message to display if the assertion fails.
-     * @method isNotNaN
-     * @static
-     */
-    isNotNaN : function (actual /*:Object*/, message /*:String*/) /*:Void*/{
-        if (isNaN(actual)){
-            throw new YAHOO.util.UnexpectedValue(this._formatMessage(message, "Values should not be NaN."), NaN);
-        }    
-    },
-    
-    /**
-     * Asserts that a value is not null. This uses the triple equals sign
-     * so no type cohersion may occur.
-     * @param {Object} actual The actual value to test.
-     * @param {String} message (Optional) The message to display if the assertion fails.
-     * @method isNotNull
-     * @static
-     */
-    isNotNull : function (actual /*:Object*/, message /*:String*/) /*:Void*/ {
-        if (YAHOO.lang.isNull(actual)) {
-            throw new YAHOO.util.UnexpectedValue(this._formatMessage(message, "Values should not be null."), null);
-        }
-    },
-
-    /**
-     * Asserts that a value is not undefined. This uses the triple equals sign
-     * so no type cohersion may occur.
-     * @param {Object} actual The actual value to test.
-     * @param {String} message (Optional) The message to display if the assertion fails.
-     * @method isNotUndefined
-     * @static
-     */
-    isNotUndefined : function (actual /*:Object*/, message /*:String*/) /*:Void*/ {
-        if (YAHOO.lang.isUndefined(actual)) {
-            throw new YAHOO.util.UnexpectedValue(this._formatMessage(message, "Value should not be undefined."), undefined);
-        }
-    },
-
-    /**
-     * Asserts that a value is null. This uses the triple equals sign
-     * so no type cohersion may occur.
-     * @param {Object} actual The actual value to test.
-     * @param {String} message (Optional) The message to display if the assertion fails.
-     * @method isNull
-     * @static
-     */
-    isNull : function (actual /*:Object*/, message /*:String*/) /*:Void*/ {
-        if (!YAHOO.lang.isNull(actual)) {
-            throw new YAHOO.util.ComparisonFailure(this._formatMessage(message, "Value should be null."), null, actual);
-        }
-    },
-        
-    /**
-     * Asserts that a value is undefined. This uses the triple equals sign
-     * so no type cohersion may occur.
-     * @param {Object} actual The actual value to test.
-     * @param {String} message (Optional) The message to display if the assertion fails.
-     * @method isUndefined
-     * @static
-     */
-    isUndefined : function (actual /*:Object*/, message /*:String*/) /*:Void*/ {
-        if (!YAHOO.lang.isUndefined(actual)) {
-            throw new YAHOO.util.ComparisonFailure(this._formatMessage(message, "Value should be undefined."), undefined, actual);
-        }
-    },    
-    
-    //--------------------------------------------------------------------------
-    // Instance Assertion Methods
-    //--------------------------------------------------------------------------    
-   
-    /**
-     * Asserts that a value is an array.
-     * @param {Object} actual The value to test.
-     * @param {String} message (Optional) The message to display if the assertion fails.
-     * @method isArray
-     * @static
-     */
-    isArray : function (actual /*:Object*/, message /*:String*/) /*:Void*/ {
-        if (!YAHOO.lang.isArray(actual)){
-            throw new YAHOO.util.UnexpectedValue(this._formatMessage(message, "Value should be an array."), actual);
-        }    
-    },
-   
-    /**
-     * Asserts that a value is a Boolean.
-     * @param {Object} actual The value to test.
-     * @param {String} message (Optional) The message to display if the assertion fails.
-     * @method isBoolean
-     * @static
-     */
-    isBoolean : function (actual /*:Object*/, message /*:String*/) /*:Void*/ {
-        if (!YAHOO.lang.isBoolean(actual)){
-            throw new YAHOO.util.UnexpectedValue(this._formatMessage(message, "Value should be a Boolean."), actual);
-        }    
-    },
-   
-    /**
-     * Asserts that a value is a function.
-     * @param {Object} actual The value to test.
-     * @param {String} message (Optional) The message to display if the assertion fails.
-     * @method isFunction
-     * @static
-     */
-    isFunction : function (actual /*:Object*/, message /*:String*/) /*:Void*/ {
-        if (!YAHOO.lang.isFunction(actual)){
-            throw new YAHOO.util.UnexpectedValue(this._formatMessage(message, "Value should be a function."), actual);
-        }    
-    },
-   
-    /**
-     * Asserts that a value is an instance of a particular object. This may return
-     * incorrect results when comparing objects from one frame to constructors in
-     * another frame. For best results, don't use in a cross-frame manner.
-     * @param {Function} expected The function that the object should be an instance of.
-     * @param {Object} actual The object to test.
-     * @param {String} message (Optional) The message to display if the assertion fails.
-     * @method isInstanceOf
-     * @static
-     */
-    isInstanceOf : function (expected /*:Function*/, actual /*:Object*/, message /*:String*/) /*:Void*/ {
-        if (!(actual instanceof expected)){
-            throw new YAHOO.util.ComparisonFailure(this._formatMessage(message, "Value isn't an instance of expected type."), expected, actual);
-        }
-    },
-    
-    /**
-     * Asserts that a value is a number.
-     * @param {Object} actual The value to test.
-     * @param {String} message (Optional) The message to display if the assertion fails.
-     * @method isNumber
-     * @static
-     */
-    isNumber : function (actual /*:Object*/, message /*:String*/) /*:Void*/ {
-        if (!YAHOO.lang.isNumber(actual)){
-            throw new YAHOO.util.UnexpectedValue(this._formatMessage(message, "Value should be a number."), actual);
-        }    
-    },    
-    
-    /**
-     * Asserts that a value is an object.
-     * @param {Object} actual The value to test.
-     * @param {String} message (Optional) The message to display if the assertion fails.
-     * @method isObject
-     * @static
-     */
-    isObject : function (actual /*:Object*/, message /*:String*/) /*:Void*/ {
-        if (!YAHOO.lang.isObject(actual)){
-            throw new YAHOO.util.UnexpectedValue(this._formatMessage(message, "Value should be an object."), actual);
-        }
-    },
-    
-    /**
-     * Asserts that a value is a string.
-     * @param {Object} actual The value to test.
-     * @param {String} message (Optional) The message to display if the assertion fails.
-     * @method isString
-     * @static
-     */
-    isString : function (actual /*:Object*/, message /*:String*/) /*:Void*/ {
-        if (!YAHOO.lang.isString(actual)){
-            throw new YAHOO.util.UnexpectedValue(this._formatMessage(message, "Value should be a string."), actual);
-        }
-    },
-    
-    /**
-     * Asserts that a value is of a particular type. 
-     * @param {String} expectedType The expected type of the variable.
-     * @param {Object} actualValue The actual value to test.
-     * @param {String} message (Optional) The message to display if the assertion fails.
-     * @method isTypeOf
-     * @static
-     */
-    isTypeOf : function (expected /*:String*/, actual /*:Object*/, message /*:String*/) /*:Void*/{
-        if (typeof actual != expected){
-            throw new YAHOO.util.ComparisonFailure(this._formatMessage(message, "Value should be of type " + expected + "."), expected, typeof actual);
-        }
-    }
-};
-
-//-----------------------------------------------------------------------------
-// Assertion errors
-//-----------------------------------------------------------------------------
-
-/**
- * AssertionError is thrown whenever an assertion fails. It provides methods
- * to more easily get at error information and also provides a base class
- * from which more specific assertion errors can be derived.
- *
- * @param {String} message The message to display when the error occurs.
- * @namespace YAHOO.util
- * @class AssertionError
- * @extends Error
- * @constructor
- */ 
-YAHOO.util.AssertionError = function (message /*:String*/){
-
-    //call superclass
-    //arguments.callee.superclass.constructor.call(this, message);
-    
-    /*
-     * Error message. Must be duplicated to ensure browser receives it.
-     * @type String
-     * @property message
-     */
-    this.message /*:String*/ = message;
-    
-    /**
-     * The name of the error that occurred.
-     * @type String
-     * @property name
-     */
-    this.name /*:String*/ = "AssertionError";
-};
-
-//inherit methods
-YAHOO.lang.extend(YAHOO.util.AssertionError, Object, {
-
-    /**
-     * Returns a fully formatted error for an assertion failure. This should
-     * be overridden by all subclasses to provide specific information.
-     * @method getMessage
-     * @return {String} A string describing the error.
-     */
-    getMessage : function () /*:String*/ {
-        return this.message;
-    },
-    
-    /**
-     * Returns a string representation of the error.
-     * @method toString
-     * @return {String} A string representation of the error.
-     */
-    toString : function () /*:String*/ {
-        return this.name + ": " + this.getMessage();
-    }
-    
-});
-
-/**
- * ComparisonFailure is subclass of AssertionError that is thrown whenever
- * a comparison between two values fails. It provides mechanisms to retrieve
- * both the expected and actual value.
- *
- * @param {String} message The message to display when the error occurs.
- * @param {Object} expected The expected value.
- * @param {Object} actual The actual value that caused the assertion to fail.
- * @namespace YAHOO.util
- * @extends YAHOO.util.AssertionError
- * @class ComparisonFailure
- * @constructor
- */ 
-YAHOO.util.ComparisonFailure = function (message /*:String*/, expected /*:Object*/, actual /*:Object*/){
-
-    //call superclass
-    YAHOO.util.AssertionError.call(this, message);
-    
-    /**
-     * The expected value.
-     * @type Object
-     * @property expected
-     */
-    this.expected /*:Object*/ = expected;
-    
-    /**
-     * The actual value.
-     * @type Object
-     * @property actual
-     */
-    this.actual /*:Object*/ = actual;
-    
-    /**
-     * The name of the error that occurred.
-     * @type String
-     * @property name
-     */
-    this.name /*:String*/ = "ComparisonFailure";
-    
-};
-
-//inherit methods
-YAHOO.lang.extend(YAHOO.util.ComparisonFailure, YAHOO.util.AssertionError, {
-
-    /**
-     * Returns a fully formatted error for an assertion failure. This message
-     * provides information about the expected and actual values.
-     * @method toString
-     * @return {String} A string describing the error.
-     */
-    getMessage : function () /*:String*/ {
-        return this.message + "\nExpected: " + this.expected + " (" + (typeof this.expected) + ")"  +
-            "\nActual:" + this.actual + " (" + (typeof this.actual) + ")";
-    }
-
-});
-
-/**
- * UnexpectedValue is subclass of AssertionError that is thrown whenever
- * a value was unexpected in its scope. This typically means that a test
- * was performed to determine that a value was *not* equal to a certain
- * value.
- *
- * @param {String} message The message to display when the error occurs.
- * @param {Object} unexpected The unexpected value.
- * @namespace YAHOO.util
- * @extends YAHOO.util.AssertionError
- * @class UnexpectedValue
- * @constructor
- */ 
-YAHOO.util.UnexpectedValue = function (message /*:String*/, unexpected /*:Object*/){
-
-    //call superclass
-    YAHOO.util.AssertionError.call(this, message);
-    
-    /**
-     * The unexpected value.
-     * @type Object
-     * @property unexpected
-     */
-    this.unexpected /*:Object*/ = unexpected;
-    
-    /**
-     * The name of the error that occurred.
-     * @type String
-     * @property name
-     */
-    this.name /*:String*/ = "UnexpectedValue";
-    
-};
-
-//inherit methods
-YAHOO.lang.extend(YAHOO.util.UnexpectedValue, YAHOO.util.AssertionError, {
-
-    /**
-     * Returns a fully formatted error for an assertion failure. The message
-     * contains information about the unexpected value that was encountered.
-     * @method getMessage
-     * @return {String} A string describing the error.
-     */
-    getMessage : function () /*:String*/ {
-        return this.message + "\nUnexpected: " + this.unexpected + " (" + (typeof this.unexpected) + ") ";
-    }
-
-});
-
-/**
- * ShouldFail is subclass of AssertionError that is thrown whenever
- * a test was expected to fail but did not.
- *
- * @param {String} message The message to display when the error occurs.
- * @namespace YAHOO.util
- * @extends YAHOO.util.AssertionError
- * @class ShouldFail
- * @constructor
- */  
-YAHOO.util.ShouldFail = function (message /*:String*/){
-
-    //call superclass
-    YAHOO.util.AssertionError.call(this, message || "This test should fail but didn't.");
-    
-    /**
-     * The name of the error that occurred.
-     * @type String
-     * @property name
-     */
-    this.name /*:String*/ = "ShouldFail";
-    
-};
-
-//inherit methods
-YAHOO.lang.extend(YAHOO.util.ShouldFail, YAHOO.util.AssertionError);
-
-/**
- * ShouldError is subclass of AssertionError that is thrown whenever
- * a test is expected to throw an error but doesn't.
- *
- * @param {String} message The message to display when the error occurs.
- * @namespace YAHOO.util
- * @extends YAHOO.util.AssertionError
- * @class ShouldError
- * @constructor
- */  
-YAHOO.util.ShouldError = function (message /*:String*/){
-
-    //call superclass
-    YAHOO.util.AssertionError.call(this, message || "This test should have thrown an error but didn't.");
-    
-    /**
-     * The name of the error that occurred.
-     * @type String
-     * @property name
-     */
-    this.name /*:String*/ = "ShouldError";
-    
-};
-
-//inherit methods
-YAHOO.lang.extend(YAHOO.util.ShouldError, YAHOO.util.AssertionError);
-
-/**
- * UnexpectedError is subclass of AssertionError that is thrown whenever
- * an error occurs within the course of a test and the test was not expected
- * to throw an error.
- *
- * @param {Error} cause The unexpected error that caused this error to be 
- *                      thrown.
- * @namespace YAHOO.util
- * @extends YAHOO.util.AssertionError
- * @class UnexpectedError
- * @constructor
- */  
-YAHOO.util.UnexpectedError = function (cause /*:Object*/){
-
-    //call superclass
-    YAHOO.util.AssertionError.call(this, "Unexpected error: " + cause.message);
-    
-    /**
-     * The unexpected error that occurred.
-     * @type Error
-     * @property cause
-     */
-    this.cause /*:Error*/ = cause;
-    
-    /**
-     * The name of the error that occurred.
-     * @type String
-     * @property name
-     */
-    this.name /*:String*/ = "UnexpectedError";
-    
-    /**
-     * Stack information for the error (if provided).
-     * @type String
-     * @property stack
-     */
-    this.stack /*:String*/ = cause.stack;
-    
-};
-
-//inherit methods
-YAHOO.lang.extend(YAHOO.util.UnexpectedError, YAHOO.util.AssertionError);
-//-----------------------------------------------------------------------------
-// ArrayAssert object
-//-----------------------------------------------------------------------------
-
-/**
- * The ArrayAssert object provides functions to test JavaScript array objects
- * for a variety of cases.
- *
- * @namespace YAHOO.util
- * @class ArrayAssert
- * @static
- */
-YAHOO.util.ArrayAssert = {
-
-    /**
-     * Asserts that a value is present in an array. This uses the triple equals 
-     * sign so no type cohersion may occur.
-     * @param {Object} needle The value that is expected in the array.
-     * @param {Array} haystack An array of values.
-     * @param {String} message (Optional) The message to display if the assertion fails.
-     * @method contains
-     * @static
-     */
-    contains : function (needle /*:Object*/, haystack /*:Array*/, 
-                           message /*:String*/) /*:Void*/ {
-        
-        var found /*:Boolean*/ = false;
-        var Assert = YAHOO.util.Assert;
-        
-        //begin checking values
-        for (var i=0; i < haystack.length && !found; i++){
-            if (haystack[i] === needle) {
-                found = true;
-            }
-        }
-        
-        if (!found){
-            Assert.fail(Assert._formatMessage(message, "Value " + needle + " (" + (typeof needle) + ") not found in array [" + haystack + "]."));
-        }
-    },
-
-    /**
-     * Asserts that a set of values are present in an array. This uses the triple equals 
-     * sign so no type cohersion may occur. For this assertion to pass, all values must
-     * be found.
-     * @param {Object[]} needles An array of values that are expected in the array.
-     * @param {Array} haystack An array of values to check.
-     * @param {String} message (Optional) The message to display if the assertion fails.
-     * @method containsItems
-     * @static
-     */
-    containsItems : function (needles /*:Object[]*/, haystack /*:Array*/, 
-                           message /*:String*/) /*:Void*/ {
-
-        //begin checking values
-        for (var i=0; i < needles.length; i++){
-            this.contains(needles[i], haystack, message);
-        }
-    },
-
-    /**
-     * Asserts that a value matching some condition is present in an array. This uses
-     * a function to determine a match.
-     * @param {Function} matcher A function that returns true if the items matches or false if not.
-     * @param {Array} haystack An array of values.
-     * @param {String} message (Optional) The message to display if the assertion fails.
-     * @method containsMatch
-     * @static
-     */
-    containsMatch : function (matcher /*:Function*/, haystack /*:Array*/, 
-                           message /*:String*/) /*:Void*/ {
-        
-        //check for valid matcher
-        if (typeof matcher != "function"){
-            throw new TypeError("ArrayAssert.containsMatch(): First argument must be a function.");
-        }
-        
-        var found /*:Boolean*/ = false;
-        var Assert = YAHOO.util.Assert;
-        
-        //begin checking values
-        for (var i=0; i < haystack.length && !found; i++){
-            if (matcher(haystack[i])) {
-                found = true;
-            }
-        }
-        
-        if (!found){
-            Assert.fail(Assert._formatMessage(message, "No match found in array [" + haystack + "]."));
-        }
-    },
-
-    /**
-     * Asserts that a value is not present in an array. This uses the triple equals 
-     * sign so no type cohersion may occur.
-     * @param {Object} needle The value that is expected in the array.
-     * @param {Array} haystack An array of values.
-     * @param {String} message (Optional) The message to display if the assertion fails.
-     * @method doesNotContain
-     * @static
-     */
-    doesNotContain : function (needle /*:Object*/, haystack /*:Array*/, 
-                           message /*:String*/) /*:Void*/ {
-        
-        var found /*:Boolean*/ = false;
-        var Assert = YAHOO.util.Assert;
-        
-        //begin checking values
-        for (var i=0; i < haystack.length && !found; i++){
-            if (haystack[i] === needle) {
-                found = true;
-            }
-        }
-        
-        if (found){
-            Assert.fail(Assert._formatMessage(message, "Value found in array [" + haystack + "]."));
-        }
-    },
-
-    /**
-     * Asserts that a set of values are not present in an array. This uses the triple equals 
-     * sign so no type cohersion may occur. For this assertion to pass, all values must
-     * not be found.
-     * @param {Object[]} needles An array of values that are not expected in the array.
-     * @param {Array} haystack An array of values to check.
-     * @param {String} message (Optional) The message to display if the assertion fails.
-     * @method doesNotContainItems
-     * @static
-     */
-    doesNotContainItems : function (needles /*:Object[]*/, haystack /*:Array*/, 
-                           message /*:String*/) /*:Void*/ {
-
-        for (var i=0; i < needles.length; i++){
-            this.doesNotContain(needles[i], haystack, message);
-        }
-
-    },
-        
-    /**
-     * Asserts that no values matching a condition are present in an array. This uses
-     * a function to determine a match.
-     * @param {Function} matcher A function that returns true if the items matches or false if not.
-     * @param {Array} haystack An array of values.
-     * @param {String} message (Optional) The message to display if the assertion fails.
-     * @method doesNotContainMatch
-     * @static
-     */
-    doesNotContainMatch : function (matcher /*:Function*/, haystack /*:Array*/, 
-                           message /*:String*/) /*:Void*/ {
-        
-        //check for valid matcher
-        if (typeof matcher != "function"){
-            throw new TypeError("ArrayAssert.doesNotContainMatch(): First argument must be a function.");
-        }
-
-        var found /*:Boolean*/ = false;
-        var Assert = YAHOO.util.Assert;
-        
-        //begin checking values
-        for (var i=0; i < haystack.length && !found; i++){
-            if (matcher(haystack[i])) {
-                found = true;
-            }
-        }
-        
-        if (found){
-            Assert.fail(Assert._formatMessage(message, "Value found in array [" + haystack + "]."));
-        }
-    },
-        
-    /**
-     * Asserts that the given value is contained in an array at the specified index.
-     * This uses the triple equals sign so no type cohersion will occur.
-     * @param {Object} needle The value to look for.
-     * @param {Array} haystack The array to search in.
-     * @param {int} index The index at which the value should exist.
-     * @param {String} message (Optional) The message to display if the assertion fails.
-     * @method indexOf
-     * @static
-     */
-    indexOf : function (needle /*:Object*/, haystack /*:Array*/, index /*:int*/, message /*:String*/) /*:Void*/ {
-    
-        //try to find the value in the array
-        for (var i=0; i < haystack.length; i++){
-            if (haystack[i] === needle){
-                YAHOO.util.Assert.areEqual(index, i, message || "Value exists at index " + i + " but should be at index " + index + ".");
-                return;
-            }
-        }
-        
-        var Assert = YAHOO.util.Assert;
-        
-        //if it makes it here, it wasn't found at all
-        Assert.fail(Assert._formatMessage(message, "Value doesn't exist in array [" + haystack + "]."));
-    },
-        
-    /**
-     * Asserts that the values in an array are equal, and in the same position,
-     * as values in another array. This uses the double equals sign
-     * so type cohersion may occur. Note that the array objects themselves
-     * need not be the same for this test to pass.
-     * @param {Array} expected An array of the expected values.
-     * @param {Array} actual Any array of the actual values.
-     * @param {String} message (Optional) The message to display if the assertion fails.
-     * @method itemsAreEqual
-     * @static
-     */
-    itemsAreEqual : function (expected /*:Array*/, actual /*:Array*/, 
-                           message /*:String*/) /*:Void*/ {
-        
-        //one may be longer than the other, so get the maximum length
-        var len /*:int*/ = Math.max(expected.length, actual.length || 0);
-        var Assert = YAHOO.util.Assert;
-       
-        //begin checking values
-        for (var i=0; i < len; i++){
-            Assert.areEqual(expected[i], actual[i], 
-                Assert._formatMessage(message, "Values in position " + i + " are not equal."));
-        }
-    },
-    
-    /**
-     * Asserts that the values in an array are equivalent, and in the same position,
-     * as values in another array. This uses a function to determine if the values
-     * are equivalent. Note that the array objects themselves
-     * need not be the same for this test to pass.
-     * @param {Array} expected An array of the expected values.
-     * @param {Array} actual Any array of the actual values.
-     * @param {Function} comparator A function that returns true if the values are equivalent
-     *      or false if not.
-     * @param {String} message (Optional) The message to display if the assertion fails.
-     * @return {Void}
-     * @method itemsAreEquivalent
-     * @static
-     */
-    itemsAreEquivalent : function (expected /*:Array*/, actual /*:Array*/, 
-                           comparator /*:Function*/, message /*:String*/) /*:Void*/ {
-        
-        //make sure the comparator is valid
-        if (typeof comparator != "function"){
-            throw new TypeError("ArrayAssert.itemsAreEquivalent(): Third argument must be a function.");
-        }
-        
-        //one may be longer than the other, so get the maximum length
-        var len /*:int*/ = Math.max(expected.length, actual.length || 0);
-        
-        //begin checking values
-        for (var i=0; i < len; i++){
-            if (!comparator(expected[i], actual[i])){
-                throw new YAHOO.util.ComparisonFailure(YAHOO.util.Assert._formatMessage(message, "Values in position " + i + " are not equivalent."), expected[i], actual[i]);
-            }
-        }
-    },
-    
-    /**
-     * Asserts that an array is empty.
-     * @param {Array} actual The array to test.
-     * @param {String} message (Optional) The message to display if the assertion fails.
-     * @method isEmpty
-     * @static
-     */
-    isEmpty : function (actual /*:Array*/, message /*:String*/) /*:Void*/ {        
-        if (actual.length > 0){
-            var Assert = YAHOO.util.Assert;
-            Assert.fail(Assert._formatMessage(message, "Array should be empty."));
-        }
-    },    
-    
-    /**
-     * Asserts that an array is not empty.
-     * @param {Array} actual The array to test.
-     * @param {String} message (Optional) The message to display if the assertion fails.
-     * @method isNotEmpty
-     * @static
-     */
-    isNotEmpty : function (actual /*:Array*/, message /*:String*/) /*:Void*/ {        
-        if (actual.length === 0){
-            var Assert = YAHOO.util.Assert;
-            Assert.fail(Assert._formatMessage(message, "Array should not be empty."));
-        }
-    },    
-    
-    /**
-     * Asserts that the values in an array are the same, and in the same position,
-     * as values in another array. This uses the triple equals sign
-     * so no type cohersion will occur. Note that the array objects themselves
-     * need not be the same for this test to pass.
-     * @param {Array} expected An array of the expected values.
-     * @param {Array} actual Any array of the actual values.
-     * @param {String} message (Optional) The message to display if the assertion fails.
-     * @method itemsAreSame
-     * @static
-     */
-    itemsAreSame : function (expected /*:Array*/, actual /*:Array*/, 
-                          message /*:String*/) /*:Void*/ {
-        
-        //one may be longer than the other, so get the maximum length
-        var len /*:int*/ = Math.max(expected.length, actual.length || 0);
-        var Assert = YAHOO.util.Assert;
-        
-        //begin checking values
-        for (var i=0; i < len; i++){
-            Assert.areSame(expected[i], actual[i], 
-                Assert._formatMessage(message, "Values in position " + i + " are not the same."));
-        }
-    },
-    
-    /**
-     * Asserts that the given value is contained in an array at the specified index,
-     * starting from the back of the array.
-     * This uses the triple equals sign so no type cohersion will occur.
-     * @param {Object} needle The value to look for.
-     * @param {Array} haystack The array to search in.
-     * @param {int} index The index at which the value should exist.
-     * @param {String} message (Optional) The message to display if the assertion fails.
-     * @method lastIndexOf
-     * @static
-     */
-    lastIndexOf : function (needle /*:Object*/, haystack /*:Array*/, index /*:int*/, message /*:String*/) /*:Void*/ {
-    
-        var Assert = YAHOO.util.Assert;
-    
-        //try to find the value in the array
-        for (var i=haystack.length; i >= 0; i--){
-            if (haystack[i] === needle){
-                Assert.areEqual(index, i, Assert._formatMessage(message, "Value exists at index " + i + " but should be at index " + index + "."));
-                return;
-            }
-        }
-        
-        //if it makes it here, it wasn't found at all
-        Assert.fail(Assert._formatMessage(message, "Value doesn't exist in array."));        
-    }
-    
-};
-YAHOO.namespace("util");
-
-
-//-----------------------------------------------------------------------------
-// ObjectAssert object
-//-----------------------------------------------------------------------------
-
-/**
- * The ObjectAssert object provides functions to test JavaScript objects
- * for a variety of cases.
- *
- * @namespace YAHOO.util
- * @class ObjectAssert
- * @static
- */
-YAHOO.util.ObjectAssert = {
-        
-    /**
-     * Asserts that all properties in the object exist in another object.
-     * @param {Object} expected An object with the expected properties.
-     * @param {Object} actual An object with the actual properties.
-     * @param {String} message (Optional) The message to display if the assertion fails.
-     * @method propertiesAreEqual
-     * @static
-     */
-    propertiesAreEqual : function (expected /*:Object*/, actual /*:Object*/, 
-                           message /*:String*/) /*:Void*/ {
-        
-        var Assert = YAHOO.util.Assert;
-        
-        //get all properties in the object
-        var properties /*:Array*/ = [];        
-        for (var property in expected){
-            properties.push(property);
-        }
-        
-        //see if the properties are in the expected object
-        for (var i=0; i < properties.length; i++){
-            Assert.isNotUndefined(actual[properties[i]], 
-                Assert._formatMessage(message, "Property '" + properties[i] + "' expected."));
-        }
-
-    },
-    
-    /**
-     * Asserts that an object has a property with the given name.
-     * @param {String} propertyName The name of the property to test.
-     * @param {Object} object The object to search.
-     * @param {String} message (Optional) The message to display if the assertion fails.
-     * @method hasProperty
-     * @static
-     */    
-    hasProperty : function (propertyName /*:String*/, object /*:Object*/, message /*:String*/) /*:Void*/ {
-        if (!(propertyName in object)){
-            var Assert = YAHOO.util.Assert;
-            Assert.fail(Assert._formatMessage(message, "Property '" + propertyName + "' not found on object."));
-        }    
-    },
-    
-    /**
-     * Asserts that a property with the given name exists on an object instance (not on its prototype).
-     * @param {String} propertyName The name of the property to test.
-     * @param {Object} object The object to search.
-     * @param {String} message (Optional) The message to display if the assertion fails.
-     * @method hasProperty
-     * @static
-     */    
-    hasOwnProperty : function (propertyName /*:String*/, object /*:Object*/, message /*:String*/) /*:Void*/ {
-        if (!YAHOO.lang.hasOwnProperty(object, propertyName)){
-            var Assert = YAHOO.util.Assert;
-            Assert.fail(Assert._formatMessage(message, "Property '" + propertyName + "' not found on object instance."));
-        }     
-    }
-};
-//-----------------------------------------------------------------------------
-// DateAssert object
-//-----------------------------------------------------------------------------
-
-/**
- * The DateAssert object provides functions to test JavaScript Date objects
- * for a variety of cases.
- *
- * @namespace YAHOO.util
- * @class DateAssert
- * @static
- */
-YAHOO.util.DateAssert = {
-
-    /**
-     * Asserts that a date's month, day, and year are equal to another date's.
-     * @param {Date} expected The expected date.
-     * @param {Date} actual The actual date to test.
-     * @param {String} message (Optional) The message to display if the assertion fails.
-     * @method datesAreEqual
-     * @static
-     */
-    datesAreEqual : function (expected /*:Date*/, actual /*:Date*/, message /*:String*/){
-        if (expected instanceof Date && actual instanceof Date){
-            var Assert = YAHOO.util.Assert;
-            Assert.areEqual(expected.getFullYear(), actual.getFullYear(), Assert._formatMessage(message, "Years should be equal."));
-            Assert.areEqual(expected.getMonth(), actual.getMonth(), Assert._formatMessage(message, "Months should be equal."));
-            Assert.areEqual(expected.getDate(), actual.getDate(), Assert._formatMessage(message, "Day of month should be equal."));
-        } else {
-            throw new TypeError("DateAssert.datesAreEqual(): Expected and actual values must be Date objects.");
-        }
-    },
-
-    /**
-     * Asserts that a date's hour, minutes, and seconds are equal to another date's.
-     * @param {Date} expected The expected date.
-     * @param {Date} actual The actual date to test.
-     * @param {String} message (Optional) The message to display if the assertion fails.
-     * @method timesAreEqual
-     * @static
-     */
-    timesAreEqual : function (expected /*:Date*/, actual /*:Date*/, message /*:String*/){
-        if (expected instanceof Date && actual instanceof Date){
-            var Assert = YAHOO.util.Assert;
-            Assert.areEqual(expected.getHours(), actual.getHours(), Assert._formatMessage(message, "Hours should be equal."));
-            Assert.areEqual(expected.getMinutes(), actual.getMinutes(), Assert._formatMessage(message, "Minutes should be equal."));
-            Assert.areEqual(expected.getSeconds(), actual.getSeconds(), Assert._formatMessage(message, "Seconds should be equal."));
-        } else {
-            throw new TypeError("DateAssert.timesAreEqual(): Expected and actual values must be Date objects.");
-        }
-    }
-    
-};
-YAHOO.register("yuitest_core", YAHOO.tool.TestRunner, {version: "2.8.0r4", build: "2449"});
diff --git a/koha-tmpl/intranet-tmpl/prog/en/lib/yui/yuitest/yuitest_core-min.js b/koha-tmpl/intranet-tmpl/prog/en/lib/yui/yuitest/yuitest_core-min.js
deleted file mode 100644 (file)
index a7c9e0b..0000000
+++ /dev/null
@@ -1,9 +0,0 @@
-/*
-Copyright (c) 2009, Yahoo! Inc. All rights reserved.
-Code licensed under the BSD License:
-http://developer.yahoo.net/yui/license.txt
-version: 2.8.0r4
-*/
-YAHOO.namespace("tool");(function(){var A=0;YAHOO.tool.TestCase=function(B){this._should={};for(var C in B){this[C]=B[C];}if(!YAHOO.lang.isString(this.name)){this.name="testCase"+(A++);}};YAHOO.tool.TestCase.prototype={resume:function(B){YAHOO.tool.TestRunner.resume(B);},wait:function(D,C){var B=arguments;if(YAHOO.lang.isFunction(B[0])){throw new YAHOO.tool.TestCase.Wait(B[0],B[1]);}else{throw new YAHOO.tool.TestCase.Wait(function(){YAHOO.util.Assert.fail("Timeout: wait() called but resume() never called.");},(YAHOO.lang.isNumber(B[0])?B[0]:10000));}},setUp:function(){},tearDown:function(){}};YAHOO.tool.TestCase.Wait=function(C,B){this.segment=(YAHOO.lang.isFunction(C)?C:null);this.delay=(YAHOO.lang.isNumber(B)?B:0);};})();YAHOO.namespace("tool");YAHOO.tool.TestSuite=function(A){this.name="";this.items=[];if(YAHOO.lang.isString(A)){this.name=A;}else{if(YAHOO.lang.isObject(A)){YAHOO.lang.augmentObject(this,A,true);}}if(this.name===""){this.name=YAHOO.util.Dom.generateId(null,"testSuite");}};YAHOO.tool.TestSuite.prototype={add:function(A){if(A instanceof YAHOO.tool.TestSuite||A instanceof YAHOO.tool.TestCase){this.items.push(A);}},setUp:function(){},tearDown:function(){}};YAHOO.namespace("tool");YAHOO.tool.TestRunner=(function(){function B(C){this.testObject=C;this.firstChild=null;this.lastChild=null;this.parent=null;this.next=null;this.results={passed:0,failed:0,total:0,ignored:0};if(C instanceof YAHOO.tool.TestSuite){this.results.type="testsuite";this.results.name=C.name;}else{if(C instanceof YAHOO.tool.TestCase){this.results.type="testcase";this.results.name=C.name;}}}B.prototype={appendChild:function(C){var D=new B(C);if(this.firstChild===null){this.firstChild=this.lastChild=D;}else{this.lastChild.next=D;this.lastChild=D;}D.parent=this;return D;}};function A(){A.superclass.constructor.apply(this,arguments);this.masterSuite=new YAHOO.tool.TestSuite("YUI Test Results");this._cur=null;this._root=null;var D=[this.TEST_CASE_BEGIN_EVENT,this.TEST_CASE_COMPLETE_EVENT,this.TEST_SUITE_BEGIN_EVENT,this.TEST_SUITE_COMPLETE_EVENT,this.TEST_PASS_EVENT,this.TEST_FAIL_EVENT,this.TEST_IGNORE_EVENT,this.COMPLETE_EVENT,this.BEGIN_EVENT];for(var C=0;C<D.length;C++){this.createEvent(D[C],{scope:this});}}YAHOO.lang.extend(A,YAHOO.util.EventProvider,{TEST_CASE_BEGIN_EVENT:"testcasebegin",TEST_CASE_COMPLETE_EVENT:"testcasecomplete",TEST_SUITE_BEGIN_EVENT:"testsuitebegin",TEST_SUITE_COMPLETE_EVENT:"testsuitecomplete",TEST_PASS_EVENT:"pass",TEST_FAIL_EVENT:"fail",TEST_IGNORE_EVENT:"ignore",COMPLETE_EVENT:"complete",BEGIN_EVENT:"begin",_addTestCaseToTestTree:function(C,D){var E=C.appendChild(D);for(var F in D){if(F.indexOf("test")===0&&YAHOO.lang.isFunction(D[F])){E.appendChild(F);}}},_addTestSuiteToTestTree:function(C,F){var E=C.appendChild(F);for(var D=0;D<F.items.length;D++){if(F.items[D] instanceof YAHOO.tool.TestSuite){this._addTestSuiteToTestTree(E,F.items[D]);}else{if(F.items[D] instanceof YAHOO.tool.TestCase){this._addTestCaseToTestTree(E,F.items[D]);}}}},_buildTestTree:function(){this._root=new B(this.masterSuite);this._cur=this._root;for(var C=0;C<this.masterSuite.items.length;C++){if(this.masterSuite.items[C] instanceof YAHOO.tool.TestSuite){this._addTestSuiteToTestTree(this._root,this.masterSuite.items[C]);}else{if(this.masterSuite.items[C] instanceof YAHOO.tool.TestCase){this._addTestCaseToTestTree(this._root,this.masterSuite.items[C]);}}}},_handleTestObjectComplete:function(C){if(YAHOO.lang.isObject(C.testObject)){C.parent.results.passed+=C.results.passed;C.parent.results.failed+=C.results.failed;C.parent.results.total+=C.results.total;C.parent.results.ignored+=C.results.ignored;C.parent.results[C.testObject.name]=C.results;if(C.testObject instanceof YAHOO.tool.TestSuite){C.testObject.tearDown();this.fireEvent(this.TEST_SUITE_COMPLETE_EVENT,{testSuite:C.testObject,results:C.results});}else{if(C.testObject instanceof YAHOO.tool.TestCase){this.fireEvent(this.TEST_CASE_COMPLETE_EVENT,{testCase:C.testObject,results:C.results});}}}},_next:function(){if(this._cur.firstChild){this._cur=this._cur.firstChild;}else{if(this._cur.next){this._cur=this._cur.next;}else{while(this._cur&&!this._cur.next&&this._cur!==this._root){this._handleTestObjectComplete(this._cur);this._cur=this._cur.parent;}if(this._cur==this._root){this._cur.results.type="report";this._cur.results.timestamp=(new Date()).toLocaleString();this._cur.results.duration=(new Date())-this._cur.results.duration;this.fireEvent(this.COMPLETE_EVENT,{results:this._cur.results});this._cur=null;}else{this._handleTestObjectComplete(this._cur);this._cur=this._cur.next;}}}return this._cur;},_run:function(){var E=false;var D=this._next();if(D!==null){var C=D.testObject;if(YAHOO.lang.isObject(C)){if(C instanceof YAHOO.tool.TestSuite){this.fireEvent(this.TEST_SUITE_BEGIN_EVENT,{testSuite:C});C.setUp();}else{if(C instanceof YAHOO.tool.TestCase){this.fireEvent(this.TEST_CASE_BEGIN_EVENT,{testCase:C});}}if(typeof setTimeout!="undefined"){setTimeout(function(){YAHOO.tool.TestRunner._run();},0);}else{this._run();}}else{this._runTest(D);}}},_resumeTest:function(G){var C=this._cur;var H=C.testObject;var E=C.parent.testObject;if(E.__yui_wait){clearTimeout(E.__yui_wait);delete E.__yui_wait;}var K=(E._should.fail||{})[H];var D=(E._should.error||{})[H];var F=false;var I=null;try{G.apply(E);if(K){I=new YAHOO.util.ShouldFail();F=true;}else{if(D){I=new YAHOO.util.ShouldError();F=true;}}}catch(J){if(J instanceof YAHOO.util.AssertionError){if(!K){I=J;F=true;}}else{if(J instanceof YAHOO.tool.TestCase.Wait){if(YAHOO.lang.isFunction(J.segment)){if(YAHOO.lang.isNumber(J.delay)){if(typeof setTimeout!="undefined"){E.__yui_wait=setTimeout(function(){YAHOO.tool.TestRunner._resumeTest(J.segment);},J.delay);}else{throw new Error("Asynchronous tests not supported in this environment.");}}}return;}else{if(!D){I=new YAHOO.util.UnexpectedError(J);F=true;}else{if(YAHOO.lang.isString(D)){if(J.message!=D){I=new YAHOO.util.UnexpectedError(J);F=true;}}else{if(YAHOO.lang.isFunction(D)){if(!(J instanceof D)){I=new YAHOO.util.UnexpectedError(J);
-F=true;}}else{if(YAHOO.lang.isObject(D)){if(!(J instanceof D.constructor)||J.message!=D.message){I=new YAHOO.util.UnexpectedError(J);F=true;}}}}}}}}if(F){this.fireEvent(this.TEST_FAIL_EVENT,{testCase:E,testName:H,error:I});}else{this.fireEvent(this.TEST_PASS_EVENT,{testCase:E,testName:H});}E.tearDown();C.parent.results[H]={result:F?"fail":"pass",message:I?I.getMessage():"Test passed",type:"test",name:H};if(F){C.parent.results.failed++;}else{C.parent.results.passed++;}C.parent.results.total++;if(typeof setTimeout!="undefined"){setTimeout(function(){YAHOO.tool.TestRunner._run();},0);}else{this._run();}},_runTest:function(F){var C=F.testObject;var D=F.parent.testObject;var G=D[C];var E=(D._should.ignore||{})[C];if(E){F.parent.results[C]={result:"ignore",message:"Test ignored",type:"test",name:C};F.parent.results.ignored++;F.parent.results.total++;this.fireEvent(this.TEST_IGNORE_EVENT,{testCase:D,testName:C});if(typeof setTimeout!="undefined"){setTimeout(function(){YAHOO.tool.TestRunner._run();},0);}else{this._run();}}else{D.setUp();this._resumeTest(G);}},fireEvent:function(C,D){D=D||{};D.type=C;A.superclass.fireEvent.call(this,C,D);},add:function(C){this.masterSuite.add(C);},clear:function(){this.masterSuite.items=[];},resume:function(C){this._resumeTest(C||function(){});},run:function(C){var D=YAHOO.tool.TestRunner;D._buildTestTree();D._root.results.duration=(new Date()).getTime();D.fireEvent(D.BEGIN_EVENT);D._run();}});return new A();})();YAHOO.namespace("util");YAHOO.util.Assert={_formatMessage:function(B,A){var C=B;if(YAHOO.lang.isString(B)&&B.length>0){return YAHOO.lang.substitute(B,{message:A});}else{return A;}},fail:function(A){throw new YAHOO.util.AssertionError(this._formatMessage(A,"Test force-failed."));},areEqual:function(B,C,A){if(B!=C){throw new YAHOO.util.ComparisonFailure(this._formatMessage(A,"Values should be equal."),B,C);}},areNotEqual:function(A,C,B){if(A==C){throw new YAHOO.util.UnexpectedValue(this._formatMessage(B,"Values should not be equal."),A);}},areNotSame:function(A,C,B){if(A===C){throw new YAHOO.util.UnexpectedValue(this._formatMessage(B,"Values should not be the same."),A);}},areSame:function(B,C,A){if(B!==C){throw new YAHOO.util.ComparisonFailure(this._formatMessage(A,"Values should be the same."),B,C);}},isFalse:function(B,A){if(false!==B){throw new YAHOO.util.ComparisonFailure(this._formatMessage(A,"Value should be false."),false,B);}},isTrue:function(B,A){if(true!==B){throw new YAHOO.util.ComparisonFailure(this._formatMessage(A,"Value should be true."),true,B);}},isNaN:function(B,A){if(!isNaN(B)){throw new YAHOO.util.ComparisonFailure(this._formatMessage(A,"Value should be NaN."),NaN,B);}},isNotNaN:function(B,A){if(isNaN(B)){throw new YAHOO.util.UnexpectedValue(this._formatMessage(A,"Values should not be NaN."),NaN);}},isNotNull:function(B,A){if(YAHOO.lang.isNull(B)){throw new YAHOO.util.UnexpectedValue(this._formatMessage(A,"Values should not be null."),null);}},isNotUndefined:function(B,A){if(YAHOO.lang.isUndefined(B)){throw new YAHOO.util.UnexpectedValue(this._formatMessage(A,"Value should not be undefined."),undefined);}},isNull:function(B,A){if(!YAHOO.lang.isNull(B)){throw new YAHOO.util.ComparisonFailure(this._formatMessage(A,"Value should be null."),null,B);}},isUndefined:function(B,A){if(!YAHOO.lang.isUndefined(B)){throw new YAHOO.util.ComparisonFailure(this._formatMessage(A,"Value should be undefined."),undefined,B);}},isArray:function(B,A){if(!YAHOO.lang.isArray(B)){throw new YAHOO.util.UnexpectedValue(this._formatMessage(A,"Value should be an array."),B);}},isBoolean:function(B,A){if(!YAHOO.lang.isBoolean(B)){throw new YAHOO.util.UnexpectedValue(this._formatMessage(A,"Value should be a Boolean."),B);}},isFunction:function(B,A){if(!YAHOO.lang.isFunction(B)){throw new YAHOO.util.UnexpectedValue(this._formatMessage(A,"Value should be a function."),B);}},isInstanceOf:function(B,C,A){if(!(C instanceof B)){throw new YAHOO.util.ComparisonFailure(this._formatMessage(A,"Value isn't an instance of expected type."),B,C);}},isNumber:function(B,A){if(!YAHOO.lang.isNumber(B)){throw new YAHOO.util.UnexpectedValue(this._formatMessage(A,"Value should be a number."),B);}},isObject:function(B,A){if(!YAHOO.lang.isObject(B)){throw new YAHOO.util.UnexpectedValue(this._formatMessage(A,"Value should be an object."),B);}},isString:function(B,A){if(!YAHOO.lang.isString(B)){throw new YAHOO.util.UnexpectedValue(this._formatMessage(A,"Value should be a string."),B);}},isTypeOf:function(B,C,A){if(typeof C!=B){throw new YAHOO.util.ComparisonFailure(this._formatMessage(A,"Value should be of type "+B+"."),B,typeof C);}}};YAHOO.util.AssertionError=function(A){this.message=A;this.name="AssertionError";};YAHOO.lang.extend(YAHOO.util.AssertionError,Object,{getMessage:function(){return this.message;},toString:function(){return this.name+": "+this.getMessage();}});YAHOO.util.ComparisonFailure=function(B,A,C){YAHOO.util.AssertionError.call(this,B);this.expected=A;this.actual=C;this.name="ComparisonFailure";};YAHOO.lang.extend(YAHOO.util.ComparisonFailure,YAHOO.util.AssertionError,{getMessage:function(){return this.message+"\nExpected: "+this.expected+" ("+(typeof this.expected)+")"+"\nActual:"+this.actual+" ("+(typeof this.actual)+")";}});YAHOO.util.UnexpectedValue=function(B,A){YAHOO.util.AssertionError.call(this,B);this.unexpected=A;this.name="UnexpectedValue";};YAHOO.lang.extend(YAHOO.util.UnexpectedValue,YAHOO.util.AssertionError,{getMessage:function(){return this.message+"\nUnexpected: "+this.unexpected+" ("+(typeof this.unexpected)+") ";}});YAHOO.util.ShouldFail=function(A){YAHOO.util.AssertionError.call(this,A||"This test should fail but didn't.");this.name="ShouldFail";};YAHOO.lang.extend(YAHOO.util.ShouldFail,YAHOO.util.AssertionError);YAHOO.util.ShouldError=function(A){YAHOO.util.AssertionError.call(this,A||"This test should have thrown an error but didn't.");this.name="ShouldError";};YAHOO.lang.extend(YAHOO.util.ShouldError,YAHOO.util.AssertionError);YAHOO.util.UnexpectedError=function(A){YAHOO.util.AssertionError.call(this,"Unexpected error: "+A.message);
-this.cause=A;this.name="UnexpectedError";this.stack=A.stack;};YAHOO.lang.extend(YAHOO.util.UnexpectedError,YAHOO.util.AssertionError);YAHOO.util.ArrayAssert={contains:function(E,D,B){var C=false;var F=YAHOO.util.Assert;for(var A=0;A<D.length&&!C;A++){if(D[A]===E){C=true;}}if(!C){F.fail(F._formatMessage(B,"Value "+E+" ("+(typeof E)+") not found in array ["+D+"]."));}},containsItems:function(C,D,B){for(var A=0;A<C.length;A++){this.contains(C[A],D,B);}},containsMatch:function(E,D,B){if(typeof E!="function"){throw new TypeError("ArrayAssert.containsMatch(): First argument must be a function.");}var C=false;var F=YAHOO.util.Assert;for(var A=0;A<D.length&&!C;A++){if(E(D[A])){C=true;}}if(!C){F.fail(F._formatMessage(B,"No match found in array ["+D+"]."));}},doesNotContain:function(E,D,B){var C=false;var F=YAHOO.util.Assert;for(var A=0;A<D.length&&!C;A++){if(D[A]===E){C=true;}}if(C){F.fail(F._formatMessage(B,"Value found in array ["+D+"]."));}},doesNotContainItems:function(C,D,B){for(var A=0;A<C.length;A++){this.doesNotContain(C[A],D,B);}},doesNotContainMatch:function(E,D,B){if(typeof E!="function"){throw new TypeError("ArrayAssert.doesNotContainMatch(): First argument must be a function.");}var C=false;var F=YAHOO.util.Assert;for(var A=0;A<D.length&&!C;A++){if(E(D[A])){C=true;}}if(C){F.fail(F._formatMessage(B,"Value found in array ["+D+"]."));}},indexOf:function(E,D,A,C){for(var B=0;B<D.length;B++){if(D[B]===E){YAHOO.util.Assert.areEqual(A,B,C||"Value exists at index "+B+" but should be at index "+A+".");return;}}var F=YAHOO.util.Assert;F.fail(F._formatMessage(C,"Value doesn't exist in array ["+D+"]."));},itemsAreEqual:function(D,F,C){var A=Math.max(D.length,F.length||0);var E=YAHOO.util.Assert;for(var B=0;B<A;B++){E.areEqual(D[B],F[B],E._formatMessage(C,"Values in position "+B+" are not equal."));}},itemsAreEquivalent:function(E,F,B,D){if(typeof B!="function"){throw new TypeError("ArrayAssert.itemsAreEquivalent(): Third argument must be a function.");}var A=Math.max(E.length,F.length||0);for(var C=0;C<A;C++){if(!B(E[C],F[C])){throw new YAHOO.util.ComparisonFailure(YAHOO.util.Assert._formatMessage(D,"Values in position "+C+" are not equivalent."),E[C],F[C]);}}},isEmpty:function(C,A){if(C.length>0){var B=YAHOO.util.Assert;B.fail(B._formatMessage(A,"Array should be empty."));}},isNotEmpty:function(C,A){if(C.length===0){var B=YAHOO.util.Assert;B.fail(B._formatMessage(A,"Array should not be empty."));}},itemsAreSame:function(D,F,C){var A=Math.max(D.length,F.length||0);var E=YAHOO.util.Assert;for(var B=0;B<A;B++){E.areSame(D[B],F[B],E._formatMessage(C,"Values in position "+B+" are not the same."));}},lastIndexOf:function(E,D,A,C){var F=YAHOO.util.Assert;for(var B=D.length;B>=0;B--){if(D[B]===E){F.areEqual(A,B,F._formatMessage(C,"Value exists at index "+B+" but should be at index "+A+"."));return;}}F.fail(F._formatMessage(C,"Value doesn't exist in array."));}};YAHOO.namespace("util");YAHOO.util.ObjectAssert={propertiesAreEqual:function(D,G,C){var F=YAHOO.util.Assert;var B=[];for(var E in D){B.push(E);}for(var A=0;A<B.length;A++){F.isNotUndefined(G[B[A]],F._formatMessage(C,"Property '"+B[A]+"' expected."));}},hasProperty:function(A,B,C){if(!(A in B)){var D=YAHOO.util.Assert;D.fail(D._formatMessage(C,"Property '"+A+"' not found on object."));}},hasOwnProperty:function(A,B,C){if(!YAHOO.lang.hasOwnProperty(B,A)){var D=YAHOO.util.Assert;D.fail(D._formatMessage(C,"Property '"+A+"' not found on object instance."));}}};YAHOO.util.DateAssert={datesAreEqual:function(B,D,A){if(B instanceof Date&&D instanceof Date){var C=YAHOO.util.Assert;C.areEqual(B.getFullYear(),D.getFullYear(),C._formatMessage(A,"Years should be equal."));C.areEqual(B.getMonth(),D.getMonth(),C._formatMessage(A,"Months should be equal."));C.areEqual(B.getDate(),D.getDate(),C._formatMessage(A,"Day of month should be equal."));}else{throw new TypeError("DateAssert.datesAreEqual(): Expected and actual values must be Date objects.");}},timesAreEqual:function(B,D,A){if(B instanceof Date&&D instanceof Date){var C=YAHOO.util.Assert;C.areEqual(B.getHours(),D.getHours(),C._formatMessage(A,"Hours should be equal."));C.areEqual(B.getMinutes(),D.getMinutes(),C._formatMessage(A,"Minutes should be equal."));C.areEqual(B.getSeconds(),D.getSeconds(),C._formatMessage(A,"Seconds should be equal."));}else{throw new TypeError("DateAssert.timesAreEqual(): Expected and actual values must be Date objects.");}}};YAHOO.register("yuitest_core",YAHOO.tool.TestRunner,{version:"2.8.0r4",build:"2449"});
\ No newline at end of file
diff --git a/koha-tmpl/intranet-tmpl/prog/en/lib/yui/yuitest/yuitest_core.js b/koha-tmpl/intranet-tmpl/prog/en/lib/yui/yuitest/yuitest_core.js
deleted file mode 100644 (file)
index e2a2346..0000000
+++ /dev/null
@@ -1,1976 +0,0 @@
-/*
-Copyright (c) 2009, Yahoo! Inc. All rights reserved.
-Code licensed under the BSD License:
-http://developer.yahoo.net/yui/license.txt
-version: 2.8.0r4
-*/
-YAHOO.namespace("tool");
-
-//-----------------------------------------------------------------------------
-// TestCase object
-//-----------------------------------------------------------------------------
-(function(){
-    
-    //used for autogenerating test case names
-    var tempId = 0;
-    
-    /**
-     * Test case containing various tests to run.
-     * @param template An object containing any number of test methods, other methods,
-     *                 an optional name, and anything else the test case needs.
-     * @class TestCase
-     * @namespace YAHOO.tool
-     * @constructor
-     */
-    YAHOO.tool.TestCase = function (template /*:Object*/) {
-        
-        /**
-         * Special rules for the test case. Possible subobjects
-         * are fail, for tests that should fail, and error, for
-         * tests that should throw an error.
-         */
-        this._should /*:Object*/ = {};
-        
-        //copy over all properties from the template to this object
-        for (var prop in template) {
-            this[prop] = template[prop];
-        }    
-        
-        //check for a valid name
-        if (!YAHOO.lang.isString(this.name)){
-            /**
-             * Name for the test case.
-             */
-            this.name /*:String*/ = "testCase" + (tempId++);
-        }
-    
-    };
-    
-    
-    YAHOO.tool.TestCase.prototype = {  
-    
-        /**
-         * Resumes a paused test and runs the given function.
-         * @param {Function} segment (Optional) The function to run.
-         *      If omitted, the test automatically passes.
-         * @return {Void}
-         * @method resume
-         */
-        resume : function (segment /*:Function*/) /*:Void*/ {
-            YAHOO.tool.TestRunner.resume(segment);
-        },
-    
-        /**
-         * Causes the test case to wait a specified amount of time and then
-         * continue executing the given code.
-         * @param {Function} segment (Optional) The function to run after the delay.
-         *      If omitted, the TestRunner will wait until resume() is called.
-         * @param {int} delay (Optional) The number of milliseconds to wait before running
-         *      the function. If omitted, defaults to zero.
-         * @return {Void}
-         * @method wait
-         */
-        wait : function (segment /*:Function*/, delay /*:int*/) /*:Void*/{
-            var args = arguments;
-            if (YAHOO.lang.isFunction(args[0])){
-                throw new YAHOO.tool.TestCase.Wait(args[0], args[1]);
-            } else {
-                throw new YAHOO.tool.TestCase.Wait(function(){
-                    YAHOO.util.Assert.fail("Timeout: wait() called but resume() never called.");
-                }, (YAHOO.lang.isNumber(args[0]) ? args[0] : 10000));
-            }            
-        },
-    
-        //-------------------------------------------------------------------------
-        // Stub Methods
-        //-------------------------------------------------------------------------
-    
-        /**
-         * Function to run before each test is executed.
-         * @return {Void}
-         * @method setUp
-         */
-        setUp : function () /*:Void*/ {
-        },
-        
-        /**
-         * Function to run after each test is executed.
-         * @return {Void}
-         * @method tearDown
-         */
-        tearDown: function () /*:Void*/ {    
-        }
-    };
-    
-    /**
-     * Represents a stoppage in test execution to wait for an amount of time before
-     * continuing.
-     * @param {Function} segment A function to run when the wait is over.
-     * @param {int} delay The number of milliseconds to wait before running the code.
-     * @class Wait
-     * @namespace YAHOO.tool.TestCase
-     * @constructor
-     *
-     */
-    YAHOO.tool.TestCase.Wait = function (segment /*:Function*/, delay /*:int*/) {
-        
-        /**
-         * The segment of code to run when the wait is over.
-         * @type Function
-         * @property segment
-         */
-        this.segment /*:Function*/ = (YAHOO.lang.isFunction(segment) ? segment : null);
-    
-        /**
-         * The delay before running the segment of code.
-         * @type int
-         * @property delay
-         */
-        this.delay /*:int*/ = (YAHOO.lang.isNumber(delay) ? delay : 0);
-    
-    };
-
-})();
-YAHOO.namespace("tool");
-
-
-//-----------------------------------------------------------------------------
-// TestSuite object
-//-----------------------------------------------------------------------------
-
-/**
- * A test suite that can contain a collection of TestCase and TestSuite objects.
- * @param {String||Object} data The name of the test suite or an object containing
- *      a name property as well as setUp and tearDown methods.
- * @namespace YAHOO.tool
- * @class TestSuite
- * @constructor
- */
-YAHOO.tool.TestSuite = function (data /*:String||Object*/) {
-
-    /**
-     * The name of the test suite.
-     * @type String
-     * @property name
-     */
-    this.name /*:String*/ = "";
-
-    /**
-     * Array of test suites and
-     * @private
-     */
-    this.items /*:Array*/ = [];
-
-    //initialize the properties
-    if (YAHOO.lang.isString(data)){
-        this.name = data;
-    } else if (YAHOO.lang.isObject(data)){
-        YAHOO.lang.augmentObject(this, data, true);
-    }
-
-    //double-check name
-    if (this.name === ""){
-        this.name = YAHOO.util.Dom.generateId(null, "testSuite");
-    }
-
-};
-
-YAHOO.tool.TestSuite.prototype = {
-    
-    /**
-     * Adds a test suite or test case to the test suite.
-     * @param {YAHOO.tool.TestSuite||YAHOO.tool.TestCase} testObject The test suite or test case to add.
-     * @return {Void}
-     * @method add
-     */
-    add : function (testObject /*:YAHOO.tool.TestSuite*/) /*:Void*/ {
-        if (testObject instanceof YAHOO.tool.TestSuite || testObject instanceof YAHOO.tool.TestCase) {
-            this.items.push(testObject);
-        }
-    },
-    
-    //-------------------------------------------------------------------------
-    // Stub Methods
-    //-------------------------------------------------------------------------
-
-    /**
-     * Function to run before each test is executed.
-     * @return {Void}
-     * @method setUp
-     */
-    setUp : function () /*:Void*/ {
-    },
-    
-    /**
-     * Function to run after each test is executed.
-     * @return {Void}
-     * @method tearDown
-     */
-    tearDown: function () /*:Void*/ {
-    }
-    
-};
-YAHOO.namespace("tool");
-
-/**
- * The YUI test tool
- * @module yuitest
- * @namespace YAHOO.tool
- * @requires yahoo,dom,event,logger
- * @optional event-simulte
- */
-
-
-//-----------------------------------------------------------------------------
-// TestRunner object
-//-----------------------------------------------------------------------------
-
-
-YAHOO.tool.TestRunner = (function(){
-
-    /**
-     * A node in the test tree structure. May represent a TestSuite, TestCase, or
-     * test function.
-     * @param {Variant} testObject A TestSuite, TestCase, or the name of a test function.
-     * @class TestNode
-     * @constructor
-     * @private
-     */
-    function TestNode(testObject /*:Variant*/){
-    
-        /**
-         * The TestSuite, TestCase, or test function represented by this node.
-         * @type Variant
-         * @property testObject
-         */
-        this.testObject = testObject;
-        
-        /**
-         * Pointer to this node's first child.
-         * @type TestNode
-         * @property firstChild
-         */        
-        this.firstChild /*:TestNode*/ = null;
-        
-        /**
-         * Pointer to this node's last child.
-         * @type TestNode
-         * @property lastChild
-         */        
-        this.lastChild = null;
-        
-        /**
-         * Pointer to this node's parent.
-         * @type TestNode
-         * @property parent
-         */        
-        this.parent = null; 
-   
-        /**
-         * Pointer to this node's next sibling.
-         * @type TestNode
-         * @property next
-         */        
-        this.next = null;
-        
-        /**
-         * Test results for this test object.
-         * @type object
-         * @property results
-         */                
-        this.results /*:Object*/ = {
-            passed : 0,
-            failed : 0,
-            total : 0,
-            ignored : 0
-        };
-        
-        //initialize results
-        if (testObject instanceof YAHOO.tool.TestSuite){
-            this.results.type = "testsuite";
-            this.results.name = testObject.name;
-        } else if (testObject instanceof YAHOO.tool.TestCase){
-            this.results.type = "testcase";
-            this.results.name = testObject.name;
-        }
-       
-    }
-    
-    TestNode.prototype = {
-    
-        /**
-         * Appends a new test object (TestSuite, TestCase, or test function name) as a child
-         * of this node.
-         * @param {Variant} testObject A TestSuite, TestCase, or the name of a test function.
-         * @return {Void}
-         */
-        appendChild : function (testObject /*:Variant*/) /*:Void*/{
-            var node = new TestNode(testObject);
-            if (this.firstChild === null){
-                this.firstChild = this.lastChild = node;
-            } else {
-                this.lastChild.next = node;
-                this.lastChild = node;
-            }
-            node.parent = this;
-            return node;
-        }       
-    };
-
-    /**
-     * Runs test suites and test cases, providing events to allowing for the
-     * interpretation of test results.
-     * @namespace YAHOO.tool
-     * @class TestRunner
-     * @static
-     */
-    function TestRunner(){
-    
-        //inherit from EventProvider
-        TestRunner.superclass.constructor.apply(this,arguments);
-        
-        /**
-         * Suite on which to attach all TestSuites and TestCases to be run.
-         * @type YAHOO.tool.TestSuite
-         * @property masterSuite
-         * @private
-         * @static
-         */
-        this.masterSuite /*:YAHOO.tool.TestSuite*/ = new YAHOO.tool.TestSuite("YUI Test Results");        
-
-        /**
-         * Pointer to the current node in the test tree.
-         * @type TestNode
-         * @private
-         * @property _cur
-         * @static
-         */
-        this._cur = null;
-        
-        /**
-         * Pointer to the root node in the test tree.
-         * @type TestNode
-         * @private
-         * @property _root
-         * @static
-         */
-        this._root = null;
-        
-        //create events
-        var events /*:Array*/ = [
-            this.TEST_CASE_BEGIN_EVENT,
-            this.TEST_CASE_COMPLETE_EVENT,
-            this.TEST_SUITE_BEGIN_EVENT,
-            this.TEST_SUITE_COMPLETE_EVENT,
-            this.TEST_PASS_EVENT,
-            this.TEST_FAIL_EVENT,
-            this.TEST_IGNORE_EVENT,
-            this.COMPLETE_EVENT,
-            this.BEGIN_EVENT
-        ];
-        for (var i=0; i < events.length; i++){
-            this.createEvent(events[i], { scope: this });
-        }       
-   
-    }
-    
-    YAHOO.lang.extend(TestRunner, YAHOO.util.EventProvider, {
-    
-        //-------------------------------------------------------------------------
-        // Constants
-        //-------------------------------------------------------------------------
-         
-        /**
-         * Fires when a test case is opened but before the first 
-         * test is executed.
-         * @event testcasebegin
-         */         
-        TEST_CASE_BEGIN_EVENT /*:String*/ : "testcasebegin",
-        
-        /**
-         * Fires when all tests in a test case have been executed.
-         * @event testcasecomplete
-         */        
-        TEST_CASE_COMPLETE_EVENT /*:String*/ : "testcasecomplete",
-        
-        /**
-         * Fires when a test suite is opened but before the first 
-         * test is executed.
-         * @event testsuitebegin
-         */        
-        TEST_SUITE_BEGIN_EVENT /*:String*/ : "testsuitebegin",
-        
-        /**
-         * Fires when all test cases in a test suite have been
-         * completed.
-         * @event testsuitecomplete
-         */        
-        TEST_SUITE_COMPLETE_EVENT /*:String*/ : "testsuitecomplete",
-        
-        /**
-         * Fires when a test has passed.
-         * @event pass
-         */        
-        TEST_PASS_EVENT /*:String*/ : "pass",
-        
-        /**
-         * Fires when a test has failed.
-         * @event fail
-         */        
-        TEST_FAIL_EVENT /*:String*/ : "fail",
-        
-        /**
-         * Fires when a test has been ignored.
-         * @event ignore
-         */        
-        TEST_IGNORE_EVENT /*:String*/ : "ignore",
-        
-        /**
-         * Fires when all test suites and test cases have been completed.
-         * @event complete
-         */        
-        COMPLETE_EVENT /*:String*/ : "complete",
-        
-        /**
-         * Fires when the run() method is called.
-         * @event begin
-         */        
-        BEGIN_EVENT /*:String*/ : "begin",    
-        
-        //-------------------------------------------------------------------------
-        // Test Tree-Related Methods
-        //-------------------------------------------------------------------------
-
-        /**
-         * Adds a test case to the test tree as a child of the specified node.
-         * @param {TestNode} parentNode The node to add the test case to as a child.
-         * @param {YAHOO.tool.TestCase} testCase The test case to add.
-         * @return {Void}
-         * @static
-         * @private
-         * @method _addTestCaseToTestTree
-         */
-       _addTestCaseToTestTree : function (parentNode /*:TestNode*/, testCase /*:YAHOO.tool.TestCase*/) /*:Void*/{
-            
-            //add the test suite
-            var node = parentNode.appendChild(testCase);
-            
-            //iterate over the items in the test case
-            for (var prop in testCase){
-                if (prop.indexOf("test") === 0 && YAHOO.lang.isFunction(testCase[prop])){
-                    node.appendChild(prop);
-                }
-            }
-         
-        },
-        
-        /**
-         * Adds a test suite to the test tree as a child of the specified node.
-         * @param {TestNode} parentNode The node to add the test suite to as a child.
-         * @param {YAHOO.tool.TestSuite} testSuite The test suite to add.
-         * @return {Void}
-         * @static
-         * @private
-         * @method _addTestSuiteToTestTree
-         */
-        _addTestSuiteToTestTree : function (parentNode /*:TestNode*/, testSuite /*:YAHOO.tool.TestSuite*/) /*:Void*/ {
-            
-            //add the test suite
-            var node = parentNode.appendChild(testSuite);
-            
-            //iterate over the items in the master suite
-            for (var i=0; i < testSuite.items.length; i++){
-                if (testSuite.items[i] instanceof YAHOO.tool.TestSuite) {
-                    this._addTestSuiteToTestTree(node, testSuite.items[i]);
-                } else if (testSuite.items[i] instanceof YAHOO.tool.TestCase) {
-                    this._addTestCaseToTestTree(node, testSuite.items[i]);
-                }                   
-            }            
-        },
-        
-        /**
-         * Builds the test tree based on items in the master suite. The tree is a hierarchical
-         * representation of the test suites, test cases, and test functions. The resulting tree
-         * is stored in _root and the pointer _cur is set to the root initially.
-         * @return {Void}
-         * @static
-         * @private
-         * @method _buildTestTree
-         */
-        _buildTestTree : function () /*:Void*/ {
-        
-            this._root = new TestNode(this.masterSuite);
-            this._cur = this._root;
-            
-            //iterate over the items in the master suite
-            for (var i=0; i < this.masterSuite.items.length; i++){
-                if (this.masterSuite.items[i] instanceof YAHOO.tool.TestSuite) {
-                    this._addTestSuiteToTestTree(this._root, this.masterSuite.items[i]);
-                } else if (this.masterSuite.items[i] instanceof YAHOO.tool.TestCase) {
-                    this._addTestCaseToTestTree(this._root, this.masterSuite.items[i]);
-                }                   
-            }            
-        
-        }, 
-    
-        //-------------------------------------------------------------------------
-        // Private Methods
-        //-------------------------------------------------------------------------
-        
-        /**
-         * Handles the completion of a test object's tests. Tallies test results 
-         * from one level up to the next.
-         * @param {TestNode} node The TestNode representing the test object.
-         * @return {Void}
-         * @method _handleTestObjectComplete
-         * @private
-         * @static
-         */
-        _handleTestObjectComplete : function (node /*:TestNode*/) /*:Void*/ {
-            if (YAHOO.lang.isObject(node.testObject)){
-                node.parent.results.passed += node.results.passed;
-                node.parent.results.failed += node.results.failed;
-                node.parent.results.total += node.results.total;                
-                node.parent.results.ignored += node.results.ignored;                
-                node.parent.results[node.testObject.name] = node.results;
-            
-                if (node.testObject instanceof YAHOO.tool.TestSuite){
-                    node.testObject.tearDown();
-                    this.fireEvent(this.TEST_SUITE_COMPLETE_EVENT, { testSuite: node.testObject, results: node.results});
-                } else if (node.testObject instanceof YAHOO.tool.TestCase){
-                    this.fireEvent(this.TEST_CASE_COMPLETE_EVENT, { testCase: node.testObject, results: node.results});
-                }      
-            } 
-        },                
-        
-        //-------------------------------------------------------------------------
-        // Navigation Methods
-        //-------------------------------------------------------------------------
-        
-        /**
-         * Retrieves the next node in the test tree.
-         * @return {TestNode} The next node in the test tree or null if the end is reached.
-         * @private
-         * @static
-         * @method _next
-         */
-        _next : function () /*:TestNode*/ {
-        
-            if (this._cur.firstChild) {
-                this._cur = this._cur.firstChild;
-            } else if (this._cur.next) {
-                this._cur = this._cur.next;            
-            } else {
-                while (this._cur && !this._cur.next && this._cur !== this._root){
-                    this._handleTestObjectComplete(this._cur);
-                    this._cur = this._cur.parent;
-                }
-                
-                if (this._cur == this._root){
-                    this._cur.results.type = "report";
-                    this._cur.results.timestamp = (new Date()).toLocaleString();
-                    this._cur.results.duration = (new Date()) - this._cur.results.duration;
-                    this.fireEvent(this.COMPLETE_EVENT, { results: this._cur.results});
-                    this._cur = null;
-                } else {
-                    this._handleTestObjectComplete(this._cur);               
-                    this._cur = this._cur.next;                
-                }
-            }
-        
-            return this._cur;
-        },
-        
-        /**
-         * Runs a test case or test suite, returning the results.
-         * @param {YAHOO.tool.TestCase|YAHOO.tool.TestSuite} testObject The test case or test suite to run.
-         * @return {Object} Results of the execution with properties passed, failed, and total.
-         * @private
-         * @method _run
-         * @static
-         */
-        _run : function () /*:Void*/ {
-        
-            //flag to indicate if the TestRunner should wait before continuing
-            var shouldWait /*:Boolean*/ = false;
-            
-            //get the next test node
-            var node = this._next();
-            
-            if (node !== null) {
-                var testObject = node.testObject;
-                
-                //figure out what to do
-                if (YAHOO.lang.isObject(testObject)){
-                    if (testObject instanceof YAHOO.tool.TestSuite){
-                        this.fireEvent(this.TEST_SUITE_BEGIN_EVENT, { testSuite: testObject });
-                        testObject.setUp();
-                    } else if (testObject instanceof YAHOO.tool.TestCase){
-                        this.fireEvent(this.TEST_CASE_BEGIN_EVENT, { testCase: testObject });
-                    }
-                    
-                    //some environments don't support setTimeout
-                    if (typeof setTimeout != "undefined"){                    
-                        setTimeout(function(){
-                            YAHOO.tool.TestRunner._run();
-                        }, 0);
-                    } else {
-                        this._run();
-                    }
-                } else {
-                    this._runTest(node);
-                }
-
-            }
-        },
-        
-        _resumeTest : function (segment /*:Function*/) /*:Void*/ {
-        
-            //get relevant information
-            var node /*:TestNode*/ = this._cur;
-            var testName /*:String*/ = node.testObject;
-            var testCase /*:YAHOO.tool.TestCase*/ = node.parent.testObject;
-            
-            //cancel other waits if available
-            if (testCase.__yui_wait){
-                clearTimeout(testCase.__yui_wait);
-                delete testCase.__yui_wait;
-            }            
-            
-            //get the "should" test cases
-            var shouldFail /*:Object*/ = (testCase._should.fail || {})[testName];
-            var shouldError /*:Object*/ = (testCase._should.error || {})[testName];
-            
-            //variable to hold whether or not the test failed
-            var failed /*:Boolean*/ = false;
-            var error /*:Error*/ = null;
-                
-            //try the test
-            try {
-            
-                //run the test
-                segment.apply(testCase);
-                
-                //if it should fail, and it got here, then it's a fail because it didn't
-                if (shouldFail){
-                    error = new YAHOO.util.ShouldFail();
-                    failed = true;
-                } else if (shouldError){
-                    error = new YAHOO.util.ShouldError();
-                    failed = true;
-                }
-                           
-            } catch (thrown /*:Error*/){
-                if (thrown instanceof YAHOO.util.AssertionError) {
-                    if (!shouldFail){
-                        error = thrown;
-                        failed = true;
-                    }
-                } else if (thrown instanceof YAHOO.tool.TestCase.Wait){
-                
-                    if (YAHOO.lang.isFunction(thrown.segment)){
-                        if (YAHOO.lang.isNumber(thrown.delay)){
-                        
-                            //some environments don't support setTimeout
-                            if (typeof setTimeout != "undefined"){
-                                testCase.__yui_wait = setTimeout(function(){
-                                    YAHOO.tool.TestRunner._resumeTest(thrown.segment);
-                                }, thrown.delay);                             
-                            } else {
-                                throw new Error("Asynchronous tests not supported in this environment.");
-                            }
-                        }
-                    }
-                    
-                    return;
-                
-                } else {
-                    //first check to see if it should error
-                    if (!shouldError) {                        
-                        error = new YAHOO.util.UnexpectedError(thrown);
-                        failed = true;
-                    } else {
-                        //check to see what type of data we have
-                        if (YAHOO.lang.isString(shouldError)){
-                            
-                            //if it's a string, check the error message
-                            if (thrown.message != shouldError){
-                                error = new YAHOO.util.UnexpectedError(thrown);
-                                failed = true;                                    
-                            }
-                        } else if (YAHOO.lang.isFunction(shouldError)){
-                        
-                            //if it's a function, see if the error is an instance of it
-                            if (!(thrown instanceof shouldError)){
-                                error = new YAHOO.util.UnexpectedError(thrown);
-                                failed = true;
-                            }
-                        
-                        } else if (YAHOO.lang.isObject(shouldError)){
-                        
-                            //if it's an object, check the instance and message
-                            if (!(thrown instanceof shouldError.constructor) || 
-                                    thrown.message != shouldError.message){
-                                error = new YAHOO.util.UnexpectedError(thrown);
-                                failed = true;                                    
-                            }
-                        
-                        }
-                    
-                    }
-                }
-                
-            }
-            
-            //fireEvent appropriate event
-            if (failed) {
-                this.fireEvent(this.TEST_FAIL_EVENT, { testCase: testCase, testName: testName, error: error });
-            } else {
-                this.fireEvent(this.TEST_PASS_EVENT, { testCase: testCase, testName: testName });
-            }
-            
-            //run the tear down
-            testCase.tearDown();
-            
-            //update results
-            node.parent.results[testName] = { 
-                result: failed ? "fail" : "pass",
-                message: error ? error.getMessage() : "Test passed",
-                type: "test",
-                name: testName
-            };
-            
-            if (failed){
-                node.parent.results.failed++;
-            } else {
-                node.parent.results.passed++;
-            }
-            node.parent.results.total++;
-
-            //set timeout not supported in all environments
-            if (typeof setTimeout != "undefined"){
-                setTimeout(function(){
-                    YAHOO.tool.TestRunner._run();
-                }, 0);
-            } else {
-                this._run();
-            }
-        
-        },
-                
-        /**
-         * Runs a single test based on the data provided in the node.
-         * @param {TestNode} node The TestNode representing the test to run.
-         * @return {Void}
-         * @static
-         * @private
-         * @name _runTest
-         */
-        _runTest : function (node /*:TestNode*/) /*:Void*/ {
-        
-            //get relevant information
-            var testName /*:String*/ = node.testObject;
-            var testCase /*:YAHOO.tool.TestCase*/ = node.parent.testObject;
-            var test /*:Function*/ = testCase[testName];
-            
-            //get the "should" test cases
-            var shouldIgnore /*:Object*/ = (testCase._should.ignore || {})[testName];
-            
-            //figure out if the test should be ignored or not
-            if (shouldIgnore){
-            
-                //update results
-                node.parent.results[testName] = { 
-                    result: "ignore",
-                    message: "Test ignored",
-                    type: "test",
-                    name: testName
-                };
-                
-                node.parent.results.ignored++;
-                node.parent.results.total++;
-            
-                this.fireEvent(this.TEST_IGNORE_EVENT, { testCase: testCase, testName: testName });
-                
-                //some environments don't support setTimeout
-                if (typeof setTimeout != "undefined"){                    
-                    setTimeout(function(){
-                        YAHOO.tool.TestRunner._run();
-                    }, 0);              
-                } else {
-                    this._run();
-                }
-
-            } else {
-            
-                //run the setup
-                testCase.setUp();
-                
-                //now call the body of the test
-                this._resumeTest(test);                
-            }
-
-        },        
-        
-        //-------------------------------------------------------------------------
-        // Protected Methods
-        //-------------------------------------------------------------------------   
-    
-        /**
-         * Fires events for the TestRunner. This overrides the default fireEvent()
-         * method from EventProvider to add the type property to the data that is
-         * passed through on each event call.
-         * @param {String} type The type of event to fire.
-         * @param {Object} data (Optional) Data for the event.
-         * @method fireEvent
-         * @static
-         * @protected
-         */
-        fireEvent : function (type /*:String*/, data /*:Object*/) /*:Void*/ {
-            data = data || {};
-            data.type = type;
-            TestRunner.superclass.fireEvent.call(this, type, data);
-        },
-        
-        //-------------------------------------------------------------------------
-        // Public Methods
-        //-------------------------------------------------------------------------   
-    
-        /**
-         * Adds a test suite or test case to the list of test objects to run.
-         * @param testObject Either a TestCase or a TestSuite that should be run.
-         * @return {Void}
-         * @method add
-         * @static
-         */
-        add : function (testObject /*:Object*/) /*:Void*/ {
-            this.masterSuite.add(testObject);
-        },
-        
-        /**
-         * Removes all test objects from the runner.
-         * @return {Void}
-         * @method clear
-         * @static
-         */
-        clear : function () /*:Void*/ {
-            this.masterSuite.items = [];
-        },
-        
-        /**
-         * Resumes the TestRunner after wait() was called.
-         * @param {Function} segment The function to run as the rest
-         *      of the haulted test.
-         * @return {Void}
-         * @method resume
-         * @static
-         */
-        resume : function (segment /*:Function*/) /*:Void*/ {
-            this._resumeTest(segment || function(){});
-        },
-    
-        /**
-         * Runs the test suite.
-         * @return {Void}
-         * @method run
-         * @static
-         */
-        run : function (testObject /*:Object*/) /*:Void*/ {
-            
-            //pointer to runner to avoid scope issues 
-            var runner = YAHOO.tool.TestRunner;
-
-            //build the test tree
-            runner._buildTestTree();
-            
-            //set when the test started
-            runner._root.results.duration = (new Date()).getTime();
-            
-            //fire the begin event
-            runner.fireEvent(runner.BEGIN_EVENT);
-       
-            //begin the testing
-            runner._run();
-        }    
-    });
-    
-    return new TestRunner();
-    
-})();
-YAHOO.namespace("util");
-
-//-----------------------------------------------------------------------------
-// Assert object
-//-----------------------------------------------------------------------------
-
-/**
- * The Assert object provides functions to test JavaScript values against
- * known and expected results. Whenever a comparison (assertion) fails,
- * an error is thrown.
- *
- * @namespace YAHOO.util
- * @class Assert
- * @static
- */
-YAHOO.util.Assert = {
-
-    //-------------------------------------------------------------------------
-    // Helper Methods
-    //-------------------------------------------------------------------------
-    
-    /**
-     * Formats a message so that it can contain the original assertion message
-     * in addition to the custom message.
-     * @param {String} customMessage The message passed in by the developer.
-     * @param {String} defaultMessage The message created by the error by default.
-     * @return {String} The final error message, containing either or both.
-     * @protected
-     * @static
-     * @method _formatMessage
-     */
-    _formatMessage : function (customMessage /*:String*/, defaultMessage /*:String*/) /*:String*/ {
-        var message = customMessage;
-        if (YAHOO.lang.isString(customMessage) && customMessage.length > 0){
-            return YAHOO.lang.substitute(customMessage, { message: defaultMessage });
-        } else {
-            return defaultMessage;
-        }        
-    },
-    
-    //-------------------------------------------------------------------------
-    // Generic Assertion Methods
-    //-------------------------------------------------------------------------
-    
-    /** 
-     * Forces an assertion error to occur.
-     * @param {String} message (Optional) The message to display with the failure.
-     * @method fail
-     * @static
-     */
-    fail : function (message /*:String*/) /*:Void*/ {
-        throw new YAHOO.util.AssertionError(this._formatMessage(message, "Test force-failed."));
-    },       
-    
-    //-------------------------------------------------------------------------
-    // Equality Assertion Methods
-    //-------------------------------------------------------------------------    
-    
-    /**
-     * Asserts that a value is equal to another. This uses the double equals sign
-     * so type cohersion may occur.
-     * @param {Object} expected The expected value.
-     * @param {Object} actual The actual value to test.
-     * @param {String} message (Optional) The message to display if the assertion fails.
-     * @method areEqual
-     * @static
-     */
-    areEqual : function (expected /*:Object*/, actual /*:Object*/, message /*:String*/) /*:Void*/ {
-        if (expected != actual) {
-            throw new YAHOO.util.ComparisonFailure(this._formatMessage(message, "Values should be equal."), expected, actual);
-        }
-    },
-    
-    /**
-     * Asserts that a value is not equal to another. This uses the double equals sign
-     * so type cohersion may occur.
-     * @param {Object} unexpected The unexpected value.
-     * @param {Object} actual The actual value to test.
-     * @param {String} message (Optional) The message to display if the assertion fails.
-     * @method areNotEqual
-     * @static
-     */
-    areNotEqual : function (unexpected /*:Object*/, actual /*:Object*/, 
-                         message /*:String*/) /*:Void*/ {
-        if (unexpected == actual) {
-            throw new YAHOO.util.UnexpectedValue(this._formatMessage(message, "Values should not be equal."), unexpected);
-        }
-    },
-    
-    /**
-     * Asserts that a value is not the same as another. This uses the triple equals sign
-     * so no type cohersion may occur.
-     * @param {Object} unexpected The unexpected value.
-     * @param {Object} actual The actual value to test.
-     * @param {String} message (Optional) The message to display if the assertion fails.
-     * @method areNotSame
-     * @static
-     */
-    areNotSame : function (unexpected /*:Object*/, actual /*:Object*/, message /*:String*/) /*:Void*/ {
-        if (unexpected === actual) {
-            throw new YAHOO.util.UnexpectedValue(this._formatMessage(message, "Values should not be the same."), unexpected);
-        }
-    },
-
-    /**
-     * Asserts that a value is the same as another. This uses the triple equals sign
-     * so no type cohersion may occur.
-     * @param {Object} expected The expected value.
-     * @param {Object} actual The actual value to test.
-     * @param {String} message (Optional) The message to display if the assertion fails.
-     * @method areSame
-     * @static
-     */
-    areSame : function (expected /*:Object*/, actual /*:Object*/, message /*:String*/) /*:Void*/ {
-        if (expected !== actual) {
-            throw new YAHOO.util.ComparisonFailure(this._formatMessage(message, "Values should be the same."), expected, actual);
-        }
-    },    
-    
-    //-------------------------------------------------------------------------
-    // Boolean Assertion Methods
-    //-------------------------------------------------------------------------    
-    
-    /**
-     * Asserts that a value is false. This uses the triple equals sign
-     * so no type cohersion may occur.
-     * @param {Object} actual The actual value to test.
-     * @param {String} message (Optional) The message to display if the assertion fails.
-     * @method isFalse
-     * @static
-     */
-    isFalse : function (actual /*:Boolean*/, message /*:String*/) {
-        if (false !== actual) {
-            throw new YAHOO.util.ComparisonFailure(this._formatMessage(message, "Value should be false."), false, actual);
-        }
-    },
-    
-    /**
-     * Asserts that a value is true. This uses the triple equals sign
-     * so no type cohersion may occur.
-     * @param {Object} actual The actual value to test.
-     * @param {String} message (Optional) The message to display if the assertion fails.
-     * @method isTrue
-     * @static
-     */
-    isTrue : function (actual /*:Boolean*/, message /*:String*/) /*:Void*/ {
-        if (true !== actual) {
-            throw new YAHOO.util.ComparisonFailure(this._formatMessage(message, "Value should be true."), true, actual);
-        }
-
-    },
-    
-    //-------------------------------------------------------------------------
-    // Special Value Assertion Methods
-    //-------------------------------------------------------------------------    
-    
-    /**
-     * Asserts that a value is not a number.
-     * @param {Object} actual The value to test.
-     * @param {String} message (Optional) The message to display if the assertion fails.
-     * @method isNaN
-     * @static
-     */
-    isNaN : function (actual /*:Object*/, message /*:String*/) /*:Void*/{
-        if (!isNaN(actual)){
-            throw new YAHOO.util.ComparisonFailure(this._formatMessage(message, "Value should be NaN."), NaN, actual);
-        }    
-    },
-    
-    /**
-     * Asserts that a value is not the special NaN value.
-     * @param {Object} actual The value to test.
-     * @param {String} message (Optional) The message to display if the assertion fails.
-     * @method isNotNaN
-     * @static
-     */
-    isNotNaN : function (actual /*:Object*/, message /*:String*/) /*:Void*/{
-        if (isNaN(actual)){
-            throw new YAHOO.util.UnexpectedValue(this._formatMessage(message, "Values should not be NaN."), NaN);
-        }    
-    },
-    
-    /**
-     * Asserts that a value is not null. This uses the triple equals sign
-     * so no type cohersion may occur.
-     * @param {Object} actual The actual value to test.
-     * @param {String} message (Optional) The message to display if the assertion fails.
-     * @method isNotNull
-     * @static
-     */
-    isNotNull : function (actual /*:Object*/, message /*:String*/) /*:Void*/ {
-        if (YAHOO.lang.isNull(actual)) {
-            throw new YAHOO.util.UnexpectedValue(this._formatMessage(message, "Values should not be null."), null);
-        }
-    },
-
-    /**
-     * Asserts that a value is not undefined. This uses the triple equals sign
-     * so no type cohersion may occur.
-     * @param {Object} actual The actual value to test.
-     * @param {String} message (Optional) The message to display if the assertion fails.
-     * @method isNotUndefined
-     * @static
-     */
-    isNotUndefined : function (actual /*:Object*/, message /*:String*/) /*:Void*/ {
-        if (YAHOO.lang.isUndefined(actual)) {
-            throw new YAHOO.util.UnexpectedValue(this._formatMessage(message, "Value should not be undefined."), undefined);
-        }
-    },
-
-    /**
-     * Asserts that a value is null. This uses the triple equals sign
-     * so no type cohersion may occur.
-     * @param {Object} actual The actual value to test.
-     * @param {String} message (Optional) The message to display if the assertion fails.
-     * @method isNull
-     * @static
-     */
-    isNull : function (actual /*:Object*/, message /*:String*/) /*:Void*/ {
-        if (!YAHOO.lang.isNull(actual)) {
-            throw new YAHOO.util.ComparisonFailure(this._formatMessage(message, "Value should be null."), null, actual);
-        }
-    },
-        
-    /**
-     * Asserts that a value is undefined. This uses the triple equals sign
-     * so no type cohersion may occur.
-     * @param {Object} actual The actual value to test.
-     * @param {String} message (Optional) The message to display if the assertion fails.
-     * @method isUndefined
-     * @static
-     */
-    isUndefined : function (actual /*:Object*/, message /*:String*/) /*:Void*/ {
-        if (!YAHOO.lang.isUndefined(actual)) {
-            throw new YAHOO.util.ComparisonFailure(this._formatMessage(message, "Value should be undefined."), undefined, actual);
-        }
-    },    
-    
-    //--------------------------------------------------------------------------
-    // Instance Assertion Methods
-    //--------------------------------------------------------------------------    
-   
-    /**
-     * Asserts that a value is an array.
-     * @param {Object} actual The value to test.
-     * @param {String} message (Optional) The message to display if the assertion fails.
-     * @method isArray
-     * @static
-     */
-    isArray : function (actual /*:Object*/, message /*:String*/) /*:Void*/ {
-        if (!YAHOO.lang.isArray(actual)){
-            throw new YAHOO.util.UnexpectedValue(this._formatMessage(message, "Value should be an array."), actual);
-        }    
-    },
-   
-    /**
-     * Asserts that a value is a Boolean.
-     * @param {Object} actual The value to test.
-     * @param {String} message (Optional) The message to display if the assertion fails.
-     * @method isBoolean
-     * @static
-     */
-    isBoolean : function (actual /*:Object*/, message /*:String*/) /*:Void*/ {
-        if (!YAHOO.lang.isBoolean(actual)){
-            throw new YAHOO.util.UnexpectedValue(this._formatMessage(message, "Value should be a Boolean."), actual);
-        }    
-    },
-   
-    /**
-     * Asserts that a value is a function.
-     * @param {Object} actual The value to test.
-     * @param {String} message (Optional) The message to display if the assertion fails.
-     * @method isFunction
-     * @static
-     */
-    isFunction : function (actual /*:Object*/, message /*:String*/) /*:Void*/ {
-        if (!YAHOO.lang.isFunction(actual)){
-            throw new YAHOO.util.UnexpectedValue(this._formatMessage(message, "Value should be a function."), actual);
-        }    
-    },
-   
-    /**
-     * Asserts that a value is an instance of a particular object. This may return
-     * incorrect results when comparing objects from one frame to constructors in
-     * another frame. For best results, don't use in a cross-frame manner.
-     * @param {Function} expected The function that the object should be an instance of.
-     * @param {Object} actual The object to test.
-     * @param {String} message (Optional) The message to display if the assertion fails.
-     * @method isInstanceOf
-     * @static
-     */
-    isInstanceOf : function (expected /*:Function*/, actual /*:Object*/, message /*:String*/) /*:Void*/ {
-        if (!(actual instanceof expected)){
-            throw new YAHOO.util.ComparisonFailure(this._formatMessage(message, "Value isn't an instance of expected type."), expected, actual);
-        }
-    },
-    
-    /**
-     * Asserts that a value is a number.
-     * @param {Object} actual The value to test.
-     * @param {String} message (Optional) The message to display if the assertion fails.
-     * @method isNumber
-     * @static
-     */
-    isNumber : function (actual /*:Object*/, message /*:String*/) /*:Void*/ {
-        if (!YAHOO.lang.isNumber(actual)){
-            throw new YAHOO.util.UnexpectedValue(this._formatMessage(message, "Value should be a number."), actual);
-        }    
-    },    
-    
-    /**
-     * Asserts that a value is an object.
-     * @param {Object} actual The value to test.
-     * @param {String} message (Optional) The message to display if the assertion fails.
-     * @method isObject
-     * @static
-     */
-    isObject : function (actual /*:Object*/, message /*:String*/) /*:Void*/ {
-        if (!YAHOO.lang.isObject(actual)){
-            throw new YAHOO.util.UnexpectedValue(this._formatMessage(message, "Value should be an object."), actual);
-        }
-    },
-    
-    /**
-     * Asserts that a value is a string.
-     * @param {Object} actual The value to test.
-     * @param {String} message (Optional) The message to display if the assertion fails.
-     * @method isString
-     * @static
-     */
-    isString : function (actual /*:Object*/, message /*:String*/) /*:Void*/ {
-        if (!YAHOO.lang.isString(actual)){
-            throw new YAHOO.util.UnexpectedValue(this._formatMessage(message, "Value should be a string."), actual);
-        }
-    },
-    
-    /**
-     * Asserts that a value is of a particular type. 
-     * @param {String} expectedType The expected type of the variable.
-     * @param {Object} actualValue The actual value to test.
-     * @param {String} message (Optional) The message to display if the assertion fails.
-     * @method isTypeOf
-     * @static
-     */
-    isTypeOf : function (expected /*:String*/, actual /*:Object*/, message /*:String*/) /*:Void*/{
-        if (typeof actual != expected){
-            throw new YAHOO.util.ComparisonFailure(this._formatMessage(message, "Value should be of type " + expected + "."), expected, typeof actual);
-        }
-    }
-};
-
-//-----------------------------------------------------------------------------
-// Assertion errors
-//-----------------------------------------------------------------------------
-
-/**
- * AssertionError is thrown whenever an assertion fails. It provides methods
- * to more easily get at error information and also provides a base class
- * from which more specific assertion errors can be derived.
- *
- * @param {String} message The message to display when the error occurs.
- * @namespace YAHOO.util
- * @class AssertionError
- * @extends Error
- * @constructor
- */ 
-YAHOO.util.AssertionError = function (message /*:String*/){
-
-    //call superclass
-    //arguments.callee.superclass.constructor.call(this, message);
-    
-    /*
-     * Error message. Must be duplicated to ensure browser receives it.
-     * @type String
-     * @property message
-     */
-    this.message /*:String*/ = message;
-    
-    /**
-     * The name of the error that occurred.
-     * @type String
-     * @property name
-     */
-    this.name /*:String*/ = "AssertionError";
-};
-
-//inherit methods
-YAHOO.lang.extend(YAHOO.util.AssertionError, Object, {
-
-    /**
-     * Returns a fully formatted error for an assertion failure. This should
-     * be overridden by all subclasses to provide specific information.
-     * @method getMessage
-     * @return {String} A string describing the error.
-     */
-    getMessage : function () /*:String*/ {
-        return this.message;
-    },
-    
-    /**
-     * Returns a string representation of the error.
-     * @method toString
-     * @return {String} A string representation of the error.
-     */
-    toString : function () /*:String*/ {
-        return this.name + ": " + this.getMessage();
-    }
-    
-});
-
-/**
- * ComparisonFailure is subclass of AssertionError that is thrown whenever
- * a comparison between two values fails. It provides mechanisms to retrieve
- * both the expected and actual value.
- *
- * @param {String} message The message to display when the error occurs.
- * @param {Object} expected The expected value.
- * @param {Object} actual The actual value that caused the assertion to fail.
- * @namespace YAHOO.util
- * @extends YAHOO.util.AssertionError
- * @class ComparisonFailure
- * @constructor
- */ 
-YAHOO.util.ComparisonFailure = function (message /*:String*/, expected /*:Object*/, actual /*:Object*/){
-
-    //call superclass
-    YAHOO.util.AssertionError.call(this, message);
-    
-    /**
-     * The expected value.
-     * @type Object
-     * @property expected
-     */
-    this.expected /*:Object*/ = expected;
-    
-    /**
-     * The actual value.
-     * @type Object
-     * @property actual
-     */
-    this.actual /*:Object*/ = actual;
-    
-    /**
-     * The name of the error that occurred.
-     * @type String
-     * @property name
-     */
-    this.name /*:String*/ = "ComparisonFailure";
-    
-};
-
-//inherit methods
-YAHOO.lang.extend(YAHOO.util.ComparisonFailure, YAHOO.util.AssertionError, {
-
-    /**
-     * Returns a fully formatted error for an assertion failure. This message
-     * provides information about the expected and actual values.
-     * @method toString
-     * @return {String} A string describing the error.
-     */
-    getMessage : function () /*:String*/ {
-        return this.message + "\nExpected: " + this.expected + " (" + (typeof this.expected) + ")"  +
-            "\nActual:" + this.actual + " (" + (typeof this.actual) + ")";
-    }
-
-});
-
-/**
- * UnexpectedValue is subclass of AssertionError that is thrown whenever
- * a value was unexpected in its scope. This typically means that a test
- * was performed to determine that a value was *not* equal to a certain
- * value.
- *
- * @param {String} message The message to display when the error occurs.
- * @param {Object} unexpected The unexpected value.
- * @namespace YAHOO.util
- * @extends YAHOO.util.AssertionError
- * @class UnexpectedValue
- * @constructor
- */ 
-YAHOO.util.UnexpectedValue = function (message /*:String*/, unexpected /*:Object*/){
-
-    //call superclass
-    YAHOO.util.AssertionError.call(this, message);
-    
-    /**
-     * The unexpected value.
-     * @type Object
-     * @property unexpected
-     */
-    this.unexpected /*:Object*/ = unexpected;
-    
-    /**
-     * The name of the error that occurred.
-     * @type String
-     * @property name
-     */
-    this.name /*:String*/ = "UnexpectedValue";
-    
-};
-
-//inherit methods
-YAHOO.lang.extend(YAHOO.util.UnexpectedValue, YAHOO.util.AssertionError, {
-
-    /**
-     * Returns a fully formatted error for an assertion failure. The message
-     * contains information about the unexpected value that was encountered.
-     * @method getMessage
-     * @return {String} A string describing the error.
-     */
-    getMessage : function () /*:String*/ {
-        return this.message + "\nUnexpected: " + this.unexpected + " (" + (typeof this.unexpected) + ") ";
-    }
-
-});
-
-/**
- * ShouldFail is subclass of AssertionError that is thrown whenever
- * a test was expected to fail but did not.
- *
- * @param {String} message The message to display when the error occurs.
- * @namespace YAHOO.util
- * @extends YAHOO.util.AssertionError
- * @class ShouldFail
- * @constructor
- */  
-YAHOO.util.ShouldFail = function (message /*:String*/){
-
-    //call superclass
-    YAHOO.util.AssertionError.call(this, message || "This test should fail but didn't.");
-    
-    /**
-     * The name of the error that occurred.
-     * @type String
-     * @property name
-     */
-    this.name /*:String*/ = "ShouldFail";
-    
-};
-
-//inherit methods
-YAHOO.lang.extend(YAHOO.util.ShouldFail, YAHOO.util.AssertionError);
-
-/**
- * ShouldError is subclass of AssertionError that is thrown whenever
- * a test is expected to throw an error but doesn't.
- *
- * @param {String} message The message to display when the error occurs.
- * @namespace YAHOO.util
- * @extends YAHOO.util.AssertionError
- * @class ShouldError
- * @constructor
- */  
-YAHOO.util.ShouldError = function (message /*:String*/){
-
-    //call superclass
-    YAHOO.util.AssertionError.call(this, message || "This test should have thrown an error but didn't.");
-    
-    /**
-     * The name of the error that occurred.
-     * @type String
-     * @property name
-     */
-    this.name /*:String*/ = "ShouldError";
-    
-};
-
-//inherit methods
-YAHOO.lang.extend(YAHOO.util.ShouldError, YAHOO.util.AssertionError);
-
-/**
- * UnexpectedError is subclass of AssertionError that is thrown whenever
- * an error occurs within the course of a test and the test was not expected
- * to throw an error.
- *
- * @param {Error} cause The unexpected error that caused this error to be 
- *                      thrown.
- * @namespace YAHOO.util
- * @extends YAHOO.util.AssertionError
- * @class UnexpectedError
- * @constructor
- */  
-YAHOO.util.UnexpectedError = function (cause /*:Object*/){
-
-    //call superclass
-    YAHOO.util.AssertionError.call(this, "Unexpected error: " + cause.message);
-    
-    /**
-     * The unexpected error that occurred.
-     * @type Error
-     * @property cause
-     */
-    this.cause /*:Error*/ = cause;
-    
-    /**
-     * The name of the error that occurred.
-     * @type String
-     * @property name
-     */
-    this.name /*:String*/ = "UnexpectedError";
-    
-    /**
-     * Stack information for the error (if provided).
-     * @type String
-     * @property stack
-     */
-    this.stack /*:String*/ = cause.stack;
-    
-};
-
-//inherit methods
-YAHOO.lang.extend(YAHOO.util.UnexpectedError, YAHOO.util.AssertionError);
-//-----------------------------------------------------------------------------
-// ArrayAssert object
-//-----------------------------------------------------------------------------
-
-/**
- * The ArrayAssert object provides functions to test JavaScript array objects
- * for a variety of cases.
- *
- * @namespace YAHOO.util
- * @class ArrayAssert
- * @static
- */
-YAHOO.util.ArrayAssert = {
-
-    /**
-     * Asserts that a value is present in an array. This uses the triple equals 
-     * sign so no type cohersion may occur.
-     * @param {Object} needle The value that is expected in the array.
-     * @param {Array} haystack An array of values.
-     * @param {String} message (Optional) The message to display if the assertion fails.
-     * @method contains
-     * @static
-     */
-    contains : function (needle /*:Object*/, haystack /*:Array*/, 
-                           message /*:String*/) /*:Void*/ {
-        
-        var found /*:Boolean*/ = false;
-        var Assert = YAHOO.util.Assert;
-        
-        //begin checking values
-        for (var i=0; i < haystack.length && !found; i++){
-            if (haystack[i] === needle) {
-                found = true;
-            }
-        }
-        
-        if (!found){
-            Assert.fail(Assert._formatMessage(message, "Value " + needle + " (" + (typeof needle) + ") not found in array [" + haystack + "]."));
-        }
-    },
-
-    /**
-     * Asserts that a set of values are present in an array. This uses the triple equals 
-     * sign so no type cohersion may occur. For this assertion to pass, all values must
-     * be found.
-     * @param {Object[]} needles An array of values that are expected in the array.
-     * @param {Array} haystack An array of values to check.
-     * @param {String} message (Optional) The message to display if the assertion fails.
-     * @method containsItems
-     * @static
-     */
-    containsItems : function (needles /*:Object[]*/, haystack /*:Array*/, 
-                           message /*:String*/) /*:Void*/ {
-
-        //begin checking values
-        for (var i=0; i < needles.length; i++){
-            this.contains(needles[i], haystack, message);
-        }
-    },
-
-    /**
-     * Asserts that a value matching some condition is present in an array. This uses
-     * a function to determine a match.
-     * @param {Function} matcher A function that returns true if the items matches or false if not.
-     * @param {Array} haystack An array of values.
-     * @param {String} message (Optional) The message to display if the assertion fails.
-     * @method containsMatch
-     * @static
-     */
-    containsMatch : function (matcher /*:Function*/, haystack /*:Array*/, 
-                           message /*:String*/) /*:Void*/ {
-        
-        //check for valid matcher
-        if (typeof matcher != "function"){
-            throw new TypeError("ArrayAssert.containsMatch(): First argument must be a function.");
-        }
-        
-        var found /*:Boolean*/ = false;
-        var Assert = YAHOO.util.Assert;
-        
-        //begin checking values
-        for (var i=0; i < haystack.length && !found; i++){
-            if (matcher(haystack[i])) {
-                found = true;
-            }
-        }
-        
-        if (!found){
-            Assert.fail(Assert._formatMessage(message, "No match found in array [" + haystack + "]."));
-        }
-    },
-
-    /**
-     * Asserts that a value is not present in an array. This uses the triple equals 
-     * sign so no type cohersion may occur.
-     * @param {Object} needle The value that is expected in the array.
-     * @param {Array} haystack An array of values.
-     * @param {String} message (Optional) The message to display if the assertion fails.
-     * @method doesNotContain
-     * @static
-     */
-    doesNotContain : function (needle /*:Object*/, haystack /*:Array*/, 
-                           message /*:String*/) /*:Void*/ {
-        
-        var found /*:Boolean*/ = false;
-        var Assert = YAHOO.util.Assert;
-        
-        //begin checking values
-        for (var i=0; i < haystack.length && !found; i++){
-            if (haystack[i] === needle) {
-                found = true;
-            }
-        }
-        
-        if (found){
-            Assert.fail(Assert._formatMessage(message, "Value found in array [" + haystack + "]."));
-        }
-    },
-
-    /**
-     * Asserts that a set of values are not present in an array. This uses the triple equals 
-     * sign so no type cohersion may occur. For this assertion to pass, all values must
-     * not be found.
-     * @param {Object[]} needles An array of values that are not expected in the array.
-     * @param {Array} haystack An array of values to check.
-     * @param {String} message (Optional) The message to display if the assertion fails.
-     * @method doesNotContainItems
-     * @static
-     */
-    doesNotContainItems : function (needles /*:Object[]*/, haystack /*:Array*/, 
-                           message /*:String*/) /*:Void*/ {
-
-        for (var i=0; i < needles.length; i++){
-            this.doesNotContain(needles[i], haystack, message);
-        }
-
-    },
-        
-    /**
-     * Asserts that no values matching a condition are present in an array. This uses
-     * a function to determine a match.
-     * @param {Function} matcher A function that returns true if the items matches or false if not.
-     * @param {Array} haystack An array of values.
-     * @param {String} message (Optional) The message to display if the assertion fails.
-     * @method doesNotContainMatch
-     * @static
-     */
-    doesNotContainMatch : function (matcher /*:Function*/, haystack /*:Array*/, 
-                           message /*:String*/) /*:Void*/ {
-        
-        //check for valid matcher
-        if (typeof matcher != "function"){
-            throw new TypeError("ArrayAssert.doesNotContainMatch(): First argument must be a function.");
-        }
-
-        var found /*:Boolean*/ = false;
-        var Assert = YAHOO.util.Assert;
-        
-        //begin checking values
-        for (var i=0; i < haystack.length && !found; i++){
-            if (matcher(haystack[i])) {
-                found = true;
-            }
-        }
-        
-        if (found){
-            Assert.fail(Assert._formatMessage(message, "Value found in array [" + haystack + "]."));
-        }
-    },
-        
-    /**
-     * Asserts that the given value is contained in an array at the specified index.
-     * This uses the triple equals sign so no type cohersion will occur.
-     * @param {Object} needle The value to look for.
-     * @param {Array} haystack The array to search in.
-     * @param {int} index The index at which the value should exist.
-     * @param {String} message (Optional) The message to display if the assertion fails.
-     * @method indexOf
-     * @static
-     */
-    indexOf : function (needle /*:Object*/, haystack /*:Array*/, index /*:int*/, message /*:String*/) /*:Void*/ {
-    
-        //try to find the value in the array
-        for (var i=0; i < haystack.length; i++){
-            if (haystack[i] === needle){
-                YAHOO.util.Assert.areEqual(index, i, message || "Value exists at index " + i + " but should be at index " + index + ".");
-                return;
-            }
-        }
-        
-        var Assert = YAHOO.util.Assert;
-        
-        //if it makes it here, it wasn't found at all
-        Assert.fail(Assert._formatMessage(message, "Value doesn't exist in array [" + haystack + "]."));
-    },
-        
-    /**
-     * Asserts that the values in an array are equal, and in the same position,
-     * as values in another array. This uses the double equals sign
-     * so type cohersion may occur. Note that the array objects themselves
-     * need not be the same for this test to pass.
-     * @param {Array} expected An array of the expected values.
-     * @param {Array} actual Any array of the actual values.
-     * @param {String} message (Optional) The message to display if the assertion fails.
-     * @method itemsAreEqual
-     * @static
-     */
-    itemsAreEqual : function (expected /*:Array*/, actual /*:Array*/, 
-                           message /*:String*/) /*:Void*/ {
-        
-        //one may be longer than the other, so get the maximum length
-        var len /*:int*/ = Math.max(expected.length, actual.length || 0);
-        var Assert = YAHOO.util.Assert;
-       
-        //begin checking values
-        for (var i=0; i < len; i++){
-            Assert.areEqual(expected[i], actual[i], 
-                Assert._formatMessage(message, "Values in position " + i + " are not equal."));
-        }
-    },
-    
-    /**
-     * Asserts that the values in an array are equivalent, and in the same position,
-     * as values in another array. This uses a function to determine if the values
-     * are equivalent. Note that the array objects themselves
-     * need not be the same for this test to pass.
-     * @param {Array} expected An array of the expected values.
-     * @param {Array} actual Any array of the actual values.
-     * @param {Function} comparator A function that returns true if the values are equivalent
-     *      or false if not.
-     * @param {String} message (Optional) The message to display if the assertion fails.
-     * @return {Void}
-     * @method itemsAreEquivalent
-     * @static
-     */
-    itemsAreEquivalent : function (expected /*:Array*/, actual /*:Array*/, 
-                           comparator /*:Function*/, message /*:String*/) /*:Void*/ {
-        
-        //make sure the comparator is valid
-        if (typeof comparator != "function"){
-            throw new TypeError("ArrayAssert.itemsAreEquivalent(): Third argument must be a function.");
-        }
-        
-        //one may be longer than the other, so get the maximum length
-        var len /*:int*/ = Math.max(expected.length, actual.length || 0);
-        
-        //begin checking values
-        for (var i=0; i < len; i++){
-            if (!comparator(expected[i], actual[i])){
-                throw new YAHOO.util.ComparisonFailure(YAHOO.util.Assert._formatMessage(message, "Values in position " + i + " are not equivalent."), expected[i], actual[i]);
-            }
-        }
-    },
-    
-    /**
-     * Asserts that an array is empty.
-     * @param {Array} actual The array to test.
-     * @param {String} message (Optional) The message to display if the assertion fails.
-     * @method isEmpty
-     * @static
-     */
-    isEmpty : function (actual /*:Array*/, message /*:String*/) /*:Void*/ {        
-        if (actual.length > 0){
-            var Assert = YAHOO.util.Assert;
-            Assert.fail(Assert._formatMessage(message, "Array should be empty."));
-        }
-    },    
-    
-    /**
-     * Asserts that an array is not empty.
-     * @param {Array} actual The array to test.
-     * @param {String} message (Optional) The message to display if the assertion fails.
-     * @method isNotEmpty
-     * @static
-     */
-    isNotEmpty : function (actual /*:Array*/, message /*:String*/) /*:Void*/ {        
-        if (actual.length === 0){
-            var Assert = YAHOO.util.Assert;
-            Assert.fail(Assert._formatMessage(message, "Array should not be empty."));
-        }
-    },    
-    
-    /**
-     * Asserts that the values in an array are the same, and in the same position,
-     * as values in another array. This uses the triple equals sign
-     * so no type cohersion will occur. Note that the array objects themselves
-     * need not be the same for this test to pass.
-     * @param {Array} expected An array of the expected values.
-     * @param {Array} actual Any array of the actual values.
-     * @param {String} message (Optional) The message to display if the assertion fails.
-     * @method itemsAreSame
-     * @static
-     */
-    itemsAreSame : function (expected /*:Array*/, actual /*:Array*/, 
-                          message /*:String*/) /*:Void*/ {
-        
-        //one may be longer than the other, so get the maximum length
-        var len /*:int*/ = Math.max(expected.length, actual.length || 0);
-        var Assert = YAHOO.util.Assert;
-        
-        //begin checking values
-        for (var i=0; i < len; i++){
-            Assert.areSame(expected[i], actual[i], 
-                Assert._formatMessage(message, "Values in position " + i + " are not the same."));
-        }
-    },
-    
-    /**
-     * Asserts that the given value is contained in an array at the specified index,
-     * starting from the back of the array.
-     * This uses the triple equals sign so no type cohersion will occur.
-     * @param {Object} needle The value to look for.
-     * @param {Array} haystack The array to search in.
-     * @param {int} index The index at which the value should exist.
-     * @param {String} message (Optional) The message to display if the assertion fails.
-     * @method lastIndexOf
-     * @static
-     */
-    lastIndexOf : function (needle /*:Object*/, haystack /*:Array*/, index /*:int*/, message /*:String*/) /*:Void*/ {
-    
-        var Assert = YAHOO.util.Assert;
-    
-        //try to find the value in the array
-        for (var i=haystack.length; i >= 0; i--){
-            if (haystack[i] === needle){
-                Assert.areEqual(index, i, Assert._formatMessage(message, "Value exists at index " + i + " but should be at index " + index + "."));
-                return;
-            }
-        }
-        
-        //if it makes it here, it wasn't found at all
-        Assert.fail(Assert._formatMessage(message, "Value doesn't exist in array."));        
-    }
-    
-};
-YAHOO.namespace("util");
-
-
-//-----------------------------------------------------------------------------
-// ObjectAssert object
-//-----------------------------------------------------------------------------
-
-/**
- * The ObjectAssert object provides functions to test JavaScript objects
- * for a variety of cases.
- *
- * @namespace YAHOO.util
- * @class ObjectAssert
- * @static
- */
-YAHOO.util.ObjectAssert = {
-        
-    /**
-     * Asserts that all properties in the object exist in another object.
-     * @param {Object} expected An object with the expected properties.
-     * @param {Object} actual An object with the actual properties.
-     * @param {String} message (Optional) The message to display if the assertion fails.
-     * @method propertiesAreEqual
-     * @static
-     */
-    propertiesAreEqual : function (expected /*:Object*/, actual /*:Object*/, 
-                           message /*:String*/) /*:Void*/ {
-        
-        var Assert = YAHOO.util.Assert;
-        
-        //get all properties in the object
-        var properties /*:Array*/ = [];        
-        for (var property in expected){
-            properties.push(property);
-        }
-        
-        //see if the properties are in the expected object
-        for (var i=0; i < properties.length; i++){
-            Assert.isNotUndefined(actual[properties[i]], 
-                Assert._formatMessage(message, "Property '" + properties[i] + "' expected."));
-        }
-
-    },
-    
-    /**
-     * Asserts that an object has a property with the given name.
-     * @param {String} propertyName The name of the property to test.
-     * @param {Object} object The object to search.
-     * @param {String} message (Optional) The message to display if the assertion fails.
-     * @method hasProperty
-     * @static
-     */    
-    hasProperty : function (propertyName /*:String*/, object /*:Object*/, message /*:String*/) /*:Void*/ {
-        if (!(propertyName in object)){
-            var Assert = YAHOO.util.Assert;
-            Assert.fail(Assert._formatMessage(message, "Property '" + propertyName + "' not found on object."));
-        }    
-    },
-    
-    /**
-     * Asserts that a property with the given name exists on an object instance (not on its prototype).
-     * @param {String} propertyName The name of the property to test.
-     * @param {Object} object The object to search.
-     * @param {String} message (Optional) The message to display if the assertion fails.
-     * @method hasProperty
-     * @static
-     */    
-    hasOwnProperty : function (propertyName /*:String*/, object /*:Object*/, message /*:String*/) /*:Void*/ {
-        if (!YAHOO.lang.hasOwnProperty(object, propertyName)){
-            var Assert = YAHOO.util.Assert;
-            Assert.fail(Assert._formatMessage(message, "Property '" + propertyName + "' not found on object instance."));
-        }     
-    }
-};
-//-----------------------------------------------------------------------------
-// DateAssert object
-//-----------------------------------------------------------------------------
-
-/**
- * The DateAssert object provides functions to test JavaScript Date objects
- * for a variety of cases.
- *
- * @namespace YAHOO.util
- * @class DateAssert
- * @static
- */
-YAHOO.util.DateAssert = {
-
-    /**
-     * Asserts that a date's month, day, and year are equal to another date's.
-     * @param {Date} expected The expected date.
-     * @param {Date} actual The actual date to test.
-     * @param {String} message (Optional) The message to display if the assertion fails.
-     * @method datesAreEqual
-     * @static
-     */
-    datesAreEqual : function (expected /*:Date*/, actual /*:Date*/, message /*:String*/){
-        if (expected instanceof Date && actual instanceof Date){
-            var Assert = YAHOO.util.Assert;
-            Assert.areEqual(expected.getFullYear(), actual.getFullYear(), Assert._formatMessage(message, "Years should be equal."));
-            Assert.areEqual(expected.getMonth(), actual.getMonth(), Assert._formatMessage(message, "Months should be equal."));
-            Assert.areEqual(expected.getDate(), actual.getDate(), Assert._formatMessage(message, "Day of month should be equal."));
-        } else {
-            throw new TypeError("DateAssert.datesAreEqual(): Expected and actual values must be Date objects.");
-        }
-    },
-
-    /**
-     * Asserts that a date's hour, minutes, and seconds are equal to another date's.
-     * @param {Date} expected The expected date.
-     * @param {Date} actual The actual date to test.
-     * @param {String} message (Optional) The message to display if the assertion fails.
-     * @method timesAreEqual
-     * @static
-     */
-    timesAreEqual : function (expected /*:Date*/, actual /*:Date*/, message /*:String*/){
-        if (expected instanceof Date && actual instanceof Date){
-            var Assert = YAHOO.util.Assert;
-            Assert.areEqual(expected.getHours(), actual.getHours(), Assert._formatMessage(message, "Hours should be equal."));
-            Assert.areEqual(expected.getMinutes(), actual.getMinutes(), Assert._formatMessage(message, "Minutes should be equal."));
-            Assert.areEqual(expected.getSeconds(), actual.getSeconds(), Assert._formatMessage(message, "Seconds should be equal."));
-        } else {
-            throw new TypeError("DateAssert.timesAreEqual(): Expected and actual values must be Date objects.");
-        }
-    }
-    
-};
-YAHOO.register("yuitest_core", YAHOO.tool.TestRunner, {version: "2.8.0r4", build: "2449"});
index 2743c5f..6f72392 100644 (file)
@@ -410,7 +410,7 @@ function validate1(date) {
         [% END %]
        
            [% IF ( USERBLOCKEDOVERDUE ) %]
-            <li>Patron has [% USERBLOCKEDOVERDUE %] overdue item(s).  Check out anyway?</li>
+            <li>Checkouts are BLOCKED because patron has overdue items</li>
         [% END %]
         </ul>
 
index b88401c..3d511ea 100644 (file)
@@ -4,7 +4,6 @@
 <script type="text/javascript" src="[% themelang %]/js/background-job-progressbar.js"></script>
 <link rel="stylesheet" type="text/css" href="[% themelang %]/css/pages/batchMod.css" />
 <script type="text/javascript" src="[% themelang %]/lib/jquery/plugins/jquery.tablesorter.min.js"></script>
-<script src="[% themelang %]/lib/yui/cookie/cookie-min.js"></script>
 <script type="text/javascript" src="[% themelang %]/lib/jquery/plugins/jquery.checkboxes.min.js"></script>
 <script type="text/javascript">
 //<![CDATA[
@@ -12,7 +11,6 @@
 // Prepare array of all column headers, incrementing each index by
 // two to accomodate control and title columns
 var allColumns = new Array([% FOREACH item_header_loo IN item_header_loop %]'[% loop.count %]'[% UNLESS ( loop.last ) %],[% END %][% END %]);
-console.log(allColumns);
 for( x=0; x<allColumns.length; x++ ){
   allColumns[x] = Number(allColumns[x]) + 2;
 }
index e64776a..4c7198e 100644 (file)
@@ -4,7 +4,6 @@
 <script type="text/javascript" src="[% themelang %]/js/background-job-progressbar.js"></script>
 <link rel="stylesheet" type="text/css" href="[% themelang %]/css/pages/batchMod.css" />
 <script type="text/javascript" src="[% themelang %]/lib/jquery/plugins/jquery.tablesorter.min.js"></script>
-<script src="[% themelang %]/lib/yui/cookie/cookie-min.js"></script>
 <script type="text/javascript" src="[% themelang %]/lib/jquery/plugins/jquery.checkboxes.min.js"></script>
 <script type="text/javascript">
 //<![CDATA[
@@ -12,7 +11,6 @@
 // Prepare array of all column headers, incrementing each index by
 // two to accomodate control and title columns
 var allColumns = new Array([% FOREACH item_header_loo IN item_header_loop %]'[% loop.count %]'[% UNLESS ( loop.last ) %],[% END %][% END %]);
-console.log(allColumns);
 for( x=0; x<allColumns.length; x++ ){
   allColumns[x] = Number(allColumns[x]) + 2;
 }
index c795687..1f668b9 100644 (file)
@@ -67,8 +67,8 @@ $(document).ready(function(){
         <legend>Select items you want to check</legend>
         <ol><li>
         <label for="branch">Library</label>
-            <input type="radio" name="branch" value="homebranch">Home library</input>
-            <input type="radio" name="branch" value="holdingbranch">Current location</input>
+            <input type="radio" name="branch" value="homebranch"> Home library</input>
+            <input type="radio" name="branch" value="holdingbranch"> Current location</input>
         </li><li>
         <label for="branchloop">Library</label><select id="branchloop" name="branchcode" style="width:12em;">
             <option value="">All locations</option>
index 4ff9900..2a9deda 100644 (file)
@@ -188,7 +188,7 @@ $(document).ready(function(){
   </table>
   [% END %]
   [% IF ( did_revert ) %]
-  <div class="dialog message">Undid import of records</div>
+  <div class="dialog message">Success: Import reversed</div>
   <table>
   <tr><td>Number of records deleted</td><td>[% num_deleted %]</td></tr>
   <tr><td>Number of items deleted</td><td>[% num_items_deleted %]</td></tr>
index 46b35fa..8c0618b 100644 (file)
@@ -65,7 +65,6 @@
                        <xsl:when test="not($chopString)"/>
                        <xsl:otherwise><xsl:value-of select="$chopString"/></xsl:otherwise>
                </xsl:choose>
-<xsl:text> </xsl:text>
        </xsl:template>
 
        <!-- Function extractControlNumber is used to extract the control number (record number) from MARC tags 773/80/85 [etc.] subfield $w.
index 9e6c3d6..2f0f3a0 100644 (file)
@@ -58,7 +58,7 @@
                 <tr>
             [% END %]
                     <td>[% PROCESS authresult summary=resul.summary %]</td>
-                    <td>[% authtypetext %]</td>
+                    <td>[% resul.authtype %]</td>
                                        [% UNLESS ( resul.isEDITORS ) %]
                                                <td>
                                                         <a href="/cgi-bin/koha/opac-search.pl?type=opac&amp;op=do_search&amp;q=an=[% resul.authid %]">[% resul.used %] biblios</a>
index 9ec913c..c39ca39 100644 (file)
@@ -65,7 +65,6 @@
                        <xsl:when test="not($chopString)"/>
                        <xsl:otherwise><xsl:value-of select="$chopString"/></xsl:otherwise>
                </xsl:choose>
-<xsl:text> </xsl:text>
        </xsl:template>
 
        <!-- Function extractControlNumber is used to extract the control number (record number) from MARC tags 773/80/85 [etc.] subfield $w.
index 6e2263f..1229c0a 100755 (executable)
@@ -26,8 +26,8 @@ use Text::CSV_XS;
 use Data::Dumper;
 
 use C4::Debug;
-use C4::Creators 1.000000;
-use C4::Labels 1.000000;
+use C4::Creators;
+use C4::Labels;
 
 my $cgi = new CGI;
 
index 6d32c6c..3001c14 100755 (executable)
@@ -24,8 +24,8 @@ use warnings;
 use CGI;
 use C4::Auth;
 use C4::Debug;
-use C4::Creators 1.000000;
-use C4::Labels 1.000000;
+use C4::Creators;
+use C4::Labels;
 
 my $cgi = new CGI;
 
@@ -90,6 +90,7 @@ sub _print_text {
     foreach my $text_line (@$label_text) {
         my $pdf_font = $pdf->Font($text_line->{'font'});
         my $line = "BT /$pdf_font $text_line->{'font_size'} Tf $text_line->{'text_llx'} $text_line->{'text_lly'} Td ($text_line->{'line'}) Tj ET";
+    utf8::decode($line);
         $pdf->Add($line);
     }
 }
index 8eac221..6604dc4 100755 (executable)
@@ -26,8 +26,8 @@ use XML::Simple;
 use Data::Dumper;
 
 use C4::Debug;
-use C4::Creators 1.000000;
-use C4::Labels 1.000000;
+use C4::Creators;
+use C4::Labels;
 
 my $cgi = new CGI;
 
index fbcfe0a..d534b87 100755 (executable)
@@ -28,8 +28,8 @@ use C4::Auth qw(get_template_and_user);
 use C4::Output qw(output_html_with_http_headers);
 use C4::Branch qw(get_branch_code_from_name);
 use C4::Items qw(GetItemnumberFromBarcode);
-use C4::Creators 1.000000;
-use C4::Labels 1.000000;
+use C4::Creators;
+use C4::Labels;
 
 my $cgi = new CGI;
 my ( $template, $loggedinuser, $cookie ) = get_template_and_user(
index db3d32c..268912c 100755 (executable)
@@ -26,8 +26,8 @@ use POSIX;
 
 use C4::Auth qw(get_template_and_user);
 use C4::Output qw(output_html_with_http_headers);
-use C4::Creators 1.000000;
-use C4::Labels 1.000000;
+use C4::Creators;
+use C4::Labels;
 
 my $cgi = new CGI;
 my ( $template, $loggedinuser, $cookie ) = get_template_and_user(
index b114554..59c6abc 100755 (executable)
@@ -25,8 +25,8 @@ use CGI;
 
 use C4::Auth qw(get_template_and_user);
 use C4::Output qw(output_html_with_http_headers);
-use C4::Creators 1.000000;
-use C4::Labels 1.000000;
+use C4::Creators;
+use C4::Labels;
 
 my $cgi = new CGI;
 my ( $template, $loggedinuser, $cookie ) = get_template_and_user(
index 9917f6b..f367a65 100755 (executable)
@@ -25,8 +25,8 @@ use CGI;
 
 use C4::Auth qw(get_template_and_user);
 use C4::Output qw(output_html_with_http_headers);
-use C4::Creators 1.000000;
-use C4::Labels 1.000000;
+use C4::Creators;
+use C4::Labels;
 
 my $cgi = new CGI;
 my ( $template, $loggedinuser, $cookie ) = get_template_and_user(
index c70ea6c..7ef3300 100755 (executable)
@@ -28,8 +28,8 @@ use Data::Dumper;
 use C4::Auth qw(get_template_and_user);
 use C4::Output qw(output_html_with_http_headers);
 use autouse 'C4::Branch' => qw(get_branch_code_from_name);
-use C4::Creators 1.000000;
-use C4::Labels 1.000000;
+use C4::Creators;
+use C4::Labels;
 
 my $cgi = new CGI;
 my ( $template, $loggedinuser, $cookie ) = get_template_and_user(
index 3947163..b65c7a6 100755 (executable)
@@ -25,8 +25,8 @@ use Data::Dumper;
 
 use C4::Auth qw(get_template_and_user);
 use C4::Output qw(output_html_with_http_headers);
-use C4::Creators::Lib 1.000000 qw(get_all_templates get_all_layouts get_output_formats);
-use C4::Labels::Batch 1.000000;
+use C4::Creators::Lib qw(get_all_templates get_all_layouts get_output_formats);
+use C4::Labels::Batch;
 
 my $cgi = new CGI;
 my ( $template, $loggedinuser, $cookie ) = get_template_and_user(
index 8f529f3..25ae7e9 100755 (executable)
@@ -251,7 +251,7 @@ if ( @borrowernumbers ) {
 }
 my $roaddetails = &GetRoadTypeDetails( $data->{'streettype'} );
 my $today       = DateTime->now( time_zone => C4::Context->tz);
-$today->truncate(to => 'days');
+$today->truncate(to => 'day');
 my @borrowers_with_issues;
 my $overdues_exist = 0;
 my $totalprice = 0;
@@ -494,7 +494,7 @@ sub build_issue_data {
             $row{red} = 1;
         }
         if ($issuedate) {
-            $issuedate->truncate( to => 'days' );
+            $issuedate->truncate( to => 'day' );
             if ( DateTime->compare( $issuedate, $today ) == 0 ) {
                 $row{today} = 1;
             }
index 165b16e..286b035 100755 (executable)
@@ -21,14 +21,14 @@ use strict;
 use warnings;
 
 BEGIN {
-
     # find Koha's Perl modules
     # test carefully before changing this
     use FindBin;
     eval { require "$FindBin::Bin/../kohalib.pl" };
 }
 
-use CGI; # NOT a CGI script, this is just to keep C4::Templates::gettemplate happy
+use
+  CGI; # NOT a CGI script, this is just to keep C4::Templates::gettemplate happy
 use C4::Context;
 use C4::Dates;
 use C4::Debug;
@@ -42,41 +42,89 @@ sub usage {
 Usage: $0 OUTPUT_DIRECTORY
   Will print all waiting print notices to
   OUTPUT_DIRECTORY/notices-CURRENT_DATE.html .
+
+  -s --split  Split messages into separate file by borrower home library to OUTPUT_DIRECTORY/notices-CURRENT_DATE-BRANCHCODE.html
 USAGE
     exit $_[0];
 }
 
-my ( $stylesheet, $help );
+my ( $stylesheet, $help, $split );
 
 GetOptions(
-    'h|help' => \$help,
-) || usage( 1 );
+    'h|help'  => \$help,
+    's|split' => \$split,
+) || usage(1);
 
-usage( 0 ) if ( $help );
+usage(0) if ($help);
 
 my $output_directory = $ARGV[0];
 
 if ( !$output_directory || !-d $output_directory ) {
-    print STDERR "Error: You must specify a valid directory to dump the print notices in.\n";
-    usage( 1 );
+    print STDERR
+"Error: You must specify a valid directory to dump the print notices in.\n";
+    usage(1);
+}
+
+my $today        = C4::Dates->new();
+my @all_messages = @{ GetPrintMessages() };
+exit unless (@all_messages);
+
+my $OUTPUT;
+
+if ($split) {
+    my %messages_by_branch;
+    foreach my $message (@all_messages) {
+        push( @{ $messages_by_branch{ $message->{'branchcode'} } }, $message );
+    }
+
+    foreach my $branchcode ( keys %messages_by_branch ) {
+        my @messages = @{ $messages_by_branch{$branchcode} };
+        open $OUTPUT, '>',
+          File::Spec->catdir( $output_directory,
+            "holdnotices-" . $today->output('iso') . "-$branchcode.html" );
+
+        my $template =
+          C4::Templates::gettemplate( 'batch/print-notices.tmpl', 'intranet',
+            new CGI );
+
+        $template->param(
+            stylesheet => C4::Context->preference("NoticeCSS"),
+            today      => $today->output(),
+            messages   => \@messages,
+        );
+
+        print $OUTPUT $template->output;
+
+        foreach my $message (@messages) {
+            C4::Letters::_set_message_status(
+                { message_id => $message->{'message_id'}, status => 'sent' } );
+        }
+
+        close $OUTPUT;
+    }
 }
+else {
+    open $OUTPUT, '>',
+      File::Spec->catdir( $output_directory,
+        "holdnotices-" . $today->output('iso') . ".html" );
 
-my $today = C4::Dates->new();
-my @messages = @{ GetPrintMessages() };
-exit unless( @messages );
+    my $template =
+      C4::Templates::gettemplate( 'batch/print-notices.tmpl', 'intranet',
+        new CGI );
 
-open OUTPUT, '>', File::Spec->catdir( $output_directory, "holdnotices-" . $today->output( 'iso' ) . ".html" );
+    $template->param(
+        stylesheet => C4::Context->preference("NoticeCSS"),
+        today      => $today->output(),
+        messages   => \@all_messages,
+    );
 
-my $template = C4::Templates::gettemplate( 'batch/print-notices.tmpl', 'intranet', new CGI );
+    print $OUTPUT $template->output;
 
-$template->param(
-    stylesheet => C4::Context->preference("NoticeCSS"),
-    today => $today->output(),
-    messages => \@messages,
-);
+    foreach my $message (@all_messages) {
+        C4::Letters::_set_message_status(
+            { message_id => $message->{'message_id'}, status => 'sent' } );
+    }
 
-print OUTPUT $template->output;
+    close $OUTPUT;
 
-foreach my $message ( @messages ) {
-    C4::Letters::_set_message_status( { message_id => $message->{'message_id'}, status => 'sent' } );
 }
diff --git a/misc/maintenance/check_sysprefs.sh b/misc/maintenance/check_sysprefs.sh
new file mode 100755 (executable)
index 0000000..cf28226
--- /dev/null
@@ -0,0 +1,6 @@
+#!/bin/sh
+echo "This script will compare your systempreferences with what is expected"
+echo "If you see only '#No tests run!' below, your systempreferences are OK."
+echo "Otherwise, you'll get SQL comment to insert missing systempreferences"
+echo "===== Test result ====="
+perl `dirname $0`/../../t/db_dependent/check_sysprefs.t --showsql
index e39e547..1e5a0d7 100755 (executable)
@@ -602,17 +602,17 @@ for (my $i=0;$i<@servers;$i++) {
 
             # Adding the new search if needed
             my $path_info = $cgi->url(-path_info=>1);
-            $query_cgi = $cgi->url(-query=>1);
-            $query_cgi =~ s/^$path_info\?//;
-            $query_cgi =~ s/;/&/g;
-            $query_desc .= ", $limit_desc";
+            my $query_cgi_history = $cgi->url(-query=>1);
+            $query_cgi_history =~ s/^$path_info\?//;
+            $query_cgi_history =~ s/;/&/g;
+            my $query_desc_history = "$query_desc, $limit_desc";
 
             if (!$borrowernumber || $borrowernumber eq '') {
                 # To a cookie (the user is not logged in)
                 if (($params->{'offset'}||'') eq '') {
                     push @recentSearches, {
-                                "query_desc" => $query_desc || "unknown",
-                                "query_cgi"  => $query_cgi  || "unknown",
+                                "query_desc" => $query_desc_history || "unknown",
+                                "query_cgi"  => $query_cgi_history  || "unknown",
                                 "time"       => time(),
                                 "total"      => $total
                               };
@@ -632,7 +632,7 @@ for (my $i=0;$i<@servers;$i++) {
             else {
                 # To the session (the user is logged in)
                 if (($params->{'offset'}||'') eq '') {
-                    AddSearchHistory($borrowernumber, $cgi->cookie("CGISESSID"), $query_desc, $query_cgi, $total);
+                    AddSearchHistory($borrowernumber, $cgi->cookie("CGISESSID"), $query_desc_history, $query_cgi_history, $total);
                     $template->param(ShowOpacRecentSearchLink => 1);
                 }
             }
index e4bcb8e..1ca0c91 100755 (executable)
@@ -25,8 +25,8 @@ use Data::Dumper;
 
 use C4::Auth qw(get_template_and_user);
 use C4::Output qw(output_html_with_http_headers);
-use C4::Creators 1.000000;
-use C4::Labels 1.000000;
+use C4::Creators;
+use C4::Labels;
 
 my $cgi = new CGI;
 my ( $template, $loggedinuser, $cookie ) = get_template_and_user(
index 961dfbf..6a1b67a 100755 (executable)
@@ -30,8 +30,8 @@ use autouse 'Data::Dumper' => qw(Dumper);
 use C4::Debug;
 use C4::Context;
 use autouse 'C4::Members' => qw(GetPatronImage GetMember);
-use C4::Creators 1.000000;
-use C4::Patroncards 1.000000;
+use C4::Creators;
+use C4::Patroncards;
 
 my $cgi = new CGI;
 
index fb0abf5..4897e5f 100755 (executable)
@@ -28,8 +28,8 @@ use autouse 'Data::Dumper' => qw(Dumper);
 use C4::Auth qw(get_template_and_user);
 use C4::Output qw(output_html_with_http_headers);
 use C4::Branch qw(get_branch_code_from_name);
-use C4::Creators 1.000000;
-use C4::Patroncards 1.000000;
+use C4::Creators;
+use C4::Patroncards;
 
 my $cgi = new CGI;
 my ( $template, $loggedinuser, $cookie ) = get_template_and_user(
index 0e4a702..0c4dfe4 100755 (executable)
@@ -28,8 +28,8 @@ use autouse 'Data::Dumper' => qw(Dumper);
 
 use C4::Auth qw(get_template_and_user);
 use C4::Output qw(output_html_with_http_headers);
-use C4::Creators 1.000000;
-use C4::Patroncards 1.000000;
+use C4::Creators;
+use C4::Patroncards;
 
 my $cgi = new CGI;
 my ( $template, $loggedinuser, $cookie ) = get_template_and_user(
index 5c4eb3b..6189cb3 100755 (executable)
@@ -25,8 +25,8 @@ use CGI;
 
 use C4::Auth qw(get_template_and_user);
 use C4::Output qw(output_html_with_http_headers);
-use C4::Creators::Lib 1.000000 qw(get_all_templates get_unit_values);
-use C4::Patroncards::Profile 1.000000;
+use C4::Creators::Lib qw(get_all_templates get_unit_values);
+use C4::Patroncards::Profile;
 
 my $cgi = new CGI;
 my ( $template, $loggedinuser, $cookie ) = get_template_and_user(
index a125eb5..8f60b9c 100755 (executable)
@@ -26,8 +26,8 @@ use autouse 'Data::Dumper' => qw(Dumper);
 
 use C4::Auth qw(get_template_and_user);
 use C4::Output qw(output_html_with_http_headers);
-use C4::Creators 1.000000;
-use C4::Patroncards 1.000000;
+use C4::Creators;
+use C4::Patroncards;
 
 my $cgi = new CGI;
 my ( $template, $loggedinuser, $cookie ) = get_template_and_user(
index ba3267c..f9f7eac 100755 (executable)
@@ -12,8 +12,8 @@ use C4::Context;
 use C4::Auth;
 use C4::Output;
 use C4::Debug;
-use C4::Creators 1.000000;
-use C4::Patroncards 1.000000;
+use C4::Creators;
+use C4::Patroncards;
 
 my $cgi = CGI->new;
 
index 46361cc..d052f67 100755 (executable)
@@ -28,9 +28,9 @@ use autouse 'Data::Dumper' => qw(Dumper);
 use C4::Auth qw(get_template_and_user);
 use C4::Output qw(output_html_with_http_headers);
 use autouse 'C4::Branch' => qw(get_branch_code_from_name);
-use C4::Creators 1.000000;
-use C4::Patroncards 1.000000;
-use C4::Labels 1.000000;
+use C4::Creators;
+use C4::Patroncards;
+use C4::Labels;
 
 my $cgi = new CGI;
 my ( $template, $loggedinuser, $cookie ) = get_template_and_user(
index feeb65e..fcd1dc1 100755 (executable)
@@ -25,8 +25,8 @@ use autouse 'Data::Dumper' => qw(Dumper);
 
 use C4::Auth qw(get_template_and_user);
 use C4::Output qw(output_html_with_http_headers);
-use C4::Creators 1.000000;
-use C4::Patroncards 1.000000;
+use C4::Creators;
+use C4::Patroncards;
 
 my $cgi = new CGI;
 my ( $template, $loggedinuser, $cookie ) = get_template_and_user(
index dba1fc7..435d837 100755 (executable)
@@ -24,6 +24,7 @@ use warnings;
 use CGI;
 use C4::Auth qw/check_api_auth/;
 use C4::Biblio;
+use C4::Items;
 use XML::Simple;
 use C4::Charset;
 
@@ -65,13 +66,26 @@ sub add_bib {
             ($record, $guessed_charset, $charset_errors) = MarcToUTF8Record($record, $marcflavour);
         }
 
+        my $fullrecord = $record->clone();
+
         # delete any item tags
-        my ( $itemtag, $itemsubfield ) = GetMarcFromKohaField("items.itemnumber", '');
-        foreach my $field ($record->field($itemtag)) {
+        my ( $itemtag, $itemsubfield ) =
+          GetMarcFromKohaField( "items.itemnumber", '' );
+        foreach my $field ( $record->field($itemtag) ) {
             $record->delete_field($field);
         }
-        my ($biblionumber, $biblioitemnumber) = AddBiblio($record, '');
+        my ( $biblionumber, $biblioitemnumber ) = AddBiblio( $record, '' );
         my $new_record = GetMarcBiblio($biblionumber);
+        if ( $query->url_param('items') ) {
+            foreach my $field ( $fullrecord->field($itemtag) ) {
+                my $one_item_record = $new_record->clone();
+                $one_item_record->add_fields($field);
+                AddItemFromMarc( $one_item_record, $biblionumber );
+            }
+        }
+
+        $new_record =
+          GetMarcBiblio( $biblionumber, $query->url_param('items') );
         $result->{'status'} = "ok";
         $result->{'biblionumber'} = $biblionumber;
         my $xml = $new_record->as_xml_record();
index f955231..5d219b2 100755 (executable)
@@ -59,4 +59,4 @@ my $dt = $cal->addDate( $saturday, 1, 'days' );
 is( $dt->day_of_week, 1, 'addDate skips closed Sunday' );
 
 $dt = $cal->addDate( $bloomsday, -1 );
-cmp_ok( $dt->ymd(), 'cmp', '2011-06-15', 'Negative call to addDate' );
+is( $dt->ymd(), '2011-06-15', 'Negative call to addDate' );
diff --git a/t/db_dependent/check_sysprefs.t b/t/db_dependent/check_sysprefs.t
new file mode 100755 (executable)
index 0000000..f7fc914
--- /dev/null
@@ -0,0 +1,121 @@
+#!/usr/bin/perl
+
+# Copyright (C) 2010 BibLibre
+#
+# This file is part of Koha.
+#
+# Koha is free software; you can redistribute it and/or modify it under the
+# terms of the GNU General Public License as published by the Free Software
+# Foundation; either version 2 of the License, or (at your option) any later
+# version.
+#
+# Koha is distributed in the hope that it will be useful, but WITHOUT ANY
+# WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR
+# A PARTICULAR PURPOSE.  See the GNU General Public License for more details.
+#
+# You should have received a copy of the GNU General Public License along
+# with this program; if not, write to the Free Software Foundation, Inc.,
+# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
+
+use strict;
+use warnings;
+
+use Getopt::Long;
+use C4::Context;
+
+# When this option is set, no tests are performed.
+# The missing sysprefs are displayed as sql inserts instead.
+our $showsql = 0;
+GetOptions( 'showsql' => \$showsql );
+
+use Test::More qw(no_plan);
+our $dbh = C4::Context->dbh;
+my $root_dir = C4::Context->config('intranetdir') . '/installer/data/mysql';
+my $base_syspref_file = "sysprefs.sql";
+
+open( my $ref_fh, "<$root_dir/$base_syspref_file" );
+my $ref_syspref = get_syspref_from_file($ref_fh);
+my @ref_sysprefs = sort { lc $a cmp lc $b } keys %$ref_syspref;
+if ( !$showsql ) {
+    cmp_ok( $#ref_sysprefs, '>=', 0,
+        "Found " . ( $#ref_sysprefs + 1 ) . " sysprefs" );
+}
+
+check_db($ref_syspref);
+
+#
+# Get sysprefs from SQL file populating sysprefs table with INSERT statement.
+#
+# Exemple:
+# INSERT INTO `systempreferences` (variable,value,explanation,options,type)
+# VALUES('AmazonLocale','US','Use to set the Locale of your Amazon.com Web Services',
+# 'US|CA|DE|FR|JP|UK','Choice')
+#
+sub get_syspref_from_file {
+    my $fh = shift;
+    my %syspref;
+    while (<$fh>) {
+        next if /^--/;    # Comment line
+        my $query = $_;
+        if ( $_ =~ /\([\s]*\'([\w\-:]+)\'/ ) {
+            my $variable = $1;
+            if ($variable) {
+                $syspref{$variable} = $query;
+            }
+        }
+    }
+    return \%syspref;
+}
+
+sub check_db {
+    my $sysprefs = shift;
+
+    # Checking the number of sysprefs in the database
+    my $query = "SELECT COUNT(*) FROM systempreferences";
+    my $sth   = $dbh->prepare($query);
+    $sth->execute;
+    my $res     = $sth->fetchrow_arrayref;
+    my $dbcount = $res->[0];
+    if ( !$showsql ) {
+        cmp_ok( $dbcount, ">=", scalar( keys %$sysprefs ),
+"There are at least as many sysprefs in the database as in the sysprefs.sql"
+        );
+    }
+
+    # Checking for missing sysprefs in the database
+    $query = "SELECT COUNT(*) FROM systempreferences WHERE variable=?";
+    $sth   = $dbh->prepare($query);
+    foreach ( keys %$sysprefs ) {
+        $sth->execute($_);
+        my $res   = $sth->fetchrow_arrayref;
+        my $count = $res->[0];
+        if ( !$showsql ) {
+            is( $count, 1, "Syspref $_ exists in the database" );
+        }
+        else {
+            if ( $count != 1 ) {
+                print $sysprefs->{$_};
+            }
+        }
+    }
+}
+
+=head1 NAME
+
+syspref.t
+
+=head1 DESCRIPTION
+
+This test checks for missing sysprefs in the database.
+
+Sysprefs are gathered from the installation file. The database is
+then queried to check if all the sysprefs are in it.
+
+=head1 USAGE
+
+prove -v xt/check_sysprefs.t
+
+If you want to display the missing sysprefs as sql inserts :
+perl check_sysprefs.t --showsql
+
+=cut
index 6a363ac..91914b3 100755 (executable)
@@ -27,7 +27,7 @@ use C4::Context;
 use C4::Dates qw(format_date);
 use C4::Items;
 use C4::Koha;
-use C4::Tags 0.03 qw(get_tags remove_tag get_tag_rows);
+use C4::Tags qw(get_tags remove_tag get_tag_rows);
 use C4::Output;
 
 my $needed_flags = { tools => 'moderate_tags'
index 2300396..7517f41 100755 (executable)
@@ -32,7 +32,7 @@ use C4::Dates qw(format_date format_date_in_iso);
 # use C4::Koha;
 use C4::Output qw(:html :ajax pagination_bar);
 use C4::Debug;
-use C4::Tags 0.03 qw(get_tags get_approval_rows approval_counts whitelist blacklist is_approved);
+use C4::Tags qw(get_tags get_approval_rows approval_counts whitelist blacklist is_approved);
 
 my $script_name = "/cgi-bin/koha/tags/review.pl";
 my $needed_flags = { tools => 'moderate_tags' };       # FIXME: replace when more specific permission is created.
index 8a8d9e8..03f5bb9 100755 (executable)
@@ -34,7 +34,7 @@ use C4::Biblio;
 use C4::ImportBatch;
 use C4::Matcher;
 use C4::BackgroundJob;
-use C4::Labels::Batch 1.000000;
+use C4::Labels::Batch;
 use C4::Branch qw(get_branch_code_from_name);
 
 my $script_name = "/cgi-bin/koha/tools/manage-marc-import.pl";